diff --git a/assets/SchemaReference.es-97a13a89.js b/assets/SchemaReference.es-74b569fb.js similarity index 97% rename from assets/SchemaReference.es-97a13a89.js rename to assets/SchemaReference.es-74b569fb.js index 7e59973e..5cfa6abd 100644 --- a/assets/SchemaReference.es-97a13a89.js +++ b/assets/SchemaReference.es-74b569fb.js @@ -1 +1 @@ -import{s as b}from"./forEachState.es-b2033c2b.js";import{o as l,Z as k,I as F,Y as h,_ as S,$ as g,a0 as D,a1 as T,e as Q}from"./index-04ef1cc9.js";var j=Object.defineProperty,r=(t,n)=>j(t,"name",{value:n,configurable:!0});function V(t,n){const e={schema:t,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return b(n,a=>{var u,p;switch(a.kind){case"Query":case"ShortQuery":e.type=t.getQueryType();break;case"Mutation":e.type=t.getMutationType();break;case"Subscription":e.type=t.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":a.type&&(e.type=t.getType(a.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&a.name?c(t,e.parentType,a.name):null,e.type=(u=e.fieldDef)===null||u===void 0?void 0:u.type;break;case"SelectionSet":e.parentType=e.type?l(e.type):null;break;case"Directive":e.directiveDef=a.name?t.getDirective(a.name):null;break;case"Arguments":const s=a.prevState?a.prevState.kind==="Field"?e.fieldDef:a.prevState.kind==="Directive"?e.directiveDef:a.prevState.kind==="AliasedField"?a.prevState.name&&c(t,e.parentType,a.prevState.name):null:null;e.argDefs=s?s.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let i=0;ii.value===a.name):null;break;case"ListValue":const d=e.inputType?F(e.inputType):null;e.inputType=d instanceof h?d.ofType:null;break;case"ObjectValue":const m=e.inputType?l(e.inputType):null;e.objectFieldDefs=m instanceof k?m.getFields():null;break;case"ObjectField":const o=a.name&&e.objectFieldDefs?e.objectFieldDefs[a.name]:null;e.inputType=o==null?void 0:o.type;break;case"NamedType":e.type=a.name?t.getType(a.name):null;break}}),e}r(V,"getTypeInfo");function c(t,n,e){if(e===g.name&&t.getQueryType()===n)return g;if(e===D.name&&t.getQueryType()===n)return D;if(e===T.name&&Q(n))return T;if(n&&n.getFields)return n.getFields()[e]}r(c,"getFieldDef");function v(t,n){for(let e=0;ej(t,"name",{value:n,configurable:!0});function V(t,n){const e={schema:t,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return b(n,a=>{var u,p;switch(a.kind){case"Query":case"ShortQuery":e.type=t.getQueryType();break;case"Mutation":e.type=t.getMutationType();break;case"Subscription":e.type=t.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":a.type&&(e.type=t.getType(a.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&a.name?c(t,e.parentType,a.name):null,e.type=(u=e.fieldDef)===null||u===void 0?void 0:u.type;break;case"SelectionSet":e.parentType=e.type?l(e.type):null;break;case"Directive":e.directiveDef=a.name?t.getDirective(a.name):null;break;case"Arguments":const s=a.prevState?a.prevState.kind==="Field"?e.fieldDef:a.prevState.kind==="Directive"?e.directiveDef:a.prevState.kind==="AliasedField"?a.prevState.name&&c(t,e.parentType,a.prevState.name):null:null;e.argDefs=s?s.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let i=0;ii.value===a.name):null;break;case"ListValue":const d=e.inputType?F(e.inputType):null;e.inputType=d instanceof h?d.ofType:null;break;case"ObjectValue":const m=e.inputType?l(e.inputType):null;e.objectFieldDefs=m instanceof k?m.getFields():null;break;case"ObjectField":const o=a.name&&e.objectFieldDefs?e.objectFieldDefs[a.name]:null;e.inputType=o==null?void 0:o.type;break;case"NamedType":e.type=a.name?t.getType(a.name):null;break}}),e}r(V,"getTypeInfo");function c(t,n,e){if(e===g.name&&t.getQueryType()===n)return g;if(e===D.name&&t.getQueryType()===n)return D;if(e===T.name&&Q(n))return T;if(n&&n.getFields)return n.getFields()[e]}r(c,"getFieldDef");function v(t,n){for(let e=0;en in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/freemarker2-2d3e9b7d.js b/assets/freemarker2-2702ab62.js similarity index 99% rename from assets/freemarker2-2d3e9b7d.js rename to assets/freemarker2-2702ab62.js index c8ae47a8..64002a19 100644 --- a/assets/freemarker2-2d3e9b7d.js +++ b/assets/freemarker2-2702ab62.js @@ -1,4 +1,4 @@ -import{m as F}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/handlebars-05cfbafd.js b/assets/handlebars-7e4e46af.js similarity index 99% rename from assets/handlebars-05cfbafd.js rename to assets/handlebars-7e4e46af.js index 629c8a8a..6f3a0033 100644 --- a/assets/handlebars-05cfbafd.js +++ b/assets/handlebars-7e4e46af.js @@ -1,4 +1,4 @@ -import{m as i}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/hint.es-a0ae1756.js b/assets/hint.es-7ba0b9b7.js similarity index 91% rename from assets/hint.es-a0ae1756.js rename to assets/hint.es-7ba0b9b7.js index 472f328a..3001f437 100644 --- a/assets/hint.es-a0ae1756.js +++ b/assets/hint.es-7ba0b9b7.js @@ -1 +1 @@ -import{C as n}from"./codemirror.es-52e8b92d.js";import"./show-hint.es-b981493e.js";import{g as c}from"./index-04ef1cc9.js";import{P as g}from"./Range-52ddcb6a.js";import"./codemirror.es2-5884f31a.js";n.registerHelper("hint","graphql",(i,a)=>{const{schema:s,externalFragments:p}=a;if(!s)return;const r=i.getCursor(),t=i.getTokenAt(r),l=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,m=new g(r.line,l),e={list:c(s,i.getValue(),m,t,p).map(o=>({text:o.label,type:o.type,description:o.documentation,isDeprecated:o.isDeprecated,deprecationReason:o.deprecationReason})),from:{line:r.line,ch:l},to:{line:r.line,ch:t.end}};return e!=null&&e.list&&e.list.length>0&&(e.from=n.Pos(e.from.line,e.from.ch),e.to=n.Pos(e.to.line,e.to.ch),n.signal(i,"hasCompletion",i,e,t)),e}); +import{C as n}from"./codemirror.es-52e8b92d.js";import"./show-hint.es-b981493e.js";import{g as c}from"./index-71dfccbc.js";import{P as g}from"./Range-52ddcb6a.js";import"./codemirror.es2-5884f31a.js";n.registerHelper("hint","graphql",(i,a)=>{const{schema:s,externalFragments:p}=a;if(!s)return;const r=i.getCursor(),t=i.getTokenAt(r),l=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,m=new g(r.line,l),e={list:c(s,i.getValue(),m,t,p).map(o=>({text:o.label,type:o.type,description:o.documentation,isDeprecated:o.isDeprecated,deprecationReason:o.deprecationReason})),from:{line:r.line,ch:l},to:{line:r.line,ch:t.end}};return e!=null&&e.list&&e.list.length>0&&(e.from=n.Pos(e.from.line,e.from.ch),e.to=n.Pos(e.to.line,e.to.ch),n.signal(i,"hasCompletion",i,e,t)),e}); diff --git a/assets/hint.es2-c83d9215.js b/assets/hint.es2-4656b87c.js similarity index 97% rename from assets/hint.es2-c83d9215.js rename to assets/hint.es2-4656b87c.js index ccfc5d7c..1d2b5de3 100644 --- a/assets/hint.es2-c83d9215.js +++ b/assets/hint.es2-4656b87c.js @@ -1 +1 @@ -import{C as f}from"./codemirror.es-52e8b92d.js";import{s as L}from"./forEachState.es-b2033c2b.js";import"./codemirror.es2-5884f31a.js";import{o as h,Z as b,_ as T,a5 as d,I as j,Y as D}from"./index-04ef1cc9.js";var N=Object.defineProperty,p=(i,n)=>N(i,"name",{value:n,configurable:!0});function u(i,n,t){const r=x(t,m(n.string));if(!r)return;const e=n.type!==null&&/"|\w/.test(n.string[0])?n.start:n.end;return{list:r,from:{line:i.line,ch:e},to:{line:i.line,ch:n.end}}}p(u,"hintList");function x(i,n){if(!n)return y(i,r=>!r.isDeprecated);const t=i.map(r=>({proximity:V(m(r.text),n),entry:r}));return y(y(t,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,e)=>(r.entry.isDeprecated?1:0)-(e.entry.isDeprecated?1:0)||r.proximity-e.proximity||r.entry.text.length-e.entry.text.length).map(r=>r.entry)}p(x,"filterAndSortList");function y(i,n){const t=i.filter(n);return t.length===0?i:t}p(y,"filterNonEmpty");function m(i){return i.toLowerCase().replaceAll(/\W/g,"")}p(m,"normalizeText");function V(i,n){let t=v(n,i);return i.length>n.length&&(t-=i.length-n.length-1,t+=i.indexOf(n)===0?0:.5),t}p(V,"getProximity");function v(i,n){let t,r;const e=[],a=i.length,s=n.length;for(t=0;t<=a;t++)e[t]=[t];for(r=1;r<=s;r++)e[0][r]=r;for(t=1;t<=a;t++)for(r=1;r<=s;r++){const c=i[t-1]===n[r-1]?0:1;e[t][r]=Math.min(e[t-1][r]+1,e[t][r-1]+1,e[t-1][r-1]+c),t>1&&r>1&&i[t-1]===n[r-2]&&i[t-2]===n[r-1]&&(e[t][r]=Math.min(e[t][r],e[t-2][r-2]+c))}return e[a][s]}p(v,"lexicalDistance");f.registerHelper("hint","graphql-variables",(i,n)=>{const t=i.getCursor(),r=i.getTokenAt(t),e=O(t,r,n);return e!=null&&e.list&&e.list.length>0&&(e.from=f.Pos(e.from.line,e.from.ch),e.to=f.Pos(e.to.line,e.to.ch),f.signal(i,"hasCompletion",i,e,r)),e});function O(i,n,t){const r=n.state.kind==="Invalid"?n.state.prevState:n.state,{kind:e,step:a}=r;if(e==="Document"&&a===0)return u(i,n,[{text:"{"}]);const{variableToType:s}=t;if(!s)return;const c=k(s,n.state);if(e==="Document"||e==="Variable"&&a===0){const l=Object.keys(s);return u(i,n,l.map(o=>({text:`"${o}": `,type:s[o]})))}if((e==="ObjectValue"||e==="ObjectField"&&a===0)&&c.fields){const l=Object.keys(c.fields).map(o=>c.fields[o]);return u(i,n,l.map(o=>({text:`"${o.name}": `,type:o.type,description:o.description})))}if(e==="StringValue"||e==="NumberValue"||e==="BooleanValue"||e==="NullValue"||e==="ListValue"&&a===1||e==="ObjectField"&&a===2||e==="Variable"&&a===2){const l=c.type?h(c.type):void 0;if(l instanceof b)return u(i,n,[{text:"{"}]);if(l instanceof T){const o=l.getValues();return u(i,n,o.map(g=>({text:`"${g.name}"`,type:l,description:g.description})))}if(l===d)return u(i,n,[{text:"true",type:d,description:"Not false."},{text:"false",type:d,description:"Not true."}])}}p(O,"getVariablesHint");function k(i,n){const t={type:null,fields:null};return L(n,r=>{switch(r.kind){case"Variable":{t.type=i[r.name];break}case"ListValue":{const e=t.type?j(t.type):void 0;t.type=e instanceof D?e.ofType:null;break}case"ObjectValue":{const e=t.type?h(t.type):void 0;t.fields=e instanceof b?e.getFields():null;break}case"ObjectField":{const e=r.name&&t.fields?t.fields[r.name]:null;t.type=e==null?void 0:e.type;break}}}),t}p(k,"getTypeInfo"); +import{C as f}from"./codemirror.es-52e8b92d.js";import{s as L}from"./forEachState.es-b2033c2b.js";import"./codemirror.es2-5884f31a.js";import{o as h,Z as b,_ as T,a5 as d,I as j,Y as D}from"./index-71dfccbc.js";var N=Object.defineProperty,p=(i,n)=>N(i,"name",{value:n,configurable:!0});function u(i,n,t){const r=x(t,m(n.string));if(!r)return;const e=n.type!==null&&/"|\w/.test(n.string[0])?n.start:n.end;return{list:r,from:{line:i.line,ch:e},to:{line:i.line,ch:n.end}}}p(u,"hintList");function x(i,n){if(!n)return y(i,r=>!r.isDeprecated);const t=i.map(r=>({proximity:V(m(r.text),n),entry:r}));return y(y(t,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,e)=>(r.entry.isDeprecated?1:0)-(e.entry.isDeprecated?1:0)||r.proximity-e.proximity||r.entry.text.length-e.entry.text.length).map(r=>r.entry)}p(x,"filterAndSortList");function y(i,n){const t=i.filter(n);return t.length===0?i:t}p(y,"filterNonEmpty");function m(i){return i.toLowerCase().replaceAll(/\W/g,"")}p(m,"normalizeText");function V(i,n){let t=v(n,i);return i.length>n.length&&(t-=i.length-n.length-1,t+=i.indexOf(n)===0?0:.5),t}p(V,"getProximity");function v(i,n){let t,r;const e=[],a=i.length,s=n.length;for(t=0;t<=a;t++)e[t]=[t];for(r=1;r<=s;r++)e[0][r]=r;for(t=1;t<=a;t++)for(r=1;r<=s;r++){const c=i[t-1]===n[r-1]?0:1;e[t][r]=Math.min(e[t-1][r]+1,e[t][r-1]+1,e[t-1][r-1]+c),t>1&&r>1&&i[t-1]===n[r-2]&&i[t-2]===n[r-1]&&(e[t][r]=Math.min(e[t][r],e[t-2][r-2]+c))}return e[a][s]}p(v,"lexicalDistance");f.registerHelper("hint","graphql-variables",(i,n)=>{const t=i.getCursor(),r=i.getTokenAt(t),e=O(t,r,n);return e!=null&&e.list&&e.list.length>0&&(e.from=f.Pos(e.from.line,e.from.ch),e.to=f.Pos(e.to.line,e.to.ch),f.signal(i,"hasCompletion",i,e,r)),e});function O(i,n,t){const r=n.state.kind==="Invalid"?n.state.prevState:n.state,{kind:e,step:a}=r;if(e==="Document"&&a===0)return u(i,n,[{text:"{"}]);const{variableToType:s}=t;if(!s)return;const c=k(s,n.state);if(e==="Document"||e==="Variable"&&a===0){const l=Object.keys(s);return u(i,n,l.map(o=>({text:`"${o}": `,type:s[o]})))}if((e==="ObjectValue"||e==="ObjectField"&&a===0)&&c.fields){const l=Object.keys(c.fields).map(o=>c.fields[o]);return u(i,n,l.map(o=>({text:`"${o.name}": `,type:o.type,description:o.description})))}if(e==="StringValue"||e==="NumberValue"||e==="BooleanValue"||e==="NullValue"||e==="ListValue"&&a===1||e==="ObjectField"&&a===2||e==="Variable"&&a===2){const l=c.type?h(c.type):void 0;if(l instanceof b)return u(i,n,[{text:"{"}]);if(l instanceof T){const o=l.getValues();return u(i,n,o.map(g=>({text:`"${g.name}"`,type:l,description:g.description})))}if(l===d)return u(i,n,[{text:"true",type:d,description:"Not false."},{text:"false",type:d,description:"Not true."}])}}p(O,"getVariablesHint");function k(i,n){const t={type:null,fields:null};return L(n,r=>{switch(r.kind){case"Variable":{t.type=i[r.name];break}case"ListValue":{const e=t.type?j(t.type):void 0;t.type=e instanceof D?e.ofType:null;break}case"ObjectValue":{const e=t.type?h(t.type):void 0;t.fields=e instanceof b?e.getFields():null;break}case"ObjectField":{const e=r.name&&t.fields?t.fields[r.name]:null;t.type=e==null?void 0:e.type;break}}}),t}p(k,"getTypeInfo"); diff --git a/assets/html-a9434b25.js b/assets/html-9a3b1a02.js similarity index 98% rename from assets/html-a9434b25.js rename to assets/html-9a3b1a02.js index fce652ae..d68dd3a6 100644 --- a/assets/html-a9434b25.js +++ b/assets/html-9a3b1a02.js @@ -1,4 +1,4 @@ -import{m as d}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/htmlMode-2cb4d10f.js b/assets/htmlMode-a8a404e9.js similarity index 99% rename from assets/htmlMode-2cb4d10f.js rename to assets/htmlMode-a8a404e9.js index 77b4985b..41db171a 100644 --- a/assets/htmlMode-2cb4d10f.js +++ b/assets/htmlMode-a8a404e9.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/index-04ef1cc9.js b/assets/index-71dfccbc.js similarity index 99% rename from assets/index-04ef1cc9.js rename to assets/index-71dfccbc.js index 017de64c..74d172f1 100644 --- a/assets/index-04ef1cc9.js +++ b/assets/index-71dfccbc.js @@ -675,27 +675,27 @@ ${e.toString()}`}}class YB{constructor(e=new UF,t=!1,n,i=Kct){var r;this._servic * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Rht=Object.defineProperty,Iht=Object.getOwnPropertyDescriptor,Oht=Object.getOwnPropertyNames,jht=Object.prototype.hasOwnProperty,k0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oht(e))!jht.call(u,i)&&i!==t&&Rht(u,i,{get:()=>e[i],enumerable:!(n=Iht(e,i))||n.enumerable});return u},Vht=(u,e,t)=>(k0e(u,e,"default"),t&&k0e(t,e,"default")),hb={};Vht(hb,iA);var $ke={},jj={},Kke=class{constructor(u){Fn(this,"_languageId");Fn(this,"_loadingTriggered");Fn(this,"_lazyLoadPromise");Fn(this,"_lazyLoadPromiseResolve");Fn(this,"_lazyLoadPromiseReject");this._languageId=u,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(u){return jj[u]||(jj[u]=new Kke(u)),jj[u]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,$ke[this._languageId].loader().then(u=>this._lazyLoadPromiseResolve(u),u=>this._lazyLoadPromiseReject(u))),this._lazyLoadPromise}};function rt(u){const e=u.id;$ke[e]=u,hb.languages.register(u);const t=Kke.getOrCreate(e);hb.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),hb.languages.onLanguageEncountered(e,async()=>{const n=await t.load();hb.languages.setLanguageConfiguration(e,n.conf)})}rt({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Le(()=>import("./abap-b029dff1.js"),[],import.meta.url)});rt({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Le(()=>import("./apex-3c83662c.js"),[],import.meta.url)});rt({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Le(()=>import("./azcli-f1f7c576.js"),[],import.meta.url)});rt({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Le(()=>import("./bat-86aea46a.js"),[],import.meta.url)});rt({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Le(()=>import("./bicep-75c0c4d5.js"),[],import.meta.url)});rt({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Le(()=>import("./cameligo-8043f913.js"),[],import.meta.url)});rt({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Le(()=>import("./clojure-73642b02.js"),[],import.meta.url)});rt({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Le(()=>import("./coffee-a18badcf.js"),[],import.meta.url)});rt({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Le(()=>import("./cpp-4034161e.js"),[],import.meta.url)});rt({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Le(()=>import("./cpp-4034161e.js"),[],import.meta.url)});rt({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Le(()=>import("./csharp-49cbf0d2.js"),[],import.meta.url)});rt({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>Le(()=>import("./csp-d207cac4.js"),[],import.meta.url)});rt({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Le(()=>import("./css-74326df0.js"),[],import.meta.url)});rt({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Le(()=>import("./cypher-49f5f839.js"),[],import.meta.url)});rt({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Le(()=>import("./dart-84b7c6b4.js"),[],import.meta.url)});rt({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Le(()=>import("./dockerfile-bbf114b2.js"),[],import.meta.url)});rt({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Le(()=>import("./ecl-15840f49.js"),[],import.meta.url)});rt({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Le(()=>import("./elixir-e479e18e.js"),[],import.meta.url)});rt({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Le(()=>import("./flow9-42a61225.js"),[],import.meta.url)});rt({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Le(()=>import("./fsharp-8abe6da0.js"),[],import.meta.url)});rt({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagAutoInterpolationDollar)});rt({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagAngleInterpolationDollar)});rt({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagBracketInterpolationDollar)});rt({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagAngleInterpolationBracket)});rt({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagBracketInterpolationBracket)});rt({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagAutoInterpolationDollar)});rt({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Le(()=>import("./freemarker2-2d3e9b7d.js"),[],import.meta.url).then(u=>u.TagAutoInterpolationBracket)});rt({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Le(()=>import("./go-8759e9f7.js"),[],import.meta.url)});rt({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Le(()=>import("./graphql-387d549c.js"),[],import.meta.url)});rt({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Le(()=>import("./handlebars-05cfbafd.js"),[],import.meta.url)});rt({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Le(()=>import("./hcl-a88f331a.js"),[],import.meta.url)});rt({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Le(()=>import("./html-a9434b25.js"),[],import.meta.url)});rt({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Le(()=>import("./ini-18bf1153.js"),[],import.meta.url)});rt({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Le(()=>import("./java-000a6283.js"),[],import.meta.url)});rt({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Le(()=>import("./javascript-8b6f2757.js"),["./javascript-8b6f2757.js","./typescript-36d90a22.js"],import.meta.url)});rt({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Le(()=>import("./julia-0026391c.js"),[],import.meta.url)});rt({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Le(()=>import("./kotlin-06ee8898.js"),[],import.meta.url)});rt({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Le(()=>import("./less-dd86a68c.js"),[],import.meta.url)});rt({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Le(()=>import("./lexon-8d4b0444.js"),[],import.meta.url)});rt({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Le(()=>import("./lua-9adddcd9.js"),[],import.meta.url)});rt({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Le(()=>import("./liquid-dc53d383.js"),[],import.meta.url)});rt({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Le(()=>import("./m3-aa2dcf72.js"),[],import.meta.url)});rt({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Le(()=>import("./markdown-0f073a3a.js"),[],import.meta.url)});rt({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Le(()=>import("./mdx-9e450df6.js"),[],import.meta.url)});rt({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Le(()=>import("./mips-bdd96c5a.js"),[],import.meta.url)});rt({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Le(()=>import("./msdax-1ac55115.js"),[],import.meta.url)});rt({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Le(()=>import("./mysql-b530c105.js"),[],import.meta.url)});rt({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Le(()=>import("./objective-c-951ded7b.js"),[],import.meta.url)});rt({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Le(()=>import("./pascal-7442fd46.js"),[],import.meta.url)});rt({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Le(()=>import("./pascaligo-385edc0e.js"),[],import.meta.url)});rt({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Le(()=>import("./perl-d5fb326c.js"),[],import.meta.url)});rt({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Le(()=>import("./pgsql-2d7db25a.js"),[],import.meta.url)});rt({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Le(()=>import("./php-1daff147.js"),[],import.meta.url)});rt({id:"pla",extensions:[".pla"],loader:()=>Le(()=>import("./pla-1b3e1614.js"),[],import.meta.url)});rt({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Le(()=>import("./postiats-9db13649.js"),[],import.meta.url)});rt({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Le(()=>import("./powerquery-4c428232.js"),[],import.meta.url)});rt({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Le(()=>import("./powershell-d3380668.js"),[],import.meta.url)});rt({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Le(()=>import("./protobuf-941cf3e8.js"),[],import.meta.url)});rt({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Le(()=>import("./pug-cfe384ef.js"),[],import.meta.url)});rt({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Le(()=>import("./python-7ed155d1.js"),[],import.meta.url)});rt({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Le(()=>import("./qsharp-e125d03f.js"),[],import.meta.url)});rt({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Le(()=>import("./r-e0a01d4f.js"),[],import.meta.url)});rt({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Le(()=>import("./razor-9db43e75.js"),[],import.meta.url)});rt({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Le(()=>import("./redis-d0a12fea.js"),[],import.meta.url)});rt({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Le(()=>import("./redshift-a163b94a.js"),[],import.meta.url)});rt({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Le(()=>import("./restructuredtext-5a906e1a.js"),[],import.meta.url)});rt({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Le(()=>import("./ruby-05b021bf.js"),[],import.meta.url)});rt({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Le(()=>import("./rust-3d80982c.js"),[],import.meta.url)});rt({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Le(()=>import("./sb-2020a5af.js"),[],import.meta.url)});rt({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Le(()=>import("./scala-54469b4b.js"),[],import.meta.url)});rt({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Le(()=>import("./scheme-ff6e5671.js"),[],import.meta.url)});rt({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Le(()=>import("./scss-77902feb.js"),[],import.meta.url)});rt({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Le(()=>import("./shell-3c06def6.js"),[],import.meta.url)});rt({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Le(()=>import("./solidity-3d59d6a7.js"),[],import.meta.url)});rt({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Le(()=>import("./sophia-12eb7ba8.js"),[],import.meta.url)});rt({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Le(()=>import("./sparql-e42fb28a.js"),[],import.meta.url)});rt({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Le(()=>import("./sql-d30fd9fd.js"),[],import.meta.url)});rt({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Le(()=>import("./st-0857f583.js"),[],import.meta.url)});rt({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Le(()=>import("./swift-f0a706dd.js"),[],import.meta.url)});rt({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Le(()=>import("./systemverilog-0cfd4211.js"),[],import.meta.url)});rt({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Le(()=>import("./systemverilog-0cfd4211.js"),[],import.meta.url)});rt({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Le(()=>import("./tcl-7df3c0c5.js"),[],import.meta.url)});rt({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Le(()=>import("./twig-f894aab2.js"),[],import.meta.url)});rt({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Le(()=>import("./typescript-36d90a22.js"),[],import.meta.url)});rt({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Le(()=>import("./vb-39a025f4.js"),[],import.meta.url)});rt({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Le(()=>import("./wgsl-afa2396f.js"),[],import.meta.url)});rt({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Le(()=>import("./xml-49a69e32.js"),[],import.meta.url)});rt({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Le(()=>import("./yaml-14db310a.js"),[],import.meta.url)});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Rht=Object.defineProperty,Iht=Object.getOwnPropertyDescriptor,Oht=Object.getOwnPropertyNames,jht=Object.prototype.hasOwnProperty,k0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oht(e))!jht.call(u,i)&&i!==t&&Rht(u,i,{get:()=>e[i],enumerable:!(n=Iht(e,i))||n.enumerable});return u},Vht=(u,e,t)=>(k0e(u,e,"default"),t&&k0e(t,e,"default")),hb={};Vht(hb,iA);var $ke={},jj={},Kke=class{constructor(u){Fn(this,"_languageId");Fn(this,"_loadingTriggered");Fn(this,"_lazyLoadPromise");Fn(this,"_lazyLoadPromiseResolve");Fn(this,"_lazyLoadPromiseReject");this._languageId=u,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(u){return jj[u]||(jj[u]=new Kke(u)),jj[u]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,$ke[this._languageId].loader().then(u=>this._lazyLoadPromiseResolve(u),u=>this._lazyLoadPromiseReject(u))),this._lazyLoadPromise}};function rt(u){const e=u.id;$ke[e]=u,hb.languages.register(u);const t=Kke.getOrCreate(e);hb.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),hb.languages.onLanguageEncountered(e,async()=>{const n=await t.load();hb.languages.setLanguageConfiguration(e,n.conf)})}rt({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Le(()=>import("./abap-b029dff1.js"),[],import.meta.url)});rt({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Le(()=>import("./apex-3c83662c.js"),[],import.meta.url)});rt({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Le(()=>import("./azcli-f1f7c576.js"),[],import.meta.url)});rt({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Le(()=>import("./bat-86aea46a.js"),[],import.meta.url)});rt({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Le(()=>import("./bicep-75c0c4d5.js"),[],import.meta.url)});rt({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Le(()=>import("./cameligo-8043f913.js"),[],import.meta.url)});rt({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Le(()=>import("./clojure-73642b02.js"),[],import.meta.url)});rt({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Le(()=>import("./coffee-a18badcf.js"),[],import.meta.url)});rt({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Le(()=>import("./cpp-4034161e.js"),[],import.meta.url)});rt({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Le(()=>import("./cpp-4034161e.js"),[],import.meta.url)});rt({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Le(()=>import("./csharp-49cbf0d2.js"),[],import.meta.url)});rt({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>Le(()=>import("./csp-d207cac4.js"),[],import.meta.url)});rt({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Le(()=>import("./css-74326df0.js"),[],import.meta.url)});rt({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Le(()=>import("./cypher-49f5f839.js"),[],import.meta.url)});rt({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Le(()=>import("./dart-84b7c6b4.js"),[],import.meta.url)});rt({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Le(()=>import("./dockerfile-bbf114b2.js"),[],import.meta.url)});rt({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Le(()=>import("./ecl-15840f49.js"),[],import.meta.url)});rt({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Le(()=>import("./elixir-e479e18e.js"),[],import.meta.url)});rt({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Le(()=>import("./flow9-42a61225.js"),[],import.meta.url)});rt({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Le(()=>import("./fsharp-8abe6da0.js"),[],import.meta.url)});rt({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagAutoInterpolationDollar)});rt({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagAngleInterpolationDollar)});rt({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagBracketInterpolationDollar)});rt({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagAngleInterpolationBracket)});rt({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagBracketInterpolationBracket)});rt({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagAutoInterpolationDollar)});rt({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Le(()=>import("./freemarker2-2702ab62.js"),[],import.meta.url).then(u=>u.TagAutoInterpolationBracket)});rt({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Le(()=>import("./go-8759e9f7.js"),[],import.meta.url)});rt({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Le(()=>import("./graphql-387d549c.js"),[],import.meta.url)});rt({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Le(()=>import("./handlebars-7e4e46af.js"),[],import.meta.url)});rt({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Le(()=>import("./hcl-a88f331a.js"),[],import.meta.url)});rt({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Le(()=>import("./html-9a3b1a02.js"),[],import.meta.url)});rt({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Le(()=>import("./ini-18bf1153.js"),[],import.meta.url)});rt({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Le(()=>import("./java-000a6283.js"),[],import.meta.url)});rt({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Le(()=>import("./javascript-c1e94295.js"),["./javascript-c1e94295.js","./typescript-9dc221fd.js"],import.meta.url)});rt({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Le(()=>import("./julia-0026391c.js"),[],import.meta.url)});rt({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Le(()=>import("./kotlin-06ee8898.js"),[],import.meta.url)});rt({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Le(()=>import("./less-dd86a68c.js"),[],import.meta.url)});rt({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Le(()=>import("./lexon-8d4b0444.js"),[],import.meta.url)});rt({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Le(()=>import("./lua-9adddcd9.js"),[],import.meta.url)});rt({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Le(()=>import("./liquid-98bcaff5.js"),[],import.meta.url)});rt({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Le(()=>import("./m3-aa2dcf72.js"),[],import.meta.url)});rt({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Le(()=>import("./markdown-0f073a3a.js"),[],import.meta.url)});rt({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Le(()=>import("./mdx-f3a0a9c5.js"),[],import.meta.url)});rt({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Le(()=>import("./mips-bdd96c5a.js"),[],import.meta.url)});rt({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Le(()=>import("./msdax-1ac55115.js"),[],import.meta.url)});rt({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Le(()=>import("./mysql-b530c105.js"),[],import.meta.url)});rt({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Le(()=>import("./objective-c-951ded7b.js"),[],import.meta.url)});rt({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Le(()=>import("./pascal-7442fd46.js"),[],import.meta.url)});rt({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Le(()=>import("./pascaligo-385edc0e.js"),[],import.meta.url)});rt({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Le(()=>import("./perl-d5fb326c.js"),[],import.meta.url)});rt({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Le(()=>import("./pgsql-2d7db25a.js"),[],import.meta.url)});rt({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Le(()=>import("./php-1daff147.js"),[],import.meta.url)});rt({id:"pla",extensions:[".pla"],loader:()=>Le(()=>import("./pla-1b3e1614.js"),[],import.meta.url)});rt({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Le(()=>import("./postiats-9db13649.js"),[],import.meta.url)});rt({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Le(()=>import("./powerquery-4c428232.js"),[],import.meta.url)});rt({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Le(()=>import("./powershell-d3380668.js"),[],import.meta.url)});rt({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Le(()=>import("./protobuf-941cf3e8.js"),[],import.meta.url)});rt({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Le(()=>import("./pug-cfe384ef.js"),[],import.meta.url)});rt({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Le(()=>import("./python-9838a365.js"),[],import.meta.url)});rt({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Le(()=>import("./qsharp-e125d03f.js"),[],import.meta.url)});rt({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Le(()=>import("./r-e0a01d4f.js"),[],import.meta.url)});rt({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Le(()=>import("./razor-b5b7a144.js"),[],import.meta.url)});rt({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Le(()=>import("./redis-d0a12fea.js"),[],import.meta.url)});rt({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Le(()=>import("./redshift-a163b94a.js"),[],import.meta.url)});rt({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Le(()=>import("./restructuredtext-5a906e1a.js"),[],import.meta.url)});rt({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Le(()=>import("./ruby-05b021bf.js"),[],import.meta.url)});rt({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Le(()=>import("./rust-3d80982c.js"),[],import.meta.url)});rt({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Le(()=>import("./sb-2020a5af.js"),[],import.meta.url)});rt({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Le(()=>import("./scala-54469b4b.js"),[],import.meta.url)});rt({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Le(()=>import("./scheme-ff6e5671.js"),[],import.meta.url)});rt({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Le(()=>import("./scss-77902feb.js"),[],import.meta.url)});rt({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Le(()=>import("./shell-3c06def6.js"),[],import.meta.url)});rt({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Le(()=>import("./solidity-3d59d6a7.js"),[],import.meta.url)});rt({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Le(()=>import("./sophia-12eb7ba8.js"),[],import.meta.url)});rt({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Le(()=>import("./sparql-e42fb28a.js"),[],import.meta.url)});rt({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Le(()=>import("./sql-d30fd9fd.js"),[],import.meta.url)});rt({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Le(()=>import("./st-0857f583.js"),[],import.meta.url)});rt({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Le(()=>import("./swift-f0a706dd.js"),[],import.meta.url)});rt({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Le(()=>import("./systemverilog-0cfd4211.js"),[],import.meta.url)});rt({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Le(()=>import("./systemverilog-0cfd4211.js"),[],import.meta.url)});rt({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Le(()=>import("./tcl-7df3c0c5.js"),[],import.meta.url)});rt({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Le(()=>import("./twig-f894aab2.js"),[],import.meta.url)});rt({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Le(()=>import("./typescript-9dc221fd.js"),[],import.meta.url)});rt({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Le(()=>import("./vb-39a025f4.js"),[],import.meta.url)});rt({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Le(()=>import("./wgsl-afa2396f.js"),[],import.meta.url)});rt({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Le(()=>import("./xml-f1eee914.js"),[],import.meta.url)});rt({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Le(()=>import("./yaml-57c2e5e8.js"),[],import.meta.url)});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Hht=Object.defineProperty,$ht=Object.getOwnPropertyDescriptor,Kht=Object.getOwnPropertyNames,Wht=Object.prototype.hasOwnProperty,y0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Kht(e))!Wht.call(u,i)&&i!==t&&Hht(u,i,{get:()=>e[i],enumerable:!(n=$ht(e,i))||n.enumerable});return u},Ght=(u,e,t)=>(y0e(u,e,"default"),t&&y0e(t,e,"default")),aC={};Ght(aC,iA);var YX=class{constructor(e,t,n){Fn(this,"_onDidChange",new aC.Emitter);Fn(this,"_options");Fn(this,"_modeConfiguration");Fn(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},QX={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},XX={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Wke=new YX("css",QX,XX),Gke=new YX("scss",QX,XX),Uke=new YX("less",QX,XX);aC.languages.css={cssDefaults:Wke,lessDefaults:Uke,scssDefaults:Gke};function eee(){return Le(()=>import("./cssMode-c8b9e557.js"),[],import.meta.url)}aC.languages.onLanguage("less",()=>{eee().then(u=>u.setupMode(Uke))});aC.languages.onLanguage("scss",()=>{eee().then(u=>u.setupMode(Gke))});aC.languages.onLanguage("css",()=>{eee().then(u=>u.setupMode(Wke))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Hht=Object.defineProperty,$ht=Object.getOwnPropertyDescriptor,Kht=Object.getOwnPropertyNames,Wht=Object.prototype.hasOwnProperty,y0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Kht(e))!Wht.call(u,i)&&i!==t&&Hht(u,i,{get:()=>e[i],enumerable:!(n=$ht(e,i))||n.enumerable});return u},Ght=(u,e,t)=>(y0e(u,e,"default"),t&&y0e(t,e,"default")),aC={};Ght(aC,iA);var YX=class{constructor(e,t,n){Fn(this,"_onDidChange",new aC.Emitter);Fn(this,"_options");Fn(this,"_modeConfiguration");Fn(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},QX={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},XX={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Wke=new YX("css",QX,XX),Gke=new YX("scss",QX,XX),Uke=new YX("less",QX,XX);aC.languages.css={cssDefaults:Wke,lessDefaults:Uke,scssDefaults:Gke};function eee(){return Le(()=>import("./cssMode-2eab1bae.js"),[],import.meta.url)}aC.languages.onLanguage("less",()=>{eee().then(u=>u.setupMode(Uke))});aC.languages.onLanguage("scss",()=>{eee().then(u=>u.setupMode(Gke))});aC.languages.onLanguage("css",()=>{eee().then(u=>u.setupMode(Wke))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Uht=Object.defineProperty,qht=Object.getOwnPropertyDescriptor,Jht=Object.getOwnPropertyNames,Zht=Object.prototype.hasOwnProperty,F0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Jht(e))!Zht.call(u,i)&&i!==t&&Uht(u,i,{get:()=>e[i],enumerable:!(n=qht(e,i))||n.enumerable});return u},Yht=(u,e,t)=>(F0e(u,e,"default"),t&&F0e(t,e,"default")),mN={};Yht(mN,iA);var Qht=class{constructor(e,t,n){Fn(this,"_onDidChange",new mN.Emitter);Fn(this,"_options");Fn(this,"_modeConfiguration");Fn(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Xht={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},fN={format:Xht,suggest:{},data:{useDefaultDataProvider:!0}};function pN(u){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:u===ek,documentFormattingEdits:u===ek,documentRangeFormattingEdits:u===ek}}var ek="html",A0e="handlebars",_0e="razor",qke=DN(ek,fN,pN(ek)),e4t=qke.defaults,Jke=DN(A0e,fN,pN(A0e)),t4t=Jke.defaults,Zke=DN(_0e,fN,pN(_0e)),u4t=Zke.defaults;mN.languages.html={htmlDefaults:e4t,razorDefaults:u4t,handlebarDefaults:t4t,htmlLanguageService:qke,handlebarLanguageService:Jke,razorLanguageService:Zke,registerHTMLLanguageService:DN};function n4t(){return Le(()=>import("./htmlMode-2cb4d10f.js"),[],import.meta.url)}function DN(u,e=fN,t=pN(u)){const n=new Qht(u,e,t);let i;const r=mN.languages.onLanguage(u,async()=>{i=(await n4t()).setupMode(n)});return{defaults:n,dispose(){r.dispose(),i==null||i.dispose(),i=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Uht=Object.defineProperty,qht=Object.getOwnPropertyDescriptor,Jht=Object.getOwnPropertyNames,Zht=Object.prototype.hasOwnProperty,F0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Jht(e))!Zht.call(u,i)&&i!==t&&Uht(u,i,{get:()=>e[i],enumerable:!(n=qht(e,i))||n.enumerable});return u},Yht=(u,e,t)=>(F0e(u,e,"default"),t&&F0e(t,e,"default")),mN={};Yht(mN,iA);var Qht=class{constructor(e,t,n){Fn(this,"_onDidChange",new mN.Emitter);Fn(this,"_options");Fn(this,"_modeConfiguration");Fn(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Xht={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},fN={format:Xht,suggest:{},data:{useDefaultDataProvider:!0}};function pN(u){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:u===ek,documentFormattingEdits:u===ek,documentRangeFormattingEdits:u===ek}}var ek="html",A0e="handlebars",_0e="razor",qke=DN(ek,fN,pN(ek)),e4t=qke.defaults,Jke=DN(A0e,fN,pN(A0e)),t4t=Jke.defaults,Zke=DN(_0e,fN,pN(_0e)),u4t=Zke.defaults;mN.languages.html={htmlDefaults:e4t,razorDefaults:u4t,handlebarDefaults:t4t,htmlLanguageService:qke,handlebarLanguageService:Jke,razorLanguageService:Zke,registerHTMLLanguageService:DN};function n4t(){return Le(()=>import("./htmlMode-a8a404e9.js"),[],import.meta.url)}function DN(u,e=fN,t=pN(u)){const n=new Qht(u,e,t);let i;const r=mN.languages.onLanguage(u,async()=>{i=(await n4t()).setupMode(n)});return{defaults:n,dispose(){r.dispose(),i==null||i.dispose(),i=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var i4t=Object.defineProperty,r4t=Object.getOwnPropertyDescriptor,a4t=Object.getOwnPropertyNames,o4t=Object.prototype.hasOwnProperty,S0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of a4t(e))!o4t.call(u,i)&&i!==t&&i4t(u,i,{get:()=>e[i],enumerable:!(n=r4t(e,i))||n.enumerable});return u},s4t=(u,e,t)=>(S0e(u,e,"default"),t&&S0e(t,e,"default")),rA={};s4t(rA,iA);var l4t=class{constructor(e,t,n){Fn(this,"_onDidChange",new rA.Emitter);Fn(this,"_diagnosticsOptions");Fn(this,"_modeConfiguration");Fn(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},c4t={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},d4t={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Yke=new l4t("json",c4t,d4t);rA.languages.json={jsonDefaults:Yke};function h4t(){return Le(()=>import("./jsonMode-864dd819.js"),[],import.meta.url)}rA.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});rA.languages.onLanguage("json",()=>{h4t().then(u=>u.setupMode(Yke))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var i4t=Object.defineProperty,r4t=Object.getOwnPropertyDescriptor,a4t=Object.getOwnPropertyNames,o4t=Object.prototype.hasOwnProperty,S0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of a4t(e))!o4t.call(u,i)&&i!==t&&i4t(u,i,{get:()=>e[i],enumerable:!(n=r4t(e,i))||n.enumerable});return u},s4t=(u,e,t)=>(S0e(u,e,"default"),t&&S0e(t,e,"default")),rA={};s4t(rA,iA);var l4t=class{constructor(e,t,n){Fn(this,"_onDidChange",new rA.Emitter);Fn(this,"_diagnosticsOptions");Fn(this,"_modeConfiguration");Fn(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},c4t={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},d4t={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Yke=new l4t("json",c4t,d4t);rA.languages.json={jsonDefaults:Yke};function h4t(){return Le(()=>import("./jsonMode-5716b9eb.js"),[],import.meta.url)}rA.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});rA.languages.onLanguage("json",()=>{h4t().then(u=>u.setupMode(Yke))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var E4t=Object.defineProperty,g4t=Object.getOwnPropertyDescriptor,m4t=Object.getOwnPropertyNames,f4t=Object.prototype.hasOwnProperty,B0e=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of m4t(e))!f4t.call(u,i)&&i!==t&&E4t(u,i,{get:()=>e[i],enumerable:!(n=g4t(e,i))||n.enumerable});return u},p4t=(u,e,t)=>(B0e(u,e,"default"),t&&B0e(t,e,"default")),D4t="5.0.2",uv={};p4t(uv,iA);var Qke=(u=>(u[u.None=0]="None",u[u.CommonJS=1]="CommonJS",u[u.AMD=2]="AMD",u[u.UMD=3]="UMD",u[u.System=4]="System",u[u.ES2015=5]="ES2015",u[u.ESNext=99]="ESNext",u))(Qke||{}),Xke=(u=>(u[u.None=0]="None",u[u.Preserve=1]="Preserve",u[u.React=2]="React",u[u.ReactNative=3]="ReactNative",u[u.ReactJSX=4]="ReactJSX",u[u.ReactJSXDev=5]="ReactJSXDev",u))(Xke||{}),e2e=(u=>(u[u.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",u[u.LineFeed=1]="LineFeed",u))(e2e||{}),t2e=(u=>(u[u.ES3=0]="ES3",u[u.ES5=1]="ES5",u[u.ES2015=2]="ES2015",u[u.ES2016=3]="ES2016",u[u.ES2017=4]="ES2017",u[u.ES2018=5]="ES2018",u[u.ES2019=6]="ES2019",u[u.ES2020=7]="ES2020",u[u.ESNext=99]="ESNext",u[u.JSON=100]="JSON",u[u.Latest=99]="Latest",u))(t2e||{}),u2e=(u=>(u[u.Classic=1]="Classic",u[u.NodeJs=2]="NodeJs",u))(u2e||{}),n2e=class{constructor(u,e,t,n,i){Fn(this,"_onDidChange",new uv.Emitter);Fn(this,"_onDidExtraLibsChange",new uv.Emitter);Fn(this,"_extraLibs");Fn(this,"_removedExtraLibs");Fn(this,"_eagerModelSync");Fn(this,"_compilerOptions");Fn(this,"_diagnosticsOptions");Fn(this,"_workerOptions");Fn(this,"_onDidExtraLibsChangeTimeout");Fn(this,"_inlayHintsOptions");Fn(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(u),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(n),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(u,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===u)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(n=this._extraLibs[t].version+1),this._extraLibs[t]={content:u,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let i=this._extraLibs[t];i&&i.version===n&&(delete this._extraLibs[t],this._removedExtraLibs[t]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(u){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),u&&u.length>0)for(const e of u){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=e.content;let i=1;this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:n,version:i}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(u){this._compilerOptions=u||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(u){this._diagnosticsOptions=u||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(u){this._workerOptions=u||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(u){this._inlayHintsOptions=u||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(u){}setEagerModelSync(u){this._eagerModelSync=u}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(u){this._modeConfiguration=u||Object.create(null),this._onDidChange.fire(void 0)}},x4t=D4t,i2e={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},r2e=new n2e({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},i2e),a2e=new n2e({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},i2e),v4t=()=>xN().then(u=>u.getTypeScriptWorker()),C4t=()=>xN().then(u=>u.getJavaScriptWorker());uv.languages.typescript={ModuleKind:Qke,JsxEmit:Xke,NewLineKind:e2e,ScriptTarget:t2e,ModuleResolutionKind:u2e,typescriptVersion:x4t,typescriptDefaults:r2e,javascriptDefaults:a2e,getTypeScriptWorker:v4t,getJavaScriptWorker:C4t};function xN(){return Le(()=>import("./tsMode-4e2980bd.js"),[],import.meta.url)}uv.languages.onLanguage("typescript",()=>xN().then(u=>u.setupTypeScript(r2e)));uv.languages.onLanguage("javascript",()=>xN().then(u=>u.setupJavaScript(a2e)));var b4t=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},k4t=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},vN=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const CN=new Ne("selectionAnchorSet",!1);let t4=class o2e{static get(e){return e.getContribution(o2e.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=CN.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Ze.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new _r().appendText(v("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Aa(v("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Ze.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};t4.ID="editor.contrib.selectionAnchorController";t4=b4t([k4t(1,Et)],t4);class y4t extends je{constructor(){super({id:"editor.action.setSelectionAnchor",label:v("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:Ri(2089,2080),weight:100}})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.setSelectionAnchor()})}}class F4t extends je{constructor(){super({id:"editor.action.goToSelectionAnchor",label:v("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:CN})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.goToSelectionAnchor()})}}class A4t extends je{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:v("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:CN,kbOpts:{kbExpr:K.editorTextFocus,primary:Ri(2089,2089),weight:100}})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.selectFromAnchorToCursor()})}}class _4t extends je{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:v("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:CN,kbOpts:{kbExpr:K.editorTextFocus,primary:9,weight:100}})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.cancelSelectionAnchor()})}}Eu(t4.ID,t4,4);be(y4t);be(F4t);be(A4t);be(_4t);const S4t=U("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},v("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class B4t extends je{constructor(){super({id:"editor.action.jumpToBracket",label:v("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:3165,weight:100}})}run(e,t){var n;(n=xl.get(t))===null||n===void 0||n.jumpToBracket()}}class w4t extends je{constructor(){super({id:"editor.action.selectToBracket",label:v("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){var i;let r=!0;n&&n.selectBrackets===!1&&(r=!1),(i=xl.get(t))===null||i===void 0||i.selectToBracket(r)}}class z4t extends je{constructor(){super({id:"editor.action.removeBrackets",label:v("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:2561,weight:100}})}run(e,t){var n;(n=xl.get(t))===null||n===void 0||n.removeBrackets(this.id)}}class L4t{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class xl extends ie{static get(e){return e.getContribution(xl.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Hu(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(70),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(70)&&(this._matchBrackets=this._editor.getOption(70),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{const i=n.getStartPosition(),r=e.bracketPairs.matchBracket(i);let a=null;if(r)r[0].containsPosition(i)&&!r[1].containsPosition(i)?a=r[1].getStartPosition():r[1].containsPosition(i)&&(a=r[0].getStartPosition());else{const o=e.bracketPairs.findEnclosingBrackets(i);if(o)a=o[1].getStartPosition();else{const s=e.bracketPairs.findNextBracket(i);s&&s.range&&(a=s.range.getStartPosition())}}return a?new Ze(a.lineNumber,a.column,a.lineNumber,a.column):new Ze(i.lineNumber,i.column,i.lineNumber,i.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(i=>{const r=i.getStartPosition();let a=t.bracketPairs.matchBracket(r);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(r),!a)){const l=t.bracketPairs.findNextBracket(r);l&&l.range&&(a=t.bracketPairs.matchBracket(l.range.getStartPosition()))}let o=null,s=null;if(a){a.sort(O.compareRangesUsingStarts);const[l,c]=a;if(o=e?l.getStartPosition():l.getEndPosition(),s=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(r)){const d=o;o=s,s=d}}o&&s&&n.push(new Ze(o.lineNumber,o.column,s.lineNumber,s.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(n=>{const i=n.getPosition();let r=t.bracketPairs.matchBracket(i);r||(r=t.bracketPairs.findEnclosingBrackets(i)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const n of this._lastBracketsData){const i=n.brackets;i&&(e[t++]={range:i[0],options:n.options},e[t++]={range:i[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),n=t.getVersionId();let i=[];this._lastVersionId===n&&(i=this._lastBracketsData);const r=[];let a=0;for(let d=0,h=e.length;d1&&r.sort(ue.compare);const o=[];let s=0,l=0;const c=i.length;for(let d=0,h=r.length;d0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}}be(N4t);var R4t=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const B3="9_cutcopypaste",I4t=wc||document.queryCommandSupported("cut"),l2e=wc||document.queryCommandSupported("copy"),O4t=typeof navigator.clipboard>"u"||F0?document.queryCommandSupported("paste"):!0;function tee(u){return u.register(),u}const j4t=I4t?tee(new Yv({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:wc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:G.MenubarEditMenu,group:"2_ccp",title:v({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:G.EditorContext,group:B3,title:v("actions.clipboard.cutLabel","Cut"),when:K.writable,order:1},{menuId:G.CommandPalette,group:"",title:v("actions.clipboard.cutLabel","Cut"),order:1},{menuId:G.SimpleEditorContext,group:B3,title:v("actions.clipboard.cutLabel","Cut"),when:K.writable,order:1}]})):void 0,V4t=l2e?tee(new Yv({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:wc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:G.MenubarEditMenu,group:"2_ccp",title:v({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:G.EditorContext,group:B3,title:v("actions.clipboard.copyLabel","Copy"),order:2},{menuId:G.CommandPalette,group:"",title:v("actions.clipboard.copyLabel","Copy"),order:1},{menuId:G.SimpleEditorContext,group:B3,title:v("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;oa.appendMenuItem(G.MenubarEditMenu,{submenu:G.MenubarCopy,title:{value:v("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});oa.appendMenuItem(G.EditorContext,{submenu:G.EditorContextCopy,title:{value:v("copy as","Copy As"),original:"Copy As"},group:B3,order:3});oa.appendMenuItem(G.EditorContext,{submenu:G.EditorContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1,when:pe.and(pe.notEquals("resourceScheme","output"),K.editorTextFocus)});oa.appendMenuItem(G.EditorTitleContext,{submenu:G.EditorTitleContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1});oa.appendMenuItem(G.ExplorerContext,{submenu:G.ExplorerContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1});const Vj=O4t?tee(new Yv({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:wc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:G.MenubarEditMenu,group:"2_ccp",title:v({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:G.EditorContext,group:B3,title:v("actions.clipboard.pasteLabel","Paste"),when:K.writable,order:4},{menuId:G.CommandPalette,group:"",title:v("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:G.SimpleEditorContext,group:B3,title:v("actions.clipboard.pasteLabel","Paste"),when:K.writable,order:4}]})):void 0;class H4t extends je{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:v("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:K.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(36)&&t.getSelection().isEmpty()||(oW.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),oW.forceCopyWithSyntaxHighlighting=!1)}}function c2e(u,e){u&&(u.addImplementation(1e4,"code-editor",(t,n)=>{const i=t.get(hu).getFocusedCodeEditor();if(i&&i.hasTextFocus()){const r=i.getOption(36),a=i.getSelection();return a&&a.isEmpty()&&!r||document.execCommand(e),!0}return!1}),u.addImplementation(0,"generic-dom",(t,n)=>(document.execCommand(e),!0)))}c2e(j4t,"cut");c2e(V4t,"copy");Vj&&(Vj.addImplementation(1e4,"code-editor",(u,e)=>{const t=u.get(hu),n=u.get(td),i=t.getFocusedCodeEditor();return i&&i.hasTextFocus()?!document.execCommand("paste")&&em?(()=>R4t(void 0,void 0,void 0,function*(){const a=yield n.readText();if(a!==""){const o=i2.INSTANCE.get(a);let s=!1,l=null,c=null;o&&(s=i.getOption(36)&&!!o.isFromEmptySelection,l=typeof o.multicursorText<"u"?o.multicursorText:null,c=o.mode),i.trigger("keyboard","paste",{text:a,pasteOnNewLine:s,multicursorText:l,mode:c})}}))():!0:!1}),Vj.addImplementation(0,"generic-dom",(u,e)=>(document.execCommand("paste"),!0)));l2e&&be(H4t);var $4t=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let _t=class TS{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+TS.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new TS(this.value+TS.sep+e)}};_t.sep=".";_t.None=new _t("@@none@@");_t.Empty=new _t("");_t.QuickFix=new _t("quickfix");_t.Refactor=new _t("refactor");_t.RefactorExtract=_t.Refactor.append("extract");_t.RefactorInline=_t.Refactor.append("inline");_t.RefactorMove=_t.Refactor.append("move");_t.RefactorRewrite=_t.Refactor.append("rewrite");_t.Source=new _t("source");_t.SourceOrganizeImports=_t.Source.append("organizeImports");_t.SourceFixAll=_t.Source.append("fixAll");_t.SurroundWith=_t.Refactor.append("surround");var Ks;(function(u){u.Refactor="refactor",u.RefactorPreview="refactor preview",u.Lightbulb="lightbulb",u.Default="other (default)",u.SourceAction="source action",u.QuickFix="quick fix action",u.FixAll="fix all",u.OrganizeImports="organize imports",u.AutoFix="auto fix",u.QuickFixHover="quick fix hover window",u.OnSave="save participants",u.ProblemsView="problems view"})(Ks||(Ks={}));function K4t(u,e){return!(u.include&&!u.include.intersects(e)||u.excludes&&u.excludes.some(t=>d2e(e,t,u.include))||!u.includeSourceActions&&_t.Source.contains(e))}function W4t(u,e){const t=e.kind?new _t(e.kind):void 0;return!(u.include&&(!t||!u.include.contains(t))||u.excludes&&t&&u.excludes.some(n=>d2e(t,n,u.include))||!u.includeSourceActions&&t&&_t.Source.contains(t)||u.onlyIncludePreferredActions&&!e.isPreferred)}function d2e(u,e,t){return!(!e.contains(u)||t&&e.contains(t))}class Id{static fromUser(e,t){return!e||typeof e!="object"?new Id(t.kind,t.apply,!1):new Id(Id.getKindFromUser(e,t.kind),Id.getApplyFromUser(e,t.apply),Id.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new _t(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}}class G4t{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return $4t(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let n;try{n=yield this.provider.resolveCodeAction(this.action,e)}catch(i){Ni(i)}n&&(this.action.edit=n.edit)}return this})}}var uw=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const h2e="editor.action.codeAction",uee="editor.action.quickFix",E2e="editor.action.autoFix",g2e="editor.action.refactor",m2e="editor.action.sourceAction",nee="editor.action.organizeImports",iee="editor.action.fixAll";class tk extends ie{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return ca(e.diagnostics)?ca(t.diagnostics)?tk.codeActionsPreferredComparator(e,t):-1:ca(t.diagnostics)?1:tk.codeActionsPreferredComparator(e,t)}constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=[...e].sort(tk.codeActionsComparator),this.validActions=this.allActions.filter(({action:i})=>!i.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&_t.QuickFix.contains(new _t(e.kind))&&!!e.isPreferred)}}const w0e={actions:[],documentation:void 0};function ree(u,e,t,n,i,r){var a;return uw(this,void 0,void 0,function*(){const o=n.filter||{},s={only:(a=o.include)===null||a===void 0?void 0:a.value,trigger:n.type},l=new JX(e,r),c=U4t(u,e,o),d=new fe,h=c.map(g=>uw(this,void 0,void 0,function*(){try{i.report(g);const m=yield g.provideCodeActions(e,t,s,l.token);if(m&&d.add(m),l.token.isCancellationRequested)return w0e;const f=((m==null?void 0:m.actions)||[]).filter(D=>D&&W4t(o,D)),p=J4t(g,f,o.include);return{actions:f.map(D=>new G4t(D,g)),documentation:p}}catch(m){if(Xc(m))throw m;return Ni(m),w0e}})),E=u.onDidChange(()=>{const g=u.all(e);Ur(g,c)||l.cancel()});try{const g=yield Promise.all(h),m=g.map(p=>p.actions).flat(),f=[...c1(g.map(p=>p.documentation)),...q4t(u,e,n,m)];return new tk(m,f,d)}finally{E.dispose(),l.dispose()}})}function U4t(u,e,t){return u.all(e).filter(n=>n.providedCodeActionKinds?n.providedCodeActionKinds.some(i=>K4t(t,new _t(i))):!0)}function*q4t(u,e,t,n){var i,r,a;if(e&&n.length)for(const o of u.all(e))o._getAdditionalMenuItems&&(yield*(i=o._getAdditionalMenuItems)===null||i===void 0?void 0:i.call(o,{trigger:t.type,only:(a=(r=t.filter)===null||r===void 0?void 0:r.include)===null||a===void 0?void 0:a.value},n.map(s=>s.action)))}function J4t(u,e,t){if(!u.documentation)return;const n=u.documentation.map(i=>({kind:new _t(i.kind),command:i.command}));if(t){let i;for(const r of n)r.kind.contains(t)&&(i?i.kind.contains(r.kind)&&(i=r):i=r);if(i)return i==null?void 0:i.command}for(const i of e)if(i.kind){for(const r of n)if(r.kind.contains(new _t(i.kind)))return r.command}}var nw;(function(u){u.OnSave="onSave",u.FromProblemsView="fromProblemsView",u.FromCodeActions="fromCodeActions"})(nw||(nw={}));function Z4t(u,e,t,n,i=Vt.None){var r;return uw(this,void 0,void 0,function*(){const a=u.get(YF),o=u.get(ei),s=u.get(Ys),l=u.get(ci);if(s.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(i),!i.isCancellationRequested&&!(!((r=e.action.edit)===null||r===void 0)&&r.edits.length&&!(yield a.apply(e.action.edit,{editor:n==null?void 0:n.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==nw.OnSave,showPreview:n==null?void 0:n.preview})).isApplied)&&e.action.command)try{yield o.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(c){const d=Y4t(c);l.error(typeof d=="string"?d:v("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Y4t(u){return typeof u=="string"?u:u instanceof Error&&typeof u.message=="string"?u.message:void 0}Xt.registerCommand("_executeCodeActionProvider",function(u,e,t,n,i){return uw(this,void 0,void 0,function*(){if(!(e instanceof lt))throw p0();const{codeActionProvider:r}=u.get($e),a=u.get(Bn).getModel(e);if(!a)throw p0();const o=Ze.isISelection(t)?Ze.liftSelection(t):O.isIRange(t)?a.validateRange(t):void 0;if(!o)throw p0();const s=typeof n=="string"?new _t(n):void 0,l=yield ree(r,a,o,{type:1,triggerAction:Ks.Default,filter:{includeSourceActions:!0,include:s}},_p.None,Vt.None),c=[],d=Math.min(l.validActions.length,typeof i=="number"?i:0);for(let h=0;hh.action)}finally{setTimeout(()=>l.dispose(),100)}})});var Q4t=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},X4t=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let iw=class f2e{constructor(e){this.keybindingService=e}getResolver(){const e=new nm(()=>this.keybindingService.getKeybindings().filter(t=>f2e.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command===nee?n={kind:_t.SourceOrganizeImports.value}:t.command===iee&&(n={kind:_t.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Id.fromUser(n,{kind:_t.None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.value);return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new _t(e.kind);return t.filter(i=>i.kind.contains(n)).filter(i=>i.preferred?e.isPreferred:!0).reduceRight((i,r)=>i?i.kind.contains(r.kind)?r:i:r,void 0)}};iw.codeActionCommands=[g2e,h2e,m2e,nee,iee];iw=Q4t([X4t(0,on)],iw);U("symbolIcon.arrayForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.booleanForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.colorForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.constantForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.fileForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.folderForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.keyForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.keywordForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.moduleForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.namespaceForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.nullForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.numberForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.objectForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.operatorForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.packageForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.propertyForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.referenceForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.snippetForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.stringForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.structForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.textForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.typeParameterForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.unitForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const p2e=Object.freeze({kind:_t.Empty,title:v("codeAction.widget.id.more","More Actions...")}),eEt=Object.freeze([{kind:_t.QuickFix,title:v("codeAction.widget.id.quickfix","Quick Fix...")},{kind:_t.RefactorExtract,title:v("codeAction.widget.id.extract","Extract..."),icon:Ae.wrench},{kind:_t.RefactorInline,title:v("codeAction.widget.id.inline","Inline..."),icon:Ae.wrench},{kind:_t.RefactorRewrite,title:v("codeAction.widget.id.convert","Rewrite..."),icon:Ae.wrench},{kind:_t.RefactorMove,title:v("codeAction.widget.id.move","Move..."),icon:Ae.wrench},{kind:_t.SurroundWith,title:v("codeAction.widget.id.surround","Surround With..."),icon:Ae.symbolSnippet},{kind:_t.Source,title:v("codeAction.widget.id.source","Source Action..."),icon:Ae.symbolFile},p2e]);function tEt(u,e,t){if(!e)return u.map(r=>({kind:"action",item:r,group:p2e,disabled:!!r.action.disabled,label:r.action.disabled||r.action.title}));const n=eEt.map(r=>({group:r,actions:[]}));for(const r of u){const a=r.action.kind?new _t(r.action.kind):_t.None;for(const o of n)if(o.group.kind.contains(a)){o.actions.push(r);break}}const i=[];for(const r of n)if(r.actions.length){i.push({kind:"header",group:r.group});for(const a of r.actions)i.push({kind:"action",item:a,group:r.group,label:a.action.title,disabled:!!a.action.disabled,keybinding:t(a.action)})}return i}var uEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},nEt=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},gx;(function(u){u.Hidden={type:0};class e{constructor(n,i,r,a){this.actions=n,this.trigger=i,this.editorPosition=r,this.widgetPosition=a,this.type=1}}u.Showing=e})(gx||(gx={}));let w3=class D2e extends ie{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new ee),this.onClick=this._onClick.event,this._state=gx.Hidden,this._domNode=ve("div.lightBulbWidget"),this._register(Xu.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(n=>{const i=this._editor.getModel();(this.state.type!==1||!i||this.state.editorPosition.lineNumber>=i.getLineCount())&&this.hide()})),this._register(_Qe(this._domNode,n=>{if(this.state.type!==1)return;this._editor.focus(),n.preventDefault();const{top:i,height:r}=mi(this._domNode),a=this._editor.getOption(65);let o=Math.floor(a/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(n.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(63)&&!this._editor.getOption(63).enabled&&this.hide()})),this._register(Ke.runAndSubscribe(t.onDidUpdateKeybindings,()=>{var n,i;this._preferredKbLabel=Gr((n=t.lookupKeybinding(E2e))===null||n===void 0?void 0:n.getLabel()),this._quickFixKbLabel=Gr((i=t.lookupKeybinding(uee))===null||i===void 0?void 0:i.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();const i=this._editor.getOptions();if(!i.get(63).enabled)return this.hide();const r=this._editor.getModel();if(!r)return this.hide();const{lineNumber:a,column:o}=r.validatePosition(n),s=r.getOptions().tabSize,l=i.get(49),c=r.getLineContent(a),d=RP(c,s),h=l.spaceWidth*d>22,E=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let g=a;if(!h){if(a>1&&!E(a-1))g-=1;else if(!E(a+1))g+=1;else if(o*l.spaceWidth<22)return this.hide()}this.state=new gx.Showing(e,t,n,{position:{lineNumber:g,column:1},preference:D2e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==gx.Hidden&&(this.state=gx.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...et.asClassNameArray(Ae.lightBulb)),this._domNode.classList.add(...et.asClassNameArray(Ae.lightbulbAutofix)),this._preferredKbLabel)){this.title=v("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...et.asClassNameArray(Ae.lightbulbAutofix)),this._domNode.classList.add(...et.asClassNameArray(Ae.lightBulb)),this._quickFixKbLabel?this.title=v("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=v("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};w3.ID="editor.contrib.lightbulbWidget";w3._posPref=[0];w3=uEt([nEt(1,on)],w3);var iEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},z0e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},x2e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let u4=class v2e{constructor(e,t,n){this._options=e,this._languageService=t,this._openerService=n,this._onDidRenderAsync=new ee,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,n){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const i=new fe,r=i.add(UP(e,Object.assign(Object.assign({},this._getRenderOptions(e,i)),t),n));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>i.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(n,i)=>x2e(this,void 0,void 0,function*(){var r,a,o;let s;n?s=this._languageService.getLanguageIdByLanguageName(n):this._options.editor&&(s=(r=this._options.editor.getModel())===null||r===void 0?void 0:r.getLanguageId()),s||(s=Ns);const l=yield brt(this._languageService,i,s),c=document.createElement("span");if(c.innerHTML=(o=(a=v2e._ttpTokenizer)===null||a===void 0?void 0:a.createHTML(l))!==null&&o!==void 0?o:l,this._options.editor){const d=this._options.editor.getOption(49);tr(c,d)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:n=>C2e(this._openerService,n,e.isTrusted),disposables:t}}}};u4._ttpTokenizer=g4("tokenizeToString",{createHTML(u){return u}});u4=iEt([z0e(1,Dn),z0e(2,gs)],u4);function C2e(u,e,t){return x2e(this,void 0,void 0,function*(){try{return yield u.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:rEt(t)})}catch(n){return wt(n),!1}})}function rEt(u){return u===!0?!0:u&&Array.isArray(u.enabledCommands)?u.enabledCommands:!1}var aEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},L0e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let is=class eU{static get(e){return e.getContribution(eU.ID)}constructor(e,t,n){this._openerService=n,this._messageWidget=new Qr,this._messageListeners=new fe,this._mouseOverMessage=!1,this._editor=e,this._visible=eU.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Aa(qE(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=qE(e)?UP(e,{actionHandler:{callback:i=>C2e(this._openerService,i,qE(e)?e.isTrusted:void 0),disposables:this._messageListeners}}):void 0,this._messageWidget.value=new M0e(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(Ke.debounce(this._editor.onDidBlurEditorText,(i,r)=>r,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&zo(document.activeElement,this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(ce(this._messageWidget.value.getDomNode(),Me.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(ce(this._messageWidget.value.getDomNode(),Me.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let n;this._messageListeners.add(this._editor.onMouseMove(i=>{i.target.position&&(n?n.containsPosition(i.target.position)||this.closeMessage():n=new O(t.lineNumber-3,1,i.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(M0e.fadeOut(this._messageWidget.value))}};is.ID="editor.contrib.messageController";is.MESSAGE_VISIBLE=new Ne("messageVisible",!1,v("messageVisible","Whether the editor is currently showing an inline message"));is=aEt([L0e(1,Et),L0e(2,gs)],is);const oEt=Dr.bindToContribution(is.get);Be(new oEt({id:"leaveEditorMessage",precondition:is.MESSAGE_VISIBLE,handler:u=>u.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let M0e=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:n},i){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const a=document.createElement("div");typeof i=="string"?(a.classList.add("message"),a.textContent=i):(i.classList.add("message"),a.appendChild(i)),this._domNode.appendChild(a);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Eu(is.ID,is,4);var b2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},tU=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const k2e="acceptSelectedCodeAction",y2e="previewSelectedCodeAction";class sEt{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,n){var i,r;n.text.textContent=(r=(i=e.group)===null||i===void 0?void 0:i.title)!==null&&r!==void 0?r:""}disposeTemplate(e){}}let uU=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const n=document.createElement("span");n.className="title",e.append(n);const i=new eA(e,Ss);return{container:e,icon:t,text:n,keybinding:i}}renderElement(e,t,n){var i,r,a;if(!((i=e.group)===null||i===void 0)&&i.icon?(n.icon.className=et.asClassName(e.group.icon),e.group.icon.color&&(n.icon.style.color=Te(e.group.icon.color.id))):(n.icon.className=et.asClassName(Ae.lightBulb),n.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;n.text.textContent=F2e(e.label),n.keybinding.set(e.keybinding),RQe(!!e.keybinding,n.keybinding.element);const o=(r=this._keybindingService.lookupKeybinding(k2e))===null||r===void 0?void 0:r.getLabel(),s=(a=this._keybindingService.lookupKeybinding(y2e))===null||a===void 0?void 0:a.getLabel();n.container.classList.toggle("option-disabled",e.disabled),e.disabled?n.container.title=e.label:o&&s?this._supportsPreview?n.container.title=v({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",o,s):n.container.title=v({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",o):n.container.title=""}disposeTemplate(e){}};uU=b2e([tU(1,on)],uU);class lEt extends UIEvent{constructor(){super("acceptSelectedAction")}}class T0e extends UIEvent{constructor(){super("previewSelectedAction")}}let nU=class extends ie{constructor(e,t,n,i,r,a){super(),this._delegate=i,this._contextViewService=r,this._keybindingService=a,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:s=>s.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:s=>s.kind};this._list=this._register(new Vl(e,this.domNode,o,[new uU(t,this._keybindingService),new sEt],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:s=>{if(s.kind==="action"){let l=s.label?F2e(s==null?void 0:s.label):"";return s.disabled&&(l=v({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",l,s.disabled)),l}return null},getWidgetAriaLabel:()=>v({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:s=>s.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Sp),this._register(this._list.onMouseClick(s=>this.onListClick(s))),this._register(this._list.onMouseOver(s=>this.onListHover(s))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(s=>this.onListSelection(s))),this._allMenuItems=n,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(l=>l.kind==="header").length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);const r=this._allMenuItems.map((l,c)=>{const d=document.getElementById(this._list.getElementID(c));if(d){d.style.width="auto";const h=d.getBoundingClientRect().width;return d.style.width="",h}return 0}),a=Math.max(...r,e),o=.7,s=Math.min(i,document.body.clientHeight*o);return this._list.layout(s,a),this.domNode.style.height=`${s}px`,this._list.domFocus(),a}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const n=t[0],i=this._list.element(n);if(!this.focusCondition(i))return;const r=e?new T0e:new lEt;this._list.setSelection([n],r)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof T0e):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};nU=b2e([tU(4,f4),tU(5,on)],nU);function F2e(u){return u.replace(/\r\n|\r|\n/g," ")}var cEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Hj=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const z3={Visible:new Ne("codeActionMenuVisible",!1,v("codeActionMenuVisible","Whether the action widget list is visible"))},zp=Gt("actionWidgetService");let L3=class extends ie{get isVisible(){return z3.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,n){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=n,this._list=this._register(new Qr)}show(e,t,n,i,r,a,o){const s=z3.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(nU,e,t,n,i);this._contextViewService.showContextView({getAnchor:()=>r,render:c=>(s.set(!0),this._renderWidget(c,l,o??[])),onHide:c=>{s.reset(),this._onWidgetClosed(c)}},a,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,n){var i;const r=document.createElement("div");if(r.classList.add("action-widget"),e.appendChild(r),this._list.value=t,this._list.value)r.appendChild(this._list.value.domNode);else throw new Error("List has no value");const a=new fe,o=document.createElement("div"),s=e.appendChild(o);s.classList.add("context-view-block"),a.add(ce(s,Me.MOUSE_DOWN,g=>g.stopPropagation()));const l=document.createElement("div"),c=e.appendChild(l);c.classList.add("context-view-pointerBlock"),a.add(ce(c,Me.POINTER_MOVE,()=>c.remove())),a.add(ce(c,Me.MOUSE_DOWN,()=>c.remove()));let d=0;if(n.length){const g=this._createActionBar(".action-widget-action-bar",n);g&&(r.appendChild(g.getContainer().parentElement),a.add(g),d=g.getContainer().offsetWidth)}const h=(i=this._list.value)===null||i===void 0?void 0:i.layout(d);r.style.width=`${h}px`;const E=a.add(g1(e));return a.add(E.onDidBlur(()=>this.hide())),a}_createActionBar(e,t){if(!t.length)return;const n=ve(e),i=new $s(n);return i.push(t,{icon:!1,label:!0}),i}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};L3=cEt([Hj(0,f4),Hj(1,Et),Hj(2,mt)],L3);iu(zp,L3,1);const aA=100+1e3;fi(class extends ed{constructor(){super({id:"hideCodeActionWidget",title:{value:v("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:z3.Visible,keybinding:{weight:aA,primary:9,secondary:[1033]}})}run(u){u.get(zp).hide()}});fi(class extends ed{constructor(){super({id:"selectPrevCodeAction",title:{value:v("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:z3.Visible,keybinding:{weight:aA,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(u){const e=u.get(zp);e instanceof L3&&e.focusPrevious()}});fi(class extends ed{constructor(){super({id:"selectNextCodeAction",title:{value:v("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:z3.Visible,keybinding:{weight:aA,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(u){const e=u.get(zp);e instanceof L3&&e.focusNext()}});fi(class extends ed{constructor(){super({id:k2e,title:{value:v("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:z3.Visible,keybinding:{weight:aA,primary:3,secondary:[2137]}})}run(u){const e=u.get(zp);e instanceof L3&&e.acceptSelected()}});fi(class extends ed{constructor(){super({id:y2e,title:{value:v("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:z3.Visible,keybinding:{weight:aA,primary:2051}})}run(u){const e=u.get(zp);e instanceof L3&&e.acceptSelected(!0)}});const A2e=new Ne("supportedCodeAction","");class dEt extends ie{constructor(e,t,n,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._autoTriggerTimer=this._register(new Il),this._register(this._markerService.onMarkerChanged(r=>this._onMarkerChanges(r))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(n=>OP(n,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Ks.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&e.type===2){const{lineNumber:i,column:r}=n.getPosition(),a=t.getLineContent(i);if(a.length===0)return;if(r===1){if(/\s/.test(a[0]))return}else if(r===t.getLineMaxColumn(i)){if(/\s/.test(a[a.length-1]))return}else if(/\s/.test(a[r-2])&&/\s/.test(a[r-1]))return}return n}}var mf;(function(u){u.Empty={type:0};class e{constructor(n,i,r){this.trigger=n,this.position=i,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Xc(a))return hEt;throw a})}cancel(){this._cancellablePromise.cancel()}}u.Triggered=e})(mf||(mf={}));const hEt=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1});class EEt extends ie{constructor(e,t,n,i,r){super(),this._editor=e,this._registry=t,this._markerService=n,this._progressService=r,this._codeActionOracle=this._register(new Qr),this._state=mf.Empty,this._onDidChangeState=this._register(new ee),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=A2e.bindTo(i),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(mf.Empty,!0))}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(mf.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(89)){const t=this._registry.all(e).flatMap(n=>{var i;return(i=n.providedCodeActionKinds)!==null&&i!==void 0?i:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new dEt(this._editor,this._markerService,n=>{var i;if(!n){this.setState(mf.Empty);return}const r=$i(a=>ree(this._registry,e,n.selection,n.trigger,_p.None,a));n.trigger.type===1&&((i=this._progressService)===null||i===void 0||i.showWhile(r,250)),this.setState(new mf.Triggered(n.trigger,n.selection.getStartPosition(),r))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Ks.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}var gEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},J1=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},l7=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let M3=class _2e extends ie{static get(e){return e.getContribution(_2e.ID)}constructor(e,t,n,i,r,a,o,s,l,c){super(),this._commandService=o,this._configurationService=s,this._actionWidgetService=l,this._instantiationService=c,this._activeCodeActions=this._register(new Qr),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new EEt(this._editor,r.codeActionProvider,t,n,a)),this._register(this._model.onDidChangeState(d=>this.update(d))),this._lightBulbWidget=new nm(()=>{const d=this._editor.getContribution(w3.ID);return d&&this._register(d.onClick(h=>this.showCodeActionList(h.actions,h,{includeDisabledActions:!1,fromLightbulb:!0}))),d}),this._resolver=i.createInstance(iw),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}showCodeActions(e,t,n){return this.showCodeActionList(t,n,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,n,i){var r;if(!this._editor.hasModel())return;(r=is.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:n,autoApply:i,context:{notAvailableMessage:e,position:a}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,n){return l7(this,void 0,void 0,function*(){try{yield this._instantiationService.invokeFunction(Z4t,e,nw.FromCodeActions,{preview:n,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Ks.QuickFix,filter:{}})}})}update(e){var t,n,i,r,a,o,s;return l7(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let l;try{l=yield e.actions}catch(c){wt(c);return}if(!this._disposed)if((n=this._lightBulbWidget.value)===null||n===void 0||n.update(l,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const d=this.tryGetValidActionToApply(e.trigger,l);if(d){try{(r=this._lightBulbWidget.value)===null||r===void 0||r.hide(),yield this._applyCodeAction(d,!1,!1)}finally{l.dispose()}return}if(e.trigger.context){const h=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,l);if(h&&h.action.disabled){(a=is.get(this._editor))===null||a===void 0||a.showMessage(h.action.disabled,e.trigger.context.position),l.dispose();return}}}const c=!!(!((o=e.trigger.filter)===null||o===void 0)&&o.include);if(e.trigger.context&&(!l.allActions.length||!c&&!l.validActions.length)){(s=is.get(this._editor))===null||s===void 0||s.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=l,l.dispose();return}this._activeCodeActions.value=l,this.showCodeActionList(l,this.toCoords(e.position),{includeDisabledActions:c,fromLightbulb:!1})}else this._actionWidgetService.isVisible?l.dispose():this._activeCodeActions.value=l})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:n})=>n.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,n){return l7(this,void 0,void 0,function*(){const i=this._editor.getDomNode();if(!i)return;const r=n.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!r.length)return;const a=ue.isIPosition(t)?this.toCoords(t):t,o={onSelect:(s,l)=>l7(this,void 0,void 0,function*(){this._applyCodeAction(s,!0,!!l),this._actionWidgetService.hide()}),onHide:()=>{var s;(s=this._editor)===null||s===void 0||s.focus()}};this._actionWidgetService.show("codeActionWidget",!0,tEt(r,this._shouldShowHeaders(),this._resolver.getResolver()),o,a,i,this._getActionBarActions(e,t,n))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=mi(this._editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height;return{x:i,y:r}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,n){if(n.fromLightbulb)return[];const i=e.documentation.map(r=>{var a;return{id:r.id,label:r.title,tooltip:(a=r.tooltip)!==null&&a!==void 0?a:"",class:void 0,enabled:!0,run:()=>{var o;return this._commandService.executeCommand(r.id,...(o=r.arguments)!==null&&o!==void 0?o:[])}}});return n.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&i.push(this._showDisabled?{id:"hideMoreActions",label:v("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,n))}:{id:"showMoreActions",label:v("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,n))}),i}};M3.ID="editor.contrib.codeActionController";M3=gEt([J1(1,T1),J1(2,Et),J1(3,mt),J1(4,$e),J1(5,p4),J1(6,ei),J1(7,nu),J1(8,zp),J1(9,mt)],M3);function oA(u){return pe.regex(A2e.keys()[0],new RegExp("(\\s|^)"+Vs(u.value)+"\\b"))}const aee={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:v("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:v("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[v("args.schema.apply.first","Always apply the first returned code action."),v("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),v("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:v("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function Lp(u,e,t,n,i=Ks.Default){if(u.hasModel()){const r=M3.get(u);r==null||r.manualTriggerAtCurrentPosition(e,i,t,n)}}class mEt extends je{constructor(){super({id:uee,label:v("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:pe.and(K.writable,K.hasCodeActionsProvider),kbOpts:{kbExpr:K.textInputFocus,primary:2137,weight:100}})}run(e,t){return Lp(t,v("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Ks.QuickFix)}}class fEt extends Dr{constructor(){super({id:h2e,precondition:pe.and(K.writable,K.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:aee}]}})}runEditorCommand(e,t,n){const i=Id.fromUser(n,{kind:_t.Empty,apply:"ifSingle"});return Lp(t,typeof(n==null?void 0:n.kind)=="string"?i.preferred?v("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):v("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?v("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):v("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class pEt extends je{constructor(){super({id:g2e,label:v("refactor.label","Refactor..."),alias:"Refactor...",precondition:pe.and(K.writable,K.hasCodeActionsProvider),kbOpts:{kbExpr:K.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:pe.and(K.writable,oA(_t.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:aee}]}})}run(e,t,n){const i=Id.fromUser(n,{kind:_t.Refactor,apply:"never"});return Lp(t,typeof(n==null?void 0:n.kind)=="string"?i.preferred?v("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):v("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?v("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):v("editor.action.refactor.noneMessage","No refactorings available"),{include:_t.Refactor.contains(i.kind)?i.kind:_t.None,onlyIncludePreferredActions:i.preferred},i.apply,Ks.Refactor)}}class DEt extends je{constructor(){super({id:m2e,label:v("source.label","Source Action..."),alias:"Source Action...",precondition:pe.and(K.writable,K.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:pe.and(K.writable,oA(_t.Source))},description:{description:"Source Action...",args:[{name:"args",schema:aee}]}})}run(e,t,n){const i=Id.fromUser(n,{kind:_t.Source,apply:"never"});return Lp(t,typeof(n==null?void 0:n.kind)=="string"?i.preferred?v("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):v("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?v("editor.action.source.noneMessage.preferred","No preferred source actions available"):v("editor.action.source.noneMessage","No source actions available"),{include:_t.Source.contains(i.kind)?i.kind:_t.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply,Ks.SourceAction)}}class xEt extends je{constructor(){super({id:nee,label:v("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:pe.and(K.writable,oA(_t.SourceOrganizeImports)),kbOpts:{kbExpr:K.textInputFocus,primary:1581,weight:100}})}run(e,t){return Lp(t,v("editor.action.organize.noneMessage","No organize imports action available"),{include:_t.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Ks.OrganizeImports)}}class vEt extends je{constructor(){super({id:iee,label:v("fixAll.label","Fix All"),alias:"Fix All",precondition:pe.and(K.writable,oA(_t.SourceFixAll))})}run(e,t){return Lp(t,v("fixAll.noneMessage","No fix all action available"),{include:_t.SourceFixAll,includeSourceActions:!0},"ifSingle",Ks.FixAll)}}class CEt extends je{constructor(){super({id:E2e,label:v("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:pe.and(K.writable,oA(_t.QuickFix)),kbOpts:{kbExpr:K.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Lp(t,v("editor.action.autoFix.noneMessage","No auto fixes available"),{include:_t.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Ks.AutoFix)}}Eu(M3.ID,M3,3);Eu(w3.ID,w3,4);be(mEt);be(pEt);be(DEt);be(xEt);be(CEt);be(vEt);Be(new fEt);Xn.as(E4.Configuration).registerConfiguration(Object.assign(Object.assign({},pbe),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:v("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var P0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class iU{constructor(){this.lenses=[],this._disposables=new fe}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const n of e.lenses)this.lenses.push({symbol:n,provider:t})}}function S2e(u,e,t){return P0e(this,void 0,void 0,function*(){const n=u.ordered(e),i=new Map,r=new iU,a=n.map((o,s)=>P0e(this,void 0,void 0,function*(){i.set(o,s);try{const l=yield Promise.resolve(o.provideCodeLenses(e,t));l&&r.add(l,o)}catch(l){Ni(l)}}));return yield Promise.all(a),r.lenses=r.lenses.sort((o,s)=>o.symbol.range.startLineNumbers.symbol.range.startLineNumber?1:i.get(o.provider)i.get(s.provider)?1:o.symbol.range.startColumns.symbol.range.startColumn?1:0),r})}Xt.registerCommand("_executeCodeLensProvider",function(u,...e){let[t,n]=e;Iu(lt.isUri(t)),Iu(typeof n=="number"||!n);const{codeLensProvider:i}=u.get($e),r=u.get(Bn).getModel(t);if(!r)throw p0();const a=[],o=new fe;return S2e(i,r,Vt.None).then(s=>{o.add(s);const l=[];for(const c of s.lenses)n==null||c.symbol.command?a.push(c.symbol):n-- >0&&c.provider.resolveCodeLens&&l.push(Promise.resolve(c.provider.resolveCodeLens(r,c.symbol,Vt.None)).then(d=>a.push(d||c.symbol)));return Promise.all(l)}).then(()=>a).finally(()=>{setTimeout(()=>o.dispose(),100)})});var bEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},kEt=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const B2e=Gt("ICodeLensCache");class N0e{constructor(e,t){this.lineCount=e,this.data=t}}let rU=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new rm(20,.75);const t="codelens/cache";Ah(()=>e.remove(t,1));const n="codelens/cache2",i=e.get(n,1,"{}");this._deserialize(i),h1(e.onWillSaveState)(r=>{r.reason===RB.SHUTDOWN&&e.store(n,this._serialize(),1,1)})}put(e,t){const n=t.lenses.map(a=>{var o;return{range:a.symbol.range,command:a.symbol.command&&{id:"",title:(o=a.symbol.command)===null||o===void 0?void 0:o.title}}}),i=new iU;i.add({lenses:n,dispose:()=>{}},this._fakeProvider);const r=new N0e(e.getLineCount(),i);this._cache.set(e.uri.toString(),r)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,n]of this._cache){const i=new Set;for(const r of n.data.lenses)i.add(r.symbol.range.startLineNumber);e[t]={lineCount:n.lineCount,lines:[...i.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const n in t){const i=t[n],r=[];for(const o of i.lines)r.push({range:new O(o,1,o,11)});const a=new iU;a.add({lenses:r,dispose(){}},this._fakeProvider),this._cache.set(n,new N0e(i.lineCount,a))}}catch{}}};rU=bEt([kEt(0,$l)],rU);iu(B2e,rU,1);class yEt{constructor(e,t,n){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=n,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class bN{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${bN._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const n=[];let i=!1;for(let r=0;r{l.symbol.command&&s.push(l.symbol),n.addDecoration({range:l.symbol.range,options:R0e},d=>this._decorationIds[c]=d),o?o=O.plusRange(o,l.symbol.range):o=O.lift(l.symbol.range)}),this._viewZone=new yEt(o.startLineNumber-1,r,a),this._viewZoneId=i.addZone(this._viewZone),s.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(s,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new bN(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const n=this._editor.getModel().getDecorationRange(e),i=this._data[t].symbol;return!!(n&&O.isEmpty(i.range)===n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((n,i)=>{t.addDecoration({range:n.symbol.range,options:R0e},r=>this._decorationIds[i]=r)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r6=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},AEt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let nv=class{constructor(e,t,n,i,r,a){this._editor=e,this._languageFeaturesService=t,this._commandService=i,this._notificationService=r,this._codeLensCache=a,this._disposables=new fe,this._localToDispose=new fe,this._lenses=[],this._oldCodeLensModels=new fe,this._provideCodeLensDebounce=n.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=n.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new Hu(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(o=>{(o.hasChanged(49)||o.hasChanged(18)||o.hasChanged(17))&&this._updateLensStyle(),o.hasChanged(16)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(65)/this._editor.getOption(51));let t=this._editor.getOption(18);return(!t||t<5)&&(t=this._editor.getOption(51)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),n=this._editor.getOption(17),i=this._editor.getOption(49),{style:r}=this._editor.getContainerDomNode();r.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),r.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),r.setProperty("--vscode-editorCodeLens-fontFeatureSettings",i.fontFeatureSettings),n&&(r.setProperty("--vscode-editorCodeLens-fontFamily",n),r.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ns.fontFamily)),this._editor.changeViewZones(a=>{for(const o of this._lenses)o.updateHeight(e,a)})}_localDispose(){var e,t,n;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(n=this._currentCodeLensModel)===null||n===void 0||n.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(16))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(_g(()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const i of this._languageFeaturesService.codeLensProvider.all(e))if(typeof i.onDidChange=="function"){const r=i.onDidChange(()=>n.schedule());this._localToDispose.add(r)}const n=new Hu(()=>{var i;const r=Date.now();(i=this._getCodeLensModelPromise)===null||i===void 0||i.cancel(),this._getCodeLensModelPromise=$i(a=>S2e(this._languageFeaturesService.codeLensProvider,e,a)),this._getCodeLensModelPromise.then(a=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=a,this._codeLensCache.put(e,a);const o=this._provideCodeLensDebounce.update(e,Date.now()-r);n.delay=o,this._renderCodeLensSymbols(a),this._resolveCodeLensesInViewportSoon()},wt)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(n),this._localToDispose.add(bt(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var i;this._editor.changeDecorations(r=>{this._editor.changeViewZones(a=>{const o=[];let s=-1;this._lenses.forEach(c=>{!c.isValid()||s===c.getLineNumber()?o.push(c):(c.update(a),s=c.getLineNumber())});const l=new $j;o.forEach(c=>{c.dispose(l,a),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(r)})}),n.schedule(),this._resolveCodeLensesScheduler.cancel(),(i=this._resolveCodeLensesPromise)===null||i===void 0||i.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{n.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(i=>{i.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(bt(()=>{if(this._editor.getModel()){const i=Bl.capture(this._editor);this._editor.changeDecorations(r=>{this._editor.changeViewZones(a=>{this._disposeAllLenses(r,a)})}),i.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(i=>{if(i.target.type!==9)return;let r=i.target.element;if((r==null?void 0:r.tagName)==="SPAN"&&(r=r.parentElement),(r==null?void 0:r.tagName)==="A")for(const a of this._lenses){const o=a.getCommand(r);if(o){this._commandService.executeCommand(o.id,...o.arguments||[]).catch(s=>this._notificationService.error(s));break}}})),n.schedule()}_disposeAllLenses(e,t){const n=new $j;for(const i of this._lenses)i.dispose(n,t);e&&n.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),n=[];let i;for(const o of e.lenses){const s=o.symbol.range.startLineNumber;s<1||s>t||(i&&i[i.length-1].symbol.range.startLineNumber===s?i.push(o):(i=[o],n.push(i)))}if(!n.length&&!this._lenses.length)return;const r=Bl.capture(this._editor),a=this._getLayoutInfo();this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{const l=new $j;let c=0,d=0;for(;dthis._resolveCodeLensesInViewportSoon())),c++,d++)}for(;cthis._resolveCodeLensesInViewportSoon())),d++;l.commit(o)})}),r.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const n=[],i=[];if(this._lenses.forEach(o=>{const s=o.computeIfNecessary(t);s&&(n.push(s),i.push(o))}),n.length===0)return;const r=Date.now(),a=$i(o=>{const s=n.map((l,c)=>{const d=new Array(l.length),h=l.map((E,g)=>!E.symbol.command&&typeof E.provider.resolveCodeLens=="function"?Promise.resolve(E.provider.resolveCodeLens(t,E.symbol,o)).then(m=>{d[g]=m},Ni):(d[g]=E.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!o.isCancellationRequested&&!i[c].isDisposed()&&i[c].updateCommands(d)})});return Promise.all(s)});this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then(()=>{const o=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=o,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},o=>{wt(o),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};nv.ID="css.editor.codeLens";nv=FEt([r6(1,$e),r6(2,I0),r6(3,ei),r6(4,ci),r6(5,B2e)],nv);Eu(nv.ID,nv,1);be(class extends je{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:K.hasCodeLensProvider,label:v("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return AEt(this,void 0,void 0,function*(){if(!t.hasModel())return;const n=e.get(ud),i=e.get(ei),r=e.get(ci),a=t.getSelection().positionLineNumber,o=t.getContribution(nv.ID);if(!o)return;const s=o.getModel();if(!s)return;const l=[];for(const d of s.lenses)d.symbol.command&&d.symbol.range.startLineNumber===a&&l.push({label:d.symbol.command.title,command:d.symbol.command});if(l.length===0)return;const c=yield n.pick(l,{canPickMany:!1});if(c){if(s.isDisposed)return yield i.executeCommand(this.id);try{yield i.executeCommand(c.command.id,...c.command.arguments||[])}catch(d){r.error(d)}}})}});var _Et=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Kj=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},SEt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class oee{constructor(e,t){this._editorWorkerClient=new cQ(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return SEt(this,void 0,void 0,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,n){const i=t.range,r=t.color,a=r.alpha,o=new ae(new Qt(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),a)),s=a?ae.Format.CSS.formatRGB(o):ae.Format.CSS.formatRGBA(o),l=a?ae.Format.CSS.formatHSL(o):ae.Format.CSS.formatHSLA(o),c=a?ae.Format.CSS.formatHex(o):ae.Format.CSS.formatHexA(o),d=[];return d.push({label:s,textEdit:{range:i,text:s}}),d.push({label:l,textEdit:{range:i,text:l}}),d.push({label:c,textEdit:{range:i,text:c}}),d}}let aU=class extends ie{constructor(e,t,n){super(),this._register(n.colorProvider.register("*",new oee(e,t)))}};aU=_Et([Kj(0,Bn),Kj(1,an),Kj(2,$e)],aU);cN(aU);var sA=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};function w2e(u,e,t,n=!0){return sA(this,void 0,void 0,function*(){return see(new BEt,u,e,t,n)})}function z2e(u,e,t,n){return Promise.resolve(t.provideColorPresentations(u,e,n))}class BEt{constructor(){}compute(e,t,n,i){return sA(this,void 0,void 0,function*(){const r=yield e.provideDocumentColors(t,n);if(Array.isArray(r))for(const a of r)i.push({colorInfo:a,provider:e});return Array.isArray(r)})}}class wEt{constructor(){}compute(e,t,n,i){return sA(this,void 0,void 0,function*(){const r=yield e.provideDocumentColors(t,n);if(Array.isArray(r))for(const a of r)i.push({range:a.range,color:[a.color.red,a.color.green,a.color.blue,a.color.alpha]});return Array.isArray(r)})}}class zEt{constructor(e){this.colorInfo=e}compute(e,t,n,i){return sA(this,void 0,void 0,function*(){const r=yield e.provideColorPresentations(t,this.colorInfo,Vt.None);return Array.isArray(r)&&i.push(...r),Array.isArray(r)})}}function see(u,e,t,n,i){return sA(this,void 0,void 0,function*(){let r=!1,a;const o=[],s=e.ordered(t);for(let l=s.length-1;l>=0;l--){const c=s[l];if(c instanceof oee)a=c;else try{(yield u.compute(c,t,n,o))&&(r=!0)}catch(d){Ni(d)}}return r?o:a&&i?(yield u.compute(a,t,n,o),o):[]})}function L2e(u,e){const{colorProvider:t}=u.get($e),n=u.get(Bn).getModel(e);if(!n)throw p0();const i=u.get(nu).getValue("editor.defaultColorDecorators",{resource:e});return{model:n,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:i}}Xt.registerCommand("_executeDocumentColorProvider",function(u,...e){const[t]=e;if(!(t instanceof lt))throw p0();const{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:r}=L2e(u,t);return see(new wEt,i,n,Vt.None,r)});Xt.registerCommand("_executeColorPresentationProvider",function(u,...e){const[t,n]=e,{uri:i,range:r}=n;if(!(i instanceof lt)||!Array.isArray(t)||t.length!==4||!O.isIRange(r))throw p0();const{model:a,colorProviderRegistry:o,isDefaultColorDecoratorsEnabled:s}=L2e(u,i),[l,c,d,h]=t;return see(new zEt({range:r,color:{red:l,green:c,blue:d,alpha:h}}),o,a,Vt.None,s)});var LEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Wj=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},O0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const M2e=Object.create({});let Rg=class T2e extends ie{constructor(e,t,n,i){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=n,this._localToDispose=this._register(new fe),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new jF(this._editor),this._decoratorLimitReporter=new MEt,this._colorDecorationClassRefs=this._register(new fe),this._debounceInformation=i.for(n.colorProvider,"Document Colors",{min:T2e.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(n.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(r=>{const a=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144);const o=a!==this._isColorDecoratorsEnabled||r.hasChanged(20),s=r.hasChanged(144);(o||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),n=this._configurationService.getValue(t);if(n&&typeof n=="object"){const i=n.colorDecorators;if(i&&i.enable!==void 0&&!i.enable)return i.enable}return this._editor.getOption(19)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new Il,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return O0e(this,void 0,void 0,function*(){this._computePromise=$i(e=>O0e(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return[];const n=new ha(!1),i=yield w2e(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,n.elapsed()),i}));try{const e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){wt(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(n=>({range:{startLineNumber:n.colorInfo.range.startLineNumber,startColumn:n.colorInfo.range.startColumn,endLineNumber:n.colorInfo.range.endLineNumber,endColumn:n.colorInfo.range.endColumn},options:gt.EMPTY}));this._editor.changeDecorations(n=>{this._decorationsIds=n.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((i,r)=>this._colorDatas.set(i,e[r]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],n=this._editor.getOption(20);for(let r=0;rthis._colorDatas.has(i.id));return n.length===0?null:this._colorDatas.get(n[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Rg.ID="editor.contrib.colorDetector";Rg.RECOMPUTE_TIME=1e3;Rg=LEt([Wj(1,nu),Wj(2,$e),Wj(3,I0)],Rg);class MEt{constructor(){this._onDidChange=new ee,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}Eu(Rg.ID,Rg,1);class TEt{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new ee,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new ee,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new ee,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let n=-1;for(let i=0;i{this.backgroundColor=a.getColor(uB)||ae.white})),this._register(ce(this._pickedColorNode,Me.CLICK,()=>this.model.selectNextColorPresentation())),this._register(ce(this._originalColorNode,Me.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=ae.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new NEt(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=ae.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}let NEt=class extends ie{constructor(e){super(),this._onClicked=this._register(new ee),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),de(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),de(this._button,t),de(t,As(".button"+et.asCSSSelector(Cn("color-picker-close",Ae.close,v("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}};class REt extends ie{constructor(e,t,n,i=!1){super(),this.model=t,this.pixelRatio=n,this._insertButton=null,this._domNode=As(".colorpicker-body"),de(e,this._domNode),this._saturationBox=new IEt(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new OEt(this._domNode,this.model,i),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new jEt(this._domNode,this.model,i),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),i&&(this._insertButton=this._register(new VEt(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const n=this.model.color.hsva;this.model.color=new ae(new Vd(n.h,e,t,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new ae(new Vd(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,n=(1-e)*360;this.model.color=new ae(new Vd(n===360?0:n,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class IEt extends ie{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ee,this.onColorFlushed=this._onColorFlushed.event,this._domNode=As(".saturation-wrap"),de(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",de(this._domNode,this._canvas),this.selection=As(".saturation-selection"),de(this._domNode,this.selection),this.layout(),this._register(ce(this._domNode,Me.POINTER_DOWN,i=>this.onPointerDown(i))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Qv);const t=mi(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>this.onDidChangePosition(i.pageX-t.left,i.pageY-t.top),()=>null);const n=ce(document,Me.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new ae(new Vd(e.h,1,1,1)),n=this._canvas.getContext("2d"),i=n.createLinearGradient(0,0,this._canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");const r=n.createLinearGradient(0,0,0,this._canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this._canvas.width,this._canvas.height),n.fillStyle=ae.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class P2e extends ie{constructor(e,t,n=!1){super(),this.model=t,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ee,this.onColorFlushed=this._onColorFlushed.event,n?(this.domNode=de(e,As(".standalone-strip")),this.overlay=de(this.domNode,As(".standalone-overlay"))):(this.domNode=de(e,As(".strip")),this.overlay=de(this.domNode,As(".overlay"))),this.slider=de(this.domNode,As(".slider")),this.slider.style.top="0px",this._register(ce(this.domNode,Me.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Qv),n=mi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,r=>this.onDidChangeTop(r.pageY-n.top),()=>null);const i=ce(document,Me.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class OEt extends P2e{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:n,b:i}=e.rgba,r=new ae(new Qt(t,n,i,1)),a=new ae(new Qt(t,n,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${r} 0%, ${a} 100%)`}getValue(e){return e.hsva.a}}class jEt extends P2e{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class VEt extends ie{constructor(e){super(),this._onClicked=this._register(new ee),this.onClicked=this._onClicked.event,this._button=de(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=t=>{this._onClicked.fire()}}get button(){return this._button}}class HEt extends Ol{constructor(e,t,n,i,r=!1){super(),this.model=t,this.pixelRatio=n,this._register($k.onDidChange(()=>this.layout()));const a=As(".colorpicker-widget");e.appendChild(a),this.header=this._register(new PEt(a,this.model,i,r)),this.body=this._register(new REt(a,this.model,this.pixelRatio,r))}layout(){this.body.layout()}}var N2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},R2e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},iv=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class $Et{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let rw=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,n){return ki.fromPromise(this._computeAsync(e,t,n))}_computeAsync(e,t,n){return iv(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const i=Rg.get(this._editor);if(!i)return[];for(const r of t){if(!i.isColorDecoration(r))continue;const a=i.getColorData(r.range.getStartPosition());if(a)return[yield I2e(this,this._editor.getModel(),a.colorInfo,a.provider)]}return[]})}renderHoverParts(e,t){return O2e(this,this._editor,this._themeService,t,e)}};rw=N2e([R2e(1,Ui)],rw);class KEt{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i}}let N2=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,n){return iv(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!Rg.get(this._editor))return null;const r=yield w2e(n,this._editor.getModel(),Vt.None);let a=null,o=null;for(const d of r){const h=d.colorInfo;O.containsRange(h.range,e.range)&&(a=h,o=d.provider)}const s=a??e,l=o??t,c=!!a;return{colorHover:yield I2e(this,this._editor.getModel(),s,l),foundInEditor:c}})}updateEditorModel(e){return iv(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=e.model;let n=new O(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield PS(this._editor.getModel(),t,this._color,n,e),n=j2e(this._editor,n,t))})}renderHoverParts(e,t){return O2e(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};N2=N2e([R2e(1,Ui)],N2);function I2e(u,e,t,n){return iv(this,void 0,void 0,function*(){const i=e.getValueInRange(t.range),{red:r,green:a,blue:o,alpha:s}=t.color,l=new Qt(Math.round(r*255),Math.round(a*255),Math.round(o*255),s),c=new ae(l),d=yield z2e(e,t,n,Vt.None),h=new TEt(c,[],0);return h.colorPresentations=d||[],h.guessColorPresentation(c,i),u instanceof rw?new $Et(u,O.lift(t.range),h,n):new KEt(u,O.lift(t.range),h,n)})}function O2e(u,e,t,n,i){if(n.length===0||!e.hasModel())return ie.None;if(i.setMinimumDimensions){const h=e.getOption(65)+8;i.setMinimumDimensions(new Du(302,h))}const r=new fe,a=n[0],o=e.getModel(),s=a.model,l=r.add(new HEt(i.fragment,s,e.getOption(140),t,u instanceof N2));i.setColorPicker(l);let c=!1,d=new O(a.range.startLineNumber,a.range.startColumn,a.range.endLineNumber,a.range.endColumn);if(u instanceof N2){const h=n[0].model.color;u.color=h,PS(o,s,h,d,a),r.add(s.onColorFlushed(E=>{u.color=E}))}else r.add(s.onColorFlushed(h=>iv(this,void 0,void 0,function*(){yield PS(o,s,h,d,a),c=!0,d=j2e(e,d,s,i)})));return r.add(s.onDidChangeColor(h=>{PS(o,s,h,d,a)})),r.add(e.onDidChangeModelContent(h=>{c?c=!1:(i.hide(),e.focus())})),r}function j2e(u,e,t,n){let i,r;if(t.presentation.textEdit){i=[t.presentation.textEdit],r=new O(t.presentation.textEdit.range.startLineNumber,t.presentation.textEdit.range.startColumn,t.presentation.textEdit.range.endLineNumber,t.presentation.textEdit.range.endColumn);const a=u.getModel()._setTrackedRange(null,r,3);u.pushUndoStop(),u.executeEdits("colorpicker",i),r=u.getModel()._getTrackedRange(a)||r}else i=[{range:e,text:t.presentation.label,forceMoveMarkers:!1}],r=e.setEndPosition(e.endLineNumber,e.startColumn+t.presentation.label.length),u.pushUndoStop(),u.executeEdits("colorpicker",i);return t.presentation.additionalTextEdits&&(i=[...t.presentation.additionalTextEdits],u.executeEdits("colorpicker",i),n&&n.hide()),u.pushUndoStop(),r}function PS(u,e,t,n,i){return iv(this,void 0,void 0,function*(){const r=yield z2e(u,{range:n,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},i.provider,Vt.None);e.colorPresentations=r||[]})}function oU(u,e){return!!u[e]}class Gj{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=oU(e.event,t.triggerModifier),this.hasSideBySideModifier=oU(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class j0e{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=oU(e,t.triggerModifier)}}class c7{constructor(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function V0e(u){return u==="altKey"?Yt?new c7(57,"metaKey",6,"altKey"):new c7(5,"ctrlKey",6,"altKey"):Yt?new c7(6,"altKey",57,"metaKey"):new c7(6,"altKey",5,"ctrlKey")}class kN extends ie{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new ee),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new ee),this.onExecute=this._onExecute.event,this._onCancel=this._register(new ee),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=V0e(this._editor.getOption(76)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(76)){const i=V0e(this._editor.getOption(76));if(this._opts.equals(i))return;this._opts=i,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new Gj(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new Gj(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new Gj(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new j0e(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new j0e(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var WEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Z1=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let Ig=class extends b3{constructor(e,t,n,i,r,a,o,s,l,c,d,h,E){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),n,r,a,o,s,l,c,d,h,E),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){BF(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Ig=WEt([Z1(4,mt),Z1(5,hu),Z1(6,ei),Z1(7,Et),Z1(8,Ui),Z1(9,ci),Z1(10,B1),Z1(11,an),Z1(12,$e)],Ig);const H0e=new ae(new Qt(0,122,204)),GEt={showArrow:!0,showFrame:!0,className:"",frameColor:H0e,arrowColor:H0e,keepEditorSelection:!1},UEt="vs.editor.contrib.zoneWidget";class qEt{constructor(e,t,n,i,r,a,o,s){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this.showInHiddenAreas=o,this.ordinal=s,this._onDomNodeTop=r,this._onComputedHeight=a}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class JEt{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class yN{constructor(e){this._editor=e,this._ruleName=yN._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),fae(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){fae(this._ruleName),QK(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:O.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}yN._IdGenerator=new lX(".arrow-decoration-");class ZEt{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new fe,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=lh(t),BF(this.options,GEt,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(n=>{const i=this._getWidth(n);this.domNode.style.width=i+"px",this.domNode.style.left=this._getLeft(n)+"px",this._onWidth(i)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new yN(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const n=e-this._decoratingElementsHeight();this.container.style.height=`${n}px`;const i=this.editor.getLayoutInfo();this._doLayout(n,this._getWidth(i))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const n=O.isIRange(e)?O.lift(e):O.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId.set([{range:n,options:gt.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(65);let t=0;if(this.options.showArrow){const n=Math.round(e/3);t+=2*n}if(this.options.showFrame){const n=Math.round(e/9);t+=2*n}return t}_showImpl(e,t){const n=e.getStartPosition(),i=this.editor.getLayoutInfo(),r=this._getWidth(i);this.domNode.style.width=`${r}px`,this.domNode.style.left=this._getLeft(i)+"px";const a=document.createElement("div");a.style.overflow="hidden";const o=this.editor.getOption(65);if(!this.options.allowUnlimitedHeight){const h=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,h)}let s=0,l=0;if(this._arrow&&this.options.showArrow&&(s=Math.round(o/3),this._arrow.height=s,this._arrow.show(n)),this.options.showFrame&&(l=Math.round(o/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new qEt(a,n.lineNumber,n.column,t,E=>this._onViewZoneTop(E),E=>this._onViewZoneHeight(E),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new JEt(UEt+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const h=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}const c=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=s+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,r),this.options.keepEditorSelection||this.editor.setSelection(e);const d=this.editor.getModel();if(d){const h=d.validateRange(new O(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===d.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new Vr(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const n=(t.currentY-e.startY)/this.editor.getOption(65),i=n<0?Math.ceil(n):Math.floor(n),r=e.heightInLines+i;r>5&&r<35&&this._relayout(r)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var V2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},H2e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const $2e=Gt("IPeekViewService");iu($2e,class{constructor(){this._widgets=new Map}addExclusiveWidget(u,e){const t=this._widgets.get(u);t&&(t.listener.dispose(),t.widget.dispose());const n=()=>{const i=this._widgets.get(u);i&&i.widget===e&&(i.listener.dispose(),this._widgets.delete(u))};this._widgets.set(u,{widget:e,listener:e.onDidClose(n)})}},1);var Po;(function(u){u.inPeekEditor=new Ne("inReferenceSearchEditor",!0,v("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),u.notInPeekEditor=u.inPeekEditor.toNegated()})(Po||(Po={}));let R2=class{constructor(e,t){e instanceof Ig&&Po.inPeekEditor.bindTo(t)}dispose(){}};R2.ID="editor.contrib.referenceController";R2=V2e([H2e(1,Et)],R2);Eu(R2.ID,R2,0);function YEt(u){const e=u.get(hu).getFocusedCodeEditor();return e instanceof Ig?e.getParentEditor():e}const QEt={headerBackgroundColor:ae.white,primaryHeadingColor:ae.fromHex("#333333"),secondaryHeadingColor:ae.fromHex("#6c6c6cb3")};let aw=class extends ZEt{constructor(e,t,n){super(e,t),this.instantiationService=n,this._onDidClose=new ee,this.onDidClose=this._onDidClose.event,BF(this.options,QEt,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=ve(".head"),this._bodyElement=ve(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=ve(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),li(this._titleElement,"click",r=>this._onTitleClick(r))),de(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=ve("span.filename"),this._secondaryHeading=ve("span.dirname"),this._metaHeading=ve("span.meta"),de(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=ve(".peekview-actions");de(this._headElement,n);const i=this._getActionBarOptions();this._actionbarWidget=new $s(n,i),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new da("peekview.close",v("label.close","Close"),et.asClassName(Ae.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:N0t.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:fr(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Qo(this._metaHeading)):Ja(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const n=Math.ceil(this.editor.getOption(65)*1.2),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};aw=V2e([H2e(2,mt)],aw);const XEt=U("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:ae.black,hcLight:ae.white},v("peekViewTitleBackground","Background color of the peek view title area.")),K2e=U("peekViewTitleLabel.foreground",{dark:ae.white,light:ae.black,hcDark:ae.white,hcLight:ol},v("peekViewTitleForeground","Color of the peek view title.")),W2e=U("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},v("peekViewTitleInfoForeground","Color of the peek view title info.")),egt=U("peekView.border",{dark:Ls,light:Ls,hcDark:Zt,hcLight:Zt},v("peekViewBorder","Color of the peek view borders and arrow.")),tgt=U("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:ae.black,hcLight:ae.white},v("peekViewResultsBackground","Background color of the peek view result list."));U("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:ae.white,hcLight:ol},v("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));U("peekViewResult.fileForeground",{dark:ae.white,light:"#1E1E1E",hcDark:ae.white,hcLight:ol},v("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));U("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},v("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));U("peekViewResult.selectionForeground",{dark:ae.white,light:"#6C6C6C",hcDark:ae.white,hcLight:ol},v("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const _E=U("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:ae.black,hcLight:ae.white},v("peekViewEditorBackground","Background color of the peek view editor."));U("peekViewEditorGutter.background",{dark:_E,light:_E,hcDark:_E,hcLight:_E},v("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));U("peekViewEditorStickyScroll.background",{dark:_E,light:_E,hcDark:_E,hcLight:_E},v("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));U("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},v("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));U("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},v("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));U("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:fn,hcLight:fn},v("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var ugt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class Og{constructor(e,t,n,i){this.isProviderFirst=e,this.parent=t,this.link=n,this._rangeCallback=i,this.id=TW.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?v({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,B0(this.uri),this.range.startLineNumber,this.range.startColumn):v("aria.oneReference","in {0} on line {1} at column {2}",B0(this.uri),this.range.startLineNumber,this.range.startColumn)}}class ngt{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const n=this._modelReference.object.textEditorModel;if(!n)return;const{startLineNumber:i,startColumn:r,endLineNumber:a,endColumn:o}=e,s=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new O(i,s.startColumn,i,r),c=new O(a,o,a,1073741824),d=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e),E=n.getValueInRange(c).replace(/\s+$/,"");return{value:d+h+E,highlight:{start:d.length,end:d.length+h.length}}}}class I2{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Fa}dispose(){Au(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?v("aria.fileReferences.1","1 symbol in {0}, full path {1}",B0(this.uri),this.uri.fsPath):v("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,B0(this.uri),this.uri.fsPath)}resolve(e){return ugt(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const n=yield e.createModelReference(t.uri);this._previews.set(t.uri,new ngt(n))}catch(n){wt(n)}return this})}}class rs{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new ee,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[n]=e;e.sort(rs._compareReferences);let i;for(const r of e)if((!i||!pn.isEqual(i.uri,r.uri,!0))&&(i=new I2(this,r.uri),this.groups.push(i)),i.children.length===0||rs._compareReferences(r,i.children[i.children.length-1])!==0){const a=new Og(n===r,i,r,o=>this._onDidChangeReferenceRange.fire(o));this.references.push(a),i.children.push(a)}}dispose(){Au(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new rs(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?v("aria.result.0","No results found"):this.references.length===1?v("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?v("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):v("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:n}=e;let i=n.children.indexOf(e);const r=n.children.length,a=n.parent.groups.length;return a===1||t&&i+10?(t?i=(i+1)%r:i=(i+r-1)%r,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%a,n.parent.groups[i].children[0]):(i=(i+a-1)%a,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))}nearestReference(e,t){const n=this.references.map((i,r)=>({idx:r,prefixLen:f3(i.uri.toString(),e.toString()),offsetDist:Math.abs(i.range.startLineNumber-t.lineNumber)*100+Math.abs(i.range.startColumn-t.column)})).sort((i,r)=>i.prefixLen>r.prefixLen?-1:i.prefixLenr.offsetDist?1:0)[0];if(n)return this.references[n.idx]}referenceAt(e,t){for(const n of this.references)if(n.uri.toString()===e.toString()&&O.containsPosition(n.range,t))return n}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return pn.compare(e.uri,t.uri)||O.compareRangesUsingStarts(e.range,t.range)}}var FN=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},AN=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let sU=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof rs||e instanceof I2}getChildren(e){if(e instanceof rs)return e.groups;if(e instanceof I2)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};sU=FN([AN(0,jo)],sU);class igt{getHeight(){return 23}getTemplateId(e){return e instanceof I2?O2.id:lA.id}}let lU=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Og){const n=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(n)return n.value}return B0(e.uri)}};lU=FN([AN(0,on)],lU);class rgt{getId(e){return e instanceof Og?e.id:e.uri}}let cU=class extends ie{constructor(e,t){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new JB(n,{supportHighlights:!0})),this.badge=new xG(de(n,ve(".count")),{},bbe),e.appendChild(n)}set(e,t){const n=jP(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(n,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const i=e.children.length;this.badge.setCount(i),i>1?this.badge.setTitleFormat(v("referencesCount","{0} references",i)):this.badge.setTitleFormat(v("referenceCount","{0} reference",i))}};cU=FN([AN(1,q5)],cU);let O2=class G2e{constructor(e){this._instantiationService=e,this.templateId=G2e.id}renderTemplate(e){return this._instantiationService.createInstance(cU,e)}renderElement(e,t,n){n.set(e.element,WP(e.filterData))}disposeTemplate(e){e.dispose()}};O2.id="FileReferencesRenderer";O2=FN([AN(0,mt)],O2);class agt{constructor(e){this.label=new YE(e)}set(e,t){var n;const i=(n=e.parent.getPreview(e))===null||n===void 0?void 0:n.preview(e.range);if(!i||!i.value)this.label.set(`${B0(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:r,highlight:a}=i;t&&!Tc.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(r,WP(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(r,[a]))}}}class lA{constructor(){this.templateId=lA.id}renderTemplate(e){return new agt(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}}lA.id="OneReferenceRenderer";class ogt{getWidgetAriaLabel(){return v("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var sgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Y1=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},$0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class _N{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new fe,this._callOnModelChange=new fe,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],n=[];for(let i=0,r=e.children.length;i{const r=i.deltaDecorations([],t);for(let a=0;a{r.equals(9)&&(this._keybindingService.dispatchEvent(r,r.target),r.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(cgt,"ReferencesWidget",this._treeContainer,new igt,[this._instantiationService.createInstance(O2),this._instantiationService.createInstance(lA)],this._instantiationService.createInstance(sU),n),this._splitView.addView({onDidChange:Ke.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:r=>{this._preview.layout({height:this._dim.height,width:r})}},WB.Distribute),this._splitView.addView({onDidChange:Ke.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:r=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${r}px`,this._tree.layout(this._dim.height,r)}},WB.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const i=(r,a)=>{r instanceof Og&&(a==="show"&&this._revealReference(r,!1),this._onDidSelectReference.fire({element:r,kind:a,source:"tree"}))};this._tree.onDidOpen(r=>{r.sideBySide?i(r.element,"side"):r.editorOptions.pinned?i(r.element,"goto"):i(r.element,"show")}),Ja(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Du(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=v("noResults","No results"),Qo(this._messageContainer),Promise.resolve(void 0)):(Ja(this._messageContainer),this._decorationsManager=new _N(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:n}=e;if(t.detail!==2)return;const i=this._getFocusedReference();i&&this._onDidSelectReference.fire({element:{uri:i.uri,range:n.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),Qo(this._treeContainer),Qo(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Og)return e;if(e instanceof I2&&e.children.length>0)return e.children[0]}revealReference(e){return $0e(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return $0e(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==It.inMemory?this.setTitle(Jnt(e.uri),this._uriLabel.getUriLabel(jP(e.uri))):this.setTitle(v("peekView.alternateTitle","References"));const n=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const i=yield n;if(!this._model){i.dispose();return}Au(this._previewModelReference);const r=i.object;if(r){const a=this._preview.getModel()===r.textEditorModel?0:1,o=O.lift(e.range).collapseToStart();this._previewModelReference=i,this._preview.setModel(r.textEditorModel),this._preview.setSelection(o),this._preview.revealRangeInCenter(o,a)}else this._preview.setModel(this._previewNotAvailableMessage),i.dispose()})}};dU=sgt([Y1(3,Ui),Y1(4,jo),Y1(5,mt),Y1(6,$2e),Y1(7,q5),Y1(8,VP),Y1(9,on),Y1(10,Dn),Y1(11,an)],dU);var dgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},lD=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},K0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const Mp=new Ne("referenceSearchVisible",!1,v("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let jg=class hU{static get(e){return e.getContribution(hU.ID)}constructor(e,t,n,i,r,a,o,s){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=r,this._instantiationService=a,this._storageService=o,this._configurationService=s,this._disposables=new fe,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Mp.bindTo(n)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let i;if(this._widget&&(i=this._widget.position),this.closeWidget(),i&&e.containsPosition(i))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const r="peekViewLayout",a=lgt.fromJSON(this._storageService.get(r,0,"{}"));this._widget=this._instantiationService.createInstance(dU,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(v("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(r,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(s=>{const{element:l,kind:c}=s;if(l)switch(c){case"open":(s.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(l,!1,!1);break;case"side":this.openReference(l,!0,!1);break;case"goto":n?this._gotoReference(l,!0):this.openReference(l,!1,!0);break}}));const o=++this._requestIdPool;t.then(s=>{var l;if(o!==this._requestIdPool||!this._widget){s.dispose();return}return(l=this._model)===null||l===void 0||l.dispose(),this._model=s,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(v("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,d=new ue(e.startLineNumber,e.startColumn),h=this._model.nearestReference(c,d);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(85)==="editor"&&this._widget.focusOnPreviewEditor()})}})},s=>{this._notificationService.error(s)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return K0e(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;const i=this._model.nextOrPreviousReference(n,e),r=this._editor.hasTextFocus(),a=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(i),yield this._gotoReference(i,!1),r?this._editor.focus():this._widget&&a&&this._widget.focusOnPreviewEditor()})}revealReference(e){return K0e(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,n;(t=this._widget)===null||t===void 0||t.dispose(),(n=this._model)===null||n===void 0||n.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var n;(n=this._widget)===null||n===void 0||n.hide(),this._ignoreModelChangeEvent=!0;const i=O.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then(r=>{var a;if(this._ignoreModelChangeEvent=!1,!r||!this._widget){this.closeWidget();return}if(this._editor===r)this._widget.show(i),this._widget.focusOnReferenceTree();else{const o=hU.get(r),s=this._model.clone();this.closeWidget(),r.focus(),o==null||o.toggleWidget(i,$i(l=>Promise.resolve(s)),(a=this._peekMode)!==null&&a!==void 0?a:!1)}},r=>{this._ignoreModelChangeEvent=!1,wt(r)})}openReference(e,t,n){t||this.closeWidget();const{uri:i,range:r}=e;this._editorService.openCodeEditor({resource:i,options:{selection:r,selectionSource:"code.jump",pinned:n}},this._editor,t)}};jg.ID="editor.contrib.referencesController";jg=dgt([lD(2,Et),lD(3,hu),lD(4,ci),lD(5,mt),lD(6,$l),lD(7,nu)],jg);function Tp(u,e){const t=YEt(u);if(!t)return;const n=jg.get(t);n&&e(n)}To.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Ri(2089,60),when:pe.or(Mp,Po.inPeekEditor),handler(u){Tp(u,e=>{e.changeFocusBetweenPreviewAndReferences()})}});To.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:pe.or(Mp,Po.inPeekEditor),handler(u){Tp(u,e=>{e.goToNextOrPreviousReference(!0)})}});To.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:pe.or(Mp,Po.inPeekEditor),handler(u){Tp(u,e=>{e.goToNextOrPreviousReference(!1)})}});Xt.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Xt.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Xt.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Xt.registerCommand("closeReferenceSearch",u=>Tp(u,e=>e.closeWidget()));To.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:pe.and(Po.inPeekEditor,pe.not("config.editor.stablePeek"))});To.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:pe.and(Mp,pe.not("config.editor.stablePeek"))});To.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:pe.and(Mp,Wbe,BX.negate(),wX.negate()),handler(u){var e;const n=(e=u.get(O0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof Og&&Tp(u,i=>i.revealReference(n[0]))}});To.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:pe.and(Mp,Wbe,BX.negate(),wX.negate()),handler(u){var e;const n=(e=u.get(O0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof Og&&Tp(u,i=>i.openReference(n[0],!0,!0))}});Xt.registerCommand("openReference",u=>{var e;const n=(e=u.get(O0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof Og&&Tp(u,i=>i.openReference(n[0],!1,!0))});var U2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Eb=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const lee=new Ne("hasSymbols",!1,v("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),SN=Gt("ISymbolNavigationService");let EU=class{constructor(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=lee.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const n=new gU(this._editorService),i=n.onDidChange(r=>{if(this._ignoreEditorChange)return;const a=this._editorService.getActiveCodeEditor();if(!a)return;const o=a.getModel(),s=a.getPosition();if(!o||!s)return;let l=!1,c=!1;for(const d of t.references)if(OP(d.uri,o.uri))l=!0,c=c||O.containsPosition(d.range,s);else if(l)break;(!l||!c)&&this.reset()});this._currentState=Dl(n,i)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:O.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),n=t?v("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):v("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(n)}};EU=U2e([Eb(0,Et),Eb(1,hu),Eb(2,ci),Eb(3,on)],EU);iu(SN,EU,1);Be(new class extends Dr{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:lee,kbOpts:{weight:100,primary:70}})}runEditorCommand(u,e){return u.get(SN).revealNext(e)}});To.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:lee,primary:9,handler(u){u.get(SN).reset()}});let gU=class{constructor(e){this._listener=new Map,this._disposables=new fe,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Au(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Dl(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};gU=U2e([Eb(0,hu)],gU);var cee=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};function cA(u,e,t,n){return cee(this,void 0,void 0,function*(){const r=t.ordered(u).map(o=>Promise.resolve(n(o,u,e)).then(void 0,s=>{Ni(s)})),a=yield Promise.all(r);return c1(a.flat())})}function BN(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideDefinition(r,a,n))}function q2e(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideDeclaration(r,a,n))}function J2e(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideImplementation(r,a,n))}function Z2e(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideTypeDefinition(r,a,n))}function wN(u,e,t,n,i){return cA(e,t,u,(r,a,o)=>cee(this,void 0,void 0,function*(){const s=yield r.provideReferences(a,o,{includeDeclaration:!0},i);if(!n||!s||s.length!==2)return s;const l=yield r.provideReferences(a,o,{includeDeclaration:!1},i);return l&&l.length===1?l:s}))}function dA(u){return cee(this,void 0,void 0,function*(){const e=yield u(),t=new rs(e,""),n=t.references.map(i=>i.link);return t.dispose(),n})}M1("_executeDefinitionProvider",(u,e,t)=>{const n=u.get($e),i=BN(n.definitionProvider,e,t,Vt.None);return dA(()=>i)});M1("_executeTypeDefinitionProvider",(u,e,t)=>{const n=u.get($e),i=Z2e(n.typeDefinitionProvider,e,t,Vt.None);return dA(()=>i)});M1("_executeDeclarationProvider",(u,e,t)=>{const n=u.get($e),i=q2e(n.declarationProvider,e,t,Vt.None);return dA(()=>i)});M1("_executeReferenceProvider",(u,e,t)=>{const n=u.get($e),i=wN(n.referenceProvider,e,t,!1,Vt.None);return dA(()=>i)});M1("_executeImplementationProvider",(u,e,t)=>{const n=u.get($e),i=J2e(n.implementationProvider,e,t,Vt.None);return dA(()=>i)});var vl=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})},Uj,qj,Jj,Zj,Yj,Qj,Xj,eV;oa.appendMenuItem(G.EditorContext,{submenu:G.EditorContextPeek,title:v("peek.submenu","Peek"),group:"navigation",order:100});class rv{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rv||ue.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class xa extends vp{static all(){return xa._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const n of Jt.wrap(t.menu))(n.id===G.EditorContext||n.id===G.EditorContextPeek)&&(n.when=pe.and(e.precondition,n.when));return t}constructor(e,t){super(xa._patchConfig(t)),this.configuration=e,xa._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,n,i){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(ci),a=e.get(hu),o=e.get(p4),s=e.get(SN),l=e.get($e),c=e.get(mt),d=t.getModel(),h=t.getPosition(),E=rv.is(n)?n:new rv(d,h),g=new Ng(t,5),m=CP(this._getLocationModel(l,E.model,E.position,g.token),g.token).then(f=>vl(this,void 0,void 0,function*(){var p;if(!f||g.token.isCancellationRequested)return;Aa(f.ariaMessage);let D;if(f.referenceAt(d.uri,h)){const b=this._getAlternativeCommand(t);!xa._activeAlternativeCommands.has(b)&&xa._allSymbolNavigationCommands.has(b)&&(D=xa._allSymbolNavigationCommands.get(b))}const x=f.references.length;if(x===0){if(!this.configuration.muteMessage){const b=d.getWordAtPosition(h);(p=is.get(t))===null||p===void 0||p.showMessage(this._getNoResultFoundMessage(b),h)}}else if(x===1&&D)xa._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(b=>D.runEditorCommand(b,t,n,i).finally(()=>{xa._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(a,s,t,f,i)}),f=>{r.error(f)}).finally(()=>{g.dispose()});return o.showWhile(m,250),m}_onResult(e,t,n,i,r){return vl(this,void 0,void 0,function*(){const a=this._getGoToPreference(n);if(!(n instanceof Ig)&&(this.configuration.openInPeek||a==="peek"&&i.references.length>1))this._openInPeek(n,i,r);else{const o=i.firstReference(),s=i.references.length>1&&a==="gotoAndPeek",l=yield this._openReference(n,e,o,this.configuration.openToSide,!s);s&&l?this._openInPeek(l,i,r):i.dispose(),a==="goto"&&t.put(o)}})}_openReference(e,t,n,i,r){return vl(this,void 0,void 0,function*(){let a;if(Aqe(n)&&(a=n.targetSelectionRange),a||(a=n.range),!a)return;const o=yield t.openCodeEditor({resource:n.uri,options:{selection:O.collapseToStart(a),selectionRevealType:3,selectionSource:"code.jump"}},e,i);if(o){if(r){const s=o.getModel(),l=o.createDecorationsCollection([{range:a,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{o.getModel()===s&&l.clear()},350)}return o}})}_openInPeek(e,t,n){const i=jg.get(e);i&&e.hasModel()?i.toggleWidget(n??e.getSelection(),$i(r=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}xa._allSymbolNavigationCommands=new Map;xa._activeAlternativeCommands=new Set;class hA extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield BN(e.definitionProvider,t,n,i),v("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?v("noResultWord","No definition found for '{0}'",e.word):v("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleDefinitions}}fi((Uj=class mU extends hA{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:mU.id,title:{value:v("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:v({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:pe.and(K.hasDefinitionProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:[{when:K.editorTextFocus,primary:70,weight:100},{when:pe.and(K.editorTextFocus,Hbe),primary:2118,weight:100}],menu:[{id:G.EditorContext,group:"navigation",order:1.1},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),Xt.registerCommandAlias("editor.action.goToDeclaration",mU.id)}},Uj.id="editor.action.revealDefinition",Uj));fi((qj=class fU extends hA{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:fU.id,title:{value:v("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:pe.and(K.hasDefinitionProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:[{when:K.editorTextFocus,primary:Ri(2089,70),weight:100},{when:pe.and(K.editorTextFocus,Hbe),primary:Ri(2089,2118),weight:100}]}),Xt.registerCommandAlias("editor.action.openDeclarationToTheSide",fU.id)}},qj.id="editor.action.revealDefinitionAside",qj));fi((Jj=class pU extends hA{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:pU.id,title:{value:v("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:pe.and(K.hasDefinitionProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:G.EditorContextPeek,group:"peek",order:2}}),Xt.registerCommandAlias("editor.action.previewDeclaration",pU.id)}},Jj.id="editor.action.peekDefinition",Jj));class Y2e extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield q2e(e.declarationProvider,t,n,i),v("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?v("decl.noResultWord","No declaration found for '{0}'",e.word):v("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(57).multipleDeclarations}}fi((Zj=class Q2e extends Y2e{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Q2e.id,title:{value:v("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:v({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:pe.and(K.hasDeclarationProvider,K.isInWalkThroughSnippet.toNegated()),menu:[{id:G.EditorContext,group:"navigation",order:1.3},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?v("decl.noResultWord","No declaration found for '{0}'",e.word):v("decl.generic.noResults","No declaration found")}},Zj.id="editor.action.revealDeclaration",Zj));fi(class extends Y2e{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:v("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:pe.and(K.hasDeclarationProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),menu:{id:G.EditorContextPeek,group:"peek",order:3}})}});class X2e extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield Z2e(e.typeDefinitionProvider,t,n,i),v("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?v("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):v("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleTypeDefinitions}}fi((Yj=class eye extends X2e{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:eye.ID,title:{value:v("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:v({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:pe.and(K.hasTypeDefinitionProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:0,weight:100},menu:[{id:G.EditorContext,group:"navigation",order:1.4},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},Yj.ID="editor.action.goToTypeDefinition",Yj));fi((Qj=class tye extends X2e{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:tye.ID,title:{value:v("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:pe.and(K.hasTypeDefinitionProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),menu:{id:G.EditorContextPeek,group:"peek",order:4}})}},Qj.ID="editor.action.peekTypeDefinition",Qj));class uye extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield J2e(e.implementationProvider,t,n,i),v("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?v("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):v("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(57).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(57).multipleImplementations}}fi((Xj=class nye extends uye{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:nye.ID,title:{value:v("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:v({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:pe.and(K.hasImplementationProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:2118,weight:100},menu:[{id:G.EditorContext,group:"navigation",order:1.45},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},Xj.ID="editor.action.goToImplementation",Xj));fi((eV=class iye extends uye{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:iye.ID,title:{value:v("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:pe.and(K.hasImplementationProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:3142,weight:100},menu:{id:G.EditorContextPeek,group:"peek",order:5}})}},eV.ID="editor.action.peekImplementation",eV));class rye extends xa{_getNoResultFoundMessage(e){return e?v("references.no","No references found for '{0}'",e.word):v("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(57).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(57).multipleReferences}}fi(class extends rye{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:v("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:v({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:pe.and(K.hasReferenceProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:1094,weight:100},menu:[{id:G.EditorContext,group:"navigation",order:1.45},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield wN(e.referenceProvider,t,n,!0,i),v("ref.title","References"))})}});fi(class extends rye{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:v("references.action.label","Peek References"),original:"Peek References"},precondition:pe.and(K.hasReferenceProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),menu:{id:G.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield wN(e.referenceProvider,t,n,!1,i),v("ref.title","References"))})}});class hgt extends xa{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",title:{value:v("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:pe.and(Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(this._references,v("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&v("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(57).multipleReferences}_getAlternativeCommand(){return""}}Xt.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:lt},{name:"position",description:"The position at which to start",constraint:ue.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(u,e,t,n,i,r,a)=>vl(void 0,void 0,void 0,function*(){Iu(lt.isUri(e)),Iu(ue.isIPosition(t)),Iu(Array.isArray(n)),Iu(typeof i>"u"||typeof i=="string"),Iu(typeof a>"u"||typeof a=="boolean");const o=u.get(hu),s=yield o.openCodeEditor({resource:e},o.getFocusedCodeEditor());if(v1(s))return s.setPosition(t),s.revealPositionInCenterIfOutsideViewport(t,0),s.invokeWithinContext(l=>{const c=new class extends hgt{_getNoResultFoundMessage(d){return r||super._getNoResultFoundMessage(d)}}({muteMessage:!r,openInPeek:!!a,openToSide:!1},n,i);l.get(mt).invokeFunction(c.run.bind(c),s)})})});Xt.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:lt},{name:"position",description:"The position at which to start",constraint:ue.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(u,e,t,n,i)=>vl(void 0,void 0,void 0,function*(){u.get(ei).executeCommand("editor.action.goToLocations",e,t,n,i,void 0,!0)})});Xt.registerCommand({id:"editor.action.findReferences",handler:(u,e,t)=>{Iu(lt.isUri(e)),Iu(ue.isIPosition(t));const n=u.get($e),i=u.get(hu);return i.openCodeEditor({resource:e},i.getFocusedCodeEditor()).then(r=>{if(!v1(r)||!r.hasModel())return;const a=jg.get(r);if(!a)return;const o=$i(l=>wN(n.referenceProvider,r.getModel(),ue.lift(t),!1,l).then(c=>new rs(c,v("ref.title","References")))),s=new O(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(a.toggleWidget(s,o,!1))})}});Xt.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Egt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},tV=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},W0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let T3=class NS{constructor(e,t,n,i){this.textModelResolverService=t,this.languageService=n,this.languageFeaturesService=i,this.toUnhook=new fe,this.toUnhookForKeyboard=new fe,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const r=new kN(e);this.toUnhook.add(r),this.toUnhook.add(r.onMouseMoveOrRelevantKeyDown(([a,o])=>{this.startFindDefinitionFromMouse(a,Gr(o))})),this.toUnhook.add(r.onExecute(a=>{this.isEnabled(a)&&this.gotoDefinition(a.target.position,a.hasSideBySideModifier).catch(o=>{wt(o)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(r.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(NS.ID)}startFindDefinitionFromCursor(e){return W0e(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;return W0e(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const n=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!n){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return;this.currentWordAtPosition=n;const i=new kke(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=$i(o=>this.findDefinition(e,o));let r;try{r=yield this.previousPromise}catch(o){wt(o);return}if(!r||!r.length||!i.validate(this.editor)){this.removeLinkDecorations();return}const a=r[0].originSelectionRange?O.lift(r[0].originSelectionRange):new O(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);if(r.length>1){let o=a;for(const{originSelectionRange:s}of r)s&&(o=O.plusRange(o,s));this.addDecoration(o,new _r().appendText(v("multipleResults","Click to show {0} definitions.",r.length)))}else{const o=r[0];if(!o.uri)return;this.textModelResolverService.createModelReference(o.uri).then(s=>{if(!s.object||!s.object.textEditorModel){s.dispose();return}const{object:{textEditorModel:l}}=s,{startLineNumber:c}=o.range;if(c<1||c>l.getLineCount()){s.dispose();return}const d=this.getPreviewValue(l,c,o),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(a,d?new _r().appendCodeblock(h||"",d):void 0),s.dispose()})}})}getPreviewValue(e,t,n){let i=n.range;return i.endLineNumber-i.startLineNumber>=NS.MAX_SOURCE_PREVIEW_LINES&&(i=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,i)}stripIndentationFromPreviewRange(e,t,n){let r=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;o{const i=!t&&this.editor.getOption(86)&&!this.isInPeekEditor(n);return new hA({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(n)})}isInPeekEditor(e){const t=e.get(Et);return Po.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};T3.ID="editor.contrib.gotodefinitionatposition";T3.MAX_SOURCE_PREVIEW_LINES=8;T3=Egt([tV(1,jo),tV(2,Dn),tV(3,$e)],T3);Eu(T3.ID,T3,2);const d7=ve;class aye extends ie{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Xv(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class dee extends ie{static render(e,t,n){return new dee(e,t,n)}constructor(e,t,n){super(),this.actionContainer=de(e,d7("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=de(this.actionContainer,d7("a.action")),this.action.setAttribute("role","button"),t.iconClass&&de(this.action,d7(`span.icon.${t.iconClass}`));const i=de(this.action,d7("span"));i.textContent=n?`${t.label} (${n})`:t.label,this._register(ce(this.actionContainer,Me.CLICK,r=>{r.stopPropagation(),r.preventDefault(),t.run(this.actionContainer)})),this._register(ce(this.actionContainer,Me.KEY_DOWN,r=>{const a=new un(r);(a.equals(3)||a.equals(10))&&(r.stopPropagation(),r.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var ggt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})},mgt=globalThis&&globalThis.__asyncValues||function(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof __values=="function"?__values(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=u[r]&&function(a){return new Promise(function(o,s){a=u[r](a),i(o,s,a.done,a.value)})}}function i(r,a,o,s){Promise.resolve(s).then(function(l){r({value:l,done:o})},a)}};let fgt=class{constructor(e,t,n){this.value=e,this.isComplete=t,this.hasLoadingMessage=n}};class oye extends ie{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new ee),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new Hu(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new Hu(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new Hu(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(59).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=lZe(e=>this._computer.computeAsync(e)),ggt(this,void 0,void 0,function*(){var e,t,n,i;try{try{for(var r=!0,a=mgt(this._asyncIterable),o;o=yield a.next(),e=o.done,!e;r=!0){i=o.value,r=!1;const s=i;s&&(this._result.push(s),this._fireResult())}}catch(s){t={error:s}}finally{try{!r&&!e&&(n=a.return)&&(yield n.call(a))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){wt(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new fgt(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class uV{constructor(e,t,n,i){this.priority=e,this.range=t,this.initialMousePosX=n,this.initialMousePosY=i,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class RS{constructor(e,t,n,i,r,a){this.priority=e,this.owner=t,this.range=n,this.initialMousePosX=i,this.initialMousePosY=r,this.supportsMarkerHover=a,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const Pp=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class hee{constructor(){this._onDidWillResize=new ee,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new ee,this.onDidResize=this._onDidResize.event,this._sashListener=new fe,this._size=new Du(0,0),this._minSize=new Du(0,0),this._maxSize=new Du(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Vr(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Vr(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Vr(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:CB.North}),this._southSash=new Vr(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:CB.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,n=0;this._sashListener.add(Ke.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,n=0)})),this._sashListener.add(Ke.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,n=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(i=>{e&&(n=i.currentX-i.startX,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(i=>{e&&(n=-(i.currentX-i.startX),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(i=>{e&&(t=-(i.currentY-i.startY),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(i=>{e&&(t=i.currentY-i.startY,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(Ke.any(this._eastSash.onDidReset,this._westSash.onDidReset)(i=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(Ke.any(this._northSash.onDidReset,this._southSash.onDidReset)(i=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,n,i){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=i?3:0}layout(e=this.size.height,t=this.size.width){const{height:n,width:i}=this._minSize,{height:r,width:a}=this._maxSize;e=Math.max(n,Math.min(r,e)),t=Math.max(i,Math.min(a,t));const o=new Du(t,e);Du.equals(o,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=o,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}const pgt=30,Dgt=24;class xgt extends ie{constructor(e,t=new Du(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new hee),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Du.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(n=>{this._resize(new Du(n.dimension.width,n.dimension.height)),n.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return!((e=this._contentPosition)===null||e===void 0)&&e.position?ue.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);return!t||!n?void 0:mi(t).top+n.top-pgt}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);if(!t||!n)return;const i=mi(t),r=Zv(document.body),a=i.top+n.top+n.height;return r.height-a-Dgt}_findPositionPreference(e,t){var n,i;const r=Math.min((n=this._availableVerticalSpaceBelow(t))!==null&&n!==void 0?n:1/0,e),a=Math.min((i=this._availableVerticalSpaceAbove(t))!==null&&i!==void 0?i:1/0,e),o=Math.min(Math.max(a,r),e),s=Math.min(e,o);let l;return this._editor.getOption(59).above?l=s<=a?1:2:l=s<=r?2:1,l===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var Eee=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},ow=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const G0e=ve;let sw=class DU extends ie{constructor(e,t,n){super(),this._editor=e,this._instantiationService=t,this._keybindingService=n,this._currentResult=null;const i=this._editor.getOption(65)+8,r=4/3*i,a=new Du(r,i);this._widget=this._register(this._instantiationService.createInstance(XE,this._editor,a)),this._participants=[];for(const o of Pp.getAll())this._participants.push(this._instantiationService.createInstance(o,this._editor));this._participants.sort((o,s)=>o.hoverOrdinal-s.hoverOrdinal),this._computer=new cw(this._editor,this._participants),this._hoverOperation=this._register(new oye(this._editor,this._computer)),this._register(this._hoverOperation.onResult(o=>{if(!this._computer.anchor)return;const s=o.hasLoadingMessage?this._addLoadingMessage(o.value):o.value;this._withResult(new sye(this._computer.anchor,s,o.isComplete))})),this._register(li(this._widget.getDomNode(),"keydown",o=>{o.equals(9)&&this.hide()})),this._register(Kn.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}get widget(){return this._widget}maybeShowAt(e){if(this._widget.isResizing)return!0;const t=[];for(const i of this._participants)if(i.suggestHoverAnchor){const r=i.suggestHoverAnchor(e);r&&t.push(r)}const n=e.target;if(n.type===6&&t.push(new uV(0,n.range,e.event.posx,e.event.posy)),n.type===7){const i=this._editor.getOption(49).typicalHalfwidthCharacterWidth/2;!n.detail.isAfterLines&&typeof n.detail.horizontalDistanceToText=="number"&&n.detail.horizontalDistanceToTextr.priority-i.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,n,i){this._startShowingOrUpdateHover(new uV(0,e,void 0,void 0),t,n,i,null)}_startShowingOrUpdateHover(e,t,n,i,r){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,n,i,!1),!0):!1:this._editor.getOption(59).sticky&&r&&this._widget.isMouseGettingCloser(r.event.posx,r.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,n,i,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,n,i,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,n,i,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,n,i,r){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=i,this._computer.source=n,this._computer.insistOnKeepingHoverVisible=r,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const n=t.createLoadingMessage(this._computer.anchor);if(n)return e.slice(0).concat([n])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:n,showAtSecondaryPosition:i,highlightRange:r}=DU.computeHoverRanges(this._editor,e.range,t),a=new fe,o=a.add(new lw(this._keybindingService)),s=document.createDocumentFragment();let l=null;const c={fragment:s,statusBar:o,setColorPicker:h=>l=h,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:h=>this._widget.setMinimumDimensions(h),hide:()=>this.hide()};for(const h of this._participants){const E=t.filter(g=>g.owner===h);E.length>0&&a.add(h.renderHoverParts(c,E))}const d=t.some(h=>h.isBeforeContent);if(o.hasContent&&s.appendChild(o.hoverElement),s.hasChildNodes()){if(r){const h=this._editor.createDecorationsCollection();h.set([{range:r,options:DU._DECORATION_OPTIONS}]),a.add(bt(()=>{h.clear()}))}this._widget.showAt(s,new Cgt(l,n,i,this._editor.getOption(59).above,this._computer.shouldFocus,this._computer.source,d,e.initialMousePosX,e.initialMousePosY,a))}else a.dispose()}static computeHoverRanges(e,t,n){let i=1;if(e.hasModel()){const l=e._getViewModel(),c=l.coordinatesConverter,d=c.convertModelRangeToViewRange(t),h=new ue(d.startLineNumber,l.getLineMinColumn(d.startLineNumber));i=c.convertViewPositionToModelPosition(h).column}const r=t.startLineNumber;let a=t.startColumn,o=n[0].range,s=null;for(const l of n)o=O.plusRange(o,l.range),l.range.startLineNumber===r&&l.range.endLineNumber===r&&(a=Math.max(Math.min(a,l.range.startColumn),i)),l.forceShowAtRange&&(s=l.range);return{showAtPosition:s?s.getStartPosition():new ue(r,t.startColumn),showAtSecondaryPosition:s?s.getStartPosition():new ue(r,a),highlightRange:o}}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}};sw._DECORATION_OPTIONS=gt.register({description:"content-hover-highlight",className:"hoverHighlight"});sw=Eee([ow(1,mt),ow(2,on)],sw);class sye{constructor(e,t,n){this.anchor=e,this.messages=t,this.isComplete=n}filter(e){const t=this.messages.filter(n=>n.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new vgt(this,this.anchor,t,this.isComplete)}}class vgt extends sye{constructor(e,t,n,i){super(t,n,i),this.original=e}filter(e){return this.original.filter(e)}}class Cgt{constructor(e,t,n,i,r,a,o,s,l,c){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=n,this.preferAbove=i,this.stoleFocus=r,this.source=a,this.isBeforeContent=o,this.initialMousePosX=s,this.initialMousePosY=l,this.disposables=c,this.closestMouseDistance=void 0}}const U0e=30,nV=10,bgt=6;let XE=class nh extends xgt{get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}get isFocused(){var e;return(e=this._hoverFocusedKey.get())!==null&&e!==void 0?e:!1}constructor(e,t,n){super(e,t),this._hover=this._register(new aye),this._hoverVisibleKey=K.hoverVisible.bindTo(n),this._hoverFocusedKey=K.hoverFocused.bindTo(n),de(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(49)&&this._updateFont()}));const i=this._register(g1(this._resizableNode.domNode));this._register(i.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(i.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._layout(),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),(e=this._visibleData)===null||e===void 0||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return nh.ID}static _applyDimensions(e,t,n){const i=typeof t=="number"?`${t}px`:t,r=typeof n=="number"?`${n}px`:n;e.style.width=i,e.style.height=r}_setContentsDomNodeDimensions(e,t){const n=this._hover.contentsDomNode;return nh._applyDimensions(n,e,t)}_setContainerDomNodeDimensions(e,t){const n=this._hover.containerDomNode;return nh._applyDimensions(n,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,n){const i=typeof t=="number"?`${t}px`:t,r=typeof n=="number"?`${n}px`:n;e.style.maxWidth=i,e.style.maxHeight=r}_setHoverWidgetMaxDimensions(e,t){nh._applyMaxDimensions(this._hover.contentsDomNode,e,t),nh._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){const e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){const e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,n=e.height;this._setHoverWidgetDimensions(t,n),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,n-nV))}_setResizableNodeMaxDimensions(){var e,t;const n=(e=this._findMaximumRenderingWidth())!==null&&e!==void 0?e:1/0,i=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._resizableNode.maxSize=new Du(n,i),this._setHoverWidgetMaxDimensions(n,i)}_resize(e){var t,n;nh._lastDimensions=new Du(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._setResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(n=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||n===void 0||n.layout()}_findAvailableSpaceVertically(){var e;const t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition;if(t)return this._positionPreference===1?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=bgt;return Array.from(this._hover.contentsDomNode.children).forEach(n=>{t+=n.clientHeight}),this._hasHorizontalScrollbar()&&(t+=nV),Math.min(e,t)}_findMaximumRenderingWidth(){return!this._editor||!this._editor.hasModel()?void 0:Zv(document.body).width-14}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const n=mi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=q0e(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,n.left,n.top,n.width,n.height));const i=q0e(e,t,n.left,n.top,n.width,n.height);return i>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,i),!0)}_setHoverData(e){var t;(t=this._visibleData)===null||t===void 0||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_layout(){const{fontSize:e,lineHeight:t}=this._editor.getOption(49),n=this._hover.contentsDomNode;n.style.fontSize=`${e}px`,n.style.lineHeight=`${t/e}`,this._updateMaxDimensions()}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,nh._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,nh._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(e=this._positionPreference)!==null&&e!==void 0?e:1]}:null}showAt(e,t){var n,i;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const r=kf(this._hover.containerDomNode),a=t.showAtPosition;this._positionPreference=(n=this._findPositionPreference(r,a))!==null&&n!==void 0?n:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Du(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;const n=this._hover.containerDomNode,i=this._hover.contentsDomNode,r=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._setContainerDomNodeDimensions(vo(n),Math.min(r,e)),this._setContentsDomNodeDimensions(vo(i),Math.min(r,e-nV))}setMinimumDimensions(e){this._resizableNode.minSize=e}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let n=kf(t),i=vo(t);if(this._resizableNode.layout(n,i),this._setHoverWidgetDimensions(i,n),n=kf(t),i=vo(t),this._resizableNode.layout(n,i),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(n)),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){const r=kf(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-U0e})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+U0e})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};XE.ID="editor.contrib.resizableContentHoverWidget";XE._lastDimensions=new Du(0,0);XE=Eee([ow(2,Et)],XE);let lw=class extends ie{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=G0e("div.hover-row.status-bar"),this.actionsElement=de(this.hoverElement,G0e("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;return this._hasContent=!0,this._register(dee.render(this.actionsElement,e,n))}append(e){const t=de(this.actionsElement,e);return this._hasContent=!0,t}};lw=Eee([ow(0,on)],lw);class cw{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const n=e.getModel(),i=t.range.startLineNumber;if(i>n.getLineCount())return[];const r=n.getLineMaxColumn(i);return e.getLineDecorations(i).filter(a=>{if(a.options.isWholeLine)return!0;const o=a.range.startLineNumber===i?a.range.startColumn:1,s=a.range.endLineNumber===i?a.range.endColumn:r;if(a.options.showIfCollapsed){if(o>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(o>t.range.startColumn||t.range.endColumn>s)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return ki.EMPTY;const n=cw._getLineDecorations(this._editor,t);return ki.merge(this._participants.map(i=>i.computeAsync?i.computeAsync(t,n,e):ki.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=cw._getLineDecorations(this._editor,this._anchor);let t=[];for(const n of this._participants)t=t.concat(n.computeSync(this._anchor,e));return c1(t)}}function q0e(u,e,t,n,i,r){const a=t+i/2,o=n+r/2,s=Math.max(Math.abs(u-a)-i/2,0),l=Math.max(Math.abs(e-o)-r/2,0);return Math.sqrt(s*s+l*l)}const J0e=ve;class a5 extends ie{constructor(e,t,n){super(),this._renderDisposeables=this._register(new fe),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new aye),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new u4({editor:this._editor},t,n)),this._computer=new kgt(this._editor),this._hoverOperation=this._register(new oye(this._editor,this._computer)),this._register(this._hoverOperation.onResult(i=>{this._withResult(i.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(49)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return a5.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const n=document.createDocumentFragment();for(const i of t){const r=J0e("div.hover-row.markdown-hover"),a=de(r,J0e("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(i.value));a.appendChild(o.element),n.appendChild(r)}this._updateContents(n),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(e),i=this._editor.getScrollTop(),r=this._editor.getOption(65),a=this._hover.containerDomNode.clientHeight,o=n-i-(a-r)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(o),0)}px`}}a5.ID="editor.contrib.modesGlyphHoverWidget";class kgt{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=i=>({value:i}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(const i of t){if(!i.options.glyphMarginClassName)continue;const r=i.options.glyphMarginHoverMessage;!r||U5(r)||n.push(...TY(r).map(e))}return n}}var ygt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class Fgt{constructor(e,t,n){this.provider=e,this.hover=t,this.ordinal=n}}function Agt(u,e,t,n,i){return ygt(this,void 0,void 0,function*(){try{const r=yield Promise.resolve(u.provideHover(t,n,i));if(r&&Sgt(r))return new Fgt(u,r,e)}catch(r){Ni(r)}})}function gee(u,e,t,n){const r=u.ordered(e).map((a,o)=>Agt(a,o,e,t,n));return ki.fromPromises(r).coalesce()}function _gt(u,e,t,n){return gee(u,e,t,n).map(i=>i.hover).toPromise()}M1("_executeHoverProvider",(u,e,t)=>{const n=u.get($e);return _gt(n.hoverProvider,e,t,Vt.None)});function Sgt(u){const e=typeof u.range<"u",t=typeof u.contents<"u"&&u.contents&&u.contents.length>0;return e&&t}var Bgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},h7=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const Z0e=ve;class xc{constructor(e,t,n,i,r){this.owner=e,this.range=t,this.contents=n,this.isBeforeContent=i,this.ordinal=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let dw=class{constructor(e,t,n,i,r){this._editor=e,this._languageService=t,this._openerService=n,this._configurationService=i,this._languageFeaturesService=r,this.hoverOrdinal=3}createLoadingMessage(e){return new xc(this,e.range,[new _r().appendText(v("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const n=this._editor.getModel(),i=e.range.startLineNumber,r=n.getLineMaxColumn(i),a=[];let o=1e3;const s=n.getLineLength(i),l=n.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(115),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:l});let h=!1;c>=0&&s>c&&e.range.startColumn>=c&&(h=!0,a.push(new xc(this,e.range,[{value:v("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,o++))),!h&&typeof d=="number"&&s>=d&&a.push(new xc(this,e.range,[{value:v("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,o++));let E=!1;for(const g of t){const m=g.range.startLineNumber===i?g.range.startColumn:1,f=g.range.endLineNumber===i?g.range.endColumn:r,p=g.options.hoverMessage;if(!p||U5(p))continue;g.options.beforeContentClassName&&(E=!0);const D=new O(e.range.startLineNumber,m,e.range.startLineNumber,f);a.push(new xc(this,D,TY(p),E,o++))}return a}computeAsync(e,t,n){if(!this._editor.hasModel()||e.type!==1)return ki.EMPTY;const i=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(i))return ki.EMPTY;const r=new ue(e.range.startLineNumber,e.range.startColumn);return gee(this._languageFeaturesService.hoverProvider,i,r,n).filter(a=>!U5(a.hover.contents)).map(a=>{const o=a.hover.range?O.lift(a.hover.range):e.range;return new xc(this,o,a.hover.contents,!1,a.ordinal)})}renderHoverParts(e,t){return lye(e,t,this._editor,this._languageService,this._openerService)}};dw=Bgt([h7(1,Dn),h7(2,gs),h7(3,nu),h7(4,$e)],dw);function lye(u,e,t,n,i){e.sort((a,o)=>a.ordinal-o.ordinal);const r=new fe;for(const a of e)for(const o of a.contents){if(U5(o))continue;const s=Z0e("div.hover-row.markdown-hover"),l=de(s,Z0e("div.hover-contents")),c=r.add(new u4({editor:t},n,i));r.add(c.onDidRenderAsync(()=>{l.className="hover-contents code-hover-contents",u.onContentsChanged()}));const d=r.add(c.render(o));l.appendChild(d.element),u.fragment.appendChild(s)}return r}var cye=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},hw=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};class Y0e{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}}let xU=class{constructor(e,t,n){this._markerService=t,this._configService=n,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._dispoables=new fe,this._markers=[],this._nextIdx=-1,lt.isUri(e)?this._resourceFilter=o=>o.toString()===e.toString():e&&(this._resourceFilter=e);const i=this._configService.getValue("problems.sortOrder"),r=(o,s)=>{let l=Hk(o.resource.toString(),s.resource.toString());return l===0&&(i==="position"?l=O.compareRangesUsingStarts(o,s)||Wn.compare(o.severity,s.severity):l=Wn.compare(o.severity,s.severity)||O.compareRangesUsingStarts(o,s)),l},a=()=>{this._markers=this._markerService.read({resource:lt.isUri(e)?e:void 0,severities:Wn.Error|Wn.Warning|Wn.Info}),typeof e=="function"&&(this._markers=this._markers.filter(o=>this._resourceFilter(o.resource))),this._markers.sort(r)};a(),this._dispoables.add(t.onMarkerChanged(o=>{(!this._resourceFilter||o.some(s=>this._resourceFilter(s)))&&(a(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new Y0e(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let i=!1,r=this._markers.findIndex(a=>a.resource.toString()===e.uri.toString());r<0&&(r=Pk(this._markers,{resource:e.uri},(a,o)=>Hk(a.resource.toString(),o.resource.toString())),r<0&&(r=~r));for(let a=r;ai.resource.toString()===e.toString());if(!(n<0)){for(;n=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},cD=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};class zgt{constructor(e,t,n,i,r){this._openerService=i,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new fe,this._editor=t;const a=document.createElement("div");a.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),a.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),a.appendChild(this._relatedBlock),this._disposables.add(li(this._relatedBlock,"click",o=>{o.preventDefault();const s=this._relatedDiagnostics.get(o.target);s&&n(s)})),this._scrollable=new TCe(a,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(o=>{a.style.left=`-${o.scrollLeft}px`,a.style.top=`-${o.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Au(this._disposables)}update(e){const{source:t,message:n,relatedInformation:i,code:r}=e;let a=((t==null?void 0:t.length)||0)+2;r&&(typeof r=="string"?a+=r.length:a+=r.value.length);const o=E1(n);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+a,this._longestLineLength);fr(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let s=this._messageBlock;for(const h of o)s=document.createElement("div"),s.innerText=h,h===""&&(s.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(s);if(t||r){const h=document.createElement("span");if(h.classList.add("details"),s.appendChild(h),t){const E=document.createElement("span");E.innerText=t,E.classList.add("source"),h.appendChild(E)}if(r)if(typeof r=="string"){const E=document.createElement("span");E.innerText=`(${r})`,E.classList.add("code"),h.appendChild(E)}else{this._codeLink=ve("a.code-link"),this._codeLink.setAttribute("href",`${r.target.toString()}`),this._codeLink.onclick=g=>{this._openerService.open(r.target,{allowCommands:!0}),g.preventDefault(),g.stopPropagation()};const E=de(this._codeLink,ve("span"));E.innerText=r.value,h.appendChild(this._codeLink)}}if(fr(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),ca(i)){const h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(65)*.66)}px`,this._lines+=1;for(const E of i){const g=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(E.resource)}(${E.startLineNumber}, ${E.startColumn}): `,m.title=this._labelService.getUriLabel(E.resource),this._relatedDiagnostics.set(m,E);const f=document.createElement("span");f.innerText=E.message,g.appendChild(m),g.appendChild(f),this._lines+=1,h.appendChild(g)}}const l=this._editor.getOption(49),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Wn.Error:t=v("Error","Error");break;case Wn.Warning:t=v("Warning","Warning");break;case Wn.Info:t=v("Info","Info");break;case Wn.Hint:t=v("Hint","Hint");break}let n=v("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const i=this._editor.getModel();return i&&e.startLineNumber<=i.getLineCount()&&e.startLineNumber>=1&&(n=`${i.getLineContent(e.startLineNumber)}, ${n}`),n}}let av=class hye extends aw{constructor(e,t,n,i,r,a,o){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=n,this._menuService=i,this._contextKeyService=a,this._labelService=o,this._callOnDispose=new fe,this._onDidSelectRelatedInformation=new ee,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Wn.Warning,this._backgroundColor=ae.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Pgt);let t=bU,n=Lgt;this._severity===Wn.Warning?(t=IS,n=Mgt):this._severity===Wn.Info&&(t=kU,n=Tgt);const i=e.getColor(t),r=e.getColor(n);this.style({arrowColor:i,frameColor:i,headerBackgroundColor:r,primaryHeadingColor:e.getColor(K2e),secondaryHeadingColor:e.getColor(W2e)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(i=>this.editor.focus()));const t=[],n=this._menuService.createMenu(hye.TitleMenu,this._contextKeyService);ybe(n,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=de(e,ve(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new zgt(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const i=O.lift(e),r=this.editor.getPosition(),a=r&&i.containsPosition(r)?r:i.getStartPosition();super.show(a,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const s=n>1?v("problems","{0} of {1} problems",t,n):v("change","{0} of {1} problem",t,n);this.setTitle(B0(o.uri),s)}this._icon.className=`codicon ${CU.className(Wn.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(a,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};av.TitleMenu=new G("gotoErrorTitleMenu");av=wgt([cD(1,Ui),cD(2,gs),cD(3,L1),cD(4,mt),cD(5,Et),cD(6,q5)],av);const Q0e=t2(Kd,zXe),X0e=t2(zs,e2),ele=t2(Ls,rW),bU=U("editorMarkerNavigationError.background",{dark:Q0e,light:Q0e,hcDark:Zt,hcLight:Zt},v("editorMarkerNavigationError","Editor marker navigation widget error color.")),Lgt=U("editorMarkerNavigationError.headerBackground",{dark:tt(bU,.1),light:tt(bU,.1),hcDark:null,hcLight:null},v("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),IS=U("editorMarkerNavigationWarning.background",{dark:X0e,light:X0e,hcDark:Zt,hcLight:Zt},v("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Mgt=U("editorMarkerNavigationWarning.headerBackground",{dark:tt(IS,.1),light:tt(IS,.1),hcDark:"#0C141F",hcLight:tt(IS,.2)},v("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),kU=U("editorMarkerNavigationInfo.background",{dark:ele,light:ele,hcDark:Zt,hcLight:Zt},v("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Tgt=U("editorMarkerNavigationInfo.headerBackground",{dark:tt(kU,.1),light:tt(kU,.1),hcDark:null,hcLight:null},v("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Pgt=U("editorMarkerNavigation.background",{dark:er,light:er,hcDark:er,hcLight:er},v("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Ngt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},E7=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},Eye=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let Vg=class OS{static get(e){return e.getContribution(OS.ID)}constructor(e,t,n,i,r){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=i,this._instantiationService=r,this._sessionDispoables=new fe,this._editor=e,this._widgetVisible=gye.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(av,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(n=>{var i,r,a;(!(!((i=this._model)===null||i===void 0)&&i.selected)||!O.containsPosition((r=this._model)===null||r===void 0?void 0:r.selected.marker,n.position))&&((a=this._model)===null||a===void 0||a.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const n=this._model.find(this._editor.getModel().uri,this._widget.position);n?this._widget.updateMarker(n.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(n=>{this._editorService.openCodeEditor({resource:n.resource,options:{pinned:!0,revealIfOpened:!0,selection:O.lift(n).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new ue(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var n,i;return Eye(this,void 0,void 0,function*(){if(this._editor.hasModel()){const r=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(r.move(e,this._editor.getModel(),this._editor.getPosition()),!r.selected)return;if(r.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const a=yield this._editorService.openCodeEditor({resource:r.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:r.selected.marker}},this._editor);a&&((n=OS.get(a))===null||n===void 0||n.close(),(i=OS.get(a))===null||i===void 0||i.nagivate(e,t))}else this._widget.showAtMarker(r.selected.marker,r.selected.index,r.selected.total)}})}};Vg.ID="editor.contrib.markerController";Vg=Ngt([E7(1,dye),E7(2,Et),E7(3,hu),E7(4,mt)],Vg);class zN extends je{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){var n;return Eye(this,void 0,void 0,function*(){t.hasModel()&&((n=Vg.get(t))===null||n===void 0||n.nagivate(this._next,this._multiFile))})}}class eg extends zN{constructor(){super(!0,!1,{id:eg.ID,label:eg.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:578,weight:100},menuOpts:{menuId:av.TitleMenu,title:eg.LABEL,icon:Cn("marker-navigation-next",Ae.arrowDown,v("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}eg.ID="editor.action.marker.next";eg.LABEL=v("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class e3 extends zN{constructor(){super(!1,!1,{id:e3.ID,label:e3.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:1602,weight:100},menuOpts:{menuId:av.TitleMenu,title:e3.LABEL,icon:Cn("marker-navigation-previous",Ae.arrowUp,v("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}e3.ID="editor.action.marker.prev";e3.LABEL=v("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Rgt extends zN{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:v("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:66,weight:100},menuOpts:{menuId:G.MenubarGoMenu,title:v({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Igt extends zN{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:v("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:1090,weight:100},menuOpts:{menuId:G.MenubarGoMenu,title:v({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}Eu(Vg.ID,Vg,4);be(eg);be(e3);be(Rgt);be(Igt);const gye=new Ne("markersNavigationVisible",!1),Ogt=Dr.bindToContribution(Vg.get);Be(new Ogt({id:"closeMarkersNavigation",precondition:gye,handler:u=>u.close(),kbOpts:{weight:100+50,kbExpr:K.focus,primary:9,secondary:[1033]}}));var jgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},iV=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const W0=ve;class Vgt{constructor(e,t,n){this.owner=e,this.range=t,this.marker=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const tle={type:1,filter:{include:_t.QuickFix},triggerAction:Ks.QuickFixHover};let yU=class{constructor(e,t,n,i){this._editor=e,this._markerDecorationsService=t,this._openerService=n,this._languageFeaturesService=i,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const n=this._editor.getModel(),i=e.range.startLineNumber,r=n.getLineMaxColumn(i),a=[];for(const o of t){const s=o.range.startLineNumber===i?o.range.startColumn:1,l=o.range.endLineNumber===i?o.range.endColumn:r,c=this._markerDecorationsService.getMarker(n.uri,o);if(!c)continue;const d=new O(e.range.startLineNumber,s,e.range.startLineNumber,l);a.push(new Vgt(this,d,c))}return a}renderHoverParts(e,t){if(!t.length)return ie.None;const n=new fe;t.forEach(r=>e.fragment.appendChild(this.renderMarkerHover(r,n)));const i=t.length===1?t[0]:t.sort((r,a)=>Wn.compare(r.marker.severity,a.marker.severity))[0];return this.renderMarkerStatusbar(e,i,n),n}renderMarkerHover(e,t){const n=W0("div.hover-row"),i=de(n,W0("div.marker.hover-contents")),{source:r,message:a,code:o,relatedInformation:s}=e.marker;this._editor.applyFontInfo(i);const l=de(i,W0("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=a,r||o)if(o&&typeof o!="string"){const c=W0("span");if(r){const g=de(c,W0("span"));g.innerText=r}const d=de(c,W0("a.code-link"));d.setAttribute("href",o.target.toString()),t.add(ce(d,"click",g=>{this._openerService.open(o.target,{allowCommands:!0}),g.preventDefault(),g.stopPropagation()}));const h=de(d,W0("span"));h.innerText=o.value;const E=de(i,c);E.style.opacity="0.6",E.style.paddingLeft="6px"}else{const c=de(i,W0("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=r&&o?`${r}(${o})`:r||`(${o})`}if(ca(s))for(const{message:c,resource:d,startLineNumber:h,startColumn:E}of s){const g=de(i,W0("div"));g.style.marginTop="8px";const m=de(g,W0("a"));m.innerText=`${B0(d)}(${h}, ${E}): `,m.style.cursor="pointer",t.add(ce(m,"click",p=>{p.stopPropagation(),p.preventDefault(),this._openerService&&this._openerService.open(d,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:E}}}).catch(wt)}));const f=de(g,W0("span"));f.innerText=c,this._editor.applyFontInfo(f)}return n}renderMarkerStatusbar(e,t,n){if((t.marker.severity===Wn.Error||t.marker.severity===Wn.Warning||t.marker.severity===Wn.Info)&&e.statusBar.addAction({label:v("view problem","View Problem"),commandId:eg.ID,run:()=>{var i;e.hide(),(i=Vg.get(this._editor))===null||i===void 0||i.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(89)){const i=e.statusBar.append(W0("div"));this.recentMarkerCodeActionsInfo&&($B.makeKey(this.recentMarkerCodeActionsInfo.marker)===$B.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(i.textContent=v("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const r=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?ie.None:n.add(_g(()=>i.textContent=v("checkingForQuickFixes","Checking for quick fixes..."),200));i.textContent||(i.textContent=String.fromCharCode(160));const a=this.getCodeActions(t.marker);n.add(bt(()=>a.cancel())),a.then(o=>{if(r.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:o.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){o.dispose(),i.textContent=v("noQuickFixes","No quick fixes available");return}i.style.display="none";let s=!1;n.add(bt(()=>{s||o.dispose()})),e.statusBar.addAction({label:v("quick fixes","Quick Fix..."),commandId:uee,run:l=>{s=!0;const c=M3.get(this._editor),d=mi(l);e.hide(),c==null||c.showCodeActions(tle,o,{x:d.left,y:d.top,width:d.width,height:d.height})}})},wt)}}getCodeActions(e){return $i(t=>ree(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),tle,_p.None,t))}};yU=jgt([iV(1,pQ),iV(2,gs),iV(3,$e)],yU);const mye="editor.action.inlineSuggest.commit",fye="editor.action.inlineSuggest.showPrevious",pye="editor.action.inlineSuggest.showNext";var Hgt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class $gt extends ie{constructor(e,t,n={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new tqe),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new fe,this.options=n,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new j2(()=>{var i;return(i=this.toggleMenuActionViewItem)===null||i===void 0?void 0:i.show()},n.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new $s(this.element,{orientation:n.orientation,ariaLabel:n.ariaLabel,actionRunner:n.actionRunner,allowContextMenu:n.allowContextMenu,actionViewItemProvider:(i,r)=>{var a;if(i.id===j2.ID)return this.toggleMenuActionViewItem=new NB(i,i.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:et.asClassNameArray((a=n.moreIcon)!==null&&a!==void 0?a:Ae.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(n.actionViewItemProvider){const o=n.actionViewItemProvider(i,r);if(o)return o}if(i instanceof N5){const o=new NB(i,i.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:i.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return o.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(o),this.disposables.add(this._onDidChangeDropdownVisibility.add(o.onDidChangeVisibility)),o}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const n=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),n.push(this.toggleMenuAction)),n.forEach(i=>{this.actionBar.push(i,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(i)})})}getKeybindingLabel(e){var t,n;const i=this.lookupKeybindings?(n=(t=this.options).getKeyBinding)===null||n===void 0?void 0:n.call(t,e):void 0;return Gr(i==null?void 0:i.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class j2 extends da{constructor(e,t){t=t||v("moreActions","More Actions..."),super(j2.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Hgt(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}j2.ID="toolbar.toggle.more";var Kgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},a6=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let FU=class extends $gt{constructor(e,t,n,i,r,a,o){super(e,r,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=a.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0,skipTelemetry:typeof(t==null?void 0:t.telemetrySource)=="string"})),this._options=t,this._menuService=n,this._contextKeyService=i,this._contextMenuService=r,this._sessionDisposables=this._store.add(new fe);const s=t==null?void 0:t.telemetrySource;s&&this._store.add(this.actionBar.onDidRun(l=>o.publicLog2("workbenchActionExecuted",{id:l.action.id,from:s})))}setActions(e,t=[],n){var i,r,a;this._sessionDisposables.clear();const o=e.slice(),s=t.slice(),l=[];let c=0;const d=[];let h=!1;if(((i=this._options)===null||i===void 0?void 0:i.hiddenItemStrategy)!==-1)for(let E=0;E=this._options.maxNumberOfItems&&(o[g]=void 0,d[g]=m)}}Yie(o),Yie(d),super.setActions(o,pr.join(d,s)),l.length>0&&this._sessionDisposables.add(ce(this.getElement(),"contextmenu",E=>{var g,m,f,p,D;const x=new Bs(E),b=this.getItemAction(x.target);if(!b)return;x.preventDefault(),x.stopPropagation();let k=!1;if(c===1&&((g=this._options)===null||g===void 0?void 0:g.hiddenItemStrategy)===0){k=!0;for(let S=0;Sthis._menuService.resetHiddenStates(n)}))),this._contextMenuService.showContextMenu({getAnchor:()=>x,getActions:()=>y,menuId:(f=this._options)===null||f===void 0?void 0:f.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(p=this._options)===null||p===void 0?void 0:p.menuOptions),skipTelemetry:typeof((D=this._options)===null||D===void 0?void 0:D.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};FU=Kgt([a6(2,L1),a6(3,Et),a6(4,Qs),a6(5,on),a6(6,Ys)],FU);var mee=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},vc=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let AU=class extends ie{constructor(e,t,n){super(),this.editor=e,this.model=t,this.instantiationService=n,this.alwaysShowToolbar=to(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).showToolbar==="always"),this.sessionPosition=void 0,this.position=gu("position",i=>{var r,a,o;const s=(r=this.model.read(i))===null||r===void 0?void 0:r.ghostText.read(i);if(!this.alwaysShowToolbar.read(i)||!s||s.parts.length===0)return this.sessionPosition=void 0,null;const l=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const c=new ue(s.lineNumber,Math.min(l,(o=(a=this.sessionPosition)===null||a===void 0?void 0:a.column)!==null&&o!==void 0?o:Number.MAX_SAFE_INTEGER));return this.sessionPosition=c,c}),this._register(il("setup content widget",(i,r)=>{const a=this.model.read(i);if(!a||!this.alwaysShowToolbar.read(i))return;const o=r.add(this.instantiationService.createInstance(Hg,this.editor,!0,this.position,a.selectedInlineCompletionIndex,a.inlineCompletionsCount,a.selectedInlineCompletion.map(s=>{var l;return(l=s==null?void 0:s.inlineCompletion.source.inlineCompletions.commands)!==null&&l!==void 0?l:[]})));e.addContentWidget(o),r.add(bt(()=>e.removeContentWidget(o))),r.add(nn("request explicit",s=>{this.position.read(s)&&a.lastTriggerKind.read(s)!==Ih.Explicit&&a.triggerExplicitly()}))}))}};AU=mee([vc(2,mt)],AU);const Wgt=Cn("inline-suggestion-hints-next",Ae.chevronRight,v("parameterHintsNextIcon","Icon for show next parameter hint.")),Ggt=Cn("inline-suggestion-hints-previous",Ae.chevronLeft,v("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Hg=class _U extends ie{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,n){const i=new da(e,t,n,!0,()=>this._commandService.executeCommand(e)),r=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let a=t;return r&&(a=v({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,r.getLabel())),i.tooltip=a,i}constructor(e,t,n,i,r,a,o,s,l,c,d){super(),this.editor=e,this.withBorder=t,this._position=n,this._currentSuggestionIdx=i,this._suggestionCount=r,this._extraCommands=a,this._commandService=o,this.keybindingService=l,this._contextKeyService=c,this._menuService=d,this.id=`InlineSuggestionHintsContentWidget${_U.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=ka("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[ka("div",{style:{display:"flex"}},[ka("div@actionBar",{className:"custom-actions"}),ka("div@toolBar")])]),this.previousAction=this.createCommandAction(fye,v("previous","Previous"),et.asClassName(Ggt)),this.availableSuggestionCountAction=new da("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(pye,v("next","Next"),et.asClassName(Wgt)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(G.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new Hu(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new Hu(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[];const h=this._register(new $s(this.nodes.actionBar));h.push(this.previousAction,{icon:!0,label:!1}),h.push(this.availableSuggestionCountAction),h.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(s.createInstance(SU,this.nodes.toolBar,G.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:E=>E.startsWith("primary")},actionViewItemProvider:(E,g)=>E instanceof Sl?s.createInstance(Ugt,E,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(E=>{_U._dropDownVisible=E})),this._register(nn("update position",E=>{this._position.read(E),this.editor.layoutContentWidget(this)})),this._register(nn("counts",E=>{const g=this._suggestionCount.read(E),m=this._currentSuggestionIdx.read(E);g!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${m+1}/${g}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),g!==void 0&&g>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(nn("extra commands",E=>{const g=this._extraCommands.read(E);if(Ur(this.lastCommands,g))return;this.lastCommands=g;const m=g.map(f=>({class:void 0,id:f.id,enabled:!0,tooltip:f.tooltip||"",label:f.title,run:p=>this._commandService.executeCommand(f.id)}));for(const[f,p]of this.inlineCompletionsActionsMenus.getActions())for(const D of p)D instanceof Sl&&m.push(D);m.length>0&&m.unshift(new pr),this.toolBar.setAdditionalSecondaryActions(m)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Hg._dropDownVisible=!1;Hg.id=0;Hg=mee([vc(6,ei),vc(7,mt),vc(8,on),vc(9,Et),vc(10,L1)],Hg);let Ugt=class extends y3{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=ka("div.keybinding").root;new eA(t,Ss,Object.assign({disableTitle:!0},Xlt)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},SU=class extends FU{constructor(e,t,n,i,r,a,o,s){super(e,Object.assign({resetMenu:t},n),i,r,a,o,s),this.menuId=t,this.options2=n,this.menuService=i,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,n,i,r,a,o;const s=[],l=[];ybe(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:s,secondary:l},(n=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||n===void 0?void 0:n.primaryGroup,(r=(i=this.options2)===null||i===void 0?void 0:i.toolbarOptions)===null||r===void 0?void 0:r.shouldInlineSubmenu,(o=(a=this.options2)===null||a===void 0?void 0:a.toolbarOptions)===null||o===void 0?void 0:o.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),this.setActions(s,l)}setAdditionalSecondaryActions(e){Ur(this.additionalActions,e,(t,n)=>t===n)||(this.additionalActions=e,this.updateToolbar())}};SU=mee([vc(3,L1),vc(4,Et),vc(5,Qs),vc(6,on),vc(7,Ys)],SU);var qgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},g7=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const Jgt=!1;let No=class Dye{static get(e){return e.getContribution(Dye.ID)}constructor(e,t,n,i,r){this._editor=e,this._instantiationService=t,this._openerService=n,this._languageService=i,this._keybindingService=r,this._toUnhook=new fe,this._hoverActivatedByColorDecoratorClick=!1,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(a=>{a.hasChanged(59)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(59);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(n=>this._onEditorMouseDown(n))),this._toUnhook.add(this._editor.onMouseUp(n=>this._onEditorMouseUp(n))),this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))):(this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))),this._toUnhook.add(this._editor.onMouseLeave(n=>this._onEditorMouseLeave(n))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(n=>this._onEditorScrollChanged(n)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._isMouseDown=!0;const n=e.target;if(n.type===9&&n.detail===XE.ID){this._hoverClicked=!0;return}n.type===12&&n.detail===a5.ID||(n.type!==12&&(this._hoverClicked=!1),!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t,n;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||!((n=this._contentWidget)===null||n===void 0)&&n.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,n,i,r,a,o,s,l,c,d,h;const E=e.target;if(!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((n=this._contentWidget)===null||n===void 0)&&n.isResizing||this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&E.type===9&&E.detail===XE.ID||this._isHoverSticky&&(!((i=this._contentWidget)===null||i===void 0)&&i.containsNode((r=e.event.browserEvent.view)===null||r===void 0?void 0:r.document.activeElement))&&!(!((o=(a=e.event.browserEvent.view)===null||a===void 0?void 0:a.getSelection())===null||o===void 0)&&o.isCollapsed)||!this._isHoverSticky&&E.type===9&&E.detail===XE.ID&&(!((s=this._contentWidget)===null||s===void 0)&&s.isColorPickerVisible)||this._isHoverSticky&&E.type===12&&E.detail===a5.ID||this._isHoverSticky&&(!((l=this._contentWidget)===null||l===void 0)&&l.isVisibleFromKeyboard))return;const g=(c=E.element)===null||c===void 0?void 0:c.classList.contains("colorpicker-color-decoration"),m=this._editor.getOption(145);if(g&&(m==="click"&&!this._hoverActivatedByColorDecoratorClick||m==="hover"&&!this._isHoverEnabled&&!Jgt||m==="clickAndHover"&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick)||!g&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(d=this._glyphWidget)===null||d===void 0||d.hide();return}if(E.type===2&&E.position){(h=this._contentWidget)===null||h===void 0||h.hide(),this._glyphWidget||(this._glyphWidget=new a5(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(E.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const n=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=n.kind===1||n.kind===2&&n.commandId==="editor.action.showHover"&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible);e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&!i&&this._hideWidgets()}_hideWidgets(){var e,t,n;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||Hg.dropDownVisible||(this._hoverActivatedByColorDecoratorClick=!1,this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(n=this._contentWidget)===null||n===void 0||n.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(sw,this._editor)),this._contentWidget}showContentHover(e,t,n,i,r=!1){this._hoverActivatedByColorDecoratorClick=r,this._getOrCreateContentWidget().startShowingAtRange(e,t,n,i)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}get isColorPickerVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};No.ID="editor.contrib.hover";No=qgt([g7(1,mt),g7(2,gs),g7(3,Dn),g7(4,on)],No);class Zgt extends je{constructor(){super({id:"editor.action.showHover",label:v({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:Ri(2089,2087),weight:100}})}run(e,t,n){var i;const r=e.get(nu),a=e.get(B1),o=e.get(on);if(!t.hasModel())return;const s=No.get(t);if(!s)return;const l=t.getPosition(),c=new O(l.lineNumber,l.column,l.lineNumber,l.column),d=t.getOption(2)===2||!!(n!=null&&n.focus);if(s.isHoverVisible?s.focus():s.showContentHover(c,1,1,d),r.getValue("accessibility.verbosity.hover")&&a.isScreenReaderOptimized()){const h=(i=o.lookupKeybinding("editor.action.accessibleView"))===null||i===void 0?void 0:i.getAriaLabel(),E=h?v("chatAccessibleViewHint","Inspect this in the accessible view with {0}",h):v("chatAccessibleViewHintNoKb","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding");M5(E)}}}class Ygt extends je{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:v({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const n=No.get(t);if(!n)return;const i=t.getPosition();if(!i)return;const r=new O(i.lineNumber,i.column,i.lineNumber,i.column),a=T3.get(t);if(!a)return;a.startFindDefinitionFromCursor(i).then(()=>{n.showContentHover(r,1,1,!0)})}}class Qgt extends je{constructor(){super({id:"editor.action.scrollUpHover",label:v({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:16,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollUp()}}class Xgt extends je{constructor(){super({id:"editor.action.scrollDownHover",label:v({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:18,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollDown()}}class emt extends je{constructor(){super({id:"editor.action.scrollLeftHover",label:v({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:15,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollLeft()}}class tmt extends je{constructor(){super({id:"editor.action.scrollRightHover",label:v({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:17,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollRight()}}class umt extends je{constructor(){super({id:"editor.action.pageUpHover",label:v({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const n=No.get(t);n&&n.pageUp()}}class nmt extends je{constructor(){super({id:"editor.action.pageDownHover",label:v({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const n=No.get(t);n&&n.pageDown()}}class imt extends je{constructor(){super({id:"editor.action.goToTopHover",label:v({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const n=No.get(t);n&&n.goToTop()}}class rmt extends je{constructor(){super({id:"editor.action.goToBottomHover",label:v({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const n=No.get(t);n&&n.goToBottom()}}Eu(No.ID,No,2);be(Zgt);be(Ygt);be(Qgt);be(Xgt);be(emt);be(tmt);be(umt);be(nmt);be(imt);be(rmt);Pp.register(dw);Pp.register(yU);jl((u,e)=>{const t=u.getColor(GXe);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class BU extends ie{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(145);if(t!=="click"&&t!=="clickAndHover")return;const n=e.target;if(n.type!==6||!n.detail.injectedText||n.detail.injectedText.options.attachedData!==M2e||!n.range)return;const i=this._editor.getContribution(No.ID);if(i&&!i.isColorPickerVisible){const r=new O(n.range.startLineNumber,n.range.startColumn+1,n.range.endLineNumber,n.range.endColumn+1);i.showContentHover(r,1,0,!1,!0)}}}BU.ID="editor.contrib.colorContribution";Eu(BU.ID,BU,2);Pp.register(rw);var xye=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},hc=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},ule=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let $g=class vye extends ie{constructor(e,t,n,i,r,a,o){super(),this._editor=e,this._modelService=n,this._keybindingService=i,this._instantiationService=r,this._languageFeatureService=a,this._languageConfigurationService=o,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=K.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=K.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new Ew(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution(vye.ID)}};$g.ID="editor.contrib.standaloneColorPickerController";$g=xye([hc(1,Et),hc(2,Bn),hc(3,on),hc(4,mt),hc(5,$e),hc(6,an)],$g);Eu($g.ID,$g,1);const nle=8,amt=22;let Ew=class Cye extends ie{constructor(e,t,n,i,r,a,o,s){var l;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=n,this._modelService=r,this._keybindingService=a,this._languageFeaturesService=o,this._languageConfigurationService=s,this.allowEditorOverflow=!0,this.body=document.createElement("div"),this._position=void 0,this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new ee),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=i.createInstance(N2,this._editor),this._position=(l=this._editor._getViewModel())===null||l===void 0?void 0:l.getPrimaryCursorState().modelState.position;const c=this._editor.getSelection(),d=c?{startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(g1(this.body));this._register(h.onDidBlur(E=>{this.hide()})),this._register(h.onDidFocus(E=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(E=>{var g;const m=(g=E.target.element)===null||g===void 0?void 0:g.classList;m&&m.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(E=>{this._render(E.value,E.foundInEditor)})),this._start(d),this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return Cye.ID}getDomNode(){return this.body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(59).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this.body.focus()}_start(e){return ule(this,void 0,void 0,function*(){const t=yield this._computeAsync(e);t&&this._onResult.fire(new omt(t.result,t.foundInEditor))})}_computeAsync(e){return ule(this,void 0,void 0,function*(){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},n=yield this._standaloneColorPickerParticipant.createColorHover(t,new oee(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return n?{result:n.colorHover,foundInEditor:n.foundInEditor}:null})}_render(e,t){const n=document.createDocumentFragment(),i=this._register(new lw(this._keybindingService));let r;const a={fragment:n,statusBar:i,setColorPicker:m=>r=m,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(a,[e])),r===void 0)return;this.body.classList.add("standalone-colorpicker-body"),this.body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this.body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this.body.tabIndex=0,this.body.appendChild(n),r.layout();const o=r.body,s=o.saturationBox.domNode.clientWidth,l=o.domNode.clientWidth-s-amt-nle,c=r.body.enterButton;c==null||c.onClicked(()=>{this.updateEditor(),this.hide()});const d=r.header,h=d.pickedColorNode;h.style.width=s+nle+"px";const E=d.originalColorNode;E.style.width=l+"px";const g=r.header.closeButton;g==null||g.onClicked(()=>{this.hide()}),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};Ew.ID="editor.contrib.standaloneColorPickerWidget";Ew=xye([hc(3,mt),hc(4,Bn),hc(5,on),hc(6,$e),hc(7,an)],Ew);class omt{constructor(e,t){this.value=e,this.foundInEditor=t}}class smt extends vp{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:v("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:v({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:G.CommandPalette}]})}runEditorCommand(e,t){var n;(n=$g.get(t))===null||n===void 0||n.showOrFocus()}}class lmt extends je{constructor(){super({id:"editor.action.hideColorPicker",label:v({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:K.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var n;(n=$g.get(t))===null||n===void 0||n.hide()}}class cmt extends je{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:v({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:K.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var n;(n=$g.get(t))===null||n===void 0||n.insertColor()}}be(lmt);be(cmt);fi(smt);class SE{constructor(e,t,n){this.languageConfigurationService=n,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;const i=t.length,r=e.length;if(n+i>r)return!1;for(let a=0;a=65&&o<=90&&o+32===s)&&!(s>=65&&s<=90&&s+32===o))return!1}return!0}_createOperationsForBlockComment(e,t,n,i,r,a){const o=e.startLineNumber,s=e.startColumn,l=e.endLineNumber,c=e.endColumn,d=r.getLineContent(o),h=r.getLineContent(l);let E=d.lastIndexOf(t,s-1+t.length),g=h.indexOf(n,c-1-n.length);if(E!==-1&&g!==-1)if(o===l)d.substring(E+t.length,g).indexOf(n)>=0&&(E=-1,g=-1);else{const f=d.substring(E+t.length),p=h.substring(0,g);(f.indexOf(n)>=0||p.indexOf(n)>=0)&&(E=-1,g=-1)}let m;E!==-1&&g!==-1?(i&&E+t.length0&&h.charCodeAt(g-1)===32&&(n=" "+n,g-=1),m=SE._createRemoveBlockCommentOperations(new O(o,E+t.length+1,l,g+1),t,n)):(m=SE._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=m.length===1?n:null);for(const f of m)a.addTrackedEditOperation(f.range,f.text)}static _createRemoveBlockCommentOperations(e,t,n){const i=[];return O.isEmpty(e)?i.push(An.delete(new O(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(An.delete(new O(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(An.delete(new O(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i}static _createAddBlockCommentOperations(e,t,n,i){const r=[];return O.isEmpty(e)?r.push(An.replace(new O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(r.push(An.insert(new ue(e.startLineNumber,e.startColumn),t+(i?" ":""))),r.push(An.insert(new ue(e.endLineNumber,e.endColumn),(i?" ":"")+n))),r}getEditOperations(e,t){const n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenization.tokenizeIfCheap(n);const r=e.getLanguageIdAtPosition(n,i),a=this.languageConfigurationService.getLanguageConfiguration(r).comments;!a||!a.blockCommentStartToken||!a.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,a.blockCommentStartToken,a.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const n=t.getInverseEditOperations();if(n.length===2){const i=n[0],r=n[1];return new Ze(i.range.endLineNumber,i.range.endColumn,r.range.startLineNumber,r.range.startColumn)}else{const i=n[0].range,r=this._usedEndToken?-this._usedEndToken.length-1:0;return new Ze(i.endLineNumber,i.endColumn+r,i.endLineNumber,i.endColumn+r)}}}class oh{constructor(e,t,n,i,r,a,o){this.languageConfigurationService=e,this._selection=t,this._tabSize=n,this._type=i,this._insertSpace=r,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=a,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,n,i){e.tokenization.tokenizeIfCheap(t);const r=e.getLanguageIdAtPosition(t,1),a=i.getLanguageConfiguration(r).comments,o=a?a.lineCommentToken:null;if(!o)return null;const s=[];for(let l=0,c=n-t+1;l{if(e&&typeof e=="object"||typeof e=="function")for(let i of m4t(e))!f4t.call(u,i)&&i!==t&&E4t(u,i,{get:()=>e[i],enumerable:!(n=g4t(e,i))||n.enumerable});return u},p4t=(u,e,t)=>(B0e(u,e,"default"),t&&B0e(t,e,"default")),D4t="5.0.2",uv={};p4t(uv,iA);var Qke=(u=>(u[u.None=0]="None",u[u.CommonJS=1]="CommonJS",u[u.AMD=2]="AMD",u[u.UMD=3]="UMD",u[u.System=4]="System",u[u.ES2015=5]="ES2015",u[u.ESNext=99]="ESNext",u))(Qke||{}),Xke=(u=>(u[u.None=0]="None",u[u.Preserve=1]="Preserve",u[u.React=2]="React",u[u.ReactNative=3]="ReactNative",u[u.ReactJSX=4]="ReactJSX",u[u.ReactJSXDev=5]="ReactJSXDev",u))(Xke||{}),e2e=(u=>(u[u.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",u[u.LineFeed=1]="LineFeed",u))(e2e||{}),t2e=(u=>(u[u.ES3=0]="ES3",u[u.ES5=1]="ES5",u[u.ES2015=2]="ES2015",u[u.ES2016=3]="ES2016",u[u.ES2017=4]="ES2017",u[u.ES2018=5]="ES2018",u[u.ES2019=6]="ES2019",u[u.ES2020=7]="ES2020",u[u.ESNext=99]="ESNext",u[u.JSON=100]="JSON",u[u.Latest=99]="Latest",u))(t2e||{}),u2e=(u=>(u[u.Classic=1]="Classic",u[u.NodeJs=2]="NodeJs",u))(u2e||{}),n2e=class{constructor(u,e,t,n,i){Fn(this,"_onDidChange",new uv.Emitter);Fn(this,"_onDidExtraLibsChange",new uv.Emitter);Fn(this,"_extraLibs");Fn(this,"_removedExtraLibs");Fn(this,"_eagerModelSync");Fn(this,"_compilerOptions");Fn(this,"_diagnosticsOptions");Fn(this,"_workerOptions");Fn(this,"_onDidExtraLibsChangeTimeout");Fn(this,"_inlayHintsOptions");Fn(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(u),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(n),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(u,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===u)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(n=this._extraLibs[t].version+1),this._extraLibs[t]={content:u,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let i=this._extraLibs[t];i&&i.version===n&&(delete this._extraLibs[t],this._removedExtraLibs[t]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(u){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),u&&u.length>0)for(const e of u){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=e.content;let i=1;this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:n,version:i}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(u){this._compilerOptions=u||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(u){this._diagnosticsOptions=u||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(u){this._workerOptions=u||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(u){this._inlayHintsOptions=u||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(u){}setEagerModelSync(u){this._eagerModelSync=u}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(u){this._modeConfiguration=u||Object.create(null),this._onDidChange.fire(void 0)}},x4t=D4t,i2e={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},r2e=new n2e({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},i2e),a2e=new n2e({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},i2e),v4t=()=>xN().then(u=>u.getTypeScriptWorker()),C4t=()=>xN().then(u=>u.getJavaScriptWorker());uv.languages.typescript={ModuleKind:Qke,JsxEmit:Xke,NewLineKind:e2e,ScriptTarget:t2e,ModuleResolutionKind:u2e,typescriptVersion:x4t,typescriptDefaults:r2e,javascriptDefaults:a2e,getTypeScriptWorker:v4t,getJavaScriptWorker:C4t};function xN(){return Le(()=>import("./tsMode-e7b0acb9.js"),[],import.meta.url)}uv.languages.onLanguage("typescript",()=>xN().then(u=>u.setupTypeScript(r2e)));uv.languages.onLanguage("javascript",()=>xN().then(u=>u.setupJavaScript(a2e)));var b4t=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},k4t=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},vN=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const CN=new Ne("selectionAnchorSet",!1);let t4=class o2e{static get(e){return e.getContribution(o2e.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=CN.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Ze.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new _r().appendText(v("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Aa(v("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Ze.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};t4.ID="editor.contrib.selectionAnchorController";t4=b4t([k4t(1,Et)],t4);class y4t extends je{constructor(){super({id:"editor.action.setSelectionAnchor",label:v("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:Ri(2089,2080),weight:100}})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.setSelectionAnchor()})}}class F4t extends je{constructor(){super({id:"editor.action.goToSelectionAnchor",label:v("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:CN})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.goToSelectionAnchor()})}}class A4t extends je{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:v("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:CN,kbOpts:{kbExpr:K.editorTextFocus,primary:Ri(2089,2089),weight:100}})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.selectFromAnchorToCursor()})}}class _4t extends je{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:v("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:CN,kbOpts:{kbExpr:K.editorTextFocus,primary:9,weight:100}})}run(e,t){var n;return vN(this,void 0,void 0,function*(){(n=t4.get(t))===null||n===void 0||n.cancelSelectionAnchor()})}}Eu(t4.ID,t4,4);be(y4t);be(F4t);be(A4t);be(_4t);const S4t=U("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},v("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class B4t extends je{constructor(){super({id:"editor.action.jumpToBracket",label:v("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:3165,weight:100}})}run(e,t){var n;(n=xl.get(t))===null||n===void 0||n.jumpToBracket()}}class w4t extends je{constructor(){super({id:"editor.action.selectToBracket",label:v("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){var i;let r=!0;n&&n.selectBrackets===!1&&(r=!1),(i=xl.get(t))===null||i===void 0||i.selectToBracket(r)}}class z4t extends je{constructor(){super({id:"editor.action.removeBrackets",label:v("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:2561,weight:100}})}run(e,t){var n;(n=xl.get(t))===null||n===void 0||n.removeBrackets(this.id)}}class L4t{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class xl extends ie{static get(e){return e.getContribution(xl.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Hu(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(70),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(70)&&(this._matchBrackets=this._editor.getOption(70),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{const i=n.getStartPosition(),r=e.bracketPairs.matchBracket(i);let a=null;if(r)r[0].containsPosition(i)&&!r[1].containsPosition(i)?a=r[1].getStartPosition():r[1].containsPosition(i)&&(a=r[0].getStartPosition());else{const o=e.bracketPairs.findEnclosingBrackets(i);if(o)a=o[1].getStartPosition();else{const s=e.bracketPairs.findNextBracket(i);s&&s.range&&(a=s.range.getStartPosition())}}return a?new Ze(a.lineNumber,a.column,a.lineNumber,a.column):new Ze(i.lineNumber,i.column,i.lineNumber,i.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(i=>{const r=i.getStartPosition();let a=t.bracketPairs.matchBracket(r);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(r),!a)){const l=t.bracketPairs.findNextBracket(r);l&&l.range&&(a=t.bracketPairs.matchBracket(l.range.getStartPosition()))}let o=null,s=null;if(a){a.sort(O.compareRangesUsingStarts);const[l,c]=a;if(o=e?l.getStartPosition():l.getEndPosition(),s=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(r)){const d=o;o=s,s=d}}o&&s&&n.push(new Ze(o.lineNumber,o.column,s.lineNumber,s.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(n=>{const i=n.getPosition();let r=t.bracketPairs.matchBracket(i);r||(r=t.bracketPairs.findEnclosingBrackets(i)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const n of this._lastBracketsData){const i=n.brackets;i&&(e[t++]={range:i[0],options:n.options},e[t++]={range:i[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),n=t.getVersionId();let i=[];this._lastVersionId===n&&(i=this._lastBracketsData);const r=[];let a=0;for(let d=0,h=e.length;d1&&r.sort(ue.compare);const o=[];let s=0,l=0;const c=i.length;for(let d=0,h=r.length;d0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}}be(N4t);var R4t=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const B3="9_cutcopypaste",I4t=wc||document.queryCommandSupported("cut"),l2e=wc||document.queryCommandSupported("copy"),O4t=typeof navigator.clipboard>"u"||F0?document.queryCommandSupported("paste"):!0;function tee(u){return u.register(),u}const j4t=I4t?tee(new Yv({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:wc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:G.MenubarEditMenu,group:"2_ccp",title:v({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:G.EditorContext,group:B3,title:v("actions.clipboard.cutLabel","Cut"),when:K.writable,order:1},{menuId:G.CommandPalette,group:"",title:v("actions.clipboard.cutLabel","Cut"),order:1},{menuId:G.SimpleEditorContext,group:B3,title:v("actions.clipboard.cutLabel","Cut"),when:K.writable,order:1}]})):void 0,V4t=l2e?tee(new Yv({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:wc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:G.MenubarEditMenu,group:"2_ccp",title:v({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:G.EditorContext,group:B3,title:v("actions.clipboard.copyLabel","Copy"),order:2},{menuId:G.CommandPalette,group:"",title:v("actions.clipboard.copyLabel","Copy"),order:1},{menuId:G.SimpleEditorContext,group:B3,title:v("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;oa.appendMenuItem(G.MenubarEditMenu,{submenu:G.MenubarCopy,title:{value:v("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});oa.appendMenuItem(G.EditorContext,{submenu:G.EditorContextCopy,title:{value:v("copy as","Copy As"),original:"Copy As"},group:B3,order:3});oa.appendMenuItem(G.EditorContext,{submenu:G.EditorContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1,when:pe.and(pe.notEquals("resourceScheme","output"),K.editorTextFocus)});oa.appendMenuItem(G.EditorTitleContext,{submenu:G.EditorTitleContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1});oa.appendMenuItem(G.ExplorerContext,{submenu:G.ExplorerContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1});const Vj=O4t?tee(new Yv({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:wc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:G.MenubarEditMenu,group:"2_ccp",title:v({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:G.EditorContext,group:B3,title:v("actions.clipboard.pasteLabel","Paste"),when:K.writable,order:4},{menuId:G.CommandPalette,group:"",title:v("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:G.SimpleEditorContext,group:B3,title:v("actions.clipboard.pasteLabel","Paste"),when:K.writable,order:4}]})):void 0;class H4t extends je{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:v("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:K.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(36)&&t.getSelection().isEmpty()||(oW.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),oW.forceCopyWithSyntaxHighlighting=!1)}}function c2e(u,e){u&&(u.addImplementation(1e4,"code-editor",(t,n)=>{const i=t.get(hu).getFocusedCodeEditor();if(i&&i.hasTextFocus()){const r=i.getOption(36),a=i.getSelection();return a&&a.isEmpty()&&!r||document.execCommand(e),!0}return!1}),u.addImplementation(0,"generic-dom",(t,n)=>(document.execCommand(e),!0)))}c2e(j4t,"cut");c2e(V4t,"copy");Vj&&(Vj.addImplementation(1e4,"code-editor",(u,e)=>{const t=u.get(hu),n=u.get(td),i=t.getFocusedCodeEditor();return i&&i.hasTextFocus()?!document.execCommand("paste")&&em?(()=>R4t(void 0,void 0,void 0,function*(){const a=yield n.readText();if(a!==""){const o=i2.INSTANCE.get(a);let s=!1,l=null,c=null;o&&(s=i.getOption(36)&&!!o.isFromEmptySelection,l=typeof o.multicursorText<"u"?o.multicursorText:null,c=o.mode),i.trigger("keyboard","paste",{text:a,pasteOnNewLine:s,multicursorText:l,mode:c})}}))():!0:!1}),Vj.addImplementation(0,"generic-dom",(u,e)=>(document.execCommand("paste"),!0)));l2e&&be(H4t);var $4t=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let _t=class TS{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+TS.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new TS(this.value+TS.sep+e)}};_t.sep=".";_t.None=new _t("@@none@@");_t.Empty=new _t("");_t.QuickFix=new _t("quickfix");_t.Refactor=new _t("refactor");_t.RefactorExtract=_t.Refactor.append("extract");_t.RefactorInline=_t.Refactor.append("inline");_t.RefactorMove=_t.Refactor.append("move");_t.RefactorRewrite=_t.Refactor.append("rewrite");_t.Source=new _t("source");_t.SourceOrganizeImports=_t.Source.append("organizeImports");_t.SourceFixAll=_t.Source.append("fixAll");_t.SurroundWith=_t.Refactor.append("surround");var Ks;(function(u){u.Refactor="refactor",u.RefactorPreview="refactor preview",u.Lightbulb="lightbulb",u.Default="other (default)",u.SourceAction="source action",u.QuickFix="quick fix action",u.FixAll="fix all",u.OrganizeImports="organize imports",u.AutoFix="auto fix",u.QuickFixHover="quick fix hover window",u.OnSave="save participants",u.ProblemsView="problems view"})(Ks||(Ks={}));function K4t(u,e){return!(u.include&&!u.include.intersects(e)||u.excludes&&u.excludes.some(t=>d2e(e,t,u.include))||!u.includeSourceActions&&_t.Source.contains(e))}function W4t(u,e){const t=e.kind?new _t(e.kind):void 0;return!(u.include&&(!t||!u.include.contains(t))||u.excludes&&t&&u.excludes.some(n=>d2e(t,n,u.include))||!u.includeSourceActions&&t&&_t.Source.contains(t)||u.onlyIncludePreferredActions&&!e.isPreferred)}function d2e(u,e,t){return!(!e.contains(u)||t&&e.contains(t))}class Id{static fromUser(e,t){return!e||typeof e!="object"?new Id(t.kind,t.apply,!1):new Id(Id.getKindFromUser(e,t.kind),Id.getApplyFromUser(e,t.apply),Id.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new _t(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}}class G4t{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return $4t(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let n;try{n=yield this.provider.resolveCodeAction(this.action,e)}catch(i){Ni(i)}n&&(this.action.edit=n.edit)}return this})}}var uw=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const h2e="editor.action.codeAction",uee="editor.action.quickFix",E2e="editor.action.autoFix",g2e="editor.action.refactor",m2e="editor.action.sourceAction",nee="editor.action.organizeImports",iee="editor.action.fixAll";class tk extends ie{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return ca(e.diagnostics)?ca(t.diagnostics)?tk.codeActionsPreferredComparator(e,t):-1:ca(t.diagnostics)?1:tk.codeActionsPreferredComparator(e,t)}constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=[...e].sort(tk.codeActionsComparator),this.validActions=this.allActions.filter(({action:i})=>!i.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&_t.QuickFix.contains(new _t(e.kind))&&!!e.isPreferred)}}const w0e={actions:[],documentation:void 0};function ree(u,e,t,n,i,r){var a;return uw(this,void 0,void 0,function*(){const o=n.filter||{},s={only:(a=o.include)===null||a===void 0?void 0:a.value,trigger:n.type},l=new JX(e,r),c=U4t(u,e,o),d=new fe,h=c.map(g=>uw(this,void 0,void 0,function*(){try{i.report(g);const m=yield g.provideCodeActions(e,t,s,l.token);if(m&&d.add(m),l.token.isCancellationRequested)return w0e;const f=((m==null?void 0:m.actions)||[]).filter(D=>D&&W4t(o,D)),p=J4t(g,f,o.include);return{actions:f.map(D=>new G4t(D,g)),documentation:p}}catch(m){if(Xc(m))throw m;return Ni(m),w0e}})),E=u.onDidChange(()=>{const g=u.all(e);Ur(g,c)||l.cancel()});try{const g=yield Promise.all(h),m=g.map(p=>p.actions).flat(),f=[...c1(g.map(p=>p.documentation)),...q4t(u,e,n,m)];return new tk(m,f,d)}finally{E.dispose(),l.dispose()}})}function U4t(u,e,t){return u.all(e).filter(n=>n.providedCodeActionKinds?n.providedCodeActionKinds.some(i=>K4t(t,new _t(i))):!0)}function*q4t(u,e,t,n){var i,r,a;if(e&&n.length)for(const o of u.all(e))o._getAdditionalMenuItems&&(yield*(i=o._getAdditionalMenuItems)===null||i===void 0?void 0:i.call(o,{trigger:t.type,only:(a=(r=t.filter)===null||r===void 0?void 0:r.include)===null||a===void 0?void 0:a.value},n.map(s=>s.action)))}function J4t(u,e,t){if(!u.documentation)return;const n=u.documentation.map(i=>({kind:new _t(i.kind),command:i.command}));if(t){let i;for(const r of n)r.kind.contains(t)&&(i?i.kind.contains(r.kind)&&(i=r):i=r);if(i)return i==null?void 0:i.command}for(const i of e)if(i.kind){for(const r of n)if(r.kind.contains(new _t(i.kind)))return r.command}}var nw;(function(u){u.OnSave="onSave",u.FromProblemsView="fromProblemsView",u.FromCodeActions="fromCodeActions"})(nw||(nw={}));function Z4t(u,e,t,n,i=Vt.None){var r;return uw(this,void 0,void 0,function*(){const a=u.get(YF),o=u.get(ei),s=u.get(Ys),l=u.get(ci);if(s.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(i),!i.isCancellationRequested&&!(!((r=e.action.edit)===null||r===void 0)&&r.edits.length&&!(yield a.apply(e.action.edit,{editor:n==null?void 0:n.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==nw.OnSave,showPreview:n==null?void 0:n.preview})).isApplied)&&e.action.command)try{yield o.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(c){const d=Y4t(c);l.error(typeof d=="string"?d:v("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Y4t(u){return typeof u=="string"?u:u instanceof Error&&typeof u.message=="string"?u.message:void 0}Xt.registerCommand("_executeCodeActionProvider",function(u,e,t,n,i){return uw(this,void 0,void 0,function*(){if(!(e instanceof lt))throw p0();const{codeActionProvider:r}=u.get($e),a=u.get(Bn).getModel(e);if(!a)throw p0();const o=Ze.isISelection(t)?Ze.liftSelection(t):O.isIRange(t)?a.validateRange(t):void 0;if(!o)throw p0();const s=typeof n=="string"?new _t(n):void 0,l=yield ree(r,a,o,{type:1,triggerAction:Ks.Default,filter:{includeSourceActions:!0,include:s}},_p.None,Vt.None),c=[],d=Math.min(l.validActions.length,typeof i=="number"?i:0);for(let h=0;hh.action)}finally{setTimeout(()=>l.dispose(),100)}})});var Q4t=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},X4t=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let iw=class f2e{constructor(e){this.keybindingService=e}getResolver(){const e=new nm(()=>this.keybindingService.getKeybindings().filter(t=>f2e.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command===nee?n={kind:_t.SourceOrganizeImports.value}:t.command===iee&&(n={kind:_t.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Id.fromUser(n,{kind:_t.None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.value);return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new _t(e.kind);return t.filter(i=>i.kind.contains(n)).filter(i=>i.preferred?e.isPreferred:!0).reduceRight((i,r)=>i?i.kind.contains(r.kind)?r:i:r,void 0)}};iw.codeActionCommands=[g2e,h2e,m2e,nee,iee];iw=Q4t([X4t(0,on)],iw);U("symbolIcon.arrayForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.booleanForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.colorForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.constantForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.fileForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.folderForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.keyForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.keywordForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.moduleForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.namespaceForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.nullForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.numberForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.objectForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.operatorForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.packageForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.propertyForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.referenceForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.snippetForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.stringForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.structForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.textForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.typeParameterForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.unitForeground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},v("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));U("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const p2e=Object.freeze({kind:_t.Empty,title:v("codeAction.widget.id.more","More Actions...")}),eEt=Object.freeze([{kind:_t.QuickFix,title:v("codeAction.widget.id.quickfix","Quick Fix...")},{kind:_t.RefactorExtract,title:v("codeAction.widget.id.extract","Extract..."),icon:Ae.wrench},{kind:_t.RefactorInline,title:v("codeAction.widget.id.inline","Inline..."),icon:Ae.wrench},{kind:_t.RefactorRewrite,title:v("codeAction.widget.id.convert","Rewrite..."),icon:Ae.wrench},{kind:_t.RefactorMove,title:v("codeAction.widget.id.move","Move..."),icon:Ae.wrench},{kind:_t.SurroundWith,title:v("codeAction.widget.id.surround","Surround With..."),icon:Ae.symbolSnippet},{kind:_t.Source,title:v("codeAction.widget.id.source","Source Action..."),icon:Ae.symbolFile},p2e]);function tEt(u,e,t){if(!e)return u.map(r=>({kind:"action",item:r,group:p2e,disabled:!!r.action.disabled,label:r.action.disabled||r.action.title}));const n=eEt.map(r=>({group:r,actions:[]}));for(const r of u){const a=r.action.kind?new _t(r.action.kind):_t.None;for(const o of n)if(o.group.kind.contains(a)){o.actions.push(r);break}}const i=[];for(const r of n)if(r.actions.length){i.push({kind:"header",group:r.group});for(const a of r.actions)i.push({kind:"action",item:a,group:r.group,label:a.action.title,disabled:!!a.action.disabled,keybinding:t(a.action)})}return i}var uEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},nEt=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},gx;(function(u){u.Hidden={type:0};class e{constructor(n,i,r,a){this.actions=n,this.trigger=i,this.editorPosition=r,this.widgetPosition=a,this.type=1}}u.Showing=e})(gx||(gx={}));let w3=class D2e extends ie{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new ee),this.onClick=this._onClick.event,this._state=gx.Hidden,this._domNode=ve("div.lightBulbWidget"),this._register(Xu.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(n=>{const i=this._editor.getModel();(this.state.type!==1||!i||this.state.editorPosition.lineNumber>=i.getLineCount())&&this.hide()})),this._register(_Qe(this._domNode,n=>{if(this.state.type!==1)return;this._editor.focus(),n.preventDefault();const{top:i,height:r}=mi(this._domNode),a=this._editor.getOption(65);let o=Math.floor(a/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(n.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(63)&&!this._editor.getOption(63).enabled&&this.hide()})),this._register(Ke.runAndSubscribe(t.onDidUpdateKeybindings,()=>{var n,i;this._preferredKbLabel=Gr((n=t.lookupKeybinding(E2e))===null||n===void 0?void 0:n.getLabel()),this._quickFixKbLabel=Gr((i=t.lookupKeybinding(uee))===null||i===void 0?void 0:i.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();const i=this._editor.getOptions();if(!i.get(63).enabled)return this.hide();const r=this._editor.getModel();if(!r)return this.hide();const{lineNumber:a,column:o}=r.validatePosition(n),s=r.getOptions().tabSize,l=i.get(49),c=r.getLineContent(a),d=RP(c,s),h=l.spaceWidth*d>22,E=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let g=a;if(!h){if(a>1&&!E(a-1))g-=1;else if(!E(a+1))g+=1;else if(o*l.spaceWidth<22)return this.hide()}this.state=new gx.Showing(e,t,n,{position:{lineNumber:g,column:1},preference:D2e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==gx.Hidden&&(this.state=gx.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...et.asClassNameArray(Ae.lightBulb)),this._domNode.classList.add(...et.asClassNameArray(Ae.lightbulbAutofix)),this._preferredKbLabel)){this.title=v("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...et.asClassNameArray(Ae.lightbulbAutofix)),this._domNode.classList.add(...et.asClassNameArray(Ae.lightBulb)),this._quickFixKbLabel?this.title=v("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=v("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};w3.ID="editor.contrib.lightbulbWidget";w3._posPref=[0];w3=uEt([nEt(1,on)],w3);var iEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},z0e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},x2e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let u4=class v2e{constructor(e,t,n){this._options=e,this._languageService=t,this._openerService=n,this._onDidRenderAsync=new ee,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,n){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const i=new fe,r=i.add(UP(e,Object.assign(Object.assign({},this._getRenderOptions(e,i)),t),n));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>i.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(n,i)=>x2e(this,void 0,void 0,function*(){var r,a,o;let s;n?s=this._languageService.getLanguageIdByLanguageName(n):this._options.editor&&(s=(r=this._options.editor.getModel())===null||r===void 0?void 0:r.getLanguageId()),s||(s=Ns);const l=yield brt(this._languageService,i,s),c=document.createElement("span");if(c.innerHTML=(o=(a=v2e._ttpTokenizer)===null||a===void 0?void 0:a.createHTML(l))!==null&&o!==void 0?o:l,this._options.editor){const d=this._options.editor.getOption(49);tr(c,d)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:n=>C2e(this._openerService,n,e.isTrusted),disposables:t}}}};u4._ttpTokenizer=g4("tokenizeToString",{createHTML(u){return u}});u4=iEt([z0e(1,Dn),z0e(2,gs)],u4);function C2e(u,e,t){return x2e(this,void 0,void 0,function*(){try{return yield u.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:rEt(t)})}catch(n){return wt(n),!1}})}function rEt(u){return u===!0?!0:u&&Array.isArray(u.enabledCommands)?u.enabledCommands:!1}var aEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},L0e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let is=class eU{static get(e){return e.getContribution(eU.ID)}constructor(e,t,n){this._openerService=n,this._messageWidget=new Qr,this._messageListeners=new fe,this._mouseOverMessage=!1,this._editor=e,this._visible=eU.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Aa(qE(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=qE(e)?UP(e,{actionHandler:{callback:i=>C2e(this._openerService,i,qE(e)?e.isTrusted:void 0),disposables:this._messageListeners}}):void 0,this._messageWidget.value=new M0e(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(Ke.debounce(this._editor.onDidBlurEditorText,(i,r)=>r,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&zo(document.activeElement,this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(ce(this._messageWidget.value.getDomNode(),Me.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(ce(this._messageWidget.value.getDomNode(),Me.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let n;this._messageListeners.add(this._editor.onMouseMove(i=>{i.target.position&&(n?n.containsPosition(i.target.position)||this.closeMessage():n=new O(t.lineNumber-3,1,i.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(M0e.fadeOut(this._messageWidget.value))}};is.ID="editor.contrib.messageController";is.MESSAGE_VISIBLE=new Ne("messageVisible",!1,v("messageVisible","Whether the editor is currently showing an inline message"));is=aEt([L0e(1,Et),L0e(2,gs)],is);const oEt=Dr.bindToContribution(is.get);Be(new oEt({id:"leaveEditorMessage",precondition:is.MESSAGE_VISIBLE,handler:u=>u.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let M0e=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:n},i){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const a=document.createElement("div");typeof i=="string"?(a.classList.add("message"),a.textContent=i):(i.classList.add("message"),a.appendChild(i)),this._domNode.appendChild(a);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Eu(is.ID,is,4);var b2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},tU=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const k2e="acceptSelectedCodeAction",y2e="previewSelectedCodeAction";class sEt{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,n){var i,r;n.text.textContent=(r=(i=e.group)===null||i===void 0?void 0:i.title)!==null&&r!==void 0?r:""}disposeTemplate(e){}}let uU=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const n=document.createElement("span");n.className="title",e.append(n);const i=new eA(e,Ss);return{container:e,icon:t,text:n,keybinding:i}}renderElement(e,t,n){var i,r,a;if(!((i=e.group)===null||i===void 0)&&i.icon?(n.icon.className=et.asClassName(e.group.icon),e.group.icon.color&&(n.icon.style.color=Te(e.group.icon.color.id))):(n.icon.className=et.asClassName(Ae.lightBulb),n.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;n.text.textContent=F2e(e.label),n.keybinding.set(e.keybinding),RQe(!!e.keybinding,n.keybinding.element);const o=(r=this._keybindingService.lookupKeybinding(k2e))===null||r===void 0?void 0:r.getLabel(),s=(a=this._keybindingService.lookupKeybinding(y2e))===null||a===void 0?void 0:a.getLabel();n.container.classList.toggle("option-disabled",e.disabled),e.disabled?n.container.title=e.label:o&&s?this._supportsPreview?n.container.title=v({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",o,s):n.container.title=v({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",o):n.container.title=""}disposeTemplate(e){}};uU=b2e([tU(1,on)],uU);class lEt extends UIEvent{constructor(){super("acceptSelectedAction")}}class T0e extends UIEvent{constructor(){super("previewSelectedAction")}}let nU=class extends ie{constructor(e,t,n,i,r,a){super(),this._delegate=i,this._contextViewService=r,this._keybindingService=a,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:s=>s.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:s=>s.kind};this._list=this._register(new Vl(e,this.domNode,o,[new uU(t,this._keybindingService),new sEt],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:s=>{if(s.kind==="action"){let l=s.label?F2e(s==null?void 0:s.label):"";return s.disabled&&(l=v({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",l,s.disabled)),l}return null},getWidgetAriaLabel:()=>v({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:s=>s.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Sp),this._register(this._list.onMouseClick(s=>this.onListClick(s))),this._register(this._list.onMouseOver(s=>this.onListHover(s))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(s=>this.onListSelection(s))),this._allMenuItems=n,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(l=>l.kind==="header").length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);const r=this._allMenuItems.map((l,c)=>{const d=document.getElementById(this._list.getElementID(c));if(d){d.style.width="auto";const h=d.getBoundingClientRect().width;return d.style.width="",h}return 0}),a=Math.max(...r,e),o=.7,s=Math.min(i,document.body.clientHeight*o);return this._list.layout(s,a),this.domNode.style.height=`${s}px`,this._list.domFocus(),a}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const n=t[0],i=this._list.element(n);if(!this.focusCondition(i))return;const r=e?new T0e:new lEt;this._list.setSelection([n],r)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof T0e):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};nU=b2e([tU(4,f4),tU(5,on)],nU);function F2e(u){return u.replace(/\r\n|\r|\n/g," ")}var cEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Hj=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const z3={Visible:new Ne("codeActionMenuVisible",!1,v("codeActionMenuVisible","Whether the action widget list is visible"))},zp=Gt("actionWidgetService");let L3=class extends ie{get isVisible(){return z3.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,n){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=n,this._list=this._register(new Qr)}show(e,t,n,i,r,a,o){const s=z3.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(nU,e,t,n,i);this._contextViewService.showContextView({getAnchor:()=>r,render:c=>(s.set(!0),this._renderWidget(c,l,o??[])),onHide:c=>{s.reset(),this._onWidgetClosed(c)}},a,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,n){var i;const r=document.createElement("div");if(r.classList.add("action-widget"),e.appendChild(r),this._list.value=t,this._list.value)r.appendChild(this._list.value.domNode);else throw new Error("List has no value");const a=new fe,o=document.createElement("div"),s=e.appendChild(o);s.classList.add("context-view-block"),a.add(ce(s,Me.MOUSE_DOWN,g=>g.stopPropagation()));const l=document.createElement("div"),c=e.appendChild(l);c.classList.add("context-view-pointerBlock"),a.add(ce(c,Me.POINTER_MOVE,()=>c.remove())),a.add(ce(c,Me.MOUSE_DOWN,()=>c.remove()));let d=0;if(n.length){const g=this._createActionBar(".action-widget-action-bar",n);g&&(r.appendChild(g.getContainer().parentElement),a.add(g),d=g.getContainer().offsetWidth)}const h=(i=this._list.value)===null||i===void 0?void 0:i.layout(d);r.style.width=`${h}px`;const E=a.add(g1(e));return a.add(E.onDidBlur(()=>this.hide())),a}_createActionBar(e,t){if(!t.length)return;const n=ve(e),i=new $s(n);return i.push(t,{icon:!1,label:!0}),i}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};L3=cEt([Hj(0,f4),Hj(1,Et),Hj(2,mt)],L3);iu(zp,L3,1);const aA=100+1e3;fi(class extends ed{constructor(){super({id:"hideCodeActionWidget",title:{value:v("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:z3.Visible,keybinding:{weight:aA,primary:9,secondary:[1033]}})}run(u){u.get(zp).hide()}});fi(class extends ed{constructor(){super({id:"selectPrevCodeAction",title:{value:v("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:z3.Visible,keybinding:{weight:aA,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(u){const e=u.get(zp);e instanceof L3&&e.focusPrevious()}});fi(class extends ed{constructor(){super({id:"selectNextCodeAction",title:{value:v("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:z3.Visible,keybinding:{weight:aA,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(u){const e=u.get(zp);e instanceof L3&&e.focusNext()}});fi(class extends ed{constructor(){super({id:k2e,title:{value:v("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:z3.Visible,keybinding:{weight:aA,primary:3,secondary:[2137]}})}run(u){const e=u.get(zp);e instanceof L3&&e.acceptSelected()}});fi(class extends ed{constructor(){super({id:y2e,title:{value:v("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:z3.Visible,keybinding:{weight:aA,primary:2051}})}run(u){const e=u.get(zp);e instanceof L3&&e.acceptSelected(!0)}});const A2e=new Ne("supportedCodeAction","");class dEt extends ie{constructor(e,t,n,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._autoTriggerTimer=this._register(new Il),this._register(this._markerService.onMarkerChanged(r=>this._onMarkerChanges(r))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(n=>OP(n,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Ks.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&e.type===2){const{lineNumber:i,column:r}=n.getPosition(),a=t.getLineContent(i);if(a.length===0)return;if(r===1){if(/\s/.test(a[0]))return}else if(r===t.getLineMaxColumn(i)){if(/\s/.test(a[a.length-1]))return}else if(/\s/.test(a[r-2])&&/\s/.test(a[r-1]))return}return n}}var mf;(function(u){u.Empty={type:0};class e{constructor(n,i,r){this.trigger=n,this.position=i,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Xc(a))return hEt;throw a})}cancel(){this._cancellablePromise.cancel()}}u.Triggered=e})(mf||(mf={}));const hEt=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1});class EEt extends ie{constructor(e,t,n,i,r){super(),this._editor=e,this._registry=t,this._markerService=n,this._progressService=r,this._codeActionOracle=this._register(new Qr),this._state=mf.Empty,this._onDidChangeState=this._register(new ee),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=A2e.bindTo(i),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(mf.Empty,!0))}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(mf.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(89)){const t=this._registry.all(e).flatMap(n=>{var i;return(i=n.providedCodeActionKinds)!==null&&i!==void 0?i:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new dEt(this._editor,this._markerService,n=>{var i;if(!n){this.setState(mf.Empty);return}const r=$i(a=>ree(this._registry,e,n.selection,n.trigger,_p.None,a));n.trigger.type===1&&((i=this._progressService)===null||i===void 0||i.showWhile(r,250)),this.setState(new mf.Triggered(n.trigger,n.selection.getStartPosition(),r))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Ks.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}var gEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},J1=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},l7=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let M3=class _2e extends ie{static get(e){return e.getContribution(_2e.ID)}constructor(e,t,n,i,r,a,o,s,l,c){super(),this._commandService=o,this._configurationService=s,this._actionWidgetService=l,this._instantiationService=c,this._activeCodeActions=this._register(new Qr),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new EEt(this._editor,r.codeActionProvider,t,n,a)),this._register(this._model.onDidChangeState(d=>this.update(d))),this._lightBulbWidget=new nm(()=>{const d=this._editor.getContribution(w3.ID);return d&&this._register(d.onClick(h=>this.showCodeActionList(h.actions,h,{includeDisabledActions:!1,fromLightbulb:!0}))),d}),this._resolver=i.createInstance(iw),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}showCodeActions(e,t,n){return this.showCodeActionList(t,n,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,n,i){var r;if(!this._editor.hasModel())return;(r=is.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:n,autoApply:i,context:{notAvailableMessage:e,position:a}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,n){return l7(this,void 0,void 0,function*(){try{yield this._instantiationService.invokeFunction(Z4t,e,nw.FromCodeActions,{preview:n,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Ks.QuickFix,filter:{}})}})}update(e){var t,n,i,r,a,o,s;return l7(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let l;try{l=yield e.actions}catch(c){wt(c);return}if(!this._disposed)if((n=this._lightBulbWidget.value)===null||n===void 0||n.update(l,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const d=this.tryGetValidActionToApply(e.trigger,l);if(d){try{(r=this._lightBulbWidget.value)===null||r===void 0||r.hide(),yield this._applyCodeAction(d,!1,!1)}finally{l.dispose()}return}if(e.trigger.context){const h=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,l);if(h&&h.action.disabled){(a=is.get(this._editor))===null||a===void 0||a.showMessage(h.action.disabled,e.trigger.context.position),l.dispose();return}}}const c=!!(!((o=e.trigger.filter)===null||o===void 0)&&o.include);if(e.trigger.context&&(!l.allActions.length||!c&&!l.validActions.length)){(s=is.get(this._editor))===null||s===void 0||s.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=l,l.dispose();return}this._activeCodeActions.value=l,this.showCodeActionList(l,this.toCoords(e.position),{includeDisabledActions:c,fromLightbulb:!1})}else this._actionWidgetService.isVisible?l.dispose():this._activeCodeActions.value=l})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:n})=>n.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,n){return l7(this,void 0,void 0,function*(){const i=this._editor.getDomNode();if(!i)return;const r=n.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!r.length)return;const a=ue.isIPosition(t)?this.toCoords(t):t,o={onSelect:(s,l)=>l7(this,void 0,void 0,function*(){this._applyCodeAction(s,!0,!!l),this._actionWidgetService.hide()}),onHide:()=>{var s;(s=this._editor)===null||s===void 0||s.focus()}};this._actionWidgetService.show("codeActionWidget",!0,tEt(r,this._shouldShowHeaders(),this._resolver.getResolver()),o,a,i,this._getActionBarActions(e,t,n))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=mi(this._editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height;return{x:i,y:r}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,n){if(n.fromLightbulb)return[];const i=e.documentation.map(r=>{var a;return{id:r.id,label:r.title,tooltip:(a=r.tooltip)!==null&&a!==void 0?a:"",class:void 0,enabled:!0,run:()=>{var o;return this._commandService.executeCommand(r.id,...(o=r.arguments)!==null&&o!==void 0?o:[])}}});return n.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&i.push(this._showDisabled?{id:"hideMoreActions",label:v("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,n))}:{id:"showMoreActions",label:v("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,n))}),i}};M3.ID="editor.contrib.codeActionController";M3=gEt([J1(1,T1),J1(2,Et),J1(3,mt),J1(4,$e),J1(5,p4),J1(6,ei),J1(7,nu),J1(8,zp),J1(9,mt)],M3);function oA(u){return pe.regex(A2e.keys()[0],new RegExp("(\\s|^)"+Vs(u.value)+"\\b"))}const aee={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:v("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:v("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[v("args.schema.apply.first","Always apply the first returned code action."),v("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),v("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:v("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function Lp(u,e,t,n,i=Ks.Default){if(u.hasModel()){const r=M3.get(u);r==null||r.manualTriggerAtCurrentPosition(e,i,t,n)}}class mEt extends je{constructor(){super({id:uee,label:v("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:pe.and(K.writable,K.hasCodeActionsProvider),kbOpts:{kbExpr:K.textInputFocus,primary:2137,weight:100}})}run(e,t){return Lp(t,v("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Ks.QuickFix)}}class fEt extends Dr{constructor(){super({id:h2e,precondition:pe.and(K.writable,K.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:aee}]}})}runEditorCommand(e,t,n){const i=Id.fromUser(n,{kind:_t.Empty,apply:"ifSingle"});return Lp(t,typeof(n==null?void 0:n.kind)=="string"?i.preferred?v("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):v("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?v("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):v("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class pEt extends je{constructor(){super({id:g2e,label:v("refactor.label","Refactor..."),alias:"Refactor...",precondition:pe.and(K.writable,K.hasCodeActionsProvider),kbOpts:{kbExpr:K.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:pe.and(K.writable,oA(_t.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:aee}]}})}run(e,t,n){const i=Id.fromUser(n,{kind:_t.Refactor,apply:"never"});return Lp(t,typeof(n==null?void 0:n.kind)=="string"?i.preferred?v("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):v("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?v("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):v("editor.action.refactor.noneMessage","No refactorings available"),{include:_t.Refactor.contains(i.kind)?i.kind:_t.None,onlyIncludePreferredActions:i.preferred},i.apply,Ks.Refactor)}}class DEt extends je{constructor(){super({id:m2e,label:v("source.label","Source Action..."),alias:"Source Action...",precondition:pe.and(K.writable,K.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:pe.and(K.writable,oA(_t.Source))},description:{description:"Source Action...",args:[{name:"args",schema:aee}]}})}run(e,t,n){const i=Id.fromUser(n,{kind:_t.Source,apply:"never"});return Lp(t,typeof(n==null?void 0:n.kind)=="string"?i.preferred?v("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):v("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?v("editor.action.source.noneMessage.preferred","No preferred source actions available"):v("editor.action.source.noneMessage","No source actions available"),{include:_t.Source.contains(i.kind)?i.kind:_t.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply,Ks.SourceAction)}}class xEt extends je{constructor(){super({id:nee,label:v("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:pe.and(K.writable,oA(_t.SourceOrganizeImports)),kbOpts:{kbExpr:K.textInputFocus,primary:1581,weight:100}})}run(e,t){return Lp(t,v("editor.action.organize.noneMessage","No organize imports action available"),{include:_t.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Ks.OrganizeImports)}}class vEt extends je{constructor(){super({id:iee,label:v("fixAll.label","Fix All"),alias:"Fix All",precondition:pe.and(K.writable,oA(_t.SourceFixAll))})}run(e,t){return Lp(t,v("fixAll.noneMessage","No fix all action available"),{include:_t.SourceFixAll,includeSourceActions:!0},"ifSingle",Ks.FixAll)}}class CEt extends je{constructor(){super({id:E2e,label:v("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:pe.and(K.writable,oA(_t.QuickFix)),kbOpts:{kbExpr:K.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Lp(t,v("editor.action.autoFix.noneMessage","No auto fixes available"),{include:_t.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Ks.AutoFix)}}Eu(M3.ID,M3,3);Eu(w3.ID,w3,4);be(mEt);be(pEt);be(DEt);be(xEt);be(CEt);be(vEt);Be(new fEt);Xn.as(E4.Configuration).registerConfiguration(Object.assign(Object.assign({},pbe),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:v("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var P0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class iU{constructor(){this.lenses=[],this._disposables=new fe}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const n of e.lenses)this.lenses.push({symbol:n,provider:t})}}function S2e(u,e,t){return P0e(this,void 0,void 0,function*(){const n=u.ordered(e),i=new Map,r=new iU,a=n.map((o,s)=>P0e(this,void 0,void 0,function*(){i.set(o,s);try{const l=yield Promise.resolve(o.provideCodeLenses(e,t));l&&r.add(l,o)}catch(l){Ni(l)}}));return yield Promise.all(a),r.lenses=r.lenses.sort((o,s)=>o.symbol.range.startLineNumbers.symbol.range.startLineNumber?1:i.get(o.provider)i.get(s.provider)?1:o.symbol.range.startColumns.symbol.range.startColumn?1:0),r})}Xt.registerCommand("_executeCodeLensProvider",function(u,...e){let[t,n]=e;Iu(lt.isUri(t)),Iu(typeof n=="number"||!n);const{codeLensProvider:i}=u.get($e),r=u.get(Bn).getModel(t);if(!r)throw p0();const a=[],o=new fe;return S2e(i,r,Vt.None).then(s=>{o.add(s);const l=[];for(const c of s.lenses)n==null||c.symbol.command?a.push(c.symbol):n-- >0&&c.provider.resolveCodeLens&&l.push(Promise.resolve(c.provider.resolveCodeLens(r,c.symbol,Vt.None)).then(d=>a.push(d||c.symbol)));return Promise.all(l)}).then(()=>a).finally(()=>{setTimeout(()=>o.dispose(),100)})});var bEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},kEt=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const B2e=Gt("ICodeLensCache");class N0e{constructor(e,t){this.lineCount=e,this.data=t}}let rU=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new rm(20,.75);const t="codelens/cache";Ah(()=>e.remove(t,1));const n="codelens/cache2",i=e.get(n,1,"{}");this._deserialize(i),h1(e.onWillSaveState)(r=>{r.reason===RB.SHUTDOWN&&e.store(n,this._serialize(),1,1)})}put(e,t){const n=t.lenses.map(a=>{var o;return{range:a.symbol.range,command:a.symbol.command&&{id:"",title:(o=a.symbol.command)===null||o===void 0?void 0:o.title}}}),i=new iU;i.add({lenses:n,dispose:()=>{}},this._fakeProvider);const r=new N0e(e.getLineCount(),i);this._cache.set(e.uri.toString(),r)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,n]of this._cache){const i=new Set;for(const r of n.data.lenses)i.add(r.symbol.range.startLineNumber);e[t]={lineCount:n.lineCount,lines:[...i.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const n in t){const i=t[n],r=[];for(const o of i.lines)r.push({range:new O(o,1,o,11)});const a=new iU;a.add({lenses:r,dispose(){}},this._fakeProvider),this._cache.set(n,new N0e(i.lineCount,a))}}catch{}}};rU=bEt([kEt(0,$l)],rU);iu(B2e,rU,1);class yEt{constructor(e,t,n){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=n,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class bN{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${bN._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const n=[];let i=!1;for(let r=0;r{l.symbol.command&&s.push(l.symbol),n.addDecoration({range:l.symbol.range,options:R0e},d=>this._decorationIds[c]=d),o?o=O.plusRange(o,l.symbol.range):o=O.lift(l.symbol.range)}),this._viewZone=new yEt(o.startLineNumber-1,r,a),this._viewZoneId=i.addZone(this._viewZone),s.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(s,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new bN(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const n=this._editor.getModel().getDecorationRange(e),i=this._data[t].symbol;return!!(n&&O.isEmpty(i.range)===n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((n,i)=>{t.addDecoration({range:n.symbol.range,options:R0e},r=>this._decorationIds[i]=r)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},r6=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},AEt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let nv=class{constructor(e,t,n,i,r,a){this._editor=e,this._languageFeaturesService=t,this._commandService=i,this._notificationService=r,this._codeLensCache=a,this._disposables=new fe,this._localToDispose=new fe,this._lenses=[],this._oldCodeLensModels=new fe,this._provideCodeLensDebounce=n.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=n.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new Hu(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(o=>{(o.hasChanged(49)||o.hasChanged(18)||o.hasChanged(17))&&this._updateLensStyle(),o.hasChanged(16)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(65)/this._editor.getOption(51));let t=this._editor.getOption(18);return(!t||t<5)&&(t=this._editor.getOption(51)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),n=this._editor.getOption(17),i=this._editor.getOption(49),{style:r}=this._editor.getContainerDomNode();r.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),r.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),r.setProperty("--vscode-editorCodeLens-fontFeatureSettings",i.fontFeatureSettings),n&&(r.setProperty("--vscode-editorCodeLens-fontFamily",n),r.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ns.fontFamily)),this._editor.changeViewZones(a=>{for(const o of this._lenses)o.updateHeight(e,a)})}_localDispose(){var e,t,n;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(n=this._currentCodeLensModel)===null||n===void 0||n.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(16))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(_g(()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const i of this._languageFeaturesService.codeLensProvider.all(e))if(typeof i.onDidChange=="function"){const r=i.onDidChange(()=>n.schedule());this._localToDispose.add(r)}const n=new Hu(()=>{var i;const r=Date.now();(i=this._getCodeLensModelPromise)===null||i===void 0||i.cancel(),this._getCodeLensModelPromise=$i(a=>S2e(this._languageFeaturesService.codeLensProvider,e,a)),this._getCodeLensModelPromise.then(a=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=a,this._codeLensCache.put(e,a);const o=this._provideCodeLensDebounce.update(e,Date.now()-r);n.delay=o,this._renderCodeLensSymbols(a),this._resolveCodeLensesInViewportSoon()},wt)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(n),this._localToDispose.add(bt(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var i;this._editor.changeDecorations(r=>{this._editor.changeViewZones(a=>{const o=[];let s=-1;this._lenses.forEach(c=>{!c.isValid()||s===c.getLineNumber()?o.push(c):(c.update(a),s=c.getLineNumber())});const l=new $j;o.forEach(c=>{c.dispose(l,a),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(r)})}),n.schedule(),this._resolveCodeLensesScheduler.cancel(),(i=this._resolveCodeLensesPromise)===null||i===void 0||i.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{n.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(i=>{i.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(bt(()=>{if(this._editor.getModel()){const i=Bl.capture(this._editor);this._editor.changeDecorations(r=>{this._editor.changeViewZones(a=>{this._disposeAllLenses(r,a)})}),i.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(i=>{if(i.target.type!==9)return;let r=i.target.element;if((r==null?void 0:r.tagName)==="SPAN"&&(r=r.parentElement),(r==null?void 0:r.tagName)==="A")for(const a of this._lenses){const o=a.getCommand(r);if(o){this._commandService.executeCommand(o.id,...o.arguments||[]).catch(s=>this._notificationService.error(s));break}}})),n.schedule()}_disposeAllLenses(e,t){const n=new $j;for(const i of this._lenses)i.dispose(n,t);e&&n.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),n=[];let i;for(const o of e.lenses){const s=o.symbol.range.startLineNumber;s<1||s>t||(i&&i[i.length-1].symbol.range.startLineNumber===s?i.push(o):(i=[o],n.push(i)))}if(!n.length&&!this._lenses.length)return;const r=Bl.capture(this._editor),a=this._getLayoutInfo();this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{const l=new $j;let c=0,d=0;for(;dthis._resolveCodeLensesInViewportSoon())),c++,d++)}for(;cthis._resolveCodeLensesInViewportSoon())),d++;l.commit(o)})}),r.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const n=[],i=[];if(this._lenses.forEach(o=>{const s=o.computeIfNecessary(t);s&&(n.push(s),i.push(o))}),n.length===0)return;const r=Date.now(),a=$i(o=>{const s=n.map((l,c)=>{const d=new Array(l.length),h=l.map((E,g)=>!E.symbol.command&&typeof E.provider.resolveCodeLens=="function"?Promise.resolve(E.provider.resolveCodeLens(t,E.symbol,o)).then(m=>{d[g]=m},Ni):(d[g]=E.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!o.isCancellationRequested&&!i[c].isDisposed()&&i[c].updateCommands(d)})});return Promise.all(s)});this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then(()=>{const o=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=o,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},o=>{wt(o),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};nv.ID="css.editor.codeLens";nv=FEt([r6(1,$e),r6(2,I0),r6(3,ei),r6(4,ci),r6(5,B2e)],nv);Eu(nv.ID,nv,1);be(class extends je{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:K.hasCodeLensProvider,label:v("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return AEt(this,void 0,void 0,function*(){if(!t.hasModel())return;const n=e.get(ud),i=e.get(ei),r=e.get(ci),a=t.getSelection().positionLineNumber,o=t.getContribution(nv.ID);if(!o)return;const s=o.getModel();if(!s)return;const l=[];for(const d of s.lenses)d.symbol.command&&d.symbol.range.startLineNumber===a&&l.push({label:d.symbol.command.title,command:d.symbol.command});if(l.length===0)return;const c=yield n.pick(l,{canPickMany:!1});if(c){if(s.isDisposed)return yield i.executeCommand(this.id);try{yield i.executeCommand(c.command.id,...c.command.arguments||[])}catch(d){r.error(d)}}})}});var _Et=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Kj=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},SEt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class oee{constructor(e,t){this._editorWorkerClient=new cQ(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return SEt(this,void 0,void 0,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,n){const i=t.range,r=t.color,a=r.alpha,o=new ae(new Qt(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),a)),s=a?ae.Format.CSS.formatRGB(o):ae.Format.CSS.formatRGBA(o),l=a?ae.Format.CSS.formatHSL(o):ae.Format.CSS.formatHSLA(o),c=a?ae.Format.CSS.formatHex(o):ae.Format.CSS.formatHexA(o),d=[];return d.push({label:s,textEdit:{range:i,text:s}}),d.push({label:l,textEdit:{range:i,text:l}}),d.push({label:c,textEdit:{range:i,text:c}}),d}}let aU=class extends ie{constructor(e,t,n){super(),this._register(n.colorProvider.register("*",new oee(e,t)))}};aU=_Et([Kj(0,Bn),Kj(1,an),Kj(2,$e)],aU);cN(aU);var sA=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};function w2e(u,e,t,n=!0){return sA(this,void 0,void 0,function*(){return see(new BEt,u,e,t,n)})}function z2e(u,e,t,n){return Promise.resolve(t.provideColorPresentations(u,e,n))}class BEt{constructor(){}compute(e,t,n,i){return sA(this,void 0,void 0,function*(){const r=yield e.provideDocumentColors(t,n);if(Array.isArray(r))for(const a of r)i.push({colorInfo:a,provider:e});return Array.isArray(r)})}}class wEt{constructor(){}compute(e,t,n,i){return sA(this,void 0,void 0,function*(){const r=yield e.provideDocumentColors(t,n);if(Array.isArray(r))for(const a of r)i.push({range:a.range,color:[a.color.red,a.color.green,a.color.blue,a.color.alpha]});return Array.isArray(r)})}}class zEt{constructor(e){this.colorInfo=e}compute(e,t,n,i){return sA(this,void 0,void 0,function*(){const r=yield e.provideColorPresentations(t,this.colorInfo,Vt.None);return Array.isArray(r)&&i.push(...r),Array.isArray(r)})}}function see(u,e,t,n,i){return sA(this,void 0,void 0,function*(){let r=!1,a;const o=[],s=e.ordered(t);for(let l=s.length-1;l>=0;l--){const c=s[l];if(c instanceof oee)a=c;else try{(yield u.compute(c,t,n,o))&&(r=!0)}catch(d){Ni(d)}}return r?o:a&&i?(yield u.compute(a,t,n,o),o):[]})}function L2e(u,e){const{colorProvider:t}=u.get($e),n=u.get(Bn).getModel(e);if(!n)throw p0();const i=u.get(nu).getValue("editor.defaultColorDecorators",{resource:e});return{model:n,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:i}}Xt.registerCommand("_executeDocumentColorProvider",function(u,...e){const[t]=e;if(!(t instanceof lt))throw p0();const{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:r}=L2e(u,t);return see(new wEt,i,n,Vt.None,r)});Xt.registerCommand("_executeColorPresentationProvider",function(u,...e){const[t,n]=e,{uri:i,range:r}=n;if(!(i instanceof lt)||!Array.isArray(t)||t.length!==4||!O.isIRange(r))throw p0();const{model:a,colorProviderRegistry:o,isDefaultColorDecoratorsEnabled:s}=L2e(u,i),[l,c,d,h]=t;return see(new zEt({range:r,color:{red:l,green:c,blue:d,alpha:h}}),o,a,Vt.None,s)});var LEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Wj=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},O0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const M2e=Object.create({});let Rg=class T2e extends ie{constructor(e,t,n,i){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=n,this._localToDispose=this._register(new fe),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new jF(this._editor),this._decoratorLimitReporter=new MEt,this._colorDecorationClassRefs=this._register(new fe),this._debounceInformation=i.for(n.colorProvider,"Document Colors",{min:T2e.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(n.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(r=>{const a=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144);const o=a!==this._isColorDecoratorsEnabled||r.hasChanged(20),s=r.hasChanged(144);(o||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),n=this._configurationService.getValue(t);if(n&&typeof n=="object"){const i=n.colorDecorators;if(i&&i.enable!==void 0&&!i.enable)return i.enable}return this._editor.getOption(19)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new Il,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return O0e(this,void 0,void 0,function*(){this._computePromise=$i(e=>O0e(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return[];const n=new ha(!1),i=yield w2e(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,n.elapsed()),i}));try{const e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){wt(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(n=>({range:{startLineNumber:n.colorInfo.range.startLineNumber,startColumn:n.colorInfo.range.startColumn,endLineNumber:n.colorInfo.range.endLineNumber,endColumn:n.colorInfo.range.endColumn},options:gt.EMPTY}));this._editor.changeDecorations(n=>{this._decorationsIds=n.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((i,r)=>this._colorDatas.set(i,e[r]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],n=this._editor.getOption(20);for(let r=0;rthis._colorDatas.has(i.id));return n.length===0?null:this._colorDatas.get(n[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Rg.ID="editor.contrib.colorDetector";Rg.RECOMPUTE_TIME=1e3;Rg=LEt([Wj(1,nu),Wj(2,$e),Wj(3,I0)],Rg);class MEt{constructor(){this._onDidChange=new ee,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}Eu(Rg.ID,Rg,1);class TEt{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new ee,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new ee,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new ee,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let n=-1;for(let i=0;i{this.backgroundColor=a.getColor(uB)||ae.white})),this._register(ce(this._pickedColorNode,Me.CLICK,()=>this.model.selectNextColorPresentation())),this._register(ce(this._originalColorNode,Me.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=ae.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new NEt(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=ae.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}let NEt=class extends ie{constructor(e){super(),this._onClicked=this._register(new ee),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),de(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),de(this._button,t),de(t,As(".button"+et.asCSSSelector(Cn("color-picker-close",Ae.close,v("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}};class REt extends ie{constructor(e,t,n,i=!1){super(),this.model=t,this.pixelRatio=n,this._insertButton=null,this._domNode=As(".colorpicker-body"),de(e,this._domNode),this._saturationBox=new IEt(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new OEt(this._domNode,this.model,i),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new jEt(this._domNode,this.model,i),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),i&&(this._insertButton=this._register(new VEt(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const n=this.model.color.hsva;this.model.color=new ae(new Vd(n.h,e,t,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new ae(new Vd(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,n=(1-e)*360;this.model.color=new ae(new Vd(n===360?0:n,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class IEt extends ie{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ee,this.onColorFlushed=this._onColorFlushed.event,this._domNode=As(".saturation-wrap"),de(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",de(this._domNode,this._canvas),this.selection=As(".saturation-selection"),de(this._domNode,this.selection),this.layout(),this._register(ce(this._domNode,Me.POINTER_DOWN,i=>this.onPointerDown(i))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Qv);const t=mi(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>this.onDidChangePosition(i.pageX-t.left,i.pageY-t.top),()=>null);const n=ce(document,Me.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new ae(new Vd(e.h,1,1,1)),n=this._canvas.getContext("2d"),i=n.createLinearGradient(0,0,this._canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");const r=n.createLinearGradient(0,0,0,this._canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this._canvas.width,this._canvas.height),n.fillStyle=ae.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class P2e extends ie{constructor(e,t,n=!1){super(),this.model=t,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ee,this.onColorFlushed=this._onColorFlushed.event,n?(this.domNode=de(e,As(".standalone-strip")),this.overlay=de(this.domNode,As(".standalone-overlay"))):(this.domNode=de(e,As(".strip")),this.overlay=de(this.domNode,As(".overlay"))),this.slider=de(this.domNode,As(".slider")),this.slider.style.top="0px",this._register(ce(this.domNode,Me.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Qv),n=mi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,r=>this.onDidChangeTop(r.pageY-n.top),()=>null);const i=ce(document,Me.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class OEt extends P2e{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:n,b:i}=e.rgba,r=new ae(new Qt(t,n,i,1)),a=new ae(new Qt(t,n,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${r} 0%, ${a} 100%)`}getValue(e){return e.hsva.a}}class jEt extends P2e{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class VEt extends ie{constructor(e){super(),this._onClicked=this._register(new ee),this.onClicked=this._onClicked.event,this._button=de(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=t=>{this._onClicked.fire()}}get button(){return this._button}}class HEt extends Ol{constructor(e,t,n,i,r=!1){super(),this.model=t,this.pixelRatio=n,this._register($k.onDidChange(()=>this.layout()));const a=As(".colorpicker-widget");e.appendChild(a),this.header=this._register(new PEt(a,this.model,i,r)),this.body=this._register(new REt(a,this.model,this.pixelRatio,r))}layout(){this.body.layout()}}var N2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},R2e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},iv=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class $Et{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let rw=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,n){return ki.fromPromise(this._computeAsync(e,t,n))}_computeAsync(e,t,n){return iv(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const i=Rg.get(this._editor);if(!i)return[];for(const r of t){if(!i.isColorDecoration(r))continue;const a=i.getColorData(r.range.getStartPosition());if(a)return[yield I2e(this,this._editor.getModel(),a.colorInfo,a.provider)]}return[]})}renderHoverParts(e,t){return O2e(this,this._editor,this._themeService,t,e)}};rw=N2e([R2e(1,Ui)],rw);class KEt{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i}}let N2=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,n){return iv(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!Rg.get(this._editor))return null;const r=yield w2e(n,this._editor.getModel(),Vt.None);let a=null,o=null;for(const d of r){const h=d.colorInfo;O.containsRange(h.range,e.range)&&(a=h,o=d.provider)}const s=a??e,l=o??t,c=!!a;return{colorHover:yield I2e(this,this._editor.getModel(),s,l),foundInEditor:c}})}updateEditorModel(e){return iv(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=e.model;let n=new O(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield PS(this._editor.getModel(),t,this._color,n,e),n=j2e(this._editor,n,t))})}renderHoverParts(e,t){return O2e(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};N2=N2e([R2e(1,Ui)],N2);function I2e(u,e,t,n){return iv(this,void 0,void 0,function*(){const i=e.getValueInRange(t.range),{red:r,green:a,blue:o,alpha:s}=t.color,l=new Qt(Math.round(r*255),Math.round(a*255),Math.round(o*255),s),c=new ae(l),d=yield z2e(e,t,n,Vt.None),h=new TEt(c,[],0);return h.colorPresentations=d||[],h.guessColorPresentation(c,i),u instanceof rw?new $Et(u,O.lift(t.range),h,n):new KEt(u,O.lift(t.range),h,n)})}function O2e(u,e,t,n,i){if(n.length===0||!e.hasModel())return ie.None;if(i.setMinimumDimensions){const h=e.getOption(65)+8;i.setMinimumDimensions(new Du(302,h))}const r=new fe,a=n[0],o=e.getModel(),s=a.model,l=r.add(new HEt(i.fragment,s,e.getOption(140),t,u instanceof N2));i.setColorPicker(l);let c=!1,d=new O(a.range.startLineNumber,a.range.startColumn,a.range.endLineNumber,a.range.endColumn);if(u instanceof N2){const h=n[0].model.color;u.color=h,PS(o,s,h,d,a),r.add(s.onColorFlushed(E=>{u.color=E}))}else r.add(s.onColorFlushed(h=>iv(this,void 0,void 0,function*(){yield PS(o,s,h,d,a),c=!0,d=j2e(e,d,s,i)})));return r.add(s.onDidChangeColor(h=>{PS(o,s,h,d,a)})),r.add(e.onDidChangeModelContent(h=>{c?c=!1:(i.hide(),e.focus())})),r}function j2e(u,e,t,n){let i,r;if(t.presentation.textEdit){i=[t.presentation.textEdit],r=new O(t.presentation.textEdit.range.startLineNumber,t.presentation.textEdit.range.startColumn,t.presentation.textEdit.range.endLineNumber,t.presentation.textEdit.range.endColumn);const a=u.getModel()._setTrackedRange(null,r,3);u.pushUndoStop(),u.executeEdits("colorpicker",i),r=u.getModel()._getTrackedRange(a)||r}else i=[{range:e,text:t.presentation.label,forceMoveMarkers:!1}],r=e.setEndPosition(e.endLineNumber,e.startColumn+t.presentation.label.length),u.pushUndoStop(),u.executeEdits("colorpicker",i);return t.presentation.additionalTextEdits&&(i=[...t.presentation.additionalTextEdits],u.executeEdits("colorpicker",i),n&&n.hide()),u.pushUndoStop(),r}function PS(u,e,t,n,i){return iv(this,void 0,void 0,function*(){const r=yield z2e(u,{range:n,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},i.provider,Vt.None);e.colorPresentations=r||[]})}function oU(u,e){return!!u[e]}class Gj{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=oU(e.event,t.triggerModifier),this.hasSideBySideModifier=oU(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class j0e{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=oU(e,t.triggerModifier)}}class c7{constructor(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function V0e(u){return u==="altKey"?Yt?new c7(57,"metaKey",6,"altKey"):new c7(5,"ctrlKey",6,"altKey"):Yt?new c7(6,"altKey",57,"metaKey"):new c7(6,"altKey",5,"ctrlKey")}class kN extends ie{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new ee),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new ee),this.onExecute=this._onExecute.event,this._onCancel=this._register(new ee),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=V0e(this._editor.getOption(76)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(76)){const i=V0e(this._editor.getOption(76));if(this._opts.equals(i))return;this._opts=i,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new Gj(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new Gj(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new Gj(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new j0e(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new j0e(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var WEt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Z1=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let Ig=class extends b3{constructor(e,t,n,i,r,a,o,s,l,c,d,h,E){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),n,r,a,o,s,l,c,d,h,E),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){BF(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Ig=WEt([Z1(4,mt),Z1(5,hu),Z1(6,ei),Z1(7,Et),Z1(8,Ui),Z1(9,ci),Z1(10,B1),Z1(11,an),Z1(12,$e)],Ig);const H0e=new ae(new Qt(0,122,204)),GEt={showArrow:!0,showFrame:!0,className:"",frameColor:H0e,arrowColor:H0e,keepEditorSelection:!1},UEt="vs.editor.contrib.zoneWidget";class qEt{constructor(e,t,n,i,r,a,o,s){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this.showInHiddenAreas=o,this.ordinal=s,this._onDomNodeTop=r,this._onComputedHeight=a}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class JEt{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class yN{constructor(e){this._editor=e,this._ruleName=yN._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),fae(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){fae(this._ruleName),QK(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:O.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}yN._IdGenerator=new lX(".arrow-decoration-");class ZEt{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new fe,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=lh(t),BF(this.options,GEt,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(n=>{const i=this._getWidth(n);this.domNode.style.width=i+"px",this.domNode.style.left=this._getLeft(n)+"px",this._onWidth(i)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new yN(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const n=e-this._decoratingElementsHeight();this.container.style.height=`${n}px`;const i=this.editor.getLayoutInfo();this._doLayout(n,this._getWidth(i))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const n=O.isIRange(e)?O.lift(e):O.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId.set([{range:n,options:gt.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(65);let t=0;if(this.options.showArrow){const n=Math.round(e/3);t+=2*n}if(this.options.showFrame){const n=Math.round(e/9);t+=2*n}return t}_showImpl(e,t){const n=e.getStartPosition(),i=this.editor.getLayoutInfo(),r=this._getWidth(i);this.domNode.style.width=`${r}px`,this.domNode.style.left=this._getLeft(i)+"px";const a=document.createElement("div");a.style.overflow="hidden";const o=this.editor.getOption(65);if(!this.options.allowUnlimitedHeight){const h=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,h)}let s=0,l=0;if(this._arrow&&this.options.showArrow&&(s=Math.round(o/3),this._arrow.height=s,this._arrow.show(n)),this.options.showFrame&&(l=Math.round(o/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new qEt(a,n.lineNumber,n.column,t,E=>this._onViewZoneTop(E),E=>this._onViewZoneHeight(E),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new JEt(UEt+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const h=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}const c=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=s+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,r),this.options.keepEditorSelection||this.editor.setSelection(e);const d=this.editor.getModel();if(d){const h=d.validateRange(new O(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===d.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new Vr(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const n=(t.currentY-e.startY)/this.editor.getOption(65),i=n<0?Math.ceil(n):Math.floor(n),r=e.heightInLines+i;r>5&&r<35&&this._relayout(r)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var V2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},H2e=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const $2e=Gt("IPeekViewService");iu($2e,class{constructor(){this._widgets=new Map}addExclusiveWidget(u,e){const t=this._widgets.get(u);t&&(t.listener.dispose(),t.widget.dispose());const n=()=>{const i=this._widgets.get(u);i&&i.widget===e&&(i.listener.dispose(),this._widgets.delete(u))};this._widgets.set(u,{widget:e,listener:e.onDidClose(n)})}},1);var Po;(function(u){u.inPeekEditor=new Ne("inReferenceSearchEditor",!0,v("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),u.notInPeekEditor=u.inPeekEditor.toNegated()})(Po||(Po={}));let R2=class{constructor(e,t){e instanceof Ig&&Po.inPeekEditor.bindTo(t)}dispose(){}};R2.ID="editor.contrib.referenceController";R2=V2e([H2e(1,Et)],R2);Eu(R2.ID,R2,0);function YEt(u){const e=u.get(hu).getFocusedCodeEditor();return e instanceof Ig?e.getParentEditor():e}const QEt={headerBackgroundColor:ae.white,primaryHeadingColor:ae.fromHex("#333333"),secondaryHeadingColor:ae.fromHex("#6c6c6cb3")};let aw=class extends ZEt{constructor(e,t,n){super(e,t),this.instantiationService=n,this._onDidClose=new ee,this.onDidClose=this._onDidClose.event,BF(this.options,QEt,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=ve(".head"),this._bodyElement=ve(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=ve(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),li(this._titleElement,"click",r=>this._onTitleClick(r))),de(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=ve("span.filename"),this._secondaryHeading=ve("span.dirname"),this._metaHeading=ve("span.meta"),de(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=ve(".peekview-actions");de(this._headElement,n);const i=this._getActionBarOptions();this._actionbarWidget=new $s(n,i),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new da("peekview.close",v("label.close","Close"),et.asClassName(Ae.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:N0t.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:fr(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Qo(this._metaHeading)):Ja(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const n=Math.ceil(this.editor.getOption(65)*1.2),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};aw=V2e([H2e(2,mt)],aw);const XEt=U("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:ae.black,hcLight:ae.white},v("peekViewTitleBackground","Background color of the peek view title area.")),K2e=U("peekViewTitleLabel.foreground",{dark:ae.white,light:ae.black,hcDark:ae.white,hcLight:ol},v("peekViewTitleForeground","Color of the peek view title.")),W2e=U("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},v("peekViewTitleInfoForeground","Color of the peek view title info.")),egt=U("peekView.border",{dark:Ls,light:Ls,hcDark:Zt,hcLight:Zt},v("peekViewBorder","Color of the peek view borders and arrow.")),tgt=U("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:ae.black,hcLight:ae.white},v("peekViewResultsBackground","Background color of the peek view result list."));U("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:ae.white,hcLight:ol},v("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));U("peekViewResult.fileForeground",{dark:ae.white,light:"#1E1E1E",hcDark:ae.white,hcLight:ol},v("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));U("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},v("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));U("peekViewResult.selectionForeground",{dark:ae.white,light:"#6C6C6C",hcDark:ae.white,hcLight:ol},v("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const _E=U("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:ae.black,hcLight:ae.white},v("peekViewEditorBackground","Background color of the peek view editor."));U("peekViewEditorGutter.background",{dark:_E,light:_E,hcDark:_E,hcLight:_E},v("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));U("peekViewEditorStickyScroll.background",{dark:_E,light:_E,hcDark:_E,hcLight:_E},v("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));U("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},v("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));U("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},v("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));U("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:fn,hcLight:fn},v("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var ugt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class Og{constructor(e,t,n,i){this.isProviderFirst=e,this.parent=t,this.link=n,this._rangeCallback=i,this.id=TW.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?v({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,B0(this.uri),this.range.startLineNumber,this.range.startColumn):v("aria.oneReference","in {0} on line {1} at column {2}",B0(this.uri),this.range.startLineNumber,this.range.startColumn)}}class ngt{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const n=this._modelReference.object.textEditorModel;if(!n)return;const{startLineNumber:i,startColumn:r,endLineNumber:a,endColumn:o}=e,s=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new O(i,s.startColumn,i,r),c=new O(a,o,a,1073741824),d=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e),E=n.getValueInRange(c).replace(/\s+$/,"");return{value:d+h+E,highlight:{start:d.length,end:d.length+h.length}}}}class I2{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Fa}dispose(){Au(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?v("aria.fileReferences.1","1 symbol in {0}, full path {1}",B0(this.uri),this.uri.fsPath):v("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,B0(this.uri),this.uri.fsPath)}resolve(e){return ugt(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const n=yield e.createModelReference(t.uri);this._previews.set(t.uri,new ngt(n))}catch(n){wt(n)}return this})}}class rs{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new ee,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[n]=e;e.sort(rs._compareReferences);let i;for(const r of e)if((!i||!pn.isEqual(i.uri,r.uri,!0))&&(i=new I2(this,r.uri),this.groups.push(i)),i.children.length===0||rs._compareReferences(r,i.children[i.children.length-1])!==0){const a=new Og(n===r,i,r,o=>this._onDidChangeReferenceRange.fire(o));this.references.push(a),i.children.push(a)}}dispose(){Au(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new rs(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?v("aria.result.0","No results found"):this.references.length===1?v("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?v("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):v("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:n}=e;let i=n.children.indexOf(e);const r=n.children.length,a=n.parent.groups.length;return a===1||t&&i+10?(t?i=(i+1)%r:i=(i+r-1)%r,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%a,n.parent.groups[i].children[0]):(i=(i+a-1)%a,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))}nearestReference(e,t){const n=this.references.map((i,r)=>({idx:r,prefixLen:f3(i.uri.toString(),e.toString()),offsetDist:Math.abs(i.range.startLineNumber-t.lineNumber)*100+Math.abs(i.range.startColumn-t.column)})).sort((i,r)=>i.prefixLen>r.prefixLen?-1:i.prefixLenr.offsetDist?1:0)[0];if(n)return this.references[n.idx]}referenceAt(e,t){for(const n of this.references)if(n.uri.toString()===e.toString()&&O.containsPosition(n.range,t))return n}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return pn.compare(e.uri,t.uri)||O.compareRangesUsingStarts(e.range,t.range)}}var FN=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},AN=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let sU=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof rs||e instanceof I2}getChildren(e){if(e instanceof rs)return e.groups;if(e instanceof I2)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};sU=FN([AN(0,jo)],sU);class igt{getHeight(){return 23}getTemplateId(e){return e instanceof I2?O2.id:lA.id}}let lU=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Og){const n=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(n)return n.value}return B0(e.uri)}};lU=FN([AN(0,on)],lU);class rgt{getId(e){return e instanceof Og?e.id:e.uri}}let cU=class extends ie{constructor(e,t){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new JB(n,{supportHighlights:!0})),this.badge=new xG(de(n,ve(".count")),{},bbe),e.appendChild(n)}set(e,t){const n=jP(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(n,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const i=e.children.length;this.badge.setCount(i),i>1?this.badge.setTitleFormat(v("referencesCount","{0} references",i)):this.badge.setTitleFormat(v("referenceCount","{0} reference",i))}};cU=FN([AN(1,q5)],cU);let O2=class G2e{constructor(e){this._instantiationService=e,this.templateId=G2e.id}renderTemplate(e){return this._instantiationService.createInstance(cU,e)}renderElement(e,t,n){n.set(e.element,WP(e.filterData))}disposeTemplate(e){e.dispose()}};O2.id="FileReferencesRenderer";O2=FN([AN(0,mt)],O2);class agt{constructor(e){this.label=new YE(e)}set(e,t){var n;const i=(n=e.parent.getPreview(e))===null||n===void 0?void 0:n.preview(e.range);if(!i||!i.value)this.label.set(`${B0(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:r,highlight:a}=i;t&&!Tc.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(r,WP(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(r,[a]))}}}class lA{constructor(){this.templateId=lA.id}renderTemplate(e){return new agt(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}}lA.id="OneReferenceRenderer";class ogt{getWidgetAriaLabel(){return v("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var sgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Y1=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},$0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class _N{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new fe,this._callOnModelChange=new fe,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],n=[];for(let i=0,r=e.children.length;i{const r=i.deltaDecorations([],t);for(let a=0;a{r.equals(9)&&(this._keybindingService.dispatchEvent(r,r.target),r.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(cgt,"ReferencesWidget",this._treeContainer,new igt,[this._instantiationService.createInstance(O2),this._instantiationService.createInstance(lA)],this._instantiationService.createInstance(sU),n),this._splitView.addView({onDidChange:Ke.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:r=>{this._preview.layout({height:this._dim.height,width:r})}},WB.Distribute),this._splitView.addView({onDidChange:Ke.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:r=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${r}px`,this._tree.layout(this._dim.height,r)}},WB.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const i=(r,a)=>{r instanceof Og&&(a==="show"&&this._revealReference(r,!1),this._onDidSelectReference.fire({element:r,kind:a,source:"tree"}))};this._tree.onDidOpen(r=>{r.sideBySide?i(r.element,"side"):r.editorOptions.pinned?i(r.element,"goto"):i(r.element,"show")}),Ja(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Du(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=v("noResults","No results"),Qo(this._messageContainer),Promise.resolve(void 0)):(Ja(this._messageContainer),this._decorationsManager=new _N(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:n}=e;if(t.detail!==2)return;const i=this._getFocusedReference();i&&this._onDidSelectReference.fire({element:{uri:i.uri,range:n.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),Qo(this._treeContainer),Qo(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Og)return e;if(e instanceof I2&&e.children.length>0)return e.children[0]}revealReference(e){return $0e(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return $0e(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==It.inMemory?this.setTitle(Jnt(e.uri),this._uriLabel.getUriLabel(jP(e.uri))):this.setTitle(v("peekView.alternateTitle","References"));const n=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const i=yield n;if(!this._model){i.dispose();return}Au(this._previewModelReference);const r=i.object;if(r){const a=this._preview.getModel()===r.textEditorModel?0:1,o=O.lift(e.range).collapseToStart();this._previewModelReference=i,this._preview.setModel(r.textEditorModel),this._preview.setSelection(o),this._preview.revealRangeInCenter(o,a)}else this._preview.setModel(this._previewNotAvailableMessage),i.dispose()})}};dU=sgt([Y1(3,Ui),Y1(4,jo),Y1(5,mt),Y1(6,$2e),Y1(7,q5),Y1(8,VP),Y1(9,on),Y1(10,Dn),Y1(11,an)],dU);var dgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},lD=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},K0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const Mp=new Ne("referenceSearchVisible",!1,v("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let jg=class hU{static get(e){return e.getContribution(hU.ID)}constructor(e,t,n,i,r,a,o,s){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=r,this._instantiationService=a,this._storageService=o,this._configurationService=s,this._disposables=new fe,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Mp.bindTo(n)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let i;if(this._widget&&(i=this._widget.position),this.closeWidget(),i&&e.containsPosition(i))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const r="peekViewLayout",a=lgt.fromJSON(this._storageService.get(r,0,"{}"));this._widget=this._instantiationService.createInstance(dU,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(v("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(r,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(s=>{const{element:l,kind:c}=s;if(l)switch(c){case"open":(s.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(l,!1,!1);break;case"side":this.openReference(l,!0,!1);break;case"goto":n?this._gotoReference(l,!0):this.openReference(l,!1,!0);break}}));const o=++this._requestIdPool;t.then(s=>{var l;if(o!==this._requestIdPool||!this._widget){s.dispose();return}return(l=this._model)===null||l===void 0||l.dispose(),this._model=s,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(v("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,d=new ue(e.startLineNumber,e.startColumn),h=this._model.nearestReference(c,d);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(85)==="editor"&&this._widget.focusOnPreviewEditor()})}})},s=>{this._notificationService.error(s)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return K0e(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;const i=this._model.nextOrPreviousReference(n,e),r=this._editor.hasTextFocus(),a=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(i),yield this._gotoReference(i,!1),r?this._editor.focus():this._widget&&a&&this._widget.focusOnPreviewEditor()})}revealReference(e){return K0e(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,n;(t=this._widget)===null||t===void 0||t.dispose(),(n=this._model)===null||n===void 0||n.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var n;(n=this._widget)===null||n===void 0||n.hide(),this._ignoreModelChangeEvent=!0;const i=O.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then(r=>{var a;if(this._ignoreModelChangeEvent=!1,!r||!this._widget){this.closeWidget();return}if(this._editor===r)this._widget.show(i),this._widget.focusOnReferenceTree();else{const o=hU.get(r),s=this._model.clone();this.closeWidget(),r.focus(),o==null||o.toggleWidget(i,$i(l=>Promise.resolve(s)),(a=this._peekMode)!==null&&a!==void 0?a:!1)}},r=>{this._ignoreModelChangeEvent=!1,wt(r)})}openReference(e,t,n){t||this.closeWidget();const{uri:i,range:r}=e;this._editorService.openCodeEditor({resource:i,options:{selection:r,selectionSource:"code.jump",pinned:n}},this._editor,t)}};jg.ID="editor.contrib.referencesController";jg=dgt([lD(2,Et),lD(3,hu),lD(4,ci),lD(5,mt),lD(6,$l),lD(7,nu)],jg);function Tp(u,e){const t=YEt(u);if(!t)return;const n=jg.get(t);n&&e(n)}To.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Ri(2089,60),when:pe.or(Mp,Po.inPeekEditor),handler(u){Tp(u,e=>{e.changeFocusBetweenPreviewAndReferences()})}});To.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:pe.or(Mp,Po.inPeekEditor),handler(u){Tp(u,e=>{e.goToNextOrPreviousReference(!0)})}});To.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:pe.or(Mp,Po.inPeekEditor),handler(u){Tp(u,e=>{e.goToNextOrPreviousReference(!1)})}});Xt.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Xt.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Xt.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Xt.registerCommand("closeReferenceSearch",u=>Tp(u,e=>e.closeWidget()));To.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:pe.and(Po.inPeekEditor,pe.not("config.editor.stablePeek"))});To.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:pe.and(Mp,pe.not("config.editor.stablePeek"))});To.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:pe.and(Mp,Wbe,BX.negate(),wX.negate()),handler(u){var e;const n=(e=u.get(O0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof Og&&Tp(u,i=>i.revealReference(n[0]))}});To.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:pe.and(Mp,Wbe,BX.negate(),wX.negate()),handler(u){var e;const n=(e=u.get(O0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof Og&&Tp(u,i=>i.openReference(n[0],!0,!0))}});Xt.registerCommand("openReference",u=>{var e;const n=(e=u.get(O0).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof Og&&Tp(u,i=>i.openReference(n[0],!1,!0))});var U2e=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Eb=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const lee=new Ne("hasSymbols",!1,v("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),SN=Gt("ISymbolNavigationService");let EU=class{constructor(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=lee.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const n=new gU(this._editorService),i=n.onDidChange(r=>{if(this._ignoreEditorChange)return;const a=this._editorService.getActiveCodeEditor();if(!a)return;const o=a.getModel(),s=a.getPosition();if(!o||!s)return;let l=!1,c=!1;for(const d of t.references)if(OP(d.uri,o.uri))l=!0,c=c||O.containsPosition(d.range,s);else if(l)break;(!l||!c)&&this.reset()});this._currentState=Dl(n,i)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:O.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),n=t?v("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):v("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(n)}};EU=U2e([Eb(0,Et),Eb(1,hu),Eb(2,ci),Eb(3,on)],EU);iu(SN,EU,1);Be(new class extends Dr{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:lee,kbOpts:{weight:100,primary:70}})}runEditorCommand(u,e){return u.get(SN).revealNext(e)}});To.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:lee,primary:9,handler(u){u.get(SN).reset()}});let gU=class{constructor(e){this._listener=new Map,this._disposables=new fe,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Au(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Dl(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};gU=U2e([Eb(0,hu)],gU);var cee=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};function cA(u,e,t,n){return cee(this,void 0,void 0,function*(){const r=t.ordered(u).map(o=>Promise.resolve(n(o,u,e)).then(void 0,s=>{Ni(s)})),a=yield Promise.all(r);return c1(a.flat())})}function BN(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideDefinition(r,a,n))}function q2e(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideDeclaration(r,a,n))}function J2e(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideImplementation(r,a,n))}function Z2e(u,e,t,n){return cA(e,t,u,(i,r,a)=>i.provideTypeDefinition(r,a,n))}function wN(u,e,t,n,i){return cA(e,t,u,(r,a,o)=>cee(this,void 0,void 0,function*(){const s=yield r.provideReferences(a,o,{includeDeclaration:!0},i);if(!n||!s||s.length!==2)return s;const l=yield r.provideReferences(a,o,{includeDeclaration:!1},i);return l&&l.length===1?l:s}))}function dA(u){return cee(this,void 0,void 0,function*(){const e=yield u(),t=new rs(e,""),n=t.references.map(i=>i.link);return t.dispose(),n})}M1("_executeDefinitionProvider",(u,e,t)=>{const n=u.get($e),i=BN(n.definitionProvider,e,t,Vt.None);return dA(()=>i)});M1("_executeTypeDefinitionProvider",(u,e,t)=>{const n=u.get($e),i=Z2e(n.typeDefinitionProvider,e,t,Vt.None);return dA(()=>i)});M1("_executeDeclarationProvider",(u,e,t)=>{const n=u.get($e),i=q2e(n.declarationProvider,e,t,Vt.None);return dA(()=>i)});M1("_executeReferenceProvider",(u,e,t)=>{const n=u.get($e),i=wN(n.referenceProvider,e,t,!1,Vt.None);return dA(()=>i)});M1("_executeImplementationProvider",(u,e,t)=>{const n=u.get($e),i=J2e(n.implementationProvider,e,t,Vt.None);return dA(()=>i)});var vl=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})},Uj,qj,Jj,Zj,Yj,Qj,Xj,eV;oa.appendMenuItem(G.EditorContext,{submenu:G.EditorContextPeek,title:v("peek.submenu","Peek"),group:"navigation",order:100});class rv{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rv||ue.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class xa extends vp{static all(){return xa._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const n of Jt.wrap(t.menu))(n.id===G.EditorContext||n.id===G.EditorContextPeek)&&(n.when=pe.and(e.precondition,n.when));return t}constructor(e,t){super(xa._patchConfig(t)),this.configuration=e,xa._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,n,i){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(ci),a=e.get(hu),o=e.get(p4),s=e.get(SN),l=e.get($e),c=e.get(mt),d=t.getModel(),h=t.getPosition(),E=rv.is(n)?n:new rv(d,h),g=new Ng(t,5),m=CP(this._getLocationModel(l,E.model,E.position,g.token),g.token).then(f=>vl(this,void 0,void 0,function*(){var p;if(!f||g.token.isCancellationRequested)return;Aa(f.ariaMessage);let D;if(f.referenceAt(d.uri,h)){const b=this._getAlternativeCommand(t);!xa._activeAlternativeCommands.has(b)&&xa._allSymbolNavigationCommands.has(b)&&(D=xa._allSymbolNavigationCommands.get(b))}const x=f.references.length;if(x===0){if(!this.configuration.muteMessage){const b=d.getWordAtPosition(h);(p=is.get(t))===null||p===void 0||p.showMessage(this._getNoResultFoundMessage(b),h)}}else if(x===1&&D)xa._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(b=>D.runEditorCommand(b,t,n,i).finally(()=>{xa._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(a,s,t,f,i)}),f=>{r.error(f)}).finally(()=>{g.dispose()});return o.showWhile(m,250),m}_onResult(e,t,n,i,r){return vl(this,void 0,void 0,function*(){const a=this._getGoToPreference(n);if(!(n instanceof Ig)&&(this.configuration.openInPeek||a==="peek"&&i.references.length>1))this._openInPeek(n,i,r);else{const o=i.firstReference(),s=i.references.length>1&&a==="gotoAndPeek",l=yield this._openReference(n,e,o,this.configuration.openToSide,!s);s&&l?this._openInPeek(l,i,r):i.dispose(),a==="goto"&&t.put(o)}})}_openReference(e,t,n,i,r){return vl(this,void 0,void 0,function*(){let a;if(Aqe(n)&&(a=n.targetSelectionRange),a||(a=n.range),!a)return;const o=yield t.openCodeEditor({resource:n.uri,options:{selection:O.collapseToStart(a),selectionRevealType:3,selectionSource:"code.jump"}},e,i);if(o){if(r){const s=o.getModel(),l=o.createDecorationsCollection([{range:a,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{o.getModel()===s&&l.clear()},350)}return o}})}_openInPeek(e,t,n){const i=jg.get(e);i&&e.hasModel()?i.toggleWidget(n??e.getSelection(),$i(r=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}xa._allSymbolNavigationCommands=new Map;xa._activeAlternativeCommands=new Set;class hA extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield BN(e.definitionProvider,t,n,i),v("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?v("noResultWord","No definition found for '{0}'",e.word):v("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleDefinitions}}fi((Uj=class mU extends hA{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:mU.id,title:{value:v("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:v({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:pe.and(K.hasDefinitionProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:[{when:K.editorTextFocus,primary:70,weight:100},{when:pe.and(K.editorTextFocus,Hbe),primary:2118,weight:100}],menu:[{id:G.EditorContext,group:"navigation",order:1.1},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),Xt.registerCommandAlias("editor.action.goToDeclaration",mU.id)}},Uj.id="editor.action.revealDefinition",Uj));fi((qj=class fU extends hA{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:fU.id,title:{value:v("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:pe.and(K.hasDefinitionProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:[{when:K.editorTextFocus,primary:Ri(2089,70),weight:100},{when:pe.and(K.editorTextFocus,Hbe),primary:Ri(2089,2118),weight:100}]}),Xt.registerCommandAlias("editor.action.openDeclarationToTheSide",fU.id)}},qj.id="editor.action.revealDefinitionAside",qj));fi((Jj=class pU extends hA{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:pU.id,title:{value:v("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:pe.and(K.hasDefinitionProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:G.EditorContextPeek,group:"peek",order:2}}),Xt.registerCommandAlias("editor.action.previewDeclaration",pU.id)}},Jj.id="editor.action.peekDefinition",Jj));class Y2e extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield q2e(e.declarationProvider,t,n,i),v("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?v("decl.noResultWord","No declaration found for '{0}'",e.word):v("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(57).multipleDeclarations}}fi((Zj=class Q2e extends Y2e{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Q2e.id,title:{value:v("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:v({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:pe.and(K.hasDeclarationProvider,K.isInWalkThroughSnippet.toNegated()),menu:[{id:G.EditorContext,group:"navigation",order:1.3},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?v("decl.noResultWord","No declaration found for '{0}'",e.word):v("decl.generic.noResults","No declaration found")}},Zj.id="editor.action.revealDeclaration",Zj));fi(class extends Y2e{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:v("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:pe.and(K.hasDeclarationProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),menu:{id:G.EditorContextPeek,group:"peek",order:3}})}});class X2e extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield Z2e(e.typeDefinitionProvider,t,n,i),v("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?v("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):v("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleTypeDefinitions}}fi((Yj=class eye extends X2e{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:eye.ID,title:{value:v("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:v({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:pe.and(K.hasTypeDefinitionProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:0,weight:100},menu:[{id:G.EditorContext,group:"navigation",order:1.4},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},Yj.ID="editor.action.goToTypeDefinition",Yj));fi((Qj=class tye extends X2e{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:tye.ID,title:{value:v("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:pe.and(K.hasTypeDefinitionProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),menu:{id:G.EditorContextPeek,group:"peek",order:4}})}},Qj.ID="editor.action.peekTypeDefinition",Qj));class uye extends xa{_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield J2e(e.implementationProvider,t,n,i),v("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?v("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):v("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(57).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(57).multipleImplementations}}fi((Xj=class nye extends uye{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:nye.ID,title:{value:v("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:v({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:pe.and(K.hasImplementationProvider,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:2118,weight:100},menu:[{id:G.EditorContext,group:"navigation",order:1.45},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},Xj.ID="editor.action.goToImplementation",Xj));fi((eV=class iye extends uye{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:iye.ID,title:{value:v("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:pe.and(K.hasImplementationProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:3142,weight:100},menu:{id:G.EditorContextPeek,group:"peek",order:5}})}},eV.ID="editor.action.peekImplementation",eV));class rye extends xa{_getNoResultFoundMessage(e){return e?v("references.no","No references found for '{0}'",e.word):v("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(57).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(57).multipleReferences}}fi(class extends rye{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:v("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:v({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:pe.and(K.hasReferenceProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),keybinding:{when:K.editorTextFocus,primary:1094,weight:100},menu:[{id:G.EditorContext,group:"navigation",order:1.45},{id:G.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield wN(e.referenceProvider,t,n,!0,i),v("ref.title","References"))})}});fi(class extends rye{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:v("references.action.label","Peek References"),original:"Peek References"},precondition:pe.and(K.hasReferenceProvider,Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated()),menu:{id:G.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(yield wN(e.referenceProvider,t,n,!1,i),v("ref.title","References"))})}});class hgt extends xa{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",title:{value:v("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:pe.and(Po.notInPeekEditor,K.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n,i){return vl(this,void 0,void 0,function*(){return new rs(this._references,v("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&v("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(57).multipleReferences}_getAlternativeCommand(){return""}}Xt.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:lt},{name:"position",description:"The position at which to start",constraint:ue.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(u,e,t,n,i,r,a)=>vl(void 0,void 0,void 0,function*(){Iu(lt.isUri(e)),Iu(ue.isIPosition(t)),Iu(Array.isArray(n)),Iu(typeof i>"u"||typeof i=="string"),Iu(typeof a>"u"||typeof a=="boolean");const o=u.get(hu),s=yield o.openCodeEditor({resource:e},o.getFocusedCodeEditor());if(v1(s))return s.setPosition(t),s.revealPositionInCenterIfOutsideViewport(t,0),s.invokeWithinContext(l=>{const c=new class extends hgt{_getNoResultFoundMessage(d){return r||super._getNoResultFoundMessage(d)}}({muteMessage:!r,openInPeek:!!a,openToSide:!1},n,i);l.get(mt).invokeFunction(c.run.bind(c),s)})})});Xt.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:lt},{name:"position",description:"The position at which to start",constraint:ue.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(u,e,t,n,i)=>vl(void 0,void 0,void 0,function*(){u.get(ei).executeCommand("editor.action.goToLocations",e,t,n,i,void 0,!0)})});Xt.registerCommand({id:"editor.action.findReferences",handler:(u,e,t)=>{Iu(lt.isUri(e)),Iu(ue.isIPosition(t));const n=u.get($e),i=u.get(hu);return i.openCodeEditor({resource:e},i.getFocusedCodeEditor()).then(r=>{if(!v1(r)||!r.hasModel())return;const a=jg.get(r);if(!a)return;const o=$i(l=>wN(n.referenceProvider,r.getModel(),ue.lift(t),!1,l).then(c=>new rs(c,v("ref.title","References")))),s=new O(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(a.toggleWidget(s,o,!1))})}});Xt.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Egt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},tV=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},W0e=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let T3=class NS{constructor(e,t,n,i){this.textModelResolverService=t,this.languageService=n,this.languageFeaturesService=i,this.toUnhook=new fe,this.toUnhookForKeyboard=new fe,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const r=new kN(e);this.toUnhook.add(r),this.toUnhook.add(r.onMouseMoveOrRelevantKeyDown(([a,o])=>{this.startFindDefinitionFromMouse(a,Gr(o))})),this.toUnhook.add(r.onExecute(a=>{this.isEnabled(a)&&this.gotoDefinition(a.target.position,a.hasSideBySideModifier).catch(o=>{wt(o)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(r.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(NS.ID)}startFindDefinitionFromCursor(e){return W0e(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;return W0e(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const n=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!n){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return;this.currentWordAtPosition=n;const i=new kke(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=$i(o=>this.findDefinition(e,o));let r;try{r=yield this.previousPromise}catch(o){wt(o);return}if(!r||!r.length||!i.validate(this.editor)){this.removeLinkDecorations();return}const a=r[0].originSelectionRange?O.lift(r[0].originSelectionRange):new O(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);if(r.length>1){let o=a;for(const{originSelectionRange:s}of r)s&&(o=O.plusRange(o,s));this.addDecoration(o,new _r().appendText(v("multipleResults","Click to show {0} definitions.",r.length)))}else{const o=r[0];if(!o.uri)return;this.textModelResolverService.createModelReference(o.uri).then(s=>{if(!s.object||!s.object.textEditorModel){s.dispose();return}const{object:{textEditorModel:l}}=s,{startLineNumber:c}=o.range;if(c<1||c>l.getLineCount()){s.dispose();return}const d=this.getPreviewValue(l,c,o),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(a,d?new _r().appendCodeblock(h||"",d):void 0),s.dispose()})}})}getPreviewValue(e,t,n){let i=n.range;return i.endLineNumber-i.startLineNumber>=NS.MAX_SOURCE_PREVIEW_LINES&&(i=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,i)}stripIndentationFromPreviewRange(e,t,n){let r=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;o{const i=!t&&this.editor.getOption(86)&&!this.isInPeekEditor(n);return new hA({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(n)})}isInPeekEditor(e){const t=e.get(Et);return Po.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};T3.ID="editor.contrib.gotodefinitionatposition";T3.MAX_SOURCE_PREVIEW_LINES=8;T3=Egt([tV(1,jo),tV(2,Dn),tV(3,$e)],T3);Eu(T3.ID,T3,2);const d7=ve;class aye extends ie{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Xv(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class dee extends ie{static render(e,t,n){return new dee(e,t,n)}constructor(e,t,n){super(),this.actionContainer=de(e,d7("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=de(this.actionContainer,d7("a.action")),this.action.setAttribute("role","button"),t.iconClass&&de(this.action,d7(`span.icon.${t.iconClass}`));const i=de(this.action,d7("span"));i.textContent=n?`${t.label} (${n})`:t.label,this._register(ce(this.actionContainer,Me.CLICK,r=>{r.stopPropagation(),r.preventDefault(),t.run(this.actionContainer)})),this._register(ce(this.actionContainer,Me.KEY_DOWN,r=>{const a=new un(r);(a.equals(3)||a.equals(10))&&(r.stopPropagation(),r.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var ggt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})},mgt=globalThis&&globalThis.__asyncValues||function(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof __values=="function"?__values(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=u[r]&&function(a){return new Promise(function(o,s){a=u[r](a),i(o,s,a.done,a.value)})}}function i(r,a,o,s){Promise.resolve(s).then(function(l){r({value:l,done:o})},a)}};let fgt=class{constructor(e,t,n){this.value=e,this.isComplete=t,this.hasLoadingMessage=n}};class oye extends ie{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new ee),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new Hu(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new Hu(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new Hu(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(59).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=lZe(e=>this._computer.computeAsync(e)),ggt(this,void 0,void 0,function*(){var e,t,n,i;try{try{for(var r=!0,a=mgt(this._asyncIterable),o;o=yield a.next(),e=o.done,!e;r=!0){i=o.value,r=!1;const s=i;s&&(this._result.push(s),this._fireResult())}}catch(s){t={error:s}}finally{try{!r&&!e&&(n=a.return)&&(yield n.call(a))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){wt(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new fgt(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class uV{constructor(e,t,n,i){this.priority=e,this.range=t,this.initialMousePosX=n,this.initialMousePosY=i,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class RS{constructor(e,t,n,i,r,a){this.priority=e,this.owner=t,this.range=n,this.initialMousePosX=i,this.initialMousePosY=r,this.supportsMarkerHover=a,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const Pp=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class hee{constructor(){this._onDidWillResize=new ee,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new ee,this.onDidResize=this._onDidResize.event,this._sashListener=new fe,this._size=new Du(0,0),this._minSize=new Du(0,0),this._maxSize=new Du(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Vr(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Vr(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Vr(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:CB.North}),this._southSash=new Vr(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:CB.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,n=0;this._sashListener.add(Ke.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,n=0)})),this._sashListener.add(Ke.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,n=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(i=>{e&&(n=i.currentX-i.startX,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(i=>{e&&(n=-(i.currentX-i.startX),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(i=>{e&&(t=-(i.currentY-i.startY),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(i=>{e&&(t=i.currentY-i.startY,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(Ke.any(this._eastSash.onDidReset,this._westSash.onDidReset)(i=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(Ke.any(this._northSash.onDidReset,this._southSash.onDidReset)(i=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,n,i){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=i?3:0}layout(e=this.size.height,t=this.size.width){const{height:n,width:i}=this._minSize,{height:r,width:a}=this._maxSize;e=Math.max(n,Math.min(r,e)),t=Math.max(i,Math.min(a,t));const o=new Du(t,e);Du.equals(o,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=o,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}const pgt=30,Dgt=24;class xgt extends ie{constructor(e,t=new Du(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new hee),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Du.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(n=>{this._resize(new Du(n.dimension.width,n.dimension.height)),n.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return!((e=this._contentPosition)===null||e===void 0)&&e.position?ue.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);return!t||!n?void 0:mi(t).top+n.top-pgt}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);if(!t||!n)return;const i=mi(t),r=Zv(document.body),a=i.top+n.top+n.height;return r.height-a-Dgt}_findPositionPreference(e,t){var n,i;const r=Math.min((n=this._availableVerticalSpaceBelow(t))!==null&&n!==void 0?n:1/0,e),a=Math.min((i=this._availableVerticalSpaceAbove(t))!==null&&i!==void 0?i:1/0,e),o=Math.min(Math.max(a,r),e),s=Math.min(e,o);let l;return this._editor.getOption(59).above?l=s<=a?1:2:l=s<=r?2:1,l===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var Eee=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},ow=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const G0e=ve;let sw=class DU extends ie{constructor(e,t,n){super(),this._editor=e,this._instantiationService=t,this._keybindingService=n,this._currentResult=null;const i=this._editor.getOption(65)+8,r=4/3*i,a=new Du(r,i);this._widget=this._register(this._instantiationService.createInstance(XE,this._editor,a)),this._participants=[];for(const o of Pp.getAll())this._participants.push(this._instantiationService.createInstance(o,this._editor));this._participants.sort((o,s)=>o.hoverOrdinal-s.hoverOrdinal),this._computer=new cw(this._editor,this._participants),this._hoverOperation=this._register(new oye(this._editor,this._computer)),this._register(this._hoverOperation.onResult(o=>{if(!this._computer.anchor)return;const s=o.hasLoadingMessage?this._addLoadingMessage(o.value):o.value;this._withResult(new sye(this._computer.anchor,s,o.isComplete))})),this._register(li(this._widget.getDomNode(),"keydown",o=>{o.equals(9)&&this.hide()})),this._register(Kn.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}get widget(){return this._widget}maybeShowAt(e){if(this._widget.isResizing)return!0;const t=[];for(const i of this._participants)if(i.suggestHoverAnchor){const r=i.suggestHoverAnchor(e);r&&t.push(r)}const n=e.target;if(n.type===6&&t.push(new uV(0,n.range,e.event.posx,e.event.posy)),n.type===7){const i=this._editor.getOption(49).typicalHalfwidthCharacterWidth/2;!n.detail.isAfterLines&&typeof n.detail.horizontalDistanceToText=="number"&&n.detail.horizontalDistanceToTextr.priority-i.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,n,i){this._startShowingOrUpdateHover(new uV(0,e,void 0,void 0),t,n,i,null)}_startShowingOrUpdateHover(e,t,n,i,r){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,n,i,!1),!0):!1:this._editor.getOption(59).sticky&&r&&this._widget.isMouseGettingCloser(r.event.posx,r.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,n,i,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,n,i,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,n,i,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,n,i,r){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=i,this._computer.source=n,this._computer.insistOnKeepingHoverVisible=r,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const n=t.createLoadingMessage(this._computer.anchor);if(n)return e.slice(0).concat([n])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:n,showAtSecondaryPosition:i,highlightRange:r}=DU.computeHoverRanges(this._editor,e.range,t),a=new fe,o=a.add(new lw(this._keybindingService)),s=document.createDocumentFragment();let l=null;const c={fragment:s,statusBar:o,setColorPicker:h=>l=h,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:h=>this._widget.setMinimumDimensions(h),hide:()=>this.hide()};for(const h of this._participants){const E=t.filter(g=>g.owner===h);E.length>0&&a.add(h.renderHoverParts(c,E))}const d=t.some(h=>h.isBeforeContent);if(o.hasContent&&s.appendChild(o.hoverElement),s.hasChildNodes()){if(r){const h=this._editor.createDecorationsCollection();h.set([{range:r,options:DU._DECORATION_OPTIONS}]),a.add(bt(()=>{h.clear()}))}this._widget.showAt(s,new Cgt(l,n,i,this._editor.getOption(59).above,this._computer.shouldFocus,this._computer.source,d,e.initialMousePosX,e.initialMousePosY,a))}else a.dispose()}static computeHoverRanges(e,t,n){let i=1;if(e.hasModel()){const l=e._getViewModel(),c=l.coordinatesConverter,d=c.convertModelRangeToViewRange(t),h=new ue(d.startLineNumber,l.getLineMinColumn(d.startLineNumber));i=c.convertViewPositionToModelPosition(h).column}const r=t.startLineNumber;let a=t.startColumn,o=n[0].range,s=null;for(const l of n)o=O.plusRange(o,l.range),l.range.startLineNumber===r&&l.range.endLineNumber===r&&(a=Math.max(Math.min(a,l.range.startColumn),i)),l.forceShowAtRange&&(s=l.range);return{showAtPosition:s?s.getStartPosition():new ue(r,t.startColumn),showAtSecondaryPosition:s?s.getStartPosition():new ue(r,a),highlightRange:o}}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}};sw._DECORATION_OPTIONS=gt.register({description:"content-hover-highlight",className:"hoverHighlight"});sw=Eee([ow(1,mt),ow(2,on)],sw);class sye{constructor(e,t,n){this.anchor=e,this.messages=t,this.isComplete=n}filter(e){const t=this.messages.filter(n=>n.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new vgt(this,this.anchor,t,this.isComplete)}}class vgt extends sye{constructor(e,t,n,i){super(t,n,i),this.original=e}filter(e){return this.original.filter(e)}}class Cgt{constructor(e,t,n,i,r,a,o,s,l,c){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=n,this.preferAbove=i,this.stoleFocus=r,this.source=a,this.isBeforeContent=o,this.initialMousePosX=s,this.initialMousePosY=l,this.disposables=c,this.closestMouseDistance=void 0}}const U0e=30,nV=10,bgt=6;let XE=class nh extends xgt{get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}get isFocused(){var e;return(e=this._hoverFocusedKey.get())!==null&&e!==void 0?e:!1}constructor(e,t,n){super(e,t),this._hover=this._register(new aye),this._hoverVisibleKey=K.hoverVisible.bindTo(n),this._hoverFocusedKey=K.hoverFocused.bindTo(n),de(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(49)&&this._updateFont()}));const i=this._register(g1(this._resizableNode.domNode));this._register(i.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(i.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._layout(),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),(e=this._visibleData)===null||e===void 0||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return nh.ID}static _applyDimensions(e,t,n){const i=typeof t=="number"?`${t}px`:t,r=typeof n=="number"?`${n}px`:n;e.style.width=i,e.style.height=r}_setContentsDomNodeDimensions(e,t){const n=this._hover.contentsDomNode;return nh._applyDimensions(n,e,t)}_setContainerDomNodeDimensions(e,t){const n=this._hover.containerDomNode;return nh._applyDimensions(n,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,n){const i=typeof t=="number"?`${t}px`:t,r=typeof n=="number"?`${n}px`:n;e.style.maxWidth=i,e.style.maxHeight=r}_setHoverWidgetMaxDimensions(e,t){nh._applyMaxDimensions(this._hover.contentsDomNode,e,t),nh._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){const e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){const e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,n=e.height;this._setHoverWidgetDimensions(t,n),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,n-nV))}_setResizableNodeMaxDimensions(){var e,t;const n=(e=this._findMaximumRenderingWidth())!==null&&e!==void 0?e:1/0,i=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._resizableNode.maxSize=new Du(n,i),this._setHoverWidgetMaxDimensions(n,i)}_resize(e){var t,n;nh._lastDimensions=new Du(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._setResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(n=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||n===void 0||n.layout()}_findAvailableSpaceVertically(){var e;const t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition;if(t)return this._positionPreference===1?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=bgt;return Array.from(this._hover.contentsDomNode.children).forEach(n=>{t+=n.clientHeight}),this._hasHorizontalScrollbar()&&(t+=nV),Math.min(e,t)}_findMaximumRenderingWidth(){return!this._editor||!this._editor.hasModel()?void 0:Zv(document.body).width-14}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const n=mi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=q0e(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,n.left,n.top,n.width,n.height));const i=q0e(e,t,n.left,n.top,n.width,n.height);return i>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,i),!0)}_setHoverData(e){var t;(t=this._visibleData)===null||t===void 0||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_layout(){const{fontSize:e,lineHeight:t}=this._editor.getOption(49),n=this._hover.contentsDomNode;n.style.fontSize=`${e}px`,n.style.lineHeight=`${t/e}`,this._updateMaxDimensions()}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,nh._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,nh._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(e=this._positionPreference)!==null&&e!==void 0?e:1]}:null}showAt(e,t){var n,i;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const r=kf(this._hover.containerDomNode),a=t.showAtPosition;this._positionPreference=(n=this._findPositionPreference(r,a))!==null&&n!==void 0?n:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Du(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;const n=this._hover.containerDomNode,i=this._hover.contentsDomNode,r=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._setContainerDomNodeDimensions(vo(n),Math.min(r,e)),this._setContentsDomNodeDimensions(vo(i),Math.min(r,e-nV))}setMinimumDimensions(e){this._resizableNode.minSize=e}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let n=kf(t),i=vo(t);if(this._resizableNode.layout(n,i),this._setHoverWidgetDimensions(i,n),n=kf(t),i=vo(t),this._resizableNode.layout(n,i),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(n)),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){const r=kf(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(r,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-U0e})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+U0e})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};XE.ID="editor.contrib.resizableContentHoverWidget";XE._lastDimensions=new Du(0,0);XE=Eee([ow(2,Et)],XE);let lw=class extends ie{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=G0e("div.hover-row.status-bar"),this.actionsElement=de(this.hoverElement,G0e("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;return this._hasContent=!0,this._register(dee.render(this.actionsElement,e,n))}append(e){const t=de(this.actionsElement,e);return this._hasContent=!0,t}};lw=Eee([ow(0,on)],lw);class cw{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const n=e.getModel(),i=t.range.startLineNumber;if(i>n.getLineCount())return[];const r=n.getLineMaxColumn(i);return e.getLineDecorations(i).filter(a=>{if(a.options.isWholeLine)return!0;const o=a.range.startLineNumber===i?a.range.startColumn:1,s=a.range.endLineNumber===i?a.range.endColumn:r;if(a.options.showIfCollapsed){if(o>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(o>t.range.startColumn||t.range.endColumn>s)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return ki.EMPTY;const n=cw._getLineDecorations(this._editor,t);return ki.merge(this._participants.map(i=>i.computeAsync?i.computeAsync(t,n,e):ki.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=cw._getLineDecorations(this._editor,this._anchor);let t=[];for(const n of this._participants)t=t.concat(n.computeSync(this._anchor,e));return c1(t)}}function q0e(u,e,t,n,i,r){const a=t+i/2,o=n+r/2,s=Math.max(Math.abs(u-a)-i/2,0),l=Math.max(Math.abs(e-o)-r/2,0);return Math.sqrt(s*s+l*l)}const J0e=ve;class a5 extends ie{constructor(e,t,n){super(),this._renderDisposeables=this._register(new fe),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new aye),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new u4({editor:this._editor},t,n)),this._computer=new kgt(this._editor),this._hoverOperation=this._register(new oye(this._editor,this._computer)),this._register(this._hoverOperation.onResult(i=>{this._withResult(i.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(49)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return a5.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const n=document.createDocumentFragment();for(const i of t){const r=J0e("div.hover-row.markdown-hover"),a=de(r,J0e("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(i.value));a.appendChild(o.element),n.appendChild(r)}this._updateContents(n),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(e),i=this._editor.getScrollTop(),r=this._editor.getOption(65),a=this._hover.containerDomNode.clientHeight,o=n-i-(a-r)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(o),0)}px`}}a5.ID="editor.contrib.modesGlyphHoverWidget";class kgt{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=i=>({value:i}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(const i of t){if(!i.options.glyphMarginClassName)continue;const r=i.options.glyphMarginHoverMessage;!r||U5(r)||n.push(...TY(r).map(e))}return n}}var ygt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class Fgt{constructor(e,t,n){this.provider=e,this.hover=t,this.ordinal=n}}function Agt(u,e,t,n,i){return ygt(this,void 0,void 0,function*(){try{const r=yield Promise.resolve(u.provideHover(t,n,i));if(r&&Sgt(r))return new Fgt(u,r,e)}catch(r){Ni(r)}})}function gee(u,e,t,n){const r=u.ordered(e).map((a,o)=>Agt(a,o,e,t,n));return ki.fromPromises(r).coalesce()}function _gt(u,e,t,n){return gee(u,e,t,n).map(i=>i.hover).toPromise()}M1("_executeHoverProvider",(u,e,t)=>{const n=u.get($e);return _gt(n.hoverProvider,e,t,Vt.None)});function Sgt(u){const e=typeof u.range<"u",t=typeof u.contents<"u"&&u.contents&&u.contents.length>0;return e&&t}var Bgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},h7=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const Z0e=ve;class xc{constructor(e,t,n,i,r){this.owner=e,this.range=t,this.contents=n,this.isBeforeContent=i,this.ordinal=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let dw=class{constructor(e,t,n,i,r){this._editor=e,this._languageService=t,this._openerService=n,this._configurationService=i,this._languageFeaturesService=r,this.hoverOrdinal=3}createLoadingMessage(e){return new xc(this,e.range,[new _r().appendText(v("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const n=this._editor.getModel(),i=e.range.startLineNumber,r=n.getLineMaxColumn(i),a=[];let o=1e3;const s=n.getLineLength(i),l=n.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(115),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:l});let h=!1;c>=0&&s>c&&e.range.startColumn>=c&&(h=!0,a.push(new xc(this,e.range,[{value:v("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,o++))),!h&&typeof d=="number"&&s>=d&&a.push(new xc(this,e.range,[{value:v("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,o++));let E=!1;for(const g of t){const m=g.range.startLineNumber===i?g.range.startColumn:1,f=g.range.endLineNumber===i?g.range.endColumn:r,p=g.options.hoverMessage;if(!p||U5(p))continue;g.options.beforeContentClassName&&(E=!0);const D=new O(e.range.startLineNumber,m,e.range.startLineNumber,f);a.push(new xc(this,D,TY(p),E,o++))}return a}computeAsync(e,t,n){if(!this._editor.hasModel()||e.type!==1)return ki.EMPTY;const i=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(i))return ki.EMPTY;const r=new ue(e.range.startLineNumber,e.range.startColumn);return gee(this._languageFeaturesService.hoverProvider,i,r,n).filter(a=>!U5(a.hover.contents)).map(a=>{const o=a.hover.range?O.lift(a.hover.range):e.range;return new xc(this,o,a.hover.contents,!1,a.ordinal)})}renderHoverParts(e,t){return lye(e,t,this._editor,this._languageService,this._openerService)}};dw=Bgt([h7(1,Dn),h7(2,gs),h7(3,nu),h7(4,$e)],dw);function lye(u,e,t,n,i){e.sort((a,o)=>a.ordinal-o.ordinal);const r=new fe;for(const a of e)for(const o of a.contents){if(U5(o))continue;const s=Z0e("div.hover-row.markdown-hover"),l=de(s,Z0e("div.hover-contents")),c=r.add(new u4({editor:t},n,i));r.add(c.onDidRenderAsync(()=>{l.className="hover-contents code-hover-contents",u.onContentsChanged()}));const d=r.add(c.render(o));l.appendChild(d.element),u.fragment.appendChild(s)}return r}var cye=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},hw=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};class Y0e{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}}let xU=class{constructor(e,t,n){this._markerService=t,this._configService=n,this._onDidChange=new ee,this.onDidChange=this._onDidChange.event,this._dispoables=new fe,this._markers=[],this._nextIdx=-1,lt.isUri(e)?this._resourceFilter=o=>o.toString()===e.toString():e&&(this._resourceFilter=e);const i=this._configService.getValue("problems.sortOrder"),r=(o,s)=>{let l=Hk(o.resource.toString(),s.resource.toString());return l===0&&(i==="position"?l=O.compareRangesUsingStarts(o,s)||Wn.compare(o.severity,s.severity):l=Wn.compare(o.severity,s.severity)||O.compareRangesUsingStarts(o,s)),l},a=()=>{this._markers=this._markerService.read({resource:lt.isUri(e)?e:void 0,severities:Wn.Error|Wn.Warning|Wn.Info}),typeof e=="function"&&(this._markers=this._markers.filter(o=>this._resourceFilter(o.resource))),this._markers.sort(r)};a(),this._dispoables.add(t.onMarkerChanged(o=>{(!this._resourceFilter||o.some(s=>this._resourceFilter(s)))&&(a(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new Y0e(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let i=!1,r=this._markers.findIndex(a=>a.resource.toString()===e.uri.toString());r<0&&(r=Pk(this._markers,{resource:e.uri},(a,o)=>Hk(a.resource.toString(),o.resource.toString())),r<0&&(r=~r));for(let a=r;ai.resource.toString()===e.toString());if(!(n<0)){for(;n=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},cD=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};class zgt{constructor(e,t,n,i,r){this._openerService=i,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new fe,this._editor=t;const a=document.createElement("div");a.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),a.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),a.appendChild(this._relatedBlock),this._disposables.add(li(this._relatedBlock,"click",o=>{o.preventDefault();const s=this._relatedDiagnostics.get(o.target);s&&n(s)})),this._scrollable=new TCe(a,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(o=>{a.style.left=`-${o.scrollLeft}px`,a.style.top=`-${o.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Au(this._disposables)}update(e){const{source:t,message:n,relatedInformation:i,code:r}=e;let a=((t==null?void 0:t.length)||0)+2;r&&(typeof r=="string"?a+=r.length:a+=r.value.length);const o=E1(n);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+a,this._longestLineLength);fr(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let s=this._messageBlock;for(const h of o)s=document.createElement("div"),s.innerText=h,h===""&&(s.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(s);if(t||r){const h=document.createElement("span");if(h.classList.add("details"),s.appendChild(h),t){const E=document.createElement("span");E.innerText=t,E.classList.add("source"),h.appendChild(E)}if(r)if(typeof r=="string"){const E=document.createElement("span");E.innerText=`(${r})`,E.classList.add("code"),h.appendChild(E)}else{this._codeLink=ve("a.code-link"),this._codeLink.setAttribute("href",`${r.target.toString()}`),this._codeLink.onclick=g=>{this._openerService.open(r.target,{allowCommands:!0}),g.preventDefault(),g.stopPropagation()};const E=de(this._codeLink,ve("span"));E.innerText=r.value,h.appendChild(this._codeLink)}}if(fr(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),ca(i)){const h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(65)*.66)}px`,this._lines+=1;for(const E of i){const g=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(E.resource)}(${E.startLineNumber}, ${E.startColumn}): `,m.title=this._labelService.getUriLabel(E.resource),this._relatedDiagnostics.set(m,E);const f=document.createElement("span");f.innerText=E.message,g.appendChild(m),g.appendChild(f),this._lines+=1,h.appendChild(g)}}const l=this._editor.getOption(49),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Wn.Error:t=v("Error","Error");break;case Wn.Warning:t=v("Warning","Warning");break;case Wn.Info:t=v("Info","Info");break;case Wn.Hint:t=v("Hint","Hint");break}let n=v("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const i=this._editor.getModel();return i&&e.startLineNumber<=i.getLineCount()&&e.startLineNumber>=1&&(n=`${i.getLineContent(e.startLineNumber)}, ${n}`),n}}let av=class hye extends aw{constructor(e,t,n,i,r,a,o){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=n,this._menuService=i,this._contextKeyService=a,this._labelService=o,this._callOnDispose=new fe,this._onDidSelectRelatedInformation=new ee,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Wn.Warning,this._backgroundColor=ae.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Pgt);let t=bU,n=Lgt;this._severity===Wn.Warning?(t=IS,n=Mgt):this._severity===Wn.Info&&(t=kU,n=Tgt);const i=e.getColor(t),r=e.getColor(n);this.style({arrowColor:i,frameColor:i,headerBackgroundColor:r,primaryHeadingColor:e.getColor(K2e),secondaryHeadingColor:e.getColor(W2e)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(i=>this.editor.focus()));const t=[],n=this._menuService.createMenu(hye.TitleMenu,this._contextKeyService);ybe(n,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=de(e,ve(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new zgt(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const i=O.lift(e),r=this.editor.getPosition(),a=r&&i.containsPosition(r)?r:i.getStartPosition();super.show(a,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const s=n>1?v("problems","{0} of {1} problems",t,n):v("change","{0} of {1} problem",t,n);this.setTitle(B0(o.uri),s)}this._icon.className=`codicon ${CU.className(Wn.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(a,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};av.TitleMenu=new G("gotoErrorTitleMenu");av=wgt([cD(1,Ui),cD(2,gs),cD(3,L1),cD(4,mt),cD(5,Et),cD(6,q5)],av);const Q0e=t2(Kd,zXe),X0e=t2(zs,e2),ele=t2(Ls,rW),bU=U("editorMarkerNavigationError.background",{dark:Q0e,light:Q0e,hcDark:Zt,hcLight:Zt},v("editorMarkerNavigationError","Editor marker navigation widget error color.")),Lgt=U("editorMarkerNavigationError.headerBackground",{dark:tt(bU,.1),light:tt(bU,.1),hcDark:null,hcLight:null},v("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),IS=U("editorMarkerNavigationWarning.background",{dark:X0e,light:X0e,hcDark:Zt,hcLight:Zt},v("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Mgt=U("editorMarkerNavigationWarning.headerBackground",{dark:tt(IS,.1),light:tt(IS,.1),hcDark:"#0C141F",hcLight:tt(IS,.2)},v("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),kU=U("editorMarkerNavigationInfo.background",{dark:ele,light:ele,hcDark:Zt,hcLight:Zt},v("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Tgt=U("editorMarkerNavigationInfo.headerBackground",{dark:tt(kU,.1),light:tt(kU,.1),hcDark:null,hcLight:null},v("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Pgt=U("editorMarkerNavigation.background",{dark:er,light:er,hcDark:er,hcLight:er},v("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Ngt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},E7=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},Eye=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let Vg=class OS{static get(e){return e.getContribution(OS.ID)}constructor(e,t,n,i,r){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=i,this._instantiationService=r,this._sessionDispoables=new fe,this._editor=e,this._widgetVisible=gye.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(av,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(n=>{var i,r,a;(!(!((i=this._model)===null||i===void 0)&&i.selected)||!O.containsPosition((r=this._model)===null||r===void 0?void 0:r.selected.marker,n.position))&&((a=this._model)===null||a===void 0||a.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const n=this._model.find(this._editor.getModel().uri,this._widget.position);n?this._widget.updateMarker(n.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(n=>{this._editorService.openCodeEditor({resource:n.resource,options:{pinned:!0,revealIfOpened:!0,selection:O.lift(n).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new ue(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var n,i;return Eye(this,void 0,void 0,function*(){if(this._editor.hasModel()){const r=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(r.move(e,this._editor.getModel(),this._editor.getPosition()),!r.selected)return;if(r.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const a=yield this._editorService.openCodeEditor({resource:r.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:r.selected.marker}},this._editor);a&&((n=OS.get(a))===null||n===void 0||n.close(),(i=OS.get(a))===null||i===void 0||i.nagivate(e,t))}else this._widget.showAtMarker(r.selected.marker,r.selected.index,r.selected.total)}})}};Vg.ID="editor.contrib.markerController";Vg=Ngt([E7(1,dye),E7(2,Et),E7(3,hu),E7(4,mt)],Vg);class zN extends je{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){var n;return Eye(this,void 0,void 0,function*(){t.hasModel()&&((n=Vg.get(t))===null||n===void 0||n.nagivate(this._next,this._multiFile))})}}class eg extends zN{constructor(){super(!0,!1,{id:eg.ID,label:eg.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:578,weight:100},menuOpts:{menuId:av.TitleMenu,title:eg.LABEL,icon:Cn("marker-navigation-next",Ae.arrowDown,v("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}eg.ID="editor.action.marker.next";eg.LABEL=v("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class e3 extends zN{constructor(){super(!1,!1,{id:e3.ID,label:e3.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:1602,weight:100},menuOpts:{menuId:av.TitleMenu,title:e3.LABEL,icon:Cn("marker-navigation-previous",Ae.arrowUp,v("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}e3.ID="editor.action.marker.prev";e3.LABEL=v("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Rgt extends zN{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:v("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:66,weight:100},menuOpts:{menuId:G.MenubarGoMenu,title:v({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Igt extends zN{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:v("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:K.focus,primary:1090,weight:100},menuOpts:{menuId:G.MenubarGoMenu,title:v({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}Eu(Vg.ID,Vg,4);be(eg);be(e3);be(Rgt);be(Igt);const gye=new Ne("markersNavigationVisible",!1),Ogt=Dr.bindToContribution(Vg.get);Be(new Ogt({id:"closeMarkersNavigation",precondition:gye,handler:u=>u.close(),kbOpts:{weight:100+50,kbExpr:K.focus,primary:9,secondary:[1033]}}));var jgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},iV=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const W0=ve;class Vgt{constructor(e,t,n){this.owner=e,this.range=t,this.marker=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const tle={type:1,filter:{include:_t.QuickFix},triggerAction:Ks.QuickFixHover};let yU=class{constructor(e,t,n,i){this._editor=e,this._markerDecorationsService=t,this._openerService=n,this._languageFeaturesService=i,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const n=this._editor.getModel(),i=e.range.startLineNumber,r=n.getLineMaxColumn(i),a=[];for(const o of t){const s=o.range.startLineNumber===i?o.range.startColumn:1,l=o.range.endLineNumber===i?o.range.endColumn:r,c=this._markerDecorationsService.getMarker(n.uri,o);if(!c)continue;const d=new O(e.range.startLineNumber,s,e.range.startLineNumber,l);a.push(new Vgt(this,d,c))}return a}renderHoverParts(e,t){if(!t.length)return ie.None;const n=new fe;t.forEach(r=>e.fragment.appendChild(this.renderMarkerHover(r,n)));const i=t.length===1?t[0]:t.sort((r,a)=>Wn.compare(r.marker.severity,a.marker.severity))[0];return this.renderMarkerStatusbar(e,i,n),n}renderMarkerHover(e,t){const n=W0("div.hover-row"),i=de(n,W0("div.marker.hover-contents")),{source:r,message:a,code:o,relatedInformation:s}=e.marker;this._editor.applyFontInfo(i);const l=de(i,W0("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=a,r||o)if(o&&typeof o!="string"){const c=W0("span");if(r){const g=de(c,W0("span"));g.innerText=r}const d=de(c,W0("a.code-link"));d.setAttribute("href",o.target.toString()),t.add(ce(d,"click",g=>{this._openerService.open(o.target,{allowCommands:!0}),g.preventDefault(),g.stopPropagation()}));const h=de(d,W0("span"));h.innerText=o.value;const E=de(i,c);E.style.opacity="0.6",E.style.paddingLeft="6px"}else{const c=de(i,W0("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=r&&o?`${r}(${o})`:r||`(${o})`}if(ca(s))for(const{message:c,resource:d,startLineNumber:h,startColumn:E}of s){const g=de(i,W0("div"));g.style.marginTop="8px";const m=de(g,W0("a"));m.innerText=`${B0(d)}(${h}, ${E}): `,m.style.cursor="pointer",t.add(ce(m,"click",p=>{p.stopPropagation(),p.preventDefault(),this._openerService&&this._openerService.open(d,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:E}}}).catch(wt)}));const f=de(g,W0("span"));f.innerText=c,this._editor.applyFontInfo(f)}return n}renderMarkerStatusbar(e,t,n){if((t.marker.severity===Wn.Error||t.marker.severity===Wn.Warning||t.marker.severity===Wn.Info)&&e.statusBar.addAction({label:v("view problem","View Problem"),commandId:eg.ID,run:()=>{var i;e.hide(),(i=Vg.get(this._editor))===null||i===void 0||i.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(89)){const i=e.statusBar.append(W0("div"));this.recentMarkerCodeActionsInfo&&($B.makeKey(this.recentMarkerCodeActionsInfo.marker)===$B.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(i.textContent=v("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const r=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?ie.None:n.add(_g(()=>i.textContent=v("checkingForQuickFixes","Checking for quick fixes..."),200));i.textContent||(i.textContent=String.fromCharCode(160));const a=this.getCodeActions(t.marker);n.add(bt(()=>a.cancel())),a.then(o=>{if(r.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:o.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){o.dispose(),i.textContent=v("noQuickFixes","No quick fixes available");return}i.style.display="none";let s=!1;n.add(bt(()=>{s||o.dispose()})),e.statusBar.addAction({label:v("quick fixes","Quick Fix..."),commandId:uee,run:l=>{s=!0;const c=M3.get(this._editor),d=mi(l);e.hide(),c==null||c.showCodeActions(tle,o,{x:d.left,y:d.top,width:d.width,height:d.height})}})},wt)}}getCodeActions(e){return $i(t=>ree(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),tle,_p.None,t))}};yU=jgt([iV(1,pQ),iV(2,gs),iV(3,$e)],yU);const mye="editor.action.inlineSuggest.commit",fye="editor.action.inlineSuggest.showPrevious",pye="editor.action.inlineSuggest.showNext";var Hgt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class $gt extends ie{constructor(e,t,n={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new tqe),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new fe,this.options=n,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new j2(()=>{var i;return(i=this.toggleMenuActionViewItem)===null||i===void 0?void 0:i.show()},n.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new $s(this.element,{orientation:n.orientation,ariaLabel:n.ariaLabel,actionRunner:n.actionRunner,allowContextMenu:n.allowContextMenu,actionViewItemProvider:(i,r)=>{var a;if(i.id===j2.ID)return this.toggleMenuActionViewItem=new NB(i,i.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:et.asClassNameArray((a=n.moreIcon)!==null&&a!==void 0?a:Ae.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(n.actionViewItemProvider){const o=n.actionViewItemProvider(i,r);if(o)return o}if(i instanceof N5){const o=new NB(i,i.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:i.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return o.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(o),this.disposables.add(this._onDidChangeDropdownVisibility.add(o.onDidChangeVisibility)),o}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const n=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),n.push(this.toggleMenuAction)),n.forEach(i=>{this.actionBar.push(i,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(i)})})}getKeybindingLabel(e){var t,n;const i=this.lookupKeybindings?(n=(t=this.options).getKeyBinding)===null||n===void 0?void 0:n.call(t,e):void 0;return Gr(i==null?void 0:i.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class j2 extends da{constructor(e,t){t=t||v("moreActions","More Actions..."),super(j2.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Hgt(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}j2.ID="toolbar.toggle.more";var Kgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},a6=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let FU=class extends $gt{constructor(e,t,n,i,r,a,o){super(e,r,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=a.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0,skipTelemetry:typeof(t==null?void 0:t.telemetrySource)=="string"})),this._options=t,this._menuService=n,this._contextKeyService=i,this._contextMenuService=r,this._sessionDisposables=this._store.add(new fe);const s=t==null?void 0:t.telemetrySource;s&&this._store.add(this.actionBar.onDidRun(l=>o.publicLog2("workbenchActionExecuted",{id:l.action.id,from:s})))}setActions(e,t=[],n){var i,r,a;this._sessionDisposables.clear();const o=e.slice(),s=t.slice(),l=[];let c=0;const d=[];let h=!1;if(((i=this._options)===null||i===void 0?void 0:i.hiddenItemStrategy)!==-1)for(let E=0;E=this._options.maxNumberOfItems&&(o[g]=void 0,d[g]=m)}}Yie(o),Yie(d),super.setActions(o,pr.join(d,s)),l.length>0&&this._sessionDisposables.add(ce(this.getElement(),"contextmenu",E=>{var g,m,f,p,D;const x=new Bs(E),b=this.getItemAction(x.target);if(!b)return;x.preventDefault(),x.stopPropagation();let k=!1;if(c===1&&((g=this._options)===null||g===void 0?void 0:g.hiddenItemStrategy)===0){k=!0;for(let S=0;Sthis._menuService.resetHiddenStates(n)}))),this._contextMenuService.showContextMenu({getAnchor:()=>x,getActions:()=>y,menuId:(f=this._options)===null||f===void 0?void 0:f.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(p=this._options)===null||p===void 0?void 0:p.menuOptions),skipTelemetry:typeof((D=this._options)===null||D===void 0?void 0:D.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};FU=Kgt([a6(2,L1),a6(3,Et),a6(4,Qs),a6(5,on),a6(6,Ys)],FU);var mee=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},vc=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let AU=class extends ie{constructor(e,t,n){super(),this.editor=e,this.model=t,this.instantiationService=n,this.alwaysShowToolbar=to(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).showToolbar==="always"),this.sessionPosition=void 0,this.position=gu("position",i=>{var r,a,o;const s=(r=this.model.read(i))===null||r===void 0?void 0:r.ghostText.read(i);if(!this.alwaysShowToolbar.read(i)||!s||s.parts.length===0)return this.sessionPosition=void 0,null;const l=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const c=new ue(s.lineNumber,Math.min(l,(o=(a=this.sessionPosition)===null||a===void 0?void 0:a.column)!==null&&o!==void 0?o:Number.MAX_SAFE_INTEGER));return this.sessionPosition=c,c}),this._register(il("setup content widget",(i,r)=>{const a=this.model.read(i);if(!a||!this.alwaysShowToolbar.read(i))return;const o=r.add(this.instantiationService.createInstance(Hg,this.editor,!0,this.position,a.selectedInlineCompletionIndex,a.inlineCompletionsCount,a.selectedInlineCompletion.map(s=>{var l;return(l=s==null?void 0:s.inlineCompletion.source.inlineCompletions.commands)!==null&&l!==void 0?l:[]})));e.addContentWidget(o),r.add(bt(()=>e.removeContentWidget(o))),r.add(nn("request explicit",s=>{this.position.read(s)&&a.lastTriggerKind.read(s)!==Ih.Explicit&&a.triggerExplicitly()}))}))}};AU=mee([vc(2,mt)],AU);const Wgt=Cn("inline-suggestion-hints-next",Ae.chevronRight,v("parameterHintsNextIcon","Icon for show next parameter hint.")),Ggt=Cn("inline-suggestion-hints-previous",Ae.chevronLeft,v("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Hg=class _U extends ie{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,n){const i=new da(e,t,n,!0,()=>this._commandService.executeCommand(e)),r=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let a=t;return r&&(a=v({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,r.getLabel())),i.tooltip=a,i}constructor(e,t,n,i,r,a,o,s,l,c,d){super(),this.editor=e,this.withBorder=t,this._position=n,this._currentSuggestionIdx=i,this._suggestionCount=r,this._extraCommands=a,this._commandService=o,this.keybindingService=l,this._contextKeyService=c,this._menuService=d,this.id=`InlineSuggestionHintsContentWidget${_U.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=ka("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[ka("div",{style:{display:"flex"}},[ka("div@actionBar",{className:"custom-actions"}),ka("div@toolBar")])]),this.previousAction=this.createCommandAction(fye,v("previous","Previous"),et.asClassName(Ggt)),this.availableSuggestionCountAction=new da("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(pye,v("next","Next"),et.asClassName(Wgt)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(G.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new Hu(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new Hu(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[];const h=this._register(new $s(this.nodes.actionBar));h.push(this.previousAction,{icon:!0,label:!1}),h.push(this.availableSuggestionCountAction),h.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(s.createInstance(SU,this.nodes.toolBar,G.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:E=>E.startsWith("primary")},actionViewItemProvider:(E,g)=>E instanceof Sl?s.createInstance(Ugt,E,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(E=>{_U._dropDownVisible=E})),this._register(nn("update position",E=>{this._position.read(E),this.editor.layoutContentWidget(this)})),this._register(nn("counts",E=>{const g=this._suggestionCount.read(E),m=this._currentSuggestionIdx.read(E);g!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${m+1}/${g}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),g!==void 0&&g>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(nn("extra commands",E=>{const g=this._extraCommands.read(E);if(Ur(this.lastCommands,g))return;this.lastCommands=g;const m=g.map(f=>({class:void 0,id:f.id,enabled:!0,tooltip:f.tooltip||"",label:f.title,run:p=>this._commandService.executeCommand(f.id)}));for(const[f,p]of this.inlineCompletionsActionsMenus.getActions())for(const D of p)D instanceof Sl&&m.push(D);m.length>0&&m.unshift(new pr),this.toolBar.setAdditionalSecondaryActions(m)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Hg._dropDownVisible=!1;Hg.id=0;Hg=mee([vc(6,ei),vc(7,mt),vc(8,on),vc(9,Et),vc(10,L1)],Hg);let Ugt=class extends y3{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=ka("div.keybinding").root;new eA(t,Ss,Object.assign({disableTitle:!0},Xlt)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},SU=class extends FU{constructor(e,t,n,i,r,a,o,s){super(e,Object.assign({resetMenu:t},n),i,r,a,o,s),this.menuId=t,this.options2=n,this.menuService=i,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,n,i,r,a,o;const s=[],l=[];ybe(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:s,secondary:l},(n=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||n===void 0?void 0:n.primaryGroup,(r=(i=this.options2)===null||i===void 0?void 0:i.toolbarOptions)===null||r===void 0?void 0:r.shouldInlineSubmenu,(o=(a=this.options2)===null||a===void 0?void 0:a.toolbarOptions)===null||o===void 0?void 0:o.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),this.setActions(s,l)}setAdditionalSecondaryActions(e){Ur(this.additionalActions,e,(t,n)=>t===n)||(this.additionalActions=e,this.updateToolbar())}};SU=mee([vc(3,L1),vc(4,Et),vc(5,Qs),vc(6,on),vc(7,Ys)],SU);var qgt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},g7=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const Jgt=!1;let No=class Dye{static get(e){return e.getContribution(Dye.ID)}constructor(e,t,n,i,r){this._editor=e,this._instantiationService=t,this._openerService=n,this._languageService=i,this._keybindingService=r,this._toUnhook=new fe,this._hoverActivatedByColorDecoratorClick=!1,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(a=>{a.hasChanged(59)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(59);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(n=>this._onEditorMouseDown(n))),this._toUnhook.add(this._editor.onMouseUp(n=>this._onEditorMouseUp(n))),this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))):(this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))),this._toUnhook.add(this._editor.onMouseLeave(n=>this._onEditorMouseLeave(n))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(n=>this._onEditorScrollChanged(n)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._isMouseDown=!0;const n=e.target;if(n.type===9&&n.detail===XE.ID){this._hoverClicked=!0;return}n.type===12&&n.detail===a5.ID||(n.type!==12&&(this._hoverClicked=!1),!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t,n;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||!((n=this._contentWidget)===null||n===void 0)&&n.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,n,i,r,a,o,s,l,c,d,h;const E=e.target;if(!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((n=this._contentWidget)===null||n===void 0)&&n.isResizing||this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&E.type===9&&E.detail===XE.ID||this._isHoverSticky&&(!((i=this._contentWidget)===null||i===void 0)&&i.containsNode((r=e.event.browserEvent.view)===null||r===void 0?void 0:r.document.activeElement))&&!(!((o=(a=e.event.browserEvent.view)===null||a===void 0?void 0:a.getSelection())===null||o===void 0)&&o.isCollapsed)||!this._isHoverSticky&&E.type===9&&E.detail===XE.ID&&(!((s=this._contentWidget)===null||s===void 0)&&s.isColorPickerVisible)||this._isHoverSticky&&E.type===12&&E.detail===a5.ID||this._isHoverSticky&&(!((l=this._contentWidget)===null||l===void 0)&&l.isVisibleFromKeyboard))return;const g=(c=E.element)===null||c===void 0?void 0:c.classList.contains("colorpicker-color-decoration"),m=this._editor.getOption(145);if(g&&(m==="click"&&!this._hoverActivatedByColorDecoratorClick||m==="hover"&&!this._isHoverEnabled&&!Jgt||m==="clickAndHover"&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick)||!g&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(d=this._glyphWidget)===null||d===void 0||d.hide();return}if(E.type===2&&E.position){(h=this._contentWidget)===null||h===void 0||h.hide(),this._glyphWidget||(this._glyphWidget=new a5(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(E.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const n=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=n.kind===1||n.kind===2&&n.commandId==="editor.action.showHover"&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible);e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&!i&&this._hideWidgets()}_hideWidgets(){var e,t,n;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||Hg.dropDownVisible||(this._hoverActivatedByColorDecoratorClick=!1,this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(n=this._contentWidget)===null||n===void 0||n.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(sw,this._editor)),this._contentWidget}showContentHover(e,t,n,i,r=!1){this._hoverActivatedByColorDecoratorClick=r,this._getOrCreateContentWidget().startShowingAtRange(e,t,n,i)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}get isColorPickerVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};No.ID="editor.contrib.hover";No=qgt([g7(1,mt),g7(2,gs),g7(3,Dn),g7(4,on)],No);class Zgt extends je{constructor(){super({id:"editor.action.showHover",label:v({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:K.editorTextFocus,primary:Ri(2089,2087),weight:100}})}run(e,t,n){var i;const r=e.get(nu),a=e.get(B1),o=e.get(on);if(!t.hasModel())return;const s=No.get(t);if(!s)return;const l=t.getPosition(),c=new O(l.lineNumber,l.column,l.lineNumber,l.column),d=t.getOption(2)===2||!!(n!=null&&n.focus);if(s.isHoverVisible?s.focus():s.showContentHover(c,1,1,d),r.getValue("accessibility.verbosity.hover")&&a.isScreenReaderOptimized()){const h=(i=o.lookupKeybinding("editor.action.accessibleView"))===null||i===void 0?void 0:i.getAriaLabel(),E=h?v("chatAccessibleViewHint","Inspect this in the accessible view with {0}",h):v("chatAccessibleViewHintNoKb","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding");M5(E)}}}class Ygt extends je{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:v({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const n=No.get(t);if(!n)return;const i=t.getPosition();if(!i)return;const r=new O(i.lineNumber,i.column,i.lineNumber,i.column),a=T3.get(t);if(!a)return;a.startFindDefinitionFromCursor(i).then(()=>{n.showContentHover(r,1,1,!0)})}}class Qgt extends je{constructor(){super({id:"editor.action.scrollUpHover",label:v({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:16,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollUp()}}class Xgt extends je{constructor(){super({id:"editor.action.scrollDownHover",label:v({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:18,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollDown()}}class emt extends je{constructor(){super({id:"editor.action.scrollLeftHover",label:v({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:15,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollLeft()}}class tmt extends je{constructor(){super({id:"editor.action.scrollRightHover",label:v({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:17,weight:100}})}run(e,t){const n=No.get(t);n&&n.scrollRight()}}class umt extends je{constructor(){super({id:"editor.action.pageUpHover",label:v({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const n=No.get(t);n&&n.pageUp()}}class nmt extends je{constructor(){super({id:"editor.action.pageDownHover",label:v({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const n=No.get(t);n&&n.pageDown()}}class imt extends je{constructor(){super({id:"editor.action.goToTopHover",label:v({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const n=No.get(t);n&&n.goToTop()}}class rmt extends je{constructor(){super({id:"editor.action.goToBottomHover",label:v({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:K.hoverFocused,kbOpts:{kbExpr:K.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const n=No.get(t);n&&n.goToBottom()}}Eu(No.ID,No,2);be(Zgt);be(Ygt);be(Qgt);be(Xgt);be(emt);be(tmt);be(umt);be(nmt);be(imt);be(rmt);Pp.register(dw);Pp.register(yU);jl((u,e)=>{const t=u.getColor(GXe);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class BU extends ie{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(145);if(t!=="click"&&t!=="clickAndHover")return;const n=e.target;if(n.type!==6||!n.detail.injectedText||n.detail.injectedText.options.attachedData!==M2e||!n.range)return;const i=this._editor.getContribution(No.ID);if(i&&!i.isColorPickerVisible){const r=new O(n.range.startLineNumber,n.range.startColumn+1,n.range.endLineNumber,n.range.endColumn+1);i.showContentHover(r,1,0,!1,!0)}}}BU.ID="editor.contrib.colorContribution";Eu(BU.ID,BU,2);Pp.register(rw);var xye=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},hc=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},ule=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let $g=class vye extends ie{constructor(e,t,n,i,r,a,o){super(),this._editor=e,this._modelService=n,this._keybindingService=i,this._instantiationService=r,this._languageFeatureService=a,this._languageConfigurationService=o,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=K.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=K.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new Ew(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution(vye.ID)}};$g.ID="editor.contrib.standaloneColorPickerController";$g=xye([hc(1,Et),hc(2,Bn),hc(3,on),hc(4,mt),hc(5,$e),hc(6,an)],$g);Eu($g.ID,$g,1);const nle=8,amt=22;let Ew=class Cye extends ie{constructor(e,t,n,i,r,a,o,s){var l;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=n,this._modelService=r,this._keybindingService=a,this._languageFeaturesService=o,this._languageConfigurationService=s,this.allowEditorOverflow=!0,this.body=document.createElement("div"),this._position=void 0,this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new ee),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=i.createInstance(N2,this._editor),this._position=(l=this._editor._getViewModel())===null||l===void 0?void 0:l.getPrimaryCursorState().modelState.position;const c=this._editor.getSelection(),d=c?{startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(g1(this.body));this._register(h.onDidBlur(E=>{this.hide()})),this._register(h.onDidFocus(E=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(E=>{var g;const m=(g=E.target.element)===null||g===void 0?void 0:g.classList;m&&m.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(E=>{this._render(E.value,E.foundInEditor)})),this._start(d),this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return Cye.ID}getDomNode(){return this.body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(59).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this.body.focus()}_start(e){return ule(this,void 0,void 0,function*(){const t=yield this._computeAsync(e);t&&this._onResult.fire(new omt(t.result,t.foundInEditor))})}_computeAsync(e){return ule(this,void 0,void 0,function*(){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},n=yield this._standaloneColorPickerParticipant.createColorHover(t,new oee(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return n?{result:n.colorHover,foundInEditor:n.foundInEditor}:null})}_render(e,t){const n=document.createDocumentFragment(),i=this._register(new lw(this._keybindingService));let r;const a={fragment:n,statusBar:i,setColorPicker:m=>r=m,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(a,[e])),r===void 0)return;this.body.classList.add("standalone-colorpicker-body"),this.body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this.body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this.body.tabIndex=0,this.body.appendChild(n),r.layout();const o=r.body,s=o.saturationBox.domNode.clientWidth,l=o.domNode.clientWidth-s-amt-nle,c=r.body.enterButton;c==null||c.onClicked(()=>{this.updateEditor(),this.hide()});const d=r.header,h=d.pickedColorNode;h.style.width=s+nle+"px";const E=d.originalColorNode;E.style.width=l+"px";const g=r.header.closeButton;g==null||g.onClicked(()=>{this.hide()}),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};Ew.ID="editor.contrib.standaloneColorPickerWidget";Ew=xye([hc(3,mt),hc(4,Bn),hc(5,on),hc(6,$e),hc(7,an)],Ew);class omt{constructor(e,t){this.value=e,this.foundInEditor=t}}class smt extends vp{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:v("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:v({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:G.CommandPalette}]})}runEditorCommand(e,t){var n;(n=$g.get(t))===null||n===void 0||n.showOrFocus()}}class lmt extends je{constructor(){super({id:"editor.action.hideColorPicker",label:v({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:K.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var n;(n=$g.get(t))===null||n===void 0||n.hide()}}class cmt extends je{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:v({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:K.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var n;(n=$g.get(t))===null||n===void 0||n.insertColor()}}be(lmt);be(cmt);fi(smt);class SE{constructor(e,t,n){this.languageConfigurationService=n,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;const i=t.length,r=e.length;if(n+i>r)return!1;for(let a=0;a=65&&o<=90&&o+32===s)&&!(s>=65&&s<=90&&s+32===o))return!1}return!0}_createOperationsForBlockComment(e,t,n,i,r,a){const o=e.startLineNumber,s=e.startColumn,l=e.endLineNumber,c=e.endColumn,d=r.getLineContent(o),h=r.getLineContent(l);let E=d.lastIndexOf(t,s-1+t.length),g=h.indexOf(n,c-1-n.length);if(E!==-1&&g!==-1)if(o===l)d.substring(E+t.length,g).indexOf(n)>=0&&(E=-1,g=-1);else{const f=d.substring(E+t.length),p=h.substring(0,g);(f.indexOf(n)>=0||p.indexOf(n)>=0)&&(E=-1,g=-1)}let m;E!==-1&&g!==-1?(i&&E+t.length0&&h.charCodeAt(g-1)===32&&(n=" "+n,g-=1),m=SE._createRemoveBlockCommentOperations(new O(o,E+t.length+1,l,g+1),t,n)):(m=SE._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=m.length===1?n:null);for(const f of m)a.addTrackedEditOperation(f.range,f.text)}static _createRemoveBlockCommentOperations(e,t,n){const i=[];return O.isEmpty(e)?i.push(An.delete(new O(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(An.delete(new O(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(An.delete(new O(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i}static _createAddBlockCommentOperations(e,t,n,i){const r=[];return O.isEmpty(e)?r.push(An.replace(new O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(r.push(An.insert(new ue(e.startLineNumber,e.startColumn),t+(i?" ":""))),r.push(An.insert(new ue(e.endLineNumber,e.endColumn),(i?" ":"")+n))),r}getEditOperations(e,t){const n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenization.tokenizeIfCheap(n);const r=e.getLanguageIdAtPosition(n,i),a=this.languageConfigurationService.getLanguageConfiguration(r).comments;!a||!a.blockCommentStartToken||!a.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,a.blockCommentStartToken,a.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const n=t.getInverseEditOperations();if(n.length===2){const i=n[0],r=n[1];return new Ze(i.range.endLineNumber,i.range.endColumn,r.range.startLineNumber,r.range.startColumn)}else{const i=n[0].range,r=this._usedEndToken?-this._usedEndToken.length-1:0;return new Ze(i.endLineNumber,i.endColumn+r,i.endLineNumber,i.endColumn+r)}}}class oh{constructor(e,t,n,i,r,a,o){this.languageConfigurationService=e,this._selection=t,this._tabSize=n,this._type=i,this._insertSpace=r,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=a,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,n,i){e.tokenization.tokenizeIfCheap(t);const r=e.getLanguageIdAtPosition(t,1),a=i.getLanguageConfiguration(r).comments,o=a?a.lineCommentToken:null;if(!o)return null;const s=[];for(let l=0,c=n-t+1;lr?t[s].commentStrOffset=a-1:t[s].commentStrOffset=a}}}class fee extends je{constructor(e,t){super(t),this._type=e}run(e,t){const n=e.get(an);if(!t.hasModel())return;const i=t.getModel(),r=[],a=i.getOptions(),o=t.getOption(22),s=t.getSelections().map((c,d)=>({selection:c,index:d,ignoreFirstLine:!1}));s.sort((c,d)=>O.compareRangesUsingStarts(c.selection,d.selection));let l=s[0];for(let c=1;c=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Pm=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};let ov=class bye{static get(e){return e.getContribution(bye.ID)}constructor(e,t,n,i,r,a,o,s){this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=r,this._menuService=a,this._configurationService=o,this._workspaceContextService=s,this._toDispose=new fe,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&x3(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{this._editor.getOption(23)&&l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(23)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu(e.event);if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let n=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){n=!0;break}n||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(23)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?G.SimpleEditorContext:G.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const n=[],i=this._menuService.createMenu(t,this._contextKeyService),r=i.getActions({arg:e.uri});i.dispose();for(const a of r){const[,o]=a;let s=0;for(const l of o)if(l instanceof Qk){const c=this._getMenuActions(e,l.item.submenu);c.length>0&&(n.push(new N5(l.id,l.label,c)),s++)}else n.push(l),s++;s&&n.push(new pr)}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const n=this._editor.getOption(59);this._editor.updateOptions({hover:{enabled:!1}});let i=t;if(!i){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const a=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),o=mi(this._editor.getDomNode()),s=o.left+a.left,l=o.top+a.top+a.height;i={x:s,y:l}}const r=this._editor.getOption(125)&&!Fl;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>i,getActions:()=>e,getActionViewItem:a=>{const o=this._keybindingFor(a);if(o)return new p2(a,a,{label:!0,keybinding:o.getLabel(),isMenu:!0});const s=a;return typeof s.getActionViewItem=="function"?s.getActionViewItem():new p2(a,a,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:a=>this._keybindingFor(a),onHide:a=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:n})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||d0t(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(71);let n=0;const i=l=>({id:`menu-action-${++n}`,label:l.label,tooltip:"",class:void 0,enabled:typeof l.enabled>"u"?!0:l.enabled,checked:l.checked,run:l.run}),r=(l,c)=>new N5(`menu-action-${++n}`,l,c,void 0),a=(l,c,d,h,E)=>{if(!c)return i({label:l,enabled:c,run:()=>{}});const g=f=>()=>{this._configurationService.updateValue(d,f)},m=[];for(const f of E)m.push(i({label:f.label,checked:h===f.value,run:g(f.value)}));return r(l,m)},o=[];o.push(i({label:v("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),o.push(new pr),o.push(i({label:v("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),o.push(a(v("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:v("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:v("context.minimap.size.fill","Fill"),value:"fill"},{label:v("context.minimap.size.fit","Fit"),value:"fit"}])),o.push(a(v("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:v("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:v("context.minimap.slider.always","Always"),value:"always"}]));const s=this._editor.getOption(125)&&!Fl;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>o,onHide:l=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};ov.ID="editor.contrib.contextmenu";ov=mmt([Pm(1,Qs),Pm(2,f4),Pm(3,Et),Pm(4,on),Pm(5,L1),Pm(6,nu),Pm(7,k3)],ov);class fmt extends je{constructor(){super({id:"editor.action.showContextMenu",label:v("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:K.textInputFocus,primary:1092,weight:100}})}run(e,t){var n;(n=ov.get(t))===null||n===void 0||n.showContextMenu()}}Eu(ov.ID,ov,2);be(fmt);class rV{constructor(e){this.selections=e}equals(e){const t=this.selections.length,n=e.selections.length;if(t!==n)return!1;for(let i=0;i{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const n=new rV(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(n)||(this._undoStack.push(new aV(n,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new aV(new rV(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new aV(new rV(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}P3.ID="editor.contrib.cursorUndoRedoController";class pmt extends je{constructor(){super({id:"cursorUndo",label:v("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:K.textInputFocus,primary:2099,weight:100}})}run(e,t,n){var i;(i=P3.get(t))===null||i===void 0||i.cursorUndo()}}class Dmt extends je{constructor(){super({id:"cursorRedo",label:v("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,n){var i;(i=P3.get(t))===null||i===void 0||i.cursorRedo()}}Eu(P3.ID,P3,0);be(pmt);be(Dmt);class xmt{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){const n=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new O(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new Ze(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new Ze(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(34)||this._editor.getOption(21)||(dD(e)&&(this._modifierPressed=!0),this._mouseDown&&dD(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(34)||this._editor.getOption(21)||(dD(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Vh.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const i=(this._editor.getSelections()||[]).filter(r=>t.position&&r.containsPosition(t.position));if(i.length===1)this._dragSelection=i[0];else return}dD(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new ue(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let n=null;if(e.event.shiftKey){const i=this._editor.getSelection();if(i){const{selectionStartLineNumber:r,selectionStartColumn:a}=i;n=[new Ze(r,a,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map(i=>i.containsPosition(t)?new Ze(t.lineNumber,t.column,t.lineNumber,t.column):i);this._editor.setSelections(n||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(dD(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Vh.ID,new xmt(this._dragSelection,t,dD(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new O(e.lineNumber,e.column,e.lineNumber,e.column),options:Vh._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Vh.ID="editor.contrib.dragAndDrop";Vh.TRIGGER_KEY_VALUE=Yt?6:5;Vh._DECORATION_OPTIONS=gt.register({description:"dnd-target",className:"dnd-target"});Eu(Vh.ID,Vh,2);const LN=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let u;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?u=crypto.getRandomValues.bind(crypto):u=function(n){for(let i=0;ikye(this,void 0,void 0,function*(){return u}),asFile:()=>{},value:typeof u=="string"?u:void 0}}function vmt(u,e,t){const n={id:LN(),name:u,uri:e,data:t};return{asString:()=>kye(this,void 0,void 0,function*(){return""}),asFile:()=>n,value:void 0}}class yye{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return Jt.some(this,([n,i])=>i.asFile())&&t.push("files"),Fye(gw(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const n of t)yield[e,n]}toKey(e){return gw(e)}}function gw(u){return u.toLowerCase()}function Cmt(u,e){return Fye(gw(u),e.map(gw))}function Fye(u,e){if(u==="*/*")return e.length>0;if(e.includes(u))return!0;const t=u.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[n,i,r]=t;return r==="*"?e.some(a=>a.startsWith(i+"/")):!1}const MN=Object.freeze({create:u=>Cg(u.map(e=>e.toString())).join(`\r `),split:u=>u.split(`\r `),parse:u=>MN.split(u).filter(e=>!e.startsWith("#"))}),ile={EDITORS:"CodeEditors",FILES:"CodeFiles"};class bmt{}const kmt={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Xn.add(kmt.DragAndDropContribution,new bmt);class V2{constructor(){}static getInstance(){return V2.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}V2.INSTANCE=new V2;var ymt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};function Aye(u){const e=new yye;for(const t of u.items){const n=t.type;if(t.kind==="string"){const i=new Promise(r=>t.getAsString(r));e.append(n,pee(i))}else if(t.kind==="file"){const i=t.getAsFile();i&&e.append(n,Fmt(i))}}return e}function Fmt(u){const e=u.path?lt.parse(u.path):void 0;return vmt(u.name,e,()=>ymt(this,void 0,void 0,function*(){return new Uint8Array(yield u.arrayBuffer())}))}const Amt=Object.freeze([ile.EDITORS,ile.FILES,f2.RESOURCES,f2.INTERNAL_URI_LIST]);function _ye(u,e=!1){const t=Aye(u),n=t.get(f2.INTERNAL_URI_LIST);if(n)t.replace(Ti.uriList,n);else if(e||!t.has(Ti.uriList)){const i=[];for(const r of u.items){const a=r.getAsFile();if(a){const o=a.path;try{o?i.push(lt.file(o).toString()):i.push(lt.parse(a.name,!0).toString())}catch{}}}i.length&&t.replace(Ti.uriList,pee(MN.create(i)))}for(const i of Amt)t.delete(i);return t}function _mt(u,e,t){var n,i;return{edits:[...e.map(r=>new jh(u,typeof t.insertText=="string"?{range:r,text:t.insertText,insertAsSnippet:!1}:{range:r,text:t.insertText.snippet,insertAsSnippet:!0})),...(i=(n=t.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&i!==void 0?i:[]]}}var Smt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},Bmt=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},wmt=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const zmt=gt.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:ove,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class TN extends ie{constructor(e,t,n,i,r){super(),this.typeId=e,this.editor=t,this.range=n,this.delegate=r,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(i),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=ve(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=ve("span.icon");this.domNode.append(t),t.classList.add(...et.asClassNameArray(Ae.loading),"codicon-modifier-spin");const n=()=>{const i=this.editor.getOption(65);this.domNode.style.height=`${i}px`,this.domNode.style.width=`${Math.ceil(.8*i)}px`};n(),this._register(this.editor.onDidChangeConfiguration(i=>{(i.hasChanged(51)||i.hasChanged(65))&&n()})),this._register(ce(this.domNode,Me.CLICK,i=>{this.delegate.cancel()}))}getId(){return TN.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}TN.baseId="editor.widget.inlineProgressWidget";let mw=class extends ie{constructor(e,t,n){super(),this.id=e,this._editor=t,this._instantiationService=n,this._showDelay=500,this._showPromise=this._register(new Qr),this._currentWidget=new Qr,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}showWhile(e,t,n){return wmt(this,void 0,void 0,function*(){const i=this._operationIdPool++;this._currentOperation=i,this.clear(),this._showPromise.value=_g(()=>{const r=O.fromPositions(e);this._currentDecorations.set([{range:r,options:zmt}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(TN,this.id,this._editor,r,t,n))},this._showDelay);try{return yield n}finally{this._currentOperation===i&&(this.clear(),this._currentOperation=void 0)}})}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};mw=Smt([Bmt(2,mt)],mw);var Sye=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},uk=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},rle=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};let fw=class Bye extends ie{constructor(e,t,n,i,r,a,o,s,l,c){super(),this.typeId=e,this.editor=t,this.showCommand=i,this.range=r,this.edits=a,this.onSelectNewEdit=o,this._contextMenuService=s,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=n.bindTo(l),this.visibleContext.set(!0),this._register(bt(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(bt(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(d=>{r.containsPosition(d.position)||this.dispose()})),this._register(Ke.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;const t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=ve(".post-edit-widget"),this.button=this._register(new DG(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(ce(this.domNode,Me.CLICK,()=>this.showSelector()))}getId(){return Bye.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=mi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>Ux({id:"",label:e.label,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};fw.baseId="editor.widget.postEditWidget";fw=Sye([uk(7,Qs),uk(8,Et),uk(9,on)],fw);let pw=class extends ie{constructor(e,t,n,i,r,a){super(),this._id=e,this._editor=t,this._visibleContext=n,this._showCommand=i,this._instantiationService=r,this._bulkEditService=a,this._currentWidget=this._register(new Qr),this._register(Ke.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}applyEditAndShowIfNeeded(e,t,n,i){var r,a;return rle(this,void 0,void 0,function*(){const o=this._editor.getModel();if(!o||!e.length)return;const s=t.allEdits[t.activeEditIndex];if(!s)return;let l=[];(typeof s.insertText=="string"?s.insertText==="":s.insertText.snippet==="")?l=[]:l=e.map(f=>new jh(o.uri,typeof s.insertText=="string"?{range:f,text:s.insertText,insertAsSnippet:!1}:{range:f,text:s.insertText.snippet,insertAsSnippet:!0}));const d={edits:[...l,...(a=(r=s.additionalEdit)===null||r===void 0?void 0:r.edits)!==null&&a!==void 0?a:[]]},h=e[0],E=o.deltaDecorations([],[{range:h,options:{description:"paste-line-suffix",stickiness:0}}]);let g,m;try{g=yield this._bulkEditService.apply(d,{editor:this._editor,token:i}),m=o.getDecorationRange(E[0])}finally{o.deltaDecorations(E,[])}n&&g.isApplied&&t.allEdits.length>1&&this.show(m??h,t,f=>rle(this,void 0,void 0,function*(){const p=this._editor.getModel();p&&(yield p.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:f,allEdits:t.allEdits},n,i))}))})}show(e,t,n){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(fw,this._id,this._editor,this._visibleContext,this._showCommand,e,t,n))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};pw=Sye([uk(4,mt),uk(5,YF)],pw);var Lmt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},hD=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},P4=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const wye="editor.changePasteType",zye=new Ne("pasteWidgetVisible",!1,v("pasteWidgetVisible","Whether the paste widget is showing")),oV="application/vnd.code.copyMetadata";let N3=class Lye extends ie{static get(e){return e.getContribution(Lye.ID)}constructor(e,t,n,i,r,a,o){super(),this._bulkEditService=n,this._clipboardService=i,this._languageFeaturesService=r,this._quickInputService=a,this._progressService=o,this._editor=e;const s=e.getContainerDomNode();this._register(ce(s,"copy",l=>this.handleCopy(l))),this._register(ce(s,"cut",l=>this.handleCopy(l))),this._register(ce(s,"paste",l=>this.handlePaste(l),!0)),this._pasteProgressManager=this._register(new mw("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(pw,"pasteIntoEditor",e,zye,{id:wye,label:v("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferredId:e},document.execCommand("paste")}finally{this._pasteAsActionContext=void 0}}isPasteAsEnabled(){return this._editor.getOption(83).enabled&&!this._editor.getOption(89)}handleCopy(e){var t,n;if(!this._editor.hasTextFocus()||(em&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;const i=this._editor.getModel(),r=this._editor.getSelections();if(!i||!(r!=null&&r.length))return;const a=this._editor.getOption(36);let o=r;const s=r.length===1&&r[0].isEmpty();if(s){if(!a)return;o=[new O(o[0].startLineNumber,1,o[0].startLineNumber,1+i.getLineLength(o[0].startLineNumber))]}const l=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(r,a,Yr),d={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:s,mode:null},h=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(p=>!!p.prepareDocumentPaste);if(!h.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:d});return}const E=Aye(e.clipboardData),g=h.flatMap(p=>{var D;return(D=p.copyMimeTypes)!==null&&D!==void 0?D:[]}),m=LN();this.setCopyMetadata(e.clipboardData,{id:m,providerCopyMimeTypes:g,defaultPastePayload:d});const f=$i(p=>P4(this,void 0,void 0,function*(){const D=c1(yield Promise.all(h.map(x=>P4(this,void 0,void 0,function*(){try{return yield x.prepareDocumentPaste(i,o,E,p)}catch(b){console.error(b);return}}))));D.reverse();for(const x of D)for(const[b,k]of x)E.replace(b,k);return E}));(n=this._currentCopyOperation)===null||n===void 0||n.dataTransferPromise.cancel(),this._currentCopyOperation={handle:m,dataTransferPromise:f}}handlePaste(e){var t,n;return P4(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=this._currentPasteOperation)===null||t===void 0||t.cancel(),this._currentPasteOperation=void 0;const i=this._editor.getModel(),r=this._editor.getSelections();if(!(r!=null&&r.length)||!i||!this.isPasteAsEnabled())return;const a=this.fetchCopyMetadata(e),o=_ye(e.clipboardData);o.delete(oV);const s=[...e.clipboardData.types,...(n=a==null?void 0:a.providerCopyMimeTypes)!==null&&n!==void 0?n:[],Ti.uriList],l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(c=>{var d;return(d=c.pasteMimeTypes)===null||d===void 0?void 0:d.some(h=>Cmt(h,s))});l.length&&(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferredId,l,r,o,a):this.doPasteInline(l,r,o,a))})}doPasteInline(e,t,n,i){const r=$i(a=>P4(this,void 0,void 0,function*(){const o=this._editor;if(!o.hasModel())return;const s=o.getModel(),l=new Ng(o,3,void 0,a);try{if(yield this.mergeInDataFromCopy(n,i,l.token),l.token.isCancellationRequested)return;const c=e.filter(h=>ale(h,n));if(!c.length||c.length===1&&c[0].id==="text"){yield this.applyDefaultPasteHandler(n,i,l.token);return}const d=yield this.getPasteEdits(c,n,s,t,l.token);if(l.token.isCancellationRequested)return;if(d.length===1&&d[0].id==="text"){yield this.applyDefaultPasteHandler(n,i,l.token);return}if(d.length){const h=o.getOption(83).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:d},h,l.token)}yield this.applyDefaultPasteHandler(n,i,l.token)}finally{l.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),v("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),r),this._currentPasteOperation=r}showPasteAsPick(e,t,n,i,r){const a=$i(o=>P4(this,void 0,void 0,function*(){const s=this._editor;if(!s.hasModel())return;const l=s.getModel(),c=new Ng(s,3,void 0,o);try{if(yield this.mergeInDataFromCopy(i,r,c.token),c.token.isCancellationRequested)return;const d=t.filter(m=>ale(m,i)),h=yield this.getPasteEdits(d,i,l,n,c.token);if(c.token.isCancellationRequested||!h.length)return;let E;if(typeof e=="string")E=h.find(m=>m.id===e);else{const m=yield this._quickInputService.pick(h.map(f=>({label:f.label,description:f.id,detail:f.detail,edit:f})),{placeHolder:v("pasteAsPickerPlaceholder","Select Paste Action")});E=m==null?void 0:m.edit}if(!E)return;const g=_mt(l.uri,n,E);yield this._bulkEditService.apply(g,{editor:this._editor})}finally{c.dispose(),this._currentPasteOperation===a&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:v("pasteAsProgress","Running paste handlers")},()=>a)}setCopyMetadata(e,t){e.setData(oV,JSON.stringify(t))}fetchCopyMetadata(e){if(!e.clipboardData)return;const t=e.clipboardData.getData(oV);if(t)try{return JSON.parse(t)}catch{return}const[n,i]=sW.getTextData(e.clipboardData);if(i)return{defaultPastePayload:{mode:i.mode,multicursorText:y5e(i.multicursorText),pasteOnNewLine:!!i.isFromEmptySelection}}}mergeInDataFromCopy(e,t,n){var i;return P4(this,void 0,void 0,function*(){if(t!=null&&t.id&&((i=this._currentCopyOperation)===null||i===void 0?void 0:i.handle)===t.id){const r=yield this._currentCopyOperation.dataTransferPromise;if(n.isCancellationRequested)return;for(const[a,o]of r)e.replace(a,o)}if(!e.has(Ti.uriList)){const r=yield this._clipboardService.readResources();if(n.isCancellationRequested)return;r.length&&e.append(Ti.uriList,pee(MN.create(r)))}})}getPasteEdits(e,t,n,i,r){return P4(this,void 0,void 0,function*(){const a=yield CP(Promise.all(e.map(o=>{var s;try{return(s=o.provideDocumentPasteEdits)===null||s===void 0?void 0:s.call(o,n,i,t,r)}catch(l){console.error(l);return}})).then(c1),r);return a==null||a.sort((o,s)=>s.priority-o.priority),a??[]})}applyDefaultPasteHandler(e,t,n){var i,r,a;return P4(this,void 0,void 0,function*(){const o=(i=e.get(Ti.text))!==null&&i!==void 0?i:e.get("text");if(!o)return;const s=yield o.asString();if(n.isCancellationRequested)return;const l={text:s,pasteOnNewLine:(r=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&r!==void 0?r:!1,multicursorText:(a=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&a!==void 0?a:null,mode:null};this._editor.trigger("keyboard","paste",l)})}};N3.ID="editor.contrib.copyPasteActionController";N3=Lmt([hD(1,mt),hD(2,YF),hD(3,td),hD(4,$e),hD(5,ud),hD(6,ebe)],N3);function ale(u,e){var t;return!!(!((t=u.pasteMimeTypes)===null||t===void 0)&&t.some(n=>e.matches(n)))}var Dee=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},H2=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},sv=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const xee=v("builtIn","Built-in");class vee{provideDocumentPasteEdits(e,t,n,i){return sv(this,void 0,void 0,function*(){const r=yield this.getEdit(n,i);return r?{id:this.id,insertText:r.insertText,label:r.label,detail:r.detail,priority:r.priority}:void 0})}provideDocumentOnDropEdits(e,t,n,i){return sv(this,void 0,void 0,function*(){const r=yield this.getEdit(n,i);return r?{id:this.id,insertText:r.insertText,label:r.label,priority:r.priority}:void 0})}}class Mye extends vee{constructor(){super(...arguments),this.id="text",this.dropMimeTypes=[Ti.text],this.pasteMimeTypes=[Ti.text]}getEdit(e,t){return sv(this,void 0,void 0,function*(){const n=e.get(Ti.text);if(!n||e.has(Ti.uriList))return;const i=yield n.asString();return{id:this.id,priority:0,label:v("text.label","Insert Plain Text"),detail:xee,insertText:i}})}}class Tye extends vee{constructor(){super(...arguments),this.id="uri",this.dropMimeTypes=[Ti.uriList],this.pasteMimeTypes=[Ti.uriList]}getEdit(e,t){return sv(this,void 0,void 0,function*(){const n=yield Pye(e);if(!n.length||t.isCancellationRequested)return;let i=0;const r=n.map(({uri:o,originalText:s})=>o.scheme===It.file?o.fsPath:(i++,s)).join(" ");let a;return i>0?a=n.length>1?v("defaultDropProvider.uriList.uris","Insert Uris"):v("defaultDropProvider.uriList.uri","Insert Uri"):a=n.length>1?v("defaultDropProvider.uriList.paths","Insert Paths"):v("defaultDropProvider.uriList.path","Insert Path"),{id:this.id,priority:0,insertText:r,label:a,detail:xee}})}}let Dw=class extends vee{constructor(e){super(),this._workspaceContextService=e,this.id="relativePath",this.dropMimeTypes=[Ti.uriList],this.pasteMimeTypes=[Ti.uriList]}getEdit(e,t){return sv(this,void 0,void 0,function*(){const n=yield Pye(e);if(!n.length||t.isCancellationRequested)return;const i=c1(n.map(({uri:r})=>{const a=this._workspaceContextService.getWorkspaceFolder(r);return a?Xnt(a.uri,r):void 0}));if(i.length)return{id:this.id,priority:0,insertText:i.join(" "),label:n.length>1?v("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):v("defaultDropProvider.uriList.relativePath","Insert Relative Path"),detail:xee}})}};Dw=Dee([H2(0,k3)],Dw);function Pye(u){return sv(this,void 0,void 0,function*(){const e=u.get(Ti.uriList);if(!e)return[];const t=yield e.asString(),n=[];for(const i of MN.parse(t))try{n.push({uri:lt.parse(i),originalText:i})}catch{}return n})}let wU=class extends ie{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new Mye)),this._register(e.documentOnDropEditProvider.register("*",new Tye)),this._register(e.documentOnDropEditProvider.register("*",new Dw(t)))}};wU=Dee([H2(0,$e),H2(1,k3)],wU);let zU=class extends ie{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Mye)),this._register(e.documentPasteEditProvider.register("*",new Tye)),this._register(e.documentPasteEditProvider.register("*",new Dw(t)))}};zU=Dee([H2(0,$e),H2(1,k3)],zU);Eu(N3.ID,N3,0);cN(zU);Be(new class extends Dr{constructor(){super({id:wye,precondition:zye,kbOpts:{weight:100,primary:2137}})}runEditorCommand(u,e,t){var n;return(n=N3.get(e))===null||n===void 0?void 0:n.changePasteType()}});be(class extends je{constructor(){super({id:"editor.action.pasteAs",label:v("pasteAs","Paste As..."),alias:"Paste As...",precondition:void 0,description:{description:"Paste as",args:[{name:"args",schema:{type:"object",properties:{id:{type:"string",description:v("pasteAs.id","The id of the paste edit to try applying. If not provided, the editor will show a picker.")}}}}]}})}run(u,e,t){var n;const i=typeof(t==null?void 0:t.id)=="string"?t.id:void 0;return(n=N3.get(e))===null||n===void 0?void 0:n.pasteAs(i)}});class Mmt{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class ole{constructor(e){this.identifier=e}}const Nye=Gt("treeViewsDndService");iu(Nye,Mmt,1);var Tmt=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},sV=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},m7=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const Rye="editor.changeDropType",Iye=new Ne("dropWidgetVisible",!1,v("dropWidgetVisible","Whether the drop widget is showing"));let lv=class Oye extends ie{static get(e){return e.getContribution(Oye.ID)}constructor(e,t,n,i){super(),this._languageFeaturesService=n,this._treeViewsDragAndDropService=i,this.treeItemsTransfer=V2.getInstance(),this._dropProgressManager=this._register(t.createInstance(mw,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(pw,"dropIntoEditor",e,Iye,{id:Rye,label:v("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event)))}changeDropType(){this._postDropWidgetManager.tryShowSelector()}onDropIntoEditor(e,t,n){var i;return m7(this,void 0,void 0,function*(){if(!n.dataTransfer||!e.hasModel())return;(i=this._currentOperation)===null||i===void 0||i.cancel(),e.focus(),e.setPosition(t);const r=$i(a=>m7(this,void 0,void 0,function*(){const o=new Ng(e,1,void 0,a);try{const s=yield this.extractDataTransferData(n);if(s.size===0||o.token.isCancellationRequested)return;const l=e.getModel();if(!l)return;const c=this._languageFeaturesService.documentOnDropEditProvider.ordered(l).filter(h=>h.dropMimeTypes?h.dropMimeTypes.some(E=>s.matches(E)):!0),d=yield this.getDropEdits(c,l,t,s,o);if(o.token.isCancellationRequested)return;if(d.length){const h=e.getOption(35).showDropSelector==="afterDrop";yield this._postDropWidgetManager.applyEditAndShowIfNeeded([O.fromPositions(t)],{activeEditIndex:0,allEdits:d},h,a)}}finally{o.dispose(),this._currentOperation===r&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,v("dropIntoEditorProgress","Running drop handlers. Click to cancel"),r),this._currentOperation=r})}getDropEdits(e,t,n,i,r){return m7(this,void 0,void 0,function*(){const a=yield CP(Promise.all(e.map(s=>s.provideDocumentOnDropEdits(t,n,i,r.token))),r.token),o=c1(a??[]);return o.sort((s,l)=>l.priority-s.priority),o})}extractDataTransferData(e){return m7(this,void 0,void 0,function*(){if(!e.dataTransfer)return new yye;const t=_ye(e.dataTransfer);if(this.treeItemsTransfer.hasData(ole.prototype)){const n=this.treeItemsTransfer.getData(ole.prototype);if(Array.isArray(n))for(const i of n){const r=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(r)for(const[a,o]of r)t.replace(a,o)}}return t})}};lv.ID="editor.contrib.dropIntoEditorController";lv=Tmt([sV(1,mt),sV(2,$e),sV(3,Nye)],lv);Eu(lv.ID,lv,2);Be(new class extends Dr{constructor(){super({id:Rye,precondition:Iye,kbOpts:{weight:100,primary:2137}})}runEditorCommand(u,e,t){var n;(n=lv.get(e))===null||n===void 0||n.changeDropType()}});cN(wU);class pa{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(i.changeDecorationOptions(this._highlightedDecorationId,pa._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,i.changeDecorationOptions(this._highlightedDecorationId,pa._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let r=this._editor.getModel().getDecorationRange(t);if(r.startLineNumber!==r.endLineNumber&&r.endColumn===1){const a=r.endLineNumber-1,o=this._editor.getModel().getLineMaxColumn(a);r=new O(r.startLineNumber,r.startColumn,a,o)}this._rangeHighlightDecorationId=i.addDecoration(r,pa._RANGE_HIGHLIGHT_DECORATION)}}),n}set(e,t){this._editor.changeDecorations(n=>{let i=pa._FIND_MATCH_DECORATION;const r=[];if(e.length>1e3){i=pa._FIND_MATCH_NO_OVERVIEW_DECORATION;const o=this._editor.getModel().getLineCount(),l=this._editor.getLayoutInfo().height/o,c=Math.max(2,Math.ceil(3/l));let d=e[0].range.startLineNumber,h=e[0].range.endLineNumber;for(let E=1,g=e.length;E=m.startLineNumber?m.endLineNumber>h&&(h=m.endLineNumber):(r.push({range:new O(d,1,h,1),options:pa._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),d=m.startLineNumber,h=m.endLineNumber)}r.push({range:new O(d,1,h,1),options:pa._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const a=new Array(e.length);for(let o=0,s=e.length;on.removeDecoration(o)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(o=>n.addDecoration(o,pa._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(!(!i||i.endLineNumber>e.lineNumber)){if(i.endLineNumbere.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,n=this._decorations.length;te.lineNumber)return r;if(!(r.startColumn0){const n=[];for(let a=0;aO.compareRangesUsingStarts(a.range,o.range));const i=[];let r=n[0];for(let a=1;a0?e[0].toUpperCase()+e.substr(1):u[0][0].toUpperCase()!==u[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function sle(u,e,t){return u[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&u[0].split(t).length===e.split(t).length}function lle(u,e,t){const n=e.split(t),i=u[0].split(t);let r="";return n.forEach((a,o)=>{r+=jye([i[o]],a)+t}),r.slice(0,-1)}class cle{constructor(e){this.staticValue=e,this.kind=0}}class Nmt{constructor(e){this.pieces=e,this.kind=1}}class cv{static fromStaticValue(e){return new cv([t3.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new cle(""):e.length===1&&e[0].staticValue!==null?this._state=new cle(e[0].staticValue):this._state=new Nmt(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?jye(e,this._state.staticValue):this._state.staticValue;let n="";for(let i=0,r=this._state.pieces.length;i0){const s=[],l=a.caseOps.length;let c=0;for(let d=0,h=o.length;d=l){s.push(o.slice(d));break}switch(a.caseOps[c]){case"U":s.push(o[d].toUpperCase());break;case"u":s.push(o[d].toUpperCase()),c++;break;case"L":s.push(o[d].toLowerCase());break;case"l":s.push(o[d].toLowerCase()),c++;break;default:s.push(o[d])}}o=s.join("")}n+=o}return n}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let n="";for(;e>0;){if(e=i)break;const a=u.charCodeAt(n);switch(a){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic(` @@ -828,7 +828,7 @@ Error generating stack: `+r.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pa=typeof Symbol=="function"&&Symbol.for,Qte=Pa?Symbol.for("react.element"):60103,Xte=Pa?Symbol.for("react.portal"):60106,MR=Pa?Symbol.for("react.fragment"):60107,TR=Pa?Symbol.for("react.strict_mode"):60108,PR=Pa?Symbol.for("react.profiler"):60114,NR=Pa?Symbol.for("react.provider"):60109,RR=Pa?Symbol.for("react.context"):60110,eue=Pa?Symbol.for("react.async_mode"):60111,IR=Pa?Symbol.for("react.concurrent_mode"):60111,OR=Pa?Symbol.for("react.forward_ref"):60112,jR=Pa?Symbol.for("react.suspense"):60113,vkt=Pa?Symbol.for("react.suspense_list"):60120,VR=Pa?Symbol.for("react.memo"):60115,HR=Pa?Symbol.for("react.lazy"):60116,Ckt=Pa?Symbol.for("react.block"):60121,bkt=Pa?Symbol.for("react.fundamental"):60117,kkt=Pa?Symbol.for("react.responder"):60118,ykt=Pa?Symbol.for("react.scope"):60119;function H0(u){if(typeof u=="object"&&u!==null){var e=u.$$typeof;switch(e){case Qte:switch(u=u.type,u){case eue:case IR:case MR:case PR:case TR:case jR:return u;default:switch(u=u&&u.$$typeof,u){case RR:case OR:case HR:case VR:case NR:return u;default:return e}}case Xte:return e}}}function H7e(u){return H0(u)===IR}ti.AsyncMode=eue;ti.ConcurrentMode=IR;ti.ContextConsumer=RR;ti.ContextProvider=NR;ti.Element=Qte;ti.ForwardRef=OR;ti.Fragment=MR;ti.Lazy=HR;ti.Memo=VR;ti.Portal=Xte;ti.Profiler=PR;ti.StrictMode=TR;ti.Suspense=jR;ti.isAsyncMode=function(u){return H7e(u)||H0(u)===eue};ti.isConcurrentMode=H7e;ti.isContextConsumer=function(u){return H0(u)===RR};ti.isContextProvider=function(u){return H0(u)===NR};ti.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===Qte};ti.isForwardRef=function(u){return H0(u)===OR};ti.isFragment=function(u){return H0(u)===MR};ti.isLazy=function(u){return H0(u)===HR};ti.isMemo=function(u){return H0(u)===VR};ti.isPortal=function(u){return H0(u)===Xte};ti.isProfiler=function(u){return H0(u)===PR};ti.isStrictMode=function(u){return H0(u)===TR};ti.isSuspense=function(u){return H0(u)===jR};ti.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===MR||u===IR||u===PR||u===TR||u===jR||u===vkt||typeof u=="object"&&u!==null&&(u.$$typeof===HR||u.$$typeof===VR||u.$$typeof===NR||u.$$typeof===RR||u.$$typeof===OR||u.$$typeof===bkt||u.$$typeof===kkt||u.$$typeof===ykt||u.$$typeof===Ckt)};ti.typeOf=H0;V7e.exports=ti;var Fkt=V7e.exports,$7e=Fkt,Akt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_kt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K7e={};K7e[$7e.ForwardRef]=Akt;K7e[$7e.Memo]=_kt;var Skt=!0;function Bkt(u,e,t){var n="";return t.split(" ").forEach(function(i){u[i]!==void 0?e.push(u[i]+";"):n+=i+" "}),n}var wkt=function(e,t,n){var i=e.key+"-"+t.name;(n===!1||Skt===!1)&&e.registered[i]===void 0&&(e.registered[i]=t.styles)},W7e=function(e,t,n){wkt(e,t,n);var i=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var r=t;do e.insert(t===r?"."+i:"",r,e.sheet,!0),r=r.next;while(r!==void 0)}};function zkt(u){for(var e=0,t,n=0,i=u.length;i>=4;++n,i-=4)t=u.charCodeAt(n)&255|(u.charCodeAt(++n)&255)<<8|(u.charCodeAt(++n)&255)<<16|(u.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(u.charCodeAt(n+2)&255)<<16;case 2:e^=(u.charCodeAt(n+1)&255)<<8;case 1:e^=u.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Lkt={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,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},Mkt=/[A-Z]|^ms/g,Tkt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G7e=function(e){return e.charCodeAt(1)===45},Bde=function(e){return e!=null&&typeof e!="boolean"},eH=hkt(function(u){return G7e(u)?u:u.replace(Mkt,"-$&").toLowerCase()}),wde=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Tkt,function(n,i,r){return wd={name:i,styles:r,next:wd},i})}return Lkt[e]!==1&&!G7e(e)&&typeof t=="number"&&t!==0?t+"px":t};function Sy(u,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return wd={name:t.name,styles:t.styles,next:wd},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)wd={name:n.name,styles:n.styles,next:wd},n=n.next;var i=t.styles+";";return i}return Pkt(u,e,t)}case"function":{if(u!==void 0){var r=wd,a=t(u);return wd=r,Sy(u,e,a)}break}}if(e==null)return t;var o=e[t];return o!==void 0?o:t}function Pkt(u,e,t){var n="";if(Array.isArray(t))for(var i=0;ie in u?Hkt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Ukt=(u,e)=>{for(var t in e||(e={}))Wkt.call(e,t)&&Tde(u,t,e[t]);if(Mde)for(var t of Mde(e))Gkt.call(e,t)&&Tde(u,t,e[t]);return u},qkt=(u,e)=>$kt(u,Kkt(e));function Jkt({theme:u}){return M.createElement(yA,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:u.colorScheme==="dark"?"dark":"light"},body:qkt(Ukt({},u.fn.fontStyles()),{backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,lineHeight:u.lineHeight,fontSize:u.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function y6(u,e,t,n=W){Object.keys(e).forEach(i=>{u[`--mantine-${t}-${i}`]=n(e[i])})}function Zkt({theme:u}){const e={"--mantine-color-white":u.white,"--mantine-color-black":u.black,"--mantine-transition-timing-function":u.transitionTimingFunction,"--mantine-line-height":`${u.lineHeight}`,"--mantine-font-family":u.fontFamily,"--mantine-font-family-monospace":u.fontFamilyMonospace,"--mantine-font-family-headings":u.headings.fontFamily,"--mantine-heading-font-weight":`${u.headings.fontWeight}`};y6(e,u.shadows,"shadow"),y6(e,u.fontSizes,"font-size"),y6(e,u.radius,"radius"),y6(e,u.spacing,"spacing"),y6(e,u.breakpoints,"breakpoints",yl),Object.keys(u.colors).forEach(n=>{u.colors[n].forEach((i,r)=>{e[`--mantine-color-${n}-${r}`]=i})});const t=u.headings.sizes;return Object.keys(t).forEach(n=>{e[`--mantine-${n}-font-size`]=t[n].fontSize,e[`--mantine-${n}-line-height`]=`${t[n].lineHeight}`}),M.createElement(yA,{styles:{":root":e}})}var Ykt=Object.defineProperty,Qkt=Object.defineProperties,Xkt=Object.getOwnPropertyDescriptors,Pde=Object.getOwnPropertySymbols,e2t=Object.prototype.hasOwnProperty,t2t=Object.prototype.propertyIsEnumerable,Nde=(u,e,t)=>e in u?Ykt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gd=(u,e)=>{for(var t in e||(e={}))e2t.call(e,t)&&Nde(u,t,e[t]);if(Pde)for(var t of Pde(e))t2t.call(e,t)&&Nde(u,t,e[t]);return u},tH=(u,e)=>Qkt(u,Xkt(e));function u2t(u,e){var t;if(!e)return u;const n=Object.keys(u).reduce((i,r)=>{if(r==="headings"&&e.headings){const a=e.headings.sizes?Object.keys(u.headings.sizes).reduce((o,s)=>(o[s]=gd(gd({},u.headings.sizes[s]),e.headings.sizes[s]),o),{}):u.headings.sizes;return tH(gd({},i),{headings:tH(gd(gd({},u.headings),e.headings),{sizes:a})})}if(r==="breakpoints"&&e.breakpoints){const a=gd(gd({},u.breakpoints),e.breakpoints);return tH(gd({},i),{breakpoints:Object.fromEntries(Object.entries(a).sort((o,s)=>Us(o[1])-Us(s[1])))})}return i[r]=typeof e[r]=="object"?gd(gd({},u[r]),e[r]):typeof e[r]=="number"||typeof e[r]=="boolean"||typeof e[r]=="function"?e[r]:e[r]||u[r],i},{});if(e!=null&&e.fontFamily&&!((t=e==null?void 0:e.headings)!=null&&t.fontFamily)&&(n.headings.fontFamily=e.fontFamily),!(n.primaryColor in n.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return n}function n2t(u,e){return M7e(u2t(u,e))}function J7e(u){return Object.keys(u).reduce((e,t)=>(u[t]!==void 0&&(e[t]=u[t]),e),{})}const i2t={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${W(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function r2t(){return M.createElement(yA,{styles:i2t})}var a2t=Object.defineProperty,Rde=Object.getOwnPropertySymbols,o2t=Object.prototype.hasOwnProperty,s2t=Object.prototype.propertyIsEnumerable,Ide=(u,e,t)=>e in u?a2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,vk=(u,e)=>{for(var t in e||(e={}))o2t.call(e,t)&&Ide(u,t,e[t]);if(Rde)for(var t of Rde(e))s2t.call(e,t)&&Ide(u,t,e[t]);return u};const rz=C.createContext({theme:Ute});function Tr(){var u;return((u=C.useContext(rz))==null?void 0:u.theme)||Ute}function l2t(u){const e=Tr(),t=n=>{var i,r,a,o;return{styles:((i=e.components[n])==null?void 0:i.styles)||{},classNames:((r=e.components[n])==null?void 0:r.classNames)||{},variants:(a=e.components[n])==null?void 0:a.variants,sizes:(o=e.components[n])==null?void 0:o.sizes}};return Array.isArray(u)?u.map(t):[t(u)]}function Z7e(){var u;return(u=C.useContext(rz))==null?void 0:u.emotionCache}function Je(u,e,t){var n;const i=Tr(),r=(n=i.components[u])==null?void 0:n.defaultProps,a=typeof r=="function"?r(i):r;return vk(vk(vk({},e),a),J7e(t))}function uue({theme:u,emotionCache:e,withNormalizeCSS:t=!1,withGlobalStyles:n=!1,withCSSVariables:i=!1,inherit:r=!1,children:a}){const o=C.useContext(rz),s=n2t(Ute,r?vk(vk({},o.theme),u):u);return M.createElement(jkt,{theme:s},M.createElement(rz.Provider,{value:{theme:s,emotionCache:e}},t&&M.createElement(r2t,null),n&&M.createElement(Jkt,{theme:s}),i&&M.createElement(Zkt,{theme:s}),typeof s.globalStyles=="function"&&M.createElement(yA,{styles:s.globalStyles(s)}),a))}uue.displayName="@mantine/core/MantineProvider";const Y7e=C.createContext(null);function c2t(){const u=C.useContext(Y7e);if(!u)throw new Error("useMantineColorScheme hook was called outside of context, make sure your app is wrapped with ColorSchemeProvider component");return u}function Q7e({colorScheme:u,toggleColorScheme:e,children:t}){return M.createElement(Y7e.Provider,{value:{colorScheme:u,toggleColorScheme:e}},t)}Q7e.displayName="@mantine/core/ColorSchemeProvider";const d2t={app:100,modal:200,popover:300,overlay:400,max:9999};function id(u){return d2t[u]}function X7e(u){return typeof u=="number"?u:typeof u=="string"?u.includes("px")?Number(u.replace("px","")):u.includes("rem")?Number(u.replace("rem",""))*16:Number(u):NaN}function h2t(u,e){const t=C.useRef();return(!t.current||e.length!==t.current.prevDeps.length||t.current.prevDeps.map((n,i)=>n===e[i]).indexOf(!1)>=0)&&(t.current={v:u(),prevDeps:[...e]}),t.current.v}const E2t=Yte({key:"mantine",prepend:!0});function g2t(){return Z7e()||E2t}var m2t=Object.defineProperty,Ode=Object.getOwnPropertySymbols,f2t=Object.prototype.hasOwnProperty,p2t=Object.prototype.propertyIsEnumerable,jde=(u,e,t)=>e in u?m2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,D2t=(u,e)=>{for(var t in e||(e={}))f2t.call(e,t)&&jde(u,t,e[t]);if(Ode)for(var t of Ode(e))p2t.call(e,t)&&jde(u,t,e[t]);return u};const uH="ref";function x2t(u){let e;if(u.length!==1)return{args:u,ref:e};const[t]=u;if(!(t instanceof Object))return{args:u,ref:e};if(!(uH in t))return{args:u,ref:e};e=t[uH];const n=D2t({},t);return delete n[uH],{args:[n],ref:e}}const{cssFactory:v2t}=(()=>{function u(t,n,i){const r=[],a=Bkt(t,r,i);return r.length<2?i:a+n(r)}function e(t){const{cache:n}=t,i=(...a)=>{const{ref:o,args:s}=x2t(a),l=tue(s,n.registered);return W7e(n,l,!1),`${n.key}-${l.name}${o===void 0?"":` ${o}`}`};return{css:i,cx:(...a)=>u(n.registered,i,B7e(a))}}return{cssFactory:e}})();function e9e(){const u=g2t();return h2t(()=>v2t({cache:u}),[u])}function C2t({cx:u,classes:e,context:t,classNames:n,name:i,cache:r}){const a=t.reduce((o,s)=>(Object.keys(s.classNames).forEach(l=>{typeof o[l]!="string"?o[l]=`${s.classNames[l]}`:o[l]=`${o[l]} ${s.classNames[l]}`}),o),{});return Object.keys(e).reduce((o,s)=>(o[s]=u(e[s],a[s],n!=null&&n[s],Array.isArray(i)?i.filter(Boolean).map(l=>`${(r==null?void 0:r.key)||"mantine"}-${l}-${s}`).join(" "):i?`${(r==null?void 0:r.key)||"mantine"}-${i}-${s}`:null),o),{})}var b2t=Object.defineProperty,Vde=Object.getOwnPropertySymbols,k2t=Object.prototype.hasOwnProperty,y2t=Object.prototype.propertyIsEnumerable,Hde=(u,e,t)=>e in u?b2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,nH=(u,e)=>{for(var t in e||(e={}))k2t.call(e,t)&&Hde(u,t,e[t]);if(Vde)for(var t of Vde(e))y2t.call(e,t)&&Hde(u,t,e[t]);return u};function yJ(u,e){return e&&Object.keys(e).forEach(t=>{u[t]?u[t]=nH(nH({},u[t]),e[t]):u[t]=nH({},e[t])}),u}function $de(u,e,t,n){const i=r=>typeof r=="function"?r(e,t||{},n):r||{};return Array.isArray(u)?u.map(r=>i(r.styles)).reduce((r,a)=>yJ(r,a),{}):i(u)}function F2t({ctx:u,theme:e,params:t,variant:n,size:i}){return u.reduce((r,a)=>(a.variants&&n in a.variants&&yJ(r,a.variants[n](e,t,{variant:n,size:i})),a.sizes&&i in a.sizes&&yJ(r,a.sizes[i](e,t,{variant:n,size:i})),r),{})}function at(u){const e=typeof u=="function"?u:()=>u;function t(n,i){const r=Tr(),a=l2t(i==null?void 0:i.name),o=Z7e(),s={variant:i==null?void 0:i.variant,size:i==null?void 0:i.size},{css:l,cx:c}=e9e(),d=e(r,n,s),h=$de(i==null?void 0:i.styles,r,n,s),E=$de(a,r,n,s),g=F2t({ctx:a,theme:r,params:n,variant:i==null?void 0:i.variant,size:i==null?void 0:i.size}),m=Object.fromEntries(Object.keys(d).map(f=>{const p=c({[l(d[f])]:!(i!=null&&i.unstyled)},l(g[f]),l(E[f]),l(h[f]));return[f,p]}));return{classes:C2t({cx:c,classes:m,context:a,classNames:i==null?void 0:i.classNames,name:i==null?void 0:i.name,cache:o}),cx:c,theme:r}}return t}function s1(u){return`___ref-${u||""}`}function A2t({styles:u}){const e=Tr();return M.createElement(yA,{styles:q7e(typeof u=="function"?u(e):u)})}var _2t=Object.defineProperty,S2t=Object.defineProperties,B2t=Object.getOwnPropertyDescriptors,Kde=Object.getOwnPropertySymbols,w2t=Object.prototype.hasOwnProperty,z2t=Object.prototype.propertyIsEnumerable,Wde=(u,e,t)=>e in u?_2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,F6=(u,e)=>{for(var t in e||(e={}))w2t.call(e,t)&&Wde(u,t,e[t]);if(Kde)for(var t of Kde(e))z2t.call(e,t)&&Wde(u,t,e[t]);return u},A6=(u,e)=>S2t(u,B2t(e));const _6={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${W(10)})`},transitionProperty:"transform, opacity"},Q7={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(-${W(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${W(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${W(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${W(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:A6(F6({},_6),{common:{transformOrigin:"center center"}}),"pop-bottom-left":A6(F6({},_6),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":A6(F6({},_6),{common:{transformOrigin:"bottom right"}}),"pop-top-left":A6(F6({},_6),{common:{transformOrigin:"top left"}}),"pop-top-right":A6(F6({},_6),{common:{transformOrigin:"top right"}})},Gde=["mousedown","touchstart"];function L2t(u,e,t){const n=C.useRef();return C.useEffect(()=>{const i=r=>{const{target:a}=r??{};if(Array.isArray(t)){const o=(a==null?void 0:a.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(a)&&a.tagName!=="HTML";t.every(l=>!!l&&!r.composedPath().includes(l))&&!o&&u()}else n.current&&!n.current.contains(a)&&u()};return(e||Gde).forEach(r=>document.addEventListener(r,i)),()=>{(e||Gde).forEach(r=>document.removeEventListener(r,i))}},[n,u,t]),n}function M2t({timeout:u=2e3}={}){const[e,t]=C.useState(null),[n,i]=C.useState(!1),[r,a]=C.useState(null),o=c=>{clearTimeout(r),a(setTimeout(()=>i(!1),u)),i(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>o(!0)).catch(d=>t(d)):t(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),t(null),clearTimeout(r)},error:e,copied:n}}function T2t(u,e){try{return u.addEventListener("change",e),()=>u.removeEventListener("change",e)}catch{return u.addListener(e),()=>u.removeListener(e)}}function P2t(u,e){return typeof e=="boolean"?e:typeof window<"u"&&"matchMedia"in window?window.matchMedia(u).matches:!1}function FA(u,e,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){const[n,i]=C.useState(t?e:P2t(u,e)),r=C.useRef();return C.useEffect(()=>{if("matchMedia"in window)return r.current=window.matchMedia(u),i(r.current.matches),T2t(r.current,a=>i(a.matches))},[u]),n}function N2t(u,e){return FA("(prefers-color-scheme: dark)",u==="dark",e)?"dark":"light"}function hg(u,e,t){return Math.min(Math.max(u,e),t)}const $R=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Lo(u,e){const t=C.useRef(!1);C.useEffect(()=>()=>{t.current=!1},[]),C.useEffect(()=>{if(t.current)return u();t.current=!0},e)}function t9e({opened:u,shouldReturnFocus:e=!0}){const t=C.useRef(),n=()=>{var i;t.current&&"focus"in t.current&&typeof t.current.focus=="function"&&((i=t.current)==null||i.focus({preventScroll:!0}))};return Lo(()=>{let i=-1;const r=a=>{a.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",r),u?t.current=document.activeElement:e&&(i=window.setTimeout(n,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",r)}},[u,e]),n}const R2t=/input|select|textarea|button|object/,u9e="a, input, select, textarea, button, object, [tabindex]";function I2t(u){return u.style.display==="none"}function O2t(u){if(u.getAttribute("aria-hidden")||u.getAttribute("hidden")||u.getAttribute("type")==="hidden")return!1;let t=u;for(;t&&!(t===document.body||t.nodeType===11);){if(I2t(t))return!1;t=t.parentNode}return!0}function n9e(u){let e=u.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function FJ(u){const e=u.nodeName.toLowerCase(),t=!Number.isNaN(n9e(u));return(R2t.test(e)&&!u.disabled||u instanceof HTMLAnchorElement&&u.href||t)&&O2t(u)}function i9e(u){const e=n9e(u);return(Number.isNaN(e)||e>=0)&&FJ(u)}function j2t(u){return Array.from(u.querySelectorAll(u9e)).filter(i9e)}function V2t(u,e){const t=j2t(u);if(!t.length){e.preventDefault();return}const n=t[e.shiftKey?0:t.length-1],i=u.getRootNode();if(!(n===i.activeElement||u===i.activeElement))return;e.preventDefault();const a=t[e.shiftKey?t.length-1:0];a&&a.focus()}function Wh(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function H2t(u,e="body > :not(script)"){const t=Wh(),n=Array.from(document.querySelectorAll(e)).map(i=>{var r;if((r=i==null?void 0:i.shadowRoot)!=null&&r.contains(u)||i.contains(u))return;const a=i.getAttribute("aria-hidden"),o=i.getAttribute("data-hidden"),s=i.getAttribute("data-focus-id");return i.setAttribute("data-focus-id",t),a===null||a==="false"?i.setAttribute("aria-hidden","true"):!o&&!s&&i.setAttribute("data-hidden",a),{node:i,ariaHidden:o||null}});return()=>{n.forEach(i=>{!i||t!==i.node.getAttribute("data-focus-id")||(i.ariaHidden===null?i.node.removeAttribute("aria-hidden"):i.node.setAttribute("aria-hidden",i.ariaHidden),i.node.removeAttribute("data-focus-id"),i.node.removeAttribute("data-hidden"))})}}function $2t(u=!0){const e=C.useRef(),t=C.useRef(null),n=r=>{let a=r.querySelector("[data-autofocus]");if(!a){const o=Array.from(r.querySelectorAll(u9e));a=o.find(i9e)||o.find(FJ)||null,!a&&FJ(r)&&(a=r)}a&&a.focus({preventScroll:!0})},i=C.useCallback(r=>{if(u){if(r===null){t.current&&(t.current(),t.current=null);return}t.current=H2t(r),e.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&n(r)}),e.current=r):e.current=null)}},[u]);return C.useEffect(()=>{if(!u)return;e.current&&setTimeout(()=>n(e.current));const r=a=>{a.key==="Tab"&&e.current&&V2t(e.current,a)};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),t.current&&t.current()}},[u]),i}const K2t=u=>(u+1)%1e6;function W2t(){const[,u]=C.useReducer(K2t,0);return u}const G2t=M["useId".toString()]||(()=>{});function U2t(){const u=G2t();return u?`mantine-${u.replace(/:/g,"")}`:""}function Kl(u){const e=U2t(),[t,n]=C.useState(e);return $R(()=>{n(Wh())},[]),typeof u=="string"?u:typeof window>"u"?e:t}function AJ(u,e,t){C.useEffect(()=>(window.addEventListener(u,e,t),()=>window.removeEventListener(u,e,t)),[u,e])}function nue(u,e){typeof u=="function"?u(e):typeof u=="object"&&u!==null&&"current"in u&&(u.current=e)}function r9e(...u){return e=>{u.forEach(t=>nue(t,e))}}function N1(...u){return C.useCallback(r9e(...u),u)}function q2t(u,e,t="ltr"){const n=C.useRef(),i=C.useRef(!1),r=C.useRef(!1),a=C.useRef(0),[o,s]=C.useState(!1);return C.useEffect(()=>{i.current=!0},[]),C.useEffect(()=>{const l=({x:D,y:x})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(i.current&&n.current){n.current.style.userSelect="none";const b=n.current.getBoundingClientRect();if(b.width&&b.height){const k=hg((D-b.left)/b.width,0,1);u({x:t==="ltr"?k:1-k,y:hg((x-b.top)/b.height,0,1)})}}})},c=()=>{document.addEventListener("mousemove",m),document.addEventListener("mouseup",E),document.addEventListener("touchmove",p),document.addEventListener("touchend",E)},d=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",E)},h=()=>{!r.current&&i.current&&(r.current=!0,typeof(e==null?void 0:e.onScrubStart)=="function"&&e.onScrubStart(),s(!0),c())},E=()=>{r.current&&i.current&&(r.current=!1,s(!1),d(),setTimeout(()=>{typeof(e==null?void 0:e.onScrubEnd)=="function"&&e.onScrubEnd()},0))},g=D=>{h(),D.preventDefault(),m(D)},m=D=>l({x:D.clientX,y:D.clientY}),f=D=>{D.cancelable&&D.preventDefault(),h(),p(D)},p=D=>{D.cancelable&&D.preventDefault(),l({x:D.changedTouches[0].clientX,y:D.changedTouches[0].clientY})};return n.current.addEventListener("mousedown",g),n.current.addEventListener("touchstart",f,{passive:!1}),()=>{n.current&&(n.current.removeEventListener("mousedown",g),n.current.removeEventListener("touchstart",f))}},[t,u]),{ref:n,active:o}}function cs({value:u,defaultValue:e,finalValue:t,onChange:n=()=>{}}){const[i,r]=C.useState(e!==void 0?e:t),a=o=>{r(o),n==null||n(o)};return u!==void 0?[u,n,!0]:[i,a,!1]}function I4(u,e){const t=e-u+1;return Array.from({length:t},(n,i)=>i+u)}const X7="dots";function J2t({total:u,siblings:e=1,boundaries:t=1,page:n,initialPage:i=1,onChange:r}){const a=Math.max(Math.trunc(u),0),[o,s]=cs({value:n,onChange:r,defaultValue:i,finalValue:i}),l=m=>{m<=0?s(1):m>a?s(a):s(m)},c=()=>l(o+1),d=()=>l(o-1),h=()=>l(1),E=()=>l(a);return{range:C.useMemo(()=>{if(e*2+3+t*2>=a)return I4(1,a);const f=Math.max(o-e,t),p=Math.min(o+e,a-t),D=f>t+2,x=pi(l=>{const c=[...l.state,...l.queue,...s];return{state:c.slice(0,e),queue:c.slice(e)}}),update:s=>i(l=>{const c=s([...l.state,...l.queue]);return{state:c.slice(0,e),queue:c.slice(e)}}),cleanQueue:()=>i(s=>({state:s.state,queue:[]}))}}function AA(u,e){return FA("(prefers-reduced-motion: reduce)",u,e)}const Y2t=u=>u<.5?2*u*u:-1+(4-2*u)*u,Q2t=({axis:u,target:e,parent:t,alignment:n,offset:i,isList:r})=>{if(!e||!t&&typeof document>"u")return 0;const a=!!t,s=(t||document.body).getBoundingClientRect(),l=e.getBoundingClientRect(),c=d=>l[d]-s[d];if(u==="y"){const d=c("top");if(d===0)return 0;if(n==="start"){const E=d-i;return E<=l.height*(r?0:1)||!r?E:0}const h=a?s.height:window.innerHeight;if(n==="end"){const E=d+i-h+l.height;return E>=-l.height*(r?0:1)||!r?E:0}return n==="center"?d-h/2+l.height/2:0}if(u==="x"){const d=c("left");if(d===0)return 0;if(n==="start"){const E=d-i;return E<=l.width||!r?E:0}const h=a?s.width:window.innerWidth;if(n==="end"){const E=d+i-h+l.width;return E>=-l.width||!r?E:0}return n==="center"?d-h/2+l.width/2:0}return 0},X2t=({axis:u,parent:e})=>{if(!e&&typeof document>"u")return 0;const t=u==="y"?"scrollTop":"scrollLeft";if(e)return e[t];const{body:n,documentElement:i}=document;return n[t]+i[t]},eyt=({axis:u,parent:e,distance:t})=>{if(!e&&typeof document>"u")return;const n=u==="y"?"scrollTop":"scrollLeft";if(e)e[n]=t;else{const{body:i,documentElement:r}=document;i[n]=t,r[n]=t}};function a9e({duration:u=1250,axis:e="y",onScrollFinish:t,easing:n=Y2t,offset:i=0,cancelable:r=!0,isList:a=!1}={}){const o=C.useRef(0),s=C.useRef(0),l=C.useRef(!1),c=C.useRef(null),d=C.useRef(null),h=AA(),E=()=>{o.current&&cancelAnimationFrame(o.current)},g=C.useCallback(({alignment:f="start"}={})=>{var p;l.current=!1,o.current&&E();const D=(p=X2t({parent:c.current,axis:e}))!=null?p:0,x=Q2t({parent:c.current,target:d.current,axis:e,alignment:f,offset:i,isList:a})-(c.current?0:D);function b(){s.current===0&&(s.current=performance.now());const _=performance.now()-s.current,y=h||u===0?1:_/u,S=D+x*n(y);eyt({parent:c.current,axis:e,distance:S}),!l.current&&y<1?o.current=requestAnimationFrame(b):(typeof t=="function"&&t(),s.current=0,o.current=0,E())}b()},[e,u,n,a,i,t,h]),m=()=>{r&&(l.current=!0)};return AJ("wheel",m,{passive:!0}),AJ("touchmove",m,{passive:!0}),C.useEffect(()=>E,[]),{scrollableRef:c,targetRef:d,scrollIntoView:g,cancel:E}}const tyt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function uyt(){const u=C.useRef(0),e=C.useRef(null),[t,n]=C.useState(tyt),i=C.useMemo(()=>typeof window<"u"?new ResizeObserver(r=>{const a=r[0];a&&(cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{e.current&&n(a.contentRect)}))}):null,[]);return $R(()=>(e.current&&(i.observe(e.current),n(e.current.getBoundingClientRect())),()=>{i.disconnect(),u.current&&cancelAnimationFrame(u.current)}),[e.current]),[e,t]}function nyt(){const[u,{width:e,height:t}]=uyt();return{ref:u,width:e,height:t}}function Ude(){if(typeof window>"u")return"undetermined";const{userAgent:u}=window.navigator,e=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,t=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return e.test(u)?"macos":n.test(u)?"ios":t.test(u)?"windows":/Android/i.test(u)?"android":/Linux/i.test(u)?"linux":"undetermined"}function iyt(u={getValueInEffect:!0}){const[e,t]=C.useState(u.getValueInEffect?"undetermined":Ude());return $R(()=>{u.getValueInEffect&&t(Ude)},[]),e}function $n(u=!1,e){const{onOpen:t,onClose:n}=e||{},[i,r]=C.useState(u),a=C.useCallback(()=>{r(l=>l||(t==null||t(),!0))},[t]),o=C.useCallback(()=>{r(l=>l&&(n==null||n(),!1))},[n]),s=C.useCallback(()=>{i?o():a()},[o,a,i]);return[i,{open:a,close:o,toggle:s}]}const az={context:"Accordion component was not found in the tree",itemContext:"Accordion.Item component was not found in the tree",value:"Accordion.Item component was rendered with invalid value or without value"},[ryt,oz]=P1(az.context);function ayt({children:u,multiple:e,value:t,defaultValue:n,onChange:i,id:r,loop:a,transitionDuration:o,disableChevronRotation:s,chevronPosition:l,chevronSize:c,order:d,chevron:h,variant:E,radius:g,classNames:m,styles:f,unstyled:p}){const D=Kl(r),[x,b]=cs({value:t,defaultValue:n,finalValue:e?[]:null,onChange:i}),k=y=>Array.isArray(x)?x.includes(y):y===x,_=y=>{const S=Array.isArray(x)?x.includes(y)?x.filter(B=>B!==y):[...x,y]:y===x?null:y;b(S)};return M.createElement(ryt,{value:{isItemActive:k,onChange:_,getControlId:nz(`${D}-control`,az.value),getRegionId:nz(`${D}-panel`,az.value),transitionDuration:o,disableChevronRotation:s,chevronPosition:l,chevronSize:c,order:d,chevron:h,loop:a,variant:E,radius:g,classNames:m,styles:f,unstyled:p}},u)}const[oyt,o9e]=P1(az.itemContext);function syt(u,e,{radius:t}){const n=u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3],i=u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0],r=u.fn.radius(t);return e==="default"?{color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,borderBottom:`${W(1)} solid ${n}`}:e==="contained"?{border:`${W(1)} solid ${n}`,transition:"background-color 150ms ease","&[data-active]":{backgroundColor:i},"&:first-of-type":{borderTopRightRadius:r,borderTopLeftRadius:r,"& > [data-accordion-control]":{borderTopRightRadius:r,borderTopLeftRadius:r}},"&:last-of-type":{borderBottomRightRadius:r,borderBottomLeftRadius:r,"& > [data-accordion-control]":{borderBottomRightRadius:r,borderBottomLeftRadius:r}},"& + &":{borderTop:0}}:e==="filled"?{borderRadius:r,"&[data-active]":{backgroundColor:i}}:e==="separated"?{borderRadius:r,backgroundColor:i,border:`${W(1)} solid transparent`,transition:"background-color 150ms ease","& + &":{marginTop:u.spacing.md},"&[data-active]":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,borderColor:n}}:{}}var lyt=at((u,e,{variant:t})=>({item:syt(u,t,e)}));const cyt=lyt;var qde=Object.getOwnPropertySymbols,dyt=Object.prototype.hasOwnProperty,hyt=Object.prototype.propertyIsEnumerable,Eyt=(u,e)=>{var t={};for(var n in u)dyt.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&qde)for(var n of qde(u))e.indexOf(n)<0&&hyt.call(u,n)&&(t[n]=u[n]);return t};function C4(u){const e=u,{m:t,mx:n,my:i,mt:r,mb:a,ml:o,mr:s,p:l,px:c,py:d,pt:h,pb:E,pl:g,pr:m,bg:f,c:p,opacity:D,ff:x,fz:b,fw:k,lts:_,ta:y,lh:S,fs:B,tt:L,td:T,w:N,miw:F,maw:A,h:z,mih:P,mah:I,bgsz:j,bgp:V,bgr:H,bga:q,pos:J,top:Q,left:X,bottom:Y,right:le,inset:he,display:ze}=e,Ie=Eyt(e,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:J7e({m:t,mx:n,my:i,mt:r,mb:a,ml:o,mr:s,p:l,px:c,py:d,pt:h,pb:E,pl:g,pr:m,bg:f,c:p,opacity:D,ff:x,fz:b,fw:k,lts:_,ta:y,lh:S,fs:B,tt:L,td:T,w:N,miw:F,maw:A,h:z,mih:P,mah:I,bgsz:j,bgp:V,bgr:H,bga:q,pos:J,top:Q,left:X,bottom:Y,right:le,inset:he,display:ze}),rest:Ie}}function gyt(u,e){const t=Object.keys(u).filter(n=>n!=="base").sort((n,i)=>Us(Fe({size:n,sizes:e.breakpoints}))-Us(Fe({size:i,sizes:e.breakpoints})));return"base"in u?["base",...t]:t}function myt({value:u,theme:e,getValue:t,property:n}){if(u==null)return;if(typeof u=="object")return gyt(u,e).reduce((a,o)=>{if(o==="base"&&u.base!==void 0){const l=t(u.base,e);return Array.isArray(n)?(n.forEach(c=>{a[c]=l}),a):(a[n]=l,a)}const s=t(u[o],e);return Array.isArray(n)?(a[e.fn.largerThan(o)]={},n.forEach(l=>{a[e.fn.largerThan(o)][l]=s}),a):(a[e.fn.largerThan(o)]={[n]:s},a)},{});const i=t(u,e);return Array.isArray(n)?n.reduce((r,a)=>(r[a]=i,r),{}):{[n]:i}}function fyt(u,e){return u==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:e.fn.variant({variant:"filled",color:u,primaryFallback:!1}).background}function pyt(u){return W(u)}function Dyt(u){return u}function xyt(u,e){return Fe({size:u,sizes:e.fontSizes})}const vyt=["-xs","-sm","-md","-lg","-xl"];function Cyt(u,e){return vyt.includes(u)?`calc(${Fe({size:u.replace("-",""),sizes:e.spacing})} * -1)`:Fe({size:u,sizes:e.spacing})}const byt={identity:Dyt,color:fyt,size:pyt,fontSize:xyt,spacing:Cyt},kyt={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"}};var yyt=Object.defineProperty,Jde=Object.getOwnPropertySymbols,Fyt=Object.prototype.hasOwnProperty,Ayt=Object.prototype.propertyIsEnumerable,Zde=(u,e,t)=>e in u?yyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Yde=(u,e)=>{for(var t in e||(e={}))Fyt.call(e,t)&&Zde(u,t,e[t]);if(Jde)for(var t of Jde(e))Ayt.call(e,t)&&Zde(u,t,e[t]);return u};function _J(u,e,t=kyt){return Object.keys(t).reduce((i,r)=>(r in u&&u[r]!==void 0&&i.push(myt({value:u[r],getValue:byt[t[r].type],property:t[r].property,theme:e})),i),[]).reduce((i,r)=>(Object.keys(r).forEach(a=>{typeof r[a]=="object"&&r[a]!==null&&a in i?i[a]=Yde(Yde({},i[a]),r[a]):i[a]=r[a]}),i),{})}function Qde(u,e){return typeof u=="function"?u(e):u}function _yt(u,e,t){const n=Tr(),{css:i,cx:r}=e9e();return Array.isArray(u)?r(t,i(_J(e,n)),u.map(a=>i(Qde(a,n)))):r(t,i(Qde(u,n)),i(_J(e,n)))}var Syt=Object.defineProperty,sz=Object.getOwnPropertySymbols,s9e=Object.prototype.hasOwnProperty,l9e=Object.prototype.propertyIsEnumerable,Xde=(u,e,t)=>e in u?Syt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Byt=(u,e)=>{for(var t in e||(e={}))s9e.call(e,t)&&Xde(u,t,e[t]);if(sz)for(var t of sz(e))l9e.call(e,t)&&Xde(u,t,e[t]);return u},wyt=(u,e)=>{var t={};for(var n in u)s9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&sz)for(var n of sz(u))e.indexOf(n)<0&&l9e.call(u,n)&&(t[n]=u[n]);return t};const c9e=C.forwardRef((u,e)=>{var t=u,{className:n,component:i,style:r,sx:a}=t,o=wyt(t,["className","component","style","sx"]);const{systemStyles:s,rest:l}=C4(o),c=i||"div";return M.createElement(c,Byt({ref:e,className:_yt(a,s,n),style:r},l))});c9e.displayName="@mantine/core/Box";const pt=c9e;var zyt=Object.defineProperty,lz=Object.getOwnPropertySymbols,d9e=Object.prototype.hasOwnProperty,h9e=Object.prototype.propertyIsEnumerable,e1e=(u,e,t)=>e in u?zyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Lyt=(u,e)=>{for(var t in e||(e={}))d9e.call(e,t)&&e1e(u,t,e[t]);if(lz)for(var t of lz(e))h9e.call(e,t)&&e1e(u,t,e[t]);return u},Myt=(u,e)=>{var t={};for(var n in u)d9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&lz)for(var n of lz(u))e.indexOf(n)<0&&h9e.call(u,n)&&(t[n]=u[n]);return t};const Tyt={},E9e=C.forwardRef((u,e)=>{const t=Je("AccordionItem",Tyt,u),{children:n,className:i,value:r}=t,a=Myt(t,["children","className","value"]),o=oz(),{classes:s,cx:l}=cyt({radius:o.radius},{name:"Accordion",classNames:o.classNames,styles:o.styles,unstyled:o.unstyled,variant:o.variant});return M.createElement(oyt,{value:{value:r}},M.createElement(pt,Lyt({ref:e,className:l(s.item,i),"data-active":o.isItemActive(r)||void 0},a),n))});E9e.displayName="@mantine/core/AccordionItem";var Pyt=Object.defineProperty,Nyt=Object.defineProperties,Ryt=Object.getOwnPropertyDescriptors,t1e=Object.getOwnPropertySymbols,Iyt=Object.prototype.hasOwnProperty,Oyt=Object.prototype.propertyIsEnumerable,u1e=(u,e,t)=>e in u?Pyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,e9=(u,e)=>{for(var t in e||(e={}))Iyt.call(e,t)&&u1e(u,t,e[t]);if(t1e)for(var t of t1e(e))Oyt.call(e,t)&&u1e(u,t,e[t]);return u},jyt=(u,e)=>Nyt(u,Ryt(e));function Vyt(u,e){return e==="default"||e==="contained"?u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0]}):{}}var Hyt=at((u,{transitionDuration:e,chevronPosition:t,chevronSize:n},{variant:i})=>({icon:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:t==="left"?0:u.spacing.sm,marginLeft:t==="left"?u.spacing.lg:0},chevron:{display:"flex",alignItems:"center",justifyContent:"center",transition:`transform ${e}ms ease`,marginRight:t==="right"?0:u.spacing.sm,marginLeft:t==="right"?u.spacing.lg:0,width:W(n),minWidth:W(n),"&[data-rotate]":{transform:"rotate(180deg)"}},label:{color:"inherit",fontWeight:400,flex:1,overflow:"hidden",textOverflow:"ellipsis",paddingTop:u.spacing.md,paddingBottom:u.spacing.md},itemTitle:{margin:0,padding:0},control:jyt(e9(e9(e9({},u.fn.focusStyles()),u.fn.fontStyles()),Vyt(u,i)),{width:"100%",display:"flex",alignItems:"center",flexDirection:t==="right"?"row-reverse":"row",paddingRight:u.spacing.md,paddingLeft:t==="right"?`calc(${u.spacing.md} + ${W(4)})`:u.spacing.xs,textAlign:"left",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,"&:disabled":e9({opacity:.4,cursor:"not-allowed"},u.fn.hover({backgroundColor:"transparent"}))})}));const $yt=Hyt;var Kyt=Object.defineProperty,Wyt=Object.defineProperties,Gyt=Object.getOwnPropertyDescriptors,n1e=Object.getOwnPropertySymbols,Uyt=Object.prototype.hasOwnProperty,qyt=Object.prototype.propertyIsEnumerable,i1e=(u,e,t)=>e in u?Kyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,r1e=(u,e)=>{for(var t in e||(e={}))Uyt.call(e,t)&&i1e(u,t,e[t]);if(n1e)for(var t of n1e(e))qyt.call(e,t)&&i1e(u,t,e[t]);return u},Jyt=(u,e)=>Wyt(u,Gyt(e)),Zyt=at(u=>({root:Jyt(r1e(r1e({},u.fn.focusStyles()),u.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:u.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,textDecoration:"none",boxSizing:"border-box"})}));const Yyt=Zyt;var Qyt=Object.defineProperty,cz=Object.getOwnPropertySymbols,g9e=Object.prototype.hasOwnProperty,m9e=Object.prototype.propertyIsEnumerable,a1e=(u,e,t)=>e in u?Qyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Xyt=(u,e)=>{for(var t in e||(e={}))g9e.call(e,t)&&a1e(u,t,e[t]);if(cz)for(var t of cz(e))m9e.call(e,t)&&a1e(u,t,e[t]);return u},eFt=(u,e)=>{var t={};for(var n in u)g9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&cz)for(var n of cz(u))e.indexOf(n)<0&&m9e.call(u,n)&&(t[n]=u[n]);return t};const f9e=C.forwardRef((u,e)=>{const t=Je("UnstyledButton",{},u),{className:n,component:i="button",unstyled:r,variant:a}=t,o=eFt(t,["className","component","unstyled","variant"]),{classes:s,cx:l}=Yyt(null,{name:"UnstyledButton",unstyled:r,variant:a});return M.createElement(pt,Xyt({component:i,ref:e,className:l(s.root,n),type:i==="button"?"button":void 0},o))});f9e.displayName="@mantine/core/UnstyledButton";const b4=f9e;var tFt=Object.defineProperty,uFt=Object.defineProperties,nFt=Object.getOwnPropertyDescriptors,dz=Object.getOwnPropertySymbols,p9e=Object.prototype.hasOwnProperty,D9e=Object.prototype.propertyIsEnumerable,o1e=(u,e,t)=>e in u?tFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iFt=(u,e)=>{for(var t in e||(e={}))p9e.call(e,t)&&o1e(u,t,e[t]);if(dz)for(var t of dz(e))D9e.call(e,t)&&o1e(u,t,e[t]);return u},rFt=(u,e)=>uFt(u,nFt(e)),aFt=(u,e)=>{var t={};for(var n in u)p9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&dz)for(var n of dz(u))e.indexOf(n)<0&&D9e.call(u,n)&&(t[n]=u[n]);return t};const oFt={},x9e=C.forwardRef((u,e)=>{const t=Je("AccordionControl",oFt,u),{disabled:n,onKeyDown:i,onClick:r,chevron:a,children:o,className:s,icon:l}=t,c=aFt(t,["disabled","onKeyDown","onClick","chevron","children","className","icon"]),d=oz(),{value:h}=o9e(),{classes:E,cx:g}=$yt({transitionDuration:d.transitionDuration,chevronPosition:d.chevronPosition,chevronSize:d.chevronSize,radius:d.radius},{name:"Accordion",classNames:d.classNames,styles:d.styles,unstyled:d.unstyled,variant:d.variant}),m=d.isItemActive(h),f=typeof d.order=="number",p=`h${d.order}`,D=M.createElement(b4,rFt(iFt({},c),{ref:e,"data-accordion-control":!0,disabled:n,className:g(E.control,s),onClick:x=>{r==null||r(x),d.onChange(h)},type:"button","data-active":m||void 0,"aria-expanded":m,"aria-controls":d.getRegionId(h),id:d.getControlId(h),unstyled:d.unstyled,onKeyDown:Kte({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:d.loop,orientation:"vertical",onKeyDown:i})}),M.createElement("span",{className:E.chevron,"data-rotate":!d.disableChevronRotation&&m||void 0},a||d.chevron),M.createElement("span",{className:E.label},o),l&&M.createElement("span",{className:E.icon},l));return f?M.createElement(p,{className:E.itemTitle},D):D});x9e.displayName="@mantine/core/AccordionControl";var sFt=Object.defineProperty,lFt=Object.defineProperties,cFt=Object.getOwnPropertyDescriptors,s1e=Object.getOwnPropertySymbols,dFt=Object.prototype.hasOwnProperty,hFt=Object.prototype.propertyIsEnumerable,l1e=(u,e,t)=>e in u?sFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,EFt=(u,e)=>{for(var t in e||(e={}))dFt.call(e,t)&&l1e(u,t,e[t]);if(s1e)for(var t of s1e(e))hFt.call(e,t)&&l1e(u,t,e[t]);return u},gFt=(u,e)=>lFt(u,cFt(e)),mFt=at((u,e)=>({panel:gFt(EFt({},u.fn.fontStyles()),{wordBreak:"break-word",lineHeight:u.lineHeight}),content:{padding:u.spacing.md,paddingTop:`calc(${u.spacing.xs} / 2)`}}));const fFt=mFt;var pFt=Object.defineProperty,DFt=Object.defineProperties,xFt=Object.getOwnPropertyDescriptors,hz=Object.getOwnPropertySymbols,v9e=Object.prototype.hasOwnProperty,C9e=Object.prototype.propertyIsEnumerable,c1e=(u,e,t)=>e in u?pFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Om=(u,e)=>{for(var t in e||(e={}))v9e.call(e,t)&&c1e(u,t,e[t]);if(hz)for(var t of hz(e))C9e.call(e,t)&&c1e(u,t,e[t]);return u},iH=(u,e)=>DFt(u,xFt(e)),vFt=(u,e)=>{var t={};for(var n in u)v9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&hz)for(var n of hz(u))e.indexOf(n)<0&&C9e.call(u,n)&&(t[n]=u[n]);return t};function CFt(u){if(!u||typeof u=="string")return 0;const e=u/36;return Math.round((4+15*e**.25+e/5)*10)}function rH(u){return u!=null&&u.current?u.current.scrollHeight:"auto"}const t9=typeof window<"u"&&window.requestAnimationFrame;function bFt({transitionDuration:u,transitionTimingFunction:e="ease",onTransitionEnd:t=()=>{},opened:n}){const i=C.useRef(null),r=0,a={display:"none",height:0,overflow:"hidden"},[o,s]=C.useState(n?{}:a),l=g=>{Xo.flushSync(()=>s(g))},c=g=>{l(m=>Om(Om({},m),g))};function d(g){return{transition:`height ${u||CFt(g)}ms ${e}`}}Lo(()=>{t9(n?()=>{c({willChange:"height",display:"block",overflow:"hidden"}),t9(()=>{const g=rH(i);c(iH(Om({},d(g)),{height:g}))})}:()=>{const g=rH(i);c(iH(Om({},d(g)),{willChange:"height",height:g})),t9(()=>c({height:r,overflow:"hidden"}))})},[n]);const h=g=>{if(!(g.target!==i.current||g.propertyName!=="height"))if(n){const m=rH(i);m===o.height?l({}):c({height:m}),t()}else o.height===r&&(l(a),t())};function E(g={}){var m=g,{style:f={},refKey:p="ref"}=m,D=vFt(m,["style","refKey"]);const x=D[p];return iH(Om({"aria-hidden":!n},D),{[p]:r9e(i,x),onTransitionEnd:h,style:Om(Om({boxSizing:"border-box"},f),o)})}return E}var kFt=Object.defineProperty,Ez=Object.getOwnPropertySymbols,b9e=Object.prototype.hasOwnProperty,k9e=Object.prototype.propertyIsEnumerable,d1e=(u,e,t)=>e in u?kFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,u9=(u,e)=>{for(var t in e||(e={}))b9e.call(e,t)&&d1e(u,t,e[t]);if(Ez)for(var t of Ez(e))k9e.call(e,t)&&d1e(u,t,e[t]);return u},yFt=(u,e)=>{var t={};for(var n in u)b9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Ez)for(var n of Ez(u))e.indexOf(n)<0&&k9e.call(u,n)&&(t[n]=u[n]);return t};const FFt={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},y9e=C.forwardRef((u,e)=>{const t=Je("Collapse",FFt,u),{children:n,in:i,transitionDuration:r,transitionTimingFunction:a,style:o,onTransitionEnd:s,animateOpacity:l}=t,c=yFt(t,["children","in","transitionDuration","transitionTimingFunction","style","onTransitionEnd","animateOpacity"]),d=Tr(),h=AA(),g=(d.respectReducedMotion?h:!1)?0:r,{systemStyles:m,rest:f}=C4(c),p=bFt({opened:i,transitionDuration:g,transitionTimingFunction:a,onTransitionEnd:s});return g===0?i?M.createElement(pt,u9({},f),n):null:M.createElement(pt,u9({},p(u9(u9({style:o,ref:e},f),m))),M.createElement("div",{style:{opacity:i||!l?1:0,transition:l?`opacity ${g}ms ${a}`:"none"}},n))});y9e.displayName="@mantine/core/Collapse";var AFt=Object.defineProperty,_Ft=Object.defineProperties,SFt=Object.getOwnPropertyDescriptors,gz=Object.getOwnPropertySymbols,F9e=Object.prototype.hasOwnProperty,A9e=Object.prototype.propertyIsEnumerable,h1e=(u,e,t)=>e in u?AFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,BFt=(u,e)=>{for(var t in e||(e={}))F9e.call(e,t)&&h1e(u,t,e[t]);if(gz)for(var t of gz(e))A9e.call(e,t)&&h1e(u,t,e[t]);return u},wFt=(u,e)=>_Ft(u,SFt(e)),zFt=(u,e)=>{var t={};for(var n in u)F9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&gz)for(var n of gz(u))e.indexOf(n)<0&&A9e.call(u,n)&&(t[n]=u[n]);return t};const LFt={};function _9e(u){const e=Je("AccordionPanel",LFt,u),{children:t,className:n}=e,i=zFt(e,["children","className"]),r=oz(),{value:a}=o9e(),{classNames:o,styles:s,unstyled:l}=oz(),{classes:c,cx:d}=fFt({radius:r.radius},{name:"Accordion",classNames:o,styles:s,unstyled:l,variant:r.variant});return M.createElement(y9e,wFt(BFt({},i),{className:d(c.panel,n),in:r.isItemActive(a),transitionDuration:r.transitionDuration,role:"region",id:r.getRegionId(a),"aria-labelledby":r.getControlId(a)}),M.createElement("div",{className:c.content},t))}_9e.displayName="@mantine/core/AccordionPanel";var MFt=Object.defineProperty,mz=Object.getOwnPropertySymbols,S9e=Object.prototype.hasOwnProperty,B9e=Object.prototype.propertyIsEnumerable,E1e=(u,e,t)=>e in u?MFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,g1e=(u,e)=>{for(var t in e||(e={}))S9e.call(e,t)&&E1e(u,t,e[t]);if(mz)for(var t of mz(e))B9e.call(e,t)&&E1e(u,t,e[t]);return u},TFt=(u,e)=>{var t={};for(var n in u)S9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&mz)for(var n of mz(u))e.indexOf(n)<0&&B9e.call(u,n)&&(t[n]=u[n]);return t};function PFt(u){const e=u,{style:t}=e,n=TFt(e,["style"]);return M.createElement("svg",g1e({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:g1e({width:W(16),height:W(16)},t)},n),M.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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var NFt=Object.defineProperty,RFt=Object.defineProperties,IFt=Object.getOwnPropertyDescriptors,fz=Object.getOwnPropertySymbols,w9e=Object.prototype.hasOwnProperty,z9e=Object.prototype.propertyIsEnumerable,m1e=(u,e,t)=>e in u?NFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,OFt=(u,e)=>{for(var t in e||(e={}))w9e.call(e,t)&&m1e(u,t,e[t]);if(fz)for(var t of fz(e))z9e.call(e,t)&&m1e(u,t,e[t]);return u},jFt=(u,e)=>RFt(u,IFt(e)),VFt=(u,e)=>{var t={};for(var n in u)w9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&fz)for(var n of fz(u))e.indexOf(n)<0&&z9e.call(u,n)&&(t[n]=u[n]);return t};const HFt={multiple:!1,disableChevronRotation:!1,transitionDuration:200,chevronPosition:"right",variant:"default",chevronSize:24,chevron:M.createElement(PFt,null)};function sn(u){const e=Je("Accordion",HFt,u),{id:t,loop:n,children:i,multiple:r,value:a,defaultValue:o,onChange:s,transitionDuration:l,disableChevronRotation:c,chevronPosition:d,chevronSize:h,order:E,chevron:g,classNames:m,styles:f,unstyled:p,variant:D,radius:x}=e,b=VFt(e,["id","loop","children","multiple","value","defaultValue","onChange","transitionDuration","disableChevronRotation","chevronPosition","chevronSize","order","chevron","classNames","styles","unstyled","variant","radius"]);return M.createElement(ayt,{id:t,multiple:r,value:a,defaultValue:o,onChange:s,loop:n,transitionDuration:l,disableChevronRotation:c,chevronPosition:d,chevronSize:h,order:E,chevron:g,variant:D,radius:x,classNames:m,styles:f,unstyled:p},M.createElement(pt,jFt(OFt({},b),{"data-accordion":!0}),i))}sn.Item=E9e;sn.Control=x9e;sn.Panel=_9e;sn.displayName="@mantine/core/Accordion";var $Ft=Object.defineProperty,KFt=Object.defineProperties,WFt=Object.getOwnPropertyDescriptors,f1e=Object.getOwnPropertySymbols,GFt=Object.prototype.hasOwnProperty,UFt=Object.prototype.propertyIsEnumerable,p1e=(u,e,t)=>e in u?$Ft(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,SJ=(u,e)=>{for(var t in e||(e={}))GFt.call(e,t)&&p1e(u,t,e[t]);if(f1e)for(var t of f1e(e))UFt.call(e,t)&&p1e(u,t,e[t]);return u},D1e=(u,e)=>KFt(u,WFt(e));const qFt=["subtle","filled","outline","light","default","transparent","gradient"],n9={xs:W(18),sm:W(22),md:W(28),lg:W(34),xl:W(44)};function JFt({variant:u,theme:e,color:t,gradient:n}){const i=e.fn.variant({color:t,variant:u,gradient:n});return u==="gradient"?{border:0,backgroundImage:i.background,color:i.color,"&:hover":e.fn.hover({backgroundSize:"200%"})}:qFt.includes(u)?SJ({border:`${W(1)} solid ${i.border}`,backgroundColor:i.background,color:i.color},e.fn.hover({backgroundColor:i.hover})):null}var ZFt=at((u,{radius:e,color:t,gradient:n},{variant:i,size:r})=>({root:D1e(SJ({position:"relative",borderRadius:u.fn.radius(e),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:Fe({size:r,sizes:n9}),minHeight:Fe({size:r,sizes:n9}),width:Fe({size:r,sizes:n9}),minWidth:Fe({size:r,sizes:n9})},JFt({variant:i,theme:u,color:t,gradient:n})),{"&:active":u.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:u.colors.gray[u.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:i==="transparent"?void 0:u.fn.themeColor("gray",u.colorScheme==="dark"?8:1),borderColor:i==="transparent"?void 0:u.fn.themeColor("gray",u.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":D1e(SJ({content:'""'},u.fn.cover(W(-1))),{backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:u.fn.radius(e),cursor:"not-allowed"})}})}));const YFt=ZFt;var QFt=Object.defineProperty,pz=Object.getOwnPropertySymbols,L9e=Object.prototype.hasOwnProperty,M9e=Object.prototype.propertyIsEnumerable,x1e=(u,e,t)=>e in u?QFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,v1e=(u,e)=>{for(var t in e||(e={}))L9e.call(e,t)&&x1e(u,t,e[t]);if(pz)for(var t of pz(e))M9e.call(e,t)&&x1e(u,t,e[t]);return u},C1e=(u,e)=>{var t={};for(var n in u)L9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&pz)for(var n of pz(u))e.indexOf(n)<0&&M9e.call(u,n)&&(t[n]=u[n]);return t};function XFt(u){var e=u,{size:t,color:n}=e,i=C1e(e,["size","color"]);const r=i,{style:a}=r,o=C1e(r,["style"]);return M.createElement("svg",v1e({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,style:v1e({width:t},a)},o),M.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var eAt=Object.defineProperty,Dz=Object.getOwnPropertySymbols,T9e=Object.prototype.hasOwnProperty,P9e=Object.prototype.propertyIsEnumerable,b1e=(u,e,t)=>e in u?eAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,k1e=(u,e)=>{for(var t in e||(e={}))T9e.call(e,t)&&b1e(u,t,e[t]);if(Dz)for(var t of Dz(e))P9e.call(e,t)&&b1e(u,t,e[t]);return u},y1e=(u,e)=>{var t={};for(var n in u)T9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Dz)for(var n of Dz(u))e.indexOf(n)<0&&P9e.call(u,n)&&(t[n]=u[n]);return t};function tAt(u){var e=u,{size:t,color:n}=e,i=y1e(e,["size","color"]);const r=i,{style:a}=r,o=y1e(r,["style"]);return M.createElement("svg",k1e({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n,style:k1e({width:t,height:t},a)},o),M.createElement("g",{fill:"none",fillRule:"evenodd"},M.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},M.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),M.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},M.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var uAt=Object.defineProperty,xz=Object.getOwnPropertySymbols,N9e=Object.prototype.hasOwnProperty,R9e=Object.prototype.propertyIsEnumerable,F1e=(u,e,t)=>e in u?uAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,A1e=(u,e)=>{for(var t in e||(e={}))N9e.call(e,t)&&F1e(u,t,e[t]);if(xz)for(var t of xz(e))R9e.call(e,t)&&F1e(u,t,e[t]);return u},_1e=(u,e)=>{var t={};for(var n in u)N9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&xz)for(var n of xz(u))e.indexOf(n)<0&&R9e.call(u,n)&&(t[n]=u[n]);return t};function nAt(u){var e=u,{size:t,color:n}=e,i=_1e(e,["size","color"]);const r=i,{style:a}=r,o=_1e(r,["style"]);return M.createElement("svg",A1e({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n,style:A1e({width:t},a)},o),M.createElement("circle",{cx:"15",cy:"15",r:"15"},M.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},M.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("circle",{cx:"105",cy:"15",r:"15"},M.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var iAt=Object.defineProperty,vz=Object.getOwnPropertySymbols,I9e=Object.prototype.hasOwnProperty,O9e=Object.prototype.propertyIsEnumerable,S1e=(u,e,t)=>e in u?iAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,rAt=(u,e)=>{for(var t in e||(e={}))I9e.call(e,t)&&S1e(u,t,e[t]);if(vz)for(var t of vz(e))O9e.call(e,t)&&S1e(u,t,e[t]);return u},aAt=(u,e)=>{var t={};for(var n in u)I9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&vz)for(var n of vz(u))e.indexOf(n)<0&&O9e.call(u,n)&&(t[n]=u[n]);return t};const aH={bars:XFt,oval:tAt,dots:nAt},oAt={xs:W(18),sm:W(22),md:W(36),lg:W(44),xl:W(58)},sAt={size:"md"};function Fv(u){const e=Je("Loader",sAt,u),{size:t,color:n,variant:i}=e,r=aAt(e,["size","color","variant"]),a=Tr(),o=i in aH?i:a.loader;return M.createElement(pt,rAt({role:"presentation",component:aH[o]||aH.bars,size:Fe({size:t,sizes:oAt}),color:a.fn.variant({variant:"filled",primaryFallback:!1,color:n||a.primaryColor}).background},r))}Fv.displayName="@mantine/core/Loader";var lAt=Object.defineProperty,Cz=Object.getOwnPropertySymbols,j9e=Object.prototype.hasOwnProperty,V9e=Object.prototype.propertyIsEnumerable,B1e=(u,e,t)=>e in u?lAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,w1e=(u,e)=>{for(var t in e||(e={}))j9e.call(e,t)&&B1e(u,t,e[t]);if(Cz)for(var t of Cz(e))V9e.call(e,t)&&B1e(u,t,e[t]);return u},cAt=(u,e)=>{var t={};for(var n in u)j9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Cz)for(var n of Cz(u))e.indexOf(n)<0&&V9e.call(u,n)&&(t[n]=u[n]);return t};const dAt={color:"gray",size:"md",variant:"subtle"},H9e=C.forwardRef((u,e)=>{const t=Je("ActionIcon",dAt,u),{className:n,color:i,children:r,radius:a,size:o,variant:s,gradient:l,disabled:c,loaderProps:d,loading:h,unstyled:E,__staticSelector:g}=t,m=cAt(t,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:f,cx:p,theme:D}=YFt({radius:a,color:i,gradient:l},{name:["ActionIcon",g],unstyled:E,size:o,variant:s}),x=M.createElement(Fv,w1e({color:D.fn.variant({color:i,variant:s}).color,size:"100%","data-action-icon-loader":!0},d));return M.createElement(b4,w1e({className:p(f.root,n),ref:e,disabled:c,"data-disabled":c||void 0,"data-loading":h||void 0,unstyled:E},m),h?x:r)});H9e.displayName="@mantine/core/ActionIcon";const qu=H9e;var hAt=Object.defineProperty,EAt=Object.defineProperties,gAt=Object.getOwnPropertyDescriptors,bz=Object.getOwnPropertySymbols,$9e=Object.prototype.hasOwnProperty,K9e=Object.prototype.propertyIsEnumerable,z1e=(u,e,t)=>e in u?hAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mAt=(u,e)=>{for(var t in e||(e={}))$9e.call(e,t)&&z1e(u,t,e[t]);if(bz)for(var t of bz(e))K9e.call(e,t)&&z1e(u,t,e[t]);return u},fAt=(u,e)=>EAt(u,gAt(e)),pAt=(u,e)=>{var t={};for(var n in u)$9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&bz)for(var n of bz(u))e.indexOf(n)<0&&K9e.call(u,n)&&(t[n]=u[n]);return t};function iue(u){const e=Je("Portal",{},u),{children:t,target:n,className:i,innerRef:r}=e,a=pAt(e,["children","target","className","innerRef"]),o=Tr(),[s,l]=C.useState(!1),c=C.useRef();return $R(()=>(l(!0),c.current=n?typeof n=="string"?document.querySelector(n):n:document.createElement("div"),n||document.body.appendChild(c.current),()=>{!n&&document.body.removeChild(c.current)}),[n]),s?Xo.createPortal(M.createElement("div",fAt(mAt({className:i,dir:o.dir},a),{ref:r}),t),c.current):null}iue.displayName="@mantine/core/Portal";var DAt=Object.defineProperty,kz=Object.getOwnPropertySymbols,W9e=Object.prototype.hasOwnProperty,G9e=Object.prototype.propertyIsEnumerable,L1e=(u,e,t)=>e in u?DAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,xAt=(u,e)=>{for(var t in e||(e={}))W9e.call(e,t)&&L1e(u,t,e[t]);if(kz)for(var t of kz(e))G9e.call(e,t)&&L1e(u,t,e[t]);return u},vAt=(u,e)=>{var t={};for(var n in u)W9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&kz)for(var n of kz(u))e.indexOf(n)<0&&G9e.call(u,n)&&(t[n]=u[n]);return t};function _A(u){var e=u,{withinPortal:t=!0,children:n}=e,i=vAt(e,["withinPortal","children"]);return t?M.createElement(iue,xAt({},i),n):M.createElement(M.Fragment,null,n)}_A.displayName="@mantine/core/OptionalPortal";var CAt=Object.defineProperty,yz=Object.getOwnPropertySymbols,U9e=Object.prototype.hasOwnProperty,q9e=Object.prototype.propertyIsEnumerable,M1e=(u,e,t)=>e in u?CAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,T1e=(u,e)=>{for(var t in e||(e={}))U9e.call(e,t)&&M1e(u,t,e[t]);if(yz)for(var t of yz(e))q9e.call(e,t)&&M1e(u,t,e[t]);return u},bAt=(u,e)=>{var t={};for(var n in u)U9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&yz)for(var n of yz(u))e.indexOf(n)<0&&q9e.call(u,n)&&(t[n]=u[n]);return t};function J9e(u){const e=u,{width:t,height:n,style:i}=e,r=bAt(e,["width","height","style"]);return M.createElement("svg",T1e({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:T1e({width:t,height:n},i)},r),M.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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}J9e.displayName="@mantine/core/CloseIcon";var kAt=Object.defineProperty,Fz=Object.getOwnPropertySymbols,Z9e=Object.prototype.hasOwnProperty,Y9e=Object.prototype.propertyIsEnumerable,P1e=(u,e,t)=>e in u?kAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yAt=(u,e)=>{for(var t in e||(e={}))Z9e.call(e,t)&&P1e(u,t,e[t]);if(Fz)for(var t of Fz(e))Y9e.call(e,t)&&P1e(u,t,e[t]);return u},FAt=(u,e)=>{var t={};for(var n in u)Z9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Fz)for(var n of Fz(u))e.indexOf(n)<0&&Y9e.call(u,n)&&(t[n]=u[n]);return t};const AAt={xs:W(12),sm:W(16),md:W(20),lg:W(28),xl:W(34)},_At={size:"sm"},Q9e=C.forwardRef((u,e)=>{const t=Je("CloseButton",_At,u),{iconSize:n,size:i,children:r}=t,a=FAt(t,["iconSize","size","children"]),o=W(n||AAt[i]);return M.createElement(qu,yAt({ref:e,__staticSelector:"CloseButton",size:i},a),r||M.createElement(J9e,{width:o,height:o}))});Q9e.displayName="@mantine/core/CloseButton";const KR=Q9e;var SAt=Object.defineProperty,BAt=Object.defineProperties,wAt=Object.getOwnPropertyDescriptors,N1e=Object.getOwnPropertySymbols,zAt=Object.prototype.hasOwnProperty,LAt=Object.prototype.propertyIsEnumerable,R1e=(u,e,t)=>e in u?SAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,i9=(u,e)=>{for(var t in e||(e={}))zAt.call(e,t)&&R1e(u,t,e[t]);if(N1e)for(var t of N1e(e))LAt.call(e,t)&&R1e(u,t,e[t]);return u},MAt=(u,e)=>BAt(u,wAt(e));function TAt({underline:u,strikethrough:e}){const t=[];return u&&t.push("underline"),e&&t.push("line-through"),t.length>0?t.join(" "):"none"}function PAt({theme:u,color:e}){return e==="dimmed"?u.fn.dimmed():typeof e=="string"&&(e in u.colors||e.split(".")[0]in u.colors)?u.fn.variant({variant:"filled",color:e}).background:e||"inherit"}function NAt(u){return typeof u=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:u,WebkitBoxOrient:"vertical"}:null}function RAt({theme:u,truncate:e}){return e==="start"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:u.dir==="ltr"?"rtl":"ltr",textAlign:u.dir==="ltr"?"right":"left"}:e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var IAt=at((u,{color:e,lineClamp:t,truncate:n,inline:i,inherit:r,underline:a,gradient:o,weight:s,transform:l,align:c,strikethrough:d,italic:h},{size:E})=>{const g=u.fn.variant({variant:"gradient",gradient:o});return{root:MAt(i9(i9(i9(i9({},u.fn.fontStyles()),u.fn.focusStyles()),NAt(t)),RAt({theme:u,truncate:n})),{color:PAt({color:e,theme:u}),fontFamily:r?"inherit":u.fontFamily,fontSize:r||E===void 0?"inherit":Fe({size:E,sizes:u.fontSizes}),lineHeight:r?"inherit":i?1:u.lineHeight,textDecoration:TAt({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:r?"inherit":s,textTransform:l,textAlign:c,fontStyle:h?"italic":void 0}),gradient:{backgroundImage:g.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});const OAt=IAt;var jAt=Object.defineProperty,Az=Object.getOwnPropertySymbols,X9e=Object.prototype.hasOwnProperty,eSe=Object.prototype.propertyIsEnumerable,I1e=(u,e,t)=>e in u?jAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VAt=(u,e)=>{for(var t in e||(e={}))X9e.call(e,t)&&I1e(u,t,e[t]);if(Az)for(var t of Az(e))eSe.call(e,t)&&I1e(u,t,e[t]);return u},HAt=(u,e)=>{var t={};for(var n in u)X9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Az)for(var n of Az(u))e.indexOf(n)<0&&eSe.call(u,n)&&(t[n]=u[n]);return t};const $At={variant:"text"},tSe=C.forwardRef((u,e)=>{const t=Je("Text",$At,u),{className:n,size:i,weight:r,transform:a,color:o,align:s,variant:l,lineClamp:c,truncate:d,gradient:h,inline:E,inherit:g,underline:m,strikethrough:f,italic:p,classNames:D,styles:x,unstyled:b,span:k,__staticSelector:_}=t,y=HAt(t,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:S,cx:B}=OAt({color:o,lineClamp:c,truncate:d,inline:E,inherit:g,underline:m,strikethrough:f,italic:p,weight:r,transform:a,align:s,gradient:h},{unstyled:b,name:_||"Text",variant:l,size:i});return M.createElement(pt,VAt({ref:e,className:B(S.root,{[S.gradient]:l==="gradient"},n),component:k?"span":"div"},y))});tSe.displayName="@mantine/core/Text";const Fu=tSe;var KAt=Object.defineProperty,O1e=Object.getOwnPropertySymbols,WAt=Object.prototype.hasOwnProperty,GAt=Object.prototype.propertyIsEnumerable,j1e=(u,e,t)=>e in u?KAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,UAt=(u,e)=>{for(var t in e||(e={}))WAt.call(e,t)&&j1e(u,t,e[t]);if(O1e)for(var t of O1e(e))GAt.call(e,t)&&j1e(u,t,e[t]);return u};function qAt({theme:u,color:e}){return e==="dimmed"?u.fn.dimmed():u.fn.themeColor(e||u.primaryColor,u.colorScheme==="dark"?4:7,!1,!0)}var JAt=at((u,{color:e,underline:t})=>({root:UAt({backgroundColor:"transparent",cursor:"pointer",padding:0,border:0,color:qAt({theme:u,color:e})},u.fn.hover({textDecoration:t?"underline":"none"}))}));const ZAt=JAt;var YAt=Object.defineProperty,_z=Object.getOwnPropertySymbols,uSe=Object.prototype.hasOwnProperty,nSe=Object.prototype.propertyIsEnumerable,V1e=(u,e,t)=>e in u?YAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,H1e=(u,e)=>{for(var t in e||(e={}))uSe.call(e,t)&&V1e(u,t,e[t]);if(_z)for(var t of _z(e))nSe.call(e,t)&&V1e(u,t,e[t]);return u},QAt=(u,e)=>{var t={};for(var n in u)uSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&_z)for(var n of _z(u))e.indexOf(n)<0&&nSe.call(u,n)&&(t[n]=u[n]);return t};const XAt={underline:!0},iSe=C.forwardRef((u,e)=>{const t=Je("Anchor",XAt,u),{component:n,className:i,unstyled:r,variant:a,size:o,color:s,underline:l}=t,c=QAt(t,["component","className","unstyled","variant","size","color","underline"]),{classes:d,cx:h}=ZAt({color:s,underline:l},{name:"Anchor",unstyled:r,variant:a,size:o}),E=n==="button"?{type:"button"}:null;return M.createElement(Fu,H1e(H1e({component:n||"a",ref:e,className:h(d.root,i),size:o},E),c))});iSe.displayName="@mantine/core/Anchor";const a3=iSe,rSe=C.createContext({zIndex:1e3,fixed:!1,layout:"default"}),e_t=rSe.Provider;function t_t(){return C.useContext(rSe)}function aSe(u,e){if(!u)return[];const t=Object.keys(u).filter(n=>n!=="base").map(n=>[Fe({size:n,sizes:e.breakpoints,units:"em"}),u[n]]);return t.sort((n,i)=>Us(n[0])-Us(i[0])),t}var u_t=Object.defineProperty,n_t=Object.defineProperties,i_t=Object.getOwnPropertyDescriptors,$1e=Object.getOwnPropertySymbols,r_t=Object.prototype.hasOwnProperty,a_t=Object.prototype.propertyIsEnumerable,K1e=(u,e,t)=>e in u?u_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,oH=(u,e)=>{for(var t in e||(e={}))r_t.call(e,t)&&K1e(u,t,e[t]);if($1e)for(var t of $1e(e))a_t.call(e,t)&&K1e(u,t,e[t]);return u},W1e=(u,e)=>n_t(u,i_t(e)),o_t=at((u,{height:e,fixed:t,position:n,zIndex:i,borderPosition:r,layout:a})=>{const o=typeof e=="object"&&e!==null?aSe(e,u).reduce((s,[l,c])=>(s[`@media (min-width: ${yl(l)})`]={height:W(c),minHeight:W(c)},s),{}):null;return{root:W1e(oH(W1e(oH(oH({},u.fn.fontStyles()),n),{zIndex:i,left:a==="alt"?"var(--mantine-navbar-width, 0)":0,right:a==="alt"?"var(--mantine-aside-width, 0)":0,height:typeof e=="object"?W(e==null?void 0:e.base)||"100%":W(e),maxHeight:typeof e=="object"?W(e==null?void 0:e.base)||"100%":W(e),position:t?"fixed":"static",boxSizing:"border-box",backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white}),o),{borderBottom:r==="bottom"?`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[2]}`:void 0,borderTop:r==="top"?`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[2]}`:void 0})}});const s_t=o_t;var l_t=Object.defineProperty,Sz=Object.getOwnPropertySymbols,oSe=Object.prototype.hasOwnProperty,sSe=Object.prototype.propertyIsEnumerable,G1e=(u,e,t)=>e in u?l_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,U1e=(u,e)=>{for(var t in e||(e={}))oSe.call(e,t)&&G1e(u,t,e[t]);if(Sz)for(var t of Sz(e))sSe.call(e,t)&&G1e(u,t,e[t]);return u},c_t=(u,e)=>{var t={};for(var n in u)oSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Sz)for(var n of Sz(u))e.indexOf(n)<0&&sSe.call(u,n)&&(t[n]=u[n]);return t};const rue=C.forwardRef((u,e)=>{var t=u,{children:n,className:i,classNames:r,styles:a,height:o,fixed:s=!1,withBorder:l=!0,position:c,zIndex:d,section:h,unstyled:E,__staticSelector:g,variant:m}=t,f=c_t(t,["children","className","classNames","styles","height","fixed","withBorder","position","zIndex","section","unstyled","__staticSelector","variant"]);const p=t_t(),D=d||p.zIndex||id("app"),{classes:x,cx:b,theme:k}=s_t({height:o,fixed:p.fixed||s,position:c,zIndex:typeof D=="number"&&p.layout==="default"?D+1:D,layout:p.layout,borderPosition:l?h==="header"?"bottom":"top":"none"},{name:g,classNames:r,styles:a,unstyled:E,variant:m}),_=typeof o=="object"&&o!==null?aSe(o,k).reduce((y,[S,B])=>(y[`@media (min-width: ${yl(S)})`]={[`--mantine-${h}-height`]:W(B)},y),{}):null;return M.createElement(pt,U1e({component:h==="header"?"header":"footer",className:b(x.root,i),ref:e},f),n,M.createElement(A2t,{styles:()=>({":root":U1e({[`--mantine-${h}-height`]:typeof o=="object"?W(o==null?void 0:o.base)||"100%":W(o)},_)})}))});rue.displayName="@mantine/core/VerticalSection";var d_t=Object.defineProperty,h_t=Object.defineProperties,E_t=Object.getOwnPropertyDescriptors,q1e=Object.getOwnPropertySymbols,g_t=Object.prototype.hasOwnProperty,m_t=Object.prototype.propertyIsEnumerable,J1e=(u,e,t)=>e in u?d_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,f_t=(u,e)=>{for(var t in e||(e={}))g_t.call(e,t)&&J1e(u,t,e[t]);if(q1e)for(var t of q1e(e))m_t.call(e,t)&&J1e(u,t,e[t]);return u},p_t=(u,e)=>h_t(u,E_t(e));const D_t={fixed:!1,position:{top:0,left:0,right:0}},lSe=C.forwardRef((u,e)=>{const t=Je("Header",D_t,u);return M.createElement(rue,p_t(f_t({section:"header",__staticSelector:"Header"},t),{ref:e}))});lSe.displayName="@mantine/core/Header";var x_t=Object.defineProperty,v_t=Object.defineProperties,C_t=Object.getOwnPropertyDescriptors,Z1e=Object.getOwnPropertySymbols,b_t=Object.prototype.hasOwnProperty,k_t=Object.prototype.propertyIsEnumerable,Y1e=(u,e,t)=>e in u?x_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,y_t=(u,e)=>{for(var t in e||(e={}))b_t.call(e,t)&&Y1e(u,t,e[t]);if(Z1e)for(var t of Z1e(e))k_t.call(e,t)&&Y1e(u,t,e[t]);return u},F_t=(u,e)=>v_t(u,C_t(e));const A_t={fixed:!1,position:{bottom:0,left:0,right:0}},cSe=C.forwardRef((u,e)=>{const t=Je("Footer",A_t,u);return M.createElement(rue,F_t(y_t({section:"footer",__staticSelector:"Footer"},t),{ref:e}))});cSe.displayName="@mantine/core/Footer";var __t=Object.defineProperty,Q1e=Object.getOwnPropertySymbols,S_t=Object.prototype.hasOwnProperty,B_t=Object.prototype.propertyIsEnumerable,X1e=(u,e,t)=>e in u?__t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dSe=(u,e)=>{for(var t in e||(e={}))S_t.call(e,t)&&X1e(u,t,e[t]);if(Q1e)for(var t of Q1e(e))B_t.call(e,t)&&X1e(u,t,e[t]);return u};function w_t(u,e){const t=Fe({size:u.padding,sizes:e.spacing}),n=u.navbarOffsetBreakpoint?Fe({size:u.navbarOffsetBreakpoint,sizes:e.breakpoints}):null,i=u.asideOffsetBreakpoint?Fe({size:u.asideOffsetBreakpoint,sizes:e.breakpoints}):null;if(!u.fixed)return{padding:t};const r=Us(n),a=Us(i);return dSe({minHeight:"100vh",paddingTop:`calc(var(--mantine-header-height, 0px) + ${t})`,paddingBottom:`calc(var(--mantine-footer-height, 0px) + ${t})`,paddingLeft:`calc(var(--mantine-navbar-width, 0px) + ${t})`,paddingRight:`calc(var(--mantine-aside-width, 0px) + ${t})`},r===a?{[`@media (max-width: ${yl(r-1)})`]:{paddingLeft:t,paddingRight:t}}:{[`@media (max-width: ${yl(r-1)})`]:{paddingLeft:t},[`@media (max-width: ${yl(a-1)})`]:{paddingRight:t}})}var z_t=at((u,e)=>({root:{boxSizing:"border-box"},body:{display:"flex",boxSizing:"border-box"},main:dSe({flex:1,width:"100vw",boxSizing:"border-box"},w_t(e,u))}));const L_t=z_t;var M_t=Object.defineProperty,Bz=Object.getOwnPropertySymbols,hSe=Object.prototype.hasOwnProperty,ESe=Object.prototype.propertyIsEnumerable,ehe=(u,e,t)=>e in u?M_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,T_t=(u,e)=>{for(var t in e||(e={}))hSe.call(e,t)&&ehe(u,t,e[t]);if(Bz)for(var t of Bz(e))ESe.call(e,t)&&ehe(u,t,e[t]);return u},P_t=(u,e)=>{var t={};for(var n in u)hSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Bz)for(var n of Bz(u))e.indexOf(n)<0&&ESe.call(u,n)&&(t[n]=u[n]);return t};const N_t={fixed:!0,padding:"md"},gSe=C.forwardRef((u,e)=>{const t=Je("AppShell",N_t,u),{children:n,navbar:i,header:r,footer:a,aside:o,fixed:s,zIndex:l,padding:c,navbarOffsetBreakpoint:d,asideOffsetBreakpoint:h,className:E,styles:g,classNames:m,unstyled:f,hidden:p,layout:D,variant:x}=t,b=P_t(t,["children","navbar","header","footer","aside","fixed","zIndex","padding","navbarOffsetBreakpoint","asideOffsetBreakpoint","className","styles","classNames","unstyled","hidden","layout","variant"]),{classes:k,cx:_}=L_t({padding:c,fixed:s,navbarOffsetBreakpoint:d,asideOffsetBreakpoint:h},{styles:g,classNames:m,unstyled:f,name:"AppShell",variant:x});return p?M.createElement(M.Fragment,null,n):M.createElement(e_t,{value:{fixed:s,zIndex:l,layout:D}},M.createElement(pt,T_t({className:_(k.root,E),ref:e},b),r,M.createElement("div",{className:k.body},i,M.createElement("main",{className:k.main},n),o),a))});gSe.displayName="@mantine/core/AppShell";const r9={xs:W(1),sm:W(2),md:W(3),lg:W(4),xl:W(5)};function a9(u,e){const t=u.fn.variant({variant:"outline",color:e}).border;return typeof e=="string"&&(e in u.colors||e.split(".")[0]in u.colors)?t:e===void 0?u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]:e}var R_t=at((u,{color:e},{size:t,variant:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:W(1),borderTop:`${Fe({size:t,sizes:r9})} ${n} ${a9(u,e)}`,marginRight:u.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${Fe({size:t,sizes:r9})} ${n} ${a9(u,e)}`,marginLeft:u.spacing.xs}},labelDefaultStyles:{color:e==="dark"?u.colors.dark[1]:u.fn.themeColor(e,u.colorScheme==="dark"?5:u.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:W(Fe({size:t,sizes:r9})),borderTopColor:a9(u,e),borderTopStyle:n,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:W(Fe({size:t,sizes:r9})),borderLeftColor:a9(u,e),borderLeftStyle:n}}));const I_t=R_t;var O_t=Object.defineProperty,j_t=Object.defineProperties,V_t=Object.getOwnPropertyDescriptors,wz=Object.getOwnPropertySymbols,mSe=Object.prototype.hasOwnProperty,fSe=Object.prototype.propertyIsEnumerable,the=(u,e,t)=>e in u?O_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,uhe=(u,e)=>{for(var t in e||(e={}))mSe.call(e,t)&&the(u,t,e[t]);if(wz)for(var t of wz(e))fSe.call(e,t)&&the(u,t,e[t]);return u},H_t=(u,e)=>j_t(u,V_t(e)),$_t=(u,e)=>{var t={};for(var n in u)mSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&wz)for(var n of wz(u))e.indexOf(n)<0&&fSe.call(u,n)&&(t[n]=u[n]);return t};const K_t={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},zz=C.forwardRef((u,e)=>{const t=Je("Divider",K_t,u),{className:n,color:i,orientation:r,size:a,label:o,labelPosition:s,labelProps:l,variant:c,styles:d,classNames:h,unstyled:E}=t,g=$_t(t,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:m,cx:f}=I_t({color:i},{classNames:h,styles:d,unstyled:E,name:"Divider",variant:c,size:a}),p=r==="vertical",D=r==="horizontal",x=!!o&&D,b=!(l!=null&&l.color);return M.createElement(pt,uhe({ref:e,className:f(m.root,{[m.vertical]:p,[m.horizontal]:D,[m.withLabel]:x},n),role:"separator"},g),x&&M.createElement(Fu,H_t(uhe({},l),{size:(l==null?void 0:l.size)||"xs",mt:W(2),className:f(m.label,m[s],{[m.labelDefaultStyles]:b})}),o))});zz.displayName="@mantine/core/Divider";var W_t=Object.defineProperty,G_t=Object.defineProperties,U_t=Object.getOwnPropertyDescriptors,nhe=Object.getOwnPropertySymbols,q_t=Object.prototype.hasOwnProperty,J_t=Object.prototype.propertyIsEnumerable,ihe=(u,e,t)=>e in u?W_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,rhe=(u,e)=>{for(var t in e||(e={}))q_t.call(e,t)&&ihe(u,t,e[t]);if(nhe)for(var t of nhe(e))J_t.call(e,t)&&ihe(u,t,e[t]);return u},Z_t=(u,e)=>G_t(u,U_t(e)),Y_t=at((u,e,{size:t})=>({item:Z_t(rhe({},u.fn.fontStyles()),{boxSizing:"border-box",wordBreak:"break-all",textAlign:"left",width:"100%",padding:`calc(${Fe({size:t,sizes:u.spacing})} / 1.5) ${Fe({size:t,sizes:u.spacing})}`,cursor:"pointer",fontSize:Fe({size:t,sizes:u.fontSizes}),color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,borderRadius:u.fn.radius(),"&[data-hovered]":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[1]},"&[data-selected]":rhe({backgroundColor:u.fn.variant({variant:"filled"}).background,color:u.fn.variant({variant:"filled"}).color},u.fn.hover({backgroundColor:u.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:u.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:u.colors.gray[6],paddingTop:`calc(${Fe({size:t,sizes:u.spacing})} / 2)`,paddingBottom:`calc(${Fe({size:t,sizes:u.spacing})} / 2)`,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`calc(${Fe({size:t,sizes:u.spacing})} / 1.5) ${Fe({size:t,sizes:u.spacing})}`},separatorLabel:{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]}}));const Q_t=Y_t;var X_t=Object.defineProperty,ahe=Object.getOwnPropertySymbols,e7t=Object.prototype.hasOwnProperty,t7t=Object.prototype.propertyIsEnumerable,ohe=(u,e,t)=>e in u?X_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,u7t=(u,e)=>{for(var t in e||(e={}))e7t.call(e,t)&&ohe(u,t,e[t]);if(ahe)for(var t of ahe(e))t7t.call(e,t)&&ohe(u,t,e[t]);return u};function aue({data:u,hovered:e,classNames:t,styles:n,isItemSelected:i,uuid:r,__staticSelector:a,onItemHover:o,onItemSelect:s,itemsRefs:l,itemComponent:c,size:d,nothingFound:h,creatable:E,createLabel:g,unstyled:m,variant:f}){const{classes:p}=Q_t(null,{classNames:t,styles:n,unstyled:m,name:a,variant:f,size:d}),D=[],x=[];let b=null;const k=(y,S)=>{const B=typeof i=="function"?i(y.value):!1;return M.createElement(c,u7t({key:y.value,className:p.item,"data-disabled":y.disabled||void 0,"data-hovered":!y.disabled&&e===S||void 0,"data-selected":!y.disabled&&B||void 0,selected:B,onMouseEnter:()=>o(S),id:`${r}-${S}`,role:"option",tabIndex:-1,"aria-selected":e===S,ref:L=>{l&&l.current&&(l.current[y.value]=L)},onMouseDown:y.disabled?null:L=>{L.preventDefault(),s(y)},disabled:y.disabled,variant:f},y))};let _=null;if(u.forEach((y,S)=>{y.creatable?b=S:y.group?(_!==y.group&&(_=y.group,x.push(M.createElement("div",{className:p.separator,key:`__mantine-divider-${S}`},M.createElement(zz,{classNames:{label:p.separatorLabel},label:y.group})))),x.push(k(y,S))):D.push(k(y,S))}),E){const y=u[b];D.push(M.createElement("div",{key:Wh(),className:p.item,"data-hovered":e===b||void 0,onMouseEnter:()=>o(b),onMouseDown:S=>{S.preventDefault(),s(y)},tabIndex:-1,ref:S=>{l&&l.current&&(l.current[y.value]=S)}},g))}return x.length>0&&D.length>0&&D.unshift(M.createElement("div",{className:p.separator,key:"empty-group-separator"},M.createElement(zz,null))),x.length>0||D.length>0?M.createElement(M.Fragment,null,x,D):M.createElement(Fu,{size:d,unstyled:m,className:p.nothingFound},h)}aue.displayName="@mantine/core/SelectItems";var n7t=Object.defineProperty,Lz=Object.getOwnPropertySymbols,pSe=Object.prototype.hasOwnProperty,DSe=Object.prototype.propertyIsEnumerable,she=(u,e,t)=>e in u?n7t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,i7t=(u,e)=>{for(var t in e||(e={}))pSe.call(e,t)&&she(u,t,e[t]);if(Lz)for(var t of Lz(e))DSe.call(e,t)&&she(u,t,e[t]);return u},r7t=(u,e)=>{var t={};for(var n in u)pSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Lz)for(var n of Lz(u))e.indexOf(n)<0&&DSe.call(u,n)&&(t[n]=u[n]);return t};const oue=C.forwardRef((u,e)=>{var t=u,{label:n,value:i}=t,r=r7t(t,["label","value"]);return M.createElement("div",i7t({ref:e},r),n||i)});oue.displayName="@mantine/core/DefaultItem";function a7t(u,e){typeof u=="function"?u(e):u!=null&&(u.current=e)}function xSe(...u){return e=>u.forEach(t=>a7t(t,e))}function Op(...u){return C.useCallback(xSe(...u),u)}const vSe=C.forwardRef((u,e)=>{const{children:t,...n}=u,i=C.Children.toArray(t),r=i.find(s7t);if(r){const a=r.props.children,o=i.map(s=>s===r?C.Children.count(a)>1?C.Children.only(null):C.isValidElement(a)?a.props.children:null:s);return C.createElement(BJ,ft({},n,{ref:e}),C.isValidElement(a)?C.cloneElement(a,void 0,o):null)}return C.createElement(BJ,ft({},n,{ref:e}),t)});vSe.displayName="Slot";const BJ=C.forwardRef((u,e)=>{const{children:t,...n}=u;return C.isValidElement(t)?C.cloneElement(t,{...l7t(n,t.props),ref:xSe(e,t.ref)}):C.Children.count(t)>1?C.Children.only(null):null});BJ.displayName="SlotClone";const o7t=({children:u})=>C.createElement(C.Fragment,null,u);function s7t(u){return C.isValidElement(u)&&u.type===o7t}function l7t(u,e){const t={...e};for(const n in e){const i=u[n],r=e[n];/^on[A-Z]/.test(n)?i&&r?t[n]=(...o)=>{r(...o),i(...o)}:i&&(t[n]=i):n==="style"?t[n]={...i,...r}:n==="className"&&(t[n]=[i,r].filter(Boolean).join(" "))}return{...u,...t}}const c7t=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],SA=c7t.reduce((u,e)=>{const t=C.forwardRef((n,i)=>{const{asChild:r,...a}=n,o=r?vSe:e;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(o,ft({},a,{ref:i}))});return t.displayName=`Primitive.${e}`,{...u,[e]:t}},{}),wJ=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{};function d7t(u,e){return C.useReducer((t,n)=>{const i=e[t][n];return i??t},u)}const BA=u=>{const{present:e,children:t}=u,n=h7t(e),i=typeof t=="function"?t({present:n.isPresent}):C.Children.only(t),r=Op(n.ref,i.ref);return typeof t=="function"||n.isPresent?C.cloneElement(i,{ref:r}):null};BA.displayName="Presence";function h7t(u){const[e,t]=C.useState(),n=C.useRef({}),i=C.useRef(u),r=C.useRef("none"),a=u?"mounted":"unmounted",[o,s]=d7t(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const l=o9(n.current);r.current=o==="mounted"?l:"none"},[o]),wJ(()=>{const l=n.current,c=i.current;if(c!==u){const h=r.current,E=o9(l);u?s("MOUNT"):E==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&h!==E?"ANIMATION_OUT":"UNMOUNT"),i.current=u}},[u,s]),wJ(()=>{if(e){const l=d=>{const E=o9(n.current).includes(d.animationName);d.target===e&&E&&Xo.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===e&&(r.current=o9(n.current))};return e.addEventListener("animationstart",c),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",c),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:C.useCallback(l=>{l&&(n.current=getComputedStyle(l)),t(l)},[])}}function o9(u){return(u==null?void 0:u.animationName)||"none"}function E7t(u,e=[]){let t=[];function n(r,a){const o=C.createContext(a),s=t.length;t=[...t,a];function l(d){const{scope:h,children:E,...g}=d,m=(h==null?void 0:h[u][s])||o,f=C.useMemo(()=>g,Object.values(g));return C.createElement(m.Provider,{value:f},E)}function c(d,h){const E=(h==null?void 0:h[u][s])||o,g=C.useContext(E);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${r}\``)}return l.displayName=r+"Provider",[l,c]}const i=()=>{const r=t.map(a=>C.createContext(a));return function(o){const s=(o==null?void 0:o[u])||r;return C.useMemo(()=>({[`__scope${u}`]:{...o,[u]:s}}),[o,s])}};return i.scopeName=u,[n,g7t(i,...e)]}function g7t(...u){const e=u[0];if(u.length===1)return e;const t=()=>{const n=u.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const a=n.reduce((o,{useScope:s,scopeName:l})=>{const d=s(r)[`__scope${l}`];return{...o,...d}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return t.scopeName=e.scopeName,t}function pf(u){const e=C.useRef(u);return C.useEffect(()=>{e.current=u}),C.useMemo(()=>(...t)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...t)},[])}const m7t=C.createContext(void 0);function f7t(u){const e=C.useContext(m7t);return u||e||"ltr"}function p7t(u,[e,t]){return Math.min(t,Math.max(e,u))}function o3(u,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(u==null||u(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function D7t(u,e){return C.useReducer((t,n)=>{const i=e[t][n];return i??t},u)}const CSe="ScrollArea",[bSe,NVn]=E7t(CSe),[x7t,Wl]=bSe(CSe),v7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,type:n="hover",dir:i,scrollHideDelay:r=600,...a}=u,[o,s]=C.useState(null),[l,c]=C.useState(null),[d,h]=C.useState(null),[E,g]=C.useState(null),[m,f]=C.useState(null),[p,D]=C.useState(0),[x,b]=C.useState(0),[k,_]=C.useState(!1),[y,S]=C.useState(!1),B=Op(e,T=>s(T)),L=f7t(i);return C.createElement(x7t,{scope:t,type:n,dir:L,scrollHideDelay:r,scrollArea:o,viewport:l,onViewportChange:c,content:d,onContentChange:h,scrollbarX:E,onScrollbarXChange:g,scrollbarXEnabled:k,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:f,scrollbarYEnabled:y,onScrollbarYEnabledChange:S,onCornerWidthChange:D,onCornerHeightChange:b},C.createElement(SA.div,ft({dir:L},a,{ref:B,style:{position:"relative","--radix-scroll-area-corner-width":p+"px","--radix-scroll-area-corner-height":x+"px",...u.style}})))}),C7t="ScrollAreaViewport",b7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,children:n,...i}=u,r=Wl(C7t,t),a=C.useRef(null),o=Op(e,a,r.onViewportChange);return C.createElement(C.Fragment,null,C.createElement("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}"}}),C.createElement(SA.div,ft({"data-radix-scroll-area-viewport":""},i,{ref:o,style:{overflowX:r.scrollbarXEnabled?"scroll":"hidden",overflowY:r.scrollbarYEnabled?"scroll":"hidden",...u.style}}),C.createElement("div",{ref:r.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),k4="ScrollAreaScrollbar",k7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=Wl(k4,u.__scopeScrollArea),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:a}=i,o=u.orientation==="horizontal";return C.useEffect(()=>(o?r(!0):a(!0),()=>{o?r(!1):a(!1)}),[o,r,a]),i.type==="hover"?C.createElement(y7t,ft({},n,{ref:e,forceMount:t})):i.type==="scroll"?C.createElement(F7t,ft({},n,{ref:e,forceMount:t})):i.type==="auto"?C.createElement(kSe,ft({},n,{ref:e,forceMount:t})):i.type==="always"?C.createElement(sue,ft({},n,{ref:e})):null}),y7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=Wl(k4,u.__scopeScrollArea),[r,a]=C.useState(!1);return C.useEffect(()=>{const o=i.scrollArea;let s=0;if(o){const l=()=>{window.clearTimeout(s),a(!0)},c=()=>{s=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",l),o.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),o.removeEventListener("pointerenter",l),o.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),C.createElement(BA,{present:t||r},C.createElement(kSe,ft({"data-state":r?"visible":"hidden"},n,{ref:e})))}),F7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=Wl(k4,u.__scopeScrollArea),r=u.orientation==="horizontal",a=GR(()=>s("SCROLL_END"),100),[o,s]=D7t("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 C.useEffect(()=>{if(o==="idle"){const l=window.setTimeout(()=>s("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(l)}},[o,i.scrollHideDelay,s]),C.useEffect(()=>{const l=i.viewport,c=r?"scrollLeft":"scrollTop";if(l){let d=l[c];const h=()=>{const E=l[c];d!==E&&(s("SCROLL"),a()),d=E};return l.addEventListener("scroll",h),()=>l.removeEventListener("scroll",h)}},[i.viewport,r,s,a]),C.createElement(BA,{present:t||o!=="hidden"},C.createElement(sue,ft({"data-state":o==="hidden"?"hidden":"visible"},n,{ref:e,onPointerEnter:o3(u.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:o3(u.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),kSe=C.forwardRef((u,e)=>{const t=Wl(k4,u.__scopeScrollArea),{forceMount:n,...i}=u,[r,a]=C.useState(!1),o=u.orientation==="horizontal",s=GR(()=>{if(t.viewport){const l=t.viewport.offsetWidth{const{orientation:t="vertical",...n}=u,i=Wl(k4,u.__scopeScrollArea),r=C.useRef(null),a=C.useRef(0),[o,s]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=_Se(o.viewport,o.content),c={...n,sizes:o,onSizesChange:s,hasThumb:l>0&&l<1,onThumbChange:h=>r.current=h,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:h=>a.current=h};function d(h,E){return M7t(h,a.current,o,E)}return t==="horizontal"?C.createElement(A7t,ft({},c,{ref:e,onThumbPositionChange:()=>{if(i.viewport&&r.current){const h=i.viewport.scrollLeft,E=lhe(h,o,i.dir);r.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=d(h,i.dir))}})):t==="vertical"?C.createElement(_7t,ft({},c,{ref:e,onThumbPositionChange:()=>{if(i.viewport&&r.current){const h=i.viewport.scrollTop,E=lhe(h,o);r.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=d(h))}})):null}),A7t=C.forwardRef((u,e)=>{const{sizes:t,onSizesChange:n,...i}=u,r=Wl(k4,u.__scopeScrollArea),[a,o]=C.useState(),s=C.useRef(null),l=Op(e,s,r.onScrollbarXChange);return C.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),C.createElement(FSe,ft({"data-orientation":"horizontal"},i,{ref:l,sizes:t,style:{bottom:0,left:r.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:r.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":WR(t)+"px",...u.style},onThumbPointerDown:c=>u.onThumbPointerDown(c.x),onDragScroll:c=>u.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(r.viewport){const h=r.viewport.scrollLeft+c.deltaX;u.onWheelScroll(h),BSe(h,d)&&c.preventDefault()}},onResize:()=>{s.current&&r.viewport&&a&&n({content:r.viewport.scrollWidth,viewport:r.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Mz(a.paddingLeft),paddingEnd:Mz(a.paddingRight)}})}}))}),_7t=C.forwardRef((u,e)=>{const{sizes:t,onSizesChange:n,...i}=u,r=Wl(k4,u.__scopeScrollArea),[a,o]=C.useState(),s=C.useRef(null),l=Op(e,s,r.onScrollbarYChange);return C.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),C.createElement(FSe,ft({"data-orientation":"vertical"},i,{ref:l,sizes:t,style:{top:0,right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":WR(t)+"px",...u.style},onThumbPointerDown:c=>u.onThumbPointerDown(c.y),onDragScroll:c=>u.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(r.viewport){const h=r.viewport.scrollTop+c.deltaY;u.onWheelScroll(h),BSe(h,d)&&c.preventDefault()}},onResize:()=>{s.current&&r.viewport&&a&&n({content:r.viewport.scrollHeight,viewport:r.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Mz(a.paddingTop),paddingEnd:Mz(a.paddingBottom)}})}}))}),[S7t,ySe]=bSe(k4),FSe=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,sizes:n,hasThumb:i,onThumbChange:r,onThumbPointerUp:a,onThumbPointerDown:o,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:c,onResize:d,...h}=u,E=Wl(k4,t),[g,m]=C.useState(null),f=Op(e,B=>m(B)),p=C.useRef(null),D=C.useRef(""),x=E.viewport,b=n.content-n.viewport,k=pf(c),_=pf(s),y=GR(d,10);function S(B){if(p.current){const L=B.clientX-p.current.left,T=B.clientY-p.current.top;l({x:L,y:T})}}return C.useEffect(()=>{const B=L=>{const T=L.target;(g==null?void 0:g.contains(T))&&k(L,b)};return document.addEventListener("wheel",B,{passive:!1}),()=>document.removeEventListener("wheel",B,{passive:!1})},[x,g,b,k]),C.useEffect(_,[n,_]),Av(g,y),Av(E.content,y),C.createElement(S7t,{scope:t,scrollbar:g,hasThumb:i,onThumbChange:pf(r),onThumbPointerUp:pf(a),onThumbPositionChange:_,onThumbPointerDown:pf(o)},C.createElement(SA.div,ft({},h,{ref:f,style:{position:"absolute",...h.style},onPointerDown:o3(u.onPointerDown,B=>{B.button===0&&(B.target.setPointerCapture(B.pointerId),p.current=g.getBoundingClientRect(),D.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S(B))}),onPointerMove:o3(u.onPointerMove,S),onPointerUp:o3(u.onPointerUp,B=>{const L=B.target;L.hasPointerCapture(B.pointerId)&&L.releasePointerCapture(B.pointerId),document.body.style.webkitUserSelect=D.current,p.current=null})})))}),zJ="ScrollAreaThumb",B7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=ySe(zJ,u.__scopeScrollArea);return C.createElement(BA,{present:t||i.hasThumb},C.createElement(w7t,ft({ref:e},n)))}),w7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,style:n,...i}=u,r=Wl(zJ,t),a=ySe(zJ,t),{onThumbPositionChange:o}=a,s=Op(e,d=>a.onThumbChange(d)),l=C.useRef(),c=GR(()=>{l.current&&(l.current(),l.current=void 0)},100);return C.useEffect(()=>{const d=r.viewport;if(d){const h=()=>{if(c(),!l.current){const E=T7t(d,o);l.current=E,o()}};return o(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[r.viewport,c,o]),C.createElement(SA.div,ft({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:o3(u.onPointerDownCapture,d=>{const E=d.target.getBoundingClientRect(),g=d.clientX-E.left,m=d.clientY-E.top;a.onThumbPointerDown({x:g,y:m})}),onPointerUp:o3(u.onPointerUp,a.onThumbPointerUp)}))}),ASe="ScrollAreaCorner",z7t=C.forwardRef((u,e)=>{const t=Wl(ASe,u.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&n?C.createElement(L7t,ft({},u,{ref:e})):null}),L7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,...n}=u,i=Wl(ASe,t),[r,a]=C.useState(0),[o,s]=C.useState(0),l=!!(r&&o);return Av(i.scrollbarX,()=>{var c;const d=((c=i.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;i.onCornerHeightChange(d),s(d)}),Av(i.scrollbarY,()=>{var c;const d=((c=i.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;i.onCornerWidthChange(d),a(d)}),l?C.createElement(SA.div,ft({},n,{ref:e,style:{width:r,height:o,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...u.style}})):null});function Mz(u){return u?parseInt(u,10):0}function _Se(u,e){const t=u/e;return isNaN(t)?0:t}function WR(u){const e=_Se(u.viewport,u.content),t=u.scrollbar.paddingStart+u.scrollbar.paddingEnd,n=(u.scrollbar.size-t)*e;return Math.max(n,18)}function M7t(u,e,t,n="ltr"){const i=WR(t),r=i/2,a=e||r,o=i-a,s=t.scrollbar.paddingStart+a,l=t.scrollbar.size-t.scrollbar.paddingEnd-o,c=t.content-t.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return SSe([s,l],d)(u)}function lhe(u,e,t="ltr"){const n=WR(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=e.scrollbar.size-i,a=e.content-e.viewport,o=r-n,s=t==="ltr"?[0,a]:[a*-1,0],l=p7t(u,s);return SSe([0,a],[0,o])(l)}function SSe(u,e){return t=>{if(u[0]===u[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(u[1]-u[0]);return e[0]+n*(t-u[0])}}function BSe(u,e){return u>0&&u{})=>{let t={left:u.scrollLeft,top:u.scrollTop},n=0;return function i(){const r={left:u.scrollLeft,top:u.scrollTop},a=t.left!==r.left,o=t.top!==r.top;(a||o)&&e(),t=r,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function GR(u,e){const t=pf(u),n=C.useRef(0);return C.useEffect(()=>()=>window.clearTimeout(n.current),[]),C.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(t,e)},[t,e])}function Av(u,e){const t=pf(e);wJ(()=>{let n=0;if(u){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(t)});return i.observe(u),()=>{window.cancelAnimationFrame(n),i.unobserve(u)}}},[u,t])}const P7t=v7t,N7t=b7t,che=k7t,dhe=B7t,R7t=z7t;var I7t=at((u,{scrollbarSize:e,offsetScrollbars:t,scrollbarHovered:n,hidden:i})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:t?W(e):void 0,paddingBottom:t?W(e):void 0},scrollbar:{display:i?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${W(e)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[8]:u.colors.gray[0],[`& .${s1("thumb")}`]:{backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.white,.5):u.fn.rgba(u.black,.5)}},'&[data-orientation="vertical"]':{width:W(e)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:W(e)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:s1("thumb"),flex:1,backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.white,.4):u.fn.rgba(u.black,.4),borderRadius:W(e),position:"relative",transition:"background-color 150ms ease",display:i?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:W(44),minHeight:W(44)}},corner:{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:i?"none":void 0}}));const O7t=I7t;var j7t=Object.defineProperty,V7t=Object.defineProperties,H7t=Object.getOwnPropertyDescriptors,Tz=Object.getOwnPropertySymbols,wSe=Object.prototype.hasOwnProperty,zSe=Object.prototype.propertyIsEnumerable,hhe=(u,e,t)=>e in u?j7t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,LJ=(u,e)=>{for(var t in e||(e={}))wSe.call(e,t)&&hhe(u,t,e[t]);if(Tz)for(var t of Tz(e))zSe.call(e,t)&&hhe(u,t,e[t]);return u},LSe=(u,e)=>V7t(u,H7t(e)),MSe=(u,e)=>{var t={};for(var n in u)wSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Tz)for(var n of Tz(u))e.indexOf(n)<0&&zSe.call(u,n)&&(t[n]=u[n]);return t};const TSe={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},UR=C.forwardRef((u,e)=>{const t=Je("ScrollArea",TSe,u),{children:n,className:i,classNames:r,styles:a,scrollbarSize:o,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:d,viewportRef:h,onScrollPositionChange:E,unstyled:g,variant:m,viewportProps:f}=t,p=MSe(t,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[D,x]=C.useState(!1),b=Tr(),{classes:k,cx:_}=O7t({scrollbarSize:o,offsetScrollbars:d,scrollbarHovered:D,hidden:l==="never"},{name:"ScrollArea",classNames:r,styles:a,unstyled:g,variant:m});return M.createElement(P7t,{type:l==="never"?"always":l,scrollHideDelay:s,dir:c||b.dir,ref:e,asChild:!0},M.createElement(pt,LJ({className:_(k.root,i)},p),M.createElement(N7t,LSe(LJ({},f),{className:k.viewport,ref:h,onScroll:typeof E=="function"?({currentTarget:y})=>E({x:y.scrollLeft,y:y.scrollTop}):void 0}),n),M.createElement(che,{orientation:"horizontal",className:k.scrollbar,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1)},M.createElement(dhe,{className:k.thumb})),M.createElement(che,{orientation:"vertical",className:k.scrollbar,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1)},M.createElement(dhe,{className:k.thumb})),M.createElement(R7t,{className:k.corner})))}),PSe=C.forwardRef((u,e)=>{const t=Je("ScrollAreaAutosize",TSe,u),{children:n,classNames:i,styles:r,scrollbarSize:a,scrollHideDelay:o,type:s,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:h,unstyled:E,sx:g,variant:m,viewportProps:f}=t,p=MSe(t,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return M.createElement(pt,LSe(LJ({},p),{ref:e,sx:[{display:"flex"},...BR(g)]}),M.createElement(pt,{sx:{display:"flex",flexDirection:"column",flex:1}},M.createElement(UR,{classNames:i,styles:r,scrollHideDelay:o,scrollbarSize:a,type:s,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:h,unstyled:E,variant:m,viewportProps:f},n)))});PSe.displayName="@mantine/core/ScrollAreaAutosize";UR.displayName="@mantine/core/ScrollArea";UR.Autosize=PSe;const By=UR;var $7t=Object.defineProperty,K7t=Object.defineProperties,W7t=Object.getOwnPropertyDescriptors,Pz=Object.getOwnPropertySymbols,NSe=Object.prototype.hasOwnProperty,RSe=Object.prototype.propertyIsEnumerable,Ehe=(u,e,t)=>e in u?$7t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ghe=(u,e)=>{for(var t in e||(e={}))NSe.call(e,t)&&Ehe(u,t,e[t]);if(Pz)for(var t of Pz(e))RSe.call(e,t)&&Ehe(u,t,e[t]);return u},G7t=(u,e)=>K7t(u,W7t(e)),U7t=(u,e)=>{var t={};for(var n in u)NSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Pz)for(var n of Pz(u))e.indexOf(n)<0&&RSe.call(u,n)&&(t[n]=u[n]);return t};const qR=C.forwardRef((u,e)=>{var t=u,{style:n}=t,i=U7t(t,["style"]);return M.createElement(By,G7t(ghe({},i),{style:ghe({width:"100%"},n),viewportProps:{tabIndex:-1},viewportRef:e}),i.children)});qR.displayName="@mantine/core/SelectScrollArea";var q7t=at(()=>({dropdown:{},itemsWrapper:{padding:W(4),display:"flex",width:"100%",boxSizing:"border-box"}}));const J7t=q7t;var Z7t=function(u){if(typeof document>"u")return null;var e=Array.isArray(u)?u[0]:u;return e.ownerDocument.body},bD=new WeakMap,s9=new WeakMap,l9={},sH=0,ISe=function(u){return u&&(u.host||ISe(u.parentNode))},Y7t=function(u,e){return e.map(function(t){if(u.contains(t))return t;var n=ISe(t);return n&&u.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",u,". Doing nothing"),null)}).filter(function(t){return!!t})},Q7t=function(u,e,t,n){var i=Y7t(e,Array.isArray(u)?u:[u]);l9[t]||(l9[t]=new WeakMap);var r=l9[t],a=[],o=new Set,s=new Set(i),l=function(d){!d||o.has(d)||(o.add(d),l(d.parentNode))};i.forEach(l);var c=function(d){!d||s.has(d)||Array.prototype.forEach.call(d.children,function(h){if(o.has(h))c(h);else{var E=h.getAttribute(n),g=E!==null&&E!=="false",m=(bD.get(h)||0)+1,f=(r.get(h)||0)+1;bD.set(h,m),r.set(h,f),a.push(h),m===1&&g&&s9.set(h,!0),f===1&&h.setAttribute(t,"true"),g||h.setAttribute(n,"true")}})};return c(e),o.clear(),sH++,function(){a.forEach(function(d){var h=bD.get(d)-1,E=r.get(d)-1;bD.set(d,h),r.set(d,E),h||(s9.has(d)||d.removeAttribute(n),s9.delete(d)),E||d.removeAttribute(t)}),sH--,sH||(bD=new WeakMap,bD=new WeakMap,s9=new WeakMap,l9={})}},OSe=function(u,e,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(u)?u:[u]),i=e||Z7t(u);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),Q7t(n,i,t,"aria-hidden")):function(){return null}};const X7t=["top","right","bottom","left"],Uc=Math.min,Ao=Math.max,Nz=Math.round,c9=Math.floor,Jg=u=>({x:u,y:u}),e9t={left:"right",right:"left",bottom:"top",top:"bottom"},t9t={start:"end",end:"start"};function MJ(u,e,t){return Ao(u,Uc(e,t))}function b1(u,e){return typeof u=="function"?u(e):u}function qc(u){return u.split("-")[0]}function DC(u){return u.split("-")[1]}function lue(u){return u==="x"?"y":"x"}function cue(u){return u==="y"?"height":"width"}function jp(u){return["top","bottom"].includes(qc(u))?"y":"x"}function due(u){return lue(jp(u))}function u9t(u,e,t){t===void 0&&(t=!1);const n=DC(u),i=due(u),r=cue(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=Rz(a)),[a,Rz(a)]}function n9t(u){const e=Rz(u);return[TJ(u),e,TJ(e)]}function TJ(u){return u.replace(/start|end/g,e=>t9t[e])}function i9t(u,e,t){const n=["left","right"],i=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(u){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?r:a;default:return[]}}function r9t(u,e,t,n){const i=DC(u);let r=i9t(qc(u),t==="start",n);return i&&(r=r.map(a=>a+"-"+i),e&&(r=r.concat(r.map(TJ)))),r}function Rz(u){return u.replace(/left|right|bottom|top/g,e=>e9t[e])}function a9t(u){return{top:0,right:0,bottom:0,left:0,...u}}function hue(u){return typeof u!="number"?a9t(u):{top:u,right:u,bottom:u,left:u}}function _v(u){return{...u,top:u.y,left:u.x,right:u.x+u.width,bottom:u.y+u.height}}function mhe(u,e,t){let{reference:n,floating:i}=u;const r=jp(e),a=due(e),o=cue(a),s=qc(e),l=r==="y",c=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[o]/2-i[o]/2;let E;switch(s){case"top":E={x:c,y:n.y-i.height};break;case"bottom":E={x:c,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:d};break;case"left":E={x:n.x-i.width,y:d};break;default:E={x:n.x,y:n.y}}switch(DC(e)){case"start":E[a]-=h*(t&&l?-1:1);break;case"end":E[a]+=h*(t&&l?-1:1);break}return E}const o9t=async(u,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:a}=t,o=r.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:u,floating:e,strategy:i}),{x:c,y:d}=mhe(l,n,s),h=n,E={},g=0;for(let m=0;m({name:"arrow",options:u,async fn(e){const{x:t,y:n,placement:i,rects:r,platform:a,elements:o}=e,{element:s,padding:l=0}=b1(u,e)||{};if(s==null)return{};const c=hue(l),d={x:t,y:n},h=due(i),E=cue(h),g=await a.getDimensions(s),m=h==="y",f=m?"top":"left",p=m?"bottom":"right",D=m?"clientHeight":"clientWidth",x=r.reference[E]+r.reference[h]-d[h]-r.floating[E],b=d[h]-r.reference[h],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s));let _=k?k[D]:0;(!_||!await(a.isElement==null?void 0:a.isElement(k)))&&(_=o.floating[D]||r.floating[E]);const y=x/2-b/2,S=_/2-g[E]/2-1,B=Uc(c[f],S),L=Uc(c[p],S),T=B,N=_-g[E]-L,F=_/2-g[E]/2+y,A=MJ(T,F,N),P=DC(i)!=null&&F!=A&&r.reference[E]/2-(FT<=0)){var S,B;const T=(((S=i.flip)==null?void 0:S.index)||0)+1,N=b[T];if(N)return{data:{index:T,overflows:y},reset:{placement:N}};let F=(B=y.filter(A=>A.overflows[0]<=0).sort((A,z)=>A.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!F)switch(h){case"bestFit":{var L;const A=(L=y.map(z=>[z.placement,z.overflows.filter(P=>P>0).reduce((P,I)=>P+I,0)]).sort((z,P)=>z[1]-P[1])[0])==null?void 0:L[0];A&&(F=A);break}case"initialPlacement":F=a;break}if(n!==F)return{reset:{placement:F}}}return{}}}};function fhe(u,e){return{top:u.top-e.height,right:u.right-e.width,bottom:u.bottom-e.height,left:u.left-e.width}}function phe(u){return X7t.some(e=>u[e]>=0)}const s9t=function(u){return u===void 0&&(u={}),{name:"hide",options:u,async fn(e){const{rects:t}=e,{strategy:n="referenceHidden",...i}=b1(u,e);switch(n){case"referenceHidden":{const r=await wy(e,{...i,elementContext:"reference"}),a=fhe(r,t.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:phe(a)}}}case"escaped":{const r=await wy(e,{...i,altBoundary:!0}),a=fhe(r,t.floating);return{data:{escapedOffsets:a,escaped:phe(a)}}}default:return{}}}}};function jSe(u){const e=Uc(...u.map(r=>r.left)),t=Uc(...u.map(r=>r.top)),n=Ao(...u.map(r=>r.right)),i=Ao(...u.map(r=>r.bottom));return{x:e,y:t,width:n-e,height:i-t}}function l9t(u){const e=u.slice().sort((i,r)=>i.y-r.y),t=[];let n=null;for(let i=0;in.height/2?t.push([r]):t[t.length-1].push(r),n=r}return t.map(i=>_v(jSe(i)))}const VSe=function(u){return u===void 0&&(u={}),{name:"inline",options:u,async fn(e){const{placement:t,elements:n,rects:i,platform:r,strategy:a}=e,{padding:o=2,x:s,y:l}=b1(u,e),c=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(n.reference))||[]),d=l9t(c),h=_v(jSe(c)),E=hue(o);function g(){if(d.length===2&&d[0].left>d[1].right&&s!=null&&l!=null)return d.find(f=>s>f.left-E.left&&sf.top-E.top&&l=2){if(jp(t)==="y"){const L=d[0],T=d[d.length-1],N=qc(t)==="top",F=L.top,A=T.bottom,z=N?L.left:T.left,P=N?L.right:T.right,I=P-z,j=A-F;return{top:F,bottom:A,left:z,right:P,width:I,height:j,x:z,y:F}}const f=qc(t)==="left",p=Ao(...d.map(L=>L.right)),D=Uc(...d.map(L=>L.left)),x=d.filter(L=>f?L.left===D:L.right===p),b=x[0].top,k=x[x.length-1].bottom,_=D,y=p,S=y-_,B=k-b;return{top:b,bottom:k,left:_,right:y,width:S,height:B,x:_,y:b}}return h}const m=await r.getElementRects({reference:{getBoundingClientRect:g},floating:n.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};async function c9t(u,e){const{placement:t,platform:n,elements:i}=u,r=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=qc(t),o=DC(t),s=jp(t)==="y",l=["left","top"].includes(a)?-1:1,c=r&&s?-1:1,d=b1(e,u);let{mainAxis:h,crossAxis:E,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return o&&typeof g=="number"&&(E=o==="end"?g*-1:g),s?{x:E*c,y:h*l}:{x:h*l,y:E*c}}const gue=function(u){return u===void 0&&(u=0),{name:"offset",options:u,async fn(e){const{x:t,y:n}=e,i=await c9t(e,u);return{x:t+i.x,y:n+i.y,data:i}}}},JR=function(u){return u===void 0&&(u={}),{name:"shift",options:u,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:o={fn:f=>{let{x:p,y:D}=f;return{x:p,y:D}}},...s}=b1(u,e),l={x:t,y:n},c=await wy(e,s),d=jp(qc(i)),h=lue(d);let E=l[h],g=l[d];if(r){const f=h==="y"?"top":"left",p=h==="y"?"bottom":"right",D=E+c[f],x=E-c[p];E=MJ(D,E,x)}if(a){const f=d==="y"?"top":"left",p=d==="y"?"bottom":"right",D=g+c[f],x=g-c[p];g=MJ(D,g,x)}const m=o.fn({...e,[h]:E,[d]:g});return{...m,data:{x:m.x-t,y:m.y-n}}}}},HSe=function(u){return u===void 0&&(u={}),{options:u,fn(e){const{x:t,y:n,placement:i,rects:r,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=b1(u,e),c={x:t,y:n},d=jp(i),h=lue(d);let E=c[h],g=c[d];const m=b1(o,e),f=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const x=h==="y"?"height":"width",b=r.reference[h]-r.floating[x]+f.mainAxis,k=r.reference[h]+r.reference[x]-f.mainAxis;Ek&&(E=k)}if(l){var p,D;const x=h==="y"?"width":"height",b=["top","left"].includes(qc(i)),k=r.reference[d]-r.floating[x]+(b&&((p=a.offset)==null?void 0:p[d])||0)+(b?0:f.crossAxis),_=r.reference[d]+r.reference[x]+(b?0:((D=a.offset)==null?void 0:D[d])||0)-(b?f.crossAxis:0);g_&&(g=_)}return{[h]:E,[d]:g}}}},$Se=function(u){return u===void 0&&(u={}),{name:"size",options:u,async fn(e){const{placement:t,rects:n,platform:i,elements:r}=e,{apply:a=()=>{},...o}=b1(u,e),s=await wy(e,o),l=qc(t),c=DC(t),d=jp(t)==="y",{width:h,height:E}=n.floating;let g,m;l==="top"||l==="bottom"?(g=l,m=c===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(m=l,g=c==="end"?"top":"bottom");const f=E-s[g],p=h-s[m],D=!e.middlewareData.shift;let x=f,b=p;if(d){const _=h-s.left-s.right;b=c||D?Uc(p,_):_}else{const _=E-s.top-s.bottom;x=c||D?Uc(f,_):_}if(D&&!c){const _=Ao(s.left,0),y=Ao(s.right,0),S=Ao(s.top,0),B=Ao(s.bottom,0);d?b=h-2*(_!==0||y!==0?_+y:Ao(s.left,s.right)):x=E-2*(S!==0||B!==0?S+B:Ao(s.top,s.bottom))}await a({...e,availableWidth:b,availableHeight:x});const k=await i.getDimensions(r.floating);return h!==k.width||E!==k.height?{reset:{rects:!0}}:{}}}};function Zg(u){return KSe(u)?(u.nodeName||"").toLowerCase():"#document"}function k0(u){var e;return(u==null||(e=u.ownerDocument)==null?void 0:e.defaultView)||window}function y4(u){var e;return(e=(KSe(u)?u.ownerDocument:u.document)||window.document)==null?void 0:e.documentElement}function KSe(u){return u instanceof Node||u instanceof k0(u).Node}function s4(u){return u instanceof Element||u instanceof k0(u).Element}function k1(u){return u instanceof HTMLElement||u instanceof k0(u).HTMLElement}function Dhe(u){return typeof ShadowRoot>"u"?!1:u instanceof ShadowRoot||u instanceof k0(u).ShadowRoot}function wA(u){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ll(u);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function d9t(u){return["table","td","th"].includes(Zg(u))}function mue(u){const e=fue(),t=Ll(u);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function h9t(u){let e=Sv(u);for(;k1(e)&&!ZR(e);){if(mue(e))return e;e=Sv(e)}return null}function fue(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ZR(u){return["html","body","#document"].includes(Zg(u))}function Ll(u){return k0(u).getComputedStyle(u)}function YR(u){return s4(u)?{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}:{scrollLeft:u.pageXOffset,scrollTop:u.pageYOffset}}function Sv(u){if(Zg(u)==="html")return u;const e=u.assignedSlot||u.parentNode||Dhe(u)&&u.host||y4(u);return Dhe(e)?e.host:e}function WSe(u){const e=Sv(u);return ZR(e)?u.ownerDocument?u.ownerDocument.body:u.body:k1(e)&&wA(e)?e:WSe(e)}function Eg(u,e){var t;e===void 0&&(e=[]);const n=WSe(u),i=n===((t=u.ownerDocument)==null?void 0:t.body),r=k0(n);return i?e.concat(r,r.visualViewport||[],wA(n)?n:[]):e.concat(n,Eg(n))}function GSe(u){const e=Ll(u);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=k1(u),r=i?u.offsetWidth:t,a=i?u.offsetHeight:n,o=Nz(t)!==r||Nz(n)!==a;return o&&(t=r,n=a),{width:t,height:n,$:o}}function pue(u){return s4(u)?u:u.contextElement}function p5(u){const e=pue(u);if(!k1(e))return Jg(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:r}=GSe(e);let a=(r?Nz(t.width):t.width)/n,o=(r?Nz(t.height):t.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const E9t=Jg(0);function USe(u){const e=k0(u);return!fue()||!e.visualViewport?E9t:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function g9t(u,e,t){return e===void 0&&(e=!1),!t||e&&t!==k0(u)?!1:e}function Q3(u,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=u.getBoundingClientRect(),r=pue(u);let a=Jg(1);e&&(n?s4(n)&&(a=p5(n)):a=p5(u));const o=g9t(r,t,n)?USe(r):Jg(0);let s=(i.left+o.x)/a.x,l=(i.top+o.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(r){const h=k0(r),E=n&&s4(n)?k0(n):n;let g=h.frameElement;for(;g&&n&&E!==h;){const m=p5(g),f=g.getBoundingClientRect(),p=Ll(g),D=f.left+(g.clientLeft+parseFloat(p.paddingLeft))*m.x,x=f.top+(g.clientTop+parseFloat(p.paddingTop))*m.y;s*=m.x,l*=m.y,c*=m.x,d*=m.y,s+=D,l+=x,g=k0(g).frameElement}}return _v({width:c,height:d,x:s,y:l})}function m9t(u){let{rect:e,offsetParent:t,strategy:n}=u;const i=k1(t),r=y4(t);if(t===r)return e;let a={scrollLeft:0,scrollTop:0},o=Jg(1);const s=Jg(0);if((i||!i&&n!=="fixed")&&((Zg(t)!=="body"||wA(r))&&(a=YR(t)),k1(t))){const l=Q3(t);o=p5(t),s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}return{width:e.width*o.x,height:e.height*o.y,x:e.x*o.x-a.scrollLeft*o.x+s.x,y:e.y*o.y-a.scrollTop*o.y+s.y}}function f9t(u){return Array.from(u.getClientRects())}function qSe(u){return Q3(y4(u)).left+YR(u).scrollLeft}function p9t(u){const e=y4(u),t=YR(u),n=u.ownerDocument.body,i=Ao(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Ao(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+qSe(u);const o=-t.scrollTop;return Ll(n).direction==="rtl"&&(a+=Ao(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:a,y:o}}function D9t(u,e){const t=k0(u),n=y4(u),i=t.visualViewport;let r=n.clientWidth,a=n.clientHeight,o=0,s=0;if(i){r=i.width,a=i.height;const l=fue();(!l||l&&e==="fixed")&&(o=i.offsetLeft,s=i.offsetTop)}return{width:r,height:a,x:o,y:s}}function x9t(u,e){const t=Q3(u,!0,e==="fixed"),n=t.top+u.clientTop,i=t.left+u.clientLeft,r=k1(u)?p5(u):Jg(1),a=u.clientWidth*r.x,o=u.clientHeight*r.y,s=i*r.x,l=n*r.y;return{width:a,height:o,x:s,y:l}}function xhe(u,e,t){let n;if(e==="viewport")n=D9t(u,t);else if(e==="document")n=p9t(y4(u));else if(s4(e))n=x9t(e,t);else{const i=USe(u);n={...e,x:e.x-i.x,y:e.y-i.y}}return _v(n)}function JSe(u,e){const t=Sv(u);return t===e||!s4(t)||ZR(t)?!1:Ll(t).position==="fixed"||JSe(t,e)}function v9t(u,e){const t=e.get(u);if(t)return t;let n=Eg(u).filter(o=>s4(o)&&Zg(o)!=="body"),i=null;const r=Ll(u).position==="fixed";let a=r?Sv(u):u;for(;s4(a)&&!ZR(a);){const o=Ll(a),s=mue(a);!s&&o.position==="fixed"&&(i=null),(r?!s&&!i:!s&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||wA(a)&&!s&&JSe(u,a))?n=n.filter(c=>c!==a):i=o,a=Sv(a)}return e.set(u,n),n}function C9t(u){let{element:e,boundary:t,rootBoundary:n,strategy:i}=u;const a=[...t==="clippingAncestors"?v9t(e,this._c):[].concat(t),n],o=a[0],s=a.reduce((l,c)=>{const d=xhe(e,c,i);return l.top=Ao(d.top,l.top),l.right=Uc(d.right,l.right),l.bottom=Uc(d.bottom,l.bottom),l.left=Ao(d.left,l.left),l},xhe(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function b9t(u){return GSe(u)}function k9t(u,e,t){const n=k1(e),i=y4(e),r=t==="fixed",a=Q3(u,!0,r,e);let o={scrollLeft:0,scrollTop:0};const s=Jg(0);if(n||!n&&!r)if((Zg(e)!=="body"||wA(i))&&(o=YR(e)),n){const l=Q3(e,!0,r,e);s.x=l.x+e.clientLeft,s.y=l.y+e.clientTop}else i&&(s.x=qSe(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function vhe(u,e){return!k1(u)||Ll(u).position==="fixed"?null:e?e(u):u.offsetParent}function ZSe(u,e){const t=k0(u);if(!k1(u))return t;let n=vhe(u,e);for(;n&&d9t(n)&&Ll(n).position==="static";)n=vhe(n,e);return n&&(Zg(n)==="html"||Zg(n)==="body"&&Ll(n).position==="static"&&!mue(n))?t:n||h9t(u)||t}const y9t=async function(u){let{reference:e,floating:t,strategy:n}=u;const i=this.getOffsetParent||ZSe,r=this.getDimensions;return{reference:k9t(e,await i(t),n),floating:{x:0,y:0,...await r(t)}}};function F9t(u){return Ll(u).direction==="rtl"}const A9t={convertOffsetParentRelativeRectToViewportRelativeRect:m9t,getDocumentElement:y4,getClippingRect:C9t,getOffsetParent:ZSe,getElementRects:y9t,getClientRects:f9t,getDimensions:b9t,getScale:p5,isElement:s4,isRTL:F9t};function _9t(u,e){let t=null,n;const i=y4(u);function r(){clearTimeout(n),t&&t.disconnect(),t=null}function a(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),r();const{left:l,top:c,width:d,height:h}=u.getBoundingClientRect();if(o||e(),!d||!h)return;const E=c9(c),g=c9(i.clientWidth-(l+d)),m=c9(i.clientHeight-(c+h)),f=c9(l),D={rootMargin:-E+"px "+-g+"px "+-m+"px "+-f+"px",threshold:Ao(0,Uc(1,s))||1};let x=!0;function b(k){const _=k[0].intersectionRatio;if(_!==s){if(!x)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{t=new IntersectionObserver(b,{...D,root:i.ownerDocument})}catch{t=new IntersectionObserver(b,D)}t.observe(u)}return a(!0),r}function YSe(u,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=pue(u),c=i||r?[...l?Eg(l):[],...Eg(e)]:[];c.forEach(p=>{i&&p.addEventListener("scroll",t,{passive:!0}),r&&p.addEventListener("resize",t)});const d=l&&o?_9t(l,t):null;let h=-1,E=null;a&&(E=new ResizeObserver(p=>{let[D]=p;D&&D.target===l&&E&&(E.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{E&&E.observe(e)})),t()}),l&&!s&&E.observe(l),E.observe(e));let g,m=s?Q3(u):null;s&&f();function f(){const p=Q3(u);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&t(),m=p,g=requestAnimationFrame(f)}return t(),()=>{c.forEach(p=>{i&&p.removeEventListener("scroll",t),r&&p.removeEventListener("resize",t)}),d&&d(),E&&E.disconnect(),E=null,s&&cancelAnimationFrame(g)}}const QSe=(u,e,t)=>{const n=new Map,i={platform:A9t,...t},r={...i.platform,_c:n};return o9t(u,e,{...i,platform:r})},XSe=u=>{const{element:e,padding:t}=u;function n(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:u,fn(i){return n(e)?e.current!=null?Iz({element:e.current,padding:t}).fn(i):{}:e?Iz({element:e,padding:t}).fn(i):{}}}};var i8=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Oz(u,e){if(u===e)return!0;if(typeof u!=typeof e)return!1;if(typeof u=="function"&&u.toString()===e.toString())return!0;let t,n,i;if(u&&e&&typeof u=="object"){if(Array.isArray(u)){if(t=u.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!Oz(u[n],e[n]))return!1;return!0}if(i=Object.keys(u),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){const r=i[n];if(!(r==="_owner"&&u.$$typeof)&&!Oz(u[r],e[r]))return!1}return!0}return u!==u&&e!==e}function Che(u){const e=C.useRef(u);return i8(()=>{e.current=u}),e}function S9t(u){u===void 0&&(u={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:i,whileElementsMounted:r,open:a}=u,[o,s]=C.useState({x:null,y:null,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[l,c]=C.useState(n);Oz(l,n)||c(n);const d=C.useRef(null),h=C.useRef(null),E=C.useRef(o),g=Che(r),m=Che(i),[f,p]=C.useState(null),[D,x]=C.useState(null),b=C.useCallback(L=>{d.current!==L&&(d.current=L,p(L))},[]),k=C.useCallback(L=>{h.current!==L&&(h.current=L,x(L))},[]),_=C.useCallback(()=>{if(!d.current||!h.current)return;const L={placement:e,strategy:t,middleware:l};m.current&&(L.platform=m.current),QSe(d.current,h.current,L).then(T=>{const N={...T,isPositioned:!0};y.current&&!Oz(E.current,N)&&(E.current=N,Xo.flushSync(()=>{s(N)}))})},[l,e,t,m]);i8(()=>{a===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,s(L=>({...L,isPositioned:!1})))},[a]);const y=C.useRef(!1);i8(()=>(y.current=!0,()=>{y.current=!1}),[]),i8(()=>{if(f&&D){if(g.current)return g.current(f,D,_);_()}},[f,D,_,g]);const S=C.useMemo(()=>({reference:d,floating:h,setReference:b,setFloating:k}),[b,k]),B=C.useMemo(()=>({reference:f,floating:D}),[f,D]);return C.useMemo(()=>({...o,update:_,refs:S,elements:B,reference:b,floating:k}),[o,_,S,B,b,k])}var Bv=typeof document<"u"?C.useLayoutEffect:C.useEffect;let lH=!1,B9t=0;const bhe=()=>"floating-ui-"+B9t++;function w9t(){const[u,e]=C.useState(()=>lH?bhe():void 0);return Bv(()=>{u==null&&e(bhe())},[]),C.useEffect(()=>{lH||(lH=!0)},[]),u}const z9t=vg["useId".toString()],khe=z9t||w9t;function L9t(){const u=new Map;return{emit(e,t){var n;(n=u.get(e))==null||n.forEach(i=>i(t))},on(e,t){u.set(e,[...u.get(e)||[],t])},off(e,t){u.set(e,(u.get(e)||[]).filter(n=>n!==t))}}}const M9t=C.createContext(null),T9t=C.createContext(null),e8e=()=>{var u;return((u=C.useContext(M9t))==null?void 0:u.id)||null},Due=()=>C.useContext(T9t);function ME(u){return(u==null?void 0:u.ownerDocument)||document}function P9t(){const u=navigator.userAgentData;return u!=null&&u.platform?u.platform:navigator.platform}function N9t(){const u=navigator.userAgentData;return u&&Array.isArray(u.brands)?u.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function xue(u){return ME(u).defaultView||window}function Zd(u){return u?u instanceof xue(u).Element:!1}function t8e(u){return u?u instanceof xue(u).HTMLElement:!1}function R9t(u){if(typeof ShadowRoot>"u")return!1;const e=xue(u).ShadowRoot;return u instanceof e||u instanceof ShadowRoot}function I9t(u){if(u.mozInputSource===0&&u.isTrusted)return!0;const e=/Android/i;return(e.test(P9t())||e.test(N9t()))&&u.pointerType?u.type==="click"&&u.buttons===1:u.detail===0&&!u.pointerType}function O9t(u){return u.width===0&&u.height===0||u.width===1&&u.height===1&&u.pressure===0&&u.detail===0&&u.pointerType!=="mouse"||u.width<1&&u.height<1&&u.pressure===0&&u.detail===0}function u8e(u,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(u)}function yhe(u){const e=C.useRef(u);return Bv(()=>{e.current=u}),e}const Fhe="data-floating-ui-safe-polygon";function r8(u,e,t){return t&&!u8e(t)?0:typeof u=="number"?u:u==null?void 0:u[e]}const j9t=function(u,e){let{enabled:t=!0,delay:n=0,handleClose:i=null,mouseOnly:r=!1,restMs:a=0,move:o=!0}=e===void 0?{}:e;const{open:s,onOpenChange:l,dataRef:c,events:d,elements:{domReference:h,floating:E},refs:g}=u,m=Due(),f=e8e(),p=yhe(i),D=yhe(n),x=C.useRef(),b=C.useRef(),k=C.useRef(),_=C.useRef(),y=C.useRef(!0),S=C.useRef(!1),B=C.useRef(()=>{}),L=C.useCallback(()=>{var A;const z=(A=c.current.openEvent)==null?void 0:A.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[c]);C.useEffect(()=>{if(!t)return;function A(){clearTimeout(b.current),clearTimeout(_.current),y.current=!0}return d.on("dismiss",A),()=>{d.off("dismiss",A)}},[t,d]),C.useEffect(()=>{if(!t||!p.current||!s)return;function A(){L()&&l(!1)}const z=ME(E).documentElement;return z.addEventListener("mouseleave",A),()=>{z.removeEventListener("mouseleave",A)}},[E,s,l,t,p,c,L]);const T=C.useCallback(function(A){A===void 0&&(A=!0);const z=r8(D.current,"close",x.current);z&&!k.current?(clearTimeout(b.current),b.current=setTimeout(()=>l(!1),z)):A&&(clearTimeout(b.current),l(!1))},[D,l]),N=C.useCallback(()=>{B.current(),k.current=void 0},[]),F=C.useCallback(()=>{if(S.current){const A=ME(g.floating.current).body;A.style.pointerEvents="",A.removeAttribute(Fhe),S.current=!1}},[g]);return C.useEffect(()=>{if(!t)return;function A(){return c.current.openEvent?["click","mousedown"].includes(c.current.openEvent.type):!1}function z(j){if(clearTimeout(b.current),y.current=!1,r&&!u8e(x.current)||a>0&&r8(D.current,"open")===0)return;c.current.openEvent=j;const V=r8(D.current,"open",x.current);V?b.current=setTimeout(()=>{l(!0)},V):l(!0)}function P(j){if(A())return;B.current();const V=ME(E);if(clearTimeout(_.current),p.current){s||clearTimeout(b.current),k.current=p.current({...u,tree:m,x:j.clientX,y:j.clientY,onClose(){F(),N(),T()}});const H=k.current;V.addEventListener("mousemove",H),B.current=()=>{V.removeEventListener("mousemove",H)};return}T()}function I(j){A()||p.current==null||p.current({...u,tree:m,x:j.clientX,y:j.clientY,onClose(){F(),N(),T()}})(j)}if(Zd(h)){const j=h;return s&&j.addEventListener("mouseleave",I),E==null||E.addEventListener("mouseleave",I),o&&j.addEventListener("mousemove",z,{once:!0}),j.addEventListener("mouseenter",z),j.addEventListener("mouseleave",P),()=>{s&&j.removeEventListener("mouseleave",I),E==null||E.removeEventListener("mouseleave",I),o&&j.removeEventListener("mousemove",z),j.removeEventListener("mouseenter",z),j.removeEventListener("mouseleave",P)}}},[h,E,t,u,r,a,o,T,N,F,l,s,m,D,p,c]),Bv(()=>{var A;if(t&&s&&(A=p.current)!=null&&A.__options.blockPointerEvents&&L()){const I=ME(E).body;if(I.setAttribute(Fhe,""),I.style.pointerEvents="none",S.current=!0,Zd(h)&&E){var z,P;const j=h,V=m==null||(z=m.nodesRef.current.find(H=>H.id===f))==null||(P=z.context)==null?void 0:P.elements.floating;return V&&(V.style.pointerEvents=""),j.style.pointerEvents="auto",E.style.pointerEvents="auto",()=>{j.style.pointerEvents="",E.style.pointerEvents=""}}}},[t,s,f,E,h,m,p,c,L]),Bv(()=>{s||(x.current=void 0,N(),F())},[s,N,F]),C.useEffect(()=>()=>{N(),clearTimeout(b.current),clearTimeout(_.current),F()},[t,N,F]),C.useMemo(()=>{if(!t)return{};function A(z){x.current=z.pointerType}return{reference:{onPointerDown:A,onPointerEnter:A,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{y.current||l(!0)},a))}},floating:{onMouseEnter(){clearTimeout(b.current)},onMouseLeave(){d.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),T(!1)}}}},[d,t,a,s,l,T])},n8e=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),i8e=()=>C.useContext(n8e),V9t=u=>{let{children:e,delay:t,timeoutMs:n=0}=u;const[i,r]=C.useReducer((s,l)=>({...s,...l}),{delay:t,timeoutMs:n,initialDelay:t,currentId:null,isInstantPhase:!1}),a=C.useRef(null),o=C.useCallback(s=>{r({currentId:s})},[]);return Bv(()=>{i.currentId?a.current===null?a.current=i.currentId:r({isInstantPhase:!0}):(r({isInstantPhase:!1}),a.current=null)},[i.currentId]),C.createElement(n8e.Provider,{value:C.useMemo(()=>({...i,setState:r,setCurrentId:o}),[i,r,o])},e)},H9t=(u,e)=>{let{open:t,onOpenChange:n}=u,{id:i}=e;const{currentId:r,setCurrentId:a,initialDelay:o,setState:s,timeoutMs:l}=i8e();C.useEffect(()=>{r&&(s({delay:{open:1,close:r8(o,"close")}}),r!==i&&n(!1))},[i,n,s,r,o]),C.useEffect(()=>{function c(){n(!1),s({delay:o,currentId:null})}if(!t&&r===i)if(l){const d=window.setTimeout(c,l);return()=>{clearTimeout(d)}}else c()},[t,s,r,i,n,o,l]),C.useEffect(()=>{t&&a(i)},[t,a,i])};function $9t(u){let e=u.activeElement;for(;((t=e)==null||(n=t.shadowRoot)==null?void 0:n.activeElement)!=null;){var t,n;e=e.shadowRoot.activeElement}return e}function Ahe(u,e){if(!u||!e)return!1;const t=e.getRootNode&&e.getRootNode();if(u.contains(e))return!0;if(t&&R9t(t)){let n=e;do{if(n&&u===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function cH(u,e){let t=u.filter(i=>{var r;return i.parentId===e&&((r=i.context)==null?void 0:r.open)})||[],n=t;for(;n.length;)n=u.filter(i=>{var r;return(r=n)==null?void 0:r.some(a=>{var o;return i.parentId===a.id&&((o=i.context)==null?void 0:o.open)})})||[],t=t.concat(n);return t}function K9t(u){return"composedPath"in u?u.composedPath()[0]:u.target}const W9t=vg["useInsertionEffect".toString()],G9t=W9t||(u=>u());function r8e(u){const e=C.useRef(()=>{});return G9t(()=>{e.current=u}),C.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i!1),k=typeof h=="function"?b:h,_=C.useRef(!1),{escapeKeyBubbles:y,outsidePressBubbles:S}=J9t(p);return C.useEffect(()=>{if(!t||!c)return;l.current.__escapeKeyBubbles=y,l.current.__outsidePressBubbles=S;function B(A){if(A.key==="Escape"){const z=D?cH(D.nodesRef.current,r):[];if(z.length>0){let P=!0;if(z.forEach(I=>{var j;if((j=I.context)!=null&&j.open&&!I.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}i.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function L(A){const z=_.current;if(_.current=!1,z||typeof k=="function"&&!k(A))return;const P=K9t(A);if(t8e(P)&&s){const V=s.ownerDocument.defaultView||window,H=P.scrollWidth>P.clientWidth,q=P.scrollHeight>P.clientHeight;let J=q&&A.offsetX>P.clientWidth;if(q&&V.getComputedStyle(P).direction==="rtl"&&(J=A.offsetX<=P.offsetWidth-P.clientWidth),J||H&&A.offsetY>P.clientHeight)return}const I=D&&cH(D.nodesRef.current,r).some(V=>{var H;return a8(A,(H=V.context)==null?void 0:H.elements.floating)});if(a8(A,s)||a8(A,o)||I)return;const j=D?cH(D.nodesRef.current,r):[];if(j.length>0){let V=!0;if(j.forEach(H=>{var q;if((q=H.context)!=null&&q.open&&!H.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}i.emit("dismiss",{type:"outsidePress",data:{returnFocus:x?{preventScroll:!0}:I9t(A)||O9t(A)}}),n(!1)}function T(){n(!1)}const N=ME(s);d&&N.addEventListener("keydown",B),k&&N.addEventListener(E,L);let F=[];return f&&(Zd(o)&&(F=Eg(o)),Zd(s)&&(F=F.concat(Eg(s))),!Zd(a)&&a&&a.contextElement&&(F=F.concat(Eg(a.contextElement)))),F=F.filter(A=>{var z;return A!==((z=N.defaultView)==null?void 0:z.visualViewport)}),F.forEach(A=>{A.addEventListener("scroll",T,{passive:!0})}),()=>{d&&N.removeEventListener("keydown",B),k&&N.removeEventListener(E,L),F.forEach(A=>{A.removeEventListener("scroll",T)})}},[l,s,o,a,d,k,E,i,D,r,t,n,f,c,y,S,x]),C.useEffect(()=>{_.current=!1},[k,E]),C.useMemo(()=>c?{reference:{[U9t[m]]:()=>{g&&(i.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[q9t[E]]:()=>{_.current=!0}}}:{},[c,i,g,E,m,n])},Y9t=function(u,e){let{open:t,onOpenChange:n,dataRef:i,events:r,refs:a,elements:{floating:o,domReference:s}}=u,{enabled:l=!0,keyboardOnly:c=!0}=e===void 0?{}:e;const d=C.useRef(""),h=C.useRef(!1),E=C.useRef();return C.useEffect(()=>{if(!l)return;const m=ME(o).defaultView||window;function f(){!t&&t8e(s)&&s===$9t(ME(s))&&(h.current=!0)}return m.addEventListener("blur",f),()=>{m.removeEventListener("blur",f)}},[o,s,t,l]),C.useEffect(()=>{if(!l)return;function g(m){(m.type==="referencePress"||m.type==="escapeKey")&&(h.current=!0)}return r.on("dismiss",g),()=>{r.off("dismiss",g)}},[r,l]),C.useEffect(()=>()=>{clearTimeout(E.current)},[]),C.useMemo(()=>l?{reference:{onPointerDown(g){let{pointerType:m}=g;d.current=m,h.current=!!(m&&c)},onMouseLeave(){h.current=!1},onFocus(g){var m;h.current||g.type==="focus"&&((m=i.current.openEvent)==null?void 0:m.type)==="mousedown"&&i.current.openEvent&&a8(i.current.openEvent,s)||(i.current.openEvent=g.nativeEvent,n(!0))},onBlur(g){h.current=!1;const m=g.relatedTarget,f=Zd(m)&&m.hasAttribute("data-floating-ui-focus-guard")&&m.getAttribute("data-type")==="outside";E.current=setTimeout(()=>{Ahe(a.floating.current,m)||Ahe(s,m)||f||n(!1)})}}}:{},[l,c,s,a,i,n])},Q9t=function(u,e){let{open:t}=u,{enabled:n=!0,role:i="dialog"}=e===void 0?{}:e;const r=khe(),a=khe();return C.useMemo(()=>{const o={id:r,role:i};return n?i==="tooltip"?{reference:{"aria-describedby":t?r:void 0},floating:o}:{reference:{"aria-expanded":t?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":t?r:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:a}},floating:{...o,...i==="menu"&&{"aria-labelledby":a}}}:{}},[n,i,t,r,a])};function vue(u){u===void 0&&(u={});const{open:e=!1,onOpenChange:t,nodeId:n}=u,i=S9t(u),r=Due(),a=C.useRef(null),o=C.useRef({}),s=C.useState(()=>L9t())[0],[l,c]=C.useState(null),d=C.useCallback(p=>{const D=Zd(p)?{getBoundingClientRect:()=>p.getBoundingClientRect(),contextElement:p}:p;i.refs.setReference(D)},[i.refs]),h=C.useCallback(p=>{(Zd(p)||p===null)&&(a.current=p,c(p)),(Zd(i.refs.reference.current)||i.refs.reference.current===null||p!==null&&!Zd(p))&&i.refs.setReference(p)},[i.refs]),E=C.useMemo(()=>({...i.refs,setReference:h,setPositionReference:d,domReference:a}),[i.refs,h,d]),g=C.useMemo(()=>({...i.elements,domReference:l}),[i.elements,l]),m=r8e(t),f=C.useMemo(()=>({...i,refs:E,elements:g,dataRef:o,nodeId:n,events:s,open:e,onOpenChange:m}),[i,n,s,e,m,E,g]);return Bv(()=>{const p=r==null?void 0:r.nodesRef.current.find(D=>D.id===n);p&&(p.context=f)}),C.useMemo(()=>({...i,context:f,refs:E,reference:h,positionReference:d}),[i,E,f,h,d])}function dH(u,e,t){const n=new Map;return{...t==="floating"&&{tabIndex:-1},...u,...e.map(i=>i?i[t]:null).concat(u).reduce((i,r)=>(r&&Object.entries(r).forEach(a=>{let[o,s]=a;if(o.indexOf("on")===0){if(n.has(o)||n.set(o,[]),typeof s=="function"){var l;(l=n.get(o))==null||l.push(s),i[o]=function(){for(var c,d=arguments.length,h=new Array(d),E=0;Eg(...h))}}}else i[o]=s}),i),{})}}const X9t=function(u){u===void 0&&(u=[]);const e=u,t=C.useCallback(r=>dH(r,u,"reference"),e),n=C.useCallback(r=>dH(r,u,"floating"),e),i=C.useCallback(r=>dH(r,u,"item"),u.map(r=>r==null?void 0:r.item));return C.useMemo(()=>({getReferenceProps:t,getFloatingProps:n,getItemProps:i}),[t,n,i])};function a8e({opened:u,floating:e,position:t,positionDependencies:n}){const[i,r]=C.useState(0);C.useEffect(()=>{if(e.refs.reference.current&&e.refs.floating.current)return YSe(e.refs.reference.current,e.refs.floating.current,e.update)},[e.refs.reference.current,e.refs.floating.current,u,i,t]),Lo(()=>{e.update()},n),Lo(()=>{r(a=>a+1)},[u])}function eSt(u){const e=[gue(u.offset)];return u.middlewares.shift&&e.push(JR({limiter:HSe()})),u.middlewares.flip&&e.push(Eue()),u.middlewares.inline&&e.push(VSe()),e.push(XSe({element:u.arrowRef,padding:u.arrowOffset})),e}function tSt(u){const[e,t]=cs({value:u.opened,defaultValue:u.defaultOpened,finalValue:!1,onChange:u.onChange}),n=()=>{var a;(a=u.onClose)==null||a.call(u),t(!1)},i=()=>{var a,o;e?((a=u.onClose)==null||a.call(u),t(!1)):((o=u.onOpen)==null||o.call(u),t(!0))},r=vue({placement:u.position,middleware:[...eSt(u),...u.width==="target"?[$Se({apply({rects:a}){var o,s;Object.assign((s=(o=r.refs.floating.current)==null?void 0:o.style)!=null?s:{},{width:`${a.reference.width}px`})}})]:[]]});return a8e({opened:u.opened,position:u.position,positionDependencies:u.positionDependencies,floating:r}),Lo(()=>{var a;(a=u.onPositionChange)==null||a.call(u,r.placement)},[r.placement]),Lo(()=>{var a,o;u.opened?(o=u.onOpen)==null||o.call(u):(a=u.onClose)==null||a.call(u)},[u.opened]),{floating:r,controlled:typeof u.opened=="boolean",opened:e,onClose:n,onToggle:i}}const o8e={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[uSt,s8e]=P1(o8e.context);var nSt=Object.defineProperty,iSt=Object.defineProperties,rSt=Object.getOwnPropertyDescriptors,jz=Object.getOwnPropertySymbols,l8e=Object.prototype.hasOwnProperty,c8e=Object.prototype.propertyIsEnumerable,_he=(u,e,t)=>e in u?nSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,d9=(u,e)=>{for(var t in e||(e={}))l8e.call(e,t)&&_he(u,t,e[t]);if(jz)for(var t of jz(e))c8e.call(e,t)&&_he(u,t,e[t]);return u},aSt=(u,e)=>iSt(u,rSt(e)),oSt=(u,e)=>{var t={};for(var n in u)l8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&jz)for(var n of jz(u))e.indexOf(n)<0&&c8e.call(u,n)&&(t[n]=u[n]);return t};const sSt={refProp:"ref",popupType:"dialog"},d8e=C.forwardRef((u,e)=>{const t=Je("PopoverTarget",sSt,u),{children:n,refProp:i,popupType:r}=t,a=oSt(t,["children","refProp","popupType"]);if(!fC(n))throw new Error(o8e.children);const o=a,s=s8e(),l=N1(s.reference,n.ref,e),c=s.withRoles?{"aria-haspopup":r,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return C.cloneElement(n,d9(aSt(d9(d9(d9({},o),c),s.targetProps),{className:B7e(s.targetProps.className,o.className,n.props.className),[i]:l}),s.controlled?null:{onClick:s.onToggle}))});d8e.displayName="@mantine/core/PopoverTarget";var lSt=at((u,{radius:e,shadow:t})=>({dropdown:{position:"absolute",backgroundColor:u.white,background:u.colorScheme==="dark"?u.colors.dark[6]:u.white,border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,padding:`${u.spacing.sm} ${u.spacing.md}`,boxShadow:u.shadows[t]||t||"none",borderRadius:u.fn.radius(e),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,zIndex:1}}));const cSt=lSt;var dSt=Object.defineProperty,She=Object.getOwnPropertySymbols,hSt=Object.prototype.hasOwnProperty,ESt=Object.prototype.propertyIsEnumerable,Bhe=(u,e,t)=>e in u?dSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,kD=(u,e)=>{for(var t in e||(e={}))hSt.call(e,t)&&Bhe(u,t,e[t]);if(She)for(var t of She(e))ESt.call(e,t)&&Bhe(u,t,e[t]);return u};const whe={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function gSt({transition:u,state:e,duration:t,timingFunction:n}){const i={transitionDuration:`${t}ms`,transitionTimingFunction:n};return typeof u=="string"?u in Q7?kD(kD(kD({transitionProperty:Q7[u].transitionProperty},i),Q7[u].common),Q7[u][whe[e]]):null:kD(kD(kD({transitionProperty:u.transitionProperty},i),u.common),u[whe[e]])}function mSt({duration:u,exitDuration:e,timingFunction:t,mounted:n,onEnter:i,onExit:r,onEntered:a,onExited:o}){const s=Tr(),l=AA(),c=s.respectReducedMotion?l:!1,[d,h]=C.useState(c?0:u),[E,g]=C.useState(n?"entered":"exited"),m=C.useRef(-1),f=p=>{const D=p?i:r,x=p?a:o;g(p?"pre-entering":"pre-exiting"),window.clearTimeout(m.current);const b=c?0:p?u:e;if(h(b),b===0)typeof D=="function"&&D(),typeof x=="function"&&x(),g(p?"entered":"exited");else{const k=window.setTimeout(()=>{typeof D=="function"&&D(),g(p?"entering":"exiting")},10);m.current=window.setTimeout(()=>{window.clearTimeout(k),typeof x=="function"&&x(),g(p?"entered":"exited")},b)}};return Lo(()=>{f(n)},[n]),C.useEffect(()=>()=>window.clearTimeout(m.current),[]),{transitionDuration:d,transitionStatus:E,transitionTimingFunction:t||s.transitionTimingFunction}}function Vp({keepMounted:u,transition:e,duration:t=250,exitDuration:n=t,mounted:i,children:r,timingFunction:a,onExit:o,onEntered:s,onEnter:l,onExited:c}){const{transitionDuration:d,transitionStatus:h,transitionTimingFunction:E}=mSt({mounted:i,exitDuration:n,duration:t,timingFunction:a,onExit:o,onEntered:s,onEnter:l,onExited:c});return d===0?i?M.createElement(M.Fragment,null,r({})):u?r({display:"none"}):null:h==="exited"?u?r({display:"none"}):null:M.createElement(M.Fragment,null,r(gSt({transition:e,duration:d,state:h,timingFunction:E})))}Vp.displayName="@mantine/core/Transition";function Cue({children:u,active:e=!0,refProp:t="ref"}){const n=$2t(e),i=N1(n,u==null?void 0:u.ref);return fC(u)?C.cloneElement(u,{[t]:i}):u}Cue.displayName="@mantine/core/FocusTrap";var fSt=Object.defineProperty,pSt=Object.defineProperties,DSt=Object.getOwnPropertyDescriptors,zhe=Object.getOwnPropertySymbols,xSt=Object.prototype.hasOwnProperty,vSt=Object.prototype.propertyIsEnumerable,Lhe=(u,e,t)=>e in u?fSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,O4=(u,e)=>{for(var t in e||(e={}))xSt.call(e,t)&&Lhe(u,t,e[t]);if(zhe)for(var t of zhe(e))vSt.call(e,t)&&Lhe(u,t,e[t]);return u},h9=(u,e)=>pSt(u,DSt(e));function Mhe(u,e,t,n){return u==="center"||n==="center"?{top:e}:u==="end"?{bottom:t}:u==="start"?{top:t}:{}}function The(u,e,t,n,i){return u==="center"||n==="center"?{left:e}:u==="end"?{[i==="ltr"?"right":"left"]:t}:u==="start"?{[i==="ltr"?"left":"right"]:t}:{}}const CSt={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function bSt({position:u,arrowSize:e,arrowOffset:t,arrowRadius:n,arrowPosition:i,arrowX:r,arrowY:a,dir:o}){const[s,l="center"]=u.split("-"),c={width:W(e),height:W(e),transform:"rotate(45deg)",position:"absolute",[CSt[s]]:W(n)},d=W(-e/2);return s==="left"?h9(O4(O4({},c),Mhe(l,a,t,i)),{right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}):s==="right"?h9(O4(O4({},c),Mhe(l,a,t,i)),{left:d,borderRightColor:"transparent",borderTopColor:"transparent"}):s==="top"?h9(O4(O4({},c),The(l,r,t,i,o)),{bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}):s==="bottom"?h9(O4(O4({},c),The(l,r,t,i,o)),{top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var kSt=Object.defineProperty,ySt=Object.defineProperties,FSt=Object.getOwnPropertyDescriptors,Vz=Object.getOwnPropertySymbols,h8e=Object.prototype.hasOwnProperty,E8e=Object.prototype.propertyIsEnumerable,Phe=(u,e,t)=>e in u?kSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ASt=(u,e)=>{for(var t in e||(e={}))h8e.call(e,t)&&Phe(u,t,e[t]);if(Vz)for(var t of Vz(e))E8e.call(e,t)&&Phe(u,t,e[t]);return u},_St=(u,e)=>ySt(u,FSt(e)),SSt=(u,e)=>{var t={};for(var n in u)h8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Vz)for(var n of Vz(u))e.indexOf(n)<0&&E8e.call(u,n)&&(t[n]=u[n]);return t};const bue=C.forwardRef((u,e)=>{var t=u,{position:n,arrowSize:i,arrowOffset:r,arrowRadius:a,arrowPosition:o,visible:s,arrowX:l,arrowY:c}=t,d=SSt(t,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const h=Tr();return s?M.createElement("div",_St(ASt({},d),{ref:e,style:bSt({position:n,arrowSize:i,arrowOffset:r,arrowRadius:a,arrowPosition:o,dir:h.dir,arrowX:l,arrowY:c})})):null});bue.displayName="@mantine/core/FloatingArrow";var BSt=Object.defineProperty,wSt=Object.defineProperties,zSt=Object.getOwnPropertyDescriptors,Hz=Object.getOwnPropertySymbols,g8e=Object.prototype.hasOwnProperty,m8e=Object.prototype.propertyIsEnumerable,Nhe=(u,e,t)=>e in u?BSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yD=(u,e)=>{for(var t in e||(e={}))g8e.call(e,t)&&Nhe(u,t,e[t]);if(Hz)for(var t of Hz(e))m8e.call(e,t)&&Nhe(u,t,e[t]);return u},E9=(u,e)=>wSt(u,zSt(e)),LSt=(u,e)=>{var t={};for(var n in u)g8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Hz)for(var n of Hz(u))e.indexOf(n)<0&&m8e.call(u,n)&&(t[n]=u[n]);return t};const MSt={};function f8e(u){var e;const t=Je("PopoverDropdown",MSt,u),{style:n,className:i,children:r,onKeyDownCapture:a}=t,o=LSt(t,["style","className","children","onKeyDownCapture"]),s=s8e(),{classes:l,cx:c}=cSt({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant}),d=t9e({opened:s.opened,shouldReturnFocus:s.returnFocus}),h=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:"dialog"}:{};return s.disabled?null:M.createElement(_A,E9(yD({},s.portalProps),{withinPortal:s.withinPortal}),M.createElement(Vp,E9(yD({mounted:s.opened},s.transitionProps),{transition:s.transitionProps.transition||"fade",duration:(e=s.transitionProps.duration)!=null?e:150,keepMounted:s.keepMounted,exitDuration:typeof s.transitionProps.exitDuration=="number"?s.transitionProps.exitDuration:s.transitionProps.duration}),E=>{var g,m;return M.createElement(Cue,{active:s.trapFocus},M.createElement(pt,yD(E9(yD({},h),{tabIndex:-1,ref:s.floating,style:E9(yD(yD({},n),E),{zIndex:s.zIndex,top:(g=s.y)!=null?g:0,left:(m=s.x)!=null?m:0,width:s.width==="target"?void 0:W(s.width)}),className:c(l.dropdown,i),onKeyDownCapture:cbt(s.onClose,{active:s.closeOnEscape,onTrigger:d,onKeyDown:a}),"data-position":s.placement}),o),r,M.createElement(bue,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:l.arrow})))}))}f8e.displayName="@mantine/core/PopoverDropdown";function p8e(u,e){if(u==="rtl"&&(e.includes("right")||e.includes("left"))){const[t,n]=e.split("-"),i=t==="right"?"left":"right";return n===void 0?i:`${i}-${n}`}return e}var Rhe=Object.getOwnPropertySymbols,TSt=Object.prototype.hasOwnProperty,PSt=Object.prototype.propertyIsEnumerable,NSt=(u,e)=>{var t={};for(var n in u)TSt.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Rhe)for(var n of Rhe(u))e.indexOf(n)<0&&PSt.call(u,n)&&(t[n]=u[n]);return t};const RSt={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:id("popover"),__staticSelector:"Popover",width:"max-content"};function os(u){var e,t,n,i,r,a;const o=C.useRef(null),s=Je("Popover",RSt,u),{children:l,position:c,offset:d,onPositionChange:h,positionDependencies:E,opened:g,transitionProps:m,width:f,middlewares:p,withArrow:D,arrowSize:x,arrowOffset:b,arrowRadius:k,arrowPosition:_,unstyled:y,classNames:S,styles:B,closeOnClickOutside:L,withinPortal:T,portalProps:N,closeOnEscape:F,clickOutsideEvents:A,trapFocus:z,onClose:P,onOpen:I,onChange:j,zIndex:V,radius:H,shadow:q,id:J,defaultOpened:Q,__staticSelector:X,withRoles:Y,disabled:le,returnFocus:he,variant:ze,keepMounted:Ie}=s,We=NSt(s,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[Ee,ut]=C.useState(null),[we,Ge]=C.useState(null),nt=Kl(J),Ht=Tr(),eu=tSt({middlewares:p,width:f,position:p8e(Ht.dir,c),offset:typeof d=="number"?d+(D?x/2:0):d,arrowRef:o,arrowOffset:b,onPositionChange:h,positionDependencies:E,opened:g,defaultOpened:Q,onChange:j,onOpen:I,onClose:P});L2t(()=>eu.opened&&L&&eu.onClose(),A,[Ee,we]);const bu=C.useCallback(oe=>{ut(oe),eu.floating.reference(oe)},[eu.floating.reference]),ru=C.useCallback(oe=>{Ge(oe),eu.floating.floating(oe)},[eu.floating.floating]);return M.createElement(uSt,{value:{returnFocus:he,disabled:le,controlled:eu.controlled,reference:bu,floating:ru,x:eu.floating.x,y:eu.floating.y,arrowX:(n=(t=(e=eu.floating)==null?void 0:e.middlewareData)==null?void 0:t.arrow)==null?void 0:n.x,arrowY:(a=(r=(i=eu.floating)==null?void 0:i.middlewareData)==null?void 0:r.arrow)==null?void 0:a.y,opened:eu.opened,arrowRef:o,transitionProps:m,width:f,withArrow:D,arrowSize:x,arrowOffset:b,arrowRadius:k,arrowPosition:_,placement:eu.floating.placement,trapFocus:z,withinPortal:T,portalProps:N,zIndex:V,radius:H,shadow:q,closeOnEscape:F,onClose:eu.onClose,onToggle:eu.onToggle,getTargetId:()=>`${nt}-target`,getDropdownId:()=>`${nt}-dropdown`,withRoles:Y,targetProps:We,__staticSelector:X,classNames:S,styles:B,unstyled:y,variant:ze,keepMounted:Ie}},l)}os.Target=d8e;os.Dropdown=f8e;os.displayName="@mantine/core/Popover";var ISt=Object.defineProperty,$z=Object.getOwnPropertySymbols,D8e=Object.prototype.hasOwnProperty,x8e=Object.prototype.propertyIsEnumerable,Ihe=(u,e,t)=>e in u?ISt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,OSt=(u,e)=>{for(var t in e||(e={}))D8e.call(e,t)&&Ihe(u,t,e[t]);if($z)for(var t of $z(e))x8e.call(e,t)&&Ihe(u,t,e[t]);return u},jSt=(u,e)=>{var t={};for(var n in u)D8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&$z)for(var n of $z(u))e.indexOf(n)<0&&x8e.call(u,n)&&(t[n]=u[n]);return t};function VSt(u){var e=u,{children:t,component:n="div",maxHeight:i=220,direction:r="column",id:a,innerRef:o,__staticSelector:s,styles:l,classNames:c,unstyled:d}=e,h=jSt(e,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);const{classes:E}=J7t(null,{name:s,styles:l,classNames:c,unstyled:d});return M.createElement(os.Dropdown,OSt({p:0,onMouseDown:g=>g.preventDefault()},h),M.createElement("div",{style:{maxHeight:W(i),display:"flex"}},M.createElement(pt,{component:n||"div",id:`${a}-items`,"aria-labelledby":`${a}-label`,role:"listbox",onMouseDown:g=>g.preventDefault(),style:{flex:1,overflowY:n!==qR?"auto":void 0},"data-combobox-popover":!0,tabIndex:-1,ref:o},M.createElement("div",{className:E.itemsWrapper,style:{flexDirection:r}},t))))}function gg({opened:u,transitionProps:e={transition:"fade",duration:0},shadow:t,withinPortal:n,portalProps:i,children:r,__staticSelector:a,onDirectionChange:o,switchDirectionOnFlip:s,zIndex:l,dropdownPosition:c,positionDependencies:d=[],classNames:h,styles:E,unstyled:g,readOnly:m,variant:f}){return M.createElement(os,{unstyled:g,classNames:h,styles:E,width:"target",withRoles:!1,opened:u,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:d,zIndex:l,__staticSelector:a,withinPortal:n,portalProps:i,transitionProps:e,shadow:t,disabled:m,onPositionChange:p=>s&&(o==null?void 0:o(p==="top"?"column-reverse":"column")),variant:f},r)}gg.Target=os.Target;gg.Dropdown=VSt;var HSt=Object.defineProperty,$St=Object.defineProperties,KSt=Object.getOwnPropertyDescriptors,Kz=Object.getOwnPropertySymbols,v8e=Object.prototype.hasOwnProperty,C8e=Object.prototype.propertyIsEnumerable,Ohe=(u,e,t)=>e in u?HSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,g9=(u,e)=>{for(var t in e||(e={}))v8e.call(e,t)&&Ohe(u,t,e[t]);if(Kz)for(var t of Kz(e))C8e.call(e,t)&&Ohe(u,t,e[t]);return u},WSt=(u,e)=>$St(u,KSt(e)),GSt=(u,e)=>{var t={};for(var n in u)v8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Kz)for(var n of Kz(u))e.indexOf(n)<0&&C8e.call(u,n)&&(t[n]=u[n]);return t};function b8e(u,e,t){const n=Je(u,e,t),{label:i,description:r,error:a,required:o,classNames:s,styles:l,className:c,unstyled:d,__staticSelector:h,sx:E,errorProps:g,labelProps:m,descriptionProps:f,wrapperProps:p,id:D,size:x,style:b,inputContainer:k,inputWrapperOrder:_,withAsterisk:y,variant:S}=n,B=GSt(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk","variant"]),L=Kl(D),{systemStyles:T,rest:N}=C4(B),F=g9({label:i,description:r,error:a,required:o,classNames:s,className:c,__staticSelector:h,sx:E,errorProps:g,labelProps:m,descriptionProps:f,unstyled:d,styles:l,id:L,size:x,style:b,inputContainer:k,inputWrapperOrder:_,withAsterisk:y,variant:S},p);return WSt(g9({},N),{classNames:s,styles:l,unstyled:d,wrapperProps:g9(g9({},F),T),inputProps:{required:o,classNames:s,styles:l,unstyled:d,id:L,size:x,__staticSelector:h,error:a,variant:S}})}var USt=at((u,e,{size:t})=>({label:{display:"inline-block",fontSize:Fe({size:t,sizes:u.fontSizes}),fontWeight:500,color:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:u.fn.variant({variant:"filled",color:"red"}).background}}));const qSt=USt;var JSt=Object.defineProperty,Wz=Object.getOwnPropertySymbols,k8e=Object.prototype.hasOwnProperty,y8e=Object.prototype.propertyIsEnumerable,jhe=(u,e,t)=>e in u?JSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ZSt=(u,e)=>{for(var t in e||(e={}))k8e.call(e,t)&&jhe(u,t,e[t]);if(Wz)for(var t of Wz(e))y8e.call(e,t)&&jhe(u,t,e[t]);return u},YSt=(u,e)=>{var t={};for(var n in u)k8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Wz)for(var n of Wz(u))e.indexOf(n)<0&&y8e.call(u,n)&&(t[n]=u[n]);return t};const QSt={labelElement:"label",size:"sm"},kue=C.forwardRef((u,e)=>{const t=Je("InputLabel",QSt,u),{labelElement:n,children:i,required:r,size:a,classNames:o,styles:s,unstyled:l,className:c,htmlFor:d,__staticSelector:h,variant:E,onMouseDown:g}=t,m=YSt(t,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector","variant","onMouseDown"]),{classes:f,cx:p}=qSt(null,{name:["InputWrapper",h],classNames:o,styles:s,unstyled:l,variant:E,size:a});return M.createElement(pt,ZSt({component:n,ref:e,className:p(f.label,c),htmlFor:n==="label"?d:void 0,onMouseDown:D=>{g==null||g(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()}},m),i,r&&M.createElement("span",{className:f.required,"aria-hidden":!0}," *"))});kue.displayName="@mantine/core/InputLabel";var XSt=at((u,e,{size:t})=>({error:{wordBreak:"break-word",color:u.fn.variant({variant:"filled",color:"red"}).background,fontSize:`calc(${Fe({size:t,sizes:u.fontSizes})} - ${W(2)})`,lineHeight:1.2,display:"block"}}));const e8t=XSt;var t8t=Object.defineProperty,Gz=Object.getOwnPropertySymbols,F8e=Object.prototype.hasOwnProperty,A8e=Object.prototype.propertyIsEnumerable,Vhe=(u,e,t)=>e in u?t8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,u8t=(u,e)=>{for(var t in e||(e={}))F8e.call(e,t)&&Vhe(u,t,e[t]);if(Gz)for(var t of Gz(e))A8e.call(e,t)&&Vhe(u,t,e[t]);return u},n8t=(u,e)=>{var t={};for(var n in u)F8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Gz)for(var n of Gz(u))e.indexOf(n)<0&&A8e.call(u,n)&&(t[n]=u[n]);return t};const i8t={size:"sm"},yue=C.forwardRef((u,e)=>{const t=Je("InputError",i8t,u),{children:n,className:i,classNames:r,styles:a,unstyled:o,size:s,__staticSelector:l,variant:c}=t,d=n8t(t,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:h,cx:E}=e8t(null,{name:["InputWrapper",l],classNames:r,styles:a,unstyled:o,variant:c,size:s});return M.createElement(Fu,u8t({className:E(h.error,i),ref:e},d),n)});yue.displayName="@mantine/core/InputError";var r8t=at((u,e,{size:t})=>({description:{wordBreak:"break-word",color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],fontSize:`calc(${Fe({size:t,sizes:u.fontSizes})} - ${W(2)})`,lineHeight:1.2,display:"block"}}));const a8t=r8t;var o8t=Object.defineProperty,Uz=Object.getOwnPropertySymbols,_8e=Object.prototype.hasOwnProperty,S8e=Object.prototype.propertyIsEnumerable,Hhe=(u,e,t)=>e in u?o8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,s8t=(u,e)=>{for(var t in e||(e={}))_8e.call(e,t)&&Hhe(u,t,e[t]);if(Uz)for(var t of Uz(e))S8e.call(e,t)&&Hhe(u,t,e[t]);return u},l8t=(u,e)=>{var t={};for(var n in u)_8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Uz)for(var n of Uz(u))e.indexOf(n)<0&&S8e.call(u,n)&&(t[n]=u[n]);return t};const c8t={size:"sm"},Fue=C.forwardRef((u,e)=>{const t=Je("InputDescription",c8t,u),{children:n,className:i,classNames:r,styles:a,unstyled:o,size:s,__staticSelector:l,variant:c}=t,d=l8t(t,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:h,cx:E}=a8t(null,{name:["InputWrapper",l],classNames:r,styles:a,unstyled:o,variant:c,size:s});return M.createElement(Fu,s8t({color:"dimmed",className:E(h.description,i),ref:e,unstyled:o},d),n)});Fue.displayName="@mantine/core/InputDescription";const B8e=C.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),d8t=B8e.Provider,h8t=()=>C.useContext(B8e);function E8t(u,{hasDescription:e,hasError:t}){const n=u.findIndex(s=>s==="input"),i=u[n-1],r=u[n+1];return{offsetBottom:e&&r==="description"||t&&r==="error",offsetTop:e&&i==="description"||t&&i==="error"}}var g8t=Object.defineProperty,m8t=Object.defineProperties,f8t=Object.getOwnPropertyDescriptors,$he=Object.getOwnPropertySymbols,p8t=Object.prototype.hasOwnProperty,D8t=Object.prototype.propertyIsEnumerable,Khe=(u,e,t)=>e in u?g8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,x8t=(u,e)=>{for(var t in e||(e={}))p8t.call(e,t)&&Khe(u,t,e[t]);if($he)for(var t of $he(e))D8t.call(e,t)&&Khe(u,t,e[t]);return u},v8t=(u,e)=>m8t(u,f8t(e)),C8t=at(u=>({root:v8t(x8t({},u.fn.fontStyles()),{lineHeight:u.lineHeight})}));const b8t=C8t;var k8t=Object.defineProperty,y8t=Object.defineProperties,F8t=Object.getOwnPropertyDescriptors,qz=Object.getOwnPropertySymbols,w8e=Object.prototype.hasOwnProperty,z8e=Object.prototype.propertyIsEnumerable,Whe=(u,e,t)=>e in u?k8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,j4=(u,e)=>{for(var t in e||(e={}))w8e.call(e,t)&&Whe(u,t,e[t]);if(qz)for(var t of qz(e))z8e.call(e,t)&&Whe(u,t,e[t]);return u},Ghe=(u,e)=>y8t(u,F8t(e)),A8t=(u,e)=>{var t={};for(var n in u)w8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&qz)for(var n of qz(u))e.indexOf(n)<0&&z8e.call(u,n)&&(t[n]=u[n]);return t};const _8t={labelElement:"label",size:"sm",inputContainer:u=>u,inputWrapperOrder:["label","description","input","error"]},L8e=C.forwardRef((u,e)=>{const t=Je("InputWrapper",_8t,u),{className:n,label:i,children:r,required:a,id:o,error:s,description:l,labelElement:c,labelProps:d,descriptionProps:h,errorProps:E,classNames:g,styles:m,size:f,inputContainer:p,__staticSelector:D,unstyled:x,inputWrapperOrder:b,withAsterisk:k,variant:_}=t,y=A8t(t,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk","variant"]),{classes:S,cx:B}=b8t(null,{classNames:g,styles:m,name:["InputWrapper",D],unstyled:x,variant:_,size:f}),L={classNames:g,styles:m,unstyled:x,size:f,variant:_,__staticSelector:D},T=typeof k=="boolean"?k:a,N=o?`${o}-error`:E==null?void 0:E.id,F=o?`${o}-description`:h==null?void 0:h.id,z=`${!!s&&typeof s!="boolean"?N:""} ${l?F:""}`,P=z.trim().length>0?z.trim():void 0,I=i&&M.createElement(kue,j4(j4({key:"label",labelElement:c,id:o?`${o}-label`:void 0,htmlFor:o,required:T},L),d),i),j=l&&M.createElement(Fue,Ghe(j4(j4({key:"description"},h),L),{size:(h==null?void 0:h.size)||L.size,id:(h==null?void 0:h.id)||F}),l),V=M.createElement(C.Fragment,{key:"input"},p(r)),H=typeof s!="boolean"&&s&&M.createElement(yue,Ghe(j4(j4({},E),L),{size:(E==null?void 0:E.size)||L.size,key:"error",id:(E==null?void 0:E.id)||N}),s),q=b.map(J=>{switch(J){case"label":return I;case"input":return V;case"description":return j;case"error":return H;default:return null}});return M.createElement(d8t,{value:j4({describedBy:P},E8t(b,{hasDescription:!!j,hasError:!!H}))},M.createElement(pt,j4({className:B(S.root,n),ref:e},y),q))});L8e.displayName="@mantine/core/InputWrapper";var S8t=Object.defineProperty,Jz=Object.getOwnPropertySymbols,M8e=Object.prototype.hasOwnProperty,T8e=Object.prototype.propertyIsEnumerable,Uhe=(u,e,t)=>e in u?S8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,B8t=(u,e)=>{for(var t in e||(e={}))M8e.call(e,t)&&Uhe(u,t,e[t]);if(Jz)for(var t of Jz(e))T8e.call(e,t)&&Uhe(u,t,e[t]);return u},w8t=(u,e)=>{var t={};for(var n in u)M8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Jz)for(var n of Jz(u))e.indexOf(n)<0&&T8e.call(u,n)&&(t[n]=u[n]);return t};const z8t={},P8e=C.forwardRef((u,e)=>{const t=Je("InputPlaceholder",z8t,u),{sx:n}=t,i=w8t(t,["sx"]);return M.createElement(pt,B8t({component:"span",sx:[r=>r.fn.placeholderStyles(),...BR(n)],ref:e},i))});P8e.displayName="@mantine/core/InputPlaceholder";var L8t=Object.defineProperty,M8t=Object.defineProperties,T8t=Object.getOwnPropertyDescriptors,qhe=Object.getOwnPropertySymbols,P8t=Object.prototype.hasOwnProperty,N8t=Object.prototype.propertyIsEnumerable,Jhe=(u,e,t)=>e in u?L8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,m9=(u,e)=>{for(var t in e||(e={}))P8t.call(e,t)&&Jhe(u,t,e[t]);if(qhe)for(var t of qhe(e))N8t.call(e,t)&&Jhe(u,t,e[t]);return u},hH=(u,e)=>M8t(u,T8t(e));const kr={xs:W(30),sm:W(36),md:W(42),lg:W(50),xl:W(60)},R8t=["default","filled","unstyled"];function I8t({theme:u,variant:e}){return R8t.includes(e)?e==="default"?{border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,transition:"border-color 100ms ease","&:focus, &:focus-within":u.focusRingStyles.inputStyles(u)}:e==="filled"?{border:`${W(1)} solid transparent`,backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1],"&:focus, &:focus-within":u.focusRingStyles.inputStyles(u)}:{borderWidth:0,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,backgroundColor:"transparent",minHeight:W(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}var O8t=at((u,{multiline:e,radius:t,invalid:n,rightSectionWidth:i,withRightSection:r,iconWidth:a,offsetBottom:o,offsetTop:s,pointer:l},{variant:c,size:d})=>{const h=u.fn.variant({variant:"filled",color:"red"}).background,E=c==="default"||c==="filled"?{minHeight:Fe({size:d,sizes:kr}),paddingLeft:`calc(${Fe({size:d,sizes:kr})} / 3)`,paddingRight:r?i||Fe({size:d,sizes:kr}):`calc(${Fe({size:d,sizes:kr})} / 3)`,borderRadius:u.fn.radius(t)}:c==="unstyled"&&r?{paddingRight:i||Fe({size:d,sizes:kr})}:null;return{wrapper:{position:"relative",marginTop:s?`calc(${u.spacing.xs} / 2)`:void 0,marginBottom:o?`calc(${u.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:hH(m9(m9(hH(m9({},u.fn.fontStyles()),{height:e?c==="unstyled"?void 0:"auto":Fe({size:d,sizes:kr}),WebkitTapHighlightColor:"transparent",lineHeight:e?u.lineHeight:`calc(${Fe({size:d,sizes:kr})} - ${W(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:Fe({size:d,sizes:u.fontSizes}),width:"100%",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,display:"block",textAlign:"left",cursor:l?"pointer":void 0}),I8t({theme:u,variant:c})),E),{"&:disabled, &[data-disabled]":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[1],color:u.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:u.colors.dark[2]}},"&[data-invalid]":{color:h,borderColor:h,"&::placeholder":{opacity:1,color:h}},"&[data-with-icon]":{paddingLeft:typeof a=="number"?W(a):Fe({size:d,sizes:kr})},"&::placeholder":hH(m9({},u.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:a?W(a):Fe({size:d,sizes:kr}),color:n?u.colors.red[u.colorScheme==="dark"?6:7]:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:i||Fe({size:d,sizes:kr})}}});const j8t=O8t;var V8t=Object.defineProperty,H8t=Object.defineProperties,$8t=Object.getOwnPropertyDescriptors,Zz=Object.getOwnPropertySymbols,N8e=Object.prototype.hasOwnProperty,R8e=Object.prototype.propertyIsEnumerable,Zhe=(u,e,t)=>e in u?V8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,f9=(u,e)=>{for(var t in e||(e={}))N8e.call(e,t)&&Zhe(u,t,e[t]);if(Zz)for(var t of Zz(e))R8e.call(e,t)&&Zhe(u,t,e[t]);return u},Yhe=(u,e)=>H8t(u,$8t(e)),K8t=(u,e)=>{var t={};for(var n in u)N8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Zz)for(var n of Zz(u))e.indexOf(n)<0&&R8e.call(u,n)&&(t[n]=u[n]);return t};const W8t={size:"sm",variant:"default"},Hp=C.forwardRef((u,e)=>{const t=Je("Input",W8t,u),{className:n,error:i,required:r,disabled:a,variant:o,icon:s,style:l,rightSectionWidth:c,iconWidth:d,rightSection:h,rightSectionProps:E,radius:g,size:m,wrapperProps:f,classNames:p,styles:D,__staticSelector:x,multiline:b,sx:k,unstyled:_,pointer:y}=t,S=K8t(t,["className","error","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:B,offsetTop:L,describedBy:T}=h8t(),{classes:N,cx:F}=j8t({radius:g,multiline:b,invalid:!!i,rightSectionWidth:c?W(c):void 0,iconWidth:d,withRightSection:!!h,offsetBottom:B,offsetTop:L,pointer:y},{classNames:p,styles:D,name:["Input",x],unstyled:_,variant:o,size:m}),{systemStyles:A,rest:z}=C4(S);return M.createElement(pt,f9(f9({className:F(N.wrapper,n),sx:k,style:l},A),f),s&&M.createElement("div",{className:N.icon},s),M.createElement(pt,Yhe(f9({component:"input"},z),{ref:e,required:r,"aria-invalid":!!i,"aria-describedby":T,disabled:a,"data-disabled":a||void 0,"data-with-icon":!!s||void 0,"data-invalid":!!i||void 0,className:N.input})),h&&M.createElement("div",Yhe(f9({},E),{className:N.rightSection}),h))});Hp.displayName="@mantine/core/Input";Hp.Wrapper=L8e;Hp.Label=kue;Hp.Description=Fue;Hp.Error=yue;Hp.Placeholder=P8e;const Ma=Hp;var G8t=Object.defineProperty,Yz=Object.getOwnPropertySymbols,I8e=Object.prototype.hasOwnProperty,O8e=Object.prototype.propertyIsEnumerable,Qhe=(u,e,t)=>e in u?G8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,U8t=(u,e)=>{for(var t in e||(e={}))I8e.call(e,t)&&Qhe(u,t,e[t]);if(Yz)for(var t of Yz(e))O8e.call(e,t)&&Qhe(u,t,e[t]);return u},q8t=(u,e)=>{var t={};for(var n in u)I8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Yz)for(var n of Yz(u))e.indexOf(n)<0&&O8e.call(u,n)&&(t[n]=u[n]);return t};function J8t(u){const e=u,{style:t}=e,n=q8t(e,["style"]);return M.createElement("svg",U8t({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t},n),M.createElement("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var Z8t=Object.defineProperty,Y8t=Object.defineProperties,Q8t=Object.getOwnPropertyDescriptors,Xhe=Object.getOwnPropertySymbols,X8t=Object.prototype.hasOwnProperty,eBt=Object.prototype.propertyIsEnumerable,e4e=(u,e,t)=>e in u?Z8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,tBt=(u,e)=>{for(var t in e||(e={}))X8t.call(e,t)&&e4e(u,t,e[t]);if(Xhe)for(var t of Xhe(e))eBt.call(e,t)&&e4e(u,t,e[t]);return u},uBt=(u,e)=>Y8t(u,Q8t(e));const j8e=C.createContext(null);function nBt({spacing:u,children:e}){return M.createElement(j8e.Provider,{value:{spacing:u}},e)}function iBt(){const u=C.useContext(j8e);return u?uBt(tBt({},u),{withinGroup:!0}):{spacing:null,withinGroup:!1}}var rBt=at((u,{spacing:e})=>({root:{display:"flex",paddingLeft:Fe({size:e,sizes:u.spacing})}}));const aBt=rBt;var oBt=Object.defineProperty,Qz=Object.getOwnPropertySymbols,V8e=Object.prototype.hasOwnProperty,H8e=Object.prototype.propertyIsEnumerable,t4e=(u,e,t)=>e in u?oBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,sBt=(u,e)=>{for(var t in e||(e={}))V8e.call(e,t)&&t4e(u,t,e[t]);if(Qz)for(var t of Qz(e))H8e.call(e,t)&&t4e(u,t,e[t]);return u},lBt=(u,e)=>{var t={};for(var n in u)V8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Qz)for(var n of Qz(u))e.indexOf(n)<0&&H8e.call(u,n)&&(t[n]=u[n]);return t};const cBt={},$8e=C.forwardRef((u,e)=>{const t=Je("AvatarGroup",cBt,u),{children:n,spacing:i="sm",unstyled:r,className:a,variant:o}=t,s=lBt(t,["children","spacing","unstyled","className","variant"]),{classes:l,cx:c}=aBt({spacing:i},{name:"AvatarGroup",unstyled:r,variant:o});return M.createElement(nBt,{spacing:i},M.createElement(pt,sBt({ref:e,className:c(l.root,a)},s),n))});$8e.displayName="@mantine/core/AvatarGroup";var dBt=Object.defineProperty,hBt=Object.defineProperties,EBt=Object.getOwnPropertyDescriptors,u4e=Object.getOwnPropertySymbols,gBt=Object.prototype.hasOwnProperty,mBt=Object.prototype.propertyIsEnumerable,n4e=(u,e,t)=>e in u?dBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,S6=(u,e)=>{for(var t in e||(e={}))gBt.call(e,t)&&n4e(u,t,e[t]);if(u4e)for(var t of u4e(e))mBt.call(e,t)&&n4e(u,t,e[t]);return u},i4e=(u,e)=>hBt(u,EBt(e));const fBt=["filled","light","gradient","outline"],p9={xs:W(16),sm:W(26),md:W(38),lg:W(56),xl:W(84)};function pBt({withinGroup:u,spacing:e,theme:t}){return u?{marginLeft:`calc(${Fe({size:e,sizes:t.spacing})} * -1)`,backgroundColor:`${t.colorScheme==="dark"?t.colors.dark[7]:t.white}`,border:`${W(2)} solid ${t.colorScheme==="dark"?t.colors.dark[7]:t.white}`}:null}function DBt({theme:u,variant:e,color:t,gradient:n}){const i=u.fn.variant({variant:e,color:t,gradient:n});return fBt.includes(e)?{placeholder:{color:i.color,backgroundColor:i.background,backgroundImage:e==="gradient"?i.background:void 0,border:`${W(e==="gradient"?0:1)} solid ${i.border}`},placeholderIcon:{color:i.color}}:{}}var xBt=at((u,{radius:e,withinGroup:t,spacing:n,color:i,gradient:r},{variant:a,size:o})=>{const s=DBt({theme:u,color:i,gradient:r,variant:a});return{root:S6(i4e(S6({},u.fn.focusStyles()),{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"block",userSelect:"none",overflow:"hidden",borderRadius:u.fn.radius(e),textDecoration:"none",border:0,backgroundColor:"transparent",padding:0,width:Fe({size:o,sizes:p9}),minWidth:Fe({size:o,sizes:p9}),height:Fe({size:o,sizes:p9})}),pBt({withinGroup:t,spacing:n,theme:u})),image:{objectFit:"cover",width:"100%",height:"100%",display:"block"},placeholder:S6(i4e(S6({},u.fn.fontStyles()),{fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",userSelect:"none",borderRadius:u.fn.radius(e),fontSize:`calc(${Fe({size:o,sizes:p9})} / 2.5)`}),s.placeholder),placeholderIcon:S6({width:"70%",height:"70%"},s.placeholderIcon)}});const vBt=xBt;var CBt=Object.defineProperty,bBt=Object.defineProperties,kBt=Object.getOwnPropertyDescriptors,Xz=Object.getOwnPropertySymbols,K8e=Object.prototype.hasOwnProperty,W8e=Object.prototype.propertyIsEnumerable,r4e=(u,e,t)=>e in u?CBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,a4e=(u,e)=>{for(var t in e||(e={}))K8e.call(e,t)&&r4e(u,t,e[t]);if(Xz)for(var t of Xz(e))W8e.call(e,t)&&r4e(u,t,e[t]);return u},yBt=(u,e)=>bBt(u,kBt(e)),FBt=(u,e)=>{var t={};for(var n in u)K8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Xz)for(var n of Xz(u))e.indexOf(n)<0&&W8e.call(u,n)&&(t[n]=u[n]);return t};const ABt={size:"md",color:"gray",variant:"light"},Aue=C.forwardRef((u,e)=>{const t=Je("Avatar",ABt,u),{className:n,size:i,src:r,alt:a,radius:o,children:s,color:l,variant:c,gradient:d,classNames:h,styles:E,imageProps:g,unstyled:m}=t,f=FBt(t,["className","size","src","alt","radius","children","color","variant","gradient","classNames","styles","imageProps","unstyled"]),p=iBt(),[D,x]=C.useState(!r),{classes:b,cx:k}=vBt({color:l,radius:o,withinGroup:p.withinGroup,spacing:p.spacing,gradient:d},{classNames:h,styles:E,unstyled:m,name:"Avatar",variant:c,size:i});return C.useEffect(()=>{x(!r)},[r]),M.createElement(pt,a4e({component:"div",className:k(b.root,n),ref:e},f),D?M.createElement("div",{className:b.placeholder,title:a},s||M.createElement(J8t,{className:b.placeholderIcon})):M.createElement("img",yBt(a4e({},g),{className:b.image,src:r,alt:a,onError:()=>x(!0)})))});Aue.displayName="@mantine/core/Avatar";Aue.Group=$8e;const o4e=Aue;var _Bt=Object.defineProperty,SBt=Object.defineProperties,BBt=Object.getOwnPropertyDescriptors,s4e=Object.getOwnPropertySymbols,wBt=Object.prototype.hasOwnProperty,zBt=Object.prototype.propertyIsEnumerable,l4e=(u,e,t)=>e in u?_Bt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,EH=(u,e)=>{for(var t in e||(e={}))wBt.call(e,t)&&l4e(u,t,e[t]);if(s4e)for(var t of s4e(e))zBt.call(e,t)&&l4e(u,t,e[t]);return u},LBt=(u,e)=>SBt(u,BBt(e));const MBt=["light","filled","outline","dot","gradient"],gH={xs:{fontSize:W(9),height:W(16)},sm:{fontSize:W(10),height:W(18)},md:{fontSize:W(11),height:W(20)},lg:{fontSize:W(13),height:W(26)},xl:{fontSize:W(16),height:W(32)}},TBt={xs:W(4),sm:W(4),md:W(6),lg:W(8),xl:W(10)};function PBt({theme:u,variant:e,color:t,size:n,gradient:i}){if(!MBt.includes(e))return null;if(e==="dot"){const a=Fe({size:n,sizes:TBt});return{backgroundColor:"transparent",color:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[7],border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[3]}`,paddingLeft:`calc(${Fe({size:n,sizes:u.spacing})} / 1.5 - ${a} / 2)`,"&::before":{content:'""',display:"block",width:a,height:a,borderRadius:a,backgroundColor:u.fn.themeColor(t,u.colorScheme==="dark"?4:u.fn.primaryShade("light"),!0),marginRight:a}}}const r=u.fn.variant({color:t,variant:e,gradient:i});return{background:r.background,color:r.color,border:`${W(e==="gradient"?0:1)} solid ${r.border}`}}var NBt=at((u,{color:e,radius:t,gradient:n,fullWidth:i},{variant:r,size:a})=>{const{fontSize:o,height:s}=a in gH?gH[a]:gH.md;return{leftSection:{marginRight:`calc(${u.spacing.xs} / 2)`},rightSection:{marginLeft:`calc(${u.spacing.xs} / 2)`},inner:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},root:EH(LBt(EH(EH({},u.fn.focusStyles()),u.fn.fontStyles()),{fontSize:o,height:s,WebkitTapHighlightColor:"transparent",lineHeight:`calc(${s} - ${W(2)})`,textDecoration:"none",padding:`0 calc(${Fe({size:a,sizes:u.spacing})} / 1.5)`,boxSizing:"border-box",display:i?"flex":"inline-flex",alignItems:"center",justifyContent:"center",width:i?"100%":"auto",textTransform:"uppercase",borderRadius:u.fn.radius(t),fontWeight:700,letterSpacing:W(.25),cursor:"inherit",textOverflow:"ellipsis",overflow:"hidden"}),PBt({theme:u,variant:r,color:e,size:a,gradient:n}))}});const RBt=NBt;var IBt=Object.defineProperty,eL=Object.getOwnPropertySymbols,G8e=Object.prototype.hasOwnProperty,U8e=Object.prototype.propertyIsEnumerable,c4e=(u,e,t)=>e in u?IBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,OBt=(u,e)=>{for(var t in e||(e={}))G8e.call(e,t)&&c4e(u,t,e[t]);if(eL)for(var t of eL(e))U8e.call(e,t)&&c4e(u,t,e[t]);return u},jBt=(u,e)=>{var t={};for(var n in u)G8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&eL)for(var n of eL(u))e.indexOf(n)<0&&U8e.call(u,n)&&(t[n]=u[n]);return t};const VBt={variant:"light",size:"md",radius:"xl"},q8e=C.forwardRef((u,e)=>{const t=Je("Badge",VBt,u),{className:n,color:i,variant:r,fullWidth:a,children:o,size:s,leftSection:l,rightSection:c,radius:d,gradient:h,classNames:E,styles:g,unstyled:m}=t,f=jBt(t,["className","color","variant","fullWidth","children","size","leftSection","rightSection","radius","gradient","classNames","styles","unstyled"]),{classes:p,cx:D}=RBt({fullWidth:a,color:i,radius:d,gradient:h},{classNames:E,styles:g,name:"Badge",unstyled:m,variant:r,size:s});return M.createElement(pt,OBt({className:D(p.root,n),ref:e},f),l&&M.createElement("span",{className:p.leftSection},l),M.createElement("span",{className:p.inner},o),c&&M.createElement("span",{className:p.rightSection},c))});q8e.displayName="@mantine/core/Badge";const wv=q8e,HBt={xs:W(12),sm:W(18),md:W(24),lg:W(34),xl:W(42)};var $Bt=at((u,{color:e,transitionDuration:t},{size:n})=>{const i=Fe({size:n,sizes:HBt}),r=e||(u.colorScheme==="dark"?u.white:u.black);return{root:{borderRadius:u.radius.sm,width:`calc(${i} + ${u.spacing.xs})`,height:`calc(${i} + ${u.spacing.xs})`,padding:`calc(${u.spacing.xs} / 2)`,cursor:"pointer"},burger:{position:"relative",userSelect:"none",boxSizing:"border-box","&, &::before, &::after":{display:"block",width:i,height:`calc(${i} / 12)`,backgroundColor:r,outline:`${W(1)} solid transparent`,transitionProperty:"background-color, transform",transitionDuration:`${t}ms`,"@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":void 0}},"&::before, &::after":{position:"absolute",content:'""',left:0},"&::before":{top:`calc((${i} / 3) * -1)`},"&::after":{top:`calc(${i} / 3)`},"&[data-opened]":{backgroundColor:"transparent","&::before":{transform:`translateY(calc(${i} / 3)) rotate(45deg)`},"&::after":{transform:`translateY(calc(-${i} / 3)) rotate(-45deg)`}}}}});const KBt=$Bt;var WBt=Object.defineProperty,tL=Object.getOwnPropertySymbols,J8e=Object.prototype.hasOwnProperty,Z8e=Object.prototype.propertyIsEnumerable,d4e=(u,e,t)=>e in u?WBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,GBt=(u,e)=>{for(var t in e||(e={}))J8e.call(e,t)&&d4e(u,t,e[t]);if(tL)for(var t of tL(e))Z8e.call(e,t)&&d4e(u,t,e[t]);return u},UBt=(u,e)=>{var t={};for(var n in u)J8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&tL)for(var n of tL(u))e.indexOf(n)<0&&Z8e.call(u,n)&&(t[n]=u[n]);return t};const qBt={size:"md",transitionDuration:300},Y8e=C.forwardRef((u,e)=>{const t=Je("Burger",qBt,u),{className:n,opened:i,color:r,size:a,classNames:o,styles:s,transitionDuration:l,variant:c}=t,d=UBt(t,["className","opened","color","size","classNames","styles","transitionDuration","variant"]),{classes:h,cx:E}=KBt({color:r,transitionDuration:l},{classNames:o,styles:s,name:"Burger",variant:c,size:a});return M.createElement(b4,GBt({className:E(h.root,n),ref:e},d),M.createElement("div",{"data-opened":i||void 0,className:h.burger}))});Y8e.displayName="@mantine/core/Burger";var JBt=at((u,{orientation:e,buttonBorderWidth:t})=>({root:{display:"flex",flexDirection:e==="vertical"?"column":"row","& [data-button]":{"&:first-of-type:not(:last-of-type)":{borderBottomRightRadius:0,[e==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[e==="vertical"?"borderBottomWidth":"borderRightWidth"]:`calc(${W(t)} / 2)`},"&:last-of-type:not(:first-of-type)":{borderTopLeftRadius:0,[e==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[e==="vertical"?"borderTopWidth":"borderLeftWidth"]:`calc(${W(t)} / 2)`},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[e==="vertical"?"borderTopWidth":"borderLeftWidth"]:`calc(${W(t)} / 2)`,[e==="vertical"?"borderBottomWidth":"borderRightWidth"]:`calc(${W(t)} / 2)`},"& + [data-button]":{[e==="vertical"?"marginTop":"marginLeft"]:`calc(${t} * -1)`,"@media (min-resolution: 192dpi)":{[e==="vertical"?"marginTop":"marginLeft"]:0}}}}}));const ZBt=JBt;var YBt=Object.defineProperty,uL=Object.getOwnPropertySymbols,Q8e=Object.prototype.hasOwnProperty,X8e=Object.prototype.propertyIsEnumerable,h4e=(u,e,t)=>e in u?YBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,QBt=(u,e)=>{for(var t in e||(e={}))Q8e.call(e,t)&&h4e(u,t,e[t]);if(uL)for(var t of uL(e))X8e.call(e,t)&&h4e(u,t,e[t]);return u},XBt=(u,e)=>{var t={};for(var n in u)Q8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&uL)for(var n of uL(u))e.indexOf(n)<0&&X8e.call(u,n)&&(t[n]=u[n]);return t};const ewt={orientation:"horizontal",buttonBorderWidth:1},eBe=C.forwardRef((u,e)=>{const t=Je("ButtonGroup",ewt,u),{className:n,orientation:i,buttonBorderWidth:r,unstyled:a}=t,o=XBt(t,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:l}=ZBt({orientation:i,buttonBorderWidth:r},{name:"ButtonGroup",unstyled:a});return M.createElement(pt,QBt({className:l(s.root,n),ref:e},o))});eBe.displayName="@mantine/core/ButtonGroup";var twt=Object.defineProperty,uwt=Object.defineProperties,nwt=Object.getOwnPropertyDescriptors,E4e=Object.getOwnPropertySymbols,iwt=Object.prototype.hasOwnProperty,rwt=Object.prototype.propertyIsEnumerable,g4e=(u,e,t)=>e in u?twt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,fh=(u,e)=>{for(var t in e||(e={}))iwt.call(e,t)&&g4e(u,t,e[t]);if(E4e)for(var t of E4e(e))rwt.call(e,t)&&g4e(u,t,e[t]);return u},o8=(u,e)=>uwt(u,nwt(e));const awt=["filled","outline","light","white","default","subtle","gradient"],PJ={xs:{height:kr.xs,paddingLeft:W(14),paddingRight:W(14)},sm:{height:kr.sm,paddingLeft:W(18),paddingRight:W(18)},md:{height:kr.md,paddingLeft:W(22),paddingRight:W(22)},lg:{height:kr.lg,paddingLeft:W(26),paddingRight:W(26)},xl:{height:kr.xl,paddingLeft:W(32),paddingRight:W(32)},"compact-xs":{height:W(22),paddingLeft:W(7),paddingRight:W(7)},"compact-sm":{height:W(26),paddingLeft:W(8),paddingRight:W(8)},"compact-md":{height:W(30),paddingLeft:W(10),paddingRight:W(10)},"compact-lg":{height:W(34),paddingLeft:W(12),paddingRight:W(12)},"compact-xl":{height:W(40),paddingLeft:W(14),paddingRight:W(14)}};function owt({compact:u,size:e,withLeftIcon:t,withRightIcon:n}){if(u)return PJ[`compact-${e}`];const i=PJ[e];return i?o8(fh({},i),{paddingLeft:t?`calc(${i.paddingLeft} / 1.5)`:i.paddingLeft,paddingRight:n?`calc(${i.paddingRight} / 1.5)`:i.paddingRight}):{}}const swt=u=>({display:u?"block":"inline-block",width:u?"100%":"auto"});function lwt({variant:u,theme:e,color:t,gradient:n}){if(!awt.includes(u))return null;const i=e.fn.variant({color:t,variant:u,gradient:n});return u==="gradient"?fh({border:0,backgroundImage:i.background,color:i.color},e.fn.hover({backgroundSize:"200%"})):fh({border:`${W(1)} solid ${i.border}`,backgroundColor:i.background,color:i.color},e.fn.hover({backgroundColor:i.hover}))}var cwt=at((u,{radius:e,fullWidth:t,compact:n,withLeftIcon:i,withRightIcon:r,color:a,gradient:o},{variant:s,size:l})=>({root:o8(fh(o8(fh(fh(fh(fh({},owt({compact:n,size:l,withLeftIcon:i,withRightIcon:r})),u.fn.fontStyles()),u.fn.focusStyles()),swt(t)),{borderRadius:u.fn.radius(e),fontWeight:600,position:"relative",lineHeight:1,fontSize:Fe({size:l,sizes:u.fontSizes}),userSelect:"none",cursor:"pointer"}),lwt({variant:s,theme:u,color:a,gradient:o})),{"&:active":u.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],color:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":o8(fh({content:'""'},u.fn.cover(W(-1))),{backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:u.fn.radius(e),cursor:"not-allowed"})}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:u.spacing.xs},rightIcon:{marginLeft:u.spacing.xs},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}}));const dwt=cwt;var hwt=Object.defineProperty,nL=Object.getOwnPropertySymbols,tBe=Object.prototype.hasOwnProperty,uBe=Object.prototype.propertyIsEnumerable,m4e=(u,e,t)=>e in u?hwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,f4e=(u,e)=>{for(var t in e||(e={}))tBe.call(e,t)&&m4e(u,t,e[t]);if(nL)for(var t of nL(e))uBe.call(e,t)&&m4e(u,t,e[t]);return u},Ewt=(u,e)=>{var t={};for(var n in u)tBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&nL)for(var n of nL(u))e.indexOf(n)<0&&uBe.call(u,n)&&(t[n]=u[n]);return t};const gwt={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},_ue=C.forwardRef((u,e)=>{const t=Je("Button",gwt,u),{className:n,size:i,color:r,type:a,disabled:o,children:s,leftIcon:l,rightIcon:c,fullWidth:d,variant:h,radius:E,uppercase:g,compact:m,loading:f,loaderPosition:p,loaderProps:D,gradient:x,classNames:b,styles:k,unstyled:_}=t,y=Ewt(t,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:S,cx:B,theme:L}=dwt({radius:E,color:r,fullWidth:d,compact:m,gradient:x,withLeftIcon:!!l,withRightIcon:!!c},{name:"Button",unstyled:_,classNames:b,styles:k,variant:h,size:i}),T=L.fn.variant({color:r,variant:h}),N=M.createElement(Fv,f4e({color:T.color,size:`calc(${Fe({size:i,sizes:PJ}).height} / 2)`},D));return M.createElement(b4,f4e({className:B(S.root,n),type:a,disabled:o,"data-button":!0,"data-disabled":o||void 0,"data-loading":f||void 0,ref:e,unstyled:_},y),M.createElement("div",{className:S.inner},(l||f&&p==="left")&&M.createElement("span",{className:B(S.icon,S.leftIcon)},f&&p==="left"?N:l),f&&p==="center"&&M.createElement("span",{className:S.centerLoader},N),M.createElement("span",{className:S.label,style:{textTransform:g?"uppercase":void 0}},s),(c||f&&p==="right")&&M.createElement("span",{className:B(S.icon,S.rightIcon)},f&&p==="right"?N:c)))});_ue.displayName="@mantine/core/Button";_ue.Group=eBe;const hl=_ue;var mwt=at((u,{radius:e,shadow:t})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,boxSizing:"border-box",borderRadius:u.fn.radius(e),boxShadow:u.shadows[t]||t||"none","&[data-with-border]":{border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]}`}}}));const fwt=mwt;var pwt=Object.defineProperty,iL=Object.getOwnPropertySymbols,nBe=Object.prototype.hasOwnProperty,iBe=Object.prototype.propertyIsEnumerable,p4e=(u,e,t)=>e in u?pwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Dwt=(u,e)=>{for(var t in e||(e={}))nBe.call(e,t)&&p4e(u,t,e[t]);if(iL)for(var t of iL(e))iBe.call(e,t)&&p4e(u,t,e[t]);return u},xwt=(u,e)=>{var t={};for(var n in u)nBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&iL)for(var n of iL(u))e.indexOf(n)<0&&iBe.call(u,n)&&(t[n]=u[n]);return t};const vwt={},rBe=C.forwardRef((u,e)=>{const t=Je("Paper",vwt,u),{className:n,children:i,radius:r,withBorder:a,shadow:o,unstyled:s,variant:l}=t,c=xwt(t,["className","children","radius","withBorder","shadow","unstyled","variant"]),{classes:d,cx:h}=fwt({radius:r,shadow:o},{name:"Paper",unstyled:s,variant:l});return M.createElement(pt,Dwt({className:h(d.root,n),"data-with-border":a||void 0,ref:e},c),i)});rBe.displayName="@mantine/core/Paper";const aBe=rBe,oBe=C.createContext({padding:0}),Cwt=oBe.Provider,bwt=()=>C.useContext(oBe).padding;var kwt=at((u,{padding:e,withBorder:t,inheritPadding:n})=>{const i=Fe({size:e,sizes:u.spacing}),r=`calc(-1 * ${i})`,a=u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3];return{cardSection:{display:"block",marginLeft:r,marginRight:r,paddingLeft:n?i:void 0,paddingRight:n?i:void 0,borderTop:t?`${W(1)} solid ${a}`:void 0,borderBottom:t?`${W(1)} solid ${a}`:void 0,"& + &":{borderTop:0},"&[data-first]":{marginTop:r,borderTop:0,borderBottom:t?`${W(1)} solid ${a}`:void 0},"&[data-last]":{marginBottom:r,borderBottom:0}}}});const ywt=kwt;var Fwt=Object.defineProperty,rL=Object.getOwnPropertySymbols,sBe=Object.prototype.hasOwnProperty,lBe=Object.prototype.propertyIsEnumerable,D4e=(u,e,t)=>e in u?Fwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Awt=(u,e)=>{for(var t in e||(e={}))sBe.call(e,t)&&D4e(u,t,e[t]);if(rL)for(var t of rL(e))lBe.call(e,t)&&D4e(u,t,e[t]);return u},_wt=(u,e)=>{var t={};for(var n in u)sBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&rL)for(var n of rL(u))e.indexOf(n)<0&&lBe.call(u,n)&&(t[n]=u[n]);return t};const Swt={withBorder:!1,inheritPadding:!1},cBe=C.forwardRef((u,e)=>{const t=Je("CardSection",Swt,u),{className:n,withBorder:i,inheritPadding:r,unstyled:a,variant:o}=t,s=_wt(t,["className","withBorder","inheritPadding","unstyled","variant"]),{classes:l,cx:c}=ywt({padding:bwt(),withBorder:i,inheritPadding:r},{name:"Card",unstyled:a,variant:o});return M.createElement(pt,Awt({className:c(l.cardSection,n),ref:e},s))});cBe.displayName="@mantine/core/CardSection";const dBe=cBe;var Bwt=at(u=>({root:{position:"relative",overflow:"hidden",backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white}}));const wwt=Bwt;var zwt=Object.defineProperty,aL=Object.getOwnPropertySymbols,hBe=Object.prototype.hasOwnProperty,EBe=Object.prototype.propertyIsEnumerable,x4e=(u,e,t)=>e in u?zwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Lwt=(u,e)=>{for(var t in e||(e={}))hBe.call(e,t)&&x4e(u,t,e[t]);if(aL)for(var t of aL(e))EBe.call(e,t)&&x4e(u,t,e[t]);return u},Mwt=(u,e)=>{var t={};for(var n in u)hBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&aL)for(var n of aL(u))e.indexOf(n)<0&&EBe.call(u,n)&&(t[n]=u[n]);return t};const Twt={padding:"md"},Sue=C.forwardRef((u,e)=>{const t=Je("Card",Twt,u),{className:n,padding:i,radius:r,children:a,unstyled:o,variant:s}=t,l=Mwt(t,["className","padding","radius","children","unstyled","variant"]),{classes:c,cx:d}=wwt(null,{name:"Card",unstyled:o,variant:s}),h=C.Children.toArray(a),E=h.map((g,m)=>typeof g=="object"&&g&&"type"in g&&g.type===dBe?C.cloneElement(g,{variant:s,padding:i,"data-first":m===0||void 0,"data-last":m===h.length-1||void 0}):g);return M.createElement(Cwt,{value:{padding:i}},M.createElement(aBe,Lwt({className:d(c.root,n),radius:r,p:i,ref:e},l),E))});Sue.Section=dBe;Sue.displayName="@mantine/core/Card";const mg=Sue;var Pwt=at((u,{inline:e})=>({root:{display:e?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}}));const Nwt=Pwt;var Rwt=Object.defineProperty,oL=Object.getOwnPropertySymbols,gBe=Object.prototype.hasOwnProperty,mBe=Object.prototype.propertyIsEnumerable,v4e=(u,e,t)=>e in u?Rwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Iwt=(u,e)=>{for(var t in e||(e={}))gBe.call(e,t)&&v4e(u,t,e[t]);if(oL)for(var t of oL(e))mBe.call(e,t)&&v4e(u,t,e[t]);return u},Owt=(u,e)=>{var t={};for(var n in u)gBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&oL)for(var n of oL(u))e.indexOf(n)<0&&mBe.call(u,n)&&(t[n]=u[n]);return t};const fBe=C.forwardRef((u,e)=>{const t=Je("Center",{},u),{inline:n,className:i,unstyled:r,variant:a}=t,o=Owt(t,["inline","className","unstyled","variant"]),{classes:s,cx:l}=Nwt({inline:n},{name:"Center",unstyled:r,variant:a});return M.createElement(pt,Iwt({ref:e,className:l(s.root,i)},o))});fBe.displayName="@mantine/core/Center";const sL=fBe,pBe=C.createContext(null),jwt=pBe.Provider,Vwt=()=>C.useContext(pBe);var Hwt=Object.defineProperty,lL=Object.getOwnPropertySymbols,DBe=Object.prototype.hasOwnProperty,xBe=Object.prototype.propertyIsEnumerable,C4e=(u,e,t)=>e in u?Hwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,b4e=(u,e)=>{for(var t in e||(e={}))DBe.call(e,t)&&C4e(u,t,e[t]);if(lL)for(var t of lL(e))xBe.call(e,t)&&C4e(u,t,e[t]);return u},$wt=(u,e)=>{var t={};for(var n in u)DBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&lL)for(var n of lL(u))e.indexOf(n)<0&&xBe.call(u,n)&&(t[n]=u[n]);return t};const Kwt={size:"sm"},vBe=C.forwardRef((u,e)=>{const t=Je("CheckboxGroup",Kwt,u),{children:n,value:i,defaultValue:r,onChange:a,size:o,wrapperProps:s}=t,l=$wt(t,["children","value","defaultValue","onChange","size","wrapperProps"]),[c,d]=cs({value:i,defaultValue:r,finalValue:[],onChange:a}),h=E=>{const g=E.currentTarget.value;d(c.includes(g)?c.filter(m=>m!==g):[...c,g])};return M.createElement(jwt,{value:{value:c,onChange:h,size:o}},M.createElement(Ma.Wrapper,b4e(b4e({labelElement:"div",size:o,__staticSelector:"CheckboxGroup",ref:e},s),l),n))});vBe.displayName="@mantine/core/CheckboxGroup";var Wwt=Object.defineProperty,cL=Object.getOwnPropertySymbols,CBe=Object.prototype.hasOwnProperty,bBe=Object.prototype.propertyIsEnumerable,k4e=(u,e,t)=>e in u?Wwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dL=(u,e)=>{for(var t in e||(e={}))CBe.call(e,t)&&k4e(u,t,e[t]);if(cL)for(var t of cL(e))bBe.call(e,t)&&k4e(u,t,e[t]);return u},kBe=(u,e)=>{var t={};for(var n in u)CBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&cL)for(var n of cL(u))e.indexOf(n)<0&&bBe.call(u,n)&&(t[n]=u[n]);return t};function Gwt(u){const e=u,{width:t,height:n,style:i}=e,r=kBe(e,["width","height","style"]);return M.createElement("svg",dL({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:dL({width:t,height:n},i)},r),M.createElement("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function yBe(u){var e=u,{indeterminate:t}=e,n=kBe(e,["indeterminate"]);return t?M.createElement("svg",dL({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},n),M.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):M.createElement(Gwt,dL({},n))}var Uwt=Object.defineProperty,qwt=Object.defineProperties,Jwt=Object.getOwnPropertyDescriptors,y4e=Object.getOwnPropertySymbols,Zwt=Object.prototype.hasOwnProperty,Ywt=Object.prototype.propertyIsEnumerable,F4e=(u,e,t)=>e in u?Uwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,A4e=(u,e)=>{for(var t in e||(e={}))Zwt.call(e,t)&&F4e(u,t,e[t]);if(y4e)for(var t of y4e(e))Ywt.call(e,t)&&F4e(u,t,e[t]);return u},_4e=(u,e)=>qwt(u,Jwt(e));const Qwt={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)};var Xwt=at((u,{radius:e,color:t,transitionDuration:n,labelPosition:i,error:r,indeterminate:a},{size:o})=>{const s=Fe({size:o,sizes:Qwt}),l=u.fn.variant({variant:"filled",color:t});return{icon:_4e(A4e({},u.fn.cover()),{ref:s1("icon"),color:a?"inherit":u.white,transform:a?"none":`translateY(${W(5)}) scale(0.5)`,opacity:a?1:0,transitionProperty:"opacity, transform",transitionTimingFunction:"ease",transitionDuration:`${n}ms`,pointerEvents:"none",width:"60%",position:"absolute",zIndex:1,margin:"auto","@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":void 0}}),inner:{position:"relative",width:s,height:s,order:i==="left"?2:1},input:_4e(A4e({},u.fn.focusStyles()),{appearance:"none",backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,border:`${W(1)} solid ${r?u.fn.variant({variant:"filled",color:"red"}).background:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,width:s,height:s,borderRadius:u.fn.radius(e),padding:0,display:"block",margin:0,transition:`border-color ${n}ms ease, background-color ${n}ms ease`,cursor:u.cursorType,"&:checked":{backgroundColor:l.background,borderColor:l.background,[`& + .${s1("icon")}`]:{opacity:1,color:u.white,transform:"translateY(0) scale(1)"}},"&:disabled":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],borderColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[3],cursor:"not-allowed",pointerEvents:"none",[`& + .${s1("icon")}`]:{color:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[5]}}})}});const ezt=Xwt;var tzt=Object.defineProperty,uzt=Object.defineProperties,nzt=Object.getOwnPropertyDescriptors,S4e=Object.getOwnPropertySymbols,izt=Object.prototype.hasOwnProperty,rzt=Object.prototype.propertyIsEnumerable,B4e=(u,e,t)=>e in u?tzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,azt=(u,e)=>{for(var t in e||(e={}))izt.call(e,t)&&B4e(u,t,e[t]);if(S4e)for(var t of S4e(e))rzt.call(e,t)&&B4e(u,t,e[t]);return u},ozt=(u,e)=>uzt(u,nzt(e));const mH={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)};var szt=at((u,{labelPosition:e},{size:t})=>({root:{},body:{display:"flex","&:has(input:disabled) label":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]}},labelWrapper:ozt(azt({},u.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:t in mH?Fe({size:t,sizes:u.fontSizes}):void 0,lineHeight:t in mH?Fe({size:t,sizes:mH}):void 0,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,cursor:u.cursorType,order:e==="left"?1:2}),description:{marginTop:`calc(${u.spacing.xs} / 2)`,[e==="left"?"paddingRight":"paddingLeft"]:u.spacing.sm},error:{marginTop:`calc(${u.spacing.xs} / 2)`,[e==="left"?"paddingRight":"paddingLeft"]:u.spacing.sm},label:{cursor:u.cursorType,[e==="left"?"paddingRight":"paddingLeft"]:u.spacing.sm,"&:disabled, &[data-disabled]":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]}}}));const lzt=szt;var czt=Object.defineProperty,hL=Object.getOwnPropertySymbols,FBe=Object.prototype.hasOwnProperty,ABe=Object.prototype.propertyIsEnumerable,w4e=(u,e,t)=>e in u?czt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dzt=(u,e)=>{for(var t in e||(e={}))FBe.call(e,t)&&w4e(u,t,e[t]);if(hL)for(var t of hL(e))ABe.call(e,t)&&w4e(u,t,e[t]);return u},hzt=(u,e)=>{var t={};for(var n in u)FBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&hL)for(var n of hL(u))e.indexOf(n)<0&&ABe.call(u,n)&&(t[n]=u[n]);return t};const QR=C.forwardRef((u,e)=>{var t=u,{__staticSelector:n,className:i,classNames:r,styles:a,unstyled:o,children:s,label:l,description:c,id:d,disabled:h,error:E,size:g,labelPosition:m,variant:f}=t,p=hzt(t,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition","variant"]);const{classes:D,cx:x}=lzt({labelPosition:m},{name:n,styles:a,classNames:r,unstyled:o,variant:f,size:g});return M.createElement(pt,dzt({className:x(D.root,i),ref:e},p),M.createElement("div",{className:x(D.body)},s,M.createElement("div",{className:D.labelWrapper},l&&M.createElement("label",{className:D.label,"data-disabled":h||void 0,htmlFor:d},l),c&&M.createElement(Ma.Description,{className:D.description},c),E&&E!=="boolean"&&M.createElement(Ma.Error,{className:D.error},E))))});QR.displayName="@mantine/core/InlineInput";var Ezt=Object.defineProperty,EL=Object.getOwnPropertySymbols,_Be=Object.prototype.hasOwnProperty,SBe=Object.prototype.propertyIsEnumerable,z4e=(u,e,t)=>e in u?Ezt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,D9=(u,e)=>{for(var t in e||(e={}))_Be.call(e,t)&&z4e(u,t,e[t]);if(EL)for(var t of EL(e))SBe.call(e,t)&&z4e(u,t,e[t]);return u},gzt=(u,e)=>{var t={};for(var n in u)_Be.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&EL)for(var n of EL(u))e.indexOf(n)<0&&SBe.call(u,n)&&(t[n]=u[n]);return t};const mzt={size:"sm",transitionDuration:100,icon:yBe,labelPosition:"right"},El=C.forwardRef((u,e)=>{const t=Je("Checkbox",mzt,u),{className:n,style:i,sx:r,checked:a,disabled:o,color:s,label:l,indeterminate:c,id:d,size:h,radius:E,wrapperProps:g,children:m,classNames:f,styles:p,transitionDuration:D,icon:x,unstyled:b,labelPosition:k,description:_,error:y,variant:S}=t,B=gzt(t,["className","style","sx","checked","disabled","color","label","indeterminate","id","size","radius","wrapperProps","children","classNames","styles","transitionDuration","icon","unstyled","labelPosition","description","error","variant"]),L=Vwt(),T=Kl(d),{systemStyles:N,rest:F}=C4(B),{classes:A}=ezt({radius:E,color:s,transitionDuration:D,labelPosition:k,error:!!y,indeterminate:c},{name:"Checkbox",classNames:f,styles:p,unstyled:b,variant:S,size:(L==null?void 0:L.size)||h}),z=L?{checked:L.value.includes(F.value),onChange:L.onChange}:{};return M.createElement(QR,D9(D9({className:n,sx:r,style:i,id:T,size:(L==null?void 0:L.size)||h,labelPosition:k,label:l,description:_,error:y,disabled:o,__staticSelector:"Checkbox",classNames:f,styles:p,unstyled:b,"data-checked":z.checked||void 0,variant:S},N),g),M.createElement("div",{className:A.inner},M.createElement("input",D9(D9({id:T,ref:e,type:"checkbox",className:A.input,checked:a,disabled:o},F),z)),M.createElement(x,{indeterminate:c,className:A.icon})))});El.displayName="@mantine/core/Checkbox";El.Group=vBe;var fzt=Object.defineProperty,pzt=Object.defineProperties,Dzt=Object.getOwnPropertyDescriptors,L4e=Object.getOwnPropertySymbols,xzt=Object.prototype.hasOwnProperty,vzt=Object.prototype.propertyIsEnumerable,M4e=(u,e,t)=>e in u?fzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Czt=(u,e)=>{for(var t in e||(e={}))xzt.call(e,t)&&M4e(u,t,e[t]);if(L4e)for(var t of L4e(e))vzt.call(e,t)&&M4e(u,t,e[t]);return u},bzt=(u,e)=>pzt(u,Dzt(e)),kzt=at((u,{color:e})=>{const t=e||(u.colorScheme==="dark"?"dark":"gray"),n=u.fn.variant({color:t,variant:"light"});return{root:bzt(Czt({},u.fn.fontStyles()),{lineHeight:u.lineHeight,padding:`${W(2)} calc(${u.spacing.xs} / 2)`,borderRadius:u.radius.sm,color:u.colorScheme==="dark"?t==="dark"?u.colors.dark[0]:u.white:u.colors.dark[7],backgroundColor:u.colorScheme==="dark"&&t==="dark"?u.colors.dark[5]:n.background,fontFamily:u.fontFamilyMonospace,fontSize:u.fontSizes.xs}),block:{padding:u.spacing.xs,margin:0,overflowX:"auto"}}});const yzt=kzt;var Fzt=Object.defineProperty,gL=Object.getOwnPropertySymbols,BBe=Object.prototype.hasOwnProperty,wBe=Object.prototype.propertyIsEnumerable,T4e=(u,e,t)=>e in u?Fzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,P4e=(u,e)=>{for(var t in e||(e={}))BBe.call(e,t)&&T4e(u,t,e[t]);if(gL)for(var t of gL(e))wBe.call(e,t)&&T4e(u,t,e[t]);return u},Azt=(u,e)=>{var t={};for(var n in u)BBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&gL)for(var n of gL(u))e.indexOf(n)<0&&wBe.call(u,n)&&(t[n]=u[n]);return t};const _zt={},mL=C.forwardRef((u,e)=>{const t=Je("Code",_zt,u),{className:n,children:i,block:r,color:a,unstyled:o,variant:s}=t,l=Azt(t,["className","children","block","color","unstyled","variant"]),{classes:c,cx:d}=yzt({color:a},{name:"Code",unstyled:o,variant:s});return r?M.createElement(pt,P4e({component:"pre",dir:"ltr",className:d(c.root,c.block,n),ref:e},l),i):M.createElement(pt,P4e({component:"code",className:d(c.root,n),ref:e,dir:"ltr"},l),i)});mL.displayName="@mantine/core/Code";var Szt=at((u,{fluid:e,sizes:t},{size:n})=>({root:{paddingLeft:u.spacing.md,paddingRight:u.spacing.md,maxWidth:e?"100%":Fe({size:n,sizes:t}),marginLeft:"auto",marginRight:"auto"}}));const Bzt=Szt;var wzt=Object.defineProperty,fL=Object.getOwnPropertySymbols,zBe=Object.prototype.hasOwnProperty,LBe=Object.prototype.propertyIsEnumerable,N4e=(u,e,t)=>e in u?wzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zzt=(u,e)=>{for(var t in e||(e={}))zBe.call(e,t)&&N4e(u,t,e[t]);if(fL)for(var t of fL(e))LBe.call(e,t)&&N4e(u,t,e[t]);return u},Lzt=(u,e)=>{var t={};for(var n in u)zBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&fL)for(var n of fL(u))e.indexOf(n)<0&&LBe.call(u,n)&&(t[n]=u[n]);return t};const Mzt={sizes:{xs:W(540),sm:W(720),md:W(960),lg:W(1140),xl:W(1320)}},XR=C.forwardRef((u,e)=>{const t=Je("Container",Mzt,u),{className:n,fluid:i,size:r,unstyled:a,sizes:o,variant:s}=t,l=Lzt(t,["className","fluid","size","unstyled","sizes","variant"]),{classes:c,cx:d}=Bzt({fluid:i,sizes:o},{unstyled:a,name:"Container",variant:s,size:r});return M.createElement(pt,zzt({className:d(c.root,n),ref:e},l))});XR.displayName="@mantine/core/Container";const[Tzt,Pzt]=P1("Drawer component was not found in tree"),R4e={xs:W(320),sm:W(380),md:W(440),lg:W(620),xl:W(780)};var Nzt=at((u,{position:e},{size:t})=>({header:{zIndex:1e3},content:{flex:e==="right"||e==="left"?`0 0 ${Fe({size:t,sizes:R4e})}`:"0 0 100%",maxWidth:"100%",maxHeight:"100%",height:e==="right"||e==="left"?"100%":Fe({size:t,sizes:R4e}),borderRadius:0,overflowY:"auto"},inner:{display:"flex",justifyContent:e==="right"?"flex-end":"flex-start",alignItems:e==="bottom"?"flex-end":"flex-start"}}));const Rzt=Nzt,[Izt,xC]=P1("ModalBase component was not found in tree");var Ozt=at(()=>({close:{marginLeft:"auto",marginRight:0}}));const jzt=Ozt;var Vzt=Object.defineProperty,pL=Object.getOwnPropertySymbols,MBe=Object.prototype.hasOwnProperty,TBe=Object.prototype.propertyIsEnumerable,I4e=(u,e,t)=>e in u?Vzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Hzt=(u,e)=>{for(var t in e||(e={}))MBe.call(e,t)&&I4e(u,t,e[t]);if(pL)for(var t of pL(e))TBe.call(e,t)&&I4e(u,t,e[t]);return u},$zt=(u,e)=>{var t={};for(var n in u)MBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&pL)for(var n of pL(u))e.indexOf(n)<0&&TBe.call(u,n)&&(t[n]=u[n]);return t};const Kzt={size:"sm"},Wzt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}CloseButton`,Kzt,u),{className:i}=n,r=$zt(n,["className"]),{classes:a,cx:o}=jzt(null,t.stylesApi);return M.createElement(KR,Hzt({className:o(a.close,i),ref:e,onClick:t.onClose},r))});var Gzt=at(()=>({overlay:{}}));const Uzt=Gzt;var qzt=Object.defineProperty,Jzt=Object.defineProperties,Zzt=Object.getOwnPropertyDescriptors,O4e=Object.getOwnPropertySymbols,Yzt=Object.prototype.hasOwnProperty,Qzt=Object.prototype.propertyIsEnumerable,j4e=(u,e,t)=>e in u?qzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Xzt=(u,e)=>{for(var t in e||(e={}))Yzt.call(e,t)&&j4e(u,t,e[t]);if(O4e)for(var t of O4e(e))Qzt.call(e,t)&&j4e(u,t,e[t]);return u},eLt=(u,e)=>Jzt(u,Zzt(e)),tLt=at((u,{color:e,opacity:t,blur:n,radius:i,gradient:r,fixed:a,zIndex:o})=>({root:eLt(Xzt({},u.fn.cover(0)),{position:a?"fixed":"absolute",backgroundColor:r?void 0:u.fn.rgba(e,t),backgroundImage:r,backdropFilter:n?`blur(${W(n)})`:void 0,borderRadius:u.fn.radius(i),zIndex:o,"&[data-center]":{display:"flex",alignItems:"center",justifyContent:"center"}})}));const uLt=tLt;var nLt=Object.defineProperty,DL=Object.getOwnPropertySymbols,PBe=Object.prototype.hasOwnProperty,NBe=Object.prototype.propertyIsEnumerable,V4e=(u,e,t)=>e in u?nLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iLt=(u,e)=>{for(var t in e||(e={}))PBe.call(e,t)&&V4e(u,t,e[t]);if(DL)for(var t of DL(e))NBe.call(e,t)&&V4e(u,t,e[t]);return u},rLt=(u,e)=>{var t={};for(var n in u)PBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&DL)for(var n of DL(u))e.indexOf(n)<0&&NBe.call(u,n)&&(t[n]=u[n]);return t};const aLt={opacity:.6,color:"#000",zIndex:id("modal"),radius:0},RBe=C.forwardRef((u,e)=>{const t=Je("Overlay",aLt,u),{variant:n,opacity:i,color:r,blur:a,gradient:o,zIndex:s,radius:l,children:c,className:d,classNames:h,styles:E,unstyled:g,center:m,fixed:f}=t,p=rLt(t,["variant","opacity","color","blur","gradient","zIndex","radius","children","className","classNames","styles","unstyled","center","fixed"]),{classes:D,cx:x}=uLt({color:r,opacity:i,blur:a,radius:l,gradient:o,fixed:f,zIndex:s},{name:"Overlay",classNames:h,styles:E,unstyled:g,variant:n});return M.createElement(pt,iLt({ref:e,className:x(D.root,d),"data-center":m||void 0},p),c)});RBe.displayName="@mantine/core/Overlay";const oLt=RBe;var sLt=Object.defineProperty,lLt=Object.defineProperties,cLt=Object.getOwnPropertyDescriptors,xL=Object.getOwnPropertySymbols,IBe=Object.prototype.hasOwnProperty,OBe=Object.prototype.propertyIsEnumerable,H4e=(u,e,t)=>e in u?sLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,B6=(u,e)=>{for(var t in e||(e={}))IBe.call(e,t)&&H4e(u,t,e[t]);if(xL)for(var t of xL(e))OBe.call(e,t)&&H4e(u,t,e[t]);return u},dLt=(u,e)=>lLt(u,cLt(e)),hLt=(u,e)=>{var t={};for(var n in u)IBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&xL)for(var n of xL(u))e.indexOf(n)<0&&OBe.call(u,n)&&(t[n]=u[n]);return t};const ELt={},gLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Overlay`,ELt,u),{onClick:i,transitionProps:r,style:a,className:o}=n,s=hLt(n,["onClick","transitionProps","style","className"]),{classes:l,cx:c}=Uzt(null,t.stylesApi),d=h=>{i==null||i(h),t.closeOnClickOutside&&t.onClose()};return M.createElement(Vp,dLt(B6(B6({mounted:t.opened},t.transitionProps),r),{transition:"fade"}),h=>M.createElement(oLt,B6({ref:e,onClick:d,fixed:!0,style:B6(B6({},a),h),className:c(l.overlay,o),zIndex:t.zIndex},s)))});var mLt=at((u,{zIndex:e})=>({inner:{position:"fixed",width:"100%",top:0,bottom:0,maxHeight:"100%",zIndex:e,pointerEvents:"none"},content:{pointerEvents:"all"}}));const fLt=mLt;var pLt=Object.defineProperty,vL=Object.getOwnPropertySymbols,jBe=Object.prototype.hasOwnProperty,VBe=Object.prototype.propertyIsEnumerable,$4e=(u,e,t)=>e in u?pLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,w6=(u,e)=>{for(var t in e||(e={}))jBe.call(e,t)&&$4e(u,t,e[t]);if(vL)for(var t of vL(e))VBe.call(e,t)&&$4e(u,t,e[t]);return u},DLt=(u,e)=>{var t={};for(var n in u)jBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&vL)for(var n of vL(u))e.indexOf(n)<0&&VBe.call(u,n)&&(t[n]=u[n]);return t};const xLt={},vLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Content`,xLt,u),{className:i,transitionProps:r,style:a,onKeyDown:o}=n,s=DLt(n,["className","transitionProps","style","onKeyDown"]),{classes:l,cx:c}=fLt({zIndex:t.zIndex},t.stylesApi),d=h=>{var E;((E=h.target)==null?void 0:E.getAttribute("data-mantine-stop-propagation"))!=="true"&&h.key==="Escape"&&t.closeOnEscape&&t.onClose(),o==null||o(h)};return M.createElement(Vp,w6(w6({mounted:t.opened,transition:"pop"},t.transitionProps),r),h=>M.createElement("div",{className:c(l.inner)},M.createElement(Cue,{active:t.opened&&t.trapFocus},M.createElement(aBe,w6({component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":t.bodyMounted?t.getBodyId():void 0,"aria-labelledby":t.titleMounted?t.getTitleId():void 0,onKeyDown:d,ref:e,className:c(l.content,i),style:w6(w6({},a),h),shadow:t.shadow},s),s.children))))});var CLt=at((u,{padding:e})=>{const t=Fe({size:e,sizes:u.spacing});return{header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:t,paddingRight:`calc(${t} - ${W(5)})`,position:"sticky",top:0,backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,zIndex:1e3}}});const bLt=CLt;var kLt=Object.defineProperty,CL=Object.getOwnPropertySymbols,HBe=Object.prototype.hasOwnProperty,$Be=Object.prototype.propertyIsEnumerable,K4e=(u,e,t)=>e in u?kLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yLt=(u,e)=>{for(var t in e||(e={}))HBe.call(e,t)&&K4e(u,t,e[t]);if(CL)for(var t of CL(e))$Be.call(e,t)&&K4e(u,t,e[t]);return u},FLt=(u,e)=>{var t={};for(var n in u)HBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&CL)for(var n of CL(u))e.indexOf(n)<0&&$Be.call(u,n)&&(t[n]=u[n]);return t};const ALt={},_Lt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Header`,ALt,u),{className:i}=n,r=FLt(n,["className"]),{classes:a,cx:o}=bLt({padding:t.padding},t.stylesApi);return M.createElement(pt,yLt({ref:e,className:o(a.header,i)},r))});var SLt=at(u=>({title:{lineHeight:1,padding:0,margin:0,fontWeight:400,fontSize:u.fontSizes.md}}));const BLt=SLt;var wLt=Object.defineProperty,bL=Object.getOwnPropertySymbols,KBe=Object.prototype.hasOwnProperty,WBe=Object.prototype.propertyIsEnumerable,W4e=(u,e,t)=>e in u?wLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zLt=(u,e)=>{for(var t in e||(e={}))KBe.call(e,t)&&W4e(u,t,e[t]);if(bL)for(var t of bL(e))WBe.call(e,t)&&W4e(u,t,e[t]);return u},LLt=(u,e)=>{var t={};for(var n in u)KBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&bL)for(var n of bL(u))e.indexOf(n)<0&&WBe.call(u,n)&&(t[n]=u[n]);return t};const MLt={},TLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Title`,MLt,u),{className:i}=n,r=LLt(n,["className"]),{classes:a,cx:o}=BLt(null,t.stylesApi);return C.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),M.createElement(pt,zLt({component:"h2",id:t.getTitleId(),className:o(a.title,i),ref:e},r))});var PLt=at((u,{padding:e})=>({body:{padding:Fe({size:e,sizes:u.spacing}),"&:not(:only-child)":{paddingTop:0}}}));const NLt=PLt;var RLt=Object.defineProperty,kL=Object.getOwnPropertySymbols,GBe=Object.prototype.hasOwnProperty,UBe=Object.prototype.propertyIsEnumerable,G4e=(u,e,t)=>e in u?RLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ILt=(u,e)=>{for(var t in e||(e={}))GBe.call(e,t)&&G4e(u,t,e[t]);if(kL)for(var t of kL(e))UBe.call(e,t)&&G4e(u,t,e[t]);return u},OLt=(u,e)=>{var t={};for(var n in u)GBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&kL)for(var n of kL(u))e.indexOf(n)<0&&UBe.call(u,n)&&(t[n]=u[n]);return t};const jLt={},VLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Body`,jLt,u),{className:i}=n,r=OLt(n,["className"]),{classes:a,cx:o}=NLt({padding:t.padding},t.stylesApi);return C.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),M.createElement(pt,ILt({id:t.getBodyId(),className:o(a.body,i),ref:e},r))});function HLt({children:u}){return M.createElement(M.Fragment,null,u)}function $Lt({opened:u,transitionDuration:e}){const[t,n]=C.useState(u),i=C.useRef(),a=AA()?0:e;return C.useEffect(()=>(u?(n(!0),window.clearTimeout(i.current)):a===0?n(!1):i.current=window.setTimeout(()=>n(!1),a),()=>window.clearTimeout(i.current)),[u,a]),t}var KLt=at(()=>({root:{}}));const WLt=KLt;var GLt=Object.defineProperty,ULt=Object.defineProperties,qLt=Object.getOwnPropertyDescriptors,yL=Object.getOwnPropertySymbols,qBe=Object.prototype.hasOwnProperty,JBe=Object.prototype.propertyIsEnumerable,U4e=(u,e,t)=>e in u?GLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,fH=(u,e)=>{for(var t in e||(e={}))qBe.call(e,t)&&U4e(u,t,e[t]);if(yL)for(var t of yL(e))JBe.call(e,t)&&U4e(u,t,e[t]);return u},q4e=(u,e)=>ULt(u,qLt(e)),JLt=(u,e)=>{var t={};for(var n in u)qBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&yL)for(var n of yL(u))e.indexOf(n)<0&&JBe.call(u,n)&&(t[n]=u[n]);return t};const zA={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:id("modal"),padding:"md",size:"md",shadow:"xl"};function dn(u){const e=Je("ModalBase",zA,u),{opened:t,onClose:n,children:i,closeOnClickOutside:r,__staticSelector:a,transitionProps:o,withinPortal:s,portalProps:l,keepMounted:c,target:d,zIndex:h,lockScroll:E,trapFocus:g,closeOnEscape:m,returnFocus:f,padding:p,shadow:D,id:x,size:b,variant:k,classNames:_,unstyled:y,styles:S,className:B}=e,L=JLt(e,["opened","onClose","children","closeOnClickOutside","__staticSelector","transitionProps","withinPortal","portalProps","keepMounted","target","zIndex","lockScroll","trapFocus","closeOnEscape","returnFocus","padding","shadow","id","size","variant","classNames","unstyled","styles","className"]),{classes:T,cx:N}=WLt(null,{name:a,classNames:_,styles:S,unstyled:y,variant:k,size:b}),F=Kl(x),[A,z]=C.useState(!1),[P,I]=C.useState(!1),j=typeof(o==null?void 0:o.duration)=="number"?o==null?void 0:o.duration:200,V=$Lt({opened:t,transitionDuration:j});return AJ("keydown",H=>{!g&&H.key==="Escape"&&m&&n()}),t9e({opened:t,shouldReturnFocus:g&&f}),M.createElement(_A,q4e(fH({},l),{withinPortal:s,target:d}),M.createElement(Izt,{value:{__staticSelector:a,opened:t,onClose:n,closeOnClickOutside:r,transitionProps:q4e(fH({},o),{duration:j,keepMounted:c}),zIndex:h,padding:p,id:F,getTitleId:()=>`${F}-title`,getBodyId:()=>`${F}-body`,titleMounted:A,bodyMounted:P,setTitleMounted:z,setBodyMounted:I,trapFocus:g,closeOnEscape:m,shadow:D,stylesApi:{name:a,size:b,variant:k,classNames:_,styles:S,unstyled:y}}},M.createElement(ibt,{enabled:V&&E},M.createElement(pt,fH({className:N(T.root,B)},L),i))))}dn.CloseButton=Wzt;dn.Overlay=gLt;dn.Content=vLt;dn.Header=_Lt;dn.Title=TLt;dn.Body=VLt;dn.NativeScrollArea=HLt;var ZLt=Object.defineProperty,YLt=Object.defineProperties,QLt=Object.getOwnPropertyDescriptors,FL=Object.getOwnPropertySymbols,ZBe=Object.prototype.hasOwnProperty,YBe=Object.prototype.propertyIsEnumerable,J4e=(u,e,t)=>e in u?ZLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,s8=(u,e)=>{for(var t in e||(e={}))ZBe.call(e,t)&&J4e(u,t,e[t]);if(FL)for(var t of FL(e))YBe.call(e,t)&&J4e(u,t,e[t]);return u},QBe=(u,e)=>YLt(u,QLt(e)),XLt=(u,e)=>{var t={};for(var n in u)ZBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&FL)for(var n of FL(u))e.indexOf(n)<0&&YBe.call(u,n)&&(t[n]=u[n]);return t};const eMt={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},tMt={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},uMt=QBe(s8({},zA),{position:"left"});function XBe(u){const e=Je("DrawerRoot",uMt,u),{classNames:t,variant:n,size:i,scrollAreaComponent:r,position:a,transitionProps:o}=e,s=XLt(e,["classNames","variant","size","scrollAreaComponent","position","transitionProps"]),{classes:l,cx:c,theme:d}=Rzt({position:a},{name:"Drawer",variant:n,size:i}),h=(d.dir==="rtl"?tMt:eMt)[a];return M.createElement(Tzt,{value:{scrollAreaComponent:r}},M.createElement(dn,s8({__staticSelector:"Drawer",size:i,variant:n,transitionProps:s8({transition:h,duration:200},o),classNames:QBe(s8({},t),{content:c(l.content,t==null?void 0:t.content),inner:c(l.inner,t==null?void 0:t.inner)})},s)))}var nMt=Object.defineProperty,AL=Object.getOwnPropertySymbols,ewe=Object.prototype.hasOwnProperty,twe=Object.prototype.propertyIsEnumerable,Z4e=(u,e,t)=>e in u?nMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iMt=(u,e)=>{for(var t in e||(e={}))ewe.call(e,t)&&Z4e(u,t,e[t]);if(AL)for(var t of AL(e))twe.call(e,t)&&Z4e(u,t,e[t]);return u},rMt=(u,e)=>{var t={};for(var n in u)ewe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&AL)for(var n of AL(u))e.indexOf(n)<0&&twe.call(u,n)&&(t[n]=u[n]);return t};const aMt={shadow:"xl"},uwe=C.forwardRef((u,e)=>{const t=Je("ModalContent",aMt,u),{children:n,scrollAreaComponent:i}=t,r=rMt(t,["children","scrollAreaComponent"]),a=Pzt(),o=i||a.scrollAreaComponent||dn.NativeScrollArea;return M.createElement(dn.Content,iMt({ref:e,radius:0},r),M.createElement(o,{style:{height:"100vh"}},n))});var oMt=Object.defineProperty,sMt=Object.defineProperties,lMt=Object.getOwnPropertyDescriptors,_L=Object.getOwnPropertySymbols,nwe=Object.prototype.hasOwnProperty,iwe=Object.prototype.propertyIsEnumerable,Y4e=(u,e,t)=>e in u?oMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,l8=(u,e)=>{for(var t in e||(e={}))nwe.call(e,t)&&Y4e(u,t,e[t]);if(_L)for(var t of _L(e))iwe.call(e,t)&&Y4e(u,t,e[t]);return u},cMt=(u,e)=>sMt(u,lMt(e)),dMt=(u,e)=>{var t={};for(var n in u)nwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&_L)for(var n of _L(u))e.indexOf(n)<0&&iwe.call(u,n)&&(t[n]=u[n]);return t};const hMt=cMt(l8({},zA),{withOverlay:!0,withCloseButton:!0});function F4(u){const e=Je("Drawer",hMt,u),{title:t,withOverlay:n,overlayProps:i,withCloseButton:r,closeButtonProps:a,children:o}=e,s=dMt(e,["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children"]),l=!!t||r;return M.createElement(XBe,l8({},s),n&&M.createElement(dn.Overlay,l8({},i)),M.createElement(uwe,null,l&&M.createElement(dn.Header,null,t&&M.createElement(dn.Title,null,t),r&&M.createElement(dn.CloseButton,l8({},a))),M.createElement(dn.Body,null,o)))}F4.Root=XBe;F4.CloseButton=dn.CloseButton;F4.Overlay=dn.Overlay;F4.Content=uwe;F4.Header=dn.Header;F4.Title=dn.Title;F4.Body=dn.Body;F4.NativeScrollArea=dn.NativeScrollArea;var EMt=Object.defineProperty,SL=Object.getOwnPropertySymbols,rwe=Object.prototype.hasOwnProperty,awe=Object.prototype.propertyIsEnumerable,Q4e=(u,e,t)=>e in u?EMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,X4e=(u,e)=>{for(var t in e||(e={}))rwe.call(e,t)&&Q4e(u,t,e[t]);if(SL)for(var t of SL(e))awe.call(e,t)&&Q4e(u,t,e[t]);return u},gMt=(u,e)=>{var t={};for(var n in u)rwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&SL)for(var n of SL(u))e.indexOf(n)<0&&awe.call(u,n)&&(t[n]=u[n]);return t};const mMt={multiple:!1},owe=C.forwardRef((u,e)=>{const t=Je("FileButton",mMt,u),{onChange:n,children:i,multiple:r,accept:a,name:o,form:s,resetRef:l,disabled:c,capture:d,inputProps:h}=t,E=gMt(t,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture","inputProps"]),g=C.useRef(),m=()=>{!c&&g.current.click()},f=D=>{n(r?Array.from(D.currentTarget.files):D.currentTarget.files[0]||null)};return nue(l,()=>{g.current.value=""}),M.createElement(M.Fragment,null,i(X4e({onClick:m},E)),M.createElement("input",X4e({style:{display:"none"},type:"file",accept:a,multiple:r,onChange:f,ref:N1(e,g),name:o,form:s,capture:d},h)))});owe.displayName="@mantine/core/FileButton";const fMt={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var pMt=Object.defineProperty,DMt=Object.defineProperties,xMt=Object.getOwnPropertyDescriptors,BL=Object.getOwnPropertySymbols,swe=Object.prototype.hasOwnProperty,lwe=Object.prototype.propertyIsEnumerable,eEe=(u,e,t)=>e in u?pMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,vMt=(u,e)=>{for(var t in e||(e={}))swe.call(e,t)&&eEe(u,t,e[t]);if(BL)for(var t of BL(e))lwe.call(e,t)&&eEe(u,t,e[t]);return u},CMt=(u,e)=>DMt(u,xMt(e)),bMt=(u,e)=>{var t={};for(var n in u)swe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&BL)for(var n of BL(u))e.indexOf(n)<0&&lwe.call(u,n)&&(t[n]=u[n]);return t};const kMt={},fg=C.forwardRef((u,e)=>{const t=Je("Flex",kMt,u),{gap:n,rowGap:i,columnGap:r,align:a,justify:o,wrap:s,direction:l,sx:c}=t,d=bMt(t,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return M.createElement(pt,CMt(vMt({},d),{sx:[{display:"flex"},h=>_J({gap:n,rowGap:i,columnGap:r,align:a,justify:o,wrap:s,direction:l},h,fMt),...BR(c)],ref:e}))});fg.displayName="@mantine/core/Flex";function yMt(u){return C.Children.toArray(u).filter(Boolean)}const cwe={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var FMt=at((u,{spacing:e,position:t,noWrap:n,grow:i,align:r,count:a})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:r||"center",flexWrap:n?"nowrap":"wrap",justifyContent:cwe[t],gap:Fe({size:e,sizes:u.spacing}),"& > *":{boxSizing:"border-box",maxWidth:i?`calc(${100/a}% - (${W(Fe({size:e,sizes:u.spacing}))} - ${Fe({size:e,sizes:u.spacing})} / ${a}))`:void 0,flexGrow:i?1:0}}}));const AMt=FMt;var _Mt=Object.defineProperty,wL=Object.getOwnPropertySymbols,dwe=Object.prototype.hasOwnProperty,hwe=Object.prototype.propertyIsEnumerable,tEe=(u,e,t)=>e in u?_Mt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,SMt=(u,e)=>{for(var t in e||(e={}))dwe.call(e,t)&&tEe(u,t,e[t]);if(wL)for(var t of wL(e))hwe.call(e,t)&&tEe(u,t,e[t]);return u},BMt=(u,e)=>{var t={};for(var n in u)dwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&wL)for(var n of wL(u))e.indexOf(n)<0&&hwe.call(u,n)&&(t[n]=u[n]);return t};const wMt={position:"left",spacing:"md"},_i=C.forwardRef((u,e)=>{const t=Je("Group",wMt,u),{className:n,position:i,align:r,children:a,noWrap:o,grow:s,spacing:l,unstyled:c,variant:d}=t,h=BMt(t,["className","position","align","children","noWrap","grow","spacing","unstyled","variant"]),E=yMt(a),{classes:g,cx:m}=AMt({align:r,grow:s,noWrap:o,spacing:l,position:i,count:E.length},{unstyled:c,name:"Group",variant:d});return M.createElement(pt,SMt({className:m(g.root,n),ref:e},h),E)});_i.displayName="@mantine/core/Group";const Ewe={context:"HoverCard component was not found in the tree",children:"HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[zMt,gwe]=P1(Ewe.context);var LMt=Object.defineProperty,zL=Object.getOwnPropertySymbols,mwe=Object.prototype.hasOwnProperty,fwe=Object.prototype.propertyIsEnumerable,uEe=(u,e,t)=>e in u?LMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,MMt=(u,e)=>{for(var t in e||(e={}))mwe.call(e,t)&&uEe(u,t,e[t]);if(zL)for(var t of zL(e))fwe.call(e,t)&&uEe(u,t,e[t]);return u},TMt=(u,e)=>{var t={};for(var n in u)mwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&zL)for(var n of zL(u))e.indexOf(n)<0&&fwe.call(u,n)&&(t[n]=u[n]);return t};const PMt={};function pwe(u){const e=Je("HoverCardDropdown",PMt,u),{children:t,onMouseEnter:n,onMouseLeave:i}=e,r=TMt(e,["children","onMouseEnter","onMouseLeave"]),a=gwe(),o=uo(n,a.openDropdown),s=uo(i,a.closeDropdown);return M.createElement(os.Dropdown,MMt({onMouseEnter:o,onMouseLeave:s},r),t)}pwe.displayName="@mantine/core/HoverCardDropdown";var NMt=Object.defineProperty,LL=Object.getOwnPropertySymbols,Dwe=Object.prototype.hasOwnProperty,xwe=Object.prototype.propertyIsEnumerable,nEe=(u,e,t)=>e in u?NMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,RMt=(u,e)=>{for(var t in e||(e={}))Dwe.call(e,t)&&nEe(u,t,e[t]);if(LL)for(var t of LL(e))xwe.call(e,t)&&nEe(u,t,e[t]);return u},IMt=(u,e)=>{var t={};for(var n in u)Dwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&LL)for(var n of LL(u))e.indexOf(n)<0&&xwe.call(u,n)&&(t[n]=u[n]);return t};const OMt={refProp:"ref"},vwe=C.forwardRef((u,e)=>{const t=Je("HoverCardTarget",OMt,u),{children:n,refProp:i}=t,r=IMt(t,["children","refProp"]);if(!fC(n))throw new Error(Ewe.children);const a=gwe(),o=uo(n.props.onMouseEnter,a.openDropdown),s=uo(n.props.onMouseLeave,a.closeDropdown);return M.createElement(os.Target,RMt({refProp:i,ref:e},r),C.cloneElement(n,{onMouseEnter:o,onMouseLeave:s}))});vwe.displayName="@mantine/core/HoverCardTarget";function Cwe({open:u,close:e,openDelay:t,closeDelay:n}){const i=C.useRef(-1),r=C.useRef(-1),a=()=>{window.clearTimeout(i.current),window.clearTimeout(r.current)},o=()=>{a(),t===0?u():i.current=window.setTimeout(u,t)},s=()=>{a(),n===0?e():r.current=window.setTimeout(e,n)};return C.useEffect(()=>a,[]),{openDropdown:o,closeDropdown:s}}var jMt=Object.defineProperty,ML=Object.getOwnPropertySymbols,bwe=Object.prototype.hasOwnProperty,kwe=Object.prototype.propertyIsEnumerable,iEe=(u,e,t)=>e in u?jMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VMt=(u,e)=>{for(var t in e||(e={}))bwe.call(e,t)&&iEe(u,t,e[t]);if(ML)for(var t of ML(e))kwe.call(e,t)&&iEe(u,t,e[t]);return u},HMt=(u,e)=>{var t={};for(var n in u)bwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&ML)for(var n of ML(u))e.indexOf(n)<0&&kwe.call(u,n)&&(t[n]=u[n]);return t};const $Mt={openDelay:0,closeDelay:150,initiallyOpened:!1};function ph(u){const e=Je("HoverCard",$Mt,u),{children:t,onOpen:n,onClose:i,openDelay:r,closeDelay:a,initiallyOpened:o}=e,s=HMt(e,["children","onOpen","onClose","openDelay","closeDelay","initiallyOpened"]),[l,{open:c,close:d}]=$n(o,{onClose:i,onOpen:n}),{openDropdown:h,closeDropdown:E}=Cwe({open:c,close:d,openDelay:r,closeDelay:a});return M.createElement(zMt,{value:{openDropdown:h,closeDropdown:E}},M.createElement(os,VMt({opened:l,__staticSelector:"HoverCard"},s),t))}ph.displayName="@mantine/core/HoverCard";ph.Target=vwe;ph.Dropdown=pwe;var KMt=Object.defineProperty,TL=Object.getOwnPropertySymbols,ywe=Object.prototype.hasOwnProperty,Fwe=Object.prototype.propertyIsEnumerable,rEe=(u,e,t)=>e in u?KMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,aEe=(u,e)=>{for(var t in e||(e={}))ywe.call(e,t)&&rEe(u,t,e[t]);if(TL)for(var t of TL(e))Fwe.call(e,t)&&rEe(u,t,e[t]);return u},WMt=(u,e)=>{var t={};for(var n in u)ywe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&TL)for(var n of TL(u))e.indexOf(n)<0&&Fwe.call(u,n)&&(t[n]=u[n]);return t};function GMt(u){const e=u,{width:t,height:n,style:i}=e,r=WMt(e,["width","height","style"]);return M.createElement("svg",aEe({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:aEe({width:t,height:n},i)},r),M.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var UMt=Object.defineProperty,qMt=Object.defineProperties,JMt=Object.getOwnPropertyDescriptors,oEe=Object.getOwnPropertySymbols,ZMt=Object.prototype.hasOwnProperty,YMt=Object.prototype.propertyIsEnumerable,sEe=(u,e,t)=>e in u?UMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,lEe=(u,e)=>{for(var t in e||(e={}))ZMt.call(e,t)&&sEe(u,t,e[t]);if(oEe)for(var t of oEe(e))YMt.call(e,t)&&sEe(u,t,e[t]);return u},cEe=(u,e)=>qMt(u,JMt(e)),QMt=at((u,{radius:e})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:cEe(lEe({},u.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:u.fn.radius(e)}),caption:{color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[7],marginTop:u.spacing.xs},placeholder:cEe(lEe({},u.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],backgroundColor:u.colorScheme==="dark"?u.colors.dark[8]:u.colors.gray[0],borderRadius:u.fn.radius(e)})}));const XMt=QMt;var eTt=Object.defineProperty,tTt=Object.defineProperties,uTt=Object.getOwnPropertyDescriptors,PL=Object.getOwnPropertySymbols,Awe=Object.prototype.hasOwnProperty,_we=Object.prototype.propertyIsEnumerable,dEe=(u,e,t)=>e in u?eTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,z6=(u,e)=>{for(var t in e||(e={}))Awe.call(e,t)&&dEe(u,t,e[t]);if(PL)for(var t of PL(e))_we.call(e,t)&&dEe(u,t,e[t]);return u},nTt=(u,e)=>tTt(u,uTt(e)),iTt=(u,e)=>{var t={};for(var n in u)Awe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&PL)for(var n of PL(u))e.indexOf(n)<0&&_we.call(u,n)&&(t[n]=u[n]);return t};const rTt={fit:"cover",width:"100%",height:"auto",radius:0},NJ=C.forwardRef((u,e)=>{const t=Je("Image",rTt,u),{className:n,alt:i,src:r,fit:a,width:o,height:s,radius:l,imageProps:c,withPlaceholder:d,placeholder:h,imageRef:E,classNames:g,styles:m,caption:f,unstyled:p,style:D,variant:x}=t,b=iTt(t,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style","variant"]),{classes:k,cx:_}=XMt({radius:l},{classNames:g,styles:m,unstyled:p,name:"Image",variant:x}),[y,S]=C.useState(!r),B=d&&y;return Lo(()=>{S(!r)},[r]),M.createElement(pt,z6({className:_(k.root,n),style:z6({width:W(o)},D),ref:e},b),M.createElement("figure",{className:k.figure},M.createElement("div",{className:k.imageWrapper},M.createElement("img",nTt(z6({src:r,alt:i,ref:E},c),{className:_(k.image,c==null?void 0:c.className),onError:L=>{S(!0),typeof(c==null?void 0:c.onError)=="function"&&c.onError(L)},style:z6(z6({objectFit:a,width:W(o),height:W(s)},B&&{overflow:"hidden"}),c==null?void 0:c.style)})),B&&M.createElement("div",{className:k.placeholder,title:i},h||M.createElement("div",null,M.createElement(GMt,{width:W(40),height:W(40)})))),!!f&&M.createElement(Fu,{component:"figcaption",size:"sm",align:"center",className:k.caption},f)))});NJ.displayName="@mantine/core/Image";var aTt=Object.defineProperty,oTt=Object.defineProperties,sTt=Object.getOwnPropertyDescriptors,hEe=Object.getOwnPropertySymbols,lTt=Object.prototype.hasOwnProperty,cTt=Object.prototype.propertyIsEnumerable,EEe=(u,e,t)=>e in u?aTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gEe=(u,e)=>{for(var t in e||(e={}))lTt.call(e,t)&&EEe(u,t,e[t]);if(hEe)for(var t of hEe(e))cTt.call(e,t)&&EEe(u,t,e[t]);return u},mEe=(u,e)=>oTt(u,sTt(e));const dTt=u=>Vkt({from:{boxShadow:`0 0 ${W(.5)} 0 ${u}`,opacity:.6},to:{boxShadow:`0 0 ${W(.5)} ${W(4.4)} ${u}`,opacity:0}});function fEe(u,e=0){const t={},[n,i]=u.split("-");let r="",a="";return n==="top"&&(t.top=e,a="-50%"),n==="middle"&&(t.top="50%",a="-50%"),n==="bottom"&&(t.bottom=e,a="50%"),i==="start"&&(t.left=e,r="-50%"),i==="center"&&(t.left="50%",r="-50%"),i==="end"&&(t.right=e,r="50%"),t.transform=`translate(${r}, ${a})`,t}var hTt=at((u,{radius:e,color:t,position:n,offset:i,inline:r,withBorder:a,withLabel:o,zIndex:s},{size:l})=>{const{background:c}=u.fn.variant({variant:"filled",primaryFallback:!1,color:t||u.primaryColor}),d=W(l);return{root:{position:"relative",display:r?"inline-block":"block"},indicator:mEe(gEe({},fEe(n,i)),{zIndex:s,position:"absolute",[o?"minWidth":"width"]:d,height:d,display:"flex",justifyContent:"center",alignItems:"center",fontSize:u.fontSizes.xs,paddingLeft:o?`calc(${u.spacing.xs} / 2)`:0,paddingRight:o?`calc(${u.spacing.xs} / 2)`:0,borderRadius:u.fn.radius(e),backgroundColor:u.fn.variant({variant:"filled",primaryFallback:!1,color:t||u.primaryColor}).background,border:a?`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[7]:u.white}`:void 0,color:u.white,whiteSpace:"nowrap"}),processing:{animation:`${dTt(c)} 1000ms linear infinite`},common:mEe(gEe({},fEe(n,i)),{position:"absolute",[o?"minWidth":"width"]:d,height:d,borderRadius:u.fn.radius(e)})}});const ETt=hTt;var gTt=Object.defineProperty,NL=Object.getOwnPropertySymbols,Swe=Object.prototype.hasOwnProperty,Bwe=Object.prototype.propertyIsEnumerable,pEe=(u,e,t)=>e in u?gTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mTt=(u,e)=>{for(var t in e||(e={}))Swe.call(e,t)&&pEe(u,t,e[t]);if(NL)for(var t of NL(e))Bwe.call(e,t)&&pEe(u,t,e[t]);return u},fTt=(u,e)=>{var t={};for(var n in u)Swe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&NL)for(var n of NL(u))e.indexOf(n)<0&&Bwe.call(u,n)&&(t[n]=u[n]);return t};const pTt={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1,size:10,radius:1e3,zIndex:id("app")},wwe=C.forwardRef((u,e)=>{const t=Je("Indicator",pTt,u),{children:n,position:i,offset:r,size:a,radius:o,inline:s,withBorder:l,className:c,color:d,styles:h,label:E,classNames:g,disabled:m,zIndex:f,unstyled:p,processing:D,variant:x}=t,b=fTt(t,["children","position","offset","size","radius","inline","withBorder","className","color","styles","label","classNames","disabled","zIndex","unstyled","processing","variant"]),{classes:k,cx:_}=ETt({position:i,offset:r,radius:o,inline:s,color:d,withBorder:l,zIndex:f,withLabel:!!E},{name:"Indicator",classNames:g,styles:h,unstyled:p,variant:x,size:a});return M.createElement(pt,mTt({ref:e,className:_(k.root,c)},b),!m&&M.createElement(M.Fragment,null,M.createElement("div",{className:_(k.indicator,k.common)},E),D&&M.createElement("div",{className:_(k.processing,k.common)})),n)});wwe.displayName="@mantine/core/Indicator";function zwe(u,e){if(u==null)return{};var t={},n=Object.keys(u),i,r;for(r=0;r=0)&&(t[i]=u[i]);return t}const Lwe={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[DTt,LA]=P1(Lwe.context);var xTt=at(u=>({divider:{marginTop:W(4),marginBottom:W(4),borderTop:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`}}));const vTt=xTt;var CTt=Object.defineProperty,RL=Object.getOwnPropertySymbols,Mwe=Object.prototype.hasOwnProperty,Twe=Object.prototype.propertyIsEnumerable,DEe=(u,e,t)=>e in u?CTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,bTt=(u,e)=>{for(var t in e||(e={}))Mwe.call(e,t)&&DEe(u,t,e[t]);if(RL)for(var t of RL(e))Twe.call(e,t)&&DEe(u,t,e[t]);return u},kTt=(u,e)=>{var t={};for(var n in u)Mwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&RL)for(var n of RL(u))e.indexOf(n)<0&&Twe.call(u,n)&&(t[n]=u[n]);return t};const yTt={},Pwe=C.forwardRef((u,e)=>{const t=Je("MenuDivider",yTt,u),{children:n,className:i}=t,r=kTt(t,["children","className"]),{classNames:a,styles:o,unstyled:s,variant:l}=LA(),{classes:c,cx:d}=vTt(null,{name:"Menu",classNames:a,styles:o,unstyled:s,variant:l});return M.createElement(pt,bTt({className:d(c.divider,i),ref:e},r))});Pwe.displayName="@mantine/core/MenuDivider";var FTt=Object.defineProperty,IL=Object.getOwnPropertySymbols,Nwe=Object.prototype.hasOwnProperty,Rwe=Object.prototype.propertyIsEnumerable,xEe=(u,e,t)=>e in u?FTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ATt=(u,e)=>{for(var t in e||(e={}))Nwe.call(e,t)&&xEe(u,t,e[t]);if(IL)for(var t of IL(e))Rwe.call(e,t)&&xEe(u,t,e[t]);return u},_Tt=(u,e)=>{var t={};for(var n in u)Nwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&IL)for(var n of IL(u))e.indexOf(n)<0&&Rwe.call(u,n)&&(t[n]=u[n]);return t};const STt={};function Iwe(u){const e=Je("MenuDropdown",STt,u),{children:t,onMouseEnter:n,onMouseLeave:i}=e,r=_Tt(e,["children","onMouseEnter","onMouseLeave"]),a=C.useRef(),o=LA(),s=d=>{var h;(d.key==="ArrowUp"||d.key==="ArrowDown")&&(d.preventDefault(),(h=a.current.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||h.focus())},l=uo(n,()=>o.trigger==="hover"&&o.openDropdown()),c=uo(i,()=>o.trigger==="hover"&&o.closeDropdown());return M.createElement(os.Dropdown,ATt({onMouseEnter:l,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},r),M.createElement("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:a,style:{outline:0}},t))}Iwe.displayName="@mantine/core/MenuDropdown";var BTt=Object.defineProperty,wTt=Object.defineProperties,zTt=Object.getOwnPropertyDescriptors,vEe=Object.getOwnPropertySymbols,LTt=Object.prototype.hasOwnProperty,MTt=Object.prototype.propertyIsEnumerable,CEe=(u,e,t)=>e in u?BTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,TTt=(u,e)=>{for(var t in e||(e={}))LTt.call(e,t)&&CEe(u,t,e[t]);if(vEe)for(var t of vEe(e))MTt.call(e,t)&&CEe(u,t,e[t]);return u},PTt=(u,e)=>wTt(u,zTt(e)),NTt=at((u,{color:e,radius:t})=>({item:PTt(TTt({},u.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:u.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${u.spacing.xs} ${u.spacing.sm}`,cursor:"pointer",borderRadius:u.fn.radius(t),color:e?u.fn.variant({variant:"filled",primaryFallback:!1,color:e}).background:u.colorScheme==="dark"?u.colors.dark[0]:u.black,display:"flex",alignItems:"center","&:disabled":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:e?u.fn.variant({variant:"light",color:e}).background:u.colorScheme==="dark"?u.fn.rgba(u.colors.dark[3],.35):u.colors.gray[1]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:u.spacing.xs},itemRightSection:{}}));const RTt=NTt;var ITt=Object.defineProperty,OTt=Object.defineProperties,jTt=Object.getOwnPropertyDescriptors,OL=Object.getOwnPropertySymbols,Owe=Object.prototype.hasOwnProperty,jwe=Object.prototype.propertyIsEnumerable,bEe=(u,e,t)=>e in u?ITt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VTt=(u,e)=>{for(var t in e||(e={}))Owe.call(e,t)&&bEe(u,t,e[t]);if(OL)for(var t of OL(e))jwe.call(e,t)&&bEe(u,t,e[t]);return u},HTt=(u,e)=>OTt(u,jTt(e)),$Tt=(u,e)=>{var t={};for(var n in u)Owe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&OL)for(var n of OL(u))e.indexOf(n)<0&&jwe.call(u,n)&&(t[n]=u[n]);return t};const KTt={},Vwe=C.forwardRef((u,e)=>{const t=Je("MenuItem",KTt,u),{children:n,className:i,color:r,closeMenuOnClick:a,icon:o,rightSection:s}=t,l=$Tt(t,["children","className","color","closeMenuOnClick","icon","rightSection"]),c=LA(),{classes:d,cx:h,theme:E}=RTt({radius:c.radius,color:r},{name:"Menu",classNames:c.classNames,styles:c.styles,unstyled:c.unstyled,variant:c.variant}),g=C.useRef(),m=c.getItemIndex(g.current),f=l,p=uo(f.onMouseLeave,()=>c.setHovered(-1)),D=uo(f.onMouseEnter,()=>c.setHovered(c.getItemIndex(g.current))),x=uo(f.onClick,()=>{typeof a=="boolean"?a&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),b=uo(f.onFocus,()=>c.setHovered(c.getItemIndex(g.current)));return M.createElement(pt,HTt(VTt({component:"button",type:"button"},l),{tabIndex:-1,onFocus:b,className:h(d.item,i),ref:N1(g,e),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===m?!0:void 0,onMouseEnter:D,onMouseLeave:p,onClick:x,onKeyDown:Kte({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:E.dir,orientation:"vertical",onKeyDown:f.onKeydown})}),o&&M.createElement("div",{className:d.itemIcon},o),n&&M.createElement("div",{className:d.itemLabel},n),s&&M.createElement("div",{className:d.itemRightSection},s))});Vwe.displayName="@mantine/core/MenuItem";const WTt=Vwe;var GTt=at(u=>({label:{color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],fontWeight:500,fontSize:u.fontSizes.xs,padding:`calc(${u.spacing.xs} / 2) ${u.spacing.sm}`,cursor:"default"}}));const UTt=GTt;var qTt=Object.defineProperty,jL=Object.getOwnPropertySymbols,Hwe=Object.prototype.hasOwnProperty,$we=Object.prototype.propertyIsEnumerable,kEe=(u,e,t)=>e in u?qTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JTt=(u,e)=>{for(var t in e||(e={}))Hwe.call(e,t)&&kEe(u,t,e[t]);if(jL)for(var t of jL(e))$we.call(e,t)&&kEe(u,t,e[t]);return u},ZTt=(u,e)=>{var t={};for(var n in u)Hwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&jL)for(var n of jL(u))e.indexOf(n)<0&&$we.call(u,n)&&(t[n]=u[n]);return t};const YTt={},Kwe=C.forwardRef((u,e)=>{const t=Je("MenuLabel",YTt,u),{children:n,className:i}=t,r=ZTt(t,["children","className"]),{classNames:a,styles:o,unstyled:s,variant:l}=LA(),{classes:c,cx:d}=UTt(null,{name:"Menu",classNames:a,styles:o,unstyled:s,variant:l});return M.createElement(Fu,JTt({className:d(c.label,i),ref:e},r),n)});Kwe.displayName="@mantine/core/MenuLabel";var QTt=Object.defineProperty,VL=Object.getOwnPropertySymbols,Wwe=Object.prototype.hasOwnProperty,Gwe=Object.prototype.propertyIsEnumerable,yEe=(u,e,t)=>e in u?QTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,XTt=(u,e)=>{for(var t in e||(e={}))Wwe.call(e,t)&&yEe(u,t,e[t]);if(VL)for(var t of VL(e))Gwe.call(e,t)&&yEe(u,t,e[t]);return u},ePt=(u,e)=>{var t={};for(var n in u)Wwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&VL)for(var n of VL(u))e.indexOf(n)<0&&Gwe.call(u,n)&&(t[n]=u[n]);return t};const tPt={refProp:"ref"},Uwe=C.forwardRef((u,e)=>{const t=Je("MenuTarget",tPt,u),{children:n,refProp:i}=t,r=ePt(t,["children","refProp"]);if(!fC(n))throw new Error(Lwe.children);const a=LA(),o=uo(n.props.onClick,()=>a.trigger==="click"&&a.toggleDropdown()),s=uo(n.props.onMouseEnter,()=>a.trigger==="hover"&&a.openDropdown()),l=uo(n.props.onMouseLeave,()=>a.trigger==="hover"&&a.closeDropdown());return M.createElement(os.Target,XTt({refProp:i,popupType:"menu",ref:e},r),C.cloneElement(n,{onClick:o,onMouseEnter:s,onMouseLeave:l,"data-expanded":a.opened?!0:void 0}))});Uwe.displayName="@mantine/core/MenuTarget";var uPt=at({dropdown:{padding:W(4)}});const nPt=uPt;var iPt=Object.defineProperty,rPt=Object.defineProperties,aPt=Object.getOwnPropertyDescriptors,HL=Object.getOwnPropertySymbols,qwe=Object.prototype.hasOwnProperty,Jwe=Object.prototype.propertyIsEnumerable,FEe=(u,e,t)=>e in u?iPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,AEe=(u,e)=>{for(var t in e||(e={}))qwe.call(e,t)&&FEe(u,t,e[t]);if(HL)for(var t of HL(e))Jwe.call(e,t)&&FEe(u,t,e[t]);return u},_Ee=(u,e)=>rPt(u,aPt(e)),oPt=(u,e)=>{var t={};for(var n in u)qwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&HL)for(var n of HL(u))e.indexOf(n)<0&&Jwe.call(u,n)&&(t[n]=u[n]);return t};const sPt={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function Ca(u){const e=Je("Menu",sPt,u),{children:t,onOpen:n,onClose:i,opened:r,defaultOpened:a,onChange:o,closeOnItemClick:s,loop:l,closeOnEscape:c,trigger:d,openDelay:h,closeDelay:E,classNames:g,styles:m,unstyled:f,radius:p,variant:D}=e,x=oPt(e,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius","variant"]),{classes:b,cx:k}=nPt(),[_,{setHovered:y,resetHovered:S}]=dbt(),[B,L]=cs({value:r,defaultValue:a,finalValue:!1,onChange:o}),T=()=>{L(!1),B&&(i==null||i())},N=()=>{L(!0),!B&&(n==null||n())},F=()=>B?T():N(),{openDropdown:A,closeDropdown:z}=Cwe({open:N,close:T,closeDelay:E,openDelay:h}),P=I=>sbt("[data-menu-item]","[data-menu-dropdown]",I);return Lo(()=>{S()},[B]),M.createElement(DTt,{value:{opened:B,toggleDropdown:F,getItemIndex:P,hovered:_,setHovered:y,closeOnItemClick:s,closeDropdown:d==="click"?T:z,openDropdown:d==="click"?N:A,closeDropdownImmediately:T,loop:l,trigger:d,radius:p,classNames:g,styles:m,unstyled:f,variant:D}},M.createElement(os,_Ee(AEe({},x),{radius:p,opened:B,onChange:F,defaultOpened:a,trapFocus:d==="click",closeOnEscape:c&&d==="click",__staticSelector:"Menu",classNames:_Ee(AEe({},g),{dropdown:k(b.dropdown,g==null?void 0:g.dropdown)}),styles:m,unstyled:f,variant:D}),t))}Ca.displayName="@mantine/core/Menu";Ca.Item=WTt;Ca.Label=Kwe;Ca.Dropdown=Iwe;Ca.Target=Uwe;Ca.Divider=Pwe;const[lPt,cPt]=P1("Modal component was not found in tree"),dPt={xs:W(320),sm:W(380),md:W(440),lg:W(620),xl:W(780)};var hPt=at((u,{yOffset:e,xOffset:t,centered:n,fullScreen:i},{size:r})=>({content:{flex:i?"0 0 100%":`0 0 ${Fe({size:r,sizes:dPt})}`,maxWidth:"100%",maxHeight:i?void 0:`calc(100dvh - (${W(e)} * 2))`,height:i?"100vh":void 0,borderRadius:i?0:void 0,overflowY:"auto"},inner:{paddingTop:i?0:e,paddingBottom:i?0:e,paddingLeft:i?0:t,paddingRight:i?0:t,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"}}));const EPt=hPt;var gPt=Object.defineProperty,mPt=Object.defineProperties,fPt=Object.getOwnPropertyDescriptors,$L=Object.getOwnPropertySymbols,Zwe=Object.prototype.hasOwnProperty,Ywe=Object.prototype.propertyIsEnumerable,SEe=(u,e,t)=>e in u?gPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,RJ=(u,e)=>{for(var t in e||(e={}))Zwe.call(e,t)&&SEe(u,t,e[t]);if($L)for(var t of $L(e))Ywe.call(e,t)&&SEe(u,t,e[t]);return u},Qwe=(u,e)=>mPt(u,fPt(e)),pPt=(u,e)=>{var t={};for(var n in u)Zwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&$L)for(var n of $L(u))e.indexOf(n)<0&&Ywe.call(u,n)&&(t[n]=u[n]);return t};const DPt=Qwe(RJ({},zA),{yOffset:"5dvh",xOffset:"5vw"});function Xwe(u){const e=Je("ModalRoot",DPt,u),{classNames:t,variant:n,size:i,yOffset:r,xOffset:a,scrollAreaComponent:o,radius:s,centered:l,fullScreen:c}=e,d=pPt(e,["classNames","variant","size","yOffset","xOffset","scrollAreaComponent","radius","centered","fullScreen"]),{classes:h,cx:E}=EPt({yOffset:r,xOffset:a,centered:l,fullScreen:c},{name:"Modal",variant:n,size:i});return M.createElement(lPt,{value:{yOffset:r,scrollAreaComponent:o,radius:s}},M.createElement(dn,RJ({__staticSelector:"Modal",size:i,variant:n,classNames:Qwe(RJ({},t),{content:E(h.content,t==null?void 0:t.content),inner:E(h.inner,t==null?void 0:t.inner)})},d)))}var xPt=Object.defineProperty,KL=Object.getOwnPropertySymbols,eze=Object.prototype.hasOwnProperty,tze=Object.prototype.propertyIsEnumerable,BEe=(u,e,t)=>e in u?xPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,vPt=(u,e)=>{for(var t in e||(e={}))eze.call(e,t)&&BEe(u,t,e[t]);if(KL)for(var t of KL(e))tze.call(e,t)&&BEe(u,t,e[t]);return u},CPt=(u,e)=>{var t={};for(var n in u)eze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&KL)for(var n of KL(u))e.indexOf(n)<0&&tze.call(u,n)&&(t[n]=u[n]);return t};const bPt={shadow:"xl"},uze=C.forwardRef((u,e)=>{const t=Je("ModalContent",bPt,u),{children:n,scrollAreaComponent:i}=t,r=CPt(t,["children","scrollAreaComponent"]),a=cPt(),o=i||a.scrollAreaComponent||dn.NativeScrollArea;return M.createElement(dn.Content,vPt({ref:e,radius:a.radius},r),M.createElement(o,{style:{maxHeight:`calc(100dvh - (${W(a.yOffset)} * 2))`}},n))});var kPt=Object.defineProperty,yPt=Object.defineProperties,FPt=Object.getOwnPropertyDescriptors,WL=Object.getOwnPropertySymbols,nze=Object.prototype.hasOwnProperty,ize=Object.prototype.propertyIsEnumerable,wEe=(u,e,t)=>e in u?kPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,c8=(u,e)=>{for(var t in e||(e={}))nze.call(e,t)&&wEe(u,t,e[t]);if(WL)for(var t of WL(e))ize.call(e,t)&&wEe(u,t,e[t]);return u},APt=(u,e)=>yPt(u,FPt(e)),_Pt=(u,e)=>{var t={};for(var n in u)nze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&WL)for(var n of WL(u))e.indexOf(n)<0&&ize.call(u,n)&&(t[n]=u[n]);return t};const SPt=APt(c8({},zA),{transitionProps:{duration:200,transition:"pop"},withOverlay:!0,withCloseButton:!0});function ji(u){const e=Je("Modal",SPt,u),{title:t,withOverlay:n,overlayProps:i,withCloseButton:r,closeButtonProps:a,children:o}=e,s=_Pt(e,["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children"]),l=!!t||r;return M.createElement(Xwe,c8({},s),n&&M.createElement(dn.Overlay,c8({},i)),M.createElement(uze,null,l&&M.createElement(dn.Header,null,t&&M.createElement(dn.Title,null,t),r&&M.createElement(dn.CloseButton,c8({},a))),M.createElement(dn.Body,null,o)))}ji.Root=Xwe;ji.CloseButton=dn.CloseButton;ji.Overlay=dn.Overlay;ji.Content=uze;ji.Header=dn.Header;ji.Title=dn.Title;ji.Body=dn.Body;ji.NativeScrollArea=dn.NativeScrollArea;const rze={xs:W(16),sm:W(22),md:W(26),lg:W(30),xl:W(36)},BPt={xs:W(10),sm:W(12),md:W(14),lg:W(16),xl:W(18)};var wPt=at((u,{disabled:e,radius:t,readOnly:n},{size:i,variant:r})=>({defaultValue:{display:"flex",alignItems:"center",backgroundColor:e?u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[3]:u.colorScheme==="dark"?u.colors.dark[7]:r==="filled"?u.white:u.colors.gray[1],color:e?u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[7]:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[7],height:Fe({size:i,sizes:rze}),paddingLeft:`calc(${Fe({size:i,sizes:u.spacing})} / 1.5)`,paddingRight:e||n?Fe({size:i,sizes:u.spacing}):0,fontWeight:500,fontSize:Fe({size:i,sizes:BPt}),borderRadius:Fe({size:t,sizes:u.radius}),cursor:e?"not-allowed":"default",userSelect:"none",maxWidth:`calc(100% - ${W(10)})`},defaultValueRemove:{color:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[7],marginLeft:`calc(${Fe({size:i,sizes:u.spacing})} / 6)`},defaultValueLabel:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}));const zPt=wPt;var LPt=Object.defineProperty,GL=Object.getOwnPropertySymbols,aze=Object.prototype.hasOwnProperty,oze=Object.prototype.propertyIsEnumerable,zEe=(u,e,t)=>e in u?LPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,MPt=(u,e)=>{for(var t in e||(e={}))aze.call(e,t)&&zEe(u,t,e[t]);if(GL)for(var t of GL(e))oze.call(e,t)&&zEe(u,t,e[t]);return u},TPt=(u,e)=>{var t={};for(var n in u)aze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&GL)for(var n of GL(u))e.indexOf(n)<0&&oze.call(u,n)&&(t[n]=u[n]);return t};const PPt={xs:16,sm:22,md:24,lg:26,xl:30};function sze(u){var e=u,{label:t,classNames:n,styles:i,className:r,onRemove:a,disabled:o,readOnly:s,size:l,radius:c="sm",variant:d,unstyled:h}=e,E=TPt(e,["label","classNames","styles","className","onRemove","disabled","readOnly","size","radius","variant","unstyled"]);const{classes:g,cx:m}=zPt({disabled:o,readOnly:s,radius:c},{name:"MultiSelect",classNames:n,styles:i,unstyled:h,size:l,variant:d});return M.createElement("div",MPt({className:m(g.defaultValue,r)},E),M.createElement("span",{className:g.defaultValueLabel},t),!o&&!s&&M.createElement(KR,{"aria-hidden":!0,onMouseDown:a,size:PPt[l],radius:2,color:"blue",variant:"transparent",iconSize:"70%",className:g.defaultValueRemove,tabIndex:-1,unstyled:h}))}sze.displayName="@mantine/core/MultiSelect/DefaultValue";function NPt({data:u,searchable:e,limit:t,searchValue:n,filter:i,value:r,disableSelectedItemFiltering:a}){if(!e&&r.length===0)return u;if(!e){const s=[];for(let l=0;lc===u[l].value&&!u[l].disabled))&&s.push(u[l]);return s}const o=[];for(let s=0;sl===u[s].value&&!u[s].disabled),u[s])&&o.push(u[s]),!(o.length>=t));s+=1);return o}var RPt=Object.defineProperty,UL=Object.getOwnPropertySymbols,lze=Object.prototype.hasOwnProperty,cze=Object.prototype.propertyIsEnumerable,LEe=(u,e,t)=>e in u?RPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,MEe=(u,e)=>{for(var t in e||(e={}))lze.call(e,t)&&LEe(u,t,e[t]);if(UL)for(var t of UL(e))cze.call(e,t)&&LEe(u,t,e[t]);return u},IPt=(u,e)=>{var t={};for(var n in u)lze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&UL)for(var n of UL(u))e.indexOf(n)<0&&cze.call(u,n)&&(t[n]=u[n]);return t};const OPt={xs:W(14),sm:W(18),md:W(20),lg:W(24),xl:W(28)};function jPt(u){var e=u,{size:t,error:n,style:i}=e,r=IPt(e,["size","error","style"]);const a=Tr(),o=Fe({size:t,sizes:OPt});return M.createElement("svg",MEe({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:MEe({color:n?a.colors.red[6]:a.colors.gray[6],width:o,height:o},i),"data-chevron":!0},r),M.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var VPt=Object.defineProperty,HPt=Object.defineProperties,$Pt=Object.getOwnPropertyDescriptors,TEe=Object.getOwnPropertySymbols,KPt=Object.prototype.hasOwnProperty,WPt=Object.prototype.propertyIsEnumerable,PEe=(u,e,t)=>e in u?VPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,GPt=(u,e)=>{for(var t in e||(e={}))KPt.call(e,t)&&PEe(u,t,e[t]);if(TEe)for(var t of TEe(e))WPt.call(e,t)&&PEe(u,t,e[t]);return u},UPt=(u,e)=>HPt(u,$Pt(e));function dze({shouldClear:u,clearButtonProps:e,onClear:t,size:n,error:i}){return u?M.createElement(KR,UPt(GPt({},e),{variant:"transparent",onClick:t,size:n,onMouseDown:r=>r.preventDefault()})):M.createElement(jPt,{error:i,size:n})}dze.displayName="@mantine/core/SelectRightSection";var qPt=Object.defineProperty,JPt=Object.defineProperties,ZPt=Object.getOwnPropertyDescriptors,qL=Object.getOwnPropertySymbols,hze=Object.prototype.hasOwnProperty,Eze=Object.prototype.propertyIsEnumerable,NEe=(u,e,t)=>e in u?qPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,pH=(u,e)=>{for(var t in e||(e={}))hze.call(e,t)&&NEe(u,t,e[t]);if(qL)for(var t of qL(e))Eze.call(e,t)&&NEe(u,t,e[t]);return u},REe=(u,e)=>JPt(u,ZPt(e)),YPt=(u,e)=>{var t={};for(var n in u)hze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&qL)for(var n of qL(u))e.indexOf(n)<0&&Eze.call(u,n)&&(t[n]=u[n]);return t};function gze(u){var e=u,{styles:t,rightSection:n,rightSectionWidth:i,theme:r}=e,a=YPt(e,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:i,styles:t};const o=typeof t=="function"?t(r):t;return{rightSection:!a.readOnly&&!(a.disabled&&a.shouldClear)&&M.createElement(dze,pH({},a)),styles:REe(pH({},o),{rightSection:REe(pH({},o==null?void 0:o.rightSection),{pointerEvents:a.shouldClear?void 0:"none"})})}}var QPt=Object.defineProperty,XPt=Object.defineProperties,eNt=Object.getOwnPropertyDescriptors,IEe=Object.getOwnPropertySymbols,tNt=Object.prototype.hasOwnProperty,uNt=Object.prototype.propertyIsEnumerable,OEe=(u,e,t)=>e in u?QPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,nNt=(u,e)=>{for(var t in e||(e={}))tNt.call(e,t)&&OEe(u,t,e[t]);if(IEe)for(var t of IEe(e))uNt.call(e,t)&&OEe(u,t,e[t]);return u},iNt=(u,e)=>XPt(u,eNt(e)),rNt=at((u,{invalid:e},{size:t})=>({wrapper:{position:"relative","&:has(input:disabled)":{cursor:"not-allowed",pointerEvents:"none","& .mantine-MultiSelect-input":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[1],color:u.colors.dark[2],opacity:.6,"&::placeholder":{color:u.colors.dark[2]}},"& .mantine-MultiSelect-defaultValue":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[3],color:u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[7]}}},values:{minHeight:`calc(${Fe({size:t,sizes:kr})} - ${W(2)})`,display:"flex",alignItems:"center",flexWrap:"wrap",marginLeft:`calc(-${u.spacing.xs} / 2)`,boxSizing:"border-box","&[data-clearable]":{marginRight:Fe({size:t,sizes:kr})}},value:{margin:`calc(${u.spacing.xs} / 2 - ${W(2)}) calc(${u.spacing.xs} / 2)`},searchInput:iNt(nNt({},u.fn.fontStyles()),{flex:1,minWidth:W(60),backgroundColor:"transparent",border:0,outline:0,fontSize:Fe({size:t,sizes:u.fontSizes}),padding:0,marginLeft:`calc(${u.spacing.xs} / 2)`,appearance:"none",color:"inherit",maxHeight:Fe({size:t,sizes:rze}),"&::placeholder":{opacity:1,color:e?u.colors.red[u.fn.primaryShade()]:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"}}),searchInputEmpty:{width:"100%"},searchInputInputHidden:{flex:0,width:0,minWidth:0,margin:0,overflow:"hidden"},searchInputPointer:{cursor:"pointer","&:disabled":{cursor:"not-allowed",pointerEvents:"none"}},input:{cursor:"pointer","&:disabled":{cursor:"not-allowed",pointerEvents:"none"}}}));const aNt=rNt;var oNt=Object.defineProperty,sNt=Object.defineProperties,lNt=Object.getOwnPropertyDescriptors,JL=Object.getOwnPropertySymbols,mze=Object.prototype.hasOwnProperty,fze=Object.prototype.propertyIsEnumerable,jEe=(u,e,t)=>e in u?oNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,FD=(u,e)=>{for(var t in e||(e={}))mze.call(e,t)&&jEe(u,t,e[t]);if(JL)for(var t of JL(e))fze.call(e,t)&&jEe(u,t,e[t]);return u},VEe=(u,e)=>sNt(u,lNt(e)),cNt=(u,e)=>{var t={};for(var n in u)mze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&JL)for(var n of JL(u))e.indexOf(n)<0&&fze.call(u,n)&&(t[n]=u[n]);return t};function dNt(u,e,t){return e?!1:t.label.toLowerCase().trim().includes(u.toLowerCase().trim())}function hNt(u,e){return!!u&&!e.some(t=>t.value.toLowerCase()===u.toLowerCase())}function HEe(u,e){if(!Array.isArray(u))return;if(e.length===0)return[];const t=e.map(n=>typeof n=="object"?n.value:n);return u.filter(n=>t.includes(n))}const ENt={size:"sm",valueComponent:sze,itemComponent:oue,transitionProps:{transition:"fade",duration:0},maxDropdownHeight:220,shadow:"sm",searchable:!1,filter:dNt,limit:1/0,clearSearchOnChange:!0,clearable:!1,clearSearchOnBlur:!1,disabled:!1,initiallyOpened:!1,creatable:!1,shouldCreate:hNt,switchDirectionOnFlip:!1,zIndex:id("popover"),selectOnBlur:!1,positionDependencies:[],dropdownPosition:"flip"},IJ=C.forwardRef((u,e)=>{const t=Je("MultiSelect",ENt,u),{className:n,style:i,required:r,label:a,description:o,size:s,error:l,classNames:c,styles:d,wrapperProps:h,value:E,defaultValue:g,data:m,onChange:f,valueComponent:p,itemComponent:D,id:x,transitionProps:b,maxDropdownHeight:k,shadow:_,nothingFound:y,onFocus:S,onBlur:B,searchable:L,placeholder:T,filter:N,limit:F,clearSearchOnChange:A,clearable:z,clearSearchOnBlur:P,variant:I,onSearchChange:j,searchValue:V,disabled:H,initiallyOpened:q,radius:J,icon:Q,rightSection:X,rightSectionWidth:Y,creatable:le,getCreateLabel:he,shouldCreate:ze,onCreate:Ie,sx:We,dropdownComponent:Ee,onDropdownClose:ut,onDropdownOpen:we,maxSelectedValues:Ge,withinPortal:nt,portalProps:Ht,switchDirectionOnFlip:eu,zIndex:bu,selectOnBlur:ru,name:oe,dropdownPosition:se,errorProps:re,labelProps:$,descriptionProps:Z,form:ne,positionDependencies:te,onKeyDown:me,unstyled:Se,inputContainer:Ue,inputWrapperOrder:it,readOnly:ct,withAsterisk:Dt,clearButtonProps:$t,hoverOnSearchChange:He,disableSelectedItemFiltering:Pe}=t,Ju=cNt(t,["className","style","required","label","description","size","error","classNames","styles","wrapperProps","value","defaultValue","data","onChange","valueComponent","itemComponent","id","transitionProps","maxDropdownHeight","shadow","nothingFound","onFocus","onBlur","searchable","placeholder","filter","limit","clearSearchOnChange","clearable","clearSearchOnBlur","variant","onSearchChange","searchValue","disabled","initiallyOpened","radius","icon","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","onCreate","sx","dropdownComponent","onDropdownClose","onDropdownOpen","maxSelectedValues","withinPortal","portalProps","switchDirectionOnFlip","zIndex","selectOnBlur","name","dropdownPosition","errorProps","labelProps","descriptionProps","form","positionDependencies","onKeyDown","unstyled","inputContainer","inputWrapperOrder","readOnly","withAsterisk","clearButtonProps","hoverOnSearchChange","disableSelectedItemFiltering"]),{classes:su,cx:En,theme:zu}=aNt({invalid:!!l},{name:"MultiSelect",classNames:c,styles:d,unstyled:Se,size:s,variant:I}),{systemStyles:ui,rest:$u}=C4(Ju),_u=C.useRef(),Vn=C.useRef({}),kn=Kl(x),[Ku,Lu]=C.useState(q),[ju,yn]=C.useState(-1),[Si,Bi]=C.useState("column"),[Ii,Oa]=cs({value:V,defaultValue:"",finalValue:void 0,onChange:j}),[yt,ge]=C.useState(!1),{scrollIntoView:Ye,targetRef:xt,scrollableRef:Zu}=a9e({duration:0,offset:5,cancelable:!1,isList:!0}),xr=le&&typeof he=="function";let dt=null;const xu=m.map(tu=>typeof tu=="string"?{label:tu,value:tu}:tu),di=A7e({data:xu}),[Su,H1]=cs({value:HEe(E,m),defaultValue:HEe(g,m),finalValue:[],onChange:f}),e0=C.useRef(!!Ge&&Ge{if(!ct){const xi=Su.filter($0=>$0!==tu);H1(xi),Ge&&xi.length{Oa(tu.currentTarget.value),!H&&!e0.current&&L&&Lu(!0)},$Ke=tu=>{typeof S=="function"&&S(tu),!H&&!e0.current&&L&&Lu(!0)},ja=NPt({data:di,searchable:L,searchValue:Ii,limit:F,filter:N,value:Su,disableSelectedItemFiltering:Pe});xr&&ze(Ii,di)&&(dt=he(Ii),ja.push({label:Ii,value:Ii,creatable:!0}));const Am=Math.min(ju,ja.length-1),Oie=(tu,xi,$0)=>{let _4=tu;for(;$0(_4);)if(_4=xi(_4),!ja[_4].disabled)return _4;return tu};Lo(()=>{yn(He&&Ii?0:-1)},[Ii,He]),Lo(()=>{!H&&Su.length>m.length&&Lu(!1),Ge&&Su.length=Ge&&(e0.current=!0,Lu(!1))},[Su]);const c_=tu=>{if(!ct)if(A&&Oa(""),Su.includes(tu.value))sO(tu.value);else{if(tu.creatable&&typeof Ie=="function"){const xi=Ie(tu.value);typeof xi<"u"&&xi!==null&&H1(typeof xi=="string"?[...Su,xi]:[...Su,xi.value])}else H1([...Su,tu.value]);Su.length===Ge-1&&(e0.current=!0,Lu(!1)),ja.length===1&&Lu(!1)}},KKe=tu=>{typeof B=="function"&&B(tu),ru&&ja[Am]&&Ku&&c_(ja[Am]),P&&Oa(""),Lu(!1)},WKe=tu=>{if(yt||(me==null||me(tu),ct)||tu.key!=="Backspace"&&Ge&&e0.current)return;const xi=Si==="column",$0=()=>{yn(_m=>{var $1;const OC=Oie(_m,Sm=>Sm+1,Sm=>Sm{yn(_m=>{var $1;const OC=Oie(_m,Sm=>Sm-1,Sm=>Sm>0);return Ku&&(xt.current=Vn.current[($1=ja[OC])==null?void 0:$1.value],Ye({alignment:xi?"start":"end"})),OC})};switch(tu.key){case"ArrowUp":{tu.preventDefault(),Lu(!0),xi?_4():$0();break}case"ArrowDown":{tu.preventDefault(),Lu(!0),xi?$0():_4();break}case"Enter":{tu.preventDefault(),ja[Am]&&Ku?c_(ja[Am]):Lu(!0);break}case" ":{L||(tu.preventDefault(),ja[Am]&&Ku?c_(ja[Am]):Lu(!0));break}case"Backspace":{Su.length>0&&Ii.length===0&&(H1(Su.slice(0,-1)),Lu(!0),Ge&&(e0.current=!1));break}case"Home":{if(!L){tu.preventDefault(),Ku||Lu(!0);const _m=ja.findIndex($1=>!$1.disabled);yn(_m),Ye({alignment:xi?"end":"start"})}break}case"End":{if(!L){tu.preventDefault(),Ku||Lu(!0);const _m=ja.map($1=>!!$1.disabled).lastIndexOf(!1);yn(_m),Ye({alignment:xi?"end":"start"})}break}case"Escape":Lu(!1)}},GKe=Su.map(tu=>{let xi=di.find($0=>$0.value===tu&&!$0.disabled);return!xi&&xr&&(xi={value:tu,label:tu}),xi}).filter(tu=>!!tu).map((tu,xi)=>M.createElement(p,VEe(FD({},tu),{variant:I,disabled:H,className:su.value,readOnly:ct,onRemove:$0=>{$0.preventDefault(),$0.stopPropagation(),sO(tu.value)},key:tu.value,size:s,styles:d,classNames:c,radius:J,index:xi}))),UKe=tu=>Su.includes(tu),qKe=()=>{var tu;Oa(""),H1([]),(tu=_u.current)==null||tu.focus(),Ge&&(e0.current=!1)},d_=!ct&&(ja.length>0?Ku:Ku&&!!y);return Lo(()=>{const tu=d_?we:ut;typeof tu=="function"&&tu()},[d_]),M.createElement(Ma.Wrapper,FD(FD({required:r,id:kn,label:a,error:l,description:o,size:s,className:n,style:i,classNames:c,styles:d,__staticSelector:"MultiSelect",sx:We,errorProps:re,descriptionProps:Z,labelProps:$,inputContainer:Ue,inputWrapperOrder:it,unstyled:Se,withAsterisk:Dt,variant:I},ui),h),M.createElement(gg,{opened:d_,transitionProps:b,shadow:"sm",withinPortal:nt,portalProps:Ht,__staticSelector:"MultiSelect",onDirectionChange:Bi,switchDirectionOnFlip:eu,zIndex:bu,dropdownPosition:se,positionDependencies:[...te,Ii],classNames:c,styles:d,unstyled:Se,variant:I},M.createElement(gg.Target,null,M.createElement("div",{className:su.wrapper,role:"combobox","aria-haspopup":"listbox","aria-owns":Ku&&d_?`${kn}-items`:null,"aria-controls":kn,"aria-expanded":Ku,onMouseLeave:()=>yn(-1),tabIndex:-1},M.createElement("input",{type:"hidden",name:oe,value:Su.join(","),form:ne,disabled:H}),M.createElement(Ma,FD({__staticSelector:"MultiSelect",style:{overflow:"hidden"},component:"div",multiline:!0,size:s,variant:I,disabled:H,error:l,required:r,radius:J,icon:Q,unstyled:Se,onMouseDown:tu=>{var xi;tu.preventDefault(),!H&&!e0.current&&Lu(!Ku),(xi=_u.current)==null||xi.focus()},classNames:VEe(FD({},c),{input:En({[su.input]:!L},c==null?void 0:c.input)})},gze({theme:zu,rightSection:X,rightSectionWidth:Y,styles:d,size:s,shouldClear:z&&Su.length>0,onClear:qKe,error:l,disabled:H,clearButtonProps:$t,readOnly:ct})),M.createElement("div",{className:su.values,"data-clearable":z||void 0},GKe,M.createElement("input",FD({ref:N1(e,_u),type:"search",id:kn,className:En(su.searchInput,{[su.searchInputPointer]:!L,[su.searchInputInputHidden]:!Ku&&Su.length>0||!L&&Su.length>0,[su.searchInputEmpty]:Su.length===0}),onKeyDown:WKe,value:Ii,onChange:HKe,onFocus:$Ke,onBlur:KKe,readOnly:!L||e0.current||ct,placeholder:Su.length===0?T:void 0,disabled:H,"data-mantine-stop-propagation":Ku,autoComplete:"off",onCompositionStart:()=>ge(!0),onCompositionEnd:()=>ge(!1)},$u)))))),M.createElement(gg.Dropdown,{component:Ee||qR,maxHeight:k,direction:Si,id:kn,innerRef:Zu,__staticSelector:"MultiSelect",classNames:c,styles:d},M.createElement(aue,{data:ja,hovered:Am,classNames:c,styles:d,uuid:kn,__staticSelector:"MultiSelect",onItemHover:yn,onItemSelect:c_,itemsRefs:Vn,itemComponent:D,size:s,nothingFound:y,isItemSelected:UKe,creatable:le&&!!dt,createLabel:dt,unstyled:Se,variant:I}))))});IJ.displayName="@mantine/core/MultiSelect";var gNt=at((u,{color:e,radius:t,withTitle:n})=>{const i=u.fn.radius(t),r=u.fn.variant({variant:"filled",color:e});return{closeButton:u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[8]:u.colors.gray[0]}),icon:{boxSizing:"border-box",marginRight:u.spacing.md,width:W(28),height:W(28),borderRadius:W(28),display:"flex",flex:"none",alignItems:"center",justifyContent:"center",backgroundColor:r.background,color:u.white},root:{overflow:"hidden",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",paddingLeft:W(22),paddingRight:u.spacing.xs,paddingTop:u.spacing.xs,paddingBottom:u.spacing.xs,borderRadius:i,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,boxShadow:u.shadows.lg,"&::before":{content:'""',display:"block",position:"absolute",width:W(6),top:i,bottom:i,left:W(4),borderRadius:i,backgroundColor:r.background},"&[data-with-icon]":{paddingLeft:u.spacing.xs,"&::before":{display:"none"}},"&[data-with-border]":{border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]}`}},body:{flex:1,overflow:"hidden",marginRight:u.spacing.xs},loader:{marginRight:u.spacing.md},title:{lineHeight:1.4,marginBottom:W(2),overflow:"hidden",textOverflow:"ellipsis",color:u.colorScheme==="dark"?u.white:u.colors.gray[9]},description:{color:n?u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6]:u.colorScheme==="dark"?u.colors.dark[0]:u.black,lineHeight:1.4,overflow:"hidden",textOverflow:"ellipsis"}}});const mNt=gNt;var fNt=Object.defineProperty,pNt=Object.defineProperties,DNt=Object.getOwnPropertyDescriptors,ZL=Object.getOwnPropertySymbols,pze=Object.prototype.hasOwnProperty,Dze=Object.prototype.propertyIsEnumerable,$Ee=(u,e,t)=>e in u?fNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,KEe=(u,e)=>{for(var t in e||(e={}))pze.call(e,t)&&$Ee(u,t,e[t]);if(ZL)for(var t of ZL(e))Dze.call(e,t)&&$Ee(u,t,e[t]);return u},xNt=(u,e)=>pNt(u,DNt(e)),vNt=(u,e)=>{var t={};for(var n in u)pze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&ZL)for(var n of ZL(u))e.indexOf(n)<0&&Dze.call(u,n)&&(t[n]=u[n]);return t};const CNt={withCloseButton:!0},xze=C.forwardRef((u,e)=>{const t=Je("Notification",CNt,u),{className:n,color:i,radius:r,loading:a,withCloseButton:o,withBorder:s,title:l,icon:c,children:d,onClose:h,closeButtonProps:E,classNames:g,styles:m,unstyled:f,variant:p}=t,D=vNt(t,["className","color","radius","loading","withCloseButton","withBorder","title","icon","children","onClose","closeButtonProps","classNames","styles","unstyled","variant"]),{classes:x,cx:b}=mNt({color:i,radius:r,withTitle:!!l},{name:"Notification",classNames:g,styles:m,unstyled:f,variant:p});return M.createElement(pt,KEe({className:b(x.root,n),"data-with-icon":!!c||a||void 0,"data-with-border":s||void 0,role:"alert",ref:e},D),c&&!a&&M.createElement("div",{className:x.icon},c),a&&M.createElement(Fv,{size:28,color:i,className:x.loader}),M.createElement("div",{className:x.body},l&&M.createElement(Fu,{className:x.title,size:"sm",weight:500},l),M.createElement(Fu,{color:"dimmed",className:x.description,size:"sm"},d)),o&&M.createElement(KR,xNt(KEe({iconSize:16,color:"gray"},E),{onClick:h,className:x.closeButton})))});xze.displayName="@mantine/core/Notification";const bNt=(u,e,t)=>Number.isInteger(u)&&u>=0&&e===0?"numeric":!Number.isInteger(u)&&u>=0&&e!==0?"decimal":Number.isInteger(u)&&u<0&&e===0||!Number.isInteger(u)&&u<0&&e!==0?t==="ios"?"text":"decimal":"numeric";function WEe({direction:u,size:e}){return M.createElement("svg",{style:{width:W(e),height:W(e),transform:u==="up"?"rotate(180deg)":void 0},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const vze={xs:W(20),sm:W(24),md:W(30),lg:W(34),xl:W(36)};var kNt=at((u,{radius:e},{size:t})=>({rightSection:{display:"flex",flexDirection:"column",height:`calc(100% - ${W(2)})`,margin:W(1),overflow:"hidden",borderTopRightRadius:u.fn.radius(e),borderBottomRightRadius:u.fn.radius(e)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:Fe({size:t,sizes:vze}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,borderLeft:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:W(1),color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,"&:not(:disabled):hover":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[0]},"&:disabled":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}}));const yNt=kNt;var FNt=Object.defineProperty,ANt=Object.defineProperties,_Nt=Object.getOwnPropertyDescriptors,YL=Object.getOwnPropertySymbols,Cze=Object.prototype.hasOwnProperty,bze=Object.prototype.propertyIsEnumerable,GEe=(u,e,t)=>e in u?FNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,DH=(u,e)=>{for(var t in e||(e={}))Cze.call(e,t)&&GEe(u,t,e[t]);if(YL)for(var t of YL(e))bze.call(e,t)&&GEe(u,t,e[t]);return u},SNt=(u,e)=>ANt(u,_Nt(e)),BNt=(u,e)=>{var t={};for(var n in u)Cze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&YL)for(var n of YL(u))e.indexOf(n)<0&&bze.call(u,n)&&(t[n]=u[n]);return t};const wNt={type:"text",size:"sm",__staticSelector:"TextInput"},Pt=C.forwardRef((u,e)=>{const t=b8e("TextInput",wNt,u),{inputProps:n,wrapperProps:i}=t,r=BNt(t,["inputProps","wrapperProps"]);return M.createElement(Ma.Wrapper,DH({},i),M.createElement(Ma,SNt(DH(DH({},n),r),{ref:e})))});Pt.displayName="@mantine/core/TextInput";var zNt=Object.defineProperty,LNt=Object.defineProperties,MNt=Object.getOwnPropertyDescriptors,QL=Object.getOwnPropertySymbols,kze=Object.prototype.hasOwnProperty,yze=Object.prototype.propertyIsEnumerable,UEe=(u,e,t)=>e in u?zNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,TNt=(u,e)=>{for(var t in e||(e={}))kze.call(e,t)&&UEe(u,t,e[t]);if(QL)for(var t of QL(e))yze.call(e,t)&&UEe(u,t,e[t]);return u},PNt=(u,e)=>LNt(u,MNt(e)),NNt=(u,e)=>{var t={};for(var n in u)kze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&QL)for(var n of QL(u))e.indexOf(n)<0&&yze.call(u,n)&&(t[n]=u[n]);return t};const RNt=u=>u||"",INt=u=>{if(u==="-")return u;let e=u;e[0]==="."&&(e=`0${u}`);const t=parseFloat(e);return Number.isNaN(t)?"":u},qEe={xs:W(10),sm:W(14),md:W(16),lg:W(18),xl:W(20)},ONt={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,removeTrailingZeros:!1,decimalSeparator:".",formatter:RNt,parser:INt,type:"text"},es=C.forwardRef((u,e)=>{const t=Je("NumberInput",ONt,u),{readOnly:n,disabled:i,value:r,onChange:a,decimalSeparator:o,thousandsSeparator:s,min:l,max:c,startValue:d,step:h,stepHoldInterval:E,stepHoldDelay:g,onFocus:m,onBlur:f,onKeyDown:p,onKeyUp:D,hideControls:x,radius:b,variant:k,precision:_,removeTrailingZeros:y,defaultValue:S,noClampOnBlur:B,handlersRef:L,classNames:T,styles:N,size:F,rightSection:A,rightSectionWidth:z,formatter:P,parser:I,inputMode:j,unstyled:V,type:H}=t,q=NNt(t,["readOnly","disabled","value","onChange","decimalSeparator","thousandsSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onFocus","onBlur","onKeyDown","onKeyUp","hideControls","radius","variant","precision","removeTrailingZeros","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled","type"]),{classes:J,cx:Q}=yNt({radius:b},{classNames:T,styles:N,unstyled:V,name:"NumberInput",variant:k,size:F}),X=He=>{if(He==="")return"";let Pe=He.toFixed(_);return y&&_>0&&(Pe=Pe.replace(new RegExp(`[0]{0,${_}}$`),""),Pe.endsWith(".")&&(Pe=Pe.slice(0,-1))),Pe},Y=He=>{let Pe=He;return o&&(Pe=Pe.replace(".",o)),P(Pe)},le=He=>{let Pe=He;return o&&(Pe=Pe.replaceAll(s,"").replace(o,".")),I(Pe)},he=He=>Y(X(He)),[ze,Ie]=C.useState(typeof r=="number"?r:typeof S=="number"?S:""),[We,Ee]=C.useState(()=>he(ze)),ut=C.useRef(),[we,Ge]=C.useState(!1),nt=(He,Pe)=>{if(!we||Pe){const Ju=he(He);Ju!==We&&Ee(Ju)}He!==ze&&Ie(He)},Ht=typeof l=="number"?l:-1/0,eu=typeof c=="number"?c:1/0,bu=C.useRef();bu.current=()=>{var He;let Pe;ze===""?Pe=(He=d??l)!=null?He:0:Pe=parseFloat(X(hg(ze+h,Ht,eu))),nt(Pe,!0),a==null||a(Pe)};const ru=C.useRef();ru.current=()=>{var He;let Pe;ze===""?Pe=(He=d??l)!=null?He:0:Pe=parseFloat(X(hg(ze-h,Ht,eu))),nt(Pe,!0),a==null||a(Pe)},nue(L,{increment:bu.current,decrement:ru.current}),C.useEffect(()=>{we||nt(r===void 0?ze:r,!0)},[r,we]);const oe=g!==void 0&&E!==void 0,se=C.useRef(null),re=C.useRef(0),$=()=>{se.current&&window.clearTimeout(se.current),se.current=null,re.current=0},Z=He=>{He?bu.current():ru.current(),re.current+=1},ne=He=>{if(Z(He),oe){const Pe=typeof E=="number"?E:E(re.current);se.current=window.setTimeout(()=>ne(He),Pe)}},te=(He,Pe)=>{He.preventDefault(),ut.current.focus(),Z(Pe),oe&&(se.current=window.setTimeout(()=>ne(Pe),g))};C.useEffect(()=>($(),$),[]);const me=M.createElement("div",{className:J.rightSection},M.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:ze>=c,className:Q(J.control,J.controlUp),onPointerDown:He=>{te(He,!0)},onPointerUp:$,onPointerLeave:$},M.createElement(WEe,{size:Fe({size:F,sizes:qEe}),direction:"up"})),M.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:ze<=l,className:Q(J.control,J.controlDown),onPointerDown:He=>{te(He,!1)},onPointerUp:$,onPointerLeave:$},M.createElement(WEe,{size:Fe({size:F,sizes:qEe}),direction:"down"}))),Se=He=>{let Pe=He;(Pe[0]===`${o}`||Pe[0]===".")&&(Pe=`0${Pe}`);const Ju=parseFloat(X(parseFloat(le(Pe)))),su=B?Ju:hg(Ju,Ht,eu),En=Number.isNaN(su)?"":su,zu=ze!==En;Ee(He),nt(En),zu&&(a==null||a(En))},Ue=He=>{He.nativeEvent.isComposing||Se(He.target.value)},it=He=>{Ge(!0),m==null||m(He)},ct=He=>{Ge(!1),f==null||f(He)},Dt=He=>{if(typeof p=="function"&&p(He),He.repeat&&oe&&(He.key==="ArrowUp"||He.key==="ArrowDown")){He.preventDefault();return}n||(He.key==="ArrowUp"?te(He,!0):He.key==="ArrowDown"&&te(He,!1))},$t=He=>{typeof D=="function"&&D(He),(He.key==="ArrowUp"||He.key==="ArrowDown")&&$()};return M.createElement(Pt,PNt(TNt({},q),{type:H,variant:k,value:We,disabled:i,readOnly:n,ref:N1(ut,e),onChange:Ue,onFocus:it,onBlur:ct,onKeyDown:Dt,onKeyUp:$t,rightSection:A||(i||n||x||k==="unstyled"?null:me),rightSectionWidth:z??`calc(${Fe({size:F,sizes:vze})} + ${W(1)})`,radius:b,max:c,min:l,step:h,size:F,styles:N,classNames:T,inputMode:j||bNt(h,_,iyt()),__staticSelector:"NumberInput",unstyled:V}))});es.displayName="@mantine/core/NumberInput";const[jNt,eI]=P1("Pagination.Root component was not found in tree"),VNt={siblings:1,boundaries:1};function Fze(u){const{total:e,value:t,defaultValue:n,onChange:i,disabled:r,children:a,siblings:o,boundaries:s,color:l,radius:c,onNextPage:d,onPreviousPage:h,onFirstPage:E,onLastPage:g,getItemProps:m,classNames:f,styles:p,unstyled:D,variant:x,size:b}=Je("PaginationRoot",VNt,u),{range:k,setPage:_,next:y,previous:S,active:B,first:L,last:T}=J2t({page:t,initialPage:n,onChange:i,total:e,siblings:o,boundaries:s}),N=uo(d,y),F=uo(h,S),A=uo(E,L),z=uo(g,T);return M.createElement(jNt,{value:{total:e,range:k,active:B,disabled:r,color:l,radius:c,getItemProps:m,onChange:_,onNext:N,onPrevious:F,onFirst:A,onLast:z,stylesApi:{name:"Pagination",classNames:f,styles:p,unstyled:D,variant:x,size:b}}},a)}const zy={xs:W(22),sm:W(26),md:W(32),lg:W(38),xl:W(44)};var HNt=at((u,{color:e,radius:t,withPadding:n},{size:i})=>{const r=u.fn.variant({color:e,variant:"filled"});return{control:{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,height:Fe({size:i,sizes:zy}),minWidth:Fe({size:i,sizes:zy}),padding:n?`0 calc(${Fe({size:i,sizes:u.spacing})} / 2)`:void 0,fontSize:Fe({size:i,sizes:u.fontSizes}),borderRadius:u.fn.radius(t),lineHeight:1,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,"&:not([data-disabled])":u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[0]}),"&:active:not([data-disabled])":u.activeStyles,"&[data-disabled]":{opacity:.4,cursor:"not-allowed",pointerEvents:"none"},"&[data-active]":{borderColor:"transparent",color:r.color,backgroundColor:r.background,"&:not([data-disabled])":u.fn.hover({backgroundColor:r.hover})}}}});const $Nt=HNt;var KNt=Object.defineProperty,WNt=Object.defineProperties,GNt=Object.getOwnPropertyDescriptors,XL=Object.getOwnPropertySymbols,Aze=Object.prototype.hasOwnProperty,_ze=Object.prototype.propertyIsEnumerable,JEe=(u,e,t)=>e in u?KNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,UNt=(u,e)=>{for(var t in e||(e={}))Aze.call(e,t)&&JEe(u,t,e[t]);if(XL)for(var t of XL(e))_ze.call(e,t)&&JEe(u,t,e[t]);return u},qNt=(u,e)=>WNt(u,GNt(e)),JNt=(u,e)=>{var t={};for(var n in u)Aze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&XL)for(var n of XL(u))e.indexOf(n)<0&&_ze.call(u,n)&&(t[n]=u[n]);return t};const ZNt={withPadding:!0},tI=C.forwardRef((u,e)=>{const t=Je("PaginationControl",ZNt,u),{active:n,className:i,disabled:r,withPadding:a}=t,o=JNt(t,["active","className","disabled","withPadding"]),s=eI(),{classes:l,cx:c}=$Nt({color:s.color,radius:s.radius,withPadding:a},s.stylesApi);return M.createElement(b4,qNt(UNt({},o),{disabled:r,"data-active":n||void 0,"data-disabled":r||void 0,ref:e,className:c(l.control,i)}))});tI.displayName="@mantine/core/PaginationControl";var YNt=Object.defineProperty,QNt=Object.defineProperties,XNt=Object.getOwnPropertyDescriptors,eM=Object.getOwnPropertySymbols,Sze=Object.prototype.hasOwnProperty,Bze=Object.prototype.propertyIsEnumerable,ZEe=(u,e,t)=>e in u?YNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,X3=(u,e)=>{for(var t in e||(e={}))Sze.call(e,t)&&ZEe(u,t,e[t]);if(eM)for(var t of eM(e))Bze.call(e,t)&&ZEe(u,t,e[t]);return u},MA=(u,e)=>QNt(u,XNt(e)),eRt=(u,e)=>{var t={};for(var n in u)Sze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&eM)for(var n of eM(u))e.indexOf(n)<0&&Bze.call(u,n)&&(t[n]=u[n]);return t};function wze(u){return`calc(${Fe({size:u,sizes:zy})} / 2)`}function TA(u){var e=u,{size:t,style:n,children:i,path:r}=e,a=eRt(e,["size","style","children","path"]);return M.createElement("svg",X3({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:X3({width:t,height:t},n)},a),M.createElement("path",{d:r,fill:"currentColor"}))}const tRt=u=>M.createElement(TA,MA(X3({},u),{path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"})),uRt=u=>M.createElement(TA,MA(X3({},u),{path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"})),nRt=u=>M.createElement(TA,MA(X3({},u),{path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"})),iRt=u=>M.createElement(TA,MA(X3({},u),{path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"})),rRt=u=>M.createElement(TA,MA(X3({},u),{path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}));var aRt=at((u,e,{size:t})=>({dots:{height:Fe({size:t,sizes:zy}),minWidth:Fe({size:t,sizes:zy}),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}}));const oRt=aRt;var sRt=Object.defineProperty,tM=Object.getOwnPropertySymbols,zze=Object.prototype.hasOwnProperty,Lze=Object.prototype.propertyIsEnumerable,YEe=(u,e,t)=>e in u?sRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,lRt=(u,e)=>{for(var t in e||(e={}))zze.call(e,t)&&YEe(u,t,e[t]);if(tM)for(var t of tM(e))Lze.call(e,t)&&YEe(u,t,e[t]);return u},cRt=(u,e)=>{var t={};for(var n in u)zze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&tM)for(var n of tM(u))e.indexOf(n)<0&&Lze.call(u,n)&&(t[n]=u[n]);return t};const dRt={icon:rRt},Bue=C.forwardRef((u,e)=>{const t=Je("PaginationDots",dRt,u),{className:n,icon:i}=t,r=cRt(t,["className","icon"]),a=eI(),{classes:o,cx:s}=oRt(null,a.stylesApi);return M.createElement(pt,lRt({ref:e,className:s(o.dots,n)},r),M.createElement(i,{size:wze(a.stylesApi.size)}))});Bue.displayName="@mantine/core/PaginationDots";var hRt=Object.defineProperty,QEe=Object.getOwnPropertySymbols,ERt=Object.prototype.hasOwnProperty,gRt=Object.prototype.propertyIsEnumerable,XEe=(u,e,t)=>e in u?hRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mRt=(u,e)=>{for(var t in e||(e={}))ERt.call(e,t)&&XEe(u,t,e[t]);if(QEe)for(var t of QEe(e))gRt.call(e,t)&&XEe(u,t,e[t]);return u};function wue({dotsIcon:u}){const e=eI(),t=e.range.map((n,i)=>{var r;return n==="dots"?M.createElement(Bue,{icon:u,key:i}):M.createElement(tI,mRt({key:i,active:n===e.active,"aria-current":n===e.active?"page":void 0,onClick:()=>e.onChange(n),disabled:e.disabled},(r=e.getItemProps)==null?void 0:r.call(e,n)),n)});return M.createElement(M.Fragment,null,t)}wue.displayName="@mantine/core/PaginationItems";var fRt=at(u=>({icon:{transform:u.dir==="rtl"?"rotate(180deg)":"unset"}}));const pRt=fRt;var DRt=Object.defineProperty,uM=Object.getOwnPropertySymbols,Mze=Object.prototype.hasOwnProperty,Tze=Object.prototype.propertyIsEnumerable,ege=(u,e,t)=>e in u?DRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,xRt=(u,e)=>{for(var t in e||(e={}))Mze.call(e,t)&&ege(u,t,e[t]);if(uM)for(var t of uM(e))Tze.call(e,t)&&ege(u,t,e[t]);return u},vRt=(u,e)=>{var t={};for(var n in u)Mze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&uM)for(var n of uM(u))e.indexOf(n)<0&&Tze.call(u,n)&&(t[n]=u[n]);return t};function uI({icon:u,name:e,action:t,type:n}){const i={icon:u},r=C.forwardRef((a,o)=>{const s=Je(e,i,a),{icon:l}=s,c=vRt(s,["icon"]),{classes:d}=pRt(),h=eI(),E=n==="next"?h.active===h.total:h.active===1;return M.createElement(tI,xRt({disabled:h.disabled||E,ref:o,onClick:h[t],withPadding:!1},c),M.createElement(l,{className:d.icon,size:wze(h.stylesApi.size)}))});return r.displayName=`@mantine/core/${e}`,r}const Pze=uI({icon:tRt,name:"PaginationNext",action:"onNext",type:"next"}),Nze=uI({icon:uRt,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),Rze=uI({icon:nRt,name:"PaginationFirst",action:"onFirst",type:"previous"}),Ize=uI({icon:iRt,name:"PaginationLast",action:"onLast",type:"next"});var CRt=Object.defineProperty,nM=Object.getOwnPropertySymbols,Oze=Object.prototype.hasOwnProperty,jze=Object.prototype.propertyIsEnumerable,tge=(u,e,t)=>e in u?CRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,L6=(u,e)=>{for(var t in e||(e={}))Oze.call(e,t)&&tge(u,t,e[t]);if(nM)for(var t of nM(e))jze.call(e,t)&&tge(u,t,e[t]);return u},bRt=(u,e)=>{var t={};for(var n in u)Oze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&nM)for(var n of nM(u))e.indexOf(n)<0&&jze.call(u,n)&&(t[n]=u[n]);return t};const kRt={withControls:!0,siblings:1,boundaries:1};function R1(u){const e=Je("Pagination",kRt,u),{withEdges:t,withControls:n,classNames:i,styles:r,unstyled:a,variant:o,size:s,total:l,value:c,defaultValue:d,onChange:h,disabled:E,siblings:g,boundaries:m,color:f,radius:p,onNextPage:D,onPreviousPage:x,onFirstPage:b,onLastPage:k,getItemProps:_,getControlProps:y,spacing:S,nextIcon:B,previousIcon:L,lastIcon:T,firstIcon:N,dotsIcon:F}=e,A=bRt(e,["withEdges","withControls","classNames","styles","unstyled","variant","size","total","value","defaultValue","onChange","disabled","siblings","boundaries","color","radius","onNextPage","onPreviousPage","onFirstPage","onLastPage","getItemProps","getControlProps","spacing","nextIcon","previousIcon","lastIcon","firstIcon","dotsIcon"]),z=Tr();return l<=0?null:M.createElement(Fze,{classNames:i,styles:r,unstyled:a,variant:o,size:s,total:l,value:c,defaultValue:d,onChange:h,disabled:E,siblings:g,boundaries:m,color:f,radius:p,onNextPage:D,onPreviousPage:x,onFirstPage:b,onLastPage:k,getItemProps:_},M.createElement(_i,L6({spacing:S??`calc(${Fe({size:s,sizes:z.spacing})} / 2)`},A),t&&M.createElement(Rze,L6({icon:N},y==null?void 0:y("first"))),n&&M.createElement(Nze,L6({icon:L},y==null?void 0:y("previous"))),M.createElement(wue,{dotsIcon:F}),n&&M.createElement(Pze,L6({icon:B},y==null?void 0:y("next"))),t&&M.createElement(Ize,L6({icon:T},y==null?void 0:y("last")))))}R1.displayName="@mantine/core/Pagination";R1.Root=Fze;R1.Items=wue;R1.Control=tI;R1.Dots=Bue;R1.Next=Pze;R1.Previous=Nze;R1.Last=Ize;R1.First=Rze;const yRt=({reveal:u,size:e})=>M.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:e,height:e}},M.createElement("path",{d:u?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));var FRt=Object.defineProperty,ARt=Object.defineProperties,_Rt=Object.getOwnPropertyDescriptors,uge=Object.getOwnPropertySymbols,SRt=Object.prototype.hasOwnProperty,BRt=Object.prototype.propertyIsEnumerable,nge=(u,e,t)=>e in u?FRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,xH=(u,e)=>{for(var t in e||(e={}))SRt.call(e,t)&&nge(u,t,e[t]);if(uge)for(var t of uge(e))BRt.call(e,t)&&nge(u,t,e[t]);return u},ige=(u,e)=>ARt(u,_Rt(e)),wRt=at((u,{rightSectionWidth:e},{size:t})=>({visibilityToggle:{},input:{position:"relative",overflow:"hidden"},innerInput:ige(xH(xH({},u.fn.fontStyles()),u.fn.cover(0)),{backgroundColor:"transparent",border:`${W(1)} solid transparent`,borderLeftWidth:0,borderRightWidth:0,boxSizing:"border-box",display:"block",width:`calc(100% - ${W(e)})`,paddingLeft:`calc(${Fe({size:t,sizes:kr})} / 3)`,fontSize:Fe({size:t,sizes:u.fontSizes}),height:`calc(${Fe({size:t,sizes:kr})} - ${W(2)})`,lineHeight:`calc(${Fe({size:t,sizes:kr})} - ${W(4)})`,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,"&::-ms-reveal, &::-ms-clear":{display:"none"},"&:focus":{outline:0},"&:disabled":{cursor:"not-allowed",pointerEvents:"none",backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[1],color:u.colors.dark[2],opacity:.6,"&::placeholder":{color:u.colors.dark[2]}},"&::placeholder":ige(xH({},u.fn.placeholderStyles()),{opacity:1}),"&[data-invalid]":{color:u.fn.variant({variant:"filled",color:"red"}).background,"&::placeholder":{opacity:1,color:u.fn.variant({variant:"filled",color:"red"}).background}},"&[data-with-icon]":{paddingLeft:Fe({size:t,sizes:kr})}})}));const zRt=wRt;var LRt=Object.defineProperty,MRt=Object.defineProperties,TRt=Object.getOwnPropertyDescriptors,iM=Object.getOwnPropertySymbols,Vze=Object.prototype.hasOwnProperty,Hze=Object.prototype.propertyIsEnumerable,rge=(u,e,t)=>e in u?LRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,x9=(u,e)=>{for(var t in e||(e={}))Vze.call(e,t)&&rge(u,t,e[t]);if(iM)for(var t of iM(e))Hze.call(e,t)&&rge(u,t,e[t]);return u},PRt=(u,e)=>MRt(u,TRt(e)),NRt=(u,e)=>{var t={};for(var n in u)Vze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&iM)for(var n of iM(u))e.indexOf(n)<0&&Hze.call(u,n)&&(t[n]=u[n]);return t};const RRt={xs:W(22),sm:W(26),md:W(28),lg:W(32),xl:W(40)},IRt={xs:W(12),sm:W(15),md:W(17),lg:W(19),xl:W(21)},ORt={xs:W(28),sm:W(32),md:W(34),lg:W(44),xl:W(54)},jRt={size:"sm",toggleTabIndex:-1,visibilityToggleIcon:yRt,__staticSelector:"PasswordInput"},OJ=C.forwardRef((u,e)=>{const t=Je("PasswordInput",jRt,u),{radius:n,disabled:i,size:r,toggleTabIndex:a,className:o,id:s,label:l,error:c,required:d,style:h,icon:E,description:g,wrapperProps:m,classNames:f,styles:p,variant:D,visibilityToggleIcon:x,__staticSelector:b,sx:k,labelProps:_,descriptionProps:y,errorProps:S,unstyled:B,visibilityToggleLabel:L,withAsterisk:T,inputContainer:N,iconWidth:F,inputWrapperOrder:A,visible:z,defaultVisible:P,onVisibilityChange:I}=t,j=NRt(t,["radius","disabled","size","toggleTabIndex","className","id","label","error","required","style","icon","description","wrapperProps","classNames","styles","variant","visibilityToggleIcon","__staticSelector","sx","labelProps","descriptionProps","errorProps","unstyled","visibilityToggleLabel","withAsterisk","inputContainer","iconWidth","inputWrapperOrder","visible","defaultVisible","onVisibilityChange"]),V=Fe({size:r,sizes:ORt}),{classes:H}=zRt({rightSectionWidth:V},{name:"PasswordInput",classNames:f,styles:p,unstyled:B,size:r,variant:D}),q=Kl(s),{systemStyles:J,rest:Q}=C4(j),[X,Y]=cs({value:z,defaultValue:P,finalValue:!1,onChange:I}),le=()=>Y(!X),he=M.createElement(qu,{className:H.visibilityToggle,tabIndex:a,radius:n,size:Fe({size:r,sizes:RRt}),"aria-hidden":!L,"aria-label":L,unstyled:B,onMouseDown:ze=>{ze.preventDefault(),le()},onKeyDown:ze=>{ze.key===" "&&(ze.preventDefault(),le())}},M.createElement(x,{reveal:X,size:Fe({size:r,sizes:IRt})}));return M.createElement(Ma.Wrapper,x9(x9({required:d,id:q,label:l,error:c,description:g,size:r,className:o,style:h,classNames:f,styles:p,__staticSelector:b,sx:k,errorProps:S,descriptionProps:y,labelProps:_,unstyled:B,withAsterisk:T,inputWrapperOrder:A,inputContainer:N,variant:D},J),m),M.createElement(Ma,{component:"div",error:c,icon:E,size:r,classNames:PRt(x9({},f),{input:H.input}),styles:p,radius:n,disabled:i,__staticSelector:b,rightSectionWidth:V,rightSection:!i&&he,variant:D,unstyled:B,iconWidth:F},M.createElement("input",x9({type:X?"text":"password",required:d,"data-invalid":!!c||void 0,"data-with-icon":!!E||void 0,className:H.innerInput,disabled:i,id:q,ref:e},Q))))});OJ.displayName="@mantine/core/PasswordInput";const $ze=C.createContext(!1),VRt=$ze.Provider,HRt=()=>C.useContext($ze);function Kze({children:u,openDelay:e=0,closeDelay:t=0}){return M.createElement(VRt,{value:!0},M.createElement(V9t,{delay:{open:e,close:t}},u))}Kze.displayName="@mantine/core/TooltipGroup";var $Rt=Object.defineProperty,KRt=Object.defineProperties,WRt=Object.getOwnPropertyDescriptors,age=Object.getOwnPropertySymbols,GRt=Object.prototype.hasOwnProperty,URt=Object.prototype.propertyIsEnumerable,oge=(u,e,t)=>e in u?$Rt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,sge=(u,e)=>{for(var t in e||(e={}))GRt.call(e,t)&&oge(u,t,e[t]);if(age)for(var t of age(e))URt.call(e,t)&&oge(u,t,e[t]);return u},qRt=(u,e)=>KRt(u,WRt(e));function JRt(u,e){if(!e)return{backgroundColor:u.colorScheme==="dark"?u.colors.gray[2]:u.colors.gray[9],color:u.colorScheme==="dark"?u.black:u.white};const t=u.fn.variant({variant:"filled",color:e,primaryFallback:!1});return{backgroundColor:t.background,color:t.color}}var ZRt=at((u,{color:e,radius:t,width:n,multiline:i})=>({tooltip:qRt(sge(sge({},u.fn.fontStyles()),JRt(u,e)),{lineHeight:u.lineHeight,fontSize:u.fontSizes.sm,borderRadius:u.fn.radius(t),padding:`calc(${u.spacing.xs} / 2) ${u.spacing.xs}`,position:"absolute",whiteSpace:i?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}));const Wze=ZRt,Gze={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function YRt({offset:u,position:e}){const[t,n]=C.useState(!1),i=C.useRef(),{x:r,y:a,reference:o,floating:s,refs:l,update:c,placement:d}=vue({placement:e,middleware:[JR({crossAxis:!0,padding:5,rootBoundary:"document"})]}),h=d.includes("right")?u:e.includes("left")?u*-1:0,E=d.includes("bottom")?u:e.includes("top")?u*-1:0,g=C.useCallback(({clientX:m,clientY:f})=>{o({getBoundingClientRect(){return{width:0,height:0,x:m,y:f,left:m+h,top:f+E,right:m,bottom:f}}})},[o]);return C.useEffect(()=>{if(l.floating.current){const m=i.current;m.addEventListener("mousemove",g);const f=Eg(l.floating.current);return f.forEach(p=>{p.addEventListener("scroll",c)}),()=>{m.removeEventListener("mousemove",g),f.forEach(p=>{p.removeEventListener("scroll",c)})}}},[o,l.floating.current,c,g,t]),{handleMouseMove:g,x:r,y:a,opened:t,setOpened:n,boundaryRef:i,floating:s}}var QRt=Object.defineProperty,XRt=Object.defineProperties,eIt=Object.getOwnPropertyDescriptors,rM=Object.getOwnPropertySymbols,Uze=Object.prototype.hasOwnProperty,qze=Object.prototype.propertyIsEnumerable,lge=(u,e,t)=>e in u?QRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,v9=(u,e)=>{for(var t in e||(e={}))Uze.call(e,t)&&lge(u,t,e[t]);if(rM)for(var t of rM(e))qze.call(e,t)&&lge(u,t,e[t]);return u},C9=(u,e)=>XRt(u,eIt(e)),tIt=(u,e)=>{var t={};for(var n in u)Uze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&rM)for(var n of rM(u))e.indexOf(n)<0&&qze.call(u,n)&&(t[n]=u[n]);return t};const uIt={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:id("popover")};function Jze(u){var e;const t=Je("TooltipFloating",uIt,u),{children:n,refProp:i,withinPortal:r,portalProps:a,style:o,className:s,classNames:l,styles:c,unstyled:d,radius:h,color:E,label:g,offset:m,position:f,multiline:p,width:D,zIndex:x,disabled:b,variant:k}=t,_=tIt(t,["children","refProp","withinPortal","portalProps","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled","variant"]),{handleMouseMove:y,x:S,y:B,opened:L,boundaryRef:T,floating:N,setOpened:F}=YRt({offset:m,position:f}),{classes:A,cx:z}=Wze({radius:h,color:E,multiline:p,width:D},{name:"TooltipFloating",classNames:l,styles:c,unstyled:d,variant:k});if(!fC(n))throw new Error(Gze.children);const P=N1(T,n.ref),I=V=>{var H,q;(q=(H=n.props).onMouseEnter)==null||q.call(H,V),y(V),F(!0)},j=V=>{var H,q;(q=(H=n.props).onMouseLeave)==null||q.call(H,V),F(!1)};return M.createElement(M.Fragment,null,M.createElement(_A,C9(v9({},a),{withinPortal:r}),M.createElement(pt,C9(v9({},_),{ref:N,className:z(A.tooltip,s),style:C9(v9({},o),{zIndex:x,display:!b&&L?"block":"none",top:B??"",left:(e=Math.round(S))!=null?e:""})}),g)),C.cloneElement(n,C9(v9({},n.props),{[i]:P,onMouseEnter:I,onMouseLeave:j})))}Jze.displayName="@mantine/core/TooltipFloating";function nIt(u){const[e,t]=C.useState(!1),i=typeof u.opened=="boolean"?u.opened:e,r=HRt(),a=Kl(),{delay:o,currentId:s,setCurrentId:l}=i8e(),c=C.useCallback(S=>{t(S),S&&l(a)},[l,a]),{x:d,y:h,reference:E,floating:g,context:m,refs:f,update:p,placement:D,middlewareData:{arrow:{x,y:b}={}}}=vue({placement:u.position,open:i,onOpenChange:c,middleware:[gue(u.offset),JR({padding:8}),Eue(),XSe({element:u.arrowRef,padding:u.arrowOffset}),...u.inline?[VSe()]:[]]}),{getReferenceProps:k,getFloatingProps:_}=X9t([j9t(m,{enabled:u.events.hover,delay:r?o:{open:u.openDelay,close:u.closeDelay},mouseOnly:!u.events.touch}),Y9t(m,{enabled:u.events.focus,keyboardOnly:!0}),Q9t(m,{role:"tooltip"}),Z9t(m,{enabled:typeof u.opened===void 0}),H9t(m,{id:a})]);return a8e({opened:i,position:u.position,positionDependencies:u.positionDependencies,floating:{refs:f,update:p}}),Lo(()=>{var S;(S=u.onPositionChange)==null||S.call(u,D)},[D]),{x:d,y:h,arrowX:x,arrowY:b,reference:E,floating:g,getFloatingProps:_,getReferenceProps:k,isGroupPhase:i&&s&&s!==a,opened:i,placement:D}}var iIt=Object.defineProperty,rIt=Object.defineProperties,aIt=Object.getOwnPropertyDescriptors,aM=Object.getOwnPropertySymbols,Zze=Object.prototype.hasOwnProperty,Yze=Object.prototype.propertyIsEnumerable,cge=(u,e,t)=>e in u?iIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jm=(u,e)=>{for(var t in e||(e={}))Zze.call(e,t)&&cge(u,t,e[t]);if(aM)for(var t of aM(e))Yze.call(e,t)&&cge(u,t,e[t]);return u},vH=(u,e)=>rIt(u,aIt(e)),oIt=(u,e)=>{var t={};for(var n in u)Zze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&aM)for(var n of aM(u))e.indexOf(n)<0&&Yze.call(u,n)&&(t[n]=u[n]);return t};const sIt={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:id("popover"),positionDependencies:[]},nI=C.forwardRef((u,e)=>{var t;const n=C.useRef(null),i=Je("Tooltip",sIt,u),{children:r,position:a,refProp:o,label:s,openDelay:l,closeDelay:c,onPositionChange:d,opened:h,withinPortal:E,portalProps:g,radius:m,color:f,classNames:p,styles:D,unstyled:x,style:b,className:k,withArrow:_,arrowSize:y,arrowOffset:S,arrowRadius:B,arrowPosition:L,offset:T,transitionProps:N,multiline:F,width:A,events:z,zIndex:P,disabled:I,positionDependencies:j,onClick:V,onMouseEnter:H,onMouseLeave:q,inline:J,variant:Q,keepMounted:X}=i,Y=oIt(i,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","portalProps","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transitionProps","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline","variant","keepMounted"]),{classes:le,cx:he,theme:ze}=Wze({radius:m,color:f,width:A,multiline:F},{name:"Tooltip",classNames:p,styles:D,unstyled:x,variant:Q}),Ie=nIt({position:p8e(ze.dir,a),closeDelay:c,openDelay:l,onPositionChange:d,opened:h,events:z,arrowRef:n,arrowOffset:S,offset:T+(_?y/2:0),positionDependencies:[...j,r],inline:J});if(!fC(r))throw new Error(Gze.children);const We=N1(Ie.reference,r.ref,e);return M.createElement(M.Fragment,null,M.createElement(_A,vH(jm({},g),{withinPortal:E}),M.createElement(Vp,vH(jm({keepMounted:X,mounted:!I&&Ie.opened},N),{transition:N.transition||"fade",duration:Ie.isGroupPhase?10:(t=N.duration)!=null?t:100}),Ee=>{var ut,we;return M.createElement(pt,jm(jm({},Y),Ie.getFloatingProps({ref:Ie.floating,className:le.tooltip,style:vH(jm(jm({},b),Ee),{zIndex:P,top:(ut=Ie.y)!=null?ut:0,left:(we=Ie.x)!=null?we:0})})),s,M.createElement(bue,{ref:n,arrowX:Ie.arrowX,arrowY:Ie.arrowY,visible:_,position:Ie.placement,arrowSize:y,arrowOffset:S,arrowRadius:B,arrowPosition:L,className:le.arrow}))})),C.cloneElement(r,Ie.getReferenceProps(jm({onClick:V,onMouseEnter:H,onMouseLeave:q,onMouseMove:u.onMouseMove,onPointerDown:u.onPointerDown,onPointerEnter:u.onPointerEnter,[o]:We,className:he(k,r.props.className)},r.props))))});nI.Group=Kze;nI.Floating=Jze;nI.displayName="@mantine/core/Tooltip";const wx=nI;var lIt=Object.defineProperty,oM=Object.getOwnPropertySymbols,Qze=Object.prototype.hasOwnProperty,Xze=Object.prototype.propertyIsEnumerable,dge=(u,e,t)=>e in u?lIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,hge=(u,e)=>{for(var t in e||(e={}))Qze.call(e,t)&&dge(u,t,e[t]);if(oM)for(var t of oM(e))Xze.call(e,t)&&dge(u,t,e[t]);return u},cIt=(u,e)=>{var t={};for(var n in u)Qze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&oM)for(var n of oM(u))e.indexOf(n)<0&&Xze.call(u,n)&&(t[n]=u[n]);return t};function dIt(u){const e=u,{width:t,height:n,style:i}=e,r=cIt(e,["width","height","style"]);return M.createElement("svg",hge({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:hge({width:t,height:n},i)},r),M.createElement("path",{fill:"currentColor",d:"M0 2.5a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0z"}))}const eLe=C.createContext(null),hIt=eLe.Provider,EIt=()=>C.useContext(eLe);var gIt=Object.defineProperty,sM=Object.getOwnPropertySymbols,tLe=Object.prototype.hasOwnProperty,uLe=Object.prototype.propertyIsEnumerable,Ege=(u,e,t)=>e in u?gIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gge=(u,e)=>{for(var t in e||(e={}))tLe.call(e,t)&&Ege(u,t,e[t]);if(sM)for(var t of sM(e))uLe.call(e,t)&&Ege(u,t,e[t]);return u},mIt=(u,e)=>{var t={};for(var n in u)tLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&sM)for(var n of sM(u))e.indexOf(n)<0&&uLe.call(u,n)&&(t[n]=u[n]);return t};const fIt={size:"sm"},nLe=C.forwardRef((u,e)=>{const t=Je("RadioGroup",fIt,u),{children:n,value:i,defaultValue:r,onChange:a,size:o,wrapperProps:s,unstyled:l,name:c}=t,d=mIt(t,["children","value","defaultValue","onChange","size","wrapperProps","unstyled","name"]),h=Kl(c),[E,g]=cs({value:i,defaultValue:r,finalValue:"",onChange:a}),m=f=>g(f.currentTarget.value);return M.createElement(hIt,{value:{value:E,onChange:m,size:o,name:h}},M.createElement(Ma.Wrapper,gge(gge({labelElement:"div",size:o,__staticSelector:"RadioGroup",ref:e,unstyled:l},s),d),n))});nLe.displayName="@mantine/core/RadioGroup";var pIt=Object.defineProperty,DIt=Object.defineProperties,xIt=Object.getOwnPropertyDescriptors,mge=Object.getOwnPropertySymbols,vIt=Object.prototype.hasOwnProperty,CIt=Object.prototype.propertyIsEnumerable,fge=(u,e,t)=>e in u?pIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,bIt=(u,e)=>{for(var t in e||(e={}))vIt.call(e,t)&&fge(u,t,e[t]);if(mge)for(var t of mge(e))CIt.call(e,t)&&fge(u,t,e[t]);return u},kIt=(u,e)=>DIt(u,xIt(e));const CH={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)},b9={xs:W(6),sm:W(8),md:W(10),lg:W(14),xl:W(16)};var yIt=at((u,{color:e,transitionDuration:t,labelPosition:n,error:i},{size:r})=>{const a=u.fn.variant({variant:"filled",color:e}),o=u.fn.variant({variant:"filled",color:"red"}).background;return{inner:{order:n==="left"?2:1,position:"relative",alignSelf:"flex-start"},icon:{ref:s1("icon"),color:u.white,opacity:0,transform:`scale(0.75) translateY(${W(2)})`,transition:`opacity ${t}ms ${u.transitionTimingFunction}`,pointerEvents:"none",width:Fe({sizes:b9,size:r}),height:Fe({sizes:b9,size:r}),position:"absolute",top:`calc(50% - ${Fe({sizes:b9,size:r})} / 2)`,left:`calc(50% - ${Fe({sizes:b9,size:r})} / 2)`},radio:kIt(bIt({},u.fn.focusStyles()),{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,border:`${W(1)} solid ${i?o:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,position:"relative",appearance:"none",width:Fe({sizes:CH,size:r}),height:Fe({sizes:CH,size:r}),borderRadius:Fe({sizes:CH,size:r}),margin:0,display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"background-color, border-color",transitionTimingFunction:u.transitionTimingFunction,transitionDuration:`${t}ms`,cursor:u.cursorType,"&:checked":{background:a.background,borderColor:a.background,[`& + .${s1("icon")}`]:{opacity:1,transform:"scale(1)"}},"&:disabled":{borderColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[4],backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1],[`& + .${s1("icon")}`]:{color:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[4]}}})}});const FIt=yIt;var AIt=Object.defineProperty,lM=Object.getOwnPropertySymbols,iLe=Object.prototype.hasOwnProperty,rLe=Object.prototype.propertyIsEnumerable,pge=(u,e,t)=>e in u?AIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,k9=(u,e)=>{for(var t in e||(e={}))iLe.call(e,t)&&pge(u,t,e[t]);if(lM)for(var t of lM(e))rLe.call(e,t)&&pge(u,t,e[t]);return u},_It=(u,e)=>{var t={};for(var n in u)iLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&lM)for(var n of lM(u))e.indexOf(n)<0&&rLe.call(u,n)&&(t[n]=u[n]);return t};const SIt={icon:dIt,transitionDuration:100,size:"sm",labelPosition:"right"},Df=C.forwardRef((u,e)=>{var t,n;const i=Je("Radio",SIt,u),{className:r,style:a,id:o,label:s,size:l,title:c,disabled:d,color:h,classNames:E,styles:g,sx:m,icon:f,transitionDuration:p,wrapperProps:D,unstyled:x,labelPosition:b,description:k,error:_,variant:y}=i,S=_It(i,["className","style","id","label","size","title","disabled","color","classNames","styles","sx","icon","transitionDuration","wrapperProps","unstyled","labelPosition","description","error","variant"]),B=EIt(),L=(t=B==null?void 0:B.size)!=null?t:l,T=u.size?l:L,{classes:N}=FIt({color:h,transitionDuration:p,labelPosition:b,error:!!_},{name:"Radio",classNames:E,styles:g,unstyled:x,variant:y,size:T}),{systemStyles:F,rest:A}=C4(S),z=Kl(o),P=B?{checked:B.value===A.value,name:(n=A.name)!=null?n:B.name,onChange:B.onChange}:{};return M.createElement(QR,k9(k9({className:r,sx:m,style:a,id:z,size:T,labelPosition:b,label:s,description:k,error:_,disabled:d,__staticSelector:"Radio",classNames:E,styles:g,unstyled:x,"data-checked":P.checked||void 0,variant:y},F),D),M.createElement("div",{className:N.inner},M.createElement("input",k9(k9({ref:e,className:N.radio,type:"radio",id:z,disabled:d},A),P)),M.createElement(f,{className:N.icon,"aria-hidden":!0})))});Df.displayName="@mantine/core/Radio";Df.Group=nLe;function BIt({data:u,searchable:e,limit:t,searchValue:n,filter:i,value:r,filterDataOnExactSearchMatch:a}){if(!e)return u;const o=r!=null&&u.find(l=>l.value===r)||null;if(o&&!a&&(o==null?void 0:o.label)===n){if(t){if(t>=u.length)return u;const l=u.indexOf(o),c=l+t,d=c-u.length;return d>0?u.slice(l-d):u.slice(l,c)}return u}const s=[];for(let l=0;l=t));l+=1);return s}var wIt=at(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}}));const zIt=wIt;var LIt=Object.defineProperty,MIt=Object.defineProperties,TIt=Object.getOwnPropertyDescriptors,cM=Object.getOwnPropertySymbols,aLe=Object.prototype.hasOwnProperty,oLe=Object.prototype.propertyIsEnumerable,Dge=(u,e,t)=>e in u?LIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,M6=(u,e)=>{for(var t in e||(e={}))aLe.call(e,t)&&Dge(u,t,e[t]);if(cM)for(var t of cM(e))oLe.call(e,t)&&Dge(u,t,e[t]);return u},bH=(u,e)=>MIt(u,TIt(e)),PIt=(u,e)=>{var t={};for(var n in u)aLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&cM)for(var n of cM(u))e.indexOf(n)<0&&oLe.call(u,n)&&(t[n]=u[n]);return t};function NIt(u,e){return e.label.toLowerCase().trim().includes(u.toLowerCase().trim())}function RIt(u,e){return!!u&&!e.some(t=>t.label.toLowerCase()===u.toLowerCase())}const IIt={required:!1,size:"sm",shadow:"sm",itemComponent:oue,transitionProps:{transition:"fade",duration:0},initiallyOpened:!1,filter:NIt,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:RIt,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:id("popover"),positionDependencies:[],dropdownPosition:"flip"},si=C.forwardRef((u,e)=>{const t=b8e("Select",IIt,u),{inputProps:n,wrapperProps:i,shadow:r,data:a,value:o,defaultValue:s,onChange:l,itemComponent:c,onKeyDown:d,onBlur:h,onFocus:E,transitionProps:g,initiallyOpened:m,unstyled:f,classNames:p,styles:D,filter:x,maxDropdownHeight:b,searchable:k,clearable:_,nothingFound:y,limit:S,disabled:B,onSearchChange:L,searchValue:T,rightSection:N,rightSectionWidth:F,creatable:A,getCreateLabel:z,shouldCreate:P,selectOnBlur:I,onCreate:j,dropdownComponent:V,onDropdownClose:H,onDropdownOpen:q,withinPortal:J,portalProps:Q,switchDirectionOnFlip:X,zIndex:Y,name:le,dropdownPosition:he,allowDeselect:ze,placeholder:Ie,filterDataOnExactSearchMatch:We,form:Ee,positionDependencies:ut,readOnly:we,clearButtonProps:Ge,hoverOnSearchChange:nt}=t,Ht=PIt(t,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transitionProps","initiallyOpened","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","portalProps","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","form","positionDependencies","readOnly","clearButtonProps","hoverOnSearchChange"]),{classes:eu,cx:bu,theme:ru}=zIt(),[oe,se]=C.useState(m),[re,$]=C.useState(-1),Z=C.useRef(),ne=C.useRef({}),[te,me]=C.useState("column"),Se=te==="column",{scrollIntoView:Ue,targetRef:it,scrollableRef:ct}=a9e({duration:0,offset:5,cancelable:!1,isList:!0}),Dt=ze===void 0?_:ze,$t=dt=>{if(oe!==dt){se(dt);const xu=dt?q:H;typeof xu=="function"&&xu()}},He=A&&typeof z=="function";let Pe=null;const Ju=a.map(dt=>typeof dt=="string"?{label:dt,value:dt}:dt),su=A7e({data:Ju}),[En,zu,ui]=cs({value:o,defaultValue:s,finalValue:null,onChange:l}),$u=su.find(dt=>dt.value===En),[_u,Vn]=cs({value:T,defaultValue:($u==null?void 0:$u.label)||"",finalValue:void 0,onChange:L}),kn=dt=>{Vn(dt),k&&typeof L=="function"&&L(dt)},Ku=()=>{var dt;we||(zu(null),ui||kn(""),(dt=Z.current)==null||dt.focus())};C.useEffect(()=>{const dt=su.find(xu=>xu.value===En);dt?kn(dt.label):(!He||!En)&&kn("")},[En]),C.useEffect(()=>{$u&&(!k||!oe)&&kn($u.label)},[$u==null?void 0:$u.label]);const Lu=dt=>{if(!we)if(Dt&&($u==null?void 0:$u.value)===dt.value)zu(null),$t(!1);else{if(dt.creatable&&typeof j=="function"){const xu=j(dt.value);typeof xu<"u"&&xu!==null&&zu(typeof xu=="string"?xu:xu.value)}else zu(dt.value);ui||kn(dt.label),$(-1),$t(!1),Z.current.focus()}},ju=BIt({data:su,searchable:k,limit:S,searchValue:_u,filter:x,filterDataOnExactSearchMatch:We,value:En});He&&P(_u,ju)&&(Pe=z(_u),ju.push({label:_u,value:_u,creatable:!0}));const yn=(dt,xu,di)=>{let Su=dt;for(;di(Su);)if(Su=xu(Su),!ju[Su].disabled)return Su;return dt};Lo(()=>{$(nt&&_u?0:-1)},[_u,nt]);const Si=En?ju.findIndex(dt=>dt.value===En):0,Bi=!we&&(ju.length>0?oe:oe&&!!y),Ii=()=>{$(dt=>{var xu;const di=yn(dt,Su=>Su-1,Su=>Su>0);return it.current=ne.current[(xu=ju[di])==null?void 0:xu.value],Bi&&Ue({alignment:Se?"start":"end"}),di})},Oa=()=>{$(dt=>{var xu;const di=yn(dt,Su=>Su+1,Su=>Suwindow.setTimeout(()=>{var dt;it.current=ne.current[(dt=ju[Si])==null?void 0:dt.value],Ue({alignment:Se?"end":"start"})},50);Lo(()=>{Bi&&yt()},[Bi]);const ge=dt=>{switch(typeof d=="function"&&d(dt),dt.key){case"ArrowUp":{dt.preventDefault(),oe?Se?Ii():Oa():($(Si),$t(!0),yt());break}case"ArrowDown":{dt.preventDefault(),oe?Se?Oa():Ii():($(Si),$t(!0),yt());break}case"Home":{if(!k){dt.preventDefault(),oe||$t(!0);const xu=ju.findIndex(di=>!di.disabled);$(xu),Bi&&Ue({alignment:Se?"end":"start"})}break}case"End":{if(!k){dt.preventDefault(),oe||$t(!0);const xu=ju.map(di=>!!di.disabled).lastIndexOf(!1);$(xu),Bi&&Ue({alignment:Se?"end":"start"})}break}case"Escape":{dt.preventDefault(),$t(!1),$(-1);break}case" ":{k||(dt.preventDefault(),ju[re]&&oe?Lu(ju[re]):($t(!0),$(Si),yt()));break}case"Enter":k||dt.preventDefault(),ju[re]&&oe&&(dt.preventDefault(),Lu(ju[re]))}},Ye=dt=>{typeof h=="function"&&h(dt);const xu=su.find(di=>di.value===En);I&&ju[re]&&oe&&Lu(ju[re]),kn((xu==null?void 0:xu.label)||""),$t(!1)},xt=dt=>{typeof E=="function"&&E(dt),k&&$t(!0)},Zu=dt=>{we||(kn(dt.currentTarget.value),_&&dt.currentTarget.value===""&&zu(null),$(-1),$t(!0))},xr=()=>{we||($t(!oe),En&&!oe&&$(Si))};return M.createElement(Ma.Wrapper,bH(M6({},i),{__staticSelector:"Select"}),M.createElement(gg,{opened:Bi,transitionProps:g,shadow:r,withinPortal:J,portalProps:Q,__staticSelector:"Select",onDirectionChange:me,switchDirectionOnFlip:X,zIndex:Y,dropdownPosition:he,positionDependencies:[...ut,_u],classNames:p,styles:D,unstyled:f,variant:n.variant},M.createElement(gg.Target,null,M.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":Bi?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":Bi,onMouseLeave:()=>$(-1),tabIndex:-1},M.createElement("input",{type:"hidden",name:le,value:En||"",form:Ee,disabled:B}),M.createElement(Ma,M6(bH(M6(M6({autoComplete:"off",type:"search"},n),Ht),{ref:N1(e,Z),onKeyDown:ge,__staticSelector:"Select",value:_u,placeholder:Ie,onChange:Zu,"aria-autocomplete":"list","aria-controls":Bi?`${n.id}-items`:null,"aria-activedescendant":re>=0?`${n.id}-${re}`:null,onMouseDown:xr,onBlur:Ye,onFocus:xt,readOnly:!k||we,disabled:B,"data-mantine-stop-propagation":Bi,name:null,classNames:bH(M6({},p),{input:bu({[eu.input]:!k},p==null?void 0:p.input)})}),gze({theme:ru,rightSection:N,rightSectionWidth:F,styles:D,size:n.size,shouldClear:_&&!!$u,onClear:Ku,error:i.error,clearButtonProps:Ge,disabled:B,readOnly:we}))))),M.createElement(gg.Dropdown,{component:V||qR,maxHeight:b,direction:te,id:n.id,innerRef:ct,__staticSelector:"Select",classNames:p,styles:D},M.createElement(aue,{data:ju,hovered:re,classNames:p,styles:D,isItemSelected:dt=>dt===En,uuid:n.id,__staticSelector:"Select",onItemHover:$,onItemSelect:Lu,itemsRefs:ne,itemComponent:c,size:n.size,nothingFound:y,creatable:He&&!!Pe,createLabel:Pe,"aria-label":i.label,unstyled:f,variant:n.variant}))))});si.displayName="@mantine/core/Select";function OIt(u,e){if(e.length===0)return e;const t="maxWidth"in e[0]?"maxWidth":"minWidth",n=[...e].sort((i,r)=>Us(Fe({size:r[t],sizes:u.breakpoints}))-Us(Fe({size:i[t],sizes:u.breakpoints})));return t==="minWidth"?n.reverse():n}var jIt=Object.defineProperty,xge=Object.getOwnPropertySymbols,VIt=Object.prototype.hasOwnProperty,HIt=Object.prototype.propertyIsEnumerable,vge=(u,e,t)=>e in u?jIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,$It=(u,e)=>{for(var t in e||(e={}))VIt.call(e,t)&&vge(u,t,e[t]);if(xge)for(var t of xge(e))HIt.call(e,t)&&vge(u,t,e[t]);return u},KIt=at((u,{spacing:e,breakpoints:t,cols:n,verticalSpacing:i})=>{const r=i!=null,a=OIt(u,t).reduce((o,s)=>{var l,c;const d="maxWidth"in s?"max-width":"min-width",h=Fe({size:d==="max-width"?s.maxWidth:s.minWidth,sizes:u.breakpoints,units:"em"}),E=Us(h)-(d==="max-width"?1:0);return o[`@media (${d}: ${yl(E)})`]={gridTemplateColumns:`repeat(${s.cols}, minmax(0, 1fr))`,gap:`${Fe({size:(l=s.verticalSpacing)!=null?l:r?i:e,sizes:u.spacing})} ${Fe({size:(c=s.spacing)!=null?c:e,sizes:u.spacing})}`},o},{});return{root:$It({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:`${Fe({size:r?i:e,sizes:u.spacing})} ${Fe({size:e,sizes:u.spacing})}`},a)}});const WIt=KIt;var GIt=Object.defineProperty,dM=Object.getOwnPropertySymbols,sLe=Object.prototype.hasOwnProperty,lLe=Object.prototype.propertyIsEnumerable,Cge=(u,e,t)=>e in u?GIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,UIt=(u,e)=>{for(var t in e||(e={}))sLe.call(e,t)&&Cge(u,t,e[t]);if(dM)for(var t of dM(e))lLe.call(e,t)&&Cge(u,t,e[t]);return u},qIt=(u,e)=>{var t={};for(var n in u)sLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&dM)for(var n of dM(u))e.indexOf(n)<0&&lLe.call(u,n)&&(t[n]=u[n]);return t};const JIt={breakpoints:[],cols:1,spacing:"md"},Fc=C.forwardRef((u,e)=>{const t=Je("SimpleGrid",JIt,u),{className:n,breakpoints:i,cols:r,spacing:a,verticalSpacing:o,children:s,unstyled:l,variant:c}=t,d=qIt(t,["className","breakpoints","cols","spacing","verticalSpacing","children","unstyled","variant"]),{classes:h,cx:E}=WIt({breakpoints:i,cols:r,spacing:a,verticalSpacing:o},{name:"SimpleGrid",unstyled:l,variant:c});return M.createElement(pt,UIt({className:E(h.root,n),ref:e},d),s)});Fc.displayName="@mantine/core/SimpleGrid";function cLe({value:u,min:e,max:t}){const n=(u-e)/(t-e)*100;return Math.min(Math.max(n,0),100)}function ZIt({value:u,containerWidth:e,min:t,max:n,step:i,precision:r}){const o=(e?Math.min(Math.max(u,0),e)/e:u)*(n-t),s=(o!==0?Math.round(o/i)*i:0)+t,l=Math.max(s,t);return r!==void 0?Number(l.toFixed(r)):l}var YIt=Object.defineProperty,QIt=Object.defineProperties,XIt=Object.getOwnPropertyDescriptors,bge=Object.getOwnPropertySymbols,eOt=Object.prototype.hasOwnProperty,tOt=Object.prototype.propertyIsEnumerable,kge=(u,e,t)=>e in u?YIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,uOt=(u,e)=>{for(var t in e||(e={}))eOt.call(e,t)&&kge(u,t,e[t]);if(bge)for(var t of bge(e))tOt.call(e,t)&&kge(u,t,e[t]);return u},nOt=(u,e)=>QIt(u,XIt(e));const _o={xs:W(4),sm:W(6),md:W(8),lg:W(10),xl:W(12)};var iOt=at(u=>({root:nOt(uOt({},u.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",outline:0,display:"flex",flexDirection:"column",alignItems:"center",touchAction:"none",position:"relative"})}));const rOt=iOt;var aOt=Object.defineProperty,oOt=Object.defineProperties,sOt=Object.getOwnPropertyDescriptors,yge=Object.getOwnPropertySymbols,lOt=Object.prototype.hasOwnProperty,cOt=Object.prototype.propertyIsEnumerable,Fge=(u,e,t)=>e in u?aOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dOt=(u,e)=>{for(var t in e||(e={}))lOt.call(e,t)&&Fge(u,t,e[t]);if(yge)for(var t of yge(e))cOt.call(e,t)&&Fge(u,t,e[t]);return u},hOt=(u,e)=>oOt(u,sOt(e)),EOt=at((u,{color:e,disabled:t,thumbSize:n},{size:i})=>({label:{position:"absolute",top:W(-36),backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[9],fontSize:u.fontSizes.xs,color:u.white,padding:`calc(${u.spacing.xs} / 2)`,borderRadius:u.radius.sm,whiteSpace:"nowrap",pointerEvents:"none",userSelect:"none",touchAction:"none"},thumb:hOt(dOt({},u.fn.focusStyles()),{boxSizing:"border-box",position:"absolute",display:t?"none":"flex",height:n?W(n):`calc(${Fe({sizes:_o,size:i})} * 2)`,width:n?W(n):`calc(${Fe({sizes:_o,size:i})} * 2)`,backgroundColor:u.colorScheme==="dark"?u.fn.themeColor(e,u.fn.primaryShade()):u.white,border:`${W(4)} solid ${u.colorScheme==="dark"?u.white:u.fn.themeColor(e,u.fn.primaryShade())}`,color:u.colorScheme==="dark"?u.white:u.fn.themeColor(e,u.fn.primaryShade()),transform:"translate(-50%, -50%)",top:"50%",cursor:"pointer",borderRadius:1e3,alignItems:"center",justifyContent:"center",transitionDuration:"100ms",transitionProperty:"box-shadow, transform",transitionTimingFunction:u.transitionTimingFunction,zIndex:3,userSelect:"none",touchAction:"none"}),dragging:{transform:"translate(-50%, -50%) scale(1.05)",boxShadow:u.shadows.sm}}));const gOt=EOt,dLe=C.forwardRef(({max:u,min:e,value:t,position:n,label:i,dragging:r,onMouseDown:a,onKeyDownCapture:o,color:s,classNames:l,styles:c,size:d,labelTransition:h,labelTransitionDuration:E,labelTransitionTimingFunction:g,labelAlwaysOn:m,thumbLabel:f,onFocus:p,onBlur:D,showLabelOnHover:x,isHovered:b,children:k=null,disabled:_,unstyled:y,thumbSize:S,variant:B},L)=>{const{classes:T,cx:N,theme:F}=gOt({color:s,disabled:_,thumbSize:S},{name:"Slider",classNames:l,styles:c,unstyled:y,variant:B,size:d}),[A,z]=C.useState(!1),P=m||r||A||x&&b;return M.createElement(pt,{tabIndex:0,role:"slider","aria-label":f,"aria-valuemax":u,"aria-valuemin":e,"aria-valuenow":t,ref:L,className:N(T.thumb,{[T.dragging]:r}),onFocus:()=>{z(!0),typeof p=="function"&&p()},onBlur:()=>{z(!1),typeof D=="function"&&D()},onTouchStart:a,onMouseDown:a,onKeyDownCapture:o,onClick:I=>I.stopPropagation(),style:{[F.dir==="rtl"?"right":"left"]:`${n}%`}},k,M.createElement(Vp,{mounted:i!=null&&P,duration:E,transition:h,timingFunction:g||F.transitionTimingFunction},I=>M.createElement("div",{style:I,className:T.label},i)))});dLe.displayName="@mantine/core/SliderThumb";function mOt({mark:u,offset:e,value:t,inverted:n=!1}){return n?typeof e=="number"&&u.value<=e||u.value>=t:typeof e=="number"?u.value>=e&&u.value<=t:u.value<=t}var fOt=at((u,{color:e,disabled:t,thumbSize:n},{size:i})=>({marksContainer:{position:"absolute",right:n?W(n/2):Fe({sizes:_o,size:i}),left:n?W(n/2):Fe({sizes:_o,size:i}),"&:has(~ input:disabled)":{"& .mantine-Slider-markFilled":{border:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,borderColor:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]}}},markWrapper:{position:"absolute",top:`calc(${W(Fe({sizes:_o,size:i}))} / 2)`,zIndex:2,height:0},mark:{boxSizing:"border-box",border:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,height:Fe({sizes:_o,size:i}),width:Fe({sizes:_o,size:i}),borderRadius:1e3,transform:`translateX(calc(-${Fe({sizes:_o,size:i})} / 2))`,backgroundColor:u.white,pointerEvents:"none"},markFilled:{borderColor:t?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.fn.variant({variant:"filled",color:e}).background},markLabel:{transform:`translate(-50%, calc(${u.spacing.xs} / 2))`,fontSize:u.fontSizes.sm,color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],whiteSpace:"nowrap",cursor:"pointer",userSelect:"none"}}));const pOt=fOt;function hLe({marks:u,color:e,size:t,thumbSize:n,min:i,max:r,value:a,classNames:o,styles:s,offset:l,onChange:c,disabled:d,unstyled:h,inverted:E,variant:g}){const{classes:m,cx:f}=pOt({color:e,disabled:d,thumbSize:n},{name:"Slider",classNames:o,styles:s,unstyled:h,variant:g,size:t}),p=u.map((D,x)=>M.createElement(pt,{className:m.markWrapper,sx:{left:`${cLe({value:D.value,min:i,max:r})}%`},key:x},M.createElement("div",{className:f(m.mark,{[m.markFilled]:mOt({mark:D,value:a,offset:l,inverted:E})})}),D.label&&M.createElement("div",{className:m.markLabel,onMouseDown:b=>{b.stopPropagation(),!d&&c(D.value)},onTouchStart:b=>{b.stopPropagation(),!d&&c(D.value)}},D.label)));return M.createElement("div",{className:m.marksContainer},p)}hLe.displayName="@mantine/core/SliderMarks";var DOt=at((u,{radius:e,color:t,disabled:n,inverted:i,thumbSize:r},{size:a})=>({trackContainer:{display:"flex",alignItems:"center",width:"100%",height:`calc(${Fe({sizes:_o,size:a})} * 2)`,cursor:"pointer","&:has(~ input:disabled)":{"&":{pointerEvents:"none"},"& .mantine-Slider-thumb":{display:"none"},"& .mantine-Slider-track::before":{content:'""',backgroundColor:i?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]},"& .mantine-Slider-bar":{backgroundColor:i?u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]}}},track:{position:"relative",height:Fe({sizes:_o,size:a}),width:"100%",marginRight:r?W(r/2):Fe({size:a,sizes:_o}),marginLeft:r?W(r/2):Fe({size:a,sizes:_o}),"&::before":{content:'""',position:"absolute",top:0,bottom:0,borderRadius:u.fn.radius(e),right:`calc(${r?W(r/2):Fe({size:a,sizes:_o})} * -1)`,left:`calc(${r?W(r/2):Fe({size:a,sizes:_o})} * -1)`,backgroundColor:i?n?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.fn.variant({variant:"filled",color:t}).background:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],zIndex:0}},bar:{position:"absolute",zIndex:1,top:0,bottom:0,backgroundColor:i?u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]:n?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.fn.variant({variant:"filled",color:t}).background,borderRadius:u.fn.radius(e)}}));const xOt=DOt;var vOt=Object.defineProperty,COt=Object.defineProperties,bOt=Object.getOwnPropertyDescriptors,hM=Object.getOwnPropertySymbols,ELe=Object.prototype.hasOwnProperty,gLe=Object.prototype.propertyIsEnumerable,Age=(u,e,t)=>e in u?vOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,_ge=(u,e)=>{for(var t in e||(e={}))ELe.call(e,t)&&Age(u,t,e[t]);if(hM)for(var t of hM(e))gLe.call(e,t)&&Age(u,t,e[t]);return u},kOt=(u,e)=>COt(u,bOt(e)),yOt=(u,e)=>{var t={};for(var n in u)ELe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&hM)for(var n of hM(u))e.indexOf(n)<0&&gLe.call(u,n)&&(t[n]=u[n]);return t};function mLe(u){var e=u,{filled:t,size:n,thumbSize:i,color:r,classNames:a,styles:o,radius:s,children:l,offset:c,disabled:d,marksOffset:h,unstyled:E,inverted:g,variant:m,containerProps:f}=e,p=yOt(e,["filled","size","thumbSize","color","classNames","styles","radius","children","offset","disabled","marksOffset","unstyled","inverted","variant","containerProps"]);const{classes:D}=xOt({color:r,radius:s,disabled:d,inverted:g,thumbSize:i},{name:"Slider",classNames:a,styles:o,unstyled:E,variant:m,size:n});return M.createElement(M.Fragment,null,M.createElement("div",_ge({className:D.trackContainer},f),M.createElement("div",{className:D.track},M.createElement(pt,{className:D.bar,sx:{left:`calc(${c}% - ${i?W(i/2):Fe({size:n,sizes:_o})})`,width:`calc(${t}% + 2 * ${i?W(i/2):Fe({size:n,sizes:_o})})`}}),l)),M.createElement(hLe,kOt(_ge({},p),{size:n,thumbSize:i,color:r,offset:h,classNames:a,styles:o,disabled:d,unstyled:E,inverted:g,variant:m})))}mLe.displayName="@mantine/core/SliderTrack";var FOt=Object.defineProperty,AOt=Object.defineProperties,_Ot=Object.getOwnPropertyDescriptors,EM=Object.getOwnPropertySymbols,fLe=Object.prototype.hasOwnProperty,pLe=Object.prototype.propertyIsEnumerable,Sge=(u,e,t)=>e in u?FOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,SOt=(u,e)=>{for(var t in e||(e={}))fLe.call(e,t)&&Sge(u,t,e[t]);if(EM)for(var t of EM(e))pLe.call(e,t)&&Sge(u,t,e[t]);return u},BOt=(u,e)=>AOt(u,_Ot(e)),wOt=(u,e)=>{var t={};for(var n in u)fLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&EM)for(var n of EM(u))e.indexOf(n)<0&&pLe.call(u,n)&&(t[n]=u[n]);return t};const DLe=C.forwardRef((u,e)=>{var t=u,{className:n,size:i,classNames:r,styles:a,disabled:o,unstyled:s,variant:l}=t,c=wOt(t,["className","size","classNames","styles","disabled","unstyled","variant"]);const{classes:d,cx:h}=rOt(null,{name:"Slider",classNames:r,styles:a,unstyled:s,variant:l,size:i});return M.createElement(pt,BOt(SOt({},c),{tabIndex:-1,className:h(d.root,n),ref:e}))});DLe.displayName="@mantine/core/SliderRoot";function y9(u,e){return parseFloat(u.toFixed(e))}function zOt(u){if(!u)return 0;const e=u.toString().split(".");return e.length>1?e[1].length:0}var LOt=Object.defineProperty,MOt=Object.defineProperties,TOt=Object.getOwnPropertyDescriptors,gM=Object.getOwnPropertySymbols,xLe=Object.prototype.hasOwnProperty,vLe=Object.prototype.propertyIsEnumerable,Bge=(u,e,t)=>e in u?LOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,POt=(u,e)=>{for(var t in e||(e={}))xLe.call(e,t)&&Bge(u,t,e[t]);if(gM)for(var t of gM(e))vLe.call(e,t)&&Bge(u,t,e[t]);return u},NOt=(u,e)=>MOt(u,TOt(e)),ROt=(u,e)=>{var t={};for(var n in u)xLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&gM)for(var n of gM(u))e.indexOf(n)<0&&vLe.call(u,n)&&(t[n]=u[n]);return t};const IOt={size:"md",radius:"xl",min:0,max:100,step:1,marks:[],label:u=>u,labelTransition:"skew-down",labelTransitionDuration:0,labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:u=>u},CLe=C.forwardRef((u,e)=>{const t=Je("Slider",IOt,u),{classNames:n,styles:i,color:r,value:a,onChange:o,onChangeEnd:s,size:l,radius:c,min:d,max:h,step:E,precision:g,defaultValue:m,name:f,marks:p,label:D,labelTransition:x,labelTransitionDuration:b,labelTransitionTimingFunction:k,labelAlwaysOn:_,thumbLabel:y,showLabelOnHover:S,thumbChildren:B,disabled:L,unstyled:T,thumbSize:N,scale:F,inverted:A,variant:z}=t,P=ROt(t,["classNames","styles","color","value","onChange","onChangeEnd","size","radius","min","max","step","precision","defaultValue","name","marks","label","labelTransition","labelTransitionDuration","labelTransitionTimingFunction","labelAlwaysOn","thumbLabel","showLabelOnHover","thumbChildren","disabled","unstyled","thumbSize","scale","inverted","variant"]),I=g??zOt(E),j=Tr(),[V,H]=C.useState(!1),[q,J]=cs({value:typeof a=="number"?hg(a,d,h):a,defaultValue:typeof m=="number"?hg(m,d,h):m,finalValue:hg(0,d,h),onChange:o}),Q=C.useRef(q),X=C.useRef(),Y=C.useRef(),le=cLe({value:q,min:d,max:h}),he=F(q),ze=typeof D=="function"?D(he):D,Ie=C.useCallback(({x:we})=>{if(!L){const Ge=ZIt({value:we,min:d,max:h,step:E,precision:I});J(Ge),Q.current=Ge}},[L,d,h,E,I,J]),{ref:We,active:Ee}=q2t(Ie,{onScrubEnd:()=>s==null?void 0:s(Q.current)},j.dir),ut=we=>{if(!L)switch(we.key){case"ArrowUp":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(q+E,d),h),I);s==null||s(Ge),J(Ge);break}case"ArrowRight":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(j.dir==="rtl"?q-E:q+E,d),h),I);s==null||s(Ge),J(Ge);break}case"ArrowDown":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(q-E,d),h),I);s==null||s(Ge),J(Ge);break}case"ArrowLeft":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(j.dir==="rtl"?q+E:q-E,d),h),I);s==null||s(Ge),J(Ge);break}case"Home":{we.preventDefault(),Y.current.focus(),s==null||s(d),J(d);break}case"End":{we.preventDefault(),Y.current.focus(),s==null||s(h),J(h);break}}};return M.createElement(DLe,NOt(POt({},P),{ref:N1(e,X),onKeyDownCapture:ut,onMouseDownCapture:()=>{var we;return(we=X.current)==null?void 0:we.focus()},size:l,classNames:n,styles:i,disabled:L,unstyled:T,variant:z}),M.createElement(mLe,{inverted:A,offset:0,filled:le,marks:p,size:l,thumbSize:N,radius:c,color:r,min:d,max:h,value:he,onChange:J,classNames:n,styles:i,disabled:L,unstyled:T,variant:z,containerProps:{ref:We,onMouseEnter:S?()=>H(!0):void 0,onMouseLeave:S?()=>H(!1):void 0}},M.createElement(dLe,{max:h,min:d,value:he,position:le,dragging:Ee,color:r,size:l,label:ze,ref:Y,labelTransition:x,labelTransitionDuration:b,labelTransitionTimingFunction:k,labelAlwaysOn:_,classNames:n,styles:i,thumbLabel:y,showLabelOnHover:S,isHovered:V,disabled:L,unstyled:T,thumbSize:N,variant:z},B)),M.createElement("input",{type:"hidden",name:f,value:he}))});CLe.displayName="@mantine/core/Slider";var OOt=Object.defineProperty,mM=Object.getOwnPropertySymbols,bLe=Object.prototype.hasOwnProperty,kLe=Object.prototype.propertyIsEnumerable,wge=(u,e,t)=>e in u?OOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jOt=(u,e)=>{for(var t in e||(e={}))bLe.call(e,t)&&wge(u,t,e[t]);if(mM)for(var t of mM(e))kLe.call(e,t)&&wge(u,t,e[t]);return u},VOt=(u,e)=>{var t={};for(var n in u)bLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&mM)for(var n of mM(u))e.indexOf(n)<0&&kLe.call(u,n)&&(t[n]=u[n]);return t};const HOt={w:0,h:0},zv=C.forwardRef((u,e)=>{const t=Je("Space",HOt,u),{w:n,h:i}=t,r=VOt(t,["w","h"]);return M.createElement(pt,jOt({ref:e,w:n,miw:n,h:i,mih:i},r))});zv.displayName="@mantine/core/Space";var $Ot=at((u,{transitionDuration:e})=>({control:{},root:{position:"relative"},content:{display:"flex",flexDirection:"column",overflow:"hidden",transitionProperty:"max-height",transitionTimingFunction:u.transitionTimingFunction,transitionDuration:`${e}ms`,"@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":void 0}}}));const KOt=$Ot;var WOt=Object.defineProperty,fM=Object.getOwnPropertySymbols,yLe=Object.prototype.hasOwnProperty,FLe=Object.prototype.propertyIsEnumerable,zge=(u,e,t)=>e in u?WOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,GOt=(u,e)=>{for(var t in e||(e={}))yLe.call(e,t)&&zge(u,t,e[t]);if(fM)for(var t of fM(e))FLe.call(e,t)&&zge(u,t,e[t]);return u},UOt=(u,e)=>{var t={};for(var n in u)yLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&fM)for(var n of fM(u))e.indexOf(n)<0&&FLe.call(u,n)&&(t[n]=u[n]);return t};const qOt={maxHeight:100,transitionDuration:200,initialState:!1},zue=C.forwardRef((u,e)=>{const t=Je("Spoiler",qOt,u),{className:n,children:i,maxHeight:r,hideLabel:a,showLabel:o,transitionDuration:s,controlRef:l,initialState:c,classNames:d,styles:h,unstyled:E,variant:g}=t,m=UOt(t,["className","children","maxHeight","hideLabel","showLabel","transitionDuration","controlRef","initialState","classNames","styles","unstyled","variant"]),{classes:f,cx:p}=KOt({transitionDuration:s},{name:"Spoiler",classNames:d,styles:h,unstyled:E,variant:g}),[D,x]=C.useState(c),{ref:b,height:k}=nyt(),_=rx(S=>!S),className:f.control},y))});zue.displayName="@mantine/core/Spoiler";var JOt=at((u,{spacing:e,align:t,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:t,justifyContent:n,gap:Fe({size:e,sizes:u.spacing})}}));const ZOt=JOt;var YOt=Object.defineProperty,pM=Object.getOwnPropertySymbols,ALe=Object.prototype.hasOwnProperty,_Le=Object.prototype.propertyIsEnumerable,Lge=(u,e,t)=>e in u?YOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,QOt=(u,e)=>{for(var t in e||(e={}))ALe.call(e,t)&&Lge(u,t,e[t]);if(pM)for(var t of pM(e))_Le.call(e,t)&&Lge(u,t,e[t]);return u},XOt=(u,e)=>{var t={};for(var n in u)ALe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&pM)for(var n of pM(u))e.indexOf(n)<0&&_Le.call(u,n)&&(t[n]=u[n]);return t};const ejt={spacing:"md",align:"stretch",justify:"flex-start"},Gu=C.forwardRef((u,e)=>{const t=Je("Stack",ejt,u),{spacing:n,className:i,align:r,justify:a,unstyled:o,variant:s}=t,l=XOt(t,["spacing","className","align","justify","unstyled","variant"]),{classes:c,cx:d}=ZOt({spacing:n,align:r,justify:a},{name:"Stack",unstyled:o,variant:s});return M.createElement(pt,QOt({className:d(c.root,i),ref:e},l))});Gu.displayName="@mantine/core/Stack";var tjt=Object.defineProperty,ujt=Object.defineProperties,njt=Object.getOwnPropertyDescriptors,Mge=Object.getOwnPropertySymbols,ijt=Object.prototype.hasOwnProperty,rjt=Object.prototype.propertyIsEnumerable,Tge=(u,e,t)=>e in u?tjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,kH=(u,e)=>{for(var t in e||(e={}))ijt.call(e,t)&&Tge(u,t,e[t]);if(Mge)for(var t of Mge(e))rjt.call(e,t)&&Tge(u,t,e[t]);return u},ajt=(u,e)=>ujt(u,njt(e));const SLe={xs:W(34),sm:W(36),md:W(42),lg:W(48),xl:W(52)};var ojt=at((u,{color:e,iconSize:t,radius:n,allowStepClick:i,iconPosition:r,orientation:a},{size:o})=>{const s=t?W(t):Fe({size:o,sizes:SLe}),l=o==="xl"||o==="lg"?u.spacing.md:u.spacing.sm,c=u.fn.radius(n),d=u.fn.variant({variant:"filled",color:e||u.primaryColor,primaryFallback:!1}),h=`calc(${u.spacing.xs} / 2)`,E={step:{justifyContent:"flex-start",minHeight:`calc(${s} + ${u.spacing.xl} + ${h})`,marginTop:h,overflow:"hidden","&:first-of-type":{marginTop:0},[`&:last-of-type .${s1("verticalSeparator")}`]:{display:"none"}}};return{stepLoader:{},step:kH({display:"flex",flexDirection:r==="left"?"row":"row-reverse",cursor:i?"pointer":"default"},a==="vertical"?E.step:{alignItems:"center"}),stepWrapper:{position:"relative"},verticalSeparator:{top:`calc(${s} + ${h})`,left:`calc(${s} / 2)`,height:"100vh",position:"absolute",borderLeft:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1]}`,ref:s1("verticalSeparator")},verticalSeparatorActive:{borderColor:u.fn.variant({variant:"filled",color:e}).background},stepIcon:{boxSizing:"border-box",height:s,width:s,minWidth:s,borderRadius:c,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1],border:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1]}`,transition:"background-color 150ms ease, border-color 150ms ease",position:"relative",fontWeight:700,color:u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[7],fontSize:Fe({size:o,sizes:u.fontSizes}),"&[data-progress]":{borderColor:d.background},"&[data-completed]":{backgroundColor:d.background,borderColor:d.background,color:u.white}},stepCompletedIcon:ajt(kH({},u.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:u.white}),stepBody:kH({display:"flex",flexDirection:"column",marginLeft:r==="left"?l:void 0,marginRight:r==="right"?l:void 0},a==="vertical"?{marginTop:`calc(${t} / 4)`}:null),stepLabel:{textAlign:r,fontWeight:500,fontSize:Fe({size:o,sizes:u.fontSizes}),lineHeight:1},stepDescription:{textAlign:r,marginTop:`calc(${Fe({size:o,sizes:u.spacing})} / 3)`,marginBottom:`calc(${Fe({size:o,sizes:u.spacing})} / 3)`,fontSize:`calc(${Fe({size:o,sizes:u.fontSizes})} - ${W(2)})`,lineHeight:1}}});const sjt=ojt;var ljt=Object.defineProperty,DM=Object.getOwnPropertySymbols,BLe=Object.prototype.hasOwnProperty,wLe=Object.prototype.propertyIsEnumerable,Pge=(u,e,t)=>e in u?ljt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yH=(u,e)=>{for(var t in e||(e={}))BLe.call(e,t)&&Pge(u,t,e[t]);if(DM)for(var t of DM(e))wLe.call(e,t)&&Pge(u,t,e[t]);return u},cjt=(u,e)=>{var t={};for(var n in u)BLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&DM)for(var n of DM(u))e.indexOf(n)<0&&wLe.call(u,n)&&(t[n]=u[n]);return t};const djt={xs:16,sm:18,md:20,lg:22,xl:24},hjt={withIcon:!0,size:"md",radius:"xl",allowStepClick:!0,iconPosition:"left",__staticSelector:"Step"},F9=(u,e)=>typeof u=="function"?M.createElement(u,{step:e}):u,zLe=C.forwardRef((u,e)=>{const t=Je("StepperStep",hjt,u),{className:n,step:i,state:r,color:a,icon:o,completedIcon:s,progressIcon:l,label:c,description:d,withIcon:h,iconSize:E,size:g,radius:m,loading:f,allowStepClick:p,allowStepSelect:D,iconPosition:x,__staticSelector:b,classNames:k,styles:_,unstyled:y,orientation:S,variant:B}=t,L=cjt(t,["className","step","state","color","icon","completedIcon","progressIcon","label","description","withIcon","iconSize","size","radius","loading","allowStepClick","allowStepSelect","iconPosition","__staticSelector","classNames","styles","unstyled","orientation","variant"]),{classes:T,cx:N}=sjt({color:a,iconSize:E,radius:m,allowStepClick:p,iconPosition:x,orientation:S},{name:b,classNames:k,styles:_,unstyled:y,variant:B,size:g}),F=Fe({size:g,sizes:djt}),A=r==="stepCompleted"?null:r==="stepProgress"?l:o,z={"data-progress":r==="stepProgress"||void 0,"data-completed":r==="stepCompleted"||void 0};return M.createElement(b4,yH(yH({className:N(T.step,n),tabIndex:p?0:-1,ref:e},z),L),h&&M.createElement("div",{className:T.stepWrapper},M.createElement("div",yH({className:T.stepIcon},z),M.createElement(Vp,{mounted:r==="stepCompleted",transition:"pop",duration:200},P=>M.createElement("div",{className:T.stepCompletedIcon,style:P},f?M.createElement(Fv,{color:"#fff",size:F,className:T.stepLoader}):F9(s,i)||M.createElement(yBe,{indeterminate:!1,width:F,height:F}))),r!=="stepCompleted"?f?M.createElement(Fv,{size:F,color:a}):F9(A||o,i):null),S==="vertical"&&M.createElement("div",{className:N(T.verticalSeparator,{[T.verticalSeparatorActive]:r==="stepCompleted"})})),(c||d)&&M.createElement("div",{className:T.stepBody},c&&M.createElement(Fu,{className:T.stepLabel},F9(c,i)),d&&M.createElement(Fu,{className:T.stepDescription,color:"dimmed"},F9(d,i))))});zLe.displayName="@mantine/core/Step";function xM(u){return null}xM.displayName="@mantine/core/StepCompleted";var Ejt=Object.defineProperty,gjt=Object.defineProperties,mjt=Object.getOwnPropertyDescriptors,Nge=Object.getOwnPropertySymbols,fjt=Object.prototype.hasOwnProperty,pjt=Object.prototype.propertyIsEnumerable,Rge=(u,e,t)=>e in u?Ejt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,T6=(u,e)=>{for(var t in e||(e={}))fjt.call(e,t)&&Rge(u,t,e[t]);if(Nge)for(var t of Nge(e))pjt.call(e,t)&&Rge(u,t,e[t]);return u},Djt=(u,e)=>gjt(u,mjt(e)),xjt=at((u,{contentPadding:e,color:t,orientation:n,iconPosition:i,iconSize:r,breakpoint:a},{size:o})=>{const s=typeof a<"u",l=Us(Fe({size:a,sizes:u.breakpoints})),c=typeof r<"u"?`calc(${W(r)} / 2 - ${W(1)})`:`calc(${Fe({size:o,sizes:SLe})} / 2 - ${W(1)})`,d={steps:{flexDirection:"column",alignItems:i==="left"?"flex-start":"flex-end"},separator:{width:W(2),minHeight:u.spacing.xl,marginLeft:i==="left"?c:0,marginRight:i==="right"?c:0,marginTop:`calc(${u.spacing.xs} / 2)`,marginBottom:`calc(${u.spacing.xs} - ${W(2)})`}},h={steps:{[`@media (max-width: ${yl(l-1)})`]:d.steps},separator:{[`@media (max-width: ${yl(l-1)})`]:d.separator}};return{root:{},steps:T6(T6({display:"flex",boxSizing:"border-box",alignItems:"center"},n==="vertical"?d.steps:null),s?h.steps:null),separator:T6(T6({boxSizing:"border-box",transition:"background-color 150ms ease",flex:1,height:W(2),backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],marginLeft:u.spacing.md,marginRight:u.spacing.md},n==="vertical"?d.separator:null),s?h.separator:null),separatorActive:{backgroundColor:u.fn.variant({variant:"filled",color:t||u.primaryColor,primaryFallback:!1}).background},content:Djt(T6({},u.fn.fontStyles()),{paddingTop:Fe({size:e,sizes:u.spacing})})}});const vjt=xjt;var Cjt=Object.defineProperty,vM=Object.getOwnPropertySymbols,LLe=Object.prototype.hasOwnProperty,MLe=Object.prototype.propertyIsEnumerable,Ige=(u,e,t)=>e in u?Cjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,bjt=(u,e)=>{for(var t in e||(e={}))LLe.call(e,t)&&Ige(u,t,e[t]);if(vM)for(var t of vM(e))MLe.call(e,t)&&Ige(u,t,e[t]);return u},kjt=(u,e)=>{var t={};for(var n in u)LLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&vM)for(var n of vM(u))e.indexOf(n)<0&&MLe.call(u,n)&&(t[n]=u[n]);return t};const yjt={contentPadding:"md",size:"md",radius:"xl",orientation:"horizontal",iconPosition:"left",allowNextStepsSelect:!0},Pf=C.forwardRef((u,e)=>{var t,n,i;const r=Je("Stepper",yjt,u),{className:a,children:o,onStepClick:s,active:l,icon:c,completedIcon:d,progressIcon:h,color:E,iconSize:g,contentPadding:m,size:f,radius:p,orientation:D,breakpoint:x,iconPosition:b,allowNextStepsSelect:k,classNames:_,styles:y,unstyled:S,variant:B}=r,L=kjt(r,["className","children","onStepClick","active","icon","completedIcon","progressIcon","color","iconSize","contentPadding","size","radius","orientation","breakpoint","iconPosition","allowNextStepsSelect","classNames","styles","unstyled","variant"]),{classes:T,cx:N}=vjt({contentPadding:m,color:E,orientation:D,iconPosition:b,iconSize:g,breakpoint:x},{name:"Stepper",classNames:_,styles:y,unstyled:S,variant:B,size:f}),F=C.Children.toArray(o),A=F.filter(H=>H.type!==xM),z=F.find(H=>H.type===xM),P=A.reduce((H,q,J)=>{const Q=l===J?"stepProgress":l>J?"stepCompleted":"stepInactive",Y=(()=>typeof s!="function"?!1:typeof q.props.allowStepSelect=="boolean"?q.props.allowStepSelect:Q==="stepCompleted"||k)();return H.push(C.cloneElement(q,{__staticSelector:"Stepper",icon:q.props.icon||c||J+1,key:J,step:J,variant:B,state:Q,onClick:()=>Y&&s(J),allowStepClick:Y,completedIcon:q.props.completedIcon||d,progressIcon:q.props.progressIcon||h,color:q.props.color||E,iconSize:g,size:f,radius:p,classNames:_,styles:y,iconPosition:q.props.iconPosition||b,orientation:D,unstyled:S})),D==="horizontal"&&J!==A.length-1&&H.push(M.createElement("div",{className:N(T.separator,{[T.separatorActive]:JA.length-1?j:I;return M.createElement(pt,bjt({className:N(T.root,a),ref:e},L),M.createElement("div",{className:T.steps},P),V&&M.createElement("div",{className:T.content},V))});Pf.Step=zLe;Pf.Completed=xM;Pf.displayName="@mantine/core/Stepper";const TLe=C.createContext(null),Fjt=TLe.Provider,Ajt=()=>C.useContext(TLe);var _jt=Object.defineProperty,CM=Object.getOwnPropertySymbols,PLe=Object.prototype.hasOwnProperty,NLe=Object.prototype.propertyIsEnumerable,Oge=(u,e,t)=>e in u?_jt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jge=(u,e)=>{for(var t in e||(e={}))PLe.call(e,t)&&Oge(u,t,e[t]);if(CM)for(var t of CM(e))NLe.call(e,t)&&Oge(u,t,e[t]);return u},Sjt=(u,e)=>{var t={};for(var n in u)PLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&CM)for(var n of CM(u))e.indexOf(n)<0&&NLe.call(u,n)&&(t[n]=u[n]);return t};const Bjt={size:"sm"},RLe=C.forwardRef((u,e)=>{const t=Je("SwitchGroup",Bjt,u),{children:n,value:i,defaultValue:r,onChange:a,size:o,wrapperProps:s}=t,l=Sjt(t,["children","value","defaultValue","onChange","size","wrapperProps"]),[c,d]=cs({value:i,defaultValue:r,finalValue:[],onChange:a}),h=E=>{const g=E.currentTarget.value;d(c.includes(g)?c.filter(m=>m!==g):[...c,g])};return M.createElement(Fjt,{value:{value:c,onChange:h,size:o}},M.createElement(Ma.Wrapper,jge(jge({labelElement:"div",size:o,__staticSelector:"SwitchGroup",ref:e},s),l),n))});RLe.displayName="@mantine/core/SwitchGroup";var wjt=Object.defineProperty,zjt=Object.defineProperties,Ljt=Object.getOwnPropertyDescriptors,Vge=Object.getOwnPropertySymbols,Mjt=Object.prototype.hasOwnProperty,Tjt=Object.prototype.propertyIsEnumerable,Hge=(u,e,t)=>e in u?wjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Pjt=(u,e)=>{for(var t in e||(e={}))Mjt.call(e,t)&&Hge(u,t,e[t]);if(Vge)for(var t of Vge(e))Tjt.call(e,t)&&Hge(u,t,e[t]);return u},Njt=(u,e)=>zjt(u,Ljt(e));const Rjt={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)},Ijt={xs:W(32),sm:W(38),md:W(46),lg:W(56),xl:W(72)},Ojt={xs:W(12),sm:W(14),md:W(18),lg:W(22),xl:W(28)},jjt={xs:W(5),sm:W(6),md:W(7),lg:W(9),xl:W(11)},Vjt={xs:W(4),sm:W(5),md:W(6),lg:W(8),xl:W(10)};var Hjt=at((u,{radius:e,color:t,labelPosition:n,error:i},{size:r})=>{const a=Fe({size:r,sizes:Ojt}),o=Fe({size:e,sizes:u.radius}),s=u.fn.variant({variant:"filled",color:t}),l=Fe({size:r,sizes:Ijt}),c=W(r==="xs"?1:2),d=u.fn.variant({variant:"filled",color:"red"}).background;return{root:{position:"relative"},input:{height:0,width:0,overflow:"hidden",whiteSpace:"nowrap",padding:0,WebkitClipPath:"inset(50%)",clipPath:"inset(50%)",position:"absolute"},track:Njt(Pjt({},u.fn.focusStyles("input:focus + &")),{cursor:u.cursorType,overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:o,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[2],border:`${W(1)} solid ${i?d:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]}`,height:Fe({size:r,sizes:Rjt}),minWidth:l,margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:u.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:Fe({size:r,sizes:jjt}),fontWeight:600,order:n==="left"?2:1,userSelect:"none",zIndex:0,lineHeight:0,color:u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[6],transition:`color 150ms ${u.transitionTimingFunction}`,"input:checked + &":{backgroundColor:s.background,borderColor:s.background,color:u.white,transition:`color 150ms ${u.transitionTimingFunction}`},"input:disabled + &":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],cursor:"not-allowed",pointerEvents:"none"}}),thumb:{position:"absolute",zIndex:1,borderRadius:o,boxSizing:"border-box",display:"flex",backgroundColor:u.white,height:a,width:a,border:`${W(1)} solid ${u.colorScheme==="dark"?u.white:u.colors.gray[3]}`,left:c,transition:`left 150ms ${u.transitionTimingFunction}`,"& > *":{margin:"auto"},"@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":""},"input:checked + * > &":{left:`calc(100% - ${a} - ${c})`,borderColor:u.white},"input:disabled + * > &":{borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],backgroundColor:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[0]}},trackLabel:{height:"100%",display:"grid",placeContent:"center",minWidth:`calc(${l} - ${a})`,paddingInline:Fe({size:r,sizes:Vjt}),marginLeft:`calc(${a} + ${c})`,transition:`margin 150ms ${u.transitionTimingFunction}`,"input:checked + * > &":{marginLeft:0,marginRight:`calc(${a} + ${c})`}}}});const $jt=Hjt;var Kjt=Object.defineProperty,Wjt=Object.defineProperties,Gjt=Object.getOwnPropertyDescriptors,bM=Object.getOwnPropertySymbols,ILe=Object.prototype.hasOwnProperty,OLe=Object.prototype.propertyIsEnumerable,$ge=(u,e,t)=>e in u?Kjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,FH=(u,e)=>{for(var t in e||(e={}))ILe.call(e,t)&&$ge(u,t,e[t]);if(bM)for(var t of bM(e))OLe.call(e,t)&&$ge(u,t,e[t]);return u},Ujt=(u,e)=>Wjt(u,Gjt(e)),qjt=(u,e)=>{var t={};for(var n in u)ILe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&bM)for(var n of bM(u))e.indexOf(n)<0&&OLe.call(u,n)&&(t[n]=u[n]);return t};const Jjt={offLabel:"",onLabel:"",size:"sm",radius:"xl",error:!1},kM=C.forwardRef((u,e)=>{var t;const n=Je("Switch",Jjt,u),{className:i,color:r,label:a,offLabel:o,onLabel:s,id:l,style:c,size:d,radius:h,wrapperProps:E,children:g,unstyled:m,styles:f,classNames:p,thumbIcon:D,sx:x,checked:b,defaultChecked:k,onChange:_,labelPosition:y,description:S,error:B,disabled:L,variant:T}=n,N=qjt(n,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","thumbIcon","sx","checked","defaultChecked","onChange","labelPosition","description","error","disabled","variant"]),F=Ajt(),A=(F==null?void 0:F.size)||d,{classes:z,cx:P}=$jt({color:r,radius:h,labelPosition:y,error:!!B},{name:"Switch",classNames:p,styles:f,unstyled:m,size:A,variant:T}),{systemStyles:I,rest:j}=C4(N),V=Kl(l),H=F?{checked:F.value.includes(j.value),onChange:F.onChange}:{},[q,J]=cs({value:(t=H.checked)!=null?t:b,defaultValue:k,finalValue:!1});return M.createElement(QR,FH(FH({className:P(i,z.root),sx:x,style:c,id:V,size:(F==null?void 0:F.size)||d,labelPosition:y,label:a,description:S,error:B,disabled:L,__staticSelector:"Switch",classNames:p,styles:f,unstyled:m,"data-checked":H.checked||void 0,variant:T},I),E),M.createElement("input",Ujt(FH({},j),{disabled:L,checked:q,onChange:Q=>{F?H.onChange(Q):_==null||_(Q),J(Q.currentTarget.checked)},id:V,ref:e,type:"checkbox",className:z.input})),M.createElement("label",{htmlFor:V,className:z.track},M.createElement("div",{className:z.thumb},D),M.createElement("div",{className:z.trackLabel},q?s:o)))});kM.displayName="@mantine/core/Switch";kM.Group=RLe;const jJ={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[Zjt,Lue]=P1(jJ.context);var Yjt=Object.defineProperty,Kge=Object.getOwnPropertySymbols,Qjt=Object.prototype.hasOwnProperty,Xjt=Object.prototype.propertyIsEnumerable,Wge=(u,e,t)=>e in u?Yjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,eVt=(u,e)=>{for(var t in e||(e={}))Qjt.call(e,t)&&Wge(u,t,e[t]);if(Kge)for(var t of Kge(e))Xjt.call(e,t)&&Wge(u,t,e[t]);return u};function tVt({orientation:u,inverted:e,placement:t},n,i){const r=u==="vertical";return i==="default"?{[r?t==="left"?"borderRight":"borderLeft":e?"borderTop":"borderBottom"]:`${W(2)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:i==="outline"?{[r?t==="left"?"borderRight":"borderLeft":e?"borderTop":"borderBottom"]:`${W(1)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:i==="pills"?{gap:`calc(${n.spacing.sm} / 2)`}:{}}var uVt=at((u,e,{variant:t})=>{const n=e.orientation==="vertical";return{tabsList:eVt({display:"flex",flexWrap:"wrap",flexDirection:n?"column":"row",justifyContent:cwe[e.position],'& [role="tab"]':{flex:e.grow?1:void 0}},tVt(e,u,t))}});const nVt=uVt;var iVt=Object.defineProperty,rVt=Object.defineProperties,aVt=Object.getOwnPropertyDescriptors,yM=Object.getOwnPropertySymbols,jLe=Object.prototype.hasOwnProperty,VLe=Object.prototype.propertyIsEnumerable,Gge=(u,e,t)=>e in u?iVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,oVt=(u,e)=>{for(var t in e||(e={}))jLe.call(e,t)&&Gge(u,t,e[t]);if(yM)for(var t of yM(e))VLe.call(e,t)&&Gge(u,t,e[t]);return u},sVt=(u,e)=>rVt(u,aVt(e)),lVt=(u,e)=>{var t={};for(var n in u)jLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&yM)for(var n of yM(u))e.indexOf(n)<0&&VLe.call(u,n)&&(t[n]=u[n]);return t};const cVt={grow:!1,position:"left"},HLe=C.forwardRef((u,e)=>{const t=Je("TabsList",cVt,u),{children:n,className:i,grow:r,position:a}=t,o=lVt(t,["children","className","grow","position"]),{orientation:s,variant:l,color:c,radius:d,inverted:h,placement:E,classNames:g,styles:m,unstyled:f}=Lue(),{classes:p,cx:D}=nVt({orientation:s,grow:r,color:c,position:a,radius:d,inverted:h,placement:E},{name:"Tabs",unstyled:f,classNames:g,styles:m,variant:l});return M.createElement(pt,sVt(oVt({},o),{className:D(p.tabsList,i),ref:e,role:"tablist","aria-orientation":s}),n)});HLe.displayName="@mantine/core/TabsList";var dVt=at((u,{orientation:e})=>({panel:{flex:e==="vertical"?1:void 0}}));const hVt=dVt;var EVt=Object.defineProperty,gVt=Object.defineProperties,mVt=Object.getOwnPropertyDescriptors,FM=Object.getOwnPropertySymbols,$Le=Object.prototype.hasOwnProperty,KLe=Object.prototype.propertyIsEnumerable,Uge=(u,e,t)=>e in u?EVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,fVt=(u,e)=>{for(var t in e||(e={}))$Le.call(e,t)&&Uge(u,t,e[t]);if(FM)for(var t of FM(e))KLe.call(e,t)&&Uge(u,t,e[t]);return u},pVt=(u,e)=>gVt(u,mVt(e)),DVt=(u,e)=>{var t={};for(var n in u)$Le.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&FM)for(var n of FM(u))e.indexOf(n)<0&&KLe.call(u,n)&&(t[n]=u[n]);return t};const xVt={},WLe=C.forwardRef((u,e)=>{const t=Je("TabsPanel",xVt,u),{value:n,children:i,sx:r,className:a}=t,o=DVt(t,["value","children","sx","className"]),s=Lue(),{classes:l,cx:c}=hVt({orientation:s.orientation,color:s.color,radius:s.radius,inverted:s.inverted,placement:s.placement},{name:"Tabs",unstyled:s.unstyled,classNames:s.classNames,styles:s.styles,variant:s.variant}),d=s.getPanelId(n),h=s.value===n,E=s.keepMounted||h?i:null;return C.useEffect(()=>(s.setMountedPanelIds(g=>[...g,d]),s.setMountedPanelIds(g=>g.filter(m=>m!==d))),[d]),M.createElement(pt,pVt(fVt({},o),{ref:e,sx:[{display:h?void 0:"none"},...BR(r)],className:c(l.panel,a),role:"tabpanel",id:d,"aria-labelledby":s.getTabId(n)}),E)});WLe.displayName="@mantine/core/TabsPanel";var vVt=Object.defineProperty,CVt=Object.defineProperties,bVt=Object.getOwnPropertyDescriptors,qge=Object.getOwnPropertySymbols,kVt=Object.prototype.hasOwnProperty,yVt=Object.prototype.propertyIsEnumerable,Jge=(u,e,t)=>e in u?vVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zx=(u,e)=>{for(var t in e||(e={}))kVt.call(e,t)&&Jge(u,t,e[t]);if(qge)for(var t of qge(e))yVt.call(e,t)&&Jge(u,t,e[t]);return u},Zge=(u,e)=>CVt(u,bVt(e));function FVt(u,{orientation:e,color:t,radius:n,inverted:i,placement:r},a){const o=e==="vertical",s=u.fn.variant({color:t,variant:"filled"}),l=W(u.fn.radius(n)),c=e==="vertical"?r==="left"?`${l} 0 0 ${l}`:` 0 ${l} ${l} 0`:i?`0 0 ${l} ${l}`:`${l} ${l} 0 0`;return a==="default"?Zge(zx({[o?r==="left"?"borderRight":"borderLeft":i?"borderTop":"borderBottom"]:`${W(2)} solid transparent`,[o?r==="left"?"marginRight":"marginLeft":i?"marginTop":"marginBottom"]:W(-2),borderRadius:c},u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0],borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]})),{"&[data-active]":zx({borderColor:s.background,color:u.colorScheme==="dark"?u.white:u.black},u.fn.hover({borderColor:s.background}))}):a==="outline"?{borderRadius:c,border:`${W(1)} solid transparent`,[o?r==="left"?"borderRight":"borderLeft":i?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3],"&::before":{content:'""',backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,position:"absolute",bottom:o?0:i?"unset":W(-1),top:o?0:i?W(-1):"unset",[o?"width":"height"]:W(1),right:o?r==="left"?W(-1):"unset":0,left:o?r==="left"?"unset":W(-1):0}}}:a==="pills"?Zge(zx({borderRadius:u.fn.radius(n)},u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0]})),{"&[data-active]":zx({backgroundColor:s.background,color:u.white},u.fn.hover({backgroundColor:s.background}))}):{}}var AVt=at((u,e,{variant:t})=>({tabLabel:{},tab:zx({position:"relative",padding:`${u.spacing.xs} ${u.spacing.md}`,paddingLeft:e.withIcon?u.spacing.xs:void 0,paddingRight:e.withRightSection?u.spacing.xs:void 0,fontSize:u.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:e.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":zx({opacity:.5,cursor:"not-allowed"},u.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},FVt(u,e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:W(7)}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:W(7)}}}));const _Vt=AVt;var SVt=Object.defineProperty,BVt=Object.defineProperties,wVt=Object.getOwnPropertyDescriptors,AM=Object.getOwnPropertySymbols,GLe=Object.prototype.hasOwnProperty,ULe=Object.prototype.propertyIsEnumerable,Yge=(u,e,t)=>e in u?SVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zVt=(u,e)=>{for(var t in e||(e={}))GLe.call(e,t)&&Yge(u,t,e[t]);if(AM)for(var t of AM(e))ULe.call(e,t)&&Yge(u,t,e[t]);return u},LVt=(u,e)=>BVt(u,wVt(e)),MVt=(u,e)=>{var t={};for(var n in u)GLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&AM)for(var n of AM(u))e.indexOf(n)<0&&ULe.call(u,n)&&(t[n]=u[n]);return t};const TVt={},qLe=C.forwardRef((u,e)=>{const t=Je("TabsTab",TVt,u),{value:n,children:i,onKeyDown:r,onClick:a,className:o,icon:s,rightSection:l,color:c}=t,d=MVt(t,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),h=Lue(),E=!!s,g=!!l,{theme:m,classes:f,cx:p}=_Vt({withIcon:E||g&&!i,withRightSection:g||E&&!i,orientation:h.orientation,color:c||h.color,radius:h.radius,inverted:h.inverted,placement:h.placement},{name:"Tabs",unstyled:h.unstyled,classNames:h.classNames,styles:h.styles,variant:h.variant}),D=n===h.value,x=h.getPanelId(n),b=h.mountedPanelIds.includes(n)?x:void 0,k=_=>{h.onTabChange(h.allowTabDeactivation&&n===h.value?null:n),a==null||a(_)};return M.createElement(b4,LVt(zVt({},d),{unstyled:h.unstyled,className:p(f.tab,o),"data-active":D||void 0,ref:e,type:"button",role:"tab",id:h.getTabId(n),"aria-selected":D,tabIndex:D||h.value===null?0:-1,"aria-controls":b,onClick:k,onKeyDown:Kte({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:h.activateTabWithKeyboard,loop:h.loop,dir:m.dir,orientation:h.orientation,onKeyDown:r})}),s&&M.createElement("span",{className:f.tabIcon},s),i&&M.createElement("span",{className:f.tabLabel},i),l&&M.createElement("span",{className:f.tabRightSection},l))});qLe.displayName="@mantine/core/Tab";function JLe({defaultValue:u,value:e,onTabChange:t,orientation:n,children:i,loop:r,id:a,activateTabWithKeyboard:o,allowTabDeactivation:s,variant:l,color:c,radius:d,inverted:h,placement:E,keepMounted:g=!0,classNames:m,styles:f,unstyled:p}){const D=Kl(a),[x,b]=C.useState([]),[k,_]=cs({value:e,defaultValue:u,finalValue:null,onChange:t});return M.createElement(Zjt,{value:{placement:E,value:k,orientation:n,id:D,loop:r,activateTabWithKeyboard:o,getTabId:nz(`${D}-tab`,jJ.value),getPanelId:nz(`${D}-panel`,jJ.value),onTabChange:_,setMountedPanelIds:b,mountedPanelIds:x,allowTabDeactivation:s,variant:l,color:c,radius:d,inverted:h,keepMounted:g,classNames:m,styles:f,unstyled:p}},i)}JLe.displayName="@mantine/core/TabsProvider";var PVt=at((u,{orientation:e,placement:t})=>({root:{display:e==="vertical"?"flex":void 0,flexDirection:t==="right"?"row-reverse":"row"}}));const NVt=PVt;var RVt=Object.defineProperty,IVt=Object.defineProperties,OVt=Object.getOwnPropertyDescriptors,_M=Object.getOwnPropertySymbols,ZLe=Object.prototype.hasOwnProperty,YLe=Object.prototype.propertyIsEnumerable,Qge=(u,e,t)=>e in u?RVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jVt=(u,e)=>{for(var t in e||(e={}))ZLe.call(e,t)&&Qge(u,t,e[t]);if(_M)for(var t of _M(e))YLe.call(e,t)&&Qge(u,t,e[t]);return u},VVt=(u,e)=>IVt(u,OVt(e)),HVt=(u,e)=>{var t={};for(var n in u)ZLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&_M)for(var n of _M(u))e.indexOf(n)<0&&YLe.call(u,n)&&(t[n]=u[n]);return t};const $Vt={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},Ci=C.forwardRef((u,e)=>{const t=Je("Tabs",$Vt,u),{defaultValue:n,value:i,orientation:r,loop:a,activateTabWithKeyboard:o,allowTabDeactivation:s,children:l,id:c,onTabChange:d,variant:h,color:E,className:g,unstyled:m,classNames:f,styles:p,radius:D,inverted:x,keepMounted:b,placement:k}=t,_=HVt(t,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:y,cx:S}=NVt({orientation:r,color:E,radius:D,inverted:x,placement:k},{unstyled:m,name:"Tabs",classNames:f,styles:p,variant:h});return M.createElement(JLe,{activateTabWithKeyboard:o,defaultValue:n,orientation:r,onTabChange:d,value:i,id:c,loop:a,allowTabDeactivation:s,color:E,variant:h,radius:D,inverted:x,keepMounted:b,placement:k,classNames:f,styles:p,unstyled:m},M.createElement(pt,VVt(jVt({},_),{className:S(y.root,g),id:c,ref:e}),l))});Ci.List=HLe;Ci.Tab=qLe;Ci.Panel=WLe;Ci.displayName="@mantine/core/Tabs";var KVt=Object.defineProperty,WVt=Object.defineProperties,GVt=Object.getOwnPropertyDescriptors,Xge=Object.getOwnPropertySymbols,UVt=Object.prototype.hasOwnProperty,qVt=Object.prototype.propertyIsEnumerable,eme=(u,e,t)=>e in u?KVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JVt=(u,e)=>{for(var t in e||(e={}))UVt.call(e,t)&&eme(u,t,e[t]);if(Xge)for(var t of Xge(e))qVt.call(e,t)&&eme(u,t,e[t]);return u},ZVt=(u,e)=>WVt(u,GVt(e));function YVt(u,e,t){return typeof u<"u"?u in t.headings.sizes?t.headings.sizes[u].fontSize:W(u):t.headings.sizes[e].fontSize}function QVt(u,e,t){return typeof u<"u"&&u in t.headings.sizes?t.headings.sizes[u].lineHeight:t.headings.sizes[e].lineHeight}var XVt=at((u,{element:e,weight:t,inline:n},{size:i})=>({root:ZVt(JVt({},u.fn.fontStyles()),{fontFamily:u.headings.fontFamily,fontWeight:t||u.headings.sizes[e].fontWeight||u.headings.fontWeight,fontSize:YVt(i,e,u),lineHeight:n?1:QVt(i,e,u),margin:0})}));const eHt=XVt;var tHt=Object.defineProperty,SM=Object.getOwnPropertySymbols,QLe=Object.prototype.hasOwnProperty,XLe=Object.prototype.propertyIsEnumerable,tme=(u,e,t)=>e in u?tHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,uHt=(u,e)=>{for(var t in e||(e={}))QLe.call(e,t)&&tme(u,t,e[t]);if(SM)for(var t of SM(e))XLe.call(e,t)&&tme(u,t,e[t]);return u},nHt=(u,e)=>{var t={};for(var n in u)QLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&SM)for(var n of SM(u))e.indexOf(n)<0&&XLe.call(u,n)&&(t[n]=u[n]);return t};const iHt={order:1},m0=C.forwardRef((u,e)=>{const t=Je("Title",iHt,u),{className:n,order:i,children:r,unstyled:a,size:o,weight:s,inline:l,variant:c}=t,d=nHt(t,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:h,cx:E}=eHt({element:`h${i}`,weight:s,inline:l},{name:"Title",unstyled:a,variant:c,size:o});return[1,2,3,4,5,6].includes(i)?M.createElement(Fu,uHt({variant:c,component:`h${i}`,ref:e,className:E(h.root,n)},d),r):null});m0.displayName="@mantine/core/Title";const Mue=C.createContext(null);Mue.displayName="@mantine/modals/ModalsContext";function rHt(){const u=C.useContext(Mue);if(!u)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return u}var aHt=Object.defineProperty,oHt=Object.defineProperties,sHt=Object.getOwnPropertyDescriptors,ume=Object.getOwnPropertySymbols,lHt=Object.prototype.hasOwnProperty,cHt=Object.prototype.propertyIsEnumerable,nme=(u,e,t)=>e in u?aHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,AH=(u,e)=>{for(var t in e||(e={}))lHt.call(e,t)&&nme(u,t,e[t]);if(ume)for(var t of ume(e))cHt.call(e,t)&&nme(u,t,e[t]);return u},ime=(u,e)=>oHt(u,sHt(e));function dHt({id:u,cancelProps:e,confirmProps:t,labels:n={cancel:"",confirm:""},closeOnConfirm:i=!0,closeOnCancel:r=!0,groupProps:a,onCancel:o,onConfirm:s,children:l}){const{cancel:c,confirm:d}=n,h=rHt(),E=m=>{typeof(e==null?void 0:e.onClick)=="function"&&(e==null||e.onClick(m)),typeof o=="function"&&o(),r&&h.closeModal(u)},g=m=>{typeof(t==null?void 0:t.onClick)=="function"&&(t==null||t.onClick(m)),typeof s=="function"&&s(),i&&h.closeModal(u)};return M.createElement(M.Fragment,null,l&&M.createElement(pt,{mb:"md"},l),M.createElement(_i,AH({position:"right"},a),M.createElement(hl,ime(AH({variant:"default"},e),{onClick:E}),(e==null?void 0:e.children)||c),M.createElement(hl,ime(AH({},t),{onClick:g}),(t==null?void 0:t.children)||d)))}function rme(u,e){var t,n,i,r;e&&u.type==="confirm"&&((n=(t=u.props).onCancel)==null||n.call(t)),(r=(i=u.props).onClose)==null||r.call(i)}function hHt(u,e){switch(e.type){case"OPEN":return{current:e.modal,modals:[...u.modals,e.modal]};case"CLOSE":{const t=u.modals.find(i=>i.id===e.modalId);if(!t)return u;rme(t,e.canceled);const n=u.modals.filter(i=>i.id!==e.modalId);return{current:n[n.length-1]||u.current,modals:n}}case"CLOSE_ALL":return u.modals.length?(u.modals.concat().reverse().forEach(t=>{rme(t,e.canceled)}),{current:u.current,modals:[]}):u;default:return u}}const[EHt,PA]=_7e("mantine-modals"),gHt=PA("openModal"),mHt=PA("closeModal"),fHt=PA("closeAllModals"),pHt=PA("openConfirmModal"),DHt=u=>PA("openContextModal")(u),Tue={open:gHt,close:mHt,closeAll:fHt,openConfirmModal:pHt,openContextModal:DHt};var xHt=Object.defineProperty,vHt=Object.defineProperties,CHt=Object.getOwnPropertyDescriptors,BM=Object.getOwnPropertySymbols,eMe=Object.prototype.hasOwnProperty,tMe=Object.prototype.propertyIsEnumerable,ame=(u,e,t)=>e in u?xHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,d8=(u,e)=>{for(var t in e||(e={}))eMe.call(e,t)&&ame(u,t,e[t]);if(BM)for(var t of BM(e))tMe.call(e,t)&&ame(u,t,e[t]);return u},ome=(u,e)=>vHt(u,CHt(e)),tf=(u,e)=>{var t={};for(var n in u)eMe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&BM)for(var n of BM(u))e.indexOf(n)<0&&tMe.call(u,n)&&(t[n]=u[n]);return t};function bHt(u){if(!u)return{confirmProps:{},modalProps:{}};const e=u,{id:t,children:n,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:s,confirmProps:l,groupProps:c,labels:d}=e,h=tf(e,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:t,children:n,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:s,confirmProps:l,groupProps:c,labels:d},modalProps:d8({id:t},h)}}function kHt({children:u,modalProps:e,labels:t,modals:n}){const[i,r]=C.useReducer(hHt,{modals:[],current:null}),a=C.useRef(i);a.current=i;const o=C.useCallback(f=>{r({type:"CLOSE_ALL",canceled:f})},[a,r]),s=C.useCallback(f=>{var p=f,{modalId:D}=p,x=tf(p,["modalId"]);const b=D||Wh();return r({type:"OPEN",modal:{id:b,type:"content",props:x}}),b},[r]),l=C.useCallback(f=>{var p=f,{modalId:D}=p,x=tf(p,["modalId"]);const b=D||Wh();return r({type:"OPEN",modal:{id:b,type:"confirm",props:x}}),b},[r]),c=C.useCallback((f,p)=>{var D=p,{modalId:x}=D,b=tf(D,["modalId"]);const k=x||Wh();return r({type:"OPEN",modal:{id:k,type:"context",props:b,ctx:f}}),k},[r]),d=C.useCallback((f,p)=>{r({type:"CLOSE",modalId:f,canceled:p})},[a,r]);EHt({openModal:s,openConfirmModal:l,openContextModal:f=>{var p=f,{modal:D}=p,x=tf(p,["modal"]);return c(D,x)},closeModal:d,closeContextModal:d,closeAllModals:o});const h={modals:i.modals,openModal:s,openConfirmModal:l,openContextModal:c,closeModal:d,closeContextModal:d,closeAll:o},E=()=>{const f=a.current.current;switch(f==null?void 0:f.type){case"context":{const p=f.props,{innerProps:D}=p,x=tf(p,["innerProps"]),b=n[f.ctx];return{modalProps:x,content:M.createElement(b,{innerProps:D,context:h,id:f.id})}}case"confirm":{const{modalProps:p,confirmProps:D}=bHt(f.props);return{modalProps:p,content:M.createElement(dHt,ome(d8({},D),{id:f.id,labels:f.props.labels||t}))}}case"content":{const p=f.props,{children:D}=p;return{modalProps:tf(p,["children"]),content:M.createElement(M.Fragment,null,D)}}default:return{modalProps:{},content:null}}},{modalProps:g,content:m}=E();return M.createElement(Mue.Provider,{value:h},M.createElement(ji,ome(d8(d8({zIndex:id("modal")+1},e),g),{opened:i.modals.length>0,onClose:()=>d(i.current.id)}),m),u)}function VJ(u,e){return VJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},VJ(u,e)}function uMe(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,VJ(u,e)}var nMe={exports:{}},yHt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FHt=yHt,AHt=FHt;function iMe(){}function rMe(){}rMe.resetWarningCache=iMe;var _Ht=function(){function u(n,i,r,a,o,s){if(s!==AHt){var l=new 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 l.name="Invariant Violation",l}}u.isRequired=u;function e(){return u}var t={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:e,element:u,elementType:u,instanceOf:e,node:u,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:rMe,resetWarningCache:iMe};return t.PropTypes=t,t};nMe.exports=_Ht();var SHt=nMe.exports;const Vm=Nl(SHt),sme={disabled:!1},wM=M.createContext(null);var vb="unmounted",uf="exited",nf="entering",HD="entered",HJ="exiting",A4=function(u){uMe(e,u);function e(n,i){var r;r=u.call(this,n,i)||this;var a=i,o=a&&!a.isMounting?n.enter:n.appear,s;return r.appearStatus=null,n.in?o?(s=uf,r.appearStatus=nf):s=HD:n.unmountOnExit||n.mountOnEnter?s=vb:s=uf,r.state={status:s},r.nextCallback=null,r}e.getDerivedStateFromProps=function(i,r){var a=i.in;return a&&r.status===vb?{status:uf}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(i){var r=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==nf&&a!==HD&&(r=nf):(a===nf||a===HD)&&(r=HJ)}this.updateStatus(!1,r)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var i=this.props.timeout,r,a,o;return r=a=o=i,i!=null&&typeof i!="number"&&(r=i.exit,a=i.enter,o=i.appear!==void 0?i.appear:a),{exit:r,enter:a,appear:o}},t.updateStatus=function(i,r){i===void 0&&(i=!1),r!==null?(this.cancelNextCallback(),r===nf?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===uf&&this.setState({status:vb})},t.performEnter=function(i){var r=this,a=this.props.enter,o=this.context?this.context.isMounting:i,s=this.props.nodeRef?[o]:[m5.findDOMNode(this),o],l=s[0],c=s[1],d=this.getTimeouts(),h=o?d.appear:d.enter;if(!i&&!a||sme.disabled){this.safeSetState({status:HD},function(){r.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:nf},function(){r.props.onEntering(l,c),r.onTransitionEnd(h,function(){r.safeSetState({status:HD},function(){r.props.onEntered(l,c)})})})},t.performExit=function(){var i=this,r=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:m5.findDOMNode(this);if(!r||sme.disabled){this.safeSetState({status:uf},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:HJ},function(){i.props.onExiting(o),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:uf},function(){i.props.onExited(o)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(i,r){r=this.setNextCallback(r),this.setState(i,r)},t.setNextCallback=function(i){var r=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,r.nextCallback=null,i(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(i,r){this.setNextCallback(r);var a=this.props.nodeRef?this.props.nodeRef.current:m5.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},t.render=function(){var i=this.state.status;if(i===vb)return null;var r=this.props,a=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var o=zwe(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(wM.Provider,{value:null},typeof a=="function"?a(i,o):M.cloneElement(M.Children.only(a),o))},e}(M.Component);A4.contextType=wM;A4.propTypes={};function AD(){}A4.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:AD,onEntering:AD,onEntered:AD,onExit:AD,onExiting:AD,onExited:AD};A4.UNMOUNTED=vb;A4.EXITED=uf;A4.ENTERING=nf;A4.ENTERED=HD;A4.EXITING=HJ;const BHt=A4;function wHt(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function Pue(u,e){var t=function(r){return e&&C.isValidElement(r)?e(r):r},n=Object.create(null);return u&&C.Children.map(u,function(i){return i}).forEach(function(i){n[i.key]=t(i)}),n}function zHt(u,e){u=u||{},e=e||{};function t(c){return c in e?e[c]:u[c]}var n=Object.create(null),i=[];for(var r in u)r in e?i.length&&(n[r]=i,i=[]):i.push(r);var a,o={};for(var s in e){if(n[s])for(a=0;ae in u?KHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dme=(u,e)=>{for(var t in e||(e={}))WHt.call(e,t)&&cme(u,t,e[t]);if(lme)for(var t of lme(e))GHt.call(e,t)&&cme(u,t,e[t]);return u};const hme={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},UHt={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function qHt({state:u,maxHeight:e,positioning:t,transitionDuration:n}){const[i,r]=t,a=r==="center"?`${i}-center`:r,o={opacity:0,maxHeight:e,transform:hme[a],transitionDuration:`${n}ms, ${n}ms, ${n}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},s={opacity:1,transform:UHt[a]},l={opacity:0,maxHeight:0,transform:hme[a]},c={entering:s,entered:s,exiting:l,exited:l};return dme(dme({},o),c[u])}function JHt(u,e){return typeof e=="number"?e:e===!1||u===!1?!1:u}var ZHt=Object.defineProperty,YHt=Object.defineProperties,QHt=Object.getOwnPropertyDescriptors,zM=Object.getOwnPropertySymbols,aMe=Object.prototype.hasOwnProperty,oMe=Object.prototype.propertyIsEnumerable,Eme=(u,e,t)=>e in u?ZHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gme=(u,e)=>{for(var t in e||(e={}))aMe.call(e,t)&&Eme(u,t,e[t]);if(zM)for(var t of zM(e))oMe.call(e,t)&&Eme(u,t,e[t]);return u},XHt=(u,e)=>YHt(u,QHt(e)),mme=(u,e)=>{var t={};for(var n in u)aMe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&zM)for(var n of zM(u))e.indexOf(n)<0&&oMe.call(u,n)&&(t[n]=u[n]);return t};function sMe(u){var e=u,{notification:t,autoClose:n,onHide:i,innerRef:r}=e,a=mme(e,["notification","autoClose","onHide","innerRef"]);const o=t,{autoClose:s,message:l}=o,c=mme(o,["autoClose","message"]),d=JHt(n,s),h=C.useRef(),E=()=>{i(t.id),window.clearTimeout(h.current)},g=()=>{clearTimeout(h.current)},m=()=>{typeof d=="number"&&(h.current=window.setTimeout(E,d))};return C.useEffect(()=>{typeof t.onOpen=="function"&&t.onOpen(t)},[]),C.useEffect(()=>(m(),g),[n,t.autoClose]),M.createElement(xze,XHt(gme(gme({},c),a),{onClose:E,onMouseEnter:g,onMouseLeave:m,ref:r}),l)}sMe.displayName="@mantine/notifications/NotificationContainer";var e$t=at((u,{zIndex:e})=>({notifications:{width:`calc(100% - ${u.spacing.md} * 2)`,boxSizing:"border-box",position:"fixed",zIndex:e},notification:{"&:not(:first-of-type)":{marginTop:u.spacing.sm}}}));const t$t=e$t;var u$t=Object.defineProperty,n$t=Object.defineProperties,i$t=Object.getOwnPropertyDescriptors,fme=Object.getOwnPropertySymbols,r$t=Object.prototype.hasOwnProperty,a$t=Object.prototype.propertyIsEnumerable,pme=(u,e,t)=>e in u?u$t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,o$t=(u,e)=>{for(var t in e||(e={}))r$t.call(e,t)&&pme(u,t,e[t]);if(fme)for(var t of fme(e))a$t.call(e,t)&&pme(u,t,e[t]);return u},s$t=(u,e)=>n$t(u,i$t(e));function l$t({limit:u}){const{state:e,queue:t,update:n,cleanQueue:i}=Z2t({initialValues:[],limit:u});return{notifications:e,queue:t,showNotification:l=>{const c=l.id||Wh();return n(d=>l.id&&d.some(h=>h.id===l.id)?d:[...d,s$t(o$t({},l),{id:c})]),c},updateNotification:l=>n(c=>{const d=c.findIndex(E=>E.id===l.id);if(d===-1)return c;const h=[...c];return h[d]=l,h}),hideNotification:l=>n(c=>c.filter(d=>d.id===l?(typeof d.onClose=="function"&&d.onClose(d),!1):!0)),cleanQueue:i,clean:()=>n(()=>[])}}var c$t=Object.defineProperty,LM=Object.getOwnPropertySymbols,lMe=Object.prototype.hasOwnProperty,cMe=Object.prototype.propertyIsEnumerable,Dme=(u,e,t)=>e in u?c$t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,_H=(u,e)=>{for(var t in e||(e={}))lMe.call(e,t)&&Dme(u,t,e[t]);if(LM)for(var t of LM(e))cMe.call(e,t)&&Dme(u,t,e[t]);return u},d$t=(u,e)=>{var t={};for(var n in u)lMe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&LM)for(var n of LM(u))e.indexOf(n)<0&&cMe.call(u,n)&&(t[n]=u[n]);return t};const h$t=["top-left","top-right","top-center","bottom-left","bottom-right","bottom-center"],$p=u=>{var e=u,{className:t,position:n="bottom-right",autoClose:i=4e3,transitionDuration:r=250,containerWidth:a=W(440),notificationMaxHeight:o=W(200),limit:s=5,zIndex:l=id("overlay"),style:c,children:d,target:h}=e,E=d$t(e,["className","position","autoClose","transitionDuration","containerWidth","notificationMaxHeight","limit","zIndex","style","children","target"]);const g=W2t(),m=C.useRef({}),f=C.useRef(0),{notifications:p,showNotification:D,updateNotification:x,hideNotification:b,clean:k,cleanQueue:_}=l$t({limit:s}),{classes:y,cx:S,theme:B}=t$t({zIndex:l}),L=AA(),N=(B.respectReducedMotion?L:!1)?1:r,F=(h$t.includes(n)?n:"bottom-right").split("-");Lo(()=>{p.length>f.current&&setTimeout(()=>g(),0),f.current=p.length},[p]),RHt({show:D,hide:b,update:x,clean:k,cleanQueue:_});const A=p.map(z=>M.createElement(BHt,{key:z.id,timeout:N,onEnter:()=>m.current[z.id].offsetHeight,nodeRef:{current:m.current[z.id]}},P=>M.createElement(sMe,{innerRef:I=>{m.current[z.id]=I},notification:z,onHide:b,className:y.notification,autoClose:i,sx:[_H({},qHt({state:P,positioning:F,transitionDuration:N,maxHeight:o})),...Array.isArray(z.sx)?z.sx:[z.sx]]})));return M.createElement(iue,{target:h},M.createElement(pt,_H({className:S(y.notifications,t),style:c,sx:_H({maxWidth:a},$Ht(F,B.spacing.md))},E),M.createElement(NHt,null,A)))};$p.displayName="@mantine/notifications/Notifications";$p.show=Yd.show;$p.hide=Yd.hide;$p.update=Yd.update;$p.clean=Yd.clean;$p.cleanQueue=Yd.cleanQueue;let Ko=[],Rue=(u,e)=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},l:e||0,lc:0,listen(i,r){return n.lc=t.push(i,r||n.l)/2,()=>{let a=t.indexOf(i);~a&&(t.splice(a,2),n.lc--,n.lc||n.off())}},notify(i){let r=!Ko.length;for(let a=0;a(u.events=u.events||{},u.events[t+_9]||(u.events[t+_9]=n(i=>{u.events[t].reduceRight((r,a)=>(a(r),r),{shared:{},...i})})),u.events[t]=u.events[t]||[],u.events[t].push(e),()=>{let i=u.events[t],r=i.indexOf(e);i.splice(r,1),i.length||(delete u.events[t],u.events[t+_9](),delete u.events[t+_9])}),m$t=1e3,dMe=(u,e)=>g$t(u,n=>{let i=e(n);i&&u.events[A9].push(i)},E$t,n=>{let i=u.listen;u.listen=(...a)=>(!u.lc&&!u.active&&(u.active=!0,n()),i(...a));let r=u.off;return u.events[A9]=[],u.off=()=>{r(),setTimeout(()=>{if(u.active&&!u.lc){u.active=!1;for(let a of u.events[A9])a();u.events[A9]=[]}},m$t)},()=>{u.listen=i,u.off=r}});function f$t(u,e,t){let n=new Set([...e,void 0]);return u.listen((i,r)=>{n.has(r)&&t(i,r)})}let hMe=(u={})=>{let e=Rue(u);return e.setKey=function(t,n){typeof n>"u"?t in e.value&&(e.value={...e.value},delete e.value[t],e.notify(t)):e.value[t]!==n&&(e.value={...e.value,[t]:n},e.notify(t))},e};function z0(u,e={}){let t=C.useCallback(i=>e.keys?f$t(u,e.keys,i):u.listen(i),[e.keys,u]),n=u.get.bind(u);return C.useSyncExternalStore(t,n,n)}class vC{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ly=typeof window>"u"||"Deno"in window;function Y0(){}function p$t(u,e){return typeof u=="function"?u(e):u}function $J(u){return typeof u=="number"&&u>=0&&u!==1/0}function EMe(u,e){return Math.max(u+(e||0)-Date.now(),0)}function Cb(u,e,t){return RA(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function D$t(u,e,t){return RA(u)?typeof e=="function"?{...t,mutationKey:u,mutationFn:e}:{...e,mutationKey:u}:typeof u=="function"?{...e,mutationFn:u}:{...u}}function uE(u,e,t){return RA(u)?[{...e,queryKey:u},t]:[u||{},e]}function xme(u,e){const{type:t="all",exact:n,fetchStatus:i,predicate:r,queryKey:a,stale:o}=u;if(RA(a)){if(n){if(e.queryHash!==Iue(a,e.options))return!1}else if(!MM(e.queryKey,a))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof i<"u"&&i!==e.state.fetchStatus||r&&!r(e))}function vme(u,e){const{exact:t,fetching:n,predicate:i,mutationKey:r}=u;if(RA(r)){if(!e.options.mutationKey)return!1;if(t){if(Rf(e.options.mutationKey)!==Rf(r))return!1}else if(!MM(e.options.mutationKey,r))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||i&&!i(e))}function Iue(u,e){return((e==null?void 0:e.queryKeyHashFn)||Rf)(u)}function Rf(u){return JSON.stringify(u,(e,t)=>KJ(t)?Object.keys(t).sort().reduce((n,i)=>(n[i]=t[i],n),{}):t)}function MM(u,e){return gMe(u,e)}function gMe(u,e){return u===e?!0:typeof u!=typeof e?!1:u&&e&&typeof u=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!gMe(u[t],e[t])):!1}function mMe(u,e){if(u===e)return u;const t=Cme(u)&&Cme(e);if(t||KJ(u)&&KJ(e)){const n=t?u.length:Object.keys(u).length,i=t?e:Object.keys(e),r=i.length,a=t?[]:{};let o=0;for(let s=0;s"u")return!0;const t=e.prototype;return!(!bme(t)||!t.hasOwnProperty("isPrototypeOf"))}function bme(u){return Object.prototype.toString.call(u)==="[object Object]"}function RA(u){return Array.isArray(u)}function fMe(u){return new Promise(e=>{setTimeout(e,u)})}function kme(u){fMe(0).then(u)}function x$t(){if(typeof AbortController=="function")return new AbortController}function WJ(u,e,t){return t.isDataEqual!=null&&t.isDataEqual(u,e)?u:typeof t.structuralSharing=="function"?t.structuralSharing(u,e):t.structuralSharing!==!1?mMe(u,e):e}class v$t extends vC{constructor(){super(),this.setup=e=>{if(!Ly&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const PM=new v$t,yme=["online","offline"];class C$t extends vC{constructor(){super(),this.setup=e=>{if(!Ly&&window.addEventListener){const t=()=>e();return yme.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{yme.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const NM=new C$t;function b$t(u){return Math.min(1e3*2**u,3e4)}function iI(u){return(u??"online")==="online"?NM.isOnline():!0}class pMe{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function h8(u){return u instanceof pMe}function DMe(u){let e=!1,t=0,n=!1,i,r,a;const o=new Promise((f,p)=>{r=f,a=p}),s=f=>{n||(E(new pMe(f)),u.abort==null||u.abort())},l=()=>{e=!0},c=()=>{e=!1},d=()=>!PM.isFocused()||u.networkMode!=="always"&&!NM.isOnline(),h=f=>{n||(n=!0,u.onSuccess==null||u.onSuccess(f),i==null||i(),r(f))},E=f=>{n||(n=!0,u.onError==null||u.onError(f),i==null||i(),a(f))},g=()=>new Promise(f=>{i=p=>{const D=n||!d();return D&&f(p),D},u.onPause==null||u.onPause()}).then(()=>{i=void 0,n||u.onContinue==null||u.onContinue()}),m=()=>{if(n)return;let f;try{f=u.fn()}catch(p){f=Promise.reject(p)}Promise.resolve(f).then(h).catch(p=>{var D,x;if(n)return;const b=(D=u.retry)!=null?D:3,k=(x=u.retryDelay)!=null?x:b$t,_=typeof k=="function"?k(t,p):k,y=b===!0||typeof b=="number"&&t{if(d())return g()}).then(()=>{e?E(p):m()})})};return iI(u.networkMode)?m():g().then(m),{promise:o,cancel:s,continue:()=>(i==null?void 0:i())?o:Promise.resolve(),cancelRetry:l,continueRetry:c}}const Oue=console;function k$t(){let u=[],e=0,t=c=>{c()},n=c=>{c()};const i=c=>{let d;e++;try{d=c()}finally{e--,e||o()}return d},r=c=>{e?u.push(c):kme(()=>{t(c)})},a=c=>(...d)=>{r(()=>{c(...d)})},o=()=>{const c=u;u=[],c.length&&kme(()=>{n(()=>{c.forEach(d=>{t(d)})})})};return{batch:i,batchCalls:a,schedule:r,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{n=c}}}const hr=k$t();class xMe{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$J(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Ly?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class y$t extends xMe{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Oue,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||F$t(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=WJ(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(Y0).catch(Y0):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!EMe(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return(r=this.retryer)==null||r.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const E=this.observers.find(g=>g.options.queryFn);E&&this.setOptions(E.options)}Array.isArray(this.options.queryKey);const a=x$t(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(s(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=E=>{if(h8(E)&&E.silent||this.dispatch({type:"error",error:E}),!h8(E)){var g,m,f,p;(g=(m=this.cache.config).onError)==null||g.call(m,E,this),(f=(p=this.cache.config).onSettled)==null||f.call(p,this.state.data,E,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=DMe({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:E=>{var g,m,f,p;if(typeof E>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(E),(g=(m=this.cache.config).onSuccess)==null||g.call(m,E,this),(f=(p=this.cache.config).onSettled)==null||f.call(p,E,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(E,g)=>{this.dispatch({type:"failed",failureCount:E,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var i,r;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:iI(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(r=e.dataUpdatedAt)!=null?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return h8(a)&&a.revert&&this.revertState?{...this.revertState}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function F$t(u){const e=typeof u.initialData=="function"?u.initialData():u.initialData,t=typeof e<"u",n=t?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class A$t extends vC{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;const r=t.queryKey,a=(i=t.queryHash)!=null?i:Iue(r,t);let o=this.get(a);return o||(o=new y$t({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){hr.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=uE(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>xme(n,i))}findAll(e,t){const[n]=uE(e,t);return Object.keys(n).length>0?this.queries.filter(i=>xme(n,i)):this.queries}notify(e){hr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){hr.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){hr.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class _$t extends xMe{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Oue,this.observers=[],this.state=e.state||vMe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var y;return this.retryer=DMe({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(S,B)=>{this.dispatch({type:"failed",failureCount:S,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(y=this.options.retry)!=null?y:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,i,r,a,o,s,l,c;if(!t){var d,h,E,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const S=await((E=(g=this.options).onMutate)==null?void 0:E.call(g,this.state.variables));S!==this.state.context&&this.dispatch({type:"loading",context:S,variables:this.state.variables})}const y=await e();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,y,this.state.variables,this.state.context,this)),await((r=(a=this.options).onSuccess)==null?void 0:r.call(a,y,this.state.variables,this.state.context)),await((o=(s=this.mutationCache.config).onSettled)==null?void 0:o.call(s,y,null,this.state.variables,this.state.context,this)),await((l=(c=this.options).onSettled)==null?void 0:l.call(c,y,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:y}),y}catch(y){try{var m,f,p,D,x,b,k,_;throw await((m=(f=this.mutationCache.config).onError)==null?void 0:m.call(f,y,this.state.variables,this.state.context,this)),await((p=(D=this.options).onError)==null?void 0:p.call(D,y,this.state.variables,this.state.context)),await((x=(b=this.mutationCache.config).onSettled)==null?void 0:x.call(b,void 0,y,this.state.variables,this.state.context,this)),await((k=(_=this.options).onSettled)==null?void 0:k.call(_,void 0,y,this.state.variables,this.state.context)),y}finally{this.dispatch({type:"error",error:y})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!iI(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function vMe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class S$t extends vC{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const i=new _$t({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){hr.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>vme(e,t))}findAll(e){return this.mutations.filter(t=>vme(e,t))}notify(e){hr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return hr.batch(()=>t.reduce((n,i)=>n.then(()=>i.continue().catch(Y0)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function B$t(){return{onFetch:u=>{u.fetchFn=()=>{var e,t,n,i,r,a;const o=(e=u.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(n=u.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,l=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",h=((r=u.state.data)==null?void 0:r.pages)||[],E=((a=u.state.data)==null?void 0:a.pageParams)||[];let g=E,m=!1;const f=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>{var y;if((y=u.signal)!=null&&y.aborted)m=!0;else{var S;(S=u.signal)==null||S.addEventListener("abort",()=>{m=!0})}return u.signal}})},p=u.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+u.options.queryHash+"'")),D=(_,y,S,B)=>(g=B?[y,...g]:[...g,y],B?[S,..._]:[..._,S]),x=(_,y,S,B)=>{if(m)return Promise.reject("Cancelled");if(typeof S>"u"&&!y&&_.length)return Promise.resolve(_);const L={queryKey:u.queryKey,pageParam:S,meta:u.options.meta};f(L);const T=p(L);return Promise.resolve(T).then(F=>D(_,S,F,B))};let b;if(!h.length)b=x([]);else if(c){const _=typeof l<"u",y=_?l:Fme(u.options,h);b=x(h,_,y)}else if(d){const _=typeof l<"u",y=_?l:w$t(u.options,h);b=x(h,_,y,!0)}else{g=[];const _=typeof u.options.getNextPageParam>"u";b=(o&&h[0]?o(h[0],0,h):!0)?x([],_,E[0]):Promise.resolve(D([],E[0],h[0]));for(let S=1;S{if(o&&h[S]?o(h[S],S,h):!0){const T=_?E[S]:Fme(u.options,B);return x(B,_,T)}return Promise.resolve(D(B,E[S],h[S]))})}return b.then(_=>({pages:_,pageParams:g}))}}}}function Fme(u,e){return u.getNextPageParam==null?void 0:u.getNextPageParam(e[e.length-1],e)}function w$t(u,e){return u.getPreviousPageParam==null?void 0:u.getPreviousPageParam(e[0],e)}class z$t{constructor(e={}){this.queryCache=e.queryCache||new A$t,this.mutationCache=e.mutationCache||new S$t,this.logger=e.logger||Oue,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=PM.subscribe(()=>{PM.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=NM.subscribe(()=>{NM.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=uE(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const i=Cb(e,t,n),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.queryCache.find(e),r=i==null?void 0:i.state.data,a=p$t(t,r);if(typeof a>"u")return;const o=Cb(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return hr.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=uE(e,t),i=this.queryCache;hr.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(e,t,n){const[i,r]=uE(e,t,n),a=this.queryCache,o={type:"active",...i};return hr.batch(()=>(a.findAll(i).forEach(s=>{s.reset()}),this.refetchQueries(o,r)))}cancelQueries(e,t,n){const[i,r={}]=uE(e,t,n);typeof r.revert>"u"&&(r.revert=!0);const a=hr.batch(()=>this.queryCache.findAll(i).map(o=>o.cancel(r)));return Promise.all(a).then(Y0).catch(Y0)}invalidateQueries(e,t,n){const[i,r]=uE(e,t,n);return hr.batch(()=>{var a,o;if(this.queryCache.findAll(i).forEach(l=>{l.invalidate()}),i.refetchType==="none")return Promise.resolve();const s={...i,type:(a=(o=i.refetchType)!=null?o:i.type)!=null?a:"active"};return this.refetchQueries(s,r)})}refetchQueries(e,t,n){const[i,r]=uE(e,t,n),a=hr.batch(()=>this.queryCache.findAll(i).filter(s=>!s.isDisabled()).map(s=>{var l;return s.fetch(void 0,{...r,cancelRefetch:(l=r==null?void 0:r.cancelRefetch)!=null?l:!0,meta:{refetchPage:i.refetchPage}})}));let o=Promise.all(a).then(Y0);return r!=null&&r.throwOnError||(o=o.catch(Y0)),o}fetchQuery(e,t,n){const i=Cb(e,t,n),r=this.defaultQueryOptions(i);typeof r.retry>"u"&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Y0).catch(Y0)}fetchInfiniteQuery(e,t,n){const i=Cb(e,t,n);return i.behavior=B$t(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Y0).catch(Y0)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(i=>Rf(e)===Rf(i.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>MM(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(i=>Rf(e)===Rf(i.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>MM(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Iue(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class L$t extends vC{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Ame(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return GJ(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return GJ(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),TM(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&_me(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),r&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return T$t(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Y0)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ly||this.currentResult.isStale||!$J(this.options.staleTime))return;const t=EMe(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Ly||this.options.enabled===!1||!$J(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||PM.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,i=this.options,r=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=e;let{dataUpdatedAt:h,error:E,errorUpdatedAt:g,fetchStatus:m,status:f}=d,p=!1,D=!1,x;if(t._optimisticResults){const S=this.hasListeners(),B=!S&&Ame(e,t),L=S&&_me(e,n,t,i);(B||L)&&(m=iI(e.options.networkMode)?"fetching":"paused",h||(f="loading")),t._optimisticResults==="isRestoring"&&(m="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&f!=="error")x=c.data,h=c.dataUpdatedAt,f=c.status,p=!0;else if(t.select&&typeof d.data<"u")if(r&&d.data===(a==null?void 0:a.data)&&t.select===this.selectFn)x=this.selectResult;else try{this.selectFn=t.select,x=t.select(d.data),x=WJ(r==null?void 0:r.data,x,t),this.selectResult=x,this.selectError=null}catch(S){this.selectError=S}else x=d.data;if(typeof t.placeholderData<"u"&&typeof x>"u"&&f==="loading"){let S;if(r!=null&&r.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))S=r.data;else if(S=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof S<"u")try{S=t.select(S),this.selectError=null}catch(B){this.selectError=B}typeof S<"u"&&(f="success",x=WJ(r==null?void 0:r.data,S,t),D=!0)}this.selectError&&(E=this.selectError,x=this.selectResult,g=Date.now(),f="error");const b=m==="fetching",k=f==="loading",_=f==="error";return{status:f,fetchStatus:m,isLoading:k,isSuccess:f==="success",isError:_,isInitialLoading:k&&b,data:x,dataUpdatedAt:h,error:E,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:_&&d.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:D,isPreviousData:p,isRefetchError:_&&d.dataUpdatedAt!==0,isStale:jue(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,TM(n,t))return;this.currentResult=n;const i={cache:!0},r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const c=l;return this.currentResult[c]!==t[c]&&s.has(c)})};(e==null?void 0:e.listeners)!==!1&&r()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!h8(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){hr.batch(()=>{if(e.onSuccess){var t,n,i,r;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(i=(r=this.options).onSettled)==null||i.call(r,this.currentResult.data,null)}else if(e.onError){var a,o,s,l;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(s=(l=this.options).onSettled)==null||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function M$t(u,e){return e.enabled!==!1&&!u.state.dataUpdatedAt&&!(u.state.status==="error"&&e.retryOnMount===!1)}function Ame(u,e){return M$t(u,e)||u.state.dataUpdatedAt>0&&GJ(u,e,e.refetchOnMount)}function GJ(u,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(u):t;return n==="always"||n!==!1&&jue(u,e)}return!1}function _me(u,e,t,n){return t.enabled!==!1&&(u!==e||n.enabled===!1)&&(!t.suspense||u.state.status!=="error")&&jue(u,t)}function jue(u,e){return u.isStaleByTime(e.staleTime)}function T$t(u,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!TM(u.getCurrentResult(),e)}let P$t=class extends vC{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),TM(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:vMe(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){hr.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,i,r;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(r=this.mutateOptions).onSettled)==null||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,l;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(l=this.mutateOptions).onSettled)==null||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var CMe={exports:{}},bMe={};/** + */var Pa=typeof Symbol=="function"&&Symbol.for,Qte=Pa?Symbol.for("react.element"):60103,Xte=Pa?Symbol.for("react.portal"):60106,MR=Pa?Symbol.for("react.fragment"):60107,TR=Pa?Symbol.for("react.strict_mode"):60108,PR=Pa?Symbol.for("react.profiler"):60114,NR=Pa?Symbol.for("react.provider"):60109,RR=Pa?Symbol.for("react.context"):60110,eue=Pa?Symbol.for("react.async_mode"):60111,IR=Pa?Symbol.for("react.concurrent_mode"):60111,OR=Pa?Symbol.for("react.forward_ref"):60112,jR=Pa?Symbol.for("react.suspense"):60113,vkt=Pa?Symbol.for("react.suspense_list"):60120,VR=Pa?Symbol.for("react.memo"):60115,HR=Pa?Symbol.for("react.lazy"):60116,Ckt=Pa?Symbol.for("react.block"):60121,bkt=Pa?Symbol.for("react.fundamental"):60117,kkt=Pa?Symbol.for("react.responder"):60118,ykt=Pa?Symbol.for("react.scope"):60119;function H0(u){if(typeof u=="object"&&u!==null){var e=u.$$typeof;switch(e){case Qte:switch(u=u.type,u){case eue:case IR:case MR:case PR:case TR:case jR:return u;default:switch(u=u&&u.$$typeof,u){case RR:case OR:case HR:case VR:case NR:return u;default:return e}}case Xte:return e}}}function H7e(u){return H0(u)===IR}ti.AsyncMode=eue;ti.ConcurrentMode=IR;ti.ContextConsumer=RR;ti.ContextProvider=NR;ti.Element=Qte;ti.ForwardRef=OR;ti.Fragment=MR;ti.Lazy=HR;ti.Memo=VR;ti.Portal=Xte;ti.Profiler=PR;ti.StrictMode=TR;ti.Suspense=jR;ti.isAsyncMode=function(u){return H7e(u)||H0(u)===eue};ti.isConcurrentMode=H7e;ti.isContextConsumer=function(u){return H0(u)===RR};ti.isContextProvider=function(u){return H0(u)===NR};ti.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===Qte};ti.isForwardRef=function(u){return H0(u)===OR};ti.isFragment=function(u){return H0(u)===MR};ti.isLazy=function(u){return H0(u)===HR};ti.isMemo=function(u){return H0(u)===VR};ti.isPortal=function(u){return H0(u)===Xte};ti.isProfiler=function(u){return H0(u)===PR};ti.isStrictMode=function(u){return H0(u)===TR};ti.isSuspense=function(u){return H0(u)===jR};ti.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===MR||u===IR||u===PR||u===TR||u===jR||u===vkt||typeof u=="object"&&u!==null&&(u.$$typeof===HR||u.$$typeof===VR||u.$$typeof===NR||u.$$typeof===RR||u.$$typeof===OR||u.$$typeof===bkt||u.$$typeof===kkt||u.$$typeof===ykt||u.$$typeof===Ckt)};ti.typeOf=H0;V7e.exports=ti;var Fkt=V7e.exports,$7e=Fkt,Akt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_kt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K7e={};K7e[$7e.ForwardRef]=Akt;K7e[$7e.Memo]=_kt;var Skt=!0;function Bkt(u,e,t){var n="";return t.split(" ").forEach(function(i){u[i]!==void 0?e.push(u[i]+";"):n+=i+" "}),n}var wkt=function(e,t,n){var i=e.key+"-"+t.name;(n===!1||Skt===!1)&&e.registered[i]===void 0&&(e.registered[i]=t.styles)},W7e=function(e,t,n){wkt(e,t,n);var i=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var r=t;do e.insert(t===r?"."+i:"",r,e.sheet,!0),r=r.next;while(r!==void 0)}};function zkt(u){for(var e=0,t,n=0,i=u.length;i>=4;++n,i-=4)t=u.charCodeAt(n)&255|(u.charCodeAt(++n)&255)<<8|(u.charCodeAt(++n)&255)<<16|(u.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(u.charCodeAt(n+2)&255)<<16;case 2:e^=(u.charCodeAt(n+1)&255)<<8;case 1:e^=u.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Lkt={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,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},Mkt=/[A-Z]|^ms/g,Tkt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G7e=function(e){return e.charCodeAt(1)===45},Bde=function(e){return e!=null&&typeof e!="boolean"},eH=hkt(function(u){return G7e(u)?u:u.replace(Mkt,"-$&").toLowerCase()}),wde=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Tkt,function(n,i,r){return wd={name:i,styles:r,next:wd},i})}return Lkt[e]!==1&&!G7e(e)&&typeof t=="number"&&t!==0?t+"px":t};function Sy(u,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return wd={name:t.name,styles:t.styles,next:wd},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)wd={name:n.name,styles:n.styles,next:wd},n=n.next;var i=t.styles+";";return i}return Pkt(u,e,t)}case"function":{if(u!==void 0){var r=wd,a=t(u);return wd=r,Sy(u,e,a)}break}}if(e==null)return t;var o=e[t];return o!==void 0?o:t}function Pkt(u,e,t){var n="";if(Array.isArray(t))for(var i=0;ie in u?Hkt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Ukt=(u,e)=>{for(var t in e||(e={}))Wkt.call(e,t)&&Tde(u,t,e[t]);if(Mde)for(var t of Mde(e))Gkt.call(e,t)&&Tde(u,t,e[t]);return u},qkt=(u,e)=>$kt(u,Kkt(e));function Jkt({theme:u}){return M.createElement(yA,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:u.colorScheme==="dark"?"dark":"light"},body:qkt(Ukt({},u.fn.fontStyles()),{backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,lineHeight:u.lineHeight,fontSize:u.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function y6(u,e,t,n=W){Object.keys(e).forEach(i=>{u[`--mantine-${t}-${i}`]=n(e[i])})}function Zkt({theme:u}){const e={"--mantine-color-white":u.white,"--mantine-color-black":u.black,"--mantine-transition-timing-function":u.transitionTimingFunction,"--mantine-line-height":`${u.lineHeight}`,"--mantine-font-family":u.fontFamily,"--mantine-font-family-monospace":u.fontFamilyMonospace,"--mantine-font-family-headings":u.headings.fontFamily,"--mantine-heading-font-weight":`${u.headings.fontWeight}`};y6(e,u.shadows,"shadow"),y6(e,u.fontSizes,"font-size"),y6(e,u.radius,"radius"),y6(e,u.spacing,"spacing"),y6(e,u.breakpoints,"breakpoints",yl),Object.keys(u.colors).forEach(n=>{u.colors[n].forEach((i,r)=>{e[`--mantine-color-${n}-${r}`]=i})});const t=u.headings.sizes;return Object.keys(t).forEach(n=>{e[`--mantine-${n}-font-size`]=t[n].fontSize,e[`--mantine-${n}-line-height`]=`${t[n].lineHeight}`}),M.createElement(yA,{styles:{":root":e}})}var Ykt=Object.defineProperty,Qkt=Object.defineProperties,Xkt=Object.getOwnPropertyDescriptors,Pde=Object.getOwnPropertySymbols,e2t=Object.prototype.hasOwnProperty,t2t=Object.prototype.propertyIsEnumerable,Nde=(u,e,t)=>e in u?Ykt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gd=(u,e)=>{for(var t in e||(e={}))e2t.call(e,t)&&Nde(u,t,e[t]);if(Pde)for(var t of Pde(e))t2t.call(e,t)&&Nde(u,t,e[t]);return u},tH=(u,e)=>Qkt(u,Xkt(e));function u2t(u,e){var t;if(!e)return u;const n=Object.keys(u).reduce((i,r)=>{if(r==="headings"&&e.headings){const a=e.headings.sizes?Object.keys(u.headings.sizes).reduce((o,s)=>(o[s]=gd(gd({},u.headings.sizes[s]),e.headings.sizes[s]),o),{}):u.headings.sizes;return tH(gd({},i),{headings:tH(gd(gd({},u.headings),e.headings),{sizes:a})})}if(r==="breakpoints"&&e.breakpoints){const a=gd(gd({},u.breakpoints),e.breakpoints);return tH(gd({},i),{breakpoints:Object.fromEntries(Object.entries(a).sort((o,s)=>Us(o[1])-Us(s[1])))})}return i[r]=typeof e[r]=="object"?gd(gd({},u[r]),e[r]):typeof e[r]=="number"||typeof e[r]=="boolean"||typeof e[r]=="function"?e[r]:e[r]||u[r],i},{});if(e!=null&&e.fontFamily&&!((t=e==null?void 0:e.headings)!=null&&t.fontFamily)&&(n.headings.fontFamily=e.fontFamily),!(n.primaryColor in n.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return n}function n2t(u,e){return M7e(u2t(u,e))}function J7e(u){return Object.keys(u).reduce((e,t)=>(u[t]!==void 0&&(e[t]=u[t]),e),{})}const i2t={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${W(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function r2t(){return M.createElement(yA,{styles:i2t})}var a2t=Object.defineProperty,Rde=Object.getOwnPropertySymbols,o2t=Object.prototype.hasOwnProperty,s2t=Object.prototype.propertyIsEnumerable,Ide=(u,e,t)=>e in u?a2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,vk=(u,e)=>{for(var t in e||(e={}))o2t.call(e,t)&&Ide(u,t,e[t]);if(Rde)for(var t of Rde(e))s2t.call(e,t)&&Ide(u,t,e[t]);return u};const rz=C.createContext({theme:Ute});function Tr(){var u;return((u=C.useContext(rz))==null?void 0:u.theme)||Ute}function l2t(u){const e=Tr(),t=n=>{var i,r,a,o;return{styles:((i=e.components[n])==null?void 0:i.styles)||{},classNames:((r=e.components[n])==null?void 0:r.classNames)||{},variants:(a=e.components[n])==null?void 0:a.variants,sizes:(o=e.components[n])==null?void 0:o.sizes}};return Array.isArray(u)?u.map(t):[t(u)]}function Z7e(){var u;return(u=C.useContext(rz))==null?void 0:u.emotionCache}function Je(u,e,t){var n;const i=Tr(),r=(n=i.components[u])==null?void 0:n.defaultProps,a=typeof r=="function"?r(i):r;return vk(vk(vk({},e),a),J7e(t))}function uue({theme:u,emotionCache:e,withNormalizeCSS:t=!1,withGlobalStyles:n=!1,withCSSVariables:i=!1,inherit:r=!1,children:a}){const o=C.useContext(rz),s=n2t(Ute,r?vk(vk({},o.theme),u):u);return M.createElement(jkt,{theme:s},M.createElement(rz.Provider,{value:{theme:s,emotionCache:e}},t&&M.createElement(r2t,null),n&&M.createElement(Jkt,{theme:s}),i&&M.createElement(Zkt,{theme:s}),typeof s.globalStyles=="function"&&M.createElement(yA,{styles:s.globalStyles(s)}),a))}uue.displayName="@mantine/core/MantineProvider";const Y7e=C.createContext(null);function c2t(){const u=C.useContext(Y7e);if(!u)throw new Error("useMantineColorScheme hook was called outside of context, make sure your app is wrapped with ColorSchemeProvider component");return u}function Q7e({colorScheme:u,toggleColorScheme:e,children:t}){return M.createElement(Y7e.Provider,{value:{colorScheme:u,toggleColorScheme:e}},t)}Q7e.displayName="@mantine/core/ColorSchemeProvider";const d2t={app:100,modal:200,popover:300,overlay:400,max:9999};function id(u){return d2t[u]}function X7e(u){return typeof u=="number"?u:typeof u=="string"?u.includes("px")?Number(u.replace("px","")):u.includes("rem")?Number(u.replace("rem",""))*16:Number(u):NaN}function h2t(u,e){const t=C.useRef();return(!t.current||e.length!==t.current.prevDeps.length||t.current.prevDeps.map((n,i)=>n===e[i]).indexOf(!1)>=0)&&(t.current={v:u(),prevDeps:[...e]}),t.current.v}const E2t=Yte({key:"mantine",prepend:!0});function g2t(){return Z7e()||E2t}var m2t=Object.defineProperty,Ode=Object.getOwnPropertySymbols,f2t=Object.prototype.hasOwnProperty,p2t=Object.prototype.propertyIsEnumerable,jde=(u,e,t)=>e in u?m2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,D2t=(u,e)=>{for(var t in e||(e={}))f2t.call(e,t)&&jde(u,t,e[t]);if(Ode)for(var t of Ode(e))p2t.call(e,t)&&jde(u,t,e[t]);return u};const uH="ref";function x2t(u){let e;if(u.length!==1)return{args:u,ref:e};const[t]=u;if(!(t instanceof Object))return{args:u,ref:e};if(!(uH in t))return{args:u,ref:e};e=t[uH];const n=D2t({},t);return delete n[uH],{args:[n],ref:e}}const{cssFactory:v2t}=(()=>{function u(t,n,i){const r=[],a=Bkt(t,r,i);return r.length<2?i:a+n(r)}function e(t){const{cache:n}=t,i=(...a)=>{const{ref:o,args:s}=x2t(a),l=tue(s,n.registered);return W7e(n,l,!1),`${n.key}-${l.name}${o===void 0?"":` ${o}`}`};return{css:i,cx:(...a)=>u(n.registered,i,B7e(a))}}return{cssFactory:e}})();function e9e(){const u=g2t();return h2t(()=>v2t({cache:u}),[u])}function C2t({cx:u,classes:e,context:t,classNames:n,name:i,cache:r}){const a=t.reduce((o,s)=>(Object.keys(s.classNames).forEach(l=>{typeof o[l]!="string"?o[l]=`${s.classNames[l]}`:o[l]=`${o[l]} ${s.classNames[l]}`}),o),{});return Object.keys(e).reduce((o,s)=>(o[s]=u(e[s],a[s],n!=null&&n[s],Array.isArray(i)?i.filter(Boolean).map(l=>`${(r==null?void 0:r.key)||"mantine"}-${l}-${s}`).join(" "):i?`${(r==null?void 0:r.key)||"mantine"}-${i}-${s}`:null),o),{})}var b2t=Object.defineProperty,Vde=Object.getOwnPropertySymbols,k2t=Object.prototype.hasOwnProperty,y2t=Object.prototype.propertyIsEnumerable,Hde=(u,e,t)=>e in u?b2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,nH=(u,e)=>{for(var t in e||(e={}))k2t.call(e,t)&&Hde(u,t,e[t]);if(Vde)for(var t of Vde(e))y2t.call(e,t)&&Hde(u,t,e[t]);return u};function yJ(u,e){return e&&Object.keys(e).forEach(t=>{u[t]?u[t]=nH(nH({},u[t]),e[t]):u[t]=nH({},e[t])}),u}function $de(u,e,t,n){const i=r=>typeof r=="function"?r(e,t||{},n):r||{};return Array.isArray(u)?u.map(r=>i(r.styles)).reduce((r,a)=>yJ(r,a),{}):i(u)}function F2t({ctx:u,theme:e,params:t,variant:n,size:i}){return u.reduce((r,a)=>(a.variants&&n in a.variants&&yJ(r,a.variants[n](e,t,{variant:n,size:i})),a.sizes&&i in a.sizes&&yJ(r,a.sizes[i](e,t,{variant:n,size:i})),r),{})}function at(u){const e=typeof u=="function"?u:()=>u;function t(n,i){const r=Tr(),a=l2t(i==null?void 0:i.name),o=Z7e(),s={variant:i==null?void 0:i.variant,size:i==null?void 0:i.size},{css:l,cx:c}=e9e(),d=e(r,n,s),h=$de(i==null?void 0:i.styles,r,n,s),E=$de(a,r,n,s),g=F2t({ctx:a,theme:r,params:n,variant:i==null?void 0:i.variant,size:i==null?void 0:i.size}),m=Object.fromEntries(Object.keys(d).map(f=>{const p=c({[l(d[f])]:!(i!=null&&i.unstyled)},l(g[f]),l(E[f]),l(h[f]));return[f,p]}));return{classes:C2t({cx:c,classes:m,context:a,classNames:i==null?void 0:i.classNames,name:i==null?void 0:i.name,cache:o}),cx:c,theme:r}}return t}function s1(u){return`___ref-${u||""}`}function A2t({styles:u}){const e=Tr();return M.createElement(yA,{styles:q7e(typeof u=="function"?u(e):u)})}var _2t=Object.defineProperty,S2t=Object.defineProperties,B2t=Object.getOwnPropertyDescriptors,Kde=Object.getOwnPropertySymbols,w2t=Object.prototype.hasOwnProperty,z2t=Object.prototype.propertyIsEnumerable,Wde=(u,e,t)=>e in u?_2t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,F6=(u,e)=>{for(var t in e||(e={}))w2t.call(e,t)&&Wde(u,t,e[t]);if(Kde)for(var t of Kde(e))z2t.call(e,t)&&Wde(u,t,e[t]);return u},A6=(u,e)=>S2t(u,B2t(e));const _6={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${W(10)})`},transitionProperty:"transform, opacity"},Q7={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(-${W(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${W(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${W(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${W(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:A6(F6({},_6),{common:{transformOrigin:"center center"}}),"pop-bottom-left":A6(F6({},_6),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":A6(F6({},_6),{common:{transformOrigin:"bottom right"}}),"pop-top-left":A6(F6({},_6),{common:{transformOrigin:"top left"}}),"pop-top-right":A6(F6({},_6),{common:{transformOrigin:"top right"}})},Gde=["mousedown","touchstart"];function L2t(u,e,t){const n=C.useRef();return C.useEffect(()=>{const i=r=>{const{target:a}=r??{};if(Array.isArray(t)){const o=(a==null?void 0:a.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(a)&&a.tagName!=="HTML";t.every(l=>!!l&&!r.composedPath().includes(l))&&!o&&u()}else n.current&&!n.current.contains(a)&&u()};return(e||Gde).forEach(r=>document.addEventListener(r,i)),()=>{(e||Gde).forEach(r=>document.removeEventListener(r,i))}},[n,u,t]),n}function M2t({timeout:u=2e3}={}){const[e,t]=C.useState(null),[n,i]=C.useState(!1),[r,a]=C.useState(null),o=c=>{clearTimeout(r),a(setTimeout(()=>i(!1),u)),i(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>o(!0)).catch(d=>t(d)):t(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),t(null),clearTimeout(r)},error:e,copied:n}}function T2t(u,e){try{return u.addEventListener("change",e),()=>u.removeEventListener("change",e)}catch{return u.addListener(e),()=>u.removeListener(e)}}function P2t(u,e){return typeof e=="boolean"?e:typeof window<"u"&&"matchMedia"in window?window.matchMedia(u).matches:!1}function FA(u,e,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){const[n,i]=C.useState(t?e:P2t(u,e)),r=C.useRef();return C.useEffect(()=>{if("matchMedia"in window)return r.current=window.matchMedia(u),i(r.current.matches),T2t(r.current,a=>i(a.matches))},[u]),n}function N2t(u,e){return FA("(prefers-color-scheme: dark)",u==="dark",e)?"dark":"light"}function hg(u,e,t){return Math.min(Math.max(u,e),t)}const $R=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Lo(u,e){const t=C.useRef(!1);C.useEffect(()=>()=>{t.current=!1},[]),C.useEffect(()=>{if(t.current)return u();t.current=!0},e)}function t9e({opened:u,shouldReturnFocus:e=!0}){const t=C.useRef(),n=()=>{var i;t.current&&"focus"in t.current&&typeof t.current.focus=="function"&&((i=t.current)==null||i.focus({preventScroll:!0}))};return Lo(()=>{let i=-1;const r=a=>{a.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",r),u?t.current=document.activeElement:e&&(i=window.setTimeout(n,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",r)}},[u,e]),n}const R2t=/input|select|textarea|button|object/,u9e="a, input, select, textarea, button, object, [tabindex]";function I2t(u){return u.style.display==="none"}function O2t(u){if(u.getAttribute("aria-hidden")||u.getAttribute("hidden")||u.getAttribute("type")==="hidden")return!1;let t=u;for(;t&&!(t===document.body||t.nodeType===11);){if(I2t(t))return!1;t=t.parentNode}return!0}function n9e(u){let e=u.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function FJ(u){const e=u.nodeName.toLowerCase(),t=!Number.isNaN(n9e(u));return(R2t.test(e)&&!u.disabled||u instanceof HTMLAnchorElement&&u.href||t)&&O2t(u)}function i9e(u){const e=n9e(u);return(Number.isNaN(e)||e>=0)&&FJ(u)}function j2t(u){return Array.from(u.querySelectorAll(u9e)).filter(i9e)}function V2t(u,e){const t=j2t(u);if(!t.length){e.preventDefault();return}const n=t[e.shiftKey?0:t.length-1],i=u.getRootNode();if(!(n===i.activeElement||u===i.activeElement))return;e.preventDefault();const a=t[e.shiftKey?t.length-1:0];a&&a.focus()}function Wh(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function H2t(u,e="body > :not(script)"){const t=Wh(),n=Array.from(document.querySelectorAll(e)).map(i=>{var r;if((r=i==null?void 0:i.shadowRoot)!=null&&r.contains(u)||i.contains(u))return;const a=i.getAttribute("aria-hidden"),o=i.getAttribute("data-hidden"),s=i.getAttribute("data-focus-id");return i.setAttribute("data-focus-id",t),a===null||a==="false"?i.setAttribute("aria-hidden","true"):!o&&!s&&i.setAttribute("data-hidden",a),{node:i,ariaHidden:o||null}});return()=>{n.forEach(i=>{!i||t!==i.node.getAttribute("data-focus-id")||(i.ariaHidden===null?i.node.removeAttribute("aria-hidden"):i.node.setAttribute("aria-hidden",i.ariaHidden),i.node.removeAttribute("data-focus-id"),i.node.removeAttribute("data-hidden"))})}}function $2t(u=!0){const e=C.useRef(),t=C.useRef(null),n=r=>{let a=r.querySelector("[data-autofocus]");if(!a){const o=Array.from(r.querySelectorAll(u9e));a=o.find(i9e)||o.find(FJ)||null,!a&&FJ(r)&&(a=r)}a&&a.focus({preventScroll:!0})},i=C.useCallback(r=>{if(u){if(r===null){t.current&&(t.current(),t.current=null);return}t.current=H2t(r),e.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&n(r)}),e.current=r):e.current=null)}},[u]);return C.useEffect(()=>{if(!u)return;e.current&&setTimeout(()=>n(e.current));const r=a=>{a.key==="Tab"&&e.current&&V2t(e.current,a)};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),t.current&&t.current()}},[u]),i}const K2t=u=>(u+1)%1e6;function W2t(){const[,u]=C.useReducer(K2t,0);return u}const G2t=M["useId".toString()]||(()=>{});function U2t(){const u=G2t();return u?`mantine-${u.replace(/:/g,"")}`:""}function Kl(u){const e=U2t(),[t,n]=C.useState(e);return $R(()=>{n(Wh())},[]),typeof u=="string"?u:typeof window>"u"?e:t}function AJ(u,e,t){C.useEffect(()=>(window.addEventListener(u,e,t),()=>window.removeEventListener(u,e,t)),[u,e])}function nue(u,e){typeof u=="function"?u(e):typeof u=="object"&&u!==null&&"current"in u&&(u.current=e)}function r9e(...u){return e=>{u.forEach(t=>nue(t,e))}}function N1(...u){return C.useCallback(r9e(...u),u)}function q2t(u,e,t="ltr"){const n=C.useRef(),i=C.useRef(!1),r=C.useRef(!1),a=C.useRef(0),[o,s]=C.useState(!1);return C.useEffect(()=>{i.current=!0},[]),C.useEffect(()=>{const l=({x:D,y:x})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(i.current&&n.current){n.current.style.userSelect="none";const b=n.current.getBoundingClientRect();if(b.width&&b.height){const k=hg((D-b.left)/b.width,0,1);u({x:t==="ltr"?k:1-k,y:hg((x-b.top)/b.height,0,1)})}}})},c=()=>{document.addEventListener("mousemove",m),document.addEventListener("mouseup",E),document.addEventListener("touchmove",p),document.addEventListener("touchend",E)},d=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",E)},h=()=>{!r.current&&i.current&&(r.current=!0,typeof(e==null?void 0:e.onScrubStart)=="function"&&e.onScrubStart(),s(!0),c())},E=()=>{r.current&&i.current&&(r.current=!1,s(!1),d(),setTimeout(()=>{typeof(e==null?void 0:e.onScrubEnd)=="function"&&e.onScrubEnd()},0))},g=D=>{h(),D.preventDefault(),m(D)},m=D=>l({x:D.clientX,y:D.clientY}),f=D=>{D.cancelable&&D.preventDefault(),h(),p(D)},p=D=>{D.cancelable&&D.preventDefault(),l({x:D.changedTouches[0].clientX,y:D.changedTouches[0].clientY})};return n.current.addEventListener("mousedown",g),n.current.addEventListener("touchstart",f,{passive:!1}),()=>{n.current&&(n.current.removeEventListener("mousedown",g),n.current.removeEventListener("touchstart",f))}},[t,u]),{ref:n,active:o}}function cs({value:u,defaultValue:e,finalValue:t,onChange:n=()=>{}}){const[i,r]=C.useState(e!==void 0?e:t),a=o=>{r(o),n==null||n(o)};return u!==void 0?[u,n,!0]:[i,a,!1]}function I4(u,e){const t=e-u+1;return Array.from({length:t},(n,i)=>i+u)}const X7="dots";function J2t({total:u,siblings:e=1,boundaries:t=1,page:n,initialPage:i=1,onChange:r}){const a=Math.max(Math.trunc(u),0),[o,s]=cs({value:n,onChange:r,defaultValue:i,finalValue:i}),l=m=>{m<=0?s(1):m>a?s(a):s(m)},c=()=>l(o+1),d=()=>l(o-1),h=()=>l(1),E=()=>l(a);return{range:C.useMemo(()=>{if(e*2+3+t*2>=a)return I4(1,a);const f=Math.max(o-e,t),p=Math.min(o+e,a-t),D=f>t+2,x=pi(l=>{const c=[...l.state,...l.queue,...s];return{state:c.slice(0,e),queue:c.slice(e)}}),update:s=>i(l=>{const c=s([...l.state,...l.queue]);return{state:c.slice(0,e),queue:c.slice(e)}}),cleanQueue:()=>i(s=>({state:s.state,queue:[]}))}}function AA(u,e){return FA("(prefers-reduced-motion: reduce)",u,e)}const Y2t=u=>u<.5?2*u*u:-1+(4-2*u)*u,Q2t=({axis:u,target:e,parent:t,alignment:n,offset:i,isList:r})=>{if(!e||!t&&typeof document>"u")return 0;const a=!!t,s=(t||document.body).getBoundingClientRect(),l=e.getBoundingClientRect(),c=d=>l[d]-s[d];if(u==="y"){const d=c("top");if(d===0)return 0;if(n==="start"){const E=d-i;return E<=l.height*(r?0:1)||!r?E:0}const h=a?s.height:window.innerHeight;if(n==="end"){const E=d+i-h+l.height;return E>=-l.height*(r?0:1)||!r?E:0}return n==="center"?d-h/2+l.height/2:0}if(u==="x"){const d=c("left");if(d===0)return 0;if(n==="start"){const E=d-i;return E<=l.width||!r?E:0}const h=a?s.width:window.innerWidth;if(n==="end"){const E=d+i-h+l.width;return E>=-l.width||!r?E:0}return n==="center"?d-h/2+l.width/2:0}return 0},X2t=({axis:u,parent:e})=>{if(!e&&typeof document>"u")return 0;const t=u==="y"?"scrollTop":"scrollLeft";if(e)return e[t];const{body:n,documentElement:i}=document;return n[t]+i[t]},eyt=({axis:u,parent:e,distance:t})=>{if(!e&&typeof document>"u")return;const n=u==="y"?"scrollTop":"scrollLeft";if(e)e[n]=t;else{const{body:i,documentElement:r}=document;i[n]=t,r[n]=t}};function a9e({duration:u=1250,axis:e="y",onScrollFinish:t,easing:n=Y2t,offset:i=0,cancelable:r=!0,isList:a=!1}={}){const o=C.useRef(0),s=C.useRef(0),l=C.useRef(!1),c=C.useRef(null),d=C.useRef(null),h=AA(),E=()=>{o.current&&cancelAnimationFrame(o.current)},g=C.useCallback(({alignment:f="start"}={})=>{var p;l.current=!1,o.current&&E();const D=(p=X2t({parent:c.current,axis:e}))!=null?p:0,x=Q2t({parent:c.current,target:d.current,axis:e,alignment:f,offset:i,isList:a})-(c.current?0:D);function b(){s.current===0&&(s.current=performance.now());const _=performance.now()-s.current,y=h||u===0?1:_/u,S=D+x*n(y);eyt({parent:c.current,axis:e,distance:S}),!l.current&&y<1?o.current=requestAnimationFrame(b):(typeof t=="function"&&t(),s.current=0,o.current=0,E())}b()},[e,u,n,a,i,t,h]),m=()=>{r&&(l.current=!0)};return AJ("wheel",m,{passive:!0}),AJ("touchmove",m,{passive:!0}),C.useEffect(()=>E,[]),{scrollableRef:c,targetRef:d,scrollIntoView:g,cancel:E}}const tyt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function uyt(){const u=C.useRef(0),e=C.useRef(null),[t,n]=C.useState(tyt),i=C.useMemo(()=>typeof window<"u"?new ResizeObserver(r=>{const a=r[0];a&&(cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{e.current&&n(a.contentRect)}))}):null,[]);return $R(()=>(e.current&&(i.observe(e.current),n(e.current.getBoundingClientRect())),()=>{i.disconnect(),u.current&&cancelAnimationFrame(u.current)}),[e.current]),[e,t]}function nyt(){const[u,{width:e,height:t}]=uyt();return{ref:u,width:e,height:t}}function Ude(){if(typeof window>"u")return"undetermined";const{userAgent:u}=window.navigator,e=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,t=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return e.test(u)?"macos":n.test(u)?"ios":t.test(u)?"windows":/Android/i.test(u)?"android":/Linux/i.test(u)?"linux":"undetermined"}function iyt(u={getValueInEffect:!0}){const[e,t]=C.useState(u.getValueInEffect?"undetermined":Ude());return $R(()=>{u.getValueInEffect&&t(Ude)},[]),e}function $n(u=!1,e){const{onOpen:t,onClose:n}=e||{},[i,r]=C.useState(u),a=C.useCallback(()=>{r(l=>l||(t==null||t(),!0))},[t]),o=C.useCallback(()=>{r(l=>l&&(n==null||n(),!1))},[n]),s=C.useCallback(()=>{i?o():a()},[o,a,i]);return[i,{open:a,close:o,toggle:s}]}const az={context:"Accordion component was not found in the tree",itemContext:"Accordion.Item component was not found in the tree",value:"Accordion.Item component was rendered with invalid value or without value"},[ryt,oz]=P1(az.context);function ayt({children:u,multiple:e,value:t,defaultValue:n,onChange:i,id:r,loop:a,transitionDuration:o,disableChevronRotation:s,chevronPosition:l,chevronSize:c,order:d,chevron:h,variant:E,radius:g,classNames:m,styles:f,unstyled:p}){const D=Kl(r),[x,b]=cs({value:t,defaultValue:n,finalValue:e?[]:null,onChange:i}),k=y=>Array.isArray(x)?x.includes(y):y===x,_=y=>{const S=Array.isArray(x)?x.includes(y)?x.filter(B=>B!==y):[...x,y]:y===x?null:y;b(S)};return M.createElement(ryt,{value:{isItemActive:k,onChange:_,getControlId:nz(`${D}-control`,az.value),getRegionId:nz(`${D}-panel`,az.value),transitionDuration:o,disableChevronRotation:s,chevronPosition:l,chevronSize:c,order:d,chevron:h,loop:a,variant:E,radius:g,classNames:m,styles:f,unstyled:p}},u)}const[oyt,o9e]=P1(az.itemContext);function syt(u,e,{radius:t}){const n=u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3],i=u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0],r=u.fn.radius(t);return e==="default"?{color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,borderBottom:`${W(1)} solid ${n}`}:e==="contained"?{border:`${W(1)} solid ${n}`,transition:"background-color 150ms ease","&[data-active]":{backgroundColor:i},"&:first-of-type":{borderTopRightRadius:r,borderTopLeftRadius:r,"& > [data-accordion-control]":{borderTopRightRadius:r,borderTopLeftRadius:r}},"&:last-of-type":{borderBottomRightRadius:r,borderBottomLeftRadius:r,"& > [data-accordion-control]":{borderBottomRightRadius:r,borderBottomLeftRadius:r}},"& + &":{borderTop:0}}:e==="filled"?{borderRadius:r,"&[data-active]":{backgroundColor:i}}:e==="separated"?{borderRadius:r,backgroundColor:i,border:`${W(1)} solid transparent`,transition:"background-color 150ms ease","& + &":{marginTop:u.spacing.md},"&[data-active]":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,borderColor:n}}:{}}var lyt=at((u,e,{variant:t})=>({item:syt(u,t,e)}));const cyt=lyt;var qde=Object.getOwnPropertySymbols,dyt=Object.prototype.hasOwnProperty,hyt=Object.prototype.propertyIsEnumerable,Eyt=(u,e)=>{var t={};for(var n in u)dyt.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&qde)for(var n of qde(u))e.indexOf(n)<0&&hyt.call(u,n)&&(t[n]=u[n]);return t};function C4(u){const e=u,{m:t,mx:n,my:i,mt:r,mb:a,ml:o,mr:s,p:l,px:c,py:d,pt:h,pb:E,pl:g,pr:m,bg:f,c:p,opacity:D,ff:x,fz:b,fw:k,lts:_,ta:y,lh:S,fs:B,tt:L,td:T,w:N,miw:F,maw:A,h:z,mih:P,mah:I,bgsz:j,bgp:V,bgr:H,bga:q,pos:J,top:Q,left:X,bottom:Y,right:le,inset:he,display:ze}=e,Ie=Eyt(e,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:J7e({m:t,mx:n,my:i,mt:r,mb:a,ml:o,mr:s,p:l,px:c,py:d,pt:h,pb:E,pl:g,pr:m,bg:f,c:p,opacity:D,ff:x,fz:b,fw:k,lts:_,ta:y,lh:S,fs:B,tt:L,td:T,w:N,miw:F,maw:A,h:z,mih:P,mah:I,bgsz:j,bgp:V,bgr:H,bga:q,pos:J,top:Q,left:X,bottom:Y,right:le,inset:he,display:ze}),rest:Ie}}function gyt(u,e){const t=Object.keys(u).filter(n=>n!=="base").sort((n,i)=>Us(Fe({size:n,sizes:e.breakpoints}))-Us(Fe({size:i,sizes:e.breakpoints})));return"base"in u?["base",...t]:t}function myt({value:u,theme:e,getValue:t,property:n}){if(u==null)return;if(typeof u=="object")return gyt(u,e).reduce((a,o)=>{if(o==="base"&&u.base!==void 0){const l=t(u.base,e);return Array.isArray(n)?(n.forEach(c=>{a[c]=l}),a):(a[n]=l,a)}const s=t(u[o],e);return Array.isArray(n)?(a[e.fn.largerThan(o)]={},n.forEach(l=>{a[e.fn.largerThan(o)][l]=s}),a):(a[e.fn.largerThan(o)]={[n]:s},a)},{});const i=t(u,e);return Array.isArray(n)?n.reduce((r,a)=>(r[a]=i,r),{}):{[n]:i}}function fyt(u,e){return u==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:e.fn.variant({variant:"filled",color:u,primaryFallback:!1}).background}function pyt(u){return W(u)}function Dyt(u){return u}function xyt(u,e){return Fe({size:u,sizes:e.fontSizes})}const vyt=["-xs","-sm","-md","-lg","-xl"];function Cyt(u,e){return vyt.includes(u)?`calc(${Fe({size:u.replace("-",""),sizes:e.spacing})} * -1)`:Fe({size:u,sizes:e.spacing})}const byt={identity:Dyt,color:fyt,size:pyt,fontSize:xyt,spacing:Cyt},kyt={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"}};var yyt=Object.defineProperty,Jde=Object.getOwnPropertySymbols,Fyt=Object.prototype.hasOwnProperty,Ayt=Object.prototype.propertyIsEnumerable,Zde=(u,e,t)=>e in u?yyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Yde=(u,e)=>{for(var t in e||(e={}))Fyt.call(e,t)&&Zde(u,t,e[t]);if(Jde)for(var t of Jde(e))Ayt.call(e,t)&&Zde(u,t,e[t]);return u};function _J(u,e,t=kyt){return Object.keys(t).reduce((i,r)=>(r in u&&u[r]!==void 0&&i.push(myt({value:u[r],getValue:byt[t[r].type],property:t[r].property,theme:e})),i),[]).reduce((i,r)=>(Object.keys(r).forEach(a=>{typeof r[a]=="object"&&r[a]!==null&&a in i?i[a]=Yde(Yde({},i[a]),r[a]):i[a]=r[a]}),i),{})}function Qde(u,e){return typeof u=="function"?u(e):u}function _yt(u,e,t){const n=Tr(),{css:i,cx:r}=e9e();return Array.isArray(u)?r(t,i(_J(e,n)),u.map(a=>i(Qde(a,n)))):r(t,i(Qde(u,n)),i(_J(e,n)))}var Syt=Object.defineProperty,sz=Object.getOwnPropertySymbols,s9e=Object.prototype.hasOwnProperty,l9e=Object.prototype.propertyIsEnumerable,Xde=(u,e,t)=>e in u?Syt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Byt=(u,e)=>{for(var t in e||(e={}))s9e.call(e,t)&&Xde(u,t,e[t]);if(sz)for(var t of sz(e))l9e.call(e,t)&&Xde(u,t,e[t]);return u},wyt=(u,e)=>{var t={};for(var n in u)s9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&sz)for(var n of sz(u))e.indexOf(n)<0&&l9e.call(u,n)&&(t[n]=u[n]);return t};const c9e=C.forwardRef((u,e)=>{var t=u,{className:n,component:i,style:r,sx:a}=t,o=wyt(t,["className","component","style","sx"]);const{systemStyles:s,rest:l}=C4(o),c=i||"div";return M.createElement(c,Byt({ref:e,className:_yt(a,s,n),style:r},l))});c9e.displayName="@mantine/core/Box";const pt=c9e;var zyt=Object.defineProperty,lz=Object.getOwnPropertySymbols,d9e=Object.prototype.hasOwnProperty,h9e=Object.prototype.propertyIsEnumerable,e1e=(u,e,t)=>e in u?zyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Lyt=(u,e)=>{for(var t in e||(e={}))d9e.call(e,t)&&e1e(u,t,e[t]);if(lz)for(var t of lz(e))h9e.call(e,t)&&e1e(u,t,e[t]);return u},Myt=(u,e)=>{var t={};for(var n in u)d9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&lz)for(var n of lz(u))e.indexOf(n)<0&&h9e.call(u,n)&&(t[n]=u[n]);return t};const Tyt={},E9e=C.forwardRef((u,e)=>{const t=Je("AccordionItem",Tyt,u),{children:n,className:i,value:r}=t,a=Myt(t,["children","className","value"]),o=oz(),{classes:s,cx:l}=cyt({radius:o.radius},{name:"Accordion",classNames:o.classNames,styles:o.styles,unstyled:o.unstyled,variant:o.variant});return M.createElement(oyt,{value:{value:r}},M.createElement(pt,Lyt({ref:e,className:l(s.item,i),"data-active":o.isItemActive(r)||void 0},a),n))});E9e.displayName="@mantine/core/AccordionItem";var Pyt=Object.defineProperty,Nyt=Object.defineProperties,Ryt=Object.getOwnPropertyDescriptors,t1e=Object.getOwnPropertySymbols,Iyt=Object.prototype.hasOwnProperty,Oyt=Object.prototype.propertyIsEnumerable,u1e=(u,e,t)=>e in u?Pyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,e9=(u,e)=>{for(var t in e||(e={}))Iyt.call(e,t)&&u1e(u,t,e[t]);if(t1e)for(var t of t1e(e))Oyt.call(e,t)&&u1e(u,t,e[t]);return u},jyt=(u,e)=>Nyt(u,Ryt(e));function Vyt(u,e){return e==="default"||e==="contained"?u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0]}):{}}var Hyt=at((u,{transitionDuration:e,chevronPosition:t,chevronSize:n},{variant:i})=>({icon:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:t==="left"?0:u.spacing.sm,marginLeft:t==="left"?u.spacing.lg:0},chevron:{display:"flex",alignItems:"center",justifyContent:"center",transition:`transform ${e}ms ease`,marginRight:t==="right"?0:u.spacing.sm,marginLeft:t==="right"?u.spacing.lg:0,width:W(n),minWidth:W(n),"&[data-rotate]":{transform:"rotate(180deg)"}},label:{color:"inherit",fontWeight:400,flex:1,overflow:"hidden",textOverflow:"ellipsis",paddingTop:u.spacing.md,paddingBottom:u.spacing.md},itemTitle:{margin:0,padding:0},control:jyt(e9(e9(e9({},u.fn.focusStyles()),u.fn.fontStyles()),Vyt(u,i)),{width:"100%",display:"flex",alignItems:"center",flexDirection:t==="right"?"row-reverse":"row",paddingRight:u.spacing.md,paddingLeft:t==="right"?`calc(${u.spacing.md} + ${W(4)})`:u.spacing.xs,textAlign:"left",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,"&:disabled":e9({opacity:.4,cursor:"not-allowed"},u.fn.hover({backgroundColor:"transparent"}))})}));const $yt=Hyt;var Kyt=Object.defineProperty,Wyt=Object.defineProperties,Gyt=Object.getOwnPropertyDescriptors,n1e=Object.getOwnPropertySymbols,Uyt=Object.prototype.hasOwnProperty,qyt=Object.prototype.propertyIsEnumerable,i1e=(u,e,t)=>e in u?Kyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,r1e=(u,e)=>{for(var t in e||(e={}))Uyt.call(e,t)&&i1e(u,t,e[t]);if(n1e)for(var t of n1e(e))qyt.call(e,t)&&i1e(u,t,e[t]);return u},Jyt=(u,e)=>Wyt(u,Gyt(e)),Zyt=at(u=>({root:Jyt(r1e(r1e({},u.fn.focusStyles()),u.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:u.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,textDecoration:"none",boxSizing:"border-box"})}));const Yyt=Zyt;var Qyt=Object.defineProperty,cz=Object.getOwnPropertySymbols,g9e=Object.prototype.hasOwnProperty,m9e=Object.prototype.propertyIsEnumerable,a1e=(u,e,t)=>e in u?Qyt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Xyt=(u,e)=>{for(var t in e||(e={}))g9e.call(e,t)&&a1e(u,t,e[t]);if(cz)for(var t of cz(e))m9e.call(e,t)&&a1e(u,t,e[t]);return u},eFt=(u,e)=>{var t={};for(var n in u)g9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&cz)for(var n of cz(u))e.indexOf(n)<0&&m9e.call(u,n)&&(t[n]=u[n]);return t};const f9e=C.forwardRef((u,e)=>{const t=Je("UnstyledButton",{},u),{className:n,component:i="button",unstyled:r,variant:a}=t,o=eFt(t,["className","component","unstyled","variant"]),{classes:s,cx:l}=Yyt(null,{name:"UnstyledButton",unstyled:r,variant:a});return M.createElement(pt,Xyt({component:i,ref:e,className:l(s.root,n),type:i==="button"?"button":void 0},o))});f9e.displayName="@mantine/core/UnstyledButton";const b4=f9e;var tFt=Object.defineProperty,uFt=Object.defineProperties,nFt=Object.getOwnPropertyDescriptors,dz=Object.getOwnPropertySymbols,p9e=Object.prototype.hasOwnProperty,D9e=Object.prototype.propertyIsEnumerable,o1e=(u,e,t)=>e in u?tFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iFt=(u,e)=>{for(var t in e||(e={}))p9e.call(e,t)&&o1e(u,t,e[t]);if(dz)for(var t of dz(e))D9e.call(e,t)&&o1e(u,t,e[t]);return u},rFt=(u,e)=>uFt(u,nFt(e)),aFt=(u,e)=>{var t={};for(var n in u)p9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&dz)for(var n of dz(u))e.indexOf(n)<0&&D9e.call(u,n)&&(t[n]=u[n]);return t};const oFt={},x9e=C.forwardRef((u,e)=>{const t=Je("AccordionControl",oFt,u),{disabled:n,onKeyDown:i,onClick:r,chevron:a,children:o,className:s,icon:l}=t,c=aFt(t,["disabled","onKeyDown","onClick","chevron","children","className","icon"]),d=oz(),{value:h}=o9e(),{classes:E,cx:g}=$yt({transitionDuration:d.transitionDuration,chevronPosition:d.chevronPosition,chevronSize:d.chevronSize,radius:d.radius},{name:"Accordion",classNames:d.classNames,styles:d.styles,unstyled:d.unstyled,variant:d.variant}),m=d.isItemActive(h),f=typeof d.order=="number",p=`h${d.order}`,D=M.createElement(b4,rFt(iFt({},c),{ref:e,"data-accordion-control":!0,disabled:n,className:g(E.control,s),onClick:x=>{r==null||r(x),d.onChange(h)},type:"button","data-active":m||void 0,"aria-expanded":m,"aria-controls":d.getRegionId(h),id:d.getControlId(h),unstyled:d.unstyled,onKeyDown:Kte({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:d.loop,orientation:"vertical",onKeyDown:i})}),M.createElement("span",{className:E.chevron,"data-rotate":!d.disableChevronRotation&&m||void 0},a||d.chevron),M.createElement("span",{className:E.label},o),l&&M.createElement("span",{className:E.icon},l));return f?M.createElement(p,{className:E.itemTitle},D):D});x9e.displayName="@mantine/core/AccordionControl";var sFt=Object.defineProperty,lFt=Object.defineProperties,cFt=Object.getOwnPropertyDescriptors,s1e=Object.getOwnPropertySymbols,dFt=Object.prototype.hasOwnProperty,hFt=Object.prototype.propertyIsEnumerable,l1e=(u,e,t)=>e in u?sFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,EFt=(u,e)=>{for(var t in e||(e={}))dFt.call(e,t)&&l1e(u,t,e[t]);if(s1e)for(var t of s1e(e))hFt.call(e,t)&&l1e(u,t,e[t]);return u},gFt=(u,e)=>lFt(u,cFt(e)),mFt=at((u,e)=>({panel:gFt(EFt({},u.fn.fontStyles()),{wordBreak:"break-word",lineHeight:u.lineHeight}),content:{padding:u.spacing.md,paddingTop:`calc(${u.spacing.xs} / 2)`}}));const fFt=mFt;var pFt=Object.defineProperty,DFt=Object.defineProperties,xFt=Object.getOwnPropertyDescriptors,hz=Object.getOwnPropertySymbols,v9e=Object.prototype.hasOwnProperty,C9e=Object.prototype.propertyIsEnumerable,c1e=(u,e,t)=>e in u?pFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Om=(u,e)=>{for(var t in e||(e={}))v9e.call(e,t)&&c1e(u,t,e[t]);if(hz)for(var t of hz(e))C9e.call(e,t)&&c1e(u,t,e[t]);return u},iH=(u,e)=>DFt(u,xFt(e)),vFt=(u,e)=>{var t={};for(var n in u)v9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&hz)for(var n of hz(u))e.indexOf(n)<0&&C9e.call(u,n)&&(t[n]=u[n]);return t};function CFt(u){if(!u||typeof u=="string")return 0;const e=u/36;return Math.round((4+15*e**.25+e/5)*10)}function rH(u){return u!=null&&u.current?u.current.scrollHeight:"auto"}const t9=typeof window<"u"&&window.requestAnimationFrame;function bFt({transitionDuration:u,transitionTimingFunction:e="ease",onTransitionEnd:t=()=>{},opened:n}){const i=C.useRef(null),r=0,a={display:"none",height:0,overflow:"hidden"},[o,s]=C.useState(n?{}:a),l=g=>{Xo.flushSync(()=>s(g))},c=g=>{l(m=>Om(Om({},m),g))};function d(g){return{transition:`height ${u||CFt(g)}ms ${e}`}}Lo(()=>{t9(n?()=>{c({willChange:"height",display:"block",overflow:"hidden"}),t9(()=>{const g=rH(i);c(iH(Om({},d(g)),{height:g}))})}:()=>{const g=rH(i);c(iH(Om({},d(g)),{willChange:"height",height:g})),t9(()=>c({height:r,overflow:"hidden"}))})},[n]);const h=g=>{if(!(g.target!==i.current||g.propertyName!=="height"))if(n){const m=rH(i);m===o.height?l({}):c({height:m}),t()}else o.height===r&&(l(a),t())};function E(g={}){var m=g,{style:f={},refKey:p="ref"}=m,D=vFt(m,["style","refKey"]);const x=D[p];return iH(Om({"aria-hidden":!n},D),{[p]:r9e(i,x),onTransitionEnd:h,style:Om(Om({boxSizing:"border-box"},f),o)})}return E}var kFt=Object.defineProperty,Ez=Object.getOwnPropertySymbols,b9e=Object.prototype.hasOwnProperty,k9e=Object.prototype.propertyIsEnumerable,d1e=(u,e,t)=>e in u?kFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,u9=(u,e)=>{for(var t in e||(e={}))b9e.call(e,t)&&d1e(u,t,e[t]);if(Ez)for(var t of Ez(e))k9e.call(e,t)&&d1e(u,t,e[t]);return u},yFt=(u,e)=>{var t={};for(var n in u)b9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Ez)for(var n of Ez(u))e.indexOf(n)<0&&k9e.call(u,n)&&(t[n]=u[n]);return t};const FFt={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},y9e=C.forwardRef((u,e)=>{const t=Je("Collapse",FFt,u),{children:n,in:i,transitionDuration:r,transitionTimingFunction:a,style:o,onTransitionEnd:s,animateOpacity:l}=t,c=yFt(t,["children","in","transitionDuration","transitionTimingFunction","style","onTransitionEnd","animateOpacity"]),d=Tr(),h=AA(),g=(d.respectReducedMotion?h:!1)?0:r,{systemStyles:m,rest:f}=C4(c),p=bFt({opened:i,transitionDuration:g,transitionTimingFunction:a,onTransitionEnd:s});return g===0?i?M.createElement(pt,u9({},f),n):null:M.createElement(pt,u9({},p(u9(u9({style:o,ref:e},f),m))),M.createElement("div",{style:{opacity:i||!l?1:0,transition:l?`opacity ${g}ms ${a}`:"none"}},n))});y9e.displayName="@mantine/core/Collapse";var AFt=Object.defineProperty,_Ft=Object.defineProperties,SFt=Object.getOwnPropertyDescriptors,gz=Object.getOwnPropertySymbols,F9e=Object.prototype.hasOwnProperty,A9e=Object.prototype.propertyIsEnumerable,h1e=(u,e,t)=>e in u?AFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,BFt=(u,e)=>{for(var t in e||(e={}))F9e.call(e,t)&&h1e(u,t,e[t]);if(gz)for(var t of gz(e))A9e.call(e,t)&&h1e(u,t,e[t]);return u},wFt=(u,e)=>_Ft(u,SFt(e)),zFt=(u,e)=>{var t={};for(var n in u)F9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&gz)for(var n of gz(u))e.indexOf(n)<0&&A9e.call(u,n)&&(t[n]=u[n]);return t};const LFt={};function _9e(u){const e=Je("AccordionPanel",LFt,u),{children:t,className:n}=e,i=zFt(e,["children","className"]),r=oz(),{value:a}=o9e(),{classNames:o,styles:s,unstyled:l}=oz(),{classes:c,cx:d}=fFt({radius:r.radius},{name:"Accordion",classNames:o,styles:s,unstyled:l,variant:r.variant});return M.createElement(y9e,wFt(BFt({},i),{className:d(c.panel,n),in:r.isItemActive(a),transitionDuration:r.transitionDuration,role:"region",id:r.getRegionId(a),"aria-labelledby":r.getControlId(a)}),M.createElement("div",{className:c.content},t))}_9e.displayName="@mantine/core/AccordionPanel";var MFt=Object.defineProperty,mz=Object.getOwnPropertySymbols,S9e=Object.prototype.hasOwnProperty,B9e=Object.prototype.propertyIsEnumerable,E1e=(u,e,t)=>e in u?MFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,g1e=(u,e)=>{for(var t in e||(e={}))S9e.call(e,t)&&E1e(u,t,e[t]);if(mz)for(var t of mz(e))B9e.call(e,t)&&E1e(u,t,e[t]);return u},TFt=(u,e)=>{var t={};for(var n in u)S9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&mz)for(var n of mz(u))e.indexOf(n)<0&&B9e.call(u,n)&&(t[n]=u[n]);return t};function PFt(u){const e=u,{style:t}=e,n=TFt(e,["style"]);return M.createElement("svg",g1e({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:g1e({width:W(16),height:W(16)},t)},n),M.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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var NFt=Object.defineProperty,RFt=Object.defineProperties,IFt=Object.getOwnPropertyDescriptors,fz=Object.getOwnPropertySymbols,w9e=Object.prototype.hasOwnProperty,z9e=Object.prototype.propertyIsEnumerable,m1e=(u,e,t)=>e in u?NFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,OFt=(u,e)=>{for(var t in e||(e={}))w9e.call(e,t)&&m1e(u,t,e[t]);if(fz)for(var t of fz(e))z9e.call(e,t)&&m1e(u,t,e[t]);return u},jFt=(u,e)=>RFt(u,IFt(e)),VFt=(u,e)=>{var t={};for(var n in u)w9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&fz)for(var n of fz(u))e.indexOf(n)<0&&z9e.call(u,n)&&(t[n]=u[n]);return t};const HFt={multiple:!1,disableChevronRotation:!1,transitionDuration:200,chevronPosition:"right",variant:"default",chevronSize:24,chevron:M.createElement(PFt,null)};function sn(u){const e=Je("Accordion",HFt,u),{id:t,loop:n,children:i,multiple:r,value:a,defaultValue:o,onChange:s,transitionDuration:l,disableChevronRotation:c,chevronPosition:d,chevronSize:h,order:E,chevron:g,classNames:m,styles:f,unstyled:p,variant:D,radius:x}=e,b=VFt(e,["id","loop","children","multiple","value","defaultValue","onChange","transitionDuration","disableChevronRotation","chevronPosition","chevronSize","order","chevron","classNames","styles","unstyled","variant","radius"]);return M.createElement(ayt,{id:t,multiple:r,value:a,defaultValue:o,onChange:s,loop:n,transitionDuration:l,disableChevronRotation:c,chevronPosition:d,chevronSize:h,order:E,chevron:g,variant:D,radius:x,classNames:m,styles:f,unstyled:p},M.createElement(pt,jFt(OFt({},b),{"data-accordion":!0}),i))}sn.Item=E9e;sn.Control=x9e;sn.Panel=_9e;sn.displayName="@mantine/core/Accordion";var $Ft=Object.defineProperty,KFt=Object.defineProperties,WFt=Object.getOwnPropertyDescriptors,f1e=Object.getOwnPropertySymbols,GFt=Object.prototype.hasOwnProperty,UFt=Object.prototype.propertyIsEnumerable,p1e=(u,e,t)=>e in u?$Ft(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,SJ=(u,e)=>{for(var t in e||(e={}))GFt.call(e,t)&&p1e(u,t,e[t]);if(f1e)for(var t of f1e(e))UFt.call(e,t)&&p1e(u,t,e[t]);return u},D1e=(u,e)=>KFt(u,WFt(e));const qFt=["subtle","filled","outline","light","default","transparent","gradient"],n9={xs:W(18),sm:W(22),md:W(28),lg:W(34),xl:W(44)};function JFt({variant:u,theme:e,color:t,gradient:n}){const i=e.fn.variant({color:t,variant:u,gradient:n});return u==="gradient"?{border:0,backgroundImage:i.background,color:i.color,"&:hover":e.fn.hover({backgroundSize:"200%"})}:qFt.includes(u)?SJ({border:`${W(1)} solid ${i.border}`,backgroundColor:i.background,color:i.color},e.fn.hover({backgroundColor:i.hover})):null}var ZFt=at((u,{radius:e,color:t,gradient:n},{variant:i,size:r})=>({root:D1e(SJ({position:"relative",borderRadius:u.fn.radius(e),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:Fe({size:r,sizes:n9}),minHeight:Fe({size:r,sizes:n9}),width:Fe({size:r,sizes:n9}),minWidth:Fe({size:r,sizes:n9})},JFt({variant:i,theme:u,color:t,gradient:n})),{"&:active":u.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:u.colors.gray[u.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:i==="transparent"?void 0:u.fn.themeColor("gray",u.colorScheme==="dark"?8:1),borderColor:i==="transparent"?void 0:u.fn.themeColor("gray",u.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":D1e(SJ({content:'""'},u.fn.cover(W(-1))),{backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:u.fn.radius(e),cursor:"not-allowed"})}})}));const YFt=ZFt;var QFt=Object.defineProperty,pz=Object.getOwnPropertySymbols,L9e=Object.prototype.hasOwnProperty,M9e=Object.prototype.propertyIsEnumerable,x1e=(u,e,t)=>e in u?QFt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,v1e=(u,e)=>{for(var t in e||(e={}))L9e.call(e,t)&&x1e(u,t,e[t]);if(pz)for(var t of pz(e))M9e.call(e,t)&&x1e(u,t,e[t]);return u},C1e=(u,e)=>{var t={};for(var n in u)L9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&pz)for(var n of pz(u))e.indexOf(n)<0&&M9e.call(u,n)&&(t[n]=u[n]);return t};function XFt(u){var e=u,{size:t,color:n}=e,i=C1e(e,["size","color"]);const r=i,{style:a}=r,o=C1e(r,["style"]);return M.createElement("svg",v1e({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,style:v1e({width:t},a)},o),M.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},M.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var eAt=Object.defineProperty,Dz=Object.getOwnPropertySymbols,T9e=Object.prototype.hasOwnProperty,P9e=Object.prototype.propertyIsEnumerable,b1e=(u,e,t)=>e in u?eAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,k1e=(u,e)=>{for(var t in e||(e={}))T9e.call(e,t)&&b1e(u,t,e[t]);if(Dz)for(var t of Dz(e))P9e.call(e,t)&&b1e(u,t,e[t]);return u},y1e=(u,e)=>{var t={};for(var n in u)T9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Dz)for(var n of Dz(u))e.indexOf(n)<0&&P9e.call(u,n)&&(t[n]=u[n]);return t};function tAt(u){var e=u,{size:t,color:n}=e,i=y1e(e,["size","color"]);const r=i,{style:a}=r,o=y1e(r,["style"]);return M.createElement("svg",k1e({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n,style:k1e({width:t,height:t},a)},o),M.createElement("g",{fill:"none",fillRule:"evenodd"},M.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},M.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),M.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},M.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var uAt=Object.defineProperty,xz=Object.getOwnPropertySymbols,N9e=Object.prototype.hasOwnProperty,R9e=Object.prototype.propertyIsEnumerable,F1e=(u,e,t)=>e in u?uAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,A1e=(u,e)=>{for(var t in e||(e={}))N9e.call(e,t)&&F1e(u,t,e[t]);if(xz)for(var t of xz(e))R9e.call(e,t)&&F1e(u,t,e[t]);return u},_1e=(u,e)=>{var t={};for(var n in u)N9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&xz)for(var n of xz(u))e.indexOf(n)<0&&R9e.call(u,n)&&(t[n]=u[n]);return t};function nAt(u){var e=u,{size:t,color:n}=e,i=_1e(e,["size","color"]);const r=i,{style:a}=r,o=_1e(r,["style"]);return M.createElement("svg",A1e({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n,style:A1e({width:t},a)},o),M.createElement("circle",{cx:"15",cy:"15",r:"15"},M.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},M.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),M.createElement("circle",{cx:"105",cy:"15",r:"15"},M.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var iAt=Object.defineProperty,vz=Object.getOwnPropertySymbols,I9e=Object.prototype.hasOwnProperty,O9e=Object.prototype.propertyIsEnumerable,S1e=(u,e,t)=>e in u?iAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,rAt=(u,e)=>{for(var t in e||(e={}))I9e.call(e,t)&&S1e(u,t,e[t]);if(vz)for(var t of vz(e))O9e.call(e,t)&&S1e(u,t,e[t]);return u},aAt=(u,e)=>{var t={};for(var n in u)I9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&vz)for(var n of vz(u))e.indexOf(n)<0&&O9e.call(u,n)&&(t[n]=u[n]);return t};const aH={bars:XFt,oval:tAt,dots:nAt},oAt={xs:W(18),sm:W(22),md:W(36),lg:W(44),xl:W(58)},sAt={size:"md"};function Fv(u){const e=Je("Loader",sAt,u),{size:t,color:n,variant:i}=e,r=aAt(e,["size","color","variant"]),a=Tr(),o=i in aH?i:a.loader;return M.createElement(pt,rAt({role:"presentation",component:aH[o]||aH.bars,size:Fe({size:t,sizes:oAt}),color:a.fn.variant({variant:"filled",primaryFallback:!1,color:n||a.primaryColor}).background},r))}Fv.displayName="@mantine/core/Loader";var lAt=Object.defineProperty,Cz=Object.getOwnPropertySymbols,j9e=Object.prototype.hasOwnProperty,V9e=Object.prototype.propertyIsEnumerable,B1e=(u,e,t)=>e in u?lAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,w1e=(u,e)=>{for(var t in e||(e={}))j9e.call(e,t)&&B1e(u,t,e[t]);if(Cz)for(var t of Cz(e))V9e.call(e,t)&&B1e(u,t,e[t]);return u},cAt=(u,e)=>{var t={};for(var n in u)j9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Cz)for(var n of Cz(u))e.indexOf(n)<0&&V9e.call(u,n)&&(t[n]=u[n]);return t};const dAt={color:"gray",size:"md",variant:"subtle"},H9e=C.forwardRef((u,e)=>{const t=Je("ActionIcon",dAt,u),{className:n,color:i,children:r,radius:a,size:o,variant:s,gradient:l,disabled:c,loaderProps:d,loading:h,unstyled:E,__staticSelector:g}=t,m=cAt(t,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:f,cx:p,theme:D}=YFt({radius:a,color:i,gradient:l},{name:["ActionIcon",g],unstyled:E,size:o,variant:s}),x=M.createElement(Fv,w1e({color:D.fn.variant({color:i,variant:s}).color,size:"100%","data-action-icon-loader":!0},d));return M.createElement(b4,w1e({className:p(f.root,n),ref:e,disabled:c,"data-disabled":c||void 0,"data-loading":h||void 0,unstyled:E},m),h?x:r)});H9e.displayName="@mantine/core/ActionIcon";const qu=H9e;var hAt=Object.defineProperty,EAt=Object.defineProperties,gAt=Object.getOwnPropertyDescriptors,bz=Object.getOwnPropertySymbols,$9e=Object.prototype.hasOwnProperty,K9e=Object.prototype.propertyIsEnumerable,z1e=(u,e,t)=>e in u?hAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mAt=(u,e)=>{for(var t in e||(e={}))$9e.call(e,t)&&z1e(u,t,e[t]);if(bz)for(var t of bz(e))K9e.call(e,t)&&z1e(u,t,e[t]);return u},fAt=(u,e)=>EAt(u,gAt(e)),pAt=(u,e)=>{var t={};for(var n in u)$9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&bz)for(var n of bz(u))e.indexOf(n)<0&&K9e.call(u,n)&&(t[n]=u[n]);return t};function iue(u){const e=Je("Portal",{},u),{children:t,target:n,className:i,innerRef:r}=e,a=pAt(e,["children","target","className","innerRef"]),o=Tr(),[s,l]=C.useState(!1),c=C.useRef();return $R(()=>(l(!0),c.current=n?typeof n=="string"?document.querySelector(n):n:document.createElement("div"),n||document.body.appendChild(c.current),()=>{!n&&document.body.removeChild(c.current)}),[n]),s?Xo.createPortal(M.createElement("div",fAt(mAt({className:i,dir:o.dir},a),{ref:r}),t),c.current):null}iue.displayName="@mantine/core/Portal";var DAt=Object.defineProperty,kz=Object.getOwnPropertySymbols,W9e=Object.prototype.hasOwnProperty,G9e=Object.prototype.propertyIsEnumerable,L1e=(u,e,t)=>e in u?DAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,xAt=(u,e)=>{for(var t in e||(e={}))W9e.call(e,t)&&L1e(u,t,e[t]);if(kz)for(var t of kz(e))G9e.call(e,t)&&L1e(u,t,e[t]);return u},vAt=(u,e)=>{var t={};for(var n in u)W9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&kz)for(var n of kz(u))e.indexOf(n)<0&&G9e.call(u,n)&&(t[n]=u[n]);return t};function _A(u){var e=u,{withinPortal:t=!0,children:n}=e,i=vAt(e,["withinPortal","children"]);return t?M.createElement(iue,xAt({},i),n):M.createElement(M.Fragment,null,n)}_A.displayName="@mantine/core/OptionalPortal";var CAt=Object.defineProperty,yz=Object.getOwnPropertySymbols,U9e=Object.prototype.hasOwnProperty,q9e=Object.prototype.propertyIsEnumerable,M1e=(u,e,t)=>e in u?CAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,T1e=(u,e)=>{for(var t in e||(e={}))U9e.call(e,t)&&M1e(u,t,e[t]);if(yz)for(var t of yz(e))q9e.call(e,t)&&M1e(u,t,e[t]);return u},bAt=(u,e)=>{var t={};for(var n in u)U9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&yz)for(var n of yz(u))e.indexOf(n)<0&&q9e.call(u,n)&&(t[n]=u[n]);return t};function J9e(u){const e=u,{width:t,height:n,style:i}=e,r=bAt(e,["width","height","style"]);return M.createElement("svg",T1e({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:T1e({width:t,height:n},i)},r),M.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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}J9e.displayName="@mantine/core/CloseIcon";var kAt=Object.defineProperty,Fz=Object.getOwnPropertySymbols,Z9e=Object.prototype.hasOwnProperty,Y9e=Object.prototype.propertyIsEnumerable,P1e=(u,e,t)=>e in u?kAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yAt=(u,e)=>{for(var t in e||(e={}))Z9e.call(e,t)&&P1e(u,t,e[t]);if(Fz)for(var t of Fz(e))Y9e.call(e,t)&&P1e(u,t,e[t]);return u},FAt=(u,e)=>{var t={};for(var n in u)Z9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Fz)for(var n of Fz(u))e.indexOf(n)<0&&Y9e.call(u,n)&&(t[n]=u[n]);return t};const AAt={xs:W(12),sm:W(16),md:W(20),lg:W(28),xl:W(34)},_At={size:"sm"},Q9e=C.forwardRef((u,e)=>{const t=Je("CloseButton",_At,u),{iconSize:n,size:i,children:r}=t,a=FAt(t,["iconSize","size","children"]),o=W(n||AAt[i]);return M.createElement(qu,yAt({ref:e,__staticSelector:"CloseButton",size:i},a),r||M.createElement(J9e,{width:o,height:o}))});Q9e.displayName="@mantine/core/CloseButton";const KR=Q9e;var SAt=Object.defineProperty,BAt=Object.defineProperties,wAt=Object.getOwnPropertyDescriptors,N1e=Object.getOwnPropertySymbols,zAt=Object.prototype.hasOwnProperty,LAt=Object.prototype.propertyIsEnumerable,R1e=(u,e,t)=>e in u?SAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,i9=(u,e)=>{for(var t in e||(e={}))zAt.call(e,t)&&R1e(u,t,e[t]);if(N1e)for(var t of N1e(e))LAt.call(e,t)&&R1e(u,t,e[t]);return u},MAt=(u,e)=>BAt(u,wAt(e));function TAt({underline:u,strikethrough:e}){const t=[];return u&&t.push("underline"),e&&t.push("line-through"),t.length>0?t.join(" "):"none"}function PAt({theme:u,color:e}){return e==="dimmed"?u.fn.dimmed():typeof e=="string"&&(e in u.colors||e.split(".")[0]in u.colors)?u.fn.variant({variant:"filled",color:e}).background:e||"inherit"}function NAt(u){return typeof u=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:u,WebkitBoxOrient:"vertical"}:null}function RAt({theme:u,truncate:e}){return e==="start"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:u.dir==="ltr"?"rtl":"ltr",textAlign:u.dir==="ltr"?"right":"left"}:e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var IAt=at((u,{color:e,lineClamp:t,truncate:n,inline:i,inherit:r,underline:a,gradient:o,weight:s,transform:l,align:c,strikethrough:d,italic:h},{size:E})=>{const g=u.fn.variant({variant:"gradient",gradient:o});return{root:MAt(i9(i9(i9(i9({},u.fn.fontStyles()),u.fn.focusStyles()),NAt(t)),RAt({theme:u,truncate:n})),{color:PAt({color:e,theme:u}),fontFamily:r?"inherit":u.fontFamily,fontSize:r||E===void 0?"inherit":Fe({size:E,sizes:u.fontSizes}),lineHeight:r?"inherit":i?1:u.lineHeight,textDecoration:TAt({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:r?"inherit":s,textTransform:l,textAlign:c,fontStyle:h?"italic":void 0}),gradient:{backgroundImage:g.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});const OAt=IAt;var jAt=Object.defineProperty,Az=Object.getOwnPropertySymbols,X9e=Object.prototype.hasOwnProperty,eSe=Object.prototype.propertyIsEnumerable,I1e=(u,e,t)=>e in u?jAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VAt=(u,e)=>{for(var t in e||(e={}))X9e.call(e,t)&&I1e(u,t,e[t]);if(Az)for(var t of Az(e))eSe.call(e,t)&&I1e(u,t,e[t]);return u},HAt=(u,e)=>{var t={};for(var n in u)X9e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Az)for(var n of Az(u))e.indexOf(n)<0&&eSe.call(u,n)&&(t[n]=u[n]);return t};const $At={variant:"text"},tSe=C.forwardRef((u,e)=>{const t=Je("Text",$At,u),{className:n,size:i,weight:r,transform:a,color:o,align:s,variant:l,lineClamp:c,truncate:d,gradient:h,inline:E,inherit:g,underline:m,strikethrough:f,italic:p,classNames:D,styles:x,unstyled:b,span:k,__staticSelector:_}=t,y=HAt(t,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:S,cx:B}=OAt({color:o,lineClamp:c,truncate:d,inline:E,inherit:g,underline:m,strikethrough:f,italic:p,weight:r,transform:a,align:s,gradient:h},{unstyled:b,name:_||"Text",variant:l,size:i});return M.createElement(pt,VAt({ref:e,className:B(S.root,{[S.gradient]:l==="gradient"},n),component:k?"span":"div"},y))});tSe.displayName="@mantine/core/Text";const Fu=tSe;var KAt=Object.defineProperty,O1e=Object.getOwnPropertySymbols,WAt=Object.prototype.hasOwnProperty,GAt=Object.prototype.propertyIsEnumerable,j1e=(u,e,t)=>e in u?KAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,UAt=(u,e)=>{for(var t in e||(e={}))WAt.call(e,t)&&j1e(u,t,e[t]);if(O1e)for(var t of O1e(e))GAt.call(e,t)&&j1e(u,t,e[t]);return u};function qAt({theme:u,color:e}){return e==="dimmed"?u.fn.dimmed():u.fn.themeColor(e||u.primaryColor,u.colorScheme==="dark"?4:7,!1,!0)}var JAt=at((u,{color:e,underline:t})=>({root:UAt({backgroundColor:"transparent",cursor:"pointer",padding:0,border:0,color:qAt({theme:u,color:e})},u.fn.hover({textDecoration:t?"underline":"none"}))}));const ZAt=JAt;var YAt=Object.defineProperty,_z=Object.getOwnPropertySymbols,uSe=Object.prototype.hasOwnProperty,nSe=Object.prototype.propertyIsEnumerable,V1e=(u,e,t)=>e in u?YAt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,H1e=(u,e)=>{for(var t in e||(e={}))uSe.call(e,t)&&V1e(u,t,e[t]);if(_z)for(var t of _z(e))nSe.call(e,t)&&V1e(u,t,e[t]);return u},QAt=(u,e)=>{var t={};for(var n in u)uSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&_z)for(var n of _z(u))e.indexOf(n)<0&&nSe.call(u,n)&&(t[n]=u[n]);return t};const XAt={underline:!0},iSe=C.forwardRef((u,e)=>{const t=Je("Anchor",XAt,u),{component:n,className:i,unstyled:r,variant:a,size:o,color:s,underline:l}=t,c=QAt(t,["component","className","unstyled","variant","size","color","underline"]),{classes:d,cx:h}=ZAt({color:s,underline:l},{name:"Anchor",unstyled:r,variant:a,size:o}),E=n==="button"?{type:"button"}:null;return M.createElement(Fu,H1e(H1e({component:n||"a",ref:e,className:h(d.root,i),size:o},E),c))});iSe.displayName="@mantine/core/Anchor";const a3=iSe,rSe=C.createContext({zIndex:1e3,fixed:!1,layout:"default"}),e_t=rSe.Provider;function t_t(){return C.useContext(rSe)}function aSe(u,e){if(!u)return[];const t=Object.keys(u).filter(n=>n!=="base").map(n=>[Fe({size:n,sizes:e.breakpoints,units:"em"}),u[n]]);return t.sort((n,i)=>Us(n[0])-Us(i[0])),t}var u_t=Object.defineProperty,n_t=Object.defineProperties,i_t=Object.getOwnPropertyDescriptors,$1e=Object.getOwnPropertySymbols,r_t=Object.prototype.hasOwnProperty,a_t=Object.prototype.propertyIsEnumerable,K1e=(u,e,t)=>e in u?u_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,oH=(u,e)=>{for(var t in e||(e={}))r_t.call(e,t)&&K1e(u,t,e[t]);if($1e)for(var t of $1e(e))a_t.call(e,t)&&K1e(u,t,e[t]);return u},W1e=(u,e)=>n_t(u,i_t(e)),o_t=at((u,{height:e,fixed:t,position:n,zIndex:i,borderPosition:r,layout:a})=>{const o=typeof e=="object"&&e!==null?aSe(e,u).reduce((s,[l,c])=>(s[`@media (min-width: ${yl(l)})`]={height:W(c),minHeight:W(c)},s),{}):null;return{root:W1e(oH(W1e(oH(oH({},u.fn.fontStyles()),n),{zIndex:i,left:a==="alt"?"var(--mantine-navbar-width, 0)":0,right:a==="alt"?"var(--mantine-aside-width, 0)":0,height:typeof e=="object"?W(e==null?void 0:e.base)||"100%":W(e),maxHeight:typeof e=="object"?W(e==null?void 0:e.base)||"100%":W(e),position:t?"fixed":"static",boxSizing:"border-box",backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white}),o),{borderBottom:r==="bottom"?`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[2]}`:void 0,borderTop:r==="top"?`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[2]}`:void 0})}});const s_t=o_t;var l_t=Object.defineProperty,Sz=Object.getOwnPropertySymbols,oSe=Object.prototype.hasOwnProperty,sSe=Object.prototype.propertyIsEnumerable,G1e=(u,e,t)=>e in u?l_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,U1e=(u,e)=>{for(var t in e||(e={}))oSe.call(e,t)&&G1e(u,t,e[t]);if(Sz)for(var t of Sz(e))sSe.call(e,t)&&G1e(u,t,e[t]);return u},c_t=(u,e)=>{var t={};for(var n in u)oSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Sz)for(var n of Sz(u))e.indexOf(n)<0&&sSe.call(u,n)&&(t[n]=u[n]);return t};const rue=C.forwardRef((u,e)=>{var t=u,{children:n,className:i,classNames:r,styles:a,height:o,fixed:s=!1,withBorder:l=!0,position:c,zIndex:d,section:h,unstyled:E,__staticSelector:g,variant:m}=t,f=c_t(t,["children","className","classNames","styles","height","fixed","withBorder","position","zIndex","section","unstyled","__staticSelector","variant"]);const p=t_t(),D=d||p.zIndex||id("app"),{classes:x,cx:b,theme:k}=s_t({height:o,fixed:p.fixed||s,position:c,zIndex:typeof D=="number"&&p.layout==="default"?D+1:D,layout:p.layout,borderPosition:l?h==="header"?"bottom":"top":"none"},{name:g,classNames:r,styles:a,unstyled:E,variant:m}),_=typeof o=="object"&&o!==null?aSe(o,k).reduce((y,[S,B])=>(y[`@media (min-width: ${yl(S)})`]={[`--mantine-${h}-height`]:W(B)},y),{}):null;return M.createElement(pt,U1e({component:h==="header"?"header":"footer",className:b(x.root,i),ref:e},f),n,M.createElement(A2t,{styles:()=>({":root":U1e({[`--mantine-${h}-height`]:typeof o=="object"?W(o==null?void 0:o.base)||"100%":W(o)},_)})}))});rue.displayName="@mantine/core/VerticalSection";var d_t=Object.defineProperty,h_t=Object.defineProperties,E_t=Object.getOwnPropertyDescriptors,q1e=Object.getOwnPropertySymbols,g_t=Object.prototype.hasOwnProperty,m_t=Object.prototype.propertyIsEnumerable,J1e=(u,e,t)=>e in u?d_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,f_t=(u,e)=>{for(var t in e||(e={}))g_t.call(e,t)&&J1e(u,t,e[t]);if(q1e)for(var t of q1e(e))m_t.call(e,t)&&J1e(u,t,e[t]);return u},p_t=(u,e)=>h_t(u,E_t(e));const D_t={fixed:!1,position:{top:0,left:0,right:0}},lSe=C.forwardRef((u,e)=>{const t=Je("Header",D_t,u);return M.createElement(rue,p_t(f_t({section:"header",__staticSelector:"Header"},t),{ref:e}))});lSe.displayName="@mantine/core/Header";var x_t=Object.defineProperty,v_t=Object.defineProperties,C_t=Object.getOwnPropertyDescriptors,Z1e=Object.getOwnPropertySymbols,b_t=Object.prototype.hasOwnProperty,k_t=Object.prototype.propertyIsEnumerable,Y1e=(u,e,t)=>e in u?x_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,y_t=(u,e)=>{for(var t in e||(e={}))b_t.call(e,t)&&Y1e(u,t,e[t]);if(Z1e)for(var t of Z1e(e))k_t.call(e,t)&&Y1e(u,t,e[t]);return u},F_t=(u,e)=>v_t(u,C_t(e));const A_t={fixed:!1,position:{bottom:0,left:0,right:0}},cSe=C.forwardRef((u,e)=>{const t=Je("Footer",A_t,u);return M.createElement(rue,F_t(y_t({section:"footer",__staticSelector:"Footer"},t),{ref:e}))});cSe.displayName="@mantine/core/Footer";var __t=Object.defineProperty,Q1e=Object.getOwnPropertySymbols,S_t=Object.prototype.hasOwnProperty,B_t=Object.prototype.propertyIsEnumerable,X1e=(u,e,t)=>e in u?__t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dSe=(u,e)=>{for(var t in e||(e={}))S_t.call(e,t)&&X1e(u,t,e[t]);if(Q1e)for(var t of Q1e(e))B_t.call(e,t)&&X1e(u,t,e[t]);return u};function w_t(u,e){const t=Fe({size:u.padding,sizes:e.spacing}),n=u.navbarOffsetBreakpoint?Fe({size:u.navbarOffsetBreakpoint,sizes:e.breakpoints}):null,i=u.asideOffsetBreakpoint?Fe({size:u.asideOffsetBreakpoint,sizes:e.breakpoints}):null;if(!u.fixed)return{padding:t};const r=Us(n),a=Us(i);return dSe({minHeight:"100vh",paddingTop:`calc(var(--mantine-header-height, 0px) + ${t})`,paddingBottom:`calc(var(--mantine-footer-height, 0px) + ${t})`,paddingLeft:`calc(var(--mantine-navbar-width, 0px) + ${t})`,paddingRight:`calc(var(--mantine-aside-width, 0px) + ${t})`},r===a?{[`@media (max-width: ${yl(r-1)})`]:{paddingLeft:t,paddingRight:t}}:{[`@media (max-width: ${yl(r-1)})`]:{paddingLeft:t},[`@media (max-width: ${yl(a-1)})`]:{paddingRight:t}})}var z_t=at((u,e)=>({root:{boxSizing:"border-box"},body:{display:"flex",boxSizing:"border-box"},main:dSe({flex:1,width:"100vw",boxSizing:"border-box"},w_t(e,u))}));const L_t=z_t;var M_t=Object.defineProperty,Bz=Object.getOwnPropertySymbols,hSe=Object.prototype.hasOwnProperty,ESe=Object.prototype.propertyIsEnumerable,ehe=(u,e,t)=>e in u?M_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,T_t=(u,e)=>{for(var t in e||(e={}))hSe.call(e,t)&&ehe(u,t,e[t]);if(Bz)for(var t of Bz(e))ESe.call(e,t)&&ehe(u,t,e[t]);return u},P_t=(u,e)=>{var t={};for(var n in u)hSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Bz)for(var n of Bz(u))e.indexOf(n)<0&&ESe.call(u,n)&&(t[n]=u[n]);return t};const N_t={fixed:!0,padding:"md"},gSe=C.forwardRef((u,e)=>{const t=Je("AppShell",N_t,u),{children:n,navbar:i,header:r,footer:a,aside:o,fixed:s,zIndex:l,padding:c,navbarOffsetBreakpoint:d,asideOffsetBreakpoint:h,className:E,styles:g,classNames:m,unstyled:f,hidden:p,layout:D,variant:x}=t,b=P_t(t,["children","navbar","header","footer","aside","fixed","zIndex","padding","navbarOffsetBreakpoint","asideOffsetBreakpoint","className","styles","classNames","unstyled","hidden","layout","variant"]),{classes:k,cx:_}=L_t({padding:c,fixed:s,navbarOffsetBreakpoint:d,asideOffsetBreakpoint:h},{styles:g,classNames:m,unstyled:f,name:"AppShell",variant:x});return p?M.createElement(M.Fragment,null,n):M.createElement(e_t,{value:{fixed:s,zIndex:l,layout:D}},M.createElement(pt,T_t({className:_(k.root,E),ref:e},b),r,M.createElement("div",{className:k.body},i,M.createElement("main",{className:k.main},n),o),a))});gSe.displayName="@mantine/core/AppShell";const r9={xs:W(1),sm:W(2),md:W(3),lg:W(4),xl:W(5)};function a9(u,e){const t=u.fn.variant({variant:"outline",color:e}).border;return typeof e=="string"&&(e in u.colors||e.split(".")[0]in u.colors)?t:e===void 0?u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]:e}var R_t=at((u,{color:e},{size:t,variant:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:W(1),borderTop:`${Fe({size:t,sizes:r9})} ${n} ${a9(u,e)}`,marginRight:u.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${Fe({size:t,sizes:r9})} ${n} ${a9(u,e)}`,marginLeft:u.spacing.xs}},labelDefaultStyles:{color:e==="dark"?u.colors.dark[1]:u.fn.themeColor(e,u.colorScheme==="dark"?5:u.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:W(Fe({size:t,sizes:r9})),borderTopColor:a9(u,e),borderTopStyle:n,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:W(Fe({size:t,sizes:r9})),borderLeftColor:a9(u,e),borderLeftStyle:n}}));const I_t=R_t;var O_t=Object.defineProperty,j_t=Object.defineProperties,V_t=Object.getOwnPropertyDescriptors,wz=Object.getOwnPropertySymbols,mSe=Object.prototype.hasOwnProperty,fSe=Object.prototype.propertyIsEnumerable,the=(u,e,t)=>e in u?O_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,uhe=(u,e)=>{for(var t in e||(e={}))mSe.call(e,t)&&the(u,t,e[t]);if(wz)for(var t of wz(e))fSe.call(e,t)&&the(u,t,e[t]);return u},H_t=(u,e)=>j_t(u,V_t(e)),$_t=(u,e)=>{var t={};for(var n in u)mSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&wz)for(var n of wz(u))e.indexOf(n)<0&&fSe.call(u,n)&&(t[n]=u[n]);return t};const K_t={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},zz=C.forwardRef((u,e)=>{const t=Je("Divider",K_t,u),{className:n,color:i,orientation:r,size:a,label:o,labelPosition:s,labelProps:l,variant:c,styles:d,classNames:h,unstyled:E}=t,g=$_t(t,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:m,cx:f}=I_t({color:i},{classNames:h,styles:d,unstyled:E,name:"Divider",variant:c,size:a}),p=r==="vertical",D=r==="horizontal",x=!!o&&D,b=!(l!=null&&l.color);return M.createElement(pt,uhe({ref:e,className:f(m.root,{[m.vertical]:p,[m.horizontal]:D,[m.withLabel]:x},n),role:"separator"},g),x&&M.createElement(Fu,H_t(uhe({},l),{size:(l==null?void 0:l.size)||"xs",mt:W(2),className:f(m.label,m[s],{[m.labelDefaultStyles]:b})}),o))});zz.displayName="@mantine/core/Divider";var W_t=Object.defineProperty,G_t=Object.defineProperties,U_t=Object.getOwnPropertyDescriptors,nhe=Object.getOwnPropertySymbols,q_t=Object.prototype.hasOwnProperty,J_t=Object.prototype.propertyIsEnumerable,ihe=(u,e,t)=>e in u?W_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,rhe=(u,e)=>{for(var t in e||(e={}))q_t.call(e,t)&&ihe(u,t,e[t]);if(nhe)for(var t of nhe(e))J_t.call(e,t)&&ihe(u,t,e[t]);return u},Z_t=(u,e)=>G_t(u,U_t(e)),Y_t=at((u,e,{size:t})=>({item:Z_t(rhe({},u.fn.fontStyles()),{boxSizing:"border-box",wordBreak:"break-all",textAlign:"left",width:"100%",padding:`calc(${Fe({size:t,sizes:u.spacing})} / 1.5) ${Fe({size:t,sizes:u.spacing})}`,cursor:"pointer",fontSize:Fe({size:t,sizes:u.fontSizes}),color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,borderRadius:u.fn.radius(),"&[data-hovered]":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[1]},"&[data-selected]":rhe({backgroundColor:u.fn.variant({variant:"filled"}).background,color:u.fn.variant({variant:"filled"}).color},u.fn.hover({backgroundColor:u.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:u.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:u.colors.gray[6],paddingTop:`calc(${Fe({size:t,sizes:u.spacing})} / 2)`,paddingBottom:`calc(${Fe({size:t,sizes:u.spacing})} / 2)`,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`calc(${Fe({size:t,sizes:u.spacing})} / 1.5) ${Fe({size:t,sizes:u.spacing})}`},separatorLabel:{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]}}));const Q_t=Y_t;var X_t=Object.defineProperty,ahe=Object.getOwnPropertySymbols,e7t=Object.prototype.hasOwnProperty,t7t=Object.prototype.propertyIsEnumerable,ohe=(u,e,t)=>e in u?X_t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,u7t=(u,e)=>{for(var t in e||(e={}))e7t.call(e,t)&&ohe(u,t,e[t]);if(ahe)for(var t of ahe(e))t7t.call(e,t)&&ohe(u,t,e[t]);return u};function aue({data:u,hovered:e,classNames:t,styles:n,isItemSelected:i,uuid:r,__staticSelector:a,onItemHover:o,onItemSelect:s,itemsRefs:l,itemComponent:c,size:d,nothingFound:h,creatable:E,createLabel:g,unstyled:m,variant:f}){const{classes:p}=Q_t(null,{classNames:t,styles:n,unstyled:m,name:a,variant:f,size:d}),D=[],x=[];let b=null;const k=(y,S)=>{const B=typeof i=="function"?i(y.value):!1;return M.createElement(c,u7t({key:y.value,className:p.item,"data-disabled":y.disabled||void 0,"data-hovered":!y.disabled&&e===S||void 0,"data-selected":!y.disabled&&B||void 0,selected:B,onMouseEnter:()=>o(S),id:`${r}-${S}`,role:"option",tabIndex:-1,"aria-selected":e===S,ref:L=>{l&&l.current&&(l.current[y.value]=L)},onMouseDown:y.disabled?null:L=>{L.preventDefault(),s(y)},disabled:y.disabled,variant:f},y))};let _=null;if(u.forEach((y,S)=>{y.creatable?b=S:y.group?(_!==y.group&&(_=y.group,x.push(M.createElement("div",{className:p.separator,key:`__mantine-divider-${S}`},M.createElement(zz,{classNames:{label:p.separatorLabel},label:y.group})))),x.push(k(y,S))):D.push(k(y,S))}),E){const y=u[b];D.push(M.createElement("div",{key:Wh(),className:p.item,"data-hovered":e===b||void 0,onMouseEnter:()=>o(b),onMouseDown:S=>{S.preventDefault(),s(y)},tabIndex:-1,ref:S=>{l&&l.current&&(l.current[y.value]=S)}},g))}return x.length>0&&D.length>0&&D.unshift(M.createElement("div",{className:p.separator,key:"empty-group-separator"},M.createElement(zz,null))),x.length>0||D.length>0?M.createElement(M.Fragment,null,x,D):M.createElement(Fu,{size:d,unstyled:m,className:p.nothingFound},h)}aue.displayName="@mantine/core/SelectItems";var n7t=Object.defineProperty,Lz=Object.getOwnPropertySymbols,pSe=Object.prototype.hasOwnProperty,DSe=Object.prototype.propertyIsEnumerable,she=(u,e,t)=>e in u?n7t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,i7t=(u,e)=>{for(var t in e||(e={}))pSe.call(e,t)&&she(u,t,e[t]);if(Lz)for(var t of Lz(e))DSe.call(e,t)&&she(u,t,e[t]);return u},r7t=(u,e)=>{var t={};for(var n in u)pSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Lz)for(var n of Lz(u))e.indexOf(n)<0&&DSe.call(u,n)&&(t[n]=u[n]);return t};const oue=C.forwardRef((u,e)=>{var t=u,{label:n,value:i}=t,r=r7t(t,["label","value"]);return M.createElement("div",i7t({ref:e},r),n||i)});oue.displayName="@mantine/core/DefaultItem";function a7t(u,e){typeof u=="function"?u(e):u!=null&&(u.current=e)}function xSe(...u){return e=>u.forEach(t=>a7t(t,e))}function Op(...u){return C.useCallback(xSe(...u),u)}const vSe=C.forwardRef((u,e)=>{const{children:t,...n}=u,i=C.Children.toArray(t),r=i.find(s7t);if(r){const a=r.props.children,o=i.map(s=>s===r?C.Children.count(a)>1?C.Children.only(null):C.isValidElement(a)?a.props.children:null:s);return C.createElement(BJ,ft({},n,{ref:e}),C.isValidElement(a)?C.cloneElement(a,void 0,o):null)}return C.createElement(BJ,ft({},n,{ref:e}),t)});vSe.displayName="Slot";const BJ=C.forwardRef((u,e)=>{const{children:t,...n}=u;return C.isValidElement(t)?C.cloneElement(t,{...l7t(n,t.props),ref:xSe(e,t.ref)}):C.Children.count(t)>1?C.Children.only(null):null});BJ.displayName="SlotClone";const o7t=({children:u})=>C.createElement(C.Fragment,null,u);function s7t(u){return C.isValidElement(u)&&u.type===o7t}function l7t(u,e){const t={...e};for(const n in e){const i=u[n],r=e[n];/^on[A-Z]/.test(n)?i&&r?t[n]=(...o)=>{r(...o),i(...o)}:i&&(t[n]=i):n==="style"?t[n]={...i,...r}:n==="className"&&(t[n]=[i,r].filter(Boolean).join(" "))}return{...u,...t}}const c7t=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],SA=c7t.reduce((u,e)=>{const t=C.forwardRef((n,i)=>{const{asChild:r,...a}=n,o=r?vSe:e;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(o,ft({},a,{ref:i}))});return t.displayName=`Primitive.${e}`,{...u,[e]:t}},{}),wJ=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{};function d7t(u,e){return C.useReducer((t,n)=>{const i=e[t][n];return i??t},u)}const BA=u=>{const{present:e,children:t}=u,n=h7t(e),i=typeof t=="function"?t({present:n.isPresent}):C.Children.only(t),r=Op(n.ref,i.ref);return typeof t=="function"||n.isPresent?C.cloneElement(i,{ref:r}):null};BA.displayName="Presence";function h7t(u){const[e,t]=C.useState(),n=C.useRef({}),i=C.useRef(u),r=C.useRef("none"),a=u?"mounted":"unmounted",[o,s]=d7t(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const l=o9(n.current);r.current=o==="mounted"?l:"none"},[o]),wJ(()=>{const l=n.current,c=i.current;if(c!==u){const h=r.current,E=o9(l);u?s("MOUNT"):E==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&h!==E?"ANIMATION_OUT":"UNMOUNT"),i.current=u}},[u,s]),wJ(()=>{if(e){const l=d=>{const E=o9(n.current).includes(d.animationName);d.target===e&&E&&Xo.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===e&&(r.current=o9(n.current))};return e.addEventListener("animationstart",c),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",c),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:C.useCallback(l=>{l&&(n.current=getComputedStyle(l)),t(l)},[])}}function o9(u){return(u==null?void 0:u.animationName)||"none"}function E7t(u,e=[]){let t=[];function n(r,a){const o=C.createContext(a),s=t.length;t=[...t,a];function l(d){const{scope:h,children:E,...g}=d,m=(h==null?void 0:h[u][s])||o,f=C.useMemo(()=>g,Object.values(g));return C.createElement(m.Provider,{value:f},E)}function c(d,h){const E=(h==null?void 0:h[u][s])||o,g=C.useContext(E);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${r}\``)}return l.displayName=r+"Provider",[l,c]}const i=()=>{const r=t.map(a=>C.createContext(a));return function(o){const s=(o==null?void 0:o[u])||r;return C.useMemo(()=>({[`__scope${u}`]:{...o,[u]:s}}),[o,s])}};return i.scopeName=u,[n,g7t(i,...e)]}function g7t(...u){const e=u[0];if(u.length===1)return e;const t=()=>{const n=u.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const a=n.reduce((o,{useScope:s,scopeName:l})=>{const d=s(r)[`__scope${l}`];return{...o,...d}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return t.scopeName=e.scopeName,t}function pf(u){const e=C.useRef(u);return C.useEffect(()=>{e.current=u}),C.useMemo(()=>(...t)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...t)},[])}const m7t=C.createContext(void 0);function f7t(u){const e=C.useContext(m7t);return u||e||"ltr"}function p7t(u,[e,t]){return Math.min(t,Math.max(e,u))}function o3(u,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(u==null||u(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function D7t(u,e){return C.useReducer((t,n)=>{const i=e[t][n];return i??t},u)}const CSe="ScrollArea",[bSe,NVn]=E7t(CSe),[x7t,Wl]=bSe(CSe),v7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,type:n="hover",dir:i,scrollHideDelay:r=600,...a}=u,[o,s]=C.useState(null),[l,c]=C.useState(null),[d,h]=C.useState(null),[E,g]=C.useState(null),[m,f]=C.useState(null),[p,D]=C.useState(0),[x,b]=C.useState(0),[k,_]=C.useState(!1),[y,S]=C.useState(!1),B=Op(e,T=>s(T)),L=f7t(i);return C.createElement(x7t,{scope:t,type:n,dir:L,scrollHideDelay:r,scrollArea:o,viewport:l,onViewportChange:c,content:d,onContentChange:h,scrollbarX:E,onScrollbarXChange:g,scrollbarXEnabled:k,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:f,scrollbarYEnabled:y,onScrollbarYEnabledChange:S,onCornerWidthChange:D,onCornerHeightChange:b},C.createElement(SA.div,ft({dir:L},a,{ref:B,style:{position:"relative","--radix-scroll-area-corner-width":p+"px","--radix-scroll-area-corner-height":x+"px",...u.style}})))}),C7t="ScrollAreaViewport",b7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,children:n,...i}=u,r=Wl(C7t,t),a=C.useRef(null),o=Op(e,a,r.onViewportChange);return C.createElement(C.Fragment,null,C.createElement("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}"}}),C.createElement(SA.div,ft({"data-radix-scroll-area-viewport":""},i,{ref:o,style:{overflowX:r.scrollbarXEnabled?"scroll":"hidden",overflowY:r.scrollbarYEnabled?"scroll":"hidden",...u.style}}),C.createElement("div",{ref:r.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),k4="ScrollAreaScrollbar",k7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=Wl(k4,u.__scopeScrollArea),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:a}=i,o=u.orientation==="horizontal";return C.useEffect(()=>(o?r(!0):a(!0),()=>{o?r(!1):a(!1)}),[o,r,a]),i.type==="hover"?C.createElement(y7t,ft({},n,{ref:e,forceMount:t})):i.type==="scroll"?C.createElement(F7t,ft({},n,{ref:e,forceMount:t})):i.type==="auto"?C.createElement(kSe,ft({},n,{ref:e,forceMount:t})):i.type==="always"?C.createElement(sue,ft({},n,{ref:e})):null}),y7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=Wl(k4,u.__scopeScrollArea),[r,a]=C.useState(!1);return C.useEffect(()=>{const o=i.scrollArea;let s=0;if(o){const l=()=>{window.clearTimeout(s),a(!0)},c=()=>{s=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",l),o.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),o.removeEventListener("pointerenter",l),o.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),C.createElement(BA,{present:t||r},C.createElement(kSe,ft({"data-state":r?"visible":"hidden"},n,{ref:e})))}),F7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=Wl(k4,u.__scopeScrollArea),r=u.orientation==="horizontal",a=GR(()=>s("SCROLL_END"),100),[o,s]=D7t("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 C.useEffect(()=>{if(o==="idle"){const l=window.setTimeout(()=>s("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(l)}},[o,i.scrollHideDelay,s]),C.useEffect(()=>{const l=i.viewport,c=r?"scrollLeft":"scrollTop";if(l){let d=l[c];const h=()=>{const E=l[c];d!==E&&(s("SCROLL"),a()),d=E};return l.addEventListener("scroll",h),()=>l.removeEventListener("scroll",h)}},[i.viewport,r,s,a]),C.createElement(BA,{present:t||o!=="hidden"},C.createElement(sue,ft({"data-state":o==="hidden"?"hidden":"visible"},n,{ref:e,onPointerEnter:o3(u.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:o3(u.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),kSe=C.forwardRef((u,e)=>{const t=Wl(k4,u.__scopeScrollArea),{forceMount:n,...i}=u,[r,a]=C.useState(!1),o=u.orientation==="horizontal",s=GR(()=>{if(t.viewport){const l=t.viewport.offsetWidth{const{orientation:t="vertical",...n}=u,i=Wl(k4,u.__scopeScrollArea),r=C.useRef(null),a=C.useRef(0),[o,s]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=_Se(o.viewport,o.content),c={...n,sizes:o,onSizesChange:s,hasThumb:l>0&&l<1,onThumbChange:h=>r.current=h,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:h=>a.current=h};function d(h,E){return M7t(h,a.current,o,E)}return t==="horizontal"?C.createElement(A7t,ft({},c,{ref:e,onThumbPositionChange:()=>{if(i.viewport&&r.current){const h=i.viewport.scrollLeft,E=lhe(h,o,i.dir);r.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=d(h,i.dir))}})):t==="vertical"?C.createElement(_7t,ft({},c,{ref:e,onThumbPositionChange:()=>{if(i.viewport&&r.current){const h=i.viewport.scrollTop,E=lhe(h,o);r.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=d(h))}})):null}),A7t=C.forwardRef((u,e)=>{const{sizes:t,onSizesChange:n,...i}=u,r=Wl(k4,u.__scopeScrollArea),[a,o]=C.useState(),s=C.useRef(null),l=Op(e,s,r.onScrollbarXChange);return C.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),C.createElement(FSe,ft({"data-orientation":"horizontal"},i,{ref:l,sizes:t,style:{bottom:0,left:r.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:r.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":WR(t)+"px",...u.style},onThumbPointerDown:c=>u.onThumbPointerDown(c.x),onDragScroll:c=>u.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(r.viewport){const h=r.viewport.scrollLeft+c.deltaX;u.onWheelScroll(h),BSe(h,d)&&c.preventDefault()}},onResize:()=>{s.current&&r.viewport&&a&&n({content:r.viewport.scrollWidth,viewport:r.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Mz(a.paddingLeft),paddingEnd:Mz(a.paddingRight)}})}}))}),_7t=C.forwardRef((u,e)=>{const{sizes:t,onSizesChange:n,...i}=u,r=Wl(k4,u.__scopeScrollArea),[a,o]=C.useState(),s=C.useRef(null),l=Op(e,s,r.onScrollbarYChange);return C.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),C.createElement(FSe,ft({"data-orientation":"vertical"},i,{ref:l,sizes:t,style:{top:0,right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":WR(t)+"px",...u.style},onThumbPointerDown:c=>u.onThumbPointerDown(c.y),onDragScroll:c=>u.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(r.viewport){const h=r.viewport.scrollTop+c.deltaY;u.onWheelScroll(h),BSe(h,d)&&c.preventDefault()}},onResize:()=>{s.current&&r.viewport&&a&&n({content:r.viewport.scrollHeight,viewport:r.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Mz(a.paddingTop),paddingEnd:Mz(a.paddingBottom)}})}}))}),[S7t,ySe]=bSe(k4),FSe=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,sizes:n,hasThumb:i,onThumbChange:r,onThumbPointerUp:a,onThumbPointerDown:o,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:c,onResize:d,...h}=u,E=Wl(k4,t),[g,m]=C.useState(null),f=Op(e,B=>m(B)),p=C.useRef(null),D=C.useRef(""),x=E.viewport,b=n.content-n.viewport,k=pf(c),_=pf(s),y=GR(d,10);function S(B){if(p.current){const L=B.clientX-p.current.left,T=B.clientY-p.current.top;l({x:L,y:T})}}return C.useEffect(()=>{const B=L=>{const T=L.target;(g==null?void 0:g.contains(T))&&k(L,b)};return document.addEventListener("wheel",B,{passive:!1}),()=>document.removeEventListener("wheel",B,{passive:!1})},[x,g,b,k]),C.useEffect(_,[n,_]),Av(g,y),Av(E.content,y),C.createElement(S7t,{scope:t,scrollbar:g,hasThumb:i,onThumbChange:pf(r),onThumbPointerUp:pf(a),onThumbPositionChange:_,onThumbPointerDown:pf(o)},C.createElement(SA.div,ft({},h,{ref:f,style:{position:"absolute",...h.style},onPointerDown:o3(u.onPointerDown,B=>{B.button===0&&(B.target.setPointerCapture(B.pointerId),p.current=g.getBoundingClientRect(),D.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S(B))}),onPointerMove:o3(u.onPointerMove,S),onPointerUp:o3(u.onPointerUp,B=>{const L=B.target;L.hasPointerCapture(B.pointerId)&&L.releasePointerCapture(B.pointerId),document.body.style.webkitUserSelect=D.current,p.current=null})})))}),zJ="ScrollAreaThumb",B7t=C.forwardRef((u,e)=>{const{forceMount:t,...n}=u,i=ySe(zJ,u.__scopeScrollArea);return C.createElement(BA,{present:t||i.hasThumb},C.createElement(w7t,ft({ref:e},n)))}),w7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,style:n,...i}=u,r=Wl(zJ,t),a=ySe(zJ,t),{onThumbPositionChange:o}=a,s=Op(e,d=>a.onThumbChange(d)),l=C.useRef(),c=GR(()=>{l.current&&(l.current(),l.current=void 0)},100);return C.useEffect(()=>{const d=r.viewport;if(d){const h=()=>{if(c(),!l.current){const E=T7t(d,o);l.current=E,o()}};return o(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[r.viewport,c,o]),C.createElement(SA.div,ft({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:o3(u.onPointerDownCapture,d=>{const E=d.target.getBoundingClientRect(),g=d.clientX-E.left,m=d.clientY-E.top;a.onThumbPointerDown({x:g,y:m})}),onPointerUp:o3(u.onPointerUp,a.onThumbPointerUp)}))}),ASe="ScrollAreaCorner",z7t=C.forwardRef((u,e)=>{const t=Wl(ASe,u.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&n?C.createElement(L7t,ft({},u,{ref:e})):null}),L7t=C.forwardRef((u,e)=>{const{__scopeScrollArea:t,...n}=u,i=Wl(ASe,t),[r,a]=C.useState(0),[o,s]=C.useState(0),l=!!(r&&o);return Av(i.scrollbarX,()=>{var c;const d=((c=i.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;i.onCornerHeightChange(d),s(d)}),Av(i.scrollbarY,()=>{var c;const d=((c=i.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;i.onCornerWidthChange(d),a(d)}),l?C.createElement(SA.div,ft({},n,{ref:e,style:{width:r,height:o,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...u.style}})):null});function Mz(u){return u?parseInt(u,10):0}function _Se(u,e){const t=u/e;return isNaN(t)?0:t}function WR(u){const e=_Se(u.viewport,u.content),t=u.scrollbar.paddingStart+u.scrollbar.paddingEnd,n=(u.scrollbar.size-t)*e;return Math.max(n,18)}function M7t(u,e,t,n="ltr"){const i=WR(t),r=i/2,a=e||r,o=i-a,s=t.scrollbar.paddingStart+a,l=t.scrollbar.size-t.scrollbar.paddingEnd-o,c=t.content-t.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return SSe([s,l],d)(u)}function lhe(u,e,t="ltr"){const n=WR(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=e.scrollbar.size-i,a=e.content-e.viewport,o=r-n,s=t==="ltr"?[0,a]:[a*-1,0],l=p7t(u,s);return SSe([0,a],[0,o])(l)}function SSe(u,e){return t=>{if(u[0]===u[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(u[1]-u[0]);return e[0]+n*(t-u[0])}}function BSe(u,e){return u>0&&u{})=>{let t={left:u.scrollLeft,top:u.scrollTop},n=0;return function i(){const r={left:u.scrollLeft,top:u.scrollTop},a=t.left!==r.left,o=t.top!==r.top;(a||o)&&e(),t=r,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function GR(u,e){const t=pf(u),n=C.useRef(0);return C.useEffect(()=>()=>window.clearTimeout(n.current),[]),C.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(t,e)},[t,e])}function Av(u,e){const t=pf(e);wJ(()=>{let n=0;if(u){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(t)});return i.observe(u),()=>{window.cancelAnimationFrame(n),i.unobserve(u)}}},[u,t])}const P7t=v7t,N7t=b7t,che=k7t,dhe=B7t,R7t=z7t;var I7t=at((u,{scrollbarSize:e,offsetScrollbars:t,scrollbarHovered:n,hidden:i})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:t?W(e):void 0,paddingBottom:t?W(e):void 0},scrollbar:{display:i?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${W(e)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[8]:u.colors.gray[0],[`& .${s1("thumb")}`]:{backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.white,.5):u.fn.rgba(u.black,.5)}},'&[data-orientation="vertical"]':{width:W(e)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:W(e)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:s1("thumb"),flex:1,backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.white,.4):u.fn.rgba(u.black,.4),borderRadius:W(e),position:"relative",transition:"background-color 150ms ease",display:i?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:W(44),minHeight:W(44)}},corner:{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:i?"none":void 0}}));const O7t=I7t;var j7t=Object.defineProperty,V7t=Object.defineProperties,H7t=Object.getOwnPropertyDescriptors,Tz=Object.getOwnPropertySymbols,wSe=Object.prototype.hasOwnProperty,zSe=Object.prototype.propertyIsEnumerable,hhe=(u,e,t)=>e in u?j7t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,LJ=(u,e)=>{for(var t in e||(e={}))wSe.call(e,t)&&hhe(u,t,e[t]);if(Tz)for(var t of Tz(e))zSe.call(e,t)&&hhe(u,t,e[t]);return u},LSe=(u,e)=>V7t(u,H7t(e)),MSe=(u,e)=>{var t={};for(var n in u)wSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Tz)for(var n of Tz(u))e.indexOf(n)<0&&zSe.call(u,n)&&(t[n]=u[n]);return t};const TSe={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},UR=C.forwardRef((u,e)=>{const t=Je("ScrollArea",TSe,u),{children:n,className:i,classNames:r,styles:a,scrollbarSize:o,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:d,viewportRef:h,onScrollPositionChange:E,unstyled:g,variant:m,viewportProps:f}=t,p=MSe(t,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[D,x]=C.useState(!1),b=Tr(),{classes:k,cx:_}=O7t({scrollbarSize:o,offsetScrollbars:d,scrollbarHovered:D,hidden:l==="never"},{name:"ScrollArea",classNames:r,styles:a,unstyled:g,variant:m});return M.createElement(P7t,{type:l==="never"?"always":l,scrollHideDelay:s,dir:c||b.dir,ref:e,asChild:!0},M.createElement(pt,LJ({className:_(k.root,i)},p),M.createElement(N7t,LSe(LJ({},f),{className:k.viewport,ref:h,onScroll:typeof E=="function"?({currentTarget:y})=>E({x:y.scrollLeft,y:y.scrollTop}):void 0}),n),M.createElement(che,{orientation:"horizontal",className:k.scrollbar,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1)},M.createElement(dhe,{className:k.thumb})),M.createElement(che,{orientation:"vertical",className:k.scrollbar,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1)},M.createElement(dhe,{className:k.thumb})),M.createElement(R7t,{className:k.corner})))}),PSe=C.forwardRef((u,e)=>{const t=Je("ScrollAreaAutosize",TSe,u),{children:n,classNames:i,styles:r,scrollbarSize:a,scrollHideDelay:o,type:s,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:h,unstyled:E,sx:g,variant:m,viewportProps:f}=t,p=MSe(t,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return M.createElement(pt,LSe(LJ({},p),{ref:e,sx:[{display:"flex"},...BR(g)]}),M.createElement(pt,{sx:{display:"flex",flexDirection:"column",flex:1}},M.createElement(UR,{classNames:i,styles:r,scrollHideDelay:o,scrollbarSize:a,type:s,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:h,unstyled:E,variant:m,viewportProps:f},n)))});PSe.displayName="@mantine/core/ScrollAreaAutosize";UR.displayName="@mantine/core/ScrollArea";UR.Autosize=PSe;const By=UR;var $7t=Object.defineProperty,K7t=Object.defineProperties,W7t=Object.getOwnPropertyDescriptors,Pz=Object.getOwnPropertySymbols,NSe=Object.prototype.hasOwnProperty,RSe=Object.prototype.propertyIsEnumerable,Ehe=(u,e,t)=>e in u?$7t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ghe=(u,e)=>{for(var t in e||(e={}))NSe.call(e,t)&&Ehe(u,t,e[t]);if(Pz)for(var t of Pz(e))RSe.call(e,t)&&Ehe(u,t,e[t]);return u},G7t=(u,e)=>K7t(u,W7t(e)),U7t=(u,e)=>{var t={};for(var n in u)NSe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Pz)for(var n of Pz(u))e.indexOf(n)<0&&RSe.call(u,n)&&(t[n]=u[n]);return t};const qR=C.forwardRef((u,e)=>{var t=u,{style:n}=t,i=U7t(t,["style"]);return M.createElement(By,G7t(ghe({},i),{style:ghe({width:"100%"},n),viewportProps:{tabIndex:-1},viewportRef:e}),i.children)});qR.displayName="@mantine/core/SelectScrollArea";var q7t=at(()=>({dropdown:{},itemsWrapper:{padding:W(4),display:"flex",width:"100%",boxSizing:"border-box"}}));const J7t=q7t;var Z7t=function(u){if(typeof document>"u")return null;var e=Array.isArray(u)?u[0]:u;return e.ownerDocument.body},bD=new WeakMap,s9=new WeakMap,l9={},sH=0,ISe=function(u){return u&&(u.host||ISe(u.parentNode))},Y7t=function(u,e){return e.map(function(t){if(u.contains(t))return t;var n=ISe(t);return n&&u.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",u,". Doing nothing"),null)}).filter(function(t){return!!t})},Q7t=function(u,e,t,n){var i=Y7t(e,Array.isArray(u)?u:[u]);l9[t]||(l9[t]=new WeakMap);var r=l9[t],a=[],o=new Set,s=new Set(i),l=function(d){!d||o.has(d)||(o.add(d),l(d.parentNode))};i.forEach(l);var c=function(d){!d||s.has(d)||Array.prototype.forEach.call(d.children,function(h){if(o.has(h))c(h);else{var E=h.getAttribute(n),g=E!==null&&E!=="false",m=(bD.get(h)||0)+1,f=(r.get(h)||0)+1;bD.set(h,m),r.set(h,f),a.push(h),m===1&&g&&s9.set(h,!0),f===1&&h.setAttribute(t,"true"),g||h.setAttribute(n,"true")}})};return c(e),o.clear(),sH++,function(){a.forEach(function(d){var h=bD.get(d)-1,E=r.get(d)-1;bD.set(d,h),r.set(d,E),h||(s9.has(d)||d.removeAttribute(n),s9.delete(d)),E||d.removeAttribute(t)}),sH--,sH||(bD=new WeakMap,bD=new WeakMap,s9=new WeakMap,l9={})}},OSe=function(u,e,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(u)?u:[u]),i=e||Z7t(u);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),Q7t(n,i,t,"aria-hidden")):function(){return null}};const X7t=["top","right","bottom","left"],Uc=Math.min,Ao=Math.max,Nz=Math.round,c9=Math.floor,Jg=u=>({x:u,y:u}),e9t={left:"right",right:"left",bottom:"top",top:"bottom"},t9t={start:"end",end:"start"};function MJ(u,e,t){return Ao(u,Uc(e,t))}function b1(u,e){return typeof u=="function"?u(e):u}function qc(u){return u.split("-")[0]}function DC(u){return u.split("-")[1]}function lue(u){return u==="x"?"y":"x"}function cue(u){return u==="y"?"height":"width"}function jp(u){return["top","bottom"].includes(qc(u))?"y":"x"}function due(u){return lue(jp(u))}function u9t(u,e,t){t===void 0&&(t=!1);const n=DC(u),i=due(u),r=cue(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=Rz(a)),[a,Rz(a)]}function n9t(u){const e=Rz(u);return[TJ(u),e,TJ(e)]}function TJ(u){return u.replace(/start|end/g,e=>t9t[e])}function i9t(u,e,t){const n=["left","right"],i=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(u){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?r:a;default:return[]}}function r9t(u,e,t,n){const i=DC(u);let r=i9t(qc(u),t==="start",n);return i&&(r=r.map(a=>a+"-"+i),e&&(r=r.concat(r.map(TJ)))),r}function Rz(u){return u.replace(/left|right|bottom|top/g,e=>e9t[e])}function a9t(u){return{top:0,right:0,bottom:0,left:0,...u}}function hue(u){return typeof u!="number"?a9t(u):{top:u,right:u,bottom:u,left:u}}function _v(u){return{...u,top:u.y,left:u.x,right:u.x+u.width,bottom:u.y+u.height}}function mhe(u,e,t){let{reference:n,floating:i}=u;const r=jp(e),a=due(e),o=cue(a),s=qc(e),l=r==="y",c=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[o]/2-i[o]/2;let E;switch(s){case"top":E={x:c,y:n.y-i.height};break;case"bottom":E={x:c,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:d};break;case"left":E={x:n.x-i.width,y:d};break;default:E={x:n.x,y:n.y}}switch(DC(e)){case"start":E[a]-=h*(t&&l?-1:1);break;case"end":E[a]+=h*(t&&l?-1:1);break}return E}const o9t=async(u,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:a}=t,o=r.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:u,floating:e,strategy:i}),{x:c,y:d}=mhe(l,n,s),h=n,E={},g=0;for(let m=0;m({name:"arrow",options:u,async fn(e){const{x:t,y:n,placement:i,rects:r,platform:a,elements:o}=e,{element:s,padding:l=0}=b1(u,e)||{};if(s==null)return{};const c=hue(l),d={x:t,y:n},h=due(i),E=cue(h),g=await a.getDimensions(s),m=h==="y",f=m?"top":"left",p=m?"bottom":"right",D=m?"clientHeight":"clientWidth",x=r.reference[E]+r.reference[h]-d[h]-r.floating[E],b=d[h]-r.reference[h],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s));let _=k?k[D]:0;(!_||!await(a.isElement==null?void 0:a.isElement(k)))&&(_=o.floating[D]||r.floating[E]);const y=x/2-b/2,S=_/2-g[E]/2-1,B=Uc(c[f],S),L=Uc(c[p],S),T=B,N=_-g[E]-L,F=_/2-g[E]/2+y,A=MJ(T,F,N),P=DC(i)!=null&&F!=A&&r.reference[E]/2-(FT<=0)){var S,B;const T=(((S=i.flip)==null?void 0:S.index)||0)+1,N=b[T];if(N)return{data:{index:T,overflows:y},reset:{placement:N}};let F=(B=y.filter(A=>A.overflows[0]<=0).sort((A,z)=>A.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!F)switch(h){case"bestFit":{var L;const A=(L=y.map(z=>[z.placement,z.overflows.filter(P=>P>0).reduce((P,I)=>P+I,0)]).sort((z,P)=>z[1]-P[1])[0])==null?void 0:L[0];A&&(F=A);break}case"initialPlacement":F=a;break}if(n!==F)return{reset:{placement:F}}}return{}}}};function fhe(u,e){return{top:u.top-e.height,right:u.right-e.width,bottom:u.bottom-e.height,left:u.left-e.width}}function phe(u){return X7t.some(e=>u[e]>=0)}const s9t=function(u){return u===void 0&&(u={}),{name:"hide",options:u,async fn(e){const{rects:t}=e,{strategy:n="referenceHidden",...i}=b1(u,e);switch(n){case"referenceHidden":{const r=await wy(e,{...i,elementContext:"reference"}),a=fhe(r,t.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:phe(a)}}}case"escaped":{const r=await wy(e,{...i,altBoundary:!0}),a=fhe(r,t.floating);return{data:{escapedOffsets:a,escaped:phe(a)}}}default:return{}}}}};function jSe(u){const e=Uc(...u.map(r=>r.left)),t=Uc(...u.map(r=>r.top)),n=Ao(...u.map(r=>r.right)),i=Ao(...u.map(r=>r.bottom));return{x:e,y:t,width:n-e,height:i-t}}function l9t(u){const e=u.slice().sort((i,r)=>i.y-r.y),t=[];let n=null;for(let i=0;in.height/2?t.push([r]):t[t.length-1].push(r),n=r}return t.map(i=>_v(jSe(i)))}const VSe=function(u){return u===void 0&&(u={}),{name:"inline",options:u,async fn(e){const{placement:t,elements:n,rects:i,platform:r,strategy:a}=e,{padding:o=2,x:s,y:l}=b1(u,e),c=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(n.reference))||[]),d=l9t(c),h=_v(jSe(c)),E=hue(o);function g(){if(d.length===2&&d[0].left>d[1].right&&s!=null&&l!=null)return d.find(f=>s>f.left-E.left&&sf.top-E.top&&l=2){if(jp(t)==="y"){const L=d[0],T=d[d.length-1],N=qc(t)==="top",F=L.top,A=T.bottom,z=N?L.left:T.left,P=N?L.right:T.right,I=P-z,j=A-F;return{top:F,bottom:A,left:z,right:P,width:I,height:j,x:z,y:F}}const f=qc(t)==="left",p=Ao(...d.map(L=>L.right)),D=Uc(...d.map(L=>L.left)),x=d.filter(L=>f?L.left===D:L.right===p),b=x[0].top,k=x[x.length-1].bottom,_=D,y=p,S=y-_,B=k-b;return{top:b,bottom:k,left:_,right:y,width:S,height:B,x:_,y:b}}return h}const m=await r.getElementRects({reference:{getBoundingClientRect:g},floating:n.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};async function c9t(u,e){const{placement:t,platform:n,elements:i}=u,r=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=qc(t),o=DC(t),s=jp(t)==="y",l=["left","top"].includes(a)?-1:1,c=r&&s?-1:1,d=b1(e,u);let{mainAxis:h,crossAxis:E,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return o&&typeof g=="number"&&(E=o==="end"?g*-1:g),s?{x:E*c,y:h*l}:{x:h*l,y:E*c}}const gue=function(u){return u===void 0&&(u=0),{name:"offset",options:u,async fn(e){const{x:t,y:n}=e,i=await c9t(e,u);return{x:t+i.x,y:n+i.y,data:i}}}},JR=function(u){return u===void 0&&(u={}),{name:"shift",options:u,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:o={fn:f=>{let{x:p,y:D}=f;return{x:p,y:D}}},...s}=b1(u,e),l={x:t,y:n},c=await wy(e,s),d=jp(qc(i)),h=lue(d);let E=l[h],g=l[d];if(r){const f=h==="y"?"top":"left",p=h==="y"?"bottom":"right",D=E+c[f],x=E-c[p];E=MJ(D,E,x)}if(a){const f=d==="y"?"top":"left",p=d==="y"?"bottom":"right",D=g+c[f],x=g-c[p];g=MJ(D,g,x)}const m=o.fn({...e,[h]:E,[d]:g});return{...m,data:{x:m.x-t,y:m.y-n}}}}},HSe=function(u){return u===void 0&&(u={}),{options:u,fn(e){const{x:t,y:n,placement:i,rects:r,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=b1(u,e),c={x:t,y:n},d=jp(i),h=lue(d);let E=c[h],g=c[d];const m=b1(o,e),f=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const x=h==="y"?"height":"width",b=r.reference[h]-r.floating[x]+f.mainAxis,k=r.reference[h]+r.reference[x]-f.mainAxis;Ek&&(E=k)}if(l){var p,D;const x=h==="y"?"width":"height",b=["top","left"].includes(qc(i)),k=r.reference[d]-r.floating[x]+(b&&((p=a.offset)==null?void 0:p[d])||0)+(b?0:f.crossAxis),_=r.reference[d]+r.reference[x]+(b?0:((D=a.offset)==null?void 0:D[d])||0)-(b?f.crossAxis:0);g_&&(g=_)}return{[h]:E,[d]:g}}}},$Se=function(u){return u===void 0&&(u={}),{name:"size",options:u,async fn(e){const{placement:t,rects:n,platform:i,elements:r}=e,{apply:a=()=>{},...o}=b1(u,e),s=await wy(e,o),l=qc(t),c=DC(t),d=jp(t)==="y",{width:h,height:E}=n.floating;let g,m;l==="top"||l==="bottom"?(g=l,m=c===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(m=l,g=c==="end"?"top":"bottom");const f=E-s[g],p=h-s[m],D=!e.middlewareData.shift;let x=f,b=p;if(d){const _=h-s.left-s.right;b=c||D?Uc(p,_):_}else{const _=E-s.top-s.bottom;x=c||D?Uc(f,_):_}if(D&&!c){const _=Ao(s.left,0),y=Ao(s.right,0),S=Ao(s.top,0),B=Ao(s.bottom,0);d?b=h-2*(_!==0||y!==0?_+y:Ao(s.left,s.right)):x=E-2*(S!==0||B!==0?S+B:Ao(s.top,s.bottom))}await a({...e,availableWidth:b,availableHeight:x});const k=await i.getDimensions(r.floating);return h!==k.width||E!==k.height?{reset:{rects:!0}}:{}}}};function Zg(u){return KSe(u)?(u.nodeName||"").toLowerCase():"#document"}function k0(u){var e;return(u==null||(e=u.ownerDocument)==null?void 0:e.defaultView)||window}function y4(u){var e;return(e=(KSe(u)?u.ownerDocument:u.document)||window.document)==null?void 0:e.documentElement}function KSe(u){return u instanceof Node||u instanceof k0(u).Node}function s4(u){return u instanceof Element||u instanceof k0(u).Element}function k1(u){return u instanceof HTMLElement||u instanceof k0(u).HTMLElement}function Dhe(u){return typeof ShadowRoot>"u"?!1:u instanceof ShadowRoot||u instanceof k0(u).ShadowRoot}function wA(u){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ll(u);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function d9t(u){return["table","td","th"].includes(Zg(u))}function mue(u){const e=fue(),t=Ll(u);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function h9t(u){let e=Sv(u);for(;k1(e)&&!ZR(e);){if(mue(e))return e;e=Sv(e)}return null}function fue(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ZR(u){return["html","body","#document"].includes(Zg(u))}function Ll(u){return k0(u).getComputedStyle(u)}function YR(u){return s4(u)?{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}:{scrollLeft:u.pageXOffset,scrollTop:u.pageYOffset}}function Sv(u){if(Zg(u)==="html")return u;const e=u.assignedSlot||u.parentNode||Dhe(u)&&u.host||y4(u);return Dhe(e)?e.host:e}function WSe(u){const e=Sv(u);return ZR(e)?u.ownerDocument?u.ownerDocument.body:u.body:k1(e)&&wA(e)?e:WSe(e)}function Eg(u,e){var t;e===void 0&&(e=[]);const n=WSe(u),i=n===((t=u.ownerDocument)==null?void 0:t.body),r=k0(n);return i?e.concat(r,r.visualViewport||[],wA(n)?n:[]):e.concat(n,Eg(n))}function GSe(u){const e=Ll(u);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=k1(u),r=i?u.offsetWidth:t,a=i?u.offsetHeight:n,o=Nz(t)!==r||Nz(n)!==a;return o&&(t=r,n=a),{width:t,height:n,$:o}}function pue(u){return s4(u)?u:u.contextElement}function p5(u){const e=pue(u);if(!k1(e))return Jg(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:r}=GSe(e);let a=(r?Nz(t.width):t.width)/n,o=(r?Nz(t.height):t.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const E9t=Jg(0);function USe(u){const e=k0(u);return!fue()||!e.visualViewport?E9t:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function g9t(u,e,t){return e===void 0&&(e=!1),!t||e&&t!==k0(u)?!1:e}function Q3(u,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=u.getBoundingClientRect(),r=pue(u);let a=Jg(1);e&&(n?s4(n)&&(a=p5(n)):a=p5(u));const o=g9t(r,t,n)?USe(r):Jg(0);let s=(i.left+o.x)/a.x,l=(i.top+o.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(r){const h=k0(r),E=n&&s4(n)?k0(n):n;let g=h.frameElement;for(;g&&n&&E!==h;){const m=p5(g),f=g.getBoundingClientRect(),p=Ll(g),D=f.left+(g.clientLeft+parseFloat(p.paddingLeft))*m.x,x=f.top+(g.clientTop+parseFloat(p.paddingTop))*m.y;s*=m.x,l*=m.y,c*=m.x,d*=m.y,s+=D,l+=x,g=k0(g).frameElement}}return _v({width:c,height:d,x:s,y:l})}function m9t(u){let{rect:e,offsetParent:t,strategy:n}=u;const i=k1(t),r=y4(t);if(t===r)return e;let a={scrollLeft:0,scrollTop:0},o=Jg(1);const s=Jg(0);if((i||!i&&n!=="fixed")&&((Zg(t)!=="body"||wA(r))&&(a=YR(t)),k1(t))){const l=Q3(t);o=p5(t),s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}return{width:e.width*o.x,height:e.height*o.y,x:e.x*o.x-a.scrollLeft*o.x+s.x,y:e.y*o.y-a.scrollTop*o.y+s.y}}function f9t(u){return Array.from(u.getClientRects())}function qSe(u){return Q3(y4(u)).left+YR(u).scrollLeft}function p9t(u){const e=y4(u),t=YR(u),n=u.ownerDocument.body,i=Ao(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Ao(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+qSe(u);const o=-t.scrollTop;return Ll(n).direction==="rtl"&&(a+=Ao(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:a,y:o}}function D9t(u,e){const t=k0(u),n=y4(u),i=t.visualViewport;let r=n.clientWidth,a=n.clientHeight,o=0,s=0;if(i){r=i.width,a=i.height;const l=fue();(!l||l&&e==="fixed")&&(o=i.offsetLeft,s=i.offsetTop)}return{width:r,height:a,x:o,y:s}}function x9t(u,e){const t=Q3(u,!0,e==="fixed"),n=t.top+u.clientTop,i=t.left+u.clientLeft,r=k1(u)?p5(u):Jg(1),a=u.clientWidth*r.x,o=u.clientHeight*r.y,s=i*r.x,l=n*r.y;return{width:a,height:o,x:s,y:l}}function xhe(u,e,t){let n;if(e==="viewport")n=D9t(u,t);else if(e==="document")n=p9t(y4(u));else if(s4(e))n=x9t(e,t);else{const i=USe(u);n={...e,x:e.x-i.x,y:e.y-i.y}}return _v(n)}function JSe(u,e){const t=Sv(u);return t===e||!s4(t)||ZR(t)?!1:Ll(t).position==="fixed"||JSe(t,e)}function v9t(u,e){const t=e.get(u);if(t)return t;let n=Eg(u).filter(o=>s4(o)&&Zg(o)!=="body"),i=null;const r=Ll(u).position==="fixed";let a=r?Sv(u):u;for(;s4(a)&&!ZR(a);){const o=Ll(a),s=mue(a);!s&&o.position==="fixed"&&(i=null),(r?!s&&!i:!s&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||wA(a)&&!s&&JSe(u,a))?n=n.filter(c=>c!==a):i=o,a=Sv(a)}return e.set(u,n),n}function C9t(u){let{element:e,boundary:t,rootBoundary:n,strategy:i}=u;const a=[...t==="clippingAncestors"?v9t(e,this._c):[].concat(t),n],o=a[0],s=a.reduce((l,c)=>{const d=xhe(e,c,i);return l.top=Ao(d.top,l.top),l.right=Uc(d.right,l.right),l.bottom=Uc(d.bottom,l.bottom),l.left=Ao(d.left,l.left),l},xhe(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function b9t(u){return GSe(u)}function k9t(u,e,t){const n=k1(e),i=y4(e),r=t==="fixed",a=Q3(u,!0,r,e);let o={scrollLeft:0,scrollTop:0};const s=Jg(0);if(n||!n&&!r)if((Zg(e)!=="body"||wA(i))&&(o=YR(e)),n){const l=Q3(e,!0,r,e);s.x=l.x+e.clientLeft,s.y=l.y+e.clientTop}else i&&(s.x=qSe(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function vhe(u,e){return!k1(u)||Ll(u).position==="fixed"?null:e?e(u):u.offsetParent}function ZSe(u,e){const t=k0(u);if(!k1(u))return t;let n=vhe(u,e);for(;n&&d9t(n)&&Ll(n).position==="static";)n=vhe(n,e);return n&&(Zg(n)==="html"||Zg(n)==="body"&&Ll(n).position==="static"&&!mue(n))?t:n||h9t(u)||t}const y9t=async function(u){let{reference:e,floating:t,strategy:n}=u;const i=this.getOffsetParent||ZSe,r=this.getDimensions;return{reference:k9t(e,await i(t),n),floating:{x:0,y:0,...await r(t)}}};function F9t(u){return Ll(u).direction==="rtl"}const A9t={convertOffsetParentRelativeRectToViewportRelativeRect:m9t,getDocumentElement:y4,getClippingRect:C9t,getOffsetParent:ZSe,getElementRects:y9t,getClientRects:f9t,getDimensions:b9t,getScale:p5,isElement:s4,isRTL:F9t};function _9t(u,e){let t=null,n;const i=y4(u);function r(){clearTimeout(n),t&&t.disconnect(),t=null}function a(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),r();const{left:l,top:c,width:d,height:h}=u.getBoundingClientRect();if(o||e(),!d||!h)return;const E=c9(c),g=c9(i.clientWidth-(l+d)),m=c9(i.clientHeight-(c+h)),f=c9(l),D={rootMargin:-E+"px "+-g+"px "+-m+"px "+-f+"px",threshold:Ao(0,Uc(1,s))||1};let x=!0;function b(k){const _=k[0].intersectionRatio;if(_!==s){if(!x)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{t=new IntersectionObserver(b,{...D,root:i.ownerDocument})}catch{t=new IntersectionObserver(b,D)}t.observe(u)}return a(!0),r}function YSe(u,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=pue(u),c=i||r?[...l?Eg(l):[],...Eg(e)]:[];c.forEach(p=>{i&&p.addEventListener("scroll",t,{passive:!0}),r&&p.addEventListener("resize",t)});const d=l&&o?_9t(l,t):null;let h=-1,E=null;a&&(E=new ResizeObserver(p=>{let[D]=p;D&&D.target===l&&E&&(E.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{E&&E.observe(e)})),t()}),l&&!s&&E.observe(l),E.observe(e));let g,m=s?Q3(u):null;s&&f();function f(){const p=Q3(u);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&t(),m=p,g=requestAnimationFrame(f)}return t(),()=>{c.forEach(p=>{i&&p.removeEventListener("scroll",t),r&&p.removeEventListener("resize",t)}),d&&d(),E&&E.disconnect(),E=null,s&&cancelAnimationFrame(g)}}const QSe=(u,e,t)=>{const n=new Map,i={platform:A9t,...t},r={...i.platform,_c:n};return o9t(u,e,{...i,platform:r})},XSe=u=>{const{element:e,padding:t}=u;function n(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:u,fn(i){return n(e)?e.current!=null?Iz({element:e.current,padding:t}).fn(i):{}:e?Iz({element:e,padding:t}).fn(i):{}}}};var i8=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Oz(u,e){if(u===e)return!0;if(typeof u!=typeof e)return!1;if(typeof u=="function"&&u.toString()===e.toString())return!0;let t,n,i;if(u&&e&&typeof u=="object"){if(Array.isArray(u)){if(t=u.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!Oz(u[n],e[n]))return!1;return!0}if(i=Object.keys(u),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){const r=i[n];if(!(r==="_owner"&&u.$$typeof)&&!Oz(u[r],e[r]))return!1}return!0}return u!==u&&e!==e}function Che(u){const e=C.useRef(u);return i8(()=>{e.current=u}),e}function S9t(u){u===void 0&&(u={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:i,whileElementsMounted:r,open:a}=u,[o,s]=C.useState({x:null,y:null,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[l,c]=C.useState(n);Oz(l,n)||c(n);const d=C.useRef(null),h=C.useRef(null),E=C.useRef(o),g=Che(r),m=Che(i),[f,p]=C.useState(null),[D,x]=C.useState(null),b=C.useCallback(L=>{d.current!==L&&(d.current=L,p(L))},[]),k=C.useCallback(L=>{h.current!==L&&(h.current=L,x(L))},[]),_=C.useCallback(()=>{if(!d.current||!h.current)return;const L={placement:e,strategy:t,middleware:l};m.current&&(L.platform=m.current),QSe(d.current,h.current,L).then(T=>{const N={...T,isPositioned:!0};y.current&&!Oz(E.current,N)&&(E.current=N,Xo.flushSync(()=>{s(N)}))})},[l,e,t,m]);i8(()=>{a===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,s(L=>({...L,isPositioned:!1})))},[a]);const y=C.useRef(!1);i8(()=>(y.current=!0,()=>{y.current=!1}),[]),i8(()=>{if(f&&D){if(g.current)return g.current(f,D,_);_()}},[f,D,_,g]);const S=C.useMemo(()=>({reference:d,floating:h,setReference:b,setFloating:k}),[b,k]),B=C.useMemo(()=>({reference:f,floating:D}),[f,D]);return C.useMemo(()=>({...o,update:_,refs:S,elements:B,reference:b,floating:k}),[o,_,S,B,b,k])}var Bv=typeof document<"u"?C.useLayoutEffect:C.useEffect;let lH=!1,B9t=0;const bhe=()=>"floating-ui-"+B9t++;function w9t(){const[u,e]=C.useState(()=>lH?bhe():void 0);return Bv(()=>{u==null&&e(bhe())},[]),C.useEffect(()=>{lH||(lH=!0)},[]),u}const z9t=vg["useId".toString()],khe=z9t||w9t;function L9t(){const u=new Map;return{emit(e,t){var n;(n=u.get(e))==null||n.forEach(i=>i(t))},on(e,t){u.set(e,[...u.get(e)||[],t])},off(e,t){u.set(e,(u.get(e)||[]).filter(n=>n!==t))}}}const M9t=C.createContext(null),T9t=C.createContext(null),e8e=()=>{var u;return((u=C.useContext(M9t))==null?void 0:u.id)||null},Due=()=>C.useContext(T9t);function ME(u){return(u==null?void 0:u.ownerDocument)||document}function P9t(){const u=navigator.userAgentData;return u!=null&&u.platform?u.platform:navigator.platform}function N9t(){const u=navigator.userAgentData;return u&&Array.isArray(u.brands)?u.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function xue(u){return ME(u).defaultView||window}function Zd(u){return u?u instanceof xue(u).Element:!1}function t8e(u){return u?u instanceof xue(u).HTMLElement:!1}function R9t(u){if(typeof ShadowRoot>"u")return!1;const e=xue(u).ShadowRoot;return u instanceof e||u instanceof ShadowRoot}function I9t(u){if(u.mozInputSource===0&&u.isTrusted)return!0;const e=/Android/i;return(e.test(P9t())||e.test(N9t()))&&u.pointerType?u.type==="click"&&u.buttons===1:u.detail===0&&!u.pointerType}function O9t(u){return u.width===0&&u.height===0||u.width===1&&u.height===1&&u.pressure===0&&u.detail===0&&u.pointerType!=="mouse"||u.width<1&&u.height<1&&u.pressure===0&&u.detail===0}function u8e(u,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(u)}function yhe(u){const e=C.useRef(u);return Bv(()=>{e.current=u}),e}const Fhe="data-floating-ui-safe-polygon";function r8(u,e,t){return t&&!u8e(t)?0:typeof u=="number"?u:u==null?void 0:u[e]}const j9t=function(u,e){let{enabled:t=!0,delay:n=0,handleClose:i=null,mouseOnly:r=!1,restMs:a=0,move:o=!0}=e===void 0?{}:e;const{open:s,onOpenChange:l,dataRef:c,events:d,elements:{domReference:h,floating:E},refs:g}=u,m=Due(),f=e8e(),p=yhe(i),D=yhe(n),x=C.useRef(),b=C.useRef(),k=C.useRef(),_=C.useRef(),y=C.useRef(!0),S=C.useRef(!1),B=C.useRef(()=>{}),L=C.useCallback(()=>{var A;const z=(A=c.current.openEvent)==null?void 0:A.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[c]);C.useEffect(()=>{if(!t)return;function A(){clearTimeout(b.current),clearTimeout(_.current),y.current=!0}return d.on("dismiss",A),()=>{d.off("dismiss",A)}},[t,d]),C.useEffect(()=>{if(!t||!p.current||!s)return;function A(){L()&&l(!1)}const z=ME(E).documentElement;return z.addEventListener("mouseleave",A),()=>{z.removeEventListener("mouseleave",A)}},[E,s,l,t,p,c,L]);const T=C.useCallback(function(A){A===void 0&&(A=!0);const z=r8(D.current,"close",x.current);z&&!k.current?(clearTimeout(b.current),b.current=setTimeout(()=>l(!1),z)):A&&(clearTimeout(b.current),l(!1))},[D,l]),N=C.useCallback(()=>{B.current(),k.current=void 0},[]),F=C.useCallback(()=>{if(S.current){const A=ME(g.floating.current).body;A.style.pointerEvents="",A.removeAttribute(Fhe),S.current=!1}},[g]);return C.useEffect(()=>{if(!t)return;function A(){return c.current.openEvent?["click","mousedown"].includes(c.current.openEvent.type):!1}function z(j){if(clearTimeout(b.current),y.current=!1,r&&!u8e(x.current)||a>0&&r8(D.current,"open")===0)return;c.current.openEvent=j;const V=r8(D.current,"open",x.current);V?b.current=setTimeout(()=>{l(!0)},V):l(!0)}function P(j){if(A())return;B.current();const V=ME(E);if(clearTimeout(_.current),p.current){s||clearTimeout(b.current),k.current=p.current({...u,tree:m,x:j.clientX,y:j.clientY,onClose(){F(),N(),T()}});const H=k.current;V.addEventListener("mousemove",H),B.current=()=>{V.removeEventListener("mousemove",H)};return}T()}function I(j){A()||p.current==null||p.current({...u,tree:m,x:j.clientX,y:j.clientY,onClose(){F(),N(),T()}})(j)}if(Zd(h)){const j=h;return s&&j.addEventListener("mouseleave",I),E==null||E.addEventListener("mouseleave",I),o&&j.addEventListener("mousemove",z,{once:!0}),j.addEventListener("mouseenter",z),j.addEventListener("mouseleave",P),()=>{s&&j.removeEventListener("mouseleave",I),E==null||E.removeEventListener("mouseleave",I),o&&j.removeEventListener("mousemove",z),j.removeEventListener("mouseenter",z),j.removeEventListener("mouseleave",P)}}},[h,E,t,u,r,a,o,T,N,F,l,s,m,D,p,c]),Bv(()=>{var A;if(t&&s&&(A=p.current)!=null&&A.__options.blockPointerEvents&&L()){const I=ME(E).body;if(I.setAttribute(Fhe,""),I.style.pointerEvents="none",S.current=!0,Zd(h)&&E){var z,P;const j=h,V=m==null||(z=m.nodesRef.current.find(H=>H.id===f))==null||(P=z.context)==null?void 0:P.elements.floating;return V&&(V.style.pointerEvents=""),j.style.pointerEvents="auto",E.style.pointerEvents="auto",()=>{j.style.pointerEvents="",E.style.pointerEvents=""}}}},[t,s,f,E,h,m,p,c,L]),Bv(()=>{s||(x.current=void 0,N(),F())},[s,N,F]),C.useEffect(()=>()=>{N(),clearTimeout(b.current),clearTimeout(_.current),F()},[t,N,F]),C.useMemo(()=>{if(!t)return{};function A(z){x.current=z.pointerType}return{reference:{onPointerDown:A,onPointerEnter:A,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{y.current||l(!0)},a))}},floating:{onMouseEnter(){clearTimeout(b.current)},onMouseLeave(){d.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),T(!1)}}}},[d,t,a,s,l,T])},n8e=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),i8e=()=>C.useContext(n8e),V9t=u=>{let{children:e,delay:t,timeoutMs:n=0}=u;const[i,r]=C.useReducer((s,l)=>({...s,...l}),{delay:t,timeoutMs:n,initialDelay:t,currentId:null,isInstantPhase:!1}),a=C.useRef(null),o=C.useCallback(s=>{r({currentId:s})},[]);return Bv(()=>{i.currentId?a.current===null?a.current=i.currentId:r({isInstantPhase:!0}):(r({isInstantPhase:!1}),a.current=null)},[i.currentId]),C.createElement(n8e.Provider,{value:C.useMemo(()=>({...i,setState:r,setCurrentId:o}),[i,r,o])},e)},H9t=(u,e)=>{let{open:t,onOpenChange:n}=u,{id:i}=e;const{currentId:r,setCurrentId:a,initialDelay:o,setState:s,timeoutMs:l}=i8e();C.useEffect(()=>{r&&(s({delay:{open:1,close:r8(o,"close")}}),r!==i&&n(!1))},[i,n,s,r,o]),C.useEffect(()=>{function c(){n(!1),s({delay:o,currentId:null})}if(!t&&r===i)if(l){const d=window.setTimeout(c,l);return()=>{clearTimeout(d)}}else c()},[t,s,r,i,n,o,l]),C.useEffect(()=>{t&&a(i)},[t,a,i])};function $9t(u){let e=u.activeElement;for(;((t=e)==null||(n=t.shadowRoot)==null?void 0:n.activeElement)!=null;){var t,n;e=e.shadowRoot.activeElement}return e}function Ahe(u,e){if(!u||!e)return!1;const t=e.getRootNode&&e.getRootNode();if(u.contains(e))return!0;if(t&&R9t(t)){let n=e;do{if(n&&u===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function cH(u,e){let t=u.filter(i=>{var r;return i.parentId===e&&((r=i.context)==null?void 0:r.open)})||[],n=t;for(;n.length;)n=u.filter(i=>{var r;return(r=n)==null?void 0:r.some(a=>{var o;return i.parentId===a.id&&((o=i.context)==null?void 0:o.open)})})||[],t=t.concat(n);return t}function K9t(u){return"composedPath"in u?u.composedPath()[0]:u.target}const W9t=vg["useInsertionEffect".toString()],G9t=W9t||(u=>u());function r8e(u){const e=C.useRef(()=>{});return G9t(()=>{e.current=u}),C.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i!1),k=typeof h=="function"?b:h,_=C.useRef(!1),{escapeKeyBubbles:y,outsidePressBubbles:S}=J9t(p);return C.useEffect(()=>{if(!t||!c)return;l.current.__escapeKeyBubbles=y,l.current.__outsidePressBubbles=S;function B(A){if(A.key==="Escape"){const z=D?cH(D.nodesRef.current,r):[];if(z.length>0){let P=!0;if(z.forEach(I=>{var j;if((j=I.context)!=null&&j.open&&!I.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}i.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function L(A){const z=_.current;if(_.current=!1,z||typeof k=="function"&&!k(A))return;const P=K9t(A);if(t8e(P)&&s){const V=s.ownerDocument.defaultView||window,H=P.scrollWidth>P.clientWidth,q=P.scrollHeight>P.clientHeight;let J=q&&A.offsetX>P.clientWidth;if(q&&V.getComputedStyle(P).direction==="rtl"&&(J=A.offsetX<=P.offsetWidth-P.clientWidth),J||H&&A.offsetY>P.clientHeight)return}const I=D&&cH(D.nodesRef.current,r).some(V=>{var H;return a8(A,(H=V.context)==null?void 0:H.elements.floating)});if(a8(A,s)||a8(A,o)||I)return;const j=D?cH(D.nodesRef.current,r):[];if(j.length>0){let V=!0;if(j.forEach(H=>{var q;if((q=H.context)!=null&&q.open&&!H.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}i.emit("dismiss",{type:"outsidePress",data:{returnFocus:x?{preventScroll:!0}:I9t(A)||O9t(A)}}),n(!1)}function T(){n(!1)}const N=ME(s);d&&N.addEventListener("keydown",B),k&&N.addEventListener(E,L);let F=[];return f&&(Zd(o)&&(F=Eg(o)),Zd(s)&&(F=F.concat(Eg(s))),!Zd(a)&&a&&a.contextElement&&(F=F.concat(Eg(a.contextElement)))),F=F.filter(A=>{var z;return A!==((z=N.defaultView)==null?void 0:z.visualViewport)}),F.forEach(A=>{A.addEventListener("scroll",T,{passive:!0})}),()=>{d&&N.removeEventListener("keydown",B),k&&N.removeEventListener(E,L),F.forEach(A=>{A.removeEventListener("scroll",T)})}},[l,s,o,a,d,k,E,i,D,r,t,n,f,c,y,S,x]),C.useEffect(()=>{_.current=!1},[k,E]),C.useMemo(()=>c?{reference:{[U9t[m]]:()=>{g&&(i.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[q9t[E]]:()=>{_.current=!0}}}:{},[c,i,g,E,m,n])},Y9t=function(u,e){let{open:t,onOpenChange:n,dataRef:i,events:r,refs:a,elements:{floating:o,domReference:s}}=u,{enabled:l=!0,keyboardOnly:c=!0}=e===void 0?{}:e;const d=C.useRef(""),h=C.useRef(!1),E=C.useRef();return C.useEffect(()=>{if(!l)return;const m=ME(o).defaultView||window;function f(){!t&&t8e(s)&&s===$9t(ME(s))&&(h.current=!0)}return m.addEventListener("blur",f),()=>{m.removeEventListener("blur",f)}},[o,s,t,l]),C.useEffect(()=>{if(!l)return;function g(m){(m.type==="referencePress"||m.type==="escapeKey")&&(h.current=!0)}return r.on("dismiss",g),()=>{r.off("dismiss",g)}},[r,l]),C.useEffect(()=>()=>{clearTimeout(E.current)},[]),C.useMemo(()=>l?{reference:{onPointerDown(g){let{pointerType:m}=g;d.current=m,h.current=!!(m&&c)},onMouseLeave(){h.current=!1},onFocus(g){var m;h.current||g.type==="focus"&&((m=i.current.openEvent)==null?void 0:m.type)==="mousedown"&&i.current.openEvent&&a8(i.current.openEvent,s)||(i.current.openEvent=g.nativeEvent,n(!0))},onBlur(g){h.current=!1;const m=g.relatedTarget,f=Zd(m)&&m.hasAttribute("data-floating-ui-focus-guard")&&m.getAttribute("data-type")==="outside";E.current=setTimeout(()=>{Ahe(a.floating.current,m)||Ahe(s,m)||f||n(!1)})}}}:{},[l,c,s,a,i,n])},Q9t=function(u,e){let{open:t}=u,{enabled:n=!0,role:i="dialog"}=e===void 0?{}:e;const r=khe(),a=khe();return C.useMemo(()=>{const o={id:r,role:i};return n?i==="tooltip"?{reference:{"aria-describedby":t?r:void 0},floating:o}:{reference:{"aria-expanded":t?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":t?r:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:a}},floating:{...o,...i==="menu"&&{"aria-labelledby":a}}}:{}},[n,i,t,r,a])};function vue(u){u===void 0&&(u={});const{open:e=!1,onOpenChange:t,nodeId:n}=u,i=S9t(u),r=Due(),a=C.useRef(null),o=C.useRef({}),s=C.useState(()=>L9t())[0],[l,c]=C.useState(null),d=C.useCallback(p=>{const D=Zd(p)?{getBoundingClientRect:()=>p.getBoundingClientRect(),contextElement:p}:p;i.refs.setReference(D)},[i.refs]),h=C.useCallback(p=>{(Zd(p)||p===null)&&(a.current=p,c(p)),(Zd(i.refs.reference.current)||i.refs.reference.current===null||p!==null&&!Zd(p))&&i.refs.setReference(p)},[i.refs]),E=C.useMemo(()=>({...i.refs,setReference:h,setPositionReference:d,domReference:a}),[i.refs,h,d]),g=C.useMemo(()=>({...i.elements,domReference:l}),[i.elements,l]),m=r8e(t),f=C.useMemo(()=>({...i,refs:E,elements:g,dataRef:o,nodeId:n,events:s,open:e,onOpenChange:m}),[i,n,s,e,m,E,g]);return Bv(()=>{const p=r==null?void 0:r.nodesRef.current.find(D=>D.id===n);p&&(p.context=f)}),C.useMemo(()=>({...i,context:f,refs:E,reference:h,positionReference:d}),[i,E,f,h,d])}function dH(u,e,t){const n=new Map;return{...t==="floating"&&{tabIndex:-1},...u,...e.map(i=>i?i[t]:null).concat(u).reduce((i,r)=>(r&&Object.entries(r).forEach(a=>{let[o,s]=a;if(o.indexOf("on")===0){if(n.has(o)||n.set(o,[]),typeof s=="function"){var l;(l=n.get(o))==null||l.push(s),i[o]=function(){for(var c,d=arguments.length,h=new Array(d),E=0;Eg(...h))}}}else i[o]=s}),i),{})}}const X9t=function(u){u===void 0&&(u=[]);const e=u,t=C.useCallback(r=>dH(r,u,"reference"),e),n=C.useCallback(r=>dH(r,u,"floating"),e),i=C.useCallback(r=>dH(r,u,"item"),u.map(r=>r==null?void 0:r.item));return C.useMemo(()=>({getReferenceProps:t,getFloatingProps:n,getItemProps:i}),[t,n,i])};function a8e({opened:u,floating:e,position:t,positionDependencies:n}){const[i,r]=C.useState(0);C.useEffect(()=>{if(e.refs.reference.current&&e.refs.floating.current)return YSe(e.refs.reference.current,e.refs.floating.current,e.update)},[e.refs.reference.current,e.refs.floating.current,u,i,t]),Lo(()=>{e.update()},n),Lo(()=>{r(a=>a+1)},[u])}function eSt(u){const e=[gue(u.offset)];return u.middlewares.shift&&e.push(JR({limiter:HSe()})),u.middlewares.flip&&e.push(Eue()),u.middlewares.inline&&e.push(VSe()),e.push(XSe({element:u.arrowRef,padding:u.arrowOffset})),e}function tSt(u){const[e,t]=cs({value:u.opened,defaultValue:u.defaultOpened,finalValue:!1,onChange:u.onChange}),n=()=>{var a;(a=u.onClose)==null||a.call(u),t(!1)},i=()=>{var a,o;e?((a=u.onClose)==null||a.call(u),t(!1)):((o=u.onOpen)==null||o.call(u),t(!0))},r=vue({placement:u.position,middleware:[...eSt(u),...u.width==="target"?[$Se({apply({rects:a}){var o,s;Object.assign((s=(o=r.refs.floating.current)==null?void 0:o.style)!=null?s:{},{width:`${a.reference.width}px`})}})]:[]]});return a8e({opened:u.opened,position:u.position,positionDependencies:u.positionDependencies,floating:r}),Lo(()=>{var a;(a=u.onPositionChange)==null||a.call(u,r.placement)},[r.placement]),Lo(()=>{var a,o;u.opened?(o=u.onOpen)==null||o.call(u):(a=u.onClose)==null||a.call(u)},[u.opened]),{floating:r,controlled:typeof u.opened=="boolean",opened:e,onClose:n,onToggle:i}}const o8e={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[uSt,s8e]=P1(o8e.context);var nSt=Object.defineProperty,iSt=Object.defineProperties,rSt=Object.getOwnPropertyDescriptors,jz=Object.getOwnPropertySymbols,l8e=Object.prototype.hasOwnProperty,c8e=Object.prototype.propertyIsEnumerable,_he=(u,e,t)=>e in u?nSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,d9=(u,e)=>{for(var t in e||(e={}))l8e.call(e,t)&&_he(u,t,e[t]);if(jz)for(var t of jz(e))c8e.call(e,t)&&_he(u,t,e[t]);return u},aSt=(u,e)=>iSt(u,rSt(e)),oSt=(u,e)=>{var t={};for(var n in u)l8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&jz)for(var n of jz(u))e.indexOf(n)<0&&c8e.call(u,n)&&(t[n]=u[n]);return t};const sSt={refProp:"ref",popupType:"dialog"},d8e=C.forwardRef((u,e)=>{const t=Je("PopoverTarget",sSt,u),{children:n,refProp:i,popupType:r}=t,a=oSt(t,["children","refProp","popupType"]);if(!fC(n))throw new Error(o8e.children);const o=a,s=s8e(),l=N1(s.reference,n.ref,e),c=s.withRoles?{"aria-haspopup":r,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return C.cloneElement(n,d9(aSt(d9(d9(d9({},o),c),s.targetProps),{className:B7e(s.targetProps.className,o.className,n.props.className),[i]:l}),s.controlled?null:{onClick:s.onToggle}))});d8e.displayName="@mantine/core/PopoverTarget";var lSt=at((u,{radius:e,shadow:t})=>({dropdown:{position:"absolute",backgroundColor:u.white,background:u.colorScheme==="dark"?u.colors.dark[6]:u.white,border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,padding:`${u.spacing.sm} ${u.spacing.md}`,boxShadow:u.shadows[t]||t||"none",borderRadius:u.fn.radius(e),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,zIndex:1}}));const cSt=lSt;var dSt=Object.defineProperty,She=Object.getOwnPropertySymbols,hSt=Object.prototype.hasOwnProperty,ESt=Object.prototype.propertyIsEnumerable,Bhe=(u,e,t)=>e in u?dSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,kD=(u,e)=>{for(var t in e||(e={}))hSt.call(e,t)&&Bhe(u,t,e[t]);if(She)for(var t of She(e))ESt.call(e,t)&&Bhe(u,t,e[t]);return u};const whe={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function gSt({transition:u,state:e,duration:t,timingFunction:n}){const i={transitionDuration:`${t}ms`,transitionTimingFunction:n};return typeof u=="string"?u in Q7?kD(kD(kD({transitionProperty:Q7[u].transitionProperty},i),Q7[u].common),Q7[u][whe[e]]):null:kD(kD(kD({transitionProperty:u.transitionProperty},i),u.common),u[whe[e]])}function mSt({duration:u,exitDuration:e,timingFunction:t,mounted:n,onEnter:i,onExit:r,onEntered:a,onExited:o}){const s=Tr(),l=AA(),c=s.respectReducedMotion?l:!1,[d,h]=C.useState(c?0:u),[E,g]=C.useState(n?"entered":"exited"),m=C.useRef(-1),f=p=>{const D=p?i:r,x=p?a:o;g(p?"pre-entering":"pre-exiting"),window.clearTimeout(m.current);const b=c?0:p?u:e;if(h(b),b===0)typeof D=="function"&&D(),typeof x=="function"&&x(),g(p?"entered":"exited");else{const k=window.setTimeout(()=>{typeof D=="function"&&D(),g(p?"entering":"exiting")},10);m.current=window.setTimeout(()=>{window.clearTimeout(k),typeof x=="function"&&x(),g(p?"entered":"exited")},b)}};return Lo(()=>{f(n)},[n]),C.useEffect(()=>()=>window.clearTimeout(m.current),[]),{transitionDuration:d,transitionStatus:E,transitionTimingFunction:t||s.transitionTimingFunction}}function Vp({keepMounted:u,transition:e,duration:t=250,exitDuration:n=t,mounted:i,children:r,timingFunction:a,onExit:o,onEntered:s,onEnter:l,onExited:c}){const{transitionDuration:d,transitionStatus:h,transitionTimingFunction:E}=mSt({mounted:i,exitDuration:n,duration:t,timingFunction:a,onExit:o,onEntered:s,onEnter:l,onExited:c});return d===0?i?M.createElement(M.Fragment,null,r({})):u?r({display:"none"}):null:h==="exited"?u?r({display:"none"}):null:M.createElement(M.Fragment,null,r(gSt({transition:e,duration:d,state:h,timingFunction:E})))}Vp.displayName="@mantine/core/Transition";function Cue({children:u,active:e=!0,refProp:t="ref"}){const n=$2t(e),i=N1(n,u==null?void 0:u.ref);return fC(u)?C.cloneElement(u,{[t]:i}):u}Cue.displayName="@mantine/core/FocusTrap";var fSt=Object.defineProperty,pSt=Object.defineProperties,DSt=Object.getOwnPropertyDescriptors,zhe=Object.getOwnPropertySymbols,xSt=Object.prototype.hasOwnProperty,vSt=Object.prototype.propertyIsEnumerable,Lhe=(u,e,t)=>e in u?fSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,O4=(u,e)=>{for(var t in e||(e={}))xSt.call(e,t)&&Lhe(u,t,e[t]);if(zhe)for(var t of zhe(e))vSt.call(e,t)&&Lhe(u,t,e[t]);return u},h9=(u,e)=>pSt(u,DSt(e));function Mhe(u,e,t,n){return u==="center"||n==="center"?{top:e}:u==="end"?{bottom:t}:u==="start"?{top:t}:{}}function The(u,e,t,n,i){return u==="center"||n==="center"?{left:e}:u==="end"?{[i==="ltr"?"right":"left"]:t}:u==="start"?{[i==="ltr"?"left":"right"]:t}:{}}const CSt={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function bSt({position:u,arrowSize:e,arrowOffset:t,arrowRadius:n,arrowPosition:i,arrowX:r,arrowY:a,dir:o}){const[s,l="center"]=u.split("-"),c={width:W(e),height:W(e),transform:"rotate(45deg)",position:"absolute",[CSt[s]]:W(n)},d=W(-e/2);return s==="left"?h9(O4(O4({},c),Mhe(l,a,t,i)),{right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}):s==="right"?h9(O4(O4({},c),Mhe(l,a,t,i)),{left:d,borderRightColor:"transparent",borderTopColor:"transparent"}):s==="top"?h9(O4(O4({},c),The(l,r,t,i,o)),{bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}):s==="bottom"?h9(O4(O4({},c),The(l,r,t,i,o)),{top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var kSt=Object.defineProperty,ySt=Object.defineProperties,FSt=Object.getOwnPropertyDescriptors,Vz=Object.getOwnPropertySymbols,h8e=Object.prototype.hasOwnProperty,E8e=Object.prototype.propertyIsEnumerable,Phe=(u,e,t)=>e in u?kSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ASt=(u,e)=>{for(var t in e||(e={}))h8e.call(e,t)&&Phe(u,t,e[t]);if(Vz)for(var t of Vz(e))E8e.call(e,t)&&Phe(u,t,e[t]);return u},_St=(u,e)=>ySt(u,FSt(e)),SSt=(u,e)=>{var t={};for(var n in u)h8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Vz)for(var n of Vz(u))e.indexOf(n)<0&&E8e.call(u,n)&&(t[n]=u[n]);return t};const bue=C.forwardRef((u,e)=>{var t=u,{position:n,arrowSize:i,arrowOffset:r,arrowRadius:a,arrowPosition:o,visible:s,arrowX:l,arrowY:c}=t,d=SSt(t,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const h=Tr();return s?M.createElement("div",_St(ASt({},d),{ref:e,style:bSt({position:n,arrowSize:i,arrowOffset:r,arrowRadius:a,arrowPosition:o,dir:h.dir,arrowX:l,arrowY:c})})):null});bue.displayName="@mantine/core/FloatingArrow";var BSt=Object.defineProperty,wSt=Object.defineProperties,zSt=Object.getOwnPropertyDescriptors,Hz=Object.getOwnPropertySymbols,g8e=Object.prototype.hasOwnProperty,m8e=Object.prototype.propertyIsEnumerable,Nhe=(u,e,t)=>e in u?BSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yD=(u,e)=>{for(var t in e||(e={}))g8e.call(e,t)&&Nhe(u,t,e[t]);if(Hz)for(var t of Hz(e))m8e.call(e,t)&&Nhe(u,t,e[t]);return u},E9=(u,e)=>wSt(u,zSt(e)),LSt=(u,e)=>{var t={};for(var n in u)g8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Hz)for(var n of Hz(u))e.indexOf(n)<0&&m8e.call(u,n)&&(t[n]=u[n]);return t};const MSt={};function f8e(u){var e;const t=Je("PopoverDropdown",MSt,u),{style:n,className:i,children:r,onKeyDownCapture:a}=t,o=LSt(t,["style","className","children","onKeyDownCapture"]),s=s8e(),{classes:l,cx:c}=cSt({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant}),d=t9e({opened:s.opened,shouldReturnFocus:s.returnFocus}),h=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:"dialog"}:{};return s.disabled?null:M.createElement(_A,E9(yD({},s.portalProps),{withinPortal:s.withinPortal}),M.createElement(Vp,E9(yD({mounted:s.opened},s.transitionProps),{transition:s.transitionProps.transition||"fade",duration:(e=s.transitionProps.duration)!=null?e:150,keepMounted:s.keepMounted,exitDuration:typeof s.transitionProps.exitDuration=="number"?s.transitionProps.exitDuration:s.transitionProps.duration}),E=>{var g,m;return M.createElement(Cue,{active:s.trapFocus},M.createElement(pt,yD(E9(yD({},h),{tabIndex:-1,ref:s.floating,style:E9(yD(yD({},n),E),{zIndex:s.zIndex,top:(g=s.y)!=null?g:0,left:(m=s.x)!=null?m:0,width:s.width==="target"?void 0:W(s.width)}),className:c(l.dropdown,i),onKeyDownCapture:cbt(s.onClose,{active:s.closeOnEscape,onTrigger:d,onKeyDown:a}),"data-position":s.placement}),o),r,M.createElement(bue,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:l.arrow})))}))}f8e.displayName="@mantine/core/PopoverDropdown";function p8e(u,e){if(u==="rtl"&&(e.includes("right")||e.includes("left"))){const[t,n]=e.split("-"),i=t==="right"?"left":"right";return n===void 0?i:`${i}-${n}`}return e}var Rhe=Object.getOwnPropertySymbols,TSt=Object.prototype.hasOwnProperty,PSt=Object.prototype.propertyIsEnumerable,NSt=(u,e)=>{var t={};for(var n in u)TSt.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Rhe)for(var n of Rhe(u))e.indexOf(n)<0&&PSt.call(u,n)&&(t[n]=u[n]);return t};const RSt={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:id("popover"),__staticSelector:"Popover",width:"max-content"};function os(u){var e,t,n,i,r,a;const o=C.useRef(null),s=Je("Popover",RSt,u),{children:l,position:c,offset:d,onPositionChange:h,positionDependencies:E,opened:g,transitionProps:m,width:f,middlewares:p,withArrow:D,arrowSize:x,arrowOffset:b,arrowRadius:k,arrowPosition:_,unstyled:y,classNames:S,styles:B,closeOnClickOutside:L,withinPortal:T,portalProps:N,closeOnEscape:F,clickOutsideEvents:A,trapFocus:z,onClose:P,onOpen:I,onChange:j,zIndex:V,radius:H,shadow:q,id:J,defaultOpened:Q,__staticSelector:X,withRoles:Y,disabled:le,returnFocus:he,variant:ze,keepMounted:Ie}=s,We=NSt(s,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[Ee,ut]=C.useState(null),[we,Ge]=C.useState(null),nt=Kl(J),Ht=Tr(),eu=tSt({middlewares:p,width:f,position:p8e(Ht.dir,c),offset:typeof d=="number"?d+(D?x/2:0):d,arrowRef:o,arrowOffset:b,onPositionChange:h,positionDependencies:E,opened:g,defaultOpened:Q,onChange:j,onOpen:I,onClose:P});L2t(()=>eu.opened&&L&&eu.onClose(),A,[Ee,we]);const bu=C.useCallback(oe=>{ut(oe),eu.floating.reference(oe)},[eu.floating.reference]),ru=C.useCallback(oe=>{Ge(oe),eu.floating.floating(oe)},[eu.floating.floating]);return M.createElement(uSt,{value:{returnFocus:he,disabled:le,controlled:eu.controlled,reference:bu,floating:ru,x:eu.floating.x,y:eu.floating.y,arrowX:(n=(t=(e=eu.floating)==null?void 0:e.middlewareData)==null?void 0:t.arrow)==null?void 0:n.x,arrowY:(a=(r=(i=eu.floating)==null?void 0:i.middlewareData)==null?void 0:r.arrow)==null?void 0:a.y,opened:eu.opened,arrowRef:o,transitionProps:m,width:f,withArrow:D,arrowSize:x,arrowOffset:b,arrowRadius:k,arrowPosition:_,placement:eu.floating.placement,trapFocus:z,withinPortal:T,portalProps:N,zIndex:V,radius:H,shadow:q,closeOnEscape:F,onClose:eu.onClose,onToggle:eu.onToggle,getTargetId:()=>`${nt}-target`,getDropdownId:()=>`${nt}-dropdown`,withRoles:Y,targetProps:We,__staticSelector:X,classNames:S,styles:B,unstyled:y,variant:ze,keepMounted:Ie}},l)}os.Target=d8e;os.Dropdown=f8e;os.displayName="@mantine/core/Popover";var ISt=Object.defineProperty,$z=Object.getOwnPropertySymbols,D8e=Object.prototype.hasOwnProperty,x8e=Object.prototype.propertyIsEnumerable,Ihe=(u,e,t)=>e in u?ISt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,OSt=(u,e)=>{for(var t in e||(e={}))D8e.call(e,t)&&Ihe(u,t,e[t]);if($z)for(var t of $z(e))x8e.call(e,t)&&Ihe(u,t,e[t]);return u},jSt=(u,e)=>{var t={};for(var n in u)D8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&$z)for(var n of $z(u))e.indexOf(n)<0&&x8e.call(u,n)&&(t[n]=u[n]);return t};function VSt(u){var e=u,{children:t,component:n="div",maxHeight:i=220,direction:r="column",id:a,innerRef:o,__staticSelector:s,styles:l,classNames:c,unstyled:d}=e,h=jSt(e,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);const{classes:E}=J7t(null,{name:s,styles:l,classNames:c,unstyled:d});return M.createElement(os.Dropdown,OSt({p:0,onMouseDown:g=>g.preventDefault()},h),M.createElement("div",{style:{maxHeight:W(i),display:"flex"}},M.createElement(pt,{component:n||"div",id:`${a}-items`,"aria-labelledby":`${a}-label`,role:"listbox",onMouseDown:g=>g.preventDefault(),style:{flex:1,overflowY:n!==qR?"auto":void 0},"data-combobox-popover":!0,tabIndex:-1,ref:o},M.createElement("div",{className:E.itemsWrapper,style:{flexDirection:r}},t))))}function gg({opened:u,transitionProps:e={transition:"fade",duration:0},shadow:t,withinPortal:n,portalProps:i,children:r,__staticSelector:a,onDirectionChange:o,switchDirectionOnFlip:s,zIndex:l,dropdownPosition:c,positionDependencies:d=[],classNames:h,styles:E,unstyled:g,readOnly:m,variant:f}){return M.createElement(os,{unstyled:g,classNames:h,styles:E,width:"target",withRoles:!1,opened:u,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:d,zIndex:l,__staticSelector:a,withinPortal:n,portalProps:i,transitionProps:e,shadow:t,disabled:m,onPositionChange:p=>s&&(o==null?void 0:o(p==="top"?"column-reverse":"column")),variant:f},r)}gg.Target=os.Target;gg.Dropdown=VSt;var HSt=Object.defineProperty,$St=Object.defineProperties,KSt=Object.getOwnPropertyDescriptors,Kz=Object.getOwnPropertySymbols,v8e=Object.prototype.hasOwnProperty,C8e=Object.prototype.propertyIsEnumerable,Ohe=(u,e,t)=>e in u?HSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,g9=(u,e)=>{for(var t in e||(e={}))v8e.call(e,t)&&Ohe(u,t,e[t]);if(Kz)for(var t of Kz(e))C8e.call(e,t)&&Ohe(u,t,e[t]);return u},WSt=(u,e)=>$St(u,KSt(e)),GSt=(u,e)=>{var t={};for(var n in u)v8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Kz)for(var n of Kz(u))e.indexOf(n)<0&&C8e.call(u,n)&&(t[n]=u[n]);return t};function b8e(u,e,t){const n=Je(u,e,t),{label:i,description:r,error:a,required:o,classNames:s,styles:l,className:c,unstyled:d,__staticSelector:h,sx:E,errorProps:g,labelProps:m,descriptionProps:f,wrapperProps:p,id:D,size:x,style:b,inputContainer:k,inputWrapperOrder:_,withAsterisk:y,variant:S}=n,B=GSt(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk","variant"]),L=Kl(D),{systemStyles:T,rest:N}=C4(B),F=g9({label:i,description:r,error:a,required:o,classNames:s,className:c,__staticSelector:h,sx:E,errorProps:g,labelProps:m,descriptionProps:f,unstyled:d,styles:l,id:L,size:x,style:b,inputContainer:k,inputWrapperOrder:_,withAsterisk:y,variant:S},p);return WSt(g9({},N),{classNames:s,styles:l,unstyled:d,wrapperProps:g9(g9({},F),T),inputProps:{required:o,classNames:s,styles:l,unstyled:d,id:L,size:x,__staticSelector:h,error:a,variant:S}})}var USt=at((u,e,{size:t})=>({label:{display:"inline-block",fontSize:Fe({size:t,sizes:u.fontSizes}),fontWeight:500,color:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:u.fn.variant({variant:"filled",color:"red"}).background}}));const qSt=USt;var JSt=Object.defineProperty,Wz=Object.getOwnPropertySymbols,k8e=Object.prototype.hasOwnProperty,y8e=Object.prototype.propertyIsEnumerable,jhe=(u,e,t)=>e in u?JSt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ZSt=(u,e)=>{for(var t in e||(e={}))k8e.call(e,t)&&jhe(u,t,e[t]);if(Wz)for(var t of Wz(e))y8e.call(e,t)&&jhe(u,t,e[t]);return u},YSt=(u,e)=>{var t={};for(var n in u)k8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Wz)for(var n of Wz(u))e.indexOf(n)<0&&y8e.call(u,n)&&(t[n]=u[n]);return t};const QSt={labelElement:"label",size:"sm"},kue=C.forwardRef((u,e)=>{const t=Je("InputLabel",QSt,u),{labelElement:n,children:i,required:r,size:a,classNames:o,styles:s,unstyled:l,className:c,htmlFor:d,__staticSelector:h,variant:E,onMouseDown:g}=t,m=YSt(t,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector","variant","onMouseDown"]),{classes:f,cx:p}=qSt(null,{name:["InputWrapper",h],classNames:o,styles:s,unstyled:l,variant:E,size:a});return M.createElement(pt,ZSt({component:n,ref:e,className:p(f.label,c),htmlFor:n==="label"?d:void 0,onMouseDown:D=>{g==null||g(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()}},m),i,r&&M.createElement("span",{className:f.required,"aria-hidden":!0}," *"))});kue.displayName="@mantine/core/InputLabel";var XSt=at((u,e,{size:t})=>({error:{wordBreak:"break-word",color:u.fn.variant({variant:"filled",color:"red"}).background,fontSize:`calc(${Fe({size:t,sizes:u.fontSizes})} - ${W(2)})`,lineHeight:1.2,display:"block"}}));const e8t=XSt;var t8t=Object.defineProperty,Gz=Object.getOwnPropertySymbols,F8e=Object.prototype.hasOwnProperty,A8e=Object.prototype.propertyIsEnumerable,Vhe=(u,e,t)=>e in u?t8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,u8t=(u,e)=>{for(var t in e||(e={}))F8e.call(e,t)&&Vhe(u,t,e[t]);if(Gz)for(var t of Gz(e))A8e.call(e,t)&&Vhe(u,t,e[t]);return u},n8t=(u,e)=>{var t={};for(var n in u)F8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Gz)for(var n of Gz(u))e.indexOf(n)<0&&A8e.call(u,n)&&(t[n]=u[n]);return t};const i8t={size:"sm"},yue=C.forwardRef((u,e)=>{const t=Je("InputError",i8t,u),{children:n,className:i,classNames:r,styles:a,unstyled:o,size:s,__staticSelector:l,variant:c}=t,d=n8t(t,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:h,cx:E}=e8t(null,{name:["InputWrapper",l],classNames:r,styles:a,unstyled:o,variant:c,size:s});return M.createElement(Fu,u8t({className:E(h.error,i),ref:e},d),n)});yue.displayName="@mantine/core/InputError";var r8t=at((u,e,{size:t})=>({description:{wordBreak:"break-word",color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],fontSize:`calc(${Fe({size:t,sizes:u.fontSizes})} - ${W(2)})`,lineHeight:1.2,display:"block"}}));const a8t=r8t;var o8t=Object.defineProperty,Uz=Object.getOwnPropertySymbols,_8e=Object.prototype.hasOwnProperty,S8e=Object.prototype.propertyIsEnumerable,Hhe=(u,e,t)=>e in u?o8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,s8t=(u,e)=>{for(var t in e||(e={}))_8e.call(e,t)&&Hhe(u,t,e[t]);if(Uz)for(var t of Uz(e))S8e.call(e,t)&&Hhe(u,t,e[t]);return u},l8t=(u,e)=>{var t={};for(var n in u)_8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Uz)for(var n of Uz(u))e.indexOf(n)<0&&S8e.call(u,n)&&(t[n]=u[n]);return t};const c8t={size:"sm"},Fue=C.forwardRef((u,e)=>{const t=Je("InputDescription",c8t,u),{children:n,className:i,classNames:r,styles:a,unstyled:o,size:s,__staticSelector:l,variant:c}=t,d=l8t(t,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:h,cx:E}=a8t(null,{name:["InputWrapper",l],classNames:r,styles:a,unstyled:o,variant:c,size:s});return M.createElement(Fu,s8t({color:"dimmed",className:E(h.description,i),ref:e,unstyled:o},d),n)});Fue.displayName="@mantine/core/InputDescription";const B8e=C.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),d8t=B8e.Provider,h8t=()=>C.useContext(B8e);function E8t(u,{hasDescription:e,hasError:t}){const n=u.findIndex(s=>s==="input"),i=u[n-1],r=u[n+1];return{offsetBottom:e&&r==="description"||t&&r==="error",offsetTop:e&&i==="description"||t&&i==="error"}}var g8t=Object.defineProperty,m8t=Object.defineProperties,f8t=Object.getOwnPropertyDescriptors,$he=Object.getOwnPropertySymbols,p8t=Object.prototype.hasOwnProperty,D8t=Object.prototype.propertyIsEnumerable,Khe=(u,e,t)=>e in u?g8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,x8t=(u,e)=>{for(var t in e||(e={}))p8t.call(e,t)&&Khe(u,t,e[t]);if($he)for(var t of $he(e))D8t.call(e,t)&&Khe(u,t,e[t]);return u},v8t=(u,e)=>m8t(u,f8t(e)),C8t=at(u=>({root:v8t(x8t({},u.fn.fontStyles()),{lineHeight:u.lineHeight})}));const b8t=C8t;var k8t=Object.defineProperty,y8t=Object.defineProperties,F8t=Object.getOwnPropertyDescriptors,qz=Object.getOwnPropertySymbols,w8e=Object.prototype.hasOwnProperty,z8e=Object.prototype.propertyIsEnumerable,Whe=(u,e,t)=>e in u?k8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,j4=(u,e)=>{for(var t in e||(e={}))w8e.call(e,t)&&Whe(u,t,e[t]);if(qz)for(var t of qz(e))z8e.call(e,t)&&Whe(u,t,e[t]);return u},Ghe=(u,e)=>y8t(u,F8t(e)),A8t=(u,e)=>{var t={};for(var n in u)w8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&qz)for(var n of qz(u))e.indexOf(n)<0&&z8e.call(u,n)&&(t[n]=u[n]);return t};const _8t={labelElement:"label",size:"sm",inputContainer:u=>u,inputWrapperOrder:["label","description","input","error"]},L8e=C.forwardRef((u,e)=>{const t=Je("InputWrapper",_8t,u),{className:n,label:i,children:r,required:a,id:o,error:s,description:l,labelElement:c,labelProps:d,descriptionProps:h,errorProps:E,classNames:g,styles:m,size:f,inputContainer:p,__staticSelector:D,unstyled:x,inputWrapperOrder:b,withAsterisk:k,variant:_}=t,y=A8t(t,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk","variant"]),{classes:S,cx:B}=b8t(null,{classNames:g,styles:m,name:["InputWrapper",D],unstyled:x,variant:_,size:f}),L={classNames:g,styles:m,unstyled:x,size:f,variant:_,__staticSelector:D},T=typeof k=="boolean"?k:a,N=o?`${o}-error`:E==null?void 0:E.id,F=o?`${o}-description`:h==null?void 0:h.id,z=`${!!s&&typeof s!="boolean"?N:""} ${l?F:""}`,P=z.trim().length>0?z.trim():void 0,I=i&&M.createElement(kue,j4(j4({key:"label",labelElement:c,id:o?`${o}-label`:void 0,htmlFor:o,required:T},L),d),i),j=l&&M.createElement(Fue,Ghe(j4(j4({key:"description"},h),L),{size:(h==null?void 0:h.size)||L.size,id:(h==null?void 0:h.id)||F}),l),V=M.createElement(C.Fragment,{key:"input"},p(r)),H=typeof s!="boolean"&&s&&M.createElement(yue,Ghe(j4(j4({},E),L),{size:(E==null?void 0:E.size)||L.size,key:"error",id:(E==null?void 0:E.id)||N}),s),q=b.map(J=>{switch(J){case"label":return I;case"input":return V;case"description":return j;case"error":return H;default:return null}});return M.createElement(d8t,{value:j4({describedBy:P},E8t(b,{hasDescription:!!j,hasError:!!H}))},M.createElement(pt,j4({className:B(S.root,n),ref:e},y),q))});L8e.displayName="@mantine/core/InputWrapper";var S8t=Object.defineProperty,Jz=Object.getOwnPropertySymbols,M8e=Object.prototype.hasOwnProperty,T8e=Object.prototype.propertyIsEnumerable,Uhe=(u,e,t)=>e in u?S8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,B8t=(u,e)=>{for(var t in e||(e={}))M8e.call(e,t)&&Uhe(u,t,e[t]);if(Jz)for(var t of Jz(e))T8e.call(e,t)&&Uhe(u,t,e[t]);return u},w8t=(u,e)=>{var t={};for(var n in u)M8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Jz)for(var n of Jz(u))e.indexOf(n)<0&&T8e.call(u,n)&&(t[n]=u[n]);return t};const z8t={},P8e=C.forwardRef((u,e)=>{const t=Je("InputPlaceholder",z8t,u),{sx:n}=t,i=w8t(t,["sx"]);return M.createElement(pt,B8t({component:"span",sx:[r=>r.fn.placeholderStyles(),...BR(n)],ref:e},i))});P8e.displayName="@mantine/core/InputPlaceholder";var L8t=Object.defineProperty,M8t=Object.defineProperties,T8t=Object.getOwnPropertyDescriptors,qhe=Object.getOwnPropertySymbols,P8t=Object.prototype.hasOwnProperty,N8t=Object.prototype.propertyIsEnumerable,Jhe=(u,e,t)=>e in u?L8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,m9=(u,e)=>{for(var t in e||(e={}))P8t.call(e,t)&&Jhe(u,t,e[t]);if(qhe)for(var t of qhe(e))N8t.call(e,t)&&Jhe(u,t,e[t]);return u},hH=(u,e)=>M8t(u,T8t(e));const kr={xs:W(30),sm:W(36),md:W(42),lg:W(50),xl:W(60)},R8t=["default","filled","unstyled"];function I8t({theme:u,variant:e}){return R8t.includes(e)?e==="default"?{border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,transition:"border-color 100ms ease","&:focus, &:focus-within":u.focusRingStyles.inputStyles(u)}:e==="filled"?{border:`${W(1)} solid transparent`,backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1],"&:focus, &:focus-within":u.focusRingStyles.inputStyles(u)}:{borderWidth:0,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,backgroundColor:"transparent",minHeight:W(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}var O8t=at((u,{multiline:e,radius:t,invalid:n,rightSectionWidth:i,withRightSection:r,iconWidth:a,offsetBottom:o,offsetTop:s,pointer:l},{variant:c,size:d})=>{const h=u.fn.variant({variant:"filled",color:"red"}).background,E=c==="default"||c==="filled"?{minHeight:Fe({size:d,sizes:kr}),paddingLeft:`calc(${Fe({size:d,sizes:kr})} / 3)`,paddingRight:r?i||Fe({size:d,sizes:kr}):`calc(${Fe({size:d,sizes:kr})} / 3)`,borderRadius:u.fn.radius(t)}:c==="unstyled"&&r?{paddingRight:i||Fe({size:d,sizes:kr})}:null;return{wrapper:{position:"relative",marginTop:s?`calc(${u.spacing.xs} / 2)`:void 0,marginBottom:o?`calc(${u.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:hH(m9(m9(hH(m9({},u.fn.fontStyles()),{height:e?c==="unstyled"?void 0:"auto":Fe({size:d,sizes:kr}),WebkitTapHighlightColor:"transparent",lineHeight:e?u.lineHeight:`calc(${Fe({size:d,sizes:kr})} - ${W(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:Fe({size:d,sizes:u.fontSizes}),width:"100%",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,display:"block",textAlign:"left",cursor:l?"pointer":void 0}),I8t({theme:u,variant:c})),E),{"&:disabled, &[data-disabled]":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[1],color:u.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:u.colors.dark[2]}},"&[data-invalid]":{color:h,borderColor:h,"&::placeholder":{opacity:1,color:h}},"&[data-with-icon]":{paddingLeft:typeof a=="number"?W(a):Fe({size:d,sizes:kr})},"&::placeholder":hH(m9({},u.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:a?W(a):Fe({size:d,sizes:kr}),color:n?u.colors.red[u.colorScheme==="dark"?6:7]:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:i||Fe({size:d,sizes:kr})}}});const j8t=O8t;var V8t=Object.defineProperty,H8t=Object.defineProperties,$8t=Object.getOwnPropertyDescriptors,Zz=Object.getOwnPropertySymbols,N8e=Object.prototype.hasOwnProperty,R8e=Object.prototype.propertyIsEnumerable,Zhe=(u,e,t)=>e in u?V8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,f9=(u,e)=>{for(var t in e||(e={}))N8e.call(e,t)&&Zhe(u,t,e[t]);if(Zz)for(var t of Zz(e))R8e.call(e,t)&&Zhe(u,t,e[t]);return u},Yhe=(u,e)=>H8t(u,$8t(e)),K8t=(u,e)=>{var t={};for(var n in u)N8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Zz)for(var n of Zz(u))e.indexOf(n)<0&&R8e.call(u,n)&&(t[n]=u[n]);return t};const W8t={size:"sm",variant:"default"},Hp=C.forwardRef((u,e)=>{const t=Je("Input",W8t,u),{className:n,error:i,required:r,disabled:a,variant:o,icon:s,style:l,rightSectionWidth:c,iconWidth:d,rightSection:h,rightSectionProps:E,radius:g,size:m,wrapperProps:f,classNames:p,styles:D,__staticSelector:x,multiline:b,sx:k,unstyled:_,pointer:y}=t,S=K8t(t,["className","error","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:B,offsetTop:L,describedBy:T}=h8t(),{classes:N,cx:F}=j8t({radius:g,multiline:b,invalid:!!i,rightSectionWidth:c?W(c):void 0,iconWidth:d,withRightSection:!!h,offsetBottom:B,offsetTop:L,pointer:y},{classNames:p,styles:D,name:["Input",x],unstyled:_,variant:o,size:m}),{systemStyles:A,rest:z}=C4(S);return M.createElement(pt,f9(f9({className:F(N.wrapper,n),sx:k,style:l},A),f),s&&M.createElement("div",{className:N.icon},s),M.createElement(pt,Yhe(f9({component:"input"},z),{ref:e,required:r,"aria-invalid":!!i,"aria-describedby":T,disabled:a,"data-disabled":a||void 0,"data-with-icon":!!s||void 0,"data-invalid":!!i||void 0,className:N.input})),h&&M.createElement("div",Yhe(f9({},E),{className:N.rightSection}),h))});Hp.displayName="@mantine/core/Input";Hp.Wrapper=L8e;Hp.Label=kue;Hp.Description=Fue;Hp.Error=yue;Hp.Placeholder=P8e;const Ma=Hp;var G8t=Object.defineProperty,Yz=Object.getOwnPropertySymbols,I8e=Object.prototype.hasOwnProperty,O8e=Object.prototype.propertyIsEnumerable,Qhe=(u,e,t)=>e in u?G8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,U8t=(u,e)=>{for(var t in e||(e={}))I8e.call(e,t)&&Qhe(u,t,e[t]);if(Yz)for(var t of Yz(e))O8e.call(e,t)&&Qhe(u,t,e[t]);return u},q8t=(u,e)=>{var t={};for(var n in u)I8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Yz)for(var n of Yz(u))e.indexOf(n)<0&&O8e.call(u,n)&&(t[n]=u[n]);return t};function J8t(u){const e=u,{style:t}=e,n=q8t(e,["style"]);return M.createElement("svg",U8t({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t},n),M.createElement("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var Z8t=Object.defineProperty,Y8t=Object.defineProperties,Q8t=Object.getOwnPropertyDescriptors,Xhe=Object.getOwnPropertySymbols,X8t=Object.prototype.hasOwnProperty,eBt=Object.prototype.propertyIsEnumerable,e4e=(u,e,t)=>e in u?Z8t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,tBt=(u,e)=>{for(var t in e||(e={}))X8t.call(e,t)&&e4e(u,t,e[t]);if(Xhe)for(var t of Xhe(e))eBt.call(e,t)&&e4e(u,t,e[t]);return u},uBt=(u,e)=>Y8t(u,Q8t(e));const j8e=C.createContext(null);function nBt({spacing:u,children:e}){return M.createElement(j8e.Provider,{value:{spacing:u}},e)}function iBt(){const u=C.useContext(j8e);return u?uBt(tBt({},u),{withinGroup:!0}):{spacing:null,withinGroup:!1}}var rBt=at((u,{spacing:e})=>({root:{display:"flex",paddingLeft:Fe({size:e,sizes:u.spacing})}}));const aBt=rBt;var oBt=Object.defineProperty,Qz=Object.getOwnPropertySymbols,V8e=Object.prototype.hasOwnProperty,H8e=Object.prototype.propertyIsEnumerable,t4e=(u,e,t)=>e in u?oBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,sBt=(u,e)=>{for(var t in e||(e={}))V8e.call(e,t)&&t4e(u,t,e[t]);if(Qz)for(var t of Qz(e))H8e.call(e,t)&&t4e(u,t,e[t]);return u},lBt=(u,e)=>{var t={};for(var n in u)V8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Qz)for(var n of Qz(u))e.indexOf(n)<0&&H8e.call(u,n)&&(t[n]=u[n]);return t};const cBt={},$8e=C.forwardRef((u,e)=>{const t=Je("AvatarGroup",cBt,u),{children:n,spacing:i="sm",unstyled:r,className:a,variant:o}=t,s=lBt(t,["children","spacing","unstyled","className","variant"]),{classes:l,cx:c}=aBt({spacing:i},{name:"AvatarGroup",unstyled:r,variant:o});return M.createElement(nBt,{spacing:i},M.createElement(pt,sBt({ref:e,className:c(l.root,a)},s),n))});$8e.displayName="@mantine/core/AvatarGroup";var dBt=Object.defineProperty,hBt=Object.defineProperties,EBt=Object.getOwnPropertyDescriptors,u4e=Object.getOwnPropertySymbols,gBt=Object.prototype.hasOwnProperty,mBt=Object.prototype.propertyIsEnumerable,n4e=(u,e,t)=>e in u?dBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,S6=(u,e)=>{for(var t in e||(e={}))gBt.call(e,t)&&n4e(u,t,e[t]);if(u4e)for(var t of u4e(e))mBt.call(e,t)&&n4e(u,t,e[t]);return u},i4e=(u,e)=>hBt(u,EBt(e));const fBt=["filled","light","gradient","outline"],p9={xs:W(16),sm:W(26),md:W(38),lg:W(56),xl:W(84)};function pBt({withinGroup:u,spacing:e,theme:t}){return u?{marginLeft:`calc(${Fe({size:e,sizes:t.spacing})} * -1)`,backgroundColor:`${t.colorScheme==="dark"?t.colors.dark[7]:t.white}`,border:`${W(2)} solid ${t.colorScheme==="dark"?t.colors.dark[7]:t.white}`}:null}function DBt({theme:u,variant:e,color:t,gradient:n}){const i=u.fn.variant({variant:e,color:t,gradient:n});return fBt.includes(e)?{placeholder:{color:i.color,backgroundColor:i.background,backgroundImage:e==="gradient"?i.background:void 0,border:`${W(e==="gradient"?0:1)} solid ${i.border}`},placeholderIcon:{color:i.color}}:{}}var xBt=at((u,{radius:e,withinGroup:t,spacing:n,color:i,gradient:r},{variant:a,size:o})=>{const s=DBt({theme:u,color:i,gradient:r,variant:a});return{root:S6(i4e(S6({},u.fn.focusStyles()),{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"block",userSelect:"none",overflow:"hidden",borderRadius:u.fn.radius(e),textDecoration:"none",border:0,backgroundColor:"transparent",padding:0,width:Fe({size:o,sizes:p9}),minWidth:Fe({size:o,sizes:p9}),height:Fe({size:o,sizes:p9})}),pBt({withinGroup:t,spacing:n,theme:u})),image:{objectFit:"cover",width:"100%",height:"100%",display:"block"},placeholder:S6(i4e(S6({},u.fn.fontStyles()),{fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",userSelect:"none",borderRadius:u.fn.radius(e),fontSize:`calc(${Fe({size:o,sizes:p9})} / 2.5)`}),s.placeholder),placeholderIcon:S6({width:"70%",height:"70%"},s.placeholderIcon)}});const vBt=xBt;var CBt=Object.defineProperty,bBt=Object.defineProperties,kBt=Object.getOwnPropertyDescriptors,Xz=Object.getOwnPropertySymbols,K8e=Object.prototype.hasOwnProperty,W8e=Object.prototype.propertyIsEnumerable,r4e=(u,e,t)=>e in u?CBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,a4e=(u,e)=>{for(var t in e||(e={}))K8e.call(e,t)&&r4e(u,t,e[t]);if(Xz)for(var t of Xz(e))W8e.call(e,t)&&r4e(u,t,e[t]);return u},yBt=(u,e)=>bBt(u,kBt(e)),FBt=(u,e)=>{var t={};for(var n in u)K8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&Xz)for(var n of Xz(u))e.indexOf(n)<0&&W8e.call(u,n)&&(t[n]=u[n]);return t};const ABt={size:"md",color:"gray",variant:"light"},Aue=C.forwardRef((u,e)=>{const t=Je("Avatar",ABt,u),{className:n,size:i,src:r,alt:a,radius:o,children:s,color:l,variant:c,gradient:d,classNames:h,styles:E,imageProps:g,unstyled:m}=t,f=FBt(t,["className","size","src","alt","radius","children","color","variant","gradient","classNames","styles","imageProps","unstyled"]),p=iBt(),[D,x]=C.useState(!r),{classes:b,cx:k}=vBt({color:l,radius:o,withinGroup:p.withinGroup,spacing:p.spacing,gradient:d},{classNames:h,styles:E,unstyled:m,name:"Avatar",variant:c,size:i});return C.useEffect(()=>{x(!r)},[r]),M.createElement(pt,a4e({component:"div",className:k(b.root,n),ref:e},f),D?M.createElement("div",{className:b.placeholder,title:a},s||M.createElement(J8t,{className:b.placeholderIcon})):M.createElement("img",yBt(a4e({},g),{className:b.image,src:r,alt:a,onError:()=>x(!0)})))});Aue.displayName="@mantine/core/Avatar";Aue.Group=$8e;const o4e=Aue;var _Bt=Object.defineProperty,SBt=Object.defineProperties,BBt=Object.getOwnPropertyDescriptors,s4e=Object.getOwnPropertySymbols,wBt=Object.prototype.hasOwnProperty,zBt=Object.prototype.propertyIsEnumerable,l4e=(u,e,t)=>e in u?_Bt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,EH=(u,e)=>{for(var t in e||(e={}))wBt.call(e,t)&&l4e(u,t,e[t]);if(s4e)for(var t of s4e(e))zBt.call(e,t)&&l4e(u,t,e[t]);return u},LBt=(u,e)=>SBt(u,BBt(e));const MBt=["light","filled","outline","dot","gradient"],gH={xs:{fontSize:W(9),height:W(16)},sm:{fontSize:W(10),height:W(18)},md:{fontSize:W(11),height:W(20)},lg:{fontSize:W(13),height:W(26)},xl:{fontSize:W(16),height:W(32)}},TBt={xs:W(4),sm:W(4),md:W(6),lg:W(8),xl:W(10)};function PBt({theme:u,variant:e,color:t,size:n,gradient:i}){if(!MBt.includes(e))return null;if(e==="dot"){const a=Fe({size:n,sizes:TBt});return{backgroundColor:"transparent",color:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[7],border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[3]}`,paddingLeft:`calc(${Fe({size:n,sizes:u.spacing})} / 1.5 - ${a} / 2)`,"&::before":{content:'""',display:"block",width:a,height:a,borderRadius:a,backgroundColor:u.fn.themeColor(t,u.colorScheme==="dark"?4:u.fn.primaryShade("light"),!0),marginRight:a}}}const r=u.fn.variant({color:t,variant:e,gradient:i});return{background:r.background,color:r.color,border:`${W(e==="gradient"?0:1)} solid ${r.border}`}}var NBt=at((u,{color:e,radius:t,gradient:n,fullWidth:i},{variant:r,size:a})=>{const{fontSize:o,height:s}=a in gH?gH[a]:gH.md;return{leftSection:{marginRight:`calc(${u.spacing.xs} / 2)`},rightSection:{marginLeft:`calc(${u.spacing.xs} / 2)`},inner:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},root:EH(LBt(EH(EH({},u.fn.focusStyles()),u.fn.fontStyles()),{fontSize:o,height:s,WebkitTapHighlightColor:"transparent",lineHeight:`calc(${s} - ${W(2)})`,textDecoration:"none",padding:`0 calc(${Fe({size:a,sizes:u.spacing})} / 1.5)`,boxSizing:"border-box",display:i?"flex":"inline-flex",alignItems:"center",justifyContent:"center",width:i?"100%":"auto",textTransform:"uppercase",borderRadius:u.fn.radius(t),fontWeight:700,letterSpacing:W(.25),cursor:"inherit",textOverflow:"ellipsis",overflow:"hidden"}),PBt({theme:u,variant:r,color:e,size:a,gradient:n}))}});const RBt=NBt;var IBt=Object.defineProperty,eL=Object.getOwnPropertySymbols,G8e=Object.prototype.hasOwnProperty,U8e=Object.prototype.propertyIsEnumerable,c4e=(u,e,t)=>e in u?IBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,OBt=(u,e)=>{for(var t in e||(e={}))G8e.call(e,t)&&c4e(u,t,e[t]);if(eL)for(var t of eL(e))U8e.call(e,t)&&c4e(u,t,e[t]);return u},jBt=(u,e)=>{var t={};for(var n in u)G8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&eL)for(var n of eL(u))e.indexOf(n)<0&&U8e.call(u,n)&&(t[n]=u[n]);return t};const VBt={variant:"light",size:"md",radius:"xl"},q8e=C.forwardRef((u,e)=>{const t=Je("Badge",VBt,u),{className:n,color:i,variant:r,fullWidth:a,children:o,size:s,leftSection:l,rightSection:c,radius:d,gradient:h,classNames:E,styles:g,unstyled:m}=t,f=jBt(t,["className","color","variant","fullWidth","children","size","leftSection","rightSection","radius","gradient","classNames","styles","unstyled"]),{classes:p,cx:D}=RBt({fullWidth:a,color:i,radius:d,gradient:h},{classNames:E,styles:g,name:"Badge",unstyled:m,variant:r,size:s});return M.createElement(pt,OBt({className:D(p.root,n),ref:e},f),l&&M.createElement("span",{className:p.leftSection},l),M.createElement("span",{className:p.inner},o),c&&M.createElement("span",{className:p.rightSection},c))});q8e.displayName="@mantine/core/Badge";const wv=q8e,HBt={xs:W(12),sm:W(18),md:W(24),lg:W(34),xl:W(42)};var $Bt=at((u,{color:e,transitionDuration:t},{size:n})=>{const i=Fe({size:n,sizes:HBt}),r=e||(u.colorScheme==="dark"?u.white:u.black);return{root:{borderRadius:u.radius.sm,width:`calc(${i} + ${u.spacing.xs})`,height:`calc(${i} + ${u.spacing.xs})`,padding:`calc(${u.spacing.xs} / 2)`,cursor:"pointer"},burger:{position:"relative",userSelect:"none",boxSizing:"border-box","&, &::before, &::after":{display:"block",width:i,height:`calc(${i} / 12)`,backgroundColor:r,outline:`${W(1)} solid transparent`,transitionProperty:"background-color, transform",transitionDuration:`${t}ms`,"@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":void 0}},"&::before, &::after":{position:"absolute",content:'""',left:0},"&::before":{top:`calc((${i} / 3) * -1)`},"&::after":{top:`calc(${i} / 3)`},"&[data-opened]":{backgroundColor:"transparent","&::before":{transform:`translateY(calc(${i} / 3)) rotate(45deg)`},"&::after":{transform:`translateY(calc(-${i} / 3)) rotate(-45deg)`}}}}});const KBt=$Bt;var WBt=Object.defineProperty,tL=Object.getOwnPropertySymbols,J8e=Object.prototype.hasOwnProperty,Z8e=Object.prototype.propertyIsEnumerable,d4e=(u,e,t)=>e in u?WBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,GBt=(u,e)=>{for(var t in e||(e={}))J8e.call(e,t)&&d4e(u,t,e[t]);if(tL)for(var t of tL(e))Z8e.call(e,t)&&d4e(u,t,e[t]);return u},UBt=(u,e)=>{var t={};for(var n in u)J8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&tL)for(var n of tL(u))e.indexOf(n)<0&&Z8e.call(u,n)&&(t[n]=u[n]);return t};const qBt={size:"md",transitionDuration:300},Y8e=C.forwardRef((u,e)=>{const t=Je("Burger",qBt,u),{className:n,opened:i,color:r,size:a,classNames:o,styles:s,transitionDuration:l,variant:c}=t,d=UBt(t,["className","opened","color","size","classNames","styles","transitionDuration","variant"]),{classes:h,cx:E}=KBt({color:r,transitionDuration:l},{classNames:o,styles:s,name:"Burger",variant:c,size:a});return M.createElement(b4,GBt({className:E(h.root,n),ref:e},d),M.createElement("div",{"data-opened":i||void 0,className:h.burger}))});Y8e.displayName="@mantine/core/Burger";var JBt=at((u,{orientation:e,buttonBorderWidth:t})=>({root:{display:"flex",flexDirection:e==="vertical"?"column":"row","& [data-button]":{"&:first-of-type:not(:last-of-type)":{borderBottomRightRadius:0,[e==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[e==="vertical"?"borderBottomWidth":"borderRightWidth"]:`calc(${W(t)} / 2)`},"&:last-of-type:not(:first-of-type)":{borderTopLeftRadius:0,[e==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[e==="vertical"?"borderTopWidth":"borderLeftWidth"]:`calc(${W(t)} / 2)`},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[e==="vertical"?"borderTopWidth":"borderLeftWidth"]:`calc(${W(t)} / 2)`,[e==="vertical"?"borderBottomWidth":"borderRightWidth"]:`calc(${W(t)} / 2)`},"& + [data-button]":{[e==="vertical"?"marginTop":"marginLeft"]:`calc(${t} * -1)`,"@media (min-resolution: 192dpi)":{[e==="vertical"?"marginTop":"marginLeft"]:0}}}}}));const ZBt=JBt;var YBt=Object.defineProperty,uL=Object.getOwnPropertySymbols,Q8e=Object.prototype.hasOwnProperty,X8e=Object.prototype.propertyIsEnumerable,h4e=(u,e,t)=>e in u?YBt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,QBt=(u,e)=>{for(var t in e||(e={}))Q8e.call(e,t)&&h4e(u,t,e[t]);if(uL)for(var t of uL(e))X8e.call(e,t)&&h4e(u,t,e[t]);return u},XBt=(u,e)=>{var t={};for(var n in u)Q8e.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&uL)for(var n of uL(u))e.indexOf(n)<0&&X8e.call(u,n)&&(t[n]=u[n]);return t};const ewt={orientation:"horizontal",buttonBorderWidth:1},eBe=C.forwardRef((u,e)=>{const t=Je("ButtonGroup",ewt,u),{className:n,orientation:i,buttonBorderWidth:r,unstyled:a}=t,o=XBt(t,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:l}=ZBt({orientation:i,buttonBorderWidth:r},{name:"ButtonGroup",unstyled:a});return M.createElement(pt,QBt({className:l(s.root,n),ref:e},o))});eBe.displayName="@mantine/core/ButtonGroup";var twt=Object.defineProperty,uwt=Object.defineProperties,nwt=Object.getOwnPropertyDescriptors,E4e=Object.getOwnPropertySymbols,iwt=Object.prototype.hasOwnProperty,rwt=Object.prototype.propertyIsEnumerable,g4e=(u,e,t)=>e in u?twt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,fh=(u,e)=>{for(var t in e||(e={}))iwt.call(e,t)&&g4e(u,t,e[t]);if(E4e)for(var t of E4e(e))rwt.call(e,t)&&g4e(u,t,e[t]);return u},o8=(u,e)=>uwt(u,nwt(e));const awt=["filled","outline","light","white","default","subtle","gradient"],PJ={xs:{height:kr.xs,paddingLeft:W(14),paddingRight:W(14)},sm:{height:kr.sm,paddingLeft:W(18),paddingRight:W(18)},md:{height:kr.md,paddingLeft:W(22),paddingRight:W(22)},lg:{height:kr.lg,paddingLeft:W(26),paddingRight:W(26)},xl:{height:kr.xl,paddingLeft:W(32),paddingRight:W(32)},"compact-xs":{height:W(22),paddingLeft:W(7),paddingRight:W(7)},"compact-sm":{height:W(26),paddingLeft:W(8),paddingRight:W(8)},"compact-md":{height:W(30),paddingLeft:W(10),paddingRight:W(10)},"compact-lg":{height:W(34),paddingLeft:W(12),paddingRight:W(12)},"compact-xl":{height:W(40),paddingLeft:W(14),paddingRight:W(14)}};function owt({compact:u,size:e,withLeftIcon:t,withRightIcon:n}){if(u)return PJ[`compact-${e}`];const i=PJ[e];return i?o8(fh({},i),{paddingLeft:t?`calc(${i.paddingLeft} / 1.5)`:i.paddingLeft,paddingRight:n?`calc(${i.paddingRight} / 1.5)`:i.paddingRight}):{}}const swt=u=>({display:u?"block":"inline-block",width:u?"100%":"auto"});function lwt({variant:u,theme:e,color:t,gradient:n}){if(!awt.includes(u))return null;const i=e.fn.variant({color:t,variant:u,gradient:n});return u==="gradient"?fh({border:0,backgroundImage:i.background,color:i.color},e.fn.hover({backgroundSize:"200%"})):fh({border:`${W(1)} solid ${i.border}`,backgroundColor:i.background,color:i.color},e.fn.hover({backgroundColor:i.hover}))}var cwt=at((u,{radius:e,fullWidth:t,compact:n,withLeftIcon:i,withRightIcon:r,color:a,gradient:o},{variant:s,size:l})=>({root:o8(fh(o8(fh(fh(fh(fh({},owt({compact:n,size:l,withLeftIcon:i,withRightIcon:r})),u.fn.fontStyles()),u.fn.focusStyles()),swt(t)),{borderRadius:u.fn.radius(e),fontWeight:600,position:"relative",lineHeight:1,fontSize:Fe({size:l,sizes:u.fontSizes}),userSelect:"none",cursor:"pointer"}),lwt({variant:s,theme:u,color:a,gradient:o})),{"&:active":u.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],color:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":o8(fh({content:'""'},u.fn.cover(W(-1))),{backgroundColor:u.colorScheme==="dark"?u.fn.rgba(u.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:u.fn.radius(e),cursor:"not-allowed"})}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:u.spacing.xs},rightIcon:{marginLeft:u.spacing.xs},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}}));const dwt=cwt;var hwt=Object.defineProperty,nL=Object.getOwnPropertySymbols,tBe=Object.prototype.hasOwnProperty,uBe=Object.prototype.propertyIsEnumerable,m4e=(u,e,t)=>e in u?hwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,f4e=(u,e)=>{for(var t in e||(e={}))tBe.call(e,t)&&m4e(u,t,e[t]);if(nL)for(var t of nL(e))uBe.call(e,t)&&m4e(u,t,e[t]);return u},Ewt=(u,e)=>{var t={};for(var n in u)tBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&nL)for(var n of nL(u))e.indexOf(n)<0&&uBe.call(u,n)&&(t[n]=u[n]);return t};const gwt={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},_ue=C.forwardRef((u,e)=>{const t=Je("Button",gwt,u),{className:n,size:i,color:r,type:a,disabled:o,children:s,leftIcon:l,rightIcon:c,fullWidth:d,variant:h,radius:E,uppercase:g,compact:m,loading:f,loaderPosition:p,loaderProps:D,gradient:x,classNames:b,styles:k,unstyled:_}=t,y=Ewt(t,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:S,cx:B,theme:L}=dwt({radius:E,color:r,fullWidth:d,compact:m,gradient:x,withLeftIcon:!!l,withRightIcon:!!c},{name:"Button",unstyled:_,classNames:b,styles:k,variant:h,size:i}),T=L.fn.variant({color:r,variant:h}),N=M.createElement(Fv,f4e({color:T.color,size:`calc(${Fe({size:i,sizes:PJ}).height} / 2)`},D));return M.createElement(b4,f4e({className:B(S.root,n),type:a,disabled:o,"data-button":!0,"data-disabled":o||void 0,"data-loading":f||void 0,ref:e,unstyled:_},y),M.createElement("div",{className:S.inner},(l||f&&p==="left")&&M.createElement("span",{className:B(S.icon,S.leftIcon)},f&&p==="left"?N:l),f&&p==="center"&&M.createElement("span",{className:S.centerLoader},N),M.createElement("span",{className:S.label,style:{textTransform:g?"uppercase":void 0}},s),(c||f&&p==="right")&&M.createElement("span",{className:B(S.icon,S.rightIcon)},f&&p==="right"?N:c)))});_ue.displayName="@mantine/core/Button";_ue.Group=eBe;const hl=_ue;var mwt=at((u,{radius:e,shadow:t})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,boxSizing:"border-box",borderRadius:u.fn.radius(e),boxShadow:u.shadows[t]||t||"none","&[data-with-border]":{border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]}`}}}));const fwt=mwt;var pwt=Object.defineProperty,iL=Object.getOwnPropertySymbols,nBe=Object.prototype.hasOwnProperty,iBe=Object.prototype.propertyIsEnumerable,p4e=(u,e,t)=>e in u?pwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Dwt=(u,e)=>{for(var t in e||(e={}))nBe.call(e,t)&&p4e(u,t,e[t]);if(iL)for(var t of iL(e))iBe.call(e,t)&&p4e(u,t,e[t]);return u},xwt=(u,e)=>{var t={};for(var n in u)nBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&iL)for(var n of iL(u))e.indexOf(n)<0&&iBe.call(u,n)&&(t[n]=u[n]);return t};const vwt={},rBe=C.forwardRef((u,e)=>{const t=Je("Paper",vwt,u),{className:n,children:i,radius:r,withBorder:a,shadow:o,unstyled:s,variant:l}=t,c=xwt(t,["className","children","radius","withBorder","shadow","unstyled","variant"]),{classes:d,cx:h}=fwt({radius:r,shadow:o},{name:"Paper",unstyled:s,variant:l});return M.createElement(pt,Dwt({className:h(d.root,n),"data-with-border":a||void 0,ref:e},c),i)});rBe.displayName="@mantine/core/Paper";const aBe=rBe,oBe=C.createContext({padding:0}),Cwt=oBe.Provider,bwt=()=>C.useContext(oBe).padding;var kwt=at((u,{padding:e,withBorder:t,inheritPadding:n})=>{const i=Fe({size:e,sizes:u.spacing}),r=`calc(-1 * ${i})`,a=u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3];return{cardSection:{display:"block",marginLeft:r,marginRight:r,paddingLeft:n?i:void 0,paddingRight:n?i:void 0,borderTop:t?`${W(1)} solid ${a}`:void 0,borderBottom:t?`${W(1)} solid ${a}`:void 0,"& + &":{borderTop:0},"&[data-first]":{marginTop:r,borderTop:0,borderBottom:t?`${W(1)} solid ${a}`:void 0},"&[data-last]":{marginBottom:r,borderBottom:0}}}});const ywt=kwt;var Fwt=Object.defineProperty,rL=Object.getOwnPropertySymbols,sBe=Object.prototype.hasOwnProperty,lBe=Object.prototype.propertyIsEnumerable,D4e=(u,e,t)=>e in u?Fwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Awt=(u,e)=>{for(var t in e||(e={}))sBe.call(e,t)&&D4e(u,t,e[t]);if(rL)for(var t of rL(e))lBe.call(e,t)&&D4e(u,t,e[t]);return u},_wt=(u,e)=>{var t={};for(var n in u)sBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&rL)for(var n of rL(u))e.indexOf(n)<0&&lBe.call(u,n)&&(t[n]=u[n]);return t};const Swt={withBorder:!1,inheritPadding:!1},cBe=C.forwardRef((u,e)=>{const t=Je("CardSection",Swt,u),{className:n,withBorder:i,inheritPadding:r,unstyled:a,variant:o}=t,s=_wt(t,["className","withBorder","inheritPadding","unstyled","variant"]),{classes:l,cx:c}=ywt({padding:bwt(),withBorder:i,inheritPadding:r},{name:"Card",unstyled:a,variant:o});return M.createElement(pt,Awt({className:c(l.cardSection,n),ref:e},s))});cBe.displayName="@mantine/core/CardSection";const dBe=cBe;var Bwt=at(u=>({root:{position:"relative",overflow:"hidden",backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white}}));const wwt=Bwt;var zwt=Object.defineProperty,aL=Object.getOwnPropertySymbols,hBe=Object.prototype.hasOwnProperty,EBe=Object.prototype.propertyIsEnumerable,x4e=(u,e,t)=>e in u?zwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Lwt=(u,e)=>{for(var t in e||(e={}))hBe.call(e,t)&&x4e(u,t,e[t]);if(aL)for(var t of aL(e))EBe.call(e,t)&&x4e(u,t,e[t]);return u},Mwt=(u,e)=>{var t={};for(var n in u)hBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&aL)for(var n of aL(u))e.indexOf(n)<0&&EBe.call(u,n)&&(t[n]=u[n]);return t};const Twt={padding:"md"},Sue=C.forwardRef((u,e)=>{const t=Je("Card",Twt,u),{className:n,padding:i,radius:r,children:a,unstyled:o,variant:s}=t,l=Mwt(t,["className","padding","radius","children","unstyled","variant"]),{classes:c,cx:d}=wwt(null,{name:"Card",unstyled:o,variant:s}),h=C.Children.toArray(a),E=h.map((g,m)=>typeof g=="object"&&g&&"type"in g&&g.type===dBe?C.cloneElement(g,{variant:s,padding:i,"data-first":m===0||void 0,"data-last":m===h.length-1||void 0}):g);return M.createElement(Cwt,{value:{padding:i}},M.createElement(aBe,Lwt({className:d(c.root,n),radius:r,p:i,ref:e},l),E))});Sue.Section=dBe;Sue.displayName="@mantine/core/Card";const mg=Sue;var Pwt=at((u,{inline:e})=>({root:{display:e?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}}));const Nwt=Pwt;var Rwt=Object.defineProperty,oL=Object.getOwnPropertySymbols,gBe=Object.prototype.hasOwnProperty,mBe=Object.prototype.propertyIsEnumerable,v4e=(u,e,t)=>e in u?Rwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Iwt=(u,e)=>{for(var t in e||(e={}))gBe.call(e,t)&&v4e(u,t,e[t]);if(oL)for(var t of oL(e))mBe.call(e,t)&&v4e(u,t,e[t]);return u},Owt=(u,e)=>{var t={};for(var n in u)gBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&oL)for(var n of oL(u))e.indexOf(n)<0&&mBe.call(u,n)&&(t[n]=u[n]);return t};const fBe=C.forwardRef((u,e)=>{const t=Je("Center",{},u),{inline:n,className:i,unstyled:r,variant:a}=t,o=Owt(t,["inline","className","unstyled","variant"]),{classes:s,cx:l}=Nwt({inline:n},{name:"Center",unstyled:r,variant:a});return M.createElement(pt,Iwt({ref:e,className:l(s.root,i)},o))});fBe.displayName="@mantine/core/Center";const sL=fBe,pBe=C.createContext(null),jwt=pBe.Provider,Vwt=()=>C.useContext(pBe);var Hwt=Object.defineProperty,lL=Object.getOwnPropertySymbols,DBe=Object.prototype.hasOwnProperty,xBe=Object.prototype.propertyIsEnumerable,C4e=(u,e,t)=>e in u?Hwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,b4e=(u,e)=>{for(var t in e||(e={}))DBe.call(e,t)&&C4e(u,t,e[t]);if(lL)for(var t of lL(e))xBe.call(e,t)&&C4e(u,t,e[t]);return u},$wt=(u,e)=>{var t={};for(var n in u)DBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&lL)for(var n of lL(u))e.indexOf(n)<0&&xBe.call(u,n)&&(t[n]=u[n]);return t};const Kwt={size:"sm"},vBe=C.forwardRef((u,e)=>{const t=Je("CheckboxGroup",Kwt,u),{children:n,value:i,defaultValue:r,onChange:a,size:o,wrapperProps:s}=t,l=$wt(t,["children","value","defaultValue","onChange","size","wrapperProps"]),[c,d]=cs({value:i,defaultValue:r,finalValue:[],onChange:a}),h=E=>{const g=E.currentTarget.value;d(c.includes(g)?c.filter(m=>m!==g):[...c,g])};return M.createElement(jwt,{value:{value:c,onChange:h,size:o}},M.createElement(Ma.Wrapper,b4e(b4e({labelElement:"div",size:o,__staticSelector:"CheckboxGroup",ref:e},s),l),n))});vBe.displayName="@mantine/core/CheckboxGroup";var Wwt=Object.defineProperty,cL=Object.getOwnPropertySymbols,CBe=Object.prototype.hasOwnProperty,bBe=Object.prototype.propertyIsEnumerable,k4e=(u,e,t)=>e in u?Wwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dL=(u,e)=>{for(var t in e||(e={}))CBe.call(e,t)&&k4e(u,t,e[t]);if(cL)for(var t of cL(e))bBe.call(e,t)&&k4e(u,t,e[t]);return u},kBe=(u,e)=>{var t={};for(var n in u)CBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&cL)for(var n of cL(u))e.indexOf(n)<0&&bBe.call(u,n)&&(t[n]=u[n]);return t};function Gwt(u){const e=u,{width:t,height:n,style:i}=e,r=kBe(e,["width","height","style"]);return M.createElement("svg",dL({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:dL({width:t,height:n},i)},r),M.createElement("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function yBe(u){var e=u,{indeterminate:t}=e,n=kBe(e,["indeterminate"]);return t?M.createElement("svg",dL({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},n),M.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):M.createElement(Gwt,dL({},n))}var Uwt=Object.defineProperty,qwt=Object.defineProperties,Jwt=Object.getOwnPropertyDescriptors,y4e=Object.getOwnPropertySymbols,Zwt=Object.prototype.hasOwnProperty,Ywt=Object.prototype.propertyIsEnumerable,F4e=(u,e,t)=>e in u?Uwt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,A4e=(u,e)=>{for(var t in e||(e={}))Zwt.call(e,t)&&F4e(u,t,e[t]);if(y4e)for(var t of y4e(e))Ywt.call(e,t)&&F4e(u,t,e[t]);return u},_4e=(u,e)=>qwt(u,Jwt(e));const Qwt={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)};var Xwt=at((u,{radius:e,color:t,transitionDuration:n,labelPosition:i,error:r,indeterminate:a},{size:o})=>{const s=Fe({size:o,sizes:Qwt}),l=u.fn.variant({variant:"filled",color:t});return{icon:_4e(A4e({},u.fn.cover()),{ref:s1("icon"),color:a?"inherit":u.white,transform:a?"none":`translateY(${W(5)}) scale(0.5)`,opacity:a?1:0,transitionProperty:"opacity, transform",transitionTimingFunction:"ease",transitionDuration:`${n}ms`,pointerEvents:"none",width:"60%",position:"absolute",zIndex:1,margin:"auto","@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":void 0}}),inner:{position:"relative",width:s,height:s,order:i==="left"?2:1},input:_4e(A4e({},u.fn.focusStyles()),{appearance:"none",backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,border:`${W(1)} solid ${r?u.fn.variant({variant:"filled",color:"red"}).background:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,width:s,height:s,borderRadius:u.fn.radius(e),padding:0,display:"block",margin:0,transition:`border-color ${n}ms ease, background-color ${n}ms ease`,cursor:u.cursorType,"&:checked":{backgroundColor:l.background,borderColor:l.background,[`& + .${s1("icon")}`]:{opacity:1,color:u.white,transform:"translateY(0) scale(1)"}},"&:disabled":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],borderColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[3],cursor:"not-allowed",pointerEvents:"none",[`& + .${s1("icon")}`]:{color:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[5]}}})}});const ezt=Xwt;var tzt=Object.defineProperty,uzt=Object.defineProperties,nzt=Object.getOwnPropertyDescriptors,S4e=Object.getOwnPropertySymbols,izt=Object.prototype.hasOwnProperty,rzt=Object.prototype.propertyIsEnumerable,B4e=(u,e,t)=>e in u?tzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,azt=(u,e)=>{for(var t in e||(e={}))izt.call(e,t)&&B4e(u,t,e[t]);if(S4e)for(var t of S4e(e))rzt.call(e,t)&&B4e(u,t,e[t]);return u},ozt=(u,e)=>uzt(u,nzt(e));const mH={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)};var szt=at((u,{labelPosition:e},{size:t})=>({root:{},body:{display:"flex","&:has(input:disabled) label":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]}},labelWrapper:ozt(azt({},u.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:t in mH?Fe({size:t,sizes:u.fontSizes}):void 0,lineHeight:t in mH?Fe({size:t,sizes:mH}):void 0,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,cursor:u.cursorType,order:e==="left"?1:2}),description:{marginTop:`calc(${u.spacing.xs} / 2)`,[e==="left"?"paddingRight":"paddingLeft"]:u.spacing.sm},error:{marginTop:`calc(${u.spacing.xs} / 2)`,[e==="left"?"paddingRight":"paddingLeft"]:u.spacing.sm},label:{cursor:u.cursorType,[e==="left"?"paddingRight":"paddingLeft"]:u.spacing.sm,"&:disabled, &[data-disabled]":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]}}}));const lzt=szt;var czt=Object.defineProperty,hL=Object.getOwnPropertySymbols,FBe=Object.prototype.hasOwnProperty,ABe=Object.prototype.propertyIsEnumerable,w4e=(u,e,t)=>e in u?czt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dzt=(u,e)=>{for(var t in e||(e={}))FBe.call(e,t)&&w4e(u,t,e[t]);if(hL)for(var t of hL(e))ABe.call(e,t)&&w4e(u,t,e[t]);return u},hzt=(u,e)=>{var t={};for(var n in u)FBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&hL)for(var n of hL(u))e.indexOf(n)<0&&ABe.call(u,n)&&(t[n]=u[n]);return t};const QR=C.forwardRef((u,e)=>{var t=u,{__staticSelector:n,className:i,classNames:r,styles:a,unstyled:o,children:s,label:l,description:c,id:d,disabled:h,error:E,size:g,labelPosition:m,variant:f}=t,p=hzt(t,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition","variant"]);const{classes:D,cx:x}=lzt({labelPosition:m},{name:n,styles:a,classNames:r,unstyled:o,variant:f,size:g});return M.createElement(pt,dzt({className:x(D.root,i),ref:e},p),M.createElement("div",{className:x(D.body)},s,M.createElement("div",{className:D.labelWrapper},l&&M.createElement("label",{className:D.label,"data-disabled":h||void 0,htmlFor:d},l),c&&M.createElement(Ma.Description,{className:D.description},c),E&&E!=="boolean"&&M.createElement(Ma.Error,{className:D.error},E))))});QR.displayName="@mantine/core/InlineInput";var Ezt=Object.defineProperty,EL=Object.getOwnPropertySymbols,_Be=Object.prototype.hasOwnProperty,SBe=Object.prototype.propertyIsEnumerable,z4e=(u,e,t)=>e in u?Ezt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,D9=(u,e)=>{for(var t in e||(e={}))_Be.call(e,t)&&z4e(u,t,e[t]);if(EL)for(var t of EL(e))SBe.call(e,t)&&z4e(u,t,e[t]);return u},gzt=(u,e)=>{var t={};for(var n in u)_Be.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&EL)for(var n of EL(u))e.indexOf(n)<0&&SBe.call(u,n)&&(t[n]=u[n]);return t};const mzt={size:"sm",transitionDuration:100,icon:yBe,labelPosition:"right"},El=C.forwardRef((u,e)=>{const t=Je("Checkbox",mzt,u),{className:n,style:i,sx:r,checked:a,disabled:o,color:s,label:l,indeterminate:c,id:d,size:h,radius:E,wrapperProps:g,children:m,classNames:f,styles:p,transitionDuration:D,icon:x,unstyled:b,labelPosition:k,description:_,error:y,variant:S}=t,B=gzt(t,["className","style","sx","checked","disabled","color","label","indeterminate","id","size","radius","wrapperProps","children","classNames","styles","transitionDuration","icon","unstyled","labelPosition","description","error","variant"]),L=Vwt(),T=Kl(d),{systemStyles:N,rest:F}=C4(B),{classes:A}=ezt({radius:E,color:s,transitionDuration:D,labelPosition:k,error:!!y,indeterminate:c},{name:"Checkbox",classNames:f,styles:p,unstyled:b,variant:S,size:(L==null?void 0:L.size)||h}),z=L?{checked:L.value.includes(F.value),onChange:L.onChange}:{};return M.createElement(QR,D9(D9({className:n,sx:r,style:i,id:T,size:(L==null?void 0:L.size)||h,labelPosition:k,label:l,description:_,error:y,disabled:o,__staticSelector:"Checkbox",classNames:f,styles:p,unstyled:b,"data-checked":z.checked||void 0,variant:S},N),g),M.createElement("div",{className:A.inner},M.createElement("input",D9(D9({id:T,ref:e,type:"checkbox",className:A.input,checked:a,disabled:o},F),z)),M.createElement(x,{indeterminate:c,className:A.icon})))});El.displayName="@mantine/core/Checkbox";El.Group=vBe;var fzt=Object.defineProperty,pzt=Object.defineProperties,Dzt=Object.getOwnPropertyDescriptors,L4e=Object.getOwnPropertySymbols,xzt=Object.prototype.hasOwnProperty,vzt=Object.prototype.propertyIsEnumerable,M4e=(u,e,t)=>e in u?fzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Czt=(u,e)=>{for(var t in e||(e={}))xzt.call(e,t)&&M4e(u,t,e[t]);if(L4e)for(var t of L4e(e))vzt.call(e,t)&&M4e(u,t,e[t]);return u},bzt=(u,e)=>pzt(u,Dzt(e)),kzt=at((u,{color:e})=>{const t=e||(u.colorScheme==="dark"?"dark":"gray"),n=u.fn.variant({color:t,variant:"light"});return{root:bzt(Czt({},u.fn.fontStyles()),{lineHeight:u.lineHeight,padding:`${W(2)} calc(${u.spacing.xs} / 2)`,borderRadius:u.radius.sm,color:u.colorScheme==="dark"?t==="dark"?u.colors.dark[0]:u.white:u.colors.dark[7],backgroundColor:u.colorScheme==="dark"&&t==="dark"?u.colors.dark[5]:n.background,fontFamily:u.fontFamilyMonospace,fontSize:u.fontSizes.xs}),block:{padding:u.spacing.xs,margin:0,overflowX:"auto"}}});const yzt=kzt;var Fzt=Object.defineProperty,gL=Object.getOwnPropertySymbols,BBe=Object.prototype.hasOwnProperty,wBe=Object.prototype.propertyIsEnumerable,T4e=(u,e,t)=>e in u?Fzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,P4e=(u,e)=>{for(var t in e||(e={}))BBe.call(e,t)&&T4e(u,t,e[t]);if(gL)for(var t of gL(e))wBe.call(e,t)&&T4e(u,t,e[t]);return u},Azt=(u,e)=>{var t={};for(var n in u)BBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&gL)for(var n of gL(u))e.indexOf(n)<0&&wBe.call(u,n)&&(t[n]=u[n]);return t};const _zt={},mL=C.forwardRef((u,e)=>{const t=Je("Code",_zt,u),{className:n,children:i,block:r,color:a,unstyled:o,variant:s}=t,l=Azt(t,["className","children","block","color","unstyled","variant"]),{classes:c,cx:d}=yzt({color:a},{name:"Code",unstyled:o,variant:s});return r?M.createElement(pt,P4e({component:"pre",dir:"ltr",className:d(c.root,c.block,n),ref:e},l),i):M.createElement(pt,P4e({component:"code",className:d(c.root,n),ref:e,dir:"ltr"},l),i)});mL.displayName="@mantine/core/Code";var Szt=at((u,{fluid:e,sizes:t},{size:n})=>({root:{paddingLeft:u.spacing.md,paddingRight:u.spacing.md,maxWidth:e?"100%":Fe({size:n,sizes:t}),marginLeft:"auto",marginRight:"auto"}}));const Bzt=Szt;var wzt=Object.defineProperty,fL=Object.getOwnPropertySymbols,zBe=Object.prototype.hasOwnProperty,LBe=Object.prototype.propertyIsEnumerable,N4e=(u,e,t)=>e in u?wzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zzt=(u,e)=>{for(var t in e||(e={}))zBe.call(e,t)&&N4e(u,t,e[t]);if(fL)for(var t of fL(e))LBe.call(e,t)&&N4e(u,t,e[t]);return u},Lzt=(u,e)=>{var t={};for(var n in u)zBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&fL)for(var n of fL(u))e.indexOf(n)<0&&LBe.call(u,n)&&(t[n]=u[n]);return t};const Mzt={sizes:{xs:W(540),sm:W(720),md:W(960),lg:W(1140),xl:W(1320)}},XR=C.forwardRef((u,e)=>{const t=Je("Container",Mzt,u),{className:n,fluid:i,size:r,unstyled:a,sizes:o,variant:s}=t,l=Lzt(t,["className","fluid","size","unstyled","sizes","variant"]),{classes:c,cx:d}=Bzt({fluid:i,sizes:o},{unstyled:a,name:"Container",variant:s,size:r});return M.createElement(pt,zzt({className:d(c.root,n),ref:e},l))});XR.displayName="@mantine/core/Container";const[Tzt,Pzt]=P1("Drawer component was not found in tree"),R4e={xs:W(320),sm:W(380),md:W(440),lg:W(620),xl:W(780)};var Nzt=at((u,{position:e},{size:t})=>({header:{zIndex:1e3},content:{flex:e==="right"||e==="left"?`0 0 ${Fe({size:t,sizes:R4e})}`:"0 0 100%",maxWidth:"100%",maxHeight:"100%",height:e==="right"||e==="left"?"100%":Fe({size:t,sizes:R4e}),borderRadius:0,overflowY:"auto"},inner:{display:"flex",justifyContent:e==="right"?"flex-end":"flex-start",alignItems:e==="bottom"?"flex-end":"flex-start"}}));const Rzt=Nzt,[Izt,xC]=P1("ModalBase component was not found in tree");var Ozt=at(()=>({close:{marginLeft:"auto",marginRight:0}}));const jzt=Ozt;var Vzt=Object.defineProperty,pL=Object.getOwnPropertySymbols,MBe=Object.prototype.hasOwnProperty,TBe=Object.prototype.propertyIsEnumerable,I4e=(u,e,t)=>e in u?Vzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Hzt=(u,e)=>{for(var t in e||(e={}))MBe.call(e,t)&&I4e(u,t,e[t]);if(pL)for(var t of pL(e))TBe.call(e,t)&&I4e(u,t,e[t]);return u},$zt=(u,e)=>{var t={};for(var n in u)MBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&pL)for(var n of pL(u))e.indexOf(n)<0&&TBe.call(u,n)&&(t[n]=u[n]);return t};const Kzt={size:"sm"},Wzt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}CloseButton`,Kzt,u),{className:i}=n,r=$zt(n,["className"]),{classes:a,cx:o}=jzt(null,t.stylesApi);return M.createElement(KR,Hzt({className:o(a.close,i),ref:e,onClick:t.onClose},r))});var Gzt=at(()=>({overlay:{}}));const Uzt=Gzt;var qzt=Object.defineProperty,Jzt=Object.defineProperties,Zzt=Object.getOwnPropertyDescriptors,O4e=Object.getOwnPropertySymbols,Yzt=Object.prototype.hasOwnProperty,Qzt=Object.prototype.propertyIsEnumerable,j4e=(u,e,t)=>e in u?qzt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Xzt=(u,e)=>{for(var t in e||(e={}))Yzt.call(e,t)&&j4e(u,t,e[t]);if(O4e)for(var t of O4e(e))Qzt.call(e,t)&&j4e(u,t,e[t]);return u},eLt=(u,e)=>Jzt(u,Zzt(e)),tLt=at((u,{color:e,opacity:t,blur:n,radius:i,gradient:r,fixed:a,zIndex:o})=>({root:eLt(Xzt({},u.fn.cover(0)),{position:a?"fixed":"absolute",backgroundColor:r?void 0:u.fn.rgba(e,t),backgroundImage:r,backdropFilter:n?`blur(${W(n)})`:void 0,borderRadius:u.fn.radius(i),zIndex:o,"&[data-center]":{display:"flex",alignItems:"center",justifyContent:"center"}})}));const uLt=tLt;var nLt=Object.defineProperty,DL=Object.getOwnPropertySymbols,PBe=Object.prototype.hasOwnProperty,NBe=Object.prototype.propertyIsEnumerable,V4e=(u,e,t)=>e in u?nLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iLt=(u,e)=>{for(var t in e||(e={}))PBe.call(e,t)&&V4e(u,t,e[t]);if(DL)for(var t of DL(e))NBe.call(e,t)&&V4e(u,t,e[t]);return u},rLt=(u,e)=>{var t={};for(var n in u)PBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&DL)for(var n of DL(u))e.indexOf(n)<0&&NBe.call(u,n)&&(t[n]=u[n]);return t};const aLt={opacity:.6,color:"#000",zIndex:id("modal"),radius:0},RBe=C.forwardRef((u,e)=>{const t=Je("Overlay",aLt,u),{variant:n,opacity:i,color:r,blur:a,gradient:o,zIndex:s,radius:l,children:c,className:d,classNames:h,styles:E,unstyled:g,center:m,fixed:f}=t,p=rLt(t,["variant","opacity","color","blur","gradient","zIndex","radius","children","className","classNames","styles","unstyled","center","fixed"]),{classes:D,cx:x}=uLt({color:r,opacity:i,blur:a,radius:l,gradient:o,fixed:f,zIndex:s},{name:"Overlay",classNames:h,styles:E,unstyled:g,variant:n});return M.createElement(pt,iLt({ref:e,className:x(D.root,d),"data-center":m||void 0},p),c)});RBe.displayName="@mantine/core/Overlay";const oLt=RBe;var sLt=Object.defineProperty,lLt=Object.defineProperties,cLt=Object.getOwnPropertyDescriptors,xL=Object.getOwnPropertySymbols,IBe=Object.prototype.hasOwnProperty,OBe=Object.prototype.propertyIsEnumerable,H4e=(u,e,t)=>e in u?sLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,B6=(u,e)=>{for(var t in e||(e={}))IBe.call(e,t)&&H4e(u,t,e[t]);if(xL)for(var t of xL(e))OBe.call(e,t)&&H4e(u,t,e[t]);return u},dLt=(u,e)=>lLt(u,cLt(e)),hLt=(u,e)=>{var t={};for(var n in u)IBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&xL)for(var n of xL(u))e.indexOf(n)<0&&OBe.call(u,n)&&(t[n]=u[n]);return t};const ELt={},gLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Overlay`,ELt,u),{onClick:i,transitionProps:r,style:a,className:o}=n,s=hLt(n,["onClick","transitionProps","style","className"]),{classes:l,cx:c}=Uzt(null,t.stylesApi),d=h=>{i==null||i(h),t.closeOnClickOutside&&t.onClose()};return M.createElement(Vp,dLt(B6(B6({mounted:t.opened},t.transitionProps),r),{transition:"fade"}),h=>M.createElement(oLt,B6({ref:e,onClick:d,fixed:!0,style:B6(B6({},a),h),className:c(l.overlay,o),zIndex:t.zIndex},s)))});var mLt=at((u,{zIndex:e})=>({inner:{position:"fixed",width:"100%",top:0,bottom:0,maxHeight:"100%",zIndex:e,pointerEvents:"none"},content:{pointerEvents:"all"}}));const fLt=mLt;var pLt=Object.defineProperty,vL=Object.getOwnPropertySymbols,jBe=Object.prototype.hasOwnProperty,VBe=Object.prototype.propertyIsEnumerable,$4e=(u,e,t)=>e in u?pLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,w6=(u,e)=>{for(var t in e||(e={}))jBe.call(e,t)&&$4e(u,t,e[t]);if(vL)for(var t of vL(e))VBe.call(e,t)&&$4e(u,t,e[t]);return u},DLt=(u,e)=>{var t={};for(var n in u)jBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&vL)for(var n of vL(u))e.indexOf(n)<0&&VBe.call(u,n)&&(t[n]=u[n]);return t};const xLt={},vLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Content`,xLt,u),{className:i,transitionProps:r,style:a,onKeyDown:o}=n,s=DLt(n,["className","transitionProps","style","onKeyDown"]),{classes:l,cx:c}=fLt({zIndex:t.zIndex},t.stylesApi),d=h=>{var E;((E=h.target)==null?void 0:E.getAttribute("data-mantine-stop-propagation"))!=="true"&&h.key==="Escape"&&t.closeOnEscape&&t.onClose(),o==null||o(h)};return M.createElement(Vp,w6(w6({mounted:t.opened,transition:"pop"},t.transitionProps),r),h=>M.createElement("div",{className:c(l.inner)},M.createElement(Cue,{active:t.opened&&t.trapFocus},M.createElement(aBe,w6({component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":t.bodyMounted?t.getBodyId():void 0,"aria-labelledby":t.titleMounted?t.getTitleId():void 0,onKeyDown:d,ref:e,className:c(l.content,i),style:w6(w6({},a),h),shadow:t.shadow},s),s.children))))});var CLt=at((u,{padding:e})=>{const t=Fe({size:e,sizes:u.spacing});return{header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:t,paddingRight:`calc(${t} - ${W(5)})`,position:"sticky",top:0,backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,zIndex:1e3}}});const bLt=CLt;var kLt=Object.defineProperty,CL=Object.getOwnPropertySymbols,HBe=Object.prototype.hasOwnProperty,$Be=Object.prototype.propertyIsEnumerable,K4e=(u,e,t)=>e in u?kLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yLt=(u,e)=>{for(var t in e||(e={}))HBe.call(e,t)&&K4e(u,t,e[t]);if(CL)for(var t of CL(e))$Be.call(e,t)&&K4e(u,t,e[t]);return u},FLt=(u,e)=>{var t={};for(var n in u)HBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&CL)for(var n of CL(u))e.indexOf(n)<0&&$Be.call(u,n)&&(t[n]=u[n]);return t};const ALt={},_Lt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Header`,ALt,u),{className:i}=n,r=FLt(n,["className"]),{classes:a,cx:o}=bLt({padding:t.padding},t.stylesApi);return M.createElement(pt,yLt({ref:e,className:o(a.header,i)},r))});var SLt=at(u=>({title:{lineHeight:1,padding:0,margin:0,fontWeight:400,fontSize:u.fontSizes.md}}));const BLt=SLt;var wLt=Object.defineProperty,bL=Object.getOwnPropertySymbols,KBe=Object.prototype.hasOwnProperty,WBe=Object.prototype.propertyIsEnumerable,W4e=(u,e,t)=>e in u?wLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zLt=(u,e)=>{for(var t in e||(e={}))KBe.call(e,t)&&W4e(u,t,e[t]);if(bL)for(var t of bL(e))WBe.call(e,t)&&W4e(u,t,e[t]);return u},LLt=(u,e)=>{var t={};for(var n in u)KBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&bL)for(var n of bL(u))e.indexOf(n)<0&&WBe.call(u,n)&&(t[n]=u[n]);return t};const MLt={},TLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Title`,MLt,u),{className:i}=n,r=LLt(n,["className"]),{classes:a,cx:o}=BLt(null,t.stylesApi);return C.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),M.createElement(pt,zLt({component:"h2",id:t.getTitleId(),className:o(a.title,i),ref:e},r))});var PLt=at((u,{padding:e})=>({body:{padding:Fe({size:e,sizes:u.spacing}),"&:not(:only-child)":{paddingTop:0}}}));const NLt=PLt;var RLt=Object.defineProperty,kL=Object.getOwnPropertySymbols,GBe=Object.prototype.hasOwnProperty,UBe=Object.prototype.propertyIsEnumerable,G4e=(u,e,t)=>e in u?RLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ILt=(u,e)=>{for(var t in e||(e={}))GBe.call(e,t)&&G4e(u,t,e[t]);if(kL)for(var t of kL(e))UBe.call(e,t)&&G4e(u,t,e[t]);return u},OLt=(u,e)=>{var t={};for(var n in u)GBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&kL)for(var n of kL(u))e.indexOf(n)<0&&UBe.call(u,n)&&(t[n]=u[n]);return t};const jLt={},VLt=C.forwardRef((u,e)=>{const t=xC(),n=Je(`${t.__staticSelector}Body`,jLt,u),{className:i}=n,r=OLt(n,["className"]),{classes:a,cx:o}=NLt({padding:t.padding},t.stylesApi);return C.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),M.createElement(pt,ILt({id:t.getBodyId(),className:o(a.body,i),ref:e},r))});function HLt({children:u}){return M.createElement(M.Fragment,null,u)}function $Lt({opened:u,transitionDuration:e}){const[t,n]=C.useState(u),i=C.useRef(),a=AA()?0:e;return C.useEffect(()=>(u?(n(!0),window.clearTimeout(i.current)):a===0?n(!1):i.current=window.setTimeout(()=>n(!1),a),()=>window.clearTimeout(i.current)),[u,a]),t}var KLt=at(()=>({root:{}}));const WLt=KLt;var GLt=Object.defineProperty,ULt=Object.defineProperties,qLt=Object.getOwnPropertyDescriptors,yL=Object.getOwnPropertySymbols,qBe=Object.prototype.hasOwnProperty,JBe=Object.prototype.propertyIsEnumerable,U4e=(u,e,t)=>e in u?GLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,fH=(u,e)=>{for(var t in e||(e={}))qBe.call(e,t)&&U4e(u,t,e[t]);if(yL)for(var t of yL(e))JBe.call(e,t)&&U4e(u,t,e[t]);return u},q4e=(u,e)=>ULt(u,qLt(e)),JLt=(u,e)=>{var t={};for(var n in u)qBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&yL)for(var n of yL(u))e.indexOf(n)<0&&JBe.call(u,n)&&(t[n]=u[n]);return t};const zA={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:id("modal"),padding:"md",size:"md",shadow:"xl"};function dn(u){const e=Je("ModalBase",zA,u),{opened:t,onClose:n,children:i,closeOnClickOutside:r,__staticSelector:a,transitionProps:o,withinPortal:s,portalProps:l,keepMounted:c,target:d,zIndex:h,lockScroll:E,trapFocus:g,closeOnEscape:m,returnFocus:f,padding:p,shadow:D,id:x,size:b,variant:k,classNames:_,unstyled:y,styles:S,className:B}=e,L=JLt(e,["opened","onClose","children","closeOnClickOutside","__staticSelector","transitionProps","withinPortal","portalProps","keepMounted","target","zIndex","lockScroll","trapFocus","closeOnEscape","returnFocus","padding","shadow","id","size","variant","classNames","unstyled","styles","className"]),{classes:T,cx:N}=WLt(null,{name:a,classNames:_,styles:S,unstyled:y,variant:k,size:b}),F=Kl(x),[A,z]=C.useState(!1),[P,I]=C.useState(!1),j=typeof(o==null?void 0:o.duration)=="number"?o==null?void 0:o.duration:200,V=$Lt({opened:t,transitionDuration:j});return AJ("keydown",H=>{!g&&H.key==="Escape"&&m&&n()}),t9e({opened:t,shouldReturnFocus:g&&f}),M.createElement(_A,q4e(fH({},l),{withinPortal:s,target:d}),M.createElement(Izt,{value:{__staticSelector:a,opened:t,onClose:n,closeOnClickOutside:r,transitionProps:q4e(fH({},o),{duration:j,keepMounted:c}),zIndex:h,padding:p,id:F,getTitleId:()=>`${F}-title`,getBodyId:()=>`${F}-body`,titleMounted:A,bodyMounted:P,setTitleMounted:z,setBodyMounted:I,trapFocus:g,closeOnEscape:m,shadow:D,stylesApi:{name:a,size:b,variant:k,classNames:_,styles:S,unstyled:y}}},M.createElement(ibt,{enabled:V&&E},M.createElement(pt,fH({className:N(T.root,B)},L),i))))}dn.CloseButton=Wzt;dn.Overlay=gLt;dn.Content=vLt;dn.Header=_Lt;dn.Title=TLt;dn.Body=VLt;dn.NativeScrollArea=HLt;var ZLt=Object.defineProperty,YLt=Object.defineProperties,QLt=Object.getOwnPropertyDescriptors,FL=Object.getOwnPropertySymbols,ZBe=Object.prototype.hasOwnProperty,YBe=Object.prototype.propertyIsEnumerable,J4e=(u,e,t)=>e in u?ZLt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,s8=(u,e)=>{for(var t in e||(e={}))ZBe.call(e,t)&&J4e(u,t,e[t]);if(FL)for(var t of FL(e))YBe.call(e,t)&&J4e(u,t,e[t]);return u},QBe=(u,e)=>YLt(u,QLt(e)),XLt=(u,e)=>{var t={};for(var n in u)ZBe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&FL)for(var n of FL(u))e.indexOf(n)<0&&YBe.call(u,n)&&(t[n]=u[n]);return t};const eMt={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},tMt={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},uMt=QBe(s8({},zA),{position:"left"});function XBe(u){const e=Je("DrawerRoot",uMt,u),{classNames:t,variant:n,size:i,scrollAreaComponent:r,position:a,transitionProps:o}=e,s=XLt(e,["classNames","variant","size","scrollAreaComponent","position","transitionProps"]),{classes:l,cx:c,theme:d}=Rzt({position:a},{name:"Drawer",variant:n,size:i}),h=(d.dir==="rtl"?tMt:eMt)[a];return M.createElement(Tzt,{value:{scrollAreaComponent:r}},M.createElement(dn,s8({__staticSelector:"Drawer",size:i,variant:n,transitionProps:s8({transition:h,duration:200},o),classNames:QBe(s8({},t),{content:c(l.content,t==null?void 0:t.content),inner:c(l.inner,t==null?void 0:t.inner)})},s)))}var nMt=Object.defineProperty,AL=Object.getOwnPropertySymbols,ewe=Object.prototype.hasOwnProperty,twe=Object.prototype.propertyIsEnumerable,Z4e=(u,e,t)=>e in u?nMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,iMt=(u,e)=>{for(var t in e||(e={}))ewe.call(e,t)&&Z4e(u,t,e[t]);if(AL)for(var t of AL(e))twe.call(e,t)&&Z4e(u,t,e[t]);return u},rMt=(u,e)=>{var t={};for(var n in u)ewe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&AL)for(var n of AL(u))e.indexOf(n)<0&&twe.call(u,n)&&(t[n]=u[n]);return t};const aMt={shadow:"xl"},uwe=C.forwardRef((u,e)=>{const t=Je("ModalContent",aMt,u),{children:n,scrollAreaComponent:i}=t,r=rMt(t,["children","scrollAreaComponent"]),a=Pzt(),o=i||a.scrollAreaComponent||dn.NativeScrollArea;return M.createElement(dn.Content,iMt({ref:e,radius:0},r),M.createElement(o,{style:{height:"100vh"}},n))});var oMt=Object.defineProperty,sMt=Object.defineProperties,lMt=Object.getOwnPropertyDescriptors,_L=Object.getOwnPropertySymbols,nwe=Object.prototype.hasOwnProperty,iwe=Object.prototype.propertyIsEnumerable,Y4e=(u,e,t)=>e in u?oMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,l8=(u,e)=>{for(var t in e||(e={}))nwe.call(e,t)&&Y4e(u,t,e[t]);if(_L)for(var t of _L(e))iwe.call(e,t)&&Y4e(u,t,e[t]);return u},cMt=(u,e)=>sMt(u,lMt(e)),dMt=(u,e)=>{var t={};for(var n in u)nwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&_L)for(var n of _L(u))e.indexOf(n)<0&&iwe.call(u,n)&&(t[n]=u[n]);return t};const hMt=cMt(l8({},zA),{withOverlay:!0,withCloseButton:!0});function F4(u){const e=Je("Drawer",hMt,u),{title:t,withOverlay:n,overlayProps:i,withCloseButton:r,closeButtonProps:a,children:o}=e,s=dMt(e,["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children"]),l=!!t||r;return M.createElement(XBe,l8({},s),n&&M.createElement(dn.Overlay,l8({},i)),M.createElement(uwe,null,l&&M.createElement(dn.Header,null,t&&M.createElement(dn.Title,null,t),r&&M.createElement(dn.CloseButton,l8({},a))),M.createElement(dn.Body,null,o)))}F4.Root=XBe;F4.CloseButton=dn.CloseButton;F4.Overlay=dn.Overlay;F4.Content=uwe;F4.Header=dn.Header;F4.Title=dn.Title;F4.Body=dn.Body;F4.NativeScrollArea=dn.NativeScrollArea;var EMt=Object.defineProperty,SL=Object.getOwnPropertySymbols,rwe=Object.prototype.hasOwnProperty,awe=Object.prototype.propertyIsEnumerable,Q4e=(u,e,t)=>e in u?EMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,X4e=(u,e)=>{for(var t in e||(e={}))rwe.call(e,t)&&Q4e(u,t,e[t]);if(SL)for(var t of SL(e))awe.call(e,t)&&Q4e(u,t,e[t]);return u},gMt=(u,e)=>{var t={};for(var n in u)rwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&SL)for(var n of SL(u))e.indexOf(n)<0&&awe.call(u,n)&&(t[n]=u[n]);return t};const mMt={multiple:!1},owe=C.forwardRef((u,e)=>{const t=Je("FileButton",mMt,u),{onChange:n,children:i,multiple:r,accept:a,name:o,form:s,resetRef:l,disabled:c,capture:d,inputProps:h}=t,E=gMt(t,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture","inputProps"]),g=C.useRef(),m=()=>{!c&&g.current.click()},f=D=>{n(r?Array.from(D.currentTarget.files):D.currentTarget.files[0]||null)};return nue(l,()=>{g.current.value=""}),M.createElement(M.Fragment,null,i(X4e({onClick:m},E)),M.createElement("input",X4e({style:{display:"none"},type:"file",accept:a,multiple:r,onChange:f,ref:N1(e,g),name:o,form:s,capture:d},h)))});owe.displayName="@mantine/core/FileButton";const fMt={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var pMt=Object.defineProperty,DMt=Object.defineProperties,xMt=Object.getOwnPropertyDescriptors,BL=Object.getOwnPropertySymbols,swe=Object.prototype.hasOwnProperty,lwe=Object.prototype.propertyIsEnumerable,eEe=(u,e,t)=>e in u?pMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,vMt=(u,e)=>{for(var t in e||(e={}))swe.call(e,t)&&eEe(u,t,e[t]);if(BL)for(var t of BL(e))lwe.call(e,t)&&eEe(u,t,e[t]);return u},CMt=(u,e)=>DMt(u,xMt(e)),bMt=(u,e)=>{var t={};for(var n in u)swe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&BL)for(var n of BL(u))e.indexOf(n)<0&&lwe.call(u,n)&&(t[n]=u[n]);return t};const kMt={},fg=C.forwardRef((u,e)=>{const t=Je("Flex",kMt,u),{gap:n,rowGap:i,columnGap:r,align:a,justify:o,wrap:s,direction:l,sx:c}=t,d=bMt(t,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return M.createElement(pt,CMt(vMt({},d),{sx:[{display:"flex"},h=>_J({gap:n,rowGap:i,columnGap:r,align:a,justify:o,wrap:s,direction:l},h,fMt),...BR(c)],ref:e}))});fg.displayName="@mantine/core/Flex";function yMt(u){return C.Children.toArray(u).filter(Boolean)}const cwe={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var FMt=at((u,{spacing:e,position:t,noWrap:n,grow:i,align:r,count:a})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:r||"center",flexWrap:n?"nowrap":"wrap",justifyContent:cwe[t],gap:Fe({size:e,sizes:u.spacing}),"& > *":{boxSizing:"border-box",maxWidth:i?`calc(${100/a}% - (${W(Fe({size:e,sizes:u.spacing}))} - ${Fe({size:e,sizes:u.spacing})} / ${a}))`:void 0,flexGrow:i?1:0}}}));const AMt=FMt;var _Mt=Object.defineProperty,wL=Object.getOwnPropertySymbols,dwe=Object.prototype.hasOwnProperty,hwe=Object.prototype.propertyIsEnumerable,tEe=(u,e,t)=>e in u?_Mt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,SMt=(u,e)=>{for(var t in e||(e={}))dwe.call(e,t)&&tEe(u,t,e[t]);if(wL)for(var t of wL(e))hwe.call(e,t)&&tEe(u,t,e[t]);return u},BMt=(u,e)=>{var t={};for(var n in u)dwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&wL)for(var n of wL(u))e.indexOf(n)<0&&hwe.call(u,n)&&(t[n]=u[n]);return t};const wMt={position:"left",spacing:"md"},_i=C.forwardRef((u,e)=>{const t=Je("Group",wMt,u),{className:n,position:i,align:r,children:a,noWrap:o,grow:s,spacing:l,unstyled:c,variant:d}=t,h=BMt(t,["className","position","align","children","noWrap","grow","spacing","unstyled","variant"]),E=yMt(a),{classes:g,cx:m}=AMt({align:r,grow:s,noWrap:o,spacing:l,position:i,count:E.length},{unstyled:c,name:"Group",variant:d});return M.createElement(pt,SMt({className:m(g.root,n),ref:e},h),E)});_i.displayName="@mantine/core/Group";const Ewe={context:"HoverCard component was not found in the tree",children:"HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[zMt,gwe]=P1(Ewe.context);var LMt=Object.defineProperty,zL=Object.getOwnPropertySymbols,mwe=Object.prototype.hasOwnProperty,fwe=Object.prototype.propertyIsEnumerable,uEe=(u,e,t)=>e in u?LMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,MMt=(u,e)=>{for(var t in e||(e={}))mwe.call(e,t)&&uEe(u,t,e[t]);if(zL)for(var t of zL(e))fwe.call(e,t)&&uEe(u,t,e[t]);return u},TMt=(u,e)=>{var t={};for(var n in u)mwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&zL)for(var n of zL(u))e.indexOf(n)<0&&fwe.call(u,n)&&(t[n]=u[n]);return t};const PMt={};function pwe(u){const e=Je("HoverCardDropdown",PMt,u),{children:t,onMouseEnter:n,onMouseLeave:i}=e,r=TMt(e,["children","onMouseEnter","onMouseLeave"]),a=gwe(),o=uo(n,a.openDropdown),s=uo(i,a.closeDropdown);return M.createElement(os.Dropdown,MMt({onMouseEnter:o,onMouseLeave:s},r),t)}pwe.displayName="@mantine/core/HoverCardDropdown";var NMt=Object.defineProperty,LL=Object.getOwnPropertySymbols,Dwe=Object.prototype.hasOwnProperty,xwe=Object.prototype.propertyIsEnumerable,nEe=(u,e,t)=>e in u?NMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,RMt=(u,e)=>{for(var t in e||(e={}))Dwe.call(e,t)&&nEe(u,t,e[t]);if(LL)for(var t of LL(e))xwe.call(e,t)&&nEe(u,t,e[t]);return u},IMt=(u,e)=>{var t={};for(var n in u)Dwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&LL)for(var n of LL(u))e.indexOf(n)<0&&xwe.call(u,n)&&(t[n]=u[n]);return t};const OMt={refProp:"ref"},vwe=C.forwardRef((u,e)=>{const t=Je("HoverCardTarget",OMt,u),{children:n,refProp:i}=t,r=IMt(t,["children","refProp"]);if(!fC(n))throw new Error(Ewe.children);const a=gwe(),o=uo(n.props.onMouseEnter,a.openDropdown),s=uo(n.props.onMouseLeave,a.closeDropdown);return M.createElement(os.Target,RMt({refProp:i,ref:e},r),C.cloneElement(n,{onMouseEnter:o,onMouseLeave:s}))});vwe.displayName="@mantine/core/HoverCardTarget";function Cwe({open:u,close:e,openDelay:t,closeDelay:n}){const i=C.useRef(-1),r=C.useRef(-1),a=()=>{window.clearTimeout(i.current),window.clearTimeout(r.current)},o=()=>{a(),t===0?u():i.current=window.setTimeout(u,t)},s=()=>{a(),n===0?e():r.current=window.setTimeout(e,n)};return C.useEffect(()=>a,[]),{openDropdown:o,closeDropdown:s}}var jMt=Object.defineProperty,ML=Object.getOwnPropertySymbols,bwe=Object.prototype.hasOwnProperty,kwe=Object.prototype.propertyIsEnumerable,iEe=(u,e,t)=>e in u?jMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VMt=(u,e)=>{for(var t in e||(e={}))bwe.call(e,t)&&iEe(u,t,e[t]);if(ML)for(var t of ML(e))kwe.call(e,t)&&iEe(u,t,e[t]);return u},HMt=(u,e)=>{var t={};for(var n in u)bwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&ML)for(var n of ML(u))e.indexOf(n)<0&&kwe.call(u,n)&&(t[n]=u[n]);return t};const $Mt={openDelay:0,closeDelay:150,initiallyOpened:!1};function ph(u){const e=Je("HoverCard",$Mt,u),{children:t,onOpen:n,onClose:i,openDelay:r,closeDelay:a,initiallyOpened:o}=e,s=HMt(e,["children","onOpen","onClose","openDelay","closeDelay","initiallyOpened"]),[l,{open:c,close:d}]=$n(o,{onClose:i,onOpen:n}),{openDropdown:h,closeDropdown:E}=Cwe({open:c,close:d,openDelay:r,closeDelay:a});return M.createElement(zMt,{value:{openDropdown:h,closeDropdown:E}},M.createElement(os,VMt({opened:l,__staticSelector:"HoverCard"},s),t))}ph.displayName="@mantine/core/HoverCard";ph.Target=vwe;ph.Dropdown=pwe;var KMt=Object.defineProperty,TL=Object.getOwnPropertySymbols,ywe=Object.prototype.hasOwnProperty,Fwe=Object.prototype.propertyIsEnumerable,rEe=(u,e,t)=>e in u?KMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,aEe=(u,e)=>{for(var t in e||(e={}))ywe.call(e,t)&&rEe(u,t,e[t]);if(TL)for(var t of TL(e))Fwe.call(e,t)&&rEe(u,t,e[t]);return u},WMt=(u,e)=>{var t={};for(var n in u)ywe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&TL)for(var n of TL(u))e.indexOf(n)<0&&Fwe.call(u,n)&&(t[n]=u[n]);return t};function GMt(u){const e=u,{width:t,height:n,style:i}=e,r=WMt(e,["width","height","style"]);return M.createElement("svg",aEe({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:aEe({width:t,height:n},i)},r),M.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var UMt=Object.defineProperty,qMt=Object.defineProperties,JMt=Object.getOwnPropertyDescriptors,oEe=Object.getOwnPropertySymbols,ZMt=Object.prototype.hasOwnProperty,YMt=Object.prototype.propertyIsEnumerable,sEe=(u,e,t)=>e in u?UMt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,lEe=(u,e)=>{for(var t in e||(e={}))ZMt.call(e,t)&&sEe(u,t,e[t]);if(oEe)for(var t of oEe(e))YMt.call(e,t)&&sEe(u,t,e[t]);return u},cEe=(u,e)=>qMt(u,JMt(e)),QMt=at((u,{radius:e})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:cEe(lEe({},u.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:u.fn.radius(e)}),caption:{color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[7],marginTop:u.spacing.xs},placeholder:cEe(lEe({},u.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],backgroundColor:u.colorScheme==="dark"?u.colors.dark[8]:u.colors.gray[0],borderRadius:u.fn.radius(e)})}));const XMt=QMt;var eTt=Object.defineProperty,tTt=Object.defineProperties,uTt=Object.getOwnPropertyDescriptors,PL=Object.getOwnPropertySymbols,Awe=Object.prototype.hasOwnProperty,_we=Object.prototype.propertyIsEnumerable,dEe=(u,e,t)=>e in u?eTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,z6=(u,e)=>{for(var t in e||(e={}))Awe.call(e,t)&&dEe(u,t,e[t]);if(PL)for(var t of PL(e))_we.call(e,t)&&dEe(u,t,e[t]);return u},nTt=(u,e)=>tTt(u,uTt(e)),iTt=(u,e)=>{var t={};for(var n in u)Awe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&PL)for(var n of PL(u))e.indexOf(n)<0&&_we.call(u,n)&&(t[n]=u[n]);return t};const rTt={fit:"cover",width:"100%",height:"auto",radius:0},NJ=C.forwardRef((u,e)=>{const t=Je("Image",rTt,u),{className:n,alt:i,src:r,fit:a,width:o,height:s,radius:l,imageProps:c,withPlaceholder:d,placeholder:h,imageRef:E,classNames:g,styles:m,caption:f,unstyled:p,style:D,variant:x}=t,b=iTt(t,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style","variant"]),{classes:k,cx:_}=XMt({radius:l},{classNames:g,styles:m,unstyled:p,name:"Image",variant:x}),[y,S]=C.useState(!r),B=d&&y;return Lo(()=>{S(!r)},[r]),M.createElement(pt,z6({className:_(k.root,n),style:z6({width:W(o)},D),ref:e},b),M.createElement("figure",{className:k.figure},M.createElement("div",{className:k.imageWrapper},M.createElement("img",nTt(z6({src:r,alt:i,ref:E},c),{className:_(k.image,c==null?void 0:c.className),onError:L=>{S(!0),typeof(c==null?void 0:c.onError)=="function"&&c.onError(L)},style:z6(z6({objectFit:a,width:W(o),height:W(s)},B&&{overflow:"hidden"}),c==null?void 0:c.style)})),B&&M.createElement("div",{className:k.placeholder,title:i},h||M.createElement("div",null,M.createElement(GMt,{width:W(40),height:W(40)})))),!!f&&M.createElement(Fu,{component:"figcaption",size:"sm",align:"center",className:k.caption},f)))});NJ.displayName="@mantine/core/Image";var aTt=Object.defineProperty,oTt=Object.defineProperties,sTt=Object.getOwnPropertyDescriptors,hEe=Object.getOwnPropertySymbols,lTt=Object.prototype.hasOwnProperty,cTt=Object.prototype.propertyIsEnumerable,EEe=(u,e,t)=>e in u?aTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gEe=(u,e)=>{for(var t in e||(e={}))lTt.call(e,t)&&EEe(u,t,e[t]);if(hEe)for(var t of hEe(e))cTt.call(e,t)&&EEe(u,t,e[t]);return u},mEe=(u,e)=>oTt(u,sTt(e));const dTt=u=>Vkt({from:{boxShadow:`0 0 ${W(.5)} 0 ${u}`,opacity:.6},to:{boxShadow:`0 0 ${W(.5)} ${W(4.4)} ${u}`,opacity:0}});function fEe(u,e=0){const t={},[n,i]=u.split("-");let r="",a="";return n==="top"&&(t.top=e,a="-50%"),n==="middle"&&(t.top="50%",a="-50%"),n==="bottom"&&(t.bottom=e,a="50%"),i==="start"&&(t.left=e,r="-50%"),i==="center"&&(t.left="50%",r="-50%"),i==="end"&&(t.right=e,r="50%"),t.transform=`translate(${r}, ${a})`,t}var hTt=at((u,{radius:e,color:t,position:n,offset:i,inline:r,withBorder:a,withLabel:o,zIndex:s},{size:l})=>{const{background:c}=u.fn.variant({variant:"filled",primaryFallback:!1,color:t||u.primaryColor}),d=W(l);return{root:{position:"relative",display:r?"inline-block":"block"},indicator:mEe(gEe({},fEe(n,i)),{zIndex:s,position:"absolute",[o?"minWidth":"width"]:d,height:d,display:"flex",justifyContent:"center",alignItems:"center",fontSize:u.fontSizes.xs,paddingLeft:o?`calc(${u.spacing.xs} / 2)`:0,paddingRight:o?`calc(${u.spacing.xs} / 2)`:0,borderRadius:u.fn.radius(e),backgroundColor:u.fn.variant({variant:"filled",primaryFallback:!1,color:t||u.primaryColor}).background,border:a?`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[7]:u.white}`:void 0,color:u.white,whiteSpace:"nowrap"}),processing:{animation:`${dTt(c)} 1000ms linear infinite`},common:mEe(gEe({},fEe(n,i)),{position:"absolute",[o?"minWidth":"width"]:d,height:d,borderRadius:u.fn.radius(e)})}});const ETt=hTt;var gTt=Object.defineProperty,NL=Object.getOwnPropertySymbols,Swe=Object.prototype.hasOwnProperty,Bwe=Object.prototype.propertyIsEnumerable,pEe=(u,e,t)=>e in u?gTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mTt=(u,e)=>{for(var t in e||(e={}))Swe.call(e,t)&&pEe(u,t,e[t]);if(NL)for(var t of NL(e))Bwe.call(e,t)&&pEe(u,t,e[t]);return u},fTt=(u,e)=>{var t={};for(var n in u)Swe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&NL)for(var n of NL(u))e.indexOf(n)<0&&Bwe.call(u,n)&&(t[n]=u[n]);return t};const pTt={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1,size:10,radius:1e3,zIndex:id("app")},wwe=C.forwardRef((u,e)=>{const t=Je("Indicator",pTt,u),{children:n,position:i,offset:r,size:a,radius:o,inline:s,withBorder:l,className:c,color:d,styles:h,label:E,classNames:g,disabled:m,zIndex:f,unstyled:p,processing:D,variant:x}=t,b=fTt(t,["children","position","offset","size","radius","inline","withBorder","className","color","styles","label","classNames","disabled","zIndex","unstyled","processing","variant"]),{classes:k,cx:_}=ETt({position:i,offset:r,radius:o,inline:s,color:d,withBorder:l,zIndex:f,withLabel:!!E},{name:"Indicator",classNames:g,styles:h,unstyled:p,variant:x,size:a});return M.createElement(pt,mTt({ref:e,className:_(k.root,c)},b),!m&&M.createElement(M.Fragment,null,M.createElement("div",{className:_(k.indicator,k.common)},E),D&&M.createElement("div",{className:_(k.processing,k.common)})),n)});wwe.displayName="@mantine/core/Indicator";function zwe(u,e){if(u==null)return{};var t={},n=Object.keys(u),i,r;for(r=0;r=0)&&(t[i]=u[i]);return t}const Lwe={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[DTt,LA]=P1(Lwe.context);var xTt=at(u=>({divider:{marginTop:W(4),marginBottom:W(4),borderTop:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`}}));const vTt=xTt;var CTt=Object.defineProperty,RL=Object.getOwnPropertySymbols,Mwe=Object.prototype.hasOwnProperty,Twe=Object.prototype.propertyIsEnumerable,DEe=(u,e,t)=>e in u?CTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,bTt=(u,e)=>{for(var t in e||(e={}))Mwe.call(e,t)&&DEe(u,t,e[t]);if(RL)for(var t of RL(e))Twe.call(e,t)&&DEe(u,t,e[t]);return u},kTt=(u,e)=>{var t={};for(var n in u)Mwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&RL)for(var n of RL(u))e.indexOf(n)<0&&Twe.call(u,n)&&(t[n]=u[n]);return t};const yTt={},Pwe=C.forwardRef((u,e)=>{const t=Je("MenuDivider",yTt,u),{children:n,className:i}=t,r=kTt(t,["children","className"]),{classNames:a,styles:o,unstyled:s,variant:l}=LA(),{classes:c,cx:d}=vTt(null,{name:"Menu",classNames:a,styles:o,unstyled:s,variant:l});return M.createElement(pt,bTt({className:d(c.divider,i),ref:e},r))});Pwe.displayName="@mantine/core/MenuDivider";var FTt=Object.defineProperty,IL=Object.getOwnPropertySymbols,Nwe=Object.prototype.hasOwnProperty,Rwe=Object.prototype.propertyIsEnumerable,xEe=(u,e,t)=>e in u?FTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,ATt=(u,e)=>{for(var t in e||(e={}))Nwe.call(e,t)&&xEe(u,t,e[t]);if(IL)for(var t of IL(e))Rwe.call(e,t)&&xEe(u,t,e[t]);return u},_Tt=(u,e)=>{var t={};for(var n in u)Nwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&IL)for(var n of IL(u))e.indexOf(n)<0&&Rwe.call(u,n)&&(t[n]=u[n]);return t};const STt={};function Iwe(u){const e=Je("MenuDropdown",STt,u),{children:t,onMouseEnter:n,onMouseLeave:i}=e,r=_Tt(e,["children","onMouseEnter","onMouseLeave"]),a=C.useRef(),o=LA(),s=d=>{var h;(d.key==="ArrowUp"||d.key==="ArrowDown")&&(d.preventDefault(),(h=a.current.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||h.focus())},l=uo(n,()=>o.trigger==="hover"&&o.openDropdown()),c=uo(i,()=>o.trigger==="hover"&&o.closeDropdown());return M.createElement(os.Dropdown,ATt({onMouseEnter:l,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},r),M.createElement("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:a,style:{outline:0}},t))}Iwe.displayName="@mantine/core/MenuDropdown";var BTt=Object.defineProperty,wTt=Object.defineProperties,zTt=Object.getOwnPropertyDescriptors,vEe=Object.getOwnPropertySymbols,LTt=Object.prototype.hasOwnProperty,MTt=Object.prototype.propertyIsEnumerable,CEe=(u,e,t)=>e in u?BTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,TTt=(u,e)=>{for(var t in e||(e={}))LTt.call(e,t)&&CEe(u,t,e[t]);if(vEe)for(var t of vEe(e))MTt.call(e,t)&&CEe(u,t,e[t]);return u},PTt=(u,e)=>wTt(u,zTt(e)),NTt=at((u,{color:e,radius:t})=>({item:PTt(TTt({},u.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:u.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${u.spacing.xs} ${u.spacing.sm}`,cursor:"pointer",borderRadius:u.fn.radius(t),color:e?u.fn.variant({variant:"filled",primaryFallback:!1,color:e}).background:u.colorScheme==="dark"?u.colors.dark[0]:u.black,display:"flex",alignItems:"center","&:disabled":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:e?u.fn.variant({variant:"light",color:e}).background:u.colorScheme==="dark"?u.fn.rgba(u.colors.dark[3],.35):u.colors.gray[1]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:u.spacing.xs},itemRightSection:{}}));const RTt=NTt;var ITt=Object.defineProperty,OTt=Object.defineProperties,jTt=Object.getOwnPropertyDescriptors,OL=Object.getOwnPropertySymbols,Owe=Object.prototype.hasOwnProperty,jwe=Object.prototype.propertyIsEnumerable,bEe=(u,e,t)=>e in u?ITt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,VTt=(u,e)=>{for(var t in e||(e={}))Owe.call(e,t)&&bEe(u,t,e[t]);if(OL)for(var t of OL(e))jwe.call(e,t)&&bEe(u,t,e[t]);return u},HTt=(u,e)=>OTt(u,jTt(e)),$Tt=(u,e)=>{var t={};for(var n in u)Owe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&OL)for(var n of OL(u))e.indexOf(n)<0&&jwe.call(u,n)&&(t[n]=u[n]);return t};const KTt={},Vwe=C.forwardRef((u,e)=>{const t=Je("MenuItem",KTt,u),{children:n,className:i,color:r,closeMenuOnClick:a,icon:o,rightSection:s}=t,l=$Tt(t,["children","className","color","closeMenuOnClick","icon","rightSection"]),c=LA(),{classes:d,cx:h,theme:E}=RTt({radius:c.radius,color:r},{name:"Menu",classNames:c.classNames,styles:c.styles,unstyled:c.unstyled,variant:c.variant}),g=C.useRef(),m=c.getItemIndex(g.current),f=l,p=uo(f.onMouseLeave,()=>c.setHovered(-1)),D=uo(f.onMouseEnter,()=>c.setHovered(c.getItemIndex(g.current))),x=uo(f.onClick,()=>{typeof a=="boolean"?a&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),b=uo(f.onFocus,()=>c.setHovered(c.getItemIndex(g.current)));return M.createElement(pt,HTt(VTt({component:"button",type:"button"},l),{tabIndex:-1,onFocus:b,className:h(d.item,i),ref:N1(g,e),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===m?!0:void 0,onMouseEnter:D,onMouseLeave:p,onClick:x,onKeyDown:Kte({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:E.dir,orientation:"vertical",onKeyDown:f.onKeydown})}),o&&M.createElement("div",{className:d.itemIcon},o),n&&M.createElement("div",{className:d.itemLabel},n),s&&M.createElement("div",{className:d.itemRightSection},s))});Vwe.displayName="@mantine/core/MenuItem";const WTt=Vwe;var GTt=at(u=>({label:{color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],fontWeight:500,fontSize:u.fontSizes.xs,padding:`calc(${u.spacing.xs} / 2) ${u.spacing.sm}`,cursor:"default"}}));const UTt=GTt;var qTt=Object.defineProperty,jL=Object.getOwnPropertySymbols,Hwe=Object.prototype.hasOwnProperty,$we=Object.prototype.propertyIsEnumerable,kEe=(u,e,t)=>e in u?qTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JTt=(u,e)=>{for(var t in e||(e={}))Hwe.call(e,t)&&kEe(u,t,e[t]);if(jL)for(var t of jL(e))$we.call(e,t)&&kEe(u,t,e[t]);return u},ZTt=(u,e)=>{var t={};for(var n in u)Hwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&jL)for(var n of jL(u))e.indexOf(n)<0&&$we.call(u,n)&&(t[n]=u[n]);return t};const YTt={},Kwe=C.forwardRef((u,e)=>{const t=Je("MenuLabel",YTt,u),{children:n,className:i}=t,r=ZTt(t,["children","className"]),{classNames:a,styles:o,unstyled:s,variant:l}=LA(),{classes:c,cx:d}=UTt(null,{name:"Menu",classNames:a,styles:o,unstyled:s,variant:l});return M.createElement(Fu,JTt({className:d(c.label,i),ref:e},r),n)});Kwe.displayName="@mantine/core/MenuLabel";var QTt=Object.defineProperty,VL=Object.getOwnPropertySymbols,Wwe=Object.prototype.hasOwnProperty,Gwe=Object.prototype.propertyIsEnumerable,yEe=(u,e,t)=>e in u?QTt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,XTt=(u,e)=>{for(var t in e||(e={}))Wwe.call(e,t)&&yEe(u,t,e[t]);if(VL)for(var t of VL(e))Gwe.call(e,t)&&yEe(u,t,e[t]);return u},ePt=(u,e)=>{var t={};for(var n in u)Wwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&VL)for(var n of VL(u))e.indexOf(n)<0&&Gwe.call(u,n)&&(t[n]=u[n]);return t};const tPt={refProp:"ref"},Uwe=C.forwardRef((u,e)=>{const t=Je("MenuTarget",tPt,u),{children:n,refProp:i}=t,r=ePt(t,["children","refProp"]);if(!fC(n))throw new Error(Lwe.children);const a=LA(),o=uo(n.props.onClick,()=>a.trigger==="click"&&a.toggleDropdown()),s=uo(n.props.onMouseEnter,()=>a.trigger==="hover"&&a.openDropdown()),l=uo(n.props.onMouseLeave,()=>a.trigger==="hover"&&a.closeDropdown());return M.createElement(os.Target,XTt({refProp:i,popupType:"menu",ref:e},r),C.cloneElement(n,{onClick:o,onMouseEnter:s,onMouseLeave:l,"data-expanded":a.opened?!0:void 0}))});Uwe.displayName="@mantine/core/MenuTarget";var uPt=at({dropdown:{padding:W(4)}});const nPt=uPt;var iPt=Object.defineProperty,rPt=Object.defineProperties,aPt=Object.getOwnPropertyDescriptors,HL=Object.getOwnPropertySymbols,qwe=Object.prototype.hasOwnProperty,Jwe=Object.prototype.propertyIsEnumerable,FEe=(u,e,t)=>e in u?iPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,AEe=(u,e)=>{for(var t in e||(e={}))qwe.call(e,t)&&FEe(u,t,e[t]);if(HL)for(var t of HL(e))Jwe.call(e,t)&&FEe(u,t,e[t]);return u},_Ee=(u,e)=>rPt(u,aPt(e)),oPt=(u,e)=>{var t={};for(var n in u)qwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&HL)for(var n of HL(u))e.indexOf(n)<0&&Jwe.call(u,n)&&(t[n]=u[n]);return t};const sPt={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function Ca(u){const e=Je("Menu",sPt,u),{children:t,onOpen:n,onClose:i,opened:r,defaultOpened:a,onChange:o,closeOnItemClick:s,loop:l,closeOnEscape:c,trigger:d,openDelay:h,closeDelay:E,classNames:g,styles:m,unstyled:f,radius:p,variant:D}=e,x=oPt(e,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius","variant"]),{classes:b,cx:k}=nPt(),[_,{setHovered:y,resetHovered:S}]=dbt(),[B,L]=cs({value:r,defaultValue:a,finalValue:!1,onChange:o}),T=()=>{L(!1),B&&(i==null||i())},N=()=>{L(!0),!B&&(n==null||n())},F=()=>B?T():N(),{openDropdown:A,closeDropdown:z}=Cwe({open:N,close:T,closeDelay:E,openDelay:h}),P=I=>sbt("[data-menu-item]","[data-menu-dropdown]",I);return Lo(()=>{S()},[B]),M.createElement(DTt,{value:{opened:B,toggleDropdown:F,getItemIndex:P,hovered:_,setHovered:y,closeOnItemClick:s,closeDropdown:d==="click"?T:z,openDropdown:d==="click"?N:A,closeDropdownImmediately:T,loop:l,trigger:d,radius:p,classNames:g,styles:m,unstyled:f,variant:D}},M.createElement(os,_Ee(AEe({},x),{radius:p,opened:B,onChange:F,defaultOpened:a,trapFocus:d==="click",closeOnEscape:c&&d==="click",__staticSelector:"Menu",classNames:_Ee(AEe({},g),{dropdown:k(b.dropdown,g==null?void 0:g.dropdown)}),styles:m,unstyled:f,variant:D}),t))}Ca.displayName="@mantine/core/Menu";Ca.Item=WTt;Ca.Label=Kwe;Ca.Dropdown=Iwe;Ca.Target=Uwe;Ca.Divider=Pwe;const[lPt,cPt]=P1("Modal component was not found in tree"),dPt={xs:W(320),sm:W(380),md:W(440),lg:W(620),xl:W(780)};var hPt=at((u,{yOffset:e,xOffset:t,centered:n,fullScreen:i},{size:r})=>({content:{flex:i?"0 0 100%":`0 0 ${Fe({size:r,sizes:dPt})}`,maxWidth:"100%",maxHeight:i?void 0:`calc(100dvh - (${W(e)} * 2))`,height:i?"100vh":void 0,borderRadius:i?0:void 0,overflowY:"auto"},inner:{paddingTop:i?0:e,paddingBottom:i?0:e,paddingLeft:i?0:t,paddingRight:i?0:t,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"}}));const EPt=hPt;var gPt=Object.defineProperty,mPt=Object.defineProperties,fPt=Object.getOwnPropertyDescriptors,$L=Object.getOwnPropertySymbols,Zwe=Object.prototype.hasOwnProperty,Ywe=Object.prototype.propertyIsEnumerable,SEe=(u,e,t)=>e in u?gPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,RJ=(u,e)=>{for(var t in e||(e={}))Zwe.call(e,t)&&SEe(u,t,e[t]);if($L)for(var t of $L(e))Ywe.call(e,t)&&SEe(u,t,e[t]);return u},Qwe=(u,e)=>mPt(u,fPt(e)),pPt=(u,e)=>{var t={};for(var n in u)Zwe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&$L)for(var n of $L(u))e.indexOf(n)<0&&Ywe.call(u,n)&&(t[n]=u[n]);return t};const DPt=Qwe(RJ({},zA),{yOffset:"5dvh",xOffset:"5vw"});function Xwe(u){const e=Je("ModalRoot",DPt,u),{classNames:t,variant:n,size:i,yOffset:r,xOffset:a,scrollAreaComponent:o,radius:s,centered:l,fullScreen:c}=e,d=pPt(e,["classNames","variant","size","yOffset","xOffset","scrollAreaComponent","radius","centered","fullScreen"]),{classes:h,cx:E}=EPt({yOffset:r,xOffset:a,centered:l,fullScreen:c},{name:"Modal",variant:n,size:i});return M.createElement(lPt,{value:{yOffset:r,scrollAreaComponent:o,radius:s}},M.createElement(dn,RJ({__staticSelector:"Modal",size:i,variant:n,classNames:Qwe(RJ({},t),{content:E(h.content,t==null?void 0:t.content),inner:E(h.inner,t==null?void 0:t.inner)})},d)))}var xPt=Object.defineProperty,KL=Object.getOwnPropertySymbols,eze=Object.prototype.hasOwnProperty,tze=Object.prototype.propertyIsEnumerable,BEe=(u,e,t)=>e in u?xPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,vPt=(u,e)=>{for(var t in e||(e={}))eze.call(e,t)&&BEe(u,t,e[t]);if(KL)for(var t of KL(e))tze.call(e,t)&&BEe(u,t,e[t]);return u},CPt=(u,e)=>{var t={};for(var n in u)eze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&KL)for(var n of KL(u))e.indexOf(n)<0&&tze.call(u,n)&&(t[n]=u[n]);return t};const bPt={shadow:"xl"},uze=C.forwardRef((u,e)=>{const t=Je("ModalContent",bPt,u),{children:n,scrollAreaComponent:i}=t,r=CPt(t,["children","scrollAreaComponent"]),a=cPt(),o=i||a.scrollAreaComponent||dn.NativeScrollArea;return M.createElement(dn.Content,vPt({ref:e,radius:a.radius},r),M.createElement(o,{style:{maxHeight:`calc(100dvh - (${W(a.yOffset)} * 2))`}},n))});var kPt=Object.defineProperty,yPt=Object.defineProperties,FPt=Object.getOwnPropertyDescriptors,WL=Object.getOwnPropertySymbols,nze=Object.prototype.hasOwnProperty,ize=Object.prototype.propertyIsEnumerable,wEe=(u,e,t)=>e in u?kPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,c8=(u,e)=>{for(var t in e||(e={}))nze.call(e,t)&&wEe(u,t,e[t]);if(WL)for(var t of WL(e))ize.call(e,t)&&wEe(u,t,e[t]);return u},APt=(u,e)=>yPt(u,FPt(e)),_Pt=(u,e)=>{var t={};for(var n in u)nze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&WL)for(var n of WL(u))e.indexOf(n)<0&&ize.call(u,n)&&(t[n]=u[n]);return t};const SPt=APt(c8({},zA),{transitionProps:{duration:200,transition:"pop"},withOverlay:!0,withCloseButton:!0});function ji(u){const e=Je("Modal",SPt,u),{title:t,withOverlay:n,overlayProps:i,withCloseButton:r,closeButtonProps:a,children:o}=e,s=_Pt(e,["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children"]),l=!!t||r;return M.createElement(Xwe,c8({},s),n&&M.createElement(dn.Overlay,c8({},i)),M.createElement(uze,null,l&&M.createElement(dn.Header,null,t&&M.createElement(dn.Title,null,t),r&&M.createElement(dn.CloseButton,c8({},a))),M.createElement(dn.Body,null,o)))}ji.Root=Xwe;ji.CloseButton=dn.CloseButton;ji.Overlay=dn.Overlay;ji.Content=uze;ji.Header=dn.Header;ji.Title=dn.Title;ji.Body=dn.Body;ji.NativeScrollArea=dn.NativeScrollArea;const rze={xs:W(16),sm:W(22),md:W(26),lg:W(30),xl:W(36)},BPt={xs:W(10),sm:W(12),md:W(14),lg:W(16),xl:W(18)};var wPt=at((u,{disabled:e,radius:t,readOnly:n},{size:i,variant:r})=>({defaultValue:{display:"flex",alignItems:"center",backgroundColor:e?u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[3]:u.colorScheme==="dark"?u.colors.dark[7]:r==="filled"?u.white:u.colors.gray[1],color:e?u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[7]:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[7],height:Fe({size:i,sizes:rze}),paddingLeft:`calc(${Fe({size:i,sizes:u.spacing})} / 1.5)`,paddingRight:e||n?Fe({size:i,sizes:u.spacing}):0,fontWeight:500,fontSize:Fe({size:i,sizes:BPt}),borderRadius:Fe({size:t,sizes:u.radius}),cursor:e?"not-allowed":"default",userSelect:"none",maxWidth:`calc(100% - ${W(10)})`},defaultValueRemove:{color:u.colorScheme==="dark"?u.colors.dark[0]:u.colors.gray[7],marginLeft:`calc(${Fe({size:i,sizes:u.spacing})} / 6)`},defaultValueLabel:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}));const zPt=wPt;var LPt=Object.defineProperty,GL=Object.getOwnPropertySymbols,aze=Object.prototype.hasOwnProperty,oze=Object.prototype.propertyIsEnumerable,zEe=(u,e,t)=>e in u?LPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,MPt=(u,e)=>{for(var t in e||(e={}))aze.call(e,t)&&zEe(u,t,e[t]);if(GL)for(var t of GL(e))oze.call(e,t)&&zEe(u,t,e[t]);return u},TPt=(u,e)=>{var t={};for(var n in u)aze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&GL)for(var n of GL(u))e.indexOf(n)<0&&oze.call(u,n)&&(t[n]=u[n]);return t};const PPt={xs:16,sm:22,md:24,lg:26,xl:30};function sze(u){var e=u,{label:t,classNames:n,styles:i,className:r,onRemove:a,disabled:o,readOnly:s,size:l,radius:c="sm",variant:d,unstyled:h}=e,E=TPt(e,["label","classNames","styles","className","onRemove","disabled","readOnly","size","radius","variant","unstyled"]);const{classes:g,cx:m}=zPt({disabled:o,readOnly:s,radius:c},{name:"MultiSelect",classNames:n,styles:i,unstyled:h,size:l,variant:d});return M.createElement("div",MPt({className:m(g.defaultValue,r)},E),M.createElement("span",{className:g.defaultValueLabel},t),!o&&!s&&M.createElement(KR,{"aria-hidden":!0,onMouseDown:a,size:PPt[l],radius:2,color:"blue",variant:"transparent",iconSize:"70%",className:g.defaultValueRemove,tabIndex:-1,unstyled:h}))}sze.displayName="@mantine/core/MultiSelect/DefaultValue";function NPt({data:u,searchable:e,limit:t,searchValue:n,filter:i,value:r,disableSelectedItemFiltering:a}){if(!e&&r.length===0)return u;if(!e){const s=[];for(let l=0;lc===u[l].value&&!u[l].disabled))&&s.push(u[l]);return s}const o=[];for(let s=0;sl===u[s].value&&!u[s].disabled),u[s])&&o.push(u[s]),!(o.length>=t));s+=1);return o}var RPt=Object.defineProperty,UL=Object.getOwnPropertySymbols,lze=Object.prototype.hasOwnProperty,cze=Object.prototype.propertyIsEnumerable,LEe=(u,e,t)=>e in u?RPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,MEe=(u,e)=>{for(var t in e||(e={}))lze.call(e,t)&&LEe(u,t,e[t]);if(UL)for(var t of UL(e))cze.call(e,t)&&LEe(u,t,e[t]);return u},IPt=(u,e)=>{var t={};for(var n in u)lze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&UL)for(var n of UL(u))e.indexOf(n)<0&&cze.call(u,n)&&(t[n]=u[n]);return t};const OPt={xs:W(14),sm:W(18),md:W(20),lg:W(24),xl:W(28)};function jPt(u){var e=u,{size:t,error:n,style:i}=e,r=IPt(e,["size","error","style"]);const a=Tr(),o=Fe({size:t,sizes:OPt});return M.createElement("svg",MEe({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:MEe({color:n?a.colors.red[6]:a.colors.gray[6],width:o,height:o},i),"data-chevron":!0},r),M.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var VPt=Object.defineProperty,HPt=Object.defineProperties,$Pt=Object.getOwnPropertyDescriptors,TEe=Object.getOwnPropertySymbols,KPt=Object.prototype.hasOwnProperty,WPt=Object.prototype.propertyIsEnumerable,PEe=(u,e,t)=>e in u?VPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,GPt=(u,e)=>{for(var t in e||(e={}))KPt.call(e,t)&&PEe(u,t,e[t]);if(TEe)for(var t of TEe(e))WPt.call(e,t)&&PEe(u,t,e[t]);return u},UPt=(u,e)=>HPt(u,$Pt(e));function dze({shouldClear:u,clearButtonProps:e,onClear:t,size:n,error:i}){return u?M.createElement(KR,UPt(GPt({},e),{variant:"transparent",onClick:t,size:n,onMouseDown:r=>r.preventDefault()})):M.createElement(jPt,{error:i,size:n})}dze.displayName="@mantine/core/SelectRightSection";var qPt=Object.defineProperty,JPt=Object.defineProperties,ZPt=Object.getOwnPropertyDescriptors,qL=Object.getOwnPropertySymbols,hze=Object.prototype.hasOwnProperty,Eze=Object.prototype.propertyIsEnumerable,NEe=(u,e,t)=>e in u?qPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,pH=(u,e)=>{for(var t in e||(e={}))hze.call(e,t)&&NEe(u,t,e[t]);if(qL)for(var t of qL(e))Eze.call(e,t)&&NEe(u,t,e[t]);return u},REe=(u,e)=>JPt(u,ZPt(e)),YPt=(u,e)=>{var t={};for(var n in u)hze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&qL)for(var n of qL(u))e.indexOf(n)<0&&Eze.call(u,n)&&(t[n]=u[n]);return t};function gze(u){var e=u,{styles:t,rightSection:n,rightSectionWidth:i,theme:r}=e,a=YPt(e,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:i,styles:t};const o=typeof t=="function"?t(r):t;return{rightSection:!a.readOnly&&!(a.disabled&&a.shouldClear)&&M.createElement(dze,pH({},a)),styles:REe(pH({},o),{rightSection:REe(pH({},o==null?void 0:o.rightSection),{pointerEvents:a.shouldClear?void 0:"none"})})}}var QPt=Object.defineProperty,XPt=Object.defineProperties,eNt=Object.getOwnPropertyDescriptors,IEe=Object.getOwnPropertySymbols,tNt=Object.prototype.hasOwnProperty,uNt=Object.prototype.propertyIsEnumerable,OEe=(u,e,t)=>e in u?QPt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,nNt=(u,e)=>{for(var t in e||(e={}))tNt.call(e,t)&&OEe(u,t,e[t]);if(IEe)for(var t of IEe(e))uNt.call(e,t)&&OEe(u,t,e[t]);return u},iNt=(u,e)=>XPt(u,eNt(e)),rNt=at((u,{invalid:e},{size:t})=>({wrapper:{position:"relative","&:has(input:disabled)":{cursor:"not-allowed",pointerEvents:"none","& .mantine-MultiSelect-input":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[1],color:u.colors.dark[2],opacity:.6,"&::placeholder":{color:u.colors.dark[2]}},"& .mantine-MultiSelect-defaultValue":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[3],color:u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[7]}}},values:{minHeight:`calc(${Fe({size:t,sizes:kr})} - ${W(2)})`,display:"flex",alignItems:"center",flexWrap:"wrap",marginLeft:`calc(-${u.spacing.xs} / 2)`,boxSizing:"border-box","&[data-clearable]":{marginRight:Fe({size:t,sizes:kr})}},value:{margin:`calc(${u.spacing.xs} / 2 - ${W(2)}) calc(${u.spacing.xs} / 2)`},searchInput:iNt(nNt({},u.fn.fontStyles()),{flex:1,minWidth:W(60),backgroundColor:"transparent",border:0,outline:0,fontSize:Fe({size:t,sizes:u.fontSizes}),padding:0,marginLeft:`calc(${u.spacing.xs} / 2)`,appearance:"none",color:"inherit",maxHeight:Fe({size:t,sizes:rze}),"&::placeholder":{opacity:1,color:e?u.colors.red[u.fn.primaryShade()]:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[5]},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"}}),searchInputEmpty:{width:"100%"},searchInputInputHidden:{flex:0,width:0,minWidth:0,margin:0,overflow:"hidden"},searchInputPointer:{cursor:"pointer","&:disabled":{cursor:"not-allowed",pointerEvents:"none"}},input:{cursor:"pointer","&:disabled":{cursor:"not-allowed",pointerEvents:"none"}}}));const aNt=rNt;var oNt=Object.defineProperty,sNt=Object.defineProperties,lNt=Object.getOwnPropertyDescriptors,JL=Object.getOwnPropertySymbols,mze=Object.prototype.hasOwnProperty,fze=Object.prototype.propertyIsEnumerable,jEe=(u,e,t)=>e in u?oNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,FD=(u,e)=>{for(var t in e||(e={}))mze.call(e,t)&&jEe(u,t,e[t]);if(JL)for(var t of JL(e))fze.call(e,t)&&jEe(u,t,e[t]);return u},VEe=(u,e)=>sNt(u,lNt(e)),cNt=(u,e)=>{var t={};for(var n in u)mze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&JL)for(var n of JL(u))e.indexOf(n)<0&&fze.call(u,n)&&(t[n]=u[n]);return t};function dNt(u,e,t){return e?!1:t.label.toLowerCase().trim().includes(u.toLowerCase().trim())}function hNt(u,e){return!!u&&!e.some(t=>t.value.toLowerCase()===u.toLowerCase())}function HEe(u,e){if(!Array.isArray(u))return;if(e.length===0)return[];const t=e.map(n=>typeof n=="object"?n.value:n);return u.filter(n=>t.includes(n))}const ENt={size:"sm",valueComponent:sze,itemComponent:oue,transitionProps:{transition:"fade",duration:0},maxDropdownHeight:220,shadow:"sm",searchable:!1,filter:dNt,limit:1/0,clearSearchOnChange:!0,clearable:!1,clearSearchOnBlur:!1,disabled:!1,initiallyOpened:!1,creatable:!1,shouldCreate:hNt,switchDirectionOnFlip:!1,zIndex:id("popover"),selectOnBlur:!1,positionDependencies:[],dropdownPosition:"flip"},IJ=C.forwardRef((u,e)=>{const t=Je("MultiSelect",ENt,u),{className:n,style:i,required:r,label:a,description:o,size:s,error:l,classNames:c,styles:d,wrapperProps:h,value:E,defaultValue:g,data:m,onChange:f,valueComponent:p,itemComponent:D,id:x,transitionProps:b,maxDropdownHeight:k,shadow:_,nothingFound:y,onFocus:S,onBlur:B,searchable:L,placeholder:T,filter:N,limit:F,clearSearchOnChange:A,clearable:z,clearSearchOnBlur:P,variant:I,onSearchChange:j,searchValue:V,disabled:H,initiallyOpened:q,radius:J,icon:Q,rightSection:X,rightSectionWidth:Y,creatable:le,getCreateLabel:he,shouldCreate:ze,onCreate:Ie,sx:We,dropdownComponent:Ee,onDropdownClose:ut,onDropdownOpen:we,maxSelectedValues:Ge,withinPortal:nt,portalProps:Ht,switchDirectionOnFlip:eu,zIndex:bu,selectOnBlur:ru,name:oe,dropdownPosition:se,errorProps:re,labelProps:$,descriptionProps:Z,form:ne,positionDependencies:te,onKeyDown:me,unstyled:Se,inputContainer:Ue,inputWrapperOrder:it,readOnly:ct,withAsterisk:Dt,clearButtonProps:$t,hoverOnSearchChange:He,disableSelectedItemFiltering:Pe}=t,Ju=cNt(t,["className","style","required","label","description","size","error","classNames","styles","wrapperProps","value","defaultValue","data","onChange","valueComponent","itemComponent","id","transitionProps","maxDropdownHeight","shadow","nothingFound","onFocus","onBlur","searchable","placeholder","filter","limit","clearSearchOnChange","clearable","clearSearchOnBlur","variant","onSearchChange","searchValue","disabled","initiallyOpened","radius","icon","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","onCreate","sx","dropdownComponent","onDropdownClose","onDropdownOpen","maxSelectedValues","withinPortal","portalProps","switchDirectionOnFlip","zIndex","selectOnBlur","name","dropdownPosition","errorProps","labelProps","descriptionProps","form","positionDependencies","onKeyDown","unstyled","inputContainer","inputWrapperOrder","readOnly","withAsterisk","clearButtonProps","hoverOnSearchChange","disableSelectedItemFiltering"]),{classes:su,cx:En,theme:zu}=aNt({invalid:!!l},{name:"MultiSelect",classNames:c,styles:d,unstyled:Se,size:s,variant:I}),{systemStyles:ui,rest:$u}=C4(Ju),_u=C.useRef(),Vn=C.useRef({}),kn=Kl(x),[Ku,Lu]=C.useState(q),[ju,yn]=C.useState(-1),[Si,Bi]=C.useState("column"),[Ii,Oa]=cs({value:V,defaultValue:"",finalValue:void 0,onChange:j}),[yt,ge]=C.useState(!1),{scrollIntoView:Ye,targetRef:xt,scrollableRef:Zu}=a9e({duration:0,offset:5,cancelable:!1,isList:!0}),xr=le&&typeof he=="function";let dt=null;const xu=m.map(tu=>typeof tu=="string"?{label:tu,value:tu}:tu),di=A7e({data:xu}),[Su,H1]=cs({value:HEe(E,m),defaultValue:HEe(g,m),finalValue:[],onChange:f}),e0=C.useRef(!!Ge&&Ge{if(!ct){const xi=Su.filter($0=>$0!==tu);H1(xi),Ge&&xi.length{Oa(tu.currentTarget.value),!H&&!e0.current&&L&&Lu(!0)},$Ke=tu=>{typeof S=="function"&&S(tu),!H&&!e0.current&&L&&Lu(!0)},ja=NPt({data:di,searchable:L,searchValue:Ii,limit:F,filter:N,value:Su,disableSelectedItemFiltering:Pe});xr&&ze(Ii,di)&&(dt=he(Ii),ja.push({label:Ii,value:Ii,creatable:!0}));const Am=Math.min(ju,ja.length-1),Oie=(tu,xi,$0)=>{let _4=tu;for(;$0(_4);)if(_4=xi(_4),!ja[_4].disabled)return _4;return tu};Lo(()=>{yn(He&&Ii?0:-1)},[Ii,He]),Lo(()=>{!H&&Su.length>m.length&&Lu(!1),Ge&&Su.length=Ge&&(e0.current=!0,Lu(!1))},[Su]);const c_=tu=>{if(!ct)if(A&&Oa(""),Su.includes(tu.value))sO(tu.value);else{if(tu.creatable&&typeof Ie=="function"){const xi=Ie(tu.value);typeof xi<"u"&&xi!==null&&H1(typeof xi=="string"?[...Su,xi]:[...Su,xi.value])}else H1([...Su,tu.value]);Su.length===Ge-1&&(e0.current=!0,Lu(!1)),ja.length===1&&Lu(!1)}},KKe=tu=>{typeof B=="function"&&B(tu),ru&&ja[Am]&&Ku&&c_(ja[Am]),P&&Oa(""),Lu(!1)},WKe=tu=>{if(yt||(me==null||me(tu),ct)||tu.key!=="Backspace"&&Ge&&e0.current)return;const xi=Si==="column",$0=()=>{yn(_m=>{var $1;const OC=Oie(_m,Sm=>Sm+1,Sm=>Sm{yn(_m=>{var $1;const OC=Oie(_m,Sm=>Sm-1,Sm=>Sm>0);return Ku&&(xt.current=Vn.current[($1=ja[OC])==null?void 0:$1.value],Ye({alignment:xi?"start":"end"})),OC})};switch(tu.key){case"ArrowUp":{tu.preventDefault(),Lu(!0),xi?_4():$0();break}case"ArrowDown":{tu.preventDefault(),Lu(!0),xi?$0():_4();break}case"Enter":{tu.preventDefault(),ja[Am]&&Ku?c_(ja[Am]):Lu(!0);break}case" ":{L||(tu.preventDefault(),ja[Am]&&Ku?c_(ja[Am]):Lu(!0));break}case"Backspace":{Su.length>0&&Ii.length===0&&(H1(Su.slice(0,-1)),Lu(!0),Ge&&(e0.current=!1));break}case"Home":{if(!L){tu.preventDefault(),Ku||Lu(!0);const _m=ja.findIndex($1=>!$1.disabled);yn(_m),Ye({alignment:xi?"end":"start"})}break}case"End":{if(!L){tu.preventDefault(),Ku||Lu(!0);const _m=ja.map($1=>!!$1.disabled).lastIndexOf(!1);yn(_m),Ye({alignment:xi?"end":"start"})}break}case"Escape":Lu(!1)}},GKe=Su.map(tu=>{let xi=di.find($0=>$0.value===tu&&!$0.disabled);return!xi&&xr&&(xi={value:tu,label:tu}),xi}).filter(tu=>!!tu).map((tu,xi)=>M.createElement(p,VEe(FD({},tu),{variant:I,disabled:H,className:su.value,readOnly:ct,onRemove:$0=>{$0.preventDefault(),$0.stopPropagation(),sO(tu.value)},key:tu.value,size:s,styles:d,classNames:c,radius:J,index:xi}))),UKe=tu=>Su.includes(tu),qKe=()=>{var tu;Oa(""),H1([]),(tu=_u.current)==null||tu.focus(),Ge&&(e0.current=!1)},d_=!ct&&(ja.length>0?Ku:Ku&&!!y);return Lo(()=>{const tu=d_?we:ut;typeof tu=="function"&&tu()},[d_]),M.createElement(Ma.Wrapper,FD(FD({required:r,id:kn,label:a,error:l,description:o,size:s,className:n,style:i,classNames:c,styles:d,__staticSelector:"MultiSelect",sx:We,errorProps:re,descriptionProps:Z,labelProps:$,inputContainer:Ue,inputWrapperOrder:it,unstyled:Se,withAsterisk:Dt,variant:I},ui),h),M.createElement(gg,{opened:d_,transitionProps:b,shadow:"sm",withinPortal:nt,portalProps:Ht,__staticSelector:"MultiSelect",onDirectionChange:Bi,switchDirectionOnFlip:eu,zIndex:bu,dropdownPosition:se,positionDependencies:[...te,Ii],classNames:c,styles:d,unstyled:Se,variant:I},M.createElement(gg.Target,null,M.createElement("div",{className:su.wrapper,role:"combobox","aria-haspopup":"listbox","aria-owns":Ku&&d_?`${kn}-items`:null,"aria-controls":kn,"aria-expanded":Ku,onMouseLeave:()=>yn(-1),tabIndex:-1},M.createElement("input",{type:"hidden",name:oe,value:Su.join(","),form:ne,disabled:H}),M.createElement(Ma,FD({__staticSelector:"MultiSelect",style:{overflow:"hidden"},component:"div",multiline:!0,size:s,variant:I,disabled:H,error:l,required:r,radius:J,icon:Q,unstyled:Se,onMouseDown:tu=>{var xi;tu.preventDefault(),!H&&!e0.current&&Lu(!Ku),(xi=_u.current)==null||xi.focus()},classNames:VEe(FD({},c),{input:En({[su.input]:!L},c==null?void 0:c.input)})},gze({theme:zu,rightSection:X,rightSectionWidth:Y,styles:d,size:s,shouldClear:z&&Su.length>0,onClear:qKe,error:l,disabled:H,clearButtonProps:$t,readOnly:ct})),M.createElement("div",{className:su.values,"data-clearable":z||void 0},GKe,M.createElement("input",FD({ref:N1(e,_u),type:"search",id:kn,className:En(su.searchInput,{[su.searchInputPointer]:!L,[su.searchInputInputHidden]:!Ku&&Su.length>0||!L&&Su.length>0,[su.searchInputEmpty]:Su.length===0}),onKeyDown:WKe,value:Ii,onChange:HKe,onFocus:$Ke,onBlur:KKe,readOnly:!L||e0.current||ct,placeholder:Su.length===0?T:void 0,disabled:H,"data-mantine-stop-propagation":Ku,autoComplete:"off",onCompositionStart:()=>ge(!0),onCompositionEnd:()=>ge(!1)},$u)))))),M.createElement(gg.Dropdown,{component:Ee||qR,maxHeight:k,direction:Si,id:kn,innerRef:Zu,__staticSelector:"MultiSelect",classNames:c,styles:d},M.createElement(aue,{data:ja,hovered:Am,classNames:c,styles:d,uuid:kn,__staticSelector:"MultiSelect",onItemHover:yn,onItemSelect:c_,itemsRefs:Vn,itemComponent:D,size:s,nothingFound:y,isItemSelected:UKe,creatable:le&&!!dt,createLabel:dt,unstyled:Se,variant:I}))))});IJ.displayName="@mantine/core/MultiSelect";var gNt=at((u,{color:e,radius:t,withTitle:n})=>{const i=u.fn.radius(t),r=u.fn.variant({variant:"filled",color:e});return{closeButton:u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[8]:u.colors.gray[0]}),icon:{boxSizing:"border-box",marginRight:u.spacing.md,width:W(28),height:W(28),borderRadius:W(28),display:"flex",flex:"none",alignItems:"center",justifyContent:"center",backgroundColor:r.background,color:u.white},root:{overflow:"hidden",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",paddingLeft:W(22),paddingRight:u.spacing.xs,paddingTop:u.spacing.xs,paddingBottom:u.spacing.xs,borderRadius:i,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,boxShadow:u.shadows.lg,"&::before":{content:'""',display:"block",position:"absolute",width:W(6),top:i,bottom:i,left:W(4),borderRadius:i,backgroundColor:r.background},"&[data-with-icon]":{paddingLeft:u.spacing.xs,"&::before":{display:"none"}},"&[data-with-border]":{border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]}`}},body:{flex:1,overflow:"hidden",marginRight:u.spacing.xs},loader:{marginRight:u.spacing.md},title:{lineHeight:1.4,marginBottom:W(2),overflow:"hidden",textOverflow:"ellipsis",color:u.colorScheme==="dark"?u.white:u.colors.gray[9]},description:{color:n?u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6]:u.colorScheme==="dark"?u.colors.dark[0]:u.black,lineHeight:1.4,overflow:"hidden",textOverflow:"ellipsis"}}});const mNt=gNt;var fNt=Object.defineProperty,pNt=Object.defineProperties,DNt=Object.getOwnPropertyDescriptors,ZL=Object.getOwnPropertySymbols,pze=Object.prototype.hasOwnProperty,Dze=Object.prototype.propertyIsEnumerable,$Ee=(u,e,t)=>e in u?fNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,KEe=(u,e)=>{for(var t in e||(e={}))pze.call(e,t)&&$Ee(u,t,e[t]);if(ZL)for(var t of ZL(e))Dze.call(e,t)&&$Ee(u,t,e[t]);return u},xNt=(u,e)=>pNt(u,DNt(e)),vNt=(u,e)=>{var t={};for(var n in u)pze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&ZL)for(var n of ZL(u))e.indexOf(n)<0&&Dze.call(u,n)&&(t[n]=u[n]);return t};const CNt={withCloseButton:!0},xze=C.forwardRef((u,e)=>{const t=Je("Notification",CNt,u),{className:n,color:i,radius:r,loading:a,withCloseButton:o,withBorder:s,title:l,icon:c,children:d,onClose:h,closeButtonProps:E,classNames:g,styles:m,unstyled:f,variant:p}=t,D=vNt(t,["className","color","radius","loading","withCloseButton","withBorder","title","icon","children","onClose","closeButtonProps","classNames","styles","unstyled","variant"]),{classes:x,cx:b}=mNt({color:i,radius:r,withTitle:!!l},{name:"Notification",classNames:g,styles:m,unstyled:f,variant:p});return M.createElement(pt,KEe({className:b(x.root,n),"data-with-icon":!!c||a||void 0,"data-with-border":s||void 0,role:"alert",ref:e},D),c&&!a&&M.createElement("div",{className:x.icon},c),a&&M.createElement(Fv,{size:28,color:i,className:x.loader}),M.createElement("div",{className:x.body},l&&M.createElement(Fu,{className:x.title,size:"sm",weight:500},l),M.createElement(Fu,{color:"dimmed",className:x.description,size:"sm"},d)),o&&M.createElement(KR,xNt(KEe({iconSize:16,color:"gray"},E),{onClick:h,className:x.closeButton})))});xze.displayName="@mantine/core/Notification";const bNt=(u,e,t)=>Number.isInteger(u)&&u>=0&&e===0?"numeric":!Number.isInteger(u)&&u>=0&&e!==0?"decimal":Number.isInteger(u)&&u<0&&e===0||!Number.isInteger(u)&&u<0&&e!==0?t==="ios"?"text":"decimal":"numeric";function WEe({direction:u,size:e}){return M.createElement("svg",{style:{width:W(e),height:W(e),transform:u==="up"?"rotate(180deg)":void 0},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const vze={xs:W(20),sm:W(24),md:W(30),lg:W(34),xl:W(36)};var kNt=at((u,{radius:e},{size:t})=>({rightSection:{display:"flex",flexDirection:"column",height:`calc(100% - ${W(2)})`,margin:W(1),overflow:"hidden",borderTopRightRadius:u.fn.radius(e),borderBottomRightRadius:u.fn.radius(e)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:Fe({size:t,sizes:vze}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,borderLeft:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:W(1),color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,"&:not(:disabled):hover":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[0]},"&:disabled":{color:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}}));const yNt=kNt;var FNt=Object.defineProperty,ANt=Object.defineProperties,_Nt=Object.getOwnPropertyDescriptors,YL=Object.getOwnPropertySymbols,Cze=Object.prototype.hasOwnProperty,bze=Object.prototype.propertyIsEnumerable,GEe=(u,e,t)=>e in u?FNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,DH=(u,e)=>{for(var t in e||(e={}))Cze.call(e,t)&&GEe(u,t,e[t]);if(YL)for(var t of YL(e))bze.call(e,t)&&GEe(u,t,e[t]);return u},SNt=(u,e)=>ANt(u,_Nt(e)),BNt=(u,e)=>{var t={};for(var n in u)Cze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&YL)for(var n of YL(u))e.indexOf(n)<0&&bze.call(u,n)&&(t[n]=u[n]);return t};const wNt={type:"text",size:"sm",__staticSelector:"TextInput"},Pt=C.forwardRef((u,e)=>{const t=b8e("TextInput",wNt,u),{inputProps:n,wrapperProps:i}=t,r=BNt(t,["inputProps","wrapperProps"]);return M.createElement(Ma.Wrapper,DH({},i),M.createElement(Ma,SNt(DH(DH({},n),r),{ref:e})))});Pt.displayName="@mantine/core/TextInput";var zNt=Object.defineProperty,LNt=Object.defineProperties,MNt=Object.getOwnPropertyDescriptors,QL=Object.getOwnPropertySymbols,kze=Object.prototype.hasOwnProperty,yze=Object.prototype.propertyIsEnumerable,UEe=(u,e,t)=>e in u?zNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,TNt=(u,e)=>{for(var t in e||(e={}))kze.call(e,t)&&UEe(u,t,e[t]);if(QL)for(var t of QL(e))yze.call(e,t)&&UEe(u,t,e[t]);return u},PNt=(u,e)=>LNt(u,MNt(e)),NNt=(u,e)=>{var t={};for(var n in u)kze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&QL)for(var n of QL(u))e.indexOf(n)<0&&yze.call(u,n)&&(t[n]=u[n]);return t};const RNt=u=>u||"",INt=u=>{if(u==="-")return u;let e=u;e[0]==="."&&(e=`0${u}`);const t=parseFloat(e);return Number.isNaN(t)?"":u},qEe={xs:W(10),sm:W(14),md:W(16),lg:W(18),xl:W(20)},ONt={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,removeTrailingZeros:!1,decimalSeparator:".",formatter:RNt,parser:INt,type:"text"},es=C.forwardRef((u,e)=>{const t=Je("NumberInput",ONt,u),{readOnly:n,disabled:i,value:r,onChange:a,decimalSeparator:o,thousandsSeparator:s,min:l,max:c,startValue:d,step:h,stepHoldInterval:E,stepHoldDelay:g,onFocus:m,onBlur:f,onKeyDown:p,onKeyUp:D,hideControls:x,radius:b,variant:k,precision:_,removeTrailingZeros:y,defaultValue:S,noClampOnBlur:B,handlersRef:L,classNames:T,styles:N,size:F,rightSection:A,rightSectionWidth:z,formatter:P,parser:I,inputMode:j,unstyled:V,type:H}=t,q=NNt(t,["readOnly","disabled","value","onChange","decimalSeparator","thousandsSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onFocus","onBlur","onKeyDown","onKeyUp","hideControls","radius","variant","precision","removeTrailingZeros","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled","type"]),{classes:J,cx:Q}=yNt({radius:b},{classNames:T,styles:N,unstyled:V,name:"NumberInput",variant:k,size:F}),X=He=>{if(He==="")return"";let Pe=He.toFixed(_);return y&&_>0&&(Pe=Pe.replace(new RegExp(`[0]{0,${_}}$`),""),Pe.endsWith(".")&&(Pe=Pe.slice(0,-1))),Pe},Y=He=>{let Pe=He;return o&&(Pe=Pe.replace(".",o)),P(Pe)},le=He=>{let Pe=He;return o&&(Pe=Pe.replaceAll(s,"").replace(o,".")),I(Pe)},he=He=>Y(X(He)),[ze,Ie]=C.useState(typeof r=="number"?r:typeof S=="number"?S:""),[We,Ee]=C.useState(()=>he(ze)),ut=C.useRef(),[we,Ge]=C.useState(!1),nt=(He,Pe)=>{if(!we||Pe){const Ju=he(He);Ju!==We&&Ee(Ju)}He!==ze&&Ie(He)},Ht=typeof l=="number"?l:-1/0,eu=typeof c=="number"?c:1/0,bu=C.useRef();bu.current=()=>{var He;let Pe;ze===""?Pe=(He=d??l)!=null?He:0:Pe=parseFloat(X(hg(ze+h,Ht,eu))),nt(Pe,!0),a==null||a(Pe)};const ru=C.useRef();ru.current=()=>{var He;let Pe;ze===""?Pe=(He=d??l)!=null?He:0:Pe=parseFloat(X(hg(ze-h,Ht,eu))),nt(Pe,!0),a==null||a(Pe)},nue(L,{increment:bu.current,decrement:ru.current}),C.useEffect(()=>{we||nt(r===void 0?ze:r,!0)},[r,we]);const oe=g!==void 0&&E!==void 0,se=C.useRef(null),re=C.useRef(0),$=()=>{se.current&&window.clearTimeout(se.current),se.current=null,re.current=0},Z=He=>{He?bu.current():ru.current(),re.current+=1},ne=He=>{if(Z(He),oe){const Pe=typeof E=="number"?E:E(re.current);se.current=window.setTimeout(()=>ne(He),Pe)}},te=(He,Pe)=>{He.preventDefault(),ut.current.focus(),Z(Pe),oe&&(se.current=window.setTimeout(()=>ne(Pe),g))};C.useEffect(()=>($(),$),[]);const me=M.createElement("div",{className:J.rightSection},M.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:ze>=c,className:Q(J.control,J.controlUp),onPointerDown:He=>{te(He,!0)},onPointerUp:$,onPointerLeave:$},M.createElement(WEe,{size:Fe({size:F,sizes:qEe}),direction:"up"})),M.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:ze<=l,className:Q(J.control,J.controlDown),onPointerDown:He=>{te(He,!1)},onPointerUp:$,onPointerLeave:$},M.createElement(WEe,{size:Fe({size:F,sizes:qEe}),direction:"down"}))),Se=He=>{let Pe=He;(Pe[0]===`${o}`||Pe[0]===".")&&(Pe=`0${Pe}`);const Ju=parseFloat(X(parseFloat(le(Pe)))),su=B?Ju:hg(Ju,Ht,eu),En=Number.isNaN(su)?"":su,zu=ze!==En;Ee(He),nt(En),zu&&(a==null||a(En))},Ue=He=>{He.nativeEvent.isComposing||Se(He.target.value)},it=He=>{Ge(!0),m==null||m(He)},ct=He=>{Ge(!1),f==null||f(He)},Dt=He=>{if(typeof p=="function"&&p(He),He.repeat&&oe&&(He.key==="ArrowUp"||He.key==="ArrowDown")){He.preventDefault();return}n||(He.key==="ArrowUp"?te(He,!0):He.key==="ArrowDown"&&te(He,!1))},$t=He=>{typeof D=="function"&&D(He),(He.key==="ArrowUp"||He.key==="ArrowDown")&&$()};return M.createElement(Pt,PNt(TNt({},q),{type:H,variant:k,value:We,disabled:i,readOnly:n,ref:N1(ut,e),onChange:Ue,onFocus:it,onBlur:ct,onKeyDown:Dt,onKeyUp:$t,rightSection:A||(i||n||x||k==="unstyled"?null:me),rightSectionWidth:z??`calc(${Fe({size:F,sizes:vze})} + ${W(1)})`,radius:b,max:c,min:l,step:h,size:F,styles:N,classNames:T,inputMode:j||bNt(h,_,iyt()),__staticSelector:"NumberInput",unstyled:V}))});es.displayName="@mantine/core/NumberInput";const[jNt,eI]=P1("Pagination.Root component was not found in tree"),VNt={siblings:1,boundaries:1};function Fze(u){const{total:e,value:t,defaultValue:n,onChange:i,disabled:r,children:a,siblings:o,boundaries:s,color:l,radius:c,onNextPage:d,onPreviousPage:h,onFirstPage:E,onLastPage:g,getItemProps:m,classNames:f,styles:p,unstyled:D,variant:x,size:b}=Je("PaginationRoot",VNt,u),{range:k,setPage:_,next:y,previous:S,active:B,first:L,last:T}=J2t({page:t,initialPage:n,onChange:i,total:e,siblings:o,boundaries:s}),N=uo(d,y),F=uo(h,S),A=uo(E,L),z=uo(g,T);return M.createElement(jNt,{value:{total:e,range:k,active:B,disabled:r,color:l,radius:c,getItemProps:m,onChange:_,onNext:N,onPrevious:F,onFirst:A,onLast:z,stylesApi:{name:"Pagination",classNames:f,styles:p,unstyled:D,variant:x,size:b}}},a)}const zy={xs:W(22),sm:W(26),md:W(32),lg:W(38),xl:W(44)};var HNt=at((u,{color:e,radius:t,withPadding:n},{size:i})=>{const r=u.fn.variant({color:e,variant:"filled"});return{control:{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",border:`${W(1)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,height:Fe({size:i,sizes:zy}),minWidth:Fe({size:i,sizes:zy}),padding:n?`0 calc(${Fe({size:i,sizes:u.spacing})} / 2)`:void 0,fontSize:Fe({size:i,sizes:u.fontSizes}),borderRadius:u.fn.radius(t),lineHeight:1,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,"&:not([data-disabled])":u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[0]}),"&:active:not([data-disabled])":u.activeStyles,"&[data-disabled]":{opacity:.4,cursor:"not-allowed",pointerEvents:"none"},"&[data-active]":{borderColor:"transparent",color:r.color,backgroundColor:r.background,"&:not([data-disabled])":u.fn.hover({backgroundColor:r.hover})}}}});const $Nt=HNt;var KNt=Object.defineProperty,WNt=Object.defineProperties,GNt=Object.getOwnPropertyDescriptors,XL=Object.getOwnPropertySymbols,Aze=Object.prototype.hasOwnProperty,_ze=Object.prototype.propertyIsEnumerable,JEe=(u,e,t)=>e in u?KNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,UNt=(u,e)=>{for(var t in e||(e={}))Aze.call(e,t)&&JEe(u,t,e[t]);if(XL)for(var t of XL(e))_ze.call(e,t)&&JEe(u,t,e[t]);return u},qNt=(u,e)=>WNt(u,GNt(e)),JNt=(u,e)=>{var t={};for(var n in u)Aze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&XL)for(var n of XL(u))e.indexOf(n)<0&&_ze.call(u,n)&&(t[n]=u[n]);return t};const ZNt={withPadding:!0},tI=C.forwardRef((u,e)=>{const t=Je("PaginationControl",ZNt,u),{active:n,className:i,disabled:r,withPadding:a}=t,o=JNt(t,["active","className","disabled","withPadding"]),s=eI(),{classes:l,cx:c}=$Nt({color:s.color,radius:s.radius,withPadding:a},s.stylesApi);return M.createElement(b4,qNt(UNt({},o),{disabled:r,"data-active":n||void 0,"data-disabled":r||void 0,ref:e,className:c(l.control,i)}))});tI.displayName="@mantine/core/PaginationControl";var YNt=Object.defineProperty,QNt=Object.defineProperties,XNt=Object.getOwnPropertyDescriptors,eM=Object.getOwnPropertySymbols,Sze=Object.prototype.hasOwnProperty,Bze=Object.prototype.propertyIsEnumerable,ZEe=(u,e,t)=>e in u?YNt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,X3=(u,e)=>{for(var t in e||(e={}))Sze.call(e,t)&&ZEe(u,t,e[t]);if(eM)for(var t of eM(e))Bze.call(e,t)&&ZEe(u,t,e[t]);return u},MA=(u,e)=>QNt(u,XNt(e)),eRt=(u,e)=>{var t={};for(var n in u)Sze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&eM)for(var n of eM(u))e.indexOf(n)<0&&Bze.call(u,n)&&(t[n]=u[n]);return t};function wze(u){return`calc(${Fe({size:u,sizes:zy})} / 2)`}function TA(u){var e=u,{size:t,style:n,children:i,path:r}=e,a=eRt(e,["size","style","children","path"]);return M.createElement("svg",X3({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:X3({width:t,height:t},n)},a),M.createElement("path",{d:r,fill:"currentColor"}))}const tRt=u=>M.createElement(TA,MA(X3({},u),{path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"})),uRt=u=>M.createElement(TA,MA(X3({},u),{path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"})),nRt=u=>M.createElement(TA,MA(X3({},u),{path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"})),iRt=u=>M.createElement(TA,MA(X3({},u),{path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"})),rRt=u=>M.createElement(TA,MA(X3({},u),{path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}));var aRt=at((u,e,{size:t})=>({dots:{height:Fe({size:t,sizes:zy}),minWidth:Fe({size:t,sizes:zy}),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}}));const oRt=aRt;var sRt=Object.defineProperty,tM=Object.getOwnPropertySymbols,zze=Object.prototype.hasOwnProperty,Lze=Object.prototype.propertyIsEnumerable,YEe=(u,e,t)=>e in u?sRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,lRt=(u,e)=>{for(var t in e||(e={}))zze.call(e,t)&&YEe(u,t,e[t]);if(tM)for(var t of tM(e))Lze.call(e,t)&&YEe(u,t,e[t]);return u},cRt=(u,e)=>{var t={};for(var n in u)zze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&tM)for(var n of tM(u))e.indexOf(n)<0&&Lze.call(u,n)&&(t[n]=u[n]);return t};const dRt={icon:rRt},Bue=C.forwardRef((u,e)=>{const t=Je("PaginationDots",dRt,u),{className:n,icon:i}=t,r=cRt(t,["className","icon"]),a=eI(),{classes:o,cx:s}=oRt(null,a.stylesApi);return M.createElement(pt,lRt({ref:e,className:s(o.dots,n)},r),M.createElement(i,{size:wze(a.stylesApi.size)}))});Bue.displayName="@mantine/core/PaginationDots";var hRt=Object.defineProperty,QEe=Object.getOwnPropertySymbols,ERt=Object.prototype.hasOwnProperty,gRt=Object.prototype.propertyIsEnumerable,XEe=(u,e,t)=>e in u?hRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,mRt=(u,e)=>{for(var t in e||(e={}))ERt.call(e,t)&&XEe(u,t,e[t]);if(QEe)for(var t of QEe(e))gRt.call(e,t)&&XEe(u,t,e[t]);return u};function wue({dotsIcon:u}){const e=eI(),t=e.range.map((n,i)=>{var r;return n==="dots"?M.createElement(Bue,{icon:u,key:i}):M.createElement(tI,mRt({key:i,active:n===e.active,"aria-current":n===e.active?"page":void 0,onClick:()=>e.onChange(n),disabled:e.disabled},(r=e.getItemProps)==null?void 0:r.call(e,n)),n)});return M.createElement(M.Fragment,null,t)}wue.displayName="@mantine/core/PaginationItems";var fRt=at(u=>({icon:{transform:u.dir==="rtl"?"rotate(180deg)":"unset"}}));const pRt=fRt;var DRt=Object.defineProperty,uM=Object.getOwnPropertySymbols,Mze=Object.prototype.hasOwnProperty,Tze=Object.prototype.propertyIsEnumerable,ege=(u,e,t)=>e in u?DRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,xRt=(u,e)=>{for(var t in e||(e={}))Mze.call(e,t)&&ege(u,t,e[t]);if(uM)for(var t of uM(e))Tze.call(e,t)&&ege(u,t,e[t]);return u},vRt=(u,e)=>{var t={};for(var n in u)Mze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&uM)for(var n of uM(u))e.indexOf(n)<0&&Tze.call(u,n)&&(t[n]=u[n]);return t};function uI({icon:u,name:e,action:t,type:n}){const i={icon:u},r=C.forwardRef((a,o)=>{const s=Je(e,i,a),{icon:l}=s,c=vRt(s,["icon"]),{classes:d}=pRt(),h=eI(),E=n==="next"?h.active===h.total:h.active===1;return M.createElement(tI,xRt({disabled:h.disabled||E,ref:o,onClick:h[t],withPadding:!1},c),M.createElement(l,{className:d.icon,size:wze(h.stylesApi.size)}))});return r.displayName=`@mantine/core/${e}`,r}const Pze=uI({icon:tRt,name:"PaginationNext",action:"onNext",type:"next"}),Nze=uI({icon:uRt,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),Rze=uI({icon:nRt,name:"PaginationFirst",action:"onFirst",type:"previous"}),Ize=uI({icon:iRt,name:"PaginationLast",action:"onLast",type:"next"});var CRt=Object.defineProperty,nM=Object.getOwnPropertySymbols,Oze=Object.prototype.hasOwnProperty,jze=Object.prototype.propertyIsEnumerable,tge=(u,e,t)=>e in u?CRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,L6=(u,e)=>{for(var t in e||(e={}))Oze.call(e,t)&&tge(u,t,e[t]);if(nM)for(var t of nM(e))jze.call(e,t)&&tge(u,t,e[t]);return u},bRt=(u,e)=>{var t={};for(var n in u)Oze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&nM)for(var n of nM(u))e.indexOf(n)<0&&jze.call(u,n)&&(t[n]=u[n]);return t};const kRt={withControls:!0,siblings:1,boundaries:1};function R1(u){const e=Je("Pagination",kRt,u),{withEdges:t,withControls:n,classNames:i,styles:r,unstyled:a,variant:o,size:s,total:l,value:c,defaultValue:d,onChange:h,disabled:E,siblings:g,boundaries:m,color:f,radius:p,onNextPage:D,onPreviousPage:x,onFirstPage:b,onLastPage:k,getItemProps:_,getControlProps:y,spacing:S,nextIcon:B,previousIcon:L,lastIcon:T,firstIcon:N,dotsIcon:F}=e,A=bRt(e,["withEdges","withControls","classNames","styles","unstyled","variant","size","total","value","defaultValue","onChange","disabled","siblings","boundaries","color","radius","onNextPage","onPreviousPage","onFirstPage","onLastPage","getItemProps","getControlProps","spacing","nextIcon","previousIcon","lastIcon","firstIcon","dotsIcon"]),z=Tr();return l<=0?null:M.createElement(Fze,{classNames:i,styles:r,unstyled:a,variant:o,size:s,total:l,value:c,defaultValue:d,onChange:h,disabled:E,siblings:g,boundaries:m,color:f,radius:p,onNextPage:D,onPreviousPage:x,onFirstPage:b,onLastPage:k,getItemProps:_},M.createElement(_i,L6({spacing:S??`calc(${Fe({size:s,sizes:z.spacing})} / 2)`},A),t&&M.createElement(Rze,L6({icon:N},y==null?void 0:y("first"))),n&&M.createElement(Nze,L6({icon:L},y==null?void 0:y("previous"))),M.createElement(wue,{dotsIcon:F}),n&&M.createElement(Pze,L6({icon:B},y==null?void 0:y("next"))),t&&M.createElement(Ize,L6({icon:T},y==null?void 0:y("last")))))}R1.displayName="@mantine/core/Pagination";R1.Root=Fze;R1.Items=wue;R1.Control=tI;R1.Dots=Bue;R1.Next=Pze;R1.Previous=Nze;R1.Last=Ize;R1.First=Rze;const yRt=({reveal:u,size:e})=>M.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:e,height:e}},M.createElement("path",{d:u?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));var FRt=Object.defineProperty,ARt=Object.defineProperties,_Rt=Object.getOwnPropertyDescriptors,uge=Object.getOwnPropertySymbols,SRt=Object.prototype.hasOwnProperty,BRt=Object.prototype.propertyIsEnumerable,nge=(u,e,t)=>e in u?FRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,xH=(u,e)=>{for(var t in e||(e={}))SRt.call(e,t)&&nge(u,t,e[t]);if(uge)for(var t of uge(e))BRt.call(e,t)&&nge(u,t,e[t]);return u},ige=(u,e)=>ARt(u,_Rt(e)),wRt=at((u,{rightSectionWidth:e},{size:t})=>({visibilityToggle:{},input:{position:"relative",overflow:"hidden"},innerInput:ige(xH(xH({},u.fn.fontStyles()),u.fn.cover(0)),{backgroundColor:"transparent",border:`${W(1)} solid transparent`,borderLeftWidth:0,borderRightWidth:0,boxSizing:"border-box",display:"block",width:`calc(100% - ${W(e)})`,paddingLeft:`calc(${Fe({size:t,sizes:kr})} / 3)`,fontSize:Fe({size:t,sizes:u.fontSizes}),height:`calc(${Fe({size:t,sizes:kr})} - ${W(2)})`,lineHeight:`calc(${Fe({size:t,sizes:kr})} - ${W(4)})`,color:u.colorScheme==="dark"?u.colors.dark[0]:u.black,"&::-ms-reveal, &::-ms-clear":{display:"none"},"&:focus":{outline:0},"&:disabled":{cursor:"not-allowed",pointerEvents:"none",backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[1],color:u.colors.dark[2],opacity:.6,"&::placeholder":{color:u.colors.dark[2]}},"&::placeholder":ige(xH({},u.fn.placeholderStyles()),{opacity:1}),"&[data-invalid]":{color:u.fn.variant({variant:"filled",color:"red"}).background,"&::placeholder":{opacity:1,color:u.fn.variant({variant:"filled",color:"red"}).background}},"&[data-with-icon]":{paddingLeft:Fe({size:t,sizes:kr})}})}));const zRt=wRt;var LRt=Object.defineProperty,MRt=Object.defineProperties,TRt=Object.getOwnPropertyDescriptors,iM=Object.getOwnPropertySymbols,Vze=Object.prototype.hasOwnProperty,Hze=Object.prototype.propertyIsEnumerable,rge=(u,e,t)=>e in u?LRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,x9=(u,e)=>{for(var t in e||(e={}))Vze.call(e,t)&&rge(u,t,e[t]);if(iM)for(var t of iM(e))Hze.call(e,t)&&rge(u,t,e[t]);return u},PRt=(u,e)=>MRt(u,TRt(e)),NRt=(u,e)=>{var t={};for(var n in u)Vze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&iM)for(var n of iM(u))e.indexOf(n)<0&&Hze.call(u,n)&&(t[n]=u[n]);return t};const RRt={xs:W(22),sm:W(26),md:W(28),lg:W(32),xl:W(40)},IRt={xs:W(12),sm:W(15),md:W(17),lg:W(19),xl:W(21)},ORt={xs:W(28),sm:W(32),md:W(34),lg:W(44),xl:W(54)},jRt={size:"sm",toggleTabIndex:-1,visibilityToggleIcon:yRt,__staticSelector:"PasswordInput"},OJ=C.forwardRef((u,e)=>{const t=Je("PasswordInput",jRt,u),{radius:n,disabled:i,size:r,toggleTabIndex:a,className:o,id:s,label:l,error:c,required:d,style:h,icon:E,description:g,wrapperProps:m,classNames:f,styles:p,variant:D,visibilityToggleIcon:x,__staticSelector:b,sx:k,labelProps:_,descriptionProps:y,errorProps:S,unstyled:B,visibilityToggleLabel:L,withAsterisk:T,inputContainer:N,iconWidth:F,inputWrapperOrder:A,visible:z,defaultVisible:P,onVisibilityChange:I}=t,j=NRt(t,["radius","disabled","size","toggleTabIndex","className","id","label","error","required","style","icon","description","wrapperProps","classNames","styles","variant","visibilityToggleIcon","__staticSelector","sx","labelProps","descriptionProps","errorProps","unstyled","visibilityToggleLabel","withAsterisk","inputContainer","iconWidth","inputWrapperOrder","visible","defaultVisible","onVisibilityChange"]),V=Fe({size:r,sizes:ORt}),{classes:H}=zRt({rightSectionWidth:V},{name:"PasswordInput",classNames:f,styles:p,unstyled:B,size:r,variant:D}),q=Kl(s),{systemStyles:J,rest:Q}=C4(j),[X,Y]=cs({value:z,defaultValue:P,finalValue:!1,onChange:I}),le=()=>Y(!X),he=M.createElement(qu,{className:H.visibilityToggle,tabIndex:a,radius:n,size:Fe({size:r,sizes:RRt}),"aria-hidden":!L,"aria-label":L,unstyled:B,onMouseDown:ze=>{ze.preventDefault(),le()},onKeyDown:ze=>{ze.key===" "&&(ze.preventDefault(),le())}},M.createElement(x,{reveal:X,size:Fe({size:r,sizes:IRt})}));return M.createElement(Ma.Wrapper,x9(x9({required:d,id:q,label:l,error:c,description:g,size:r,className:o,style:h,classNames:f,styles:p,__staticSelector:b,sx:k,errorProps:S,descriptionProps:y,labelProps:_,unstyled:B,withAsterisk:T,inputWrapperOrder:A,inputContainer:N,variant:D},J),m),M.createElement(Ma,{component:"div",error:c,icon:E,size:r,classNames:PRt(x9({},f),{input:H.input}),styles:p,radius:n,disabled:i,__staticSelector:b,rightSectionWidth:V,rightSection:!i&&he,variant:D,unstyled:B,iconWidth:F},M.createElement("input",x9({type:X?"text":"password",required:d,"data-invalid":!!c||void 0,"data-with-icon":!!E||void 0,className:H.innerInput,disabled:i,id:q,ref:e},Q))))});OJ.displayName="@mantine/core/PasswordInput";const $ze=C.createContext(!1),VRt=$ze.Provider,HRt=()=>C.useContext($ze);function Kze({children:u,openDelay:e=0,closeDelay:t=0}){return M.createElement(VRt,{value:!0},M.createElement(V9t,{delay:{open:e,close:t}},u))}Kze.displayName="@mantine/core/TooltipGroup";var $Rt=Object.defineProperty,KRt=Object.defineProperties,WRt=Object.getOwnPropertyDescriptors,age=Object.getOwnPropertySymbols,GRt=Object.prototype.hasOwnProperty,URt=Object.prototype.propertyIsEnumerable,oge=(u,e,t)=>e in u?$Rt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,sge=(u,e)=>{for(var t in e||(e={}))GRt.call(e,t)&&oge(u,t,e[t]);if(age)for(var t of age(e))URt.call(e,t)&&oge(u,t,e[t]);return u},qRt=(u,e)=>KRt(u,WRt(e));function JRt(u,e){if(!e)return{backgroundColor:u.colorScheme==="dark"?u.colors.gray[2]:u.colors.gray[9],color:u.colorScheme==="dark"?u.black:u.white};const t=u.fn.variant({variant:"filled",color:e,primaryFallback:!1});return{backgroundColor:t.background,color:t.color}}var ZRt=at((u,{color:e,radius:t,width:n,multiline:i})=>({tooltip:qRt(sge(sge({},u.fn.fontStyles()),JRt(u,e)),{lineHeight:u.lineHeight,fontSize:u.fontSizes.sm,borderRadius:u.fn.radius(t),padding:`calc(${u.spacing.xs} / 2) ${u.spacing.xs}`,position:"absolute",whiteSpace:i?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}));const Wze=ZRt,Gze={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function YRt({offset:u,position:e}){const[t,n]=C.useState(!1),i=C.useRef(),{x:r,y:a,reference:o,floating:s,refs:l,update:c,placement:d}=vue({placement:e,middleware:[JR({crossAxis:!0,padding:5,rootBoundary:"document"})]}),h=d.includes("right")?u:e.includes("left")?u*-1:0,E=d.includes("bottom")?u:e.includes("top")?u*-1:0,g=C.useCallback(({clientX:m,clientY:f})=>{o({getBoundingClientRect(){return{width:0,height:0,x:m,y:f,left:m+h,top:f+E,right:m,bottom:f}}})},[o]);return C.useEffect(()=>{if(l.floating.current){const m=i.current;m.addEventListener("mousemove",g);const f=Eg(l.floating.current);return f.forEach(p=>{p.addEventListener("scroll",c)}),()=>{m.removeEventListener("mousemove",g),f.forEach(p=>{p.removeEventListener("scroll",c)})}}},[o,l.floating.current,c,g,t]),{handleMouseMove:g,x:r,y:a,opened:t,setOpened:n,boundaryRef:i,floating:s}}var QRt=Object.defineProperty,XRt=Object.defineProperties,eIt=Object.getOwnPropertyDescriptors,rM=Object.getOwnPropertySymbols,Uze=Object.prototype.hasOwnProperty,qze=Object.prototype.propertyIsEnumerable,lge=(u,e,t)=>e in u?QRt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,v9=(u,e)=>{for(var t in e||(e={}))Uze.call(e,t)&&lge(u,t,e[t]);if(rM)for(var t of rM(e))qze.call(e,t)&&lge(u,t,e[t]);return u},C9=(u,e)=>XRt(u,eIt(e)),tIt=(u,e)=>{var t={};for(var n in u)Uze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&rM)for(var n of rM(u))e.indexOf(n)<0&&qze.call(u,n)&&(t[n]=u[n]);return t};const uIt={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:id("popover")};function Jze(u){var e;const t=Je("TooltipFloating",uIt,u),{children:n,refProp:i,withinPortal:r,portalProps:a,style:o,className:s,classNames:l,styles:c,unstyled:d,radius:h,color:E,label:g,offset:m,position:f,multiline:p,width:D,zIndex:x,disabled:b,variant:k}=t,_=tIt(t,["children","refProp","withinPortal","portalProps","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled","variant"]),{handleMouseMove:y,x:S,y:B,opened:L,boundaryRef:T,floating:N,setOpened:F}=YRt({offset:m,position:f}),{classes:A,cx:z}=Wze({radius:h,color:E,multiline:p,width:D},{name:"TooltipFloating",classNames:l,styles:c,unstyled:d,variant:k});if(!fC(n))throw new Error(Gze.children);const P=N1(T,n.ref),I=V=>{var H,q;(q=(H=n.props).onMouseEnter)==null||q.call(H,V),y(V),F(!0)},j=V=>{var H,q;(q=(H=n.props).onMouseLeave)==null||q.call(H,V),F(!1)};return M.createElement(M.Fragment,null,M.createElement(_A,C9(v9({},a),{withinPortal:r}),M.createElement(pt,C9(v9({},_),{ref:N,className:z(A.tooltip,s),style:C9(v9({},o),{zIndex:x,display:!b&&L?"block":"none",top:B??"",left:(e=Math.round(S))!=null?e:""})}),g)),C.cloneElement(n,C9(v9({},n.props),{[i]:P,onMouseEnter:I,onMouseLeave:j})))}Jze.displayName="@mantine/core/TooltipFloating";function nIt(u){const[e,t]=C.useState(!1),i=typeof u.opened=="boolean"?u.opened:e,r=HRt(),a=Kl(),{delay:o,currentId:s,setCurrentId:l}=i8e(),c=C.useCallback(S=>{t(S),S&&l(a)},[l,a]),{x:d,y:h,reference:E,floating:g,context:m,refs:f,update:p,placement:D,middlewareData:{arrow:{x,y:b}={}}}=vue({placement:u.position,open:i,onOpenChange:c,middleware:[gue(u.offset),JR({padding:8}),Eue(),XSe({element:u.arrowRef,padding:u.arrowOffset}),...u.inline?[VSe()]:[]]}),{getReferenceProps:k,getFloatingProps:_}=X9t([j9t(m,{enabled:u.events.hover,delay:r?o:{open:u.openDelay,close:u.closeDelay},mouseOnly:!u.events.touch}),Y9t(m,{enabled:u.events.focus,keyboardOnly:!0}),Q9t(m,{role:"tooltip"}),Z9t(m,{enabled:typeof u.opened===void 0}),H9t(m,{id:a})]);return a8e({opened:i,position:u.position,positionDependencies:u.positionDependencies,floating:{refs:f,update:p}}),Lo(()=>{var S;(S=u.onPositionChange)==null||S.call(u,D)},[D]),{x:d,y:h,arrowX:x,arrowY:b,reference:E,floating:g,getFloatingProps:_,getReferenceProps:k,isGroupPhase:i&&s&&s!==a,opened:i,placement:D}}var iIt=Object.defineProperty,rIt=Object.defineProperties,aIt=Object.getOwnPropertyDescriptors,aM=Object.getOwnPropertySymbols,Zze=Object.prototype.hasOwnProperty,Yze=Object.prototype.propertyIsEnumerable,cge=(u,e,t)=>e in u?iIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jm=(u,e)=>{for(var t in e||(e={}))Zze.call(e,t)&&cge(u,t,e[t]);if(aM)for(var t of aM(e))Yze.call(e,t)&&cge(u,t,e[t]);return u},vH=(u,e)=>rIt(u,aIt(e)),oIt=(u,e)=>{var t={};for(var n in u)Zze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&aM)for(var n of aM(u))e.indexOf(n)<0&&Yze.call(u,n)&&(t[n]=u[n]);return t};const sIt={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:id("popover"),positionDependencies:[]},nI=C.forwardRef((u,e)=>{var t;const n=C.useRef(null),i=Je("Tooltip",sIt,u),{children:r,position:a,refProp:o,label:s,openDelay:l,closeDelay:c,onPositionChange:d,opened:h,withinPortal:E,portalProps:g,radius:m,color:f,classNames:p,styles:D,unstyled:x,style:b,className:k,withArrow:_,arrowSize:y,arrowOffset:S,arrowRadius:B,arrowPosition:L,offset:T,transitionProps:N,multiline:F,width:A,events:z,zIndex:P,disabled:I,positionDependencies:j,onClick:V,onMouseEnter:H,onMouseLeave:q,inline:J,variant:Q,keepMounted:X}=i,Y=oIt(i,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","portalProps","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transitionProps","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline","variant","keepMounted"]),{classes:le,cx:he,theme:ze}=Wze({radius:m,color:f,width:A,multiline:F},{name:"Tooltip",classNames:p,styles:D,unstyled:x,variant:Q}),Ie=nIt({position:p8e(ze.dir,a),closeDelay:c,openDelay:l,onPositionChange:d,opened:h,events:z,arrowRef:n,arrowOffset:S,offset:T+(_?y/2:0),positionDependencies:[...j,r],inline:J});if(!fC(r))throw new Error(Gze.children);const We=N1(Ie.reference,r.ref,e);return M.createElement(M.Fragment,null,M.createElement(_A,vH(jm({},g),{withinPortal:E}),M.createElement(Vp,vH(jm({keepMounted:X,mounted:!I&&Ie.opened},N),{transition:N.transition||"fade",duration:Ie.isGroupPhase?10:(t=N.duration)!=null?t:100}),Ee=>{var ut,we;return M.createElement(pt,jm(jm({},Y),Ie.getFloatingProps({ref:Ie.floating,className:le.tooltip,style:vH(jm(jm({},b),Ee),{zIndex:P,top:(ut=Ie.y)!=null?ut:0,left:(we=Ie.x)!=null?we:0})})),s,M.createElement(bue,{ref:n,arrowX:Ie.arrowX,arrowY:Ie.arrowY,visible:_,position:Ie.placement,arrowSize:y,arrowOffset:S,arrowRadius:B,arrowPosition:L,className:le.arrow}))})),C.cloneElement(r,Ie.getReferenceProps(jm({onClick:V,onMouseEnter:H,onMouseLeave:q,onMouseMove:u.onMouseMove,onPointerDown:u.onPointerDown,onPointerEnter:u.onPointerEnter,[o]:We,className:he(k,r.props.className)},r.props))))});nI.Group=Kze;nI.Floating=Jze;nI.displayName="@mantine/core/Tooltip";const wx=nI;var lIt=Object.defineProperty,oM=Object.getOwnPropertySymbols,Qze=Object.prototype.hasOwnProperty,Xze=Object.prototype.propertyIsEnumerable,dge=(u,e,t)=>e in u?lIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,hge=(u,e)=>{for(var t in e||(e={}))Qze.call(e,t)&&dge(u,t,e[t]);if(oM)for(var t of oM(e))Xze.call(e,t)&&dge(u,t,e[t]);return u},cIt=(u,e)=>{var t={};for(var n in u)Qze.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&oM)for(var n of oM(u))e.indexOf(n)<0&&Xze.call(u,n)&&(t[n]=u[n]);return t};function dIt(u){const e=u,{width:t,height:n,style:i}=e,r=cIt(e,["width","height","style"]);return M.createElement("svg",hge({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:hge({width:t,height:n},i)},r),M.createElement("path",{fill:"currentColor",d:"M0 2.5a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0z"}))}const eLe=C.createContext(null),hIt=eLe.Provider,EIt=()=>C.useContext(eLe);var gIt=Object.defineProperty,sM=Object.getOwnPropertySymbols,tLe=Object.prototype.hasOwnProperty,uLe=Object.prototype.propertyIsEnumerable,Ege=(u,e,t)=>e in u?gIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gge=(u,e)=>{for(var t in e||(e={}))tLe.call(e,t)&&Ege(u,t,e[t]);if(sM)for(var t of sM(e))uLe.call(e,t)&&Ege(u,t,e[t]);return u},mIt=(u,e)=>{var t={};for(var n in u)tLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&sM)for(var n of sM(u))e.indexOf(n)<0&&uLe.call(u,n)&&(t[n]=u[n]);return t};const fIt={size:"sm"},nLe=C.forwardRef((u,e)=>{const t=Je("RadioGroup",fIt,u),{children:n,value:i,defaultValue:r,onChange:a,size:o,wrapperProps:s,unstyled:l,name:c}=t,d=mIt(t,["children","value","defaultValue","onChange","size","wrapperProps","unstyled","name"]),h=Kl(c),[E,g]=cs({value:i,defaultValue:r,finalValue:"",onChange:a}),m=f=>g(f.currentTarget.value);return M.createElement(hIt,{value:{value:E,onChange:m,size:o,name:h}},M.createElement(Ma.Wrapper,gge(gge({labelElement:"div",size:o,__staticSelector:"RadioGroup",ref:e,unstyled:l},s),d),n))});nLe.displayName="@mantine/core/RadioGroup";var pIt=Object.defineProperty,DIt=Object.defineProperties,xIt=Object.getOwnPropertyDescriptors,mge=Object.getOwnPropertySymbols,vIt=Object.prototype.hasOwnProperty,CIt=Object.prototype.propertyIsEnumerable,fge=(u,e,t)=>e in u?pIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,bIt=(u,e)=>{for(var t in e||(e={}))vIt.call(e,t)&&fge(u,t,e[t]);if(mge)for(var t of mge(e))CIt.call(e,t)&&fge(u,t,e[t]);return u},kIt=(u,e)=>DIt(u,xIt(e));const CH={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)},b9={xs:W(6),sm:W(8),md:W(10),lg:W(14),xl:W(16)};var yIt=at((u,{color:e,transitionDuration:t,labelPosition:n,error:i},{size:r})=>{const a=u.fn.variant({variant:"filled",color:e}),o=u.fn.variant({variant:"filled",color:"red"}).background;return{inner:{order:n==="left"?2:1,position:"relative",alignSelf:"flex-start"},icon:{ref:s1("icon"),color:u.white,opacity:0,transform:`scale(0.75) translateY(${W(2)})`,transition:`opacity ${t}ms ${u.transitionTimingFunction}`,pointerEvents:"none",width:Fe({sizes:b9,size:r}),height:Fe({sizes:b9,size:r}),position:"absolute",top:`calc(50% - ${Fe({sizes:b9,size:r})} / 2)`,left:`calc(50% - ${Fe({sizes:b9,size:r})} / 2)`},radio:kIt(bIt({},u.fn.focusStyles()),{backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.white,border:`${W(1)} solid ${i?o:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[4]}`,position:"relative",appearance:"none",width:Fe({sizes:CH,size:r}),height:Fe({sizes:CH,size:r}),borderRadius:Fe({sizes:CH,size:r}),margin:0,display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"background-color, border-color",transitionTimingFunction:u.transitionTimingFunction,transitionDuration:`${t}ms`,cursor:u.cursorType,"&:checked":{background:a.background,borderColor:a.background,[`& + .${s1("icon")}`]:{opacity:1,transform:"scale(1)"}},"&:disabled":{borderColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[4],backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1],[`& + .${s1("icon")}`]:{color:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[4]}}})}});const FIt=yIt;var AIt=Object.defineProperty,lM=Object.getOwnPropertySymbols,iLe=Object.prototype.hasOwnProperty,rLe=Object.prototype.propertyIsEnumerable,pge=(u,e,t)=>e in u?AIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,k9=(u,e)=>{for(var t in e||(e={}))iLe.call(e,t)&&pge(u,t,e[t]);if(lM)for(var t of lM(e))rLe.call(e,t)&&pge(u,t,e[t]);return u},_It=(u,e)=>{var t={};for(var n in u)iLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&lM)for(var n of lM(u))e.indexOf(n)<0&&rLe.call(u,n)&&(t[n]=u[n]);return t};const SIt={icon:dIt,transitionDuration:100,size:"sm",labelPosition:"right"},Df=C.forwardRef((u,e)=>{var t,n;const i=Je("Radio",SIt,u),{className:r,style:a,id:o,label:s,size:l,title:c,disabled:d,color:h,classNames:E,styles:g,sx:m,icon:f,transitionDuration:p,wrapperProps:D,unstyled:x,labelPosition:b,description:k,error:_,variant:y}=i,S=_It(i,["className","style","id","label","size","title","disabled","color","classNames","styles","sx","icon","transitionDuration","wrapperProps","unstyled","labelPosition","description","error","variant"]),B=EIt(),L=(t=B==null?void 0:B.size)!=null?t:l,T=u.size?l:L,{classes:N}=FIt({color:h,transitionDuration:p,labelPosition:b,error:!!_},{name:"Radio",classNames:E,styles:g,unstyled:x,variant:y,size:T}),{systemStyles:F,rest:A}=C4(S),z=Kl(o),P=B?{checked:B.value===A.value,name:(n=A.name)!=null?n:B.name,onChange:B.onChange}:{};return M.createElement(QR,k9(k9({className:r,sx:m,style:a,id:z,size:T,labelPosition:b,label:s,description:k,error:_,disabled:d,__staticSelector:"Radio",classNames:E,styles:g,unstyled:x,"data-checked":P.checked||void 0,variant:y},F),D),M.createElement("div",{className:N.inner},M.createElement("input",k9(k9({ref:e,className:N.radio,type:"radio",id:z,disabled:d},A),P)),M.createElement(f,{className:N.icon,"aria-hidden":!0})))});Df.displayName="@mantine/core/Radio";Df.Group=nLe;function BIt({data:u,searchable:e,limit:t,searchValue:n,filter:i,value:r,filterDataOnExactSearchMatch:a}){if(!e)return u;const o=r!=null&&u.find(l=>l.value===r)||null;if(o&&!a&&(o==null?void 0:o.label)===n){if(t){if(t>=u.length)return u;const l=u.indexOf(o),c=l+t,d=c-u.length;return d>0?u.slice(l-d):u.slice(l,c)}return u}const s=[];for(let l=0;l=t));l+=1);return s}var wIt=at(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}}));const zIt=wIt;var LIt=Object.defineProperty,MIt=Object.defineProperties,TIt=Object.getOwnPropertyDescriptors,cM=Object.getOwnPropertySymbols,aLe=Object.prototype.hasOwnProperty,oLe=Object.prototype.propertyIsEnumerable,Dge=(u,e,t)=>e in u?LIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,M6=(u,e)=>{for(var t in e||(e={}))aLe.call(e,t)&&Dge(u,t,e[t]);if(cM)for(var t of cM(e))oLe.call(e,t)&&Dge(u,t,e[t]);return u},bH=(u,e)=>MIt(u,TIt(e)),PIt=(u,e)=>{var t={};for(var n in u)aLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&cM)for(var n of cM(u))e.indexOf(n)<0&&oLe.call(u,n)&&(t[n]=u[n]);return t};function NIt(u,e){return e.label.toLowerCase().trim().includes(u.toLowerCase().trim())}function RIt(u,e){return!!u&&!e.some(t=>t.label.toLowerCase()===u.toLowerCase())}const IIt={required:!1,size:"sm",shadow:"sm",itemComponent:oue,transitionProps:{transition:"fade",duration:0},initiallyOpened:!1,filter:NIt,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:RIt,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:id("popover"),positionDependencies:[],dropdownPosition:"flip"},si=C.forwardRef((u,e)=>{const t=b8e("Select",IIt,u),{inputProps:n,wrapperProps:i,shadow:r,data:a,value:o,defaultValue:s,onChange:l,itemComponent:c,onKeyDown:d,onBlur:h,onFocus:E,transitionProps:g,initiallyOpened:m,unstyled:f,classNames:p,styles:D,filter:x,maxDropdownHeight:b,searchable:k,clearable:_,nothingFound:y,limit:S,disabled:B,onSearchChange:L,searchValue:T,rightSection:N,rightSectionWidth:F,creatable:A,getCreateLabel:z,shouldCreate:P,selectOnBlur:I,onCreate:j,dropdownComponent:V,onDropdownClose:H,onDropdownOpen:q,withinPortal:J,portalProps:Q,switchDirectionOnFlip:X,zIndex:Y,name:le,dropdownPosition:he,allowDeselect:ze,placeholder:Ie,filterDataOnExactSearchMatch:We,form:Ee,positionDependencies:ut,readOnly:we,clearButtonProps:Ge,hoverOnSearchChange:nt}=t,Ht=PIt(t,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transitionProps","initiallyOpened","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","portalProps","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","form","positionDependencies","readOnly","clearButtonProps","hoverOnSearchChange"]),{classes:eu,cx:bu,theme:ru}=zIt(),[oe,se]=C.useState(m),[re,$]=C.useState(-1),Z=C.useRef(),ne=C.useRef({}),[te,me]=C.useState("column"),Se=te==="column",{scrollIntoView:Ue,targetRef:it,scrollableRef:ct}=a9e({duration:0,offset:5,cancelable:!1,isList:!0}),Dt=ze===void 0?_:ze,$t=dt=>{if(oe!==dt){se(dt);const xu=dt?q:H;typeof xu=="function"&&xu()}},He=A&&typeof z=="function";let Pe=null;const Ju=a.map(dt=>typeof dt=="string"?{label:dt,value:dt}:dt),su=A7e({data:Ju}),[En,zu,ui]=cs({value:o,defaultValue:s,finalValue:null,onChange:l}),$u=su.find(dt=>dt.value===En),[_u,Vn]=cs({value:T,defaultValue:($u==null?void 0:$u.label)||"",finalValue:void 0,onChange:L}),kn=dt=>{Vn(dt),k&&typeof L=="function"&&L(dt)},Ku=()=>{var dt;we||(zu(null),ui||kn(""),(dt=Z.current)==null||dt.focus())};C.useEffect(()=>{const dt=su.find(xu=>xu.value===En);dt?kn(dt.label):(!He||!En)&&kn("")},[En]),C.useEffect(()=>{$u&&(!k||!oe)&&kn($u.label)},[$u==null?void 0:$u.label]);const Lu=dt=>{if(!we)if(Dt&&($u==null?void 0:$u.value)===dt.value)zu(null),$t(!1);else{if(dt.creatable&&typeof j=="function"){const xu=j(dt.value);typeof xu<"u"&&xu!==null&&zu(typeof xu=="string"?xu:xu.value)}else zu(dt.value);ui||kn(dt.label),$(-1),$t(!1),Z.current.focus()}},ju=BIt({data:su,searchable:k,limit:S,searchValue:_u,filter:x,filterDataOnExactSearchMatch:We,value:En});He&&P(_u,ju)&&(Pe=z(_u),ju.push({label:_u,value:_u,creatable:!0}));const yn=(dt,xu,di)=>{let Su=dt;for(;di(Su);)if(Su=xu(Su),!ju[Su].disabled)return Su;return dt};Lo(()=>{$(nt&&_u?0:-1)},[_u,nt]);const Si=En?ju.findIndex(dt=>dt.value===En):0,Bi=!we&&(ju.length>0?oe:oe&&!!y),Ii=()=>{$(dt=>{var xu;const di=yn(dt,Su=>Su-1,Su=>Su>0);return it.current=ne.current[(xu=ju[di])==null?void 0:xu.value],Bi&&Ue({alignment:Se?"start":"end"}),di})},Oa=()=>{$(dt=>{var xu;const di=yn(dt,Su=>Su+1,Su=>Suwindow.setTimeout(()=>{var dt;it.current=ne.current[(dt=ju[Si])==null?void 0:dt.value],Ue({alignment:Se?"end":"start"})},50);Lo(()=>{Bi&&yt()},[Bi]);const ge=dt=>{switch(typeof d=="function"&&d(dt),dt.key){case"ArrowUp":{dt.preventDefault(),oe?Se?Ii():Oa():($(Si),$t(!0),yt());break}case"ArrowDown":{dt.preventDefault(),oe?Se?Oa():Ii():($(Si),$t(!0),yt());break}case"Home":{if(!k){dt.preventDefault(),oe||$t(!0);const xu=ju.findIndex(di=>!di.disabled);$(xu),Bi&&Ue({alignment:Se?"end":"start"})}break}case"End":{if(!k){dt.preventDefault(),oe||$t(!0);const xu=ju.map(di=>!!di.disabled).lastIndexOf(!1);$(xu),Bi&&Ue({alignment:Se?"end":"start"})}break}case"Escape":{dt.preventDefault(),$t(!1),$(-1);break}case" ":{k||(dt.preventDefault(),ju[re]&&oe?Lu(ju[re]):($t(!0),$(Si),yt()));break}case"Enter":k||dt.preventDefault(),ju[re]&&oe&&(dt.preventDefault(),Lu(ju[re]))}},Ye=dt=>{typeof h=="function"&&h(dt);const xu=su.find(di=>di.value===En);I&&ju[re]&&oe&&Lu(ju[re]),kn((xu==null?void 0:xu.label)||""),$t(!1)},xt=dt=>{typeof E=="function"&&E(dt),k&&$t(!0)},Zu=dt=>{we||(kn(dt.currentTarget.value),_&&dt.currentTarget.value===""&&zu(null),$(-1),$t(!0))},xr=()=>{we||($t(!oe),En&&!oe&&$(Si))};return M.createElement(Ma.Wrapper,bH(M6({},i),{__staticSelector:"Select"}),M.createElement(gg,{opened:Bi,transitionProps:g,shadow:r,withinPortal:J,portalProps:Q,__staticSelector:"Select",onDirectionChange:me,switchDirectionOnFlip:X,zIndex:Y,dropdownPosition:he,positionDependencies:[...ut,_u],classNames:p,styles:D,unstyled:f,variant:n.variant},M.createElement(gg.Target,null,M.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":Bi?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":Bi,onMouseLeave:()=>$(-1),tabIndex:-1},M.createElement("input",{type:"hidden",name:le,value:En||"",form:Ee,disabled:B}),M.createElement(Ma,M6(bH(M6(M6({autoComplete:"off",type:"search"},n),Ht),{ref:N1(e,Z),onKeyDown:ge,__staticSelector:"Select",value:_u,placeholder:Ie,onChange:Zu,"aria-autocomplete":"list","aria-controls":Bi?`${n.id}-items`:null,"aria-activedescendant":re>=0?`${n.id}-${re}`:null,onMouseDown:xr,onBlur:Ye,onFocus:xt,readOnly:!k||we,disabled:B,"data-mantine-stop-propagation":Bi,name:null,classNames:bH(M6({},p),{input:bu({[eu.input]:!k},p==null?void 0:p.input)})}),gze({theme:ru,rightSection:N,rightSectionWidth:F,styles:D,size:n.size,shouldClear:_&&!!$u,onClear:Ku,error:i.error,clearButtonProps:Ge,disabled:B,readOnly:we}))))),M.createElement(gg.Dropdown,{component:V||qR,maxHeight:b,direction:te,id:n.id,innerRef:ct,__staticSelector:"Select",classNames:p,styles:D},M.createElement(aue,{data:ju,hovered:re,classNames:p,styles:D,isItemSelected:dt=>dt===En,uuid:n.id,__staticSelector:"Select",onItemHover:$,onItemSelect:Lu,itemsRefs:ne,itemComponent:c,size:n.size,nothingFound:y,creatable:He&&!!Pe,createLabel:Pe,"aria-label":i.label,unstyled:f,variant:n.variant}))))});si.displayName="@mantine/core/Select";function OIt(u,e){if(e.length===0)return e;const t="maxWidth"in e[0]?"maxWidth":"minWidth",n=[...e].sort((i,r)=>Us(Fe({size:r[t],sizes:u.breakpoints}))-Us(Fe({size:i[t],sizes:u.breakpoints})));return t==="minWidth"?n.reverse():n}var jIt=Object.defineProperty,xge=Object.getOwnPropertySymbols,VIt=Object.prototype.hasOwnProperty,HIt=Object.prototype.propertyIsEnumerable,vge=(u,e,t)=>e in u?jIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,$It=(u,e)=>{for(var t in e||(e={}))VIt.call(e,t)&&vge(u,t,e[t]);if(xge)for(var t of xge(e))HIt.call(e,t)&&vge(u,t,e[t]);return u},KIt=at((u,{spacing:e,breakpoints:t,cols:n,verticalSpacing:i})=>{const r=i!=null,a=OIt(u,t).reduce((o,s)=>{var l,c;const d="maxWidth"in s?"max-width":"min-width",h=Fe({size:d==="max-width"?s.maxWidth:s.minWidth,sizes:u.breakpoints,units:"em"}),E=Us(h)-(d==="max-width"?1:0);return o[`@media (${d}: ${yl(E)})`]={gridTemplateColumns:`repeat(${s.cols}, minmax(0, 1fr))`,gap:`${Fe({size:(l=s.verticalSpacing)!=null?l:r?i:e,sizes:u.spacing})} ${Fe({size:(c=s.spacing)!=null?c:e,sizes:u.spacing})}`},o},{});return{root:$It({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:`${Fe({size:r?i:e,sizes:u.spacing})} ${Fe({size:e,sizes:u.spacing})}`},a)}});const WIt=KIt;var GIt=Object.defineProperty,dM=Object.getOwnPropertySymbols,sLe=Object.prototype.hasOwnProperty,lLe=Object.prototype.propertyIsEnumerable,Cge=(u,e,t)=>e in u?GIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,UIt=(u,e)=>{for(var t in e||(e={}))sLe.call(e,t)&&Cge(u,t,e[t]);if(dM)for(var t of dM(e))lLe.call(e,t)&&Cge(u,t,e[t]);return u},qIt=(u,e)=>{var t={};for(var n in u)sLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&dM)for(var n of dM(u))e.indexOf(n)<0&&lLe.call(u,n)&&(t[n]=u[n]);return t};const JIt={breakpoints:[],cols:1,spacing:"md"},Fc=C.forwardRef((u,e)=>{const t=Je("SimpleGrid",JIt,u),{className:n,breakpoints:i,cols:r,spacing:a,verticalSpacing:o,children:s,unstyled:l,variant:c}=t,d=qIt(t,["className","breakpoints","cols","spacing","verticalSpacing","children","unstyled","variant"]),{classes:h,cx:E}=WIt({breakpoints:i,cols:r,spacing:a,verticalSpacing:o},{name:"SimpleGrid",unstyled:l,variant:c});return M.createElement(pt,UIt({className:E(h.root,n),ref:e},d),s)});Fc.displayName="@mantine/core/SimpleGrid";function cLe({value:u,min:e,max:t}){const n=(u-e)/(t-e)*100;return Math.min(Math.max(n,0),100)}function ZIt({value:u,containerWidth:e,min:t,max:n,step:i,precision:r}){const o=(e?Math.min(Math.max(u,0),e)/e:u)*(n-t),s=(o!==0?Math.round(o/i)*i:0)+t,l=Math.max(s,t);return r!==void 0?Number(l.toFixed(r)):l}var YIt=Object.defineProperty,QIt=Object.defineProperties,XIt=Object.getOwnPropertyDescriptors,bge=Object.getOwnPropertySymbols,eOt=Object.prototype.hasOwnProperty,tOt=Object.prototype.propertyIsEnumerable,kge=(u,e,t)=>e in u?YIt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,uOt=(u,e)=>{for(var t in e||(e={}))eOt.call(e,t)&&kge(u,t,e[t]);if(bge)for(var t of bge(e))tOt.call(e,t)&&kge(u,t,e[t]);return u},nOt=(u,e)=>QIt(u,XIt(e));const _o={xs:W(4),sm:W(6),md:W(8),lg:W(10),xl:W(12)};var iOt=at(u=>({root:nOt(uOt({},u.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",outline:0,display:"flex",flexDirection:"column",alignItems:"center",touchAction:"none",position:"relative"})}));const rOt=iOt;var aOt=Object.defineProperty,oOt=Object.defineProperties,sOt=Object.getOwnPropertyDescriptors,yge=Object.getOwnPropertySymbols,lOt=Object.prototype.hasOwnProperty,cOt=Object.prototype.propertyIsEnumerable,Fge=(u,e,t)=>e in u?aOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dOt=(u,e)=>{for(var t in e||(e={}))lOt.call(e,t)&&Fge(u,t,e[t]);if(yge)for(var t of yge(e))cOt.call(e,t)&&Fge(u,t,e[t]);return u},hOt=(u,e)=>oOt(u,sOt(e)),EOt=at((u,{color:e,disabled:t,thumbSize:n},{size:i})=>({label:{position:"absolute",top:W(-36),backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[9],fontSize:u.fontSizes.xs,color:u.white,padding:`calc(${u.spacing.xs} / 2)`,borderRadius:u.radius.sm,whiteSpace:"nowrap",pointerEvents:"none",userSelect:"none",touchAction:"none"},thumb:hOt(dOt({},u.fn.focusStyles()),{boxSizing:"border-box",position:"absolute",display:t?"none":"flex",height:n?W(n):`calc(${Fe({sizes:_o,size:i})} * 2)`,width:n?W(n):`calc(${Fe({sizes:_o,size:i})} * 2)`,backgroundColor:u.colorScheme==="dark"?u.fn.themeColor(e,u.fn.primaryShade()):u.white,border:`${W(4)} solid ${u.colorScheme==="dark"?u.white:u.fn.themeColor(e,u.fn.primaryShade())}`,color:u.colorScheme==="dark"?u.white:u.fn.themeColor(e,u.fn.primaryShade()),transform:"translate(-50%, -50%)",top:"50%",cursor:"pointer",borderRadius:1e3,alignItems:"center",justifyContent:"center",transitionDuration:"100ms",transitionProperty:"box-shadow, transform",transitionTimingFunction:u.transitionTimingFunction,zIndex:3,userSelect:"none",touchAction:"none"}),dragging:{transform:"translate(-50%, -50%) scale(1.05)",boxShadow:u.shadows.sm}}));const gOt=EOt,dLe=C.forwardRef(({max:u,min:e,value:t,position:n,label:i,dragging:r,onMouseDown:a,onKeyDownCapture:o,color:s,classNames:l,styles:c,size:d,labelTransition:h,labelTransitionDuration:E,labelTransitionTimingFunction:g,labelAlwaysOn:m,thumbLabel:f,onFocus:p,onBlur:D,showLabelOnHover:x,isHovered:b,children:k=null,disabled:_,unstyled:y,thumbSize:S,variant:B},L)=>{const{classes:T,cx:N,theme:F}=gOt({color:s,disabled:_,thumbSize:S},{name:"Slider",classNames:l,styles:c,unstyled:y,variant:B,size:d}),[A,z]=C.useState(!1),P=m||r||A||x&&b;return M.createElement(pt,{tabIndex:0,role:"slider","aria-label":f,"aria-valuemax":u,"aria-valuemin":e,"aria-valuenow":t,ref:L,className:N(T.thumb,{[T.dragging]:r}),onFocus:()=>{z(!0),typeof p=="function"&&p()},onBlur:()=>{z(!1),typeof D=="function"&&D()},onTouchStart:a,onMouseDown:a,onKeyDownCapture:o,onClick:I=>I.stopPropagation(),style:{[F.dir==="rtl"?"right":"left"]:`${n}%`}},k,M.createElement(Vp,{mounted:i!=null&&P,duration:E,transition:h,timingFunction:g||F.transitionTimingFunction},I=>M.createElement("div",{style:I,className:T.label},i)))});dLe.displayName="@mantine/core/SliderThumb";function mOt({mark:u,offset:e,value:t,inverted:n=!1}){return n?typeof e=="number"&&u.value<=e||u.value>=t:typeof e=="number"?u.value>=e&&u.value<=t:u.value<=t}var fOt=at((u,{color:e,disabled:t,thumbSize:n},{size:i})=>({marksContainer:{position:"absolute",right:n?W(n/2):Fe({sizes:_o,size:i}),left:n?W(n/2):Fe({sizes:_o,size:i}),"&:has(~ input:disabled)":{"& .mantine-Slider-markFilled":{border:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,borderColor:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]}}},markWrapper:{position:"absolute",top:`calc(${W(Fe({sizes:_o,size:i}))} / 2)`,zIndex:2,height:0},mark:{boxSizing:"border-box",border:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]}`,height:Fe({sizes:_o,size:i}),width:Fe({sizes:_o,size:i}),borderRadius:1e3,transform:`translateX(calc(-${Fe({sizes:_o,size:i})} / 2))`,backgroundColor:u.white,pointerEvents:"none"},markFilled:{borderColor:t?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.fn.variant({variant:"filled",color:e}).background},markLabel:{transform:`translate(-50%, calc(${u.spacing.xs} / 2))`,fontSize:u.fontSizes.sm,color:u.colorScheme==="dark"?u.colors.dark[2]:u.colors.gray[6],whiteSpace:"nowrap",cursor:"pointer",userSelect:"none"}}));const pOt=fOt;function hLe({marks:u,color:e,size:t,thumbSize:n,min:i,max:r,value:a,classNames:o,styles:s,offset:l,onChange:c,disabled:d,unstyled:h,inverted:E,variant:g}){const{classes:m,cx:f}=pOt({color:e,disabled:d,thumbSize:n},{name:"Slider",classNames:o,styles:s,unstyled:h,variant:g,size:t}),p=u.map((D,x)=>M.createElement(pt,{className:m.markWrapper,sx:{left:`${cLe({value:D.value,min:i,max:r})}%`},key:x},M.createElement("div",{className:f(m.mark,{[m.markFilled]:mOt({mark:D,value:a,offset:l,inverted:E})})}),D.label&&M.createElement("div",{className:m.markLabel,onMouseDown:b=>{b.stopPropagation(),!d&&c(D.value)},onTouchStart:b=>{b.stopPropagation(),!d&&c(D.value)}},D.label)));return M.createElement("div",{className:m.marksContainer},p)}hLe.displayName="@mantine/core/SliderMarks";var DOt=at((u,{radius:e,color:t,disabled:n,inverted:i,thumbSize:r},{size:a})=>({trackContainer:{display:"flex",alignItems:"center",width:"100%",height:`calc(${Fe({sizes:_o,size:a})} * 2)`,cursor:"pointer","&:has(~ input:disabled)":{"&":{pointerEvents:"none"},"& .mantine-Slider-thumb":{display:"none"},"& .mantine-Slider-track::before":{content:'""',backgroundColor:i?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]},"& .mantine-Slider-bar":{backgroundColor:i?u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]}}},track:{position:"relative",height:Fe({sizes:_o,size:a}),width:"100%",marginRight:r?W(r/2):Fe({size:a,sizes:_o}),marginLeft:r?W(r/2):Fe({size:a,sizes:_o}),"&::before":{content:'""',position:"absolute",top:0,bottom:0,borderRadius:u.fn.radius(e),right:`calc(${r?W(r/2):Fe({size:a,sizes:_o})} * -1)`,left:`calc(${r?W(r/2):Fe({size:a,sizes:_o})} * -1)`,backgroundColor:i?n?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.fn.variant({variant:"filled",color:t}).background:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],zIndex:0}},bar:{position:"absolute",zIndex:1,top:0,bottom:0,backgroundColor:i?u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2]:n?u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[4]:u.fn.variant({variant:"filled",color:t}).background,borderRadius:u.fn.radius(e)}}));const xOt=DOt;var vOt=Object.defineProperty,COt=Object.defineProperties,bOt=Object.getOwnPropertyDescriptors,hM=Object.getOwnPropertySymbols,ELe=Object.prototype.hasOwnProperty,gLe=Object.prototype.propertyIsEnumerable,Age=(u,e,t)=>e in u?vOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,_ge=(u,e)=>{for(var t in e||(e={}))ELe.call(e,t)&&Age(u,t,e[t]);if(hM)for(var t of hM(e))gLe.call(e,t)&&Age(u,t,e[t]);return u},kOt=(u,e)=>COt(u,bOt(e)),yOt=(u,e)=>{var t={};for(var n in u)ELe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&hM)for(var n of hM(u))e.indexOf(n)<0&&gLe.call(u,n)&&(t[n]=u[n]);return t};function mLe(u){var e=u,{filled:t,size:n,thumbSize:i,color:r,classNames:a,styles:o,radius:s,children:l,offset:c,disabled:d,marksOffset:h,unstyled:E,inverted:g,variant:m,containerProps:f}=e,p=yOt(e,["filled","size","thumbSize","color","classNames","styles","radius","children","offset","disabled","marksOffset","unstyled","inverted","variant","containerProps"]);const{classes:D}=xOt({color:r,radius:s,disabled:d,inverted:g,thumbSize:i},{name:"Slider",classNames:a,styles:o,unstyled:E,variant:m,size:n});return M.createElement(M.Fragment,null,M.createElement("div",_ge({className:D.trackContainer},f),M.createElement("div",{className:D.track},M.createElement(pt,{className:D.bar,sx:{left:`calc(${c}% - ${i?W(i/2):Fe({size:n,sizes:_o})})`,width:`calc(${t}% + 2 * ${i?W(i/2):Fe({size:n,sizes:_o})})`}}),l)),M.createElement(hLe,kOt(_ge({},p),{size:n,thumbSize:i,color:r,offset:h,classNames:a,styles:o,disabled:d,unstyled:E,inverted:g,variant:m})))}mLe.displayName="@mantine/core/SliderTrack";var FOt=Object.defineProperty,AOt=Object.defineProperties,_Ot=Object.getOwnPropertyDescriptors,EM=Object.getOwnPropertySymbols,fLe=Object.prototype.hasOwnProperty,pLe=Object.prototype.propertyIsEnumerable,Sge=(u,e,t)=>e in u?FOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,SOt=(u,e)=>{for(var t in e||(e={}))fLe.call(e,t)&&Sge(u,t,e[t]);if(EM)for(var t of EM(e))pLe.call(e,t)&&Sge(u,t,e[t]);return u},BOt=(u,e)=>AOt(u,_Ot(e)),wOt=(u,e)=>{var t={};for(var n in u)fLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&EM)for(var n of EM(u))e.indexOf(n)<0&&pLe.call(u,n)&&(t[n]=u[n]);return t};const DLe=C.forwardRef((u,e)=>{var t=u,{className:n,size:i,classNames:r,styles:a,disabled:o,unstyled:s,variant:l}=t,c=wOt(t,["className","size","classNames","styles","disabled","unstyled","variant"]);const{classes:d,cx:h}=rOt(null,{name:"Slider",classNames:r,styles:a,unstyled:s,variant:l,size:i});return M.createElement(pt,BOt(SOt({},c),{tabIndex:-1,className:h(d.root,n),ref:e}))});DLe.displayName="@mantine/core/SliderRoot";function y9(u,e){return parseFloat(u.toFixed(e))}function zOt(u){if(!u)return 0;const e=u.toString().split(".");return e.length>1?e[1].length:0}var LOt=Object.defineProperty,MOt=Object.defineProperties,TOt=Object.getOwnPropertyDescriptors,gM=Object.getOwnPropertySymbols,xLe=Object.prototype.hasOwnProperty,vLe=Object.prototype.propertyIsEnumerable,Bge=(u,e,t)=>e in u?LOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,POt=(u,e)=>{for(var t in e||(e={}))xLe.call(e,t)&&Bge(u,t,e[t]);if(gM)for(var t of gM(e))vLe.call(e,t)&&Bge(u,t,e[t]);return u},NOt=(u,e)=>MOt(u,TOt(e)),ROt=(u,e)=>{var t={};for(var n in u)xLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&gM)for(var n of gM(u))e.indexOf(n)<0&&vLe.call(u,n)&&(t[n]=u[n]);return t};const IOt={size:"md",radius:"xl",min:0,max:100,step:1,marks:[],label:u=>u,labelTransition:"skew-down",labelTransitionDuration:0,labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:u=>u},CLe=C.forwardRef((u,e)=>{const t=Je("Slider",IOt,u),{classNames:n,styles:i,color:r,value:a,onChange:o,onChangeEnd:s,size:l,radius:c,min:d,max:h,step:E,precision:g,defaultValue:m,name:f,marks:p,label:D,labelTransition:x,labelTransitionDuration:b,labelTransitionTimingFunction:k,labelAlwaysOn:_,thumbLabel:y,showLabelOnHover:S,thumbChildren:B,disabled:L,unstyled:T,thumbSize:N,scale:F,inverted:A,variant:z}=t,P=ROt(t,["classNames","styles","color","value","onChange","onChangeEnd","size","radius","min","max","step","precision","defaultValue","name","marks","label","labelTransition","labelTransitionDuration","labelTransitionTimingFunction","labelAlwaysOn","thumbLabel","showLabelOnHover","thumbChildren","disabled","unstyled","thumbSize","scale","inverted","variant"]),I=g??zOt(E),j=Tr(),[V,H]=C.useState(!1),[q,J]=cs({value:typeof a=="number"?hg(a,d,h):a,defaultValue:typeof m=="number"?hg(m,d,h):m,finalValue:hg(0,d,h),onChange:o}),Q=C.useRef(q),X=C.useRef(),Y=C.useRef(),le=cLe({value:q,min:d,max:h}),he=F(q),ze=typeof D=="function"?D(he):D,Ie=C.useCallback(({x:we})=>{if(!L){const Ge=ZIt({value:we,min:d,max:h,step:E,precision:I});J(Ge),Q.current=Ge}},[L,d,h,E,I,J]),{ref:We,active:Ee}=q2t(Ie,{onScrubEnd:()=>s==null?void 0:s(Q.current)},j.dir),ut=we=>{if(!L)switch(we.key){case"ArrowUp":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(q+E,d),h),I);s==null||s(Ge),J(Ge);break}case"ArrowRight":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(j.dir==="rtl"?q-E:q+E,d),h),I);s==null||s(Ge),J(Ge);break}case"ArrowDown":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(q-E,d),h),I);s==null||s(Ge),J(Ge);break}case"ArrowLeft":{we.preventDefault(),Y.current.focus();const Ge=y9(Math.min(Math.max(j.dir==="rtl"?q+E:q-E,d),h),I);s==null||s(Ge),J(Ge);break}case"Home":{we.preventDefault(),Y.current.focus(),s==null||s(d),J(d);break}case"End":{we.preventDefault(),Y.current.focus(),s==null||s(h),J(h);break}}};return M.createElement(DLe,NOt(POt({},P),{ref:N1(e,X),onKeyDownCapture:ut,onMouseDownCapture:()=>{var we;return(we=X.current)==null?void 0:we.focus()},size:l,classNames:n,styles:i,disabled:L,unstyled:T,variant:z}),M.createElement(mLe,{inverted:A,offset:0,filled:le,marks:p,size:l,thumbSize:N,radius:c,color:r,min:d,max:h,value:he,onChange:J,classNames:n,styles:i,disabled:L,unstyled:T,variant:z,containerProps:{ref:We,onMouseEnter:S?()=>H(!0):void 0,onMouseLeave:S?()=>H(!1):void 0}},M.createElement(dLe,{max:h,min:d,value:he,position:le,dragging:Ee,color:r,size:l,label:ze,ref:Y,labelTransition:x,labelTransitionDuration:b,labelTransitionTimingFunction:k,labelAlwaysOn:_,classNames:n,styles:i,thumbLabel:y,showLabelOnHover:S,isHovered:V,disabled:L,unstyled:T,thumbSize:N,variant:z},B)),M.createElement("input",{type:"hidden",name:f,value:he}))});CLe.displayName="@mantine/core/Slider";var OOt=Object.defineProperty,mM=Object.getOwnPropertySymbols,bLe=Object.prototype.hasOwnProperty,kLe=Object.prototype.propertyIsEnumerable,wge=(u,e,t)=>e in u?OOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jOt=(u,e)=>{for(var t in e||(e={}))bLe.call(e,t)&&wge(u,t,e[t]);if(mM)for(var t of mM(e))kLe.call(e,t)&&wge(u,t,e[t]);return u},VOt=(u,e)=>{var t={};for(var n in u)bLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&mM)for(var n of mM(u))e.indexOf(n)<0&&kLe.call(u,n)&&(t[n]=u[n]);return t};const HOt={w:0,h:0},zv=C.forwardRef((u,e)=>{const t=Je("Space",HOt,u),{w:n,h:i}=t,r=VOt(t,["w","h"]);return M.createElement(pt,jOt({ref:e,w:n,miw:n,h:i,mih:i},r))});zv.displayName="@mantine/core/Space";var $Ot=at((u,{transitionDuration:e})=>({control:{},root:{position:"relative"},content:{display:"flex",flexDirection:"column",overflow:"hidden",transitionProperty:"max-height",transitionTimingFunction:u.transitionTimingFunction,transitionDuration:`${e}ms`,"@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":void 0}}}));const KOt=$Ot;var WOt=Object.defineProperty,fM=Object.getOwnPropertySymbols,yLe=Object.prototype.hasOwnProperty,FLe=Object.prototype.propertyIsEnumerable,zge=(u,e,t)=>e in u?WOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,GOt=(u,e)=>{for(var t in e||(e={}))yLe.call(e,t)&&zge(u,t,e[t]);if(fM)for(var t of fM(e))FLe.call(e,t)&&zge(u,t,e[t]);return u},UOt=(u,e)=>{var t={};for(var n in u)yLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&fM)for(var n of fM(u))e.indexOf(n)<0&&FLe.call(u,n)&&(t[n]=u[n]);return t};const qOt={maxHeight:100,transitionDuration:200,initialState:!1},zue=C.forwardRef((u,e)=>{const t=Je("Spoiler",qOt,u),{className:n,children:i,maxHeight:r,hideLabel:a,showLabel:o,transitionDuration:s,controlRef:l,initialState:c,classNames:d,styles:h,unstyled:E,variant:g}=t,m=UOt(t,["className","children","maxHeight","hideLabel","showLabel","transitionDuration","controlRef","initialState","classNames","styles","unstyled","variant"]),{classes:f,cx:p}=KOt({transitionDuration:s},{name:"Spoiler",classNames:d,styles:h,unstyled:E,variant:g}),[D,x]=C.useState(c),{ref:b,height:k}=nyt(),_=rx(S=>!S),className:f.control},y))});zue.displayName="@mantine/core/Spoiler";var JOt=at((u,{spacing:e,align:t,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:t,justifyContent:n,gap:Fe({size:e,sizes:u.spacing})}}));const ZOt=JOt;var YOt=Object.defineProperty,pM=Object.getOwnPropertySymbols,ALe=Object.prototype.hasOwnProperty,_Le=Object.prototype.propertyIsEnumerable,Lge=(u,e,t)=>e in u?YOt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,QOt=(u,e)=>{for(var t in e||(e={}))ALe.call(e,t)&&Lge(u,t,e[t]);if(pM)for(var t of pM(e))_Le.call(e,t)&&Lge(u,t,e[t]);return u},XOt=(u,e)=>{var t={};for(var n in u)ALe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&pM)for(var n of pM(u))e.indexOf(n)<0&&_Le.call(u,n)&&(t[n]=u[n]);return t};const ejt={spacing:"md",align:"stretch",justify:"flex-start"},Gu=C.forwardRef((u,e)=>{const t=Je("Stack",ejt,u),{spacing:n,className:i,align:r,justify:a,unstyled:o,variant:s}=t,l=XOt(t,["spacing","className","align","justify","unstyled","variant"]),{classes:c,cx:d}=ZOt({spacing:n,align:r,justify:a},{name:"Stack",unstyled:o,variant:s});return M.createElement(pt,QOt({className:d(c.root,i),ref:e},l))});Gu.displayName="@mantine/core/Stack";var tjt=Object.defineProperty,ujt=Object.defineProperties,njt=Object.getOwnPropertyDescriptors,Mge=Object.getOwnPropertySymbols,ijt=Object.prototype.hasOwnProperty,rjt=Object.prototype.propertyIsEnumerable,Tge=(u,e,t)=>e in u?tjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,kH=(u,e)=>{for(var t in e||(e={}))ijt.call(e,t)&&Tge(u,t,e[t]);if(Mge)for(var t of Mge(e))rjt.call(e,t)&&Tge(u,t,e[t]);return u},ajt=(u,e)=>ujt(u,njt(e));const SLe={xs:W(34),sm:W(36),md:W(42),lg:W(48),xl:W(52)};var ojt=at((u,{color:e,iconSize:t,radius:n,allowStepClick:i,iconPosition:r,orientation:a},{size:o})=>{const s=t?W(t):Fe({size:o,sizes:SLe}),l=o==="xl"||o==="lg"?u.spacing.md:u.spacing.sm,c=u.fn.radius(n),d=u.fn.variant({variant:"filled",color:e||u.primaryColor,primaryFallback:!1}),h=`calc(${u.spacing.xs} / 2)`,E={step:{justifyContent:"flex-start",minHeight:`calc(${s} + ${u.spacing.xl} + ${h})`,marginTop:h,overflow:"hidden","&:first-of-type":{marginTop:0},[`&:last-of-type .${s1("verticalSeparator")}`]:{display:"none"}}};return{stepLoader:{},step:kH({display:"flex",flexDirection:r==="left"?"row":"row-reverse",cursor:i?"pointer":"default"},a==="vertical"?E.step:{alignItems:"center"}),stepWrapper:{position:"relative"},verticalSeparator:{top:`calc(${s} + ${h})`,left:`calc(${s} / 2)`,height:"100vh",position:"absolute",borderLeft:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1]}`,ref:s1("verticalSeparator")},verticalSeparatorActive:{borderColor:u.fn.variant({variant:"filled",color:e}).background},stepIcon:{boxSizing:"border-box",height:s,width:s,minWidth:s,borderRadius:c,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1],border:`${W(2)} solid ${u.colorScheme==="dark"?u.colors.dark[5]:u.colors.gray[1]}`,transition:"background-color 150ms ease, border-color 150ms ease",position:"relative",fontWeight:700,color:u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[7],fontSize:Fe({size:o,sizes:u.fontSizes}),"&[data-progress]":{borderColor:d.background},"&[data-completed]":{backgroundColor:d.background,borderColor:d.background,color:u.white}},stepCompletedIcon:ajt(kH({},u.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:u.white}),stepBody:kH({display:"flex",flexDirection:"column",marginLeft:r==="left"?l:void 0,marginRight:r==="right"?l:void 0},a==="vertical"?{marginTop:`calc(${t} / 4)`}:null),stepLabel:{textAlign:r,fontWeight:500,fontSize:Fe({size:o,sizes:u.fontSizes}),lineHeight:1},stepDescription:{textAlign:r,marginTop:`calc(${Fe({size:o,sizes:u.spacing})} / 3)`,marginBottom:`calc(${Fe({size:o,sizes:u.spacing})} / 3)`,fontSize:`calc(${Fe({size:o,sizes:u.fontSizes})} - ${W(2)})`,lineHeight:1}}});const sjt=ojt;var ljt=Object.defineProperty,DM=Object.getOwnPropertySymbols,BLe=Object.prototype.hasOwnProperty,wLe=Object.prototype.propertyIsEnumerable,Pge=(u,e,t)=>e in u?ljt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,yH=(u,e)=>{for(var t in e||(e={}))BLe.call(e,t)&&Pge(u,t,e[t]);if(DM)for(var t of DM(e))wLe.call(e,t)&&Pge(u,t,e[t]);return u},cjt=(u,e)=>{var t={};for(var n in u)BLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&DM)for(var n of DM(u))e.indexOf(n)<0&&wLe.call(u,n)&&(t[n]=u[n]);return t};const djt={xs:16,sm:18,md:20,lg:22,xl:24},hjt={withIcon:!0,size:"md",radius:"xl",allowStepClick:!0,iconPosition:"left",__staticSelector:"Step"},F9=(u,e)=>typeof u=="function"?M.createElement(u,{step:e}):u,zLe=C.forwardRef((u,e)=>{const t=Je("StepperStep",hjt,u),{className:n,step:i,state:r,color:a,icon:o,completedIcon:s,progressIcon:l,label:c,description:d,withIcon:h,iconSize:E,size:g,radius:m,loading:f,allowStepClick:p,allowStepSelect:D,iconPosition:x,__staticSelector:b,classNames:k,styles:_,unstyled:y,orientation:S,variant:B}=t,L=cjt(t,["className","step","state","color","icon","completedIcon","progressIcon","label","description","withIcon","iconSize","size","radius","loading","allowStepClick","allowStepSelect","iconPosition","__staticSelector","classNames","styles","unstyled","orientation","variant"]),{classes:T,cx:N}=sjt({color:a,iconSize:E,radius:m,allowStepClick:p,iconPosition:x,orientation:S},{name:b,classNames:k,styles:_,unstyled:y,variant:B,size:g}),F=Fe({size:g,sizes:djt}),A=r==="stepCompleted"?null:r==="stepProgress"?l:o,z={"data-progress":r==="stepProgress"||void 0,"data-completed":r==="stepCompleted"||void 0};return M.createElement(b4,yH(yH({className:N(T.step,n),tabIndex:p?0:-1,ref:e},z),L),h&&M.createElement("div",{className:T.stepWrapper},M.createElement("div",yH({className:T.stepIcon},z),M.createElement(Vp,{mounted:r==="stepCompleted",transition:"pop",duration:200},P=>M.createElement("div",{className:T.stepCompletedIcon,style:P},f?M.createElement(Fv,{color:"#fff",size:F,className:T.stepLoader}):F9(s,i)||M.createElement(yBe,{indeterminate:!1,width:F,height:F}))),r!=="stepCompleted"?f?M.createElement(Fv,{size:F,color:a}):F9(A||o,i):null),S==="vertical"&&M.createElement("div",{className:N(T.verticalSeparator,{[T.verticalSeparatorActive]:r==="stepCompleted"})})),(c||d)&&M.createElement("div",{className:T.stepBody},c&&M.createElement(Fu,{className:T.stepLabel},F9(c,i)),d&&M.createElement(Fu,{className:T.stepDescription,color:"dimmed"},F9(d,i))))});zLe.displayName="@mantine/core/Step";function xM(u){return null}xM.displayName="@mantine/core/StepCompleted";var Ejt=Object.defineProperty,gjt=Object.defineProperties,mjt=Object.getOwnPropertyDescriptors,Nge=Object.getOwnPropertySymbols,fjt=Object.prototype.hasOwnProperty,pjt=Object.prototype.propertyIsEnumerable,Rge=(u,e,t)=>e in u?Ejt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,T6=(u,e)=>{for(var t in e||(e={}))fjt.call(e,t)&&Rge(u,t,e[t]);if(Nge)for(var t of Nge(e))pjt.call(e,t)&&Rge(u,t,e[t]);return u},Djt=(u,e)=>gjt(u,mjt(e)),xjt=at((u,{contentPadding:e,color:t,orientation:n,iconPosition:i,iconSize:r,breakpoint:a},{size:o})=>{const s=typeof a<"u",l=Us(Fe({size:a,sizes:u.breakpoints})),c=typeof r<"u"?`calc(${W(r)} / 2 - ${W(1)})`:`calc(${Fe({size:o,sizes:SLe})} / 2 - ${W(1)})`,d={steps:{flexDirection:"column",alignItems:i==="left"?"flex-start":"flex-end"},separator:{width:W(2),minHeight:u.spacing.xl,marginLeft:i==="left"?c:0,marginRight:i==="right"?c:0,marginTop:`calc(${u.spacing.xs} / 2)`,marginBottom:`calc(${u.spacing.xs} - ${W(2)})`}},h={steps:{[`@media (max-width: ${yl(l-1)})`]:d.steps},separator:{[`@media (max-width: ${yl(l-1)})`]:d.separator}};return{root:{},steps:T6(T6({display:"flex",boxSizing:"border-box",alignItems:"center"},n==="vertical"?d.steps:null),s?h.steps:null),separator:T6(T6({boxSizing:"border-box",transition:"background-color 150ms ease",flex:1,height:W(2),backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],marginLeft:u.spacing.md,marginRight:u.spacing.md},n==="vertical"?d.separator:null),s?h.separator:null),separatorActive:{backgroundColor:u.fn.variant({variant:"filled",color:t||u.primaryColor,primaryFallback:!1}).background},content:Djt(T6({},u.fn.fontStyles()),{paddingTop:Fe({size:e,sizes:u.spacing})})}});const vjt=xjt;var Cjt=Object.defineProperty,vM=Object.getOwnPropertySymbols,LLe=Object.prototype.hasOwnProperty,MLe=Object.prototype.propertyIsEnumerable,Ige=(u,e,t)=>e in u?Cjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,bjt=(u,e)=>{for(var t in e||(e={}))LLe.call(e,t)&&Ige(u,t,e[t]);if(vM)for(var t of vM(e))MLe.call(e,t)&&Ige(u,t,e[t]);return u},kjt=(u,e)=>{var t={};for(var n in u)LLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&vM)for(var n of vM(u))e.indexOf(n)<0&&MLe.call(u,n)&&(t[n]=u[n]);return t};const yjt={contentPadding:"md",size:"md",radius:"xl",orientation:"horizontal",iconPosition:"left",allowNextStepsSelect:!0},Pf=C.forwardRef((u,e)=>{var t,n,i;const r=Je("Stepper",yjt,u),{className:a,children:o,onStepClick:s,active:l,icon:c,completedIcon:d,progressIcon:h,color:E,iconSize:g,contentPadding:m,size:f,radius:p,orientation:D,breakpoint:x,iconPosition:b,allowNextStepsSelect:k,classNames:_,styles:y,unstyled:S,variant:B}=r,L=kjt(r,["className","children","onStepClick","active","icon","completedIcon","progressIcon","color","iconSize","contentPadding","size","radius","orientation","breakpoint","iconPosition","allowNextStepsSelect","classNames","styles","unstyled","variant"]),{classes:T,cx:N}=vjt({contentPadding:m,color:E,orientation:D,iconPosition:b,iconSize:g,breakpoint:x},{name:"Stepper",classNames:_,styles:y,unstyled:S,variant:B,size:f}),F=C.Children.toArray(o),A=F.filter(H=>H.type!==xM),z=F.find(H=>H.type===xM),P=A.reduce((H,q,J)=>{const Q=l===J?"stepProgress":l>J?"stepCompleted":"stepInactive",Y=(()=>typeof s!="function"?!1:typeof q.props.allowStepSelect=="boolean"?q.props.allowStepSelect:Q==="stepCompleted"||k)();return H.push(C.cloneElement(q,{__staticSelector:"Stepper",icon:q.props.icon||c||J+1,key:J,step:J,variant:B,state:Q,onClick:()=>Y&&s(J),allowStepClick:Y,completedIcon:q.props.completedIcon||d,progressIcon:q.props.progressIcon||h,color:q.props.color||E,iconSize:g,size:f,radius:p,classNames:_,styles:y,iconPosition:q.props.iconPosition||b,orientation:D,unstyled:S})),D==="horizontal"&&J!==A.length-1&&H.push(M.createElement("div",{className:N(T.separator,{[T.separatorActive]:JA.length-1?j:I;return M.createElement(pt,bjt({className:N(T.root,a),ref:e},L),M.createElement("div",{className:T.steps},P),V&&M.createElement("div",{className:T.content},V))});Pf.Step=zLe;Pf.Completed=xM;Pf.displayName="@mantine/core/Stepper";const TLe=C.createContext(null),Fjt=TLe.Provider,Ajt=()=>C.useContext(TLe);var _jt=Object.defineProperty,CM=Object.getOwnPropertySymbols,PLe=Object.prototype.hasOwnProperty,NLe=Object.prototype.propertyIsEnumerable,Oge=(u,e,t)=>e in u?_jt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jge=(u,e)=>{for(var t in e||(e={}))PLe.call(e,t)&&Oge(u,t,e[t]);if(CM)for(var t of CM(e))NLe.call(e,t)&&Oge(u,t,e[t]);return u},Sjt=(u,e)=>{var t={};for(var n in u)PLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&CM)for(var n of CM(u))e.indexOf(n)<0&&NLe.call(u,n)&&(t[n]=u[n]);return t};const Bjt={size:"sm"},RLe=C.forwardRef((u,e)=>{const t=Je("SwitchGroup",Bjt,u),{children:n,value:i,defaultValue:r,onChange:a,size:o,wrapperProps:s}=t,l=Sjt(t,["children","value","defaultValue","onChange","size","wrapperProps"]),[c,d]=cs({value:i,defaultValue:r,finalValue:[],onChange:a}),h=E=>{const g=E.currentTarget.value;d(c.includes(g)?c.filter(m=>m!==g):[...c,g])};return M.createElement(Fjt,{value:{value:c,onChange:h,size:o}},M.createElement(Ma.Wrapper,jge(jge({labelElement:"div",size:o,__staticSelector:"SwitchGroup",ref:e},s),l),n))});RLe.displayName="@mantine/core/SwitchGroup";var wjt=Object.defineProperty,zjt=Object.defineProperties,Ljt=Object.getOwnPropertyDescriptors,Vge=Object.getOwnPropertySymbols,Mjt=Object.prototype.hasOwnProperty,Tjt=Object.prototype.propertyIsEnumerable,Hge=(u,e,t)=>e in u?wjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,Pjt=(u,e)=>{for(var t in e||(e={}))Mjt.call(e,t)&&Hge(u,t,e[t]);if(Vge)for(var t of Vge(e))Tjt.call(e,t)&&Hge(u,t,e[t]);return u},Njt=(u,e)=>zjt(u,Ljt(e));const Rjt={xs:W(16),sm:W(20),md:W(24),lg:W(30),xl:W(36)},Ijt={xs:W(32),sm:W(38),md:W(46),lg:W(56),xl:W(72)},Ojt={xs:W(12),sm:W(14),md:W(18),lg:W(22),xl:W(28)},jjt={xs:W(5),sm:W(6),md:W(7),lg:W(9),xl:W(11)},Vjt={xs:W(4),sm:W(5),md:W(6),lg:W(8),xl:W(10)};var Hjt=at((u,{radius:e,color:t,labelPosition:n,error:i},{size:r})=>{const a=Fe({size:r,sizes:Ojt}),o=Fe({size:e,sizes:u.radius}),s=u.fn.variant({variant:"filled",color:t}),l=Fe({size:r,sizes:Ijt}),c=W(r==="xs"?1:2),d=u.fn.variant({variant:"filled",color:"red"}).background;return{root:{position:"relative"},input:{height:0,width:0,overflow:"hidden",whiteSpace:"nowrap",padding:0,WebkitClipPath:"inset(50%)",clipPath:"inset(50%)",position:"absolute"},track:Njt(Pjt({},u.fn.focusStyles("input:focus + &")),{cursor:u.cursorType,overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:o,backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[2],border:`${W(1)} solid ${i?d:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]}`,height:Fe({size:r,sizes:Rjt}),minWidth:l,margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:u.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:Fe({size:r,sizes:jjt}),fontWeight:600,order:n==="left"?2:1,userSelect:"none",zIndex:0,lineHeight:0,color:u.colorScheme==="dark"?u.colors.dark[1]:u.colors.gray[6],transition:`color 150ms ${u.transitionTimingFunction}`,"input:checked + &":{backgroundColor:s.background,borderColor:s.background,color:u.white,transition:`color 150ms ${u.transitionTimingFunction}`},"input:disabled + &":{backgroundColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],cursor:"not-allowed",pointerEvents:"none"}}),thumb:{position:"absolute",zIndex:1,borderRadius:o,boxSizing:"border-box",display:"flex",backgroundColor:u.white,height:a,width:a,border:`${W(1)} solid ${u.colorScheme==="dark"?u.white:u.colors.gray[3]}`,left:c,transition:`left 150ms ${u.transitionTimingFunction}`,"& > *":{margin:"auto"},"@media (prefers-reduced-motion)":{transitionDuration:u.respectReducedMotion?"0ms":""},"input:checked + * > &":{left:`calc(100% - ${a} - ${c})`,borderColor:u.white},"input:disabled + * > &":{borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[2],backgroundColor:u.colorScheme==="dark"?u.colors.dark[3]:u.colors.gray[0]}},trackLabel:{height:"100%",display:"grid",placeContent:"center",minWidth:`calc(${l} - ${a})`,paddingInline:Fe({size:r,sizes:Vjt}),marginLeft:`calc(${a} + ${c})`,transition:`margin 150ms ${u.transitionTimingFunction}`,"input:checked + * > &":{marginLeft:0,marginRight:`calc(${a} + ${c})`}}}});const $jt=Hjt;var Kjt=Object.defineProperty,Wjt=Object.defineProperties,Gjt=Object.getOwnPropertyDescriptors,bM=Object.getOwnPropertySymbols,ILe=Object.prototype.hasOwnProperty,OLe=Object.prototype.propertyIsEnumerable,$ge=(u,e,t)=>e in u?Kjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,FH=(u,e)=>{for(var t in e||(e={}))ILe.call(e,t)&&$ge(u,t,e[t]);if(bM)for(var t of bM(e))OLe.call(e,t)&&$ge(u,t,e[t]);return u},Ujt=(u,e)=>Wjt(u,Gjt(e)),qjt=(u,e)=>{var t={};for(var n in u)ILe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&bM)for(var n of bM(u))e.indexOf(n)<0&&OLe.call(u,n)&&(t[n]=u[n]);return t};const Jjt={offLabel:"",onLabel:"",size:"sm",radius:"xl",error:!1},kM=C.forwardRef((u,e)=>{var t;const n=Je("Switch",Jjt,u),{className:i,color:r,label:a,offLabel:o,onLabel:s,id:l,style:c,size:d,radius:h,wrapperProps:E,children:g,unstyled:m,styles:f,classNames:p,thumbIcon:D,sx:x,checked:b,defaultChecked:k,onChange:_,labelPosition:y,description:S,error:B,disabled:L,variant:T}=n,N=qjt(n,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","thumbIcon","sx","checked","defaultChecked","onChange","labelPosition","description","error","disabled","variant"]),F=Ajt(),A=(F==null?void 0:F.size)||d,{classes:z,cx:P}=$jt({color:r,radius:h,labelPosition:y,error:!!B},{name:"Switch",classNames:p,styles:f,unstyled:m,size:A,variant:T}),{systemStyles:I,rest:j}=C4(N),V=Kl(l),H=F?{checked:F.value.includes(j.value),onChange:F.onChange}:{},[q,J]=cs({value:(t=H.checked)!=null?t:b,defaultValue:k,finalValue:!1});return M.createElement(QR,FH(FH({className:P(i,z.root),sx:x,style:c,id:V,size:(F==null?void 0:F.size)||d,labelPosition:y,label:a,description:S,error:B,disabled:L,__staticSelector:"Switch",classNames:p,styles:f,unstyled:m,"data-checked":H.checked||void 0,variant:T},I),E),M.createElement("input",Ujt(FH({},j),{disabled:L,checked:q,onChange:Q=>{F?H.onChange(Q):_==null||_(Q),J(Q.currentTarget.checked)},id:V,ref:e,type:"checkbox",className:z.input})),M.createElement("label",{htmlFor:V,className:z.track},M.createElement("div",{className:z.thumb},D),M.createElement("div",{className:z.trackLabel},q?s:o)))});kM.displayName="@mantine/core/Switch";kM.Group=RLe;const jJ={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[Zjt,Lue]=P1(jJ.context);var Yjt=Object.defineProperty,Kge=Object.getOwnPropertySymbols,Qjt=Object.prototype.hasOwnProperty,Xjt=Object.prototype.propertyIsEnumerable,Wge=(u,e,t)=>e in u?Yjt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,eVt=(u,e)=>{for(var t in e||(e={}))Qjt.call(e,t)&&Wge(u,t,e[t]);if(Kge)for(var t of Kge(e))Xjt.call(e,t)&&Wge(u,t,e[t]);return u};function tVt({orientation:u,inverted:e,placement:t},n,i){const r=u==="vertical";return i==="default"?{[r?t==="left"?"borderRight":"borderLeft":e?"borderTop":"borderBottom"]:`${W(2)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:i==="outline"?{[r?t==="left"?"borderRight":"borderLeft":e?"borderTop":"borderBottom"]:`${W(1)} solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:i==="pills"?{gap:`calc(${n.spacing.sm} / 2)`}:{}}var uVt=at((u,e,{variant:t})=>{const n=e.orientation==="vertical";return{tabsList:eVt({display:"flex",flexWrap:"wrap",flexDirection:n?"column":"row",justifyContent:cwe[e.position],'& [role="tab"]':{flex:e.grow?1:void 0}},tVt(e,u,t))}});const nVt=uVt;var iVt=Object.defineProperty,rVt=Object.defineProperties,aVt=Object.getOwnPropertyDescriptors,yM=Object.getOwnPropertySymbols,jLe=Object.prototype.hasOwnProperty,VLe=Object.prototype.propertyIsEnumerable,Gge=(u,e,t)=>e in u?iVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,oVt=(u,e)=>{for(var t in e||(e={}))jLe.call(e,t)&&Gge(u,t,e[t]);if(yM)for(var t of yM(e))VLe.call(e,t)&&Gge(u,t,e[t]);return u},sVt=(u,e)=>rVt(u,aVt(e)),lVt=(u,e)=>{var t={};for(var n in u)jLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&yM)for(var n of yM(u))e.indexOf(n)<0&&VLe.call(u,n)&&(t[n]=u[n]);return t};const cVt={grow:!1,position:"left"},HLe=C.forwardRef((u,e)=>{const t=Je("TabsList",cVt,u),{children:n,className:i,grow:r,position:a}=t,o=lVt(t,["children","className","grow","position"]),{orientation:s,variant:l,color:c,radius:d,inverted:h,placement:E,classNames:g,styles:m,unstyled:f}=Lue(),{classes:p,cx:D}=nVt({orientation:s,grow:r,color:c,position:a,radius:d,inverted:h,placement:E},{name:"Tabs",unstyled:f,classNames:g,styles:m,variant:l});return M.createElement(pt,sVt(oVt({},o),{className:D(p.tabsList,i),ref:e,role:"tablist","aria-orientation":s}),n)});HLe.displayName="@mantine/core/TabsList";var dVt=at((u,{orientation:e})=>({panel:{flex:e==="vertical"?1:void 0}}));const hVt=dVt;var EVt=Object.defineProperty,gVt=Object.defineProperties,mVt=Object.getOwnPropertyDescriptors,FM=Object.getOwnPropertySymbols,$Le=Object.prototype.hasOwnProperty,KLe=Object.prototype.propertyIsEnumerable,Uge=(u,e,t)=>e in u?EVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,fVt=(u,e)=>{for(var t in e||(e={}))$Le.call(e,t)&&Uge(u,t,e[t]);if(FM)for(var t of FM(e))KLe.call(e,t)&&Uge(u,t,e[t]);return u},pVt=(u,e)=>gVt(u,mVt(e)),DVt=(u,e)=>{var t={};for(var n in u)$Le.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&FM)for(var n of FM(u))e.indexOf(n)<0&&KLe.call(u,n)&&(t[n]=u[n]);return t};const xVt={},WLe=C.forwardRef((u,e)=>{const t=Je("TabsPanel",xVt,u),{value:n,children:i,sx:r,className:a}=t,o=DVt(t,["value","children","sx","className"]),s=Lue(),{classes:l,cx:c}=hVt({orientation:s.orientation,color:s.color,radius:s.radius,inverted:s.inverted,placement:s.placement},{name:"Tabs",unstyled:s.unstyled,classNames:s.classNames,styles:s.styles,variant:s.variant}),d=s.getPanelId(n),h=s.value===n,E=s.keepMounted||h?i:null;return C.useEffect(()=>(s.setMountedPanelIds(g=>[...g,d]),s.setMountedPanelIds(g=>g.filter(m=>m!==d))),[d]),M.createElement(pt,pVt(fVt({},o),{ref:e,sx:[{display:h?void 0:"none"},...BR(r)],className:c(l.panel,a),role:"tabpanel",id:d,"aria-labelledby":s.getTabId(n)}),E)});WLe.displayName="@mantine/core/TabsPanel";var vVt=Object.defineProperty,CVt=Object.defineProperties,bVt=Object.getOwnPropertyDescriptors,qge=Object.getOwnPropertySymbols,kVt=Object.prototype.hasOwnProperty,yVt=Object.prototype.propertyIsEnumerable,Jge=(u,e,t)=>e in u?vVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zx=(u,e)=>{for(var t in e||(e={}))kVt.call(e,t)&&Jge(u,t,e[t]);if(qge)for(var t of qge(e))yVt.call(e,t)&&Jge(u,t,e[t]);return u},Zge=(u,e)=>CVt(u,bVt(e));function FVt(u,{orientation:e,color:t,radius:n,inverted:i,placement:r},a){const o=e==="vertical",s=u.fn.variant({color:t,variant:"filled"}),l=W(u.fn.radius(n)),c=e==="vertical"?r==="left"?`${l} 0 0 ${l}`:` 0 ${l} ${l} 0`:i?`0 0 ${l} ${l}`:`${l} ${l} 0 0`;return a==="default"?Zge(zx({[o?r==="left"?"borderRight":"borderLeft":i?"borderTop":"borderBottom"]:`${W(2)} solid transparent`,[o?r==="left"?"marginRight":"marginLeft":i?"marginTop":"marginBottom"]:W(-2),borderRadius:c},u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0],borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3]})),{"&[data-active]":zx({borderColor:s.background,color:u.colorScheme==="dark"?u.white:u.black},u.fn.hover({borderColor:s.background}))}):a==="outline"?{borderRadius:c,border:`${W(1)} solid transparent`,[o?r==="left"?"borderRight":"borderLeft":i?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:u.colorScheme==="dark"?u.colors.dark[4]:u.colors.gray[3],"&::before":{content:'""',backgroundColor:u.colorScheme==="dark"?u.colors.dark[7]:u.white,position:"absolute",bottom:o?0:i?"unset":W(-1),top:o?0:i?W(-1):"unset",[o?"width":"height"]:W(1),right:o?r==="left"?W(-1):"unset":0,left:o?r==="left"?"unset":W(-1):0}}}:a==="pills"?Zge(zx({borderRadius:u.fn.radius(n)},u.fn.hover({backgroundColor:u.colorScheme==="dark"?u.colors.dark[6]:u.colors.gray[0]})),{"&[data-active]":zx({backgroundColor:s.background,color:u.white},u.fn.hover({backgroundColor:s.background}))}):{}}var AVt=at((u,e,{variant:t})=>({tabLabel:{},tab:zx({position:"relative",padding:`${u.spacing.xs} ${u.spacing.md}`,paddingLeft:e.withIcon?u.spacing.xs:void 0,paddingRight:e.withRightSection?u.spacing.xs:void 0,fontSize:u.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:e.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":zx({opacity:.5,cursor:"not-allowed"},u.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},FVt(u,e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:W(7)}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:W(7)}}}));const _Vt=AVt;var SVt=Object.defineProperty,BVt=Object.defineProperties,wVt=Object.getOwnPropertyDescriptors,AM=Object.getOwnPropertySymbols,GLe=Object.prototype.hasOwnProperty,ULe=Object.prototype.propertyIsEnumerable,Yge=(u,e,t)=>e in u?SVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,zVt=(u,e)=>{for(var t in e||(e={}))GLe.call(e,t)&&Yge(u,t,e[t]);if(AM)for(var t of AM(e))ULe.call(e,t)&&Yge(u,t,e[t]);return u},LVt=(u,e)=>BVt(u,wVt(e)),MVt=(u,e)=>{var t={};for(var n in u)GLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&AM)for(var n of AM(u))e.indexOf(n)<0&&ULe.call(u,n)&&(t[n]=u[n]);return t};const TVt={},qLe=C.forwardRef((u,e)=>{const t=Je("TabsTab",TVt,u),{value:n,children:i,onKeyDown:r,onClick:a,className:o,icon:s,rightSection:l,color:c}=t,d=MVt(t,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),h=Lue(),E=!!s,g=!!l,{theme:m,classes:f,cx:p}=_Vt({withIcon:E||g&&!i,withRightSection:g||E&&!i,orientation:h.orientation,color:c||h.color,radius:h.radius,inverted:h.inverted,placement:h.placement},{name:"Tabs",unstyled:h.unstyled,classNames:h.classNames,styles:h.styles,variant:h.variant}),D=n===h.value,x=h.getPanelId(n),b=h.mountedPanelIds.includes(n)?x:void 0,k=_=>{h.onTabChange(h.allowTabDeactivation&&n===h.value?null:n),a==null||a(_)};return M.createElement(b4,LVt(zVt({},d),{unstyled:h.unstyled,className:p(f.tab,o),"data-active":D||void 0,ref:e,type:"button",role:"tab",id:h.getTabId(n),"aria-selected":D,tabIndex:D||h.value===null?0:-1,"aria-controls":b,onClick:k,onKeyDown:Kte({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:h.activateTabWithKeyboard,loop:h.loop,dir:m.dir,orientation:h.orientation,onKeyDown:r})}),s&&M.createElement("span",{className:f.tabIcon},s),i&&M.createElement("span",{className:f.tabLabel},i),l&&M.createElement("span",{className:f.tabRightSection},l))});qLe.displayName="@mantine/core/Tab";function JLe({defaultValue:u,value:e,onTabChange:t,orientation:n,children:i,loop:r,id:a,activateTabWithKeyboard:o,allowTabDeactivation:s,variant:l,color:c,radius:d,inverted:h,placement:E,keepMounted:g=!0,classNames:m,styles:f,unstyled:p}){const D=Kl(a),[x,b]=C.useState([]),[k,_]=cs({value:e,defaultValue:u,finalValue:null,onChange:t});return M.createElement(Zjt,{value:{placement:E,value:k,orientation:n,id:D,loop:r,activateTabWithKeyboard:o,getTabId:nz(`${D}-tab`,jJ.value),getPanelId:nz(`${D}-panel`,jJ.value),onTabChange:_,setMountedPanelIds:b,mountedPanelIds:x,allowTabDeactivation:s,variant:l,color:c,radius:d,inverted:h,keepMounted:g,classNames:m,styles:f,unstyled:p}},i)}JLe.displayName="@mantine/core/TabsProvider";var PVt=at((u,{orientation:e,placement:t})=>({root:{display:e==="vertical"?"flex":void 0,flexDirection:t==="right"?"row-reverse":"row"}}));const NVt=PVt;var RVt=Object.defineProperty,IVt=Object.defineProperties,OVt=Object.getOwnPropertyDescriptors,_M=Object.getOwnPropertySymbols,ZLe=Object.prototype.hasOwnProperty,YLe=Object.prototype.propertyIsEnumerable,Qge=(u,e,t)=>e in u?RVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,jVt=(u,e)=>{for(var t in e||(e={}))ZLe.call(e,t)&&Qge(u,t,e[t]);if(_M)for(var t of _M(e))YLe.call(e,t)&&Qge(u,t,e[t]);return u},VVt=(u,e)=>IVt(u,OVt(e)),HVt=(u,e)=>{var t={};for(var n in u)ZLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&_M)for(var n of _M(u))e.indexOf(n)<0&&YLe.call(u,n)&&(t[n]=u[n]);return t};const $Vt={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},Ci=C.forwardRef((u,e)=>{const t=Je("Tabs",$Vt,u),{defaultValue:n,value:i,orientation:r,loop:a,activateTabWithKeyboard:o,allowTabDeactivation:s,children:l,id:c,onTabChange:d,variant:h,color:E,className:g,unstyled:m,classNames:f,styles:p,radius:D,inverted:x,keepMounted:b,placement:k}=t,_=HVt(t,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:y,cx:S}=NVt({orientation:r,color:E,radius:D,inverted:x,placement:k},{unstyled:m,name:"Tabs",classNames:f,styles:p,variant:h});return M.createElement(JLe,{activateTabWithKeyboard:o,defaultValue:n,orientation:r,onTabChange:d,value:i,id:c,loop:a,allowTabDeactivation:s,color:E,variant:h,radius:D,inverted:x,keepMounted:b,placement:k,classNames:f,styles:p,unstyled:m},M.createElement(pt,VVt(jVt({},_),{className:S(y.root,g),id:c,ref:e}),l))});Ci.List=HLe;Ci.Tab=qLe;Ci.Panel=WLe;Ci.displayName="@mantine/core/Tabs";var KVt=Object.defineProperty,WVt=Object.defineProperties,GVt=Object.getOwnPropertyDescriptors,Xge=Object.getOwnPropertySymbols,UVt=Object.prototype.hasOwnProperty,qVt=Object.prototype.propertyIsEnumerable,eme=(u,e,t)=>e in u?KVt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,JVt=(u,e)=>{for(var t in e||(e={}))UVt.call(e,t)&&eme(u,t,e[t]);if(Xge)for(var t of Xge(e))qVt.call(e,t)&&eme(u,t,e[t]);return u},ZVt=(u,e)=>WVt(u,GVt(e));function YVt(u,e,t){return typeof u<"u"?u in t.headings.sizes?t.headings.sizes[u].fontSize:W(u):t.headings.sizes[e].fontSize}function QVt(u,e,t){return typeof u<"u"&&u in t.headings.sizes?t.headings.sizes[u].lineHeight:t.headings.sizes[e].lineHeight}var XVt=at((u,{element:e,weight:t,inline:n},{size:i})=>({root:ZVt(JVt({},u.fn.fontStyles()),{fontFamily:u.headings.fontFamily,fontWeight:t||u.headings.sizes[e].fontWeight||u.headings.fontWeight,fontSize:YVt(i,e,u),lineHeight:n?1:QVt(i,e,u),margin:0})}));const eHt=XVt;var tHt=Object.defineProperty,SM=Object.getOwnPropertySymbols,QLe=Object.prototype.hasOwnProperty,XLe=Object.prototype.propertyIsEnumerable,tme=(u,e,t)=>e in u?tHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,uHt=(u,e)=>{for(var t in e||(e={}))QLe.call(e,t)&&tme(u,t,e[t]);if(SM)for(var t of SM(e))XLe.call(e,t)&&tme(u,t,e[t]);return u},nHt=(u,e)=>{var t={};for(var n in u)QLe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&SM)for(var n of SM(u))e.indexOf(n)<0&&XLe.call(u,n)&&(t[n]=u[n]);return t};const iHt={order:1},m0=C.forwardRef((u,e)=>{const t=Je("Title",iHt,u),{className:n,order:i,children:r,unstyled:a,size:o,weight:s,inline:l,variant:c}=t,d=nHt(t,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:h,cx:E}=eHt({element:`h${i}`,weight:s,inline:l},{name:"Title",unstyled:a,variant:c,size:o});return[1,2,3,4,5,6].includes(i)?M.createElement(Fu,uHt({variant:c,component:`h${i}`,ref:e,className:E(h.root,n)},d),r):null});m0.displayName="@mantine/core/Title";const Mue=C.createContext(null);Mue.displayName="@mantine/modals/ModalsContext";function rHt(){const u=C.useContext(Mue);if(!u)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return u}var aHt=Object.defineProperty,oHt=Object.defineProperties,sHt=Object.getOwnPropertyDescriptors,ume=Object.getOwnPropertySymbols,lHt=Object.prototype.hasOwnProperty,cHt=Object.prototype.propertyIsEnumerable,nme=(u,e,t)=>e in u?aHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,AH=(u,e)=>{for(var t in e||(e={}))lHt.call(e,t)&&nme(u,t,e[t]);if(ume)for(var t of ume(e))cHt.call(e,t)&&nme(u,t,e[t]);return u},ime=(u,e)=>oHt(u,sHt(e));function dHt({id:u,cancelProps:e,confirmProps:t,labels:n={cancel:"",confirm:""},closeOnConfirm:i=!0,closeOnCancel:r=!0,groupProps:a,onCancel:o,onConfirm:s,children:l}){const{cancel:c,confirm:d}=n,h=rHt(),E=m=>{typeof(e==null?void 0:e.onClick)=="function"&&(e==null||e.onClick(m)),typeof o=="function"&&o(),r&&h.closeModal(u)},g=m=>{typeof(t==null?void 0:t.onClick)=="function"&&(t==null||t.onClick(m)),typeof s=="function"&&s(),i&&h.closeModal(u)};return M.createElement(M.Fragment,null,l&&M.createElement(pt,{mb:"md"},l),M.createElement(_i,AH({position:"right"},a),M.createElement(hl,ime(AH({variant:"default"},e),{onClick:E}),(e==null?void 0:e.children)||c),M.createElement(hl,ime(AH({},t),{onClick:g}),(t==null?void 0:t.children)||d)))}function rme(u,e){var t,n,i,r;e&&u.type==="confirm"&&((n=(t=u.props).onCancel)==null||n.call(t)),(r=(i=u.props).onClose)==null||r.call(i)}function hHt(u,e){switch(e.type){case"OPEN":return{current:e.modal,modals:[...u.modals,e.modal]};case"CLOSE":{const t=u.modals.find(i=>i.id===e.modalId);if(!t)return u;rme(t,e.canceled);const n=u.modals.filter(i=>i.id!==e.modalId);return{current:n[n.length-1]||u.current,modals:n}}case"CLOSE_ALL":return u.modals.length?(u.modals.concat().reverse().forEach(t=>{rme(t,e.canceled)}),{current:u.current,modals:[]}):u;default:return u}}const[EHt,PA]=_7e("mantine-modals"),gHt=PA("openModal"),mHt=PA("closeModal"),fHt=PA("closeAllModals"),pHt=PA("openConfirmModal"),DHt=u=>PA("openContextModal")(u),Tue={open:gHt,close:mHt,closeAll:fHt,openConfirmModal:pHt,openContextModal:DHt};var xHt=Object.defineProperty,vHt=Object.defineProperties,CHt=Object.getOwnPropertyDescriptors,BM=Object.getOwnPropertySymbols,eMe=Object.prototype.hasOwnProperty,tMe=Object.prototype.propertyIsEnumerable,ame=(u,e,t)=>e in u?xHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,d8=(u,e)=>{for(var t in e||(e={}))eMe.call(e,t)&&ame(u,t,e[t]);if(BM)for(var t of BM(e))tMe.call(e,t)&&ame(u,t,e[t]);return u},ome=(u,e)=>vHt(u,CHt(e)),tf=(u,e)=>{var t={};for(var n in u)eMe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&BM)for(var n of BM(u))e.indexOf(n)<0&&tMe.call(u,n)&&(t[n]=u[n]);return t};function bHt(u){if(!u)return{confirmProps:{},modalProps:{}};const e=u,{id:t,children:n,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:s,confirmProps:l,groupProps:c,labels:d}=e,h=tf(e,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:t,children:n,onCancel:i,onConfirm:r,closeOnConfirm:a,closeOnCancel:o,cancelProps:s,confirmProps:l,groupProps:c,labels:d},modalProps:d8({id:t},h)}}function kHt({children:u,modalProps:e,labels:t,modals:n}){const[i,r]=C.useReducer(hHt,{modals:[],current:null}),a=C.useRef(i);a.current=i;const o=C.useCallback(f=>{r({type:"CLOSE_ALL",canceled:f})},[a,r]),s=C.useCallback(f=>{var p=f,{modalId:D}=p,x=tf(p,["modalId"]);const b=D||Wh();return r({type:"OPEN",modal:{id:b,type:"content",props:x}}),b},[r]),l=C.useCallback(f=>{var p=f,{modalId:D}=p,x=tf(p,["modalId"]);const b=D||Wh();return r({type:"OPEN",modal:{id:b,type:"confirm",props:x}}),b},[r]),c=C.useCallback((f,p)=>{var D=p,{modalId:x}=D,b=tf(D,["modalId"]);const k=x||Wh();return r({type:"OPEN",modal:{id:k,type:"context",props:b,ctx:f}}),k},[r]),d=C.useCallback((f,p)=>{r({type:"CLOSE",modalId:f,canceled:p})},[a,r]);EHt({openModal:s,openConfirmModal:l,openContextModal:f=>{var p=f,{modal:D}=p,x=tf(p,["modal"]);return c(D,x)},closeModal:d,closeContextModal:d,closeAllModals:o});const h={modals:i.modals,openModal:s,openConfirmModal:l,openContextModal:c,closeModal:d,closeContextModal:d,closeAll:o},E=()=>{const f=a.current.current;switch(f==null?void 0:f.type){case"context":{const p=f.props,{innerProps:D}=p,x=tf(p,["innerProps"]),b=n[f.ctx];return{modalProps:x,content:M.createElement(b,{innerProps:D,context:h,id:f.id})}}case"confirm":{const{modalProps:p,confirmProps:D}=bHt(f.props);return{modalProps:p,content:M.createElement(dHt,ome(d8({},D),{id:f.id,labels:f.props.labels||t}))}}case"content":{const p=f.props,{children:D}=p;return{modalProps:tf(p,["children"]),content:M.createElement(M.Fragment,null,D)}}default:return{modalProps:{},content:null}}},{modalProps:g,content:m}=E();return M.createElement(Mue.Provider,{value:h},M.createElement(ji,ome(d8(d8({zIndex:id("modal")+1},e),g),{opened:i.modals.length>0,onClose:()=>d(i.current.id)}),m),u)}function VJ(u,e){return VJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},VJ(u,e)}function uMe(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,VJ(u,e)}var nMe={exports:{}},yHt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FHt=yHt,AHt=FHt;function iMe(){}function rMe(){}rMe.resetWarningCache=iMe;var _Ht=function(){function u(n,i,r,a,o,s){if(s!==AHt){var l=new 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 l.name="Invariant Violation",l}}u.isRequired=u;function e(){return u}var t={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:e,element:u,elementType:u,instanceOf:e,node:u,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:rMe,resetWarningCache:iMe};return t.PropTypes=t,t};nMe.exports=_Ht();var SHt=nMe.exports;const Vm=Nl(SHt),sme={disabled:!1},wM=M.createContext(null);var vb="unmounted",uf="exited",nf="entering",HD="entered",HJ="exiting",A4=function(u){uMe(e,u);function e(n,i){var r;r=u.call(this,n,i)||this;var a=i,o=a&&!a.isMounting?n.enter:n.appear,s;return r.appearStatus=null,n.in?o?(s=uf,r.appearStatus=nf):s=HD:n.unmountOnExit||n.mountOnEnter?s=vb:s=uf,r.state={status:s},r.nextCallback=null,r}e.getDerivedStateFromProps=function(i,r){var a=i.in;return a&&r.status===vb?{status:uf}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(i){var r=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==nf&&a!==HD&&(r=nf):(a===nf||a===HD)&&(r=HJ)}this.updateStatus(!1,r)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var i=this.props.timeout,r,a,o;return r=a=o=i,i!=null&&typeof i!="number"&&(r=i.exit,a=i.enter,o=i.appear!==void 0?i.appear:a),{exit:r,enter:a,appear:o}},t.updateStatus=function(i,r){i===void 0&&(i=!1),r!==null?(this.cancelNextCallback(),r===nf?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===uf&&this.setState({status:vb})},t.performEnter=function(i){var r=this,a=this.props.enter,o=this.context?this.context.isMounting:i,s=this.props.nodeRef?[o]:[m5.findDOMNode(this),o],l=s[0],c=s[1],d=this.getTimeouts(),h=o?d.appear:d.enter;if(!i&&!a||sme.disabled){this.safeSetState({status:HD},function(){r.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:nf},function(){r.props.onEntering(l,c),r.onTransitionEnd(h,function(){r.safeSetState({status:HD},function(){r.props.onEntered(l,c)})})})},t.performExit=function(){var i=this,r=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:m5.findDOMNode(this);if(!r||sme.disabled){this.safeSetState({status:uf},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:HJ},function(){i.props.onExiting(o),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:uf},function(){i.props.onExited(o)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(i,r){r=this.setNextCallback(r),this.setState(i,r)},t.setNextCallback=function(i){var r=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,r.nextCallback=null,i(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(i,r){this.setNextCallback(r);var a=this.props.nodeRef?this.props.nodeRef.current:m5.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},t.render=function(){var i=this.state.status;if(i===vb)return null;var r=this.props,a=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var o=zwe(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(wM.Provider,{value:null},typeof a=="function"?a(i,o):M.cloneElement(M.Children.only(a),o))},e}(M.Component);A4.contextType=wM;A4.propTypes={};function AD(){}A4.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:AD,onEntering:AD,onEntered:AD,onExit:AD,onExiting:AD,onExited:AD};A4.UNMOUNTED=vb;A4.EXITED=uf;A4.ENTERING=nf;A4.ENTERED=HD;A4.EXITING=HJ;const BHt=A4;function wHt(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function Pue(u,e){var t=function(r){return e&&C.isValidElement(r)?e(r):r},n=Object.create(null);return u&&C.Children.map(u,function(i){return i}).forEach(function(i){n[i.key]=t(i)}),n}function zHt(u,e){u=u||{},e=e||{};function t(c){return c in e?e[c]:u[c]}var n=Object.create(null),i=[];for(var r in u)r in e?i.length&&(n[r]=i,i=[]):i.push(r);var a,o={};for(var s in e){if(n[s])for(a=0;ae in u?KHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,dme=(u,e)=>{for(var t in e||(e={}))WHt.call(e,t)&&cme(u,t,e[t]);if(lme)for(var t of lme(e))GHt.call(e,t)&&cme(u,t,e[t]);return u};const hme={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},UHt={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function qHt({state:u,maxHeight:e,positioning:t,transitionDuration:n}){const[i,r]=t,a=r==="center"?`${i}-center`:r,o={opacity:0,maxHeight:e,transform:hme[a],transitionDuration:`${n}ms, ${n}ms, ${n}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},s={opacity:1,transform:UHt[a]},l={opacity:0,maxHeight:0,transform:hme[a]},c={entering:s,entered:s,exiting:l,exited:l};return dme(dme({},o),c[u])}function JHt(u,e){return typeof e=="number"?e:e===!1||u===!1?!1:u}var ZHt=Object.defineProperty,YHt=Object.defineProperties,QHt=Object.getOwnPropertyDescriptors,zM=Object.getOwnPropertySymbols,aMe=Object.prototype.hasOwnProperty,oMe=Object.prototype.propertyIsEnumerable,Eme=(u,e,t)=>e in u?ZHt(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,gme=(u,e)=>{for(var t in e||(e={}))aMe.call(e,t)&&Eme(u,t,e[t]);if(zM)for(var t of zM(e))oMe.call(e,t)&&Eme(u,t,e[t]);return u},XHt=(u,e)=>YHt(u,QHt(e)),mme=(u,e)=>{var t={};for(var n in u)aMe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&zM)for(var n of zM(u))e.indexOf(n)<0&&oMe.call(u,n)&&(t[n]=u[n]);return t};function sMe(u){var e=u,{notification:t,autoClose:n,onHide:i,innerRef:r}=e,a=mme(e,["notification","autoClose","onHide","innerRef"]);const o=t,{autoClose:s,message:l}=o,c=mme(o,["autoClose","message"]),d=JHt(n,s),h=C.useRef(),E=()=>{i(t.id),window.clearTimeout(h.current)},g=()=>{clearTimeout(h.current)},m=()=>{typeof d=="number"&&(h.current=window.setTimeout(E,d))};return C.useEffect(()=>{typeof t.onOpen=="function"&&t.onOpen(t)},[]),C.useEffect(()=>(m(),g),[n,t.autoClose]),M.createElement(xze,XHt(gme(gme({},c),a),{onClose:E,onMouseEnter:g,onMouseLeave:m,ref:r}),l)}sMe.displayName="@mantine/notifications/NotificationContainer";var e$t=at((u,{zIndex:e})=>({notifications:{width:`calc(100% - ${u.spacing.md} * 2)`,boxSizing:"border-box",position:"fixed",zIndex:e},notification:{"&:not(:first-of-type)":{marginTop:u.spacing.sm}}}));const t$t=e$t;var u$t=Object.defineProperty,n$t=Object.defineProperties,i$t=Object.getOwnPropertyDescriptors,fme=Object.getOwnPropertySymbols,r$t=Object.prototype.hasOwnProperty,a$t=Object.prototype.propertyIsEnumerable,pme=(u,e,t)=>e in u?u$t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,o$t=(u,e)=>{for(var t in e||(e={}))r$t.call(e,t)&&pme(u,t,e[t]);if(fme)for(var t of fme(e))a$t.call(e,t)&&pme(u,t,e[t]);return u},s$t=(u,e)=>n$t(u,i$t(e));function l$t({limit:u}){const{state:e,queue:t,update:n,cleanQueue:i}=Z2t({initialValues:[],limit:u});return{notifications:e,queue:t,showNotification:l=>{const c=l.id||Wh();return n(d=>l.id&&d.some(h=>h.id===l.id)?d:[...d,s$t(o$t({},l),{id:c})]),c},updateNotification:l=>n(c=>{const d=c.findIndex(E=>E.id===l.id);if(d===-1)return c;const h=[...c];return h[d]=l,h}),hideNotification:l=>n(c=>c.filter(d=>d.id===l?(typeof d.onClose=="function"&&d.onClose(d),!1):!0)),cleanQueue:i,clean:()=>n(()=>[])}}var c$t=Object.defineProperty,LM=Object.getOwnPropertySymbols,lMe=Object.prototype.hasOwnProperty,cMe=Object.prototype.propertyIsEnumerable,Dme=(u,e,t)=>e in u?c$t(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,_H=(u,e)=>{for(var t in e||(e={}))lMe.call(e,t)&&Dme(u,t,e[t]);if(LM)for(var t of LM(e))cMe.call(e,t)&&Dme(u,t,e[t]);return u},d$t=(u,e)=>{var t={};for(var n in u)lMe.call(u,n)&&e.indexOf(n)<0&&(t[n]=u[n]);if(u!=null&&LM)for(var n of LM(u))e.indexOf(n)<0&&cMe.call(u,n)&&(t[n]=u[n]);return t};const h$t=["top-left","top-right","top-center","bottom-left","bottom-right","bottom-center"],$p=u=>{var e=u,{className:t,position:n="bottom-right",autoClose:i=4e3,transitionDuration:r=250,containerWidth:a=W(440),notificationMaxHeight:o=W(200),limit:s=5,zIndex:l=id("overlay"),style:c,children:d,target:h}=e,E=d$t(e,["className","position","autoClose","transitionDuration","containerWidth","notificationMaxHeight","limit","zIndex","style","children","target"]);const g=W2t(),m=C.useRef({}),f=C.useRef(0),{notifications:p,showNotification:D,updateNotification:x,hideNotification:b,clean:k,cleanQueue:_}=l$t({limit:s}),{classes:y,cx:S,theme:B}=t$t({zIndex:l}),L=AA(),N=(B.respectReducedMotion?L:!1)?1:r,F=(h$t.includes(n)?n:"bottom-right").split("-");Lo(()=>{p.length>f.current&&setTimeout(()=>g(),0),f.current=p.length},[p]),RHt({show:D,hide:b,update:x,clean:k,cleanQueue:_});const A=p.map(z=>M.createElement(BHt,{key:z.id,timeout:N,onEnter:()=>m.current[z.id].offsetHeight,nodeRef:{current:m.current[z.id]}},P=>M.createElement(sMe,{innerRef:I=>{m.current[z.id]=I},notification:z,onHide:b,className:y.notification,autoClose:i,sx:[_H({},qHt({state:P,positioning:F,transitionDuration:N,maxHeight:o})),...Array.isArray(z.sx)?z.sx:[z.sx]]})));return M.createElement(iue,{target:h},M.createElement(pt,_H({className:S(y.notifications,t),style:c,sx:_H({maxWidth:a},$Ht(F,B.spacing.md))},E),M.createElement(NHt,null,A)))};$p.displayName="@mantine/notifications/Notifications";$p.show=Yd.show;$p.hide=Yd.hide;$p.update=Yd.update;$p.clean=Yd.clean;$p.cleanQueue=Yd.cleanQueue;let Ko=[],Rue=(u,e)=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},l:e||0,lc:0,listen(i,r){return n.lc=t.push(i,r||n.l)/2,()=>{let a=t.indexOf(i);~a&&(t.splice(a,2),--n.lc||n.off())}},notify(i){let r=!Ko.length;for(let a=0;a(u.events=u.events||{},u.events[t+_9]||(u.events[t+_9]=n(i=>{u.events[t].reduceRight((r,a)=>(a(r),r),{shared:{},...i})})),u.events[t]=u.events[t]||[],u.events[t].push(e),()=>{let i=u.events[t],r=i.indexOf(e);i.splice(r,1),i.length||(delete u.events[t],u.events[t+_9](),delete u.events[t+_9])}),m$t=1e3,dMe=(u,e)=>g$t(u,n=>{let i=e(n);i&&u.events[A9].push(i)},E$t,n=>{let i=u.listen;u.listen=(...a)=>(!u.lc&&!u.active&&(u.active=!0,n()),i(...a));let r=u.off;return u.events[A9]=[],u.off=()=>{r(),setTimeout(()=>{if(u.active&&!u.lc){u.active=!1;for(let a of u.events[A9])a();u.events[A9]=[]}},m$t)},()=>{u.listen=i,u.off=r}});function f$t(u,e,t){let n=new Set([...e,void 0]);return u.listen((i,r)=>{n.has(r)&&t(i,r)})}let hMe=(u={})=>{let e=Rue(u);return e.setKey=function(t,n){typeof n>"u"?t in e.value&&(e.value={...e.value},delete e.value[t],e.notify(t)):e.value[t]!==n&&(e.value={...e.value,[t]:n},e.notify(t))},e};function z0(u,e={}){let t=C.useCallback(i=>e.keys?f$t(u,e.keys,i):u.listen(i),[e.keys,u]),n=u.get.bind(u);return C.useSyncExternalStore(t,n,n)}class vC{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ly=typeof window>"u"||"Deno"in window;function Y0(){}function p$t(u,e){return typeof u=="function"?u(e):u}function $J(u){return typeof u=="number"&&u>=0&&u!==1/0}function EMe(u,e){return Math.max(u+(e||0)-Date.now(),0)}function Cb(u,e,t){return RA(u)?typeof e=="function"?{...t,queryKey:u,queryFn:e}:{...e,queryKey:u}:u}function D$t(u,e,t){return RA(u)?typeof e=="function"?{...t,mutationKey:u,mutationFn:e}:{...e,mutationKey:u}:typeof u=="function"?{...e,mutationFn:u}:{...u}}function uE(u,e,t){return RA(u)?[{...e,queryKey:u},t]:[u||{},e]}function xme(u,e){const{type:t="all",exact:n,fetchStatus:i,predicate:r,queryKey:a,stale:o}=u;if(RA(a)){if(n){if(e.queryHash!==Iue(a,e.options))return!1}else if(!MM(e.queryKey,a))return!1}if(t!=="all"){const s=e.isActive();if(t==="active"&&!s||t==="inactive"&&s)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof i<"u"&&i!==e.state.fetchStatus||r&&!r(e))}function vme(u,e){const{exact:t,fetching:n,predicate:i,mutationKey:r}=u;if(RA(r)){if(!e.options.mutationKey)return!1;if(t){if(Rf(e.options.mutationKey)!==Rf(r))return!1}else if(!MM(e.options.mutationKey,r))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||i&&!i(e))}function Iue(u,e){return((e==null?void 0:e.queryKeyHashFn)||Rf)(u)}function Rf(u){return JSON.stringify(u,(e,t)=>KJ(t)?Object.keys(t).sort().reduce((n,i)=>(n[i]=t[i],n),{}):t)}function MM(u,e){return gMe(u,e)}function gMe(u,e){return u===e?!0:typeof u!=typeof e?!1:u&&e&&typeof u=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!gMe(u[t],e[t])):!1}function mMe(u,e){if(u===e)return u;const t=Cme(u)&&Cme(e);if(t||KJ(u)&&KJ(e)){const n=t?u.length:Object.keys(u).length,i=t?e:Object.keys(e),r=i.length,a=t?[]:{};let o=0;for(let s=0;s"u")return!0;const t=e.prototype;return!(!bme(t)||!t.hasOwnProperty("isPrototypeOf"))}function bme(u){return Object.prototype.toString.call(u)==="[object Object]"}function RA(u){return Array.isArray(u)}function fMe(u){return new Promise(e=>{setTimeout(e,u)})}function kme(u){fMe(0).then(u)}function x$t(){if(typeof AbortController=="function")return new AbortController}function WJ(u,e,t){return t.isDataEqual!=null&&t.isDataEqual(u,e)?u:typeof t.structuralSharing=="function"?t.structuralSharing(u,e):t.structuralSharing!==!1?mMe(u,e):e}class v$t extends vC{constructor(){super(),this.setup=e=>{if(!Ly&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const PM=new v$t,yme=["online","offline"];class C$t extends vC{constructor(){super(),this.setup=e=>{if(!Ly&&window.addEventListener){const t=()=>e();return yme.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{yme.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const NM=new C$t;function b$t(u){return Math.min(1e3*2**u,3e4)}function iI(u){return(u??"online")==="online"?NM.isOnline():!0}class pMe{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function h8(u){return u instanceof pMe}function DMe(u){let e=!1,t=0,n=!1,i,r,a;const o=new Promise((f,p)=>{r=f,a=p}),s=f=>{n||(E(new pMe(f)),u.abort==null||u.abort())},l=()=>{e=!0},c=()=>{e=!1},d=()=>!PM.isFocused()||u.networkMode!=="always"&&!NM.isOnline(),h=f=>{n||(n=!0,u.onSuccess==null||u.onSuccess(f),i==null||i(),r(f))},E=f=>{n||(n=!0,u.onError==null||u.onError(f),i==null||i(),a(f))},g=()=>new Promise(f=>{i=p=>{const D=n||!d();return D&&f(p),D},u.onPause==null||u.onPause()}).then(()=>{i=void 0,n||u.onContinue==null||u.onContinue()}),m=()=>{if(n)return;let f;try{f=u.fn()}catch(p){f=Promise.reject(p)}Promise.resolve(f).then(h).catch(p=>{var D,x;if(n)return;const b=(D=u.retry)!=null?D:3,k=(x=u.retryDelay)!=null?x:b$t,_=typeof k=="function"?k(t,p):k,y=b===!0||typeof b=="number"&&t{if(d())return g()}).then(()=>{e?E(p):m()})})};return iI(u.networkMode)?m():g().then(m),{promise:o,cancel:s,continue:()=>(i==null?void 0:i())?o:Promise.resolve(),cancelRetry:l,continueRetry:c}}const Oue=console;function k$t(){let u=[],e=0,t=c=>{c()},n=c=>{c()};const i=c=>{let d;e++;try{d=c()}finally{e--,e||o()}return d},r=c=>{e?u.push(c):kme(()=>{t(c)})},a=c=>(...d)=>{r(()=>{c(...d)})},o=()=>{const c=u;u=[],c.length&&kme(()=>{n(()=>{c.forEach(d=>{t(d)})})})};return{batch:i,batchCalls:a,schedule:r,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{n=c}}}const hr=k$t();class xMe{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$J(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Ly?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class y$t extends xMe{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Oue,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||F$t(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=WJ(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(Y0).catch(Y0):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!EMe(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return(r=this.retryer)==null||r.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const E=this.observers.find(g=>g.options.queryFn);E&&this.setOptions(E.options)}Array.isArray(this.options.queryKey);const a=x$t(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(s(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=E=>{if(h8(E)&&E.silent||this.dispatch({type:"error",error:E}),!h8(E)){var g,m,f,p;(g=(m=this.cache.config).onError)==null||g.call(m,E,this),(f=(p=this.cache.config).onSettled)==null||f.call(p,this.state.data,E,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=DMe({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:E=>{var g,m,f,p;if(typeof E>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(E),(g=(m=this.cache.config).onSuccess)==null||g.call(m,E,this),(f=(p=this.cache.config).onSettled)==null||f.call(p,E,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(E,g)=>{this.dispatch({type:"failed",failureCount:E,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var i,r;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:iI(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(r=e.dataUpdatedAt)!=null?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return h8(a)&&a.revert&&this.revertState?{...this.revertState}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function F$t(u){const e=typeof u.initialData=="function"?u.initialData():u.initialData,t=typeof e<"u",n=t?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class A$t extends vC{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;const r=t.queryKey,a=(i=t.queryHash)!=null?i:Iue(r,t);let o=this.get(a);return o||(o=new y$t({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){hr.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=uE(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>xme(n,i))}findAll(e,t){const[n]=uE(e,t);return Object.keys(n).length>0?this.queries.filter(i=>xme(n,i)):this.queries}notify(e){hr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){hr.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){hr.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class _$t extends xMe{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Oue,this.observers=[],this.state=e.state||vMe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var y;return this.retryer=DMe({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(S,B)=>{this.dispatch({type:"failed",failureCount:S,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(y=this.options.retry)!=null?y:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,i,r,a,o,s,l,c;if(!t){var d,h,E,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const S=await((E=(g=this.options).onMutate)==null?void 0:E.call(g,this.state.variables));S!==this.state.context&&this.dispatch({type:"loading",context:S,variables:this.state.variables})}const y=await e();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,y,this.state.variables,this.state.context,this)),await((r=(a=this.options).onSuccess)==null?void 0:r.call(a,y,this.state.variables,this.state.context)),await((o=(s=this.mutationCache.config).onSettled)==null?void 0:o.call(s,y,null,this.state.variables,this.state.context,this)),await((l=(c=this.options).onSettled)==null?void 0:l.call(c,y,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:y}),y}catch(y){try{var m,f,p,D,x,b,k,_;throw await((m=(f=this.mutationCache.config).onError)==null?void 0:m.call(f,y,this.state.variables,this.state.context,this)),await((p=(D=this.options).onError)==null?void 0:p.call(D,y,this.state.variables,this.state.context)),await((x=(b=this.mutationCache.config).onSettled)==null?void 0:x.call(b,void 0,y,this.state.variables,this.state.context,this)),await((k=(_=this.options).onSettled)==null?void 0:k.call(_,void 0,y,this.state.variables,this.state.context)),y}finally{this.dispatch({type:"error",error:y})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!iI(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),hr.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function vMe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class S$t extends vC{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const i=new _$t({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){hr.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>vme(e,t))}findAll(e){return this.mutations.filter(t=>vme(e,t))}notify(e){hr.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return hr.batch(()=>t.reduce((n,i)=>n.then(()=>i.continue().catch(Y0)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function B$t(){return{onFetch:u=>{u.fetchFn=()=>{var e,t,n,i,r,a;const o=(e=u.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,s=(n=u.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,l=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",h=((r=u.state.data)==null?void 0:r.pages)||[],E=((a=u.state.data)==null?void 0:a.pageParams)||[];let g=E,m=!1;const f=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>{var y;if((y=u.signal)!=null&&y.aborted)m=!0;else{var S;(S=u.signal)==null||S.addEventListener("abort",()=>{m=!0})}return u.signal}})},p=u.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+u.options.queryHash+"'")),D=(_,y,S,B)=>(g=B?[y,...g]:[...g,y],B?[S,..._]:[..._,S]),x=(_,y,S,B)=>{if(m)return Promise.reject("Cancelled");if(typeof S>"u"&&!y&&_.length)return Promise.resolve(_);const L={queryKey:u.queryKey,pageParam:S,meta:u.options.meta};f(L);const T=p(L);return Promise.resolve(T).then(F=>D(_,S,F,B))};let b;if(!h.length)b=x([]);else if(c){const _=typeof l<"u",y=_?l:Fme(u.options,h);b=x(h,_,y)}else if(d){const _=typeof l<"u",y=_?l:w$t(u.options,h);b=x(h,_,y,!0)}else{g=[];const _=typeof u.options.getNextPageParam>"u";b=(o&&h[0]?o(h[0],0,h):!0)?x([],_,E[0]):Promise.resolve(D([],E[0],h[0]));for(let S=1;S{if(o&&h[S]?o(h[S],S,h):!0){const T=_?E[S]:Fme(u.options,B);return x(B,_,T)}return Promise.resolve(D(B,E[S],h[S]))})}return b.then(_=>({pages:_,pageParams:g}))}}}}function Fme(u,e){return u.getNextPageParam==null?void 0:u.getNextPageParam(e[e.length-1],e)}function w$t(u,e){return u.getPreviousPageParam==null?void 0:u.getPreviousPageParam(e[0],e)}class z$t{constructor(e={}){this.queryCache=e.queryCache||new A$t,this.mutationCache=e.mutationCache||new S$t,this.logger=e.logger||Oue,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=PM.subscribe(()=>{PM.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=NM.subscribe(()=>{NM.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=uE(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const i=Cb(e,t,n),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.queryCache.find(e),r=i==null?void 0:i.state.data,a=p$t(t,r);if(typeof a>"u")return;const o=Cb(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return hr.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=uE(e,t),i=this.queryCache;hr.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(e,t,n){const[i,r]=uE(e,t,n),a=this.queryCache,o={type:"active",...i};return hr.batch(()=>(a.findAll(i).forEach(s=>{s.reset()}),this.refetchQueries(o,r)))}cancelQueries(e,t,n){const[i,r={}]=uE(e,t,n);typeof r.revert>"u"&&(r.revert=!0);const a=hr.batch(()=>this.queryCache.findAll(i).map(o=>o.cancel(r)));return Promise.all(a).then(Y0).catch(Y0)}invalidateQueries(e,t,n){const[i,r]=uE(e,t,n);return hr.batch(()=>{var a,o;if(this.queryCache.findAll(i).forEach(l=>{l.invalidate()}),i.refetchType==="none")return Promise.resolve();const s={...i,type:(a=(o=i.refetchType)!=null?o:i.type)!=null?a:"active"};return this.refetchQueries(s,r)})}refetchQueries(e,t,n){const[i,r]=uE(e,t,n),a=hr.batch(()=>this.queryCache.findAll(i).filter(s=>!s.isDisabled()).map(s=>{var l;return s.fetch(void 0,{...r,cancelRefetch:(l=r==null?void 0:r.cancelRefetch)!=null?l:!0,meta:{refetchPage:i.refetchPage}})}));let o=Promise.all(a).then(Y0);return r!=null&&r.throwOnError||(o=o.catch(Y0)),o}fetchQuery(e,t,n){const i=Cb(e,t,n),r=this.defaultQueryOptions(i);typeof r.retry>"u"&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Y0).catch(Y0)}fetchInfiniteQuery(e,t,n){const i=Cb(e,t,n);return i.behavior=B$t(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Y0).catch(Y0)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(i=>Rf(e)===Rf(i.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>MM(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(i=>Rf(e)===Rf(i.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>MM(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Iue(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class L$t extends vC{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Ame(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return GJ(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return GJ(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),TM(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&_me(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),r&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return T$t(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Y0)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ly||this.currentResult.isStale||!$J(this.options.staleTime))return;const t=EMe(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Ly||this.options.enabled===!1||!$J(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||PM.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,i=this.options,r=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=e;let{dataUpdatedAt:h,error:E,errorUpdatedAt:g,fetchStatus:m,status:f}=d,p=!1,D=!1,x;if(t._optimisticResults){const S=this.hasListeners(),B=!S&&Ame(e,t),L=S&&_me(e,n,t,i);(B||L)&&(m=iI(e.options.networkMode)?"fetching":"paused",h||(f="loading")),t._optimisticResults==="isRestoring"&&(m="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&f!=="error")x=c.data,h=c.dataUpdatedAt,f=c.status,p=!0;else if(t.select&&typeof d.data<"u")if(r&&d.data===(a==null?void 0:a.data)&&t.select===this.selectFn)x=this.selectResult;else try{this.selectFn=t.select,x=t.select(d.data),x=WJ(r==null?void 0:r.data,x,t),this.selectResult=x,this.selectError=null}catch(S){this.selectError=S}else x=d.data;if(typeof t.placeholderData<"u"&&typeof x>"u"&&f==="loading"){let S;if(r!=null&&r.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))S=r.data;else if(S=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof S<"u")try{S=t.select(S),this.selectError=null}catch(B){this.selectError=B}typeof S<"u"&&(f="success",x=WJ(r==null?void 0:r.data,S,t),D=!0)}this.selectError&&(E=this.selectError,x=this.selectResult,g=Date.now(),f="error");const b=m==="fetching",k=f==="loading",_=f==="error";return{status:f,fetchStatus:m,isLoading:k,isSuccess:f==="success",isError:_,isInitialLoading:k&&b,data:x,dataUpdatedAt:h,error:E,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:_&&d.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:D,isPreviousData:p,isRefetchError:_&&d.dataUpdatedAt!==0,isStale:jue(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,TM(n,t))return;this.currentResult=n;const i={cache:!0},r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const c=l;return this.currentResult[c]!==t[c]&&s.has(c)})};(e==null?void 0:e.listeners)!==!1&&r()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!h8(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){hr.batch(()=>{if(e.onSuccess){var t,n,i,r;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(i=(r=this.options).onSettled)==null||i.call(r,this.currentResult.data,null)}else if(e.onError){var a,o,s,l;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(s=(l=this.options).onSettled)==null||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function M$t(u,e){return e.enabled!==!1&&!u.state.dataUpdatedAt&&!(u.state.status==="error"&&e.retryOnMount===!1)}function Ame(u,e){return M$t(u,e)||u.state.dataUpdatedAt>0&&GJ(u,e,e.refetchOnMount)}function GJ(u,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(u):t;return n==="always"||n!==!1&&jue(u,e)}return!1}function _me(u,e,t,n){return t.enabled!==!1&&(u!==e||n.enabled===!1)&&(!t.suspense||u.state.status!=="error")&&jue(u,t)}function jue(u,e){return u.isStaleByTime(e.staleTime)}function T$t(u,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!TM(u.getCurrentResult(),e)}let P$t=class extends vC{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),TM(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:vMe(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){hr.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,i,r;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(r=this.mutateOptions).onSettled)==null||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var a,o,s,l;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(l=this.mutateOptions).onSettled)==null||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var CMe={exports:{}},bMe={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -1073,7 +1073,7 @@ ${c}`)}yield yield Dh(l.map(c=>c.body))}}catch(l){i={error:l}}finally{try{s&&!s. `));let d=l.props,h=typeof(d==null?void 0:d.className)=="function"?(...g)=>aDe(d==null?void 0:d.className(...g),o.className):aDe(d==null?void 0:d.className,o.className),E=h?{className:h}:{};return C.cloneElement(l,Object.assign({},TRe(l.props,qZ(E$(o,["ref"]))),c,s,jPu(l.ref,s.ref),E))}return C.createElement(i,Object.assign({},E$(o,["ref"]),i!==C.Fragment&&s,i!==C.Fragment&&c),l)}function jPu(...u){return{ref:u.every(e=>e==null)?void 0:e=>{for(let t of u)t!=null&&(typeof t=="function"?t(e):t.current=e)}}}function TRe(...u){if(u.length===0)return{};if(u.length===1)return u[0];let e={},t={};for(let n of u)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(t[i]!=null||(t[i]=[]),t[i].push(n[i])):e[i]=n[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(n=>[n,void 0])));for(let n in t)Object.assign(e,{[n](i,...r){let a=t[n];for(let o of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;o(i,...r)}}});return e}function Zp(u){var e;return Object.assign(C.forwardRef(u),{displayName:(e=u.displayName)!=null?e:u.name})}function qZ(u){let e=Object.assign({},u);for(let t in e)e[t]===void 0&&delete e[t];return e}function E$(u,e=[]){let t=Object.assign({},u);for(let n of e)n in t&&delete t[n];return t}function VPu(u){let e=u.parentElement,t=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(t=e),e=e.parentElement;let n=(e==null?void 0:e.getAttribute("disabled"))==="";return n&&HPu(t)?!1:n}function HPu(u){if(!u)return!1;let e=u.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}function PRe(u={},e=null,t=[]){for(let[n,i]of Object.entries(u))RRe(t,NRe(e,n),i);return t}function NRe(u,e){return u?u+"["+e+"]":e}function RRe(u,e,t){if(Array.isArray(t))for(let[n,i]of t.entries())RRe(u,NRe(e,n.toString()),i);else t instanceof Date?u.push([e,t.toISOString()]):typeof t=="boolean"?u.push([e,t?"1":"0"]):typeof t=="string"?u.push([e,t]):typeof t=="number"?u.push([e,`${t}`]):t==null?u.push([e,""]):PRe(t,e,u)}let $Pu="div";var IRe=(u=>(u[u.None=1]="None",u[u.Focusable=2]="Focusable",u[u.Hidden=4]="Hidden",u))(IRe||{});function KPu(u,e){let{features:t=1,...n}=u,i={ref:e,"aria-hidden":(t&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(t&4)===4&&(t&2)!==2&&{display:"none"}}};return Jp({ourProps:i,theirProps:n,slot:{},defaultTag:$Pu,name:"Hidden"})}let WPu=Zp(KPu),Wne=C.createContext(null);Wne.displayName="OpenClosedContext";var cF=(u=>(u[u.Open=1]="Open",u[u.Closed=2]="Closed",u[u.Closing=4]="Closing",u[u.Opening=8]="Opening",u))(cF||{});function GPu(){return C.useContext(Wne)}function UPu({value:u,children:e}){return M.createElement(Wne.Provider,{value:u},e)}var i0=(u=>(u.Space=" ",u.Enter="Enter",u.Escape="Escape",u.Backspace="Backspace",u.Delete="Delete",u.ArrowLeft="ArrowLeft",u.ArrowUp="ArrowUp",u.ArrowRight="ArrowRight",u.ArrowDown="ArrowDown",u.Home="Home",u.End="End",u.PageUp="PageUp",u.PageDown="PageDown",u.Tab="Tab",u))(i0||{});function qPu(u,e,t){let[n,i]=C.useState(t),r=u!==void 0,a=C.useRef(r),o=C.useRef(!1),s=C.useRef(!1);return r&&!a.current&&!o.current?(o.current=!0,a.current=r,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!r&&a.current&&!s.current&&(s.current=!0,a.current=r,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[r?u:n,gi(l=>(r||i(l),e==null?void 0:e(l)))]}function oDe(u,e){let t=C.useRef([]),n=gi(u);C.useEffect(()=>{let i=[...t.current];for(let[r,a]of e.entries())if(t.current[r]!==a){let o=n(e,i);return t.current=e,o}},[n,...e])}function sDe(u){return[u.screenX,u.screenY]}function JPu(){let u=C.useRef([-1,-1]);return{wasMoved(e){let t=sDe(e);return u.current[0]===t[0]&&u.current[1]===t[1]?!1:(u.current=t,!0)},update(e){u.current=sDe(e)}}}function ZPu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function YPu(){return/Android/gi.test(window.navigator.userAgent)}function QPu(){return ZPu()||YPu()}function XPu(...u){return C.useMemo(()=>Kne(...u),[...u])}var eNu=(u=>(u[u.Open=0]="Open",u[u.Closed=1]="Closed",u))(eNu||{}),tNu=(u=>(u[u.Single=0]="Single",u[u.Multi=1]="Multi",u))(tNu||{}),uNu=(u=>(u[u.Pointer=0]="Pointer",u[u.Other=1]="Other",u))(uNu||{}),nNu=(u=>(u[u.OpenCombobox=0]="OpenCombobox",u[u.CloseCombobox=1]="CloseCombobox",u[u.GoToOption=2]="GoToOption",u[u.RegisterOption=3]="RegisterOption",u[u.UnregisterOption=4]="UnregisterOption",u[u.RegisterLabel=5]="RegisterLabel",u))(nNu||{});function g$(u,e=t=>t){let t=u.activeOptionIndex!==null?u.options[u.activeOptionIndex]:null,n=zPu(e(u.options.slice()),r=>r.dataRef.current.domRef.current),i=t?n.indexOf(t):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let iNu={1(u){var e;return(e=u.dataRef.current)!=null&&e.disabled||u.comboboxState===1?u:{...u,activeOptionIndex:null,comboboxState:1}},0(u){var e;if((e=u.dataRef.current)!=null&&e.disabled||u.comboboxState===0)return u;let t=u.activeOptionIndex;if(u.dataRef.current){let{isSelected:n}=u.dataRef.current,i=u.options.findIndex(r=>n(r.dataRef.current.value));i!==-1&&(t=i)}return{...u,comboboxState:0,activeOptionIndex:t}},2(u,e){var t,n,i,r;if((t=u.dataRef.current)!=null&&t.disabled||(n=u.dataRef.current)!=null&&n.optionsRef.current&&!((i=u.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&u.comboboxState===1)return u;let a=g$(u);if(a.activeOptionIndex===null){let s=a.options.findIndex(l=>!l.dataRef.current.disabled);s!==-1&&(a.activeOptionIndex=s)}let o=IPu(e,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled});return{...u,...a,activeOptionIndex:o,activationTrigger:(r=e.trigger)!=null?r:1}},3:(u,e)=>{var t,n;let i={id:e.id,dataRef:e.dataRef},r=g$(u,o=>[...o,i]);u.activeOptionIndex===null&&(t=u.dataRef.current)!=null&&t.isSelected(e.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(i));let a={...u,...r,activationTrigger:1};return(n=u.dataRef.current)!=null&&n.__demoMode&&u.dataRef.current.value===void 0&&(a.activeOptionIndex=0),a},4:(u,e)=>{let t=g$(u,n=>{let i=n.findIndex(r=>r.id===e.id);return i!==-1&&n.splice(i,1),n});return{...u,...t,activationTrigger:1}},5:(u,e)=>({...u,labelId:e.id})},Gne=C.createContext(null);Gne.displayName="ComboboxActionsContext";function XA(u){let e=C.useContext(Gne);if(e===null){let t=new Error(`<${u} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,XA),t}return e}let Une=C.createContext(null);Une.displayName="ComboboxDataContext";function wC(u){let e=C.useContext(Une);if(e===null){let t=new Error(`<${u} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wC),t}return e}function rNu(u,e){return qh(e.type,iNu,u,e)}let aNu=C.Fragment;function oNu(u,e){let{value:t,defaultValue:n,onChange:i,form:r,name:a,by:o=(X,Y)=>X===Y,disabled:s=!1,__demoMode:l=!1,nullable:c=!1,multiple:d=!1,...h}=u,[E=d?[]:void 0,g]=qPu(t,i,n),[m,f]=C.useReducer(rNu,{dataRef:C.createRef(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),p=C.useRef(!1),D=C.useRef({static:!1,hold:!1}),x=C.useRef(null),b=C.useRef(null),k=C.useRef(null),_=C.useRef(null),y=gi(typeof o=="string"?(X,Y)=>{let le=o;return(X==null?void 0:X[le])===(Y==null?void 0:Y[le])}:o),S=C.useCallback(X=>qh(B.mode,{1:()=>E.some(Y=>y(Y,X)),0:()=>y(E,X)}),[E]),B=C.useMemo(()=>({...m,optionsPropsRef:D,labelRef:x,inputRef:b,buttonRef:k,optionsRef:_,value:E,defaultValue:n,disabled:s,mode:d?1:0,get activeOptionIndex(){if(p.current&&m.activeOptionIndex===null&&m.options.length>0){let X=m.options.findIndex(Y=>!Y.dataRef.current.disabled);if(X!==-1)return X}return m.activeOptionIndex},compare:y,isSelected:S,nullable:c,__demoMode:l}),[E,n,s,d,c,l,m]),L=C.useRef(B.activeOptionIndex!==null?B.options[B.activeOptionIndex]:null);C.useEffect(()=>{let X=B.activeOptionIndex!==null?B.options[B.activeOptionIndex]:null;L.current!==X&&(L.current=X)}),y0(()=>{m.dataRef.current=B},[B]),MPu([B.buttonRef,B.inputRef,B.optionsRef],()=>H.closeCombobox(),B.comboboxState===0);let T=C.useMemo(()=>({open:B.comboboxState===0,disabled:s,activeIndex:B.activeOptionIndex,activeOption:B.activeOptionIndex===null?null:B.options[B.activeOptionIndex].dataRef.current.value,value:E}),[B,s,E]),N=gi(X=>{let Y=B.options.find(le=>le.id===X);Y&&V(Y.dataRef.current.value)}),F=gi(()=>{if(B.activeOptionIndex!==null){let{dataRef:X,id:Y}=B.options[B.activeOptionIndex];V(X.current.value),H.goToOption(Ua.Specific,Y)}}),A=gi(()=>{f({type:0}),p.current=!0}),z=gi(()=>{f({type:1}),p.current=!1}),P=gi((X,Y,le)=>(p.current=!1,X===Ua.Specific?f({type:2,focus:Ua.Specific,id:Y,trigger:le}):f({type:2,focus:X,trigger:le}))),I=gi((X,Y)=>(f({type:3,id:X,dataRef:Y}),()=>{var le;((le=L.current)==null?void 0:le.id)===X&&(p.current=!0),f({type:4,id:X})})),j=gi(X=>(f({type:5,id:X}),()=>f({type:5,id:null}))),V=gi(X=>qh(B.mode,{0(){return g==null?void 0:g(X)},1(){let Y=B.value.slice(),le=Y.findIndex(he=>y(he,X));return le===-1?Y.push(X):Y.splice(le,1),g==null?void 0:g(Y)}})),H=C.useMemo(()=>({onChange:V,registerOption:I,registerLabel:j,goToOption:P,closeCombobox:z,openCombobox:A,selectActiveOption:F,selectOption:N}),[]),q=e===null?{}:{ref:e},J=C.useRef(null),Q=$ne();return C.useEffect(()=>{J.current&&n!==void 0&&Q.addEventListener(J.current,"reset",()=>{g==null||g(n)})},[J,g]),M.createElement(Gne.Provider,{value:H},M.createElement(Une.Provider,{value:B},M.createElement(UPu,{value:qh(B.comboboxState,{0:cF.Open,1:cF.Closed})},a!=null&&E!=null&&PRe({[a]:E}).map(([X,Y],le)=>M.createElement(WPu,{features:IRe.Hidden,ref:le===0?he=>{var ze;J.current=(ze=he==null?void 0:he.closest("form"))!=null?ze:null}:void 0,...qZ({key:X,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,name:X,value:Y})})),Jp({ourProps:q,theirProps:h,slot:T,defaultTag:aNu,name:"Combobox"}))))}let sNu="input";function lNu(u,e){var t,n,i,r;let a=YA(),{id:o=`headlessui-combobox-input-${a}`,onChange:s,displayValue:l,type:c="text",...d}=u,h=wC("Combobox.Input"),E=XA("Combobox.Input"),g=QA(h.inputRef,e),m=XPu(h.inputRef),f=C.useRef(!1),p=$ne(),D=gi(()=>{E.onChange(null),h.optionsRef.current&&(h.optionsRef.current.scrollTop=0),E.goToOption(Ua.Nothing)}),x=function(){var F;return typeof l=="function"&&h.value!==void 0?(F=l(h.value))!=null?F:"":typeof h.value=="string"?h.value:""}();oDe(([F,A],[z,P])=>{if(f.current)return;let I=h.inputRef.current;I&&((P===0&&A===1||F!==z)&&(I.value=F),requestAnimationFrame(()=>{if(f.current||!I||(m==null?void 0:m.activeElement)!==I)return;let{selectionStart:j,selectionEnd:V}=I;Math.abs((V??0)-(j??0))===0&&j===0&&I.setSelectionRange(I.value.length,I.value.length)}))},[x,h.comboboxState,m]),oDe(([F],[A])=>{if(F===0&&A===1){if(f.current)return;let z=h.inputRef.current;if(!z)return;let P=z.value,{selectionStart:I,selectionEnd:j,selectionDirection:V}=z;z.value="",z.value=P,V!==null?z.setSelectionRange(I,j,V):z.setSelectionRange(I,j)}},[h.comboboxState]);let b=C.useRef(!1),k=gi(()=>{b.current=!0}),_=gi(()=>{p.nextFrame(()=>{b.current=!1})}),y=gi(F=>{switch(f.current=!0,F.key){case i0.Enter:if(f.current=!1,h.comboboxState!==0||b.current)return;if(F.preventDefault(),F.stopPropagation(),h.activeOptionIndex===null){E.closeCombobox();return}E.selectActiveOption(),h.mode===0&&E.closeCombobox();break;case i0.ArrowDown:return f.current=!1,F.preventDefault(),F.stopPropagation(),qh(h.comboboxState,{0:()=>{E.goToOption(Ua.Next)},1:()=>{E.openCombobox()}});case i0.ArrowUp:return f.current=!1,F.preventDefault(),F.stopPropagation(),qh(h.comboboxState,{0:()=>{E.goToOption(Ua.Previous)},1:()=>{E.openCombobox(),p.nextFrame(()=>{h.value||E.goToOption(Ua.Last)})}});case i0.Home:if(F.shiftKey)break;return f.current=!1,F.preventDefault(),F.stopPropagation(),E.goToOption(Ua.First);case i0.PageUp:return f.current=!1,F.preventDefault(),F.stopPropagation(),E.goToOption(Ua.First);case i0.End:if(F.shiftKey)break;return f.current=!1,F.preventDefault(),F.stopPropagation(),E.goToOption(Ua.Last);case i0.PageDown:return f.current=!1,F.preventDefault(),F.stopPropagation(),E.goToOption(Ua.Last);case i0.Escape:return f.current=!1,h.comboboxState!==0?void 0:(F.preventDefault(),h.optionsRef.current&&!h.optionsPropsRef.current.static&&F.stopPropagation(),h.nullable&&h.mode===0&&h.value===null&&D(),E.closeCombobox());case i0.Tab:if(f.current=!1,h.comboboxState!==0)return;h.mode===0&&E.selectActiveOption(),E.closeCombobox();break}}),S=gi(F=>{s==null||s(F),h.nullable&&h.mode===0&&F.target.value===""&&D(),E.openCombobox()}),B=gi(()=>{f.current=!1}),L=Hne(()=>{if(h.labelId)return[h.labelId].join(" ")},[h.labelId]),T=C.useMemo(()=>({open:h.comboboxState===0,disabled:h.disabled}),[h]),N={ref:g,id:o,role:"combobox",type:c,"aria-controls":(t=h.optionsRef.current)==null?void 0:t.id,"aria-expanded":h.comboboxState===0,"aria-activedescendant":h.activeOptionIndex===null||(n=h.options[h.activeOptionIndex])==null?void 0:n.id,"aria-labelledby":L,"aria-autocomplete":"list",defaultValue:(r=(i=u.defaultValue)!=null?i:h.defaultValue!==void 0?l==null?void 0:l(h.defaultValue):null)!=null?r:h.defaultValue,disabled:h.disabled,onCompositionStart:k,onCompositionEnd:_,onKeyDown:y,onChange:S,onBlur:B};return Jp({ourProps:N,theirProps:d,slot:T,defaultTag:sNu,name:"Combobox.Input"})}let cNu="button";function dNu(u,e){var t;let n=wC("Combobox.Button"),i=XA("Combobox.Button"),r=QA(n.buttonRef,e),a=YA(),{id:o=`headlessui-combobox-button-${a}`,...s}=u,l=$ne(),c=gi(m=>{switch(m.key){case i0.ArrowDown:return m.preventDefault(),m.stopPropagation(),n.comboboxState===1&&i.openCombobox(),l.nextFrame(()=>{var f;return(f=n.inputRef.current)==null?void 0:f.focus({preventScroll:!0})});case i0.ArrowUp:return m.preventDefault(),m.stopPropagation(),n.comboboxState===1&&(i.openCombobox(),l.nextFrame(()=>{n.value||i.goToOption(Ua.Last)})),l.nextFrame(()=>{var f;return(f=n.inputRef.current)==null?void 0:f.focus({preventScroll:!0})});case i0.Escape:return n.comboboxState!==0?void 0:(m.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&m.stopPropagation(),i.closeCombobox(),l.nextFrame(()=>{var f;return(f=n.inputRef.current)==null?void 0:f.focus({preventScroll:!0})}));default:return}}),d=gi(m=>{if(VPu(m.currentTarget))return m.preventDefault();n.comboboxState===0?i.closeCombobox():(m.preventDefault(),i.openCombobox()),l.nextFrame(()=>{var f;return(f=n.inputRef.current)==null?void 0:f.focus({preventScroll:!0})})}),h=Hne(()=>{if(n.labelId)return[n.labelId,o].join(" ")},[n.labelId,o]),E=C.useMemo(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),g={ref:r,id:o,type:TPu(u,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(t=n.optionsRef.current)==null?void 0:t.id,"aria-expanded":n.comboboxState===0,"aria-labelledby":h,disabled:n.disabled,onClick:d,onKeyDown:c};return Jp({ourProps:g,theirProps:s,slot:E,defaultTag:cNu,name:"Combobox.Button"})}let hNu="label";function ENu(u,e){let t=YA(),{id:n=`headlessui-combobox-label-${t}`,...i}=u,r=wC("Combobox.Label"),a=XA("Combobox.Label"),o=QA(r.labelRef,e);y0(()=>a.registerLabel(n),[n]);let s=gi(()=>{var c;return(c=r.inputRef.current)==null?void 0:c.focus({preventScroll:!0})}),l=C.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled}),[r]);return Jp({ourProps:{ref:o,id:n,onClick:s},theirProps:i,slot:l,defaultTag:hNu,name:"Combobox.Label"})}let gNu="ul",mNu=UZ.RenderStrategy|UZ.Static;function fNu(u,e){let t=YA(),{id:n=`headlessui-combobox-options-${t}`,hold:i=!1,...r}=u,a=wC("Combobox.Options"),o=QA(a.optionsRef,e),s=GPu(),l=(()=>s!==null?(s&cF.Open)===cF.Open:a.comboboxState===0)();y0(()=>{var E;a.optionsPropsRef.current.static=(E=u.static)!=null?E:!1},[a.optionsPropsRef,u.static]),y0(()=>{a.optionsPropsRef.current.hold=i},[a.optionsPropsRef,i]),NPu({container:a.optionsRef.current,enabled:a.comboboxState===0,accept(E){return E.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:E.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(E){E.setAttribute("role","none")}});let c=Hne(()=>{var E,g;return(g=a.labelId)!=null?g:(E=a.buttonRef.current)==null?void 0:E.id},[a.labelId,a.buttonRef.current]),d=C.useMemo(()=>({open:a.comboboxState===0}),[a]),h={"aria-labelledby":c,role:"listbox","aria-multiselectable":a.mode===1?!0:void 0,id:n,ref:o};return Jp({ourProps:h,theirProps:r,slot:d,defaultTag:gNu,features:mNu,visible:l,name:"Combobox.Options"})}let pNu="li";function DNu(u,e){var t,n;let i=YA(),{id:r=`headlessui-combobox-option-${i}`,disabled:a=!1,value:o,...s}=u,l=wC("Combobox.Option"),c=XA("Combobox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,h=l.isSelected(o),E=C.useRef(null),g=ZA({disabled:a,value:o,domRef:E,textValue:(n=(t=E.current)==null?void 0:t.textContent)==null?void 0:n.toLowerCase()}),m=QA(e,E),f=gi(()=>c.selectOption(r));y0(()=>c.registerOption(r,g),[g,r]);let p=C.useRef(!l.__demoMode);y0(()=>{if(!l.__demoMode)return;let B=pT();return B.requestAnimationFrame(()=>{p.current=!0}),B.dispose},[]),y0(()=>{if(l.comboboxState!==0||!d||!p.current||l.activationTrigger===0)return;let B=pT();return B.requestAnimationFrame(()=>{var L,T;(T=(L=E.current)==null?void 0:L.scrollIntoView)==null||T.call(L,{block:"nearest"})}),B.dispose},[E,d,l.comboboxState,l.activationTrigger,l.activeOptionIndex]);let D=gi(B=>{if(a)return B.preventDefault();f(),l.mode===0&&c.closeCombobox(),QPu()||requestAnimationFrame(()=>{var L;return(L=l.inputRef.current)==null?void 0:L.focus()})}),x=gi(()=>{if(a)return c.goToOption(Ua.Nothing);c.goToOption(Ua.Specific,r)}),b=JPu(),k=gi(B=>b.update(B)),_=gi(B=>{b.wasMoved(B)&&(a||d||c.goToOption(Ua.Specific,r,0))}),y=gi(B=>{b.wasMoved(B)&&(a||d&&(l.optionsPropsRef.current.hold||c.goToOption(Ua.Nothing)))}),S=C.useMemo(()=>({active:d,selected:h,disabled:a}),[d,h,a]);return Jp({ourProps:{id:r,ref:m,role:"option",tabIndex:a===!0?void 0:-1,"aria-disabled":a===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:D,onFocus:x,onPointerEnter:k,onMouseEnter:k,onPointerMove:_,onMouseMove:_,onPointerLeave:y,onMouseLeave:y},theirProps:s,slot:S,defaultTag:pNu,name:"Combobox.Option"})}let xNu=Zp(oNu),vNu=Zp(dNu),CNu=Zp(lNu),bNu=Zp(ENu),kNu=Zp(fNu),yNu=Zp(DNu),zD=Object.assign(xNu,{Input:CNu,Button:vNu,Label:bNu,Options:kNu,Option:yNu});var FNu=Object.defineProperty,Ce=(u,e)=>FNu(u,"name",{value:e,configurable:!0});function vm(u){const e=C.createContext(null);return e.displayName=u,e}Ce(vm,"createNullableContext");function Cm(u){function e(t){var n;const i=C.useContext(u);if(i===null&&t!=null&&t.nonNull)throw new Error(`Tried to use \`${((n=t.caller)==null?void 0:n.name)||e.caller.name}\` without the necessary context. Make sure to render the \`${u.displayName}Provider\` component higher up the tree.`);return i}return Ce(e,"useGivenContext"),Object.defineProperty(e,"name",{value:`use${u.displayName}`}),e}Ce(Cm,"createContextHook");const ORe=vm("StorageContext");function jRe(u){const e=C.useRef(!0),[t,n]=C.useState(new lZ(u.storage));return C.useEffect(()=>{e.current?e.current=!1:n(new lZ(u.storage))},[u.storage]),w.jsx(ORe.Provider,{value:t,children:u.children})}Ce(jRe,"StorageContextProvider");const bm=Cm(ORe),ANu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),C.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),_Nu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),SNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),BNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),wNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),C.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5})),"SvgClose"),zNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),C.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),LNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),MNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgDeprecatedEnumValue"),TNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),PNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),"SvgDirective"),NNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),C.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),"SvgDocsFilled"),RNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),C.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),INu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgEnumValue"),ONu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),C.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),jNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),C.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),C.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),"SvgHistory"),VNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),C.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),HNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgKeyboardShortcut"),$Nu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),C.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),KNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),C.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),C.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),C.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),WNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),C.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),GNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),"SvgPlay"),UNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z",fill:"currentColor"})),"SvgPlus"),qNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),C.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),C.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),C.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),C.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),"SvgPrettify"),JNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),C.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),C.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),C.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),"SvgReload"),ZNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),C.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),"SvgRootType"),YNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),"SvgSettings"),QNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),"SvgStarFilled"),XNu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),"SvgStar"),eRu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),tRu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":e,...t},u===void 0?C.createElement("title",{id:e},"trash icon"):u?C.createElement("title",{id:e},u):null,C.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),"SvgTrash"),uRu=Ce(({title:u,titleId:e,...t})=>C.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},u?C.createElement("title",{id:e},u):null,C.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),C.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),nRu=zn(ANu),iRu=zn(_Nu),rRu=zn(SNu),aRu=zn(BNu),qne=zn(wNu),oRu=zn(zNu),sRu=zn(LNu),lRu=zn(MNu),cRu=zn(TNu),dRu=zn(PNu),hRu=zn(NNu,"filled docs icon"),ERu=zn(RNu),gRu=zn(INu),mRu=zn(ONu),fRu=zn(jNu),pRu=zn(VNu),DRu=zn(HNu),xRu=zn($Nu),vRu=zn(KNu),CRu=zn(WNu),bRu=zn(GNu),kRu=zn(UNu),yRu=zn(qNu),FRu=zn(JNu),ARu=zn(ZNu),_Ru=zn(YNu),SRu=zn(QNu,"filled star icon"),BRu=zn(XNu),wRu=zn(eRu),zRu=zn(tRu,"trash icon"),q9=zn(uRu);function zn(u,e=u.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){return u.defaultProps={title:e},u}Ce(zn,"generateIcon");const ua=C.forwardRef((u,e)=>w.jsx("button",{...u,ref:e,className:Ra("graphiql-un-styled",u.className)}));ua.displayName="UnStyledButton";const pc=C.forwardRef((u,e)=>w.jsx("button",{...u,ref:e,className:Ra("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[u.state],u.className)}));pc.displayName="Button";const JZ=C.forwardRef((u,e)=>w.jsx("div",{...u,ref:e,className:Ra("graphiql-button-group",u.className)}));JZ.displayName="ButtonGroup";const e_=Ce((u,e)=>Object.entries(e).reduce((t,[n,i])=>(t[n]=i,t),u),"createComponentGroup"),VRe=C.forwardRef((u,e)=>w.jsx(WZt,{asChild:!0,children:w.jsxs(ua,{...u,ref:e,type:"button",className:Ra("graphiql-dialog-close",u.className),children:[w.jsx(xPe,{children:"Close dialog"}),w.jsx(qne,{})]})}));VRe.displayName="Dialog.Close";function HRe({children:u,...e}){return w.jsx(IZt,{...e,children:w.jsxs(jZt,{children:[w.jsx(VZt,{className:"graphiql-dialog-overlay"}),w.jsx(HZt,{className:"graphiql-dialog",children:u})]})})}Ce(HRe,"DialogRoot");const LD=e_(HRe,{Close:VRe,Title:$Zt,Trigger:OZt,Description:KZt}),$Re=C.forwardRef((u,e)=>w.jsx(sQt,{asChild:!0,children:w.jsx("button",{...u,ref:e,className:Ra("graphiql-un-styled",u.className)})}));$Re.displayName="DropdownMenuButton";function KRe({children:u,align:e="start",sideOffset:t=5,className:n,...i}){return w.jsx(lQt,{children:w.jsx(cQt,{align:e,sideOffset:t,className:Ra("graphiql-dropdown-content",n),...i,children:u})})}Ce(KRe,"Content");const LRu=Ce(({className:u,children:e,...t})=>w.jsx(dQt,{className:Ra("graphiql-dropdown-item",u),...t,children:e}),"Item"),NE=e_(oQt,{Button:$Re,Item:LRu,Content:KRe}),DT=new iwu({breaks:!0,linkify:!0}),S1=C.forwardRef(({children:u,onlyShowFirstChild:e,type:t,...n},i)=>w.jsx("div",{...n,ref:i,className:Ra(`graphiql-markdown-${t}`,e&&"graphiql-markdown-preview",n.className),dangerouslySetInnerHTML:{__html:DT.render(u)}}));S1.displayName="MarkdownContent";const Jne=C.forwardRef((u,e)=>w.jsx("div",{...u,ref:e,className:Ra("graphiql-spinner",u.className)}));Jne.displayName="Spinner";function WRe({children:u,align:e="start",side:t="bottom",sideOffset:n=5,label:i}){return w.jsxs(fPu,{children:[w.jsx(pPu,{asChild:!0,children:u}),w.jsx(DPu,{children:w.jsx(xPu,{className:"graphiql-tooltip",align:e,side:t,sideOffset:n,children:i})})]})}Ce(WRe,"TooltipRoot");const ko=e_(WRe,{Provider:mPu}),GRe=C.forwardRef(({isActive:u,value:e,children:t,className:n,...i},r)=>w.jsx(wRe.Item,{...i,ref:r,value:e,"aria-selected":u?"true":void 0,role:"tab",className:Ra("graphiql-tab",u&&"graphiql-tab-active",n),children:t}));GRe.displayName="Tab";const URe=C.forwardRef((u,e)=>w.jsx(ua,{...u,ref:e,type:"button",className:Ra("graphiql-tab-button",u.className),children:u.children}));URe.displayName="Tab.Button";const qRe=C.forwardRef((u,e)=>w.jsx(ko,{label:"Close Tab",children:w.jsx(ua,{"aria-label":"Close Tab",...u,ref:e,type:"button",className:Ra("graphiql-tab-close",u.className),children:w.jsx(qne,{})})}));qRe.displayName="Tab.Close";const m$=e_(GRe,{Button:URe,Close:qRe}),JRe=C.forwardRef(({values:u,onReorder:e,children:t,className:n,...i},r)=>w.jsx(wRe.Group,{...i,ref:r,values:u,onReorder:e,axis:"x",role:"tablist",className:Ra("graphiql-tabs",n),children:t}));JRe.displayName="Tabs";const ZRe=vm("HistoryContext");function YRe(u){var e;const t=bm(),n=C.useRef(new Tqt(t||new lZ(null),u.maxHistoryLength||MRu)),[i,r]=C.useState(((e=n.current)==null?void 0:e.queries)||[]),a=C.useCallback(h=>{var E;(E=n.current)==null||E.updateHistory(h),r(n.current.queries)},[]),o=C.useCallback((h,E)=>{n.current.editLabel(h,E),r(n.current.queries)},[]),s=C.useCallback(h=>{n.current.toggleFavorite(h),r(n.current.queries)},[]),l=C.useCallback(h=>h,[]),c=C.useCallback((h,E=!1)=>{n.current.deleteHistory(h,E),r(n.current.queries)},[]),d=C.useMemo(()=>({addToHistory:a,editLabel:o,items:i,toggleFavorite:s,setActive:l,deleteFromHistory:c}),[a,o,i,s,l,c]);return w.jsx(ZRe.Provider,{value:d,children:u.children})}Ce(YRe,"HistoryContextProvider");const II=Cm(ZRe),MRu=20;function QRe(){const{items:u,deleteFromHistory:e}=II({nonNull:!0});let t=u.slice().map((o,s)=>({...o,index:s})).reverse();const n=t.filter(o=>o.favorite);n.length&&(t=t.filter(o=>!o.favorite));const[i,r]=C.useState(null);C.useEffect(()=>{i&&setTimeout(()=>{r(null)},2e3)},[i]);const a=C.useCallback(()=>{try{for(const o of t)e(o,!0);r("success")}catch{r("error")}},[e,t]);return w.jsxs("section",{"aria-label":"History",className:"graphiql-history",children:[w.jsxs("div",{className:"graphiql-history-header",children:["History",(i||t.length>0)&&w.jsx(pc,{type:"button",state:i||void 0,disabled:!t.length,onClick:a,children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"})]}),!!n.length&&w.jsx("ul",{className:"graphiql-history-items",children:n.map(o=>w.jsx(dF,{item:o},o.index))}),!!n.length&&!!t.length&&w.jsx("div",{className:"graphiql-history-item-spacer"}),!!t.length&&w.jsx("ul",{className:"graphiql-history-items",children:t.map(o=>w.jsx(dF,{item:o},o.index))})]})}Ce(QRe,"History");function dF(u){const{editLabel:e,toggleFavorite:t,deleteFromHistory:n,setActive:i}=II({nonNull:!0,caller:dF}),{headerEditor:r,queryEditor:a,variableEditor:o}=Ia({nonNull:!0,caller:dF}),s=C.useRef(null),l=C.useRef(null),[c,d]=C.useState(!1);C.useEffect(()=>{var x;c&&((x=s.current)==null||x.focus())},[c]);const h=u.item.label||u.item.operationName||XRe(u.item.query),E=C.useCallback(()=>{var x;d(!1);const{index:b,...k}=u.item;e({...k,label:(x=s.current)==null?void 0:x.value},b)},[e,u.item]),g=C.useCallback(()=>{d(!1)},[]),m=C.useCallback(x=>{x.stopPropagation(),d(!0)},[]),f=C.useCallback(()=>{const{query:x,variables:b,headers:k}=u.item;a==null||a.setValue(x??""),o==null||o.setValue(b??""),r==null||r.setValue(k??""),i(u.item)},[r,u.item,a,i,o]),p=C.useCallback(x=>{x.stopPropagation(),n(u.item)},[u.item,n]),D=C.useCallback(x=>{x.stopPropagation(),t(u.item)},[u.item,t]);return w.jsx("li",{className:Ra("graphiql-history-item",c&&"editable"),children:c?w.jsxs(w.Fragment,{children:[w.jsx("input",{type:"text",defaultValue:u.item.label,ref:s,onKeyDown:x=>{x.key==="Esc"?d(!1):x.key==="Enter"&&(d(!1),e({...u.item,label:x.currentTarget.value}))},placeholder:"Type a label"}),w.jsx(ua,{type:"button",ref:l,onClick:E,children:"Save"}),w.jsx(ua,{type:"button",ref:l,onClick:g,children:w.jsx(qne,{})})]}):w.jsxs(w.Fragment,{children:[w.jsx(ko,{label:"Set active",children:w.jsx(ua,{type:"button",className:"graphiql-history-item-label",onClick:f,"aria-label":"Set active",children:h})}),w.jsx(ko,{label:"Edit label",children:w.jsx(ua,{type:"button",className:"graphiql-history-item-action",onClick:m,"aria-label":"Edit label",children:w.jsx(CRu,{"aria-hidden":"true"})})}),w.jsx(ko,{label:u.item.favorite?"Remove favorite":"Add favorite",children:w.jsx(ua,{type:"button",className:"graphiql-history-item-action",onClick:D,"aria-label":u.item.favorite?"Remove favorite":"Add favorite",children:u.item.favorite?w.jsx(SRu,{"aria-hidden":"true"}):w.jsx(BRu,{"aria-hidden":"true"})})}),w.jsx(ko,{label:"Delete from history",children:w.jsx(ua,{type:"button",className:"graphiql-history-item-action",onClick:p,"aria-label":"Delete from history",children:w.jsx(zRu,{"aria-hidden":"true"})})})]})})}Ce(dF,"HistoryItem");function XRe(u){return u==null?void 0:u.split(` `).map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}Ce(XRe,"formatQuery");const eIe=vm("ExecutionContext");function xT({fetcher:u,getDefaultFieldNames:e,children:t,operationName:n}){if(!u)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");const{externalFragments:i,headerEditor:r,queryEditor:a,responseEditor:o,variableEditor:s,updateActiveTabValues:l}=Ia({nonNull:!0,caller:xT}),c=II(),d=kT({getDefaultFieldNames:e,caller:xT}),[h,E]=C.useState(!1),[g,m]=C.useState(null),f=C.useRef(0),p=C.useCallback(()=>{g==null||g.unsubscribe(),E(!1),m(null)},[g]),D=C.useCallback(async()=>{if(!a||!o)return;if(g){p();return}const k=Ce(F=>{o.setValue(F),l({response:F})},"setResponse");f.current+=1;const _=f.current;let y=d()||a.getValue();const S=s==null?void 0:s.getValue();let B;try{B=ZZ({json:S,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(F){k(F instanceof Error?F.message:`${F}`);return}const L=r==null?void 0:r.getValue();let T;try{T=ZZ({json:L,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(F){k(F instanceof Error?F.message:`${F}`);return}if(i){const F=a.documentAST?pJt(a.documentAST,i):[];F.length>0&&(y+=` `+F.map(A=>Js(A)).join(` -`))}k(""),E(!0);const N=n??a.operationName??void 0;c==null||c.addToHistory({query:y,variables:S,headers:L,operationName:N});try{let F={data:{}};const A=Ce(I=>{if(_!==f.current)return;let j=Array.isArray(I)?I:!1;if(!j&&typeof I=="object"&&I!==null&&"hasNext"in I&&(j=[I]),j){const V={data:F.data},H=[...(F==null?void 0:F.errors)||[],...j.flatMap(q=>q.errors).filter(Boolean)];H.length&&(V.errors=H);for(const q of j){const{path:J,data:Q,errors:X,...Y}=q;if(J){if(!Q)throw new Error(`Expected part to contain a data property, but got ${q}`);TJt(V.data,J,Q,{merge:!0})}else Q&&(V.data=Q);F={...V,...Y}}E(!1),k(sZ(F))}else{const V=sZ(I);E(!1),k(V)}},"handleResponse"),z=u({query:y,variables:B,operationName:N},{headers:T??void 0,documentAST:a.documentAST??void 0}),P=await Promise.resolve(z);if(VTe(P))m(P.subscribe({next(I){A(I)},error(I){E(!1),I&&k(Yy(I)),m(null)},complete(){E(!1),m(null)}}));else if(HTe(P)){m({unsubscribe:()=>{var I,j;return(j=(I=P[Symbol.asyncIterator]()).return)==null?void 0:j.call(I)}});for await(const I of P)A(I);E(!1),m(null)}else A(P)}catch(F){E(!1),k(Yy(F)),m(null)}},[d,i,u,r,c,n,a,o,p,g,l,s]),x=!!g,b=C.useMemo(()=>({isFetching:h,isSubscribed:x,operationName:n??null,run:D,stop:p}),[h,x,n,D,p]);return w.jsx(eIe.Provider,{value:b,children:t})}Ce(xT,"ExecutionContextProvider");const t_=Cm(eIe);function ZZ({json:u,errorMessageParse:e,errorMessageType:t}){let n;try{n=u&&u.trim()!==""?JSON.parse(u):void 0}catch(r){throw new Error(`${e}: ${r instanceof Error?r.message:r}.`)}const i=typeof n=="object"&&n!==null&&!Array.isArray(n);if(n!==void 0&&!i)throw new Error(t);return n}Ce(ZZ,"tryParseJsonObject");const OI="graphiql",jI="sublime";let tIe=!1;typeof window=="object"&&(tIe=window.navigator.platform.toLowerCase().indexOf("mac")===0);const VI={[tIe?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function zC(u,e){const t=await Le(()=>import("./codemirror.es-52e8b92d.js"),["./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.c).then(n=>typeof n=="function"?n:n.default);return await Promise.all((e==null?void 0:e.useCommonAddons)===!1?u:[Le(()=>import("./show-hint.es-b981493e.js"),["./show-hint.es-b981493e.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.s),Le(()=>import("./matchbrackets.es-97d2e827.js"),["./matchbrackets.es-97d2e827.js","./codemirror.es2-5884f31a.js","./matchbrackets.es2-f53f57e6.js"],import.meta.url).then(n=>n.m),Le(()=>import("./closebrackets.es-e969742b.js"),["./closebrackets.es-e969742b.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.c),Le(()=>import("./brace-fold.es-f2e3735d.js"),["./brace-fold.es-f2e3735d.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.b),Le(()=>import("./foldgutter.es-b6cee46a.js"),["./foldgutter.es-b6cee46a.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.f),Le(()=>import("./lint.es-fe7166bb.js"),["./lint.es-fe7166bb.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.l),Le(()=>import("./searchcursor.es-b1a352a2.js"),["./searchcursor.es-b1a352a2.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js"],import.meta.url).then(n=>n.s),Le(()=>import("./jump-to-line.es-d901ea33.js"),["./jump-to-line.es-d901ea33.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(n=>n.j),Le(()=>import("./dialog.es-dffe62e7.js"),["./dialog.es-dffe62e7.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(n=>n.d),Le(()=>import("./sublime.es-e2a3eb60.js"),["./sublime.es-e2a3eb60.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./matchbrackets.es2-f53f57e6.js"],import.meta.url).then(n=>n.s),...u]),t}Ce(zC,"importCodeMirror");const TRu=Ce(u=>u?Js(u):"","printDefault");function Zne({field:u}){if(!("defaultValue"in u)||u.defaultValue===void 0)return null;const e=Mx(u.defaultValue,u.type);return e?w.jsxs(w.Fragment,{children:[" = ",w.jsx("span",{className:"graphiql-doc-explorer-default-value",children:TRu(e)})]}):null}Ce(Zne,"DefaultValue");const uIe=vm("SchemaContext");function Yne(u){if(!u.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:e,headerEditor:t}=Ia({nonNull:!0,caller:Yne}),[n,i]=C.useState(),[r,a]=C.useState(!1),[o,s]=C.useState(null),l=C.useRef(0);C.useEffect(()=>{i(XJ(u.schema)||u.schema===null||u.schema===void 0?u.schema:void 0),l.current++},[u.schema]);const c=C.useRef(e);C.useEffect(()=>{t&&(c.current=t.getValue())});const{introspectionQuery:d,introspectionQueryName:h,introspectionQuerySansSubscriptions:E}=nIe({inputValueDeprecation:u.inputValueDeprecation,introspectionQueryName:u.introspectionQueryName,schemaDescription:u.schemaDescription}),{fetcher:g,onSchemaChange:m,dangerouslyAssumeSchemaIsValid:f,children:p}=u,D=C.useCallback(()=>{if(XJ(u.schema)||u.schema===null)return;const k=++l.current,_=u.schema;async function y(){if(_)return _;const S=iIe(c.current);if(!S.isValidJSON){s("Introspection failed as headers are invalid.");return}const B=S.headers?{headers:S.headers}:{},L=Ume(g({query:d,operationName:h},B));if(!Gme(L)){s("Fetcher did not return a Promise for introspection.");return}a(!0),s(null);let T=await L;if(typeof T!="object"||T===null||!("data"in T)){const F=Ume(g({query:E,operationName:h},B));if(!Gme(F))throw new Error("Fetcher did not return a Promise for introspection.");T=await F}if(a(!1),T!=null&&T.data&&"__schema"in T.data)return T.data;const N=typeof T=="string"?T:sZ(T);s(N)}Ce(y,"fetchIntrospectionData"),y().then(S=>{if(!(k!==l.current||!S))try{const B=wWt(S);i(B),m==null||m(B)}catch(B){s(Yy(B))}}).catch(S=>{k===l.current&&(s(Yy(S)),a(!1))})},[g,h,d,E,m,u.schema]);C.useEffect(()=>{D()},[D]),C.useEffect(()=>{function k(_){_.ctrlKey&&_.key==="R"&&D()}return Ce(k,"triggerIntrospection"),window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)});const x=C.useMemo(()=>!n||f?[]:oTe(n),[n,f]),b=C.useMemo(()=>({fetchError:o,introspect:D,isFetching:r,schema:n,validationErrors:x}),[o,D,r,n,x]);return w.jsx(uIe.Provider,{value:b,children:p})}Ce(Yne,"SchemaContextProvider");const V1=Cm(uIe);function nIe({inputValueDeprecation:u,introspectionQueryName:e,schemaDescription:t}){return C.useMemo(()=>{const n=e||"IntrospectionQuery";let i=BWt({inputValueDeprecation:u,schemaDescription:t});e&&(i=i.replace("query IntrospectionQuery",`query ${n}`));const r=i.replace("subscriptionType { name }","");return{introspectionQueryName:n,introspectionQuery:i,introspectionQuerySansSubscriptions:r}},[u,e,t])}Ce(nIe,"useIntrospectionQuery");function iIe(u){let e=null,t=!0;try{u&&(e=JSON.parse(u))}catch{t=!1}return{headers:e,isValidJSON:t}}Ce(iIe,"parseHeaderString");const J9={name:"Docs"},rIe=vm("ExplorerContext");function Qne(u){const{schema:e,validationErrors:t}=V1({nonNull:!0,caller:Qne}),[n,i]=C.useState([J9]),r=C.useCallback(l=>{i(c=>c.at(-1).def===l.def?c:[...c,l])},[]),a=C.useCallback(()=>{i(l=>l.length>1?l.slice(0,-1):l)},[]),o=C.useCallback(()=>{i(l=>l.length===1?l:[J9])},[]);C.useEffect(()=>{e==null||t.length>0?o():i(l=>{if(l.length===1)return l;const c=[J9];let d=null;for(const h of l)if(h!==J9)if(h.def)if(Wue(h.def)){const E=e.getType(h.def.name);if(E)c.push({name:h.name,def:E}),d=E;else break}else{if(d===null)break;if(Ki(d)||Io(d)){const E=d.getFields()[h.name];if(E)c.push({name:h.name,def:E});else break}else{if(pm(d)||L0(d)||Wi(d)||Ml(d))break;{const E=d;if(E.args.find(g=>g.name===h.name))c.push({name:h.name,def:E});else break}}}else d=null,c.push(h);return c})},[o,e,t]);const s=C.useMemo(()=>({explorerNavStack:n,push:r,pop:a,reset:o}),[n,r,a,o]);return w.jsx(rIe.Provider,{value:s,children:u.children})}Ce(Qne,"ExplorerContextProvider");const km=Cm(rIe);function hF(u,e){return wr(u)?w.jsxs(w.Fragment,{children:[hF(u.ofType,e),"!"]}):ss(u)?w.jsxs(w.Fragment,{children:["[",hF(u.ofType,e),"]"]}):e(u)}Ce(hF,"renderType");function Sc(u){const{push:e}=km({nonNull:!0,caller:Sc});return u.type?hF(u.type,t=>w.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),e({name:t.name,def:t})},href:"#",children:t.name})):null}Ce(Sc,"TypeLink");function EF({arg:u,showDefaultValue:e,inline:t}){const n=w.jsxs("span",{children:[w.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:u.name}),": ",w.jsx(Sc,{type:u.type}),e!==!1&&w.jsx(Zne,{field:u})]});return t?n:w.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[n,u.description?w.jsx(S1,{type:"description",children:u.description}):null,u.deprecationReason?w.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[w.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),w.jsx(S1,{type:"deprecation",children:u.deprecationReason})]}):null]})}Ce(EF,"Argument");function Xne(u){return u.children?w.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[w.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),w.jsx(S1,{type:"deprecation",onlyShowFirstChild:u.preview??!0,children:u.children})]}):null}Ce(Xne,"DeprecationReason");function aIe({directive:u}){return w.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",u.name.value]})}Ce(aIe,"Directive");function M0(u){const e=PRu[u.title];return w.jsxs("div",{children:[w.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[w.jsx(e,{}),u.title]}),w.jsx("div",{className:"graphiql-doc-explorer-section-content",children:u.children})]})}Ce(M0,"ExplorerSection");const PRu={Arguments:nRu,"Deprecated Arguments":sRu,"Deprecated Enum Values":lRu,"Deprecated Fields":cRu,Directives:dRu,"Enum Values":gRu,Fields:mRu,Implements:pRu,Implementations:q9,"Possible Types":q9,"Root Types":ARu,Type:q9,"All Schema Types":q9};function oIe(u){return w.jsxs(w.Fragment,{children:[u.field.description?w.jsx(S1,{type:"description",children:u.field.description}):null,w.jsx(Xne,{preview:!1,children:u.field.deprecationReason}),w.jsx(M0,{title:"Type",children:w.jsx(Sc,{type:u.field.type})}),w.jsx(sIe,{field:u.field}),w.jsx(lIe,{field:u.field})]})}Ce(oIe,"FieldDocumentation");function sIe({field:u}){const[e,t]=C.useState(!1),n=C.useCallback(()=>{t(!0)},[]);if(!("args"in u))return null;const i=[],r=[];for(const a of u.args)a.deprecationReason?r.push(a):i.push(a);return w.jsxs(w.Fragment,{children:[i.length>0?w.jsx(M0,{title:"Arguments",children:i.map(a=>w.jsx(EF,{arg:a},a.name))}):null,r.length>0?e||i.length===0?w.jsx(M0,{title:"Deprecated Arguments",children:r.map(a=>w.jsx(EF,{arg:a},a.name))}):w.jsx(pc,{type:"button",onClick:n,children:"Show Deprecated Arguments"}):null]})}Ce(sIe,"Arguments");function lIe({field:u}){var e;const t=((e=u.astNode)==null?void 0:e.directives)||[];return!t||t.length===0?null:w.jsx(M0,{title:"Directives",children:t.map(n=>w.jsx("div",{children:w.jsx(aIe,{directive:n})},n.name.value))})}Ce(lIe,"Directives");function cIe(u){var e,t,n,i;const r=u.schema.getQueryType(),a=(t=(e=u.schema).getMutationType)==null?void 0:t.call(e),o=(i=(n=u.schema).getSubscriptionType)==null?void 0:i.call(n),s=u.schema.getTypeMap(),l=[r==null?void 0:r.name,a==null?void 0:a.name,o==null?void 0:o.name];return w.jsxs(w.Fragment,{children:[w.jsx(S1,{type:"description",children:u.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),w.jsxs(M0,{title:"Root Types",children:[r?w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",w.jsx(Sc,{type:r})]}):null,a&&w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",w.jsx(Sc,{type:a})]}),o&&w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",w.jsx(Sc,{type:o})]})]}),w.jsx(M0,{title:"All Schema Types",children:s&&w.jsx("div",{children:Object.values(s).map(c=>l.includes(c.name)||c.name.startsWith("__")?null:w.jsx("div",{children:w.jsx(Sc,{type:c})},c.name))})})]})}Ce(cIe,"SchemaDocumentation");function lp(u,e){let t;return function(...n){t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,e(...n)},u)}}Ce(lp,"debounce");function eie(){const{explorerNavStack:u,push:e}=km({nonNull:!0,caller:eie}),t=C.useRef(null),n=vT(),[i,r]=C.useState(""),[a,o]=C.useState(n(i)),s=C.useMemo(()=>lp(200,E=>{o(n(E))}),[n]);C.useEffect(()=>{s(i)},[s,i]),C.useEffect(()=>{function E(g){var m;g.metaKey&&g.key==="k"&&((m=t.current)==null||m.focus())}return Ce(E,"handleKeyDown"),window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[]);const l=u.at(-1),c=C.useCallback(E=>{e("field"in E?{name:E.field.name,def:E.field}:{name:E.type.name,def:E.type})},[e]),d=C.useRef(!1),h=C.useCallback(E=>{d.current=E.type==="focus"},[]);return u.length===1||Ki(l.def)||Wi(l.def)||Io(l.def)?w.jsxs(zD,{as:"div",className:"graphiql-doc-explorer-search",onChange:c,"data-state":d?void 0:"idle","aria-label":`Search ${l.name}...`,children:[w.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var E;(E=t.current)==null||E.focus()},children:[w.jsx(xRu,{}),w.jsx(zD.Input,{autoComplete:"off",onFocus:h,onBlur:h,onChange:E=>r(E.target.value),placeholder:"⌘ K",ref:t,value:i,"data-cy":"doc-explorer-input"})]}),d.current&&w.jsxs(zD.Options,{"data-cy":"doc-explorer-list",children:[a.within.length+a.types.length+a.fields.length===0?w.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):a.within.map((E,g)=>w.jsx(zD.Option,{value:E,"data-cy":"doc-explorer-option",children:w.jsx(YZ,{field:E.field,argument:E.argument})},`within-${g}`)),a.within.length>0&&a.types.length+a.fields.length>0?w.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,a.types.map((E,g)=>w.jsx(zD.Option,{value:E,"data-cy":"doc-explorer-option",children:w.jsx(CT,{type:E.type})},`type-${g}`)),a.fields.map((E,g)=>w.jsxs(zD.Option,{value:E,"data-cy":"doc-explorer-option",children:[w.jsx(CT,{type:E.type}),".",w.jsx(YZ,{field:E.field,argument:E.argument})]},`field-${g}`))]})]}):null}Ce(eie,"Search");function vT(u){const{explorerNavStack:e}=km({nonNull:!0,caller:u||vT}),{schema:t}=V1({nonNull:!0,caller:u||vT}),n=e.at(-1);return C.useCallback(i=>{const r={within:[],types:[],fields:[]};if(!t)return r;const a=n.def,o=t.getTypeMap();let s=Object.keys(o);a&&(s=s.filter(l=>l!==a.name),s.unshift(a.name));for(const l of s){if(r.within.length+r.types.length+r.fields.length>=100)break;const c=o[l];if(a!==c&&C8(l,i)&&r.types.push({type:c}),!Ki(c)&&!Wi(c)&&!Io(c))continue;const d=c.getFields();for(const h in d){const E=d[h];let g;if(!C8(h,i))if("args"in E){if(g=E.args.filter(m=>C8(m.name,i)),g.length===0)continue}else continue;r[a===c?"within":"fields"].push(...g?g.map(m=>({type:c,field:E,argument:m})):[{type:c,field:E}])}}return r},[n.def,t])}Ce(vT,"useSearchResults");function C8(u,e){try{const t=e.replaceAll(/[^_0-9A-Za-z]/g,n=>"\\"+n);return u.search(new RegExp(t,"i"))!==-1}catch{return u.toLowerCase().includes(e.toLowerCase())}}Ce(C8,"isMatch");function CT(u){return w.jsx("span",{className:"graphiql-doc-explorer-search-type",children:u.type.name})}Ce(CT,"Type");function YZ({field:u,argument:e}){return w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"graphiql-doc-explorer-search-field",children:u.name}),e?w.jsxs(w.Fragment,{children:["(",w.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:e.name}),":"," ",hF(e.type,t=>w.jsx(CT,{type:t})),")"]}):null]})}Ce(YZ,"Field$1");function dIe(u){const{push:e}=km({nonNull:!0});return w.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:t=>{t.preventDefault(),e({name:u.field.name,def:u.field})},href:"#",children:u.field.name})}Ce(dIe,"FieldLink");function hIe(u){return Wue(u.type)?w.jsxs(w.Fragment,{children:[u.type.description?w.jsx(S1,{type:"description",children:u.type.description}):null,w.jsx(EIe,{type:u.type}),w.jsx(gIe,{type:u.type}),w.jsx(mIe,{type:u.type}),w.jsx(fIe,{type:u.type})]}):null}Ce(hIe,"TypeDocumentation");function EIe({type:u}){return Ki(u)&&u.getInterfaces().length>0?w.jsx(M0,{title:"Implements",children:u.getInterfaces().map(e=>w.jsx("div",{children:w.jsx(Sc,{type:e})},e.name))}):null}Ce(EIe,"ImplementsInterfaces");function gIe({type:u}){const[e,t]=C.useState(!1),n=C.useCallback(()=>{t(!0)},[]);if(!Ki(u)&&!Wi(u)&&!Io(u))return null;const i=u.getFields(),r=[],a=[];for(const o of Object.keys(i).map(s=>i[s]))o.deprecationReason?a.push(o):r.push(o);return w.jsxs(w.Fragment,{children:[r.length>0?w.jsx(M0,{title:"Fields",children:r.map(o=>w.jsx(QZ,{field:o},o.name))}):null,a.length>0?e||r.length===0?w.jsx(M0,{title:"Deprecated Fields",children:a.map(o=>w.jsx(QZ,{field:o},o.name))}):w.jsx(pc,{type:"button",onClick:n,children:"Show Deprecated Fields"}):null]})}Ce(gIe,"Fields");function QZ({field:u}){const e="args"in u?u.args.filter(t=>!t.deprecationReason):[];return w.jsxs("div",{className:"graphiql-doc-explorer-item",children:[w.jsxs("div",{children:[w.jsx(dIe,{field:u}),e.length>0?w.jsxs(w.Fragment,{children:["(",w.jsx("span",{children:e.map(t=>e.length===1?w.jsx(EF,{arg:t,inline:!0},t.name):w.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:w.jsx(EF,{arg:t,inline:!0})},t.name))}),")"]}):null,": ",w.jsx(Sc,{type:u.type}),w.jsx(Zne,{field:u})]}),u.description?w.jsx(S1,{type:"description",onlyShowFirstChild:!0,children:u.description}):null,w.jsx(Xne,{children:u.deprecationReason})]})}Ce(QZ,"Field");function mIe({type:u}){const[e,t]=C.useState(!1),n=C.useCallback(()=>{t(!0)},[]);if(!L0(u))return null;const i=[],r=[];for(const a of u.getValues())a.deprecationReason?r.push(a):i.push(a);return w.jsxs(w.Fragment,{children:[i.length>0?w.jsx(M0,{title:"Enum Values",children:i.map(a=>w.jsx(XZ,{value:a},a.name))}):null,r.length>0?e||i.length===0?w.jsx(M0,{title:"Deprecated Enum Values",children:r.map(a=>w.jsx(XZ,{value:a},a.name))}):w.jsx(pc,{type:"button",onClick:n,children:"Show Deprecated Values"}):null]})}Ce(mIe,"EnumValues");function XZ({value:u}){return w.jsxs("div",{className:"graphiql-doc-explorer-item",children:[w.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:u.name}),u.description?w.jsx(S1,{type:"description",children:u.description}):null,u.deprecationReason?w.jsx(S1,{type:"deprecation",children:u.deprecationReason}):null]})}Ce(XZ,"EnumValue");function fIe({type:u}){const{schema:e}=V1({nonNull:!0});return!e||!pg(u)?null:w.jsx(M0,{title:Wi(u)?"Implementations":"Possible Types",children:e.getPossibleTypes(u).map(t=>w.jsx("div",{children:w.jsx(Sc,{type:t})},t.name))})}Ce(fIe,"PossibleTypes");function bT(){const{fetchError:u,isFetching:e,schema:t,validationErrors:n}=V1({nonNull:!0,caller:bT}),{explorerNavStack:i,pop:r}=km({nonNull:!0,caller:bT}),a=i.at(-1);let o=null;u?o=w.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):n.length>0?o=w.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",n[0].message]}):e?o=w.jsx(Jne,{}):t?i.length===1?o=w.jsx(cIe,{schema:t}):$ue(a.def)?o=w.jsx(hIe,{type:a.def}):a.def&&(o=w.jsx(oIe,{field:a.def})):o=w.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"});let s;return i.length>1&&(s=i.at(-2).name),w.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[w.jsxs("div",{className:"graphiql-doc-explorer-header",children:[w.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[s&&w.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:l=>{l.preventDefault(),r()},"aria-label":`Go back to ${s}`,children:[w.jsx(rRu,{}),s]}),w.jsx("div",{className:"graphiql-doc-explorer-title",children:a.name})]}),w.jsx(eie,{},a.name)]}),w.jsx("div",{className:"graphiql-doc-explorer-content",children:o})]})}Ce(bT,"DocExplorer");const gF={title:"Documentation Explorer",icon:Ce(function(){const u=HI();return(u==null?void 0:u.visiblePlugin)===gF?w.jsx(hRu,{}):w.jsx(ERu,{})},"Icon"),content:bT},lDe={title:"History",icon:fRu,content:QRe},pIe=vm("PluginContext");function DIe(u){const e=bm(),t=km(),n=II(),i=!!t,r=!!n,a=C.useMemo(()=>{const E=[],g={};i&&(E.push(gF),g[gF.title]=!0),r&&(E.push(lDe),g[lDe.title]=!0);for(const m of u.plugins||[]){if(typeof m.title!="string"||!m.title)throw new Error("All GraphiQL plugins must have a unique title");if(g[m.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${m.title}'`);E.push(m),g[m.title]=!0}return E},[i,r,u.plugins]),[o,s]=C.useState(()=>{const E=e==null?void 0:e.get(cDe);return a.find(m=>m.title===E)||(E&&(e==null||e.set(cDe,"")),u.visiblePlugin&&a.find(m=>(typeof u.visiblePlugin=="string"?m.title:m)===u.visiblePlugin)||null)}),{onTogglePluginVisibility:l,children:c}=u,d=C.useCallback(E=>{const g=E&&a.find(m=>(typeof E=="string"?m.title:m)===E)||null;s(m=>g===m?m:(l==null||l(g),g))},[l,a]);C.useEffect(()=>{u.visiblePlugin&&d(u.visiblePlugin)},[a,u.visiblePlugin,d]);const h=C.useMemo(()=>({plugins:a,setVisiblePlugin:d,visiblePlugin:o}),[a,d,o]);return w.jsx(pIe.Provider,{value:h,children:c})}Ce(DIe,"PluginContextProvider");const HI=Cm(pIe),cDe="visiblePlugin";function xIe(u,e,t,n,i,r){zC([],{useCommonAddons:!1}).then(o=>{let s,l,c,d,h,E,g,m,f;o.on(e,"select",(p,D)=>{if(!s){const x=D.parentNode;s=document.createElement("div"),s.className="CodeMirror-hint-information",x.append(s);const b=document.createElement("header");b.className="CodeMirror-hint-information-header",s.append(b),l=document.createElement("span"),l.className="CodeMirror-hint-information-field-name",b.append(l),c=document.createElement("span"),c.className="CodeMirror-hint-information-type-name-pill",b.append(c),d=document.createElement("span"),c.append(d),h=document.createElement("a"),h.className="CodeMirror-hint-information-type-name",h.href="javascript:void 0",h.addEventListener("click",a),c.append(h),E=document.createElement("span"),c.append(E),g=document.createElement("div"),g.className="CodeMirror-hint-information-description",s.append(g),m=document.createElement("div"),m.className="CodeMirror-hint-information-deprecation",s.append(m);const k=document.createElement("span");k.className="CodeMirror-hint-information-deprecation-label",k.textContent="Deprecated",m.append(k),f=document.createElement("div"),f.className="CodeMirror-hint-information-deprecation-reason",m.append(f);const _=parseInt(window.getComputedStyle(s).paddingBottom.replace(/px$/,""),10)||0,y=parseInt(window.getComputedStyle(s).maxHeight.replace(/px$/,""),10)||0,S=Ce(()=>{s&&(s.style.paddingTop=x.scrollTop+_+"px",s.style.maxHeight=x.scrollTop+y+"px")},"handleScroll");x.addEventListener("scroll",S);let B;x.addEventListener("DOMNodeRemoved",B=Ce(L=>{L.target===x&&(x.removeEventListener("scroll",S),x.removeEventListener("DOMNodeRemoved",B),s&&s.removeEventListener("click",a),s=null,l=null,c=null,d=null,h=null,E=null,g=null,m=null,f=null,B=null)},"onRemoveFn"))}if(l&&(l.textContent=p.text),c&&d&&h&&E)if(p.type){c.style.display="inline";const x=Ce(b=>{wr(b)?(E.textContent="!"+E.textContent,x(b.ofType)):ss(b)?(d.textContent+="[",E.textContent="]"+E.textContent,x(b.ofType)):h.textContent=b.name},"renderType");d.textContent="",E.textContent="",x(p.type)}else d.textContent="",h.textContent="",E.textContent="",c.style.display="none";g&&(p.description?(g.style.display="block",g.innerHTML=DT.render(p.description)):(g.style.display="none",g.innerHTML="")),m&&f&&(p.deprecationReason?(m.style.display="block",f.innerHTML=DT.render(p.deprecationReason)):(m.style.display="none",f.innerHTML=""))})});function a(o){if(!t||!n||!i||!(o.currentTarget instanceof HTMLElement))return;const s=o.currentTarget.textContent||"",l=t.getType(s);l&&(i.setVisiblePlugin(gF),n.push({name:l.name,def:l}),r==null||r(l))}Ce(a,"onClickHintInformation")}Ce(xIe,"onHasCompletion");function Fb(u,e){C.useEffect(()=>{u&&typeof e=="string"&&e!==u.getValue()&&u.setValue(e)},[u,e])}Ce(Fb,"useSynchronizeValue");function u_(u,e,t){C.useEffect(()=>{u&&u.setOption(e,t)},[u,e,t])}Ce(u_,"useSynchronizeOption");function tie(u,e,t,n,i){const{updateActiveTabValues:r}=Ia({nonNull:!0,caller:i}),a=bm();C.useEffect(()=>{if(!u)return;const o=lp(500,c=>{!a||t===null||a.set(t,c)}),s=lp(100,c=>{r({[n]:c})}),l=Ce((c,d)=>{if(!d)return;const h=c.getValue();o(h),s(h),e==null||e(h)},"handleChange");return u.on("change",l),()=>u.off("change",l)},[e,u,a,t,n,r])}Ce(tie,"useChangeHandler");function uie(u,e,t){const{schema:n}=V1({nonNull:!0,caller:t}),i=km(),r=HI();C.useEffect(()=>{if(!u)return;const a=Ce((o,s)=>{xIe(o,s,n,i,r,l=>{e==null||e({kind:"Type",type:l,schema:n||void 0})})},"handleCompletion");return u.on("hasCompletion",a),()=>u.off("hasCompletion",a)},[e,u,i,r,n])}Ce(uie,"useCompletion");function Bc(u,e,t){C.useEffect(()=>{if(u){for(const n of e)u.removeKeyMap(n);if(t){const n={};for(const i of e)n[i]=()=>t();u.addKeyMap(n)}}},[u,e,t])}Ce(Bc,"useKeyMap");function $I({caller:u,onCopyQuery:e}={}){const{queryEditor:t}=Ia({nonNull:!0,caller:u||$I});return C.useCallback(()=>{if(!t)return;const n=t.getValue();jJt(n),e==null||e(n)},[t,e])}Ce($I,"useCopyQuery");function cp({caller:u}={}){const{queryEditor:e}=Ia({nonNull:!0,caller:u||cp}),{schema:t}=V1({nonNull:!0,caller:cp});return C.useCallback(()=>{const n=e==null?void 0:e.documentAST,i=e==null?void 0:e.getValue();!n||!i||e.setValue(Js(wqt(n,t)))},[e,t])}Ce(cp,"useMergeQuery");function LC({caller:u}={}){const{queryEditor:e,headerEditor:t,variableEditor:n}=Ia({nonNull:!0,caller:u||LC});return C.useCallback(()=>{if(n){const i=n.getValue();try{const r=JSON.stringify(JSON.parse(i),null,2);r!==i&&n.setValue(r)}catch{}}if(t){const i=t.getValue();try{const r=JSON.stringify(JSON.parse(i),null,2);r!==i&&t.setValue(r)}catch{}}if(e){const i=e.getValue(),r=Js(fm(i));r!==i&&e.setValue(r)}},[e,n,t])}Ce(LC,"usePrettifyEditors");function kT({getDefaultFieldNames:u,caller:e}={}){const{schema:t}=V1({nonNull:!0,caller:e||kT}),{queryEditor:n}=Ia({nonNull:!0,caller:e||kT});return C.useCallback(()=>{if(!n)return;const i=n.getValue(),{insertions:r,result:a}=yqt(t,i,u);return r&&r.length>0&&n.operation(()=>{const o=n.getCursor(),s=n.indexFromPos(o);n.setValue(a||"");let l=0;const c=r.map(({index:h,string:E})=>n.markText(n.posFromIndex(h+l),n.posFromIndex(h+(l+=E.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>{for(const h of c)h.clear()},7e3);let d=s;for(const{index:h,string:E}of r)hu==null?void 0:u.setValue(n),[u]);return C.useMemo(()=>[e,t],[e,t])}Ce(NRu,"useOperationsEditorState");function RRu(){const{variableEditor:u}=Ia({nonNull:!0}),e=(u==null?void 0:u.getValue())??"",t=C.useCallback(n=>u==null?void 0:u.setValue(n),[u]);return C.useMemo(()=>[e,t],[e,t])}Ce(RRu,"useVariablesEditorState");function Nx({editorTheme:u=OI,keyMap:e=jI,onEdit:t,readOnly:n=!1}={},i){const{initialHeaders:r,headerEditor:a,setHeaderEditor:o,shouldPersistHeaders:s}=Ia({nonNull:!0,caller:i||Nx}),l=t_(),c=cp({caller:i||Nx}),d=LC({caller:i||Nx}),h=C.useRef(null);return C.useEffect(()=>{let E=!0;return zC([Le(()=>import("./javascript.es-3c6957c5.js"),["./javascript.es-3c6957c5.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(g=>g.j)]).then(g=>{if(!E)return;const m=h.current;if(!m)return;const f=g(m,{value:r,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:n?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:VI});f.addKeyMap({"Cmd-Space"(){f.showHint({completeSingle:!1,container:m})},"Ctrl-Space"(){f.showHint({completeSingle:!1,container:m})},"Alt-Space"(){f.showHint({completeSingle:!1,container:m})},"Shift-Space"(){f.showHint({completeSingle:!1,container:m})}}),f.on("keyup",(p,D)=>{const{code:x,key:b,shiftKey:k}=D,_=x.startsWith("Key"),y=!k&&x.startsWith("Digit");(_||y||b==="_"||b==='"')&&p.execCommand("autocomplete")}),o(f)}),()=>{E=!1}},[u,r,n,o]),u_(a,"keyMap",e),tie(a,t,s?b8:null,"headers",Nx),Bc(a,["Cmd-Enter","Ctrl-Enter"],l==null?void 0:l.run),Bc(a,["Shift-Ctrl-P"],d),Bc(a,["Shift-Ctrl-M"],c),h}Ce(Nx,"useHeaderEditor");const b8="headers",IRu=Array.from({length:11},(u,e)=>String.fromCharCode(8192+e)).concat(["\u2028","\u2029"," "," "]),ORu=new RegExp("["+IRu.join("")+"]","g");function vIe(u){return u.replace(ORu," ")}Ce(vIe,"normalizeWhitespace");function rE({editorTheme:u=OI,keyMap:e=jI,onClickReference:t,onCopyQuery:n,onEdit:i,readOnly:r=!1}={},a){const{schema:o}=V1({nonNull:!0,caller:a||rE}),{externalFragments:s,initialQuery:l,queryEditor:c,setOperationName:d,setQueryEditor:h,validationRules:E,variableEditor:g,updateActiveTabValues:m}=Ia({nonNull:!0,caller:a||rE}),f=t_(),p=bm(),D=km(),x=HI(),b=$I({caller:a||rE,onCopyQuery:n}),k=cp({caller:a||rE}),_=LC({caller:a||rE}),y=C.useRef(null),S=C.useRef(),B=C.useRef(()=>{});C.useEffect(()=>{B.current=N=>{if(!(!D||!x)){switch(x.setVisiblePlugin(gF),N.kind){case"Type":{D.push({name:N.type.name,def:N.type});break}case"Field":{D.push({name:N.field.name,def:N.field});break}case"Argument":{N.field&&D.push({name:N.field.name,def:N.field});break}case"EnumValue":{N.type&&D.push({name:N.type.name,def:N.type});break}}t==null||t(N)}}},[D,t,x]),C.useEffect(()=>{let N=!0;return zC([Le(()=>import("./comment.es-39699bae.js"),["./comment.es-39699bae.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(F=>F.c),Le(()=>import("./search.es-1c15f5ea.js"),["./search.es-1c15f5ea.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(F=>F.s),Le(()=>import("./hint.es-a0ae1756.js"),["./hint.es-a0ae1756.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./show-hint.es-b981493e.js","./Range-52ddcb6a.js"],import.meta.url),Le(()=>import("./lint.es2-a90e055d.js"),["./lint.es2-a90e055d.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./Range-52ddcb6a.js"],import.meta.url),Le(()=>import("./info.es-86a835a3.js"),["./info.es-86a835a3.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./SchemaReference.es-97a13a89.js","./forEachState.es-b2033c2b.js","./info-addon.es-c9b2027b.js"],import.meta.url),Le(()=>import("./jump.es-120ffb07.js"),["./jump.es-120ffb07.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./SchemaReference.es-97a13a89.js","./forEachState.es-b2033c2b.js"],import.meta.url),Le(()=>import("./mode.es-2899b0de.js"),["./mode.es-2899b0de.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./mode-indent.es-057a4f6a.js"],import.meta.url)]).then(F=>{if(!N)return;S.current=F;const A=y.current;if(!A)return;const z=F(A,{value:l,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:r?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:A,externalFragments:void 0},info:{schema:void 0,renderDescription:I=>DT.render(I),onClick(I){B.current(I)}},jump:{schema:void 0,onClick(I){B.current(I)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...VI,"Cmd-S"(){},"Ctrl-S"(){}}});z.addKeyMap({"Cmd-Space"(){z.showHint({completeSingle:!0,container:A})},"Ctrl-Space"(){z.showHint({completeSingle:!0,container:A})},"Alt-Space"(){z.showHint({completeSingle:!0,container:A})},"Shift-Space"(){z.showHint({completeSingle:!0,container:A})},"Shift-Alt-Space"(){z.showHint({completeSingle:!0,container:A})}}),z.on("keyup",(I,j)=>{jRu.test(j.key)&&I.execCommand("autocomplete")});let P=!1;z.on("startCompletion",()=>{P=!0}),z.on("endCompletion",()=>{P=!1}),z.on("keydown",(I,j)=>{j.key==="Escape"&&P&&j.stopPropagation()}),z.on("beforeChange",(I,j)=>{var V;if(j.origin==="paste"){const H=j.text.map(vIe);(V=j.update)==null||V.call(j,j.from,j.to,H)}}),z.documentAST=null,z.operationName=null,z.operations=null,z.variableToType=null,h(z)}),()=>{N=!1}},[u,l,r,h]),u_(c,"keyMap",e),C.useEffect(()=>{if(!c)return;function N(A){var z;const P=vJt(o,A.getValue()),I=zqt(A.operations??void 0,A.operationName??void 0,P==null?void 0:P.operations);return A.documentAST=(P==null?void 0:P.documentAST)??null,A.operationName=I??null,A.operations=(P==null?void 0:P.operations)??null,g&&(g.state.lint.linterOptions.variableToType=P==null?void 0:P.variableToType,g.options.lint.variableToType=P==null?void 0:P.variableToType,g.options.hintOptions.variableToType=P==null?void 0:P.variableToType,(z=S.current)==null||z.signal(g,"change",g)),P?{...P,operationName:I}:null}Ce(N,"getAndUpdateOperationFacts");const F=lp(100,A=>{const z=A.getValue();p==null||p.set(yIe,z);const P=A.operationName,I=N(A);(I==null?void 0:I.operationName)!==void 0&&(p==null||p.set(VRu,I.operationName)),i==null||i(z,I==null?void 0:I.documentAST),I!=null&&I.operationName&&P!==I.operationName&&d(I.operationName),m({query:z,operationName:(I==null?void 0:I.operationName)??null})});return N(c),c.on("change",F),()=>c.off("change",F)},[i,c,o,d,p,g,m]),CIe(c,o??null,S),bIe(c,E??null,S),kIe(c,s,S),uie(c,t||null,rE);const L=f==null?void 0:f.run,T=C.useCallback(()=>{var N;if(!L||!c||!c.operations||!c.hasFocus()){L==null||L();return}const F=c.indexFromPos(c.getCursor());let A;for(const z of c.operations)z.loc&&z.loc.start<=F&&z.loc.end>=F&&(A=(N=z.name)==null?void 0:N.value);A&&A!==c.operationName&&d(A),L()},[c,L,d]);return Bc(c,["Cmd-Enter","Ctrl-Enter"],T),Bc(c,["Shift-Ctrl-C"],b),Bc(c,["Shift-Ctrl-P","Shift-Ctrl-F"],_),Bc(c,["Shift-Ctrl-M"],k),y}Ce(rE,"useQueryEditor");function CIe(u,e,t){C.useEffect(()=>{if(!u)return;const n=u.options.lint.schema!==e;u.state.lint.linterOptions.schema=e,u.options.lint.schema=e,u.options.hintOptions.schema=e,u.options.info.schema=e,u.options.jump.schema=e,n&&t.current&&t.current.signal(u,"change",u)},[u,e,t])}Ce(CIe,"useSynchronizeSchema");function bIe(u,e,t){C.useEffect(()=>{if(!u)return;const n=u.options.lint.validationRules!==e;u.state.lint.linterOptions.validationRules=e,u.options.lint.validationRules=e,n&&t.current&&t.current.signal(u,"change",u)},[u,e,t])}Ce(bIe,"useSynchronizeValidationRules");function kIe(u,e,t){const n=C.useMemo(()=>[...e.values()],[e]);C.useEffect(()=>{if(!u)return;const i=u.options.lint.externalFragments!==n;u.state.lint.linterOptions.externalFragments=n,u.options.lint.externalFragments=n,u.options.hintOptions.externalFragments=n,i&&t.current&&t.current.signal(u,"change",u)},[u,n,t])}Ce(kIe,"useSynchronizeExternalFragments");const jRu=/^[a-zA-Z0-9_@(]$/,yIe="query",VRu="operationName";function FIe({defaultQuery:u,defaultHeaders:e,headers:t,defaultTabs:n,query:i,variables:r,storage:a,shouldPersistHeaders:o}){const s=a==null?void 0:a.get(fF);try{if(!s)throw new Error("Storage for tabs is empty");const l=JSON.parse(s),c=o?t:void 0;if(AIe(l)){const d=mF({query:i,variables:r,headers:c});let h=-1;for(let E=0;E=0)l.activeTabIndex=h;else{const E=i?KI(i):null;l.tabs.push({id:aie(),hash:d,title:E||oie,query:i,variables:r,headers:t,operationName:E,response:null}),l.activeTabIndex=l.tabs.length-1}return l}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(n||[{query:i??u,variables:r,headers:t??e}]).map(iie)}}}Ce(FIe,"getDefaultTabState");function AIe(u){return u&&typeof u=="object"&&!Array.isArray(u)&&SIe(u,"activeTabIndex")&&"tabs"in u&&Array.isArray(u.tabs)&&u.tabs.every(_Ie)}Ce(AIe,"isTabsState");function _Ie(u){return u&&typeof u=="object"&&!Array.isArray(u)&&eY(u,"id")&&eY(u,"title")&&KD(u,"query")&&KD(u,"variables")&&KD(u,"headers")&&KD(u,"operationName")&&KD(u,"response")}Ce(_Ie,"isTabState");function SIe(u,e){return e in u&&typeof u[e]=="number"}Ce(SIe,"hasNumberKey");function eY(u,e){return e in u&&typeof u[e]=="string"}Ce(eY,"hasStringKey");function KD(u,e){return e in u&&(typeof u[e]=="string"||u[e]===null)}Ce(KD,"hasStringOrNullKey");function BIe({queryEditor:u,variableEditor:e,headerEditor:t,responseEditor:n}){return C.useCallback(i=>{const r=(u==null?void 0:u.getValue())??null,a=(e==null?void 0:e.getValue())??null,o=(t==null?void 0:t.getValue())??null,s=(u==null?void 0:u.operationName)??null,l=(n==null?void 0:n.getValue())??null;return rie(i,{query:r,variables:a,headers:o,response:l,operationName:s})},[u,e,t,n])}Ce(BIe,"useSynchronizeActiveTabValues");function nie(u,e=!1){return JSON.stringify(u,(t,n)=>t==="hash"||t==="response"||!e&&t==="headers"?null:n)}Ce(nie,"serializeTabState");function wIe({storage:u,shouldPersistHeaders:e}){const t=C.useMemo(()=>lp(500,n=>{u==null||u.set(fF,n)}),[u]);return C.useCallback(n=>{t(nie(n,e))},[e,t])}Ce(wIe,"useStoreTabs");function zIe({queryEditor:u,variableEditor:e,headerEditor:t,responseEditor:n}){return C.useCallback(({query:i,variables:r,headers:a,response:o})=>{u==null||u.setValue(i??""),e==null||e.setValue(r??""),t==null||t.setValue(a??""),n==null||n.setValue(o??"")},[t,u,n,e])}Ce(zIe,"useSetEditorValues");function iie({query:u=null,variables:e=null,headers:t=null}={}){return{id:aie(),hash:mF({query:u,variables:e,headers:t}),title:u&&KI(u)||oie,query:u,variables:e,headers:t,operationName:null,response:null}}Ce(iie,"createTab");function rie(u,e){return{...u,tabs:u.tabs.map((t,n)=>{if(n!==u.activeTabIndex)return t;const i={...t,...e};return{...i,hash:mF(i),title:i.operationName||(i.query?KI(i.query):void 0)||oie}})}}Ce(rie,"setPropertiesInActiveTab");function aie(){const u=Ce(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),"s4");return`${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`}Ce(aie,"guid");function mF(u){return[u.query??"",u.variables??"",u.headers??""].join("|")}Ce(mF,"hashFromTabContents");function KI(u){const e=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(u);return(e==null?void 0:e[2])??null}Ce(KI,"fuzzyExtractOperationName");function LIe(u){const e=u==null?void 0:u.get(fF);if(e){const t=JSON.parse(e);u==null||u.set(fF,JSON.stringify(t,(n,i)=>n==="headers"?null:i))}}Ce(LIe,"clearHeadersFromTabs");const oie="",fF="tabState";function xf({editorTheme:u=OI,keyMap:e=jI,onClickReference:t,onEdit:n,readOnly:i=!1}={},r){const{initialVariables:a,variableEditor:o,setVariableEditor:s}=Ia({nonNull:!0,caller:r||xf}),l=t_(),c=cp({caller:r||xf}),d=LC({caller:r||xf}),h=C.useRef(null),E=C.useRef();return C.useEffect(()=>{let g=!0;return zC([Le(()=>import("./hint.es2-c83d9215.js"),["./hint.es2-c83d9215.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./forEachState.es-b2033c2b.js"],import.meta.url),Le(()=>import("./lint.es3-fa3ae97b.js"),["./lint.es3-fa3ae97b.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js"],import.meta.url),Le(()=>import("./mode.es2-40f14a23.js"),["./mode.es2-40f14a23.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./mode-indent.es-057a4f6a.js"],import.meta.url)]).then(m=>{if(!g)return;E.current=m;const f=h.current;if(!f)return;const p=m(f,{value:a,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:i?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:f,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:VI});p.addKeyMap({"Cmd-Space"(){p.showHint({completeSingle:!1,container:f})},"Ctrl-Space"(){p.showHint({completeSingle:!1,container:f})},"Alt-Space"(){p.showHint({completeSingle:!1,container:f})},"Shift-Space"(){p.showHint({completeSingle:!1,container:f})}}),p.on("keyup",(D,x)=>{const{code:b,key:k,shiftKey:_}=x,y=b.startsWith("Key"),S=!_&&b.startsWith("Digit");(y||S||k==="_"||k==='"')&&D.execCommand("autocomplete")}),s(p)}),()=>{g=!1}},[u,a,i,s]),u_(o,"keyMap",e),tie(o,n,MIe,"variables",xf),uie(o,t||null,xf),Bc(o,["Cmd-Enter","Ctrl-Enter"],l==null?void 0:l.run),Bc(o,["Shift-Ctrl-P"],d),Bc(o,["Shift-Ctrl-M"],c),h}Ce(xf,"useVariableEditor");const MIe="variables",TIe=vm("EditorContext");function PIe(u){const e=bm(),[t,n]=C.useState(null),[i,r]=C.useState(null),[a,o]=C.useState(null),[s,l]=C.useState(null),[c,d]=C.useState(()=>{const I=(e==null?void 0:e.get(f$))!==null;return u.shouldPersistHeaders!==!1&&I?(e==null?void 0:e.get(f$))==="true":!!u.shouldPersistHeaders});Fb(t,u.headers),Fb(i,u.query),Fb(a,u.response),Fb(s,u.variables);const h=wIe({storage:e,shouldPersistHeaders:c}),[E]=C.useState(()=>{const I=u.query??(e==null?void 0:e.get(yIe))??null,j=u.variables??(e==null?void 0:e.get(MIe))??null,V=u.headers??(e==null?void 0:e.get(b8))??null,H=u.response??"",q=FIe({query:I,variables:j,headers:V,defaultTabs:u.defaultTabs,defaultQuery:u.defaultQuery||HRu,defaultHeaders:u.defaultHeaders,storage:e,shouldPersistHeaders:c});return h(q),{query:I??(q.activeTabIndex===0?q.tabs[0].query:null)??"",variables:j??"",headers:V??u.defaultHeaders??"",response:H,tabState:q}}),[g,m]=C.useState(E.tabState),f=C.useCallback(I=>{if(I){e==null||e.set(b8,(t==null?void 0:t.getValue())??"");const j=nie(g,!0);e==null||e.set(fF,j)}else e==null||e.set(b8,""),LIe(e);d(I),e==null||e.set(f$,I.toString())},[e,g,t]),p=C.useRef();C.useEffect(()=>{const I=!!u.shouldPersistHeaders;p.current!==I&&(f(I),p.current=I)},[u.shouldPersistHeaders,f]);const D=BIe({queryEditor:i,variableEditor:s,headerEditor:t,responseEditor:a}),x=zIe({queryEditor:i,variableEditor:s,headerEditor:t,responseEditor:a}),{onTabChange:b,defaultHeaders:k,children:_}=u,y=C.useCallback(()=>{m(I=>{const j=D(I),V={tabs:[...j.tabs,iie({headers:k})],activeTabIndex:j.tabs.length};return h(V),x(V.tabs[V.activeTabIndex]),b==null||b(V),V})},[k,b,x,h,D]),S=C.useCallback(I=>{m(j=>{const V={...j,activeTabIndex:I};return h(V),x(V.tabs[V.activeTabIndex]),b==null||b(V),V})},[b,x,h]),B=C.useCallback(I=>{m(j=>{const V=j.tabs[j.activeTabIndex],H={tabs:I,activeTabIndex:I.indexOf(V)};return h(H),x(H.tabs[H.activeTabIndex]),b==null||b(H),H})},[b,x,h]),L=C.useCallback(I=>{m(j=>{const V={tabs:j.tabs.filter((H,q)=>I!==q),activeTabIndex:Math.max(j.activeTabIndex-1,0)};return h(V),x(V.tabs[V.activeTabIndex]),b==null||b(V),V})},[b,x,h]),T=C.useCallback(I=>{m(j=>{const V=rie(j,I);return h(V),b==null||b(V),V})},[b,h]),{onEditOperationName:N}=u,F=C.useCallback(I=>{i&&(i.operationName=I,T({operationName:I}),N==null||N(I))},[N,i,T]),A=C.useMemo(()=>{const I=new Map;if(Array.isArray(u.externalFragments))for(const j of u.externalFragments)I.set(j.name.value,j);else if(typeof u.externalFragments=="string")Jc(fm(u.externalFragments,{}),{FragmentDefinition(j){I.set(j.name.value,j)}});else if(u.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return I},[u.externalFragments]),z=C.useMemo(()=>u.validationRules||[],[u.validationRules]),P=C.useMemo(()=>({...g,addTab:y,changeTab:S,moveTab:B,closeTab:L,updateActiveTabValues:T,headerEditor:t,queryEditor:i,responseEditor:a,variableEditor:s,setHeaderEditor:n,setQueryEditor:r,setResponseEditor:o,setVariableEditor:l,setOperationName:F,initialQuery:E.query,initialVariables:E.variables,initialHeaders:E.headers,initialResponse:E.response,externalFragments:A,validationRules:z,shouldPersistHeaders:c,setShouldPersistHeaders:f}),[g,y,S,B,L,T,t,i,a,s,F,E,A,z,c,f]);return w.jsx(TIe.Provider,{value:P,children:_})}Ce(PIe,"EditorContextProvider");const Ia=Cm(TIe),f$="shouldPersistHeaders",HRu=`# Welcome to GraphiQL +`))}k(""),E(!0);const N=n??a.operationName??void 0;c==null||c.addToHistory({query:y,variables:S,headers:L,operationName:N});try{let F={data:{}};const A=Ce(I=>{if(_!==f.current)return;let j=Array.isArray(I)?I:!1;if(!j&&typeof I=="object"&&I!==null&&"hasNext"in I&&(j=[I]),j){const V={data:F.data},H=[...(F==null?void 0:F.errors)||[],...j.flatMap(q=>q.errors).filter(Boolean)];H.length&&(V.errors=H);for(const q of j){const{path:J,data:Q,errors:X,...Y}=q;if(J){if(!Q)throw new Error(`Expected part to contain a data property, but got ${q}`);TJt(V.data,J,Q,{merge:!0})}else Q&&(V.data=Q);F={...V,...Y}}E(!1),k(sZ(F))}else{const V=sZ(I);E(!1),k(V)}},"handleResponse"),z=u({query:y,variables:B,operationName:N},{headers:T??void 0,documentAST:a.documentAST??void 0}),P=await Promise.resolve(z);if(VTe(P))m(P.subscribe({next(I){A(I)},error(I){E(!1),I&&k(Yy(I)),m(null)},complete(){E(!1),m(null)}}));else if(HTe(P)){m({unsubscribe:()=>{var I,j;return(j=(I=P[Symbol.asyncIterator]()).return)==null?void 0:j.call(I)}});for await(const I of P)A(I);E(!1),m(null)}else A(P)}catch(F){E(!1),k(Yy(F)),m(null)}},[d,i,u,r,c,n,a,o,p,g,l,s]),x=!!g,b=C.useMemo(()=>({isFetching:h,isSubscribed:x,operationName:n??null,run:D,stop:p}),[h,x,n,D,p]);return w.jsx(eIe.Provider,{value:b,children:t})}Ce(xT,"ExecutionContextProvider");const t_=Cm(eIe);function ZZ({json:u,errorMessageParse:e,errorMessageType:t}){let n;try{n=u&&u.trim()!==""?JSON.parse(u):void 0}catch(r){throw new Error(`${e}: ${r instanceof Error?r.message:r}.`)}const i=typeof n=="object"&&n!==null&&!Array.isArray(n);if(n!==void 0&&!i)throw new Error(t);return n}Ce(ZZ,"tryParseJsonObject");const OI="graphiql",jI="sublime";let tIe=!1;typeof window=="object"&&(tIe=window.navigator.platform.toLowerCase().indexOf("mac")===0);const VI={[tIe?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function zC(u,e){const t=await Le(()=>import("./codemirror.es-52e8b92d.js"),["./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.c).then(n=>typeof n=="function"?n:n.default);return await Promise.all((e==null?void 0:e.useCommonAddons)===!1?u:[Le(()=>import("./show-hint.es-b981493e.js"),["./show-hint.es-b981493e.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.s),Le(()=>import("./matchbrackets.es-97d2e827.js"),["./matchbrackets.es-97d2e827.js","./codemirror.es2-5884f31a.js","./matchbrackets.es2-f53f57e6.js"],import.meta.url).then(n=>n.m),Le(()=>import("./closebrackets.es-e969742b.js"),["./closebrackets.es-e969742b.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.c),Le(()=>import("./brace-fold.es-f2e3735d.js"),["./brace-fold.es-f2e3735d.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.b),Le(()=>import("./foldgutter.es-b6cee46a.js"),["./foldgutter.es-b6cee46a.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.f),Le(()=>import("./lint.es-fe7166bb.js"),["./lint.es-fe7166bb.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(n=>n.l),Le(()=>import("./searchcursor.es-b1a352a2.js"),["./searchcursor.es-b1a352a2.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js"],import.meta.url).then(n=>n.s),Le(()=>import("./jump-to-line.es-d901ea33.js"),["./jump-to-line.es-d901ea33.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(n=>n.j),Le(()=>import("./dialog.es-dffe62e7.js"),["./dialog.es-dffe62e7.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(n=>n.d),Le(()=>import("./sublime.es-e2a3eb60.js"),["./sublime.es-e2a3eb60.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./matchbrackets.es2-f53f57e6.js"],import.meta.url).then(n=>n.s),...u]),t}Ce(zC,"importCodeMirror");const TRu=Ce(u=>u?Js(u):"","printDefault");function Zne({field:u}){if(!("defaultValue"in u)||u.defaultValue===void 0)return null;const e=Mx(u.defaultValue,u.type);return e?w.jsxs(w.Fragment,{children:[" = ",w.jsx("span",{className:"graphiql-doc-explorer-default-value",children:TRu(e)})]}):null}Ce(Zne,"DefaultValue");const uIe=vm("SchemaContext");function Yne(u){if(!u.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:e,headerEditor:t}=Ia({nonNull:!0,caller:Yne}),[n,i]=C.useState(),[r,a]=C.useState(!1),[o,s]=C.useState(null),l=C.useRef(0);C.useEffect(()=>{i(XJ(u.schema)||u.schema===null||u.schema===void 0?u.schema:void 0),l.current++},[u.schema]);const c=C.useRef(e);C.useEffect(()=>{t&&(c.current=t.getValue())});const{introspectionQuery:d,introspectionQueryName:h,introspectionQuerySansSubscriptions:E}=nIe({inputValueDeprecation:u.inputValueDeprecation,introspectionQueryName:u.introspectionQueryName,schemaDescription:u.schemaDescription}),{fetcher:g,onSchemaChange:m,dangerouslyAssumeSchemaIsValid:f,children:p}=u,D=C.useCallback(()=>{if(XJ(u.schema)||u.schema===null)return;const k=++l.current,_=u.schema;async function y(){if(_)return _;const S=iIe(c.current);if(!S.isValidJSON){s("Introspection failed as headers are invalid.");return}const B=S.headers?{headers:S.headers}:{},L=Ume(g({query:d,operationName:h},B));if(!Gme(L)){s("Fetcher did not return a Promise for introspection.");return}a(!0),s(null);let T=await L;if(typeof T!="object"||T===null||!("data"in T)){const F=Ume(g({query:E,operationName:h},B));if(!Gme(F))throw new Error("Fetcher did not return a Promise for introspection.");T=await F}if(a(!1),T!=null&&T.data&&"__schema"in T.data)return T.data;const N=typeof T=="string"?T:sZ(T);s(N)}Ce(y,"fetchIntrospectionData"),y().then(S=>{if(!(k!==l.current||!S))try{const B=wWt(S);i(B),m==null||m(B)}catch(B){s(Yy(B))}}).catch(S=>{k===l.current&&(s(Yy(S)),a(!1))})},[g,h,d,E,m,u.schema]);C.useEffect(()=>{D()},[D]),C.useEffect(()=>{function k(_){_.ctrlKey&&_.key==="R"&&D()}return Ce(k,"triggerIntrospection"),window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)});const x=C.useMemo(()=>!n||f?[]:oTe(n),[n,f]),b=C.useMemo(()=>({fetchError:o,introspect:D,isFetching:r,schema:n,validationErrors:x}),[o,D,r,n,x]);return w.jsx(uIe.Provider,{value:b,children:p})}Ce(Yne,"SchemaContextProvider");const V1=Cm(uIe);function nIe({inputValueDeprecation:u,introspectionQueryName:e,schemaDescription:t}){return C.useMemo(()=>{const n=e||"IntrospectionQuery";let i=BWt({inputValueDeprecation:u,schemaDescription:t});e&&(i=i.replace("query IntrospectionQuery",`query ${n}`));const r=i.replace("subscriptionType { name }","");return{introspectionQueryName:n,introspectionQuery:i,introspectionQuerySansSubscriptions:r}},[u,e,t])}Ce(nIe,"useIntrospectionQuery");function iIe(u){let e=null,t=!0;try{u&&(e=JSON.parse(u))}catch{t=!1}return{headers:e,isValidJSON:t}}Ce(iIe,"parseHeaderString");const J9={name:"Docs"},rIe=vm("ExplorerContext");function Qne(u){const{schema:e,validationErrors:t}=V1({nonNull:!0,caller:Qne}),[n,i]=C.useState([J9]),r=C.useCallback(l=>{i(c=>c.at(-1).def===l.def?c:[...c,l])},[]),a=C.useCallback(()=>{i(l=>l.length>1?l.slice(0,-1):l)},[]),o=C.useCallback(()=>{i(l=>l.length===1?l:[J9])},[]);C.useEffect(()=>{e==null||t.length>0?o():i(l=>{if(l.length===1)return l;const c=[J9];let d=null;for(const h of l)if(h!==J9)if(h.def)if(Wue(h.def)){const E=e.getType(h.def.name);if(E)c.push({name:h.name,def:E}),d=E;else break}else{if(d===null)break;if(Ki(d)||Io(d)){const E=d.getFields()[h.name];if(E)c.push({name:h.name,def:E});else break}else{if(pm(d)||L0(d)||Wi(d)||Ml(d))break;{const E=d;if(E.args.find(g=>g.name===h.name))c.push({name:h.name,def:E});else break}}}else d=null,c.push(h);return c})},[o,e,t]);const s=C.useMemo(()=>({explorerNavStack:n,push:r,pop:a,reset:o}),[n,r,a,o]);return w.jsx(rIe.Provider,{value:s,children:u.children})}Ce(Qne,"ExplorerContextProvider");const km=Cm(rIe);function hF(u,e){return wr(u)?w.jsxs(w.Fragment,{children:[hF(u.ofType,e),"!"]}):ss(u)?w.jsxs(w.Fragment,{children:["[",hF(u.ofType,e),"]"]}):e(u)}Ce(hF,"renderType");function Sc(u){const{push:e}=km({nonNull:!0,caller:Sc});return u.type?hF(u.type,t=>w.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),e({name:t.name,def:t})},href:"#",children:t.name})):null}Ce(Sc,"TypeLink");function EF({arg:u,showDefaultValue:e,inline:t}){const n=w.jsxs("span",{children:[w.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:u.name}),": ",w.jsx(Sc,{type:u.type}),e!==!1&&w.jsx(Zne,{field:u})]});return t?n:w.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[n,u.description?w.jsx(S1,{type:"description",children:u.description}):null,u.deprecationReason?w.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[w.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),w.jsx(S1,{type:"deprecation",children:u.deprecationReason})]}):null]})}Ce(EF,"Argument");function Xne(u){return u.children?w.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[w.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),w.jsx(S1,{type:"deprecation",onlyShowFirstChild:u.preview??!0,children:u.children})]}):null}Ce(Xne,"DeprecationReason");function aIe({directive:u}){return w.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",u.name.value]})}Ce(aIe,"Directive");function M0(u){const e=PRu[u.title];return w.jsxs("div",{children:[w.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[w.jsx(e,{}),u.title]}),w.jsx("div",{className:"graphiql-doc-explorer-section-content",children:u.children})]})}Ce(M0,"ExplorerSection");const PRu={Arguments:nRu,"Deprecated Arguments":sRu,"Deprecated Enum Values":lRu,"Deprecated Fields":cRu,Directives:dRu,"Enum Values":gRu,Fields:mRu,Implements:pRu,Implementations:q9,"Possible Types":q9,"Root Types":ARu,Type:q9,"All Schema Types":q9};function oIe(u){return w.jsxs(w.Fragment,{children:[u.field.description?w.jsx(S1,{type:"description",children:u.field.description}):null,w.jsx(Xne,{preview:!1,children:u.field.deprecationReason}),w.jsx(M0,{title:"Type",children:w.jsx(Sc,{type:u.field.type})}),w.jsx(sIe,{field:u.field}),w.jsx(lIe,{field:u.field})]})}Ce(oIe,"FieldDocumentation");function sIe({field:u}){const[e,t]=C.useState(!1),n=C.useCallback(()=>{t(!0)},[]);if(!("args"in u))return null;const i=[],r=[];for(const a of u.args)a.deprecationReason?r.push(a):i.push(a);return w.jsxs(w.Fragment,{children:[i.length>0?w.jsx(M0,{title:"Arguments",children:i.map(a=>w.jsx(EF,{arg:a},a.name))}):null,r.length>0?e||i.length===0?w.jsx(M0,{title:"Deprecated Arguments",children:r.map(a=>w.jsx(EF,{arg:a},a.name))}):w.jsx(pc,{type:"button",onClick:n,children:"Show Deprecated Arguments"}):null]})}Ce(sIe,"Arguments");function lIe({field:u}){var e;const t=((e=u.astNode)==null?void 0:e.directives)||[];return!t||t.length===0?null:w.jsx(M0,{title:"Directives",children:t.map(n=>w.jsx("div",{children:w.jsx(aIe,{directive:n})},n.name.value))})}Ce(lIe,"Directives");function cIe(u){var e,t,n,i;const r=u.schema.getQueryType(),a=(t=(e=u.schema).getMutationType)==null?void 0:t.call(e),o=(i=(n=u.schema).getSubscriptionType)==null?void 0:i.call(n),s=u.schema.getTypeMap(),l=[r==null?void 0:r.name,a==null?void 0:a.name,o==null?void 0:o.name];return w.jsxs(w.Fragment,{children:[w.jsx(S1,{type:"description",children:u.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),w.jsxs(M0,{title:"Root Types",children:[r?w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",w.jsx(Sc,{type:r})]}):null,a&&w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",w.jsx(Sc,{type:a})]}),o&&w.jsxs("div",{children:[w.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",w.jsx(Sc,{type:o})]})]}),w.jsx(M0,{title:"All Schema Types",children:s&&w.jsx("div",{children:Object.values(s).map(c=>l.includes(c.name)||c.name.startsWith("__")?null:w.jsx("div",{children:w.jsx(Sc,{type:c})},c.name))})})]})}Ce(cIe,"SchemaDocumentation");function lp(u,e){let t;return function(...n){t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,e(...n)},u)}}Ce(lp,"debounce");function eie(){const{explorerNavStack:u,push:e}=km({nonNull:!0,caller:eie}),t=C.useRef(null),n=vT(),[i,r]=C.useState(""),[a,o]=C.useState(n(i)),s=C.useMemo(()=>lp(200,E=>{o(n(E))}),[n]);C.useEffect(()=>{s(i)},[s,i]),C.useEffect(()=>{function E(g){var m;g.metaKey&&g.key==="k"&&((m=t.current)==null||m.focus())}return Ce(E,"handleKeyDown"),window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[]);const l=u.at(-1),c=C.useCallback(E=>{e("field"in E?{name:E.field.name,def:E.field}:{name:E.type.name,def:E.type})},[e]),d=C.useRef(!1),h=C.useCallback(E=>{d.current=E.type==="focus"},[]);return u.length===1||Ki(l.def)||Wi(l.def)||Io(l.def)?w.jsxs(zD,{as:"div",className:"graphiql-doc-explorer-search",onChange:c,"data-state":d?void 0:"idle","aria-label":`Search ${l.name}...`,children:[w.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var E;(E=t.current)==null||E.focus()},children:[w.jsx(xRu,{}),w.jsx(zD.Input,{autoComplete:"off",onFocus:h,onBlur:h,onChange:E=>r(E.target.value),placeholder:"⌘ K",ref:t,value:i,"data-cy":"doc-explorer-input"})]}),d.current&&w.jsxs(zD.Options,{"data-cy":"doc-explorer-list",children:[a.within.length+a.types.length+a.fields.length===0?w.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):a.within.map((E,g)=>w.jsx(zD.Option,{value:E,"data-cy":"doc-explorer-option",children:w.jsx(YZ,{field:E.field,argument:E.argument})},`within-${g}`)),a.within.length>0&&a.types.length+a.fields.length>0?w.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,a.types.map((E,g)=>w.jsx(zD.Option,{value:E,"data-cy":"doc-explorer-option",children:w.jsx(CT,{type:E.type})},`type-${g}`)),a.fields.map((E,g)=>w.jsxs(zD.Option,{value:E,"data-cy":"doc-explorer-option",children:[w.jsx(CT,{type:E.type}),".",w.jsx(YZ,{field:E.field,argument:E.argument})]},`field-${g}`))]})]}):null}Ce(eie,"Search");function vT(u){const{explorerNavStack:e}=km({nonNull:!0,caller:u||vT}),{schema:t}=V1({nonNull:!0,caller:u||vT}),n=e.at(-1);return C.useCallback(i=>{const r={within:[],types:[],fields:[]};if(!t)return r;const a=n.def,o=t.getTypeMap();let s=Object.keys(o);a&&(s=s.filter(l=>l!==a.name),s.unshift(a.name));for(const l of s){if(r.within.length+r.types.length+r.fields.length>=100)break;const c=o[l];if(a!==c&&C8(l,i)&&r.types.push({type:c}),!Ki(c)&&!Wi(c)&&!Io(c))continue;const d=c.getFields();for(const h in d){const E=d[h];let g;if(!C8(h,i))if("args"in E){if(g=E.args.filter(m=>C8(m.name,i)),g.length===0)continue}else continue;r[a===c?"within":"fields"].push(...g?g.map(m=>({type:c,field:E,argument:m})):[{type:c,field:E}])}}return r},[n.def,t])}Ce(vT,"useSearchResults");function C8(u,e){try{const t=e.replaceAll(/[^_0-9A-Za-z]/g,n=>"\\"+n);return u.search(new RegExp(t,"i"))!==-1}catch{return u.toLowerCase().includes(e.toLowerCase())}}Ce(C8,"isMatch");function CT(u){return w.jsx("span",{className:"graphiql-doc-explorer-search-type",children:u.type.name})}Ce(CT,"Type");function YZ({field:u,argument:e}){return w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"graphiql-doc-explorer-search-field",children:u.name}),e?w.jsxs(w.Fragment,{children:["(",w.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:e.name}),":"," ",hF(e.type,t=>w.jsx(CT,{type:t})),")"]}):null]})}Ce(YZ,"Field$1");function dIe(u){const{push:e}=km({nonNull:!0});return w.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:t=>{t.preventDefault(),e({name:u.field.name,def:u.field})},href:"#",children:u.field.name})}Ce(dIe,"FieldLink");function hIe(u){return Wue(u.type)?w.jsxs(w.Fragment,{children:[u.type.description?w.jsx(S1,{type:"description",children:u.type.description}):null,w.jsx(EIe,{type:u.type}),w.jsx(gIe,{type:u.type}),w.jsx(mIe,{type:u.type}),w.jsx(fIe,{type:u.type})]}):null}Ce(hIe,"TypeDocumentation");function EIe({type:u}){return Ki(u)&&u.getInterfaces().length>0?w.jsx(M0,{title:"Implements",children:u.getInterfaces().map(e=>w.jsx("div",{children:w.jsx(Sc,{type:e})},e.name))}):null}Ce(EIe,"ImplementsInterfaces");function gIe({type:u}){const[e,t]=C.useState(!1),n=C.useCallback(()=>{t(!0)},[]);if(!Ki(u)&&!Wi(u)&&!Io(u))return null;const i=u.getFields(),r=[],a=[];for(const o of Object.keys(i).map(s=>i[s]))o.deprecationReason?a.push(o):r.push(o);return w.jsxs(w.Fragment,{children:[r.length>0?w.jsx(M0,{title:"Fields",children:r.map(o=>w.jsx(QZ,{field:o},o.name))}):null,a.length>0?e||r.length===0?w.jsx(M0,{title:"Deprecated Fields",children:a.map(o=>w.jsx(QZ,{field:o},o.name))}):w.jsx(pc,{type:"button",onClick:n,children:"Show Deprecated Fields"}):null]})}Ce(gIe,"Fields");function QZ({field:u}){const e="args"in u?u.args.filter(t=>!t.deprecationReason):[];return w.jsxs("div",{className:"graphiql-doc-explorer-item",children:[w.jsxs("div",{children:[w.jsx(dIe,{field:u}),e.length>0?w.jsxs(w.Fragment,{children:["(",w.jsx("span",{children:e.map(t=>e.length===1?w.jsx(EF,{arg:t,inline:!0},t.name):w.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:w.jsx(EF,{arg:t,inline:!0})},t.name))}),")"]}):null,": ",w.jsx(Sc,{type:u.type}),w.jsx(Zne,{field:u})]}),u.description?w.jsx(S1,{type:"description",onlyShowFirstChild:!0,children:u.description}):null,w.jsx(Xne,{children:u.deprecationReason})]})}Ce(QZ,"Field");function mIe({type:u}){const[e,t]=C.useState(!1),n=C.useCallback(()=>{t(!0)},[]);if(!L0(u))return null;const i=[],r=[];for(const a of u.getValues())a.deprecationReason?r.push(a):i.push(a);return w.jsxs(w.Fragment,{children:[i.length>0?w.jsx(M0,{title:"Enum Values",children:i.map(a=>w.jsx(XZ,{value:a},a.name))}):null,r.length>0?e||i.length===0?w.jsx(M0,{title:"Deprecated Enum Values",children:r.map(a=>w.jsx(XZ,{value:a},a.name))}):w.jsx(pc,{type:"button",onClick:n,children:"Show Deprecated Values"}):null]})}Ce(mIe,"EnumValues");function XZ({value:u}){return w.jsxs("div",{className:"graphiql-doc-explorer-item",children:[w.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:u.name}),u.description?w.jsx(S1,{type:"description",children:u.description}):null,u.deprecationReason?w.jsx(S1,{type:"deprecation",children:u.deprecationReason}):null]})}Ce(XZ,"EnumValue");function fIe({type:u}){const{schema:e}=V1({nonNull:!0});return!e||!pg(u)?null:w.jsx(M0,{title:Wi(u)?"Implementations":"Possible Types",children:e.getPossibleTypes(u).map(t=>w.jsx("div",{children:w.jsx(Sc,{type:t})},t.name))})}Ce(fIe,"PossibleTypes");function bT(){const{fetchError:u,isFetching:e,schema:t,validationErrors:n}=V1({nonNull:!0,caller:bT}),{explorerNavStack:i,pop:r}=km({nonNull:!0,caller:bT}),a=i.at(-1);let o=null;u?o=w.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):n.length>0?o=w.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",n[0].message]}):e?o=w.jsx(Jne,{}):t?i.length===1?o=w.jsx(cIe,{schema:t}):$ue(a.def)?o=w.jsx(hIe,{type:a.def}):a.def&&(o=w.jsx(oIe,{field:a.def})):o=w.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"});let s;return i.length>1&&(s=i.at(-2).name),w.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[w.jsxs("div",{className:"graphiql-doc-explorer-header",children:[w.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[s&&w.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:l=>{l.preventDefault(),r()},"aria-label":`Go back to ${s}`,children:[w.jsx(rRu,{}),s]}),w.jsx("div",{className:"graphiql-doc-explorer-title",children:a.name})]}),w.jsx(eie,{},a.name)]}),w.jsx("div",{className:"graphiql-doc-explorer-content",children:o})]})}Ce(bT,"DocExplorer");const gF={title:"Documentation Explorer",icon:Ce(function(){const u=HI();return(u==null?void 0:u.visiblePlugin)===gF?w.jsx(hRu,{}):w.jsx(ERu,{})},"Icon"),content:bT},lDe={title:"History",icon:fRu,content:QRe},pIe=vm("PluginContext");function DIe(u){const e=bm(),t=km(),n=II(),i=!!t,r=!!n,a=C.useMemo(()=>{const E=[],g={};i&&(E.push(gF),g[gF.title]=!0),r&&(E.push(lDe),g[lDe.title]=!0);for(const m of u.plugins||[]){if(typeof m.title!="string"||!m.title)throw new Error("All GraphiQL plugins must have a unique title");if(g[m.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${m.title}'`);E.push(m),g[m.title]=!0}return E},[i,r,u.plugins]),[o,s]=C.useState(()=>{const E=e==null?void 0:e.get(cDe);return a.find(m=>m.title===E)||(E&&(e==null||e.set(cDe,"")),u.visiblePlugin&&a.find(m=>(typeof u.visiblePlugin=="string"?m.title:m)===u.visiblePlugin)||null)}),{onTogglePluginVisibility:l,children:c}=u,d=C.useCallback(E=>{const g=E&&a.find(m=>(typeof E=="string"?m.title:m)===E)||null;s(m=>g===m?m:(l==null||l(g),g))},[l,a]);C.useEffect(()=>{u.visiblePlugin&&d(u.visiblePlugin)},[a,u.visiblePlugin,d]);const h=C.useMemo(()=>({plugins:a,setVisiblePlugin:d,visiblePlugin:o}),[a,d,o]);return w.jsx(pIe.Provider,{value:h,children:c})}Ce(DIe,"PluginContextProvider");const HI=Cm(pIe),cDe="visiblePlugin";function xIe(u,e,t,n,i,r){zC([],{useCommonAddons:!1}).then(o=>{let s,l,c,d,h,E,g,m,f;o.on(e,"select",(p,D)=>{if(!s){const x=D.parentNode;s=document.createElement("div"),s.className="CodeMirror-hint-information",x.append(s);const b=document.createElement("header");b.className="CodeMirror-hint-information-header",s.append(b),l=document.createElement("span"),l.className="CodeMirror-hint-information-field-name",b.append(l),c=document.createElement("span"),c.className="CodeMirror-hint-information-type-name-pill",b.append(c),d=document.createElement("span"),c.append(d),h=document.createElement("a"),h.className="CodeMirror-hint-information-type-name",h.href="javascript:void 0",h.addEventListener("click",a),c.append(h),E=document.createElement("span"),c.append(E),g=document.createElement("div"),g.className="CodeMirror-hint-information-description",s.append(g),m=document.createElement("div"),m.className="CodeMirror-hint-information-deprecation",s.append(m);const k=document.createElement("span");k.className="CodeMirror-hint-information-deprecation-label",k.textContent="Deprecated",m.append(k),f=document.createElement("div"),f.className="CodeMirror-hint-information-deprecation-reason",m.append(f);const _=parseInt(window.getComputedStyle(s).paddingBottom.replace(/px$/,""),10)||0,y=parseInt(window.getComputedStyle(s).maxHeight.replace(/px$/,""),10)||0,S=Ce(()=>{s&&(s.style.paddingTop=x.scrollTop+_+"px",s.style.maxHeight=x.scrollTop+y+"px")},"handleScroll");x.addEventListener("scroll",S);let B;x.addEventListener("DOMNodeRemoved",B=Ce(L=>{L.target===x&&(x.removeEventListener("scroll",S),x.removeEventListener("DOMNodeRemoved",B),s&&s.removeEventListener("click",a),s=null,l=null,c=null,d=null,h=null,E=null,g=null,m=null,f=null,B=null)},"onRemoveFn"))}if(l&&(l.textContent=p.text),c&&d&&h&&E)if(p.type){c.style.display="inline";const x=Ce(b=>{wr(b)?(E.textContent="!"+E.textContent,x(b.ofType)):ss(b)?(d.textContent+="[",E.textContent="]"+E.textContent,x(b.ofType)):h.textContent=b.name},"renderType");d.textContent="",E.textContent="",x(p.type)}else d.textContent="",h.textContent="",E.textContent="",c.style.display="none";g&&(p.description?(g.style.display="block",g.innerHTML=DT.render(p.description)):(g.style.display="none",g.innerHTML="")),m&&f&&(p.deprecationReason?(m.style.display="block",f.innerHTML=DT.render(p.deprecationReason)):(m.style.display="none",f.innerHTML=""))})});function a(o){if(!t||!n||!i||!(o.currentTarget instanceof HTMLElement))return;const s=o.currentTarget.textContent||"",l=t.getType(s);l&&(i.setVisiblePlugin(gF),n.push({name:l.name,def:l}),r==null||r(l))}Ce(a,"onClickHintInformation")}Ce(xIe,"onHasCompletion");function Fb(u,e){C.useEffect(()=>{u&&typeof e=="string"&&e!==u.getValue()&&u.setValue(e)},[u,e])}Ce(Fb,"useSynchronizeValue");function u_(u,e,t){C.useEffect(()=>{u&&u.setOption(e,t)},[u,e,t])}Ce(u_,"useSynchronizeOption");function tie(u,e,t,n,i){const{updateActiveTabValues:r}=Ia({nonNull:!0,caller:i}),a=bm();C.useEffect(()=>{if(!u)return;const o=lp(500,c=>{!a||t===null||a.set(t,c)}),s=lp(100,c=>{r({[n]:c})}),l=Ce((c,d)=>{if(!d)return;const h=c.getValue();o(h),s(h),e==null||e(h)},"handleChange");return u.on("change",l),()=>u.off("change",l)},[e,u,a,t,n,r])}Ce(tie,"useChangeHandler");function uie(u,e,t){const{schema:n}=V1({nonNull:!0,caller:t}),i=km(),r=HI();C.useEffect(()=>{if(!u)return;const a=Ce((o,s)=>{xIe(o,s,n,i,r,l=>{e==null||e({kind:"Type",type:l,schema:n||void 0})})},"handleCompletion");return u.on("hasCompletion",a),()=>u.off("hasCompletion",a)},[e,u,i,r,n])}Ce(uie,"useCompletion");function Bc(u,e,t){C.useEffect(()=>{if(u){for(const n of e)u.removeKeyMap(n);if(t){const n={};for(const i of e)n[i]=()=>t();u.addKeyMap(n)}}},[u,e,t])}Ce(Bc,"useKeyMap");function $I({caller:u,onCopyQuery:e}={}){const{queryEditor:t}=Ia({nonNull:!0,caller:u||$I});return C.useCallback(()=>{if(!t)return;const n=t.getValue();jJt(n),e==null||e(n)},[t,e])}Ce($I,"useCopyQuery");function cp({caller:u}={}){const{queryEditor:e}=Ia({nonNull:!0,caller:u||cp}),{schema:t}=V1({nonNull:!0,caller:cp});return C.useCallback(()=>{const n=e==null?void 0:e.documentAST,i=e==null?void 0:e.getValue();!n||!i||e.setValue(Js(wqt(n,t)))},[e,t])}Ce(cp,"useMergeQuery");function LC({caller:u}={}){const{queryEditor:e,headerEditor:t,variableEditor:n}=Ia({nonNull:!0,caller:u||LC});return C.useCallback(()=>{if(n){const i=n.getValue();try{const r=JSON.stringify(JSON.parse(i),null,2);r!==i&&n.setValue(r)}catch{}}if(t){const i=t.getValue();try{const r=JSON.stringify(JSON.parse(i),null,2);r!==i&&t.setValue(r)}catch{}}if(e){const i=e.getValue(),r=Js(fm(i));r!==i&&e.setValue(r)}},[e,n,t])}Ce(LC,"usePrettifyEditors");function kT({getDefaultFieldNames:u,caller:e}={}){const{schema:t}=V1({nonNull:!0,caller:e||kT}),{queryEditor:n}=Ia({nonNull:!0,caller:e||kT});return C.useCallback(()=>{if(!n)return;const i=n.getValue(),{insertions:r,result:a}=yqt(t,i,u);return r&&r.length>0&&n.operation(()=>{const o=n.getCursor(),s=n.indexFromPos(o);n.setValue(a||"");let l=0;const c=r.map(({index:h,string:E})=>n.markText(n.posFromIndex(h+l),n.posFromIndex(h+(l+=E.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>{for(const h of c)h.clear()},7e3);let d=s;for(const{index:h,string:E}of r)hu==null?void 0:u.setValue(n),[u]);return C.useMemo(()=>[e,t],[e,t])}Ce(NRu,"useOperationsEditorState");function RRu(){const{variableEditor:u}=Ia({nonNull:!0}),e=(u==null?void 0:u.getValue())??"",t=C.useCallback(n=>u==null?void 0:u.setValue(n),[u]);return C.useMemo(()=>[e,t],[e,t])}Ce(RRu,"useVariablesEditorState");function Nx({editorTheme:u=OI,keyMap:e=jI,onEdit:t,readOnly:n=!1}={},i){const{initialHeaders:r,headerEditor:a,setHeaderEditor:o,shouldPersistHeaders:s}=Ia({nonNull:!0,caller:i||Nx}),l=t_(),c=cp({caller:i||Nx}),d=LC({caller:i||Nx}),h=C.useRef(null);return C.useEffect(()=>{let E=!0;return zC([Le(()=>import("./javascript.es-3c6957c5.js"),["./javascript.es-3c6957c5.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(g=>g.j)]).then(g=>{if(!E)return;const m=h.current;if(!m)return;const f=g(m,{value:r,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:n?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:VI});f.addKeyMap({"Cmd-Space"(){f.showHint({completeSingle:!1,container:m})},"Ctrl-Space"(){f.showHint({completeSingle:!1,container:m})},"Alt-Space"(){f.showHint({completeSingle:!1,container:m})},"Shift-Space"(){f.showHint({completeSingle:!1,container:m})}}),f.on("keyup",(p,D)=>{const{code:x,key:b,shiftKey:k}=D,_=x.startsWith("Key"),y=!k&&x.startsWith("Digit");(_||y||b==="_"||b==='"')&&p.execCommand("autocomplete")}),o(f)}),()=>{E=!1}},[u,r,n,o]),u_(a,"keyMap",e),tie(a,t,s?b8:null,"headers",Nx),Bc(a,["Cmd-Enter","Ctrl-Enter"],l==null?void 0:l.run),Bc(a,["Shift-Ctrl-P"],d),Bc(a,["Shift-Ctrl-M"],c),h}Ce(Nx,"useHeaderEditor");const b8="headers",IRu=Array.from({length:11},(u,e)=>String.fromCharCode(8192+e)).concat(["\u2028","\u2029"," "," "]),ORu=new RegExp("["+IRu.join("")+"]","g");function vIe(u){return u.replace(ORu," ")}Ce(vIe,"normalizeWhitespace");function rE({editorTheme:u=OI,keyMap:e=jI,onClickReference:t,onCopyQuery:n,onEdit:i,readOnly:r=!1}={},a){const{schema:o}=V1({nonNull:!0,caller:a||rE}),{externalFragments:s,initialQuery:l,queryEditor:c,setOperationName:d,setQueryEditor:h,validationRules:E,variableEditor:g,updateActiveTabValues:m}=Ia({nonNull:!0,caller:a||rE}),f=t_(),p=bm(),D=km(),x=HI(),b=$I({caller:a||rE,onCopyQuery:n}),k=cp({caller:a||rE}),_=LC({caller:a||rE}),y=C.useRef(null),S=C.useRef(),B=C.useRef(()=>{});C.useEffect(()=>{B.current=N=>{if(!(!D||!x)){switch(x.setVisiblePlugin(gF),N.kind){case"Type":{D.push({name:N.type.name,def:N.type});break}case"Field":{D.push({name:N.field.name,def:N.field});break}case"Argument":{N.field&&D.push({name:N.field.name,def:N.field});break}case"EnumValue":{N.type&&D.push({name:N.type.name,def:N.type});break}}t==null||t(N)}}},[D,t,x]),C.useEffect(()=>{let N=!0;return zC([Le(()=>import("./comment.es-39699bae.js"),["./comment.es-39699bae.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(F=>F.c),Le(()=>import("./search.es-1c15f5ea.js"),["./search.es-1c15f5ea.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(F=>F.s),Le(()=>import("./hint.es-7ba0b9b7.js"),["./hint.es-7ba0b9b7.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./show-hint.es-b981493e.js","./Range-52ddcb6a.js"],import.meta.url),Le(()=>import("./lint.es2-aa53b1fe.js"),["./lint.es2-aa53b1fe.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./Range-52ddcb6a.js"],import.meta.url),Le(()=>import("./info.es-ff0a8c74.js"),["./info.es-ff0a8c74.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./SchemaReference.es-74b569fb.js","./forEachState.es-b2033c2b.js","./info-addon.es-c9b2027b.js"],import.meta.url),Le(()=>import("./jump.es-9013da34.js"),["./jump.es-9013da34.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./SchemaReference.es-74b569fb.js","./forEachState.es-b2033c2b.js"],import.meta.url),Le(()=>import("./mode.es-f5f2f91c.js"),["./mode.es-f5f2f91c.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./mode-indent.es-057a4f6a.js"],import.meta.url)]).then(F=>{if(!N)return;S.current=F;const A=y.current;if(!A)return;const z=F(A,{value:l,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:r?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:A,externalFragments:void 0},info:{schema:void 0,renderDescription:I=>DT.render(I),onClick(I){B.current(I)}},jump:{schema:void 0,onClick(I){B.current(I)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...VI,"Cmd-S"(){},"Ctrl-S"(){}}});z.addKeyMap({"Cmd-Space"(){z.showHint({completeSingle:!0,container:A})},"Ctrl-Space"(){z.showHint({completeSingle:!0,container:A})},"Alt-Space"(){z.showHint({completeSingle:!0,container:A})},"Shift-Space"(){z.showHint({completeSingle:!0,container:A})},"Shift-Alt-Space"(){z.showHint({completeSingle:!0,container:A})}}),z.on("keyup",(I,j)=>{jRu.test(j.key)&&I.execCommand("autocomplete")});let P=!1;z.on("startCompletion",()=>{P=!0}),z.on("endCompletion",()=>{P=!1}),z.on("keydown",(I,j)=>{j.key==="Escape"&&P&&j.stopPropagation()}),z.on("beforeChange",(I,j)=>{var V;if(j.origin==="paste"){const H=j.text.map(vIe);(V=j.update)==null||V.call(j,j.from,j.to,H)}}),z.documentAST=null,z.operationName=null,z.operations=null,z.variableToType=null,h(z)}),()=>{N=!1}},[u,l,r,h]),u_(c,"keyMap",e),C.useEffect(()=>{if(!c)return;function N(A){var z;const P=vJt(o,A.getValue()),I=zqt(A.operations??void 0,A.operationName??void 0,P==null?void 0:P.operations);return A.documentAST=(P==null?void 0:P.documentAST)??null,A.operationName=I??null,A.operations=(P==null?void 0:P.operations)??null,g&&(g.state.lint.linterOptions.variableToType=P==null?void 0:P.variableToType,g.options.lint.variableToType=P==null?void 0:P.variableToType,g.options.hintOptions.variableToType=P==null?void 0:P.variableToType,(z=S.current)==null||z.signal(g,"change",g)),P?{...P,operationName:I}:null}Ce(N,"getAndUpdateOperationFacts");const F=lp(100,A=>{const z=A.getValue();p==null||p.set(yIe,z);const P=A.operationName,I=N(A);(I==null?void 0:I.operationName)!==void 0&&(p==null||p.set(VRu,I.operationName)),i==null||i(z,I==null?void 0:I.documentAST),I!=null&&I.operationName&&P!==I.operationName&&d(I.operationName),m({query:z,operationName:(I==null?void 0:I.operationName)??null})});return N(c),c.on("change",F),()=>c.off("change",F)},[i,c,o,d,p,g,m]),CIe(c,o??null,S),bIe(c,E??null,S),kIe(c,s,S),uie(c,t||null,rE);const L=f==null?void 0:f.run,T=C.useCallback(()=>{var N;if(!L||!c||!c.operations||!c.hasFocus()){L==null||L();return}const F=c.indexFromPos(c.getCursor());let A;for(const z of c.operations)z.loc&&z.loc.start<=F&&z.loc.end>=F&&(A=(N=z.name)==null?void 0:N.value);A&&A!==c.operationName&&d(A),L()},[c,L,d]);return Bc(c,["Cmd-Enter","Ctrl-Enter"],T),Bc(c,["Shift-Ctrl-C"],b),Bc(c,["Shift-Ctrl-P","Shift-Ctrl-F"],_),Bc(c,["Shift-Ctrl-M"],k),y}Ce(rE,"useQueryEditor");function CIe(u,e,t){C.useEffect(()=>{if(!u)return;const n=u.options.lint.schema!==e;u.state.lint.linterOptions.schema=e,u.options.lint.schema=e,u.options.hintOptions.schema=e,u.options.info.schema=e,u.options.jump.schema=e,n&&t.current&&t.current.signal(u,"change",u)},[u,e,t])}Ce(CIe,"useSynchronizeSchema");function bIe(u,e,t){C.useEffect(()=>{if(!u)return;const n=u.options.lint.validationRules!==e;u.state.lint.linterOptions.validationRules=e,u.options.lint.validationRules=e,n&&t.current&&t.current.signal(u,"change",u)},[u,e,t])}Ce(bIe,"useSynchronizeValidationRules");function kIe(u,e,t){const n=C.useMemo(()=>[...e.values()],[e]);C.useEffect(()=>{if(!u)return;const i=u.options.lint.externalFragments!==n;u.state.lint.linterOptions.externalFragments=n,u.options.lint.externalFragments=n,u.options.hintOptions.externalFragments=n,i&&t.current&&t.current.signal(u,"change",u)},[u,n,t])}Ce(kIe,"useSynchronizeExternalFragments");const jRu=/^[a-zA-Z0-9_@(]$/,yIe="query",VRu="operationName";function FIe({defaultQuery:u,defaultHeaders:e,headers:t,defaultTabs:n,query:i,variables:r,storage:a,shouldPersistHeaders:o}){const s=a==null?void 0:a.get(fF);try{if(!s)throw new Error("Storage for tabs is empty");const l=JSON.parse(s),c=o?t:void 0;if(AIe(l)){const d=mF({query:i,variables:r,headers:c});let h=-1;for(let E=0;E=0)l.activeTabIndex=h;else{const E=i?KI(i):null;l.tabs.push({id:aie(),hash:d,title:E||oie,query:i,variables:r,headers:t,operationName:E,response:null}),l.activeTabIndex=l.tabs.length-1}return l}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(n||[{query:i??u,variables:r,headers:t??e}]).map(iie)}}}Ce(FIe,"getDefaultTabState");function AIe(u){return u&&typeof u=="object"&&!Array.isArray(u)&&SIe(u,"activeTabIndex")&&"tabs"in u&&Array.isArray(u.tabs)&&u.tabs.every(_Ie)}Ce(AIe,"isTabsState");function _Ie(u){return u&&typeof u=="object"&&!Array.isArray(u)&&eY(u,"id")&&eY(u,"title")&&KD(u,"query")&&KD(u,"variables")&&KD(u,"headers")&&KD(u,"operationName")&&KD(u,"response")}Ce(_Ie,"isTabState");function SIe(u,e){return e in u&&typeof u[e]=="number"}Ce(SIe,"hasNumberKey");function eY(u,e){return e in u&&typeof u[e]=="string"}Ce(eY,"hasStringKey");function KD(u,e){return e in u&&(typeof u[e]=="string"||u[e]===null)}Ce(KD,"hasStringOrNullKey");function BIe({queryEditor:u,variableEditor:e,headerEditor:t,responseEditor:n}){return C.useCallback(i=>{const r=(u==null?void 0:u.getValue())??null,a=(e==null?void 0:e.getValue())??null,o=(t==null?void 0:t.getValue())??null,s=(u==null?void 0:u.operationName)??null,l=(n==null?void 0:n.getValue())??null;return rie(i,{query:r,variables:a,headers:o,response:l,operationName:s})},[u,e,t,n])}Ce(BIe,"useSynchronizeActiveTabValues");function nie(u,e=!1){return JSON.stringify(u,(t,n)=>t==="hash"||t==="response"||!e&&t==="headers"?null:n)}Ce(nie,"serializeTabState");function wIe({storage:u,shouldPersistHeaders:e}){const t=C.useMemo(()=>lp(500,n=>{u==null||u.set(fF,n)}),[u]);return C.useCallback(n=>{t(nie(n,e))},[e,t])}Ce(wIe,"useStoreTabs");function zIe({queryEditor:u,variableEditor:e,headerEditor:t,responseEditor:n}){return C.useCallback(({query:i,variables:r,headers:a,response:o})=>{u==null||u.setValue(i??""),e==null||e.setValue(r??""),t==null||t.setValue(a??""),n==null||n.setValue(o??"")},[t,u,n,e])}Ce(zIe,"useSetEditorValues");function iie({query:u=null,variables:e=null,headers:t=null}={}){return{id:aie(),hash:mF({query:u,variables:e,headers:t}),title:u&&KI(u)||oie,query:u,variables:e,headers:t,operationName:null,response:null}}Ce(iie,"createTab");function rie(u,e){return{...u,tabs:u.tabs.map((t,n)=>{if(n!==u.activeTabIndex)return t;const i={...t,...e};return{...i,hash:mF(i),title:i.operationName||(i.query?KI(i.query):void 0)||oie}})}}Ce(rie,"setPropertiesInActiveTab");function aie(){const u=Ce(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),"s4");return`${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`}Ce(aie,"guid");function mF(u){return[u.query??"",u.variables??"",u.headers??""].join("|")}Ce(mF,"hashFromTabContents");function KI(u){const e=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(u);return(e==null?void 0:e[2])??null}Ce(KI,"fuzzyExtractOperationName");function LIe(u){const e=u==null?void 0:u.get(fF);if(e){const t=JSON.parse(e);u==null||u.set(fF,JSON.stringify(t,(n,i)=>n==="headers"?null:i))}}Ce(LIe,"clearHeadersFromTabs");const oie="",fF="tabState";function xf({editorTheme:u=OI,keyMap:e=jI,onClickReference:t,onEdit:n,readOnly:i=!1}={},r){const{initialVariables:a,variableEditor:o,setVariableEditor:s}=Ia({nonNull:!0,caller:r||xf}),l=t_(),c=cp({caller:r||xf}),d=LC({caller:r||xf}),h=C.useRef(null),E=C.useRef();return C.useEffect(()=>{let g=!0;return zC([Le(()=>import("./hint.es2-4656b87c.js"),["./hint.es2-4656b87c.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./forEachState.es-b2033c2b.js"],import.meta.url),Le(()=>import("./lint.es3-fe79339b.js"),["./lint.es3-fe79339b.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js"],import.meta.url),Le(()=>import("./mode.es2-1e8b0207.js"),["./mode.es2-1e8b0207.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./mode-indent.es-057a4f6a.js"],import.meta.url)]).then(m=>{if(!g)return;E.current=m;const f=h.current;if(!f)return;const p=m(f,{value:a,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:i?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:f,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:VI});p.addKeyMap({"Cmd-Space"(){p.showHint({completeSingle:!1,container:f})},"Ctrl-Space"(){p.showHint({completeSingle:!1,container:f})},"Alt-Space"(){p.showHint({completeSingle:!1,container:f})},"Shift-Space"(){p.showHint({completeSingle:!1,container:f})}}),p.on("keyup",(D,x)=>{const{code:b,key:k,shiftKey:_}=x,y=b.startsWith("Key"),S=!_&&b.startsWith("Digit");(y||S||k==="_"||k==='"')&&D.execCommand("autocomplete")}),s(p)}),()=>{g=!1}},[u,a,i,s]),u_(o,"keyMap",e),tie(o,n,MIe,"variables",xf),uie(o,t||null,xf),Bc(o,["Cmd-Enter","Ctrl-Enter"],l==null?void 0:l.run),Bc(o,["Shift-Ctrl-P"],d),Bc(o,["Shift-Ctrl-M"],c),h}Ce(xf,"useVariableEditor");const MIe="variables",TIe=vm("EditorContext");function PIe(u){const e=bm(),[t,n]=C.useState(null),[i,r]=C.useState(null),[a,o]=C.useState(null),[s,l]=C.useState(null),[c,d]=C.useState(()=>{const I=(e==null?void 0:e.get(f$))!==null;return u.shouldPersistHeaders!==!1&&I?(e==null?void 0:e.get(f$))==="true":!!u.shouldPersistHeaders});Fb(t,u.headers),Fb(i,u.query),Fb(a,u.response),Fb(s,u.variables);const h=wIe({storage:e,shouldPersistHeaders:c}),[E]=C.useState(()=>{const I=u.query??(e==null?void 0:e.get(yIe))??null,j=u.variables??(e==null?void 0:e.get(MIe))??null,V=u.headers??(e==null?void 0:e.get(b8))??null,H=u.response??"",q=FIe({query:I,variables:j,headers:V,defaultTabs:u.defaultTabs,defaultQuery:u.defaultQuery||HRu,defaultHeaders:u.defaultHeaders,storage:e,shouldPersistHeaders:c});return h(q),{query:I??(q.activeTabIndex===0?q.tabs[0].query:null)??"",variables:j??"",headers:V??u.defaultHeaders??"",response:H,tabState:q}}),[g,m]=C.useState(E.tabState),f=C.useCallback(I=>{if(I){e==null||e.set(b8,(t==null?void 0:t.getValue())??"");const j=nie(g,!0);e==null||e.set(fF,j)}else e==null||e.set(b8,""),LIe(e);d(I),e==null||e.set(f$,I.toString())},[e,g,t]),p=C.useRef();C.useEffect(()=>{const I=!!u.shouldPersistHeaders;p.current!==I&&(f(I),p.current=I)},[u.shouldPersistHeaders,f]);const D=BIe({queryEditor:i,variableEditor:s,headerEditor:t,responseEditor:a}),x=zIe({queryEditor:i,variableEditor:s,headerEditor:t,responseEditor:a}),{onTabChange:b,defaultHeaders:k,children:_}=u,y=C.useCallback(()=>{m(I=>{const j=D(I),V={tabs:[...j.tabs,iie({headers:k})],activeTabIndex:j.tabs.length};return h(V),x(V.tabs[V.activeTabIndex]),b==null||b(V),V})},[k,b,x,h,D]),S=C.useCallback(I=>{m(j=>{const V={...j,activeTabIndex:I};return h(V),x(V.tabs[V.activeTabIndex]),b==null||b(V),V})},[b,x,h]),B=C.useCallback(I=>{m(j=>{const V=j.tabs[j.activeTabIndex],H={tabs:I,activeTabIndex:I.indexOf(V)};return h(H),x(H.tabs[H.activeTabIndex]),b==null||b(H),H})},[b,x,h]),L=C.useCallback(I=>{m(j=>{const V={tabs:j.tabs.filter((H,q)=>I!==q),activeTabIndex:Math.max(j.activeTabIndex-1,0)};return h(V),x(V.tabs[V.activeTabIndex]),b==null||b(V),V})},[b,x,h]),T=C.useCallback(I=>{m(j=>{const V=rie(j,I);return h(V),b==null||b(V),V})},[b,h]),{onEditOperationName:N}=u,F=C.useCallback(I=>{i&&(i.operationName=I,T({operationName:I}),N==null||N(I))},[N,i,T]),A=C.useMemo(()=>{const I=new Map;if(Array.isArray(u.externalFragments))for(const j of u.externalFragments)I.set(j.name.value,j);else if(typeof u.externalFragments=="string")Jc(fm(u.externalFragments,{}),{FragmentDefinition(j){I.set(j.name.value,j)}});else if(u.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return I},[u.externalFragments]),z=C.useMemo(()=>u.validationRules||[],[u.validationRules]),P=C.useMemo(()=>({...g,addTab:y,changeTab:S,moveTab:B,closeTab:L,updateActiveTabValues:T,headerEditor:t,queryEditor:i,responseEditor:a,variableEditor:s,setHeaderEditor:n,setQueryEditor:r,setResponseEditor:o,setVariableEditor:l,setOperationName:F,initialQuery:E.query,initialVariables:E.variables,initialHeaders:E.headers,initialResponse:E.response,externalFragments:A,validationRules:z,shouldPersistHeaders:c,setShouldPersistHeaders:f}),[g,y,S,B,L,T,t,i,a,s,F,E,A,z,c,f]);return w.jsx(TIe.Provider,{value:P,children:_})}Ce(PIe,"EditorContextProvider");const Ia=Cm(TIe),f$="shouldPersistHeaders",HRu=`# Welcome to GraphiQL # # GraphiQL is an in-browser tool for writing, validating, and # testing GraphQL queries. @@ -1104,7 +1104,7 @@ ${c}`)}yield yield Dh(l.map(c=>c.body))}}catch(l){i={error:l}}finally{try{s&&!s. # Auto Complete: Ctrl-Space (or just start typing) # -`;function yT({isHidden:u,...e}){const{headerEditor:t}=Ia({nonNull:!0,caller:yT}),n=Nx(e,yT);return C.useEffect(()=>{u||t==null||t.refresh()},[t,u]),w.jsx("div",{className:Ra("graphiql-editor",u&&"hidden"),ref:n})}Ce(yT,"HeaderEditor");function FT(u){var e;const[t,n]=C.useState({width:null,height:null}),[i,r]=C.useState(null),a=C.useRef(null),o=(e=sie(u.token))==null?void 0:e.href;C.useEffect(()=>{if(a.current){if(!o){n({width:null,height:null}),r(null);return}fetch(o,{method:"HEAD"}).then(l=>{r(l.headers.get("Content-Type"))}).catch(()=>{r(null)})}},[o]);const s=t.width!==null&&t.height!==null?w.jsxs("div",{children:[t.width,"x",t.height,i===null?null:" "+i]}):null;return w.jsxs("div",{children:[w.jsx("img",{onLoad:()=>{var l,c;n({width:((l=a.current)==null?void 0:l.naturalWidth)??null,height:((c=a.current)==null?void 0:c.naturalHeight)??null})},ref:a,src:o}),s]})}Ce(FT,"ImagePreview");FT.shouldRender=Ce(function(u){const e=sie(u);return e?NIe(e):!1},"shouldRender");function sie(u){if(u.type!=="string")return;const e=u.string.slice(1).slice(0,-1).trim();try{const{location:t}=window;return new URL(e,t.protocol+"//"+t.host)}catch{return}}Ce(sie,"tokenToURL");function NIe(u){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(u.pathname)}Ce(NIe,"isImageURL");function lie(u){const e=rE(u,lie);return w.jsx("div",{className:"graphiql-editor",ref:e})}Ce(lie,"QueryEditor");function AT({responseTooltip:u,editorTheme:e=OI,keyMap:t=jI}={},n){const{fetchError:i,validationErrors:r}=V1({nonNull:!0,caller:n||AT}),{initialResponse:a,responseEditor:o,setResponseEditor:s}=Ia({nonNull:!0,caller:n||AT}),l=C.useRef(null),c=C.useRef(u);return C.useEffect(()=>{c.current=u},[u]),C.useEffect(()=>{let d=!0;return zC([Le(()=>import("./foldgutter.es-b6cee46a.js"),["./foldgutter.es-b6cee46a.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(h=>h.f),Le(()=>import("./brace-fold.es-f2e3735d.js"),["./brace-fold.es-f2e3735d.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(h=>h.b),Le(()=>import("./dialog.es-dffe62e7.js"),["./dialog.es-dffe62e7.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(h=>h.d),Le(()=>import("./search.es-1c15f5ea.js"),["./search.es-1c15f5ea.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(h=>h.s),Le(()=>import("./searchcursor.es-b1a352a2.js"),["./searchcursor.es-b1a352a2.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js"],import.meta.url).then(h=>h.s),Le(()=>import("./jump-to-line.es-d901ea33.js"),["./jump-to-line.es-d901ea33.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(h=>h.j),Le(()=>import("./sublime.es-e2a3eb60.js"),["./sublime.es-e2a3eb60.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./matchbrackets.es2-f53f57e6.js"],import.meta.url).then(h=>h.s),Le(()=>import("./mode.es3-f96cfa66.js"),["./mode.es3-f96cfa66.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./mode-indent.es-057a4f6a.js"],import.meta.url),Le(()=>import("./info-addon.es-c9b2027b.js"),["./info-addon.es-c9b2027b.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js"],import.meta.url)],{useCommonAddons:!1}).then(h=>{if(!d)return;const E=document.createElement("div");h.registerHelper("info","graphql-results",(f,p,D,x)=>{const b=[],k=c.current;return k&&b.push(w.jsx(k,{pos:x,token:f})),FT.shouldRender(f)&&b.push(w.jsx(FT,{token:f},"image-preview")),b.length?(m5.render(b,E),E):(m5.unmountComponentAtNode(E),null)});const g=l.current;if(!g)return;const m=h(g,{value:a,lineWrapping:!0,readOnly:!0,theme:e,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:VI});s(m)}),()=>{d=!1}},[e,a,s]),u_(o,"keyMap",t),C.useEffect(()=>{i&&(o==null||o.setValue(i)),r.length>0&&(o==null||o.setValue(Yy(r)))},[o,i,r]),l}Ce(AT,"useResponseEditor");function cie(u){const e=AT(u,cie);return w.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e})}Ce(cie,"ResponseEditor");function _T({isHidden:u,...e}){const{variableEditor:t}=Ia({nonNull:!0,caller:_T}),n=xf(e,_T);return C.useEffect(()=>{t&&!u&&t.refresh()},[t,u]),w.jsx("div",{className:Ra("graphiql-editor",u&&"hidden"),ref:n})}Ce(_T,"VariableEditor");function RIe({children:u,dangerouslyAssumeSchemaIsValid:e,defaultQuery:t,defaultHeaders:n,defaultTabs:i,externalFragments:r,fetcher:a,getDefaultFieldNames:o,headers:s,inputValueDeprecation:l,introspectionQueryName:c,maxHistoryLength:d,onEditOperationName:h,onSchemaChange:E,onTabChange:g,onTogglePluginVisibility:m,operationName:f,plugins:p,query:D,response:x,schema:b,schemaDescription:k,shouldPersistHeaders:_,storage:y,validationRules:S,variables:B,visiblePlugin:L}){return w.jsx(jRe,{storage:y,children:w.jsx(YRe,{maxHistoryLength:d,children:w.jsx(PIe,{defaultQuery:t,defaultHeaders:n,defaultTabs:i,externalFragments:r,headers:s,onEditOperationName:h,onTabChange:g,query:D,response:x,shouldPersistHeaders:_,validationRules:S,variables:B,children:w.jsx(Yne,{dangerouslyAssumeSchemaIsValid:e,fetcher:a,inputValueDeprecation:l,introspectionQueryName:c,onSchemaChange:E,schema:b,schemaDescription:k,children:w.jsx(xT,{getDefaultFieldNames:o,fetcher:a,operationName:f,children:w.jsx(Qne,{children:w.jsx(DIe,{onTogglePluginVisibility:m,plugins:p,visiblePlugin:L,children:u})})})})})})})}Ce(RIe,"GraphiQLProvider");function IIe(){const u=bm(),[e,t]=C.useState(()=>{if(!u)return null;const i=u.get(p$);switch(i){case"light":return"light";case"dark":return"dark";default:return typeof i=="string"&&u.set(p$,""),null}});C.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),e&&document.body.classList.add(`graphiql-${e}`))},[e]);const n=C.useCallback(i=>{u==null||u.set(p$,i||""),t(i)},[u]);return C.useMemo(()=>({theme:e,setTheme:n}),[e,n])}Ce(IIe,"useTheme");const p$="theme";function k8({defaultSizeRelation:u=$Ru,direction:e,initiallyHidden:t,onHiddenElementChange:n,sizeThresholdFirst:i=100,sizeThresholdSecond:r=100,storageKey:a}){const o=bm(),s=C.useMemo(()=>lp(500,D=>{a&&(o==null||o.set(a,D))}),[o,a]),[l,c]=C.useState(()=>{const D=a&&(o==null?void 0:o.get(a));return D===Z9||t==="first"?"first":D===Y9||t==="second"?"second":null}),d=C.useCallback(D=>{D!==l&&(c(D),n==null||n(D))},[l,n]),h=C.useRef(null),E=C.useRef(null),g=C.useRef(null),m=C.useRef(`${u}`);C.useLayoutEffect(()=>{const D=a&&(o==null?void 0:o.get(a))||m.current;h.current&&(h.current.style.display="flex",h.current.style.flex=D===Z9||D===Y9?m.current:D),g.current&&(g.current.style.display="flex",g.current.style.flex="1"),E.current&&(E.current.style.display="flex")},[e,o,a]);const f=C.useCallback(D=>{const x=D==="first"?h.current:g.current;if(x&&(x.style.left="-1000px",x.style.position="absolute",x.style.opacity="0",x.style.height="500px",x.style.width="500px",h.current)){const b=parseFloat(h.current.style.flex);(!Number.isFinite(b)||b<1)&&(h.current.style.flex="1")}},[]),p=C.useCallback(D=>{const x=D==="first"?h.current:g.current;if(x&&(x.style.width="",x.style.height="",x.style.opacity="",x.style.position="",x.style.left="",o&&a)){const b=o.get(a);h.current&&b!==Z9&&b!==Y9&&(h.current.style.flex=b||m.current)}},[o,a]);return C.useLayoutEffect(()=>{l==="first"?f("first"):p("first"),l==="second"?f("second"):p("second")},[l,f,p]),C.useEffect(()=>{if(!E.current||!h.current||!g.current)return;const D=E.current,x=h.current,b=x.parentElement,k=e==="horizontal"?"clientX":"clientY",_=e==="horizontal"?"left":"top",y=e==="horizontal"?"right":"bottom",S=e==="horizontal"?"clientWidth":"clientHeight";function B(T){T.preventDefault();const N=T[k]-D.getBoundingClientRect()[_];function F(z){if(z.buttons===0)return A();const P=z[k]-b.getBoundingClientRect()[_]-N,I=b.getBoundingClientRect()[y]-z[k]+N-D[S];if(P{D.removeEventListener("mousedown",B),D.removeEventListener("dblclick",L)}},[e,d,i,r,s]),C.useMemo(()=>({dragBarRef:E,hiddenElement:l,firstRef:h,setHiddenElement:c,secondRef:g}),[l,c])}Ce(k8,"useDragResize");const $Ru=1,Z9="hide-first",Y9="hide-second",y8=C.forwardRef(({label:u,onClick:e,...t},n)=>{const[i,r]=C.useState(null),a=C.useCallback(o=>{try{e==null||e(o),r(null)}catch(s){r(s instanceof Error?s:new Error(`Toolbar button click failed: ${s}`))}},[e]);return w.jsx(ko,{label:u,children:w.jsx(ua,{...t,ref:n,type:"button",className:Ra("graphiql-toolbar-button",i&&"error",t.className),onClick:a,"aria-label":i?i.message:u,"aria-invalid":i?"true":t["aria-invalid"]})})});y8.displayName="ToolbarButton";function ST(){const{queryEditor:u,setOperationName:e}=Ia({nonNull:!0,caller:ST}),{isFetching:t,isSubscribed:n,operationName:i,run:r,stop:a}=t_({nonNull:!0,caller:ST}),o=(u==null?void 0:u.operations)||[],s=o.length>1&&typeof i!="string",l=t||n,c=`${l?"Stop":"Execute"} query (Ctrl-Enter)`,d={type:"button",className:"graphiql-execute-button",children:l?w.jsx(wRu,{}):w.jsx(bRu,{}),"aria-label":c};return s&&!l?w.jsxs(NE,{children:[w.jsx(ko,{label:c,children:w.jsx(NE.Button,{...d})}),w.jsx(NE.Content,{children:o.map((h,E)=>{const g=h.name?h.name.value:``;return w.jsx(NE.Item,{onSelect:()=>{var m;const f=(m=h.name)==null?void 0:m.value;u&&f&&f!==u.operationName&&e(f),r()},children:g},`${g}-${E}`)})})]}):w.jsx(ko,{label:c,children:w.jsx("button",{...d,onClick:()=>{l?a():r()}})})}Ce(ST,"ExecuteButton");const KRu=Ce(({button:u,children:e,label:t,...n})=>w.jsxs(NE,{...n,children:[w.jsx(ko,{label:t,children:w.jsx(NE.Button,{className:Ra("graphiql-un-styled graphiql-toolbar-menu",n.className),"aria-label":t,children:u})}),w.jsx(NE.Content,{children:e})]}),"ToolbarMenuRoot");e_(KRu,{Item:NE.Item});var tY=globalThis&&globalThis.__assign||function(){return tY=Object.assign||function(u){for(var e,t=1,n=arguments.length;t0)&&!(i=n.next()).done;)r.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return r},GRu=parseInt(M.version.slice(0,2),10);if(GRu<16)throw new Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(` +`;function yT({isHidden:u,...e}){const{headerEditor:t}=Ia({nonNull:!0,caller:yT}),n=Nx(e,yT);return C.useEffect(()=>{u||t==null||t.refresh()},[t,u]),w.jsx("div",{className:Ra("graphiql-editor",u&&"hidden"),ref:n})}Ce(yT,"HeaderEditor");function FT(u){var e;const[t,n]=C.useState({width:null,height:null}),[i,r]=C.useState(null),a=C.useRef(null),o=(e=sie(u.token))==null?void 0:e.href;C.useEffect(()=>{if(a.current){if(!o){n({width:null,height:null}),r(null);return}fetch(o,{method:"HEAD"}).then(l=>{r(l.headers.get("Content-Type"))}).catch(()=>{r(null)})}},[o]);const s=t.width!==null&&t.height!==null?w.jsxs("div",{children:[t.width,"x",t.height,i===null?null:" "+i]}):null;return w.jsxs("div",{children:[w.jsx("img",{onLoad:()=>{var l,c;n({width:((l=a.current)==null?void 0:l.naturalWidth)??null,height:((c=a.current)==null?void 0:c.naturalHeight)??null})},ref:a,src:o}),s]})}Ce(FT,"ImagePreview");FT.shouldRender=Ce(function(u){const e=sie(u);return e?NIe(e):!1},"shouldRender");function sie(u){if(u.type!=="string")return;const e=u.string.slice(1).slice(0,-1).trim();try{const{location:t}=window;return new URL(e,t.protocol+"//"+t.host)}catch{return}}Ce(sie,"tokenToURL");function NIe(u){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(u.pathname)}Ce(NIe,"isImageURL");function lie(u){const e=rE(u,lie);return w.jsx("div",{className:"graphiql-editor",ref:e})}Ce(lie,"QueryEditor");function AT({responseTooltip:u,editorTheme:e=OI,keyMap:t=jI}={},n){const{fetchError:i,validationErrors:r}=V1({nonNull:!0,caller:n||AT}),{initialResponse:a,responseEditor:o,setResponseEditor:s}=Ia({nonNull:!0,caller:n||AT}),l=C.useRef(null),c=C.useRef(u);return C.useEffect(()=>{c.current=u},[u]),C.useEffect(()=>{let d=!0;return zC([Le(()=>import("./foldgutter.es-b6cee46a.js"),["./foldgutter.es-b6cee46a.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(h=>h.f),Le(()=>import("./brace-fold.es-f2e3735d.js"),["./brace-fold.es-f2e3735d.js","./codemirror.es2-5884f31a.js"],import.meta.url).then(h=>h.b),Le(()=>import("./dialog.es-dffe62e7.js"),["./dialog.es-dffe62e7.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(h=>h.d),Le(()=>import("./search.es-1c15f5ea.js"),["./search.es-1c15f5ea.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(h=>h.s),Le(()=>import("./searchcursor.es-b1a352a2.js"),["./searchcursor.es-b1a352a2.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js"],import.meta.url).then(h=>h.s),Le(()=>import("./jump-to-line.es-d901ea33.js"),["./jump-to-line.es-d901ea33.js","./codemirror.es2-5884f31a.js","./dialog.es2-02b3b4e7.js"],import.meta.url).then(h=>h.j),Le(()=>import("./sublime.es-e2a3eb60.js"),["./sublime.es-e2a3eb60.js","./codemirror.es2-5884f31a.js","./searchcursor.es2-cbfe7cae.js","./matchbrackets.es2-f53f57e6.js"],import.meta.url).then(h=>h.s),Le(()=>import("./mode.es3-95fc6895.js"),["./mode.es3-95fc6895.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js","./mode-indent.es-057a4f6a.js"],import.meta.url),Le(()=>import("./info-addon.es-c9b2027b.js"),["./info-addon.es-c9b2027b.js","./codemirror.es-52e8b92d.js","./codemirror.es2-5884f31a.js"],import.meta.url)],{useCommonAddons:!1}).then(h=>{if(!d)return;const E=document.createElement("div");h.registerHelper("info","graphql-results",(f,p,D,x)=>{const b=[],k=c.current;return k&&b.push(w.jsx(k,{pos:x,token:f})),FT.shouldRender(f)&&b.push(w.jsx(FT,{token:f},"image-preview")),b.length?(m5.render(b,E),E):(m5.unmountComponentAtNode(E),null)});const g=l.current;if(!g)return;const m=h(g,{value:a,lineWrapping:!0,readOnly:!0,theme:e,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:VI});s(m)}),()=>{d=!1}},[e,a,s]),u_(o,"keyMap",t),C.useEffect(()=>{i&&(o==null||o.setValue(i)),r.length>0&&(o==null||o.setValue(Yy(r)))},[o,i,r]),l}Ce(AT,"useResponseEditor");function cie(u){const e=AT(u,cie);return w.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e})}Ce(cie,"ResponseEditor");function _T({isHidden:u,...e}){const{variableEditor:t}=Ia({nonNull:!0,caller:_T}),n=xf(e,_T);return C.useEffect(()=>{t&&!u&&t.refresh()},[t,u]),w.jsx("div",{className:Ra("graphiql-editor",u&&"hidden"),ref:n})}Ce(_T,"VariableEditor");function RIe({children:u,dangerouslyAssumeSchemaIsValid:e,defaultQuery:t,defaultHeaders:n,defaultTabs:i,externalFragments:r,fetcher:a,getDefaultFieldNames:o,headers:s,inputValueDeprecation:l,introspectionQueryName:c,maxHistoryLength:d,onEditOperationName:h,onSchemaChange:E,onTabChange:g,onTogglePluginVisibility:m,operationName:f,plugins:p,query:D,response:x,schema:b,schemaDescription:k,shouldPersistHeaders:_,storage:y,validationRules:S,variables:B,visiblePlugin:L}){return w.jsx(jRe,{storage:y,children:w.jsx(YRe,{maxHistoryLength:d,children:w.jsx(PIe,{defaultQuery:t,defaultHeaders:n,defaultTabs:i,externalFragments:r,headers:s,onEditOperationName:h,onTabChange:g,query:D,response:x,shouldPersistHeaders:_,validationRules:S,variables:B,children:w.jsx(Yne,{dangerouslyAssumeSchemaIsValid:e,fetcher:a,inputValueDeprecation:l,introspectionQueryName:c,onSchemaChange:E,schema:b,schemaDescription:k,children:w.jsx(xT,{getDefaultFieldNames:o,fetcher:a,operationName:f,children:w.jsx(Qne,{children:w.jsx(DIe,{onTogglePluginVisibility:m,plugins:p,visiblePlugin:L,children:u})})})})})})})}Ce(RIe,"GraphiQLProvider");function IIe(){const u=bm(),[e,t]=C.useState(()=>{if(!u)return null;const i=u.get(p$);switch(i){case"light":return"light";case"dark":return"dark";default:return typeof i=="string"&&u.set(p$,""),null}});C.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),e&&document.body.classList.add(`graphiql-${e}`))},[e]);const n=C.useCallback(i=>{u==null||u.set(p$,i||""),t(i)},[u]);return C.useMemo(()=>({theme:e,setTheme:n}),[e,n])}Ce(IIe,"useTheme");const p$="theme";function k8({defaultSizeRelation:u=$Ru,direction:e,initiallyHidden:t,onHiddenElementChange:n,sizeThresholdFirst:i=100,sizeThresholdSecond:r=100,storageKey:a}){const o=bm(),s=C.useMemo(()=>lp(500,D=>{a&&(o==null||o.set(a,D))}),[o,a]),[l,c]=C.useState(()=>{const D=a&&(o==null?void 0:o.get(a));return D===Z9||t==="first"?"first":D===Y9||t==="second"?"second":null}),d=C.useCallback(D=>{D!==l&&(c(D),n==null||n(D))},[l,n]),h=C.useRef(null),E=C.useRef(null),g=C.useRef(null),m=C.useRef(`${u}`);C.useLayoutEffect(()=>{const D=a&&(o==null?void 0:o.get(a))||m.current;h.current&&(h.current.style.display="flex",h.current.style.flex=D===Z9||D===Y9?m.current:D),g.current&&(g.current.style.display="flex",g.current.style.flex="1"),E.current&&(E.current.style.display="flex")},[e,o,a]);const f=C.useCallback(D=>{const x=D==="first"?h.current:g.current;if(x&&(x.style.left="-1000px",x.style.position="absolute",x.style.opacity="0",x.style.height="500px",x.style.width="500px",h.current)){const b=parseFloat(h.current.style.flex);(!Number.isFinite(b)||b<1)&&(h.current.style.flex="1")}},[]),p=C.useCallback(D=>{const x=D==="first"?h.current:g.current;if(x&&(x.style.width="",x.style.height="",x.style.opacity="",x.style.position="",x.style.left="",o&&a)){const b=o.get(a);h.current&&b!==Z9&&b!==Y9&&(h.current.style.flex=b||m.current)}},[o,a]);return C.useLayoutEffect(()=>{l==="first"?f("first"):p("first"),l==="second"?f("second"):p("second")},[l,f,p]),C.useEffect(()=>{if(!E.current||!h.current||!g.current)return;const D=E.current,x=h.current,b=x.parentElement,k=e==="horizontal"?"clientX":"clientY",_=e==="horizontal"?"left":"top",y=e==="horizontal"?"right":"bottom",S=e==="horizontal"?"clientWidth":"clientHeight";function B(T){T.preventDefault();const N=T[k]-D.getBoundingClientRect()[_];function F(z){if(z.buttons===0)return A();const P=z[k]-b.getBoundingClientRect()[_]-N,I=b.getBoundingClientRect()[y]-z[k]+N-D[S];if(P{D.removeEventListener("mousedown",B),D.removeEventListener("dblclick",L)}},[e,d,i,r,s]),C.useMemo(()=>({dragBarRef:E,hiddenElement:l,firstRef:h,setHiddenElement:c,secondRef:g}),[l,c])}Ce(k8,"useDragResize");const $Ru=1,Z9="hide-first",Y9="hide-second",y8=C.forwardRef(({label:u,onClick:e,...t},n)=>{const[i,r]=C.useState(null),a=C.useCallback(o=>{try{e==null||e(o),r(null)}catch(s){r(s instanceof Error?s:new Error(`Toolbar button click failed: ${s}`))}},[e]);return w.jsx(ko,{label:u,children:w.jsx(ua,{...t,ref:n,type:"button",className:Ra("graphiql-toolbar-button",i&&"error",t.className),onClick:a,"aria-label":i?i.message:u,"aria-invalid":i?"true":t["aria-invalid"]})})});y8.displayName="ToolbarButton";function ST(){const{queryEditor:u,setOperationName:e}=Ia({nonNull:!0,caller:ST}),{isFetching:t,isSubscribed:n,operationName:i,run:r,stop:a}=t_({nonNull:!0,caller:ST}),o=(u==null?void 0:u.operations)||[],s=o.length>1&&typeof i!="string",l=t||n,c=`${l?"Stop":"Execute"} query (Ctrl-Enter)`,d={type:"button",className:"graphiql-execute-button",children:l?w.jsx(wRu,{}):w.jsx(bRu,{}),"aria-label":c};return s&&!l?w.jsxs(NE,{children:[w.jsx(ko,{label:c,children:w.jsx(NE.Button,{...d})}),w.jsx(NE.Content,{children:o.map((h,E)=>{const g=h.name?h.name.value:``;return w.jsx(NE.Item,{onSelect:()=>{var m;const f=(m=h.name)==null?void 0:m.value;u&&f&&f!==u.operationName&&e(f),r()},children:g},`${g}-${E}`)})})]}):w.jsx(ko,{label:c,children:w.jsx("button",{...d,onClick:()=>{l?a():r()}})})}Ce(ST,"ExecuteButton");const KRu=Ce(({button:u,children:e,label:t,...n})=>w.jsxs(NE,{...n,children:[w.jsx(ko,{label:t,children:w.jsx(NE.Button,{className:Ra("graphiql-un-styled graphiql-toolbar-menu",n.className),"aria-label":t,children:u})}),w.jsx(NE.Content,{children:e})]}),"ToolbarMenuRoot");e_(KRu,{Item:NE.Item});var tY=globalThis&&globalThis.__assign||function(){return tY=Object.assign||function(u){for(var e,t=1,n=arguments.length;t0)&&!(i=n.next()).done;)r.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return r},GRu=parseInt(M.version.slice(0,2),10);if(GRu<16)throw new Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(` `));function RE(u){var e=u.dangerouslyAssumeSchemaIsValid,t=u.defaultQuery,n=u.defaultTabs,i=u.externalFragments,r=u.fetcher,a=u.getDefaultFieldNames,o=u.headers,s=u.inputValueDeprecation,l=u.introspectionQueryName,c=u.maxHistoryLength,d=u.onEditOperationName,h=u.onSchemaChange,E=u.onTabChange,g=u.onTogglePluginVisibility,m=u.operationName,f=u.plugins,p=u.query,D=u.response,x=u.schema,b=u.schemaDescription,k=u.shouldPersistHeaders,_=u.storage,y=u.validationRules,S=u.variables,B=u.visiblePlugin,L=u.defaultHeaders,T=WRu(u,["dangerouslyAssumeSchemaIsValid","defaultQuery","defaultTabs","externalFragments","fetcher","getDefaultFieldNames","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onTabChange","onTogglePluginVisibility","operationName","plugins","query","response","schema","schemaDescription","shouldPersistHeaders","storage","validationRules","variables","visiblePlugin","defaultHeaders"]);if(typeof r!="function")throw new TypeError("The `GraphiQL` component requires a `fetcher` function to be passed as prop.");return M.createElement(RIe,{getDefaultFieldNames:a,dangerouslyAssumeSchemaIsValid:e,defaultQuery:t,defaultHeaders:L,defaultTabs:n,externalFragments:i,fetcher:r,headers:o,inputValueDeprecation:s,introspectionQueryName:l,maxHistoryLength:c,onEditOperationName:d,onSchemaChange:h,onTabChange:E,onTogglePluginVisibility:g,plugins:f,visiblePlugin:B,operationName:m,query:p,response:D,schema:x,schemaDescription:b,shouldPersistHeaders:k,storage:_,validationRules:y,variables:S},M.createElement(URu,tY({showPersistHeadersSettings:k!==!1},T)))}RE.Logo=OIe;RE.Toolbar=jIe;RE.Footer=VIe;function URu(u){var e,t,n,i=(e=u.isHeadersEditorEnabled)!==null&&e!==void 0?e:!0,r=Ia({nonNull:!0}),a=t_({nonNull:!0}),o=V1({nonNull:!0}),s=bm(),l=HI(),c=$I({onCopyQuery:u.onCopyQuery}),d=cp(),h=LC(),E=IIe(),g=E.theme,m=E.setTheme,f=(t=l==null?void 0:l.visiblePlugin)===null||t===void 0?void 0:t.content,p=k8({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:l!=null&&l.visiblePlugin?void 0:"first",onHiddenElementChange:function(Ee){Ee==="first"&&(l==null||l.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),D=k8({direction:"horizontal",storageKey:"editorFlex"}),x=k8({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){if(!(u.defaultEditorToolsVisibility==="variables"||u.defaultEditorToolsVisibility==="headers"))return typeof u.defaultEditorToolsVisibility=="boolean"?u.defaultEditorToolsVisibility?void 0:"second":r.initialVariables||r.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"}),b=F8(C.useState(function(){return u.defaultEditorToolsVisibility==="variables"||u.defaultEditorToolsVisibility==="headers"?u.defaultEditorToolsVisibility:!r.initialVariables&&r.initialHeaders&&i?"headers":"variables"}),2),k=b[0],_=b[1],y=F8(C.useState(null),2),S=y[0],B=y[1],L=F8(C.useState(null),2),T=L[0],N=L[1],F=M.Children.toArray(u.children),A=F.find(function(Ee){return x$(Ee,RE.Logo)})||M.createElement(RE.Logo,null),z=F.find(function(Ee){return x$(Ee,RE.Toolbar)})||M.createElement(M.Fragment,null,M.createElement(y8,{onClick:h,label:"Prettify query (Shift-Ctrl-P)"},M.createElement(yRu,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),M.createElement(y8,{onClick:d,label:"Merge fragments into query (Shift-Ctrl-M)"},M.createElement(vRu,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),M.createElement(y8,{onClick:c,label:"Copy query (Shift-Ctrl-C)"},M.createElement(oRu,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),(n=u.toolbar)===null||n===void 0?void 0:n.additionalContent),P=F.find(function(Ee){return x$(Ee,RE.Footer)}),I=C.useCallback(function(){p.hiddenElement==="first"&&p.setHiddenElement(null)},[p]),j=C.useCallback(function(){try{s==null||s.clear(),N("success")}catch{N("error")}},[s]),V=C.useCallback(function(Ee){r.setShouldPersistHeaders(Ee.currentTarget.dataset.value==="true")},[r]),H=C.useCallback(function(Ee){var ut=Ee.currentTarget.dataset.theme;m(ut||null)},[m]),q=r.addTab,J=o.introspect,Q=r.moveTab,X=C.useCallback(function(Ee){B(Ee.currentTarget.dataset.value)},[]),Y=C.useCallback(function(Ee){var ut=l,we=Number(Ee.currentTarget.dataset.index),Ge=ut.plugins.find(function(Ht,eu){return we===eu}),nt=Ge===ut.visiblePlugin;nt?(ut.setVisiblePlugin(null),p.setHiddenElement("first")):(ut.setVisiblePlugin(Ge),p.setHiddenElement(null))},[l,p]),le=C.useCallback(function(Ee){x.hiddenElement==="second"&&x.setHiddenElement(null),_(Ee.currentTarget.dataset.name)},[x]),he=C.useCallback(function(){x.setHiddenElement(x.hiddenElement==="second"?null:"second")},[x]),ze=C.useCallback(function(Ee){Ee||B(null)},[]),Ie=C.useCallback(function(Ee){Ee||(B(null),N(null))},[]),We=M.createElement(ko,{label:"Add tab"},M.createElement(ua,{type:"button",className:"graphiql-tab-add",onClick:q,"aria-label":"Add tab"},M.createElement(kRu,{"aria-hidden":"true"})));return M.createElement(ko.Provider,null,M.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},M.createElement("div",{className:"graphiql-sidebar"},M.createElement("div",{className:"graphiql-sidebar-section"},l==null?void 0:l.plugins.map(function(Ee,ut){var we=Ee===l.visiblePlugin,Ge="".concat(we?"Hide":"Show"," ").concat(Ee.title),nt=Ee.icon;return M.createElement(ko,{key:Ee.title,label:Ge},M.createElement(ua,{type:"button",className:we?"active":"",onClick:Y,"data-index":ut,"aria-label":Ge},M.createElement(nt,{"aria-hidden":"true"})))})),M.createElement("div",{className:"graphiql-sidebar-section"},M.createElement(ko,{label:"Re-fetch GraphQL schema"},M.createElement(ua,{type:"button",disabled:o.isFetching,onClick:J,"aria-label":"Re-fetch GraphQL schema"},M.createElement(FRu,{className:o.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),M.createElement(ko,{label:"Open short keys dialog"},M.createElement(ua,{type:"button","data-value":"short-keys",onClick:X,"aria-label":"Open short keys dialog"},M.createElement(DRu,{"aria-hidden":"true"}))),M.createElement(ko,{label:"Open settings dialog"},M.createElement(ua,{type:"button","data-value":"settings",onClick:X,"aria-label":"Open settings dialog"},M.createElement(_Ru,{"aria-hidden":"true"}))))),M.createElement("div",{className:"graphiql-main"},M.createElement("div",{ref:p.firstRef,style:{minWidth:"200px"}},M.createElement("div",{className:"graphiql-plugin"},f?M.createElement(f,null):null)),(l==null?void 0:l.visiblePlugin)&&M.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:p.dragBarRef}),M.createElement("div",{ref:p.secondRef,className:"graphiql-sessions"},M.createElement("div",{className:"graphiql-session-header"},M.createElement(JRe,{values:r.tabs,onReorder:Q,"aria-label":"Select active operation"},r.tabs.length>1&&M.createElement(M.Fragment,null,r.tabs.map(function(Ee,ut){return M.createElement(m$,{key:Ee.id,value:Ee,isActive:ut===r.activeTabIndex},M.createElement(m$.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(ut),onClick:function(){a.stop(),r.changeTab(ut)}},Ee.title),M.createElement(m$.Close,{onClick:function(){r.activeTabIndex===ut&&a.stop(),r.closeTab(ut)}}))}),We)),M.createElement("div",{className:"graphiql-session-header-right"},r.tabs.length===1&&We,A)),M.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(r.activeTabIndex)},M.createElement("div",{ref:D.firstRef},M.createElement("div",{className:"graphiql-editors".concat(r.tabs.length===1?" full-height":"")},M.createElement("div",{ref:x.firstRef},M.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},M.createElement(lie,{editorTheme:u.editorTheme,keyMap:u.keyMap,onClickReference:I,onCopyQuery:u.onCopyQuery,onEdit:u.onEditQuery,readOnly:u.readOnly}),M.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},M.createElement(ST,null),z))),M.createElement("div",{ref:x.dragBarRef},M.createElement("div",{className:"graphiql-editor-tools"},M.createElement(ua,{type:"button",className:k==="variables"&&x.hiddenElement!=="second"?"active":"",onClick:le,"data-name":"variables"},"Variables"),i&&M.createElement(ua,{type:"button",className:k==="headers"&&x.hiddenElement!=="second"?"active":"",onClick:le,"data-name":"headers"},"Headers"),M.createElement(ko,{label:x.hiddenElement==="second"?"Show editor tools":"Hide editor tools"},M.createElement(ua,{type:"button",onClick:he,"aria-label":x.hiddenElement==="second"?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},x.hiddenElement==="second"?M.createElement(aRu,{className:"graphiql-chevron-icon","aria-hidden":"true"}):M.createElement(iRu,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),M.createElement("div",{ref:x.secondRef},M.createElement("section",{className:"graphiql-editor-tool","aria-label":k==="variables"?"Variables":"Headers"},M.createElement(_T,{editorTheme:u.editorTheme,isHidden:k!=="variables",keyMap:u.keyMap,onEdit:u.onEditVariables,onClickReference:I,readOnly:u.readOnly}),i&&M.createElement(yT,{editorTheme:u.editorTheme,isHidden:k!=="headers",keyMap:u.keyMap,onEdit:u.onEditHeaders,readOnly:u.readOnly}))))),M.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:D.dragBarRef}),M.createElement("div",{ref:D.secondRef},M.createElement("div",{className:"graphiql-response"},a.isFetching?M.createElement(Jne,null):null,M.createElement(cie,{editorTheme:u.editorTheme,responseTooltip:u.responseTooltip,keyMap:u.keyMap}),P))))),M.createElement(LD,{open:S==="short-keys",onOpenChange:ze},M.createElement("div",{className:"graphiql-dialog-header"},M.createElement(LD.Title,{className:"graphiql-dialog-title"},"Short Keys"),M.createElement(LD.Close,null)),M.createElement("div",{className:"graphiql-dialog-section"},M.createElement(JRu,{keyMap:u.keyMap||"sublime"}))),M.createElement(LD,{open:S==="settings",onOpenChange:Ie},M.createElement("div",{className:"graphiql-dialog-header"},M.createElement(LD.Title,{className:"graphiql-dialog-title"},"Settings"),M.createElement(LD.Close,null)),u.showPersistHeadersSettings?M.createElement("div",{className:"graphiql-dialog-section"},M.createElement("div",null,M.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),M.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",M.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),M.createElement(JZ,null,M.createElement(pc,{type:"button",id:"enable-persist-headers",className:r.shouldPersistHeaders?"active":"","data-value":"true",onClick:V},"On"),M.createElement(pc,{type:"button",id:"disable-persist-headers",className:r.shouldPersistHeaders?"":"active",onClick:V},"Off"))):null,M.createElement("div",{className:"graphiql-dialog-section"},M.createElement("div",null,M.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),M.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),M.createElement(JZ,null,M.createElement(pc,{type:"button",className:g===null?"active":"",onClick:H},"System"),M.createElement(pc,{type:"button",className:g==="light"?"active":"","data-theme":"light",onClick:H},"Light"),M.createElement(pc,{type:"button",className:g==="dark"?"active":"","data-theme":"dark",onClick:H},"Dark"))),s?M.createElement("div",{className:"graphiql-dialog-section"},M.createElement("div",null,M.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),M.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),M.createElement(pc,{type:"button",state:T||void 0,disabled:T==="success",onClick:j},{success:"Cleared data",error:"Failed"}[T]||"Clear data")):null)))}var D$=typeof window<"u"&&window.navigator.platform.toLowerCase().indexOf("mac")===0?"Cmd":"Ctrl",qRu=Object.entries({"Search in editor":[D$,"F"],"Search in documentation":[D$,"K"],"Execute query":[D$,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]});function JRu(u){var e=u.keyMap;return M.createElement("div",null,M.createElement("table",{className:"graphiql-table"},M.createElement("thead",null,M.createElement("tr",null,M.createElement("th",null,"Short Key"),M.createElement("th",null,"Function"))),M.createElement("tbody",null,qRu.map(function(t){var n=F8(t,2),i=n[0],r=n[1];return M.createElement("tr",{key:i},M.createElement("td",null,r.map(function(a,o,s){return M.createElement(C.Fragment,{key:a},M.createElement("code",{className:"graphiql-key"},a),o!==s.length-1&&" + ")})),M.createElement("td",null,i))}))),M.createElement("p",null,"The editors use"," ",M.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",M.createElement("em",null,"i"),"QL uses"," ",M.createElement("code",null,e),"."))}function OIe(u){return M.createElement("div",{className:"graphiql-logo"},u.children||M.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",M.createElement("em",null,"i"),"QL"))}OIe.displayName="GraphiQLLogo";function jIe(u){return M.createElement(M.Fragment,null,u.children)}jIe.displayName="GraphiQLToolbar";function VIe(u){return M.createElement("div",{className:"graphiql-footer"},u.children)}VIe.displayName="GraphiQLFooter";function x$(u,e){var t;return!((t=u==null?void 0:u.type)===null||t===void 0)&&t.displayName&&u.type.displayName===e.displayName?!0:u.type===e}/** * @remix-run/router v1.8.0 * diff --git a/assets/info.es-86a835a3.js b/assets/info.es-ff0a8c74.js similarity index 94% rename from assets/info.es-86a835a3.js rename to assets/info.es-ff0a8c74.js index a03ec5ce..22a5a624 100644 --- a/assets/info.es-86a835a3.js +++ b/assets/info.es-ff0a8c74.js @@ -1 +1 @@ -import{C as g}from"./codemirror.es-52e8b92d.js";import{E as L,L as C,R as M,_ as x,G as V,O as l}from"./SchemaReference.es-97a13a89.js";import"./info-addon.es-c9b2027b.js";import"./codemirror.es2-5884f31a.js";import"./forEachState.es-b2033c2b.js";import{X as u,Y as f}from"./index-04ef1cc9.js";var k=Object.defineProperty,d=(r,e)=>k(r,"name",{value:e,configurable:!0});g.registerHelper("info","graphql",(r,e)=>{if(!e.schema||!r.state)return;const{kind:i,step:t}=r.state,n=L(e.schema,r.state);if(i==="Field"&&t===0&&n.fieldDef||i==="AliasedField"&&t===2&&n.fieldDef){const c=document.createElement("div");c.className="CodeMirror-info-header",v(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.fieldDef),o}if(i==="Directive"&&t===1&&n.directiveDef){const c=document.createElement("div");c.className="CodeMirror-info-header",D(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.directiveDef),o}if(i==="Argument"&&t===0&&n.argDef){const c=document.createElement("div");c.className="CodeMirror-info-header",y(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.argDef),o}if(i==="EnumValue"&&n.enumValue&&n.enumValue.description){const c=document.createElement("div");c.className="CodeMirror-info-header",N(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.enumValue),o}if(i==="NamedType"&&n.type&&n.type.description){const c=document.createElement("div");c.className="CodeMirror-info-header",m(c,n,e,n.type);const o=document.createElement("div");return o.append(c),p(o,e,n.type),o}});function v(r,e,i){E(r,e,i),s(r,e,i,e.type)}d(v,"renderField");function E(r,e,i){var t;const n=((t=e.fieldDef)===null||t===void 0?void 0:t.name)||"";a(r,n,"field-name",i,C(e))}d(E,"renderQualifiedField");function D(r,e,i){var t;const n="@"+(((t=e.directiveDef)===null||t===void 0?void 0:t.name)||"");a(r,n,"directive-name",i,M(e))}d(D,"renderDirective");function y(r,e,i){var t;const n=((t=e.argDef)===null||t===void 0?void 0:t.name)||"";a(r,n,"arg-name",i,x(e)),s(r,e,i,e.inputType)}d(y,"renderArg");function N(r,e,i){var t;const n=((t=e.enumValue)===null||t===void 0?void 0:t.name)||"";m(r,e,i,e.inputType),a(r,"."),a(r,n,"enum-value",i,V(e))}d(N,"renderEnumValue");function s(r,e,i,t){const n=document.createElement("span");n.className="type-name-pill",t instanceof u?(m(n,e,i,t.ofType),a(n,"!")):t instanceof f?(a(n,"["),m(n,e,i,t.ofType),a(n,"]")):a(n,(t==null?void 0:t.name)||"","type-name",i,l(e,t)),r.append(n)}d(s,"renderTypeAnnotation");function m(r,e,i,t){t instanceof u?(m(r,e,i,t.ofType),a(r,"!")):t instanceof f?(a(r,"["),m(r,e,i,t.ofType),a(r,"]")):a(r,(t==null?void 0:t.name)||"","type-name",i,l(e,t))}d(m,"renderType");function p(r,e,i){const{description:t}=i;if(t){const n=document.createElement("div");n.className="info-description",e.renderDescription?n.innerHTML=e.renderDescription(t):n.append(document.createTextNode(t)),r.append(n)}T(r,e,i)}d(p,"renderDescription");function T(r,e,i){const t=i.deprecationReason;if(t){const n=document.createElement("div");n.className="info-deprecation",r.append(n);const c=document.createElement("span");c.className="info-deprecation-label",c.append(document.createTextNode("Deprecated")),n.append(c);const o=document.createElement("div");o.className="info-deprecation-reason",e.renderDescription?o.innerHTML=e.renderDescription(t):o.append(document.createTextNode(t)),n.append(o)}}d(T,"renderDeprecation");function a(r,e,i="",t={onClick:null},n=null){if(i){const{onClick:c}=t;let o;c?(o=document.createElement("a"),o.href="javascript:void 0",o.addEventListener("click",h=>{c(n,h)})):o=document.createElement("span"),o.className=i,o.append(document.createTextNode(e)),r.append(o)}else r.append(document.createTextNode(e))}d(a,"text"); +import{C as g}from"./codemirror.es-52e8b92d.js";import{E as L,L as C,R as M,_ as x,G as V,O as l}from"./SchemaReference.es-74b569fb.js";import"./info-addon.es-c9b2027b.js";import"./codemirror.es2-5884f31a.js";import"./forEachState.es-b2033c2b.js";import{X as u,Y as f}from"./index-71dfccbc.js";var k=Object.defineProperty,d=(r,e)=>k(r,"name",{value:e,configurable:!0});g.registerHelper("info","graphql",(r,e)=>{if(!e.schema||!r.state)return;const{kind:i,step:t}=r.state,n=L(e.schema,r.state);if(i==="Field"&&t===0&&n.fieldDef||i==="AliasedField"&&t===2&&n.fieldDef){const c=document.createElement("div");c.className="CodeMirror-info-header",v(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.fieldDef),o}if(i==="Directive"&&t===1&&n.directiveDef){const c=document.createElement("div");c.className="CodeMirror-info-header",D(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.directiveDef),o}if(i==="Argument"&&t===0&&n.argDef){const c=document.createElement("div");c.className="CodeMirror-info-header",y(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.argDef),o}if(i==="EnumValue"&&n.enumValue&&n.enumValue.description){const c=document.createElement("div");c.className="CodeMirror-info-header",N(c,n,e);const o=document.createElement("div");return o.append(c),p(o,e,n.enumValue),o}if(i==="NamedType"&&n.type&&n.type.description){const c=document.createElement("div");c.className="CodeMirror-info-header",m(c,n,e,n.type);const o=document.createElement("div");return o.append(c),p(o,e,n.type),o}});function v(r,e,i){E(r,e,i),s(r,e,i,e.type)}d(v,"renderField");function E(r,e,i){var t;const n=((t=e.fieldDef)===null||t===void 0?void 0:t.name)||"";a(r,n,"field-name",i,C(e))}d(E,"renderQualifiedField");function D(r,e,i){var t;const n="@"+(((t=e.directiveDef)===null||t===void 0?void 0:t.name)||"");a(r,n,"directive-name",i,M(e))}d(D,"renderDirective");function y(r,e,i){var t;const n=((t=e.argDef)===null||t===void 0?void 0:t.name)||"";a(r,n,"arg-name",i,x(e)),s(r,e,i,e.inputType)}d(y,"renderArg");function N(r,e,i){var t;const n=((t=e.enumValue)===null||t===void 0?void 0:t.name)||"";m(r,e,i,e.inputType),a(r,"."),a(r,n,"enum-value",i,V(e))}d(N,"renderEnumValue");function s(r,e,i,t){const n=document.createElement("span");n.className="type-name-pill",t instanceof u?(m(n,e,i,t.ofType),a(n,"!")):t instanceof f?(a(n,"["),m(n,e,i,t.ofType),a(n,"]")):a(n,(t==null?void 0:t.name)||"","type-name",i,l(e,t)),r.append(n)}d(s,"renderTypeAnnotation");function m(r,e,i,t){t instanceof u?(m(r,e,i,t.ofType),a(r,"!")):t instanceof f?(a(r,"["),m(r,e,i,t.ofType),a(r,"]")):a(r,(t==null?void 0:t.name)||"","type-name",i,l(e,t))}d(m,"renderType");function p(r,e,i){const{description:t}=i;if(t){const n=document.createElement("div");n.className="info-description",e.renderDescription?n.innerHTML=e.renderDescription(t):n.append(document.createTextNode(t)),r.append(n)}T(r,e,i)}d(p,"renderDescription");function T(r,e,i){const t=i.deprecationReason;if(t){const n=document.createElement("div");n.className="info-deprecation",r.append(n);const c=document.createElement("span");c.className="info-deprecation-label",c.append(document.createTextNode("Deprecated")),n.append(c);const o=document.createElement("div");o.className="info-deprecation-reason",e.renderDescription?o.innerHTML=e.renderDescription(t):o.append(document.createTextNode(t)),n.append(o)}}d(T,"renderDeprecation");function a(r,e,i="",t={onClick:null},n=null){if(i){const{onClick:c}=t;let o;c?(o=document.createElement("a"),o.href="javascript:void 0",o.addEventListener("click",h=>{c(n,h)})):o=document.createElement("span"),o.className=i,o.append(document.createTextNode(e)),r.append(o)}else r.append(document.createTextNode(e))}d(a,"text"); diff --git a/assets/javascript-8b6f2757.js b/assets/javascript-c1e94295.js similarity index 89% rename from assets/javascript-8b6f2757.js rename to assets/javascript-c1e94295.js index 8ca32e28..fc3f87c2 100644 --- a/assets/javascript-8b6f2757.js +++ b/assets/javascript-c1e94295.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./typescript-36d90a22.js";import"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./typescript-9dc221fd.js";import"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/jsonMode-864dd819.js b/assets/jsonMode-5716b9eb.js similarity index 99% rename from assets/jsonMode-864dd819.js rename to assets/jsonMode-5716b9eb.js index 8eb62ae8..f63a04fb 100644 --- a/assets/jsonMode-864dd819.js +++ b/assets/jsonMode-5716b9eb.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var C=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var C=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/jump.es-120ffb07.js b/assets/jump.es-9013da34.js similarity index 95% rename from assets/jump.es-120ffb07.js rename to assets/jump.es-9013da34.js index ab028880..ae9d5493 100644 --- a/assets/jump.es-120ffb07.js +++ b/assets/jump.es-9013da34.js @@ -1 +1 @@ -import{C as u}from"./codemirror.es-52e8b92d.js";import{E as g,L as M,R as k,_ as v,G as y,O}from"./SchemaReference.es-97a13a89.js";import"./codemirror.es2-5884f31a.js";import"./forEachState.es-b2033c2b.js";import"./index-04ef1cc9.js";var D=Object.defineProperty,s=(t,n)=>D(t,"name",{value:n,configurable:!0});u.defineOption("jump",!1,(t,n,i)=>{if(i&&i!==u.Init){const e=t.state.jump.onMouseOver;u.off(t.getWrapperElement(),"mouseover",e);const r=t.state.jump.onMouseOut;u.off(t.getWrapperElement(),"mouseout",r),u.off(document,"keydown",t.state.jump.onKeyDown),delete t.state.jump}if(n){const e=t.state.jump={options:n,onMouseOver:c.bind(null,t),onMouseOut:d.bind(null,t),onKeyDown:f.bind(null,t)};u.on(t.getWrapperElement(),"mouseover",e.onMouseOver),u.on(t.getWrapperElement(),"mouseout",e.onMouseOut),u.on(document,"keydown",e.onKeyDown)}});function c(t,n){const i=n.target||n.srcElement;if(!(i instanceof HTMLElement)||(i==null?void 0:i.nodeName)!=="SPAN")return;const e=i.getBoundingClientRect(),r={left:(e.left+e.right)/2,top:(e.top+e.bottom)/2};t.state.jump.cursor=r,t.state.jump.isHoldingModifier&&p(t)}s(c,"onMouseOver");function d(t){if(!t.state.jump.isHoldingModifier&&t.state.jump.cursor){t.state.jump.cursor=null;return}t.state.jump.isHoldingModifier&&t.state.jump.marker&&l(t)}s(d,"onMouseOut");function f(t,n){if(t.state.jump.isHoldingModifier||!j(n.key))return;t.state.jump.isHoldingModifier=!0,t.state.jump.cursor&&p(t);const i=s(o=>{o.code===n.code&&(t.state.jump.isHoldingModifier=!1,t.state.jump.marker&&l(t),u.off(document,"keyup",i),u.off(document,"click",e),t.off("mousedown",r))},"onKeyUp"),e=s(o=>{const{destination:a,options:m}=t.state.jump;a&&m.onClick(a,o)},"onClick"),r=s((o,a)=>{t.state.jump.destination&&(a.codemirrorIgnore=!0)},"onMouseDown");u.on(document,"keyup",i),u.on(document,"click",e),t.on("mousedown",r)}s(f,"onKeyDown");const w=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function j(t){return t===(w?"Meta":"Control")}s(j,"isJumpModifier");function p(t){if(t.state.jump.marker)return;const{cursor:n,options:i}=t.state.jump,e=t.coordsChar(n),r=t.getTokenAt(e,!0),o=i.getDestination||t.getHelper(e,"jump");if(o){const a=o(r,i,t);if(a){const m=t.markText({line:e.line,ch:r.start},{line:e.line,ch:r.end},{className:"CodeMirror-jump-token"});t.state.jump.marker=m,t.state.jump.destination=a}}}s(p,"enableJumpMode");function l(t){const{marker:n}=t.state.jump;t.state.jump.marker=null,t.state.jump.destination=null,n.clear()}s(l,"disableJumpMode");u.registerHelper("jump","graphql",(t,n)=>{if(!n.schema||!n.onClick||!t.state)return;const{state:i}=t,{kind:e,step:r}=i,o=g(n.schema,i);if(e==="Field"&&r===0&&o.fieldDef||e==="AliasedField"&&r===2&&o.fieldDef)return M(o);if(e==="Directive"&&r===1&&o.directiveDef)return k(o);if(e==="Argument"&&r===0&&o.argDef)return v(o);if(e==="EnumValue"&&o.enumValue)return y(o);if(e==="NamedType"&&o.type)return O(o)}); +import{C as u}from"./codemirror.es-52e8b92d.js";import{E as g,L as M,R as k,_ as v,G as y,O}from"./SchemaReference.es-74b569fb.js";import"./codemirror.es2-5884f31a.js";import"./forEachState.es-b2033c2b.js";import"./index-71dfccbc.js";var D=Object.defineProperty,s=(t,n)=>D(t,"name",{value:n,configurable:!0});u.defineOption("jump",!1,(t,n,i)=>{if(i&&i!==u.Init){const e=t.state.jump.onMouseOver;u.off(t.getWrapperElement(),"mouseover",e);const r=t.state.jump.onMouseOut;u.off(t.getWrapperElement(),"mouseout",r),u.off(document,"keydown",t.state.jump.onKeyDown),delete t.state.jump}if(n){const e=t.state.jump={options:n,onMouseOver:c.bind(null,t),onMouseOut:d.bind(null,t),onKeyDown:f.bind(null,t)};u.on(t.getWrapperElement(),"mouseover",e.onMouseOver),u.on(t.getWrapperElement(),"mouseout",e.onMouseOut),u.on(document,"keydown",e.onKeyDown)}});function c(t,n){const i=n.target||n.srcElement;if(!(i instanceof HTMLElement)||(i==null?void 0:i.nodeName)!=="SPAN")return;const e=i.getBoundingClientRect(),r={left:(e.left+e.right)/2,top:(e.top+e.bottom)/2};t.state.jump.cursor=r,t.state.jump.isHoldingModifier&&p(t)}s(c,"onMouseOver");function d(t){if(!t.state.jump.isHoldingModifier&&t.state.jump.cursor){t.state.jump.cursor=null;return}t.state.jump.isHoldingModifier&&t.state.jump.marker&&l(t)}s(d,"onMouseOut");function f(t,n){if(t.state.jump.isHoldingModifier||!j(n.key))return;t.state.jump.isHoldingModifier=!0,t.state.jump.cursor&&p(t);const i=s(o=>{o.code===n.code&&(t.state.jump.isHoldingModifier=!1,t.state.jump.marker&&l(t),u.off(document,"keyup",i),u.off(document,"click",e),t.off("mousedown",r))},"onKeyUp"),e=s(o=>{const{destination:a,options:m}=t.state.jump;a&&m.onClick(a,o)},"onClick"),r=s((o,a)=>{t.state.jump.destination&&(a.codemirrorIgnore=!0)},"onMouseDown");u.on(document,"keyup",i),u.on(document,"click",e),t.on("mousedown",r)}s(f,"onKeyDown");const w=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function j(t){return t===(w?"Meta":"Control")}s(j,"isJumpModifier");function p(t){if(t.state.jump.marker)return;const{cursor:n,options:i}=t.state.jump,e=t.coordsChar(n),r=t.getTokenAt(e,!0),o=i.getDestination||t.getHelper(e,"jump");if(o){const a=o(r,i,t);if(a){const m=t.markText({line:e.line,ch:r.start},{line:e.line,ch:r.end},{className:"CodeMirror-jump-token"});t.state.jump.marker=m,t.state.jump.destination=a}}}s(p,"enableJumpMode");function l(t){const{marker:n}=t.state.jump;t.state.jump.marker=null,t.state.jump.destination=null,n.clear()}s(l,"disableJumpMode");u.registerHelper("jump","graphql",(t,n)=>{if(!n.schema||!n.onClick||!t.state)return;const{state:i}=t,{kind:e,step:r}=i,o=g(n.schema,i);if(e==="Field"&&r===0&&o.fieldDef||e==="AliasedField"&&r===2&&o.fieldDef)return M(o);if(e==="Directive"&&r===1&&o.directiveDef)return k(o);if(e==="Argument"&&r===0&&o.argDef)return v(o);if(e==="EnumValue"&&o.enumValue)return y(o);if(e==="NamedType"&&o.type)return O(o)}); diff --git a/assets/lint.es2-a90e055d.js b/assets/lint.es2-aa53b1fe.js similarity index 99% rename from assets/lint.es2-a90e055d.js rename to assets/lint.es2-aa53b1fe.js index bfeecb70..25b06f75 100644 --- a/assets/lint.es2-a90e055d.js +++ b/assets/lint.es2-aa53b1fe.js @@ -1,4 +1,4 @@ -import{C as q}from"./codemirror.es-52e8b92d.js";import{K as u,G as p,d as _,i as ue,a as S,n as fe,b as w,s as F,c as h,e as R,p as v,f as X,h as y,j as T,D as E,O as G,k as Ae,l as Pe,o as O,q as P,r as I,u as k,v as te,w as ke,x as Ue,y as de,z as $,A as pe,B as U,C as Ve,E as je,F as Le,H as Me,I as Ye,J as Xe,L as Be,M as re,T as me,N as ge,P as Te,Q as qe,R as Ge,S as Je,U as Qe,V as He,W as Ke}from"./index-04ef1cc9.js";import{R as Ee,P as V}from"./Range-52ddcb6a.js";import"./codemirror.es2-5884f31a.js";function We(e){return e.kind===u.OPERATION_DEFINITION||e.kind===u.FRAGMENT_DEFINITION}function ze(e){return e.kind===u.SCHEMA_DEFINITION||B(e)||e.kind===u.DIRECTIVE_DEFINITION}function B(e){return e.kind===u.SCALAR_TYPE_DEFINITION||e.kind===u.OBJECT_TYPE_DEFINITION||e.kind===u.INTERFACE_TYPE_DEFINITION||e.kind===u.UNION_TYPE_DEFINITION||e.kind===u.ENUM_TYPE_DEFINITION||e.kind===u.INPUT_OBJECT_TYPE_DEFINITION}function Ze(e){return e.kind===u.SCHEMA_EXTENSION||Ne(e)}function Ne(e){return e.kind===u.SCALAR_TYPE_EXTENSION||e.kind===u.OBJECT_TYPE_EXTENSION||e.kind===u.INTERFACE_TYPE_EXTENSION||e.kind===u.UNION_TYPE_EXTENSION||e.kind===u.ENUM_TYPE_EXTENSION||e.kind===u.INPUT_OBJECT_TYPE_EXTENSION}function ve(e){return{Document(t){for(const n of t.definitions)if(!We(n)){const r=n.kind===u.SCHEMA_DEFINITION||n.kind===u.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new p(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function xe(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),s=t.name.value;let a=_("to use an inline fragment on",en(i,n,s));a===""&&(a=_(nn(n,s))),e.reportError(new p(`Cannot query field "${s}" on type "${n.name}".`+a,{nodes:t}))}}}}function en(e,t,n){if(!ue(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const o of a.getInterfaces()){var s;o.getFields()[n]&&(r.add(o),i[o.name]=((s=i[o.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((a,o)=>{const l=i[o.name]-i[a.name];return l!==0?l:S(a)&&e.isSubType(a,o)?-1:S(o)&&e.isSubType(o,a)?1:fe(a.name,o.name)}).map(a=>a.name)}function nn(e,t){if(w(e)||S(e)){const n=Object.keys(e.getFields());return F(t,n)}return[]}function tn(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=h(e.getSchema(),n);if(r&&!R(r)){const i=v(n);e.reportError(new p(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){const n=h(e.getSchema(),t.typeCondition);if(n&&!R(n)){const r=v(t.typeCondition);e.reportError(new p(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function rn(e){return{...sn(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const s=t.name.value,a=r.args.map(l=>l.name),o=F(s,a);e.reportError(new p(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+_(o),{nodes:t}))}}}}function sn(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():X;for(const a of r)t[a.name]=a.args.map(o=>o.name);const i=e.getDocument().definitions;for(const a of i)if(a.kind===u.DIRECTIVE_DEFINITION){var s;const o=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=o.map(l=>l.name.value)}return{Directive(a){const o=a.name.value,l=t[o];if(a.arguments&&l)for(const c of a.arguments){const f=c.name.value;if(!l.includes(f)){const d=F(f,l);e.reportError(new p(`Unknown argument "${f}" on directive "@${o}".`+_(d),{nodes:c}))}}return!1}}}function ye(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():X;for(const s of r)t[s.name]=s.locations;const i=e.getDocument().definitions;for(const s of i)s.kind===u.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(a=>a.value));return{Directive(s,a,o,l,c){const f=s.name.value,d=t[f];if(!d){e.reportError(new p(`Unknown directive "@${f}".`,{nodes:s}));return}const m=on(c);m&&!d.includes(m)&&e.reportError(new p(`Directive "@${f}" may not be used on ${m}.`,{nodes:s}))}}}function on(e){const t=e[e.length-1];switch("kind"in t||y(!1),t.kind){case u.OPERATION_DEFINITION:return an(t.operation);case u.FIELD:return E.FIELD;case u.FRAGMENT_SPREAD:return E.FRAGMENT_SPREAD;case u.INLINE_FRAGMENT:return E.INLINE_FRAGMENT;case u.FRAGMENT_DEFINITION:return E.FRAGMENT_DEFINITION;case u.VARIABLE_DEFINITION:return E.VARIABLE_DEFINITION;case u.SCHEMA_DEFINITION:case u.SCHEMA_EXTENSION:return E.SCHEMA;case u.SCALAR_TYPE_DEFINITION:case u.SCALAR_TYPE_EXTENSION:return E.SCALAR;case u.OBJECT_TYPE_DEFINITION:case u.OBJECT_TYPE_EXTENSION:return E.OBJECT;case u.FIELD_DEFINITION:return E.FIELD_DEFINITION;case u.INTERFACE_TYPE_DEFINITION:case u.INTERFACE_TYPE_EXTENSION:return E.INTERFACE;case u.UNION_TYPE_DEFINITION:case u.UNION_TYPE_EXTENSION:return E.UNION;case u.ENUM_TYPE_DEFINITION:case u.ENUM_TYPE_EXTENSION:return E.ENUM;case u.ENUM_VALUE_DEFINITION:return E.ENUM_VALUE;case u.INPUT_OBJECT_TYPE_DEFINITION:case u.INPUT_OBJECT_TYPE_EXTENSION:return E.INPUT_OBJECT;case u.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||y(!1),n.kind===u.INPUT_OBJECT_TYPE_DEFINITION?E.INPUT_FIELD_DEFINITION:E.ARGUMENT_DEFINITION}default:y(!1,"Unexpected kind: "+T(t.kind))}}function an(e){switch(e){case G.QUERY:return E.QUERY;case G.MUTATION:return E.MUTATION;case G.SUBSCRIPTION:return E.SUBSCRIPTION}}function Ie(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new p(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function he(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const s of e.getDocument().definitions)B(s)&&(r[s.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,a,o,l,c){const f=s.name.value;if(!n[f]&&!r[f]){var d;const m=(d=c[2])!==null&&d!==void 0?d:o,g=m!=null&&ln(m);if(g&&ie.includes(f))return;const N=F(f,g?ie.concat(i):i);e.reportError(new p(`Unknown type "${f}".`+_(N),{nodes:s}))}}}}const ie=[...Ae,...Pe].map(e=>e.name);function ln(e){return"kind"in e&&(ze(e)||Ze(e))}function cn(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===u.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new p("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function un(e){var t,n,r;const i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(o){if(s){e.reportError(new p("Cannot define a new schema within a schema extension.",{nodes:o}));return}a>0&&e.reportError(new p("Must provide only one schema definition.",{nodes:o})),++a}}}function fn(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;const a=s.name.value;t[a]=!0;const o=e.getFragmentSpreads(s.selectionSet);if(o.length!==0){r[a]=n.length;for(const l of o){const c=l.name.value,f=r[c];if(n.push(l),f===void 0){const d=e.getFragment(c);d&&i(d)}else{const d=n.slice(f),m=d.slice(0,-1).map(g=>'"'+g.name.value+'"').join(", ");e.reportError(new p(`Cannot spread fragment "${c}" within itself`+(m!==""?` via ${m}.`:"."),{nodes:d}))}n.pop()}r[a]=void 0}}}function dn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const s=i.name.value;t[s]!==!0&&e.reportError(new p(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function Oe(e){const t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of t)for(const s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(const i of n){const s=i.name.value;r[s]!==!0&&e.reportError(new p(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}function pn(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:s}of i)r[s.name.value]=!0;for(const s of t){const a=s.variable.name.value;r[a]!==!0&&e.reportError(new p(n.name?`Variable "$${a}" is never used in operation "${n.name.value}".`:`Variable "$${a}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}function z(e){switch(e.kind){case u.OBJECT:return{...e,fields:mn(e.fields)};case u.LIST:return{...e,values:e.values.map(z)};case u.INT:case u.FLOAT:case u.STRING:case u.BOOLEAN:case u.NULL:case u.ENUM:case u.VARIABLE:return e}}function mn(e){return e.map(t=>({...t,value:z(t.value)})).sort((t,n)=>fe(t.name.value,n.name.value))}function De(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+De(n)).join(" and "):e}function gn(e){const t=new In,n=new Map;return{SelectionSet(r){const i=Tn(e,n,t,e.getParentType(),r);for(const[[s,a],o,l]of i){const c=De(a);e.reportError(new p(`Fields "${s}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:o.concat(l)}))}}}}function Tn(e,t,n,r,i){const s=[],[a,o]=M(e,t,r,i);if(Nn(e,s,t,n,a),o.length!==0)for(let l=0;l1)for(let o=0;o[s.value,a]));return n.every(s=>{const a=s.value,o=i.get(s.name.value);return o===void 0?!1:se(a)===se(o)})}function se(e){return v(z(e))}function Q(e,t){return P(e)?P(t)?Q(e.ofType,t.ofType):!0:P(t)?!0:I(e)?I(t)?Q(e.ofType,t.ofType):!0:I(t)?!0:k(e)||k(t)?e!==t:!1}function M(e,t,n,r){const i=t.get(r);if(i)return i;const s=Object.create(null),a=Object.create(null);be(e,n,r,s,a);const o=[s,Object.keys(a)];return t.set(r,o),o}function H(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=h(e.getSchema(),n.typeCondition);return M(e,t,i,n.selectionSet)}function be(e,t,n,r,i){for(const s of n.selections)switch(s.kind){case u.FIELD:{const a=s.name.value;let o;(w(t)||S(t))&&(o=t.getFields()[a]);const l=s.alias?s.alias.value:a;r[l]||(r[l]=[]),r[l].push([t,s,o]);break}case u.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case u.INLINE_FRAGMENT:{const a=s.typeCondition,o=a?h(e.getSchema(),a):t;be(e,o,s.selectionSet,r,i);break}}}function yn(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}class In{constructor(){this._data=new Map}has(t,n,r){var i;const[s,a]=ts.name.value));for(const s of r.args)if(!i.has(s.name)&&pe(s)){const a=T(s.type);e.reportError(new p(`Field "${r.name}" argument "${s.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function Fn(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:X;for(const o of i)n[o.name]=U(o.args.filter(pe),l=>l.name);const s=e.getDocument().definitions;for(const o of s)if(o.kind===u.DIRECTIVE_DEFINITION){var a;const l=(a=o.arguments)!==null&&a!==void 0?a:[];n[o.name.value]=U(l.filter(Rn),c=>c.name.value)}return{Directive:{leave(o){const l=o.name.value,c=n[l];if(c){var f;const d=(f=o.arguments)!==null&&f!==void 0?f:[],m=new Set(d.map(g=>g.name.value));for(const[g,N]of Object.entries(c))if(!m.has(g)){const b=Ve(N.type)?T(N.type):v(N.type);e.reportError(new p(`Directive "@${l}" argument "${g}" of type "${b}" is required, but it was not provided.`,{nodes:o}))}}}}}}function Rn(e){return e.type.kind===u.NON_NULL_TYPE&&e.defaultValue==null}function $n(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n){if(k(O(n))){if(r){const i=t.name.value,s=T(n);e.reportError(new p(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){const i=t.name.value,s=T(n);e.reportError(new p(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}function Cn(e,t,n){var r;const i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],a=U(s,o=>o.name.value);for(const o of e.args){const l=o.name,c=o.type,f=a[l];if(!f){if(o.defaultValue!==void 0)i[l]=o.defaultValue;else if(I(c))throw new p(`Argument "${l}" of required type "${T(c)}" was not provided.`,{nodes:t});continue}const d=f.value;let m=d.kind===u.NULL;if(d.kind===u.VARIABLE){const N=d.name.value;if(n==null||!An(n,N)){if(o.defaultValue!==void 0)i[l]=o.defaultValue;else if(I(c))throw new p(`Argument "${l}" of required type "${T(c)}" was provided the variable "$${N}" which was not provided a runtime value.`,{nodes:d});continue}m=n[N]==null}if(m&&I(c))throw new p(`Argument "${l}" of non-null type "${T(c)}" must not be null.`,{nodes:d});const g=je(d,c,n);if(g===void 0)throw new p(`Argument "${l}" has invalid value ${v(d)}.`,{nodes:d});i[l]=g}return i}function oe(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return Cn(e,i,n)}function An(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pn(e,t,n,r,i){const s=new Map;return K(e,t,n,r,i,s,new Set),s}function K(e,t,n,r,i,s,a){for(const o of i.selections)switch(o.kind){case u.FIELD:{if(!J(n,o))continue;const l=kn(o),c=s.get(l);c!==void 0?c.push(o):s.set(l,[o]);break}case u.INLINE_FRAGMENT:{if(!J(n,o)||!ae(e,o,r))continue;K(e,t,n,r,o.selectionSet,s,a);break}case u.FRAGMENT_SPREAD:{const l=o.name.value;if(a.has(l)||!J(n,o))continue;a.add(l);const c=t[l];if(!c||!ae(e,c,r))continue;K(e,t,n,r,c.selectionSet,s,a);break}}}function J(e,t){const n=oe(Le,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=oe(Me,t,e);return(r==null?void 0:r.if)!==!1}function ae(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=h(e,r);return i===n?!0:ue(i)?e.isSubType(i,n):!1}function kn(e){return e.alias?e.alias.value:e.name.value}function Un(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,s=Object.create(null),a=e.getDocument(),o=Object.create(null);for(const c of a.definitions)c.kind===u.FRAGMENT_DEFINITION&&(o[c.name.value]=c);const l=Pn(n,o,s,r,t.selectionSet);if(l.size>1){const d=[...l.values()].slice(1).flat();e.reportError(new p(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(const c of l.values())c[0].name.value.startsWith("__")&&e.reportError(new p(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}function Se(e,t){const n=new Map;for(const r of e){const i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}function we(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Se(i,a=>a.name.value);for(const[a,o]of s)o.length>1&&e.reportError(new p(`There can be only one argument named "${a}".`,{nodes:o.map(l=>l.name)}))}}function Vn(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new p(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new p(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function Fe(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():X;for(const o of r)t[o.name]=!o.isRepeatable;const i=e.getDocument().definitions;for(const o of i)o.kind===u.DIRECTIVE_DEFINITION&&(t[o.name.value]=!o.repeatable);const s=Object.create(null),a=Object.create(null);return{enter(o){if(!("directives"in o)||!o.directives)return;let l;if(o.kind===u.SCHEMA_DEFINITION||o.kind===u.SCHEMA_EXTENSION)l=s;else if(B(o)||Ne(o)){const c=o.name.value;l=a[c],l===void 0&&(a[c]=l=Object.create(null))}else l=Object.create(null);for(const c of o.directives){const f=c.name.value;t[f]&&(l[f]?e.reportError(new p(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],c]})):l[f]=c)}}}}function jn(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var a;const o=s.name.value;r[o]||(r[o]=Object.create(null));const l=(a=s.values)!==null&&a!==void 0?a:[],c=r[o];for(const f of l){const d=f.name.value,m=n[o];de(m)&&m.getValue(d)?e.reportError(new p(`Enum value "${o}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):c[d]?e.reportError(new p(`Enum value "${o}.${d}" can only be defined once.`,{nodes:[c[d],f.name]})):c[d]=f.name}return!1}}function Ln(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var a;const o=s.name.value;r[o]||(r[o]=Object.create(null));const l=(a=s.fields)!==null&&a!==void 0?a:[],c=r[o];for(const f of l){const d=f.name.value;Mn(n[o],d)?e.reportError(new p(`Field "${o}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):c[d]?e.reportError(new p(`Field "${o}.${d}" can only be defined once.`,{nodes:[c[d],f.name]})):c[d]=f.name}return!1}}function Mn(e,t){return w(e)||S(e)||$(e)?e.getFields()[t]!=null:!1}function Yn(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new p(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Re(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||y(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new p(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function Xn(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new p(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Bn(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var a;const o=(a=s.operationTypes)!==null&&a!==void 0?a:[];for(const l of o){const c=l.operation,f=n[c];r[c]?e.reportError(new p(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new p(`There can be only one ${c} type in schema.`,{nodes:[f,l]})):n[c]=l}return!1}}function qn(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new p(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new p(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}function Gn(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Se(r,s=>s.variable.name.value);for(const[s,a]of i)a.length>1&&e.reportError(new p(`There can be only one variable named "$${s}".`,{nodes:a.map(o=>o.variable.name)}))}}}function Jn(e){return{ListValue(t){const n=Ye(e.getParentInputType());if(!P(n))return D(e,t),!1},ObjectValue(t){const n=O(e.getInputType());if(!$(n))return D(e,t),!1;const r=U(t.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Xe(i)){const a=T(i.type);e.reportError(new p(`Field "${n.name}.${i.name}" of required type "${a}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=O(e.getParentInputType());if(!e.getInputType()&&$(n)){const i=F(t.name.value,Object.keys(n.getFields()));e.reportError(new p(`Field "${t.name.value}" is not defined by type "${n.name}".`+_(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();I(n)&&e.reportError(new p(`Expected value of type "${T(n)}", found ${v(t)}.`,{nodes:t}))},EnumValue:t=>D(e,t),IntValue:t=>D(e,t),FloatValue:t=>D(e,t),StringValue:t=>D(e,t),BooleanValue:t=>D(e,t)}}function D(e,t){const n=e.getInputType();if(!n)return;const r=O(n);if(!k(r)){const i=T(n);e.reportError(new p(`Expected value of type "${i}", found ${v(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const s=T(n);e.reportError(new p(`Expected value of type "${s}", found ${v(t)}.`,{nodes:t}))}}catch(i){const s=T(n);i instanceof p?e.reportError(i):e.reportError(new p(`Expected value of type "${s}", found ${v(t)}; `+i.message,{nodes:t,originalError:i}))}}function Qn(e){return{VariableDefinition(t){const n=h(e.getSchema(),t.type);if(n!==void 0&&!Be(n)){const r=t.variable.name.value,i=v(t.type);e.reportError(new p(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function Hn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:s,defaultValue:a}of r){const o=i.name.value,l=t[o];if(l&&s){const c=e.getSchema(),f=h(c,l.type);if(f&&!Kn(c,f,l.defaultValue,s,a)){const d=T(f),m=T(s);e.reportError(new p(`Variable "$${o}" of type "${d}" used in position expecting type "${m}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function Kn(e,t,n,r,i){if(I(r)&&!I(t)){if(!(n!=null&&n.kind!==u.NULL)&&!(i!==void 0))return!1;const o=r.ofType;return re(e,t,o)}return re(e,t,r)}const $e=Object.freeze([ve,Xn,cn,Un,he,tn,Qn,$n,xe,Yn,Ie,Oe,hn,fn,Gn,dn,pn,ye,Fe,rn,we,Jn,wn,Hn,gn,Re]);class Wn{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===u.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const s of i.selections)s.kind===u.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let s;for(;s=i.pop();)for(const a of this.getFragmentSpreads(s)){const o=a.name.value;if(r[o]!==!0){r[o]=!0;const l=this.getFragment(o);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class zn extends Wn{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){const r=[],i=new me(this._schema);ge(t,Te(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Ce(e,t,n=$e,r,i=new me(e)){var s;const a=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||qe(!1,"Must provide document."),Ge(e);const o=Object.freeze({}),l=[],c=new zn(e,t,i,d=>{if(l.length>=a)throw l.push(new p("Too many validation errors, error limit reached. Validation aborted.")),o;l.push(d)}),f=Je(n.map(d=>d(c)));try{ge(t,Te(i,f))}catch(d){if(d!==o)throw d}return l}function Zn(e){return{Field(t){const n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getParentType();i!=null||y(!1),e.reportError(new p(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getDirective();if(i!=null)e.reportError(new p(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const s=e.getParentType(),a=e.getFieldDef();s!=null&&a!=null||y(!1),e.reportError(new p(`Field "${s.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=O(e.getParentInputType());if($(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new p(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=O(e.getInputType());i!=null||y(!1),e.reportError(new p(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}const xn=[un,Bn,qn,jn,Ln,Vn,he,ye,Fe,Dn,we,Re];function et(e,t,n,r,i){const s=$e.filter(o=>!(o===Oe||o===ve||r&&o===Ie));return n&&Array.prototype.push.apply(s,n),i&&Array.prototype.push.apply(s,xn),Ce(e,t,s).filter(o=>{if(o.message.includes("Unknown directive")&&o.nodes){const l=o.nodes[0];if(l&&l.kind===u.DIRECTIVE){const c=l.name.value;if(c==="arguments"||c==="argumentDefinitions")return!1}}return!0})}const A={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},W={[A.Error]:1,[A.Warning]:2,[A.Information]:3,[A.Hint]:4},Y=(e,t)=>{if(!e)throw new Error(t)};function nt(e,t=null,n,r,i){var s,a;let o=null,l="";i&&(l=typeof i=="string"?i:i.reduce((f,d)=>f+v(d)+` +import{C as q}from"./codemirror.es-52e8b92d.js";import{K as u,G as p,d as _,i as ue,a as S,n as fe,b as w,s as F,c as h,e as R,p as v,f as X,h as y,j as T,D as E,O as G,k as Ae,l as Pe,o as O,q as P,r as I,u as k,v as te,w as ke,x as Ue,y as de,z as $,A as pe,B as U,C as Ve,E as je,F as Le,H as Me,I as Ye,J as Xe,L as Be,M as re,T as me,N as ge,P as Te,Q as qe,R as Ge,S as Je,U as Qe,V as He,W as Ke}from"./index-71dfccbc.js";import{R as Ee,P as V}from"./Range-52ddcb6a.js";import"./codemirror.es2-5884f31a.js";function We(e){return e.kind===u.OPERATION_DEFINITION||e.kind===u.FRAGMENT_DEFINITION}function ze(e){return e.kind===u.SCHEMA_DEFINITION||B(e)||e.kind===u.DIRECTIVE_DEFINITION}function B(e){return e.kind===u.SCALAR_TYPE_DEFINITION||e.kind===u.OBJECT_TYPE_DEFINITION||e.kind===u.INTERFACE_TYPE_DEFINITION||e.kind===u.UNION_TYPE_DEFINITION||e.kind===u.ENUM_TYPE_DEFINITION||e.kind===u.INPUT_OBJECT_TYPE_DEFINITION}function Ze(e){return e.kind===u.SCHEMA_EXTENSION||Ne(e)}function Ne(e){return e.kind===u.SCALAR_TYPE_EXTENSION||e.kind===u.OBJECT_TYPE_EXTENSION||e.kind===u.INTERFACE_TYPE_EXTENSION||e.kind===u.UNION_TYPE_EXTENSION||e.kind===u.ENUM_TYPE_EXTENSION||e.kind===u.INPUT_OBJECT_TYPE_EXTENSION}function ve(e){return{Document(t){for(const n of t.definitions)if(!We(n)){const r=n.kind===u.SCHEMA_DEFINITION||n.kind===u.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new p(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function xe(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),s=t.name.value;let a=_("to use an inline fragment on",en(i,n,s));a===""&&(a=_(nn(n,s))),e.reportError(new p(`Cannot query field "${s}" on type "${n.name}".`+a,{nodes:t}))}}}}function en(e,t,n){if(!ue(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const o of a.getInterfaces()){var s;o.getFields()[n]&&(r.add(o),i[o.name]=((s=i[o.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((a,o)=>{const l=i[o.name]-i[a.name];return l!==0?l:S(a)&&e.isSubType(a,o)?-1:S(o)&&e.isSubType(o,a)?1:fe(a.name,o.name)}).map(a=>a.name)}function nn(e,t){if(w(e)||S(e)){const n=Object.keys(e.getFields());return F(t,n)}return[]}function tn(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=h(e.getSchema(),n);if(r&&!R(r)){const i=v(n);e.reportError(new p(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){const n=h(e.getSchema(),t.typeCondition);if(n&&!R(n)){const r=v(t.typeCondition);e.reportError(new p(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function rn(e){return{...sn(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const s=t.name.value,a=r.args.map(l=>l.name),o=F(s,a);e.reportError(new p(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+_(o),{nodes:t}))}}}}function sn(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():X;for(const a of r)t[a.name]=a.args.map(o=>o.name);const i=e.getDocument().definitions;for(const a of i)if(a.kind===u.DIRECTIVE_DEFINITION){var s;const o=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=o.map(l=>l.name.value)}return{Directive(a){const o=a.name.value,l=t[o];if(a.arguments&&l)for(const c of a.arguments){const f=c.name.value;if(!l.includes(f)){const d=F(f,l);e.reportError(new p(`Unknown argument "${f}" on directive "@${o}".`+_(d),{nodes:c}))}}return!1}}}function ye(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():X;for(const s of r)t[s.name]=s.locations;const i=e.getDocument().definitions;for(const s of i)s.kind===u.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(a=>a.value));return{Directive(s,a,o,l,c){const f=s.name.value,d=t[f];if(!d){e.reportError(new p(`Unknown directive "@${f}".`,{nodes:s}));return}const m=on(c);m&&!d.includes(m)&&e.reportError(new p(`Directive "@${f}" may not be used on ${m}.`,{nodes:s}))}}}function on(e){const t=e[e.length-1];switch("kind"in t||y(!1),t.kind){case u.OPERATION_DEFINITION:return an(t.operation);case u.FIELD:return E.FIELD;case u.FRAGMENT_SPREAD:return E.FRAGMENT_SPREAD;case u.INLINE_FRAGMENT:return E.INLINE_FRAGMENT;case u.FRAGMENT_DEFINITION:return E.FRAGMENT_DEFINITION;case u.VARIABLE_DEFINITION:return E.VARIABLE_DEFINITION;case u.SCHEMA_DEFINITION:case u.SCHEMA_EXTENSION:return E.SCHEMA;case u.SCALAR_TYPE_DEFINITION:case u.SCALAR_TYPE_EXTENSION:return E.SCALAR;case u.OBJECT_TYPE_DEFINITION:case u.OBJECT_TYPE_EXTENSION:return E.OBJECT;case u.FIELD_DEFINITION:return E.FIELD_DEFINITION;case u.INTERFACE_TYPE_DEFINITION:case u.INTERFACE_TYPE_EXTENSION:return E.INTERFACE;case u.UNION_TYPE_DEFINITION:case u.UNION_TYPE_EXTENSION:return E.UNION;case u.ENUM_TYPE_DEFINITION:case u.ENUM_TYPE_EXTENSION:return E.ENUM;case u.ENUM_VALUE_DEFINITION:return E.ENUM_VALUE;case u.INPUT_OBJECT_TYPE_DEFINITION:case u.INPUT_OBJECT_TYPE_EXTENSION:return E.INPUT_OBJECT;case u.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||y(!1),n.kind===u.INPUT_OBJECT_TYPE_DEFINITION?E.INPUT_FIELD_DEFINITION:E.ARGUMENT_DEFINITION}default:y(!1,"Unexpected kind: "+T(t.kind))}}function an(e){switch(e){case G.QUERY:return E.QUERY;case G.MUTATION:return E.MUTATION;case G.SUBSCRIPTION:return E.SUBSCRIPTION}}function Ie(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new p(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function he(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const s of e.getDocument().definitions)B(s)&&(r[s.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,a,o,l,c){const f=s.name.value;if(!n[f]&&!r[f]){var d;const m=(d=c[2])!==null&&d!==void 0?d:o,g=m!=null&&ln(m);if(g&&ie.includes(f))return;const N=F(f,g?ie.concat(i):i);e.reportError(new p(`Unknown type "${f}".`+_(N),{nodes:s}))}}}}const ie=[...Ae,...Pe].map(e=>e.name);function ln(e){return"kind"in e&&(ze(e)||Ze(e))}function cn(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===u.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new p("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function un(e){var t,n,r;const i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(o){if(s){e.reportError(new p("Cannot define a new schema within a schema extension.",{nodes:o}));return}a>0&&e.reportError(new p("Must provide only one schema definition.",{nodes:o})),++a}}}function fn(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;const a=s.name.value;t[a]=!0;const o=e.getFragmentSpreads(s.selectionSet);if(o.length!==0){r[a]=n.length;for(const l of o){const c=l.name.value,f=r[c];if(n.push(l),f===void 0){const d=e.getFragment(c);d&&i(d)}else{const d=n.slice(f),m=d.slice(0,-1).map(g=>'"'+g.name.value+'"').join(", ");e.reportError(new p(`Cannot spread fragment "${c}" within itself`+(m!==""?` via ${m}.`:"."),{nodes:d}))}n.pop()}r[a]=void 0}}}function dn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const s=i.name.value;t[s]!==!0&&e.reportError(new p(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function Oe(e){const t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of t)for(const s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(const i of n){const s=i.name.value;r[s]!==!0&&e.reportError(new p(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}function pn(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:s}of i)r[s.name.value]=!0;for(const s of t){const a=s.variable.name.value;r[a]!==!0&&e.reportError(new p(n.name?`Variable "$${a}" is never used in operation "${n.name.value}".`:`Variable "$${a}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}function z(e){switch(e.kind){case u.OBJECT:return{...e,fields:mn(e.fields)};case u.LIST:return{...e,values:e.values.map(z)};case u.INT:case u.FLOAT:case u.STRING:case u.BOOLEAN:case u.NULL:case u.ENUM:case u.VARIABLE:return e}}function mn(e){return e.map(t=>({...t,value:z(t.value)})).sort((t,n)=>fe(t.name.value,n.name.value))}function De(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+De(n)).join(" and "):e}function gn(e){const t=new In,n=new Map;return{SelectionSet(r){const i=Tn(e,n,t,e.getParentType(),r);for(const[[s,a],o,l]of i){const c=De(a);e.reportError(new p(`Fields "${s}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:o.concat(l)}))}}}}function Tn(e,t,n,r,i){const s=[],[a,o]=M(e,t,r,i);if(Nn(e,s,t,n,a),o.length!==0)for(let l=0;l1)for(let o=0;o[s.value,a]));return n.every(s=>{const a=s.value,o=i.get(s.name.value);return o===void 0?!1:se(a)===se(o)})}function se(e){return v(z(e))}function Q(e,t){return P(e)?P(t)?Q(e.ofType,t.ofType):!0:P(t)?!0:I(e)?I(t)?Q(e.ofType,t.ofType):!0:I(t)?!0:k(e)||k(t)?e!==t:!1}function M(e,t,n,r){const i=t.get(r);if(i)return i;const s=Object.create(null),a=Object.create(null);be(e,n,r,s,a);const o=[s,Object.keys(a)];return t.set(r,o),o}function H(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=h(e.getSchema(),n.typeCondition);return M(e,t,i,n.selectionSet)}function be(e,t,n,r,i){for(const s of n.selections)switch(s.kind){case u.FIELD:{const a=s.name.value;let o;(w(t)||S(t))&&(o=t.getFields()[a]);const l=s.alias?s.alias.value:a;r[l]||(r[l]=[]),r[l].push([t,s,o]);break}case u.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case u.INLINE_FRAGMENT:{const a=s.typeCondition,o=a?h(e.getSchema(),a):t;be(e,o,s.selectionSet,r,i);break}}}function yn(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}class In{constructor(){this._data=new Map}has(t,n,r){var i;const[s,a]=ts.name.value));for(const s of r.args)if(!i.has(s.name)&&pe(s)){const a=T(s.type);e.reportError(new p(`Field "${r.name}" argument "${s.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function Fn(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:X;for(const o of i)n[o.name]=U(o.args.filter(pe),l=>l.name);const s=e.getDocument().definitions;for(const o of s)if(o.kind===u.DIRECTIVE_DEFINITION){var a;const l=(a=o.arguments)!==null&&a!==void 0?a:[];n[o.name.value]=U(l.filter(Rn),c=>c.name.value)}return{Directive:{leave(o){const l=o.name.value,c=n[l];if(c){var f;const d=(f=o.arguments)!==null&&f!==void 0?f:[],m=new Set(d.map(g=>g.name.value));for(const[g,N]of Object.entries(c))if(!m.has(g)){const b=Ve(N.type)?T(N.type):v(N.type);e.reportError(new p(`Directive "@${l}" argument "${g}" of type "${b}" is required, but it was not provided.`,{nodes:o}))}}}}}}function Rn(e){return e.type.kind===u.NON_NULL_TYPE&&e.defaultValue==null}function $n(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n){if(k(O(n))){if(r){const i=t.name.value,s=T(n);e.reportError(new p(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){const i=t.name.value,s=T(n);e.reportError(new p(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}function Cn(e,t,n){var r;const i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],a=U(s,o=>o.name.value);for(const o of e.args){const l=o.name,c=o.type,f=a[l];if(!f){if(o.defaultValue!==void 0)i[l]=o.defaultValue;else if(I(c))throw new p(`Argument "${l}" of required type "${T(c)}" was not provided.`,{nodes:t});continue}const d=f.value;let m=d.kind===u.NULL;if(d.kind===u.VARIABLE){const N=d.name.value;if(n==null||!An(n,N)){if(o.defaultValue!==void 0)i[l]=o.defaultValue;else if(I(c))throw new p(`Argument "${l}" of required type "${T(c)}" was provided the variable "$${N}" which was not provided a runtime value.`,{nodes:d});continue}m=n[N]==null}if(m&&I(c))throw new p(`Argument "${l}" of non-null type "${T(c)}" must not be null.`,{nodes:d});const g=je(d,c,n);if(g===void 0)throw new p(`Argument "${l}" has invalid value ${v(d)}.`,{nodes:d});i[l]=g}return i}function oe(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return Cn(e,i,n)}function An(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pn(e,t,n,r,i){const s=new Map;return K(e,t,n,r,i,s,new Set),s}function K(e,t,n,r,i,s,a){for(const o of i.selections)switch(o.kind){case u.FIELD:{if(!J(n,o))continue;const l=kn(o),c=s.get(l);c!==void 0?c.push(o):s.set(l,[o]);break}case u.INLINE_FRAGMENT:{if(!J(n,o)||!ae(e,o,r))continue;K(e,t,n,r,o.selectionSet,s,a);break}case u.FRAGMENT_SPREAD:{const l=o.name.value;if(a.has(l)||!J(n,o))continue;a.add(l);const c=t[l];if(!c||!ae(e,c,r))continue;K(e,t,n,r,c.selectionSet,s,a);break}}}function J(e,t){const n=oe(Le,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=oe(Me,t,e);return(r==null?void 0:r.if)!==!1}function ae(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=h(e,r);return i===n?!0:ue(i)?e.isSubType(i,n):!1}function kn(e){return e.alias?e.alias.value:e.name.value}function Un(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,s=Object.create(null),a=e.getDocument(),o=Object.create(null);for(const c of a.definitions)c.kind===u.FRAGMENT_DEFINITION&&(o[c.name.value]=c);const l=Pn(n,o,s,r,t.selectionSet);if(l.size>1){const d=[...l.values()].slice(1).flat();e.reportError(new p(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(const c of l.values())c[0].name.value.startsWith("__")&&e.reportError(new p(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}function Se(e,t){const n=new Map;for(const r of e){const i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}function we(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Se(i,a=>a.name.value);for(const[a,o]of s)o.length>1&&e.reportError(new p(`There can be only one argument named "${a}".`,{nodes:o.map(l=>l.name)}))}}function Vn(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new p(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new p(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function Fe(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():X;for(const o of r)t[o.name]=!o.isRepeatable;const i=e.getDocument().definitions;for(const o of i)o.kind===u.DIRECTIVE_DEFINITION&&(t[o.name.value]=!o.repeatable);const s=Object.create(null),a=Object.create(null);return{enter(o){if(!("directives"in o)||!o.directives)return;let l;if(o.kind===u.SCHEMA_DEFINITION||o.kind===u.SCHEMA_EXTENSION)l=s;else if(B(o)||Ne(o)){const c=o.name.value;l=a[c],l===void 0&&(a[c]=l=Object.create(null))}else l=Object.create(null);for(const c of o.directives){const f=c.name.value;t[f]&&(l[f]?e.reportError(new p(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],c]})):l[f]=c)}}}}function jn(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var a;const o=s.name.value;r[o]||(r[o]=Object.create(null));const l=(a=s.values)!==null&&a!==void 0?a:[],c=r[o];for(const f of l){const d=f.name.value,m=n[o];de(m)&&m.getValue(d)?e.reportError(new p(`Enum value "${o}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):c[d]?e.reportError(new p(`Enum value "${o}.${d}" can only be defined once.`,{nodes:[c[d],f.name]})):c[d]=f.name}return!1}}function Ln(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var a;const o=s.name.value;r[o]||(r[o]=Object.create(null));const l=(a=s.fields)!==null&&a!==void 0?a:[],c=r[o];for(const f of l){const d=f.name.value;Mn(n[o],d)?e.reportError(new p(`Field "${o}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):c[d]?e.reportError(new p(`Field "${o}.${d}" can only be defined once.`,{nodes:[c[d],f.name]})):c[d]=f.name}return!1}}function Mn(e,t){return w(e)||S(e)||$(e)?e.getFields()[t]!=null:!1}function Yn(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new p(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Re(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||y(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new p(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function Xn(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new p(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Bn(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var a;const o=(a=s.operationTypes)!==null&&a!==void 0?a:[];for(const l of o){const c=l.operation,f=n[c];r[c]?e.reportError(new p(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new p(`There can be only one ${c} type in schema.`,{nodes:[f,l]})):n[c]=l}return!1}}function qn(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new p(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new p(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}function Gn(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Se(r,s=>s.variable.name.value);for(const[s,a]of i)a.length>1&&e.reportError(new p(`There can be only one variable named "$${s}".`,{nodes:a.map(o=>o.variable.name)}))}}}function Jn(e){return{ListValue(t){const n=Ye(e.getParentInputType());if(!P(n))return D(e,t),!1},ObjectValue(t){const n=O(e.getInputType());if(!$(n))return D(e,t),!1;const r=U(t.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Xe(i)){const a=T(i.type);e.reportError(new p(`Field "${n.name}.${i.name}" of required type "${a}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=O(e.getParentInputType());if(!e.getInputType()&&$(n)){const i=F(t.name.value,Object.keys(n.getFields()));e.reportError(new p(`Field "${t.name.value}" is not defined by type "${n.name}".`+_(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();I(n)&&e.reportError(new p(`Expected value of type "${T(n)}", found ${v(t)}.`,{nodes:t}))},EnumValue:t=>D(e,t),IntValue:t=>D(e,t),FloatValue:t=>D(e,t),StringValue:t=>D(e,t),BooleanValue:t=>D(e,t)}}function D(e,t){const n=e.getInputType();if(!n)return;const r=O(n);if(!k(r)){const i=T(n);e.reportError(new p(`Expected value of type "${i}", found ${v(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const s=T(n);e.reportError(new p(`Expected value of type "${s}", found ${v(t)}.`,{nodes:t}))}}catch(i){const s=T(n);i instanceof p?e.reportError(i):e.reportError(new p(`Expected value of type "${s}", found ${v(t)}; `+i.message,{nodes:t,originalError:i}))}}function Qn(e){return{VariableDefinition(t){const n=h(e.getSchema(),t.type);if(n!==void 0&&!Be(n)){const r=t.variable.name.value,i=v(t.type);e.reportError(new p(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function Hn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:s,defaultValue:a}of r){const o=i.name.value,l=t[o];if(l&&s){const c=e.getSchema(),f=h(c,l.type);if(f&&!Kn(c,f,l.defaultValue,s,a)){const d=T(f),m=T(s);e.reportError(new p(`Variable "$${o}" of type "${d}" used in position expecting type "${m}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function Kn(e,t,n,r,i){if(I(r)&&!I(t)){if(!(n!=null&&n.kind!==u.NULL)&&!(i!==void 0))return!1;const o=r.ofType;return re(e,t,o)}return re(e,t,r)}const $e=Object.freeze([ve,Xn,cn,Un,he,tn,Qn,$n,xe,Yn,Ie,Oe,hn,fn,Gn,dn,pn,ye,Fe,rn,we,Jn,wn,Hn,gn,Re]);class Wn{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===u.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const s of i.selections)s.kind===u.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let s;for(;s=i.pop();)for(const a of this.getFragmentSpreads(s)){const o=a.name.value;if(r[o]!==!0){r[o]=!0;const l=this.getFragment(o);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class zn extends Wn{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){const r=[],i=new me(this._schema);ge(t,Te(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Ce(e,t,n=$e,r,i=new me(e)){var s;const a=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||qe(!1,"Must provide document."),Ge(e);const o=Object.freeze({}),l=[],c=new zn(e,t,i,d=>{if(l.length>=a)throw l.push(new p("Too many validation errors, error limit reached. Validation aborted.")),o;l.push(d)}),f=Je(n.map(d=>d(c)));try{ge(t,Te(i,f))}catch(d){if(d!==o)throw d}return l}function Zn(e){return{Field(t){const n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getParentType();i!=null||y(!1),e.reportError(new p(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getDirective();if(i!=null)e.reportError(new p(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const s=e.getParentType(),a=e.getFieldDef();s!=null&&a!=null||y(!1),e.reportError(new p(`Field "${s.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=O(e.getParentInputType());if($(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new p(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=O(e.getInputType());i!=null||y(!1),e.reportError(new p(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}const xn=[un,Bn,qn,jn,Ln,Vn,he,ye,Fe,Dn,we,Re];function et(e,t,n,r,i){const s=$e.filter(o=>!(o===Oe||o===ve||r&&o===Ie));return n&&Array.prototype.push.apply(s,n),i&&Array.prototype.push.apply(s,xn),Ce(e,t,s).filter(o=>{if(o.message.includes("Unknown directive")&&o.nodes){const l=o.nodes[0];if(l&&l.kind===u.DIRECTIVE){const c=l.name.value;if(c==="arguments"||c==="argumentDefinitions")return!1}}return!0})}const A={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},W={[A.Error]:1,[A.Warning]:2,[A.Information]:3,[A.Hint]:4},Y=(e,t)=>{if(!e)throw new Error(t)};function nt(e,t=null,n,r,i){var s,a;let o=null,l="";i&&(l=typeof i=="string"?i:i.reduce((f,d)=>f+v(d)+` `,""));const c=l?`${e} diff --git a/assets/lint.es3-fa3ae97b.js b/assets/lint.es3-fe79339b.js similarity index 98% rename from assets/lint.es3-fa3ae97b.js rename to assets/lint.es3-fe79339b.js index 7eed618b..cac08d70 100644 --- a/assets/lint.es3-fa3ae97b.js +++ b/assets/lint.es3-fe79339b.js @@ -1 +1 @@ -import{C as H}from"./codemirror.es-52e8b92d.js";import"./codemirror.es2-5884f31a.js";import{X as B,Y as J,Z as P,_ as U,a6 as D}from"./index-04ef1cc9.js";var M=Object.defineProperty,n=(e,r)=>M(e,"name",{value:r,configurable:!0});function L(e){d=e,x=e.length,s=u=g=-1,a(),N();const r=S();return p("EOF"),r}n(L,"jsonParse");let d,x,s,u,g,t,l;function S(){const e=s,r=[];if(p("{"),!v("}")){do r.push(V());while(v(","));p("}")}return{kind:"Object",start:e,end:g,members:r}}n(S,"parseObj");function V(){const e=s,r=l==="String"?j():null;p("String"),p(":");const i=T();return{kind:"Member",start:e,end:g,key:r,value:i}}n(V,"parseMember");function G(){const e=s,r=[];if(p("["),!v("]")){do r.push(T());while(v(","));p("]")}return{kind:"Array",start:e,end:g,values:r}}n(G,"parseArr");function T(){switch(l){case"[":return G();case"{":return S();case"String":case"Number":case"Boolean":case"Null":const e=j();return N(),e}p("Value")}n(T,"parseVal");function j(){return{kind:l,start:s,end:u,value:JSON.parse(d.slice(s,u))}}n(j,"curToken");function p(e){if(l===e){N();return}let r;if(l==="EOF")r="[end of file]";else if(u-s>1)r="`"+d.slice(s,u)+"`";else{const i=d.slice(s).match(/^.+?\b/);r="`"+(i?i[0]:d[s])+"`"}throw m(`Expected ${e} but found ${r}.`)}n(p,"expect");class F extends Error{constructor(r,i){super(r),this.position=i}}n(F,"JSONSyntaxError");function m(e){return new F(e,{start:s,end:u})}n(m,"syntaxError");function v(e){if(l===e)return N(),!0}n(v,"skip");function a(){return u31;)if(t===92)switch(t=a(),t){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:a();break;case 117:a(),k(),k(),k(),k();break;default:throw m("Bad character escape sequence.")}else{if(u===x)throw m("Unterminated string.");a()}if(t===34){a();return}throw m("Unterminated string.")}n(Q,"readString");function k(){if(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)return a();throw m("Expected hexadecimal digit.")}n(k,"readHex");function I(){t===45&&a(),t===48?a():w(),t===46&&(a(),w()),(t===69||t===101)&&(t=a(),(t===43||t===45)&&a(),w())}n(I,"readNumber");function w(){if(t<48||t>57)throw m("Expected decimal digit.");do a();while(t>=48&&t<=57)}n(w,"readDigits");H.registerHelper("lint","graphql-variables",(e,r,i)=>{if(!e)return[];let f;try{f=L(e)}catch(c){if(c instanceof F)return[O(i,c.position,c.message)];throw c}const{variableToType:o}=r;return o?A(i,o,f):[]});function A(e,r,i){var f;const o=[];for(const c of i.members)if(c){const b=(f=c.key)===null||f===void 0?void 0:f.value,h=r[b];if(h)for(const[E,C]of y(h,c.value))o.push(O(e,E,C));else o.push(O(e,c.key,`Variable "$${b}" does not appear in any GraphQL query.`))}return o}n(A,"validateVariables");function y(e,r){if(!e||!r)return[];if(e instanceof B)return r.kind==="Null"?[[r,`Type "${e}" is non-nullable and cannot be null.`]]:y(e.ofType,r);if(r.kind==="Null")return[];if(e instanceof J){const i=e.ofType;if(r.kind==="Array"){const f=r.values||[];return $(f,o=>y(i,o))}return y(i,r)}if(e instanceof P){if(r.kind!=="Object")return[[r,`Type "${e}" must be an Object.`]];const i=Object.create(null),f=$(r.members,o=>{var c;const b=(c=o==null?void 0:o.key)===null||c===void 0?void 0:c.value;i[b]=!0;const h=e.getFields()[b];if(!h)return[[o.key,`Type "${e}" does not have a field "${b}".`]];const E=h?h.type:void 0;return y(E,o.value)});for(const o of Object.keys(e.getFields())){const c=e.getFields()[o];!i[o]&&c.type instanceof B&&!c.defaultValue&&f.push([r,`Object of type "${e}" is missing required field "${o}".`])}return f}return e.name==="Boolean"&&r.kind!=="Boolean"||e.name==="String"&&r.kind!=="String"||e.name==="ID"&&r.kind!=="Number"&&r.kind!=="String"||e.name==="Float"&&r.kind!=="Number"||e.name==="Int"&&(r.kind!=="Number"||(r.value|0)!==r.value)?[[r,`Expected value of type "${e}".`]]:(e instanceof U||e instanceof D)&&(r.kind!=="String"&&r.kind!=="Number"&&r.kind!=="Boolean"&&r.kind!=="Null"||q(e.parseValue(r.value)))?[[r,`Expected value of type "${e}".`]]:[]}n(y,"validateValue");function O(e,r,i){return{message:i,severity:"error",type:"validation",from:e.posFromIndex(r.start),to:e.posFromIndex(r.end)}}n(O,"lintError");function q(e){return e==null||e!==e}n(q,"isNullish");function $(e,r){return Array.prototype.concat.apply([],e.map(r))}n($,"mapCat"); +import{C as H}from"./codemirror.es-52e8b92d.js";import"./codemirror.es2-5884f31a.js";import{X as B,Y as J,Z as P,_ as U,a6 as D}from"./index-71dfccbc.js";var M=Object.defineProperty,n=(e,r)=>M(e,"name",{value:r,configurable:!0});function L(e){d=e,x=e.length,s=u=g=-1,a(),N();const r=S();return p("EOF"),r}n(L,"jsonParse");let d,x,s,u,g,t,l;function S(){const e=s,r=[];if(p("{"),!v("}")){do r.push(V());while(v(","));p("}")}return{kind:"Object",start:e,end:g,members:r}}n(S,"parseObj");function V(){const e=s,r=l==="String"?j():null;p("String"),p(":");const i=T();return{kind:"Member",start:e,end:g,key:r,value:i}}n(V,"parseMember");function G(){const e=s,r=[];if(p("["),!v("]")){do r.push(T());while(v(","));p("]")}return{kind:"Array",start:e,end:g,values:r}}n(G,"parseArr");function T(){switch(l){case"[":return G();case"{":return S();case"String":case"Number":case"Boolean":case"Null":const e=j();return N(),e}p("Value")}n(T,"parseVal");function j(){return{kind:l,start:s,end:u,value:JSON.parse(d.slice(s,u))}}n(j,"curToken");function p(e){if(l===e){N();return}let r;if(l==="EOF")r="[end of file]";else if(u-s>1)r="`"+d.slice(s,u)+"`";else{const i=d.slice(s).match(/^.+?\b/);r="`"+(i?i[0]:d[s])+"`"}throw m(`Expected ${e} but found ${r}.`)}n(p,"expect");class F extends Error{constructor(r,i){super(r),this.position=i}}n(F,"JSONSyntaxError");function m(e){return new F(e,{start:s,end:u})}n(m,"syntaxError");function v(e){if(l===e)return N(),!0}n(v,"skip");function a(){return u31;)if(t===92)switch(t=a(),t){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:a();break;case 117:a(),k(),k(),k(),k();break;default:throw m("Bad character escape sequence.")}else{if(u===x)throw m("Unterminated string.");a()}if(t===34){a();return}throw m("Unterminated string.")}n(Q,"readString");function k(){if(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)return a();throw m("Expected hexadecimal digit.")}n(k,"readHex");function I(){t===45&&a(),t===48?a():w(),t===46&&(a(),w()),(t===69||t===101)&&(t=a(),(t===43||t===45)&&a(),w())}n(I,"readNumber");function w(){if(t<48||t>57)throw m("Expected decimal digit.");do a();while(t>=48&&t<=57)}n(w,"readDigits");H.registerHelper("lint","graphql-variables",(e,r,i)=>{if(!e)return[];let f;try{f=L(e)}catch(c){if(c instanceof F)return[O(i,c.position,c.message)];throw c}const{variableToType:o}=r;return o?A(i,o,f):[]});function A(e,r,i){var f;const o=[];for(const c of i.members)if(c){const b=(f=c.key)===null||f===void 0?void 0:f.value,h=r[b];if(h)for(const[E,C]of y(h,c.value))o.push(O(e,E,C));else o.push(O(e,c.key,`Variable "$${b}" does not appear in any GraphQL query.`))}return o}n(A,"validateVariables");function y(e,r){if(!e||!r)return[];if(e instanceof B)return r.kind==="Null"?[[r,`Type "${e}" is non-nullable and cannot be null.`]]:y(e.ofType,r);if(r.kind==="Null")return[];if(e instanceof J){const i=e.ofType;if(r.kind==="Array"){const f=r.values||[];return $(f,o=>y(i,o))}return y(i,r)}if(e instanceof P){if(r.kind!=="Object")return[[r,`Type "${e}" must be an Object.`]];const i=Object.create(null),f=$(r.members,o=>{var c;const b=(c=o==null?void 0:o.key)===null||c===void 0?void 0:c.value;i[b]=!0;const h=e.getFields()[b];if(!h)return[[o.key,`Type "${e}" does not have a field "${b}".`]];const E=h?h.type:void 0;return y(E,o.value)});for(const o of Object.keys(e.getFields())){const c=e.getFields()[o];!i[o]&&c.type instanceof B&&!c.defaultValue&&f.push([r,`Object of type "${e}" is missing required field "${o}".`])}return f}return e.name==="Boolean"&&r.kind!=="Boolean"||e.name==="String"&&r.kind!=="String"||e.name==="ID"&&r.kind!=="Number"&&r.kind!=="String"||e.name==="Float"&&r.kind!=="Number"||e.name==="Int"&&(r.kind!=="Number"||(r.value|0)!==r.value)?[[r,`Expected value of type "${e}".`]]:(e instanceof U||e instanceof D)&&(r.kind!=="String"&&r.kind!=="Number"&&r.kind!=="Boolean"&&r.kind!=="Null"||q(e.parseValue(r.value)))?[[r,`Expected value of type "${e}".`]]:[]}n(y,"validateValue");function O(e,r,i){return{message:i,severity:"error",type:"validation",from:e.posFromIndex(r.start),to:e.posFromIndex(r.end)}}n(O,"lintError");function q(e){return e==null||e!==e}n(q,"isNullish");function $(e,r){return Array.prototype.concat.apply([],e.map(r))}n($,"mapCat"); diff --git a/assets/liquid-dc53d383.js b/assets/liquid-98bcaff5.js similarity index 98% rename from assets/liquid-dc53d383.js rename to assets/liquid-98bcaff5.js index edb0367a..7a8e2319 100644 --- a/assets/liquid-dc53d383.js +++ b/assets/liquid-98bcaff5.js @@ -1,4 +1,4 @@ -import{m as d}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/mdx-9e450df6.js b/assets/mdx-f3a0a9c5.js similarity index 98% rename from assets/mdx-9e450df6.js rename to assets/mdx-f3a0a9c5.js index 11b91bd1..2e933ade 100644 --- a/assets/mdx-9e450df6.js +++ b/assets/mdx-f3a0a9c5.js @@ -1,4 +1,4 @@ -import{m as d}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/mode.es-2899b0de.js b/assets/mode.es-f5f2f91c.js similarity index 89% rename from assets/mode.es-2899b0de.js rename to assets/mode.es-f5f2f91c.js index 9841a1a6..060c937b 100644 --- a/assets/mode.es-2899b0de.js +++ b/assets/mode.es-f5f2f91c.js @@ -1 +1 @@ -import{C as r}from"./codemirror.es-52e8b92d.js";import{W as o,a2 as s,a3 as i,a4 as n}from"./index-04ef1cc9.js";import{r as l}from"./mode-indent.es-057a4f6a.js";import"./codemirror.es2-5884f31a.js";var c=Object.defineProperty,p=(e,a)=>c(e,"name",{value:a,configurable:!0});const m=p(e=>{const a=o({eatWhitespace:t=>t.eatWhile(s),lexRules:i,parseRules:n,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:a.startState,token:a.token,indent:l,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");r.defineMode("graphql",m); +import{C as r}from"./codemirror.es-52e8b92d.js";import{W as o,a2 as s,a3 as i,a4 as n}from"./index-71dfccbc.js";import{r as l}from"./mode-indent.es-057a4f6a.js";import"./codemirror.es2-5884f31a.js";var c=Object.defineProperty,p=(e,a)=>c(e,"name",{value:a,configurable:!0});const m=p(e=>{const a=o({eatWhitespace:t=>t.eatWhile(s),lexRules:i,parseRules:n,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:a.startState,token:a.token,indent:l,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");r.defineMode("graphql",m); diff --git a/assets/mode.es2-40f14a23.js b/assets/mode.es2-1e8b0207.js similarity index 95% rename from assets/mode.es2-40f14a23.js rename to assets/mode.es2-1e8b0207.js index 468bbb28..9542db8b 100644 --- a/assets/mode.es2-40f14a23.js +++ b/assets/mode.es2-1e8b0207.js @@ -1 +1 @@ -import{C as s}from"./codemirror.es-52e8b92d.js";import{W as o,a7 as e,a8 as l,a9 as n,aa as r}from"./index-04ef1cc9.js";import{r as c}from"./mode-indent.es-057a4f6a.js";import"./codemirror.es2-5884f31a.js";var b=Object.defineProperty,d=(a,t)=>b(a,"name",{value:t,configurable:!0});s.defineMode("graphql-variables",a=>{const t=o({eatWhitespace:u=>u.eatSpace(),lexRules:m,parseRules:V,editorConfig:{tabSize:a.tabSize}});return{config:a,startState:t.startState,token:t.token,indent:c,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const m={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},V={Document:[e("{"),l("Variable",n(e(","))),e("}")],Variable:[i("variable"),e(":"),"Value"],Value(a){switch(a.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(a.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(a.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[r("Number","number")],StringValue:[r("String","string")],BooleanValue:[r("Keyword","builtin")],NullValue:[r("Keyword","keyword")],ListValue:[e("["),l("Value",n(e(","))),e("]")],ObjectValue:[e("{"),l("ObjectField",n(e(","))),e("}")],ObjectField:[i("attribute"),e(":"),"Value"]};function i(a){return{style:a,match:t=>t.kind==="String",update(t,u){t.name=u.value.slice(1,-1)}}}d(i,"namedKey"); +import{C as s}from"./codemirror.es-52e8b92d.js";import{W as o,a7 as e,a8 as l,a9 as n,aa as r}from"./index-71dfccbc.js";import{r as c}from"./mode-indent.es-057a4f6a.js";import"./codemirror.es2-5884f31a.js";var b=Object.defineProperty,d=(a,t)=>b(a,"name",{value:t,configurable:!0});s.defineMode("graphql-variables",a=>{const t=o({eatWhitespace:u=>u.eatSpace(),lexRules:m,parseRules:V,editorConfig:{tabSize:a.tabSize}});return{config:a,startState:t.startState,token:t.token,indent:c,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const m={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},V={Document:[e("{"),l("Variable",n(e(","))),e("}")],Variable:[i("variable"),e(":"),"Value"],Value(a){switch(a.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(a.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(a.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[r("Number","number")],StringValue:[r("String","string")],BooleanValue:[r("Keyword","builtin")],NullValue:[r("Keyword","keyword")],ListValue:[e("["),l("Value",n(e(","))),e("]")],ObjectValue:[e("{"),l("ObjectField",n(e(","))),e("}")],ObjectField:[i("attribute"),e(":"),"Value"]};function i(a){return{style:a,match:t=>t.kind==="String",update(t,u){t.name=u.value.slice(1,-1)}}}d(i,"namedKey"); diff --git a/assets/mode.es3-f96cfa66.js b/assets/mode.es3-95fc6895.js similarity index 95% rename from assets/mode.es3-f96cfa66.js rename to assets/mode.es3-95fc6895.js index b26acd89..d16a0017 100644 --- a/assets/mode.es3-f96cfa66.js +++ b/assets/mode.es3-95fc6895.js @@ -1 +1 @@ -import{C as n}from"./codemirror.es-52e8b92d.js";import{W as s,a7 as e,a8 as a,aa as r}from"./index-04ef1cc9.js";import{r as i}from"./mode-indent.es-057a4f6a.js";import"./codemirror.es2-5884f31a.js";n.defineMode("graphql-results",t=>{const u=s({eatWhitespace:l=>l.eatSpace(),lexRules:o,parseRules:c,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:u.startState,token:u.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[e("{"),a("Entry",e(",")),e("}")],Entry:[r("String","def"),e(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[r("Number","number")],StringValue:[r("String","string")],BooleanValue:[r("Keyword","builtin")],NullValue:[r("Keyword","keyword")],ListValue:[e("["),a("Value",e(",")),e("]")],ObjectValue:[e("{"),a("ObjectField",e(",")),e("}")],ObjectField:[r("String","property"),e(":"),"Value"]}; +import{C as n}from"./codemirror.es-52e8b92d.js";import{W as s,a7 as e,a8 as a,aa as r}from"./index-71dfccbc.js";import{r as i}from"./mode-indent.es-057a4f6a.js";import"./codemirror.es2-5884f31a.js";n.defineMode("graphql-results",t=>{const u=s({eatWhitespace:l=>l.eatSpace(),lexRules:o,parseRules:c,editorConfig:{tabSize:t.tabSize}});return{config:t,startState:u.startState,token:u.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[e("{"),a("Entry",e(",")),e("}")],Entry:[r("String","def"),e(":"),"Value"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(t.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[r("Number","number")],StringValue:[r("String","string")],BooleanValue:[r("Keyword","builtin")],NullValue:[r("Keyword","keyword")],ListValue:[e("["),a("Value",e(",")),e("]")],ObjectValue:[e("{"),a("ObjectField",e(",")),e("}")],ObjectField:[r("String","property"),e(":"),"Value"]}; diff --git a/assets/python-7ed155d1.js b/assets/python-9838a365.js similarity index 98% rename from assets/python-7ed155d1.js rename to assets/python-9838a365.js index 482d57da..a122a907 100644 --- a/assets/python-7ed155d1.js +++ b/assets/python-9838a365.js @@ -1,4 +1,4 @@ -import{m as a}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/razor-9db43e75.js b/assets/razor-b5b7a144.js similarity index 99% rename from assets/razor-9db43e75.js rename to assets/razor-b5b7a144.js index 65f6d28b..5bfb22c3 100644 --- a/assets/razor-9db43e75.js +++ b/assets/razor-b5b7a144.js @@ -1,4 +1,4 @@ -import{m as s}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/tsMode-4e2980bd.js b/assets/tsMode-e7b0acb9.js similarity index 99% rename from assets/tsMode-4e2980bd.js rename to assets/tsMode-e7b0acb9.js index 971b7e59..1cd96b8a 100644 --- a/assets/tsMode-4e2980bd.js +++ b/assets/tsMode-e7b0acb9.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var R=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(R(e,typeof t!="symbol"?t+"":t,r),r);import{t as K,m as E}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var R=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(R(e,typeof t!="symbol"?t+"":t,r),r);import{t as K,m as E}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/typescript-36d90a22.js b/assets/typescript-9dc221fd.js similarity index 98% rename from assets/typescript-36d90a22.js rename to assets/typescript-9dc221fd.js index 9afc7696..3ccc931b 100644 --- a/assets/typescript-36d90a22.js +++ b/assets/typescript-9dc221fd.js @@ -1,4 +1,4 @@ -import{m as a}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/xml-49a69e32.js b/assets/xml-f1eee914.js similarity index 97% rename from assets/xml-49a69e32.js rename to assets/xml-f1eee914.js index 180ca08d..1dd4b944 100644 --- a/assets/xml-49a69e32.js +++ b/assets/xml-f1eee914.js @@ -1,4 +1,4 @@ -import{m}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/yaml-14db310a.js b/assets/yaml-57c2e5e8.js similarity index 98% rename from assets/yaml-14db310a.js rename to assets/yaml-57c2e5e8.js index 17401d42..acfb369e 100644 --- a/assets/yaml-14db310a.js +++ b/assets/yaml-57c2e5e8.js @@ -1,4 +1,4 @@ -import{m as i}from"./index-04ef1cc9.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index-71dfccbc.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/index.html b/index.html index 785960dc..cc249b95 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> daed - +