From 8f3119c7242f9322f1655cefe220d24152344428 Mon Sep 17 00:00:00 2001 From: leejaeseong11 Date: Tue, 19 Dec 2023 12:16:45 +0900 Subject: [PATCH] feat: add build file --- .gitignore | 2 - dist/assets/abap-77a14c14.js | 6 + dist/assets/apex-cf1d9eb5.js | 6 + dist/assets/azcli-a95010c9.js | 6 + dist/assets/bat-8c58a836.js | 6 + dist/assets/bicep-4bed18f6.js | 7 + dist/assets/cameligo-0f51c89b.js | 6 + dist/assets/clojure-01e3da3e.js | 6 + dist/assets/codicon-c99115f8.ttf | Bin 0 -> 70776 bytes dist/assets/coffee-4ddce41a.js | 6 + dist/assets/cpp-313d1644.js | 6 + dist/assets/csharp-b6341ee5.js | 6 + dist/assets/csp-dc3d4f56.js | 6 + dist/assets/css-5b4b9c57.js | 8 + dist/assets/cssMode-d9359b35.js | 9 + dist/assets/dart-6ea6deb2.js | 6 + dist/assets/dockerfile-7d35970e.js | 6 + dist/assets/ecl-b20b9471.js | 6 + dist/assets/elixir-1d976b08.js | 6 + dist/assets/flow9-9da3058c.js | 6 + dist/assets/freemarker2-23177f0b.js | 8 + dist/assets/fsharp-ceb060a2.js | 6 + dist/assets/go-a122d5f1.js | 6 + dist/assets/graphql-427c043b.js | 6 + dist/assets/handlebars-72626e97.js | 6 + dist/assets/hcl-77031b33.js | 6 + dist/assets/html-e52438f0.js | 6 + dist/assets/htmlMode-ca8916f3.js | 9 + dist/assets/index-a1788e22.css | 5 + dist/assets/index-b607d5f8.js | 1650 ++++++++++++++++++++++ dist/assets/ini-8a341fa8.js | 6 + dist/assets/java-c42a634a.js | 6 + dist/assets/javascript-0a13884a.js | 6 + dist/assets/jsonMode-998b198b.js | 11 + dist/assets/julia-0729394b.js | 6 + dist/assets/kotlin-a417985c.js | 6 + dist/assets/less-15c24a66.js | 7 + dist/assets/lexon-a1fb61ae.js | 6 + dist/assets/liquid-0999f9f2.js | 6 + dist/assets/lua-2908f482.js | 6 + dist/assets/m3-51aace1f.js | 6 + dist/assets/markdown-97451dd3.js | 6 + dist/assets/matching-dd450c86.gif | Bin 0 -> 4573158 bytes dist/assets/mips-a9d3080d.js | 6 + dist/assets/msdax-ff0e819f.js | 6 + dist/assets/mysql-e8abbc2b.js | 6 + dist/assets/objective-c-f34c60c4.js | 6 + dist/assets/pascal-812f04d4.js | 6 + dist/assets/pascaligo-15435727.js | 6 + dist/assets/perl-0bbd7df6.js | 6 + dist/assets/pgsql-4b6792c0.js | 6 + dist/assets/php-cd897c68.js | 6 + dist/assets/pla-15e81ffa.js | 6 + dist/assets/postiats-59168f5c.js | 6 + dist/assets/powerquery-14465cfb.js | 6 + dist/assets/powershell-73d04163.js | 6 + dist/assets/protobuf-21b3a246.js | 7 + dist/assets/pug-7f4fb28b.js | 6 + dist/assets/python-886c0db1.js | 6 + dist/assets/qsharp-4dc01206.js | 6 + dist/assets/r-67bb0d4b.js | 6 + dist/assets/razor-a6a89f3d.js | 6 + dist/assets/redis-53bb0225.js | 6 + dist/assets/redshift-e66b9676.js | 6 + dist/assets/restructuredtext-9df9ea10.js | 6 + dist/assets/ruby-7dd59a49.js | 6 + dist/assets/rust-a7e1208d.js | 6 + dist/assets/sb-78235e16.js | 6 + dist/assets/scala-0a87521c.js | 6 + dist/assets/scheme-13db5189.js | 6 + dist/assets/scss-1fdfb846.js | 8 + dist/assets/shell-38fb32d1.js | 6 + dist/assets/solidity-afb1830a.js | 6 + dist/assets/sophia-9a45c401.js | 6 + dist/assets/sparql-02def50d.js | 6 + dist/assets/sql-2f5d59dc.js | 6 + dist/assets/st-bb7724ba.js | 6 + dist/assets/swift-68724a67.js | 8 + dist/assets/systemverilog-27086aa8.js | 6 + dist/assets/tcl-a06ebe55.js | 6 + dist/assets/tsMode-094e6380.js | 16 + dist/assets/twig-2e247d82.js | 6 + dist/assets/typescript-552b328d.js | 6 + dist/assets/vb-57c5bf98.js | 6 + dist/assets/xml-3976fd06.js | 6 + dist/assets/yaml-5ecbd2d0.js | 6 + dist/favicon.ico | Bin 0 -> 4286 bytes dist/images/admin/home.png | Bin 0 -> 3534 bytes dist/images/icon/0.png | Bin 0 -> 45898 bytes dist/images/icon/1.png | Bin 0 -> 36082 bytes dist/images/icon/2.png | Bin 0 -> 29871 bytes dist/images/icon/3.png | Bin 0 -> 40799 bytes dist/images/icon/4.png | Bin 0 -> 43910 bytes dist/images/icon/5.png | Bin 0 -> 49854 bytes dist/images/icon/6.png | Bin 0 -> 52794 bytes dist/images/icon/7.png | Bin 0 -> 53341 bytes dist/images/icon/8.png | Bin 0 -> 45948 bytes dist/images/icon/9.png | Bin 0 -> 42820 bytes dist/images/login/join.gif | Bin 0 -> 578259 bytes dist/images/login/join.png | Bin 0 -> 9052 bytes dist/images/login/mainBackGround.mp4 | Bin 0 -> 12602772 bytes dist/images/login/start.gif | Bin 0 -> 748239 bytes dist/images/login/start.png | Bin 0 -> 12494 bytes dist/images/logo.gif | Bin 0 -> 116175 bytes dist/images/quiz/addTestcaseOut.png | Bin 0 -> 3336 bytes dist/images/rank/bronze.png | Bin 0 -> 170935 bytes dist/images/rank/gold.png | Bin 0 -> 187919 bytes dist/images/rank/matching.gif | Bin 0 -> 4573158 bytes dist/images/rank/platinum.png | Bin 0 -> 176779 bytes dist/images/rank/silver.png | Bin 0 -> 161648 bytes dist/images/rank/winner.gif | Bin 0 -> 1476867 bytes dist/images/refresh.png | Bin 0 -> 51481 bytes dist/images/swords.png | Bin 0 -> 24310 bytes dist/images/tmp_profile.png | Bin 0 -> 36097 bytes dist/index.html | 15 + 115 files changed, 2188 insertions(+), 2 deletions(-) create mode 100644 dist/assets/abap-77a14c14.js create mode 100644 dist/assets/apex-cf1d9eb5.js create mode 100644 dist/assets/azcli-a95010c9.js create mode 100644 dist/assets/bat-8c58a836.js create mode 100644 dist/assets/bicep-4bed18f6.js create mode 100644 dist/assets/cameligo-0f51c89b.js create mode 100644 dist/assets/clojure-01e3da3e.js create mode 100644 dist/assets/codicon-c99115f8.ttf create mode 100644 dist/assets/coffee-4ddce41a.js create mode 100644 dist/assets/cpp-313d1644.js create mode 100644 dist/assets/csharp-b6341ee5.js create mode 100644 dist/assets/csp-dc3d4f56.js create mode 100644 dist/assets/css-5b4b9c57.js create mode 100644 dist/assets/cssMode-d9359b35.js create mode 100644 dist/assets/dart-6ea6deb2.js create mode 100644 dist/assets/dockerfile-7d35970e.js create mode 100644 dist/assets/ecl-b20b9471.js create mode 100644 dist/assets/elixir-1d976b08.js create mode 100644 dist/assets/flow9-9da3058c.js create mode 100644 dist/assets/freemarker2-23177f0b.js create mode 100644 dist/assets/fsharp-ceb060a2.js create mode 100644 dist/assets/go-a122d5f1.js create mode 100644 dist/assets/graphql-427c043b.js create mode 100644 dist/assets/handlebars-72626e97.js create mode 100644 dist/assets/hcl-77031b33.js create mode 100644 dist/assets/html-e52438f0.js create mode 100644 dist/assets/htmlMode-ca8916f3.js create mode 100644 dist/assets/index-a1788e22.css create mode 100644 dist/assets/index-b607d5f8.js create mode 100644 dist/assets/ini-8a341fa8.js create mode 100644 dist/assets/java-c42a634a.js create mode 100644 dist/assets/javascript-0a13884a.js create mode 100644 dist/assets/jsonMode-998b198b.js create mode 100644 dist/assets/julia-0729394b.js create mode 100644 dist/assets/kotlin-a417985c.js create mode 100644 dist/assets/less-15c24a66.js create mode 100644 dist/assets/lexon-a1fb61ae.js create mode 100644 dist/assets/liquid-0999f9f2.js create mode 100644 dist/assets/lua-2908f482.js create mode 100644 dist/assets/m3-51aace1f.js create mode 100644 dist/assets/markdown-97451dd3.js create mode 100644 dist/assets/matching-dd450c86.gif create mode 100644 dist/assets/mips-a9d3080d.js create mode 100644 dist/assets/msdax-ff0e819f.js create mode 100644 dist/assets/mysql-e8abbc2b.js create mode 100644 dist/assets/objective-c-f34c60c4.js create mode 100644 dist/assets/pascal-812f04d4.js create mode 100644 dist/assets/pascaligo-15435727.js create mode 100644 dist/assets/perl-0bbd7df6.js create mode 100644 dist/assets/pgsql-4b6792c0.js create mode 100644 dist/assets/php-cd897c68.js create mode 100644 dist/assets/pla-15e81ffa.js create mode 100644 dist/assets/postiats-59168f5c.js create mode 100644 dist/assets/powerquery-14465cfb.js create mode 100644 dist/assets/powershell-73d04163.js create mode 100644 dist/assets/protobuf-21b3a246.js create mode 100644 dist/assets/pug-7f4fb28b.js create mode 100644 dist/assets/python-886c0db1.js create mode 100644 dist/assets/qsharp-4dc01206.js create mode 100644 dist/assets/r-67bb0d4b.js create mode 100644 dist/assets/razor-a6a89f3d.js create mode 100644 dist/assets/redis-53bb0225.js create mode 100644 dist/assets/redshift-e66b9676.js create mode 100644 dist/assets/restructuredtext-9df9ea10.js create mode 100644 dist/assets/ruby-7dd59a49.js create mode 100644 dist/assets/rust-a7e1208d.js create mode 100644 dist/assets/sb-78235e16.js create mode 100644 dist/assets/scala-0a87521c.js create mode 100644 dist/assets/scheme-13db5189.js create mode 100644 dist/assets/scss-1fdfb846.js create mode 100644 dist/assets/shell-38fb32d1.js create mode 100644 dist/assets/solidity-afb1830a.js create mode 100644 dist/assets/sophia-9a45c401.js create mode 100644 dist/assets/sparql-02def50d.js create mode 100644 dist/assets/sql-2f5d59dc.js create mode 100644 dist/assets/st-bb7724ba.js create mode 100644 dist/assets/swift-68724a67.js create mode 100644 dist/assets/systemverilog-27086aa8.js create mode 100644 dist/assets/tcl-a06ebe55.js create mode 100644 dist/assets/tsMode-094e6380.js create mode 100644 dist/assets/twig-2e247d82.js create mode 100644 dist/assets/typescript-552b328d.js create mode 100644 dist/assets/vb-57c5bf98.js create mode 100644 dist/assets/xml-3976fd06.js create mode 100644 dist/assets/yaml-5ecbd2d0.js create mode 100644 dist/favicon.ico create mode 100644 dist/images/admin/home.png create mode 100644 dist/images/icon/0.png create mode 100644 dist/images/icon/1.png create mode 100644 dist/images/icon/2.png create mode 100644 dist/images/icon/3.png create mode 100644 dist/images/icon/4.png create mode 100644 dist/images/icon/5.png create mode 100644 dist/images/icon/6.png create mode 100644 dist/images/icon/7.png create mode 100644 dist/images/icon/8.png create mode 100644 dist/images/icon/9.png create mode 100644 dist/images/login/join.gif create mode 100644 dist/images/login/join.png create mode 100644 dist/images/login/mainBackGround.mp4 create mode 100644 dist/images/login/start.gif create mode 100644 dist/images/login/start.png create mode 100644 dist/images/logo.gif create mode 100644 dist/images/quiz/addTestcaseOut.png create mode 100644 dist/images/rank/bronze.png create mode 100644 dist/images/rank/gold.png create mode 100644 dist/images/rank/matching.gif create mode 100644 dist/images/rank/platinum.png create mode 100644 dist/images/rank/silver.png create mode 100644 dist/images/rank/winner.gif create mode 100644 dist/images/refresh.png create mode 100644 dist/images/swords.png create mode 100644 dist/images/tmp_profile.png create mode 100644 dist/index.html diff --git a/.gitignore b/.gitignore index cd1e201..b990a1a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,8 +9,6 @@ lerna-debug.log* node_modules .DS_Store -dist -dist-ssr coverage *.local diff --git a/dist/assets/abap-77a14c14.js b/dist/assets/abap-77a14c14.js new file mode 100644 index 0000000..b9171cd --- /dev/null +++ b/dist/assets/abap-77a14c14.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},t={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}};export{e as conf,t as language}; diff --git a/dist/assets/apex-cf1d9eb5.js b/dist/assets/apex-cf1d9eb5.js new file mode 100644 index 0000000..56255f3 --- /dev/null +++ b/dist/assets/apex-cf1d9eb5.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},s=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],o=e=>e.charAt(0).toUpperCase()+e.substr(1),t=[];s.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(o(e))});var i={defaultToken:"",tokenPostfix:".apex",keywords:t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};export{n as conf,i as language}; diff --git a/dist/assets/azcli-a95010c9.js b/dist/assets/azcli-a95010c9.js new file mode 100644 index 0000000..ec7b48e --- /dev/null +++ b/dist/assets/azcli-a95010c9.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"}},t={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}};export{e as conf,t as language}; diff --git a/dist/assets/bat-8c58a836.js b/dist/assets/bat-8c58a836.js new file mode 100644 index 0000000..e9f9abd --- /dev/null +++ b/dist/assets/bat-8c58a836.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>`\\b${e}\\b`,t="[_a-zA-Z]",o="[_a-zA-Z0-9]",r=n(`${t}${o}*`),i=["targetScope","resource","module","param","var","output","for","in","if","existing"],a=["true","false","null"],s="[ \\t\\r\\n]",c="[0-9]+",g={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])' + `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},l={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},o={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};export{e as conf,o as language}; diff --git a/dist/assets/clojure-01e3da3e.js b/dist/assets/clojure-01e3da3e.js new file mode 100644 index 0000000..2de1ffa --- /dev/null +++ b/dist/assets/clojure-01e3da3e.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},t={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}};export{e as conf,t as language}; diff --git a/dist/assets/codicon-c99115f8.ttf b/dist/assets/codicon-c99115f8.ttf new file mode 100644 index 0000000000000000000000000000000000000000..7eba31492ba78bbdc6cb62f91c005e051c790057 GIT binary patch literal 70776 zcmeFa37lJ3c|Ls3z0zHE7u_rAN*ax%8I7db$Fpdp@iJcGY?k9ViIX^sCw4YFiIdn6 zvKW#;Y_<>}Ksp3yn?NbGAyAsqloCTzb|`fyr8K3KW}pj|_|vo)+ENm}=e$3 zM)3UseBXV|&3g_6e>CtB#f1b|E}vl|J7YzWvp~9W6wOh@47wL?tJH?7vbDz zf!TdHAYCDS2A_`u1N&~i?apug=w~mWzV9=p?B0LtHG8U`d@jXUaTR0o)XjVDJRto6 ze+_<5}NlF zfsfOXm4E!<@Cc5c|H;X>UgfO)5i`XVuPT4^)pRD6xb}HI&d2aoV-g+3AJzRZe+3J| zZ*43Nt@5wx`WyK_uO_1%QCb!{G*nv{LJ^?uy+sY7guupM!#|# z;Y{fqjqnlvAdBMLr`Xr7r|3icSea67g!ZG{5Pka7nZ2V7O{J%X0{=YdVAZkcnw%4EYv$Je0po zehf!RB95Yj6vgp~{Azr6@ek*>-q3oW^@Y}#+Io9i8{!y8cDL?ty|wkF)>qnQdpjLD z?T_QS-RxTSb@p|>jei}#$@o;_MfN@(=ht$^H?TI}%+BC%<~6>KuVshXBsbWd?DyFc zTg|U#H?tIf6MHi|#CzGlv**}9L)QNedzgKI-^$Ntck|u+9DXUkn4imc@~ime{33P~ zce)ZnID)4%pfkmo1-a~?B_2z&3}k-~JD+W57qAQ2#q1K6X9ZSdeXO6AS(Od4A;|L) zP+*LWvk7PpGpxpDS)Dc599zTILX%j}Hn2_X9Cj|-!kX-Ib|qV2d)W1CAG?9w$Zlf$ z*)8l=c7PpZFJmufx3O2S+u0rLF7`@x4|@%}kG+ex3aWdq4Xvc8qpxlBamU(>%koyocv_o)>r@@8<)&%qzUg2l)^m<`aAs zpX5_~n$PeCpX00f8a~h0^NoBHKZBpi&*EEnlW*nc@$LKqej(q%FX5N*EBG#cJ>Sa@ z@Pqti{N?;MemlQ|-^uUdhxk4G)%-R5KK@$%I{te8Mt(nk3x6wrkiU(;oiFltvcF)@ zuy3-zVi&O;>>7-x>)54yfnCk^Vsvd|B{smm$L?iE*l+WDF@6KK6METC_$c4QBkVVM zozJot_}M(leRdvy16#-bk-eIIkbQ^!m?v0;%j|hJ#irRtehoj&@8+-MuVRlv#~Wim zVps8Z@L%B%@f-M!{3gDi-^_2}`&gWv4Gr_H(6@K7kF(FR&#+Ikv)GwzGfS{PV2`l( zvaRe2=(&sRGL~c?Vvljoa;z8nw$G2Se_?;hKF2=K{+NA6ra z6=3f}d7S`{qr6^#)9-r)hyk|t34lMb)(rxzjq*kT@GRE4Nr0V!a=!q7Gs>F3HTLr-7SnGfQ_#JB<6kwAmUnT$^$XYKK05@c<+XTQDS?d)7;E=3!y8v5_@(uxT zP1d4o0Ps)Nx=Vn;f@{HQB!H)~)++_TU0Lf@0*rpYTL2uFweArB?`5rf1;B+_>(v76 zpHaR>0Gye%?h^oyW-WR)0Nk3jjtH<1pnR1e*7|D!Xg#d;Z2{;%to1hn(1cj) zSpn!othFQn?TEF$BLF>#wZ1C=jfu7XRsgyaYyF)7v?$j4djaTEto089(5zVNdjin0 zSnD4Jph>Y-O8|NoYqbTSfw9*21)z(u*8dWKR>oRC5P*KhTK^;fO^vml6M)XfTK_Bn z?TxkmMF4snYyD6F8Xaq$6o78WT0atimd9E@7J$CTTK_5l&5yPIO#nI|YyGXR@ROQK!as%OMpC& zZCe0ZEo(ah&~I7W6@aG8+HnE)6iQD3+AnMS0?>n5J0Sp#n6;Av(2ZF;B>*j%wF3d@ z%dDLifac8F83E|fteq8rHqF{S0??~jJ0}1Qo3(odplh>sUI1D*YZnBdf3tQ`0Gc>! z_X$8JXYGCgXy>e55`do0+5-a6*jc+Q0NtInD+18sS-UC#eV(-k1)$lp_K*N{eAXTo zU_V7UBEYGiM+Hc;Y>x?W>cepXPJK8bz^M;c32^GeNdZoMI3>WT52pn<_2G;Fr#`F+ zaO%TZ0Zx5V7vR(<4FOJlGABTu<@Ra;PJOaQfK#8W72wn->jXIU$-DrkepoNSsUJ27 zaH9Q20Zz2vB*2N@X9#ej_htc3^gdI76TQz8;6(4U1vt_B905-BK39Mf{k8~jqF+;h z6aBUdaH8LN0-Wf#O@I^qwhNGlzkPuKC)!*nz=<{&32>s#4gpRyxLAM_4K5Mj^xT&U zaC+{Y0-T=vG67D{dbt3nXT3sz({o%Y!09=532=Ij1p!Xaag_k4w(l0;)b>3BoZ5c1 z0H^j|BfzPR*9vfI%XI>r?ti@ir+e-d;B;)C0HH_$kD5)-h--VLu0{9`6R2RVSK}mH1{M9I5AwUt5Hq{I8 z`%qH70Dmn?su$p|LrL`l{PifQUVy(53IOy@~lnI1Hh_hZF(Mn?M6w@ z1HjT}ZF(L6Ha}~>Ljcx4Yd<6aKLBh0iU2$UtWD1hz&F6!^vnSJZIllSz+b@H?-C%- zSNq)p6i;fuM*!Xg*8WuiiubgCO@RFb<*y5nFSh-N0N;c1Q33cLSo^&K>^D)qPk`4^ z{)Pa&6RiDy0rmn)IuAf}h_yc;z@sRCO8{OB);=mg@uv1M0eCi8`-1}Taj^D>1mNvp z?Z*Vzt5JSf03Hz5{)hm4A*@Yw0oadGepCSd5!U`40aiizxBz@6to^$J@Sd>t#{}R< zVeQ`&fJcS3pAcXhQU1OFzXs*U1^8i?u&Yr1kpQRh@@WB1W8^aeoW{;)1^5jpKPSL%MEQ9EPQ2s`0-Sis z7X|puD8D4YZ$bHG0r-em`;P_SEn@Aj2*7W|+J7QIG0OG{0fuqkep-N{xb3eBz`w-W ze<}b^6Km7>1K@LF?LQNM_ldQ?E&x9iYyY_bJW{Ov4FUM3So<#o;H6^iX9VD{V(q^a zfai*}Y0d-iVX-#Nc>vxl*8Y|N{93I2*8=Pcl;0MBuZy++MgU$f)_zt1{x8;E5`ZU+ zwP~CI@QJbZcLmsEDF0RfelphnI{|piSo`k<;5%dOe-L0)_xA*tkCMhW0M8n0w*=s0 zW9_y8ylt%geF6C0So?nozyrtHKM;T~j#C`S)2F;KoRRUjVFM-hT-2s@Q8hnC*Y~w&p*JQm9o;fv`M-|x>34E zdb{)i>5J00rJu^%+SpPC+u%ItDW1N zhh4?J*8Pb4HTS1+Eq*9|!fSXBdq444`8)jm{;T{4{D=L={7?AbPF$I|J@H`T+sSRo zL&*n{pHI1|4XMjh_oWt7kEgzv`bm%rHUzf?uS+ZG+4Pm^52nAE{z1mhOl7uZ4rJb! zIgxoTo6c^|?$5qI`_rC#dOq6o<(!n;o;#BJaqoq__xFA)zd8Rv{%ZxVaA)D&g)bJq zS@?1BQ1Rj7$BJL=%lBQ`_h8?r`d9TI?LS#sRr=__?7)}HXO&M>uC6><-Bdk3c*)>1 zL#d(Rp#wt?4Lvo?hAYEIhW~z~e`Nc};>eFjE2Eo7-#+@p*udDKu_wmsbp^}=Lja?9lY$@?ddPChmH%;a-Z+SI10d#1iR?M}~3FHV1C z`pYxBXYQPN_smynt7_Y7kJi3Y`^oHv+3ROtH~ZM^x9V%_m((Atf1}|wwlwZ zTz+on-0gFpnETG^eXHNMCb#DLwOiKSxAtS}vg_v8J+STv^JmRJF#qiOo$DW4|H6jE zhRqx9-|*=T-`pr|?B96b#wRvy*!1gXursF4xbKXQY))+6y!pn>pWgiK&EG%s182p~ zT6NY3&-$0MuRi;W=OoVAf6lwl`RcjD=f3XTXSZluMz?I=a$w6tTb^qUH*ah{*!*ns zg{@a^eaqG_pLfZ5PiYkM4VF-wQVk-*DuH_uY8?jo-NG&YPawKePV;W=sTWBZzWCmdD|{njsygJTuPw zZJtb|3OqHn9$^l(zgnM1H&dMh(u*M7B5Un~J7IqJ|!eN4-R8?Kx{p{^HP?gM()d^{q`B z*{qRVdv#hh;F3<-E#-YlH{^6V884(`j|bIMsybc`f@<)&R5>jfx?Il2^B#9{aXHza zh@}hJ04IcJrEu%;{wnTo;_k^(vQ#V8rfbtlt{(Ic9Pp3P+kperpPhDE@Smp0KgvsL zGML7zUc*bpWl0sNmXg!lJ*n%4e!|f8++Qp`eY|qu0MFW;wOYg5bhREN)oQ&lXf+zv;BiqLMq$m_gM;=QK7d$qSb++ATStpZbUp5m z>r2(T7;A!NRg9?qaW00+b%TDzZdi?v7N+N?^Le}#{LJXoXeNAnXmJ0H6{}u%3e$zo z3587Ox6CN+xAL9=Y0LHMbgfjcf)sTO#DopGFwcYJ$_{%;r5v@Ns`d01;Wspid#BoT z+C4kZ2^y z52Gg>M_-z-Cai*AxPM~8%J17(5ch=!^mKTh7^%rpa0tH_Zn&XvjW|F5qVvL$jLA`b zpQtB)0_WLzzgu7DzU%okMn9&Xy3o1rk@^g)G3~%(yT0FDkiHzEvP0Po(yU{v+?@X zNBP1f+4A=ut(D77>p?zO&h|Cqd%E+ZAN-^Tv58q+4Nk6>`W1&Od1(!wnq3cOk8&PN zZGunNgB;@JrRmZvzJQSjDO)P>VpB5Ior)oCm87U1tw#+h)`%)QBYIT2Ns{)@C5EL4 zzw}H=+IprG*~+;jNux_qjjPe6sIJMX(l-JYtZRJx%-vj;xuP!NoFy(xc(_x%tQRqm z8rgUC=}NU!pPs3gz|4}tENF~rodicitLwAGgOlJQ)b!!oh$LE_A)PUa!E5YJXX}bL_F}E^NsX2voG!WnlY#A=WIJ)j!3-e zd(F2*bv^P%E0*kWf=XO3jt*bua&w#QrO!Iw@q#|;6Tx>3(A5##w|uIFM9$f2*zl5C zpGK#i;~ns~L`>tjVZK4C4BS%fy{~ut&EdU_c>KZ0w)4+!&dr^wm*mehVlHQc5|GYn zDWR15E7eL3a{;n<9iIth@U)`#s|tx;rI#mE^yzf9GQp?RDg0b3C4xM!CzSrm%vMMVTMOI(eH{OTWYkjL| zIVmM-I#$uqV#aW);95#F>O|yN#8w<<*tE5HGHE0uyChjrRS5Ve1GI-E zklLhQqc~=n-=gYPP;m0TZfNTD$)Mu(^~5E~>KRB31<5|NI^|ed#niN(WI8+K=97jL zNtr!%C7XeLDB1>2a}trt6h#5iZBr@eFKVd8l&Z;Tv}~qSMKMzu;S1{vMb~n@{`~N; zmne@^-Gt{?8ppF~D;bTX%=9)Z^;sO_o}g&x>wh)ac%b+{eg(G>oWV$f+|^; zFV2a-;|=l0RXG-ujVBG)HJ<#qEFZJqBTMhKD&Cye@Ee}*`<~z}>?FpUMzLC-8dQfQ zQ^AsI)2*XM{Jitx{$_jgA{2&`$|aX5C;zJ1{930^vycsEBR+OF=r&n`I*87)B{eUj zB<_+dLC#kvE7e-1UYijg@IJypWaw0r=;jLE>yz_1Ilv6>Up{9YpT$+x$#H1}k`D7d ztTHI2NcYM^$YQb|loUgaNKhH0VPRkl>#ha5YSFN%9Bu10^B zddR~ePPfGouF@g@R6SDMFZ8DsD;Ea~>GC{5zk4Vy_x~IP!9Ov?1^ZMXg&}+(v+Mtt zlXKR_ql$;#luX*GlpVhR-$C1~-q-Csse2#XjdB+{bI^k2(}URl5M*GfhT)wICm)nH zOf4t{;h}0RAd!!EQlslh?rzc-^i8^cQa{>kE;fyZ-aK5{)r9WcT*?_nPG2;P#hmZk z!@6PUBUZ!ro4ZF8T~~&$qFal8CVjpiaq}z4?(#`|@c>-AMiXFOsz4;$QYuI$f+R^a zr3C&n!dI0h$B{SKPt0-_A|-_xpw<&A%2U_WX6luB37Q{7gkbbLbNvNKZa&nf#{(VK z(d^uyp3Ug_L9ORyQY0ElaM(UkQ}Z-a&ghD6a#ObkN?F~s6dm(6@AEu7Ab4@b&(Gus zR>!z*%6hR$m*Ic$24wEZdmL#L*ie{QxB_dtnSh^wUnOsJ<4I?{H zvLsYrK)lEuHhsyF{ELjk#+;!0UQR^)}Yfshb`4e9`?d0ph+P0 zk4qq8?JLExqFXTYT(1oBh{elhNs1Nv3o$-mmhI?Jl^Y;S;pU(i^y*fsr#F|1Y0sFc zVlidXW!avX+mocrxa~SNuBz}bP9$cQ6s)Qcy@dtmmZA;S{{!fFS(` z=hQ0UFVj!)p-OO5JX2rHAulRF_$9I zGxbWmmsW8%{J1^?2!p?F3k3REh&YQ~~kRE|Qa(v_GVg<#Qa#flqF ze_t_|i5n59VOlJTG7_;PJ0z~FUe?Ox^NwokI4mogu12D=DXWHQ;I?Q6?uEmVs3t?$ znGyB7m--9ym#(0<27mag$<`tofUgBp1)203A{s=qLhc%nnZ#=lN(6LDA{Bssc}~5e zif*W4;#4Li%rkM}1pGiy&v50;LEQpGyjmGpdiPEYZg>Fey5Kjv! zue&KLTd?!Lz0=#Z?$VM5XA-DS-HFmeclPyR)=_tArWHX?!4|<7Ku^TXDtZNd6OCSu zL)5Jp3=u6PDLPg^Gh)VcP#9;E;X>USF)h_D6sfe!zFuIbJ>Prl6s49y}2@laAM4NP3Qw z7>K81F;kDZ7Yq(Qc-g$HDDr&W^UU3zJZnoDiQ8APY9e@pz>Idl1(r%@A~gQmjZ z{$yCei_bX;-vgZk-x$0FonOVN%k?~u7$SUm^^TH7&;Qzs;}>^di`@@6f@?xsAFVry zS&SG6IR%KzH;(&@izkmCKepJd7n=7X&2;z(Yg~PL(f2#^UhQ0q+PYUmriL9+D>aV! zhYug{5Brs4CypLnJmTTwF;v;1%Xbhf&EUEz$j%^@2rbKgXeV$5lfgO9q3!s&s4Pcw zzL5w&Mx#a?qI$&<@zK}gMl{+PN5Y@V{7$_}Xtef^N4m9o@xDnTqU-Uz(>KtUPserf znP(!#WM6!s&&h{}(s}$Gex^2`@{0^p+|RG{tCLjqq|L#@0x}ZFxPb7Vg(0!x6_Cw* z>h|4Meay)_wv}<9yUQ9}1-*qFeUqW#$eL;zG0VQ_#Vs5VE$0#p0?o--y#+g$G91$W z@y&J$wr#}>Q`O{;y!a71kJgco;3D6_yiLLi1^q+EvhW-(TkzGzL@ALd4bt10y@S1Y zO*T8L_~o(cW#;oIRv*?lCb=jwgk4`Q{A@RzHw?AIYK8|o?Ki55QSJP$4Beg&L>q)^EE z!1+RxpZqn7T7nN9N(^abq{LQ5F+*00P-;W>HFT6?BN5MlMPEoY%4N+&Spiaz*wIzd zxN+>D5jV}a(SV*AH;lWWk)t5H6&g-UT##}aOQR7Ff+OVug%n)kM&(%N3Oc|0T7EXn zC(=@ViBvPY^d(T&JiBQ-xX+JevxtAfJSu8*>MxUuLP zIWJXACVC8GBNTQ6ffQ4VzAoV>?6NiRDywYcqg6Rtp3r@Ai}?C+{qLgCBMifc!c2ZF zaqYDUYhd7t0W18pY`c(_o?%7dT_^S(vNDK-P;C!2_xc)%l=qO)zt7J0SUq@wrw@U@ zfL|Z+z_OcO<#6-Jk%#P_p6(fkd}2i&{oXv>I0AYI{`@`Ux)9G?rnDL?Znn=n)7~7u zzp?uPUr+G?vsp z#j_kPtH4P@21-&;=us3m8ckS+Vy10fx3hXoHGAT=tye}0SEc>5HHcUUFHZFNseFpN zPAcl!HnbAk$YovMG_6v9Aj^?NN-5l)zW%zv8XWBMEVOls@~cH#Lx0HWttAe%qP2B6 z!>F+xmo$kR(b{tP=eKua0_}AorW)kJ_R58f_X``$txk*G5f8Dpu*Io!GS^?1Ms#PH z&!Wvq%0=(C`9);xILKZ^?`hG@2TrHny@zT3y_Cu!HBTel%P~b?MA?pOJS^w+Gx-l z;N0E)u+p4#d6B-IJ}zN2|W-_)<pHOG@V~@y#eFo`R@Ec)AhB456H1yY=K`R&P;3_4!Xvjw~ zFA;5FHxV^c6nhAx>4#`~R|8%tNYxYF+#3oFTu_joZWV%c3OE^AwQwpQv9 zYrq?*7`&J!uV$vNxPA8y31GEUi7ZwX$^w z2zct0mGnMzN-OG)bMo=2!t$cnVL1C}s!=E!ldkDsw;9fsV~vHyEy^l4!$kZ)+=z=1_59v8aW(S6 zU{vEP!bpLNOo%X)uBOoI(6H+&#@I(gZ_H0};5b2%WxVjw4RkFq0 zL@rfcH9p|W>HDm~NHm^sq*%i6qK2wP_zowk+lW!jm@zN!>6R;38d)Cor~*`zt8ZL= z)I$}S;k+Izj!g{TZw={*m}Dm*ruyWF8Re=vVw;xd*#3ATh{+Br3NCw3)$*T-vE z6uUY19dFoke9lXQgQb?0ip5fv^Z_*<1ab8P`Dny8Ech8BmSIPtpOvFA`Vx!E4LHC?s?kd=lo%Rp$ z(N3Ri`0w^eU9=t{u=;=g08;X_zWDg7Z+xF_*xd(6QunRsh>S)ZAtz7kh~4f5sWbN8 zuE_Uh8u&U>~nB%0~6!8qF<~IyK2`*Kd$uz!z{qezpK=S$q2U4=v8_Q)J$uhm6 zw6=xfiC>RN@&4`!3z`%Qav9CkO2cd5?iI4WW5c>6dFv~+9+LKTV1)(iHJi<)Q`YN( zCk&!ceq)u<5@rQi07#5LSQv`TbnuBwMn^9hUA;P=U){TetEchT;cw!6j4(R!??&jv zMVx_t6!k5kK5Sit`Y=Plix-=vvq}qx_pj?*FMfw4DJ?b^mtM1c-LfBsyh#{@>fEkf zyJlu)78e$F4b9ZRQiQ!C&cpR;6+bPU1W-q)|8(dtXfh8L3U(^ZhJpd=*fLRxw8#<* z0?`SA((#mE##4wGRt~&62|a2v@{}(Dr>;YJg3brqVTSaPWTmtYjfAtDJXR`RFv!rW z3hBo1cEHrH)-ej9|KLID;M-Fv@C=ya(=#ggNht~IVs@wWJJ>7%uPfEvkLkwiN(h(c z#*CRu<5rSb!Alv46*8El5_k26WMFp$uoCRAfGU1Ra*#Fh*cH;1d~b+M z4UmO@t{zu+x!Tr;JJ&cXt^pyIubIf@u1uwl^zFhme`y|v)6?8^q;n1ND;+jYBlI73 z_zsvWM6ZoFG(tsT;sV^}k*R!yvIG#S3x#rRK`@*ooYwFeyMUya2r+0zEEY2~C8Fk1 z61Jg`e%9qOyQ7vGo)=!ATBZw2(}brP7n!DFxCjv;Ox@*0ap)IuX#aKcb)hFQ8Zmt- z=_7!PYnDEQ$swWZ4o+WmH#sRFn3qMzdL)X3;Vv4^%FpCz#>}dEB4KL17xd~8Eszy& zwWp{qvMeIXo?NV_l#AueUR{eSbgGw3YQ3|X>%^28o%px9nl&?u1WB%=2F*;^YFGnY z)i6EXTY6)?CBW>}lF7K1iDjaSuJvXks_AHPsv;cPLKn&6NlEV^UrQ4FiZU^h6s01@ z(aWc6Ws!uKtRFmzS-9)y(HDMVUw57DZ#f9>0emXRjr2dPp5biPUUAJNreA07KeOyh z?bNlSxA#a6zSQH##W~RPso%4qe*+E{;S`g`k)(uKL0Ji8d1K0S#>49})sp5JV^bwH zJ2442%4pgsm4iY1*kxzD#cw7Gn&+uOMlDZ``c@*CGJGVc=HH8MUy~Xm;nJDUXjcTI zjr`_g;nONAIudt;*CJVlUnzhBMy)`*A=;DF3L7jNT7bVt;(>0y@rJ0phg?iw@Ulw0 zuc#-=nrjVLQ%ZigtUF3@&?7@l^A75UkKo?%RDV7eb6joMkDKv7?1b1_=}zVh1~m9ta2#&0 zWHGg4d;F?&`l|T$Jy%_I{vtvuIF`ChOFtfHmu-3cvJS64j`g?@kIQv+F7BR>wh9}P z?n}MH%BSCqyDM+=ffe-&S@Tnj<0#z$lMIhnPu91m78g^wTTYtS2G_zcOsv)yl^m-sd`U#~k=dSAMoheGZS4vmMhs@eG?-edRbn2<*gr92U8Fv;na<>v9<4vRsLPLew3JrnWL(5|&XvX2E zyIAB1+@y~WQVwq3p74D{JfcW0Gd}FU4c-$RzU!`ng&1f@mS&-Ik#`OQu`H5n$O}dO zIhwM#88_GI$8@~b*}E1Ok^lH-r9oXkqU)8Ce$&kdb`^~NZeLMbt#GCc!5afD4l^rs zBZXPI;Lw<&4lf1$7&}oIwp3frs97u@s4O?7Qa)H&ZcF!i@>q803k|YHQxbzZk?K}) zP>`upiN3UStVF#*xv>&dJ<@*ad zlJVEQ`%<~Fus}ozV>(Mm8qFq@wXQ!S3z;hVLS)i_2aDU+Q4>+KJ90>>)AtIpyYM1o zq2BAF_s$itr<3nwezG;Fc7K=|i}&BbFm{mA3S4qbnzhDpBn;K5x@4JtsVFR^EahWfC&WH}7E z%=ec+G@-c~uDKwR#yZ6!bXX*NA@O2G(dExH*32-PhFO9^LVYn!KI~4nfI(o?Hp2n$ zH~gi82M->?{9OvC!1H@|9Yz*_ae|!q!p8azc#Vmt1|@{zD>ymnG0O{0R56UFW*lp6tE z_R$%mQpt{uWh)h<3R6e7D^5lk9aS<;#nw}uuck&P48;5hmI0Wy!8I6rmK90bX}i=H zM6FzZF{Q+`1)d3O5|wJ^i>m2-gZGCU?H0wU7*Jq+02i zzsnC_FZ_eQ;4S$63I8B`4)_S_iCf|%uFTv zL#YVoF&>OKGCW>TgHJ!@^Ybzoul}|-9B=GHehXf1BC&SNDY#B{%yEl$0;yQyC=ce< zCxqU3bZ%=o;o+5?GGpr$OCGy1HYQujy7T~&N)vt-N?lji6YZu9Hd-yRvc+NKlER1N z-AF<}hW1srMUh71$nj13mVRq!$Qq!x{^b@l=av@rO>Ze#L-@DZrg!L;$ghG>Cs`DS zCY*z(cLvBr-2ba0~|FM`*7}1S|1^CL6#Az$ED^NRR!Q04O-UuPH%pfKT#GMCusxzkUB3xjq#V}8e#O*Xy#LcvFdgw*W-_G z#2~{9JxFaNn%HP%2KxFS{8M$r2+r+Vrj*y}$hM!=Q-)wwN$4XH{KYn~su@XrnYetPtI?pE(793ut zp`GVheF^U`(fYj$^c<17&J*Yh-mZo}=W9rlh*$JjjyI4FZ92#>PtBQ>s?m{0q|eLf z-4UV9LoWlLD|B=<5g-n~K{J46pA4w|5KJ(v@B#0XpKM&DX*W?z5gw+GhQC+SHXqbB zuhF!F`}~c^Z_*I2$4V|6IykhQV@A|QtUGEq9A^%BgpKAdv?%nEV+^RUkv)t7tSRm4 zh}0rDHegp^hS$S}z$k=>B&)t;BexTb;%)bacEy7FT7HMC?703AKcu?bx4V-WduRkH zFmPh}`QW7SB(+rjO7C7*KDg-1?wosW)*7~k?F`4lh+?Q(cI8xeJQl&DI^!R+5#ye^ z3t0~EVRr{3^)e1pgKE<>6E-$BL2cFFhS|`2Sl165v|iYovL^c)VmA1g2+bXOb8f+) z-|sq*YxGT8Q_#90gYXxQHOl6EaTYqp8|md3VZ=blT&EeriS<#t!se01f}_ya(N4Ur zDA(Xj7=NWCI1sJ_F|a5}hu5x&n4hluhVEB<4-)qjUhXy=*@wQmpu|HmSDw7xRd-An z==_N#$}tcB%5()~si)ivE^yRCchO^L8X@dGGYrxQ%?i zvN#8`ViCs5C{$R)eCND(=JQKW!l-z%A#90o+<^;$q@Yw4D>-*H7r0uyY~Q}iil=mC z6`TrAy6#zIl@TGsvkz1jkiHz~Fm`)5%jMUj>RfGH7FZU#}_o`L~3)!6roR}q7*Rk4fO)8bO z94QgR46k6o_lT^=j!tHR4wNUvIQ%-ou|WkltOEzFJMb?oc+5I*z`8@R4<5AdSiaWo zUJEu4ZHSy-RQPnw?be;5c&~Nvpmpc>==wW5wEqF-b9m3XxMgU_mDFdqG-DT-7yQO~ zTVofQ7yfL^7W0A&PHf$3UU(t#A?(ip6)g10bogSBq<{@EplSHW$Ug(FxXg)8>ELAZ zr~z1!X5Q{97w?uLx5BDb&1Gh^GO*VebE@fB@uaasjr4#UA=MU>aW>>hn^wm7E?g6v z@okuXf-ez|Bo0Y=fP;cdV%CR^OTMISnEb>5D9(Upd3RviE?~{#iZ&sH4lZ8yD)E!X zMj!3)PBo);;J|?!)Eh}Z7W24_ds|@+BDgcm6f$ig7@(>UMUvDCxae?82#MSYeM(On z`{T-j?r(S1y%#I)*}DJ9PZZ8n+?y-Pk=Qt#JI0C6xpG-{)w#(9878;5&nY>8HDcin zNSe~*q?)UAA6lY`45E8o6*e?UZ&ZH=Kco=TR}Y<}nsxojU+Fz4yB@K5RNR#@*)V#u zAzZaYb)nC|O~bWHs1vlRSFwUTT%%OQKtlj8G#Rn731(Orw5u=M+{%) z;gut&Rdhyp#fppZ5mg>W1}Svyeqr->#|Y^uw90i3F-p>{OS3hw9wdmspRK6)h$RsC zBu(UG(XETGNIrX~7QuuwDd9POxMsYD6U|Ou=8C6Itk~DLgUlrH`=*11+4UQaE!l zd9g?z{5rJfFnz<7XS7NUpD3;ZPTpurmq4FZ=4B1*vJW0_Y=q8&N$JCxJ{>J9My$M0 z@i>N>G_S5gBDuZ^t9+ZD(L_p|;lZqt6a<_Uti-Q38Xf-gUC68i^jV4%LQ;_BPSQFg zX@$5vx&jGoQ?Tb0^@N-9(nX#RkQS}_rWNgt_1h+>hg9fj)W?1RCtSJNjFeWDqs=B# z(pHRN9}U{`$_6CaZ2EOog@6Jm>F|6Uf$;HAKqdS$S_P z{+_60Ct#gfuKP;ai1pbqQ^6@(RN5DF!|SYcPvUV7L1im)Ebbb3{LUQL_!!2)dgKaT zisuJ6r(uu8oGCbkU_6Esfbx2SWSHLzn$%_~Z%5Doo@=DzBl`-^T!r6?6275khIv;= z8c_b78iN(h`C&N{v9NOALxM{bf6!=7<1d*kiJV`@i8d(c8Wb#-WE<|xC`EJlGESj@i)$(*Fq(^6j zc$S*N@$lKPd~Z~BE&Q(#;Sj(`vFS-MPE^A)RSY0%znkbSScRfhC|JdU_0^anEr3m= zZR|0m3c`fLCA`xksuof}v7KL!YPM^skytopY~N0I$IKb8RTC}^6UUUEDcHrLEo!GR zBjhUOVfJFq%z{qH>*!EPxD;s+bcr;ZQi(=ntG|dy@K~HSXQ0SIVu4+fPMRzcd3*y4 z-_pG+h~xKi&_=W3*zdu8F>$<8GsjLxktr5>VncF7+!)3QE(wQ8NDZD#I3Pw63n`Jk zv62`Qx#cP2!uS0-5wZ|=cMqPs2z#r62;3IvsaN9JMZzJ41!;~@Mr)D*1P0cM=U1`B5oD71!Yd-S6EX$II1G*yi>MfV+9L^6mdj1JX&0|I zV6LLRbC9x$qB9OU^F@q!|He2teX_h{OmruYH2dEe5vQihO12sfj^)XN$^Xj_ z5%AcR^W_wer2+H7&g3Cp)txWIS16xNtdk~dJrucNL~p0F@3aqe3@paLJRR}_+h6CBxQuMwKfBLsR}+|NJbL5eFMFks8U@>ttWyN*Vl~g6} zt3yLbzfn}IoW){(D-|`dl?8sVOdUJ#V7V+5Aw^bIS>=X?^ewd*&&07*IbyiUq2Yv! z6d%2n=ow4Lv4n4&a#F`NER}^j-SK);Shed#uy)^+u;NtLl16XbL2i;`I1}(;MY0eY zS_C@;&<-04HqN1y)fRT*h}f1APmkmh*(8q27Q$dqrJ{(KF;4%75_0NC!zctMdANDp z6!t(^rU_I!$fCHMS5==rb5PcBt50jcECNa)wbGYnyJ{q-6 z_*-Qe3yWo)R5uePb|c_g-c7lx9zpcL!e$@XEDqF*ayR7^u(mszpU4cINgLM<6;}@% zkw^wrM6noHGq7V37WUAJaHIjpw20+bgSel7(Ho7%WQqF;9uKOX6_IUYC=xM7Ru|9~ zJhRA0pl6QJ|3`4zS`e&vr@b92Rj6XL)E(Q*;SCJlkt!;UkP(P~c$&jOgp~#eF(Er? z0{Q_G46rENv>j0IsBa9^=j#K8Kib>b)-SC8h390s zq*@WMP)vQ&9bmOXL&oZ9Jwm09UVxHfBehNEG8V@p=7aqrKuJ_DVP6RB^p`@{jIN%a z%H^i!SC5A7&QPHW^@kWN&OBt}Bs`uQk)M7Z`7=&i%@|-FfevJ6lxRduW7nA38LYj= zyu)Wo)IgHnY@HHK6da-n22%p!rBcOEDy8ZQ`8poyYxMOsHqqPNdftmENSTmFd1OM` z$fa|5${X|9Y`!P0W!B%WMp&#EDIW%Rgaio7dBi1u=?~w;R%!3W}cgmOxjUVz?k&l-Qq42YCQ)AziQf<&Ri$&9U?t~6M zV5Qe@yr^7?n}t{*=J=ogkfwb|i@)n#y|2}@*Xr?CyyEWNnzmbm>D_5_5%Wx;TqmrG zrjR!!1jBfqhA;?Jo_QX56nm_~X1i$@c3Tyz;pxwx{P>>2W~*7)Qz0{kbXV}GY*p5-TI(Tkza$df(Z0EtQPB04_7M9N=1AKD@KM!xq^QU*kQ}GqV`e7Ul!w?t90M{cgA_%SSeH_*_`6 zF4mQc^{kXphX)`Xk+Aaf0xkW*R&t^^Nsm!E9=_vQPWg#X@An#X{dJh96h8@TBsVb( zIrKVZD6jl1Vo)zRJ|fW=PEO}4xm-m*MB_n+d-s9vdb5o$IpS6D$1`x;>L>Sx1IO^n z;W9R(yePi=bK!b5y@IXax?>yuq+Z%*t{jSC+SdZoICN4dSiyw=IHXK%Cd{cFmk^1h z?1S-8R9Cp-l}M>uOr^FXHPU11JlH&R+=VjnGBT>t%`~CTF_s}lwRZ@ zOo_0}zs8B&V3gLAVMO8{Phvx`KpZBbo=daz^z#TRX`R8mImnNHMd9KsgG(Td) z`FCb8Hy31ck-pp*I9Y#ha{j!vUSGf7TTyyOt=Y4inC#-d3GC4xhaZsnu+l@uBbG{H zo{>L;dK(ddU%SKdLG}u|!n5z#Ol7&rz5R9^i5#1-q0*tay?^I@_^|1|&3LBJM~2b) z9gHrr3Ra1kL3RwP!!9;e^gx}m14(_NEy0k?0^Wdx6R zcHkjBQ}}W4$nZ{JT!%v&&s(EyZxNh^O&^3kkR)Frwjof$OkyP0QTU2x*CS0VNk?RD z^@KZtb>~=N*@SL_eU|i1ixYakS{pQNEV030!tP01eS{7CCB0&JSd2NNj>Tqm&lpsb z*hK}lgK9?iG;WcGD)P92eO7cELrI@T6y%gIlj6TV#yQ$vhg%U!agyQ`p|4RmGjXs! zjnt|c?alhk$)yQfyF{}lc}&GnmnX5 zWnPcV^D^ud7=kpULnjG`-4|{sO0oi}GfvuzCH?x^oY9c!f0nct(bNo8OR4XCxa*Gh?FzS@VaHgac(e>BV8T)z(beP>3J$XqiRF2V4bj zpe!up!J!}NrszG0lV}y<1Pl#*;(1HEcKJMU&vbEJ`K0e3L`css-t#-t$|dul%&C|y zd99OJ$2R~@KNVWKkd07J)Kr2NW2o5a5Svy6vr{U@OE9a>AoT(y`BUXw<8Eiqp4VFL`liO!1Ja=qdR){f2K4AmBlVc96ZW}TIR9nmu|I8@HL+>1<|GanoMusAj}G>~&8A3Hq` zl!}2mqOQAFxR*bjiLO-#{6azlcdjG`X7p;mcg8xcOovn)N`htO=vi`c&&wFX!tS({ ze9~6f2ch;&yMoZ()oRDVM$V|^=DoQ*pR;S{Y#zp%zW%XvaVBkzu3KGldn;8z0iGG! zeC~{$TUXAEmb|6X>UE=5dZtJlQ|?_h=*9ea7UKw95-LbNOdf$%M>Yy3oLUjuXr3RF zu9R#@2}P+uX^vt4dc)F`iW1Ssu%i_G&WYE%dPJ2}l`FC2>wR4z`U^fxv5FpO#_+O( z7foOvCrlKQObG4C1*p5oZ6bDDufkNdX#o%=F9*}X-@HTb(PPT?7>`O(1?C#9M%<35 zT+cgRt@mo{Ww4V((kBCIgPt?`jJwq-vj+yK1W&kvjZSo>$DC5{*6-F!N$f~Pdmn<= zCQCH#McXLX>MZ)d7oqFH&ZBKvCSd?4=mVHGQV?Jb(`ynoG+D;MB{TLLHcv;3BdOj> z#FKNB{4t{LvTUyu==a+}yqMPI=sN(w)Bb)HhV2cstP07ppJ>^5rhWhFT z+GV#)3Mv>qMh}gkaGfoVQ1%{NNz-)*N^&DD|3VwpR;Ly0QH=E(n0ci@9N=Ca+u$wu zc}$ixEICOltS)P1^_YtH)ddYl3-A>FzT(8lf~@$r2Zw{({Yp_BIEF2OJuGFiVHo<& z#mIyMZ_8rmdoQ+8Rx)F6%H{4K%OR2;s`PjZ_bEuj!k`?&0(7To^iVgvR!1iw1shDK zL|QIXHe{w_e}b28OYkn^)?1C2e`5jK=goZ=?C5vYOjYyU8UE0qKUb^MLvakD8JK-JqFI(Al;r{1s^NZn@0>7|9c4zwl zp?k#e|F03PyfBL!%q6r%U`bPM093m`kn63+%U^EXdfURno}(=D zhtwQWbe5psP#!F$#!%Z)qoCudwm{`v*&156N7`hh-!aid1m-@DC)r9&!Y<|>gZB9LU8SLO+1C~FM4ydX(c@cZXe$Nr8NBo*Eamc?zKy} znrPaU!7u9X75#^;O9jo))?ax3sqt~-Nca5zljGy?sq^tPzeIaZ(89-%d35rROz7fb zUzyYTG1PuLlvGzxra{Xsu}or)lAY*Z2YkJi4v;BJ!zi< znj_2iTzQ{hJ&bSK7&`#VU2)Ha(3IDGZ%8S{&We^|QyaXEf7m_vyg^A9pF4hBjaku8 z15bTa`Dm0WyMm$(3C-@4F#;>i6y(PJ}-yq(eU># zi6sD1CatHi$5t*Vc)cnXHfQB%zv1A2DY0Ww*H6ZRYM@3Ai`4|XJTK=K3hsq++8cu6 zp>fB^!^ATS@xV76Q%O|=&xYa@_81=RcgP zd1TawEpYr4T9C4)hh#Y~$@gQSbzZgLqW*bz&X1!}@=BeOVk;@kXUyMl0ugiU!zhIk z4_21DxVhvZ6#hAk1?i;?e49TBnX&W1=h8 zQ6mF_0(`W+@&D1>dw|E4U3Z?iuc}_EdauH(fKUJmD4>cYh)e|L&|)Wa5}WFl)J;er zPz2Eg0T6*~(vmD2Em^j@TfsJMjb%$7C()KQc6)Yuyy7~`Gvo1)jw5+?W^H<%M%uAw zYz~NrP@G7x1jmCMm+Z znLMz>c%tM-j~av0?%HK)Uj+rY_HzeI3=TPqe1&iM=;y=F@1pNkhDDs4$xulNn=F4p zZ#s?@Cp@CLWg^%)AfG5$C~_4eD*`kw%n8PVCTss5(?D}E8Jtq^YzQxW(1URr>@XMi|c*urR~rB8wzHzW%B)~)Sc z32o~;`-H9%tV|K;>wkyEb&R0UTbrA#B|*SShsFh3#`pCbI`5e1g14TzjnJ%DPt7cH z2k9W`EctD$sH}aBPw%bm&)qtD>CO6YW9*bwN$dGX@g1T6S-=qK!oIFnAVCGXTB6_x zCo(OhAA};T7WizCZw6!GHp~Cn%-meY?o8&hxdLbn(Ux69Ko>u7e^2v3I!B~`CZ8;x zNVK=63@;J%0Sazm@HT8K(V8@gD1RdTh*OS4y<~^!`z?D*X?46jKG~(x>3qAm5Eu{R zY}wr2W+j}Sy$9iLlj#(kXufsJJ}NlYXjKWNfS$@gQw7YHokQb8ov|R+J9%ufH+G}7 zuerIewKUq^K3bx0bq6>7u}YzJ>1e77|BCNSd6;kvbX5~NlH_}4Cg5#3ppIOrZssQ7VZ;8pDm4LPdR4IDpWjT5QZxeUrSC()6Pebr6my7y$R zT%k$YeAQJ*c{4K}F`&C*`dlxWH4zze8NxqXI>PZstY^4(fy}gX)j}x6!%cg2p$BYN z@C%F}`Ohj4~>SL&GHrKJ@J5>%)_Q>93q1s$9g zL`nJO{5vfBLC{p0&#d9=O#1FNkpwp(o$#(Iip_C0-px}{ve7!W#VUP#Q{oDQQozxTx# zPd)pPw0UEVy3Mt98;BT+m@?7~Xx>B+EKFRfwlOR)d+h?w{gb^t6XUn8&CbqRgZm>Km<3eVyKxo0ij1?ph97pSFVa%%hc_OhINkX$tM&dCQPx;2% zzxc(UKIZ@R#KMoNPM5=rF5fn3_P)7JE2` z-*WeuNaCbwQ^a(LoM$3wi#1skFFDDUlSlo=u8DCZz+Y?aOn0>;l;4gTE#K0KBO1Od zX|Lcp$w)Mv1bf8K^>&iIOgY&$;2R!E$5T-mgF@DwFum9fm-z@+CXe&UyYsq-f!T(1{T&dp7u;`c_TCW{VC)b>4Hw5*VcK%%y)tO>#$>*xwRpNCO9 zu$R$Zcb5F&^{BtG;YZhV^Yg*{eAyou@H#Gac>Hv(s+KA1v-Z@K{aI`3r%qgF?DF+a z5^8Y{r$}b4#&cQk0;ol|XhoQ$fIUFk^z_7q5gQMW8;50{$cy4vwY=Yaf6$kVP1z5b z$)hKZpHSYgHRK(ipP&Dgk&!FY>0GOAb$8o#ORnVs)zP8y662BH1+Zu+|D~XPp`D^i zUt7#QeEZN^7DR#*Z+j3Tn2!1-8;R)3ztolK@`n7OB`++Dbsaz6%O?jM-hiWu+0>lX%I%%xbOg(DS1xVpDn7O?c||7M!F8xn(h=G znt)C4hN3Aa0oT5VQmKdbIS(E@XblX!>Xk}fS4qB0w;nX_nh!eDZ$J1i4jNMrd8Mw# z!TK}AUm!*A5&a-z28|YPL7l}2OHV@IsZZU` z5SgFZf2#p75Y}JrE&l)LZB)ZIUT()iXbH#$@1bo=wB6Q28h-Ng)7ncu2pWF!a9VPA zd`=>`{RfwfRPX6x1SmS=ZunFs4aZ3QLfyuM))+;0j`5(Sh&wxNOkW_XuG1TGhrG@m zHl|kcS=&(MypC2F7gt*0mBdi09cP4n2wi7(-gs{?(CSqAyPs5&u8Mi#&nM03qoGaf z(M0MCo<0Ml+n91QS;q^1dcVQcwKcv%o+0EObqtjVRVcN`8r-7%HUJK8l8KQIY8*?z zH9qg$xFK=Kq-v72inf<{;gFVY^P}Gwt975w7xE-t$j?ZY=m|O`_YHp{3KZBYoNI(* zjE#dvj>K;vCm>5tU&5T_zeHt`Wh%oo2+Oxn z8b~~~{O1Ju0G4(On!jKF)%QsNbN$10Ts@V^5O00s#tpnqDnak2mbn_fC!zjDbO~YR z6p@~`D!Nl^aSwN{Z^&)0YqpFTi<};Qw)H&1!s~b7ZOA!5)7SM?T-P)L^5 zYPkYePIyDNh2cUB9T*-$x4(MSu+@!0Lp+bhCs?)FNjOhkUaK}#5u=R)VDsA3j7%2^ zKXW3}l5t`df>AD=>}-9qtuvY4>`FB!Jk}^TkGYG4s&?8-G^ZZ6!DLJ%>Oa3?6DEhi zg}EjcOW}$~(41W;?QYJww(aJccbA?AJ~Po0U!+l!2OruUnph=jE8q>d-%iO+w`;z5W)0{|BkW?;Dr~@&i;+-u4Vf2Hm=Rqs> z2+?@=;BoX|)7hpgO&@Rip{Ac;wAVukuqmU$(O%@t^$EBmaUiB6@Z_l5Qf1~M~+wxL(ES>R^kS3nH?FkIkZoRQ6|#oWO1PsXL{2yviK$Nq5VMHkvEm?d(%c47BIW?r#C_eQ+J%>Cj*u%Yh+F>WoG?-|CKUQh18bVc7) z*4}XawV-D?E&Ft7UWa%Yp^u_LX=s2)$09P!=&Z&pMpQ@B7!rgVHzl8K_#xIZ!?C+U zd*t)=KfhanxP&-4jrn_*5hV6~vCgtein#ppPin*G+hbqwma{0N+rJ9fh|lYV^>-iTUr)dFStXoq53+UVZM|ZmvHRlg+!{7 z`LBmo=(wqkvQ!&%Uu`~MM;|J8U1@hWNja1_Bq+Q@jTtSWKnLT(Y zk^0#FITSA_XrhJSCq+Z^7JOyjIu?y%JtKSZ*iJb~&wYsQ1V-3UG^KJFohJ$tg&i>F zX|K=gdE5(888kG*qk2b!{}Id-lQtjZPGXcs^@>O@WDr#WGxhIC{bVNm;C$6WRc`hSbt=GLV2H z+cx32jKFi4b|b!C3q$?MZTd;DdUlInThK_IfvQ`KnfodQJ^T<3b0+>eLaIivnM0C7 z5+)%dTV$<)-BX9qv#2dO;*{@n;GRH59~MGGuDFaQJIV^}#hDQP?R4Oe2ywtCu1{C- z^k}2j5C|dN^?68rWB5Y0X^+uS9J_MifFN@N0)R-h+OcXvU=Z=fE02-E!6-2HZa!r0 z0^@AdR4dM4@T@i3P4ecxQqVS3iW)#2w)VBCj?tTKyUd54HAl;?v$7eK`Z%Y1)cQ>n zPXId^(b7;GY4Ym201NrFD3$>N!jF~0K_R_iBZ4W_fK91{r73Wx^blcH7725T?69oSEYyrgI1h1CD`23PNf*w!Zh4c692=k7WC5{~5t9@K#N;{7MW=>0yTAM)(0_0E_ zpen*0tFVYt@H)BdW~SZgZO^p#I>n%JFhS;263b6ICyITM{re+*#S_ltS}3 z@6zrd@5lX2Tecoggyd7J{ls`2~jEl7W2X#o$KPI7ha%hVO#CAv(tp%fQ_efJcAh#(nz2US^}^dtE(yoF_|qle*A5{A-5bvmy41l9W9~zNkNVyk)p}$j zE1EgfRdC19sUrr<4pn|>JLsaTI8;<^Lz93r52{!)og@ul0bN@RmL=j7oRW{Curs64 zfgHFO+c6e*ii49w#iCsJLopP09xSoAT-i<(wI!JYNvB9Ez_^!~&ev(Et3+qqO$(qO zl?Z52q9UB3(|XO050*<2BA{DyZS8}DpXk}z7#hfbIX~Ld+}F0JGWJ+od1tvXu3GBt z)C*0xujw(Q#iw{CkE!aQ9vTQFE6Kza?kd1vU~^^(%$gH8enQ?0vd1FS3DppeDV!>d zB8#A2(FYVU^h}wuHA%kFbO3lpGL`ibq+f-UC%lgm@ZnENdHS)*ot}gpyrbLn=%&~OfD~N`*+CxBuOtZ#Vjzd=@qDNc0CbGoq2!{nf zITi|yYAcYl005bGTck<0FqV)37&z!Mn2&c<5GfrzHjpUpFSQOdn`Pq0u7yr*16kj5 zTH0`~voeF>u8EK%`&2Ym+Fwiz96MOT8r(d%uj&PT>Cm}zkc-40-?9h89g~_NgGb?` z=gk{wTtJKvUT{Z_4xt%BEBKQcs_6*7@RvHRH}9e82!f8@CsRUMw{6$8Z;ONX?c10l z5oAKW$mW?dM3`V<5iJTIG%KXyxx1b0ma;(Hag&E!t zfG>AKdN@V4II=%LQ|(D5-hW0!|U_qJOp`H^W9^0BBckW@ehhOY}%-#jJM ze#@)h%nXU;cBuYCDhFj9Y)`d!q}mT0Xis%edv3cTRSxh#)uZ- z#tJB45F0}ARTe3|DCt#-j%?Pxc_#bVfeY>zb3M6S&mQ^8rP@-dwo+R% z*#^iS(R-*Pfkr@;wP?kj`k7KI!9BmWSU;I7K9uC-@CstcolKC<1f0M1?oEFUB?+;C z(DuWM>8FoX|9WaF@x&9Kd-T!7sZ&=Uo{B$_c;cxLCunQkz9BPA>}O#lo}}>+Uqj8q z2%c&Vd)Wc91H2uyg|(({Y5LZt4>J0&^Ae?8mC=q`E1Z$Scotal8g4d-@+{2^QY$w; zf}aQ{j*g&)knmTY{K%` zzl(yfLUKHEFXLEl#a^r?f@FN}-e@e7IOt`f4rqp;f?A|AMwJmUt-T2x3oO_=ixA#) z0!he>PDr$^Wuv6DiH~}3LyNm2`2)Y|_{~Yne0U$a4d1e3kL^kX?P#6MNP8yXl?r&5 z#0Wwq`q#;z{{W3qsei%-DHs%t0?MmG93IiaGbI!8qqYxl9Dq};NvN%WZJs%ULU=m3 zM00CDHvARD)*{%72bkyg)6xtgOE)UM8>|G?!f0Mr@NQP`+$e5MVNake7Jj25vCKJ* ztURK}fwnO*_z(5%_5x}RbV7Dn#d2OeZ>m%ZyCwfIMy3J>#3fM><}8w#@=BCha=cW7!n&9YHJ}#ADBBKLK0?^w7~?mWt}xSU0dB zQPs_>SY0kpP5Fm=s{2wMLAr8iclSXReZ-sc4y96^513|ke;Z=9(=&gNN zZl{RW6$^y6KhP#VMq9#L5U1Hdj^0O`U`o`Z5L$=8T_=6A#%lwFh~P4kpboT|G@-s0 zm4^8Li_iAm8&gl19zbGo*A)MJi7O^@;&W4{U1=HpiNz*kg%eo11_N^5$J0b7;}2e{ zRD%8cFI^`SRlt!Jjdt zWx@}4X`gFdRUtW=lJgD?ejtYvAMyR;#18`LBt}Jsiu{%Df0bmNxJ%raJS<9*!-u`B zQrSMQci8I*D&A%HO!@AP`wIP2w)a$0MzH@3~6+sITQ zszy^U3OfNHmXzOB8c^_4poX$T6a_-qA&cl4@y(Z`)y5#*0@j#lsH{a@S%{|m*uH%+ zKNZatb8OhwsFd4tk(4)L+ll1oLoDd|kV~lZUU!m=y<$rwYergIBW5vHABGX)=jHHDGQ2{YPc!Y^ht6o2Oj-NktZ}{$WPC7a zgvK#YP=91$#BvNZP2d=6GIm7ILCCaTU>m&G1i7eLZjpzz`7&3&8{D|*o}T&~f&XZ3 z7zyykgmoG*&op2CHQZYC=li^#%gp zSM{**4u^w?(KI=E+`Ww{I#GWndKc_!{wth^If+3eqp5M)sgnR^eM-n-Arjcf@pTMDiuC)9X?lP<-D|FW6TTPk@y##!!wkSMe)TPqa~?E z4q00&2%J8SLEk!_8g#B*yE8yErC9x#U^ks{vP#~3<;D%SYu6{Hdy#fud+#1rS{x#f zL0B&73ryZL%NPtkjN}f%M5TDh&is;S1O^ey`L7=(nI><(BAF(6@fF$KXm@!J@gr%2 ziVnz#&}hRvv(w;#j9*N~ri3VrPvk%vkr6#1rbp9am=HuR!W2__T%`sFdV3yoA}iLU z(-jo{X1EYo&slASW5-gta?j9Uq@&PNc(6Bk)rzCpPdSGgWAdYpzQBvs^#Ov-C#bYz@Vj_r)^S`%i8}#yfryFl;C(GhHMVp}p_AW)x+ZVm*$`>oh$|Dp+O(c9)hRCV7bNIZp9CDT#vOs6}` z9hnmXtJBu@>iq&GI*@n)P>)Nn34-c39D5olCg66+Dws}p^mJr09mjz?0ETBrzlv_L z!pu8Fy*2ID^~JVHg+r7@+La@gut7o?|DIY42COiH>I(RmW(c~7Zg<*B{e5*7JXqU( z0R^Oq6iRh1Ug8Jepvs|ah2}Xz6Pu-)vo06J1c4fe7w}5k@DWZIDHmAQ&rnkN=({)_bfYo6BSC zW6LAmr+@4{@9~dBB1bMSkBxPAKS^7Lz9A*Xt>_k+HVy3}3MJGQ5N4~|<@+~&^yMM( zF$y|KBx~QXw7!v`;LdaBIyLS>cpu5bB=^CGv~eF&nc?wNu=a72AN$BtKl-CDzr3xn z+_;!pD!fY+mv2xHu~b2YCJNo6?|k|2YwGcGSPw1cH}tuZ`=`hpgtyUtR=_Xf*Cqb9 zVn&uAH;j6y)GYy{VNY&2FG^AN7jR!7&#HCdZ-k!Q!s zup96oM~UvBK_{xWJF!%DnwNSf-GLzZ zC2GYBCb{9!I5fewNIJ_C+${4qb%eE;L9>bs<0LLPfBxQa>9NQnP(UZ$6r$MF%* zZLJ}!C*@!49Bpy3bN*c0eUtg@L>IC(i3=))LZzVgc1<42uO(JxL-<$dVkF>oE6yI`da7*!;TX5@)soLoef@58S(KhDKy^gQ zKfbc^<9_aX&cBO~5n6-k8%VvdlveaJmD_jGicW5gg%EE**88_LP4kYdMIk?1XJACE zrkg6_9EcrHa>1gu$U|nT2<%(I>u>TjIH1g(&6hx~y>li8NOMN1j7v7%AO`-YY#<-U z3ix_Bai=Ex=#;eV%k11J*a_Hu^f>Od{VxFBJ6O4qQxT0A>ZVZMqoxOEOrYb_h}F44 zq#G`{m^C6W_3TZ#5hItAEzUt^h#1*HQyz&R8TNIa!ju%?IIR{zzKjSyAlop9LF zZH;{=f?)NKWgW85>F?vhxJw-3_vlU1k?~R1v>Vt?aNGeyH+ZQswSpidpj(+wUz+OO zS}%(DjGb(HD?Km}gJH!5X97kVddNZ^VT5Jl&63`PbV#MSO-ApW*=lrx7M11A6?`UG+gyoHG29LkhCTJnMO+oP%Wwn7e@yX|BP zZSAR1ungju$gq)Nr&n*q56JU^Ocd37xHh)IPl<1ptYl*a-Ja+mG&8{b7=(_A3oPgi9sa!cd)nq z$Yb(Ie?aq$A^*{?+O<8h8?Auof43K}&>Im4z=;L}za@X*h*!nPh9VPd+@tLe9NiTy z9X!c*$L^LxS?iH1@7gfl)_RcoHDX4A}_-+fO%i7$MGh0|%@djhXPfLY!b#tD*w8m;yV) zvh|c`xW-!q)xHo(X0Y>O1A_8s9Uum-=^ziRS;d2o#=CkTk~|PpdiVEEg>J6o2iRY^ z{$Sp(RD8H4p-EuQi~pTu9Y3OR5QLUsj>GbXhofkE8~UQqhfyM~#Cr&J(Hp9Y{N~oY z6U}(BOuRQQs>imTwn#3M$wyjxie@Gw`!nqTMcxWQQ76Nnc|;(@yf1i#gpq0?W)t}T zXCh!3H}|whR-?t979-!&5p(0Yw9)oZc=E4=KT8OQT+3^1&GXPV7)sQLq!Ol0^om&7 zGMU?%O>yWW0)wJ>o!-9v&8{8WzE)q*xRglHozKmHQ~1fIA7>6!u=fDJO=?IXE+c|| zBIw^}%_qb=M*?(EQ2~T4^aby91Wz1<3wg*<=rbtiYqqRXE#zgR4;?7V7rb_=+yIqK zCG3!+%9OqdVKPze5ppV>1X-gqp=crX!pntY*pPXgDC$K$T|SQ{23O*aXe>=q@f60~ z2&f#@m|><1gb=O|!f-Dp>iC_@rNfTE65ay0ORl$SPQWDa)Y79@}C4z4nlwF$VWg*p1G z%1N|13 zb+}St&;^{6xKaZm8H+R-&3q{GJ~F)w5@h%^f*1cg%VG@qJIcknZm<_7{u&4LgsPXLj6s`&L^QHu#B9_DN!g zK=Kwp4vbkuw0DBXCA?$#`K?-P^5nh#bEmd$@c_^4AANj#+=|^c!dd|>(xT3rGuguY z4!tRB?aiq-Z>XhGA>S`_QeuO&HUOq>Of=^#D>-4y5pc+>NwT6r^lBCe0K`Pzk!X^e zG)Db;^c$A=F)^{=w$KE?7t(7mgBTCCqKR^&^?<>Ax`ndsI3KH7Y^IrUL0&+?~t%UIc;1S9sG9D9}qmuZz%GS7ITr#j&xhyL%mQ~tt-~*L zNc7SSI-ab(2V{oGG*%WyEGB7YW$G)N$14W3A! zPRrNF_S|1dRgdm{`tU<&Z9<+?9m;VkDol#D7ei=gH_%VJ>1T!ng(b&rjr~J+-#FFoH8n zRVQ8nf&4pMqCGq!c+C_+AVH7mD#AS3GOYN%kC=}TP~ZTp?O|S3>3BThM)NqF z;lAc7Ftb&rHDkt{qp8Avf|rOyQ4t`pl?k}b-a{MlA|PYQyz?VI_Hv2OTTiOGez z%b%XZG7V&#u`k=?#X5scW$MNapckfBR<7eYwYhTU%pL7GH7!D8KoI*q*d2O|hu&SR zy!VbxBo$OGV-sIH6QEF=4$ipO-uAX9-tmriOrJhYsC(*CO1^$%WM<&_*x2xWBej98 zzLtC_k`Gk;1a>onM0GIt?Axe|43WtQP!X#=!E2#+VM z+n9A4kA~lofn0@vGo*{L!KM+Zz2!FM3u(ebg6c~7Dt{_#xOS}lliem}%#c=?LqP-C-BAAx2+1+!A z+3%2BWqKPo;*KkL;}A505I~ek6b@bA2-EvMNP9@@Tkv0OW94NoVgHgyJNy{L#vft} zVLrE{3`4H7qDZ)@|q{O;|(l%Bj#)(31nU=4^f!4ZPurGfK;FUfGO@-qQLMUew+5Zx7$WyCqo zMxqlf?wB7KcKH~ATDkP@Ok%t+NytYW?C0LhTT0G%f&?AII24J#r5xcdcBJE>SS(pW zG3PjHcxcEBf)=-O#P9GWTGNhA7RD3FQU_`$JgZK2*nb<3#QX}ce4-buNF&lVg{u=O zu40&NO;do6!|_?qTaOeYmNsD>WWkhix$_TN88Sf7Q_#(~u;qH;lEUaa`lc~9L)l3D z`ecNL(R`s+11m;^yUXa(vPJz@xF!teXj5i&Vh}@lT1CQTuY9l6wp>mH?8*7D(73{jGhtT)ced7u{-Py4C zW%E=-BjNo>-A^sC!%eLZk2a-!+r+6175_4!~dH%ZX9@hAGECb zaHqJg6>-QG$F;78^BIdN-e-`L9lU3Vo7RlHfrf4CO=&?(YrnO817X>@(WpF;3N$Qs zqs-)Vh}YH|fQT3FBpGT0rmgY2{aogp$Y5cG*?M@q zgd(e&tR@Spb?@-8Wa|NhoIwFLj6lih7A^6oAu$)UHy0PGtAt{Upgg z`Owh6VGqwPsDTGhW|OG{hpHb7AJRGKwHD)D9q9vu1%Fr7&-We(+Dh@Z=F|`zGaqzx zuZ>aJ(xZpdSHu9(ZArww%qdOvnR9xbsZVJUNxnve$sPC3ty{RYO_KGL552E{fnyLH zy<1K&NzwxT2fh12*T<|Ov5bv=5PWQD13?oKMv2#!d|h~kVm`F65i(=MwNZoT(;-+E z&72>B-TCil&G*iDdop`^3x>+3iD#6gGfD5Eh|zm`?X+abFw$)u{z(X5Su|hk`92i_|NSE!)T+NWwfuQxw4-D6wf^vrfXl@HNu7lJ!9(Tpq3`J!Jt6`t z7f5$DN96 zdBWtqL;QnAzF-Mx#(KnmZp(jR1N4lPS&4rK@l?2FlqY^SUX31!NA7bYLvcSg7>V8& ziOrjPEH^iqb<2HS1F`-2GI%y6)e=1uZ;jf;sD;uyp0(X}JAO7r{MA5nfAgckqruuU zlT$N~J=A!&j4C5fJ%Ej638@SzM8bbW?@6>Ie#IKuxk45|T#Y69PxsiwzKPL13JKw1 zh@S=At{tonT#v^p{SMo4 z_zDY;D#@LM-ceA1JrV)v{Eh;SK$4$C4>^`pK6RQ4VwUv|@xy$Fl{DWG2Z+i1k7Kde zSS;l{=cM>;6hCDP@Esx32G2u%8X@x$$j`D9GzA0khx|*1(Hd1gW$!)vh(wwv3DH>8 z$E(VZj!`6Wjv=xQA22;yp>m-XNis=d#~|f+mGFH-V#Gm(FN5qyA_@cLi#33vFPz{L zT}=Ki=qyg*^6xi65qi>2ppafF{ye{H=L;!?4i>d_IgK`;3ObXi7>BCw$oZn+VV%cCKHIVGwv&J)usi zr`5EYRdZ@dtwS5S@f|LVk6A<-BT>U(TG$Lwg~J$)P7I0i+scj)TNQSo3m-Q13Jrr= z?uZmB7`3r*cS1$^nlKBaWP-C$UNLqC6-}jEo8UoueX_DT8xtn5&oOC_5%C+URP%+2?(#^!JX9^*(u=Jd@U-_LAqQT46Q= z0a(oqjSi16f5yhi3do%KKr~|b4+5B|R9ng`6NQDBR77Xz!iUwyNN6Wfjx!{%8Oqod z(kp?jXzoEA5xut}6BY@x$cGWZ*&Y~(STt)DM~d81S#XkII5K0R6v4|Pk)lchRl#l0 z^z$5`%NSzZf$+UnjF)KTO}Qyo%MIjPuGfg@{K}mO>*G9TN~)4I$Y3gU!N-8i15RtR z&yifG&yYkCAaH;hpEgN4?X)!`lOSlBPMp2Cdq>Abw-34jkCb<7iJ5p{w5lr52)qr? zjHnlxl-3_nq*lCepZchcoi^nL3_q@s>PgVERMM0xCKKRTIAqDRJ!k^%<-`s|4UpmG zjesSg<%n1ybWU1S3q6M2f2_+)Bn<;cFq#CA1**ZrNYF;^u<#-B;!-L7plHknp;Q1J zR2DOaG`v)gXCOzhDYzUW2++Db3-m?aO4l)FQ7J`A3-}sRn^_6vVn>O$@Z5A;9D+pp zF0wk(oOIf5?n%p-_*swu#dc$#S7a+D@S5Oqo=5xe78qpsQtA`xQ&c-r;PrURW+UnO zPt$xvROSRcf`uzwYctIMcQ*ZO(`~|$#p_cb*%+N#gAAz;(c#5tZZJjkEWzF?CN5*& z_!x#mW@w}eH4~|*x=$QyLePFDhhV$qvegj^u#_hMQD4ceF*_cO?33(ggF^BpZ77U; z7Ns_~956)oD`257cT2KaMBAK|mDL8|09J|0xHWPlBDvEHZs{92)Ml(k%-0Ex(K7+# z$}RQM!+hle{-Zt{G-T~Up~hx65FI=tTaeYqkmW}INBVj_%8hF{U+5Z% z$@Bk1W*$vRm&mwquxm+#KOGuvw?s8ZPz%r=j?+TV!vK-KPhfv6f)i{<#o`$-?i~r2 zX9-Ez@1ujcgt4gSucYBaY{cJ+8BG8z!%~I{&!YE;a;K-oxWyiNH=Ksj-STYgZR{{S z6!kb8xRMT!YXQuR-4~@cnnuVO+)QpEqYFyF0MCL-A>k6X)PyM~hoTA$`*mQgijOU6J>myR$B7%7GPS(X?{ zJsOY~wg@B@+ocU-%bQ3}BJM{UaB@zP!s-Ed)3yEKg#C35Y6ctFSjg?&N7 z_=kx-dm3u6G_h*2kx4=fak0wBAB3kV6WyMI`0B`Z!l-W59p|85$xb_h*(36 zkVRD?Pffrs98Ttv{QtO_C60-|5oQUP+YH-G_N|$&tkJ8|zMTS6&QG=$0)Kxh8Kj#b z-*ifII^(AwW=Ekl=|_@Q3TF(}8`*t5o=oPG$q%6hCl^jU_eIl(UoxF+Jcg5bCfm!( z6Lr$jM9F$6Q*ul3u52usO2)EXakeI`u6QI3q({W>&5EaGLq-x?ob;JkO?GHks$#sf z3JsC`2fPy}JP;kWp!G-m6Y&$?LAg&|MnLwqkP$N4;~VR;B*L;_!H~$&WTKSB5v1%91L%8Rr`=;D z6XVC)b9>+G9kTP}n1!c0H)gH&cRZcmD3b#i)hlNpGSlW)SkG`gU~+oPnDNXpGknSVT1^e*H$V~C0OfK{$o zzhgg_`Zd=**EkOUBk>ANfoPk@}ocCbuV*D6mS!@K8*diG&xIM8Pb;uGi9;N~tKRe)CxyHFPHRr?zie zsZMaUn-htI5%&`?nk<2aWBXKxQQ~`+nQ(Kc>sgN-eo2k$1g_e##%x)wF&m4TS?dnB z?A2xD+&YCsIVIYAQDS|qbTsRNi|b^MbUET*s}AhP$7j;LJ~`cc3mAlHhl5kjbm)xx z)KmKR+W!5UlCV;`ZhMW}dVaXZS=*J^dNNuUWN4l*j@K9#M!!bFNwxoga^=2VN3uN2 zb+boH?w#K0$xR)`HR;x$>YkB`PVqB|mJ_YorVvg|n4l4Y0~c!QMj5dT)+)Dev;ult z25|WLLN}SxT6ZTZpoXv7*Sbn1IU?sL=>m&RsasNFmhLN&_VWb>@#G|M4>xfyFFn8+ zVRlUSfs&NEOZwz51XH5iWhH9Re(EIp+O!ckC1`iWXVoMf6& zvGUkU0hW<&{7dVeBEFmMF-h*jXMRc9>a3#WXB{*i6IvNefC#q1i{zlhn75(VD#i(EAc&Ytq4q^2BTQpz`ePRV`I7f9iCzSN)4qr}AF4>YdfC z{KiQ}dB1Q?vhYpK;kiLeBVC}s5bXdO+6GTR(~eEI?k-zddjPNz-IbM!Ai8&2Ids6* zp7s#cU7R-RV=DCdN~7ltv6FB)6QB4USi($A6y&%RAeW&XsEz~MoYw_@??o5>LelpW z2p=uJpX|kX828}{RtU?tf4hz~{Pe+JKM81M$oh@E=Fc5m-fjQ%e zGj2HFaw?17Z?KL!3yXq#HSmYjj`7S`XM*XWB$`P<4#rP0CmgM0*{Vv$`|=oUg=AbY z(9ecSLxC?7mEpeXF!XL1j|QO-AN5N8E+~uxC9iYP?d)_1BfE|EVq~{jY&UmB+S?<$ ztYR_8;*^G7k(iqFVIoUof{dndaMY3!Y`&Q!PO#+mm;BNIsE)eO?*?+QwJTCA>f7kj zB?LEx$b+QAy%G>Q5$qi|W&==ULqrjMqGureb$gBI^iJUC|4uxy&PncXuz$2bdelH% z?Y71ykRN$jfUe5j+E2q0L08~m@eF{}hnYM?TJ5gD0<)BlYEUe+X;63o@(9KKMg?Gv zl~+^;;@kmxTciyU2o(zMkqC51dgL-kTtOH@Ou@n2LJI(l zQD~-af1|SSG;Eq&o$}gv3>*=LOWP#B8ul)l#v&M@A4cJw%WE!A8e-diAb5 z>fi4jYxU~gSsxxg<7DW5|9Gocr+$>1u5HEhhIFtVKP903_3w((X<%6y}d~P4|A`#B7_iVH` zs83O;V3eujwP4 z3MPC%Mo=vuAnH_e_te4#9!zwShU)`5O!&#xRtDDU-sXwD=A8N!E)I*-Yg^vZzLeo| zCI*Qy1`j+1-#P?-e)2klg%on!|MM;kHv{998x8s>>sW}nI)uIBn9N2QdW=HuB)0jS zHeO<74tH^T{AIK{4pTk4aik+0-^7cG5g}ImQ=x~zb=FZzowAjA80gyo5UxJ)X)nyIgO=4`}H{zbk4FOahwo z(M7STsHVCfTd`9BsGesOzCyTf?qS}zys*H}h$4B+{G;#Dq zOVsCc(|e_uijUZZ4JX?#ySB$!t%mB@qYME_F1WPBdrpEqmfAk3g$pdYTXz z@|vf;_E@wPAFvAgG@w)6wBMHe{`<0R&8?jWeJ@kUrGspJ4G>?{P^Z?^V8&$B%J|hI zS3)HDFmA;j{)HDZ!qRW~VYEUu2Z|JY(F}@AbeLLE z3}XcUGL5#?Brlhp0W~$|c)qxT0j$GPAN}`|E8;y>e|+4ptbRpXLL!l@gs71*4ASCe zFpyZoR=gA5LR6z-8-e%An>@;h46LL61sgDxvMhYO&~>5*b#Y*VTL6vx-AMgLEQe(l z8%o-D#dMSwmdY>*@^~}@{!Y~!$M+uTE~L%9*dTh479L?H3K7)8FA!IL6kc*52EMVj zFJO>^CZc?#iHYfp7LLRSLlYBuQgs?f)%V%Nd00dg6%z4y(9+qJCJv^%qcw2j&H0?0 zX#G%bcgD%*Nin@U?-KLUk(4OB3^~*7w-#;N=mFFB8MRkl2a}Sa9?n7;~@phSi2C25AE#CDMoHp&6>6DC;PBF?Wm?@|K8GoU+vpdGO_QI}jZF z&D$aEz8l_7_&oI9j0IgVVoAma+l(DQX?9TJ{~Nav2DLYCBs1Z|!K18~M*vJLoH!~o z;cq2G$i{-fK%J2%F+lDeBTxRrTaf5mq$*f1&3z%Y;MDa0xQ!mLqGSiLdwXs9wU8^{ zaJ+o8wusx6ioR3*w?X5Pr#tWu?Zg8HzjAC<7Rw93hFH&lSebyR)N_l8ak{b8LZtp! zd5I_d$BPf{4~j=07@A9WCRD<&ht8iQ`9&r8`D`Wixc@}K=sS6$oEUq*#~I|XlmPqw zYC({1wTsXeeGThT{^s=%U!^yEe)E|#Z~X8xqT6Uf|~Y_h*vFT2o}fqGfumrwC_SOeJOcwEy&P|t^?fm-s%7MW_Iit3?xI8ese6eY^ zX}M{xX+i%k@lv&>`KFDgML+{rzv0-uXFkQ5tGw(2*Dp1dVBZHY3EX?mX_VSEjy3LH zLiClh*V!kfReqo1=o(L);h7~InAa&weU{m}kMB9|aGt&EO)E_YSZD{g?os24Ma~$| zPrWF;u6a>@^?a8d_kPs(BkhWW%esO#&Q^|cRa_;M2Pcvw&t+O=h;zs)0(9|bfo)?B zwSfg82}(OvNp-1iRaQN!S5J(v{0qhMYQsv$M3M%1XgD=gy)VtM;I;&>YoT{mFYF?dJ3+g#_K`p9_YDq1t6?I9isx`H)Hq>Qx zMLn;ss%z?7)O*x>)%(=9s`smJQ{S#O)eGta>VxV#)Q8k}s_#-C#vS4%^|Jbi`l$Mt z`ndXT^*!o))phlKwALroKTU`n39C^^et$s2^27rhZ)gg!+uSp?*^R zl=`gtY4thvPt?z-pH;7@pHu%-{ZHzjsaMrMS3j@*XZ3k?Q~fXM7t}ARUsAuUentJN z`Ze_h_3P?isDG*cmHG|!uhnm=f1_@x+v>N}Z>!%?zpH*v{l5CQ>Wk`2>JQYvQ~#^_ z_v$~W|4sd&`XhBm{jvJr)t{(8Rez@bT>XXmkLt_nE9(DH|4IF&`YZLH)qhcct^P*c zRe!7gtNL&1zpMYDzN-FD^?#|asjsWQGn!aY#kQgS88H9aI5oLO+(;On;TuUKWuy%Z zqed2kY~Cms%|?sSYP1VZ76L#(35^V@w>7-x-HW6r1<=Ztyd zys=0d_4T4$7!S|VSER!7+Qpg0Mg5$6 zcF5WF2Zv|qYy6$pY&~S{%FK!#9@$t)%v{@8rQ)^A%PVU!y%9glOV?KW*VdO;%&=^q zg@*Ff^{5o0XO|b}_*%YT%h$!3)eG^nt246~YU^^2*C^L$rB&zb>O$?@?95t?((=q4 zrFDzam9^SxumNd0Kzom+Sl2YD;Si^i0i} zJztx>(9iiXT?)4s7uMDjY+qhoUeYbJwIQwJHIC?(aT{B-!0h?e<%_lc*~R6xTC%=z zapw7jiwoDbw-=W5wqHNKTBCJVYhJzI&n+x2*5-ox7Ax3%tv}qCy=Ncqv$(KS^Xoh7 zn~D17+TzUGd40=`g>^>P%<7!OsG3=oH#KJ$7gkoTvV&@duP!B@?TtD8x{I`KBHY|q zk&T$%h_Yzb60^&Ti!&?Xl`b30tNj<*Z_(OksZoaCi?t>CZ((hAV@=juIV8J$ephDJ z*826VsKpzb^t7BJhj_%w)%fgcZH{`+Qtjv*Z{o<8ehYhUW_{+Y41u{CT`sjxHcIRL zdcbZSS+9miwx?b{D?K-+N;8Z78%vjKs|)8AYIDUmIesWizOb~x zgt$mc`dg>yom-o<)69G=6&{stU0zzM&8}y{9Wo62&tC19-*~udWoBcoQC_XBZY%}i zei`dCtLy#eR%b5O>J_T*%Qw#8VT`Rt#R}nWE}Oleud0uodi{6oXAsqExV^Jp9sSVy zFj-r#t@NMeZacT3%FFe))yJ7lI}a~YC$~|N<&~H&^02iF(6y}z!#iGHn5F8x+v-gJ z<%PN0GVi!!Ut{ay^4W#Onme~}?p!}>L2WLfiwpBh5CS?%_A{mQ*bEP?)-FKj*Bx_c>^2zy0Eggu$HJ@Tv@-`e`R5bMIo+9Y1rQ}UAAh^ z&n|Av)!f?iD>F-TnnF-y(6DD+2qiD zx!2hbN3dSYzvle8)tPhasc+ovvE%&4S^WabOHvKJwYZ+F7Z-$_G0)9#J2t<#e75G! zFZZu6OFPx9`PG@TXBo)+uAJ|eg{)Cz;(Fm;#?m?s8`E1{!8%b}P0z0`Z!l@D@=E9W z*RQVBV&`d_b?ZFsLZ3y?v*;zyFRw0KgPcHFSLxpv)mvVVEi9c~e%@r{LH?r)OXrrY zg{8F>`Z~U_wg%nNFYAZp)mps+^yZqmz`Yh`&F6$5T#Y`rw!GwDsGXfT+b=J=z#1R9 zP`esgoVnsL;5n(@xo&+6f?$TlLO3D9;|uFo&$156`!~PN{*b4tADE@qHKwFr-)0fp z;NqaZ$#khL_J=2B@7ed<#@hPAxvS}WcFH3&_w3OROYGd$xb+&;qfyPqtsDFFRjK+_ z(6;rBHBOaxW!78uF`Zr%=J4#sB12|lefiwN^Ul^DPtQ4-+^Z~vQQ3+M%Om52eVi!e z#hLYlE-kMzbEFZ%X|PD|K@!5V)>mt_@W2MdOP}X1!dLaLoo8BD!aKlp*^A2zEG}{> zTnLFzREp-snfayKx^r=6K_<-1TvST7@PWd>Iu~p64A$kPnkD=LH;76X#Pm#aE($4F z=b(9ULHNVOMQ9dXs~Lr;5X{uYjm7na6)03l{MMouH`Z(RQtgVK60R=j*=|vk1T6dL%d7JzZ`P z3VpHyrDO%QS7umgW@nb-nhOf4S5(R_(~R*gtAQC7os|U$E{(VzSy@<0@CRuUI=Oz; z3^(Fb=W2h*@I|G}*T%d@J>ZAw0bz8ldaY6`t1z9y@b<4=+K`@ESzUgPj*LO7)@rt< zR5Wkw(gtrAU!~WCa9m+9&?~yX*W!?9y11W72LxnT)@*|rZbTU)%Pu5>!Ll@4TeB!q zm-DgJ+I;Q#q%2{`L98rrjI~uRl5PESnJ3nG0~SxX5U$f@u3K5W$_-bRg@!KGxCKRY zG@Q4xv36cA(%Tnmb5xVE(A`F9?K~A)S>^$z9SfZfu!r=ND>=bJiN%1R{{Fe;J16noO6g$u$~7#_DVhk~~}U*OoV=J%!&|U0zJB ztt_&BZPRi;+|i)8Hlv5RR$Fw1r|Q>?g`N_&x&EWTq`n0cBwi-7PCTxwFO&f+UNX-x^ zW*aqUIIYgGJ~qyWPv8n3+&F>$x!Snd+LElj>y2uxt*_G8ja#v`F}sem z-MH1|nbn1vvx_xuwKUsbXC$Mt5kp*BtVPym=1qERzP4_!&#YY#QtqJ5tij8#)I2JM zq|C~VWOY8VwKaQjF1fYAdbBXJ(HvGf{Fh(mfE z+gOs7#oZR|{6?4b>uZwCAkELq!UNB0H@2mqIc(?h#RdaIsV-u<6q&qwWugeBSz;I% zmoG-Iz^YqUW>#f8c4cOL_Pl%L{K9%TA}KPx`ehuO;mYSox&I2RUz*YdJ#PCMMTk3d hJN9fWU09;+gY9$Zv+ykI+Vb*6p(y&7N@*qW{|!uD4rBlT literal 0 HcmV?d00001 diff --git a/dist/assets/coffee-4ddce41a.js b/dist/assets/coffee-4ddce41a.js new file mode 100644 index 0000000..01f21a7 --- /dev/null +++ b/dist/assets/coffee-4ddce41a.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}};export{e as conf,t as language}; diff --git a/dist/assets/csharp-b6341ee5.js b/dist/assets/csharp-b6341ee5.js new file mode 100644 index 0000000..e194c7f --- /dev/null +++ b/dist/assets/csharp-b6341ee5.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},t={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};export{e as conf,t as language}; diff --git a/dist/assets/csp-dc3d4f56.js b/dist/assets/csp-dc3d4f56.js new file mode 100644 index 0000000..2bbd730 --- /dev/null +++ b/dist/assets/csp-dc3d4f56.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t={brackets:[],autoClosingPairs:[],surroundingPairs:[]},r={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};export{e as conf,t as language}; diff --git a/dist/assets/cssMode-d9359b35.js b/dist/assets/cssMode-d9359b35.js new file mode 100644 index 0000000..2b2361b --- /dev/null +++ b/dist/assets/cssMode-d9359b35.js @@ -0,0 +1,9 @@ +var Le=Object.defineProperty;var Fe=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(Fe(e,typeof n!="symbol"?n+"":n,i),i);import{m as je}from"./index-b607d5f8.js";/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var Ne=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,Ve=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ue(n))!Oe.call(e,t)&&(i||t!=="default")&&Ne(e,t,{get:()=>n[t],enumerable:!(r=We(n,t))||r.enumerable});return e},c={};Ve(c,je);var He=2*60*1e3,ze=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>He&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var Z;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(Z||(Z={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var K;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(K||(K={}));var ee;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(ee||(ee={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var te;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(te||(te={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var _;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(_||(_={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||_.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||_.is(t.annotationId))}e.is=i})(S||(S={}));var L;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||_.is(t.annotationId))}e.is=i})(L||(L={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||L.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):_.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):_.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):_.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ie=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(_.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||_.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=_.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||_.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=_.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||_.is(i)?t=i:r=i;var a,o;if(t===void 0?a=L.create(n,r):(o=_.is(t)?t:this._changeAnnotations.manage(t),a=L.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(ae||(ae={}));var oe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(oe||(oe={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var se;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(se||(se={}));var F;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(F||(F={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(F||(F={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&F.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var ge;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ge||(ge={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var le;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,y,N){return n.call(f)==="[object Number]"&&y<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,y){return Array.isArray(f)&&f.every(y)}e.typedArray=b})(s||(s={}));var Be=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function $e(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:$e(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Qe=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ye(d.command),range:u,kind:Je(d.kind)};return d.textEdit&&(Ge(d.textEdit)?v.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:v.range=m(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function De(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Ge(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Je(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:m(e.range),text:e.newText}}function Ye(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ze=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:m(t.range),contents:et(t.contents)}})}};function Ke(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:Ke(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function et(e){if(e)return Array.isArray(e)?e.map(Re):[Re(e)]}var tt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:m(a.range),kind:rt(a.kind)}))})}};function rt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var nt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Me(t)]})}};function Me(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var it=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Me)})}},at=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>ot(a))}};function ot(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,edit:{range:m(t.range),text:t.newText}})}return{edits:n}}var st=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ut(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]}))})}};function ut(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var vt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},pt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Te(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},_t=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),De(n),Te(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Te(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ct=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,De(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},dt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ft(a.kind)),o})})}};function ft(e){switch(e){case P.Comment:return c.languages.FoldingRangeKind.Comment;case P.Imports:return c.languages.FoldingRangeKind.Imports;case P.Region:return c.languages.FoldingRangeKind.Region}}var gt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:m(a.range)}),a=a.parent;return o})})}};function mt(e){const n=[],i=[],r=new ze(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Se(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Qe(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ze(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new tt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new nt(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new it(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new st(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new at(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new ct(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new dt(t))),u.diagnostics&&i.push(new Be(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new gt(t)))}return a(),n.push(Pe(i)),Pe(n)}function Pe(e){return{dispose:()=>Se(e)}}function Se(e){for(;e.length;)e.pop().dispose()}export{Qe as CompletionAdapter,nt as DefinitionAdapter,Be as DiagnosticsAdapter,ct as DocumentColorAdapter,pt as DocumentFormattingEditProvider,tt as DocumentHighlightAdapter,vt as DocumentLinkAdapter,_t as DocumentRangeFormattingEditProvider,st as DocumentSymbolAdapter,dt as FoldingRangeAdapter,Ze as HoverAdapter,it as ReferenceAdapter,at as RenameAdapter,gt as SelectionRangeAdapter,ze as WorkerManager,A as fromPosition,De as fromRange,mt as setupMode,m as toRange,j as toTextEdit}; diff --git a/dist/assets/dart-6ea6deb2.js b/dist/assets/dart-6ea6deb2.js new file mode 100644 index 0000000..1bdf39b --- /dev/null +++ b/dist/assets/dart-6ea6deb2.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},n={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}};export{e as conf,n as language}; diff --git a/dist/assets/dockerfile-7d35970e.js b/dist/assets/dockerfile-7d35970e.js new file mode 100644 index 0000000..781ad83 --- /dev/null +++ b/dist/assets/dockerfile-7d35970e.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}};export{e as conf,o as language}; diff --git a/dist/assets/ecl-b20b9471.js b/dist/assets/ecl-b20b9471.js new file mode 100644 index 0000000..8938812 --- /dev/null +++ b/dist/assets/ecl-b20b9471.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}};export{e as conf,o as language}; diff --git a/dist/assets/elixir-1d976b08.js b/dist/assets/elixir-1d976b08.js new file mode 100644 index 0000000..b6db920 --- /dev/null +++ b/dist/assets/elixir-1d976b08.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},t={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)/,["constant","constant.punctuation"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~[A-Z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-zA-Z])\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-zA-Z])\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-zA-Z])\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-zA-Z])\"}],[/~([a-zA-Z])(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-zA-Z])@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-zA-Z])@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}};export{e as conf,t as language}; diff --git a/dist/assets/flow9-9da3058c.js b/dist/assets/flow9-9da3058c.js new file mode 100644 index 0000000..c148486 --- /dev/null +++ b/dist/assets/flow9-9da3058c.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};export{e as conf,o as language}; diff --git a/dist/assets/freemarker2-23177f0b.js b/dist/assets/freemarker2-23177f0b.js new file mode 100644 index 0000000..640ff40 --- /dev/null +++ b/dist/assets/freemarker2-23177f0b.js @@ -0,0 +1,8 @@ +import{m as f}from"./index-b607d5f8.js";/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var F=Object.defineProperty,b=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,v=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of x(n))!$.call(t,o)&&(_||o!=="default")&&F(t,o,{get:()=>n[o],enumerable:!(e=b(n,o))||e.enumerable});return t},r={};v(r,f);var s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},E={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const m=c.source.replace(/__id__/g,_);return new RegExp(m,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=i(a,t),_=i(u,t),e=i(E,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var B={conf:l(a),language:i(a,k)},C={conf:l(u),language:i(u,k)},w={conf:l(a),language:i(a,p)},T={conf:l(u),language:i(u,p)},h={conf:g(),language:A(k)},S={conf:g(),language:A(p)};export{w as TagAngleInterpolationBracket,B as TagAngleInterpolationDollar,S as TagAutoInterpolationBracket,h as TagAutoInterpolationDollar,T as TagBracketInterpolationBracket,C as TagBracketInterpolationDollar}; diff --git a/dist/assets/fsharp-ceb060a2.js b/dist/assets/fsharp-ceb060a2.js new file mode 100644 index 0000000..0186d83 --- /dev/null +++ b/dist/assets/fsharp-ceb060a2.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},n={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}};export{e as conf,n as language}; diff --git a/dist/assets/go-a122d5f1.js b/dist/assets/go-a122d5f1.js new file mode 100644 index 0000000..86a76d9 --- /dev/null +++ b/dist/assets/go-a122d5f1.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}};export{e as conf,n as language}; diff --git a/dist/assets/graphql-427c043b.js b/dist/assets/graphql-427c043b.js new file mode 100644 index 0000000..cf1617a --- /dev/null +++ b/dist/assets/graphql-427c043b.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},n={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};export{e as conf,n as language}; diff --git a/dist/assets/handlebars-72626e97.js b/dist/assets/handlebars-72626e97.js new file mode 100644 index 0000000..cbc3c85 --- /dev/null +++ b/dist/assets/handlebars-72626e97.js @@ -0,0 +1,6 @@ +import{m as i}from"./index-b607d5f8.js";/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(n,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of d(e))!c.call(n,t)&&(o||t!=="default")&&l(n,t,{get:()=>e[t],enumerable:!(a=s(e,t))||a.enumerable});return n},r={};p(r,i);var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{b as conf,u as language}; diff --git a/dist/assets/hcl-77031b33.js b/dist/assets/hcl-77031b33.js new file mode 100644 index 0000000..edb9422 --- /dev/null +++ b/dist/assets/hcl-77031b33.js @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},t={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}};export{e as conf,t as language}; diff --git a/dist/assets/html-e52438f0.js b/dist/assets/html-e52438f0.js new file mode 100644 index 0000000..2289da5 --- /dev/null +++ b/dist/assets/html-e52438f0.js @@ -0,0 +1,6 @@ +import{m as s}from"./index-b607d5f8.js";/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(r,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of m(e))!l.call(r,t)&&(a||t!=="default")&&d(r,t,{get:()=>e[t],enumerable:!(i=p(e,t))||i.enumerable});return r},n={};c(n,s);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},x={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{u as conf,x as language}; diff --git a/dist/assets/htmlMode-ca8916f3.js b/dist/assets/htmlMode-ca8916f3.js new file mode 100644 index 0000000..3e650fb --- /dev/null +++ b/dist/assets/htmlMode-ca8916f3.js @@ -0,0 +1,9 @@ +var Be=Object.defineProperty;var $e=(e,n,i)=>n in e?Be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>($e(e,typeof n!="symbol"?n+"":n,i),i);import{m as qe}from"./index-b607d5f8.js";/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var Qe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ye=Object.prototype.hasOwnProperty,Ze=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Je(n))!Ye.call(e,t)&&(i||t!=="default")&&Qe(e,t,{get:()=>n[t],enumerable:!(r=Ge(n,t))||r.enumerable});return e},c={};Ze(c,qe);var Ke=2*60*1e3,De=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>Ke&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var Z;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(Z||(Z={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var K;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(K||(K={}));var ee;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(ee||(ee={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var te;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(te||(te={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));var U;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ie=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ie(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ie,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(ae||(ae={}));var oe;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(oe||(oe={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var se;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(se||(se={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var ge;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ge||(ge={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var le;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,y,N){return n.call(f)==="[object Number]"&&y<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,y){return Array.isArray(f)&&f.every(y)}e.typedArray=b})(s||(s={}));var vt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>rt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function tt(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function rt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:tt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var nt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:ot(d.command),range:u,kind:at(d.kind)};return d.textEdit&&(it(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function it(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function at(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function ot(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Se=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:ut(t.contents)}})}};function st(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Pe(e){return typeof e=="string"?{value:e}:st(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function ut(e){if(e)return Array.isArray(e)?e.map(Pe):[Pe(e)]}var Te=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:ct(a.kind)}))})}};function ct(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var pt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Fe(t)]})}};function Fe(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var mt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Fe)})}},Le=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>dt(a))}};function dt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,edit:{range:_(t.range),text:t.newText}})}return{edits:n}}var je=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ft(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ft(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var Ne=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},We=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Ue(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},He=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Ue(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Ue(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var _t=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Oe=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=gt(a.kind)),o})})}};function gt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var Ve=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},ze=class extends nt{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function wt(e){const n=new De(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new ze(i)),c.languages.registerHoverProvider(r,new Se(i)),c.languages.registerDocumentHighlightProvider(r,new Te(i)),c.languages.registerLinkProvider(r,new Ne(i)),c.languages.registerFoldingRangeProvider(r,new Oe(i)),c.languages.registerDocumentSymbolProvider(r,new je(i)),c.languages.registerSelectionRangeProvider(r,new Ve(i)),c.languages.registerRenameProvider(r,new Le(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new We(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new He(i)))}function kt(e){const n=[],i=[],r=new De(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Xe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new ze(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Se(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Te(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new Ne(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new je(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new Le(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Oe(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new Ve(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new We(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new He(t)))}return a(),n.push(Re(i)),Re(n)}function Re(e){return{dispose:()=>Xe(e)}}function Xe(e){for(;e.length;)e.pop().dispose()}export{nt as CompletionAdapter,pt as DefinitionAdapter,vt as DiagnosticsAdapter,_t as DocumentColorAdapter,We as DocumentFormattingEditProvider,Te as DocumentHighlightAdapter,Ne as DocumentLinkAdapter,He as DocumentRangeFormattingEditProvider,je as DocumentSymbolAdapter,Oe as FoldingRangeAdapter,Se as HoverAdapter,mt as ReferenceAdapter,Le as RenameAdapter,Ve as SelectionRangeAdapter,De as WorkerManager,A as fromPosition,Me as fromRange,kt as setupMode,wt as setupMode1,_ as toRange,j as toTextEdit}; diff --git a/dist/assets/index-a1788e22.css b/dist/assets/index-a1788e22.css new file mode 100644 index 0000000..69bb329 --- /dev/null +++ b/dist/assets/index-a1788e22.css @@ -0,0 +1,5 @@ +@charset "UTF-8";*[data-v-8c2e4286]{cursor:default}#footer-container[data-v-8c2e4286]{min-width:1280px;margin-top:44px;height:52px;display:flex;justify-content:center;align-items:center;font-size:.825rem;color:var(--white-color);background:var(--main2-color)}#footer-container>div[data-v-8c2e4286]{margin:0 4px}#main-logo{width:150px;margin:8px 0 0 8px;position:absolute;z-index:1;cursor:pointer!important}.btn-custom-primary{padding:6px 12px;margin:0 8px;color:var(--main1-color);background-color:var(--main4-color);border:none;border-radius:6px}.btn-custom-primary:hover,.btn-custom-primary:active{color:var(--main1-color);background-color:var(--main4-hover-color);border:none}.btn-custom-danger{padding:6px 12px;margin:0 8px;color:var(--main1-color);background-color:var(--red-color);border:none;border-radius:6px}.btn-custom-danger:hover{border:none;background-color:var(--red-hover-color)}.btn-custom-danger:active{color:var(--main1-color);background-color:var(--red-hover-color)}*[data-v-7f80aff8]{cursor:default}#quiz-info-container[data-v-7f80aff8]{padding:8px 12px}#quiz-info[data-v-7f80aff8]{padding:4px;border-top:3px solid var(--main5-color)}#quiz-content-container[data-v-7f80aff8]{height:454px;white-space:wrap;overflow:scroll;border:3px dashed var(--main5-color)}#quiz-content-title[data-v-7f80aff8]{padding:8px;font-size:1.25rem;color:var(--main5-color)}#quiz-content[data-v-7f80aff8]{padding:8px;font-family:DNFBitBitv2;word-wrap:break-word;font-size:1.125rem;line-height:1.5rem}.room-containers[data-v-d098fca1]{width:48%;margin:8px;padding:0;color:var(--main5-color);background-color:var(--white-color);border:6px solid var(--main5-color);opacity:30%}.in-game[data-v-d098fca1]{opacity:100%}.room-container[data-v-d098fca1]{display:flex}.room-no[data-v-d098fca1]{width:24%;padding:0 4px;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;font-size:1.5rem;border-right:3px solid var(--main5-color)}.room-infos[data-v-d098fca1]{width:100%}.room-title[data-v-d098fca1]{height:48px;padding:10px;overflow:hidden;text-overflow:ellipsis;border-bottom:2px dashed var(--main5-color)}.room-info[data-v-d098fca1]{padding:0 10px 10px;display:flex;justify-content:space-between;align-items:center}.room-enter[data-v-d098fca1]{display:flex;align-items:center}.room-member-number[data-v-d098fca1]{margin:0 8px 0 4px}.see-quiz-button[data-v-d098fca1]{width:92px;margin-right:8px;border:none;background-color:var(--main4-color)}.see-quiz-button[data-v-d098fca1][data-v-d098fca1]:hover,.see-quiz-button[data-v-d098fca1][data-v-d098fca1]:active{border:none;background-color:var(--main4-hover-color)}.modal-wrap[data-v-d098fca1]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:2;background:rgba(0,0,0,.4)}.modal-container[data-v-d098fca1]{min-width:480px;width:50%;padding:20px;display:flex;flex-direction:column;position:relative;top:400px;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:10px;box-sizing:border-box}#show-quiz-modal-label[data-v-d098fca1]{margin-bottom:12px;display:flex;align-items:center;align-self:center;color:var(--main5-color)}#show-quiz-modal-house-icon[data-v-d098fca1]{margin-right:4px}#modal-close-button[data-v-d098fca1]{margin-top:12px;padding:4px 16px;align-self:center;font-size:1.25rem;border:none;background-color:var(--main4-color)}#modal-close-button[data-v-d098fca1][data-v-d098fca1]:hover{border:none;background-color:var(--main4-hover-color)}#modal-close-button[data-v-d098fca1][data-v-d098fca1]:active{border:none;background-color:var(--main5-hover-color)}.enter-button[data-v-d098fca1]{width:55px;border:none;background-color:var(--red-color)}.enter-button[data-v-d098fca1][data-v-d098fca1]:hover,.enter-button[data-v-d098fca1][data-v-d098fca1]:active{border:none;background-color:var(--red-hover-color)}.btn-custom-primary[data-v-d098fca1]{padding:6px 12px;color:var(--white-color);border:none;border-radius:6px}.button-disabled[data-v-d098fca1]{cursor:not-allowed;pointer-events:none;border:none}*[data-v-7c93cba0]{color:var(--main2-color)}.member-profile-detail-layout[data-v-7c93cba0]{padding:40px 0 20px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:var(--main5-color)}.profile-detail-containers[data-v-7c93cba0]{display:flex}.profile-image-containers[data-v-7c93cba0]{display:flex;flex-direction:column;justify-content:center;align-items:center}.profile-rank-container[data-v-7c93cba0]{display:flex;justify-content:center}.profile-image[data-v-7c93cba0]{width:200px;margin:12px}.rank-tier-icon[data-v-7c93cba0]{width:20%}.profile-name-container[data-v-7c93cba0]{display:flex;flex-direction:column;justify-content:center;align-items:center}.proflie-info-containers[data-v-7c93cba0]{width:100%;margin-top:16px;display:flex;flex-direction:column}#exp-container[data-v-7c93cba0]{width:100%;margin-bottom:12px;display:flex;align-items:center;justify-content:flex-start}#my-level[data-v-7c93cba0]{padding-right:12px;display:flex;align-items:center;white-space:nowrap}#exp-container>.progress[data-v-7c93cba0]{margin-left:4px;min-width:180px;width:75%;height:28px;position:relative;background-color:var(--main2-color)}#my-exp[data-v-7c93cba0]{position:absolute;right:0;left:0;color:var(--main5-color)}.member-tier-container[data-v-7c93cba0]{margin:12px 0 24px;display:flex}.member-tier-container[data-v-7c93cba0] :first-child{margin-right:20px}textarea[data-v-7c93cba0]{margin-right:24px;padding:12px;height:100%;border:none;resize:none;background-color:var(--main1-color);border-radius:10px;color:var(--main4-color)}textarea[data-v-7c93cba0][data-v-7c93cba0]:focus{outline:none}.btn-custom-primary[data-v-7c93cba0]{width:60px;padding:6px 12px;margin-top:8px;color:var(--main5-color);background-color:var(--main2-color);border:none;border-radius:6px}.btn-custom-primary[data-v-7c93cba0][data-v-7c93cba0]:hover,.btn-custom-primary[data-v-7c93cba0][data-v-7c93cba0]:active{color:var(--main5-color);background-color:var(--main2-hover-color);border:none}#modal-close-button[data-v-7c93cba0]{margin-top:40px}*[data-v-e18ab135]{color:var(--main5-color)}span[data-v-e18ab135]{display:inline-block}textarea[data-v-e18ab135]{resize:none;outline:none;border:none}#title-div[data-v-e18ab135]{background-color:var(--main5-color);height:50px;line-height:50px;border:1px solid var(--main5-color);border-radius:10px;margin-top:20px;width:98%;margin-left:1%;padding-left:10px}#title-input[data-v-e18ab135]{background-color:var(--main5-color);height:40px;width:100%;border:none;color:var(--main1-color);font-size:20px}#title-input[data-v-e18ab135][data-v-e18ab135]::placeholder{color:var(--main2-color)}#quiz-div[data-v-e18ab135],#footer-div[data-v-e18ab135]{display:flex;justify-content:space-between;margin-top:10px;width:98%;margin-left:1%}#tier-select-div[data-v-e18ab135]{border-left:7px solid var(--main5-color);border-right:7px solid var(--main5-color);padding-left:20px;padding-right:20px;height:450px;overflow:scroll}[data-v-e18ab135]::-webkit-scrollbar{width:0px}.tierButton[data-v-e18ab135]{display:block;text-align:center;width:200px;height:130px;background-color:var(--main1-color);border:none;border-bottom:3px solid var(--main2-color);font-size:20px}.tierButton[data-v-e18ab135][data-v-e18ab135]:hover{background-color:#0000001a;height:150px}#PLATINUM[data-v-e18ab135]{border:none;color:var(--platinum-color)}#quiz-select-div[data-v-e18ab135]{width:950px;margin-right:10px}#header-div[data-v-e18ab135]{margin-top:20px;padding-right:30px;display:flex;justify-content:space-between}.sort-obj[data-v-e18ab135],#text-obj[data-v-e18ab135]{border:3px solid var(--main5-color);border-radius:10px;width:110px;height:34px;font-size:18px;text-align:center;cursor:pointer}.sort-obj[data-v-e18ab135][data-v-e18ab135]:hover{color:var(--main5-hover-color);border-color:var(--main5-hover-color)}#text-obj[data-v-e18ab135]{margin-left:20px;border:none;font-size:20px;cursor:default}#quiz-index-div[data-v-e18ab135]{width:100%;height:50px;line-height:50px;font-size:18px;margin-left:10px;display:flex;flex-wrap:nowrap}#footer-div[data-v-e18ab135]{margin-top:30px}#option-div[data-v-e18ab135]{font-size:20px}#code-view-opt[data-v-e18ab135],#secret-opt[data-v-e18ab135]{margin-right:30px}.checkBox[data-v-e18ab135]{width:20px}#pwd-input[data-v-e18ab135]{border:2px solid var(--main5-color);border-radius:10px;margin-left:-10px;text-indent:5px;height:30px;font-size:15px}#pwd-input[data-v-e18ab135][data-v-e18ab135]::placeholder{color:var(--main2-color)}#cancle-button[data-v-e18ab135],#add-button[data-v-e18ab135]{width:90px;height:45px;font-size:18px;border:1px solid var(--main1-color);border-radius:10px;color:var(--main1-color)}#cancle-button[data-v-e18ab135]{background-color:var(--red-color)}#cancle-button[data-v-e18ab135][data-v-e18ab135]:hover{background-color:var(--red-hover-color)}#add-button[data-v-e18ab135]{background-color:var(--main4-color)}#add-button[data-v-e18ab135][data-v-e18ab135]:hover{background-color:var(--main4-hover-color)}#button-div[data-v-e18ab135]{margin-top:-10px}.quizObj[data-v-e18ab135]{height:40px;margin-top:7px;border:1px solid var(--white-color);line-height:40px;background-color:var(--white-color);padding-left:20px;border-radius:10px;display:flex;flex-wrap:nowrap;cursor:pointer}.quizObj[data-v-e18ab135][data-v-e18ab135]:hover{opacity:70%}.quizTitle[data-v-e18ab135]{width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tier-UNRANKED[data-v-e18ab135],.tier-BRONZE[data-v-e18ab135],.tier-SILVER[data-v-e18ab135],.tier-GOLD[data-v-e18ab135],.tier-PLATINUM[data-v-e18ab135]{width:15%;margin-left:10px}.submitCnt[data-v-e18ab135]{width:15%;margin-left:30px}.correctPercent[data-v-e18ab135]{width:15%;margin-left:5px}.quizSort[data-v-e18ab135]{width:25px;height:50px;border:none;background-color:var(--main1-color)}#quiz-list-box[data-v-e18ab135]{overflow:scroll;height:400px}.tier-UNRANKED[data-v-e18ab135]{color:var(--main4-color)}.tier-BRONZE[data-v-e18ab135]{color:var(--bronze-color)}.tier-SILVER[data-v-e18ab135]{color:var(--silver-color)}.tier-GOLD[data-v-e18ab135]{color:var(--gold-color)}.tier-PLATINUM[data-v-e18ab135]{color:var(--platinum-color)}#quiz-info-div[data-v-e18ab135]{width:520px;margin-top:30px;padding-top:20px;padding-left:10px;background-color:var(--main2-color);border:1px solid var(--main2-color);border-radius:10px}#quiz-content[data-v-e18ab135]{height:260px;width:490px;background-color:var(--main2-color);border:3px solid var(--main5-color);border-radius:10px;margin-top:5px;padding-top:5px;padding-left:5px}#quiz-title[data-v-e18ab135]{width:500px;overflow:hidden;text-overflow:ellipsis}#back-button[data-v-e18ab135]{width:80px;height:40px;background-color:var(--main4-color);color:var(--main1-color);border:1px solid var(--main4-color);border-radius:10px}#back-button[data-v-e18ab135][data-v-e18ab135]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}*[data-v-c1d49ee7]{color:var(--main1-color)}#header[data-v-c1d49ee7]{margin-top:20px;text-align:center;padding-right:10px}#match-text[data-v-c1d49ee7]{padding-left:15px;margin-bottom:10px;color:var(--white-color)}#matching-icon[data-v-c1d49ee7]{width:60px;height:60px}#timer-content.timer-expired[data-v-c1d49ee7]{font-size:22px;color:var(--main2-color)}#content[data-v-c1d49ee7]{margin-top:40px;display:flex;justify-content:space-between;text-align:center;margin-left:100px}#member-profile[data-v-c1d49ee7]{width:500px;line-height:80px;font-size:20px;margin-top:10px}#member-profile-img[data-v-c1d49ee7]{width:330px;height:330px}#tier-icon-div[data-v-c1d49ee7]{text-align:center}#tier-icon[data-v-c1d49ee7]{width:100px;height:100px}#tier-UNRANKED[data-v-c1d49ee7]{color:var(--main4-color)}#tier-BRONZE[data-v-c1d49ee7]{color:var(--bronze-color)}#tier-SILVER[data-v-c1d49ee7]{color:var(--silver-color)}#tier-GOLD[data-v-c1d49ee7]{color:var(--gold-color)}#tier-PLATINUM[data-v-c1d49ee7]{color:var(--platinum-color)}#footer[data-v-c1d49ee7]{text-align:center;margin-top:50px}#cancle-button[data-v-c1d49ee7]{font-size:20px;width:120px;height:55px;background-color:var(--red-color);border:1px solid var(--red-color);border-radius:10px}#cancle-button[data-v-c1d49ee7][data-v-c1d49ee7]:hover{height:60px;width:130px;margin-top:-2px;font-size:22px}*[data-v-80e6aa27]{cursor:default}#main-layout[data-v-80e6aa27]{min-width:1280px;display:flex;justify-content:space-around;overflow:visible;white-space:nowrap;color:var(--main5-color)}#main-side-layout[data-v-80e6aa27]{min-width:260px;padding:0;margin-top:80px;display:flex;flex-direction:column;align-items:center}#main-profile-containers[data-v-80e6aa27]{display:flex;flex-direction:column;align-items:center}#my-profile-container[data-v-80e6aa27]{margin-top:12px;display:flex;flex-direction:column;align-items:center}#profile-image[data-v-80e6aa27]{width:140px;height:140px;margin:12px}#profile-tier-container[data-v-80e6aa27]{margin-bottom:12px;display:flex;align-items:center}#tier-container[data-v-80e6aa27]{display:flex;align-items:flex-end}#rank-tier-help[data-v-80e6aa27]{width:1rem;height:1rem;display:inline-block;text-align:center;font-size:.625rem;cursor:pointer;color:var(--main2-color);border:1px solid var(--main2-color);border-radius:50%}.custom-tooltip[data-v-80e6aa27]{position:relative}.custom-tooltip .custom-tooltiptext[data-v-80e6aa27]{width:260px;padding:8px 12px;visibility:hidden;position:absolute;z-index:1;top:-100px;left:140%;text-align:left;border-radius:6px;color:var(--white-color);background-color:var(--black-color)}.custom-tooltip:hover .custom-tooltiptext[data-v-80e6aa27]{visibility:visible}.rank-tier-icon[data-v-80e6aa27]{width:36px;margin-right:8px}#my-rank-tier[data-v-80e6aa27]{width:36px;margin:0 4px 0 -4px}#profile-nickname[data-v-80e6aa27]{margin-left:4px;white-space:wrap;font-size:1.25rem}#rank-tier-hlep[data-v-80e6aa27]{justify-self:flex-end}#exp-container[data-v-80e6aa27]{width:100%;display:flex;align-items:center;justify-content:center}#my-level[data-v-80e6aa27]{padding-right:4px;display:flex;align-items:center;white-space:nowrap}#exp-container>.progress[data-v-80e6aa27]{margin-left:4px;min-width:172px;height:28px;position:relative;background-color:var(--main2-color)}#my-exp[data-v-80e6aa27]{position:absolute;right:0;left:0;color:var(--main5-color)}.btn-custom[data-v-80e6aa27]{padding:6px 12px;color:var(--main1-color);border-radius:6px}.btn-custom-primary[data-v-80e6aa27]{padding:6px 12px;color:var(--main1-color);background-color:var(--main4-color);border:none;border-radius:6px}.btn-custom-primary[data-v-80e6aa27][data-v-80e6aa27]:hover,.btn-custom-primary[data-v-80e6aa27][data-v-80e6aa27]:active{color:var(--main1-color);background-color:var(--main4-hover-color);border:none}.btn-custom-danger[data-v-80e6aa27]{padding:6px 12px;color:var(--main1-color);background-color:var(--red-color);border:none;border-radius:6px}.btn-custom-danger[data-v-80e6aa27][data-v-80e6aa27]:hover{border:none;background-color:var(--red-hover-color)}.btn-custom-danger[data-v-80e6aa27][data-v-80e6aa27]:active{color:var(--main1-color);background-color:var(--red-hover-color)}.btn-danger[data-v-80e6aa27]{color:var(--main1-color);background-color:var(--red-color);border:none}.btn-danger[data-v-80e6aa27][data-v-80e6aa27]:hover{border:none;background-color:var(--red-hover-color)}.btn-danger[data-v-80e6aa27][data-v-80e6aa27]:active{color:var(--main1-color);background-color:var(--red-hover-color)}#rank-matching-button[data-v-80e6aa27]{width:84%;margin-top:24px;padding:16px;font-size:1.75rem;cursor:pointer;transition:transform .5s;background-color:var(--red-color);color:var(--main1-color)}#rank-matching-button[data-v-80e6aa27][data-v-80e6aa27]:hover{transform:scale(1.2)}#rank-title-icon[data-v-80e6aa27]{transition:transform .5s}#rank-matching-button:hover #rank-title-icon[data-v-80e6aa27]{transform:rotate(180deg)}#rank-title-icon[data-v-80e6aa27]{width:2rem;cursor:pointer}#rank-container[data-v-80e6aa27]{width:100%;padding:8px;margin-top:24px;display:flex;flex-direction:column;overflow:hidden;text-align:center;color:var(--white-color);background-color:var(--main5-color);border:5px inset var(--main1-color);border-style:dotted solid;border-radius:10px}#rank-title[data-v-80e6aa27]{padding:8px;font-size:1.75rem;align-self:center;color:var(--main1-color)}#rank-list>li[data-v-80e6aa27]{padding:6px;display:flex;justify-content:flex-start;align-items:flex-start;cursor:pointer}#rank-list>li>*[data-v-80e6aa27]{margin:4px;cursor:pointer}.modal-wrap[data-v-80e6aa27]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:2;background:rgba(0,0,0,.4)}.modal-container[data-v-80e6aa27]{min-width:550px;width:50%;height:440px;padding:10px;display:flex;flex-direction:column;position:relative;top:400px;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:10px;box-sizing:border-box}.rank-number[data-v-80e6aa27],.rank-tier-icon[data-v-80e6aa27]{width:24px}ol[data-v-80e6aa27]{padding:0}li[data-v-80e6aa27]{list-style:none}.rank-nickname[data-v-80e6aa27]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--main1-color)}#room-layout[data-v-80e6aa27]{padding-top:32px}#main-navigation[data-v-80e6aa27]{margin-top:12px;display:flex;justify-content:space-between}#main-navigation-left[data-v-80e6aa27],#main-navigation-right[data-v-80e6aa27]{display:flex;align-items:center;font-size:1.5rem}#mypage-button[data-v-80e6aa27]{border:none;background-color:var(--main3-color);color:var(--main1-color)}#mypage-button[data-v-80e6aa27][data-v-80e6aa27]:hover{background-color:var(--main3-hover-color);color:var(--main1-color)}#mypage-button[data-v-80e6aa27][data-v-80e6aa27]:active{border:none}#main-navigation-left>*[data-v-80e6aa27],#main-navigation-right>*[data-v-80e6aa27]{margin:0 4px}#create-problem-button[data-v-80e6aa27]{cursor:pointer;color:var(--main1-color)!important}.main-menu-button[data-v-80e6aa27]{font-size:1.25rem}#main-room-containers[data-v-80e6aa27]{margin-top:24px;padding-top:12px;border-top:3px solid var(--main5-color)}#room-navigation[data-v-80e6aa27]{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}#all-room-title[data-v-80e6aa27]{font-size:1.5rem}#room-number-search-container[data-v-80e6aa27]{margin-right:8px;display:flex;align-items:center;background-color:var(--white-color);border:1px solid var(--main3-color);border-radius:20px}#room-number-search-input[data-v-80e6aa27]{height:2rem;text-indent:14px;cursor:auto;border:none;border-radius:20px}#room-number-search-icon[data-v-80e6aa27]{padding:8px 12px 8px 0;font-size:1.5rem;color:var(--black-color);opacity:50%;border:none}input[type=number][data-v-80e6aa27]::-webkit-outer-spin-button,input[type=number][data-v-80e6aa27]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#room-refresh-button[data-v-80e6aa27]{cursor:pointer;transition:transform .5s;background-color:transparent;border:none}#room-refresh-button[data-v-80e6aa27][data-v-80e6aa27]:hover{transform:rotate(180deg)}#room-refresh-button[data-v-80e6aa27][data-v-80e6aa27]:active{border:none}#room-refresh-button>img[data-v-80e6aa27]{cursor:pointer}#room-list-container[data-v-80e6aa27]{width:100%;display:flex;flex-direction:column}#room-list-container>nav[data-v-80e6aa27]{align-self:center}#pagenation-button-container[data-v-80e6aa27]{margin-top:12px;display:flex;justify-content:center}.pagenation-button[data-v-80e6aa27]{width:120px;margin:0 12px 0 4px;padding:8px 16px;font-size:1.125rem;transition:.25s;color:var(--white-color);background-color:var(--main4-color);border:none;border-radius:6px}.pagenation-button[data-v-80e6aa27][data-v-80e6aa27]:hover,.pagenation-button[data-v-80e6aa27][data-v-80e6aa27]:active{background-color:var(--main4-hover-color);border:none}.page-disabled[data-v-80e6aa27]{cursor:not-allowed;background-color:var(--main4-hover-color);border:none}#back-off[data-v-80e6aa27]{width:100%;height:100%;display:fixed;position:fixed;top:0%;left:0%;z-index:1;background-color:#00000080}#addRoom-popup[data-v-80e6aa27],#matching-popup[data-v-80e6aa27]{padding:10px;position:absolute;background-color:var(--main1-color);border:8px solid var(--main5-color);border-radius:10px;width:1300px;min-width:1000px;height:700px;margin-top:50px;z-index:2;overflow:auto}#matching-popup[data-v-80e6aa27]{width:1000px;background-color:var(--main5-color);border-color:var(--main1-color)}.room-member-profile-container[data-v-b8158226]{padding:4px;display:table-cell;position:relative;border:3px solid var(--main5-color);background-color:var(--white-color)}.room-member-profile[data-v-b8158226]{padding-top:24px;display:flex;flex-direction:column;align-items:center;position:relative}#room-manager-icon[data-v-b8158226]{width:24px;height:24px;position:absolute;top:0;left:0;color:var(--yellow-rank-color)}.room-resign-button[data-v-b8158226]{width:24px;height:24px;position:absolute;top:0;right:0;border:none;color:var(--white-color);background-color:var(--red-rank-color)}.profile-image[data-v-b8158226]{width:60%;margin-bottom:12px}.member-nickname[data-v-b8158226]{text-align:center}.member-info-container[data-v-b8158226]{width:100%;height:20%;display:flex;justify-content:space-evenly}.rank-tier-icon[data-v-b8158226]{width:24px}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs .view-overlays .current-line,.monaco-editor.vs-dark .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs .cursor,.monaco-editor.vs-dark .cursor{background-color:windowtext!important}.monaco-editor.vs .dnd-target,.monaco-editor.vs-dark .dnd-target{border-color:windowtext!important}.monaco-editor.vs .selected-text,.monaco-editor.vs-dark .selected-text{background-color:highlight!important}.monaco-editor.vs .view-line,.monaco-editor.vs-dark .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs .view-line span,.monaco-editor.vs-dark .view-line span{color:windowtext!important}.monaco-editor.vs .view-line span.inline-selected-text,.monaco-editor.vs-dark .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs .view-overlays,.monaco-editor.vs-dark .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs .selectionHighlight,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs .wordHighlightStrong,.monaco-editor.vs-dark .wordHighlightStrong,.monaco-editor.vs .reference-decoration,.monaco-editor.vs-dark .reference-decoration{border:2px dotted highlight!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .rangeHighlight,.monaco-editor.vs-dark .rangeHighlight{background:transparent!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs .bracket-match,.monaco-editor.vs-dark .bracket-match{border-color:windowtext!important;background:transparent!important}.monaco-editor.vs .findMatch,.monaco-editor.vs-dark .findMatch,.monaco-editor.vs .currentFindMatch,.monaco-editor.vs-dark .currentFindMatch{border:2px dotted activeborder!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .find-widget,.monaco-editor.vs-dark .find-widget{border:1px solid windowtext}.monaco-editor.vs .monaco-list .monaco-list-row,.monaco-editor.vs-dark .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs .monaco-list .monaco-list-row.focused,.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-list .monaco-list-row:hover,.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover{background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:highlight!important}.monaco-editor.vs .decorationsOverviewRuler,.monaco-editor.vs-dark .decorationsOverviewRuler{opacity:0}.monaco-editor.vs .minimap,.monaco-editor.vs-dark .minimap{display:none}.monaco-editor.vs .squiggly-d-error,.monaco-editor.vs-dark .squiggly-d-error{background:transparent!important;border-bottom:4px double #E47777}.monaco-editor.vs .squiggly-c-warning,.monaco-editor.vs-dark .squiggly-c-warning,.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs-dark .squiggly-b-info{border-bottom:4px double #71B771}.monaco-editor.vs .squiggly-a-hint,.monaco-editor.vs-dark .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs .diffOverviewRuler,.monaco-diff-editor.vs-dark .diffOverviewRuler{display:none}.monaco-editor.vs .line-insert,.monaco-editor.vs-dark .line-insert,.monaco-editor.vs .line-delete,.monaco-editor.vs-dark .line-delete{background:transparent!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs .char-insert,.monaco-editor.vs-dark .char-insert,.monaco-editor.vs .char-delete,.monaco-editor.vs-dark .char-delete{background:transparent!important}}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.mtkcontrol{color:#fff!important;background:rgb(150,0,0)!important}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}:root{--sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:transparent}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}@font-face{font-family:codicon;font-display:block;src:url(/assets/codicon-c99115f8.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view .monaco-menu{min-width:130px}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:none;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px;color:var(--vscode-inputValidation-infoForeground);background-color:var(--vscode-inputValidation-infoBackground);border:1px solid var(--vscode-inputValidation-infoBorder)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;position:absolute;left:8px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-action-bar .action-item.menu-entry .action-label,.hc-black .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover a:hover{cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-checkbox:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-checkbox,.hc-black .monaco-custom-checkbox:hover{background:none}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor.vs .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.report-object[data-v-713f7d74]{max-width:600px;margin:20px auto;padding:30px;border:1px solid #ccc;border-radius:5px;display:flex;flex-direction:column;font-size:1.5rem;color:var(--main5-color);cursor:default}.report-box[data-v-713f7d74]{margin-bottom:15px;text-align:left}.report-title[data-v-713f7d74]{display:inline;margin-bottom:5px;width:120px;padding-top:3px}#report-content[data-v-713f7d74]{font-size:1.2rem;padding:30px}select.report-title[data-v-713f7d74],textarea.report-title[data-v-713f7d74]{flex:1;padding:5px;box-sizing:border-box;margin-top:5px;font-size:1.2rem}textarea.report-title[data-v-713f7d74]{height:96px}.flex-container[data-v-713f7d74]{display:flex;gap:8px}#bt-area[data-v-713f7d74]{display:flex;justify-content:center}button[data-v-713f7d74]{border:1px solid;border-radius:10px;width:60px;height:40px;color:var(--main1-color)}#cancle-bt[data-v-713f7d74]{background-color:var(--red-color);border-color:var(--red-color);margin-right:10px}#cancle-bt[data-v-713f7d74][data-v-713f7d74]:hover{background-color:var(--red-hover-color);border-color:var(--red-hover-color)}#add-bt[data-v-713f7d74]{background-color:var(--main4-color);border-color:var(--main4-color)}#add-bt[data-v-713f7d74][data-v-713f7d74]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#timer-content.timer-expired[data-v-7980bb1f]{color:red}#code-layout[data-v-7980bb1f]{min-width:1280px;width:100vh;height:100vh;display:flex;justify-content:space-around;overflow:visible;white-space:nowrap}body.flex-container[data-v-7980bb1f]{display:inline-flex;justify-content:center;height:100vh;padding-bottom:10px}#code-side-layout[data-v-7980bb1f]{width:260px;padding:10px;margin-top:90px;margin-right:10px;display:flex;flex-direction:column;align-items:left;border:3px solid var(--main5-color);border-radius:10px}#member-title[data-v-7980bb1f]{width:200px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#problem-des-container[data-v-7980bb1f]{box-sizing:border-box;height:33vh;margin-bottom:10px;background-color:var(--white-color);border:3px solid var(--main5-color);border-radius:10px;display:flex;flex-direction:column;overflow-y:auto}#problem-des-content[data-v-7980bb1f]{box-sizing:border-box;font-size:.8rem;padding:8px}#testcase-des-container[data-v-7980bb1f]{height:33vh;margin-bottom:10px;background-color:var(--white-color);border:3px solid var(--main5-color);border-radius:10px;display:flex;flex-direction:column;overflow-y:auto}#testcase-des-content[data-v-7980bb1f]{font-size:.8rem;padding:8px}.monaco[data-v-7980bb1f]{width:760px;margin-top:90px;margin-right:10px;padding:10px;border:3px solid var(--main5-color);border-radius:10px}.button[data-v-7980bb1f]{padding:8px;font-size:1.5rem;color:var(--main1-color);background-color:var(--main4-color);border:none;border-radius:6px}.button[data-v-7980bb1f][data-v-7980bb1f]:hover{background-color:var(--main4-hover-color)}#exit[data-v-7980bb1f]{color:var(--main1-color);background-color:var(--red-color);border:none;border-radius:6px}#exit[data-v-7980bb1f][data-v-7980bb1f]:hover{background-color:var(--red-hover-color)}#relative-code-layout[data-v-7980bb1f]{width:260px;padding:10px;margin-top:90px;margin-right:10px;display:flex;flex-direction:column;align-items:left;border:3px solid var(--main5-color);border-radius:10px}.title[data-v-7980bb1f]{padding-left:10px}#relative-code-container[data-v-7980bb1f]{display:flex;flex-direction:column;justify-content:center;align-items:center}#relative-code-content[data-v-7980bb1f]{width:200px;height:18vh;margin-bottom:16px;border:3px solid var(--main5-color);border-radius:10px;display:flex;justify-content:center;align-items:center;background-color:var(--white-color)}.testcase-div[data-v-7980bb1f]{background-color:var(--main2-color);background-clip:content-box}#testcase-hr[data-v-7980bb1f]{border:0px;height:3px;background-color:var(--black-color);margin:16px 0 0}.readonlyTextarea[data-v-7980bb1f]{width:98%;height:250px;overflow:auto;cursor:default;outline:none;border:none;resize:none}[data-v-7980bb1f]::-webkit-scrollbar{width:0}#report-popup[data-v-7980bb1f]{padding:10px;position:fixed;background-color:var(--main1-color);border:8px solid var(--main5-color);border-radius:10px;width:700px;height:320px;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}#back-off[data-v-7980bb1f]{width:100%;height:100%;display:fixed;position:fixed;top:0%;left:0%;z-index:1;background-color:#00000080}pre[data-v-ffc81016]{margin:0;font-size:1.125rem;font-family:DNFBitBitv2}#room-layout[data-v-ffc81016]{color:var(--main5-color)}#room-member-layout[data-v-ffc81016]{display:flex;flex-direction:column}#room-title-containers[data-v-ffc81016]{margin-top:100px;padding:16px;display:flex;align-items:center;justify-content:space-between;border:3px solid var(--main5-color);border-bottom:none;border-radius:10px 10px 0 0;background-color:var(--white-color)}.room-title-container[data-v-ffc81016]{display:flex}.custom-tooltip[data-v-ffc81016]{position:relative;cursor:pointer}.custom-tooltip .custom-tooltiptext[data-v-ffc81016]{width:110px;padding:8px 12px;visibility:hidden;position:absolute;z-index:1;top:-10px;left:120%;text-align:center;border-radius:6px;color:var(--white-color);background-color:var(--black-color)}.custom-tooltip:hover .custom-tooltiptext[data-v-ffc81016]{visibility:visible}#code-share-icon[data-v-ffc81016]{margin-left:4px}#room-number[data-v-ffc81016]{margin-right:16px}#room-member-container[data-v-ffc81016]{display:table;border-collapse:collapse;border:3px solid var(--main5-color)}#room-member-container>*[data-v-ffc81016]{width:25%}#room-chat[data-v-ffc81016]{width:100%;height:400px;display:flex;flex-direction:column;overflow-y:scroll;background-color:var(--white-color);border-right:3px solid var(--main5-color);border-left:3px solid var(--main5-color)}#chat-title[data-v-ffc81016]{padding:8px 0 8px 12px;font-size:1.5rem}#chat-content[data-v-ffc81016]{padding:8px;display:flex;flex-direction:column;justify-content:flex-end}#room-chat-input-container[data-v-ffc81016]{padding:8px;display:flex;background-color:var(--white-color);border:3px solid var(--main5-color);border-radius:0 0 10px 10px}#chat-input[data-v-ffc81016]{width:89%;padding:8px;margin-right:8px;flex:1;color:var(--main5-color)}#chat-input-button[data-v-ffc81016]{padding:8px 16px;cursor:pointer;background-color:var(--main3-color);color:var(--white-color);border:none;border-radius:4px}#chat-input-button[data-v-ffc81016][data-v-ffc81016]:hover{background-color:var(--main3-hover-color)}#room-info-layout[data-v-ffc81016]{display:flex;flex-direction:column}#room-out-button[data-v-ffc81016]{margin-top:28px;padding:6px 12px;font-size:1.5em;align-self:flex-end;color:var(--main1-color);background-color:var(--red-color);border:none;border-radius:6px}#room-out-button[data-v-ffc81016][data-v-ffc81016]:hover{background-color:var(--red-hover-color)}#room-quiz-containers[data-v-ffc81016]{margin-top:24px;padding:12px;height:80%;background-color:var(--white-color);border:3px solid var(--main5-color);border-radius:10px}#room-quiz-title[data-v-ffc81016]{font-size:1.625rem;text-align:center;color:var(--main5-color)}#game-start-button[data-v-ffc81016]{padding:8px;margin-top:20px;font-size:2rem;color:var(--main1-color);background-color:var(--main4-color);border:none;border-radius:6px}#game-start-button[data-v-ffc81016][data-v-ffc81016]:hover{background-color:var(--main4-hover-color)}#game-start-button[data-v-ffc81016]:disabled{background-color:var(--main4-hover-color)}.room-info-code-open[data-v-ffc81016]{display:flex;align-items:center}.room-info-code-open>input[data-v-ffc81016]{margin-right:4px;border:0;width:1.125rem;height:1.125em}.room-info-code-open>label[data-v-ffc81016]{opacity:50%}.modal-wrap[data-v-ffc81016]{width:100%;height:100%;position:fixed;left:0;top:0;z-index:2;background:rgba(0,0,0,.4)}.modal-container[data-v-ffc81016]{min-width:550px;width:50%;height:440px;padding:10px;display:flex;flex-direction:column;position:relative;top:400px;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:10px;box-sizing:border-box}*[data-v-2a12f216]{cursor:default}#header[data-v-2a12f216]{text-align:center;font-size:20px}#content[data-v-2a12f216]{font-size:18px;line-height:50px}*[data-v-6e51d918]{height:100%;margin:0;color:var(--main5-color);cursor:default}#layout[data-v-6e51d918]{min-width:1024px}input[data-v-6e51d918]{border:3px solid var(--main5-color);border-radius:5px;padding-left:5px;cursor:text}input[data-v-6e51d918][data-v-6e51d918]::placeholder{color:var(--main2-color)}textarea[data-v-6e51d918]{resize:none;outline:none;background-color:var(--main1-color);border:3px solid var(--main5-color);border-radius:5px;padding-left:10px;padding-top:5px;cursor:text}textarea[data-v-6e51d918][data-v-6e51d918]::placeholder{color:var(--main2-color)}button[data-v-6e51d918]{border:1px solid;border-radius:10px;color:var(--main1-color);height:50px;font-size:18px}#header[data-v-6e51d918]{height:85px;text-align:right;line-height:120px;font-size:25px;padding-right:10px}#title[data-v-6e51d918]{height:45px;border:1px solid var(--main5-color);border-radius:10px;background-color:var(--main5-color);margin-bottom:10px;margin-top:5px}#title-obj[data-v-6e51d918]{background-color:var(--main5-color);border:none;color:var(--main1-color);padding-left:10px;width:98%;font-size:20px}.index[data-v-6e51d918]{font-size:20px;margin-bottom:10px;margin-top:5px}#content[data-v-6e51d918]{display:flex;justify-content:space-between}#testcase[data-v-6e51d918]{width:40%}#input-info[data-v-6e51d918],#input-textarea[data-v-6e51d918],#output-info[data-v-6e51d918],#output-textarea[data-v-6e51d918],#testcase-value[data-v-6e51d918],#quiz-content[data-v-6e51d918]{width:100%}.input-obj[data-v-6e51d918],.output-obj[data-v-6e51d918]{display:inline-block;width:49%;height:40px}#testcase-content[data-v-6e51d918]{height:250px;overflow:auto}#help-button[data-v-6e51d918]{width:30px;height:30px;font-size:18px;border-radius:5px;background-color:var(--main2-color);border-color:var(--main2-color);color:var(--white-color)}#help-button[data-v-6e51d918][data-v-6e51d918]:hover{background-color:var(--main2-hover-color);border-color:var(--main2-hover-color)}#quiz-info[data-v-6e51d918]{width:58%}#quiz-content[data-v-6e51d918]{height:460px}#fileUpload[data-v-6e51d918]{width:150px;background-color:var(--main3-color);border-color:var(--main3-color)}#fileUpload[data-v-6e51d918][data-v-6e51d918]:hover{background-color:var(--main3-hover-color);border-color:var(--main3-hover-color)}#fileInput[data-v-6e51d918]{display:none}#fileName[data-v-6e51d918]{line-height:50px;font-size:18px;width:350px;text-align:right;text-overflow:ellipsis;overflow:hidden;margin-left:10px}#answer-code[data-v-6e51d918],#etc-button[data-v-6e51d918]{margin-top:20px}#etc-button[data-v-6e51d918]{display:flex;justify-content:space-between;width:100%}#tc-add-button[data-v-6e51d918]{background-color:var(--main3-color);border-color:var(--main3-color);width:170px}#tc-add-button[data-v-6e51d918][data-v-6e51d918]:hover{background-color:var(--main3-hover-color);border-color:var(--main3-hover-color)}#help-tc-add[data-v-6e51d918]{background-color:var(--main2-color);color:var(--white-color);padding:6px;border:1px solid var(--main2-color);border-radius:5px}#cancle-button[data-v-6e51d918]{background-color:var(--red-color);border-color:var(--red-color);width:100px}#cancle-button[data-v-6e51d918][data-v-6e51d918]:hover{background-color:var(--red-hover-color);border-color:var(--red-hover-color)}#add-button[data-v-6e51d918]{background-color:var(--main4-color);border-color:var(--main4-color);width:100px}#add-button[data-v-6e51d918][data-v-6e51d918]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#help-popup[data-v-6e51d918]{padding:10px;position:absolute;background-color:var(--main2-color);border:8px solid var(--main2-color);color:var(--white-color);border-radius:10px;width:710px;min-width:710px;height:290px;margin-top:360px;margin-left:230px;z-index:2;overflow:auto}[data-v-6e51d918]::-webkit-scrollbar{width:0px}.popup-container[data-v-31ddcc61]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--main2-color);padding:15px;border:1px solid #ccc;border-radius:8px;box-shadow:0 2px 10px #0000001a;z-index:1000;text-align:center}body[data-v-31ddcc61]{display:flex;justify-content:center;align-items:center;height:100vh;margin:0;flex-direction:column}.icon-container[data-v-31ddcc61]{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.icon[data-v-31ddcc61]{width:80px;height:80px;border-radius:50%}.icon img[data-v-31ddcc61]{width:100%;height:100%;object-fit:contain}.close-button[data-v-31ddcc61]{margin-top:8px;padding:5px}#logoOff[data-v-370ec052]{width:100%;height:100px;z-index:1;position:absolute;background-color:var(--main1-color)}.logo[data-v-370ec052]{text-align:center;margin-top:20px;margin-bottom:10px;z-index:2;display:flex;justify-content:center}#main-logo[data-v-370ec052]{width:150px;cursor:pointer}body[data-v-370ec052]{position:relative;width:100%;height:100vh;min-height:850px;font-size:15px;font-weight:400;line-height:1.4;color:var(--main5-color)}button[data-v-370ec052]{background-color:var(--main4-color);color:var(--main1-color);cursor:pointer;border:none;box-sizing:border-box;font-weight:400;transition:.1s}button[data-v-370ec052]:focus-visible{outline:0px solid;background-color:var(--main4-color)}button[data-v-370ec052]:hover{outline:0px solid;background-color:var(--main4-hover-color)}button[data-v-370ec052]:disabled{background-color:var(--main1-color);color:var(--main2-color)}.info[data-v-370ec052]{margin-bottom:22px}.box[data-v-370ec052]{width:100%;height:50px;box-sizing:border-box;padding:5px 0 5px 15px;border-radius:4px;border:1px solid var(--main1-color);color:var(--main5-color);font-weight:400;font-size:.9rem}.box[data-v-370ec052]::placeholder{color:var(--main2-color)}.box[data-v-370ec052]:focus{outline:1px solid var(--main2-color)}.info .error-msg[data-v-370ec052]{position:absolute;font-size:11px;color:var(--red-color);margin:0 0 0 10px}.info .error-msg.success[data-v-370ec052]{color:var(--green-color)}select.box[data-v-370ec052]{margin-left:5px;padding-left:10px;color:var(--main1-color)}option[data-v-370ec052]{font-size:16px}.signup[data-v-370ec052]{position:relative;justify-content:center;align-items:center;display:flex;flex-direction:column;width:450px;height:980px;min-width:450px;margin:auto;border:1px solid var(--main2-color);border-radius:40px;box-shadow:1px 1px 12px var(--main2-color);box-sizing:border-box;z-index:3;top:100px}.content[data-v-370ec052]{width:80%;flex-direction:column;align-items:center}header[data-v-370ec052]{width:100%}header h2[data-v-370ec052]{display:inline;font-size:25px;font-weight:700;margin-bottom:3px}section[data-v-370ec052]{margin:50px 0 25px}.info#info-id #id-input[data-v-370ec052]{position:relative}.info#info-id button[data-v-370ec052]{position:absolute;width:90px;height:40px;top:15px;bottom:0;right:5px;margin:auto 0;border-radius:3px;box-shadow:1px 1px 12px var(--main2-color);font-size:14px}.info#info-id #nick-check[data-v-370ec052]{position:absolute;width:90px;height:40px;top:0;bottom:0;right:5px;margin:auto 0;border-radius:3px;box-shadow:1px 1px 12px var(--main2-color);font-size:14px}.info#info-introduction .box[data-v-370ec052]{height:70px}#privacy-agreement[data-v-370ec052]{border:1px solid var(--main5-color);border-radius:4px;text-align:center;padding:8px;margin-bottom:0;font-size:14px}#info-agree[data-v-370ec052]{align-items:center;text-align:center;padding-top:5px}button#submit[data-v-370ec052]{width:100%;height:45px;border-radius:3px;box-shadow:2px 2px 4px var(--main4-color);font-size:15px}#result-fail[data-v-370ec052]{width:100%;height:15px;margin-bottom:5px;text-align:center;color:var(--red-color);font-size:13px}.exist[data-v-370ec052]{font-size:13px;margin-top:10px;text-align:center}.exist a[data-v-370ec052]{margin-left:3px;text-decoration:none;font-weight:700;color:var(--main4-color)!important;transition:.1s}.exist a[data-v-370ec052]:hover{text-decoration:none;color:var(--main4-hover-color)!important}.profile-icon[data-v-370ec052]{width:180%;height:100%;object-fit:contain;margin:0 auto}#profile-input[data-v-370ec052]{width:200px;height:200px;border-radius:50%}#profile-input button[data-v-370ec052]{position:relative;bottom:15px;left:75px;float:right;width:200px;border-radius:3px;box-shadow:2px 2px 4px var(--main4-color)}#info-profileImg[data-v-370ec052]{margin-bottom:10px}section[data-v-370ec052]{margin:10px 0 25px}@media screen and (min-width: 500px) and (max-height: 850px){body[data-v-370ec052]{min-height:700px}.signup[data-v-370ec052]{height:900px}.content[data-v-370ec052]{width:360px;margin-top:30px;margin-bottom:10px}section[data-v-370ec052]{margin:20px 0 0}.info[data-v-370ec052]{margin-bottom:18px}}@media screen and (max-width: 500px){body[data-v-370ec052]{min-height:780px;background-color:var(--white-color)}.signup[data-v-370ec052]{width:100vw;height:700px;border:0px;box-shadow:none}.content[data-v-370ec052]{width:85vw;min-width:380px}}.divImg>img[data-v-370ec052]{width:100px}#logoOff[data-v-7afde021]{width:100%;height:100px;z-index:1;position:absolute;background-color:var(--main1-color)}.video-background[data-v-7afde021]{z-index:2}.action-buttons[data-v-7afde021]{display:flex;justify-content:space-around;margin-left:10px;margin-right:10px}body[data-v-7afde021],html[data-v-7afde021]{height:100%;margin:0;overflow:scroll}.video-background[data-v-7afde021]{position:fixed;top:0;left:0;width:100%;height:100%;overflow:scroll}#myVideo[data-v-7afde021]{position:absolute;right:0;bottom:0;width:100%;height:100%;object-fit:cover}.login[data-v-7afde021]{position:fixed;top:75%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#fff;display:flex;align-items:center;justify-content:space-between;cursor:default}input[data-v-7afde021]{height:20px}.join[data-v-7afde021],.start[data-v-7afde021]{width:100px;height:100px;margin-top:5px;cursor:pointer}.join[data-v-7afde021]:hover,.start[data-v-7afde021]:hover{opacity:.85}.join[data-v-7afde021]:hover{content:url(images/login/join.gif)}.start[data-v-7afde021]:hover{content:url(images/login/start.gif)}span[data-v-7afde021]{position:relative}.quiz-object[data-v-0ce67137]{border:3px solid var(--white-color);border-radius:10px;padding:5px;margin:5px;height:9%;background-color:var(--white-color);vertical-align:center}.quiz-no[data-v-0ce67137]{width:5%;display:inline-block;color:var(--main5-color);font-size:13px}.quiz-tier-UNRANKED[data-v-0ce67137],.quiz-tier-BRONZE[data-v-0ce67137],.quiz-tier-SILVER[data-v-0ce67137],.quiz-tier-GOLD[data-v-0ce67137],.quiz-tier-PLATINUM[data-v-0ce67137]{width:15%;display:inline-block;color:var(--main4-color)}.quiz-tier-BRONZE[data-v-0ce67137]{color:#846353}.quiz-tier-SILVER[data-v-0ce67137]{color:#7382a3}.quiz-tier-GOLD[data-v-0ce67137]{color:#cc9336}.quiz-tier-PLATINUM[data-v-0ce67137]{color:#34a8b1}.quiz-title[data-v-0ce67137]{width:50%;display:inline-block}.quiz-correct[data-v-0ce67137]{width:20%;display:inline-block}.quiz-info-bt[data-v-0ce67137]{width:10%;background-color:var(--main4-color);border:2px solid var(--main4-color);border-radius:5px;color:var(--white-color)}.quiz-info-bt[data-v-0ce67137][data-v-0ce67137]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#layout[data-v-6945e7c0]{width:100%;height:100%;text-align:center}#quiz-header[data-v-6945e7c0]{display:flex;justify-content:space-between}#quiz-filter[data-v-6945e7c0]{margin-left:10px;margin-top:8px}.quiz-opt[data-v-6945e7c0]{padding:4px;border:none;background-color:var(--main1-color);color:var(--main5-color)}.quiz-opt[data-v-6945e7c0][data-v-6945e7c0]:hover{background-color:var(--main2-color);border-radius:5px}#quiz-urk[data-v-6945e7c0]{opacity:50%}#quiz-search-box[data-v-6945e7c0]{margin-right:8px;display:flex;align-items:center;border:3px solid var(--main5-color);border-radius:20px;width:20%}#search-text[data-v-6945e7c0]{width:100%;height:1.5rem;font-size:.9rem;text-indent:14px;border:none;border-radius:20px;background-color:var(--main1-color);color:var(--main5-color)}#search-text[data-v-6945e7c0][data-v-6945e7c0]::placeholder{color:var(--main4-hover-color)}#search-icon[data-v-6945e7c0]{padding:8px 12px 8px 0;font-size:1rem;cursor:pointer;color:var(--main5-color);border:none}input[type=number][data-v-6945e7c0]::-webkit-outer-spin-button,input[type=number][data-v-6945e7c0]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.quiz-content[data-v-6945e7c0]{width:100%;height:77%;margin-top:25px}.quiz-object[data-v-6945e7c0]{border:3px solid var(--white-color);border-radius:10px;padding:5px;margin:5px;height:9%;background-color:var(--white-color);vertical-align:center}.quiz-no[data-v-6945e7c0]{width:5%;display:inline-block;color:var(--main5-color);font-size:13px}.quiz-tier-UNRANKED[data-v-6945e7c0],.quiz-tier-BRONZE[data-v-6945e7c0],.quiz-tier-SILVER[data-v-6945e7c0],.quiz-tier-GOLD[data-v-6945e7c0],.quiz-tier-PLATINUM[data-v-6945e7c0]{width:15%;display:inline-block;color:var(--main4-color)}.quiz-tier-BRONZE[data-v-6945e7c0]{color:#846353}.quiz-tier-SILVER[data-v-6945e7c0]{color:#7382a3}.quiz-tier-GOLD[data-v-6945e7c0]{color:#cc9336}.quiz-tier-PLATINUM[data-v-6945e7c0]{color:#34a8b1}.quiz-title[data-v-6945e7c0]{width:50%;display:inline-block}.quiz-correct[data-v-6945e7c0]{width:20%;display:inline-block}.quiz-info-bt[data-v-6945e7c0]{width:10%;background-color:var(--main4-color);border:2px solid var(--main4-color);border-radius:5px;color:var(--white-color)}.quiz-info-bt[data-v-6945e7c0][data-v-6945e7c0]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#quiz-page[data-v-6945e7c0]{margin-top:22px}.page-bt[data-v-6945e7c0],.page-bt-num[data-v-6945e7c0]{padding:5px 5px 27px;width:35px;height:35px;background-color:var(--main1-color);opacity:50%;border:none;color:var(--main5-color)}.page-bt[data-v-6945e7c0][data-v-6945e7c0]:hover,.page-bt-num[data-v-6945e7c0][data-v-6945e7c0]:hover{opacity:100%}.page-bt-num.current-page[data-v-6945e7c0]{opacity:100%;cursor:default}.report-object[data-v-63b50e30]{max-width:600px;margin:20px auto;padding:30px;border:1px solid #ccc;border-radius:5px;display:flex;flex-direction:column;font-size:1.5rem;color:var(--main5-color);cursor:default}.report-box[data-v-63b50e30]{margin-bottom:15px;text-align:left}.report-title[data-v-63b50e30]{display:inline;margin-bottom:5px;width:120px;padding-top:3px}#report-content[data-v-63b50e30]{font-size:1.2rem;padding:30px}select.report-title[data-v-63b50e30],textarea.report-title[data-v-63b50e30]{flex:1;padding:5px;box-sizing:border-box;margin-top:5px;font-size:1.2rem}textarea.report-title[data-v-63b50e30]{height:100px}textarea.report-title#report-answer[data-v-63b50e30]{height:68px}.flex-container[data-v-63b50e30]{display:flex;gap:8px}#bt-area[data-v-63b50e30]{display:flex;justify-content:center}button[data-v-63b50e30]{border:1px solid;border-radius:10px;width:60px;height:40px;color:var(--main1-color)}#edit-bt[data-v-63b50e30]{background-color:var(--green-color);border-color:var(--green-color);font-size:1.3rem}#edit-bt[data-v-63b50e30][data-v-63b50e30]:hover{background-color:var(--green-hover-color);border-color:var(--green-hover-color)}#delete-bt[data-v-63b50e30]{background-color:var(--red-color);border-color:var(--red-color);margin-left:10px;margin-right:10px;font-size:1.3rem}#delete-bt[data-v-63b50e30][data-v-63b50e30]:hover{background-color:var(--red-hover-color);border-color:var(--red-hover-color)}#cancle-bt[data-v-63b50e30]{background-color:var(--main4-color);border-color:var(--main4-color);font-size:1.3rem}#cancle-bt[data-v-63b50e30][data-v-63b50e30]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#layout[data-v-3d04d5e4]{width:100%;height:100%;text-align:center}#report-header[data-v-3d04d5e4]{display:flex;justify-content:space-between}#report-filter[data-v-3d04d5e4]{margin-left:10px;margin-top:8px}.report-opt[data-v-3d04d5e4]{padding:4px;border:none;background-color:var(--main1-color);color:var(--main5-color)}.report-opt[data-v-3d04d5e4][data-v-3d04d5e4]:hover{background-color:var(--main2-color);border-radius:5px}#report-upc[data-v-3d04d5e4]{opacity:50%}#report-search-box[data-v-3d04d5e4]{margin-right:8px;display:flex;align-items:center;border:3px solid var(--main5-color);border-radius:20px;width:20%}#search-text[data-v-3d04d5e4]{width:100%;height:1.5rem;font-size:.9rem;text-indent:14px;border:none;border-radius:20px;background-color:var(--main1-color);color:var(--main5-color)}#search-text[data-v-3d04d5e4][data-v-3d04d5e4]::placeholder{color:var(--main4-hover-color)}#search-icon[data-v-3d04d5e4]{padding:8px 12px 8px 0;font-size:1rem;cursor:pointer;color:var(--main5-color);border:none}input[type=number][data-v-3d04d5e4]::-webkit-outer-spin-button,input[type=number][data-v-3d04d5e4]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.report-content[data-v-3d04d5e4]{width:100%;height:77%;margin-top:25px}.report-object[data-v-3d04d5e4]{border:3px solid var(--white-color);border-radius:10px;padding:5px;margin:5px;height:9%;background-color:var(--white-color);vertical-align:center}.report-no[data-v-3d04d5e4]{width:5%;display:inline-block;color:var(--main5-color);font-size:13px}.report-Type[data-v-3d04d5e4]{width:50%;display:inline-block}.report-memberName[data-v-3d04d5e4]{width:15%;display:inline-block;color:var(--main4-color)}.report-Date[data-v-3d04d5e4]{width:20%;display:inline-block}.report-info-bt[data-v-3d04d5e4]{width:10%;background-color:var(--main4-color);border:2px solid var(--main4-color);border-radius:5px;color:var(--white-color)}.report-info-bt[data-v-3d04d5e4][data-v-3d04d5e4]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#report-page[data-v-3d04d5e4]{margin-top:22px}.page-bt[data-v-3d04d5e4],.page-bt-num[data-v-3d04d5e4]{padding:5px 5px 27px;width:35px;height:35px;background-color:var(--main1-color);opacity:50%;border:none;color:var(--main5-color)}.page-bt[data-v-3d04d5e4][data-v-3d04d5e4]:hover,.page-bt-num[data-v-3d04d5e4][data-v-3d04d5e4]:hover{opacity:100%}.page-bt-num.current-page[data-v-3d04d5e4]{opacity:100%;cursor:default}#report-popup[data-v-3d04d5e4]{padding:10px;position:fixed;background-color:var(--main1-color);border:8px solid var(--main5-color);border-radius:10px;width:700px;height:420px;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}#back-off[data-v-3d04d5e4]{width:100%;height:100%;display:fixed;position:fixed;top:0%;left:0%;z-index:1;background-color:#00000080}*[data-v-71561afd]{color:var(--main5-color);width:100%;height:100%;cursor:default}.header[data-v-71561afd]{text-align:center;display:flex;align-items:center;justify-content:space-between}.header-text[data-v-71561afd]{font-size:25px;text-align:right;width:100%;margin-right:20px;padding-top:45px}.content-box[data-v-71561afd]{display:flex;justify-content:space-between;border:5px solid var(--main5-color);width:98%;margin-left:1%;margin-top:20px;border-radius:18px}.index-bar[data-v-71561afd]{background-color:var(--main5-color);width:20%;height:650px;padding-right:5px}.quiz-page[data-v-71561afd],.report-page[data-v-71561afd]{color:var(--main1-color);font-size:20px;text-align:center;height:50px;line-height:50px;margin-top:40px;cursor:pointer}.quiz-page[data-v-71561afd][data-v-71561afd]:hover,.report-page[data-v-71561afd][data-v-71561afd]:hover{font-size:21px}.quiz-page[data-v-71561afd]{background-color:var(--main1-color);color:var(--main5-color)}.report-page[data-v-71561afd]{margin-top:20px}.home-bt[data-v-71561afd]{width:40px;height:40px;margin-left:10%;margin-top:430px;cursor:pointer}.home-bt[data-v-71561afd][data-v-71561afd]:hover{width:42px;height:42px;margin-left:9.5%;margin-top:429px}.content-area[data-v-71561afd]{height:650px}.view-area[data-v-71561afd]{padding:2%}.index-name[data-v-bd3ecd50]{font-size:25px}textarea[data-v-bd3ecd50]{width:100%;height:30%;padding:5px;resize:none}#bt-area[data-v-bd3ecd50]{display:flex;justify-content:space-between}button[data-v-bd3ecd50]{border:1px solid;border-radius:10px;width:60px;height:40px;margin-top:10px;color:var(--main1-color)}#cancle-bt[data-v-bd3ecd50]{background-color:var(--red-color);border-color:var(--red-color);margin-right:10px}#cancle-bt[data-v-bd3ecd50][data-v-bd3ecd50]:hover{background-color:var(--red-hover-color);border-color:var(--red-hover-color)}#add-bt[data-v-bd3ecd50]{background-color:var(--main4-color);border-color:var(--main4-color)}#add-bt[data-v-bd3ecd50][data-v-bd3ecd50]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}*[data-v-179eb3cf]{color:var(--main5-color);cursor:default}button[data-v-179eb3cf]{font-size:18px}input[data-v-179eb3cf],textarea[data-v-179eb3cf]{cursor:text;color:var(--main3-hover-color);padding:5px;resize:none}input[data-v-179eb3cf][data-v-179eb3cf]:focus,textarea[data-v-179eb3cf][data-v-179eb3cf]:focus{outline:none}#header[data-v-179eb3cf]{display:flex;justify-content:space-between}#back-button[data-v-179eb3cf],#not-button[data-v-179eb3cf]{width:100px;height:45px;margin-top:30px;margin-right:20px;background-color:var(--main2-color);border:2px solid var(--main2-color);border-radius:10px;color:var(--main1-color)}#back-button[data-v-179eb3cf][data-v-179eb3cf]:hover,#not-button[data-v-179eb3cf][data-v-179eb3cf]:hover{background-color:var(--main2-hover-color);border-color:var(--main2-hover-color)}#not-button[data-v-179eb3cf]{opacity:0%;cursor:default}#title[data-v-179eb3cf]{margin-top:15px;width:100%;background-color:var(--main5-color);height:50px;border:5px solid var(--main5-color);border-radius:10px;padding-left:10px}#quiz-title-div[data-v-179eb3cf],#quiz-title-input[data-v-179eb3cf]{height:100%;width:99%;background-color:var(--main5-color);color:var(--main1-color);font-size:20px}#quiz-title-input[data-v-179eb3cf]{color:var(--main2-color)}#quiz-title-div[data-v-179eb3cf]{line-height:200%}#quiz-box[data-v-179eb3cf]{display:flex;justify-content:space-between}#info[data-v-179eb3cf]{margin-top:15px;padding:15px;width:35%}.info-text[data-v-179eb3cf],.tc-info-text[data-v-179eb3cf]{display:inline-block;width:100px}.info-div[data-v-179eb3cf],.tc-info-div[data-v-179eb3cf]{height:30px;line-height:30px}.info-span[data-v-179eb3cf],.tc-info-span[data-v-179eb3cf]{display:inline-block;height:30px;width:260px;text-align:center}#quiz-tier-input[data-v-179eb3cf]{text-align:center;padding:0!important;width:150px;margin-left:55px}#quiz-tier-UNRANKED[data-v-179eb3cf]{color:var(--main4-color)}#quiz-tier-BRONZE[data-v-179eb3cf]{color:#846353}#quiz-tier-SILVER[data-v-179eb3cf]{color:#7382a3}#quiz-tier-GOLD[data-v-179eb3cf]{color:#cc9336}#quiz-tier-PLATINUM[data-v-179eb3cf]{color:#34a8b1}.index-name[data-v-179eb3cf]{border:3px solid var(--main5-color);border-radius:10px;font-size:20px;padding-left:10px;margin-bottom:10px;width:97%}#testcase-info[data-v-179eb3cf],#testcase[data-v-179eb3cf]{margin-top:30px}#textcase-box[data-v-179eb3cf]{height:300px;overflow:auto}#content[data-v-179eb3cf]{width:800px;margin-top:15px;padding:15px}#quiz-content[data-v-179eb3cf]{width:98%;height:250px;line-height:30px;overflow:auto;margin-bottom:15px}#quiz-input[data-v-179eb3cf],#quiz-output[data-v-179eb3cf]{width:98%;height:50px;line-height:30px;overflow:auto;margin-bottom:15px}.testcase-no[data-v-179eb3cf]{height:40px}#button-area[data-v-179eb3cf]{display:flex;justify-content:space-between;margin-top:15px}#code-button[data-v-179eb3cf],#tc-button[data-v-179eb3cf]{width:150px;height:50px;background-color:var(--main3-color);border:2px solid var(--main3-color);border-radius:10px;color:var(--main1-color)}#code-button[data-v-179eb3cf][data-v-179eb3cf]:hover,#tc-button[data-v-179eb3cf][data-v-179eb3cf]:hover{background-color:var(--main3-hover-color);border:2px solid var(--main3-hover-color)}#tc-button[data-v-179eb3cf]{width:200px;margin-right:10px}#modify-button[data-v-179eb3cf],#delete-button[data-v-179eb3cf],#save-button[data-v-179eb3cf],#cancle-button[data-v-179eb3cf]{width:100px;height:50px;color:var(--main1-color);border-radius:10px}#modify-button[data-v-179eb3cf],#save-button[data-v-179eb3cf]{background-color:var(--main4-color);border:2px solid var(--main4-color)}#modify-button[data-v-179eb3cf][data-v-179eb3cf]:hover,#save-button[data-v-179eb3cf][data-v-179eb3cf]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#delete-button[data-v-179eb3cf],#cancle-button[data-v-179eb3cf],.delete-tc-button[data-v-179eb3cf]{background-color:var(--red-color);border:2px solid var(--red-color)}#delete-button[data-v-179eb3cf][data-v-179eb3cf]:hover,#cancle-button[data-v-179eb3cf][data-v-179eb3cf]:hover,.delete-tc-button[data-v-179eb3cf][data-v-179eb3cf]:hover{background-color:var(--red-hover-color);border-color:var(--red-hover-color)}.delete-tc-button[data-v-179eb3cf]{font-size:15px;color:var(--main1-color);border-radius:7px;width:40px;height:30px}#testcase-popup[data-v-179eb3cf]{padding:10px;position:absolute;background-color:var(--main1-color);border:8px solid var(--main5-color);border-radius:10px;width:700px;height:400px;margin-top:5%;margin-left:17%;z-index:2}#back-off[data-v-179eb3cf]{width:100%;height:100%;display:fixed;position:fixed;top:0%;left:0%;z-index:1;background-color:#00000080}.readonlyTextarea[data-v-179eb3cf],.readonlyTextareaTc[data-v-179eb3cf]{background-color:var(--main1-color);color:var(--main5-color);border:none;cursor:default}.testcase-div[data-v-179eb3cf]{display:flex;justify-content:space-between;height:auto}.tc-text[data-v-179eb3cf]{line-height:33px}.readonlyTextareaTc[data-v-179eb3cf]{width:350px}.testcase-box-for[data-v-179eb3cf]{height:auto}*[data-v-f17b6edc]{color:var(--main5-color);cursor:default}#layout[data-v-f17b6edc]{padding-top:80px}button[data-v-f17b6edc]{font-size:18px}hr[data-v-f17b6edc]{width:470px}input[data-v-f17b6edc],textarea[data-v-f17b6edc]{cursor:text;color:var(--main3-hover-color);padding:5px;resize:none}input[data-v-f17b6edc][data-v-f17b6edc]:focus,textarea[data-v-f17b6edc][data-v-f17b6edc]:focus{outline:none}#quiz-info[data-v-f17b6edc]{margin-bottom:40px}#title[data-v-f17b6edc]{margin-top:15px;width:100%;background-color:var(--main5-color);height:50px;border:5px solid var(--main5-color);border-radius:10px;padding-left:10px}#quiz-title-div[data-v-f17b6edc],#quiz-title-input[data-v-f17b6edc]{height:100%;width:99%;background-color:var(--main5-color);color:var(--main1-color);font-size:20px}#quiz-title-input[data-v-f17b6edc]{color:var(--main2-color)}#quiz-title-div[data-v-f17b6edc]{line-height:200%}#quiz-box[data-v-f17b6edc]{display:flex;justify-content:space-between}#info[data-v-f17b6edc]{margin-top:15px;padding:15px;width:20%}.info-text[data-v-f17b6edc]{display:inline-block;width:85px;font-size:15px}.info-div[data-v-f17b6edc]{height:30px;line-height:30px}.info-span[data-v-f17b6edc]{display:inline-block;height:30px;width:130px;text-align:center;font-size:15px}#quiz-tier-input[data-v-f17b6edc]{text-align:center;padding:0!important;width:150px;margin-left:55px}#quiz-tier-UNRANKED[data-v-f17b6edc]{color:var(--main4-color)}#quiz-tier-BRONZE[data-v-f17b6edc]{color:#846353}#quiz-tier-SILVER[data-v-f17b6edc]{color:#7382a3}#quiz-tier-GOLD[data-v-f17b6edc]{color:#cc9336}#quiz-tier-PLATINUM[data-v-f17b6edc]{color:#34a8b1}.index-name[data-v-f17b6edc]{border:3px solid var(--main5-color);border-radius:10px;font-size:20px;padding-left:10px;margin-bottom:10px;width:97%}#content[data-v-f17b6edc],#code-area[data-v-f17b6edc]{width:40%;margin-top:15px;padding:15px}#code-area[data-v-f17b6edc]{width:40%}#quiz-content[data-v-f17b6edc],#quiz-code[data-v-f17b6edc]{width:98%;height:480px;line-height:30px;overflow:auto;margin-bottom:15px}#quiz-content[data-v-f17b6edc]{height:250px}#quiz-input[data-v-f17b6edc],#quiz-output[data-v-f17b6edc]{width:98%;height:130px;line-height:30px;overflow:auto;margin-bottom:15px}#button-area[data-v-f17b6edc]{display:flex;justify-content:space-between;margin-top:15px}#rpt-button[data-v-f17b6edc],#close-button[data-v-f17b6edc]{height:50px;color:var(--main1-color);border-radius:10px}#rpt-button[data-v-f17b6edc]{width:150px;background-color:var(--red-color);border:2px solid var(--red-color)}#rpt-button[data-v-f17b6edc][data-v-f17b6edc]:hover{background-color:var(--red-hover-color);border-color:var(--red-hover-color)}#close-button[data-v-f17b6edc]{width:100px;background-color:var(--main4-color);border:2px solid var(--main4-color)}#close-button[data-v-f17b6edc][data-v-f17b6edc]:hover{background-color:var(--main4-hover-color);border-color:var(--main4-hover-color)}#testcase-popup[data-v-f17b6edc]{padding:10px;position:absolute;background-color:var(--main1-color);border:8px solid var(--main5-color);border-radius:10px;width:700px;height:400px;margin-top:5%;margin-left:17%;z-index:2}#back-off[data-v-f17b6edc]{width:100%;height:100%;display:fixed;position:fixed;top:0%;left:0%;z-index:1;background-color:#00000080}.readonlyTextarea[data-v-f17b6edc]{background-color:var(--main1-color);color:var(--main5-color);border:none;cursor:default}#report-id[data-v-f17b6edc]{font-size:14px}.monaco-editor-vue3{overflow:hidden;margin-top:5px}#outputDiv{background-color:var(--white-color);height:200px;border:3px solid var(--main5-color);border-radius:10px;padding:8px;font-size:.9rem;display:flex;flex-direction:column;overflow-y:auto}.button{padding:8px;margin:5px;font-size:1rem;color:var(--main1-color);background-color:var(--main4-color);border:none;border-radius:6px}.button:hover{background-color:var(--main4-hover-color)}#submit{color:var(--main1-color);background-color:var(--red-color);border:none;border-radius:6px}#submit:hover{background-color:var(--red-hover-color)}#timer-content.timer-expired[data-v-f843a676]{color:red}#code-layout[data-v-f843a676]{min-width:1280px;width:100vh;height:max-content;display:flex;justify-content:space-around;overflow:visible;white-space:nowrap}body.flex-container[data-v-f843a676]{display:inline-flex;justify-content:center;height:100vh;padding-bottom:10px}#code-side-layout[data-v-f843a676]{width:260px;padding:10px;margin-top:90px;margin-right:10px;display:flex;flex-direction:column;align-items:left;border:3px solid var(--main5-color);border-radius:10px}#member-title[data-v-f843a676]{width:200px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#problem-des-container[data-v-f843a676]{box-sizing:border-box;height:33vh;margin-bottom:10px;background-color:var(--white-color);border:3px solid var(--main5-color);border-radius:10px;display:flex;flex-direction:column;overflow-y:auto}#problem-des-content[data-v-f843a676]{box-sizing:border-box;font-size:.8rem;padding:8px}#testcase-des-container[data-v-f843a676]{height:33vh;margin-bottom:10px;background-color:var(--white-color);border:3px solid var(--main5-color);border-radius:10px;display:flex;flex-direction:column;overflow-y:auto}#testcase-des-content[data-v-f843a676]{font-size:.8rem;padding:8px}.monaco[data-v-f843a676]{width:760px;margin-top:90px;margin-right:10px;border:3px solid var(--main5-color);border-radius:10px}.button[data-v-f843a676]{padding:8px;font-size:1.5rem;color:var(--main1-color);background-color:var(--main4-color);border:none;border-radius:6px}.button[data-v-f843a676][data-v-f843a676]:hover{background-color:var(--main4-hover-color)}#exit[data-v-f843a676]{color:var(--main1-color);background-color:var(--red-color);border:none;border-radius:6px}#exit[data-v-f843a676][data-v-f843a676]:hover{background-color:var(--red-hover-color)}#relative-code-layout[data-v-f843a676]{width:260px;padding:10px;margin-top:90px;margin-right:10px;display:flex;flex-direction:column;align-items:left;border:3px solid var(--main5-color);border-radius:10px}#timer-title[data-v-f843a676]{margin-top:55px}.title[data-v-f843a676]{padding-left:10px}#relative-code-container[data-v-f843a676]{display:flex;flex-direction:column;justify-content:center;align-items:center}#relative-code-content[data-v-f843a676]{width:200px;height:40vh;margin-bottom:16px;border:3px solid var(--main5-color);border-radius:10px;display:flex;justify-content:center;align-items:center;background-color:var(--white-color)}.testcase-div[data-v-f843a676]{background-color:var(--main2-color);background-clip:content-box}#testcase-hr[data-v-f843a676]{border:0px;height:3px;background-color:var(--black-color);margin:16px 0 0}.readonlyTextarea[data-v-f843a676]{width:98%;height:250px;overflow:auto;cursor:default;outline:none;border:none;resize:none}[data-v-f843a676]::-webkit-scrollbar{width:0}#layout[data-v-cde024ed]{padding:20px}#code-content[data-v-cde024ed]{height:100%;overflow-y:scroll;margin-left:5px}#announcement[data-v-cde024ed]{font-size:20px;margin-bottom:10px}.code-obj-1[data-v-cde024ed],.code-obj-0[data-v-cde024ed]{width:99%;height:55px;padding:0 20px;border:1px solid var(--main1-color);border-radius:10px;display:flex;justify-content:space-evenly}.code-obj-1[data-v-cde024ed]{border:5px double var(--main1-color);background:linear-gradient(40deg,var(--main4-hover-color) 5%,var(--main4-color) 5%,var(--main4-color) 20%,var(--main4-hover-color) 20%,var(--main4-hover-color) 40%,var(--main4-color) 40%,var(--main4-color) 60%,var(--main4-hover-color) 60%,var(--main4-hover-color) 80%,var(--main4-hover-color) 80%,var(--main4-color) 80%,var(--main4-color) 95%,var(--main4-hover-color) 95%)}.code-obj-0[data-v-cde024ed]{border:5px double var(--main1-color);background:linear-gradient(40deg,var(--red-hover-color) 5%,var(--red-color) 5%,var(--red-color) 20%,var(--red-hover-color) 20%,var(--red-hover-color) 40%,var(--red-color) 40%,var(--red-color) 60%,var(--red-hover-color) 60%,var(--red-hover-color) 80%,var(--red-hover-color) 80%,var(--red-color) 80%,var(--red-color) 95%,var(--red-hover-color) 95%)}.opposing-name[data-v-cde024ed]{width:20%;line-height:45px;color:var(--main1-color);font-size:20px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-result[data-v-cde024ed]{color:var(--main1-color);width:50%;font-size:20px}#codeInfo[data-v-cde024ed]{width:10%;padding:8px;margin:5px;font-size:1rem;color:var(--main1-color);background-color:var(--main3-color);border:none;border-radius:6px}#codeInfo[data-v-cde024ed][data-v-cde024ed]:hover{background-color:var(--main3-hover-color)}[data-v-cde024ed]::-webkit-scrollbar{width:0}#layout[data-v-cbd7beb5]{padding:20px}#profile[data-v-cbd7beb5]{margin-bottom:20px;font-size:20px;display:flex;justify-content:space-between}#point[data-v-cbd7beb5]{margin-right:10px;margin-top:10px;font-size:15px}#tier-BRONZE[data-v-cbd7beb5]{color:var(--bronze-color)}#tier-SILVER[data-v-cbd7beb5]{color:var(--silver-color)}#tier-GOLD[data-v-cbd7beb5]{color:var(--gold-color)}#tier-PLATINUM[data-v-cbd7beb5]{color:var(--platinum-color)}#rank-content[data-v-cbd7beb5]{overflow:scroll;margin-top:30px;height:480px;margin-left:5px}.rank-obj-WIN[data-v-cbd7beb5],.rank-obj-LOSE[data-v-cbd7beb5],.rank-obj-DRAW[data-v-cbd7beb5]{width:99%;height:55px;border:1px solid var(--main1-color);border-radius:10px}.rank-obj-WIN[data-v-cbd7beb5]{border:5px double var(--main1-color);background:linear-gradient(40deg,var(--main4-hover-color) 5%,var(--main4-color) 5%,var(--main4-color) 20%,var(--main4-hover-color) 20%,var(--main4-hover-color) 40%,var(--main4-color) 40%,var(--main4-color) 60%,var(--main4-hover-color) 60%,var(--main4-hover-color) 80%,var(--main4-hover-color) 80%,var(--main4-color) 80%,var(--main4-color) 95%,var(--main4-hover-color) 95%)}.rank-obj-LOSE[data-v-cbd7beb5]{border:5px double var(--main1-color);background:linear-gradient(40deg,var(--red-hover-color) 5%,var(--red-color) 5%,var(--red-color) 20%,var(--red-hover-color) 20%,var(--red-hover-color) 40%,var(--red-color) 40%,var(--red-color) 60%,var(--red-hover-color) 60%,var(--red-hover-color) 80%,var(--red-hover-color) 80%,var(--red-color) 80%,var(--red-color) 95%,var(--red-hover-color) 95%)}.rank-obj-DRAW[data-v-cbd7beb5]{border:5px double var(--main1-color);background:linear-gradient(40deg,var(--green-hover-color) 5%,var(--green-color) 5%,var(--green-color) 20%,var(--green-hover-color) 20%,var(--green-hover-color) 40%,var(--green-color) 40%,var(--green-color) 60%,var(--green-hover-color) 60%,var(--green-hover-color) 80%,var(--green-hover-color) 80%,var(--green-color) 80%,var(--green-color) 95%,var(--green-hover-color) 95%)}.opposing-name[data-v-cbd7beb5]{width:50%;display:inline-block;color:var(--main5-color);line-height:45px;color:var(--main1-color);padding-left:10px}.game-result[data-v-cbd7beb5]{color:var(--main1-color);width:50%;font-size:20px}#member-name[data-v-cbd7beb5]{padding-left:5px;padding-right:5px}#tier-point[data-v-cbd7beb5]{font-size:17px}.tier-img[data-v-cbd7beb5]{width:30px;height:30px}[data-v-cbd7beb5]::-webkit-scrollbar{width:0}#rank-cnt[data-v-cbd7beb5]{margin-right:15px}#rank-result[data-v-cbd7beb5]{margin-left:45px;font-size:18px}*[data-v-e802b182]{color:var(--main5-color);width:100%;height:100%;cursor:default}.header[data-v-e802b182]{text-align:center;display:flex;align-items:center;justify-content:space-between}.header-text[data-v-e802b182]{font-size:25px;text-align:right;width:100%;margin-right:20px;padding-top:45px}.content-box[data-v-e802b182]{display:flex;justify-content:space-between;border:5px solid var(--main5-color);width:98%;margin-left:1%;margin-top:20px;border-radius:18px}.index-bar[data-v-e802b182]{background-color:var(--main5-color);width:20%;height:650px;padding-right:5px}.index[data-v-e802b182]{color:var(--main1-color);font-size:20px;text-align:center;height:50px;line-height:50px;margin-top:40px;cursor:pointer}.index[data-v-e802b182][data-v-e802b182]:hover{font-size:21px}#profile-page[data-v-e802b182]{background-color:var(--main1-color);color:var(--main5-color)}#profile-edit-page[data-v-e802b182],#code-page[data-v-e802b182],#rank-history[data-v-e802b182]{margin-top:20px}.home-bt[data-v-e802b182]{width:40px;height:40px;margin-left:20px;cursor:pointer}.home-bt[data-v-e802b182][data-v-e802b182]:hover{width:42px;height:42px;margin-left:19px;margin-top:-1px}.content-area[data-v-e802b182]{height:650px;padding:10px}.view-area[data-v-e802b182]{padding:2%}#etc-bt[data-v-e802b182]{display:flex;justify-content:space-between;height:40px;margin-top:270px}#unregister[data-v-e802b182]{width:80px;font-size:15px;margin-right:5px;border:1px solid var(--main5-color);background-color:var(--main5-color);color:var(--main2-color)}#unregister[data-v-e802b182][data-v-e802b182]:hover{color:var(--white-color)}/*! + * Bootstrap v5.3.2 (https://getbootstrap.com/) + * Copyright 2011-2023 The Bootstrap Authors + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, .75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, .5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, .175);--bs-border-radius:.375rem;--bs-border-radius-sm:.25rem;--bs-border-radius-lg:.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm:0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width:.25rem;--bs-focus-ring-opacity:.25;--bs-focus-ring-color:rgba(13, 110, 253, .25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, .75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, .5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, .15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:.25rem}.g-1,.gy-1{--bs-gutter-y:.25rem}.g-2,.gx-2{--bs-gutter-x:.5rem}.g-2,.gy-2{--bs-gutter-y:.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#a6b5cc;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#b5b6b7;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#a7b9b1;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#a6c3ca;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#ccc2a4;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#c6acae;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#c6c7c8;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#4d5154;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label:after{position:absolute;top:1rem;right:.375rem;bottom:1rem;left:.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label:after,.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-select~label:after{position:absolute;top:1rem;right:.375rem;bottom:1rem;left:.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>.form-control:disabled~label,.form-floating>:disabled~label{color:#6c757d}.form-floating>.form-control:disabled~label:after,.form-floating>:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3.75rem + 1.5em)}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3.75rem + 1.5em)}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:.75rem;--bs-btn-padding-y:.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, .15),0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity:.65;--bs-btn-focus-box-shadow:0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:.25rem;--bs-btn-padding-x:.5rem;--bs-btn-font-size:.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:.5rem;--bs-dropdown-spacer:.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:.5rem;--bs-dropdown-box-shadow:var(--bs-box-shadow);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, .15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), .65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), .8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), .3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:.5rem;--bs-navbar-toggler-padding-y:.25rem;--bs-navbar-toggler-padding-x:.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), .15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:.25rem;--bs-navbar-toggler-transition:box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, .55);--bs-navbar-hover-color:rgba(255, 255, 255, .75);--bs-navbar-disabled-color:rgba(255, 255, 255, .25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform .2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color:#86b7fe;--bs-accordion-btn-focus-box-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}[data-bs-theme=dark] .accordion-button:after{--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:.75rem;--bs-pagination-padding-y:.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:.5rem;--bs-pagination-padding-y:.25rem;--bs-pagination-font-size:.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:.65em;--bs-badge-padding-y:.35em;--bs-badge-font-size:.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity:.5;--bs-btn-close-hover-opacity:.75;--bs-btn-close-focus-shadow:0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:.75rem;--bs-toast-padding-y:.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:.5rem;--bs-tooltip-padding-y:.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:.9;--bs-tooltip-arrow-width:.8rem;--bs-tooltip-arrow-height:.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before,.bs-tooltip-top .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before,.bs-tooltip-end .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before,.bs-tooltip-bottom .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before,.bs-tooltip-start .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:var(--bs-box-shadow);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:after,.popover .popover-arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-top>.popover-arrow:before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after,.bs-popover-top>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-end>.popover-arrow:before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after,.bs-popover-end>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-bottom>.popover-arrow:before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after,.bs-popover-bottom>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-start>.popover-arrow:before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after,.bs-popover-start>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translate(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-.125em;--bs-spinner-border-width:.25em;--bs-spinner-animation-speed:.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-.125em;--bs-spinner-animation-speed:.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:var(--bs-box-shadow-sm);--bs-offcanvas-transition:transform .3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,.5));text-underline-offset:.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:.1}.border-opacity-25{--bs-border-opacity:.25}.border-opacity-50{--bs-border-opacity:.5}.border-opacity-75{--bs-border-opacity:.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:#00000080!important}.text-white-50{--bs-text-opacity:1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:.25}.text-opacity-50{--bs-text-opacity:.5}.text-opacity-75{--bs-text-opacity:.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity:.1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity:.25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity:.5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity:.75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:.1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:.25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:.5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:.75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:.1}.bg-opacity-25{--bs-bg-opacity:.25}.bg-opacity-50{--bs-bg-opacity:.5}.bg-opacity-75{--bs-bg-opacity:.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}body{--main1-color: #eaebfe;--main2-color: #b0b8ce;--main2-hover-color: #8c93a4;--main3-color: #505a74;--main3-hover-color: #727a8f;--main4-color: #354c7c;--main4-hover-color: #5d6f96;--main5-color: #022954;--main5-hover-color: #345376;--red-color: #7c354c;--red-hover-color: #965d6f;--yellow-rank-color: #ffcd69;--red-rank-color: #ff7d97;--blue-rank-color: #33d6f5;--black-color: #000000;--white-color: #ffffff;--green-color: #4c7c35;--green-hover-color: #6f965d;--bronze-color: #846353;--silver-color: #7382a3;--gold-color: #cc9336;--platinum-color: #34a8b1}@font-face{font-family:DNFBitBitv2;font-style:normal;font-weight:400;src:url(//cdn.df.nexon.com/img/common/font/DNFBitBitv2.otf) format("opentype")}*{margin:0;padding:0;font-family:DNFBitBitv2}body{line-height:unset!important;background-color:var(--main1-color)!important}a{text-decoration:none!important;color:var(--main5-color)!important}a:link{text-decoration:none}input:focus{outline:none} diff --git a/dist/assets/index-b607d5f8.js b/dist/assets/index-b607d5f8.js new file mode 100644 index 0000000..52fd730 --- /dev/null +++ b/dist/assets/index-b607d5f8.js @@ -0,0 +1,1650 @@ +var PQ=Object.defineProperty;var OQ=(n,e,t)=>e in n?PQ(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Vi=(n,e,t)=>(OQ(n,typeof e!="symbol"?e+"":e,t),t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();function KM(n,e){const t=Object.create(null),i=n.split(",");for(let s=0;s!!t[s.toLowerCase()]:s=>!!t[s]}const hn={},Em=[],La=()=>{},FQ=()=>!1,BQ=/^on[^a-z]/,gL=n=>BQ.test(n),GM=n=>n.startsWith("onUpdate:"),Hs=Object.assign,YM=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},VQ=Object.prototype.hasOwnProperty,Ci=(n,e)=>VQ.call(n,e),bt=Array.isArray,Dm=n=>H1(n)==="[object Map]",e_=n=>H1(n)==="[object Set]",tF=n=>H1(n)==="[object Date]",$t=n=>typeof n=="function",bs=n=>typeof n=="string",Jm=n=>typeof n=="symbol",nn=n=>n!==null&&typeof n=="object",lV=n=>(nn(n)||$t(n))&&$t(n.then)&&$t(n.catch),cV=Object.prototype.toString,H1=n=>cV.call(n),WQ=n=>H1(n).slice(8,-1),dV=n=>H1(n)==="[object Object]",ZM=n=>bs(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,pw=KM(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mL=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},HQ=/-(\w)/g,Nl=mL(n=>n.replace(HQ,(e,t)=>t?t.toUpperCase():"")),zQ=/\B([A-Z])/g,Yf=mL(n=>n.replace(zQ,"-$1").toLowerCase()),pL=mL(n=>n.charAt(0).toUpperCase()+n.slice(1)),iE=mL(n=>n?`on${pL(n)}`:""),rf=(n,e)=>!Object.is(n,e),_w=(n,e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},py=n=>{const e=parseFloat(n);return isNaN(e)?n:e};let iF;const KI=()=>iF||(iF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pu(n){if(bt(n)){const e={};for(let t=0;t{if(t){const i=t.split(UQ);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Rn(n){let e="";if(bs(n))e=n;else if(bt(n))for(let t=0;tz1(t,e))}const ve=n=>bs(n)?n:n==null?"":bt(n)||nn(n)&&(n.toString===cV||!$t(n.toString))?JSON.stringify(n,hV,2):String(n),hV=(n,e)=>e&&e.__v_isRef?hV(n,e.value):Dm(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[i,s])=>(t[`${i} =>`]=s,t),{})}:e_(e)?{[`Set(${e.size})`]:[...e.values()]}:nn(e)&&!bt(e)&&!dV(e)?String(e):e;let ca;class ZQ{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ca,!e&&ca&&(this.index=(ca.scopes||(ca.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ca;try{return ca=this,e()}finally{ca=t}}}on(){ca=this}off(){ca=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t{const e=new Set(n);return e.w=0,e.n=0,e},fV=n=>(n.w&ru)>0,gV=n=>(n.n&ru)>0,JQ=({deps:n})=>{if(n.length)for(let e=0;e{const{deps:e}=n;if(e.length){let t=0;for(let i=0;i{(d==="length"||!Jm(d)&&d>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(r.get(t)),e){case"add":bt(n)?ZM(t)&&a.push(r.get("length")):(a.push(r.get(Wh)),Dm(n)&&a.push(r.get(YI)));break;case"delete":bt(n)||(a.push(r.get(Wh)),Dm(n)&&a.push(r.get(YI)));break;case"set":Dm(n)&&a.push(r.get(Wh));break}if(a.length===1)a[0]&&ZI(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);ZI(QM(l))}}function ZI(n,e){const t=bt(n)?n:[...n];for(const i of t)i.computed&&sF(i);for(const i of t)i.computed||sF(i)}function sF(n,e){(n!==_a||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}function tJ(n,e){var t;return(t=_y.get(n))==null?void 0:t.get(e)}const iJ=KM("__proto__,__v_isRef,__isVue"),_V=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Jm)),oF=nJ();function nJ(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const i=Ei(this);for(let o=0,r=this.length;o{n[e]=function(...t){t_();const i=Ei(this)[e].apply(this,t);return i_(),i}}),n}function sJ(n){const e=Ei(this);return Go(e,"has",n),e.hasOwnProperty(n)}class bV{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,i){const s=this._isReadonly,o=this._shallow;if(t==="__v_isReactive")return!s;if(t==="__v_isReadonly")return s;if(t==="__v_isShallow")return o;if(t==="__v_raw"&&i===(s?o?_J:yV:o?wV:CV).get(e))return e;const r=bt(e);if(!s){if(r&&Ci(oF,t))return Reflect.get(oF,t,i);if(t==="hasOwnProperty")return sJ}const a=Reflect.get(e,t,i);return(Jm(t)?_V.has(t):iJ(t))||(s||Go(e,"get",t),o)?a:Bs(a)?r&&ZM(t)?a:a.value:nn(a)?s?LV(a):bL(a):a}}class vV extends bV{constructor(e=!1){super(!1,e)}set(e,t,i,s){let o=e[t];if(ep(o)&&Bs(o)&&!Bs(i))return!1;if(!this._shallow&&(!by(i)&&!ep(i)&&(o=Ei(o),i=Ei(i)),!bt(e)&&Bs(o)&&!Bs(i)))return o.value=i,!0;const r=bt(e)&&ZM(t)?Number(t)n,_L=n=>Reflect.getPrototypeOf(n);function W0(n,e,t=!1,i=!1){n=n.__v_raw;const s=Ei(n),o=Ei(e);t||(rf(e,o)&&Go(s,"get",e),Go(s,"get",o));const{has:r}=_L(s),a=i?eR:t?nR:uv;if(r.call(s,e))return a(n.get(e));if(r.call(s,o))return a(n.get(o));n!==s&&n.get(e)}function H0(n,e=!1){const t=this.__v_raw,i=Ei(t),s=Ei(n);return e||(rf(n,s)&&Go(i,"has",n),Go(i,"has",s)),n===s?t.has(n):t.has(n)||t.has(s)}function z0(n,e=!1){return n=n.__v_raw,!e&&Go(Ei(n),"iterate",Wh),Reflect.get(n,"size",n)}function rF(n){n=Ei(n);const e=Ei(this);return _L(e).has.call(e,n)||(e.add(n),Ic(e,"add",n,n)),this}function aF(n,e){e=Ei(e);const t=Ei(this),{has:i,get:s}=_L(t);let o=i.call(t,n);o||(n=Ei(n),o=i.call(t,n));const r=s.call(t,n);return t.set(n,e),o?rf(e,r)&&Ic(t,"set",n,e):Ic(t,"add",n,e),this}function lF(n){const e=Ei(this),{has:t,get:i}=_L(e);let s=t.call(e,n);s||(n=Ei(n),s=t.call(e,n)),i&&i.call(e,n);const o=e.delete(n);return s&&Ic(e,"delete",n,void 0),o}function cF(){const n=Ei(this),e=n.size!==0,t=n.clear();return e&&Ic(n,"clear",void 0,void 0),t}function $0(n,e){return function(i,s){const o=this,r=o.__v_raw,a=Ei(r),l=e?eR:n?nR:uv;return!n&&Go(a,"iterate",Wh),r.forEach((c,d)=>i.call(s,l(c),l(d),o))}}function U0(n,e,t){return function(...i){const s=this.__v_raw,o=Ei(s),r=Dm(o),a=n==="entries"||n===Symbol.iterator&&r,l=n==="keys"&&r,c=s[n](...i),d=t?eR:e?nR:uv;return!e&&Go(o,"iterate",l?YI:Wh),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function cd(n){return function(...e){return n==="delete"?!1:this}}function cJ(){const n={get(o){return W0(this,o)},get size(){return z0(this)},has:H0,add:rF,set:aF,delete:lF,clear:cF,forEach:$0(!1,!1)},e={get(o){return W0(this,o,!1,!0)},get size(){return z0(this)},has:H0,add:rF,set:aF,delete:lF,clear:cF,forEach:$0(!1,!0)},t={get(o){return W0(this,o,!0)},get size(){return z0(this,!0)},has(o){return H0.call(this,o,!0)},add:cd("add"),set:cd("set"),delete:cd("delete"),clear:cd("clear"),forEach:$0(!0,!1)},i={get(o){return W0(this,o,!0,!0)},get size(){return z0(this,!0)},has(o){return H0.call(this,o,!0)},add:cd("add"),set:cd("set"),delete:cd("delete"),clear:cd("clear"),forEach:$0(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=U0(o,!1,!1),t[o]=U0(o,!0,!1),e[o]=U0(o,!1,!0),i[o]=U0(o,!0,!0)}),[n,t,e,i]}const[dJ,uJ,hJ,fJ]=cJ();function tR(n,e){const t=e?n?fJ:hJ:n?uJ:dJ;return(i,s,o)=>s==="__v_isReactive"?!n:s==="__v_isReadonly"?n:s==="__v_raw"?i:Reflect.get(Ci(t,s)&&s in i?t:i,s,o)}const gJ={get:tR(!1,!1)},mJ={get:tR(!1,!0)},pJ={get:tR(!0,!1)},CV=new WeakMap,wV=new WeakMap,yV=new WeakMap,_J=new WeakMap;function bJ(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vJ(n){return n.__v_skip||!Object.isExtensible(n)?0:bJ(WQ(n))}function bL(n){return ep(n)?n:iR(n,!1,rJ,gJ,CV)}function SV(n){return iR(n,!1,lJ,mJ,wV)}function LV(n){return iR(n,!0,aJ,pJ,yV)}function iR(n,e,t,i,s){if(!nn(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const o=s.get(n);if(o)return o;const r=vJ(n);if(r===0)return n;const a=new Proxy(n,r===2?i:t);return s.set(n,a),a}function Im(n){return ep(n)?Im(n.__v_raw):!!(n&&n.__v_isReactive)}function ep(n){return!!(n&&n.__v_isReadonly)}function by(n){return!!(n&&n.__v_isShallow)}function kV(n){return Im(n)||ep(n)}function Ei(n){const e=n&&n.__v_raw;return e?Ei(e):n}function xV(n){return my(n,"__v_skip",!0),n}const uv=n=>nn(n)?bL(n):n,nR=n=>nn(n)?LV(n):n;function EV(n){$d&&_a&&(n=Ei(n),pV(n.dep||(n.dep=QM())))}function DV(n,e){n=Ei(n);const t=n.dep;t&&ZI(t)}function Bs(n){return!!(n&&n.__v_isRef===!0)}function CJ(n){return IV(n,!1)}function wJ(n){return IV(n,!0)}function IV(n,e){return Bs(n)?n:new yJ(n,e)}class yJ{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ei(e),this._value=t?e:uv(e)}get value(){return EV(this),this._value}set value(e){const t=this.__v_isShallow||by(e)||ep(e);e=t?e:Ei(e),rf(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:uv(e),DV(this))}}function Nm(n){return Bs(n)?n.value:n}const SJ={get:(n,e,t)=>Nm(Reflect.get(n,e,t)),set:(n,e,t,i)=>{const s=n[e];return Bs(s)&&!Bs(t)?(s.value=t,!0):Reflect.set(n,e,t,i)}};function NV(n){return Im(n)?n:new Proxy(n,SJ)}function TV(n){const e=bt(n)?new Array(n.length):{};for(const t in n)e[t]=kJ(n,t);return e}class LJ{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return tJ(Ei(this._object),this._key)}}function kJ(n,e,t){const i=n[e];return Bs(i)?i:new LJ(n,e,t)}class xJ{constructor(e,t,i,s){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new JM(e,()=>{this._dirty||(this._dirty=!0,DV(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const e=Ei(this);return EV(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function EJ(n,e,t=!1){let i,s;const o=$t(n);return o?(i=n,s=La):(i=n.get,s=n.set),new xJ(i,s,o||!s,t)}function Ud(n,e,t,i){let s;try{s=i?n(...i):n()}catch(o){vL(o,e,t)}return s}function ka(n,e,t,i){if($t(n)){const o=Ud(n,e,t,i);return o&&lV(o)&&o.catch(r=>{vL(r,e,t)}),o}const s=[];for(let o=0;o>>1,s=to[i],o=fv(s);odl&&to.splice(e,1)}function TJ(n){bt(n)?Tm.push(...n):(!ac||!ac.includes(n,n.allowRecurse?gh+1:gh))&&Tm.push(n),RV()}function dF(n,e=hv?dl+1:0){for(;efv(t)-fv(i)),gh=0;ghn.id==null?1/0:n.id,AJ=(n,e)=>{const t=fv(n)-fv(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function OV(n){XI=!1,hv=!0,to.sort(AJ);const e=La;try{for(dl=0;dlbs(f)?f.trim():f)),u&&(s=t.map(py))}let a,l=i[a=iE(e)]||i[a=iE(Nl(e))];!l&&o&&(l=i[a=iE(Yf(e))]),l&&ka(l,n,6,s);const c=i[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,ka(c,n,6,s)}}function FV(n,e,t=!1){const i=e.emitsCache,s=i.get(n);if(s!==void 0)return s;const o=n.emits;let r={},a=!1;if(!$t(n)){const l=c=>{const d=FV(c,e,!0);d&&(a=!0,Hs(r,d))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!o&&!a?(nn(n)&&i.set(n,null),null):(bt(o)?o.forEach(l=>r[l]=null):Hs(r,o),nn(n)&&i.set(n,r),r)}function CL(n,e){return!n||!gL(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ci(n,e[0].toLowerCase()+e.slice(1))||Ci(n,Yf(e))||Ci(n,e))}let jr=null,wL=null;function vy(n){const e=jr;return jr=n,wL=n&&n.type.__scopeId||null,e}function Gn(n){wL=n}function Yn(){wL=null}function rR(n,e=jr,t){if(!e||n._n)return n;const i=(...s)=>{i._d&&wF(-1);const o=vy(e);let r;try{r=n(...s)}finally{vy(o),i._d&&wF(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function nE(n){const{type:e,vnode:t,proxy:i,withProxy:s,props:o,propsOptions:[r],slots:a,attrs:l,emit:c,render:d,renderCache:u,data:h,setupState:f,ctx:g,inheritAttrs:_}=n;let b,v;const C=vy(n);try{if(t.shapeFlag&4){const S=s||i;b=nl(d.call(S,S,u,o,f,h,g)),v=l}else{const S=e;b=nl(S.length>1?S(o,{attrs:l,slots:a,emit:c}):S(o,null)),v=e.props?l:RJ(l)}}catch(S){xb.length=0,vL(S,n,1),b=di(af)}let y=b;if(v&&_!==!1){const S=Object.keys(v),{shapeFlag:x}=y;S.length&&x&7&&(r&&S.some(GM)&&(v=PJ(v,r)),y=tp(y,v))}return t.dirs&&(y=tp(y),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&(y.transition=t.transition),b=y,vy(C),b}const RJ=n=>{let e;for(const t in n)(t==="class"||t==="style"||gL(t))&&((e||(e={}))[t]=n[t]);return e},PJ=(n,e)=>{const t={};for(const i in n)(!GM(i)||!(i.slice(9)in e))&&(t[i]=n[i]);return t};function OJ(n,e,t){const{props:i,children:s,component:o}=n,{props:r,children:a,patchFlag:l}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return i?uF(i,r,c):!!r;if(l&8){const d=e.dynamicProps;for(let u=0;un.__isSuspense;function HJ(n,e){e&&e.pendingBranch?bt(n)?e.effects.push(...n):e.effects.push(n):TJ(n)}const j0={};function Lb(n,e,t){return VV(n,e,t)}function VV(n,e,{immediate:t,deep:i,flush:s,onTrack:o,onTrigger:r}=hn){var a;const l=QQ()===((a=Ps)==null?void 0:a.scope)?Ps:null;let c,d=!1,u=!1;if(Bs(n)?(c=()=>n.value,d=by(n)):Im(n)?(c=()=>n,i=!0):bt(n)?(u=!0,d=n.some(S=>Im(S)||by(S)),c=()=>n.map(S=>{if(Bs(S))return S.value;if(Im(S))return Dh(S);if($t(S))return Ud(S,l,2)})):$t(n)?e?c=()=>Ud(n,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),ka(n,l,3,[f])}:c=La,e&&i){const S=c;c=()=>Dh(S())}let h,f=S=>{h=C.onStop=()=>{Ud(S,l,4)}},g;if(mv)if(f=La,e?t&&ka(e,l,3,[c(),u?[]:void 0,f]):c(),s==="sync"){const S=Mee();g=S.__watcherHandles||(S.__watcherHandles=[])}else return La;let _=u?new Array(n.length).fill(j0):j0;const b=()=>{if(C.active)if(e){const S=C.run();(i||d||(u?S.some((x,A)=>rf(x,_[A])):rf(S,_)))&&(h&&h(),ka(e,l,3,[S,_===j0?void 0:u&&_[0]===j0?[]:_,f]),_=S)}else C.run()};b.allowRecurse=!!e;let v;s==="sync"?v=b:s==="post"?v=()=>Mo(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),v=()=>oR(b));const C=new JM(c,v);e?t?b():_=C.run():s==="post"?Mo(C.run.bind(C),l&&l.suspense):C.run();const y=()=>{C.stop(),l&&l.scope&&YM(l.scope.effects,C)};return g&&g.push(y),y}function zJ(n,e,t){const i=this.proxy,s=bs(n)?n.includes(".")?WV(i,n):()=>i[n]:n.bind(i,i);let o;$t(e)?o=e:(o=e.handler,t=e);const r=Ps;ip(this);const a=VV(s,o.bind(i),t);return r?ip(r):Hh(),a}function WV(n,e){const t=e.split(".");return()=>{let i=n;for(let s=0;s{Dh(t,e)});else if(dV(n))for(const t in n)Dh(n[t],e);return n}function ii(n,e){const t=jr;if(t===null)return n;const i=kL(t)||t.proxy,s=n.dirs||(n.dirs=[]);for(let o=0;oHs({name:n.name},e,{setup:n}))():n}const bw=n=>!!n.type.__asyncLoader,HV=n=>n.type.__isKeepAlive;function $J(n,e){zV(n,"a",e)}function UJ(n,e){zV(n,"da",e)}function zV(n,e,t=Ps){const i=n.__wdc||(n.__wdc=()=>{let s=t;for(;s;){if(s.isDeactivated)return;s=s.parent}return n()});if(yL(e,i,t),t){let s=t.parent;for(;s&&s.parent;)HV(s.parent.vnode)&&jJ(i,e,t,s),s=s.parent}}function jJ(n,e,t,i){const s=yL(e,n,i,!0);$V(()=>{YM(i[e],s)},t)}function yL(n,e,t=Ps,i=!1){if(t){const s=t[n]||(t[n]=[]),o=e.__weh||(e.__weh=(...r)=>{if(t.isUnmounted)return;t_(),ip(t);const a=ka(e,t,n,r);return Hh(),i_(),a});return i?s.unshift(o):s.push(o),o}}const Jc=n=>(e,t=Ps)=>(!mv||n==="sp")&&yL(n,(...i)=>e(...i),t),qJ=Jc("bm"),KJ=Jc("m"),GJ=Jc("bu"),YJ=Jc("u"),ZJ=Jc("bum"),$V=Jc("um"),XJ=Jc("sp"),QJ=Jc("rtg"),JJ=Jc("rtc");function eee(n,e=Ps){yL("ec",n,e)}function zs(n,e,t,i){let s;const o=t&&t[i];if(bt(n)||bs(n)){s=new Array(n.length);for(let r=0,a=n.length;re(r,a,void 0,o&&o[a]));else{const r=Object.keys(n);s=new Array(r.length);for(let a=0,l=r.length;an?eW(n)?kL(n)||n.proxy:QI(n.parent):null,kb=Hs(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>QI(n.parent),$root:n=>QI(n.root),$emit:n=>n.emit,$options:n=>aR(n),$forceUpdate:n=>n.f||(n.f=()=>oR(n.update)),$nextTick:n=>n.n||(n.n=MV.bind(n.proxy)),$watch:n=>zJ.bind(n)}),sE=(n,e)=>n!==hn&&!n.__isScriptSetup&&Ci(n,e),tee={get({_:n},e){const{ctx:t,setupState:i,data:s,props:o,accessCache:r,type:a,appContext:l}=n;let c;if(e[0]!=="$"){const f=r[e];if(f!==void 0)switch(f){case 1:return i[e];case 2:return s[e];case 4:return t[e];case 3:return o[e]}else{if(sE(i,e))return r[e]=1,i[e];if(s!==hn&&Ci(s,e))return r[e]=2,s[e];if((c=n.propsOptions[0])&&Ci(c,e))return r[e]=3,o[e];if(t!==hn&&Ci(t,e))return r[e]=4,t[e];JI&&(r[e]=0)}}const d=kb[e];let u,h;if(d)return e==="$attrs"&&Go(n,"get",e),d(n);if((u=a.__cssModules)&&(u=u[e]))return u;if(t!==hn&&Ci(t,e))return r[e]=4,t[e];if(h=l.config.globalProperties,Ci(h,e))return h[e]},set({_:n},e,t){const{data:i,setupState:s,ctx:o}=n;return sE(s,e)?(s[e]=t,!0):i!==hn&&Ci(i,e)?(i[e]=t,!0):Ci(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(o[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:i,appContext:s,propsOptions:o}},r){let a;return!!t[r]||n!==hn&&Ci(n,r)||sE(e,r)||(a=o[0])&&Ci(a,r)||Ci(i,r)||Ci(kb,r)||Ci(s.config.globalProperties,r)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Ci(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function fF(n){return bt(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let JI=!0;function iee(n){const e=aR(n),t=n.proxy,i=n.ctx;JI=!1,e.beforeCreate&&gF(e.beforeCreate,n,"bc");const{data:s,computed:o,methods:r,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:g,activated:_,deactivated:b,beforeDestroy:v,beforeUnmount:C,destroyed:y,unmounted:S,render:x,renderTracked:A,renderTriggered:E,errorCaptured:D,serverPrefetch:P,expose:$,inheritAttrs:z,components:ee,directives:Q,filters:Ee}=e;if(c&&nee(c,i,null),r)for(const Se in r){const De=r[Se];$t(De)&&(i[Se]=De.bind(t))}if(s){const Se=s.call(t,t);nn(Se)&&(n.data=bL(Se))}if(JI=!0,o)for(const Se in o){const De=o[Se],tt=$t(De)?De.bind(t,t):$t(De.get)?De.get.bind(t,t):La,Ke=!$t(De)&&$t(De.set)?De.set.bind(t):La,yt=gs({get:tt,set:Ke});Object.defineProperty(i,Se,{enumerable:!0,configurable:!0,get:()=>yt.value,set:Ie=>yt.value=Ie})}if(a)for(const Se in a)UV(a[Se],i,t,Se);if(l){const Se=$t(l)?l.call(t):l;Reflect.ownKeys(Se).forEach(De=>{vw(De,Se[De])})}d&&gF(d,n,"c");function ke(Se,De){bt(De)?De.forEach(tt=>Se(tt.bind(t))):De&&Se(De.bind(t))}if(ke(qJ,u),ke(KJ,h),ke(GJ,f),ke(YJ,g),ke($J,_),ke(UJ,b),ke(eee,D),ke(JJ,A),ke(QJ,E),ke(ZJ,C),ke($V,S),ke(XJ,P),bt($))if($.length){const Se=n.exposed||(n.exposed={});$.forEach(De=>{Object.defineProperty(Se,De,{get:()=>t[De],set:tt=>t[De]=tt})})}else n.exposed||(n.exposed={});x&&n.render===La&&(n.render=x),z!=null&&(n.inheritAttrs=z),ee&&(n.components=ee),Q&&(n.directives=Q)}function nee(n,e,t=La){bt(n)&&(n=e2(n));for(const i in n){const s=n[i];let o;nn(s)?"default"in s?o=Nc(s.from||i,s.default,!0):o=Nc(s.from||i):o=Nc(s),Bs(o)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[i]=o}}function gF(n,e,t){ka(bt(n)?n.map(i=>i.bind(e.proxy)):n.bind(e.proxy),e,t)}function UV(n,e,t,i){const s=i.includes(".")?WV(t,i):()=>t[i];if(bs(n)){const o=e[n];$t(o)&&Lb(s,o)}else if($t(n))Lb(s,n.bind(t));else if(nn(n))if(bt(n))n.forEach(o=>UV(o,e,t,i));else{const o=$t(n.handler)?n.handler.bind(t):e[n.handler];$t(o)&&Lb(s,o,n)}}function aR(n){const e=n.type,{mixins:t,extends:i}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=n.appContext,a=o.get(e);let l;return a?l=a:!s.length&&!t&&!i?l=e:(l={},s.length&&s.forEach(c=>Cy(l,c,r,!0)),Cy(l,e,r)),nn(e)&&o.set(e,l),l}function Cy(n,e,t,i=!1){const{mixins:s,extends:o}=e;o&&Cy(n,o,t,!0),s&&s.forEach(r=>Cy(n,r,t,!0));for(const r in e)if(!(i&&r==="expose")){const a=see[r]||t&&t[r];n[r]=a?a(n[r],e[r]):e[r]}return n}const see={data:mF,props:pF,emits:pF,methods:hb,computed:hb,beforeCreate:co,created:co,beforeMount:co,mounted:co,beforeUpdate:co,updated:co,beforeDestroy:co,beforeUnmount:co,destroyed:co,unmounted:co,activated:co,deactivated:co,errorCaptured:co,serverPrefetch:co,components:hb,directives:hb,watch:ree,provide:mF,inject:oee};function mF(n,e){return e?n?function(){return Hs($t(n)?n.call(this,this):n,$t(e)?e.call(this,this):e)}:e:n}function oee(n,e){return hb(e2(n),e2(e))}function e2(n){if(bt(n)){const e={};for(let t=0;t1)return t&&$t(e)?e.call(i&&i.proxy):e}}function cee(n,e,t,i=!1){const s={},o={};my(o,LL,1),n.propsDefaults=Object.create(null),qV(n,e,s,o);for(const r in n.propsOptions[0])r in s||(s[r]=void 0);t?n.props=i?s:SV(s):n.type.props?n.props=s:n.props=o,n.attrs=o}function dee(n,e,t,i){const{props:s,attrs:o,vnode:{patchFlag:r}}=n,a=Ei(s),[l]=n.propsOptions;let c=!1;if((i||r>0)&&!(r&16)){if(r&8){const d=n.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=KV(u,e,!0);Hs(r,h),f&&a.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(d),n.extends&&d(n.extends),n.mixins&&n.mixins.forEach(d)}if(!o&&!l)return nn(n)&&i.set(n,Em),Em;if(bt(o))for(let d=0;d-1,f[1]=_<0||g<_,(g>-1||Ci(f,"default"))&&a.push(u)}}}const c=[r,a];return nn(n)&&i.set(n,c),c}function _F(n){return n[0]!=="$"}function bF(n){const e=n&&n.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:n===null?"null":""}function vF(n,e){return bF(n)===bF(e)}function CF(n,e){return bt(e)?e.findIndex(t=>vF(t,n)):$t(e)&&vF(e,n)?0:-1}const GV=n=>n[0]==="_"||n==="$stable",lR=n=>bt(n)?n.map(nl):[nl(n)],uee=(n,e,t)=>{if(e._n)return e;const i=rR((...s)=>lR(e(...s)),t);return i._c=!1,i},YV=(n,e,t)=>{const i=n._ctx;for(const s in n){if(GV(s))continue;const o=n[s];if($t(o))e[s]=uee(s,o,i);else if(o!=null){const r=lR(o);e[s]=()=>r}}},ZV=(n,e)=>{const t=lR(e);n.slots.default=()=>t},hee=(n,e)=>{if(n.vnode.shapeFlag&32){const t=e._;t?(n.slots=Ei(e),my(e,"_",t)):YV(e,n.slots={})}else n.slots={},e&&ZV(n,e);my(n.slots,LL,1)},fee=(n,e,t)=>{const{vnode:i,slots:s}=n;let o=!0,r=hn;if(i.shapeFlag&32){const a=e._;a?t&&a===1?o=!1:(Hs(s,e),!t&&a===1&&delete s._):(o=!e.$stable,YV(e,s)),r=e}else e&&(ZV(n,e),r={default:1});if(o)for(const a in s)!GV(a)&&r[a]==null&&delete s[a]};function i2(n,e,t,i,s=!1){if(bt(n)){n.forEach((h,f)=>i2(h,e&&(bt(e)?e[f]:e),t,i,s));return}if(bw(i)&&!s)return;const o=i.shapeFlag&4?kL(i.component)||i.component.proxy:i.el,r=s?null:o,{i:a,r:l}=n,c=e&&e.r,d=a.refs===hn?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(bs(c)?(d[c]=null,Ci(u,c)&&(u[c]=null)):Bs(c)&&(c.value=null)),$t(l))Ud(l,a,12,[r,d]);else{const h=bs(l),f=Bs(l);if(h||f){const g=()=>{if(n.f){const _=h?Ci(u,l)?u[l]:d[l]:l.value;s?bt(_)&&YM(_,o):bt(_)?_.includes(o)||_.push(o):h?(d[l]=[o],Ci(u,l)&&(u[l]=d[l])):(l.value=[o],n.k&&(d[n.k]=l.value))}else h?(d[l]=r,Ci(u,l)&&(u[l]=r)):f&&(l.value=r,n.k&&(d[n.k]=r))};r?(g.id=-1,Mo(g,t)):g()}}}const Mo=HJ;function gee(n){return mee(n)}function mee(n,e){const t=KI();t.__VUE__=!0;const{insert:i,remove:s,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=La,insertStaticContent:g}=n,_=(q,Y,ie,he=null,be=null,we=null,Ye=!1,Le=null,G=!!Y.dynamicChildren)=>{if(q===Y)return;q&&!M_(q,Y)&&(he=fe(q),Ie(q,be,we,!0),q=null),Y.patchFlag===-2&&(G=!1,Y.dynamicChildren=null);const{type:B,ref:U,shapeFlag:M}=Y;switch(B){case SL:b(q,Y,ie,he);break;case af:v(q,Y,ie,he);break;case Cw:q==null&&C(Y,ie,he,Ye);break;case Di:ee(q,Y,ie,he,be,we,Ye,Le,G);break;default:M&1?x(q,Y,ie,he,be,we,Ye,Le,G):M&6?Q(q,Y,ie,he,be,we,Ye,Le,G):(M&64||M&128)&&B.process(q,Y,ie,he,be,we,Ye,Le,G,We)}U!=null&&be&&i2(U,q&&q.ref,we,Y||q,!Y)},b=(q,Y,ie,he)=>{if(q==null)i(Y.el=a(Y.children),ie,he);else{const be=Y.el=q.el;Y.children!==q.children&&c(be,Y.children)}},v=(q,Y,ie,he)=>{q==null?i(Y.el=l(Y.children||""),ie,he):Y.el=q.el},C=(q,Y,ie,he)=>{[q.el,q.anchor]=g(q.children,Y,ie,he,q.el,q.anchor)},y=({el:q,anchor:Y},ie,he)=>{let be;for(;q&&q!==Y;)be=h(q),i(q,ie,he),q=be;i(Y,ie,he)},S=({el:q,anchor:Y})=>{let ie;for(;q&&q!==Y;)ie=h(q),s(q),q=ie;s(Y)},x=(q,Y,ie,he,be,we,Ye,Le,G)=>{Ye=Ye||Y.type==="svg",q==null?A(Y,ie,he,be,we,Ye,Le,G):P(q,Y,be,we,Ye,Le,G)},A=(q,Y,ie,he,be,we,Ye,Le)=>{let G,B;const{type:U,props:M,shapeFlag:R,transition:H,dirs:V}=q;if(G=q.el=r(q.type,we,M&&M.is,M),R&8?d(G,q.children):R&16&&D(q.children,G,null,he,be,we&&U!=="foreignObject",Ye,Le),V&&Ju(q,null,he,"created"),E(G,q,q.scopeId,Ye,he),M){for(const ae in M)ae!=="value"&&!pw(ae)&&o(G,ae,null,M[ae],we,q.children,he,be,Ut);"value"in M&&o(G,"value",null,M.value),(B=M.onVnodeBeforeMount)&&Ua(B,he,q)}V&&Ju(q,null,he,"beforeMount");const te=pee(be,H);te&&H.beforeEnter(G),i(G,Y,ie),((B=M&&M.onVnodeMounted)||te||V)&&Mo(()=>{B&&Ua(B,he,q),te&&H.enter(G),V&&Ju(q,null,he,"mounted")},be)},E=(q,Y,ie,he,be)=>{if(ie&&f(q,ie),he)for(let we=0;we{for(let B=G;B{const Le=Y.el=q.el;let{patchFlag:G,dynamicChildren:B,dirs:U}=Y;G|=q.patchFlag&16;const M=q.props||hn,R=Y.props||hn;let H;ie&&eh(ie,!1),(H=R.onVnodeBeforeUpdate)&&Ua(H,ie,Y,q),U&&Ju(Y,q,ie,"beforeUpdate"),ie&&eh(ie,!0);const V=be&&Y.type!=="foreignObject";if(B?$(q.dynamicChildren,B,Le,ie,he,V,we):Ye||De(q,Y,Le,null,ie,he,V,we,!1),G>0){if(G&16)z(Le,Y,M,R,ie,he,be);else if(G&2&&M.class!==R.class&&o(Le,"class",null,R.class,be),G&4&&o(Le,"style",M.style,R.style,be),G&8){const te=Y.dynamicProps;for(let ae=0;ae{H&&Ua(H,ie,Y,q),U&&Ju(Y,q,ie,"updated")},he)},$=(q,Y,ie,he,be,we,Ye)=>{for(let Le=0;Le{if(ie!==he){if(ie!==hn)for(const Le in ie)!pw(Le)&&!(Le in he)&&o(q,Le,ie[Le],null,Ye,Y.children,be,we,Ut);for(const Le in he){if(pw(Le))continue;const G=he[Le],B=ie[Le];G!==B&&Le!=="value"&&o(q,Le,B,G,Ye,Y.children,be,we,Ut)}"value"in he&&o(q,"value",ie.value,he.value)}},ee=(q,Y,ie,he,be,we,Ye,Le,G)=>{const B=Y.el=q?q.el:a(""),U=Y.anchor=q?q.anchor:a("");let{patchFlag:M,dynamicChildren:R,slotScopeIds:H}=Y;H&&(Le=Le?Le.concat(H):H),q==null?(i(B,ie,he),i(U,ie,he),D(Y.children,ie,U,be,we,Ye,Le,G)):M>0&&M&64&&R&&q.dynamicChildren?($(q.dynamicChildren,R,ie,be,we,Ye,Le),(Y.key!=null||be&&Y===be.subTree)&&XV(q,Y,!0)):De(q,Y,ie,U,be,we,Ye,Le,G)},Q=(q,Y,ie,he,be,we,Ye,Le,G)=>{Y.slotScopeIds=Le,q==null?Y.shapeFlag&512?be.ctx.activate(Y,ie,he,Ye,G):Ee(Y,ie,he,be,we,Ye,G):ye(q,Y,G)},Ee=(q,Y,ie,he,be,we,Ye)=>{const Le=q.component=kee(q,he,be);if(HV(q)&&(Le.ctx.renderer=We),xee(Le),Le.asyncDep){if(be&&be.registerDep(Le,ke),!q.el){const G=Le.subTree=di(af);v(null,G,Y,ie)}return}ke(Le,q,Y,ie,be,we,Ye)},ye=(q,Y,ie)=>{const he=Y.component=q.component;if(OJ(q,Y,ie))if(he.asyncDep&&!he.asyncResolved){Se(he,Y,ie);return}else he.next=Y,NJ(he.update),he.update();else Y.el=q.el,he.vnode=Y},ke=(q,Y,ie,he,be,we,Ye)=>{const Le=()=>{if(q.isMounted){let{next:U,bu:M,u:R,parent:H,vnode:V}=q,te=U,ae;eh(q,!1),U?(U.el=V.el,Se(q,U,Ye)):U=V,M&&_w(M),(ae=U.props&&U.props.onVnodeBeforeUpdate)&&Ua(ae,H,U,V),eh(q,!0);const Ve=nE(q),Ne=q.subTree;q.subTree=Ve,_(Ne,Ve,u(Ne.el),fe(Ne),q,be,we),U.el=Ve.el,te===null&&FJ(q,Ve.el),R&&Mo(R,be),(ae=U.props&&U.props.onVnodeUpdated)&&Mo(()=>Ua(ae,H,U,V),be)}else{let U;const{el:M,props:R}=Y,{bm:H,m:V,parent:te}=q,ae=bw(Y);if(eh(q,!1),H&&_w(H),!ae&&(U=R&&R.onVnodeBeforeMount)&&Ua(U,te,Y),eh(q,!0),M&&Me){const Ve=()=>{q.subTree=nE(q),Me(M,q.subTree,q,be,null)};ae?Y.type.__asyncLoader().then(()=>!q.isUnmounted&&Ve()):Ve()}else{const Ve=q.subTree=nE(q);_(null,Ve,ie,he,q,be,we),Y.el=Ve.el}if(V&&Mo(V,be),!ae&&(U=R&&R.onVnodeMounted)){const Ve=Y;Mo(()=>Ua(U,te,Ve),be)}(Y.shapeFlag&256||te&&bw(te.vnode)&&te.vnode.shapeFlag&256)&&q.a&&Mo(q.a,be),q.isMounted=!0,Y=ie=he=null}},G=q.effect=new JM(Le,()=>oR(B),q.scope),B=q.update=()=>G.run();B.id=q.uid,eh(q,!0),B()},Se=(q,Y,ie)=>{Y.component=q;const he=q.vnode.props;q.vnode=Y,q.next=null,dee(q,Y.props,he,ie),fee(q,Y.children,ie),t_(),dF(),i_()},De=(q,Y,ie,he,be,we,Ye,Le,G=!1)=>{const B=q&&q.children,U=q?q.shapeFlag:0,M=Y.children,{patchFlag:R,shapeFlag:H}=Y;if(R>0){if(R&128){Ke(B,M,ie,he,be,we,Ye,Le,G);return}else if(R&256){tt(B,M,ie,he,be,we,Ye,Le,G);return}}H&8?(U&16&&Ut(B,be,we),M!==B&&d(ie,M)):U&16?H&16?Ke(B,M,ie,he,be,we,Ye,Le,G):Ut(B,be,we,!0):(U&8&&d(ie,""),H&16&&D(M,ie,he,be,we,Ye,Le,G))},tt=(q,Y,ie,he,be,we,Ye,Le,G)=>{q=q||Em,Y=Y||Em;const B=q.length,U=Y.length,M=Math.min(B,U);let R;for(R=0;RU?Ut(q,be,we,!0,!1,M):D(Y,ie,he,be,we,Ye,Le,G,M)},Ke=(q,Y,ie,he,be,we,Ye,Le,G)=>{let B=0;const U=Y.length;let M=q.length-1,R=U-1;for(;B<=M&&B<=R;){const H=q[B],V=Y[B]=G?Ed(Y[B]):nl(Y[B]);if(M_(H,V))_(H,V,ie,null,be,we,Ye,Le,G);else break;B++}for(;B<=M&&B<=R;){const H=q[M],V=Y[R]=G?Ed(Y[R]):nl(Y[R]);if(M_(H,V))_(H,V,ie,null,be,we,Ye,Le,G);else break;M--,R--}if(B>M){if(B<=R){const H=R+1,V=HR)for(;B<=M;)Ie(q[B],be,we,!0),B++;else{const H=B,V=B,te=new Map;for(B=V;B<=R;B++){const Ue=Y[B]=G?Ed(Y[B]):nl(Y[B]);Ue.key!=null&&te.set(Ue.key,B)}let ae,Ve=0;const Ne=R-V+1;let st=!1,at=0;const jt=new Array(Ne);for(B=0;B=Ne){Ie(Ue,be,we,!0);continue}let Xt;if(Ue.key!=null)Xt=te.get(Ue.key);else for(ae=V;ae<=R;ae++)if(jt[ae-V]===0&&M_(Ue,Y[ae])){Xt=ae;break}Xt===void 0?Ie(Ue,be,we,!0):(jt[Xt-V]=B+1,Xt>=at?at=Xt:st=!0,_(Ue,Y[Xt],ie,null,be,we,Ye,Le,G),Ve++)}const St=st?_ee(jt):Em;for(ae=St.length-1,B=Ne-1;B>=0;B--){const Ue=V+B,Xt=Y[Ue],ci=Ue+1{const{el:we,type:Ye,transition:Le,children:G,shapeFlag:B}=q;if(B&6){yt(q.component.subTree,Y,ie,he);return}if(B&128){q.suspense.move(Y,ie,he);return}if(B&64){Ye.move(q,Y,ie,We);return}if(Ye===Di){i(we,Y,ie);for(let M=0;MLe.enter(we),be);else{const{leave:M,delayLeave:R,afterLeave:H}=Le,V=()=>i(we,Y,ie),te=()=>{M(we,()=>{V(),H&&H()})};R?R(we,V,te):te()}else i(we,Y,ie)},Ie=(q,Y,ie,he=!1,be=!1)=>{const{type:we,props:Ye,ref:Le,children:G,dynamicChildren:B,shapeFlag:U,patchFlag:M,dirs:R}=q;if(Le!=null&&i2(Le,null,ie,q,!0),U&256){Y.ctx.deactivate(q);return}const H=U&1&&R,V=!bw(q);let te;if(V&&(te=Ye&&Ye.onVnodeBeforeUnmount)&&Ua(te,Y,q),U&6)se(q.component,ie,he);else{if(U&128){q.suspense.unmount(ie,he);return}H&&Ju(q,null,Y,"beforeUnmount"),U&64?q.type.remove(q,Y,ie,be,We,he):B&&(we!==Di||M>0&&M&64)?Ut(B,Y,ie,!1,!0):(we===Di&&M&384||!be&&U&16)&&Ut(G,Y,ie),he&&Oe(q)}(V&&(te=Ye&&Ye.onVnodeUnmounted)||H)&&Mo(()=>{te&&Ua(te,Y,q),H&&Ju(q,null,Y,"unmounted")},ie)},Oe=q=>{const{type:Y,el:ie,anchor:he,transition:be}=q;if(Y===Di){Ct(ie,he);return}if(Y===Cw){S(q);return}const we=()=>{s(ie),be&&!be.persisted&&be.afterLeave&&be.afterLeave()};if(q.shapeFlag&1&&be&&!be.persisted){const{leave:Ye,delayLeave:Le}=be,G=()=>Ye(ie,we);Le?Le(q.el,we,G):G()}else we()},Ct=(q,Y)=>{let ie;for(;q!==Y;)ie=h(q),s(q),q=ie;s(Y)},se=(q,Y,ie)=>{const{bum:he,scope:be,update:we,subTree:Ye,um:Le}=q;he&&_w(he),be.stop(),we&&(we.active=!1,Ie(Ye,q,Y,ie)),Le&&Mo(Le,Y),Mo(()=>{q.isUnmounted=!0},Y),Y&&Y.pendingBranch&&!Y.isUnmounted&&q.asyncDep&&!q.asyncResolved&&q.suspenseId===Y.pendingId&&(Y.deps--,Y.deps===0&&Y.resolve())},Ut=(q,Y,ie,he=!1,be=!1,we=0)=>{for(let Ye=we;Yeq.shapeFlag&6?fe(q.component.subTree):q.shapeFlag&128?q.suspense.next():h(q.anchor||q.el),$e=(q,Y,ie)=>{q==null?Y._vnode&&Ie(Y._vnode,null,null,!0):_(Y._vnode||null,q,Y,null,null,null,ie),dF(),PV(),Y._vnode=q},We={p:_,um:Ie,m:yt,r:Oe,mt:Ee,mc:D,pc:De,pbc:$,n:fe,o:n};let Ge,Me;return e&&([Ge,Me]=e(We)),{render:$e,hydrate:Ge,createApp:lee($e,Ge)}}function eh({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function pee(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function XV(n,e,t=!1){const i=n.children,s=e.children;if(bt(i)&&bt(s))for(let o=0;o>1,n[t[a]]0&&(e[i]=t[o-1]),t[o]=i)}}for(o=t.length,r=t[o-1];o-- >0;)t[o]=r,r=e[r];return t}const bee=n=>n.__isTeleport,Di=Symbol.for("v-fgt"),SL=Symbol.for("v-txt"),af=Symbol.for("v-cmt"),Cw=Symbol.for("v-stc"),xb=[];let va=null;function oe(n=!1){xb.push(va=n?null:[])}function vee(){xb.pop(),va=xb[xb.length-1]||null}let gv=1;function wF(n){gv+=n}function QV(n){return n.dynamicChildren=gv>0?va||Em:null,vee(),gv>0&&va&&va.push(n),n}function ce(n,e,t,i,s,o){return QV(k(n,e,t,i,s,o,!0))}function ps(n,e,t,i,s){return QV(di(n,e,t,i,s,!0))}function n2(n){return n?n.__v_isVNode===!0:!1}function M_(n,e){return n.type===e.type&&n.key===e.key}const LL="__vInternal",JV=({key:n})=>n??null,ww=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?bs(n)||Bs(n)||$t(n)?{i:jr,r:n,k:e,f:!!t}:n:null);function k(n,e=null,t=null,i=0,s=null,o=n===Di?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&JV(e),ref:e&&ww(e),scopeId:wL,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:jr};return a?(dR(l,t),o&128&&n.normalize(l)):t&&(l.shapeFlag|=bs(t)?8:16),gv>0&&!r&&va&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&va.push(l),l}const di=Cee;function Cee(n,e=null,t=null,i=0,s=null,o=!1){if((!n||n===BJ)&&(n=af),n2(n)){const a=tp(n,e,!0);return t&&dR(a,t),gv>0&&!o&&va&&(a.shapeFlag&6?va[va.indexOf(n)]=a:va.push(a)),a.patchFlag|=-2,a}if(Tee(n)&&(n=n.__vccOpts),e){e=wee(e);let{class:a,style:l}=e;a&&!bs(a)&&(e.class=Rn(a)),nn(l)&&(kV(l)&&!bt(l)&&(l=Hs({},l)),e.style=Pu(l))}const r=bs(n)?1:WJ(n)?128:bee(n)?64:nn(n)?4:$t(n)?2:0;return k(n,e,t,i,s,r,o,!0)}function wee(n){return n?kV(n)||LL in n?Hs({},n):n:null}function tp(n,e,t=!1){const{props:i,ref:s,patchFlag:o,children:r}=n,a=e?yee(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&JV(a),ref:e&&e.ref?t&&s?bt(s)?s.concat(ww(e)):[s,ww(e)]:ww(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:r,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Di?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&tp(n.ssContent),ssFallback:n.ssFallback&&tp(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Lt(n=" ",e=0){return di(SL,null,n,e)}function cR(n,e){const t=di(Cw,null,n);return t.staticCount=e,t}function ft(n="",e=!1){return e?(oe(),ps(af,null,n)):di(af,null,n)}function nl(n){return n==null||typeof n=="boolean"?di(af):bt(n)?di(Di,null,n.slice()):typeof n=="object"?Ed(n):di(SL,null,String(n))}function Ed(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:tp(n)}function dR(n,e){let t=0;const{shapeFlag:i}=n;if(e==null)e=null;else if(bt(e))t=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),dR(n,s()),s._c&&(s._d=!0));return}else{t=32;const s=e._;!s&&!(LL in e)?e._ctx=jr:s===3&&jr&&(jr.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else $t(e)?(e={default:e,_ctx:jr},t=32):(e=String(e),i&64?(t=16,e=[Lt(e)]):t=8);n.children=e,n.shapeFlag|=t}function yee(...n){const e={};for(let t=0;tPs=n),uR=n=>{Ig.length>1?Ig.forEach(e=>e(n)):Ig[0](n)};const ip=n=>{uR(n),n.scope.on()},Hh=()=>{Ps&&Ps.scope.off(),uR(null)};function eW(n){return n.vnode.shapeFlag&4}let mv=!1;function xee(n,e=!1){mv=e;const{props:t,children:i}=n.vnode,s=eW(n);cee(n,t,s,e),hee(n,i);const o=s?Eee(n,e):void 0;return mv=!1,o}function Eee(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=xV(new Proxy(n.ctx,tee));const{setup:i}=t;if(i){const s=n.setupContext=i.length>1?Iee(n):null;ip(n),t_();const o=Ud(i,n,0,[n.props,s]);if(i_(),Hh(),lV(o)){if(o.then(Hh,Hh),e)return o.then(r=>{SF(n,r,e)}).catch(r=>{vL(r,n,0)});n.asyncDep=o}else SF(n,o,e)}else tW(n,e)}function SF(n,e,t){$t(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:nn(e)&&(n.setupState=NV(e)),tW(n,t)}let LF;function tW(n,e,t){const i=n.type;if(!n.render){if(!e&&LF&&!i.render){const s=i.template||aR(n).template;if(s){const{isCustomElement:o,compilerOptions:r}=n.appContext.config,{delimiters:a,compilerOptions:l}=i,c=Hs(Hs({isCustomElement:o,delimiters:a},r),l);i.render=LF(s,c)}}n.render=i.render||La}{ip(n),t_();try{iee(n)}finally{i_(),Hh()}}}function Dee(n){return n.attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get(e,t){return Go(n,"get","$attrs"),e[t]}}))}function Iee(n){const e=t=>{n.exposed=t||{}};return{get attrs(){return Dee(n)},slots:n.slots,emit:n.emit,expose:e}}function kL(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(NV(xV(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in kb)return kb[t](n)},has(e,t){return t in e||t in kb}}))}function Nee(n,e=!0){return $t(n)?n.displayName||n.name:n.name||e&&n.__name}function Tee(n){return $t(n)&&"__vccOpts"in n}const gs=(n,e)=>EJ(n,e,mv);function hR(n,e,t){const i=arguments.length;return i===2?nn(e)&&!bt(e)?n2(e)?di(n,null,[e]):di(n,e):di(n,null,e):(i>3?t=Array.prototype.slice.call(arguments,2):i===3&&n2(t)&&(t=[t]),di(n,e,t))}const Aee=Symbol.for("v-scx"),Mee=()=>Nc(Aee),Ree="3.3.8",Pee="http://www.w3.org/2000/svg",mh=typeof document<"u"?document:null,kF=mh&&mh.createElement("template"),Oee={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,i)=>{const s=e?mh.createElementNS(Pee,n):mh.createElement(n,t?{is:t}:void 0);return n==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:n=>mh.createTextNode(n),createComment:n=>mh.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>mh.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,i,s,o){const r=t?t.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===o||!(s=s.nextSibling)););else{kF.innerHTML=i?`${n}`:n;const a=kF.content;if(i){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[r?r.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Fee=Symbol("_vtc");function Bee(n,e,t){const i=n[Fee];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const fR=Symbol("_vod"),pv={beforeMount(n,{value:e},{transition:t}){n[fR]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):R_(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:i}){!e!=!t&&(i?e?(i.beforeEnter(n),R_(n,!0),i.enter(n)):i.leave(n,()=>{R_(n,!1)}):R_(n,e))},beforeUnmount(n,{value:e}){R_(n,e)}};function R_(n,e){n.style.display=e?n[fR]:"none"}function Vee(n,e,t){const i=n.style,s=bs(t);if(t&&!s){if(e&&!bs(e))for(const o in e)t[o]==null&&s2(i,o,"");for(const o in t)s2(i,o,t[o])}else{const o=i.display;s?e!==t&&(i.cssText=t):e&&n.removeAttribute("style"),fR in n&&(i.display=o)}}const xF=/\s*!important$/;function s2(n,e,t){if(bt(t))t.forEach(i=>s2(n,e,i));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const i=Wee(n,e);xF.test(t)?n.setProperty(Yf(i),t.replace(xF,""),"important"):n[i]=t}}const EF=["Webkit","Moz","ms"],oE={};function Wee(n,e){const t=oE[e];if(t)return t;let i=Nl(e);if(i!=="filter"&&i in n)return oE[e]=i;i=pL(i);for(let s=0;srE||(qee.then(()=>rE=0),rE=Date.now());function Gee(n,e){const t=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=t.attached)return;ka(Yee(i,t.value),e,5,[i])};return t.value=n,t.attached=Kee(),t}function Yee(n,e){if(bt(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const TF=/^on[a-z]/,Zee=(n,e,t,i,s=!1,o,r,a,l)=>{e==="class"?Bee(n,i,s):e==="style"?Vee(n,t,i):gL(e)?GM(e)||Uee(n,e,t,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Xee(n,e,i,s))?zee(n,e,i,o,r,a,l):(e==="true-value"?n._trueValue=i:e==="false-value"&&(n._falseValue=i),Hee(n,e,i,s))};function Xee(n,e,t,i){return i?!!(e==="innerHTML"||e==="textContent"||e in n&&TF.test(e)&&$t(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA"||TF.test(e)&&bs(t)?!1:e in n}const np=n=>{const e=n.props["onUpdate:modelValue"]||!1;return bt(e)?t=>_w(e,t):e};function Qee(n){n.target.composing=!0}function AF(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Tc=Symbol("_assign"),Yi={created(n,{modifiers:{lazy:e,trim:t,number:i}},s){n[Tc]=np(s);const o=i||s.props&&s.props.type==="number";Td(n,e?"change":"input",r=>{if(r.target.composing)return;let a=n.value;t&&(a=a.trim()),o&&(a=py(a)),n[Tc](a)}),t&&Td(n,"change",()=>{n.value=n.value.trim()}),e||(Td(n,"compositionstart",Qee),Td(n,"compositionend",AF),Td(n,"change",AF))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,modifiers:{lazy:t,trim:i,number:s}},o){if(n[Tc]=np(o),n.composing||document.activeElement===n&&n.type!=="range"&&(t||i&&n.value.trim()===e||(s||n.type==="number")&&py(n.value)===e))return;const r=e??"";n.value!==r&&(n.value=r)}},o2={deep:!0,created(n,e,t){n[Tc]=np(t),Td(n,"change",()=>{const i=n._modelValue,s=_v(n),o=n.checked,r=n[Tc];if(bt(i)){const a=XM(i,s),l=a!==-1;if(o&&!l)r(i.concat(s));else if(!o&&l){const c=[...i];c.splice(a,1),r(c)}}else if(e_(i)){const a=new Set(i);o?a.add(s):a.delete(s),r(a)}else r(nW(n,o))})},mounted:MF,beforeUpdate(n,e,t){n[Tc]=np(t),MF(n,e,t)}};function MF(n,{value:e,oldValue:t},i){n._modelValue=e,bt(e)?n.checked=XM(e,i.props.value)>-1:e_(e)?n.checked=e.has(i.props.value):e!==t&&(n.checked=z1(e,nW(n,!0)))}const iW={deep:!0,created(n,{value:e,modifiers:{number:t}},i){const s=e_(e);Td(n,"change",()=>{const o=Array.prototype.filter.call(n.options,r=>r.selected).map(r=>t?py(_v(r)):_v(r));n[Tc](n.multiple?s?new Set(o):o:o[0])}),n[Tc]=np(i)},mounted(n,{value:e}){RF(n,e)},beforeUpdate(n,e,t){n[Tc]=np(t)},updated(n,{value:e}){RF(n,e)}};function RF(n,e){const t=n.multiple;if(!(t&&!bt(e)&&!e_(e))){for(let i=0,s=n.options.length;i-1:o.selected=e.has(r);else if(z1(_v(o),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function _v(n){return"_value"in n?n._value:n.value}function nW(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const Jee=["ctrl","shift","alt","meta"],ete={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>Jee.some(t=>n[`${t}Key`]&&!e.includes(t))},xL=(n,e)=>(t,...i)=>{for(let s=0;st=>{if(!("key"in t))return;const i=Yf(t.key);if(e.some(s=>s===i||tte[s]===i))return n(t)},nte=Hs({patchProp:Zee},Oee);let PF;function ste(){return PF||(PF=gee(nte))}const ote=(...n)=>{const e=ste().createApp(...n),{mount:t}=e;return e.mount=i=>{const s=rte(i);if(!s)return;const o=e._component;!$t(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const r=t(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},e};function rte(n){return bs(n)?document.querySelector(n):n}const Li=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},ate={},sW=n=>(Gn("data-v-8c2e4286"),n=n(),Yn(),n),lte={id:"footer-container",class:"container"},cte=sW(()=>k("div",null,"Copyright © 2023 Triangle choke.",-1)),dte=sW(()=>k("div",null,"All rights reserved.",-1)),ute=[cte,dte];function hte(n,e,t,i,s,o){return oe(),ce("div",lte,ute)}const fte=Li(ate,[["render",hte],["__scopeId","data-v-8c2e4286"]]),oW="/images/logo.gif";const gte={name:"App",components:{FooterBar:fte},methods:{goHome(){this.$router.push({path:"/"})}}},mte={class:"container"};function pte(n,e,t,i,s,o){const r=yi("router-view"),a=yi("FooterBar");return oe(),ce("main",mte,[k("img",{id:"main-logo",src:oW,alt:"logo",onClick:e[0]||(e[0]=(...l)=>o.goHome&&o.goHome(...l))}),di(r,{style:{"min-width":"1280px"}}),di(a)])}const _te=Li(gte,[["render",pte]]);/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const Xg=typeof window<"u";function bte(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const Bi=Object.assign;function aE(n,e){const t={};for(const i in e){const s=e[i];t[i]=Na(s)?s.map(n):n(s)}return t}const Eb=()=>{},Na=Array.isArray,vte=/\/$/,Cte=n=>n.replace(vte,"");function lE(n,e,t="/"){let i,s={},o="",r="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(i=e.slice(0,l),o=e.slice(l+1,a>-1?a:e.length),s=n(o)),a>-1&&(i=i||e.slice(0,a),r=e.slice(a,e.length)),i=Lte(i??e,t),{fullPath:i+(o&&"?")+o+r,path:i,query:s,hash:r}}function wte(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function OF(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function yte(n,e,t){const i=e.matched.length-1,s=t.matched.length-1;return i>-1&&i===s&&sp(e.matched[i],t.matched[s])&&rW(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function sp(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function rW(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!Ste(n[t],e[t]))return!1;return!0}function Ste(n,e){return Na(n)?FF(n,e):Na(e)?FF(e,n):n===e}function FF(n,e){return Na(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function Lte(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let o=t.length-1,r,a;for(r=0;r1&&o--;else break;return t.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var bv;(function(n){n.pop="pop",n.push="push"})(bv||(bv={}));var Db;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Db||(Db={}));function kte(n){if(!n)if(Xg){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Cte(n)}const xte=/^[^#]+#/;function Ete(n,e){return n.replace(xte,"#")+e}function Dte(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const EL=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ite(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),s=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!s)return;e=Dte(s,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function BF(n,e){return(history.state?history.state.position-e:-1)+n}const r2=new Map;function Nte(n,e){r2.set(n,e)}function Tte(n){const e=r2.get(n);return r2.delete(n),e}let Ate=()=>location.protocol+"//"+location.host;function aW(n,e){const{pathname:t,search:i,hash:s}=e,o=n.indexOf("#");if(o>-1){let a=s.includes(n.slice(o))?n.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),OF(l,"")}return OF(t,n)+i+s}function Mte(n,e,t,i){let s=[],o=[],r=null;const a=({state:h})=>{const f=aW(n,location),g=t.value,_=e.value;let b=0;if(h){if(t.value=f,e.value=h,r&&r===g){r=null;return}b=_?h.position-_.position:0}else i(f);s.forEach(v=>{v(t.value,g,{delta:b,type:bv.pop,direction:b?b>0?Db.forward:Db.back:Db.unknown})})};function l(){r=t.value}function c(h){s.push(h);const f=()=>{const g=s.indexOf(h);g>-1&&s.splice(g,1)};return o.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Bi({},h.state,{scroll:EL()}),"")}function u(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function VF(n,e,t,i=!1,s=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:s?EL():null}}function Rte(n){const{history:e,location:t}=window,i={value:aW(n,t)},s={value:e.state};s.value||o(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,c,d){const u=n.indexOf("#"),h=u>-1?(t.host&&document.querySelector("base")?n:n.slice(u))+l:Ate()+n+l;try{e[d?"replaceState":"pushState"](c,"",h),s.value=c}catch(f){console.error(f),t[d?"replace":"assign"](h)}}function r(l,c){const d=Bi({},e.state,VF(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});o(l,d,!0),i.value=l}function a(l,c){const d=Bi({},s.value,e.state,{forward:l,scroll:EL()});o(d.current,d,!0);const u=Bi({},VF(i.value,l,null),{position:d.position+1},c);o(l,u,!1),i.value=l}return{location:i,state:s,push:a,replace:r}}function Pte(n){n=kte(n);const e=Rte(n),t=Mte(n,e.state,e.location,e.replace);function i(o,r=!0){r||t.pauseListeners(),history.go(o)}const s=Bi({location:"",base:n,go:i,createHref:Ete.bind(null,n)},e,t);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function Ote(n){return typeof n=="string"||n&&typeof n=="object"}function lW(n){return typeof n=="string"||typeof n=="symbol"}const dd={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},cW=Symbol("");var WF;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(WF||(WF={}));function op(n,e){return Bi(new Error,{type:n,[cW]:!0},e)}function Ql(n,e){return n instanceof Error&&cW in n&&(e==null||!!(n.type&e))}const HF="[^/]+?",Fte={sensitive:!1,strict:!1,start:!0,end:!0},Bte=/[.+*?^${}()[\]/\\]/g;function Vte(n,e){const t=Bi({},Fte,e),i=[];let s=t.start?"^":"";const o=[];for(const c of n){const d=c.length?[]:[90];t.strict&&!c.length&&(s+="/");for(let u=0;ue.length?e.length===1&&e[0]===40+40?1:-1:0}function Hte(n,e){let t=0;const i=n.score,s=e.score;for(;t0&&e[e.length-1]<0}const zte={type:0,value:""},$te=/[a-zA-Z0-9_]/;function Ute(n){if(!n)return[[]];if(n==="/")return[[zte]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(f){throw new Error(`ERR (${t})/"${c}": ${f}`)}let t=0,i=t;const s=[];let o;function r(){o&&s.push(o),o=[]}let a=0,l,c="",d="";function u(){c&&(t===0?o.push({type:0,value:c}):t===1||t===2||t===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{r(C)}:Eb}function r(d){if(lW(d)){const u=i.get(d);u&&(i.delete(d),t.splice(t.indexOf(u),1),u.children.forEach(r),u.alias.forEach(r))}else{const u=t.indexOf(d);u>-1&&(t.splice(u,1),d.record.name&&i.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function a(){return t}function l(d){let u=0;for(;u=0&&(d.record.path!==t[u].record.path||!dW(d,t[u]));)u++;t.splice(u,0,d),d.record.name&&!UF(d)&&i.set(d.record.name,d)}function c(d,u){let h,f={},g,_;if("name"in d&&d.name){if(h=i.get(d.name),!h)throw op(1,{location:d});_=h.record.name,f=Bi($F(u.params,h.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&$F(d.params,h.keys.map(C=>C.name))),g=h.stringify(f)}else if("path"in d)g=d.path,h=t.find(C=>C.re.test(g)),h&&(f=h.parse(g),_=h.record.name);else{if(h=u.name?i.get(u.name):t.find(C=>C.re.test(u.path)),!h)throw op(1,{location:d,currentLocation:u});_=h.record.name,f=Bi({},u.params,d.params),g=h.stringify(f)}const b=[];let v=h;for(;v;)b.unshift(v.record),v=v.parent;return{name:_,path:g,params:f,matched:b,meta:Yte(b)}}return n.forEach(d=>o(d)),{addRoute:o,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:s}}function $F(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Kte(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:Gte(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function Gte(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function UF(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function Yte(n){return n.reduce((e,t)=>Bi(e,t.meta),{})}function jF(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function dW(n,e){return e.children.some(t=>t===n||dW(n,t))}const uW=/#/g,Zte=/&/g,Xte=/\//g,Qte=/=/g,Jte=/\?/g,hW=/\+/g,eie=/%5B/g,tie=/%5D/g,fW=/%5E/g,iie=/%60/g,gW=/%7B/g,nie=/%7C/g,mW=/%7D/g,sie=/%20/g;function gR(n){return encodeURI(""+n).replace(nie,"|").replace(eie,"[").replace(tie,"]")}function oie(n){return gR(n).replace(gW,"{").replace(mW,"}").replace(fW,"^")}function a2(n){return gR(n).replace(hW,"%2B").replace(sie,"+").replace(uW,"%23").replace(Zte,"%26").replace(iie,"`").replace(gW,"{").replace(mW,"}").replace(fW,"^")}function rie(n){return a2(n).replace(Qte,"%3D")}function aie(n){return gR(n).replace(uW,"%23").replace(Jte,"%3F")}function lie(n){return n==null?"":aie(n).replace(Xte,"%2F")}function yy(n){try{return decodeURIComponent(""+n)}catch{}return""+n}function cie(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let s=0;so&&a2(o)):[i&&a2(i)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+t,o!=null&&(e+="="+o))})}return e}function die(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Na(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return e}const uie=Symbol(""),KF=Symbol(""),mR=Symbol(""),pW=Symbol(""),l2=Symbol("");function P_(){let n=[];function e(i){return n.push(i),()=>{const s=n.indexOf(i);s>-1&&n.splice(s,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function Dd(n,e,t,i,s){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((r,a)=>{const l=u=>{u===!1?a(op(4,{from:t,to:e})):u instanceof Error?a(u):Ote(u)?a(op(2,{from:e,to:u})):(o&&i.enterCallbacks[s]===o&&typeof u=="function"&&o.push(u),r())},c=n.call(i&&i.instances[s],e,t,l);let d=Promise.resolve(c);n.length<3&&(d=d.then(l)),d.catch(u=>a(u))})}function cE(n,e,t,i){const s=[];for(const o of n)for(const r in o.components){let a=o.components[r];if(!(e!=="beforeRouteEnter"&&!o.instances[r]))if(hie(a)){const c=(a.__vccOpts||a)[e];c&&s.push(Dd(c,t,i,o,r))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${o.path}"`));const d=bte(c)?c.default:c;o.components[r]=d;const h=(d.__vccOpts||d)[e];return h&&Dd(h,t,i,o,r)()}))}}return s}function hie(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function GF(n){const e=Nc(mR),t=Nc(pW),i=gs(()=>e.resolve(Nm(n.to))),s=gs(()=>{const{matched:l}=i.value,{length:c}=l,d=l[c-1],u=t.matched;if(!d||!u.length)return-1;const h=u.findIndex(sp.bind(null,d));if(h>-1)return h;const f=YF(l[c-2]);return c>1&&YF(d)===f&&u[u.length-1].path!==f?u.findIndex(sp.bind(null,l[c-2])):h}),o=gs(()=>s.value>-1&&pie(t.params,i.value.params)),r=gs(()=>s.value>-1&&s.value===t.matched.length-1&&rW(t.params,i.value.params));function a(l={}){return mie(l)?e[Nm(n.replace)?"replace":"push"](Nm(n.to)).catch(Eb):Promise.resolve()}return{route:i,href:gs(()=>i.value.href),isActive:o,isExactActive:r,navigate:a}}const fie=$1({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:GF,setup(n,{slots:e}){const t=bL(GF(n)),{options:i}=Nc(mR),s=gs(()=>({[ZF(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[ZF(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const o=e.default&&e.default(t);return n.custom?o:hR("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:s.value},o)}}}),gie=fie;function mie(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function pie(n,e){for(const t in e){const i=e[t],s=n[t];if(typeof i=="string"){if(i!==s)return!1}else if(!Na(s)||s.length!==i.length||i.some((o,r)=>o!==s[r]))return!1}return!0}function YF(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const ZF=(n,e,t)=>n??e??t,_ie=$1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=Nc(l2),s=gs(()=>n.route||i.value),o=Nc(KF,0),r=gs(()=>{let c=Nm(o);const{matched:d}=s.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=gs(()=>s.value.matched[r.value]);vw(KF,gs(()=>r.value+1)),vw(uie,a),vw(l2,s);const l=CJ();return Lb(()=>[l.value,a.value,n.name],([c,d,u],[h,f,g])=>{d&&(d.instances[u]=c,f&&f!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),c&&d&&(!f||!sp(d,f)||!h)&&(d.enterCallbacks[u]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=s.value,d=n.name,u=a.value,h=u&&u.components[d];if(!h)return XF(t.default,{Component:h,route:c});const f=u.props[d],g=f?f===!0?c.params:typeof f=="function"?f(c):f:null,b=hR(h,Bi({},g,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return XF(t.default,{Component:b,route:c})||b}}});function XF(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const bie=_ie;function vie(n){const e=qte(n.routes,n),t=n.parseQuery||cie,i=n.stringifyQuery||qF,s=n.history,o=P_(),r=P_(),a=P_(),l=wJ(dd);let c=dd;Xg&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=aE.bind(null,fe=>""+fe),u=aE.bind(null,lie),h=aE.bind(null,yy);function f(fe,$e){let We,Ge;return lW(fe)?(We=e.getRecordMatcher(fe),Ge=$e):Ge=fe,e.addRoute(Ge,We)}function g(fe){const $e=e.getRecordMatcher(fe);$e&&e.removeRoute($e)}function _(){return e.getRoutes().map(fe=>fe.record)}function b(fe){return!!e.getRecordMatcher(fe)}function v(fe,$e){if($e=Bi({},$e||l.value),typeof fe=="string"){const ie=lE(t,fe,$e.path),he=e.resolve({path:ie.path},$e),be=s.createHref(ie.fullPath);return Bi(ie,he,{params:h(he.params),hash:yy(ie.hash),redirectedFrom:void 0,href:be})}let We;if("path"in fe)We=Bi({},fe,{path:lE(t,fe.path,$e.path).path});else{const ie=Bi({},fe.params);for(const he in ie)ie[he]==null&&delete ie[he];We=Bi({},fe,{params:u(ie)}),$e.params=u($e.params)}const Ge=e.resolve(We,$e),Me=fe.hash||"";Ge.params=d(h(Ge.params));const q=wte(i,Bi({},fe,{hash:oie(Me),path:Ge.path})),Y=s.createHref(q);return Bi({fullPath:q,hash:Me,query:i===qF?die(fe.query):fe.query||{}},Ge,{redirectedFrom:void 0,href:Y})}function C(fe){return typeof fe=="string"?lE(t,fe,l.value.path):Bi({},fe)}function y(fe,$e){if(c!==fe)return op(8,{from:$e,to:fe})}function S(fe){return E(fe)}function x(fe){return S(Bi(C(fe),{replace:!0}))}function A(fe){const $e=fe.matched[fe.matched.length-1];if($e&&$e.redirect){const{redirect:We}=$e;let Ge=typeof We=="function"?We(fe):We;return typeof Ge=="string"&&(Ge=Ge.includes("?")||Ge.includes("#")?Ge=C(Ge):{path:Ge},Ge.params={}),Bi({query:fe.query,hash:fe.hash,params:"path"in Ge?{}:fe.params},Ge)}}function E(fe,$e){const We=c=v(fe),Ge=l.value,Me=fe.state,q=fe.force,Y=fe.replace===!0,ie=A(We);if(ie)return E(Bi(C(ie),{state:typeof ie=="object"?Bi({},Me,ie.state):Me,force:q,replace:Y}),$e||We);const he=We;he.redirectedFrom=$e;let be;return!q&&yte(i,Ge,We)&&(be=op(16,{to:he,from:Ge}),yt(Ge,Ge,!0,!1)),(be?Promise.resolve(be):$(he,Ge)).catch(we=>Ql(we)?Ql(we,2)?we:Ke(we):De(we,he,Ge)).then(we=>{if(we){if(Ql(we,2))return E(Bi({replace:Y},C(we.to),{state:typeof we.to=="object"?Bi({},Me,we.to.state):Me,force:q}),$e||he)}else we=ee(he,Ge,!0,Y,Me);return z(he,Ge,we),we})}function D(fe,$e){const We=y(fe,$e);return We?Promise.reject(We):Promise.resolve()}function P(fe){const $e=Ct.values().next().value;return $e&&typeof $e.runWithContext=="function"?$e.runWithContext(fe):fe()}function $(fe,$e){let We;const[Ge,Me,q]=Cie(fe,$e);We=cE(Ge.reverse(),"beforeRouteLeave",fe,$e);for(const ie of Ge)ie.leaveGuards.forEach(he=>{We.push(Dd(he,fe,$e))});const Y=D.bind(null,fe,$e);return We.push(Y),Ut(We).then(()=>{We=[];for(const ie of o.list())We.push(Dd(ie,fe,$e));return We.push(Y),Ut(We)}).then(()=>{We=cE(Me,"beforeRouteUpdate",fe,$e);for(const ie of Me)ie.updateGuards.forEach(he=>{We.push(Dd(he,fe,$e))});return We.push(Y),Ut(We)}).then(()=>{We=[];for(const ie of q)if(ie.beforeEnter)if(Na(ie.beforeEnter))for(const he of ie.beforeEnter)We.push(Dd(he,fe,$e));else We.push(Dd(ie.beforeEnter,fe,$e));return We.push(Y),Ut(We)}).then(()=>(fe.matched.forEach(ie=>ie.enterCallbacks={}),We=cE(q,"beforeRouteEnter",fe,$e),We.push(Y),Ut(We))).then(()=>{We=[];for(const ie of r.list())We.push(Dd(ie,fe,$e));return We.push(Y),Ut(We)}).catch(ie=>Ql(ie,8)?ie:Promise.reject(ie))}function z(fe,$e,We){a.list().forEach(Ge=>P(()=>Ge(fe,$e,We)))}function ee(fe,$e,We,Ge,Me){const q=y(fe,$e);if(q)return q;const Y=$e===dd,ie=Xg?history.state:{};We&&(Ge||Y?s.replace(fe.fullPath,Bi({scroll:Y&&ie&&ie.scroll},Me)):s.push(fe.fullPath,Me)),l.value=fe,yt(fe,$e,We,Y),Ke()}let Q;function Ee(){Q||(Q=s.listen((fe,$e,We)=>{if(!se.listening)return;const Ge=v(fe),Me=A(Ge);if(Me){E(Bi(Me,{replace:!0}),Ge).catch(Eb);return}c=Ge;const q=l.value;Xg&&Nte(BF(q.fullPath,We.delta),EL()),$(Ge,q).catch(Y=>Ql(Y,12)?Y:Ql(Y,2)?(E(Y.to,Ge).then(ie=>{Ql(ie,20)&&!We.delta&&We.type===bv.pop&&s.go(-1,!1)}).catch(Eb),Promise.reject()):(We.delta&&s.go(-We.delta,!1),De(Y,Ge,q))).then(Y=>{Y=Y||ee(Ge,q,!1),Y&&(We.delta&&!Ql(Y,8)?s.go(-We.delta,!1):We.type===bv.pop&&Ql(Y,20)&&s.go(-1,!1)),z(Ge,q,Y)}).catch(Eb)}))}let ye=P_(),ke=P_(),Se;function De(fe,$e,We){Ke(fe);const Ge=ke.list();return Ge.length?Ge.forEach(Me=>Me(fe,$e,We)):console.error(fe),Promise.reject(fe)}function tt(){return Se&&l.value!==dd?Promise.resolve():new Promise((fe,$e)=>{ye.add([fe,$e])})}function Ke(fe){return Se||(Se=!fe,Ee(),ye.list().forEach(([$e,We])=>fe?We(fe):$e()),ye.reset()),fe}function yt(fe,$e,We,Ge){const{scrollBehavior:Me}=n;if(!Xg||!Me)return Promise.resolve();const q=!We&&Tte(BF(fe.fullPath,0))||(Ge||!We)&&history.state&&history.state.scroll||null;return MV().then(()=>Me(fe,$e,q)).then(Y=>Y&&Ite(Y)).catch(Y=>De(Y,fe,$e))}const Ie=fe=>s.go(fe);let Oe;const Ct=new Set,se={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,hasRoute:b,getRoutes:_,resolve:v,options:n,push:S,replace:x,go:Ie,back:()=>Ie(-1),forward:()=>Ie(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:ke.add,isReady:tt,install(fe){const $e=this;fe.component("RouterLink",gie),fe.component("RouterView",bie),fe.config.globalProperties.$router=$e,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>Nm(l)}),Xg&&!Oe&&l.value===dd&&(Oe=!0,S(s.location).catch(Me=>{}));const We={};for(const Me in dd)Object.defineProperty(We,Me,{get:()=>l.value[Me],enumerable:!0});fe.provide(mR,$e),fe.provide(pW,SV(We)),fe.provide(l2,l);const Ge=fe.unmount;Ct.add(fe),fe.unmount=function(){Ct.delete(fe),Ct.size<1&&(c=dd,Q&&Q(),Q=null,l.value=dd,Oe=!1,Se=!1),Ge()}}};function Ut(fe){return fe.reduce(($e,We)=>$e.then(()=>P(We)),Promise.resolve())}return se}function Cie(n,e){const t=[],i=[],s=[],o=Math.max(e.matched.length,n.matched.length);for(let r=0;rsp(c,a))?i.push(a):t.push(a));const l=n.matched[r];l&&(e.matched.find(c=>sp(c,l))||s.push(l))}return[t,i,s]}function _W(n,e){return function(){return n.apply(e,arguments)}}const{toString:wie}=Object.prototype,{getPrototypeOf:pR}=Object,DL=(n=>e=>{const t=wie.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),zl=n=>(n=n.toLowerCase(),e=>DL(e)===n),IL=n=>e=>typeof e===n,{isArray:n_}=Array,vv=IL("undefined");function yie(n){return n!==null&&!vv(n)&&n.constructor!==null&&!vv(n.constructor)&&Kr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const bW=zl("ArrayBuffer");function Sie(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&bW(n.buffer),e}const Lie=IL("string"),Kr=IL("function"),vW=IL("number"),NL=n=>n!==null&&typeof n=="object",kie=n=>n===!0||n===!1,yw=n=>{if(DL(n)!=="object")return!1;const e=pR(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},xie=zl("Date"),Eie=zl("File"),Die=zl("Blob"),Iie=zl("FileList"),Nie=n=>NL(n)&&Kr(n.pipe),Tie=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Kr(n.append)&&((e=DL(n))==="formdata"||e==="object"&&Kr(n.toString)&&n.toString()==="[object FormData]"))},Aie=zl("URLSearchParams"),Mie=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function U1(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let i,s;if(typeof n!="object"&&(n=[n]),n_(n))for(i=0,s=n.length;i0;)if(s=t[i],e===s.toLowerCase())return s;return null}const wW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yW=n=>!vv(n)&&n!==wW;function c2(){const{caseless:n}=yW(this)&&this||{},e={},t=(i,s)=>{const o=n&&CW(e,s)||s;yw(e[o])&&yw(i)?e[o]=c2(e[o],i):yw(i)?e[o]=c2({},i):n_(i)?e[o]=i.slice():e[o]=i};for(let i=0,s=arguments.length;i(U1(e,(s,o)=>{t&&Kr(s)?n[o]=_W(s,t):n[o]=s},{allOwnKeys:i}),n),Pie=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Oie=(n,e,t,i)=>{n.prototype=Object.create(e.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},Fie=(n,e,t,i)=>{let s,o,r;const a={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),o=s.length;o-- >0;)r=s[o],(!i||i(r,n,e))&&!a[r]&&(e[r]=n[r],a[r]=!0);n=t!==!1&&pR(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},Bie=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const i=n.indexOf(e,t);return i!==-1&&i===t},Vie=n=>{if(!n)return null;if(n_(n))return n;let e=n.length;if(!vW(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},Wie=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&pR(Uint8Array)),Hie=(n,e)=>{const i=(n&&n[Symbol.iterator]).call(n);let s;for(;(s=i.next())&&!s.done;){const o=s.value;e.call(n,o[0],o[1])}},zie=(n,e)=>{let t;const i=[];for(;(t=n.exec(e))!==null;)i.push(t);return i},$ie=zl("HTMLFormElement"),Uie=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,s){return i.toUpperCase()+s}),QF=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),jie=zl("RegExp"),SW=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),i={};U1(t,(s,o)=>{let r;(r=e(s,o,n))!==!1&&(i[o]=r||s)}),Object.defineProperties(n,i)},qie=n=>{SW(n,(e,t)=>{if(Kr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=n[t];if(Kr(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Kie=(n,e)=>{const t={},i=s=>{s.forEach(o=>{t[o]=!0})};return n_(n)?i(n):i(String(n).split(e)),t},Gie=()=>{},Yie=(n,e)=>(n=+n,Number.isFinite(n)?n:e),dE="abcdefghijklmnopqrstuvwxyz",JF="0123456789",LW={DIGIT:JF,ALPHA:dE,ALPHA_DIGIT:dE+dE.toUpperCase()+JF},Zie=(n=16,e=LW.ALPHA_DIGIT)=>{let t="";const{length:i}=e;for(;n--;)t+=e[Math.random()*i|0];return t};function Xie(n){return!!(n&&Kr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Qie=n=>{const e=new Array(10),t=(i,s)=>{if(NL(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const o=n_(i)?[]:{};return U1(i,(r,a)=>{const l=t(r,s+1);!vv(l)&&(o[a]=l)}),e[s]=void 0,o}}return i};return t(n,0)},Jie=zl("AsyncFunction"),ene=n=>n&&(NL(n)||Kr(n))&&Kr(n.then)&&Kr(n.catch),Ce={isArray:n_,isArrayBuffer:bW,isBuffer:yie,isFormData:Tie,isArrayBufferView:Sie,isString:Lie,isNumber:vW,isBoolean:kie,isObject:NL,isPlainObject:yw,isUndefined:vv,isDate:xie,isFile:Eie,isBlob:Die,isRegExp:jie,isFunction:Kr,isStream:Nie,isURLSearchParams:Aie,isTypedArray:Wie,isFileList:Iie,forEach:U1,merge:c2,extend:Rie,trim:Mie,stripBOM:Pie,inherits:Oie,toFlatObject:Fie,kindOf:DL,kindOfTest:zl,endsWith:Bie,toArray:Vie,forEachEntry:Hie,matchAll:zie,isHTMLForm:$ie,hasOwnProperty:QF,hasOwnProp:QF,reduceDescriptors:SW,freezeMethods:qie,toObjectSet:Kie,toCamelCase:Uie,noop:Gie,toFiniteNumber:Yie,findKey:CW,global:wW,isContextDefined:yW,ALPHABET:LW,generateString:Zie,isSpecCompliantForm:Xie,toJSONObject:Qie,isAsyncFn:Jie,isThenable:ene};function mi(n,e,t,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),s&&(this.response=s)}Ce.inherits(mi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kW=mi.prototype,xW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{xW[n]={value:n}});Object.defineProperties(mi,xW);Object.defineProperty(kW,"isAxiosError",{value:!0});mi.from=(n,e,t,i,s,o)=>{const r=Object.create(kW);return Ce.toFlatObject(n,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),mi.call(r,n.message,e,t,i,s),r.cause=n,r.name=n.name,o&&Object.assign(r,o),r};const tne=null;function d2(n){return Ce.isPlainObject(n)||Ce.isArray(n)}function EW(n){return Ce.endsWith(n,"[]")?n.slice(0,-2):n}function e3(n,e,t){return n?n.concat(e).map(function(s,o){return s=EW(s),!t&&o?"["+s+"]":s}).join(t?".":""):e}function ine(n){return Ce.isArray(n)&&!n.some(d2)}const nne=Ce.toFlatObject(Ce,{},null,function(e){return/^is[A-Z]/.test(e)});function TL(n,e,t){if(!Ce.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Ce.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!Ce.isUndefined(b[_])});const i=t.metaTokens,s=t.visitor||d,o=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&Ce.isSpecCompliantForm(e);if(!Ce.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(Ce.isDate(g))return g.toISOString();if(!l&&Ce.isBlob(g))throw new mi("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(g)||Ce.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,_,b){let v=g;if(g&&!b&&typeof g=="object"){if(Ce.endsWith(_,"{}"))_=i?_:_.slice(0,-2),g=JSON.stringify(g);else if(Ce.isArray(g)&&ine(g)||(Ce.isFileList(g)||Ce.endsWith(_,"[]"))&&(v=Ce.toArray(g)))return _=EW(_),v.forEach(function(y,S){!(Ce.isUndefined(y)||y===null)&&e.append(r===!0?e3([_],S,o):r===null?_:_+"[]",c(y))}),!1}return d2(g)?!0:(e.append(e3(b,_,o),c(g)),!1)}const u=[],h=Object.assign(nne,{defaultVisitor:d,convertValue:c,isVisitable:d2});function f(g,_){if(!Ce.isUndefined(g)){if(u.indexOf(g)!==-1)throw Error("Circular reference detected in "+_.join("."));u.push(g),Ce.forEach(g,function(v,C){(!(Ce.isUndefined(v)||v===null)&&s.call(e,v,Ce.isString(C)?C.trim():C,_,h))===!0&&f(v,_?_.concat(C):[C])}),u.pop()}}if(!Ce.isObject(n))throw new TypeError("data must be an object");return f(n),e}function t3(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function _R(n,e){this._pairs=[],n&&TL(n,this,e)}const DW=_R.prototype;DW.append=function(e,t){this._pairs.push([e,t])};DW.toString=function(e){const t=e?function(i){return e.call(this,i,t3)}:t3;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function sne(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IW(n,e,t){if(!e)return n;const i=t&&t.encode||sne,s=t&&t.serialize;let o;if(s?o=s(e,t):o=Ce.isURLSearchParams(e)?e.toString():new _R(e,t).toString(i),o){const r=n.indexOf("#");r!==-1&&(n=n.slice(0,r)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class one{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ce.forEach(this.handlers,function(i){i!==null&&e(i)})}}const i3=one,NW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rne=typeof URLSearchParams<"u"?URLSearchParams:_R,ane=typeof FormData<"u"?FormData:null,lne=typeof Blob<"u"?Blob:null,cne={isBrowser:!0,classes:{URLSearchParams:rne,FormData:ane,Blob:lne},protocols:["http","https","file","blob","url","data"]},TW=typeof window<"u"&&typeof document<"u",dne=(n=>TW&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),une=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),hne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TW,hasStandardBrowserEnv:dne,hasStandardBrowserWebWorkerEnv:une},Symbol.toStringTag,{value:"Module"})),pl={...hne,...cne};function fne(n,e){return TL(n,new pl.classes.URLSearchParams,Object.assign({visitor:function(t,i,s,o){return pl.isNode&&Ce.isBuffer(t)?(this.append(i,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function gne(n){return Ce.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mne(n){const e={},t=Object.keys(n);let i;const s=t.length;let o;for(i=0;i=t.length;return r=!r&&Ce.isArray(s)?s.length:r,l?(Ce.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!a):((!s[r]||!Ce.isObject(s[r]))&&(s[r]=[]),e(t,i,s[r],o)&&Ce.isArray(s[r])&&(s[r]=mne(s[r])),!a)}if(Ce.isFormData(n)&&Ce.isFunction(n.entries)){const t={};return Ce.forEachEntry(n,(i,s)=>{e(gne(i),s,t,0)}),t}return null}function pne(n,e,t){if(Ce.isString(n))try{return(e||JSON.parse)(n),Ce.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(n)}const bR={transitional:NW,adapter:["xhr","http"],transformRequest:[function(e,t){const i=t.getContentType()||"",s=i.indexOf("application/json")>-1,o=Ce.isObject(e);if(o&&Ce.isHTMLForm(e)&&(e=new FormData(e)),Ce.isFormData(e))return s&&s?JSON.stringify(AW(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return fne(e,this.formSerializer).toString();if((a=Ce.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return TL(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||s?(t.setContentType("application/json",!1),pne(e)):e}],transformResponse:[function(e){const t=this.transitional||bR.transitional,i=t&&t.forcedJSONParsing,s=this.responseType==="json";if(e&&Ce.isString(e)&&(i&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(r)throw a.name==="SyntaxError"?mi.from(a,mi.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pl.classes.FormData,Blob:pl.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],n=>{bR.headers[n]={}});const vR=bR,_ne=Ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bne=n=>{const e={};let t,i,s;return n&&n.split(` +`).forEach(function(r){s=r.indexOf(":"),t=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!t||e[t]&&_ne[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},n3=Symbol("internals");function O_(n){return n&&String(n).trim().toLowerCase()}function Sw(n){return n===!1||n==null?n:Ce.isArray(n)?n.map(Sw):String(n)}function vne(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(n);)e[i[1]]=i[2];return e}const Cne=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function uE(n,e,t,i,s){if(Ce.isFunction(i))return i.call(this,e,t);if(s&&(e=t),!!Ce.isString(e)){if(Ce.isString(i))return e.indexOf(i)!==-1;if(Ce.isRegExp(i))return i.test(e)}}function wne(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function yne(n,e){const t=Ce.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+t,{value:function(s,o,r){return this[i].call(this,e,s,o,r)},configurable:!0})})}class AL{constructor(e){e&&this.set(e)}set(e,t,i){const s=this;function o(a,l,c){const d=O_(l);if(!d)throw new Error("header name must be a non-empty string");const u=Ce.findKey(s,d);(!u||s[u]===void 0||c===!0||c===void 0&&s[u]!==!1)&&(s[u||l]=Sw(a))}const r=(a,l)=>Ce.forEach(a,(c,d)=>o(c,d,l));return Ce.isPlainObject(e)||e instanceof this.constructor?r(e,t):Ce.isString(e)&&(e=e.trim())&&!Cne(e)?r(bne(e),t):e!=null&&o(t,e,i),this}get(e,t){if(e=O_(e),e){const i=Ce.findKey(this,e);if(i){const s=this[i];if(!t)return s;if(t===!0)return vne(s);if(Ce.isFunction(t))return t.call(this,s,i);if(Ce.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=O_(e),e){const i=Ce.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||uE(this,this[i],i,t)))}return!1}delete(e,t){const i=this;let s=!1;function o(r){if(r=O_(r),r){const a=Ce.findKey(i,r);a&&(!t||uE(i,i[a],a,t))&&(delete i[a],s=!0)}}return Ce.isArray(e)?e.forEach(o):o(e),s}clear(e){const t=Object.keys(this);let i=t.length,s=!1;for(;i--;){const o=t[i];(!e||uE(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const t=this,i={};return Ce.forEach(this,(s,o)=>{const r=Ce.findKey(i,o);if(r){t[r]=Sw(s),delete t[o];return}const a=e?wne(o):String(o).trim();a!==o&&delete t[o],t[a]=Sw(s),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ce.forEach(this,(i,s)=>{i!=null&&i!==!1&&(t[s]=e&&Ce.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(s=>i.set(s)),i}static accessor(e){const i=(this[n3]=this[n3]={accessors:{}}).accessors,s=this.prototype;function o(r){const a=O_(r);i[a]||(yne(s,r),i[a]=!0)}return Ce.isArray(e)?e.forEach(o):o(e),this}}AL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ce.reduceDescriptors(AL.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}});Ce.freezeMethods(AL);const Ac=AL;function hE(n,e){const t=this||vR,i=e||t,s=Ac.from(i.headers);let o=i.data;return Ce.forEach(n,function(a){o=a.call(t,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function MW(n){return!!(n&&n.__CANCEL__)}function j1(n,e,t){mi.call(this,n??"canceled",mi.ERR_CANCELED,e,t),this.name="CanceledError"}Ce.inherits(j1,mi,{__CANCEL__:!0});function Sne(n,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new mi("Request failed with status code "+t.status,[mi.ERR_BAD_REQUEST,mi.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Lne=pl.hasStandardBrowserEnv?{write(n,e,t,i,s,o){const r=[n+"="+encodeURIComponent(e)];Ce.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),Ce.isString(i)&&r.push("path="+i),Ce.isString(s)&&r.push("domain="+s),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kne(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function xne(n,e){return e?n.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):n}function RW(n,e){return n&&!kne(e)?xne(n,e):e}const Ene=pl.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function s(o){let r=o;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return i=s(window.location.href),function(r){const a=Ce.isString(r)?s(r):r;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}();function Dne(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Ine(n,e){n=n||10;const t=new Array(n),i=new Array(n);let s=0,o=0,r;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),d=i[o];r||(r=c),t[s]=l,i[s]=c;let u=o,h=0;for(;u!==s;)h+=t[u++],u=u%n;if(s=(s+1)%n,s===o&&(o=(o+1)%n),c-r{const o=s.loaded,r=s.lengthComputable?s.total:void 0,a=o-t,l=i(a),c=o<=r;t=o;const d={loaded:o,total:r,progress:r?o/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&c?(r-o)/l:void 0,event:s};d[e?"download":"upload"]=!0,n(d)}}const Nne=typeof XMLHttpRequest<"u",Tne=Nne&&function(n){return new Promise(function(t,i){let s=n.data;const o=Ac.from(n.headers).normalize();let{responseType:r,withXSRFToken:a}=n,l;function c(){n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}let d;if(Ce.isFormData(s)){if(pl.hasStandardBrowserEnv||pl.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[_,...b]=d?d.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([_||"multipart/form-data",...b].join("; "))}}let u=new XMLHttpRequest;if(n.auth){const _=n.auth.username||"",b=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";o.set("Authorization","Basic "+btoa(_+":"+b))}const h=RW(n.baseURL,n.url);u.open(n.method.toUpperCase(),IW(h,n.params,n.paramsSerializer),!0),u.timeout=n.timeout;function f(){if(!u)return;const _=Ac.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:_,config:n,request:u};Sne(function(y){t(y),c()},function(y){i(y),c()},v),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(i(new mi("Request aborted",mi.ECONNABORTED,n,u)),u=null)},u.onerror=function(){i(new mi("Network Error",mi.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||NW;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),i(new mi(b,v.clarifyTimeoutError?mi.ETIMEDOUT:mi.ECONNABORTED,n,u)),u=null},pl.hasStandardBrowserEnv&&(a&&Ce.isFunction(a)&&(a=a(n)),a||a!==!1&&Ene(h))){const _=n.xsrfHeaderName&&n.xsrfCookieName&&Lne.read(n.xsrfCookieName);_&&o.set(n.xsrfHeaderName,_)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&Ce.forEach(o.toJSON(),function(b,v){u.setRequestHeader(v,b)}),Ce.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),r&&r!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",s3(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",s3(n.onUploadProgress)),(n.cancelToken||n.signal)&&(l=_=>{u&&(i(!_||_.type?new j1(null,n,u):_),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal&&(n.signal.aborted?l():n.signal.addEventListener("abort",l)));const g=Dne(h);if(g&&pl.protocols.indexOf(g)===-1){i(new mi("Unsupported protocol "+g+":",mi.ERR_BAD_REQUEST,n));return}u.send(s||null)})},u2={http:tne,xhr:Tne};Ce.forEach(u2,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const o3=n=>`- ${n}`,Ane=n=>Ce.isFunction(n)||n===null||n===!1,PW={getAdapter:n=>{n=Ce.isArray(n)?n:[n];const{length:e}=n;let t,i;const s={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let r=e?o.length>1?`since : +`+o.map(o3).join(` +`):" "+o3(o[0]):"as no adapter specified";throw new mi("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:u2};function fE(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new j1(null,n)}function r3(n){return fE(n),n.headers=Ac.from(n.headers),n.data=hE.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),PW.getAdapter(n.adapter||vR.adapter)(n).then(function(i){return fE(n),i.data=hE.call(n,n.transformResponse,i),i.headers=Ac.from(i.headers),i},function(i){return MW(i)||(fE(n),i&&i.response&&(i.response.data=hE.call(n,n.transformResponse,i.response),i.response.headers=Ac.from(i.response.headers))),Promise.reject(i)})}const a3=n=>n instanceof Ac?n.toJSON():n;function rp(n,e){e=e||{};const t={};function i(c,d,u){return Ce.isPlainObject(c)&&Ce.isPlainObject(d)?Ce.merge.call({caseless:u},c,d):Ce.isPlainObject(d)?Ce.merge({},d):Ce.isArray(d)?d.slice():d}function s(c,d,u){if(Ce.isUndefined(d)){if(!Ce.isUndefined(c))return i(void 0,c,u)}else return i(c,d,u)}function o(c,d){if(!Ce.isUndefined(d))return i(void 0,d)}function r(c,d){if(Ce.isUndefined(d)){if(!Ce.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function a(c,d,u){if(u in e)return i(c,d);if(u in n)return i(void 0,c)}const l={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(c,d)=>s(a3(c),a3(d),!0)};return Ce.forEach(Object.keys(Object.assign({},n,e)),function(d){const u=l[d]||s,h=u(n[d],e[d],d);Ce.isUndefined(h)&&u!==a||(t[d]=h)}),t}const OW="1.6.2",CR={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{CR[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});const l3={};CR.transitional=function(e,t,i){function s(o,r){return"[Axios v"+OW+"] Transitional option '"+o+"'"+r+(i?". "+i:"")}return(o,r,a)=>{if(e===!1)throw new mi(s(r," has been removed"+(t?" in "+t:"")),mi.ERR_DEPRECATED);return t&&!l3[r]&&(l3[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,r,a):!0}};function Mne(n,e,t){if(typeof n!="object")throw new mi("options must be an object",mi.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let s=i.length;for(;s-- >0;){const o=i[s],r=e[o];if(r){const a=n[o],l=a===void 0||r(a,o,n);if(l!==!0)throw new mi("option "+o+" must be "+l,mi.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new mi("Unknown option "+o,mi.ERR_BAD_OPTION)}}const h2={assertOptions:Mne,validators:CR},ud=h2.validators;class Sy{constructor(e){this.defaults=e,this.interceptors={request:new i3,response:new i3}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=rp(this.defaults,t);const{transitional:i,paramsSerializer:s,headers:o}=t;i!==void 0&&h2.assertOptions(i,{silentJSONParsing:ud.transitional(ud.boolean),forcedJSONParsing:ud.transitional(ud.boolean),clarifyTimeoutError:ud.transitional(ud.boolean)},!1),s!=null&&(Ce.isFunction(s)?t.paramsSerializer={serialize:s}:h2.assertOptions(s,{encode:ud.function,serialize:ud.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&Ce.merge(o.common,o[t.method]);o&&Ce.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),t.headers=Ac.concat(r,o);const a=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(t)===!1||(l=l&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let d,u=0,h;if(!l){const g=[r3.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),h=g.length,d=Promise.resolve(t);u{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(a=>{i.subscribe(a),o=a}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},e(function(o,r,a){i.reason||(i.reason=new j1(o,r,a),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new wR(function(s){e=s}),cancel:e}}}const Rne=wR;function Pne(n){return function(t){return n.apply(null,t)}}function One(n){return Ce.isObject(n)&&n.isAxiosError===!0}const f2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(f2).forEach(([n,e])=>{f2[e]=n});const Fne=f2;function FW(n){const e=new Lw(n),t=_W(Lw.prototype.request,e);return Ce.extend(t,Lw.prototype,e,{allOwnKeys:!0}),Ce.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return FW(rp(n,s))},t}const ts=FW(vR);ts.Axios=Lw;ts.CanceledError=j1;ts.CancelToken=Rne;ts.isCancel=MW;ts.VERSION=OW;ts.toFormData=TL;ts.AxiosError=mi;ts.Cancel=ts.CanceledError;ts.all=function(e){return Promise.all(e)};ts.spread=Pne;ts.isAxiosError=One;ts.mergeConfig=rp;ts.AxiosHeaders=Ac;ts.formToJSON=n=>AW(Ce.isHTMLForm(n)?new FormData(n):n);ts.getAdapter=PW.getAdapter;ts.HttpStatusCode=Fne;ts.default=ts;const BW=ts;var hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bne(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var VW={exports:{}};/*! +* sweetalert2 v11.10.1 +* Released under the MIT License. +*/(function(n,e){(function(t,i){n.exports=i()})(hd,function(){function t(N,w){var L=N==null?null:typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(L!=null){var I,K,me,it,Wt=[],Gt=!0,ln=!1;try{if(me=(L=L.call(N)).next,w===0){if(Object(L)!==L)return;Gt=!1}else for(;!(Gt=(I=me.call(L)).done)&&(Wt.push(I.value),Wt.length!==w);Gt=!0);}catch(A_){ln=!0,K=A_}finally{try{if(!Gt&&L.return!=null&&(it=L.return(),Object(it)!==it))return}finally{if(ln)throw K}}return Wt}}function i(N){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},i(N)}function s(N,w){if(!(N instanceof w))throw new TypeError("Cannot call a class as a function")}function o(N,w){for(var L=0;L"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(N,w,L){return d()?u=Reflect.construct.bind():u=function(K,me,it){var Wt=[null];Wt.push.apply(Wt,me);var Gt=Function.bind.apply(K,Wt),ln=new Gt;return it&&c(ln,it.prototype),ln},u.apply(null,arguments)}function h(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function f(N,w){if(w&&(typeof w=="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(N)}function g(N){var w=d();return function(){var I=l(N),K;if(w){var me=l(this).constructor;K=Reflect.construct(I,arguments,me)}else K=I.apply(this,arguments);return f(this,K)}}function _(N,w){for(;!Object.prototype.hasOwnProperty.call(N,w)&&(N=l(N),N!==null););return N}function b(){return typeof Reflect<"u"&&Reflect.get?b=Reflect.get.bind():b=function(w,L,I){var K=_(w,L);if(K){var me=Object.getOwnPropertyDescriptor(K,L);return me.get?me.get.call(arguments.length<3?w:I):me.value}},b.apply(this,arguments)}function v(N,w){return S(N)||t(N,w)||A(N,w)||P()}function C(N){return y(N)||x(N)||A(N)||D()}function y(N){if(Array.isArray(N))return E(N)}function S(N){if(Array.isArray(N))return N}function x(N){if(typeof Symbol<"u"&&N[Symbol.iterator]!=null||N["@@iterator"]!=null)return Array.from(N)}function A(N,w){if(N){if(typeof N=="string")return E(N,w);var L=Object.prototype.toString.call(N).slice(8,-1);if(L==="Object"&&N.constructor&&(L=N.constructor.name),L==="Map"||L==="Set")return Array.from(N);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return E(N,w)}}function E(N,w){(w==null||w>N.length)&&(w=N.length);for(var L=0,I=new Array(w);Lln?1:Gt .").concat(se[L]));case"checkbox":return w.querySelector(".".concat(se.popup," > .").concat(se.checkbox," input"));case"radio":return w.querySelector(".".concat(se.popup," > .").concat(se.radio," input:checked"))||w.querySelector(".".concat(se.popup," > .").concat(se.radio," input:first-child"));case"range":return w.querySelector(".".concat(se.popup," > .").concat(se.range," input"));default:return w.querySelector(".".concat(se.popup," > .").concat(se.input))}},rd=function(w){if(w.focus(),w.type!=="file"){var L=w.value;w.value="",w.value=L}},Yu=function(w,L,I){!w||!L||(typeof L=="string"&&(L=L.split(/\s+/).filter(Boolean)),L.forEach(function(K){Array.isArray(w)?w.forEach(function(me){I?me.classList.add(K):me.classList.remove(K)}):I?w.classList.add(K):w.classList.remove(K)}))},si=function(w,L){Yu(w,L,!0)},Rr=function(w,L){Yu(w,L,!1)},ut=function(w,L){for(var I=Array.from(w.children),K=0;K1&&arguments[1]!==void 0?arguments[1]:"flex";w&&(w.style.display=L)},Je=function(w){w&&(w.style.display="none")},xi=function(w){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";w&&new MutationObserver(function(){En(w,w.innerHTML,L)}).observe(w,{childList:!0,subtree:!0})},as=function(w,L,I,K){var me=w.querySelector(L);me&&(me.style[I]=K)},En=function(w,L){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";L?Ae(w,I):Je(w)},Ti=function(w){return!!(w&&(w.offsetWidth||w.offsetHeight||w.getClientRects().length))},aa=function(){return!Ti(Ne())&&!Ti(at())&&!Ti(st())},ad=function(w){return w.scrollHeight>w.clientHeight},D_=function(w){var L=window.getComputedStyle(w),I=parseFloat(L.getPropertyValue("animation-duration")||"0"),K=parseFloat(L.getPropertyValue("transition-duration")||"0");return I>0||K>0},I_=function(w){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=ci();I&&Ti(I)&&(L&&(I.style.transition="none",I.style.width="100%"),setTimeout(function(){I.style.transition="width ".concat(w/1e3,"s linear"),I.style.width="0%"},10))},u5=function(){var w=ci();if(w){var L=parseInt(window.getComputedStyle(w).width);w.style.removeProperty("transition"),w.style.width="100%";var I=parseInt(window.getComputedStyle(w).width),K=L/I*100;w.style.width="".concat(K,"%")}},h5=function(){return typeof window>"u"||typeof document>"u"},gZ=` +
+ +
    +
    + +

    +
    + + +
    + + +
    + +
    + + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +`).replace(/(^|\n)\s*/g,""),mZ=function(){var w=Le();return w?(w.remove(),Rr([document.documentElement,document.body],[se["no-backdrop"],se["toast-shown"],se["has-column"]]),!0):!1},Zu=function(){Ke.currentInstance.resetValidationMessage()},pZ=function(){var w=U(),L=ut(w,se.input),I=ut(w,se.file),K=w.querySelector(".".concat(se.range," input")),me=w.querySelector(".".concat(se.range," output")),it=ut(w,se.select),Wt=w.querySelector(".".concat(se.checkbox," input")),Gt=ut(w,se.textarea);L.oninput=Zu,I.onchange=Zu,it.onchange=Zu,Wt.onchange=Zu,Gt.oninput=Zu,K.oninput=function(){Zu(),me.value=K.value},K.onchange=function(){Zu(),me.value=K.value}},_Z=function(w){return typeof w=="string"?document.querySelector(w):w},bZ=function(w){var L=U();L.setAttribute("role",w.toast?"alert":"dialog"),L.setAttribute("aria-live",w.toast?"polite":"assertive"),w.toast||L.setAttribute("aria-modal","true")},vZ=function(w){window.getComputedStyle(w).direction==="rtl"&&si(Le(),se.rtl)},CZ=function(w){var L=mZ();if(h5()){Me("SweetAlert2 requires document to initialize");return}var I=document.createElement("div");I.className=se.container,L&&si(I,se["no-transition"]),xn(I,gZ);var K=_Z(w.target);K.appendChild(I),bZ(w),vZ(K),pZ()},Gx=function(w,L){w instanceof HTMLElement?L.appendChild(w):i(w)==="object"?wZ(w,L):w&&xn(L,w)},wZ=function(w,L){w.jquery?yZ(L,w):xn(L,w.toString())},yZ=function(w,L){if(w.textContent="",0 in L)for(var I=0;I in L;I++)w.appendChild(L[I].cloneNode(!0));else w.appendChild(L.cloneNode(!0))},Xu=function(){if(h5())return!1;var N=document.createElement("div");return typeof N.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof N.style.animation<"u"?"animationend":!1}(),SZ=function(w,L){var I=Ue(),K=St();!I||!K||(!L.showConfirmButton&&!L.showDenyButton&&!L.showCancelButton?Je(I):Ae(I),Bn(I,L,"actions"),LZ(I,K,L),xn(K,L.loaderHtml||""),Bn(K,L,"loader"))};function LZ(N,w,L){var I=Ne(),K=at(),me=st();!I||!K||!me||(Yx(I,"confirm",L),Yx(K,"deny",L),Yx(me,"cancel",L),kZ(I,K,me,L),L.reverseButtons&&(L.toast?(N.insertBefore(me,I),N.insertBefore(K,I)):(N.insertBefore(me,w),N.insertBefore(K,w),N.insertBefore(I,w))))}function kZ(N,w,L,I){if(!I.buttonsStyling){Rr([N,w,L],se.styled);return}si([N,w,L],se.styled),I.confirmButtonColor&&(N.style.backgroundColor=I.confirmButtonColor,si(N,se["default-outline"])),I.denyButtonColor&&(w.style.backgroundColor=I.denyButtonColor,si(w,se["default-outline"])),I.cancelButtonColor&&(L.style.backgroundColor=I.cancelButtonColor,si(L,se["default-outline"]))}function Yx(N,w,L){var I=We(w);En(N,L["show".concat(I,"Button")],"inline-block"),xn(N,L["".concat(w,"ButtonText")]||""),N.setAttribute("aria-label",L["".concat(w,"ButtonAriaLabel")]||""),N.className=se[w],Bn(N,L,"".concat(w,"Button"))}var xZ=function(w,L){var I=Ns();I&&(xn(I,L.closeButtonHtml||""),Bn(I,L,"closeButton"),En(I,L.showCloseButton),I.setAttribute("aria-label",L.closeButtonAriaLabel||""))},EZ=function(w,L){var I=Le();I&&(DZ(I,L.backdrop),IZ(I,L.position),NZ(I,L.grow),Bn(I,L,"container"))};function DZ(N,w){typeof w=="string"?N.style.background=w:w||si([document.documentElement,document.body],se["no-backdrop"])}function IZ(N,w){w&&(w in se?si(N,se[w]):(Ge('The "position" parameter is not valid, defaulting to "center"'),si(N,se.center)))}function NZ(N,w){w&&si(N,se["grow-".concat(w)])}var Xi={innerParams:new WeakMap,domCache:new WeakMap},TZ=["input","file","range","select","radio","checkbox","textarea"],AZ=function(w,L){var I=U();if(I){var K=Xi.innerParams.get(w),me=!K||L.input!==K.input;TZ.forEach(function(it){var Wt=ut(I,se[it]);Wt&&(PZ(it,L.inputAttributes),Wt.className=se[it],me&&Je(Wt))}),L.input&&(me&&MZ(L),OZ(L))}},MZ=function(w){if(w.input){if(!Vn[w.input]){Me("Unexpected type of input! Expected ".concat(Object.keys(Vn).join(" | "),', got "').concat(w.input,'"'));return}var L=f5(w.input),I=Vn[w.input](L,w);Ae(L),w.inputAutoFocus&&setTimeout(function(){rd(I)})}},RZ=function(w){for(var L=0;LI?U().style.width="".concat(it,"px"):ne(U(),"width",w.width)}};new MutationObserver(K).observe(N,{attributes:!0,attributeFilter:["style"]})}}),N};var FZ=function(w,L){var I=V();I&&(xi(I),Bn(I,L,"htmlContainer"),L.html?(Gx(L.html,I),Ae(I,"block")):L.text?(I.textContent=L.text,Ae(I,"block")):Je(I),AZ(w,L))},BZ=function(w,L){var I=Xt();I&&(xi(I),En(I,L.footer,"block"),L.footer&&Gx(L.footer,I),Bn(I,L,"footer"))},VZ=function(w,L){var I=Xi.innerParams.get(w),K=M();if(K){if(I&&L.icon===I.icon){m5(K,L),g5(K,L);return}if(!L.icon&&!L.iconHtml){Je(K);return}if(L.icon&&Object.keys(fe).indexOf(L.icon)===-1){Me('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(L.icon,'"')),Je(K);return}Ae(K),m5(K,L),g5(K,L),si(K,L.showClass&&L.showClass.icon)}},g5=function(w,L){for(var I=0,K=Object.entries(fe);I + +
    +
    +`,zZ=` + + + + +`,m5=function(w,L){if(!(!L.icon&&!L.iconHtml)){var I=w.innerHTML,K="";if(L.iconHtml)K=p5(L.iconHtml);else if(L.icon==="success")K=HZ,I=I.replace(/ style=".*?"/g,"");else if(L.icon==="error")K=zZ;else if(L.icon){var me={question:"?",warning:"!",info:"i"};K=p5(me[L.icon])}I.trim()!==K.trim()&&xn(w,K)}},$Z=function(w,L){if(L.iconColor){w.style.color=L.iconColor,w.style.borderColor=L.iconColor;for(var I=0,K=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];I').concat(w,"")},UZ=function(w,L){var I=te();if(I){if(!L.imageUrl){Je(I);return}Ae(I,""),I.setAttribute("src",L.imageUrl),I.setAttribute("alt",L.imageAlt||""),ne(I,"width",L.imageWidth),ne(I,"height",L.imageHeight),I.className=se.image,Bn(I,L,"image")}},jZ=function(w,L){var I=Le(),K=U();if(!(!I||!K)){if(L.toast){ne(I,"width",L.width),K.style.width="100%";var me=St();me&&K.insertBefore(me,M())}else ne(K,"width",L.width);ne(K,"padding",L.padding),L.color&&(K.style.color=L.color),L.background&&(K.style.background=L.background),Je(Ve()),qZ(K,L)}},qZ=function(w,L){var I=L.showClass||{};w.className="".concat(se.popup," ").concat(Ti(w)?I.popup:""),L.toast?(si([document.documentElement,document.body],se["toast-shown"]),si(w,se.toast)):si(w,se.modal),Bn(w,L,"popup"),typeof L.customClass=="string"&&si(w,L.customClass),L.icon&&si(w,se["icon-".concat(L.icon)])},KZ=function(w,L){var I=ae();if(I){var K=L.progressSteps,me=L.currentProgressStep;if(!K||K.length===0||me===void 0){Je(I);return}Ae(I),I.textContent="",me>=K.length&&Ge("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),K.forEach(function(it,Wt){var Gt=GZ(it);if(I.appendChild(Gt),Wt===me&&si(Gt,se["active-progress-step"]),Wt!==K.length-1){var ln=YZ(L);I.appendChild(ln)}})}},GZ=function(w){var L=document.createElement("li");return si(L,se["progress-step"]),xn(L,w),L},YZ=function(w){var L=document.createElement("li");return si(L,se["progress-step-line"]),w.progressStepsDistance&&ne(L,"width",w.progressStepsDistance),L},ZZ=function(w,L){var I=H();I&&(xi(I),En(I,L.title||L.titleText,"block"),L.title&&Gx(L.title,I),L.titleText&&(I.innerText=L.titleText),Bn(I,L,"title"))},_5=function(w,L){jZ(w,L),EZ(w,L),KZ(w,L),VZ(w,L),UZ(w,L),ZZ(w,L),xZ(w,L),FZ(w,L),SZ(w,L),BZ(w,L);var I=U();typeof L.didRender=="function"&&I&&L.didRender(I)},XZ=function(){return Ti(U())},b5=function(){var w;return(w=Ne())===null||w===void 0?void 0:w.click()},QZ=function(){var w;return(w=at())===null||w===void 0?void 0:w.click()},JZ=function(){var w;return(w=st())===null||w===void 0?void 0:w.click()},Lg=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),v5=function(w){w.keydownTarget&&w.keydownHandlerAdded&&(w.keydownTarget.removeEventListener("keydown",w.keydownHandler,{capture:w.keydownListenerCapture}),w.keydownHandlerAdded=!1)},eX=function(w,L,I){v5(w),L.toast||(w.keydownHandler=function(K){return iX(L,K,I)},w.keydownTarget=L.keydownListenerCapture?window:U(),w.keydownListenerCapture=L.keydownListenerCapture,w.keydownTarget.addEventListener("keydown",w.keydownHandler,{capture:w.keydownListenerCapture}),w.keydownHandlerAdded=!0)},Xx=function(w,L){var I,K=an();if(K.length){w=w+L,w===K.length?w=0:w===-1&&(w=K.length-1),K[w].focus();return}(I=U())===null||I===void 0||I.focus()},C5=["ArrowRight","ArrowDown"],tX=["ArrowLeft","ArrowUp"],iX=function(w,L,I){w&&(L.isComposing||L.keyCode===229||(w.stopKeydownPropagation&&L.stopPropagation(),L.key==="Enter"?nX(L,w):L.key==="Tab"?sX(L):[].concat(C5,tX).includes(L.key)?oX(L.key):L.key==="Escape"&&rX(L,w,I)))},nX=function(w,L){if(he(L.allowEnterKey)){var I=Ks(U(),L.input);if(w.target&&I&&w.target instanceof HTMLElement&&w.target.outerHTML===I.outerHTML){if(["textarea","file"].includes(L.input))return;b5(),w.preventDefault()}}},sX=function(w){for(var L=w.target,I=an(),K=-1,me=0;me1},fX=function(){if(rs(document.body,se.iosfix)){var w=parseInt(document.body.style.top,10);Rr(document.body,se.iosfix),document.body.style.top="",document.body.scrollTop=w*-1}},gX=function(){var w=document.createElement("div");w.className=se["scrollbar-measure"],document.body.appendChild(w);var L=w.getBoundingClientRect().width-w.clientWidth;return document.body.removeChild(w),L},xg=null,mX=function(w){xg===null&&(document.body.scrollHeight>window.innerHeight||w==="scroll")&&(xg=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(xg+gX(),"px"))},pX=function(){xg!==null&&(document.body.style.paddingRight="".concat(xg,"px"),xg=null)};function S5(N,w,L,I){os()?k5(N,I):(Ie(L).then(function(){return k5(N,I)}),v5(Ke)),y5?(w.setAttribute("style","display:none !important"),w.removeAttribute("class"),w.innerHTML=""):w.remove(),ra()&&(pX(),fX(),w5()),_X()}function _X(){Rr([document.documentElement,document.body],[se.shown,se["height-auto"],se["no-backdrop"],se["toast-shown"]])}function ld(N){N=vX(N);var w=kg.swalPromiseResolve.get(this),L=bX(this);this.isAwaitingPromise?N.isDismissed||(T_(this),w(N)):L&&w(N)}var bX=function(w){var L=U();if(!L)return!1;var I=Xi.innerParams.get(w);if(!I||rs(L,I.hideClass.popup))return!1;Rr(L,I.showClass.popup),si(L,I.hideClass.popup);var K=Le();return Rr(K,I.showClass.backdrop),si(K,I.hideClass.backdrop),CX(w,L,I),!0};function L5(N){var w=kg.swalPromiseReject.get(this);T_(this),w&&w(N)}var T_=function(w){w.isAwaitingPromise&&(delete w.isAwaitingPromise,Xi.innerParams.get(w)||w._destroy())},vX=function(w){return typeof w>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},w)},CX=function(w,L,I){var K=Le(),me=Xu&&D_(L);typeof I.willClose=="function"&&I.willClose(L),me?wX(w,L,K,I.returnFocus,I.didClose):S5(w,K,I.returnFocus,I.didClose)},wX=function(w,L,I,K,me){Xu&&(Ke.swalCloseEventFinishedCallback=S5.bind(null,w,I,K,me),L.addEventListener(Xu,function(it){it.target===L&&(Ke.swalCloseEventFinishedCallback(),delete Ke.swalCloseEventFinishedCallback)}))},k5=function(w,L){setTimeout(function(){typeof L=="function"&&L.bind(w.params)(),w._destroy&&w._destroy()})},Eg=function(w){var L=U();if(L||new V0,L=U(),!!L){var I=St();os()?Je(M()):yX(L,w),Ae(I),L.setAttribute("data-loading","true"),L.setAttribute("aria-busy","true"),L.focus()}},yX=function(w,L){var I=Ue(),K=St();!I||!K||(!L&&Ti(Ne())&&(L=Ne()),Ae(I),L&&(Je(L),K.setAttribute("data-button-to-replace",L.className),I.insertBefore(K,L)),si([w,I],se.loading))},SX=function(w,L){L.input==="select"||L.input==="radio"?DX(w,L):["text","email","number","tel","textarea"].some(function(I){return I===L.input})&&(be(L.inputValue)||Ye(L.inputValue))&&(Eg(Ne()),IX(w,L))},LX=function(w,L){var I=w.getInput();if(!I)return null;switch(L.input){case"checkbox":return kX(I);case"radio":return xX(I);case"file":return EX(I);default:return L.inputAutoTrim?I.value.trim():I.value}},kX=function(w){return w.checked?1:0},xX=function(w){return w.checked?w.value:null},EX=function(w){return w.files&&w.files.length?w.getAttribute("multiple")!==null?w.files:w.files[0]:null},DX=function(w,L){var I=U();if(I){var K=function(it){L.input==="select"?NX(I,x5(it),L):L.input==="radio"&&TX(I,x5(it),L)};be(L.inputOptions)||Ye(L.inputOptions)?(Eg(Ne()),we(L.inputOptions).then(function(me){w.hideLoading(),K(me)})):i(L.inputOptions)==="object"?K(L.inputOptions):Me("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(i(L.inputOptions)))}},IX=function(w,L){var I=w.getInput();I&&(Je(I),we(L.inputValue).then(function(K){I.value=L.input==="number"?"".concat(parseFloat(K)||0):"".concat(K),Ae(I),I.focus(),w.hideLoading()}).catch(function(K){Me("Error in inputValue promise: ".concat(K)),I.value="",Ae(I),I.focus(),w.hideLoading()}))};function NX(N,w,L){var I=ut(N,se.select);if(I){var K=function(it,Wt,Gt){var ln=document.createElement("option");ln.value=Gt,xn(ln,Wt),ln.selected=E5(Gt,L.inputValue),it.appendChild(ln)};w.forEach(function(me){var it=me[0],Wt=me[1];if(Array.isArray(Wt)){var Gt=document.createElement("optgroup");Gt.label=it,Gt.disabled=!1,I.appendChild(Gt),Wt.forEach(function(ln){return K(Gt,ln[1],ln[0])})}else K(I,Wt,it)}),I.focus()}}function TX(N,w,L){var I=ut(N,se.radio);if(I){w.forEach(function(me){var it=me[0],Wt=me[1],Gt=document.createElement("input"),ln=document.createElement("label");Gt.type="radio",Gt.name=se.radio,Gt.value=it,E5(it,L.inputValue)&&(Gt.checked=!0);var A_=document.createElement("span");xn(A_,Wt),A_.className=se.label,ln.appendChild(Gt),ln.appendChild(A_),I.appendChild(ln)});var K=I.querySelectorAll("input");K.length&&K[0].focus()}}var x5=function N(w){var L=[];return w instanceof Map?w.forEach(function(I,K){var me=I;i(me)==="object"&&(me=N(me)),L.push([K,me])}):Object.keys(w).forEach(function(I){var K=w[I];i(K)==="object"&&(K=N(K)),L.push([I,K])}),L},E5=function(w,L){return!!L&&L.toString()===w.toString()},P0=void 0,AX=function(w){var L=Xi.innerParams.get(w);w.disableButtons(),L.input?D5(w,"confirm"):Jx(w,!0)},MX=function(w){var L=Xi.innerParams.get(w);w.disableButtons(),L.returnInputValueOnDeny?D5(w,"deny"):Qx(w,!1)},RX=function(w,L){w.disableButtons(),L(Lg.cancel)},D5=function(w,L){var I=Xi.innerParams.get(w);if(!I.input){Me('The "input" parameter is needed to be set when using returnInputValueOn'.concat(We(L)));return}var K=w.getInput(),me=LX(w,I);I.inputValidator?PX(w,me,L):K&&!K.checkValidity()?(w.enableButtons(),w.showValidationMessage(I.validationMessage)):L==="deny"?Qx(w,me):Jx(w,me)},PX=function(w,L,I){var K=Xi.innerParams.get(w);w.disableInput();var me=Promise.resolve().then(function(){return we(K.inputValidator(L,K.validationMessage))});me.then(function(it){w.enableButtons(),w.enableInput(),it?w.showValidationMessage(it):I==="deny"?Qx(w,L):Jx(w,L)})},Qx=function(w,L){var I=Xi.innerParams.get(w||P0);if(I.showLoaderOnDeny&&Eg(at()),I.preDeny){w.isAwaitingPromise=!0;var K=Promise.resolve().then(function(){return we(I.preDeny(L,I.validationMessage))});K.then(function(me){me===!1?(w.hideLoading(),T_(w)):w.close({isDenied:!0,value:typeof me>"u"?L:me})}).catch(function(me){return N5(w||P0,me)})}else w.close({isDenied:!0,value:L})},I5=function(w,L){w.close({isConfirmed:!0,value:L})},N5=function(w,L){w.rejectPromise(L)},Jx=function(w,L){var I=Xi.innerParams.get(w||P0);if(I.showLoaderOnConfirm&&Eg(),I.preConfirm){w.resetValidationMessage(),w.isAwaitingPromise=!0;var K=Promise.resolve().then(function(){return we(I.preConfirm(L,I.validationMessage))});K.then(function(me){Ti(Ve())||me===!1?(w.hideLoading(),T_(w)):I5(w,typeof me>"u"?L:me)}).catch(function(me){return N5(w||P0,me)})}else I5(w,L)};function O0(){var N=Xi.innerParams.get(this);if(N){var w=Xi.domCache.get(this);Je(w.loader),os()?N.icon&&Ae(M()):OX(w),Rr([w.popup,w.actions],se.loading),w.popup.removeAttribute("aria-busy"),w.popup.removeAttribute("data-loading"),w.confirmButton.disabled=!1,w.denyButton.disabled=!1,w.cancelButton.disabled=!1}}var OX=function(w){var L=w.popup.getElementsByClassName(w.loader.getAttribute("data-button-to-replace"));L.length?Ae(L[0],"inline-block"):aa()&&Je(w.actions)};function T5(){var N=Xi.innerParams.get(this),w=Xi.domCache.get(this);return w?Ks(w.popup,N.input):null}function A5(N,w,L){var I=Xi.domCache.get(N);w.forEach(function(K){I[K].disabled=L})}function M5(N,w){var L=U();if(!(!L||!N))if(N.type==="radio")for(var I=L.querySelectorAll('[name="'.concat(se.radio,'"]')),K=0;K0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";tE[N]=this,Y5||(document.body.addEventListener("click",lQ),Y5=!0)}var lQ=function(w){for(var L=w.target;L&&L!==document;L=L.parentNode)for(var I in tE){var K=L.getAttribute(I);if(K){tE[I].fire({template:K});return}}},cQ=Object.freeze({__proto__:null,argsToParams:eQ,bindClickHandler:aQ,clickCancel:JZ,clickConfirm:b5,clickDeny:QZ,enableLoading:Eg,fire:tQ,getActions:Ue,getCancelButton:st,getCloseButton:Ns,getConfirmButton:Ne,getContainer:Le,getDenyButton:at,getFocusableElements:an,getFooter:Xt,getHtmlContainer:V,getIcon:M,getIconContent:R,getImage:te,getInputLabel:jt,getLoader:St,getPopup:U,getProgressSteps:ae,getTimerLeft:nQ,getTimerProgressBar:ci,getTitle:H,getValidationMessage:Ve,increaseTimer:oQ,isDeprecatedParameter:z5,isLoading:tr,isTimerRunning:rQ,isUpdatableParameter:H5,isValidParameter:W5,isVisible:XZ,mixin:iQ,resumeTimer:G5,showLoading:Eg,stopTimer:K5,toggleTimer:sQ}),dQ=function(){function N(w,L){s(this,N),this.callback=w,this.remaining=L,this.running=!1,this.start()}return r(N,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(L){var I=this.running;return I&&this.stop(),this.remaining+=L,I&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),N}(),Z5=["swal-title","swal-html","swal-footer"],uQ=function(w){var L=typeof w.template=="string"?document.querySelector(w.template):w.template;if(!L)return{};var I=L.content;vQ(I);var K=Object.assign(hQ(I),fQ(I),gQ(I),mQ(I),pQ(I),_Q(I),bQ(I,Z5));return K},hQ=function(w){var L={},I=Array.from(w.querySelectorAll("swal-param"));return I.forEach(function(K){Qu(K,["name","value"]);var me=K.getAttribute("name"),it=K.getAttribute("value");typeof Dg[me]=="boolean"?L[me]=it!=="false":i(Dg[me])==="object"?L[me]=JSON.parse(it):L[me]=it}),L},fQ=function(w){var L={},I=Array.from(w.querySelectorAll("swal-function-param"));return I.forEach(function(K){var me=K.getAttribute("name"),it=K.getAttribute("value");L[me]=new Function("return ".concat(it))()}),L},gQ=function(w){var L={},I=Array.from(w.querySelectorAll("swal-button"));return I.forEach(function(K){Qu(K,["type","color","aria-label"]);var me=K.getAttribute("type");L["".concat(me,"ButtonText")]=K.innerHTML,L["show".concat(We(me),"Button")]=!0,K.hasAttribute("color")&&(L["".concat(me,"ButtonColor")]=K.getAttribute("color")),K.hasAttribute("aria-label")&&(L["".concat(me,"ButtonAriaLabel")]=K.getAttribute("aria-label"))}),L},mQ=function(w){var L={},I=w.querySelector("swal-image");return I&&(Qu(I,["src","width","height","alt"]),I.hasAttribute("src")&&(L.imageUrl=I.getAttribute("src")),I.hasAttribute("width")&&(L.imageWidth=I.getAttribute("width")),I.hasAttribute("height")&&(L.imageHeight=I.getAttribute("height")),I.hasAttribute("alt")&&(L.imageAlt=I.getAttribute("alt"))),L},pQ=function(w){var L={},I=w.querySelector("swal-icon");return I&&(Qu(I,["type","color"]),I.hasAttribute("type")&&(L.icon=I.getAttribute("type")),I.hasAttribute("color")&&(L.iconColor=I.getAttribute("color")),L.iconHtml=I.innerHTML),L},_Q=function(w){var L={},I=w.querySelector("swal-input");I&&(Qu(I,["type","label","placeholder","value"]),L.input=I.getAttribute("type")||"text",I.hasAttribute("label")&&(L.inputLabel=I.getAttribute("label")),I.hasAttribute("placeholder")&&(L.inputPlaceholder=I.getAttribute("placeholder")),I.hasAttribute("value")&&(L.inputValue=I.getAttribute("value")));var K=Array.from(w.querySelectorAll("swal-input-option"));return K.length&&(L.inputOptions={},K.forEach(function(me){Qu(me,["value"]);var it=me.getAttribute("value"),Wt=me.innerHTML;L.inputOptions[it]=Wt})),L},bQ=function(w,L){var I={};for(var K in L){var me=L[K],it=w.querySelector(me);it&&(Qu(it,[]),I[me.replace(/^swal-/,"")]=it.innerHTML.trim())}return I},vQ=function(w){var L=Z5.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(w.children).forEach(function(I){var K=I.tagName.toLowerCase();L.includes(K)||Ge("Unrecognized element <".concat(K,">"))})},Qu=function(w,L){Array.from(w.attributes).forEach(function(I){L.indexOf(I.name)===-1&&Ge(['Unrecognized attribute "'.concat(I.name,'" on <').concat(w.tagName.toLowerCase(),">."),"".concat(L.length?"Allowed attributes are: ".concat(L.join(", ")):"To set the value, use HTML within the element.")])})},X5=10,CQ=function(w){var L=Le(),I=U();typeof w.willOpen=="function"&&w.willOpen(I);var K=window.getComputedStyle(document.body),me=K.overflowY;LQ(L,I,w),setTimeout(function(){yQ(L,I)},X5),ra()&&(SQ(L,w.scrollbarPadding,me),aX()),!os()&&!Ke.previousActiveElement&&(Ke.previousActiveElement=document.activeElement),typeof w.didOpen=="function"&&setTimeout(function(){return w.didOpen(I)}),Rr(L,se["no-transition"])},wQ=function N(w){var L=U();if(!(w.target!==L||!Xu)){var I=Le();L.removeEventListener(Xu,N),I.style.overflowY="auto"}},yQ=function(w,L){Xu&&D_(L)?(w.style.overflowY="hidden",L.addEventListener(Xu,wQ)):w.style.overflowY="auto"},SQ=function(w,L,I){lX(),L&&I!=="hidden"&&mX(I),setTimeout(function(){w.scrollTop=0})},LQ=function(w,L,I){si(w,I.showClass.backdrop),I.animation?(L.style.setProperty("opacity","0","important"),Ae(L,"grid"),setTimeout(function(){si(L,I.showClass.popup),L.style.removeProperty("opacity")},X5)):Ae(L,"grid"),si([document.documentElement,document.body],se.shown),I.heightAuto&&I.backdrop&&!I.toast&&si([document.documentElement,document.body],se["height-auto"])},Q5={email:function(w,L){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(w)?Promise.resolve():Promise.resolve(L||"Invalid email address")},url:function(w,L){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(w)?Promise.resolve():Promise.resolve(L||"Invalid URL")}};function kQ(N){N.inputValidator||(N.input==="email"&&(N.inputValidator=Q5.email),N.input==="url"&&(N.inputValidator=Q5.url))}function xQ(N){(!N.target||typeof N.target=="string"&&!document.querySelector(N.target)||typeof N.target!="string"&&!N.target.appendChild)&&(Ge('Target parameter is not valid, defaulting to "body"'),N.target="body")}function EQ(N){kQ(N),N.showLoaderOnConfirm&&!N.preConfirm&&Ge(`showLoaderOnConfirm is set to true, but preConfirm is not defined. +showLoaderOnConfirm should be used together with preConfirm, see usage example: +https://sweetalert2.github.io/#ajax-request`),xQ(N),typeof N.title=="string"&&(N.title=N.title.split(` +`).join("
    ")),CZ(N)}var $a,B0=new WeakMap,Wn=function(){function N(){if(s(this,N),De(this,B0,{writable:!0,value:void 0}),!(typeof window>"u")){$a=this;for(var w=arguments.length,L=new Array(w),I=0;I1&&arguments[1]!==void 0?arguments[1]:{};if($X(Object.assign({},I,L)),Ke.currentInstance){var K=kg.swalPromiseResolve.get(Ke.currentInstance),me=Ke.currentInstance.isAwaitingPromise;Ke.currentInstance._destroy(),me||K({isDismissed:!0}),ra()&&w5()}Ke.currentInstance=$a;var it=IQ(L,I);EQ(it),Object.freeze(it),Ke.timeout&&(Ke.timeout.stop(),delete Ke.timeout),clearTimeout(Ke.restoreFocusTimeout);var Wt=NQ($a);return _5($a,it),Xi.innerParams.set($a,it),DQ($a,Wt,it)}},{key:"then",value:function(L){return ee(this,B0).then(L)}},{key:"finally",value:function(L){return ee(this,B0).finally(L)}}]),N}(),DQ=function(w,L,I){return new Promise(function(K,me){var it=function(Gt){w.close({isDismissed:!0,dismiss:Gt})};kg.swalPromiseResolve.set(w,K),kg.swalPromiseReject.set(w,me),L.confirmButton.onclick=function(){AX(w)},L.denyButton.onclick=function(){MX(w)},L.cancelButton.onclick=function(){RX(w,it)},L.closeButton.onclick=function(){it(Lg.close)},KX(I,L,it),eX(Ke,I,it),SX(w,I),CQ(I),TQ(Ke,I,it),AQ(L,I),setTimeout(function(){L.container.scrollTop=0})})},IQ=function(w,L){var I=uQ(w),K=Object.assign({},Dg,L,I,w);return K.showClass=Object.assign({},Dg.showClass,K.showClass),K.hideClass=Object.assign({},Dg.hideClass,K.hideClass),K.animation===!1&&(K.showClass={backdrop:"swal2-noanimation"},K.hideClass={}),K},NQ=function(w){var L={popup:U(),container:Le(),actions:Ue(),confirmButton:Ne(),denyButton:at(),cancelButton:st(),loader:St(),closeButton:Ns(),validationMessage:Ve(),progressSteps:ae()};return Xi.domCache.set(w,L),L},TQ=function(w,L,I){var K=ci();Je(K),L.timer&&(w.timeout=new dQ(function(){I("timer"),delete w.timeout},L.timer),L.timerProgressBar&&(Ae(K),Bn(K,L,"timerProgressBar"),setTimeout(function(){w.timeout&&w.timeout.running&&I_(L.timer)})))},AQ=function(w,L){if(!L.toast){if(!he(L.allowEnterKey)){RQ();return}MQ(w,L)||Xx(-1,1)}},MQ=function(w,L){return L.focusDeny&&Ti(w.denyButton)?(w.denyButton.focus(),!0):L.focusCancel&&Ti(w.cancelButton)?(w.cancelButton.focus(),!0):L.focusConfirm&&Ti(w.confirmButton)?(w.confirmButton.focus(),!0):!1},RQ=function(){document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var J5=new Date,eF=localStorage.getItem("swal-initiation");eF?(J5.getTime()-Date.parse(eF))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var N=document.createElement("audio");N.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",N.loop=!0,document.body.appendChild(N),setTimeout(function(){N.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(J5))}Wn.prototype.disableButtons=P5,Wn.prototype.enableButtons=R5,Wn.prototype.getInput=T5,Wn.prototype.disableInput=F5,Wn.prototype.enableInput=O5,Wn.prototype.hideLoading=O0,Wn.prototype.disableLoading=O0,Wn.prototype.showValidationMessage=B5,Wn.prototype.resetValidationMessage=V5,Wn.prototype.close=ld,Wn.prototype.closePopup=ld,Wn.prototype.closeModal=ld,Wn.prototype.closeToast=ld,Wn.prototype.rejectPromise=L5,Wn.prototype.update=$5,Wn.prototype._destroy=U5,Object.assign(Wn,cQ),Object.keys(qX).forEach(function(N){Wn[N]=function(){if($a&&$a[N]){var w;return(w=$a)[N].apply(w,arguments)}return null}}),Wn.DismissReason=Lg,Wn.version="11.10.1";var V0=Wn;return V0.default=V0,V0}),typeof hd<"u"&&hd.Sweetalert2&&(hd.swal=hd.sweetAlert=hd.Swal=hd.SweetAlert=hd.Sweetalert2),typeof document<"u"&&function(t,i){var s=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(s),s.styleSheet)s.styleSheet.disabled||(s.styleSheet.cssText=i);else try{s.innerHTML=i}catch{s.innerText=i}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})(VW);var Vne=VW.exports;const Wne=Bne(Vne);const g2=Wne.mixin({customClass:{confirmButton:"btn-custom-primary",cancelButton:"btn-custom-danger"},buttonsStyling:!1}),gE=(n,e,t,i="확인")=>g2.fire({icon:n,title:e,text:t,confirmButtonText:i}),Ki={success(n,e,t){return gE("success",n,e,t)},error(n,e,t){return gE("error",n,e,t)},warning(n,e,t){return gE("warning",n,e,t)},question(n,e,t="네",i="아니오"){return g2.fire({icon:"question",title:n,text:e,showCancelButton:!0,confirmButtonText:t,cancelButtonText:i})},prompt(n,e,t="text",i="",s="확인",o="취소"){return g2.fire({title:n,text:e,input:t,inputPlaceholder:i,showCancelButton:!0,confirmButtonText:s,cancelButtonText:o})}};var Ze=null;Ze=BW.create({baseURL:"http://192.168.1.58:8080/codesparring",withCredentials:!0});Ze.interceptors.request.use(function(n){return n.headers.Authorization=`Bearer ${sessionStorage.getItem("accessToken")}`,n});Ze.interceptors.response.use(n=>{if(!(n.status===200||n.status===201||n.status===204))throw new Error;if(n.data.errors)throw new Error(n.data.errors);return n},async n=>{var e,t,i;return((e=n.response)==null?void 0:e.status)===401&&Ki.warning("로그인이 필요합니다","","로그인창으로 가기").then(()=>{window.location.href="/login"}),((t=n.response)==null?void 0:t.status)===403&&(console.error("403 Forbidden 에러 발생 :",n.response),Ki.error("권한이 없습니다","","뒤로 가기").then(()=>{window.history.back()})),((i=n.response)==null?void 0:i.status)===500&&(console.error("500 Internal Server Error 발생 :",n.response),Ki.error("오류가 발생했습니다","","닫기").then(()=>{})),Promise.reject(n)});const Hne={name:"ShowQuizSimply",props:["quizInfo"]},zne=n=>(Gn("data-v-7f80aff8"),n=n(),Yn(),n),$ne={id:"quiz-info-container"},Une=cR('
    티어
    제목
    정답률
    출제자
    ',1),jne={class:"tier-info-container row"},qne={key:0,class:"col-3",style:{color:"var(--bronze-color)"}},Kne={key:1,class:"col-3",style:{color:"var(--silver-color)"}},Gne={key:2,class:"col-3",style:{color:"var(--silver-color)"}},Yne={key:3,class:"col-3",style:{color:"var(--platinum-color)"}},Zne={key:4,class:"col-3"},Xne={class:"col-5"},Qne={class:"col-2"},Jne={class:"col-2"},ese=zne(()=>k("div",{id:"quiz-content-title"},"문제 설명",-1)),tse={id:"quiz-content-container"},ise={id:"quiz-content"};function nse(n,e,t,i,s,o){return oe(),ce(Di,null,[k("div",$ne,[Une,k("div",jne,[t.quizInfo.quizTier=="BRONZE"?(oe(),ce("div",qne,ve(t.quizInfo.quizTier),1)):t.quizInfo.quizTier=="SILVER"?(oe(),ce("div",Kne,ve(t.quizInfo.quizTier),1)):t.quizInfo.quizTier=="GOLD"?(oe(),ce("div",Gne,ve(t.quizInfo.quizTier),1)):t.quizInfo.quizTier=="PLATINUM"?(oe(),ce("div",Yne,ve(t.quizInfo.quizTier),1)):(oe(),ce("div",Zne,ve(t.quizInfo.quizTier),1)),k("div",Xne,ve(t.quizInfo.quizTitle),1),k("div",Qne,ve(t.quizInfo.quizSubmitCnt==0?0:Math.round((t.quizInfo.quizSuccessCnt/t.quizInfo.quizSubmitCnt+Number.EPSILON)*1e4)/100)+"% ",1),k("div",Jne,ve(t.quizInfo.memberName),1)])]),ese,k("div",tse,[k("pre",ise,ve(t.quizInfo.quizContent),1)])],64)}const WW=Li(Hne,[["render",nse],["__scopeId","data-v-7f80aff8"]]);const sse={name:"MainHomeRoom",props:["roomInfo","memberNo"],data(){return{modalCheck:!1,quizInfo:{}}},methods:{showQuizClickHandler(){this.modalCheck?document.body.style.overflow="auto":document.body.style.overflow="hidden",this.modalCheck=!this.modalCheck},async enterButtonClickHandler(){let n;if(this.roomInfo.roomPwd){const e=await Ki.prompt("비밀번호를 입력하세요","");n=`${this.backURL}/room-member?roomPwd=${e.value}`}else n=`${this.backURL}/room-member`;Ze.post(n,{memberNo:this.memberNo,roomNo:this.roomInfo.roomNo,hostStatus:1},{headers:{"Content-Type":"application/json"}}).then(()=>{this.$router.push({path:`/room/${this.roomInfo.roomNo}`})}).catch(e=>{Ki.error(e.response.data.errors[0])})}},mounted(){this.quizInfo=this.roomInfo},components:{ShowQuizSimply:WW}},ose=n=>(Gn("data-v-d098fca1"),n=n(),Yn(),n),rse={class:"room-container"},ase={class:"room-no"},lse={class:"room-infos"},cse=["title"],dse={class:"room-info"},use={key:0,style:{color:"var(--red-color)"}},hse={key:1,style:{color:"var(--main5-color)"}},fse={key:2,style:{color:"var(--red-color)"}},gse={class:"room-enter"},mse={key:0,class:"room-member-number"},pse={key:1,class:"room-member-number"},_se=["disabled"],bse={id:"show-quiz-modal-label"},vse=ose(()=>k("div",null,"방 문제 확인",-1)),Cse=["disabled"],wse={key:0};function yse(n,e,t,i,s,o){const r=yi("font-awesome-icon"),a=yi("ShowQuizSimply");return oe(),ce("div",{class:Rn([{"in-game":t.roomInfo.roomStatus==1},"room-containers"])},[k("div",rse,[k("div",ase,ve(t.roomInfo.roomNo),1),k("div",lse,[k("h5",{class:"room-title",title:t.roomInfo.roomTitle},ve(t.roomInfo.roomTitle),9,cse),k("div",dse,[k("div",null,[t.roomInfo.roomStatus==1?(oe(),ce("div",use,"WAITING")):t.roomInfo.roomStatus==0?(oe(),ce("div",hse," PLAYING ")):(oe(),ce("div",fse))]),k("div",gse,[di(r,{icon:["fa","user"]}),t.roomInfo.roomMemberList!=null?(oe(),ce("div",mse,ve(t.roomInfo.roomMemberList.length)+"/4 ",1)):(oe(),ce("div",pse,"0/4")),k("button",{class:Rn([{"button-disabled":t.roomInfo.roomStatus==0},"btn-custom-primary see-quiz-button"]),disabled:t.roomInfo.roomStatus==0,onClick:e[0]||(e[0]=(...l)=>o.showQuizClickHandler&&o.showQuizClickHandler(...l))}," 문제보기 ",10,_se),ii(k("div",{class:"modal-wrap",onClick:e[4]||(e[4]=(...l)=>o.showQuizClickHandler&&o.showQuizClickHandler(...l))},[k("div",{class:"modal-container",onClick:e[3]||(e[3]=xL(()=>{},["stop"]))},[k("h5",bse,[di(r,{id:"show-quiz-modal-house-icon",icon:["fa","house"]}),vse]),di(a,{quizInfo:s.quizInfo,"onUpdate:quizInfo":e[1]||(e[1]=l=>s.quizInfo=l)},null,8,["quizInfo"]),k("button",{id:"modal-close-button",class:"btn-custom-primary",onClick:e[2]||(e[2]=(...l)=>o.showQuizClickHandler&&o.showQuizClickHandler(...l))}," 닫기 ")])],512),[[pv,s.modalCheck]]),k("button",{class:Rn([{"button-disabled":t.roomInfo.roomStatus==0},"btn-custom-primary enter-button"]),disabled:t.roomInfo.roomStatus==0,"on:click":e[5]||(e[5]=(...l)=>o.enterButtonClickHandler&&o.enterButtonClickHandler(...l))},[t.roomInfo.roomPwd==null?(oe(),ce("div",wse,"입장")):(oe(),ps(r,{key:1,icon:["fa","lock"]}))],42,Cse)])])])])],2)}const Sse=Li(sse,[["render",yse],["__scopeId","data-v-d098fca1"]]);const Lse={name:"memberProfile",props:["memberProfile"],data(){return{}},methods:{showMemberEventEmit(){this.$emit("showMember")}}},kse={class:"member-profile-detail-layout"},xse={class:"profile-detail-containers"},Ese={class:"profile-image-containers"},Dse=["src"],Ise={class:"profile-rank-container"},Nse=["src"],Tse={class:"profile-name-container"},Ase={class:"proflie-info-containers"},Mse={id:"exp-container"},Rse={id:"my-level"},Pse={class:"progress col-sm-8"},Ose={id:"my-exp"},Fse={class:"member-tier-container"},Bse={key:0,style:{color:"var(--bronze-color)"}},Vse={key:1,style:{color:"var(--silver-color)"}},Wse={key:2,style:{color:"var(--silver-color)"}},Hse={key:3,style:{color:"var(--platinum-color)"}},zse={key:4},$se=["value"];function Use(n,e,t,i,s,o){return oe(),ce("div",kse,[k("div",xse,[k("div",Ese,[k("img",{class:"profile-image",src:"/images/icon/"+t.memberProfile.memberProfileImg+".png",alt:"profile"},null,8,Dse),k("div",Ise,[k("img",{class:"rank-tier-icon",src:"/images/rank/"+t.memberProfile.memberTier.toLowerCase()+".png",alt:"my-tier"},null,8,Nse),k("div",Tse,[k("div",null,ve(t.memberProfile.memberName),1),k("div",null,ve(t.memberProfile.winCnt)+" 승 "+ve(t.memberProfile.drawCnt)+" 무 "+ve(t.memberProfile.loseCnt)+" 패 ",1)])])]),k("div",Ase,[k("div",Mse,[k("div",Rse,"Lv. "+ve(t.memberProfile.memberLevel),1),k("div",Pse,[k("div",{class:"progress-bar progress-bar-striped bg-primary progress-bar-animated",role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100",style:Pu("width: "+t.memberProfile.memberExp+"%")},[k("span",Ose,ve(t.memberProfile.memberExp)+" / 100",1)],4)])]),k("div",Fse,[t.memberProfile.memberTier=="BRONZE"?(oe(),ce("div",Bse,ve(t.memberProfile.memberTier),1)):t.memberProfile.memberTier=="SILVER"?(oe(),ce("div",Vse,ve(t.memberProfile.memberTier),1)):t.memberProfile.memberTier=="GOLD"?(oe(),ce("div",Wse,ve(t.memberProfile.memberTier),1)):t.memberProfile.memberTier=="PLATINUM"?(oe(),ce("div",Hse,ve(t.memberProfile.memberTier),1)):(oe(),ce("div",zse,ve(t.memberProfile.memberTier),1)),k("div",null,ve(t.memberProfile.tierPoint)+" pt",1)]),k("textarea",{value:t.memberProfile.memberInfo,disabled:""},null,8,$se)])]),k("button",{id:"modal-close-button",class:"btn-custom-primary",onClick:e[0]||(e[0]=(...r)=>o.showMemberEventEmit&&o.showMemberEventEmit(...r))}," 닫기 ")])}const HW=Li(Lse,[["render",Use],["__scopeId","data-v-7c93cba0"]]);const jse={name:"AddRoom",data(){return{quizSelect:!1,tier:"ALL",quizList:[],roomTitle:"",quizNo:"",quiz:[],codeShare:!1,secret:!1,roomPwd:""}},methods:{changeTier(n){if(this.tier=n.target.id,this.tier=="ALL"){const e=`${this.backURL}/quiz/list`;Ze.get(e).then(t=>{this.quizList=t.data})}else{const e=`${this.backURL}/quiz/tier/`+this.tier;Ze.get(e).then(t=>{this.quizList=t.data})}},changeAsc(){if(this.tier=="ALL"){const n=`${this.backURL}/quiz/list/asc`;Ze.get(n).then(e=>{this.quizList=e.data})}else{const n=`${this.backURL}/quiz/tier/`+this.tier+"/asc";Ze.get(n).then(e=>{this.quizList=e.data})}},changeDesc(){if(this.tier=="ALL"){const n=`${this.backURL}/quiz/list/desc`;Ze.get(n).then(e=>{this.quizList=e.data})}else{const n=`${this.backURL}/quiz/tier/`+this.tier+"/desc";Ze.get(n).then(e=>{this.quizList=e.data})}},clickQuiz(n){this.quizNo=n.target.id;const e=`${this.backURL}/quiz/`+this.quizNo;Ze.get(e).then(t=>{this.quiz=t.data}),this.quizSelect=!0},backQuizSelect(){this.quiz=[],this.quizNo="",this.quizSelect=!1},clickAddRoom(){this.roomTitle==""?alert("방 제목을 입력하세요"):this.secret==!0&this.roomPwd==""?alert("방 비밀번호를 입력하세요"):this.quizNo==""&&alert("문제를 선택하세요")}},mounted(){const n=`${this.backURL}/quiz/list`;Ze.get(n).then(e=>{this.quizList=e.data}).catch(e=>{alert("문제를 조회할 수 없습니다")})}},zW=n=>(Gn("data-v-e18ab135"),n=n(),Yn(),n),qse={id:"layout"},Kse={id:"title-div"},Gse={id:"header-div"},Yse=zW(()=>k("div",{id:"text-obj"},"✔︎ 문제 선택",-1)),Zse={id:"quiz-div"},Xse={key:0,id:"tier-select-div"},Qse={id:"quiz-select-div"},Jse=cR('
    제목티어제출횟수정답률
    ',1),eoe={id:"quiz-list-box"},toe=["id"],ioe=["title","id"],noe=["id"],soe=["id"],ooe=["id"],roe={key:1,id:"quiz-info-div"},aoe=["title"],loe=zW(()=>k("br",null,null,-1)),coe=["value"],doe={id:"footer-div"},uoe={id:"option-div"},hoe={id:"code-view-opt"},foe={id:"secret-opt"},goe={key:0,id:"pwd-span"},moe={id:"button-div"};function poe(n,e,t,i,s,o){return oe(),ce("div",qse,[k("div",Kse,[ii(k("input",{id:"title-input",placeholder:"방 제목을 입력하세요","onUpdate:modelValue":e[0]||(e[0]=r=>this.roomTitle=r)},null,512),[[Yi,this.roomTitle]])]),k("div",Gse,[Yse,k("div",null,[k("span",{class:"sort-obj",onClick:e[1]||(e[1]=(...r)=>o.changeAsc&&o.changeAsc(...r))},"정답률 ▲"),Lt("  "),k("span",{class:"sort-obj",onClick:e[2]||(e[2]=(...r)=>o.changeDesc&&o.changeDesc(...r))},"정답률 ▼")])]),k("div",Zse,[this.quizSelect?ft("",!0):(oe(),ce("div",Xse,[k("button",{class:"tierButton",id:"ALL",onClick:e[3]||(e[3]=(...r)=>o.changeTier&&o.changeTier(...r))},"ALL"),k("button",{class:"tierButton",id:"UNRANKED",style:{color:"var(--main4-color)"},onClick:e[4]||(e[4]=(...r)=>o.changeTier&&o.changeTier(...r))}," UNRANKED "),k("button",{class:"tierButton",id:"BRONZE",style:{color:"var(--bronze-color)"},onClick:e[5]||(e[5]=(...r)=>o.changeTier&&o.changeTier(...r))}," BRONZE "),k("button",{class:"tierButton",id:"SILVER",style:{color:"var(--silver-color)"},onClick:e[6]||(e[6]=(...r)=>o.changeTier&&o.changeTier(...r))}," SILVER "),k("button",{class:"tierButton",id:"GOLD",style:{color:"var(--gold-color)"},onClick:e[7]||(e[7]=(...r)=>o.changeTier&&o.changeTier(...r))}," GOLD "),k("button",{class:"tierButton",id:"PLATINUM",onClick:e[8]||(e[8]=(...r)=>o.changeTier&&o.changeTier(...r))},"PLATINUM")])),k("div",Qse,[Jse,k("div",eoe,[(oe(!0),ce(Di,null,zs(s.quizList,r=>(oe(),ce("div",{key:r,class:"quizObj",id:""+r.quizNo,onClick:e[9]||(e[9]=(...a)=>o.clickQuiz&&o.clickQuiz(...a))},[k("span",{class:"quizTitle",title:""+r.quizTitle,id:""+r.quizNo},ve(r.quizTitle),9,ioe),k("span",{class:Rn("tier-"+r.quizTier),id:""+r.quizNo},ve(r.quizTier),11,noe),k("span",{class:"submitCnt",id:""+r.quizNo},ve(r.quizSubmitCnt)+"회",9,soe),k("span",{class:"correctPercent",id:""+r.quizNo},ve(r.quizCorrectPercent=="-"?"":r.quizCorrectPercent),9,ooe)],8,toe))),128))])]),this.quizSelect?(oe(),ce("div",roe,[k("div",{id:"quiz-title",title:""+this.quiz.quizTitle},"[문제 제목]  "+ve(this.quiz.quizTitle),9,aoe),k("div",null,"[출제자]  "+ve(this.quiz.memberName),1),k("div",null,[Lt("[문제 내용]"),loe,k("textarea",{id:"quiz-content",value:this.quiz.quizContent,readonly:""},null,8,coe)]),k("button",{id:"back-button",onClick:e[10]||(e[10]=(...r)=>o.backQuizSelect&&o.backQuizSelect(...r))},"닫기")])):ft("",!0)]),k("div",doe,[k("div",uoe,[k("span",hoe,[Lt(" 코드공개 "),ii(k("input",{class:"checkBox",type:"checkbox","onUpdate:modelValue":e[11]||(e[11]=r=>this.codeShare=r)},null,512),[[o2,this.codeShare]])]),k("span",foe,[Lt(" 비밀방 "),ii(k("input",{class:"checkBox",type:"checkbox","onUpdate:modelValue":e[12]||(e[12]=r=>this.secret=r)},null,512),[[o2,this.secret]])]),this.secret?(oe(),ce("span",goe,[ii(k("input",{id:"pwd-input","onUpdate:modelValue":e[13]||(e[13]=r=>this.roomPwd=r),placeholder:"숫자 4자리 입력"},null,512),[[Yi,this.roomPwd]])])):ft("",!0)]),k("div",moe,[k("button",{id:"cancle-button",onClick:e[14]||(e[14]=r=>n.$emit("close-popup"))},"취소"),Lt("  "),k("button",{id:"add-button",onClick:e[15]||(e[15]=(...r)=>o.clickAddRoom&&o.clickAddRoom(...r))},"생성")])])])}const _oe=Li(jse,[["render",poe],["__scopeId","data-v-e18ab135"]]),boe="/assets/matching-dd450c86.gif";const voe={name:"RankMatching",data(){return{memberNo:0,memberName:"내 닉네임이야",tier:"GOLD",point:"12000",tierImg:"gold",score:"88.28%",timerRunning:!0,minutes:0,seconds:0}},computed:{formattedTime(){return`${String(this.minutes).padStart(2,"0")}:${String(this.seconds).padStart(2,"0")}`}},methods:{updateTimer(){this.seconds===59?(this.minutes++,this.seconds=0):this.seconds++,this.timerRunning&&setTimeout(this.updateTimer,1e3)}},created(){this.updateTimer()}},$W=n=>(Gn("data-v-c1d49ee7"),n=n(),Yn(),n),Coe={id:"layout"},woe={id:"header"},yoe=$W(()=>k("div",{id:"match-text"},"・・・ Matching ・・・",-1)),Soe=$W(()=>k("img",{src:boe,id:"matching-icon",alt:"rank-matching"},null,-1)),Loe={id:"content"},koe=["src"],xoe={id:"member-profile"},Eoe={id:"member-name"},Doe={id:"rank-point"},Ioe=["id"],Noe={id:"point"},Toe={id:"tier-icon-div"},Aoe=["src"],Moe={id:"member-score"},Roe={id:"footer"};function Poe(n,e,t,i,s,o){return oe(),ce("div",Coe,[k("div",woe,[yoe,Soe,Lt("  "),k("span",{id:"timer-content",class:Rn(["title",{"timer-expired":s.timerRunning}])},ve(o.formattedTime),3)]),k("div",Loe,[k("img",{src:"../../../public/images/icon/"+this.memberNo+".png",id:"member-profile-img",alt:"my-profile-img"},null,8,koe),k("div",xoe,[k("div",Eoe,ve(this.memberName),1),k("div",Doe,[k("span",{id:"tier-"+this.tier},ve(this.tier),9,Ioe),Lt("   "),k("span",Noe,ve(this.point)+"pt",1)]),k("div",Toe,[k("img",{src:"../../../public/images/rank/"+this.tierImg+".png",id:"tier-icon",alt:"my-tier-icon"},null,8,Aoe)]),k("div",Moe,ve(this.score),1)])]),k("div",Roe,[k("button",{id:"cancle-button",onClick:e[0]||(e[0]=r=>n.$emit("close-popup"))},"취소")])])}const Ooe=Li(voe,[["render",Poe],["__scopeId","data-v-c1d49ee7"]]),Foe="/images/rank/bronze.png",Boe="/images/rank/silver.png",Voe="/images/rank/gold.png",Woe="/images/rank/platinum.png",Hoe="/images/swords.png",zoe="/images/refresh.png";const $oe={name:"MainHome",components:{MainHomeRoom:Sse,AddRoom:_oe,RankMatching:Ooe,MemberProfile:HW},data(){return{roomPage:0,roomSize:8,totalPages:1,roomList:[],nullRoom:{roomNo:null,roomStatus:null,roomTitle:null},inputRoomNo:null,memberRankList:[],memberAuthority:"ROLE_ADMIN",rankMember:{memberProfileImg:0,memberTier:"",memberName:"",winCnt:0,drawCnt:0,loseCnt:0,memberLevel:0,memberExp:0,tierPoint:0,memberInfo:""},loginMember:{memberExp:0,memberLevel:0,memberName:"",memberNo:0,memberProfileImg:0,memberTier:""},addRoomPopup:!1,rankMatching:!1,memberProfilePopup:!1,socket:null}},methods:{refreshButtonClickHandler(){this.inputRoomNo=null,Ze.get(`${this.backURL}/room?page=${this.roomPage}&size=${this.roomSize}`,{headers:{"Content-Type":"application/json"}}).then(n=>{this.roomList=n.data.content,this.totalPages=n.data.totalPages})},createWaitingRoomclickHandler(){document.body.style.overflow="hidden",this.addRoomPopup=!0},rankTierHelpHoverHandler(){},mypageButtonClickHandler(){this.$router.push({path:"/admin/quiz/all/1"})},prevButtonClickHandler(){this.roomPage-=1,this.searchRoomByRoomNo()},nextButtonClickHandler(){this.roomPage+=1,this.searchRoomByRoomNo()},logoutButtonClickHandler(){console.log("Request sent");const n=`${this.backURL}/auth/logout`;Ze.post(n,{},{withCredentials:!0,headers:{"Content-Type":"multipart/form-data"}}).then(()=>{sessionStorage.removeItem("accessToken"),location.href="/login"}).catch(e=>{console.error("Error:",e)})},searchRoomInputKeypressHandler(n){let e=String.fromCharCode(n.keyCode);if(/^[0-9]+$/.test(e))return!0;Ki.warning("숫자만 입력 가능합니다","","확인"),n.preventDefault()},searchRoomInputChangeHandler(n){const e=n.target.value;e!=""&&(/^[0-9]+$/.test(e)?(this.inputRoomNo=e,this.searchRoomByRoomNo()):(n.target.value=this.inputRoomNo,Ki.warning("숫자만 입력 가능합니다","","확인")))},searchRoomByRoomNo(){this.inputRoomNo==null?this.refreshButtonClickHandler():Ze.get(`${this.backURL}/room?searchNo=${this.inputRoomNo}&page=${this.roomPage}&size=${this.roomSize}`,{headers:{"Content-Type":"application/json"}}).then(n=>{this.roomList=n.data.content,this.totalPages=n.data.totalPages})},backOff(){this.addRoomPopup=!1,this.rankMatching=!1,document.body.style.overflow="auto"},rankMatchingButtonClickHandler(){document.body.style.overflow="hidden",this.rankMatching=!0,this.connect()},showMemberClickHandler(){this.memberProfilePopup=!this.memberProfilePopup,this.preventScroll()},preventScroll(){this.memberProfilePopup===!0?document.body.style.overflow="hidden":document.body.style.overflow="auto"},connect(){this.socket=new WebSocket(this.socketURL),this.socket.onopen=()=>{this.sendMatching(),this.socket.onclose=()=>{},this.socket.onmessage=n=>{console.log(n.data)}}},disconnect(){this.socket.close()},sendMatching(){const n={type:"RANK_MATCHING",memberNo:Math.floor(Math.random()*2),memberTier:"Bronze"};this.socket.send(JSON.stringify(n))},showProfileDetailClickHandler(n){this.memberProfilePopup=!this.memberProfilePopup,this.memberProfilePopup&&Ze.get(`${this.backURL}/member/${n}`,{headers:{"Content-Type":"application/json"}}).then(e=>{this.rankMember=e.data}),this.preventScroll()}},mounted(){this.refreshButtonClickHandler(),Ze.get(`${this.backURL}/member/ranking`,{headers:{"Content-Type":"application/json"}}).then(n=>{this.memberRankList=n.data.sort((e,t)=>e.rank-t.rank).slice(0,5)}),Ze.get(`${this.backURL}/member/my`).then(n=>{this.loginMember=n.data})}},ML=n=>(Gn("data-v-80e6aa27"),n=n(),Yn(),n),Uoe={id:"main-layout",class:"row"},joe={id:"main-side-layout",class:"col-2"},qoe={id:"main-profile-containers"},Koe={id:"my-profile-container"},Goe=["src"],Yoe={id:"profile-tier-container"},Zoe={id:"tier-container"},Xoe=cR('
    ?티어는 랭크 모드 결과를 통해 정해집니다.
    티어의 종류는 다음과 같습니다.
    my-tier브론즈
    my-tier실버
    my-tier골드
    my-tier플래티넘
    ',1),Qoe=["src"],Joe={id:"profile-nickname"},ere={id:"exp-container"},tre={id:"my-level"},ire={class:"progress col-sm-8"},nre={id:"my-exp"},sre=ML(()=>k("div",{id:"main-profile-buttons"},null,-1)),ore=ML(()=>k("img",{id:"rank-title-icon",src:Hoe,alt:"rank-icon"},null,-1)),rre={id:"rank-container"},are=ML(()=>k("div",{id:"rank-title"},"순 위",-1)),lre={id:"rank-list"},cre=["onClick"],dre={key:0,class:"rank-number",style:{color:"var(--yellow-rank-color)"}},ure={key:1,class:"rank-number",style:{color:"var(--red-rank-color)"}},hre={key:2,class:"rank-number",style:{color:"var(--blue-rank-color)"}},fre={key:3,class:"rank-number",style:{color:"var(--main1-color)"}},gre=["src"],mre={class:"rank-nickname",title:"닉네임"},pre={id:"room-layout",class:"col-9"},_re={id:"main-navigation"},bre={id:"main-navigation-left"},vre={id:"main-navigation-right"},Cre={id:"main-room-containers"},wre={id:"room-navigation"},yre={id:"all-room-title"},Sre=ML(()=>k("img",{src:zoe,style:{width:"40px"},alt:""},null,-1)),Lre=[Sre],kre={id:"room-number-search-container"},xre={id:"room-list-container"},Ere={class:"row room-containers"},Dre={id:"pagenation-button-container"},Ire=["disabled"],Nre=["disabled"];function Tre(n,e,t,i,s,o){const r=yi("AddRoom"),a=yi("RankMatching"),l=yi("MemberProfile"),c=yi("router-link"),d=yi("font-awesome-icon"),u=yi("MainHomeRoom");return oe(),ce("div",Uoe,[s.addRoomPopup||s.rankMatching?(oe(),ce("div",{key:0,id:"back-off",onClick:e[0]||(e[0]=(...h)=>o.backOff&&o.backOff(...h))})):ft("",!0),s.addRoomPopup?(oe(),ps(r,{key:1,id:"addRoom-popup",onClosePopup:o.backOff},null,8,["onClosePopup"])):ft("",!0),s.rankMatching?(oe(),ps(a,{key:2,id:"matching-popup",onClosePopup:o.backOff},null,8,["onClosePopup"])):ft("",!0),k("div",joe,[k("div",qoe,[k("div",Koe,[k("img",{id:"profile-image",src:"/images/icon/"+s.loginMember.memberProfileImg+".png",alt:"profile"},null,8,Goe),k("div",Yoe,[k("div",Zoe,[Xoe,k("img",{id:"my-rank-tier",class:"rank-tier-icon",src:"/images/rank/"+s.loginMember.memberTier.toLowerCase()+".png",alt:"my-tier"},null,8,Qoe)]),k("div",Joe,ve(s.loginMember.memberName),1)]),k("div",ere,[k("div",tre,"Lv. "+ve(s.loginMember.memberLevel),1),k("div",ire,[k("div",{class:"progress-bar progress-bar-striped bg-primary progress-bar-animated",role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100",style:Pu("width: "+s.loginMember.memberExp+"%")},[k("span",nre,ve(s.loginMember.memberExp)+" / 100",1)],4)])]),sre])]),k("button",{id:"rank-matching-button",class:"btn-custom-danger room-menu-button",onClick:e[1]||(e[1]=(...h)=>o.rankMatchingButtonClickHandler&&o.rankMatchingButtonClickHandler(...h))},[Lt(" 랭 크 "),ore,Lt(" 매 칭 ")]),k("div",rre,[are,k("ol",lre,[(oe(!0),ce(Di,null,zs(s.memberRankList,(h,f)=>(oe(),ce("li",{key:"memberRank"+f,onClick:g=>o.showProfileDetailClickHandler(h.memberNo)},[f+1==1?(oe(),ce("div",dre,ve(f+1)+"위 ",1)):f+1==2?(oe(),ce("div",ure,ve(f+1)+"위 ",1)):f+1==3?(oe(),ce("div",hre,ve(f+1)+"위 ",1)):(oe(),ce("div",fre,ve(f+1)+"위 ",1)),k("img",{class:"rank-tier-icon",src:"/images/rank/"+h.memberTier.toLowerCase()+".png",alt:"rank-tier"},null,8,gre),k("div",mre,ve(h.memberName),1)],8,cre))),128))])])]),ii(k("div",{class:"modal-wrap",onClick:e[4]||(e[4]=(...h)=>o.showMemberClickHandler&&o.showMemberClickHandler(...h))},[k("div",{class:"modal-container",onClick:e[3]||(e[3]=xL(()=>{},["stop"]))},[di(l,{memberProfile:s.rankMember,"onUpdate:memberProfile":e[2]||(e[2]=h=>s.rankMember=h),onShowMember:o.showMemberClickHandler},null,8,["memberProfile","onShowMember"])])],512),[[pv,s.memberProfilePopup]]),k("div",pre,[k("div",_re,[k("div",bre,[k("button",{class:"btn-custom-primary main-menu-button",onClick:e[5]||(e[5]=(...h)=>o.createWaitingRoomclickHandler&&o.createWaitingRoomclickHandler(...h))}," 방 만들기 "),di(c,{id:"create-problem-button",class:"btn-custom-primary main-menu-button",to:"quiz/add"},{default:rR(()=>[Lt("문제 만들기")]),_:1})]),k("div",vre,[k("button",{id:"mypage-button",class:"btn-custom main-menu-button",onClick:e[6]||(e[6]=(...h)=>o.mypageButtonClickHandler&&o.mypageButtonClickHandler(...h))},ve(s.memberAuthority=="ROLE_ADMIN"?"관리자페이지":"마이페이지"),1),k("button",{id:"logout-button",class:"btn-custom-danger main-menu-button",onClick:e[7]||(e[7]=(...h)=>o.logoutButtonClickHandler&&o.logoutButtonClickHandler(...h))}," 종료 ")])]),k("div",Cre,[k("div",wre,[k("div",yre,[Lt(" 전체 게임방 "),k("button",{class:"btn-custom",id:"room-refresh-button",onClick:e[8]||(e[8]=(...h)=>o.refreshButtonClickHandler&&o.refreshButtonClickHandler(...h))},Lre)]),k("div",kre,[ii(k("input",{id:"room-number-search-input",type:"text",placeholder:"방 번호 검색","onUpdate:modelValue":e[9]||(e[9]=h=>s.inputRoomNo=h),onInput:e[10]||(e[10]=h=>o.searchRoomInputChangeHandler(h))},null,544),[[Yi,s.inputRoomNo]]),di(d,{id:"room-number-search-icon",icon:["fa","magnifying-glass"]})])]),k("div",xre,[k("div",Ere,[(oe(!0),ce(Di,null,zs(s.roomSize,h=>(oe(),ce(Di,{key:"room"+h},[h<=s.roomList.length?(oe(),ps(u,{key:0,roomInfo:s.roomList[h-1],"onUpdate:roomInfo":f=>s.roomList[h-1]=f,memberNo:s.loginMember.memberNo},null,8,["roomInfo","onUpdate:roomInfo","memberNo"])):ft("",!0),h>s.roomList.length?(oe(),ps(u,{key:1,roomInfo:s.nullRoom,"onUpdate:roomInfo":e[11]||(e[11]=f=>s.nullRoom=f),memberNo:s.loginMember.memberNo},null,8,["roomInfo","memberNo"])):ft("",!0)],64))),128))])]),k("div",Dre,[k("button",{class:Rn([{"page-disabled":s.roomPage==0},"pagenation-button"]),disabled:s.roomPage==0,onClick:e[12]||(e[12]=(...h)=>o.prevButtonClickHandler&&o.prevButtonClickHandler(...h))}," ◀ ",10,Ire),k("button",{class:Rn([{"page-disabled":s.roomPage==s.totalPages-1},"pagenation-button"]),disabled:s.roomPage==s.totalPages-1,onClick:e[13]||(e[13]=(...h)=>o.nextButtonClickHandler&&o.nextButtonClickHandler(...h))}," ▶ ",10,Nre)])])])])}const Are=Li($oe,[["render",Tre],["__scopeId","data-v-80e6aa27"]]);const Mre={name:"RoomMember",props:["member","isRoomManager"],methods:{resignRoomMemberEventEmit(n){this.$emit("resignRoomMember"),n.stopPropagation()}}},Rre={class:"room-member-profile"},Pre=["src"],Ore={class:"member-info-container"},Fre=["src"],Bre={class:"member-nickname"},Vre={key:1,class:"room-member-profile-container",style:{background:"var(--yellow-rank-color)"}};function Wre(n,e,t,i,s,o){const r=yi("font-awesome-icon");return t.member!=null?(oe(),ce("div",{key:0,class:"room-member-profile-container",style:Pu(t.member!=null?"cursor: pointer":"")},[k("div",Rre,[ii(di(r,{id:"room-manager-icon",icon:["fas","crown"]},null,512),[[pv,t.member.hostStatus==0]]),ii(k("button",{class:"room-resign-button",onClick:e[0]||(e[0]=a=>o.resignRoomMemberEventEmit(a))}," x ",512),[[pv,t.member.hostStatus==1&t.isRoomManager]]),k("img",{class:"profile-image",src:"/images/icon/"+t.member.memberProfileImg+".png",alt:"profile"},null,8,Pre)]),k("div",Ore,[k("div",null,"Lv."+ve(t.member.memberLevel),1),k("img",{class:"rank-tier-icon",src:"/images/rank/"+t.member.memberTier.toLowerCase()+".png",alt:"my-tier"},null,8,Fre)]),k("div",Bre,ve(t.member.memberName),1)],4)):(oe(),ce("div",Vre))}const Hre=Li(Mre,[["render",Wre],["__scopeId","data-v-b8158226"]]);function zre(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,function(i,s){const o=s[0];return typeof e[o]<"u"?e[o]:i}),t}function m(n,e,...t){return zre(e,t)}var mE;const kw="en";let Ly=!1,ky=!1,xw=!1,UW=!1,yR=!1,SR=!1,q0,Ew=kw,$re,yd;const Zi=typeof self=="object"?self:typeof global=="object"?global:{};let Ms;typeof Zi.vscode<"u"&&typeof Zi.vscode.process<"u"?Ms=Zi.vscode.process:typeof process<"u"&&(Ms=process);const Ure=typeof((mE=Ms==null?void 0:Ms.versions)===null||mE===void 0?void 0:mE.electron)=="string",jre=Ure&&(Ms==null?void 0:Ms.type)==="renderer";if(typeof navigator=="object"&&!jre)yd=navigator.userAgent,Ly=yd.indexOf("Windows")>=0,ky=yd.indexOf("Macintosh")>=0,SR=(yd.indexOf("Macintosh")>=0||yd.indexOf("iPad")>=0||yd.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,xw=yd.indexOf("Linux")>=0,yR=!0,q0=navigator.language,Ew=q0;else if(typeof Ms=="object"){Ly=Ms.platform==="win32",ky=Ms.platform==="darwin",xw=Ms.platform==="linux",xw&&Ms.env.SNAP&&Ms.env.SNAP_REVISION,Ms.env.CI||Ms.env.BUILD_ARTIFACTSTAGINGDIRECTORY,q0=kw,Ew=kw;const n=Ms.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];q0=e.locale,Ew=t||kw,$re=e._translationsConfigFile}catch{}UW=!0}else console.error("Unable to resolve platform.");const qn=Ly,wt=ky,Ds=xw,xa=UW,Ou=yR,qre=yR&&typeof Zi.importScripts=="function",Ta=SR,Tl=yd,Kre=Ew,jW=(()=>{if(typeof Zi.postMessage=="function"&&!Zi.importScripts){let n=[];Zi.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=n.length;i{const i=++e;n.push({id:i,callback:t}),Zi.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),or=ky||SR?2:Ly?1:3;let c3=!0,d3=!1;function qW(){if(!d3){d3=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,c3=new Uint16Array(n.buffer)[0]===512+1}return c3}const KW=!!(Tl&&Tl.indexOf("Chrome")>=0),Gre=!!(Tl&&Tl.indexOf("Firefox")>=0),Yre=!!(!KW&&Tl&&Tl.indexOf("Safari")>=0),Zre=!!(Tl&&Tl.indexOf("Edg/")>=0);Tl&&Tl.indexOf("Android")>=0;const GW="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Xre(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of GW)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const LR=Xre();function YW(n){let e=LR;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const Qre={maxLen:1e3,windowSize:15,timeBudget:150};function Cv(n,e,t,i,s=Qre){if(t.length>s.maxLen){let c=n-s.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+s.maxLen/2),Cv(n,e,t,i,s)}const o=Date.now(),r=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=s.timeBudget);c++){const d=r-s.windowSize*c;e.lastIndex=Math.max(0,d);const u=Jre(e,t,r,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function Jre(n,e,t,i){let s;for(;s=n.exec(e);){const o=s.index||0;if(o<=t&&n.lastIndex>=t)return s;if(i>0&&o>i)return null}return null}function ir(n,e=0){return n[n.length-(1+e)]}function eae(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function jo(n,e,t=(i,s)=>i===s){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,s=n.length;i0)s=o-1;else return o}return-(i+1)}function ZW(n,e){let t=0,i=n.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],s=[],o=[],r=[];for(let a of e){const l=t(a,i);l<0?s.push(a):l>0?o.push(a):r.push(a)}return n!!e)}function XW(n){return!Array.isArray(n)||n.length===0}function vo(n){return Array.isArray(n)&&n.length>0}function au(n,e=t=>t){const t=new Set;return n.filter(i=>{const s=e(i);return t.has(s)?!1:(t.add(s),!0)})}function tae(n,e){const t=iae(n,e);if(t!==-1)return n[t]}function iae(n,e){for(let t=n.length-1;t>=0;t--){const i=n[t];if(e(i))return t}return-1}function QW(n,e){return n.length>0?n[0]:e}function xR(n){return[].concat(...n)}function As(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let s=t;se;s--)i.push(s);return i}function RL(n,e,t){const i=n.slice(0,e),s=n.slice(e);return i.concat(t,s)}function pE(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function K0(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function ER(n){return Array.isArray(n)?n:[n]}function nae(n,e,t){const i=JW(n,e),s=n.length,o=t.length;n.length=s+o;for(let r=s-1;r>=i;r--)n[r+o]=n[r];for(let r=0;re(n(t),n(i))}const sae=(n,e)=>n-e;function eH(n,e){if(n.length===0)return;let t=n[0];for(let i=1;i0&&(t=s)}return t}function oae(n,e){if(n.length===0)return;let t=n[0];for(let i=1;i=0&&(t=s)}return t}function rae(n,e){return eH(n,(t,i)=>-e(t,i))}class ap{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function tH(n){return Array.isArray(n)}function pr(n){return typeof n=="string"}function io(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function lf(n){return typeof n=="number"&&!isNaN(n)}function f3(n){return!!n&&typeof n[Symbol.iterator]=="function"}function iH(n){return n===!0||n===!1}function po(n){return typeof n>"u"}function aae(n){return!Oo(n)}function Oo(n){return po(n)||n===null}function ri(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function G0(n){if(Oo(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function xy(n){return typeof n=="function"}function lae(n,e){const t=Math.min(n.length,e.length);for(let i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(s,o)};let i={};for(const s of n)i[s]=t(s);return i}function _o(n){return n===null?void 0:n}function IR(n,e="Unreachable"){throw new Error(e)}function gc(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]=="object"?e[t]=gc(n[t]):e[t]=n[t]}),e}function hae(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(nH.call(t,i)){const s=t[i];typeof s=="object"&&!Object.isFrozen(s)&&e.push(s)}}return n}const nH=Object.prototype.hasOwnProperty;function fae(n,e){return p2(n,e,new Set)}function p2(n,e,t){if(Oo(n))return n;const i=e(n);if(typeof i<"u")return i;if(tH(n)){const s=[];for(const o of n)s.push(p2(o,e,t));return s}if(io(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const s={};for(let o in n)nH.call(n,o)&&(s[o]=p2(n[o],e,t));return t.delete(n),s}return n}function $l(n,e,t=!0){return io(n)?(io(e)&&Object.keys(e).forEach(i=>{i in n?t&&(io(n[i])&&io(e[i])?$l(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function hr(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t"u"?t:i}const ks={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},Sd=8;class sH{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class oH{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ln{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return PL(e,t)}compute(e,t,i){return i}}class Ib{constructor(e,t){this.newValue=e,this.didChange=t}}function PL(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new Ib(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&jo(n,e);return new Ib(e,i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const s=PL(n[i],e[i]);s.didChange&&(n[i]=s.newValue,t=!0)}return new Ib(n,t)}class s_{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return PL(e,t)}validate(e){return this.defaultValue}}class Xf{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return PL(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Qe(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class Tt extends Xf{constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return Qe(e,this.defaultValue)}}function _2(n,e,t,i){if(typeof n>"u")return e;let s=parseInt(n,10);return isNaN(s)?e:(s=Math.max(t,s),s=Math.min(i,s),s|0)}class vi extends Xf{constructor(e,t,i,s,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=o),super(e,t,i,r),this.minimum=s,this.maximum=o}static clampedInt(e,t,i,s){return _2(e,t,i,s)}validate(e){return vi.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class _l extends Xf{constructor(e,t,i,s,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=s}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(_l.float(e,this.defaultValue))}}class go extends Xf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return go.string(e,this.defaultValue)}}function Js(n,e,t){return typeof n!="string"||t.indexOf(n)===-1?e:n}class bn extends Xf{constructor(e,t,i,s,o=void 0){typeof o<"u"&&(o.type="string",o.enum=s,o.default=i),super(e,t,i,o),this._allowedValues=s}validate(e){return Js(e,this.defaultValue,this._allowedValues)}}class F_ extends Ln{constructor(e,t,i,s,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=s),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function gae(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class mae extends Ln{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),m("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:m("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class pae extends Ln{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Qe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Qe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _ae(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Un;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(Un||(Un={}));function bae(n){switch(n){case"line":return Un.Line;case"block":return Un.Block;case"underline":return Un.Underline;case"line-thin":return Un.LineThin;case"block-outline":return Un.BlockOutline;case"underline-thin":return Un.UnderlineThin}}class vae extends s_{constructor(){super(128)}compute(e,t,i){const s=["monaco-editor"];return t.get(33)&&s.push(t.get(33)),e.extraEditorClassName&&s.push(e.extraEditorClassName),t.get(66)==="default"?s.push("mouse-default"):t.get(66)==="copy"&&s.push("mouse-copy"),t.get(100)&&s.push("showUnused"),t.get(126)&&s.push("showDeprecated"),s.join(" ")}}class Cae extends Tt{constructor(){super(32,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class wae extends Ln{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:wt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Qe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Js(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Js(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Qe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Qe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Qe(t.loop,this.defaultValue.loop)}}}class Fo extends Ln{constructor(){super(45,"fontLigatures",Fo.OFF,{anyOf:[{type:"boolean",description:m("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Fo.OFF:e==="true"?Fo.ON:e:e?Fo.ON:Fo.OFF}}Fo.OFF='"liga" off, "calt" off';Fo.ON='"liga" on, "calt" on';class yae extends s_{constructor(){super(44)}compute(e,t,i){return e.fontInfo}}class Sae extends Xf{constructor(){super(46,"fontSize",Es.fontSize,{type:"number",minimum:6,maximum:100,default:Es.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=_l.float(e,this.defaultValue);return t===0?Es.fontSize:_l.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class ul extends Ln{constructor(){super(47,"fontWeight",Es.fontWeight,{anyOf:[{type:"number",minimum:ul.MINIMUM_VALUE,maximum:ul.MAXIMUM_VALUE,errorMessage:m("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:ul.SUGGESTION_VALUES}],default:Es.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(vi.clampedInt(e,Es.fontWeight,ul.MINIMUM_VALUE,ul.MAXIMUM_VALUE))}}ul.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];ul.MINIMUM_VALUE=1;ul.MAXIMUM_VALUE=1e3;class Lae extends Ln{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(51,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:m("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:m("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:m("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,s,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Js(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Js(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Js(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(s=a.multipleDeclarations)!==null&&s!==void 0?s:Js(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Js(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Js(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:go.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:go.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:go.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:go.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:go.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class kae extends Ln{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(53,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Qe(t.enabled,this.defaultValue.enabled),delay:vi.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Qe(t.sticky,this.defaultValue.sticky),above:Qe(t.above,this.defaultValue.above)}}}class Am extends s_{constructor(){super(131)}compute(e,t,i){return Am.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,s=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,_=e.minimap.side,b=e.verticalScrollbarWidth,v=e.viewLineCount,C=e.remainingWidth,y=e.isViewportWrapping,S=u?2:3;let x=Math.floor(o*s);const A=x/o;let E=!1,D=!1,P=S*h,$=h/o,z=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:De,extraLinesBeyondLastLine:tt,desiredRatio:Ke,minimapLineCount:yt}=Am.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,height:s,lineHeight:l,pixelRatio:o});if(v/yt>1)E=!0,D=!0,h=1,P=1,$=h/o;else{let Oe=!1,Ct=h+1;if(g==="fit"){const se=Math.ceil((v+tt)*P);y&&a&&C<=t.stableFitRemainingWidth?(Oe=!0,Ct=t.stableFitMaxMinimapScale):Oe=se>x}if(g==="fill"||Oe){E=!0;const se=h;P=Math.min(l*o,Math.max(1,Math.floor(1/Ke))),y&&a&&C<=t.stableFitRemainingWidth&&(Ct=t.stableFitMaxMinimapScale),h=Math.min(Ct,Math.max(1,Math.floor(P/S))),h>se&&(z=Math.min(2,h/se)),$=h/o/z,x=Math.ceil(Math.max(De,v+tt)*P),y?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const ee=Math.floor(f*$),Q=Math.min(ee,Math.max(0,Math.floor((C-b-2)*$/(c+$)))+Sd);let Ee=Math.floor(o*Q);const ye=Ee/o;Ee=Math.floor(Ee*z);const ke=u?1:2,Se=_==="left"?0:i-Q-b;return{renderMinimap:ke,minimapLeft:Se,minimapWidth:Q,minimapHeightIsEditorHeight:E,minimapIsSampling:D,minimapScale:h,minimapLineHeight:P,minimapCanvasInnerWidth:Ee,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ye,minimapCanvasOuterHeight:A}}static computeLayout(e,t){const i=t.outerWidth|0,s=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(123),h=u==="inherit"?e.get(122):u,f=h==="inherit"?e.get(118):h,g=e.get(121),_=e.get(2),b=t.isDominatedByLongLines,v=e.get(50),C=e.get(60).renderType!==0,y=e.get(61),S=e.get(94),x=e.get(65),A=e.get(92),E=A.verticalScrollbarSize,D=A.verticalHasArrows,P=A.arrowSize,$=A.horizontalScrollbarSize,z=e.get(58),ee=e.get(37);let Q;if(typeof z=="string"&&/^\d+(\.\d+)?ch$/.test(z)){const $e=parseFloat(z.substr(0,z.length-2));Q=vi.clampedInt($e*a,0,0,1e3)}else Q=vi.clampedInt(z,0,0,1e3);ee&&(Q+=16);let Ee=0;if(C){const $e=Math.max(r,y);Ee=Math.round($e*l)}let ye=0;v&&(ye=o);let ke=0,Se=ke+ye,De=Se+Ee,tt=De+Q;const Ke=i-ye-Ee-Q;let yt=!1,Ie=!1,Oe=-1;_!==2&&(h==="inherit"&&b?(yt=!0,Ie=!0):f==="on"||f==="bounded"?Ie=!0:f==="wordWrapColumn"&&(Oe=g));const Ct=Am._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:S,minimap:x,verticalScrollbarWidth:E,viewLineCount:d,remainingWidth:Ke,isViewportWrapping:Ie},t.memory||new oH);Ct.renderMinimap!==0&&Ct.minimapLeft===0&&(ke+=Ct.minimapWidth,Se+=Ct.minimapWidth,De+=Ct.minimapWidth,tt+=Ct.minimapWidth);const se=Ke-Ct.minimapWidth,Ut=Math.max(1,Math.floor((se-E-2)/a)),fe=D?P:0;return Ie&&(Oe=Math.max(1,Ut),f==="bounded"&&(Oe=Math.min(Oe,g))),{width:i,height:s,glyphMarginLeft:ke,glyphMarginWidth:ye,lineNumbersLeft:Se,lineNumbersWidth:Ee,decorationsLeft:De,decorationsWidth:Q,contentLeft:tt,contentWidth:se,minimap:Ct,viewportColumn:Ut,isWordWrapMinified:yt,isViewportWrapping:Ie,wrappingColumn:Oe,verticalScrollbarWidth:E,horizontalScrollbarHeight:$,overviewRuler:{top:fe,width:E,height:s-2*fe,right:0}}}}class xae extends Ln{constructor(){const e={enabled:!0};super(57,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:m("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Qe(e.enabled,this.defaultValue.enabled)}}}class Eae extends Ln{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(127,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Qe(t.enabled,this.defaultValue.enabled),fontSize:vi.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:go.string(t.fontFamily,this.defaultValue.fontFamily)}}}class Dae extends _l{constructor(){super(59,"lineHeight",Es.lineHeight,e=>_l.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height. + - Use 0 to automatically compute the line height from the font size. + - Values between 0 and 8 will be used as a multiplier with the font size. + - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class Iae extends Ln{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(65,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),m("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Qe(t.enabled,this.defaultValue.enabled),size:Js(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Js(t.side,this.defaultValue.side,["right","left"]),showSlider:Js(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Qe(t.renderCharacters,this.defaultValue.renderCharacters),scale:vi.clampedInt(t.scale,1,1,3),maxColumn:vi.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function Nae(n){return n==="ctrlCmd"?wt?"metaKey":"ctrlKey":"altKey"}class Tae extends Ln{constructor(){super(75,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:vi.clampedInt(t.top,0,0,1e3),bottom:vi.clampedInt(t.bottom,0,0,1e3)}}}class Aae extends Ln{constructor(){const e={enabled:!0,cycle:!1};super(76,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Qe(t.enabled,this.defaultValue.enabled),cycle:Qe(t.cycle,this.defaultValue.cycle)}}}class Mae extends s_{constructor(){super(129)}compute(e,t,i){return e.pixelRatio}}class Rae extends Ln{constructor(){const e={other:!0,comments:!1,strings:!1};super(79,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:m("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:m("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:m("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:m("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:Qe(t.other,this.defaultValue.other),comments:Qe(t.comments,this.defaultValue.comments),strings:Qe(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class Pae extends Ln{constructor(){super(60,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m("lineNumbers.off","Line numbers are not rendered."),m("lineNumbers.on","Line numbers are rendered as absolute number."),m("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),m("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:m("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Ey(n){const e=n.get(87);return e==="editable"?n.get(81):e!=="on"}class Oae extends Ln{constructor(){const e=[],t={type:"number",description:m("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(91,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:m("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(let i of e)if(typeof i=="number")t.push({column:vi.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const s=i;t.push({column:vi.clampedInt(s.column,0,0,1e4),color:s.color})}return t.sort((i,s)=>i.column-s.column),t}return this.defaultValue}}function g3(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}let Fae=class extends Ln{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(92,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),m("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),m("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),m("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),m("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=vi.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=vi.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:vi.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:g3(t.vertical,this.defaultValue.vertical),horizontal:g3(t.horizontal,this.defaultValue.horizontal),useShadows:Qe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Qe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Qe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Qe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Qe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:vi.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:vi.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:Qe(t.scrollByPage,this.defaultValue.scrollByPage)}}};const Ro="inUntrustedWorkspace",Xs={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Bae extends Ln{constructor(){const e={nonBasicASCII:Ro,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Ro,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(113,"unicodeHighlight",e,{[Xs.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ro],default:e.nonBasicASCII,description:m("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Xs.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Xs.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Xs.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ro],default:e.includeComments,description:m("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[Xs.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ro],default:e.includeStrings,description:m("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")},[Xs.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Xs.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&(hr(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&(hr(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const s=super.applyUpdate(e,t);return i?new Ib(s.newValue,!0):s}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Nb(t.nonBasicASCII,Ro,[!0,!1,Ro]),invisibleCharacters:Qe(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Qe(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Nb(t.includeComments,Ro,[!0,!1,Ro]),includeStrings:Nb(t.includeStrings,Ro,[!0,!1,Ro]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[s,o]of Object.entries(e))o===!0&&(i[s]=!0);return i}}class Vae extends Ln{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(55,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Qe(t.enabled,this.defaultValue.enabled),mode:Js(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class Wae extends Ln{constructor(){const e={enabled:ks.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:m("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Qe(e.enabled,this.defaultValue.enabled)}}}class Hae extends Ln{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairs.true","Enables bracket pair guides."),m("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),m("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:m("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),m("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),m("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:m("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Nb(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Nb(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Qe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Qe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Qe(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function Nb(n,e,t){const i=t.indexOf(n);return i===-1?e:t[i]}class zae extends Ln{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(106,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),m("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:m("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:m("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:m("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Js(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Qe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Qe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Qe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Qe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:Qe(t.showIcons,this.defaultValue.showIcons),showStatusBar:Qe(t.showStatusBar,this.defaultValue.showStatusBar),preview:Qe(t.preview,this.defaultValue.preview),previewMode:Js(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Qe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Qe(t.showMethods,this.defaultValue.showMethods),showFunctions:Qe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Qe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Qe(t.showDeprecated,this.defaultValue.showDeprecated),showFields:Qe(t.showFields,this.defaultValue.showFields),showVariables:Qe(t.showVariables,this.defaultValue.showVariables),showClasses:Qe(t.showClasses,this.defaultValue.showClasses),showStructs:Qe(t.showStructs,this.defaultValue.showStructs),showInterfaces:Qe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Qe(t.showModules,this.defaultValue.showModules),showProperties:Qe(t.showProperties,this.defaultValue.showProperties),showEvents:Qe(t.showEvents,this.defaultValue.showEvents),showOperators:Qe(t.showOperators,this.defaultValue.showOperators),showUnits:Qe(t.showUnits,this.defaultValue.showUnits),showValues:Qe(t.showValues,this.defaultValue.showValues),showConstants:Qe(t.showConstants,this.defaultValue.showConstants),showEnums:Qe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Qe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Qe(t.showKeywords,this.defaultValue.showKeywords),showWords:Qe(t.showWords,this.defaultValue.showWords),showColors:Qe(t.showColors,this.defaultValue.showColors),showFiles:Qe(t.showFiles,this.defaultValue.showFiles),showReferences:Qe(t.showReferences,this.defaultValue.showReferences),showFolders:Qe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Qe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Qe(t.showSnippets,this.defaultValue.showSnippets),showUsers:Qe(t.showUsers,this.defaultValue.showUsers),showIssues:Qe(t.showIssues,this.defaultValue.showIssues)}}}class $ae extends Ln{constructor(){super(102,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Qe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class Uae extends s_{constructor(){super(130)}compute(e,t,i){return t.get(81)?!0:e.tabFocusMode}}function jae(n){switch(n){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class qae extends s_{constructor(){super(132)}compute(e,t,i){const s=t.get(131);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}const Kae="Consolas, 'Courier New', monospace",Gae="Menlo, Monaco, 'Courier New', monospace",Yae="'Droid Sans Mono', 'monospace', monospace",Es={fontFamily:wt?Gae:Ds?Yae:Kae,fontWeight:"normal",fontSize:wt?12:14,lineHeight:0,letterSpacing:0},am=[];function ge(n){return am[n.id]=n,n}const Ba={acceptSuggestionOnCommitCharacter:ge(new Tt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ge(new bn(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ge(new mae),accessibilityPageSize:ge(new vi(3,"accessibilityPageSize",10,1,1073741824,{description:m("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ge(new go(4,"ariaLabel",m("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ge(new bn(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),m("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ge(new bn(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ge(new bn(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ge(new bn(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),m("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ge(new F_(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],gae,{enumDescriptions:[m("editor.autoIndent.none","The editor will not insert indentation automatically."),m("editor.autoIndent.keep","The editor will keep the current line's indentation."),m("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),m("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:m("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ge(new Tt(10,"automaticLayout",!1)),autoSurround:ge(new bn(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),m("editor.autoSurround.quotes","Surround with quotes but not brackets."),m("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:m("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ge(new Wae),bracketPairGuides:ge(new Hae),stickyTabStops:ge(new Tt(104,"stickyTabStops",!1,{description:m("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ge(new Tt(14,"codeLens",!0,{description:m("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ge(new go(15,"codeLensFontFamily","",{description:m("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ge(new vi(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ge(new Tt(17,"colorDecorators",!0,{description:m("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:ge(new Tt(18,"columnSelection",!1,{description:m("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ge(new pae),contextmenu:ge(new Tt(20,"contextmenu",!0)),copyWithSyntaxHighlighting:ge(new Tt(21,"copyWithSyntaxHighlighting",!0,{description:m("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ge(new F_(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],_ae,{description:m("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ge(new Tt(23,"cursorSmoothCaretAnimation",!1,{description:m("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ge(new F_(24,"cursorStyle",Un.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],bae,{description:m("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ge(new vi(25,"cursorSurroundingLines",0,0,1073741824,{description:m("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ge(new bn(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:m("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ge(new vi(27,"cursorWidth",0,0,1073741824,{markdownDescription:m("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ge(new Tt(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:ge(new Tt(29,"disableMonospaceOptimizations",!1)),domReadOnly:ge(new Tt(30,"domReadOnly",!1)),dragAndDrop:ge(new Tt(31,"dragAndDrop",!0,{description:m("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ge(new Cae),extraEditorClassName:ge(new go(33,"extraEditorClassName","")),fastScrollSensitivity:ge(new _l(34,"fastScrollSensitivity",5,n=>n<=0?5:n,{markdownDescription:m("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ge(new wae),fixedOverflowWidgets:ge(new Tt(36,"fixedOverflowWidgets",!1)),folding:ge(new Tt(37,"folding",!0,{description:m("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ge(new bn(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),m("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:m("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ge(new Tt(39,"foldingHighlight",!0,{description:m("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ge(new Tt(40,"foldingImportsByDefault",!1,{description:m("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ge(new vi(41,"foldingMaximumRegions",5e3,10,65e3,{description:m("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ge(new Tt(42,"unfoldOnClickAfterEndOfLine",!1,{description:m("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ge(new go(43,"fontFamily",Es.fontFamily,{description:m("fontFamily","Controls the font family.")})),fontInfo:ge(new yae),fontLigatures2:ge(new Fo),fontSize:ge(new Sae),fontWeight:ge(new ul),formatOnPaste:ge(new Tt(48,"formatOnPaste",!1,{description:m("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ge(new Tt(49,"formatOnType",!1,{description:m("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ge(new Tt(50,"glyphMargin",!0,{description:m("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ge(new Lae),hideCursorInOverviewRuler:ge(new Tt(52,"hideCursorInOverviewRuler",!1,{description:m("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ge(new kae),inDiffEditor:ge(new Tt(54,"inDiffEditor",!1)),letterSpacing:ge(new _l(56,"letterSpacing",Es.letterSpacing,n=>_l.clamp(n,-5,20),{description:m("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ge(new xae),lineDecorationsWidth:ge(new Xf(58,"lineDecorationsWidth",10)),lineHeight:ge(new Dae),lineNumbers:ge(new Pae),lineNumbersMinChars:ge(new vi(61,"lineNumbersMinChars",5,1,300)),linkedEditing:ge(new Tt(62,"linkedEditing",!1,{description:m("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:ge(new Tt(63,"links",!0,{description:m("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ge(new bn(64,"matchBrackets","always",["always","near","never"],{description:m("matchBrackets","Highlight matching brackets.")})),minimap:ge(new Iae),mouseStyle:ge(new bn(66,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ge(new _l(67,"mouseWheelScrollSensitivity",1,n=>n===0?1:n,{markdownDescription:m("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ge(new Tt(68,"mouseWheelZoom",!1,{markdownDescription:m("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ge(new Tt(69,"multiCursorMergeOverlapping",!0,{description:m("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ge(new F_(70,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Nae,{markdownEnumDescriptions:[m("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),m("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ge(new bn(71,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m("multiCursorPaste.spread","Each cursor pastes a single line of the text."),m("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:m("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ge(new Tt(72,"occurrencesHighlight",!0,{description:m("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ge(new Tt(73,"overviewRulerBorder",!0,{description:m("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ge(new vi(74,"overviewRulerLanes",3,0,3)),padding:ge(new Tae),parameterHints:ge(new Aae),peekWidgetDefaultFocus:ge(new bn(77,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),m("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:m("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ge(new Tt(78,"definitionLinkOpensInPeek",!1,{description:m("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ge(new Rae),quickSuggestionsDelay:ge(new vi(80,"quickSuggestionsDelay",10,0,1073741824,{description:m("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ge(new Tt(81,"readOnly",!1)),renameOnType:ge(new Tt(82,"renameOnType",!1,{description:m("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:m("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ge(new Tt(83,"renderControlCharacters",!0,{description:m("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ge(new Tt(84,"renderFinalNewline",!0,{description:m("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ge(new bn(85,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:m("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ge(new Tt(86,"renderLineHighlightOnlyWhenFocus",!1,{description:m("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ge(new bn(87,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ge(new bn(88,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),m("renderWhitespace.selection","Render whitespace characters only on selected text."),m("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:m("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ge(new vi(89,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ge(new Tt(90,"roundedSelection",!0,{description:m("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ge(new Oae),scrollbar:ge(new Fae),scrollBeyondLastColumn:ge(new vi(93,"scrollBeyondLastColumn",5,0,1073741824,{description:m("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ge(new Tt(94,"scrollBeyondLastLine",!0,{description:m("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ge(new Tt(95,"scrollPredominantAxis",!0,{description:m("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ge(new Tt(96,"selectionClipboard",!0,{description:m("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Ds})),selectionHighlight:ge(new Tt(97,"selectionHighlight",!0,{description:m("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ge(new Tt(98,"selectOnLineNumbers",!0)),showFoldingControls:ge(new bn(99,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[m("showFoldingControls.always","Always show the folding controls."),m("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:m("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ge(new Tt(100,"showUnused",!0,{description:m("showUnused","Controls fading out of unused code.")})),showDeprecated:ge(new Tt(126,"showDeprecated",!0,{description:m("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ge(new Eae),snippetSuggestions:ge(new bn(101,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),m("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),m("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),m("snippetSuggestions.none","Do not show snippet suggestions.")],description:m("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ge(new $ae),smoothScrolling:ge(new Tt(103,"smoothScrolling",!1,{description:m("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ge(new vi(105,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ge(new zae),inlineSuggest:ge(new Vae),suggestFontSize:ge(new vi(107,"suggestFontSize",0,0,1e3,{markdownDescription:m("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ge(new vi(108,"suggestLineHeight",0,0,1e3,{markdownDescription:m("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:ge(new Tt(109,"suggestOnTriggerCharacters",!0,{description:m("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ge(new bn(110,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m("suggestSelection.first","Always select the first suggestion."),m("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ge(new bn(111,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),m("tabCompletion.off","Disable tab completions."),m("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m("tabCompletion","Enables tab completions.")})),tabIndex:ge(new vi(112,"tabIndex",0,-1,1073741824)),unicodeHighlight:ge(new Bae),unusualLineTerminators:ge(new bn(114,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),m("unusualLineTerminators.off","Unusual line terminators are ignored."),m("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:m("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ge(new Tt(115,"useShadowDOM",!0)),useTabStops:ge(new Tt(116,"useTabStops",!0,{description:m("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ge(new go(117,"wordSeparators",GW,{description:m("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ge(new bn(118,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m("wordWrap.off","Lines will never wrap."),m("wordWrap.on","Lines will wrap at the viewport width."),m({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),m({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:m({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ge(new go(119,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ge(new go(120,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ge(new vi(121,"wordWrapColumn",80,1,1073741824,{markdownDescription:m({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ge(new bn(122,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ge(new bn(123,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:ge(new F_(124,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],jae,{enumDescriptions:[m("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),m("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),m("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),m("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:m("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ge(new bn(125,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[m("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:m("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ge(new vae),pixelRatio:ge(new Mae),tabFocusMode:ge(new Uae),layoutInfo:ge(new Am),wrappingInfo:ge(new qae)};class Zae{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+` + +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const rH=new Zae;function dt(n){Ul(n)||rH.onUnexpectedError(n)}function On(n){Ul(n)||rH.onUnexpectedExternalError(n)}function m3(n){if(n instanceof Error){let{name:e,message:t}=n;const i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i}}return n}const Dy="Canceled";function Ul(n){return n instanceof Qf?!0:n instanceof Error&&n.name===Dy&&n.message===Dy}class Qf extends Error{constructor(){super(Dy),this.name=this.message}}function NR(){const n=new Error(Dy);return n.name=n.message,n}function Ea(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function Xae(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}class Qae extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}function zc(n){const e=this;let t=!1,i;return function(){return t||(t=!0,i=n.apply(e,arguments)),i}}var Rt;(function(n){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*s(C){yield C}n.single=s;function o(C){return C||t}n.from=o;function r(C){return!C||C[Symbol.iterator]().next().done===!0}n.isEmpty=r;function a(C){return C[Symbol.iterator]().next().value}n.first=a;function l(C,y){for(const S of C)if(y(S))return!0;return!1}n.some=l;function c(C,y){for(const S of C)if(y(S))return S}n.find=c;function*d(C,y){for(const S of C)y(S)&&(yield S)}n.filter=d;function*u(C,y){let S=0;for(const x of C)yield y(x,S++)}n.map=u;function*h(...C){for(const y of C)for(const S of y)yield S}n.concat=h;function*f(C){for(const y of C)for(const S of y)yield S}n.concatNested=f;function g(C,y,S){let x=S;for(const A of C)x=y(x,A);return x}n.reduce=g;function*_(C,y,S=C.length){for(y<0&&(y+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);yx===A){const x=C[Symbol.iterator](),A=y[Symbol.iterator]();for(;;){const E=x.next(),D=A.next();if(E.done!==D.done)return!1;if(E.done)return!0;if(!S(E.value,D.value))return!1}}n.equals=v})(Rt||(Rt={}));class Jae extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function TR(n){return typeof n.dispose=="function"&&n.dispose.length===0}function Pt(n){if(Rt.is(n)){let e=[];for(const t of n)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new Jae(e);return Array.isArray(n)?[]:n}else if(n)return n.dispose(),n}function Mc(...n){return vt(()=>Pt(n))}function vt(n){return{dispose:zc(()=>{n()})}}class ue{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{Pt(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ue.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}ue.DISABLE_DISPOSED_WARNING=!1;class J{constructor(){this._store=new ue,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}J.None=Object.freeze({dispose(){}});class $s{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class ele{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0)},this}}class tle{constructor(e){this.object=e}dispose(){}}let dn=class b2{constructor(e){this.element=e,this.next=b2.Undefined,this.prev=b2.Undefined}};dn.Undefined=new dn(void 0);class zo{constructor(){this._first=dn.Undefined,this._last=dn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===dn.Undefined}clear(){let e=this._first;for(;e!==dn.Undefined;){const t=e.next;e.prev=dn.Undefined,e.next=dn.Undefined,e=t}this._first=dn.Undefined,this._last=dn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new dn(e);if(this._first===dn.Undefined)this._first=i,this._last=i;else if(t){const o=this._last;this._last=i,i.prev=o,o.next=i}else{const o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==dn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==dn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==dn.Undefined&&e.next!==dn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===dn.Undefined&&e.next===dn.Undefined?(this._first=dn.Undefined,this._last=dn.Undefined):e.next===dn.Undefined?(this._last=this._last.prev,this._last.next=dn.Undefined):e.prev===dn.Undefined&&(this._first=this._first.next,this._first.prev=dn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==dn.Undefined;)yield e.element,e=e.next}}const ile=Zi.performance&&typeof Zi.performance.now=="function";class so{constructor(e){this._highResolution=ile&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new so(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Zi.performance.now():Date.now()}}var je;(function(n){n.None=()=>J.None;function e(S){return(x,A=null,E)=>{let D=!1,P;return P=S($=>{if(!D)return P?P.dispose():D=!0,x.call(A,$)},null,E),D&&P.dispose(),P}}n.once=e;function t(S,x,A){return l((E,D=null,P)=>S($=>E.call(D,x($)),null,P),A)}n.map=t;function i(S,x,A){return l((E,D=null,P)=>S($=>{x($),E.call(D,$)},null,P),A)}n.forEach=i;function s(S,x,A){return l((E,D=null,P)=>S($=>x($)&&E.call(D,$),null,P),A)}n.filter=s;function o(S){return S}n.signal=o;function r(...S){return(x,A=null,E)=>Mc(...S.map(D=>D(P=>x.call(A,P),null,E)))}n.any=r;function a(S,x,A,E){let D=A;return t(S,P=>(D=x(D,P),D),E)}n.reduce=a;function l(S,x){let A;const E={onFirstListenerAdd(){A=S(D.fire,D)},onLastListenerRemove(){A.dispose()}},D=new j(E);return x&&x.add(D),D.event}function c(S,x,A=100,E=!1,D,P){let $,z,ee,Q=0;const Ee={leakWarningThreshold:D,onFirstListenerAdd(){$=S(ke=>{Q++,z=x(z,ke),E&&!ee&&(ye.fire(z),z=void 0),clearTimeout(ee),ee=setTimeout(()=>{const Se=z;z=void 0,ee=void 0,(!E||Q>1)&&ye.fire(Se),Q=0},A)})},onLastListenerRemove(){$.dispose()}},ye=new j(Ee);return P&&P.add(ye),ye.event}n.debounce=c;function d(S,x=(E,D)=>E===D,A){let E=!0,D;return s(S,P=>{const $=E||!x(P,D);return E=!1,D=P,$},A)}n.latch=d;function u(S,x,A){return[n.filter(S,x,A),n.filter(S,E=>!x(E),A)]}n.split=u;function h(S,x=!1,A=[]){let E=A.slice(),D=S(z=>{E?E.push(z):$.fire(z)});const P=()=>{E&&E.forEach(z=>$.fire(z)),E=null},$=new j({onFirstListenerAdd(){D||(D=S(z=>$.fire(z)))},onFirstListenerDidAdd(){E&&(x?setTimeout(P):P())},onLastListenerRemove(){D&&D.dispose(),D=null}});return $.event}n.buffer=h;class f{constructor(x){this.event=x}map(x){return new f(t(this.event,x))}forEach(x){return new f(i(this.event,x))}filter(x){return new f(s(this.event,x))}reduce(x,A){return new f(a(this.event,x,A))}latch(){return new f(d(this.event))}debounce(x,A=100,E=!1,D){return new f(c(this.event,x,A,E,D))}on(x,A,E){return this.event(x,A,E)}once(x,A,E){return e(this.event)(x,A,E)}}function g(S){return new f(S)}n.chain=g;function _(S,x,A=E=>E){const E=(...z)=>$.fire(A(...z)),D=()=>S.on(x,E),P=()=>S.removeListener(x,E),$=new j({onFirstListenerAdd:D,onLastListenerRemove:P});return $.event}n.fromNodeEventEmitter=_;function b(S,x,A=E=>E){const E=(...z)=>$.fire(A(...z)),D=()=>S.addEventListener(x,E),P=()=>S.removeEventListener(x,E),$=new j({onFirstListenerAdd:D,onLastListenerRemove:P});return $.event}n.fromDOMEventEmitter=b;function v(S){return new Promise(x=>e(S)(x))}n.toPromise=v;function C(S,x){return x(void 0),S(A=>x(A))}n.runAndSubscribe=C;function y(S,x){let A=null;function E(P){A==null||A.dispose(),A=new ue,x(P,A)}E(void 0);const D=S(P=>E(P));return vt(()=>{D.dispose(),A==null||A.dispose()})}n.runAndSubscribeWithStore=y})(je||(je={}));class OL{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${OL._idPool++}`}start(e){this._stopWatch=new so(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}OL._idPool=0;class AR{constructor(e){this.value=e}static create(){var e;return new AR((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` +`).slice(2).join(` +`))}}class nle{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new ele}invoke(e){this.callback.call(this.callbackThis,e)}}let j=class{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new OL(this._options._profName):void 0}dispose(){var e,t,i,s;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(),(i=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||i===void 0||i.call(t),(s=this._leakageMon)===null||s===void 0||s.dispose())}get event(){return this._event||(this._event=(e,t,i)=>{var s,o,r;this._listeners||(this._listeners=new zo);const a=this._listeners.isEmpty();a&&(!((s=this._options)===null||s===void 0)&&s.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let l,c;this._leakageMon&&this._listeners.size>=30&&(c=AR.create(),l=this._leakageMon.check(c,this._listeners.size+1));const d=new nle(e,t,c),u=this._listeners.push(d);a&&(!((o=this._options)===null||o===void 0)&&o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((r=this._options)===null||r===void 0)&&r.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const h=d.subscription.set(()=>{l&&l(),this._disposed||(u(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return i instanceof ue?i.add(h):Array.isArray(i)&&i.push(h),h}),this._event}fire(e){var t,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new zo);for(let s of this._listeners)this._deliveryQueue.push([s,e]);for((t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,o]=this._deliveryQueue.shift();try{s.invoke(o)}catch(r){dt(r)}}(i=this._perfMon)===null||i===void 0||i.stop()}}};class Iy extends j{constructor(e){super(e),this._isPaused=0,this._eventQueue=new zo,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class sle extends Iy{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class MR{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,s)=>e(o=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,o)):t.call(i,o)},void 0,s)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(s=>s()),i}}class p3{constructor(){this.listening=!1,this.inputEvent=je.None,this.inputEventListener=J.None,this.emitter=new j({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const aH=Object.freeze(function(n,e){const t=setTimeout(n.bind(e),0);return{dispose(){clearTimeout(t)}}});var xt;(function(n){function e(t){return t===n.None||t===n.Cancelled||t instanceof Iw?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}n.isCancellationToken=e,n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:je.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:aH})})(xt||(xt={}));class Iw{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?aH:(this._emitter||(this._emitter=new j),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let is=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Iw),this._token}cancel(){this._token?this._token instanceof Iw&&this._token.cancel():this._token=xt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Iw&&this._token.dispose():this._token=xt.None}};class RR{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Nw=new RR,v2=new RR,C2=new RR,lH=new Array(230),ole=Object.create(null),rle=Object.create(null),PR=[];for(let n=0;n<=193;n++)PR[n]=-1;(function(){const n="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",n,n],[0,1,1,"Hyper",0,n,0,n,n,n],[0,1,2,"Super",0,n,0,n,n,n],[0,1,3,"Fn",0,n,0,n,n,n],[0,1,4,"FnLock",0,n,0,n,n,n],[0,1,5,"Suspend",0,n,0,n,n,n],[0,1,6,"Resume",0,n,0,n,n,n],[0,1,7,"Turbo",0,n,0,n,n,n],[0,1,8,"Sleep",0,n,0,"VK_SLEEP",n,n],[0,1,9,"WakeUp",0,n,0,n,n,n],[31,0,10,"KeyA",31,"A",65,"VK_A",n,n],[32,0,11,"KeyB",32,"B",66,"VK_B",n,n],[33,0,12,"KeyC",33,"C",67,"VK_C",n,n],[34,0,13,"KeyD",34,"D",68,"VK_D",n,n],[35,0,14,"KeyE",35,"E",69,"VK_E",n,n],[36,0,15,"KeyF",36,"F",70,"VK_F",n,n],[37,0,16,"KeyG",37,"G",71,"VK_G",n,n],[38,0,17,"KeyH",38,"H",72,"VK_H",n,n],[39,0,18,"KeyI",39,"I",73,"VK_I",n,n],[40,0,19,"KeyJ",40,"J",74,"VK_J",n,n],[41,0,20,"KeyK",41,"K",75,"VK_K",n,n],[42,0,21,"KeyL",42,"L",76,"VK_L",n,n],[43,0,22,"KeyM",43,"M",77,"VK_M",n,n],[44,0,23,"KeyN",44,"N",78,"VK_N",n,n],[45,0,24,"KeyO",45,"O",79,"VK_O",n,n],[46,0,25,"KeyP",46,"P",80,"VK_P",n,n],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",n,n],[48,0,27,"KeyR",48,"R",82,"VK_R",n,n],[49,0,28,"KeyS",49,"S",83,"VK_S",n,n],[50,0,29,"KeyT",50,"T",84,"VK_T",n,n],[51,0,30,"KeyU",51,"U",85,"VK_U",n,n],[52,0,31,"KeyV",52,"V",86,"VK_V",n,n],[53,0,32,"KeyW",53,"W",87,"VK_W",n,n],[54,0,33,"KeyX",54,"X",88,"VK_X",n,n],[55,0,34,"KeyY",55,"Y",89,"VK_Y",n,n],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",n,n],[22,0,36,"Digit1",22,"1",49,"VK_1",n,n],[23,0,37,"Digit2",23,"2",50,"VK_2",n,n],[24,0,38,"Digit3",24,"3",51,"VK_3",n,n],[25,0,39,"Digit4",25,"4",52,"VK_4",n,n],[26,0,40,"Digit5",26,"5",53,"VK_5",n,n],[27,0,41,"Digit6",27,"6",54,"VK_6",n,n],[28,0,42,"Digit7",28,"7",55,"VK_7",n,n],[29,0,43,"Digit8",29,"8",56,"VK_8",n,n],[30,0,44,"Digit9",30,"9",57,"VK_9",n,n],[21,0,45,"Digit0",21,"0",48,"VK_0",n,n],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",n,n],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",n,n],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",n,n],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",n,n],[10,1,50,"Space",10,"Space",32,"VK_SPACE",n,n],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,n,0,n,n,n],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",n,n],[59,1,64,"F1",59,"F1",112,"VK_F1",n,n],[60,1,65,"F2",60,"F2",113,"VK_F2",n,n],[61,1,66,"F3",61,"F3",114,"VK_F3",n,n],[62,1,67,"F4",62,"F4",115,"VK_F4",n,n],[63,1,68,"F5",63,"F5",116,"VK_F5",n,n],[64,1,69,"F6",64,"F6",117,"VK_F6",n,n],[65,1,70,"F7",65,"F7",118,"VK_F7",n,n],[66,1,71,"F8",66,"F8",119,"VK_F8",n,n],[67,1,72,"F9",67,"F9",120,"VK_F9",n,n],[68,1,73,"F10",68,"F10",121,"VK_F10",n,n],[69,1,74,"F11",69,"F11",122,"VK_F11",n,n],[70,1,75,"F12",70,"F12",123,"VK_F12",n,n],[0,1,76,"PrintScreen",0,n,0,n,n,n],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",n,n],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",n,n],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",n,n],[14,1,80,"Home",14,"Home",36,"VK_HOME",n,n],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",n,n],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",n,n],[13,1,83,"End",13,"End",35,"VK_END",n,n],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",n,n],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",n],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",n],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",n],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",n],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",n,n],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",n,n],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",n,n],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",n,n],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",n,n],[3,1,94,"NumpadEnter",3,n,0,n,n,n],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",n,n],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",n,n],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",n,n],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",n,n],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",n,n],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",n,n],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",n,n],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",n,n],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",n,n],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",n,n],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",n,n],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",n,n],[58,1,107,"ContextMenu",58,"ContextMenu",93,n,n,n],[0,1,108,"Power",0,n,0,n,n,n],[0,1,109,"NumpadEqual",0,n,0,n,n,n],[71,1,110,"F13",71,"F13",124,"VK_F13",n,n],[72,1,111,"F14",72,"F14",125,"VK_F14",n,n],[73,1,112,"F15",73,"F15",126,"VK_F15",n,n],[74,1,113,"F16",74,"F16",127,"VK_F16",n,n],[75,1,114,"F17",75,"F17",128,"VK_F17",n,n],[76,1,115,"F18",76,"F18",129,"VK_F18",n,n],[77,1,116,"F19",77,"F19",130,"VK_F19",n,n],[0,1,117,"F20",0,n,0,"VK_F20",n,n],[0,1,118,"F21",0,n,0,"VK_F21",n,n],[0,1,119,"F22",0,n,0,"VK_F22",n,n],[0,1,120,"F23",0,n,0,"VK_F23",n,n],[0,1,121,"F24",0,n,0,"VK_F24",n,n],[0,1,122,"Open",0,n,0,n,n,n],[0,1,123,"Help",0,n,0,n,n,n],[0,1,124,"Select",0,n,0,n,n,n],[0,1,125,"Again",0,n,0,n,n,n],[0,1,126,"Undo",0,n,0,n,n,n],[0,1,127,"Cut",0,n,0,n,n,n],[0,1,128,"Copy",0,n,0,n,n,n],[0,1,129,"Paste",0,n,0,n,n,n],[0,1,130,"Find",0,n,0,n,n,n],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",n,n],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",n,n],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",n,n],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",n,n],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",n,n],[0,1,136,"KanaMode",0,n,0,n,n,n],[0,0,137,"IntlYen",0,n,0,n,n,n],[0,1,138,"Convert",0,n,0,n,n,n],[0,1,139,"NonConvert",0,n,0,n,n,n],[0,1,140,"Lang1",0,n,0,n,n,n],[0,1,141,"Lang2",0,n,0,n,n,n],[0,1,142,"Lang3",0,n,0,n,n,n],[0,1,143,"Lang4",0,n,0,n,n,n],[0,1,144,"Lang5",0,n,0,n,n,n],[0,1,145,"Abort",0,n,0,n,n,n],[0,1,146,"Props",0,n,0,n,n,n],[0,1,147,"NumpadParenLeft",0,n,0,n,n,n],[0,1,148,"NumpadParenRight",0,n,0,n,n,n],[0,1,149,"NumpadBackspace",0,n,0,n,n,n],[0,1,150,"NumpadMemoryStore",0,n,0,n,n,n],[0,1,151,"NumpadMemoryRecall",0,n,0,n,n,n],[0,1,152,"NumpadMemoryClear",0,n,0,n,n,n],[0,1,153,"NumpadMemoryAdd",0,n,0,n,n,n],[0,1,154,"NumpadMemorySubtract",0,n,0,n,n,n],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",n,n],[0,1,156,"NumpadClearEntry",0,n,0,n,n,n],[5,1,0,n,5,"Ctrl",17,"VK_CONTROL",n,n],[4,1,0,n,4,"Shift",16,"VK_SHIFT",n,n],[6,1,0,n,6,"Alt",18,"VK_MENU",n,n],[57,1,0,n,57,"Meta",0,"VK_COMMAND",n,n],[5,1,157,"ControlLeft",5,n,0,"VK_LCONTROL",n,n],[4,1,158,"ShiftLeft",4,n,0,"VK_LSHIFT",n,n],[6,1,159,"AltLeft",6,n,0,"VK_LMENU",n,n],[57,1,160,"MetaLeft",57,n,0,"VK_LWIN",n,n],[5,1,161,"ControlRight",5,n,0,"VK_RCONTROL",n,n],[4,1,162,"ShiftRight",4,n,0,"VK_RSHIFT",n,n],[6,1,163,"AltRight",6,n,0,"VK_RMENU",n,n],[57,1,164,"MetaRight",57,n,0,"VK_RWIN",n,n],[0,1,165,"BrightnessUp",0,n,0,n,n,n],[0,1,166,"BrightnessDown",0,n,0,n,n,n],[0,1,167,"MediaPlay",0,n,0,n,n,n],[0,1,168,"MediaRecord",0,n,0,n,n,n],[0,1,169,"MediaFastForward",0,n,0,n,n,n],[0,1,170,"MediaRewind",0,n,0,n,n,n],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",n,n],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",n,n],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",n,n],[0,1,174,"Eject",0,n,0,n,n,n],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",n,n],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",n,n],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",n,n],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",n,n],[0,1,179,"LaunchApp1",0,n,0,"VK_MEDIA_LAUNCH_APP1",n,n],[0,1,180,"SelectTask",0,n,0,n,n,n],[0,1,181,"LaunchScreenSaver",0,n,0,n,n,n],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",n,n],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",n,n],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",n,n],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",n,n],[0,1,186,"BrowserStop",0,n,0,"VK_BROWSER_STOP",n,n],[0,1,187,"BrowserRefresh",0,n,0,"VK_BROWSER_REFRESH",n,n],[0,1,188,"BrowserFavorites",0,n,0,"VK_BROWSER_FAVORITES",n,n],[0,1,189,"ZoomToggle",0,n,0,n,n,n],[0,1,190,"MailReply",0,n,0,n,n,n],[0,1,191,"MailForward",0,n,0,n,n,n],[0,1,192,"MailSend",0,n,0,n,n,n],[109,1,0,n,109,"KeyInComposition",229,n,n,n],[111,1,0,n,111,"ABNT_C2",194,"VK_ABNT_C2",n,n],[91,1,0,n,91,"OEM_8",223,"VK_OEM_8",n,n],[0,1,0,n,0,n,0,"VK_KANA",n,n],[0,1,0,n,0,n,0,"VK_HANGUL",n,n],[0,1,0,n,0,n,0,"VK_JUNJA",n,n],[0,1,0,n,0,n,0,"VK_FINAL",n,n],[0,1,0,n,0,n,0,"VK_HANJA",n,n],[0,1,0,n,0,n,0,"VK_KANJI",n,n],[0,1,0,n,0,n,0,"VK_CONVERT",n,n],[0,1,0,n,0,n,0,"VK_NONCONVERT",n,n],[0,1,0,n,0,n,0,"VK_ACCEPT",n,n],[0,1,0,n,0,n,0,"VK_MODECHANGE",n,n],[0,1,0,n,0,n,0,"VK_SELECT",n,n],[0,1,0,n,0,n,0,"VK_PRINT",n,n],[0,1,0,n,0,n,0,"VK_EXECUTE",n,n],[0,1,0,n,0,n,0,"VK_SNAPSHOT",n,n],[0,1,0,n,0,n,0,"VK_HELP",n,n],[0,1,0,n,0,n,0,"VK_APPS",n,n],[0,1,0,n,0,n,0,"VK_PROCESSKEY",n,n],[0,1,0,n,0,n,0,"VK_PACKET",n,n],[0,1,0,n,0,n,0,"VK_DBE_SBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_DBE_DBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_ATTN",n,n],[0,1,0,n,0,n,0,"VK_CRSEL",n,n],[0,1,0,n,0,n,0,"VK_EXSEL",n,n],[0,1,0,n,0,n,0,"VK_EREOF",n,n],[0,1,0,n,0,n,0,"VK_PLAY",n,n],[0,1,0,n,0,n,0,"VK_ZOOM",n,n],[0,1,0,n,0,n,0,"VK_NONAME",n,n],[0,1,0,n,0,n,0,"VK_PA1",n,n],[0,1,0,n,0,n,0,"VK_OEM_CLEAR",n,n]];let t=[],i=[];for(const s of e){const[o,r,a,l,c,d,u,h,f,g]=s;if(i[a]||(i[a]=!0,ole[l]=a,rle[l.toLowerCase()]=a,r&&(PR[a]=c)),!t[c]){if(t[c]=!0,!d)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);Nw.define(c,d),v2.define(c,f||d),C2.define(c,g||f||d)}u&&(lH[u]=c)}})();var Ih;(function(n){function e(a){return Nw.keyCodeToStr(a)}n.toString=e;function t(a){return Nw.strToKeyCode(a)}n.fromString=t;function i(a){return v2.keyCodeToStr(a)}n.toUserSettingsUS=i;function s(a){return C2.keyCodeToStr(a)}n.toUserSettingsGeneral=s;function o(a){return v2.strToKeyCode(a)||C2.strToKeyCode(a)}n.fromUserSettings=o;function r(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Nw.keyCodeToStr(a)}n.toElectronAccelerator=r})(Ih||(Ih={}));function Fn(n,e){const t=(e&65535)<<16>>>0;return(n|t)>>>0}let Mm;if(typeof Zi.vscode<"u"&&typeof Zi.vscode.process<"u"){const n=Zi.vscode.process;Mm={get platform(){return n.platform},get arch(){return n.arch},get env(){return n.env},cwd(){return n.cwd()}}}else typeof process<"u"?Mm={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Mm={get platform(){return qn?"win32":wt?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const w2=Mm.cwd,ale=Mm.env,Jf=Mm.platform,lle=65,cle=97,dle=90,ule=122,jd=46,Ss=47,To=92,fd=58,hle=63;class cH extends Error{constructor(e,t,i){let s;typeof t=="string"&&t.indexOf("not ")===0?(s="must not be",t=t.replace(/^not /,"")):s="must be";const o=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${o} ${s} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function Tn(n,e){if(typeof n!="string")throw new cH(e,"string",n)}function qt(n){return n===Ss||n===To}function y2(n){return n===Ss}function gd(n){return n>=lle&&n<=dle||n>=cle&&n<=ule}function Ny(n,e,t,i){let s="",o=0,r=-1,a=0,l=0;for(let c=0;c<=n.length;++c){if(c2){const d=s.lastIndexOf(t);d===-1?(s="",o=0):(s=s.slice(0,d),o=s.length-1-s.lastIndexOf(t)),r=c,a=0;continue}else if(s.length!==0){s="",o=0,r=c,a=0;continue}}e&&(s+=s.length>0?`${t}..`:"..",o=2)}else s.length>0?s+=`${t}${n.slice(r+1,c)}`:s=n.slice(r+1,c),o=c-r-1;r=c,a=0}else l===jd&&a!==-1?++a:a=-1}return s}function dH(n,e){if(e===null||typeof e!="object")throw new cH("pathObject","Object",e);const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${n}${i}`:i}const bo={resolve(...n){let e="",t="",i=!1;for(let s=n.length-1;s>=-1;s--){let o;if(s>=0){if(o=n[s],Tn(o,"path"),o.length===0)continue}else e.length===0?o=w2():(o=ale[`=${e}`]||w2(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===To)&&(o=`${e}\\`));const r=o.length;let a=0,l="",c=!1;const d=o.charCodeAt(0);if(r===1)qt(d)&&(a=1,c=!0);else if(qt(d))if(c=!0,qt(o.charCodeAt(1))){let u=2,h=u;for(;u2&&qt(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=c,c&&e.length>0)break}return t=Ny(t,!i,"\\",qt),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(n){Tn(n,"path");const e=n.length;if(e===0)return".";let t=0,i,s=!1;const o=n.charCodeAt(0);if(e===1)return y2(o)?"\\":n;if(qt(o))if(s=!0,qt(n.charCodeAt(1))){let a=2,l=a;for(;a2&&qt(n.charCodeAt(2))&&(s=!0,t=3));let r=t0&&qt(n.charCodeAt(e-1))&&(r+="\\"),i===void 0?s?`\\${r}`:r:s?`${i}\\${r}`:`${i}${r}`},isAbsolute(n){Tn(n,"path");const e=n.length;if(e===0)return!1;const t=n.charCodeAt(0);return qt(t)||e>2&&gd(t)&&n.charCodeAt(1)===fd&&qt(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let e,t;for(let o=0;o0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,s=0;if(typeof t=="string"&&qt(t.charCodeAt(0))){++s;const o=t.length;o>1&&qt(t.charCodeAt(1))&&(++s,o>2&&(qt(t.charCodeAt(2))?++s:i=!1))}if(i){for(;s=2&&(e=`\\${e.slice(s)}`)}return bo.normalize(e)},relative(n,e){if(Tn(n,"from"),Tn(e,"to"),n===e)return"";const t=bo.resolve(n),i=bo.resolve(e);if(t===i||(n=t.toLowerCase(),e=i.toLowerCase(),n===e))return"";let s=0;for(;ss&&n.charCodeAt(o-1)===To;)o--;const r=o-s;let a=0;for(;aa&&e.charCodeAt(l-1)===To;)l--;const c=l-a,d=rd){if(e.charCodeAt(a+h)===To)return i.slice(a+h+1);if(h===2)return i.slice(a+h)}r>d&&(n.charCodeAt(s+h)===To?u=h:h===2&&(u=3)),u===-1&&(u=0)}let f="";for(h=s+u+1;h<=o;++h)(h===o||n.charCodeAt(h)===To)&&(f+=f.length===0?"..":"\\..");return a+=u,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===To&&++a,i.slice(a,l))},toNamespacedPath(n){if(typeof n!="string")return n;if(n.length===0)return"";const e=bo.resolve(n);if(e.length<=2)return n;if(e.charCodeAt(0)===To){if(e.charCodeAt(1)===To){const t=e.charCodeAt(2);if(t!==hle&&t!==jd)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(gd(e.charCodeAt(0))&&e.charCodeAt(1)===fd&&e.charCodeAt(2)===To)return`\\\\?\\${e}`;return n},dirname(n){Tn(n,"path");const e=n.length;if(e===0)return".";let t=-1,i=0;const s=n.charCodeAt(0);if(e===1)return qt(s)?n:".";if(qt(s)){if(t=i=1,qt(n.charCodeAt(1))){let a=2,l=a;for(;a2&&qt(n.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(qt(n.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return n.slice(0,o)},basename(n,e){e!==void 0&&Tn(e,"ext"),Tn(n,"path");let t=0,i=-1,s=!0,o;if(n.length>=2&&gd(n.charCodeAt(0))&&n.charCodeAt(1)===fd&&(t=2),e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let r=e.length-1,a=-1;for(o=n.length-1;o>=t;--o){const l=n.charCodeAt(o);if(qt(l)){if(!s){t=o+1;break}}else a===-1&&(s=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(o=n.length-1;o>=t;--o)if(qt(n.charCodeAt(o))){if(!s){t=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":n.slice(t,i)},extname(n){Tn(n,"path");let e=0,t=-1,i=0,s=-1,o=!0,r=0;n.length>=2&&n.charCodeAt(1)===fd&&gd(n.charCodeAt(0))&&(e=i=2);for(let a=n.length-1;a>=e;--a){const l=n.charCodeAt(a);if(qt(l)){if(!o){i=a+1;break}continue}s===-1&&(o=!1,s=a+1),l===jd?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===i+1?"":n.slice(t,s)},format:dH.bind(null,"\\"),parse(n){Tn(n,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;const t=n.length;let i=0,s=n.charCodeAt(0);if(t===1)return qt(s)?(e.root=e.dir=n,e):(e.base=e.name=n,e);if(qt(s)){if(i=1,qt(n.charCodeAt(1))){let u=2,h=u;for(;u0&&(e.root=n.slice(0,i));let o=-1,r=i,a=-1,l=!0,c=n.length-1,d=0;for(;c>=i;--c){if(s=n.charCodeAt(c),qt(s)){if(!l){r=c+1;break}continue}a===-1&&(l=!1,a=c+1),s===jd?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return a!==-1&&(o===-1||d===0||d===1&&o===a-1&&o===r+1?e.base=e.name=n.slice(r,a):(e.name=n.slice(r,o),e.base=n.slice(r,a),e.ext=n.slice(o,a))),r>0&&r!==i?e.dir=n.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},tn={resolve(...n){let e="",t=!1;for(let i=n.length-1;i>=-1&&!t;i--){const s=i>=0?n[i]:w2();Tn(s,"path"),s.length!==0&&(e=`${s}/${e}`,t=s.charCodeAt(0)===Ss)}return e=Ny(e,!t,"/",y2),t?`/${e}`:e.length>0?e:"."},normalize(n){if(Tn(n,"path"),n.length===0)return".";const e=n.charCodeAt(0)===Ss,t=n.charCodeAt(n.length-1)===Ss;return n=Ny(n,!e,"/",y2),n.length===0?e?"/":t?"./":".":(t&&(n+="/"),e?`/${n}`:n)},isAbsolute(n){return Tn(n,"path"),n.length>0&&n.charCodeAt(0)===Ss},join(...n){if(n.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":tn.normalize(e)},relative(n,e){if(Tn(n,"from"),Tn(e,"to"),n===e||(n=tn.resolve(n),e=tn.resolve(e),n===e))return"";const t=1,i=n.length,s=i-t,o=1,r=e.length-o,a=sa){if(e.charCodeAt(o+c)===Ss)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else s>a&&(n.charCodeAt(t+c)===Ss?l=c:c===0&&(l=0));let d="";for(c=t+l+1;c<=i;++c)(c===i||n.charCodeAt(c)===Ss)&&(d+=d.length===0?"..":"/..");return`${d}${e.slice(o+l)}`},toNamespacedPath(n){return n},dirname(n){if(Tn(n,"path"),n.length===0)return".";const e=n.charCodeAt(0)===Ss;let t=-1,i=!0;for(let s=n.length-1;s>=1;--s)if(n.charCodeAt(s)===Ss){if(!i){t=s;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename(n,e){e!==void 0&&Tn(e,"ext"),Tn(n,"path");let t=0,i=-1,s=!0,o;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let r=e.length-1,a=-1;for(o=n.length-1;o>=0;--o){const l=n.charCodeAt(o);if(l===Ss){if(!s){t=o+1;break}}else a===-1&&(s=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===Ss){if(!s){t=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":n.slice(t,i)},extname(n){Tn(n,"path");let e=-1,t=0,i=-1,s=!0,o=0;for(let r=n.length-1;r>=0;--r){const a=n.charCodeAt(r);if(a===Ss){if(!s){t=r+1;break}continue}i===-1&&(s=!1,i=r+1),a===jd?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":n.slice(e,i)},format:dH.bind(null,"/"),parse(n){Tn(n,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;const t=n.charCodeAt(0)===Ss;let i;t?(e.root="/",i=1):i=0;let s=-1,o=0,r=-1,a=!0,l=n.length-1,c=0;for(;l>=i;--l){const d=n.charCodeAt(l);if(d===Ss){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),d===jd?s===-1?s=l:c!==1&&(c=1):s!==-1&&(c=-1)}if(r!==-1){const d=o===0&&t?1:o;s===-1||c===0||c===1&&s===r-1&&s===o+1?e.base=e.name=n.slice(d,r):(e.name=n.slice(d,s),e.base=n.slice(d,r),e.ext=n.slice(s,r))}return o>0?e.dir=n.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};tn.win32=bo.win32=bo;tn.posix=bo.posix=tn;const OR=Jf==="win32"?bo.normalize:tn.normalize,fle=Jf==="win32"?bo.resolve:tn.resolve,gle=Jf==="win32"?bo.relative:tn.relative,uH=Jf==="win32"?bo.dirname:tn.dirname,zh=Jf==="win32"?bo.basename:tn.basename,mle=Jf==="win32"?bo.extname:tn.extname,yl=Jf==="win32"?bo.sep:tn.sep,ple=/^\w[\w\d+.-]*$/,_le=/^\//,ble=/^\/\//;function _3(n,e){if(!n.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${n.authority}", path: "${n.path}", query: "${n.query}", fragment: "${n.fragment}"}`);if(n.scheme&&!ple.test(n.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(n.path){if(n.authority){if(!_le.test(n.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(ble.test(n.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function vle(n,e){return!n&&!e?"file":n}function Cle(n,e){switch(n){case"https":case"http":case"file":e?e[0]!==ma&&(e=ma+e):e=ma;break}return e}const ji="",ma="/",wle=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class et{constructor(e,t,i,s,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||ji,this.authority=e.authority||ji,this.path=e.path||ji,this.query=e.query||ji,this.fragment=e.fragment||ji):(this.scheme=vle(e,r),this.authority=t||ji,this.path=Cle(this.scheme,i||ji),this.query=s||ji,this.fragment=o||ji,_3(this,r))}static isUri(e){return e instanceof et?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}get fsPath(){return Ty(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=ji),i===void 0?i=this.authority:i===null&&(i=ji),s===void 0?s=this.path:s===null&&(s=ji),o===void 0?o=this.query:o===null&&(o=ji),r===void 0?r=this.fragment:r===null&&(r=ji),t===this.scheme&&i===this.authority&&s===this.path&&o===this.query&&r===this.fragment?this:new Ng(t,i,s,o,r)}static parse(e,t=!1){const i=wle.exec(e);return i?new Ng(i[2]||ji,Y0(i[4]||ji),Y0(i[5]||ji),Y0(i[7]||ji),Y0(i[9]||ji),t):new Ng(ji,ji,ji,ji,ji)}static file(e){let t=ji;if(qn&&(e=e.replace(/\\/g,ma)),e[0]===ma&&e[1]===ma){const i=e.indexOf(ma,2);i===-1?(t=e.substring(2),e=ma):(t=e.substring(2,i),e=e.substring(i)||ma)}return new Ng("file",t,e,ji,ji)}static from(e){const t=new Ng(e.scheme,e.authority,e.path,e.query,e.fragment);return _3(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return qn&&e.scheme==="file"?i=et.file(bo.join(Ty(e,!0),...t)).path:i=tn.join(e.path,...t),e.with({path:i})}toString(e=!1){return S2(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof et)return e;{const t=new Ng(e);return t._formatted=e.external,t._fsPath=e._sep===hH?e.fsPath:null,t}}else return e}}const hH=qn?1:void 0;let Ng=class extends et{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ty(this,!1)),this._fsPath}toString(e=!1){return e?S2(this,!0):(this._formatted||(this._formatted=S2(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=hH),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const fH={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function b3(n,e){let t,i=-1;for(let s=0;s=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)i!==-1&&(t+=encodeURIComponent(n.substring(i,s)),i=-1),t!==void 0&&(t+=n.charAt(s));else{t===void 0&&(t=n.substr(0,s));const r=fH[o];r!==void 0?(i!==-1&&(t+=encodeURIComponent(n.substring(i,s)),i=-1),t+=r):i===-1&&(i=s)}}return i!==-1&&(t+=encodeURIComponent(n.substring(i))),t!==void 0?t:n}function yle(n){let e;for(let t=0;t1&&n.scheme==="file"?t=`//${n.authority}${n.path}`:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?t=n.path.substr(1):t=n.path[1].toLowerCase()+n.path.substr(2):t=n.path,qn&&(t=t.replace(/\//g,"\\")),t}function S2(n,e){const t=e?yle:b3;let i="",{scheme:s,authority:o,path:r,query:a,fragment:l}=n;if(s&&(i+=s,i+=":"),(o||s==="file")&&(i+=ma,i+=ma),o){let c=o.indexOf("@");if(c!==-1){const d=o.substr(0,c);o=o.substr(c+1),c=d.indexOf(":"),c===-1?i+=t(d,!1):(i+=t(d.substr(0,c),!1),i+=":",i+=t(d.substr(c+1),!1)),i+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?i+=t(o,!1):(i+=t(o.substr(0,c),!1),i+=o.substr(c))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const c=r.charCodeAt(1);c>=65&&c<=90&&(r=`/${String.fromCharCode(c+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const c=r.charCodeAt(0);c>=65&&c<=90&&(r=`${String.fromCharCode(c+32)}:${r.substr(2)}`)}i+=t(r,!0)}return a&&(i+="?",i+=t(a,!1)),l&&(i+="#",i+=e?l:b3(l,!1)),i}function gH(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+gH(n.substr(3)):n}}const v3=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Y0(n){return n.match(v3)?n.replace(v3,e=>gH(e)):n}let Z=class lh{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new lh(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return lh.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return lh.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return ys.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ys.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return ys.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return ys.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return ys.plusRange(this,e)}static plusRange(e,t){let i,s,o,r;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new ys(i,s,o,r)}intersectRanges(e){return ys.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,d=t.endColumn;return ic?(o=c,r=d):o===c&&(r=Math.min(r,d)),i>o||i===o&&s>r?null:new ys(i,s,o,r)}equalsRange(e){return ys.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return ys.getEndPosition(this)}static getEndPosition(e){return new Z(e.endLineNumber,e.endColumn)}getStartPosition(){return ys.getStartPosition(this)}static getStartPosition(e){return new Z(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new ys(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new ys(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return ys.collapseToStart(this)}static collapseToStart(e){return new ys(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new ys(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new ys(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},Fe=class Fr extends T{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Fr.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new Fr(this.startLineNumber,this.startColumn,e,t):new Fr(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Z(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Z(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new Fr(e,t,this.endLineNumber,this.endColumn):new Fr(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Fr(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new Fr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Fr(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Fr(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerFactory(e,t){var i;(i=this._factories.get(e))===null||i===void 0||i.dispose();const s=new Lle(this,e,t);return this._factories.set(e,s),vt(()=>{const o=this._factories.get(e);!o||o!==s||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return L2(this,void 0,void 0,function*(){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class Lle extends J{constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return L2(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return L2(this,void 0,void 0,function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}function kle(n){return n?n.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}class p{constructor(e,t,i){this.id=e,this.definition=t,this.description=i,p._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return p._allCodicons}}p._allCodicons=[];p.add=new p("add",{fontCharacter:"\\ea60"});p.plus=new p("plus",p.add.definition);p.gistNew=new p("gist-new",p.add.definition);p.repoCreate=new p("repo-create",p.add.definition);p.lightbulb=new p("lightbulb",{fontCharacter:"\\ea61"});p.lightBulb=new p("light-bulb",{fontCharacter:"\\ea61"});p.repo=new p("repo",{fontCharacter:"\\ea62"});p.repoDelete=new p("repo-delete",{fontCharacter:"\\ea62"});p.gistFork=new p("gist-fork",{fontCharacter:"\\ea63"});p.repoForked=new p("repo-forked",{fontCharacter:"\\ea63"});p.gitPullRequest=new p("git-pull-request",{fontCharacter:"\\ea64"});p.gitPullRequestAbandoned=new p("git-pull-request-abandoned",{fontCharacter:"\\ea64"});p.recordKeys=new p("record-keys",{fontCharacter:"\\ea65"});p.keyboard=new p("keyboard",{fontCharacter:"\\ea65"});p.tag=new p("tag",{fontCharacter:"\\ea66"});p.tagAdd=new p("tag-add",{fontCharacter:"\\ea66"});p.tagRemove=new p("tag-remove",{fontCharacter:"\\ea66"});p.person=new p("person",{fontCharacter:"\\ea67"});p.personFollow=new p("person-follow",{fontCharacter:"\\ea67"});p.personOutline=new p("person-outline",{fontCharacter:"\\ea67"});p.personFilled=new p("person-filled",{fontCharacter:"\\ea67"});p.gitBranch=new p("git-branch",{fontCharacter:"\\ea68"});p.gitBranchCreate=new p("git-branch-create",{fontCharacter:"\\ea68"});p.gitBranchDelete=new p("git-branch-delete",{fontCharacter:"\\ea68"});p.sourceControl=new p("source-control",{fontCharacter:"\\ea68"});p.mirror=new p("mirror",{fontCharacter:"\\ea69"});p.mirrorPublic=new p("mirror-public",{fontCharacter:"\\ea69"});p.star=new p("star",{fontCharacter:"\\ea6a"});p.starAdd=new p("star-add",{fontCharacter:"\\ea6a"});p.starDelete=new p("star-delete",{fontCharacter:"\\ea6a"});p.starEmpty=new p("star-empty",{fontCharacter:"\\ea6a"});p.comment=new p("comment",{fontCharacter:"\\ea6b"});p.commentAdd=new p("comment-add",{fontCharacter:"\\ea6b"});p.alert=new p("alert",{fontCharacter:"\\ea6c"});p.warning=new p("warning",{fontCharacter:"\\ea6c"});p.search=new p("search",{fontCharacter:"\\ea6d"});p.searchSave=new p("search-save",{fontCharacter:"\\ea6d"});p.logOut=new p("log-out",{fontCharacter:"\\ea6e"});p.signOut=new p("sign-out",{fontCharacter:"\\ea6e"});p.logIn=new p("log-in",{fontCharacter:"\\ea6f"});p.signIn=new p("sign-in",{fontCharacter:"\\ea6f"});p.eye=new p("eye",{fontCharacter:"\\ea70"});p.eyeUnwatch=new p("eye-unwatch",{fontCharacter:"\\ea70"});p.eyeWatch=new p("eye-watch",{fontCharacter:"\\ea70"});p.circleFilled=new p("circle-filled",{fontCharacter:"\\ea71"});p.primitiveDot=new p("primitive-dot",{fontCharacter:"\\ea71"});p.closeDirty=new p("close-dirty",{fontCharacter:"\\ea71"});p.debugBreakpoint=new p("debug-breakpoint",{fontCharacter:"\\ea71"});p.debugBreakpointDisabled=new p("debug-breakpoint-disabled",{fontCharacter:"\\ea71"});p.debugHint=new p("debug-hint",{fontCharacter:"\\ea71"});p.primitiveSquare=new p("primitive-square",{fontCharacter:"\\ea72"});p.edit=new p("edit",{fontCharacter:"\\ea73"});p.pencil=new p("pencil",{fontCharacter:"\\ea73"});p.info=new p("info",{fontCharacter:"\\ea74"});p.issueOpened=new p("issue-opened",{fontCharacter:"\\ea74"});p.gistPrivate=new p("gist-private",{fontCharacter:"\\ea75"});p.gitForkPrivate=new p("git-fork-private",{fontCharacter:"\\ea75"});p.lock=new p("lock",{fontCharacter:"\\ea75"});p.mirrorPrivate=new p("mirror-private",{fontCharacter:"\\ea75"});p.close=new p("close",{fontCharacter:"\\ea76"});p.removeClose=new p("remove-close",{fontCharacter:"\\ea76"});p.x=new p("x",{fontCharacter:"\\ea76"});p.repoSync=new p("repo-sync",{fontCharacter:"\\ea77"});p.sync=new p("sync",{fontCharacter:"\\ea77"});p.clone=new p("clone",{fontCharacter:"\\ea78"});p.desktopDownload=new p("desktop-download",{fontCharacter:"\\ea78"});p.beaker=new p("beaker",{fontCharacter:"\\ea79"});p.microscope=new p("microscope",{fontCharacter:"\\ea79"});p.vm=new p("vm",{fontCharacter:"\\ea7a"});p.deviceDesktop=new p("device-desktop",{fontCharacter:"\\ea7a"});p.file=new p("file",{fontCharacter:"\\ea7b"});p.fileText=new p("file-text",{fontCharacter:"\\ea7b"});p.more=new p("more",{fontCharacter:"\\ea7c"});p.ellipsis=new p("ellipsis",{fontCharacter:"\\ea7c"});p.kebabHorizontal=new p("kebab-horizontal",{fontCharacter:"\\ea7c"});p.mailReply=new p("mail-reply",{fontCharacter:"\\ea7d"});p.reply=new p("reply",{fontCharacter:"\\ea7d"});p.organization=new p("organization",{fontCharacter:"\\ea7e"});p.organizationFilled=new p("organization-filled",{fontCharacter:"\\ea7e"});p.organizationOutline=new p("organization-outline",{fontCharacter:"\\ea7e"});p.newFile=new p("new-file",{fontCharacter:"\\ea7f"});p.fileAdd=new p("file-add",{fontCharacter:"\\ea7f"});p.newFolder=new p("new-folder",{fontCharacter:"\\ea80"});p.fileDirectoryCreate=new p("file-directory-create",{fontCharacter:"\\ea80"});p.trash=new p("trash",{fontCharacter:"\\ea81"});p.trashcan=new p("trashcan",{fontCharacter:"\\ea81"});p.history=new p("history",{fontCharacter:"\\ea82"});p.clock=new p("clock",{fontCharacter:"\\ea82"});p.folder=new p("folder",{fontCharacter:"\\ea83"});p.fileDirectory=new p("file-directory",{fontCharacter:"\\ea83"});p.symbolFolder=new p("symbol-folder",{fontCharacter:"\\ea83"});p.logoGithub=new p("logo-github",{fontCharacter:"\\ea84"});p.markGithub=new p("mark-github",{fontCharacter:"\\ea84"});p.github=new p("github",{fontCharacter:"\\ea84"});p.terminal=new p("terminal",{fontCharacter:"\\ea85"});p.console=new p("console",{fontCharacter:"\\ea85"});p.repl=new p("repl",{fontCharacter:"\\ea85"});p.zap=new p("zap",{fontCharacter:"\\ea86"});p.symbolEvent=new p("symbol-event",{fontCharacter:"\\ea86"});p.error=new p("error",{fontCharacter:"\\ea87"});p.stop=new p("stop",{fontCharacter:"\\ea87"});p.variable=new p("variable",{fontCharacter:"\\ea88"});p.symbolVariable=new p("symbol-variable",{fontCharacter:"\\ea88"});p.array=new p("array",{fontCharacter:"\\ea8a"});p.symbolArray=new p("symbol-array",{fontCharacter:"\\ea8a"});p.symbolModule=new p("symbol-module",{fontCharacter:"\\ea8b"});p.symbolPackage=new p("symbol-package",{fontCharacter:"\\ea8b"});p.symbolNamespace=new p("symbol-namespace",{fontCharacter:"\\ea8b"});p.symbolObject=new p("symbol-object",{fontCharacter:"\\ea8b"});p.symbolMethod=new p("symbol-method",{fontCharacter:"\\ea8c"});p.symbolFunction=new p("symbol-function",{fontCharacter:"\\ea8c"});p.symbolConstructor=new p("symbol-constructor",{fontCharacter:"\\ea8c"});p.symbolBoolean=new p("symbol-boolean",{fontCharacter:"\\ea8f"});p.symbolNull=new p("symbol-null",{fontCharacter:"\\ea8f"});p.symbolNumeric=new p("symbol-numeric",{fontCharacter:"\\ea90"});p.symbolNumber=new p("symbol-number",{fontCharacter:"\\ea90"});p.symbolStructure=new p("symbol-structure",{fontCharacter:"\\ea91"});p.symbolStruct=new p("symbol-struct",{fontCharacter:"\\ea91"});p.symbolParameter=new p("symbol-parameter",{fontCharacter:"\\ea92"});p.symbolTypeParameter=new p("symbol-type-parameter",{fontCharacter:"\\ea92"});p.symbolKey=new p("symbol-key",{fontCharacter:"\\ea93"});p.symbolText=new p("symbol-text",{fontCharacter:"\\ea93"});p.symbolReference=new p("symbol-reference",{fontCharacter:"\\ea94"});p.goToFile=new p("go-to-file",{fontCharacter:"\\ea94"});p.symbolEnum=new p("symbol-enum",{fontCharacter:"\\ea95"});p.symbolValue=new p("symbol-value",{fontCharacter:"\\ea95"});p.symbolRuler=new p("symbol-ruler",{fontCharacter:"\\ea96"});p.symbolUnit=new p("symbol-unit",{fontCharacter:"\\ea96"});p.activateBreakpoints=new p("activate-breakpoints",{fontCharacter:"\\ea97"});p.archive=new p("archive",{fontCharacter:"\\ea98"});p.arrowBoth=new p("arrow-both",{fontCharacter:"\\ea99"});p.arrowDown=new p("arrow-down",{fontCharacter:"\\ea9a"});p.arrowLeft=new p("arrow-left",{fontCharacter:"\\ea9b"});p.arrowRight=new p("arrow-right",{fontCharacter:"\\ea9c"});p.arrowSmallDown=new p("arrow-small-down",{fontCharacter:"\\ea9d"});p.arrowSmallLeft=new p("arrow-small-left",{fontCharacter:"\\ea9e"});p.arrowSmallRight=new p("arrow-small-right",{fontCharacter:"\\ea9f"});p.arrowSmallUp=new p("arrow-small-up",{fontCharacter:"\\eaa0"});p.arrowUp=new p("arrow-up",{fontCharacter:"\\eaa1"});p.bell=new p("bell",{fontCharacter:"\\eaa2"});p.bold=new p("bold",{fontCharacter:"\\eaa3"});p.book=new p("book",{fontCharacter:"\\eaa4"});p.bookmark=new p("bookmark",{fontCharacter:"\\eaa5"});p.debugBreakpointConditionalUnverified=new p("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"});p.debugBreakpointConditional=new p("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"});p.debugBreakpointConditionalDisabled=new p("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"});p.debugBreakpointDataUnverified=new p("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"});p.debugBreakpointData=new p("debug-breakpoint-data",{fontCharacter:"\\eaa9"});p.debugBreakpointDataDisabled=new p("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"});p.debugBreakpointLogUnverified=new p("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"});p.debugBreakpointLog=new p("debug-breakpoint-log",{fontCharacter:"\\eaab"});p.debugBreakpointLogDisabled=new p("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"});p.briefcase=new p("briefcase",{fontCharacter:"\\eaac"});p.broadcast=new p("broadcast",{fontCharacter:"\\eaad"});p.browser=new p("browser",{fontCharacter:"\\eaae"});p.bug=new p("bug",{fontCharacter:"\\eaaf"});p.calendar=new p("calendar",{fontCharacter:"\\eab0"});p.caseSensitive=new p("case-sensitive",{fontCharacter:"\\eab1"});p.check=new p("check",{fontCharacter:"\\eab2"});p.checklist=new p("checklist",{fontCharacter:"\\eab3"});p.chevronDown=new p("chevron-down",{fontCharacter:"\\eab4"});p.dropDownButton=new p("drop-down-button",p.chevronDown.definition);p.chevronLeft=new p("chevron-left",{fontCharacter:"\\eab5"});p.chevronRight=new p("chevron-right",{fontCharacter:"\\eab6"});p.chevronUp=new p("chevron-up",{fontCharacter:"\\eab7"});p.chromeClose=new p("chrome-close",{fontCharacter:"\\eab8"});p.chromeMaximize=new p("chrome-maximize",{fontCharacter:"\\eab9"});p.chromeMinimize=new p("chrome-minimize",{fontCharacter:"\\eaba"});p.chromeRestore=new p("chrome-restore",{fontCharacter:"\\eabb"});p.circleOutline=new p("circle-outline",{fontCharacter:"\\eabc"});p.debugBreakpointUnverified=new p("debug-breakpoint-unverified",{fontCharacter:"\\eabc"});p.circleSlash=new p("circle-slash",{fontCharacter:"\\eabd"});p.circuitBoard=new p("circuit-board",{fontCharacter:"\\eabe"});p.clearAll=new p("clear-all",{fontCharacter:"\\eabf"});p.clippy=new p("clippy",{fontCharacter:"\\eac0"});p.closeAll=new p("close-all",{fontCharacter:"\\eac1"});p.cloudDownload=new p("cloud-download",{fontCharacter:"\\eac2"});p.cloudUpload=new p("cloud-upload",{fontCharacter:"\\eac3"});p.code=new p("code",{fontCharacter:"\\eac4"});p.collapseAll=new p("collapse-all",{fontCharacter:"\\eac5"});p.colorMode=new p("color-mode",{fontCharacter:"\\eac6"});p.commentDiscussion=new p("comment-discussion",{fontCharacter:"\\eac7"});p.compareChanges=new p("compare-changes",{fontCharacter:"\\eafd"});p.creditCard=new p("credit-card",{fontCharacter:"\\eac9"});p.dash=new p("dash",{fontCharacter:"\\eacc"});p.dashboard=new p("dashboard",{fontCharacter:"\\eacd"});p.database=new p("database",{fontCharacter:"\\eace"});p.debugContinue=new p("debug-continue",{fontCharacter:"\\eacf"});p.debugDisconnect=new p("debug-disconnect",{fontCharacter:"\\ead0"});p.debugPause=new p("debug-pause",{fontCharacter:"\\ead1"});p.debugRestart=new p("debug-restart",{fontCharacter:"\\ead2"});p.debugStart=new p("debug-start",{fontCharacter:"\\ead3"});p.debugStepInto=new p("debug-step-into",{fontCharacter:"\\ead4"});p.debugStepOut=new p("debug-step-out",{fontCharacter:"\\ead5"});p.debugStepOver=new p("debug-step-over",{fontCharacter:"\\ead6"});p.debugStop=new p("debug-stop",{fontCharacter:"\\ead7"});p.debug=new p("debug",{fontCharacter:"\\ead8"});p.deviceCameraVideo=new p("device-camera-video",{fontCharacter:"\\ead9"});p.deviceCamera=new p("device-camera",{fontCharacter:"\\eada"});p.deviceMobile=new p("device-mobile",{fontCharacter:"\\eadb"});p.diffAdded=new p("diff-added",{fontCharacter:"\\eadc"});p.diffIgnored=new p("diff-ignored",{fontCharacter:"\\eadd"});p.diffModified=new p("diff-modified",{fontCharacter:"\\eade"});p.diffRemoved=new p("diff-removed",{fontCharacter:"\\eadf"});p.diffRenamed=new p("diff-renamed",{fontCharacter:"\\eae0"});p.diff=new p("diff",{fontCharacter:"\\eae1"});p.discard=new p("discard",{fontCharacter:"\\eae2"});p.editorLayout=new p("editor-layout",{fontCharacter:"\\eae3"});p.emptyWindow=new p("empty-window",{fontCharacter:"\\eae4"});p.exclude=new p("exclude",{fontCharacter:"\\eae5"});p.extensions=new p("extensions",{fontCharacter:"\\eae6"});p.eyeClosed=new p("eye-closed",{fontCharacter:"\\eae7"});p.fileBinary=new p("file-binary",{fontCharacter:"\\eae8"});p.fileCode=new p("file-code",{fontCharacter:"\\eae9"});p.fileMedia=new p("file-media",{fontCharacter:"\\eaea"});p.filePdf=new p("file-pdf",{fontCharacter:"\\eaeb"});p.fileSubmodule=new p("file-submodule",{fontCharacter:"\\eaec"});p.fileSymlinkDirectory=new p("file-symlink-directory",{fontCharacter:"\\eaed"});p.fileSymlinkFile=new p("file-symlink-file",{fontCharacter:"\\eaee"});p.fileZip=new p("file-zip",{fontCharacter:"\\eaef"});p.files=new p("files",{fontCharacter:"\\eaf0"});p.filter=new p("filter",{fontCharacter:"\\eaf1"});p.flame=new p("flame",{fontCharacter:"\\eaf2"});p.foldDown=new p("fold-down",{fontCharacter:"\\eaf3"});p.foldUp=new p("fold-up",{fontCharacter:"\\eaf4"});p.fold=new p("fold",{fontCharacter:"\\eaf5"});p.folderActive=new p("folder-active",{fontCharacter:"\\eaf6"});p.folderOpened=new p("folder-opened",{fontCharacter:"\\eaf7"});p.gear=new p("gear",{fontCharacter:"\\eaf8"});p.gift=new p("gift",{fontCharacter:"\\eaf9"});p.gistSecret=new p("gist-secret",{fontCharacter:"\\eafa"});p.gist=new p("gist",{fontCharacter:"\\eafb"});p.gitCommit=new p("git-commit",{fontCharacter:"\\eafc"});p.gitCompare=new p("git-compare",{fontCharacter:"\\eafd"});p.gitMerge=new p("git-merge",{fontCharacter:"\\eafe"});p.githubAction=new p("github-action",{fontCharacter:"\\eaff"});p.githubAlt=new p("github-alt",{fontCharacter:"\\eb00"});p.globe=new p("globe",{fontCharacter:"\\eb01"});p.grabber=new p("grabber",{fontCharacter:"\\eb02"});p.graph=new p("graph",{fontCharacter:"\\eb03"});p.gripper=new p("gripper",{fontCharacter:"\\eb04"});p.heart=new p("heart",{fontCharacter:"\\eb05"});p.home=new p("home",{fontCharacter:"\\eb06"});p.horizontalRule=new p("horizontal-rule",{fontCharacter:"\\eb07"});p.hubot=new p("hubot",{fontCharacter:"\\eb08"});p.inbox=new p("inbox",{fontCharacter:"\\eb09"});p.issueClosed=new p("issue-closed",{fontCharacter:"\\eba4"});p.issueReopened=new p("issue-reopened",{fontCharacter:"\\eb0b"});p.issues=new p("issues",{fontCharacter:"\\eb0c"});p.italic=new p("italic",{fontCharacter:"\\eb0d"});p.jersey=new p("jersey",{fontCharacter:"\\eb0e"});p.json=new p("json",{fontCharacter:"\\eb0f"});p.kebabVertical=new p("kebab-vertical",{fontCharacter:"\\eb10"});p.key=new p("key",{fontCharacter:"\\eb11"});p.law=new p("law",{fontCharacter:"\\eb12"});p.lightbulbAutofix=new p("lightbulb-autofix",{fontCharacter:"\\eb13"});p.linkExternal=new p("link-external",{fontCharacter:"\\eb14"});p.link=new p("link",{fontCharacter:"\\eb15"});p.listOrdered=new p("list-ordered",{fontCharacter:"\\eb16"});p.listUnordered=new p("list-unordered",{fontCharacter:"\\eb17"});p.liveShare=new p("live-share",{fontCharacter:"\\eb18"});p.loading=new p("loading",{fontCharacter:"\\eb19"});p.location=new p("location",{fontCharacter:"\\eb1a"});p.mailRead=new p("mail-read",{fontCharacter:"\\eb1b"});p.mail=new p("mail",{fontCharacter:"\\eb1c"});p.markdown=new p("markdown",{fontCharacter:"\\eb1d"});p.megaphone=new p("megaphone",{fontCharacter:"\\eb1e"});p.mention=new p("mention",{fontCharacter:"\\eb1f"});p.milestone=new p("milestone",{fontCharacter:"\\eb20"});p.mortarBoard=new p("mortar-board",{fontCharacter:"\\eb21"});p.move=new p("move",{fontCharacter:"\\eb22"});p.multipleWindows=new p("multiple-windows",{fontCharacter:"\\eb23"});p.mute=new p("mute",{fontCharacter:"\\eb24"});p.noNewline=new p("no-newline",{fontCharacter:"\\eb25"});p.note=new p("note",{fontCharacter:"\\eb26"});p.octoface=new p("octoface",{fontCharacter:"\\eb27"});p.openPreview=new p("open-preview",{fontCharacter:"\\eb28"});p.package_=new p("package",{fontCharacter:"\\eb29"});p.paintcan=new p("paintcan",{fontCharacter:"\\eb2a"});p.pin=new p("pin",{fontCharacter:"\\eb2b"});p.play=new p("play",{fontCharacter:"\\eb2c"});p.run=new p("run",{fontCharacter:"\\eb2c"});p.plug=new p("plug",{fontCharacter:"\\eb2d"});p.preserveCase=new p("preserve-case",{fontCharacter:"\\eb2e"});p.preview=new p("preview",{fontCharacter:"\\eb2f"});p.project=new p("project",{fontCharacter:"\\eb30"});p.pulse=new p("pulse",{fontCharacter:"\\eb31"});p.question=new p("question",{fontCharacter:"\\eb32"});p.quote=new p("quote",{fontCharacter:"\\eb33"});p.radioTower=new p("radio-tower",{fontCharacter:"\\eb34"});p.reactions=new p("reactions",{fontCharacter:"\\eb35"});p.references=new p("references",{fontCharacter:"\\eb36"});p.refresh=new p("refresh",{fontCharacter:"\\eb37"});p.regex=new p("regex",{fontCharacter:"\\eb38"});p.remoteExplorer=new p("remote-explorer",{fontCharacter:"\\eb39"});p.remote=new p("remote",{fontCharacter:"\\eb3a"});p.remove=new p("remove",{fontCharacter:"\\eb3b"});p.replaceAll=new p("replace-all",{fontCharacter:"\\eb3c"});p.replace=new p("replace",{fontCharacter:"\\eb3d"});p.repoClone=new p("repo-clone",{fontCharacter:"\\eb3e"});p.repoForcePush=new p("repo-force-push",{fontCharacter:"\\eb3f"});p.repoPull=new p("repo-pull",{fontCharacter:"\\eb40"});p.repoPush=new p("repo-push",{fontCharacter:"\\eb41"});p.report=new p("report",{fontCharacter:"\\eb42"});p.requestChanges=new p("request-changes",{fontCharacter:"\\eb43"});p.rocket=new p("rocket",{fontCharacter:"\\eb44"});p.rootFolderOpened=new p("root-folder-opened",{fontCharacter:"\\eb45"});p.rootFolder=new p("root-folder",{fontCharacter:"\\eb46"});p.rss=new p("rss",{fontCharacter:"\\eb47"});p.ruby=new p("ruby",{fontCharacter:"\\eb48"});p.saveAll=new p("save-all",{fontCharacter:"\\eb49"});p.saveAs=new p("save-as",{fontCharacter:"\\eb4a"});p.save=new p("save",{fontCharacter:"\\eb4b"});p.screenFull=new p("screen-full",{fontCharacter:"\\eb4c"});p.screenNormal=new p("screen-normal",{fontCharacter:"\\eb4d"});p.searchStop=new p("search-stop",{fontCharacter:"\\eb4e"});p.server=new p("server",{fontCharacter:"\\eb50"});p.settingsGear=new p("settings-gear",{fontCharacter:"\\eb51"});p.settings=new p("settings",{fontCharacter:"\\eb52"});p.shield=new p("shield",{fontCharacter:"\\eb53"});p.smiley=new p("smiley",{fontCharacter:"\\eb54"});p.sortPrecedence=new p("sort-precedence",{fontCharacter:"\\eb55"});p.splitHorizontal=new p("split-horizontal",{fontCharacter:"\\eb56"});p.splitVertical=new p("split-vertical",{fontCharacter:"\\eb57"});p.squirrel=new p("squirrel",{fontCharacter:"\\eb58"});p.starFull=new p("star-full",{fontCharacter:"\\eb59"});p.starHalf=new p("star-half",{fontCharacter:"\\eb5a"});p.symbolClass=new p("symbol-class",{fontCharacter:"\\eb5b"});p.symbolColor=new p("symbol-color",{fontCharacter:"\\eb5c"});p.symbolCustomColor=new p("symbol-customcolor",{fontCharacter:"\\eb5c"});p.symbolConstant=new p("symbol-constant",{fontCharacter:"\\eb5d"});p.symbolEnumMember=new p("symbol-enum-member",{fontCharacter:"\\eb5e"});p.symbolField=new p("symbol-field",{fontCharacter:"\\eb5f"});p.symbolFile=new p("symbol-file",{fontCharacter:"\\eb60"});p.symbolInterface=new p("symbol-interface",{fontCharacter:"\\eb61"});p.symbolKeyword=new p("symbol-keyword",{fontCharacter:"\\eb62"});p.symbolMisc=new p("symbol-misc",{fontCharacter:"\\eb63"});p.symbolOperator=new p("symbol-operator",{fontCharacter:"\\eb64"});p.symbolProperty=new p("symbol-property",{fontCharacter:"\\eb65"});p.wrench=new p("wrench",{fontCharacter:"\\eb65"});p.wrenchSubaction=new p("wrench-subaction",{fontCharacter:"\\eb65"});p.symbolSnippet=new p("symbol-snippet",{fontCharacter:"\\eb66"});p.tasklist=new p("tasklist",{fontCharacter:"\\eb67"});p.telescope=new p("telescope",{fontCharacter:"\\eb68"});p.textSize=new p("text-size",{fontCharacter:"\\eb69"});p.threeBars=new p("three-bars",{fontCharacter:"\\eb6a"});p.thumbsdown=new p("thumbsdown",{fontCharacter:"\\eb6b"});p.thumbsup=new p("thumbsup",{fontCharacter:"\\eb6c"});p.tools=new p("tools",{fontCharacter:"\\eb6d"});p.triangleDown=new p("triangle-down",{fontCharacter:"\\eb6e"});p.triangleLeft=new p("triangle-left",{fontCharacter:"\\eb6f"});p.triangleRight=new p("triangle-right",{fontCharacter:"\\eb70"});p.triangleUp=new p("triangle-up",{fontCharacter:"\\eb71"});p.twitter=new p("twitter",{fontCharacter:"\\eb72"});p.unfold=new p("unfold",{fontCharacter:"\\eb73"});p.unlock=new p("unlock",{fontCharacter:"\\eb74"});p.unmute=new p("unmute",{fontCharacter:"\\eb75"});p.unverified=new p("unverified",{fontCharacter:"\\eb76"});p.verified=new p("verified",{fontCharacter:"\\eb77"});p.versions=new p("versions",{fontCharacter:"\\eb78"});p.vmActive=new p("vm-active",{fontCharacter:"\\eb79"});p.vmOutline=new p("vm-outline",{fontCharacter:"\\eb7a"});p.vmRunning=new p("vm-running",{fontCharacter:"\\eb7b"});p.watch=new p("watch",{fontCharacter:"\\eb7c"});p.whitespace=new p("whitespace",{fontCharacter:"\\eb7d"});p.wholeWord=new p("whole-word",{fontCharacter:"\\eb7e"});p.window=new p("window",{fontCharacter:"\\eb7f"});p.wordWrap=new p("word-wrap",{fontCharacter:"\\eb80"});p.zoomIn=new p("zoom-in",{fontCharacter:"\\eb81"});p.zoomOut=new p("zoom-out",{fontCharacter:"\\eb82"});p.listFilter=new p("list-filter",{fontCharacter:"\\eb83"});p.listFlat=new p("list-flat",{fontCharacter:"\\eb84"});p.listSelection=new p("list-selection",{fontCharacter:"\\eb85"});p.selection=new p("selection",{fontCharacter:"\\eb85"});p.listTree=new p("list-tree",{fontCharacter:"\\eb86"});p.debugBreakpointFunctionUnverified=new p("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"});p.debugBreakpointFunction=new p("debug-breakpoint-function",{fontCharacter:"\\eb88"});p.debugBreakpointFunctionDisabled=new p("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"});p.debugStackframeActive=new p("debug-stackframe-active",{fontCharacter:"\\eb89"});p.debugStackframeDot=new p("debug-stackframe-dot",{fontCharacter:"\\eb8a"});p.debugStackframe=new p("debug-stackframe",{fontCharacter:"\\eb8b"});p.debugStackframeFocused=new p("debug-stackframe-focused",{fontCharacter:"\\eb8b"});p.debugBreakpointUnsupported=new p("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"});p.symbolString=new p("symbol-string",{fontCharacter:"\\eb8d"});p.debugReverseContinue=new p("debug-reverse-continue",{fontCharacter:"\\eb8e"});p.debugStepBack=new p("debug-step-back",{fontCharacter:"\\eb8f"});p.debugRestartFrame=new p("debug-restart-frame",{fontCharacter:"\\eb90"});p.callIncoming=new p("call-incoming",{fontCharacter:"\\eb92"});p.callOutgoing=new p("call-outgoing",{fontCharacter:"\\eb93"});p.menu=new p("menu",{fontCharacter:"\\eb94"});p.expandAll=new p("expand-all",{fontCharacter:"\\eb95"});p.feedback=new p("feedback",{fontCharacter:"\\eb96"});p.groupByRefType=new p("group-by-ref-type",{fontCharacter:"\\eb97"});p.ungroupByRefType=new p("ungroup-by-ref-type",{fontCharacter:"\\eb98"});p.account=new p("account",{fontCharacter:"\\eb99"});p.bellDot=new p("bell-dot",{fontCharacter:"\\eb9a"});p.debugConsole=new p("debug-console",{fontCharacter:"\\eb9b"});p.library=new p("library",{fontCharacter:"\\eb9c"});p.output=new p("output",{fontCharacter:"\\eb9d"});p.runAll=new p("run-all",{fontCharacter:"\\eb9e"});p.syncIgnored=new p("sync-ignored",{fontCharacter:"\\eb9f"});p.pinned=new p("pinned",{fontCharacter:"\\eba0"});p.githubInverted=new p("github-inverted",{fontCharacter:"\\eba1"});p.debugAlt=new p("debug-alt",{fontCharacter:"\\eb91"});p.serverProcess=new p("server-process",{fontCharacter:"\\eba2"});p.serverEnvironment=new p("server-environment",{fontCharacter:"\\eba3"});p.pass=new p("pass",{fontCharacter:"\\eba4"});p.stopCircle=new p("stop-circle",{fontCharacter:"\\eba5"});p.playCircle=new p("play-circle",{fontCharacter:"\\eba6"});p.record=new p("record",{fontCharacter:"\\eba7"});p.debugAltSmall=new p("debug-alt-small",{fontCharacter:"\\eba8"});p.vmConnect=new p("vm-connect",{fontCharacter:"\\eba9"});p.cloud=new p("cloud",{fontCharacter:"\\ebaa"});p.merge=new p("merge",{fontCharacter:"\\ebab"});p.exportIcon=new p("export",{fontCharacter:"\\ebac"});p.graphLeft=new p("graph-left",{fontCharacter:"\\ebad"});p.magnet=new p("magnet",{fontCharacter:"\\ebae"});p.notebook=new p("notebook",{fontCharacter:"\\ebaf"});p.redo=new p("redo",{fontCharacter:"\\ebb0"});p.checkAll=new p("check-all",{fontCharacter:"\\ebb1"});p.pinnedDirty=new p("pinned-dirty",{fontCharacter:"\\ebb2"});p.passFilled=new p("pass-filled",{fontCharacter:"\\ebb3"});p.circleLargeFilled=new p("circle-large-filled",{fontCharacter:"\\ebb4"});p.circleLargeOutline=new p("circle-large-outline",{fontCharacter:"\\ebb5"});p.combine=new p("combine",{fontCharacter:"\\ebb6"});p.gather=new p("gather",{fontCharacter:"\\ebb6"});p.table=new p("table",{fontCharacter:"\\ebb7"});p.variableGroup=new p("variable-group",{fontCharacter:"\\ebb8"});p.typeHierarchy=new p("type-hierarchy",{fontCharacter:"\\ebb9"});p.typeHierarchySub=new p("type-hierarchy-sub",{fontCharacter:"\\ebba"});p.typeHierarchySuper=new p("type-hierarchy-super",{fontCharacter:"\\ebbb"});p.gitPullRequestCreate=new p("git-pull-request-create",{fontCharacter:"\\ebbc"});p.runAbove=new p("run-above",{fontCharacter:"\\ebbd"});p.runBelow=new p("run-below",{fontCharacter:"\\ebbe"});p.notebookTemplate=new p("notebook-template",{fontCharacter:"\\ebbf"});p.debugRerun=new p("debug-rerun",{fontCharacter:"\\ebc0"});p.workspaceTrusted=new p("workspace-trusted",{fontCharacter:"\\ebc1"});p.workspaceUntrusted=new p("workspace-untrusted",{fontCharacter:"\\ebc2"});p.workspaceUnspecified=new p("workspace-unspecified",{fontCharacter:"\\ebc3"});p.terminalCmd=new p("terminal-cmd",{fontCharacter:"\\ebc4"});p.terminalDebian=new p("terminal-debian",{fontCharacter:"\\ebc5"});p.terminalLinux=new p("terminal-linux",{fontCharacter:"\\ebc6"});p.terminalPowershell=new p("terminal-powershell",{fontCharacter:"\\ebc7"});p.terminalTmux=new p("terminal-tmux",{fontCharacter:"\\ebc8"});p.terminalUbuntu=new p("terminal-ubuntu",{fontCharacter:"\\ebc9"});p.terminalBash=new p("terminal-bash",{fontCharacter:"\\ebca"});p.arrowSwap=new p("arrow-swap",{fontCharacter:"\\ebcb"});p.copy=new p("copy",{fontCharacter:"\\ebcc"});p.personAdd=new p("person-add",{fontCharacter:"\\ebcd"});p.filterFilled=new p("filter-filled",{fontCharacter:"\\ebce"});p.wand=new p("wand",{fontCharacter:"\\ebcf"});p.debugLineByLine=new p("debug-line-by-line",{fontCharacter:"\\ebd0"});p.inspect=new p("inspect",{fontCharacter:"\\ebd1"});p.layers=new p("layers",{fontCharacter:"\\ebd2"});p.layersDot=new p("layers-dot",{fontCharacter:"\\ebd3"});p.layersActive=new p("layers-active",{fontCharacter:"\\ebd4"});p.compass=new p("compass",{fontCharacter:"\\ebd5"});p.compassDot=new p("compass-dot",{fontCharacter:"\\ebd6"});p.compassActive=new p("compass-active",{fontCharacter:"\\ebd7"});p.azure=new p("azure",{fontCharacter:"\\ebd8"});p.issueDraft=new p("issue-draft",{fontCharacter:"\\ebd9"});p.gitPullRequestClosed=new p("git-pull-request-closed",{fontCharacter:"\\ebda"});p.gitPullRequestDraft=new p("git-pull-request-draft",{fontCharacter:"\\ebdb"});p.debugAll=new p("debug-all",{fontCharacter:"\\ebdc"});p.debugCoverage=new p("debug-coverage",{fontCharacter:"\\ebdd"});p.runErrors=new p("run-errors",{fontCharacter:"\\ebde"});p.folderLibrary=new p("folder-library",{fontCharacter:"\\ebdf"});p.debugContinueSmall=new p("debug-continue-small",{fontCharacter:"\\ebe0"});p.beakerStop=new p("beaker-stop",{fontCharacter:"\\ebe1"});p.graphLine=new p("graph-line",{fontCharacter:"\\ebe2"});p.graphScatter=new p("graph-scatter",{fontCharacter:"\\ebe3"});p.pieChart=new p("pie-chart",{fontCharacter:"\\ebe4"});p.bracket=new p("bracket",p.json.definition);p.bracketDot=new p("bracket-dot",{fontCharacter:"\\ebe5"});p.bracketError=new p("bracket-error",{fontCharacter:"\\ebe6"});p.lockSmall=new p("lock-small",{fontCharacter:"\\ebe7"});p.azureDevops=new p("azure-devops",{fontCharacter:"\\ebe8"});p.verifiedFilled=new p("verified-filled",{fontCharacter:"\\ebe9"});p.newLine=new p("newline",{fontCharacter:"\\ebea"});p.layout=new p("layout",{fontCharacter:"\\ebeb"});p.layoutActivitybarLeft=new p("layout-activitybar-left",{fontCharacter:"\\ebec"});p.layoutActivitybarRight=new p("layout-activitybar-right",{fontCharacter:"\\ebed"});p.layoutPanelLeft=new p("layout-panel-left",{fontCharacter:"\\ebee"});p.layoutPanelCenter=new p("layout-panel-center",{fontCharacter:"\\ebef"});p.layoutPanelJustify=new p("layout-panel-justify",{fontCharacter:"\\ebf0"});p.layoutPanelRight=new p("layout-panel-right",{fontCharacter:"\\ebf1"});p.layoutPanel=new p("layout-panel",{fontCharacter:"\\ebf2"});p.layoutSidebarLeft=new p("layout-sidebar-left",{fontCharacter:"\\ebf3"});p.layoutSidebarRight=new p("layout-sidebar-right",{fontCharacter:"\\ebf4"});p.layoutStatusbar=new p("layout-statusbar",{fontCharacter:"\\ebf5"});p.layoutMenubar=new p("layout-menubar",{fontCharacter:"\\ebf6"});p.layoutCentered=new p("layout-centered",{fontCharacter:"\\ebf7"});p.target=new p("target",{fontCharacter:"\\ebf8"});p.indent=new p("indent",{fontCharacter:"\\ebf9"});p.recordSmall=new p("record-small",{fontCharacter:"\\ebfa"});p.errorSmall=new p("error-small",{fontCharacter:"\\ebfb"});p.arrowCircleDown=new p("arrow-circle-down",{fontCharacter:"\\ebfc"});p.arrowCircleLeft=new p("arrow-circle-left",{fontCharacter:"\\ebfd"});p.arrowCircleRight=new p("arrow-circle-right",{fontCharacter:"\\ebfe"});p.arrowCircleUp=new p("arrow-circle-up",{fontCharacter:"\\ebff"});p.dialogError=new p("dialog-error",p.error.definition);p.dialogWarning=new p("dialog-warning",p.warning.definition);p.dialogInfo=new p("dialog-info",p.info.definition);p.dialogClose=new p("dialog-close",p.close.definition);p.treeItemExpanded=new p("tree-item-expanded",p.chevronDown.definition);p.treeFilterOnTypeOn=new p("tree-filter-on-type-on",p.listFilter.definition);p.treeFilterOnTypeOff=new p("tree-filter-on-type-off",p.listSelection.definition);p.treeFilterClear=new p("tree-filter-clear",p.close.definition);p.treeItemLoading=new p("tree-item-loading",p.loading.definition);p.menuSelection=new p("menu-selection",p.check.definition);p.menuSubmenu=new p("menu-submenu",p.chevronRight.definition);p.menuBarMore=new p("menubar-more",p.more.definition);p.scrollbarButtonLeft=new p("scrollbar-button-left",p.triangleLeft.definition);p.scrollbarButtonRight=new p("scrollbar-button-right",p.triangleRight.definition);p.scrollbarButtonUp=new p("scrollbar-button-up",p.triangleUp.definition);p.scrollbarButtonDown=new p("scrollbar-button-down",p.triangleDown.definition);p.toolBarMore=new p("toolbar-more",p.more.definition);p.quickInputBack=new p("quick-input-back",p.arrowLeft.definition);var Os;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9-]+",n.iconModifierExpression="~[A-Za-z]+",n.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function t(o){if(o instanceof p)return["codicon","codicon-"+o.id];const r=e.exec(o.id);if(!r)return t(p.error);let[,a,l]=r;const c=["codicon","codicon-"+a];return l&&c.push("codicon-modifier-"+l.substr(1)),c}n.asClassNameArray=t;function i(o){return t(o).join(" ")}n.asClassName=i;function s(o){return"."+t(o).join(".")}n.asCSSSelector=s})(Os||(Os={}));class ms{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static getFontStyle(e){return(e&15360)>>>10}static getForeground(e){return(e&8372224)>>>14}static getBackground(e){return(e&4286578688)>>>23}static getClassNameFromMetadata(e){let i="mtk"+this.getForeground(e);const s=this.getFontStyle(e);return s&1&&(i+=" mtki"),s&2&&(i+=" mtkb"),s&4&&(i+=" mtku"),s&8&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),s=this.getFontStyle(e);let o=`color: ${t[i]};`;s&1&&(o+="font-style: italic;"),s&2&&(o+="font-weight: bold;");let r="";return s&4&&(r+=" underline"),s&8&&(r+=" line-through"),r&&(o+=`text-decoration:${r};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(i&1),bold:!!(i&2),underline:!!(i&4),strikethrough:!!(i&8)}}}let wv=class{constructor(e,t,i){this._tokenBrand=void 0,this.offset=e,this.type=t,this.language=i}toString(){return"("+this.offset+", "+this.type+")"}};class FR{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class FL{constructor(e,t){this._encodedTokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}var yv;(function(n){const e=new Map;e.set(0,p.symbolMethod),e.set(1,p.symbolFunction),e.set(2,p.symbolConstructor),e.set(3,p.symbolField),e.set(4,p.symbolVariable),e.set(5,p.symbolClass),e.set(6,p.symbolStruct),e.set(7,p.symbolInterface),e.set(8,p.symbolModule),e.set(9,p.symbolProperty),e.set(10,p.symbolEvent),e.set(11,p.symbolOperator),e.set(12,p.symbolUnit),e.set(13,p.symbolValue),e.set(15,p.symbolEnum),e.set(14,p.symbolConstant),e.set(15,p.symbolEnum),e.set(16,p.symbolEnumMember),e.set(17,p.symbolKeyword),e.set(27,p.symbolSnippet),e.set(18,p.symbolText),e.set(19,p.symbolColor),e.set(20,p.symbolFile),e.set(21,p.symbolReference),e.set(22,p.symbolCustomColor),e.set(23,p.symbolFolder),e.set(24,p.symbolTypeParameter),e.set(25,p.account),e.set(26,p.issues);function t(o){let r=e.get(o);return r||(console.info("No codicon found for CompletionItemKind "+o),r=p.symbolProperty),r}n.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function s(o,r){let a=i.get(o);return typeof a>"u"&&!r&&(a=9),a}n.fromString=s})(yv||(yv={}));var rr;(function(n){n[n.Automatic=0]="Automatic",n[n.Explicit=1]="Explicit"})(rr||(rr={}));var Sl;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(Sl||(Sl={}));var Sv;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(Sv||(Sv={}));function xle(n){return n&&et.isUri(n.uri)&&T.isIRange(n.range)&&(T.isIRange(n.originSelectionRange)||T.isIRange(n.targetSelectionRange))}var k2;(function(n){const e=new Map;e.set(0,p.symbolFile),e.set(1,p.symbolModule),e.set(2,p.symbolNamespace),e.set(3,p.symbolPackage),e.set(4,p.symbolClass),e.set(5,p.symbolMethod),e.set(6,p.symbolProperty),e.set(7,p.symbolField),e.set(8,p.symbolConstructor),e.set(9,p.symbolEnum),e.set(10,p.symbolInterface),e.set(11,p.symbolFunction),e.set(12,p.symbolVariable),e.set(13,p.symbolConstant),e.set(14,p.symbolString),e.set(15,p.symbolNumber),e.set(16,p.symbolBoolean),e.set(17,p.symbolArray),e.set(18,p.symbolObject),e.set(19,p.symbolKey),e.set(20,p.symbolNull),e.set(21,p.symbolEnumMember),e.set(22,p.symbolStruct),e.set(23,p.symbolEvent),e.set(24,p.symbolOperator),e.set(25,p.symbolTypeParameter);function t(i){let s=e.get(i);return s||(console.info("No codicon found for SymbolKind "+i),s=p.symbolProperty),s}n.toIcon=t})(k2||(k2={}));class Aa{constructor(e){this.value=e}}Aa.Comment=new Aa("comment");Aa.Imports=new Aa("imports");Aa.Region=new Aa("region");var x2;(function(n){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}n.is=e})(x2||(x2={}));var Ay;(function(n){n[n.Type=1]="Type",n[n.Parameter=2]="Parameter"})(Ay||(Ay={}));const Ri=new Sle;var E2;(function(n){n[n.Unknown=0]="Unknown",n[n.Disabled=1]="Disabled",n[n.Enabled=2]="Enabled"})(E2||(E2={}));var D2;(function(n){n[n.KeepWhitespace=1]="KeepWhitespace",n[n.InsertAsSnippet=4]="InsertAsSnippet"})(D2||(D2={}));var I2;(function(n){n[n.Method=0]="Method",n[n.Function=1]="Function",n[n.Constructor=2]="Constructor",n[n.Field=3]="Field",n[n.Variable=4]="Variable",n[n.Class=5]="Class",n[n.Struct=6]="Struct",n[n.Interface=7]="Interface",n[n.Module=8]="Module",n[n.Property=9]="Property",n[n.Event=10]="Event",n[n.Operator=11]="Operator",n[n.Unit=12]="Unit",n[n.Value=13]="Value",n[n.Constant=14]="Constant",n[n.Enum=15]="Enum",n[n.EnumMember=16]="EnumMember",n[n.Keyword=17]="Keyword",n[n.Text=18]="Text",n[n.Color=19]="Color",n[n.File=20]="File",n[n.Reference=21]="Reference",n[n.Customcolor=22]="Customcolor",n[n.Folder=23]="Folder",n[n.TypeParameter=24]="TypeParameter",n[n.User=25]="User",n[n.Issue=26]="Issue",n[n.Snippet=27]="Snippet"})(I2||(I2={}));var N2;(function(n){n[n.Deprecated=1]="Deprecated"})(N2||(N2={}));var T2;(function(n){n[n.Invoke=0]="Invoke",n[n.TriggerCharacter=1]="TriggerCharacter",n[n.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(T2||(T2={}));var A2;(function(n){n[n.EXACT=0]="EXACT",n[n.ABOVE=1]="ABOVE",n[n.BELOW=2]="BELOW"})(A2||(A2={}));var M2;(function(n){n[n.NotSet=0]="NotSet",n[n.ContentFlush=1]="ContentFlush",n[n.RecoverFromMarkers=2]="RecoverFromMarkers",n[n.Explicit=3]="Explicit",n[n.Paste=4]="Paste",n[n.Undo=5]="Undo",n[n.Redo=6]="Redo"})(M2||(M2={}));var R2;(function(n){n[n.LF=1]="LF",n[n.CRLF=2]="CRLF"})(R2||(R2={}));var P2;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(P2||(P2={}));var O2;(function(n){n[n.None=0]="None",n[n.Keep=1]="Keep",n[n.Brackets=2]="Brackets",n[n.Advanced=3]="Advanced",n[n.Full=4]="Full"})(O2||(O2={}));var F2;(function(n){n[n.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",n[n.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",n[n.accessibilitySupport=2]="accessibilitySupport",n[n.accessibilityPageSize=3]="accessibilityPageSize",n[n.ariaLabel=4]="ariaLabel",n[n.autoClosingBrackets=5]="autoClosingBrackets",n[n.autoClosingDelete=6]="autoClosingDelete",n[n.autoClosingOvertype=7]="autoClosingOvertype",n[n.autoClosingQuotes=8]="autoClosingQuotes",n[n.autoIndent=9]="autoIndent",n[n.automaticLayout=10]="automaticLayout",n[n.autoSurround=11]="autoSurround",n[n.bracketPairColorization=12]="bracketPairColorization",n[n.guides=13]="guides",n[n.codeLens=14]="codeLens",n[n.codeLensFontFamily=15]="codeLensFontFamily",n[n.codeLensFontSize=16]="codeLensFontSize",n[n.colorDecorators=17]="colorDecorators",n[n.columnSelection=18]="columnSelection",n[n.comments=19]="comments",n[n.contextmenu=20]="contextmenu",n[n.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",n[n.cursorBlinking=22]="cursorBlinking",n[n.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",n[n.cursorStyle=24]="cursorStyle",n[n.cursorSurroundingLines=25]="cursorSurroundingLines",n[n.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",n[n.cursorWidth=27]="cursorWidth",n[n.disableLayerHinting=28]="disableLayerHinting",n[n.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",n[n.domReadOnly=30]="domReadOnly",n[n.dragAndDrop=31]="dragAndDrop",n[n.emptySelectionClipboard=32]="emptySelectionClipboard",n[n.extraEditorClassName=33]="extraEditorClassName",n[n.fastScrollSensitivity=34]="fastScrollSensitivity",n[n.find=35]="find",n[n.fixedOverflowWidgets=36]="fixedOverflowWidgets",n[n.folding=37]="folding",n[n.foldingStrategy=38]="foldingStrategy",n[n.foldingHighlight=39]="foldingHighlight",n[n.foldingImportsByDefault=40]="foldingImportsByDefault",n[n.foldingMaximumRegions=41]="foldingMaximumRegions",n[n.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",n[n.fontFamily=43]="fontFamily",n[n.fontInfo=44]="fontInfo",n[n.fontLigatures=45]="fontLigatures",n[n.fontSize=46]="fontSize",n[n.fontWeight=47]="fontWeight",n[n.formatOnPaste=48]="formatOnPaste",n[n.formatOnType=49]="formatOnType",n[n.glyphMargin=50]="glyphMargin",n[n.gotoLocation=51]="gotoLocation",n[n.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",n[n.hover=53]="hover",n[n.inDiffEditor=54]="inDiffEditor",n[n.inlineSuggest=55]="inlineSuggest",n[n.letterSpacing=56]="letterSpacing",n[n.lightbulb=57]="lightbulb",n[n.lineDecorationsWidth=58]="lineDecorationsWidth",n[n.lineHeight=59]="lineHeight",n[n.lineNumbers=60]="lineNumbers",n[n.lineNumbersMinChars=61]="lineNumbersMinChars",n[n.linkedEditing=62]="linkedEditing",n[n.links=63]="links",n[n.matchBrackets=64]="matchBrackets",n[n.minimap=65]="minimap",n[n.mouseStyle=66]="mouseStyle",n[n.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",n[n.mouseWheelZoom=68]="mouseWheelZoom",n[n.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",n[n.multiCursorModifier=70]="multiCursorModifier",n[n.multiCursorPaste=71]="multiCursorPaste",n[n.occurrencesHighlight=72]="occurrencesHighlight",n[n.overviewRulerBorder=73]="overviewRulerBorder",n[n.overviewRulerLanes=74]="overviewRulerLanes",n[n.padding=75]="padding",n[n.parameterHints=76]="parameterHints",n[n.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",n[n.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",n[n.quickSuggestions=79]="quickSuggestions",n[n.quickSuggestionsDelay=80]="quickSuggestionsDelay",n[n.readOnly=81]="readOnly",n[n.renameOnType=82]="renameOnType",n[n.renderControlCharacters=83]="renderControlCharacters",n[n.renderFinalNewline=84]="renderFinalNewline",n[n.renderLineHighlight=85]="renderLineHighlight",n[n.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",n[n.renderValidationDecorations=87]="renderValidationDecorations",n[n.renderWhitespace=88]="renderWhitespace",n[n.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",n[n.roundedSelection=90]="roundedSelection",n[n.rulers=91]="rulers",n[n.scrollbar=92]="scrollbar",n[n.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",n[n.scrollBeyondLastLine=94]="scrollBeyondLastLine",n[n.scrollPredominantAxis=95]="scrollPredominantAxis",n[n.selectionClipboard=96]="selectionClipboard",n[n.selectionHighlight=97]="selectionHighlight",n[n.selectOnLineNumbers=98]="selectOnLineNumbers",n[n.showFoldingControls=99]="showFoldingControls",n[n.showUnused=100]="showUnused",n[n.snippetSuggestions=101]="snippetSuggestions",n[n.smartSelect=102]="smartSelect",n[n.smoothScrolling=103]="smoothScrolling",n[n.stickyTabStops=104]="stickyTabStops",n[n.stopRenderingLineAfter=105]="stopRenderingLineAfter",n[n.suggest=106]="suggest",n[n.suggestFontSize=107]="suggestFontSize",n[n.suggestLineHeight=108]="suggestLineHeight",n[n.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",n[n.suggestSelection=110]="suggestSelection",n[n.tabCompletion=111]="tabCompletion",n[n.tabIndex=112]="tabIndex",n[n.unicodeHighlighting=113]="unicodeHighlighting",n[n.unusualLineTerminators=114]="unusualLineTerminators",n[n.useShadowDOM=115]="useShadowDOM",n[n.useTabStops=116]="useTabStops",n[n.wordSeparators=117]="wordSeparators",n[n.wordWrap=118]="wordWrap",n[n.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",n[n.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",n[n.wordWrapColumn=121]="wordWrapColumn",n[n.wordWrapOverride1=122]="wordWrapOverride1",n[n.wordWrapOverride2=123]="wordWrapOverride2",n[n.wrappingIndent=124]="wrappingIndent",n[n.wrappingStrategy=125]="wrappingStrategy",n[n.showDeprecated=126]="showDeprecated",n[n.inlayHints=127]="inlayHints",n[n.editorClassName=128]="editorClassName",n[n.pixelRatio=129]="pixelRatio",n[n.tabFocusMode=130]="tabFocusMode",n[n.layoutInfo=131]="layoutInfo",n[n.wrappingInfo=132]="wrappingInfo"})(F2||(F2={}));var B2;(function(n){n[n.TextDefined=0]="TextDefined",n[n.LF=1]="LF",n[n.CRLF=2]="CRLF"})(B2||(B2={}));var V2;(function(n){n[n.LF=0]="LF",n[n.CRLF=1]="CRLF"})(V2||(V2={}));var W2;(function(n){n[n.None=0]="None",n[n.Indent=1]="Indent",n[n.IndentOutdent=2]="IndentOutdent",n[n.Outdent=3]="Outdent"})(W2||(W2={}));var H2;(function(n){n[n.Both=0]="Both",n[n.Right=1]="Right",n[n.Left=2]="Left",n[n.None=3]="None"})(H2||(H2={}));var z2;(function(n){n[n.Type=1]="Type",n[n.Parameter=2]="Parameter"})(z2||(z2={}));var $2;(function(n){n[n.Automatic=0]="Automatic",n[n.Explicit=1]="Explicit"})($2||($2={}));var U2;(function(n){n[n.DependsOnKbLayout=-1]="DependsOnKbLayout",n[n.Unknown=0]="Unknown",n[n.Backspace=1]="Backspace",n[n.Tab=2]="Tab",n[n.Enter=3]="Enter",n[n.Shift=4]="Shift",n[n.Ctrl=5]="Ctrl",n[n.Alt=6]="Alt",n[n.PauseBreak=7]="PauseBreak",n[n.CapsLock=8]="CapsLock",n[n.Escape=9]="Escape",n[n.Space=10]="Space",n[n.PageUp=11]="PageUp",n[n.PageDown=12]="PageDown",n[n.End=13]="End",n[n.Home=14]="Home",n[n.LeftArrow=15]="LeftArrow",n[n.UpArrow=16]="UpArrow",n[n.RightArrow=17]="RightArrow",n[n.DownArrow=18]="DownArrow",n[n.Insert=19]="Insert",n[n.Delete=20]="Delete",n[n.Digit0=21]="Digit0",n[n.Digit1=22]="Digit1",n[n.Digit2=23]="Digit2",n[n.Digit3=24]="Digit3",n[n.Digit4=25]="Digit4",n[n.Digit5=26]="Digit5",n[n.Digit6=27]="Digit6",n[n.Digit7=28]="Digit7",n[n.Digit8=29]="Digit8",n[n.Digit9=30]="Digit9",n[n.KeyA=31]="KeyA",n[n.KeyB=32]="KeyB",n[n.KeyC=33]="KeyC",n[n.KeyD=34]="KeyD",n[n.KeyE=35]="KeyE",n[n.KeyF=36]="KeyF",n[n.KeyG=37]="KeyG",n[n.KeyH=38]="KeyH",n[n.KeyI=39]="KeyI",n[n.KeyJ=40]="KeyJ",n[n.KeyK=41]="KeyK",n[n.KeyL=42]="KeyL",n[n.KeyM=43]="KeyM",n[n.KeyN=44]="KeyN",n[n.KeyO=45]="KeyO",n[n.KeyP=46]="KeyP",n[n.KeyQ=47]="KeyQ",n[n.KeyR=48]="KeyR",n[n.KeyS=49]="KeyS",n[n.KeyT=50]="KeyT",n[n.KeyU=51]="KeyU",n[n.KeyV=52]="KeyV",n[n.KeyW=53]="KeyW",n[n.KeyX=54]="KeyX",n[n.KeyY=55]="KeyY",n[n.KeyZ=56]="KeyZ",n[n.Meta=57]="Meta",n[n.ContextMenu=58]="ContextMenu",n[n.F1=59]="F1",n[n.F2=60]="F2",n[n.F3=61]="F3",n[n.F4=62]="F4",n[n.F5=63]="F5",n[n.F6=64]="F6",n[n.F7=65]="F7",n[n.F8=66]="F8",n[n.F9=67]="F9",n[n.F10=68]="F10",n[n.F11=69]="F11",n[n.F12=70]="F12",n[n.F13=71]="F13",n[n.F14=72]="F14",n[n.F15=73]="F15",n[n.F16=74]="F16",n[n.F17=75]="F17",n[n.F18=76]="F18",n[n.F19=77]="F19",n[n.NumLock=78]="NumLock",n[n.ScrollLock=79]="ScrollLock",n[n.Semicolon=80]="Semicolon",n[n.Equal=81]="Equal",n[n.Comma=82]="Comma",n[n.Minus=83]="Minus",n[n.Period=84]="Period",n[n.Slash=85]="Slash",n[n.Backquote=86]="Backquote",n[n.BracketLeft=87]="BracketLeft",n[n.Backslash=88]="Backslash",n[n.BracketRight=89]="BracketRight",n[n.Quote=90]="Quote",n[n.OEM_8=91]="OEM_8",n[n.IntlBackslash=92]="IntlBackslash",n[n.Numpad0=93]="Numpad0",n[n.Numpad1=94]="Numpad1",n[n.Numpad2=95]="Numpad2",n[n.Numpad3=96]="Numpad3",n[n.Numpad4=97]="Numpad4",n[n.Numpad5=98]="Numpad5",n[n.Numpad6=99]="Numpad6",n[n.Numpad7=100]="Numpad7",n[n.Numpad8=101]="Numpad8",n[n.Numpad9=102]="Numpad9",n[n.NumpadMultiply=103]="NumpadMultiply",n[n.NumpadAdd=104]="NumpadAdd",n[n.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",n[n.NumpadSubtract=106]="NumpadSubtract",n[n.NumpadDecimal=107]="NumpadDecimal",n[n.NumpadDivide=108]="NumpadDivide",n[n.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",n[n.ABNT_C1=110]="ABNT_C1",n[n.ABNT_C2=111]="ABNT_C2",n[n.AudioVolumeMute=112]="AudioVolumeMute",n[n.AudioVolumeUp=113]="AudioVolumeUp",n[n.AudioVolumeDown=114]="AudioVolumeDown",n[n.BrowserSearch=115]="BrowserSearch",n[n.BrowserHome=116]="BrowserHome",n[n.BrowserBack=117]="BrowserBack",n[n.BrowserForward=118]="BrowserForward",n[n.MediaTrackNext=119]="MediaTrackNext",n[n.MediaTrackPrevious=120]="MediaTrackPrevious",n[n.MediaStop=121]="MediaStop",n[n.MediaPlayPause=122]="MediaPlayPause",n[n.LaunchMediaPlayer=123]="LaunchMediaPlayer",n[n.LaunchMail=124]="LaunchMail",n[n.LaunchApp2=125]="LaunchApp2",n[n.Clear=126]="Clear",n[n.MAX_VALUE=127]="MAX_VALUE"})(U2||(U2={}));var j2;(function(n){n[n.Hint=1]="Hint",n[n.Info=2]="Info",n[n.Warning=4]="Warning",n[n.Error=8]="Error"})(j2||(j2={}));var q2;(function(n){n[n.Unnecessary=1]="Unnecessary",n[n.Deprecated=2]="Deprecated"})(q2||(q2={}));var K2;(function(n){n[n.Inline=1]="Inline",n[n.Gutter=2]="Gutter"})(K2||(K2={}));var G2;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(G2||(G2={}));var Y2;(function(n){n[n.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",n[n.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",n[n.TOP_CENTER=2]="TOP_CENTER"})(Y2||(Y2={}));var Z2;(function(n){n[n.Left=1]="Left",n[n.Center=2]="Center",n[n.Right=4]="Right",n[n.Full=7]="Full"})(Z2||(Z2={}));var X2;(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right",n[n.None=2]="None"})(X2||(X2={}));var Q2;(function(n){n[n.Off=0]="Off",n[n.On=1]="On",n[n.Relative=2]="Relative",n[n.Interval=3]="Interval",n[n.Custom=4]="Custom"})(Q2||(Q2={}));var J2;(function(n){n[n.None=0]="None",n[n.Text=1]="Text",n[n.Blocks=2]="Blocks"})(J2||(J2={}));var eN;(function(n){n[n.Smooth=0]="Smooth",n[n.Immediate=1]="Immediate"})(eN||(eN={}));var tN;(function(n){n[n.Auto=1]="Auto",n[n.Hidden=2]="Hidden",n[n.Visible=3]="Visible"})(tN||(tN={}));var iN;(function(n){n[n.LTR=0]="LTR",n[n.RTL=1]="RTL"})(iN||(iN={}));var nN;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(nN||(nN={}));var sN;(function(n){n[n.File=0]="File",n[n.Module=1]="Module",n[n.Namespace=2]="Namespace",n[n.Package=3]="Package",n[n.Class=4]="Class",n[n.Method=5]="Method",n[n.Property=6]="Property",n[n.Field=7]="Field",n[n.Constructor=8]="Constructor",n[n.Enum=9]="Enum",n[n.Interface=10]="Interface",n[n.Function=11]="Function",n[n.Variable=12]="Variable",n[n.Constant=13]="Constant",n[n.String=14]="String",n[n.Number=15]="Number",n[n.Boolean=16]="Boolean",n[n.Array=17]="Array",n[n.Object=18]="Object",n[n.Key=19]="Key",n[n.Null=20]="Null",n[n.EnumMember=21]="EnumMember",n[n.Struct=22]="Struct",n[n.Event=23]="Event",n[n.Operator=24]="Operator",n[n.TypeParameter=25]="TypeParameter"})(sN||(sN={}));var oN;(function(n){n[n.Deprecated=1]="Deprecated"})(oN||(oN={}));var rN;(function(n){n[n.Hidden=0]="Hidden",n[n.Blink=1]="Blink",n[n.Smooth=2]="Smooth",n[n.Phase=3]="Phase",n[n.Expand=4]="Expand",n[n.Solid=5]="Solid"})(rN||(rN={}));var aN;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(aN||(aN={}));var lN;(function(n){n[n.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",n[n.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",n[n.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",n[n.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(lN||(lN={}));var cN;(function(n){n[n.None=0]="None",n[n.Same=1]="Same",n[n.Indent=2]="Indent",n[n.DeepIndent=3]="DeepIndent"})(cN||(cN={}));let q1=class{static chord(e,t){return Fn(e,t)}};q1.CtrlCmd=2048;q1.Shift=1024;q1.Alt=512;q1.WinCtrl=256;function mH(){return{editor:void 0,languages:void 0,CancellationTokenSource:is,Emitter:j,KeyCode:U2,KeyMod:q1,Position:Z,Range:T,Selection:Fe,SelectionDirection:iN,MarkerSeverity:j2,MarkerTag:q2,Uri:et,Token:wv}}class Ele{constructor(e){this.computeFn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.computeFn(e)),this.lastCache}}class lp{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var pH;function _H(n){return!n||typeof n!="string"?!0:n.trim().length===0}const Dle=/{(\d+)}/g;function cr(n,...e){return e.length===0?n:n.replace(Dle,function(t,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=e.length?t:e[s]})}function BR(n){return n.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function _r(n){return n.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ile(n,e=" "){const t=VR(n,e);return bH(t,e)}function VR(n,e){if(!n||!e)return n;const t=e.length;if(t===0||n.length===0)return n;let i=0;for(;n.indexOf(e,i)===i;)i=i+t;return n.substring(i)}function bH(n,e){if(!n||!e)return n;const t=e.length,i=n.length;if(t===0||i===0)return n;let s=i,o=-1;for(;o=n.lastIndexOf(e,s-1),!(o===-1||o+t!==s);){if(o===0)return"";s=o}return n.substring(0,s)}function Nle(n){return n.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Tle(n){return n.replace(/\*/g,"")}function vH(n,e,t={}){if(!n)throw new Error("Cannot create regex from empty string");e||(n=_r(n)),t.wholeWord&&(/\B/.test(n.charAt(0))||(n="\\b"+n),/\B/.test(n.charAt(n.length-1))||(n=n+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(n,i)}function Ale(n){return n.source==="^"||n.source==="^$"||n.source==="$"||n.source==="^\\s*$"?!1:!!(n.exec("")&&n.lastIndex===0)}function _E(n){return(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")}function Al(n){return n.split(/\r\n|\r|\n/)}function Vs(n){for(let e=0,t=n.length;e=0;t--){const i=n.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Lv(n,e){return ne?1:0}function WR(n,e,t=0,i=n.length,s=0,o=e.length){for(;tc)return 1}const r=i-t,a=o-s;return ra?1:0}function dN(n,e){return K1(n,e,0,n.length,0,e.length)}function K1(n,e,t=0,i=n.length,s=0,o=e.length){for(;t=128||c>=128)return WR(n.toLowerCase(),e.toLowerCase(),t,i,s,o);Od(l)&&(l-=32),Od(c)&&(c-=32);const d=l-c;if(d!==0)return d}const r=i-t,a=o-s;return ra?1:0}function Od(n){return n>=97&&n<=122}function sl(n){return n>=65&&n<=90}function lm(n,e){return n.length===e.length&&K1(n,e)===0}function HR(n,e){const t=e.length;return e.length>n.length?!1:K1(n,e,0,t)===0}function cp(n,e){let t,i=Math.min(n.length,e.length);for(t=0;t1){const i=n.charCodeAt(e-2);if(wn(i))return zR(i,t)}return t}class $R{constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}get offset(){return this._offset}setOffset(e){this._offset=e}prevCodePoint(){const e=Mle(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=Ry(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class Py{constructor(e,t=0){this._iterator=new $R(e,t)}get offset(){return this._iterator.offset}nextGraphemeLength(){const e=Fd.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(C3(s,r)){t.setOffset(o);break}s=r}return t.offset-i}prevGraphemeLength(){const e=Fd.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(C3(r,s)){t.setOffset(o);break}s=r}return i-t.offset}eol(){return this._iterator.eol()}}function UR(n,e){return new Py(n,e).nextGraphemeLength()}function CH(n,e){return new Py(n,e).prevGraphemeLength()}function Rle(n,e){e>0&&cf(n.charCodeAt(e))&&e--;const t=e+UR(n,e);return[t-CH(n,t),t]}const Ple=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function BL(n){return Ple.test(n)}const Ole=/^[\t\n\r\x20-\x7E]*$/;function VL(n){return Ole.test(n)}const wH=/[\u2028\u2029]/;function yH(n){return wH.test(n)}function lu(n){return n>=11904&&n<=55215||n>=63744&&n<=64255||n>=65281&&n<=65374}function jR(n){return n>=127462&&n<=127487||n===8986||n===8987||n===9200||n===9203||n>=9728&&n<=10175||n===11088||n===11093||n>=127744&&n<=128591||n>=128640&&n<=128764||n>=128992&&n<=129008||n>=129280&&n<=129535||n>=129648&&n<=129782}const Fle=String.fromCharCode(65279);function qR(n){return!!(n&&n.length>0&&n.charCodeAt(0)===65279)}function Ble(n,e=!1){return n?(e&&(n=n.replace(/\\./g,"")),n.toLowerCase()!==n):!1}function SH(n){return n=n%(2*26),n<26?String.fromCharCode(97+n):String.fromCharCode(65+n-26)}function C3(n,e){return n===0?e!==5&&e!==7:n===2&&e===3?!1:n===4||n===2||n===3||e===4||e===2||e===3?!0:!(n===8&&(e===8||e===9||e===11||e===12)||(n===11||n===9)&&(e===9||e===10)||(n===12||n===10)&&e===10||e===5||e===13||e===7||n===1||n===13&&e===14||n===6&&e===6)}class Fd{constructor(){this._data=Vle()}static getInstance(){return Fd._INSTANCE||(Fd._INSTANCE=new Fd),Fd._INSTANCE}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(et[3*s+1])s=2*s+1;else return t[3*s+2];return 0}}Fd._INSTANCE=null;function Vle(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Wle(n,e){if(n===0)return 0;const t=Hle(n,e);if(t!==void 0)return t;const i=new $R(e,n);return i.prevCodePoint(),i.offset}function Hle(n,e){const t=new $R(e,n);let i=t.prevCodePoint();for(;zle(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!jR(i))return;let s=t.offset;return s>0&&t.prevCodePoint()===8205&&(s=t.offset),s}function zle(n){return 127995<=n&&n<=127999}const $le=" ";class Jr{constructor(e){this.confusableDictionary=e}static getInstance(e){return Jr.cache.get(Array.from(e))}static getLocales(){return Jr._locales.getValue()}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}pH=Jr;Jr.ambiguousCharacterData=new lp(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));Jr.cache=new Ele(n=>{function e(c){const d=new Map;for(let u=0;u!c.startsWith("_")&&c in s);o.length===0&&(o=["_default"]);let r;for(const c of o){const d=e(s[c]);r=i(r,d)}const a=e(s._common),l=t(a,r);return new Jr(l)});Jr._locales=new lp(()=>Object.keys(Jr.ambiguousCharacterData.getValue()).filter(n=>!n.startsWith("_")));class kl{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(kl.getRawData())),this._data}static isInvisibleCharacter(e){return kl.getData().has(e)}static get codePoints(){return kl.getData()}}kl._data=void 0;class uN{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}uN.INSTANCE=new uN;class Ule extends J{constructor(){super(),this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){this._mediaQueryList&&this._mediaQueryList.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class jle extends J{constructor(){super(),this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new Ule);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}class qle{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new jle),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}const dp=new qle;function LH(){return uN.INSTANCE.getZoomFactor()}const o_=navigator.userAgent,Yo=o_.indexOf("Firefox")>=0,qd=o_.indexOf("AppleWebKit")>=0,KR=o_.indexOf("Chrome")>=0,ea=!KR&&o_.indexOf("Safari")>=0,GR=!KR&&!ea&&qd,Kle=o_.indexOf("Electron/")>=0,kH=o_.indexOf("Android")>=0,YR=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches,Gle=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:dp,getZoomFactor:LH,isAndroid:kH,isChrome:KR,isElectron:Kle,isFirefox:Yo,isSafari:ea,isStandalone:YR,isWebKit:qd,isWebkitWebView:GR},Symbol.toStringTag,{value:"Module"}));class xH{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontStyle="",this._fontFeatureSettings="",this._textDecoration="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function Bt(n){return new xH(n)}function _s(n,e){n instanceof xH?(n.setFontFamily(e.getMassagedFontFamily(ea?Es.fontFamily:null)),n.setFontWeight(e.fontWeight),n.setFontSize(e.fontSize),n.setFontFeatureSettings(e.fontFeatureSettings),n.setLineHeight(e.lineHeight),n.setLetterSpacing(e.letterSpacing)):(n.style.fontFamily=e.getMassagedFontFamily(ea?Es.fontFamily:null),n.style.fontWeight=e.fontWeight,n.style.fontSize=e.fontSize+"px",n.style.fontFeatureSettings=e.fontFeatureSettings,n.style.lineHeight=e.lineHeight+"px",n.style.letterSpacing=e.letterSpacing+"px")}class Yle{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ZR{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");_s(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");_s(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");_s(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=s),a.appendChild(document.createElement("br"));const l=document.createElement("span");ZR._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i=" ";for(let s=0;s<8;s++)i+=i;e.innerText=i}else{let i=t.chr;for(let s=0;s<8;s++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new hN({pixelRatio:dp.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,s){const o=new Yle(e,t);return i.push(o),s&&s.push(o),o}_actualReadFontInfo(e){const t=[],i=[],s=this._createRequest("n",0,t,i),o=this._createRequest("m",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),l=this._createRequest("1",0,t,i),c=this._createRequest("2",0,t,i),d=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),h=this._createRequest("5",0,t,i),f=this._createRequest("6",0,t,i),g=this._createRequest("7",0,t,i),_=this._createRequest("8",0,t,i),b=this._createRequest("9",0,t,i),v=this._createRequest("→",0,t,i),C=this._createRequest("→",0,t,null),y=this._createRequest("·",0,t,i),S=this._createRequest(String.fromCharCode(11825),0,t,null),x="|/-_ilm%";for(let $=0,z=x.length;$.001){E=!1;break}}let P=!0;return E&&C.width!==D&&(P=!1),C.width>v.width&&(P=!1),new hN({pixelRatio:dp.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:E,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:P,spaceWidth:r.width,middotWidth:y.width,wsmiddotWidth:S.width,maxDigitWidth:A},!0)}}class w3{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const fN=new Jle;var Ca;(function(n){n.serviceIds=new Map,n.DI_TARGET="$di$target",n.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[n.DI_DEPENDENCIES]||[]}n.getServiceDependencies=e})(Ca||(Ca={}));const Et=At("instantiationService");function ece(n,e,t){e[Ca.DI_TARGET]===e?e[Ca.DI_DEPENDENCIES].push({id:n,index:t}):(e[Ca.DI_DEPENDENCIES]=[{id:n,index:t}],e[Ca.DI_TARGET]=e)}function At(n){if(Ca.serviceIds.has(n))return Ca.serviceIds.get(n);const e=function(t,i,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ece(e,t,s)};return e.toString=()=>n,Ca.serviceIds.set(n,e),e}const Zt=At("codeEditorService");function Tw(n,e){if(!n)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}const tce={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class ice extends J{constructor(e,t={}){super(),this._onDidUpdate=this._register(new j),this._editor=e,this._options=$l(t,tce,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(i=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(i=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(t=>{!this._options.ignoreCharChanges&&t.charChanges?t.charChanges.forEach(i=>{this.ranges.push({rhs:!0,range:new T(i.modifiedStartLineNumber,i.modifiedStartColumn,i.modifiedEndLineNumber,i.modifiedEndColumn)})}):t.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new T(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new T(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber+1,1)})}),this.ranges.sort((t,i)=>T.compareRangesUsingStarts(t.range,i.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;const i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let s=0,o=this.ranges.length;s=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const s=i.range.getStartPosition();this._editor.setPosition(s),this._editor.revealRangeInCenter(i.range,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}const G1={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};var br;(function(n){n[n.Left=1]="Left",n[n.Center=2]="Center",n[n.Right=4]="Right",n[n.Full=7]="Full"})(br||(br={}));var fr;(function(n){n[n.Inline=1]="Inline",n[n.Gutter=2]="Gutter"})(fr||(fr={}));var bl;(function(n){n[n.Both=0]="Both",n[n.Right=1]="Right",n[n.Left=2]="Left",n[n.None=3]="None"})(bl||(bl={}));class Aw{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),this.indentSize=e.tabSize|0,this.insertSpaces=!!e.insertSpaces,this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&hr(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class kv{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class vE{constructor(e,t,i,s,o,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=s,this.isAutoWhitespaceEdit=o,this._isTracked=r}}class nce{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class sce{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function oce(n){return!n.isTooLargeForSyncing()&&!n.isForSimpleWidget}var Ji;(function(n){n[n.None=0]="None",n[n.Indent=1]="Indent",n[n.IndentOutdent=2]="IndentOutdent",n[n.Outdent=3]="Outdent"})(Ji||(Ji={}));class CE{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t0&&n.getLanguageId(r-1)===s;)r--;return new ace(n,s,r,o+1,n.getStartOffset(r),n.getEndOffset(o))}class ace{constructor(e,t,i,s,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function Za(n){return(n&3)!==0}class WL{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new CE(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new CE({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.colorizedBracketPairs?this._colorizedBracketPairs=y3(e.colorizedBracketPairs.map(t=>[t[0],t[1]])):e.brackets?this._colorizedBracketPairs=y3(e.brackets.map(t=>[t[0],t[1]]).filter(t=>!(t[0]==="<"&&t[1]===">"))):this._colorizedBracketPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new CE({open:t.open,close:t.close||""}))}this._autoCloseBefore=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:WL.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}WL.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> + `;function y3(n){return n.filter(([e,t])=>e!==""&&t!=="")}const S3=typeof Buffer<"u";let wE;class HL{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(e){return S3&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new HL(e)}toString(){return S3?this.buffer.toString():(wE||(wE=new TextDecoder),wE.decode(this.buffer))}}function lce(n,e){return n[e+0]<<0>>>0|n[e+1]<<8>>>0}function cce(n,e,t){n[t+0]=e&255,e=e>>>8,n[t+1]=e&255}function da(n,e){return n[e]*Math.pow(2,24)+n[e+1]*Math.pow(2,16)+n[e+2]*Math.pow(2,8)+n[e+3]}function ua(n,e,t){n[t+3]=e,e=e>>>8,n[t+2]=e,e=e>>>8,n[t+1]=e,e=e>>>8,n[t]=e}function L3(n,e){return n[e]}function k3(n,e,t){n[t]=e}let yE;function EH(){return yE||(yE=new TextDecoder("UTF-16LE")),yE}let SE;function dce(){return SE||(SE=new TextDecoder("UTF-16BE")),SE}let LE;function DH(){return LE||(LE=qW()?EH():dce()),LE}const IH=typeof TextDecoder<"u";let df,gN;IH?(df=n=>new hce(n),gN=uce):(df=n=>new fce,gN=NH);function uce(n,e,t){const i=new Uint16Array(n.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?NH(n,e,t):EH().decode(i)}function NH(n,e,t){const i=[];let s=0;for(let o=0;o=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r{const[l,c]=r,[d,u]=a;return l===d||l===u||c===d||c===u},s=(r,a)=>{const l=Math.min(r,a),c=Math.max(r,a);for(let d=0;d0&&o.push({open:a,close:l})}return o}class mce{constructor(e,t){this._richEditBracketsBrand=void 0;const i=gce(t);this.brackets=i.map((s,o)=>new Fy(e,o,s.open,s.close,pce(s.open,s.close,i,o),_ce(s.open,s.close,i,o))),this.forwardRegex=bce(this.brackets),this.reversedRegex=vce(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const o of s.open)this.textIsBracket[o]=s,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of s.close)this.textIsBracket[o]=s,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function TH(n,e,t,i){for(let s=0,o=e.length;s=0&&i.push(a);for(const a of r.close)a.indexOf(n)>=0&&i.push(a)}}function AH(n,e){return n.length-e.length}function zL(n){if(n.length<=1)return n;const e=[],t=new Set;for(const i of n)t.has(i)||(e.push(i),t.add(i));return e}function pce(n,e,t,i){let s=[];s=s.concat(n),s=s.concat(e);for(let o=0,r=s.length;o=0;r--)s[o++]=i.charCodeAt(r);return DH().decode(s)}else{const s=[];let o=0;for(let r=i.length-1;r>=0;r--)s[o++]=i.charAt(r);return s.join("")}}let e=null,t=null;return function(s){return e!==s&&(e=s,t=n(e)),t}}();class Br{static _findPrevBracketInText(e,t,i,s){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=s+r;return new T(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,s,o){const a=XR(i).substring(i.length-o,i.length-s);return this._findPrevBracketInText(e,t,a,s)}static findNextBracketInText(e,t,i,s){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(a===0)return null;const l=s+r;return new T(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,s,o){const r=i.substring(s,o);return this.findNextBracketInText(e,t,r,s)}}class wce{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const s=i.charAt(i.length-1);e.push(s)}return au(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const s=t.findTokenIndexAtOffset(i-1);if(Za(t.getStandardTokenType(s)))return null;const o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=Br.findPrevBracketInRange(o,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const d=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:l}:null}}function Z0(n){return n.global&&(n.lastIndex=0),!0}class yce{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&Z0(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&Z0(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&Z0(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&Z0(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class cm{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=cm._createOpenBracketRegExp(t[0]),s=cm._createCloseBracketRegExp(t[1]);i&&s&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:s})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,s){if(e>=3)for(let o=0,r=this._regExpRules.length;oc.reg?(c.reg.lastIndex=0,c.reg.test(c.text)):!0))return a.action}if(e>=2&&i.length>0&&s.length>0)for(let o=0,r=this._brackets.length;o=2&&i.length>0){for(let o=0,r=this._brackets.length;o"u"?t:o}const Oi=At("languageService");class ol{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}const PH=[];function Vt(n,e,t){e instanceof ol||(e=new ol(e,[],t)),PH.push([n,e])}function E3(){return PH}var Lce=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},D3=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};class kE{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const ws=At("languageConfigurationService");let mN=class extends J{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this.onDidChangeEmitter=this._register(new j),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(pN));this._register(this.configurationService.onDidChangeConfiguration(s=>{const o=s.change.keys.some(a=>i.has(a)),r=s.change.overrides.filter(([a,l])=>l.some(c=>i.has(c))).map(([a])=>a);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new kE(void 0));else for(const a of r)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new kE(a)))})),this._register(fn.onDidChange(s=>{this.configurations.delete(s.languageId),this.onDidChangeEmitter.fire(new kE(s.languageId))}))}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=kce(e,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};mN=Lce([D3(0,li),D3(1,Oi)],mN);function kce(n,e,t){let i=fn.getLanguageConfiguration(n);if(!i){if(!t.isRegisteredLanguageId(n))throw new Error(`Language id "${n}" is not configured nor known`);i=new xv(n,{})}const s=xce(i.languageId,e),o=OH([i.underlyingConfig,s]);return new xv(i.languageId,o)}const pN={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function xce(n,e){const t=e.getValue(pN.brackets,{overrideIdentifier:n}),i=e.getValue(pN.colorizedBracketPairs,{overrideIdentifier:n});return{brackets:I3(t),colorizedBracketPairs:I3(i)}}function I3(n){if(Array.isArray(n))return n.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}class N3{constructor(e){this.languageId=e}}class Ece{constructor(){this._entries=new Map,this._onDidChange=new j,this.onDidChange=this._onDidChange.event}register(e,t,i=0){let s=this._entries.get(e);s||(s=new Dce(e),this._entries.set(e,s));const o=s.register(t,i);return this._onDidChange.fire(new N3(e)),vt(()=>{o.dispose(),this._onDidChange.fire(new N3(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return(t==null?void 0:t.getResolvedConfiguration())||null}getComments(e){const t=this.getLanguageConfiguration(e);return t&&t.comments||null}getIndentRulesSupport(e){const t=this.getLanguageConfiguration(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,i){const s=e.getLanguageIdAtPosition(t,0);if(t>1){let o,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==s)return r;const a=e.getLineContent(o);if(i.shouldIgnore(a)||/^\s+$/.test(a)||a===""){r=o;continue}return o}}return-1}getInheritIndentForLine(e,t,i,s=!0){if(e<4)return null;const o=this.getIndentRulesSupport(t.getLanguageId());if(!o)return null;if(i<=1)return{indentation:"",action:null};const r=this.getPrecedingValidLine(t,i,o);if(r<0)return null;if(r<1)return{indentation:"",action:null};const a=t.getLineContent(r);if(o.shouldIncrease(a)||o.shouldIndentNextLine(a))return{indentation:ei(a),action:Ji.Indent,line:r};if(o.shouldDecrease(a))return{indentation:ei(a),action:null,line:r};{if(r===1)return{indentation:ei(t.getLineContent(r)),action:null,line:r};const l=r-1,c=o.getIndentMetadata(t.getLineContent(l));if(!(c&3)&&c&4){let d=0;for(let u=l-1;u>0;u--)if(!o.shouldIndentNextLine(t.getLineContent(u))){d=u;break}return{indentation:ei(t.getLineContent(d+1)),action:null,line:d+1}}if(s)return{indentation:ei(t.getLineContent(r)),action:null,line:r};for(let d=r;d>0;d--){const u=t.getLineContent(d);if(o.shouldIncrease(u))return{indentation:ei(u),action:Ji.Indent,line:d};if(o.shouldIndentNextLine(u)){let h=0;for(let f=d-1;f>0;f--)if(!o.shouldIndentNextLine(t.getLineContent(d))){h=f;break}return{indentation:ei(t.getLineContent(h+1)),action:null,line:h+1}}else if(o.shouldDecrease(u))return{indentation:ei(u),action:null,line:d}}return{indentation:ei(t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,i,s,o){if(e<4)return null;const r=this.getLanguageConfiguration(i);if(!r)return null;const a=this.getIndentRulesSupport(i);if(!a)return null;const l=this.getInheritIndentForLine(e,t,s),c=t.getLineContent(s);if(l){const d=l.line;if(d!==void 0){const u=r.onEnter(e,"",t.getLineContent(d),"");if(u){let h=ei(t.getLineContent(d));return u.removeText&&(h=h.substring(0,h.length-u.removeText)),u.indentAction===Ji.Indent||u.indentAction===Ji.IndentOutdent?h=o.shiftIndent(h):u.indentAction===Ji.Outdent&&(h=o.unshiftIndent(h)),a.shouldDecrease(c)&&(h=o.unshiftIndent(h)),u.appendText&&(h+=u.appendText),ei(h)}}return a.shouldDecrease(c)?l.action===Ji.Indent?l.indentation:o.unshiftIndent(l.indentation):l.action===Ji.Indent?o.shiftIndent(l.indentation):l.indentation}return null}getIndentForEnter(e,t,i,s){if(e<4)return null;t.forceTokenization(i.startLineNumber);const o=t.getLineTokens(i.startLineNumber),r=Oy(o,i.startColumn-1),a=r.getLineContent();let l=!1,c;r.firstCharOffset>0&&o.getLanguageId(0)!==r.languageId?(l=!0,c=a.substr(0,i.startColumn-1-r.firstCharOffset)):c=o.getLineContent().substring(0,i.startColumn-1);let d;i.isEmpty()?d=a.substr(i.startColumn-1-r.firstCharOffset):d=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset);const u=this.getIndentRulesSupport(r.languageId);if(!u)return null;const h=c,f=ei(c),g={getLineTokens:C=>t.getLineTokens(C),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(C,y)=>t.getLanguageIdAtPosition(C,y),getLineContent:C=>C===i.startLineNumber?h:t.getLineContent(C)},_=ei(o.getLineContent()),b=this.getInheritIndentForLine(e,g,i.startLineNumber+1);if(!b){const C=l?_:f;return{beforeEnter:C,afterEnter:C}}let v=l?_:b.indentation;return b.action===Ji.Indent&&(v=s.shiftIndent(v)),u.shouldDecrease(d)&&(v=s.unshiftIndent(v)),{beforeEnter:l?_:f,afterEnter:v}}getIndentActionForType(e,t,i,s,o){if(e<4)return null;const r=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn);if(r.firstCharOffset)return null;const a=this.getIndentRulesSupport(r.languageId);if(!a)return null;const l=r.getLineContent(),c=l.substr(0,i.startColumn-1-r.firstCharOffset);let d;if(i.isEmpty()?d=l.substr(i.startColumn-1-r.firstCharOffset):d=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset),!a.shouldDecrease(c+d)&&a.shouldDecrease(c+s+d)){const u=this.getInheritIndentForLine(e,t,i.startLineNumber,!1);if(!u)return null;let h=u.indentation;return u.action!==Ji.Indent&&(h=o.unshiftIndent(h)),h}return null}getIndentMetadata(e,t){const i=this.getIndentRulesSupport(e.getLanguageId());return!i||t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t))}getEnterAction(e,t,i){const s=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn),o=this.getLanguageConfiguration(s.languageId);if(!o)return null;const r=s.getLineContent(),a=r.substr(0,i.startColumn-1-s.firstCharOffset);let l;i.isEmpty()?l=r.substr(i.startColumn-1-s.firstCharOffset):l=this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-s.firstCharOffset);let c="";if(i.startLineNumber>1&&s.firstCharOffset===0){const _=this.getScopedLineTokens(t,i.startLineNumber-1);_.languageId===s.languageId&&(c=_.getLineContent())}const d=o.onEnter(e,c,a,l);if(!d)return null;const u=d.indentAction;let h=d.appendText;const f=d.removeText||0;h?u===Ji.Indent&&(h=" "+h):u===Ji.Indent||u===Ji.IndentOutdent?h=" ":h="";let g=this.getIndentationAtPosition(t,i.startLineNumber,i.startColumn);return f&&(g=g.substring(0,g.length-f)),{indentAction:u,appendText:h,removeText:f,indentation:g}}getIndentationAtPosition(e,t,i){const s=e.getLineContent(t);let o=ei(s);return o.length>i-1&&(o=o.substring(0,i-1)),o}getScopedLineTokens(e,t,i){e.forceTokenization(t);const s=e.getLineTokens(t),o=typeof i>"u"?e.getLineMaxColumn(t)-1:i-1;return Oy(s,o)}}const fn=new Ece;class Dce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new T3(e,t,++this._order);return this._entries.push(i),this._resolved=null,vt(()=>{for(let s=0;se.configuration)))}}function OH(n){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of n)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class T3{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class xv{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new cm(this.underlyingConfig):null,this.comments=xv._handleComments(this.underlyingConfig),this.characterPair=new WL(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||LR,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new yce(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{}}getWordDefinition(){return YW(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new mce(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new wce(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new rce(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(){return this.characterPair.getAutoCloseBeforeSet()}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[s,o]=t.blockComment;i.blockCommentStartToken=s,i.blockCommentEndToken=o}return i}}Vt(ws,mN);const up=new class{clone(){return this}equals(n){return this===n}};function FH(n,e){return new FR([new wv(0,"",n)],e)}function JR(n,e){const t=new Uint32Array(2);return t[0]=0,t[1]=(n<<0|0|0|16384|2<<23)>>>0,new FL(t,e===null?up:e)}const Fi=At("modelService");var nr=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})},fb=globalThis&&globalThis.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(r){return new Promise(function(a,l){r=n[o](r),s(a,l,r.done,r.value)})}}function s(o,r,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},r)}};function Ice(n){return!!n&&typeof n.then=="function"}function Kn(n){const e=new is,t=n(e.token),i=new Promise((s,o)=>{const r=e.token.onCancellationRequested(()=>{r.dispose(),e.dispose(),o(new Qf)});Promise.resolve(t).then(a=>{r.dispose(),e.dispose(),s(a)},a=>{r.dispose(),e.dispose(),o(a)})});return new class{cancel(){e.cancel()}then(s,o){return i.then(s,o)}catch(s){return this.then(void 0,s)}finally(s){return i.finally(s)}}}function eP(n,e,t){return new Promise((i,s)=>{const o=e.onCancellationRequested(()=>{o.dispose(),i(t)});n.then(i,s).finally(()=>o.dispose())})}class Nce{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{this.queuedPromise=null;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(s=>{this.activePromise=null,t(s)},s=>{this.activePromise=null,i(s)})})}}const Tce=(n,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},n);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},Ace=n=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,n())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},BH=Symbol("MicrotaskDelay");class Ml{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((s,o)=>{this.doResolve=s,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const s=this.task;return this.task=null,s()}}));const i=()=>{var s;this.deferred=null,(s=this.doResolve)===null||s===void 0||s.call(this,null)};return this.deferred=t===BH?Ace(i):Tce(t,i),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(new Qf),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class Mce{constructor(e){this.delayer=new Ml(e),this.throttler=new Nce}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function cu(n,e){return e?new Promise((t,i)=>{const s=setTimeout(()=>{o.dispose(),t()},n),o=e.onCancellationRequested(()=>{clearTimeout(s),o.dispose(),i(new Qf)})}):Kn(t=>cu(n,t))}function uf(n,e=0){const t=setTimeout(n,e);return vt(()=>clearTimeout(t))}function VH(n,e=i=>!!i,t=null){let i=0;const s=n.length,o=()=>{if(i>=s)return Promise.resolve(t);const r=n[i++];return Promise.resolve(r()).then(l=>e(l)?Promise.resolve(l):o())};return o()}class xo{constructor(e,t){this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class Y1{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class ni{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let Ev;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?Ev=n=>{jW(()=>{if(e)return;const t=Date.now()+15;n(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:Ev=(n,e)=>{const t=requestIdleCallback(n,typeof e=="number"?{timeout:e}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(t))}}}})();class Kd{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=Ev(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class tP{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new Qf),this.rejected=!0,e()})}}var _N;(function(n){function e(i){return nr(this,void 0,void 0,function*(){let s;const o=yield Promise.all(i.map(r=>r.then(a=>a,a=>{s||(s=a)})));if(typeof s<"u")throw s;return o})}n.settled=e;function t(i){return new Promise((s,o)=>nr(this,void 0,void 0,function*(){try{yield i(s,o)}catch(r){o(r)}}))}n.withAsyncBody=t})(_N||(_N={}));class en{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new j,queueMicrotask(()=>nr(this,void 0,void 0,function*(){const t={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{yield Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}static fromArray(e){return new en(t=>{t.emitMany(e)})}static fromPromise(e){return new en(t=>nr(this,void 0,void 0,function*(){t.emitMany(yield e)}))}static fromPromises(e){return new en(t=>nr(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>nr(this,void 0,void 0,function*(){return t.emitOne(yield i)})))}))}static merge(e){return new en(t=>nr(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>{var s,o;return nr(this,void 0,void 0,function*(){var r,a;try{for(s=fb(i);o=yield s.next(),!o.done;){const l=o.value;t.emitOne(l)}}catch(l){r={error:l}}finally{try{o&&!o.done&&(a=s.return)&&(yield a.call(s))}finally{if(r)throw r.error}}})}))}))}[Symbol.asyncIterator](){let e=0;return{next:()=>nr(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(enr(this,void 0,void 0,function*(){var s,o;try{for(var r=fb(e),a;a=yield r.next(),!a.done;){const l=a.value;i.emitOne(t(l))}}catch(l){s={error:l}}finally{try{a&&!a.done&&(o=r.return)&&(yield o.call(r))}finally{if(s)throw s.error}}}))}map(e){return en.map(this,e)}static filter(e,t){return new en(i=>nr(this,void 0,void 0,function*(){var s,o;try{for(var r=fb(e),a;a=yield r.next(),!a.done;){const l=a.value;t(l)&&i.emitOne(l)}}catch(l){s={error:l}}finally{try{a&&!a.done&&(o=r.return)&&(yield o.call(r))}finally{if(s)throw s.error}}}))}filter(e){return en.filter(this,e)}static coalesce(e){return en.filter(e,t=>!!t)}coalesce(){return en.coalesce(this)}static toPromise(e){var t,i,s,o;return nr(this,void 0,void 0,function*(){const r=[];try{for(t=fb(e);i=yield t.next(),!i.done;){const a=i.value;r.push(a)}}catch(a){s={error:a}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(s)throw s.error}}return r})}toPromise(){return en.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}en.EMPTY=en.fromArray([]);class Rce extends en{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function Pce(n){const e=new is,t=n(e.token);return new Rce(e,i=>nr(this,void 0,void 0,function*(){var s,o;const r=e.token.onCancellationRequested(()=>{r.dispose(),e.dispose(),i.reject(new Qf)});try{try{for(var a=fb(t),l;l=yield a.next(),!l.done;){const c=l.value;if(e.token.isCancellationRequested)return;i.emitOne(c)}}catch(c){s={error:c}}finally{try{l&&!l.done&&(o=a.return)&&(yield o.call(a))}finally{if(s)throw s.error}}r.dispose(),e.dispose()}catch(c){r.dispose(),e.dispose(),i.reject(c)}}))}const Oce="$initialize";let A3=!1;function bN(n){Ou&&(A3||(A3=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(n.message))}class Fce{constructor(e,t,i,s){this.vsWorker=e,this.req=t,this.method=i,this.args=s,this.type=0}}class M3{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class Bce{constructor(e,t,i,s){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=s,this.type=2}}class Vce{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class Wce{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Hce{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((s,o)=>{this._pendingReplies[i]={resolve:s,reject:o},this._send(new Fce(this._workerId,i,e,t))})}listen(e,t){let i=null;const s=new j({onFirstListenerAdd:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new Bce(this._workerId,i,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(i),this._send(new Wce(this._workerId,i)),i=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then(s=>{this._send(new M3(this._workerId,t,s,void 0))},s=>{s.detail instanceof Error&&(s.detail=m3(s.detail)),this._send(new M3(this._workerId,t,void 0,m3(s)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(s=>{this._send(new Vce(this._workerId,t,s))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let i=0;i{this._protocol.handleMessage(c)},c=>{s&&s(c)})),this._protocol=new Hce({sendMessage:(c,d)=>{this._worker.postMessage(c,d)},handleMessage:(c,d)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,d))}catch(u){return Promise.reject(u)}},handleEvent:(c,d)=>{if(HH(c)){const u=i[c].call(i,d);if(typeof u!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return u}if(WH(c)){const u=i[c];if(typeof u!="function")throw new Error(`Missing event ${c} on main thread host.`);return u}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;typeof Zi.require<"u"&&typeof Zi.require.getConfig=="function"?o=Zi.require.getConfig():typeof Zi.requirejs<"u"&&(o=Zi.requirejs.s.contexts._.config);const r=DR(i);this._onModuleLoaded=this._protocol.sendMessage(Oce,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,r]);const a=(c,d)=>this._request(c,d),l=(c,d)=>this._protocol.listen(c,d);this._lazyProxy=new Promise((c,d)=>{s=d,this._onModuleLoaded.then(u=>{c($ce(u,a,l))},u=>{d(u),this._onError("Worker failed to load "+t,u)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,s)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,s)},s)})}_onError(e,t){console.error(e),console.info(t)}}function WH(n){return n[0]==="o"&&n[1]==="n"&&sl(n.charCodeAt(2))}function HH(n){return/^onDynamic/.test(n)&&sl(n.charCodeAt(9))}function $ce(n,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},s=r=>function(a){return t(r,a)};let o={};for(const r of n){if(HH(r)){o[r]=s(r);continue}if(WH(r)){o[r]=t(r,void 0);continue}o[r]=i(r)}return o}var xE;const R3=(xE=window.trustedTypes)===null||xE===void 0?void 0:xE.createPolicy("defaultWorkerFactory",{createScriptURL:n=>n});function Uce(n){if(Zi.MonacoEnvironment){if(typeof Zi.MonacoEnvironment.getWorker=="function")return Zi.MonacoEnvironment.getWorker("workerMain.js",n);if(typeof Zi.MonacoEnvironment.getWorkerUrl=="function"){const e=Zi.MonacoEnvironment.getWorkerUrl("workerMain.js",n);return new Worker(R3?R3.createScriptURL(e):e,{name:n})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function jce(n){return typeof n.then=="function"}class qce{constructor(e,t,i,s,o){this.id=t;const r=Uce(i);jce(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){s(l.data)},a.onmessageerror=o,typeof a.addEventListener=="function"&&a.addEventListener("error",o)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(i=>i.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class UL{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let s=++UL.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new qce(e,s,this._label||"anonymous"+s,t,o=>{bN(o),this._webWorkerFailedBeforeError=o,i(o)})}}UL.LAST_WORKER_ID=0;class Ld{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function zH(n){return jL(n,0)}function jL(n,e){switch(typeof n){case"object":return n===null?kc(349,e):Array.isArray(n)?Gce(n,e):Yce(n,e);case"string":return iP(n,e);case"boolean":return Kce(n,e);case"number":return kc(n,e);case"undefined":return kc(937,e);default:return kc(617,e)}}function kc(n,e){return(e<<5)-e+n|0}function Kce(n,e){return kc(n?433:863,e)}function iP(n,e){e=kc(149417,e);for(let t=0,i=n.length;tjL(i,t),e)}function Yce(n,e){return e=kc(181387,e),Object.keys(n).sort().reduce((t,i)=>(t=iP(i,t),jL(n[i],t)),e)}function EE(n,e,t=32){const i=t-e,s=~((1<>>i)>>>0}function P3(n,e=0,t=n.byteLength,i=0){for(let s=0;st.toString(16).padStart(2,"0")).join(""):Zce((n>>>0).toString(16),e/4)}class qL{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const i=this._buff;let s=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(wn(r))if(a+1>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),V_(this._h0)+V_(this._h1)+V_(this._h2)+V_(this._h3)+V_(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,P3(this._buff,this._buffLen),this._buffLen>56&&(this._step(),P3(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=qL._bigBlock32,t=this._buffDV;for(let u=0;u<64;u+=4)e.setUint32(u,t.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,EE(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let i=this._h0,s=this._h1,o=this._h2,r=this._h3,a=this._h4,l,c,d;for(let u=0;u<80;u++)u<20?(l=s&o|~s&r,c=1518500249):u<40?(l=s^o^r,c=1859775393):u<60?(l=s&o|s&r|o&r,c=2400959708):(l=s^o^r,c=3395469782),d=EE(i,5)+l+a+c+e.getUint32(u*4,!1)&4294967295,a=r,r=o,o=EE(s,30),s=i,i=d;this._h0=this._h0+i&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}qL._bigBlock32=new DataView(new ArrayBuffer(320));class O3{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new Ld(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class hl{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,o,r]=hl._getElements(e),[a,l,c]=hl._getElements(t);this._hasStrings=r&&c,this._originalStringElements=s,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(hl._isStringArray(t)){const i=new Int32Array(t.length);for(let s=0,o=t.length;s=e&&s>=i&&this.ElementsAreEqual(t,s);)t--,s--;if(e>t||i>s){let u;return i<=s?(Tg.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u=[new Ld(e,0,i,s-i+1)]):e<=t?(Tg.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),u=[new Ld(e,t-e+1,i,0)]):(Tg.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Tg.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,s,r,a,o),c=r[0],d=a[0];if(l!==null)return l;if(!o[0]){const u=this.ComputeDiffRecursive(e,c,i,d,o);let h=[];return o[0]?h=[new Ld(c+1,t-(c+1)+1,d+1,s-(d+1)+1)]:h=this.ComputeDiffRecursive(c+1,t,d+1,s,o),this.ConcatenateChanges(u,h)}return[new Ld(e,t-e+1,i,s-i+1)]}WALKTRACE(e,t,i,s,o,r,a,l,c,d,u,h,f,g,_,b,v,C){let y=null,S=null,x=new F3,A=t,E=i,D=f[0]-b[0]-s,P=-1073741824,$=this.m_forwardHistory.length-1;do{const z=D+e;z===A||z=0&&(c=this.m_forwardHistory[$],e=c[0],A=1,E=c.length-1)}while(--$>=-1);if(y=x.getReverseChanges(),C[0]){let z=f[0]+1,ee=b[0]+1;if(y!==null&&y.length>0){const Q=y[y.length-1];z=Math.max(z,Q.getOriginalEnd()),ee=Math.max(ee,Q.getModifiedEnd())}S=[new Ld(z,h-z+1,ee,_-ee+1)]}else{x=new F3,A=r,E=a,D=f[0]-b[0]-l,P=1073741824,$=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const z=D+o;z===A||z=d[z+1]?(u=d[z+1]-1,g=u-D-l,u>P&&x.MarkNextChange(),P=u+1,x.AddOriginalElement(u+1,g+1),D=z+1-o):(u=d[z-1],g=u-D-l,u>P&&x.MarkNextChange(),P=u,x.AddModifiedElement(u+1,g+1),D=z-1-o),$>=0&&(d=this.m_reverseHistory[$],o=d[0],A=1,E=d.length-1)}while(--$>=-1);S=x.getChanges()}return this.ConcatenateChanges(y,S)}ComputeRecursionPoint(e,t,i,s,o,r,a){let l=0,c=0,d=0,u=0,h=0,f=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(s-i),_=g+1,b=new Int32Array(_),v=new Int32Array(_),C=s-i,y=t-e,S=e-i,x=t-s,E=(y-C)%2===0;b[C]=e,v[y]=t,a[0]=!1;for(let D=1;D<=g/2+1;D++){let P=0,$=0;d=this.ClipDiagonalBound(C-D,D,C,_),u=this.ClipDiagonalBound(C+D,D,C,_);for(let ee=d;ee<=u;ee+=2){ee===d||eeP+$&&(P=l,$=c),!E&&Math.abs(ee-y)<=D-1&&l>=v[ee])return o[0]=l,r[0]=c,Q<=v[ee]&&1447>0&&D<=1447+1?this.WALKTRACE(C,d,u,S,y,h,f,x,b,v,l,t,o,c,s,r,E,a):null}const z=(P-e+($-i)-D)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(P,z))return a[0]=!0,o[0]=P,r[0]=$,z>0&&1447>0&&D<=1447+1?this.WALKTRACE(C,d,u,S,y,h,f,x,b,v,l,t,o,c,s,r,E,a):(e++,i++,[new Ld(e,t-e+1,i,s-i+1)]);h=this.ClipDiagonalBound(y-D,D,y,_),f=this.ClipDiagonalBound(y+D,D,y,_);for(let ee=h;ee<=f;ee+=2){ee===h||ee=v[ee+1]?l=v[ee+1]-1:l=v[ee-1],c=l-(ee-y)-x;const Q=l;for(;l>e&&c>i&&this.ElementsAreEqual(l,c);)l--,c--;if(v[ee]=l,E&&Math.abs(ee-C)<=D&&l<=b[ee])return o[0]=l,r[0]=c,Q>=b[ee]&&1447>0&&D<=1447+1?this.WALKTRACE(C,d,u,S,y,h,f,x,b,v,l,t,o,c,s,r,E,a):null}if(D<=1447){let ee=new Int32Array(u-d+2);ee[0]=C-d+1,Ag.Copy2(b,d,ee,1,u-d+1),this.m_forwardHistory.push(ee),ee=new Int32Array(f-h+2),ee[0]=y-h+1,Ag.Copy2(v,h,ee,1,f-h+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE(C,d,u,S,y,h,f,x,b,v,l,t,o,c,s,r,E,a)}PrettifyChanges(e){for(let t=0;t0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let s=0,o=0;if(t>0){const u=e[t-1];s=u.originalStart+u.originalLength,o=u.modifiedStart+u.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,c=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let u=1;;u++){const h=i.originalStart-u,f=i.modifiedStart-u;if(hc&&(c=_,l=u)}i.originalStart-=l,i.modifiedStart-=l;const d=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],d)){e[t-1]=d[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&f>l&&(l=f,c=u,d=h)}return l>0?[c,d]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let o=0;o=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,s)?1:0;return o+r}ConcatenateChanges(e,t){let i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return Ag.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],Ag.Copy(t,1,s,e.length,t.length-1),s}else{const s=new Array(e.length+t.length);return Ag.Copy(e,0,s,0,e.length),Ag.Copy(t,0,s,e.length,t.length),s}}ChangesOverlap(e,t,i){if(Tg.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Tg.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const s=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new Ld(s,o,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const f=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),g=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let _=$H(f,g,o,!0).changes;a&&(_=ede(_)),h=[];for(let b=0,v=_.length;b1&&_>1;){const b=h.charCodeAt(g-2),v=f.charCodeAt(_-2);if(b!==v)break;g--,_--}(g>1||_>1)&&this._pushTrimWhitespaceCharChange(s,o+1,1,g,r+1,1,_)}{let g=CN(h,1),_=CN(f,1);const b=h.length+1,v=f.length+1;for(;g!0;const e=Date.now();return()=>Date.now()-e255?255:n|0}function Mg(n){return n<0?0:n>4294967295?4294967295:n|0}class ide{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Mg(e);const i=this.values,s=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=Mg(e),t=Mg(t),this.values[e]===t?!1:(this.values[e]=t,e-1=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Mg(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,o=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,o=this.prefixSum[s],r=o-this.values[s],e=o)t=s+1;else break;return new UH(s,e-r)}}class nde{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new UH(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=RL(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=s+i;for(let o=0;o=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class dm{constructor(){this._actual=new r_(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}}class ode{constructor(e,t,i){const s=new Uint8Array(e*t);for(let o=0,r=e*t;ot&&(t=l),a>i&&(i=a),c>i&&(i=c)}t++,i++;const s=new ode(i,t,0);for(let o=0,r=e.length;o=this._maxCharCode?0:this._states.get(e,t)}}let DE=null;function ade(){return DE===null&&(DE=new rde([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),DE}let W_=null;function lde(){if(W_===null){W_=new r_(0);const n=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let t=0;ts);if(s>0){const a=t.charCodeAt(s-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=ade()){const i=lde(),s=[];for(let o=1,r=e.getLineCount();o<=r;o++){const a=e.getLineContent(o),l=a.length;let c=0,d=0,u=0,h=1,f=!1,g=!1,_=!1,b=!1;for(;c=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}wN.INSTANCE=new wN;class dde extends r_{constructor(e){super(0);for(let t=0,i=e.length;t(e.hasOwnProperty(t)||(e[t]=n(t)),e[t])}const vr=ude(n=>new dde(n)),hde=999;class ch{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=fde(this.searchString):e=this.searchString.indexOf(` +`)>=0;let t=null;try{t=vH(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new nce(t,this.wordSeparators?vr(this.wordSeparators):null,i?this.searchString:null)}}function fde(n){if(!n||n.length===0)return!1;for(let e=0,t=n.length;e=t)break;const s=n.charCodeAt(e);if(s===110||s===114||s===87)return!0}return!1}function ph(n,e,t){if(!t)return new kv(n,null);const i=[];for(let s=0,o=e.length;s>0);t[o]>=e?s=o-1:t[o+1]>=e?(i=o,s=o):i=o+1}return i+1}}class X0{static findMatches(e,t,i,s,o){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new um(r.wordSeparators,r.regex),s,o):this._doFindMatchesLineByLine(e,i,r,s,o):[]}static _getMultilineMatchRange(e,t,i,s,o,r){let a,l=0;s?(l=s.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o;let c;if(s){const f=s.findLineFeedCountBeforeOffset(o+r.length)-l;c=a+r.length+f}else c=a+r.length;const d=e.getPositionAt(a),u=e.getPositionAt(c);return new T(d.lineNumber,d.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,i,s,o){const r=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l=e.getEOL()===`\r +`?new W3(a):null,c=[];let d=0,u;for(i.reset(0);u=i.next(a);)if(c[d++]=ph(this._getMultilineMatchRange(e,r,a,l,u.index,u[0]),u,s),d>=o)return c;return c}static _doFindMatchesLineByLine(e,t,i,s,o){const r=[];let a=0;if(t.startLineNumber===t.endLineNumber){const c=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(i,c,t.startLineNumber,t.startColumn-1,a,r,s,o),r}const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(i,l,t.startLineNumber,t.startColumn-1,a,r,s,o);for(let c=t.startLineNumber+1;c=l))return o;return o}const d=new um(e.wordSeparators,e.regex);let u;d.reset(0);do if(u=d.next(t),u&&(r[o++]=ph(new T(i,u.index+1+s,i,u.index+1+u[0].length+s),u,a),o>=l))return o;while(u);return o}static findNextMatch(e,t,i,s){const o=t.parseSearchRequest();if(!o)return null;const r=new um(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const o=new Z(t.lineNumber,1),r=e.getOffsetAt(o),a=e.getLineCount(),l=e.getValueInRange(new T(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),c=e.getEOL()===`\r +`?new W3(l):null;i.reset(t.column-1);let d=i.next(l);return d?ph(this._getMultilineMatchRange(e,r,l,c,d.index,d[0]),d,s):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new Z(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r),l=this._findFirstMatchInLine(i,a,r,t.column,s);if(l)return l;for(let c=1;c<=o;c++){const d=(r+c-1)%o,u=e.getLineContent(d+1),h=this._findFirstMatchInLine(i,u,d+1,1,s);if(h)return h}return null}static _findFirstMatchInLine(e,t,i,s,o){e.reset(s-1);const r=e.next(t);return r?ph(new T(i,r.index+1,i,r.index+1+r[0].length),r,o):null}static findPreviousMatch(e,t,i,s){const o=t.parseSearchRequest();if(!o)return null;const r=new um(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const o=this._doFindMatchesMultiline(e,new T(1,1,t.lineNumber,t.column),i,s,10*hde);if(o.length>0)return o[o.length-1];const r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new Z(r,e.getLineMaxColumn(r)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),l=this._findLastMatchInLine(i,a,r,s);if(l)return l;for(let c=1;c<=o;c++){const d=(o+r-c-1)%o,u=e.getLineContent(d+1),h=this._findLastMatchInLine(i,u,d+1,s);if(h)return h}return null}static _findLastMatchInLine(e,t,i,s){let o=null,r;for(e.reset(0);r=e.next(t);)o=ph(new T(i,r.index+1,i,r.index+1+r[0].length),r,s);return o}}function gde(n,e,t,i,s){if(i===0)return!0;const o=e.charCodeAt(i-1);if(n.get(o)!==0||o===13||o===10)return!0;if(s>0){const r=e.charCodeAt(i);if(n.get(r)!==0)return!0}return!1}function mde(n,e,t,i,s){if(i+s===t)return!0;const o=e.charCodeAt(i+s);if(n.get(o)!==0||o===13||o===10)return!0;if(s>0){const r=e.charCodeAt(i+s-1);if(n.get(r)!==0)return!0}return!1}function nP(n,e,t,i,s){return gde(n,e,t,i,s)&&mde(n,e,t,i,s)}class um{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(i=this._searchRegex.exec(e),!i))return null;const s=i.index,o=i[0].length;if(s===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){Ry(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=o,!this._wordSeparators||nP(this._wordSeparators,e,t,s,o))return i}while(i);return null}}class sP{static computeUnicodeHighlights(e,t,i){const s=i?i.startLineNumber:1,o=i?i.endLineNumber:e.getLineCount(),r=new H3(t),a=r.getCandidateCodePoints();let l;a==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${pde(Array.from(a))}`,"g");const c=new um(null,l),d=[];let u=!1,h,f=0,g=0,_=0;e:for(let b=s,v=o;b<=v;b++){const C=e.getLineContent(b),y=C.length;c.reset(0);do if(h=c.next(C),h){let S=h.index,x=h.index+h[0].length;if(S>0){const P=C.charCodeAt(S-1);wn(P)&&S--}if(x+1=P){u=!0;break e}d.push(new T(b,S+1,b,x+1))}}while(h)}return{ranges:d,hasMore:u,ambiguousCharacterCount:f,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(e,t){const i=new H3(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const o=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(o),a=Jr.getLocales().filter(l=>!Jr.getInstance(new Set([...t.allowedLocales,l])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}function pde(n,e){return`[${_r(n.map(i=>String.fromCodePoint(i)).join(""))}]`}class H3{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Jr.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of kl.codePoints)z3(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,o=!1;if(t)for(let r of t){const a=r.codePointAt(0),l=VL(r);s=s||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!kl.isInvisibleCharacter(a)&&(o=!0)}return!s&&o?0:this.options.invisibleCharacters&&!z3(e)&&kl.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function z3(n){return n===" "||n===` +`||n===" "}var th=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class _de extends sde{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=Cv(e.column,YW(t),this._lines[e.lineNumber-1],0);return i?new T(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,o="",r=0,a=[];return{*[Symbol.iterator](){for(;;)if(rthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const o=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>o&&(i=o,s=!0)}return s?{lineNumber:t,column:i}:e}}class hf{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new _de(et.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return th(this,void 0,void 0,function*(){const s=this._getModel(e);return s?sP.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,s){return th(this,void 0,void 0,function*(){const o=this._getModel(e),r=this._getModel(t);if(!o||!r)return null;const a=o.getLinesContent(),l=r.getLinesContent(),d=new tde(a,l,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:s}).computeDiff(),u=d.changes.length>0?!1:this._modelsAreIdentical(o,r);return{quitEarly:d.quitEarly,identical:u,changes:d.changes}})}_modelsAreIdentical(e,t){const i=e.getLineCount(),s=t.getLineCount();if(i!==s)return!1;for(let o=1;o<=i;o++){const r=e.getLineContent(o),a=t.getLineContent(o);if(r!==a)return!1}return!0}computeMoreMinimalEdits(e,t){return th(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return t;const s=[];let o;t=t.slice(0).sort((r,a)=>{if(r.range&&a.range)return T.compareRangesUsingStarts(r.range,a.range);const l=r.range?0:1,c=a.range?0:1;return l-c});for(let{range:r,text:a,eol:l}of t){if(typeof l=="number"&&(o=l),T.isEmpty(r)&&!a)continue;const c=i.getValueInRange(r);if(a=a.replace(/\r\n|\n|\r/g,i.eol),c===a)continue;if(Math.max(a.length,c.length)>hf._diffLimit){s.push({range:r,text:a});continue}const d=Xce(c,a,!1),u=i.offsetAt(T.lift(r).getStartPosition());for(const h of d){const f=i.positionAt(u+h.originalStart),g=i.positionAt(u+h.originalStart+h.originalLength),_={text:a.substr(h.modifiedStart,h.modifiedLength),range:{startLineNumber:f.lineNumber,startColumn:f.column,endLineNumber:g.lineNumber,endColumn:g.column}};i.getValueInRange(_.range)!==_.text&&s.push(_)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(e){return th(this,void 0,void 0,function*(){const t=this._getModel(e);return t?cde(t):null})}textualSuggest(e,t,i,s){return th(this,void 0,void 0,function*(){const o=new so(!0),r=new RegExp(i,s),a=new Set;e:for(let l of e){const c=this._getModel(l);if(c){for(let d of c.words(r))if(!(d===t||!isNaN(Number(d)))&&(a.add(d),a.size>hf._suggestionsLimit))break e}}return{words:Array.from(a),duration:o.elapsed()}})}computeWordRanges(e,t,i,s){return th(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return Object.create(null);const r=new RegExp(i,s),a=Object.create(null);for(let l=t.startLineNumber;lthis._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(DR(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}hf._diffLimit=1e5;hf._suggestionsLimit=1e4;typeof importScripts=="function"&&(Zi.monaco=mH());const oP=At("textResourceConfigurationService"),jH=At("textResourcePropertiesService"),na=At("logService");var wa;(function(n){n[n.Trace=0]="Trace",n[n.Debug=1]="Debug",n[n.Info=2]="Info",n[n.Warning=3]="Warning",n[n.Error=4]="Error",n[n.Critical=5]="Critical",n[n.Off=6]="Off"})(wa||(wa={}));const qH=wa.Info;class bde extends J{constructor(){super(...arguments),this.level=qH,this._onDidChangeLogLevel=this._register(new j)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class vde extends bde{constructor(e=qH){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=wa.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=wa.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=wa.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=wa.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}class Cde extends J{constructor(e){super(),this.logger=e,this._register(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}const He=At("ILanguageFeaturesService");var wde=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},H_=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},yN=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const $3=60*1e3,U3=5*60*1e3;function _h(n,e){const t=n.getModel(e);return!(!t||t.isTooLargeForSyncing())}let SN=class extends J{constructor(e,t,i,s,o){super(),this._modelService=e,this._workerManager=this._register(new Sde(this._modelService,s)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(r,a)=>_h(this._modelService,r.uri)?this._workerManager.withWorker().then(l=>l.computeLinks(r.uri)).then(l=>l&&{links:l}):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new yde(this._workerManager,t,this._modelService,s)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return _h(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(s=>s.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,s){return this._workerManager.withWorker().then(o=>o.computeDiff(e,t,i,s))}computeMoreMinimalEdits(e,t){if(vo(t)){if(!_h(this._modelService,e))return Promise.resolve(t);const i=so.create(!0),s=this._workerManager.withWorker().then(o=>o.computeMoreMinimalEdits(e,t));return s.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())),Promise.race([s,cu(1e3).then(()=>t)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return _h(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(s=>s.navigateValueSet(e,t,i))}canComputeWordRanges(e){return _h(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};SN=wde([H_(0,Fi),H_(1,oP),H_(2,na),H_(3,ws),H_(4,He)],SN);class yde{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return yN(this,void 0,void 0,function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const s=[];if(i.wordBasedSuggestionsMode==="currentDocument")_h(this._modelService,e.uri)&&s.push(e.uri);else for(const u of this._modelService.getModels())_h(this._modelService,u.uri)&&(u===e?s.unshift(u.uri):(i.wordBasedSuggestionsMode==="allDocuments"||u.getLanguageId()===e.getLanguageId())&&s.push(u.uri));if(s.length===0)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),a=r?new T(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):T.fromPositions(t),l=a.setEndPosition(t.lineNumber,t.column),d=yield(yield this._workerManager.withWorker()).textualSuggest(s,r==null?void 0:r.word,o);if(d)return{duration:d.duration,suggestions:d.words.map(u=>({kind:18,label:u,insertText:u,range:{insert:l,replace:a}}))}})}}class Sde extends J{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new Y1).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(U3/2)),this._register(this._modelService.onModelRemoved(s=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>U3&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new KH(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Lde extends J{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const s=new Y1;s.cancelAndSet(()=>this._checkStopModelSync(),Math.round($3/2)),this._register(s)}}dispose(){for(let e in this._syncedModels)Pt(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const s=i.toString();this._syncedModels[s]||this._beginModelSync(i,t),this._syncedModels[s]&&(this._syncedModelsLastUsedTime[s]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>$3&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new ue;o.add(i.onDidChangeContent(r=>{this._proxy.acceptModelChanged(s.toString(),r)})),o.add(i.onWillDispose(()=>{this._stopModelSync(s)})),o.add(vt(()=>{this._proxy.acceptRemovedModel(s)})),this._syncedModels[s]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Pt(t)}}class j3{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class IE{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class KH extends J{constructor(e,t,i,s){super(),this.languageConfigurationService=s,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new UL(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new zce(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new IE(this)))}catch(e){bN(e),this._worker=new j3(new hf(new IE(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(bN(e),this._worker=new j3(new hf(new IE(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Lde(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return yN(this,void 0,void 0,function*(){return this._disposed?Promise.reject(NR()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(s=>s.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,s){return this._withSyncedResources([e,t],!0).then(o=>o.computeDiff(e.toString(),t.toString(),i,s))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(i=>i.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,i){return yN(this,void 0,void 0,function*(){const s=yield this._withSyncedResources(e),o=i.source,r=_E(i);return s.textualSuggest(e.map(a=>a.toString()),t,o,r)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{const s=this._modelService.getModel(e);if(!s)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=o.source,a=_E(o);return i.computeWordRanges(e.toString(),t,r,a)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(s=>{const o=this._modelService.getModel(e);if(!o)return null;const r=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),a=r.source,l=_E(r);return s.navigateValueSet(e.toString(),t,i,a,l)})}dispose(){super.dispose(),this._disposed=!0}}function kde(n,e,t){return new xde(n,e,t)}class xde extends KH{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?DR(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(i=>{this._foreignModuleCreateData=null;const s=(a,l)=>e.fmr(a,l),o=(a,l)=>function(){const c=Array.prototype.slice.call(arguments,0);return l(a,c)},r={};for(const a of i)r[a]=o(a,s);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}class yn{constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}static createEmpty(e,t){const i=yn.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new yn(s,e,t)}equals(e){return e instanceof yn?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const s=t<<1,o=s+(i<<1);for(let r=s;r0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],i=ms.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return ms.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return ms.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return ms.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[(e<<1)+1];return ms.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return ms.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return yn.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new rP(this,e,t,i)}static convertToEndOffset(e,t){const s=(e.length>>>1)-1;for(let o=0;o>>1)-1;for(;it&&(s=o)}return i}withInserted(e){if(e.length===0)return this;let t=0,i=0,s="";const o=new Array;let r=0;for(;;){const a=tr){s+=this._text.substring(r,l.offset);const c=this._tokens[(t<<1)+1];o.push(s.length,c),r=l.offset}s+=l.text,o.push(s.length,l.tokenMetadata),i++}else break}return new yn(new Uint32Array(o),s,this._languageIdCodec)}}yn.defaultTokenMetadata=(16384|2<<23)>>>0;class rP{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let o=this._firstTokenIndex,r=e.getCount();o=i);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof rP?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class $o{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length,s=t.length;if(i!==s)return!1;for(let o=0;o=o||(a[l++]=new $o(Math.max(1,c.startColumn-s+1),Math.min(r+1,c.endColumn-s+1),c.className,c.type));return a}static filter(e,t,i,s){if(e.length===0)return[];const o=[];let r=0;for(let a=0,l=e.length;at||d.isEmpty()&&(c.type===0||c.type===3))continue;const u=d.startLineNumber===t?d.startColumn:i,h=d.endLineNumber===t?d.endColumn:s;o[r++]=new $o(u,h,c.inlineClassName,c.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=$o._typeCompare(e.type,t.type);return i!==0?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class Ede{static normalize(e,t){if(t.length===0)return[];const i=[],s=new Wy;let o=0;for(let r=0,a=t.length;r1){const _=e.charCodeAt(c-2);wn(_)&&c--}if(d>1){const _=e.charCodeAt(d-2);wn(_)&&d--}const f=c-1,g=d-2;o=s.consumeLowerThan(f,o,i),s.count===0&&(o=f),s.insert(g,u,h)}return s.consumeLowerThan(1073741824,o,i),i}}class Mn{constructor(e,t,i){this._linePartBrand=void 0,this.endIndex=e,this.type=t,this.metadata=i}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class Dde{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class eg{constructor(e,t,i,s,o,r,a,l,c,d,u,h,f,g,_,b,v,C,y){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort($o.compare),this.tabSize=d,this.startVisibleColumn=u,this.spaceWidth=h,this.stopRenderingLineAfter=_,this.renderWhitespace=b==="all"?4:b==="boundary"?1:b==="selection"?2:b==="trailing"?3:0,this.renderControlCharacters=v,this.fontLigatures=C,this.selectionsOnLine=y&&y.sort((A,E)=>A.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}setColumnInfo(e,t,i,s){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._absoluteOffsets[e-1]=s+i}getAbsoluteOffset(e){return this._absoluteOffsets.length===0?0:this._absoluteOffsets[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=rl.getPartIndex(t),s=rl.getCharIndex(t);return new aP(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(this.length===0)return 0;const s=(e<<16|i<<0)>>>0;let o=0,r=this.length-1;for(;o+1>>1,b=this._data[_];if(b===s)return _;b>s?r=_:o=_}if(o===r)return o;const a=this._data[o],l=this._data[r];if(a===s)return o;if(l===s)return r;const c=rl.getPartIndex(a),d=rl.getCharIndex(a),u=rl.getPartIndex(l);let h;c!==u?h=t:h=rl.getCharIndex(l);const f=i-d,g=h-i;return f<=g?o:r}}class LN{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function KL(n,e){if(n.lineContent.length===0){if(n.lineDecorations.length>0){e.appendASCIIString("");let t=0,i=0,s=0;for(const r of n.lineDecorations)(r.type===1||r.type===2)&&(e.appendASCIIString(''),r.type===1&&(s|=1,t++),r.type===2&&(s|=2,i++));e.appendASCIIString("");const o=new rl(1,t+i);return o.setColumnInfo(1,t,0,0),new LN(o,!1,s)}return e.appendASCIIString(""),new LN(new rl(0,0),!1,0)}return Fde(Tde(n),e)}class Ide{constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function GL(n){const e=df(1e4),t=KL(n,e);return new Ide(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class Nde{constructor(e,t,i,s,o,r,a,l,c,d,u,h,f,g,_){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=c,this.startVisibleColumn=d,this.containsRTL=u,this.spaceWidth=h,this.renderSpaceCharCode=f,this.renderWhitespace=g,this.renderControlCharacters=_}}function Tde(n){const e=n.lineContent;let t,i;n.stopRenderingLineAfter!==-1&&n.stopRenderingLineAfter0){for(let r=0,a=n.lineDecorations.length;r0&&(i[s++]=new Mn(e,"",0));for(let o=0,r=n.getCount();o=t){i[s++]=new Mn(t,l,0);break}i[s++]=new Mn(a,l,0)}return i}function Mde(n,e,t){let i=0;const s=[];let o=0;if(t)for(let r=0,a=e.length;r=50&&(s[o++]=new Mn(h+1,d,u),f=h+1,h=-1);f!==c&&(s[o++]=new Mn(c,d,u))}else s[o++]=l;i=c}else for(let r=0,a=e.length;r50){const u=l.type,h=l.metadata,f=Math.ceil(d/50);for(let g=1;g=8234&&n<=8238||n>=8294&&n<=8297||n>=8206&&n<=8207||n===1564}function Rde(n,e){const t=[];let i=new Mn(0,"",0),s=0;for(const o of e){const r=o.endIndex;for(;si.endIndex&&(i=new Mn(s,o.type,o.metadata),t.push(i)),i=new Mn(s+1,"mtkcontrol",o.metadata),t.push(i))}s>i.endIndex&&(i=new Mn(r,o.type,o.metadata),t.push(i))}return t}function Pde(n,e,t,i){const s=n.continuesWithWrappedLine,o=n.fauxIndentLength,r=n.tabSize,a=n.startVisibleColumn,l=n.useMonospaceOptimizations,c=n.selectionsOnLine,d=n.renderWhitespace===1,u=n.renderWhitespace===3,h=n.renderSpaceWidth!==n.spaceWidth,f=[];let g=0,_=0,b=i[_].type,v=i[_].endIndex;const C=i.length;let y=!1,S=Vs(e),x;S===-1?(y=!0,S=t,x=t):x=Ll(e);let A=!1,E=0,D=c&&c[E],P=a%r;for(let z=o;z=D.endOffset&&(E++,D=c&&c[E]);let Q;if(zx)Q=!0;else if(ee===9)Q=!0;else if(ee===32)if(d)if(A)Q=!0;else{const Ee=z+1z),Q&&u&&(Q=y||z>x),A){if(!Q||!l&&P>=r){if(h){const Ee=g>0?f[g-1].endIndex:o;for(let ye=Ee+1;ye<=z;ye++)f[g++]=new Mn(ye,"mtkw",1)}else f[g++]=new Mn(z,"mtkw",1);P=P%r}}else(z===v||Q&&z>o)&&(f[g++]=new Mn(z,b,0),P=P%r);for(ee===9?P=r:lu(ee)?P+=2:P++,A=Q;z===v&&(_++,_0?e.charCodeAt(t-1):0,ee=t>1?e.charCodeAt(t-2):0;z===32&&ee!==32&&ee!==9||($=!0)}else $=!0;if($)if(h){const z=g>0?f[g-1].endIndex:o;for(let ee=z+1;ee<=t;ee++)f[g++]=new Mn(ee,"mtkw",1)}else f[g++]=new Mn(t,"mtkw",1);else f[g++]=new Mn(t,b,0);return f}function Ode(n,e,t,i){i.sort($o.compare);const s=Ede.normalize(n,i),o=s.length;let r=0;const a=[];let l=0,c=0;for(let u=0,h=t.length;uc&&(c=v.startOffset,a[l++]=new Mn(c,_,b)),v.endOffset+1<=g)c=v.endOffset+1,a[l++]=new Mn(c,_+" "+v.className,b|v.metadata),r++;else{c=g,a[l++]=new Mn(c,_+" "+v.className,b|v.metadata);break}}g>c&&(c=g,a[l++]=new Mn(c,_,b))}const d=t[t.length-1].endIndex;if(r'):e.appendASCIIString("");for(let P=0,$=l.length;P<$;P++){D+=E;const z=l[P],ee=z.endIndex,Q=z.type,Ee=_!==0&&z.isWhitespace(),ye=Ee&&!t&&(Q==="mtkw"||!s),ke=y===ee&&z.isPseudoAfter();if(x=0,e.appendASCIIString('=c&&(tt+=yt)}}for(ye&&(e.appendASCIIString(' style="width:'),e.appendASCIIString(String(f*Se)),e.appendASCIIString('px"')),e.appendASCII(62);y1?e.write1(8594):e.write1(65515);for(let Ke=2;Ke<=tt;Ke++)e.write1(160)}else tt=1,e.write1(g);x+=tt,y>=c&&(S+=tt)}E=Se}else{let Se=0;for(e.appendASCII(62);y=c&&(S+=Ke)}E=Se}ke?A++:A=0,y>=r&&!C&&z.isPseudoAfter()&&(C=!0,v.setColumnInfo(y+1,P,x,D)),e.appendASCIIString("")}return C||v.setColumnInfo(r+1,l.length-1,x,D),a&&e.appendASCIIString(""),e.appendASCIIString(""),new LN(v,h,s)}function Bde(n){return n.toString(16).toUpperCase().padStart(4,"0")}class K3{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=i|0,this.height=s|0}}class Vde{constructor(e,t){this.tabSize=e,this.data=t}}class lP{constructor(e,t,i,s,o,r,a){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=o,this.tokens=r,this.inlineDecorations=a}}class Zo{constructor(e,t,i,s,o,r,a,l,c,d){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=Zo.isBasicASCII(i,r),this.containsRTL=Zo.containsRTL(i,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=d}static isBasicASCII(e,t){return t?VL(e):!0}static containsRTL(e,t,i){return!t&&i?BL(e):!1}}class Ab{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class Wde{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new Ab(new T(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class YH{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class ZH{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function Hde(n){return Array.isArray(n)}function zde(n){return!Hde(n)}function XH(n){return typeof n=="string"}function G3(n){return!XH(n)}function Qg(n){return!n}function Gd(n,e){return n.ignoreCase&&e?e.toLowerCase():e}function Y3(n){return n.replace(/[&<>'"_]/g,"-")}function $de(n,e){console.log(`${n.languageId}: ${e}`)}function fi(n,e){return new Error(`${n.languageId}: ${e}`)}function Ad(n,e,t,i,s){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let r=null;return e.replace(o,function(a,l,c,d,u,h,f,g,_){return Qg(c)?Qg(d)?!Qg(u)&&u0;){const i=n.tokenizer[t];if(i)return i;const s=t.lastIndexOf(".");s<0?t=null:t=t.substr(0,s)}return null}function Ude(n,e){let t=e;for(;t&&t.length>0;){if(n.stateNames[t])return!0;const s=t.lastIndexOf(".");s<0?t=null:t=t.substr(0,s)}return!1}const QH=5;class Iv{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new Rm(e,t);let i=Rm.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new Rm(e,t),this._entries[i]=s,s)}}Iv._INSTANCE=new Iv(QH);class Rm{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return Rm._equals(this,e)}push(e){return Iv.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Iv.create(this.parent,e)}}class hm{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new hm(this.languageId,this.state)}}class Md{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(t!==null)return new Mb(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new Mb(e,t);const i=Rm.getStackElementId(e);let s=this._entries[i];return s||(s=new Mb(e,null),this._entries[i]=s,s)}}Md._INSTANCE=new Md(QH);class Mb{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:Md.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof Mb)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class jde{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new wv(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const o=i.languageId,r=i.state,a=Ri.get(o);if(!a)return this.enterLanguage(o),this.emit(s,""),r;const l=a.tokenize(e,t,r);if(s!==0)for(const c of l.tokens)this._tokens.push(new wv(c.offset+s,c.type,c.language));else this._tokens=this._tokens.concat(l.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,l.endState}finalize(e){return new FR(this._tokens,e)}}class Hy{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const s=e!==null?e.length:0,o=t.length,r=i!==null?i.length:0;if(s===0&&o===0&&r===0)return new Uint32Array(0);if(s===0&&o===0)return i;if(o===0&&r===0)return e;const a=new Uint32Array(s+o+r);e!==null&&a.set(e);for(let l=0;l{if(o)return;let a=!1;for(let l=0,c=r.changedLanguages.length;l{})}}getInitialState(){const e=Iv.create(null,this._lexer.start);return Md.create(e,null)}tokenize(e,t,i){const s=new jde,o=this._tokenize(e,t,i,s);return s.finalize(o)}tokenizeEncoded(e,t,i){const s=new Hy(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,s);return s.finalize(o)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=Q0(this._lexer,t.stack.state),!i))throw fi(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,o=!1;for(const r of i){if(!G3(r.action)||r.action.nextEmbedded!=="@pop")continue;o=!0;let a=r.regex;const l=r.regex.source;if(l.substr(0,4)==="^(?:"&&l.substr(l.length-1,1)===")"){const d=(a.ignoreCase?"i":"")+(a.unicode?"u":"");a=new RegExp(l.substr(4,l.length-5),d)}const c=e.search(a);c===-1||c!==0&&r.matchOnlyAtLineStart||(s===-1||c0&&o.nestedLanguageTokenize(a,!1,i.embeddedLanguageData,s);const l=e.substring(r);return this._myTokenize(l,t,i,s+r,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,o){o.enterLanguage(this._languageId);const r=e.length,a=t&&this._lexer.includeLF?e+` +`:e,l=a.length;let c=i.embeddedLanguageData,d=i.stack,u=0,h=null,f=!0;for(;f||u=l)break;f=!1;let P=this._lexer.tokenizer[v];if(!P&&(P=Q0(this._lexer,v),!P))throw fi(this._lexer,"tokenizer state is not defined: "+v);let $=a.substr(u);for(const z of P)if((u===0||!z.matchOnlyAtLineStart)&&(C=$.match(z.regex),C)){y=C[0],S=z.action;break}}if(C||(C=[""],y=""),S||(u=this._lexer.maxStack)throw fi(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(v)}else if(S.next==="@pop"){if(d.depth<=1)throw fi(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(x));d=d.pop()}else if(S.next==="@popall")d=d.popall();else{let P=Ad(this._lexer,S.next,y,C,v);if(P[0]==="@"&&(P=P.substr(1)),Q0(this._lexer,P))d=d.push(P);else throw fi(this._lexer,"trying to set a next state '"+P+"' that is undefined in rule: "+this._safeRuleName(x))}}S.log&&typeof S.log=="string"&&$de(this._lexer,this._lexer.languageId+": "+Ad(this._lexer,S.log,y,C,v))}if(E===null)throw fi(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(x));const D=P=>{const $=this._languageService.getLanguageIdByLanguageName(P)||this._languageService.getLanguageIdByMimeType(P)||P,z=this._getNestedEmbeddedLanguageData($);if(u0)throw fi(this._lexer,"groups cannot be nested: "+this._safeRuleName(x));if(C.length!==E.length+1)throw fi(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(x));let P=0;for(let $=1;$n});class cP{static colorizeElement(e,t,i,s){s=s||{};const o=s.theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(r)||r;e.setTheme(o);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+o;const c=d=>{var u;const h=(u=TE==null?void 0:TE.createHTML(d))!==null&&u!==void 0?u:d;i.innerHTML=h};return this.colorize(t,l||"",a,s).then(c,d=>console.error(d))}static colorize(e,t,i,s){return Kde(this,void 0,void 0,function*(){const o=e.languageIdCodec;let r=4;s&&typeof s.tabSize=="number"&&(r=s.tabSize),qR(t)&&(t=t.substr(1));const a=Al(t);if(!e.isRegisteredLanguageId(i))return Z3(a,r,o);const l=yield Ri.getOrCreate(i);return l?Gde(a,r,l,o):Z3(a,r,o)})}static colorizeLine(e,t,i,s,o=4){const r=Zo.isBasicASCII(e,t),a=Zo.containsRTL(e,r,i);return GL(new eg(!1,!0,e,!1,r,a,0,s,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.forceTokenization(t);const r=e.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,i)}}function Gde(n,e,t,i){return new Promise((s,o)=>{const r=()=>{const a=Yde(n,e,t,i);if(t instanceof Z1){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(r,o);return}}s(a)};r()})}function Z3(n,e,t){let i=[];const o=new Uint32Array(2);o[0]=0,o[1]=16793600;for(let r=0,a=n.length;r")}return i.join("")}function Yde(n,e,t,i){let s=[],o=t.getInitialState();for(let r=0,a=n.length;r"),o=c.endState}return s.join("")}const YL={clipboard:{writeText:xa||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:xa||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>xa||YR?0:navigator.keyboard||ea?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function kN(n,e){if(n===0)return null;const t=(n&65535)>>>0,i=(n&4294901760)>>>16;return i!==0?new zy([AE(t,e),AE(i,e)]):new zy([AE(t,e)])}function AE(n,e){const t=!!(n&2048),i=!!(n&256),s=e===2?i:t,o=!!(n&1024),r=!!(n&512),a=e===2?t:i,l=n&255;return new ff(s,o,r,a,l)}class ff{constructor(e,t,i,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new zy([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class zy{constructor(e){if(e.length===0)throw Ea("parts");this.parts=e}}class Zde{constructor(e,t,i,s,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=o,this.keyAriaLabel=r}}class Xde{}function Qde(n){if(n.charCode){let t=String.fromCharCode(n.charCode).toUpperCase();return Ih.fromString(t)}const e=n.keyCode;if(e===3)return 7;if(Yo){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(wt&&e===224)return 57}else if(qd){if(e===91)return 57;if(wt&&e===93)return 57;if(!wt&&e===92)return 57}return lH[e]||0}const Jde=wt?256:2048,eue=512,tue=1024,iue=wt?2048:256;class Si{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=Qde(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Jde),this.altKey&&(t|=eue),this.shiftKey&&(t|=tue),this.metaKey&&(t|=iue),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new ff(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let xN=!1,Rg=null;function nue(n){if(!n.parent||n.parent===n)return null;try{let e=n.location,t=n.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return xN=!0,null}catch{return xN=!0,null}return n.parent}class EN{static getSameOriginWindowChain(){if(!Rg){Rg=[];let e=window,t;do t=nue(e),t?Rg.push({window:e,iframeElement:e.frameElement||null}):Rg.push({window:e,iframeElement:null}),e=t;while(e)}return Rg.slice(0)}static hasDifferentOriginAncestor(){return Rg||this.getSameOriginWindowChain(),xN}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,s=0,o=this.getSameOriginWindowChain();for(const r of o){if(i+=r.window.scrollY,s+=r.window.scrollX,r.window===t||!r.iframeElement)break;let a=r.iframeElement.getBoundingClientRect();i+=a.top,s+=a.left}return{top:i,left:s}}}class dr{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=EN.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class hp{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){let s=e,o=e;if(typeof s.wheelDeltaY<"u")this.deltaY=s.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS<"u"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Yo&&!wt?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof s.wheelDeltaX<"u")ea&&qn?this.deltaX=-(s.wheelDeltaX/120):this.deltaX=s.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS<"u"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const r=e;r.deltaMode===r.DOM_DELTA_LINE?Yo&&!wt?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}var mt;(function(n){n.inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote",n.vscodeRemoteResource="vscode-remote-resource",n.userData="vscode-userdata",n.vscodeCustomEditor="vscode-custom-editor",n.vscodeNotebook="vscode-notebook",n.vscodeNotebookCell="vscode-notebook-cell",n.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",n.vscodeNotebookCellOutput="vscode-notebook-cell-output",n.vscodeInteractive="vscode-interactive",n.vscodeInteractiveInput="vscode-interactive-input",n.vscodeSettings="vscode-settings",n.vscodeWorkspaceTrust="vscode-workspace-trust",n.vscodeTerminal="vscode-terminal",n.webviewPanel="webview-panel",n.vscodeWebview="vscode-webview",n.extension="extension",n.vscodeFileResource="vscode-file",n.tmp="tmp",n.vsls="vsls"})(mt||(mt={}));const sue="tkn";class oue{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&(i=`[${i}]`);const s=this._ports[t],o=this._connectionTokens[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(r+=`&${sue}=${encodeURIComponent(o)}`),et.from({scheme:Ou?this._preferredWebSchema:mt.vscodeRemoteResource,authority:`${i}:${s}`,path:"/vscode-remote-resource",query:r})}}const JH=new oue;class Nv{asBrowserUri(e,t){const i=this.toUri(e,t);return i.scheme===mt.vscodeRemote?JH.rewrite(i):i.scheme===mt.file&&(xa||qre&&Zi.origin===`${mt.vscodeFileResource}://${Nv.FALLBACK_AUTHORITY}`)?i.with({scheme:mt.vscodeFileResource,authority:i.authority||Nv.FALLBACK_AUTHORITY,query:null,fragment:null}):i}toUri(e,t){return et.isUri(e)?e:et.parse(t.toUrl(e))}}Nv.FALLBACK_AUTHORITY="vscode-app";const ez=new Nv;function Sn(n){for(;n.firstChild;)n.firstChild.remove()}function dP(n){var e;return(e=n==null?void 0:n.isConnected)!==null&&e!==void 0?e:!1}class tz{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function de(n,e,t,i){return new tz(n,e,t,i)}function iz(n){return function(e){return n(new dr(e))}}function rue(n){return function(e){return n(new Si(e))}}let jn=function(e,t,i,s){let o=i;return t==="click"||t==="mousedown"?o=iz(i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=rue(i)),de(e,t,o,s)},aue=function(e,t,i){let s=iz(t);return uP(e,s,i)};function uP(n,e,t){return de(n,Ta&&YL.pointerEvents?Xe.POINTER_DOWN:Xe.MOUSE_DOWN,e,t)}function nz(n,e,t){return de(n,Ta&&YL.pointerEvents?Xe.POINTER_UP:Xe.MOUSE_UP,e,t)}function hP(n,e){return de(n,"mouseout",t=>{let i=t.relatedTarget;for(;i&&i!==n;)i=i.parentNode;i!==n&&e(t)})}function lue(n,e){return de(n,"pointerout",t=>{let i=t.relatedTarget;for(;i&&i!==n;)i=i.parentNode;i!==n&&e(t)})}function la(n,e,t){let i=null;const s=l=>a.fire(l),o=()=>{i||(i=new tz(n,e,s,t))},r=()=>{i&&(i.dispose(),i=null)},a=new j({onFirstListenerAdd:o,onLastListenerRemove:r});return a}let ME=null;function cue(n){if(!ME){const e=t=>setTimeout(()=>t(new Date().getTime()),0);ME=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return ME.call(self,n)}let sz,Ma;class RE{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){dt(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let n=[],e=null,t=!1,i=!1,s=()=>{for(t=!1,e=n,n=[],i=!0;e.length>0;)e.sort(RE.sort),e.shift().execute();i=!1};Ma=(o,r=0)=>{let a=new RE(o,r);return n.push(a),t||(t=!0,cue(s)),a},sz=(o,r)=>{if(i){let a=new RE(o,r);return e.push(a),a}else return Ma(o,r)}})();const due=8,uue=function(n,e){return e};class hue extends J{constructor(e,t,i,s=uue,o=due){super();let r=null,a=0,l=this._register(new xo),c=()=>{a=new Date().getTime(),i(r),r=null};this._register(de(e,t,d=>{r=s(r,d);let u=new Date().getTime()-a;u>=o?(l.cancel(),c()):l.setIfNotSet(c,o-u)}))}}function fP(n,e,t,i,s){return new hue(n,e,t,i,s)}function gP(n){return document.defaultView.getComputedStyle(n,null)}function ZL(n){if(n!==document.body)return new oi(n.clientWidth,n.clientHeight);if(Ta&&window.visualViewport)return new oi(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new oi(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new oi(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new oi(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Hi{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let s=gP(e),o="0";return s&&(s.getPropertyValue?o=s.getPropertyValue(t):o=s.getAttribute(i)),Hi.convertToPixels(e,o)}static getBorderLeftWidth(e){return Hi.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Hi.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Hi.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Hi.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Hi.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Hi.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Hi.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Hi.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Hi.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Hi.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Hi.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Hi.getDimension(e,"margin-bottom","marginBottom")}}class oi{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new oi(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof oi?e:new oi(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}oi.None=new oi(0,0);function oz(n){let e=n.offsetParent,t=n.offsetTop,i=n.offsetLeft;for(;(n=n.parentNode)!==null&&n!==document.body&&n!==document.documentElement;){t-=n.scrollTop;const s=az(n)?null:gP(n);s&&(i-=s.direction!=="rtl"?n.scrollLeft:-n.scrollLeft),n===e&&(i+=Hi.getBorderLeftWidth(n),t+=Hi.getBorderTopWidth(n),t+=n.offsetTop,i+=n.offsetLeft,e=n.offsetParent)}return{left:i,top:t}}function fue(n,e,t){typeof e=="number"&&(n.style.width=`${e}px`),typeof t=="number"&&(n.style.height=`${t}px`)}function Qn(n){let e=n.getBoundingClientRect();return{left:e.left+Rc.scrollX,top:e.top+Rc.scrollY,width:e.width,height:e.height}}const Rc=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function Vr(n){let e=Hi.getMarginLeft(n)+Hi.getMarginRight(n);return n.offsetWidth+e}function PE(n){let e=Hi.getBorderLeftWidth(n)+Hi.getBorderRightWidth(n),t=Hi.getPaddingLeft(n)+Hi.getPaddingRight(n);return n.offsetWidth-e-t}function gue(n){let e=Hi.getBorderTopWidth(n)+Hi.getBorderBottomWidth(n),t=Hi.getPaddingTop(n)+Hi.getPaddingBottom(n);return n.offsetHeight-e-t}function DN(n){let e=Hi.getMarginTop(n)+Hi.getMarginBottom(n);return n.offsetHeight+e}function Pc(n,e){for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function rz(n,e,t){for(;n&&n.nodeType===n.ELEMENT_NODE;){if(n.classList.contains(e))return n;if(t){if(typeof t=="string"){if(n.classList.contains(t))return null}else if(n===t)return null}n=n.parentNode}return null}function X3(n,e,t){return!!rz(n,e,t)}function az(n){return n&&!!n.host&&!!n.mode}function Tv(n){return!!du(n)}function du(n){for(;n.parentNode;){if(n===document.body)return null;n=n.parentNode}return az(n)?n:null}function Pm(){let n=document.activeElement;for(;n!=null&&n.shadowRoot;)n=n.shadowRoot.activeElement;return n}function Cr(n=document.getElementsByTagName("head")[0]){let e=document.createElement("style");return e.type="text/css",e.media="screen",n.appendChild(e),e}let OE=null;function lz(){return OE||(OE=Cr()),OE}function mue(n){var e,t;return!((e=n==null?void 0:n.sheet)===null||e===void 0)&&e.rules?n.sheet.rules:!((t=n==null?void 0:n.sheet)===null||t===void 0)&&t.cssRules?n.sheet.cssRules:[]}function IN(n,e,t=lz()){!t||!e||t.sheet.insertRule(n+"{"+e+"}",0)}function Q3(n,e=lz()){if(!e)return;let t=mue(e),i=[];for(let s=0;s=0;s--)e.sheet.deleteRule(i[s])}function cz(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"}const Xe={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:qd?"webkitAnimationStart":"animationstart",ANIMATION_END:qd?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:qd?"webkitAnimationIteration":"animationiteration"},Yt={stop:function(n,e){n.preventDefault?n.preventDefault():n.returnValue=!1,e&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0)}};function pue(n){let e=[];for(let t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)e[t]=n.scrollTop,n=n.parentNode;return e}function _ue(n,e){for(let t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)n.scrollTop!==e[t]&&(n.scrollTop=e[t]),n=n.parentNode}class $y extends J{constructor(e){super(),this._onDidFocus=this._register(new j),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new j),this.onDidBlur=this._onDidBlur.event;let t=$y.hasFocusWithin(e),i=!1;const s=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{$y.hasFocusWithin(e)!==t&&(t?o():s())},this._register(de(e,Xe.FOCUS,s,!0)),this._register(de(e,Xe.BLUR,o,!0)),this._register(de(e,Xe.FOCUS_IN,()=>this._refreshStateHandler())),this._register(de(e,Xe.FOCUS_OUT,()=>this._refreshStateHandler()))}static hasFocusWithin(e){const t=du(e),i=t?t.activeElement:document.activeElement;return Pc(i,e)}}function fp(n){return new $y(n)}function re(n,...e){if(n.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function bue(n,e){return n.insertBefore(e,n.firstChild),e}function uu(n,...e){n.innerText="",re(n,...e)}const vue=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Av;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.SVG="http://www.w3.org/2000/svg"})(Av||(Av={}));function dz(n,e,t,...i){let s=vue.exec(e);if(!s)throw new Error("Bad use of emmet");t=Object.assign({},t||{});let o=s[1]||"div",r;return n!==Av.HTML?r=document.createElementNS(n,o):r=document.createElement(o),s[3]&&(r.id=s[3]),s[4]&&(r.className=s[4].replace(/\./g," ").trim()),Object.keys(t).forEach(a=>{const l=t[a];typeof l>"u"||(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function le(n,e,...t){return dz(Av.HTML,n,e,...t)}le.SVG=function(n,e,...t){return dz(Av.SVG,n,e,...t)};function Bo(...n){for(let e of n)e.style.display="",e.removeAttribute("aria-hidden")}function eo(...n){for(let e of n)e.style.display="none",e.setAttribute("aria-hidden","true")}function Cue(n){return Array.prototype.slice.call(document.getElementsByTagName(n),0)}function J3(n){const e=window.devicePixelRatio*n;return Math.max(1,Math.floor(e))/window.devicePixelRatio}function uz(n){window.open(n,"_blank","noopener")}function wue(n){const e=()=>{n(),t=Ma(e)};let t=Ma(e);return vt(()=>t.dispose())}JH.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function gf(n){return n?`url('${ez.asBrowserUri(n).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function e7(n){return`'${n.replace(/'/g,"%27")}'`}class Nh extends j{constructor(){super(),this._subscriptions=new ue,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(de(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new Si(e);if(!(t.keyCode===6&&e.repeat)){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(t.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(de(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(de(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(de(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(de(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(de(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Nh.instance||(Nh.instance=new Nh),Nh.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function yue(n,e){window.matchMedia(n).addEventListener("change",e)}const t7=2e4;let bh,Mw,NN,Rw,TN;function Sue(n){bh=document.createElement("div"),bh.className="monaco-aria-container";const e=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),bh.appendChild(i),i};Mw=e(),NN=e();const t=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("role","complementary"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),bh.appendChild(i),i};Rw=t(),TN=t(),n.appendChild(bh)}function Jn(n){bh&&(Mw.textContent!==n?(Sn(NN),jy(Mw,n)):(Sn(Mw),jy(NN,n)))}function Uy(n){bh&&(wt?Jn(n):Rw.textContent!==n?(Sn(TN),jy(Rw,n)):(Sn(Rw),jy(TN,n)))}function jy(n,e){Sn(n),e.length>t7&&(e=e.substr(0,t7)),n.textContent=e,n.style.visibility="hidden",n.style.visibility="visible"}const mP=At("markerDecorationsService"),ro=At("textModelService");var qy=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class Co extends J{constructor(e,t="",i="",s=!0,o){super(),this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return qy(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class gp extends J{constructor(){super(...arguments),this._onBeforeRun=this._register(new j),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new j),this.onDidRun=this._onDidRun.event}run(e,t){return qy(this,void 0,void 0,function*(){if(!e.enabled)return;this._onBeforeRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(s){i=s}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return qy(this,void 0,void 0,function*(){yield e.run(t)})}}class gr extends Co{constructor(e){super(gr.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}gr.ID="vs.actions.separator";class XL{constructor(e,t,i,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=s,this._actions=i}get actions(){return this._actions}dispose(){}run(){return qy(this,void 0,void 0,function*(){})}}class QL extends Co{constructor(){super(QL.ID,m("submenu.empty","(empty)"),void 0,!1)}}QL.ID="vs.actions.empty";const sn=At("commandService"),Ot=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new j,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,e){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:n,handler:e})}if(n.description){const r=[];for(let l of n.description.args)r.push(l.constraint);const a=n.handler;n.handler=function(l,...c){return lae(c,r),a(l,...c)}}const{id:t}=n;let i=this._commands.get(t);i||(i=new zo,this._commands.set(t,i));let s=i.unshift(n),o=vt(()=>{s();const r=this._commands.get(t);r!=null&&r.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(n,e){return Ot.registerCommand(n,(t,...i)=>t.get(sn).executeCommand(e,...i))}getCommand(n){const e=this._commands.get(n);if(!(!e||e.isEmpty()))return Rt.first(e)}getCommands(){const n=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&n.set(e,t)}return n}};Ot.registerCommand("noop",()=>{});const vs=new Map;vs.set("false",!1);vs.set("true",!0);vs.set("isMac",wt);vs.set("isLinux",Ds);vs.set("isWindows",qn);vs.set("isWeb",Ou);vs.set("isMacNative",wt&&!Ou);vs.set("isEdge",Zre);vs.set("isFirefox",Gre);vs.set("isChrome",KW);vs.set("isSafari",Yre);const Lue=Object.prototype.hasOwnProperty;class xe{static has(e){return hu.create(e)}static equals(e,t){return mp.create(e,t)}static regex(e,t){return Ky.create(e,t)}static not(e){return mf.create(e)}static and(...e){return Bd.create(e,null)}static or(...e){return xc.create(e,null,!0)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let i=e.split("||");return xc.create(i.map(s=>this._deserializeAndExpression(s,t)),null,!0)}static _deserializeAndExpression(e,t){let i=e.split("&&");return Bd.create(i.map(s=>this._deserializeOne(s,t)),null)}static _deserializeOne(e,t){if(e=e.trim(),e.indexOf("!=")>=0){let i=e.split("!=");return JL.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("==")>=0){let i=e.split("==");return mp.create(i[0].trim(),this._deserializeValue(i[1],t))}if(e.indexOf("=~")>=0){let i=e.split("=~");return Ky.create(i[0].trim(),this._deserializeRegexValue(i[1],t))}if(e.indexOf(" in ")>=0){let i=e.split(" in ");return pP.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const i=e.split(">=");return ik.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const i=e.split(">");return tk.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const i=e.split("<=");return sk.create(i[0].trim(),i[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const i=e.split("<");return nk.create(i[0].trim(),i[1].trim())}return/^\!\s*/.test(e)?mf.create(e.substr(1).trim()):hu.create(e)}static _deserializeValue(e,t){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;let i=/^'([^']*)'$/.exec(e);return i?i[1].trim():e}static _deserializeRegexValue(e,t){if(_H(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let i=e.indexOf("/"),s=e.lastIndexOf("/");if(i===s||i<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(i+1,s),r=e[s+1]==="i"?"i":"";try{return new RegExp(o,r)}catch(a){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${a}`);return console.warn(`bad regexp-value '${e}', parse error: ${a}`),null}}}function kue(n,e){const t=n?n.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function Om(n,e){return n.cmp(e)}class Xo{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return wr.INSTANCE}}Xo.INSTANCE=new Xo;class wr{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Xo.INSTANCE}}wr.INSTANCE=new wr;class hu{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const i=vs.get(e);return typeof i=="boolean"?i?wr.INSTANCE:Xo.INSTANCE:new hu(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:fz(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=vs.get(this.key);return typeof e=="boolean"?e?wr.INSTANCE:Xo.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=mf.create(this.key,this)),this.negated}}class mp{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}static create(e,t,i=null){if(typeof t=="boolean")return t?hu.create(e,i):mf.create(e,i);const s=vs.get(e);return typeof s=="boolean"?t===(s?"true":"false")?wr.INSTANCE:Xo.INSTANCE:new mp(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=vs.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?wr.INSTANCE:Xo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=JL.create(this.key,this.value,this)),this.negated}}class pP{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new pP(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.indexOf(i)>=0:typeof i=="string"&&typeof t=="object"&&t!==null?Lue.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=_P.create(this)),this.negated}}class _P{constructor(e){this._actual=e,this.type=11}static create(e){return new _P(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class JL{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}static create(e,t,i=null){if(typeof t=="boolean")return t?mf.create(e,i):hu.create(e,i);const s=vs.get(e);return typeof s=="boolean"?t===(s?"true":"false")?Xo.INSTANCE:wr.INSTANCE:new JL(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=vs.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Xo.INSTANCE:wr.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=mp.create(this.key,this.value,this)),this.negated}}class mf{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const i=vs.get(e);return typeof i=="boolean"?i?Xo.INSTANCE:wr.INSTANCE:new mf(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:fz(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=vs.get(this.key);return typeof e=="boolean"?e?Xo.INSTANCE:wr.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=hu.create(this.key,this)),this.negated}}function ek(n,e){if(typeof n=="string"){const t=parseFloat(n);isNaN(t)||(n=t)}return typeof n=="string"||typeof n=="number"?e(n):Xo.INSTANCE}class tk{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}static create(e,t,i=null){return ek(t,s=>new tk(e,s,i))}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sk.create(this.key,this.value,this)),this.negated}}class ik{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}static create(e,t,i=null){return ek(t,s=>new ik(e,s,i))}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=nk.create(this.key,this.value,this)),this.negated}}class nk{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}static create(e,t,i=null){return ek(t,s=>new nk(e,s,i))}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new sk(e,s,i))}cmp(e){return e.type!==this.type?this.type-e.type:tg(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=tk.create(this.key,this.value,this)),this.negated}}class Ky{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new Ky(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=bP.create(this)),this.negated}}class bP{constructor(e){this._actual=e,this.type=8}static create(e){return new bP(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function hz(n){let e=null;for(let t=0,i=n.length;te.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const o=i[i.length-1];if(o.type!==9)break;i.pop();const r=i.pop(),a=i.length===0,l=xc.create(o.expr.map(c=>Bd.create([c,r],null)),null,a);l&&(i.push(l),i.sort(Om))}return i.length===1?i[0]:new Bd(i,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=xc.create(e,this,!0)}return this.negated}}class xc{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,i){return xc._normalizeArr(e,t,i)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const r of Gy(t))for(const a of Gy(i))s.push(Bd.create([r,a],null));const o=e.length===0;e.unshift(xc.create(s,null,o))}this.negated=e[0]}return this.negated}}class Re extends hu{constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?Re._info.push(Object.assign(Object.assign({},i),{key:e})):i!==!0&&Re._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}static all(){return Re._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return mp.create(this.key,e)}}Re._info=[];const lt=At("contextKeyService"),xue="setContext";function fz(n,e){return ne?1:0}function tg(n,e,t,i){return nt?1:ei?1:0}function gz(n,e){if(e.type===6&&n.type!==9&&n.type!==6){for(const s of e.expr)if(n.equals(s))return!0}const t=n.negate(),i=Gy(t).concat(Gy(e));i.sort(Om);for(let s=0;s"u"||AN.isThemeColor(c.color))}n.isThemeIcon=e;const t=new RegExp(`^\\$\\((${Os.iconNameExpression}(?:${Os.iconModifierExpression})?)\\)$`);function i(c){const d=t.exec(c);if(!d)return;let[,u]=d;return{id:u}}n.fromString=i;function s(c){return{id:c}}n.fromId=s;function o(c,d){let u=c.id;const h=u.lastIndexOf("~");return h!==-1&&(u=u.substring(0,h)),d&&(u=`${u}~${d}`),{id:u}}n.modify=o;function r(c){const d=c.id.lastIndexOf("~");if(d!==-1)return c.id.substring(d+1)}n.getModifier=r;function a(c,d){var u,h;return c.id===d.id&&((u=c.color)===null||u===void 0?void 0:u.id)===((h=d.color)===null||h===void 0?void 0:h.id)}n.isEqual=a;function l(c,d){return{id:c.id,color:d?zi(d):void 0}}n.asThemeIcon=l,n.asClassNameArray=Os.asClassNameArray,n.asClassName=Os.asClassName,n.asCSSSelector=Os.asCSSSelector})(ai||(ai={}));function Yy(n){switch(n){case Gr.DARK:return"vs-dark";case Gr.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const mz={ThemingContribution:"base.contributions.theming"};class Due{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new j}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),vt(()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let pz=new Due;on.add(mz.ThemingContribution,pz);function bi(n){return pz.onColorThemeChange(n)}class Iue extends J{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}var Nue=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},i7=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};function fm(n){return n.command!==void 0}class W{constructor(e){this.id=W._idPool++,this._debugName=e}}W._idPool=0;W.CommandPalette=new W("CommandPalette");W.DebugBreakpointsContext=new W("DebugBreakpointsContext");W.DebugCallStackContext=new W("DebugCallStackContext");W.DebugConsoleContext=new W("DebugConsoleContext");W.DebugVariablesContext=new W("DebugVariablesContext");W.DebugWatchContext=new W("DebugWatchContext");W.DebugToolBar=new W("DebugToolBar");W.EditorContext=new W("EditorContext");W.SimpleEditorContext=new W("SimpleEditorContext");W.EditorContextCopy=new W("EditorContextCopy");W.EditorContextPeek=new W("EditorContextPeek");W.EditorTitle=new W("EditorTitle");W.EditorTitleRun=new W("EditorTitleRun");W.EditorTitleContext=new W("EditorTitleContext");W.EmptyEditorGroup=new W("EmptyEditorGroup");W.EmptyEditorGroupContext=new W("EmptyEditorGroupContext");W.ExplorerContext=new W("ExplorerContext");W.ExtensionContext=new W("ExtensionContext");W.GlobalActivity=new W("GlobalActivity");W.LayoutControlMenuSubmenu=new W("LayoutControlMenuSubmenu");W.LayoutControlMenu=new W("LayoutControlMenu");W.MenubarMainMenu=new W("MenubarMainMenu");W.MenubarAppearanceMenu=new W("MenubarAppearanceMenu");W.MenubarDebugMenu=new W("MenubarDebugMenu");W.MenubarEditMenu=new W("MenubarEditMenu");W.MenubarCopy=new W("MenubarCopy");W.MenubarFileMenu=new W("MenubarFileMenu");W.MenubarGoMenu=new W("MenubarGoMenu");W.MenubarHelpMenu=new W("MenubarHelpMenu");W.MenubarLayoutMenu=new W("MenubarLayoutMenu");W.MenubarNewBreakpointMenu=new W("MenubarNewBreakpointMenu");W.MenubarPanelAlignmentMenu=new W("MenubarPanelAlignmentMenu");W.MenubarPanelPositionMenu=new W("MenubarPanelPositionMenu");W.MenubarPreferencesMenu=new W("MenubarPreferencesMenu");W.MenubarRecentMenu=new W("MenubarRecentMenu");W.MenubarSelectionMenu=new W("MenubarSelectionMenu");W.MenubarSwitchEditorMenu=new W("MenubarSwitchEditorMenu");W.MenubarSwitchGroupMenu=new W("MenubarSwitchGroupMenu");W.MenubarTerminalMenu=new W("MenubarTerminalMenu");W.MenubarViewMenu=new W("MenubarViewMenu");W.MenubarHomeMenu=new W("MenubarHomeMenu");W.OpenEditorsContext=new W("OpenEditorsContext");W.ProblemsPanelContext=new W("ProblemsPanelContext");W.SCMChangeContext=new W("SCMChangeContext");W.SCMResourceContext=new W("SCMResourceContext");W.SCMResourceFolderContext=new W("SCMResourceFolderContext");W.SCMResourceGroupContext=new W("SCMResourceGroupContext");W.SCMSourceControl=new W("SCMSourceControl");W.SCMTitle=new W("SCMTitle");W.SearchContext=new W("SearchContext");W.StatusBarWindowIndicatorMenu=new W("StatusBarWindowIndicatorMenu");W.StatusBarRemoteIndicatorMenu=new W("StatusBarRemoteIndicatorMenu");W.TestItem=new W("TestItem");W.TestItemGutter=new W("TestItemGutter");W.TestPeekElement=new W("TestPeekElement");W.TestPeekTitle=new W("TestPeekTitle");W.TouchBarContext=new W("TouchBarContext");W.TitleBarContext=new W("TitleBarContext");W.TunnelContext=new W("TunnelContext");W.TunnelPrivacy=new W("TunnelPrivacy");W.TunnelProtocol=new W("TunnelProtocol");W.TunnelPortInline=new W("TunnelInline");W.TunnelTitle=new W("TunnelTitle");W.TunnelLocalAddressInline=new W("TunnelLocalAddressInline");W.TunnelOriginInline=new W("TunnelOriginInline");W.ViewItemContext=new W("ViewItemContext");W.ViewContainerTitle=new W("ViewContainerTitle");W.ViewContainerTitleContext=new W("ViewContainerTitleContext");W.ViewTitle=new W("ViewTitle");W.ViewTitleContext=new W("ViewTitleContext");W.CommentThreadTitle=new W("CommentThreadTitle");W.CommentThreadActions=new W("CommentThreadActions");W.CommentTitle=new W("CommentTitle");W.CommentActions=new W("CommentActions");W.InteractiveToolbar=new W("InteractiveToolbar");W.InteractiveCellTitle=new W("InteractiveCellTitle");W.InteractiveCellExecute=new W("InteractiveCellExecute");W.InteractiveInputExecute=new W("InteractiveInputExecute");W.NotebookToolbar=new W("NotebookToolbar");W.NotebookCellTitle=new W("NotebookCellTitle");W.NotebookCellInsert=new W("NotebookCellInsert");W.NotebookCellBetween=new W("NotebookCellBetween");W.NotebookCellListTop=new W("NotebookCellTop");W.NotebookCellExecute=new W("NotebookCellExecute");W.NotebookCellExecutePrimary=new W("NotebookCellExecutePrimary");W.NotebookDiffCellInputTitle=new W("NotebookDiffCellInputTitle");W.NotebookDiffCellMetadataTitle=new W("NotebookDiffCellMetadataTitle");W.NotebookDiffCellOutputsTitle=new W("NotebookDiffCellOutputsTitle");W.NotebookOutputToolbar=new W("NotebookOutputToolbar");W.NotebookEditorLayoutConfigure=new W("NotebookEditorLayoutConfigure");W.BulkEditTitle=new W("BulkEditTitle");W.BulkEditContext=new W("BulkEditContext");W.TimelineItemContext=new W("TimelineItemContext");W.TimelineTitle=new W("TimelineTitle");W.TimelineTitleContext=new W("TimelineTitleContext");W.AccountsContext=new W("AccountsContext");W.PanelTitle=new W("PanelTitle");W.AuxiliaryBarTitle=new W("AuxiliaryBarTitle");W.TerminalInstanceContext=new W("TerminalInstanceContext");W.TerminalEditorInstanceContext=new W("TerminalEditorInstanceContext");W.TerminalNewDropdownContext=new W("TerminalNewDropdownContext");W.TerminalTabContext=new W("TerminalTabContext");W.TerminalTabEmptyAreaContext=new W("TerminalTabEmptyAreaContext");W.TerminalInlineTabContext=new W("TerminalInlineTabContext");W.WebviewContext=new W("WebviewContext");W.InlineCompletionsActions=new W("InlineCompletionsActions");W.NewFile=new W("NewFile");const ig=At("menuService"),qo=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new j,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:n=>n===W.CommandPalette}}addCommand(n){return this.addCommands(Rt.single(n))}addCommands(n){for(const e of n)this._commands.set(e.id,e);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),vt(()=>{let e=!1;for(const t of n)e=this._commands.delete(t.id)||e;e&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(n){return this._commands.get(n)}getCommands(){const n=new Map;return this._commands.forEach((e,t)=>n.set(t,e)),n}appendMenuItem(n,e){return this.appendMenuItems(Rt.single({id:n,item:e}))}appendMenuItems(n){const e=new Set,t=new zo;for(const{id:i,item:s}of n){let o=this._menuItems.get(i);o||(o=new zo,this._menuItems.set(i,o)),t.push(o.push(s)),e.add(i)}return this._onDidChangeMenu.fire(e),vt(()=>{if(t.size>0){for(let i of t)i();this._onDidChangeMenu.fire(e),t.clear()}})}getMenuItems(n){let e;return this._menuItems.has(n)?e=[...this._menuItems.get(n)]:e=[],n===W.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(n){const e=new Set;for(const t of n)fm(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||n.push({command:t})})}};class vP extends XL{constructor(e,t,i,s){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=s}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);t.dispose();for(const[,s]of i)s.length>0&&(e.push(...s),e.push(new gr));return e.length&&e.pop(),e}}let fu=class _z{constructor(e,t,i,s,o){var r,a;if(this._commandService=o,this.id=e.id,this.label=i!=null&&i.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value,this.tooltip=(a=typeof e.tooltip=="string"?e.tooltip:(r=e.tooltip)===null||r===void 0?void 0:r.value)!==null&&a!==void 0?a:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const l=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(l.condition),this.checked&&l.tooltip&&(this.tooltip=typeof l.tooltip=="string"?l.tooltip:l.tooltip.value),l.title&&(this.label=typeof l.title=="string"?l.title:l.title.value)}this.item=e,this.alt=t?new _z(t,void 0,i,s,o):void 0,this._options=i,ai.isThemeIcon(e.icon)&&(this.class=Os.asClassName(e.icon))}dispose(){}run(...e){var t,i;let s=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(s=[...s,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(s=[...s,...e]),this._commandService.executeCommand(this.id,...s)}};fu=Nue([i7(3,lt),i7(4,sn)],fu);class Zy{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(or===1){if(e&&e.win)return e.win}else if(or===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=Zy.bindToCurrentPlatform(e);if(t&&t.primary){const i=kN(t.primary,or);i&&this._registerDefaultKeybinding(i,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let i=0,s=t.secondary.length;i=21&&e<=30||e>=31&&e<=56?!0:e===80||e===81||e===82||e===83||e===84||e===85||e===86||e===110||e===111||e===87||e===88||e===89||e===90||e===91||e===92}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&Zy._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,i,s,o,r){or===1&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e.parts,command:t,commandArgs:i,when:r,weight1:s,weight2:o,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(Aue)),this._cachedMergedKeybindings.slice(0)}}const Us=new Zy,Tue={EditorModes:"platform.keybindingsRegistry"};on.add(Tue.EditorModes,Us);function Aue(n,e){return n.weight1!==e.weight1?n.weight1-e.weight1:n.commande.command?1:n.weight2-e.weight2}const jl=At("telemetryService");class ok{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=xe.and(i,this.precondition):i=this.precondition);const s={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};Us.registerKeybindingRule(s)}}Ot.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){qo.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class a_ extends ok{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort((s,o)=>o.priority-s.priority),{dispose:()=>{for(let s=0;s{if(o.get(lt).contextMatchesRules(_o(this.precondition)))return this.runEditorCommand(o,s,t)})}}class Be extends ss{constructor(e){super(Be.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;Array.isArray(e.menuOpts)?t=e.menuOpts:e.menuOpts?t=[e.menuOpts]:t=[];function i(s){return s.menuId||(s.menuId=W.EditorContext),s.title||(s.title=e.label),s.when=xe.and(e.precondition,s.when),s}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(jl).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class vz extends Be{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((i,s)=>s[0]-i[0]),{dispose:()=>{for(let i=0;inew Promise((c,d)=>{try{const u=s.invokeFunction(e,l.object.textEditorModel,Z.lift(r),i.slice(2));c(u)}catch(u){d(u)}}).finally(()=>{l.dispose()}))})}function pe(n){return ar.INSTANCE.registerEditorCommand(n),n}function _e(n){const e=new n;return ar.INSTANCE.registerEditorAction(e),e}function Cz(n){return ar.INSTANCE.registerEditorAction(n),n}function wz(n){ar.INSTANCE.registerEditorAction(n)}function Kt(n,e){ar.INSTANCE.registerEditorContribution(n,e)}var Uh;(function(n){function e(r){return ar.INSTANCE.getEditorCommand(r)}n.getEditorCommand=e;function t(){return ar.INSTANCE.getEditorActions()}n.getEditorActions=t;function i(){return ar.INSTANCE.getEditorContributions()}n.getEditorContributions=i;function s(r){return ar.INSTANCE.getEditorContributions().filter(a=>r.indexOf(a.id)>=0)}n.getSomeEditorContributions=s;function o(){return ar.INSTANCE.getDiffEditorContributions()}n.getDiffEditorContributions=o})(Uh||(Uh={}));const Mue={EditorCommonContributions:"editor.contributions"};class ar{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}ar.INSTANCE=new ar;on.add(Mue.EditorCommonContributions,ar.INSTANCE);function X1(n){return n.register(),n}const yz=X1(new a_({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:W.MenubarEditMenu,group:"1_do",title:m({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:W.CommandPalette,group:"",title:m("undo","Undo"),order:1}]}));X1(new bz(yz,{id:"default:undo",precondition:void 0}));const Sz=X1(new a_({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:W.MenubarEditMenu,group:"1_do",title:m({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:W.CommandPalette,group:"",title:m("redo","Redo"),order:1}]}));X1(new bz(Sz,{id:"default:redo",precondition:void 0}));const Rue=X1(new a_({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:W.MenubarSelectionMenu,group:"1_basic",title:m({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:W.CommandPalette,group:"",title:m("selectAll","Select All"),order:1}]}));var Pue=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Oue=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let Mv=class{constructor(e,t){}dispose(){}};Mv.ID="editor.contrib.markerDecorations";Mv=Pue([Oue(1,mP)],Mv);Kt(Mv.ID,Mv);class Lz extends J{constructor(e,t){super(),this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,s=0;t?(i=t.width,s=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,s=this._referenceDomElement.clientHeight),i=Math.max(5,i),s=Math.max(5,s),(this._width!==i||this._height!==s)&&(this._width=i,this._height=s,e&&this._onDidChange.fire())}}const Fue=Object.prototype.hasOwnProperty;function Bue(n,e){for(let t in n)if(Fue.call(n,t)&&e({key:t,value:n[t]},function(){delete n[t]})===!1)return}class Vue{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),i.size===0&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}}function Wue(n){const e=n.wordWrap;e===!0?n.wordWrap="on":e===!1&&(n.wordWrap="off");const t=n.lineNumbers;t===!0?n.lineNumbers="on":t===!1&&(n.lineNumbers="off"),n.autoClosingBrackets===!1&&(n.autoClosingBrackets="never",n.autoClosingQuotes="never",n.autoSurround="never"),n.cursorBlinking==="visible"&&(n.cursorBlinking="solid");const o=n.renderWhitespace;o===!0?n.renderWhitespace="boundary":o===!1&&(n.renderWhitespace="none");const r=n.renderLineHighlight;r===!0?n.renderLineHighlight="line":r===!1&&(n.renderLineHighlight="none");const a=n.acceptSuggestionOnEnter;a===!0?n.acceptSuggestionOnEnter="on":a===!1&&(n.acceptSuggestionOnEnter="off");const l=n.tabCompletion;l===!1?n.tabCompletion="off":l===!0&&(n.tabCompletion="onlySnippets");const c=n.suggest;if(c&&typeof c.filteredTypes=="object"&&c.filteredTypes){const b={};b.method="showMethods",b.function="showFunctions",b.constructor="showConstructors",b.deprecated="showDeprecated",b.field="showFields",b.variable="showVariables",b.class="showClasses",b.struct="showStructs",b.interface="showInterfaces",b.module="showModules",b.property="showProperties",b.event="showEvents",b.operator="showOperators",b.unit="showUnits",b.value="showValues",b.constant="showConstants",b.enum="showEnums",b.enumMember="showEnumMembers",b.keyword="showKeywords",b.text="showWords",b.color="showColors",b.file="showFiles",b.reference="showReferences",b.folder="showFolders",b.typeParameter="showTypeParameters",b.snippet="showSnippets",Bue(b,v=>{const C=c.filteredTypes[v.key];C===!1&&(c[v.value]=C)})}const d=n.hover;d===!0?n.hover={enabled:!0}:d===!1&&(n.hover={enabled:!1});const u=n.parameterHints;u===!0?n.parameterHints={enabled:!0}:u===!1&&(n.parameterHints={enabled:!1});const h=n.autoIndent;h===!0?n.autoIndent="full":h===!1&&(n.autoIndent="advanced");const f=n.matchBrackets;f===!0?n.matchBrackets="always":f===!1&&(n.matchBrackets="never");const{renderIndentGuides:g,highlightActiveIndentGuide:_}=n;n.guides||(n.guides={}),g!==void 0&&(n.guides.indentation=!!g),_!==void 0&&(n.guides.highlightActiveIndentation=!!_)}class Hue{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new j,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}const Xy=new Hue,Eo=At("accessibilityService"),Q1=new Re("accessibilityModeEnabled",!1);var zue=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},$ue=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let MN=class extends J{constructor(e,t,i,s){super(),this._accessibilityService=s,this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new j),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._computeOptionsMemory=new oH,this.isSimpleWidget=e,this._containerObserver=this._register(new Lz(i,t.dimension)),this._rawOptions=n7(t),this._validatedOptions=Rd.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(10)&&this._containerObserver.startObserving(),this._register($c.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(Xy.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(fN.onDidChange(()=>this._recomputeOptions())),this._register(dp.onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=Rd.checkEquals(this.options,e);t!==null&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=$h.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),s={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:Xy.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return Rd.computeOptions(this._validatedOptions,s)}_readEnvConfiguration(){return{extraEditorClassName:jue(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:qd||Yo,pixelRatio:dp.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return fN.readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=n7(e);Rd.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=Rd.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=Uue(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}};MN=zue([$ue(3,Eo)],MN);function Uue(n){let e=0;for(;n;)n=Math.floor(n/10),e++;return e||1}function jue(){let n="";return!ea&&!GR&&(n+="no-user-select "),ea&&(n+="no-minimap-shadow "),wt&&(n+="mac "),n}class que{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class Kue{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class Rd{static validateOptions(e){const t=new que;for(const i of am){const s=i.name==="_never_"?void 0:e[i.name];t._write(i.id,i.validate(s))}return t}static computeOptions(e,t){const i=new Kue;for(const s of am)i._write(s.id,s.compute(t,i,e._read(s.id)));return i}static _deepEquals(e,t){if(typeof e!="object"||typeof t!="object"||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?jo(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!Rd._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let s=!1;for(const o of am){const r=!Rd._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=r,r&&(s=!0)}return s?new sH(i):null}static applyUpdate(e,t){let i=!1;for(const s of am)if(t.hasOwnProperty(s.name)){const o=s.applyUpdate(e[s.name],t[s.name]);e[s.name]=o.newValue,i=i||o.didChange}return i}}function n7(n){const e=gc(n);return Wue(e),e}function vn(n,e,t){let i=null,s=null;if(typeof t.value=="function"?(i="value",s=t.value,s.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof t.get=="function"&&(i="get",s=t.get),!s)throw new Error("not supported");const o=`$memoize$${e}`;t[i]=function(...r){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:s.apply(this,r)}),this[o]}}var Gue=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},pi;(function(n){n.Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu"})(pi||(pi={}));class Jt extends J{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(de(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(de(document,"touchend",e=>this.onTouchEnd(e))),this._register(de(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return Jt.isTouchDevice()?(Jt.INSTANCE||(Jt.INSTANCE=new Jt),Jt.INSTANCE.targets.push(e),{dispose:()=>{Jt.INSTANCE.targets=Jt.INSTANCE.targets.filter(t=>t!==e)}}):J.None}static ignoreTarget(e){return Jt.isTouchDevice()?(Jt.INSTANCE||(Jt.INSTANCE=new Jt),Jt.INSTANCE.ignoreTargets.push(e),{dispose:()=>{Jt.INSTANCE.ignoreTargets=Jt.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):J.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,s=e.targetTouches.length;i=Jt.HOLD_DELAY&&Math.abs(a.initialPageX-ir(a.rollingPageX))<30&&Math.abs(a.initialPageY-ir(a.rollingPageY))<30){let c=this.newGestureEvent(pi.Contextmenu,a.initialTarget);c.pageX=ir(a.rollingPageX),c.pageY=ir(a.rollingPageY),this.dispatchEvent(c)}else if(i===1){let c=ir(a.rollingPageX),d=ir(a.rollingPageY),u=ir(a.rollingTimestamps)-a.rollingTimestamps[0],h=c-a.rollingPageX[0],f=d-a.rollingPageY[0];const g=this.targets.filter(_=>a.initialTarget instanceof Node&&_.contains(a.initialTarget));this.inertia(g,t,Math.abs(h)/u,h>0?1:-1,c,Math.abs(f)/u,f>0?1:-1,d)}this.dispatchEvent(this.newGestureEvent(pi.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===pi.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>Jt.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===pi.Change||e.type===pi.Contextmenu)&&(this._lastSetTapCountTime=0);for(let t=0;t{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,i,s,o,r,a,l){this.handle=Ma(()=>{let c=Date.now(),d=c-t,u=0,h=0,f=!0;i+=Jt.SCROLL_FRICTION*d,r+=Jt.SCROLL_FRICTION*d,i>0&&(f=!1,u=s*i*d),r>0&&(f=!1,h=a*r*d);let g=this.newGestureEvent(pi.Change);g.translationX=u,g.translationY=h,e.forEach(_=>_.dispatchEvent(g)),f||this.inertia(e,c,i,s,o+u,r,a,l+h)})}onTouchMove(e){let t=Date.now();for(let i=0,s=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}Jt.SCROLL_FRICTION=-.005;Jt.HOLD_DELAY=700;Jt.CLEAR_TAP_COUNT_TIME=400;Gue([vn],Jt,"isTouchDevice",null);function l_(n,e){let t=new dr(e);return t.preventDefault(),{leftButton:t.leftButton,buttons:t.buttons,posx:t.posx,posy:t.posy}}class ng{constructor(){this._hooks=new ue,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,s,o){if(this.isMonitoring())return;this._mouseMoveEventMerger=i,this._mouseMoveCallback=s,this._onStopCallback=o;const r=EN.getSameOriginWindowChain(),a=Ta?"pointermove":"mousemove",l="mouseup",c=r.map(u=>u.window.document),d=du(e);d&&c.unshift(d);for(const u of c)this._hooks.add(fP(u,a,h=>{if(h.buttons!==t){this.stopMonitoring(!0);return}this._mouseMoveCallback(h)},(h,f)=>this._mouseMoveEventMerger(h,f))),this._hooks.add(de(u,l,h=>this.stopMonitoring(!0)));if(EN.hasDifferentOriginAncestor()){let u=r[r.length-1];this._hooks.add(de(u.window.document,"mouseout",h=>{new dr(h).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(de(u.window.document,"mouseover",h=>{new dr(h).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(de(u.window.document.body,"mouseleave",h=>{this.stopMonitoring(!0)}))}}}function Yd(n,e){const t=Math.pow(10,e);return Math.round(n*t)/t}class It{constructor(e,t,i,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=Yd(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class pa{constructor(e,t,i,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Yd(Math.max(Math.min(1,t),0),3),this.l=Yd(Math.max(Math.min(1,i),0),3),this.a=Yd(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,o=e.a,r=Math.max(t,i,s),a=Math.min(t,i,s);let l=0,c=0;const d=(a+r)/2,u=r-a;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),r){case t:l=(i-s)/u+(i1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:s,a:o}=e;let r,a,l;if(i===0)r=a=l=s;else{const c=s<.5?s*(1+i):s+i-s*i,d=2*s-c;r=pa._hue2rgb(d,c,t+1/3),a=pa._hue2rgb(d,c,t),l=pa._hue2rgb(d,c,t-1/3)}return new It(Math.round(r*255),Math.round(a*255),Math.round(l*255),o)}}class vl{constructor(e,t,i,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Yd(Math.max(Math.min(1,t),0),3),this.v=Yd(Math.max(Math.min(1,i),0),3),this.a=Yd(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(t,i,s),r=Math.min(t,i,s),a=o-r,l=o===0?0:a/o;let c;return a===0?c=0:o===t?c=((i-s)/a%6+6)%6:o===i?c=(s-t)/a+2:c=(t-i)/a+4,new vl(Math.round(c*60),l,o,e.a)}static toRGBA(e){const{h:t,s:i,v:s,a:o}=e,r=s*i,a=r*(1-Math.abs(t/60%2-1)),l=s-r;let[c,d,u]=[0,0,0];return t<60?(c=r,d=a):t<120?(c=a,d=r):t<180?(d=r,u=a):t<240?(d=a,u=r):t<300?(c=a,u=r):t<=360&&(c=r,u=a),c=Math.round((c+l)*255),d=Math.round((d+l)*255),u=Math.round((u+l)*255),new It(c,d,u,o)}}class X{constructor(e){if(e)if(e instanceof It)this.rgba=e;else if(e instanceof pa)this._hsla=e,this.rgba=pa.toRGBA(e);else if(e instanceof vl)this._hsva=e,this.rgba=vl.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}static fromHex(e){return X.Format.CSS.parseHex(e)||X.red}get hsla(){return this._hsla?this._hsla:pa.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:vl.fromRGBA(this.rgba)}equals(e){return!!e&&It.equals(this.rgba,e.rgba)&&pa.equals(this.hsla,e.hsla)&&vl.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=X._relativeLuminanceForComponent(this.rgba.r),t=X._relativeLuminanceForComponent(this.rgba.g),i=X._relativeLuminanceForComponent(this.rgba.b),s=.2126*e+.7152*t+.0722*i;return Yd(s,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t0&&n.charAt(n.length-1)==="#"?n.substring(0,n.length-1):n}class Zue{constructor(){this._onDidChangeSchema=new j,this.schemasById={}}registerSchema(e,t){this.schemasById[Yue(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const Xue=new Zue;on.add(rk.JSONContribution,Xue);function kz(n){return`--vscode-${n.replace(/\./g,"-")}`}const xz={ColorContribution:"base.contributions.colors"};class Que{constructor(){this._onDidChangeSchema=new j,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,s=!1,o){let r={id:e,description:i,defaults:t,needsTransparency:s,deprecationMessage:o};this.colorsById[e]=r;let a={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(a.deprecationMessage=o),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){const s=i.defaults[t.type];return lc(s,t)}}getColorSchema(){return this.colorSchema}toString(){let e=(t,i)=>{let s=t.indexOf(".")===-1?0:1,o=i.indexOf(".")===-1?0:1;return s!==o?s-o:t.localeCompare(i)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(` +`)}}const ak=new Que;on.add(xz.ColorContribution,ak);function F(n,e,t,i,s){return ak.registerColor(n,e,t,i,s)}const Pe=F("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},m("foreground","Overall foreground color. This color is only used if not overridden by a component.")),Jue=F("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},m("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));F("descriptionForeground",{light:"#717171",dark:nt(Pe,.7),hc:nt(Pe,.7)},m("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));const FE=F("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},m("iconForeground","The default color for icons in the workbench.")),xl=F("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},m("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),Ii=F("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},m("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Is=F("contrastActiveBorder",{light:null,dark:null,hc:xl},m("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));F("selection.background",{light:null,dark:null,hc:null},m("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));F("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hc:X.black},m("textSeparatorForeground","Color for text separators."));const lk=F("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},m("textLinkForeground","Foreground color for links in text.")),ck=F("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},m("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));F("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hc:"#D7BA7D"},m("textPreformatForeground","Foreground color for preformatted text segments."));F("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hc:null},m("textBlockQuoteBackground","Background color for block quotes in text."));F("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hc:X.white},m("textBlockQuoteBorder","Border color for block quotes in text."));const Ez=F("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:X.black},m("textCodeBlockBackground","Background color for code blocks in text.")),gu=F("widget.shadow",{dark:nt(X.black,.36),light:nt(X.black,.16),hc:null},m("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),CP=F("input.background",{dark:"#3C3C3C",light:X.white,hc:X.black},m("inputBoxBackground","Input box background.")),wP=F("input.foreground",{dark:Pe,light:Pe,hc:Pe},m("inputBoxForeground","Input box foreground.")),yP=F("input.border",{dark:null,light:null,hc:Ii},m("inputBoxBorder","Input box border.")),RN=F("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:Ii},m("inputBoxActiveOptionBorder","Border color of activated options in input fields."));F("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hc:null},m("inputOption.hoverBackground","Background color of activated options in input fields."));const PN=F("inputOption.activeBackground",{dark:nt(xl,.4),light:nt(xl,.2),hc:X.transparent},m("inputOption.activeBackground","Background hover color of options in input fields.")),ON=F("inputOption.activeForeground",{dark:X.white,light:X.black,hc:null},m("inputOption.activeForeground","Foreground color of activated options in input fields."));F("input.placeholderForeground",{light:nt(Pe,.5),dark:nt(Pe,.5),hc:nt(Pe,.7)},m("inputPlaceholderForeground","Input box foreground color for placeholder text."));const Dz=F("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:X.black},m("inputValidationInfoBackground","Input validation background color for information severity.")),Iz=F("inputValidation.infoForeground",{dark:null,light:null,hc:null},m("inputValidationInfoForeground","Input validation foreground color for information severity.")),Nz=F("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:Ii},m("inputValidationInfoBorder","Input validation border color for information severity.")),Tz=F("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:X.black},m("inputValidationWarningBackground","Input validation background color for warning severity.")),Az=F("inputValidation.warningForeground",{dark:null,light:null,hc:null},m("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Mz=F("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:Ii},m("inputValidationWarningBorder","Input validation border color for warning severity.")),Rz=F("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:X.black},m("inputValidationErrorBackground","Input validation background color for error severity.")),Pz=F("inputValidation.errorForeground",{dark:null,light:null,hc:null},m("inputValidationErrorForeground","Input validation foreground color for error severity.")),Oz=F("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:Ii},m("inputValidationErrorBorder","Input validation border color for error severity.")),jh=F("dropdown.background",{dark:"#3C3C3C",light:X.white,hc:X.black},m("dropdownBackground","Dropdown background."));F("dropdown.listBackground",{dark:null,light:null,hc:X.black},m("dropdownListBackground","Dropdown list background."));const Rb=F("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:X.white},m("dropdownForeground","Dropdown foreground.")),BE=F("dropdown.border",{dark:jh,light:"#CECECE",hc:Ii},m("dropdownBorder","Dropdown border."));F("checkbox.background",{dark:jh,light:jh,hc:jh},m("checkbox.background","Background color of checkbox widget."));F("checkbox.foreground",{dark:Rb,light:Rb,hc:Rb},m("checkbox.foreground","Foreground color of checkbox widget."));F("checkbox.border",{dark:BE,light:BE,hc:BE},m("checkbox.border","Border color of checkbox widget."));const ehe=F("button.foreground",{dark:X.white,light:X.white,hc:X.white},m("buttonForeground","Button foreground color.")),FN=F("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},m("buttonBackground","Button background color.")),the=F("button.hoverBackground",{dark:mu(FN,.2),light:d_(FN,.2),hc:null},m("buttonHoverBackground","Button background color when hovering."));F("button.border",{dark:Ii,light:Ii,hc:Ii},m("buttonBorder","Button border color."));F("button.secondaryForeground",{dark:X.white,light:X.white,hc:X.white},m("buttonSecondaryForeground","Secondary button foreground color."));const s7=F("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hc:null},m("buttonSecondaryBackground","Secondary button background color."));F("button.secondaryHoverBackground",{dark:mu(s7,.2),light:d_(s7,.2),hc:null},m("buttonSecondaryHoverBackground","Secondary button background color when hovering."));const Pb=F("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:X.black},m("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),Ob=F("badge.foreground",{dark:X.white,light:"#333",hc:X.white},m("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),c_=F("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},m("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Fm=F("scrollbarSlider.background",{dark:X.fromHex("#797979").transparent(.4),light:X.fromHex("#646464").transparent(.4),hc:nt(Ii,.6)},m("scrollbarSliderBackground","Scrollbar slider background color.")),Bm=F("scrollbarSlider.hoverBackground",{dark:X.fromHex("#646464").transparent(.7),light:X.fromHex("#646464").transparent(.7),hc:nt(Ii,.8)},m("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Vm=F("scrollbarSlider.activeBackground",{dark:X.fromHex("#BFBFBF").transparent(.4),light:X.fromHex("#000000").transparent(.6),hc:Ii},m("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),ihe=F("progressBar.background",{dark:X.fromHex("#0E70C0"),light:X.fromHex("#0E70C0"),hc:Ii},m("progressBarBackground","Background color of the progress bar that can show for long running operations.")),nhe=F("editorError.background",{dark:null,light:null,hc:null},m("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Zd=F("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hc:null},m("editorError.foreground","Foreground color of error squigglies in the editor.")),Fz=F("editorError.border",{dark:null,light:null,hc:X.fromHex("#E47777").transparent(.8)},m("errorBorder","Border color of error boxes in the editor.")),she=F("editorWarning.background",{dark:null,light:null,hc:null},m("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Yr=F("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},m("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),dk=F("editorWarning.border",{dark:null,light:null,hc:X.fromHex("#FFCC00").transparent(.8)},m("warningBorder","Border color of warning boxes in the editor.")),ohe=F("editorInfo.background",{dark:null,light:null,hc:null},m("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ko=F("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hc:"#3794FF"},m("editorInfo.foreground","Foreground color of info squigglies in the editor.")),SP=F("editorInfo.border",{dark:null,light:null,hc:X.fromHex("#3794FF").transparent(.8)},m("infoBorder","Border color of info boxes in the editor.")),rhe=F("editorHint.foreground",{dark:X.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},m("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ahe=F("editorHint.border",{dark:null,light:null,hc:X.fromHex("#eeeeee").transparent(.8)},m("hintBorder","Border color of hint boxes in the editor."));F("sash.hoverBorder",{dark:xl,light:xl,hc:xl},m("sashActiveBorder","Border color of active sashes."));const no=F("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:X.black},m("editorBackground","Editor background color.")),Xd=F("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:X.white},m("editorForeground","Editor default foreground color.")),Ws=F("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},m("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Oc=F("editorWidget.foreground",{dark:Pe,light:Pe,hc:Pe},m("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),qh=F("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:Ii},m("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),lhe=F("editorWidget.resizeBorder",{light:null,dark:null,hc:null},m("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),o7=F("quickInput.background",{dark:Ws,light:Ws,hc:Ws},m("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),che=F("quickInput.foreground",{dark:Oc,light:Oc,hc:Oc},m("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),dhe=F("quickInputTitle.background",{dark:new X(new It(255,255,255,.105)),light:new X(new It(0,0,0,.06)),hc:"#000000"},m("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),uhe=F("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:X.white},m("pickerGroupForeground","Quick picker color for grouping labels.")),hhe=F("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:X.white},m("pickerGroupBorder","Quick picker color for grouping borders.")),fhe=F("keybindingLabel.background",{dark:new X(new It(128,128,128,.17)),light:new X(new It(221,221,221,.4)),hc:X.transparent},m("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ghe=F("keybindingLabel.foreground",{dark:X.fromHex("#CCCCCC"),light:X.fromHex("#555555"),hc:X.white},m("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),mhe=F("keybindingLabel.border",{dark:new X(new It(51,51,51,.6)),light:new X(new It(204,204,204,.4)),hc:new X(new It(111,195,223))},m("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),phe=F("keybindingLabel.bottomBorder",{dark:new X(new It(68,68,68,.6)),light:new X(new It(187,187,187,.4)),hc:new X(new It(111,195,223))},m("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Qd=F("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},m("editorSelectionBackground","Color of the editor selection.")),_he=F("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},m("editorSelectionForeground","Color of the selected text for high contrast.")),LP=F("editor.inactiveSelectionBackground",{light:nt(Qd,.5),dark:nt(Qd,.5),hc:nt(Qd,.5)},m("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),kP=F("editor.selectionHighlightBackground",{light:u7(Qd,no,.3,.6),dark:u7(Qd,no,.3,.6),hc:null},m("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),bhe=F("editor.selectionHighlightBorder",{light:null,dark:null,hc:Is},m("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),vhe=F("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},m("editorFindMatch","Color of the current search match.")),Jd=F("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},m("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Che=F("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},m("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),whe=F("editor.findMatchBorder",{light:null,dark:null,hc:Is},m("editorFindMatchBorder","Border color of the current search match.")),Wm=F("editor.findMatchHighlightBorder",{light:null,dark:null,hc:Is},m("findMatchHighlightBorder","Border color of the other search matches.")),yhe=F("editor.findRangeHighlightBorder",{dark:null,light:null,hc:nt(Is,.4)},m("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);F("searchEditor.findMatchBackground",{light:nt(Jd,.66),dark:nt(Jd,.66),hc:Jd},m("searchEditor.queryMatch","Color of the Search Editor query matches."));F("searchEditor.findMatchBorder",{light:nt(Wm,.66),dark:nt(Wm,.66),hc:Wm},m("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));const She=F("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},m("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),pf=F("editorHoverWidget.background",{light:Ws,dark:Ws,hc:Ws},m("hoverBackground","Background color of the editor hover.")),xP=F("editorHoverWidget.foreground",{light:Oc,dark:Oc,hc:Oc},m("hoverForeground","Foreground color of the editor hover.")),EP=F("editorHoverWidget.border",{light:qh,dark:qh,hc:qh},m("hoverBorder","Border color of the editor hover.")),Lhe=F("editorHoverWidget.statusBarBackground",{dark:mu(pf,.2),light:d_(pf,.05),hc:Ws},m("statusBarBackground","Background color of the editor hover status bar.")),DP=F("editorLink.activeForeground",{dark:"#4E94CE",light:X.blue,hc:X.cyan},m("activeLinkForeground","Color of active links.")),Kh=F("editorInlayHint.foreground",{dark:nt(Ob,.8),light:nt(Ob,.8),hc:Ob},m("editorInlayHintForeground","Foreground color of inline hints")),Gh=F("editorInlayHint.background",{dark:nt(Pb,.6),light:nt(Pb,.3),hc:Pb},m("editorInlayHintBackground","Background color of inline hints")),khe=F("editorInlayHint.typeForeground",{dark:Kh,light:Kh,hc:Kh},m("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),xhe=F("editorInlayHint.typeBackground",{dark:Gh,light:Gh,hc:Gh},m("editorInlayHintBackgroundTypes","Background color of inline hints for types")),Ehe=F("editorInlayHint.parameterForeground",{dark:Kh,light:Kh,hc:Kh},m("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),Dhe=F("editorInlayHint.parameterBackground",{dark:Gh,light:Gh,hc:Gh},m("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Ihe=F("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},m("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Nhe=F("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},m("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),BN=new X(new It(155,185,85,.2)),VN=new X(new It(255,0,0,.2)),Bz=F("diffEditor.insertedTextBackground",{dark:BN,light:BN,hc:null},m("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Vz=F("diffEditor.removedTextBackground",{dark:VN,light:VN,hc:null},m("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),The=F("diffEditor.insertedLineBackground",{dark:null,light:null,hc:null},m("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ahe=F("diffEditor.removedLineBackground",{dark:null,light:null,hc:null},m("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Mhe=F("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hc:null},m("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),Rhe=F("diffEditorGutter.removedLineBackground",{dark:null,light:null,hc:null},m("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),Phe=F("diffEditorOverview.insertedForeground",{dark:null,light:null,hc:null},m("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),Ohe=F("diffEditorOverview.removedForeground",{dark:null,light:null,hc:null},m("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Fhe=F("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},m("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Bhe=F("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},m("diffEditorRemovedOutline","Outline color for text that got removed.")),Vhe=F("diffEditor.border",{dark:null,light:null,hc:Ii},m("diffEditorBorder","Border color between the two text editors.")),Whe=F("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},m("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),Hhe=F("list.focusBackground",{dark:null,light:null,hc:null},m("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),zhe=F("list.focusForeground",{dark:null,light:null,hc:null},m("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),$he=F("list.focusOutline",{dark:xl,light:xl,hc:Is},m("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),eu=F("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},m("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tu=F("list.activeSelectionForeground",{dark:X.white,light:X.white,hc:null},m("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Pw=F("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},m("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Uhe=F("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},m("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),jhe=F("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},m("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),qhe=F("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},m("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Khe=F("list.inactiveFocusBackground",{dark:null,light:null,hc:null},m("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ghe=F("list.inactiveFocusOutline",{dark:null,light:null,hc:null},m("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Yhe=F("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},m("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Zhe=F("list.hoverForeground",{dark:null,light:null,hc:null},m("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Xhe=F("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},m("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Fc=F("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:xl},m("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),VE=F("list.focusHighlightForeground",{dark:Fc,light:yfe(eu,Fc,"#9DDDFF"),hc:Fc},m("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));F("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hc:"#B89500"},m("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer."));F("list.errorForeground",{dark:"#F88070",light:"#B01011",hc:null},m("listErrorForeground","Foreground color of list items containing errors."));F("list.warningForeground",{dark:"#CCA700",light:"#855F00",hc:null},m("listWarningForeground","Foreground color of list items containing warnings."));const Qhe=F("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:X.black},m("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Jhe=F("listFilterWidget.outline",{dark:X.transparent,light:X.transparent,hc:"#f38518"},m("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),efe=F("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:Ii},m("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches."));F("list.filterMatchBackground",{dark:Jd,light:Jd,hc:null},m("listFilterMatchHighlight","Background color of the filtered match."));F("list.filterMatchBorder",{dark:Wm,light:Wm,hc:Ii},m("listFilterMatchHighlightBorder","Border color of the filtered match."));const tfe=F("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},m("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),ife=F("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},m("tableColumnsBorder","Table border color between columns.")),nfe=F("tree.tableOddRowsBackground",{dark:nt(Pe,.04),light:nt(Pe,.04),hc:null},m("tableOddRowsBackgroundColor","Background color for odd table rows."));F("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hc:"#A7A8A9"},m("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));const r7=F("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,m("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),Ow=F("quickInputList.focusForeground",{dark:tu,light:tu,hc:tu},m("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Fw=F("quickInputList.focusIconForeground",{dark:Pw,light:Pw,hc:Pw},m("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Bw=F("quickInputList.focusBackground",{dark:Rv(r7,eu),light:Rv(r7,eu),hc:null},m("quickInput.listFocusBackground","Quick picker background color for the focused item.")),sfe=F("menu.border",{dark:null,light:null,hc:Ii},m("menuBorder","Border color of menus.")),ofe=F("menu.foreground",{dark:Rb,light:Pe,hc:Rb},m("menuForeground","Foreground color of menu items.")),rfe=F("menu.background",{dark:jh,light:jh,hc:jh},m("menuBackground","Background color of menu items.")),afe=F("menu.selectionForeground",{dark:tu,light:tu,hc:tu},m("menuSelectionForeground","Foreground color of the selected menu item in menus.")),lfe=F("menu.selectionBackground",{dark:eu,light:eu,hc:eu},m("menuSelectionBackground","Background color of the selected menu item in menus.")),cfe=F("menu.selectionBorder",{dark:null,light:null,hc:Is},m("menuSelectionBorder","Border color of the selected menu item in menus.")),dfe=F("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:Ii},m("menuSeparatorBackground","Color of a separator menu item in menus.")),WN=F("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hc:null},m("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));F("toolbar.hoverOutline",{dark:null,light:null,hc:Is},m("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse"));F("toolbar.activeBackground",{dark:mu(WN,.1),light:d_(WN,.1),hc:null},m("toolbarActiveBackground","Toolbar background when holding the mouse over actions"));F("editor.snippetTabstopHighlightBackground",{dark:new X(new It(124,124,124,.3)),light:new X(new It(10,50,100,.2)),hc:new X(new It(124,124,124,.3))},m("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop."));F("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},m("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop."));F("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},m("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet."));F("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new X(new It(10,50,100,.5)),hc:"#525252"},m("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));F("breadcrumb.foreground",{light:nt(Pe,.8),dark:nt(Pe,.8),hc:nt(Pe,.8)},m("breadcrumbsFocusForeground","Color of focused breadcrumb items."));F("breadcrumb.background",{light:no,dark:no,hc:no},m("breadcrumbsBackground","Background color of breadcrumb items."));F("breadcrumb.focusForeground",{light:d_(Pe,.2),dark:mu(Pe,.1),hc:mu(Pe,.1)},m("breadcrumbsFocusForeground","Color of focused breadcrumb items."));F("breadcrumb.activeSelectionForeground",{light:d_(Pe,.2),dark:mu(Pe,.1),hc:mu(Pe,.1)},m("breadcrumbsSelectedForegound","Color of selected breadcrumb items."));F("breadcrumbPicker.background",{light:Ws,dark:Ws,hc:Ws},m("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const Wz=.5,a7=X.fromHex("#40C8AE").transparent(Wz),l7=X.fromHex("#40A6FF").transparent(Wz),c7=X.fromHex("#606060").transparent(.4),Bc=.4,pp=1,Fb=F("merge.currentHeaderBackground",{dark:a7,light:a7,hc:null},m("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);F("merge.currentContentBackground",{dark:nt(Fb,Bc),light:nt(Fb,Bc),hc:nt(Fb,Bc)},m("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const Bb=F("merge.incomingHeaderBackground",{dark:l7,light:l7,hc:null},m("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);F("merge.incomingContentBackground",{dark:nt(Bb,Bc),light:nt(Bb,Bc),hc:nt(Bb,Bc)},m("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const Vb=F("merge.commonHeaderBackground",{dark:c7,light:c7,hc:null},m("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);F("merge.commonContentBackground",{dark:nt(Vb,Bc),light:nt(Vb,Bc),hc:nt(Vb,Bc)},m("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const IP=F("merge.border",{dark:null,light:null,hc:"#C3DF6F"},m("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));F("editorOverviewRuler.currentContentForeground",{dark:nt(Fb,pp),light:nt(Fb,pp),hc:IP},m("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts."));F("editorOverviewRuler.incomingContentForeground",{dark:nt(Bb,pp),light:nt(Bb,pp),hc:IP},m("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts."));F("editorOverviewRuler.commonContentForeground",{dark:nt(Vb,pp),light:nt(Vb,pp),hc:IP},m("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));const NP=F("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},m("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Hz=F("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},m("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Wb=F("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},m("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),uk=F("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hc:"#ffffff"},m("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d7=F("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},m("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),ufe=F("minimap.errorHighlight",{dark:new X(new It(255,18,18,.7)),light:new X(new It(255,18,18,.7)),hc:new X(new It(255,50,50,1))},m("minimapError","Minimap marker color for errors.")),hfe=F("minimap.warningHighlight",{dark:Yr,light:Yr,hc:dk},m("overviewRuleWarning","Minimap marker color for warnings.")),ffe=F("minimap.background",{dark:null,light:null,hc:null},m("minimapBackground","Minimap background color.")),gfe=F("minimap.foregroundOpacity",{dark:X.fromHex("#000f"),light:X.fromHex("#000f"),hc:X.fromHex("#000f")},m("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),mfe=F("minimapSlider.background",{light:nt(Fm,.5),dark:nt(Fm,.5),hc:nt(Fm,.5)},m("minimapSliderBackground","Minimap slider background color.")),pfe=F("minimapSlider.hoverBackground",{light:nt(Bm,.5),dark:nt(Bm,.5),hc:nt(Bm,.5)},m("minimapSliderHoverBackground","Minimap slider background color when hovering.")),_fe=F("minimapSlider.activeBackground",{light:nt(Vm,.5),dark:nt(Vm,.5),hc:nt(Vm,.5)},m("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),bfe=F("problemsErrorIcon.foreground",{dark:Zd,light:Zd,hc:Zd},m("problemsErrorIconForeground","The color used for the problems error icon.")),vfe=F("problemsWarningIcon.foreground",{dark:Yr,light:Yr,hc:Yr},m("problemsWarningIconForeground","The color used for the problems warning icon.")),Cfe=F("problemsInfoIcon.foreground",{dark:Ko,light:Ko,hc:Ko},m("problemsInfoIconForeground","The color used for the problems info icon."));F("charts.foreground",{dark:Pe,light:Pe,hc:Pe},m("chartsForeground","The foreground color used in charts."));F("charts.lines",{dark:nt(Pe,.5),light:nt(Pe,.5),hc:nt(Pe,.5)},m("chartsLines","The color used for horizontal lines in charts."));F("charts.red",{dark:Zd,light:Zd,hc:Zd},m("chartsRed","The red color used in chart visualizations."));F("charts.blue",{dark:Ko,light:Ko,hc:Ko},m("chartsBlue","The blue color used in chart visualizations."));F("charts.yellow",{dark:Yr,light:Yr,hc:Yr},m("chartsYellow","The yellow color used in chart visualizations."));F("charts.orange",{dark:Wb,light:Wb,hc:Wb},m("chartsOrange","The orange color used in chart visualizations."));F("charts.green",{dark:"#89D185",light:"#388A34",hc:"#89D185"},m("chartsGreen","The green color used in chart visualizations."));F("charts.purple",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},m("chartsPurple","The purple color used in chart visualizations."));function wfe(n,e){var t,i,s;switch(n.op){case 0:return(t=lc(n.value,e))===null||t===void 0?void 0:t.darken(n.factor);case 1:return(i=lc(n.value,e))===null||i===void 0?void 0:i.lighten(n.factor);case 2:return(s=lc(n.value,e))===null||s===void 0?void 0:s.transparent(n.factor);case 3:for(const o of n.values){const r=lc(o,e);if(r)return r}return;case 5:return lc(e.defines(n.if)?n.then:n.else,e);case 4:{const o=lc(n.value,e);if(!o)return;const r=lc(n.background,e);return r?o.isDarkerThan(r)?X.getLighterColor(o,r,n.factor).transparent(n.transparency):X.getDarkerColor(o,r,n.factor).transparent(n.transparency):o.transparent(n.factor*n.transparency)}default:throw IR()}}function d_(n,e){return{op:0,value:n,factor:e}}function mu(n,e){return{op:1,value:n,factor:e}}function nt(n,e){return{op:2,value:n,factor:e}}function Rv(...n){return{op:3,values:n}}function yfe(n,e,t){return{op:5,if:n,then:e,else:t}}function u7(n,e,t,i){return{op:4,value:n,background:e,factor:t,transparency:i}}function lc(n,e){if(n!==null){if(typeof n=="string")return n[0]==="#"?X.fromHex(n):e.getColor(n);if(n instanceof X)return n;if(typeof n=="object")return wfe(n,e)}}const zz="vscode://schemas/workbench-colors";let $z=on.as(rk.JSONContribution);$z.registerSchema(zz,ak.getColorSchema());const h7=new ni(()=>$z.notifySchemaChanged(zz),200);ak.onDidChangeSchema(()=>{h7.isScheduled()||h7.schedule()});class TP{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new Uz(this.x-Rc.scrollX,this.y-Rc.scrollY)}}class Uz{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new TP(this.clientX+Rc.scrollX,this.clientY+Rc.scrollY)}}class Sfe{constructor(e,t,i,s){this.x=e,this.y=t,this.width=i,this.height=s,this._editorPagePositionBrand=void 0}}class Lfe{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function jz(n){const e=Qn(n);return new Sfe(e.left,e.top,e.width,e.height)}function qz(n,e,t){const i=e.width/n.offsetWidth,s=e.height/n.offsetHeight,o=(t.x-e.x)/i,r=(t.y-e.y)/s;return new Lfe(o,r)}class _f extends dr{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new TP(this.posx,this.posy),this.editorPos=jz(t),this.relativePos=qz(t,this.editorPos,this.pos)}}class kfe{constructor(e){this._editorViewDomNode=e}_create(e){return new _f(e,this._editorViewDomNode)}onContextMenu(e,t){return de(e,"contextmenu",i=>{t(this._create(i))})}onMouseUp(e,t){return de(e,"mouseup",i=>{t(this._create(i))})}onMouseDown(e,t){return de(e,"mousedown",i=>{t(this._create(i))})}onMouseLeave(e,t){return hP(e,i=>{t(this._create(i))})}onMouseMoveThrottled(e,t,i,s){return fP(e,"mousemove",t,(r,a)=>i(r,this._create(a)),s)}}class xfe{constructor(e){this._editorViewDomNode=e}_create(e){return new _f(e,this._editorViewDomNode)}onPointerUp(e,t){return de(e,"pointerup",i=>{t(this._create(i))})}onPointerDown(e,t){return de(e,"pointerdown",i=>{t(this._create(i))})}onPointerLeave(e,t){return lue(e,i=>{t(this._create(i))})}onPointerMoveThrottled(e,t,i,s){return fP(e,"pointermove",t,(r,a)=>i(r,this._create(a)),s)}}class Efe extends J{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new ng),this._keydownListener=null}startMonitoring(e,t,i,s,o){this._keydownListener=jn(document,"keydown",a=>{a.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,a.browserEvent)},!0);const r=(a,l)=>i(a,new _f(l,this._editorViewDomNode));this._globalMouseMoveMonitor.startMonitoring(e,t,r,s,a=>{this._keydownListener.dispose(),o(a)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class J1{constructor(e){this._editor=e,this._instanceId=++J1._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new ni(()=>this.garbageCollect(),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const s=this._counter++;i=new Dfe(t,`dyn-rule-${this._instanceId}-${s}`,Tv(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}J1._idPool=0;class Dfe{constructor(e,t,i,s){this.key=e,this.className=t,this.properties=s,this._referenceCount=0,this._styleElement=Cr(i),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const s in t){const o=t[s];let r;typeof o=="object"?r=`var(${kz(o.id)})`:r=o;const a=Ife(s);i+=` + ${a}: ${r};`}return i+=` +}`,i}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function Ife(n){return n.replace(/(^[A-Z])/,([e])=>e.toLowerCase()).replace(/([A-Z])/g,([e])=>`-${e.toLowerCase()}`)}class e0 extends J{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,s=e.length;i=a.left?s.width=Math.max(s.width,a.left+a.width-s.left):(t[i++]=s,s=a)}return t[i++]=s,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||e.length===0)return null;const s=[];for(let o=0,r=e.length;od)return null;if(t=Math.min(d,Math.max(0,t)),s=Math.min(d,Math.max(0,s)),t===s&&i===o&&i===0&&!e.children[t].firstChild){const g=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(g,r,a)}t!==s&&s>0&&o===0&&(s--,o=1073741824);let u=e.children[t].firstChild,h=e.children[s].firstChild;if((!u||!h)&&(!u&&i===0&&t>0&&(u=e.children[t-1].firstChild,i=1073741824),!h&&o===0&&s>0&&(h=e.children[s-1].firstChild,o=1073741824)),!u||!h)return null;i=Math.min(u.textContent.length,Math.max(0,i)),o=Math.min(h.textContent.length,Math.max(0,o));const f=this._readClientRects(u,i,h,o,l);return this._createHorizontalRangesFromClientRects(f,r,a)}}const Pfe=function(){return xa?!0:!(Ds||Yo||ea)}();let zm=!0;class f7{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1,this.endNode=t}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}}class g7{constructor(e,t){this.themeType=t;const i=e.options,s=i.get(44);this.renderWhitespace=i.get(88),this.renderControlCharacters=i.get(83),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.useMonospaceOptimizations=s.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(59),this.stopRenderingLineAfter=i.get(105),this.fontLigatures=i.get(45)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class fl{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(this._renderedViewLine)this._renderedViewLine.domNode=Bt(e);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return this._options.themeType===Gr.HIGH_CONTRAST||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(e,t,i,s){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const o=i.getViewLineRenderingData(e),r=this._options,a=$o.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let l=null;if(r.themeType===Gr.HIGH_CONTRAST||this._options.renderWhitespace==="selection"){const h=i.selections;for(const f of h){if(f.endLineNumbere)continue;const g=f.startLineNumber===e?f.startColumn:o.minColumn,_=f.endLineNumber===e?f.endColumn:o.maxColumn;g<_&&(r.themeType===Gr.HIGH_CONTRAST||this._options.renderWhitespace!=="selection"?a.push(new $o(g,_,"inline-selected-text",0)):(l||(l=[]),l.push(new Dde(g-1,_-1))))}}const c=new eg(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==Fo.OFF,l);if(this._renderedViewLine&&this._renderedViewLine.input.equals(c))return!1;s.appendASCIIString('
    ');const d=KL(c,s);s.appendASCIIString("
    ");let u=null;return zm&&Pfe&&o.isBasicASCII&&r.useMonospaceOptimizations&&d.containsForeignElements===0&&o.content.length<300&&c.lineTokens.getCount()<100&&(u=new J0(this._renderedViewLine?this._renderedViewLine.domNode:null,c,d.characterMapping)),u||(u=Gz(this._renderedViewLine?this._renderedViewLine.domNode:null,c,d.characterMapping,d.containsRTL,d.containsForeignElements)),this._renderedViewLine=u,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof J0:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof J0?this._renderedViewLine.monospaceAssumptionsAreValid():zm}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof J0&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,s){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=this._renderedViewLine.input.stopRenderingLineAfter;let r=!1;o!==-1&&t>o+1&&i>o+1&&(r=!0),o!==-1&&t>o+1&&(t=o+1),o!==-1&&i>o+1&&(i=o+1);const a=this._renderedViewLine.getVisibleRangesForRange(e,t,i,s);return a&&a.length>0?new Rfe(r,a):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}fl.CLASS_NAME="view-line";class J0{constructor(e,t,i){this.domNode=e,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return zm;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),zm=!1),zm}toSlowRenderedLine(){return Gz(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,s){const o=this._getCharPosition(t),r=this._getCharPosition(i);return[new Hm(o,r-o)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffset(e);return this._charWidth*t}getColumnOfNodeOffset(e,t,i){const s=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new aP(o,i),s)}}class Kz{constructor(e,t,i,s,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!s||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let r=0,a=this._characterMapping.length;r<=a;r++)this._pixelOffsetCache[r]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(e,t,i,s){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const o=this._readPixelOffset(this.domNode,e,t,s);if(o===-1)return null;const r=this._readPixelOffset(this.domNode,e,i,s);return r===-1?null:[new Hm(o,r-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,s)}_readVisibleRangesForRange(e,t,i,s,o){if(i===s){const r=this._readPixelOffset(e,t,i,o);return r===-1?null:[new Hm(r,0)]}else return this._readRawVisibleRangesForRange(e,i,s,o)}_readPixelOffset(e,t,i,s){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();const o=this._getReadingTarget(e);return o.firstChild?o.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){const o=this._pixelOffsetCache[i];if(o!==-1)return o;const r=this._actualReadPixelOffset(e,t,i,s);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,s)}_actualReadPixelOffset(e,t,i,s){if(this._characterMapping.length===0){const l=WE.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,s.clientRectDeltaLeft,s.clientRectScale,s.endNode);return!l||l.length===0?-1:l[0].left}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();const o=this._characterMapping.getDomPosition(i),r=WE.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,s.clientRectDeltaLeft,s.clientRectScale,s.endNode);if(!r||r.length===0)return-1;const a=r[0].left;if(this.input.isBasicASCII){const l=this._characterMapping.getAbsoluteOffset(i),c=Math.round(this.input.spaceWidth*l);if(Math.abs(c-a)<=1)return c}return a}_readRawVisibleRangesForRange(e,t,i,s){if(t===1&&i===this._characterMapping.length)return[new Hm(0,this.getWidth())];const o=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return WE.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,r.partIndex,r.charIndex,s.clientRectDeltaLeft,s.clientRectScale,s.endNode)}getColumnOfNodeOffset(e,t,i){const s=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new aP(o,i),s)}}class Ofe extends Kz{_readVisibleRangesForRange(e,t,i,s,o){const r=super._readVisibleRangesForRange(e,t,i,s,o);if(!r||r.length===0||i===s||i===1&&s===this._characterMapping.length)return r;if(!this.input.containsRTL){const a=this._readPixelOffset(e,t,s,o);if(a!==-1){const l=r[r.length-1];l.left=t){const u=t-r;return c-t=4&&e[0]===3&&e[3]===7}static isStrictChildOfViewLines(e){return e.length>4&&e[0]===3&&e[3]===7}static isChildOfScrollableElement(e){return e.length>=2&&e[0]===3&&e[1]===5}static isChildOfMinimap(e){return e.length>=2&&e[0]===3&&e[1]===8}static isChildOfContentWidgets(e){return e.length>=4&&e[0]===3&&e[3]===1}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&e[0]===2}static isChildOfOverlayWidgets(e){return e.length>=2&&e[0]===3&&e[1]===4}}class _p{constructor(e,t,i){this.viewModel=e.viewModel;const s=e.configuration.options;this.layoutInfo=s.get(131),this.viewDomNode=t.viewDomNode,this.lineHeight=s.get(59),this.stickyTabStops=s.get(104),this.typicalHalfwidthCharacterWidth=s.get(44).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return _p.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const s=i.verticalOffset+i.height/2,o=e.viewModel.getLineCount();let r=null,a,l=null;return i.afterLineNumber!==o&&(l=new Z(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new Z(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),l===null?a=r:r===null?a=l:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,cs._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class AP extends Wfe{constructor(e,t,i,s,o){super(e,t,i,s),this._ctx=e,o?(this.target=o,this.targetPath=Rl.collect(o,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} + target: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(e=null){return e&&e.columnr.contentLeft+r.width)continue;const a=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(a<=o&&o<=a+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const s=t.isInContentArea?8:5;return t.fulfillViewZone(s,i.position,i)}return null}static _hitTestTextArea(e,t){return Pr.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),s=i.range.getStartPosition();let o=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,s,i.range,r):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,s,i.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,s,i.range,r)))}return null}static _hitTestViewLines(e,t,i){if(!Pr.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Z(1,1),m7);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const o=e.viewModel.getLineCount(),r=e.viewModel.getLineMaxColumn(o);return t.fulfillContentEmpty(new Z(o,r),m7)}if(i){if(Pr.isStrictChildOfViewLines(t.targetPath)){const o=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.viewModel.getLineLength(o)===0){const a=e.getLineWidth(o),l=HE(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(new Z(o,1),l)}const r=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>=r){const a=HE(t.mouseContentHorizontalOffset-r),l=new Z(o,e.viewModel.getLineMaxColumn(o));return t.fulfillContentEmpty(l,a)}}return t.fulfillUnknown()}const s=cs._doHitTest(e,t);return s.type===1?cs.createMouseTargetFromHitTestPosition(e,t,s.spanNode,s.position,s.injectedText):this._createMouseTarget(e,t.withTarget(s.hitTarget),!0)}static _hitTestMinimap(e,t){if(Pr.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Z(i,s))}return null}static _hitTestScrollbarSlider(e,t){if(Pr.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const s=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.viewModel.getLineMaxColumn(s);return t.fulfillScrollbar(new Z(s,o))}}return null}static _hitTestScrollbar(e,t){if(Pr.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Z(i,s))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(131),s=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return cs._getMouseColumn(s,t.get(44).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,s,o){const r=s.lineNumber,a=s.column,l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>l){const b=HE(t.mouseContentHorizontalOffset-l);return t.fulfillContentEmpty(s,b)}const c=e.visibleRangeForPosition(r,a);if(!c)return t.fulfillUnknown(s);const d=c.left;if(t.mouseContentHorizontalOffset===d)return t.fulfillContentText(s,null,{mightBeForeignElement:!!o,injectedText:o});const u=[];if(u.push({offset:c.left,column:a}),a>1){const b=e.visibleRangeForPosition(r,a-1);b&&u.push({offset:b.left,column:a-1})}const h=e.viewModel.getLineMaxColumn(r);if(ab.offset-v.offset);const f=t.pos.toClientCoordinates(),g=i.getBoundingClientRect(),_=g.left<=f.clientX&&f.clientX<=g.right;for(let b=1;b=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const a=new TP(t.pos.x,r),l=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());return l.type===1?l:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=du(e.viewDomNode);let s;if(i?typeof i.caretRangeFromPoint>"u"?s=Hfe(i,t.clientX,t.clientY):s=i.caretRangeFromPoint(t.clientX,t.clientY):s=document.caretRangeFromPoint(t.clientX,t.clientY),!s||!s.startContainer)return new kd;const o=s.startContainer;if(o.nodeType===o.TEXT_NODE){const r=o.parentNode,a=r?r.parentNode:null,l=a?a.parentNode:null;return(l&&l.nodeType===l.ELEMENT_NODE?l.className:null)===fl.CLASS_NAME?vh.createFromDOMInfo(e,r,s.startOffset):new kd(o.parentNode)}else if(o.nodeType===o.ELEMENT_NODE){const r=o.parentNode,a=r?r.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===fl.CLASS_NAME?vh.createFromDOMInfo(e,o,o.textContent.length):new kd(o)}return new kd}static _doHitTestWithCaretPositionFromPoint(e,t){const i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const s=i.offsetNode.parentNode,o=s?s.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===fl.CLASS_NAME?vh.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new kd(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const s=i.offsetNode.parentNode,o=s&&s.nodeType===s.ELEMENT_NODE?s.className:null,r=s?s.parentNode:null,a=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(o===fl.CLASS_NAME){const l=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(l)return vh.createFromDOMInfo(e,l,0)}else if(a===fl.CLASS_NAME)return vh.createFromDOMInfo(e,i.offsetNode,0)}return new kd(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:s}=t.model.getOptions(),o=Pv.atomicPosition(i,e.column-1,s,2);return o!==-1?new Z(e.lineNumber,o+1):e}static _doHitTest(e,t){let i=new kd;if(typeof document.caretRangeFromPoint=="function"?i=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),i.type===1){const s=e.viewModel.getInjectedTextAt(i.position),o=e.viewModel.normalizePosition(i.position,2);(s||!o.equals(i.position))&&(i=new HN(o,i.spanNode,s))}return i.type===1&&e.stickyTabStops&&(i=new HN(this._snapToSoftTabBoundary(i.position,e.viewModel),i.spanNode,i.injectedText)),i}}function Hfe(n,e,t){const i=document.createRange();let s=n.elementFromPoint(e,t);if(s!==null){for(;s&&s.firstChild&&s.firstChild.nodeType!==s.firstChild.TEXT_NODE&&s.lastChild&&s.lastChild.firstChild;)s=s.lastChild;const o=s.getBoundingClientRect(),r=window.getComputedStyle(s,null).getPropertyValue("font"),a=s.innerText;let l=o.left,c=0,d;if(e>o.left+o.width)c=a.length;else{const u=Th.getInstance();for(let h=0;hthis._createMouseTarget(r,a),r=>this._getMouseColumn(r))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(131).height;const s=new kfe(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,r=>this._onContextMenu(r,!0))),this._register(s.onMouseMoveThrottled(this.viewHelper.viewDomNode,r=>this._onMouseMove(r),Qy(this.mouseTargetFactory),bf.MOUSE_MOVE_MINIMUM_TIME)),this._register(s.onMouseUp(this.viewHelper.viewDomNode,r=>this._onMouseUp(r))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,r=>this._onMouseLeave(r))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,r=>this._onMouseDown(r)));const o=r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(68))return;const a=new hp(r);if(wt?(r.metaKey||r.ctrlKey)&&!r.shiftKey&&!r.altKey:r.ctrlKey&&!r.metaKey&&!r.shiftKey&&!r.altKey){const c=$c.getZoomLevel(),d=a.deltaY>0?1:-1;$c.setZoomLevel(c+d),a.preventDefault(),a.stopPropagation()}};this._register(de(this.viewHelper.viewDomNode,Xe.MOUSE_WHEEL,o,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(131)){const t=this._context.configuration.options.get(131).height;this._height!==t&&(this._height=t,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const s=new Uz(e,t).toPageCoordinates(),o=jz(this.viewHelper.viewDomNode);if(s.yo.y+o.height||s.xo.x+o.width)return null;const r=qz(this.viewHelper.viewDomNode,o,s);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),o,s,r,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const s=du(this.viewHelper.viewDomNode);s&&(i=s.elementsFromPoint(e.posx,e.posy).find(o=>this.viewHelper.viewDomNode.contains(o)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(i||o&&r))d(),this._mouseDownOperation.start(t.type,e);else if(s)e.preventDefault();else if(a){const u=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(u.viewZoneId)&&(d(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(d(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}bf.MOUSE_MOVE_MINIMUM_TIME=100;class zfe extends J{constructor(e,t,i,s,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=s,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new Efe(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new xo),this._mouseState=new fk,this._currentSelection=new Fe(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const i=this._findMousePosition(t,!0);if(!i||!i.position)return;this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;const s=this._context.configuration.options;if(!s.get(81)&&s.get(31)&&!s.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&i.type===6&&i.position&&this._currentSelection.containsPosition(i.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Qy(null),o=>this._onMouseDownThenMove(o),o=>{const r=this._findMousePosition(this._lastMouseEvent,!0);o&&o instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:r?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Qy(null),o=>this._onMouseDownThenMove(o),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,s=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const a=s.getCurrentScrollTop()+e.relativePos.y,l=_p.getZoneAtCoord(this._context,a);if(l){const d=this._helpPositionJumpOverViewZone(l);if(d)return Zs.createOutsideEditor(o,d)}const c=s.getLineNumberAtVerticalOffset(a);return Zs.createOutsideEditor(o,new Z(c,i.getLineMaxColumn(c)))}const r=s.getLineNumberAtVerticalOffset(s.getCurrentScrollTop()+e.relativePos.y);return e.posxt.x+t.width?Zs.createOutsideEditor(o,new Z(r,i.getLineMaxColumn(r))):null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const s=this._createMouseTarget(e,t);if(!s.position)return null;if(s.type===8||s.type===5){const r=this._helpPositionJumpOverViewZone(s.detail);if(r)return Zs.createViewZone(s.type,s.element,s.mouseColumn,r,s.detail)}return s}_helpPositionJumpOverViewZone(e){const t=new Z(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,s=e.positionAfter;return i&&s?i.isBefore(t)?i:s:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:e.type===6&&e.detail.injectedText!==null})}}class fk{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=new Date().getTime();i-this._lastSetMouseDownCountTime>fk.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}fk.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ba;(function(n){n.text="text/plain",n.binary="application/octet-stream",n.unknown="application/unknown",n.markdown="text/markdown",n.latex="text/latex",n.uriList="text/uri-list"})(ba||(ba={}));class us{constructor(e,t,i,s,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=s,this.selectionEndPosition=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e){return new us(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new us(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const s=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,s,-1)}if(e>=this.selectionEnd){const s=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,s,1)}const t=this.value.substring(this.selectionStart,e);if(t.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)}_finishDeduceEditorPosition(e,t,i){let s=0,o=-1;for(;(o=t.indexOf(` +`,o+1))!==-1;)s++;return[e,i*t.length,s]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const s=Math.min(cp(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(My(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd);e.value.substring(s,e.value.length-o);const r=t.value.substring(s,t.value.length-o),a=e.selectionStart-s,l=e.selectionEnd-s,c=t.selectionStart-s,d=t.selectionEnd-s;if(c===d){const h=e.selectionStart-s;return{text:r,replacePrevCharCnt:h,replaceNextCharCnt:0,positionDelta:0}}const u=l-a;return{text:r,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(cp(e.value,t.value),e.selectionEnd),s=Math.min(My(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-s),r=t.value.substring(i,t.value.length-s);e.selectionStart-i;const a=e.selectionEnd-i;t.selectionStart-i;const l=t.selectionEnd-i;return{text:r,replacePrevCharCnt:a,replaceNextCharCnt:o.length-a,positionDelta:l-r.length}}}us.EMPTY=new us("",0,0,null,null);class gm{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,s=i+1,o=i+t;return new T(s,1,o+1,1)}static fromEditorSelection(e,t,i,s,o){const r=gm._getPageOfLine(i.startLineNumber,s),a=gm._getRangeForPage(r,s),l=gm._getPageOfLine(i.endLineNumber,s),c=gm._getRangeForPage(l,s),d=a.intersectRanges(new T(1,1,i.startLineNumber,i.startColumn));let u=t.getValueInRange(d,1);const h=t.getLineCount(),f=t.getLineMaxColumn(h),g=c.intersectRanges(new T(i.endLineNumber,i.endColumn,h,f));let _=t.getValueInRange(g,1),b;if(r===l||r+1===l)b=t.getValueInRange(i,1);else{const v=a.intersectRanges(i),C=c.intersectRanges(i);b=t.getValueInRange(v,1)+String.fromCharCode(8230)+t.getValueInRange(C,1)}return o&&(u.length>500&&(u=u.substring(u.length-500,u.length)),_.length>500&&(_=_.substring(0,500)),b.length>2*500&&(b=b.substring(0,500)+String.fromCharCode(8230)+b.substring(b.length-500,b.length))),new us(u+b+_,u.length,u.length+b.length,new Z(i.startLineNumber,i.startColumn),new Z(i.endLineNumber,i.endColumn))}}var Jy;(function(n){n.Tap="-monaco-textarea-synthetic-tap"})(Jy||(Jy={}));const zN={forceCopyWithSyntaxHighlighting:!1};class Ov{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}Ov.INSTANCE=new Ov;class $fe{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";const t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}class Ufe extends J{constructor(e,t,i,s){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=s,this._onFocus=this._register(new j),this.onFocus=this._onFocus.event,this._onBlur=this._register(new j),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new j),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new j),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new j),this.onCut=this._onCut.event,this._onPaste=this._register(new j),this.onPaste=this._onPaste.event,this._onType=this._register(new j),this.onType=this._onType.event,this._onCompositionStart=this._register(new j),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new j),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new j),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new j),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new ni(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new ni(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=us.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown(r=>{const a=new Si(r);(a.keyCode===109||this._currentComposition&&a.keyCode===1)&&a.stopPropagation(),a.equals(9)&&a.preventDefault(),o=a,this._onKeyDown.fire(a)})),this._register(this._textArea.onKeyUp(r=>{const a=new Si(r);this._onKeyUp.fire(a)})),this._register(this._textArea.onCompositionStart(r=>{const a=new $fe;if(this._currentComposition){this._currentComposition=a;return}if(this._currentComposition=a,this._OS===2&&o&&o.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===r.data&&(o.code==="ArrowRight"||o.code==="ArrowLeft")){a.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:r.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:r.data});return}this._onCompositionStart.fire({data:r.data})})),this._register(this._textArea.onCompositionUpdate(r=>{const a=this._currentComposition;if(!a)return;if(this._browser.isAndroid){const c=us.readFromTextArea(this._textArea),d=us.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(d),this._onCompositionUpdate.fire(r);return}const l=a.handleCompositionUpdate(r.data);this._textAreaState=us.readFromTextArea(this._textArea),this._onType.fire(l),this._onCompositionUpdate.fire(r)})),this._register(this._textArea.onCompositionEnd(r=>{const a=this._currentComposition;if(!a)return;if(this._currentComposition=null,this._browser.isAndroid){const c=us.readFromTextArea(this._textArea),d=us.deduceAndroidCompositionInput(this._textAreaState,c);this._textAreaState=c,this._onType.fire(d),this._onCompositionEnd.fire();return}const l=a.handleCompositionUpdate(r.data);this._textAreaState=us.readFromTextArea(this._textArea),this._onType.fire(l),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(r=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const a=us.readFromTextArea(this._textArea),l=us.deduceInput(this._textAreaState,a,this._OS===2);l.replacePrevCharCnt===0&&l.text.length===1&&wn(l.text.charCodeAt(0))||(this._textAreaState=a,(l.text!==""||l.replacePrevCharCnt!==0||l.replaceNextCharCnt!==0||l.positionDelta!==0)&&this._onType.fire(l))})),this._register(this._textArea.onCut(r=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(r),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(r=>{this._ensureClipboardGetsEditorSelection(r)})),this._register(this._textArea.onPaste(r=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),r.preventDefault(),!r.clipboardData)return;let[a,l]=p7.getTextData(r.clipboardData);a&&(l=l||Ov.INSTANCE.get(a),this._onPaste.fire({text:a,metadata:l}))})),this._register(this._textArea.onFocus(()=>{const r=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!r&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return de(document,"selectionchange",t=>{if(!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const i=Date.now(),s=i-e;if(e=i,s<5)return;const o=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const c=this._textAreaState.deduceEditorPosition(a),d=this._host.deduceModelPosition(c[0],c[1],c[2]),u=this._textAreaState.deduceEditorPosition(l),h=this._host.deduceModelPosition(u[0],u[1],u[2]),f=new Fe(d.lineNumber,d.column,h.lineNumber,h.column);this._onSelectionChangeRequest.fire(f)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};Ov.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,` +`):t.text,i),e.preventDefault(),e.clipboardData&&p7.setTextData(e.clipboardData,t.text,t.html,i)}}class p7{static getTextData(e){const t=e.getData(ba.text);let i=null;const s=e.getData("vscode-editor-data");if(typeof s=="string")try{i=JSON.parse(s),i.version!==1&&(i=null)}catch{}return[t,i]}static setTextData(e,t,i,s){e.setData(ba.text,t),typeof i=="string"&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(s))}}class jfe extends J{constructor(e){super(),this._actual=e,this.onKeyDown=this._register(la(this._actual,"keydown")).event,this.onKeyUp=this._register(la(this._actual,"keyup")).event,this.onCompositionStart=this._register(la(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(la(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(la(this._actual,"compositionend")).event,this.onInput=this._register(la(this._actual,"input")).event,this.onCut=this._register(la(this._actual,"cut")).event,this.onCopy=this._register(la(this._actual,"copy")).event,this.onPaste=this._register(la(this._actual,"paste")).event,this.onFocus=this._register(la(this._actual,"focus")).event,this.onBlur=this._register(la(this._actual,"blur")).event,this._onSyntheticTap=this._register(new j),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(de(this._actual,Jy.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const e=du(this._actual);return e?e.activeElement===this._actual:dP(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const s=this._actual;let o=null;const r=du(s);r?o=r.activeElement:o=document.activeElement;const a=o===s,l=s.selectionStart,c=s.selectionEnd;if(a&&l===t&&c===i){Yo&&window.parent!==window&&s.focus();return}if(a){this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),Yo&&window.parent!==window&&s.focus();return}try{const d=pue(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),_ue(s,d)}catch{}}}class qfe extends bf{constructor(e,t,i){super(e,t,i),this._register(Jt.addTarget(this.viewHelper.linesContentDomNode)),this._register(de(this.viewHelper.linesContentDomNode,pi.Tap,o=>this.onTap(o))),this._register(de(this.viewHelper.linesContentDomNode,pi.Change,o=>this.onChange(o))),this._register(de(this.viewHelper.linesContentDomNode,pi.Contextmenu,o=>this._onContextMenu(new _f(o,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(de(this.viewHelper.linesContentDomNode,"pointerdown",o=>{const r=o.pointerType;if(r==="mouse"){this._lastPointerType="mouse";return}else r==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const s=new xfe(this.viewHelper.viewDomNode);this._register(s.onPointerMoveThrottled(this.viewHelper.viewDomNode,o=>this._onMouseMove(o),Qy(this.mouseTargetFactory),bf.MOUSE_MOVE_MINIMUM_TIME)),this._register(s.onPointerUp(this.viewHelper.viewDomNode,o=>this._onMouseUp(o))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,o=>this._onMouseLeave(o))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,o=>this._onMouseDown(o)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new _f(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:t.type===6&&t.detail.injectedText!==null})}onChange(e){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){e.browserEvent.pointerType!=="touch"&&super._onMouseDown(e)}}class Kfe extends bf{constructor(e,t,i){super(e,t,i),this._register(Jt.addTarget(this.viewHelper.linesContentDomNode)),this._register(de(this.viewHelper.linesContentDomNode,pi.Tap,s=>this.onTap(s))),this._register(de(this.viewHelper.linesContentDomNode,pi.Change,s=>this.onChange(s))),this._register(de(this.viewHelper.linesContentDomNode,pi.Contextmenu,s=>this._onContextMenu(new _f(s,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new _f(e,this.viewHelper.viewDomNode),!1);if(t.position){const i=document.createEvent("CustomEvent");i.initEvent(Jy.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(i),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class Gfe extends J{constructor(e,t,i){super(),Ta&&YL.pointerEvents?this.handler=this._register(new qfe(e,t,i)):window.TouchEvent?this.handler=this._register(new Kfe(e,t,i)):this.handler=this._register(new bf(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}class u_ extends e0{}const Yfe=F("editor.lineHighlightBackground",{dark:null,light:null,hc:null},m("lineHighlight","Background color for the highlight of line at the cursor position.")),_7=F("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},m("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),Zfe=F("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},m("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Xfe=F("editor.rangeHighlightBorder",{dark:null,light:null,hc:Is},m("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),Qfe=F("editor.symbolHighlightBackground",{dark:Jd,light:Jd,hc:null},m("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),Jfe=F("editor.symbolHighlightBorder",{dark:null,light:null,hc:Is},m("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),Yz=F("editorCursor.foreground",{dark:"#AEAFAD",light:X.black,hc:X.white},m("caret","Color of the editor cursor.")),ege=F("editorCursor.background",null,m("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),Yh=F("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},m("editorWhitespaces","Color of whitespace characters in the editor.")),gk=F("editorIndentGuide.background",{dark:Yh,light:Yh,hc:Yh},m("editorIndentGuides","Color of the editor indentation guides.")),mk=F("editorIndentGuide.activeBackground",{dark:Yh,light:Yh,hc:Yh},m("editorActiveIndentGuide","Color of the active editor indentation guides.")),Zz=F("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:X.white},m("editorLineNumbers","Color of editor line numbers.")),zE=F("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:Is},m("editorActiveLineNumber","Color of editor active line number"),!1,m("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),tge=F("editorLineNumber.activeForeground",{dark:zE,light:zE,hc:zE},m("editorActiveLineNumber","Color of editor active line number")),ige=F("editorRuler.foreground",{dark:"#5A5A5A",light:X.lightgrey,hc:X.white},m("editorRuler","Color of the editor rulers."));F("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},m("editorCodeLensForeground","Foreground color of editor CodeLens"));const nge=F("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},m("editorBracketMatchBackground","Background color behind matching brackets")),Xz=F("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:Ii},m("editorBracketMatchBorder","Color for matching brackets boxes")),sge=F("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},m("editorOverviewRulerBorder","Color of the overview ruler border.")),oge=F("editorOverviewRuler.background",null,m("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),rge=F("editorGutter.background",{dark:no,light:no,hc:no},m("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),age=F("editorUnnecessaryCode.border",{dark:null,light:null,hc:X.fromHex("#fff").transparent(.8)},m("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),lge=F("editorUnnecessaryCode.opacity",{dark:X.fromHex("#000a"),light:X.fromHex("#0007"),hc:null},m("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),cge=F("editorGhostText.border",{dark:null,light:null,hc:X.fromHex("#fff").transparent(.8)},m("editorGhostTextBorder","Border color of ghost text in the editor.")),dge=F("editorGhostText.foreground",{dark:X.fromHex("#ffffff56"),light:X.fromHex("#0007"),hc:null},m("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),uge=F("editorGhostText.background",{dark:null,light:null,hc:null},m("editorGhostTextBackground","Background color of the ghost text in the editor.")),$E=new X(new It(0,122,204,.6)),hge=F("editorOverviewRuler.rangeHighlightForeground",{dark:$E,light:$E,hc:$E},m("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),fge=F("editorOverviewRuler.errorForeground",{dark:new X(new It(255,18,18,.7)),light:new X(new It(255,18,18,.7)),hc:new X(new It(255,50,50,1))},m("overviewRuleError","Overview ruler marker color for errors.")),gge=F("editorOverviewRuler.warningForeground",{dark:Yr,light:Yr,hc:dk},m("overviewRuleWarning","Overview ruler marker color for warnings.")),mge=F("editorOverviewRuler.infoForeground",{dark:Ko,light:Ko,hc:SP},m("overviewRuleInfo","Overview ruler marker color for infos.")),Qz=F("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hc:"#FFD700"},m("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),Jz=F("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hc:"#DA70D6"},m("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),e$=F("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hc:"#87CEFA"},m("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),t$=F("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),i$=F("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),n$=F("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),pge=F("editorBracketHighlight.unexpectedBracket.foreground",{dark:new X(new It(255,18,18,.8)),light:new X(new It(255,18,18,.8)),hc:new X(new It(255,50,50,1))},m("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),_ge=F("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),bge=F("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),vge=F("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Cge=F("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),wge=F("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),yge=F("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),Sge=F("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),Lge=F("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),kge=F("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),xge=F("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),Ege=F("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),Dge=F("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},m("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));F("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hc:"#ff0000"},m("editorUnicodeHighlight.border","Border color used to highlight unicode characters."));bi((n,e)=>{const t=n.getColor(no);t&&e.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${t}; }`);const i=n.getColor(Xd);i&&e.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`);const s=n.getColor(rge);s&&e.addRule(`.monaco-editor .margin { background-color: ${s}; }`);const o=n.getColor(Zfe);o&&e.addRule(`.monaco-editor .rangeHighlight { background-color: ${o}; }`);const r=n.getColor(Xfe);r&&e.addRule(`.monaco-editor .rangeHighlight { border: 1px ${n.type==="hc"?"dotted":"solid"} ${r}; }`);const a=n.getColor(Qfe);a&&e.addRule(`.monaco-editor .symbolHighlight { background-color: ${a}; }`);const l=n.getColor(Jfe);l&&e.addRule(`.monaco-editor .symbolHighlight { border: 1px ${n.type==="hc"?"dotted":"solid"} ${l}; }`);const c=n.getColor(Yh);c&&(e.addRule(`.monaco-editor .mtkw { color: ${c} !important; }`),e.addRule(`.monaco-editor .mtkz { color: ${c} !important; }`))});class bp extends u_{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Z(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(59);const t=e.get(60);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(84);const i=e.get(131);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Z(e,1));if(t.column!==1)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(this._renderLineNumbers===2){const s=Math.abs(this._lastCursorModelPosition.lineNumber-i);return s===0?''+i+"":String(s)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===i||i%10===0?String(i):"":String(i)}prepareRender(e){if(this._renderLineNumbers===0){this._renderResult=null;return}const t=Ds?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,o='
    ',r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=s;l++){const c=l-i;if(!this._renderFinalNewline&&l===r&&this._context.viewModel.getLineLength(l)===0){a[c]="";continue}const d=this._getLineRenderLineNumber(l);d?l===this._activeLineNumber?a[c]='
    '+d+"
    ":a[c]=o+d+"
    ":a[c]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}bp.CLASS_NAME="line-numbers";bi((n,e)=>{const t=n.getColor(Zz);t&&e.addRule(`.monaco-editor .line-numbers { color: ${t}; }`);const i=n.getColor(tge);i&&e.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${i}; }`)});class vf extends xr{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=Bt(document.createElement("div")),this._domNode.setClassName(vf.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Bt(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(vf.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}vf.CLASS_NAME="glyph-margin";vf.OUTER_CLASS_NAME="margin";const Zh="monaco-mouse-cursor-text";class Ige{constructor(e,t,i,s,o){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=s,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Z(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Z(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(e?this._previousPresentation=e:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const z_=Yo;class Nge extends xr{constructor(e,t,i){super(e),this._primaryCursorPosition=new Z(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const s=this._context.configuration.options,o=s.get(131);this._setAccessibilityOptions(s),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=s.get(44),this._lineHeight=s.get(59),this._emptySelectionClipboard=s.get(32),this._copyWithSyntaxHighlighting=s.get(21),this._visibleTextArea=null,this._selections=[new Fe(1,1,1,1)],this._modelSelections=[new Fe(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Bt(document.createElement("textarea")),Rl.write(this.textArea,6),this.textArea.setClassName(`inputarea ${Zh}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(s)),this.textArea.setAttribute("tabindex",String(s.get(112))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",m("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),s.get(30)&&s.get(81)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Bt(document.createElement("div")),this.textAreaCover.setPosition("absolute");const r={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:c=>this._context.viewModel.getLineMaxColumn(c),getValueInRange:(c,d)=>this._context.viewModel.getValueInRange(c,d)},a={getDataToCopy:()=>{const c=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,qn),d=this._context.viewModel.model.getEOL(),u=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),h=Array.isArray(c)?c:null,f=Array.isArray(c)?c.join(d):c;let g,_=null;if(zN.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&f.length<65536){const b=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);b&&(g=b.html,_=b.mode)}return{isFromEmptySelection:u,multicursorText:h,text:f,html:g,mode:_}},getScreenReaderContent:c=>{if(this._accessibilitySupport===1){if(wt){const d=this._selections[0];if(d.isEmpty()){const u=d.getStartPosition();let h=this._getWordBeforePosition(u);if(h.length===0&&(h=this._getCharacterBeforePosition(u)),h.length>0)return new us(h,h.length,h.length,u,u)}}return us.EMPTY}if(kH){const d=this._selections[0];if(d.isEmpty()){const u=d.getStartPosition(),[h,f]=this._getAndroidWordAtPosition(u);if(h.length>0)return new us(h,f,f,u,u)}return us.EMPTY}return gm.fromEditorSelection(c,r,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(c,d,u)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(c,d,u)},l=this._register(new jfe(this.textArea.domNode));this._textAreaInput=this._register(new Ufe(a,l,or,Gle)),this._register(this._textAreaInput.onKeyDown(c=>{this._viewController.emitKeyDown(c)})),this._register(this._textAreaInput.onKeyUp(c=>{this._viewController.emitKeyUp(c)})),this._register(this._textAreaInput.onPaste(c=>{let d=!1,u=null,h=null;c.metadata&&(d=this._emptySelectionClipboard&&!!c.metadata.isFromEmptySelection,u=typeof c.metadata.multicursorText<"u"?c.metadata.multicursorText:null,h=c.metadata.mode),this._viewController.paste(c.text,d,u,h)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(c=>{c.replacePrevCharCnt||c.replaceNextCharCnt||c.positionDelta?this._viewController.compositionType(c.text,c.replacePrevCharCnt,c.replaceNextCharCnt,c.positionDelta):this._viewController.type(c.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(c=>{this._viewController.setSelection(c)})),this._register(this._textAreaInput.onCompositionStart(c=>{const d=this.textArea.domNode,u=this._modelSelections[0],{distanceToModelLineStart:h,widthOfHiddenTextBefore:f}=(()=>{const _=d.value.substring(0,Math.min(d.selectionStart,d.selectionEnd)),b=_.lastIndexOf(` +`),v=_.substring(b+1),C=v.lastIndexOf(" "),y=v.length-C-1,S=u.getStartPosition(),x=Math.min(S.column-1,y),A=S.column-1-x,E=v.substring(0,v.length-x),D=Tge(E,this._fontInfo);return{distanceToModelLineStart:A,widthOfHiddenTextBefore:D}})(),{distanceToModelLineEnd:g}=(()=>{const _=d.value.substring(Math.max(d.selectionStart,d.selectionEnd)),b=_.indexOf(` +`),v=b===-1?_:_.substring(0,b),C=v.indexOf(" "),y=C===-1?v.length:v.length-C-1,S=u.getEndPosition(),x=Math.min(this._context.viewModel.model.getLineMaxColumn(S.lineNumber)-S.column,y);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(S.lineNumber)-S.column-x}})();this._context.viewModel.revealRange("keyboard",!0,T.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ige(this._context,u.startLineNumber,h,f,g),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Zh} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(c=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${Zh}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',i=this._context.viewModel.getLineContent(e.lineNumber),s=vr(t);let o=!0,r=e.column,a=!0,l=e.column,c=0;for(;c<50&&(o||a);){if(o&&r<=1&&(o=!1),o){const d=i.charCodeAt(r-2);s.get(d)!==0?o=!1:r--}if(a&&l>i.length&&(a=!1),a){const d=i.charCodeAt(l-1);s.get(d)!==0?a=!1:l++}c++}return[i.substring(r-1,l-1),e.column-r]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=vr(this._context.configuration.options.get(117));let s=e.column,o=0;for(;s>1;){const r=t.charCodeAt(s-2);if(i.get(r)!==0||o>50)return t.substring(s-1,e.column-1);o++,s--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const i=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!wn(i.charCodeAt(0)))return i}return""}_getAriaLabel(e){return e.get(2)===1?m("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",Ds?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);this._accessibilitySupport===2&&t===Ba.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(44),this._lineHeight=t.get(59),this._emptySelectionClipboard=t.get(32),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(112))),(e.hasChanged(30)||e.hasChanged(81))&&(t.get(30)&&t.get(81)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new Z(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea&&this._visibleTextArea.prepareRender(e)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea){const i=this._visibleTextArea.visibleTextareaStart,s=this._visibleTextArea.visibleTextareaEnd,o=this._visibleTextArea.startPosition,r=this._visibleTextArea.endPosition;if(o&&r&&i&&s&&s.left>=this._scrollLeft&&i.left<=this._scrollLeft+this._contentWidth){const a=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,l=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let c=this._visibleTextArea.widthOfHiddenLineTextBefore,d=this._contentLeft+i.left-this._scrollLeft,u=s.left-i.left+1;if(dthis._contentWidth&&(u=this._contentWidth);const h=this._context.viewModel.getViewLineData(o.lineNumber),f=h.tokens.findTokenIndexAtOffset(o.column-1),g=h.tokens.findTokenIndexAtOffset(r.column-1),_=f===g,b=this._visibleTextArea.definePresentation(_?h.tokens.getPresentation(f):null);this.textArea.domNode.scrollTop=l*this._lineHeight,this.textArea.domNode.scrollLeft=c,this._doRender({lastRenderPosition:null,top:a,left:d,width:u,height:this._lineHeight,useCover:!1,color:(Ri.getColorMap()||[])[b.foreground],italic:b.italic,bold:b.bold,underline:b.underline,strikethrough:b.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight){this._renderAtTopLeft();return}if(wt){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:z_?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:z_?0:1,height:z_?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;do{if(i=e.indexOf(` +`,i+1),i===-1)break;t++}while(!0);return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:z_?0:1,height:z_?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;_s(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?X.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const s=this._context.configuration.options;s.get(50)?i.setClassName("monaco-editor-background textAreaCover "+vf.OUTER_CLASS_NAME):s.get(60).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+bp.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}}function Tge(n,e){if(n.length===0)return 0;const t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";const i=document.createElement("span");_s(i,e),i.style.whiteSpace="pre",i.append(n),t.appendChild(i),document.body.appendChild(t);const s=i.offsetWidth;return document.body.removeChild(t),s}function Age(n,e,t){let i=0;for(let o=0;o!0,Rge=()=>!1,Pge=n=>n===" "||n===" ";class Pg{constructor(e,t,i,s){this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,r=o.get(131);this.readOnly=o.get(81),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(104),this.lineHeight=o.get(59),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(116),this.wordSeparators=o.get(117),this.emptySelectionClipboard=o.get(32),this.copyWithSyntaxHighlighting=o.get(21),this.multiCursorMergeOverlapping=o.get(69),this.multiCursorPaste=o.get(71),this.autoClosingBrackets=o.get(5),this.autoClosingQuotes=o.get(8),this.autoClosingDelete=o.get(6),this.autoClosingOvertype=o.get(7),this.autoSurround=o.get(11),this.autoIndent=o.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const l of a)this.surroundingPairs[l.open]=l.close}static shouldRecreate(e){return e.hasChanged(131)||e.hasChanged(117)||e.hasChanged(32)||e.hasChanged(69)||e.hasChanged(71)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(116)||e.hasChanged(59)||e.hasChanged(81)}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||e===void 0?void 0:e.getElectricCharacters();if(t)for(const i of t)this._electricChars[i]=!0}return this._electricChars}onElectricCharacter(e,t,i){const s=Oy(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return o?o.onElectricCharacter(e,s,i-s.firstCharOffset):null}normalizeIndentation(e){return eS(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return Pge;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e);case"always":return Mge;case"never":return Rge}}_getLanguageDefinedShouldAutoClose(e){const t=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet();return i=>t.indexOf(i)!==-1}visibleColumnFromColumn(e,t){return Cn.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const s=Cn.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(sr?r:s}}let Dt=class s${constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new Oge(e)}static fromViewState(e){return new Fge(e)}static fromModelSelection(e){const t=Fe.liftSelection(e),i=new $n(T.fromPositions(t.getSelectionStart()),0,t.getPosition(),0);return s$.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,s=e.length;io,c=s>r,d=sr||vs||b0&&s--,Ch.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,s)}static columnSelectRight(e,t,i){let s=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let l=o;l<=r;l++){const c=t.getLineMaxColumn(l),d=e.visibleColumnFromColumn(t,new Z(l,c));s=Math.max(s,d)}let a=i.toViewVisualColumn;return ae.getLineMinColumn(t.lineNumber))return t.delta(void 0,-CH(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new Z(i,e.getLineMaxColumn(i))}else return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const s=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),r=Pv.atomicPosition(o,t.column-1,i,0);if(r!==-1&&r+1>=s)return new Z(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const s=e.stickyTabStops?Ht.leftPositionAtomicSoftTabs(t,i,e.tabSize):Ht.leftPosition(t,i);return new UE(s.lineNumber,s.column,0)}static moveLeft(e,t,i,s,o){let r,a;if(i.hasSelection()&&!s)r=i.selection.startLineNumber,a=i.selection.startColumn;else{const l=i.position.delta(void 0,-(o-1)),c=t.normalizePosition(Ht.clipPositionColumn(l,t),0),d=Ht.left(e,t,c);r=d.lineNumber,a=d.column}return i.move(s,r,a,0)}static clipPositionColumn(e,t){return new Z(e.lineNumber,Ht.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return id?(i=d,a?s=t.getLineMaxColumn(i):s=Math.min(t.getLineMaxColumn(i),s)):s=e.columnFromVisibleColumn(t,i,c),f?o=0:o=c-Cn.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize),l!==void 0){const g=new Z(i,s),_=t.normalizePosition(g,l);o=o+(s-_.column),i=_.lineNumber,s=_.column}return new UE(i,s,o)}static down(e,t,i,s,o,r,a){return this.vertical(e,t,i,s,o,i+r,a,1)}static moveDown(e,t,i,s,o){let r,a;i.hasSelection()&&!s?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);const l=Ht.down(e,t,r,a,i.leftoverVisibleColumns,o,!0);return i.move(s,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const s=i.selection,o=Ht.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),r=Ht.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new $n(new T(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new Z(r.lineNumber,r.column),r.leftoverVisibleColumns)}static up(e,t,i,s,o,r,a){return this.vertical(e,t,i,s,o,i-r,a,0)}static moveUp(e,t,i,s,o){let r,a;i.hasSelection()&&!s?(r=i.selection.startLineNumber,a=i.selection.startColumn):(r=i.position.lineNumber,a=i.position.column);const l=Ht.up(e,t,r,a,i.leftoverVisibleColumns,o,!0);return i.move(s,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateUp(e,t,i){const s=i.selection,o=Ht.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),r=Ht.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new $n(new T(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new Z(r.lineNumber,r.column),r.leftoverVisibleColumns)}static _isBlankLine(e,t){return e.getLineFirstNonWhitespaceColumn(t)===0}static moveToPrevBlankLine(e,t,i,s){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(s,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,s){const o=t.getLineCount();let r=i.position.lineNumber;for(;r=h.length+1)return!1;const f=h.charAt(u.column-2),g=s.get(f);if(!g)return!1;if(Jg(f)){if(i==="never")return!1}else if(t==="never")return!1;const _=h.charAt(u.column-1);let b=!1;for(const v of g)v.open===f&&v.close===_&&(b=!0);if(!b)return!1;if(e==="auto"){let v=!1;for(let C=0,y=a.length;C1){const o=t.getLineContent(s.lineNumber),r=Vs(o),a=r===-1?o.length+1:r+1;if(s.column<=a){const l=i.visibleColumnFromColumn(t,s),c=Cn.prevIndentTabStop(l,i.indentSize),d=i.columnFromVisibleColumn(t,s.lineNumber,c);return new T(s.lineNumber,d,s.lineNumber,s.column)}}return T.fromPositions(Cf.getPositionAfterDeleteLeft(s,t),s)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=Wle(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}else if(e.lineNumber>1){const i=e.lineNumber-1;return new Z(i,t.getLineMaxColumn(i))}else return e}static cut(e,t,i){const s=[];let o=null;i.sort((r,a)=>Z.compare(r.getStartPosition(),a.getEndPosition()));for(let r=0,a=i.length;r1&&(o==null?void 0:o.endLineNumber)!==c.lineNumber?(d=c.lineNumber-1,u=t.getLineMaxColumn(c.lineNumber-1),h=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber)):(d=c.lineNumber,u=1,h=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber));const g=new T(d,u,h,f);o=g,g.isEmpty()?s[r]=null:s[r]=new Zn(g,"")}else s[r]=null;else s[r]=new Zn(l,"")}return new uo(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class Ft{static _createWord(e,t,i,s,o){return{start:s,end:o,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(s,e,i)}static _doFindPreviousWordOnLine(e,t,i){let s=0;for(let o=i.column-2;o>=0;o--){const r=e.charCodeAt(o),a=t.get(r);if(a===0){if(s===2)return this._createWord(e,s,a,o+1,this._findEndOfWord(e,t,s,o+1));s=1}else if(a===2){if(s===1)return this._createWord(e,s,a,o+1,this._findEndOfWord(e,t,s,o+1));s=2}else if(a===1&&s!==0)return this._createWord(e,s,a,o+1,this._findEndOfWord(e,t,s,o+1))}return s!==0?this._createWord(e,s,1,0,this._findEndOfWord(e,t,s,0)):null}static _findEndOfWord(e,t,i,s){const o=e.length;for(let r=s;r=0;o--){const r=e.charCodeAt(o),a=t.get(r);if(a===1||i===1&&a===2||i===2&&a===0)return o+1}return 0}static moveWordLeft(e,t,i,s){let o=i.lineNumber,r=i.column;r===1&&o>1&&(o=o-1,r=t.getLineMaxColumn(o));let a=Ft._findPreviousWordOnLine(e,t,new Z(o,r));if(s===0)return new Z(o,a?a.start+1:1);if(s===1)return a&&a.wordType===2&&a.end-a.start===1&&a.nextCharClass===0&&(a=Ft._findPreviousWordOnLine(e,t,new Z(o,a.start+1))),new Z(o,a?a.start+1:1);if(s===3){for(;a&&a.wordType===2;)a=Ft._findPreviousWordOnLine(e,t,new Z(o,a.start+1));return new Z(o,a?a.start+1:1)}return a&&r<=a.end+1&&(a=Ft._findPreviousWordOnLine(e,t,new Z(o,a.start+1))),new Z(o,a?a.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(t.column===1)return i>1?new Z(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const a=o.charCodeAt(r-2),l=o.charCodeAt(r-1);if(a===95&&l!==95)return new Z(i,r);if(Od(a)&&sl(l))return new Z(i,r);if(sl(a)&&sl(l)&&r+1=l.start+1&&(l=Ft._findNextWordOnLine(e,t,new Z(o,l.end+1))),l?r=l.start+1:r=t.getLineMaxColumn(o);return new Z(o,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(t.column===s)return i1?c=1:(l--,c=s.getLineMaxColumn(l)):(d&&c<=d.end+1&&(d=Ft._findPreviousWordOnLine(i,s,new Z(l,d.start+1))),d?c=d.end+1:c>1?c=1:(l--,c=s.getLineMaxColumn(l))),new T(l,c,a.lineNumber,a.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const s=new Z(i.positionLineNumber,i.positionColumn),o=this._deleteInsideWordWhitespace(t,s);return o||this._deleteInsideWordDetermineDeleteRange(e,t,s)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return i===32||i===9}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=i.length;if(s===0)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let r=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(i,r))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;r+11?new T(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumberu.start+1<=i.column&&i.column<=u.end+1,a=(u,h)=>(u=Math.min(u,i.column),h=Math.max(h,i.column),new T(i.lineNumber,u,i.lineNumber,h)),l=u=>{let h=u.start+1,f=u.end+1,g=!1;for(;f-11&&this._charAtIsWhitespace(s,h-2);)h--;return a(h,f)},c=Ft._findPreviousWordOnLine(e,t,i);if(c&&r(c))return l(c);const d=Ft._findNextWordOnLine(e,t,i);return d&&r(d)?l(d):c&&d?a(c.end+1,d.start+1):c?a(c.start+1,c.end+1):d?a(d.start+1,d.end+1):a(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=Ft._moveWordPartLeft(e,i);return new T(i.lineNumber,i.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let s=t;s=h.start+1&&(h=Ft._findNextWordOnLine(i,s,new Z(l,h.end+1))),h?c=h.start+1:c!!e)}class zn{static addCursorDown(e,t,i){const s=[];let o=0;for(let r=0,a=t.length;rc&&(d=c,u=e.model.getLineMaxColumn(d)),Dt.fromModelState(new $n(new T(r.lineNumber,1,d,u),0,new Z(d,u),0))}const l=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberl){const c=e.getLineCount();let d=a.lineNumber+1,u=1;return d>c&&(d=c,u=e.getLineMaxColumn(d)),Dt.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,u,0))}else{const c=t.modelState.selectionStart.getEndPosition();return Dt.fromModelState(t.modelState.move(t.modelState.hasSelection(),c.lineNumber,c.column,0))}}static word(e,t,i,s){const o=e.model.validatePosition(s);return Dt.fromModelState(Ft.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new Dt(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,s=t.viewState.position.column;return Dt.fromViewState(new $n(new T(i,s,i,s),0,new Z(i,s),0))}static moveTo(e,t,i,s,o){const r=e.model.validatePosition(s),a=o?e.coordinatesConverter.validateViewPosition(new Z(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return Dt.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,s,o,r){switch(i){case 0:return r===4?this._moveHalfLineLeft(e,t,s):this._moveLeft(e,t,s,o);case 1:return r===4?this._moveHalfLineRight(e,t,s):this._moveRight(e,t,s,o);case 2:return r===2?this._moveUpByViewLines(e,t,s,o):this._moveUpByModelLines(e,t,s,o);case 3:return r===2?this._moveDownByViewLines(e,t,s,o):this._moveDownByModelLines(e,t,s,o);case 4:return r===2?t.map(a=>Dt.fromViewState(Ht.moveToPrevBlankLine(e.cursorConfig,e,a.viewState,s))):t.map(a=>Dt.fromModelState(Ht.moveToPrevBlankLine(e.cursorConfig,e.model,a.modelState,s)));case 5:return r===2?t.map(a=>Dt.fromViewState(Ht.moveToNextBlankLine(e.cursorConfig,e,a.viewState,s))):t.map(a=>Dt.fromModelState(Ht.moveToNextBlankLine(e.cursorConfig,e.model,a.modelState,s)));case 6:return this._moveToViewMinColumn(e,t,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,s);case 8:return this._moveToViewCenterColumn(e,t,s);case 9:return this._moveToViewMaxColumn(e,t,s);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,s);default:return null}}static viewportMove(e,t,i,s,o){const r=e.getCompletelyVisibleViewRange(),a=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const l=this._firstLineNumberInRange(e.model,a,o),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],s,l,c)]}case 13:{const l=this._lastLineNumberInRange(e.model,a,o),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],s,l,c)]}case 12:{const l=Math.round((a.startLineNumber+a.endLineNumber)/2),c=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,t[0],s,l,c)]}case 14:{const l=[];for(let c=0,d=t.length;ci.endLineNumber-1?r=i.endLineNumber-1:oDt.fromViewState(Ht.moveLeft(e.cursorConfig,e,o.viewState,i,s)))}static _moveHalfLineLeft(e,t,i){const s=[];for(let o=0,r=t.length;oDt.fromViewState(Ht.moveRight(e.cursorConfig,e,o.viewState,i,s)))}static _moveHalfLineRight(e,t,i){const s=[];for(let o=0,r=t.length;o1&&Cn.visibleColumnFromColumn(h,f+1,o)%r!==0&&e.isCheapToTokenize(u-1)){const b=fn.getEnterAction(this._opts.autoIndent,e,new T(u-1,e.getLineMaxColumn(u-1),u-1,e.getLineMaxColumn(u-1)));if(b){if(d=c,b.appendText)for(let v=0,C=b.appendText.length;v1){let a;for(a=i-1;a>=1;a--){const d=t.getLineContent(a);if(Ll(d)>=0)break}if(a<1)return null;const l=t.getLineMaxColumn(a),c=fn.getEnterAction(e.autoIndent,t,new T(a,l,a,l));c&&(o=c.indentation+c.appendText)}return s&&(s===Ji.Indent&&(o=Ai.shiftIndent(e,o)),s===Ji.Outdent&&(o=Ai.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,s){let o="";const r=i.getStartPosition();if(e.insertSpaces){const a=e.visibleColumnFromColumn(t,r),l=e.indentSize,c=l-a%l;for(let d=0;dthis._compositionType(i,d,o,r,a,l));return new uo(4,c,{shouldPushStackElementBefore:iC(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,o,r){if(!t.isEmpty())return null;const a=t.getPosition(),l=Math.max(1,a.column-s),c=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+o),d=new T(a.lineNumber,l,a.lineNumber,c);return e.getValueInRange(d)===i&&r===0?null:new Vw(d,i,0,r)}static _typeCommand(e,t,i){return i?new eC(e,t,!0):new Zn(e,t,!0)}static _enter(e,t,i,s){if(e.autoIndent===0)return Ai._typeCommand(s,` +`,i);if(!t.isCheapToTokenize(s.getStartPosition().lineNumber)||e.autoIndent===1){const l=t.getLineContent(s.startLineNumber),c=ei(l).substring(0,s.startColumn-1);return Ai._typeCommand(s,` +`+e.normalizeIndentation(c),i)}const o=fn.getEnterAction(e.autoIndent,t,s);if(o){if(o.indentAction===Ji.None)return Ai._typeCommand(s,` +`+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===Ji.Indent)return Ai._typeCommand(s,` +`+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===Ji.IndentOutdent){const l=e.normalizeIndentation(o.indentation),c=e.normalizeIndentation(o.indentation+o.appendText),d=` +`+c+` +`+l;return i?new eC(s,d,!0):new Vw(s,d,-1,c.length-l.length,!0)}else if(o.indentAction===Ji.Outdent){const l=Ai.unshiftIndent(e,o.indentation);return Ai._typeCommand(s,` +`+e.normalizeIndentation(l+o.appendText),i)}}const r=t.getLineContent(s.startLineNumber),a=ei(r).substring(0,s.startColumn-1);if(e.autoIndent>=4){const l=fn.getIndentForEnter(e.autoIndent,t,s,{unshiftIndent:c=>Ai.unshiftIndent(e,c),shiftIndent:c=>Ai.shiftIndent(e,c),normalizeIndentation:c=>e.normalizeIndentation(c)});if(l){let c=e.visibleColumnFromColumn(t,s.getEndPosition());const d=s.endColumn,u=t.getLineContent(s.endLineNumber),h=Vs(u);if(h>=0?s=s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,h+1)):s=s.setEndPosition(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),i)return new eC(s,` +`+e.normalizeIndentation(l.afterEnter),!0);{let f=0;return d<=h+1&&(e.insertSpaces||(c=Math.ceil(c/e.indentSize)),f=Math.min(c+1-e.normalizeIndentation(l.afterEnter).length-1,0)),new Vw(s,` +`+e.normalizeIndentation(l.afterEnter),0,f,!0)}}}return Ai._typeCommand(s,` +`+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let s=0,o=i.length;sAi.shiftIndent(e,a),unshiftIndent:a=>Ai.unshiftIndent(e,a)});if(r===null)return null;if(r!==e.normalizeIndentation(o)){const a=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return a===0?Ai._typeCommand(new T(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+s,!1):Ai._typeCommand(new T(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+s,!1)}return null}static _isAutoClosingOvertype(e,t,i,s,o){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let r=0,a=i.length;r2?d.charCodeAt(c.column-2):0)===92&&h)return!1;if(e.autoClosingOvertype==="auto"){let g=!1;for(let _=0,b=s.length;_t.startsWith(l.open)),a=o.some(l=>t.startsWith(l.close));return!r&&a}static _findAutoClosingPairOpen(e,t,i,s){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(s);if(!o)return null;let r=null;for(const a of o)if(r===null||a.open.length>r.open.length){let l=!0;for(const c of i)if(t.getValueInRange(new T(c.lineNumber,c.column-a.open.length+1,c.lineNumber,c.column))+s!==a.open){l=!1;break}l&&(r=a)}return r}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),s=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const r of s)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!o||r.open.length>o.open.length)&&(o=r);return o}static _getAutoClosingPairClose(e,t,i,s,o){const r=Jg(s),a=r?e.autoClosingQuotes:e.autoClosingBrackets,l=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if(a==="never")return null;for(const g of i)if(!g.isEmpty())return null;const c=i.map(g=>{const _=g.getPosition();return o?{lineNumber:_.lineNumber,beforeColumn:_.column-s.length,afterColumn:_.column}:{lineNumber:_.lineNumber,beforeColumn:_.column,afterColumn:_.column}}),d=this._findAutoClosingPairOpen(e,t,c.map(g=>new Z(g.lineNumber,g.beforeColumn)),s);if(!d)return null;const u=this._findContainedAutoClosingPair(e,d),h=u?u.close:"";let f=!0;for(const g of c){const{lineNumber:_,beforeColumn:b,afterColumn:v}=g,C=t.getLineContent(_),y=C.substring(0,b-1),S=C.substring(v-1);if(S.startsWith(h)||(f=!1),S.length>0){const D=S.charAt(0);if(!Ai._isBeforeClosingBrace(e,S)&&!l(D))return null}if(d.open.length===1&&(s==="'"||s==='"')&&a!=="always"){const D=vr(e.wordSeparators);if(y.length>0){const P=y.charCodeAt(y.length-1);if(D.get(P)===0)return null}}if(!t.isCheapToTokenize(_))return null;t.forceTokenization(_);const x=t.getLineTokens(_),A=Oy(x,b-1);if(!d.shouldAutoClose(A,b-A.firstCharOffset))return null;const E=d.findNeutralCharacter();if(E){const D=t.getTokenTypeIfInsertingCharacter(_,b,E);if(!d.isOK(D))return null}}return f?d.close.substring(0,d.close.length-h.length):d.close}static _runAutoClosingOpenCharType(e,t,i,s,o,r,a){const l=[];for(let c=0,d=s.length;cnew Zn(new T(d.positionLineNumber,d.positionColumn,d.positionLineNumber,d.positionColumn+1),"",!1));return new uo(4,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const l=this._getAutoClosingPairClose(t,i,o,a,!0);return l!==null?this._runAutoClosingOpenCharType(e,t,i,o,a,!0,l):null}static typeWithInterceptors(e,t,i,s,o,r,a){if(!e&&a===` +`){const d=[];for(let u=0,h=o.length;u{const s=t.get(Zt).getFocusedCodeEditor();return s&&s.hasTextFocus()?this._runEditorCommand(t,s,i):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(t,i)=>{const s=document.activeElement;return s&&["input","textarea"].indexOf(s.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),e.addImplementation(0,"generic-dom",(t,i)=>{const s=t.get(Zt).getActiveCodeEditor();return s?(s.focus(),this._runEditorCommand(t,s,i)):!1})}_runEditorCommand(e,t,i){const s=this.runEditorCommand(e,t,i);return s||!0}}var In;(function(n){class e extends cn{constructor(C){super(C),this._minimalReveal=C.minimalReveal,this._inSelectionMode=C.inSelectionMode}runCoreEditorCommand(C,y){C.model.pushStackElement(),C.setCursorStates(y.source,3,[zn.moveTo(C,C.getPrimaryCursorState(),this._inSelectionMode,y.position,y.viewPosition)])&&C.revealPrimaryCursor(y.source,!0,this._minimalReveal)}}n.MoveTo=pe(new e({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),n.MoveToSelect=pe(new e({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class t extends cn{runCoreEditorCommand(C,y){C.model.pushStackElement();const S=this._getColumnSelectResult(C,C.getPrimaryCursorState(),C.getCursorColumnSelectData(),y);C.setCursorStates(y.source,3,S.viewStates.map(x=>Dt.fromViewState(x))),C.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:S.fromLineNumber,fromViewVisualColumn:S.fromVisualColumn,toViewLineNumber:S.toLineNumber,toViewVisualColumn:S.toVisualColumn}),S.reversed?C.revealTopMostCursor(y.source):C.revealBottomMostCursor(y.source)}}n.ColumnSelect=pe(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(v,C,y,S){const x=v.model.validatePosition(S.position),A=v.coordinatesConverter.validateViewPosition(new Z(S.viewPosition.lineNumber,S.viewPosition.column),x),E=S.doColumnSelect?y.fromViewLineNumber:A.lineNumber,D=S.doColumnSelect?y.fromViewVisualColumn:S.mouseColumn-1;return Ch.columnSelect(v.cursorConfig,v,E,D,A.lineNumber,S.mouseColumn-1)}}),n.CursorColumnSelectLeft=pe(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(v,C,y,S){return Ch.columnSelectLeft(v.cursorConfig,v,y)}}),n.CursorColumnSelectRight=pe(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(v,C,y,S){return Ch.columnSelectRight(v.cursorConfig,v,y)}});class i extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,y,S,x){return Ch.columnSelectUp(C.cursorConfig,C,S,this._isPaged)}}n.CursorColumnSelectUp=pe(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:3600,linux:{primary:0}}})),n.CursorColumnSelectPageUp=pe(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:3595,linux:{primary:0}}}));class s extends t{constructor(C){super(C),this._isPaged=C.isPaged}_getColumnSelectResult(C,y,S,x){return Ch.columnSelectDown(C.cursorConfig,C,S,this._isPaged)}}n.CursorColumnSelectDown=pe(new s({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:3602,linux:{primary:0}}})),n.CursorColumnSelectPageDown=pe(new s({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:3596,linux:{primary:0}}}));class o extends cn{constructor(){super({id:"cursorMove",precondition:void 0,description:tS.description})}runCoreEditorCommand(C,y){const S=tS.parse(y);S&&this._runCursorMove(C,y.source,S)}_runCursorMove(C,y,S){C.model.pushStackElement(),C.setCursorStates(y,3,o._move(C,C.getCursorStates(),S)),C.revealPrimaryCursor(y,!0)}static _move(C,y,S){const x=S.select,A=S.value;switch(S.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return zn.simpleMove(C,y,S.direction,x,A,S.unit);case 11:case 13:case 12:case 14:return zn.viewportMove(C,y,S.direction,x,A);default:return null}}}n.CursorMoveImpl=o,n.CursorMove=pe(new o);class r extends cn{constructor(C){super(C),this._staticArgs=C.args}runCoreEditorCommand(C,y){let S=this._staticArgs;this._staticArgs.value===-1&&(S={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:y.pageSize||C.cursorConfig.pageSize}),C.model.pushStackElement(),C.setCursorStates(y.source,3,zn.simpleMove(C,C.getCursorStates(),S.direction,S.select,S.value,S.unit)),C.revealPrimaryCursor(y.source,!0)}}n.CursorLeft=pe(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),n.CursorLeftSelect=pe(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1039}})),n.CursorRight=pe(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),n.CursorRightSelect=pe(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1041}})),n.CursorUp=pe(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),n.CursorUpSelect=pe(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),n.CursorPageUp=pe(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:11}})),n.CursorPageUpSelect=pe(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1035}})),n.CursorDown=pe(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),n.CursorDownSelect=pe(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),n.CursorPageDown=pe(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:12}})),n.CursorPageDownSelect=pe(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1036}})),n.CreateCursor=pe(new class extends cn{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(v,C){let y;C.wholeLine?y=zn.line(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition):y=zn.moveTo(v,v.getPrimaryCursorState(),!1,C.position,C.viewPosition);const S=v.getCursorStates();if(S.length>1){const x=y.modelState?y.modelState.position:null,A=y.viewState?y.viewState.position:null;for(let E=0,D=S.length;EA&&(x=A);const E=new T(x,1,x,v.model.getLineMaxColumn(x));let D=0;if(y.at)switch(y.at){case mm.RawAtArgument.Top:D=3;break;case mm.RawAtArgument.Center:D=1;break;case mm.RawAtArgument.Bottom:D=4;break}const P=v.coordinatesConverter.convertModelRangeToViewRange(E);v.revealRange(C.source,!1,P,D,0)}}),n.SelectAll=new class extends $N{constructor(){super(Rue)}runDOMCommand(){Yo&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(v,C,y){const S=C._getViewModel();S&&this.runCoreEditorCommand(S,y)}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates("keyboard",3,[zn.selectAll(v,v.getPrimaryCursorState())])}},n.SetSelection=pe(new class extends cn{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(v,C){v.model.pushStackElement(),v.setCursorStates(C.source,3,[Dt.fromModelSelection(C.selection)])}})})(In||(In={}));const Wge=xe.and(O.textInputFocus,O.columnSelection);function h_(n,e){Us.registerKeybindingRule({id:n,primary:e,when:Wge,weight:zt+1})}h_(In.CursorColumnSelectLeft.id,1039);h_(In.CursorColumnSelectRight.id,1041);h_(In.CursorColumnSelectUp.id,1040);h_(In.CursorColumnSelectPageUp.id,1035);h_(In.CursorColumnSelectDown.id,1042);h_(In.CursorColumnSelectPageDown.id,1036);function C7(n){return n.register(),n}var $m;(function(n){class e extends ss{runEditorCommand(i,s,o){const r=s._getViewModel();r&&this.runCoreEditingCommand(s,r,o||{})}}n.CoreEditingCommand=e,n.LineBreakInsert=pe(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:O.writable,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(t,i,s){t.pushUndoStop(),t.executeCommands(this.id,Ai.lineBreakInsert(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection)))}}),n.Outdent=pe(new class extends e{constructor(){super({id:"outdent",precondition:O.writable,kbOpts:{weight:zt,kbExpr:xe.and(O.editorTextFocus,O.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(t,i,s){t.pushUndoStop(),t.executeCommands(this.id,Ai.outdent(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),t.pushUndoStop()}}),n.Tab=pe(new class extends e{constructor(){super({id:"tab",precondition:O.writable,kbOpts:{weight:zt,kbExpr:xe.and(O.editorTextFocus,O.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(t,i,s){t.pushUndoStop(),t.executeCommands(this.id,Ai.tab(i.cursorConfig,i.model,i.getCursorStates().map(o=>o.modelState.selection))),t.pushUndoStop()}}),n.DeleteLeft=pe(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(t,i,s){const[o,r]=Cf.deleteLeft(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection),i.getCursorAutoClosedCharacters());o&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)}}),n.DeleteRight=pe(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:zt,kbExpr:O.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(t,i,s){const[o,r]=Cf.deleteRight(i.getPrevEditOperationType(),i.cursorConfig,i.model,i.getCursorStates().map(a=>a.modelState.selection));o&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)}}),n.Undo=new class extends $N{constructor(){super(yz)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(t,i,s){if(!(!i.hasModel()||i.getOption(81)===!0))return i.getModel().undo()}},n.Redo=new class extends $N{constructor(){super(Sz)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(t,i,s){if(!(!i.hasModel()||i.getOption(81)===!0))return i.getModel().redo()}}})($m||($m={}));class w7 extends ok{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(Zt).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function sg(n,e){C7(new w7("default:"+n,n)),C7(new w7(n,n,e))}sg("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});sg("replacePreviousChar");sg("compositionType");sg("compositionStart");sg("compositionEnd");sg("paste");sg("cut");class Hge{constructor(e,t,i,s){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=s}paste(e,t,i,s){this.commandDelegate.paste(e,t,i,s)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,s){this.commandDelegate.compositionType(e,t,i,s)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){In.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount===2?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):s?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){In.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){In.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),In.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),In.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){In.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){In.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){In.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){In.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){In.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){In.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){In.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){In.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){In.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class _k{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return _k.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),i}}var KE;class r${constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),s=this.getEndLineNumber();if(ts)return null;let o=0,r=0;for(let l=i;l<=s;l++){const c=l-this._rendLineNumberStart;e<=l&&l<=t&&(r===0?(o=c,r=1):r++)}if(e=i&&r<=s&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(this.getCount()===0)return null;const i=t-e+1,s=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=s)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const r=[];for(let u=0;ui)continue;const l=Math.max(t,a.fromLineNumber),c=Math.min(i,a.toLineNumber);for(let d=l;d<=c;d++){const u=d-this._rendLineNumberStart;this._lines[u].onTokensChanged(),s=!0}}return s}}class a${constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new r$(()=>this._host.createVisibleLine())}_createDomNode(){const e=Bt(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(131)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;it){const r=t,a=Math.min(i,o.rendLineNumberStart-1);r<=a&&(this._insertLinesBefore(o,r,a,s,t),o.linesLength+=a-r+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,r),o.linesLength-=r)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const r=Math.max(0,i-o.rendLineNumberStart+1),l=o.linesLength-1-r+1;l>0&&(this._removeLinesAfter(o,l),o.linesLength-=l)}return this._finishRendering(o,!1,s),o}_renderUntouchedLines(e,t,i,s,o){const r=e.rendLineNumberStart,a=e.lines;for(let l=t;l<=i;l++){const c=r+l;a[l].layoutLine(c,s[c-o])}}_insertLinesBefore(e,t,i,s,o){const r=[];let a=0;for(let l=t;l<=i;l++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;a--){const l=e.lines[a];s[a]&&(l.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const s=document.createElement("div");Cc._ttPolicy&&(t=Cc._ttPolicy.createHTML(t)),s.innerHTML=t;for(let o=0;on});Cc._sb=df(1e5);class l$ extends xr{constructor(e){super(e),this._visibleLines=new a$(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ei.shouldRender());for(let i=0,s=t.length;i'),s.appendASCIIString(o),s.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class $ge extends l${constructor(e){super(e);const i=this._context.configuration.options.get(131);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._contentWidth=i.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class Uge extends l${constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),_s(this.domNode,t.get(44))}onConfigurationChanged(e){const t=this._context.configuration.options;_s(this.domNode,t.get(44));const i=t.get(131);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class $_{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class jge extends xr{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Bt(document.createElement("div")),Rl.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Bt(document.createElement("div")),Rl.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new qge(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i){this._widgets[e.getId()].setPosition(t,i),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const i=this._widgets[t];delete this._widgets[t];const s=i.domNode.domNode;s.parentNode.removeChild(s),s.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}let qge=class{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=Bt(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const s=this._context.configuration.options,o=s.get(131);this._fixedOverflowWidgets=s.get(36),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=s.get(59),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(59),e.hasChanged(131)){const i=t.get(131);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const t=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(t))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,s,o){const r=e.top,a=r,l=t.top+this._lineHeight,c=o.viewportHeight-l,d=r-s,u=a>=s,h=l,f=c>=s;let g=e.left,_=t.left;return g+i>o.scrollLeft+o.viewportWidth&&(g=o.scrollLeft+o.viewportWidth-i),_+i>o.scrollLeft+o.viewportWidth&&(_=o.scrollLeft+o.viewportWidth-i),gr){const l=a-(r-s);a-=l,i-=l}if(a=b,y=d+s<=u.height-v;return this._fixedOverflowWidgets?{fitsAbove:C,aboveTop:Math.max(c,b),aboveLeft:f,fitsBelow:y,belowTop:d,belowLeft:_}:{fitsAbove:C,aboveTop:r,aboveLeft:h,fitsBelow:y,belowTop:a,belowLeft:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new $_(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];let i=t[0],s=t[0];for(const u of t)u.lineNumbers.lineNumber&&(s=u);let o=1073741824;for(const u of i.ranges)u.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&GE(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&GE(this._actual.afterRender,this._actual,this._renderData.position)}};function GE(n,e,...t){try{return n.call(e,...t)}catch{return null}}class c$ extends u_{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(131);this._lineHeight=t.get(59),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new Fe(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map(s=>s.positionLineNumber);t.sort((s,o)=>s-o),jo(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every(s=>s.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._lineHeight=t.get(59),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return this._renderLineHighlightOnlyWhenFocus?(this._focused=e.isFocused,!0):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(e),i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let r=0;const a=[];for(let l=i;l<=s;l++){const c=l-i;for(;r=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class Kge extends c${_renderOne(e){return`
    `}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class Gge extends c${_renderOne(e){return`
    `}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}bi((n,e)=>{const t=n.getColor(Yfe);if(t&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||n.defines(_7)){const i=n.getColor(_7);i&&(e.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),n.type==="hc"&&(e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});class Yge extends u_{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],s=0;for(let l=0,c=t.length;l{if(l.options.zIndexc.options.zIndex)return 1;const d=l.options.className,u=c.options.className;return du?1:T.compareRangesUsingStarts(l.range,c.range)});const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=[];for(let l=o;l<=r;l++){const c=l-o;a[c]=""}this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){const s=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let a=0,l=t.length;a',u=Math.max(c.range.startLineNumber,o),h=Math.min(c.range.endLineNumber,r);for(let f=u;f<=h;f++){const g=f-o;i[g]+=d}}}_renderNormalDecorations(e,t,i){const s=String(this._lineHeight),o=e.visibleRange.startLineNumber;let r=null,a=!1,l=null;for(let c=0,d=t.length;c';a[h]+=b}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class sa extends J{onclick(e,t){this._register(de(e,Xe.CLICK,i=>t(new dr(i))))}onmousedown(e,t){this._register(de(e,Xe.MOUSE_DOWN,i=>t(new dr(i))))}onmouseover(e,t){this._register(de(e,Xe.MOUSE_OVER,i=>t(new dr(i))))}onnonbubblingmouseout(e,t){this._register(hP(e,i=>t(new dr(i))))}onkeydown(e,t){this._register(de(e,Xe.KEY_DOWN,i=>t(new Si(i))))}onkeyup(e,t){this._register(de(e,Xe.KEY_UP,i=>t(new Si(i))))}oninput(e,t){this._register(de(e,Xe.INPUT,t))}onblur(e,t){this._register(de(e,Xe.BLUR,t))}onfocus(e,t){this._register(de(e,Xe.FOCUS,t))}ignoreGesture(e){Jt.ignoreTarget(e)}}const vp=11;class Zge extends sa{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=vp+"px",this.domNode.style.height=vp+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new ng),this.onmousedown(this.bgDomNode,t=>this._arrowMouseDown(t)),this.onmousedown(this.domNode,t=>this._arrowMouseDown(t)),this._mousedownRepeatTimer=this._register(new Y1),this._mousedownScheduleRepeatTimer=this._register(new xo)}_arrowMouseDown(e){const t=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),41.666666666666664)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,l_,i=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class Xge extends J{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new xo)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}const Qge=140;class d$ extends sa{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new Xge(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new ng),this._shouldRender=!0,this.domNode=Bt(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,t=>this._domNodeMouseDown(t))}_createArrow(e){const t=this._register(new Zge(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,s){this.slider=Bt(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof s=="number"&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,o=>{o.leftButton&&(o.preventDefault(),this._sliderMouseDown(o,()=>{}))}),this.onclick(this.slider.domNode,o=>{o.leftButton&&o.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);i<=o&&o<=s?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.browserEvent.offsetX=="number"&&typeof e.browserEvent.offsetY=="number")t=e.browserEvent.offsetX,i=e.browserEvent.offsetY;else{const o=Qn(this.domNode.domNode);t=e.posx-o.left,i=e.posy-o.top}const s=this._mouseDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const i=this._sliderMousePosition(e),s=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,l_,r=>{const a=this._sliderOrthogonalMousePosition(r),l=Math.abs(a-s);if(qn&&l>Qge){this._setDesiredScrollPositionNow(o.getScrollPosition());return}const d=this._sliderMousePosition(r)-i;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(d))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const Jge=20;class Fv{constructor(e,t,i,s,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=s,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Fv(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,s,o){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=s>0&&s>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(Jge,Math.floor(i*a/s))),d=(a-c)/(s-i),u=o*d;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){const e=Fv._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new hp(null,1,0))}),this._createArrow({className:"scra",icon:p.scrollbarButtonRight,top:a,left:void 0,bottom:void 0,right:r,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new hp(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class tme extends d${constructor(e,t,i){const s=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new Fv(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,s.height,s.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const r=(t.arrowSize-vp)/2,a=(t.verticalScrollbarSize-vp)/2;this._createArrow({className:"scra",icon:p.scrollbarButtonUp,top:r,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new hp(null,0,1))}),this._createArrow({className:"scra",icon:p.scrollbarButtonDown,top:void 0,left:a,bottom:r,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new hp(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class nS{constructor(e,t,i,s,o,r,a){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t=t|0,i=i|0,s=s|0,o=o|0,r=r|0,a=a|0),this.rawScrollLeft=s,this.rawScrollTop=a,t<0&&(t=0),s+t>i&&(s=i-t),s<0&&(s=0),o<0&&(o=0),a+o>r&&(a=r-o),a<0&&(a=0),this.width=t,this.scrollWidth=i,this.scrollLeft=s,this.height=o,this.scrollHeight=r,this.scrollTop=a}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new nS(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new nS(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,s=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:s,scrollLeftChanged:o,heightChanged:r,scrollHeightChanged:a,scrollTopChanged:l}}}class t0 extends J{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new j),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new nS(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,!!this._smoothScrolling),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let s;t?s=new Bv(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):s=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=s}else{const i=this._state.withScrollPosition(e);this._smoothScrolling=Bv.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class y7{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function YE(n,e){const t=e-n;return function(i){return n+t*sme(i)}}function ime(n,e,t){return function(i){return i2.5*i){let o,r;return e0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}UN.INSTANCE=new UN;class RP extends sa{constructor(e,t,i){super(),this._onScroll=this._register(new j),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new j),e.style.overflow="hidden",this._options=ame(t),this._scrollable=i,this._register(this._scrollable.onScroll(o=>{this._onWillScroll.fire(o),this._onDidScroll(o),this._onScroll.fire(o)}));const s={onMouseWheel:o=>this._onMouseWheel(o),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new tme(this._scrollable,this._options,s)),this._horizontalScrollbar=this._register(new eme(this._scrollable,this._options,s)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Bt(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Bt(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Bt(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,o=>this._onMouseOver(o)),this.onnonbubblingmouseout(this._listenOnDomNode,o=>this._onMouseOut(o)),this._hideTimeout=this._register(new xo),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=Pt(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,wt&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Pt(this._mouseWheelToDispose),e)){const i=s=>{this._onMouseWheel(new hp(s))};this._mouseWheelToDispose.push(de(this._listenOnDomNode,Xe.MOUSE_WHEEL,i,{passive:!1}))}}_onMouseWheel(e){const t=UN.INSTANCE;{const o=window.devicePixelRatio/LH();qn||Ds?t.accept(Date.now(),e.deltaX/o,e.deltaY/o):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(o)>=Math.abs(r)?r=0:o=0),this._options.flipAxes&&([o,r]=[r,o]);const a=!wt&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!r&&(r=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(r=r*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);const l=this._scrollable.getFutureScrollPosition();let c={};if(o){const d=S7*o,u=l.scrollTop-(d<0?Math.floor(d):Math.ceil(d));this._verticalScrollbar.writeScrollPosition(c,u)}if(r){const d=S7*r,u=l.scrollLeft-(d<0?Math.floor(d):Math.ceil(d));this._horizontalScrollbar.writeScrollPosition(c,u)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let s=i;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,s=i?" left":"",o=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${s}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${o}${s}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),ome)}}class u$ extends RP{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new t0({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:s=>Ma(s)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class PP extends RP{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class i0 extends RP{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new t0({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:s=>Ma(s)});super(e,t,i),this._register(i),this._element=e,this.onScroll(s=>{s.scrollTopChanged&&(this._element.scrollTop=s.scrollTop),s.scrollLeftChanged&&(this._element.scrollLeft=s.scrollLeft)}),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function ame(n){const e={lazyRender:typeof n.lazyRender<"u"?n.lazyRender:!1,className:typeof n.className<"u"?n.className:"",useShadows:typeof n.useShadows<"u"?n.useShadows:!0,handleMouseWheel:typeof n.handleMouseWheel<"u"?n.handleMouseWheel:!0,flipAxes:typeof n.flipAxes<"u"?n.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof n.consumeMouseWheelIfScrollbarIsNeeded<"u"?n.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof n.alwaysConsumeMouseWheel<"u"?n.alwaysConsumeMouseWheel:!1,scrollYToX:typeof n.scrollYToX<"u"?n.scrollYToX:!1,mouseWheelScrollSensitivity:typeof n.mouseWheelScrollSensitivity<"u"?n.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof n.fastScrollSensitivity<"u"?n.fastScrollSensitivity:5,scrollPredominantAxis:typeof n.scrollPredominantAxis<"u"?n.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof n.mouseWheelSmoothScroll<"u"?n.mouseWheelSmoothScroll:!0,arrowSize:typeof n.arrowSize<"u"?n.arrowSize:11,listenOnDomNode:typeof n.listenOnDomNode<"u"?n.listenOnDomNode:null,horizontal:typeof n.horizontal<"u"?n.horizontal:1,horizontalScrollbarSize:typeof n.horizontalScrollbarSize<"u"?n.horizontalScrollbarSize:10,horizontalSliderSize:typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:0,horizontalHasArrows:typeof n.horizontalHasArrows<"u"?n.horizontalHasArrows:!1,vertical:typeof n.vertical<"u"?n.vertical:1,verticalScrollbarSize:typeof n.verticalScrollbarSize<"u"?n.verticalScrollbarSize:10,verticalHasArrows:typeof n.verticalHasArrows<"u"?n.verticalHasArrows:!1,verticalSliderSize:typeof n.verticalSliderSize<"u"?n.verticalSliderSize:0,scrollByPage:typeof n.scrollByPage<"u"?n.scrollByPage:!1};return e.horizontalSliderSize=typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof n.verticalSliderSize<"u"?n.verticalSliderSize:e.verticalScrollbarSize,wt&&(e.className+=" mac"),e}class lme extends xr{constructor(e,t,i,s){super(e);const o=this._context.configuration.options,r=o.get(92),a=o.get(67),l=o.get(34),c=o.get(95),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+Yy(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new PP(t.domNode,d,this._context.viewLayout.getScrollable())),Rl.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Bt(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const u=(h,f,g)=>{const _={};if(f){const b=h.scrollTop;b&&(_.scrollTop=this._context.viewLayout.getCurrentScrollTop()+b,h.scrollTop=0)}if(g){const b=h.scrollLeft;b&&(_.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+b,h.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(_,1)};this._register(de(i.domNode,"scroll",h=>u(i.domNode,!0,!0))),this._register(de(t.domNode,"scroll",h=>u(t.domNode,!0,!1))),this._register(de(s.domNode,"scroll",h=>u(s.domNode,!0,!1))),this._register(de(this.scrollbarDomNode.domNode,"scroll",h=>u(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(131);this.scrollbarDomNode.setLeft(t.contentLeft),e.get(65).side==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(92)||e.hasChanged(67)||e.hasChanged(34)){const t=this._context.configuration.options,i=t.get(92),s=t.get(67),o=t.get(34),r=t.get(95),a={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:s,fastScrollSensitivity:o,scrollPredominantAxis:r};this.scrollbar.updateOptions(a)}return e.hasChanged(131)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Yy(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}bi((n,e)=>{const t=n.getColor(c_);t&&e.addRule(` + .monaco-scrollable-element > .shadow.top { + box-shadow: ${t} 0 6px 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.left { + box-shadow: ${t} 6px 0 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.top.left { + box-shadow: ${t} 6px 6px 6px -6px inset; + } + `);const i=n.getColor(Fm);i&&e.addRule(` + .monaco-scrollable-element > .scrollbar > .slider { + background: ${i}; + } + `);const s=n.getColor(Bm);s&&e.addRule(` + .monaco-scrollable-element > .scrollbar > .slider:hover { + background: ${s}; + } + `);const o=n.getColor(Vm);o&&e.addRule(` + .monaco-scrollable-element > .scrollbar > .slider.active { + background: ${o}; + } + `)});class sS{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class OP extends u_{_render(e,t,i){const s=[];for(let a=e;a<=t;a++){const l=a-e;s[l]=[]}if(i.length===0)return s;i.sort((a,l)=>a.className===l.className?a.startLineNumber===l.startLineNumber?a.endLineNumber-l.endLineNumber:a.startLineNumber-l.startLineNumber:a.className',c=[];for(let d=t;d<=i;d++){const u=d-t,h=s[u];h.length===0?c[u]="":c[u]='
    =this._renderResult.length?"":this._renderResult[i]}}class dme{constructor(){this._isDisposed=!1}dispose(){this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function bk(n,e){let t=0,i=0;const s=n.length;for(;is)throw new Error("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(o&&o.offSide);let a=-2,l=-1,c=-2,d=-1;const u=E=>{if(a!==-1&&(a===-2||a>E-1)){a=-1,l=-1;for(let D=E-2;D>=0;D--){const P=this._computeIndentLevel(D);if(P>=0){a=D,l=P;break}}}if(c===-2){c=-1,d=-1;for(let D=E;D=0){c=D,d=P;break}}}};let h=-2,f=-1,g=-2,_=-1;const b=E=>{if(h===-2){h=-1,f=-1;for(let D=E-2;D>=0;D--){const P=this._computeIndentLevel(D);if(P>=0){h=D,f=P;break}}}if(g!==-1&&(g===-2||g=0){g=D,_=P;break}}}};let v=0,C=!0,y=0,S=!0,x=0,A=0;for(let E=0;C||S;E++){const D=e-E,P=e+E;E>1&&(D<1||D1&&(P>s||P>i)&&(S=!1),E>5e4&&(C=!1,S=!1);let $=-1;if(C&&D>=1){const ee=this._computeIndentLevel(D-1);ee>=0?(c=D-1,d=ee,$=Math.ceil(ee/this.textModel.getOptions().indentSize)):(u(D),$=this._getIndentLevelForWhitespaceLine(r,l,d))}let z=-1;if(S&&P<=s){const ee=this._computeIndentLevel(P-1);ee>=0?(h=P-1,f=ee,z=Math.ceil(ee/this.textModel.getOptions().indentSize)):(b(P),z=this._getIndentLevelForWhitespaceLine(r,f,_))}if(E===0){A=$;continue}if(E===1){if(P<=s&&z>=0&&A+1===z){C=!1,v=P,y=P,x=z;continue}if(D>=1&&$>=0&&$-1===A){S=!1,v=D,y=D,x=$;continue}if(v=e,y=e,x=A,x===0)return{startLineNumber:v,endLineNumber:y,indent:x}}C&&($>=x?v=D:C=!1),S&&(z>=x?y=P:S=!1)}return{startLineNumber:v,endLineNumber:y,indent:x}}getLinesBracketGuides(e,t,i,s){var o,r,a,l,c;const d=[],u=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new T(e,1,t,this.textModel.getLineMaxColumn(t)));let h;if(i&&u.length>0){const v=e<=i.lineNumber&&i.lineNumber<=t?u.filter(C=>T.strictContainsPosition(C.range,i)):this.textModel.bracketPairs.getBracketPairsInRange(T.fromPositions(i));h=(o=tae(v,C=>C.range.startLineNumber!==C.range.endLineNumber))===null||o===void 0?void 0:o.range}const f=new ap(u),g=new Array,_=new Array,b=new h$;for(let v=e;v<=t;v++){let C=new Array;_.length>0&&(C=C.concat(_),_.length=0),d.push(C);for(const S of f.takeWhile(x=>x.openingBracketRange.startLineNumber<=v)||[]){if(S.range.startLineNumber===S.range.endLineNumber)continue;const x=Math.min(this.getVisibleColumnFromPosition(S.openingBracketRange.getStartPosition()),this.getVisibleColumnFromPosition((a=(r=S.closingBracketRange)===null||r===void 0?void 0:r.getStartPosition())!==null&&a!==void 0?a:S.range.getEndPosition()),S.minVisibleColumnIndentation+1);let A=!1;S.closingBracketRange&&Vs(this.textModel.getLineContent(S.closingBracketRange.startLineNumber))=0;S--){const x=g[S];if(!x)continue;const A=s.highlightActive&&h&&x.bracketPair.range.equalsRange(h),E=b.getInlineClassNameOfLevel(x.nestingLevel)+(A?" "+b.activeClassName:"");(A||s.includeInactive)&&x.renderHorizontalEndLineAtTheBottom&&x.end.lineNumber===v+1&&_.push(new pm(x.guideVisibleColumn,E,null)),!(x.end.lineNumber<=v||x.start.lineNumber>=v)&&(x.guideVisibleColumn>=y&&!A||(y=x.guideVisibleColumn,(A||s.includeInactive)&&C.push(new pm(x.guideVisibleColumn,E,null))))}C.sort((S,x)=>S.visibleColumn-x.visibleColumn)}return d}getVisibleColumnFromPosition(e){return Cn.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(o&&o.offSide),a=new Array(t-e+1);let l=-2,c=-1,d=-2,u=-1;for(let h=e;h<=t;h++){const f=h-e,g=this._computeIndentLevel(h-1);if(g>=0){l=h-1,c=g,a[f]=Math.ceil(g/s.indentSize);continue}if(l===-2){l=-1,c=-1;for(let _=h-2;_>=0;_--){const b=this._computeIndentLevel(_);if(b>=0){l=_,c=b;break}}}if(d!==-1&&(d===-2||d=0){d=_,u=b;break}}}a[f]=this._getIndentLevelForWhitespaceLine(r,c,u)}return a}_getIndentLevelForWhitespaceLine(e,t,i){const s=this.textModel.getOptions();return t===-1||i===-1?0:tl||this._maxIndentLeft>0&&y>this._maxIndentLeft)break;const S=C.horizontalLine?C.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",x=C.horizontalLine?((o=(s=e.visibleRangeForPosition(new Z(f,C.horizontalLine.endColumn)))===null||s===void 0?void 0:s.left)!==null&&o!==void 0?o:y+this._spaceWidth)-y:this._spaceWidth;b+=`
    `}h[g]=b}this._renderResult=h}getGuidesByLine(e,t,i){const s=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?Xh.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?Xh.EnabledForActive:Xh.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,a=0,l=0;if(this._bracketPairGuideOptions.highlightActiveIndentation&&i){const u=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=u.startLineNumber,a=u.endLineNumber,l=u.indent}const{indentSize:c}=this._context.viewModel.model.getOptions(),d=[];for(let u=e;u<=t;u++){const h=new Array;d.push(h);const f=s?s[u-e]:[],g=new ap(f),_=o?o[u-e]:[];for(let b=1;b<=_;b++){const v=(b-1)*c+1,C=f.length===0&&r<=u&&u<=a&&b===l;h.push(...g.takeWhile(S=>S.visibleColumn!0)||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function nC(n){if(!(n&&n.isTransparent()))return n}bi((n,e)=>{const t=n.getColor(gk);t&&e.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${t} inset; }`);const i=n.getColor(mk)||t;i&&e.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${i} inset; }`);const s=[{bracketColor:Qz,guideColor:_ge,guideColorActive:Sge},{bracketColor:Jz,guideColor:bge,guideColorActive:Lge},{bracketColor:e$,guideColor:vge,guideColorActive:kge},{bracketColor:t$,guideColor:Cge,guideColorActive:xge},{bracketColor:i$,guideColor:wge,guideColorActive:Ege},{bracketColor:n$,guideColor:yge,guideColorActive:Dge}],o=new h$,r=s.map(a=>{var l,c;const d=n.getColor(a.bracketColor),u=n.getColor(a.guideColor),h=n.getColor(a.guideColorActive),f=nC((l=nC(u))!==null&&l!==void 0?l:d==null?void 0:d.transparent(.3)),g=nC((c=nC(h))!==null&&c!==void 0?c:d);if(!(!f||!g))return{guideColor:f,guideColorActive:g}}).filter(aae);if(r.length>0){for(let a=0;a<30;a++){const l=r[a%r.length];e.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(a).replace(/ /g,".")} { --guide-color: ${l.guideColor}; --guide-color-active: ${l.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${o.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${o.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${o.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}});class fme{constructor(){this._currentVisibleRange=new T(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class gme{constructor(e,t,i,s,o,r,a){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=o,this.stopScrollTop=r,this.scrollType=a,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class mme{constructor(e,t,i,s,o){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=o,this.type="selections";let r=t[0].startLineNumber,a=t[0].endLineNumber;for(let l=1,c=t.length;l{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new ni(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new fme,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new fl(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(132)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(44),s=t.get(132),o=t.get(131);return this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(89),this._horizontalScrollbarHeight=o.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),_s(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(131)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new g7(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let o=i;o<=s;o++)this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=!1;for(let o=t;o<=i;o++)s=this._visibleLines.getVisibleLine(o).onSelectionChanged()||s;return s}onDecorationsChanged(e){{const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++)this._visibleLines.getVisibleLine(s).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(t===-1)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new gme(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new mme(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const o=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,o),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(i===null)return null;const s=this._getLineNumberFor(i);if(s===-1||s<1||s>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(s)===1)return new Z(s,1);const o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(sr)return null;let a=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(s,e,t);const l=this._context.viewModel.getLineMinColumn(s);return ai?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,s=T.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;let o=[],r=0;const a=new f7(this.domNode.domNode,this._textRangeRestingSpot);let l=0;t&&(l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Z(s.startLineNumber,1)).lineNumber);const c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let u=s.startLineNumber;u<=s.endLineNumber;u++){if(ud)continue;const h=u===s.startLineNumber?s.startColumn:1,f=u===s.endLineNumber?s.endColumn:this._context.viewModel.getLineMaxColumn(u),g=this._visibleLines.getVisibleLine(u).getVisibleRangesForRange(u,h,f,a);if(g){if(t&&uthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new f7(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new Mfe(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=1,o=!0;for(let r=t;r<=i;r++){const a=this._visibleLines.getVisibleLine(r);if(e&&!a.getWidthIsFast()){o=!1;continue}s=Math.max(s,a.getWidth())}return o&&t===1&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let o=i;o<=s;o++){const r=this._visibleLines.getVisibleLine(o);if(r.needsMonospaceFontCheck()){const a=r.getWidth();a>t&&(t=a,e=o)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let o=i;o<=s;o++)this._visibleLines.getVisibleLine(o).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const i=this._horizontalRevealRequest;if(e.startLineNumber<=i.minLineNumber&&i.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const s=this._computeScrollLeftToReveal(i);s&&(this._isViewportWrapping||this._ensureMaxLineWidth(s.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:s.scrollLeft},i.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),Ds&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let o=i;o<=s;o++)if(this._visibleLines.getVisibleLine(o).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let _=o[0].startLineNumber,b=o[0].endLineNumber;for(let v=1,C=o.length;vl){if(!d)return-1;g=u}else if(r===5||r===6)if(r===6&&a<=u&&h<=c)g=a;else{const _=Math.max(5*this._lineHeight,l*.2),b=u-_,v=h-l;g=Math.max(v,b)}else if(r===1||r===2)if(r===2&&a<=u&&h<=c)g=a;else{const _=(u+h)/2;g=Math.max(0,_-l/2)}else g=this._computeMinimumScrolling(a,c,u,h,r===3,r===4);return g}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,s=i+t.width;let o=1073741824,r=0;if(e.type==="range"){const l=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!l)return null;for(const c of l.ranges)o=Math.min(o,Math.round(c.left)),r=Math.max(r,Math.round(c.left+c.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;const c=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!c)return null;for(const d of c.ranges)o=Math.min(o,Math.round(d.left)),r=Math.max(r,Math.round(d.left+d.width))}return e.minimalReveal||(o=Math.max(0,o-vk.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),e.type==="selections"&&r-o>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,s,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,s,o,r){e=e|0,t=t|0,i=i|0,s=s|0,o=!!o,r=!!r;const a=t-e;if(s-it)return Math.max(0,s-a)}else return i;return e}}vk.HORIZONTAL_EXTRA_PX=30;class pme extends OP{constructor(e){super(),this._context=e;const i=this._context.configuration.options.get(131);this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._decorationsLeft=i.decorationsLeft,this._decorationsWidth=i.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let o=0,r=t.length;o
    ',l=[];for(let c=t;c<=i;c++){const d=c-t,u=s[d];let h="";for(let f=0,g=u.length;f';o[a]=c}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class ur{constructor(e,t,i,s){this._rgba8Brand=void 0,this.r=ur._clamp(e),this.g=ur._clamp(t),this.b=ur._clamp(i),this.a=ur._clamp(s)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:e|0}}ur.Empty=new ur(0,0,0,0);class n0 extends J{constructor(){super(),this._onDidChange=new j,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Ri.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=new n0),this._INSTANCE}_updateColorMap(){const e=Ri.getColorMap();if(!e){this._colors=[ur.Empty],this._backgroundIsLight=!0;return}this._colors=[ur.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}n0._INSTANCE=null;const bme=(()=>{const n=[];for(let e=32;e<=126;e++)n.push(e);return n.push(65533),n})(),vme=(n,e)=>(n-=32,n<0||n>96?e<=2?(n+96)%96:96-1:n);class Vv{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Vv.soften(e,12/15),this.charDataLight=Vv.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let s=0,o=e.length;se.width||i+g>e.height){console.warn("bad render request outside image data");return}const _=d?this.charDataLight:this.charDataNormal,b=vme(s,c),v=e.width*4,C=a.r,y=a.g,S=a.b,x=o.r-C,A=o.g-y,E=o.b-S,D=Math.max(r,l),P=e.data;let $=b*h*f,z=i*v+t*4;for(let ee=0;eee.width||i+u>e.height){console.warn("bad render request outside image data");return}const h=e.width*4,f=.5*(o/255),g=r.r,_=r.g,b=r.b,v=s.r-g,C=s.g-_,y=s.b-b,S=g+v*f,x=_+C*f,A=b+y*f,E=Math.max(o,a),D=e.data;let P=i*h+t*4;for(let $=0;${const e=new Uint8ClampedArray(n.length/2);for(let t=0;t>1]=L7[n[t]]<<4|L7[n[t+1]]&15;return e},x7={1:zc(()=>k7("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:zc(()=>k7("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class Hb{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return x7[e]?i=new Vv(x7[e](),e):i=Hb.createFromSampleData(Hb.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let s=0;for(const o of bme)i.fillText(String.fromCharCode(o),s,16/2),s+=10;return i.getImageData(0,0,96*10,16)}static createFromSampleData(e,t){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const s=Hb._downsample(e,t);return new Vv(s,t)}static _downsampleChar(e,t,i,s,o){const r=1*o,a=2*o;let l=s,c=0;for(let d=0;d0){const c=255/l;for(let d=0;dHb.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Wv._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Wv._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(ffe);return i?new ur(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(gfe);return t?ur._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class zb{constructor(e,t,i,s,o,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=s,this.sliderTop=o,this.sliderHeight=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,s,o,r,a,l,c,d,u){const h=e.pixelRatio,f=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/f),_=e.lineHeight;if(e.minimapHeightIsEditorHeight){const x=l*e.lineHeight+(e.scrollBeyondLastLine?o-e.lineHeight:0),A=Math.max(1,Math.floor(o*o/x)),E=Math.max(0,e.minimapHeight-A),D=E/(d-o),P=c*D,$=E>0,z=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new zb(c,d,$,D,P,A,1,Math.min(a,z))}let b;if(r&&i!==a){const x=i-t+1;b=Math.floor(x*f/h)}else{const x=o/_;b=Math.floor(x*f/h)}let v;e.scrollBeyondLastLine?v=(a-1)*f/h:v=Math.max(0,a*f/h-b),v=Math.min(e.minimapHeight-b,v);const C=v/(d-o),y=c*C;let S=0;if(e.scrollBeyondLastLine&&(S=o/_-1),g>=a+S){const A=a,E=v>0;return new zb(c,d,E,C,y,b,1,A)}else{let x=Math.max(1,Math.floor(t-y*h/f));u&&u.scrollHeight===d&&(u.scrollTop>c&&(x=Math.min(x,u.startLineNumber)),u.scrollTopoS.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const i=this._renderedLines._get().lines;for(let s=0,o=i.length;s1){for(let S=0,x=a-1;S0&&this.minimapLines[i-1]>=e;)i--;let s=this.modelLineToMinimapLine(t)-1;for(;s+1t)return null}return[i+1,s+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),s=this.modelLineToMinimapLine(t);return e!==t&&s===i&&(s===this.minimapLines.length?i>1&&i--:s++),[i,s]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,s=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(s)}_recreateLineSampling(){this._minimapSelections=null;const e=!!this._samplingState,[t,i]=Hv.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const s of i)switch(s.type){case"deleted":this._actual.onLinesDeleted(s.deleteFromLineNumber,s.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(s.insertFromLineNumber,s.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const s=[];for(let o=0,r=t-e+1;o{if(i.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(i.leftButton&&this._lastRenderData){const c=Qn(this._slider.domNode),d=c.top+c.height/2;this._startSliderDragging(i.buttons,i.posx,d,i.posy,this._lastRenderData.renderedLayout)}return}const o=this._model.options.minimapLineHeight,r=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*i.browserEvent.offsetY;let l=Math.floor(r/o)+this._lastRenderData.renderedLayout.startLineNumber;l=Math.min(l,this._model.getLineCount()),this._model.revealLineNumber(l)}),this._sliderMouseMoveMonitor=new ng,this._sliderMouseDownListener=jn(this._slider.domNode,"mousedown",i=>{i.preventDefault(),i.stopPropagation(),i.leftButton&&this._lastRenderData&&this._startSliderDragging(i.buttons,i.posx,i.posy,i.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=Jt.addTarget(this._domNode.domNode),this._sliderTouchStartListener=de(this._domNode.domNode,pi.Start,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(i))},{passive:!1}),this._sliderTouchMoveListener=de(this._domNode.domNode,pi.Change,i=>{i.preventDefault(),i.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(i)},{passive:!1}),this._sliderTouchEndListener=jn(this._domNode.domNode,pi.End,i=>{i.preventDefault(),i.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i,s,o){this._slider.toggleClassName("active",!0);const r=(a,l)=>{const c=Math.abs(l-t);if(qn&&c>Cme){this._model.setScrollTop(o.scrollTop);return}const d=a-i;this._model.setScrollTop(o.getDesiredScrollTopFromDelta(d))};s!==i&&r(s,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,l_,a=>r(a.posy,a.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return this._model.options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new FP(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,t):!1}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(d7),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const i=zb.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(i.sliderNeeded?"block":"none"),this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this.renderDecorations(i),this._lastRenderData=this.renderLines(i)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(T.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((h,f)=>(h.options.zIndex||0)-(f.options.zIndex||0));const{canvasInnerWidth:s,canvasInnerHeight:o}=this._model.options,r=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,s,o);const d=new D7(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(c,t,d,e,r),this._renderDecorationsLineHighlights(c,i,d,e,r);const u=new D7(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(c,t,u,e,r,l,a,s),this._renderDecorationsHighlights(c,i,u,e,r,l,a,s)}}_renderSelectionLineHighlights(e,t,i,s,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,a=0;for(const l of t){const c=Math.max(s.startLineNumber,l.startLineNumber),d=Math.min(s.endLineNumber,l.endLineNumber);if(c>d)continue;for(let f=c;f<=d;f++)i.set(f,!0);const u=(c-s.startLineNumber)*o,h=(d-s.startLineNumber)*o+o;a>=u||(a>r&&e.fillRect(Sd,r,e.canvas.width,a-r),r=u),a=h}a>r&&e.fillRect(Sd,r,e.canvas.width,a-r)}_renderDecorationsLineHighlights(e,t,i,s,o){const r=new Map;for(let a=t.length-1;a>=0;a--){const l=t[a],c=l.options.minimap;if(!c||c.position!==fr.Inline)continue;const d=Math.max(s.startLineNumber,l.range.startLineNumber),u=Math.min(s.endLineNumber,l.range.endLineNumber);if(d>u)continue;const h=c.getColor(this._theme.value);if(!h||h.isTransparent())continue;let f=r.get(h.toString());f||(f=h.transparent(.5).toString(),r.set(h.toString(),f)),e.fillStyle=f;for(let g=d;g<=u;g++){if(i.has(g))continue;i.set(g,!0);const _=(d-s.startLineNumber)*o;e.fillRect(Sd,_,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,s,o,r,a,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const c of t){const d=Math.max(s.startLineNumber,c.startLineNumber),u=Math.min(s.endLineNumber,c.endLineNumber);if(!(d>u))for(let h=d;h<=u;h++)this.renderDecorationOnLine(e,i,c,this._selectionColor,s,h,o,o,r,a,l)}}_renderDecorationsHighlights(e,t,i,s,o,r,a,l){for(const c of t){const d=c.options.minimap;if(!d)continue;const u=Math.max(s.startLineNumber,c.range.startLineNumber),h=Math.min(s.endLineNumber,c.range.endLineNumber);if(u>h)continue;const f=d.getColor(this._theme.value);if(!(!f||f.isTransparent()))for(let g=u;g<=h;g++)switch(d.position){case fr.Inline:this.renderDecorationOnLine(e,i,c.range,f,s,g,o,o,r,a,l);continue;case fr.Gutter:{const _=(g-s.startLineNumber)*o,b=2;this.renderDecoration(e,f,b,_,wme,o);continue}}}}renderDecorationOnLine(e,t,i,s,o,r,a,l,c,d,u){const h=(r-o.startLineNumber)*l;if(h+a<0||h>this._model.options.canvasInnerHeight)return;const{startLineNumber:f,endLineNumber:g}=i,_=f===r?i.startColumn:1,b=g===r?i.endColumn:this._model.getLineMaxColumn(r),v=this.getXOffsetForPosition(t,r,_,c,d,u),C=this.getXOffsetForPosition(t,r,b,c,d,u);this.renderDecoration(e,s,v,h,C-v,a)}getXOffsetForPosition(e,t,i,s,o,r){if(i===1)return Sd;if((i-1)*o>=r)return r;let l=e.get(t);if(!l){const c=this._model.getLineContent(t);l=[Sd];let d=Sd;for(let u=1;u=r){l[u]=r;break}l[u]=g,d=g}e.set(t,l)}return i-1x?Math.floor((s-x)/2):0,E=h.a/255,D=new ur(Math.round((h.r-u.r)*E+u.r),Math.round((h.g-u.g)*E+u.g),Math.round((h.b-u.b)*E+u.b),255);let P=0;const $=[];for(let ye=0,ke=i-t+1;ye=0&&$C)return;const ee=b.charCodeAt(x);if(ee===9){const Q=h-(x+A)%h;A+=Q-1,S+=Q*r}else if(ee===32)S+=r;else{const Q=lu(ee)?2:1;for(let Ee=0;EeC)return}}}}}class D7{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let s=0,o=this._endLineNumber-this._startLineNumber+1;sthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}bi((n,e)=>{const t=n.getColor(mfe);t&&e.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${t}; }`);const i=n.getColor(pfe);i&&e.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`);const s=n.getColor(_fe);s&&e.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${s}; }`);const o=n.getColor(c_);o&&e.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${o} -6px 0 6px -6px inset; }`)});class Sme extends xr{constructor(e){super(e);const i=this._context.configuration.options.get(131);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._domNode=Bt(document.createElement("div")),Rl.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const i=this._context.configuration.options.get(131);return this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,!0}addWidget(e){const t=Bt(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?!1:(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const s=this._widgets[t].domNode.domNode;delete this._widgets[t],s.parentNode.removeChild(s),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(e.preference===null){t.unsetTop();return}if(e.preference===0)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){const i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,s=t.length;i=3){const o=Math.floor(s/3),r=Math.floor(s/3),a=s-o-r,l=e,c=l+o,d=l+o+a;return[[0,l,c,l,d,l,c,l],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}else if(i===2){const o=Math.floor(s/2),r=s-o,a=e,l=a+o;return[[0,a,a,a,l,a,a,a],[0,o,o,o,r,o+r,o+r,o+r]]}else{const o=e,r=s;return[[0,o,o,o,o,o,o,o],[0,r,r,r,r,r,r,r]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class kme extends xr{constructor(e){super(e),this._domNode=Bt(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Ri.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new Lme(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(z=t-c),D=z-c,P=z+c}D>C+1||x!==b?(y!==0&&d.fillRect(u[b],v,h[b],C-v),b=x,v=D,C=P):P>C&&(C=P)}d.fillRect(u[b],v,h[b],C-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){const f=2*this._settings.pixelRatio|0,g=f/2|0,_=this._settings.x[7],b=this._settings.w[7];d.fillStyle=this._settings.cursorColor;let v=-100,C=-100;for(let y=0,S=this._cursorPositions.length;yt&&(A=t-g);const E=A-g,D=E+f;E>C+1?(y!==0&&d.fillRect(_,v,b,C-v),v=E,C=D):D>C&&(C=D)}d.fillRect(_,v,b,C-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,t),d.stroke(),d.moveTo(0,0),d.lineTo(e,0),d.stroke())}}class I7{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=e|0,this.to=t|0,this.colorId=i|0}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class zv{constructor(e,t,i,s){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=s,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(_=i-b);const v=d.color;let C=this._color2Id[v];C||(C=++this._lastAssignedId,this._color2Id[v]=C,this._id2Color[C]=v);const y=new I7(_-b,_+b,C);d.setColorZone(y),a.push(y)}return this._colorZonesInvalid=!1,a.sort(I7.compare),a}}class Eme extends e0{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=Bt(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new xme(s=>this._context.viewLayout.getVerticalOffsetForLineNumber(s)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(59)),this._zoneManager.setPixelRatio(i.get(129)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(59)&&(this._zoneManager.setLineHeight(t.get(59)),this._render()),e.hasChanged(129)&&(this._zoneManager.setPixelRatio(t.get(129)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,s,e),!0}_renderOneLane(e,t,i,s){let o=0,r=0,a=0;for(const l of t){const c=l.colorId,d=l.from,u=l.to;c!==o?(e.fillRect(0,r,s,a-r),o=c,e.fillStyle=i[o],r=d,a=u):a>=d?a=Math.max(a,u):(e.fillRect(0,r,s,a-r),r=d,a=u)}e.fillRect(0,r,s,a-r)}}class Dme extends xr{constructor(e){super(e),this.domNode=Bt(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const a=Bt(document.createElement("div"));a.setClassName("view-ruler"),a.setWidth(o),this.domNode.appendChild(a),this._renderedRulers.push(a),r--}return}let i=e-t;for(;i>0;){const s=this._renderedRulers.pop();this.domNode.removeChild(s),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const t=n.getColor(ige);t&&e.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${t} inset; }`)});class Ime extends xr{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const i=this._context.configuration.options.get(92);this._useShadows=i.useShadows,this._domNode=Bt(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const t=this._context.configuration.options.get(131);t.minimap.renderMinimap===0||t.minimap.minimapWidth>0&&t.minimap.minimapLeft===0?this._width=t.width:this._width=t.width-t.minimap.minimapWidth-t.verticalScrollbarWidth}onConfigurationChanged(e){const i=this._context.configuration.options.get(92);return this._useShadows=i.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}bi((n,e)=>{const t=n.getColor(c_);t&&e.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${t} 0 6px 6px -6px inset; }`)});class Nme{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Tme{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Ame(n){return new Nme(n)}function Mme(n){return new Tme(n.lineNumber,n.ranges.map(Ame))}class Wi extends u_{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(59),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(59),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(44).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const s=this._typicalHalfwidthCharacterWidth/4;let o=null,r=null;if(i&&i.length>0&&t.length>0){const a=t[0].lineNumber;if(a===e.startLineNumber)for(let c=0;!o&&c=0;c--)i[c].lineNumber===l&&(r=i[c].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}for(let a=0,l=t.length;a0){const g=t[a-1].ranges[0].left,_=t[a-1].ranges[0].left+t[a-1].ranges[0].width;sC(d-g)g&&(h.top=1),sC(u-_)'}_actualRenderOneSelection(e,t,i,s){if(s.length===0)return;const o=!!s[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),l=s[0].lineNumber,c=s[s.length-1].lineNumber;for(let d=0,u=s.length;d1,c)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map(([r,a])=>r+a)}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Wi.SELECTION_CLASS_NAME="selected-text";Wi.SELECTION_TOP_LEFT="top-left-radius";Wi.SELECTION_BOTTOM_LEFT="bottom-left-radius";Wi.SELECTION_TOP_RIGHT="top-right-radius";Wi.SELECTION_BOTTOM_RIGHT="bottom-right-radius";Wi.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";Wi.ROUNDED_PIECE_WIDTH=10;bi((n,e)=>{const t=n.getColor(Qd);t&&e.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const i=n.getColor(LP);i&&e.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const s=n.getColor(_he);s&&!s.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${s}; }`)});function sC(n){return n<0?-n:n}class N7{constructor(e,t,i,s,o,r){this.top=e,this.left=t,this.width=i,this.height=s,this.textContent=o,this.textContentClassName=r}}class T7{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(44);this._cursorStyle=t.get(24),this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Bt(document.createElement("div")),this._domNode.setClassName(`cursor ${Zh}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),_s(this._domNode,i),this._domNode.setDisplay("none"),this._position=new Z(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(44);return this._cursorStyle=t.get(24),this._lineHeight=t.get(59),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),_s(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[s,o]=Rle(i,t-1);return[new Z(e,s+1),i.substring(s,o)]}_prepareRender(e){let t="";const[i,s]=this._getGraphemeAwarePosition();if(this._cursorStyle===Un.Line||this._cursorStyle===Un.LineThin){const h=e.visibleRangeForPosition(i);if(!h||h.outsideRenderedLine)return null;let f;this._cursorStyle===Un.Line?(f=J3(this._lineCursorWidth>0?this._lineCursorWidth:2),f>2&&(t=s)):f=J3(1);let g=h.left;f>=2&&g>=1&&(g-=1);const _=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta;return new N7(_,g,f,this._lineHeight,t,"")}const o=e.linesVisibleRangesForRange(new T(i.lineNumber,i.column,i.lineNumber,i.column+s.length),!1);if(!o||o.length===0)return null;const r=o[0];if(r.outsideRenderedLine||r.ranges.length===0)return null;const a=r.ranges[0],l=a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===Un.Block){const h=this._context.viewModel.getViewLineData(i.lineNumber);t=s;const f=h.tokens.findTokenIndexAtOffset(i.column-1);c=h.tokens.getClassName(f)}let d=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.bigNumbersDelta,u=this._lineHeight;return(this._cursorStyle===Un.Underline||this._cursorStyle===Un.UnderlineThin)&&(d+=this._lineHeight-2,u=2),new N7(d,a.left,l,u,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${Zh} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class $v extends xr{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(81),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new T7(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Bt(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new xo,this._cursorFlatBlinkInterval=new Y1,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(81),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,s=this._secondaryCursors.length;it.length){const i=this._secondaryCursors.length-t.length;for(let s=0;s{for(let s=0,o=e.ranges.length;s{this._isVisible?this._hide():this._show()},$v.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},$v.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Un.Line:e+=" cursor-line-style";break;case Un.Block:e+=" cursor-block-style";break;case Un.Underline:e+=" cursor-underline-style";break;case Un.LineThin:e+=" cursor-line-thin-style";break;case Un.BlockOutline:e+=" cursor-block-outline-style";break;case Un.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const t=n.getColor(Yz);if(t){let i=n.getColor(ege);i||(i=t.opposite()),e.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),e.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${i}; }`),n.type==="hc"&&e.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const ZE=()=>{throw new Error("Invalid change accessor")};class Rme extends xr{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(131);this._lineHeight=t.get(59),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=Bt(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Bt(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const s of e)t.set(s.id,s);let i=!1;return this._context.viewModel.changeWhitespace(s=>{const o=Object.keys(this._zones);for(let r=0,a=o.length;r{const s={addZone:o=>(t=!0,this._addZone(i,o)),removeZone:o=>{o&&(t=this._removeZone(i,o)||t)},layoutZone:o=>{o&&(t=this._layoutZone(i,o)||t)}};Pme(e,s),s.addZone=ZE,s.removeZone=ZE,s.layoutZone=ZE}),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),o={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:Bt(t.domNode),marginDomNode:t.marginDomNode?Bt(t.marginDomNode):null};return this._safeCallOnComputedHeight(o.delegate,i.heightInPx),o.domNode.setPosition("absolute"),o.domNode.domNode.style.width="100%",o.domNode.setDisplay("none"),o.domNode.setAttribute("monaco-view-zone",o.whitespaceId),this.domNode.appendChild(o.domNode),o.marginDomNode&&(o.marginDomNode.setPosition("absolute"),o.marginDomNode.domNode.style.width="100%",o.marginDomNode.setDisplay("none"),o.marginDomNode.setAttribute("monaco-view-zone",o.whitespaceId),this.marginDomNode.appendChild(o.marginDomNode)),this._zones[o.whitespaceId]=o,this.setShouldRender(),o.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],s=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=s.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(i.delegate,s.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){return this._zones.hasOwnProperty(e)?!!this._zones[e].delegate.suppressMouseDown:!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(t)}catch(i){dt(i)}}_safeCallOnDomNodeTop(e,t){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(t)}catch(i){dt(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let s=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,s=!0);const o=Object.keys(this._zones);for(let r=0,a=o.length;r{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new Vfe(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Z(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const t=this._context.configuration.options.get(131);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(128)+" "+Yy(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=sz(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){Wme(()=>this._actualRender())}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!dP(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Bme(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const s=new Tfe(this._context.viewLayout,i,this._viewLines);for(const o of e)o.prepareRender(s);for(const o of e)o.render(s),o.onDidRender()}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new Z(s.lineNumber,s.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?_k.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Eme(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const i of this._viewParts)i.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(t===null){const s=e.position?e.position.position:null;s!==null&&(t=new T(s.lineNumber,s.column,s.lineNumber,s.column))}const i=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function Wme(n){try{return n()}catch(e){dt(e)}}class aS{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new $n(new T(1,1,1,1),0,new Z(1,1),0),new $n(new T(1,1,1,1),0,new Z(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new Dt(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return Fe.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,s){return t.equals(i)?s:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,s=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),a=this._validatePositionWithCache(e,s,i,r),l=this._validatePositionWithCache(e,o,s,a);return i.equals(r)&&s.equals(a)&&o.equals(l)?t:new $n(T.fromPositions(a,l),t.selectionStartLeftoverVisibleColumns+s.column-a.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=aS._validateViewState(e.viewModel,i)),t){const s=e.model.validateRange(t.selectionStart),o=t.selectionStart.equalsRange(s)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),a=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new $n(s,o,r,a)}else{if(!i)return;const s=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new $n(s,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const s=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new $n(s,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const s=e.coordinatesConverter.convertModelPositionToViewPosition(new Z(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new Z(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new T(s.lineNumber,s.column,o.lineNumber,o.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new $n(r,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class A7{constructor(e){this.context=e,this.cursors=[new aS(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return rae(this.cursors,Dw(e=>e.viewState.position,Z.compare)).viewState.position}getBottomMostViewPosition(){return oae(this.cursors,Dw(e=>e.viewState.position,Z.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates(Dt.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const s=t-i;for(let o=0;o=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;const e=this.cursors.slice(0),t=[];for(let i=0,s=e.length;ii.selection,T.compareRangesUsingStarts));for(let i=0;iu&&_.index--;e.splice(u,1),t.splice(d,1),this._removeSecondaryCursor(u-1),i--}}}}class M7{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}class Hme{constructor(){this.changeType=1}}class Ra{constructor(e,t,i,s,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=s,this.order=o}static applyInjectedText(e,t){if(!t||t.length===0)return e;let i="",s=0;for(const o of t)i+=e.substring(s,o.column-1),s=o.column-1,i+=o.options.content;return i+=e.substring(s),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new Ra(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new Ra(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((i,s)=>i.lineNumber===s.lineNumber?i.column===s.column?i.order-s.order:i.column-s.column:i.lineNumber-s.lineNumber),t}}class R7{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class zme{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class $me{constructor(e,t,i,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class Ume{constructor(){this.changeType=5}}class Qh{constructor(e,t,i,s){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=s,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class npe{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class BP{constructor(e,t,i,s){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=s,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return e.kind!==0?this:new BP(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class VP{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return e.kind!==1?this:new VP(this.oldHasFocus,e.hasFocus)}}class WP{constructor(e,t,i,s,o,r,a,l){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=s,this.scrollWidth=o,this.scrollLeft=r,this.scrollHeight=a,this.scrollTop=l,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}merge(e){return e.kind!==2?this:new WP(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class P7{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class cS{constructor(e,t,i,s,o,r,a){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=s,this.source=o,this.reason=r,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length,s=t.length;if(i!==s)return!1;for(let o=0;o0){const e=this._cursors.getSelections();for(let t=0;tCp.MAX_CURSOR_COUNT&&(s=s.slice(0,Cp.MAX_CURSOR_COUNT),o=!0);const r=$b.from(this._model,this);return this._cursors.setStates(s),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,s,o,r){const a=this._cursors.getViewPositions();let l=null,c=null;a.length>1?c=this._cursors.getViewSelections():l=T.fromPositions(a[0],a[0]),e.emitViewEvent(new Ww(t,i,l,c,s,o,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,s=t.length;i0){const s=Dt.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,s)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const s=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,Dt.fromModelSelections(s))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,s){this.setStates(e,t,s,Dt.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],s=[];for(let a=0,l=e.length;a0&&this._pushAutoClosedAction(i,s),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,s,o){const r=$b.from(this._model,this);if(r.equals(s))return!1;const a=this._cursors.getSelections(),l=this._cursors.getViewSelections();if(e.emitViewEvent(new Gme(l,a)),!s||s.cursorState.length!==r.cursorState.length||r.cursorState.some((c,d)=>!c.modelState.equals(s.cursorState[d].modelState))){const c=s?s.cursorState.map(u=>u.modelState.selection):null,d=s?s.modelVersionId:0;e.emitOutgoingEvent(new cS(c,a,d,r.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,s=e.length;i=0)return null;const r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const a=r[1],l=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(a);if(!l||l.length!==1)return null;const c=l[0].open,d=o.text.length-r[2].length-1,u=o.text.lastIndexOf(c,d-1);if(u===-1)return null;t.push([u,d])}return t}executeEdits(e,t,i,s){let o=null;t==="snippet"&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);const r=[],a=[],l=this._model.pushEditOperations(this.getSelections(),i,c=>{if(o)for(let u=0,h=o.length;u0&&this._pushAutoClosedAction(r,a)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;const o=$b.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){dt(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,o,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return O7.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{t==="keyboard"&&(this._executeEditOperation(Ai.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)},e,t)}type(e,t,i){this._executeEdit(()=>{if(i==="keyboard"){const s=t.length;let o=0;for(;o{const c=l.getPosition();return new Fe(c.lineNumber,c.column+o,c.lineNumber,c.column+o)});this.setSelections(e,r,a,0)}return}this._executeEdit(()=>{this._executeEditOperation(Ai.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,s,o))},e,r)}paste(e,t,i,s,o){this._executeEdit(()=>{this._executeEditOperation(Ai.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,s||[]))},e,o,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(Cf.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new uo(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new uo(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}Cp.MAX_CURSOR_COUNT=1e4;class $b{constructor(e,t){this.modelVersionId=e,this.cursorState=t}static from(e,t){return new $b(e.getVersionId(),t.getCursorStates())}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length||!t[i].strictContainsRange(e[i]))return!1;return!0}}class ope{static executeCommands(e,t,i){const s={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(s,i);for(let r=0,a=s.trackedRanges.length;r0&&(r[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,r,c=>{const d=[];for(let f=0;ff.identifier.minor-g.identifier.minor,h=[];for(let f=0;f0?(d[f].sort(u),h[f]=t[f].computeCursorState(e.model,{getInverseEditOperations:()=>d[f],getTrackedSelection:g=>{const _=parseInt(g,10),b=e.model._getTrackedRange(e.trackedRanges[_]);return e.trackedRangesDirection[_]===0?new Fe(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new Fe(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}})):h[f]=e.selectionsBefore[f];return h});a||(a=e.selectionsBefore);const l=[];for(let c in o)o.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((c,d)=>d-c);for(const c of l)a.splice(c,1);return a}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{T.isEmpty(u)&&h===""||s.push({identifier:{major:t,minor:o++},range:u,text:h,forceMoveMarkers:f,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let a=!1;const d={addEditOperation:r,addTrackedEditOperation:(u,h,f)=>{a=!0,r(u,h,f)},trackSelection:(u,h)=>{const f=Fe.liftSelection(u);let g;if(f.isEmpty())if(typeof h=="boolean")h?g=2:g=3;else{const v=e.model.getLineMaxColumn(f.startLineNumber);f.startColumn===v?g=2:g=3}else g=1;const _=e.trackedRanges.length,b=e.model._setTrackedRange(null,f,g);return e.trackedRanges[_]=b,e.trackedRangesDirection[_]=f.getDirection(),_.toString()}};try{i.getEditOperations(e.model,d)}catch(u){return dt(u),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((i,s)=>-T.compareRangesUsingEnds(i.range,s.range));const t={};for(let i=1;io.identifier.major?r=s.identifier.major:r=o.identifier.major,t[r.toString()]=!0;for(let a=0;a0&&i--}}return t}}class m${constructor(e,t,i,s,o,r){this.id=e,this.label=t,this.alias=i,this._precondition=s,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}const og={Configuration:"base.contributions.configuration"},U_="vscode://schemas/settings/resourceLanguage",F7=on.as(rk.JSONContribution);class rpe{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new j,this._onDidUpdateConfiguration=new j,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:m("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},F7.registerSchema(U_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=this.doRegisterConfigurations(e,t);F7.registerSchema(U_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;const i=[],s=[];for(const{overrides:o,source:r}of e)for(const a in o)if(i.push(a),Uv.test(a)){const l=Object.assign(Object.assign({},((t=this.configurationDefaultsOverrides.get(a))===null||t===void 0?void 0:t.value)||{}),o[a]);this.configurationDefaultsOverrides.set(a,{source:r,value:l});const c={type:"object",default:l,description:m("defaultLanguageConfiguration.description","Configure settings to be overridden for {0} language.",a),$ref:U_,defaultDefaultValue:l,source:pr(r)?void 0:r};s.push(..._$(a)),this.configurationProperties[a]=c,this.defaultLanguageConfigurationOverridesNode.properties[a]=c}else{this.configurationDefaultsOverrides.set(a,{value:o[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.registerOverrideIdentifiers(s),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){const i=[];return e.forEach(s=>{i.push(...this.validateAndRegisterProperties(s,t,s.extensionInfo,s.restrictedProperties)),this.configurationContributors.push(s),this.registerJSONConfiguration(s)}),i}validateAndRegisterProperties(e,t=!0,i,s,o=3){o=Oo(e.scope)?o:e.scope;let r=[],a=e.properties;if(a)for(let c in a){if(t&&cpe(c)){delete a[c];continue}const d=a[c];if(d.source=i,d.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,d),Uv.test(c)?d.scope=void 0:(d.scope=Oo(d.scope)?o:d.scope,d.restricted=Oo(d.restricted)?!!(s!=null&&s.includes(c)):d.restricted),a[c].hasOwnProperty("included")&&!a[c].included){this.excludedConfigurationProperties[c]=a[c],delete a[c];continue}else this.configurationProperties[c]=a[c];!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),r.push(c)}let l=e.allOf;if(l)for(let c of l)r.push(...this.validateAndRegisterProperties(c,t,i,s,o));return r}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=i=>{let s=i.properties;if(s)for(const r in s)this.updateSchema(r,s[r]);let o=i.allOf;o&&o.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:m("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:m("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:U_};this.updatePropertyDefaultValue(t,i)}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){m("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),m("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let s=i==null?void 0:i.value,o=i==null?void 0:i.source;po(s)&&(s=t.defaultDefaultValue,o=void 0),po(s)&&(s=lpe(t.type)),t.default=s,t.defaultValueSource=o}}const p$="\\[([^\\]]+)\\]",B7=new RegExp(p$,"g"),ape=`^(${p$})+$`,Uv=new RegExp(ape);function _$(n){const e=[];if(Uv.test(n)){let t=B7.exec(n);for(;t!=null&&t.length;){const i=t[1].trim();i&&e.push(i),t=B7.exec(n)}}return au(e)}function lpe(n){switch(Array.isArray(n)?n[0]:n){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const b$=new rpe;on.add(og.Configuration,b$);function cpe(n){return n.trim()?Uv.test(n)?m("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",n):b$.getConfigurationProperties()[n]!==void 0?m("config.property.duplicate","Cannot register '{0}'. This property is already registered.",n):null:m("config.property.empty","Cannot register an empty property")}const dpe={ModesRegistry:"editor.modesRegistry"};class upe{constructor(){this._onDidChangeLanguages=new j,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0);on.as(og.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}]);var fpe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const V7={getInitialState:()=>up,tokenizeEncoded:(n,e,t)=>JR(0,t)};function gpe(n,e,t){return fpe(this,void 0,void 0,function*(){if(!t)return W7(e,n.languageIdCodec,V7);const i=yield Ri.getOrCreate(t);return W7(e,n.languageIdCodec,i||V7)})}function mpe(n,e,t,i,s,o,r){let a="
    ",l=i,c=0,d=!0;for(let u=0,h=e.getCount();u0;)r&&d?(g+=" ",d=!1):(g+=" ",d=!0),b--;break}case 60:g+="<",d=!1;break;case 62:g+=">",d=!1;break;case 38:g+="&",d=!1;break;case 0:g+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",d=!1;break;case 13:g+="​",d=!1;break;case 32:r&&d?(g+=" ",d=!1):(g+=" ",d=!0);break;default:g+=String.fromCharCode(_),d=!1}}if(a+=`${g}`,f>s||l>=s)break}return a+="
    ",a}function W7(n,e,t){let i='
    ';const s=Al(n);let o=t.getInitialState();for(let r=0,a=s.length;r0&&(i+="
    ");const c=t.tokenizeEncoded(l,!0,o);yn.convertToEndOffset(c.tokens,l.length);const u=new yn(c.tokens,l,e).inflate();let h=0;for(let f=0,g=u.getCount();f${BR(l.substring(h,b))}`,h=b}o=c.endState}return i+="
    ",i}class ppe{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,s=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,s)}}class _pe{constructor(e,t,i,s,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=s,this.minWidth=o,this.prefixSum=0}}class jv{constructor(e,t,i,s){this._instanceId=SH(++jv.INSTANCE_COUNT),this._pendingChanges=new ppe,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=s}static findInsertionIndex(e,t,i){let s=0,o=e.length;for(;s>>1;t===e[r].afterLineNumber?i{t=!0,s=s|0,o=o|0,r=r|0,a=a|0;const l=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new _pe(l,s,o,r,a)),l},changeOneWhitespace:(s,o,r)=>{t=!0,o=o|0,r=r|0,this._pendingChanges.change({id:s,newAfterLineNumber:o,newHeight:r})},removeWhitespace:s=>{t=!0,this._pendingChanges.remove({id:s})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const l of e)this._insertWhitespace(l);for(const l of t)this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight);for(const l of i){const c=this._findWhitespaceIndex(l.id);c!==-1&&this._removeWhitespace(c)}return}const s=new Set;for(const l of i)s.add(l.id);const o=new Map;for(const l of t)o.set(l.id,l);const r=l=>{const c=[];for(const d of l)if(!s.has(d.id)){if(o.has(d.id)){const u=o.get(d.id);d.afterLineNumber=u.newAfterLineNumber,d.height=u.newHeight}c.push(d)}return c},a=r(this._arr).concat(r(e));a.sort((l,c)=>l.afterLineNumber===c.afterLineNumber?l.ordinal-c.ordinal:l.afterLineNumber-c.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=jv.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,s=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e=e|0,t=t|0,this._lineCount+=t-e+1;for(let i=0,s=this._arr.length;i=t.length||t[a+1].afterLineNumber>=e)return a;i=a+1|0}else s=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;const i=this._findLastWhitespaceBeforeLineNumber(e)+1;return i1?t=this._lineHeight*(e-1):t=0;const i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+i+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let t=0,i=this._arr.length;tt}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;const t=this._lineCount|0,i=this._lineHeight;let s=1,o=t;for(;s=a+i)s=r+1;else{if(e>=a)return r;o=r}}return s>t?t:s}getLinesViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this._lineHeight,s=this.getLineNumberAtOrAfterVerticalOffset(e)|0,o=this.getVerticalOffsetForLineNumber(s)|0;let r=this._lineCount|0,a=this.getFirstWhitespaceIndexAfterLineNumber(s)|0;const l=this.getWhitespacesCount()|0;let c,d;a===-1?(a=l,d=r+1,c=0):(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);let u=o,h=u;const f=5e5;let g=0;o>=f&&(g=Math.floor(o/f)*f,g=Math.floor(g/i)*i,h-=g);const _=[],b=e+(t-e)/2;let v=-1;for(let x=s;x<=r;x++){if(v===-1){const A=u,E=u+i;(A<=b&&bb)&&(v=x)}for(u+=i,_[x-s]=h,h+=i;d===x;)h+=c,u+=c,a++,a>=l?d=r+1:(d=this.getAfterLineNumberForWhitespaceIndex(a)|0,c=this.getHeightForWhitespaceIndex(a)|0);if(u>=t){r=x;break}}v===-1&&(v=r);const C=this.getVerticalOffsetForLineNumber(r)|0;let y=s,S=r;return yt&&S--,{bigNumbersDelta:g,startLineNumber:s,endLineNumber:r,relativeVerticalOffset:_,centeredLineNumber:v,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i;t>=1?i=this._lineHeight*t:i=0;let s;return e>0?s=this.getWhitespacesAccumulatedHeight(e-1):s=0,i+s+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;const s=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(e>=s+o)return-1;for(;t=a+l)t=r+1;else{if(e>=a)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const s=this.getHeightForWhitespaceIndex(t),o=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:r,verticalOffset:i,height:s}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e=e|0,t=t|0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),s=this.getWhitespacesCount()-1;if(i<0)return[];const o=[];for(let r=i;r<=s;r++){const a=this.getVerticalOffsetForWhitespaceIndex(r),l=this.getHeightForWhitespaceIndex(r);if(a>=t)break;o.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:l})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}}jv.INSTANCE_COUNT=0;const bpe=125;class gb{constructor(e,t,i,s){e=e|0,t=t|0,i=i|0,s=s|0,e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),s<0&&(s=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=s,this.scrollHeight=Math.max(i,s)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class vpe extends J{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new j),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new gb(0,0,0,0),this._scrollable=this._register(new t0({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,s=t.contentHeight!==e.contentHeight;(i||s)&&this._onDidContentSizeChange.fire(new BP(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class Cpe extends J{constructor(e,t,i){super(),this._configuration=e;const s=this._configuration.options,o=s.get(131),r=s.get(75);this._linesLayout=new jv(t,s.get(59),r.top,r.bottom),this._scrollable=this._register(new vpe(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new gb(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(103)?bpe:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(59)&&this._linesLayout.setLineHeight(t.get(59)),e.hasChanged(75)){const i=t.get(75);this._linesLayout.setPadding(i.top,i.bottom)}if(e.hasChanged(131)){const i=t.get(131),s=i.contentWidth,o=i.height,r=this._scrollable.getScrollDimensions(),a=r.contentWidth;this._scrollable.setScrollDimensions(new gb(s,r.contentWidth,o,this._getContentHeight(s,o,a)))}else this._updateHeight();e.hasChanged(103)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const s=this._configuration.options.get(92);return s.horizontal===2||e>=t?0:s.horizontalScrollbarSize}_getContentHeight(e,t,i){const s=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return s.get(94)?o+=Math.max(0,t-s.get(59)-s.get(75).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,s=e.contentWidth;this._scrollable.setScrollDimensions(new gb(t,e.contentWidth,i,this._getContentHeight(t,i,s)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new K3(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new K3(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(132),s=t.get(44);if(i.isViewportWrapping){const o=t.get(131),r=t.get(65);return e>o.contentWidth+s.typicalHalfwidthCharacterWidth&&r.enabled&&r.side==="right"?e+o.verticalScrollbarWidth:e}else{const o=t.get(93)*s.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+o,r)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new gb(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),s=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:t,scrollTopWithoutViewZones:t-s,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){t===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class wpe{constructor(e,t,i,s,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=s,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const s=e.range,o=e.options;let r;if(o.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new Z(s.startLineNumber,1),0),l=this._coordinatesConverter.convertModelPositionToViewPosition(new Z(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber)),1);r=new T(a.lineNumber,a.column,l.lineNumber,l.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(s,1);i=new YH(r,o),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=this._cachedModelDecorationsResolver!==null;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,Ey(this.configuration.options)),i=e.startLineNumber,s=e.endLineNumber,o=[];let r=0;const a=[];for(let l=i;l<=s;l++)a[l-i]=[];for(let l=0,c=t.length;lt===1)}function $P(n,e){return v$(n,e.range,t=>t===2)}function v$(n,e,t){for(let i=e.startLineNumber;i<=e.endLineNumber;i++){const s=n.getLineTokens(i),o=i===e.startLineNumber,r=i===e.endLineNumber;let a=o?s.findTokenIndexAtOffset(e.startColumn-1):0;for(;ae.endColumn-1);){if(!t(s.getStandardTokenType(a)))return!1;a++}}return!0}class aC{constructor(e,t,i){this.range=e,this.nestingLevel=t,this.isInvalid=i}}class ype{constructor(e,t,i,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s}}class Spe extends ype{constructor(e,t,i,s,o){super(e,t,i,s),this.minVisibleColumnIndentation=o}}class GN{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return`${this.lineCount},${this.columnCount}`}}GN.zero=new GN(0,0);function Lpe(n,e,t,i){return n!==t?Gi(t-n,i):Gi(0,i-e)}const Pl=0;function kpe(n){return n===0}const Uo=Math.pow(2,26);function Gi(n,e){return n*Uo+e}function iu(n){const e=n,t=Math.floor(e/Uo),i=e-t*Uo;return new GN(t,i)}function xpe(n){return Math.floor(n/Uo)}function pn(n,e){return e=e}function cC(n){return Gi(n.lineNumber-1,n.column-1)}function Mh(n,e){const t=n,i=Math.floor(t/Uo),s=t-i*Uo,o=e,r=Math.floor(o/Uo),a=o-r*Uo;return new T(i+1,s+1,r+1,a+1)}function Dpe(n){const e=Al(n);return Gi(e.length-1,e[e.length-1].length)}class H7{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class Ipe{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(i=>UP.from(i))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return Epe(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Gi(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Gi(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=iu(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Gi(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Gi(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(s===0){const r=1<0;)t=t.getChild(i-1);return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let s=1;sthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const o=this.lineTokens,r=o.getCount();let a=null;if(this.lineTokenOffset1e3))break;if(i>1500)break}const s=Lpe(e,t,this.lineIdx,this.lineCharOffset);return new Pd(s,0,-1,gn.getEmpty(),new em(s))}}class Ppe{constructor(e,t){this.text=e,this._offset=Pl,this.idx=0;const s=t.getRegExpStr()?new RegExp(t.getRegExpStr()+`| +`,"g"):null,o=[];let r,a=0,l=0,c=0,d=0;const u=new Array;for(let g=0;g<60;g++)u.push(new Pd(Gi(0,g),0,-1,gn.getEmpty(),new em(Gi(0,g))));const h=new Array;for(let g=0;g<60;g++)h.push(new Pd(Gi(1,g),0,-1,gn.getEmpty(),new em(Gi(1,g))));if(s)for(s.lastIndex=0;(r=s.exec(e))!==null;){const g=r.index,_=r[0];if(_===` +`)a++,l=g+1;else{if(c!==g){let b;if(d===a){const v=g-c;if(vOpe(t)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"g"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e)}findClosingTokenText(e){for(const[t,i]of this.map)if(i.bracketIds.intersects(e))return t}get isEmpty(){return this.map.size===0}}function Ope(n){const e=_r(n);return/^[\w ]+$/.test(n)?`\\b${e}\\b`:e}class y${constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){const t=this.languageIdToBracketTokens.get(e);if(!t)return!1;const i=hS.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider).getRegExpStr();return t.getRegExpStr()!==i}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=hS.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function Fpe(n){if(n.length===0)return null;if(n.length===1)return n[0];let e=0;function t(){if(e>=n.length)return null;const r=e,a=n[r].listHeight;for(e++;e=2?S$(r===0&&e===n.length?n:n.slice(r,e),!1):n[r]}let i=t(),s=t();if(!s)return i;for(let r=t();r;r=t())$7(i,s)<=$7(s,r)?(i=XE(i,s),s=r):s=XE(s,r);return XE(i,s)}function S$(n,e=!1){if(n.length===0)return null;if(n.length===1)return n[0];let t=n.length;for(;t>3;){const i=t>>1;for(let s=0;s=3?n[2]:null,e)}function $7(n,e){return Math.abs(n.listHeight-e.listHeight)}function XE(n,e){return n.listHeight===e.listHeight?Ol.create23(n,e,null,!1):n.listHeight>e.listHeight?Bpe(n,e):Vpe(e,n)}function Bpe(n,e){n=n.toMutable();let t=n;const i=new Array;let s;for(;;){if(e.listHeight===t.listHeight){s=e;break}if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeLastElementMutable()}for(let o=i.length-1;o>=0;o--){const r=i[o];s?r.childrenLength>=3?s=Ol.create23(r.unappendChild(),s,null,!1):(r.appendChildOfSameHeight(s),s=void 0):r.handleChildrenChanged()}return s?Ol.create23(n,s,null,!1):n}function Vpe(n,e){n=n.toMutable();let t=n;const i=new Array;for(;e.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");i.push(t),t=t.makeFirstElementMutable()}let s=e;for(let o=i.length-1;o>=0;o--){const r=i[o];s?r.childrenLength>=3?s=Ol.create23(s,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(s),s=void 0):r.handleChildrenChanged()}return s?Ol.create23(s,n,null,!1):n}class Wpe{constructor(e){this.lastOffset=Pl,this.nextNodes=[e],this.offsets=[Pl],this.idxs=[]}readLongestNodeAt(e,t){if(Hw(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=j_(this.nextNodes);if(!i)return;const s=j_(this.offsets);if(Hw(e,s))return;if(Hw(s,e))if(pn(s,i.length)<=e)this.nextNodeAfterCurrent();else{const o=QE(i);o!==-1?(this.nextNodes.push(i.getChild(o)),this.offsets.push(s),this.idxs.push(o)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const o=QE(i);if(o===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(i.getChild(o)),this.offsets.push(s),this.idxs.push(o)}}}}nextNodeAfterCurrent(){for(;;){const e=j_(this.offsets),t=j_(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const i=j_(this.nextNodes),s=QE(i,this.idxs[this.idxs.length-1]);if(s!==-1){this.nextNodes.push(i.getChild(s)),this.offsets.push(pn(e,t.length)),this.idxs[this.idxs.length-1]=s;break}else this.idxs.pop()}}}function QE(n,e=-1){for(;;){if(e++,e>=n.childrenLength)return-1;if(n.getChild(e))return e}}function j_(n){return n.length>0?n[n.length-1]:void 0}function YN(n,e,t,i){return new Hpe(n,e,t,i).parseDocument()}class Hpe{constructor(e,t,i,s){if(this.tokenizer=e,this.createImmutableLists=s,this._itemsConstructed=0,this._itemsFromCache=0,i&&s)throw new Error("Not supported");this.oldNodeReader=i?new Wpe(i):void 0,this.positionMapper=new Ipe(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(gn.getEmpty());return e||(e=Ol.getEmpty()),e}parseList(e){const t=new Array;for(;;){const s=this.tokenizer.peek();if(!s||s.kind===2&&s.bracketIds.intersects(e))break;const o=this.parseChild(e);o.kind===4&&o.childrenLength===0||t.push(o)}return this.oldNodeReader?Fpe(t):S$(t,this.createImmutableLists)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!kpe(i)){const s=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),o=>Hw(o.length,i)?o.canBeReused(e):!1);if(s)return this._itemsFromCache++,this.tokenizer.skip(s.length),s}}this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new Mpe(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),s=this.parseList(i),o=this.tokenizer.peek();return o&&o.kind===2&&(o.bracketId===t.bracketId||o.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),qv.create(t.astNode,s,o.astNode)):qv.create(t.astNode,s,null)}default:throw new Error("unexpected")}}}class zpe extends J{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new j,this.denseKeyProvider=new C$,this.brackets=new y$(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,e.backgroundTokenizationState===0){const i=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),s=new Ppe(this.textModel.getValue(),i);this.initialAstWithoutTokens=YN(s,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else e.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):e.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.backgroundTokenizationState===2){const e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map(i=>new H7(Gi(i.fromLineNumber-1,0),Gi(i.toLineNumber,0),Gi(i.toLineNumber-i.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map(i=>{const s=T.lift(i.range);return new H7(cC(s.getStartPosition()),cC(s.getEndPosition()),Dpe(i.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){const s=t,o=new w$(this.textModel,this.brackets);return YN(o,e,s,i)}getBracketsInRange(e){const t=Gi(e.startLineNumber-1,e.startColumn-1),i=Gi(e.endLineNumber-1,e.endColumn-1),s=new Array,o=this.initialAstWithoutTokens||this.astWithTokens;return ZN(o,Pl,o.length,t,i,s),s}getBracketPairsInRange(e,t){const i=new Array,s=cC(e.getStartPosition()),o=cC(e.getEndPosition()),r=this.initialAstWithoutTokens||this.astWithTokens,a=new $pe(i,t,this.textModel);return L$(r,Pl,r.length,s,o,a),i}}function ZN(n,e,t,i,s,o,r=0){if(n.kind===4)for(const a of n.children)t=pn(e,a.length),Ah(e,s)&&lC(t,i)&&ZN(a,e,t,i,s,o,r),e=t;else if(n.kind===2){r++;{const a=n.openingBracket;if(t=pn(e,a.length),Ah(e,s)&&lC(t,i)){const l=Mh(e,t);o.push(new aC(l,r-1,!n.closingBracket))}e=t}if(n.child){const a=n.child;t=pn(e,a.length),Ah(e,s)&&lC(t,i)&&ZN(a,e,t,i,s,o,r),e=t}if(n.closingBracket){const a=n.closingBracket;if(t=pn(e,a.length),Ah(e,s)&&lC(t,i)){const l=Mh(e,t);o.push(new aC(l,r-1,!1))}e=t}}else if(n.kind===3){const a=Mh(e,t);o.push(new aC(a,r-1,!0))}else if(n.kind===1){const a=Mh(e,t);o.push(new aC(a,r-1,!1))}}class $pe{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}function L$(n,e,t,i,s,o,r=0){var a;if(n.kind===2){const c=pn(e,n.openingBracket.length);let d=-1;o.includeMinIndentation&&(d=n.computeMinIndentation(e,o.textModel)),o.result.push(new Spe(Mh(e,t),Mh(e,c),n.closingBracket?Mh(pn(c,((a=n.child)===null||a===void 0?void 0:a.length)||Pl),t):void 0,r,d)),r++}let l=e;for(const c of n.children){const d=l;l=pn(l,c.length),Ah(d,s)&&Ah(i,l)&&L$(c,d,l,i,s,o,r)}}class Upe extends J{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new $s),this.onDidChangeEmitter=new j,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(i=>{var s;(!i.languageId||!((s=this.bracketPairsTree.value)===null||s===void 0)&&s.object.didLanguageChange(i.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get isDocumentSupported(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;(t=this.bracketPairsTree.value)===null||t===void 0||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.isDocumentSupported){if(!this.bracketPairsTree.value){const e=new ue;this.bracketPairsTree.value=jpe(e.add(new zpe(this.textModel,t=>this.languageConfigurationService.getLanguageConfiguration(t))),e),e.add(this.bracketPairsTree.value.object.onDidChange(t=>this.onDidChangeEmitter.fire(t))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!1))||[]}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketPairsInRange(e,!0))||[]}getBracketsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((t=this.bracketPairsTree.value)===null||t===void 0?void 0:t.object.getBracketsInRange(e))||[]}findMatchingBracketUp(e,t,i){const s=e.toLowerCase(),o=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(o.lineNumber,o.column),a=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!a)return null;const l=a.textIsBracket[s];return l?dC(this._findMatchingBracketUp(l,o,JE(i))):null}matchBracket(e,t){const i=JE(t);return this._matchBracket(this.textModel.validatePosition(e),i)}_establishBracketSearchOffsets(e,t,i,s){const o=t.getCount(),r=t.getLanguageId(s);let a=Math.max(0,e.column-1-i.maxBracketLength);for(let c=s-1;c>=0;c--){const d=t.getEndOffset(c);if(d<=a)break;if(Za(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){a=d;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let c=s+1;c=l)break;if(Za(t.getStandardTokenType(c))||t.getLanguageId(c)!==r){l=d;break}}return{searchStartOffset:a,searchEndOffset:l}}_matchBracket(e,t){const i=e.lineNumber,s=this.textModel.getLineTokens(i),o=this.textModel.getLineContent(i),r=s.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(r)).brackets;if(a&&!Za(s.getStandardTokenType(r))){let{searchStartOffset:l,searchEndOffset:c}=this._establishBracketSearchOffsets(e,s,a,r),d=null;for(;;){const u=Br.findNextBracketInRange(a.forwardRegex,i,o,l,c);if(!u)break;if(u.startColumn<=e.column&&e.column<=u.endColumn){const h=o.substring(u.startColumn-1,u.endColumn-1).toLowerCase(),f=this._matchFoundBracket(u,a.textIsBracket[h],a.textIsOpenBracket[h],t);if(f){if(f instanceof mc)return null;d=f}}l=u.endColumn-1}if(d)return d}if(r>0&&s.getStartOffset(r)===e.column-1){const l=r-1,c=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(l)).brackets;if(c&&!Za(s.getStandardTokenType(l))){const{searchStartOffset:d,searchEndOffset:u}=this._establishBracketSearchOffsets(e,s,c,l),h=Br.findPrevBracketInRange(c.reversedRegex,i,o,d,u);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const f=o.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),g=this._matchFoundBracket(h,c.textIsBracket[f],c.textIsOpenBracket[f],t);if(g)return g instanceof mc?null:g}}}return null}_matchFoundBracket(e,t,i,s){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),s):this._findMatchingBracketUp(t,e.getStartPosition(),s);return o?o instanceof mc?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const s=e.languageId,o=e.reversedRegex;let r=-1,a=0;const l=(c,d,u,h)=>{for(;;){if(i&&++a%100===0&&!i())return mc.INSTANCE;const f=Br.findPrevBracketInRange(o,c,d,u,h);if(!f)break;const g=d.substring(f.startColumn-1,f.endColumn-1).toLowerCase();if(e.isOpen(g)?r++:e.isClose(g)&&r--,r===0)return f;h=f.startColumn-1}return null};for(let c=t.lineNumber;c>=1;c--){const d=this.textModel.getLineTokens(c),u=d.getCount(),h=this.textModel.getLineContent(c);let f=u-1,g=h.length,_=h.length;c===t.lineNumber&&(f=d.findTokenIndexAtOffset(t.column-1),g=t.column-1,_=t.column-1);let b=!0;for(;f>=0;f--){const v=d.getLanguageId(f)===s&&!Za(d.getStandardTokenType(f));if(v)b?g=d.getStartOffset(f):(g=d.getStartOffset(f),_=d.getEndOffset(f));else if(b&&g!==_){const C=l(c,h,g,_);if(C)return C}b=v}if(b&&g!==_){const v=l(c,h,g,_);if(v)return v}}return null}_findMatchingBracketDown(e,t,i){const s=e.languageId,o=e.forwardRegex;let r=1,a=0;const l=(d,u,h,f)=>{for(;;){if(i&&++a%100===0&&!i())return mc.INSTANCE;const g=Br.findNextBracketInRange(o,d,u,h,f);if(!g)break;const _=u.substring(g.startColumn-1,g.endColumn-1).toLowerCase();if(e.isOpen(_)?r++:e.isClose(_)&&r--,r===0)return g;h=g.endColumn-1}return null},c=this.textModel.getLineCount();for(let d=t.lineNumber;d<=c;d++){const u=this.textModel.getLineTokens(d),h=u.getCount(),f=this.textModel.getLineContent(d);let g=0,_=0,b=0;d===t.lineNumber&&(g=u.findTokenIndexAtOffset(t.column-1),_=t.column-1,b=t.column-1);let v=!0;for(;g=1;o--){const r=this.textModel.getLineTokens(o),a=r.getCount(),l=this.textModel.getLineContent(o);let c=a-1,d=l.length,u=l.length;if(o===t.lineNumber){c=r.findTokenIndexAtOffset(t.column-1),d=t.column-1,u=t.column-1;const f=r.getLanguageId(c);i!==f&&(i=f,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets)}let h=!0;for(;c>=0;c--){const f=r.getLanguageId(c);if(i!==f){if(s&&h&&d!==u){const _=Br.findPrevBracketInRange(s.reversedRegex,o,l,d,u);if(_)return this._toFoundBracket(s,_);h=!1}i=f,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets}const g=!!s&&!Za(r.getStandardTokenType(c));if(g)h?d=r.getStartOffset(c):(d=r.getStartOffset(c),u=r.getEndOffset(c));else if(s&&h&&d!==u){const _=Br.findPrevBracketInRange(s.reversedRegex,o,l,d,u);if(_)return this._toFoundBracket(s,_)}h=g}if(s&&h&&d!==u){const f=Br.findPrevBracketInRange(s.reversedRegex,o,l,d,u);if(f)return this._toFoundBracket(s,f)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e),i=this.textModel.getLineCount();let s=null,o=null;for(let r=t.lineNumber;r<=i;r++){const a=this.textModel.getLineTokens(r),l=a.getCount(),c=this.textModel.getLineContent(r);let d=0,u=0,h=0;if(r===t.lineNumber){d=a.findTokenIndexAtOffset(t.column-1),u=t.column-1,h=t.column-1;const g=a.getLanguageId(d);s!==g&&(s=g,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets)}let f=!0;for(;d{if(!r.has(f)){const _=[];for(let b=0,v=g?g.brackets.length:0;b{for(;;){if(i&&++c%100===0&&!i())return mc.INSTANCE;const C=Br.findNextBracketInRange(f.forwardRegex,g,_,b,v);if(!C)break;const y=_.substring(C.startColumn-1,C.endColumn-1).toLowerCase(),S=f.textIsBracket[y];if(S&&(S.isOpen(y)?a[S.index]++:S.isClose(y)&&a[S.index]--,a[S.index]===-1))return this._matchFoundBracket(C,S,!1,i);b=C.endColumn-1}return null};let u=null,h=null;for(let f=s.lineNumber;f<=o;f++){const g=this.textModel.getLineTokens(f),_=g.getCount(),b=this.textModel.getLineContent(f);let v=0,C=0,y=0;if(f===s.lineNumber){v=g.findTokenIndexAtOffset(s.column-1),C=s.column-1,y=s.column-1;const x=g.getLanguageId(v);u!==x&&(u=x,h=this.languageConfigurationService.getLanguageConfiguration(u).brackets,l(u,h))}let S=!0;for(;v<_;v++){const x=g.getLanguageId(v);if(u!==x){if(h&&S&&C!==y){const E=d(h,f,b,C,y);if(E)return dC(E);S=!1}u=x,h=this.languageConfigurationService.getLanguageConfiguration(u).brackets,l(u,h)}const A=!!h&&!Za(g.getStandardTokenType(v));if(A)S||(C=g.getStartOffset(v)),y=g.getEndOffset(v);else if(h&&S&&C!==y){const E=d(h,f,b,C,y);if(E)return dC(E)}S=A}if(h&&S&&C!==y){const x=d(h,f,b,C,y);if(x)return dC(x)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const s=e.textIsBracket[i];return s?{range:t,open:s.open,close:s.close,isOpen:e.textIsOpenBracket[i]}:null}}function jpe(n,e){return{object:n,dispose:()=>e==null?void 0:e.dispose()}}function JE(n){if(typeof n>"u")return()=>!0;{const e=Date.now();return()=>Date.now()-e<=n}}class mc{constructor(){this._searchCanceledBrand=void 0}}mc.INSTANCE=new mc;function dC(n){return n instanceof mc?null:n}class qpe extends J{constructor(e){super(),this.textModel=e,this.colorProvider=new k$,this.onDidChangeEmitter=new j,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(t=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(t===void 0)return[];if(!this.colorizationOptions.enabled)return[];const s=new Array,o=this.textModel.bracketPairs.getBracketsInRange(e);for(const r of o)s.push({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(r)},ownerId:0,range:r.range});return s}getAllDecorations(e,t){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new T(1,1,this.textModel.getLineCount(),1),e,t):[]}}class k${constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}bi((n,e)=>{const t=[Qz,Jz,e$,t$,i$,n$],i=new k$;e.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${n.getColor(pge)}; }`);const s=t.map(o=>n.getColor(o)).filter(o=>!!o).filter(o=>!o.isTransparent());for(let o=0;o<30;o++){const r=s[o%s.length];e.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(o)} { color: ${r}; }`)}});function uC(n){return n.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Xn{constructor(e,t,i,s){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=s}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${uC(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${uC(this.oldText)}")`:`(replace@${this.oldPosition} "${uC(this.oldText)}" with "${uC(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const s=t.length;ua(e,s,i),i+=4;for(let o=0;on.length)return!1;if(t){if(!HR(n,e))return!1;if(e.length===n.length)return!0;let o=e.length;return e.charAt(e.length-1)===i&&o--,n.charAt(o)===i}return e.charAt(e.length-1)!==i&&(e+=i),n.indexOf(e)===0}function E$(n){return n>=65&&n<=90||n>=97&&n<=122}function Ype(n){const e=OR(n);return qn?n.length>3?!1:D$(e)&&(n.length===2||e.charCodeAt(2)===92):e===tn.sep}function D$(n,e){return(e!==void 0?e:qn)?E$(n.charCodeAt(0))&&n.charCodeAt(1)===58:!1}function Xa(n){return Ty(n,!0)}class Zpe{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Lv(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===mt.file)return XN(Xa(e),Xa(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(q7(e.authority,t.authority))return XN(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return et.joinPath(e,...t)}basenameOrAuthority(e){return yr(e)||e.authority}basename(e){return tn.basename(e.path)}extname(e){return tn.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===mt.file?t=et.file(uH(Xa(e))).path:(t=tn.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===mt.file?t=et.file(OR(Xa(e))).path:t=tn.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!q7(e.authority,t.authority))return;if(e.scheme===mt.file){const o=gle(Xa(e),Xa(t));return qn?x$(o):o}let i=e.path||"/",s=t.path||"/";if(this._ignorePathCasing(e)){let o=0;for(const r=Math.min(i.length,s.length);oU7(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=yl){return K7(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=yl){let i=!1;if(e.scheme===mt.file){const s=Xa(e);i=s!==void 0&&s.length===U7(s).length&&s[s.length-1]===t}else{t="/";const s=e.path;i=s.length===1&&s.charCodeAt(s.length-1)===47}return!i&&!K7(e,t)?e.with({path:e.path+"/"}):e}}const _i=new Zpe(()=>!1),I$=_i.isEqual.bind(_i);_i.isEqualOrParent.bind(_i);_i.getComparisonKey.bind(_i);const Xpe=_i.basenameOrAuthority.bind(_i),yr=_i.basename.bind(_i),Qpe=_i.extname.bind(_i),Ck=_i.dirname.bind(_i),Jpe=_i.joinPath.bind(_i),e_e=_i.normalizePath.bind(_i);_i.relativePath.bind(_i);const j7=_i.resolvePath.bind(_i);_i.isAbsolutePath.bind(_i);const q7=_i.isEqualAuthority.bind(_i),K7=_i.hasTrailingPathSeparator.bind(_i);_i.removeTrailingPathSeparator.bind(_i);_i.addTrailingPathSeparator.bind(_i);var pu;(function(n){n.META_DATA_LABEL="label",n.META_DATA_DESCRIPTION="description",n.META_DATA_SIZE="size",n.META_DATA_MIME="mime";function e(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(r=>{const[a,l]=r.split(":");a&&l&&i.set(a,l)});const o=t.path.substring(0,t.path.indexOf(";"));return o&&i.set(n.META_DATA_MIME,o),i}n.parseMetaData=e})(pu||(pu={}));function Fg(n){return n.toString()}class Nn{constructor(e,t,i,s,o,r,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=s,this.beforeCursorState=o,this.afterCursorState=r,this.changes=a}static create(e,t){const i=e.getAlternativeVersionId(),s=QN(e);return new Nn(i,i,s,s,t,t,[])}append(e,t,i,s,o){t.length>0&&(this.changes=Kpe(this.changes,t)),this.afterEOL=i,this.afterVersionId=s,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,t,i){if(ua(e,t?t.length:0,i),i+=4,t)for(const s of t)ua(e,s.selectionStartLineNumber,i),i+=4,ua(e,s.selectionStartColumn,i),i+=4,ua(e,s.positionLineNumber,i),i+=4,ua(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=da(e,t);t+=4;for(let o=0;ot.toString()).join(", ")}matchesResource(e){return(et.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Nn}append(e,t,i,s,o){this._data instanceof Nn&&this._data.append(e,t,i,s,o)}close(){this._data instanceof Nn&&(this._data=this._data.serialize())}open(){this._data instanceof Nn||(this._data=Nn.deserialize(this._data))}undo(){if(et.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Nn&&(this._data=this._data.serialize());const e=Nn.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(et.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Nn&&(this._data=this._data.serialize());const e=Nn.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Nn&&(this._data=this._data.serialize()),this._data.byteLength+168}}class t_e{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const s=Fg(i.resource);this._editStackElementsMap.set(s,i)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Fg(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Fg(et.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Fg(e.uri);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).canAppend(e):!1}append(e,t,i,s,o){const r=Fg(e.uri);this._editStackElementsMap.get(r).append(e,t,i,s,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Fg(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${yr(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function QN(n){return n.getEOL()===` +`?0:1}function pc(n){return n?n instanceof N$||n instanceof t_e:!1}class KP{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);pc(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);pc(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(pc(t)&&t.canAppend(this._model))return t;const i=new N$(this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],QN(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const s=this._getOrCreateEditStackElement(e),o=this._model.applyEdits(t,!0),r=KP._computeCursorState(i,o),a=o.map((l,c)=>({index:c,textChange:l.textChange}));return a.sort((l,c)=>l.textChange.oldPosition===c.textChange.oldPosition?l.index-c.index:l.textChange.oldPosition-c.textChange.oldPosition),s.append(this._model,a.map(l=>l.textChange),QN(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return dt(i),null}}}class i_e{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function n_e(n,e,t,i,s){s.spacesDiff=0,s.looksLikeAlignment=!1;let o;for(o=0;o0&&a>0||l>0&&c>0)return;const d=Math.abs(a-c),u=Math.abs(r-l);if(d===0){s.spacesDiff=u,u>0&&0<=l-1&&l-10?s++:S>1&&o++,n_e(r,a,b,y,u),u.looksLikeAlignment&&!(t&&e===u.spacesDiff)))continue;const A=u.spacesDiff;A<=c&&d[A]++,r=b,a=y}let h=t;s!==o&&(h=s{const b=d[_];b>g&&(g=b,f=_)}),f===4&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(f=2)}return{insertSpaces:h,tabSize:f}}function Gs(n){return(n.metadata&1)>>>0}function hi(n,e){n.metadata=n.metadata&254|e<<0}function es(n){return(n.metadata&2)>>>1===1}function ui(n,e){n.metadata=n.metadata&253|(e?1:0)<<1}function T$(n){return(n.metadata&4)>>>2===1}function Y7(n,e){n.metadata=n.metadata&251|(e?1:0)<<2}function s_e(n){return(n.metadata&24)>>>3}function Z7(n,e){n.metadata=n.metadata&231|e<<3}function o_e(n){return(n.metadata&32)>>>5===1}function X7(n,e){n.metadata=n.metadata&223|(e?1:0)<<5}class A${constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,hi(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,Y7(this,!1),Z7(this,1),X7(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ui(this,!1)}reset(e,t,i,s){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=s}setOptions(e){this.options=e;const t=this.options.className;Y7(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),Z7(this,this.options.stickiness),X7(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const gt=new A$(null,0,0);gt.parent=gt;gt.left=gt;gt.right=gt;hi(gt,0);class eD{constructor(){this.root=gt,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,s,o){return this.root===gt?[]:f_e(this,e,t,i,s,o)}search(e,t,i){return this.root===gt?[]:h_e(this,e,t,i)}collectNodesFromOwner(e){return d_e(this,e)}collectNodesPostOrder(){return u_e(this)}insert(e){Q7(this,e),this._normalizeDeltaIfNecessary()}delete(e){J7(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let s=0;for(;e!==this.root;)e===e.parent.right&&(s+=e.parent.delta),e=e.parent;const o=i.start+s,r=i.end+s;i.setCachedOffsets(o,r,t)}acceptReplace(e,t,i,s){const o=l_e(this,e,e+t);for(let r=0,a=o.length;rt||i===1?!1:i===2?!0:e}function a_e(n,e,t,i,s){const o=s_e(n),r=o===0||o===2,a=o===1||o===2,l=t-e,c=i,d=Math.min(l,c),u=n.start;let h=!1;const f=n.end;let g=!1;e<=u&&f<=t&&o_e(n)&&(n.start=e,h=!0,n.end=e,g=!0);{const b=s?1:l>0?2:0;!h&&Bg(u,r,e,b)&&(h=!0),!g&&Bg(f,a,e,b)&&(g=!0)}if(d>0&&!s){const b=l>c?2:0;!h&&Bg(u,r,e+d,b)&&(h=!0),!g&&Bg(f,a,e+d,b)&&(g=!0)}{const b=s?1:0;!h&&Bg(u,r,t,b)&&(n.start=e+c,h=!0),!g&&Bg(f,a,t,b)&&(n.end=e+c,g=!0)}const _=c-l;h||(n.start=Math.max(0,u+_)),g||(n.end=Math.max(0,f+_)),n.start>n.end&&(n.end=n.start)}function l_e(n,e,t){let i=n.root,s=0,o=0,r=0,a=0;const l=[];let c=0;for(;i!==gt;){if(es(i)){ui(i.left,!1),ui(i.right,!1),i===i.parent.right&&(s-=i.parent.delta),i=i.parent;continue}if(!es(i.left)){if(o=s+i.maxEnd,ot){ui(i,!0);continue}if(a=s+i.end,a>=e&&(i.setCachedOffsets(r,a,0),l[c++]=i),ui(i,!0),i.right!==gt&&!es(i.right)){s+=i.delta,i=i.right;continue}}return ui(n.root,!1),l}function c_e(n,e,t,i){let s=n.root,o=0,r=0,a=0;const l=i-(t-e);for(;s!==gt;){if(es(s)){ui(s.left,!1),ui(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),_u(s),s=s.parent;continue}if(!es(s.left)){if(r=o+s.maxEnd,rt){s.start+=l,s.end+=l,s.delta+=l,(s.delta<-1073741824||s.delta>1073741824)&&(n.requestNormalizeDelta=!0),ui(s,!0);continue}if(ui(s,!0),s.right!==gt&&!es(s.right)){o+=s.delta,s=s.right;continue}}ui(n.root,!1)}function d_e(n,e){let t=n.root;const i=[];let s=0;for(;t!==gt;){if(es(t)){ui(t.left,!1),ui(t.right,!1),t=t.parent;continue}if(t.left!==gt&&!es(t.left)){t=t.left;continue}if(t.ownerId===e&&(i[s++]=t),ui(t,!0),t.right!==gt&&!es(t.right)){t=t.right;continue}}return ui(n.root,!1),i}function u_e(n){let e=n.root;const t=[];let i=0;for(;e!==gt;){if(es(e)){ui(e.left,!1),ui(e.right,!1),e=e.parent;continue}if(e.left!==gt&&!es(e.left)){e=e.left;continue}if(e.right!==gt&&!es(e.right)){e=e.right;continue}t[i++]=e,ui(e,!0)}return ui(n.root,!1),t}function h_e(n,e,t,i){let s=n.root,o=0,r=0,a=0;const l=[];let c=0;for(;s!==gt;){if(es(s)){ui(s.left,!1),ui(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==gt&&!es(s.left)){s=s.left;continue}r=o+s.start,a=o+s.end,s.setCachedOffsets(r,a,i);let d=!0;if(e&&s.ownerId&&s.ownerId!==e&&(d=!1),t&&T$(s)&&(d=!1),d&&(l[c++]=s),ui(s,!0),s.right!==gt&&!es(s.right)){o+=s.delta,s=s.right;continue}}return ui(n.root,!1),l}function f_e(n,e,t,i,s,o){let r=n.root,a=0,l=0,c=0,d=0;const u=[];let h=0;for(;r!==gt;){if(es(r)){ui(r.left,!1),ui(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;continue}if(!es(r.left)){if(l=a+r.maxEnd,lt){ui(r,!0);continue}if(d=a+r.end,d>=e){r.setCachedOffsets(c,d,o);let f=!0;i&&r.ownerId&&r.ownerId!==i&&(f=!1),s&&T$(r)&&(f=!1),f&&(u[h++]=r)}if(ui(r,!0),r.right!==gt&&!es(r.right)){a+=r.delta,r=r.right;continue}}return ui(n.root,!1),u}function Q7(n,e){if(n.root===gt)return e.parent=gt,e.left=gt,e.right=gt,hi(e,0),n.root=e,n.root;g_e(n,e),xd(e.parent);let t=e;for(;t!==n.root&&Gs(t.parent)===1;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;Gs(i)===1?(hi(t.parent,0),hi(i,0),hi(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,Ub(n,t)),hi(t.parent,0),hi(t.parent.parent,1),jb(n,t.parent.parent))}else{const i=t.parent.parent.left;Gs(i)===1?(hi(t.parent,0),hi(i,0),hi(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,jb(n,t)),hi(t.parent,0),hi(t.parent.parent,1),Ub(n,t.parent.parent))}return hi(n.root,0),e}function g_e(n,e){let t=0,i=n.root;const s=e.start,o=e.end;for(;;)if(p_e(s,o,i.start+t,i.end+t)<0)if(i.left===gt){e.start-=t,e.end-=t,e.maxEnd-=t,i.left=e;break}else i=i.left;else if(i.right===gt){e.start-=t+i.delta,e.end-=t+i.delta,e.maxEnd-=t+i.delta,i.right=e;break}else t+=i.delta,i=i.right;e.parent=i,e.left=gt,e.right=gt,hi(e,1)}function J7(n,e){let t,i;if(e.left===gt?(t=e.right,i=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===gt?(t=e.left,i=e):(i=m_e(e.right),t=i.right,t.start+=i.delta,t.end+=i.delta,t.delta+=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),i.start+=e.delta,i.end+=e.delta,i.delta=e.delta,(i.delta<-1073741824||i.delta>1073741824)&&(n.requestNormalizeDelta=!0)),i===n.root){n.root=t,hi(t,0),e.detach(),tD(),_u(t),n.root.parent=gt;return}const s=Gs(i)===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?t.parent=i.parent:(i.parent===e?t.parent=i:t.parent=i.parent,i.left=e.left,i.right=e.right,i.parent=e.parent,hi(i,Gs(e)),e===n.root?n.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==gt&&(i.left.parent=i),i.right!==gt&&(i.right.parent=i)),e.detach(),s){xd(t.parent),i!==e&&(xd(i),xd(i.parent)),tD();return}xd(t),xd(t.parent),i!==e&&(xd(i),xd(i.parent));let o;for(;t!==n.root&&Gs(t)===0;)t===t.parent.left?(o=t.parent.right,Gs(o)===1&&(hi(o,0),hi(t.parent,1),Ub(n,t.parent),o=t.parent.right),Gs(o.left)===0&&Gs(o.right)===0?(hi(o,1),t=t.parent):(Gs(o.right)===0&&(hi(o.left,0),hi(o,1),jb(n,o),o=t.parent.right),hi(o,Gs(t.parent)),hi(t.parent,0),hi(o.right,0),Ub(n,t.parent),t=n.root)):(o=t.parent.left,Gs(o)===1&&(hi(o,0),hi(t.parent,1),jb(n,t.parent),o=t.parent.left),Gs(o.left)===0&&Gs(o.right)===0?(hi(o,1),t=t.parent):(Gs(o.left)===0&&(hi(o.right,0),hi(o,1),Ub(n,o),o=t.parent.left),hi(o,Gs(t.parent)),hi(t.parent,0),hi(o.left,0),jb(n,t.parent),t=n.root));hi(t,0),tD()}function m_e(n){for(;n.left!==gt;)n=n.left;return n}function tD(){gt.parent=gt,gt.delta=0,gt.start=0,gt.end=0}function Ub(n,e){const t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==gt&&(t.left.parent=e),t.parent=e.parent,e.parent===gt?n.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,_u(e),_u(t)}function jb(n,e){const t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(n.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==gt&&(t.right.parent=e),t.parent=e.parent,e.parent===gt?n.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,_u(e),_u(t)}function M$(n){let e=n.end;if(n.left!==gt){const t=n.left.maxEnd;t>e&&(e=t)}if(n.right!==gt){const t=n.right.maxEnd+n.delta;t>e&&(e=t)}return e}function _u(n){n.maxEnd=M$(n)}function xd(n){for(;n!==gt;){const e=M$(n);if(n.maxEnd===e)return;n.maxEnd=e,n=n.parent}}function p_e(n,e,t,i){return n===t?e-i:n-t}class JN{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==rt)return GP(this.right);let e=this;for(;e.parent!==rt&&e.parent.left!==e;)e=e.parent;return e.parent===rt?rt:e.parent}prev(){if(this.left!==rt)return R$(this.left);let e=this;for(;e.parent!==rt&&e.parent.right!==e;)e=e.parent;return e.parent===rt?rt:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const rt=new JN(null,0);rt.parent=rt;rt.left=rt;rt.right=rt;rt.color=0;function GP(n){for(;n.left!==rt;)n=n.left;return n}function R$(n){for(;n.right!==rt;)n=n.right;return n}function YP(n){return n===rt?0:n.size_left+n.piece.length+YP(n.right)}function ZP(n){return n===rt?0:n.lf_left+n.piece.lineFeedCnt+ZP(n.right)}function iD(){rt.parent=rt}function qb(n,e){const t=e.right;t.size_left+=e.size_left+(e.piece?e.piece.length:0),t.lf_left+=e.lf_left+(e.piece?e.piece.lineFeedCnt:0),e.right=t.left,t.left!==rt&&(t.left.parent=e),t.parent=e.parent,e.parent===rt?n.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function Kb(n,e){const t=e.left;e.left=t.right,t.right!==rt&&(t.right.parent=e),t.parent=e.parent,e.size_left-=t.size_left+(t.piece?t.piece.length:0),e.lf_left-=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),e.parent===rt?n.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function hC(n,e){let t,i;if(e.left===rt?(i=e,t=i.right):e.right===rt?(i=e,t=i.left):(i=GP(e.right),t=i.right),i===n.root){n.root=t,t.color=0,e.detach(),iD(),n.root.parent=rt;return}const s=i.color===1;if(i===i.parent.left?i.parent.left=t:i.parent.right=t,i===e?(t.parent=i.parent,mb(n,t)):(i.parent===e?t.parent=i:t.parent=i.parent,mb(n,t),i.left=e.left,i.right=e.right,i.parent=e.parent,i.color=e.color,e===n.root?n.root=i:e===e.parent.left?e.parent.left=i:e.parent.right=i,i.left!==rt&&(i.left.parent=i),i.right!==rt&&(i.right.parent=i),i.size_left=e.size_left,i.lf_left=e.lf_left,mb(n,i)),e.detach(),t.parent.left===t){const r=YP(t),a=ZP(t);if(r!==t.parent.size_left||a!==t.parent.lf_left){const l=r-t.parent.size_left,c=a-t.parent.lf_left;t.parent.size_left=r,t.parent.lf_left=a,rc(n,t.parent,l,c)}}if(mb(n,t.parent),s){iD();return}let o;for(;t!==n.root&&t.color===0;)t===t.parent.left?(o=t.parent.right,o.color===1&&(o.color=0,t.parent.color=1,qb(n,t.parent),o=t.parent.right),o.left.color===0&&o.right.color===0?(o.color=1,t=t.parent):(o.right.color===0&&(o.left.color=0,o.color=1,Kb(n,o),o=t.parent.right),o.color=t.parent.color,t.parent.color=0,o.right.color=0,qb(n,t.parent),t=n.root)):(o=t.parent.left,o.color===1&&(o.color=0,t.parent.color=1,Kb(n,t.parent),o=t.parent.left),o.left.color===0&&o.right.color===0?(o.color=1,t=t.parent):(o.left.color===0&&(o.right.color=0,o.color=1,qb(n,o),o=t.parent.left),o.color=t.parent.color,t.parent.color=0,o.left.color=0,Kb(n,t.parent),t=n.root));t.color=0,iD()}function e8(n,e){for(mb(n,e);e!==n.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){const t=e.parent.parent.right;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,qb(n,e)),e.parent.color=0,e.parent.parent.color=1,Kb(n,e.parent.parent))}else{const t=e.parent.parent.left;t.color===1?(e.parent.color=0,t.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,Kb(n,e)),e.parent.color=0,e.parent.parent.color=1,qb(n,e.parent.parent))}n.root.color=0}function rc(n,e,t,i){for(;e!==n.root&&e!==rt;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}function mb(n,e){let t=0,i=0;if(e!==n.root){for(;e!==n.root&&e===e.parent.right;)e=e.parent;if(e!==n.root)for(e=e.parent,t=YP(e.left)-e.size_left,i=ZP(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=i;e!==n.root&&(t!==0||i!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=i),e=e.parent}}const Jl=65535;function P$(n){let e;return n[n.length-1]<65536?e=new Uint16Array(n.length):e=new Uint32Array(n.length),e.set(n,0),e}class __e{constructor(e,t,i,s,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=o}}function cc(n,e=!0){const t=[0];let i=1;for(let s=0,o=n.length;s126)&&(r=!1)}const a=new __e(P$(n),i,s,o,r);return n.length=0,a}class lo{constructor(e,t,i,s,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=o}}class wh{constructor(e,t){this.buffer=e,this.lineStarts=t}}class v_e{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==rt&&e.iterate(e.root,i=>(i!==rt&&this._pieces.push(i.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class C_e{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let s=0;s=e){i[s]=null,t=!0;continue}}if(t){const s=[];for(const o of i)o!==null&&s.push(o);this._cache=s}}}class w_e{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new wh("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=rt,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let o=0,r=e.length;o0){e[o].lineStarts||(e[o].lineStarts=cc(e[o].buffer));const a=new lo(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),s=this.rbInsertRight(s,a)}this._searchCache=new C_e(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Jl,i=t-Math.floor(t/3),s=i*2;let o="",r=0;const a=[];if(this.iterate(this.root,l=>{const c=this.getNodeContent(l),d=c.length;if(r<=i||r+d0){const l=o.replace(/\r\n|\r|\n/g,e);a.push(new wh(l,cc(l)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new v_e(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==rt;)if(s.left!==rt&&s.lf_left+1>=e)s=s.left;else if(s.lf_left+s.piece.lineFeedCnt+1>=e){i+=s.size_left;const o=this.getAccumulatedValue(s,e-s.lf_left-2);return i+=o+t-1}else e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right;return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const s=e;for(;t!==rt;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,o.index===0){const r=this.getOffsetAt(i+1,1),a=s-r;return new Z(i+1,a+1)}return new Z(i+1,o.remainder+1)}else if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===rt){const o=this.getOffsetAt(i+1,1),r=s-e-o;return new Z(i+1,r+1)}else t=t.right;return new Z(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,s);return t?t!==this._EOL||!this._EOLNormalized?o.replace(/\r\n|\r|\n/g,t):t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const a=e.node,l=this._buffers[a.piece.bufferIndex].buffer,c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return l.substring(c+e.remainder,c+t.remainder)}let i=e.node;const s=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=s.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==rt;){const a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=a.substring(l,l+t.remainder);break}else r+=a.substr(l,i.piece.length);i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",s=!1;return this.iterate(this.root,o=>{if(o===rt)return!0;const r=o.piece;let a=r.length;if(a===0)return!0;const l=this._buffers[r.bufferIndex].buffer,c=this._buffers[r.bufferIndex].lineStarts,d=r.start.line,u=r.end.line;let h=c[d]+r.start.column;if(s&&(l.charCodeAt(h)===10&&(h++,a--),e[t++]=i,i="",s=!1,a===0))return!0;if(d===u)return!this._EOLNormalized&&l.charCodeAt(h+a-1)===13?(s=!0,i+=l.substr(h,a-1)):i+=l.substr(h,a),!0;i+=this._EOLNormalized?l.substring(h,Math.max(h,c[d+1]-this._EOLLength)):l.substring(h,c[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let f=d+1;fS+g,t.reset(0)):(C=h.buffer,y=S=>S,t.reset(g));do if(b=t.next(C),b){if(y(b.index)>=_)return d;this.positionInBuffer(e,y(b.index)-f,v);const S=this.getLineFeedCnt(e.piece.bufferIndex,o,v),x=v.line===o.line?v.column-o.column+s:v.column+1,A=x+b[0].length;if(u[d++]=ph(new T(i+S,x,i+S,A),b,l),y(b.index)+b[0].length>=_||d>=c)return d}while(b);return d}findMatchesLineByLine(e,t,i,s){const o=[];let r=0;const a=new um(t.wordSeparators,t.regex);let l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];const c=this.nodeAt2(e.endLineNumber,e.endColumn);if(c===null)return[];let d=this.positionInBuffer(l.node,l.remainder);const u=this.positionInBuffer(c.node,c.remainder);if(l.node===c.node)return this.findMatchesInNode(l.node,a,e.startLineNumber,e.startColumn,d,u,t,i,s,r,o),o;let h=e.startLineNumber,f=l.node;for(;f!==c.node;){const _=this.getLineFeedCnt(f.piece.bufferIndex,d,f.piece.end);if(_>=1){const v=this._buffers[f.piece.bufferIndex].lineStarts,C=this.offsetInBuffer(f.piece.bufferIndex,f.piece.start),y=v[d.line+_],S=h===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(f,a,h,S,d,this.positionInBuffer(f,y-C),t,i,s,r,o),r>=s)return o;h+=_}const b=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){const v=this.getLineContent(h).substring(b,e.endColumn-1);return r=this._findMatchesInLine(t,a,v,e.endLineNumber,b,r,o,i,s),o}if(r=this._findMatchesInLine(t,a,this.getLineContent(h).substr(b),h,b,r,o,i,s),r>=s)return o;h++,l=this.nodeAt2(h,1),f=l.node,d=this.positionInBuffer(l.node,l.remainder)}if(h===e.endLineNumber){const _=h===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(h).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,o,i,s),o}const g=h===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(c.node,a,h,g,d,u,t,i,s,r,o),o}_findMatchesInLine(e,t,i,s,o,r,a,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const h=e.simpleSearch,f=h.length,g=i.length;let _=-f;for(;(_=i.indexOf(h,_+f))!==-1;)if((!d||nP(d,i,g,_,f))&&(a[r++]=new kv(new T(s,_+1+o,s,_+1+f+o),null),r>=c))return r;return r}let u;t.reset(0);do if(u=t.next(i),u&&(a[r++]=ph(new T(s,u.index+1+o,s,u.index+1+u[0].length+o),u,l),r>=c))return r;while(u);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==rt){const{node:s,remainder:o,nodeStartOffset:r}=this.nodeAt(e),a=s.piece,l=a.bufferIndex,c=this.positionInBuffer(s,o);if(s.piece.bufferIndex===0&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&r+a.length===e&&t.lengthe){const d=[];let u=new lo(a.bufferIndex,c,a.end,this.getLineFeedCnt(a.bufferIndex,c,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&this.nodeCharCodeAt(s,o)===10){const _={line:u.start.line+1,column:0};u=new lo(u.bufferIndex,_,u.end,this.getLineFeedCnt(u.bufferIndex,_,u.end),u.length-1),t+=` +`}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(this.nodeCharCodeAt(s,o-1)===13){const _=this.positionInBuffer(s,o-1);this.deleteNodeTail(s,_),t="\r"+t,s.piece.length===0&&d.push(s)}else this.deleteNodeTail(s,c);else this.deleteNodeTail(s,c);const h=this.createNewPieces(t);u.length>0&&this.rbInsertRight(s,u);let f=s;for(let g=0;g=0;r--)o=this.rbInsertLeft(o,s[r]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=` +`);const i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]);let o=s;for(let r=1;r=h)c=u+1;else break;return i?(i.line=u,i.column=l-f,null):{line:u,column:l-f}}getLineFeedCnt(e,t,i){if(i.column===0)return i.line-t.line;const s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;const o=s[i.line+1],r=s[i.line]+i.column;if(o>r+1)return i.line-t.line;const a=r-1;return this._buffers[e].buffer.charCodeAt(a)===13?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tJl){const d=[];for(;e.length>Jl;){const h=e.charCodeAt(Jl-1);let f;h===13||h>=55296&&h<=56319?(f=e.substring(0,Jl-1),e=e.substring(Jl-1)):(f=e.substring(0,Jl),e=e.substring(Jl));const g=cc(f);d.push(new lo(this._buffers.length,{line:0,column:0},{line:g.length-1,column:f.length-g[g.length-1]},g.length-1,f.length)),this._buffers.push(new wh(f,g))}const u=cc(e);return d.push(new lo(this._buffers.length,{line:0,column:0},{line:u.length-1,column:e.length-u[u.length-1]},u.length-1,e.length)),this._buffers.push(new wh(e,u)),d}let t=this._buffers[0].buffer.length;const i=cc(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&t!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let d=0;d=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this.getAccumulatedValue(i,e-i.lf_left-1),d=this._buffers[i.piece.bufferIndex].buffer,u=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:r,nodeStartLineNumber:a-(e-1-i.lf_left)}),d.substring(u+l,u+c-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const l=this.getAccumulatedValue(i,e-i.lf_left-2),c=this._buffers[i.piece.bufferIndex].buffer,d=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=c.substring(d+l,d+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==rt;){const r=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const a=this.getAccumulatedValue(i,0),l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=r.substring(l,l+a-t),s}else{const a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=r.substr(a,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==rt;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,s=this.positionInBuffer(e,t),o=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const r=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[o]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,s=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),r=t,a=this.offsetInBuffer(i.bufferIndex,r),l=this.getLineFeedCnt(i.bufferIndex,i.start,r),c=l-s,d=a-o,u=i.length+d;e.piece=new lo(i.bufferIndex,i.start,r,l,u),rc(this,e,d,c)}deleteNodeHead(e,t){const i=e.piece,s=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),r=t,a=this.getLineFeedCnt(i.bufferIndex,r,i.end),l=this.offsetInBuffer(i.bufferIndex,r),c=a-s,d=o-l,u=i.length+d;e.piece=new lo(i.bufferIndex,r,i.end,a,u),rc(this,e,d,c)}shrinkNode(e,t,i){const s=e.piece,o=s.start,r=s.end,a=s.length,l=s.lineFeedCnt,c=t,d=this.getLineFeedCnt(s.bufferIndex,s.start,c),u=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,o);e.piece=new lo(s.bufferIndex,s.start,c,d,u),rc(this,e,u-a,d-l);const h=new lo(s.bufferIndex,i,r,this.getLineFeedCnt(s.bufferIndex,i,r),this.offsetInBuffer(s.bufferIndex,r)-this.offsetInBuffer(s.bufferIndex,i)),f=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(f)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` +`);const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=cc(t,!1);for(let f=0;fe)t=t.left;else if(t.size_left+t.piece.length>=e){s+=t.size_left;const o={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(o),o}else e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==rt;)if(i.left!==rt&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(o+t-1,r),nodeStartOffset:s}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:s};t-=i.piece.length-o;break}else e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==rt;){if(i.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(i,0),r=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,o),nodeStartOffset:r}}else if(i.piece.length>=t-1){const o=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:o}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` +`)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===rt||e.piece.lineFeedCnt===0)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,o=i[s]+t.start.column;return s===i.length-1||i[s+1]>o+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(o)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===rt||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],s=this._buffers[e.piece.bufferIndex].lineStarts;let o;e.piece.end.column===0?o={line:e.piece.end.line-1,column:s[e.piece.end.line]-s[e.piece.end.line-1]-1}:o={line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new lo(e.piece.bufferIndex,e.piece.start,o,a,r),rc(this,e,-1,-1),e.piece.length===0&&i.push(e);const l={line:t.piece.start.line+1,column:0},c=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new lo(t.piece.bufferIndex,l,t.piece.end,d,c),rc(this,t,-1,-1),t.piece.length===0&&i.push(t);const u=this.createNewPieces(`\r +`);this.rbInsertRight(e,u[0]);for(let h=0;hb.sortIndex-v.sortIndex)}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=r;const f=this._doApplyEdits(l);let g=null;if(t&&u.length>0){u.sort((_,b)=>b.lineNumber-_.lineNumber),g=[];for(let _=0,b=u.length;_0&&u[_-1].lineNumber===v)continue;const C=u[_].oldContent,y=this.getLineContent(v);y.length===0||y===C||Vs(y)!==-1||g.push(v)}}return this._onDidChangeContent.fire(),new sce(h,f,g)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,s=e[e.length-1].range,o=new T(i.startLineNumber,i.startColumn,s.endLineNumber,s.endColumn);let r=i.startLineNumber,a=i.startColumn;const l=[];for(let f=0,g=e.length;f0&&l.push(_.text),r=b.endLineNumber,a=b.endColumn}const c=l.join(""),[d,u,h]=wf(c);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:c,eolCount:d,firstLineLength:u,lastLineLength:h,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Um._sortOpsDescending);const t=[];for(let i=0;i0){const h=l.eolCount+1;h===1?u=new T(c,d,c,d+l.firstLineLength):u=new T(c,d,c+h-1,l.lastLineLength+1)}else u=new T(c,d,c,d);i=u.endLineNumber,s=u.endColumn,t.push(u),o=l}return t}static _sortOpsAscending(e,t){const i=T.compareRangesUsingEnds(e.range,t.range);return i===0?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=T.compareRangesUsingEnds(e.range,t.range);return i===0?t.sortIndex-e.sortIndex:-i}}class y_e{constructor(e,t,i,s,o,r,a,l,c){this._chunks=e,this._bom=t,this._cr=i,this._lf=s,this._crlf=o,this._containsRTL=r,this._containsUnusualLineTerminators=a,this._isBasicASCII=l,this._normalizeEOL=c}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return t===0?e===1?` +`:`\r +`:i>t/2?`\r +`:` +`}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&(t===`\r +`&&(this._cr>0||this._lf>0)||t===` +`&&(this._cr>0||this._crlf>0)))for(let o=0,r=i.length;o=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=b_e(this._tmpLineStarts,e);this.chunks.push(new wh(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=BL(e)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=yH(e))}finish(e=!0){return this._finish(),new y_e(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=cc(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}}}class L_e{constructor(e,t){this._startLineNumber=e,this._tokens=t}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class nD{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new L_e(e,[t]))}finalize(){return this._tokens}}class t8{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}delete(e,t){t===0||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(t===0||e>=this._store.length)return;const i=[];for(let s=0;s{const s=this._textModel.getLanguageId();i.changedLanguages.indexOf(s)!==-1&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(e){if(e.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let t=0,i=e.changes.length;t{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(t)>=e)break;while(this._hasLinesToTokenize());this._textModel.setTokens(t.finalize(),!this._hasLinesToTokenize())}tokenizeViewport(e,t){const i=new nD;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.finalize(),!this._hasLinesToTokenize())}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new nD;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.finalize(),!this._hasLinesToTokenize())}getTokenTypeIfInsertingCharacter(e,t){if(!this._tokenizationStateStore)return 0;this.forceTokenization(e.lineNumber);const i=this._tokenizationStateStore.getBeginState(e.lineNumber-1);if(!i)return 0;const s=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),r=o.substring(0,e.column-1)+t+o.substring(e.column-1),a=q_(this._languageIdCodec,s,this._tokenizationStateStore.tokenizationSupport,r,!0,i),l=new yn(a.tokens,r,this._languageIdCodec);if(l.getCount()===0)return 0;const c=l.findTokenIndexAtOffset(e.column-1);return l.getStandardTokenType(c)}tokenizeLineWithEdit(e,t,i){const s=e.lineNumber,o=e.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(s);const r=this._tokenizationStateStore.getBeginState(s-1);if(!r)return null;const a=this._textModel.getLineContent(s),l=a.substring(0,o-1)+i+a.substring(o-1+t),c=this._textModel.getLanguageIdAtPosition(s,0),d=q_(this._languageIdCodec,c,this._tokenizationStateStore.tokenizationSupport,l,!0,r);return new yn(d.tokens,l,this._languageIdCodec)}isCheapToTokenize(e){if(!this._tokenizationStateStore)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return e>t?!1:e1&&c>=1;c--){const d=this._textModel.getLineFirstNonWhitespaceColumn(c);if(d!==0&&d=0;c--)l=q_(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,o[c],!1,l).endState;for(let c=t;c<=i;c++){const d=this._textModel.getLineContent(c),u=q_(this._languageIdCodec,a,this._tokenizationStateStore.tokenizationSupport,d,!0,l);e.add(c,u.tokens),this._tokenizationStateStore.markMustBeTokenized(c-1),l=u.endState}}}function E_e(n){if(n.isTooLargeForTokenization())return[null,null];const e=Ri.get(n.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return dt(i),[null,null]}return[e,t]}function q_(n,e,t,i,s,o){let r=null;if(t)try{r=t.tokenizeEncoded(i,s,o.clone())}catch(a){dt(a)}return r||(r=JR(n.encodeLanguageId(e),o)),yn.convertToEndOffset(r.tokens,i.length),r}const dc=new Uint32Array(0).buffer;class el{static deleteBeginning(e,t){return e===null||e===dc?e:el.delete(e,0,t)}static deleteEnding(e,t){if(e===null||e===dc)return e;const i=wc(e),s=i[i.length-2];return el.delete(e,t,s)}static delete(e,t,i){if(e===null||e===dc||t===i)return e;const s=wc(e),o=s.length>>>1;if(t===0&&s[s.length-2]===i)return dc;const r=yn.findIndexInTokensArray(s,t),a=r>0?s[r-1<<1]:0,l=s[r<<1];if(id&&(s[c++]=g,s[c++]=s[(f<<1)+1],d=g)}if(c===s.length)return e;const h=new Uint32Array(c);return h.set(s.subarray(0,c),0),h.buffer}static append(e,t){if(t===dc)return e;if(e===dc)return t;if(e===null)return e;if(t===null)return null;const i=wc(e),s=wc(t),o=s.length>>>1,r=new Uint32Array(i.length+s.length);r.set(i,0);let a=i.length;const l=i[i.length-2];for(let c=0;c>>1;let r=yn.findIndexInTokensArray(s,t);r>0&&s[r-1<<1]===t&&r--;for(let a=r;a1&&(o=ms.getLanguageId(s[1])!==e),!o)return dc}if(!s||s.length===0){const o=new Uint32Array(2);return o[0]=t,o[1]=i8(e),o.buffer}return s[s.length-2]=t,s.byteOffset===0&&s.byteLength===s.buffer.byteLength?s.buffer:s}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){t!==0&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(t===0)return;const i=[];for(let s=0;s=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[t]=el.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1);return}this._lineTokens[t]=el.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i=this._len)){if(t===0){this._lineTokens[s]=el.insert(this._lineTokens[s],e.column-1,i);return}this._lineTokens[s]=el.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=el.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)}}}function i8(n){return(n<<0|0|0|16384|2<<23)>>>0}class XP{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const o=t[0].getRange(),r=t[t.length-1].getRange();if(!o||!r)return e;i=e.plusRange(o).plusRange(r)}let s=null;for(let o=0,r=this._pieces.length;oi.endLineNumber){s=s||{index:o};break}if(a.removeTokens(i),a.isEmpty()){this._pieces.splice(o,1),o--,r--;continue}if(a.endLineNumberi.endLineNumber){s=s||{index:o};continue}const[l,c]=a.split(i);if(l.isEmpty()){s=s||{index:o};continue}c.isEmpty()||(this._pieces.splice(o,1,l,c),o++,r++,s=s||{index:o})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=RL(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){const i=this._pieces;if(i.length===0)return t;const s=XP._findFirstPieceWithLine(i,e),o=i[s].getLineTokens(e);if(!o)return t;const r=t.getCount(),a=o.getCount();let l=0;const c=[];let d=0,u=0;const h=(f,g)=>{f!==u&&(u=f,c[d++]=f,c[d++]=g)};for(let f=0;f>>0,C=~v>>>0;for(;lt)s=o-1;else{for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}}return i}acceptEdit(e,t,i,s,o){for(const r of this._pieces)r.acceptEdit(e,t,i,s,o)}}const wk=At("undoRedoService");class O${constructor(e,t){this.resource=e,this.elements=t}}class yp{constructor(){this.id=yp._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}yp._ID=0;yp.None=new yp;class gl{constructor(){this.id=gl._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}gl._ID=0;gl.None=new gl;var D_e=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},sD=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};function I_e(){return new S_e}function N_e(n){const e=I_e();return e.acceptChunk(n),e.finish()}function n8(n,e){return(typeof n=="string"?N_e(n):n).create(e)}let fC=0;const T_e=999,A_e=1e4;class M_e{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;do{const s=this._source.read();if(s===null)return this._eos=!0,t===0?null:e.join("");if(s.length>0&&(e[t++]=s,i+=s.length),i>=64*1024)return e.join("")}while(!0)}}const K_=()=>{throw new Error("Invalid change accessor")};let Uc=class dh extends J{constructor(e,t,i,s=null,o,r,a){super(),this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._onWillDispose=this._register(new j),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new F_e(h=>this.handleBeforeFireDecorationsChangedEvent(h))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new j),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new j),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new j),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new j),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new j),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new j),this._eventEmitter=this._register(new B_e),this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new j),fC++,this.id="$model"+fC,this.isForSimpleWidget=i.isForSimpleWidget,typeof s>"u"||s===null?this._associatedResource=et.parse("inmemory://model/"+fC):this._associatedResource=s,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=n8(e,i.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=dh.resolveOptions(this._buffer,i);const d=this._buffer.getLineCount(),u=this._buffer.getValueLengthInRange(new T(1,1,d,this._buffer.getLineLength(d)+1),0);i.largeFileOptimizations?this._isTooLargeForTokenization=u>dh.LARGE_FILE_SIZE_THRESHOLD||d>dh.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=u>dh.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageId=t,this._languageRegistryListener=this._languageConfigurationService.onDidChange(h=>{h.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=SH(fC),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new s8,this._commandManager=new KP(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new fS(this._languageService.languageIdCodec),this._semanticTokens=new XP(this._languageService.languageIdCodec),this._tokenization=new x_e(this,this._languageService.languageIdCodec),this._bracketPairColorizer=this._register(new Upe(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new ume(this,this._languageConfigurationService)),this._decorationProvider=this._register(new qpe(this)),this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){const i=G7(e,t.tabSize,t.insertSpaces);return new Aw({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new Aw({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return Mc(this._eventEmitter.fastEvent(t=>e(t.rawContentChangedEvent)),this._onDidChangeInjectedText.event(t=>e(t)))}get bracketPairs(){return this._bracketPairColorizer}get guides(){return this._guidesTextModelPart}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(e){if(this._backgroundTokenizationState===2)return;const t=e?2:1;this._backgroundTokenizationState!==t&&(this._backgroundTokenizationState=t,this._bracketPairColorizer.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;const e=new Um([],"",` +`,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=J.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._isDisposing||(this._bracketPairColorizer.handleDidChangeContent(t),this._tokenization.handleDidChangeContent(t),this._eventEmitter.fire(new lS(e,t)))}setValue(e){if(this._assertNotDisposed(),e===null)return;const{textBuffer:t,disposable:i}=n8(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,s,o,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:s}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._semanticTokens.flush(),this._decorations=Object.create(null),this._decorationsTree=new s8,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Qh([new Hme],this._versionId,!1,!1),this._createContentChanged2(new T(1,1,o,r),0,s,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=e===1?`\r +`:` +`;if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Qh([new Ume],this._versionId,!1,!1),this._createContentChanged2(new T(1,1,o,r),0,s,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,s=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let s=1;s<=i;s++){const o=this._buffer.getLineLength(s);o>=A_e?t+=o:e+=o}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=typeof e.tabSize<"u"?e.tabSize:this._options.tabSize,i=typeof e.indentSize<"u"?e.indentSize:this._options.indentSize,s=typeof e.insertSpaces<"u"?e.insertSpaces:this._options.insertSpaces,o=typeof e.trimAutoWhitespace<"u"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=typeof e.bracketColorizationOptions<"u"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new Aw({tabSize:t,indentSize:i,insertSpaces:s,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:r});if(this._options.equals(a))return;const l=this._options.createChangeEvent(a);this._options=a,this._bracketPairColorizer.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();const i=G7(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),eS(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(wH.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(i=>({range:i.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueInRange(i,e);return t?this._buffer.getBOM()+s:s}createSnapshot(e=!1){return new M_e(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+s:s}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` +`?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,s=e.startColumn;let o=Math.floor(typeof i=="number"&&!isNaN(i)?i:1),r=Math.floor(typeof s=="number"&&!isNaN(s)?s:1);if(o<1)o=1,r=1;else if(o>t)o=t,r=this.getLineMaxColumn(o);else if(r<=1)r=1;else{const u=this.getLineMaxColumn(o);r>=u&&(r=u)}const a=e.endLineNumber,l=e.endColumn;let c=Math.floor(typeof a=="number"&&!isNaN(a)?a:1),d=Math.floor(typeof l=="number"&&!isNaN(l)?l:1);if(c<1)c=1,d=1;else if(c>t)c=t,d=this.getLineMaxColumn(c);else if(d<=1)d=1;else{const u=this.getLineMaxColumn(c);d>=u&&(d=u)}return i===o&&s===r&&a===c&&l===d&&e instanceof T&&!(e instanceof Fe)?e:new T(o,r,c,d)}_isValidPosition(e,t,i){if(typeof e!="number"||typeof t!="number"||isNaN(e)||isNaN(t)||e<1||t<1||(e|0)!==e||(t|0)!==t)return!1;const s=this._buffer.getLineCount();if(e>s)return!1;if(t===1)return!0;const o=this.getLineMaxColumn(e);if(t>o)return!1;if(i===1){const r=this._buffer.getLineCharCode(e,t-2);if(wn(r))return!1}return!0}_validatePosition(e,t,i){const s=Math.floor(typeof e=="number"&&!isNaN(e)?e:1),o=Math.floor(typeof t=="number"&&!isNaN(t)?t:1),r=this._buffer.getLineCount();if(s<1)return new Z(1,1);if(s>r)return new Z(r,this.getLineMaxColumn(r));if(o<=1)return new Z(s,1);const a=this.getLineMaxColumn(s);if(o>=a)return new Z(s,a);if(i===1){const l=this._buffer.getLineCharCode(s,o-2);if(wn(l))return new Z(s,o-1)}return new Z(s,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof Z&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,s=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,s,0)||!this._isValidPosition(o,r,0))return!1;if(t===1){const a=s>1?this._buffer.getLineCharCode(i,s-2):0,l=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,c=wn(a),d=wn(l);return!c&&!d}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof T&&!(e instanceof Fe)&&this._isValidRange(e,1))return e;const i=this._validatePosition(e.startLineNumber,e.startColumn,0),s=this._validatePosition(e.endLineNumber,e.endColumn,0),o=i.lineNumber,r=i.column,a=s.lineNumber,l=s.column;{const c=r>1?this._buffer.getLineCharCode(o,r-2):0,d=l>1&&l<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,l-2):0,u=wn(c),h=wn(d);return!u&&!h?new T(o,r,a,l):o===a&&r===l?new T(o,r-1,a,l-1):u&&h?new T(o,r-1,a,l+1):u?new T(o,r-1,a,l):new T(o,r,a,l+1)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new T(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,s){return this._buffer.findMatchesLineByLine(e,t,i,s)}findMatches(e,t,i,s,o,r,a=T_e){this._assertNotDisposed();let l=null;t!==null&&(Array.isArray(t)||(t=[t]),t.every(u=>T.isIRange(u))&&(l=t.map(u=>this.validateRange(u)))),l===null&&(l=[this.getFullModelRange()]),l=l.sort((u,h)=>u.startLineNumber-h.startLineNumber||u.startColumn-h.startColumn);const c=[];c.push(l.reduce((u,h)=>T.areIntersecting(u,h)?u.plusRange(h):(c.push(u),h)));let d;if(!i&&e.indexOf(` +`)<0){const h=new ch(e,i,s,o).parseSearchRequest();if(!h)return[];d=f=>this.findMatchesLineByLine(f,h,r,a)}else d=u=>X0.findMatches(this,new ch(e,i,s,o),u,r,a);return c.map(d).reduce((u,h)=>u.concat(h),[])}findNextMatch(e,t,i,s,o,r){this._assertNotDisposed();const a=this.validatePosition(t);if(!i&&e.indexOf(` +`)<0){const c=new ch(e,i,s,o).parseSearchRequest();if(!c)return null;const d=this.getLineCount();let u=new T(a.lineNumber,a.column,d,this.getLineMaxColumn(d)),h=this.findMatchesLineByLine(u,c,r,1);return X0.findNextMatch(this,new ch(e,i,s,o),a,r),h.length>0||(u=new T(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),h=this.findMatchesLineByLine(u,c,r,1),h.length>0)?h[0]:null}return X0.findNextMatch(this,new ch(e,i,s,o),a,r)}findPreviousMatch(e,t,i,s,o,r){this._assertNotDisposed();const a=this.validatePosition(t);return X0.findPreviousMatch(this,new ch(e,i,s,o),a,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if((this.getEOL()===` +`?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof vE?e:new vE(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,s=e.length;i({range:this.validateRange(r.range),text:r.text}));let o=!0;if(e)for(let r=0,a=e.length;rl.endLineNumber,g=l.startLineNumber>h.endLineNumber;if(!f&&!g){c=!0;break}}if(!c){o=!1;break}}if(o)for(let r=0,a=this._trimAutoWhitespaceLines.length;rf.endLineNumber)&&!(l===f.startLineNumber&&f.startColumn===c&&f.isEmpty()&&g&&g.length>0&&g.charAt(0)===` +`)&&!(l===f.startLineNumber&&f.startColumn===1&&f.isEmpty()&&g&&g.length>0&&g.charAt(g.length-1)===` +`)){d=!1;break}}if(d){const u=new T(l,1,l,c);t.push(new vE(null,u,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,s){const o=e.map(r=>{const a=this.getPositionAt(r.newPosition),l=this.getPositionAt(r.newEnd);return{range:new T(a.lineNumber,a.column,l.lineNumber,l.column),text:r.oldText}});this._applyUndoRedoEdits(o,t,!0,!1,i,s)}_applyRedo(e,t,i,s){const o=e.map(r=>{const a=this.getPositionAt(r.oldPosition),l=this.getPositionAt(r.oldEnd);return{range:new T(a.lineNumber,a.column,l.lineNumber,l.column),text:r.newText}});this._applyUndoRedoEdits(o,t,!1,!0,i,s)}_applyUndoRedoEdits(e,t,i,s,o,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=s,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),s=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=s.changes;if(this._trimAutoWhitespaceLines=s.trimAutoWhitespaceLineNumbers,r.length!==0){for(let c=0,d=r.length;c0?u.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(u.rangeOffset,u.rangeLength,u.text.length,u.forceMoveMarkers)}const a=[];this._increaseVersionId();let l=i;for(let c=0,d=r.length;c=0;P--){const $=f+P,z=y+P;D.takeFromEndWhile(Q=>Q.lineNumber>z);const ee=D.takeFromEndWhile(Q=>Q.lineNumber===z);a.push(new R7($,this.getLineContent(z),ee))}if(v<_){const P=f+v;a.push(new zme(P+1,g))}if(vSe.lineNumberSe.lineNumber===ke)}a.push(new $me($+1,f+b,Ee,Q))}l+=C}this._emitContentChangedEvent(new Qh(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return s.reverseEdits===null?void 0:s.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(e===null||e.size===0)return;const i=[...e].map(s=>new R7(s,this.getLineContent(s),this._getInjectedTextInLine(s)));this._onDidChangeInjectedText.fire(new f$(i))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(o,r)=>this._deltaDecorationsImpl(e,[],[{range:o,options:r}])[0],changeDecoration:(o,r)=>{this._changeDecorationImpl(o,r)},changeDecorationOptions:(o,r)=>{this._changeDecorationOptionsImpl(o,r8(r))},removeDecoration:o=>{this._deltaDecorationsImpl(e,[o],[])},deltaDecorations:(o,r)=>o.length===0&&r.length===0?[]:this._deltaDecorationsImpl(e,o,r)};let s=null;try{s=t(i)}catch(o){dt(o)}return i.addDecoration=K_,i.changeDecoration=K_,i.changeDecorationOptions=K_,i.removeDecoration=K_,i.deltaDecorations=K_,s}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&t.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const s=e?this._decorations[e]:null;if(!s)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:o8[i]}])[0]:null;if(!t)return this._decorationsTree.delete(s),delete this._decorations[s.id],null;const o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(s),s.reset(this.getVersionId(),r,a,o),s.setOptions(o8[i]),this._decorationsTree.insert(s),s.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,s=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,s=!1){const o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),a=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new T(r,1,a,l),d=this._getDecorationsInRange(c,i,s);return d.push(...this._decorationProvider.getDecorationsInRange(c,i,s)),d}getDecorationsInRange(e,t=0,i=!1){const s=this.validateRange(e),o=this._getDecorationsInRange(s,t,i);return o.push(...this._decorationProvider.getDecorationsInRange(s,t,i)),o}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),s=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return Ra.fromDecorations(s).filter(o=>o.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){const s=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,s,o,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.endLineNumber)}if(i.options.before){const a=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(a.startLineNumber)}const s=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,r,s),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const s=!!(i.options.overviewRuler&&i.options.overviewRuler.color),o=!!(t.overviewRuler&&t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber)}if(i.options.before||t.before){const r=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}s!==o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){const s=this.getVersionId(),o=t.length;let r=0;const a=i.length;let l=0;const c=new Array(a);for(;r0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.handleTokenizationProgress(t)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||(this._bracketPairColorizer.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),i=this._tokens.getTokens(this._languageId,e-1,t);return this._semanticTokens.addSparseTokens(e,i)}getLanguageId(){return this._languageId}setMode(e){if(this._languageId===e)return;const t={oldLanguage:this._languageId,newLanguage:e};this._languageId=e,this._bracketPairColorizer.handleDidChangeLanguage(t),this._tokenization.handleDidChangeLanguage(t),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const i=this.validatePosition(new Z(e,t)),s=this.getLineTokens(i.lineNumber);return s.getLanguageId(s.findTokenIndexAtOffset(i.column-1))}getTokenTypeIfInsertingCharacter(e,t,i){const s=this.validatePosition(new Z(e,t));return this._tokenization.getTokenTypeIfInsertingCharacter(s,i)}tokenizeLineWithEdit(e,t,i){const s=this.validatePosition(e);return this._tokenization.tokenizeLineWithEdit(s,t,i)}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}getWordAtPosition(e){this._assertNotDisposed();const t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),s=this._getLineTokens(t.lineNumber),o=s.findTokenIndexAtOffset(t.column-1),[r,a]=dh._findLanguageBoundaries(s,o),l=Cv(t.column,this.getLanguageConfiguration(s.getLanguageId(o)).getWordDefinition(),i.substring(r,a),r);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&r===t.column-1){const[c,d]=dh._findLanguageBoundaries(s,o-1),u=Cv(t.column,this.getLanguageConfiguration(s.getLanguageId(o-1)).getWordDefinition(),i.substring(c,d),c);if(u&&u.startColumn<=e.column&&e.column<=u.endColumn)return u}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let s=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)s=e.getStartOffset(r);let o=e.getLineContent().length;for(let r=t,a=e.getCount();ra.options.showIfCollapsed||!a.range.isEmpty())}getAllInjectedText(e,t){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,s).filter(o=>o.options.showIfCollapsed||!o.range.isEmpty())}getAll(e,t,i,s){const o=e.getVersionId(),r=this._search(t,i,s,o);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,s){if(i)return this._decorationsTree1.search(e,t,s);{const o=this._decorationsTree0.search(e,t,s),r=this._decorationsTree1.search(e,t,s),a=this._injectedTextDecorationsTree.search(e,t,s);return o.concat(r).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),s=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(s)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){rD(e)?this._injectedTextDecorationsTree.insert(e):oD(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){rD(e)?this._injectedTextDecorationsTree.delete(e):oD(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),t.range===null&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){rD(e)?this._injectedTextDecorationsTree.resolveNode(e,t):oD(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,s){this._decorationsTree0.acceptReplace(e,t,i,s),this._decorationsTree1.acceptReplace(e,t,i,s),this._injectedTextDecorationsTree.acceptReplace(e,t,i,s)}}function pd(n){return n.replace(/[^a-z0-9\-_]/gi," ")}class F${constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class P_e extends F${constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:br.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if(typeof e=="string")return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class O_e extends F${constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return typeof e=="string"?X.fromHex(e):t.getColor(e.id)}}class yf{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof yf?e:new yf(e)}}class pt{constructor(e){var t,i;this.description=e.description,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?pd(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new P_e(e.overviewRuler):null,this.minimap=e.minimap?new O_e(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?pd(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?pd(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?pd(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?pd(e.marginClassName):null,this.inlineClassName=e.inlineClassName?pd(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?pd(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?pd(e.afterContentClassName):null,this.after=e.after?yf.from(e.after):null,this.before=e.before?yf.from(e.before):null,this.hideInCommentTokens=(t=e.hideInCommentTokens)!==null&&t!==void 0?t:!1,this.hideInStringTokens=(i=e.hideInStringTokens)!==null&&i!==void 0?i:!1}static register(e){return new pt(e)}static createDynamic(e){return new pt(e)}}pt.EMPTY=pt.register({description:"empty"});const o8=[pt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),pt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),pt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),pt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function r8(n){return n instanceof pt?n:pt.createDynamic(n)}class F_e extends J{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new j),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const t={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(t)}(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!!(e.minimap&&e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(e.overviewRuler&&e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class B_e extends J{constructor(){super(),this._fastEmitter=this._register(new j),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new j),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}function aD(n,e){return n===null?e?gS.INSTANCE:mS.INSTANCE:new V_e(n,e)}class V_e{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const s=i>0?this._projectionData.breakOffsets[i-1]:0,o=this._projectionData.breakOffsets[i];let r;if(this._projectionData.injectionOffsets!==null){const a=this._projectionData.injectionOffsets.map((c,d)=>new Ra(0,0,c+1,this._projectionData.injectionOptions[d],0));r=Ra.applyInjectedText(e.getLineContent(t),a).substring(s,o)}else r=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:o+1});return i>0&&(r=a8(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const s=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],s),s[0]}getViewLinesData(e,t,i,s,o,r,a){this._assertVisible();const l=this._projectionData,c=l.injectionOffsets,d=l.injectionOptions;let u=null;if(c){u=[];let f=0,g=0;for(let _=0;_0?l.breakOffsets[_-1]:0,C=l.breakOffsets[_];for(;gC)break;if(v0?l.wrappedTextIndentLength:0,D=E+Math.max(S-v,0),P=E+Math.min(x-v,C);D!==P&&b.push(new Wde(D,P,A.inlineClassName,A.inlineClassNameAffectsLetterSpacing))}}if(x<=C)f+=y,g++;else break}}}let h;c?h=e.getLineTokens(t).withInserted(c.map((f,g)=>({offset:f,text:d[g].content,tokenMetadata:yn.defaultTokenMetadata}))):h=e.getLineTokens(t);for(let f=i;f0?s.wrappedTextIndentLength:0,r=i>0?s.breakOffsets[i-1]:0,a=s.breakOffsets[i],l=e.sliceAndInflate(r,a,o);let c=l.getLineContent();i>0&&(c=a8(s.wrappedTextIndentLength)+c);const d=this._projectionData.getMinOutputOffset(i)+1,u=c.length+1,h=i+1=lD.length)for(let e=1;e<=n;e++)lD[e]=W_e(e);return lD[n]}function W_e(n){return new Array(n+1).join(" ")}class H_e{constructor(e,t,i,s,o,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=s,this.fontInfo=o,this.tabSize=r,this.wrappingStrategy=a,this.wrappingColumn=l,this.wrappingIndent=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new $_e(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),o=i.length,r=this.createLineBreaksComputer(),a=new ap(Ra.fromDecorations(s));for(let _=0;_v.lineNumber===_+1);r.addRequest(i[_],b,t?t[_]:null)}const l=r.finalize(),c=[],d=this.hiddenAreasDecorationIds.map(_=>this.model.getDecorationRange(_)).sort(T.compareRangesUsingStarts);let u=1,h=0,f=-1,g=f+1=u&&b<=h,C=aD(l[_],!v);c[_]=C.getViewLineCount(),this.modelLineProjections[_]=C}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new nde(c)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){const t=e.map(h=>this.model.validateRange(h)),i=z_e(t),s=this.hiddenAreasDecorationIds.map(h=>this.model.getDecorationRange(h)).sort(T.compareRangesUsingStarts);if(i.length===s.length){let h=!1;for(let f=0;f({range:h,options:pt.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,o);const r=i;let a=1,l=0,c=-1,d=c+1=a&&f<=l?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),g=!0):(u=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),g=!0)),g){const _=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,_)}}return u||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return e<1||e>this.modelLineProjections.length?!1:this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,s){const o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===s;if(o&&r&&a&&l)return!1;const c=o&&r&&!a&&l;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=s;let d=null;if(c){d=[];for(let u=0,h=this.modelLineProjections.length;u2&&!this.modelLineProjections[t-2].isVisible(),r=t===1?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let a=0;const l=[],c=[];for(let d=0,u=s.length;dl?(d=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,u=d+l-1,g=u+1,_=g+(o-l)-1,c=!0):ot?t:e|0}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const s=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),a=this.model.guides.getActiveIndentGuide(s.lineNumber,o.lineNumber,r.lineNumber),l=this.convertModelPositionToViewPosition(a.startLineNumber,1),c=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:c.lineNumber,indent:a.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,s=t.remainder;return new l8(i+1,s)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Z(e.modelLineNumber,s)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Z(e.modelLineNumber,s)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),s=this.getViewLineInfo(t),o=new Array;let r=this.getModelStartPositionOfViewLine(i),a=new Array;for(let l=i.modelLineNumber;l<=s.modelLineNumber;l++){const c=this.modelLineProjections[l-1];if(c.isVisible()){const d=l===i.modelLineNumber?i.modelLineWrappedLineIdx:0,u=l===s.modelLineNumber?s.modelLineWrappedLineIdx+1:c.getViewLineCount();for(let h=d;hh.horizontalLine?new pm(h.visibleColumn,h.className,new jN(h.horizontalLine.top,this.convertModelPositionToViewPosition(d.modelLineNumber,h.horizontalLine.endColumn).column)):h),r.push(u)}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];const r=[],a=[],l=i.lineNumber-1,c=s.lineNumber-1;let d=null;for(let g=l;g<=c;g++){const _=this.modelLineProjections[g];if(_.isVisible()){const b=_.getViewLineNumberOfModelPosition(0,g===l?i.column:1),v=_.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),C=v-b+1;let y=0;C>1&&_.getViewLineMinColumn(this.model,g+1,v)===1&&(y=b===0?1:2),r.push(C),a.push(y),d===null&&(d=new Z(g+1,0))}else d!==null&&(o=o.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,g)),d=null)}d!==null&&(o=o.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,s.lineNumber)),d=null);const u=t-e+1,h=new Array(u);let f=0;for(let g=0,_=o.length;g<_;g++){let b=o[g];const v=Math.min(u-f,r[g]),C=a[g];let y;C===2?y=0:C===1?y=1:y=v;for(let S=0;St&&(g=!0,f=t-o+1),u.getViewLinesData(this.model,c+1,h,f,o-e,i,l),o+=f,g)break}return l}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const s=this.projectedModelLineLineCounts.getIndexOf(e-1),o=s.index,r=s.remainder,a=this.modelLineProjections[o],l=a.getViewLineMinColumn(this.model,o+1,r),c=a.getViewLineMaxColumn(this.model,o+1,r);tc&&(t=c);const d=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Z(o+1,d)).equals(i)?new Z(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),s=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new T(i.lineNumber,i.column,s.lineNumber,s.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),s=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Z(i.modelLineNumber,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new T(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const s=this.model.validatePosition(new Z(e,t)),o=s.lineNumber,r=s.column;let a=o-1,l=!1;for(;a>0&&!this.modelLineProjections[a].isVisible();)a--,l=!0;if(a===0&&!this.modelLineProjections[a].isVisible())return new Z(1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(a);let d;return l?d=this.modelLineProjections[a].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(a+1),i):d=this.modelLineProjections[o-1].getViewPositionOfModelPosition(c,r,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return T.fromPositions(i)}else{const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),s=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new T(i.lineNumber,i.column,s.lineNumber,s.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const o=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(o,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(i===0&&!this.modelLineProjections[i].isVisible())return 1;const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const s=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-s.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new T(s.lineNumber,1,o.lineNumber,o.column),t,i);let r=[];const a=s.lineNumber-1,l=o.lineNumber-1;let c=null;for(let f=a;f<=l;f++)if(this.modelLineProjections[f].isVisible())c===null&&(c=new Z(f+1,f===a?s.column:1));else if(c!==null){const _=this.model.getLineMaxColumn(f);r=r.concat(this.model.getDecorationsInRange(new T(c.lineNumber,c.column,f,_),t,i)),c=null}c!==null&&(r=r.concat(this.model.getDecorationsInRange(new T(c.lineNumber,c.column,o.lineNumber,o.column),t,i)),c=null),r.sort((f,g)=>{const _=T.compareRangesUsingStarts(f.range,g.range);return _===0?f.idg.id?1:0:_});let d=[],u=0,h=null;for(const f of r){const g=f.id;h!==g&&(h=g,d[u++]=f)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return t.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(t.modelLineNumber):0}}function z_e(n){if(n.length===0)return[];const e=n.slice();e.sort(T.compareRangesUsingStarts);const t=[];let i=e[0].startLineNumber,s=e[0].endLineNumber;for(let o=1,r=e.length;os+1?(t.push(new T(i,1,s,1)),i=a.startLineNumber,s=a.endLineNumber):a.endLineNumber>s&&(s=a.endLineNumber)}return t.push(new T(i,1,s,1)),t}class l8{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}get isWrappedLineContinuation(){return this.modelLineWrappedLineIdx>0}}class c8{constructor(e,t){this.modelRange=e,this.viewLines=t}}class $_e{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class U_e{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new j_e(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,s){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,s)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new qN(t,i)}onModelLinesInserted(e,t,i,s){return new KN(t,i)}onModelLineChanged(e,t,i){return[!1,new g$(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,s=new Array(i);for(let o=0;ot)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class q_e extends J{constructor(e,t,i,s,o,r,a,l){if(super(),this.languageConfigurationService=a,this._themeService=l,this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new ipe,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Pg(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new ni(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new ni(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new U_e(this.model);else{const c=this._configuration.options,d=c.get(44),u=c.get(125),h=c.get(132),f=c.get(124);this._lines=new H_e(this._editorId,this.model,s,o,d,this.model.getOptions().tabSize,u,h.wrappingColumn,f)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Cp(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new Cpe(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(c=>{c.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Xme(c)),this._eventDispatcher.emitOutgoingEvent(new WP(c.oldScrollWidth,c.oldScrollLeft,c.oldScrollHeight,c.oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(c=>{this._eventDispatcher.emitOutgoingEvent(c)})),this._decorations=new wpe(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(c=>{try{const d=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(d,c)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(n0.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new epe)})),this._register(this._themeService.onDidColorThemeChange(c=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Qme(c))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new T(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const s of i)this.model.tokenizeViewport(s.startLineNumber,s.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Yme(e)),this._eventDispatcher.emitOutgoingEvent(new VP(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new jme)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new qme)}_onConfigurationChanged(e,t){let i=null;if(this._viewportStartLine!==-1){const d=new Z(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));i=this.coordinatesConverter.convertViewPositionToModelPosition(d)}let s=!1;const o=this._configuration.options,r=o.get(44),a=o.get(125),l=o.get(132),c=o.get(124);if(this._lines.setWrappingSettings(r,a,l.wrappingColumn,c)&&(e.emitViewEvent(new oC),e.emitViewEvent(new rC),e.emitViewEvent(new Og(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(s=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(81)&&(this._decorations.reset(),e.emitViewEvent(new Og(null))),e.emitViewEvent(new Kme(t)),this.viewLayout.onConfigurationChanged(t),s&&i){const d=this.coordinatesConverter.convertModelPositionToViewPosition(i),u=this.viewLayout.getVerticalOffsetForLineNumber(d.lineNumber);this.viewLayout.setScrollPosition({scrollTop:u+this._viewportStartLineDelta},1)}Pg.shouldRecreate(t)&&(this.cursorConfig=new Pg(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,s=!1;const o=e.changes,r=e instanceof Qh?e.versionId:null,a=this._lines.createLineBreaksComputer();for(const d of o)switch(d.changeType){case 4:{for(let u=0;u!g.ownerId||g.ownerId===this._editorId)),a.addRequest(h,f,null)}break}case 2:{let u=null;d.injectedText&&(u=d.injectedText.filter(h=>!h.ownerId||h.ownerId===this._editorId)),a.addRequest(d.detail,u,null);break}}const l=a.finalize(),c=new ap(l);for(const d of o)switch(d.changeType){case 1:{this._lines.onModelFlushed(),t.emitViewEvent(new oC),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break}case 3:{const u=this._lines.onModelLinesDeleted(r,d.fromLineNumber,d.toLineNumber);u!==null&&(t.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),i=!0;break}case 4:{const u=c.takeCount(d.detail.length),h=this._lines.onModelLinesInserted(r,d.fromLineNumber,d.toLineNumber,u);h!==null&&(t.emitViewEvent(h),this.viewLayout.onLinesInserted(h.fromLineNumber,h.toLineNumber)),i=!0;break}case 2:{const u=c.dequeue(),[h,f,g,_]=this._lines.onModelLineChanged(r,d.lineNumber,u);s=h,f&&t.emitViewEvent(f),g&&(t.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),_&&(t.emitViewEvent(_),this.viewLayout.onLinesDeleted(_.fromLineNumber,_.toLineNumber));break}case 5:break}r!==null&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&s&&(t.emitViewEvent(new rC),t.emitViewEvent(new Og(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const t=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(t){const i=this.coordinatesConverter.convertModelPositionToViewPosition(t.getStartPosition()),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber);this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(e=>{const t=[];for(let i=0,s=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new Zme),this.cursorConfig=new Pg(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Pg(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new oC),t.emitViewEvent(new rC),t.emitViewEvent(new Og(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Pg(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Og(e))}))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new oC),i.emitViewEvent(new rC),i.emitViewEvent(new Og(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new P7)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(131),t=this._configuration.options.get(59),i=Math.max(20,Math.round(e.height/t)),s=this.viewLayout.getLinesViewportData(),o=Math.max(1,s.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),s.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new T(o,this.getLineMinColumn(o),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(i.length===0)return[t];const s=[];let o=0,r=t.startLineNumber,a=t.startColumn;const l=t.endLineNumber,c=t.endColumn;for(let d=0,u=i.length;dl||(r"u")return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:s}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStartLine=e;const s=this.coordinatesConverter.convertViewPositionToModelPosition(new Z(e,this.getLineMinColumn(e)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new T(s.lineNumber,s.column,s.lineNumber,s.column),1);const o=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=r-o}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,s){return this._lines.getViewLinesBracketGuides(e,t,i,s)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Vs(this.getLineContent(e));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Ll(this.getLineContent(e));return t===-1?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),s=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this._lines.getViewLineData(t);let l=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return r.inlineDecorations&&(l=[...l,...r.inlineDecorations.map(c=>c.toInlineDecoration(t))]),new Zo(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,s,r.tokens,l,o,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const s=this._lines.getViewLinesData(e,t,i);return new Vde(this.getTabSize(),s)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,Ey(this._configuration.options)),i=new K_e;for(const s of t){const o=s.options,r=o.overviewRuler;if(!r)continue;const a=r.position;if(a===0)continue;const l=r.getColor(e.value),c=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.startLineNumber,s.range.startColumn),d=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(l,o.zIndex,c,d,a)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const i=t.options.overviewRuler;i&&i.invalidateCachedColor();const s=t.options.minimap;s&&s.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const s=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(t<0?t-=i:t+=i);const r=this.model.getOffsetAt(s)+t;return this.model.getPositionAt(r)}getPlainTextToCopy(e,t,i){const s=i?`\r +`:this.model.getEOL();e=e.slice(0),e.sort(T.compareRangesUsingStarts);let o=!1,r=!1;for(const l of e)l.isEmpty()?o=!0:r=!0;if(!r){if(!t)return"";const l=e.map(d=>d.startLineNumber);let c="";for(let d=0;d0&&l[d-1]===l[d]||(c+=this.model.getLineContent(l[d])+s);return c}if(o&&t){const l=[];let c=0;for(const d of e){const u=d.startLineNumber;d.isEmpty()?u!==c&&l.push(this.model.getLineContent(u)):l.push(this.model.getValueInRange(d,i?2:0)),c=u}return l.length===1?l[0]:l}const a=[];for(const l of e)l.isEmpty()||a.push(this.model.getValueInRange(l,i?2:0));return a.length===1?a[0]:a}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===Kl||e.length!==1)return null;let s=e[0];if(s.isEmpty()){if(!t)return null;const d=s.startLineNumber;s=new T(d,this.model.getLineMinColumn(d),d,this.model.getLineMaxColumn(d))}const o=this._configuration.options.get(44),r=this._getColorMap(),l=/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===Es.fontFamily;let c;return l?c=Es.fontFamily:(c=o.fontFamily,c=c.replace(/"/g,"'"),/[,']/.test(c)||/[+ ]/.test(c)&&(c=`'${c}'`),c=`${c}, ${Es.fontFamily}`),{mode:i,html:`
    `+this._getHTMLToCopy(s,r)+"
    "}}_getHTMLToCopy(e,t){const i=e.startLineNumber,s=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=this.getTabSize();let l="";for(let c=i;c<=o;c++){const d=this.model.getLineTokens(c),u=d.getLineContent(),h=c===i?s-1:0,f=c===o?r-1:u.length;u===""?l+="
    ":l+=mpe(u,d.inflate(),t,h,f,a,qn)}return l}_getColorMap(){const e=Ri.getColorMap(),t=["#000000"];if(e)for(let i=1,s=e.length;ithis._cursor.setStates(s,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(s=>this._cursor.setSelections(s,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new spe);return}this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(s=>this._cursor.executeEdits(s,e,t,i))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,s,o){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,s,o))}paste(e,t,i,s){this._executeCursorEdit(o=>this._cursor.paste(o,e,t,i,s))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector(s=>this._cursor.revealPrimary(s,e,i,0,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new T(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(s=>s.emitViewEvent(new Ww(e,!1,i,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new T(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(s=>s.emitViewEvent(new Ww(e,!1,i,null,0,!0,0)))}revealRange(e,t,i,s,o){this._withViewEventsCollector(r=>r.emitViewEvent(new Ww(e,!1,i,null,s,t,o)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new tpe),this._eventDispatcher.emitOutgoingEvent(new P7))}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class K_e{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,s,o){const r=this._asMap[e];if(r){const a=r.data,l=a[a.length-3],c=a[a.length-1];if(l===o&&c+1>=i){s>c&&(a[a.length-1]=s);return}a.push(o,i,s)}else{const a=new ZH(e,t,[o,i,s]);this._asMap[e]=a,this.asArray.push(a)}}}class yk{constructor(...e){this._entries=new Map;for(let[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}var Gv;(function(n){n[n.Ignore=0]="Ignore",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error"})(Gv||(Gv={}));(function(n){const e="error",t="warning",i="warn",s="info",o="ignore";function r(l){return l?lm(e,l)?n.Error:lm(t,l)||lm(i,l)?n.Warning:lm(s,l)?n.Info:n.Ignore:n.Ignore}n.fromValue=r;function a(l){switch(l){case n.Error:return e;case n.Warning:return t;case n.Info:return s;default:return o}}n.toString=a})(Gv||(Gv={}));const Mi=Gv;var B$=Mi;const rn=At("notificationService");class G_e{}class Gb{constructor(e,t,i,s,o){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=o}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let s=this.breakOffsets[e]-t;return e>0&&(s+=this.wrappedTextIndentLength),s}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let s=e===0?t:this.breakOffsets[e-1]+t;if(this.injectionOffsets!==null)for(let o=0;othis.injectionOffsets[o];o++)s0?this.breakOffsets[o-1]:0,t===0)if(e<=r)s=o-1;else if(e>l)i=o+1;else break;else if(e=l)i=o+1;else break}let a=e-r;return o>0&&(a+=this.wrappedTextIndentLength),new gC(o,a)}normalizeOutputPosition(e,t,i){if(this.injectionOffsets!==null){const s=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,i);if(o!==s)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(i===0){if(e>0&&t===this.getMinOutputOffset(e))return new gC(e-1,this.getMaxOutputOffset(e-1))}else if(i===1){const s=this.getOutputLineCount()-1;if(e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(t===2){if(e===i.offsetInInputWithInjections+i.length&&d8(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let s=i.offsetInInputWithInjections;if(u8(this.injectionOptions[i.injectedTextIndex].cursorStops))return s;let o=i.injectedTextIndex-1;for(;o>=0&&this.injectionOffsets[o]===this.injectionOffsets[i.injectedTextIndex]&&!(d8(this.injectionOptions[o].cursorStops)||(s-=this.injectionOptions[o].content.length,u8(this.injectionOptions[o].cursorStops)));)o--;return s}}else if(t===1){let s=i.offsetInInputWithInjections+i.length,o=i.injectedTextIndex;for(;o+1=0&&this.injectionOffsets[o-1]===this.injectionOffsets[o];)s-=this.injectionOptions[o-1].content.length,o--;return s}IR()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.getInjectedTextAtOffset(i);return s?{options:this.injectionOptions[s.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(t!==null){let s=0;for(let o=0;oe)break;if(e<=l)return{injectedTextIndex:o,offsetInInputWithInjections:a,length:r};s+=r}}}}function d8(n){return n==null?!0:n===bl.Right||n===bl.Both}function u8(n){return n==null?!0:n===bl.Left||n===bl.Both}class gC{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Z(e+this.outputLineIndex,this.outputOffset+1)}}class QP{constructor(e,t){this.classifier=new Y_e(e,t)}static create(e){return new QP(e.get(120),e.get(119))}createLineBreaksComputer(e,t,i,s){const o=[],r=[],a=[];return{addRequest:(l,c,d)=>{o.push(l),r.push(c),a.push(d)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let d=0,u=o.length;d=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let eT=[],tT=[];function Z_e(n,e,t,i,s,o,r){if(s===-1)return null;const a=t.length;if(a<=1)return null;const l=e.breakOffsets,c=e.breakOffsetsVisibleColumn,d=V$(t,i,s,o,r),u=s-d,h=eT,f=tT;let g=0,_=0,b=0,v=s;const C=l.length;let y=0;if(y>=0){let S=Math.abs(c[y]-v);for(;y+1=S)break;S=x,y++}}for(;yS&&(S=_,x=b);let A=0,E=0,D=0,P=0;if(x<=v){let z=x,ee=S===0?0:t.charCodeAt(S-1),Q=S===0?0:n.get(ee),Ee=!0;for(let ye=S;ye_&&iT(ee,Q,Se,De)&&(A=ke,E=z),z+=tt,z>v){ke>_?(D=ke,P=z-tt):(D=ye+1,P=z),z-E>u&&(A=0),Ee=!1;break}ee=Se,Q=De}if(Ee){g>0&&(h[g]=l[l.length-1],f[g]=c[l.length-1],g++);break}}if(A===0){let z=x,ee=t.charCodeAt(S),Q=n.get(ee),Ee=!1;for(let ye=S-1;ye>=_;ye--){const ke=ye+1,Se=t.charCodeAt(ye);if(Se===9){Ee=!0;break}let De,tt;if(cf(Se)?(ye--,De=0,tt=2):(De=n.get(Se),tt=lu(Se)?o:1),z<=v){if(D===0&&(D=ke,P=z),z<=v-u)break;if(iT(Se,De,ee,Q)){A=ke,E=z;break}}z-=tt,ee=Se,Q=De}if(A!==0){const ye=u-(P-E);if(ye<=i){const ke=t.charCodeAt(D);let Se;wn(ke)?Se=2:Se=Yb(ke,P,i,o),ye-Se<0&&(A=0)}}if(Ee){y--;continue}}if(A===0&&(A=D,E=P),A<=_){const z=t.charCodeAt(_);wn(z)?(A=_+2,E=b+2):(A=_+1,E=b+Yb(z,b,i,o))}for(_=A,h[g]=A,b=E,f[g]=E,g++,v=E+u;y<0||y=$)break;$=z,y++}}return g===0?null:(h.length=g,f.length=g,eT=e.breakOffsets,tT=e.breakOffsetsVisibleColumn,e.breakOffsets=h,e.breakOffsetsVisibleColumn=f,e.wrappedTextIndentLength=d,e)}function X_e(n,e,t,i,s,o,r){const a=Ra.applyInjectedText(e,t);let l,c;if(t&&t.length>0?(l=t.map(E=>E.options),c=t.map(E=>E.column-1)):(l=null,c=null),s===-1)return l?new Gb(c,l,[a.length],[],0):null;const d=a.length;if(d<=1)return l?new Gb(c,l,[a.length],[],0):null;const u=V$(a,i,s,o,r),h=s-u,f=[],g=[];let _=0,b=0,v=0,C=s,y=a.charCodeAt(0),S=n.get(y),x=Yb(y,0,i,o),A=1;wn(y)&&(x+=1,y=a.charCodeAt(1),S=n.get(y),A++);for(let E=A;EC&&((b===0||x-v>h)&&(b=D,v=x-z),f[_]=b,g[_]=v,_++,C=v+h,b=0),y=P,S=$}return _===0&&(!t||t.length===0)?null:(f[_]=d,g[_]=x,new Gb(c,l,f,g,u))}function Yb(n,e,t,i){return n===9?t-e%t:lu(n)||n<32?i:1}function h8(n,e){return e-n%e}function iT(n,e,t,i){return t!==32&&(e===2||e===3&&i!==2||i===1||i===3&&e!==1)}function V$(n,e,t,i,s){let o=0;if(s!==0){const r=Vs(n);if(r!==-1){for(let l=0;lt&&(o=0)}}return o}var cD;const dD=(cD=window.trustedTypes)===null||cD===void 0?void 0:cD.createPolicy("domLineBreaksComputer",{createHTML:n=>n});class JP{static create(){return new JP}constructor(){}createLineBreaksComputer(e,t,i,s){const o=[],r=[];return{addRequest:(a,l,c)=>{o.push(a),r.push(l)},finalize:()=>Q_e(o,e,t,i,s,r)}}}function Q_e(n,e,t,i,s,o){var r;function a(D){const P=o[D];if(P){const $=Ra.applyInjectedText(n[D],P),z=P.map(Q=>Q.options),ee=P.map(Q=>Q.column-1);return new Gb(ee,z,[$.length],[],0)}else return null}if(i===-1){const D=[];for(let P=0,$=n.length;P<$;P++)D[P]=a(P);return D}const l=Math.round(i*e.typicalHalfwidthCharacterWidth),d=Math.round(t*(s===3?2:s===2?1:0)),u=Math.ceil(e.spaceWidth*d),h=document.createElement("div");_s(h,e);const f=df(1e4),g=[],_=[],b=[],v=[],C=[];for(let D=0;Dl?($=0,z=0):ee=l-ye}const Q=P.substr($),Ee=J_e(Q,z,t,ee,f,u);g[D]=$,_[D]=z,b[D]=Q,v[D]=Ee[0],C[D]=Ee[1]}const y=f.build(),S=(r=dD==null?void 0:dD.createHTML(y))!==null&&r!==void 0?r:y;h.innerHTML=S,h.style.position="absolute",h.style.top="10000",h.style.wordWrap="break-word",document.body.appendChild(h);const x=document.createRange(),A=Array.prototype.slice.call(h.children,0),E=[];for(let D=0;DDe.options),ke=Se.map(De=>De.column-1)):(ye=null,ke=null),E[D]=new Gb(ke,ye,$,Ee,ee)}return document.body.removeChild(h),E}function J_e(n,e,t,i,s,o){if(o!==0){const h=String(o);s.appendASCIIString('
    ');const r=n.length;let a=e,l=0;const c=[],d=[];let u=0");for(let h=0;h"),c[h]=l,d[h]=a;const f=u;u=h+1"),c[n.length]=l,d[n.length]=a,s.appendASCIIString("
    "),[c,d]}function ebe(n,e,t,i){if(t.length<=1)return null;const s=Array.prototype.slice.call(e.children,0),o=[];try{nT(n,s,i,0,null,t.length-1,null,o)}catch(r){return console.log(r),null}return o.length===0?null:(o.push(t.length),o)}function nT(n,e,t,i,s,o,r,a){if(i===o||(s=s||uD(n,e,t[i],t[i+1]),r=r||uD(n,e,t[o],t[o+1]),Math.abs(s[0].top-r[0].top)<=.1))return;if(i+1===o){a.push(o);return}const l=i+(o-i)/2|0,c=uD(n,e,t[l],t[l+1]);nT(n,e,t,i,s,l,c,a),nT(n,e,t,l,c,o,r,a)}function uD(n,e,t,i){return n.setStart(e[t/16384|0].firstChild,t%16384),n.setEnd(e[i/16384|0].firstChild,i%16384),n.getClientRects()}var tbe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},ec=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let ibe=0,nbe=class{constructor(e,t,i,s,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=s,this.listenersToRemove=o}dispose(){Pt(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}},Yv=class $w extends J{constructor(e,t,i,s,o,r,a,l,c,d,u,h){super(),this.languageConfigurationService=u,this._onDidDispose=this._register(new j),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new j),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new j),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new j),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new j),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new j),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new j),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new j),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new j),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new j),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new j),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new j),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new f8),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new f8),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new j),this.onWillType=this._onWillType.event,this._onDidType=this._register(new j),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new j),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new j),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new j),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new j),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new j),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new j),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new j),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new j),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new j),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new j),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new j),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new j),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new j),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new j),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new j),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new j),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new j),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new j),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null;const f=Object.assign({},t);this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++ibe,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,f,d)),this._register(this._configuration.onDidChange(_=>{this._onDidChangeConfiguration.fire(_);const b=this._configuration.options;if(_.hasChanged(131)){const v=b.get(131);this._onDidLayoutChange.fire(v)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=o,this._commandService=r,this._themeService=l,this._register(new sbe(this,this._contextKeyService)),this._register(new obe(this,this._contextKeyService,h)),this._instantiationService=s.createChild(new yk([lt,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new rbe(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let g;Array.isArray(i.contributions)?g=i.contributions:g=Uh.getEditorContributions();for(const _ of g){if(this._contributions[_.id]){dt(new Error(`Cannot have two contributions with the same id ${_.id}`));continue}try{const b=this._instantiationService.createInstance(_.ctor,this);this._contributions[_.id]=b}catch(b){dt(b)}}Uh.getEditorActions().forEach(_=>{if(this._actions[_.id]){dt(new Error(`Cannot have two actions with the same id ${_.id}`));return}const b=new m$(_.id,_.label,_.alias,_o(_.precondition),()=>this._instantiationService.invokeFunction(v=>Promise.resolve(_.runEditorCommand(v,this,null))),this._contextKeyService);this._actions[b.id]=b}),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(e,t,i){return new MN(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return G1.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;tT.lift(t)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Cn.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Z.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,s){if(!this._modelData)return;if(!T.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,r,t,s)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new T(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,s){if(!Z.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new T(e.lineNumber,e.column,e.lineNumber,e.column),t,i,s)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=Fe.isISelection(e),s=T.isIRange(e);if(!i&&!s)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(s){const o={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(o,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new Fe(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,s){if(typeof e!="number"||typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new T(e,1,t,1),i,!1,s)}revealRange(e,t=0,i=!1,s=!0){this._revealRange(e,i?1:0,s,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,s){if(!T.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(T.lift(e),t,i,s)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let s=0,o=e.length;s0&&this._modelData.viewModel.restoreCursorState(i):this._modelData.viewModel.restoreCursorState([i]);const s=t.contributionsState||{},o=Object.keys(this._contributions);for(let a=0,l=o.length;at.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{const o=i;this._type(e,o.text||"");return}case"replacePreviousChar":{const o=i;this._compositionType(e,o.text||"",o.replaceCharCnt||0,0,0);return}case"compositionType":{const o=i;this._compositionType(e,o.text||"",o.replacePrevCharCnt||0,o.replaceNextCharCnt||0,o.positionDelta||0);return}case"paste":{const o=i;this._paste(e,o.text||"",o.pasteOnNewLine||!1,o.multicursorText||null,o.mode||null);return}case"cut":this._cut(e);return}const s=this.getAction(t);if(s){Promise.resolve(s.run()).then(void 0,dt);return}this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){!this._modelData||t.length===0||(e==="keyboard"&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),e==="keyboard"&&this._onDidType.fire(t))}_compositionType(e,t,i,s,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,s,o,e)}_paste(e,t,i,s,o){if(!this._modelData||t.length===0)return;const r=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,i,s,e);const a=this._modelData.viewModel.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new T(r.lineNumber,r.column,a.lineNumber,a.column),languageId:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const s=Uh.getEditorCommand(t);return s?(i=i||{},i.source=e,this._instantiationService.invokeFunction(o=>{Promise.resolve(s.runEditorCommand(o,this,i)).then(void 0,dt)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(81)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(81)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData||this._configuration.options.get(81))return!1;let s;return i?Array.isArray(i)?s=()=>i:s=i:s=()=>null,this._modelData.viewModel.executeEdits(e,t,s),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Ey(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,Ey(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?e.length===0&&t.length===0?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(131)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarMouseDown(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(i)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(i)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,t)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,s=i.get(131),o=$w._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+s.glyphMarginWidth+s.lineNumbersWidth+s.decorationsWidth-this.getScrollLeft();return{top:o,left:r,height:i.get(59)}}getOffsetForColumn(e,t){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,t)}render(e=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,e)}setAriaOptions(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)}applyFontInfo(e){_s(e,this._configuration.options.get(44))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount()),e.onBeforeAttached();const i=new q_e(this._id,this._configuration,e,JP.create(),QP.create(this._configuration.options),r=>Ma(r),this.languageConfigurationService,this._themeService);t.push(e.onDidChangeDecorations(r=>this._onDidChangeModelDecorations.fire(r))),t.push(e.onDidChangeLanguage(r=>{this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(r)})),t.push(e.onDidChangeLanguageConfiguration(r=>this._onDidChangeModelLanguageConfiguration.fire(r))),t.push(e.onDidChangeContent(r=>this._onDidChangeModelContent.fire(r))),t.push(e.onDidChangeOptions(r=>this._onDidChangeModelOptions.fire(r))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(r=>{switch(r.kind){case 0:this._onDidContentSizeChange.fire(r);break;case 1:this._editorTextFocus.setValue(r.hasFocus);break;case 2:this._onDidScrollChange.fire(r);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{r.reachedMaxCursorCount&&this._notificationService.warn(m("cursors.maximum","The number of cursors has been limited to {0}.",Cp.MAX_CURSOR_COUNT));const a=[];for(let d=0,u=r.selections.length;d{this._paste("keyboard",o,r,a,l)},type:o=>{this._type("keyboard",o)},compositionType:(o,r,a,l)=>{this._compositionType("keyboard",o,r,a,l)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:t={paste:(o,r,a,l)=>{const c={text:o,pasteOnNewLine:r,multicursorText:a,mode:l};this._commandService.executeCommand("paste",c)},type:o=>{const r={text:o};this._commandService.executeCommand("type",r)},compositionType:(o,r,a,l)=>{if(a||l){const c={text:o,replacePrevCharCnt:r,replaceNextCharCnt:a,positionDelta:l};this._commandService.executeCommand("compositionType",c)}else{const c={text:o,replaceCharCnt:r};this._commandService.executeCommand("replacePreviousChar",c)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new _k(e.coordinatesConverter);return i.onKeyDown=o=>this._onKeyDown.fire(o),i.onKeyUp=o=>this._onKeyUp.fire(o),i.onContextMenu=o=>this._onContextMenu.fire(o),i.onMouseMove=o=>this._onMouseMove.fire(o),i.onMouseLeave=o=>this._onMouseLeave.fire(o),i.onMouseDown=o=>this._onMouseDown.fire(o),i.onMouseUp=o=>this._onMouseUp.fire(o),i.onMouseDrag=o=>this._onMouseDrag.fire(o),i.onMouseDrop=o=>this._onMouseDrop.fire(o),i.onMouseDropCanceled=o=>this._onMouseDropCanceled.fire(o),i.onMouseWheel=o=>this._onMouseWheel.fire(o),[new Vme(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}};Yv=tbe([ec(3,Et),ec(4,Zt),ec(5,sn),ec(6,lt),ec(7,ki),ec(8,rn),ec(9,Eo),ec(10,ws),ec(11,He)],Yv);class f8 extends J{constructor(){super(),this._onDidChangeToTrue=this._register(new j),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new j),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class sbe extends J{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=O.editorSimpleInput.bindTo(t),this._editorFocus=O.focus.bindTo(t),this._textInputFocus=O.textInputFocus.bindTo(t),this._editorTextFocus=O.editorTextFocus.bindTo(t),this._editorTabMovesFocus=O.tabMovesFocus.bindTo(t),this._editorReadonly=O.readOnly.bindTo(t),this._inDiffEditor=O.inDiffEditor.bindTo(t),this._editorColumnSelection=O.columnSelection.bindTo(t),this._hasMultipleSelections=O.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=O.hasNonEmptySelection.bindTo(t),this._canUndo=O.canUndo.bindTo(t),this._canRedo=O.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(130)),this._editorReadonly.set(e.get(81)),this._inDiffEditor.set(e.get(54)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(t=>!t.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(!!(e&&e.canUndo())),this._canRedo.set(!!(e&&e.canRedo()))}}class obe extends J{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=O.languageId.bindTo(t),this._hasCompletionItemProvider=O.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=O.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=O.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=O.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=O.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=O.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=O.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=O.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=O.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=O.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=O.hasReferenceProvider.bindTo(t),this._hasRenameProvider=O.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=O.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=O.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=O.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=O.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=O.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=O.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=O.isInWalkThroughSnippet.bindTo(t);const s=()=>this._update();this._register(e.onDidChangeModel(s)),this._register(e.onDidChangeModelLanguage(s)),this._register(i.completionProvider.onDidChange(s)),this._register(i.codeActionProvider.onDidChange(s)),this._register(i.codeLensProvider.onDidChange(s)),this._register(i.definitionProvider.onDidChange(s)),this._register(i.declarationProvider.onDidChange(s)),this._register(i.implementationProvider.onDidChange(s)),this._register(i.typeDefinitionProvider.onDidChange(s)),this._register(i.hoverProvider.onDidChange(s)),this._register(i.documentHighlightProvider.onDidChange(s)),this._register(i.documentSymbolProvider.onDidChange(s)),this._register(i.referenceProvider.onDidChange(s)),this._register(i.renameProvider.onDidChange(s)),this._register(i.documentFormattingEditProvider.onDidChange(s)),this._register(i.documentRangeFormattingEditProvider.onDidChange(s)),this._register(i.signatureHelpProvider.onDidChange(s)),this._register(i.inlayHintsProvider.onDidChange(s)),s()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();if(!e){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===mt.walkThroughSnippet)})}}class rbe extends J{constructor(e){super(),this._onChange=this._register(new j),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(fp(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const abe=encodeURIComponent("");function hD(n){return abe+encodeURIComponent(n.toString())+lbe}const cbe=encodeURIComponent('');function ube(n){return cbe+encodeURIComponent(n.toString())+dbe}bi((n,e)=>{const t=n.getColor(Fz);t&&e.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${t}; }`);const i=n.getColor(Zd);i&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${hD(i)}") repeat-x bottom left; }`);const s=n.getColor(nhe);s&&e.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${s}; }`);const o=n.getColor(dk);o&&e.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${o}; }`);const r=n.getColor(Yr);r&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${hD(r)}") repeat-x bottom left; }`);const a=n.getColor(she);a&&e.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=n.getColor(SP);l&&e.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=n.getColor(Ko);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${hD(c)}") repeat-x bottom left; }`);const d=n.getColor(ohe);d&&e.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const u=n.getColor(ahe);u&&e.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${u}; }`);const h=n.getColor(rhe);h&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${ube(h)}") no-repeat bottom left; }`);const f=n.getColor(lge);f&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${f.rgba.a}; }`);const g=n.getColor(age);g&&e.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${g}; }`);const _=n.getColor(Xd)||"inherit";e.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${_}}`)});class ti{constructor(e,t,i){const s=o=>this.emitter.fire(o);this.emitter=new j({onFirstListenerAdd:()=>e.addEventListener(t,s,i),onLastListenerRemove:()=>e.removeEventListener(t,s,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function g8(n){return n.preventDefault(),n.stopPropagation(),n}var f_=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o};let hbe=!1;var pS;(function(n){n.North="north",n.South="south",n.East="east",n.West="west"})(pS||(pS={}));let fbe=4;const gbe=new j;let mbe=300;const pbe=new j;class eO{constructor(){this.disposables=new ue}get onPointerMove(){return this.disposables.add(new ti(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new ti(window,"mouseup")).event}dispose(){this.disposables.dispose()}}f_([vn],eO.prototype,"onPointerMove",null);f_([vn],eO.prototype,"onPointerUp",null);class tO{constructor(e){this.el=e,this.disposables=new ue}get onPointerMove(){return this.disposables.add(new ti(this.el,pi.Change)).event}get onPointerUp(){return this.disposables.add(new ti(this.el,pi.End)).event}dispose(){this.disposables.dispose()}}f_([vn],tO.prototype,"onPointerMove",null);f_([vn],tO.prototype,"onPointerUp",null);class _S{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}f_([vn],_S.prototype,"onPointerMove",null);f_([vn],_S.prototype,"onPointerUp",null);const m8="pointer-events-disabled";class hs extends J{constructor(e,t,i){super(),this.hoverDelay=mbe,this.hoverDelayer=this._register(new Ml(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new j),this._onDidStart=this._register(new j),this._onDidChange=this._register(new j),this._onDidReset=this._register(new j),this._onDidEnd=this._register(new j),this.orthogonalStartSashDisposables=this._register(new ue),this.orthogonalStartDragHandleDisposables=this._register(new ue),this.orthogonalEndSashDisposables=this._register(new ue),this.orthogonalEndDragHandleDisposables=this._register(new ue),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=re(e,le(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),wt&&this.el.classList.add("mac");const s=this._register(new ti(this.el,"mousedown")).event;this._register(s(u=>this.onPointerStart(u,new eO),this));const o=this._register(new ti(this.el,"dblclick")).event;this._register(o(this.onPointerDoublePress,this));const r=this._register(new ti(this.el,"mouseenter")).event;this._register(r(()=>hs.onMouseEnter(this)));const a=this._register(new ti(this.el,"mouseleave")).event;this._register(a(()=>hs.onMouseLeave(this))),this._register(Jt.addTarget(this.el));const l=je.map(this._register(new ti(this.el,pi.Start)).event,u=>{var h;return Object.assign(Object.assign({},u),{target:(h=u.initialTarget)!==null&&h!==void 0?h:null})});this._register(l(u=>this.onPointerStart(u,new tO(this.el)),this));const c=this._register(new ti(this.el,pi.Tap)).event,d=je.map(je.filter(je.debounce(c,(u,h)=>{var f;return{event:h,count:((f=u==null?void 0:u.count)!==null&&f!==void 0?f:0)+1}},250),({count:u})=>u===2),({event:u})=>{var h;return Object.assign(Object.assign({},u),{target:(h=u.initialTarget)!==null&&h!==void 0?h:null})});this._register(d(this.onPointerDoublePress,this)),typeof i.size=="number"?(this.size=i.size,i.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=fbe,this._register(gbe.event(u=>{this.size=u,this.layout()}))),this._register(pbe.event(u=>this.hoverDelay=u)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",hbe),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=i=>{this.orthogonalStartDragHandleDisposables.clear(),i!==0&&(this._orthogonalStartDragHandle=re(this.el,le(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(vt(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new ti(this._orthogonalStartDragHandle,"mouseenter")).event(()=>hs.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new ti(this._orthogonalStartDragHandle,"mouseleave")).event(()=>hs.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=i=>{this.orthogonalEndDragHandleDisposables.clear(),i!==0&&(this._orthogonalEndDragHandle=re(this.el,le(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(vt(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new ti(this._orthogonalEndDragHandle,"mouseenter")).event(()=>hs.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new ti(this._orthogonalEndDragHandle,"mouseleave")).event(()=>hs.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){Yt.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const g=this.getOrthogonalSash(e);g&&(i=!0,e.__orthogonalSashEvent=!0,g.onPointerStart(e,new _S(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _S(t))),!this.state)return;const s=Cue("iframe");for(const g of s)g.classList.add(m8);const o=e.pageX,r=e.pageY,a=e.altKey,l={startX:o,currentX:o,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=Cr(this.el),d=()=>{let g="";i?g="all-scroll":this.orientation===1?this.state===1?g="s-resize":this.state===2?g="n-resize":g=wt?"row-resize":"ns-resize":this.state===1?g="e-resize":this.state===2?g="w-resize":g=wt?"col-resize":"ew-resize",c.textContent=`* { cursor: ${g} !important; }`},u=new ue;d(),i||this.onDidEnablementChange.event(d,null,u);const h=g=>{Yt.stop(g,!1);const _={startX:o,currentX:g.pageX,startY:r,currentY:g.pageY,altKey:a};this._onDidChange.fire(_)},f=g=>{Yt.stop(g,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),u.dispose();for(const _ of s)_.classList.remove(m8)};t.onPointerMove(h,null,u),t.onPointerUp(f,null,u),u.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&hs.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&hs.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){hs.onMouseLeave(this)}layout(){if(this.orientation===0){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){if(!(!e.target||!(e.target instanceof HTMLElement))&&e.target.classList.contains("orthogonal-drag-handle"))return e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}class bu{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;if(e.getScrollTop()!==0){const s=e.getVisibleRanges();if(s.length>0){t=s[0].getStartPosition();const o=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-o}}return new bu(t,i,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}const W$={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:ba.text,TERMINALS:"Terminals"};class _be{constructor(e){this.data=e}update(){}getData(){return this.data}}const uc={CurrentDragAndDropData:void 0};class al extends J{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof Co&&this._register(t.onDidChange(s=>{this.element&&this.handleActionChangeEvent(s)}))}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new gp)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(Jt.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,Yo&&this._register(de(e,Xe.DRAG_START,s=>{var o;return(o=s.dataTransfer)===null||o===void 0?void 0:o.setData(W$.TEXT,this._action.label)}))),this._register(de(t,pi.Tap,s=>this.onClick(s,!0))),this._register(de(t,Xe.MOUSE_DOWN,s=>{i||Yt.stop(s,!0),this._action.enabled&&s.button===0&&t.classList.add("active")})),wt&&this._register(de(t,Xe.CONTEXT_MENU,s=>{s.button===0&&s.ctrlKey===!0&&this.onClick(s)})),this._register(de(t,Xe.CLICK,s=>{Yt.stop(s,!0),this.options&&this.options.isMenu||this.onClick(s)})),this._register(de(t,Xe.DBLCLICK,s=>{Yt.stop(s,!0)})),[Xe.MOUSE_UP,Xe.MOUSE_OUT].forEach(s=>{this._register(de(t,s,o=>{Yt.stop(o),t.classList.remove("active")}))})}onClick(e,t=!1){var i;Yt.stop(e,!0);const s=Oo(this._context)?!((i=this.options)===null||i===void 0)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,s)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class Zv extends al{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=i.icon!==void 0?i.icon:!1,this.options.label=i.label!==void 0?i.label:!0,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=re(this.element,le("a.action-label"))),this.label&&(this._action.id===gr.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(re(this.element,le("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=m({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}var bbe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class Fl extends J{constructor(e,t={}){var i,s,o,r,a,l;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new j),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new j({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new j),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new j),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=(i=t.context)!==null&&i!==void 0?i:null,this._orientation=(s=this.options.orientation)!==null&&s!==void 0?s:0,this._triggerKeys={keyDown:(r=(o=this.options.triggerKeys)===null||o===void 0?void 0:o.keyDown)!==null&&r!==void 0?r:!1,keys:(l=(a=this.options.triggerKeys)===null||a===void 0?void 0:a.keys)!==null&&l!==void 0?l:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new gp,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(u=>this._onDidRun.fire(u))),this._register(this._actionRunner.onBeforeRun(u=>this._onBeforeRun.fire(u))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let c,d;switch(this._orientation){case 0:c=[15],d=[17];break;case 1:c=[16],d=[18],this.domNode.className+=" vertical";break}this._register(de(this.domNode,Xe.KEY_DOWN,u=>{const h=new Si(u);let f=!0;const g=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;c&&(h.equals(c[0])||h.equals(c[1]))?f=this.focusPrevious():d&&(h.equals(d[0])||h.equals(d[1]))?f=this.focusNext():h.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():h.equals(14)?f=this.focusFirst():h.equals(13)?f=this.focusLast():h.equals(2)&&g instanceof al&&g.trapsArrowNavigation?f=this.focusNext():this.isTriggerKeyEvent(h)?this._triggerKeys.keyDown?this.doTrigger(h):this.triggerKeyDown=!0:f=!1,f&&(h.preventDefault(),h.stopPropagation())})),this._register(de(this.domNode,Xe.KEY_UP,u=>{const h=new Si(u);this.isTriggerKeyEvent(h)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(h)),h.preventDefault(),h.stopPropagation()):(h.equals(2)||h.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(fp(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(Pm()===this.domNode||!Pc(Pm(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role","toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const t=this.viewItems.find(i=>i instanceof al&&i.isEnabled());t instanceof al&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof al&&t.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let s=lf(t.index)?t.index:null;i.forEach(o=>{const r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(de(r,Xe.CONTEXT_MENU,l=>{Yt.stop(l,!0)}));let a;this.options.actionViewItemProvider&&(a=this.options.actionViewItemProvider(o)),a||(a=new Zv(this.context,o,t)),a.actionRunner=this._actionRunner,a.setActionContext(this.context),a.render(r),this.focusable&&a instanceof al&&this.viewItems.length===0&&a.setFocusable(!0),s===null||s<0||s>=this.actionsList.children.length?(this.actionsList.appendChild(r),this.viewItems.push(a),this._actionIds.push(o.id)):(this.actionsList.insertBefore(r,this.actionsList.children[s]),this.viewItems.splice(s,0,a),this._actionIds.splice(s,0,o.id),s++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){Pt(this.viewItems),this.viewItems=[],this._actionIds=[],Sn(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t=!1,i;if(e===void 0?t=!0:typeof e=="number"?i=e:typeof e=="boolean"&&(t=e),t&&typeof this.focusedItem>"u"){const s=this.viewItems.findIndex(o=>o.isEnabled());this.focusedItem=s===-1?void 0:s,this.updateFocus(void 0,void 0,!0)}else i!==void 0&&(this.focusedItem=i),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!i.isEnabled());return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!i.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var s;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((s=this.viewItems[this.previouslyFocusedItem])===null||s===void 0||s.blur());const o=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(o){let r=!0;xy(o.focus)||(r=!1),this.options.focusOnlyEnabledItems&&xy(o.isEnabled)&&!o.isEnabled()&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(typeof this.focusedItem>"u")return;const t=this.viewItems[this.focusedItem];if(t instanceof al){const i=t._context===null||t._context===void 0?e:t._context;this.run(t._action,i)}}run(e,t){return bbe(this,void 0,void 0,function*(){yield this._actionRunner.run(e,t)})}dispose(){Pt(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}const vbe={IconContribution:"base.contributions.icons"};var p8;(function(n){function e(t,i){let s=t.defaults;for(;ai.isThemeIcon(s);){const o=rg.getIcon(s.id);if(!o)return;s=o.defaults}return s}n.getDefinition=e})(p8||(p8={}));class Cbe{constructor(){this._onDidChange=new j,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:m("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:m("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Os.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,s){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const l=this.iconReferenceSchema.enum.indexOf(e);l!==-1&&(this.iconReferenceSchema.enumDescriptions[l]=i),this._onDidChange.fire()}return o}let r={id:e,description:i,defaults:t,deprecationMessage:s};this.iconsById[e]=r;let a={$ref:"#/definitions/icons"};return s&&(a.deprecationMessage=s),i&&(a.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=a,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(o,r)=>o.id.localeCompare(r.id),t=o=>{for(;ai.isThemeIcon(o.defaults);)o=this.iconsById[o.defaults.id];return`codicon codicon-${o?o.id:""}`};let i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const s=Object.keys(this.iconsById).map(o=>this.iconsById[o]);for(const o of s.filter(r=>!!r.description).sort(e))i.push(`||${o.id}|${ai.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of s.filter(r=>!ai.isThemeIcon(r.defaults)).sort(e))i.push(`||${o.id}|`);return i.join(` +`)}}const rg=new Cbe;on.add(vbe.IconContribution,rg);function kn(n,e,t,i){return rg.registerIcon(n,e,t,i)}function H$(){return rg}function wbe(){for(const n of p.getAll())rg.registerIcon(n.id,n.definition,n.description)}wbe();const z$="vscode://schemas/icons";let $$=on.as(rk.JSONContribution);$$.registerSchema(z$,rg.getIconSchema());const _8=new ni(()=>$$.notifySchemaChanged(z$),200);rg.onDidChange(()=>{_8.isScheduled()||_8.schedule()});const U$=kn("widget-close",p.close,m("widgetClose","Icon for the close action in widgets."));kn("goto-previous-location",p.arrowUp,m("previousChangeIcon","Icon for goto previous editor location."));kn("goto-next-location",p.arrowDown,m("nextChangeIcon","Icon for goto next editor location."));ai.modify(p.sync,"spin");ai.modify(p.loading,"spin");var ybe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Sbe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},Lbe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})},fD;const mC=3;class G_{constructor(e,t,i,s){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=s}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class gD{constructor(e){this.entries=e}}const kbe=kn("diff-review-insert",p.add,m("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),xbe=kn("diff-review-remove",p.remove,m("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),Ebe=kn("diff-review-close",p.close,m("diffReviewCloseIcon","Icon for 'Close' in diff review."));let bS=class uh extends J{constructor(e,t){super(),this._languageService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Bt(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Bt(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new Fl(this.actionBarContainer.domNode)),this._actionBar.push(new Co("diffreview.close",m("label.close","Close"),"close-diff-review "+ai.asClassName(Ebe),!0,()=>Lbe(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=Bt(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Bt(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new i0(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(jn(this.domNode.domNode,"click",i=>{i.preventDefault();const s=rz(i.target,"diff-review-row");s&&this._goToRow(s)})),this._register(jn(this.domNode.domNode,"keydown",i=>{(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),this._goToRow(this._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),this._goToRow(this._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),this.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let i=-1;for(let s=0,o=this._diffs.length;s0){const D=e[c-1];D.originalEndLineNumber===0?S=D.originalStartLineNumber+1:S=D.originalEndLineNumber+1,D.modifiedEndLineNumber===0?x=D.modifiedStartLineNumber+1:x=D.modifiedEndLineNumber+1}let A=C-mC+1,E=y-mC+1;if(AS){const D=S-A;A=A+D,E=E+D}if(E>x){const D=x-E;A=A+D,E=E+D}b[v++]=new G_(C,A,y,E)}s[o++]=new gD(b)}let r=s[0].entries;const a=[];let l=0;for(let c=1,d=s.length;cu)&&(u=z),ee!==0&&(h===0||eef)&&(f=Q)}const g=document.createElement("div");g.className="diff-review-row";const _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=u-d+1,v=f-h+1;_.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${d},${b} +${h},${v} @@`)),g.setAttribute("data-line",String(h));const C=E=>E===0?m("no_lines_changed","no lines changed"):E===1?m("one_line_changed","1 line changed"):m("more_lines_changed","{0} lines changed",E),y=C(b),S=C(v);g.setAttribute("aria-label",m({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,d,y,h,S)),g.appendChild(_),g.setAttribute("role","listitem"),c.appendChild(g);const x=t.get(59);let A=h;for(let E=0,D=l.length;En});bS=ybe([Sbe(1,Oi)],bS);bi((n,e)=>{const t=n.getColor(Zz);t&&e.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${t}; }`);const i=n.getColor(c_);i&&e.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class Dbe extends Be{constructor(){super({id:"editor.action.diffReview.next",label:m("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:xe.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=j$(e);i&&i.diffReviewNext()}}class Ibe extends Be{constructor(){super({id:"editor.action.diffReview.prev",label:m("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:xe.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=j$(e);i&&i.diffReviewPrev()}}function j$(n){const e=n.get(Zt),t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(!i)return null;for(let s=0,o=t.length;ss.modifiedStartLineNumber?m("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):m("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):s.originalEndLineNumber>s.modifiedStartLineNumber?m("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):m("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,()=>mD(this,void 0,void 0,function*(){const _=new T(s.originalStartLineNumber,1,s.originalEndLineNumber+1,1),b=s.originalModel.getValueInRange(_);yield this._clipboardService.writeText(b)})));let u=0,h;s.originalEndLineNumber>s.modifiedStartLineNumber&&(h=new Co("diff.clipboard.copyDeletedLineContent",d?m("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",s.originalStartLineNumber):m("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",s.originalStartLineNumber),void 0,!0,()=>mD(this,void 0,void 0,function*(){const _=s.originalModel.getLineContent(s.originalStartLineNumber+u);if(_===""){const b=s.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(b===0?` +`:`\r +`)}else yield this._clipboardService.writeText(_)})),c.push(h)),i.getOption(81)||c.push(new Co("diff.inline.revertChange",m("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>mD(this,void 0,void 0,function*(){const _=new T(s.originalStartLineNumber,1,s.originalEndLineNumber,s.originalModel.getLineMaxColumn(s.originalEndLineNumber)),b=s.originalModel.getValueInRange(_);if(s.modifiedEndLineNumber===0){const v=i.getModel().getLineMaxColumn(s.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new T(s.modifiedStartLineNumber,v,s.modifiedStartLineNumber,v),text:l+b}])}else{const v=i.getModel().getLineMaxColumn(s.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new T(s.modifiedStartLineNumber,1,s.modifiedEndLineNumber,v),text:b}])}})));const g=(_,b)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:b}),getActions:()=>(h&&(h.label=d?m("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",s.originalStartLineNumber+u):m("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",s.originalStartLineNumber+u)),c),autoSelectFirstItem:!0})};this._register(jn(this._diffActions,"mousedown",_=>{const{top:b,height:v}=Qn(this._diffActions),C=Math.floor(a/3);_.preventDefault(),g(_.posx,b+v+C)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,u=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{_.event.rightButton&&(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),u=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,a),g(_.event.posx,_.event.posy+a))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,e?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(e,t,i){const{top:s}=Qn(e),o=t-s,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let l=0;for(let c=0;c=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},tc=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},pD;class b8{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(t=>!this._zonesMap[String(t.id)])}clean(e){this._zones.length>0&&e.changeViewZones(t=>{for(const i of this._zones)t.removeZone(i)}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,i,s){const o=s?bu.capture(e):null;e.changeViewZones(r=>{var a;for(const l of this._zones)r.removeZone(l);for(const l of this._inlineDiffMargins)l.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let l=0,c=i.zones.length;ln});let vu=class ls extends J{constructor(e,t,i,s,o,r,a,l,c,d,u,h){super(),this._editorProgressService=h,this._onDidDispose=this._register(new j),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new j),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new j),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=o,this._codeEditorService=l,this._contextKeyService=this._register(r.createScoped(e)),this._instantiationService=a.createChild(new yk([lt,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=c,this._notificationService=d,this._id=++Mbe,this._state=0,this._updatingDiffProgress=null,this._domElement=e,t=t||{},this._options=y8(t,{enableSplitViewResizing:!0,renderSideBySide:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof t.isInEmbeddedEditor<"u"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",t.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new ni(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=ls._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Bt(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(jn(this._overviewDomElement,"mousedown",g=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(g)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new b8(u,s),this._modifiedEditorState=new b8(u,s),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new Lz(this._containerDomElement,t.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),t.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(t,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(t,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=a.createInstance(bS,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new yc(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new w8(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(c.onDidColorThemeChange(g=>{this._strategy&&this._strategy.applyColors(g)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=ls._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const f=Uh.getDiffEditorContributions();for(const g of f)try{this._register(a.createInstance(g.ctor,this))}catch(_){dt(_)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=Yy(e.type),i}_recreateOverviewRulers(){this._options.renderOverviewRuler&&(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(e),t);this._register(i.onDidScrollChange(o=>{this._isHandlingScrollEvent||!o.scrollTopChanged&&!o.scrollLeftChanged&&!o.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(o=>{i.getModel()&&(o.hasChanged(44)&&this._updateDecorationsRunner.schedule(),o.hasChanged(132)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const s=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>s.set(!0))),this._register(i.onDidBlurEditorWidget(()=>s.set(!1))),this._register(i.onDidContentSizeChange(o=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+ls.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),i}_createRightHandSideEditor(e,t){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e),t);this._register(i.onDidScrollChange(o=>{this._isHandlingScrollEvent||!o.scrollTopChanged&&!o.scrollLeftChanged&&!o.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(o=>{i.getModel()&&(o.hasChanged(44)&&this._updateDecorationsRunner.schedule(),o.hasChanged(132)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(o=>{o.tabSize&&this._updateDecorationsRunner.schedule()}));const s=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>s.set(!0))),this._register(i.onDidBlurEditorWidget(()=>s.set(!1))),this._register(i.onDidContentSizeChange(o=>{const r=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+ls.ONE_OVERVIEW_WIDTH,a=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:a,contentWidth:r,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),i}_createInnerEditor(e,t,i,s){return e.createInstance(Yv,t,i,s)}dispose(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return G1.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(e){const t=y8(e,this._options),i=Bbe(this._options,t);this._options=t;const s=i.ignoreTrimWhitespace||i.renderIndicators,o=this._isVisible&&(i.maxComputationTime||i.maxFileSize);s?this._beginUpdateDecorations():o&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),i.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new yc(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new w8(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=ls._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),i.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getContainerDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e,t="api"){this._modifiedEditor.setPosition(e,t)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e,t="api"){this._modifiedEditor.setSelection(e,t)}setSelections(e,t="api"){this._modifiedEditor.setSelections(e,t)}revealLines(e,t,i=0){this._modifiedEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._modifiedEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._modifiedEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,s=!0){this._modifiedEditor.revealRange(e,t,i,s)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){const e=this._originalEditor.saveViewState(),t=this._modifiedEditor.saveViewState();return{original:e,modified:t}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,i){this._modifiedEditor.trigger(e,t,i)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._options.renderOverviewRuler||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),i=ls.ENTIRE_DIFF_OVERVIEW_WIDTH-2*ls.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:ls.ONE_OVERVIEW_WIDTH,right:i+ls.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:ls.ONE_OVERVIEW_WIDTH,height:e-t}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),ls.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t?!0:!e||!t?!1:e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const e=this._originalEditor.getModel(),t=this._modifiedEditor.getModel();if(!e||!t)return;this._diffComputationToken++;const i=this._diffComputationToken,s=this._options.maxFileSize*1024*1024,o=r=>{const a=r.getValueLength();return s===0||a<=s};if(!o(e)||!o(t)){(!ls._equals(e.uri,this._lastOriginalWarning)||!ls._equals(t.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=e.uri,this._lastModifiedWarning=t.uri,this._notificationService.warn(m("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._setState(1),this._editorWorkerService.computeDiff(e.uri,t.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=r,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},r=>{i===this._diffComputationToken&&e===this._originalEditor.getModel()&&t===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),s=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,s.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,s.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(e){const t=this._adjustOptionsForSubEditor(e);return e.modifiedAriaLabel&&(t.ariaLabel=e.modifiedAriaLabel),t.wordWrapOverride1=this._options.diffWordWrap,t.revealHorizontalRightPadding=Ba.revealHorizontalRightPadding.defaultValue+ls.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),s=this._strategy.layout();this._originalDomNode.style.width=s+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-s+"px",this._modifiedDomNode.style.left=s+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-i+"px",this._overviewDomElement.style.width=ls.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-ls.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(ls.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:s,height:t-i}),this._modifiedEditor.layout({width:e-s-(this._options.renderOverviewRuler?ls.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:t-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-i,e,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),s=Math.max(0,e.height),o=Math.max(0,s-2*0),r=i>0?o/i:0,a=Math.max(0,Math.floor(e.height*r)),l=Math.floor(t*r);return{height:a,top:l}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||e=l?s=r+1:(s=r,o=r)}return i[s]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.originalStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),s=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=o?s+Math.min(a,r):s+r-o+a}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,l=>l.modifiedStartLineNumber);if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),s=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-s;return a<=r?i+Math.min(a,o):i+o-r+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};vu.ONE_OVERVIEW_WIDTH=15;vu.ENTIRE_DIFF_OVERVIEW_WIDTH=30;vu.UPDATE_DIFF_DECORATIONS_DELAY=200;vu=Abe([tc(3,ag),tc(4,Er),tc(5,lt),tc(6,Et),tc(7,Zt),tc(8,ki),tc(9,rn),tc(10,Fu),tc(11,Bu)],vu);class K$ extends J{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(Phe)||(e.getColor(Bz)||BN).transparent(2),i=e.getColor(Ohe)||(e.getColor(Vz)||VN).transparent(2),s=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,s}getEditorsDiffDecorations(e,t,i,s,o){o=o.sort((c,d)=>c.afterLineNumber-d.afterLineNumber),s=s.sort((c,d)=>c.afterLineNumber-d.afterLineNumber);const r=this._getViewZones(e,s,o,i),a=this._getOriginalEditorDecorations(r,e,t,i),l=this._getModifiedEditorDecorations(r,e,t,i);return{original:{decorations:a.decorations,overviewZones:a.overviewZones,zones:r.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:r.modified}}}}class C8{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexA.afterLineNumber-E.afterLineNumber,v=(A,E)=>{if(E.domNode===null&&A.length>0){const D=A[A.length-1];if(D.afterLineNumber===E.afterLineNumber&&D.domNode===null){D.heightInLines+=E.heightInLines;return}}A.push(E)},C=new C8(this._modifiedForeignVZ),y=new C8(this._originalForeignVZ);let S=1,x=1;for(let A=0,E=this._lineChanges.length;A<=E;A++){const D=A0?-1:0),f=D.modifiedStartLineNumber+(D.modifiedEndLineNumber>0?-1:0),u=D.originalEndLineNumber>0?Rh._getViewLineCount(this._originalEditor,D.originalStartLineNumber,D.originalEndLineNumber):0,d=D.modifiedEndLineNumber>0?Rh._getViewLineCount(this._modifiedEditor,D.modifiedStartLineNumber,D.modifiedEndLineNumber):0,g=Math.max(D.originalStartLineNumber,D.originalEndLineNumber),_=Math.max(D.modifiedStartLineNumber,D.modifiedEndLineNumber)):(h+=1e7+u,f+=1e7+d,g=h,_=f);let P=[],$=[];if(o){let Q;D?D.originalEndLineNumber>0?Q=D.originalStartLineNumber-S:Q=D.modifiedStartLineNumber-x:Q=r.getLineCount()-S+1;for(let Ee=0;EeDe&&$.push({afterLineNumber:ke,heightInLines:Se-De,domNode:null,marginDomNode:null})}D&&(S=(D.originalEndLineNumber>0?D.originalEndLineNumber:D.originalStartLineNumber)+1,x=(D.modifiedEndLineNumber>0?D.modifiedEndLineNumber:D.modifiedStartLineNumber)+1)}for(;C.current&&C.current.afterLineNumber<=_;){let Q;C.current.afterLineNumber<=f?Q=h-f+C.current.afterLineNumber:Q=g;let Ee=null;D&&D.modifiedStartLineNumber<=C.current.afterLineNumber&&C.current.afterLineNumber<=D.modifiedEndLineNumber&&(Ee=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),P.push({afterLineNumber:Q,heightInLines:C.current.height/t,domNode:null,marginDomNode:Ee}),C.advance()}for(;y.current&&y.current.afterLineNumber<=g;){let Q;y.current.afterLineNumber<=h?Q=f-h+y.current.afterLineNumber:Q=_,$.push({afterLineNumber:Q,heightInLines:y.current.height/e,domNode:null}),y.advance()}if(D!==null&&jm(D)){const Q=this._produceOriginalFromDiff(D,u,d);Q&&P.push(Q)}if(D!==null&&qm(D)){const Q=this._produceModifiedFromDiff(D,u,d);Q&&$.push(Q)}let z=0,ee=0;for(P=P.sort(b),$=$.sort(b);z=Ee.heightInLines?(Q.heightInLines-=Ee.heightInLines,ee++):(Ee.heightInLines-=Q.heightInLines,z++)}for(;z(t.domNode||(t.domNode=G$()),t))}}function _c(n,e,t,i,s){return{range:new T(n,e,t,i),options:s}}const Ys={charDelete:pt.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:pt.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:pt.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:pt.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:pt.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:pt.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+ai.asClassName(Rbe),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:pt.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:pt.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+ai.asClassName(q$),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:pt.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class yc extends K${constructor(e,t){super(e),this._disableSash=t===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new hs(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(i=>this._onSashDrag(i)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=e===!1;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?vu.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let s=Math.floor((e||.5)*i);const o=Math.floor(.5*i);return s=this._disableSash?o:s||o,i>yc.MINIMUM_EDITOR_WIDTH*2?(si-yc.MINIMUM_EDITOR_WIDTH&&(s=i-yc.MINIMUM_EDITOR_WIDTH)):s=o,this._sashPosition!==s&&(this._sashPosition=s),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const i=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?vu.ENTIRE_DIFF_OVERVIEW_WIDTH:0),s=this.layout((this._startSashPosition+(e.currentX-e.startX))/i);this._sashRatio=s/i,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const s=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new Pbe(e,t,i,s,o).getViewZones()}_getOriginalEditorDecorations(e,t,i,s){const o=this._dataSource.getOriginalEditor(),r=String(this._removeColor),a={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel();for(const d of t)if(qm(d)){a.decorations.push({range:new T(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:s?Ys.lineDeleteWithSign:Ys.lineDelete}),(!jm(d)||!d.charChanges)&&a.decorations.push(_c(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824,Ys.charDeleteWholeLine));const u=Xv(l,c,d.originalStartLineNumber,d.originalEndLineNumber);if(a.overviewZones.push(new zv(u.startLineNumber,u.endLineNumber,0,r)),d.charChanges){for(const h of d.charChanges)if(qm(h))if(i)for(let f=h.originalStartLineNumber;f<=h.originalEndLineNumber;f++){let g,_;f===h.originalStartLineNumber?g=h.originalStartColumn:g=l.getLineFirstNonWhitespaceColumn(f),f===h.originalEndLineNumber?_=h.originalEndColumn:_=l.getLineLastNonWhitespaceColumn(f),a.decorations.push(_c(f,g,f,_,Ys.charDelete))}else a.decorations.push(_c(h.originalStartLineNumber,h.originalStartColumn,h.originalEndLineNumber,h.originalEndColumn,Ys.charDelete))}}return a}_getModifiedEditorDecorations(e,t,i,s){const o=this._dataSource.getModifiedEditor(),r=String(this._insertColor),a={decorations:[],overviewZones:[]},l=o.getModel(),c=o._getViewModel();for(const d of t)if(jm(d)){a.decorations.push({range:new T(d.modifiedStartLineNumber,1,d.modifiedEndLineNumber,1073741824),options:s?Ys.lineInsertWithSign:Ys.lineInsert}),(!qm(d)||!d.charChanges)&&a.decorations.push(_c(d.modifiedStartLineNumber,1,d.modifiedEndLineNumber,1073741824,Ys.charInsertWholeLine));const u=Xv(l,c,d.modifiedStartLineNumber,d.modifiedEndLineNumber);if(a.overviewZones.push(new zv(u.startLineNumber,u.endLineNumber,0,r)),d.charChanges){for(const h of d.charChanges)if(jm(h))if(i)for(let f=h.modifiedStartLineNumber;f<=h.modifiedEndLineNumber;f++){let g,_;f===h.modifiedStartLineNumber?g=h.modifiedStartColumn:g=l.getLineFirstNonWhitespaceColumn(f),f===h.modifiedEndLineNumber?_=h.modifiedEndColumn:_=l.getLineLastNonWhitespaceColumn(f),a.decorations.push(_c(f,g,f,_,Ys.charInsert))}else a.decorations.push(_c(h.modifiedStartLineNumber,h.modifiedStartColumn,h.modifiedEndLineNumber,h.modifiedEndColumn,Ys.charInsert))}}return a}}yc.MINIMUM_EDITOR_WIDTH=100;class Pbe extends Rh{constructor(e,t,i,s,o){super(e,t,i,s,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class w8 extends K${constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(i=>{this._decorationsLeft!==i.decorationsLeft&&(this._decorationsLeft=i.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,s){const o=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new Obe(e,t,i,o,r,s).getViewZones()}_getOriginalEditorDecorations(e,t,i,s){const o=String(this._removeColor),r={decorations:[],overviewZones:[]},a=this._dataSource.getOriginalEditor(),l=a.getModel(),c=a._getViewModel();let d=0;for(const u of t)if(qm(u)){for(r.decorations.push({range:new T(u.originalStartLineNumber,1,u.originalEndLineNumber,1073741824),options:Ys.lineDeleteMargin});d=u.originalStartLineNumber)break;d++}let h=0;if(d0,$=df(1e4);let z=0,ee=0,Q=null;for(let ke=S.originalStartLineNumber;ke<=S.originalEndLineNumber;ke++){const Se=ke-S.originalStartLineNumber,De=this._originalModel.getLineTokens(ke),tt=De.getLineContent(),Ke=v[C++],yt=$o.filter(D,ke,1,tt.length+1);if(Ke){let Ie=0;for(const Ct of Ke.breakOffsets){const se=De.sliceAndInflate(Ie,Ct,0),Ut=tt.substring(Ie,Ct);z=Math.max(z,this._renderOriginalLine(ee++,Ut,se,$o.extractWrapped(yt,Ie,Ct),P,l,c,s,o,d,h,f,g,_,b,i,$,E)),Ie=Ct}for(Q||(Q=[]);Q.lengthy.afterLineNumber-S.afterLineNumber)}_renderOriginalLine(e,t,i,s,o,r,a,l,c,d,u,h,f,g,_,b,v,C){v.appendASCIIString('
    ');const y=Zo.isBasicASCII(t,r),S=Zo.containsRTL(t,y,a),x=KL(new eg(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,y,S,0,i,s,b,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,h,f,g,_!==Fo.OFF,null),v);if(v.appendASCIIString("
    "),this._renderIndicators){const A=document.createElement("div");A.className=`delete-sign ${ai.asClassName(q$)}`,A.setAttribute("style",`position:absolute;top:${e*d}px;width:${u}px;height:${d}px;right:0;`),C.appendChild(A)}return x.characterMapping.getAbsoluteOffset(x.characterMapping.length)}}function Fbe(n,e){return Js(n,e,["off","on","inherit"])}function jm(n){return n.modifiedEndLineNumber>0}function qm(n){return n.originalEndLineNumber>0}function G$(){const n=document.createElement("div");return n.className="diagonal-fill",n}function Xv(n,e,t,i){const s=n.getLineCount();return t=Math.min(s,Math.max(1,t)),i=Math.min(s,Math.max(1,i)),e.coordinatesConverter.convertModelRangeToViewRange(new T(t,n.getLineMinColumn(t),i,n.getLineMaxColumn(i)))}function y8(n,e){return{enableSplitViewResizing:Qe(n.enableSplitViewResizing,e.enableSplitViewResizing),renderSideBySide:Qe(n.renderSideBySide,e.renderSideBySide),maxComputationTime:_2(n.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:_2(n.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:Qe(n.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:Qe(n.renderIndicators,e.renderIndicators),originalEditable:Qe(n.originalEditable,e.originalEditable),diffCodeLens:Qe(n.diffCodeLens,e.diffCodeLens),renderOverviewRuler:Qe(n.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:Fbe(n.diffWordWrap,e.diffWordWrap)}}function Bbe(n,e){return{enableSplitViewResizing:n.enableSplitViewResizing!==e.enableSplitViewResizing,renderSideBySide:n.renderSideBySide!==e.renderSideBySide,maxComputationTime:n.maxComputationTime!==e.maxComputationTime,maxFileSize:n.maxFileSize!==e.maxFileSize,ignoreTrimWhitespace:n.ignoreTrimWhitespace!==e.ignoreTrimWhitespace,renderIndicators:n.renderIndicators!==e.renderIndicators,originalEditable:n.originalEditable!==e.originalEditable,diffCodeLens:n.diffCodeLens!==e.diffCodeLens,renderOverviewRuler:n.renderOverviewRuler!==e.renderOverviewRuler,diffWordWrap:n.diffWordWrap!==e.diffWordWrap}}bi((n,e)=>{const t=n.getColor(Bz);t&&e.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${t}; }`);const i=n.getColor(The)||t;i&&e.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${i}; }`);const s=n.getColor(Mhe)||i;s&&(e.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${s}; }`),e.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${s}; }`));const o=n.getColor(Vz);o&&e.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${o}; }`);const r=n.getColor(Ahe)||o;r&&e.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${r}; }`);const a=n.getColor(Rhe)||r;a&&(e.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${a}; }`),e.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${a}; }`));const l=n.getColor(Fhe);l&&e.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${n.type==="hc"?"dashed":"solid"} ${l}; }`);const c=n.getColor(Bhe);c&&e.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${n.type==="hc"?"dashed":"solid"} ${c}; }`);const d=n.getColor(c_);d&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${d}; }`);const u=n.getColor(Vhe);u&&e.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${u}; }`);const h=n.getColor(Fm);h&&e.addRule(` + .monaco-diff-editor .diffViewport { + background: ${h}; + } + `);const f=n.getColor(Bm);f&&e.addRule(` + .monaco-diff-editor .diffViewport:hover { + background: ${f}; + } + `);const g=n.getColor(Vm);g&&e.addRule(` + .monaco-diff-editor .diffViewport:active { + background: ${g}; + } + `);const _=n.getColor(Whe);e.addRule(` + .monaco-editor .diagonal-fill { + background-image: linear-gradient( + -45deg, + ${_} 12.5%, + #0000 12.5%, #0000 50%, + ${_} 50%, ${_} 62.5%, + #0000 62.5%, #0000 100% + ); + background-size: 8px 8px; + } + `)});var Vbe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Wbe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let sT=class extends J{constructor(e){super(),this._themeService=e,this._onCodeEditorAdd=this._register(new j),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new j),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new j),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new j),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorations(e))))}setModelProperty(e,t,i){const s=e.toString();let o;this._modelProperties.has(s)?o=this._modelProperties.get(s):(o=new Map,this._modelProperties.set(s,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}};sT=Vbe([Wbe(0,ki)],sT);var Hbe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},S8=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let vS=class extends sT{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(e,t,i){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const o=t.resource.scheme;if(o===mt.http||o===mt.https)return uz(t.resource.toString()),e}return null}const s=t.options?t.options.selection:null;if(s)if(typeof s.endLineNumber=="number"&&typeof s.endColumn=="number")e.setSelection(s),e.revealRangeInCenter(s,1);else{const o={lineNumber:s.startLineNumber,column:s.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};vS=Hbe([S8(0,lt),S8(1,ki)],vS);Vt(Zt,vS);const o0=At("layoutService");var Y$=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Z$=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let CS=class{constructor(e){this._codeEditorService=e,this.onDidLayout=je.None}get dimension(){return this._dimension||(this._dimension=ZL(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}};CS=Y$([Z$(0,Zt)],CS);let oT=class extends CS{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};oT=Y$([Z$(1,Zt)],oT);Vt(o0,CS);const r0=At("dialogService");var zbe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},L8=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},pC=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function _C(n){return n.scheme===mt.file?n.fsPath:n.path}let X$=0;class bC{constructor(e,t,i,s,o,r,a){this.id=++X$,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=s,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class k8{constructor(e,t){this.resourceLabel=e,this.reason=t}}class x8{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,s]of this.elements)(s.reason===0?e:t).push(s.resourceLabel);let i=[];return e.length>0&&i.push(m({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(m({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join(` +`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class $be{constructor(e,t,i,s,o,r,a){this.id=++X$,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=s,this.groupOrder=o,this.sourceId=r,this.sourceOrder=a,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,t,i){this.removedResources||(this.removedResources=new x8),this.removedResources.has(t)||this.removedResources.set(t,new k8(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new x8),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new k8(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Q${constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){e.type===1?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)t.type===1&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,s=this._past.length;i=0;i--)t.push(this._future[i].id);return new O$(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,s=0,o=-1;for(let a=0,l=this._past.length;a=t||c.id!==e.elements[s])&&(i=!1,o=0),!i&&c.type===1&&c.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let a=this._future.length-1;a>=0;a--,s++){const l=this._future[a];i&&(s>=t||l.id!==e.elements[s])&&(i=!1,r=a),!i&&l.type===1&&l.removeResource(this.resourceLabel,this.strResource,0)}o!==-1&&(this._past=this._past.slice(0,o)),r!==-1&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class _D{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=r,i=s)}return[t,i]}canUndo(e){if(e instanceof gl){const[,i]=this._findClosestUndoElementWithSource(e.id);return!!i}const t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).hasPastElements():!1}_onError(e,t){dt(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,s,o){const r=this._acquireLocks(i);let a;try{a=t()}catch(l){return r(),s.dispose(),this._onError(l,e)}return a?a.then(()=>(r(),s.dispose(),o()),l=>(r(),s.dispose(),this._onError(l,e))):(r(),s.dispose(),o())}_invokeWorkspacePrepare(e){return pC(this,void 0,void 0,function*(){if(typeof e.actual.prepareUndoRedo>"u")return J.None;const t=e.actual.prepareUndoRedo();return typeof t>"u"?J.None:t})}_invokeResourcePrepare(e,t){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return t(J.None);const i=e.actual.prepareUndoRedo();return i?TR(i)?t(i):i.then(s=>t(s)):t(J.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||J$);return new _D(t)}_tryToSplitAndUndo(e,t,i,s){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(s),new vC(this._undo(e,0,!0));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(s),new vC}_checkWorkspaceUndo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,m({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,m({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const a of i.editStacks)a.getClosestPastElement()!==t&&o.push(a.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,m({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,m({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,m({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const s=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,s,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,s,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const s=t.getSecondClosestPastElement();if(s&&s.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,s){return pC(this,void 0,void 0,function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const a=yield this._dialogService.show(Mi.Info,m("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[m({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),m("nok","Undo this File"),m("cancel","Cancel")],{cancelId:2});if(a.choice===2)return;if(a.choice===1)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const l=this._checkWorkspaceUndo(e,t,i,!1);if(l)return l.returnValue;s=!0}let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return o.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,o,()=>this._continueUndoInGroup(t.groupId,s))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){const s=m({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(s);return}return this._invokeResourcePrepare(t,s=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new _D([e]),s,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,o]of this._editStacks){const r=o.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=s)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof gl){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const s=this._editStacks.get(e),o=s.getClosestPastElement();if(!o)return;if(o.groupId){const[a,l]=this._findClosestUndoElementInGroup(o.groupId);if(o!==a&&l)return this._undo(l,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return o.type===1?this._workspaceUndo(e,o,i):this._resourceUndo(s,o,i)}finally{}}_confirmAndContinueUndo(e,t,i){return pC(this,void 0,void 0,function*(){if((yield this._dialogService.show(Mi.Info,m("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[m("confirmDifferentSource.yes","Yes"),m("confirmDifferentSource.no","No")],{cancelId:1})).choice!==1)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,o]of this._editStacks){const r=o.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,m({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const r=[];for(const a of i.editStacks)a.locked&&r.push(a.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,m({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,m({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),s=this._checkWorkspaceRedo(e,t,i,!1);return s?s.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return pC(this,void 0,void 0,function*(){let s;try{s=yield this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return s.dispose(),o.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,s,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){const i=m({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(i);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new _D([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,o]of this._editStacks){const r=o.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to!1){return new Km(new Kbe(e))}static forStrings(){return new Km(new Ube)}static forConfigKeys(){return new Km(new jbe)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let s;this._root||(this._root=new CC,this._root.segment=i.value());const o=[];for(s=this._root;;){const a=i.cmp(s.segment);if(a>0)s.left||(s.left=new CC,s.left.segment=i.value()),o.push([-1,s]),s=s.left;else if(a<0)s.right||(s.right=new CC,s.right.segment=i.value()),o.push([1,s]),s=s.right;else if(i.hasNext())i.next(),s.mid||(s.mid=new CC,s.mid.segment=i.value()),o.push([0,s]),s=s.mid;else break}const r=s.value;s.value=t,s.key=e;for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c<-1||c>1){const d=o[a][0],u=o[a+1][0];if(d===1&&u===1)o[a][1]=l.rotateLeft();else if(d===-1&&u===-1)o[a][1]=l.rotateRight();else if(d===1&&u===-1)l.right=o[a+1][1]=o[a+1][1].rotateRight(),o[a][1]=l.rotateLeft();else if(d===-1&&u===1)l.left=o[a+1][1]=o[a+1][1].rotateLeft(),o[a][1]=l.rotateRight();else throw new Error;if(a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}return r}get(e){var t;return(t=this._getNode(e))===null||t===void 0?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else break}return i}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const s=this._iter.reset(e),o=[];let r=this._root;for(;r;){const a=s.cmp(r.segment);if(a>0)o.push([-1,r]),r=r.left;else if(a<0)o.push([1,r]),r=r.right;else if(s.hasNext())s.next(),o.push([0,r]),r=r.mid;else break}if(r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const a=this._min(r.right),{key:l,value:c,segment:d}=a;this._delete(a.key,!1),r.key=l,r.value=c,r.segment=d}else{const a=(i=r.left)!==null&&i!==void 0?i:r.right;if(o.length>0){const[l,c]=o[o.length-1];switch(l){case-1:c.left=a;break;case 0:c.mid=a;break;case 1:c.right=a;break}}else this._root=a}for(let a=o.length-1;a>=0;a--){const l=o[a][1];l.updateHeight();const c=l.balanceFactor();if(c>1?(l.right.balanceFactor()>=0||(l.right=l.right.rotateRight()),o[a][1]=l.rotateLeft()):c<-1&&(l.left.balanceFactor()<=0||(l.left=l.left.rotateLeft()),o[a][1]=l.rotateRight()),a>0)switch(o[a-1][0]){case-1:o[a-1][1].left=o[a][1];break;case 1:o[a-1][1].right=o[a][1];break;case 0:o[a-1][1].mid=o[a][1];break}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i=this._root,s;for(;i;){const o=t.cmp(i.segment);if(o>0)i=i.left;else if(o<0)i=i.right;else if(t.hasNext())t.next(),s=i.value||s,i=i.mid;else break}return i&&i.value||s}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const s=t.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(t.hasNext())t.next(),i=i.mid;else return i.mid?this._entries(i.mid):void 0}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){e&&(e.left&&(yield*this._entries(e.left)),e.value&&(yield[e.key,e.value]),e.mid&&(yield*this._entries(e.mid)),e.right&&(yield*this._entries(e.right)))}}class Gbe{constructor(e,t){this.uri=e,this.value=t}}class Fs{constructor(e,t){this[E8]="ResourceMap",e instanceof Fs?(this.map=new Map(e.map),this.toKey=t??Fs.defaultToKey):(this.map=new Map,this.toKey=e??Fs.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new Gbe(e,t)),this}get(e){var t;return(t=this.map.get(this.toKey(e)))===null||t===void 0?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(let[i,s]of this.map)e(s.value,s.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(E8=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}Fs.defaultToKey=n=>n.toString();class Ybe{constructor(){this[D8]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,i!==0&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.key,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return s}values(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:i.value,done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return s}entries(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const o={value:[i.key,i.value],done:!1};return i=i.next,o}else return{value:void 0,done:!0}}};return s}[(D8=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,s=e.previous;e===this._tail?(s.next=void 0,this._tail=s):(i.previous=s,s.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,s=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=s,s.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class Vu extends Ybe{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}function fo(n,e,t){return Math.min(Math.max(n,e),t)}class eU{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class Zbe{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Qbe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const Dr=At("ILanguageFeatureDebounceService");var wS;(function(n){const e=new WeakMap;let t=0;function i(s){let o=e.get(s);return o===void 0&&(o=++t,e.set(s,o)),o}n.of=i})(wS||(wS={}));class Jbe{constructor(e,t,i,s,o,r){this._logService=e,this._name=t,this._registry=i,this._default=s,this._min=o,this._max=r,this._cache=new Vu(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((t,i)=>jL(wS.of(i),t),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?fo(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let s=this._cache.get(i);s||(s=new Zbe(6),this._cache.set(i,s));const o=fo(s.update(t),this._min,this._max);return this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new eU;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=this._overall()|0||this._default;return fo(e,this._min,this._max)}}let aT=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var s,o,r;const a=(s=i==null?void 0:i.min)!==null&&s!==void 0?s:50,l=(o=i==null?void 0:i.max)!==null&&o!==void 0?o:Math.pow(a,2),c=(r=i==null?void 0:i.key)!==null&&r!==void 0?r:void 0,d=`${wS.of(e)},${a}${c?","+c:""}`;let u=this._data.get(d);return u||(u=new Jbe(this._logService,t,e,this._overallAverage()|0||a*1.5,a,l),this._data.set(d,u)),u}_overallAverage(){let e=new eU;for(let t of this._data.values())e.update(t.default());return e.value}};aT=Xbe([Qbe(0,na)],aT);Vt(Dr,aT,!0);const iO=At("IWorkspaceEditService");function eve(n){return io(n)&&(!!n.newUri||!!n.oldUri)}function tve(n){return io(n)&&et.isUri(n.resource)&&io(n.edit)}class Sk{constructor(e){this.metadata=e}static convert(e){return e.edits.map(t=>{if(tve(t))return new tU(t.resource,t.edit,t.modelVersionId,t.metadata);if(eve(t))return new ive(t.oldUri,t.newUri,t.options,t.metadata);throw new Error("Unsupported edit")})}}class tU extends Sk{constructor(e,t,i,s){super(s),this.resource=e,this.textEdit=t,this.versionId=i}}class ive extends Sk{constructor(e,t,i,s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}const nve=Object.freeze({id:"editor",order:5,type:"object",title:m("editorConfigurationTitle","Editor"),scope:5}),yS=Object.assign(Object.assign({},nve),{properties:{"editor.tabSize":{type:"number",default:ks.tabSize,minimum:1,markdownDescription:m("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:ks.insertSpaces,markdownDescription:m("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:ks.detectIndentation,markdownDescription:m("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:ks.trimAutoWhitespace,description:m("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ks.largeFileOptimizations,description:m("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:m("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[m("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),m("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),m("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:m("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[m("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),m("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),m("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:m("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:m("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:m("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:"array",default:!1,description:m("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:m("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:m("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:"array",default:!1,description:m("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:m("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:m("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:m("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:m("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:m("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:m("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:m("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:m("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[m("wordWrap.off","Lines will never wrap."),m("wordWrap.on","Lines will wrap at the viewport width."),m("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function sve(n){return typeof n.type<"u"||typeof n.anyOf<"u"}for(const n of am){const e=n.schema;if(typeof e<"u")if(sve(e))yS.properties[`editor.${n.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(yS.properties[t]=e[t])}let wC=null;function iU(){return wC===null&&(wC=Object.create(null),Object.keys(yS.properties).forEach(n=>{wC[n]=!0})),wC}function ove(n){return iU()[`editor.${n}`]||!1}function rve(n){return iU()[`diffEditor.${n}`]||!1}const ave=on.as(og.Configuration);ave.registerConfiguration(yS);class $i{static insert(e,t){return{range:new T(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}class sr{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.isFrozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?x3(this.contents,e):this.contents}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?x3(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=gc(this.contents),i=gc(this.overrides),s=[...this.keys];for(const o of e){this.mergeContents(t,o.contents);for(const r of o.overrides){const[a]=i.filter(l=>jo(l.identifiers,r.identifiers));a?(this.mergeContents(a.contents,r.contents),a.keys.push(...r.keys),a.keys=au(a.keys)):i.push(gc(r))}for(const r of o.keys)s.indexOf(r)===-1&&s.push(r)}return new sr(t,s,i)}freeze(){return this.isFrozen=!0,this}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;let i={};for(const s of au([...Object.keys(this.contents),...Object.keys(t)])){let o=this.contents[s],r=t[s];r&&(typeof o=="object"&&typeof r=="object"?(o=gc(o),this.mergeContents(o,r)):o=r),i[s]=o}return new sr(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t)){if(i in e&&io(e[i])&&io(t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=gc(t[i])}}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?hae(e):e}getContentsForOverrideIdentifer(e){let t=null,i=null;const s=o=>{o&&(i?this.mergeContents(i,o):i=gc(o))};for(const o of this.overrides)jo(o.identifiers,[e])?t=o.contents:o.identifiers.includes(e)&&s(o.contents);return s(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),QR(this.contents,e,t,i=>{throw new Error(i)})}removeValue(e){this.removeKey(e)&&Sce(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;iconsole.error(`Conflict in default settings: ${c}`))}for(const r of Object.keys(s))Uv.test(r)&&o.push({identifiers:_$(r),keys:Object.keys(s[r]),contents:MH(s[r],a=>console.error(`Conflict in default settings file: ${a}`))});super(s,i,o)}}class Lk{constructor(e,t,i=new sr,s=new sr,o=new Fs,r=new sr,a=new Fs,l=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=i,this._workspaceConfiguration=s,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=a,this._freeze=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Fs,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidateConfigurationModel(t,i).getValue(e)}updateValue(e,t,i={}){let s;i.resource?(s=this._memoryConfigurationByResource.get(i.resource),s||(s=new sr,this._memoryConfigurationByResource.set(i.resource,s))):s=this._memoryConfiguration,t===void 0?s.removeValue(e):s.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const s=this.getConsolidateConfigurationModel(t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,a=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),c=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),d=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),u=i?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,h=o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,f=t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),g=s.getValue(e),_=au(xR(s.overrides.map(b=>b.identifiers))).filter(b=>s.getOverrideValue(e,b)!==void 0);return{defaultValue:a,userValue:l,userLocalValue:c,userRemoteValue:d,workspaceValue:u,workspaceFolderValue:h,memoryValue:f,value:g,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:l!==void 0?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:c!==void 0?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:d!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:u!==void 0?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:h!==void 0?{value:o==null?void 0:o.freeze().getValue(e),override:t.overrideIdentifier?o==null?void 0:o.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:f!==void 0?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:_.length?_:void 0}}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidateConfigurationModel(e,t){let i=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?i.override(e.overrideIdentifier):i}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const s=t.getFolder(e);s&&(i=this.getFolderConsolidatedConfiguration(s.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(e);s?(t=i.merge(s),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:i,overrides:s,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:s,keys:o}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.user),s=this.parseConfigurationModel(e.workspace),o=e.folders.reduce((r,a)=>(r.set(et.revive(a[0]),this.parseConfigurationModel(a[1])),r),new Fs);return new Lk(t,i,new sr,s,o,new sr,new Fs,!1)}static parseConfigurationModel(e){return new sr(e.contents,e.keys,e.overrides).freeze()}}class cve{constructor(e,t,i,s){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this._previousConfiguration=void 0;const o=new Set;e.keys.forEach(a=>o.add(a)),e.overrides.forEach(([,a])=>a.forEach(l=>o.add(l))),this.affectedKeys=[...o.values()];const r=new sr;this.affectedKeys.forEach(a=>r.setValue(a,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Lk.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const s=this.previousConfiguration?this.previousConfiguration.getValue(e,t,(i=this.previous)===null||i===void 0?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!hr(s,o)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let i=MH({[t]:!0},()=>{}),s;for(;typeof i=="object"&&(s=Object.keys(i)[0]);){if(e=e[s],!e)return!1;i=i[s]}return!0}}const dve=/^(cursor|delete)/;class uve extends J{constructor(e,t,i,s,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=o,this._onDidUpdateKeybindings=this._register(new j),this._currentChord=null,this._currentChordChecker=new Y1,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=_m.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new xo,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:je.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[s]=i.getDispatchParts();if(s===null)return null;const o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,s)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(m("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[s]=i.getSingleModifierDispatchParts();if(s)return this._ignoreSingleModifiers.has(s)?(this._log(`+ Ignoring single modifier ${s} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=_m.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=_m.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${s}.`),this._currentSingleModifier=s,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):s===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${s} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getParts();return this._ignoreSingleModifiers=new _m(o),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let s=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let o=null,r=null;if(i){const[d]=e.getSingleModifierDispatchParts();o=d,r=d}else[o]=e.getDispatchParts(),r=this._currentChord?this._currentChord.keypress:null;if(o===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,o);return this._logService.trace("KeybindingService#dispatch",l,c==null?void 0:c.commandId),c&&c.enterChord?(s=!0,this._enterChordMode(o,l),s):(this._currentChord&&(!c||!c.commandId)&&(this._notificationService.status(m("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,l),{hideAfter:10*1e3}),s=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(s=!0),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,d=>this._notificationService.warn(d)):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,d=>this._notificationService.warn(d)),dve.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),s)}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}}class _m{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}_m.EMPTY=new _m(null);const Ui=At("keybindingService");class Zb{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const o=s.command;o&&o.charAt(0)!=="-"&&this._defaultBoundCommands.set(o,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Zb.handleRemovals([].concat(e).concat(t));for(let s=0,o=this._keybindings.length;s"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(let s=i.length-1;s>=0;s--){let o=i[s];if(o.command===t.command)continue;const r=o.keypressParts.length>1,a=t.keypressParts.length>1;r&&a&&o.keypressParts[1]!==t.keypressParts[1]||Zb.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(let i=0,s=t.length;i"u"||i.length===0)return null;if(i.length===1)return i[0];for(let s=i.length-1;s>=0;s--){const o=i[s];if(t.contextMatchesRules(o.when))return o}return i[i.length-1]}resolve(e,t,i){this._log(`| Resolving ${i}${t?` chorded from ${t}`:""}`);let s=null;if(t!==null){const r=this._map.get(t);if(typeof r>"u")return this._log("\\ No keybinding entries."),null;s=[];for(let a=0,l=r.length;a"u")return this._log("\\ No keybinding entries."),null;s=r}let o=this._findCommand(e,s);return o?t===null&&o.keypressParts.length>1&&o.keypressParts[1]!==null?(this._log(`\\ From ${s.length} keybinding entries, matched chord, when: ${I8(o.when)}, source: ${N8(o)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${s.length} keybinding entries, matched ${o.command}, when: ${I8(o.when)}, source: ${N8(o)}.`),{enterChord:!1,leaveChord:o.keypressParts.length>1,commandId:o.command,commandArgs:o.commandArgs,bubble:o.bubble}):(this._log(`\\ From ${s.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){let s=t[i];if(Zb._contextMatchesRules(e,s.when))return s}return null}static _contextMatchesRules(e,t){return t?t.evaluate(e):!0}}function I8(n){return n?`${n.serialize()}`:"no when condition"}function N8(n){return n.extensionId?n.isBuiltinExtension?`built-in extension ${n.extensionId}`:`user extension ${n.extensionId}`:n.isDefault?"built-in":"user"}class T8{constructor(e,t,i,s,o,r,a){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?lT(e.getDispatchParts()):[],e&&this.keypressParts.length===0&&(this.keypressParts=lT(e.getSingleModifierDispatchParts())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=s,this.isDefault=o,this.extensionId=r,this.isBuiltinExtension=a}}function lT(n){let e=[];for(let t=0,i=n.length;tthis._getLabel(e))}getAriaLabel(){return hve.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:fve.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new Zde(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class Qv extends mve{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return Ih.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Ih.toString(e.keyCode)}_getElectronAccelerator(e){return Ih.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return Qv.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Ih.toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){const t=PR[e];if(t!==-1)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof ff)return e;const t=this._scanCodeToKeyCode(e.scanCode);return t===0?null:new ff(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){const i=lT(e.map(s=>this._resolveSimpleUserBinding(s)));return i.length>0?[new Qv(new zy(i),t)]:[]}}const a0=At("labelService"),nU=At("contextService");function A8(n){const e=n;return typeof(e==null?void 0:e.id)=="string"&&et.isUri(e.uri)}function pve(n){if(n.configuration)return{id:n.id,configPath:n.configuration};if(n.folders.length===1)return{id:n.id,uri:n.folders[0].uri}}class _ve{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const cT="code-workspace";m("codeWorkspace","Code Workspace");var un;(function(n){n.noSelection=m("noSelection","No selection"),n.singleSelectionRange=m("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),n.singleSelection=m("singleSelection","Line {0}, Column {1}"),n.multiSelectionRange=m("multiSelectionRange","{0} selections ({1} characters selected)"),n.multiSelection=m("multiSelection","{0} selections"),n.emergencyConfOn=m("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),n.openingDocs=m("openingDocs","Now opening the Editor Accessibility documentation page."),n.readonlyDiffEditor=m("readonlyDiffEditor"," in a read-only pane of a diff editor."),n.editableDiffEditor=m("editableDiffEditor"," in a pane of a diff editor."),n.readonlyEditor=m("readonlyEditor"," in a read-only code editor"),n.editableEditor=m("editableEditor"," in a code editor"),n.changeConfigToOnMac=m("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),n.changeConfigToOnWinLinux=m("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),n.auto_on=m("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),n.auto_off=m("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),n.tabFocusModeOnMsg=m("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),n.tabFocusModeOnMsgNoKb=m("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),n.tabFocusModeOffMsg=m("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),n.tabFocusModeOffMsgNoKb=m("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),n.openDocMac=m("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),n.openDocWinLinux=m("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),n.outroMsg=m("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),n.showAccessibilityHelpAction=m("showAccessibilityHelpAction","Show Accessibility Help")})(un||(un={}));var dT;(function(n){n.inspectTokensAction=m("inspectTokens","Developer: Inspect Tokens")})(dT||(dT={}));var SS;(function(n){n.gotoLineActionLabel=m("gotoLineActionLabel","Go to Line/Column...")})(SS||(SS={}));var uT;(function(n){n.helpQuickAccessActionLabel=m("helpQuickAccess","Show all Quick Access Providers")})(uT||(uT={}));var LS;(function(n){n.quickCommandActionLabel=m("quickCommandActionLabel","Command Palette"),n.quickCommandHelp=m("quickCommandActionHelp","Show And Run Commands")})(LS||(LS={}));var Jv;(function(n){n.quickOutlineActionLabel=m("quickOutlineActionLabel","Go to Symbol..."),n.quickOutlineByCategoryActionLabel=m("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(Jv||(Jv={}));var kS;(function(n){n.editorViewAccessibleLabel=m("editorViewAccessibleLabel","Editor content"),n.accessibilityHelpMessage=m("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(kS||(kS={}));var hT;(function(n){n.toggleHighContrast=m("toggleHighContrast","Toggle High Contrast Theme")})(hT||(hT={}));var fT;(function(n){n.bulkEditServiceSummary=m("bulkEditServiceSummary","Made {0} edits in {1} files")})(fT||(fT={}));const sU=At("workspaceTrustManagementService");var ds;(function(n){function e(o,r){if(o.start>=r.end||r.start>=o.end)return{start:0,end:0};const a=Math.max(o.start,r.start),l=Math.min(o.end,r.end);return l-a<=0?{start:0,end:0}:{start:a,end:l}}n.intersect=e;function t(o){return o.end-o.start<=0}n.isEmpty=t;function i(o,r){return!t(e(o,r))}n.intersects=i;function s(o,r){const a=[],l={start:o.start,end:Math.min(r.start,o.end)},c={start:Math.max(r.end,o.start),end:o.end};return t(l)||a.push(l),t(c)||a.push(c),a}n.relativeComplement=s})(ds||(ds={}));var Vd;(function(n){n[n.AVOID=0]="AVOID",n[n.ALIGN=1]="ALIGN"})(Vd||(Vd={}));function bm(n,e,t){const i=t.mode===Vd.ALIGN?t.offset:t.offset+t.size,s=t.mode===Vd.ALIGN?t.offset+t.size:t.offset;return t.position===0?e<=n-i?i:e<=s?s-e:Math.max(n-e,0):e<=s?s-e:e<=n-i?i:0}class Sp extends J{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=J.None,this.toDisposeOnSetContainer=J.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=le(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,eo(this.view),this.setContainer(e,t),this._register(vt(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(i=this.shadowRootHostElement)===null||i===void 0||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=le(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const o=document.createElement("style");o.textContent=bve,this.shadowRoot.appendChild(o),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(le("slot"))}else this.container.appendChild(this.view);const s=new ue;Sp.BUBBLE_UP_EVENTS.forEach(o=>{s.add(jn(this.container,o,r=>{this.onDOMEvent(r,!1)}))}),Sp.BUBBLE_DOWN_EVENTS.forEach(o=>{s.add(jn(this.container,o,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=s}}show(e){this.isVisible()&&this.hide(),Sn(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",Bo(this.view),this.toDisposeOnClean=e.render(this.view)||J.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(Ta&&YL.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;let e=this.delegate.getAnchor(),t;if(cz(e)){let u=Qn(e);t={top:u.top,left:u.left,width:u.width,height:u.height}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=Vr(this.view),s=DN(this.view),o=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let l,c;if(a===0){const u={offset:t.top-window.pageYOffset,size:t.height,position:o===0?0:1},h={offset:t.left,size:t.width,position:r===0?0:1,mode:Vd.ALIGN};l=bm(window.innerHeight,s,u)+window.pageYOffset,ds.intersects({start:l,end:l+s},{start:u.offset,end:u.offset+u.size})&&(h.mode=Vd.AVOID),c=bm(window.innerWidth,i,h)}else{const u={offset:t.left,size:t.width,position:r===0?0:1},h={offset:t.top,size:t.height,position:o===0?0:1,mode:Vd.ALIGN};c=bm(window.innerWidth,i,u),ds.intersects({start:c,end:c+i},{start:u.offset,end:u.offset+u.size})&&(h.mode=Vd.AVOID),l=bm(window.innerHeight,s,h)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(o===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const d=Qn(this.container);this.view.style.top=`${l-(this.useFixedPosition?Qn(this.view).top:d.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?Qn(this.view).left:d.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t!=null&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),eo(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Pc(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Sp.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];Sp.BUBBLE_DOWN_EVENTS=["click"];let bve=` + :host { + all: initial; /* 1st rule so subsequent properties are reset. */ + } + + @font-face { + font-family: "codicon"; + font-display: block; + src: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype"); + } + + .codicon[class*='codicon-'] { + font: normal normal normal 16px/1 codicon; + display: inline-block; + text-decoration: none; + text-rendering: auto; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + } + + :host { + font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; + } + + :host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; } + :host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; } + :host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; } + :host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; } + :host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; } + + :host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; } + :host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; } + :host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; } + :host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; } + :host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; } + + :host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; } + :host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; } + :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } + :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } + :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } +`;var vve=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Cve=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let gT=class extends J{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=J.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new Sp(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?t!==this.container&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const s=vt(()=>{this.currentViewDisposable===s&&this.hideContextView()});return this.currentViewDisposable=s,s}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};gT=vve([Cve(0,o0)],gT);const bD="**",M8="/",Uw="[/\\\\]",jw="[^/\\\\]",wve=/\//g;function R8(n){switch(n){case 0:return"";case 1:return`${jw}*?`;default:return`(?:${Uw}|${jw}+${Uw}|${Uw}${jw}+)*?`}}function P8(n,e){if(!n)return[];const t=[];let i=!1,s=!1,o="";for(const r of n){switch(r){case e:if(!i&&!s){t.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":s=!0;break;case"]":s=!1;break}o+=r}return o&&t.push(o),t}function oU(n){if(!n)return"";let e="";const t=P8(n,M8);if(t.every(i=>i===bD))e=".*";else{let i=!1;t.forEach((s,o)=>{if(s===bD){i||(e+=R8(2),i=!0);return}let r=!1,a="",l=!1,c="";for(const d of s){if(d!=="}"&&r){a+=d;continue}if(l&&(d!=="]"||!c)){let u;d==="-"?u=d:(d==="^"||d==="!")&&!c?u="^":d===M8?u="":u=_r(d),c+=u;continue}switch(d){case"{":r=!0;continue;case"[":l=!0;continue;case"}":{const h=`(?:${P8(a,",").map(f=>oU(f)).join("|")})`;e+=h,r=!1,a="";break}case"]":e+="["+c+"]",l=!1,c="";break;case"?":e+=jw;continue;case"*":e+=R8(1);continue;default:e+=_r(d)}}osO(a,e)).filter(a=>a!==El),n),i=t.length;if(!i)return El;if(i===1)return t[0];const s=function(a,l){for(let c=0,d=t.length;c!!a.allBasenames);o&&(s.allBasenames=o.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(s.allPaths=r),s}function V8(n,e,t){const i=yl===tn.sep,s=i?n:n.replace(wve,yl),o=yl+s,r=tn.sep+n,a=t?function(l,c){return typeof l=="string"&&(l===s||l.endsWith(o)||!i&&(l===n||l.endsWith(r)))?e:null}:function(l,c){return typeof l=="string"&&(l===s||!i&&l===n)?e:null};return a.allPaths=[(t?"*/":"./")+n],a}function Nve(n){try{const e=new RegExp(`^${oU(n)}$`);return function(t){return e.lastIndex=0,typeof t=="string"&&e.test(t)?n:null}}catch{return El}}function Tve(n,e,t){return!n||typeof e!="string"?!1:rU(n)(e,void 0,t)}function rU(n,e={}){if(!n)return F8;if(typeof n=="string"||Ave(n)){const t=sO(n,e);if(t===El)return F8;const i=function(s,o){return!!t(s,o)};return t.allBasenames&&(i.allBasenames=t.allBasenames),t.allPaths&&(i.allPaths=t.allPaths),i}return Mve(n,e)}function Ave(n){const e=n;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function Mve(n,e){const t=aU(Object.getOwnPropertyNames(n).map(a=>Rve(a,n[a],e)).filter(a=>a!==El)),i=t.length;if(!i)return El;if(!t.some(a=>!!a.requiresSiblings)){if(i===1)return t[0];const a=function(d,u){for(let h=0,f=t.length;h!!d.allBasenames);l&&(a.allBasenames=l.allBasenames);const c=t.reduce((d,u)=>u.allPaths?d.concat(u.allPaths):d,[]);return c.length&&(a.allPaths=c),a}const s=function(a,l,c){let d;for(let u=0,h=t.length;u!!a.allBasenames);o&&(s.allBasenames=o.allBasenames);const r=t.reduce((a,l)=>l.allPaths?a.concat(l.allPaths):a,[]);return r.length&&(s.allPaths=r),s}function Rve(n,e,t){if(e===!1)return El;const i=sO(n,t);if(i===El)return El;if(typeof e=="boolean")return i;if(e){const s=e.when;if(typeof s=="string"){const o=(r,a,l,c)=>{if(!c||!i(r,a))return null;const d=s.replace("$(basename)",l),u=c(d);return Ice(u)?u.then(h=>h?n:null):u?n:null};return o.requiresSiblings=!0,o}}return i}function aU(n,e){const t=n.filter(a=>!!a.basenames);if(t.length<2)return n;const i=t.reduce((a,l)=>{const c=l.basenames;return c?a.concat(c):a},[]);let s;if(e){s=[];for(let a=0,l=i.length;a{const c=l.patterns;return c?a.concat(c):a},[]);const o=function(a,l){if(typeof a!="string")return null;if(!l){let d;for(d=a.length;d>0;d--){const u=a.charCodeAt(d-1);if(u===47||u===92)break}l=a.substr(d)}const c=i.indexOf(l);return c!==-1?s[c]:null};o.basenames=i,o.patterns=s,o.allBasenames=i;const r=n.filter(a=>!a.basenames);return r.push(o),r}let Lp=[],oO=[],lU=[];function yC(n,e=!1){Pve(n,!1,e)}function Pve(n,e,t){const i=Ove(n,e);Lp.push(i),i.userConfigured?lU.push(i):oO.push(i),t&&!i.userConfigured&&Lp.forEach(s=>{s.mime===i.mime||s.userConfigured||(i.extension&&s.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&s.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&s.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&s.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))})}function Ove(n,e){return{id:n.id,mime:n.mime,filename:n.filename,extension:n.extension,filepattern:n.filepattern,firstline:n.firstline,userConfigured:e,filenameLowercase:n.filename?n.filename.toLowerCase():void 0,extensionLowercase:n.extension?n.extension.toLowerCase():void 0,filepatternLowercase:n.filepattern?rU(n.filepattern.toLowerCase()):void 0,filepatternOnPath:n.filepattern?n.filepattern.indexOf(tn.sep)>=0:!1}}function Fve(){Lp=Lp.filter(n=>n.userConfigured),oO=[]}function Bve(n,e){let t;if(n)switch(n.scheme){case mt.file:t=n.fsPath;break;case mt.data:{t=pu.parseMetaData(n).get(pu.META_DATA_LABEL);break}default:t=n.path}if(!t)return[ba.unknown];t=t.toLowerCase();const i=zh(t),s=W8(t,i,lU);if(s)return[s,ba.text];const o=W8(t,i,oO);if(o)return[o,ba.text];if(e){const r=Vve(e);if(r)return[r,ba.text]}return[ba.unknown]}function W8(n,e,t){var i;let s,o,r;for(let a=t.length-1;a>=0;a--){const l=t[a];if(e===l.filenameLowercase){s=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const c=l.filepatternOnPath?n:e;!((i=l.filepatternLowercase)===null||i===void 0)&&i.call(l,c)&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&e.endsWith(l.extensionLowercase)&&(r=l)}if(s)return s.mime;if(o)return o.mime;if(r)return r.mime}function Vve(n){if(qR(n)&&(n=n.substr(1)),n.length>0)for(let e=Lp.length-1;e>=0;e--){const t=Lp[e];if(!t.firstline)continue;const i=n.match(t.firstline);if(i&&i.length>0)return t.mime}}const SC=Object.prototype.hasOwnProperty,mT="vs.editor.nullLanguage";fn.register(mT,{});class Wve{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(mT,0),this._register(Kl,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||mT}}class e1 extends J{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,e1.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Wve,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(wp.onDidChangeLanguages(i=>{this._initializeFromRegistry()})))}dispose(){e1.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Fve();const e=[].concat(wp.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(t=>{const i=this._languages[t];i.name&&(this._nameMap[i.name]=i.identifier),i.aliases.forEach(s=>{this._lowercaseNameMap[s.toLowerCase()]=i.identifier}),i.mimetypes.forEach(s=>{this._mimeTypesMap[s]=i.identifier})}),on.as(og.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;SC.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let s=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),s=t.mimetypes[0]),s||(s=`text/x-${i}`,e.mimetypes.push(s)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let a of t.extensions)yC({id:i,mime:s,extension:a},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let a of t.filenames)yC({id:i,mime:s,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(let a of t.filenamePatterns)yC({id:i,mime:s,filepattern:a},this._warnOnOverwrite);if(typeof t.firstLine=="string"&&t.firstLine.length>0){let a=t.firstLine;a.charAt(0)!=="^"&&(a="^"+a);try{const l=new RegExp(a);Ale(l)||yC({id:i,mime:s,firstline:l},this._warnOnOverwrite)}catch(l){dt(l)}}e.aliases.push(i);let o=null;if(typeof t.aliases<"u"&&Array.isArray(t.aliases)&&(t.aliases.length===0?o=[null]:o=t.aliases),o!==null)for(const a of o)!a||a.length===0||e.aliases.push(a);const r=o!==null&&o.length>0;if(!(r&&o[0]===null)){const a=(r?o[0]:null)||i;(r||!e.name)&&(e.name=a)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return e?SC.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return SC.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&SC.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){if(!e&&!t)return[];const i=Bve(e,t);return Zf(i.map(s=>this.getLanguageIdByMimeType(s)))}}e1.instanceCount=0;class t1 extends J{constructor(e=!1){super(),this._onDidEncounterLanguage=this._register(new j),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new j({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,t1.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new e1(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){t1.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return QW(i,null)}createById(e){return new H8(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,t){return new H8(this.onDidChange,()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=Kl),this._encounteredLanguages.has(e)||(this._encounteredLanguages.add(e),Ri.getOrCreate(e),this._onDidEncounterLanguage.fire(e)),e}}t1.instanceCount=0;class H8{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new j({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){const e=this._selector();e!==this.languageId&&(this.languageId=e,this._emitter&&this._emitter.fire(this.languageId))}}function z8(n){let e=n.definition;for(;e instanceof p;)e=e.definition;return`.codicon-${n.id}:before { content: '${e.fontCharacter}'; }`}function rO(...n){return function(e,t){for(let i=0,s=n.length;i0?[{start:0,end:e.length}]:[]:null}function dU(n,e){const t=e.toLowerCase().indexOf(n.toLowerCase());return t===-1?null:[{start:t,end:t+n.length}]}function Hve(n,e){return pT(n.toLowerCase(),e.toLowerCase(),0,0)}function pT(n,e,t,i){if(t===n.length)return[];if(i===e.length)return null;if(n[t]===e[i]){let s=null;return(s=pT(n,e,t+1,i+1))?cO({start:i,end:i+1},s):null}return pT(n,e,t,i+1)}function aO(n){return 97<=n&&n<=122}function Ek(n){return 65<=n&&n<=90}function lO(n){return 48<=n&&n<=57}function uU(n){return n===32||n===9||n===10||n===13}const hU=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(n=>hU.add(n.charCodeAt(0)));function xS(n){return uU(n)||hU.has(n)}function zve(n,e){return n===e||xS(n)&&xS(e)}function fU(n){return aO(n)||Ek(n)||lO(n)}function cO(n,e){return e.length===0?e=[n]:n.end===e[0].start?e[0].start=n.start:e.unshift(n),e}function gU(n,e){for(let t=e;t0&&!fU(n.charCodeAt(t-1)))return t}return n.length}function _T(n,e,t,i){if(t===n.length)return[];if(i===e.length)return null;if(n[t]!==e[i].toLowerCase())return null;{let s=null,o=i+1;for(s=_T(n,e,t+1,i+1);!s&&(o=gU(e,o)).6}function jve(n){const{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:s}=n;return t>.2&&e<.8&&i>.6&&s<.2}function qve(n){let e=0,t=0,i=0,s=0;for(let o=0;o60)return null;const t=$ve(e);if(!jve(t)){if(!Uve(t))return null;e=e.toLowerCase()}let i=null,s=0;for(n=n.toLowerCase();s0&&xS(n.charCodeAt(t-1)))return t;return n.length}const Gve=rO(xk,mU,dU),Yve=rO(xk,mU,Hve),$8=new Vu(1e4);function U8(n,e,t=!1){if(typeof n!="string"||typeof e!="string")return null;let i=$8.get(n);i||(i=new RegExp(Nle(n),"i"),$8.set(n,i));const s=i.exec(e);return s?[{start:s.index,end:s.index+s[0].length}]:t?Yve(n,e):Gve(n,e)}function Zve(n,e,t,i,s,o){const r=Math.min(13,n.length);for(;t"u")return[];const e=[],t=n[1];for(let i=n.length-1;i>1;i--){const s=n[i]+t,o=e[e.length-1];o&&o.end===s?o.end=s+1:e.push({start:s,end:s+1})}return e}const Wd=128;function dO(){const n=[],e=[];for(let t=0;t<=Wd;t++)e[t]=0;for(let t=0;t<=Wd;t++)n.push(e.slice(0));return n}function _U(n){const e=[];for(let t=0;t<=n;t++)e[t]=0;return e}const bU=_U(2*Wd),vT=_U(2*Wd),ic=dO(),nh=dO(),LC=dO();function kC(n,e){if(e<0||e>=n.length)return!1;const t=n.codePointAt(e);switch(t){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!jR(t)}}function j8(n,e){if(e<0||e>=n.length)return!1;switch(n.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function qw(n,e,t){return e[n]!==t[n]}function Xve(n,e,t,i,s,o,r=!1){for(;eWd?Wd:n.length,l=i.length>Wd?Wd:i.length;if(t>=a||o>=l||a-t>l-o||!Xve(e,t,a,s,o,l,!0))return;Qve(a,l,t,o,e,s);let c=1,d=1,u=t,h=o;const f=[!1];for(c=1,u=t;uC,P=D?nh[c][d-1]+(ic[c][d-1]>0?-5:0):0,$=h>C+1&&ic[c][d-1]>0,z=$?nh[c][d-2]+(ic[c][d-2]>0?-5:0):0;if($&&(!D||z>=P)&&(!A||z>=E))nh[c][d]=z,LC[c][d]=3,ic[c][d]=0;else if(D&&(!A||P>=E))nh[c][d]=P,LC[c][d]=2,ic[c][d]=0;else if(A)nh[c][d]=E,LC[c][d]=1,ic[c][d]=ic[c-1][d-1]+1;else throw new Error("not possible")}}if(!f[0]&&!r)return;c--,d--;const g=[nh[c][d],o];let _=0,b=0;for(;c>=1;){let C=d;do{const y=LC[c][C];if(y===3)C=C-2;else if(y===2)C=C-1;else break}while(C>=1);_>1&&e[t+c-1]===s[o+d-1]&&!qw(C+o-1,i,s)&&_+1>ic[c][C]&&(C=d),C===d?_++:_=1,b||(b=C),c--,d=C-1,g.push(d)}l===a&&(g[0]+=2);const v=b-a;return g[0]-=v,g}function Qve(n,e,t,i,s,o){let r=n-1,a=e-1;for(;r>=t&&a>=i;)s[r]===o[a]&&(vT[r]=a,r--),a--}function Jve(n,e,t,i,s,o,r,a,l,c,d){if(e[t]!==o[r])return Number.MIN_SAFE_INTEGER;let u=1,h=!1;return r===t-i?u=n[t]===s[r]?7:5:qw(r,s,o)&&(r===0||!qw(r-1,s,o))?(u=n[t]===s[r]?7:5,h=!0):kC(o,r)&&(r===0||!kC(o,r-1))?u=5:(kC(o,r-1)||j8(o,r-1))&&(u=5,h=!0),u>1&&t===i&&(d[0]=!0),h||(h=qw(r,s,o)||kC(o,r-1)||j8(o,r-1)),t===i?r>l&&(u-=h?3:5):c?u+=h?2:0:u+=h?0:1,r+1===a&&(u-=h?3:5),u}function e1e(n,e,t,i,s,o,r){return t1e(n,e,t,i,s,o,!0,r)}function t1e(n,e,t,i,s,o,r,a){let l=kp(n,e,t,i,s,o,a);if(l&&!r)return l;if(n.length>=3){const c=Math.min(7,n.length-1);for(let d=t+1;dl[0])&&(l=h))}}}return l}function i1e(n,e){if(e+1>=n.length)return;const t=n[e],i=n[e+1];if(t!==i)return n.slice(0,e)+i+t+n.slice(e+2)}const Xb="$(",uO=new RegExp(`\\$\\(${Os.iconNameExpression}(?:${Os.iconModifierExpression})?\\)`,"g"),n1e=new RegExp(Os.iconNameCharacter),s1e=new RegExp(`(\\\\)?${uO.source}`,"g");function o1e(n){return n.replace(s1e,(e,t)=>t?e:`\\${e}`)}const r1e=new RegExp(`\\\\${uO.source}`,"g");function a1e(n){return n.replace(r1e,e=>`\\${e}`)}const l1e=new RegExp(`(\\s)?(\\\\)?${uO.source}(\\s)?`,"g");function hO(n){return n.indexOf(Xb)===-1?n:n.replace(l1e,(e,t,i,s)=>i?e:t||s||"")}function xC(n){const e=n.indexOf(Xb);return e===-1?{text:n}:c1e(n,e)}function c1e(n,e){const t=[];let i="";function s(h){if(h){i+=h;for(const f of h)t.push(a)}}let o=-1,r="",a=0,l,c,d=e;const u=n.length;for(s(n.substr(0,e));dthis.doGetActionViewItem(a,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...wt||Ds?[10]:[]],keyDown:!0}}),this.menuElement=s,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new ue),this.initializeOrUpdateStyleSheet(e,{}),this._register(Jt.addTarget(s)),de(s,Xe.KEY_DOWN,a=>{new Si(a).equals(2)&&a.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(de(s,Xe.KEY_DOWN,a=>{const l=a.key.toLocaleLowerCase();if(this.mnemonics.has(l)){Yt.stop(a,!0);const c=this.mnemonics.get(l);if(c.length===1&&(c[0]instanceof q8&&c[0].container&&this.focusItemByElement(c[0].container),c[0].onClick(a)),c.length>1){const d=c.shift();d&&d.container&&(this.focusItemByElement(d.container),c.push(d)),this.mnemonics.set(l,c)}}})),Ds&&this._register(de(s,Xe.KEY_DOWN,a=>{const l=new Si(a);l.equals(14)||l.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Yt.stop(a,!0)):(l.equals(13)||l.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Yt.stop(a,!0))})),this._register(de(this.domNode,Xe.MOUSE_OUT,a=>{let l=a.relatedTarget;Pc(l,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),a.stopPropagation())})),this._register(de(this.actionsList,Xe.MOUSE_OVER,a=>{let l=a.target;if(!(!l||!Pc(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}})),this._register(Jt.addTarget(this.actionsList)),this._register(de(this.actionsList,pi.Tap,a=>{let l=a.initialTarget;if(!(!l||!Pc(l,this.actionsList)||l===this.actionsList)){for(;l.parentElement!==this.actionsList&&l.parentElement!==null;)l=l.parentElement;if(l.classList.contains("action-item")){const c=this.focusedItem;this.setFocusedItem(l),c!==this.focusedItem&&this.updateFocus()}}}));let o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new i0(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this._register(de(s,pi.Change,a=>{Yt.stop(a,!0);const l=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:l-a.translationY})})),this._register(de(r,Xe.MOUSE_UP,a=>{a.preventDefault()})),s.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(a=>{var l;return!((l=i.submenuIds)===null||l===void 0)&&l.has(a.id)?(console.warn(`Found submenu cycle: ${a.id}`),!1):!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(a=>!(a instanceof wD)).forEach((a,l,c)=>{a.updatePositionInSet(l+1,c.length)})}initializeOrUpdateStyleSheet(e,t){this.styleSheet||(Tv(e)?this.styleSheet=Cr(e):(Kw.globalStyleSheet||(Kw.globalStyleSheet=Cr()),this.styleSheet=Kw.globalStyleSheet)),this.styleSheet.textContent=u1e(t,Tv(e))}style(e){const t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);const i=e.foregroundColor?`${e.foregroundColor}`:"",s=e.backgroundColor?`${e.backgroundColor}`:"",o=e.borderColor?`1px solid ${e.borderColor}`:"",r=e.shadowColor?`0 2px 4px ${e.shadowColor}`:"";t.style.border=o,this.domNode.style.color=i,this.domNode.style.backgroundColor=s,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach(a=>{(a instanceof wT||a instanceof wD)&&a.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register(de(this.element,Xe.MOUSE_UP,s=>{if(Yt.stop(s,!0),Yo){if(new dr(s).rightButton)return;this.onClick(s)}else setTimeout(()=>{this.onClick(s)},0)})),this._register(de(this.element,Xe.CONTEXT_MENU,s=>{Yt.stop(s,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=re(this.element,le("a.action-menu-item")),this._action.id===gr.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=re(this.item,le("span.menu-item-check"+p.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=re(this.item,le("span.action-label")),this.options.label&&this.options.keybinding&&(re(this.item,le("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){Sn(this.label);let e=hO(this.getAction().label);if(e){const t=d1e(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=CT.exec(e);if(i){e=BR(e),CD.lastIndex=0;let s=CD.exec(e);for(;s&&s[1];)s=CD.exec(e);const o=r=>r.replace(/&&/g,"&");s?this.label.append(VR(o(e.substr(0,s.index))," "),le("u",{"aria-hidden":"true"},s[3]),bH(o(e.substr(s.index+s[0].length))," ")):this.label.innerText=o(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.getAction().checked;this.item.classList.toggle("checked",!!e),e!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,s=e&&this.menuStyle.selectionBorderColor?`thin solid ${this.menuStyle.selectionBorderColor}`:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=s)}style(e){this.menuStyle=e,this.applyStyle()}}class q8 extends wT{constructor(e,t,i,s){super(e,e,s),this.submenuActions=t,this.parentData=i,this.submenuOptions=s,this.mysubmenu=null,this.submenuDisposables=this._register(new ue),this.mouseOver=!1,this.expandDirection=s&&s.expandDirection!==void 0?s.expandDirection:ES.Right,this.showScheduler=new ni(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new ni(()=>{this.element&&!Pc(Pm(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=re(this.item,le("span.submenu-indicator"+p.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(de(this.element,Xe.KEY_UP,t=>{let i=new Si(t);(i.equals(17)||i.equals(3))&&(Yt.stop(t,!0),this.createSubmenu(!0))})),this._register(de(this.element,Xe.KEY_DOWN,t=>{let i=new Si(t);Pm()===this.item&&(i.equals(17)||i.equals(3))&&Yt.stop(t,!0)})),this._register(de(this.element,Xe.MOUSE_OVER,t=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(de(this.element,Xe.MOUSE_LEAVE,t=>{this.mouseOver=!1})),this._register(de(this.element,Xe.FOCUS_OUT,t=>{this.element&&!Pc(Pm(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}updateEnabled(){}onClick(e){Yt.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,s){const o={top:0,left:0};return o.left=bm(e.width,t.width,{position:s===ES.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new Si(c).equals(15)&&(Yt.stop(c,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(de(this.submenuContainer,Xe.KEY_DOWN,c=>{new Si(c).equals(15)&&Yt.stop(c,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&((t=this.item)===null||t===void 0||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?`${t}`:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class wD extends Zv{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function d1e(n){const e=CT,t=e.exec(n);if(!t)return n;const i=!t[1];return n.replace(e,i?"$2$3":"").trim()}function u1e(n,e){let t=` +.monaco-menu { + font-size: 13px; + +} + +${z8(p.menuSelection)} +${z8(p.menuSubmenu)} + +.monaco-menu .monaco-action-bar { + text-align: right; + overflow: hidden; + white-space: nowrap; +} + +.monaco-menu .monaco-action-bar .actions-container { + display: flex; + margin: 0 auto; + padding: 0; + width: 100%; + justify-content: flex-end; +} + +.monaco-menu .monaco-action-bar.vertical .actions-container { + display: inline-block; +} + +.monaco-menu .monaco-action-bar.reverse .actions-container { + flex-direction: row-reverse; +} + +.monaco-menu .monaco-action-bar .action-item { + cursor: pointer; + display: inline-block; + transition: transform 50ms ease; + position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ +} + +.monaco-menu .monaco-action-bar .action-item.disabled { + cursor: default; +} + +.monaco-menu .monaco-action-bar.animated .action-item.active { + transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */ +} + +.monaco-menu .monaco-action-bar .action-item .icon, +.monaco-menu .monaco-action-bar .action-item .codicon { + display: inline-block; +} + +.monaco-menu .monaco-action-bar .action-item .codicon { + display: flex; + align-items: center; +} + +.monaco-menu .monaco-action-bar .action-label { + font-size: 11px; + margin-right: 4px; +} + +.monaco-menu .monaco-action-bar .action-item.disabled .action-label, +.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover { + opacity: 0.4; +} + +/* Vertical actions */ + +.monaco-menu .monaco-action-bar.vertical { + text-align: left; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + display: block; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + display: block; + border-bottom: 1px solid #bbb; + padding-top: 1px; + margin-left: .8em; + margin-right: .8em; +} + +.monaco-menu .secondary-actions .monaco-action-bar .action-label { + margin-left: 6px; +} + +/* Action Items */ +.monaco-menu .monaco-action-bar .action-item.select-container { + overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ + flex: 1; + max-width: 170px; + min-width: 60px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; +} + +.monaco-menu .monaco-action-bar.vertical { + margin-left: 0; + overflow: visible; +} + +.monaco-menu .monaco-action-bar.vertical .actions-container { + display: block; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + padding: 0; + transform: none; + display: flex; +} + +.monaco-menu .monaco-action-bar.vertical .action-item.active { + transform: none; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item { + flex: 1 1 auto; + display: flex; + height: 2em; + align-items: center; + position: relative; +} + +.monaco-menu .monaco-action-bar.vertical .action-label { + flex: 1 1 auto; + text-decoration: none; + padding: 0 1em; + background: none; + font-size: 12px; + line-height: 1; +} + +.monaco-menu .monaco-action-bar.vertical .keybinding, +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + display: inline-block; + flex: 2 1 auto; + padding: 0 1em; + text-align: right; + font-size: 12px; + line-height: 1; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon { + font-size: 16px !important; + display: flex; + align-items: center; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before { + margin-left: auto; + margin-right: -20px; +} + +.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, +.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { + opacity: 0.4; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { + display: inline-block; + box-sizing: border-box; + margin: 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + position: static; + overflow: visible; +} + +.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { + position: absolute; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + padding: 0.5em 0 0 0; + margin-bottom: 0.5em; + width: 100%; + height: 0px !important; + margin-left: .8em !important; + margin-right: .8em !important; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator.text { + padding: 0.7em 1em 0.1em 1em; + font-weight: bold; + opacity: 1; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:hover { + color: inherit; +} + +.monaco-menu .monaco-action-bar.vertical .menu-item-check { + position: absolute; + visibility: hidden; + width: 1em; + height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { + visibility: visible; + display: flex; + align-items: center; + justify-content: center; +} + +/* Context Menu */ + +.context-view.monaco-menu-container { + outline: 0; + border: none; + animation: fadeIn 0.083s linear; + -webkit-app-region: no-drag; +} + +.context-view.monaco-menu-container :focus, +.context-view.monaco-menu-container .monaco-action-bar.vertical:focus, +.context-view.monaco-menu-container .monaco-action-bar.vertical :focus { + outline: 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + border: thin solid transparent; /* prevents jumping behaviour on hover or focus */ +} + + +/* High Contrast Theming */ +:host-context(.hc-black) .context-view.monaco-menu-container { + box-shadow: none; +} + +:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused { + background: none; +} + +/* Vertical Action Bar Styles */ + +.monaco-menu .monaco-action-bar.vertical { + padding: .5em 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item { + height: 1.8em; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator), +.monaco-menu .monaco-action-bar.vertical .keybinding { + font-size: inherit; + padding: 0 2em; +} + +.monaco-menu .monaco-action-bar.vertical .menu-item-check { + font-size: inherit; + width: 2em; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + font-size: inherit; + padding: 0.2em 0 0 0; + margin-bottom: 0.2em; +} + +:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator { + margin-left: 0; + margin-right: 0; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + font-size: 60%; + padding: 0 1.8em; +} + +:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator { + height: 100%; + mask-size: 10px 10px; + -webkit-mask-size: 10px 10px; +} + +.monaco-menu .action-item { + cursor: default; +}`;if(e){t+=` + /* Arrows */ + .monaco-scrollable-element > .scrollbar > .scra { + cursor: pointer; + font-size: 11px !important; + } + + .monaco-scrollable-element > .visible { + opacity: 1; + + /* Background rule added for IE9 - to allow clicks on dom node */ + background:rgba(0,0,0,0); + + transition: opacity 100ms linear; + } + .monaco-scrollable-element > .invisible { + opacity: 0; + pointer-events: none; + } + .monaco-scrollable-element > .invisible.fade { + transition: opacity 800ms linear; + } + + /* Scrollable Content Inset Shadow */ + .monaco-scrollable-element > .shadow { + position: absolute; + display: none; + } + .monaco-scrollable-element > .shadow.top { + display: block; + top: 0; + left: 3px; + height: 3px; + width: 100%; + } + .monaco-scrollable-element > .shadow.left { + display: block; + top: 3px; + left: 0; + height: 100%; + width: 3px; + } + .monaco-scrollable-element > .shadow.top-left-corner { + display: block; + top: 0; + left: 0; + height: 3px; + width: 3px; + } + `;const i=n.scrollbarShadow;i&&(t+=` + .monaco-scrollable-element > .shadow.top { + box-shadow: ${i} 0 6px 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.left { + box-shadow: ${i} 6px 0 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.top.left { + box-shadow: ${i} 6px 6px 6px -6px inset; + } + `);const s=n.scrollbarSliderBackground;s&&(t+=` + .monaco-scrollable-element > .scrollbar > .slider { + background: ${s}; + } + `);const o=n.scrollbarSliderHoverBackground;o&&(t+=` + .monaco-scrollable-element > .scrollbar > .slider:hover { + background: ${o}; + } + `);const r=n.scrollbarSliderActiveBackground;r&&(t+=` + .monaco-scrollable-element > .scrollbar > .slider.active { + background: ${r}; + } + `)}return t}function fa(n,e){const t=Object.create(null);for(let i in e){const s=e[i];s&&(t[i]=lc(s,n))}return t}function fO(n,e,t){function i(){const s=fa(n.getColorTheme(),e);typeof t=="function"?t(s):t.style(s)}return i(),n.onDidColorThemeChange(i)}function h1e(n,e,t){return fO(e,{badgeBackground:(t==null?void 0:t.badgeBackground)||Pb,badgeForeground:(t==null?void 0:t.badgeForeground)||Ob,badgeBorder:Ii},n)}function Sf(n,e,t){return fO(e,Object.assign(Object.assign({},Ik),t||{}),n)}const Ik={listFocusBackground:Hhe,listFocusForeground:zhe,listFocusOutline:$he,listActiveSelectionBackground:eu,listActiveSelectionForeground:tu,listActiveSelectionIconForeground:Pw,listFocusAndSelectionBackground:eu,listFocusAndSelectionForeground:tu,listInactiveSelectionBackground:Uhe,listInactiveSelectionIconForeground:qhe,listInactiveSelectionForeground:jhe,listInactiveFocusBackground:Khe,listInactiveFocusOutline:Ghe,listHoverBackground:Yhe,listHoverForeground:Zhe,listDropBackground:Xhe,listSelectionOutline:Is,listHoverOutline:Is,listFilterWidgetBackground:Qhe,listFilterWidgetOutline:Jhe,listFilterWidgetNoMatchesOutline:efe,listMatchesShadow:gu,treeIndentGuidesStroke:tfe,tableColumnsBorder:ife,tableOddRowsBackgroundColor:nfe},f1e={shadowColor:gu,borderColor:sfe,foregroundColor:ofe,backgroundColor:rfe,selectionForegroundColor:afe,selectionBackgroundColor:lfe,selectionBorderColor:cfe,separatorColor:dfe,scrollbarShadow:c_,scrollbarSliderBackground:Fm,scrollbarSliderHoverBackground:Bm,scrollbarSliderActiveBackground:Vm};function g1e(n,e,t){return fO(e,Object.assign(Object.assign({},f1e),t),n)}class m1e{constructor(e,t,i,s,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=s,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let i,s=cz(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:o=>{let r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),this.options.blockMouse&&(this.block=o.appendChild(le(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",de(this.block,Xe.MOUSE_DOWN,c=>c.stopPropagation()));const a=new ue,l=e.actionRunner||new gp;return l.onBeforeRun(this.onActionRun,this,a),l.onDidRun(this.onDidActionRun,this,a),i=new vU(o,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:c=>this.keybindingService.lookupKeybinding(c.id)}),a.add(g1e(i,this.themeService)),i.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,a),i.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,a),a.add(de(window,Xe.BLUR,()=>this.contextViewService.hideContextView(!0))),a.add(de(window,Xe.MOUSE_DOWN,c=>{if(c.defaultPrevented)return;let d=new dr(c),u=d.target;if(!d.rightButton){for(;u;){if(u===o)return;u=u.parentElement}this.contextViewService.hideContextView(!0)}})),Mc(a,i)},focus:()=>{i&&i.focus(!!e.autoSelectFirstItem)},onHide:o=>{e.onHide&&e.onHide(!!o),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},s,!!s)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!Ul(e.error)&&this.notificationService.error(e.error)}}var p1e=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Y_=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let yT=class extends J{constructor(e,t,i,s,o){super(),this._onDidShowContextMenu=new j,this._onDidHideContextMenu=new j,this.contextMenuHandler=new m1e(i,e,t,s,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{e.onHide&&e.onHide(t),this._onDidHideContextMenu.fire()}})),Nh.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};yT=p1e([Y_(0,jl),Y_(1,rn),Y_(2,s0),Y_(3,Ui),Y_(4,ki)],yT);function ST(n){let e=JSON.parse(n);return e=LT(e),e}function LT(n,e=0){if(!n||e>200)return n;if(typeof n=="object"){switch(n.$mid){case 1:return et.revive(n);case 2:return new RegExp(n.source,n.flags);case 14:return new Date(n.source)}if(n instanceof HL||n instanceof Uint8Array)return n;if(Array.isArray(n))for(let t=0;tCU(n,t))}function b1e(n){let e;const t=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(n.fragment);return t&&(e={startLineNumber:parseInt(t[1]),startColumn:t[2]?parseInt(t[2]):1,endLineNumber:t[4]?parseInt(t[4]):void 0,endColumn:t[4]?t[5]?parseInt(t[5]):1:void 0},n=n.with({fragment:""})),{selection:e,uri:n}}var gO=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},IS=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},yh=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};let kT=class{constructor(e){this._commandService=e}open(e,t){return yh(this,void 0,void 0,function*(){if(!CU(e,mt.command))return!1;if(!(t!=null&&t.allowCommands))return!0;typeof e=="string"&&(e=et.parse(e));let i=[];try{i=ST(decodeURIComponent(e.query))}catch{try{i=ST(e.query)}catch{}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0})}};kT=gO([IS(0,sn)],kT);let xT=class{constructor(e){this._editorService=e}open(e,t){return yh(this,void 0,void 0,function*(){typeof e=="string"&&(e=et.parse(e));const{selection:i,uri:s}=b1e(e);return e=s,e.scheme===mt.file&&(e=e_e(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:t!=null&&t.fromUserGesture?DS.USER:DS.API},t==null?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide),!0})}};xT=gO([IS(0,Zt)],xT);let ET=class{constructor(e,t){this._openers=new zo,this._validators=new zo,this._resolvers=new zo,this._resolvedUriTargets=new Fs(i=>i.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new zo,this._defaultExternalOpener={openExternal:i=>yh(this,void 0,void 0,function*(){return G8(i,mt.http,mt.https)?uz(i):window.location.href=i,!0})},this._openers.push({open:(i,s)=>yh(this,void 0,void 0,function*(){return s!=null&&s.openExternal||G8(i,mt.mailto,mt.http,mt.https,mt.vsls)?(yield this._doOpenExternal(i,s),!0):!1})}),this._openers.push(new kT(t)),this._openers.push(new xT(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return yh(this,void 0,void 0,function*(){const s=typeof e=="string"?et.parse(e):e,o=(i=this._resolvedUriTargets.get(s))!==null&&i!==void 0?i:e;for(const r of this._validators)if(!(yield r.shouldOpen(o)))return!1;for(const r of this._openers)if(yield r.open(e,t))return!0;return!1})}resolveExternalUri(e,t){return yh(this,void 0,void 0,function*(){for(const i of this._resolvers)try{const s=yield i.resolveExternalUri(e,t);if(s)return this._resolvedUriTargets.has(s.resolved)||this._resolvedUriTargets.set(s.resolved,e),s}catch{}throw new Error("Could not resolve external URI: "+e.toString())})}_doOpenExternal(e,t){return yh(this,void 0,void 0,function*(){const i=typeof e=="string"?et.parse(e):e;let s;try{s=(yield this.resolveExternalUri(i,t)).resolved}catch{s=i}let o;if(typeof e=="string"&&i.toString()===s.toString()?o=e:o=encodeURI(s.toString(!0)),t!=null&&t.allowContributedOpeners){const r=typeof(t==null?void 0:t.allowContributedOpeners)=="string"?t==null?void 0:t.allowContributedOpeners:void 0;for(const a of this._externalOpeners)if(yield a.openExternal(o,{sourceUri:i,preferredOpenerId:r},xt.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},xt.None)})}dispose(){this._validators.clear()}};ET=gO([IS(0,Zt),IS(1,sn)],ET);var Pi;(function(n){n[n.Hint=1]="Hint",n[n.Info=2]="Info",n[n.Warning=4]="Warning",n[n.Error=8]="Error"})(Pi||(Pi={}));(function(n){function e(r,a){return a-r}n.compare=e;const t=Object.create(null);t[n.Error]=m("sev.error","Error"),t[n.Warning]=m("sev.warning","Warning"),t[n.Info]=m("sev.info","Info");function i(r){return t[r]||""}n.toString=i;function s(r){switch(r){case Mi.Error:return n.Error;case Mi.Warning:return n.Warning;case Mi.Info:return n.Info;case Mi.Ignore:return n.Hint}}n.fromSeverity=s;function o(r){switch(r){case n.Error:return Mi.Error;case n.Warning:return Mi.Warning;case n.Info:return Mi.Info;case n.Hint:return Mi.Ignore}}n.toSeverity=o})(Pi||(Pi={}));var NS;(function(n){const e="";function t(s){return i(s,!0)}n.makeKey=t;function i(s,o){let r=[e];return s.source?r.push(s.source.replace("¦","\\¦")):r.push(e),s.code?typeof s.code=="string"?r.push(s.code.replace("¦","\\¦")):r.push(s.code.value.replace("¦","\\¦")):r.push(e),s.severity!==void 0&&s.severity!==null?r.push(Pi.toString(s.severity)):r.push(e),s.message&&o?r.push(s.message.replace("¦","\\¦")):r.push(e),s.startLineNumber!==void 0&&s.startLineNumber!==null?r.push(s.startLineNumber.toString()):r.push(e),s.startColumn!==void 0&&s.startColumn!==null?r.push(s.startColumn.toString()):r.push(e),s.endLineNumber!==void 0&&s.endLineNumber!==null?r.push(s.endLineNumber.toString()):r.push(e),s.endColumn!==void 0&&s.endColumn!==null?r.push(s.endColumn.toString()):r.push(e),r.push(e),r.join("¦")}n.makeKeyOptionalMessage=i})(NS||(NS={}));const ed=At("markerService");var v1e=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Y8=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};class C1e extends J{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(vt(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const s=this.model.deltaDecorations(i,t);for(let o=0;othis._onModelAdded(i)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach(t=>{const i=this._markerDecorations.get(t);i&&this._updateDecorations(i)})}_onModelAdded(e){const t=new C1e(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===mt.inMemory||e.uri.scheme===mt.internal||e.uri.scheme===mt.vscode)&&this._markerService&&this._markerService.read({resource:e.uri}).map(i=>i.owner).forEach(i=>this._markerService.remove(i,[e.uri]))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(s=>({range:this._createDecorationRange(e.model,s),options:this._createDecorationOption(s)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=T.lift(t);if(t.severity===Pi.Hint&&!this._hasMarkerTag(t,1)&&!this._hasMarkerTag(t,2)&&(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const s=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(s===1||i.endColumn>=s)return i;const o=e.getWordAtPosition(i.getStartPosition());o&&(i=new T(i.startLineNumber,o.startColumn,i.endLineNumber,o.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&t.startColumn===1&&i.startLineNumber===i.endLineNumber){let s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s=0:!1}};DT=v1e([Y8(0,Fi),Y8(1,ed)],DT);class Qb{constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(e,t){return new Qb(e,new TS(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e&&new T(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[s,o,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new Qb(this._startLineNumber,s),new Qb(this._startLineNumber+r,o)]}applyEdit(e,t){const[i,s,o]=wf(t);this.acceptEdit(e,i,s,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,o){this._acceptDeleteRange(e),this._acceptInsertText(new Z(e.startLineNumber,e.startColumn),t,i,s,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const o=i-t;this._startLineNumber-=o;return}const s=this._tokens.getMaxDeltaLine();if(!(t>=s+1)){if(t<0&&i>=s+1){this._startLineNumber=0,this._tokens.clear();return}if(t<0){const o=-t;this._startLineNumber-=o,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,s,o){if(t===0&&i===0)return;const r=e.lineNumber-this._startLineNumber;if(r<0){this._startLineNumber+=t;return}const a=this._tokens.getMaxDeltaLine();r>=a+1||this._tokens.acceptInsertText(r,e.column-1,t,i,s,o)}}class TS{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)i=s-1;else{let r=s;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let a=s;for(;ae||h===e&&g>=t)&&(he||g===e&&b>=t){if(go?_-=o-i:_=i;else if(f===t&&g===i)if(f===s&&_>o)_-=o-i;else{d=!0;continue}else if(fo)f===t?(g=i,_=g+(_-o)):(g=0,_=g+(_-o));else{d=!0;continue}else if(f>s){if(l===0&&!d){c=a;break}f-=l}else if(f===s&&g>=o)e&&f===0&&(g+=e,_+=e),f-=l,g-=o-i,_-=o-i;else throw new Error("Not possible!");const v=4*c;r[v]=f,r[v+1]=g,r[v+2]=_,r[v+3]=b,c++}this._tokenCount=c}acceptInsertText(e,t,i,s,o,r){const a=i===0&&s===1&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),l=this._tokens,c=this._tokenCount;for(let d=0;d=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},yD=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let IT=class{constructor(e,t,i,s){this._legend=e,this._themeService=t,this._languageService=i,this._logService=s,this._hashTable=new bc,this._hasWarnedOverlappingTokens=!1}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),o=this._hashTable.get(e,t,s);let r;if(o)r=o.metadata,this._logService.getLevel()===wa.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${ms.getForeground(r)}, fontStyle ${ms.getFontStyle(r).toString(2)}`);else{let a=this._legend.tokenTypes[e];const l=[];if(a){let c=t;for(let u=0;c>0&&u>1;c>0&&this._logService.getLevel()===wa.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const d=this._themeService.getColorTheme().getTokenStyleMetadata(a,l,i);if(typeof d>"u")r=2147483647;else{if(r=0,typeof d.italic<"u"){const u=(d.italic?1:0)<<10;r|=u|1}if(typeof d.bold<"u"){const u=(d.bold?2:0)<<10;r|=u|2}if(typeof d.underline<"u"){const u=(d.underline?4:0)<<10;r|=u|4}if(typeof d.strikethrough<"u"){const u=(d.strikethrough?8:0)<<10;r|=u|8}if(d.foreground){const u=d.foreground<<14;r|=u|16}r===0&&(r=2147483647)}}else this._logService.getLevel()===wa.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,a="not-in-legend";this._hashTable.add(e,t,s,r),this._logService.getLevel()===wa.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${a}) / ${t} (${l.join(" ")}): foreground ${ms.getForeground(r)}, fontStyle ${ms.getFontStyle(r).toString(2)}`)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}};IT=w1e([yD(1,ki),yD(2,Oi),yD(3,na)],IT);function wU(n,e,t){const i=n.data,s=n.data.length/5|0,o=Math.max(Math.ceil(s/1024),400),r=[];let a=0,l=1,c=0;for(;ad&&i[5*y]===0;)y--;if(y-1===d){let S=u;for(;S+1E&&(e.warnOverlappingSemanticTokens(A,E+1),b=this._growCount){const o=this._elements;this._currentLengthIndex++,this._currentLength=bc._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10?t[0]:[]}function kU(n,e,t,i,s){return Cu(this,void 0,void 0,function*(){const o=E1e(n,e),r=yield Promise.all(o.map(a=>Cu(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?i:null,s)}catch(d){c=d,l=null}return(!l||!Nk(l)&&!SU(l))&&(l=null),new x1e(a,l,c)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null})}function D1e(n,e){const t=n.orderedGroups(e);return t.length>0?t[0]:null}class I1e{constructor(e,t){this.provider=e,this.tokens=t}}function N1e(n,e){return n.has(e)}function xU(n,e){const t=n.orderedGroups(e);return t.length>0?t[0]:[]}function mO(n,e,t,i){return Cu(this,void 0,void 0,function*(){const s=xU(n,e),o=yield Promise.all(s.map(r=>Cu(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){On(l),a=null}return(!a||!Nk(a))&&(a=null),new I1e(r,a)})));for(const r of o)if(r.tokens)return r;return o.length>0?o[0]:null})}Ot.registerCommand("_provideDocumentSemanticTokensLegend",(n,...e)=>Cu(void 0,void 0,void 0,function*(){const[t]=e;ri(t instanceof et);const i=n.get(Fi).getModel(t);if(!i)return;const{documentSemanticTokensProvider:s}=n.get(He),o=D1e(s,i);return o?o[0].getLegend():n.get(sn).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Ot.registerCommand("_provideDocumentSemanticTokens",(n,...e)=>Cu(void 0,void 0,void 0,function*(){const[t]=e;ri(t instanceof et);const i=n.get(Fi).getModel(t);if(!i)return;const{documentSemanticTokensProvider:s}=n.get(He);if(!LU(s,i))return n.get(sn).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const o=yield kU(s,i,null,null,xt.None);if(!o)return;const{provider:r,tokens:a}=o;if(!a||!Nk(a))return;const l=yU({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l}));Ot.registerCommand("_provideDocumentRangeSemanticTokensLegend",(n,...e)=>Cu(void 0,void 0,void 0,function*(){const[t,i]=e;ri(t instanceof et);const s=n.get(Fi).getModel(t);if(!s)return;const{documentRangeSemanticTokensProvider:o}=n.get(He),r=xU(o,s);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!T.isIRange(i))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),r[0].getLegend();const a=yield mO(o,s,T.lift(i),xt.None);if(a)return a.provider.getLegend()}));Ot.registerCommand("_provideDocumentRangeSemanticTokens",(n,...e)=>Cu(void 0,void 0,void 0,function*(){const[t,i]=e;ri(t instanceof et),ri(T.isIRange(i));const s=n.get(Fi).getModel(t);if(!s)return;const{documentRangeSemanticTokensProvider:o}=n.get(He),r=yield mO(o,s,T.lift(i),xt.None);if(!(!r||!r.tokens))return yU({id:0,type:"full",data:r.tokens.data})}));var pO=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Rs=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};function _d(n){return n.toString()}function X8(n){const e=new qL,t=n.createSnapshot();let i;for(;i=t.read();)e.update(i);return e.digest()}class T1e{constructor(e,t,i){this._modelEventListeners=new ue,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(s=>i(e,s)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageId)),this.model.setMode(e.languageId)}}const A1e=Ds||wt?1:2;class M1e{constructor(e,t,i,s,o,r,a,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=o,this.sha1=r,this.versionId=a,this.alternativeVersionId=l}}let AS=class pb extends J{constructor(e,t,i,s,o,r,a,l,c){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=s,this._undoRedoService=o,this._languageService=r,this._languageConfigurationService=a,this._languageFeatureDebounceService=l,this._onModelAdded=this._register(new j),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new j),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new j),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new R1e(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new TT(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,c))}static _readModelOptions(e,t){var i;let s=ks.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){const f=parseInt(e.editor.tabSize,10);isNaN(f)||(s=f),s<1&&(s=1)}let o=s;if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){const f=parseInt(e.editor.indentSize,10);isNaN(f)||(o=f),o<1&&(o=1)}let r=ks.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(r=e.editor.insertSpaces==="false"?!1:!!e.editor.insertSpaces);let a=A1e;const l=e.eol;l===`\r +`?a=2:l===` +`&&(a=1);let c=ks.trimAutoWhitespace;e.editor&&typeof e.editor.trimAutoWhitespace<"u"&&(c=e.editor.trimAutoWhitespace==="false"?!1:!!e.editor.trimAutoWhitespace);let d=ks.detectIndentation;e.editor&&typeof e.editor.detectIndentation<"u"&&(d=e.editor.detectIndentation==="false"?!1:!!e.editor.detectIndentation);let u=ks.largeFileOptimizations;e.editor&&typeof e.editor.largeFileOptimizations<"u"&&(u=e.editor.largeFileOptimizations==="false"?!1:!!e.editor.largeFileOptimizations);let h=ks.bracketPairColorizationOptions;return!((i=e.editor)===null||i===void 0)&&i.bracketPairColorization&&typeof e.editor.bracketPairColorization=="object"&&(h={enabled:!!e.editor.bracketPairColorization.enabled}),{isForSimpleWidget:t,tabSize:s,indentSize:o,insertSpaces:r,detectIndentation:d,defaultEOL:a,trimAutoWhitespace:c,largeFileOptimizations:u,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&typeof i=="string"&&i!=="auto"?i:or===3||or===2?` +`:`\r +`}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,t,i){let s=this._modelCreationOptionsByLanguageAndResource[e+t];if(!s){const o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._getEOL(t,e);s=pb._readModelOptions({editor:o,eol:r},i),this._modelCreationOptionsByLanguageAndResource[e+t]=s}return s}_updateModelOptions(){const e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const t=Object.keys(this._models);for(let i=0,s=t.length;ie){const t=[];for(this._disposedModels.forEach(i=>{i.sharesUndoRedoStack||t.push(i)}),t.sort((i,s)=>i.time-s.time);t.length>0&&this._disposedModelsHeapSize>e;){const i=t.shift();this._removeDisposedModel(i.uri),i.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(i.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){const o=this.getCreationOptions(t,i,s),r=new Uc(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(_d(i))){const c=this._removeDisposedModel(i),d=this._undoRedoService.getElements(i),u=X8(r)===c.sha1;if(u||c.sharesUndoRedoStack){for(const h of d.past)pc(h)&&h.matchesResource(i)&&h.setModel(r);for(const h of d.future)pc(h)&&h.matchesResource(i)&&h.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,h=>pc(h)&&h.matchesResource(i)),u&&(r._overwriteVersionId(c.versionId),r._overwriteAlternativeVersionId(c.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(c.initialUndoRedoSnapshot))}else c.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(c.initialUndoRedoSnapshot)}const a=_d(r.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const l=new T1e(r,c=>this._onWillDispose(c),(c,d)=>this._onDidChangeLanguage(c,d));return this._models[a]=l,l}createModel(e,t,i,s=!1){let o;return t?(o=this._createModelData(e,t.languageId,i,s),this.setMode(o.model,t)):o=this._createModelData(e,Kl,i,s),this._onModelAdded.fire(o.model),o.model}setMode(e,t){if(!t)return;const i=this._models[_d(e.uri)];i&&i.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i0||l.future.length>0){for(const c of l.past)pc(c)&&c.matchesResource(e.uri)&&(o=!0,r+=c.heapSize(e.uri),c.setModel(e.uri));for(const c of l.future)pc(c)&&c.matchesResource(e.uri)&&(o=!0,r+=c.heapSize(e.uri),c.setModel(e.uri))}}const a=pb.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(o)if(!s&&r>a){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,l=>pc(l)&&l.matchesResource(e.uri)),this._insertDisposedModel(new M1e(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),s,r,X8(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!s){const l=i.model.getInitialUndoRedoSnapshot();l!==null&&this._undoRedoService.restoreSnapshot(l)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,s=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(s,e.uri,e.isForSimpleWidget);pb._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}};AS.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;AS=pO([Rs(0,li),Rs(1,jH),Rs(2,ki),Rs(3,na),Rs(4,wk),Rs(5,Oi),Rs(6,ws),Rs(7,Dr),Rs(8,He)],AS);const _O="editor.semanticHighlighting";function NT(n,e,t){var i;const s=(i=t.getValue(_O,{overrideIdentifier:n.getLanguageId(),resource:n.uri}))===null||i===void 0?void 0:i.enabled;return typeof s=="boolean"?s:e.getColorTheme().semanticHighlighting}let TT=class extends J{constructor(e,t,i,s,o,r){super(),this._watchers=Object.create(null),this._semanticStyling=e;const a=d=>{this._watchers[d.uri.toString()]=new i1(d,this._semanticStyling,i,o,r)},l=(d,u)=>{u.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(let d of t.getModels()){const u=this._watchers[d.uri.toString()];NT(d,i,s)?u||a(d):u&&l(d,u)}};this._register(t.onModelAdded(d=>{NT(d,i,s)&&a(d)})),this._register(t.onModelRemoved(d=>{const u=this._watchers[d.uri.toString()];u&&l(d,u)})),this._register(s.onDidChangeConfiguration(d=>{d.affectsConfiguration(_O)&&c()})),this._register(i.onDidColorThemeChange(c))}};TT=pO([Rs(1,Fi),Rs(2,ki),Rs(3,li),Rs(4,Dr),Rs(5,He)],TT);class R1e extends J{constructor(e,t,i){super(),this._themeService=e,this._languageService=t,this._logService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new IT(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}}class P1e{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let i1=class hh extends J{constructor(e,t,i,s,o){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=t,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentSemanticTokens",{min:hh.REQUEST_MIN_DELAY,max:hh.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new ni(()=>this._fetchDocumentSemanticTokensNow(),hh.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const r=()=>{Pt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};r(),this._register(this._provider.onDidChange(()=>{r(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(i.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!LU(this._provider,this._model)){this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1);return}const e=new is,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,s=kU(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e;const o=[],r=this._model.onDidChangeContent(l=>{o.push(l)}),a=new so(!1);s.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{const{provider:c,tokens:d}=l,u=this._semanticStyling.get(c);this._setDocumentSemanticTokens(c,d||null,u,o)}},l=>{l&&(Ul(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||dt(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),o.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,s,o){for(let r=0;r{s.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!i){this._model.setSemanticTokens(null,!1);return}if(!t){this._model.setSemanticTokens(null,!0),r();return}if(SU(t)){if(!o){this._model.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(const h of t.edits)a+=(h.data?h.data.length:0)-h.deleteCount;const l=o.data,c=new Uint32Array(l.length+a);let d=l.length,u=c.length;for(let h=t.edits.length-1;h>=0;h--){const f=t.edits[h],g=d-(f.start+f.deleteCount);g>0&&(hh._copy(l,d-g,c,u-g,g),u-=g),f.data&&(hh._copy(f.data,0,c,u-f.data.length,f.data.length),u-=f.data.length),d=f.start}d>0&&hh._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(Nk(t)){this._currentDocumentResponse=new P1e(e,t.resultId,t.data);const a=wU(t,i,this._model.getLanguageId());if(s.length>0)for(const l of s)for(const c of a)for(const d of l.changes)c.applyEdit(d.range,d.text);this._model.setSemanticTokens(a,!0)}else this._model.setSemanticTokens(null,!0);r()}};i1.REQUEST_MIN_DELAY=300;i1.REQUEST_MAX_DELAY=2e3;i1=pO([Rs(2,ki),Rs(3,Dr),Rs(4,He)],i1);const O1e=new RegExp(`(\\\\)?\\$\\((${Os.iconNameExpression}(?:${Os.iconModifierExpression})?)\\)`,"g");function Jh(n){const e=new Array;let t,i=0,s=0;for(;(t=O1e.exec(n))!==null;){s=t.index||0,e.push(n.substring(i,s)),i=(t.index||0)+t[0].length;const[,o,r]=t;e.push(o?`$(${r})`:F1e({id:r}))}return i{this._register(de(this._element,i,s=>{if(!this.enabled){Yt.stop(s);return}this._onDidClick.fire(s)}))}),this._register(de(this._element,Xe.KEY_DOWN,i=>{const s=new Si(i);let o=!1;this.enabled&&(s.equals(3)||s.equals(10))?(this._onDidClick.fire(i),o=!0):s.equals(9)&&(this._element.blur(),o=!0),o&&Yt.stop(s,!0)})),this._register(de(this._element,Xe.MOUSE_OVER,i=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(de(this._element,Xe.MOUSE_OUT,i=>{this.applyStyles()})),this.focusTracker=this._register(fp(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;this.options.secondary?e=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?uu(this._element,...Jh(e)):this._element.textContent=e,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}};const V1e={badgeBackground:X.fromHex("#4D4D4D"),badgeForeground:X.fromHex("#FFFFFF")};class AT{constructor(e,t){this.count=0,this.options=t||Object.create(null),$l(this.options,V1e,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=re(e,le(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=cr(this.countFormat,this.count),this.element.title=cr(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}const J8="done",e9="active",SD="infinite",LD="infinite-long-running",t9="discrete",W1e={progressBarBackground:X.fromHex("#0E70C0")};class Tk extends J{constructor(e,t){super(),this.options=t||Object.create(null),$l(this.options,W1e,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new ni(()=>Bo(this.element),0)),this.longRunningScheduler=this._register(new ni(()=>this.infiniteLongRunning(),Tk.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(e9,SD,LD,t9),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(J8),this.element.classList.contains(SD)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(t9,J8,LD),this.element.classList.add(e9,SD),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(LD)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}Tk.LONG_RUNNING_INFINITE_THRESHOLD=1e4;class bO{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const EU=new bO("id#");const kD={},H1e=new bO("quick-input-button-icon-");function MT(n){if(!n)return;let e;const t=n.dark.toString();return kD[t]?e=kD[t]:(e=H1e.nextId(),IN(`.${e}`,`background-image: ${gf(n.light||n.dark)}`),IN(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${gf(n.dark)}`),kD[t]=e),e}const z1e={ctrlCmd:!1,alt:!1};var n1;(function(n){n[n.Blur=1]="Blur",n[n.Gesture=2]="Gesture",n[n.Other=3]="Other"})(n1||(n1={}));var ha;(function(n){n[n.NONE=0]="NONE",n[n.FIRST=1]="FIRST",n[n.SECOND=2]="SECOND",n[n.LAST=3]="LAST"})(ha||(ha={}));function $1e(n,e={}){const t=vO(e);return t.textContent=n,t}function DU(n,e={}){const t=vO(e);return IU(t,j1e(n,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),t}function vO(n){const e=n.inline?"span":"div",t=document.createElement(e);return n.className&&(t.className=n.className),t}class U1e{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function IU(n,e,t,i){let s;if(e.type===2)s=document.createTextNode(e.content||"");else if(e.type===3)s=document.createElement("b");else if(e.type===4)s=document.createElement("i");else if(e.type===7&&i)s=document.createElement("code");else if(e.type===5&&t){const o=document.createElement("a");t.disposables.add(jn(o,"click",r=>{t.callback(String(e.index),r)})),s=o}else e.type===8?s=document.createElement("br"):e.type===1&&(s=n);s&&n!==s&&n.appendChild(s),s&&Array.isArray(e.children)&&e.children.forEach(o=>{IU(s,o,t,i)})}function j1e(n,e){const t={type:1,children:[]};let i=0,s=t;const o=[],r=new U1e(n);for(;!r.eos();){let a=r.next();const l=a==="\\"&&RT(r.peek(),e)!==0;if(l&&(a=r.next()),!l&&q1e(a,e)&&a===r.peek()){r.advance(),s.type===2&&(s=o.pop());const c=RT(a,e);if(s.type===c||s.type===5&&c===6)s=o.pop();else{const d={type:c,children:[]};c===5&&(d.index=i,i++),s.children.push(d),o.push(s),s=d}}else if(a===` +`)s.type===2&&(s=o.pop()),s.children.push({type:8});else if(s.type!==2){const c={type:2,content:a};s.children.push(c),o.push(s),s=c}else s.content+=a}return s.type===2&&(s=o.pop()),t}function q1e(n,e){return RT(n,e)!==0}function RT(n,e){switch(n){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}class K1e{constructor(e,t=0,i=e.length,s=t-1){this.items=e,this.start=t,this.end=i,this.index=s}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class G1e{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new K1e(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}const Z_=le,Y1e={inputBackground:X.fromHex("#3C3C3C"),inputForeground:X.fromHex("#CCCCCC"),inputValidationInfoBorder:X.fromHex("#55AAFF"),inputValidationInfoBackground:X.fromHex("#063B49"),inputValidationWarningBorder:X.fromHex("#B89500"),inputValidationWarningBackground:X.fromHex("#352A05"),inputValidationErrorBorder:X.fromHex("#BE1100"),inputValidationErrorBackground:X.fromHex("#5A1D1D")};class NU extends sa{constructor(e,t,i){var s;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new j),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new j),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),$l(this.options,Y1e,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(s=this.options.tooltip)!==null&&s!==void 0?s:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=re(e,Z_(".monaco-inputbox.idle"));let o=this.options.flexibleHeight?"textarea":"input",r=re(this.element,Z_(".ibwrapper"));if(this.input=re(r,Z_(o+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=re(r,Z_("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new u$(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),re(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(c=>this.input.scrollTop=c.scrollTop));const a=this._register(new ti(document,"selectionchange")),l=je.filter(a.event,()=>{const c=document.getSelection();return(c==null?void 0:c.anchorNode)===r});this._register(l(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new Fl(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:DN(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return Vr(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const i=parseFloat(this.mirror.style.paddingLeft||"")||0,s=parseFloat(this.mirror.style.paddingRight||"")||0;t=i+s}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e==null?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t=()=>e.style.width=Vr(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:s=>{if(!this.message)return null;e=re(s,Z_(".monaco-inputbox-container")),t();const o={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?DU(this.message.content,o):$1e(this.message.content,o);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",re(e,r),null},onHide:()=>{this.state="closed"},layout:t});let i;this.message.type===3?i=m("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?i=m("alertWarningMessage","Warning: {0}",this.message.content):i=m("alertInfoMessage","Info: {0}",this.message.content),Jn(i),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,i=e.charCodeAt(e.length-1)===10?" ":"";(e+i).replace(/\u000c/g,"")?this.mirror.textContent=e+i:this.mirror.innerText=" ",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=DN(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,s=t.selectionEnd,o=t.value;i!==null&&s!==null&&(this.value=o.substr(0,i)+e+o.substr(s),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class TU extends NU{constructor(e,t,i){const s=m({key:"history.inputbox.hint",comment:["Text will be prefixed with ⇅ plus a single space, then used as a hint where input field keeps history"]},"for history"),o=` or ⇅ ${s}`,r=` (⇅ ${s})`;super(e,t,i),this.history=new G1e(i.history,100);const a=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const l=this.placeholder.endsWith(")")?o:r,c=this.placeholder+l;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=c:this.setPlaceHolder(c)}};this.observer=new MutationObserver((l,c)=>{l.forEach(d=>{d.target.textContent||a()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>a()),this.onblur(this.input,()=>{const l=c=>{if(this.placeholder.endsWith(c)){const d=this.placeholder.slice(0,this.placeholder.length-c.length);return i.showPlaceholderOnFocus?this.placeholder=d:this.setPlaceHolder(d),!0}else return!1};l(r)||l(o)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,Uy(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,Uy(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}const Z1e=le;class X1e extends J{constructor(e){super(),this.parent=e,this.onKeyDown=t=>de(this.inputBox.inputElement,Xe.KEY_DOWN,i=>{t(new Si(i))}),this.onMouseDown=t=>de(this.inputBox.inputElement,Xe.MOUSE_DOWN,i=>{t(new dr(i))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=re(this.parent,Z1e(".quick-input-box")),this.inputBox=this._register(new NU(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return this.inputBox.inputElement.type==="password"}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Mi.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Mi.Info?1:e===Mi.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Mi.Info?1:e===Mi.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}class Lf{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(i=t==null?void 0:t.supportIcons)!==null&&i!==void 0?i:!1,this.domNode=re(e,le("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){e||(e=""),s&&(e=Lf.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&hr(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{s=o===`\r +`?-1:0,r+=i;for(const a of t)a.end<=r||(a.start>=r&&(a.start+=s),a.end>=r&&(a.end+=s));return i+=s,"⏎"})}}class Wo{constructor(e="",t=!1){var i,s,o;if(this.value=e,typeof this.value!="string")throw Ea("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(i=t.isTrusted)!==null&&i!==void 0?i:void 0,this.supportThemeIcons=(s=t.supportThemeIcons)!==null&&s!==void 0?s:!1,this.supportHtml=(o=t.supportHtml)!==null&&o!==void 0?o:!1)}appendText(e,t=0){return this.value+=Q1e(this.supportThemeIcons?o1e(e):e).replace(/([ \t]+)/g,(i,s)=>" ".repeat(s.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ +`:` + +`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=` +`,this.value+=t,this.value+="\n```\n",this}}function xp(n){return AU(n)?!n.value:Array.isArray(n)?n.every(xp):!0}function AU(n){return n instanceof Wo?!0:n&&typeof n=="object"?typeof n.value=="string"&&(typeof n.isTrusted=="boolean"||n.isTrusted===void 0)&&(typeof n.supportThemeIcons=="boolean"||n.supportThemeIcons===void 0):!1}function Q1e(n){return n.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function xD(n){return n&&n.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function J1e(n){const e=[],t=n.split("|").map(s=>s.trim());n=t[0];const i=t[1];if(i){const s=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),r=s?s[1]:"",a=o?o[1]:"",l=isFinite(parseInt(a)),c=isFinite(parseInt(r));l&&e.push(`width="${a}"`),c&&e.push(`height="${r}"`)}return{href:n,dimensions:e}}var PT=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function e0e(n,e){pr(e)?n.title=hO(e):e!=null&&e.markdownNotSupportedFallback?n.title=e.markdownNotSupportedFallback:n.removeAttribute("title")}class t0e{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return PT(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(e===void 0||pr(e)||e instanceof HTMLElement)s=e;else if(!xy(e.markdown))s=(i=e.markdown)!==null&&i!==void 0?i:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(m("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new is;const o=this._cancellationTokenSource.token;if(s=yield e.markdown(o),s===void 0&&(s=e.markdownNotSupportedFallback),this.isDisposed||o.isCancellationRequested)return}this.show(s,t)})}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const s={content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(s,t)}i==null||i.dispose()}hasContent(e){return e?AU(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function i0e(n,e,t){let i,s;const o=(d,u)=>{var h;d&&(s==null||s.dispose(),s=void 0),u&&(i==null||i.dispose(),i=void 0),(h=n.onDidHideHover)===null||h===void 0||h.call(n)},r=(d,u,h)=>new xo(()=>PT(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new t0e(n,h||e,d>0),yield s.update(t,u))}),d),a=()=>{if(i)return;const d=new ue,u=g=>o(!1,g.fromElement===e);d.add(de(e,Xe.MOUSE_LEAVE,u,!0));const h=()=>o(!0,!0);d.add(de(e,Xe.MOUSE_DOWN,h,!0));const f={targetElements:[e],dispose:()=>{}};if(n.placement===void 0||n.placement==="mouse"){const g=_=>f.x=_.x+10;d.add(de(e,Xe.MOUSE_MOVE,g,!0))}d.add(r(n.delay,!1,f)),i=d},l=de(e,Xe.MOUSE_OVER,a,!0);return{show:d=>{o(!1,!0),r(0,d)},hide:()=>{o(!0,!0)},update:d=>PT(this,void 0,void 0,function*(){t=d,yield s==null?void 0:s.update(t)}),dispose:()=>{l.dispose(),o(!0,!0)}}}class ED{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class MS extends J{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new ED(re(e,le(".monaco-icon-label")))),this.labelContainer=re(this.domNode.element,le(".monaco-icon-label-container"));const i=re(this.labelContainer,le("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new ED(re(this.labelContainer,le("span.monaco-icon-description-container")))),t!=null&&t.supportHighlights||t!=null&&t.supportIcons?this.nameNode=new o0e(i,!!t.supportIcons):this.nameNode=new n0e(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new Lf(re(this.descriptionContainer.element,le("span.label-description")),{supportIcons:!!t.supportIcons}):this.descriptionNodeFactory=()=>this._register(new ED(re(this.descriptionContainer.element,le("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const s=["monaco-icon-label"];i&&(i.extraClasses&&s.push(...i.extraClasses),i.italic&&s.push("italic"),i.strikethrough&&s.push("strikethrough")),this.domNode.className=s.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof Lf?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)e0e(e,t);else{const s=i0e(this.hoverDelegate,e,t);s&&this.customHovers.set(e,s)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class n0e{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&hr(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=re(this.container,le("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:i,end:i+s.length},r=t.map(a=>ds.intersect(o,a)).filter(a=>!ds.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+e.length,r})}class o0e{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&hr(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new Lf(re(this.container,le("a.label-name",{id:t==null?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",s=s0e(e,i,t==null?void 0:t.matches);for(let o=0;o{const n=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:n,collatorIsNumeric:n.resolvedOptions().numeric}});new Kd(()=>({collator:new Intl.Collator(void 0,{numeric:!0})}));new Kd(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function r0e(n,e,t=!1){const i=n||"",s=e||"",o=i9.value.collator.compare(i,s);return i9.value.collatorIsNumeric&&o===0&&i!==s?is.length)return 1}return 0}var MU=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},c0e=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const Qa=le;class d0e{constructor(e){this.hidden=!1,this._onChecked=new j,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class l0{get templateId(){return l0.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=re(e,Qa(".quick-input-list-entry"));const i=re(t.entry,Qa("label.quick-input-list-label"));t.toDisposeTemplate.push(jn(i,Xe.CLICK,c=>{t.checkbox.offsetParent||c.preventDefault()})),t.checkbox=re(i,Qa("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(jn(t.checkbox,Xe.CHANGE,c=>{t.element.checked=t.checkbox.checked}));const s=re(i,Qa(".quick-input-list-rows")),o=re(s,Qa(".quick-input-list-row")),r=re(s,Qa(".quick-input-list-row"));t.label=new MS(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=re(o,Qa(".quick-input-list-entry-keybinding"));t.keybinding=new CO(a,or);const l=re(r,Qa(".quick-input-list-label-meta"));return t.detail=new MS(l,{supportHighlights:!0,supportIcons:!0}),t.separator=re(t.entry,Qa(".quick-input-list-separator")),t.actionBar=new Fl(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=Pt(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(c=>i.checkbox.checked=c));const{labelHighlights:s,descriptionHighlights:o,detailHighlights:r}=e,a=Object.create(null);a.matches=s||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=o||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((c,d)=>{let u=c.iconClass||(c.iconPath?MT(c.iconPath):void 0);c.alwaysVisible&&(u=u?`${u} always-visible`:"always-visible");const h=new Co(`id-${d}`,"",u,!0,()=>c0e(this,void 0,void 0,function*(){e.fireButtonTriggered({button:c,item:e.item})}));return h.tooltip=c.tooltip||"",h}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=Pt(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Pt(e.toDisposeElement),e.toDisposeTemplate=Pt(e.toDisposeTemplate)}}l0.ID="listelement";class u0e{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return l0.ID}}var Qi;(function(n){n[n.First=1]="First",n[n.Second=2]="Second",n[n.Last=3]="Last",n[n.Next=4]="Next",n[n.Previous=5]="Previous",n[n.NextPage=6]="NextPage",n[n.PreviousPage=7]="PreviousPage"})(Qi||(Qi={}));class wO{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new j,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new j,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new j,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new j,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new j,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new j,this.onKeyDown=this._onKeyDown.event,this._onLeave=new j,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=re(this.parent,Qa(".quick-input-list"));const s=new u0e,o=new f0e;this.list=i.createList("QuickInput",this.container,s,[new l0],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Si(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(wt?r.metaKey:r.ctrlKey)&&this.list.setFocus(As(this.list.length));break;case 16:{const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break}case 18:{const l=this.list.getFocus();l.length===1&&l[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(de(this.container,Xe.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return je.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return je.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,s=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Pt(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,s,o)=>{var r,a,l;if(s.type!=="separator"){const c=o&&e[o-1],d=s.label&&s.label.replace(/\r?\n/g," "),u=s.meta&&s.meta.replace(/\r?\n/g," "),h=s.description&&s.description.replace(/\r?\n/g," "),f=s.detail&&s.detail.replace(/\r?\n/g," "),g=s.ariaLabel||[d,h,f].map(b=>kle(b)).filter(b=>!!b).join(", "),_=this.parent.classList.contains("show-checkboxes");i.push(new d0e({hasCheckbox:_,index:o,item:s,saneLabel:d,saneMeta:u,saneAriaLabel:g,saneDescription:h,saneDetail:f,labelHighlights:(r=s.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=s.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=s.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:c&&c.type==="separator"?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,s,o)=>(i.set(s.item,o),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===Qi.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=Qi.First),e===Qi.Previous&&this.list.getFocus()[0]===0&&(e=Qi.Last),e===Qi.Second&&this.list.length<2&&(e=Qi.First),e){case Qi.First:this.list.focusFirst();break;case Qi.Second:this.list.focusNth(1);break;case Qi.Last:this.list.focusLast();break;case Qi.Next:this.list.focusNext();break;case Qi.Previous:this.list.focusPrevious();break;case Qi.NextPage:this.list.focusNextPage();break;case Qi.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;const s=i.index&&this.inputElements[i.index-1];i.separator=s&&s.type==="separator"?s:void 0});else{let i;this.elements.forEach(s=>{const o=this.matchOnLabel?_o(EC(e,xC(s.saneLabel))):void 0,r=this.matchOnDescription?_o(EC(e,xC(s.saneDescription||""))):void 0,a=this.matchOnDetail?_o(EC(e,xC(s.saneDetail||""))):void 0,l=this.matchOnMeta?_o(EC(e,xC(s.saneMeta||""))):void 0;if(o||r||a||l?(s.labelHighlights=o,s.descriptionHighlights=r,s.detailHighlights=a,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item.alwaysShow),s.separator=void 0,!this.sortByLabel){const c=s.index&&this.inputElements[s.index-1];i=c&&c.type==="separator"?c:i,i&&!s.hidden&&(s.separator=i,i=void 0)}})}const t=this.elements.filter(i=>!i.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((s,o)=>h0e(s,o,i))}return this.elementsToIndexes=t.reduce((i,s,o)=>(i.set(s.item,o),i),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=Pt(this.elementDisposables),this.disposables=Pt(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}MU([vn],wO.prototype,"onDidChangeFocus",null);MU([vn],wO.prototype,"onDidChangeSelection",null);function h0e(n,e,t){const i=n.labelHighlights||[],s=e.labelHighlights||[];return i.length&&!s.length?-1:!i.length&&s.length?1:i.length===0&&s.length===0?0:a0e(n.saneLabel,e.saneLabel,t)}class f0e{getWidgetAriaLabel(){return m("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var n9=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const Io=le,OT={iconClass:p.quickInputBack.classNames,tooltip:m("quickInput.back","Back"),handle:-1};class Ak extends J{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=Ak.noPromptMessage,this._severity=Mi.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new j),this.onDidHideEmitter=this._register(new j),this.onDisposeEmitter=this._register(new j),this.visibleDisposables=this._register(new ue),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Ta;this._ignoreFocusOut=e&&!Ta,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=n1.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText=" ");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new xo,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const s=this.buttons.filter(r=>r===OT);this.ui.leftActionBar.push(s.map((r,a)=>{const l=new Co(`id-${a}`,"",r.iconClass||MT(r.iconPath),!0,()=>n9(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const o=this.buttons.filter(r=>r!==OT);this.ui.rightActionBar.push(o.map((r,a)=>{const l=new Co(`id-${a}`,"",r.iconClass||MT(r.iconPath),!0,()=>n9(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,uu(this.ui.message,...Jh(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?m("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Mi.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Ak.noPromptMessage=m("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class s1 extends Ak{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new j),this.onWillAcceptEmitter=this._register(new j),this.onDidAcceptEmitter=this._register(new j),this.onDidCustomEmitter=this._register(new j),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?ha.NONE:ha.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new j),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new j),this.onDidTriggerItemButtonEmitter=this._register(new j),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?z1e:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(Qi.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(Qi.Next),this.canSelectMany&&this.ui.list.domFocus(),Yt.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Qi.Previous):this.ui.list.focus(Qi.Last),this.canSelectMany&&this.ui.list.domFocus(),Yt.stop(e,!0);break;case 12:this.ui.list.focus(Qi.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Yt.stop(e,!0);break;case 11:this.ui.list.focus(Qi.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Yt.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(Qi.First),Yt.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(Qi.Last),Yt.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&jo(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&jo(e,this._selectedItems,(i,s)=>i===s)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&jo(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return de(this.ui.container,Xe.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Si(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const s=this.ariaLabel||this.placeholder||s1.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==s&&(this.ui.inputBox.ariaLabel=s),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case ha.NONE:this._itemActivation=ha.FIRST;break;case ha.SECOND:this.ui.list.focus(Qi.Second),this._itemActivation=ha.FIRST;break;case ha.LAST:this.ui.list.focus(Qi.Last),this._itemActivation=ha.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Qi.First)),this.keepScrollPosition&&(this.scrollTop=e)}}s1.DEFAULT_ARIA_LABEL=m("quickInputBox.ariaLabel","Type to narrow down results.");class Mk extends J{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new j),this.onDidCustomEmitter=this._register(new j),this.onDidTriggerButtonEmitter=this._register(new j),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new j),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new j),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(de(window,Xe.KEY_DOWN,e,!0)),this._register(de(window,Xe.KEY_UP,e,!0)),this._register(de(window,Xe.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=re(this.parentElement,Io(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Cr(e),i=re(e,Io(".quick-input-titlebar")),s=this._register(new Fl(i));s.domNode.classList.add("quick-input-left-action-bar");const o=re(i,Io(".quick-input-title")),r=this._register(new Fl(i));r.domNode.classList.add("quick-input-right-action-bar");const a=re(e,Io(".quick-input-description")),l=re(e,Io(".quick-input-header")),c=re(l,Io("input.quick-input-check-all"));c.type="checkbox",this._register(jn(c,Xe.CHANGE,$=>{const z=c.checked;E.setAllVisibleChecked(z)})),this._register(de(c,Xe.CLICK,$=>{($.x||$.y)&&f.setFocus()}));const d=re(l,Io(".quick-input-description")),u=re(l,Io(".quick-input-and-message")),h=re(u,Io(".quick-input-filter")),f=this._register(new X1e(h));f.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=re(h,Io(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const _=new AT(g,{countFormat:m({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),b=re(h,Io(".quick-input-count"));b.setAttribute("aria-live","polite");const v=new AT(b,{countFormat:m({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),C=re(l,Io(".quick-input-action")),y=new Q8(C);y.label=m("ok","OK"),this._register(y.onDidClick($=>{this.onDidAcceptEmitter.fire()}));const S=re(l,Io(".quick-input-action")),x=new Q8(S);x.label=m("custom","Custom"),this._register(x.onDidClick($=>{this.onDidCustomEmitter.fire()}));const A=re(u,Io(`#${this.idPrefix}message.quick-input-message`)),E=this._register(new wO(e,this.idPrefix+"list",this.options));this._register(E.onChangedAllVisibleChecked($=>{c.checked=$})),this._register(E.onChangedVisibleCount($=>{_.setCount($)})),this._register(E.onChangedCheckedCount($=>{v.setCount($)})),this._register(E.onLeave(()=>{setTimeout(()=>{f.setFocus(),this.controller instanceof s1&&this.controller.canSelectMany&&E.clearFocus()},0)})),this._register(E.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new Tk(e);D.getContainer().classList.add("quick-input-progress");const P=fp(e);return this._register(P),this._register(de(e,Xe.FOCUS,$=>{this.previousFocusElement=$.relatedTarget instanceof HTMLElement?$.relatedTarget:void 0},!0)),this._register(P.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(n1.Blur),this.previousFocusElement=void 0})),this._register(de(e,Xe.FOCUS,$=>{f.setFocus()})),this._register(de(e,Xe.KEY_DOWN,$=>{const z=new Si($);switch(z.keyCode){case 3:Yt.stop($,!0),this.onDidAcceptEmitter.fire();break;case 9:Yt.stop($,!0),this.hide(n1.Gesture);break;case 2:if(!z.altKey&&!z.ctrlKey&&!z.metaKey){const ee=[".action-label.codicon"];e.classList.contains("show-checkboxes")?ee.push("input"):ee.push("input[type=text]"),this.getUI().list.isDisplayed()&&ee.push(".monaco-list");const Q=e.querySelectorAll(ee.join(", "));z.shiftKey&&z.target===Q[0]?(Yt.stop($,!0),Q[Q.length-1].focus()):!z.shiftKey&&z.target===Q[Q.length-1]&&(Yt.stop($,!0),Q[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:s,titleBar:i,title:o,description1:a,description2:d,rightActionBar:r,checkAll:c,filterContainer:h,inputBox:f,visibleCountContainer:g,visibleCount:_,countContainer:b,count:v,okContainer:C,ok:y,message:A,customButtonContainer:S,customButton:x,list:E,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:$=>this.show($),hide:()=>this.hide(),setVisibilities:$=>this.setVisibilities($),setComboboxAccessibility:$=>this.setComboboxAccessibility($),setEnabled:$=>this.setEnabled($),setContextKey:$=>this.options.setContextKey($)},this.updateStyles(),this.ui}pick(e,t={},i=xt.None){return new Promise((s,o)=>{let r=d=>{r=s,t.onKeyMods&&t.onKeyMods(a.keyMods),s(d)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const c=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const d=a.activeItems[0];d&&(r(d),a.hide())}}),a.onDidChangeActive(d=>{const u=d[0];u&&t.onDidFocus&&t.onDidFocus(u)}),a.onDidChangeSelection(d=>{if(!a.canSelectMany){const u=d[0];u&&(r(u),a.hide())}}),a.onDidTriggerItemButton(d=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},d),{removeItem:()=>{const u=a.items.indexOf(d.item);if(u!==-1){const h=a.items.slice(),f=h.splice(u,1),g=a.activeItems.filter(b=>b!==f[0]),_=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=h,g&&(a.activeItems=g),a.keepScrollPosition=_}}}))),a.onDidChangeValue(d=>{l&&!d&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{Pt(c),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([d,u])=>{l=u,a.busy=!1,a.items=d,a.canSelectMany&&(a.selectedItems=d.filter(h=>h.type!=="separator"&&h.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,d=>{o(d),a.hide()})})}createQuickPick(){const e=this.getUI();return new s1(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Mi.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),uu(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const s=this.options.backKeybindingLabel();OT.tooltip=s?m("quickInput.backWithKeybinding","Back ({0})",s):m("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const s=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!s){let o=this.previousFocusElement;for(;o&&!o.offsetParent;)o=_o(o.parentElement);o!=null&&o.offsetParent?(o.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,Mk.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:s,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` +`);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}Mk.MAX_WIDTH=600;class g0e{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(s=>s.splice(e,t,i))}}class sh extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function s9(n,e){const t=[];for(let i of e){if(n.start>=i.range.end)continue;if(n.ende.concat(t),[]))}class o9{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const s=i.length-t,o=s9({start:0,end:e},this.groups),r=s9({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(l=>({range:FT(l.range,s),size:l.size})),a=i.map((l,c)=>({range:{start:e+c,end:e+c+1},size:l.size}));this.groups=p0e(o,a,r),this._size=this.groups.reduce((l,c)=>l+c.size*(c.range.end-c.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(let s of this.groups){const o=s.range.end-s.range.start,r=i+o*s.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var cg=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o};const qa={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(n){return[n]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class c0{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class v0e{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class C0e{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ts,e!=null&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(t,i)=>i+1,e!=null&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=t=>"listitem",e!=null&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=t=>{}}}class Va{constructor(e,t,i,s=qa){if(this.virtualDelegate=t,this.domId=`list_id_${++Va.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Ml(50),this.splicing=!1,this.dragOverAnimationStopDisposable=J.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=J.None,this.onDragLeaveTimeout=J.None,this.disposables=new ue,this._onDidChangeContentHeight=new j,this._horizontalScrolling=!1,s.horizontalScrolling&&s.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new o9;for(const r of i)this.renderers.set(r.templateId,r);this.cache=this.disposables.add(new b0e(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof s.mouseSupport=="boolean"?s.mouseSupport:!0),this._horizontalScrolling=ja(s,r=>r.horizontalScrolling,qa.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof s.additionalScrollHeight>"u"?0:s.additionalScrollHeight,this.accessibilityProvider=new y0e(s.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",ja(s,r=>r.transformOptimization,qa.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(Jt.addTarget(this.rowsContainer)),this.scrollable=new t0({forceIntegerValues:!0,smoothScrollDuration:ja(s,r=>r.smoothScrolling,!1)?125:0,scheduleAtNextAnimationFrame:r=>Ma(r)}),this.scrollableElement=this.disposables.add(new PP(this.rowsContainer,{alwaysConsumeMouseWheel:ja(s,r=>r.alwaysConsumeMouseWheel,qa.alwaysConsumeMouseWheel),horizontal:1,vertical:ja(s,r=>r.verticalScrollMode,qa.verticalScrollMode),useShadows:ja(s,r=>r.useShadows,qa.useShadows),mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(de(this.rowsContainer,pi.Change,r=>this.onTouchChange(r))),this.disposables.add(de(this.scrollableElement.getDomNode(),"scroll",r=>r.target.scrollTop=0)),this.disposables.add(de(this.domNode,"dragover",r=>this.onDragOver(this.toDragEvent(r)))),this.disposables.add(de(this.domNode,"drop",r=>this.onDrop(this.toDragEvent(r)))),this.disposables.add(de(this.domNode,"dragleave",r=>this.onDragLeave(this.toDragEvent(r)))),this.disposables.add(de(this.domNode,"dragend",r=>this.onDragEnd(r))),this.setRowLineHeight=ja(s,r=>r.setRowLineHeight,qa.setRowLineHeight),this.setRowHeight=ja(s,r=>r.setRowHeight,qa.setRowHeight),this.supportDynamicHeights=ja(s,r=>r.supportDynamicHeights,qa.supportDynamicHeights),this.dnd=ja(s,r=>r.dnd,qa.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const t of this.items)this.measureItemWidth(t);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:PE(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){e.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling),e.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},r=ds.intersect(s,o),a=new Map;for(let A=r.end-1;A>=r.start;A--){const E=this.items[A];if(E.dragStartDisposable.dispose(),E.row){let D=a.get(E.templateId);D||(D=[],a.set(E.templateId,D));const P=this.renderers.get(E.templateId);P&&P.disposeElement&&P.disposeElement(E.element,A,E.row.templateData,E.size),D.push(E.row)}E.row=null}const l={start:e+t,end:this.items.length},c=ds.intersect(l,s),d=ds.relativeComplement(l,s),u=i.map(A=>({id:String(this.itemId++),element:A,templateId:this.virtualDelegate.getTemplateId(A),size:this.virtualDelegate.getHeight(A),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(A),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:J.None,checkedDisposable:J.None}));let h;e===0&&t>=this.items.length?(this.rangeMap=new o9,this.rangeMap.splice(0,0,u),h=this.items,this.items=u):(this.rangeMap.splice(e,t,u),h=this.items.splice(e,t,...u));const f=i.length-t,g=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=FT(c,f),b=ds.intersect(g,_);for(let A=b.start;AFT(A,f)),S=[{start:e,end:e+i.length},...C].map(A=>ds.intersect(g,A)),x=this.getNextToLastElement(S);for(const A of S)for(let E=A.start;EA.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Ma(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)typeof t.width<"u"&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:typeof e=="number"?e:gue(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),typeof t<"u"&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof t=="number"?t:PE(this.domNode)})}render(e,t,i,s,o,r=!1){const a=this.getRenderRange(t,i),l=ds.relativeComplement(a,e),c=ds.relativeComplement(e,a),d=this.getNextToLastElement(l);if(r){const u=ds.intersect(e,a);for(let h=u.start;hs.row.domNode.setAttribute("aria-checked",String(!!d));c(r.value),s.checkedDisposable=r.onDidChange(c)}s.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(s.row.domNode,t):this.rowsContainer.appendChild(s.row.domNode)),this.updateItemInDOM(s,e);const a=this.renderers.get(s.templateId);if(!a)throw new Error(`No renderer found for template id ${s.templateId}`);a&&a.renderElement(s.element,e,s.row.templateData,s.size);const l=this.dnd.getDragURI(s.element);s.dragStartDisposable.dispose(),s.row.domNode.draggable=!!l,l&&(s.dragStartDisposable=de(s.row.domNode,"dragstart",c=>this.onDragStart(s.element,l,c))),this.horizontalScrolling&&(this.measureItemWidth(s),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=Yo?"-moz-fit-content":"fit-content",e.width=PE(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return je.map(this.disposables.add(new ti(this.domNode,"click")).event,e=>this.toMouseEvent(e))}get onMouseDblClick(){return je.map(this.disposables.add(new ti(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return je.filter(je.map(this.disposables.add(new ti(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e)),e=>e.browserEvent.button===1)}get onMouseDown(){return je.map(this.disposables.add(new ti(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e))}get onContextMenu(){return je.any(je.map(this.disposables.add(new ti(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e)),je.map(this.disposables.add(new ti(this.domNode,pi.Contextmenu)).event,e=>this.toGestureEvent(e)))}get onTouchStart(){return je.map(this.disposables.add(new ti(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e))}get onTap(){return je.map(this.disposables.add(new ti(this.rowsContainer,pi.Tap)).event,e=>this.toGestureEvent(e))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],s=i&&i.element;return{browserEvent:e,index:t,element:s}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],s=i&&i.element;return{browserEvent:e,index:t,element:s}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=typeof t>"u"?void 0:this.items[t],s=i&&i.element;return{browserEvent:e,index:t,element:s}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=typeof t>"u"?void 0:this.items[t],s=i&&i.element;return{browserEvent:e,index:t,element:s}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const s=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(W$.TEXT,t),i.dataTransfer.setDragImage){let o;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(s,i)),typeof o>"u"&&(o=String(s.length));const r=le(".monaco-drag-image");r.textContent=o,document.body.appendChild(r),i.dataTransfer.setDragImage(r,-10,-10),setTimeout(()=>document.body.removeChild(r),0)}this.currentDragData=new c0(s),uc.CurrentDragAndDropData=new v0e(s),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),uc.CurrentDragAndDropData&&uc.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(uc.CurrentDragAndDropData)this.currentDragData=uc.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new C0e}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop=typeof t=="boolean"?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof t!="boolean"&&t.effect===0?"copy":"move";let i;if(typeof t!="boolean"&&t.feedback?i=t.feedback:typeof e.index>"u"?i=[-1]:i=[e.index],i=au(i).filter(s=>s>=-1&&ss-o),i=i[0]===-1?[-1]:i,w0e(this.currentDragFeedback,i))return!0;if(this.currentDragFeedback=i,this.currentDragFeedbackDisposable.dispose(),i[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=vt(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const s of i){const o=this.items[s];o.dropTarget=!0,o.row&&o.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=vt(()=>{for(const s of i){const o=this.items[s];o.dropTarget=!1,o.row&&o.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=uf(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((i=(t=this.dnd).onDragLeave)===null||i===void 0||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,uc.CurrentDragAndDropData=void 0,!(!t||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,uc.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=J.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const t=oz(this.domNode).top;this.dragOverAnimationDisposable=wue(this.animateDragAndDropScrollTop.bind(this,t))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=uf(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const s=i.getAttribute("data-index");if(s){const o=Number(s);if(!isNaN(o))return o}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const s=this.getRenderRange(e,t);let o,r;e===this.elementTop(s.start)?(o=s.start,r=0):s.end-s.start>1&&(o=s.start+1,r=this.elementTop(o)-e);let a=0;for(;;){const l=this.getRenderRange(e,t);let c=!1;for(let d=l.start;d=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},r9=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class S0e{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const s=this.renderedElements.findIndex(o=>o.templateData===i);if(s>=0){const o=this.renderedElements[s];this.trait.unrender(i),o.index=t}else{const o={index:t,templateData:i};this.renderedElements.push(o)}this.trait.renderIndex(t,i)}splice(e,t,i){const s=[];for(const o of this.renderedElements)o.index=e+t&&s.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=s}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex(i=>i.templateData===e);t<0||this.renderedElements.splice(t,1)}}let RS=class{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new j,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new S0e(this)}splice(e,t,i){var s;t=Math.max(0,Math.min(t,this.length-e));const o=i.length-t,r=e+t,a=[...this.sortedIndexes.filter(c=>cc?d+e:-1).filter(c=>c!==-1),...this.sortedIndexes.filter(c=>c>=r).map(c=>c+o)],l=this.length+o;if(this.sortedIndexes.length>0&&a.length===0&&l>0){const c=(s=this.sortedIndexes.find(d=>d>=e))!==null&&s!==void 0?s:l-1;a.push(Math.min(c,l-1))}this.renderer.splice(e,t,i.length),this._set(a,a),this.length=l}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(l9),t)}_set(e,t,i){const s=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=BT(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return kR(this.sortedIndexes,e,l9)>=0}dispose(){Pt(this._onChange)}};dg([vn],RS.prototype,"renderer",null);class L0e extends RS{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class DD{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map(()=>!1));const s=this.trait.get().map(r=>this.identityProvider.getId(this.view.element(r)).toString()),o=i.map(r=>s.indexOf(this.identityProvider.getId(r).toString())>-1);this.trait.splice(e,t,o)}}function wu(n){return n.tagName==="INPUT"||n.tagName==="TEXTAREA"}function vm(n){return n.classList.contains("monaco-editor")?!0:n.classList.contains("monaco-list")||!n.parentElement?!1:vm(n.parentElement)}class RU{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new ue,this.multipleSelectionDisposables=new ue,this.onKeyDown.filter(s=>s.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(s=>s.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(s=>s.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(s=>s.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(s=>s.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(s=>s.keyCode===9).on(this.onEscape,this,this.disposables),i.multipleSelectionSupport!==!1&&this.onKeyDown.filter(s=>(wt?s.metaKey:s.ctrlKey)&&s.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return je.chain(this.disposables.add(new ti(this.view.domNode,"keydown")).event).filter(e=>!wu(e.target)).map(e=>new Si(e))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(t=>(wt?t.metaKey:t.ctrlKey)&&t.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(As(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}dg([vn],RU.prototype,"onKeyDown",null);var Cm;(function(n){n[n.Idle=0]="Idle",n[n.Typing=1]="Typing"})(Cm||(Cm={}));const PU=new class{mightProducePrintableCharacter(n){return n.ctrlKey||n.metaKey||n.altKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30||n.keyCode>=93&&n.keyCode<=102||n.keyCode>=80&&n.keyCode<=90}};class k0e{constructor(e,t,i,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.delegate=s,this.enabled=!1,this.state=Cm.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new ue,this.disposables=new ue,this.updateOptions(e.options)}updateOptions(e){(typeof e.enableKeyboardNavigation>"u"?!0:!!e.enableKeyboardNavigation)?this.enable():this.disable(),typeof e.automaticKeyboardNavigation<"u"&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=je.chain(this.enabledDisposables.add(new ti(this.view.domNode,"keydown")).event).filter(s=>!wu(s.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(s=>new Si(s)).filter(s=>this.delegate.mightProducePrintableCharacter(s)).forEach(s=>s.preventDefault()).map(s=>s.browserEvent.key).event,t=je.debounce(e,()=>null,800);je.reduce(je.any(e,t),(s,o)=>o===null?null:(s||"")+o)(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(t[0]));i&&Jn(i)}this.previouslyFocused=-1}onInput(e){if(!e){this.state=Cm.Idle,this.triggered=!1;return}const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===Cm.Idle?1:0;this.state=Cm.Typing;for(let o=0;o"u"||xk(e,l)){this.previouslyFocused=i,this.list.setFocus([r]),this.list.reveal(r);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class x0e{constructor(e,t){this.list=e,this.view=t,this.disposables=new ue,je.chain(this.disposables.add(new ti(t.domNode,"keydown")).event).filter(s=>!wu(s.target)).map(s=>new Si(s)).filter(s=>s.keyCode===2&&!s.ctrlKey&&!s.metaKey&&!s.shiftKey&&!s.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(t.length===0)return;const i=this.view.domElement(t[0]);if(!i)return;const s=i.querySelector("[tabIndex]");if(!s||!(s instanceof HTMLElement)||s.tabIndex===-1)return;const o=window.getComputedStyle(s);o.visibility==="hidden"||o.display==="none"||(e.preventDefault(),e.stopPropagation(),s.focus())}dispose(){this.disposables.dispose()}}function OU(n){return wt?n.browserEvent.metaKey:n.browserEvent.ctrlKey}function FU(n){return n.browserEvent.shiftKey}function E0e(n){return n instanceof MouseEvent&&n.button===2}const a9={isSelectionSingleChangeEvent:OU,isSelectionRangeChangeEvent:FU};class BU{constructor(e){this.list=e,this.disposables=new ue,this._onPointer=new j,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||a9),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Jt.addTarget(e.getHTMLElement()))),je.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||a9))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){vm(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(vm(e.browserEvent.target))return;const t=typeof e.index>"u"?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||wu(e.browserEvent.target)||vm(e.browserEvent.target))return;const t=e.index;if(typeof t>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(e))return this.changeSelection(e);if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),E0e(e.browserEvent)||this.list.setSelection([t],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(wu(e.browserEvent.target)||vm(e.browserEvent.target)||this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof i>"u"){const d=this.list.getFocus()[0];i=d??t,this.list.setAnchor(i)}const s=Math.min(i,t),o=Math.max(i,t),r=As(s,o+1),a=this.list.getSelection(),l=N0e(BT(a,[i]),i);if(l.length===0)return;const c=BT(r,T0e(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const s=this.list.getSelection(),o=s.filter(r=>r!==t);this.list.setFocus([t]),this.list.setAnchor(t),s.length===o.length?this.list.setSelection([...o,t],e.browserEvent):this.list.setSelection(o,e.browserEvent)}}dispose(){this.disposables.dispose()}}class VU{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):wt||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(` + .monaco-drag-image, + .monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; } + `),e.listFocusAndSelectionForeground&&i.push(` + .monaco-drag-image, + .monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; } + `),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listFocusOutline&&i.push(` + .monaco-drag-image, + .monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; } + .monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; } + `),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&i.push(` + .monaco-list${t}.drop-target, + .monaco-list${t} .monaco-list-rows.drop-target, + .monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; } + `),e.listFilterWidgetBackground&&i.push(`.monaco-list-type-filter { background-color: ${e.listFilterWidgetBackground} }`),e.listFilterWidgetOutline&&i.push(`.monaco-list-type-filter { border: 1px solid ${e.listFilterWidgetOutline}; }`),e.listFilterWidgetNoMatchesOutline&&i.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${e.listFilterWidgetNoMatchesOutline}; }`),e.listMatchesShadow&&i.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${e.listMatchesShadow}; }`),e.tableColumnsBorder&&i.push(` + .monaco-table:hover > .monaco-split-view2, + .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { + border-color: ${e.tableColumnsBorder}; + }`),e.tableOddRowsBackgroundColor&&i.push(` + .monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr, + .monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr, + .monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr { + background-color: ${e.tableOddRowsBackgroundColor}; + } + `),this.styleElement.textContent=i.join(` +`)}}const D0e={listFocusBackground:X.fromHex("#7FB0D0"),listActiveSelectionBackground:X.fromHex("#0E639C"),listActiveSelectionForeground:X.fromHex("#FFFFFF"),listActiveSelectionIconForeground:X.fromHex("#FFFFFF"),listFocusAndSelectionBackground:X.fromHex("#094771"),listFocusAndSelectionForeground:X.fromHex("#FFFFFF"),listInactiveSelectionBackground:X.fromHex("#3F3F46"),listInactiveSelectionIconForeground:X.fromHex("#FFFFFF"),listHoverBackground:X.fromHex("#2A2D2E"),listDropBackground:X.fromHex("#383B3D"),treeIndentGuidesStroke:X.fromHex("#a9a9a9"),tableColumnsBorder:X.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:X.fromHex("#cccccc").transparent(.04)},I0e={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function N0e(n,e){const t=n.indexOf(e);if(t===-1)return[];const i=[];let s=t-1;for(;s>=0&&n[s]===e-(t-s);)i.push(n[s--]);for(i.reverse(),s=t;s=n.length)t.push(e[s++]);else if(s>=e.length)t.push(n[i++]);else if(n[i]===e[s]){t.push(n[i]),i++,s++;continue}else n[i]=n.length)t.push(e[s++]);else if(s>=e.length)t.push(n[i++]);else if(n[i]===e[s]){i++,s++;continue}else n[i]n-e;class A0e{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,s){let o=0;for(const r of this.renderers)r.renderElement(e,t,i[o++],s)}disposeElement(e,t,i,s){let o=0;for(const r of this.renderers)r.disposeElement&&r.disposeElement(e,t,i[o],s),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class M0e{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const s=this.accessibilityProvider.getAriaLabel(e);s?i.setAttribute("aria-label",s):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof o=="number"?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class R0e{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,i,s){return this.dnd.onDragOver(e,t,i,s)}onDragLeave(e,t,i,s){var o,r;(r=(o=this.dnd).onDragLeave)===null||r===void 0||r.call(o,e,t,i,s)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,i,s){this.dnd.drop(e,t,i,s)}}class Gl{constructor(e,t,i,s,o=I0e){var r;this.user=e,this._options=o,this.focus=new RS("focused"),this.anchor=new RS("anchor"),this.eventBufferer=new MR,this._ariaLabel="",this.disposables=new ue,this._onDidDispose=new j,this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(r=this._options.accessibilityProvider)===null||r===void 0?void 0:r.getWidgetRole():"list";this.selection=new L0e(a!=="listbox"),$l(o,D0e,!1);const l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(l.push(new M0e(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),s=s.map(d=>new A0e(d.templateId,[...l,d]));const c=Object.assign(Object.assign({},o),{dnd:o.dnd&&new R0e(this,o.dnd)});if(this.view=new Va(t,i,s,c),this.view.domNode.setAttribute("role",a),o.styleController)this.styleController=o.styleController(this.view.domId);else{const d=Cr(this.view.domNode);this.styleController=new VU(d,this.view.domId)}if(this.spliceable=new g0e([new DD(this.focus,this.view,o.identityProvider),new DD(this.selection,this.view,o.identityProvider),new DD(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new x0e(this,this.view)),(typeof o.keyboardSupport!="boolean"||o.keyboardSupport)&&(this.keyboardController=new RU(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const d=o.keyboardNavigationDelegate||PU;this.typeLabelController=new k0e(this,this.view,o.keyboardNavigationLabelProvider,d),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return je.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return je.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=je.chain(this.disposables.add(new ti(this.view.domNode,"keydown")).event).map(o=>new Si(o)).filter(o=>e=o.keyCode===58||o.shiftKey&&o.keyCode===68).map(g8).filter(()=>!1).event,i=je.chain(this.disposables.add(new ti(this.view.domNode,"keyup")).event).forEach(()=>e=!1).map(o=>new Si(o)).filter(o=>o.keyCode===58||o.shiftKey&&o.keyCode===68).map(g8).map(({browserEvent:o})=>{const r=this.getFocus(),a=r.length?r[0]:void 0,l=typeof a<"u"?this.view.element(a):void 0,c=typeof a<"u"?this.view.domElement(a):this.view.domNode;return{index:a,element:l,anchor:c,browserEvent:o}}).event,s=je.chain(this.view.onContextMenu).filter(o=>!e).map(({element:o,index:r,browserEvent:a})=>({element:o,index:r,anchor:{x:a.pageX+1,y:a.pageY},browserEvent:a})).event;return je.any(t,i,s)}get onKeyDown(){return this.disposables.add(new ti(this.view.domNode,"keydown")).event}get onDidFocus(){return je.signal(this.disposables.add(new ti(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new BU(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(t=this.keyboardController)===null||t===void 0||t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new sh(this.user,`Invalid start index: ${e}`);if(t<0)throw new sh(this.user,`Invalid delete count: ${t}`);t===0&&i.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new sh(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new sh(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return QW(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new sh(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(this.length===0)return;const o=this.focus.get(),r=this.findNextIndex(o.length>0?o[0]+e:0,t,s);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,s){if(this.length===0)return;const o=this.focus.get(),r=this.findPreviousIndex(o.length>0?o[0]-e:0,t,s);r>-1&&this.setFocus([r],i)}focusNextPage(e,t){return r9(this,void 0,void 0,function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=i===0?0:i-1;const s=this.view.element(i),o=this.getFocusedElements()[0];if(o!==s){const r=this.findPreviousIndex(i,!1,t);r>-1&&o!==this.view.element(r)?this.setFocus([r],e):this.setFocus([i],e)}else{const r=this.view.getScrollTop();this.view.setScrollTop(r+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==r&&(this.setFocus([]),yield cu(0),yield this.focusNextPage(e,t))}})}focusPreviousPage(e,t){return r9(this,void 0,void 0,function*(){let i;const s=this.view.getScrollTop();s===0?i=this.view.indexAt(s):i=this.view.indexAfter(s-1);const o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){const a=this.findNextIndex(i,!1,t);a>-1&&r!==this.view.element(a)?this.setFocus([a],e):this.setFocus([i],e)}else{const a=s;this.view.setScrollTop(s-this.view.renderHeight),this.view.getScrollTop()!==a&&(this.setFocus([]),yield cu(0),yield this.focusPreviousPage(e,t))}})}focusLast(e,t){if(this.length===0)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(this.length===0)return;const s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s=this.length&&!t)return-1;if(e=e%this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let s=0;sthis.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new sh(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),s=this.view.elementTop(e),o=this.view.elementHeight(e);if(lf(t)){const r=o-this.view.renderHeight;this.view.setScrollTop(r*fo(t,0,1)+s)}else{const r=s+o,a=i+this.view.renderHeight;s=a||(s=a&&o>=this.view.renderHeight?this.view.setScrollTop(s):r>=a&&this.view.setScrollTop(r-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new sh(this.user,`Invalid index ${e}`);const t=this.view.getScrollTop(),i=this.view.elementTop(e),s=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;const o=s-this.view.renderHeight;return Math.abs((t-i)/o)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(i=>this.view.element(i)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}dg([vn],Gl.prototype,"onDidChangeFocus",null);dg([vn],Gl.prototype,"onDidChangeSelection",null);dg([vn],Gl.prototype,"onContextMenu",null);dg([vn],Gl.prototype,"onKeyDown",null);dg([vn],Gl.prototype,"onDidFocus",null);class P0e{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:J.None}}renderElement(e,t,i,s){if(i.disposable&&i.disposable.dispose(),!i.data)return;const o=this.modelProvider();if(o.isResolved(e))return this.renderer.renderElement(o.get(e),e,i.data,s);const r=new is,a=o.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then(l=>this.renderer.renderElement(l,e,i.data,s))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class O0e{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function F0e(n,e){return Object.assign(Object.assign({},e),{accessibilityProvider:e.accessibilityProvider&&new O0e(n,e.accessibilityProvider)})}class B0e{constructor(e,t,i,s,o={}){const r=()=>this.model,a=s.map(l=>new P0e(l,r));this.list=new Gl(e,t,i,a,F0e(r,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return je.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return je.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:e===void 0?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return je.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(s=>this._model.get(s)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,As(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const V0e={separatorBorder:X.transparent};class WU{constructor(e,t,i,s){this.container=e,this.view=t,this.disposable=s,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,t){e!==this.visible&&(e?(this.size=fo(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof t=="number"?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class W0e extends WU{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class H0e extends WU{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var hc;(function(n){n[n.Idle=0]="Idle",n[n.Busy=1]="Busy"})(hc||(hc={}));var PS;(function(n){n.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}n.Split=e;function t(i){return{type:"invisible",cachedVisibleSize:i}}n.Invisible=t})(PS||(PS={}));class HU extends J{constructor(e,t={}){var i,s,o,r,a;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=hc.Idle,this._onDidSashChange=this._register(new j),this._onDidSashReset=this._register(new j),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(i=t.orientation)!==null&&i!==void 0?i:0,this.inverseAltBehavior=(s=t.inverseAltBehavior)!==null&&s!==void 0?s:!1,this.proportionalLayout=(o=t.proportionalLayout)!==null&&o!==void 0?o:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=re(this.el,le(".sash-container")),this.viewContainer=le(".split-view-container"),this.scrollable=new t0({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:Ma}),this.scrollableElement=this._register(new PP(this.viewContainer,{vertical:this.orientation===0?(r=t.scrollbarVisibility)!==null&&r!==void 0?r:1:2,horizontal:this.orientation===1?(a=t.scrollbarVisibility)!==null&&a!==void 0?a:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(l=>{this.viewContainer.scrollTop=l.scrollTop,this.viewContainer.scrollLeft=l.scrollLeft})),re(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||V0e),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((l,c)=>{const d=po(l.visible)||l.visible?l.size:{type:"invisible",cachedVisibleSize:l.size},u=l.view;this.doAddView(u,d,c,!0)}),this.contentSize=this.viewItems.reduce((l,c)=>l+c.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,s){this.doAddView(e,t,i,s)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let s=0;sthis.viewItems[a].priority===1),r=s.filter(a=>this.viewItems[a].priority===2);this.resize(this.viewItems.length-1,e-i,void 0,o,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const a of this.viewItems)a.enabled=!1;const s=this.sashItems.findIndex(a=>a.sash===e),o=Mc(de(document.body,"keydown",a=>r(this.sashDragState.current,a.altKey)),de(document.body,"keyup",()=>r(this.sashDragState.current,!1))),r=(a,l)=>{const c=this.viewItems.map(g=>g.size);let d=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(l=!l),l)if(s===this.sashItems.length-1){const _=this.viewItems[s];d=(_.minimumSize-_.size)/2,u=(_.maximumSize-_.size)/2}else{const _=this.viewItems[s+1];d=(_.size-_.maximumSize)/2,u=(_.size-_.minimumSize)/2}let h,f;if(!l){const g=As(s,-1),_=As(s+1,this.viewItems.length),b=g.reduce((D,P)=>D+(this.viewItems[P].minimumSize-c[P]),0),v=g.reduce((D,P)=>D+(this.viewItems[P].viewMaximumSize-c[P]),0),C=_.length===0?Number.POSITIVE_INFINITY:_.reduce((D,P)=>D+(c[P]-this.viewItems[P].minimumSize),0),y=_.length===0?Number.NEGATIVE_INFINITY:_.reduce((D,P)=>D+(c[P]-this.viewItems[P].viewMaximumSize),0),S=Math.max(b,y),x=Math.min(C,v),A=this.findFirstSnapIndex(g),E=this.findFirstSnapIndex(_);if(typeof A=="number"){const D=this.viewItems[A],P=Math.floor(D.viewMinimumSize/2);h={index:A,limitDelta:D.visible?S-P:S+P,size:D.size}}if(typeof E=="number"){const D=this.viewItems[E],P=Math.floor(D.viewMinimumSize/2);f={index:E,limitDelta:D.visible?x+P:x-P,size:D.size}}}this.sashDragState={start:a,current:a,index:s,sizes:c,minDelta:d,maxDelta:u,alt:l,snapBefore:h,snapAfter:f,disposable:o}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:s,alt:o,minDelta:r,maxDelta:a,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const d=e-i,u=this.resize(t,d,s,void 0,void 0,r,a,l,c);if(o){const h=t===this.sashItems.length-1,f=this.viewItems.map(y=>y.size),g=h?t:t+1,_=this.viewItems[g],b=_.size-_.maximumSize,v=_.size-_.minimumSize,C=h?t-1:t+1;this.resize(C,-u,f,void 0,void 0,b,v)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=typeof t=="number"?t:e.size,t=fo(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==hc.Idle)throw new Error("Cant modify splitview");if(this.state=hc.Busy,e<0||e>=this.viewItems.length)return;const i=As(this.viewItems.length).filter(a=>a!==e),s=[...i.filter(a=>this.viewItems[a].priority===1),e],o=i.filter(a=>this.viewItems[a].priority===2),r=this.viewItems[e];t=Math.round(t),t=fo(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(s,o),this.state=hc.Idle}distributeViewSizes(){const e=[];let t=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),t+=a.size);const i=Math.floor(t/e.length);for(const a of e)a.size=fo(i,a.minimumSize,a.maximumSize);const s=As(this.viewItems.length),o=s.filter(a=>this.viewItems[a].priority===1),r=s.filter(a=>this.viewItems[a].priority===2);this.relayout(o,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,s){if(this.state!==hc.Idle)throw new Error("Cant modify splitview");this.state=hc.Busy;const o=le(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const r=e.onDidChange(h=>this.onViewChange(d,h)),a=vt(()=>this.viewContainer.removeChild(o)),l=Mc(r,a);let c;typeof t=="number"?c=t:t.type==="split"?c=this.getViewSize(t.index)/2:t.type==="invisible"?c={cachedVisibleSize:t.cachedVisibleSize}:c=e.minimumSize;const d=this.orientation===0?new W0e(o,e,c,l):new H0e(o,e,c,l);if(this.viewItems.splice(i,0,d),this.viewItems.length>1){let h={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const f=this.orientation===0?new hs(this.sashContainer,{getHorizontalSashTop:D=>this.getSashPosition(D),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},h),{orientation:1})):new hs(this.sashContainer,{getVerticalSashLeft:D=>this.getSashPosition(D),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},h),{orientation:0})),g=this.orientation===0?D=>({sash:f,start:D.startY,current:D.currentY,alt:D.altKey}):D=>({sash:f,start:D.startX,current:D.currentX,alt:D.altKey}),b=je.map(f.onDidStart,g)(this.onSashStart,this),C=je.map(f.onDidChange,g)(this.onSashChange,this),S=je.map(f.onDidEnd,()=>this.sashItems.findIndex(D=>D.sash===f))(this.onSashEnd,this),x=f.onDidReset(()=>{const D=this.sashItems.findIndex(Q=>Q.sash===f),P=As(D,-1),$=As(D+1,this.viewItems.length),z=this.findFirstSnapIndex(P),ee=this.findFirstSnapIndex($);typeof z=="number"&&!this.viewItems[z].visible||typeof ee=="number"&&!this.viewItems[ee].visible||this._onDidSashReset.fire(D)}),A=Mc(b,C,S,x,f),E={sash:f,disposable:A};this.sashItems.splice(i-1,0,E)}o.appendChild(e.element);let u;typeof t!="number"&&t.type==="split"&&(u=[t.index]),s||this.relayout([i],u),this.state=hc.Idle,!s&&typeof t!="number"&&t.type==="distribute"&&this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce((s,o)=>s+o.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(d=>d.size),s,o,r=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=As(e,-1),u=As(e+1,this.viewItems.length);if(o)for(const E of o)pE(d,E),pE(u,E);if(s)for(const E of s)K0(d,E),K0(u,E);const h=d.map(E=>this.viewItems[E]),f=d.map(E=>i[E]),g=u.map(E=>this.viewItems[E]),_=u.map(E=>i[E]),b=d.reduce((E,D)=>E+(this.viewItems[D].minimumSize-i[D]),0),v=d.reduce((E,D)=>E+(this.viewItems[D].maximumSize-i[D]),0),C=u.length===0?Number.POSITIVE_INFINITY:u.reduce((E,D)=>E+(i[D]-this.viewItems[D].minimumSize),0),y=u.length===0?Number.NEGATIVE_INFINITY:u.reduce((E,D)=>E+(i[D]-this.viewItems[D].maximumSize),0),S=Math.max(b,y,r),x=Math.min(C,v,a);let A=!1;if(l){const E=this.viewItems[l.index],D=t>=l.limitDelta;A=D!==E.visible,E.setVisible(D,l.size)}if(!A&&c){const E=this.viewItems[c.index],D=ta+l.size,0);let i=this.size-t;const s=As(this.viewItems.length-1,-1),o=s.filter(a=>this.viewItems[a].priority===1),r=s.filter(a=>this.viewItems[a].priority===2);for(const a of r)pE(s,a);for(const a of o)K0(s,a);typeof e=="number"&&K0(s,e);for(let a=0;i!==0&&at+i.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(t=>t.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),s=[...this.viewItems].reverse();e=!1;const o=s.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const r=s.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l0||this.startSnappingEnabled)?c.state=1:C&&t[l]&&(a0)return;if(!i.visible&&i.snap)return t}}dispose(){super.dispose(),Pt(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}class d0{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=d0.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map(o=>[o.templateId,o]));this.renderers=[];for(const o of e){const r=s.get(o.templateId);if(!r)throw new Error(`Table cell renderer for template id ${o.templateId} not found.`);this.renderers.push(r)}}renderTemplate(e){const t=re(e,le(".monaco-table-tr")),i=[],s=[];for(let r=0;rnew $0e(d,u)),l={size:a.reduce((d,u)=>d+u.column.weight,0),views:a.map(d=>({size:d.column.weight,view:d}))};this.splitview=this.disposables.add(new HU(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:l})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const c=new d0(s,o,d=>this.splitview.getViewSize(d));this.list=this.disposables.add(new Gl(e,this.domNode,z0e(i),[c],r)),je.any(...a.map(d=>d.onDidLayout))(([d,u])=>c.layoutColumn(d,u),null,this.disposables),this.splitview.onDidSashReset(d=>{const u=s.reduce((f,g)=>f+g.weight,0),h=s[d].weight/u*this.cachedWidth;this.splitview.resizeView(d,h)},null,this.disposables),this.styleElement=Cr(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { + top: ${this.virtualDelegate.headerRowHeight+1}px; + height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); + }`),this.styleElement.textContent=t.join(` +`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}Rk.InstanceCount=0;var Jb;(function(n){n[n.Unknown=0]="Unknown",n[n.Twistie=1]="Twistie",n[n.Element=2]="Element"})(Jb||(Jb={}));class lr extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class yO{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function SO(n){return typeof n=="object"&&"visibility"in n&&"data"in n}function o1(n){switch(n){case!0:return 1;case!1:return 0;default:return n}}function ID(n){return typeof n.collapsible=="boolean"}class U0e{constructor(e,t,i,s={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new MR,this._onDidChangeCollapseState=new j,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new j,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new j,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Ml(BH),this.collapseByDefault=typeof s.collapseByDefault>"u"?!1:s.collapseByDefault,this.filter=s.filter,this.autoExpandSingleChildren=typeof s.autoExpandSingleChildren>"u"?!1:s.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=Rt.empty(),s={}){if(e.length===0)throw new lr(this.user,"Invalid tree location");s.diffIdentityProvider?this.spliceSmart(s.diffIdentityProvider,e,t,i,s):this.spliceSimple(e,t,i,s)}spliceSmart(e,t,i,s,o,r){var a;s===void 0&&(s=Rt.empty()),r===void 0&&(r=(a=o.diffDepth)!==null&&a!==void 0?a:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,s,o);const c=[...s],d=t[t.length-1],u=new hl({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,d),...c,...l.children.slice(d+i)].map(b=>e.getId(b.element).toString())}).ComputeDiff(!1);if(u.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,o);const h=t.slice(0,-1),f=(b,v,C)=>{if(r>0)for(let y=0;yC.originalStart-v.originalStart))f(g,_,g-(b.originalStart+b.originalLength)),g=b.originalStart,_=b.modifiedStart-d,this.spliceSimple([...h,g],b.originalLength,Rt.slice(c,_,_+b.modifiedLength),o);f(g,_,g)}spliceSimple(e,t,i=Rt.empty(),{onDidCreateNode:s,onDidDeleteNode:o,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),u=[],h=Rt.map(i,E=>this.createTreeNode(E,a,a.visible?1:0,c,u,s)),f=e[e.length-1],g=a.children.length>0;let _=0;for(let E=f;E>=0&&Er.getId(E.element).toString())):a.lastDiffIds=a.children.map(E=>r.getId(E.element).toString()):a.lastDiffIds=void 0;let S=0;for(const E of y)E.visible&&S++;if(S!==0)for(let E=f+b.length;ED+(P.visible?P.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,C-E),this.list.splice(l,E,u)}if(y.length>0&&o){const E=D=>{o(D),D.children.forEach(E)};y.forEach(E)}this._onDidSplice.fire({insertedNodes:b,deletedNodes:y});const x=a.children.length>0;g!==x&&this.setCollapsible(e.slice(0,-1),x);let A=a;for(;A;){if(A.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}A=A.parent}}rerender(e){if(e.length===0)throw new lr(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:s}=this.getTreeNodeWithListIndex(e);t.visible&&s&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:s}=this.getTreeNodeWithListIndex(e);return i&&s?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);typeof t>"u"&&(t=!i.collapsible);const s={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const s=this.getTreeNode(e);typeof t>"u"&&(t=!s.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,o))}_setCollapseState(e,t){const{node:i,listIndex:s,revealed:o}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,s,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!ID(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...e,a],t)}return r}_setListNodeCollapseState(e,t,i,s){const o=this._setNodeCollapseState(e,s,!1);if(!i||!e.visible||!o)return o;const r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),l=r-(t===-1?0:1);return this.list.splice(t+1,l,a.slice(1)),o}_setNodeCollapseState(e,t,i){let s;if(e===this.root?s=!1:(ID(t)?(s=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(s=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):s=!1,s&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!ID(t)&&t.recursive)for(const o of e.children)s=this._setNodeCollapseState(o,t,!0)||s;return s}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,s,o,r){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,i);a.visibility=l,s&&o.push(a);const c=e.children||Rt.empty(),d=s&&l!==0&&!a.collapsed,u=Rt.map(c,g=>this.createTreeNode(g,a,l,d,o,r));let h=0,f=1;for(const g of u)a.children.push(g),f+=g.renderNodeCount,g.visible&&(g.visibleChildIndex=h++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=h,a.visible=l===2?h>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=f):(a.renderNodeCount=0,s&&o.pop()),r&&r(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(e.visible===!1)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,s=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),o===0)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(!e.collapsed||o!==0){let l=0;for(const c of e.children)a=this._updateNodeAfterFilterChange(c,o,i,s&&!e.collapsed)||a,c.visible&&(c.visibleChildIndex=l++);e.visibleChildrenCount=l}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=o===2?a:o===1,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,s&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(t!==0)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return typeof i=="boolean"?(e.filterData=void 0,i?1:0):SO(i)?(e.filterData=i.data,o1(i.visibility)):(e.filterData=void 0,o1(i))}hasTreeNode(e,t=this.root){if(!e||e.length===0)return!0;const[i,...s]=e;return i<0||i>t.children.length?!1:this.hasTreeNode(s,t.children[i])}getTreeNode(e,t=this.root){if(!e||e.length===0)return t;const[i,...s]=e;if(i<0||i>t.children.length)throw new lr(this.user,"Invalid tree location");return this.getTreeNode(s,t.children[i])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:s,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new lr(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:s,visible:o&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,s=!0,o=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new lr(this.user,"Invalid tree location");for(let l=0;lt.element)),this.data=e}}function ND(n){return n instanceof c0?new j0e(n):n}class q0e{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=J.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(ND(e),t)}onDragOver(e,t,i,s,o=!0){const r=this.dnd.onDragOver(ND(e),t&&t.element,i,s),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),typeof t>"u")return r;if(a&&typeof r!="boolean"&&r.autoExpand&&(this.autoExpandDisposable=uf(()=>{const h=this.modelProvider(),f=h.getNodeLocation(t);h.isCollapsed(f)&&h.setCollapsed(f,!1),this.autoExpandNode=void 0},500)),typeof r=="boolean"||!r.accept||typeof r.bubble>"u"||r.feedback){if(!o){const h=typeof r=="boolean"?r:r.accept,f=typeof r=="boolean"?void 0:r.effect;return{accept:h,effect:f,feedback:[i]}}return r}if(r.bubble===1){const h=this.modelProvider(),f=h.getNodeLocation(t),g=h.getParentNodeLocation(f),_=h.getNode(g),b=g&&h.getListIndex(g);return this.onDragOver(e,_,b,s,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),u=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:As(d,d+u)})}drop(e,t,i,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ND(e),t&&t.element,i,s)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function K0e(n,e){return e&&Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new q0e(n,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getSetSize(t){const i=n(),s=i.getNodeLocation(t),o=i.getParentNodeLocation(s);return i.getNode(o).visibleChildrenCount},getPosInSet(t){return t.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?t=>e.accessibilityProvider.isChecked(t.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?t=>e.accessibilityProvider.getAriaLevel(t.element):t=>t.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),enableKeyboardNavigation:e.simpleKeyboardNavigation})}class LO{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var r1;(function(n){n.None="none",n.OnHover="onHover",n.Always="always"})(r1||(r1={}));class G0e{constructor(e,t=[]){this._elements=t,this.onDidChange=je.forEach(e,i=>this._elements=i)}get elements(){return this._elements}}class a1{constructor(e,t,i,s,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=s,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=a1.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new Vue,this.activeIndentNodes=new Set,this.indentGuidesDisposable=J.None,this.disposables=new ue,this.templateId=e.templateId,this.updateOptions(o),je.map(i,r=>r.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"&&(this.indent=fo(e.indent,0,40)),typeof e.renderIndentGuides<"u"){const t=e.renderIndentGuides!==r1.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const i=new ue;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,i),this.indentGuidesDisposable=i,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=re(e,le(".monaco-tl-row")),i=re(t,le(".monaco-tl-indent")),s=re(t,le(".monaco-tl-twistie")),o=re(t,le(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:s,indentGuidesDisposable:J.None,templateData:r}}renderElement(e,t,i,s){typeof s=="number"&&(this.renderedNodes.set(e,{templateData:i,height:s}),this.renderedElements.set(e.element,e));const o=a1.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${o}px`,i.indent.style.width=`${o+this.indent-16}px`,this.renderTwistie(e,i),typeof s=="number"&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,s)}disposeElement(e,t,i,s){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.templateData,s),typeof s=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...p.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...p.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Sn(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new ue,s=this.modelProvider();let o=e;for(;;){const r=s.getNodeLocation(o),a=s.getParentNodeLocation(r);if(!a)break;const l=s.getNode(a),c=le(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),t.indent.childElementCount===0?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add(vt(()=>this.renderedIndentGuides.delete(l,c))),o=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(s=>{const o=i.getNodeLocation(s);try{const r=i.getParentNodeLocation(o);s.collapsible&&s.children.length>0&&!s.collapsed?t.add(s):r&&t.add(i.getNode(r))}catch{}}),this.activeIndentNodes.forEach(s=>{t.has(s)||this.renderedIndentGuides.forEach(s,o=>o.classList.remove("active"))}),t.forEach(s=>{this.activeIndentNodes.has(s)||this.renderedIndentGuides.forEach(s,o=>o.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Pt(this.disposables)}}a1.DefaultIndent=8;class Y0e{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new ue,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const o=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return o;let r;if(typeof o=="boolean"?r=o?1:0:SO(o)?r=o1(o.visibility):r=o,r===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:Da.Default,visibility:!0};const i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(i)?i:[i];for(const o of s){const r=o&&o.toString();if(typeof r>"u")return{data:Da.Default,visibility:!0};const a=kp(this._pattern,this._lowercasePattern,0,r,r.toLowerCase(),0,!0);if(a)return this._matchCount++,s.length===1?{data:a,visibility:!0}:{data:{label:r,score:a},visibility:!0}}return this.tree.options.filterOnType?2:{data:Da.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Pt(this.disposables)}}class Z0e{constructor(e,t,i,s,o){this.tree=e,this.view=i,this.filter=s,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new j,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new j,this.enabledDisposables=new ue,this.disposables=new ue,this.domNode=le(`.monaco-list-type-filter.${this.positionClassName}`),this.domNode.draggable=!0,this.disposables.add(de(this.domNode,"dragstart",()=>this.onDragStart())),this.messageDomNode=re(i.getHTMLElement(),le(".monaco-list-type-filter-message")),this.labelDomNode=re(this.domNode,le("span.label"));const r=re(this.domNode,le(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=re(r,le("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add(de(this.filterOnTypeDomNode,"input",()=>this.onDidChangeFilterOnType())),this.clearDomNode=re(r,le("button.clear"+p.treeFilterClear.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=m("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),typeof e.filterOnType<"u"&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),typeof e.automaticKeyboardNavigation<"u"&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=this.enabledDisposables.add(new ti(this.view.getHTMLElement(),"keydown")),t=je.chain(e.event).filter(s=>!wu(s.target)||s.target===this.filterOnTypeDomNode).filter(s=>s.key!=="Dead"&&!/^Media/.test(s.key)).map(s=>new Si(s)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(s=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(s)&&!(s.keyCode===18||s.keyCode===16||s.keyCode===15||s.keyCode===17)||(this.pattern.length>0||this.triggered)&&(s.keyCode===9||s.keyCode===1)&&!s.altKey&&!s.ctrlKey&&!s.metaKey||s.keyCode===1&&(wt?s.altKey&&!s.metaKey:s.ctrlKey)&&!s.shiftKey).forEach(s=>{s.stopPropagation(),s.preventDefault()}).event,i=this.enabledDisposables.add(new ti(this.clearDomNode,"click"));je.chain(je.any(t,i.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){typeof e=="string"?this.onInput(e):e instanceof MouseEvent||e.keyCode===9||e.keyCode===1&&(wt?e.altKey:e.ctrlKey)?this.onInput(""):e.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,s=>!Da.isDefault(s.filterData));const i=this.tree.getFocus();if(i.length>0){const s=i[0];this.tree.getRelativeTop(s)===null&&this.tree.reveal(s,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=Qn(e),i=e.clientWidth,s=i/2,o=this.domNode.clientWidth,r=new ue;let a=this.positionClassName;const l=()=>{switch(a){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=`${i-o-6}px`;break}},c=u=>{u.preventDefault();const h=u.clientX-t;u.dataTransfer&&(u.dataTransfer.dropEffect="none"),h{this.positionClassName=a,this.domNode.className=`monaco-list-type-filter ${this.positionClassName}`,this.domNode.style.top="",this.domNode.style.left="",Pt(r)};l(),this.domNode.classList.remove(a),this.domNode.classList.add("dragging"),r.add(vt(()=>this.domNode.classList.remove("dragging"))),r.add(de(document,"dragover",u=>c(u))),r.add(de(this.domNode,"dragend",()=>d())),uc.CurrentDragAndDropData=new _be("vscode-ui"),r.add(vt(()=>uc.CurrentDragAndDropData=void 0))}onDidSpliceModel(){!this._enabled||this.pattern.length===0||(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...p.treeFilterOnTypeOff.classNamesArray),this.filterOnTypeDomNode.classList.add(...p.treeFilterOnTypeOn.classNamesArray),this.filterOnTypeDomNode.title=m("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...p.treeFilterOnTypeOn.classNamesArray),this.filterOnTypeDomNode.classList.add(...p.treeFilterOnTypeOff.classNamesArray),this.filterOnTypeDomNode.title=m("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=m("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=m("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!Da.isDefault(e.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Pt(this.disposables)}}function c9(n){let e=Jb.Unknown;return X3(n.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=Jb.Twistie:X3(n.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(e=Jb.Element),{browserEvent:n.browserEvent,element:n.element?n.element.element:null,target:e}}function Gw(n,e){e(n),n.children.forEach(t=>Gw(t,e))}class TD{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new j,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(t!=null&&t.__forceEvent)&&jo(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const s=this;this._onDidChange.fire({get elements(){return s.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const l=this.createNodeSet(),c=d=>l.delete(d);t.forEach(d=>Gw(d,c)),this.set([...l.values()]);return}const i=new Set,s=l=>i.add(this.identityProvider.getId(l.element).toString());t.forEach(l=>Gw(l,s));const o=new Map,r=l=>o.set(this.identityProvider.getId(l.element).toString(),l);e.forEach(l=>Gw(l,r));const a=[];for(const l of this.nodes){const c=this.identityProvider.getId(l.element).toString();if(!i.has(c))a.push(l);else{const u=o.get(c);u&&a.push(u)}}if(this.nodes.length>0&&a.length===0){const l=this.getFirstViewElementWithTrait();l&&a.push(l)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class X0e extends BU{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(wu(e.browserEvent.target)||vm(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,s=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let o=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?o=this.tree.expandOnlyOnTwistieClick(t.element):o=!!this.tree.expandOnlyOnTwistieClick,o&&!s&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e);if(t.collapsible){const r=this.tree.model,a=r.getNodeLocation(t),l=e.browserEvent.altKey;if(this.tree.setFocus([a]),r.setCollapsed(a,void 0,l),o&&s)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick(e)}}class Q0e extends Gl{constructor(e,t,i,s,o,r,a,l){super(e,t,i,s,l),this.focusTrait=o,this.selectionTrait=r,this.anchorTrait=a}createMouseController(e){return new X0e(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),i.length===0)return;const s=[],o=[];let r;i.forEach((a,l)=>{this.focusTrait.has(a)&&s.push(e+l),this.selectionTrait.has(a)&&o.push(e+l),this.anchorTrait.has(a)&&(r=e+l)}),s.length>0&&super.setFocus(au([...super.getFocus(),...s])),o.length>0&&super.setSelection(au([...super.getSelection(),...o])),typeof r=="number"&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(s=>this.element(s)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(s=>this.element(s)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class zU{constructor(e,t,i,s,o={}){this._user=e,this._options=o,this.eventBufferer=new MR,this.disposables=new ue,this._onWillRefilter=new j,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new j;const r=new LO(i),a=new p3,l=new p3,c=new G0e(l.event);this.renderers=s.map(h=>new a1(h,()=>this.model,a.event,c,o));for(let h of this.renderers)this.disposables.add(h);let d;o.keyboardNavigationLabelProvider&&(d=new Y0e(this,o.keyboardNavigationLabelProvider,o.filter),o=Object.assign(Object.assign({},o),{filter:d}),this.disposables.add(d)),this.focus=new TD(()=>this.view.getFocusedElements()[0],o.identityProvider),this.selection=new TD(()=>this.view.getSelectedElements()[0],o.identityProvider),this.anchor=new TD(()=>this.view.getAnchorElement(),o.identityProvider),this.view=new Q0e(e,t,r,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},K0e(()=>this.model,o)),{tree:this})),this.model=this.createModel(e,this.view,o),a.input=this.model.onDidChangeCollapseState;const u=je.forEach(this.model.onDidSplice,h=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(h),this.selection.onDidModelSplice(h)})});if(u(()=>null,null,this.disposables),l.input=je.chain(je.any(u,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const h=new Set;for(const f of this.focus.getNodes())h.add(f);for(const f of this.selection.getNodes())h.add(f);return[...h.values()]}).event,o.keyboardSupport!==!1){const h=je.chain(this.view.onKeyDown).filter(f=>!wu(f.target)).map(f=>new Si(f));h.filter(f=>f.keyCode===15).on(this.onLeftArrow,this,this.disposables),h.filter(f=>f.keyCode===17).on(this.onRightArrow,this,this.disposables),h.filter(f=>f.keyCode===10).on(this.onSpace,this,this.disposables)}if(o.keyboardNavigationLabelProvider){const h=o.keyboardNavigationDelegate||PU;this.typeFilterController=new Z0e(this,this.model,this.view,d,h),this.focusNavigationFilter=f=>this.typeFilterController.shouldAllowFocus(f),this.disposables.add(this.typeFilterController)}this.styleElement=Cr(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===r1.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return je.map(this.view.onMouseDblClick,c9)}get onPointer(){return je.map(this.view.onPointer,c9)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return je.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===r1.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join(` +`),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(o=>this.model.getNode(o));this.selection.set(i,t);const s=e.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setSelection(s,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(o=>this.model.getNode(o));this.focus.set(i,t);const s=e.map(o=>this.model.getListIndex(o)).filter(o=>o>-1);this.view.setFocus(s,t,!0)}focusNext(e=1,t=!1,i,s=this.focusNavigationFilter){this.view.focusNext(e,t,i,s)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);i!==-1&&this.view.reveal(i,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return t===-1?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!0)){const r=this.model.getParentNodeLocation(s);if(!r)return;const a=this.model.getListIndex(r);this.view.reveal(a),this.view.setFocus([a])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!1)){if(!i.children.some(l=>l.visible))return;const[r]=this.view.getFocus(),a=r+1;this.view.reveal(a),this.view.setFocus([a])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(t.length===0)return;const i=t[0],s=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(s,void 0,o)}dispose(){Pt(this.disposables),this.view.dispose()}}class kO{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new U0e(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(s,o){return i.sorter.compare(s.element,o.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=Rt.empty(),i={}){const s=this.getElementLocation(e);this._setChildren(s,this.preserveCollapseState(t),i)}_setChildren(e,t=Rt.empty(),i){const s=new Set,o=new Set,r=l=>{var c;if(l.element===null)return;const d=l;if(s.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const u=this.identityProvider.getId(d.element).toString();o.add(u),this.nodesByIdentity.set(u,d)}(c=i.onDidCreateNode)===null||c===void 0||c.call(i,d)},a=l=>{var c;if(l.element===null)return;const d=l;if(s.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const u=this.identityProvider.getId(d.element).toString();o.has(u)||this.nodesByIdentity.delete(u)}(c=i.onDidDeleteNode)===null||c===void 0||c.call(i,d)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:r,onDidDeleteNode:a}))}preserveCollapseState(e=Rt.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),Rt.map(e,t=>{let i=this.nodes.get(t.element);if(!i&&this.identityProvider){const r=this.identityProvider.getId(t.element).toString();i=this.nodesByIdentity.get(r)}if(!i)return Object.assign(Object.assign({},t),{children:this.preserveCollapseState(t.children)});const s=typeof t.collapsible=="boolean"?t.collapsible:i.collapsible,o=typeof t.collapsed<"u"?t.collapsed:i.collapsed;return Object.assign(Object.assign({},t),{collapsible:s,collapsed:o,children:this.preserveCollapseState(t.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getElementLocation(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new lr(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new lr(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new lr(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),s=this.model.getParentNodeLocation(i);return this.model.getNode(s).element}getElementLocation(e){if(e===null)return[];const t=this.nodes.get(e);if(!t)throw new lr(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function Yw(n){const e=[n.element],t=n.incompressible||!1;return{element:{elements:e,incompressible:t},children:Rt.map(Rt.from(n.children),Yw),collapsible:n.collapsible,collapsed:n.collapsed}}function Zw(n){const e=[n.element],t=n.incompressible||!1;let i,s;for(;[s,i]=Rt.consume(Rt.from(n.children),2),!(s.length!==1||s[0].incompressible);)n=s[0],e.push(n.element);return{element:{elements:e,incompressible:t},children:Rt.map(Rt.concat(s,i),Zw),collapsible:n.collapsible,collapsed:n.collapsed}}function VT(n,e=0){let t;return eVT(i,0)),e===0&&n.element.incompressible?{element:n.element.elements[e],children:t,incompressible:!0,collapsible:n.collapsible,collapsed:n.collapsed}:{element:n.element.elements[e],children:t,collapsible:n.collapsible,collapsed:n.collapsed}}function d9(n){return VT(n,0)}function $U(n,e,t){return n.element===e?Object.assign(Object.assign({},n),{children:t}):Object.assign(Object.assign({},n),{children:Rt.map(Rt.from(n.children),i=>$U(i,e,t))})}const J0e=n=>({getId(e){return e.elements.map(t=>n.getId(t).toString()).join("\0")}});class eCe{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new kO(e,t,i),this.enabled=typeof i.compressionEnabled>"u"?!0:i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=Rt.empty(),i){const s=i.diffIdentityProvider&&J0e(i.diffIdentityProvider);if(e===null){const f=Rt.map(t,this.enabled?Zw:Yw);this._setChildren(null,f,{diffIdentityProvider:s,diffDepth:1/0});return}const o=this.nodes.get(e);if(!o)throw new Error("Unknown compressed tree node");const r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),c=d9(r),d=$U(c,e,t),u=(this.enabled?Zw:Yw)(d),h=l.children.map(f=>f===r?u:f);this._setChildren(l.element,h,{diffIdentityProvider:s,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const i=this.model.getNode().children,s=Rt.map(i,d9),o=Rt.map(s,e?Zw:Yw);this._setChildren(null,o,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const s=new Set,o=a=>{for(const l of a.element.elements)s.add(l),this.nodes.set(l,a.element)},r=a=>{for(const l of a.element.elements)s.has(l)||this.nodes.delete(l)};this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:o,onDidDeleteNode:r}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(typeof e>"u")return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return t===null?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return i===null?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getCompressedNode(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;const t=this.nodes.get(e);if(!t)throw new lr(this.user,`Tree element not found: ${e}`);return t}}const tCe=n=>n[n.length-1];class xO{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new xO(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function iCe(n,e){return{splice(t,i,s){e.splice(t,i,s.map(o=>n.map(o)))},updateElementHeight(t,i){e.updateElementHeight(t,i)}}}function nCe(n,e){return Object.assign(Object.assign({},e),{identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(n(t))}},sorter:e.sorter&&{compare(t,i){return e.sorter.compare(t.elements[0],i.elements[0])}},filter:e.filter&&{filter(t,i){return e.filter.filter(n(t),i)}}})}class sCe{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||tCe;const s=o=>this.elementMapper(o.elements);this.nodeMapper=new yO(o=>new xO(s,o)),this.model=new eCe(e,iCe(this.nodeMapper,t),nCe(s,i))}get onDidSplice(){return je.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(i=>this.nodeMapper.map(i)),deletedNodes:t.map(i=>this.nodeMapper.map(i))}))}get onDidChangeCollapseState(){return je.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return je.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=Rt.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return t===null||typeof t>"u"?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var oCe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o};class EO extends zU{constructor(e,t,i,s,o={}){super(e,t,i,s,o),this.user=e}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=Rt.empty(),i){this.model.setChildren(e,t,i)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new kO(e,t,i)}}class UU{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);o.element.elements.length===1?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,s)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,s))}disposeElement(e,t,i,s){i.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(i.compressedTreeNode,t,i.data,s):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.data,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,t):!1}}oCe([vn],UU.prototype,"compressedTreeNodeProvider",null);function rCe(n,e){return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let i;try{i=n().getCompressedTreeNode(t)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return i.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}class jU extends EO{constructor(e,t,i,s,o={}){const r=()=>this,a=s.map(l=>new UU(r,l));super(e,t,i,a,rCe(r,o))}setChildren(e,t=Rt.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new sCe(e,t,i)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var bd=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function AD(n){return Object.assign(Object.assign({},n),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function WT(n,e){return e.parent?e.parent===n?!0:WT(n,e.parent):!1}function aCe(n,e){return n===e||WT(n,e)||WT(e,n)}class DO{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new DO(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class lCe{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...p.treeItemLoading.classNamesArray),!0):(t.classList.remove(...p.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function u9(n){return{browserEvent:n.browserEvent,elements:n.elements.map(e=>e.element)}}function h9(n){return{browserEvent:n.browserEvent,element:n.element&&n.element.element,target:n.target}}class cCe extends c0{constructor(e){super(e.elements.map(t=>t.element)),this.data=e}}function MD(n){return n instanceof c0?new cCe(n):n}class dCe{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(i=>i.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(MD(e),t)}onDragOver(e,t,i,s,o=!0){return this.dnd.onDragOver(MD(e),t&&t.element,i,s)}drop(e,t,i,s){this.dnd.drop(MD(e),t&&t.element,i,s)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function qU(n){return n&&Object.assign(Object.assign({},n),{collapseByDefault:!0,identityProvider:n.identityProvider&&{getId(e){return n.identityProvider.getId(e.element)}},dnd:n.dnd&&new dCe(n.dnd),multipleSelectionController:n.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return n.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return n.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:n.accessibilityProvider&&Object.assign(Object.assign({},n.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:n.accessibilityProvider.getRole?e=>n.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:n.accessibilityProvider.isChecked?e=>{var t;return!!(!((t=n.accessibilityProvider)===null||t===void 0)&&t.isChecked(e.element))}:void 0,getAriaLabel(e){return n.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return n.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:n.accessibilityProvider.getWidgetRole?()=>n.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:n.accessibilityProvider.getAriaLevel&&(e=>n.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:n.accessibilityProvider.getActiveDescendantId&&(e=>n.accessibilityProvider.getActiveDescendantId(e.element))}),filter:n.filter&&{filter(e,t){return n.filter.filter(e.element,t)}},keyboardNavigationLabelProvider:n.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},n.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return n.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof n.expandOnlyOnTwistieClick>"u"?void 0:typeof n.expandOnlyOnTwistieClick!="function"?n.expandOnlyOnTwistieClick:e=>n.expandOnlyOnTwistieClick(e.element),additionalScrollHeight:n.additionalScrollHeight})}function HT(n,e){e(n),n.children.forEach(t=>HT(t,e))}class KU{constructor(e,t,i,s,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new j,this._onDidChangeNodeSlowState=new j,this.nodeMapper=new yO(a=>new DO(a)),this.disposables=new ue,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=typeof r.autoExpandSingleChildren>"u"?!1:r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,s,r),this.root=AD({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return je.map(this.tree.onDidChangeFocus,u9)}get onDidChangeSelection(){return je.map(this.tree.onDidChangeSelection,u9)}get onMouseDblClick(){return je.map(this.tree.onMouseDblClick,h9)}get onPointer(){return je.map(this.tree.onPointer,h9)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,s,o){const r=new LO(i),a=s.map(c=>new lCe(c,this.nodeMapper,this._onDidChangeNodeSlowState.event)),l=qU(o)||{};return new EO(e,t,r,a,l)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return bd(this,void 0,void 0,function*(){this.refreshPromises.forEach(s=>s.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&typeof t.scrollTop=="number"&&(this.scrollTop=t.scrollTop)})}_updateChildren(e=this.root.element,t=!0,i=!1,s,o){return bd(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new lr(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield je.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,s,o),i)try{this.tree.rerender(r)}catch{}})}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return bd(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new lr(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield je.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(yield this.root.refreshPromise,yield je.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;const s=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield je.toPromise(this._onDidRender.event)),s})}setSelection(e,t){const i=e.map(s=>this.getDataNode(s));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(t=>t.element)}setFocus(e,t){const i=e.map(s=>this.getDataNode(s));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map(t=>t.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new lr(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,s){return bd(this,void 0,void 0,function*(){yield this.refreshNode(e,t,i),this.render(e,i,s)})}refreshNode(e,t,i){return bd(this,void 0,void 0,function*(){let s;return this.subTreeRefreshPromises.forEach((o,r)=>{!s&&aCe(r,e)&&(s=o.then(()=>this.refreshNode(e,t,i)))}),s||this.doRefreshSubTree(e,t,i)})}doRefreshSubTree(e,t,i){return bd(this,void 0,void 0,function*(){let s;e.refreshPromise=new Promise(o=>s=o),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const o=yield this.doRefreshNode(e,t,i);e.stale=!1,yield _N.settled(o.map(r=>this.doRefreshSubTree(r,t,i)))}finally{s()}})}doRefreshNode(e,t,i){return bd(this,void 0,void 0,function*(){e.hasChildren=!!this.dataSource.hasChildren(e.element);let s;if(!e.hasChildren)s=Promise.resolve(Rt.empty());else{const o=this.doGetChildren(e);if(f3(o))s=Promise.resolve(o);else{const r=cu(800);r.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},a=>null),s=o.finally(()=>r.cancel())}}try{const o=yield s;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),Ul(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}})}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return f3(i)?this.processChildren(i):(t=Kn(()=>bd(this,void 0,void 0,function*(){return this.processChildren(yield i)})),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){e.element!==null&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(dt))}setChildren(e,t,i,s){const o=[...t];if(e.children.length===0&&o.length===0)return[];const r=new Map,a=new Map;for(const d of e.children)if(r.set(d.element,d),this.identityProvider){const u=this.tree.isCollapsed(d);a.set(d.id,{node:d,collapsed:u})}const l=[],c=o.map(d=>{const u=!!this.dataSource.hasChildren(d);if(!this.identityProvider){const _=AD({element:d,parent:e,hasChildren:u});return u&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const h=this.identityProvider.getId(d).toString(),f=a.get(h);if(f){const _=f.node;return r.delete(_.element),this.nodes.delete(_.element),this.nodes.set(d,_),_.element=d,_.hasChildren=u,i?f.collapsed?(_.children.forEach(b=>HT(b,v=>this.nodes.delete(v.element))),_.children.splice(0,_.children.length),_.stale=!0):l.push(_):u&&this.collapseByDefault&&!this.collapseByDefault(d)&&(_.collapsedByDefault=!1,l.push(_)),_}const g=AD({element:d,parent:e,id:h,hasChildren:u});return s&&s.viewState.focus&&s.viewState.focus.indexOf(h)>-1&&s.focus.push(g),s&&s.viewState.selection&&s.viewState.selection.indexOf(h)>-1&&s.selection.push(g),s&&s.viewState.expanded&&s.viewState.expanded.indexOf(h)>-1?l.push(g):u&&this.collapseByDefault&&!this.collapseByDefault(d)&&(g.collapsedByDefault=!1,l.push(g)),g});for(const d of r.values())HT(d,u=>this.nodes.delete(u.element));for(const d of c)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...c),e!==this.root&&this.autoExpandSingleChildren&&c.length===1&&l.length===0&&(c[0].collapsedByDefault=!1,l.push(c[0])),l}render(e,t,i){const s=e.children.map(r=>this.asTreeElement(r,t)),o=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(r){return i.diffIdentityProvider.getId(r.element)}}});this.tree.setChildren(e===this.root?null:e,s,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:i=e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?Rt.map(e.children,s=>this.asTreeElement(s,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class IO{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new IO(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class uCe{constructor(e,t,i,s){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderCompressedElements(e,t,i,s){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...p.treeItemLoading.classNamesArray),!0):(t.classList.remove(...p.treeItemLoading.classNamesArray),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,s)}disposeCompressedElements(e,t,i,s){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Pt(this.disposables)}}function hCe(n){const e=n&&qU(n);return e&&Object.assign(Object.assign({},e),{keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return n.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(i=>i.element))}})})}class fCe extends KU{constructor(e,t,i,s,o,r,a={}){super(e,t,i,o,r,a),this.compressionDelegate=s,this.compressibleNodeMapper=new yO(l=>new IO(l)),this.filter=a.filter}createTree(e,t,i,s,o){const r=new LO(i),a=s.map(c=>new uCe(c,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),l=hCe(o)||{};return new jU(e,t,r,a,l)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=h=>this.identityProvider.getId(h).toString(),s=h=>{const f=new Set;for(const g of h){const _=this.tree.getCompressedTreeNode(g===this.root?null:g);if(_.element)for(const b of _.element.elements)f.add(i(b.element))}return f},o=s(this.tree.getSelection()),r=s(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let l=!1;const c=this.getFocus();let d=!1;const u=h=>{const f=h.element;if(f)for(let g=0;g{const i=this.filter.filter(t,1),s=gCe(i);if(s===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return s===1})),super.processChildren(e)}}function gCe(n){return typeof n=="boolean"?n?1:0:SO(n)?o1(n.visibility):o1(n)}class mCe extends zU{constructor(e,t,i,s,o,r={}){super(e,t,i,s,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t,i){return new kO(e,t,i)}}new Re("isMac",wt,m("isMac","Whether the operating system is macOS"));new Re("isLinux",Ds,m("isLinux","Whether the operating system is Linux"));const Pk=new Re("isWindows",qn,m("isWindows","Whether the operating system is Windows"));new Re("isWeb",Ou,m("isWeb","Whether the platform is a web browser"));new Re("isMacNative",wt&&!Ou,m("isMacNative","Whether the operating system is macOS on a non-browser platform"));new Re("isIOS",Ta,m("isIOS","Whether the operating system is iOS"));new Re("isDevelopment",!1,!0);const GU="inputFocus";new Re(GU,!1,m("inputFocus","Whether keyboard focus is inside an input box"));var Yl=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},kt=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const Nr=At("listService");let zT=class{constructor(e){this._themeService=e,this.disposables=new ue,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&((t=this._lastFocusedWidget)===null||t===void 0||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(i=this._lastFocusedWidget)===null||i===void 0||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const s=new VU(Cr(),"");this.disposables.add(Sf(s,this._themeService))}if(this.lists.some(s=>s.widget===e))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),Mc(e.onDidFocus(()=>this.setLastFocusedList(e)),vt(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(s=>s!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};zT=Yl([kt(0,ki)],zT);const YU=new Re("listFocus",!0),Ok=new Re("listSupportsMultiselect",!0),ZU=xe.and(YU,xe.not(GU)),NO=new Re("listHasSelectionOrFocus",!1),TO=new Re("listDoubleSelection",!1),AO=new Re("listMultiSelection",!1),Fk=new Re("listSelectionNavigation",!1),MO=new Re("treeElementCanCollapse",!1),pCe=new Re("treeElementHasParent",!1),RO=new Re("treeElementCanExpand",!1),_Ce=new Re("treeElementHasChild",!1),XU="listAutomaticKeyboardNavigation";function Bk(n,e){const t=n.createScoped(e.getHTMLElement());return YU.bindTo(t),t}const ug="workbench.list.multiSelectModifier",$T="workbench.list.openMode",mr="workbench.list.horizontalScrolling",OS="workbench.list.keyboardNavigation",PO="workbench.list.automaticKeyboardNavigation",l1="workbench.tree.indent",FS="workbench.tree.renderIndentGuides",Pa="workbench.list.smoothScrolling",Bl="workbench.list.mouseWheelScrollSensitivity",Vl="workbench.list.fastScrollSensitivity",BS="workbench.tree.expandMode";function Wl(n){return n.getValue(ug)==="alt"}class bCe extends J{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Wl(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(ug)&&(this.useAltAsMultipleSelectionModifier=Wl(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:OU(e)}isSelectionRangeChangeEvent(e){return FU(e)}}function Vk(n,e,t){var i;const s=new ue;return[Object.assign(Object.assign({},n),{keyboardNavigationDelegate:{mightProducePrintableCharacter(r){return t.mightProducePrintableCharacter(r)}},smoothScrolling:!!e.getValue(Pa),mouseWheelScrollSensitivity:e.getValue(Bl),fastScrollSensitivity:e.getValue(Vl),multipleSelectionController:(i=n.multipleSelectionController)!==null&&i!==void 0?i:s.add(new bCe(e))}),s]}let UT=class extends Gl{constructor(e,t,i,s,o,r,a,l,c,d){const u=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!c.getValue(mr),[h,f]=Vk(o,c,d);super(e,t,i,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},fa(l.getColorTheme(),Ik)),h),{horizontalScrolling:u})),this.disposables.add(f),this.contextKeyService=Bk(r,this),this.themeService=l,this.listSupportsMultiSelect=Ok.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),Fk.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listHasSelectionOrFocus=NO.bindTo(this.contextKeyService),this.listDoubleSelection=TO.bindTo(this.contextKeyService),this.listMultiSelection=AO.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Wl(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const _=this.getSelection(),b=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(_.length>0||b.length>0),this.listMultiSelection.set(_.length>1),this.listDoubleSelection.set(_.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const _=this.getSelection(),b=this.getFocus();this.listHasSelectionOrFocus.set(_.length>0||b.length>0)})),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(ug)&&(this._useAltAsMultipleSelectionModifier=Wl(c));let b={};if(_.affectsConfiguration(mr)&&this.horizontalScrolling===void 0){const v=!!c.getValue(mr);b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(Pa)){const v=!!c.getValue(Pa);b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Bl)){const v=c.getValue(Bl);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Vl)){const v=c.getValue(Vl);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new QU(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Sf(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),super.dispose()}};UT=Yl([kt(5,lt),kt(6,Nr),kt(7,ki),kt(8,li),kt(9,Ui)],UT);let f9=class extends B0e{constructor(e,t,i,s,o,r,a,l,c,d){const u=typeof o.horizontalScrolling<"u"?o.horizontalScrolling:!!c.getValue(mr),[h,f]=Vk(o,c,d);super(e,t,i,s,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},fa(l.getColorTheme(),Ik)),h),{horizontalScrolling:u})),this.disposables=new ue,this.disposables.add(f),this.contextKeyService=Bk(r,this),this.themeService=l,this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=Ok.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),Fk.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this._useAltAsMultipleSelectionModifier=Wl(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),o.overrideStyles&&this.disposables.add(Sf(this,l,o.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(_=>{_.affectsConfiguration(ug)&&(this._useAltAsMultipleSelectionModifier=Wl(c));let b={};if(_.affectsConfiguration(mr)&&this.horizontalScrolling===void 0){const v=!!c.getValue(mr);b=Object.assign(Object.assign({},b),{horizontalScrolling:v})}if(_.affectsConfiguration(Pa)){const v=!!c.getValue(Pa);b=Object.assign(Object.assign({},b),{smoothScrolling:v})}if(_.affectsConfiguration(Bl)){const v=c.getValue(Bl);b=Object.assign(Object.assign({},b),{mouseWheelScrollSensitivity:v})}if(_.affectsConfiguration(Vl)){const v=c.getValue(Vl);b=Object.assign(Object.assign({},b),{fastScrollSensitivity:v})}Object.keys(b).length>0&&this.updateOptions(b)})),this.navigator=new QU(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Sf(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};f9=Yl([kt(5,lt),kt(6,Nr),kt(7,ki),kt(8,li),kt(9,Ui)],f9);let g9=class extends Rk{constructor(e,t,i,s,o,r,a,l,c,d,u){const h=typeof r.horizontalScrolling<"u"?r.horizontalScrolling:!!d.getValue(mr),[f,g]=Vk(r,d,u);super(e,t,i,s,o,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},fa(c.getColorTheme(),Ik)),f),{horizontalScrolling:h})),this.disposables.add(g),this.contextKeyService=Bk(a,this),this.themeService=c,this.listSupportsMultiSelect=Ok.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),Fk.bindTo(this.contextKeyService).set(!!r.selectionNavigation),this.listHasSelectionOrFocus=NO.bindTo(this.contextKeyService),this.listDoubleSelection=TO.bindTo(this.contextKeyService),this.listMultiSelection=AO.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Wl(d),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const b=this.getSelection(),v=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(b.length>0||v.length>0),this.listMultiSelection.set(b.length>1),this.listDoubleSelection.set(b.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const b=this.getSelection(),v=this.getFocus();this.listHasSelectionOrFocus.set(b.length>0||v.length>0)})),this.disposables.add(d.onDidChangeConfiguration(b=>{b.affectsConfiguration(ug)&&(this._useAltAsMultipleSelectionModifier=Wl(d));let v={};if(b.affectsConfiguration(mr)&&this.horizontalScrolling===void 0){const C=!!d.getValue(mr);v=Object.assign(Object.assign({},v),{horizontalScrolling:C})}if(b.affectsConfiguration(Pa)){const C=!!d.getValue(Pa);v=Object.assign(Object.assign({},v),{smoothScrolling:C})}if(b.affectsConfiguration(Bl)){const C=d.getValue(Bl);v=Object.assign(Object.assign({},v),{mouseWheelScrollSensitivity:C})}if(b.affectsConfiguration(Vl)){const C=d.getValue(Vl);v=Object.assign(Object.assign({},v),{fastScrollSensitivity:C})}Object.keys(v).length>0&&this.updateOptions(v)})),this.navigator=new vCe(this,Object.assign({configurationService:d},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;(t=this._styler)===null||t===void 0||t.dispose(),this._styler=Sf(this,this.themeService,e)}dispose(){var e;(e=this._styler)===null||e===void 0||e.dispose(),this.disposables.dispose(),super.dispose()}};g9=Yl([kt(6,lt),kt(7,Nr),kt(8,ki),kt(9,li),kt(10,Ui)],g9);class OO extends J{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new j),this.onDidOpen=this._onDidOpen.event,this._register(je.filter(this.widget.onDidChangeSelection,s=>s.browserEvent instanceof KeyboardEvent)(s=>this.onSelectionFromKeyboard(s))),this._register(this.widget.onPointer(s=>this.onPointer(s.element,s.browserEvent))),this._register(this.widget.onMouseDblClick(s=>this.onMouseDblClick(s.element,s.browserEvent))),typeof(t==null?void 0:t.openOnSingleClick)!="boolean"&&(t!=null&&t.configurationService)?(this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue($T))!=="doubleClick",this._register(t==null?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=(t==null?void 0:t.configurationService.getValue($T))!=="doubleClick"}))):this.openOnSingleClick=(i=t==null?void 0:t.openOnSingleClick)!==null&&i!==void 0?i:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;const t=e.browserEvent,i=typeof t.preserveFocus=="boolean"?t.preserveFocus:!0,s=typeof t.pinned=="boolean"?t.pinned:!i,o=!1;this._open(this.getSelectedElement(),i,s,o,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick||t.detail===2)return;const s=t.button===1,o=!0,r=s,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const o=!1,r=!0,a=t.ctrlKey||t.metaKey||t.altKey;this._open(e,o,r,a,t)}_open(e,t,i,s,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:s,element:e,browserEvent:o})}}class QU extends OO{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class vCe extends OO{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class CCe extends OO{constructor(e,t){super(e,t)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}}function wCe(n,e){let t=!1;return i=>{if(i.toKeybinding().isModifierKey())return!1;if(t)return t=!1,!1;const s=e.softDispatch(i,n);return s&&s.enterChord?(t=!0,!1):(t=!1,!0)}}let m9=class extends EO{constructor(e,t,i,s,o,r,a,l,c,d,u){const{options:h,getAutomaticKeyboardNavigation:f,disposable:g}=u0(t,o,r,c,d,u);super(e,t,i,s,h),this.disposables.add(g),this.internals=new kf(this,o,f,o.overrideStyles,r,a,l,c,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};m9=Yl([kt(5,lt),kt(6,Nr),kt(7,ki),kt(8,li),kt(9,Ui),kt(10,Eo)],m9);let p9=class extends jU{constructor(e,t,i,s,o,r,a,l,c,d,u){const{options:h,getAutomaticKeyboardNavigation:f,disposable:g}=u0(t,o,r,c,d,u);super(e,t,i,s,h),this.disposables.add(g),this.internals=new kf(this,o,f,o.overrideStyles,r,a,l,c,u),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};p9=Yl([kt(5,lt),kt(6,Nr),kt(7,ki),kt(8,li),kt(9,Ui),kt(10,Eo)],p9);let _9=class extends mCe{constructor(e,t,i,s,o,r,a,l,c,d,u,h){const{options:f,getAutomaticKeyboardNavigation:g,disposable:_}=u0(t,r,a,d,u,h);super(e,t,i,s,o,f),this.disposables.add(_),this.internals=new kf(this,r,g,r.overrideStyles,a,l,c,d,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};_9=Yl([kt(6,lt),kt(7,Nr),kt(8,ki),kt(9,li),kt(10,Ui),kt(11,Eo)],_9);let jT=class extends KU{constructor(e,t,i,s,o,r,a,l,c,d,u,h){const{options:f,getAutomaticKeyboardNavigation:g,disposable:_}=u0(t,r,a,d,u,h);super(e,t,i,s,o,f),this.disposables.add(_),this.internals=new kf(this,r,g,r.overrideStyles,a,l,c,d,h),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};jT=Yl([kt(6,lt),kt(7,Nr),kt(8,ki),kt(9,li),kt(10,Ui),kt(11,Eo)],jT);let b9=class extends fCe{constructor(e,t,i,s,o,r,a,l,c,d,u,h,f){const{options:g,getAutomaticKeyboardNavigation:_,disposable:b}=u0(t,a,l,u,h,f);super(e,t,i,s,o,r,g),this.disposables.add(b),this.internals=new kf(this,a,_,a.overrideStyles,l,c,d,u,f),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};b9=Yl([kt(7,lt),kt(8,Nr),kt(9,ki),kt(10,li),kt(11,Ui),kt(12,Eo)],b9);function u0(n,e,t,i,s,o){var r;const a=()=>{let g=!!t.getContextKeyValue(XU);return g&&(g=!!i.getValue(PO)),g},l=o.isScreenReaderOptimized(),c=e.simpleKeyboardNavigation||l?"simple":i.getValue(OS),d=e.horizontalScrolling!==void 0?e.horizontalScrolling:!!i.getValue(mr),[u,h]=Vk(e,i,s),f=e.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:h,options:Object.assign(Object.assign({keyboardSupport:!1},u),{indent:typeof i.getValue(l1)=="number"?i.getValue(l1):void 0,renderIndentGuides:i.getValue(FS),smoothScrolling:!!i.getValue(Pa),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:c==="simple",filterOnType:c==="filter",horizontalScrolling:d,keyboardNavigationEventFilter:wCe(n,s),additionalScrollHeight:f,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(r=e.expandOnlyOnTwistieClick)!==null&&r!==void 0?r:i.getValue(BS)==="doubleClick"})}}let kf=class{constructor(e,t,i,s,o,r,a,l,c){this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=Bk(o,e),this.listSupportsMultiSelect=Ok.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(t.multipleSelectionSupport!==!1),Fk.bindTo(this.contextKeyService).set(!!t.selectionNavigation),this.hasSelectionOrFocus=NO.bindTo(this.contextKeyService),this.hasDoubleSelection=TO.bindTo(this.contextKeyService),this.hasMultiSelection=AO.bindTo(this.contextKeyService),this.treeElementCanCollapse=MO.bindTo(this.contextKeyService),this.treeElementHasParent=pCe.bindTo(this.contextKeyService),this.treeElementCanExpand=RO.bindTo(this.contextKeyService),this.treeElementHasChild=_Ce.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Wl(l);const u=new Set;u.add(XU);const h=()=>{const _=c.isScreenReaderOptimized()?"simple":l.getValue(OS);e.updateOptions({simpleKeyboardNavigation:_==="simple",filterOnType:_==="filter"})};this.updateStyleOverrides(s);const f=()=>{const g=e.getFocus()[0];if(!g)return;const _=e.getNode(g);this.treeElementCanCollapse.set(_.collapsible&&!_.collapsed),this.treeElementHasParent.set(!!e.getParentElement(g)),this.treeElementCanExpand.set(_.collapsible&&_.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(g))};this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const g=e.getSelection(),_=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(g.length>0||_.length>0),this.hasMultiSelection.set(g.length>1),this.hasDoubleSelection.set(g.length===2)})}),e.onDidChangeFocus(()=>{const g=e.getSelection(),_=e.getFocus();this.hasSelectionOrFocus.set(g.length>0||_.length>0),f()}),e.onDidChangeCollapseState(f),e.onDidChangeModel(f),l.onDidChangeConfiguration(g=>{let _={};if(g.affectsConfiguration(ug)&&(this._useAltAsMultipleSelectionModifier=Wl(l)),g.affectsConfiguration(l1)){const b=l.getValue(l1);_=Object.assign(Object.assign({},_),{indent:b})}if(g.affectsConfiguration(FS)){const b=l.getValue(FS);_=Object.assign(Object.assign({},_),{renderIndentGuides:b})}if(g.affectsConfiguration(Pa)){const b=!!l.getValue(Pa);_=Object.assign(Object.assign({},_),{smoothScrolling:b})}if(g.affectsConfiguration(OS)&&h(),g.affectsConfiguration(PO)&&(_=Object.assign(Object.assign({},_),{automaticKeyboardNavigation:i()})),g.affectsConfiguration(mr)&&t.horizontalScrolling===void 0){const b=!!l.getValue(mr);_=Object.assign(Object.assign({},_),{horizontalScrolling:b})}if(g.affectsConfiguration(BS)&&t.expandOnlyOnTwistieClick===void 0&&(_=Object.assign(Object.assign({},_),{expandOnlyOnTwistieClick:l.getValue(BS)==="doubleClick"})),g.affectsConfiguration(Bl)){const b=l.getValue(Bl);_=Object.assign(Object.assign({},_),{mouseWheelScrollSensitivity:b})}if(g.affectsConfiguration(Vl)){const b=l.getValue(Vl);_=Object.assign(Object.assign({},_),{fastScrollSensitivity:b})}Object.keys(_).length>0&&e.updateOptions(_)}),this.contextKeyService.onDidChangeContext(g=>{g.affectsSome(u)&&e.updateOptions({automaticKeyboardNavigation:i()})}),c.onDidChangeScreenReaderOptimized(()=>h())),this.navigator=new CCe(e,Object.assign({configurationService:l},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){Pt(this.styler),this.styler=e?Sf(this.tree,this.themeService,e):J.None}dispose(){this.disposables=Pt(this.disposables),Pt(this.styler),this.styler=void 0}};kf=Yl([kt(4,lt),kt(5,Nr),kt(6,ki),kt(7,li),kt(8,Eo)],kf);const yCe=on.as(og.Configuration);yCe.registerConfiguration({id:"workbench",order:7,title:m("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[ug]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[m("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),m("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:m({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[$T]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[mr]:{type:"boolean",default:!1,description:m("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[l1]:{type:"number",default:8,minimum:4,maximum:40,description:m("tree indent setting","Controls tree indentation in pixels.")},[FS]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:m("render tree indent guides","Controls whether the tree should render indent guides.")},[Pa]:{type:"boolean",default:!1,description:m("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Bl]:{type:"number",default:1,description:m("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Vl]:{type:"number",default:5,description:m("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[OS]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[m("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),m("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),m("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:m("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[PO]:{type:"boolean",default:!0,markdownDescription:m("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},[BS]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:m("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}});var qT;(function(n){n[n.PRESERVE=0]="PRESERVE",n[n.LAST=1]="LAST"})(qT||(qT={}));const hg={Quickaccess:"workbench.contributions.quickaccess"};class SCe{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),vt(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Zf([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}on.add(hg.Quickaccess,new SCe);const td=At("quickInputService");var LCe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},v9=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let KT=class extends J{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=on.as(hg.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var s;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let f;if(a&&l&&l!==r){const g=a.value.substr(l.prefix.length);g&&(f=`${r.prefix}${g}`)}if(!f){const g=o==null?void 0:o.defaultFilterValue;g===qT.LAST?f=this.lastAcceptedPickerValues.get(r):typeof g=="string"&&(f=`${r.prefix}${g}`)}typeof f=="string"&&(e=f)}const c=new ue,d=c.add(this.quickInputService.createQuickPick());d.value=e,this.adjustValueSelection(d,r,i),d.placeholder=r==null?void 0:r.placeholder,d.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||i!=null&&i.quickNavigateConfiguration)&&(d.itemActivation=(s=i==null?void 0:i.itemActivation)!==null&&s!==void 0?s:ha.SECOND),d.contextKey=r==null?void 0:r.contextKey,d.filterValue=f=>f.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(d.ariaLabel=r==null?void 0:r.placeholder);let u;t&&(u=new tP,c.add(zc(d.onWillAccept)(f=>{f.veto(),d.hide()}))),c.add(this.registerPickerListeners(d,o,r,e));const h=c.add(new is);if(o&&c.add(o.provide(d,h.token)),zc(d.onDidHide)(()=>{d.selectedItems.length===0&&h.cancel(),c.dispose(),u==null||u.complete(d.selectedItems.slice(0))}),d.show(),t)return u==null?void 0:u.p}adjustValueSelection(e,t,i){var s;let o;i!=null&&i.preserveValue?o=[e.value.length,e.value.length]:o=[(s=t==null?void 0:t.prefix.length)!==null&&s!==void 0?s:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,s){const o=new ue,r=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return o.add(vt(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};KT=LCe([v9(0,td),v9(1,Et)],KT);var kCe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},X_=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let GT=class extends Iue{constructor(e,t,i,s,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=s,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(KT))),this._quickAccess}createController(e=this.layoutService,t){var i,s;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>e.focus(),createList:(a,l,c,d,u)=>this.instantiationService.createInstance(UT,a,l,c,d,u),styles:this.computeStyles()},r=this._register(new Mk(Object.assign(Object.assign({},o),t)));return r.layout(e.dimension,(s=(i=e.offset)===null||i===void 0?void 0:i.top)!==null&&s!==void 0?s:0),this._register(e.onDidLayout(a=>{var l,c;return r.layout(a,(c=(l=e.offset)===null||l===void 0?void 0:l.top)!==null&&c!==void 0?c:0)})),this._register(r.onShow(()=>this.resetContextKeys())),this._register(r.onHide(()=>this.resetContextKeys())),r}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new Re(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=xt.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},fa(this.theme,{quickInputBackground:o7,quickInputForeground:che,quickInputTitleBackground:dhe,contrastBorder:Ii,widgetShadow:gu})),inputBox:fa(this.theme,{inputForeground:wP,inputBackground:CP,inputBorder:yP,inputValidationInfoBackground:Dz,inputValidationInfoForeground:Iz,inputValidationInfoBorder:Nz,inputValidationWarningBackground:Tz,inputValidationWarningForeground:Az,inputValidationWarningBorder:Mz,inputValidationErrorBackground:Rz,inputValidationErrorForeground:Pz,inputValidationErrorBorder:Oz}),countBadge:fa(this.theme,{badgeBackground:Pb,badgeForeground:Ob,badgeBorder:Ii}),button:fa(this.theme,{buttonForeground:ehe,buttonBackground:FN,buttonHoverBackground:the,buttonBorder:Ii}),progressBar:fa(this.theme,{progressBarBackground:ihe}),keybindingLabel:fa(this.theme,{keybindingLabelBackground:fhe,keybindingLabelForeground:ghe,keybindingLabelBorder:mhe,keybindingLabelBottomBorder:phe,keybindingLabelShadow:gu}),list:fa(this.theme,{listBackground:o7,listInactiveFocusForeground:Ow,listInactiveSelectionIconForeground:Fw,listInactiveFocusBackground:Bw,listFocusOutline:Is,listInactiveFocusOutline:Is,pickerGroupBorder:hhe,pickerGroupForeground:uhe})}}};GT=kCe([X_(0,Et),X_(1,lt),X_(2,ki),X_(3,Eo),X_(4,o0)],GT);var JU=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Sh=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let YT=class extends GT{constructor(e,t,i,s,o,r){super(t,i,s,o,new oT(e.getContainerDomNode(),r)),this.host=void 0;const a=Ep.get(e);if(a){const l=a.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return l.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};YT=JU([Sh(1,Et),Sh(2,lt),Sh(3,ki),Sh(4,Eo),Sh(5,Zt)],YT);let ZT=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(YT,e);this.mapEditorToService.set(e,t),zc(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=xt.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};ZT=JU([Sh(0,Et),Sh(1,Zt)],ZT);class Ep{constructor(e){this.editor=e,this.widget=new Wk(this.editor)}static get(e){return e.getContribution(Ep.ID)}dispose(){this.widget.dispose()}}Ep.ID="editor.controller.quickInput";class Wk{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Wk.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Wk.ID="editor.contrib.quickInputWidget";Kt(Ep.ID,Ep);class xCe{constructor(e,t,i,s,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=s,this.background=o}}function ECe(n){if(!n||!Array.isArray(n))return[];const e=[];let t=0;for(let i=0,s=n.length;i{const h=MCe(d.token,u.token);return h!==0?h:d.index-u.index});let t=0,i="000000",s="ffffff";for(;n.length>=1&&n[0].token==="";){const d=n.shift();d.fontStyle!==-1&&(t=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(s=d.background)}const o=new NCe;for(let d of e)o.getId(d);const r=o.getId(i),a=o.getId(s),l=new FO(t,r,a),c=new BO(l);for(let d=0,u=n.length;d"u"){const s=this._match(t),o=ACe(t);i=(s.metadata|o<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const TCe=/\b(comment|string|regex|regexp)\b/;function ACe(n){const e=n.match(TCe);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function MCe(n,e){return ne?1:0}class FO{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}clone(){return new FO(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),i!==0&&(this._background=i),this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}}class BO{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;const t=e.indexOf(".");let i,s;t===-1?(i=e,s=""):(i=e.substring(0,t),s=e.substring(t+1));const o=this._children.get(i);return typeof o<"u"?o.match(s):this._mainRule}insert(e,t,i,s){if(e===""){this._mainRule.acceptOverwrite(t,i,s);return}const o=e.indexOf(".");let r,a;o===-1?(r=e,a=""):(r=e.substring(0,o),a=e.substring(o+1));let l=this._children.get(r);typeof l>"u"&&(l=new BO(this._mainRule.clone()),this._children.set(r,l)),l.insert(a,t,i,s)}}function RCe(n){const e=[];for(let t=1,i=n.length;te.fire()),n==null||n.onDidProductIconThemeChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const i=n?n.getProductIconTheme():new tj,s={},o=a=>{const l=i.getIcon(a);if(!l)return;const c=l.font;return c?(s[c.id]=c.definition,`.codicon-${a.id}:before { content: '${l.fontCharacter}'; font-family: ${e7(c.id)}; }`):`.codicon-${a.id}:before { content: '${l.fontCharacter}'; }`},r=[];for(let a of t.getIcons()){const l=o(a);l&&r.push(l)}for(let a in s){const l=s[a],c=l.weight?`font-weight: ${l.weight};`:"",d=l.style?`font-style: ${l.style};`:"",u=l.src.map(h=>`${gf(h.location)} format('${h.format}')`).join(", ");r.push(`@font-face { src: ${u}; font-family: ${e7(a)};${c}${d} font-display: block; }`)}return r.join(` +`)}}}class tj{getIcon(e){const t=H$();let i=e.defaults;for(;ai.isThemeIcon(i);){const s=t.getIcon(i.id);if(!s)return;i=s.defaults}return i}}const Ph="vs",VS="vs-dark",Gm="hc-black",ij=on.as(xz.ColorContribution),VCe=on.as(mz.ThemingContribution);class nj{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(Xw(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,X.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=XT(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,X.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);if(i)return i;if(t!==!1)return this.getDefault(e)}getDefault(e){let t=this.defaultColors[e];return t||(t=ij.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case Ph:return Gr.LIGHT;case Gm:return Gr.HIGH_CONTRAST;default:return Gr.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const o=XT(this.themeData.base);e=o.rules,o.encodedTokensColors&&(t=o.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],s=this.themeData.colors["editor.background"];if(i||s){const o={token:""};i&&(o.foreground=i),s&&(o.background=s),e.push(o)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=ej.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const o=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=ms.getForeground(o),a=ms.getFontStyle(o);return{foreground:r,italic:!!(a&1),bold:!!(a&2),underline:!!(a&4),strikethrough:!!(a&8)}}}function Xw(n){return n===Ph||n===VS||n===Gm}function XT(n){switch(n){case Ph:return PCe;case VS:return OCe;case Gm:return FCe}}function RD(n){const e=XT(n);return new nj(n,e)}class WCe extends J{constructor(){super(),this._onColorThemeChange=this._register(new j),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new j),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new tj,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Ph,RD(Ph)),this._knownThemes.set(VS,RD(VS)),this._knownThemes.set(Gm,RD(Gm));const e=BCe(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Ph),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),yue("(forced-colors: active)",()=>{this._updateActualTheme()})}registerEditorContainer(e){return Tv(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Cr(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),J.None}_registerShadowDomContainer(e){const t=Cr(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let i=0;i{i.base===e&&i.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;this._knownThemes.has(e)?t=this._knownThemes.get(e):t=this._knownThemes.get(Ph),this._desiredTheme=t,this._updateActualTheme()}_updateActualTheme(){const e=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get(Gm):this._desiredTheme;this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._updateActualTheme()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:r=>{t[r]||(e.push(r),t[r]=!0)}};VCe.getThemingParticipants().forEach(r=>r(this._theme,i,this._environment));const s=[];for(const r of ij.getColors()){const a=this._theme.getColor(r.id,!0);a&&s.push(`${kz(r.id)}: ${a.toString()};`)}i.addRule(`.monaco-editor { ${s.join(` +`)} }`);const o=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(RCe(o)),this._themeCSS=e.join(` +`),this._updateCSS(),Ri.setColorMap(o),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}const Jo=At("themeService");var HCe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},C9=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let QT=class extends J{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new j,this._accessibilityModeEnabledContext=Q1.bindTo(this._contextKeyService);const i=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(s=>{s.affectsConfiguration("editor.accessibilitySupport")&&(i(),this._onDidChangeScreenReaderOptimized.fire())})),i(),this.onDidChangeScreenReaderOptimized(()=>i())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}getAccessibilitySupport(){return this._accessibilitySupport}};QT=HCe([C9(0,lt),C9(1,li)],QT);var sj=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Qw=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let JT=class{constructor(e){this._commandService=e}createMenu(e,t,i){return new eA(e,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};JT=sj([Qw(0,sn)],JT);let eA=class tm{constructor(e,t,i,s,o){this._id=e,this._options=t,this._commandService=i,this._contextKeyService=s,this._menuService=o,this._disposables=new ue,this._menuGroups=[],this._contextKeys=new Set,this._build();const r=new ni(()=>{this._build(),this._onDidChange.fire(this)},t.eventDebounceDelay);this._disposables.add(r),this._disposables.add(qo.onDidChangeMenu(c=>{c.has(e)&&r.schedule()}));const a=this._disposables.add(new ue),l=()=>{const c=new ni(()=>this._onDidChange.fire(this),t.eventDebounceDelay);a.add(c),a.add(s.onDidChangeContext(d=>{d.affectsSome(this._contextKeys)&&c.schedule()}))};this._onDidChange=new j({onFirstListenerAdd:l,onLastListenerRemove:a.clear.bind(a)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const e=qo.getMenuItems(this._id);let t;e.sort(tm._compareMenuItems);for(const i of e){const s=i.group||"";(!t||t[0]!==s)&&(t=[s,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(tm._fillInKbExprKeys(e.when,this._contextKeys),fm(e)){if(e.command.precondition&&tm._fillInKbExprKeys(e.command.precondition,this._contextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;tm._fillInKbExprKeys(t,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&qo.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(let i of this._menuGroups){const[s,o]=i,r=[];for(const a of o)if(this._contextKeyService.contextMatchesRules(a.when)){const l=fm(a)?new fu(a.command,a.alt,e,this._contextKeyService,this._commandService):new vP(a,this._menuService,this._contextKeyService,e);r.push(l)}r.length>0&&t.push([s,r])}return t}static _fillInKbExprKeys(e,t){if(e)for(let i of e.keys())t.add(i)}static _compareMenuItems(e,t){let i=e.group,s=t.group;if(i!==s){if(i){if(!s)return-1}else return 1;if(i==="navigation")return-1;if(s==="navigation")return 1;let a=i.localeCompare(s);if(a!==0)return a}let o=e.order||0,r=t.order||0;return or?1:tm._compareTitles(fm(e)?e.command.title:e.title,fm(t)?t.command.title:t.title)}static _compareTitles(e,t){const i=typeof e=="string"?e:e.original,s=typeof t=="string"?t:t.original;return i.localeCompare(s)}};eA=sj([Qw(2,sn),Qw(3,lt),Qw(4,ig)],eA);var zCe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},w9=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},Q_=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};let tA=class extends J{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",(ea||GR)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const e=()=>{const t=new tP;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=t,navigator.clipboard.write([new ClipboardItem({"text/plain":t.p})]).catch(i=>Q_(this,void 0,void 0,function*(){(!(i instanceof Error)||i.name!=="NotAllowedError"||!t.isRejected)&&this.logService.error(i)}))};this.layoutService.hasContainer&&(this._register(de(this.layoutService.container,"click",e)),this._register(de(this.layoutService.container,"keydown",e)))}writeText(e,t){return Q_(this,void 0,void 0,function*(){if(t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(o){console.error(o)}const i=document.activeElement,s=document.body.appendChild(le("textarea",{"aria-hidden":!0}));s.style.height="1px",s.style.width="1px",s.style.position="absolute",s.value=e,s.focus(),s.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(s)})}readText(e){return Q_(this,void 0,void 0,function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}})}readFindText(){return Q_(this,void 0,void 0,function*(){return this.findText})}writeFindText(e){return Q_(this,void 0,void 0,function*(){this.findText=e})}};tA=zCe([w9(0,o0),w9(1,na)],tA);var $Ce=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},UCe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const ev="data-keybinding-context";let VO=class{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}setValue(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){const t=this._value[e];return typeof t>"u"&&this._parent?this._parent.getValue(e):t}};class Dp extends VO{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Dp.INSTANCE=new Dp;class c1 extends VO{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Km.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(s=>{if(s.source===6){const o=Array.from(Rt.map(this._values,([r])=>r));this._values.clear(),i.fire(new S9(o))}else{const o=[];for(const r of s.affectedKeys){const a=`config.${r}`,l=this._values.findSuperstr(a);l!==void 0&&(o.push(...Rt.map(l,([c])=>c)),this._values.deleteSuperstr(a)),this._values.has(a)&&(o.push(a),this._values.delete(a))}i.fire(new S9(o))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(c1._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(c1._keyPrefix.length),i=this._configurationService.getValue(t);let s;switch(typeof i){case"number":case"boolean":case"string":s=i;break;default:Array.isArray(i)?s=JSON.stringify(i):s=i}return this._values.set(e,s),s}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}c1._keyPrefix="config.";class jCe{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class y9{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class S9{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class qCe{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class oj{constructor(e){this._onDidChangeContext=new Iy({merge:t=>new qCe(t)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new jCe(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new KCe(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(t):!0}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new y9(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new y9(e))}getContext(e){return this._isDisposed?Dp.INSTANCE:this.getContextValuesContainer(GCe(e))}}let iA=class extends oj{constructor(e){super(0),this._contexts=new Map,this._toDispose=new ue,this._lastContextId=0;const t=new c1(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?Dp.INSTANCE:this._contexts.get(e)||Dp.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new VO(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};iA=$Ce([UCe(0,li)],iA);class KCe extends oj{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new $s,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(ev)){let i="";this._domNode.classList&&(i=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${i?": "+i:""}`)}this._domNode.setAttribute(ev,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(ev),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?Dp.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function GCe(n){for(;n;){if(n.hasAttribute(ev)){const e=n.getAttribute(ev);return e?parseInt(e,10):NaN}n=n.parentElement}return 0}Ot.registerCommand(xue,function(n,e,t){n.get(lt).createKey(String(e),t)});Ot.registerCommand({id:"getContextKeyInfo",handler(){return[...Re.all()].sort((n,e)=>n.key.localeCompare(e.key))},description:{description:m("getContextKeyInfo","A command that returns information about context keys"),args:[]}});Ot.registerCommand("_generateContextKeyInfo",function(){const n=[],e=new Set;for(let t of Re.all())e.has(t.key)||(e.add(t.key),n.push(t));n.sort((t,i)=>t.key.localeCompare(i.key)),console.log(JSON.stringify(n,void 0,2))});let YCe=class{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}};class ZCe{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),s),s.incoming.set(this._hashFn(e),i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new YCe(e),this._nodes.set(t,i)),i}isEmpty(){return this._nodes.size===0}toString(){let e=[];for(let[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join(` +`)}findCycleSlow(){for(let[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(let[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const o=this._findCycle(s,t);if(o)return o;t.delete(i)}}}class L9 extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=(t=e.findCycleSlow())!==null&&t!==void 0?t:`UNABLE to detect cycle, dumping graph: +${e.toString()}`}}class WO{constructor(e=new yk,t=!1,i){this._activeInstantiations=new Set,this._services=e,this._strict=t,this._parent=i,this._services.set(Et,this)}createChild(e){return new WO(e,this._strict,this)}invokeFunction(e,...t){let i=zr.traceInvocation(e),s=!1;try{return e({get:r=>{if(s)throw Xae("service accessor is only valid during the invocation of its target method");const a=this._getOrCreateServiceInstance(r,i);if(!a)throw new Error(`[invokeFunction] unknown service '${r}'`);return a}},...t)}finally{s=!0,i.stop()}}createInstance(e,...t){let i,s;return e instanceof ol?(i=zr.traceCreation(e.ctor),s=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=zr.traceCreation(e),s=this._createInstance(e,t,i)),i.stop(),s}_createInstance(e,t=[],i){let s=Ca.getServiceDependencies(e).sort((a,l)=>a.index-l.index),o=[];for(const a of s){let l=this._getOrCreateServiceInstance(a.id,i);l||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${a.id}.`,!1),o.push(l)}let r=s.length>0?s[0].index:t.length;if(t.length!==r){console.warn(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);let a=r-t.length;a>0?t=t.concat(new Array(a)):t=t.slice(0,r)}return new e(...t,...o)}_setServiceInstance(e,t){if(this._services.get(e)instanceof ol)this._services.set(e,t);else if(this._parent)this._parent._setServiceInstance(e,t);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let i=this._getServiceInstanceOrDescriptor(e);return i instanceof ol?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const s=new ZCe(a=>a.id.toString());let o=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const a=r.pop();if(s.lookupOrInsertNode(a),o++>1e3)throw new L9(s);for(let l of Ca.getServiceDependencies(a.desc.ctor)){let c=this._getServiceInstanceOrDescriptor(l.id);if(c||this._throwIfStrict(`[createInstance] ${e} depends on ${l.id} which is NOT registered.`,!0),c instanceof ol){const d={id:l.id,desc:c,_trace:a._trace.branch(l.id,!0)};s.insertEdge(a,d),r.push(d)}}}for(;;){const a=s.roots();if(a.length===0){if(!s.isEmpty())throw new L9(s);break}for(const{data:l}of a){if(this._getServiceInstanceOrDescriptor(l.id)instanceof ol){const d=this._createServiceInstanceWithOwner(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this._setServiceInstance(l.id,d)}s.removeNode(l)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],s,o){if(this._services.get(e)instanceof ol)return this._createServiceInstance(t,i,s,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,s,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t=[],i,s){if(i){const o=new Kd(()=>this._createInstance(e,t,s));return new Proxy(Object.create(null),{get(r,a){if(a in r)return r[a];let l=o.value,c=l[a];return typeof c!="function"||(c=c.bind(l),r[a]=c),c},set(r,a,l){return o.value[a]=l,!0}})}else return this._createInstance(e,t,s)}_throwIfStrict(e,t){if(t&&console.warn(t),this._strict)throw new Error(e)}}class zr{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return zr._None}static traceCreation(e){return zr._None}branch(e,t){let i=new zr(2,e.toString());return this._dep.push([e,t,i]),i}stop(){let e=Date.now()-this._start;zr._totals+=e;let t=!1;function i(o,r){let a=[],l=new Array(o+1).join(" ");for(const[c,d,u]of r._dep)if(d&&u){t=!0,a.push(`${l}CREATES -> ${c}`);let h=i(o+1,u);h&&a.push(h)}else a.push(`${l}uses -> ${c}`);return a.join(` +`)}let s=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${zr._totals.toFixed(2)}ms)`];(e>2||t)&&console.log(s.join(` +`))}}zr._None=new class extends zr{constructor(){super(-1,null)}stop(){}branch(){return this}};zr._totals=0;class XCe{constructor(){this._byResource=new Fs,this._byOwner=new Map}set(e,t,i){let s=this._byResource.get(e);s||(s=new Map,this._byResource.set(e,s)),s.set(t,i);let o=this._byOwner.get(t);o||(o=new Fs,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){let i=this._byResource.get(e);return i==null?void 0:i.get(t)}delete(e,t){let i=!1,s=!1,o=this._byResource.get(e);o&&(i=o.delete(t));let r=this._byOwner.get(t);if(r&&(s=r.delete(e)),i!==s)throw new Error("illegal state");return i&&s}values(e){var t,i,s,o;return typeof e=="string"?(i=(t=this._byOwner.get(e))===null||t===void 0?void 0:t.values())!==null&&i!==void 0?i:Rt.empty():et.isUri(e)?(o=(s=this._byResource.get(e))===null||s===void 0?void 0:s.values())!==null&&o!==void 0?o:Rt.empty():Rt.map(Rt.concat(...this._byOwner.values()),r=>r[1])}}class QCe{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Fs,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const i=this._data.get(t);i&&this._substract(i);const s=this._resourceStats(t);this._add(s),this._data.set(t,s)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===mt.inMemory||e.scheme===mt.walkThrough||e.scheme===mt.walkThroughSnippet)return t;for(const{severity:i}of this._service.read({resource:e}))i===Pi.Error?t.errors+=1:i===Pi.Warning?t.warnings+=1:i===Pi.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class Lh{constructor(){this._onMarkerChanged=new sle({delay:0,merge:Lh._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new XCe,this._stats=new QCe(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if(XW(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const s=[];for(const o of i){const r=Lh._toMarker(e,t,o);r&&s.push(r)}this._data.set(t,e,s),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:s,severity:o,message:r,source:a,startLineNumber:l,startColumn:c,endLineNumber:d,endColumn:u,relatedInformation:h,tags:f}=i;if(r)return l=l>0?l:1,c=c>0?c:1,d=d>=l?d:l,u=u>0?u:c,{resource:t,owner:e,code:s,severity:o,message:r,source:a,startLineNumber:l,startColumn:c,endLineNumber:d,endColumn:u,relatedInformation:h,tags:f}}read(e=Object.create(null)){let{owner:t,resource:i,severities:s,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const r=this._data.get(i,t);if(r){const a=[];for(const l of r)if(Lh._accept(l,s)){const c=a.push(l);if(o>0&&c===o)break}return a}else return[]}else if(!t&&!i){const r=[];for(let a of this._data.values())for(let l of a)if(Lh._accept(l,s)){const c=r.push(l);if(o>0&&c===o)return r}return r}else{const r=this._data.values(i??t),a=[];for(const l of r)for(const c of l)if(Lh._accept(c,s)){const d=a.push(c);if(o>0&&d===o)return a}return a}}static _accept(e,t){return t===void 0||(t&e.severity)===e.severity}static _merge(e){const t=new Fs;for(let i of e)for(let s of i)t.set(s,!0);return Array.from(t.keys())}}var _b=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})},wm;(function(n){n[n.None=0]="None",n[n.Initialized=1]="Initialized",n[n.Closed=2]="Closed"})(wm||(wm={}));class d1 extends J{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new j),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=wm.None,this.cache=new Map,this.flushDelayer=new Mce(d1.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,i;(t=e.changed)===null||t===void 0||t.forEach((s,o)=>this.accept(o,s)),(i=e.deleted)===null||i===void 0||i.forEach(s=>this.accept(s,void 0))}accept(e,t){if(this.state===wm.Closed)return;let i=!1;Oo(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return Oo(i)?t:i}getBoolean(e,t){const i=this.get(e);return Oo(i)?t:i==="true"}getNumber(e,t){const i=this.get(e);return Oo(i)?t:parseInt(i,10)}set(e,t){return _b(this,void 0,void 0,function*(){if(this.state===wm.Closed)return;if(Oo(t))return this.delete(e);const i=String(t);if(this.cache.get(e)!==i)return this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}delete(e){return _b(this,void 0,void 0,function*(){if(!(this.state===wm.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return _b(this,void 0,void 0,function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})})}doFlush(e){return _b(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),e)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}d1.DEFAULT_FLUSH_DELAY=100;class k9{constructor(){this.onDidChangeItemsExternal=je.None,this.items=new Map}updateItems(e){return _b(this,void 0,void 0,function*(){e.insert&&e.insert.forEach((t,i)=>this.items.set(i,t)),e.delete&&e.delete.forEach(t=>this.items.delete(t))})}}const IC="__$__targetStorageMarker",Zl=At("storageService");var WS;(function(n){n[n.NONE=0]="NONE",n[n.SHUTDOWN=1]="SHUTDOWN"})(WS||(WS={}));class Hk extends J{constructor(e={flushInterval:Hk.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new Iy),this._onDidChangeTarget=this._register(new Iy),this._onWillSaveState=this._register(new j),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===IC?(e===0?this._globalKeyTargets=void 0:e===1&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var s;return(s=this.getStorage(t))===null||s===void 0?void 0:s.get(e,i)}getBoolean(e,t,i){var s;return(s=this.getStorage(t))===null||s===void 0?void 0:s.getBoolean(e,i)}getNumber(e,t,i){var s;return(s=this.getStorage(t))===null||s===void 0?void 0:s.getNumber(e,i)}store(e,t,i,s){if(Oo(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var o;this.updateKeyTarget(e,i,s),(o=this.getStorage(i))===null||o===void 0||o.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),(i=this.getStorage(t))===null||i===void 0||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var s,o;const r=this.getKeyTargets(t);typeof i=="number"?r[e]!==i&&(r[e]=i,(s=this.getStorage(t))===null||s===void 0||s.set(IC,JSON.stringify(r))):typeof r[e]=="number"&&(delete r[e],(o=this.getStorage(t))===null||o===void 0||o.set(IC,JSON.stringify(r)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return e===0?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(IC,e);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}}Hk.DEFAULT_FLUSH_INTERVAL=60*1e3;class JCe extends Hk{constructor(){super(),this.globalStorage=this._register(new d1(new k9)),this.workspaceStorage=this._register(new d1(new k9)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.globalStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e)))}getStorage(e){return e===0?this.globalStorage:this.workspaceStorage}}function rj(n,e,t,i,s){if(Array.isArray(n)){let o=0;for(const r of n){const a=rj(r,e,t,i,s);if(a===10)return a;a>o&&(o=a)}return o}else{if(typeof n=="string")return i?n==="*"?5:n===t?10:0:0;if(n){const{language:o,pattern:r,scheme:a,hasAccessToAllModels:l,notebookType:c}=n;if(!i&&!l)return 0;let d=0;if(a)if(a===e.scheme)d=10;else if(a==="*")d=5;else return 0;if(o)if(o===t)d=10;else if(o==="*")d=Math.max(d,5);else return 0;if(c)if(c===s)d=10;else if(c==="*")d=Math.max(d,5);else return 0;if(r){let u;if(typeof r=="string"?u=r:u=Object.assign(Object.assign({},r),{base:OR(r.base)}),u===e.fsPath||Tve(u,e.fsPath))d=10;else return 0}return d}else return 0}}function aj(n){return typeof n=="string"?!1:Array.isArray(n)?n.every(aj):!!n.exclusive}class qi{constructor(e){this._notebookTypeResolver=e,this._clock=0,this._entries=[],this._onDidChange=new j,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),vt(()=>{if(i){const s=this._entries.indexOf(i);s>=0&&(this._entries.splice(s,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,i=>t.push(i.provider)),t}orderedGroups(e){const t=[];let i,s;return this._orderedForEach(e,o=>{i&&s===o._score?i.push(o.provider):(s=o._score,i=[o.provider],t.push(i))}),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}}_updateScores(e){var t;const i=(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e.uri),s={uri:e.uri.toString(),language:e.getLanguageId(),notebookType:i};if(!(this._lastCandidate&&this._lastCandidate.language===s.language&&this._lastCandidate.uri===s.uri&&this._lastCandidate.notebookType===s.notebookType)){this._lastCandidate=s;for(let o of this._entries)if(o._score=rj(o.selector,e.uri,e.getLanguageId(),oce(e),i),aj(o.selector)&&o._score>0){for(let r of this._entries)r._score=0;o._score=1e3;break}this._entries.sort(qi._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:e._timet._time?-1:0}}class ewe{constructor(){this.referenceProvider=new qi(this._score.bind(this)),this.renameProvider=new qi(this._score.bind(this)),this.codeActionProvider=new qi(this._score.bind(this)),this.definitionProvider=new qi(this._score.bind(this)),this.typeDefinitionProvider=new qi(this._score.bind(this)),this.declarationProvider=new qi(this._score.bind(this)),this.implementationProvider=new qi(this._score.bind(this)),this.documentSymbolProvider=new qi(this._score.bind(this)),this.inlayHintsProvider=new qi(this._score.bind(this)),this.colorProvider=new qi(this._score.bind(this)),this.codeLensProvider=new qi(this._score.bind(this)),this.documentFormattingEditProvider=new qi(this._score.bind(this)),this.documentRangeFormattingEditProvider=new qi(this._score.bind(this)),this.onTypeFormattingEditProvider=new qi(this._score.bind(this)),this.signatureHelpProvider=new qi(this._score.bind(this)),this.hoverProvider=new qi(this._score.bind(this)),this.documentHighlightProvider=new qi(this._score.bind(this)),this.selectionRangeProvider=new qi(this._score.bind(this)),this.foldingRangeProvider=new qi(this._score.bind(this)),this.linkProvider=new qi(this._score.bind(this)),this.inlineCompletionsProvider=new qi(this._score.bind(this)),this.completionProvider=new qi(this._score.bind(this)),this.linkedEditingRangeProvider=new qi(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new qi(this._score.bind(this)),this.documentSemanticTokensProvider=new qi(this._score.bind(this))}_score(e){var t;return(t=this._notebookTypeResolver)===null||t===void 0?void 0:t.call(this,e)}}Vt(He,ewe,!0);var Wu=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},xs=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},lj=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class twe{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new j}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let nA=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new tle(new twe(t))):Promise.reject(new Error("Model not found"))}};nA=Wu([xs(0,Fi)],nA);class zk{show(){return zk.NULL_PROGRESS_RUNNER}showWhile(e,t){return lj(this,void 0,void 0,function*(){yield e})}}zk.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class iwe{confirm(e){return this.doConfirm(e).then(t=>({confirmed:t,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+` + +`+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,s){return Promise.resolve({choice:0})}}class $k{info(e){return this.notify({severity:Mi.Info,message:e})}warn(e){return this.notify({severity:Mi.Warning,message:e})}error(e){return this.notify({severity:Mi.Error,message:e})}notify(e){switch(e.severity){case Mi.Error:console.error(e.message);break;case Mi.Warning:console.warn(e.message);break;default:console.log(e.message);break}return $k.NO_OP}status(e,t){return J.None}}$k.NO_OP=new G_e;let sA=class{constructor(e){this._onWillExecuteCommand=new j,this._onDidExecuteCommand=new j,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=Ot.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const s=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(s)}catch(s){return Promise.reject(s)}}};sA=Wu([xs(0,Et)],sA);let HS=class extends uve{constructor(e,t,i,s,o,r){super(e,t,i,s,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=f=>{const g=new ue;g.add(de(f,Xe.KEY_DOWN,_=>{const b=new Si(_);this._dispatch(b,b.target)&&(b.preventDefault(),b.stopPropagation())})),g.add(de(f,Xe.KEY_UP,_=>{const b=new Si(_);this._singleModifierDispatch(b,b.target)&&b.preventDefault()})),this._domNodeListeners.push(new nwe(f,g))},l=f=>{for(let g=0;g{f.getOption(54)||a(f.getContainerDomNode())},d=f=>{f.getOption(54)||l(f.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove(d)),r.listCodeEditors().forEach(c);const u=f=>{a(f.getContainerDomNode())},h=f=>{l(f.getContainerDomNode())};this._register(r.onDiffEditorAdd(u)),this._register(r.onDiffEditorRemove(h)),r.listDiffEditors().forEach(u)}addDynamicKeybinding(e,t,i,s){const o=kN(t,or),r=new ue;return o&&(this._dynamicKeybindings.push({keybinding:o.parts,command:e,when:s,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),r.add(vt(()=>{for(let a=0;athis._log(i))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let s=0;for(const o of e){const r=o.when||void 0,a=o.keybinding;if(!a)i[s++]=new T8(void 0,o.command,o.commandArgs,r,t,null,!1);else{const l=Qv.resolveUserBinding(a,or);for(const c of l)i[s++]=new T8(c,o.command,o.commandArgs,r,t,null,!1)}}return i}resolveKeyboardEvent(e){const t=new ff(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new Qv(t,or)}};HS=Wu([xs(0,lt),xs(1,sn),xs(2,jl),xs(3,rn),xs(4,na),xs(5,Zt)],HS);class nwe extends J{constructor(e,t){super(),this.domNode=e,this._register(t)}}function x9(n){return n&&typeof n=="object"&&(!n.overrideIdentifier||typeof n.overrideIdentifier=="string")&&(!n.resource||n.resource instanceof et)}class cj{constructor(){this._onDidChangeConfiguration=new j,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Lk(new lve,new sr)}getValue(e,t){const i=typeof e=="string"?e:void 0,s=x9(e)?e:x9(t)?t:{};return this._configuration.getValue(i,s,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const s of e){const[o,r]=s;this.getValue(o)!==r&&(this._configuration.updateValue(o,r),i.push(o))}if(i.length>0){const s=new cve({keys:i,overrides:[]},t,this._configuration);s.source=7,s.sourceConfig=null,this._onDidChangeConfiguration.fire(s)}return Promise.resolve()}updateValue(e,t,i,s){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let oA=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new j,this.configurationService.onDidChangeConfiguration(t=>{this._onDidChangeConfiguration.fire({affectedKeys:t.affectedKeys,affectsConfiguration:(i,s)=>t.affectsConfiguration(s)})})}getValue(e,t,i){const o=(Z.isIPosition(t)?t:null)?typeof i=="string"?i:void 0:typeof t=="string"?t:void 0;return typeof o>"u"?this.configurationService.getValue():this.configurationService.getValue(o)}};oA=Wu([xs(0,li)],oA);let rA=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&typeof i=="string"&&i!=="auto"?i:Ds||wt?` +`:`\r +`}};rA=Wu([xs(0,li)],rA);class swe{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Uk{constructor(){const e=et.from({scheme:Uk.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new _ve({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}}Uk.SCHEME="inmemory";function zS(n,e,t){if(!e||!(n instanceof cj))return;const i=[];Object.keys(e).forEach(s=>{ove(s)&&i.push([`editor.${s}`,e[s]]),t&&rve(s)&&i.push([`diffEditor.${s}`,e[s]])}),i.length>0&&n.updateValues(i)}let aA=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return lj(this,void 0,void 0,function*(){const i=new Map;for(let r of e){if(!(r instanceof tU))throw new Error("bad edit - only text edits are supported");const a=this._modelService.getModel(r.resource);if(!a)throw new Error("bad edit - model not found");if(typeof r.versionId=="number"&&a.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let l=i.get(a);l||(l=[],i.set(a,l)),l.push($i.replaceMove(T.lift(r.textEdit.range),r.textEdit.text))}let s=0,o=0;for(const[r,a]of i)r.pushStackElement(),r.pushEditOperations([],a,()=>[]),r.pushStackElement(),o+=1,s+=a.length;return{ariaSummary:cr(fT.bulkEditServiceSummary,s,o)}})}};aA=Wu([xs(0,Fi)],aA);class owe{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}}let lA=class extends gT{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const s=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();s&&(t=s.getContainerDomNode())}return super.showContextView(e,t,i)}};lA=Wu([xs(0,o0),xs(1,Zt)],lA);class rwe{constructor(){this._neverEmitter=new j,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class awe extends t1{constructor(){super()}}class lwe extends Cde{constructor(){super(new vde)}}let cA=class extends yT{constructor(e,t,i,s,o){super(e,t,i,s,o),this.configure({blockMouse:!1})}};cA=Wu([xs(0,jl),xs(1,rn),xs(2,s0),xs(3,Ui),xs(4,ki)],cA);Vt(li,cj);Vt(oP,oA);Vt(jH,rA);Vt(nU,Uk);Vt(a0,owe);Vt(jl,swe);Vt(r0,iwe);Vt(rn,$k);Vt(ed,Lh);Vt(Oi,awe);Vt(Jo,WCe);Vt(na,lwe);Vt(Fi,AS);Vt(mP,DT);Vt(lt,iA);Vt(Bu,zk);Vt(Zl,JCe);Vt(Er,SN);Vt(iO,aA);Vt(sU,rwe);Vt(ro,nA);Vt(Eo,QT);Vt(Nr,zT);Vt(sn,sA);Vt(Ui,HS);Vt(td,ZT);Vt(s0,lA);Vt(Ir,ET);Vt(ag,tA);Vt(Fu,cA);Vt(ig,JT);var ct;(function(n){const e=new yk;for(const[r,a]of E3())e.set(r,a);const t=new WO(e,!0);e.set(Et,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof ol?t.invokeFunction(l=>l.get(r)):a}n.get=i;let s=!1;function o(r){if(s)return t;s=!0;for(const[a,l]of E3())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=At(a);e.get(l)instanceof ol&&e.set(l,r[a])}return t}n.initialize=o})(ct||(ct={}));var HO=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},wi=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let cwe=0,E9=!1;function dwe(n){if(!n){if(E9)return;E9=!0}Sue(n||document.body)}let $S=class extends Yv{constructor(e,t,i,s,o,r,a,l,c,d,u,h){const f=Object.assign({},t);f.ariaLabel=f.ariaLabel||kS.editorViewAccessibleLabel,f.ariaLabel=f.ariaLabel+";"+kS.accessibilityHelpMessage,super(e,f,{},i,s,o,r,l,c,d,u,h),a instanceof HS?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,dwe(f.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++cwe,o=xe.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,o),s}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),J.None;const t=e.id,i=e.label,s=xe.and(xe.equals("editorId",this.getId()),xe.deserialize(e.precondition)),o=e.keybindings,r=xe.and(s,xe.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(f,...g)=>Promise.resolve(e.run(this,...g)),d=new ue,u=this.getId()+":"+t;if(d.add(Ot.registerCommand(u,c)),a){const f={command:{id:u,title:i},when:s,group:a,order:l};d.add(qo.appendMenuItem(W.EditorContext,f))}if(Array.isArray(o))for(const f of o)d.add(this._standaloneKeybindingService.addDynamicKeybinding(u,f,c,r));const h=new m$(u,i,i,s,c,this._contextKeyService);return this._actions[t]=h,d.add(vt(()=>{delete this._actions[t]})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof vS)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};$S=HO([wi(2,Et),wi(3,Zt),wi(4,sn),wi(5,lt),wi(6,Ui),wi(7,ki),wi(8,rn),wi(9,Eo),wi(10,ws),wi(11,He)],$S);let dA=class extends $S{constructor(e,t,i,s,o,r,a,l,c,d,u,h,f,g,_){const b=Object.assign({},t);zS(d,b,!1);const v=l.registerEditorContainer(e);typeof b.theme=="string"&&l.setTheme(b.theme),typeof b.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(!!b.autoDetectHighContrast);const C=b.model;delete b.model,super(e,b,i,s,o,r,a,l,c,u,g,_),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let y;if(typeof C>"u"){const S=f.getLanguageIdByMimeType(b.language)||b.language||Kl;y=dj(h,f,b.value||"",S,void 0),this._ownsModel=!0}else y=C,this._ownsModel=!1;if(this._attachModel(y),y){const S={oldModelUrl:null,newModelUrl:y.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){zS(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};dA=HO([wi(2,Et),wi(3,Zt),wi(4,sn),wi(5,lt),wi(6,Ui),wi(7,Jo),wi(8,rn),wi(9,li),wi(10,Eo),wi(11,Fi),wi(12,Oi),wi(13,ws),wi(14,He)],dA);let uA=class extends vu{constructor(e,t,i,s,o,r,a,l,c,d,u,h){const f=Object.assign({},t);zS(c,f,!0);const g=a.registerEditorContainer(e);typeof f.theme=="string"&&a.setTheme(f.theme),typeof f.autoDetectHighContrast<"u"&&a.setAutoDetectHighContrast(!!f.autoDetectHighContrast),super(e,f,{},h,o,s,i,r,a,l,d,u),this._configurationService=c,this._standaloneThemeService=a,this._register(g)}dispose(){super.dispose()}updateOptions(e){zS(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance($S,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};uA=HO([wi(2,Et),wi(3,lt),wi(4,Er),wi(5,Zt),wi(6,Jo),wi(7,rn),wi(8,li),wi(9,Fu),wi(10,Bu),wi(11,ag)],uA);function dj(n,e,t,i,s){if(t=t||"",!i){const o=t.indexOf(` +`);let r=t;return o!==-1&&(r=t.substring(0,o)),D9(n,t,e.createByFilepathOrFirstLine(s||null,r),s)}return D9(n,t,e.createById(i),s)}function D9(n,e,t,i){return n.createModel(e,t,i)}function uwe(n,e,t){return ct.initialize(t||{}).createInstance(dA,n,e)}function hwe(n){return ct.get(Zt).onCodeEditorAdd(t=>{n(t)})}function fwe(n,e,t){return ct.initialize(t||{}).createInstance(uA,n,e)}function gwe(n,e){return new ice(n,e)}function mwe(n,e,t){const i=ct.get(Oi),s=i.getLanguageIdByMimeType(e)||e;return dj(ct.get(Fi),i,n,s,t)}function pwe(n,e){const t=ct.get(Oi);ct.get(Fi).setMode(n,t.createById(e))}function _we(n,e,t){n&&ct.get(ed).changeOne(e,n.uri,t)}function bwe(n){return ct.get(ed).read(n)}function vwe(n){return ct.get(ed).onMarkerChanged(n)}function Cwe(n){return ct.get(Fi).getModel(n)}function wwe(){return ct.get(Fi).getModels()}function ywe(n){return ct.get(Fi).onModelAdded(n)}function Swe(n){return ct.get(Fi).onModelRemoved(n)}function Lwe(n){return ct.get(Fi).onModelLanguageChanged(t=>{n({model:t.model,oldLanguage:t.oldLanguageId})})}function kwe(n){return kde(ct.get(Fi),ct.get(ws),n)}function xwe(n,e){const t=ct.get(Oi),i=ct.get(Jo);return i.registerEditorContainer(n),cP.colorizeElement(i,t,n,e)}function Ewe(n,e,t){const i=ct.get(Oi);return ct.get(Jo).registerEditorContainer(document.body),cP.colorize(i,n,e,t)}function Dwe(n,e,t=4){return ct.get(Jo).registerEditorContainer(document.body),cP.colorizeModelLine(n,e,t)}function Iwe(n){const e=Ri.get(n);return e||{getInitialState:()=>up,tokenize:(t,i,s)=>FH(n,s)}}function Nwe(n,e){Ri.getOrCreate(e);const t=Iwe(e),i=Al(n),s=[];let o=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const s=t.split(".");if(s.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw fi(n,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw fi(n,"the next state must be a string value in rule: "+e);{let s=t.next;if(!/^(@pop|@push|@popall)$/.test(s)&&(s[0]==="@"&&(s=s.substr(1)),s.indexOf("$")<0&&!Ude(n,Ad(n,s,"",[],""))))throw fi(n,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=s}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,n.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let s=0,o=t.length;s0&&i[0]==="^",this.name=this.name+": "+i,this.regex=hA(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=fA(e,this.name,t)}}function uj(n,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=n,t.includeLF=NC(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=NC(e.ignoreCase,!1),t.unicode=NC(e.unicode,!1),t.tokenPostfix=I9(e.tokenPostfix,"."+t.languageId),t.defaultToken=I9(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=n,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function s(r,a,l){for(const c of l){let d=c.include;if(d){if(typeof d!="string")throw fi(t,"an 'include' attribute must be a string at: "+r);if(d[0]==="@"&&(d=d.substr(1)),!e.tokenizer[d])throw fi(t,"include target '"+d+"' is not defined at: "+r);s(r+"."+d,a,e.tokenizer[d])}else{const u=new Wwe(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(u.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")u.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const h=c[1];h.next=c[2],u.setAction(i,h)}else throw fi(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else u.setAction(i,c[1]);else{if(!c.regex)throw fi(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(u.name=c.name),c.matchOnlyAtStart&&(u.matchOnlyAtLineStart=NC(c.matchOnlyAtLineStart,!1)),u.setRegex(i,c.regex),u.setAction(i,c.action)}a.push(u)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw fi(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,s("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw fi(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(let r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw fi(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:Gd(t,a.open),close:Gd(t,a.close)});else throw fi(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}var Hwe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function zwe(n){wp.registerLanguage(n)}function $we(){let n=[];return n=n.concat(wp.getLanguages()),n}function Uwe(n){return ct.get(Oi).languageIdCodec.encodeLanguageId(n)}function jwe(n,e){const i=ct.get(Oi).onDidEncounterLanguage(s=>{s===n&&(i.dispose(),e())});return i}function qwe(n,e){if(!ct.get(Oi).isRegisteredLanguageId(n))throw new Error(`Cannot set configuration for unknown language ${n}`);return fn.register(n,e,100)}class Kwe{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u1.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const s=this._actual.tokenizeEncoded(e,i);return new FL(s.tokens,s.endState)}}class u1{constructor(e,t,i,s){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=s}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let s=0;for(let o=0,r=e.length;o0&&o[r-1]===h)continue;let f=u.startIndex;c===0?f=0:fHwe(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Gwe(i)?fj(n,i):new Z1(ct.get(Oi),ct.get(Jo),n,uj(n,i)):null})};return Ri.registerFactory(n,t)}function Xwe(n,e){if(!ct.get(Oi).isRegisteredLanguageId(n))throw new Error(`Cannot set tokens provider for unknown language ${n}`);return hj(e)?zO(n,{create:()=>e}):Ri.register(n,fj(n,e))}function Qwe(n,e){const t=i=>new Z1(ct.get(Oi),ct.get(Jo),n,uj(n,i));return hj(e)?zO(n,{create:()=>e}):Ri.register(n,t(e))}function Jwe(n,e){return ct.get(He).referenceProvider.register(n,e)}function eye(n,e){return ct.get(He).renameProvider.register(n,e)}function tye(n,e){return ct.get(He).signatureHelpProvider.register(n,e)}function iye(n,e){return ct.get(He).hoverProvider.register(n,{provideHover:(i,s,o)=>{const r=i.getWordAtPosition(s);return Promise.resolve(e.provideHover(i,s,o)).then(a=>{if(a)return!a.range&&r&&(a.range=new T(s.lineNumber,r.startColumn,s.lineNumber,r.endColumn)),a.range||(a.range=new T(s.lineNumber,s.column,s.lineNumber,s.column)),a})}})}function nye(n,e){return ct.get(He).documentSymbolProvider.register(n,e)}function sye(n,e){return ct.get(He).documentHighlightProvider.register(n,e)}function oye(n,e){return ct.get(He).linkedEditingRangeProvider.register(n,e)}function rye(n,e){return ct.get(He).definitionProvider.register(n,e)}function aye(n,e){return ct.get(He).implementationProvider.register(n,e)}function lye(n,e){return ct.get(He).typeDefinitionProvider.register(n,e)}function cye(n,e){return ct.get(He).codeLensProvider.register(n,e)}function dye(n,e,t){return ct.get(He).codeActionProvider.register(n,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(s,o,r,a)=>{const c=ct.get(ed).read({resource:s.uri}).filter(d=>T.areIntersectingOrTouching(d,o));return e.provideCodeActions(s,o,{markers:c,only:r.only},a)},resolveCodeAction:e.resolveCodeAction})}function uye(n,e){return ct.get(He).documentFormattingEditProvider.register(n,e)}function hye(n,e){return ct.get(He).documentRangeFormattingEditProvider.register(n,e)}function fye(n,e){return ct.get(He).onTypeFormattingEditProvider.register(n,e)}function gye(n,e){return ct.get(He).linkProvider.register(n,e)}function mye(n,e){return ct.get(He).completionProvider.register(n,e)}function pye(n,e){return ct.get(He).colorProvider.register(n,e)}function _ye(n,e){return ct.get(He).foldingRangeProvider.register(n,e)}function bye(n,e){return ct.get(He).declarationProvider.register(n,e)}function vye(n,e){return ct.get(He).selectionRangeProvider.register(n,e)}function Cye(n,e){return ct.get(He).documentSemanticTokensProvider.register(n,e)}function wye(n,e){return ct.get(He).documentRangeSemanticTokensProvider.register(n,e)}function yye(n,e){return ct.get(He).inlineCompletionsProvider.register(n,e)}function Sye(n,e){return ct.get(He).inlayHintsProvider.register(n,e)}function Lye(){return{register:zwe,getLanguages:$we,onLanguage:jwe,getEncodedLanguageId:Uwe,setLanguageConfiguration:qwe,setColorMap:Zwe,registerTokensProviderFactory:zO,setTokensProvider:Xwe,setMonarchTokensProvider:Qwe,registerReferenceProvider:Jwe,registerRenameProvider:eye,registerCompletionItemProvider:mye,registerSignatureHelpProvider:tye,registerHoverProvider:iye,registerDocumentSymbolProvider:nye,registerDocumentHighlightProvider:sye,registerLinkedEditingRangeProvider:oye,registerDefinitionProvider:rye,registerImplementationProvider:aye,registerTypeDefinitionProvider:lye,registerCodeLensProvider:cye,registerCodeActionProvider:dye,registerDocumentFormattingEditProvider:uye,registerDocumentRangeFormattingEditProvider:hye,registerOnTypeFormattingEditProvider:fye,registerLinkProvider:gye,registerColorProvider:pye,registerFoldingRangeProvider:_ye,registerDeclarationProvider:bye,registerSelectionRangeProvider:vye,registerDocumentSemanticTokensProvider:Cye,registerDocumentRangeSemanticTokensProvider:wye,registerInlineCompletionsProvider:yye,registerInlayHintsProvider:Sye,DocumentHighlightKind:P2,CompletionItemKind:I2,CompletionItemTag:N2,CompletionItemInsertTextRule:D2,SymbolKind:sN,SymbolTag:oN,IndentAction:W2,CompletionTriggerKind:T2,SignatureHelpTriggerKind:nN,InlayHintKind:z2,InlineCompletionTriggerKind:$2,FoldingRangeKind:Aa}}const $O=At("IEditorCancelService"),gj=new Re("cancellableOperation",!1,m("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));Vt($O,class{constructor(){this._tokens=new WeakMap}add(n,e){let t=this._tokens.get(n);t||(t=n.invokeWithinContext(s=>{const o=gj.bindTo(s.get(lt)),r=new zo;return{key:o,tokens:r}}),this._tokens.set(n,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(n){const e=this._tokens.get(n);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},!0);class kye extends is{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get($O).add(e,this))}dispose(){this._unregister(),super.dispose()}}pe(new class extends ss{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:gj})}runEditorCommand(n,e){n.get($O).cancel(e)}});let mj=class gA{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?cr("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof gA))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new gA(e,this.flags))}};class h1 extends kye{constructor(e,t,i,s){super(e,s),this._listener=new ue,t&4&&this._listener.add(e.onDidChangeCursorPosition(o=>{(!i||!T.containsPosition(i,o.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(o=>{(!i||!T.containsRange(i,o.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(o=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(o=>this.cancel())),this._listener.add(e.onDidChangeModelContent(o=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class UO extends is{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function jc(n){return n&&typeof n.getEditorType=="function"?n.getEditorType()===G1.ICodeEditor:!1}function pj(n){return n&&typeof n.getEditorType=="function"?n.getEditorType()===G1.IDiffEditor:!1}function _j(n){return jc(n)?n:pj(n)?n.getModifiedEditor():null}class Ip{static _handleEolEdits(e,t){let i,s=[];for(let o of t)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&s.push(o);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),s=i.validateRange(t.range);return i.getFullModelRange().equalsRange(s)}static execute(e,t,i){i&&e.pushUndoStop();const s=Ip._handleEolEdits(e,t);s.length===1&&Ip._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(o=>$i.replace(T.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",s.map(o=>$i.replaceMove(T.lift(o.range),o.text))),i&&e.pushUndoStop()}}class PD{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Oa=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function jO(n){if(n=n.filter(s=>s.range),!n.length)return;let{range:e}=n[0];for(let s=1;s0&&T.areIntersectingOrTouching(l[c-1],g)?l[c-1]=T.fromPositions(l[c-1].getStartPosition(),g.getEndPosition()):c=l.push(g);const d=g=>Oa(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,g,r.getFormattingOptions(),a.token))||[]}),u=(g,_)=>{if(!g.length||!_.length)return!1;const b=g.reduce((v,C)=>T.plusRange(v,C.range),g[0].range);if(!_.some(v=>T.intersectRanges(b,v.range)))return!1;for(let v of g)for(let C of _)if(T.intersectRanges(v.range,C.range))return!0;return!1},h=[],f=[];try{for(let g of l){if(a.token.isCancellationRequested)return!0;f.push(yield d(g))}for(let g=0;g({text:b.text,range:T.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(T.areIntersectingOrTouching(v,_))return[new Fe(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function Eye(n,e,t,i,s){return Oa(this,void 0,void 0,function*(){const o=n.get(Et),r=n.get(He),a=jc(e)?e.getModel():e,l=bj(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield xf.select(l,a,t);c&&(i.report(c),yield o.invokeFunction(Dye,c,e,t,s))})}function Dye(n,e,t,i,s){return Oa(this,void 0,void 0,function*(){const o=n.get(Er);let r,a;jc(t)?(r=t.getModel(),a=new h1(t,5,void 0,s)):(r=t,a=new UO(t,s));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(jc(t))Ip.execute(t,l,i!==2),i!==2&&(jO(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new Fe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(u=>({text:u.text,range:T.lift(u.range),forceMoveMarkers:!0})),u=>{for(const{range:h}of u)if(T.areIntersectingOrTouching(h,d))return[new Fe(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn)];return null})}return!0})}function Iye(n,e,t,i,s,o){return Oa(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){let l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,s,o)).catch(On);if(vo(l))return yield n.computeMoreMinimalEdits(t.uri,l)}})}function Nye(n,e,t,i,s){return Oa(this,void 0,void 0,function*(){const o=bj(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of o){let a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,s)).catch(On);if(vo(a))return yield n.computeMoreMinimalEdits(t.uri,a)}})}function Cj(n,e,t,i,s,o,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(s)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,s,o,r)).catch(On).then(l=>n.computeMoreMinimalEdits(t.uri,l))}Ot.registerCommand("_executeFormatRangeProvider",function(n,...e){return Oa(this,void 0,void 0,function*(){const[t,i,s]=e;ri(et.isUri(t)),ri(T.isIRange(i));const o=n.get(ro),r=n.get(Er),a=n.get(He),l=yield o.createModelReference(t);try{return Iye(r,a,l.object.textEditorModel,T.lift(i),s,xt.None)}finally{l.dispose()}})});Ot.registerCommand("_executeFormatDocumentProvider",function(n,...e){return Oa(this,void 0,void 0,function*(){const[t,i]=e;ri(et.isUri(t));const s=n.get(ro),o=n.get(Er),r=n.get(He),a=yield s.createModelReference(t);try{return Nye(o,r,a.object.textEditorModel,i,xt.None)}finally{a.dispose()}})});Ot.registerCommand("_executeFormatOnTypeProvider",function(n,...e){return Oa(this,void 0,void 0,function*(){const[t,i,s,o]=e;ri(et.isUri(t)),ri(Z.isIPosition(i)),ri(typeof s=="string");const r=n.get(ro),a=n.get(Er),l=n.get(He),c=yield r.createModelReference(t);try{return Cj(a,l,c.object.textEditorModel,Z.lift(i),s,o,xt.None)}finally{c.dispose()}})});var OD;Ba.wrappingIndent.defaultValue=0;Ba.glyphMargin.defaultValue=!1;Ba.autoIndent.defaultValue=3;Ba.overviewRulerLanes.defaultValue=2;xf.setFormatterSelector((n,e,t)=>Promise.resolve(n[0]));const js=mH();js.editor=Pwe();js.languages=Lye();const wj=js.CancellationTokenSource,yj=js.Emitter,Sj=js.KeyCode,Lj=js.KeyMod,kj=js.Position,xj=js.Range,Ej=js.Selection,Dj=js.SelectionDirection,Ij=js.MarkerSeverity,Nj=js.MarkerTag,Tj=js.Uri,Aj=js.Token,Qs=js.editor,Mj=js.languages;(!((OD=Zi.MonacoEnvironment)===null||OD===void 0)&&OD.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=js);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const h0=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:wj,Emitter:yj,KeyCode:Sj,KeyMod:Lj,MarkerSeverity:Ij,MarkerTag:Nj,Position:kj,Range:xj,Selection:Ej,SelectionDirection:Dj,Token:Aj,Uri:Tj,editor:Qs,languages:Mj},Symbol.toStringTag,{value:"Module"})),Tye="modulepreload",Aye=function(n){return"/"+n},T9={},ze=function(e,t,i){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=Aye(o),o in T9)return;T9[o]=!0;const r=o.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(!!i)for(let d=s.length-1;d>=0;d--){const u=s[d];if(u.href===o&&(!r||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const c=document.createElement("link");if(c.rel=r?"stylesheet":Tye,r||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),r)return new Promise((d,u)=>{c.addEventListener("load",d),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})};/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var Mye=Object.defineProperty,Rye=Object.getOwnPropertyDescriptor,Pye=Object.getOwnPropertyNames,Oye=Object.prototype.hasOwnProperty,Fye=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pye(e))!Oye.call(n,s)&&(t||s!=="default")&&Mye(n,s,{get:()=>e[s],enumerable:!(i=Rye(e,s))||i.enumerable});return n},bb={};Fye(bb,h0);var Rj={},FD={},Pj=class{constructor(n){Vi(this,"_languageId");Vi(this,"_loadingTriggered");Vi(this,"_lazyLoadPromise");Vi(this,"_lazyLoadPromiseResolve");Vi(this,"_lazyLoadPromiseReject");this._languageId=n,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(n){return FD[n]||(FD[n]=new Pj(n)),FD[n]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,Rj[this._languageId].loader().then(n=>this._lazyLoadPromiseResolve(n),n=>this._lazyLoadPromiseReject(n))),this._lazyLoadPromise}};function qe(n){const e=n.id;Rj[e]=n,bb.languages.register(n);const t=Pj.getOrCreate(e);bb.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),bb.languages.onLanguage(e,async()=>{const i=await t.load();bb.languages.setLanguageConfiguration(e,i.conf)})}qe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ze(()=>import("./abap-77a14c14.js"),[])});qe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ze(()=>import("./apex-cf1d9eb5.js"),[])});qe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ze(()=>import("./azcli-a95010c9.js"),[])});qe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ze(()=>import("./bat-8c58a836.js"),[])});qe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ze(()=>import("./bicep-4bed18f6.js"),[])});qe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ze(()=>import("./cameligo-0f51c89b.js"),[])});qe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ze(()=>import("./clojure-01e3da3e.js"),[])});qe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ze(()=>import("./coffee-4ddce41a.js"),[])});qe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ze(()=>import("./cpp-313d1644.js"),[])});qe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ze(()=>import("./cpp-313d1644.js"),[])});qe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ze(()=>import("./csharp-b6341ee5.js"),[])});qe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ze(()=>import("./csp-dc3d4f56.js"),[])});qe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ze(()=>import("./css-5b4b9c57.js"),[])});qe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ze(()=>import("./dart-6ea6deb2.js"),[])});qe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ze(()=>import("./dockerfile-7d35970e.js"),[])});qe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ze(()=>import("./ecl-b20b9471.js"),[])});qe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ze(()=>import("./elixir-1d976b08.js"),[])});qe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ze(()=>import("./flow9-9da3058c.js"),[])});qe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ze(()=>import("./fsharp-ceb060a2.js"),[])});qe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagAutoInterpolationDollar)});qe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagAngleInterpolationDollar)});qe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagBracketInterpolationDollar)});qe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagAngleInterpolationBracket)});qe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagBracketInterpolationBracket)});qe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagAutoInterpolationDollar)});qe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ze(()=>import("./freemarker2-23177f0b.js"),[]).then(n=>n.TagAutoInterpolationBracket)});qe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ze(()=>import("./go-a122d5f1.js"),[])});qe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ze(()=>import("./graphql-427c043b.js"),[])});qe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ze(()=>import("./handlebars-72626e97.js"),[])});qe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ze(()=>import("./hcl-77031b33.js"),[])});qe({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:()=>ze(()=>import("./html-e52438f0.js"),[])});qe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ze(()=>import("./ini-8a341fa8.js"),[])});qe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ze(()=>import("./java-c42a634a.js"),[])});qe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ze(()=>import("./javascript-0a13884a.js"),["assets/javascript-0a13884a.js","assets/typescript-552b328d.js"])});qe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ze(()=>import("./julia-0729394b.js"),[])});qe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ze(()=>import("./kotlin-a417985c.js"),[])});qe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ze(()=>import("./less-15c24a66.js"),[])});qe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ze(()=>import("./lexon-a1fb61ae.js"),[])});qe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ze(()=>import("./lua-2908f482.js"),[])});qe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ze(()=>import("./liquid-0999f9f2.js"),[])});qe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ze(()=>import("./m3-51aace1f.js"),[])});qe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ze(()=>import("./markdown-97451dd3.js"),[])});qe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ze(()=>import("./mips-a9d3080d.js"),[])});qe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ze(()=>import("./msdax-ff0e819f.js"),[])});qe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ze(()=>import("./mysql-e8abbc2b.js"),[])});qe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ze(()=>import("./objective-c-f34c60c4.js"),[])});qe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ze(()=>import("./pascal-812f04d4.js"),[])});qe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ze(()=>import("./pascaligo-15435727.js"),[])});qe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ze(()=>import("./perl-0bbd7df6.js"),[])});qe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ze(()=>import("./pgsql-4b6792c0.js"),[])});qe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ze(()=>import("./php-cd897c68.js"),[])});qe({id:"pla",extensions:[".pla"],loader:()=>ze(()=>import("./pla-15e81ffa.js"),[])});qe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ze(()=>import("./postiats-59168f5c.js"),[])});qe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ze(()=>import("./powerquery-14465cfb.js"),[])});qe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ze(()=>import("./powershell-73d04163.js"),[])});qe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ze(()=>import("./protobuf-21b3a246.js"),[])});qe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ze(()=>import("./pug-7f4fb28b.js"),[])});qe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ze(()=>import("./python-886c0db1.js"),[])});qe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ze(()=>import("./qsharp-4dc01206.js"),[])});qe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ze(()=>import("./r-67bb0d4b.js"),[])});qe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ze(()=>import("./razor-a6a89f3d.js"),[])});qe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ze(()=>import("./redis-53bb0225.js"),[])});qe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ze(()=>import("./redshift-e66b9676.js"),[])});qe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ze(()=>import("./restructuredtext-9df9ea10.js"),[])});qe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ze(()=>import("./ruby-7dd59a49.js"),[])});qe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ze(()=>import("./rust-a7e1208d.js"),[])});qe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ze(()=>import("./sb-78235e16.js"),[])});qe({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:()=>ze(()=>import("./scala-0a87521c.js"),[])});qe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ze(()=>import("./scheme-13db5189.js"),[])});qe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ze(()=>import("./scss-1fdfb846.js"),[])});qe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ze(()=>import("./shell-38fb32d1.js"),[])});qe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ze(()=>import("./solidity-afb1830a.js"),[])});qe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ze(()=>import("./sophia-9a45c401.js"),[])});qe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ze(()=>import("./sparql-02def50d.js"),[])});qe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ze(()=>import("./sql-2f5d59dc.js"),[])});qe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ze(()=>import("./st-bb7724ba.js"),[])});qe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ze(()=>import("./swift-68724a67.js"),[])});qe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ze(()=>import("./systemverilog-27086aa8.js"),[])});qe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ze(()=>import("./systemverilog-27086aa8.js"),[])});qe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ze(()=>import("./tcl-a06ebe55.js"),[])});qe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ze(()=>import("./twig-2e247d82.js"),[])});qe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ze(()=>import("./typescript-552b328d.js"),[])});qe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ze(()=>import("./vb-57c5bf98.js"),[])});qe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ze(()=>import("./xml-3976fd06.js"),[])});qe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ze(()=>import("./yaml-5ecbd2d0.js"),[])});/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var Bye=Object.defineProperty,Vye=Object.getOwnPropertyDescriptor,Wye=Object.getOwnPropertyNames,Hye=Object.prototype.hasOwnProperty,zye=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Wye(e))!Hye.call(n,s)&&(t||s!=="default")&&Bye(n,s,{get:()=>e[s],enumerable:!(i=Vye(e,s))||i.enumerable});return n},g_={};zye(g_,h0);var qO=class{constructor(e,t,i){Vi(this,"_onDidChange",new g_.Emitter);Vi(this,"_options");Vi(this,"_modeConfiguration");Vi(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}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)}},KO={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}},GO={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Oj=new qO("css",KO,GO),Fj=new qO("scss",KO,GO),Bj=new qO("less",KO,GO);g_.languages.css={cssDefaults:Oj,lessDefaults:Bj,scssDefaults:Fj};function YO(){return ze(()=>import("./cssMode-d9359b35.js"),[])}g_.languages.onLanguage("less",()=>{YO().then(n=>n.setupMode(Bj))});g_.languages.onLanguage("scss",()=>{YO().then(n=>n.setupMode(Fj))});g_.languages.onLanguage("css",()=>{YO().then(n=>n.setupMode(Oj))});/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var $ye=Object.defineProperty,Uye=Object.getOwnPropertyDescriptor,jye=Object.getOwnPropertyNames,qye=Object.prototype.hasOwnProperty,Kye=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of jye(e))!qye.call(n,s)&&(t||s!=="default")&&$ye(n,s,{get:()=>e[s],enumerable:!(i=Uye(e,s))||i.enumerable});return n},jk={};Kye(jk,h0);var Gye=class{constructor(e,t,i){Vi(this,"_onDidChange",new jk.Emitter);Vi(this,"_options");Vi(this,"_modeConfiguration");Vi(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}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)}},Yye={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"},qk={format:Yye,suggest:{},data:{useDefaultDataProvider:!0}};function Kk(n){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:n===tv,documentFormattingEdits:n===tv,documentRangeFormattingEdits:n===tv}}var tv="html",A9="handlebars",M9="razor",Vj=Gk(tv,qk,Kk(tv)),Zye=Vj.defaults,Wj=Gk(A9,qk,Kk(A9)),Xye=Wj.defaults,Hj=Gk(M9,qk,Kk(M9)),Qye=Hj.defaults;jk.languages.html={htmlDefaults:Zye,razorDefaults:Qye,handlebarDefaults:Xye,htmlLanguageService:Vj,handlebarLanguageService:Wj,razorLanguageService:Hj,registerHTMLLanguageService:Gk};function Jye(){return ze(()=>import("./htmlMode-ca8916f3.js"),[])}function Gk(n,e=qk,t=Kk(n)){const i=new Gye(n,e,t);let s;const o=jk.languages.onLanguage(n,async()=>{s=(await Jye()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),s==null||s.dispose(),s=void 0}}}/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var eSe=Object.defineProperty,tSe=Object.getOwnPropertyDescriptor,iSe=Object.getOwnPropertyNames,nSe=Object.prototype.hasOwnProperty,sSe=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of iSe(e))!nSe.call(n,s)&&(t||s!=="default")&&eSe(n,s,{get:()=>e[s],enumerable:!(i=tSe(e,s))||i.enumerable});return n},f0={};sSe(f0,h0);var oSe=class{constructor(e,t,i){Vi(this,"_onDidChange",new f0.Emitter);Vi(this,"_diagnosticsOptions");Vi(this,"_modeConfiguration");Vi(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}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)}},rSe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},aSe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},zj=new oSe("json",rSe,aSe);f0.languages.json={jsonDefaults:zj};function lSe(){return ze(()=>import("./jsonMode-998b198b.js"),[])}f0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});f0.languages.onLanguage("json",()=>{lSe().then(n=>n.setupMode(zj))});/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var cSe=Object.defineProperty,dSe=Object.getOwnPropertyDescriptor,uSe=Object.getOwnPropertyNames,hSe=Object.prototype.hasOwnProperty,fSe=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of uSe(e))!hSe.call(n,s)&&(t||s!=="default")&&cSe(n,s,{get:()=>e[s],enumerable:!(i=dSe(e,s))||i.enumerable});return n},gSe="4.5.5",Np={};fSe(Np,h0);var $j=(n=>(n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ESNext=99]="ESNext",n))($j||{}),Uj=(n=>(n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev",n))(Uj||{}),jj=(n=>(n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed",n))(jj||{}),qj=(n=>(n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest",n))(qj||{}),Kj=(n=>(n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n))(Kj||{}),Gj=class{constructor(n,e,t,i){Vi(this,"_onDidChange",new Np.Emitter);Vi(this,"_onDidExtraLibsChange",new Np.Emitter);Vi(this,"_extraLibs");Vi(this,"_removedExtraLibs");Vi(this,"_eagerModelSync");Vi(this,"_compilerOptions");Vi(this,"_diagnosticsOptions");Vi(this,"_workerOptions");Vi(this,"_onDidExtraLibsChangeTimeout");Vi(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(n),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(n,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===n)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:n,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[t];s&&s.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(n){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),n&&n.length>0)for(const e of n){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(n){this._compilerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(n){this._diagnosticsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(n){this._workerOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(n){this._inlayHintsOptions=n||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(n){}setEagerModelSync(n){this._eagerModelSync=n}getEagerModelSync(){return this._eagerModelSync}},mSe=gSe,Yj=new Gj({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Zj=new Gj({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),pSe=()=>Yk().then(n=>n.getTypeScriptWorker()),_Se=()=>Yk().then(n=>n.getJavaScriptWorker());Np.languages.typescript={ModuleKind:$j,JsxEmit:Uj,NewLineKind:jj,ScriptTarget:qj,ModuleResolutionKind:Kj,typescriptVersion:mSe,typescriptDefaults:Yj,javascriptDefaults:Zj,getTypeScriptWorker:pSe,getJavaScriptWorker:_Se};function Yk(){return ze(()=>import("./tsMode-094e6380.js"),[])}Np.languages.onLanguage("typescript",()=>Yk().then(n=>n.setupTypeScript(Yj)));Np.languages.onLanguage("javascript",()=>Yk().then(n=>n.setupJavaScript(Zj)));var bSe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},vSe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},Zk=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const Xk=new Re("selectionAnchorSet",!1);let qc=class Xj{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Xk.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(Xj.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:Fe.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new Wo().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Jn(m("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(Fe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};qc.ID="editor.contrib.selectionAnchorController";qc=bSe([vSe(1,lt)],qc);class CSe extends Be{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:Fn(2089,2080),weight:100}})}run(e,t){var i;return Zk(this,void 0,void 0,function*(){(i=qc.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class wSe extends Be{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Xk})}run(e,t){var i;return Zk(this,void 0,void 0,function*(){(i=qc.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class ySe extends Be{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Xk,kbOpts:{kbExpr:O.editorTextFocus,primary:Fn(2089,2089),weight:100}})}run(e,t){var i;return Zk(this,void 0,void 0,function*(){(i=qc.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class SSe extends Be{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Xk,kbOpts:{kbExpr:O.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Zk(this,void 0,void 0,function*(){(i=qc.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}Kt(qc.ID,qc);_e(CSe);_e(wSe);_e(ySe);_e(SSe);const LSe=F("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class kSe extends Be{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=Ia.get(t))===null||i===void 0||i.jumpToBracket()}}class xSe extends Be{constructor(){super({id:"editor.action.selectToBracket",label:m("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,i){var s;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(s=Ia.get(t))===null||s===void 0||s.selectToBracket(o)}}class ESe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Ia extends J{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new ni(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(64),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._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(64)&&(this._matchBrackets=this._editor.getOption(64),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(Ia.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const s=i.getStartPosition(),o=e.bracketPairs.matchBracket(s);let r=null;if(o)o[0].containsPosition(s)?r=o[1].getStartPosition():o[1].containsPosition(s)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)r=a[0].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(r=l.range.getStartPosition())}}return r?new Fe(r.lineNumber,r.column,r.lineNumber,r.column):new Fe(s.lineNumber,s.column,s.lineNumber,s.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(s=>{const o=s.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(T.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const u=a;a=l,l=u}}a&&l&&i.push(new Fe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,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(),i=t.getVersionId();let s=[];this._lastVersionId===i&&(s=this._lastBracketsData);let o=[],r=0;for(let u=0,h=e.length;u1&&o.sort(Z.compare);let a=[],l=0,c=0,d=s.length;for(let u=0,h=o.length;u{const t=n.getColor(nge);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=n.getColor(Xz);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});qo.appendMenuItem(W.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class DSe{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new T(i,s-1,i,s),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new T(i,o,i,o),a)}else{const r=new T(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new T(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new Fe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Fe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class Qj extends Be{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const o of s)i.push(new DSe(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class ISe extends Qj{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:O.writable})}}class NSe extends Qj{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:O.writable})}}_e(ISe);_e(NSe);class TSe extends Be{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),s=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;let d=l===c?r.getPosition():Ht.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),u=Ht.leftPosition(i,d),h=Ht.leftPosition(i,u),f=i.getValueInRange(T.fromPositions(h,u)),g=i.getValueInRange(T.fromPositions(u,d)),_=T.fromPositions(h,d);s.push(new Zn(_,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}_e(TSe);var ASe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const Ef="9_cutcopypaste",MSe=xa||document.queryCommandSupported("cut"),Jj=xa||document.queryCommandSupported("copy"),RSe=typeof navigator.clipboard>"u"||Yo?document.queryCommandSupported("paste"):!0;function ZO(n){return n.register(),n}const PSe=MSe?ZO(new a_({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:xa?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:W.MenubarEditMenu,group:"2_ccp",title:m({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:W.EditorContext,group:Ef,title:m("actions.clipboard.cutLabel","Cut"),when:O.writable,order:1},{menuId:W.CommandPalette,group:"",title:m("actions.clipboard.cutLabel","Cut"),order:1},{menuId:W.SimpleEditorContext,group:Ef,title:m("actions.clipboard.cutLabel","Cut"),when:O.writable,order:1}]})):void 0,OSe=Jj?ZO(new a_({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:xa?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:W.MenubarEditMenu,group:"2_ccp",title:m({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:W.EditorContext,group:Ef,title:m("actions.clipboard.copyLabel","Copy"),order:2},{menuId:W.CommandPalette,group:"",title:m("actions.clipboard.copyLabel","Copy"),order:1},{menuId:W.SimpleEditorContext,group:Ef,title:m("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;qo.appendMenuItem(W.MenubarEditMenu,{submenu:W.MenubarCopy,title:{value:m("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});qo.appendMenuItem(W.EditorContext,{submenu:W.EditorContextCopy,title:{value:m("copy as","Copy As"),original:"Copy As"},group:Ef,order:3});const BD=RSe?ZO(new a_({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:xa?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:W.MenubarEditMenu,group:"2_ccp",title:m({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:W.EditorContext,group:Ef,title:m("actions.clipboard.pasteLabel","Paste"),when:O.writable,order:4},{menuId:W.CommandPalette,group:"",title:m("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:W.SimpleEditorContext,group:Ef,title:m("actions.clipboard.pasteLabel","Paste"),when:O.writable,order:4}]})):void 0;class FSe extends Be{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:m("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(zN.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),zN.forceCopyWithSyntaxHighlighting=!1)}}function eq(n,e){n&&(n.addImplementation(1e4,"code-editor",(t,i)=>{const s=t.get(Zt).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const o=s.getOption(32),r=s.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),n.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}eq(PSe,"cut");eq(OSe,"copy");BD&&(BD.addImplementation(1e4,"code-editor",(n,e)=>{const t=n.get(Zt),i=n.get(ag),s=t.getFocusedCodeEditor();return s&&s.hasTextFocus()?!document.execCommand("paste")&&Ou?(()=>ASe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Ov.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=s.getOption(32)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),s.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),BD.addImplementation(0,"generic-dom",(n,e)=>(document.execCommand("paste"),!0)));Jj&&_e(FSe);class Nt{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+Nt.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Nt(this.value+Nt.sep+e)}}Nt.sep=".";Nt.None=new Nt("@@none@@");Nt.Empty=new Nt("");Nt.QuickFix=new Nt("quickfix");Nt.Refactor=new Nt("refactor");Nt.Source=new Nt("source");Nt.SourceOrganizeImports=Nt.Source.append("organizeImports");Nt.SourceFixAll=Nt.Source.append("fixAll");function BSe(n,e){return!(n.include&&!n.include.intersects(e)||n.excludes&&n.excludes.some(t=>tq(e,t,n.include))||!n.includeSourceActions&&Nt.Source.contains(e))}function VSe(n,e){const t=e.kind?new Nt(e.kind):void 0;return!(n.include&&(!t||!n.include.contains(t))||n.excludes&&t&&n.excludes.some(i=>tq(t,i,n.include))||!n.includeSourceActions&&t&&Nt.Source.contains(t)||n.onlyIncludePreferredActions&&!e.isPreferred)}function tq(n,e,t){return!(!e.contains(n)||t&&e.contains(t))}class ml{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new ml(t.kind,t.apply,!1):new ml(ml.getKindFromUser(e,t.kind),ml.getApplyFromUser(e,t.apply),ml.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 Nt(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var XO=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const iq="editor.action.codeAction",nq="editor.action.refactor",sq="editor.action.sourceAction",QO="editor.action.organizeImports",JO="editor.action.fixAll";class oq{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return XO(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(s){On(s)}i&&(this.action.edit=i.edit)}return this})}}class e4 extends J{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(e4.codeActionsComparator),this.validActions=this.allActions.filter(({action:s})=>!s.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:vo(e.diagnostics)?vo(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:vo(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Nt.QuickFix.contains(new Nt(e.kind))&&!!e.isPreferred)}}const R9={actions:[],documentation:void 0};function t4(n,e,t,i,s,o){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new UO(e,o),d=WSe(n,e,a),u=new ue,h=d.map(g=>XO(this,void 0,void 0,function*(){try{s.report(g);const _=yield g.provideCodeActions(e,t,l,c.token);if(_&&u.add(_),c.token.isCancellationRequested)return R9;const b=((_==null?void 0:_.actions)||[]).filter(C=>C&&VSe(a,C)),v=HSe(g,b,a.include);return{actions:b.map(C=>new oq(C,g)),documentation:v}}catch(_){if(Ul(_))throw _;return On(_),R9}})),f=n.onDidChange(()=>{const g=n.all(e);jo(g,d)||c.cancel()});return Promise.all(h).then(g=>{const _=xR(g.map(v=>v.actions)),b=Zf(g.map(v=>v.documentation));return new e4(_,b,u)}).finally(()=>{f.dispose(),c.dispose()})}function WSe(n,e,t){return n.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(s=>BSe(t,new Nt(s))):!0)}function HSe(n,e,t){if(!n.documentation)return;const i=n.documentation.map(s=>({kind:new Nt(s.kind),command:s.command}));if(t){let s;for(const o of i)o.kind.contains(t)&&(s?s.kind.contains(o.kind)&&(s=o):s=o);if(s)return s==null?void 0:s.command}for(const s of e)if(s.kind){for(const o of i)if(o.kind.contains(new Nt(s.kind)))return o.command}}Ot.registerCommand("_executeCodeActionProvider",function(n,e,t,i,s){return XO(this,void 0,void 0,function*(){if(!(e instanceof et))throw Ea();const{codeActionProvider:o}=n.get(He),r=n.get(Fi).getModel(e);if(!r)throw Ea();const a=Fe.isISelection(t)?Fe.liftSelection(t):T.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ea();const l=typeof i=="string"?new Nt(i):void 0,c=yield t4(o,r,a,{type:1,filter:{includeSourceActions:!0,include:l}},lg.None,xt.None),d=[],u=Math.min(c.validActions.length,typeof s=="number"?s:0);for(let h=0;hh.action)}finally{setTimeout(()=>c.dispose(),100)}})});var zSe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},$Se=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let Qo=class mA{constructor(e,t){this._messageWidget=new $s,this._messageListeners=new ue,this._editor=e,this._visible=mA.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(mA.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Jn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new P9(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>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(new xo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(s=>{s.target.position&&(i?i.containsPosition(s.target.position)||this.closeMessage():i=new T(t.lineNumber-3,1,s.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(P9.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(m("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};Qo.ID="editor.contrib.messageController";Qo.MESSAGE_VISIBLE=new Re("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message"));Qo=zSe([$Se(1,lt)],Qo);const USe=ss.bindToContribution(Qo.get);pe(new USe({id:"leaveEditorMessage",precondition:Qo.MESSAGE_VISIBLE,handler:n=>n.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let P9=class{constructor(e,{lineNumber:t,column:i},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=s,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Kt(Qo.ID,Qo);var jSe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},VD=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},qSe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class O9 extends Co{constructor(e,t){super(e.command?e.command.id:e.title,KSe(e.title),void 0,!e.disabled,t),this.action=e}}function KSe(n){return n.replace(/\r\n|\r|\n/g," ")}let pA=class extends J{constructor(e,t,i,s,o){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=o,this._visible=!1,this._showingActions=this._register(new $s),this._keybindingResolver=new Qk({getKeybindings:()=>s.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,s){return qSe(this,void 0,void 0,function*(){const o=s.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,NR();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=Z.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),c=this._editor.getOption(115);this._contextMenuService.showContextMenu({domForShadowRoot:c?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:d=>d instanceof O9?l(d.action):void 0})})}getMenuActions(e,t,i){var s,o;const r=d=>new O9(d.action,()=>this._delegate.onSelectCodeAction(d)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(o=(s=e.filter)===null||s===void 0?void 0:s.include)===null||o===void 0?void 0:o.value},t.map(u=>u.action)));return l.length&&a.push(new gr,...l.map(d=>r(new oq({title:d.title,command:d},void 0)))),a}_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),i=Qn(this._editor.getDomNode()),s=i.left+t.left,o=i.top+t.top+t.height;return{x:s,y:o}}};pA=jSe([VD(2,Fu),VD(3,Ui),VD(4,He)],pA);class Qk{constructor(e){this._keybindingProvider=e}getResolver(){const e=new lp(()=>this._keybindingProvider.getKeybindings().filter(t=>Qk.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===QO?i={kind:Nt.SourceOrganizeImports.value}:t.command===JO&&(i={kind:Nt.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},ml.fromUser(i,{kind:Nt.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Nt(e.kind);return t.filter(s=>s.kind.contains(i)).filter(s=>s.preferred?e.isPreferred:!0).reduceRight((s,o)=>s?s.kind.contains(o.kind)?o:s:o,void 0)}}Qk.codeActionCommands=[nq,iq,sq,QO,JO];var GSe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},YSe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},iv;(function(n){n.Hidden={type:0};class e{constructor(i,s,o,r){this.actions=i,this.trigger=s,this.editorPosition=o,this.widgetPosition=r,this.type=1}}n.Showing=e})(iv||(iv={}));let US=class rq extends J{constructor(e,t,i,s){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=s,this._onClick=this._register(new j),this.onClick=this._onClick.event,this._state=iv.Hidden,this._domNode=document.createElement("div"),this._domNode.className=p.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),Jt.ignoreTarget(this._domNode),this._register(aue(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=Qn(this._domNode),l=this._editor.getOption(59);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{if((o.buttons&1)!==1)return;this.hide();const r=new ng;r.startMonitoring(o.target,o.buttons,l_,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(57)&&!this._editor.getOption(57).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}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,i){if(e.validActions.length<=0)return this.hide();const s=this._editor.getOptions();if(!s.get(57).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=s.get(44),d=o.getLineContent(r),u=bk(d,l),h=c.spaceWidth*u>22,f=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let g=r;if(!h){if(r>1&&!f(r-1))g-=1;else if(!f(r+1))g+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new iv.Showing(e,t,i,{position:{lineNumber:g,column:1},preference:rq._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=iv.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(...p.lightBulb.classNamesArray),this._domNode.classList.add(...p.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=m("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...p.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...p.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=m("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=m("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};US._posPref=[0];US=GSe([YSe(3,Ui)],US);bi((n,e)=>{var t;const i=(t=n.getColor(no))===null||t===void 0?void 0:t.transparent(.7),s=n.getColor(Ihe);s&&e.addRule(` + .monaco-editor .contentWidgets ${p.lightBulb.cssSelector} { + color: ${s}; + background-color: ${i}; + }`);const o=n.getColor(Nhe);o&&e.addRule(` + .monaco-editor .contentWidgets ${p.lightbulbAutofix.cssSelector} { + color: ${o}; + background-color: ${i}; + }`)});var ZSe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},XSe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},WD=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})},QSe=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!s:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(n,t):s?s.value=t:e.set(n,t),t},JSe=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)},Jw;let _A=class extends J{constructor(e,t,i,s,o){super(),this._editor=e,this.delegate=s,this._activeCodeActions=this._register(new $s),Jw.set(this,!1),this._codeActionWidget=new lp(()=>this._register(o.createInstance(pA,this._editor,{onSelectCodeAction:r=>WD(this,void 0,void 0,function*(){this.delegate.applyCodeAction(r,!0)})}))),this._lightBulbWidget=new lp(()=>{const r=this._register(o.createInstance(US,this._editor,t,i));return this._register(r.onClick(a=>this.showCodeActionList(a.trigger,a.actions,a,{includeDisabledActions:!1}))),r})}dispose(){QSe(this,Jw,!0,"f"),super.dispose()}update(e){var t,i,s,o,r;return WD(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){dt(l);return}if(!JSe(this,Jw,"f"))if(this._lightBulbWidget.getValue().update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(c,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(s=Qo.get(this._editor))===null||s===void 0||s.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((o=e.trigger.filter)===null||o===void 0)&&o.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Qo.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this._codeActionWidget.getValue().show(e.trigger,a,e.position,{includeDisabledActions:l})}else this._codeActionWidget.getValue().isVisible?a.dispose():this._activeCodeActions.value=a})}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:i})=>i.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,i,s){return WD(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(e,t,i,s)})}};Jw=new WeakMap;_A=ZSe([XSe(4,Et)],_A);var HD=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)},eLe=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!s:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(n,t):s?s.value=t:e.set(n,t),t},im;const aq=new Re("supportedCodeAction","");class tLe extends J{constructor(e,t,i,s=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=s,this._autoTriggerTimer=this._register(new xo),this._register(this._markerService.onMarkerChanged(o=>this._onMarkerChanges(o))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>I$(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(t)for(const i of this._markerService.read({resource:t.uri})){const s=t.validateRange(i);if(T.intersectRanges(s,e))return T.lift(s)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:s,column:o}=i.getPosition(),r=t.getLineContent(s);if(r.length===0)return;if(o===1){if(/\s/.test(r[0]))return}else if(o===t.getLineMaxColumn(s)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[o-2])&&/\s/.test(r[o-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const s=this._getRangeOfMarker(t),o=s?s.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:o};return this._signalChange(r),r}}var kh;(function(n){n.Empty={type:0};class e{constructor(i,s,o,r){this.trigger=i,this.rangeOrSelection=s,this.position=o,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Ul(a))return iLe;throw a})}cancel(){this._cancellablePromise.cancel()}}n.Triggered=e})(kh||(kh={}));const iLe={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class nLe extends J{constructor(e,t,i,s,o){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=o,this._codeActionOracle=this._register(new $s),this._state=kh.Empty,this._onDidChangeState=this._register(new j),this.onDidChangeState=this._onDidChangeState.event,im.set(this,!1),this._supportedCodeActions=aq.bindTo(s),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){HD(this,im,"f")||(eLe(this,im,!0,"f"),super.dispose(),this.setState(kh.Empty,!0))}_update(){if(HD(this,im,"f"))return;this._codeActionOracle.value=void 0,this.setState(kh.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(81)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new tLe(this._editor,this._markerService,i=>{var s;if(!i){this.setState(kh.Empty);return}const o=Kn(r=>t4(this._registry,e,i.selection,i.trigger,lg.None,r));i.trigger.type===1&&((s=this._progressService)===null||s===void 0||s.showWhile(o,250)),this.setState(new kh.Triggered(i.trigger,i.selection,i.position,o))},void 0),this._codeActionOracle.value.trigger({type:2})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!HD(this,im,"f")&&this._onDidChangeState.fire(e))}}im=new WeakMap;var sLe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},J_=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},lq=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function g0(n){return xe.regex(aq.keys()[0],new RegExp("(\\s|^)"+_r(n.value)+"\\b"))}const i4={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:m("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:m("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[m("args.schema.apply.first","Always apply the first returned code action."),m("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),m("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:m("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let Df=class cq extends J{constructor(e,t,i,s,o,r){super(),this._instantiationService=o,this._editor=e,this._model=this._register(new nLe(this._editor,r.codeActionProvider,t,i,s)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new lp(()=>this._register(new _A(e,m_.Id,m0.Id,{applyCodeAction:(a,l)=>lq(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a)}finally{l&&this._trigger({type:2,filter:{}})}})},this._instantiationService)))}static get(e){return e.getContribution(cq.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,i){var s;if(!this._editor.hasModel())return;(s=Qo.get(this._editor))===null||s===void 0||s.closeMessage();const o=this._editor.getPosition();this._trigger({type:1,filter:t,autoApply:i,context:{notAvailableMessage:e,position:o}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(oLe,e,this._editor)}};Df.ID="editor.contrib.quickFixController";Df=sLe([J_(1,ed),J_(2,lt),J_(3,Bu),J_(4,Et),J_(5,He)],Df);function oLe(n,e,t){return lq(this,void 0,void 0,function*(){const i=n.get(iO),s=n.get(sn),o=n.get(jl),r=n.get(rn);if(o.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred}),yield e.resolve(xt.None),e.action.edit&&(yield i.apply(Sk.convert(e.action.edit),{editor:t,label:e.action.title})),e.action.command)try{yield s.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(a){const l=rLe(a);r.error(typeof l=="string"?l:m("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function rLe(n){return typeof n=="string"?n:n instanceof Error&&typeof n.message=="string"?n.message:void 0}function fg(n,e,t,i){if(n.hasModel()){const s=Df.get(n);s&&s.manualTriggerAtCurrentPosition(e,t,i)}}class m_ extends Be{constructor(){super({id:m_.Id,label:m("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:xe.and(O.writable,O.hasCodeActionsProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:2132,weight:100}})}run(e,t){return fg(t,m("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}m_.Id="editor.action.quickFix";class aLe extends ss{constructor(){super({id:iq,precondition:xe.and(O.writable,O.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:i4}]}})}runEditorCommand(e,t,i){const s=ml.fromUser(i,{kind:Nt.Empty,apply:"ifSingle"});return fg(t,typeof(i==null?void 0:i.kind)=="string"?s.preferred?m("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):m("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?m("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):m("editor.action.codeAction.noneMessage","No code actions available"),{include:s.kind,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class lLe extends Be{constructor(){super({id:nq,label:m("refactor.label","Refactor..."),alias:"Refactor...",precondition:xe.and(O.writable,O.hasCodeActionsProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:xe.and(O.writable,g0(Nt.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:i4}]}})}run(e,t,i){const s=ml.fromUser(i,{kind:Nt.Refactor,apply:"never"});return fg(t,typeof(i==null?void 0:i.kind)=="string"?s.preferred?m("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):m("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?m("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):m("editor.action.refactor.noneMessage","No refactorings available"),{include:Nt.Refactor.contains(s.kind)?s.kind:Nt.None,onlyIncludePreferredActions:s.preferred},s.apply)}}class cLe extends Be{constructor(){super({id:sq,label:m("source.label","Source Action..."),alias:"Source Action...",precondition:xe.and(O.writable,O.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:xe.and(O.writable,g0(Nt.Source))},description:{description:"Source Action...",args:[{name:"args",schema:i4}]}})}run(e,t,i){const s=ml.fromUser(i,{kind:Nt.Source,apply:"never"});return fg(t,typeof(i==null?void 0:i.kind)=="string"?s.preferred?m("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):m("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?m("editor.action.source.noneMessage.preferred","No preferred source actions available"):m("editor.action.source.noneMessage","No source actions available"),{include:Nt.Source.contains(s.kind)?s.kind:Nt.None,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class dLe extends Be{constructor(){super({id:QO,label:m("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:xe.and(O.writable,g0(Nt.SourceOrganizeImports)),kbOpts:{kbExpr:O.editorTextFocus,primary:1581,weight:100}})}run(e,t){return fg(t,m("editor.action.organize.noneMessage","No organize imports action available"),{include:Nt.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class uLe extends Be{constructor(){super({id:JO,label:m("fixAll.label","Fix All"),alias:"Fix All",precondition:xe.and(O.writable,g0(Nt.SourceFixAll))})}run(e,t){return fg(t,m("fixAll.noneMessage","No fix all action available"),{include:Nt.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class m0 extends Be{constructor(){super({id:m0.Id,label:m("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:xe.and(O.writable,g0(Nt.QuickFix)),kbOpts:{kbExpr:O.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return fg(t,m("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Nt.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}m0.Id="editor.action.autoFix";Kt(Df.ID,Df);_e(m_);_e(lLe);_e(cLe);_e(dLe);_e(m0);_e(uLe);pe(new aLe);var F9=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class bA{constructor(){this.lenses=[],this._disposables=new ue}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function dq(n,e,t){return F9(this,void 0,void 0,function*(){const i=n.ordered(e),s=new Map,o=new bA,r=i.map((a,l)=>F9(this,void 0,void 0,function*(){s.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&o.add(c,a)}catch(c){On(c)}}));return yield Promise.all(r),o.lenses=o.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:s.get(a.provider)s.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),o})}Ot.registerCommand("_executeCodeLensProvider",function(n,...e){let[t,i]=e;ri(et.isUri(t)),ri(typeof i=="number"||!i);const{codeLensProvider:s}=n.get(He),o=n.get(Fi).getModel(t);if(!o)throw Ea();const r=[],a=new ue;return dq(s,o,xt.None).then(l=>{a.add(l);let c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(o,d.symbol,xt.None)).then(u=>r.push(u||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var hLe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},fLe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const uq=At("ICodeLensCache");class B9{constructor(e,t){this.lineCount=e,this.data=t}}let vA=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Vu(20,.75);const t="codelens/cache";Ev(()=>e.remove(t,1));const i="codelens/cache2",s=e.get(i,1,"{}");this._deserialize(s),zc(e.onWillSaveState)(o=>{o.reason===WS.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),s=new bA;s.add({lenses:i,dispose:()=>{}},this._fakeProvider);const o=new B9(e.getLineCount(),s);this._cache.set(e.uri.toString(),o)}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,i]of this._cache){const s=new Set;for(const o of i.data.lenses)s.add(o.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...s.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const s=t[i],o=[];for(const a of s.lines)o.push({range:new T(a,1,a,11)});const r=new bA;r.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(i,new B9(s.lineCount,r))}}catch{}}};vA=hLe([fLe(0,Zl)],vA);Vt(uq,vA);class gLe{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,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 Jk{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${Jk._idPool++}`,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();let i=[],s=!1;for(let o=0;o{d.symbol.command&&c.push(d.symbol),s.addDecoration({range:d.symbol.range,options:pt.EMPTY},h=>this._decorationIds[u]=h),l?l=T.plusRange(l,d.symbol.range):l=T.lift(d.symbol.range)}),this._viewZone=new gLe(l.startLineNumber-1,r,a),this._viewZoneId=o.addZone(this._viewZone),c.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(c,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new Jk(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&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 i=this._editor.getModel().getDecorationRange(e),s=this._data[t].symbol;return!!(i&&T.isEmpty(s.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,s)=>{t.addDecoration({range:i.symbol.range,options:pt.EMPTY},o=>this._decorationIds[s]=o)})}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;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},eb=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},pLe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};let Tp=class{constructor(e,t,i,s,o,r){this._editor=e,this._languageFeaturesService=t,this._commandService=s,this._notificationService=o,this._codeLensCache=r,this._disposables=new ue,this._localToDispose=new ue,this._lenses=[],this._oldCodeLensModels=new ue,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new ni(()=>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(a=>{(a.hasChanged(44)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+zH(this._editor.getId()).toString(16),this._styleElement=Cr(Tv(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){let e=this._editor.getOption(16),t;return!e||e<5?(e=this._editor.getOption(46)*.9|0,t=this._editor.getOption(59)):t=e*Math.max(1.3,this._editor.getOption(59)/this._editor.getOption(46))|0,{codeLensHeight:t,fontSize:e}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),s=this._editor.getOption(44),o=`--codelens-font-family${this._styleClassName}`,r=`--codelens-font-features${this._styleClassName}`;let a=` + .monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(t*.5)}px; font-feature-settings: var(${r}) } + .monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; } + `;i&&(a+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${o}), ${Es.fontFamily}}`),this._styleElement.textContent=a,this._editor.getContainerDomNode().style.setProperty(o,i??"inherit"),this._editor.getContainerDomNode().style.setProperty(r,s.fontFeatureSettings),this._editor.changeViewZones(l=>{for(let c of this._lenses)c.updateHeight(e,l)})}_localDispose(){var e,t,i;(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(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(uf(()=>{const s=this._codeLensCache.get(e);t===s&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const s of this._languageFeaturesService.codeLensProvider.all(e))if(typeof s.onDidChange=="function"){let o=s.onDidChange(()=>i.schedule());this._localToDispose.add(o)}const i=new ni(()=>{var s;const o=Date.now();(s=this._getCodeLensModelPromise)===null||s===void 0||s.cancel(),this._getCodeLensModelPromise=Kn(r=>dq(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-o);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},dt)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(vt(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(s=>{this._editor.changeViewZones(o=>{let r=[],a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(o),a=c.getLineNumber())});let l=new zD;r.forEach(c=>{c.dispose(l,o),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(s)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(s=>{s.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(vt(()=>{if(this._editor.getModel()){const s=bu.capture(this._editor);this._editor.changeDecorations(o=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(o,r)})}),s.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(s=>{if(s.target.type!==9)return;let o=s.target.element;if((o==null?void 0:o.tagName)==="SPAN"&&(o=o.parentElement),(o==null?void 0:o.tagName)==="A")for(const r of this._lenses){let a=r.getCommand(o);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new zD;for(const s of this._lenses)s.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t=this._editor.getModel().getLineCount(),i=[],s;for(let a of e.lenses){let l=a.symbol.range.startLineNumber;l<1||l>t||(s&&s[s.length-1].symbol.range.startLineNumber===l?s.push(a):(s=[a],i.push(s)))}const o=bu.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new zD;let d=0,u=0;for(;uthis._resolveCodeLensesInViewportSoon())),d++,u++)}for(;dthis._resolveCodeLensesInViewportSoon())),u++;c.commit(a)})}),o.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 i=[],s=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),s.push(a))}),i.length===0)return;const o=Date.now(),r=Kn(a=>{const l=i.map((c,d)=>{const u=new Array(c.length),h=c.map((f,g)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(_=>{u[g]=_},On):(u[g]=f.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!a.isCancellationRequested&&!s[d].isDisposed()&&s[d].updateCommands(u)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{dt(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};Tp.ID="css.editor.codeLens";Tp=mLe([eb(1,He),eb(2,Dr),eb(3,sn),eb(4,rn),eb(5,uq)],Tp);Kt(Tp.ID,Tp);_e(class extends Be{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:O.hasCodeLensProvider,label:m("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return pLe(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(td),s=e.get(sn),o=e.get(rn),r=t.getSelection().positionLineNumber,a=t.getContribution(Tp.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield s.executeCommand(this.id);try{yield s.executeCommand(d.command.id,...d.command.arguments||[])}catch(u){o.error(u)}}})}});function _Le(n,e,t){const i=[],o=n.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(let l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(o).then(()=>i)}function W9(n,e,t,i){return Promise.resolve(t.provideColorPresentations(n,e,i))}Ot.registerCommand("_executeDocumentColorProvider",function(n,...e){const[t]=e;if(!(t instanceof et))throw Ea();const{colorProvider:i}=n.get(He),s=n.get(Fi).getModel(t);if(!s)throw Ea();const o=[],a=i.ordered(s).reverse().map(l=>Promise.resolve(l.provideDocumentColors(s,xt.None)).then(c=>{if(Array.isArray(c))for(let d of c)o.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>o)});Ot.registerCommand("_executeColorPresentationProvider",function(n,...e){const[t,i]=e,{uri:s,range:o}=i;if(!(s instanceof et)||!Array.isArray(t)||t.length!==4||!T.isIRange(o))throw Ea();const[r,a,l,c]=t,{colorProvider:d}=n.get(He),u=n.get(Fi).getModel(s);if(!u)throw Ea();const h={range:o,color:{red:r,green:a,blue:l,alpha:c}},f=[],_=d.ordered(u).reverse().map(b=>Promise.resolve(b.provideColorPresentations(u,h,xt.None)).then(v=>{Array.isArray(v)&&f.push(...v)}));return Promise.all(_).then(()=>f)});var bLe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},$D=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},vLe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const hq=Object.create({}),CLe=500;let If=class fq extends J{constructor(e,t,i,s){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new ue),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=new Set,this._ruleFactory=new J1(this._editor),this._colorDecorationClassRefs=this._register(new ue),this._debounceInformation=s.for(i.colorProvider,"Document Colors",{min:fq.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(()=>{let o=this._isEnabled;this._isEnabled=this.isEnabled(),o!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const s=i.colorDecorators;if(s&&s.enable!==void 0&&!s.enable)return s.enable}return this._editor.getOption(17)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new xo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Kn(e=>vLe(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new so(!1),s=yield _Le(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),s})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},dt)}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(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:pt.EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((i,s)=>this._colorDatas.set(i,e[s]))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[];for(let i=0;ithis._colorDatas.has(s.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecorationId(e){return this._colorDecoratorIds.has(e)}};If.ID="editor.contrib.colorDetector";If.RECOMPUTE_TIME=1e3;If=bLe([$D(1,li),$D(2,He),$D(3,Dr)],If);Kt(If.ID,If);class wLe{constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new j,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new j,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new j,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}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)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let i=0;i{this.backgroundColor=r.getColor(pf)||X.white})),this._register(de(this.pickedColorNode,Xe.CLICK,()=>this.model.selectNextColorPresentation())),this._register(de(o,Xe.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=X.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)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=X.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(ya(".codicon.codicon-color-mode"))}}class SLe extends J{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=ya(".colorpicker-body"),re(e,this.domNode),this.saturationBox=new LLe(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 kLe(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new xLe(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new X(new vl(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new X(new vl(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new X(new vl(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class LLe extends J{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new j,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new j,this.onColorFlushed=this._onColorFlushed.event,this.domNode=ya(".saturation-wrap"),re(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",re(this.domNode,this.canvas),this.selection=ya(".saturation-selection"),re(this.domNode,this.selection),this.layout(),this._register(uP(this.domNode,s=>this.onMouseDown(s))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new ng);const t=Qn(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,l_,s=>this.onDidChangePosition(s.posx-t.left,s.posy-t.top),()=>null);const i=nz(document,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),s=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,s),this._onDidChange.fire({s:i,v:s})}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 X(new vl(e.h,1,1,1)),i=this.canvas.getContext("2d"),s=i.createLinearGradient(0,0,this.canvas.width,0);s.addColorStop(0,"rgba(255, 255, 255, 1)"),s.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),s.addColorStop(1,"rgba(255, 255, 255, 0)");const o=i.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=X.Format.CSS.format(t),i.fill(),i.fillStyle=s,i.fill(),i.fillStyle=o,i.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 gq extends J{constructor(e,t){super(),this.model=t,this._onDidChange=new j,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new j,this.onColorFlushed=this._onColorFlushed.event,this.domNode=re(e,ya(".strip")),this.overlay=re(this.domNode,ya(".overlay")),this.slider=re(this.domNode,ya(".slider")),this.slider.style.top="0px",this._register(uP(this.domNode,i=>this.onMouseDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){const t=this._register(new ng),i=Qn(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,l_,o=>this.onDidChangeTop(o.posy-i.top),()=>null);const s=nz(document,()=>{this._onColorFlushed.fire(),s.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 kLe extends gq{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:s}=e.rgba,o=new X(new It(t,i,s,1)),r=new X(new It(t,i,s,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class xLe extends gq{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class ELe extends sa{constructor(e,t,i,s){super(),this.model=t,this.pixelRatio=i,this._register(dp.onDidChange(()=>this.layout()));const o=ya(".colorpicker-widget");e.appendChild(o);const r=new yLe(o,this.model,s);this.body=new SLe(o,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var DLe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},ILe=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},H9=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class NLe{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let CA=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return en.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return H9(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const s=If.get(this._editor);if(!s)return[];for(const o of t){if(!s.isColorDecorationId(o.id))continue;const r=s.getColorData(o.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return H9(this,void 0,void 0,function*(){const s=e.getValueInRange(t.range),{red:o,green:r,blue:a,alpha:l}=t.color,c=new It(Math.round(o*255),Math.round(r*255),Math.round(a*255),l),d=new X(c),u=yield W9(e,t,i,xt.None),h=new wLe(d,[],0);return h.colorPresentations=u||[],h.guessColorPresentation(d,s),new NLe(this,T.lift(t.range),h,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return J.None;const i=new ue,s=t[0],o=this._editor.getModel(),r=s.model,a=i.add(new ELe(e.fragment,r,this._editor.getOption(129),this._themeService));e.setColorPicker(a);let l=new T(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);const c=()=>{let u,h;if(r.presentation.textEdit){u=[r.presentation.textEdit],h=new T(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const f=this._editor.getModel()._setTrackedRange(null,h,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",u),h=this._editor.getModel()._getTrackedRange(f)||h}else u=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],h=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",u);r.presentation.additionalTextEdits&&(u=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",u),e.hide()),this._editor.pushUndoStop(),l=h},d=u=>W9(o,{range:l,color:{red:u.rgba.r/255,green:u.rgba.g/255,blue:u.rgba.b/255,alpha:u.rgba.a}},s.provider,xt.None).then(h=>{r.colorPresentations=h||[]});return i.add(r.onColorFlushed(u=>{d(u).then(c)})),i.add(r.onDidChangeColor(d)),i}};CA=DLe([ILe(1,ki)],CA);function wA(n,e){return!!n[e]}class UD{constructor(e,t){this.target=e.target,this.hasTriggerModifier=wA(e.event,t.triggerModifier),this.hasSideBySideModifier=wA(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class z9{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=wA(e,t.triggerModifier)}}class TC{constructor(e,t,i,s){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=s}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function $9(n){return n==="altKey"?wt?new TC(57,"metaKey",6,"altKey"):new TC(5,"ctrlKey",6,"altKey"):wt?new TC(6,"altKey",57,"metaKey"):new TC(6,"altKey",5,"ctrlKey")}class n4 extends J{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new j),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new j),this.onExecute=this._onExecute.event,this._onCancel=this._register(new j),this.onCancel=this._onCancel.event,this._editor=e,this._opts=$9(this._editor.getOption(70)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(t=>{if(t.hasChanged(70)){const i=$9(this._editor.getOption(70));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(t=>this._onEditorMouseMove(new UD(t,this._opts)))),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(new UD(t,this._opts)))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(new UD(t,this._opts)))),this._register(this._editor.onKeyDown(t=>this._onEditorKeyDown(new z9(t,this._opts)))),this._register(this._editor.onKeyUp(t=>this._onEditorKeyUp(new z9(t,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(t=>this._onDidChangeCursorSelection(t))),this._register(this._editor.onDidChangeModel(t=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(t=>{(t.scrollTopChanged||t.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._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 TLe=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},nc=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let Nf=class extends Yv{constructor(e,t,i,s,o,r,a,l,c,d,u,h){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},s,o,r,a,l,c,d,u,h),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){$l(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Nf=TLe([nc(3,Et),nc(4,Zt),nc(5,sn),nc(6,lt),nc(7,ki),nc(8,rn),nc(9,Eo),nc(10,ws),nc(11,He)],Nf);const U9=new X(new It(0,122,204)),ALe={showArrow:!0,showFrame:!0,className:"",frameColor:U9,arrowColor:U9,keepEditorSelection:!1},MLe="vs.editor.contrib.zoneWidget";class RLe{constructor(e,t,i,s,o,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=s,this._onDomNodeTop=o,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class PLe{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class ex{constructor(e){this._editor=e,this._ruleName=ex._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),Q3(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(){Q3(this._ruleName),IN(`.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=this._editor.deltaDecorations(this._decorations,[{range:T.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}ex._IdGenerator=new bO(".arrow-decoration-");class OLe{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new ue,this.container=null,this._isShowing=!1,this.editor=e,this.options=gc(t),$l(this.options,ALe,!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(i=>{const s=this._getWidth(i);this.domNode.style.width=s+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(s)}))}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.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],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 ex(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){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let 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){if(this.domNode.style.height=`${e}px`,this.container){let t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash&&this._resizeSash.layout()}get position(){const[e]=this._positionMarkerId;if(!e)return;const t=this.editor.getModel();if(!t)return;const i=t.getDecorationRange(e);if(i)return i.getStartPosition()}show(e,t){const i=T.isIRange(e)?T.lift(e):T.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:i,options:pt.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let e=this.editor.getOption(59),t=0;if(this.options.showArrow){let i=Math.round(e/3);t+=2*i}if(this.options.showFrame){let i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),s=this.editor.getLayoutInfo(),o=this._getWidth(s);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(s)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(59),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(f=>{this._viewZone&&f.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new RLe(r,i.lineNumber,i.column,t,g=>this._onViewZoneTop(g),g=>this._onViewZoneHeight(g)),this._viewZone.id=f.addZone(this._viewZone),this._overlayWidget=new PLe(MLe+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const f=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=f+"px",this.container.style.borderBottomWidth=f+"px"}let u=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=u+"px",this.container.style.overflow="hidden"),this._doLayout(u,o),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const f=e.endLineNumber+1;f<=h.getLineCount()?this.revealLine(f,!1):this.revealLine(h.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(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 hs(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){let i=(t.currentY-e.startY)/this.editor.getOption(59),s=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+s;o>5&&o<35&&this._relayout(o)}}))}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}}class FLe extends gp{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new j),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=re(e,le(".monaco-dropdown")),this._label=re(this._element,le(".dropdown-label"));let i=t.labelRenderer;i||(i=o=>(o.textContent=t.label||"",null));for(const o of[Xe.CLICK,Xe.MOUSE_DOWN,pi.Tap])this._register(de(this.element,o,r=>Yt.stop(r,!0)));for(const o of[Xe.MOUSE_DOWN,pi.Tap])this._register(de(this._label,o,r=>{r instanceof MouseEvent&&r.detail>1||(this.visible?this.hide():this.show())}));this._register(de(this._label,Xe.KEY_UP,o=>{const r=new Si(o);(r.equals(3)||r.equals(10))&&(Yt.stop(o,!0),this.visible?this.hide():this.show())}));const s=i(this._label);s&&this._register(s),this._register(Jt.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class BLe extends FLe{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class mq extends al{constructor(e,t,i,s=Object.create(null)){super(null,e,s),this.actionItem=null,this._onDidChangeVisibility=this._register(new j),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=s,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=o=>{this.element=re(o,le("a.action-label"));let r=[];return typeof this.options.classNames=="string"?r=this.options.classNames.split(/\s+/g).filter(a=>!!a):this.options.classNames&&(r=this.options.classNames),r.find(a=>a==="icon")||r.push("codicon"),this.element.classList.add(...r),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),s={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new BLe(e,s)),this._register(this.dropdownMenu.onDidChangeVisibility(o=>{var r;(r=this.element)===null||r===void 0||r.setAttribute("aria-expanded",`${o}`),this._onDidChangeVisibility.fire(o)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const o=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return o.options.anchorAlignmentProvider()}})}this.updateEnabled()}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t;const i=!this.getAction().enabled;(e=this.actionItem)===null||e===void 0||e.classList.toggle("disabled",i),(t=this.element)===null||t===void 0||t.classList.toggle("disabled",i)}}var s4=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},ll=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},pq=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function VLe(n,e,t,i,s,o,r){const a=n.getActions(e);return HLe(a,t,!1,typeof i=="string"?c=>c===i:i,s,o,r),WLe(a)}function WLe(n){const e=new ue;for(const[,t]of n)for(const i of t)e.add(i);return e}function HLe(n,e,t,i=a=>a==="navigation",s=Number.MAX_SAFE_INTEGER,o=()=>!1,r=!1){let a,l;Array.isArray(e)?(a=e,l=e):(a=e.primary,l=e.secondary);const c=new Set;for(const[d,u]of n){let h;i(d)?(h=a,h.length>0&&r&&h.push(new gr)):(h=l,h.length>0&&h.push(new gr));for(let f of u){t&&(f=f instanceof fu&&f.alt?f.alt:f);const g=h.push(f);f instanceof XL&&c.add({group:d,action:f,index:g-1})}}for(const{group:d,action:u,index:h}of c){const f=i(d)?a:l,g=u.actions;(g.length<=1||f.length+g.length-2<=s)&&o(u,d,f.length)&&f.splice(h,1,...g)}if(a!==l&&a.length>s){const d=a.splice(s,a.length-s);l.unshift(...d,new gr)}}let Ap=class extends Zv{constructor(e,t,i,s,o){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:t==null?void 0:t.draggable}),this._keybindingService=i,this._notificationService=s,this._contextKeyService=o,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new $s),this._altKey=Nh.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return pq(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(qn||Ds)&&this._altKey.keyStatus.shiftKey;const s=()=>{const o=t&&i;o!==this._wantsAltCommand&&(this._wantsAltCommand=o,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(o=>{i=o.altKey||(qn||Ds)&&o.shiftKey,s()})),this._register(de(e,"mouseleave",o=>{t=!1,s()})),this._register(de(e,"mouseenter",o=>{t=!0,s()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let s=t?m("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt){const o=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,r=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),a=r&&r.getLabel(),l=a?m("titleAndKb","{0} ({1})",o,a):o;s+=` +[${nO.modifierLabels[or].altKey}] ${l}`}this.label.title=s}}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:i,label:s}=this;if(!i||!s)return;const o=this._commandAction.checked&&(!((t=e.toggled)===null||t===void 0)&&t.icon)?e.toggled.icon:e.icon;if(o)if(ai.isThemeIcon(o)){const r=ai.asClassNameArray(o);s.classList.add(...r),this._itemClassDispose.value=vt(()=>{s.classList.remove(...r)})}else o.light&&s.style.setProperty("--menu-entry-icon-light",gf(o.light)),o.dark&&s.style.setProperty("--menu-entry-icon-dark",gf(o.dark)),s.classList.add("icon"),this._itemClassDispose.value=vt(()=>{s.classList.remove("icon"),s.style.removeProperty("--menu-entry-icon-light"),s.style.removeProperty("--menu-entry-icon-dark")})}};Ap=s4([ll(2,Ui),ll(3,rn),ll(4,lt)],Ap);let yA=class extends mq{constructor(e,t,i){var s,o;const r=Object.assign({},t??Object.create(null),{menuAsChild:(s=t==null?void 0:t.menuAsChild)!==null&&s!==void 0?s:!1,classNames:(o=t==null?void 0:t.classNames)!==null&&o!==void 0?o:ai.isThemeIcon(e.item.icon)?ai.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,r)}render(e){if(super.render(e),this.element){e.classList.add("menu-entry");const{icon:t}=this._action.item;t&&!ai.isThemeIcon(t)&&(this.element.classList.add("icon"),t.light&&this.element.style.setProperty("--menu-entry-icon-light",gf(t.light)),t.dark&&this.element.style.setProperty("--menu-entry-icon-dark",gf(t.dark)))}}};yA=s4([ll(2,Fu)],yA);let SA=class extends al{constructor(e,t,i,s,o,r,a,l){var c,d,u;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=o,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._storageKey=`${e.item.submenu._debugName}_lastActionId`;let h,f=l.get(this._storageKey,1);f&&(h=e.actions.find(_=>f===_.id)),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(Ap,h,void 0);const g=Object.assign({},t??Object.create(null),{menuAsChild:(c=t==null?void 0:t.menuAsChild)!==null&&c!==void 0?c:!0,classNames:(d=t==null?void 0:t.classNames)!==null&&d!==void 0?d:["codicon","codicon-chevron-down"],actionRunner:(u=t==null?void 0:t.actionRunner)!==null&&u!==void 0?u:new gp});this._dropdown=new mq(e,e.actions,this._contextMenuService,g),this._dropdown.actionRunner.onDidRun(_=>{_.action instanceof fu&&this.update(_.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(Ap,e,void 0),this._defaultAction.actionRunner=new class extends gp{runAction(t,i){return pq(this,void 0,void 0,function*(){yield t.run(void 0)})}},this._container&&this._defaultAction.render(bue(this._container,le(".action-container")))}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=le(".action-container");this._defaultAction.render(re(this._container,t)),this._register(de(t,Xe.KEY_DOWN,s=>{const o=new Si(s);o.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),o.stopPropagation())}));const i=le(".dropdown-action-container");this._dropdown.render(re(this._container,i)),this._register(de(i,Xe.KEY_DOWN,s=>{var o;const r=new Si(s);r.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(o=this._defaultAction.element)===null||o===void 0||o.focus(),r.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};SA=s4([ll(2,Ui),ll(3,rn),ll(4,Fu),ll(5,ig),ll(6,Et),ll(7,Zl)],SA);function zLe(n,e,t){return e instanceof fu?n.createInstance(Ap,e,void 0):e instanceof vP?e.item.rememberDefaultAction?n.createInstance(SA,e,t):n.createInstance(yA,e,t):void 0}var _q=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},bq=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const vq=At("IPeekViewService");Vt(vq,class{constructor(){this._widgets=new Map}addExclusiveWidget(n,e){const t=this._widgets.get(n);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const s=this._widgets.get(n);s&&s.widget===e&&(s.listener.dispose(),this._widgets.delete(n))};this._widgets.set(n,{widget:e,listener:e.onDidClose(i)})}});var oo;(function(n){n.inPeekEditor=new Re("inReferenceSearchEditor",!0,m("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),n.notInPeekEditor=n.inPeekEditor.toNegated()})(oo||(oo={}));let f1=class{constructor(e,t){e instanceof Nf&&oo.inPeekEditor.bindTo(t)}dispose(){}};f1.ID="editor.contrib.referenceController";f1=_q([bq(1,lt)],f1);Kt(f1.ID,f1);function $Le(n){let e=n.get(Zt).getFocusedCodeEditor();return e instanceof Nf?e.getParentEditor():e}const ULe={headerBackgroundColor:X.white,primaryHeadingColor:X.fromHex("#333333"),secondaryHeadingColor:X.fromHex("#6c6c6cb3")};let jS=class extends OLe{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new j,this.onDidClose=this._onDidClose.event,$l(this.options,ULe,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let 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();let 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=le(".head"),this._bodyElement=le(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=le(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),jn(i,"click",r=>this._onTitleClick(r))),re(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=le("span.filename"),this._secondaryHeading=le("span.dirname"),this._metaHeading=le("span.meta"),re(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const s=le(".peekview-actions");re(this._headElement,s);const o=this._getActionBarOptions();this._actionbarWidget=new Fl(s,o),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new Co("peekview.close",m("label.close","Close"),p.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:zLe.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:Sn(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Bo(this._metaHeading)):eo(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(59)*1.2),s=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(s,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`)}};jS=_q([bq(2,Et)],jS);const jLe=F("peekViewTitle.background",{dark:nt(Ko,.1),light:nt(Ko,.1),hc:null},m("peekViewTitleBackground","Background color of the peek view title area.")),Cq=F("peekViewTitleLabel.foreground",{dark:X.white,light:X.black,hc:X.white},m("peekViewTitleForeground","Color of the peek view title.")),wq=F("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hc:"#FFFFFF99"},m("peekViewTitleInfoForeground","Color of the peek view title info.")),qLe=F("peekView.border",{dark:Ko,light:Ko,hc:Ii},m("peekViewBorder","Color of the peek view borders and arrow.")),KLe=F("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:X.black},m("peekViewResultsBackground","Background color of the peek view result list."));F("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:X.white},m("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));F("peekViewResult.fileForeground",{dark:X.white,light:"#1E1E1E",hc:X.white},m("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));F("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},m("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));F("peekViewResult.selectionForeground",{dark:X.white,light:"#6C6C6C",hc:X.white},m("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const jD=F("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:X.black},m("peekViewEditorBackground","Background color of the peek view editor."));F("peekViewEditorGutter.background",{dark:jD,light:jD,hc:jD},m("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));F("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},m("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));F("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},m("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));F("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:Is},m("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var GLe=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class yu{constructor(e,t,i,s){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=s,this.id=EU.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?m({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",yr(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):m("aria.oneReference","symbol in {0} on line {1} at column {2}",yr(this.uri),this.range.startLineNumber,this.range.startColumn)}}class YLe{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:s,startColumn:o,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:s,column:o-t}),c=new T(s,l.startColumn,s,o),d=new T(r,a,r,1073741824),u=i.getValueInRange(c).replace(/^\s+/,""),h=i.getValueInRange(e),f=i.getValueInRange(d).replace(/\s+$/,"");return{value:u+h+f,highlight:{start:u.length,end:u.length+h.length}}}}class g1{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Fs}dispose(){Pt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?m("aria.fileReferences.1","1 symbol in {0}, full path {1}",yr(this.uri),this.uri.fsPath):m("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,yr(this.uri),this.uri.fsPath)}resolve(e){return GLe(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new YLe(i))}catch(i){dt(i)}return this})}}class wo{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new j,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(wo._compareReferences);let s;for(let o of e)if((!s||!_i.isEqual(s.uri,o.uri,!0))&&(s=new g1(this,o.uri),this.groups.push(s)),s.children.length===0||wo._compareReferences(o,s.children[s.children.length-1])!==0){const r=new yu(i===o,s,o,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),s.children.push(r)}}dispose(){Pt(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new wo(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?m("aria.result.0","No results found"):this.references.length===1?m("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?m("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):m("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:i}=e,s=i.children.indexOf(e),o=i.children.length,r=i.parent.groups.length;return r===1||t&&s+10?(t?s=(s+1)%o:s=(s+o-1)%o,i.children[s]):(s=i.parent.groups.indexOf(i),t?(s=(s+1)%r,i.parent.groups[s].children[0]):(s=(s+r-1)%r,i.parent.groups[s].children[i.parent.groups[s].children.length-1]))}nearestReference(e,t){const i=this.references.map((s,o)=>({idx:o,prefixLen:cp(s.uri.toString(),e.toString()),offsetDist:Math.abs(s.range.startLineNumber-t.lineNumber)*100+Math.abs(s.range.startColumn-t.column)})).sort((s,o)=>s.prefixLen>o.prefixLen?-1:s.prefixLeno.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&T.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return _i.compare(e.uri,t.uri)||T.compareRangesUsingStarts(e.range,t.range)}}function yq(n){if(!n)return;typeof n=="string"&&(n=et.file(n));const e=yr(n)||(n.scheme===mt.file?n.fsPath:n.path);return qn&&Ype(e)?LA(e):e}function LA(n,e){return D$(n,e)?n.charAt(0).toUpperCase()+n.slice(1):n}var tx=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},m1=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let kA=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof wo||e instanceof g1}getChildren(e){if(e instanceof wo)return e.groups;if(e instanceof g1)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};kA=tx([m1(0,ro)],kA);class ZLe{getHeight(){return 23}getTemplateId(e){return e instanceof g1?p1.id:p0.id}}let xA=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof yu){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return yr(e.uri)}};xA=tx([m1(0,Ui)],xA);class XLe{getId(e){return e instanceof yu?e.id:e.uri}}let EA=class extends J{constructor(e,t,i){super(),this._uriLabel=t;const s=document.createElement("div");s.classList.add("reference-file"),this.file=this._register(new MS(s,{supportHighlights:!0})),this.badge=new AT(re(s,le(".count"))),this._register(h1e(this.badge,i)),e.appendChild(s)}set(e,t){let i=Ck(e.uri);this.file.setLabel(yq(e.uri),this._uriLabel.getUriLabel(i,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});const s=e.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat(m("referencesCount","{0} references",s)):this.badge.setTitleFormat(m("referenceCount","{0} reference",s))}};EA=tx([m1(1,a0),m1(2,ki)],EA);let p1=class Sq{constructor(e){this._instantiationService=e,this.templateId=Sq.id}renderTemplate(e){return this._instantiationService.createInstance(EA,e)}renderElement(e,t,i){i.set(e.element,Dk(e.filterData))}disposeTemplate(e){e.dispose()}};p1.id="FileReferencesRenderer";p1=tx([m1(0,Et)],p1);class QLe{constructor(e){this.label=new Lf(e)}set(e,t){var i;const s=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!s||!s.value)this.label.set(`${yr(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:o,highlight:r}=s;t&&!Da.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(o,Dk(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(o,[r]))}}}class p0{constructor(){this.templateId=p0.id}renderTemplate(e){return new QLe(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}p0.id="OneReferenceRenderer";class JLe{getWidgetAriaLabel(){return m("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var eke=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},sc=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},j9=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};class ix{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new ue,this._callOnModelChange=new ue,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(let 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=[],i=[];for(let o=0,r=e.children.length;o{o.equals(9)&&(this._keybindingService.dispatchEvent(o,o.target),o.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(ike,"ReferencesWidget",this._treeContainer,new ZLe,[this._instantiationService.createInstance(p1),this._instantiationService.createInstance(p0)],this._instantiationService.createInstance(kA),i),this._splitView.addView({onDidChange:je.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:o=>{this._preview.layout({height:this._dim.height,width:o})}},PS.Distribute),this._splitView.addView({onDidChange:je.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:o=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${o}px`,this._tree.layout(this._dim.height,o)}},PS.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let s=(o,r)=>{o instanceof yu&&(r==="show"&&this._revealReference(o,!1),this._onDidSelectReference.fire({element:o,kind:r,source:"tree"}))};this._tree.onDidOpen(o=>{o.sideBySide?s(o.element,"side"):o.editorOptions.pinned?s(o.element,"goto"):s(o.element,"show")}),eo(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new oi(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=m("noResults","No results"),Bo(this._messageContainer),Promise.resolve(void 0)):(eo(this._messageContainer),this._decorationsManager=new ix(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:i}=e;if(t.detail!==2)return;const s=this._getFocusedReference();s&&this._onDidSelectReference.fire({element:{uri:s.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),Bo(this._treeContainer),Bo(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 yu)return e;if(e instanceof g1&&e.children.length>0)return e.children[0]}revealReference(e){return j9(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return j9(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==mt.inMemory?this.setTitle(Xpe(e.uri),this._uriLabel.getUriLabel(Ck(e.uri))):this.setTitle(m("peekView.alternateTitle","References"));const i=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 s=yield i;if(!this._model){s.dispose();return}Pt(this._previewModelReference);const o=s.object;if(o){const r=this._preview.getModel()===o.textEditorModel?0:1,a=T.lift(e.range).collapseToStart();this._previewModelReference=s,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),s.dispose()})}};DA=eke([sc(3,ki),sc(4,ro),sc(5,Et),sc(6,vq),sc(7,a0),sc(8,wk),sc(9,Ui),sc(10,Oi),sc(11,ws)],DA);var nke=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Vg=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},q9=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const gg=new Re("referenceSearchVisible",!1,m("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Su=class IA{constructor(e,t,i,s,o,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=o,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new ue,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=gg.bindTo(i)}static get(e){return e.getContribution(IA.ID)}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,i){let s;if(this._widget&&(s=this._widget.position),this.closeWidget(),s&&e.containsPosition(s))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const o="peekViewLayout",r=tke.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(DA,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(m("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{let{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(m("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let d=this._editor.getModel().uri,u=new Z(e.startLineNumber,e.startColumn),h=this._model.nearestReference(d,u);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(77)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return q9(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const s=this._model.nextOrPreviousReference(i,e),o=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(s),yield this._gotoReference(s),o?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return q9(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const t=T.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:t,selectionSource:"code.jump"}},this._editor).then(i=>{var s;if(this._ignoreModelChangeEvent=!1,!i||!this._widget){this.closeWidget();return}if(this._editor===i)this._widget.show(t),this._widget.focusOnReferenceTree();else{const o=IA.get(i),r=this._model.clone();this.closeWidget(),i.focus(),o==null||o.toggleWidget(t,Kn(a=>Promise.resolve(r)),(s=this._peekMode)!==null&&s!==void 0?s:!1)}},i=>{this._ignoreModelChangeEvent=!1,dt(i)})}openReference(e,t,i){t||this.closeWidget();const{uri:s,range:o}=e;this._editorService.openCodeEditor({resource:s,options:{selection:o,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Su.ID="editor.contrib.referencesController";Su=nke([Vg(2,lt),Vg(3,Zt),Vg(4,rn),Vg(5,Et),Vg(6,Zl),Vg(7,li)],Su);function mg(n,e){const t=$Le(n);if(!t)return;const i=Su.get(t);i&&e(i)}Us.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Fn(2089,60),when:xe.or(gg,oo.inPeekEditor),handler(n){mg(n,e=>{e.changeFocusBetweenPreviewAndReferences()})}});Us.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:xe.or(gg,oo.inPeekEditor),handler(n){mg(n,e=>{e.goToNextOrPreviousReference(!0)})}});Us.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:xe.or(gg,oo.inPeekEditor),handler(n){mg(n,e=>{e.goToNextOrPreviousReference(!1)})}});Ot.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Ot.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Ot.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Ot.registerCommand("closeReferenceSearch",n=>mg(n,e=>e.closeWidget()));Us.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:xe.and(oo.inPeekEditor,xe.not("config.editor.stablePeek"))});Us.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:xe.and(gg,xe.not("config.editor.stablePeek"))});Us.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:xe.and(gg,ZU,MO.negate(),RO.negate()),handler(n){var e;const i=(e=n.get(Nr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof yu&&mg(n,s=>s.revealReference(i[0]))}});Us.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:xe.and(gg,ZU,MO.negate(),RO.negate()),handler(n){var e;const i=(e=n.get(Nr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof yu&&mg(n,s=>s.openReference(i[0],!0,!0))}});Ot.registerCommand("openReference",n=>{var e;const i=(e=n.get(Nr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof yu&&mg(n,s=>s.openReference(i[0],!1,!0))});var Lq=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},vb=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const o4=new Re("hasSymbols",!1,m("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),nx=At("ISymbolNavigationService");let NA=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=o4.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 i=new TA(this._editorService),s=i.onDidChange(o=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const u of t.references)if(I$(u.uri,a.uri))c=!0,d=d||T.containsPosition(u.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Mc(i,s)}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:T.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"),i=t?m("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):m("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};NA=Lq([vb(0,lt),vb(1,Zt),vb(2,rn),vb(3,Ui)],NA);Vt(nx,NA,!0);pe(new class extends ss{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:o4,kbOpts:{weight:100,primary:70}})}runEditorCommand(n,e){return n.get(nx).revealNext(e)}});Us.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:o4,primary:9,handler(n){n.get(nx).reset()}});let TA=class{constructor(e){this._listener=new Map,this._disposables=new ue,this._onDidChange=new j,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(),Pt(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Mc(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)}};TA=Lq([vb(0,Zt)],TA);var kq=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};function _0(n,e,t,i){const o=t.ordered(n).map(r=>Promise.resolve(i(r,n,e)).then(void 0,a=>{On(a)}));return Promise.all(o).then(r=>{const a=[];for(let l of r)Array.isArray(l)?a.push(...l):l&&a.push(l);return a})}function r4(n,e,t,i){return _0(e,t,n,(s,o,r)=>s.provideDefinition(o,r,i))}function xq(n,e,t,i){return _0(e,t,n,(s,o,r)=>s.provideDeclaration(o,r,i))}function Eq(n,e,t,i){return _0(e,t,n,(s,o,r)=>s.provideImplementation(o,r,i))}function Dq(n,e,t,i){return _0(e,t,n,(s,o,r)=>s.provideTypeDefinition(o,r,i))}function sx(n,e,t,i,s){return _0(e,t,n,(o,r,a)=>kq(this,void 0,void 0,function*(){const l=yield o.provideReferences(r,a,{includeDeclaration:!0},s);if(!i||!l||l.length!==2)return l;const c=yield o.provideReferences(r,a,{includeDeclaration:!1},s);return c&&c.length===1?c:l}))}function b0(n){return kq(this,void 0,void 0,function*(){const e=yield n(),t=new wo(e,""),i=t.references.map(s=>s.link);return t.dispose(),i})}ql("_executeDefinitionProvider",(n,e,t)=>{const i=n.get(He),s=r4(i.definitionProvider,e,t,xt.None);return b0(()=>s)});ql("_executeTypeDefinitionProvider",(n,e,t)=>{const i=n.get(He),s=Dq(i.typeDefinitionProvider,e,t,xt.None);return b0(()=>s)});ql("_executeDeclarationProvider",(n,e,t)=>{const i=n.get(He),s=xq(i.declarationProvider,e,t,xt.None);return b0(()=>s)});ql("_executeReferenceProvider",(n,e,t)=>{const i=n.get(He),s=sx(i.referenceProvider,e,t,!1,xt.None);return b0(()=>s)});ql("_executeImplementationProvider",(n,e,t)=>{const i=n.get(He),s=Eq(i.implementationProvider,e,t,xt.None);return b0(()=>s)});var Zr=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})},qD,KD,GD,YD,ZD,XD,QD,JD;qo.appendMenuItem(W.EditorContext,{submenu:W.EditorContextPeek,title:m("peek.submenu","Peek"),group:"navigation",order:100});const Iq=new Set;function Wa(n){const e=new n;return wz(e),Iq.add(e.id),e}class _1{constructor(e,t){this.model=e,this.position=t}static is(e){return!e||typeof e!="object"?!1:!!(e instanceof _1||Z.isIPosition(e.position)&&e.model)}}class pg extends Be{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(rn),o=e.get(Zt),r=e.get(Bu),a=e.get(nx),l=e.get(He),c=t.getModel(),d=t.getPosition(),u=_1.is(i)?i:new _1(c,d),h=new h1(t,5),f=eP(this._getLocationModel(l,u.model,u.position,h.token),h.token).then(g=>Zr(this,void 0,void 0,function*(){var _;if(!g||h.token.isCancellationRequested)return;Jn(g.ariaMessage);let b;if(g.referenceAt(c.uri,d)){const C=this._getAlternativeCommand(t);C!==this.id&&Iq.has(C)&&(b=t.getAction(C))}const v=g.references.length;if(v===0){if(!this.configuration.muteMessage){const C=c.getWordAtPosition(d);(_=Qo.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(C),d)}}else if(v===1&&b)b.run();else return this._onResult(o,a,t,g)}),g=>{s.error(g)}).finally(()=>{h.dispose()});return r.showWhile(f,250),f}_onResult(e,t,i,s){return Zr(this,void 0,void 0,function*(){const o=this._getGoToPreference(i);if(!(i instanceof Nf)&&(this.configuration.openInPeek||o==="peek"&&s.references.length>1))this._openInPeek(i,s);else{const r=s.firstReference(),a=s.references.length>1&&o==="gotoAndPeek",l=yield this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,s):s.dispose(),o==="goto"&&t.put(r)}})}_openReference(e,t,i,s,o){return Zr(this,void 0,void 0,function*(){let r;if(xle(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:T.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,s);if(a){if(o){const l=a.getModel(),c=a.deltaDecorations([],[{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&a.deltaDecorations(c,[])},350)}return a}})}_openInPeek(e,t){const i=Su.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),Kn(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}class v0 extends pg{_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(yield r4(e.definitionProvider,t,i,s),m("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?m("noResultWord","No definition found for '{0}'",e.word):m("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(51).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(51).multipleDefinitions}}const Nq=Ou&&!YR?2118:70;Wa((qD=class AA extends v0{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:AA.id,label:m("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:xe.and(O.hasDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:Nq,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),Ot.registerCommandAlias("editor.action.goToDeclaration",AA.id)}},qD.id="editor.action.revealDefinition",qD));Wa((KD=class MA extends v0{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:MA.id,label:m("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:xe.and(O.hasDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:Fn(2089,Nq),weight:100}}),Ot.registerCommandAlias("editor.action.openDeclarationToTheSide",MA.id)}},KD.id="editor.action.revealDefinitionAside",KD));Wa((GD=class RA extends v0{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:RA.id,label:m("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:xe.and(O.hasDefinitionProvider,oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:W.EditorContextPeek,group:"peek",order:2}}),Ot.registerCommandAlias("editor.action.previewDeclaration",RA.id)}},GD.id="editor.action.peekDefinition",GD));class Tq extends pg{_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(yield xq(e.declarationProvider,t,i,s),m("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?m("decl.noResultWord","No declaration found for '{0}'",e.word):m("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(51).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(51).multipleDeclarations}}Wa((YD=class Aq extends Tq{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Aq.id,label:m("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:xe.and(O.hasDeclarationProvider,O.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?m("decl.noResultWord","No declaration found for '{0}'",e.word):m("decl.generic.noResults","No declaration found")}},YD.id="editor.action.revealDeclaration",YD));Wa(class extends Tq{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:m("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:xe.and(O.hasDeclarationProvider,oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:W.EditorContextPeek,group:"peek",order:3}})}});class Mq extends pg{_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(yield Dq(e.typeDefinitionProvider,t,i,s),m("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?m("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):m("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(51).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(51).multipleTypeDefinitions}}Wa((ZD=class Rq extends Mq{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Rq.ID,label:m("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:xe.and(O.hasTypeDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}},ZD.ID="editor.action.goToTypeDefinition",ZD));Wa((XD=class Pq extends Mq{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Pq.ID,label:m("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:xe.and(O.hasTypeDefinitionProvider,oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:W.EditorContextPeek,group:"peek",order:4}})}},XD.ID="editor.action.peekTypeDefinition",XD));class Oq extends pg{_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(yield Eq(e.implementationProvider,t,i,s),m("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?m("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):m("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(51).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(51).multipleImplementations}}Wa((QD=class Fq extends Oq{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Fq.ID,label:m("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:xe.and(O.hasImplementationProvider,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}},QD.ID="editor.action.goToImplementation",QD));Wa((JD=class Bq extends Oq{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Bq.ID,label:m("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:xe.and(O.hasImplementationProvider,oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:W.EditorContextPeek,group:"peek",order:5}})}},JD.ID="editor.action.peekImplementation",JD));class Vq extends pg{_getNoResultFoundMessage(e){return e?m("references.no","No references found for '{0}'",e.word):m("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(51).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(51).multipleReferences}}Wa(class extends Vq{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:m("goToReferences.label","Go to References"),alias:"Go to References",precondition:xe.and(O.hasReferenceProvider,oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:O.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(yield sx(e.referenceProvider,t,i,!0,s),m("ref.title","References"))})}});Wa(class extends Vq{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:m("references.action.label","Peek References"),alias:"Peek References",precondition:xe.and(O.hasReferenceProvider,oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:W.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(yield sx(e.referenceProvider,t,i,!1,s),m("ref.title","References"))})}});class ske extends pg{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:m("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:xe.and(oo.notInPeekEditor,O.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,s){return Zr(this,void 0,void 0,function*(){return new wo(this._references,m("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&m("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(51).multipleReferences}_getAlternativeCommand(){return""}}Ot.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:et},{name:"position",description:"The position at which to start",constraint:Z.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:(n,e,t,i,s,o,r)=>Zr(void 0,void 0,void 0,function*(){ri(et.isUri(e)),ri(Z.isIPosition(t)),ri(Array.isArray(i)),ri(typeof s>"u"||typeof s=="string"),ri(typeof r>"u"||typeof r=="boolean");const a=n.get(Zt),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(jc(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends ske{_getNoResultFoundMessage(u){return o||super._getNoResultFoundMessage(u)}}({muteMessage:!o,openInPeek:!!r,openToSide:!1},i,s);c.get(Et).invokeFunction(d.run.bind(d),l)})})});Ot.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:et},{name:"position",description:"The position at which to start",constraint:Z.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:(n,e,t,i,s)=>Zr(void 0,void 0,void 0,function*(){n.get(sn).executeCommand("editor.action.goToLocations",e,t,i,s,void 0,!0)})});Ot.registerCommand({id:"editor.action.findReferences",handler:(n,e,t)=>{ri(et.isUri(e)),ri(Z.isIPosition(t));const i=n.get(He),s=n.get(Zt);return s.openCodeEditor({resource:e},s.getFocusedCodeEditor()).then(o=>{if(!jc(o)||!o.hasModel())return;const r=Su.get(o);if(!r)return;const a=Kn(c=>sx(i.referenceProvider,o.getModel(),Z.lift(t),!1,c).then(d=>new wo(d,m("ref.title","References")))),l=new T(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});Ot.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");qo.appendMenuItems([{id:W.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:m({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:W.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:m({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:W.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:m({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:W.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:m({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:W.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:m({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}]);var oke=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},eI=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};let Tf=class Cb{constructor(e,t,i,s){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=s,this.toUnhook=new ue,this.toUnhookForKeyboard=new ue,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let o=new n4(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,_o(a))})),this.toUnhook.add(o.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},a=>{this.removeLinkDecorations(),dt(a)})})),this.toUnhook.add(o.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(Cb.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{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 i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;let s=new mj(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Kn(o=>this.findDefinition(e,o)),this.previousPromise.then(o=>{if(!o||!o.length||!s.validate(this.editor)){this.removeLinkDecorations();return}if(o.length>1)this.addDecoration(new T(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),new Wo().appendText(m("multipleResults","Click to show {0} definitions.",o.length)));else{let r=o[0];if(!r.uri)return;this.textModelResolverService.createModelReference(r.uri).then(a=>{if(!a.object||!a.object.textEditorModel){a.dispose();return}const{object:{textEditorModel:l}}=a,{startLineNumber:c}=r.range;if(c<1||c>l.getLineCount()){a.dispose();return}const d=this.getPreviewValue(l,c,r);let u;r.originSelectionRange?u=T.lift(r.originSelectionRange):u=new T(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const h=this.languageService.guessLanguageIdByFilepathOrFirstLine(l.uri);this.addDecoration(u,new Wo().appendCodeblock(h||"",d)),a.dispose()})}}).then(void 0,dt)}getPreviewValue(e,t,i){let s=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(e,t);return s.endLineNumber-s.startLineNumber>=Cb.MAX_SOURCE_PREVIEW_LINES&&(s=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,s)}stripIndentationFromPreviewRange(e,t,i){let o=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;ai)return new T(t,1,i+1,1);r=e.bracketPairs.findNextBracket(new Z(l,c))}return new T(t,1,i+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[i])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&e.target.type===6&&(e.hasTriggerModifier||(t?t.keyCodeIsTriggerKey:!1))&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?r4(this.languageFeaturesService.definitionProvider,i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(i=>{const s=!t&&this.editor.getOption(78)&&!this.isInPeekEditor(i);return new v0({openToSide:t,openInPeek:s,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(i,this.editor)})}isInPeekEditor(e){const t=e.get(lt);return oo.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};Tf.ID="editor.contrib.gotodefinitionatposition";Tf.MAX_SOURCE_PREVIEW_LINES=8;Tf=oke([eI(1,ro),eI(2,Oi),eI(3,He)],Tf);Kt(Tf.ID,Tf);bi((n,e)=>{const t=n.getColor(DP);t&&e.addRule(`.monaco-editor .goto-definition-link { color: ${t} !important; }`)});const AC=le;class Wq extends J{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 i0(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class a4 extends J{constructor(e,t,i){super(),this.actionContainer=re(e,AC("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=re(this.actionContainer,AC("a.action")),this.action.setAttribute("role","button"),t.iconClass&&re(this.action,AC(`span.icon.${t.iconClass}`));const s=re(this.action,AC("span"));s.textContent=i?`${t.label} (${i})`:t.label,this._register(de(this.actionContainer,Xe.CLICK,o=>{o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer)})),this._register(de(this.actionContainer,Xe.KEY_UP,o=>{new Si(o).equals(3)&&(o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}static render(e,t,i){return new a4(e,t,i)}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 rke=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})},ake=globalThis&&globalThis.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(r){return new Promise(function(a,l){r=n[o](r),s(a,l,r.done,r.value)})}}function s(o,r,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},r)}};class lke{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class Hq extends J{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new j),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new ni(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new ni(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new ni(()=>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(53).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=Pce(e=>this._computer.computeAsync(e)),rke(this,void 0,void 0,function*(){var e,t;try{try{for(var i=ake(this._asyncIterable),s;s=yield i.next(),!s.done;){const o=s.value;o&&(this._result.push(o),this._fireResult())}}catch(o){e={error:o}}finally{try{s&&!s.done&&(t=i.return)&&(yield t.call(i))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(o){dt(o)}})):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 lke(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 tI{constructor(e,t){this.priority=e,this.range=t,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 ey{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,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 _g=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class Wr{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e=this.pos,t=0,i=this.value.charCodeAt(e),s;if(s=Wr._table[i],typeof s=="number")return this.pos+=1,{type:s,pos:e,len:1};if(Wr.isDigitCharacter(i)){s=8;do t+=1,i=this.value.charCodeAt(e+t);while(Wr.isDigitCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}if(Wr.isVariableCharacter(i)){s=9;do i=this.value.charCodeAt(e+ ++t);while(Wr.isVariableCharacter(i)||Wr.isDigitCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}s=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof Wr._table[i]>"u"&&!Wr.isDigitCharacter(i)&&!Wr.isVariableCharacter(i));return this.pos+=t,{type:s,pos:e,len:t}}}Wr._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class p_{constructor(){this._children=[]}appendChild(e){return e instanceof mo&&this._children[this._children.length-1]instanceof mo?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),o=i.children.slice(0);o.splice(s,1,...t),i._children=o,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof ox)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class mo extends p_{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new mo(this.value)}}class zq extends p_{}class $r extends zq{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof C0?this._children[0]:void 0}clone(){let e=new $r(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class C0 extends p_{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof mo&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new C0;return this.options.forEach(e.appendChild,e),e}}class l4 extends p_{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(o=>o instanceof ga&&!!o.elseValue)&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof ga){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){let e=new l4;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class ga extends p_{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase()).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,s)=>s===0?i.toLowerCase():i.charAt(0).toUpperCase()+i.substr(1).toLowerCase()).join(""):e}clone(){return new ga(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class b1 extends zq{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new mo(t)],!0):!1}clone(){const e=new b1(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function K9(n,e){const t=[...n];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class ox extends p_{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(i){return i instanceof $r&&(e.push(i),t=!t||t.indexs===e?(i=!0,!1):(t+=s.len(),!0)),i?t:-1}fullLen(e){let t=0;return K9([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:i}=e;for(;i;)i instanceof $r&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof b1&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new ox;return this._children=this.children.map(t=>t.clone()),e}walk(e){K9(this.children,e)}}class rx{constructor(){this._scanner=new Wr,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){this._scanner.text(e),this._token=this._scanner.next();const s=new ox;for(;this._parse(s););const o=new Map,r=[];let a=0;s.walk(l=>(l instanceof $r&&(a+=1,l.isFinalTabstop?o.set(0,void 0):!o.has(l.index)&&l.children.length>0?o.set(l.index,l.children):r.push(l)),!0));for(const l of r){const c=o.get(l.index);if(c){const d=new $r(l.index);d.transform=l.transform;for(const u of c)d.appendChild(u.clone());s.replace(l,[d])}}return i||(i=a>0&&t),!o.has(0)&&i&&s.appendChild(new $r(0)),s}_accept(e,t){if(e===void 0||this._token.type===e){let i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const s=this._scanner.next();if(s.type!==0&&s.type!==4&&s.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new mo(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new $r(Number(t)):new b1(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const o=new $r(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new mo("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){const r=new C0;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(r),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let s;if((s=this._accept(5,!0))?s=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||s:s=this._accept(void 0,!0),!s)return this._backTo(t),!1;i.push(s)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new mo(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const o=new b1(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new mo("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){let t=new l4,i="",s="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,i+=o;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new mo(o));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){s+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,s)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);let s=this._accept(8,!0);if(s)if(i){if(this._accept(4))return e.appendChild(new ga(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new ga(Number(s))),!0;else return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new ga(Number(s),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new ga(Number(s),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new ga(Number(s),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let r=this._until(4);if(r)return e.appendChild(new ga(Number(s),void 0,o,r)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new ga(Number(s),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new mo(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const cke={inputActiveOptionBorder:X.fromHex("#007ACC00"),inputActiveOptionForeground:X.fromHex("#FFFFFF"),inputActiveOptionBackground:X.fromHex("#0E639C50")};class w0 extends sa{constructor(e){super(),this._onChange=this._register(new j),this.onChange=this._onChange.event,this._onKeyDown=this._register(new j),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},cke),e),this._checked=this._opts.isChecked;const t=["monaco-custom-checkbox"];this._opts.icon&&t.push(...Os.asClassNameArray(this._opts.icon)),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,i=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),i.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,i=>{if(i.keyCode===10||i.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),i.preventDefault();return}this._onKeyDown.fire(i)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const dke=m("caseDescription","Match Case"),uke=m("wordsDescription","Match Whole Word"),hke=m("regexDescription","Use Regular Expression");class $q extends w0{constructor(e){super({icon:p.caseSensitive,title:dke+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Uq extends w0{constructor(e){super({icon:p.wholeWord,title:uke+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class jq extends w0{constructor(e){super({icon:p.regex,title:hke+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}const fke=m("defaultLabel","input");class gke extends sa{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this._onDidOptionChange=this._register(new j),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new j),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new j),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new j),this._onKeyUp=this._register(new j),this._onCaseSensitiveKeyDown=this._register(new j),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new j),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||fke,this.inputActiveOptionBorder=s.inputActiveOptionBorder,this.inputActiveOptionForeground=s.inputActiveOptionForeground,this.inputActiveOptionBackground=s.inputActiveOptionBackground,this.inputBackground=s.inputBackground,this.inputForeground=s.inputForeground,this.inputBorder=s.inputBorder,this.inputValidationInfoBorder=s.inputValidationInfoBorder,this.inputValidationInfoBackground=s.inputValidationInfoBackground,this.inputValidationInfoForeground=s.inputValidationInfoForeground,this.inputValidationWarningBorder=s.inputValidationWarningBorder,this.inputValidationWarningBackground=s.inputValidationWarningBackground,this.inputValidationWarningForeground=s.inputValidationWarningForeground,this.inputValidationErrorBorder=s.inputValidationErrorBorder,this.inputValidationErrorBackground=s.inputValidationErrorBackground,this.inputValidationErrorForeground=s.inputValidationErrorForeground;const o=s.appendCaseSensitiveLabel||"",r=s.appendWholeWordsLabel||"",a=s.appendRegexLabel||"",l=s.history||[],c=!!s.flexibleHeight,d=!!s.flexibleWidth,u=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new TU(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:l,showHistoryHint:s.showHistoryHint,flexibleHeight:c,flexibleWidth:d,flexibleMaxHeight:u})),this.regex=this._register(new jq({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(f=>{this._onRegexKeyDown.fire(f)})),this.wholeWords=this._register(new Uq({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new $q({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(f=>{this._onDidOptionChange.fire(f),!f&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(f=>{this._onCaseSensitiveKeyDown.fire(f)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let h=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,f=>{if(f.equals(15)||f.equals(17)||f.equals(9)){let g=h.indexOf(document.activeElement);if(g>=0){let _=-1;f.equals(17)?_=(g+1)%h.length:f.equals(15)&&(g===0?_=h.length-1:_=g-1),f.equals(9)?(h[g].blur(),this.inputBox.focus()):_>=0&&h[_].focus(),Yt.stop(f,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this.domNode.appendChild(this.controls),e&&e.appendChild(this.domNode),this._register(de(this.inputBox.inputElement,"compositionstart",f=>{this.imeSessionInProgress=!0})),this._register(de(this.inputBox.inputElement,"compositionend",f=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,f=>this._onKeyDown.fire(f)),this.onkeyup(this.inputBox.inputElement,f=>this._onKeyUp.fire(f)),this.oninput(this.inputBox.inputElement,f=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,f=>this._onMouseDown.fire(f))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}const mke=m("defaultLabel","input"),pke=m("label.preserveCaseCheckbox","Preserve Case");class _ke extends w0{constructor(e){super({icon:p.preserveCase,title:pke+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class bke extends sa{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new j),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new j),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new j),this._onInput=this._register(new j),this._onKeyUp=this._register(new j),this._onPreserveCaseKeyDown=this._register(new j),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||mke,this.inputActiveOptionBorder=s.inputActiveOptionBorder,this.inputActiveOptionForeground=s.inputActiveOptionForeground,this.inputActiveOptionBackground=s.inputActiveOptionBackground,this.inputBackground=s.inputBackground,this.inputForeground=s.inputForeground,this.inputBorder=s.inputBorder,this.inputValidationInfoBorder=s.inputValidationInfoBorder,this.inputValidationInfoBackground=s.inputValidationInfoBackground,this.inputValidationInfoForeground=s.inputValidationInfoForeground,this.inputValidationWarningBorder=s.inputValidationWarningBorder,this.inputValidationWarningBackground=s.inputValidationWarningBackground,this.inputValidationWarningForeground=s.inputValidationWarningForeground,this.inputValidationErrorBorder=s.inputValidationErrorBorder,this.inputValidationErrorBackground=s.inputValidationErrorBackground,this.inputValidationErrorForeground=s.inputValidationErrorForeground;const o=s.appendPreserveCaseLabel||"",r=s.history||[],a=!!s.flexibleHeight,l=!!s.flexibleWidth,c=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new TU(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:s.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c})),this.preserveCase=this._register(new _ke({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(h=>{this._onPreserveCaseKeyDown.fire(h)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let d=[this.preserveCase.domNode];this.onkeydown(this.domNode,h=>{if(h.equals(15)||h.equals(17)||h.equals(9)){let f=d.indexOf(document.activeElement);if(f>=0){let g=-1;h.equals(17)?g=(f+1)%d.length:h.equals(15)&&(f===0?g=d.length-1:g=f-1),h.equals(9)?(d[f].blur(),this.inputBox.focus()):g>=0&&d[g].focus(),Yt.stop(h,!0)}}});let u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,h=>this._onKeyDown.fire(h)),this.onkeyup(this.inputBox.inputElement,h=>this._onKeyUp.fire(h)),this.oninput(this.inputBox.inputElement,h=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,h=>this._onMouseDown.fire(h))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var qq=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Kq=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const c4=new Re("suggestWidgetVisible",!1,m("suggestWidgetVisible","Whether suggestion are visible")),v1="historyNavigationWidget",Gq="historyNavigationForwardsEnabled",Yq="historyNavigationBackwardsEnabled";function vke(n,e,t){new Re(t,e).bindTo(n)}function Cke(n,e){return n.createScoped(e.target)}function Zq(n,e){return n.getContext(document.activeElement).getValue(e)}function Xq(n,e){const t=Cke(n,e);vke(t,e,v1);const i=new Re(Gq,!0).bindTo(t),s=new Re(Yq,!0).bindTo(t);return{scopedContextKeyService:t,historyNavigationForwardsEnablement:i,historyNavigationBackwardsEnablement:s}}let PA=class extends gke{constructor(e,t,i,s,o=!1){super(e,t,o,i),this._register(Xq(s,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};PA=qq([Kq(3,lt)],PA);let OA=class extends bke{constructor(e,t,i,s,o=!1){super(e,t,o,i),this._register(Xq(s,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};OA=qq([Kq(3,lt)],OA);Us.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:xe.and(xe.has(v1),xe.equals(Yq,!0),c4.isEqualTo(!1)),primary:16,secondary:[528],handler:n=>{const e=Zq(n.get(lt),v1);e&&e.historyNavigator.showPreviousValue()}});Us.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:xe.and(xe.has(v1),xe.equals(Gq,!0),c4.isEqualTo(!1)),primary:18,secondary:[530],handler:n=>{const e=Zq(n.get(lt),v1);e&&e.historyNavigator.showNextValue()}});var nv=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((i=i.apply(n,e||[])).next())})};const Mt={Visible:c4,DetailsVisible:new Re("suggestWidgetDetailsVisible",!1,m("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new Re("suggestWidgetMultipleSuggestions",!1,m("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new Re("suggestionMakesTextEdit",!0,m("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new Re("acceptSuggestionOnEnter",!0,m("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new Re("suggestionHasInsertAndReplaceRange",!1,m("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new Re("suggestionInsertMode",void 0,{type:"string",description:m("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new Re("suggestionCanResolve",!1,m("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Lu=new W("suggestWidgetStatusBar");class wke{constructor(e,t,i,s){this.position=e,this.completion=t,this.container=i,this.provider=s,this.isInvalid=!1,this.score=Da.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),T.isIRange(t.range)?(this.editStart=new Z(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Z(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Z(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||T.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Z(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Z(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Z(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||T.spansMultipleLines(t.range.insert)||T.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof s.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return nv(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Ul(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class qS{constructor(e=2,t=new Set,i=new Set,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=s}}qS.default=new qS;let yke;function Ske(){return yke}class Lke{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}function Qq(n,e,t,i=qS.default,s={triggerKind:0},o=xt.None){return nv(this,void 0,void 0,function*(){const r=new so(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new T(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):T.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],u=new ue,h=[];let f=!1;const g=(b,v,C)=>{var y,S,x;let A=!1;if(!v)return A;for(let E of v.suggestions)if(!i.kindFilter.has(E.kind)){if(!i.showDeprecated&&(!((y=E==null?void 0:E.tags)===null||y===void 0)&&y.includes(1)))continue;E.range||(E.range=c),E.sortText||(E.sortText=typeof E.label=="string"?E.label:E.label.label),!f&&E.insertTextRules&&E.insertTextRules&4&&(f=rx.guessNeedsClipboard(E.insertText)),d.push(new wke(t,E,v,b)),A=!0}return TR(v)&&u.add(v),h.push({providerName:(S=b._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:C.elapsed()}),A},_=(()=>nv(this,void 0,void 0,function*(){}))();for(let b of n.orderedGroups(e)){let v=!1;if(yield Promise.all(b.map(C=>nv(this,void 0,void 0,function*(){if(!(i.providerFilter.size>0&&!i.providerFilter.has(C)))try{const y=new so(!0),S=yield C.provideCompletionItems(e,t,s,o);v=g(C,S,y)||v}catch(y){On(y)}}))),v||o.isCancellationRequested)break}return yield _,o.isCancellationRequested?(u.dispose(),Promise.reject(NR())):new Lke(d.sort(Jq(i.snippetSortOrder)),f,{entries:h,elapsed:r.elapsed()},u)})}function d4(n,e){if(n.sortTextLow&&e.sortTextLow){if(n.sortTextLowe.sortTextLow)return 1}return n.completion.labele.completion.label?1:n.completion.kind-e.completion.kind}function kke(n,e){if(n.completion.kind!==e.completion.kind){if(n.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return d4(n,e)}function xke(n,e){if(n.completion.kind!==e.completion.kind){if(n.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return d4(n,e)}const ax=new Map;ax.set(0,kke);ax.set(2,xke);ax.set(1,d4);function Jq(n){return ax.get(n)}Ot.registerCommand("_executeCompletionItemProvider",(n,...e)=>nv(void 0,void 0,void 0,function*(){const[t,i,s,o]=e;ri(et.isUri(t)),ri(Z.isIPosition(i)),ri(typeof s=="string"||!s),ri(typeof o=="number"||!o);const{completionProvider:r}=n.get(He),a=yield n.get(ro).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield Qq(r,a.object.textEditorModel,Z.lift(i),void 0,{triggerCharacter:s,triggerKind:s?1:0});for(const u of d.items)c.length<(o??0)&&c.push(u.resolve(xt.None)),l.incomplete=l.incomplete||u.container.incomplete,l.suggestions.push(u.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));let MC,iI=[];function Eke(n,e,t){const{completionProvider:i}=n.get(He);MC||(MC=new class{provideCompletionItems(){let o={suggestions:iI.slice(0)};return iI.length=0,o}},i.register("*",MC)),setTimeout(()=>{var s;iI.push(...t),(s=e.getContribution("editor.contrib.suggestController"))===null||s===void 0||s.triggerSuggest(new Set().add(MC))},0)}var u4=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},KS=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const G9=le;let GS=class eK extends J{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ef,this._editor)),this._decorationsChangerListener=this._register(new Dke(this._editor)),this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const s of _g.getAll())this._participants.push(this._instantiationService.createInstance(s,this._editor));this._participants.sort((s,o)=>s.hoverOrdinal-o.hoverOrdinal),this._computer=new YS(this._editor,this._participants),this._hoverOperation=this._register(new Hq(this._editor,this._computer)),this._register(this._hoverOperation.onResult(s=>{this._withResult(s.value,s.isComplete,s.hasLoadingMessage)})),this._register(this._decorationsChangerListener.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(jn(this._widget.getDomNode(),"keydown",s=>{s.equals(9)&&this.hide()})),this._register(Ri.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const s of this._participants)if(s.suggestHoverAnchor){const o=s.suggestHoverAnchor(e);o&&t.push(o)}const i=e.target;if(i.type===6&&t.push(new tI(0,i.range)),i.type===7){const s=this._editor.getOption(44).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexto.priority-s.priority),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new tI(0,e),t,i)}_startShowingAt(e,t,i){if(!(this._computer.anchor&&this._computer.anchor.equals(e))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!e.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const s=this._messages.filter(o=>o.isValidForHoverAnchor(e));if(s.length===0)this.hide();else{if(s.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,s)}}this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(e,t){let i=1073741824,s=t[0].range,o=null;for(const u of t)i=Math.min(i,u.range.startColumn),s=T.plusRange(s,u.range),u.forceShowAtRange&&(o=u.range);const r=new ue,a=r.add(new FA(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const h=t.filter(f=>f.owner===u);h.length>0&&r.add(u.renderHoverParts(d,h))}if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._decorationsChangerListener.deltaDecorations([],[{range:s,options:eK._DECORATION_OPTIONS}]);r.add(vt(()=>{this._decorationsChangerListener.deltaDecorations(u,[])}))}this._widget.showAt(l,new Ike(c,o?o.getStartPosition():new Z(e.range.startLineNumber,i),o||s,this._editor.getOption(53).above,this._computer.shouldFocus,r))}else r.dispose()}};GS._DECORATION_OPTIONS=pt.register({description:"content-hover-highlight",className:"hoverHighlight"});GS=u4([KS(1,Et),KS(2,Ui)],GS);class Dke extends J{constructor(e){super(),this._editor=e,this._onDidChangeModelDecorations=this._register(new j),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._isChangingDecorations=!1,this._register(this._editor.onDidChangeModelDecorations(t=>{this._isChangingDecorations||this._onDidChangeModelDecorations.fire(t)}))}deltaDecorations(e,t){try{return this._isChangingDecorations=!0,this._editor.deltaDecorations(e,t)}finally{this._isChangingDecorations=!1}}}class Ike{constructor(e,t,i,s,o,r){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=s,this.stoleFocus=o,this.disposables=r}}let ef=class tK extends J{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=O.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new Wq),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(44)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return tK.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(Mt.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(44);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this._editor.layoutContentWidget(this),this.onContentsChanged(),this._editor.render(),this._editor.layoutContentWidget(this),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ef.ID="editor.contrib.contentHoverWidget";ef=u4([KS(1,lt)],ef);let FA=class extends J{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=G9("div.hover-row.status-bar"),this.actionsElement=re(this.hoverElement,G9("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(a4.render(this.actionsElement,e,i))}append(e){const t=re(this.actionsElement,e);return this._hasContent=!0,t}};FA=u4([KS(0,Ui)],FA);class YS{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(t.type!==1)return[];const i=e.getModel(),s=t.range.startLineNumber,o=i.getLineMaxColumn(s);return e.getLineDecorations(s).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===s?r.range.startColumn:1,l=r.range.endLineNumber===s?r.range.endColumn:o;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return en.EMPTY;const i=YS._getLineDecorations(this._editor,t);return en.merge(this._participants.map(s=>s.computeAsync?s.computeAsync(t,i,e):en.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=YS._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return Zf(t)}}/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */function Nke(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e1?t-1:0),s=1;s/gm),Uke=Kc(/^data-[\-\w.\u00B7-\uFFFF]/),jke=Kc(/^aria-[\-\w]+$/),qke=Kc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Kke=Kc(/^(?:\w+script|data):/i),Gke=Kc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function Ka(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e"u"?null:window},Zke=function(e,t){if((typeof e>"u"?"undefined":wb(e))!=="object"||typeof e.createPolicy!="function")return null;var i=null,s="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(s)&&(i=t.currentScript.getAttribute(s));var o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function nK(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yke(),e=function(ne){return nK(ne)};if(e.version="2.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==9)return e.isSupported=!1,e;var t=n.document,i=n.document,s=n.DocumentFragment,o=n.HTMLTemplateElement,r=n.Node,a=n.Element,l=n.NodeFilter,c=n.NamedNodeMap,d=c===void 0?n.NamedNodeMap||n.MozNamedAttrMap:c,u=n.Text,h=n.Comment,f=n.DOMParser,g=n.trustedTypes,_=a.prototype,b=RC(_,"cloneNode"),v=RC(_,"nextSibling"),C=RC(_,"childNodes"),y=RC(_,"parentNode");if(typeof o=="function"){var S=i.createElement("template");S.content&&S.content.ownerDocument&&(i=S.content.ownerDocument)}var x=Zke(g,t),A=x&&Ye?x.createHTML(""):"",E=i,D=E.implementation,P=E.createNodeIterator,$=E.createDocumentFragment,z=E.getElementsByTagName,ee=t.importNode,Q={};try{Q=oh(i).documentMode?i.documentMode:{}}catch{}var Ee={};e.isSupported=typeof y=="function"&&D&&typeof D.createHTMLDocument<"u"&&Q!==9;var ye=zke,ke=$ke,Se=Uke,De=jke,tt=Kke,Ke=Gke,yt=qke,Ie=null,Oe=Qt({},[].concat(Ka(J9),Ka(nI),Ka(sI),Ka(oI),Ka(eB))),Ct=null,se=Qt({},[].concat(Ka(tB),Ka(rI),Ka(iB),Ka(PC))),Ut=null,fe=null,$e=!0,We=!0,Ge=!1,Me=!1,q=!1,Y=!1,ie=!1,he=!1,be=!1,we=!0,Ye=!1,Le=!0,G=!0,B=!1,U={},M=null,R=Qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),H=null,V=Qt({},["audio","video","img","source","image","track"]),te=null,ae=Qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",st="http://www.w3.org/1999/xhtml",at=st,jt=!1,St=null,Ue=i.createElement("form"),Xt=function(ne){St&&St===ne||((!ne||(typeof ne>"u"?"undefined":wb(ne))!=="object")&&(ne={}),ne=oh(ne),Ie="ALLOWED_TAGS"in ne?Qt({},ne.ALLOWED_TAGS):Oe,Ct="ALLOWED_ATTR"in ne?Qt({},ne.ALLOWED_ATTR):se,te="ADD_URI_SAFE_ATTR"in ne?Qt(oh(ae),ne.ADD_URI_SAFE_ATTR):ae,H="ADD_DATA_URI_TAGS"in ne?Qt(oh(V),ne.ADD_DATA_URI_TAGS):V,M="FORBID_CONTENTS"in ne?Qt({},ne.FORBID_CONTENTS):R,Ut="FORBID_TAGS"in ne?Qt({},ne.FORBID_TAGS):{},fe="FORBID_ATTR"in ne?Qt({},ne.FORBID_ATTR):{},U="USE_PROFILES"in ne?ne.USE_PROFILES:!1,$e=ne.ALLOW_ARIA_ATTR!==!1,We=ne.ALLOW_DATA_ATTR!==!1,Ge=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=ne.SAFE_FOR_TEMPLATES||!1,q=ne.WHOLE_DOCUMENT||!1,he=ne.RETURN_DOM||!1,be=ne.RETURN_DOM_FRAGMENT||!1,we=ne.RETURN_DOM_IMPORT!==!1,Ye=ne.RETURN_TRUSTED_TYPE||!1,ie=ne.FORCE_BODY||!1,Le=ne.SANITIZE_DOM!==!1,G=ne.KEEP_CONTENT!==!1,B=ne.IN_PLACE||!1,yt=ne.ALLOWED_URI_REGEXP||yt,at=ne.NAMESPACE||st,Me&&(We=!1),be&&(he=!0),U&&(Ie=Qt({},[].concat(Ka(eB))),Ct=[],U.html===!0&&(Qt(Ie,J9),Qt(Ct,tB)),U.svg===!0&&(Qt(Ie,nI),Qt(Ct,rI),Qt(Ct,PC)),U.svgFilters===!0&&(Qt(Ie,sI),Qt(Ct,rI),Qt(Ct,PC)),U.mathMl===!0&&(Qt(Ie,oI),Qt(Ct,iB),Qt(Ct,PC))),ne.ADD_TAGS&&(Ie===Oe&&(Ie=oh(Ie)),Qt(Ie,ne.ADD_TAGS)),ne.ADD_ATTR&&(Ct===se&&(Ct=oh(Ct)),Qt(Ct,ne.ADD_ATTR)),ne.ADD_URI_SAFE_ATTR&&Qt(te,ne.ADD_URI_SAFE_ATTR),ne.FORBID_CONTENTS&&(M===R&&(M=oh(M)),Qt(M,ne.FORBID_CONTENTS)),G&&(Ie["#text"]=!0),q&&Qt(Ie,["html","head","body"]),Ie.table&&(Qt(Ie,["tbody"]),delete Ut.tbody),Lo&&Lo(ne),St=ne)},ci=Qt({},["mi","mo","mn","ms","mtext"]),Ns=Qt({},["foreignobject","desc","title","annotation-xml"]),Ni=Qt({},nI);Qt(Ni,sI),Qt(Ni,Wke);var an=Qt({},oI);Qt(an,Hke);var ra=function(ne){var Ae=y(ne);(!Ae||!Ae.tagName)&&(Ae={namespaceURI:st,tagName:"template"});var Je=fh(ne.tagName),xi=fh(Ae.tagName);if(ne.namespaceURI===Ne)return Ae.namespaceURI===st?Je==="svg":Ae.namespaceURI===Ve?Je==="svg"&&(xi==="annotation-xml"||ci[xi]):!!Ni[Je];if(ne.namespaceURI===Ve)return Ae.namespaceURI===st?Je==="math":Ae.namespaceURI===Ne?Je==="math"&&Ns[xi]:!!an[Je];if(ne.namespaceURI===st){if(Ae.namespaceURI===Ne&&!Ns[xi]||Ae.namespaceURI===Ve&&!ci[xi])return!1;var as=Qt({},["title","style","font","a","script"]);return!an[Je]&&(as[Je]||!Ni[Je])}return!1},os=function(ne){tb(e.removed,{element:ne});try{ne.parentNode.removeChild(ne)}catch{try{ne.outerHTML=A}catch{ne.remove()}}},tr=function(ne,Ae){try{tb(e.removed,{attribute:Ae.getAttributeNode(ne),from:Ae})}catch{tb(e.removed,{attribute:null,from:Ae})}if(Ae.removeAttribute(ne),ne==="is"&&!Ct[ne])if(he||be)try{os(Ae)}catch{}else try{Ae.setAttribute(ne,"")}catch{}},xn=function(ne){var Ae=void 0,Je=void 0;if(ie)ne=""+ne;else{var xi=X9(ne,/^[\r\n\t ]+/);Je=xi&&xi[0]}var as=x?x.createHTML(ne):ne;if(at===st)try{Ae=new f().parseFromString(as,"text/html")}catch{}if(!Ae||!Ae.documentElement){Ae=D.createDocument(at,"template",null);try{Ae.documentElement.innerHTML=jt?"":as}catch{}}var En=Ae.body||Ae.documentElement;return ne&&Je&&En.insertBefore(i.createTextNode(Je),En.childNodes[0]||null),at===st?z.call(Ae,q?"html":"body")[0]:q?Ae.documentElement:En},rs=function(ne){return P.call(ne.ownerDocument||ne,ne,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},od=function(ne){return ne instanceof u||ne instanceof h?!1:typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof d)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"},Bn=function(ne){return(typeof r>"u"?"undefined":wb(r))==="object"?ne instanceof r:ne&&(typeof ne>"u"?"undefined":wb(ne))==="object"&&typeof ne.nodeType=="number"&&typeof ne.nodeName=="string"},Ks=function(ne,Ae,Je){Ee[ne]&&Oke(Ee[ne],function(xi){xi.call(e,Ae,Je,St)})},rd=function(ne){var Ae=void 0;if(Ks("beforeSanitizeElements",ne,null),od(ne)||X9(ne.nodeName,/[\u0080-\uFFFF]/))return os(ne),!0;var Je=fh(ne.nodeName);if(Ks("uponSanitizeElement",ne,{tagName:Je,allowedTags:Ie}),!Bn(ne.firstElementChild)&&(!Bn(ne.content)||!Bn(ne.content.firstElementChild))&&oc(/<[/\w]/g,ne.innerHTML)&&oc(/<[/\w]/g,ne.textContent)||Je==="select"&&oc(/