@voidzero-dev/vite-plus-test 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/LICENSE.md +181 -1
  2. package/dist/@vitest/browser/client/.vite/manifest.json +6 -6
  3. package/dist/@vitest/browser/client/__vitest__/assets/index-Da0hb3oU.css +1 -0
  4. package/dist/@vitest/browser/client/__vitest__/assets/index-Di71CKDo.js +63 -0
  5. package/dist/@vitest/browser/client/__vitest__/favicon.ico +0 -0
  6. package/dist/@vitest/browser/client/__vitest__/favicon.svg +49 -4
  7. package/dist/@vitest/browser/client/__vitest__/index.html +2 -2
  8. package/dist/@vitest/browser/client/__vitest_browser__/{orchestrator-S_3e_uzt.js → orchestrator-CXs6qrFe.js} +70 -28
  9. package/dist/@vitest/browser/client/__vitest_browser__/{tester-k74mgIRa.js → tester-K5NNxh1O.js} +167 -58
  10. package/dist/@vitest/browser/client/__vitest_browser__/{utils-uxqdqUz8.js → utils-C2ISqq1C.js} +2 -2
  11. package/dist/@vitest/browser/client/favicon.svg +49 -4
  12. package/dist/@vitest/browser/client/orchestrator.html +2 -2
  13. package/dist/@vitest/browser/client/tester/tester.html +2 -2
  14. package/dist/@vitest/browser/client.js +20 -13
  15. package/dist/@vitest/browser/context.d.ts +160 -10
  16. package/dist/@vitest/browser/context.js +108 -22
  17. package/dist/@vitest/browser/expect-element.js +23 -28
  18. package/dist/@vitest/browser/index-5Pe7X7sp.js +7 -0
  19. package/dist/@vitest/browser/index.d.ts +20 -2
  20. package/dist/@vitest/browser/index.js +5706 -159
  21. package/dist/@vitest/browser/locators.d.ts +14 -3
  22. package/dist/@vitest/browser/locators.js +1 -1
  23. package/dist/@vitest/browser-playwright/index.d.ts +22 -5
  24. package/dist/@vitest/browser-playwright/index.js +169 -61
  25. package/dist/@vitest/browser-preview/index.d.ts +14 -1
  26. package/dist/@vitest/browser-preview/locators.js +31 -18
  27. package/dist/@vitest/browser-webdriverio/index.d.ts +17 -3
  28. package/dist/@vitest/browser-webdriverio/index.js +22 -2
  29. package/dist/@vitest/browser-webdriverio/locators.js +84 -7
  30. package/dist/@vitest/expect/index.d.ts +172 -54
  31. package/dist/@vitest/expect/index.js +124 -67
  32. package/dist/@vitest/mocker/auto-register.js +1 -0
  33. package/dist/@vitest/mocker/automock.d.ts +1 -0
  34. package/dist/@vitest/mocker/automock.js +5 -0
  35. package/dist/@vitest/mocker/browser.d.ts +4 -4
  36. package/dist/@vitest/mocker/browser.js +1 -0
  37. package/dist/@vitest/mocker/chunk-automock.js +182 -14
  38. package/dist/@vitest/mocker/chunk-helpers.js +44 -0
  39. package/dist/@vitest/mocker/chunk-hoistMocks.js +659 -0
  40. package/dist/@vitest/mocker/chunk-mocker.js +41 -30
  41. package/dist/@vitest/mocker/chunk-registry.js +21 -7
  42. package/dist/@vitest/mocker/chunk-utils.js +18 -7
  43. package/dist/@vitest/mocker/hoistMocks.d-w2ILr1dG.d.ts +739 -0
  44. package/dist/@vitest/mocker/{index.d-C-sLYZi-.d.ts → index.d-B41z0AuW.d.ts} +1 -1
  45. package/dist/@vitest/mocker/index.d.ts +2 -2
  46. package/dist/@vitest/mocker/index.js +18 -3
  47. package/dist/@vitest/mocker/{mocker.d-TnKRhz7N.d.ts → mocker.d-QEntlm6J.d.ts} +10 -5
  48. package/dist/@vitest/mocker/node.d.ts +5 -734
  49. package/dist/@vitest/mocker/node.js +29 -587
  50. package/dist/@vitest/mocker/redirect.js +4 -4
  51. package/dist/@vitest/mocker/register.d.ts +3 -3
  52. package/dist/@vitest/mocker/register.js +1 -0
  53. package/dist/@vitest/mocker/transforms.d.ts +6 -0
  54. package/dist/@vitest/mocker/transforms.js +8 -0
  55. package/dist/@vitest/mocker/{types.d-B8CCKmHt.d.ts → types.d-BjI5eAwu.d.ts} +23 -7
  56. package/dist/@vitest/pretty-format/index.d.ts +11 -1
  57. package/dist/@vitest/pretty-format/index.js +33 -4
  58. package/dist/@vitest/runner/chunk-tasks.js +305 -37
  59. package/dist/@vitest/runner/index.d.ts +5 -6
  60. package/dist/@vitest/runner/index.js +1146 -455
  61. package/dist/@vitest/runner/{tasks.d-C7UxawJ9.d.ts → tasks.d-D2GKpdwQ.d.ts} +726 -55
  62. package/dist/@vitest/runner/types.d.ts +2 -182
  63. package/dist/@vitest/runner/utils.d.ts +16 -8
  64. package/dist/@vitest/runner/utils.js +1 -1
  65. package/dist/@vitest/snapshot/{environment.d-DHdQ1Csl.d.ts → environment.d-DOJxxZV9.d.ts} +2 -7
  66. package/dist/@vitest/snapshot/environment.d.ts +2 -1
  67. package/dist/@vitest/snapshot/environment.js +1 -1
  68. package/dist/@vitest/snapshot/index.d.ts +4 -3
  69. package/dist/@vitest/snapshot/index.js +21 -550
  70. package/dist/@vitest/snapshot/manager.d.ts +3 -2
  71. package/dist/@vitest/snapshot/manager.js +1 -1
  72. package/dist/@vitest/snapshot/{rawSnapshot.d-lFsMJFUd.d.ts → rawSnapshot.d-U2kJUxDr.d.ts} +1 -1
  73. package/dist/@vitest/spy/index.d.ts +34 -4
  74. package/dist/@vitest/spy/index.js +69 -19
  75. package/dist/@vitest/utils/diff.js +11 -9
  76. package/dist/@vitest/utils/display.d.ts +2 -1
  77. package/dist/@vitest/utils/display.js +38 -5
  78. package/dist/@vitest/utils/error.d.ts +2 -1
  79. package/dist/@vitest/utils/error.js +1 -2
  80. package/dist/@vitest/utils/helpers.d.ts +4 -1
  81. package/dist/@vitest/utils/helpers.js +43 -1
  82. package/dist/@vitest/utils/resolver.js +1 -2
  83. package/dist/@vitest/utils/serialize.js +6 -6
  84. package/dist/@vitest/utils/source-map/node.d.ts +6 -0
  85. package/dist/@vitest/utils/source-map/node.js +23 -0
  86. package/dist/@vitest/utils/source-map.js +15 -5
  87. package/dist/browser.d.ts +3 -2
  88. package/dist/browser.js +2 -2
  89. package/dist/chunks/acorn.B2iPLyUM.js +5958 -0
  90. package/dist/chunks/{base.CJ0Y4ePK.js → base.DM0-RqVb.js} +54 -16
  91. package/dist/chunks/{benchmark.B3N2zMcH.js → benchmark.D0SlKNbZ.js} +1 -1
  92. package/dist/chunks/{browser.d.ChKACdzH.d.ts → browser.d.X3SXoOCV.d.ts} +4 -1
  93. package/dist/chunks/{cac.DVeoLl0M.js → cac.CWGDZnXT.js} +979 -20
  94. package/dist/chunks/{cli-api.B7PN_QUv.js → cli-api.DuT9iuvY.js} +8764 -7898
  95. package/dist/chunks/{config.d.Cy95HiCx.d.ts → config.d.EJLVE3es.d.ts} +30 -15
  96. package/dist/chunks/{console.Cf-YriPC.js → console.3WNpx0tS.js} +3 -2
  97. package/dist/chunks/{constants.D_Q9UYh-.js → constants.CPYnjOGj.js} +4 -2
  98. package/dist/chunks/coverage.Bri33R1t.js +1050 -0
  99. package/dist/chunks/{creator.DAmOKTvJ.js → creator.DgVhQm5q.js} +35 -4
  100. package/dist/chunks/{defaults.BOqNVLsY.js → defaults.CdU2lD-q.js} +4 -3
  101. package/dist/chunks/{global.d.B15mdLcR.d.ts → global.d.x-ILCfAE.d.ts} +1 -2
  102. package/dist/chunks/{globals.DOayXfHP.js → globals.BXNGLnTL.js} +11 -10
  103. package/dist/chunks/{coverage.AVPTjMgw.js → index.BCY_7LL2.js} +5 -959
  104. package/dist/chunks/{index.C5r1PdPD.js → index.CEzQDJGb.js} +1 -1
  105. package/dist/chunks/{index.D3XRDfWc.js → index.CMESou6r.js} +26 -1
  106. package/dist/chunks/{index.6Qv1eEA6.js → index.DGNSnENe.js} +95 -9
  107. package/dist/chunks/{index.M8mOzt4Y.js → index.DXMFO5MJ.js} +3279 -2914
  108. package/dist/chunks/{index.Z5E_ObnR.js → index.DlDSLQD3.js} +7 -3
  109. package/dist/chunks/{index.CyBMJtT7.js → index.EY6TCHpo.js} +10 -8
  110. package/dist/chunks/{index.D4KonVSU.js → index.og1WyBLx.js} +18 -3
  111. package/dist/chunks/{init-forks._y3TW739.js → init-forks.DeArv0jT.js} +1 -1
  112. package/dist/chunks/{init-threads.DBO2kn-p.js → init-threads.-2OUl4Nn.js} +1 -1
  113. package/dist/chunks/{init.B6MLFIaN.js → init.DICorXCo.js} +52 -13
  114. package/dist/chunks/native.DPzPHdi5.js +148 -0
  115. package/dist/chunks/nativeModuleMocker.DndvSdL6.js +206 -0
  116. package/dist/chunks/nativeModuleRunner.BIakptoF.js +36 -0
  117. package/dist/chunks/{node.Ce0vMQM7.js → node.COQbm6gK.js} +1 -1
  118. package/dist/chunks/{plugin.d.CtqpEehP.d.ts → plugin.d.BuW-flqo.d.ts} +1 -1
  119. package/dist/chunks/{reporters.d.CWXNI2jG.d.ts → reporters.d.DVUYHHhe.d.ts} +328 -79
  120. package/dist/chunks/rpc.MzXet3jl.js +144 -0
  121. package/dist/chunks/{rpc.d.RH3apGEf.d.ts → rpc.d.BFMWpdph.d.ts} +10 -2
  122. package/dist/chunks/{setup-common.Cm-kSBVi.js → setup-common.B41N_kPE.js} +3 -3
  123. package/dist/chunks/{startModuleRunner.DEj0jb3e.js → startVitestModuleRunner.C3ZR-4J3.js} +265 -405
  124. package/dist/chunks/{suite.d.BJWk38HB.d.ts → suite.d.udJtyAgw.d.ts} +1 -1
  125. package/dist/chunks/{vi.2VT5v0um.js → test.CTcmp4Su.js} +538 -181
  126. package/dist/chunks/{utils.DvEY5TfP.js → utils.BX5Fg8C4.js} +8 -1
  127. package/dist/chunks/{vm.D3epNOPZ.js → vm.Dh2rTtmP.js} +48 -8
  128. package/dist/chunks/{worker.d.Dyxm8DEL.d.ts → worker.d.B84sVRy0.d.ts} +2 -2
  129. package/dist/cli.js +6 -5
  130. package/dist/client/.vite/manifest.json +6 -6
  131. package/dist/client/__vitest__/assets/index-Da0hb3oU.css +1 -0
  132. package/dist/client/__vitest__/assets/index-Di71CKDo.js +63 -0
  133. package/dist/client/__vitest__/favicon.ico +0 -0
  134. package/dist/client/__vitest__/favicon.svg +49 -4
  135. package/dist/client/__vitest__/index.html +2 -2
  136. package/dist/client/__vitest_browser__/{orchestrator-S_3e_uzt.js → orchestrator-CXs6qrFe.js} +70 -28
  137. package/dist/client/__vitest_browser__/{tester-k74mgIRa.js → tester-K5NNxh1O.js} +167 -58
  138. package/dist/client/__vitest_browser__/{utils-uxqdqUz8.js → utils-C2ISqq1C.js} +2 -2
  139. package/dist/client/favicon.svg +49 -4
  140. package/dist/client/orchestrator.html +2 -2
  141. package/dist/client/tester/tester.html +2 -2
  142. package/dist/client.js +20 -13
  143. package/dist/config.cjs +3 -2
  144. package/dist/config.d.ts +13 -12
  145. package/dist/config.js +2 -2
  146. package/dist/context.js +108 -22
  147. package/dist/coverage.d.ts +12 -8
  148. package/dist/coverage.js +8 -5
  149. package/dist/environments.js +3 -1
  150. package/dist/expect-element.js +23 -23
  151. package/dist/index-5Pe7X7sp.js +7 -0
  152. package/dist/index.d.ts +66 -27
  153. package/dist/index.js +10 -9
  154. package/dist/locators.d.ts +14 -3
  155. package/dist/locators.js +1 -1
  156. package/dist/module-evaluator.d.ts +11 -1
  157. package/dist/module-evaluator.js +43 -26
  158. package/dist/node.d.ts +28 -14
  159. package/dist/node.js +42 -40
  160. package/dist/nodejs-worker-loader.js +41 -0
  161. package/dist/plugins/mocker-transforms.mjs +2 -0
  162. package/dist/plugins/utils-source-map-node.mjs +2 -0
  163. package/dist/reporters.d.ts +8 -8
  164. package/dist/reporters.js +7 -5
  165. package/dist/runners.d.ts +24 -5
  166. package/dist/runners.js +6 -6
  167. package/dist/runtime.d.ts +6 -0
  168. package/dist/runtime.js +35 -0
  169. package/dist/snapshot.js +4 -2
  170. package/dist/suite.d.ts +1 -1
  171. package/dist/suite.js +4 -2
  172. package/dist/vendor/blazediff_core.d.mts +1 -0
  173. package/dist/vendor/blazediff_core.mjs +117 -0
  174. package/dist/vendor/chai.mjs +4 -249
  175. package/dist/vendor/convert-source-map.d.mts +1 -0
  176. package/dist/vendor/convert-source-map.mjs +150 -0
  177. package/dist/vendor/expect-type.d.mts +14 -7
  178. package/dist/vendor/expect-type.mjs +5 -5
  179. package/dist/vendor/std-env.d.mts +131 -40
  180. package/dist/vendor/std-env.mjs +114 -117
  181. package/dist/worker.d.ts +6 -6
  182. package/dist/worker.js +27 -21
  183. package/dist/workers/forks.js +23 -17
  184. package/dist/workers/runVmTests.js +18 -16
  185. package/dist/workers/threads.js +23 -17
  186. package/dist/workers/vmForks.js +15 -12
  187. package/dist/workers/vmThreads.js +15 -12
  188. package/globals.d.ts +2 -0
  189. package/package.json +36 -27
  190. package/suppress-warnings.cjs +1 -0
  191. package/dist/@vitest/browser/client/__vitest__/assets/index-BUCFJtth.js +0 -57
  192. package/dist/@vitest/browser/client/__vitest__/assets/index-DlhE0rqZ.css +0 -1
  193. package/dist/@vitest/browser/index-D6m36C6U.js +0 -11
  194. package/dist/@vitest/utils/chunk-_commonjsHelpers.js +0 -5
  195. package/dist/@vitest/utils/highlight.d.ts +0 -9
  196. package/dist/@vitest/utils/highlight.js +0 -538
  197. package/dist/chunks/date.Bq6ZW5rf.js +0 -73
  198. package/dist/chunks/rpc.BoxB0q7B.js +0 -76
  199. package/dist/chunks/test.B8ej_ZHS.js +0 -254
  200. package/dist/client/__vitest__/assets/index-BUCFJtth.js +0 -57
  201. package/dist/client/__vitest__/assets/index-DlhE0rqZ.css +0 -1
  202. package/dist/index-D6m36C6U.js +0 -6
  203. package/dist/mocker.d.ts +0 -1
  204. package/dist/mocker.js +0 -1
  205. package/dist/module-runner.js +0 -17
@@ -0,0 +1,63 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
2
+ * @vue/shared v3.5.29
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Qh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const bt={},Bs=[],Qr=()=>{},Yy=()=>!1,Gu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ep=e=>e.startsWith("onUpdate:"),Zt=Object.assign,tp=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},iS=Object.prototype.hasOwnProperty,_t=(e,t)=>iS.call(e,t),Xe=Array.isArray,js=e=>qa(e)==="[object Map]",hl=e=>qa(e)==="[object Set]",nv=e=>qa(e)==="[object Date]",rt=e=>typeof e=="function",Ht=e=>typeof e=="string",Dr=e=>typeof e=="symbol",wt=e=>e!==null&&typeof e=="object",Zy=e=>(wt(e)||rt(e))&&rt(e.then)&&rt(e.catch),Jy=Object.prototype.toString,qa=e=>Jy.call(e),oS=e=>qa(e).slice(8,-1),Qy=e=>qa(e)==="[object Object]",Ku=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,la=Qh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},sS=/-\w/g,ur=Xu(e=>e.replace(sS,t=>t.slice(1).toUpperCase())),lS=/\B([A-Z])/g,Ri=Xu(e=>e.replace(lS,"-$1").toLowerCase()),Yu=Xu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qc=Xu(e=>e?`on${Yu(e)}`:""),Kn=(e,t)=>!Object.is(e,t),eu=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},eb=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Zu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tb=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let rv;const Ju=()=>rv||(rv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ot(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ht(o)?fS(o):Ot(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ht(e)||wt(e))return e}const aS=/;(?![^(]*\))/g,cS=/:([^]+)/,uS=/\/\*[^]*?\*\//g;function fS(e){const t={};return e.replace(uS,"").split(aS).forEach(r=>{if(r){const o=r.split(cS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Xe(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(wt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function dS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ht(t)&&(e.class=ot(t)),r&&(e.style=Ot(r)),e}const hS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pS=Qh(hS);function nb(e){return!!e||e===""}function gS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=pl(e[o],t[o]);return r}function pl(e,t){if(e===t)return!0;let r=nv(e),o=nv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Dr(e),o=Dr(t),r||o)return e===t;if(r=Xe(e),o=Xe(t),r||o)return r&&o?gS(e,t):!1;if(r=wt(e),o=wt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!pl(e[f],t[f]))return!1}}return String(e)===String(t)}function np(e,t){return e.findIndex(r=>pl(r,t))}const rb=e=>!!(e&&e.__v_isRef===!0),Ne=e=>Ht(e)?e:e==null?"":Xe(e)||wt(e)&&(e.toString===Jy||!rt(e.toString))?rb(e)?Ne(e.value):JSON.stringify(e,ib,2):String(e),ib=(e,t)=>rb(t)?ib(e,t.value):js(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[kd(o,c)+" =>"]=s,r),{})}:hl(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>kd(r))}:Dr(t)?kd(t):wt(t)&&!Xe(t)&&!Qy(t)?String(t):t,kd=(e,t="")=>{var r;return Dr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6
+ * @vue/reactivity v3.5.29
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let xn;class mS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=xn,!t&&xn&&(this.index=(xn.scopes||(xn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=xn;try{return xn=this,t()}finally{xn=r}}}on(){++this._on===1&&(this.prevScope=xn,xn=this)}off(){this._on>0&&--this._on===0&&(xn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function rp(){return xn}function vS(e,t=!1){xn&&xn.cleanups.push(e)}let Et;const _d=new WeakSet;class ob{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xn&&xn.active&&xn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_d.has(this)&&(_d.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,iv(this),ab(this);const t=Et,r=Rr;Et=this,Rr=!0;try{return this.fn()}finally{cb(this),Et=t,Rr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)sp(t);this.deps=this.depsTail=void 0,iv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_d.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){th(this)&&this.run()}get dirty(){return th(this)}}let sb=0,aa,ca;function lb(e,t=!1){if(e.flags|=8,t){e.next=ca,ca=e;return}e.next=aa,aa=e}function ip(){sb++}function op(){if(--sb>0)return;if(ca){let t=ca;for(ca=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;aa;){let t=aa;for(aa=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function ab(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cb(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),sp(o),yS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function th(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ub(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ub(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===wa)||(e.globalVersion=wa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!th(e))))return;e.flags|=2;const t=e.dep,r=Et,o=Rr;Et=e,Rr=!0;try{ab(e);const s=e.fn(e._value);(t.version===0||Kn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Et=r,Rr=o,cb(e),e.flags&=-3}}function sp(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)sp(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function yS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Rr=!0;const fb=[];function Mi(){fb.push(Rr),Rr=!1}function Ni(){const e=fb.pop();Rr=e===void 0?!0:e}function iv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Et;Et=void 0;try{t()}finally{Et=r}}}let wa=0;class bS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Et||!Rr||Et===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Et)r=this.activeLink=new bS(Et,this),Et.deps?(r.prevDep=Et.depsTail,Et.depsTail.nextDep=r,Et.depsTail=r):Et.deps=Et.depsTail=r,db(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=Et.depsTail,r.nextDep=void 0,Et.depsTail.nextDep=r,Et.depsTail=r,Et.deps===r&&(Et.deps=o)}return r}trigger(t){this.version++,wa++,this.notify(t)}notify(t){ip();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{op()}}}function db(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)db(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const gu=new WeakMap,Xo=Symbol(""),nh=Symbol(""),xa=Symbol("");function _n(e,t,r){if(Rr&&Et){let o=gu.get(e);o||gu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Qu),s.map=o,s.key=r),s.track()}}function _i(e,t,r,o,s,c){const f=gu.get(e);if(!f){wa++;return}const d=h=>{h&&h.trigger()};if(ip(),t==="clear")f.forEach(d);else{const h=Xe(e),p=h&&Ku(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===xa||!Dr(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(xa)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Xo)),js(e)&&d(f.get(nh)));break;case"delete":h||(d(f.get(Xo)),js(e)&&d(f.get(nh)));break;case"set":js(e)&&d(f.get(Xo));break}}op()}function wS(e,t){const r=gu.get(e);return r&&r.get(t)}function Ns(e){const t=vt(e);return t===e?t:(_n(t,"iterate",xa),lr(e)?t:t.map(zr))}function ef(e){return _n(e=vt(e),"iterate",xa),e}function io(e,t){return $i(e)?el(Yo(e)?zr(t):t):zr(t)}const xS={__proto__:null,[Symbol.iterator](){return Sd(this,Symbol.iterator,e=>io(this,e))},concat(...e){return Ns(this).concat(...e.map(t=>Xe(t)?Ns(t):t))},entries(){return Sd(this,"entries",e=>(e[1]=io(this,e[1]),e))},every(e,t){return gi(this,"every",e,t,void 0,arguments)},filter(e,t){return gi(this,"filter",e,t,r=>r.map(o=>io(this,o)),arguments)},find(e,t){return gi(this,"find",e,t,r=>io(this,r),arguments)},findIndex(e,t){return gi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return gi(this,"findLast",e,t,r=>io(this,r),arguments)},findLastIndex(e,t){return gi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return gi(this,"forEach",e,t,void 0,arguments)},includes(...e){return Td(this,"includes",e)},indexOf(...e){return Td(this,"indexOf",e)},join(e){return Ns(this).join(e)},lastIndexOf(...e){return Td(this,"lastIndexOf",e)},map(e,t){return gi(this,"map",e,t,void 0,arguments)},pop(){return Gl(this,"pop")},push(...e){return Gl(this,"push",e)},reduce(e,...t){return ov(this,"reduce",e,t)},reduceRight(e,...t){return ov(this,"reduceRight",e,t)},shift(){return Gl(this,"shift")},some(e,t){return gi(this,"some",e,t,void 0,arguments)},splice(...e){return Gl(this,"splice",e)},toReversed(){return Ns(this).toReversed()},toSorted(e){return Ns(this).toSorted(e)},toSpliced(...e){return Ns(this).toSpliced(...e)},unshift(...e){return Gl(this,"unshift",e)},values(){return Sd(this,"values",e=>io(this,e))}};function Sd(e,t,r){const o=ef(e),s=o[t]();return o!==e&&!lr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const kS=Array.prototype;function gi(e,t,r,o,s,c){const f=ef(e),d=f!==e&&!lr(e),h=f[t];if(h!==kS[t]){const v=h.apply(e,c);return d?zr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,io(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function ov(e,t,r,o){const s=ef(e);let c=r;return s!==e&&(lr(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,io(e,d),h,e)}),s[t](c,...o)}function Td(e,t,r){const o=vt(e);_n(o,"iterate",xa);const s=o[t](...r);return(s===-1||s===!1)&&tf(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Gl(e,t,r=[]){Mi(),ip();const o=vt(e)[t].apply(e,r);return op(),Ni(),o}const _S=Qh("__proto__,__v_isRef,__isVue"),hb=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr));function SS(e){Dr(e)||(e=String(e));const t=vt(this);return _n(t,"has",e),t.hasOwnProperty(e)}class pb{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?PS:yb:c?vb:mb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Xe(t);if(!s){let h;if(f&&(h=xS[r]))return h;if(r==="hasOwnProperty")return SS}const d=Reflect.get(t,r,Mt(t)?t:o);if((Dr(r)?hb.has(r):_S(r))||(s||_n(t,"get",r),c))return d;if(Mt(d)){const h=f&&Ku(r)?d:d.value;return s&&wt(h)?Qs(h):h}return wt(d)?s?Qs(d):sr(d):d}}class gb extends pb{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Xe(t)&&Ku(r);if(!this._isShallow){const p=$i(c);if(!lr(o)&&!$i(o)&&(c=vt(c),o=vt(o)),!f&&Mt(c)&&!Mt(o))return p||(c.value=o),!0}const d=f?Number(r)<t.length:_t(t,r),h=Reflect.set(t,r,o,Mt(t)?t:s);return t===vt(s)&&(d?Kn(o,c)&&_i(t,"set",r,o):_i(t,"add",r,o)),h}deleteProperty(t,r){const o=_t(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&_i(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Dr(r)||!hb.has(r))&&_n(t,"has",r),o}ownKeys(t){return _n(t,"iterate",Xe(t)?"length":Xo),Reflect.ownKeys(t)}}class TS extends pb{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const CS=new gb,ES=new TS,AS=new gb(!0);const rh=e=>e,Dc=e=>Reflect.getPrototypeOf(e);function LS(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=js(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?rh:t?el:zr;return!t&&_n(c,"iterate",h?nh:Xo),Zt(Object.create(p),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}}})}}function zc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function MS(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(Kn(s,d)&&_n(f,"get",s),_n(f,"get",d));const{has:h}=Dc(f),p=t?rh:e?el:zr;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&_n(vt(s),"iterate",Xo),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(Kn(s,d)&&_n(f,"has",s),_n(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?rh:e?el:zr;return!e&&_n(h,"iterate",Xo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return Zt(r,e?{add:zc("add"),set:zc("set"),delete:zc("delete"),clear:zc("clear")}:{add(s){!t&&!lr(s)&&!$i(s)&&(s=vt(s));const c=vt(this);return Dc(c).has.call(c,s)||(c.add(s),_i(c,"add",s,s)),this},set(s,c){!t&&!lr(c)&&!$i(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=Dc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Kn(c,g)&&_i(f,"set",s,c):_i(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=Dc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&_i(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&_i(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=LS(s,e,t)}),r}function lp(e,t){const r=MS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(_t(r,s)&&s in o?r:o,s,c)}const NS={get:lp(!1,!1)},$S={get:lp(!1,!0)},OS={get:lp(!0,!1)};const mb=new WeakMap,vb=new WeakMap,yb=new WeakMap,PS=new WeakMap;function RS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function IS(e){return e.__v_skip||!Object.isExtensible(e)?0:RS(oS(e))}function sr(e){return $i(e)?e:cp(e,!1,CS,NS,mb)}function ap(e){return cp(e,!1,AS,$S,vb)}function Qs(e){return cp(e,!0,ES,OS,yb)}function cp(e,t,r,o,s){if(!wt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=IS(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function Yo(e){return $i(e)?Yo(e.__v_raw):!!(e&&e.__v_isReactive)}function $i(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function tf(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function nf(e){return!_t(e,"__v_skip")&&Object.isExtensible(e)&&eb(e,"__v_skip",!0),e}const zr=e=>wt(e)?sr(e):e,el=e=>wt(e)?Qs(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ke(e){return bb(e,!1)}function qt(e){return bb(e,!0)}function bb(e,t){return Mt(e)?e:new DS(e,t)}class DS{constructor(t,r){this.dep=new Qu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:zr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||lr(t)||$i(t);t=o?t:vt(t),Kn(t,r)&&(this._rawValue=t,this._value=o?t:zr(t),this.dep.trigger())}}function W(e){return Mt(e)?e.value:e}function Yt(e){return rt(e)?e():W(e)}const zS={get:(e,t,r)=>t==="__v_raw"?e:W(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Mt(s)&&!Mt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function wb(e){return Yo(e)?e:new Proxy(e,zS)}class FS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Qu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function xb(e){return new FS(e)}function HS(e){const t=Xe(e)?new Array(e.length):{};for(const r in e)t[r]=kb(e,r);return t}class BS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=vt(t);let s=!0,c=t;if(!Xe(t)||!Ku(String(r)))do s=!tf(c)||lr(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=W(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const r=this._object[this._key];if(Mt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return wS(this._raw,this._key)}}class jS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function WS(e,t,r){return Mt(e)?e:rt(e)?new jS(e):wt(e)&&arguments.length>1?kb(e,t,r):Ke(e)}function kb(e,t,r){return new BS(e,t,r)}class qS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Qu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Et!==this)return lb(this,!0),!0}get value(){const t=this.dep.track();return ub(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function US(e,t,r=!1){let o,s;return rt(e)?o=e:(o=e.get,s=e.set),new qS(o,s,r)}const Fc={},mu=new WeakMap;let Wo;function VS(e,t=!1,r=Wo){if(r){let o=mu.get(r);o||mu.set(r,o=[]),o.push(e)}}function GS(e,t,r=bt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=C=>s?C:lr(C)||s===!1||s===0?Si(C,1):Si(C);let g,v,b,w,P=!1,A=!1;if(Mt(e)?(v=()=>e.value,P=lr(e)):Yo(e)?(v=()=>p(e),P=!0):Xe(e)?(A=!0,P=e.some(C=>Yo(C)||lr(C)),v=()=>e.map(C=>{if(Mt(C))return C.value;if(Yo(C))return p(C);if(rt(C))return h?h(C,2):C()})):rt(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Mi();try{b()}finally{Ni()}}const C=Wo;Wo=g;try{return h?h(e,3,[w]):e(w)}finally{Wo=C}}:v=Qr,t&&s){const C=v,I=s===!0?1/0:s;v=()=>Si(C(),I)}const N=rp(),E=()=>{g.stop(),N&&N.active&&tp(N.effects,g)};if(c&&t){const C=t;t=(...I)=>{C(...I),E()}}let M=A?new Array(e.length).fill(Fc):Fc;const D=C=>{if(!(!(g.flags&1)||!g.dirty&&!C))if(t){const I=g.run();if(s||P||(A?I.some((q,Y)=>Kn(q,M[Y])):Kn(I,M))){b&&b();const q=Wo;Wo=g;try{const Y=[I,M===Fc?void 0:A&&M[0]===Fc?[]:M,w];M=I,h?h(t,3,Y):t(...Y)}finally{Wo=q}}}else g.run()};return d&&d(D),g=new ob(v),g.scheduler=f?()=>f(D,!1):D,w=C=>VS(C,!1,g),b=g.onStop=()=>{const C=mu.get(g);if(C){if(h)h(C,4);else for(const I of C)I();mu.delete(g)}},t?o?D(!0):M=g.run():f?f(D.bind(null,!0),!0):g.run(),E.pause=g.pause.bind(g),E.resume=g.resume.bind(g),E.stop=E,E}function Si(e,t=1/0,r){if(t<=0||!wt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))Si(e.value,t,r);else if(Xe(e))for(let o=0;o<e.length;o++)Si(e[o],t,r);else if(hl(e)||js(e))e.forEach(o=>{Si(o,t,r)});else if(Qy(e)){for(const o in e)Si(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Si(e[o],t,r)}return e}/**
10
+ * @vue/runtime-core v3.5.29
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function Ua(e,t,r,o){try{return o?e(...o):e()}catch(s){Va(s,t,r)}}function Fr(e,t,r,o){if(rt(e)){const s=Ua(e,t,r,o);return s&&Zy(s)&&s.catch(c=>{Va(c,t,r)}),s}if(Xe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Fr(e[c],t,r,o));return s}}function Va(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||bt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const g=d.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}d=d.parent}if(c){Mi(),Ua(c,null,10,[e,h,p]),Ni();return}}KS(e,r,s,o,f)}function KS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Dn=[];let Yr=-1;const Ws=[];let oo=null,Ps=0;const _b=Promise.resolve();let vu=null;function Ct(e){const t=vu||_b;return e?t.then(this?e.bind(this):e):t}function XS(e){let t=Yr+1,r=Dn.length;for(;t<r;){const o=t+r>>>1,s=Dn[o],c=ka(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function up(e){if(!(e.flags&1)){const t=ka(e),r=Dn[Dn.length-1];!r||!(e.flags&2)&&t>=ka(r)?Dn.push(e):Dn.splice(XS(t),0,e),e.flags|=1,Sb()}}function Sb(){vu||(vu=_b.then(Cb))}function ih(e){Xe(e)?Ws.push(...e):oo&&e.id===-1?oo.splice(Ps+1,0,e):e.flags&1||(Ws.push(e),e.flags|=1),Sb()}function sv(e,t,r=Yr+1){for(;r<Dn.length;r++){const o=Dn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Dn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Tb(e){if(Ws.length){const t=[...new Set(Ws)].sort((r,o)=>ka(r)-ka(o));if(Ws.length=0,oo){oo.push(...t);return}for(oo=t,Ps=0;Ps<oo.length;Ps++){const r=oo[Ps];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}oo=null,Ps=0}}const ka=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cb(e){try{for(Yr=0;Yr<Dn.length;Yr++){const t=Dn[Yr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ua(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Yr<Dn.length;Yr++){const t=Dn[Yr];t&&(t.flags&=-2)}Yr=-1,Dn.length=0,Tb(),vu=null,(Dn.length||Ws.length)&&Cb()}}let vn=null,rf=null;function yu(e){const t=vn;return vn=e,rf=e&&e.type.__scopeId||null,t}function Eb(e){rf=e}function Ab(){rf=null}const Lb=e=>Be;function Be(e,t=vn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&nl(-1);const c=yu(t);let f;try{f=e(...s)}finally{yu(c),o._d&&nl(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function st(e,t){if(vn===null)return e;const r=ff(vn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=bt]=t[s];c&&(rt(c)&&(c={mounted:c,updated:c}),c.deep&&Si(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function Do(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(Mi(),Fr(h,r,8,[e.el,d,e,t]),Ni())}}function mr(e,t){if(Sn){let r=Sn.provides;const o=Sn.parent&&Sn.parent.provides;o===r&&(r=Sn.provides=Object.create(o)),r[e]=t}}function mn(e,t,r=!1){const o=oi();if(o||Zo){let s=Zo?Zo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&rt(t)?t.call(o&&o.proxy):t}}function Mb(){return!!(oi()||Zo)}const YS=Symbol.for("v-scx"),ZS=()=>mn(YS);function Nb(e,t){return of(e,null,t)}function JS(e,t){return of(e,null,{flush:"sync"})}function yt(e,t,r){return of(e,t,r)}function of(e,t,r=bt){const{immediate:o,deep:s,flush:c,once:f}=r,d=Zt({},r),h=t&&o||!t&&c!=="post";let p;if(Ca){if(c==="sync"){const w=ZS();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Qr,w.resume=Qr,w.pause=Qr,w}}const g=Sn;d.call=(w,P,A)=>Fr(w,g,P,A);let v=!1;c==="post"?d.scheduler=w=>{Pn(w,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(w,P)=>{P?w():up(w)}),d.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const b=GS(e,t,d);return Ca&&(p?p.push(b):h&&b()),b}function QS(e,t,r){const o=this.proxy,s=Ht(e)?e.includes(".")?$b(o,e):()=>o[e]:e.bind(o,o);let c;rt(t)?c=t:(c=t.handler,r=t);const f=Xa(this),d=of(s,c.bind(o),r);return f(),d}function $b(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}const eT=Symbol("_vte"),Ob=e=>e.__isTeleport,Zr=Symbol("_leaveCb"),Kl=Symbol("_enterCb");function tT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Di(()=>{e.isMounted=!0}),Ga(()=>{e.isUnmounting=!0}),e}const pr=[Function,Array],Pb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pr,onEnter:pr,onAfterEnter:pr,onEnterCancelled:pr,onBeforeLeave:pr,onLeave:pr,onAfterLeave:pr,onLeaveCancelled:pr,onBeforeAppear:pr,onAppear:pr,onAfterAppear:pr,onAppearCancelled:pr},Rb=e=>{const t=e.subTree;return t.component?Rb(t.component):t},nT={name:"BaseTransition",props:Pb,setup(e,{slots:t}){const r=oi(),o=tT();return()=>{const s=t.default&&zb(t.default(),!0);if(!s||!s.length)return;const c=Ib(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return Cd(c);const h=lv(c);if(!h)return Cd(c);let p=oh(h,f,o,r,v=>p=v);h.type!==cn&&_a(h,p);let g=r.subTree&&lv(r.subTree);if(g&&g.type!==cn&&!Jr(g,h)&&Rb(r).type!==cn){let v=oh(g,f,o,r);if(_a(g,v),d==="out-in"&&h.type!==cn)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},Cd(c);d==="in-out"&&h.type!==cn?v.delayLeave=(b,w,P)=>{const A=Db(o,g);A[String(g.key)]=g,b[Zr]=()=>{w(),b[Zr]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{P(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function Ib(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==cn){t=r;break}}return t}const rT=nT;function Db(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function oh(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:P,onLeaveCancelled:A,onBeforeAppear:N,onAppear:E,onAfterAppear:M,onAppearCancelled:D}=t,C=String(e.key),I=Db(r,e),q=(J,G)=>{J&&Fr(J,o,9,G)},Y=(J,G)=>{const K=G[1];q(J,G),Xe(J)?J.every(O=>O.length<=1)&&K():J.length<=1&&K()},oe={mode:f,persisted:d,beforeEnter(J){let G=h;if(!r.isMounted)if(c)G=N||h;else return;J[Zr]&&J[Zr](!0);const K=I[C];K&&Jr(e,K)&&K.el[Zr]&&K.el[Zr](),q(G,[J])},enter(J){if(I[C]===e)return;let G=p,K=g,O=v;if(!r.isMounted)if(c)G=E||p,K=M||g,O=D||v;else return;let $=!1;J[Kl]=k=>{$||($=!0,k?q(O,[J]):q(K,[J]),oe.delayedLeave&&oe.delayedLeave(),J[Kl]=void 0)};const _=J[Kl].bind(null,!1);G?Y(G,[J,_]):_()},leave(J,G){const K=String(e.key);if(J[Kl]&&J[Kl](!0),r.isUnmounting)return G();q(b,[J]);let O=!1;J[Zr]=_=>{O||(O=!0,G(),_?q(A,[J]):q(P,[J]),J[Zr]=void 0,I[K]===e&&delete I[K])};const $=J[Zr].bind(null,!1);I[K]=e,w?Y(w,[J,$]):$()},clone(J){const G=oh(J,t,r,o,s);return s&&s(G),G}};return oe}function Cd(e){if(sf(e))return e=vo(e),e.children=null,e}function lv(e){if(!sf(e))return Ob(e.type)&&e.children?Ib(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&rt(r.default))return r.default()}}function _a(e,t){e.shapeFlag&6&&e.component?(e.transition=t,_a(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zb(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===nt?(f.patchFlag&128&&s++,o=o.concat(zb(f.children,t,d))):(t||f.type!==cn)&&o.push(d!=null?vo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function tt(e,t){return rt(e)?Zt({name:e.name},t,{setup:e}):e}function fp(){const e=oi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Fb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function av(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}const bu=new WeakMap;function ua(e,t,r,o,s=!1){if(Xe(e)){e.forEach((A,N)=>ua(A,t&&(Xe(t)?t[N]:t),r,o,s));return}if(qs(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&ua(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?ff(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===bt?d.refs={}:d.refs,v=d.setupState,b=vt(v),w=v===bt?Yy:A=>av(g,A)?!1:_t(b,A),P=(A,N)=>!(N&&av(g,N));if(p!=null&&p!==h){if(cv(t),Ht(p))g[p]=null,w(p)&&(v[p]=null);else if(Mt(p)){const A=t;P(p,A.k)&&(p.value=null),A.k&&(g[A.k]=null)}}if(rt(h))Ua(h,d,12,[f,g]);else{const A=Ht(h),N=Mt(h);if(A||N){const E=()=>{if(e.f){const M=A?w(h)?v[h]:g[h]:P()||!e.k?h.value:g[e.k];if(s)Xe(M)&&tp(M,c);else if(Xe(M))M.includes(c)||M.push(c);else if(A)g[h]=[c],w(h)&&(v[h]=g[h]);else{const D=[c];P(h,e.k)&&(h.value=D),e.k&&(g[e.k]=D)}}else A?(g[h]=f,w(h)&&(v[h]=f)):N&&(P(h,e.k)&&(h.value=f),e.k&&(g[e.k]=f))};if(f){const M=()=>{E(),bu.delete(e)};M.id=-1,bu.set(e,M),Pn(M,r)}else cv(e),E()}}}function cv(e){const t=bu.get(e);t&&(t.flags|=8,bu.delete(e))}Ju().requestIdleCallback;Ju().cancelIdleCallback;const qs=e=>!!e.type.__asyncLoader,sf=e=>e.type.__isKeepAlive;function iT(e,t){Hb(e,"a",t)}function oT(e,t){Hb(e,"da",t)}function Hb(e,t,r=Sn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(lf(t,o,r),r){let s=r.parent;for(;s&&s.parent;)sf(s.parent.vnode)&&sT(o,t,r,s),s=s.parent}}function sT(e,t,r,o){const s=lf(t,e,o,!0);Ka(()=>{tp(o[t],s)},r)}function lf(e,t,r=Sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Mi();const d=Xa(r),h=Fr(t,r,e,f);return d(),Ni(),h});return o?s.unshift(c):s.push(c),c}}const Ii=e=>(t,r=Sn)=>{(!Ca||e==="sp")&&lf(e,(...o)=>t(...o),r)},lT=Ii("bm"),Di=Ii("m"),aT=Ii("bu"),cT=Ii("u"),Ga=Ii("bum"),Ka=Ii("um"),uT=Ii("sp"),fT=Ii("rtg"),dT=Ii("rtc");function hT(e,t=Sn){lf("ec",e,t)}const dp="components",pT="directives";function es(e,t){return hp(dp,e,!0,t)||e}const Bb=Symbol.for("v-ndc");function wu(e){return Ht(e)?hp(dp,e,!1)||e:e||Bb}function Qn(e){return hp(pT,e)}function hp(e,t,r=!0,o=!1){const s=vn||Sn;if(s){const c=s.type;if(e===dp){const d=rC(c,!1);if(d&&(d===t||d===ur(t)||d===Yu(ur(t))))return c}const f=uv(s[e]||c[e],t)||uv(s.appContext[e],t);return!f&&o?c:f}}function uv(e,t){return e&&(e[t]||e[ur(t)]||e[Yu(ur(t))])}function yn(e,t,r,o){let s;const c=r,f=Xe(e);if(f||Ht(e)){const d=f&&Yo(e);let h=!1,p=!1;d&&(h=!lr(e),p=$i(e),e=ef(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?el(zr(e[g])):zr(e[g]):e[g],g,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(wt(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const g=d[h];s[h]=t(e[g],g,h,c)}}else s=[];return s}function gT(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Xe(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Ft(e,t,r={},o,s){if(vn.ce||vn.parent&&qs(vn.parent)&&vn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),te(),We(nt,null,[Me("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),te();const f=c&&jb(c(r)),d=r.key||f&&f.key,h=We(nt,{key:(d&&!Dr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function jb(e){return e.some(t=>rl(t)?!(t.type===cn||t.type===nt&&!jb(t.children)):!0)?e:null}function mT(e,t){const r={};for(const o in e)r[Qc(o)]=e[o];return r}const sh=e=>e?pw(e)?ff(e):sh(e.parent):null,fa=Zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sh(e.parent),$root:e=>sh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vb(e),$forceUpdate:e=>e.f||(e.f=()=>{up(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>QS.bind(e)}),Ed=(e,t)=>e!==bt&&!e.__isScriptSetup&&_t(e,t),vT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Ed(o,t))return f[t]=1,o[t];if(s!==bt&&_t(s,t))return f[t]=2,s[t];if(_t(c,t))return f[t]=3,c[t];if(r!==bt&&_t(r,t))return f[t]=4,r[t];lh&&(f[t]=0)}}const p=fa[t];let g,v;if(p)return t==="$attrs"&&_n(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==bt&&_t(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,_t(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Ed(s,t)?(s[t]=r,!0):o!==bt&&_t(o,t)?(o[t]=r,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,props:c,type:f}},d){let h;return!!(r[d]||e!==bt&&d[0]!=="$"&&_t(e,d)||Ed(t,d)||_t(c,d)||_t(o,d)||_t(fa,d)||_t(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:_t(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Wb(){return qb().slots}function yT(){return qb().attrs}function qb(e){const t=oi();return t.setupContext||(t.setupContext=mw(t))}function xu(e){return Xe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Sa(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):Zt({},xu(e),xu(t))}let lh=!0;function bT(e){const t=Vb(e),r=e.proxy,o=e.ctx;lh=!1,t.beforeCreate&&fv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:w,updated:P,activated:A,deactivated:N,beforeDestroy:E,beforeUnmount:M,destroyed:D,unmounted:C,render:I,renderTracked:q,renderTriggered:Y,errorCaptured:oe,serverPrefetch:J,expose:G,inheritAttrs:K,components:O,directives:$,filters:_}=t;if(p&&wT(p,o,null),f)for(const B in f){const ae=f[B];rt(ae)&&(o[B]=ae.bind(r))}if(s){const B=s.call(r,r);wt(B)&&(e.data=sr(B))}if(lh=!0,c)for(const B in c){const ae=c[B],ve=rt(ae)?ae.bind(r,r):rt(ae.get)?ae.get.bind(r,r):Qr,_e=!rt(ae)&&rt(ae.set)?ae.set.bind(r):Qr,je=ke({get:ve,set:_e});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>je.value,set:Ee=>je.value=Ee})}if(d)for(const B in d)Ub(d[B],o,r,B);if(h){const B=rt(h)?h.call(r):h;Reflect.ownKeys(B).forEach(ae=>{mr(ae,B[ae])})}g&&fv(g,e,"c");function R(B,ae){Xe(ae)?ae.forEach(ve=>B(ve.bind(r))):ae&&B(ae.bind(r))}if(R(lT,v),R(Di,b),R(aT,w),R(cT,P),R(iT,A),R(oT,N),R(hT,oe),R(dT,q),R(fT,Y),R(Ga,M),R(Ka,C),R(uT,J),Xe(G))if(G.length){const B=e.exposed||(e.exposed={});G.forEach(ae=>{Object.defineProperty(B,ae,{get:()=>r[ae],set:ve=>r[ae]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Qr&&(e.render=I),K!=null&&(e.inheritAttrs=K),O&&(e.components=O),$&&(e.directives=$),J&&Fb(e)}function wT(e,t,r=Qr){Xe(e)&&(e=ah(e));for(const o in e){const s=e[o];let c;wt(s)?"default"in s?c=mn(s.from||o,s.default,!0):c=mn(s.from||o):c=mn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function fv(e,t,r){Fr(Xe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ub(e,t,r,o){let s=o.includes(".")?$b(r,o):()=>r[o];if(Ht(e)){const c=t[e];rt(c)&&yt(s,c)}else if(rt(e))yt(s,e.bind(r));else if(wt(e))if(Xe(e))e.forEach(c=>Ub(c,t,r,o));else{const c=rt(e.handler)?e.handler.bind(r):t[e.handler];rt(c)&&yt(s,c,e)}}function Vb(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>ku(h,p,f,!0)),ku(h,t,f)),wt(t)&&c.set(t,h),h}function ku(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&ku(e,c,r,!0),s&&s.forEach(f=>ku(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=xT[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const xT={data:dv,props:hv,emits:hv,methods:na,computed:na,beforeCreate:On,created:On,beforeMount:On,mounted:On,beforeUpdate:On,updated:On,beforeDestroy:On,beforeUnmount:On,destroyed:On,unmounted:On,activated:On,deactivated:On,errorCaptured:On,serverPrefetch:On,components:na,directives:na,watch:_T,provide:dv,inject:kT};function dv(e,t){return t?e?function(){return Zt(rt(e)?e.call(this,this):e,rt(t)?t.call(this,this):t)}:t:e}function kT(e,t){return na(ah(e),ah(t))}function ah(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function On(e,t){return e?[...new Set([].concat(e,t))]:t}function na(e,t){return e?Zt(Object.create(null),e,t):t}function hv(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:Zt(Object.create(null),xu(e),xu(t??{})):t}function _T(e,t){if(!e)return t;if(!t)return e;const r=Zt(Object.create(null),e);for(const o in t)r[o]=On(e[o],t[o]);return r}function Gb(){return{app:null,config:{isNativeTag:Yy,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ST=0;function TT(e,t){return function(o,s=null){rt(o)||(o=Zt({},o)),s!=null&&!wt(s)&&(s=null);const c=Gb(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:ST++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:oC,get config(){return c.config},set config(g){},use(g,...v){return f.has(g)||(g&&rt(g.install)?(f.add(g),g.install(p,...v)):rt(g)&&(f.add(g),g(p,...v))),p},mixin(g){return c.mixins.includes(g)||c.mixins.push(g),p},component(g,v){return v?(c.components[g]=v,p):c.components[g]},directive(g,v){return v?(c.directives[g]=v,p):c.directives[g]},mount(g,v,b){if(!h){const w=p._ceVNode||Me(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,g,b),h=!0,p._container=g,g.__vue_app__=p,ff(w.component)}},onUnmount(g){d.push(g)},unmount(){h&&(Fr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return c.provides[g]=v,p},runWithContext(g){const v=Zo;Zo=p;try{return g()}finally{Zo=v}}};return p}}let Zo=null;function af(e,t,r=bt){const o=oi(),s=ur(t),c=Ri(t),f=Kb(e,s),d=xb((h,p)=>{let g,v=bt,b;return JS(()=>{const w=e[s];Kn(g,w)&&(g=w,p())}),{get(){return h(),r.get?r.get(g):g},set(w){const P=r.set?r.set(w):w;if(!Kn(P,g)&&!(v!==bt&&Kn(w,v)))return;const A=o.vnode.props;A&&(t in A||s in A||c in A)&&(`onUpdate:${t}`in A||`onUpdate:${s}`in A||`onUpdate:${c}`in A)||(g=w,p()),o.emit(`update:${t}`,P),Kn(w,P)&&Kn(w,v)&&!Kn(P,b)&&p(),v=w,b=P}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||bt:d,done:!1}:{done:!0}}}},d}const Kb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ur(t)}Modifiers`]||e[`${Ri(t)}Modifiers`];function CT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||bt;let s=r;const c=t.startsWith("update:"),f=c&&Kb(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ht(g)?g.trim():g)),f.number&&(s=r.map(Zu)));let d,h=o[d=Qc(t)]||o[d=Qc(ur(t))];!h&&c&&(h=o[d=Qc(Ri(t))]),h&&Fr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Fr(p,e,6,s)}}const ET=new WeakMap;function Xb(e,t,r=!1){const o=r?ET:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!rt(e)){const h=p=>{const g=Xb(p,t,!0);g&&(d=!0,Zt(f,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(wt(e)&&o.set(e,null),null):(Xe(c)?c.forEach(h=>f[h]=null):Zt(f,c),wt(e)&&o.set(e,f),f)}function cf(e,t){return!e||!Gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Ri(t))||_t(e,t))}function pv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:w,ctx:P,inheritAttrs:A}=e,N=yu(e);let E,M;try{if(r.shapeFlag&4){const C=s||o,I=C;E=$r(p.call(I,C,g,v,w,b,P)),M=d}else{const C=t;E=$r(C.length>1?C(v,{attrs:d,slots:f,emit:h}):C(v,null)),M=t.props?d:LT(d)}}catch(C){da.length=0,Va(C,e,1),E=Me(cn)}let D=E;if(M&&A!==!1){const C=Object.keys(M),{shapeFlag:I}=D;C.length&&I&7&&(c&&C.some(ep)&&(M=MT(M,c)),D=vo(D,M,!1,!0))}return r.dirs&&(D=vo(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(r.dirs):r.dirs),r.transition&&_a(D,r.transition),E=D,yu(N),E}function AT(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(rl(s)){if(s.type!==cn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const LT=e=>{let t;for(const r in e)(r==="class"||r==="style"||Gu(r))&&((t||(t={}))[r]=e[r]);return t},MT=(e,t)=>{const r={};for(const o in e)(!ep(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function NT(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?gv(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const b=g[v];if(Yb(f,o,b)&&!cf(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?gv(o,f,p):!0:!!f;return!1}function gv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(Yb(t,e,c)&&!cf(r,c))return!0}return!1}function Yb(e,t,r){const o=e[r],s=t[r];return r==="style"&&wt(o)&&wt(s)?!pl(o,s):o!==s}function pp({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Zb={},Jb=()=>Object.create(Zb),Qb=e=>Object.getPrototypeOf(e)===Zb;function $T(e,t,r,o=!1){const s={},c=Jb();e.propsDefaults=Object.create(null),ew(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:ap(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function OT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let b=g[v];if(cf(e.emitsOptions,b))continue;const w=t[b];if(h)if(_t(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const P=ur(b);s[P]=ch(h,d,P,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{ew(e,t,s,c)&&(p=!0);let g;for(const v in d)(!t||!_t(t,v)&&((g=Ri(v))===v||!_t(t,g)))&&(h?r&&(r[v]!==void 0||r[g]!==void 0)&&(s[v]=ch(h,d,v,void 0,e,!0)):delete s[v]);if(c!==d)for(const v in c)(!t||!_t(t,v))&&(delete c[v],p=!0)}p&&_i(e.attrs,"set","")}function ew(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(la(h))continue;const p=t[h];let g;s&&_t(s,g=ur(h))?!c||!c.includes(g)?r[g]=p:(d||(d={}))[g]=p:cf(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||bt;for(let g=0;g<c.length;g++){const v=c[g];r[v]=ch(s,h,v,p[v],e,!_t(p,v))}}return f}function ch(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=_t(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&rt(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const g=Xa(s);o=p[r]=h.call(null,t),g()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Ri(r))&&(o=!0))}return o}const PT=new WeakMap;function tw(e,t,r=!1){const o=r?PT:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!rt(e)){const g=v=>{h=!0;const[b,w]=tw(v,t,!0);Zt(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return wt(e)&&o.set(e,Bs),Bs;if(Xe(c))for(let g=0;g<c.length;g++){const v=ur(c[g]);mv(v)&&(f[v]=bt)}else if(c)for(const g in c){const v=ur(g);if(mv(v)){const b=c[g],w=f[v]=Xe(b)||rt(b)?{type:b}:Zt({},b),P=w.type;let A=!1,N=!0;if(Xe(P))for(let E=0;E<P.length;++E){const M=P[E],D=rt(M)&&M.name;if(D==="Boolean"){A=!0;break}else D==="String"&&(N=!1)}else A=rt(P)&&P.name==="Boolean";w[0]=A,w[1]=N,(A||_t(w,"default"))&&d.push(v)}}const p=[f,d];return wt(e)&&o.set(e,p),p}function mv(e){return e[0]!=="$"&&!la(e)}const gp=e=>e==="_"||e==="_ctx"||e==="$stable",mp=e=>Xe(e)?e.map($r):[$r(e)],RT=(e,t,r)=>{if(t._n)return t;const o=Be((...s)=>mp(t(...s)),r);return o._c=!1,o},nw=(e,t,r)=>{const o=e._ctx;for(const s in e){if(gp(s))continue;const c=e[s];if(rt(c))t[s]=RT(s,c,o);else if(c!=null){const f=mp(c);t[s]=()=>f}}},rw=(e,t)=>{const r=mp(t);e.slots.default=()=>r},iw=(e,t,r)=>{for(const o in t)(r||!gp(o))&&(e[o]=t[o])},IT=(e,t,r)=>{const o=e.slots=Jb();if(e.vnode.shapeFlag&32){const s=t._;s?(iw(o,t,r),r&&eb(o,"_",s,!0)):nw(t,o)}else t&&rw(e,t)},DT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=bt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:iw(s,t,r):(c=!t.$stable,nw(t,s)),f=t}else t&&(rw(e,t),f={default:1});if(c)for(const d in s)!gp(d)&&f[d]==null&&delete s[d]},Pn=KT;function zT(e){return FT(e)}function FT(e,t){const r=Ju();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:w=Qr,insertStaticContent:P}=e,A=(z,j,ee,de=null,he=null,me=null,Ce=void 0,Ae=null,xe=!!j.dynamicChildren)=>{if(z===j)return;z&&!Jr(z,j)&&(de=F(z),Ee(z,he,me,!0),z=null),j.patchFlag===-2&&(xe=!1,j.dynamicChildren=null);const{type:be,ref:Q,shapeFlag:ue}=j;switch(be){case uf:N(z,j,ee,de);break;case cn:E(z,j,ee,de);break;case Ld:z==null&&M(j,ee,de,Ce);break;case nt:O(z,j,ee,de,he,me,Ce,Ae,xe);break;default:ue&1?I(z,j,ee,de,he,me,Ce,Ae,xe):ue&6?$(z,j,ee,de,he,me,Ce,Ae,xe):(ue&64||ue&128)&&be.process(z,j,ee,de,he,me,Ce,Ae,xe,le)}Q!=null&&he?ua(Q,z&&z.ref,me,j||z,!j):Q==null&&z&&z.ref!=null&&ua(z.ref,null,me,z,!0)},N=(z,j,ee,de)=>{if(z==null)o(j.el=d(j.children),ee,de);else{const he=j.el=z.el;j.children!==z.children&&p(he,j.children)}},E=(z,j,ee,de)=>{z==null?o(j.el=h(j.children||""),ee,de):j.el=z.el},M=(z,j,ee,de)=>{[z.el,z.anchor]=P(z.children,j,ee,de,z.el,z.anchor)},D=({el:z,anchor:j},ee,de)=>{let he;for(;z&&z!==j;)he=b(z),o(z,ee,de),z=he;o(j,ee,de)},C=({el:z,anchor:j})=>{let ee;for(;z&&z!==j;)ee=b(z),s(z),z=ee;s(j)},I=(z,j,ee,de,he,me,Ce,Ae,xe)=>{if(j.type==="svg"?Ce="svg":j.type==="math"&&(Ce="mathml"),z==null)q(j,ee,de,he,me,Ce,Ae,xe);else{const be=z.el&&z.el._isVueCE?z.el:null;try{be&&be._beginPatch(),J(z,j,he,me,Ce,Ae,xe)}finally{be&&be._endPatch()}}},q=(z,j,ee,de,he,me,Ce,Ae)=>{let xe,be;const{props:Q,shapeFlag:ue,transition:ie,dirs:Re}=z;if(xe=z.el=f(z.type,me,Q&&Q.is,Q),ue&8?g(xe,z.children):ue&16&&oe(z.children,xe,null,de,he,Ad(z,me),Ce,Ae),Re&&Do(z,null,de,"created"),Y(xe,z,z.scopeId,Ce,de),Q){for(const ct in Q)ct!=="value"&&!la(ct)&&c(xe,ct,null,Q[ct],me,de);"value"in Q&&c(xe,"value",null,Q.value,me),(be=Q.onVnodeBeforeMount)&&Xr(be,de,z)}Re&&Do(z,null,de,"beforeMount");const et=HT(he,ie);et&&ie.beforeEnter(xe),o(xe,j,ee),((be=Q&&Q.onVnodeMounted)||et||Re)&&Pn(()=>{be&&Xr(be,de,z),et&&ie.enter(xe),Re&&Do(z,null,de,"mounted")},he)},Y=(z,j,ee,de,he)=>{if(ee&&w(z,ee),de)for(let me=0;me<de.length;me++)w(z,de[me]);if(he){let me=he.subTree;if(j===me||aw(me.type)&&(me.ssContent===j||me.ssFallback===j)){const Ce=he.vnode;Y(z,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},oe=(z,j,ee,de,he,me,Ce,Ae,xe=0)=>{for(let be=xe;be<z.length;be++){const Q=z[be]=Ae?ki(z[be]):$r(z[be]);A(null,Q,j,ee,de,he,me,Ce,Ae)}},J=(z,j,ee,de,he,me,Ce)=>{const Ae=j.el=z.el;let{patchFlag:xe,dynamicChildren:be,dirs:Q}=j;xe|=z.patchFlag&16;const ue=z.props||bt,ie=j.props||bt;let Re;if(ee&&zo(ee,!1),(Re=ie.onVnodeBeforeUpdate)&&Xr(Re,ee,j,z),Q&&Do(j,z,ee,"beforeUpdate"),ee&&zo(ee,!0),(ue.innerHTML&&ie.innerHTML==null||ue.textContent&&ie.textContent==null)&&g(Ae,""),be?G(z.dynamicChildren,be,Ae,ee,de,Ad(j,he),me):Ce||ae(z,j,Ae,null,ee,de,Ad(j,he),me,!1),xe>0){if(xe&16)K(Ae,ue,ie,ee,he);else if(xe&2&&ue.class!==ie.class&&c(Ae,"class",null,ie.class,he),xe&4&&c(Ae,"style",ue.style,ie.style,he),xe&8){const et=j.dynamicProps;for(let ct=0;ct<et.length;ct++){const dt=et[ct],Nt=ue[dt],ut=ie[dt];(ut!==Nt||dt==="value")&&c(Ae,dt,Nt,ut,he,ee)}}xe&1&&z.children!==j.children&&g(Ae,j.children)}else!Ce&&be==null&&K(Ae,ue,ie,ee,he);((Re=ie.onVnodeUpdated)||Q)&&Pn(()=>{Re&&Xr(Re,ee,j,z),Q&&Do(j,z,ee,"updated")},de)},G=(z,j,ee,de,he,me,Ce)=>{for(let Ae=0;Ae<j.length;Ae++){const xe=z[Ae],be=j[Ae],Q=xe.el&&(xe.type===nt||!Jr(xe,be)||xe.shapeFlag&198)?v(xe.el):ee;A(xe,be,Q,null,de,he,me,Ce,!0)}},K=(z,j,ee,de,he)=>{if(j!==ee){if(j!==bt)for(const me in j)!la(me)&&!(me in ee)&&c(z,me,j[me],null,he,de);for(const me in ee){if(la(me))continue;const Ce=ee[me],Ae=j[me];Ce!==Ae&&me!=="value"&&c(z,me,Ae,Ce,he,de)}"value"in ee&&c(z,"value",j.value,ee.value,he)}},O=(z,j,ee,de,he,me,Ce,Ae,xe)=>{const be=j.el=z?z.el:d(""),Q=j.anchor=z?z.anchor:d("");let{patchFlag:ue,dynamicChildren:ie,slotScopeIds:Re}=j;Re&&(Ae=Ae?Ae.concat(Re):Re),z==null?(o(be,ee,de),o(Q,ee,de),oe(j.children||[],ee,Q,he,me,Ce,Ae,xe)):ue>0&&ue&64&&ie&&z.dynamicChildren&&z.dynamicChildren.length===ie.length?(G(z.dynamicChildren,ie,ee,he,me,Ce,Ae),(j.key!=null||he&&j===he.subTree)&&ow(z,j,!0)):ae(z,j,ee,Q,he,me,Ce,Ae,xe)},$=(z,j,ee,de,he,me,Ce,Ae,xe)=>{j.slotScopeIds=Ae,z==null?j.shapeFlag&512?he.ctx.activate(j,ee,de,Ce,xe):_(j,ee,de,he,me,Ce,xe):k(z,j,xe)},_=(z,j,ee,de,he,me,Ce)=>{const Ae=z.component=QT(z,de,he);if(sf(z)&&(Ae.ctx.renderer=le),eC(Ae,!1,Ce),Ae.asyncDep){if(he&&he.registerDep(Ae,R,Ce),!z.el){const xe=Ae.subTree=Me(cn);E(null,xe,j,ee),z.placeholder=xe.el}}else R(Ae,z,j,ee,he,me,Ce)},k=(z,j,ee)=>{const de=j.component=z.component;if(NT(z,j,ee))if(de.asyncDep&&!de.asyncResolved){B(de,j,ee);return}else de.next=j,de.update();else j.el=z.el,de.vnode=j},R=(z,j,ee,de,he,me,Ce)=>{const Ae=()=>{if(z.isMounted){let{next:ue,bu:ie,u:Re,parent:et,vnode:ct}=z;{const Ut=sw(z);if(Ut){ue&&(ue.el=ct.el,B(z,ue,Ce)),Ut.asyncDep.then(()=>{Pn(()=>{z.isUnmounted||be()},he)});return}}let dt=ue,Nt;zo(z,!1),ue?(ue.el=ct.el,B(z,ue,Ce)):ue=ct,ie&&eu(ie),(Nt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Xr(Nt,et,ue,ct),zo(z,!0);const ut=pv(z),Jt=z.subTree;z.subTree=ut,A(Jt,ut,v(Jt.el),F(Jt),z,he,me),ue.el=ut.el,dt===null&&pp(z,ut.el),Re&&Pn(Re,he),(Nt=ue.props&&ue.props.onVnodeUpdated)&&Pn(()=>Xr(Nt,et,ue,ct),he)}else{let ue;const{el:ie,props:Re}=j,{bm:et,m:ct,parent:dt,root:Nt,type:ut}=z,Jt=qs(j);zo(z,!1),et&&eu(et),!Jt&&(ue=Re&&Re.onVnodeBeforeMount)&&Xr(ue,dt,j),zo(z,!0);{Nt.ce&&Nt.ce._hasShadowRoot()&&Nt.ce._injectChildStyle(ut);const Ut=z.subTree=pv(z);A(null,Ut,ee,de,z,he,me),j.el=Ut.el}if(ct&&Pn(ct,he),!Jt&&(ue=Re&&Re.onVnodeMounted)){const Ut=j;Pn(()=>Xr(ue,dt,Ut),he)}(j.shapeFlag&256||dt&&qs(dt.vnode)&&dt.vnode.shapeFlag&256)&&z.a&&Pn(z.a,he),z.isMounted=!0,j=ee=de=null}};z.scope.on();const xe=z.effect=new ob(Ae);z.scope.off();const be=z.update=xe.run.bind(xe),Q=z.job=xe.runIfDirty.bind(xe);Q.i=z,Q.id=z.uid,xe.scheduler=()=>up(Q),zo(z,!0),be()},B=(z,j,ee)=>{j.component=z;const de=z.vnode.props;z.vnode=j,z.next=null,OT(z,j.props,de,ee),DT(z,j.children,ee),Mi(),sv(z),Ni()},ae=(z,j,ee,de,he,me,Ce,Ae,xe=!1)=>{const be=z&&z.children,Q=z?z.shapeFlag:0,ue=j.children,{patchFlag:ie,shapeFlag:Re}=j;if(ie>0){if(ie&128){_e(be,ue,ee,de,he,me,Ce,Ae,xe);return}else if(ie&256){ve(be,ue,ee,de,he,me,Ce,Ae,xe);return}}Re&8?(Q&16&&Pe(be,he,me),ue!==be&&g(ee,ue)):Q&16?Re&16?_e(be,ue,ee,de,he,me,Ce,Ae,xe):Pe(be,he,me,!0):(Q&8&&g(ee,""),Re&16&&oe(ue,ee,de,he,me,Ce,Ae,xe))},ve=(z,j,ee,de,he,me,Ce,Ae,xe)=>{z=z||Bs,j=j||Bs;const be=z.length,Q=j.length,ue=Math.min(be,Q);let ie;for(ie=0;ie<ue;ie++){const Re=j[ie]=xe?ki(j[ie]):$r(j[ie]);A(z[ie],Re,ee,null,he,me,Ce,Ae,xe)}be>Q?Pe(z,he,me,!0,!1,ue):oe(j,ee,de,he,me,Ce,Ae,xe,ue)},_e=(z,j,ee,de,he,me,Ce,Ae,xe)=>{let be=0;const Q=j.length;let ue=z.length-1,ie=Q-1;for(;be<=ue&&be<=ie;){const Re=z[be],et=j[be]=xe?ki(j[be]):$r(j[be]);if(Jr(Re,et))A(Re,et,ee,null,he,me,Ce,Ae,xe);else break;be++}for(;be<=ue&&be<=ie;){const Re=z[ue],et=j[ie]=xe?ki(j[ie]):$r(j[ie]);if(Jr(Re,et))A(Re,et,ee,null,he,me,Ce,Ae,xe);else break;ue--,ie--}if(be>ue){if(be<=ie){const Re=ie+1,et=Re<Q?j[Re].el:de;for(;be<=ie;)A(null,j[be]=xe?ki(j[be]):$r(j[be]),ee,et,he,me,Ce,Ae,xe),be++}}else if(be>ie)for(;be<=ue;)Ee(z[be],he,me,!0),be++;else{const Re=be,et=be,ct=new Map;for(be=et;be<=ie;be++){const Bt=j[be]=xe?ki(j[be]):$r(j[be]);Bt.key!=null&&ct.set(Bt.key,be)}let dt,Nt=0;const ut=ie-et+1;let Jt=!1,Ut=0;const jn=new Array(ut);for(be=0;be<ut;be++)jn[be]=0;for(be=Re;be<=ue;be++){const Bt=z[be];if(Nt>=ut){Ee(Bt,he,me,!0);continue}let Wn;if(Bt.key!=null)Wn=ct.get(Bt.key);else for(dt=et;dt<=ie;dt++)if(jn[dt-et]===0&&Jr(Bt,j[dt])){Wn=dt;break}Wn===void 0?Ee(Bt,he,me,!0):(jn[Wn-et]=be+1,Wn>=Ut?Ut=Wn:Jt=!0,A(Bt,j[Wn],ee,null,he,me,Ce,Ae,xe),Nt++)}const Wr=Jt?BT(jn):Bs;for(dt=Wr.length-1,be=ut-1;be>=0;be--){const Bt=et+be,Wn=j[Bt],at=j[Bt+1],To=Bt+1<Q?at.el||lw(at):de;jn[be]===0?A(null,Wn,ee,To,he,me,Ce,Ae,xe):Jt&&(dt<0||be!==Wr[dt]?je(Wn,ee,To,2):dt--)}}},je=(z,j,ee,de,he=null)=>{const{el:me,type:Ce,transition:Ae,children:xe,shapeFlag:be}=z;if(be&6){je(z.component.subTree,j,ee,de);return}if(be&128){z.suspense.move(j,ee,de);return}if(be&64){Ce.move(z,j,ee,le);return}if(Ce===nt){o(me,j,ee);for(let ue=0;ue<xe.length;ue++)je(xe[ue],j,ee,de);o(z.anchor,j,ee);return}if(Ce===Ld){D(z,j,ee);return}if(de!==2&&be&1&&Ae)if(de===0)Ae.beforeEnter(me),o(me,j,ee),Pn(()=>Ae.enter(me),he);else{const{leave:ue,delayLeave:ie,afterLeave:Re}=Ae,et=()=>{z.ctx.isUnmounted?s(me):o(me,j,ee)},ct=()=>{me._isLeaving&&me[Zr](!0),ue(me,()=>{et(),Re&&Re()})};ie?ie(me,et,ct):ct()}else o(me,j,ee)},Ee=(z,j,ee,de=!1,he=!1)=>{const{type:me,props:Ce,ref:Ae,children:xe,dynamicChildren:be,shapeFlag:Q,patchFlag:ue,dirs:ie,cacheIndex:Re}=z;if(ue===-2&&(he=!1),Ae!=null&&(Mi(),ua(Ae,null,ee,z,!0),Ni()),Re!=null&&(j.renderCache[Re]=void 0),Q&256){j.ctx.deactivate(z);return}const et=Q&1&&ie,ct=!qs(z);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Xr(dt,j,z),Q&6)He(z.component,ee,de);else{if(Q&128){z.suspense.unmount(ee,de);return}et&&Do(z,null,j,"beforeUnmount"),Q&64?z.type.remove(z,j,ee,le,de):be&&!be.hasOnce&&(me!==nt||ue>0&&ue&64)?Pe(be,j,ee,!1,!0):(me===nt&&ue&384||!he&&Q&16)&&Pe(xe,j,ee),de&&Ge(z)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||et)&&Pn(()=>{dt&&Xr(dt,j,z),et&&Do(z,null,j,"unmounted")},ee)},Ge=z=>{const{type:j,el:ee,anchor:de,transition:he}=z;if(j===nt){Ue(ee,de);return}if(j===Ld){C(z);return}const me=()=>{s(ee),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(z.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ae}=he,xe=()=>Ce(ee,me);Ae?Ae(z.el,me,xe):xe()}else me()},Ue=(z,j)=>{let ee;for(;z!==j;)ee=b(z),s(z),z=ee;s(j)},He=(z,j,ee)=>{const{bum:de,scope:he,job:me,subTree:Ce,um:Ae,m:xe,a:be}=z;vv(xe),vv(be),de&&eu(de),he.stop(),me&&(me.flags|=8,Ee(Ce,z,j,ee)),Ae&&Pn(Ae,j),Pn(()=>{z.isUnmounted=!0},j)},Pe=(z,j,ee,de=!1,he=!1,me=0)=>{for(let Ce=me;Ce<z.length;Ce++)Ee(z[Ce],j,ee,de,he)},F=z=>{if(z.shapeFlag&6)return F(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const j=b(z.anchor||z.el),ee=j&&j[eT];return ee?b(ee):j};let Z=!1;const re=(z,j,ee)=>{let de;z==null?j._vnode&&(Ee(j._vnode,null,null,!0),de=j._vnode.component):A(j._vnode||null,z,j,null,null,null,ee),j._vnode=z,Z||(Z=!0,sv(de),Tb(),Z=!1)},le={p:A,um:Ee,m:je,r:Ge,mt:_,mc:oe,pc:ae,pbc:G,n:F,o:e};return{render:re,hydrate:void 0,createApp:TT(re)}}function Ad({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function zo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function HT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ow(e,t,r=!1){const o=e.children,s=t.children;if(Xe(o)&&Xe(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=ki(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&ow(f,d)),d.type===uf&&(d.patchFlag===-1&&(d=s[c]=ki(d)),d.el=f.el),d.type===cn&&!d.el&&(d.el=f.el)}}function BT(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function sw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sw(t)}function vv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function lw(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?lw(t.subTree):null}const aw=e=>e.__isSuspense;let uh=0;const jT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)qT(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}UT(e,t,r,o,s,f,d,h,p)}},hydrate:VT,normalize:GT},WT=jT;function Ta(e,t){const r=e.props&&e.props[t];rt(r)&&r()}function qT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=cw(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(Ta(e,"onPending"),Ta(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Us(b,e.ssFallback)):b.resolve(!1,!0)}function UT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:P,pendingBranch:A,isInFallback:N,isHydrating:E}=v;if(A)v.pendingBranch=b,Jr(A,b)?(h(A,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():N&&(E||(h(P,w,r,o,s,null,c,f,d),Us(v,w)))):(v.pendingId=uh++,E?(v.isHydrating=!1,v.activeBranch=A):p(A,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),N?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(P,w,r,o,s,null,c,f,d),Us(v,w))):P&&Jr(P,b)?(h(P,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(P&&Jr(P,b))h(P,b,r,o,s,v,c,f,d),Us(v,b);else if(Ta(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=uh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:M,pendingId:D}=v;M>0?setTimeout(()=>{v.pendingId===D&&v.fallback(w)},M):M===0&&v.fallback(w)}}function cw(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:w,n:P,o:{parentNode:A,remove:N}}=p;let E;const M=XT(e);M&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const D=e.props?tb(e.props.timeout):void 0,C=c,I={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:uh++,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(q=!1,Y=!1){const{vnode:oe,activeBranch:J,pendingBranch:G,pendingId:K,effects:O,parentComponent:$,container:_,isInFallback:k}=I;let R=!1;I.isHydrating?I.isHydrating=!1:q||(R=J&&G.transition&&G.transition.mode==="out-in",R&&(J.transition.afterLeave=()=>{K===I.pendingId&&(b(G,_,c===C?P(J):c,0),ih(O),k&&oe.ssFallback&&(oe.ssFallback.el=null))}),J&&(A(J.el)===_&&(c=P(J)),w(J,$,I,!0),!R&&k&&oe.ssFallback&&Pn(()=>oe.ssFallback.el=null,I)),R||b(G,_,c,0)),Us(I,G),I.pendingBranch=null,I.isInFallback=!1;let B=I.parent,ae=!1;for(;B;){if(B.pendingBranch){B.effects.push(...O),ae=!0;break}B=B.parent}!ae&&!R&&ih(O),I.effects=[],M&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),Ta(oe,"onResolve")},fallback(q){if(!I.pendingBranch)return;const{vnode:Y,activeBranch:oe,parentComponent:J,container:G,namespace:K}=I;Ta(Y,"onFallback");const O=P(oe),$=()=>{I.isInFallback&&(v(null,q,G,O,J,null,K,d,h),Us(I,q))},_=q.transition&&q.transition.mode==="out-in";_&&(oe.transition.afterLeave=$),I.isInFallback=!0,w(oe,J,null,!0),_||$()},move(q,Y,oe){I.activeBranch&&b(I.activeBranch,q,Y,oe),I.container=q},next(){return I.activeBranch&&P(I.activeBranch)},registerDep(q,Y,oe){const J=!!I.pendingBranch;J&&I.deps++;const G=q.vnode.el;q.asyncDep.catch(K=>{Va(K,q,0)}).then(K=>{if(q.isUnmounted||I.isUnmounted||I.pendingId!==q.suspenseId)return;q.asyncResolved=!0;const{vnode:O}=q;dh(q,K),G&&(O.el=G);const $=!G&&q.subTree.el;Y(q,O,A(G||q.subTree.el),G?null:P(q.subTree),I,f,oe),$&&(O.placeholder=null,N($)),pp(q,O.el),J&&--I.deps===0&&I.resolve()})},unmount(q,Y){I.isUnmounted=!0,I.activeBranch&&w(I.activeBranch,r,q,Y),I.pendingBranch&&w(I.pendingBranch,r,q,Y)}};return I}function VT(e,t,r,o,s,c,f,d,h){const p=t.suspense=cw(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function GT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=yv(o?r.default:r),e.ssFallback=o?yv(r.fallback):Me(cn)}function yv(e){let t;if(rt(e)){const r=tl&&e._c;r&&(e._d=!1,te()),e=e(),r&&(e._d=!0,t=Yn,uw())}return Xe(e)&&(e=AT(e)),e=$r(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function KT(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):ih(e)}function Us(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,pp(o,s))}function XT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),uf=Symbol.for("v-txt"),cn=Symbol.for("v-cmt"),Ld=Symbol.for("v-stc"),da=[];let Yn=null;function te(e=!1){da.push(Yn=e?null:[])}function uw(){da.pop(),Yn=da[da.length-1]||null}let tl=1;function nl(e,t=!1){tl+=e,e<0&&Yn&&t&&(Yn.hasOnce=!0)}function fw(e){return e.dynamicChildren=tl>0?Yn||Bs:null,uw(),tl>0&&Yn&&Yn.push(e),e}function ge(e,t,r,o,s,c){return fw(X(e,t,r,o,s,c,!0))}function We(e,t,r,o,s){return fw(Me(e,t,r,o,s,!0))}function rl(e){return e?e.__v_isVNode===!0:!1}function Jr(e,t){return e.type===t.type&&e.key===t.key}const dw=({key:e})=>e??null,tu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||Mt(e)||rt(e)?{i:vn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&tu(t),scopeId:rf,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:vn};return d?(vp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ht(r)?8:16),tl>0&&!f&&Yn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Yn.push(h),h}const Me=YT;function YT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===Bb)&&(e=cn),rl(e)){const d=vo(e,t,!0);return r&&vp(d,r),tl>0&&!c&&Yn&&(d.shapeFlag&6?Yn[Yn.indexOf(e)]=d:Yn.push(d)),d.patchFlag=-2,d}if(iC(e)&&(e=e.__vccOpts),t){t=hw(t);let{class:d,style:h}=t;d&&!Ht(d)&&(t.class=ot(d)),wt(h)&&(tf(h)&&!Xe(h)&&(h=Zt({},h)),t.style=Ot(h))}const f=Ht(e)?1:aw(e)?128:Ob(e)?64:wt(e)?4:rt(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function hw(e){return e?tf(e)||Qb(e)?Zt({},e):e:null}function vo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ei(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&dw(p),ref:t&&t.ref?r&&c?Xe(c)?c.concat(tu(t)):[c,tu(t)]:tu(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vo(e.ssContent),ssFallback:e.ssFallback&&vo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&_a(g,h.clone(g)),g}function Qe(e=" ",t=0){return Me(uf,null,e,t)}function ze(e="",t=!1){return t?(te(),We(cn,null,e)):Me(cn,null,e)}function $r(e){return e==null||typeof e=="boolean"?Me(cn):Xe(e)?Me(nt,null,e.slice()):rl(e)?ki(e):Me(uf,null,String(e))}function ki(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vo(e)}function vp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Xe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),vp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Qb(t)?t._ctx=vn:s===3&&vn&&(vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else rt(t)?(t={default:t,_ctx:vn},r=32):(t=String(t),o&64?(r=16,t=[Qe(t)]):r=8);e.children=t,e.shapeFlag|=r}function ei(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=ot([t.class,o.class]));else if(s==="style")t.style=Ot([t.style,o.style]);else if(Gu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Xe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Xr(e,t,r,o=null){Fr(e,t,7,[r,o])}const ZT=Gb();let JT=0;function QT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||ZT,c={uid:JT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new mS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tw(o,s),emitsOptions:Xb(o,s),emit:null,emitted:null,propsDefaults:bt,inheritAttrs:o.inheritAttrs,ctx:bt,data:bt,props:bt,attrs:bt,slots:bt,refs:bt,setupState:bt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=CT.bind(null,c),e.ce&&e.ce(c),c}let Sn=null;const oi=()=>Sn||vn;let _u,fh;{const e=Ju(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};_u=t("__VUE_INSTANCE_SETTERS__",r=>Sn=r),fh=t("__VUE_SSR_SETTERS__",r=>Ca=r)}const Xa=e=>{const t=Sn;return _u(e),e.scope.on(),()=>{e.scope.off(),_u(t)}},bv=()=>{Sn&&Sn.scope.off(),_u(null)};function pw(e){return e.vnode.shapeFlag&4}let Ca=!1;function eC(e,t=!1,r=!1){t&&fh(t);const{props:o,children:s}=e.vnode,c=pw(e);$T(e,o,c,t),IT(e,s,r||t);const f=c?tC(e,t):void 0;return t&&fh(!1),f}function tC(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vT);const{setup:o}=r;if(o){Mi();const s=e.setupContext=o.length>1?mw(e):null,c=Xa(e),f=Ua(o,e,0,[e.props,s]),d=Zy(f);if(Ni(),c(),(d||e.sp)&&!qs(e)&&Fb(e),d){if(f.then(bv,bv),t)return f.then(h=>{dh(e,h)}).catch(h=>{Va(h,e,0)});e.asyncDep=f}else dh(e,f)}else gw(e)}function dh(e,t,r){rt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:wt(t)&&(e.setupState=wb(t)),gw(e)}function gw(e,t,r){const o=e.type;e.render||(e.render=o.render||Qr);{const s=Xa(e);Mi();try{bT(e)}finally{Ni(),s()}}}const nC={get(e,t){return _n(e,"get",""),e[t]}};function mw(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,nC),slots:e.slots,emit:e.emit,expose:t}}function ff(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wb(nf(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in fa)return fa[r](e)},has(t,r){return r in t||r in fa}})):e.proxy}function rC(e,t=!0){return rt(e)?e.displayName||e.name:e.name||t&&e.__name}function iC(e){return rt(e)&&"__vccOpts"in e}const ke=(e,t)=>US(e,t,Ca);function Ya(e,t,r){try{nl(-1);const o=arguments.length;return o===2?wt(t)&&!Xe(t)?rl(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&rl(r)&&(r=[r]),Me(e,t,r))}finally{nl(1)}}const oC="3.5.29";/**
14
+ * @vue/runtime-dom v3.5.29
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let hh;const wv=typeof window<"u"&&window.trustedTypes;if(wv)try{hh=wv.createPolicy("vue",{createHTML:e=>e})}catch{}const vw=hh?e=>hh.createHTML(e):e=>e,sC="http://www.w3.org/2000/svg",lC="http://www.w3.org/1998/Math/MathML",wi=typeof document<"u"?document:null,xv=wi&&wi.createElement("template"),aC={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?wi.createElementNS(sC,e):t==="mathml"?wi.createElementNS(lC,e):r?wi.createElement(e,{is:r}):wi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wi.createTextNode(e),createComment:e=>wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{xv.innerHTML=vw(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=xv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ji="transition",Xl="animation",Ea=Symbol("_vtc"),yw={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cC=Zt({},Pb,yw),uC=e=>(e.displayName="Transition",e.props=cC,e),fC=uC((e,{slots:t})=>Ya(rT,dC(e),t)),Fo=(e,t=[])=>{Xe(e)?e.forEach(r=>r(...t)):e&&e(...t)},kv=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function dC(e){const t={};for(const O in e)O in yw||(t[O]=e[O]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,P=hC(s),A=P&&P[0],N=P&&P[1],{onBeforeEnter:E,onEnter:M,onEnterCancelled:D,onLeave:C,onLeaveCancelled:I,onBeforeAppear:q=E,onAppear:Y=M,onAppearCancelled:oe=D}=t,J=(O,$,_,k)=>{O._enterCancelled=k,Ho(O,$?g:d),Ho(O,$?p:f),_&&_()},G=(O,$)=>{O._isLeaving=!1,Ho(O,v),Ho(O,w),Ho(O,b),$&&$()},K=O=>($,_)=>{const k=O?Y:M,R=()=>J($,O,_);Fo(k,[$,R]),_v(()=>{Ho($,O?h:c),mi($,O?g:d),kv(k)||Sv($,o,A,R)})};return Zt(t,{onBeforeEnter(O){Fo(E,[O]),mi(O,c),mi(O,f)},onBeforeAppear(O){Fo(q,[O]),mi(O,h),mi(O,p)},onEnter:K(!1),onAppear:K(!0),onLeave(O,$){O._isLeaving=!0;const _=()=>G(O,$);mi(O,v),O._enterCancelled?(mi(O,b),Ev(O)):(Ev(O),mi(O,b)),_v(()=>{O._isLeaving&&(Ho(O,v),mi(O,w),kv(C)||Sv(O,o,N,_))}),Fo(C,[O,_])},onEnterCancelled(O){J(O,!1,void 0,!0),Fo(D,[O])},onAppearCancelled(O){J(O,!0,void 0,!0),Fo(oe,[O])},onLeaveCancelled(O){G(O),Fo(I,[O])}})}function hC(e){if(e==null)return null;if(wt(e))return[Md(e.enter),Md(e.leave)];{const t=Md(e);return[t,t]}}function Md(e){return tb(e)}function mi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ea]||(e[Ea]=new Set)).add(t)}function Ho(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Ea];r&&(r.delete(t),r.size||(e[Ea]=void 0))}function _v(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pC=0;function Sv(e,t,r,o){const s=e._endId=++pC,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=gC(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function gC(e,t){const r=window.getComputedStyle(e),o=P=>(r[P]||"").split(", "),s=o(`${Ji}Delay`),c=o(`${Ji}Duration`),f=Tv(s,c),d=o(`${Xl}Delay`),h=o(`${Xl}Duration`),p=Tv(d,h);let g=null,v=0,b=0;t===Ji?f>0&&(g=Ji,v=f,b=c.length):t===Xl?p>0&&(g=Xl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ji:Xl:null,b=g?g===Ji?c.length:h.length:0);const w=g===Ji&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ji}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function Tv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Cv(r)+Cv(e[o])))}function Cv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ev(e){return(e?e.ownerDocument:document).body.offsetHeight}function mC(e,t,r){const o=e[Ea];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Su=Symbol("_vod"),bw=Symbol("_vsh"),fo={name:"show",beforeMount(e,{value:t},{transition:r}){e[Su]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Yl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Yl(e,!0),o.enter(e)):o.leave(e,()=>{Yl(e,!1)}):Yl(e,t))},beforeUnmount(e,{value:t}){Yl(e,t)}};function Yl(e,t){e.style.display=t?e[Su]:"none",e[bw]=!t}const vC=Symbol(""),yC=/(?:^|;)\s*display\s*:/;function bC(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&nu(o,d,"")}else for(const f in t)r[f]==null&&nu(o,f,"");for(const f in r)f==="display"&&(c=!0),nu(o,f,r[f])}else if(s){if(t!==r){const f=o[vC];f&&(r+=";"+f),o.cssText=r,c=yC.test(r)}}else t&&e.removeAttribute("style");Su in e&&(e[Su]=c?o.display:"",e[bw]&&(o.display="none"))}const Av=/\s*!important$/;function nu(e,t,r){if(Xe(r))r.forEach(o=>nu(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=wC(e,t);Av.test(r)?e.setProperty(Ri(o),r.replace(Av,""),"important"):e[o]=r}}const Lv=["Webkit","Moz","ms"],Nd={};function wC(e,t){const r=Nd[t];if(r)return r;let o=ur(t);if(o!=="filter"&&o in e)return Nd[t]=o;o=Yu(o);for(let s=0;s<Lv.length;s++){const c=Lv[s]+o;if(c in e)return Nd[t]=c}return t}const Mv="http://www.w3.org/1999/xlink";function Nv(e,t,r,o,s,c=pS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Mv,t.slice(6,t.length)):e.setAttributeNS(Mv,t,r):r==null||c&&!nb(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Dr(r)?String(r):r)}function $v(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?vw(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=nb(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function uo(e,t,r,o){e.addEventListener(t,r,o)}function xC(e,t,r,o){e.removeEventListener(t,r,o)}const Ov=Symbol("_vei");function kC(e,t,r,o,s=null){const c=e[Ov]||(e[Ov]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=_C(t);if(o){const p=c[t]=CC(o,s);uo(e,d,p,h)}else f&&(xC(e,d,f,h),c[t]=void 0)}}const Pv=/(?:Once|Passive|Capture)$/;function _C(e){let t;if(Pv.test(e)){t={};let o;for(;o=e.match(Pv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ri(e.slice(2)),t]}let $d=0;const SC=Promise.resolve(),TC=()=>$d||(SC.then(()=>$d=0),$d=Date.now());function CC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Fr(EC(o,r.value),t,5,[o])};return r.value=e,r.attached=TC(),r}function EC(e,t){if(Xe(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Rv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,AC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?mC(e,o,f):t==="style"?bC(e,r,o):Gu(t)?ep(t)||kC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):LC(e,t,o,f))?($v(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?$v(e,ur(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Nv(e,t,o,f))};function LC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rv(t)&&rt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Rv(t)&&Ht(r)?!1:t in e}const il=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?r=>eu(t,r):t};function MC(e){e.target.composing=!0}function Iv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ai=Symbol("_assign");function Dv(e,t,r){return t&&(e=e.trim()),r&&(e=Zu(e)),e}const ww={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ai]=il(s);const c=o||s.props&&s.props.type==="number";uo(e,t?"change":"input",f=>{f.target.composing||e[Ai](Dv(e.value,r,c))}),(r||c)&&uo(e,"change",()=>{e.value=Dv(e.value,r,c)}),t||(uo(e,"compositionstart",MC),uo(e,"compositionend",Iv),uo(e,"change",Iv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ai]=il(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Zu(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},xw={deep:!0,created(e,t,r){e[Ai]=il(r),uo(e,"change",()=>{const o=e._modelValue,s=Aa(e),c=e.checked,f=e[Ai];if(Xe(o)){const d=np(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(hl(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(kw(e,c))})},mounted:zv,beforeUpdate(e,t,r){e[Ai]=il(r),zv(e,t,r)}};function zv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Xe(t))s=np(t,o.props.value)>-1;else if(hl(t))s=t.has(o.props.value);else{if(t===r)return;s=pl(t,kw(e,!0))}e.checked!==s&&(e.checked=s)}const Fv={deep:!0,created(e,{value:t,modifiers:{number:r}},o){const s=hl(t);uo(e,"change",()=>{const c=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>r?Zu(Aa(f)):Aa(f));e[Ai](e.multiple?s?new Set(c):c:c[0]),e._assigning=!0,Ct(()=>{e._assigning=!1})}),e[Ai]=il(o)},mounted(e,{value:t}){Hv(e,t)},beforeUpdate(e,t,r){e[Ai]=il(r)},updated(e,{value:t}){e._assigning||Hv(e,t)}};function Hv(e,t){const r=e.multiple,o=Xe(t);if(!(r&&!o&&!hl(t))){for(let s=0,c=e.options.length;s<c;s++){const f=e.options[s],d=Aa(f);if(r)if(o){const h=typeof d;h==="string"||h==="number"?f.selected=t.some(p=>String(p)===String(d)):f.selected=np(t,d)>-1}else f.selected=t.has(d);else if(pl(Aa(f),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Aa(e){return"_value"in e?e._value:e.value}function kw(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const NC=["ctrl","shift","alt","meta"],$C={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>NC.some(r=>e[`${r}Key`]&&!t.includes(r))},ru=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=$C[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},OC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ph=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ri(s.key);if(t.some(f=>f===c||OC[f]===c))return e(s)}))},PC=Zt({patchProp:AC},aC);let Bv;function RC(){return Bv||(Bv=zT(PC))}const _w=((...e)=>{const t=RC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=DC(o);if(!s)return;const c=t._component;!rt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,IC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function IC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DC(e){return Ht(e)?document.querySelector(e):e}const zi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},zC={};function FC(e,t){const r=es("RouterView");return te(),We(r)}const HC=zi(zC,[["render",FC]]),BC=["top","right","bottom","left"],jv=["start","end"],Wv=BC.reduce((e,t)=>e.concat(t,t+"-"+jv[0],t+"-"+jv[1]),[]),La=Math.min,qo=Math.max,jC={left:"right",right:"left",bottom:"top",top:"bottom"},WC={start:"end",end:"start"};function gh(e,t,r){return qo(e,La(t,r))}function ns(e,t){return typeof e=="function"?e(t):e}function ii(e){return e.split("-")[0]}function Ir(e){return e.split("-")[1]}function Sw(e){return e==="x"?"y":"x"}function yp(e){return e==="y"?"height":"width"}const qC=new Set(["top","bottom"]);function Ti(e){return qC.has(ii(e))?"y":"x"}function bp(e){return Sw(Ti(e))}function Tw(e,t,r){r===void 0&&(r=!1);const o=Ir(e),s=bp(e),c=yp(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Cu(f)),[f,Cu(f)]}function UC(e){const t=Cu(e);return[Tu(e),t,Tu(t)]}function Tu(e){return e.replace(/start|end/g,t=>WC[t])}const qv=["left","right"],Uv=["right","left"],VC=["top","bottom"],GC=["bottom","top"];function KC(e,t,r){switch(e){case"top":case"bottom":return r?t?Uv:qv:t?qv:Uv;case"left":case"right":return t?VC:GC;default:return[]}}function XC(e,t,r,o){const s=Ir(e);let c=KC(ii(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Tu)))),c}function Cu(e){return e.replace(/left|right|bottom|top/g,t=>jC[t])}function YC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cw(e){return typeof e!="number"?YC(e):{top:e,right:e,bottom:e,left:e}}function ha(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function Vv(e,t,r){let{reference:o,floating:s}=e;const c=Ti(t),f=bp(t),d=yp(f),h=ii(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Ir(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const ZC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Vv(p,o,h),b=o,w={},P=0;for(let A=0;A<d.length;A++){const{name:N,fn:E}=d[A],{x:M,y:D,data:C,reset:I}=await E({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});g=M??g,v=D??v,w={...w,[N]:{...w[N],...C}},I&&P<=50&&(P++,typeof I=="object"&&(I.placement&&(b=I.placement),I.rects&&(p=I.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:g,y:v}=Vv(p,b,h)),A=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:w}};async function df(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=ns(t,e),P=Cw(w),N=d[b?v==="floating"?"reference":"floating":v],E=ha(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(N)))==null||r?N:N.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),M=v==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),C=await(c.isElement==null?void 0:c.isElement(D))?await(c.getScale==null?void 0:c.getScale(D))||{x:1,y:1}:{x:1,y:1},I=ha(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:M,offsetParent:D,strategy:h}):M);return{top:(E.top-I.top+P.top)/C.y,bottom:(I.bottom-E.bottom+P.bottom)/C.y,left:(E.left-I.left+P.left)/C.x,right:(I.right-E.right+P.right)/C.x}}const JC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:g=0}=ns(e,t)||{};if(p==null)return{};const v=Cw(g),b={x:r,y:o},w=bp(s),P=yp(w),A=await f.getDimensions(p),N=w==="y",E=N?"top":"left",M=N?"bottom":"right",D=N?"clientHeight":"clientWidth",C=c.reference[P]+c.reference[w]-b[w]-c.floating[P],I=b[w]-c.reference[w],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let Y=q?q[D]:0;(!Y||!await(f.isElement==null?void 0:f.isElement(q)))&&(Y=d.floating[D]||c.floating[P]);const oe=C/2-I/2,J=Y/2-A[P]/2-1,G=La(v[E],J),K=La(v[M],J),O=G,$=Y-A[P]-K,_=Y/2-A[P]/2+oe,k=gh(O,_,$),R=!h.arrow&&Ir(s)!=null&&_!==k&&c.reference[P]/2-(_<O?G:K)-A[P]/2<0,B=R?_<O?_-O:_-$:0;return{[w]:b[w]+B,data:{[w]:k,centerOffset:_-k-B,...R&&{alignmentOffset:B}},reset:R}}});function QC(e,t,r){return(e?[...r.filter(s=>Ir(s)===e),...r.filter(s=>Ir(s)!==e)]:r.filter(s=>ii(s)===s)).filter(s=>e?Ir(s)===e||(t?Tu(s)!==s:!1):!0)}const eE=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:b=Wv,autoAlignment:w=!0,...P}=ns(e,t),A=v!==void 0||b===Wv?QC(v||null,w,b):b,N=await df(t,P),E=((r=f.autoPlacement)==null?void 0:r.index)||0,M=A[E];if(M==null)return{};const D=Tw(M,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==M)return{reset:{placement:A[0]}};const C=[N[ii(M)],N[D[0]],N[D[1]]],I=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:M,overflows:C}],q=A[E+1];if(q)return{data:{index:E+1,overflows:I},reset:{placement:q}};const Y=I.map(G=>{const K=Ir(G.placement);return[G.placement,K&&g?G.overflows.slice(0,2).reduce((O,$)=>O+$,0):G.overflows[0],G.overflows]}).sort((G,K)=>G[1]-K[1]),J=((s=Y.filter(G=>G[2].slice(0,Ir(G[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||Y[0][0];return J!==d?{data:{index:E+1,overflows:I},reset:{placement:J}}:{}}}},tE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:A=!0,...N}=ns(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const E=ii(s),M=Ti(d),D=ii(d)===d,C=await(h.isRTL==null?void 0:h.isRTL(p.floating)),I=b||(D||!A?[Cu(d)]:UC(d)),q=P!=="none";!b&&q&&I.push(...XC(d,A,P,C));const Y=[d,...I],oe=await df(t,N),J=[];let G=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&J.push(oe[E]),v){const _=Tw(s,f,C);J.push(oe[_[0]],oe[_[1]])}if(G=[...G,{placement:s,overflows:J}],!J.every(_=>_<=0)){var K,O;const _=(((K=c.flip)==null?void 0:K.index)||0)+1,k=Y[_];if(k&&(!(v==="alignment"?M!==Ti(k):!1)||G.every(ae=>Ti(ae.placement)===M?ae.overflows[0]>0:!0)))return{data:{index:_,overflows:G},reset:{placement:k}};let R=(O=G.filter(B=>B.overflows[0]<=0).sort((B,ae)=>B.overflows[1]-ae.overflows[1])[0])==null?void 0:O.placement;if(!R)switch(w){case"bestFit":{var $;const B=($=G.filter(ae=>{if(q){const ve=Ti(ae.placement);return ve===M||ve==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ve=>ve>0).reduce((ve,_e)=>ve+_e,0)]).sort((ae,ve)=>ae[1]-ve[1])[0])==null?void 0:$[0];B&&(R=B);break}case"initialPlacement":R=d;break}if(s!==R)return{reset:{placement:R}}}return{}}}},nE=new Set(["left","top"]);async function rE(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=ii(r),d=Ir(r),h=Ti(r)==="y",p=nE.has(f)?-1:1,g=c&&h?-1:1,v=ns(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:P}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof P=="number"&&(w=d==="end"?P*-1:P),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const iE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await rE(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},oE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:N=>{let{x:E,y:M}=N;return{x:E,y:M}}},...h}=ns(e,t),p={x:r,y:o},g=await df(t,h),v=Ti(ii(s)),b=Sw(v);let w=p[b],P=p[v];if(c){const N=b==="y"?"top":"left",E=b==="y"?"bottom":"right",M=w+g[N],D=w-g[E];w=gh(M,w,D)}if(f){const N=v==="y"?"top":"left",E=v==="y"?"bottom":"right",M=P+g[N],D=P-g[E];P=gh(M,P,D)}const A=d.fn({...t,[b]:w,[v]:P});return{...A,data:{x:A.x-r,y:A.y-o,enabled:{[b]:c,[v]:f}}}}}},sE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:c,platform:f,elements:d}=t,{apply:h=()=>{},...p}=ns(e,t),g=await df(t,p),v=ii(s),b=Ir(s),w=Ti(s)==="y",{width:P,height:A}=c.floating;let N,E;v==="top"||v==="bottom"?(N=v,E=b===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(E=v,N=b==="end"?"top":"bottom");const M=A-g.top-g.bottom,D=P-g.left-g.right,C=La(A-g[N],M),I=La(P-g[E],D),q=!t.middlewareData.shift;let Y=C,oe=I;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(oe=D),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(Y=M),q&&!b){const G=qo(g.left,0),K=qo(g.right,0),O=qo(g.top,0),$=qo(g.bottom,0);w?oe=P-2*(G!==0||K!==0?G+K:qo(g.left,g.right)):Y=A-2*(O!==0||$!==0?O+$:qo(g.top,g.bottom))}await h({...t,availableWidth:oe,availableHeight:Y});const J=await f.getDimensions(d.floating);return P!==J.width||A!==J.height?{reset:{rects:!0}}:{}}}};function vr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ti(e){return vr(e).getComputedStyle(e)}const Gv=Math.min,pa=Math.max,Eu=Math.round;function Ew(e){const t=ti(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Eu(r)!==s||Eu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function yo(e){return Lw(e)?(e.nodeName||"").toLowerCase():""}let Hc;function Aw(){if(Hc)return Hc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Hc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Hc):navigator.userAgent}function ni(e){return e instanceof vr(e).HTMLElement}function po(e){return e instanceof vr(e).Element}function Lw(e){return e instanceof vr(e).Node}function Kv(e){return typeof ShadowRoot>"u"?!1:e instanceof vr(e).ShadowRoot||e instanceof ShadowRoot}function hf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function lE(e){return["table","td","th"].includes(yo(e))}function mh(e){const t=/firefox/i.test(Aw()),r=ti(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function Mw(){return!/^((?!chrome|android).)*safari/i.test(Aw())}function wp(e){return["html","body","#document"].includes(yo(e))}function Nw(e){return po(e)?e:e.contextElement}const $w={x:1,y:1};function Vs(e){const t=Nw(e);if(!ni(t))return $w;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Ew(t);let f=(c?Eu(r.width):r.width)/o,d=(c?Eu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Ma(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Nw(e);let h=$w;t&&(o?po(o)&&(h=Vs(o)):h=Vs(e));const p=d?vr(d):window,g=!Mw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,P=f.height/h.y;if(d){const A=vr(d),N=o&&po(o)?vr(o):o;let E=A.frameElement;for(;E&&o&&N!==A;){const M=Vs(E),D=E.getBoundingClientRect(),C=getComputedStyle(E);D.x+=(E.clientLeft+parseFloat(C.paddingLeft))*M.x,D.y+=(E.clientTop+parseFloat(C.paddingTop))*M.y,v*=M.x,b*=M.y,w*=M.x,P*=M.y,v+=D.x,b+=D.y,E=vr(E).frameElement}}return{width:w,height:P,top:b,right:v+w,bottom:b+P,left:v,x:v,y:b}}function go(e){return((Lw(e)?e.ownerDocument:e.document)||window.document).documentElement}function pf(e){return po(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ow(e){return Ma(go(e)).left+pf(e).scrollLeft}function Na(e){if(yo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kv(e)&&e.host||go(e);return Kv(t)?t.host:t}function Pw(e){const t=Na(e);return wp(t)?t.ownerDocument.body:ni(t)&&hf(t)?t:Pw(t)}function Au(e,t){var r;t===void 0&&(t=[]);const o=Pw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=vr(o);return s?t.concat(c,c.visualViewport||[],hf(o)?o:[]):t.concat(o,Au(o))}function Xv(e,t,r){return t==="viewport"?ha((function(o,s){const c=vr(o),f=go(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=Mw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):po(t)?ha((function(o,s){const c=Ma(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=ni(o)?Vs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ha((function(o){const s=go(o),c=pf(o),f=o.ownerDocument.body,d=pa(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=pa(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Ow(o);const g=-c.scrollTop;return ti(f).direction==="rtl"&&(p+=pa(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(go(e)))}function Yv(e){return ni(e)&&ti(e).position!=="fixed"?e.offsetParent:null}function Zv(e){const t=vr(e);let r=Yv(e);for(;r&&lE(r)&&ti(r).position==="static";)r=Yv(r);return r&&(yo(r)==="html"||yo(r)==="body"&&ti(r).position==="static"&&!mh(r))?t:r||(function(o){let s=Na(o);for(;ni(s)&&!wp(s);){if(mh(s))return s;s=Na(s)}return null})(e)||t}function aE(e,t,r){const o=ni(t),s=go(t),c=Ma(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((yo(t)!=="body"||hf(s))&&(f=pf(t)),ni(t)){const h=Ma(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Ow(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const cE={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=Au(p).filter((N=>po(N)&&yo(N)!=="body")),w=null;const P=ti(p).position==="fixed";let A=P?Na(p):p;for(;po(A)&&!wp(A);){const N=ti(A),E=mh(A);(P?E||w:E||N.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=N:b=b.filter((M=>M!==A)),A=Na(A)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Xv(t,g,s);return p.top=pa(v.top,p.top),p.right=Gv(v.right,p.right),p.bottom=Gv(v.bottom,p.bottom),p.left=pa(v.left,p.left),p}),Xv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=ni(r),c=go(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((yo(r)!=="body"||hf(c))&&(f=pf(r)),ni(r))){const p=Ma(r);d=Vs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:po,getDimensions:function(e){return ni(e)?Ew(e):e.getBoundingClientRect()},getOffsetParent:Zv,getDocumentElement:go,getScale:Vs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Zv,c=this.getDimensions;return{reference:aE(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ti(e).direction==="rtl"},uE=(e,t,r)=>{const o=new Map,s={platform:cE,...r},c={...s.platform,_c:o};return ZC(e,t,{...s,platform:c})},mo={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function $a(e,t){let r=mo.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=mo.themes[r.$extend]||{}:(r=null,o=mo[t]):r=null;while(r);return o}function fE(e){const t=[e];let r=mo.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=mo.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Jv(e){const t=[e];let r=mo.themes[e]||{};do r.$extend?(t.push(r.$extend),r=mo.themes[r.$extend]||{}):r=null;while(r);return t}let Oa=!1;if(typeof window<"u"){Oa=!1;try{const e=Object.defineProperty({},"passive",{get(){Oa=!0}});window.addEventListener("test",null,e)}catch{}}let Rw=!1;typeof window<"u"&&typeof navigator<"u"&&(Rw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Iw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Qv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},e0={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function t0(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Od(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const rr=[];let Bo=null;const n0={};function r0(e){let t=n0[e];return t||(t=n0[e]=[]),t}let vh=function(){};typeof window<"u"&&(vh=window.Element);function ht(e){return function(t){return $a(t.theme,e)}}const Pd="__floating-vue__popper",Dw=()=>tt({name:"VPopper",provide(){return{[Pd]:{parentPopper:this}}},inject:{[Pd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>Iw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,vh,Boolean],default:ht("container")},boundary:{type:[String,vh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Pd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(iE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(eE({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(oE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(tE({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(JC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(sE({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await uE(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Bo&&this.instantMove&&Bo.instantMove&&Bo!==this.parentPopper){Bo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Bo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Od(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Au(this.$_referenceNode),...Au(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<rr.length;r++)t=rr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}rr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Jv(this.theme))r0(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Od(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,t0(rr,this),rr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Jv(this.theme)){const o=r0(r);t0(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Bo===this&&(Bo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Od(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Qv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Qv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,e0,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],e0,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Oa?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ga>=e.left&&ga<=e.right&&ma>=e.top&&ma<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ga-to,o=ma-no,s=t.left+t.width/2-to+(t.top+t.height/2)-no+t.width+t.height,c=to+r*s,f=no+o*s;return Bc(to,no,c,f,t.left,t.top,t.left,t.bottom)||Bc(to,no,c,f,t.left,t.top,t.right,t.top)||Bc(to,no,c,f,t.right,t.top,t.right,t.bottom)||Bc(to,no,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Rw){const e=Oa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>i0(t),e),document.addEventListener("touchend",t=>o0(t,!0),e)}else window.addEventListener("mousedown",e=>i0(e),!0),window.addEventListener("click",e=>o0(e,!1),!0);window.addEventListener("resize",pE)}function i0(e,t){for(let r=0;r<rr.length;r++){const o=rr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function o0(e,t){dE(e,t)}function dE(e,t){const r={};for(let o=rr.length-1;o>=0;o--){const s=rr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&s0(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&s0(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function s0(e,t,r){return r.closeAllPopover||r.closePopover&&t||hE(e,r)&&!t}function hE(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function pE(){for(let e=0;e<rr.length;e++)rr[e].$_computePosition()}function l0(){for(let e=0;e<rr.length;e++)rr[e].hide()}let to=0,no=0,ga=0,ma=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{to=ga,no=ma,ga=e.clientX,ma=e.clientY},Oa?{passive:!0}:void 0);function Bc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const gE={extends:Dw()},gf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function mE(e,t,r,o,s,c){return te(),ge("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Ft(e.$slots,"default",dS(hw(e.slotData)))],2)}const vE=gf(gE,[["render",mE]]);function yE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let iu;function yh(){yh.init||(yh.init=!0,iu=yE()!==-1)}var mf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){yh(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",iu&&this.$el.appendChild(e),e.data="about:blank",iu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!iu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const bE=Lb();Eb("data-v-b329ee4c");const wE={class:"resize-observer",tabindex:"-1"};Ab();const xE=bE((e,t,r,o,s,c)=>(te(),We("div",wE)));mf.render=xE;mf.__scopeId="data-v-b329ee4c";mf.__file="src/components/ResizeObserver.vue";const zw=(e="theme")=>({computed:{themeClass(){return fE(this[e])}}}),kE=tt({name:"VPopperContent",components:{ResizeObserver:mf},mixins:[zw()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),_E=["id","aria-hidden","tabindex","data-popper-placement"],SE={ref:"inner",class:"v-popper__inner"},TE=X("div",{class:"v-popper__arrow-outer"},null,-1),CE=X("div",{class:"v-popper__arrow-inner"},null,-1),EE=[TE,CE];function AE(e,t,r,o,s,c){const f=es("ResizeObserver");return te(),ge("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Ot(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ph(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:Ot(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",SE,[e.mounted?(te(),ge(nt,{key:0},[X("div",null,[Ft(e.$slots,"default")]),e.handleResize?(te(),We(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):ze("",!0)],64)):ze("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ot(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},EE,4)],4)],46,_E)}const Fw=gf(kE,[["render",AE]]),Hw={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let bh=function(){};typeof window<"u"&&(bh=window.Element);const LE=tt({name:"VPopperWrapper",components:{Popper:vE,PopperContent:Fw},mixins:[Hw,zw("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,bh,Boolean],default:void 0},boundary:{type:[String,bh],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function ME(e,t,r,o,s,c){const f=es("PopperContent"),d=es("Popper");return te(),We(d,ei({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:Be(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:P,handleResize:A,onResize:N,classes:E,result:M})=>[Ft(e.$slots,"default",{shown:p,show:w,hide:P}),Me(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":A,classes:E,result:M,onHide:P,onResize:N},{default:Be(()=>[Ft(e.$slots,"popper",{shown:p,hide:P})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const xp=gf(LE,[["render",ME]]);({...xp});({...xp});const NE={...xp,name:"VTooltip",vPopperTheme:"tooltip"},$E=tt({name:"VTooltipDirective",components:{Popper:Dw(),PopperContent:Fw},mixins:[Hw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>$a(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>$a(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),OE=["innerHTML"],PE=["textContent"];function RE(e,t,r,o,s,c){const f=es("PopperContent"),d=es("Popper");return te(),We(d,ei({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Be(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:P,onResize:A,classes:N,result:E})=>[Me(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":P,classes:N,result:E,onHide:w,onResize:A},{default:Be(()=>[e.html?(te(),ge("div",{key:0,innerHTML:e.finalContent},null,8,OE)):(te(),ge("div",{key:1,textContent:Ne(e.finalContent)},null,8,PE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const IE=gf($E,[["render",RE]]),Bw="v-popper--has-tooltip";function DE(e,t){let r=e.placement;if(!r&&t)for(const o of Iw)t[o]&&(r=o);return r||(r=$a(e.theme||"tooltip","placement")),r}function jw(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=DE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Rd,Pa,zE=0;function FE(){if(Rd)return;Pa=Ke([]),Rd=_w({name:"VTooltipDirectiveApp",setup(){return{directives:Pa}},render(){return this.directives.map(t=>Ya(IE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Rd.mount(e)}function Ww(e,t,r){FE();const o=Ke(jw(e,t,r)),s=Ke(!1),c={id:zE++,options:o,shown:s};return Pa.value.push(c),e.classList&&e.classList.add(Bw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function kp(e){if(e.$_popper){const t=Pa.value.indexOf(e.$_popper.item);t!==-1&&Pa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bw)}function a0(e,{value:t,modifiers:r}){const o=jw(e,t,r);if(!o.content||$a(o.theme||"tooltip","disabled"))kp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ww(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const HE={beforeMount:a0,updated:a0,beforeUnmount(e){kp(e)}},BE=HE,so=NE,qw={options:mo};function Uw(e,t){return rp()?(vS(e,t),!0):!1}const Id=new WeakMap,jE=(...e)=>{var t;const r=e[0],o=(t=oi())===null||t===void 0?void 0:t.proxy,s=o??rp();if(s==null&&!Mb())throw new Error("injectLocal must be called in setup");return s&&Id.has(s)&&r in Id.get(s)?Id.get(s)[r]:mn(...e)},WE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qE=Object.prototype.toString,UE=e=>qE.call(e)==="[object Object]",VE=()=>+Date.now(),Lu=()=>{};function rs(...e){if(e.length!==1)return WS(...e);const t=e[0];return typeof t=="function"?Qs(xb(()=>({get:t,set:Lu}))):Ke(t)}function _p(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Sp=e=>e();function Vw(e,t={}){let r,o,s=Lu;const c=h=>{clearTimeout(h),s(),s=Lu};let f;return h=>{const p=Yt(e),g=Yt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=void 0),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=void 0,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=void 0,v(h())},p)})}}function Gw(e=Sp,t={}){const{initialState:r="active"}=t,o=rs(r==="active");function s(){o.value=!1}function c(){o.value=!0}return{isActive:Qs(o),pause:s,resume:c,eventFilter:(...d)=>{o.value&&e(...d)}}}function c0(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function u0(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Dd(e){return Array.isArray(e)?e:[e]}function GE(e){return oi()}function jc(e,t=200,r={}){return _p(Vw(t,r),e)}function Kw(e,t,r={}){const{eventFilter:o=Sp,...s}=r;return yt(e,_p(o,t),s)}function Xw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=Gw(o,{initialState:s});return{stop:Kw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Tp(e,t=!0,r){GE()?Di(e,r):t?e():Ct(e)}function wh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:P,throwOnTimeout:A}={}){let N=null;const E=[new Promise(M=>{N=yt(e,D=>{v(D)!==t&&(N?N():Ct(()=>N?.()),M(D))},{flush:b,deep:w,immediate:!0})})];return P!=null&&E.push(c0(P,A).then(()=>Yt(e)).finally(()=>N?.())),Promise.race(E)}function o(v,b){if(!Mt(v))return r(D=>D===v,b);const{flush:w="sync",deep:P=!1,timeout:A,throwOnTimeout:N}=b??{};let E=null;const M=[new Promise(D=>{E=yt([e,v],([C,I])=>{t!==(C===I)&&(E?E():Ct(()=>E?.()),D(C))},{flush:w,deep:P,immediate:!0})})];return A!=null&&M.push(c0(A,N).then(()=>Yt(e)).finally(()=>(E?.(),Yt(e)))),Promise.race(M)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const P=Array.from(w);return P.includes(v)||P.includes(Yt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Yt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return wh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return wh(e,!t)}}}function f0(e){return wh(e)}function KE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=qt(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Yt(r);return c.value=c.value===h?Yt(o):h,c.value}}return s?f:[c,f]}function Yw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Kw(e,t,{...c,eventFilter:Vw(o,{maxWait:s})})}const Zw=Yw;function XE(e,t,r={}){const{eventFilter:o=Sp,...s}=r,c=_p(o,t);let f,d,h;if(s.flush==="sync"){let p=!1;d=()=>{},f=g=>{p=!0,g(),p=!1},h=yt(e,(...g)=>{p||c(...g)},s)}else{const p=[];let g=0,v=0;d=()=>{g=v},p.push(yt(e,()=>{v++},{...s,flush:"sync"})),f=b=>{const w=v;b(),g+=v-w},p.push(yt(e,(...b)=>{const w=g>0&&g===v;g=0,v=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function YE(e,t,r){return yt(e,t,{...r,immediate:!0})}function ZE(e,t,r){return yt(e,t,{...r,once:!0})}function JE(e,t,r){var o;let s;Mt(r)?s={evaluating:r}:s=r||{};const{lazy:c=!1,flush:f="sync",evaluating:d=void 0,shallow:h=!0,onError:p=(o=globalThis.reportError)!==null&&o!==void 0?o:Lu}=s,g=qt(!c),v=h?qt(t):Ke(t);let b=0;return Nb(async w=>{if(!g.value)return;b++;const P=b;let A=!1;d&&Promise.resolve().then(()=>{d.value=!0});try{const N=await e(E=>{w(()=>{d&&(d.value=!1),A||E()})});P===b&&(v.value=N)}catch(N){p(N)}finally{d&&P===b&&(d.value=!1),A=!0}},{flush:f}),c?ke(()=>(g.value=!0,v.value)):v}const QE=JE,or=WE?window:void 0;function Mu(e){var t;const r=Yt(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function bo(...e){const t=(o,s,c,f)=>(o.addEventListener(s,c,f),()=>o.removeEventListener(s,c,f)),r=ke(()=>{const o=Dd(Yt(e[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0});return YE(()=>{var o,s;return[(o=(s=r.value)===null||s===void 0?void 0:s.map(c=>Mu(c)))!==null&&o!==void 0?o:[or].filter(c=>c!=null),Dd(Yt(r.value?e[1]:e[0])),Dd(W(r.value?e[2]:e[1])),Yt(r.value?e[3]:e[2])]},([o,s,c,f],d,h)=>{if(!o?.length||!s?.length||!c?.length)return;const p=UE(f)?{...f}:f,g=o.flatMap(v=>s.flatMap(b=>c.map(w=>t(v,b,w,p))));h(()=>{g.forEach(v=>v())})},{flush:"post"})}function eA(){const e=qt(!1),t=oi();return t&&Di(()=>{e.value=!0},t),e}function Jw(e){const t=eA();return ke(()=>(t.value,!!e()))}function tA(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Qw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tA(t);return bo(s,c,g=>{g.repeat&&Yt(d)||h(g)&&r(g)},f)}function nA(e,t={}){const{immediate:r=!0,fpsLimit:o=null,window:s=or,once:c=!1}=t,f=qt(!1),d=ke(()=>{const w=Yt(o);return w?1e3/w:null});let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const P=w-h;if(d.value&&P<d.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:P,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),Uw(b),{isActive:Qs(f),pause:b,resume:v}}const rA=Symbol("vueuse-ssr-width");function iA(){const e=Mb()?jE(rA,null):null;return typeof e=="number"?e:void 0}function ex(e,t={}){const{window:r=or,ssrWidth:o=iA()}=t,s=Jw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=qt(typeof o=="number"),f=qt(),d=qt(!1),h=p=>{d.value=p.matches};return Nb(()=>{if(c.value){c.value=!s.value,d.value=Yt(e).split(",").some(p=>{const g=p.includes("not all"),v=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),b=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(v||b);return v&&w&&(w=o>=u0(v[1])),b&&w&&(w=o<=u0(b[1])),g?!w:w});return}s.value&&(f.value=r.matchMedia(Yt(e)),d.value=f.value.matches)}),bo(f,"change",h,{passive:!0}),ke(()=>d.value)}function tx(e){return JSON.parse(JSON.stringify(e))}const Wc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qc="__vueuse_ssr_handlers__",oA=sA();function sA(){return qc in Wc||(Wc[qc]=Wc[qc]||{}),Wc[qc]}function nx(e,t){return oA[e]||t}function lA(e){return ex("(prefers-color-scheme: dark)",e)}function aA(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const cA={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},d0="vueuse-storage";function rx(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=or,eventFilter:b,onError:w=_=>{console.error(_)},initOnMounted:P}=o,A=(g?qt:Ke)(typeof t=="function"?t():t),N=ke(()=>Yt(e));if(!r)try{r=nx("getDefaultStorage",()=>or?.localStorage)()}catch(_){w(_)}if(!r)return A;const E=Yt(t),M=aA(E),D=(s=o.serializer)!==null&&s!==void 0?s:cA[M],{pause:C,resume:I}=Xw(A,_=>G(_),{flush:c,deep:f,eventFilter:b});yt(N,()=>O(),{flush:c});let q=!1;const Y=_=>{P&&!q||O(_)},oe=_=>{P&&!q||$(_)};v&&d&&(r instanceof Storage?bo(v,"storage",Y,{passive:!0}):bo(v,d0,oe)),P?Tp(()=>{q=!0,O()}):O();function J(_,k){if(v){const R={key:N.value,oldValue:_,newValue:k,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",R):new CustomEvent(d0,{detail:R}))}}function G(_){try{const k=r.getItem(N.value);if(_==null)J(k,null),r.removeItem(N.value);else{const R=D.write(_);k!==R&&(r.setItem(N.value,R),J(k,R))}}catch(k){w(k)}}function K(_){const k=_?_.newValue:r.getItem(N.value);if(k==null)return h&&E!=null&&r.setItem(N.value,D.write(E)),E;if(!_&&p){const R=D.read(k);return typeof p=="function"?p(R,E):M==="object"&&!Array.isArray(R)?{...E,...R}:R}else return typeof k!="string"?k:D.read(k)}function O(_){if(!(_&&_.storageArea!==r)){if(_&&_.key==null){A.value=E;return}if(!(_&&_.key!==N.value)){C();try{const k=D.write(A.value);(_===void 0||_?.newValue!==k)&&(A.value=K(_))}catch(k){w(k)}finally{_?Ct(I):I()}}}}function $(_){O(_.detail)}return A}const uA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lA({window:s}),w=ke(()=>b.value?"dark":"light"),P=h||(f==null?rs(o):rx(f,o,c,{window:s,listenToStorageChanges:d})),A=ke(()=>P.value==="auto"?w.value:P.value),N=nx("updateHTMLAttrs",(C,I,q)=>{const Y=typeof C=="string"?s?.document.querySelector(C):Mu(C);if(!Y)return;const oe=new Set,J=new Set;let G=null;if(I==="class"){const O=q.split(/\s/g);Object.values(v).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{O.includes($)?oe.add($):J.add($)})}else G={key:I,value:q};if(oe.size===0&&J.size===0&&G===null)return;let K;g&&(K=s.document.createElement("style"),K.appendChild(document.createTextNode(uA)),s.document.head.appendChild(K));for(const O of oe)Y.classList.add(O);for(const O of J)Y.classList.remove(O);G&&Y.setAttribute(G.key,G.value),g&&(s.getComputedStyle(K).opacity,document.head.removeChild(K))});function E(C){var I;N(t,r,(I=v[C])!==null&&I!==void 0?I:C)}function M(C){e.onChanged?e.onChanged(C,E):E(C)}yt(A,M,{flush:"post",immediate:!0}),Tp(()=>M(A.value));const D=ke({get(){return p?P.value:A.value},set(C){P.value=C}});return Object.assign(D,{store:P,system:w,state:A})}function dA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fA({...e,onChanged:(c,f)=>{var d;e.onChanged?(d=e.onChanged)===null||d===void 0||d.call(e,c==="dark",f,c):f(c)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(c){const f=c?"dark":"light";s.value===f?o.value="auto":o.value=f}})}function ix(e){return e}function hA(e,t){return e.value=t}function pA(e){return e?typeof e=="function"?e:tx:ix}function gA(e){return e?typeof e=="function"?e:tx:ix}function mA(e,t={}){const{clone:r=!1,dump:o=pA(r),parse:s=gA(r),setSource:c=hA}=t;function f(){return nf({snapshot:o(e.value),timestamp:VE()})}const d=Ke(f()),h=Ke([]),p=Ke([]),g=N=>{c(e,s(N.snapshot)),d.value=N},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const N=h.value.shift();N&&(p.value.unshift(d.value),g(N))},P=()=>{const N=p.value.shift();N&&(h.value.unshift(d.value),g(N))},A=()=>{g(d.value)};return{source:e,undoStack:h,redoStack:p,last:d,history:ke(()=>[d.value,...h.value]),canUndo:ke(()=>h.value.length>0),canRedo:ke(()=>p.value.length>0),clear:b,commit:v,reset:A,undo:w,redo:P}}function vA(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s,shouldCommit:c=()=>!0}=t,{eventFilter:f,pause:d,resume:h,isActive:p}=Gw(s);let g=e.value;const{ignoreUpdates:v,ignorePrevAsyncUpdates:b,stop:w}=XE(e,M,{deep:r,flush:o,eventFilter:f});function P(q,Y){b(),v(()=>{q.value=Y,g=Y})}const A=mA(e,{...t,clone:t.clone||r,setSource:P}),{clear:N,commit:E}=A;function M(){b(),c(g,e.value)&&(g=e.value,E())}function D(q){h(),q&&M()}function C(q){let Y=!1;const oe=()=>Y=!0;v(()=>{q(oe)}),Y||M()}function I(){w(),N()}return{...A,isTracking:p,pause:d,resume:D,commit:M,batch:C,dispose:I}}function yA(e,t,r={}){const{window:o=or,...s}=r;let c;const f=Jw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=yt(ke(()=>{const g=Yt(e);return Array.isArray(g)?g.map(v=>Mu(v)):[Mu(g)]}),g=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const v of g)v&&c.observe(v,s)}},{immediate:!0,flush:"post"}),p=()=>{d(),h()};return Uw(p),{isSupported:f,stop:p}}function Za(e,t,r={}){const{window:o=or}=r;return rx(e,t,o?.localStorage,r)}function bA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=or,stringify:h=C=>C.toString()}=t;if(!d)return sr(r);const p=sr({});function g(){if(e==="history")return d.location.search||"";if(e==="hash"){const C=d.location.hash||"",I=C.indexOf("?");return I>0?C.slice(I):""}else return(d.location.hash||"").replace(/^#/,"")}function v(C){const I=h(C);if(e==="history")return`${I?`?${I}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${I?`#${I}`:""}`;const q=d.location.hash||"#",Y=q.indexOf("?");return Y>0?`${d.location.search||""}${q.slice(0,Y)}${I?`?${I}`:""}`:`${d.location.search||""}${q}${I?`?${I}`:""}`}function b(){return new URLSearchParams(g())}function w(C){const I=new Set(Object.keys(p));for(const q of C.keys()){const Y=C.getAll(q);p[q]=Y.length>1?Y:C.get(q)||"",I.delete(q)}Array.from(I).forEach(q=>delete p[q])}const{pause:P,resume:A}=Xw(p,()=>{const C=new URLSearchParams("");Object.keys(p).forEach(I=>{const q=p[I];Array.isArray(q)?q.forEach(Y=>C.append(I,Y)):o&&q==null||s&&!q?C.delete(I):C.set(I,q)}),N(C,!1)},{deep:!0});function N(C,I,q=!0){P(),I&&w(C),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(C)):q&&d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(C)),Ct(()=>A())}function E(){c&&N(b(),!0,!1)}const M={passive:!0};bo(d,"popstate",E,M),e!=="history"&&bo(d,"hashchange",E,M);const D=b();return D.keys().next().value?w(D):Object.assign(p,r),p}function ox(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=qt(r),h=qt(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Tp(p);const g={passive:!0};return bo("resize",p,g),t&&f==="visual"&&t.visualViewport&&bo(t.visualViewport,"resize",p,g),s&&yt(ex("(orientation: portrait)"),()=>p()),{width:d,height:h}}const h0={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=Wb(),c=Ke([]),f=ke(()=>c.value.reduce((F,Z)=>(F[~~Z.id]=Z)&&F,{})),d=ke(()=>c.value.length),h=Ke(null),p=Ke(!1),g=Ke({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ke({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",N,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",E))},P=()=>{document.removeEventListener("mousemove",N,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",N,{passive:!1}),document.removeEventListener("touchend",E))},A=(F,Z)=>{const re=F.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ce}=re.getBoundingClientRect(),{clientX:z,clientY:j}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?j-ce:z-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Z},N=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{Y(I(F)),He("resize",{event:F},!0)}))},E=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,P()},100)},M=(F,Z)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,D(F,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||He("splitter-click",{event:F,index:Z},!0)},D=(F,Z)=>{if(He("splitter-dblclick",{event:F,index:Z},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ce)=>(le.size=ce===Z?le.max:le.min,ce!==Z&&(re+=le.min),le)),c.value[Z].size-=re,He("pane-maximize",{event:F,index:Z,pane:c.value[Z]}),He("resized",{event:F,index:Z},!0)}},C=(F,Z)=>{He("pane-click",{event:F,index:f.value[Z].index,pane:f.value[Z]})},I=F=>{const Z=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Z.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Z.top}},q=F=>{F=F[o.horizontal?"y":"x"];const Z=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Z-F),F*100/Z},Y=F=>{const Z=g.value.activeSplitter;let re={prevPanesSize:J(Z),nextPanesSize:G(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ce=100-(o.pushOtherPanes?0:re.nextPanesSize),z=Math.max(Math.min(q(F),ce),le);let j=[Z,Z+1],ee=c.value[j[0]]||null,de=c.value[j[1]]||null;const he=ee.max<100&&z>=ee.max+re.prevPanesSize,me=de.max<100&&z<=100-(de.max+G(Z+1));if(he||me){he?(ee.size=ee.max,de.size=Math.max(100-ee.max-re.prevPanesSize-re.nextPanesSize,0)):(ee.size=Math.max(100-de.max-re.prevPanesSize-G(Z+1),0),de.size=de.max);return}if(o.pushOtherPanes){const Ce=oe(re,z);if(!Ce)return;({sums:re,panesToResize:j}=Ce),ee=c.value[j[0]]||null,de=c.value[j[1]]||null}ee!==null&&(ee.size=Math.min(Math.max(z-re.prevPanesSize-re.prevReachedMinPanes,ee.min),ee.max)),de!==null&&(de.size=Math.min(Math.max(100-z-re.nextPanesSize-re.nextReachedMinPanes,de.min),de.max))},oe=(F,Z)=>{const re=g.value.activeSplitter,le=[re,re+1];return Z<F.prevPanesSize+c.value[le[0]].min&&(le[0]=K(re).index,F.prevReachedMinPanes=0,le[0]<re&&c.value.forEach((ce,z)=>{z>le[0]&&z<=re&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),F.prevPanesSize=J(le[0]),le[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ce,z)=>{z>0&&z<=re&&(ce.size=ce.min,F.prevReachedMinPanes+=ce.min)}),c.value[le[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Z>100-F.nextPanesSize-c.value[le[1]].min&&(le[1]=O(re).index,F.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ce,z)=>{z>re&&z<le[1]&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),F.nextPanesSize=G(le[1]-1),le[1]===void 0)?(F.nextReachedMinPanes=0,c.value.forEach((ce,z)=>{z<d.value-1&&z>=re+1&&(ce.size=ce.min,F.nextReachedMinPanes+=ce.min)}),c.value[le[0]].size=100-F.prevPanesSize-G(le[0]-1),null):{sums:F,panesToResize:le}},J=F=>c.value.reduce((Z,re,le)=>Z+(le<F?re.size:0),0),G=F=>c.value.reduce((Z,re,le)=>Z+(le>F+1?re.size:0),0),K=F=>[...c.value].reverse().find(Z=>Z.index<F&&Z.size>Z.min)||{},O=F=>c.value.find(Z=>Z.index>F+1&&Z.size>Z.min)||{},$=()=>{var F;const Z=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const re of Z){const le=re.classList.contains("splitpanes__pane"),ce=re.classList.contains("splitpanes__splitter");!le&&!ce&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},_=(F,Z,re=!1)=>{const le=F-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),re||(ce.onmousedown=z=>A(z,le),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=z=>A(z,le)),ce.onclick=z=>M(z,le+1)),ce.ondblclick=z=>D(z,le+1),Z.parentNode.insertBefore(ce,Z)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},R=()=>{var F;const Z=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const le of Z)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Z)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?_(re,le,!0):re&&_(re,le),re++)},B=({uid:F,...Z})=>{const re=f.value[F];for(const[le,ce]of Object.entries(Z))re[le]=ce},ae=F=>{var Z;let re=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(F.el))),c.value.splice(re,0,{...F,index:re}),c.value.forEach((le,ce)=>le.index=ce),p.value&&Ct(()=>{R(),_e({addedPane:c.value[re]}),He("pane-add",{pane:c.value[re]})})},ve=F=>{const Z=c.value.findIndex(le=>le.id===F);c.value[Z].el=null;const re=c.value.splice(Z,1)[0];c.value.forEach((le,ce)=>le.index=ce),Ct(()=>{R(),He("pane-remove",{pane:re}),_e({removedPane:{...re}})})},_e=(F={})=>{!F.addedPane&&!F.removedPane?Ee():c.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ge(F):je(),p.value&&He("resized")},je=()=>{const F=100/d.value;let Z=0;const re=[],le=[];for(const ce of c.value)ce.size=Math.max(Math.min(F,ce.max),ce.min),Z-=ce.size,ce.size>=ce.max&&re.push(ce.id),ce.size<=ce.min&&le.push(ce.id);Z>.1&&Ue(Z,re,le)},Ee=()=>{let F=100;const Z=[],re=[];let le=0;for(const z of c.value)F-=z.size,z.givenSize!==null&&le++,z.size>=z.max&&Z.push(z.id),z.size<=z.min&&re.push(z.id);let ce=100;if(F>.1){for(const z of c.value)z.givenSize===null&&(z.size=Math.max(Math.min(F/(d.value-le),z.max),z.min)),ce-=z.size;ce>.1&&Ue(ce,Z,re)}},Ge=({addedPane:F,removedPane:Z}={})=>{let re=100/d.value,le=0;const ce=[],z=[];(F?.givenSize??null)!==null&&(re=(100-F.givenSize)/(d.value-1));for(const j of c.value)le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&z.push(j.id);if(!(Math.abs(le)<.1)){for(const j of c.value)F?.givenSize!==null&&F?.id===j.id||(j.size=Math.max(Math.min(re,j.max),j.min)),le-=j.size,j.size>=j.max&&ce.push(j.id),j.size<=j.min&&z.push(j.id);le>.1&&Ue(le,ce,z)}},Ue=(F,Z,re)=>{let le;F>0?le=F/(d.value-Z.length):le=F/(d.value-re.length),c.value.forEach((ce,z)=>{if(F>0&&!Z.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;F-=ee,ce.size=j}else if(!re.includes(ce.id)){const j=Math.max(Math.min(ce.size+le,ce.max),ce.min),ee=j-ce.size;F-=ee,ce.size=j}}),Math.abs(F)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(F,Z=void 0,re=!1)=>{const le=Z?.index??g.value.activeSplitter??null;r(F,{...Z,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};yt(()=>o.firstSplitter,()=>R()),Di(()=>{$(),R(),_e(),He("ready"),p.value=!0}),Ga(()=>p.value=!1);const Pe=()=>{var F;return Ya("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return mr("panes",c),mr("indexedPanes",f),mr("horizontal",ke(()=>o.horizontal)),mr("requestUpdate",B),mr("onPaneAdd",ae),mr("onPaneRemove",ve),mr("onPaneClick",C),(F,Z)=>(te(),We(wu(Pe)))}},Uc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=mn("requestUpdate"),s=mn("onPaneAdd"),c=mn("horizontal"),f=mn("onPaneRemove"),d=mn("onPaneClick"),h=(t=oi())==null?void 0:t.uid,p=mn("indexedPanes"),g=ke(()=>p.value[h]),v=Ke(null),b=ke(()=>{const N=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(N,P.value),w.value)}),w=ke(()=>{const N=parseFloat(r.minSize);return isNaN(N)?0:N}),P=ke(()=>{const N=parseFloat(r.maxSize);return isNaN(N)?100:N}),A=ke(()=>{var N;return`${c.value?"height":"width"}: ${(N=g.value)==null?void 0:N.size}%`});return yt(()=>b.value,N=>o({uid:h,size:N})),yt(()=>w.value,N=>o({uid:h,min:N})),yt(()=>P.value,N=>o({uid:h,max:N})),Di(()=>{s({id:h,el:v.value,min:w.value,max:P.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),Ga(()=>f(h)),(N,E)=>(te(),ge("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:E[0]||(E[0]=M=>W(d)(M,N._.uid)),style:Ot(A.value)},[Ft(N.$slots,"default")],4))}},nr=Ke([414,896]);function sx(e){return e!=null}function Cp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const wA=/^[A-Za-z]:\//;function xA(e=""){return e&&e.replace(/\\/g,"/").replace(wA,t=>t.toUpperCase())}const kA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function _A(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const lx=function(...e){e=e.map(o=>xA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:_A();!s||s.length===0||(t=`${s}/${t}`,r=p0(s))}return t=SA(t,!r),r&&!p0(t)?`/${t}`:t.length>0?t:"."};function SA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const p0=function(e){return kA.test(e)};var TA=44,g0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",CA=new Uint8Array(64),ax=new Uint8Array(128);for(let e=0;e<g0.length;e++){const t=g0.charCodeAt(e);CA[e]=t,ax[t]=e}function Zl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=ax[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function m0(e,t){return e.pos>=t?!1:e.peek()!==TA}var EA=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function AA(e){const{length:t}=e,r=new EA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let w;s=Zl(r,s),s<b&&(v=!1),b=s,m0(r,p)?(c=Zl(r,c),f=Zl(r,f),d=Zl(r,d),m0(r,p)?(h=Zl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],g.push(w),r.pos++}v||LA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function LA(e){e.sort(MA)}function MA(e,t){return e[0]-t[0]}var vf=0,NA=1,$A=2,OA=3,PA=4,Nu=!1;function RA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][vf]-t;if(c===0)return Nu=!0,s;c<0?r=s+1:o=s-1}return Nu=!1,r-1}function IA(e,t,r){for(let o=r+1;o<e.length&&e[o][vf]===t;r=o++);return r}function DA(e,t,r){for(let o=r-1;o>=0&&e[o][vf]===t;r=o--);return r}function zA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Nu=f!==-1&&e[f][vf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=RA(e,t,d,h)}var FA="`line` must be greater than 0 (lines start at line 1)",HA="`column` must be greater than or equal to 0 (columns start at column 0)",v0=-1,BA=1;function jA(e){var t;return(t=e)._decoded||(t._decoded=AA(e._encoded))}function WA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(FA);if(o<0)throw new Error(HA);const c=jA(e);if(r>=c.length)return Vc(null,null,null,null);const f=c[r],d=qA(f,e._decodedMemo,r,o,s||BA);if(d===-1)return Vc(null,null,null,null);const h=f[d];if(h.length===1)return Vc(null,null,null,null);const{names:p,resolvedSources:g}=e;return Vc(g[h[NA]],h[$A]+1,h[OA],h.length===5?p[h[PA]]:null)}function Vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function qA(e,t,r,o,s){let c=zA(e,o,t,r);return Nu?c=(s===v0?IA:DA)(e,o,c):s===v0&&c++,c===-1||c===e.length?-1:c}const cx=/^\s*at .*(?:\S:\d+|\(native\))/m,UA=/^(?:eval@)?(?:\[native code\])?$/,VA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],GA=Date.now().toString().length,KA=new RegExp(`vitest=\\d{${GA}}`);function ux(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return o.includes("vitest=")&&(o=o.replace(KA,"").replace(/[?&]$/,"")),[o,r[2]||void 0,r[3]||void 0]}function XA(e){let t=e.trim();if(UA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=ux(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function YA(e){let t=e.trim();if(!cx.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=ux(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:lx(h),d&&(d=d.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function ZA(e,t={}){const{ignoreStackEntries:r=VA}=t;let o=cx.test(e)?QA(e):JA(e);const s=o.findLastIndex(c=>c.method==="__VITEST_HELPER__"||c.method==="async*__VITEST_HELPER__");return s>=0&&(o=o.slice(s+1)),o.map(c=>{t.getUrlId&&(c.file=t.getUrlId(c.file));const f=t.getSourceMap?.(c.file);if(!f||typeof f!="object"||!f.version)return y0(r,c.file)?null:c;const d=new eL(f,c.file),h=nL(d,c);if(!h)return c;const{line:p,column:g,source:v,name:b}=h;let w=v||c.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),y0(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||c.method}:c}).filter(c=>c!=null)}function y0(e,t){return e.some(r=>t.match(r))}function JA(e){return e.split(`
18
+ `).map(t=>XA(t)).filter(sx)}function QA(e){return e.split(`
19
+ `).map(t=>YA(t)).filter(sx)}class eL{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=tL(),this.url=r,this.resolvedSources=(c||[]).map(f=>lx(r,"..",f||""))}}function tL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function nL(e,t){const r=WA(e,t);return r.column==null?null:r}const rL=/^[A-Za-z]:\//;function Ep(e=""){return e&&e.replace(/\\/g,"/").replace(rL,t=>t.toUpperCase())}const iL=/^[/\\]{2}/,oL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,sL=/^[A-Za-z]:$/,b0=/^\/([A-Za-z]:)?$/,lL=function(e){if(e.length===0)return".";e=Ep(e);const t=e.match(iL),r=$u(e),o=e[e.length-1]==="/";return e=fx(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),sL.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!$u(e)?`/${e}`:e)},aL=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return lL(t)};function cL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const w0=function(...e){e=e.map(o=>Ep(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:cL();!s||s.length===0||(t=`${s}/${t}`,r=$u(s))}return t=fx(t,!r),r&&!$u(t)?`/${t}`:t.length>0?t:"."};function fx(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const $u=function(e){return oL.test(e)},yf=function(e,t){const r=w0(e).replace(b0,"$1").split("/"),o=w0(t).replace(b0,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")},uL=function(e,t){const r=Ep(e).split("/");let o="";for(let s=r.length-1;s>=0;s--){const c=r[s];if(c){o=c;break}}return t&&o.endsWith(t)?o.slice(0,-t.length):o};function fL(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function dx(e,t,r,o,s){const c=yf(t,e),f={id:dL(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function dL(e,t){return fL(`${e}${t||""}`)}function x0(e,t,r="tag"){throw e.length?new Error(`The ${r} "${t}" is not defined in the configuration. Available tags are:
20
+ ${e.map(o=>`- ${o.name}${o.description?`: ${o.description}`:""}`).join(`
21
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${r} for this test. See: https://vitest.dev/guide/test-tags`)}function hL(e,t){const r=e.map(o=>pL(o,t));return o=>r.every(s=>s(o))}function pL(e,t){const r=gL(e),o=new mL(r,e),s=px(o,t);if(o.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${xh(o.peek())}" in "${e}"`);return c=>Rs(s,c)}function xh(e){switch(e.type){case"TAG":return e.value;default:return hx(e.type)}}function gL(e){const t=[];let r=0;for(;r<e.length;){if(e[r]===" "||e[r]===" "){r++;continue}if(e[r]==="("){t.push({type:"LPAREN"}),r++;continue}if(e[r]===")"){t.push({type:"RPAREN"}),r++;continue}if(e[r]==="!"){t.push({type:"NOT"}),r++;continue}if(e.slice(r,r+2)==="&&"){t.push({type:"AND"}),r+=2;continue}if(e.slice(r,r+2)==="||"){t.push({type:"OR"}),r+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"AND"}),r+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"OR"}),r+=2;continue}if(/^not\s/i.test(e.slice(r))){t.push({type:"NOT"}),r+=3;continue}let o="";for(;r<e.length&&e[r]!==" "&&e[r]!==" "&&e[r]!=="("&&e[r]!==")"&&e[r]!=="!"&&e[r]!=="&"&&e[r]!=="|";){const s=e.slice(r);if(o===""&&(/^and(?:\s|\)|$)/i.test(s)||/^or(?:\s|\)|$)/i.test(s)||/^not\s/i.test(s)))break;o+=e[r],r++}o&&t.push({type:"TAG",value:o})}return t.push({type:"EOF"}),t}class mL{pos=0;constructor(t,r){this.tokens=t,this.expr=r}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const r=this.next();if(r.type!==t)throw t==="RPAREN"&&r.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${hx(t)}" but got "${xh(r)}" in "${this.expr}"`);return r}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${xh(t)}" in "${this.expr}"`)}}function hx(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function px(e,t){let r=k0(e,t);for(;e.peek().type==="OR";){e.next();const o=k0(e,t);r={type:"or",left:r,right:o}}return r}function k0(e,t){let r=kh(e,t);for(;e.peek().type==="AND";){e.next();const o=kh(e,t);r={type:"and",left:r,right:o}}return r}function kh(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:kh(e,t)}):vL(e,t)}function vL(e,t){const r=e.peek();if(r.type==="LPAREN"){e.next();const o=px(e,t);return e.expect("RPAREN"),o}if(r.type==="TAG"){e.next();const o=r.value,s=bL(o,t);return{type:"tag",value:o,pattern:s}}e.unexpectedToken()}function yL(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function bL(e,t){if(e.includes("*")){const r=yL(e);if(!t.some(s=>r.test(s.name)))throw x0(t,e,"tag pattern");return r}if(!t.length||!t.some(r=>r.name===e))throw x0(t,e,"tag pattern");return null}function Rs(e,t){switch(e.type){case"tag":return e.pattern?t.some(r=>e.pattern.test(r)):t.includes(e.value);case"not":return!Rs(e.operand,t);case"and":return Rs(e.left,t)&&Rs(e.right,t);case"or":return Rs(e.left,t)||Rs(e.right,t)}}function ol(e){return e.type==="test"}function gx(e){const t=[],r=Cp(e);for(const o of r)if(ol(o))t.push(o);else for(const s of o.tasks)if(ol(s))t.push(s);else{const c=gx(s);for(const f of c)t.push(f)}return t}function Ap(e=[]){return Cp(e).flatMap(t=>ol(t)?[t]:[t,...Ap(t.tasks)])}function wL(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const _0="q",S0="s";function xL(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const kL=Math.random.bind(Math),_L="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function SL(e=21){let t="",r=e;for(;r--;)t+=_L[kL()*64|0];return t}const TL=6e4,mx=e=>e,CL=mx,{clearTimeout:T0,setTimeout:EL}=globalThis;function AL(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=mx,deserialize:d=CL,resolver:h,bind:p="rpc",timeout:g=TL,proxify:v=!0}=t;let b=!1;const w=new Map;let P,A;async function N(I,q,Y,oe){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:_0};oe&&(J.o=!0);const G=async B=>r(f(B));if(Y){await G(J);return}if(P)try{await P}finally{P=void 0}let{promise:K,resolve:O,reject:$}=xL();const _=SL();J.i=_;let k;async function R(B=J){return g>=0&&(k=EL(()=>{try{if(t.onTimeoutError?.call(A,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){$(ae)}w.delete(_)},g),typeof k=="object"&&(k=k.unref?.())),w.set(_,{resolve:O,reject:$,timeoutId:k,method:I}),await G(B),K}try{t.onRequest?await t.onRequest.call(A,J,R,O):await R()}catch(B){if(t.onGeneralError?.call(A,B)!==!0)throw B;return}finally{T0(k),w.delete(_)}return K}const E={$call:(I,...q)=>N(I,q,!1),$callOptional:(I,...q)=>N(I,q,!1,!0),$callEvent:(I,...q)=>N(I,q,!0),$callRaw:I=>N(I.method,I.args,I.event,I.optional),$rejectPendingCalls:D,get $closed(){return b},get $meta(){return t.meta},$close:M,$functions:e};v?A=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(E,q))return E[q];if(q==="then"&&!c.includes("then")&&!("then"in e))return;const Y=(...J)=>N(q,J,!0);if(c.includes(q))return Y.asEvent=Y,Y;const oe=(...J)=>N(q,J,!1);return oe.asEvent=Y,oe}}):A=E;function M(I){b=!0,w.forEach(({reject:q,method:Y})=>{const oe=new Error(`[birpc] rpc is closed, cannot call "${Y}"`);if(I)return I.cause??=oe,q(I);q(oe)}),w.clear(),s(C)}function D(I){const q=Array.from(w.values()).map(({method:Y,reject:oe})=>I?I({method:Y,reject:oe}):oe(new Error(`[birpc]: rejected pending call "${Y}".`)));return w.clear(),q}async function C(I,...q){let Y;try{Y=d(I)}catch(oe){if(t.onGeneralError?.call(A,oe)!==!0)throw oe;return}if(Y.t===_0){const{m:oe,a:J,o:G}=Y;let K,O,$=await(h?h.call(A,oe,e[oe]):e[oe]);if(G&&($||=()=>{}),!$)O=new Error(`[birpc] function "${oe}" not found`);else try{K=await $.apply(p==="rpc"?A:e,J)}catch(_){O=_}if(Y.i){if(O&&t.onFunctionError&&t.onFunctionError.call(A,O,oe,J)===!0)return;if(!O)try{await r(f({t:S0,i:Y.i,r:K}),...q);return}catch(_){if(O=_,t.onGeneralError?.call(A,_,oe,J)!==!0)throw _}try{await r(f({t:S0,i:Y.i,e:O}),...q)}catch(_){if(t.onGeneralError?.call(A,_,oe,J)!==!0)throw _}}}else{const{i:oe,r:J,e:G}=Y,K=w.get(oe);K&&(T0(K.timeoutId),G?K.reject(G):K.resolve(J)),w.delete(oe)}}return P=o(C),A}const{parse:vx,stringify:LL}=JSON,{keys:ML}=Object,Ra=String,yx="string",C0={},Ou="object",bx=(e,t)=>t,NL=e=>e instanceof Ra?Ra(e):e,$L=(e,t)=>typeof t===yx?new Ra(t):t,OL=(e,t,r,o)=>s=>{for(let c=ML(s),{length:f}=c,d=0;d<f;d++){const h=c[d],p=s[h];if(p instanceof Ra){const g=e[p];typeof g===Ou&&!r.has(g)?(r.add(g),s[h]=C0,t.push({o:s,k:h,r:g})):s[h]=o.call(s,h,g)}else s[h]!==C0&&(s[h]=o.call(s,h,p))}return s},E0=(e,t,r)=>{const o=Ra(t.push(r)-1);return e.set(r,o),o},_h=(e,t)=>{const r=vx(e,$L).map(NL),o=t||bx;let s=r[0];if(typeof s===Ou&&s){const c=[],f=OL(r,c,new Set,o);s=f(s);let d=0;for(;d<c.length;){const{o:h,k:p,r:g}=c[d++];h[p]=o.call(h,p,f(g))}}return o.call({"":s},"",s)},wx=(e,t,r)=>{const o=t&&typeof t===Ou?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||bx,s=new Map,c=[],f=[];let d=+E0(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=LL(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case Ou:if(b===null)return b;case yx:return s.get(b)||E0(s,c,b)}return b}},PL=e=>vx(wx(e));class xx{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=dx(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function RL(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=M=>M,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new xx,waitForConnection:E,reconnect:A},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(M,D){r.onTestAnnotate?.(M,D)},onTestArtifactRecord(M,D){r.onTestArtifactRecord?.(M,D)},onSpecsCollected(M,D){M?.forEach(([C,I])=>{g.state.clearFiles({config:C},[I])}),r.onSpecsCollected?.(M,D)},onPathsCollected(M){g.state.collectPaths(M),r.onPathsCollected?.(M)},onCollected(M){g.state.collectFiles(M),r.onCollected?.(M)},onTaskUpdate(M,D){g.state.updateTasks(M),r.onTaskUpdate?.(M,D)},onUserConsoleLog(M){g.state.updateUserLog(M),r.onUserConsoleLog?.(M)},onFinished(M,D,C,I){r.onFinished?.(M,D,C,I)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:M=>g.ws.send(M),on:M=>v=M,serialize:M=>wx(M,(D,C)=>C instanceof Error?{name:C.name,message:C.message,stack:C.stack}:C),deserialize:_h,timeout:-1};g.rpc=AL(b,w);let P;function A(M=!1){M&&(p=c),g.ws=new h(e),N()}function N(){P=new Promise((M,D)=>{const C=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&M(),g.ws.addEventListener("open",()=>{p=c,M(),clearTimeout(C)})}),g.ws.addEventListener("message",M=>{v(M.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(A,s)})}N();function E(){return P}return g}const wo=dA(),IL=KE(wo);function Ja(e){return Object.hasOwn(e,"tasks")}function DL(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Vo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zd(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function zL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function kx(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,splitted:[...r],candidate:"",finished:!1,id:e}}function FL(e){return kx(e).raw}function ou(e){if(e>=500)return"danger";if(e>=100)return"warning"}function Pu(e){const t=ou(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function su(e,t=!1){if(!e)return"";const r=e.split("").reduce((c,f,d)=>c+f.charCodeAt(0)+d,0),o=wo.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],s=wo.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?s:o)[r%o.length]}function _x(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const Sh=qt([]),Jn=qt([]),Hr=Za("vitest-ui_task-tree-opened",[],{shallow:!0}),gl="__vitest_ui_all_projects__",Ru=ke(()=>new Set(Hr.value)),zt=Za("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:gl,projectSort:void 0}),Nr=Ke(zt.value.projectSort||"default"),Gs=qt(zt.value?.project||gl),Th=ke(()=>Fp.value.length>1),HL=ke(()=>Gs.value===gl),Lp=ke(()=>!Th.value||Gs.value===gl?void 0:Gs.value),Or=Ke(zt.value.search),A0=new Map,ro=ke(()=>{if(Or.value.startsWith("tag:")){if(!pt.value.tags)return{matcher:()=>!0};const e=Or.value.slice(4).trim();let t=A0.get(e);return t||(t=BL(e),A0.set(e,t)),{matcher:r=>t.matcher(r.tags||[]),error:t.error}}return{matcher:e=>Or.value===""||DL(e.name,Or.value)}});function BL(e){if(!e)return{matcher:()=>!0};try{return{matcher:hL([e],pt.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const jL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Sx(e){return e.replace(/[&<>"']/g,t=>jL[t])}const WL=ke(()=>{const e=Or.value.toLowerCase();return e.length?new RegExp(`(${Sx(e)})`,"gi"):null}),Tx=ke(()=>Or.value.trim()!==""),Je=sr({failed:zt.value.failed,success:zt.value.success,skipped:zt.value.skipped,slow:zt.value.slow,onlyTests:zt.value.onlyTests}),Ch=ke(()=>!!(Je.failed||Je.success||Je.skipped||Je.slow)),bf=qt([]),sl=Ke(!1),L0=ke(()=>{const e=zt.value.expandAll;return Hr.value.length>0?e!==!0:e!==!1}),qL=ke(()=>{const e=Tx.value,t=Ch.value,r=Lp.value,o=Je.onlyTests,s=Le.summary.filesFailed,c=Le.summary.filesSuccess,f=Le.summary.filesSkipped,d=Le.summary.filesRunning,h=bf.value;return Le.collectTestsTotal(e||t||!!r,o,h,{failed:s,success:c,skipped:f,running:d})});function UL(e){return e.type==="test"}function VL(e){return e.mode==="run"&&e.type==="test"}function Fn(e){return e.type==="file"}function Oi(e){return e.type==="file"||e.type==="suite"}function Eh(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const r=pt.value.slowTestThreshold;return typeof r=="number"&&t>r}function GL(e,t=Le.root.tasks){const r=[...t];return r.sort((o,s)=>{if(e==="duration-desc"||e==="duration-asc"){const c=o.duration??0,f=s.duration??0;if(c!==f)return e==="duration-desc"?f-c:c-f}else if(e==="asc"||e==="desc"){const c=o.projectName||"",f=s.projectName||"";if(c!==f)return e==="asc"?c.localeCompare(f):f.localeCompare(c)}return`${o.filepath}:${o.projectName}`.localeCompare(`${s.filepath}:${s.projectName}`)}),r}function Ia(e,t=!1){let r=Le.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.slow=!1,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Ru.value.size>0&&Ru.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Le.colors.get(e.projectName||"")||su(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Le.nodes.set(e.id,r),Le.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Qa(e.id,e.tasks[o],!0)}function Cx(e,t){const r=Le.nodes.get(e);if(!r||!Oi(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Ja(o)))return Qa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function KL(e){const t=Le.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!ol(r)||Qa(t.parentId,r,!1)}function Qa(e,t,r){const o=Le.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Le.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.slow=Eh(t),s.state=t.result?.state):(ol(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,slow:Eh(t),state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Ru.value.size>0&&Ru.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,slow:!1,state:t.result?.state},Le.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ja(t)))for(let f=0;f<t.tasks.length;f++)Qa(s.id,t.tasks[f],r)}function XL(e){const t=Le.nodes.get(e);if(!t||!Oi(t))return;const r=new Set(Hr.value);r.delete(t.id);const o=[...ZL(t)];Hr.value=Array.from(r),Jn.value=o}function YL(){Ah(Le.root.tasks);const e=[...Jn.value.filter(Fn)];Ah(e),Hr.value=[],zt.value.expandAll=!0,Jn.value=e}function Ah(e){for(const t of e)Oi(t)&&(t.expanded=!1,Ah(t.tasks))}function*Ex(e,t){if(t&&(yield e.id),Oi(e))for(let r=0;r<e.tasks.length;r++)yield*Ex(e.tasks[r],!0)}function*ZL(e){const t=e.id,r=new Set(Ex(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const wf=Ke("idle"),zs=ke(()=>wf.value==="idle"),lo=Ke([]),JL=ke(()=>(pt.value.tags||[]).reduce((t,r)=>(t[r.name]=r,t),{}));function QL(e,t,r){return e?Mx(e,t,r):!1}function Mp(e,t){const r=[...Ax(e,t)];Jn.value=r,bf.value=r.filter(Fn).map(o=>br(o.id))}function*Ax(e,t){const r=Lp.value,o=GL(Nr.value);for(const s of o)r&&s.projectName!==r||(yield*Lx(s,e,t))}function*Lx(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of Lh(e,o,w=>M0(w,t,r)))c.push([v,b]);else{for(const[v,b]of Lh(e,o,w=>M0(w,t,r)))Oi(b)?(s.set(b.id,v),Fn(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!Fn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...tM(c,r.onlyTests,o,d,f)].reverse(),p=Le.nodes;for(const v of o){const b=p.get(v);b&&"expanded"in b&&(b.expanded=!0)}const g=new Set(h.filter(v=>Fn(v)||Oi(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Fn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function eM(e,t,r,o,s){if(o){if(Fn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&Fn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&Fn(c)&&s.add(c.id),t}}function*tM(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Oi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Le.nodes.get(d.parentId);for(;p;)r.add(p.id),Fn(p)&&o.add(p.id),p=Le.nodes.get(p.parentId);yield d;continue}if(h){const p=eM(f,d,r,t,o);p&&(yield p)}else if(f){const p=Le.nodes.get(d.parentId);p&&Fn(p)&&o.add(p.id),yield d}}}function nM(e,t){if(t.slow&&e.type==="test"){const r=pt.value.slowTestThreshold;if(typeof r=="number"&&typeof e.result?.duration=="number"&&e.result.duration>r)return!0}return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Mx(e,t,r){if(t(e))if(r.success||r.failed||r.skipped||r.slow){if(nM(e,r))return!0}else return!0;return!1}function*Lh(e,t,r){const o=r(e);if(o)if(UL(e)){let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}else if(Fn(e))t.add(e.id);else{t.add(e.id);let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}if(yield[o,e],Oi(e))for(let s=0;s<e.tasks.length;s++)yield*Lh(e.tasks[s],t,r)}function M0(e,t,r){const o=ft.state.idMap.get(e.id);return o?Mx(o,t,r):!1}function rM(e,t,r){const o=Cx(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Qa(s.id,p,!1);s.expanded=!0;const f=new Set(Hr.value);f.add(s.id);const d=new Set(Lx(s,t,r)),h=[...sM(s,d)];Hr.value=Array.from(f),Jn.value=h}function iM(e,t){Np(Le.root.tasks,!1);const r=[...Ax(e,t)];zt.value.expandAll=!1,Hr.value=[],Jn.value=r,bf.value=r.filter(Fn).map(o=>br(o.id))}function oM(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&Np(Jn.value.filter(Fn),!0)}function Np(e,t){for(const r of e)Oi(r)&&(r.expanded=!0,Np(r.tasks,!1));t&&(zt.value.expandAll=!1,Hr.value=[])}function*sM(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function $p(e){return gx(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function lM(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Ia(s,t)),Sh.value=[...Le.root.tasks],Mp(r,{failed:o.failed,success:o.success,skipped:o.skipped,slow:o.slow,onlyTests:o.onlyTests})}function aM(e){queueMicrotask(()=>{const t=Le.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function cM(e,t){const r=Le.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function N0(e,t,r,o,s,c){e&&gM(r);const f=!e;queueMicrotask(()=>{t?dM(f):hM(f)}),queueMicrotask(()=>{mM(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Sh.value&&$p(Sh.value.map(d=>br(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{pM(o,s,t)})}function*uM(){yield*Jn.value.filter(VL)}function fM(){const e=ft.state.idMap;let t;for(const r of uM())t=e.get(r.parentId),t&&Ja(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function dM(e){const t=ft.state.getFiles(),r=Le.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Ia(o[c],e),Iu(o[c].tasks);const s=Le.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=br(f.id);!d||(Ia(d,e),!d.tasks?.length)||Iu(d.tasks)}}function hM(e){const t=new Map(Le.pendingTasks.entries());Le.pendingTasks.clear();const r=Le.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>br(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Ia(s,!1),Iu(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Le.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=br(h.id);if(!p)continue;const g=t.get(p.id);g&&(Ia(p,e),Iu(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function pM(e,t,r=!1){const o=zt.value.expandAll,s=o!==!0,c=new Set(Hr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{$0(e,t,r)}),sl.value||queueMicrotask(()=>{(Jn.value.length||r)&&(sl.value=!0)}),f&&(queueMicrotask(()=>{oM(c,r),s&&(zt.value.expandAll=!1)}),queueMicrotask(()=>{$0(e,t,r)}))}function $0(e,t,r){Mp(e,t),r&&(fM(),wf.value="idle")}function Iu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ja(t)?Cx(t.id,!0):KL(t.id)}function gM(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function mM(e,t){const r=ft.state.idMap,o=new Map(Le.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,br(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w,expectedFail:P,slow:A}=Nx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsExpectedFail+=P,c.testsSlow+=A,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsTodo=c.testsTodo,e.testsExpectedFail=c.testsExpectedFail,e.testsSlow=c.testsSlow,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Nx(e,t=()=>!0,r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const s of $x(e))(!r||QL(s,t,r))&&(o.total++,Eh(s)&&o.slow++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?s.fails?o.expectedFail++:o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored-o.expectedFail,o}function vM(e,t,r,o,s,c){if(t)return r.map(f=>Nx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*$x(e){const t=Cp(e);let r;for(let o=0;o<t.length;o++)r=t[o],ol(r)?yield r:yield*$x(r.tasks)}class yM{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=sr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=nA(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),lM(t,!0,ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){cM(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){aM(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{N0(t,r,this.summary,ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):N0(t,r,this.summary,ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return vM(t,r,o,s,ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests})}collapseNode(t){queueMicrotask(()=>{XL(t)})}expandNode(t){queueMicrotask(()=>{rM(t,ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{YL()})}expandAllNodes(){queueMicrotask(()=>{iM(ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests})})}filterNodes(){queueMicrotask(()=>{Mp(ro.value.matcher,{failed:Je.failed,success:Je.success,skipped:Je.skipped,slow:Je.slow,onlyTests:Je.onlyTests})})}}const Le=new yM;function Op(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu={exports:{}},bM=lu.exports,O0;function So(){return O0||(O0=1,(function(e,t){(function(r,o){e.exports=o()})(bM,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],P=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),E=/PhantomJS/.test(r),M=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),D=/Android/.test(r),C=M||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),I=M||/Mac/.test(o),q=/\bCrOS\b/.test(r),Y=/win/i.test(o),oe=P&&r.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(P=!1,g=!0);var J=I&&(v||P&&(oe==null||oe<12.11)),G=s||h&&p>=9;function K(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var O=function(n,i){var a=n.className,l=K(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function _(n,i){return $(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)u.appendChild(i[m]);return u}function R(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var B;document.createRange?B=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:B=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ae(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ve(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function _e(n,i){var a=n.className;K(i).test(a)||(n.className+=(a?" ":"")+i)}function je(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!K(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ee=function(n){n.select()};M?Ee=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ee=function(n){try{n.select()}catch{}});function Ge(n){return n.display.wrapper.ownerDocument}function Ue(n){return He(n.display.wrapper)}function He(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Pe(n){return Ge(n).defaultView}function F(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Z(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function re(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var x=n.indexOf(" ",m);if(x<0||x>=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ce(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,j={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function me(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ae(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function Q(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function ue(){}function ie(n,i){var a;return Object.create?a=Object.create(n):(ue.prototype=n,a=new ue),i&&Z(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&et(n)?!0:i.test(n):et(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Jt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function Ut(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function jn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",m),u=!0)}u||l(i,a,"ltr")}var Wr=null;function Bt(n,i,a){var l;Wr=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Wr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Wr=u)}return l??Wr}var Wn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var se=T.length,ne=[],pe=0;pe<se;++pe)ne.push(a(T.charCodeAt(pe)));for(var we=0,Te=V;we<se;++we){var $e=ne[we];$e=="m"?ne[we]=Te:Te=$e}for(var De=0,Oe=V;De<se;++De){var Fe=ne[De];Fe=="1"&&Oe=="r"?ne[De]="n":m.test(Fe)&&(Oe=Fe,Fe=="r"&&(ne[De]="R"))}for(var Ze=1,Ve=ne[0];Ze<se-1;++Ze){var lt=ne[Ze];lt=="+"&&Ve=="1"&&ne[Ze+1]=="1"?ne[Ze]="1":lt==","&&Ve==ne[Ze+1]&&(Ve=="1"||Ve=="n")&&(ne[Ze]=Ve),Ve=lt}for(var Tt=0;Tt<se;++Tt){var rn=ne[Tt];if(rn==",")ne[Tt]="N";else if(rn=="%"){var $t=void 0;for($t=Tt+1;$t<se&&ne[$t]=="%";++$t);for(var Vn=Tt&&ne[Tt-1]=="!"||$t<se&&ne[$t]=="1"?"1":"N",Ln=Tt;Ln<$t;++Ln)ne[Ln]=Vn;Tt=$t-1}}for(var Vt=0,Mn=V;Vt<se;++Vt){var ln=ne[Vt];Mn=="L"&&ln=="1"?ne[Vt]="L":m.test(ln)&&(Mn=ln)}for(var Xt=0;Xt<se;++Xt)if(u.test(ne[Xt])){var Gt=void 0;for(Gt=Xt+1;Gt<se&&u.test(ne[Gt]);++Gt);for(var Dt=(Xt?ne[Xt-1]:V)=="L",Nn=(Gt<se?ne[Gt]:V)=="L",Ls=Dt==Nn?Dt?"L":"R":V,Zi=Xt;Zi<Gt;++Zi)ne[Zi]=Ls;Xt=Gt-1}for(var hn=[],Kr,on=0;on<se;)if(y.test(ne[on])){var wd=on;for(++on;on<se&&y.test(ne[on]);++on);hn.push(new S(0,wd,on))}else{var pi=on,Ro=hn.length,Io=H=="rtl"?1:0;for(++on;on<se&&ne[on]!="L";++on);for(var wn=pi;wn<on;)if(x.test(ne[wn])){pi<wn&&(hn.splice(Ro,0,new S(1,pi,wn)),Ro+=Io);var Ms=wn;for(++wn;wn<on&&x.test(ne[wn]);++wn);hn.splice(Ro,0,new S(2,Ms,wn)),Ro+=Io,pi=wn}else++wn;pi<on&&hn.splice(Ro,0,new S(1,pi,on))}return H=="ltr"&&(hn[0].level==1&&(Kr=T.match(/^\s+/))&&(hn[0].from=Kr[0].length,hn.unshift(new S(0,0,Kr[0].length))),xe(hn).level==1&&(Kr=T.match(/\s+$/))&&(xe(hn).to-=Kr[0].length,hn.push(new S(0,se-Kr[0].length,se)))),H=="rtl"?hn.reverse():hn}})();function at(n,i){var a=n.order;return a==null&&(a=n.order=Wn(n.text,i)),a}var To=[],Ye=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||To).concat(a)}};function li(n,i){return n._handlers&&n._handlers[i]||To}function un(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var m=ce(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pt(n,i){var a=li(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Pt(n,a||i.type,n,i),Tn(i)||i.codemirrorIgnore}function dr(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)ce(a,i[l])==-1&&a.push(i[l])}function qn(n,i){return li(n,i).length>0}function wr(n){n.prototype.on=function(i,a){Ye(this,i,a)},n.prototype.off=function(i,a){un(this,i,a)}}function fn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function is(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Tn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Fi(n){fn(n),is(n)}function ml(n){return n.target||n.srcElement}function xr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),I&&n.ctrlKey&&i==1&&(i=3),i}var Ef=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),os;function oc(n){if(os==null){var i=k("span","​");_(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(os=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=os?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var vl;function Hi(n){if(vl!=null)return vl;var i=_(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:vl=l.right-a.right<3}var hr=`
22
+
23
+ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
24
+ `,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Bi=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},sc=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),kr=null;function Af(n){if(kr!=null)return kr;var i=_(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return kr=Math.abs(a.left-l.left)>1}var ss={},_r={};function Sr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),ss[n]=i}function Co(n,i){_r[n]=i}function ls(n){if(typeof n=="string"&&_r.hasOwnProperty(n))n=_r[n];else if(n&&typeof n.name=="string"&&_r.hasOwnProperty(n.name)){var i=_r[n.name];typeof i=="string"&&(i={name:i}),n=ie(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return ls("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return ls("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function as(n,i){i=ls(i);var a=ss[i.name];if(!a)return as(n,"text/plain");var l=a(n,i);if(ji.hasOwnProperty(i.name)){var u=ji[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var ji={};function cs(n,i){var a=ji.hasOwnProperty(n)?ji[n]:ji[n]={};Z(i,a)}function qr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function yl(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function us(n,i,a){return n.startState?n.startState(i,a):!0}var It=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},It.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},It.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},It.prototype.backUp=function(n){this.pos-=n},It.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},It.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},It.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},It.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function qe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],m=u.chunkSize();if(i<m){a=u;break}i-=m}return a.lines[i]}function ai(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(m){var y=m.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function bl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function er(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function L(n){if(n.parent==null)return null;for(var i=n.parent,a=ce(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function U(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],m=u.height;if(i<m){n=u;continue e}i-=m,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],S=x.height;if(i<S)break;i-=S}return a+y}function ye(n,i){return i>=n.first&&i<n.first+n.size}function Se(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function fe(n,i,a){if(a===void 0&&(a=null),!(this instanceof fe))return new fe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function gt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Qt(n){return fe(n.line,n.ch)}function Cn(n,i){return Ie(n,i)<0?i:n}function fs(n,i){return Ie(n,i)<0?n:i}function rg(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function it(n,i){if(i.line<n.first)return fe(n.first,0);var a=n.first+n.size-1;return i.line>a?fe(a,qe(n,a).text.length):ok(i,qe(n,i.line).text.length)}function ok(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function ig(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=it(n,i[l]);return a}var lc=function(n,i){this.state=n,this.lookAhead=i},Ur=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Ur.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Ur.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Ur.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ur.fromSaved=function(n,i,a){return i instanceof lc?new Ur(n,qr(n.mode,i.state),a,i.lookAhead):new Ur(n,qr(n.mode,i),a)},Ur.prototype.save=function(n){var i=n!==!1?qr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lc(i,this.maxLookAhead):i};function og(n,i,a,l){var u=[n.state.modeGen],m={};fg(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},m,l);for(var y=a.state,x=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,se=0;a.state=!0,fg(n,i.text,H.mode,a,function(ne,pe){for(var we=V;se<ne;){var Te=u[V];Te>ne&&u.splice(V,1,ne,u[V+1],Te),V+=2,se=Math.min(ne,Te)}if(pe)if(H.opaque)u.splice(we,V-we,ne,"overlay "+pe),V=we+2;else for(;we<V;we+=2){var $e=u[we+1];u[we+1]=($e?$e+" ":"")+"overlay "+pe}},m),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function sg(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=wl(n,L(i)),u=i.text.length>n.options.maxHighlightLength&&qr(n.doc.mode,l.state),m=og(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function wl(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Ur(l,!0,i);var m=sk(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,x=y?Ur.fromSaved(l,y,m):new Ur(l,us(l.mode),m);return l.iter(m,i,function(S){Lf(n,S.text,x);var T=x.line;S.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&T<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Lf(n,i,a,l){var u=n.doc.mode,m=new It(i,n.options.tabSize,a);for(m.start=m.pos=l||0,i==""&&lg(u,a.state);!m.eol();)Mf(u,m,a.state),m.start=m.pos}function lg(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=yl(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Mf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=yl(n,a).mode);var m=n.token(i,a);if(i.pos>i.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var ag=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function cg(n,i,a,l){var u=n.doc,m=u.mode,y;i=it(u,i);var x=qe(u,i.line),S=wl(n,i.line,a),T=new It(x.text,n.options.tabSize,S),H;for(l&&(H=[]);(l||T.pos<i.ch)&&!T.eol();)T.start=T.pos,y=Mf(m,T,S.state),l&&H.push(new ag(T,y,qr(u.mode,S.state)));return l?H:new ag(T,y,S.state)}function ug(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function fg(n,i,a,l,u,m,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,T=null,H=new It(i,n.options.tabSize,l),V,se=n.options.addModeClass&&[null];for(i==""&&ug(lg(a,l.state),m);!H.eol();){if(H.pos>n.options.maxHighlightLength?(x=!1,y&&Lf(n,i,l,H.pos),H.pos=i.length,V=null):V=ug(Mf(a,H,l.state,se),m),se){var ne=se[0].name;ne&&(V="m-"+(V?ne+" "+V:ne))}if(!x||T!=V){for(;S<H.start;)S=Math.min(H.start,S+5e3),u(S,T);T=V}H.start=H.pos}for(;S<H.pos;){var pe=Math.min(H.pos,S+5e3);u(pe,T),S=pe}}function sk(n,i,a){for(var l,u,m=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=m.first)return m.first;var S=qe(m,x-1),T=S.stateAfter;if(T&&(!a||x+(T instanceof lc?T.lookAhead:0)<=m.modeFrontier))return x;var H=re(S.text,null,n.options.tabSize);(u==null||l>H)&&(u=x-1,l=H)}return u}function lk(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=qe(n,l).stateAfter;if(u&&(!(u instanceof lc)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var dg=!1,ci=!1;function ak(){dg=!0}function ck(){ci=!0}function ac(n,i,a){this.marker=n,this.from=i,this.to=a}function xl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function uk(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function fk(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function dk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);if(x||m.from==i&&y.type=="bookmark"&&(!a||!m.marker.insertLeft)){var S=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new ac(y,m.from,S?null:m.to))}}return l}function hk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);if(x||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new ac(y,S?null:m.from-i,m.to==null?null:m.to-i))}}return l}function Nf(n,i){if(i.full)return null;var a=ye(n,i.from.line)&&qe(n,i.from.line).markedSpans,l=ye(n,i.to.line)&&qe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,m=i.to.ch,y=Ie(i.from,i.to)==0,x=dk(a,u,y),S=hk(l,m,y),T=i.text.length==1,H=xe(i.text).length+(T?u:0);if(x)for(var V=0;V<x.length;++V){var se=x[V];if(se.to==null){var ne=xl(S,se.marker);ne?T&&(se.to=ne.to==null?null:ne.to+H):se.to=u}}if(S)for(var pe=0;pe<S.length;++pe){var we=S[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=xl(x,we.marker);Te||(we.from=H,T&&(x||(x=[])).push(we))}else we.from+=H,T&&(x||(x=[])).push(we)}x&&(x=hg(x)),S&&S!=x&&(S=hg(S));var $e=[x];if(!T){var De=i.text.length-2,Oe;if(De>0&&x)for(var Fe=0;Fe<x.length;++Fe)x[Fe].to==null&&(Oe||(Oe=[])).push(new ac(x[Fe].marker,null,null));for(var Ze=0;Ze<De;++Ze)$e.push(Oe);$e.push(S)}return $e}function hg(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function pk(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(ne){if(ne.markedSpans)for(var pe=0;pe<ne.markedSpans.length;++pe){var we=ne.markedSpans[pe].marker;we.readOnly&&(!l||ce(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],m=0;m<l.length;++m)for(var y=l[m],x=y.find(0),S=0;S<u.length;++S){var T=u[S];if(!(Ie(T.to,x.from)<0||Ie(T.from,x.to)>0)){var H=[S,1],V=Ie(T.from,x.from),se=Ie(T.to,x.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:x.from}),(se>0||!y.inclusiveRight&&!se)&&H.push({from:x.to,to:T.to}),u.splice.apply(u,H),S+=H.length-3}}return u}function pg(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function gg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function cc(n){return n.inclusiveLeft?-1:0}function uc(n){return n.inclusiveRight?1:0}function $f(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),m=Ie(l.from,u.from)||cc(n)-cc(i);if(m)return-m;var y=Ie(l.to,u.to)||uc(n)-uc(i);return y||i.id-n.id}function mg(n,i){var a=ci&&n.markedSpans,l;if(a)for(var u=void 0,m=0;m<a.length;++m)u=a[m],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||$f(l,u.marker)<0)&&(l=u.marker);return l}function vg(n){return mg(n,!0)}function fc(n){return mg(n,!1)}function gk(n,i){var a=ci&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var m=a[u];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||$f(l,m.marker)<0)&&(l=m.marker)}return l}function yg(n,i,a,l,u){var m=qe(n,i),y=ci&&m.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var T=S.marker.find(0),H=Ie(T.from,a)||cc(S.marker)-cc(u),V=Ie(T.to,l)||uc(S.marker)-uc(u);if(!(H>=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Tr(n){for(var i;i=vg(n);)n=i.find(-1,!0).line;return n}function mk(n){for(var i;i=fc(n);)n=i.find(1,!0).line;return n}function vk(n){for(var i,a;i=fc(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Of(n,i){var a=qe(n,i),l=Tr(a);return a==l?i:L(l)}function bg(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Wi(n,a))return i;for(;l=fc(a);)a=l.find(1,!0).line;return L(a)+1}function Wi(n,i){var a=ci&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Pf(n,i,l))return!0}}}function Pf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Pf(n,l.line,xl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,m=0;m<i.markedSpans.length;++m)if(u=i.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Pf(n,i,u))return!0}function ui(n){n=Tr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var m=a.parent;m;a=m,m=a.parent)for(var y=0;y<m.children.length;++y){var x=m.children[y];if(x==a)break;i+=x.height}return i}function dc(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=vg(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=fc(l);){var m=a.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Rf(n){var i=n.display,a=n.doc;i.maxLine=qe(a,a.first),i.maxLineLength=dc(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=dc(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var ds=function(n,i,a){this.text=n,gg(this,i),this.height=a?a(this):1};ds.prototype.lineNo=function(){return L(this)},wr(ds);function yk(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),pg(n),gg(n,a);var u=l?l(n):1;u!=n.height&&er(n,u)}function bk(n){n.parent=null,pg(n)}var wk={},xk={};function wg(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?xk:wk;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function xg(n,i){var a=R("span",null,null,g?"padding-right: .1px":null),l={pre:R("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=_k,Hi(n.display.measure)&&(y=at(m,n.doc.direction))&&(l.addToken=Tk(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&L(m);Ck(m,l,sg(n,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=je(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=je(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(oc(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=je(l.pre.className,l.textClass||"")),l}function kk(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function _k(n,i,a,l,u,m,y){if(i){var x=n.splitSpaces?Sk(i,n.trailingSpace):i,S=n.cm.state.specialChars,T=!1,H;if(!S.test(i))n.col+=i.length,H=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){S.lastIndex=V;var se=S.exec(i),ne=se?se.index-V:i.length-V;if(ne){var pe=document.createTextNode(x.slice(V,V+ne));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+ne,pe),n.col+=ne,n.pos+=ne}if(!se)break;V+=ne+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,$e=Te-n.col%Te;we=H.appendChild(k("span",Ae($e),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=$e}else se[0]=="\r"||se[0]==`
25
+ `?(we=H.appendChild(k("span",se[0]=="\r"?"␍":"␤","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Oe=k("span",[H],De,m);if(y)for(var Fe in y)y.hasOwnProperty(Fe)&&Fe!="style"&&Fe!="class"&&Oe.setAttribute(Fe,y[Fe]);return n.content.appendChild(Oe)}n.content.appendChild(H)}}function Sk(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function Tk(n,i){return function(a,l,u,m,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,H=T+l.length;;){for(var V=void 0,se=0;se<i.length&&(V=i[se],!(V.to>T&&V.from<=T));se++);if(V.to>=H)return n(a,l,u,m,y,x,S);n(a,l.slice(0,V.to-T),u,m,null,x,S),m=null,l=l.slice(V.to-T),T=V.to}}}function kg(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function Ck(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),wg(a[y+1],i.cm.options));return}for(var x=u.length,S=0,T=1,H="",V,se,ne=0,pe,we,Te,$e,De;;){if(ne==S){pe=we=Te=se="",De=null,$e=null,ne=1/0;for(var Oe=[],Fe=void 0,Ze=0;Ze<l.length;++Ze){var Ve=l[Ze],lt=Ve.marker;if(lt.type=="bookmark"&&Ve.from==S&&lt.widgetNode)Oe.push(lt);else if(Ve.from<=S&&(Ve.to==null||Ve.to>S||lt.collapsed&&Ve.to==S&&Ve.from==S)){if(Ve.to!=null&&Ve.to!=S&&ne>Ve.to&&(ne=Ve.to,we=""),lt.className&&(pe+=" "+lt.className),lt.css&&(se=(se?se+";":"")+lt.css),lt.startStyle&&Ve.from==S&&(Te+=" "+lt.startStyle),lt.endStyle&&Ve.to==ne&&(Fe||(Fe=[])).push(lt.endStyle,Ve.to),lt.title&&((De||(De={})).title=lt.title),lt.attributes)for(var Tt in lt.attributes)(De||(De={}))[Tt]=lt.attributes[Tt];lt.collapsed&&(!$e||$f($e.marker,lt)<0)&&($e=Ve)}else Ve.from>S&&ne>Ve.from&&(ne=Ve.from)}if(Fe)for(var rn=0;rn<Fe.length;rn+=2)Fe[rn+1]==ne&&(we+=" "+Fe[rn]);if(!$e||$e.from==S)for(var $t=0;$t<Oe.length;++$t)kg(i,0,Oe[$t]);if($e&&($e.from||0)==S){if(kg(i,($e.to==null?x+1:$e.to)-S,$e.marker,$e.from==null),$e.to==null)return;$e.to==S&&($e=!1)}}if(S>=x)break;for(var Vn=Math.min(x,ne);;){if(H){var Ln=S+H.length;if(!$e){var Vt=Ln>Vn?H.slice(0,Vn-S):H;i.addToken(i,Vt,V?V+pe:pe,Te,S+Vt.length==ne?we:"",se,De)}if(Ln>=Vn){H=H.slice(Vn-S),S=Vn;break}S=Ln,Te=""}H=u.slice(m,m=a[T++]),V=wg(a[T++],i.cm.options)}}}function _g(n,i,a){this.line=i,this.rest=vk(i),this.size=this.rest?L(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Wi(n,i)}function hc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new _g(n.doc,qe(n.doc,m),m);u=m+y.size,l.push(y)}return l}var hs=null;function Ek(n){hs?hs.ops.push(n):n.ownsGroup=hs={ops:[n],delayedCallbacks:[]}}function Ak(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function Lk(n,i){var a=n.ownsGroup;if(a)try{Ak(a)}finally{hs=null,i(a)}}var kl=null;function en(n,i){var a=li(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;hs?u=hs.delayedCallbacks:kl?u=kl:(u=kl=[],setTimeout(Mk,0));for(var m=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function Mk(){var n=kl;kl=null;for(var i=0;i<n.length;++i)n[i]()}function Sg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?$k(n,i):m=="gutter"?Cg(n,i,a,l):m=="class"?If(n,i):m=="widget"&&Ok(n,i,l)}i.changes=null}function _l(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function Nk(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=_l(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Tg(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):xg(n,i)}function $k(n,i){var a=i.text.className,l=Tg(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,If(n,i)):a&&(i.text.className=a)}function If(n,i){Nk(n,i),i.line.wrapClass?_l(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Cg(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=_l(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(n.options.lineNumbers||m){var y=_l(i),x=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",Se(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),m)for(var S=0;S<n.display.gutterSpecs.length;++S){var T=n.display.gutterSpecs[S].className,H=m.hasOwnProperty(T)&&m[T];H&&x.appendChild(k("div",[H],"CodeMirror-gutter-elt","left: "+l.gutterLeft[T]+"px; width: "+l.gutterWidth[T]+"px"))}}}function Ok(n,i,a){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),u=i.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Eg(n,i,a)}function Pk(n,i,a,l){var u=Tg(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),If(n,i),Cg(n,i,a,l),Eg(n,i,l),i.node}function Eg(n,i,a){if(Ag(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Ag(n,i.rest[l],i,a,!1)}function Ag(n,i,a,l,u){if(i.widgets)for(var m=_l(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],T=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),Rk(S,T,a,l),n.display.input.setUneditable(T),u&&S.above?m.insertBefore(T,a.gutter||a.text):m.appendChild(T),en(S,"redraw")}}function Rk(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Sl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ae(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),_(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function fi(n,i){for(var a=ml(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function pc(n){return n.lineSpace.offsetTop}function Df(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Lg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=_(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Vr(n){return z-n.display.nativeBarWidth}function Eo(n){return n.display.scroller.clientWidth-Vr(n)-n.display.barWidth}function zf(n){return n.display.scroller.clientHeight-Vr(n)-n.display.barHeight}function Ik(n,i,a){var l=n.options.lineWrapping,u=l&&Eo(n);if(!i.measure.heights||l&&i.measure.width!=u){var m=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var S=y[x],T=y[x+1];Math.abs(S.bottom-T.bottom)>2&&m.push((S.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function Mg(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(L(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Dk(n,i){i=Tr(i);var a=L(i),l=n.display.externalMeasured=new _g(n.doc,i,a);l.lineN=a;var u=l.built=xg(n,l);return l.text=u.pre,_(n.display.lineMeasure,u.pre),l}function Ng(n,i,a,l){return Gr(n,ps(n,i),a,l)}function Ff(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Mo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function ps(n,i){var a=L(i),l=Ff(n,a);l&&!l.text?l=null:l&&l.changes&&(Sg(n,l,a,qf(n)),n.curOp.forceUpdate=!0),l||(l=Dk(n,i));var u=Mg(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Gr(n,i,a,l,u){i.before&&(a=-1);var m=a+(l||""),y;return i.cache.hasOwnProperty(m)?y=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Ik(n,i.view,i.rect),i.hasHeights=!0),y=Fk(n,i,a,l),y.bogus||(i.cache[m]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var $g={left:0,right:0,top:0,bottom:0};function Og(n,i,a){for(var l,u,m,y,x,S,T=0;T<n.length;T+=3)if(x=n[T],S=n[T+1],i<x?(u=0,m=1,y="left"):i<S?(u=i-x,m=u+1):(T==n.length-3||i==S&&n[T+3]>i)&&(m=S-x,u=m-1,i>=S&&(y="right")),u!=null){if(l=n[T+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==S-x)for(;T<n.length-3&&n[T+3]==n[T+4]&&!n[T+5].insertLeft;)l=n[(T+=3)+2],y="right";break}return{node:l,start:u,end:m,collapse:y,coverStart:x,coverEnd:S}}function zk(n,i){var a=$g;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function Fk(n,i,a,l){var u=Og(i.map,a,l),m=u.node,y=u.start,x=u.end,S=u.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?T=m.parentNode.getBoundingClientRect():T=zk(B(m,y,x).getClientRects(),l),T.left||T.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(T=Hk(n.display.measure,T))}else{y>0&&(S=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var se=m.parentNode.getClientRects()[0];se?T={left:se.left,right:se.left+ms(n.display),top:se.top,bottom:se.bottom}:T=$g}for(var ne=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(ne+pe)/2,Te=i.view.measure.heights,$e=0;$e<Te.length-1&&!(we<Te[$e]);$e++);var De=$e?Te[$e-1]:0,Oe=Te[$e],Fe={left:(S=="right"?T.right:T.left)-i.rect.left,right:(S=="left"?T.left:T.right)-i.rect.left,top:De,bottom:Oe};return!T.left&&!T.right&&(Fe.bogus=!0),n.options.singleCursorHeightPerLine||(Fe.rtop=ne,Fe.rbottom=pe),Fe}function Hk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Af(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Pg(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Rg(n){n.display.externalMeasure=null,$(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Pg(n.display.view[i])}function Tl(n){Rg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Ig(n){return b&&D?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Dg(n){return b&&D?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Hf(n){var i=Tr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Sl(a[u]));return l}function gc(n,i,a,l,u){if(!u){var m=Hf(i);a.top+=m,a.bottom+=m}if(l=="line")return a;l||(l="local");var y=ui(i);if(l=="local"?y+=pc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Dg(Ge(n)));var S=x.left+(l=="window"?0:Ig(Ge(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function zg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Ig(Ge(n)),u-=Dg(Ge(n));else if(a=="local"||!a){var m=n.display.sizer.getBoundingClientRect();l+=m.left,u+=m.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function mc(n,i,a,l,u){return l||(l=qe(n.doc,i.line)),gc(n,l,Ng(n,l,i.ch,u),a)}function Cr(n,i,a,l,u,m){l=l||qe(n.doc,i.line),u||(u=ps(n,l));function y(pe,we){var Te=Gr(n,u,pe,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,gc(n,l,Te,a)}var x=at(l,n.doc.direction),S=i.ch,T=i.sticky;if(S>=l.text.length?(S=l.text.length,T="before"):S<=0&&(S=0,T="after"),!x)return y(T=="before"?S-1:S,T=="before");function H(pe,we,Te){var $e=x[we],De=$e.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Bt(x,S,T),se=Wr,ne=H(S,V,T=="before");return se!=null&&(ne.other=H(S,se,T!="before")),ne}function Fg(n,i){var a=0;i=it(n.doc,i),n.options.lineWrapping||(a=ms(n.display)*i.ch);var l=qe(n.doc,i.line),u=ui(l)+pc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Bf(n,i,a,l,u){var m=fe(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function jf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Bf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Bf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var x=Bk(n,y,u,i,a),S=gk(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var T=S.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function Hg(n,i,a,l){l-=Hf(i);var u=i.text.length,m=Ut(function(y){return Gr(n,a,y-1).bottom<=l},u,0);return u=Ut(function(y){return Gr(n,a,y).top>l},m,u),{begin:m,end:u}}function Bg(n,i,a,l){a||(a=ps(n,i));var u=gc(n,i,Gr(n,a,l),"line").top;return Hg(n,i,a,u)}function Wf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Bk(n,i,a,l,u){u-=ui(i);var m=ps(n,i),y=Hf(i),x=0,S=i.text.length,T=!0,H=at(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?Wk:jk)(n,i,a,m,H,l,u);T=V.level!=1,x=T?V.from:V.to-1,S=T?V.to:V.from-1}var se=null,ne=null,pe=Ut(function(Ze){var Ve=Gr(n,m,Ze);return Ve.top+=y,Ve.bottom+=y,Wf(Ve,l,u,!1)?(Ve.top<=u&&Ve.left<=l&&(se=Ze,ne=Ve),!0):!1},x,S),we,Te,$e=!1;if(ne){var De=l-ne.left<ne.right-l,Oe=De==T;pe=se+(Oe?0:1),Te=Oe?"after":"before",we=De?ne.left:ne.right}else{!T&&(pe==S||pe==x)&&pe++,Te=pe==0?"after":pe==i.text.length?"before":Gr(n,m,pe-(T?1:0)).bottom+y<=u==T?"after":"before";var Fe=Cr(n,fe(a,pe,Te),"line",i,m);we=Fe.left,$e=u<Fe.top?-1:u>=Fe.bottom?1:0}return pe=Jt(i.text,pe,1),Bf(a,pe,Te,$e,l-we)}function jk(n,i,a,l,u,m,y){var x=Ut(function(V){var se=u[V],ne=se.level!=1;return Wf(Cr(n,fe(a,ne?se.to:se.from,ne?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[x];if(x>0){var T=S.level!=1,H=Cr(n,fe(a,T?S.from:S.to,T?"after":"before"),"line",i,l);Wf(H,m,y,!0)&&H.top>y&&(S=u[x-1])}return S}function Wk(n,i,a,l,u,m,y){var x=Hg(n,i,l,y),S=x.begin,T=x.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,se=0;se<u.length;se++){var ne=u[se];if(!(ne.from>=T||ne.to<=S)){var pe=ne.level!=1,we=Gr(n,l,pe?Math.min(T,ne.to)-1:Math.max(S,ne.from)).right,Te=we<m?m-we+1e9:we-m;(!H||V>Te)&&(H=ne,V=Te)}}return H||(H=u[u.length-1]),H.from<S&&(H={from:S,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var Ao;function gs(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Ao==null){Ao=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ao.appendChild(document.createTextNode("x")),Ao.appendChild(k("br"));Ao.appendChild(document.createTextNode("x"))}_(n.measure,Ao);var a=Ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),$(n.measure),a||1}function ms(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");_(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function qf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=m.offsetLeft+m.clientLeft+u,l[x]=m.clientWidth}return{fixedPos:Uf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Uf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function jg(n){var i=gs(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/ms(n.display)-3);return function(u){if(Wi(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(m+=u.widgets[y].height);return a?m+(Math.ceil(u.text.length/l)||1)*i:m+i}}function Vf(n){var i=n.doc,a=jg(n);i.iter(function(l){var u=a(l);u!=l.height&&er(l,u)})}function Lo(n,i,a,l){var u=n.display;if(!a&&ml(i).getAttribute("cm-not-content")=="true")return null;var m,y,x=u.lineSpace.getBoundingClientRect();try{m=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=jf(n,m,y),T;if(l&&S.xRel>0&&(T=qe(n.doc,S.line).text).length==S.ch){var H=re(T,T.length,n.options.tabSize)-T.length;S=fe(S.line,Math.max(0,Math.round((m-Lg(n.display).left)/ms(n.display))-H))}return S}function Mo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function En(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)ci&&Of(n.doc,i)<u.viewTo&&Ui(n);else if(a<=u.viewFrom)ci&&bg(n.doc,a+l)>u.viewFrom?Ui(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ui(n);else if(i<=u.viewFrom){var m=vc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):Ui(n)}else if(a>=u.viewTo){var y=vc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ui(n)}else{var x=vc(n,i,i,-1),S=vc(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(hc(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Ui(n)}var T=u.externalMeasured;T&&(a<T.lineN?T.lineN+=l:i<T.lineN+T.size&&(u.externalMeasured=null))}function qi(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[Mo(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ce(y,a)==-1&&y.push(a)}}}function Ui(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function vc(n,i,a,l){var u=Mo(n,i),m,y=n.display.view;if(!ci||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,S=0;S<u;S++)x+=y[S].size;if(x!=i){if(l>0){if(u==y.length-1)return null;m=x+y[u].size-i,u++}else m=x-i;i+=m,a+=m}for(;Of(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function qk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=hc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=hc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Mo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(hc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,Mo(n,a)))),l.viewTo=a}function Wg(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Cl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function qg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var T=S.empty();if(y){var H=y(n,S);H&&Gf(n,H,u)}else(T||n.options.showCursorWhenSelecting)&&Gf(n,S.head,u);T||Uk(n,S,m)}}return l}function Gf(n,i,a){var l=Cr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var m=mc(n,i,"div",null,null),y=m.right-m.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function yc(n,i){return n.top-i.top||n.left-i.left}function Uk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=Lg(n.display),x=y.left,S=Math.max(l.sizerWidth,Eo(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H(Oe,Fe,Ze,Ve){Fe<0&&(Fe=0),Fe=Math.round(Fe),Ve=Math.round(Ve),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Oe+`px;
26
+ top: `+Fe+"px; width: "+(Ze??S-Oe)+`px;
27
+ height: `+(Ve-Fe)+"px"))}function V(Oe,Fe,Ze){var Ve=qe(u,Oe),lt=Ve.text.length,Tt,rn;function $t(Vt,Mn){return mc(n,fe(Oe,Vt),"div",Ve,Mn)}function Vn(Vt,Mn,ln){var Xt=Bg(n,Ve,null,Vt),Gt=Mn=="ltr"==(ln=="after")?"left":"right",Dt=ln=="after"?Xt.begin:Xt.end-(/\s/.test(Ve.text.charAt(Xt.end-1))?2:1);return $t(Dt,Gt)[Gt]}var Ln=at(Ve,u.direction);return jn(Ln,Fe||0,Ze??lt,function(Vt,Mn,ln,Xt){var Gt=ln=="ltr",Dt=$t(Vt,Gt?"left":"right"),Nn=$t(Mn-1,Gt?"right":"left"),Ls=Fe==null&&Vt==0,Zi=Ze==null&&Mn==lt,hn=Xt==0,Kr=!Ln||Xt==Ln.length-1;if(Nn.top-Dt.top<=3){var on=(T?Ls:Zi)&&hn,wd=(T?Zi:Ls)&&Kr,pi=on?x:(Gt?Dt:Nn).left,Ro=wd?S:(Gt?Nn:Dt).right;H(pi,Dt.top,Ro-pi,Dt.bottom)}else{var Io,wn,Ms,xd;Gt?(Io=T&&Ls&&hn?x:Dt.left,wn=T?S:Vn(Vt,ln,"before"),Ms=T?x:Vn(Mn,ln,"after"),xd=T&&Zi&&Kr?S:Nn.right):(Io=T?Vn(Vt,ln,"before"):x,wn=!T&&Ls&&hn?S:Dt.right,Ms=!T&&Zi&&Kr?x:Nn.left,xd=T?Vn(Mn,ln,"after"):S),H(Io,Dt.top,wn-Io,Dt.bottom),Dt.bottom<Nn.top&&H(x,Dt.bottom,null,Nn.top),H(Ms,Nn.top,xd-Ms,Nn.bottom)}(!Tt||yc(Dt,Tt)<0)&&(Tt=Dt),yc(Nn,Tt)<0&&(Tt=Nn),(!rn||yc(Dt,rn)<0)&&(rn=Dt),yc(Nn,rn)<0&&(rn=Nn)}),{start:Tt,end:rn}}var se=i.from(),ne=i.to();if(se.line==ne.line)V(se.line,se.ch,ne.ch);else{var pe=qe(u,se.line),we=qe(u,ne.line),Te=Tr(pe)==Tr(we),$e=V(se.line,se.ch,Te?pe.text.length+1:null).end,De=V(ne.line,Te?0:null,ne.ch).start;Te&&($e.top<De.top-2?(H($e.right,$e.top,null,$e.bottom),H(x,De.top,De.left,De.bottom)):H($e.right,$e.top,De.left-$e.right,$e.bottom)),$e.bottom<De.top&&H(x,$e.bottom,null,De.top)}a.appendChild(m)}function Kf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||vs(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Ug(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Yf(n))}function Xf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&vs(n))},100)}function Yf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,_e(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Kf(n))}function vs(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,O(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function bc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var V=x.node.offsetTop+x.node.offsetHeight;T=V-a,a=V}else{var se=x.node.getBoundingClientRect();T=se.bottom-se.top,!S&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var ne=x.line.height-T;if((ne>.005||ne<-.005)&&(u<l&&(m-=ne),er(x.line,T),Vg(x.line),x.rest))for(var pe=0;pe<x.rest.length;pe++)Vg(x.rest[pe]);if(H>n.display.sizerWidth){var we=Math.ceil(H/ms(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Vg(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function wc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-pc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=U(i,l),y=U(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<m?(m=x,y=U(i,ui(qe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(m=U(i,ui(qe(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function Vk(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!E){var y=k("div","​",null,`position: absolute;
28
+ top: `+(i.top-a.viewOffset-pc(n.display))+`px;
29
+ height: `+(i.bottom-i.top+Vr(n)+a.barHeight)+`px;
30
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Gk(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=Cr(n,i),S=!a||a==i?x:Cr(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var T=Zf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(Al(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(No(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Kk(n,i){var a=Zf(n,i);a.scrollTop!=null&&Al(n,a.scrollTop),a.scrollLeft!=null&&No(n,a.scrollLeft)}function Zf(n,i){var a=n.display,l=gs(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=zf(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Df(a),S=i.top<l,T=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+m){var H=Math.min(i.top,(T?x:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,ne=Eo(n)-a.gutters.offsetWidth,pe=i.right-i.left>ne;return pe&&(i.right=i.left+ne),i.left<10?y.scrollLeft=0:i.left<se?y.scrollLeft=Math.max(0,i.left+V-(pe?0:10)):i.right>ne+se-3&&(y.scrollLeft=i.right+(pe?0:10)-ne),y}function Jf(n,i){i!=null&&(xc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function ys(n){xc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function El(n,i,a){(i!=null||a!=null)&&xc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Xk(n,i){xc(n),n.curOp.scrollToPos=i}function xc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Fg(n,i.from),l=Fg(n,i.to);Gg(n,a,l,i.margin)}}function Gg(n,i,a,l){var u=Zf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});El(n,u.scrollLeft,u.scrollTop)}function Al(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||ed(n,{top:i}),Kg(n,i,!0),s&&ed(n),Nl(n,100))}function Kg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function No(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,Qg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Ll(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Df(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Vr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var $o=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Ye(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ye(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$o.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},$o.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$o.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$o.prototype.zeroWidthHack=function(){var n=I&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},$o.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},$o.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ml=function(){};Ml.prototype.update=function(){return{bottom:0,right:0}},Ml.prototype.setScrollLeft=function(){},Ml.prototype.setScrollTop=function(){},Ml.prototype.clear=function(){};function bs(n,i){i||(i=Ll(n));var a=n.display.barWidth,l=n.display.barHeight;Xg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&bc(n),Xg(n,Ll(n)),a=n.display.barWidth,l=n.display.barHeight}function Xg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var Yg={native:$o,null:Ml};function Zg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&O(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Yg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Ye(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?No(n,i):Al(n,i)},n),n.display.scrollbars.addClass&&_e(n.display.wrapper,n.display.scrollbars.addClass)}var Yk=0;function Oo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yk,markArrays:null},Ek(n.curOp)}function Po(n){var i=n.curOp;i&&Lk(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Zk(a)})}function Zk(n){for(var i=n.ops,a=0;a<i.length;a++)Jk(i[a]);for(var l=0;l<i.length;l++)Qk(i[l]);for(var u=0;u<i.length;u++)e_(i[u]);for(var m=0;m<i.length;m++)t_(i[m]);for(var y=0;y<i.length;y++)n_(i[y])}function Jk(n){var i=n.cm,a=i.display;i_(i),n.updateMaxLine&&Rf(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new kc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Qk(n){n.updatedDisplay=n.mustUpdate&&Qf(n.cm,n.update)}function e_(n){var i=n.cm,a=i.display;n.updatedDisplay&&bc(i),n.barMeasure=Ll(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Ng(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Vr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Eo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function t_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&No(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ve(Ue(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&bs(i,n.barMeasure),n.updatedDisplay&&nd(i,n.barMeasure),n.selectionChanged&&Kf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Ug(n.cm)}function n_(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Jg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Kg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&No(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Gk(i,it(l,n.scrollToPos.from),it(l,n.scrollToPos.to),n.scrollToPos.margin);Vk(i,u)}var m=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||Pt(m[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Pt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Pt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Un(n,i){if(n.curOp)return i();Oo(n);try{return i()}finally{Po(n)}}function tn(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Oo(n);try{return i.apply(n,arguments)}finally{Po(n)}}}function bn(n){return function(){if(this.curOp)return n.apply(this,arguments);Oo(this);try{return n.apply(this,arguments)}finally{Po(this)}}}function nn(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Oo(i);try{return n.apply(this,arguments)}finally{Po(i)}}}function Nl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,F(r_,n))}function r_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=wl(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,x=m.text.length>n.options.maxHighlightLength?qr(i.mode,l.state):null,S=og(n,m,l,!0);x&&(l.state=x),m.styles=S.styles;var T=m.styleClasses,H=S.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),se=0;!V&&se<y.length;++se)V=y[se]!=m.styles[se];V&&u.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=n.options.maxHighlightLength&&Lf(n,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Nl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Un(n,function(){for(var m=0;m<u.length;m++)qi(n,u[m],"text")})}}var kc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=wc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Eo(n),this.force=a,this.dims=qf(n),this.events=[]};kc.prototype.signal=function(n,i){qn(n,i)&&this.events.push(arguments)},kc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Pt.apply(null,this.events[n])};function i_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Vr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Vr(n)+"px",i.scrollbarsClipped=!0)}function o_(n){if(n.hasFocus())return null;var i=ve(Ue(n));if(!i||!ae(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Pe(n).getSelection();l.anchorNode&&l.extend&&ae(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function s_(n){if(!(!n||!n.activeElt||n.activeElt==ve(He(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ae(document.body,n.anchorNode)&&ae(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function Qf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ui(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Wg(n)==0)return!1;em(n)&&(Ui(n),i.dims=qf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),ci&&(m=Of(n.doc,m),y=bg(n.doc,y));var x=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;qk(n,m,y),a.viewOffset=ui(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Wg(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=o_(n);return S>4&&(a.lineDiv.style.display="none"),l_(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,s_(T),$(a.cursorDiv),$(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Nl(n,400)),a.updateLineNumbers=null,!0}function Jg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Eo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Df(n.display)-zf(n),a.top)}),i.visible=wc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=wc(n.display,n.doc,a));if(!Qf(n,i))break;bc(n);var u=Ll(n);Cl(n),bs(n,u),nd(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function ed(n,i){var a=new kc(n,i);if(Qf(n,a)){bc(n),Jg(n,a);var l=Ll(n);Cl(n),bs(n,l),nd(n,l),a.finish()}}function l_(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function x(pe){var we=pe.nextSibling;return g&&I&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var S=l.view,T=l.viewFrom,H=0;H<S.length;H++){var V=S[H];if(!V.hidden)if(!V.node||V.node.parentNode!=m){var se=Pk(n,V,T,a);m.insertBefore(se,y)}else{for(;y!=V.node;)y=x(y);var ne=u&&i!=null&&i<=T&&V.lineNumber;V.changes&&(ce(V.changes,"gutter")>-1&&(ne=!1),Sg(n,V,T,a)),ne&&($(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(Se(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=x(y)}function td(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",en(n,"gutterChanged",n)}function nd(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Vr(n)+"px"}function Qg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Uf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=m),a[y].gutterBackground&&(a[y].gutterBackground.style.left=m));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=m}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function em(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=Se(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,y=u.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",td(n.display),!0}return!1}function rd(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var m=n[u],y=null;if(typeof m!="string"&&(y=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:m,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function tm(n){var i=n.gutters,a=n.gutterSpecs;$(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],m=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+m));y&&(x.style.cssText=y),m=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",td(n)}function $l(n){tm(n.display),En(n),Qg(n)}function a_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=R("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=R("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=R("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[m],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!g&&!(s&&C)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=rd(l.gutters,l.lineNumbers),tm(u),a.init(u)}var _c=0,di=null;h?di=-.53:s?di=15:b?di=-.7:A&&(di=-1/3);function nm(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function c_(n){var i=nm(n);return i.x*=di,i.y*=di,i}function rm(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=nm(i),l=a.x,u=a.y,m=di;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(l&&S||u&&T){if(u&&I&&g){e:for(var H=i.target,V=y.view;H!=x;H=H.parentNode)for(var se=0;se<V.length;se++)if(V[se].node==H){n.display.currentWheelTarget=H;break e}}if(l&&!s&&!P&&m!=null){u&&T&&Al(n,Math.max(0,x.scrollTop+u*m)),No(n,Math.max(0,x.scrollLeft+l*m)),(!u||u&&T)&&fn(i),y.wheelStartX=null;return}if(u&&m!=null){var ne=u*m,pe=n.doc.scrollTop,we=pe+y.wrapper.clientHeight;ne<0?pe=Math.max(0,pe+ne-50):we=Math.min(n.doc.height,we+ne+50),ed(n,{top:pe,bottom:we})}_c<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var Te=x.scrollLeft-y.wheelStartX,$e=x.scrollTop-y.wheelStartY,De=$e&&y.wheelDY&&$e/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(di=(di*_c+De)/(_c+1),++_c)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var tr=function(n,i){this.ranges=n,this.primIndex=i};tr.prototype.primary=function(){return this.ranges[this.primIndex]},tr.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!gt(a.anchor,l.anchor)||!gt(a.head,l.head))return!1}return!0},tr.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new mt(Qt(this.ranges[i].anchor),Qt(this.ranges[i].head));return new tr(n,this.primIndex)},tr.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},tr.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var mt=function(n,i){this.anchor=n,this.head=i};mt.prototype.from=function(){return fs(this.anchor,this.head)},mt.prototype.to=function(){return Cn(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,ne){return Ie(se.from(),ne.from())}),a=ce(i,u);for(var m=1;m<i.length;m++){var y=i[m],x=i[m-1],S=Ie(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var T=fs(x.from(),y.from()),H=Cn(x.to(),y.to()),V=x.empty()?y.from()==y.head:x.from()==x.head;m<=a&&--a,i.splice(--m,2,new mt(V?H:T,V?T:H))}}return new tr(i,a)}function Vi(n,i){return new tr([new mt(n,i||n)],0)}function Gi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function im(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Gi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Gi(i).ch-i.to.ch),fe(a,l)}function id(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new mt(im(u.anchor,i),im(u.head,i)))}return Er(n.cm,a,n.sel.primIndex)}function om(n,i,a){return n.line==i.line?fe(a.line,n.ch-i.ch+a.ch):fe(a.line+(n.line-i.line),n.ch)}function u_(n,i,a){for(var l=[],u=fe(n.first,0),m=u,y=0;y<i.length;y++){var x=i[y],S=om(x.from,u,m),T=om(Gi(x),u,m);if(u=x.to,m=T,a=="around"){var H=n.sel.ranges[y],V=Ie(H.head,H.anchor)<0;l[y]=new mt(V?T:S,V?S:T)}else l[y]=new mt(S,S)}return new tr(l,n.sel.primIndex)}function od(n){n.doc.mode=as(n.options,n.doc.modeOption),Ol(n)}function Ol(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,Nl(n,100),n.state.modeGen++,n.curOp&&En(n)}function sm(n,i){return i.from.ch==0&&i.to.ch==0&&xe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function sd(n,i,a,l){function u(De){return a?a[De]:null}function m(De,Oe,Fe){yk(De,Oe,Fe,l),en(De,"change",De,i)}function y(De,Oe){for(var Fe=[],Ze=De;Ze<Oe;++Ze)Fe.push(new ds(T[Ze],u(Ze),l));return Fe}var x=i.from,S=i.to,T=i.text,H=qe(n,x.line),V=qe(n,S.line),se=xe(T),ne=u(T.length-1),pe=S.line-x.line;if(i.full)n.insert(0,y(0,T.length)),n.remove(T.length,n.size-T.length);else if(sm(n,i)){var we=y(0,T.length-1);m(V,V.text,ne),pe&&n.remove(x.line,pe),we.length&&n.insert(x.line,we)}else if(H==V)if(T.length==1)m(H,H.text.slice(0,x.ch)+se+H.text.slice(S.ch),ne);else{var Te=y(1,T.length-1);Te.push(new ds(se+H.text.slice(S.ch),ne,l)),m(H,H.text.slice(0,x.ch)+T[0],u(0)),n.insert(x.line+1,Te)}else if(T.length==1)m(H,H.text.slice(0,x.ch)+T[0]+V.text.slice(S.ch),u(0)),n.remove(x.line+1,pe);else{m(H,H.text.slice(0,x.ch)+T[0],u(0)),m(V,se+V.text.slice(S.ch),ne);var $e=y(1,T.length-1);pe>1&&n.remove(x.line+1,pe-1),n.insert(x.line+1,$e)}en(n,"change",n,i)}function Ki(n,i,a){function l(u,m,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=m){var T=y&&S.sharedHist;a&&!T||(i(S.doc,T),l(S.doc,u,T))}}}l(n,null,!0)}function lm(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Vf(n),od(n),am(n),n.options.direction=i.direction,n.options.lineWrapping||Rf(n),n.options.mode=i.modeOption,En(n)}function am(n){(n.doc.direction=="rtl"?_e:O)(n.display.lineDiv,"CodeMirror-rtl")}function f_(n){Un(n,function(){am(n),En(n)})}function Sc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function ld(n,i){var a={from:Qt(i.from),to:Gi(i),text:ai(n,i.from,i.to)};return fm(n,a,i.from.line,i.to.line+1),Ki(n,function(l){return fm(l,a,i.from.line,i.to.line+1)},!0),a}function cm(n){for(;n.length;){var i=xe(n);if(i.ranges)n.pop();else break}}function d_(n,i){if(i)return cm(n.done),xe(n.done);if(n.done.length&&!xe(n.done).ranges)return xe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function um(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=d_(u,u.lastOp==l)))x=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Gi(i):y.changes.push(ld(n,i));else{var S=xe(u.done);for((!S||!S.ranges)&&Tc(n.sel,u.done),y={changes:[ld(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Pt(n,"historyAdded")}function h_(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function p_(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||h_(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:Tc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&cm(u.undone)}function Tc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function fm(n,i,a,l){var u=i["spans_"+n.id],m=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[m]=y.markedSpans),++m})}function g_(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function m_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(g_(a[u]));return l}function dm(n,i){var a=m_(n,i),l=Nf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var m=a[u],y=l[u];if(m&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],T=0;T<m.length;++T)if(m[T].marker==S.marker)continue e;m.push(S)}else y&&(a[u]=y)}return a}function ws(n,i,a){for(var l=[],u=0;u<n.length;++u){var m=n[u];if(m.ranges){l.push(a?tr.prototype.deepCopy.call(m):m);continue}var y=m.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var T=y[S],H=void 0;if(x.push({from:T.from,to:T.to,text:T.text}),i)for(var V in T)(H=V.match(/^spans_(\d+)$/))&&ce(i,Number(H[1]))>-1&&(xe(x)[V]=T[V],delete T[V])}}return l}function ad(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new mt(u,i)}else return new mt(a||i,i)}function Cc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),dn(n,new tr([ad(n.sel.primary(),i,a,u)],0),l)}function hm(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m<n.sel.ranges.length;m++)l[m]=ad(n.sel.ranges[m],i[m],null,u);var y=Er(n.cm,l,n.sel.primIndex);dn(n,y,a)}function cd(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,dn(n,Er(n.cm,u,n.sel.primIndex),l)}function pm(n,i,a,l){dn(n,Vi(i,a),l)}function v_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new mt(it(n,u[m].anchor),it(n,u[m].head))},origin:a&&a.origin};return Pt(n,"beforeSelectionChange",n,l),n.cm&&Pt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Er(n.cm,l.ranges,l.ranges.length-1):i}function gm(n,i,a){var l=n.history.done,u=xe(l);u&&u.ranges?(l[l.length-1]=i,Ec(n,i,a)):dn(n,i,a)}function dn(n,i,a){Ec(n,i,a),p_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ec(n,i,a){(qn(n,"beforeSelectionChange")||n.cm&&qn(n.cm,"beforeSelectionChange"))&&(i=v_(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);mm(n,ym(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&ys(n.cm)}function mm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,dr(n.cm)),en(n,"cursorActivity",n))}function vm(n){mm(n,ym(n,n.sel,null,!1))}function ym(n,i,a,l){for(var u,m=0;m<i.ranges.length;m++){var y=i.ranges[m],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[m],S=Ac(n,y.anchor,x&&x.anchor,a,l),T=y.head==y.anchor?S:Ac(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||T!=y.head)&&(u||(u=i.ranges.slice(0,m)),u[m]=new mt(S,T))}return u?Er(n.cm,u,i.primIndex):i}function xs(n,i,a,l,u){var m=qe(n,i.line);if(m.markedSpans)for(var y=0;y<m.markedSpans.length;++y){var x=m.markedSpans[y],S=x.marker,T="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,H="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(T?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(H?x.to>=i.ch:x.to>i.ch))){if(u&&(Pt(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var V=S.find(l<0?1:-1),se=void 0;if((l<0?H:T)&&(V=bm(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(se=Ie(V,a))&&(l<0?se<0:se>0))return xs(n,V,i,l,u)}var ne=S.find(l<0?-1:1);return(l<0?T:H)&&(ne=bm(n,ne,l,ne.line==i.line?m:null)),ne?xs(n,ne,i,l,u):null}}return i}function Ac(n,i,a,l,u){var m=l||1,y=xs(n,i,a,m,u)||!u&&xs(n,i,a,m,!0)||xs(n,i,a,-m,u)||!u&&xs(n,i,a,-m,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function bm(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?it(n,fe(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line<n.first+n.size-1?fe(i.line+1,0):null:new fe(i.line,i.ch+a)}function wm(n){n.setSelection(fe(n.firstLine(),0),fe(n.lastLine()),ee)}function xm(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,m,y,x){u&&(l.from=it(n,u)),m&&(l.to=it(n,m)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Pt(n,"beforeChange",n,l),n.cm&&Pt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function ks(n,i,a){if(n.cm){if(!n.cm.curOp)return tn(n.cm,ks)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((qn(n,"beforeChange")||n.cm&&qn(n.cm,"beforeChange"))&&(i=xm(n,i,!0),!i))){var l=dg&&!a&&pk(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)km(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else km(n,i)}}function km(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=id(n,i);um(n,i,a,n.cm?n.cm.curOp.id:NaN),Pl(n,i,a,Nf(n,i));var l=[];Ki(n,function(u,m){!m&&ce(l,u.history)==-1&&(Cm(u.history,i),l.push(u.history)),Pl(u,i,null,Nf(u,i))})}}function Lc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,T=0;T<x.length&&(m=x[T],!(a?m.ranges&&!m.equals(n.sel):!m.ranges));T++);if(T!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(Tc(m,S),a&&!m.equals(n.sel)){dn(n,m,{clearRedo:!1});return}y=m}else if(l){x.push(m);return}else break;var H=[];Tc(y,S),S.push({changes:H,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var V=qn(n,"beforeChange")||n.cm&&qn(n.cm,"beforeChange"),se=function(we){var Te=m.changes[we];if(Te.origin=i,V&&!xm(n,Te,!1))return x.length=0,{};H.push(ld(n,Te));var $e=we?id(n,Te):xe(x);Pl(n,Te,$e,dm(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Gi(Te)});var De=[];Ki(n,function(Oe,Fe){!Fe&&ce(De,Oe.history)==-1&&(Cm(Oe.history,Te),De.push(Oe.history)),Pl(Oe,Te,null,dm(Oe,Te))})},ne=m.changes.length-1;ne>=0;--ne){var pe=se(ne);if(pe)return pe.v}}}}function _m(n,i){if(i!=0&&(n.first+=i,n.sel=new tr(be(n.sel.ranges,function(u){return new mt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){En(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)qi(n.cm,l,"gutter")}}function Pl(n,i,a,l){if(n.cm&&!n.cm.curOp)return tn(n.cm,Pl)(n,i,a,l);if(i.to.line<n.first){_m(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);_m(n,u),i={from:fe(n.first,0),to:fe(i.to.line+u,i.to.ch),text:[xe(i.text)],origin:i.origin}}var m=n.lastLine();i.to.line>m&&(i={from:i.from,to:fe(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ai(n,i.from,i.to),a||(a=id(n,i)),n.cm?y_(n.cm,i,l):sd(n,i,l),Ec(n,a,ee),n.cantEdit&&Ac(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function y_(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,x=!1,S=m.line;n.options.lineWrapping||(S=L(Tr(qe(l,m.line))),l.iter(S,y.line+1,function(ne){if(ne==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&dr(n),sd(l,i,a,jg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(ne){var pe=dc(ne);pe>u.maxLineLength&&(u.maxLine=ne,u.maxLineLength=pe,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),lk(l,m.line),Nl(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?En(n):m.line==y.line&&i.text.length==1&&!sm(n.doc,i)?qi(n,m.line,"text"):En(n,m.line,y.line+1,T);var H=qn(n,"changes"),V=qn(n,"change");if(V||H){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&en(n,"change",n,se),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function _s(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),ks(n,{from:a,to:l,text:i,origin:u})}function Sm(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Tm(n,i,a,l){for(var u=0;u<n.length;++u){var m=n[u],y=!0;if(m.ranges){m.copied||(m=n[u]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)Sm(m.ranges[x].anchor,i,a,l),Sm(m.ranges[x].head,i,a,l);continue}for(var S=0;S<m.changes.length;++S){var T=m.changes[S];if(a<T.from.line)T.from=fe(T.from.line+l,T.from.ch),T.to=fe(T.to.line+l,T.to.ch);else if(i<=T.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Cm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Tm(n.done,a,l,u),Tm(n.undone,a,l,u)}function Rl(n,i,a,l){var u=i,m=i;return typeof i=="number"?m=qe(n,rg(n,i)):u=L(i),u==null?null:(l(m,u)&&n.cm&&qi(n.cm,u,a),m)}function Il(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Il.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,bk(u),en(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function Dl(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}Dl.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var m=Math.min(i,u-n),y=l.height;if(l.removeInner(n,m),this.height-=y-l.height,u==m&&(this.children.splice(a--,1),l.parent=null),(i-=m)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Il))){var x=[];this.collapse(x),this.children=[new Il(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],m=u.chunkSize();if(n<=m){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var S=new Il(u.lines.slice(x,x+=25));u.height-=S.height,this.children.splice(++l,0,S),S.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Dl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ce(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Dl(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],m=u.chunkSize();if(n<m){var y=Math.min(i,m-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=m}}};var zl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};zl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=L(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var m=Sl(this);er(a,Math.max(0,a.height-m)),n&&(Un(n,function(){Em(n,a,-m),qi(n,l,"widget")}),en(n,"lineWidgetCleared",n,this,l))}},zl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Sl(this)-i;u&&(Wi(this.doc,l)||er(l,l.height+u),a&&Un(a,function(){a.curOp.forceUpdate=!0,Em(a,l,u),en(a,"lineWidgetChanged",a,n,L(l))}))},wr(zl);function Em(n,i,a){ui(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Jf(n,a)}function b_(n,i,a,l){var u=new zl(n,a,l),m=n.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Rl(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,m&&!Wi(n,y)){var S=ui(y)<n.scrollTop;er(y,y.height+Sl(u)),S&&Jf(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&en(m,"lineWidgetAdded",m,u,typeof i=="number"?i:L(i)),u}var Am=0,Xi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Am};Xi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Oo(n),qn(this,"clear")){var a=this.find();a&&en(this,"clear",a.from,a.to)}for(var l=null,u=null,m=0;m<this.lines.length;++m){var y=this.lines[m],x=xl(y.markedSpans,this);n&&!this.collapsed?qi(n,L(y),"text"):n&&(x.to!=null&&(u=L(y)),x.from!=null&&(l=L(y))),y.markedSpans=uk(y.markedSpans,x),x.from==null&&this.collapsed&&!Wi(this.doc,y)&&n&&er(y,gs(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var T=Tr(this.lines[S]),H=dc(T);H>n.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&En(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&vm(n.doc)),n&&en(n,"markerCleared",n,this,l,u),i&&Po(n),this.parent&&this.parent.clear()}},Xi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var m=this.lines[u],y=xl(m.markedSpans,this);if(y.from!=null&&(a=fe(i?m:L(m),y.from),n==-1))return a;if(y.to!=null&&(l=fe(i?m:L(m),y.to),n==1))return l}return a&&{from:a,to:l}},Xi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Un(l,function(){var u=i.line,m=L(i.line),y=Ff(l,m);if(y&&(Pg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Wi(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=Sl(a)-x;S&&er(u,u.height+S)}en(l,"markerChanged",l,n)})},Xi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Xi.prototype.detachLine=function(n){if(this.lines.splice(ce(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},wr(Xi);function Ss(n,i,a,l,u){if(l&&l.shared)return w_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return tn(n.cm,Ss)(n,i,a,l,u);var m=new Xi(n,u),y=Ie(i,a);if(l&&Z(l,m,!1),y>0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=R("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(yg(n,i.line,i,a,m)||i.line!=a.line&&yg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");ck()}m.addToHistory&&um(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,T;if(n.iter(x,a.line+1,function(V){S&&m.collapsed&&!S.options.lineWrapping&&Tr(V)==S.display.maxLine&&(T=!0),m.collapsed&&x!=i.line&&er(V,0),fk(V,new ac(m,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Wi(n,V)&&er(V,0)}),m.clearOnEnter&&Ye(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(ak(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++Am,m.atomic=!0),S){if(T&&(S.curOp.updateMaxLine=!0),m.collapsed)En(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=i.line;H<=a.line;H++)qi(S,H,"text");m.atomic&&vm(S.doc),en(S,"markerAdded",S,m)}return m}var Fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Fl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();en(this,"clear")}},Fl.prototype.find=function(n,i){return this.primary.find(n,i)},wr(Fl);function w_(n,i,a,l,u){l=Z(l),l.shared=!1;var m=[Ss(n,i,a,l,u)],y=m[0],x=l.widgetNode;return Ki(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),m.push(Ss(S,it(S,i),it(S,a),l,u));for(var T=0;T<S.linked.length;++T)if(S.linked[T].isParent)return;y=xe(m)}),new Fl(m,y)}function Lm(n){return n.findMarks(fe(n.first,0),n.clipPos(fe(n.lastLine())),function(i){return i.parent})}function x_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),m=n.clipPos(u.from),y=n.clipPos(u.to);if(Ie(m,y)){var x=Ss(n,m,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function k_(n){for(var i=function(l){var u=n[l],m=[u.primary.doc];Ki(u.primary.doc,function(S){return m.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];ce(m,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var __=0,An=function(n,i,a,l,u){if(!(this instanceof An))return new An(n,i,a,l,u);a==null&&(a=0),Dl.call(this,[new Il([new ds("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=fe(a,0);this.sel=Vi(m),this.history=new Sc(null),this.id=++__,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),sd(this,{from:m,to:m,text:n}),dn(this,Vi(m),ee)};An.prototype=ie(Dl.prototype,{constructor:An,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=bl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:nn(function(n){var i=fe(this.first,0),a=this.first+this.size-1;ks(this,{from:i,to:fe(a,qe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&El(this.cm,0,0),dn(this,Vi(i),ee)}),replaceRange:function(n,i,a,l){i=it(this,i),a=a?it(this,a):i,_s(this,n,i,a,l)},getRange:function(n,i,a){var l=ai(this,it(this,n),it(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(ye(this,n))return qe(this,n)},getLineNumber:function(n){return L(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=qe(this,n)),Tr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return it(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:nn(function(n,i,a){pm(this,it(this,typeof n=="number"?fe(n,i||0):n),null,a)}),setSelection:nn(function(n,i,a){pm(this,it(this,n),it(this,i||n),a)}),extendSelection:nn(function(n,i,a){Cc(this,it(this,n),i&&it(this,i),a)}),extendSelections:nn(function(n,i){hm(this,ig(this,n),i)}),extendSelectionsBy:nn(function(n,i){var a=be(this.sel.ranges,n);hm(this,ig(this,a),i)}),setSelections:nn(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new mt(it(this,n[u].anchor),it(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),dn(this,Er(this.cm,l,i),a)}}),addSelection:nn(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new mt(it(this,n),it(this,i||n))),dn(this,Er(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ai(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=ai(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:nn(function(n,i,a){for(var l=[],u=this.sel,m=0;m<u.ranges.length;m++){var y=u.ranges[m];l[m]={from:y.from(),to:y.to(),text:this.splitLines(n[m]),origin:a}}for(var x=i&&i!="end"&&u_(this,l,i),S=l.length-1;S>=0;S--)ks(this,l[S]);x?gm(this,x):this.cm&&ys(this.cm)}),undo:nn(function(){Lc(this,"undo")}),redo:nn(function(){Lc(this,"redo")}),undoSelection:nn(function(){Lc(this,"undo",!0)}),redoSelection:nn(function(){Lc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new Sc(this.history),Ki(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ws(this.history.done),undone:ws(this.history.undone)}},setHistory:function(n){var i=this.history=new Sc(this.history);i.done=ws(n.done.slice(0),null,!0),i.undone=ws(n.undone.slice(0),null,!0)},setGutterMarker:nn(function(n,i,a){return Rl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:nn(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Rl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!ye(this,n)||(i=n,n=qe(this,n),!n))return null}else if(i=L(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:nn(function(n,i,a){return Rl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(K(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:nn(function(n,i,a){return Rl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[u];if(m)if(a==null)l[u]=null;else{var y=m.match(K(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=m.slice(0,y.index)+(!y.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:nn(function(n,i,a){return b_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Ss(this,it(this,n),it(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=it(this,n),Ss(this,n,n,a,"bookmark")},findMarksAt:function(n){n=it(this,n);var i=[],a=qe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=it(this,n),i=it(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.markedSpans;if(y)for(var x=0;x<y.length;x++){var S=y[x];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var m=u.text.length+l;if(m>n)return i=n,!0;n-=m,++a}),it(this,fe(a,i))},indexFromPos:function(n){n=it(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new An(bl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new An(bl(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],x_(l,Lm(this)),l},unlinkDoc:function(n){if(n instanceof At&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),k_(Lm(this));break}}if(n.history==this.history){var l=[n.id];Ki(n,function(u){return l.push(u.id)},!0),n.history=new Sc(null),n.history.done=ws(this.history.done,l),n.history.undone=ws(this.history.undone,l)}},iterLinkedDocs:function(n){Ki(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):hr(n)},lineSeparator:function(){return this.lineSep||`
31
+ `},setDirection:nn(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&f_(this.cm))})}),An.prototype.eachLine=An.prototype.iter;var Mm=0;function S_(n){var i=this;if(Nm(i),!(Rt(i,n)||fi(i.display,n))){fn(n),h&&(Mm=+new Date);var a=Lo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,x=function(){++y==u&&tn(i,function(){a=it(i.doc,a);var ne={from:a,to:a,text:i.doc.splitLines(m.filter(function(pe){return pe!=null}).join(i.doc.lineSeparator())),origin:"paste"};ks(i.doc,ne),gm(i.doc,Vi(it(i.doc,a),it(i.doc,Gi(ne))))})()},S=function(ne,pe){if(i.options.allowDropFileTypes&&ce(i.options.allowDropFileTypes,ne.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}m[pe]=Te,x()},we.readAsText(ne)},T=0;T<l.length;T++)S(l[T],T);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),Ec(i.doc,Vi(a,a)),V)for(var se=0;se<V.length;++se)_s(i.doc,"",V[se].anchor,V[se].head,"drag");i.replaceSelection(H,"around","paste"),i.display.input.focus()}}catch{}}}}function T_(n,i){if(h&&(!n.state.draggingText||+new Date-Mm<100)){Fi(i);return}if(!(Rt(n,i)||fi(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",P&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),P&&a.parentNode.removeChild(a)}}function C_(n,i){var a=Lo(n,i);if(a){var l=document.createDocumentFragment();Gf(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),_(n.display.dragCursor,l)}}function Nm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function $m(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var m=0;m<a.length;m++)n(a[m])})}}var Om=!1;function E_(){Om||(A_(),Om=!0)}function A_(){var n;Ye(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,$m(L_)},100))}),Ye(window,"blur",function(){return $m(vs)})}function L_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Yi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Hl=0;Hl<10;Hl++)Yi[Hl+48]=Yi[Hl+96]=String(Hl);for(var Mc=65;Mc<=90;Mc++)Yi[Mc]=String.fromCharCode(Mc);for(var Bl=1;Bl<=12;Bl++)Yi[Bl+111]=Yi[Bl+63235]="F"+Bl;var hi={};hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},hi.default=I?hi.macDefault:hi.pcDefault;function M_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,m,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))m=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),m&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function N_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=be(a.split(" "),M_),m=0;m<u.length;m++){var y=void 0,x=void 0;m==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,m+1).join(" "),y="...");var S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var T in i)n[T]=i[T];return n}function Ts(n,i,a,l){i=Nc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Ts(n,i.fallthrough,a,l);for(var m=0;m<i.fallthrough.length;m++){var y=Ts(n,i.fallthrough[m],a,l);if(y)return y}}}function Pm(n){var i=typeof n=="string"?n:Yi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Rm(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(J?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(J?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Im(n,i){if(P&&n.keyCode==34&&n.char)return!1;var a=Yi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Rm(a,n,i))}function Nc(n){return typeof n=="string"?hi[n]:n}function Cs(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var m=i(a[u]);l.length&&Ie(m.from,xe(l).to)<=0;){var y=l.pop();if(Ie(y.from,m.from)<0){m.from=y.from;break}}l.push(m)}Un(n,function(){for(var x=l.length-1;x>=0;x--)_s(n.doc,"",l[x].from,l[x].to,"+delete");ys(n)})}function ud(n,i,a){var l=Jt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function fd(n,i,a){var l=ud(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function dd(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=at(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],x=u<0==(y.level==1),S=x?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=ps(i,a);T=u<0?a.text.length-1:0;var V=Gr(i,H,T).top;T=Ut(function(se){return Gr(i,H,se).top==V},u<0==(y.level==1)?y.from:y.to-1,T),S=="before"&&(T=ud(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,S)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function $_(n,i,a,l){var u=at(i,n.doc.direction);if(!u)return fd(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return fd(i,a,l);var x=function($e,De){return ud(i,$e instanceof fe?$e.ch:$e,De)},S,T=function($e){return n.options.lineWrapping?(S=S||ps(n,i),Bg(n,i,S,$e)):{begin:0,end:i.text.length}},H=T(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var V=y.level==1==l<0,se=x(a,V?1:-1);if(se!=null&&(V?se<=y.to&&se<=H.end:se>=y.from&&se>=H.begin)){var ne=V?"before":"after";return new fe(a.line,se,ne)}}var pe=function($e,De,Oe){for(var Fe=function(Tt,rn){return rn?new fe(a.line,x(Tt,1),"before"):new fe(a.line,Tt,"after")};$e>=0&&$e<u.length;$e+=De){var Ze=u[$e],Ve=De>0==(Ze.level!=1),lt=Ve?Oe.begin:x(Oe.end,-1);if(Ze.from<=lt&&lt<Ze.to||(lt=Ve?Ze.from:x(Ze.to,-1),Oe.begin<=lt&&lt<Oe.end))return Fe(lt,Ve)}},we=pe(m+l,l,H);if(we)return we;var Te=l>0?H.end:x(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var jl={selectAll:wm,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),ee)},killLine:function(n){return Cs(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:fe(i.head.line+1,0)}:{from:i.head,to:fe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return Cs(n,function(i){return{from:fe(i.from().line,0),to:it(n.doc,fe(i.to().line+1,0))}})},delLineLeft:function(n){return Cs(n,function(i){return{from:fe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return Cs(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return Cs(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(fe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(fe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Dm(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return zm(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return O_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?zm(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var m=a[u].from(),y=re(n.getLine(m.line),m.ch,l);i.push(Ae(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Un(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,m=qe(n.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new fe(u.line,u.ch-1)),u.ch>0)u=new fe(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new mt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Un(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);ys(n)})},openLine:function(n){return n.replaceSelection(`
32
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Dm(n,i){var a=qe(n.doc,i),l=Tr(a);return l!=a&&(i=L(l)),dd(!0,n,l,i,1)}function O_(n,i){var a=qe(n.doc,i),l=mk(a);return l!=a&&(i=L(l)),dd(!0,n,a,i,-1)}function zm(n,i){var a=Dm(n,i.line),l=qe(n.doc,a.line),u=at(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return fe(a.line,y?0:m,a.sticky)}return a}function $c(n,i,a){if(typeof i=="string"&&(i=jl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=j}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function P_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=Ts(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&Ts(i,n.options.extraKeys,a,n)||Ts(i,n.options.keyMap,a,n)}var R_=new le;function Wl(n,i,a,l){var u=n.state.keySeq;if(u){if(Pm(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:R_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Fm(n,u+" "+i,a,l))return!0}return Fm(n,i,a,l)}function Fm(n,i,a,l){var u=P_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&en(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(fn(a),Kf(n)),!!u}function Hm(n,i){var a=Im(i,!0);return a?i.shiftKey&&!n.state.keySeq?Wl(n,"Shift-"+a,i,function(l){return $c(n,l,!0)})||Wl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return $c(n,l)}):Wl(n,a,i,function(l){return $c(n,l)}):!1}function I_(n,i,a){return Wl(n,"'"+a+"'",i,function(l){return $c(n,l,!0)})}var hd=null;function Bm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ve(Ue(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Hm(i,n);P&&(hd=l?a:null,!l&&a==88&&!sc&&(I?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!I&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&D_(i)}}function D_(n){var i=n.display.lineDiv;_e(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(O(i,"CodeMirror-crosshair"),un(document,"keyup",a),un(document,"mouseover",a))}Ye(document,"keyup",a),Ye(document,"mouseover",a)}function jm(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Wm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(fi(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||I&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(P&&a==hd){hd=null,fn(n);return}if(!(P&&(!n.which||n.which<10)&&Hm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(I_(i,n,u)||i.display.input.onKeyPress(n))}}}var z_=400,pd=function(n,i,a){this.time=n,this.pos=i,this.button=a};pd.prototype.compare=function(n,i,a){return this.time+z_>n&&Ie(i,this.pos)==0&&a==this.button};var ql,Ul;function F_(n,i){var a=+new Date;return Ul&&Ul.compare(a,n,i)?(ql=Ul=null,"triple"):ql&&ql.compare(a,n,i)?(Ul=new pd(a,n,i),ql=null,"double"):(ql=new pd(a,n,i),Ul=null,"single")}function qm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,fi(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!gd(i,n)){var l=Lo(i,n),u=xr(n),m=l?F_(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&H_(i,u,l,m,n))&&(u==1?l?j_(i,l,m,n):ml(n)==a.scroller&&fn(n):u==2?(l&&Cc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):Xf(i)))}}}function H_(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Wl(n,Rm(m,u),u,function(y){if(typeof y=="string"&&(y=jl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=j}finally{n.state.suppressEdits=!1}return x})}function B_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=q?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=I?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(I?a.altKey:a.ctrlKey)),u}function j_(n,i,a,l){h?setTimeout(F(Ug,n),0):n.curOp.focus=ve(Ue(n));var u=B_(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&Ef&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?W_(n,l,i,u):q_(n,l,i,u)}function W_(n,i,a,l){var u=n.display,m=!1,y=tn(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Xf(n)),un(u.wrapper.ownerDocument,"mouseup",y),un(u.wrapper.ownerDocument,"mousemove",x),un(u.scroller,"dragstart",S),un(u.scroller,"drop",y),m||(fn(T),l.addNew||Cc(n.doc,a,null,null,l.extend),g&&!A||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Ye(u.wrapper.ownerDocument,"mouseup",y),Ye(u.wrapper.ownerDocument,"mousemove",x),Ye(u.scroller,"dragstart",S),Ye(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Um(n,i,a){if(a=="char")return new mt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new mt(fe(i.line,0),it(n.doc,fe(i.line+1,0)));var l=a(n,i);return new mt(l.from,l.to)}function q_(n,i,a,l){h&&Xf(n);var u=n.display,m=n.doc;fn(i);var y,x,S=m.sel,T=S.ranges;if(l.addNew&&!l.extend?(x=m.sel.contains(a),x>-1?y=T[x]:y=new mt(a,a)):(y=m.sel.primary(),x=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new mt(a,a)),a=Lo(n,i,!0,!0),x=-1;else{var H=Um(n,a,l.unit);l.extend?y=ad(y,H.anchor,H.head,l.extend):y=H}l.addNew?x==-1?(x=T.length,dn(m,Er(n,T.concat([y]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&l.unit=="char"&&!l.extend?(dn(m,Er(n,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):cd(m,x,y,de):(x=0,dn(m,new tr([y],0),de),S=m.sel);var V=a;function se(Oe){if(Ie(V,Oe)!=0)if(V=Oe,l.unit=="rectangle"){for(var Fe=[],Ze=n.options.tabSize,Ve=re(qe(m,a.line).text,a.ch,Ze),lt=re(qe(m,Oe.line).text,Oe.ch,Ze),Tt=Math.min(Ve,lt),rn=Math.max(Ve,lt),$t=Math.min(a.line,Oe.line),Vn=Math.min(n.lastLine(),Math.max(a.line,Oe.line));$t<=Vn;$t++){var Ln=qe(m,$t).text,Vt=me(Ln,Tt,Ze);Tt==rn?Fe.push(new mt(fe($t,Vt),fe($t,Vt))):Ln.length>Vt&&Fe.push(new mt(fe($t,Vt),fe($t,me(Ln,rn,Ze))))}Fe.length||Fe.push(new mt(a,a)),dn(m,Er(n,S.ranges.slice(0,x).concat(Fe),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Oe)}else{var Mn=y,ln=Um(n,Oe,l.unit),Xt=Mn.anchor,Gt;Ie(ln.anchor,Xt)>0?(Gt=ln.head,Xt=fs(Mn.from(),ln.anchor)):(Gt=ln.anchor,Xt=Cn(Mn.to(),ln.head));var Dt=S.ranges.slice(0);Dt[x]=U_(n,new mt(it(m,Xt),Gt)),dn(m,Er(n,Dt,x),de)}}var ne=u.wrapper.getBoundingClientRect(),pe=0;function we(Oe){var Fe=++pe,Ze=Lo(n,Oe,!0,l.unit=="rectangle");if(Ze)if(Ie(Ze,V)!=0){n.curOp.focus=ve(Ue(n)),se(Ze);var Ve=wc(u,m);(Ze.line>=Ve.to||Ze.line<Ve.from)&&setTimeout(tn(n,function(){pe==Fe&&we(Oe)}),150)}else{var lt=Oe.clientY<ne.top?-20:Oe.clientY>ne.bottom?20:0;lt&&setTimeout(tn(n,function(){pe==Fe&&(u.scroller.scrollTop+=lt,we(Oe))}),50)}}function Te(Oe){n.state.selectingText=!1,pe=1/0,Oe&&(fn(Oe),u.input.focus()),un(u.wrapper.ownerDocument,"mousemove",$e),un(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var $e=tn(n,function(Oe){Oe.buttons===0||!xr(Oe)?Te(Oe):we(Oe)}),De=tn(n,Te);n.state.selectingText=De,Ye(u.wrapper.ownerDocument,"mousemove",$e),Ye(u.wrapper.ownerDocument,"mouseup",De)}function U_(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=at(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),x=m[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Bt(m,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(x.level==1?-1:1);H==S-1||H==S?T=V<0:T=V>0}var se=m[S+(T?-1:0)],ne=T==(se.level==1),pe=ne?se.from:se.to,we=ne?"after":"before";return a.ch==pe&&a.sticky==we?i:new mt(new fe(a.line,pe,we),l)}function Vm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&fn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(m>x.bottom||!qn(n,a))return Tn(i);m-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var T=y.gutters.childNodes[S];if(T&&T.getBoundingClientRect().right>=u){var H=U(n.doc,m),V=n.display.gutterSpecs[S];return Pt(n,a,n,H,V.className,i),Tn(i)}}}function gd(n,i){return Vm(n,i,"gutterClick",!0)}function Gm(n,i){fi(n.display,i)||V_(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function V_(n,i){return qn(n,"gutterContextMenu")?Vm(n,i,"gutterContextMenu",!1):!1}function Km(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Tl(n)}var Es={toString:function(){return"CodeMirror.Init"}},Xm={},Oc={};function G_(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(x,S,T){T!=Es&&m(x,S,T)}:m)}n.defineOption=a,n.Init=Es,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,od(l)},!0),a("indentUnit",2,od,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Ol(l),Tl(l),En(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var T=0;;){var H=S.text.indexOf(u,T);if(H==-1)break;T=H+u.length,m.push(fe(y,H))}y++});for(var x=m.length-1;x>=0;x--)_s(l.doc,u,m[x],fe(m[x].line,m[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=Es&&l.refresh()}),a("specialCharPlaceholder",kk,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!Y),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Km(l),$l(l)},!0),a("keyMap","default",function(l,u,m){var y=Nc(u),x=m!=Es&&Nc(m);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,X_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=rd(u,l.options.lineNumbers),$l(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Uf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return bs(l)},!0),a("scrollbarStyle","native",function(l){Zg(l),bs(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=rd(l.options.gutters,u),$l(l)},!0),a("firstLineNumber",1,$l,!0),a("lineNumberFormatter",function(l){return l},$l,!0),a("showCursorWhenSelecting",!1,Cl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(vs(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,K_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Cl,!0),a("singleCursorHeightPerLine",!0,Cl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ol,!0),a("addModeClass",!1,Ol,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Ol,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function K_(n,i,a){var l=a&&a!=Es;if(!i!=!l){var u=n.display.dragFunctions,m=i?Ye:un;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function X_(n){n.options.lineWrapping?(_e(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(O(n.display.wrapper,"CodeMirror-wrap"),Rf(n)),Vf(n),En(n),Tl(n),setTimeout(function(){return bs(n)},100)}function At(n,i){var a=this;if(!(this instanceof At))return new At(n,i);this.options=i=i?Z(i):{},Z(Xm,i,!1);var l=i.value;typeof l=="string"?l=new An(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new At.inputStyles[i.inputStyle](this),m=this.display=new a_(n,l,u,i);m.wrapper.CodeMirror=this,Km(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Zg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!C&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Y_(this),E_(),Oo(this),this.curOp.forceUpdate=!0,lm(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Yf(a)},20):vs(this);for(var y in Oc)Oc.hasOwnProperty(y)&&Oc[y](this,i[y],Es);em(this),i.finishInit&&i.finishInit(this);for(var x=0;x<md.length;++x)md[x](this);Po(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}At.defaults=Xm,At.optionHandlers=Oc;function Y_(n){var i=n.display;Ye(i.scroller,"mousedown",tn(n,qm)),h&&p<11?Ye(i.scroller,"dblclick",tn(n,function(S){if(!Rt(n,S)){var T=Lo(n,S);if(!(!T||gd(n,S)||fi(n.display,S))){fn(S);var H=n.findWordAt(T);Cc(n.doc,H.anchor,H.head)}}})):Ye(i.scroller,"dblclick",function(S){return Rt(n,S)||fn(S)}),Ye(i.scroller,"contextmenu",function(S){return Gm(n,S)}),Ye(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||Gm(n,S)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(S){if(S.touches.length!=1)return!1;var T=S.touches[0];return T.radiusX<=1&&T.radiusY<=1}function y(S,T){if(T.left==null)return!0;var H=T.left-S.left,V=T.top-S.top;return H*H+V*V>400}Ye(i.scroller,"touchstart",function(S){if(!Rt(n,S)&&!m(S)&&!gd(n,S)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Ye(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ye(i.scroller,"touchend",function(S){var T=i.activeTouch;if(T&&!fi(i,S)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new mt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new mt(fe(H.line,0),it(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),fn(S)}u()}),Ye(i.scroller,"touchcancel",u),Ye(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Al(n,i.scroller.scrollTop),No(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Ye(i.scroller,"mousewheel",function(S){return rm(n,S)}),Ye(i.scroller,"DOMMouseScroll",function(S){return rm(n,S)}),Ye(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Rt(n,S)||Fi(S)},over:function(S){Rt(n,S)||(C_(n,S),Fi(S))},start:function(S){return T_(n,S)},drop:tn(n,S_),leave:function(S){Rt(n,S)||Nm(n)}};var x=i.input.getField();Ye(x,"keyup",function(S){return jm.call(n,S)}),Ye(x,"keydown",tn(n,Bm)),Ye(x,"keypress",tn(n,Wm)),Ye(x,"focus",function(S){return Yf(n,S)}),Ye(x,"blur",function(S){return vs(n,S)})}var md=[];At.defineInitHook=function(n){return md.push(n)};function Vl(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=wl(n,i).state:a="prev");var y=n.options.tabSize,x=qe(u,i),S=re(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(x.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(m,x.text.slice(T.length),x.text),H==j||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=re(qe(u,i-1).text,null,y):H=0:a=="add"?H=S+n.options.indentUnit:a=="subtract"?H=S-n.options.indentUnit:typeof a=="number"&&(H=S+a),H=Math.max(0,H);var V="",se=0;if(n.options.indentWithTabs)for(var ne=Math.floor(H/y);ne;--ne)se+=y,V+=" ";if(se<H&&(V+=Ae(H-se)),V!=T)return _s(u,V,fe(i,0),fe(i,T.length),"+input"),x.stateAfter=null,!0;for(var pe=0;pe<u.sel.ranges.length;pe++){var we=u.sel.ranges[pe];if(we.head.line==i&&we.head.ch<T.length){var Te=fe(i,T.length);cd(u,pe,new mt(Te,Te));break}}}var Ar=null;function Pc(n){Ar=n}function vd(n,i,a,l,u){var m=n.doc;n.display.shift=!1,l||(l=m.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=hr(i),T=null;if(x&&l.ranges.length>1)if(Ar&&Ar.text.join(`
33
+ `)==i){if(l.ranges.length%Ar.text.length==0){T=[];for(var H=0;H<Ar.text.length;H++)T.push(m.splitLines(Ar.text[H]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=be(S,function($e){return[$e]}));for(var V=n.curOp.updateInput,se=l.ranges.length-1;se>=0;se--){var ne=l.ranges[se],pe=ne.from(),we=ne.to();ne.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):x&&Ar&&Ar.lineWise&&Ar.text.join(`
34
+ `)==S.join(`
35
+ `)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[se%T.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};ks(n.doc,Te),en(n,"inputRead",n,Te)}i&&!x&&Zm(n,i),ys(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Ym(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Un(i,function(){return vd(i,a,0,null,"paste")}),!0}function Zm(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(i.indexOf(m.electricChars.charAt(x))>-1){y=Vl(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Vl(n,u.head.line,"smart"));y&&en(n,"electricInput",n,u.head.line)}}}function Jm(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:fe(u,0),head:fe(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function yd(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function Qm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),M&&(n.style.border="1px solid black"),i}function Z_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Pe(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&tn(this,i[l])(this,u,y),Pt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](Nc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:bn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,En(this)}),removeOverlay:bn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,En(this);return}}}),indentLine:bn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),ye(this.doc,l)&&Vl(this,l,u,m)}),indentSelection:bn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>m&&(Vl(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&ys(this));else{var S=x.from(),T=x.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V<m;++V)Vl(this,V,l);var se=this.doc.sel.ranges;S.ch==0&&u.length==se.length&&se[y].from().ch>0&&cd(this.doc,y,new mt(S,se[y].to()),ee)}}}),getTokenAt:function(l,u){return cg(this,l,u)},getLineTokens:function(l,u){return cg(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=it(this.doc,l);var u=sg(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]<x)m=T+1;else{S=u[T*2+2];break}}var H=S?S.indexOf("overlay "):-1;return H<0?S:H==0?null:S.slice(0,H-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&m.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var T=y[x[u][S]];T&&m.push(T)}else x.helperType&&y[x.helperType]?m.push(y[x.helperType]):y[x.name]&&m.push(y[x.name]);for(var H=0;H<y._global.length;H++){var V=y._global[H];V.pred(x,this)&&ce(m,V.val)==-1&&m.push(V.val)}return m},getStateAfter:function(l,u){var m=this.doc;return l=rg(m,l??m.first+m.size-1),wl(this,l+1,u).state},cursorCoords:function(l,u){var m,y=this.doc.sel.primary();return l==null?m=y.head:typeof l=="object"?m=it(this.doc,l):m=l?y.from():y.to(),Cr(this,m,u||"page")},charCoords:function(l,u){return mc(this,it(this.doc,l),u||"page")},coordsChar:function(l,u){return l=zg(this,l,u||"page"),jf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=zg(this,{top:l,left:0},u||"page").top,U(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,m){var y=!1,x;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),x=qe(this.doc,l)}else x=l;return gc(this,x,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-ui(x):0)},defaultTextHeight:function(){return gs(this.display)},defaultCharWidth:function(){return ms(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,x){var S=this.display;l=Cr(this,it(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(S.wrapper.clientHeight,this.doc.height),se=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>se&&(H=se-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",x=="right"?(H=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),m&&Kk(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:bn(Bm),triggerOnKeyPress:bn(Wm),triggerOnKeyUp:jm,triggerOnMouseDown:bn(qm),execCommand:function(l){if(jl.hasOwnProperty(l))return jl[l].call(null,this)},triggerElectric:bn(function(l){Zm(this,l)}),findPosH:function(l,u,m,y){var x=1;u<0&&(x=-1,u=-u);for(var S=it(this.doc,l),T=0;T<u&&(S=bd(this.doc,S,x,m,y),!S.hitSide);++T);return S},moveH:bn(function(l,u){var m=this;this.extendSelectionsBy(function(y){return m.display.shift||m.doc.extend||y.empty()?bd(m.doc,y.head,l,u,m.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:bn(function(l,u){var m=this.doc.sel,y=this.doc;m.somethingSelected()?y.replaceSelection("",null,"+delete"):Cs(this,function(x){var S=bd(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,m,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var T=it(this.doc,l),H=0;H<u;++H){var V=Cr(this,T,"div");if(S==null?S=V.left:V.left=S,T=ev(this,V,x,m),T.hitSide)break}return T},moveV:bn(function(l,u){var m=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(H){if(S)return l<0?H.from():H.to();var V=Cr(m,H.head,"div");H.goalColumn!=null&&(V.left=H.goalColumn),x.push(V.left);var se=ev(m,V,l,u);return u=="page"&&H==y.sel.primary()&&Jf(m,mc(m,se,"div").top-V.top),se},he),x.length)for(var T=0;T<y.sel.ranges.length;T++)y.sel.ranges[T].goalColumn=x[T]}),findWordAt:function(l){var u=this.doc,m=qe(u,l.line).text,y=l.ch,x=l.ch;if(m){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==m.length)&&y?--y:++x;for(var T=m.charAt(y),H=ct(T,S)?function(V){return ct(V,S)}:/\s/.test(T)?function(V){return/\s/.test(V)}:function(V){return!/\s/.test(V)&&!ct(V)};y>0&&H(m.charAt(y-1));)--y;for(;x<m.length&&H(m.charAt(x));)++x}return new mt(fe(l.line,y),fe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(Ue(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:bn(function(l,u){El(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Vr(this)-this.display.barHeight,width:l.scrollWidth-Vr(this)-this.display.barWidth,clientHeight:zf(this),clientWidth:Eo(this)}},scrollIntoView:bn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:fe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Xk(this,l):Gg(this,l.from,l.to,l.margin)}),setSize:bn(function(l,u){var m=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Rg(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(S){if(S.widgets){for(var T=0;T<S.widgets.length;T++)if(S.widgets[T].noHScroll){qi(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(l){return Un(this,l)},startOperation:function(){return Oo(this)},endOperation:function(){return Po(this)},refresh:bn(function(){var l=this.display.cachedTextHeight;En(this),this.curOp.forceUpdate=!0,Tl(this),El(this,this.doc.scrollLeft,this.doc.scrollTop),td(this.display),(l==null||Math.abs(l-gs(this.display))>.5||this.options.lineWrapping)&&Vf(this),Pt(this,"refresh",this)}),swapDoc:bn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),lm(this,l),Tl(this),this.display.input.reset(),El(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,en(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function bd(n,i,a,l,u){var m=i,y=a,x=qe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+S;return De<n.first||De>=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),x=qe(n,De))}function H(De){var Oe;if(l=="codepoint"){var Fe=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Fe))Oe=null;else{var Ze=a>0?Fe>=55296&&Fe<56320:Fe>=56320&&Fe<57343;Oe=new fe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ze?2:1))),-a)}}else u?Oe=$_(n.cm,x,i,a):Oe=fd(x,i,a);if(Oe==null)if(!De&&T())i=dd(u,n.cm,x,i.line,S);else return!1;else i=Oe;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,se=l=="group",ne=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=x.text.charAt(i.ch)||`
36
+ `,Te=ct(we,ne)?"w":se&&we==`
37
+ `?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var $e=Ac(n,i,m,y,!0);return gt(m,$e)&&($e.hitSide=!0),$e}function ev(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*gs(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=jf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var xt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};xt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,yd(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Ye(u,"paste",function(x){!m(x)||Rt(l,x)||Ym(x,l)||p<=11&&setTimeout(tn(l,function(){return i.updateFromDOM()}),20)}),Ye(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Ye(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Ye(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ye(u,"touchstart",function(){return a.forceCompositionEnd()}),Ye(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||Rt(l,x))){if(l.somethingSelected())Pc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Jm(l);Pc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,ee),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Ar.text.join(`
38
+ `);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=Qm(),V=H.firstChild;yd(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Ar.text.join(`
39
+ `);var se=ve(He(u));Ee(V),setTimeout(function(){l.display.lineSpace.removeChild(H),se.focus(),se==u&&a.showPrimarySelection()},50)}}Ye(u,"copy",y),Ye(u,"cut",y)},xt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},xt.prototype.prepareSelection=function(){var n=qg(this.cm,!1);return n.focus=ve(He(this.div))==this.div,n},xt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},xt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var m=Rc(i,n.anchorNode,n.anchorOffset),y=Rc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(fs(m,y),l)==0&&Ie(Cn(m,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&tv(i,l)||{node:x[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&tv(i,u);if(!T){var H=x[x.length-1].measure,V=H.maps?H.maps[H.maps.length-1]:H.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!S||!T){n.removeAllRanges();return}var se=n.rangeCount&&n.getRangeAt(0),ne;try{ne=B(S.node,S.offset,T.offset,T.node)}catch{}ne&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),ne.collapsed||(n.removeAllRanges(),n.addRange(ne))):(n.removeAllRanges(),n.addRange(ne)),se&&n.anchorNode==null?n.addRange(se):s&&this.startGracePeriod()),this.rememberSelection()}},xt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},xt.prototype.showMultipleSelections=function(n){_(this.cm.display.cursorDiv,n.cursors),_(this.cm.display.selectionDiv,n.selection)},xt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},xt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ae(this.div,i)},xt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(He(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},xt.prototype.blur=function(){this.div.blur()},xt.prototype.getField=function(){return this.div},xt.prototype.supportsTouch=function(){return!0},xt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Un(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},xt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},xt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(D&&b&&this.cm.display.gutterSpecs.length&&J_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Rc(i,n.anchorNode,n.anchorOffset),l=Rc(i,n.focusNode,n.focusOffset);a&&l&&Un(i,function(){dn(i.doc,Vi(a,l),ee),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},xt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=fe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var m,y,x;l.line==i.viewFrom||(m=Mo(n,l.line))==0?(y=L(i.view[0].line),x=i.view[0].node):(y=L(i.view[m].line),x=i.view[m-1].node.nextSibling);var S=Mo(n,u.line),T,H;if(S==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=L(i.view[S+1].line)-1,H=i.view[S+1].node.previousSibling),!x)return!1;for(var V=n.doc.splitLines(Q_(n,x,H,y,T)),se=ai(n.doc,fe(y,0),fe(T,qe(n.doc,T).text.length));V.length>1&&se.length>1;)if(xe(V)==xe(se))V.pop(),se.pop(),T--;else if(V[0]==se[0])V.shift(),se.shift(),y++;else break;for(var ne=0,pe=0,we=V[0],Te=se[0],$e=Math.min(we.length,Te.length);ne<$e&&we.charCodeAt(ne)==Te.charCodeAt(ne);)++ne;for(var De=xe(V),Oe=xe(se),Fe=Math.min(De.length-(V.length==1?ne:0),Oe.length-(se.length==1?ne:0));pe<Fe&&De.charCodeAt(De.length-pe-1)==Oe.charCodeAt(Oe.length-pe-1);)++pe;if(V.length==1&&se.length==1&&y==l.line)for(;ne&&ne>l.ch&&De.charCodeAt(De.length-pe-1)==Oe.charCodeAt(Oe.length-pe-1);)ne--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(ne).replace(/\u200b+$/,"");var Ze=fe(y,ne),Ve=fe(T,se.length?xe(se).length-pe:0);if(V.length>1||V[0]||Ie(Ze,Ve))return _s(n.doc,V,Ze,Ve,"+input"),!0},xt.prototype.ensurePolled=function(){this.forceCompositionEnd()},xt.prototype.reset=function(){this.forceCompositionEnd()},xt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},xt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Un(this.cm,function(){return En(n.cm)})},xt.prototype.setUneditable=function(n){n.contentEditable="false"},xt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||tn(this.cm,vd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},xt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},xt.prototype.onContextMenu=function(){},xt.prototype.resetPosition=function(){},xt.prototype.needsContentAttribute=!0;function tv(n,i){var a=Ff(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=Mg(a,l,i.line),m=at(l,n.doc.direction),y="left";if(m){var x=Bt(m,i.ch);y=x%2?"right":"left"}var S=Og(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function J_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function As(n,i){return i&&(n.bad=!0),n}function Q_(n,i,a,l,u){var m="",y=!1,x=n.doc.lineSeparator(),S=!1;function T(ne){return function(pe){return pe.id==ne}}function H(){y&&(m+=x,S&&(m+=x),y=S=!1)}function V(ne){ne&&(H(),m+=ne)}function se(ne){if(ne.nodeType==1){var pe=ne.getAttribute("cm-text");if(pe){V(pe);return}var we=ne.getAttribute("cm-marker"),Te;if(we){var $e=n.findMarks(fe(l,0),fe(u+1,0),T(+we));$e.length&&(Te=$e[0].find(0))&&V(ai(n.doc,Te.from,Te.to).join(x));return}if(ne.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(ne.nodeName);if(!/^br$/i.test(ne.nodeName)&&ne.textContent.length==0)return;De&&H();for(var Oe=0;Oe<ne.childNodes.length;Oe++)se(ne.childNodes[Oe]);/^(pre|p)$/i.test(ne.nodeName)&&(S=!0),De&&(y=!0)}else ne.nodeType==3&&V(ne.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(i),i!=a;)i=i.nextSibling,S=!1;return m}function Rc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return As(n.clipPos(fe(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var m=n.display.view[u];if(m.node==l)return eS(m,i,a)}}function eS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ae(l,i))return As(fe(L(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var m=n.rest?xe(n.rest):n.line;return As(fe(L(m),m.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var S=n.measure,T=S.maps;function H(Te,$e,De){for(var Oe=-1;Oe<(T?T.length:0);Oe++)for(var Fe=Oe<0?S.map:T[Oe],Ze=0;Ze<Fe.length;Ze+=3){var Ve=Fe[Ze+2];if(Ve==Te||Ve==$e){var lt=L(Oe<0?n.line:n.rest[Oe]),Tt=Fe[Ze]+De;return(De<0||Ve!=Te)&&(Tt=Fe[Ze+(De?1:0)]),fe(lt,Tt)}}}var V=H(y,x,a);if(V)return As(V,u);for(var se=x.nextSibling,ne=y?y.nodeValue.length-a:0;se;se=se.nextSibling){if(V=H(se,se.firstChild,0),V)return As(fe(V.line,V.ch-ne),u);ne+=se.textContent.length}for(var pe=x.previousSibling,we=a;pe;pe=pe.previousSibling){if(V=H(pe,pe.firstChild,-1),V)return As(fe(V.line,V.ch+we),u);we+=pe.textContent.length}}var jt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};jt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),M&&(u.style.width="0px"),Ye(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ye(u,"paste",function(y){Rt(l,y)||Ym(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Rt(l,y)){if(l.somethingSelected())Pc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Jm(l);Pc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,ee):(a.prevInput="",u.value=x.text.join(`
40
+ `),Ee(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ye(u,"cut",m),Ye(u,"copy",m),Ye(n.scroller,"paste",function(y){if(!(fi(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Ye(n.lineSpace,"selectstart",function(y){fi(n,y)||fn(y)}),Ye(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Ye(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},jt.prototype.createField=function(n){this.wrapper=Qm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;yd(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},jt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},jt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=qg(n);if(n.options.moveInputWithCursor){var u=Cr(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},jt.prototype.showSelection=function(n){var i=this.cm,a=i.display;_(a.cursorDiv,n.cursors),_(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},jt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ee(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},jt.prototype.getField=function(){return this.textarea},jt.prototype.supportsTouch=function(){return!1},jt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||ve(He(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},jt.prototype.blur=function(){this.textarea.blur()},jt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jt.prototype.receivedFocus=function(){this.slowPoll()},jt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},jt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},jt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Bi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||I&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Un(i,function(){vd(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
41
+ `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},jt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=Lo(a,n),y=l.scroller.scrollTop;if(!m||P)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&tn(a,dn)(a.doc,Vi(m),ee);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
42
+ top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px;
43
+ z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
44
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=ne,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te="​"+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"​",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function ne(){if(i.contextMenuPending==ne&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?tn(a,wm)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Fi(n);var pe=function(){un(window,"mouseup",pe),setTimeout(ne,20)};Ye(window,"mouseup",pe)}else setTimeout(ne,50)},jt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},jt.prototype.setUneditable=function(){},jt.prototype.needsContentAttribute=!1;function tS(n,i){if(i=i?Z(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ve(He(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ye(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(un(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=At(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function nS(n){n.off=un,n.on=Ye,n.wheelEventPixels=c_,n.Doc=An,n.splitLines=hr,n.countColumn=re,n.findColumn=me,n.isWordChar=et,n.Pass=j,n.signal=Pt,n.Line=ds,n.changeEnd=Gi,n.scrollbarModel=Yg,n.Pos=fe,n.cmpPos=Ie,n.modes=ss,n.mimeModes=_r,n.resolveMode=ls,n.getMode=as,n.modeExtensions=ji,n.extendMode=cs,n.copyState=qr,n.startState=us,n.innerMode=yl,n.commands=jl,n.keyMap=hi,n.keyName=Im,n.isModifierKey=Pm,n.lookupKey=Ts,n.normalizeKeyMap=N_,n.StringStream=It,n.SharedTextMarker=Fl,n.TextMarker=Xi,n.LineWidget=zl,n.e_preventDefault=fn,n.e_stopPropagation=is,n.e_stop=Fi,n.addClass=_e,n.contains=ae,n.rmClass=O,n.keyNames=Yi}G_(At),Z_(At);var rS="iter insert remove copy getEditor constructor".split(" ");for(var Ic in An.prototype)An.prototype.hasOwnProperty(Ic)&&ce(rS,Ic)<0&&(At.prototype[Ic]=(function(n){return function(){return n.apply(this.doc,arguments)}})(An.prototype[Ic]));return wr(An),At.inputStyles={textarea:jt,contenteditable:xt},At.defineMode=function(n){!At.defaults.mode&&n!="null"&&(At.defaults.mode=n),Sr.apply(this,arguments)},At.defineMIME=Co,At.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),At.defineMIME("text/plain","null"),At.defineExtension=function(n,i){At.prototype[n]=i},At.defineDocExtension=function(n,i){An.prototype[n]=i},At.fromTextArea=tS,nS(At),At.version="5.65.18",At}))})(lu)),lu.exports}var wM=So();const xM=Op(wM);var Fd={},Lr={};const kM="Á",_M="á",SM="Ă",TM="ă",CM="∾",EM="∿",AM="∾̳",LM="Â",MM="â",NM="´",$M="А",OM="а",PM="Æ",RM="æ",IM="⁡",DM="𝔄",zM="𝔞",FM="À",HM="à",BM="ℵ",jM="ℵ",WM="Α",qM="α",UM="Ā",VM="ā",GM="⨿",KM="&",XM="&",YM="⩕",ZM="⩓",JM="∧",QM="⩜",eN="⩘",tN="⩚",nN="∠",rN="⦤",iN="∠",oN="⦨",sN="⦩",lN="⦪",aN="⦫",cN="⦬",uN="⦭",fN="⦮",dN="⦯",hN="∡",pN="∟",gN="⊾",mN="⦝",vN="∢",yN="Å",bN="⍼",wN="Ą",xN="ą",kN="𝔸",_N="𝕒",SN="⩯",TN="≈",CN="⩰",EN="≊",AN="≋",LN="'",MN="⁡",NN="≈",$N="≊",ON="Å",PN="å",RN="𝒜",IN="𝒶",DN="≔",zN="*",FN="≈",HN="≍",BN="Ã",jN="ã",WN="Ä",qN="ä",UN="∳",VN="⨑",GN="≌",KN="϶",XN="‵",YN="∽",ZN="⋍",JN="∖",QN="⫧",e$="⊽",t$="⌅",n$="⌆",r$="⌅",i$="⎵",o$="⎶",s$="≌",l$="Б",a$="б",c$="„",u$="∵",f$="∵",d$="∵",h$="⦰",p$="϶",g$="ℬ",m$="ℬ",v$="Β",y$="β",b$="ℶ",w$="≬",x$="𝔅",k$="𝔟",_$="⋂",S$="◯",T$="⋃",C$="⨀",E$="⨁",A$="⨂",L$="⨆",M$="★",N$="▽",$$="△",O$="⨄",P$="⋁",R$="⋀",I$="⤍",D$="⧫",z$="▪",F$="▴",H$="▾",B$="◂",j$="▸",W$="␣",q$="▒",U$="░",V$="▓",G$="█",K$="=⃥",X$="≡⃥",Y$="⫭",Z$="⌐",J$="𝔹",Q$="𝕓",eO="⊥",tO="⊥",nO="⋈",rO="⧉",iO="┐",oO="╕",sO="╖",lO="╗",aO="┌",cO="╒",uO="╓",fO="╔",dO="─",hO="═",pO="┬",gO="╤",mO="╥",vO="╦",yO="┴",bO="╧",wO="╨",xO="╩",kO="⊟",_O="⊞",SO="⊠",TO="┘",CO="╛",EO="╜",AO="╝",LO="└",MO="╘",NO="╙",$O="╚",OO="│",PO="║",RO="┼",IO="╪",DO="╫",zO="╬",FO="┤",HO="╡",BO="╢",jO="╣",WO="├",qO="╞",UO="╟",VO="╠",GO="‵",KO="˘",XO="˘",YO="¦",ZO="𝒷",JO="ℬ",QO="⁏",eP="∽",tP="⋍",nP="⧅",rP="\\",iP="⟈",oP="•",sP="•",lP="≎",aP="⪮",cP="≏",uP="≎",fP="≏",dP="Ć",hP="ć",pP="⩄",gP="⩉",mP="⩋",vP="∩",yP="⋒",bP="⩇",wP="⩀",xP="ⅅ",kP="∩︀",_P="⁁",SP="ˇ",TP="ℭ",CP="⩍",EP="Č",AP="č",LP="Ç",MP="ç",NP="Ĉ",$P="ĉ",OP="∰",PP="⩌",RP="⩐",IP="Ċ",DP="ċ",zP="¸",FP="¸",HP="⦲",BP="¢",jP="·",WP="·",qP="𝔠",UP="ℭ",VP="Ч",GP="ч",KP="✓",XP="✓",YP="Χ",ZP="χ",JP="ˆ",QP="≗",e2="↺",t2="↻",n2="⊛",r2="⊚",i2="⊝",o2="⊙",s2="®",l2="Ⓢ",a2="⊖",c2="⊕",u2="⊗",f2="○",d2="⧃",h2="≗",p2="⨐",g2="⫯",m2="⧂",v2="∲",y2="”",b2="’",w2="♣",x2="♣",k2=":",_2="∷",S2="⩴",T2="≔",C2="≔",E2=",",A2="@",L2="∁",M2="∘",N2="∁",$2="ℂ",O2="≅",P2="⩭",R2="≡",I2="∮",D2="∯",z2="∮",F2="𝕔",H2="ℂ",B2="∐",j2="∐",W2="©",q2="©",U2="℗",V2="∳",G2="↵",K2="✗",X2="⨯",Y2="𝒞",Z2="𝒸",J2="⫏",Q2="⫑",eR="⫐",tR="⫒",nR="⋯",rR="⤸",iR="⤵",oR="⋞",sR="⋟",lR="↶",aR="⤽",cR="⩈",uR="⩆",fR="≍",dR="∪",hR="⋓",pR="⩊",gR="⊍",mR="⩅",vR="∪︀",yR="↷",bR="⤼",wR="⋞",xR="⋟",kR="⋎",_R="⋏",SR="¤",TR="↶",CR="↷",ER="⋎",AR="⋏",LR="∲",MR="∱",NR="⌭",$R="†",OR="‡",PR="ℸ",RR="↓",IR="↡",DR="⇓",zR="‐",FR="⫤",HR="⊣",BR="⤏",jR="˝",WR="Ď",qR="ď",UR="Д",VR="д",GR="‡",KR="⇊",XR="ⅅ",YR="ⅆ",ZR="⤑",JR="⩷",QR="°",eI="∇",tI="Δ",nI="δ",rI="⦱",iI="⥿",oI="𝔇",sI="𝔡",lI="⥥",aI="⇃",cI="⇂",uI="´",fI="˙",dI="˝",hI="`",pI="˜",gI="⋄",mI="⋄",vI="⋄",yI="♦",bI="♦",wI="¨",xI="ⅆ",kI="ϝ",_I="⋲",SI="÷",TI="÷",CI="⋇",EI="⋇",AI="Ђ",LI="ђ",MI="⌞",NI="⌍",$I="$",OI="𝔻",PI="𝕕",RI="¨",II="˙",DI="⃜",zI="≐",FI="≑",HI="≐",BI="∸",jI="∔",WI="⊡",qI="⌆",UI="∯",VI="¨",GI="⇓",KI="⇐",XI="⇔",YI="⫤",ZI="⟸",JI="⟺",QI="⟹",eD="⇒",tD="⊨",nD="⇑",rD="⇕",iD="∥",oD="⤓",sD="↓",lD="↓",aD="⇓",cD="⇵",uD="̑",fD="⇊",dD="⇃",hD="⇂",pD="⥐",gD="⥞",mD="⥖",vD="↽",yD="⥟",bD="⥗",wD="⇁",xD="↧",kD="⊤",_D="⤐",SD="⌟",TD="⌌",CD="𝒟",ED="𝒹",AD="Ѕ",LD="ѕ",MD="⧶",ND="Đ",$D="đ",OD="⋱",PD="▿",RD="▾",ID="⇵",DD="⥯",zD="⦦",FD="Џ",HD="џ",BD="⟿",jD="É",WD="é",qD="⩮",UD="Ě",VD="ě",GD="Ê",KD="ê",XD="≖",YD="≕",ZD="Э",JD="э",QD="⩷",ez="Ė",tz="ė",nz="≑",rz="ⅇ",iz="≒",oz="𝔈",sz="𝔢",lz="⪚",az="È",cz="è",uz="⪖",fz="⪘",dz="⪙",hz="∈",pz="⏧",gz="ℓ",mz="⪕",vz="⪗",yz="Ē",bz="ē",wz="∅",xz="∅",kz="◻",_z="∅",Sz="▫",Tz=" ",Cz=" ",Ez=" ",Az="Ŋ",Lz="ŋ",Mz=" ",Nz="Ę",$z="ę",Oz="𝔼",Pz="𝕖",Rz="⋕",Iz="⧣",Dz="⩱",zz="ε",Fz="Ε",Hz="ε",Bz="ϵ",jz="≖",Wz="≕",qz="≂",Uz="⪖",Vz="⪕",Gz="⩵",Kz="=",Xz="≂",Yz="≟",Zz="⇌",Jz="≡",Qz="⩸",eF="⧥",tF="⥱",nF="≓",rF="ℯ",iF="ℰ",oF="≐",sF="⩳",lF="≂",aF="Η",cF="η",uF="Ð",fF="ð",dF="Ë",hF="ë",pF="€",gF="!",mF="∃",vF="∃",yF="ℰ",bF="ⅇ",wF="ⅇ",xF="≒",kF="Ф",_F="ф",SF="♀",TF="ffi",CF="ff",EF="ffl",AF="𝔉",LF="𝔣",MF="fi",NF="◼",$F="▪",OF="fj",PF="♭",RF="fl",IF="▱",DF="ƒ",zF="𝔽",FF="𝕗",HF="∀",BF="∀",jF="⋔",WF="⫙",qF="ℱ",UF="⨍",VF="½",GF="⅓",KF="¼",XF="⅕",YF="⅙",ZF="⅛",JF="⅔",QF="⅖",eH="¾",tH="⅗",nH="⅜",rH="⅘",iH="⅚",oH="⅝",sH="⅞",lH="⁄",aH="⌢",cH="𝒻",uH="ℱ",fH="ǵ",dH="Γ",hH="γ",pH="Ϝ",gH="ϝ",mH="⪆",vH="Ğ",yH="ğ",bH="Ģ",wH="Ĝ",xH="ĝ",kH="Г",_H="г",SH="Ġ",TH="ġ",CH="≥",EH="≧",AH="⪌",LH="⋛",MH="≥",NH="≧",$H="⩾",OH="⪩",PH="⩾",RH="⪀",IH="⪂",DH="⪄",zH="⋛︀",FH="⪔",HH="𝔊",BH="𝔤",jH="≫",WH="⋙",qH="⋙",UH="ℷ",VH="Ѓ",GH="ѓ",KH="⪥",XH="≷",YH="⪒",ZH="⪤",JH="⪊",QH="⪊",e3="⪈",t3="≩",n3="⪈",r3="≩",i3="⋧",o3="𝔾",s3="𝕘",l3="`",a3="≥",c3="⋛",u3="≧",f3="⪢",d3="≷",h3="⩾",p3="≳",g3="𝒢",m3="ℊ",v3="≳",y3="⪎",b3="⪐",w3="⪧",x3="⩺",k3=">",_3=">",S3="≫",T3="⋗",C3="⦕",E3="⩼",A3="⪆",L3="⥸",M3="⋗",N3="⋛",$3="⪌",O3="≷",P3="≳",R3="≩︀",I3="≩︀",D3="ˇ",z3=" ",F3="½",H3="ℋ",B3="Ъ",j3="ъ",W3="⥈",q3="↔",U3="⇔",V3="↭",G3="^",K3="ℏ",X3="Ĥ",Y3="ĥ",Z3="♥",J3="♥",Q3="…",eB="⊹",tB="𝔥",nB="ℌ",rB="ℋ",iB="⤥",oB="⤦",sB="⇿",lB="∻",aB="↩",cB="↪",uB="𝕙",fB="ℍ",dB="―",hB="─",pB="𝒽",gB="ℋ",mB="ℏ",vB="Ħ",yB="ħ",bB="≎",wB="≏",xB="⁃",kB="‐",_B="Í",SB="í",TB="⁣",CB="Î",EB="î",AB="И",LB="и",MB="İ",NB="Е",$B="е",OB="¡",PB="⇔",RB="𝔦",IB="ℑ",DB="Ì",zB="ì",FB="ⅈ",HB="⨌",BB="∭",jB="⧜",WB="℩",qB="IJ",UB="ij",VB="Ī",GB="ī",KB="ℑ",XB="ⅈ",YB="ℐ",ZB="ℑ",JB="ı",QB="ℑ",e5="⊷",t5="Ƶ",n5="⇒",r5="℅",i5="∞",o5="⧝",s5="ı",l5="⊺",a5="∫",c5="∬",u5="ℤ",f5="∫",d5="⊺",h5="⋂",p5="⨗",g5="⨼",m5="⁣",v5="⁢",y5="Ё",b5="ё",w5="Į",x5="į",k5="𝕀",_5="𝕚",S5="Ι",T5="ι",C5="⨼",E5="¿",A5="𝒾",L5="ℐ",M5="∈",N5="⋵",$5="⋹",O5="⋴",P5="⋳",R5="∈",I5="⁢",D5="Ĩ",z5="ĩ",F5="І",H5="і",B5="Ï",j5="ï",W5="Ĵ",q5="ĵ",U5="Й",V5="й",G5="𝔍",K5="𝔧",X5="ȷ",Y5="𝕁",Z5="𝕛",J5="𝒥",Q5="𝒿",e8="Ј",t8="ј",n8="Є",r8="є",i8="Κ",o8="κ",s8="ϰ",l8="Ķ",a8="ķ",c8="К",u8="к",f8="𝔎",d8="𝔨",h8="ĸ",p8="Х",g8="х",m8="Ќ",v8="ќ",y8="𝕂",b8="𝕜",w8="𝒦",x8="𝓀",k8="⇚",_8="Ĺ",S8="ĺ",T8="⦴",C8="ℒ",E8="Λ",A8="λ",L8="⟨",M8="⟪",N8="⦑",$8="⟨",O8="⪅",P8="ℒ",R8="«",I8="⇤",D8="⤟",z8="←",F8="↞",H8="⇐",B8="⤝",j8="↩",W8="↫",q8="⤹",U8="⥳",V8="↢",G8="⤙",K8="⤛",X8="⪫",Y8="⪭",Z8="⪭︀",J8="⤌",Q8="⤎",ej="❲",tj="{",nj="[",rj="⦋",ij="⦏",oj="⦍",sj="Ľ",lj="ľ",aj="Ļ",cj="ļ",uj="⌈",fj="{",dj="Л",hj="л",pj="⤶",gj="“",mj="„",vj="⥧",yj="⥋",bj="↲",wj="≤",xj="≦",kj="⟨",_j="⇤",Sj="←",Tj="←",Cj="⇐",Ej="⇆",Aj="↢",Lj="⌈",Mj="⟦",Nj="⥡",$j="⥙",Oj="⇃",Pj="⌊",Rj="↽",Ij="↼",Dj="⇇",zj="↔",Fj="↔",Hj="⇔",Bj="⇆",jj="⇋",Wj="↭",qj="⥎",Uj="↤",Vj="⊣",Gj="⥚",Kj="⋋",Xj="⧏",Yj="⊲",Zj="⊴",Jj="⥑",Qj="⥠",eW="⥘",tW="↿",nW="⥒",rW="↼",iW="⪋",oW="⋚",sW="≤",lW="≦",aW="⩽",cW="⪨",uW="⩽",fW="⩿",dW="⪁",hW="⪃",pW="⋚︀",gW="⪓",mW="⪅",vW="⋖",yW="⋚",bW="⪋",wW="⋚",xW="≦",kW="≶",_W="≶",SW="⪡",TW="≲",CW="⩽",EW="≲",AW="⥼",LW="⌊",MW="𝔏",NW="𝔩",$W="≶",OW="⪑",PW="⥢",RW="↽",IW="↼",DW="⥪",zW="▄",FW="Љ",HW="љ",BW="⇇",jW="≪",WW="⋘",qW="⌞",UW="⇚",VW="⥫",GW="◺",KW="Ŀ",XW="ŀ",YW="⎰",ZW="⎰",JW="⪉",QW="⪉",e4="⪇",t4="≨",n4="⪇",r4="≨",i4="⋦",o4="⟬",s4="⇽",l4="⟦",a4="⟵",c4="⟵",u4="⟸",f4="⟷",d4="⟷",h4="⟺",p4="⟼",g4="⟶",m4="⟶",v4="⟹",y4="↫",b4="↬",w4="⦅",x4="𝕃",k4="𝕝",_4="⨭",S4="⨴",T4="∗",C4="_",E4="↙",A4="↘",L4="◊",M4="◊",N4="⧫",$4="(",O4="⦓",P4="⇆",R4="⌟",I4="⇋",D4="⥭",z4="‎",F4="⊿",H4="‹",B4="𝓁",j4="ℒ",W4="↰",q4="↰",U4="≲",V4="⪍",G4="⪏",K4="[",X4="‘",Y4="‚",Z4="Ł",J4="ł",Q4="⪦",eq="⩹",tq="<",nq="<",rq="≪",iq="⋖",oq="⋋",sq="⋉",lq="⥶",aq="⩻",cq="◃",uq="⊴",fq="◂",dq="⦖",hq="⥊",pq="⥦",gq="≨︀",mq="≨︀",vq="¯",yq="♂",bq="✠",wq="✠",xq="↦",kq="↦",_q="↧",Sq="↤",Tq="↥",Cq="▮",Eq="⨩",Aq="М",Lq="м",Mq="—",Nq="∺",$q="∡",Oq=" ",Pq="ℳ",Rq="𝔐",Iq="𝔪",Dq="℧",zq="µ",Fq="*",Hq="⫰",Bq="∣",jq="·",Wq="⊟",qq="−",Uq="∸",Vq="⨪",Gq="∓",Kq="⫛",Xq="…",Yq="∓",Zq="⊧",Jq="𝕄",Qq="𝕞",e6="∓",t6="𝓂",n6="ℳ",r6="∾",i6="Μ",o6="μ",s6="⊸",l6="⊸",a6="∇",c6="Ń",u6="ń",f6="∠⃒",d6="≉",h6="⩰̸",p6="≋̸",g6="ʼn",m6="≉",v6="♮",y6="ℕ",b6="♮",w6=" ",x6="≎̸",k6="≏̸",_6="⩃",S6="Ň",T6="ň",C6="Ņ",E6="ņ",A6="≇",L6="⩭̸",M6="⩂",N6="Н",$6="н",O6="–",P6="⤤",R6="↗",I6="⇗",D6="↗",z6="≠",F6="≐̸",H6="​",B6="​",j6="​",W6="​",q6="≢",U6="⤨",V6="≂̸",G6="≫",K6="≪",X6=`
45
+ `,Y6="∄",Z6="∄",J6="𝔑",Q6="𝔫",eU="≧̸",tU="≱",nU="≱",rU="≧̸",iU="⩾̸",oU="⩾̸",sU="⋙̸",lU="≵",aU="≫⃒",cU="≯",uU="≯",fU="≫̸",dU="↮",hU="⇎",pU="⫲",gU="∋",mU="⋼",vU="⋺",yU="∋",bU="Њ",wU="њ",xU="↚",kU="⇍",_U="‥",SU="≦̸",TU="≰",CU="↚",EU="⇍",AU="↮",LU="⇎",MU="≰",NU="≦̸",$U="⩽̸",OU="⩽̸",PU="≮",RU="⋘̸",IU="≴",DU="≪⃒",zU="≮",FU="⋪",HU="⋬",BU="≪̸",jU="∤",WU="⁠",qU=" ",UU="𝕟",VU="ℕ",GU="⫬",KU="¬",XU="≢",YU="≭",ZU="∦",JU="∉",QU="≠",eV="≂̸",tV="∄",nV="≯",rV="≱",iV="≧̸",oV="≫̸",sV="≹",lV="⩾̸",aV="≵",cV="≎̸",uV="≏̸",fV="∉",dV="⋵̸",hV="⋹̸",pV="∉",gV="⋷",mV="⋶",vV="⧏̸",yV="⋪",bV="⋬",wV="≮",xV="≰",kV="≸",_V="≪̸",SV="⩽̸",TV="≴",CV="⪢̸",EV="⪡̸",AV="∌",LV="∌",MV="⋾",NV="⋽",$V="⊀",OV="⪯̸",PV="⋠",RV="∌",IV="⧐̸",DV="⋫",zV="⋭",FV="⊏̸",HV="⋢",BV="⊐̸",jV="⋣",WV="⊂⃒",qV="⊈",UV="⊁",VV="⪰̸",GV="⋡",KV="≿̸",XV="⊃⃒",YV="⊉",ZV="≁",JV="≄",QV="≇",e9="≉",t9="∤",n9="∦",r9="∦",i9="⫽⃥",o9="∂̸",s9="⨔",l9="⊀",a9="⋠",c9="⊀",u9="⪯̸",f9="⪯̸",d9="⤳̸",h9="↛",p9="⇏",g9="↝̸",m9="↛",v9="⇏",y9="⋫",b9="⋭",w9="⊁",x9="⋡",k9="⪰̸",_9="𝒩",S9="𝓃",T9="∤",C9="∦",E9="≁",A9="≄",L9="≄",M9="∤",N9="∦",$9="⋢",O9="⋣",P9="⊄",R9="⫅̸",I9="⊈",D9="⊂⃒",z9="⊈",F9="⫅̸",H9="⊁",B9="⪰̸",j9="⊅",W9="⫆̸",q9="⊉",U9="⊃⃒",V9="⊉",G9="⫆̸",K9="≹",X9="Ñ",Y9="ñ",Z9="≸",J9="⋪",Q9="⋬",eG="⋫",tG="⋭",nG="Ν",rG="ν",iG="#",oG="№",sG=" ",lG="≍⃒",aG="⊬",cG="⊭",uG="⊮",fG="⊯",dG="≥⃒",hG=">⃒",pG="⤄",gG="⧞",mG="⤂",vG="≤⃒",yG="<⃒",bG="⊴⃒",wG="⤃",xG="⊵⃒",kG="∼⃒",_G="⤣",SG="↖",TG="⇖",CG="↖",EG="⤧",AG="Ó",LG="ó",MG="⊛",NG="Ô",$G="ô",OG="⊚",PG="О",RG="о",IG="⊝",DG="Ő",zG="ő",FG="⨸",HG="⊙",BG="⦼",jG="Œ",WG="œ",qG="⦿",UG="𝔒",VG="𝔬",GG="˛",KG="Ò",XG="ò",YG="⧁",ZG="⦵",JG="Ω",QG="∮",e7="↺",t7="⦾",n7="⦻",r7="‾",i7="⧀",o7="Ō",s7="ō",l7="Ω",a7="ω",c7="Ο",u7="ο",f7="⦶",d7="⊖",h7="𝕆",p7="𝕠",g7="⦷",m7="“",v7="‘",y7="⦹",b7="⊕",w7="↻",x7="⩔",k7="∨",_7="⩝",S7="ℴ",T7="ℴ",C7="ª",E7="º",A7="⊶",L7="⩖",M7="⩗",N7="⩛",$7="Ⓢ",O7="𝒪",P7="ℴ",R7="Ø",I7="ø",D7="⊘",z7="Õ",F7="õ",H7="⨶",B7="⨷",j7="⊗",W7="Ö",q7="ö",U7="⌽",V7="‾",G7="⏞",K7="⎴",X7="⏜",Y7="¶",Z7="∥",J7="∥",Q7="⫳",eK="⫽",tK="∂",nK="∂",rK="П",iK="п",oK="%",sK=".",lK="‰",aK="⊥",cK="‱",uK="𝔓",fK="𝔭",dK="Φ",hK="φ",pK="ϕ",gK="ℳ",mK="☎",vK="Π",yK="π",bK="⋔",wK="ϖ",xK="ℏ",kK="ℎ",_K="ℏ",SK="⨣",TK="⊞",CK="⨢",EK="+",AK="∔",LK="⨥",MK="⩲",NK="±",$K="±",OK="⨦",PK="⨧",RK="±",IK="ℌ",DK="⨕",zK="𝕡",FK="ℙ",HK="£",BK="⪷",jK="⪻",WK="≺",qK="≼",UK="⪷",VK="≺",GK="≼",KK="≺",XK="⪯",YK="≼",ZK="≾",JK="⪯",QK="⪹",eX="⪵",tX="⋨",nX="⪯",rX="⪳",iX="≾",oX="′",sX="″",lX="ℙ",aX="⪹",cX="⪵",uX="⋨",fX="∏",dX="∏",hX="⌮",pX="⌒",gX="⌓",mX="∝",vX="∝",yX="∷",bX="∝",wX="≾",xX="⊰",kX="𝒫",_X="𝓅",SX="Ψ",TX="ψ",CX=" ",EX="𝔔",AX="𝔮",LX="⨌",MX="𝕢",NX="ℚ",$X="⁗",OX="𝒬",PX="𝓆",RX="ℍ",IX="⨖",DX="?",zX="≟",FX='"',HX='"',BX="⇛",jX="∽̱",WX="Ŕ",qX="ŕ",UX="√",VX="⦳",GX="⟩",KX="⟫",XX="⦒",YX="⦥",ZX="⟩",JX="»",QX="⥵",eY="⇥",tY="⤠",nY="⤳",rY="→",iY="↠",oY="⇒",sY="⤞",lY="↪",aY="↬",cY="⥅",uY="⥴",fY="⤖",dY="↣",hY="↝",pY="⤚",gY="⤜",mY="∶",vY="ℚ",yY="⤍",bY="⤏",wY="⤐",xY="❳",kY="}",_Y="]",SY="⦌",TY="⦎",CY="⦐",EY="Ř",AY="ř",LY="Ŗ",MY="ŗ",NY="⌉",$Y="}",OY="Р",PY="р",RY="⤷",IY="⥩",DY="”",zY="”",FY="↳",HY="ℜ",BY="ℛ",jY="ℜ",WY="ℝ",qY="ℜ",UY="▭",VY="®",GY="®",KY="∋",XY="⇋",YY="⥯",ZY="⥽",JY="⌋",QY="𝔯",eZ="ℜ",tZ="⥤",nZ="⇁",rZ="⇀",iZ="⥬",oZ="Ρ",sZ="ρ",lZ="ϱ",aZ="⟩",cZ="⇥",uZ="→",fZ="→",dZ="⇒",hZ="⇄",pZ="↣",gZ="⌉",mZ="⟧",vZ="⥝",yZ="⥕",bZ="⇂",wZ="⌋",xZ="⇁",kZ="⇀",_Z="⇄",SZ="⇌",TZ="⇉",CZ="↝",EZ="↦",AZ="⊢",LZ="⥛",MZ="⋌",NZ="⧐",$Z="⊳",OZ="⊵",PZ="⥏",RZ="⥜",IZ="⥔",DZ="↾",zZ="⥓",FZ="⇀",HZ="˚",BZ="≓",jZ="⇄",WZ="⇌",qZ="‏",UZ="⎱",VZ="⎱",GZ="⫮",KZ="⟭",XZ="⇾",YZ="⟧",ZZ="⦆",JZ="𝕣",QZ="ℝ",eJ="⨮",tJ="⨵",nJ="⥰",rJ=")",iJ="⦔",oJ="⨒",sJ="⇉",lJ="⇛",aJ="›",cJ="𝓇",uJ="ℛ",fJ="↱",dJ="↱",hJ="]",pJ="’",gJ="’",mJ="⋌",vJ="⋊",yJ="▹",bJ="⊵",wJ="▸",xJ="⧎",kJ="⧴",_J="⥨",SJ="℞",TJ="Ś",CJ="ś",EJ="‚",AJ="⪸",LJ="Š",MJ="š",NJ="⪼",$J="≻",OJ="≽",PJ="⪰",RJ="⪴",IJ="Ş",DJ="ş",zJ="Ŝ",FJ="ŝ",HJ="⪺",BJ="⪶",jJ="⋩",WJ="⨓",qJ="≿",UJ="С",VJ="с",GJ="⊡",KJ="⋅",XJ="⩦",YJ="⤥",ZJ="↘",JJ="⇘",QJ="↘",eQ="§",tQ=";",nQ="⤩",rQ="∖",iQ="∖",oQ="✶",sQ="𝔖",lQ="𝔰",aQ="⌢",cQ="♯",uQ="Щ",fQ="щ",dQ="Ш",hQ="ш",pQ="↓",gQ="←",mQ="∣",vQ="∥",yQ="→",bQ="↑",wQ="­",xQ="Σ",kQ="σ",_Q="ς",SQ="ς",TQ="∼",CQ="⩪",EQ="≃",AQ="≃",LQ="⪞",MQ="⪠",NQ="⪝",$Q="⪟",OQ="≆",PQ="⨤",RQ="⥲",IQ="←",DQ="∘",zQ="∖",FQ="⨳",HQ="⧤",BQ="∣",jQ="⌣",WQ="⪪",qQ="⪬",UQ="⪬︀",VQ="Ь",GQ="ь",KQ="⌿",XQ="⧄",YQ="/",ZQ="𝕊",JQ="𝕤",QQ="♠",eee="♠",tee="∥",nee="⊓",ree="⊓︀",iee="⊔",oee="⊔︀",see="√",lee="⊏",aee="⊑",cee="⊏",uee="⊑",fee="⊐",dee="⊒",hee="⊐",pee="⊒",gee="□",mee="□",vee="⊓",yee="⊏",bee="⊑",wee="⊐",xee="⊒",kee="⊔",_ee="▪",See="□",Tee="▪",Cee="→",Eee="𝒮",Aee="𝓈",Lee="∖",Mee="⌣",Nee="⋆",$ee="⋆",Oee="☆",Pee="★",Ree="ϵ",Iee="ϕ",Dee="¯",zee="⊂",Fee="⋐",Hee="⪽",Bee="⫅",jee="⊆",Wee="⫃",qee="⫁",Uee="⫋",Vee="⊊",Gee="⪿",Kee="⥹",Xee="⊂",Yee="⋐",Zee="⊆",Jee="⫅",Qee="⊆",ete="⊊",tte="⫋",nte="⫇",rte="⫕",ite="⫓",ote="⪸",ste="≻",lte="≽",ate="≻",cte="⪰",ute="≽",fte="≿",dte="⪰",hte="⪺",pte="⪶",gte="⋩",mte="≿",vte="∋",yte="∑",bte="∑",wte="♪",xte="¹",kte="²",_te="³",Ste="⊃",Tte="⋑",Cte="⪾",Ete="⫘",Ate="⫆",Lte="⊇",Mte="⫄",Nte="⊃",$te="⊇",Ote="⟉",Pte="⫗",Rte="⥻",Ite="⫂",Dte="⫌",zte="⊋",Fte="⫀",Hte="⊃",Bte="⋑",jte="⊇",Wte="⫆",qte="⊋",Ute="⫌",Vte="⫈",Gte="⫔",Kte="⫖",Xte="⤦",Yte="↙",Zte="⇙",Jte="↙",Qte="⤪",ene="ß",tne=" ",nne="⌖",rne="Τ",ine="τ",one="⎴",sne="Ť",lne="ť",ane="Ţ",cne="ţ",une="Т",fne="т",dne="⃛",hne="⌕",pne="𝔗",gne="𝔱",mne="∴",vne="∴",yne="∴",bne="Θ",wne="θ",xne="ϑ",kne="ϑ",_ne="≈",Sne="∼",Tne="  ",Cne=" ",Ene=" ",Ane="≈",Lne="∼",Mne="Þ",Nne="þ",$ne="˜",One="∼",Pne="≃",Rne="≅",Ine="≈",Dne="⨱",zne="⊠",Fne="×",Hne="⨰",Bne="∭",jne="⤨",Wne="⌶",qne="⫱",Une="⊤",Vne="𝕋",Gne="𝕥",Kne="⫚",Xne="⤩",Yne="‴",Zne="™",Jne="™",Qne="▵",ere="▿",tre="◃",nre="⊴",rre="≜",ire="▹",ore="⊵",sre="◬",lre="≜",are="⨺",cre="⃛",ure="⨹",fre="⧍",dre="⨻",hre="⏢",pre="𝒯",gre="𝓉",mre="Ц",vre="ц",yre="Ћ",bre="ћ",wre="Ŧ",xre="ŧ",kre="≬",_re="↞",Sre="↠",Tre="Ú",Cre="ú",Ere="↑",Are="↟",Lre="⇑",Mre="⥉",Nre="Ў",$re="ў",Ore="Ŭ",Pre="ŭ",Rre="Û",Ire="û",Dre="У",zre="у",Fre="⇅",Hre="Ű",Bre="ű",jre="⥮",Wre="⥾",qre="𝔘",Ure="𝔲",Vre="Ù",Gre="ù",Kre="⥣",Xre="↿",Yre="↾",Zre="▀",Jre="⌜",Qre="⌜",eie="⌏",tie="◸",nie="Ū",rie="ū",iie="¨",oie="_",sie="⏟",lie="⎵",aie="⏝",cie="⋃",uie="⊎",fie="Ų",die="ų",hie="𝕌",pie="𝕦",gie="⤒",mie="↑",vie="↑",yie="⇑",bie="⇅",wie="↕",xie="↕",kie="⇕",_ie="⥮",Sie="↿",Tie="↾",Cie="⊎",Eie="↖",Aie="↗",Lie="υ",Mie="ϒ",Nie="ϒ",$ie="Υ",Oie="υ",Pie="↥",Rie="⊥",Iie="⇈",Die="⌝",zie="⌝",Fie="⌎",Hie="Ů",Bie="ů",jie="◹",Wie="𝒰",qie="𝓊",Uie="⋰",Vie="Ũ",Gie="ũ",Kie="▵",Xie="▴",Yie="⇈",Zie="Ü",Jie="ü",Qie="⦧",eoe="⦜",toe="ϵ",noe="ϰ",roe="∅",ioe="ϕ",ooe="ϖ",soe="∝",loe="↕",aoe="⇕",coe="ϱ",uoe="ς",foe="⊊︀",doe="⫋︀",hoe="⊋︀",poe="⫌︀",goe="ϑ",moe="⊲",voe="⊳",yoe="⫨",boe="⫫",woe="⫩",xoe="В",koe="в",_oe="⊢",Soe="⊨",Toe="⊩",Coe="⊫",Eoe="⫦",Aoe="⊻",Loe="∨",Moe="⋁",Noe="≚",$oe="⋮",Ooe="|",Poe="‖",Roe="|",Ioe="‖",Doe="∣",zoe="|",Foe="❘",Hoe="≀",Boe=" ",joe="𝔙",Woe="𝔳",qoe="⊲",Uoe="⊂⃒",Voe="⊃⃒",Goe="𝕍",Koe="𝕧",Xoe="∝",Yoe="⊳",Zoe="𝒱",Joe="𝓋",Qoe="⫋︀",ese="⊊︀",tse="⫌︀",nse="⊋︀",rse="⊪",ise="⦚",ose="Ŵ",sse="ŵ",lse="⩟",ase="∧",cse="⋀",use="≙",fse="℘",dse="𝔚",hse="𝔴",pse="𝕎",gse="𝕨",mse="℘",vse="≀",yse="≀",bse="𝒲",wse="𝓌",xse="⋂",kse="◯",_se="⋃",Sse="▽",Tse="𝔛",Cse="𝔵",Ese="⟷",Ase="⟺",Lse="Ξ",Mse="ξ",Nse="⟵",$se="⟸",Ose="⟼",Pse="⋻",Rse="⨀",Ise="𝕏",Dse="𝕩",zse="⨁",Fse="⨂",Hse="⟶",Bse="⟹",jse="𝒳",Wse="𝓍",qse="⨆",Use="⨄",Vse="△",Gse="⋁",Kse="⋀",Xse="Ý",Yse="ý",Zse="Я",Jse="я",Qse="Ŷ",ele="ŷ",tle="Ы",nle="ы",rle="¥",ile="𝔜",ole="𝔶",sle="Ї",lle="ї",ale="𝕐",cle="𝕪",ule="𝒴",fle="𝓎",dle="Ю",hle="ю",ple="ÿ",gle="Ÿ",mle="Ź",vle="ź",yle="Ž",ble="ž",wle="З",xle="з",kle="Ż",_le="ż",Sle="ℨ",Tle="​",Cle="Ζ",Ele="ζ",Ale="𝔷",Lle="ℨ",Mle="Ж",Nle="ж",$le="⇝",Ole="𝕫",Ple="ℤ",Rle="𝒵",Ile="𝓏",Dle="‍",zle="‌",Ox={Aacute:kM,aacute:_M,Abreve:SM,abreve:TM,ac:CM,acd:EM,acE:AM,Acirc:LM,acirc:MM,acute:NM,Acy:$M,acy:OM,AElig:PM,aelig:RM,af:IM,Afr:DM,afr:zM,Agrave:FM,agrave:HM,alefsym:BM,aleph:jM,Alpha:WM,alpha:qM,Amacr:UM,amacr:VM,amalg:GM,amp:KM,AMP:XM,andand:YM,And:ZM,and:JM,andd:QM,andslope:eN,andv:tN,ang:nN,ange:rN,angle:iN,angmsdaa:oN,angmsdab:sN,angmsdac:lN,angmsdad:aN,angmsdae:cN,angmsdaf:uN,angmsdag:fN,angmsdah:dN,angmsd:hN,angrt:pN,angrtvb:gN,angrtvbd:mN,angsph:vN,angst:yN,angzarr:bN,Aogon:wN,aogon:xN,Aopf:kN,aopf:_N,apacir:SN,ap:TN,apE:CN,ape:EN,apid:AN,apos:LN,ApplyFunction:MN,approx:NN,approxeq:$N,Aring:ON,aring:PN,Ascr:RN,ascr:IN,Assign:DN,ast:zN,asymp:FN,asympeq:HN,Atilde:BN,atilde:jN,Auml:WN,auml:qN,awconint:UN,awint:VN,backcong:GN,backepsilon:KN,backprime:XN,backsim:YN,backsimeq:ZN,Backslash:JN,Barv:QN,barvee:e$,barwed:t$,Barwed:n$,barwedge:r$,bbrk:i$,bbrktbrk:o$,bcong:s$,Bcy:l$,bcy:a$,bdquo:c$,becaus:u$,because:f$,Because:d$,bemptyv:h$,bepsi:p$,bernou:g$,Bernoullis:m$,Beta:v$,beta:y$,beth:b$,between:w$,Bfr:x$,bfr:k$,bigcap:_$,bigcirc:S$,bigcup:T$,bigodot:C$,bigoplus:E$,bigotimes:A$,bigsqcup:L$,bigstar:M$,bigtriangledown:N$,bigtriangleup:$$,biguplus:O$,bigvee:P$,bigwedge:R$,bkarow:I$,blacklozenge:D$,blacksquare:z$,blacktriangle:F$,blacktriangledown:H$,blacktriangleleft:B$,blacktriangleright:j$,blank:W$,blk12:q$,blk14:U$,blk34:V$,block:G$,bne:K$,bnequiv:X$,bNot:Y$,bnot:Z$,Bopf:J$,bopf:Q$,bot:eO,bottom:tO,bowtie:nO,boxbox:rO,boxdl:iO,boxdL:oO,boxDl:sO,boxDL:lO,boxdr:aO,boxdR:cO,boxDr:uO,boxDR:fO,boxh:dO,boxH:hO,boxhd:pO,boxHd:gO,boxhD:mO,boxHD:vO,boxhu:yO,boxHu:bO,boxhU:wO,boxHU:xO,boxminus:kO,boxplus:_O,boxtimes:SO,boxul:TO,boxuL:CO,boxUl:EO,boxUL:AO,boxur:LO,boxuR:MO,boxUr:NO,boxUR:$O,boxv:OO,boxV:PO,boxvh:RO,boxvH:IO,boxVh:DO,boxVH:zO,boxvl:FO,boxvL:HO,boxVl:BO,boxVL:jO,boxvr:WO,boxvR:qO,boxVr:UO,boxVR:VO,bprime:GO,breve:KO,Breve:XO,brvbar:YO,bscr:ZO,Bscr:JO,bsemi:QO,bsim:eP,bsime:tP,bsolb:nP,bsol:rP,bsolhsub:iP,bull:oP,bullet:sP,bump:lP,bumpE:aP,bumpe:cP,Bumpeq:uP,bumpeq:fP,Cacute:dP,cacute:hP,capand:pP,capbrcup:gP,capcap:mP,cap:vP,Cap:yP,capcup:bP,capdot:wP,CapitalDifferentialD:xP,caps:kP,caret:_P,caron:SP,Cayleys:TP,ccaps:CP,Ccaron:EP,ccaron:AP,Ccedil:LP,ccedil:MP,Ccirc:NP,ccirc:$P,Cconint:OP,ccups:PP,ccupssm:RP,Cdot:IP,cdot:DP,cedil:zP,Cedilla:FP,cemptyv:HP,cent:BP,centerdot:jP,CenterDot:WP,cfr:qP,Cfr:UP,CHcy:VP,chcy:GP,check:KP,checkmark:XP,Chi:YP,chi:ZP,circ:JP,circeq:QP,circlearrowleft:e2,circlearrowright:t2,circledast:n2,circledcirc:r2,circleddash:i2,CircleDot:o2,circledR:s2,circledS:l2,CircleMinus:a2,CirclePlus:c2,CircleTimes:u2,cir:f2,cirE:d2,cire:h2,cirfnint:p2,cirmid:g2,cirscir:m2,ClockwiseContourIntegral:v2,CloseCurlyDoubleQuote:y2,CloseCurlyQuote:b2,clubs:w2,clubsuit:x2,colon:k2,Colon:_2,Colone:S2,colone:T2,coloneq:C2,comma:E2,commat:A2,comp:L2,compfn:M2,complement:N2,complexes:$2,cong:O2,congdot:P2,Congruent:R2,conint:I2,Conint:D2,ContourIntegral:z2,copf:F2,Copf:H2,coprod:B2,Coproduct:j2,copy:W2,COPY:q2,copysr:U2,CounterClockwiseContourIntegral:V2,crarr:G2,cross:K2,Cross:X2,Cscr:Y2,cscr:Z2,csub:J2,csube:Q2,csup:eR,csupe:tR,ctdot:nR,cudarrl:rR,cudarrr:iR,cuepr:oR,cuesc:sR,cularr:lR,cularrp:aR,cupbrcap:cR,cupcap:uR,CupCap:fR,cup:dR,Cup:hR,cupcup:pR,cupdot:gR,cupor:mR,cups:vR,curarr:yR,curarrm:bR,curlyeqprec:wR,curlyeqsucc:xR,curlyvee:kR,curlywedge:_R,curren:SR,curvearrowleft:TR,curvearrowright:CR,cuvee:ER,cuwed:AR,cwconint:LR,cwint:MR,cylcty:NR,dagger:$R,Dagger:OR,daleth:PR,darr:RR,Darr:IR,dArr:DR,dash:zR,Dashv:FR,dashv:HR,dbkarow:BR,dblac:jR,Dcaron:WR,dcaron:qR,Dcy:UR,dcy:VR,ddagger:GR,ddarr:KR,DD:XR,dd:YR,DDotrahd:ZR,ddotseq:JR,deg:QR,Del:eI,Delta:tI,delta:nI,demptyv:rI,dfisht:iI,Dfr:oI,dfr:sI,dHar:lI,dharl:aI,dharr:cI,DiacriticalAcute:uI,DiacriticalDot:fI,DiacriticalDoubleAcute:dI,DiacriticalGrave:hI,DiacriticalTilde:pI,diam:gI,diamond:mI,Diamond:vI,diamondsuit:yI,diams:bI,die:wI,DifferentialD:xI,digamma:kI,disin:_I,div:SI,divide:TI,divideontimes:CI,divonx:EI,DJcy:AI,djcy:LI,dlcorn:MI,dlcrop:NI,dollar:$I,Dopf:OI,dopf:PI,Dot:RI,dot:II,DotDot:DI,doteq:zI,doteqdot:FI,DotEqual:HI,dotminus:BI,dotplus:jI,dotsquare:WI,doublebarwedge:qI,DoubleContourIntegral:UI,DoubleDot:VI,DoubleDownArrow:GI,DoubleLeftArrow:KI,DoubleLeftRightArrow:XI,DoubleLeftTee:YI,DoubleLongLeftArrow:ZI,DoubleLongLeftRightArrow:JI,DoubleLongRightArrow:QI,DoubleRightArrow:eD,DoubleRightTee:tD,DoubleUpArrow:nD,DoubleUpDownArrow:rD,DoubleVerticalBar:iD,DownArrowBar:oD,downarrow:sD,DownArrow:lD,Downarrow:aD,DownArrowUpArrow:cD,DownBreve:uD,downdownarrows:fD,downharpoonleft:dD,downharpoonright:hD,DownLeftRightVector:pD,DownLeftTeeVector:gD,DownLeftVectorBar:mD,DownLeftVector:vD,DownRightTeeVector:yD,DownRightVectorBar:bD,DownRightVector:wD,DownTeeArrow:xD,DownTee:kD,drbkarow:_D,drcorn:SD,drcrop:TD,Dscr:CD,dscr:ED,DScy:AD,dscy:LD,dsol:MD,Dstrok:ND,dstrok:$D,dtdot:OD,dtri:PD,dtrif:RD,duarr:ID,duhar:DD,dwangle:zD,DZcy:FD,dzcy:HD,dzigrarr:BD,Eacute:jD,eacute:WD,easter:qD,Ecaron:UD,ecaron:VD,Ecirc:GD,ecirc:KD,ecir:XD,ecolon:YD,Ecy:ZD,ecy:JD,eDDot:QD,Edot:ez,edot:tz,eDot:nz,ee:rz,efDot:iz,Efr:oz,efr:sz,eg:lz,Egrave:az,egrave:cz,egs:uz,egsdot:fz,el:dz,Element:hz,elinters:pz,ell:gz,els:mz,elsdot:vz,Emacr:yz,emacr:bz,empty:wz,emptyset:xz,EmptySmallSquare:kz,emptyv:_z,EmptyVerySmallSquare:Sz,emsp13:Tz,emsp14:Cz,emsp:Ez,ENG:Az,eng:Lz,ensp:Mz,Eogon:Nz,eogon:$z,Eopf:Oz,eopf:Pz,epar:Rz,eparsl:Iz,eplus:Dz,epsi:zz,Epsilon:Fz,epsilon:Hz,epsiv:Bz,eqcirc:jz,eqcolon:Wz,eqsim:qz,eqslantgtr:Uz,eqslantless:Vz,Equal:Gz,equals:Kz,EqualTilde:Xz,equest:Yz,Equilibrium:Zz,equiv:Jz,equivDD:Qz,eqvparsl:eF,erarr:tF,erDot:nF,escr:rF,Escr:iF,esdot:oF,Esim:sF,esim:lF,Eta:aF,eta:cF,ETH:uF,eth:fF,Euml:dF,euml:hF,euro:pF,excl:gF,exist:mF,Exists:vF,expectation:yF,exponentiale:bF,ExponentialE:wF,fallingdotseq:xF,Fcy:kF,fcy:_F,female:SF,ffilig:TF,fflig:CF,ffllig:EF,Ffr:AF,ffr:LF,filig:MF,FilledSmallSquare:NF,FilledVerySmallSquare:$F,fjlig:OF,flat:PF,fllig:RF,fltns:IF,fnof:DF,Fopf:zF,fopf:FF,forall:HF,ForAll:BF,fork:jF,forkv:WF,Fouriertrf:qF,fpartint:UF,frac12:VF,frac13:GF,frac14:KF,frac15:XF,frac16:YF,frac18:ZF,frac23:JF,frac25:QF,frac34:eH,frac35:tH,frac38:nH,frac45:rH,frac56:iH,frac58:oH,frac78:sH,frasl:lH,frown:aH,fscr:cH,Fscr:uH,gacute:fH,Gamma:dH,gamma:hH,Gammad:pH,gammad:gH,gap:mH,Gbreve:vH,gbreve:yH,Gcedil:bH,Gcirc:wH,gcirc:xH,Gcy:kH,gcy:_H,Gdot:SH,gdot:TH,ge:CH,gE:EH,gEl:AH,gel:LH,geq:MH,geqq:NH,geqslant:$H,gescc:OH,ges:PH,gesdot:RH,gesdoto:IH,gesdotol:DH,gesl:zH,gesles:FH,Gfr:HH,gfr:BH,gg:jH,Gg:WH,ggg:qH,gimel:UH,GJcy:VH,gjcy:GH,gla:KH,gl:XH,glE:YH,glj:ZH,gnap:JH,gnapprox:QH,gne:e3,gnE:t3,gneq:n3,gneqq:r3,gnsim:i3,Gopf:o3,gopf:s3,grave:l3,GreaterEqual:a3,GreaterEqualLess:c3,GreaterFullEqual:u3,GreaterGreater:f3,GreaterLess:d3,GreaterSlantEqual:h3,GreaterTilde:p3,Gscr:g3,gscr:m3,gsim:v3,gsime:y3,gsiml:b3,gtcc:w3,gtcir:x3,gt:k3,GT:_3,Gt:S3,gtdot:T3,gtlPar:C3,gtquest:E3,gtrapprox:A3,gtrarr:L3,gtrdot:M3,gtreqless:N3,gtreqqless:$3,gtrless:O3,gtrsim:P3,gvertneqq:R3,gvnE:I3,Hacek:D3,hairsp:z3,half:F3,hamilt:H3,HARDcy:B3,hardcy:j3,harrcir:W3,harr:q3,hArr:U3,harrw:V3,Hat:G3,hbar:K3,Hcirc:X3,hcirc:Y3,hearts:Z3,heartsuit:J3,hellip:Q3,hercon:eB,hfr:tB,Hfr:nB,HilbertSpace:rB,hksearow:iB,hkswarow:oB,hoarr:sB,homtht:lB,hookleftarrow:aB,hookrightarrow:cB,hopf:uB,Hopf:fB,horbar:dB,HorizontalLine:hB,hscr:pB,Hscr:gB,hslash:mB,Hstrok:vB,hstrok:yB,HumpDownHump:bB,HumpEqual:wB,hybull:xB,hyphen:kB,Iacute:_B,iacute:SB,ic:TB,Icirc:CB,icirc:EB,Icy:AB,icy:LB,Idot:MB,IEcy:NB,iecy:$B,iexcl:OB,iff:PB,ifr:RB,Ifr:IB,Igrave:DB,igrave:zB,ii:FB,iiiint:HB,iiint:BB,iinfin:jB,iiota:WB,IJlig:qB,ijlig:UB,Imacr:VB,imacr:GB,image:KB,ImaginaryI:XB,imagline:YB,imagpart:ZB,imath:JB,Im:QB,imof:e5,imped:t5,Implies:n5,incare:r5,in:"∈",infin:i5,infintie:o5,inodot:s5,intcal:l5,int:a5,Int:c5,integers:u5,Integral:f5,intercal:d5,Intersection:h5,intlarhk:p5,intprod:g5,InvisibleComma:m5,InvisibleTimes:v5,IOcy:y5,iocy:b5,Iogon:w5,iogon:x5,Iopf:k5,iopf:_5,Iota:S5,iota:T5,iprod:C5,iquest:E5,iscr:A5,Iscr:L5,isin:M5,isindot:N5,isinE:$5,isins:O5,isinsv:P5,isinv:R5,it:I5,Itilde:D5,itilde:z5,Iukcy:F5,iukcy:H5,Iuml:B5,iuml:j5,Jcirc:W5,jcirc:q5,Jcy:U5,jcy:V5,Jfr:G5,jfr:K5,jmath:X5,Jopf:Y5,jopf:Z5,Jscr:J5,jscr:Q5,Jsercy:e8,jsercy:t8,Jukcy:n8,jukcy:r8,Kappa:i8,kappa:o8,kappav:s8,Kcedil:l8,kcedil:a8,Kcy:c8,kcy:u8,Kfr:f8,kfr:d8,kgreen:h8,KHcy:p8,khcy:g8,KJcy:m8,kjcy:v8,Kopf:y8,kopf:b8,Kscr:w8,kscr:x8,lAarr:k8,Lacute:_8,lacute:S8,laemptyv:T8,lagran:C8,Lambda:E8,lambda:A8,lang:L8,Lang:M8,langd:N8,langle:$8,lap:O8,Laplacetrf:P8,laquo:R8,larrb:I8,larrbfs:D8,larr:z8,Larr:F8,lArr:H8,larrfs:B8,larrhk:j8,larrlp:W8,larrpl:q8,larrsim:U8,larrtl:V8,latail:G8,lAtail:K8,lat:X8,late:Y8,lates:Z8,lbarr:J8,lBarr:Q8,lbbrk:ej,lbrace:tj,lbrack:nj,lbrke:rj,lbrksld:ij,lbrkslu:oj,Lcaron:sj,lcaron:lj,Lcedil:aj,lcedil:cj,lceil:uj,lcub:fj,Lcy:dj,lcy:hj,ldca:pj,ldquo:gj,ldquor:mj,ldrdhar:vj,ldrushar:yj,ldsh:bj,le:wj,lE:xj,LeftAngleBracket:kj,LeftArrowBar:_j,leftarrow:Sj,LeftArrow:Tj,Leftarrow:Cj,LeftArrowRightArrow:Ej,leftarrowtail:Aj,LeftCeiling:Lj,LeftDoubleBracket:Mj,LeftDownTeeVector:Nj,LeftDownVectorBar:$j,LeftDownVector:Oj,LeftFloor:Pj,leftharpoondown:Rj,leftharpoonup:Ij,leftleftarrows:Dj,leftrightarrow:zj,LeftRightArrow:Fj,Leftrightarrow:Hj,leftrightarrows:Bj,leftrightharpoons:jj,leftrightsquigarrow:Wj,LeftRightVector:qj,LeftTeeArrow:Uj,LeftTee:Vj,LeftTeeVector:Gj,leftthreetimes:Kj,LeftTriangleBar:Xj,LeftTriangle:Yj,LeftTriangleEqual:Zj,LeftUpDownVector:Jj,LeftUpTeeVector:Qj,LeftUpVectorBar:eW,LeftUpVector:tW,LeftVectorBar:nW,LeftVector:rW,lEg:iW,leg:oW,leq:sW,leqq:lW,leqslant:aW,lescc:cW,les:uW,lesdot:fW,lesdoto:dW,lesdotor:hW,lesg:pW,lesges:gW,lessapprox:mW,lessdot:vW,lesseqgtr:yW,lesseqqgtr:bW,LessEqualGreater:wW,LessFullEqual:xW,LessGreater:kW,lessgtr:_W,LessLess:SW,lesssim:TW,LessSlantEqual:CW,LessTilde:EW,lfisht:AW,lfloor:LW,Lfr:MW,lfr:NW,lg:$W,lgE:OW,lHar:PW,lhard:RW,lharu:IW,lharul:DW,lhblk:zW,LJcy:FW,ljcy:HW,llarr:BW,ll:jW,Ll:WW,llcorner:qW,Lleftarrow:UW,llhard:VW,lltri:GW,Lmidot:KW,lmidot:XW,lmoustache:YW,lmoust:ZW,lnap:JW,lnapprox:QW,lne:e4,lnE:t4,lneq:n4,lneqq:r4,lnsim:i4,loang:o4,loarr:s4,lobrk:l4,longleftarrow:a4,LongLeftArrow:c4,Longleftarrow:u4,longleftrightarrow:f4,LongLeftRightArrow:d4,Longleftrightarrow:h4,longmapsto:p4,longrightarrow:g4,LongRightArrow:m4,Longrightarrow:v4,looparrowleft:y4,looparrowright:b4,lopar:w4,Lopf:x4,lopf:k4,loplus:_4,lotimes:S4,lowast:T4,lowbar:C4,LowerLeftArrow:E4,LowerRightArrow:A4,loz:L4,lozenge:M4,lozf:N4,lpar:$4,lparlt:O4,lrarr:P4,lrcorner:R4,lrhar:I4,lrhard:D4,lrm:z4,lrtri:F4,lsaquo:H4,lscr:B4,Lscr:j4,lsh:W4,Lsh:q4,lsim:U4,lsime:V4,lsimg:G4,lsqb:K4,lsquo:X4,lsquor:Y4,Lstrok:Z4,lstrok:J4,ltcc:Q4,ltcir:eq,lt:tq,LT:nq,Lt:rq,ltdot:iq,lthree:oq,ltimes:sq,ltlarr:lq,ltquest:aq,ltri:cq,ltrie:uq,ltrif:fq,ltrPar:dq,lurdshar:hq,luruhar:pq,lvertneqq:gq,lvnE:mq,macr:vq,male:yq,malt:bq,maltese:wq,Map:"⤅",map:xq,mapsto:kq,mapstodown:_q,mapstoleft:Sq,mapstoup:Tq,marker:Cq,mcomma:Eq,Mcy:Aq,mcy:Lq,mdash:Mq,mDDot:Nq,measuredangle:$q,MediumSpace:Oq,Mellintrf:Pq,Mfr:Rq,mfr:Iq,mho:Dq,micro:zq,midast:Fq,midcir:Hq,mid:Bq,middot:jq,minusb:Wq,minus:qq,minusd:Uq,minusdu:Vq,MinusPlus:Gq,mlcp:Kq,mldr:Xq,mnplus:Yq,models:Zq,Mopf:Jq,mopf:Qq,mp:e6,mscr:t6,Mscr:n6,mstpos:r6,Mu:i6,mu:o6,multimap:s6,mumap:l6,nabla:a6,Nacute:c6,nacute:u6,nang:f6,nap:d6,napE:h6,napid:p6,napos:g6,napprox:m6,natural:v6,naturals:y6,natur:b6,nbsp:w6,nbump:x6,nbumpe:k6,ncap:_6,Ncaron:S6,ncaron:T6,Ncedil:C6,ncedil:E6,ncong:A6,ncongdot:L6,ncup:M6,Ncy:N6,ncy:$6,ndash:O6,nearhk:P6,nearr:R6,neArr:I6,nearrow:D6,ne:z6,nedot:F6,NegativeMediumSpace:H6,NegativeThickSpace:B6,NegativeThinSpace:j6,NegativeVeryThinSpace:W6,nequiv:q6,nesear:U6,nesim:V6,NestedGreaterGreater:G6,NestedLessLess:K6,NewLine:X6,nexist:Y6,nexists:Z6,Nfr:J6,nfr:Q6,ngE:eU,nge:tU,ngeq:nU,ngeqq:rU,ngeqslant:iU,nges:oU,nGg:sU,ngsim:lU,nGt:aU,ngt:cU,ngtr:uU,nGtv:fU,nharr:dU,nhArr:hU,nhpar:pU,ni:gU,nis:mU,nisd:vU,niv:yU,NJcy:bU,njcy:wU,nlarr:xU,nlArr:kU,nldr:_U,nlE:SU,nle:TU,nleftarrow:CU,nLeftarrow:EU,nleftrightarrow:AU,nLeftrightarrow:LU,nleq:MU,nleqq:NU,nleqslant:$U,nles:OU,nless:PU,nLl:RU,nlsim:IU,nLt:DU,nlt:zU,nltri:FU,nltrie:HU,nLtv:BU,nmid:jU,NoBreak:WU,NonBreakingSpace:qU,nopf:UU,Nopf:VU,Not:GU,not:KU,NotCongruent:XU,NotCupCap:YU,NotDoubleVerticalBar:ZU,NotElement:JU,NotEqual:QU,NotEqualTilde:eV,NotExists:tV,NotGreater:nV,NotGreaterEqual:rV,NotGreaterFullEqual:iV,NotGreaterGreater:oV,NotGreaterLess:sV,NotGreaterSlantEqual:lV,NotGreaterTilde:aV,NotHumpDownHump:cV,NotHumpEqual:uV,notin:fV,notindot:dV,notinE:hV,notinva:pV,notinvb:gV,notinvc:mV,NotLeftTriangleBar:vV,NotLeftTriangle:yV,NotLeftTriangleEqual:bV,NotLess:wV,NotLessEqual:xV,NotLessGreater:kV,NotLessLess:_V,NotLessSlantEqual:SV,NotLessTilde:TV,NotNestedGreaterGreater:CV,NotNestedLessLess:EV,notni:AV,notniva:LV,notnivb:MV,notnivc:NV,NotPrecedes:$V,NotPrecedesEqual:OV,NotPrecedesSlantEqual:PV,NotReverseElement:RV,NotRightTriangleBar:IV,NotRightTriangle:DV,NotRightTriangleEqual:zV,NotSquareSubset:FV,NotSquareSubsetEqual:HV,NotSquareSuperset:BV,NotSquareSupersetEqual:jV,NotSubset:WV,NotSubsetEqual:qV,NotSucceeds:UV,NotSucceedsEqual:VV,NotSucceedsSlantEqual:GV,NotSucceedsTilde:KV,NotSuperset:XV,NotSupersetEqual:YV,NotTilde:ZV,NotTildeEqual:JV,NotTildeFullEqual:QV,NotTildeTilde:e9,NotVerticalBar:t9,nparallel:n9,npar:r9,nparsl:i9,npart:o9,npolint:s9,npr:l9,nprcue:a9,nprec:c9,npreceq:u9,npre:f9,nrarrc:d9,nrarr:h9,nrArr:p9,nrarrw:g9,nrightarrow:m9,nRightarrow:v9,nrtri:y9,nrtrie:b9,nsc:w9,nsccue:x9,nsce:k9,Nscr:_9,nscr:S9,nshortmid:T9,nshortparallel:C9,nsim:E9,nsime:A9,nsimeq:L9,nsmid:M9,nspar:N9,nsqsube:$9,nsqsupe:O9,nsub:P9,nsubE:R9,nsube:I9,nsubset:D9,nsubseteq:z9,nsubseteqq:F9,nsucc:H9,nsucceq:B9,nsup:j9,nsupE:W9,nsupe:q9,nsupset:U9,nsupseteq:V9,nsupseteqq:G9,ntgl:K9,Ntilde:X9,ntilde:Y9,ntlg:Z9,ntriangleleft:J9,ntrianglelefteq:Q9,ntriangleright:eG,ntrianglerighteq:tG,Nu:nG,nu:rG,num:iG,numero:oG,numsp:sG,nvap:lG,nvdash:aG,nvDash:cG,nVdash:uG,nVDash:fG,nvge:dG,nvgt:hG,nvHarr:pG,nvinfin:gG,nvlArr:mG,nvle:vG,nvlt:yG,nvltrie:bG,nvrArr:wG,nvrtrie:xG,nvsim:kG,nwarhk:_G,nwarr:SG,nwArr:TG,nwarrow:CG,nwnear:EG,Oacute:AG,oacute:LG,oast:MG,Ocirc:NG,ocirc:$G,ocir:OG,Ocy:PG,ocy:RG,odash:IG,Odblac:DG,odblac:zG,odiv:FG,odot:HG,odsold:BG,OElig:jG,oelig:WG,ofcir:qG,Ofr:UG,ofr:VG,ogon:GG,Ograve:KG,ograve:XG,ogt:YG,ohbar:ZG,ohm:JG,oint:QG,olarr:e7,olcir:t7,olcross:n7,oline:r7,olt:i7,Omacr:o7,omacr:s7,Omega:l7,omega:a7,Omicron:c7,omicron:u7,omid:f7,ominus:d7,Oopf:h7,oopf:p7,opar:g7,OpenCurlyDoubleQuote:m7,OpenCurlyQuote:v7,operp:y7,oplus:b7,orarr:w7,Or:x7,or:k7,ord:_7,order:S7,orderof:T7,ordf:C7,ordm:E7,origof:A7,oror:L7,orslope:M7,orv:N7,oS:$7,Oscr:O7,oscr:P7,Oslash:R7,oslash:I7,osol:D7,Otilde:z7,otilde:F7,otimesas:H7,Otimes:B7,otimes:j7,Ouml:W7,ouml:q7,ovbar:U7,OverBar:V7,OverBrace:G7,OverBracket:K7,OverParenthesis:X7,para:Y7,parallel:Z7,par:J7,parsim:Q7,parsl:eK,part:tK,PartialD:nK,Pcy:rK,pcy:iK,percnt:oK,period:sK,permil:lK,perp:aK,pertenk:cK,Pfr:uK,pfr:fK,Phi:dK,phi:hK,phiv:pK,phmmat:gK,phone:mK,Pi:vK,pi:yK,pitchfork:bK,piv:wK,planck:xK,planckh:kK,plankv:_K,plusacir:SK,plusb:TK,pluscir:CK,plus:EK,plusdo:AK,plusdu:LK,pluse:MK,PlusMinus:NK,plusmn:$K,plussim:OK,plustwo:PK,pm:RK,Poincareplane:IK,pointint:DK,popf:zK,Popf:FK,pound:HK,prap:BK,Pr:jK,pr:WK,prcue:qK,precapprox:UK,prec:VK,preccurlyeq:GK,Precedes:KK,PrecedesEqual:XK,PrecedesSlantEqual:YK,PrecedesTilde:ZK,preceq:JK,precnapprox:QK,precneqq:eX,precnsim:tX,pre:nX,prE:rX,precsim:iX,prime:oX,Prime:sX,primes:lX,prnap:aX,prnE:cX,prnsim:uX,prod:fX,Product:dX,profalar:hX,profline:pX,profsurf:gX,prop:mX,Proportional:vX,Proportion:yX,propto:bX,prsim:wX,prurel:xX,Pscr:kX,pscr:_X,Psi:SX,psi:TX,puncsp:CX,Qfr:EX,qfr:AX,qint:LX,qopf:MX,Qopf:NX,qprime:$X,Qscr:OX,qscr:PX,quaternions:RX,quatint:IX,quest:DX,questeq:zX,quot:FX,QUOT:HX,rAarr:BX,race:jX,Racute:WX,racute:qX,radic:UX,raemptyv:VX,rang:GX,Rang:KX,rangd:XX,range:YX,rangle:ZX,raquo:JX,rarrap:QX,rarrb:eY,rarrbfs:tY,rarrc:nY,rarr:rY,Rarr:iY,rArr:oY,rarrfs:sY,rarrhk:lY,rarrlp:aY,rarrpl:cY,rarrsim:uY,Rarrtl:fY,rarrtl:dY,rarrw:hY,ratail:pY,rAtail:gY,ratio:mY,rationals:vY,rbarr:yY,rBarr:bY,RBarr:wY,rbbrk:xY,rbrace:kY,rbrack:_Y,rbrke:SY,rbrksld:TY,rbrkslu:CY,Rcaron:EY,rcaron:AY,Rcedil:LY,rcedil:MY,rceil:NY,rcub:$Y,Rcy:OY,rcy:PY,rdca:RY,rdldhar:IY,rdquo:DY,rdquor:zY,rdsh:FY,real:HY,realine:BY,realpart:jY,reals:WY,Re:qY,rect:UY,reg:VY,REG:GY,ReverseElement:KY,ReverseEquilibrium:XY,ReverseUpEquilibrium:YY,rfisht:ZY,rfloor:JY,rfr:QY,Rfr:eZ,rHar:tZ,rhard:nZ,rharu:rZ,rharul:iZ,Rho:oZ,rho:sZ,rhov:lZ,RightAngleBracket:aZ,RightArrowBar:cZ,rightarrow:uZ,RightArrow:fZ,Rightarrow:dZ,RightArrowLeftArrow:hZ,rightarrowtail:pZ,RightCeiling:gZ,RightDoubleBracket:mZ,RightDownTeeVector:vZ,RightDownVectorBar:yZ,RightDownVector:bZ,RightFloor:wZ,rightharpoondown:xZ,rightharpoonup:kZ,rightleftarrows:_Z,rightleftharpoons:SZ,rightrightarrows:TZ,rightsquigarrow:CZ,RightTeeArrow:EZ,RightTee:AZ,RightTeeVector:LZ,rightthreetimes:MZ,RightTriangleBar:NZ,RightTriangle:$Z,RightTriangleEqual:OZ,RightUpDownVector:PZ,RightUpTeeVector:RZ,RightUpVectorBar:IZ,RightUpVector:DZ,RightVectorBar:zZ,RightVector:FZ,ring:HZ,risingdotseq:BZ,rlarr:jZ,rlhar:WZ,rlm:qZ,rmoustache:UZ,rmoust:VZ,rnmid:GZ,roang:KZ,roarr:XZ,robrk:YZ,ropar:ZZ,ropf:JZ,Ropf:QZ,roplus:eJ,rotimes:tJ,RoundImplies:nJ,rpar:rJ,rpargt:iJ,rppolint:oJ,rrarr:sJ,Rrightarrow:lJ,rsaquo:aJ,rscr:cJ,Rscr:uJ,rsh:fJ,Rsh:dJ,rsqb:hJ,rsquo:pJ,rsquor:gJ,rthree:mJ,rtimes:vJ,rtri:yJ,rtrie:bJ,rtrif:wJ,rtriltri:xJ,RuleDelayed:kJ,ruluhar:_J,rx:SJ,Sacute:TJ,sacute:CJ,sbquo:EJ,scap:AJ,Scaron:LJ,scaron:MJ,Sc:NJ,sc:$J,sccue:OJ,sce:PJ,scE:RJ,Scedil:IJ,scedil:DJ,Scirc:zJ,scirc:FJ,scnap:HJ,scnE:BJ,scnsim:jJ,scpolint:WJ,scsim:qJ,Scy:UJ,scy:VJ,sdotb:GJ,sdot:KJ,sdote:XJ,searhk:YJ,searr:ZJ,seArr:JJ,searrow:QJ,sect:eQ,semi:tQ,seswar:nQ,setminus:rQ,setmn:iQ,sext:oQ,Sfr:sQ,sfr:lQ,sfrown:aQ,sharp:cQ,SHCHcy:uQ,shchcy:fQ,SHcy:dQ,shcy:hQ,ShortDownArrow:pQ,ShortLeftArrow:gQ,shortmid:mQ,shortparallel:vQ,ShortRightArrow:yQ,ShortUpArrow:bQ,shy:wQ,Sigma:xQ,sigma:kQ,sigmaf:_Q,sigmav:SQ,sim:TQ,simdot:CQ,sime:EQ,simeq:AQ,simg:LQ,simgE:MQ,siml:NQ,simlE:$Q,simne:OQ,simplus:PQ,simrarr:RQ,slarr:IQ,SmallCircle:DQ,smallsetminus:zQ,smashp:FQ,smeparsl:HQ,smid:BQ,smile:jQ,smt:WQ,smte:qQ,smtes:UQ,SOFTcy:VQ,softcy:GQ,solbar:KQ,solb:XQ,sol:YQ,Sopf:ZQ,sopf:JQ,spades:QQ,spadesuit:eee,spar:tee,sqcap:nee,sqcaps:ree,sqcup:iee,sqcups:oee,Sqrt:see,sqsub:lee,sqsube:aee,sqsubset:cee,sqsubseteq:uee,sqsup:fee,sqsupe:dee,sqsupset:hee,sqsupseteq:pee,square:gee,Square:mee,SquareIntersection:vee,SquareSubset:yee,SquareSubsetEqual:bee,SquareSuperset:wee,SquareSupersetEqual:xee,SquareUnion:kee,squarf:_ee,squ:See,squf:Tee,srarr:Cee,Sscr:Eee,sscr:Aee,ssetmn:Lee,ssmile:Mee,sstarf:Nee,Star:$ee,star:Oee,starf:Pee,straightepsilon:Ree,straightphi:Iee,strns:Dee,sub:zee,Sub:Fee,subdot:Hee,subE:Bee,sube:jee,subedot:Wee,submult:qee,subnE:Uee,subne:Vee,subplus:Gee,subrarr:Kee,subset:Xee,Subset:Yee,subseteq:Zee,subseteqq:Jee,SubsetEqual:Qee,subsetneq:ete,subsetneqq:tte,subsim:nte,subsub:rte,subsup:ite,succapprox:ote,succ:ste,succcurlyeq:lte,Succeeds:ate,SucceedsEqual:cte,SucceedsSlantEqual:ute,SucceedsTilde:fte,succeq:dte,succnapprox:hte,succneqq:pte,succnsim:gte,succsim:mte,SuchThat:vte,sum:yte,Sum:bte,sung:wte,sup1:xte,sup2:kte,sup3:_te,sup:Ste,Sup:Tte,supdot:Cte,supdsub:Ete,supE:Ate,supe:Lte,supedot:Mte,Superset:Nte,SupersetEqual:$te,suphsol:Ote,suphsub:Pte,suplarr:Rte,supmult:Ite,supnE:Dte,supne:zte,supplus:Fte,supset:Hte,Supset:Bte,supseteq:jte,supseteqq:Wte,supsetneq:qte,supsetneqq:Ute,supsim:Vte,supsub:Gte,supsup:Kte,swarhk:Xte,swarr:Yte,swArr:Zte,swarrow:Jte,swnwar:Qte,szlig:ene,Tab:tne,target:nne,Tau:rne,tau:ine,tbrk:one,Tcaron:sne,tcaron:lne,Tcedil:ane,tcedil:cne,Tcy:une,tcy:fne,tdot:dne,telrec:hne,Tfr:pne,tfr:gne,there4:mne,therefore:vne,Therefore:yne,Theta:bne,theta:wne,thetasym:xne,thetav:kne,thickapprox:_ne,thicksim:Sne,ThickSpace:Tne,ThinSpace:Cne,thinsp:Ene,thkap:Ane,thksim:Lne,THORN:Mne,thorn:Nne,tilde:$ne,Tilde:One,TildeEqual:Pne,TildeFullEqual:Rne,TildeTilde:Ine,timesbar:Dne,timesb:zne,times:Fne,timesd:Hne,tint:Bne,toea:jne,topbot:Wne,topcir:qne,top:Une,Topf:Vne,topf:Gne,topfork:Kne,tosa:Xne,tprime:Yne,trade:Zne,TRADE:Jne,triangle:Qne,triangledown:ere,triangleleft:tre,trianglelefteq:nre,triangleq:rre,triangleright:ire,trianglerighteq:ore,tridot:sre,trie:lre,triminus:are,TripleDot:cre,triplus:ure,trisb:fre,tritime:dre,trpezium:hre,Tscr:pre,tscr:gre,TScy:mre,tscy:vre,TSHcy:yre,tshcy:bre,Tstrok:wre,tstrok:xre,twixt:kre,twoheadleftarrow:_re,twoheadrightarrow:Sre,Uacute:Tre,uacute:Cre,uarr:Ere,Uarr:Are,uArr:Lre,Uarrocir:Mre,Ubrcy:Nre,ubrcy:$re,Ubreve:Ore,ubreve:Pre,Ucirc:Rre,ucirc:Ire,Ucy:Dre,ucy:zre,udarr:Fre,Udblac:Hre,udblac:Bre,udhar:jre,ufisht:Wre,Ufr:qre,ufr:Ure,Ugrave:Vre,ugrave:Gre,uHar:Kre,uharl:Xre,uharr:Yre,uhblk:Zre,ulcorn:Jre,ulcorner:Qre,ulcrop:eie,ultri:tie,Umacr:nie,umacr:rie,uml:iie,UnderBar:oie,UnderBrace:sie,UnderBracket:lie,UnderParenthesis:aie,Union:cie,UnionPlus:uie,Uogon:fie,uogon:die,Uopf:hie,uopf:pie,UpArrowBar:gie,uparrow:mie,UpArrow:vie,Uparrow:yie,UpArrowDownArrow:bie,updownarrow:wie,UpDownArrow:xie,Updownarrow:kie,UpEquilibrium:_ie,upharpoonleft:Sie,upharpoonright:Tie,uplus:Cie,UpperLeftArrow:Eie,UpperRightArrow:Aie,upsi:Lie,Upsi:Mie,upsih:Nie,Upsilon:$ie,upsilon:Oie,UpTeeArrow:Pie,UpTee:Rie,upuparrows:Iie,urcorn:Die,urcorner:zie,urcrop:Fie,Uring:Hie,uring:Bie,urtri:jie,Uscr:Wie,uscr:qie,utdot:Uie,Utilde:Vie,utilde:Gie,utri:Kie,utrif:Xie,uuarr:Yie,Uuml:Zie,uuml:Jie,uwangle:Qie,vangrt:eoe,varepsilon:toe,varkappa:noe,varnothing:roe,varphi:ioe,varpi:ooe,varpropto:soe,varr:loe,vArr:aoe,varrho:coe,varsigma:uoe,varsubsetneq:foe,varsubsetneqq:doe,varsupsetneq:hoe,varsupsetneqq:poe,vartheta:goe,vartriangleleft:moe,vartriangleright:voe,vBar:yoe,Vbar:boe,vBarv:woe,Vcy:xoe,vcy:koe,vdash:_oe,vDash:Soe,Vdash:Toe,VDash:Coe,Vdashl:Eoe,veebar:Aoe,vee:Loe,Vee:Moe,veeeq:Noe,vellip:$oe,verbar:Ooe,Verbar:Poe,vert:Roe,Vert:Ioe,VerticalBar:Doe,VerticalLine:zoe,VerticalSeparator:Foe,VerticalTilde:Hoe,VeryThinSpace:Boe,Vfr:joe,vfr:Woe,vltri:qoe,vnsub:Uoe,vnsup:Voe,Vopf:Goe,vopf:Koe,vprop:Xoe,vrtri:Yoe,Vscr:Zoe,vscr:Joe,vsubnE:Qoe,vsubne:ese,vsupnE:tse,vsupne:nse,Vvdash:rse,vzigzag:ise,Wcirc:ose,wcirc:sse,wedbar:lse,wedge:ase,Wedge:cse,wedgeq:use,weierp:fse,Wfr:dse,wfr:hse,Wopf:pse,wopf:gse,wp:mse,wr:vse,wreath:yse,Wscr:bse,wscr:wse,xcap:xse,xcirc:kse,xcup:_se,xdtri:Sse,Xfr:Tse,xfr:Cse,xharr:Ese,xhArr:Ase,Xi:Lse,xi:Mse,xlarr:Nse,xlArr:$se,xmap:Ose,xnis:Pse,xodot:Rse,Xopf:Ise,xopf:Dse,xoplus:zse,xotime:Fse,xrarr:Hse,xrArr:Bse,Xscr:jse,xscr:Wse,xsqcup:qse,xuplus:Use,xutri:Vse,xvee:Gse,xwedge:Kse,Yacute:Xse,yacute:Yse,YAcy:Zse,yacy:Jse,Ycirc:Qse,ycirc:ele,Ycy:tle,ycy:nle,yen:rle,Yfr:ile,yfr:ole,YIcy:sle,yicy:lle,Yopf:ale,yopf:cle,Yscr:ule,yscr:fle,YUcy:dle,yucy:hle,yuml:ple,Yuml:gle,Zacute:mle,zacute:vle,Zcaron:yle,zcaron:ble,Zcy:wle,zcy:xle,Zdot:kle,zdot:_le,zeetrf:Sle,ZeroWidthSpace:Tle,Zeta:Cle,zeta:Ele,zfr:Ale,Zfr:Lle,ZHcy:Mle,zhcy:Nle,zigrarr:$le,zopf:Ole,Zopf:Ple,Zscr:Rle,zscr:Ile,zwj:Dle,zwnj:zle},Fle="Á",Hle="á",Ble="Â",jle="â",Wle="´",qle="Æ",Ule="æ",Vle="À",Gle="à",Kle="&",Xle="&",Yle="Å",Zle="å",Jle="Ã",Qle="ã",eae="Ä",tae="ä",nae="¦",rae="Ç",iae="ç",oae="¸",sae="¢",lae="©",aae="©",cae="¤",uae="°",fae="÷",dae="É",hae="é",pae="Ê",gae="ê",mae="È",vae="è",yae="Ð",bae="ð",wae="Ë",xae="ë",kae="½",_ae="¼",Sae="¾",Tae=">",Cae=">",Eae="Í",Aae="í",Lae="Î",Mae="î",Nae="¡",$ae="Ì",Oae="ì",Pae="¿",Rae="Ï",Iae="ï",Dae="«",zae="<",Fae="<",Hae="¯",Bae="µ",jae="·",Wae=" ",qae="¬",Uae="Ñ",Vae="ñ",Gae="Ó",Kae="ó",Xae="Ô",Yae="ô",Zae="Ò",Jae="ò",Qae="ª",ece="º",tce="Ø",nce="ø",rce="Õ",ice="õ",oce="Ö",sce="ö",lce="¶",ace="±",cce="£",uce='"',fce='"',dce="»",hce="®",pce="®",gce="§",mce="­",vce="¹",yce="²",bce="³",wce="ß",xce="Þ",kce="þ",_ce="×",Sce="Ú",Tce="ú",Cce="Û",Ece="û",Ace="Ù",Lce="ù",Mce="¨",Nce="Ü",$ce="ü",Oce="Ý",Pce="ý",Rce="¥",Ice="ÿ",Dce={Aacute:Fle,aacute:Hle,Acirc:Ble,acirc:jle,acute:Wle,AElig:qle,aelig:Ule,Agrave:Vle,agrave:Gle,amp:Kle,AMP:Xle,Aring:Yle,aring:Zle,Atilde:Jle,atilde:Qle,Auml:eae,auml:tae,brvbar:nae,Ccedil:rae,ccedil:iae,cedil:oae,cent:sae,copy:lae,COPY:aae,curren:cae,deg:uae,divide:fae,Eacute:dae,eacute:hae,Ecirc:pae,ecirc:gae,Egrave:mae,egrave:vae,ETH:yae,eth:bae,Euml:wae,euml:xae,frac12:kae,frac14:_ae,frac34:Sae,gt:Tae,GT:Cae,Iacute:Eae,iacute:Aae,Icirc:Lae,icirc:Mae,iexcl:Nae,Igrave:$ae,igrave:Oae,iquest:Pae,Iuml:Rae,iuml:Iae,laquo:Dae,lt:zae,LT:Fae,macr:Hae,micro:Bae,middot:jae,nbsp:Wae,not:qae,Ntilde:Uae,ntilde:Vae,Oacute:Gae,oacute:Kae,Ocirc:Xae,ocirc:Yae,Ograve:Zae,ograve:Jae,ordf:Qae,ordm:ece,Oslash:tce,oslash:nce,Otilde:rce,otilde:ice,Ouml:oce,ouml:sce,para:lce,plusmn:ace,pound:cce,quot:uce,QUOT:fce,raquo:dce,reg:hce,REG:pce,sect:gce,shy:mce,sup1:vce,sup2:yce,sup3:bce,szlig:wce,THORN:xce,thorn:kce,times:_ce,Uacute:Sce,uacute:Tce,Ucirc:Cce,ucirc:Ece,Ugrave:Ace,ugrave:Lce,uml:Mce,Uuml:Nce,uuml:$ce,Yacute:Oce,yacute:Pce,yen:Rce,yuml:Ice},zce="&",Fce="'",Hce=">",Bce="<",jce='"',Px={amp:zce,apos:Fce,gt:Hce,lt:Bce,quot:jce};var $s={};const Wce={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var P0;function qce(){if(P0)return $s;P0=1;var e=$s&&$s.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty($s,"__esModule",{value:!0});var t=e(Wce),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return $s.default=o,$s}var R0;function I0(){if(R0)return Lr;R0=1;var e=Lr&&Lr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.decodeHTML=Lr.decodeHTMLStrict=Lr.decodeXML=void 0;var t=e(Ox),r=e(Dce),o=e(Px),s=e(qce()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Lr.decodeXML=f(o.default),Lr.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p<g?1:-1};Lr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),v=0,b=0;v<g.length;v++)p[b]===g[v]?(g[v]+=";?",b++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),P=h(t.default);function A(N){return N.substr(-1)!==";"&&(N+=";"),P(N)}return function(N){return String(N).replace(w,A)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Lr}var $n={},D0;function z0(){if(D0)return $n;D0=1;var e=$n&&$n.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty($n,"__esModule",{value:!0}),$n.escapeUTF8=$n.escape=$n.encodeNonAsciiHTML=$n.encodeHTML=$n.encodeXML=void 0;var t=e(Px),r=d(t.default),o=h(r);$n.encodeXML=N(r);var s=e(Ox),c=d(s.default),f=h(c);$n.encodeHTML=b(c,f),$n.encodeNonAsciiHTML=N(c);function d(E){return Object.keys(E).sort().reduce(function(M,D){return M[E[D]]="&"+D+";",M},{})}function h(E){for(var M=[],D=[],C=0,I=Object.keys(E);C<I.length;C++){var q=I[C];q.length===1?M.push("\\"+q):D.push(q)}M.sort();for(var Y=0;Y<M.length-1;Y++){for(var oe=Y;oe<M.length-1&&M[oe].charCodeAt(1)+1===M[oe+1].charCodeAt(1);)oe+=1;var J=1+oe-Y;J<3||M.splice(Y,J,M[Y]+"-"+M[oe])}return D.unshift("["+M.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(E,M){return function(D){return D.replace(M,function(C){return E[C]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function P(E){return E.replace(w,v)}$n.escape=P;function A(E){return E.replace(o,v)}$n.escapeUTF8=A;function N(E){return function(M){return M.replace(w,function(D){return E[D]||v(D)})}}return $n}var F0;function Uce(){return F0||(F0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=I0(),r=z0();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=z0();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=I0();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Fd)),Fd}var Hd,H0;function Vce(){if(H0)return Hd;H0=1;function e(O,$){if(!(O instanceof $))throw new TypeError("Cannot call a class as a function")}function t(O,$){for(var _=0;_<$.length;_++){var k=$[_];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function r(O,$,_){return $&&t(O.prototype,$),O}function o(O,$){var _=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!_){if(Array.isArray(O)||(_=s(O))||$){_&&(O=_);var k=0,R=function(){};return{s:R,n:function(){return k>=O.length?{done:!0}:{done:!1,value:O[k++]}},e:function(je){throw je},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,ve;return{s:function(){_=_.call(O)},n:function(){var je=_.next();return B=je.done,je},e:function(je){ae=!0,ve=je},f:function(){try{!B&&_.return!=null&&_.return()}finally{if(ae)throw ve}}}}function s(O,$){if(O){if(typeof O=="string")return c(O,$);var _=Object.prototype.toString.call(O).slice(8,-1);if(_==="Object"&&O.constructor&&(_=O.constructor.name),_==="Map"||_==="Set")return Array.from(O);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return c(O,$)}}function c(O,$){($==null||$>O.length)&&($=O.length);for(var _=0,k=new Array($);_<$;_++)k[_]=O[_];return k}var f=Uce(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var O={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return N(0,5).forEach(function($){N(0,5).forEach(function(_){N(0,5).forEach(function(k){return p($,_,k,O)})})}),N(0,23).forEach(function($){var _=$+232,k=g($*10+8);O[_]="#"+k+k+k}),O}function p(O,$,_,k){var R=16+O*36+$*6+_,B=O>0?O*40+55:0,ae=$>0?$*40+55:0,ve=_>0?_*40+55:0;k[R]=v([B,ae,ve])}function g(O){for(var $=O.toString(16);$.length<2;)$="0"+$;return $}function v(O){var $=[],_=o(O),k;try{for(_.s();!(k=_.n()).done;){var R=k.value;$.push(g(R))}}catch(B){_.e(B)}finally{_.f()}return"#"+$.join("")}function b(O,$,_,k){var R;return $==="text"?R=D(_,k):$==="display"?R=P(O,_,k):$==="xterm256Foreground"?R=q(O,k.colors[_]):$==="xterm256Background"?R=Y(O,k.colors[_]):$==="rgb"&&(R=w(O,_)),R}function w(O,$){$=$.substring(2).slice(0,-1);var _=+$.substr(0,2),k=$.substring(5).split(";"),R=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(O,(_===38?"color:#":"background-color:#")+R)}function P(O,$,_){$=parseInt($,10);var k={"-1":function(){return"<br/>"},0:function(){return O.length&&A(O)},1:function(){return C(O,"b")},3:function(){return C(O,"i")},4:function(){return C(O,"u")},8:function(){return I(O,"display:none")},9:function(){return C(O,"strike")},22:function(){return I(O,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return oe(O,"i")},24:function(){return oe(O,"u")},39:function(){return q(O,_.fg)},49:function(){return Y(O,_.bg)},53:function(){return I(O,"text-decoration:overline")}},R;return k[$]?R=k[$]():4<$&&$<7?R=C(O,"blink"):29<$&&$<38?R=q(O,_.colors[$-30]):39<$&&$<48?R=Y(O,_.colors[$-40]):89<$&&$<98?R=q(O,_.colors[8+($-90)]):99<$&&$<108&&(R=Y(O,_.colors[8+($-100)])),R}function A(O){var $=O.slice(0);return O.length=0,$.reverse().map(function(_){return"</"+_+">"}).join("")}function N(O,$){for(var _=[],k=O;k<=$;k++)_.push(k);return _}function E(O){return function($){return(O===null||$.category!==O)&&O!=="all"}}function M(O){O=parseInt(O,10);var $=null;return O===0?$="all":O===1?$="bold":2<O&&O<5?$="underline":4<O&&O<7?$="blink":O===8?$="hide":O===9?$="strike":29<O&&O<38||O===39||89<O&&O<98?$="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&($="background-color"),$}function D(O,$){return $.escapeXML?f.encodeXML(O):O}function C(O,$,_){return _||(_=""),O.push($),"<".concat($).concat(_?' style="'.concat(_,'"'):"",">")}function I(O,$){return C(O,"span",$)}function q(O,$){return C(O,"span","color:"+$)}function Y(O,$){return C(O,"span","background-color:"+$)}function oe(O,$){var _;if(O.slice(-1)[0]===$&&(_=O.pop()),_)return"</"+$+">"}function J(O,$,_){var k=!1,R=3;function B(){return""}function ae(j,ee){return _("xterm256Foreground",ee),""}function ve(j,ee){return _("xterm256Background",ee),""}function _e(j){return $.newline?_("display",-1):_("text",j),""}function je(j,ee){k=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var de=o(ee),he;try{for(de.s();!(he=de.n()).done;){var me=he.value;_("display",me)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ee(j){return _("text",j),""}function Ge(j){return _("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ge},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:je},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function He(j,ee){ee>R&&k||(k=!1,O=O.replace(j.pattern,j.sub))}var Pe=[],F=O,Z=F.length;e:for(;Z>0;){for(var re=0,le=0,ce=Ue.length;le<ce;re=++le){var z=Ue[re];if(He(z,re),O.length!==Z){Z=O.length;continue e}}if(O.length===Z)break;Pe.push(0),Z=O.length}return Pe}function G(O,$,_){return $!=="text"&&(O=O.filter(E(M(_))),O.push({token:$,data:_,category:M(_)})),O}var K=(function(){function O($){e(this,O),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(O,[{key:"toHtml",value:function(_){var k=this;_=typeof _=="string"?[_]:_;var R=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=b(R,ve.token,ve.data,B);_e&&ae.push(_e)}),J(_.join(""),B,function(ve,_e){var je=b(R,ve,_e,B);je&&ae.push(je),B.stream&&(k.stickyStack=G(k.stickyStack,ve,_e))}),R.length&&ae.push(A(R)),ae.join("")}}]),O})();return Hd=K,Hd}var Gce=Vce();const Kce=Op(Gce);function va(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Xce(e,t){return t&&e.endsWith(t)}async function Pp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Rp(e){return new Kce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Yce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Rx(e){let t=e;if(Yce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=ZA(t.stack||"",{ignoreStackEntries:[]}),t}function Zce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(va(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(va(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(va(t.stack))}`),r.length>0?r:null}function Ix(e,t){const r=Rp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Zce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const ec=bA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),xo=rs(ec,"file"),gn=rs(ec,"view"),Dx=rs(ec,"line"),zx=rs(ec,"column"),Ci=rs(ec,"test");var B0={exports:{}},j0;function Ip(){return j0||(j0=1,(function(e,t){(function(r){r(So())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function L(Qt){return{type:Qt,style:"keyword"}}var U=L("keyword a"),ye=L("keyword b"),Se=L("keyword c"),fe=L("keyword d"),Ie=L("operator"),gt={type:"atom",style:"atom"};return{if:L("if"),while:U,with:U,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:L("new"),delete:Se,void:Se,throw:Se,debugger:L("debugger"),var:L("var"),const:L("var"),let:L("var"),function:L("function"),catch:L("catch"),for:L("for"),switch:L("switch"),case:L("case"),default:L("default"),in:Ie,typeof:Ie,instanceof:Ie,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:L("this"),class:L("class"),super:L("atom"),yield:Se,export:L("export"),import:L("import"),extends:Se,await:Se}})(),w=/[+\-*&%=<>!?|~^@]/,P=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(L){for(var U=!1,ye,Se=!1;(ye=L.next())!=null;){if(!U){if(ye=="/"&&!Se)return;ye=="["?Se=!0:Se&&ye=="]"&&(Se=!1)}U=!U&&ye=="\\"}}var N,E;function M(L,U,ye){return N=L,E=ye,U}function D(L,U){var ye=L.next();if(ye=='"'||ye=="'")return U.tokenize=C(ye),U.tokenize(L,U);if(ye=="."&&L.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(ye=="."&&L.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return M(ye);if(ye=="="&&L.eat(">"))return M("=>","operator");if(ye=="0"&&L.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(ye))return L.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(ye=="/")return L.eat("*")?(U.tokenize=I,I(L,U)):L.eat("/")?(L.skipToEnd(),M("comment","comment")):er(L,U,1)?(A(L),L.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(L.eat("="),M("operator","operator",L.current()));if(ye=="`")return U.tokenize=q,q(L,U);if(ye=="#"&&L.peek()=="!")return L.skipToEnd(),M("meta","meta");if(ye=="#"&&L.eatWhile(v))return M("variable","property");if(ye=="<"&&L.match("!--")||ye=="-"&&L.match("->")&&!/\S/.test(L.string.slice(0,L.start)))return L.skipToEnd(),M("comment","comment");if(w.test(ye))return(ye!=">"||!U.lexical||U.lexical.type!=">")&&(L.eat("=")?(ye=="!"||ye=="=")&&L.eat("="):/[<>*+\-|&?]/.test(ye)&&(L.eat(ye),ye==">"&&L.eat(ye))),ye=="?"&&L.eat(".")?M("."):M("operator","operator",L.current());if(v.test(ye)){L.eatWhile(v);var Se=L.current();if(U.lastType!="."){if(b.propertyIsEnumerable(Se)){var fe=b[Se];return M(fe.type,fe.style,Se)}if(Se=="async"&&L.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",Se)}return M("variable","variable",Se)}}function C(L){return function(U,ye){var Se=!1,fe;if(d&&U.peek()=="@"&&U.match(P))return ye.tokenize=D,M("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==L&&!Se);)Se=!Se&&fe=="\\";return Se||(ye.tokenize=D),M("string","string")}}function I(L,U){for(var ye=!1,Se;Se=L.next();){if(Se=="/"&&ye){U.tokenize=D;break}ye=Se=="*"}return M("comment","comment")}function q(L,U){for(var ye=!1,Se;(Se=L.next())!=null;){if(!ye&&(Se=="`"||Se=="$"&&L.eat("{"))){U.tokenize=D;break}ye=!ye&&Se=="\\"}return M("quasi","string-2",L.current())}var Y="([{}])";function oe(L,U){U.fatArrowAt&&(U.fatArrowAt=null);var ye=L.string.indexOf("=>",L.start);if(!(ye<0)){if(g){var Se=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(L.string.slice(L.start,ye));Se&&(ye=Se.index)}for(var fe=0,Ie=!1,gt=ye-1;gt>=0;--gt){var Qt=L.string.charAt(gt),Cn=Y.indexOf(Qt);if(Cn>=0&&Cn<3){if(!fe){++gt;break}if(--fe==0){Qt=="("&&(Ie=!0);break}}else if(Cn>=3&&Cn<6)++fe;else if(v.test(Qt))Ie=!0;else if(/["'\/`]/.test(Qt))for(;;--gt){if(gt==0)return;var fs=L.string.charAt(gt-1);if(fs==Qt&&L.string.charAt(gt-2)!="\\"){gt--;break}}else if(Ie&&!fe){++gt;break}}Ie&&!fe&&(U.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(L,U,ye,Se,fe,Ie){this.indented=L,this.column=U,this.type=ye,this.prev=fe,this.info=Ie,Se!=null&&(this.align=Se)}function K(L,U){if(!p)return!1;for(var ye=L.localVars;ye;ye=ye.next)if(ye.name==U)return!0;for(var Se=L.context;Se;Se=Se.prev)for(var ye=Se.vars;ye;ye=ye.next)if(ye.name==U)return!0}function O(L,U,ye,Se,fe){var Ie=L.cc;for($.state=L,$.stream=fe,$.marked=null,$.cc=Ie,$.style=U,L.lexical.hasOwnProperty("align")||(L.lexical.align=!0);;){var gt=Ie.length?Ie.pop():h?ce:re;if(gt(ye,Se)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return $.marked?$.marked:ye=="variable"&&K(L,Se)?"variable-2":U}}}var $={state:null,marked:null,cc:null};function _(){for(var L=arguments.length-1;L>=0;L--)$.cc.push(arguments[L])}function k(){return _.apply(null,arguments),!0}function R(L,U){for(var ye=U;ye;ye=ye.next)if(ye.name==L)return!0;return!1}function B(L){var U=$.state;if($.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var ye=ae(L,U.context);if(ye!=null){U.context=ye;return}}else if(!R(L,U.localVars)){U.localVars=new je(L,U.localVars);return}}s.globalVars&&!R(L,U.globalVars)&&(U.globalVars=new je(L,U.globalVars))}}function ae(L,U){if(U)if(U.block){var ye=ae(L,U.prev);return ye?ye==U.prev?U:new _e(ye,U.vars,!0):null}else return R(L,U.vars)?U:new _e(U.prev,new je(L,U.vars),!1);else return null}function ve(L){return L=="public"||L=="private"||L=="protected"||L=="abstract"||L=="readonly"}function _e(L,U,ye){this.prev=L,this.vars=U,this.block=ye}function je(L,U){this.name=L,this.next=U}var Ee=new je("this",new je("arguments",null));function Ge(){$.state.context=new _e($.state.context,$.state.localVars,!1),$.state.localVars=Ee}function Ue(){$.state.context=new _e($.state.context,$.state.localVars,!0),$.state.localVars=null}Ge.lex=Ue.lex=!0;function He(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}He.lex=!0;function Pe(L,U){var ye=function(){var Se=$.state,fe=Se.indented;if(Se.lexical.type=="stat")fe=Se.lexical.indented;else for(var Ie=Se.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;Se.lexical=new G(fe,$.stream.column(),L,null,Se.lexical,U)};return ye.lex=!0,ye}function F(){var L=$.state;L.lexical.prev&&(L.lexical.type==")"&&(L.indented=L.lexical.indented),L.lexical=L.lexical.prev)}F.lex=!0;function Z(L){function U(ye){return ye==L?k():L==";"||ye=="}"||ye==")"||ye=="]"?_():k(U)}return U}function re(L,U){return L=="var"?k(Pe("vardef",U),is,Z(";"),F):L=="keyword a"?k(Pe("form"),j,re,F):L=="keyword b"?k(Pe("form"),re,F):L=="keyword d"?$.stream.match(/^\s*$/,!1)?k():k(Pe("stat"),de,Z(";"),F):L=="debugger"?k(Z(";")):L=="{"?k(Pe("}"),Ue,Ut,F,He):L==";"?k():L=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==F&&$.state.cc.pop()(),k(Pe("form"),j,re,F,os)):L=="function"?k(hr):L=="for"?k(Pe("form"),Ue,oc,re,He,F):L=="class"||g&&U=="interface"?($.marked="keyword",k(Pe("form",L=="class"?L:U),ss,F)):L=="variable"?g&&U=="declare"?($.marked="keyword",k(re)):g&&(U=="module"||U=="enum"||U=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",U=="enum"?k(qe):U=="type"?k(sc,Z("operator"),at,Z(";")):k(Pe("form"),Tn,Z("{"),Pe("}"),Ut,F,F)):g&&U=="namespace"?($.marked="keyword",k(Pe("form"),ce,re,F)):g&&U=="abstract"?($.marked="keyword",k(re)):k(Pe("stat"),Re):L=="switch"?k(Pe("form"),j,Z("{"),Pe("}","switch"),Ue,Ut,F,F,He):L=="case"?k(ce,Z(":")):L=="default"?k(Z(":")):L=="catch"?k(Pe("form"),Ge,le,re,F,He):L=="export"?k(Pe("stat"),ls,F):L=="import"?k(Pe("stat"),ji,F):L=="async"?k(re):U=="@"?k(ce,re):_(Pe("stat"),ce,Z(";"),F)}function le(L){if(L=="(")return k(kr,Z(")"))}function ce(L,U){return ee(L,U,!1)}function z(L,U){return ee(L,U,!0)}function j(L){return L!="("?_():k(Pe(")"),de,Z(")"),F)}function ee(L,U,ye){if($.state.fatArrowAt==$.stream.start){var Se=ye?be:xe;if(L=="(")return k(Ge,Pe(")"),ut(kr,")"),F,Z("=>"),Se,He);if(L=="variable")return _(Ge,Tn,Z("=>"),Se,He)}var fe=ye?me:he;return J.hasOwnProperty(L)?k(fe):L=="function"?k(hr,fe):L=="class"||g&&U=="interface"?($.marked="keyword",k(Pe("form"),Af,F)):L=="keyword c"||L=="async"?k(ye?z:ce):L=="("?k(Pe(")"),de,Z(")"),F,fe):L=="operator"||L=="spread"?k(ye?z:ce):L=="["?k(Pe("]"),It,F,fe):L=="{"?Jt(ct,"}",null,fe):L=="quasi"?_(Ce,fe):L=="new"?k(Q(ye)):k()}function de(L){return L.match(/[;\}\)\],]/)?_():_(ce)}function he(L,U){return L==","?k(de):me(L,U,!1)}function me(L,U,ye){var Se=ye==!1?he:me,fe=ye==!1?ce:z;if(L=="=>")return k(Ge,ye?be:xe,He);if(L=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(Se):g&&U=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Pe(">"),ut(at,">"),F,Se):U=="?"?k(ce,Z(":"),fe):k(fe);if(L=="quasi")return _(Ce,Se);if(L!=";"){if(L=="(")return Jt(z,")","call",Se);if(L==".")return k(et,Se);if(L=="[")return k(Pe("]"),de,Z("]"),F,Se);if(g&&U=="as")return $.marked="keyword",k(at,Se);if(L=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),k(fe)}}function Ce(L,U){return L!="quasi"?_():U.slice(U.length-2)!="${"?k(Ce):k(de,Ae)}function Ae(L){if(L=="}")return $.marked="string-2",$.state.tokenize=q,k(Ce)}function xe(L){return oe($.stream,$.state),_(L=="{"?re:ce)}function be(L){return oe($.stream,$.state),_(L=="{"?re:z)}function Q(L){return function(U){return U=="."?k(L?ie:ue):U=="variable"&&g?k(qn,L?me:he):_(L?z:ce)}}function ue(L,U){if(U=="target")return $.marked="keyword",k(he)}function ie(L,U){if(U=="target")return $.marked="keyword",k(me)}function Re(L){return L==":"?k(F,re):_(he,Z(";"),F)}function et(L){if(L=="variable")return $.marked="property",k()}function ct(L,U){if(L=="async")return $.marked="property",k(ct);if(L=="variable"||$.style=="keyword"){if($.marked="property",U=="get"||U=="set")return k(dt);var ye;return g&&$.state.fatArrowAt==$.stream.start&&(ye=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+ye[0].length),k(Nt)}else{if(L=="number"||L=="string")return $.marked=d?"property":$.style+" property",k(Nt);if(L=="jsonld-keyword")return k(Nt);if(g&&ve(U))return $.marked="keyword",k(ct);if(L=="[")return k(ce,jn,Z("]"),Nt);if(L=="spread")return k(z,Nt);if(U=="*")return $.marked="keyword",k(ct);if(L==":")return _(Nt)}}function dt(L){return L!="variable"?_(Nt):($.marked="property",k(hr))}function Nt(L){if(L==":")return k(z);if(L=="(")return _(hr)}function ut(L,U,ye){function Se(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var gt=$.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),k(function(Qt,Cn){return Qt==U||Cn==U?_():_(L)},Se)}return fe==U||Ie==U?k():ye&&ye.indexOf(";")>-1?_(L):k(Z(U))}return function(fe,Ie){return fe==U||Ie==U?k():_(L,Se)}}function Jt(L,U,ye){for(var Se=3;Se<arguments.length;Se++)$.cc.push(arguments[Se]);return k(Pe(U,ye),ut(L,U),F)}function Ut(L){return L=="}"?k():_(re,Ut)}function jn(L,U){if(g){if(L==":")return k(at);if(U=="?")return k(jn)}}function Wr(L,U){if(g&&(L==":"||U=="in"))return k(at)}function Bt(L){if(g&&L==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?k(ce,Wn,at):k(at)}function Wn(L,U){if(U=="is")return $.marked="keyword",k()}function at(L,U){if(U=="keyof"||U=="typeof"||U=="infer"||U=="readonly")return $.marked="keyword",k(U=="typeof"?z:at);if(L=="variable"||U=="void")return $.marked="type",k(dr);if(U=="|"||U=="&")return k(at);if(L=="string"||L=="number"||L=="atom")return k(dr);if(L=="[")return k(Pe("]"),ut(at,"]",","),F,dr);if(L=="{")return k(Pe("}"),Ye,F,dr);if(L=="(")return k(ut(Rt,")"),To,dr);if(L=="<")return k(ut(at,">"),at);if(L=="quasi")return _(un,dr)}function To(L){if(L=="=>")return k(at)}function Ye(L){return L.match(/[\}\)\]]/)?k():L==","||L==";"?k(Ye):_(li,Ye)}function li(L,U){if(L=="variable"||$.style=="keyword")return $.marked="property",k(li);if(U=="?"||L=="number"||L=="string")return k(li);if(L==":")return k(at);if(L=="[")return k(Z("variable"),Wr,Z("]"),li);if(L=="(")return _(Bi,li);if(!L.match(/[;\}\)\],]/))return k()}function un(L,U){return L!="quasi"?_():U.slice(U.length-2)!="${"?k(un):k(at,Pt)}function Pt(L){if(L=="}")return $.marked="string-2",$.state.tokenize=q,k(un)}function Rt(L,U){return L=="variable"&&$.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):L==":"?k(at):L=="spread"?k(Rt):_(at)}function dr(L,U){if(U=="<")return k(Pe(">"),ut(at,">"),F,dr);if(U=="|"||L=="."||U=="&")return k(at);if(L=="[")return k(at,Z("]"),dr);if(U=="extends"||U=="implements")return $.marked="keyword",k(at);if(U=="?")return k(at,Z(":"),at)}function qn(L,U){if(U=="<")return k(Pe(">"),ut(at,">"),F,dr)}function wr(){return _(at,fn)}function fn(L,U){if(U=="=")return k(at)}function is(L,U){return U=="enum"?($.marked="keyword",k(qe)):_(Tn,jn,xr,Ef)}function Tn(L,U){if(g&&ve(U))return $.marked="keyword",k(Tn);if(L=="variable")return B(U),k();if(L=="spread")return k(Tn);if(L=="[")return Jt(ml,"]");if(L=="{")return Jt(Fi,"}")}function Fi(L,U){return L=="variable"&&!$.stream.match(/^\s*:/,!1)?(B(U),k(xr)):(L=="variable"&&($.marked="property"),L=="spread"?k(Tn):L=="}"?_():L=="["?k(ce,Z("]"),Z(":"),Fi):k(Z(":"),Tn,xr))}function ml(){return _(Tn,xr)}function xr(L,U){if(U=="=")return k(z)}function Ef(L){if(L==",")return k(is)}function os(L,U){if(L=="keyword b"&&U=="else")return k(Pe("form","else"),re,F)}function oc(L,U){if(U=="await")return k(oc);if(L=="(")return k(Pe(")"),vl,F)}function vl(L){return L=="var"?k(is,Hi):L=="variable"?k(Hi):_(Hi)}function Hi(L,U){return L==")"?k():L==";"?k(Hi):U=="in"||U=="of"?($.marked="keyword",k(ce,Hi)):_(ce,Hi)}function hr(L,U){if(U=="*")return $.marked="keyword",k(hr);if(L=="variable")return B(U),k(hr);if(L=="(")return k(Ge,Pe(")"),ut(kr,")"),F,Bt,re,He);if(g&&U=="<")return k(Pe(">"),ut(wr,">"),F,hr)}function Bi(L,U){if(U=="*")return $.marked="keyword",k(Bi);if(L=="variable")return B(U),k(Bi);if(L=="(")return k(Ge,Pe(")"),ut(kr,")"),F,Bt,He);if(g&&U=="<")return k(Pe(">"),ut(wr,">"),F,Bi)}function sc(L,U){if(L=="keyword"||L=="variable")return $.marked="type",k(sc);if(U=="<")return k(Pe(">"),ut(wr,">"),F)}function kr(L,U){return U=="@"&&k(ce,kr),L=="spread"?k(kr):g&&ve(U)?($.marked="keyword",k(kr)):g&&L=="this"?k(jn,xr):_(Tn,jn,xr)}function Af(L,U){return L=="variable"?ss(L,U):_r(L,U)}function ss(L,U){if(L=="variable")return B(U),k(_r)}function _r(L,U){if(U=="<")return k(Pe(">"),ut(wr,">"),F,_r);if(U=="extends"||U=="implements"||g&&L==",")return U=="implements"&&($.marked="keyword"),k(g?at:ce,_r);if(L=="{")return k(Pe("}"),Sr,F)}function Sr(L,U){if(L=="async"||L=="variable"&&(U=="static"||U=="get"||U=="set"||g&&ve(U))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",k(Sr);if(L=="variable"||$.style=="keyword")return $.marked="property",k(Co,Sr);if(L=="number"||L=="string")return k(Co,Sr);if(L=="[")return k(ce,jn,Z("]"),Co,Sr);if(U=="*")return $.marked="keyword",k(Sr);if(g&&L=="(")return _(Bi,Sr);if(L==";"||L==",")return k(Sr);if(L=="}")return k();if(U=="@")return k(ce,Sr)}function Co(L,U){if(U=="!"||U=="?")return k(Co);if(L==":")return k(at,xr);if(U=="=")return k(z);var ye=$.state.lexical.prev,Se=ye&&ye.info=="interface";return _(Se?Bi:hr)}function ls(L,U){return U=="*"?($.marked="keyword",k(us,Z(";"))):U=="default"?($.marked="keyword",k(ce,Z(";"))):L=="{"?k(ut(as,"}"),us,Z(";")):_(re)}function as(L,U){if(U=="as")return $.marked="keyword",k(Z("variable"));if(L=="variable")return _(z,as)}function ji(L){return L=="string"?k():L=="("?_(ce):L=="."?_(he):_(cs,qr,us)}function cs(L,U){return L=="{"?Jt(cs,"}"):(L=="variable"&&B(U),U=="*"&&($.marked="keyword"),k(yl))}function qr(L){if(L==",")return k(cs,qr)}function yl(L,U){if(U=="as")return $.marked="keyword",k(cs)}function us(L,U){if(U=="from")return $.marked="keyword",k(ce)}function It(L){return L=="]"?k():_(ut(z,"]"))}function qe(){return _(Pe("form"),Tn,Z("{"),Pe("}"),ut(ai,"}"),F,F)}function ai(){return _(Tn,xr)}function bl(L,U){return L.lastType=="operator"||L.lastType==","||w.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function er(L,U,ye){return U.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(L.string.slice(0,L.pos-(ye||0)))}return{startState:function(L){var U={tokenize:D,lastType:"sof",cc:[],lexical:new G((L||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new _e(null,null,!1),indented:L||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(L,U){if(L.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=L.indentation(),oe(L,U)),U.tokenize!=I&&L.eatSpace())return null;var ye=U.tokenize(L,U);return N=="comment"?ye:(U.lastType=N=="operator"&&(E=="++"||E=="--")?"incdec":N,O(U,ye,N,E,L))},indent:function(L,U){if(L.tokenize==I||L.tokenize==q)return r.Pass;if(L.tokenize!=D)return 0;var ye=U&&U.charAt(0),Se=L.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=L.cc.length-1;Ie>=0;--Ie){var gt=L.cc[Ie];if(gt==F)Se=Se.prev;else if(gt!=os&&gt!=He)break}for(;(Se.type=="stat"||Se.type=="form")&&(ye=="}"||(fe=L.cc[L.cc.length-1])&&(fe==he||fe==me)&&!/^[,\.=+\-*:?[\(]/.test(U));)Se=Se.prev;f&&Se.type==")"&&Se.prev.type=="stat"&&(Se=Se.prev);var Qt=Se.type,Cn=ye==Qt;return Qt=="vardef"?Se.indented+(L.lastType=="operator"||L.lastType==","?Se.info.length+1:0):Qt=="form"&&ye=="{"?Se.indented:Qt=="form"?Se.indented+c:Qt=="stat"?Se.indented+(bl(L,U)?f||c:0):Se.info=="switch"&&!Cn&&s.doubleIndentSwitch!=!1?Se.indented+(/^(?:case|default)\b/.test(U)?c:2*c):Se.align?Se.column+(Cn?0:1):Se.indented+(Cn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:er,skipExpression:function(L){O(L,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),B0.exports}Ip();var W0={exports:{}},q0;function Dp(){return q0||(q0=1,(function(e,t){(function(r){r(So())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function w(k,R){function B(_e){return R.tokenize=_e,_e(k,R)}var ae=k.next();if(ae=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(N("atom","]]>")):null:k.match("--")?B(N("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(E(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),R.tokenize=N("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",R.tokenize=P,"tag bracket");if(ae=="&"){var ve;return k.eat("#")?k.eat("x")?ve=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ve=k.eatWhile(/[\d]/)&&k.eat(";"):ve=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ve?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function P(k,R){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=q,R.tagName=R.tagStart=null;var ae=R.tokenize(k,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=A(B),R.stringStartCol=k.column(),R.tokenize(k,R)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var R=function(B,ae){for(;!B.eol();)if(B.next()==k){ae.tokenize=P;break}return"string"};return R.isInAttribute=!0,R}function N(k,R){return function(B,ae){for(;!B.eol();){if(B.match(R)){ae.tokenize=w;break}B.next()}return k}}function E(k){return function(R,B){for(var ae;(ae=R.next())!=null;){if(ae=="<")return B.tokenize=E(k+1),B.tokenize(R,B);if(ae==">")if(k==1){B.tokenize=w;break}else return B.tokenize=E(k-1),B.tokenize(R,B)}return"meta"}}function M(k){return k&&k.toLowerCase()}function D(k,R,B){this.prev=k.context,this.tagName=R||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function C(k){k.context&&(k.context=k.context.prev)}function I(k,R){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(M(B))||!h.contextGrabbers[M(B)].hasOwnProperty(M(R))))return;C(k)}}function q(k,R,B){return k=="openTag"?(B.tagStart=R.column(),Y):k=="closeTag"?oe:q}function Y(k,R,B){return k=="word"?(B.tagName=R.current(),b="tag",K):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",K(k,R,B)):(b="error",Y)}function oe(k,R,B){if(k=="word"){var ae=R.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(M(B.context.tagName))&&C(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(b="tag",J):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",J(k,R,B)):(b="error",G)}function J(k,R,B){return k!="endTag"?(b="error",J):(C(B),q)}function G(k,R,B){return b="error",J(k,R,B)}function K(k,R,B){if(k=="word")return b="attribute",O;if(k=="endTag"||k=="selfcloseTag"){var ae=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(M(ae))?I(B,ae):(I(B,ae),B.context=new D(B,ae,ve==B.indented)),q}return b="error",K}function O(k,R,B){return k=="equals"?$:(h.allowMissing||(b="error"),K(k,R,B))}function $(k,R,B){return k=="string"?_:k=="word"&&h.allowUnquoted?(b="string",K):(b="error",K(k,R,B))}function _(k,R,B){return k=="string"?_:K(k,R,B)}return{startState:function(k){var R={tokenize:w,state:q,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(R.baseIndent=k),R},token:function(k,R){if(!R.tagName&&k.sol()&&(R.indented=k.indentation()),k.eatSpace())return null;v=null;var B=R.tokenize(k,R);return(B||v)&&B!="comment"&&(b=null,R.state=R.state(v||B,k,R),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,R,B){var ae=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ae&&ae.noIndent)return r.Pass;if(k.tokenize!=P&&k.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=h.contextGrabbers[M(ae.tagName)];if(_e&&_e.hasOwnProperty(M(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==$&&(k.state=K)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var R=[],B=k.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),W0.exports}Dp();var U0={exports:{}},V0={exports:{}},G0;function Jce(){return G0||(G0=1,(function(e,t){(function(r){r(So())})(function(r){r.defineMode("css",function(G,K){var O=K.inline;K.propertyKeywords||(K=r.resolveMode("text/css"));var $=G.indentUnit,_=K.tokenHooks,k=K.documentTypes||{},R=K.mediaTypes||{},B=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ve=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},je=K.fontProperties||{},Ee=K.counterDescriptors||{},Ge=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,Pe=K.lineComment,F=K.supportsAtComponent===!0,Z=G.highlightNonStandardPropertyKeywords!==!1,re,le;function ce(Q,ue){return re=ue,Q}function z(Q,ue){var ie=Q.next();if(_[ie]){var Re=_[ie](Q,ue);if(Re!==!1)return Re}if(ie=="@")return Q.eatWhile(/[\w\\\-]/),ce("def",Q.current());if(ie=="="||(ie=="~"||ie=="|")&&Q.eat("="))return ce(null,"compare");if(ie=='"'||ie=="'")return ue.tokenize=j(ie),ue.tokenize(Q,ue);if(ie=="#")return Q.eatWhile(/[\w\\\-]/),ce("atom","hash");if(ie=="!")return Q.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(ie)||ie=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(ie==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(Q.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(ie)?ce(null,"select-op"):ie=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ie)?ce(null,ie):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(ue.tokenize=ee),ce("variable callee","variable")):/[\w\\\-]/.test(ie)?(Q.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(Q){return function(ue,ie){for(var Re=!1,et;(et=ue.next())!=null;){if(et==Q&&!Re){Q==")"&&ue.backUp(1);break}Re=!Re&&et=="\\"}return(et==Q||!Re&&Q!=")")&&(ie.tokenize=null),ce("string","string")}}function ee(Q,ue){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(Q,ue,ie){this.type=Q,this.indent=ue,this.prev=ie}function he(Q,ue,ie,Re){return Q.context=new de(ie,ue.indentation()+(Re===!1?0:$),Q.context),ie}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,ue,ie){return be[ie.context.type](Q,ue,ie)}function Ae(Q,ue,ie,Re){for(var et=Re||1;et>0;et--)ie.context=ie.context.prev;return Ce(Q,ue,ie)}function xe(Q){var ue=Q.current().toLowerCase();Ue.hasOwnProperty(ue)?le="atom":Ge.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(Q,ue,ie){if(Q=="{")return he(ie,ue,"block");if(Q=="}"&&ie.context.prev)return me(ie);if(F&&/@component/i.test(Q))return he(ie,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return he(ie,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return he(ie,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return ie.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return he(ie,ue,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return he(ie,ue,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return he(ie,ue,"parens")}return ie.context.type},be.block=function(Q,ue,ie){if(Q=="word"){var Re=ue.current().toLowerCase();return ve.hasOwnProperty(Re)?(le="property","maybeprop"):_e.hasOwnProperty(Re)?(le=Z?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,ue,ie)},be.maybeprop=function(Q,ue,ie){return Q==":"?he(ie,ue,"prop"):Ce(Q,ue,ie)},be.prop=function(Q,ue,ie){if(Q==";")return me(ie);if(Q=="{"&&He)return he(ie,ue,"propBlock");if(Q=="}"||Q=="{")return Ae(Q,ue,ie);if(Q=="(")return he(ie,ue,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(Q=="word")xe(ue);else if(Q=="interpolation")return he(ie,ue,"interpolation");return"prop"},be.propBlock=function(Q,ue,ie){return Q=="}"?me(ie):Q=="word"?(le="property","maybeprop"):ie.context.type},be.parens=function(Q,ue,ie){return Q=="{"||Q=="}"?Ae(Q,ue,ie):Q==")"?me(ie):Q=="("?he(ie,ue,"parens"):Q=="interpolation"?he(ie,ue,"interpolation"):(Q=="word"&&xe(ue),"parens")},be.pseudo=function(Q,ue,ie){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",ie.context.type):Ce(Q,ue,ie)},be.documentTypes=function(Q,ue,ie){return Q=="word"&&k.hasOwnProperty(ue.current())?(le="tag",ie.context.type):be.atBlock(Q,ue,ie)},be.atBlock=function(Q,ue,ie){if(Q=="(")return he(ie,ue,"atBlock_parens");if(Q=="}"||Q==";")return Ae(Q,ue,ie);if(Q=="{")return me(ie)&&he(ie,ue,He?"block":"top");if(Q=="interpolation")return he(ie,ue,"interpolation");if(Q=="word"){var Re=ue.current().toLowerCase();Re=="only"||Re=="not"||Re=="and"||Re=="or"?le="keyword":R.hasOwnProperty(Re)?le="attribute":B.hasOwnProperty(Re)?le="property":ae.hasOwnProperty(Re)?le="keyword":ve.hasOwnProperty(Re)?le="property":_e.hasOwnProperty(Re)?le=Z?"string-2":"property":Ue.hasOwnProperty(Re)?le="atom":Ge.hasOwnProperty(Re)?le="keyword":le="error"}return ie.context.type},be.atComponentBlock=function(Q,ue,ie){return Q=="}"?Ae(Q,ue,ie):Q=="{"?me(ie)&&he(ie,ue,He?"block":"top",!1):(Q=="word"&&(le="error"),ie.context.type)},be.atBlock_parens=function(Q,ue,ie){return Q==")"?me(ie):Q=="{"||Q=="}"?Ae(Q,ue,ie,2):be.atBlock(Q,ue,ie)},be.restricted_atBlock_before=function(Q,ue,ie){return Q=="{"?he(ie,ue,"restricted_atBlock"):Q=="word"&&ie.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,ue,ie)},be.restricted_atBlock=function(Q,ue,ie){return Q=="}"?(ie.stateArg=null,me(ie)):Q=="word"?(ie.stateArg=="@font-face"&&!je.hasOwnProperty(ue.current().toLowerCase())||ie.stateArg=="@counter-style"&&!Ee.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,ue,ie){return Q=="word"?(le="variable","keyframes"):Q=="{"?he(ie,ue,"top"):Ce(Q,ue,ie)},be.at=function(Q,ue,ie){return Q==";"?me(ie):Q=="{"||Q=="}"?Ae(Q,ue,ie):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,ue,ie){return Q=="}"?me(ie):Q=="{"||Q==";"?Ae(Q,ue,ie):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:O?"block":"top",stateArg:null,context:new de(O?"block":"top",Q||0,null)}},token:function(Q,ue){if(!ue.tokenize&&Q.eatSpace())return null;var ie=(ue.tokenize||z)(Q,ue);return ie&&typeof ie=="object"&&(re=ie[1],ie=ie[0]),le=ie,re!="comment"&&(ue.state=be[ue.state](re,Q,ue)),le},indent:function(Q,ue){var ie=Q.context,Re=ue&&ue.charAt(0),et=ie.indent;return ie.type=="prop"&&(Re=="}"||Re==")")&&(ie=ie.prev),ie.prev&&(Re=="}"&&(ie.type=="block"||ie.type=="top"||ie.type=="interpolation"||ie.type=="restricted_atBlock")?(ie=ie.prev,et=ie.indent):(Re==")"&&(ie.type=="parens"||ie.type=="atBlock_parens")||Re=="{"&&(ie.type=="at"||ie.type=="atBlock"))&&(et=Math.max(0,ie.indent-$))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function o(G){for(var K={},O=0;O<G.length;++O)K[G[O].toLowerCase()]=!0;return K}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(g),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=o(b),P=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],A=o(P),N=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=o(N),M=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=o(M),C=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=o(C),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],Y=o(q),oe=s.concat(f).concat(h).concat(g).concat(b).concat(P).concat(C).concat(q);r.registerHelper("hintWords","css",oe);function J(G,K){for(var O=!1,$;($=G.next())!=null;){if(O&&$=="/"){K.tokenize=null;break}O=$=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:A,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:Y,tokenHooks:{"/":function(G,K){return G.eat("*")?(K.tokenize=J,J(G,K)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:A,colorKeywords:I,valueKeywords:Y,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,K){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(K.tokenize=J,J(G,K)):["operator","operator"]},":":function(G){return G.match(/^\s*\{/,!1)?[null,null]:!1},$:function(G){return G.match(/^[\w-]+/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(G){return G.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:A,colorKeywords:I,valueKeywords:Y,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,K){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(K.tokenize=J,J(G,K)):["operator","operator"]},"@":function(G){return G.eat("{")?[null,"interpolation"]:G.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(G.eatWhile(/[\w\\\-]/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:A,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:Y,supportsAtComponent:!0,tokenHooks:{"/":function(G,K){return G.eat("*")?(K.tokenize=J,J(G,K)):!1}},name:"css",helperType:"gss"})})})()),V0.exports}var K0;function Qce(){return K0||(K0=1,(function(e,t){(function(r){r(So(),Dp(),Ip(),Jce())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,w){var P=v.current(),A=P.search(b);return A>-1?v.backUp(P.length-A):P.match(/<\/?$/)&&(v.backUp(P.length),v.match(b,!1)||v.match(P)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var w in v)for(var P=b[w]||(b[w]=[]),A=v[w],N=A.length-1;N>=0;N--)P.unshift(A[N])}function g(v,b){for(var w=0;w<v.length;w++){var P=v[w];if(!P[0]||P[1].test(d(b,P[0])))return P[2]}}r.defineMode("htmlmixed",function(v,b){var w=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),P={},A=b&&b.tags,N=b&&b.scriptTypes;if(p(o,P),A&&p(A,P),N)for(var E=N.length-1;E>=0;E--)P.script.unshift(["type",N[E].matches,N[E].mode]);function M(D,C){var I=w.token(D,C.htmlState),q=/\btag\b/.test(I),Y;if(q&&!/[<>\s\/]/.test(D.current())&&(Y=C.htmlState.tagName&&C.htmlState.tagName.toLowerCase())&&P.hasOwnProperty(Y))C.inTag=Y+" ";else if(C.inTag&&q&&/>$/.test(D.current())){var oe=/^([\S]+) (.*)/.exec(C.inTag);C.inTag=null;var J=D.current()==">"&&g(P[oe[1]],oe[2]),G=r.getMode(v,J),K=h(oe[1],!0),O=h(oe[1],!1);C.token=function($,_){return $.match(K,!1)?(_.token=M,_.localState=_.localMode=null,null):s($,O,_.localMode.token($,_.localState))},C.localMode=G,C.localState=r.startState(G,w.indent(C.htmlState,"",""))}else C.inTag&&(C.inTag+=D.current(),D.eol()&&(C.inTag+=" "));return I}return{startState:function(){var D=r.startState(w);return{token:M,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var C;return D.localState&&(C=r.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:C,htmlState:r.copyState(w,D.htmlState)}},token:function(D,C){return C.token(D,C)},indent:function(D,C,I){return!D.localMode||/^\s*<\//.test(C)?w.indent(D.htmlState,C,I):D.localMode.indent?D.localMode.indent(D.localState,C,I):r.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),U0.exports}Qce();var X0={exports:{}},Y0;function eue(){return Y0||(Y0=1,(function(e,t){(function(r){r(So(),Dp(),Ip())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var P=w.tagName;w.tagName=null;var A=d.indent(w,"","");return w.tagName=P,A}function g(w,P){return P.context.mode==d?v(w,P,P.context):b(w,P,P.context)}function v(w,P,A){if(A.depth==2)return w.match(/^.*?\*\//)?A.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(A.state);var N=p(A.state),E=A.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?N-=c.indentUnit:A.prev.state.lexical&&(N=A.prev.state.lexical.indented)}else A.depth==1&&(N+=c.indentUnit);return P.context=new o(r.startState(h,N),h,0,P.context),null}if(A.depth==1){if(w.peek()=="<")return d.skipAttribute(A.state),P.context=new o(r.startState(d,p(A.state)),d,0,P.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return A.depth=2,g(w,P)}var M=d.token(w,A.state),D=w.current(),C;return/\btag\b/.test(M)?/>$/.test(D)?A.state.context?A.depth=0:P.context=P.context.prev:/^</.test(D)&&(A.depth=1):!M&&(C=D.indexOf("{"))>-1&&w.backUp(D.length-C),M}function b(w,P,A){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,A.state))return P.context=new o(r.startState(d,h.indent(A.state,"","")),d,0,P.context),h.skipExpression(A.state),null;var N=h.token(w,A.state);if(!N&&A.depth!=null){var E=w.current();E=="{"?A.depth++:E=="}"&&--A.depth==0&&(P.context=P.context.prev)}return N}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,P,A){return w.context.mode.indent(w.context.state,P,A)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),X0.exports}eue();var Z0={exports:{}},J0;function tue(){return J0||(J0=1,(function(e,t){(function(r){r(So())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!g&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Z0.exports}tue();var Q0={exports:{}},ey;function nue(){return ey||(ey=1,(function(e,t){(function(r){r(So())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],P=p.pos;function A(){r.off(document,"mousemove",N),r.off(document,"mouseup",A)}function N(E){if(E.which!=1)return A();p.moveTo(P+(E[b]-w)*(p.total/p.size))}r.on(document,"mousemove",N),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<b.left?-1:v.clientX>b.right?1:0:w=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),Q0.exports}nue();const Rn=qt();function rue(e,t,r={}){const o=xM.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),yt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Ka(()=>{Rn.value=void 0}),nf(o)}async function Fx(e){Da({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function iue(e,t){Da({file:e,column:t.column-1,line:t.line,view:"editor",test:Ci.value})}function oue(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return Pp(s,r,o);Da({file:e.file.id,column:o-1,line:r,view:"editor",test:Ci.value})}const yr=Ke(),Ks=Ke(!0),ko=Ke(!1),Du=Ke(!0),Hx=ke(()=>pt.value?.coverage),Mh=ke(()=>Hx.value?.enabled),ra=ke(()=>Mh.value&&!!Hx.value?.htmlDir),Xs=Za("vitest-ui_splitpanes-mainSizes",[33,67]),Jo=Za("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?nr.value[0]/window.outerWidth*100:33,67]),Li=Za("vitest-ui_details-panel-visible",!0),kn=Ke("right");Ct(()=>{yt(pt,()=>{pt.value?.browser?.detailsPanelPosition&&(kn.value=pt.value.browser.detailsPanelPosition)})});function sue(){setTimeout(()=>{Li.value=!1},0)}function lue(){Li.value=!0}const an=sr({navigation:Xs.value[0],details:{size:Xs.value[1],browser:Jo.value[0],main:Jo.value[1]}});yt(wf,e=>{Du.value=e==="running"},{immediate:!0});function aue(){const e=xo.value;if(e&&e.length>0){const t=br(e);t?(yr.value=t,Ks.value=!1,ko.value=!1):ZE(()=>ft.state.getFiles(),()=>{yr.value=br(e),Ks.value=!1,ko.value=!1})}return Ks}function zu(e){Ks.value=e,ko.value=!1,e&&(yr.value=void 0,xo.value="")}function Da({file:e,line:t,view:r,test:o,column:s}){xo.value=e,Dx.value=t,zx.value=s,gn.value=r,Ci.value=o,yr.value=br(e),zu(!1)}function cue(e){e.type==="test"?gn.value==="editor"?Fx(e):Da({file:e.file.id,line:null,column:null,view:gn.value,test:e.id}):Da({file:e.file.id,test:null,line:null,view:gn.value,column:null})}function uue(){ko.value=!0,Ks.value=!1,yr.value=void 0,xo.value=""}function fue(){if(cr?.provider==="webdriverio"){const e=window.outerWidth*(an.details.size/100);return(nr.value[0]+20)/e*100}return 33}function due(){an.navigation=33,an.details.size=67,Xs.value=[33,67]}function Bx(){an.details.main!==0&&(an.details.browser=fue(),an.details.main=100-an.details.browser,Jo.value=[an.details.browser,an.details.main])}function hue(){kn.value=kn.value==="right"?"bottom":"right";const e=kn.value==="bottom"?33:50;Jo.value=[e,100-e],an.details.browser=e,an.details.main=100-e}const pue={setCurrentFileId(e){xo.value=e,yr.value=br(e),zu(!1)},async setIframeViewport(e,t){nr.value=[e,t],cr?.provider==="webdriverio"&&Bx(),await new Promise(r=>requestAnimationFrame(r))}},gue=location.port,mue=[location.hostname,gue].filter(Boolean).join(":"),vue=`${location.protocol==="https:"?"wss:":"ws:"}//${mue}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,ar=!!window.METADATA_PATH;var ir=Uint8Array,Fs=Uint16Array,yue=Int32Array,jx=new ir([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wx=new ir([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),bue=new ir([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qx=function(e,t){for(var r=new Fs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new yue(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Ux=qx(jx,2),Vx=Ux.b,wue=Ux.r;Vx[28]=258,wue[258]=28;var xue=qx(Wx,0),kue=xue.b,Nh=new Fs(32768);for(var Lt=0;Lt<32768;++Lt){var Qi=(Lt&43690)>>1|(Lt&21845)<<1;Qi=(Qi&52428)>>2|(Qi&13107)<<2,Qi=(Qi&61680)>>4|(Qi&3855)<<4,Nh[Lt]=((Qi&65280)>>8|(Qi&255)<<8)>>1}var ya=(function(e,t,r){for(var o=e.length,s=0,c=new Fs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Fs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Fs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=f[e[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)d[Nh[v]>>h]=p}else for(d=new Fs(o),s=0;s<o;++s)e[s]&&(d[s]=Nh[f[e[s]-1]++]>>15-e[s]);return d}),tc=new ir(288);for(var Lt=0;Lt<144;++Lt)tc[Lt]=8;for(var Lt=144;Lt<256;++Lt)tc[Lt]=9;for(var Lt=256;Lt<280;++Lt)tc[Lt]=7;for(var Lt=280;Lt<288;++Lt)tc[Lt]=8;var Gx=new ir(32);for(var Lt=0;Lt<32;++Lt)Gx[Lt]=5;var _ue=ya(tc,9,1),Sue=ya(Gx,5,1),Bd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Mr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},jd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Tue=function(e){return(e+7)/8|0},Kx=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new ir(e.subarray(t,r))},Cue=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Gn=function(e,t,r){var o=new Error(t||Cue[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Gn),!r)throw o;return o},zp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new ir(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new ir(s*3));var p=function(ce){var z=r.length;if(ce>z){var j=new ir(Math.max(z*2,ce));j.set(r),r=j}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,P=t.d,A=t.m,N=t.n,E=s*8;do{if(!w){g=Mr(e,v,1);var M=Mr(e,v+1,3);if(v+=3,M)if(M==1)w=_ue,P=Sue,A=9,N=5;else if(M==2){var q=Mr(e,v,31)+257,Y=Mr(e,v+10,15)+4,oe=q+Mr(e,v+5,31)+1;v+=14;for(var J=new ir(oe),G=new ir(19),K=0;K<Y;++K)G[bue[K]]=Mr(e,v+K*3,7);v+=Y*3;for(var O=Bd(G),$=(1<<O)-1,_=ya(G,O,1),K=0;K<oe;){var k=_[Mr(e,v,$)];v+=k&15;var D=k>>4;if(D<16)J[K++]=D;else{var R=0,B=0;for(D==16?(B=3+Mr(e,v,3),v+=2,R=J[K-1]):D==17?(B=3+Mr(e,v,7),v+=3):D==18&&(B=11+Mr(e,v,127),v+=7);B--;)J[K++]=R}}var ae=J.subarray(0,q),ve=J.subarray(q);A=Bd(ae),N=Bd(ve),w=ya(ae,A,1),P=ya(ve,N,1)}else Gn(1);else{var D=Tue(v)+4,C=e[D-4]|e[D-3]<<8,I=D+C;if(I>s){h&&Gn(0);break}d&&p(b+C),r.set(e.subarray(D,I),b),t.b=b+=C,t.p=v=I*8,t.f=g;continue}if(v>E){h&&Gn(0);break}}d&&p(b+131072);for(var _e=(1<<A)-1,je=(1<<N)-1,Ee=v;;Ee=v){var R=w[jd(e,v)&_e],Ge=R>>4;if(v+=R&15,v>E){h&&Gn(0);break}if(R||Gn(2),Ge<256)r[b++]=Ge;else if(Ge==256){Ee=v,w=null;break}else{var Ue=Ge-254;if(Ge>264){var K=Ge-257,He=jx[K];Ue=Mr(e,v,(1<<He)-1)+Vx[K],v+=He}var Pe=P[jd(e,v)&je],F=Pe>>4;Pe||Gn(3),v+=Pe&15;var ve=kue[F];if(F>3){var He=Wx[F];ve+=jd(e,v)&(1<<He)-1,v+=He}if(v>E){h&&Gn(0);break}d&&p(b+131072);var Z=b+Ue;if(b<ve){var re=c-ve,le=Math.min(ve,Z);for(re+b<0&&Gn(3);b<le;++b)r[b]=o[re+b]}for(;b<Z;++b)r[b]=r[b-ve]}}t.l=w,t.p=Ee,t.b=b,t.f=g,w&&(g=1,t.m=A,t.d=P,t.n=N)}while(!g);return b!=r.length&&f?Kx(r,0,b):r.subarray(0,b)},Eue=new ir(0),Aue=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Gn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Lue=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Mue=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Gn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Gn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Nue(e,t){return zp(e,{i:2},t,t)}function $ue(e,t){var r=Aue(e);return r+8>e.length&&Gn(6,"invalid gzip data"),zp(e.subarray(r,-8),{i:2},new ir(Lue(e)),t)}function Oue(e,t){return zp(e.subarray(Mue(e),-4),{i:2},t,t)}function Pue(e,t){return e[0]==31&&e[1]==139&&e[2]==8?$ue(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Nue(e,t):Oue(e,t)}var $h=typeof TextDecoder<"u"&&new TextDecoder,Rue=0;try{$h.decode(Eue,{stream:!0}),Rue=1}catch{}var Iue=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Kx(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function ty(e,t){var r;if($h)return $h.decode(e);var o=Iue(e),s=o.s,r=o.r;return r.length&&Gn(8),s}const ny=()=>{},pn=()=>Promise.resolve();function Due(){const e=sr({state:new xx,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=sr(e.state.filesMap),e.state.idMap=sr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:pn,getTransformResult:pn,onDone:ny,writeFile:pn,rerun:pn,rerunTask:pn,updateSnapshot:pn,resolveSnapshotPath:pn,snapshotSaved:pn,onAfterSuiteRun:pn,onCancel:pn,getCountOfFailedTests:()=>0,sendLog:pn,resolveSnapshotRawPath:pn,readSnapshotFile:pn,saveSnapshotFile:pn,readTestFile:async d=>t.sources[d],removeSnapshotFile:pn,onUnhandledError:ny,saveTestFile:pn,getProvidedContext:()=>({}),getTestFiles:pn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=ty(Pue(h));t=_h(g)}else t=_h(ty(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return ar?Due():RL(vue,{reactive:(t,r)=>r==="state"?sr(t):qt(t),handlers:{onTestAnnotate(t,r){Le.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Le.recordTestArtifact(t,r)},onTaskUpdate(t,r){Le.resumeRun(t,r),wf.value="running"},onSpecsCollected(t,r){Le.startTime=r||performance.now()},onFinished(t,r,o,s){Le.endRun(s),lo.value=(r||[]).map(Rx)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),pt=qt({}),Hs=Ke("CONNECTING"),Fp=qt([]),Kt=ke(()=>{const e=xo.value;return e?br(e):void 0}),Xx=ke(()=>Ap(Kt.value).map(e=>e?.logs||[]).flat()||[]);function br(e){const t=ft.state.idMap.get(e);return t||void 0}const zue=ke(()=>Hs.value==="OPEN"),Wd=ke(()=>Hs.value==="CONNECTING");function Fue(){return Hp(ft.state.getFiles())}function Yx(e){delete e.result;const t=Le.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ja(e)))for(const r of e.tasks)Yx(r)}function Hue(e){const t=Le.nodes;e.forEach(r=>{delete r.result,Ap(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.mode="run",c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.mode="run",o.duration=void 0,Fn(o)&&(o.collectDuration=void 0))})}function Hp(e){return Hue(e),Le.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Bue(e){return Yx(e),Le.startRun(),ft.rpc.rerunTask(e.id)}const cr=window.__vitest_browser_runner__;window.__vitest_ui_api__=pue;yt(()=>ft.ws,e=>{Hs.value=ar?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Hs.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=dx(h,d,f);return p.mode="skip",p})),Fp.value=s.map(c=>c.name),Le.loadFiles(t,s),ft.state.collectFiles(t),Le.startRun(),lo.value=(o||[]).map(Rx),pt.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Hs.value==="CONNECTING"&&(Hs.value="CLOSED")},1e3)})},{immediate:!0});const jue=["aria-label","opacity","disabled","hover"],St=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(te(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Ft(t.$slots,"default",{},()=>[X("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,jue))}}),Wue={h:"full",flex:"~ col"},que={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Uue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Vue={class:"pointer-events-none","text-sm":""},Gue={key:0},Kue={id:"tester-container",relative:""},Xue=["data-scale"],ry=20,Yue=100,Zue=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return nr.value[0]===g[0]&&nr.value[1]===g[1]}const{width:o,height:s}=ox();async function c(p){nr.value=t[p],cr?.provider==="webdriverio"&&Bx()}const f=ke(()=>{if(cr?.provider==="webdriverio"){const[w,P]=nr.value;return{width:w,height:P}}const v=o.value*(an.details.size/100)*(an.details.browser/100)-ry,b=s.value-Yue;return{width:v,height:b}}),d=ke(()=>{if(cr?.provider==="webdriverio")return 1;const[p,g]=nr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,P=b>g?1:b/g;return Math.min(1,w,P)}),h=ke(()=>{const p=f.value.width,g=nr.value[0];return`${Math.trunc((p+ry-g)/2)}px`});return(p,g)=>{const v=Qn("tooltip");return te(),ge("div",Wue,[X("div",que,[st(Me(St,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>W(due)())},null,512),[[fo,W(an).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Me(St,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=b=>Li.value=!0)},null,512),[[fo,W(kn)==="right"&&!W(Li)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),X("div",Uue,[st(Me(St,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[2]||(g[2]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Me(St,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[3]||(g[3]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Me(St,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[4]||(g[4]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",Vue,[Qe(Ne(W(nr)[0])+"x"+Ne(W(nr)[1])+"px ",1),d.value<1?(te(),ge("span",Gue,"("+Ne((d.value*100).toFixed(0))+"%)",1)):ze("",!0)])]),X("div",Kue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:Ot({"--viewport-width":`${W(nr)[0]}px`,"--viewport-height":`${W(nr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,Xue)])])}}}),Jue=zi(Zue,[["__scopeId","data-v-f70ca3ae"]]),xf=tt({__name:"DetailsHeaderButtons",setup(e){function t(r){return kn.value==="right"?r==="hide"?"rotate-180":"":r==="hide"?"-rotate-90":"rotate-90"}return(r,o)=>{const s=Qn("tooltip");return te(),ge(nt,null,[st(Me(St,{title:`Switch panel position (${W(kn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:ot({"rotate-90":W(kn)==="right"}),onClick:W(hue)},null,8,["title","class","onClick"]),[[s,`Switch panel position (${W(kn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Li)?st((te(),We(St,{key:0,title:W(kn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("hide")),onClick:W(sue)},null,8,["title","class","onClick"])),[[s,W(kn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):ze("",!0),st(Me(St,{title:W(kn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("show")),onClick:W(lue)},null,8,["title","class","onClick"]),[[fo,!W(Li)],[s,W(kn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Que={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},efe=tt({__name:"ClosedDetailsHeader",setup(e){return(t,r)=>(te(),ge("div",Que,[r[0]||(r[0]=X("div",{"flex-1":""},null,-1)),Me(xf)]))}}),tfe={"text-2xl":""},nfe={"text-lg":"",op50:""},rfe=tt({__name:"ConnectionOverlay",setup(e){return(t,r)=>W(zue)?ze("",!0):(te(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>W(ft).reconnect&&W(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(W(Wd)?"animate-pulse":"")},[X("div",{text:"5xl",class:ot(W(Wd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",tfe,Ne(W(Wd)?"Connecting...":"Disconnected"),1),X("div",nfe," Check your terminal or start a new server with `"+Ne(W(cr)?`vitest --browser=${W(cr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ife={h:"full",flex:"~ col"},ofe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},iy=tt({__name:"Coverage",setup(e){return(t,r)=>(te(),ge("div",ife,[X("div",ofe,[r[0]||(r[0]=X("div",{class:"i-carbon:folder-details-reference"},null,-1)),r[1]||(r[1]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(cr)?(te(),We(xf,{key:0})):ze("",!0)]),r[2]||(r[2]=X("div",{"flex-auto":"","py-1":"","bg-white":""},[X("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),sfe={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},lfe={"font-bold":""},afe={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},cfe=["font-bold"],ufe={text:"red500/70"},ffe={key:1,text:"sm","mb-2":""},dfe={"font-bold":""},hfe={key:2,text:"sm","mb-2":""},pfe={"font-bold":""},gfe=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(te(),ge(nt,null,[X("h4",sfe,[X("span",lfe,[Qe(Ne(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ge(nt,{key:0},[Qe(":")],64)):ze("",!0)]),Qe(" "+Ne(e.error.message),1)]),e.error.stacks?.length?(te(),ge("p",afe,[(te(!0),ge(nt,null,yn(e.error.stacks,(o,s)=>(te(),ge("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Qe("❯ "+Ne(o.method)+" "+Ne(o.file)+":",1),X("span",ufe,Ne(o.line)+":"+Ne(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,cfe))),128))])):ze("",!0),e.error.VITEST_TEST_PATH?(te(),ge("p",ffe,[r[1]||(r[1]=Qe(" This error originated in ",-1)),X("span",dfe,Ne(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):ze("",!0),e.error.VITEST_TEST_NAME?(te(),ge("div",hfe,[r[3]||(r[3]=Qe(" The latest test that might've caused the error is ",-1)),X("span",pfe,Ne(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Qe(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):ze("",!0)],64))}}),mfe={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},vfe={class:"number","data-testid":"num-files"},yfe={class:"number"},bfe={class:"number","text-purple-700":"","dark:text-purple-400":""},wfe={class:"number","text-red-700":"","dark:text-red-500":""},xfe={class:"number","text-red-700":"","dark:text-red-500":""},kfe={class:"number","text-red-700":"","dark:text-red-500":""},_fe={class:"number","data-testid":"run-time"},Sfe={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Tfe={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Cfe={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Efe=tt({__name:"TestFilesEntry",setup(e){return(t,r)=>(te(),ge(nt,null,[X("div",mfe,[r[10]||(r[10]=X("div",{"i-carbon-document":""},null,-1)),r[11]||(r[11]=X("div",null,"Files",-1)),X("div",vfe,Ne(W(Le).summary.files),1),W(Le).summary.filesSuccess?(te(),ge(nt,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",yfe,Ne(W(Le).summary.filesSuccess),1)],64)):ze("",!0),W(Le).summary.filesSkipped?(te(),ge(nt,{key:1},[r[2]||(r[2]=X("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),r[3]||(r[3]=X("div",null," Skip ",-1)),X("div",bfe,Ne(W(Le).summary.filesSkipped),1)],64)):ze("",!0),W(Le).summary.filesFailed?(te(),ge(nt,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-close":""},null,-1)),r[5]||(r[5]=X("div",null," Fail ",-1)),X("div",wfe,Ne(W(Le).summary.filesFailed),1)],64)):ze("",!0),W(Le).summary.filesSnapshotFailed?(te(),ge(nt,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-compare":""},null,-1)),r[7]||(r[7]=X("div",null," Snapshot Fail ",-1)),X("div",xfe,Ne(W(Le).summary.filesSnapshotFailed),1)],64)):ze("",!0),W(lo).length?(te(),ge(nt,{key:4},[r[8]||(r[8]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[9]||(r[9]=X("div",null," Errors ",-1)),X("div",kfe,Ne(W(lo).length),1)],64)):ze("",!0),r[12]||(r[12]=X("div",{"i-carbon-timer":""},null,-1)),r[13]||(r[13]=X("div",null,"Time",-1)),X("div",_fe,Ne(W(Le).summary.time),1)]),W(lo).length?(te(),ge("div",Sfe,[r[17]||(r[17]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",Tfe,[Qe(" Vitest caught "+Ne(W(lo).length)+" error"+Ne(W(lo).length>1?"s":"")+" during the test run.",1),r[14]||(r[14]=X("br",null,null,-1)),r[15]||(r[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Cfe,[r[16]||(r[16]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ge(nt,null,yn(W(lo),(o,s)=>(te(),We(gfe,{key:s,error:o},null,8,["error"]))),128))])])):ze("",!0)],64))}}),Afe=zi(Efe,[["__scopeId","data-v-cfae3633"]]),Lfe={"p-2":"","text-center":"",flex:""},Mfe={"text-4xl":"","min-w-2em":""},Nfe={"text-md":""},jo=tt({__name:"DashboardEntry",setup(e){return(t,r)=>(te(),ge("div",Lfe,[X("div",null,[X("div",Mfe,[Ft(t.$slots,"body")]),X("div",Nfe,[Ft(t.$slots,"header")])])]))}}),$fe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Ofe=tt({__name:"TestsEntry",setup(e){function t(r){Je.success=!1,Je.failed=!1,Je.skipped=!1,Je.slow=!1,r!=="total"&&(Je[r]=!0)}return(r,o)=>(te(),ge("div",$fe,[Me(jo,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:Be(()=>[...o[5]||(o[5]=[Qe(" Pass ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.testsSuccess),1)]),_:1}),Me(jo,{class:ot({"text-red-700 dark:text-red-500":W(Le).summary.testsFailed,op50:!W(Le).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:Be(()=>[...o[6]||(o[6]=[Qe(" Fail ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.testsFailed),1)]),_:1},8,["class"]),W(Le).summary.testsExpectedFail?(te(),We(jo,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:Be(()=>[...o[7]||(o[7]=[Qe(" Expected Fail ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.testsExpectedFail),1)]),_:1})):ze("",!0),W(Le).summary.testsSkipped?(te(),We(jo,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:Be(()=>[...o[8]||(o[8]=[Qe(" Skip ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.testsSkipped),1)]),_:1})):ze("",!0),W(Le).summary.testsTodo?(te(),We(jo,{key:2,op50:"","data-testid":"todo-entry"},{header:Be(()=>[...o[9]||(o[9]=[Qe(" Todo ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.testsTodo),1)]),_:1})):ze("",!0),Me(jo,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:Be(()=>[...o[10]||(o[10]=[Qe(" Total ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.totalTests),1)]),_:1}),W(Le).summary.testsSlow?(te(),We(jo,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:o[4]||(o[4]=s=>t("slow"))},{header:Be(()=>[...o[11]||(o[11]=[Qe(" Slow ",-1)])]),body:Be(()=>[Qe(Ne(W(Le).summary.testsSlow),1)]),_:1})):ze("",!0)]))}}),Pfe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Rfe={key:0,class:"text-gray-5"},Ife={"aria-labelledby":"tests",m:"y-4 x-2"},Dfe=tt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(te(),ge("div",Pfe,[W(Le).summary.files===0&&W(zs)?(te(),ge("div",Rfe," No tests found ")):ze("",!0),X("section",Ife,[Me(Ofe)]),Me(Afe)]))}}),zfe={h:"full",flex:"~ col"},Ffe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Hfe={class:"scrolls","flex-auto":"","py-1":""},oy=tt({__name:"Dashboard",setup(e){return(t,r)=>(te(),ge("div",zfe,[X("div",Ffe,[r[0]||(r[0]=X("div",{class:"i-carbon-dashboard"},null,-1)),r[1]||(r[1]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(cr)?(te(),We(xf,{key:0})):ze("",!0)]),X("div",Hfe,[Me(Dfe)])]))}});var qd,sy;function Bfe(){if(sy)return qd;sy=1;var e=function(M){return t(M)&&!r(M)};function t(E){return!!E&&typeof E=="object"}function r(E){var M=Object.prototype.toString.call(E);return M==="[object RegExp]"||M==="[object Date]"||c(E)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function c(E){return E.$$typeof===s}function f(E){return Array.isArray(E)?[]:{}}function d(E,M){return M.clone!==!1&&M.isMergeableObject(E)?A(f(E),E,M):E}function h(E,M,D){return E.concat(M).map(function(C){return d(C,D)})}function p(E,M){if(!M.customMerge)return A;var D=M.customMerge(E);return typeof D=="function"?D:A}function g(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(M){return Object.propertyIsEnumerable.call(E,M)}):[]}function v(E){return Object.keys(E).concat(g(E))}function b(E,M){try{return M in E}catch{return!1}}function w(E,M){return b(E,M)&&!(Object.hasOwnProperty.call(E,M)&&Object.propertyIsEnumerable.call(E,M))}function P(E,M,D){var C={};return D.isMergeableObject(E)&&v(E).forEach(function(I){C[I]=d(E[I],D)}),v(M).forEach(function(I){w(E,I)||(b(E,I)&&D.isMergeableObject(M[I])?C[I]=p(I,D)(E[I],M[I],D):C[I]=d(M[I],D))}),C}function A(E,M,D){D=D||{},D.arrayMerge=D.arrayMerge||h,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=d;var C=Array.isArray(M),I=Array.isArray(E),q=C===I;return q?C?D.arrayMerge(E,M,D):P(E,M,D):d(M,D)}A.all=function(M,D){if(!Array.isArray(M))throw new Error("first argument should be an array");return M.reduce(function(C,I){return A(C,I,D)},{})};var N=A;return qd=N,qd}var jfe=Bfe();const Wfe=Op(jfe);function qfe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Oh="http://www.w3.org/1999/xhtml";const ly={svg:"http://www.w3.org/2000/svg",xhtml:Oh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ly.hasOwnProperty(t)?{space:ly[t],local:e}:e}function Ufe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Oh&&t.documentElement.namespaceURI===Oh?t.createElement(e):t.createElementNS(r,e)}}function Vfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Zx(e){var t=kf(e);return(t.local?Vfe:Ufe)(t)}function Gfe(){}function Bp(e){return e==null?Gfe:function(){return this.querySelector(e)}}function Kfe(e){typeof e!="function"&&(e=Bp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,g=0;g<f;++g)(h=c[g])&&(p=e.call(h,h.__data__,g,c))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new fr(o,this._parents)}function Xfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Yfe(){return[]}function Jx(e){return e==null?Yfe:function(){return this.querySelectorAll(e)}}function Zfe(e){return function(){return Xfe(e.apply(this,arguments))}}function Jfe(e){typeof e=="function"?e=Zfe(e):e=Jx(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new fr(o,s)}function Qx(e){return function(){return this.matches(e)}}function e1(e){return function(t){return t.matches(e)}}var Qfe=Array.prototype.find;function ede(e){return function(){return Qfe.call(this.children,e)}}function tde(){return this.firstElementChild}function nde(e){return this.select(e==null?tde:ede(typeof e=="function"?e:e1(e)))}var rde=Array.prototype.filter;function ide(){return Array.from(this.children)}function ode(e){return function(){return rde.call(this.children,e)}}function sde(e){return this.selectAll(e==null?ide:ode(typeof e=="function"?e:e1(e)))}function lde(e){typeof e!="function"&&(e=Qx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new fr(o,this._parents)}function t1(e){return new Array(e.length)}function ade(){return new fr(this._enter||this._groups.map(t1),this._parents)}function Fu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Fu.prototype={constructor:Fu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function cde(e){return function(){return e}}function ude(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new Fu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function fde(e,t,r,o,s,c,f){var d,h,p=new Map,g=t.length,v=c.length,b=new Array(g),w;for(d=0;d<g;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<v;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new Fu(e,c[d]);for(d=0;d<g;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function dde(e){return e.__data__}function hde(e,t){if(!arguments.length)return Array.from(this,dde);var r=t?fde:ude,o=this._parents,s=this._groups;typeof e!="function"&&(e=cde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var g=o[p],v=s[p],b=v.length,w=pde(e.call(g,g&&g.__data__,p,o)),P=w.length,A=d[p]=new Array(P),N=f[p]=new Array(P),E=h[p]=new Array(b);r(g,v,A,N,E,w,t);for(var M=0,D=0,C,I;M<P;++M)if(C=A[M]){for(M>=D&&(D=M+1);!(I=N[D])&&++D<P;);C._next=I||null}}return f=new fr(f,o),f._enter=d,f._exit=h,f}function pde(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gde(){return new fr(this._exit||this._groups.map(t1),this._parents)}function mde(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function vde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],g=o[h],v=p.length,b=d[h]=new Array(v),w,P=0;P<v;++P)(w=p[P]||g[P])&&(b[P]=w);for(;h<s;++h)d[h]=r[h];return new fr(d,this._parents)}function yde(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function bde(e){e||(e=wde);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,g=0;g<d;++g)(p=f[g])&&(h[g]=p);h.sort(t)}return new fr(s,this._parents).order()}function wde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kde(){return Array.from(this)}function _de(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Sde(){let e=0;for(const t of this)++e;return e}function Tde(){return!this.node()}function Cde(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Ede(e){return function(){this.removeAttribute(e)}}function Ade(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Lde(e,t){return function(){this.setAttribute(e,t)}}function Mde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Nde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function $de(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Ode(e,t){var r=kf(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?Ade:Ede:typeof t=="function"?r.local?$de:Nde:r.local?Mde:Lde)(r,t))}function n1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Pde(e){return function(){this.style.removeProperty(e)}}function Rde(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Ide(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Dde(e,t,r){return arguments.length>1?this.each((t==null?Pde:typeof t=="function"?Ide:Rde)(e,t,r??"")):ll(this.node(),e)}function ll(e,t){return e.style.getPropertyValue(t)||n1(e).getComputedStyle(e,null).getPropertyValue(t)}function zde(e){return function(){delete this[e]}}function Fde(e,t){return function(){this[e]=t}}function Hde(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Bde(e,t){return arguments.length>1?this.each((t==null?zde:typeof t=="function"?Hde:Fde)(e,t)):this.node()[e]}function r1(e){return e.trim().split(/^|\s+/)}function jp(e){return e.classList||new i1(e)}function i1(e){this._node=e,this._names=r1(e.getAttribute("class")||"")}i1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function o1(e,t){for(var r=jp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function s1(e,t){for(var r=jp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function jde(e){return function(){o1(this,e)}}function Wde(e){return function(){s1(this,e)}}function qde(e,t){return function(){(t.apply(this,arguments)?o1:s1)(this,e)}}function Ude(e,t){var r=r1(e+"");if(arguments.length<2){for(var o=jp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?qde:t?jde:Wde)(r,t))}function Vde(){this.textContent=""}function Gde(e){return function(){this.textContent=e}}function Kde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Xde(e){return arguments.length?this.each(e==null?Vde:(typeof e=="function"?Kde:Gde)(e)):this.node().textContent}function Yde(){this.innerHTML=""}function Zde(e){return function(){this.innerHTML=e}}function Jde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Qde(e){return arguments.length?this.each(e==null?Yde:(typeof e=="function"?Jde:Zde)(e)):this.node().innerHTML}function ehe(){this.nextSibling&&this.parentNode.appendChild(this)}function the(){return this.each(ehe)}function nhe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rhe(){return this.each(nhe)}function ihe(e){var t=typeof e=="function"?e:Zx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ohe(){return null}function she(e,t){var r=typeof e=="function"?e:Zx(e),o=t==null?ohe:typeof t=="function"?t:Bp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function lhe(){var e=this.parentNode;e&&e.removeChild(this)}function ahe(){return this.each(lhe)}function che(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function uhe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function fhe(e){return this.select(e?uhe:che)}function dhe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function hhe(e){return function(t){e.call(this,t,this.__data__)}}function phe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function ghe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function mhe(e,t,r){return function(){var o=this.__on,s,c=hhe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function vhe(e,t,r){var o=phe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(d=t?mhe:ghe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function l1(e,t,r){var o=n1(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function yhe(e,t){return function(){return l1(this,e,t)}}function bhe(e,t){return function(){return l1(this,e,t.apply(this,arguments))}}function whe(e,t){return this.each((typeof t=="function"?bhe:yhe)(e,t))}function*xhe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var a1=[null];function fr(e,t){this._groups=e,this._parents=t}function nc(){return new fr([[document.documentElement]],a1)}function khe(){return this}fr.prototype=nc.prototype={constructor:fr,select:Kfe,selectAll:Jfe,selectChild:nde,selectChildren:sde,filter:lde,data:hde,enter:ade,exit:gde,join:mde,merge:vde,selection:khe,order:yde,sort:bde,call:xde,nodes:kde,node:_de,size:Sde,empty:Tde,each:Cde,attr:Ode,style:Dde,property:Bde,classed:Ude,text:Xde,html:Qde,raise:the,lower:rhe,append:ihe,insert:she,remove:ahe,clone:fhe,datum:dhe,on:vhe,dispatch:whe,[Symbol.iterator]:xhe};function Xn(e){return typeof e=="string"?new fr([[document.querySelector(e)]],[document.documentElement]):new fr([[e]],a1)}function _he(e){let t;for(;t=e.sourceEvent;)e=t;return e}function xi(e,t){if(e=_he(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var al=class bi{x;y;static of([t,r]){return new bi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new bi(this.x+t.x,this.y+t.y)}subtract(t){return new bi(this.x-t.x,this.y-t.y)}multiply(t){return new bi(this.x*t,this.y*t)}divide(t){return new bi(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new bi(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new bi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new bi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},She={value:()=>{}};function rc(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new au(r)}function au(e){this._=e}function The(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}au.prototype=rc.prototype={constructor:au,on:function(e,t){var r=this._,o=The(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Che(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=ay(r[s],e.name,t);else if(t==null)for(s in r)r[s]=ay(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new au(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Che(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function ay(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=She,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ehe={passive:!1},za={capture:!0,passive:!1};function Ud(e){e.stopImmediatePropagation()}function Ys(e){e.preventDefault(),e.stopImmediatePropagation()}function c1(e){var t=e.document.documentElement,r=Xn(e).on("dragstart.drag",Ys,za);"onselectstart"in t?r.on("selectstart.drag",Ys,za):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function u1(e,t){var r=e.document.documentElement,o=Xn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ys,za),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Gc=e=>()=>e;function Ph(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}Ph.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Ahe(e){return!e.ctrlKey&&!e.button}function Lhe(){return this.parentNode}function Mhe(e,t){return t??{x:e.x,y:e.y}}function Nhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function $he(){var e=Ahe,t=Lhe,r=Mhe,o=Nhe,s={},c=rc("start","drag","end"),f=0,d,h,p,g,v=0;function b(C){C.on("mousedown.drag",w).filter(o).on("touchstart.drag",N).on("touchmove.drag",E,Ehe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(C,I){if(!(g||!e.call(this,C,I))){var q=D(this,t.call(this,C,I),C,I,"mouse");q&&(Xn(C.view).on("mousemove.drag",P,za).on("mouseup.drag",A,za),c1(C.view),Ud(C),p=!1,d=C.clientX,h=C.clientY,q("start",C))}}function P(C){if(Ys(C),!p){var I=C.clientX-d,q=C.clientY-h;p=I*I+q*q>v}s.mouse("drag",C)}function A(C){Xn(C.view).on("mousemove.drag mouseup.drag",null),u1(C.view,p),Ys(C),s.mouse("end",C)}function N(C,I){if(e.call(this,C,I)){var q=C.changedTouches,Y=t.call(this,C,I),oe=q.length,J,G;for(J=0;J<oe;++J)(G=D(this,Y,C,I,q[J].identifier,q[J]))&&(Ud(C),G("start",C,q[J]))}}function E(C){var I=C.changedTouches,q=I.length,Y,oe;for(Y=0;Y<q;++Y)(oe=s[I[Y].identifier])&&(Ys(C),oe("drag",C,I[Y]))}function M(C){var I=C.changedTouches,q=I.length,Y,oe;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),Y=0;Y<q;++Y)(oe=s[I[Y].identifier])&&(Ud(C),oe("end",C,I[Y]))}function D(C,I,q,Y,oe,J){var G=c.copy(),K=xi(J||q,I),O,$,_;if((_=r.call(C,new Ph("beforestart",{sourceEvent:q,target:b,identifier:oe,active:f,x:K[0],y:K[1],dx:0,dy:0,dispatch:G}),Y))!=null)return O=_.x-K[0]||0,$=_.y-K[1]||0,function k(R,B,ae){var ve=K,_e;switch(R){case"start":s[oe]=k,_e=f++;break;case"end":delete s[oe],--f;case"drag":K=xi(ae||B,I),_e=f;break}G.call(R,C,new Ph(R,{sourceEvent:B,subject:_,target:b,identifier:oe,active:_e,x:K[0]+O,y:K[1]+$,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:G}),Y)}}return b.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Gc(!!C),b):e},b.container=function(C){return arguments.length?(t=typeof C=="function"?C:Gc(C),b):t},b.subject=function(C){return arguments.length?(r=typeof C=="function"?C:Gc(C),b):r},b.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:Gc(!!C),b):o},b.on=function(){var C=c.on.apply(c,arguments);return C===c?b:C},b.clickDistance=function(C){return arguments.length?(v=(C=+C)*C,b):Math.sqrt(v)},b}function Wp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function f1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function ic(){}var Fa=.7,Hu=1/Fa,Zs="\\s*([+-]?\\d+)\\s*",Ha="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ri="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ohe=/^#([0-9a-f]{3,8})$/,Phe=new RegExp(`^rgb\\(${Zs},${Zs},${Zs}\\)$`),Rhe=new RegExp(`^rgb\\(${ri},${ri},${ri}\\)$`),Ihe=new RegExp(`^rgba\\(${Zs},${Zs},${Zs},${Ha}\\)$`),Dhe=new RegExp(`^rgba\\(${ri},${ri},${ri},${Ha}\\)$`),zhe=new RegExp(`^hsl\\(${Ha},${ri},${ri}\\)$`),Fhe=new RegExp(`^hsla\\(${Ha},${ri},${ri},${Ha}\\)$`),cy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wp(ic,Ba,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uy,formatHex:uy,formatHex8:Hhe,formatHsl:Bhe,formatRgb:fy,toString:fy});function uy(){return this.rgb().formatHex()}function Hhe(){return this.rgb().formatHex8()}function Bhe(){return d1(this).formatHsl()}function fy(){return this.rgb().formatRgb()}function Ba(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ohe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?dy(t):r===3?new Zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Kc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Kc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Phe.exec(e))?new Zn(t[1],t[2],t[3],1):(t=Rhe.exec(e))?new Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ihe.exec(e))?Kc(t[1],t[2],t[3],t[4]):(t=Dhe.exec(e))?Kc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zhe.exec(e))?gy(t[1],t[2]/100,t[3]/100,1):(t=Fhe.exec(e))?gy(t[1],t[2]/100,t[3]/100,t[4]):cy.hasOwnProperty(e)?dy(cy[e]):e==="transparent"?new Zn(NaN,NaN,NaN,0):null}function dy(e){return new Zn(e>>16&255,e>>8&255,e&255,1)}function Kc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Zn(e,t,r,o)}function jhe(e){return e instanceof ic||(e=Ba(e)),e?(e=e.rgb(),new Zn(e.r,e.g,e.b,e.opacity)):new Zn}function Rh(e,t,r,o){return arguments.length===1?jhe(e):new Zn(e,t,r,o??1)}function Zn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Wp(Zn,Rh,f1(ic,{brighter(e){return e=e==null?Hu:Math.pow(Hu,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Fa:Math.pow(Fa,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zn(Qo(this.r),Qo(this.g),Qo(this.b),Bu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hy,formatHex:hy,formatHex8:Whe,formatRgb:py,toString:py}));function hy(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}`}function Whe(){return`#${Go(this.r)}${Go(this.g)}${Go(this.b)}${Go((isNaN(this.opacity)?1:this.opacity)*255)}`}function py(){const e=Bu(this.opacity);return`${e===1?"rgb(":"rgba("}${Qo(this.r)}, ${Qo(this.g)}, ${Qo(this.b)}${e===1?")":`, ${e})`}`}function Bu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Go(e){return e=Qo(e),(e<16?"0":"")+e.toString(16)}function gy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Pr(e,t,r,o)}function d1(e){if(e instanceof Pr)return new Pr(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=Ba(e)),!e)return new Pr;if(e instanceof Pr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Pr(f,d,h,e.opacity)}function qhe(e,t,r,o){return arguments.length===1?d1(e):new Pr(e,t,r,o??1)}function Pr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Wp(Pr,qhe,f1(ic,{brighter(e){return e=e==null?Hu:Math.pow(Hu,e),new Pr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Fa:Math.pow(Fa,e),new Pr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Zn(Vd(e>=240?e-240:e+120,s,o),Vd(e,s,o),Vd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Pr(my(this.h),Xc(this.s),Xc(this.l),Bu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Bu(this.opacity);return`${e===1?"hsl(":"hsla("}${my(this.h)}, ${Xc(this.s)*100}%, ${Xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function my(e){return e=(e||0)%360,e<0?e+360:e}function Xc(e){return Math.max(0,Math.min(1,e||0))}function Vd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const h1=e=>()=>e;function Uhe(e,t){return function(r){return e+r*t}}function Vhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function Ghe(e){return(e=+e)==1?p1:function(t,r){return r-t?Vhe(t,r,e):h1(isNaN(t)?r:t)}}function p1(e,t){var r=t-e;return r?Uhe(e,r):h1(isNaN(e)?t:e)}const vy=(function e(t){var r=Ghe(t);function o(s,c){var f=r((s=Rh(s)).r,(c=Rh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=p1(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function ao(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Ih=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gd=new RegExp(Ih.source,"g");function Khe(e){return function(){return e}}function Xhe(e){return function(t){return e(t)+""}}function Yhe(e,t){var r=Ih.lastIndex=Gd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Ih.exec(e))&&(s=Gd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:ao(o,s)})),r=Gd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Xhe(h[0].x):Khe(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)d[(v=h[g]).i]=v.x(p);return d.join("")})}var yy=180/Math.PI,Dh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function g1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*yy,skewX:Math.atan(h)*yy,scaleX:f,scaleY:d}}var Yc;function Zhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Dh:g1(t.a,t.b,t.c,t.d,t.e,t.f)}function Jhe(e){return e==null||(Yc||(Yc=document.createElementNS("http://www.w3.org/2000/svg","g")),Yc.setAttribute("transform",e),!(e=Yc.transform.baseVal.consolidate()))?Dh:(e=e.matrix,g1(e.a,e.b,e.c,e.d,e.e,e.f))}function m1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,g,v,b,w,P){if(p!==v||g!==b){var A=w.push("translate(",null,t,null,r);P.push({i:A-4,x:ao(p,v)},{i:A-2,x:ao(g,b)})}else(v||b)&&w.push("translate("+v+t+b+r)}function f(p,g,v,b){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:ao(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:ao(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,w,P){if(p!==v||g!==b){var A=w.push(s(w)+"scale(",null,",",null,")");P.push({i:A-4,x:ao(p,v)},{i:A-2,x:ao(g,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(w){for(var P=-1,A=b.length,N;++P<A;)v[(N=b[P]).i]=N.x(w);return v.join("")}}}var Qhe=m1(Zhe,"px, ","px)","deg)"),epe=m1(Jhe,", ",")",")"),tpe=1e-12;function by(e){return((e=Math.exp(e))+1/e)/2}function npe(e){return((e=Math.exp(e))-1/e)/2}function rpe(e){return((e=Math.exp(2*e))-1)/(e+1)}const ipe=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],g=f[0],v=f[1],b=f[2],w=g-d,P=v-h,A=w*w+P*P,N,E;if(A<tpe)E=Math.log(b/p)/t,N=function(Y){return[d+Y*w,h+Y*P,p*Math.exp(t*Y*E)]};else{var M=Math.sqrt(A),D=(b*b-p*p+o*A)/(2*p*r*M),C=(b*b-p*p-o*A)/(2*b*r*M),I=Math.log(Math.sqrt(D*D+1)-D),q=Math.log(Math.sqrt(C*C+1)-C);E=(q-I)/t,N=function(Y){var oe=Y*E,J=by(I),G=p/(r*M)*(J*rpe(t*oe+I)-npe(I));return[d+G*w,h+G*P,p*J/by(t*oe+I)]}}return N.duration=E*1e3*t/Math.SQRT2,N}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s})(Math.SQRT2,2,4);var cl=0,ia=0,Jl=0,v1=1e3,ju,oa,Wu=0,ts=0,_f=0,ja=typeof performance=="object"&&performance.now?performance:Date,y1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function qp(){return ts||(y1(ope),ts=ja.now()+_f)}function ope(){ts=0}function qu(){this._call=this._time=this._next=null}qu.prototype=Up.prototype={constructor:qu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?qp():+r)+(t==null?0:+t),!this._next&&oa!==this&&(oa?oa._next=this:ju=this,oa=this),this._call=e,this._time=r,zh()},stop:function(){this._call&&(this._call=null,this._time=1/0,zh())}};function Up(e,t,r){var o=new qu;return o.restart(e,t,r),o}function spe(){qp(),++cl;for(var e=ju,t;e;)(t=ts-e._time)>=0&&e._call.call(void 0,t),e=e._next;--cl}function wy(){ts=(Wu=ja.now())+_f,cl=ia=0;try{spe()}finally{cl=0,ape(),ts=0}}function lpe(){var e=ja.now(),t=e-Wu;t>v1&&(_f-=t,Wu=e)}function ape(){for(var e,t=ju,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:ju=r);oa=e,zh(o)}function zh(e){if(!cl){ia&&(ia=clearTimeout(ia));var t=e-ts;t>24?(e<1/0&&(ia=setTimeout(wy,e-ja.now()-_f)),Jl&&(Jl=clearInterval(Jl))):(Jl||(Wu=ja.now(),Jl=setInterval(lpe,v1)),cl=1,y1(wy))}}function xy(e,t,r){var o=new qu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var cpe=rc("start","end","cancel","interrupt"),upe=[],b1=0,ky=1,Fh=2,cu=3,_y=4,Hh=5,uu=6;function Sf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;fpe(e,r,{name:t,index:o,group:s,on:cpe,tween:upe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:b1})}function Vp(e,t){var r=jr(e,t);if(r.state>b1)throw new Error("too late; already scheduled");return r}function si(e,t){var r=jr(e,t);if(r.state>cu)throw new Error("too late; already running");return r}function jr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function fpe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Up(c,0,r.time);function c(p){r.state=ky,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,w;if(r.state!==ky)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===cu)return xy(f);w.state===_y?(w.state=uu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+g<t&&(w.state=uu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[g])}if(xy(function(){r.state===cu&&(r.state=_y,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Fh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Fh){for(r.state=cu,s=new Array(b=r.tween.length),g=0,v=-1;g<b;++g)(w=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=w);s.length=v+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Hh,1),v=-1,b=s.length;++v<b;)s[v].call(e,g);r.state===Hh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=uu,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function fu(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Fh&&o.state<Hh,o.state=uu,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function dpe(e){return this.each(function(){fu(this,e)})}function hpe(e,t){var r,o;return function(){var s=si(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function ppe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=si(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function gpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=jr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?hpe:ppe)(r,e,t))}function Gp(e,t,r){var o=e._id;return e.each(function(){var s=si(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return jr(s,o).value[t]}}function w1(e,t){var r;return(typeof t=="number"?ao:t instanceof Ba?vy:(r=Ba(t))?(t=r,vy):Yhe)(e,t)}function mpe(e){return function(){this.removeAttribute(e)}}function vpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ype(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function bpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function wpe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function xpe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function kpe(e,t){var r=kf(e),o=r==="transform"?epe:w1;return this.attrTween(e,typeof t=="function"?(r.local?xpe:wpe)(r,o,Gp(this,"attr."+e,t)):t==null?(r.local?vpe:mpe)(r):(r.local?bpe:ype)(r,o,t))}function _pe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Spe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Tpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Spe(e,c)),r}return s._value=t,s}function Cpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&_pe(e,c)),r}return s._value=t,s}function Epe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=kf(e);return this.tween(r,(o.local?Tpe:Cpe)(o,t))}function Ape(e,t){return function(){Vp(this,e).delay=+t.apply(this,arguments)}}function Lpe(e,t){return t=+t,function(){Vp(this,e).delay=t}}function Mpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ape:Lpe)(t,e)):jr(this.node(),t).delay}function Npe(e,t){return function(){si(this,e).duration=+t.apply(this,arguments)}}function $pe(e,t){return t=+t,function(){si(this,e).duration=t}}function Ope(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Npe:$pe)(t,e)):jr(this.node(),t).duration}function Ppe(e,t){if(typeof t!="function")throw new Error;return function(){si(this,e).ease=t}}function Rpe(e){var t=this._id;return arguments.length?this.each(Ppe(t,e)):jr(this.node(),t).ease}function Ipe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;si(this,e).ease=r}}function Dpe(e){if(typeof e!="function")throw new Error;return this.each(Ipe(this._id,e))}function zpe(e){typeof e!="function"&&(e=Qx(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new Pi(o,this._parents,this._name,this._id)}function Fpe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],g=h.length,v=f[d]=new Array(g),b,w=0;w<g;++w)(b=h[w]||p[w])&&(v[w]=b);for(;d<o;++d)f[d]=t[d];return new Pi(f,this._parents,this._name,this._id)}function Hpe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Bpe(e,t,r){var o,s,c=Hpe(t)?Vp:si;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function jpe(e,t){var r=this._id;return arguments.length<2?jr(this.node(),r).on.on(e):this.each(Bpe(r,e,t))}function Wpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function qpe(){return this.on("end.remove",Wpe(this._id))}function Upe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Bp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),g,v,b=0;b<h;++b)(g=d[b])&&(v=e.call(g,g.__data__,b,d))&&("__data__"in g&&(v.__data__=g.__data__),p[b]=v,Sf(p[b],t,r,b,p,jr(g,r)));return new Pi(c,this._parents,t,r)}function Vpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Jx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var b=e.call(g,g.__data__,v,h),w,P=jr(g,r),A=0,N=b.length;A<N;++A)(w=b[A])&&Sf(w,t,r,A,b,P);c.push(b),f.push(g)}return new Pi(c,f,t,r)}var Gpe=nc.prototype.constructor;function Kpe(){return new Gpe(this._groups,this._parents)}function Xpe(e,t){var r,o,s;return function(){var c=ll(this,e),f=(this.style.removeProperty(e),ll(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function x1(e){return function(){this.style.removeProperty(e)}}function Ype(e,t,r){var o,s=r+"",c;return function(){var f=ll(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Zpe(e,t,r){var o,s,c;return function(){var f=ll(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),ll(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function Jpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=si(this,e),p=h.on,g=h.value[c]==null?d||(d=x1(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(f,s=g),h.on=o}}function Qpe(e,t,r){var o=(e+="")=="transform"?Qhe:w1;return t==null?this.styleTween(e,Xpe(e,o)).on("end.style."+e,x1(e)):typeof t=="function"?this.styleTween(e,Zpe(e,o,Gp(this,"style."+e,t))).each(Jpe(this._id,e)):this.styleTween(e,Ype(e,o,t),r).on("end.style."+e,null)}function ege(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function tge(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&ege(e,f,r)),o}return c._value=t,c}function nge(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,tge(e,t,r??""))}function rge(e){return function(){this.textContent=e}}function ige(e){return function(){var t=e(this);this.textContent=t??""}}function oge(e){return this.tween("text",typeof e=="function"?ige(Gp(this,"text",e)):rge(e==null?"":e+""))}function sge(e){return function(t){this.textContent=e.call(this,t)}}function lge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&sge(s)),t}return o._value=e,o}function age(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,lge(e))}function cge(){for(var e=this._name,t=this._id,r=k1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var g=jr(h,t);Sf(h,e,r,p,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Pi(o,this._parents,e,r)}function uge(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=si(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var fge=0;function Pi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function k1(){return++fge}var vi=nc.prototype;Pi.prototype={constructor:Pi,select:Upe,selectAll:Vpe,selectChild:vi.selectChild,selectChildren:vi.selectChildren,filter:zpe,merge:Fpe,selection:Kpe,transition:cge,call:vi.call,nodes:vi.nodes,node:vi.node,size:vi.size,empty:vi.empty,each:vi.each,on:jpe,attr:kpe,attrTween:Epe,style:Qpe,styleTween:nge,text:oge,textTween:age,remove:qpe,tween:gpe,delay:Mpe,duration:Ope,ease:Rpe,easeVarying:Dpe,end:uge,[Symbol.iterator]:vi[Symbol.iterator]};function dge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var hge={time:null,delay:0,duration:250,ease:dge};function pge(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function gge(e){var t,r;e instanceof Pi?(t=e._id,e=e._name):(t=k1(),(r=hge).time=qp(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Sf(h,e,t,p,f,r||pge(h,t));return new Pi(o,this._parents,e,t)}nc.prototype.interrupt=dpe;nc.prototype.transition=gge;const Zc=e=>()=>e;function mge(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function Ei(e,t,r){this.k=e,this.x=t,this.y=r}Ei.prototype={constructor:Ei,scale:function(e){return e===1?this:new Ei(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ei(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kp=new Ei(1,0,0);Ei.prototype;function Kd(e){e.stopImmediatePropagation()}function Ql(e){e.preventDefault(),e.stopImmediatePropagation()}function vge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function yge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sy(){return this.__zoom||Kp}function bge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function wge(){return navigator.maxTouchPoints||"ontouchstart"in this}function xge(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function kge(){var e=vge,t=yge,r=xge,o=bge,s=wge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=ipe,p=rc("start","zoom","end"),g,v,b,w=500,P=150,A=0,N=10;function E(_){_.property("__zoom",Sy).on("wheel.zoom",oe,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",K).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(_,k,R,B){var ae=_.selection?_.selection():_;ae.property("__zoom",Sy),_!==ae?I(_,k,R,B):ae.interrupt().each(function(){q(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},E.scaleBy=function(_,k,R,B){E.scaleTo(_,function(){var ae=this.__zoom.k,ve=typeof k=="function"?k.apply(this,arguments):k;return ae*ve},R,B)},E.scaleTo=function(_,k,R,B){E.transform(_,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?C(ae):typeof R=="function"?R.apply(this,arguments):R,je=ve.invert(_e),Ee=typeof k=="function"?k.apply(this,arguments):k;return r(D(M(ve,Ee),_e,je),ae,f)},R,B)},E.translateBy=function(_,k,R,B){E.transform(_,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),f)},null,B)},E.translateTo=function(_,k,R,B,ae){E.transform(_,function(){var ve=t.apply(this,arguments),_e=this.__zoom,je=B==null?C(ve):typeof B=="function"?B.apply(this,arguments):B;return r(Kp.translate(je[0],je[1]).scale(_e.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof R=="function"?-R.apply(this,arguments):-R),ve,f)},B,ae)};function M(_,k){return k=Math.max(c[0],Math.min(c[1],k)),k===_.k?_:new Ei(k,_.x,_.y)}function D(_,k,R){var B=k[0]-R[0]*_.k,ae=k[1]-R[1]*_.k;return B===_.x&&ae===_.y?_:new Ei(_.k,B,ae)}function C(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function I(_,k,R,B){_.on("start.zoom",function(){q(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=q(ae,ve).event(B),je=t.apply(ae,ve),Ee=R==null?C(je):typeof R=="function"?R.apply(ae,ve):R,Ge=Math.max(je[1][0]-je[0][0],je[1][1]-je[0][1]),Ue=ae.__zoom,He=typeof k=="function"?k.apply(ae,ve):k,Pe=h(Ue.invert(Ee).concat(Ge/Ue.k),He.invert(Ee).concat(Ge/He.k));return function(F){if(F===1)F=He;else{var Z=Pe(F),re=Ge/Z[2];F=new Ei(re,Ee[0]-Z[0]*re,Ee[1]-Z[1]*re)}_e.zoom(null,F)}})}function q(_,k,R){return!R&&_.__zooming||new Y(_,k)}function Y(_,k){this.that=_,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(_,k),this.taps=0}Y.prototype={event:function(_){return _&&(this.sourceEvent=_),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(_,k){return this.mouse&&_!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var k=Xn(this.that).datum();p.call(_,this.that,new mge(_,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),k)}};function oe(_,...k){if(!e.apply(this,arguments))return;var R=q(this,k).event(_),B=this.__zoom,ae=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),ve=xi(_);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(B.k===ae)return;R.mouse=[ve,B.invert(ve)],fu(this),R.start()}Ql(_),R.wheel=setTimeout(_e,P),R.zoom("mouse",r(D(M(B,ae),R.mouse[0],R.mouse[1]),R.extent,f));function _e(){R.wheel=null,R.end()}}function J(_,...k){if(b||!e.apply(this,arguments))return;var R=_.currentTarget,B=q(this,k,!0).event(_),ae=Xn(_.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ge,!0),ve=xi(_,R),_e=_.clientX,je=_.clientY;c1(_.view),Kd(_),B.mouse=[ve,this.__zoom.invert(ve)],fu(this),B.start();function Ee(Ue){if(Ql(Ue),!B.moved){var He=Ue.clientX-_e,Pe=Ue.clientY-je;B.moved=He*He+Pe*Pe>A}B.event(Ue).zoom("mouse",r(D(B.that.__zoom,B.mouse[0]=xi(Ue,R),B.mouse[1]),B.extent,f))}function Ge(Ue){ae.on("mousemove.zoom mouseup.zoom",null),u1(Ue.view,B.moved),Ql(Ue),B.event(Ue).end()}}function G(_,...k){if(e.apply(this,arguments)){var R=this.__zoom,B=xi(_.changedTouches?_.changedTouches[0]:_,this),ae=R.invert(B),ve=R.k*(_.shiftKey?.5:2),_e=r(D(M(R,ve),B,ae),t.apply(this,k),f);Ql(_),d>0?Xn(this).transition().duration(d).call(I,_e,B,_):Xn(this).call(E.transform,_e,B,_)}}function K(_,...k){if(e.apply(this,arguments)){var R=_.touches,B=R.length,ae=q(this,k,_.changedTouches.length===B).event(_),ve,_e,je,Ee;for(Kd(_),_e=0;_e<B;++_e)je=R[_e],Ee=xi(je,this),Ee=[Ee,this.__zoom.invert(Ee),je.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ee[2]&&(ae.touch1=Ee,ae.taps=0):(ae.touch0=Ee,ve=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ve&&(ae.taps<2&&(v=Ee[0],g=setTimeout(function(){g=null},w)),fu(this),ae.start())}}function O(_,...k){if(this.__zooming){var R=q(this,k).event(_),B=_.changedTouches,ae=B.length,ve,_e,je,Ee;for(Ql(_),ve=0;ve<ae;++ve)_e=B[ve],je=xi(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=je:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=je);if(_e=R.that.__zoom,R.touch1){var Ge=R.touch0[0],Ue=R.touch0[1],He=R.touch1[0],Pe=R.touch1[1],F=(F=He[0]-Ge[0])*F+(F=He[1]-Ge[1])*F,Z=(Z=Pe[0]-Ue[0])*Z+(Z=Pe[1]-Ue[1])*Z;_e=M(_e,Math.sqrt(F/Z)),je=[(Ge[0]+He[0])/2,(Ge[1]+He[1])/2],Ee=[(Ue[0]+Pe[0])/2,(Ue[1]+Pe[1])/2]}else if(R.touch0)je=R.touch0[0],Ee=R.touch0[1];else return;R.zoom("touch",r(D(_e,je,Ee),R.extent,f))}}function $(_,...k){if(this.__zooming){var R=q(this,k).event(_),B=_.changedTouches,ae=B.length,ve,_e;for(Kd(_),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ve=0;ve<ae;++ve)_e=B[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=xi(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<N)){var je=Xn(this).on("dblclick.zoom");je&&je.apply(this,arguments)}}}return E.wheelDelta=function(_){return arguments.length?(o=typeof _=="function"?_:Zc(+_),E):o},E.filter=function(_){return arguments.length?(e=typeof _=="function"?_:Zc(!!_),E):e},E.touchable=function(_){return arguments.length?(s=typeof _=="function"?_:Zc(!!_),E):s},E.extent=function(_){return arguments.length?(t=typeof _=="function"?_:Zc([[+_[0][0],+_[0][1]],[+_[1][0],+_[1][1]]]),E):t},E.scaleExtent=function(_){return arguments.length?(c[0]=+_[0],c[1]=+_[1],E):[c[0],c[1]]},E.translateExtent=function(_){return arguments.length?(f[0][0]=+_[0][0],f[1][0]=+_[1][0],f[0][1]=+_[0][1],f[1][1]=+_[1][1],E):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},E.constrain=function(_){return arguments.length?(r=_,E):r},E.duration=function(_){return arguments.length?(d=+_,E):d},E.interpolate=function(_){return arguments.length?(h=_,E):h},E.on=function(){var _=p.on.apply(p,arguments);return _===p?E:_},E.clickDistance=function(_){return arguments.length?(A=(_=+_)*_,E):Math.sqrt(A)},E.tapDistance=function(_){return arguments.length?(N=+_,E):N},E}function _ge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return _1(this.cover(t,r),t,r,e)}function _1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,g=e._y1,v,b,w,P,A,N,E,M;if(!c)return e._root=f,e;for(;c.length;)if((A=t>=(v=(d+p)/2))?d=v:p=v,(N=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[E=N<<1|A]))return s[E]=f,e;if(w=+e._x.call(null,c.data),P=+e._y.call(null,c.data),t===w&&r===P)return f.next=c,s?s[E]=f:e._root=f,e;do s=s?s[E]=new Array(4):e._root=new Array(4),(A=t>=(v=(d+p)/2))?d=v:p=v,(N=r>=(b=(h+g)/2))?h=b:g=b;while((E=N<<1|A)===(M=(P>=b)<<1|w>=v));return s[M]=c,s[E]=f,e}function Sge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>g&&(g=s),c<p&&(p=c),c>v&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;r<o;++r)_1(this,f[r],d[r],e[r]);return this}function Tge(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Cge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ege(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function zn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Age(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,g=this._x1,v=this._y1,b=[],w=this._root,P,A;for(w&&b.push(new zn(w,s,c,g,v)),r==null?r=1/0:(s=e-r,c=t-r,g=e+r,v=t+r,r*=r);P=b.pop();)if(!(!(w=P.node)||(f=P.x0)>g||(d=P.y0)>v||(h=P.x1)<s||(p=P.y1)<c))if(w.length){var N=(f+h)/2,E=(d+p)/2;b.push(new zn(w[3],N,E,h,p),new zn(w[2],f,E,N,p),new zn(w[1],N,d,h,E),new zn(w[0],f,d,N,E)),(A=(t>=E)<<1|e>=N)&&(P=b[b.length-1],b[b.length-1]=b[b.length-1-A],b[b.length-1-A]=P)}else{var M=e-+this._x.call(null,w.data),D=t-+this._y.call(null,w.data),C=M*M+D*D;if(C<r){var I=Math.sqrt(r=C);s=e-I,c=t-I,g=e+I,v=t+I,o=w.data}}return o}function Lge(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,g,v,b,w,P,A,N,E;if(!r)return this;if(r.length)for(;;){if((P=g>=(b=(f+h)/2))?f=b:h=b,(A=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[N=A<<1|P]))return this;if(!r.length)break;(t[N+1&3]||t[N+2&3]||t[N+3&3])&&(o=t,E=N)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[N]=c:delete t[N],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[E]=r:this._root=r),this):(this._root=c,this)}function Mge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Nge(){return this._root}function $ge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Oge(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new zn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,g=(f+h)/2;(s=o[3])&&t.push(new zn(s,p,g,d,h)),(s=o[2])&&t.push(new zn(s,c,g,p,h)),(s=o[1])&&t.push(new zn(s,p,f,d,g)),(s=o[0])&&t.push(new zn(s,c,f,p,g))}return this}function Pge(e){var t=[],r=[],o;for(this._root&&t.push(new zn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,g=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new zn(c,f,d,g,v)),(c=s[1])&&t.push(new zn(c,g,d,h,v)),(c=s[2])&&t.push(new zn(c,f,v,g,p)),(c=s[3])&&t.push(new zn(c,g,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Rge(e){return e[0]}function Ige(e){return arguments.length?(this._x=e,this):this._x}function Dge(e){return e[1]}function zge(e){return arguments.length?(this._y=e,this):this._y}function Xp(e,t,r){var o=new Yp(t??Rge,r??Dge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Yp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function Ty(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Bn=Xp.prototype=Yp.prototype;Bn.copy=function(){var e=new Yp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=Ty(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=Ty(o));return e};Bn.add=_ge;Bn.addAll=Sge;Bn.cover=Tge;Bn.data=Cge;Bn.extent=Ege;Bn.find=Age;Bn.remove=Lge;Bn.removeAll=Mge;Bn.root=Nge;Bn.size=$ge;Bn.visit=Oge;Bn.visitAfter=Pge;Bn.x=Ige;Bn.y=zge;function Hn(e){return function(){return e}}function ho(e){return(e()-.5)*1e-6}function Fge(e){return e.x+e.vx}function Hge(e){return e.y+e.vy}function Bge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Hn(e==null?1:+e));function f(){for(var p,g=t.length,v,b,w,P,A,N,E=0;E<c;++E)for(v=Xp(t,Fge,Hge).visitAfter(d),p=0;p<g;++p)b=t[p],A=r[b.index],N=A*A,w=b.x+b.vx,P=b.y+b.vy,v.visit(M);function M(D,C,I,q,Y){var oe=D.data,J=D.r,G=A+J;if(oe){if(oe.index>b.index){var K=w-oe.x-oe.vx,O=P-oe.y-oe.vy,$=K*K+O*O;$<G*G&&(K===0&&(K=ho(o),$+=K*K),O===0&&(O=ho(o),$+=O*O),$=(G-($=Math.sqrt($)))/$*s,b.vx+=(K*=$)*(G=(J*=J)/(N+J)),b.vy+=(O*=$)*G,oe.vx-=K*(G=1-G),oe.vy-=O*G)}return}return C>w+G||q<w-G||I>P+G||Y<P-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p<g;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,g){t=p,o=g,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Hn(+p),h(),f):e},f}function jge(e){return e.index}function Cy(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Wge(e){var t=jge,r=v,o,s=Hn(30),c,f,d,h,p,g=1;e==null&&(e=[]);function v(N){return 1/Math.min(d[N.source.index],d[N.target.index])}function b(N){for(var E=0,M=e.length;E<g;++E)for(var D=0,C,I,q,Y,oe,J,G;D<M;++D)C=e[D],I=C.source,q=C.target,Y=q.x+q.vx-I.x-I.vx||ho(p),oe=q.y+q.vy-I.y-I.vy||ho(p),J=Math.sqrt(Y*Y+oe*oe),J=(J-c[D])/J*N*o[D],Y*=J,oe*=J,q.vx-=Y*(G=h[D]),q.vy-=oe*G,I.vx+=Y*(G=1-G),I.vy+=oe*G}function w(){if(f){var N,E=f.length,M=e.length,D=new Map(f.map((I,q)=>[t(I,q,f),I])),C;for(N=0,d=new Array(E);N<M;++N)C=e[N],C.index=N,typeof C.source!="object"&&(C.source=Cy(D,C.source)),typeof C.target!="object"&&(C.target=Cy(D,C.target)),d[C.source.index]=(d[C.source.index]||0)+1,d[C.target.index]=(d[C.target.index]||0)+1;for(N=0,h=new Array(M);N<M;++N)C=e[N],h[N]=d[C.source.index]/(d[C.source.index]+d[C.target.index]);o=new Array(M),P(),c=new Array(M),A()}}function P(){if(f)for(var N=0,E=e.length;N<E;++N)o[N]=+r(e[N],N,e)}function A(){if(f)for(var N=0,E=e.length;N<E;++N)c[N]=+s(e[N],N,e)}return b.initialize=function(N,E){f=N,p=E,w()},b.links=function(N){return arguments.length?(e=N,w(),b):e},b.id=function(N){return arguments.length?(t=N,b):t},b.iterations=function(N){return arguments.length?(g=+N,b):g},b.strength=function(N){return arguments.length?(r=typeof N=="function"?N:Hn(+N),P(),b):r},b.distance=function(N){return arguments.length?(s=typeof N=="function"?N:Hn(+N),A(),b):s},b}const qge=1664525,Uge=1013904223,Ey=4294967296;function Vge(){let e=1;return()=>(e=(qge*e+Uge)%Ey)/Ey}function Gge(e){return e.x}function Kge(e){return e.y}var Xge=10,Yge=Math.PI*(3-Math.sqrt(5));function Zge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Up(v),p=rc("tick","end"),g=Vge();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(A){var N,E=e.length,M;A===void 0&&(A=1);for(var D=0;D<A;++D)for(r+=(c-r)*s,d.forEach(function(C){C(r)}),N=0;N<E;++N)M=e[N],M.fx==null?M.x+=M.vx*=f:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=f:(M.y=M.fy,M.vy=0);return t}function w(){for(var A=0,N=e.length,E;A<N;++A){if(E=e[A],E.index=A,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var M=Xge*Math.sqrt(.5+A),D=A*Yge;E.x=M*Math.cos(D),E.y=M*Math.sin(D)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function P(A){return A.initialize&&A.initialize(e,g),A}return w(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(A){return arguments.length?(e=A,w(),d.forEach(P),t):e},alpha:function(A){return arguments.length?(r=+A,t):r},alphaMin:function(A){return arguments.length?(o=+A,t):o},alphaDecay:function(A){return arguments.length?(s=+A,t):+s},alphaTarget:function(A){return arguments.length?(c=+A,t):c},velocityDecay:function(A){return arguments.length?(f=1-A,t):1-f},randomSource:function(A){return arguments.length?(g=A,d.forEach(P),t):g},force:function(A,N){return arguments.length>1?(N==null?d.delete(A):d.set(A,P(N)),t):d.get(A)},find:function(A,N,E){var M=0,D=e.length,C,I,q,Y,oe;for(E==null?E=1/0:E*=E,M=0;M<D;++M)Y=e[M],C=A-Y.x,I=N-Y.y,q=C*C+I*I,q<E&&(oe=Y,E=q);return oe},on:function(A,N){return arguments.length>1?(p.on(A,N),t):p.on(A)}}}function Jge(){var e,t,r,o,s=Hn(-30),c,f=1,d=1/0,h=.81;function p(w){var P,A=e.length,N=Xp(e,Gge,Kge).visitAfter(v);for(o=w,P=0;P<A;++P)t=e[P],N.visit(b)}function g(){if(e){var w,P=e.length,A;for(c=new Array(P),w=0;w<P;++w)A=e[w],c[A.index]=+s(A,w,e)}}function v(w){var P=0,A,N,E=0,M,D,C;if(w.length){for(M=D=C=0;C<4;++C)(A=w[C])&&(N=Math.abs(A.value))&&(P+=A.value,E+=N,M+=N*A.x,D+=N*A.y);w.x=M/E,w.y=D/E}else{A=w,A.x=A.data.x,A.y=A.data.y;do P+=c[A.data.index];while(A=A.next)}w.value=P}function b(w,P,A,N){if(!w.value)return!0;var E=w.x-t.x,M=w.y-t.y,D=N-P,C=E*E+M*M;if(D*D/h<C)return C<d&&(E===0&&(E=ho(r),C+=E*E),M===0&&(M=ho(r),C+=M*M),C<f&&(C=Math.sqrt(f*C)),t.vx+=E*w.value*o/C,t.vy+=M*w.value*o/C),!0;if(w.length||C>=d)return;(w.data!==t||w.next)&&(E===0&&(E=ho(r),C+=E*E),M===0&&(M=ho(r),C+=M*M),C<f&&(C=Math.sqrt(f*C)));do w.data!==t&&(D=c[w.data.index]*o/C,t.vx+=E*D,t.vy+=M*D);while(w=w.next)}return p.initialize=function(w,P){e=w,r=P,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Hn(+w),g(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Qge(e){var t=Hn(.1),r,o,s;typeof e!="function"&&(e=Hn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Hn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Hn(+d),f(),c):e},c}function eme(e){var t=Hn(.1),r,o,s;typeof e!="function"&&(e=Hn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Hn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Hn(+d),f(),c):e},c}function tme(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function nme(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function rme(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function T1(e){return typeof e=="number"}function _o(e,t){return T1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function ime(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function ome(e){return`url(#${C1(e.color)})`}function sme(e){return{size:e,padding:(t,r)=>_o(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const E1={Arrow:e=>sme(e)},lme=(e,t,r)=>[t/2,r/2],ame=(e,t,r)=>[Ay(0,t),Ay(0,r)];function Ay(e,t){return Math.random()*(t-e)+e}const Bh={Centered:lme,Randomized:ame};function cme(){return{autoResize:!1,callbacks:{},hooks:{},initial:rme(),nodeRadius:16,marker:E1.Arrow(4),modifiers:{},positionInitializer:Bh.Centered,simulation:{alphas:tme(),forces:nme()},zoom:{initial:1,min:.1,max:2}}}function ume(e={}){return Wfe(cme(),e,{arrayMerge:(t,r)=>r})}function fme({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>S1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Kp.translate(c,f).scale(d)),p.append("g")}function dme({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function hme({config:e,onDragStart:t,onDragEnd:r}){const o=$he().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Xn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Xn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function pme({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:gme({links:c},r)}function gme(e,t){const r=[...mme(e,t),...vme(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function mme(e,t){return A1(e,t,(r,o)=>r.target.id===o.id)}function vme(e,t){return A1(e,t,(r,o)=>r.source.id===o.id)}function A1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function jh(e){return e.x??0}function Wh(e){return e.y??0}function Zp({source:e,target:t}){const r=new al(jh(e),Wh(e)),o=new al(jh(t),Wh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function L1({center:e,node:t}){const r=new al(jh(t),Wh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new al(0,1))),{n:r,c:o}}function M1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=Zp({source:t,target:r});return{start:o.add(c.multiply(_o(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function yme(e){const{start:t,end:r}=M1(e);return`M${t.x},${t.y}
47
+ L${r.x},${r.y}`}function bme(e){const{start:t,end:r}=M1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function wme({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=Zp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(_o(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(_o(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
48
+ A${v},${v},0,0,1,${g.x},${g.y}`}function xme({center:e,config:t,node:r}){const{n:o,c:s}=L1({center:e,node:r}),c=_o(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
49
+ A${c},${c},0,1,0,${g.x},${g.y}`}function kme({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=Zp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function _me({center:e,config:t,node:r}){const{n:o,c:s}=L1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*_o(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Js={line:{labelTransform:bme,path:yme},arc:{labelTransform:kme,path:wme},reflexive:{labelTransform:_me,path:xme}};function Sme(e){return e.append("g").classed("links",!0).selectAll("path")}function Tme({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>ime(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>ome(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Cme(e){Eme(e),Ame(e)}function Eme({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Js.reflexive.path({config:t,node:s.source,center:e}):N1(r,s.source,s.target)?Js.arc.path({config:t,source:s.source,target:s.target}):Js.line.path({config:t,source:s.source,target:s.target}))}function Ame({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Js.reflexive.labelTransform({config:e,node:s.source,center:t}):N1(r,s.source,s.target)?Js.arc.labelTransform({config:e,source:s.source,target:s.target}):Js.line.labelTransform({config:e,source:s.source,target:s.target}))}function N1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Lme(e){return e.append("defs").selectAll("marker")}function Mme({config:e,graph:t,selection:r}){return r?.data(Nme(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",$me(e.marker.path)),s})}function Nme(e){return[...new Set(e.links.map(t=>t.color))]}function $me(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ome(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Pme({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",b=>_o(e,b)).on("contextmenu",(b,w)=>{S1(b),o(w)}).on("pointerdown",(b,w)=>Ime(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const Rme=500;function Ime(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Rme){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Dme(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function zme({center:e,config:t,graph:r,onTick:o}){const s=Zge(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",Qge(()=>e().x).strength(p)).force("y",eme(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",Jge().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Bge().radius(p=>d.radiusMultiplier*_o(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Wge(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function Fme({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=kge().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var Hme=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(qfe(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return al.of([this.width,this.height]).divide(2).subtract(al.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(T1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Mme({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Tme({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Pme({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=zme({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=Fme({config:this.config,canvasContainer:()=>Xn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=fme({applyZoom:this.scale!==1,container:Xn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Sme(this.canvas),this.nodeSelection=Ome(this.canvas),this.markerSelection=Lme(this.canvas),this.drag=hme({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){Dme(this.nodeSelection),Cme({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Xn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){dme({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=pme({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ly({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Bme(e){return{...e}}function Jp(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function My(e){const t=e.map(o=>kx(o)),r=zL(t);return t.map(({raw:o,id:s,splitted:c})=>Jp({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c[c.length-1]},isFocused:!1,id:s,type:"external"}))}function jme(e,t){return Jp({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Wme(e,t){if(!e)return Ly({});const r=pt.value.experimental?.viteModuleRunner?My(e.externalized):My([...e.inlined,...e.externalized]),o=pt.value.experimental?.viteModuleRunner?e.inlined.map(d=>jme(d,d===t))??[]:[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const g=c[d],v=c[p];if(!(g===void 0||v===void 0))return Bme({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ly({nodes:s,links:f})}const qme={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Ume={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Vme={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Gme={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kme={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xme={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},$1=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Qn("tooltip");return e.state==="pass"?(te(),ge("div",qme)):e.failedSnapshot?st((te(),ge("div",Ume,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ge("div",Vme)):e.mode==="todo"?st((te(),ge("div",Gme,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((te(),ge("div",Kme,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(te(),ge("div",Xme))}}}),Yme={border:"b base","p-4":""},Zme=["innerHTML"],Jme=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(te(),ge("div",Yme,[X("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ne(t(e.time))+" | "+Ne(e.taskName)+" | "+Ne(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,Zme)]))}}),Qme={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},eve={key:1,p6:""},tve=tt({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Xx.value;if(o){const s=Rp(wo.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(va(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?wL(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(te(),ge("div",Qme,[(te(!0),ge(nt,null,yn(t.value,({taskId:c,type:f,time:d,content:h})=>(te(),ge("div",{key:c,"font-mono":""},[Me(Jme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ge("div",eve,[...s[0]||(s[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),O1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(O1);var gr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},Is,sa,Uo;class nve{constructor(...t){Is.set(this,new Map),sa.set(this,new Map),Uo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),gr(this,Uo,"f").has(o)||gr(this,Uo,"f").set(o,new Set);const c=gr(this,Uo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&gr(this,sa,"f").set(o,d),f=!1,h)continue;const p=gr(this,Is,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);gr(this,Is,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:gr(this,Is,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&gr(this,sa,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:gr(this,Uo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of gr(this,Uo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:gr(this,Is,"f"),extensions:gr(this,sa,"f")}}}Is=new WeakMap,sa=new WeakMap,Uo=new WeakMap;const rve=new nve(O1)._freeze();function ul(e){const t=e.contentType??"application/octet-stream";return e.path?ar?`./data/${uL(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function P1(e,t){const r=t?rve.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function R1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function qh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:ul(e)}const du=tt({__name:"CodeMirrorContainer",props:Sa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Sa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=af(e,"modelValue"),s=yT(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ke();return Di(async()=>{const d=rue(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Rn.value=d,setTimeout(()=>Rn.value?.refresh(),100)}),(d,h)=>(te(),ge("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),ive=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ke(""),c=qt(void 0),f=Ke(!1),d=Ke(!0),h=Ke(!1),p=Ke();yt(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(J){console.error("cannot fetch file",J)}await Ct(),d.value=!1}},{immediate:!0}),yt(()=>[d.value,h.value,r.file,Dx.value,zx.value],([J,G,K,O,$])=>{!J&&!G&&(O!=null?Ct(()=>{const _=p.value,k=_??{line:(O??1)-1,ch:$??0};_?p.value=void 0:(Rn.value?.scrollIntoView(k,100),Ct(()=>{Rn.value?.focus(),Rn.value?.setCursor(k)}))}):Ct(()=>{Rn.value?.focus()}))},{flush:"post"});const g=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ke(),b=ke(()=>{const J=[];function G(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(G)}return r.file?.tasks.forEach(G),J}),w=ke(()=>{const J=[];function G(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(G)}return r.file?.tasks.forEach(G),J}),P=[],A=[],N=[],E=Ke(!1);function M(){N.forEach(([J,G,K])=>{J.removeEventListener("click",G),K()}),N.length=0}yA(v,()=>{Rn.value?.refresh()});function D(){f.value=c.value!==Rn.value.getValue()}yt(f,J=>{o("draft",J)},{immediate:!0});function C(J){const K=(J?.stacks||[]).filter(R=>R.file&&R.file===r.file?.filepath)?.[0];if(!K)return;const O=document.createElement("div");O.className="op80 flex gap-x-2 items-center";const $=document.createElement("pre");$.className="c-red-700 dark:c-red-400",$.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,O.appendChild($);const _=document.createElement("span");_.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",_.tabIndex=0,_.ariaLabel="Open in Editor",Ww(_,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await Pp(K.file,K.line,K.column)};_.addEventListener("click",k),O.appendChild(_),N.push([_,k,()=>kp(_)]),A.push(Rn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),P.push(Rn.value.addLineWidget(K.line-1,O))}function I(J){if(!J.location)return;const{line:G,file:K}=J.location;if(K!==r.file?.filepath)return;const O=document.createElement("div");O.classList.add("wrap","bg-active","py-3","px-6","my-1"),O.role="note";const $=document.createElement("div");$.classList.add("block","text-black","dark:text-white");const _=document.createElement("span");_.textContent=`${J.type}: `,_.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=J.message.replace(/[^\r]\n/,`\r
50
+ `),$.append(_,k),O.append($);const R=J.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),B.referrerPolicy="no-referrer"):ae.setAttribute("src",ul(R)),B.target="_blank",B.href=ae.src,B.append(ae),O.append(B)}else{const B=document.createElement("a");B.href=ul(R),B.download=P1(J.message,R.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(ae,ve),O.append(B)}P.push(Rn.value.addLineWidget(G-1,O))}const{pause:q,resume:Y}=yt([Rn,b,w,zs],([J,G,K,O])=>{if(!J){P.length=0,A.length=0,M();return}O&&(J.off("changes",D),M(),P.forEach($=>$.clear()),A.forEach($=>J?.removeLineClass($,"wrap")),P.length=0,A.length=0,setTimeout(()=>{G.forEach(C),K.forEach(I),E.value||J.clearHistory(),J.on("changes",D)},100))},{flush:"post"});Yw(()=>[zs.value,h.value,p.value],([J,G],K)=>{J&&!G&&K&&K[2]&&Rn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function oe(J){if(h.value)return;q(),h.value=!0,await Ct();const G=Rn.value;G&&(G.setOption("readOnly",!0),await Ct(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",D),M(),P.forEach(K=>K.clear()),A.forEach(K=>G?.removeLineClass(K,"wrap")),P.length=0,A.length=0;try{E.value=!0,await ft.rpc.saveTestFile(r.file.filepath,J),c.value=J,f.value=!1}catch(K){console.error("error saving file",K)}E.value||G?.clearHistory();try{await f0(zs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await f0(zs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(C),w.value.forEach(I),G?.on("changes",D),h.value=!1,await Ct(),G&&(G.setOption("readOnly",!1),await Ct(),G.refresh()),Y()}return Ga(M),(J,G)=>(te(),We(du,ei({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=K=>s.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(ar)||!W(pt).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:oe}),null,16,["modelValue","mode"]))}}),I1=tt({__name:"Modal",props:Sa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=af(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(te(),ge("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:Ot(t.value?{}:{transform:o.value})},[Ft(c.$slots,"default")],6)],2))}}),ove={class:"overflow-auto max-h-120"},sve={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},lve=["onClick"],ave=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=ke(()=>{const f=yr.value?.importDurations,d=pt.value.root;if(!f||!d)return[];const h=[];for(const p in f){const g=f[p],v=g.external?FL(p):yf(d,p);h.push({importedFile:p,relativeFile:s(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:Vo(g.selfTime),formattedTotalTime:Vo(g.totalTime),selfTimeClass:Pu(g.selfTime),totalTimeClass:Pu(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function s(c){return c.length<=45?c:`...${c.slice(-45)}`}return(c,f)=>(te(),ge("div",ove,[f[1]||(f[1]=X("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),X("span",{"op-70":""},"(ordered by Total Time)")],-1)),X("table",sve,[f[0]||(f[0]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(te(!0),ge(nt,null,yn(o.value,d=>(te(),ge("tr",{key:d.importedFile},[X("td",{class:"cursor-pointer pr-2",style:Ot({color:d.external?"var(--color-node-external)":void 0}),onClick:h=>r("select",d.importedFile,d.external?"external":"inline")},Ne(d.relativeFile),13,lve),X("td",{"pr-2":"",class:ot(d.selfTimeClass)},Ne(d.formattedSelfTime),3),X("td",{"pr-2":"",class:ot(d.totalTimeClass)},Ne(d.formattedTotalTime),3),X("td",{"pr-2":"",class:ot(d.totalTimeClass)},Ne(Math.round(d.totalTime/o.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),Os=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(te(),ge("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Ft(t.$slots,"default")],2))}}),cve={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},uve={"p-4":"",relative:""},fve={flex:"","justify-between":""},dve={"mr-8":"",flex:"","gap-2":"","items-center":""},hve={op50:"","font-mono":"","text-sm":""},pve={key:0,"p-5":""},gve={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},mve={key:0},vve={p:"x3 y-1","bg-overlay":"",border:"base b t"},yve=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=QE(()=>{if(yr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,yr.value.id,!!cr);if(r.type==="external")return ft.rpc.getExternalResult(r.id,yr.value.id)}}),c=ke(()=>{const D=yr.value?.importDurations||{};return D[r.id]||D[aL("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!pt.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],w=[];function P(D,C){const I=D.coordsChar({left:C.clientX,top:C.clientY}),q=D.findMarksAt(I);if(q.length!==1)return;const Y=q[0].title;if(Y){const oe=q[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",Y,oe)}}function A(D){const C=document.createElement("div");C.classList.add("mb-5");const I=pt.value.root;if(I)return D.forEach(({resolvedId:q,totalTime:Y,external:oe})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const G=document.createElement("span"),K=yf(I,q);G.textContent=`"/${K}"`,G.className="hover:underline decoration-gray cursor-pointer select-none",J.append(G),G.addEventListener("click",()=>{o("select",q,oe?"external":"inline")});const O=document.createElement("span");O.textContent=` ${Vo(Y)}`;const $=Pu(Y);$&&O.classList.add($),J.append(O),C.append(J)}),C}function N(D){const C=document.createElement("div");C.className="flex ml-2",C.textContent=Vo(D);const I=Pu(D);return I&&C.classList.add(I),C}function E(D){if(w.forEach(C=>C.clear()),w.length=0,v.forEach(C=>C.remove()),v.length=0,b.forEach(C=>C.clear()),b.length=0,s.value&&"modules"in s.value){D.off("mousedown",P),D.on("mousedown",P);const C=s.value.untrackedModules;if(C?.length){const I=A(C);if(!I)return;v.push(I),w.push(D.addLineWidget(0,I,{above:!0}))}s.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},Y={line:I.end.line-1,ch:I.end.column},oe=D.markText(q,Y,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(oe);const J=N(I.totalTime+(I.transformTime||0));C?.length||J.classList.add("-mt-5"),v.push(J),D.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function M(){o("back")}return Qw("Escape",()=>{o("close")}),(D,C)=>{const I=Qn("tooltip");return te(),ge("div",cve,[X("div",uve,[X("div",fve,[X("p",null,[e.canUndo?st((te(),We(St,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:C[0]||(C[0]=q=>M())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):ze("",!0),C[7]||(C[7]=Qe(" Module Info ",-1)),Me(W(so),{class:"inline","cursor-help":""},{popper:Be(()=>[Qe(" This is module is "+Ne(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ge(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ge(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:Be(()=>[Me(Os,{type:"custom","ml-1":"",style:Ot({backgroundColor:`var(--color-node-${e.type})`})},{default:Be(()=>[Qe(Ne(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(so),{key:1,class:"inline","cursor-help":""},{popper:Be(()=>[...C[4]||(C[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:Be(()=>[Me(Os,{type:"tip","ml-2":""},{default:Be(()=>[...C[3]||(C[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):ze("",!0),h.value===!1?(te(),We(W(so),{key:2,class:"inline","cursor-help":""},{popper:Be(()=>[...C[6]||(C[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:Be(()=>[Me(Os,{type:"warning","ml-2":""},{default:Be(()=>[...C[5]||(C[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):ze("",!0)]),X("div",dve,[c.value.selfTime!=null&&c.value.external!==!0?(te(),We(W(so),{key:0,class:"inline","cursor-help":""},{popper:Be(()=>[Qe(" It took "+Ne(W(zd)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:Be(()=>[Me(Os,{type:W(ou)(c.value.selfTime)},{default:Be(()=>[Qe(" self: "+Ne(W(Vo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0),c.value.totalTime!=null?(te(),We(W(so),{key:1,class:"inline","cursor-help":""},{popper:Be(()=>[Qe(" It took "+Ne(W(zd)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:Be(()=>[Me(Os,{type:W(ou)(c.value.totalTime)},{default:Be(()=>[Qe(" total: "+Ne(W(Vo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0),W(s)&&"transformTime"in W(s)&&W(s).transformTime?(te(),We(W(so),{key:2,class:"inline","cursor-help":""},{popper:Be(()=>[Qe(" It took "+Ne(W(zd)(W(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:Be(()=>[Me(Os,{type:W(ou)(W(s).transformTime)},{default:Be(()=>[Qe(" transform: "+Ne(W(Vo)(W(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):ze("",!0)])]),X("p",hve,Ne(e.id),1),Me(St,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:C[1]||(C[1]=q=>o("close"))})]),W(s)?(te(),ge(nt,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[C[8]||(C[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ge("div",gve," Transformed ")):ze("",!0),(te(),We(du,ei({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:C[2]||(C[2]=q=>E(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(du,ei({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):ze("",!0)],2),g.value.mappings!==""?(te(),ge("div",mve,[X("div",vve," Source map (v"+Ne(g.value.version)+") ",1),Me(du,ei({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):ze("",!0)],64)):(te(),ge("div",pve," No transform result found for this module. "))])}}}),bve={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},wve={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},xve={flex:"~ gap-1","items-center":"","select-none":""},kve={class:"pr-2"},_ve=["id","checked","onChange"],Sve=["for"],Tve={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},Cve=tt({__name:"ViewModuleGraph",props:Sa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=af(e,"modelValue"),{graph:o}=HS(t),s=Ke(),c=Ke(!1),f=Ke(),d=vA(f),h=Ke(),p=Ke(null),g=qt(o.value),v=ke(()=>{let K="";const O=yr.value?.importDurations,$=pt.value.experimental?.importDurations.thresholds;if(!O||!$)return K;for(const _ in O){const{totalTime:k}=O[_];if(k>=$.danger){K="text-red";break}else k>=$.warn&&(K="text-orange")}return K}),b=Ke(v.value==="text-red");Di(()=>{g.value=A(o.value,null,2),Y()}),Ka(()=>{h.value?.shutdown()}),yt(o,()=>{g.value=A(o.value,p.value,2),Y()});function w(){g.value=o.value,Y()}function P(){b.value=!b.value}function A(K,O,$=2){if(!K.nodes.length||K.nodes.length<=50)return K;const _=new Map;K.nodes.forEach(Ee=>_.set(Ee.id,new Set)),K.links.forEach(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);_.get(Ge)?.add(Ue),_.get(Ue)?.add(Ge)});let k;if(O)k=[O];else{const Ee=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ge=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ee.has(Ue.id));k=Ge.length>0?[Ge[0].id]:[K.nodes[0].id]}const R=new Set,B=k.map(Ee=>({id:Ee,level:0}));for(;B.length>0;){const{id:Ee,level:Ge}=B.shift();R.has(Ee)||Ge>$||(R.add(Ee),Ge<$&&(_.get(Ee)||new Set).forEach(He=>{R.has(He)||B.push({id:He,level:Ge+1})}))}const ae=new Map(K.nodes.map(Ee=>[Ee.id,Ee])),ve=Array.from(R).map(Ee=>ae.get(Ee)).filter(Ee=>Ee!==void 0),_e=new Map(ve.map(Ee=>[Ee.id,Ee])),je=K.links.map(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);if(R.has(Ge)&&R.has(Ue)){const He=_e.get(Ge),Pe=_e.get(Ue);if(He&&Pe)return{...Ee,source:He,target:Pe}}return null}).filter(Ee=>Ee!==null);return{nodes:ve,links:je}}function N(K,O){h.value?.filterNodesByType(O,K)}function E(K,O){f.value={id:K,type:O},c.value=!0}function M(){d.undo()}function D(){c.value=!1,d.clear()}function C(K){p.value=K,g.value=A(o.value,K,2),q(),Y()}function I(){p.value=null,g.value=A(o.value,null,2),q(),Y()}function q(){const K=g.value.nodes.map(_=>{let k,R;return _.id===p.value?(k="var(--color-node-focused)",R="var(--color-node-focused)"):_.type==="inline"?(k=_.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=k):(k="var(--color-node-external)",R="var(--color-node-external)"),Jp({..._,color:k,label:_.label?{..._.label,color:R}:_.label})}),O=new Map(K.map(_=>[_.id,_])),$=g.value.links.map(_=>{const k=typeof _.source=="object"?_.source.id:String(_.source),R=typeof _.target=="object"?_.target.id:String(_.target);return{..._,source:O.get(k),target:O.get(R)}});g.value={nodes:K,links:$}}function Y(K=!1){if(h.value?.shutdown(),K&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const O=g.value.nodes.length;let $=1,_=.5;O>300?($=.3,_=.2):O>200?($=.4,_=.3):O>100?($=.5,_=.3):O>50&&($=.7,$=.4),h.value=new Hme(s.value,g.value,ume({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:R})=>k===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:E1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Bh.Centered:Bh.Randomized,zoom:{initial:$,min:_,max:1.5}}))}const oe=K=>K.button===0,J=K=>K.button===2;function G(K){if(ar)return;let O=0,$=0,_=0,k=!1;K.on("pointerdown",(R,B)=>{!B.x||!B.y||(k=J(R),!(!oe(R)&&!k)&&(O=B.x,$=B.y,_=Date.now()))}).on("pointerup",(R,B)=>{if(!B.x||!B.y)return;const ae=J(R);if(!oe(R)&&!ae||Date.now()-_>500)return;const ve=B.x-O,_e=B.y-$;ve**2+_e**2<100&&(!ae&&!R.shiftKey?E(B.id,B.type):(ae||R.shiftKey)&&(R.preventDefault(),B.type==="inline"&&C(B.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(K,O)=>{const $=Qn("tooltip");return te(),ge("div",bve,[X("div",null,[X("div",wve,[X("div",xve,[X("div",kve,Ne(g.value.nodes.length)+"/"+Ne(W(o).nodes.length)+" "+Ne(g.value.nodes.length===1?"module":"modules"),1),st(X("input",{id:"hide-node-modules","onUpdate:modelValue":O[0]||(O[0]=_=>r.value=_),type:"checkbox"},null,512),[[xw,r.value]]),O[9]||(O[9]=X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(te(!0),ge(nt,null,yn(h.value?.nodeTypes.sort(),_=>(te(),ge("div",{key:_,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${_}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(_),onChange:k=>N(_,k.target.checked)},null,40,_ve),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${_}`,"border-b-2":"",style:Ot({"border-color":`var(--color-node-${_})`})},Ne(_)+" Modules",13,Sve)]))),128)),O[10]||(O[10]=X("div",{"flex-auto":""},null,-1)),O[11]||(O[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[st(Me(St,{icon:"i-carbon-notebook",class:ot(v.value),onClick:O[1]||(O[1]=_=>P())},null,8,["class"]),[[$,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[st(Me(St,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:O[2]||(O[2]=_=>w())},null,512),[[$,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[st(Me(St,{icon:"i-carbon-reset",onClick:O[3]||(O[3]=_=>I())},null,512),[[$,"Reset",void 0,{bottom:!0}]])])])]),b.value?(te(),ge("div",Tve,[Me(ave,{onSelect:O[4]||(O[4]=(_,k)=>E(_,k))})])):ze("",!0),X("div",{ref_key:"el",ref:s},null,512),Me(I1,{modelValue:c.value,"onUpdate:modelValue":O[8]||(O[8]=_=>c.value=_),direction:"right"},{default:Be(()=>[f.value?(te(),We(WT,{key:0},{default:Be(()=>[Me(yve,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":W(d).undoStack.value.length>1,onClose:O[5]||(O[5]=_=>D()),onSelect:O[6]||(O[6]=(_,k)=>E(_,k)),onBack:O[7]||(O[7]=_=>M())},null,8,["id","project-name","type","can-undo"])]),_:1})):ze("",!0)]),_:1},8,["modelValue"])])}}}),Eve={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Ave={"p-4":"",relative:"",border:"base b"},Lve={op50:"","font-mono":"","text-sm":""},Mve={op50:"","font-mono":"","text-sm":""},Nve={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},$ve=["src","alt"],Ove={key:1},Pve=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Qw("Escape",()=>{r("close")}),(o,s)=>(te(),ge("div",Eve,[X("div",Ave,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",Lve,Ne(e.file),1),X("p",Mve,Ne(e.name),1),Me(St,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",Nve,[e.url?(te(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,$ve)):(te(),ge("div",Ove," Something was wrong, the image cannot be resolved. "))])]))}}),Rve=zi(Pve,[["__scopeId","data-v-08ce44b7"]]),Ive={flex:"~ gap-2 items-center"},D1=tt({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ke(!1),r=ke(()=>{if(e.task.type==="test"){const c=e.task.artifacts.find(f=>f.type==="internal:failureScreenshot");if(c!==void 0)return c}return null}),o=ke(()=>r.value&&r.value.attachments.length&&ul(r.value.attachments[0]));function s(){if(r.value===null||r.value.attachments.length===0)return;const c=r.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(c)}`)}return(c,f)=>{const d=Qn("tooltip");return o.value?(te(),ge(nt,{key:0},[X("div",Ive,[st(Me(St,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:f[0]||(f[0]=h=>t.value=!0)},null,512),[[d,"View screenshot error",void 0,{bottom:!0}]]),W(ar)?ze("",!0):st((te(),We(St,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:s},null,512)),[[d,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(te(),We(I1,{key:o.value,modelValue:t.value,"onUpdate:modelValue":f[2]||(f[2]=h=>t.value=h),direction:"right"},{default:Be(()=>[Me(Rve,{file:e.task.file.filepath,name:e.task.name,url:o.value,onClose:f[1]||(f[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):ze("",!0)}}}),Dve={class:"scrolls scrolls-rounded task-error"},zve=["onClickPassive"],Fve=["innerHTML"],Hve=tt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=ke(()=>Rp(wo.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(va(t.error.diff)):void 0);function f(d){return Xce(d.file,t.filename)?iue(t.fileId,d):Pp(d.file,d.line,d.column)}return(d,h)=>{const p=Qn("tooltip");return te(),ge("div",Dve,[X("pre",null,[X("b",null,Ne(e.error.name),1),Qe(": "+Ne(e.error.message),1)]),(te(!0),ge(nt,null,yn(e.error.stacks,(g,v)=>(te(),ge("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Ne(r(g.file))+":"+Ne(g.line)+":"+Ne(g.column),1),st(X("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(g)},null,40,zve),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(te(),ge("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,Fve)):ze("",!0)])}}}),z1=zi(Hve,[["__scopeId","data-v-bd36ee9a"]]),Bve={"h-full":"",class:"scrolls"},jve=["id"],Wve={flex:"~ gap-2 items-center"},qve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Uve=["innerHTML"],Vve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Gve=tt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(s,c){return s.result?.state!=="fail"?[]:s.type==="test"?[{...s,level:c}]:[{...s,level:c},...s.tasks.flatMap(f=>r(f,c+1))]}const o=ke(()=>{const s=t.file,c=s.tasks?.flatMap(h=>r(h,0))??[],f=s.result;if(f?.errors?.[0]){const h={id:s.id,file:s,name:s.name,fullName:s.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:f};c.unshift(h)}return c.length>0?Ix(wo.value,c):c});return(s,c)=>(te(),ge("div",Bve,[o.value.length?(te(!0),ge(nt,{key:0},yn(o.value,f=>(te(),ge("div",{id:f.id,key:f.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Ot({"margin-left":`${f.result?.htmlError?.5:2*f.level+.5}rem`})},[X("div",Wve,[X("span",null,Ne(f.name),1),Me(D1,{task:f},null,8,["task"])]),f.result?.htmlError?(te(),ge("div",qve,[X("pre",{innerHTML:f.result.htmlError},null,8,Uve)])):f.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},yn(f.result.errors,(d,h)=>(te(),We(z1,{key:h,error:d,filename:e.file.name,root:W(pt).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):ze("",!0)],4)],8,jve))),128)):(te(),ge("div",Vve," All tests passed in this file "))]))}}),Kve=zi(Gve,[["__scopeId","data-v-13572615"]]);function F1(e,t){return oue(e,t)}function Uu(e){const t=pt.value.root;return`${t?yf(t,e.file):e.file}:${e.line}:${e.column}`}const Xve=["href","referrerPolicy"],Yve=["src"],Zve=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:ul(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:W(R1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,Yve)],8,Xve)):ze("",!0)}}),Jve={class:"flex flex-col gap-4"},Qve={key:0},e0e=tt({__name:"ArtifactTemplate",setup(e){const t=Wb();return(r,o)=>(te(),ge("article",Jve,[X("h1",null,[Ft(r.$slots,"title")]),W(t).message?(te(),ge("p",Qve,[Ft(r.$slots,"message")])):ze("",!0),Ft(r.$slots,"default")]))}}),H1=Symbol("tabContext"),Vu={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},t0e={class:"flex flex-col items-center gap-6"},n0e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},r0e=["id","aria-selected","aria-controls","onClick"],i0e=tt({__name:"SmallTabs",setup(e){const t=Ke(null),r=Ke([]),o=fp();return mr(H1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(te(),ge("div",t0e,[X("div",n0e,[(te(!0),ge(nt,null,yn(r.value,f=>(te(),ge("button",{id:W(Vu).tab(f.id,W(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":W(Vu).tabpanel(f.id,W(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Ne(f.title),9,r0e))),128))]),Ft(s.$slots,"default")]))}}),o0e=["id","aria-labelledby","hidden"],Jc=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=mn(H1);if(!r)throw new Error("TabPane must be used within Tabs");const o=fp(),s=ke(()=>r.activeTab.value===o);return Di(()=>{r.registerTab({...t,id:o})}),Ka(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(te(),ge("div",{id:W(Vu).tabpanel(W(o),W(r).id),role:"tabpanel","aria-labelledby":W(Vu).tab(W(o),W(r).id),hidden:!s.value,class:"max-w-full"},[Ft(c.$slots,"default")],8,o0e))}}),B1=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(r,o)=>(te(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Ot({backgroundImage:t})},[Ft(r.$slots,"default")],4))}}),s0e=["href","referrerPolicy"],l0e=["src"],Xd=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>qh(e.attachment));return(r,o)=>(te(),We(B1,null,{default:Be(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:W(R1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,l0e)],8,s0e)]),_:1}))}}),a0e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},c0e=["src"],u0e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},f0e=["src"],d0e=["id"],h0e=["for"],p0e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>qh(e.reference)),r=ke(()=>qh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ke(50),f=fp();return(d,h)=>(te(),We(B1,null,{default:Be(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Ot({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",a0e,[X("img",{src:t.value},null,8,c0e)]),X("div",u0e,[X("img",{src:r.value},null,8,f0e)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(X("input",{id:W(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,d0e),[[ww,c.value]]),X("output",{for:W(f),class:"sr-only"}," Showing "+Ne(c.value)+"% reference, "+Ne(100-c.value)+"% actual ",9,h0e)],4)]),_:1}))}}),g0e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(te(),We(e0e,null,{title:Be(()=>[...o[0]||(o[0]=[Qe(" Visual Regression ",-1)])]),message:Be(()=>[Qe(Ne(e.regression.message),1)]),default:Be(()=>[Me(i0e,null,{default:Be(()=>[t.value.diff?(te(),We(Jc,{key:t.value.diff.path,title:"Diff"},{default:Be(()=>[Me(Xd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference?(te(),We(Jc,{key:t.value.reference.path,title:"Reference"},{default:Be(()=>[Me(Xd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):ze("",!0),t.value.actual?(te(),We(Jc,{key:t.value.actual.path,title:"Actual"},{default:Be(()=>[Me(Xd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):ze("",!0),t.value.reference&&t.value.actual?(te(),We(Jc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:Be(()=>[Me(p0e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):ze("",!0)]),_:1})]),_:1}))}}),m0e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},v0e=["onClick"],y0e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},b0e=tt({__name:"Artifacts",props:{test:{}},setup(e){const t=ke(()=>{const r=[];for(const o of e.test.artifacts)switch(o.type){case"internal:toMatchScreenshot":{o.kind==="visual-regression"&&r.push({artifact:o,component:g0e,props:{regression:o}});continue}}return r});return(r,o)=>{const s=Qn("tooltip");return t.value.length?(te(),ge(nt,{key:0},[o[0]||(o[0]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ge(nt,null,yn(t.value,({artifact:c,component:f,props:d},h)=>(te(),ge("div",{key:c.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",m0e,[X("div",null,[c.location&&c.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(F1)(e.test,c.location)},[Qe(Ne(W(Uu)(c.location)),1)],8,v0e)),[[s,"Open in Editor",void 0,{bottom:!0}]]):c.location&&c.location.file!==e.test.file.filepath?(te(),ge("span",y0e,Ne(W(Uu)(c.location)),1)):ze("",!0)])]),(te(),We(wu(f),ei({ref_for:!0},d),null,16))]))),128))],64)):ze("",!0)}}}),w0e={"h-full":"",class:"scrolls"},x0e={key:0},k0e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},_0e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},S0e=["innerHTML"],T0e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},C0e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},E0e={class:"flex gap-2","overflow-hidden":""},A0e={class:"font-bold","ws-nowrap":"",truncate:""},L0e=["href","download"],M0e=["onClick"],N0e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},$0e={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},O0e={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},P0e={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},R0e={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},I0e=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:Ix(wo.value,[t.test])[0]),o=new Set(["benchmark","typecheck"]),s=ke(()=>Object.entries(t.test.meta).filter(([c])=>!o.has(c)));return(c,f)=>{const d=Qn("tooltip");return te(),ge("div",w0e,[r.value?(te(),ge("div",x0e,[X("div",k0e,[Me(D1,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(te(),ge("div",_0e,[X("pre",{innerHTML:e.test.result.htmlError},null,8,S0e)])):e.test.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},yn(e.test.result.errors,(h,p)=>(te(),We(z1,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:W(pt).root},null,8,["file-id","error","filename","root"]))),128)):ze("",!0)])])):(te(),ge("div",T0e," The test has passed without any errors ")),e.test.annotations.length?(te(),ge(nt,{key:2},[f[1]||(f[1]=X("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ge(nt,null,yn(e.test.annotations,h=>(te(),ge("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",C0e,[X("div",E0e,[X("span",A0e,Ne(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(ul)(h.attachment),download:W(P1)(h.message,h.attachment.contentType)},[...f[0]||(f[0]=[X("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,L0e)):ze("",!0)]),X("div",null,[h.location&&h.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(F1)(e.test,h.location)},[Qe(Ne(W(Uu)(h.location)),1)],8,M0e)),[[d,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(te(),ge("span",N0e,Ne(W(Uu)(h.location)),1)):ze("",!0)])]),X("div",$0e,Ne(h.message),1),Me(Zve,{annotation:h},null,8,["annotation"])]))),128))],64)):ze("",!0),Me(b0e,{test:e.test},null,8,["test"]),s.value.length?(te(),ge(nt,{key:3},[f[2]||(f[2]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",O0e,[(te(!0),ge(nt,null,yn(s.value,([h,p])=>(te(),ge(nt,{key:h},[X("div",P0e,Ne(h),1),X("pre",R0e,Ne(p),1)],64))),128))])],64)):ze("",!0)])}}}),D0e=zi(I0e,[["__scopeId","data-v-da767a0b"]]),z0e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},F0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},H0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},B0e={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},j0e={"op-50":"",truncate:""},W0e=["title"],q0e={class:"flex text-lg"},U0e={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},V0e={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},G0e={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},K0e={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},X0e=["flex-1"],Ny=tt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),r=Ke(!1),o=Ke(!1),s=Ke(!1),c=Ke(void 0),f=Ke(!0),d=ke(()=>Ci.value?ft.state.idMap.get(Ci.value):void 0),h=ke(()=>{const I=Kt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=ke(()=>Kt.value&&$p(Kt.value)),g=ke(()=>!!Kt.value?.meta?.typecheck);function v(){const I=Kt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function b(I){I==="graph"&&(o.value=!0),gn.value=I}const w=ke(()=>Xx.value?.reduce((I,{size:q})=>I+q,0)??0);function P(I){r.value=I}const A=/[/\\]node_modules[/\\]/;async function N(I=!1){if(!(s.value||h.value?.filepath===c.value&&!I)){s.value=!0,await Ct();try{const q=h.value;if(!q){s.value=!1;return}if(I||!c.value||q.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let Y=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!cr);f.value&&(ar&&(Y=typeof window.structuredClone<"u"?window.structuredClone(Y):PL(Y)),Y.inlined=Y.inlined.filter(oe=>!A.test(oe)),Y.externalized=Y.externalized.filter(oe=>!A.test(oe))),t.value=Wme(Y,q.filepath),c.value=q.filepath}b("graph")}finally{await new Promise(q=>setTimeout(q,100)),s.value=!1}}}Zw(()=>[h.value,gn.value,f.value],([,I,q],Y)=>{I==="graph"&&N(Y&&q!==Y[2])},{debounce:100,immediate:!0});const E=ke(()=>{const I=Kt.value?.file.projectName||"";return Le.colors.get(I)||su(Kt.value?.file.projectName)}),M=ke(()=>_x(E.value)),D=ke(()=>{const I=Ci.value;if(!I)return Kt.value?.name;const q=[];let Y=ft.state.idMap.get(I);for(;Y;)q.push(Y.name),Y=Y.suite;return q.reverse().join(" > ")}),C=ke(()=>{const I=Ci.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(Y=>({name:Y,description:JL.value[Y]?.description,bg:su(Y,!0),border:su(Y),text:"white"})):[]});return(I,q)=>{const Y=Qn("tooltip");return W(Kt)?(te(),ge("div",z0e,[X("div",null,[X("div",F0e,[Me($1,{state:W(Kt).result?.state,mode:W(Kt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?st((te(),ge("div",H0e,null,512)),[[Y,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),W(Kt)?.file.projectName?(te(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Ot({backgroundColor:E.value,color:M.value}),"cursor-default":""},Ne(W(Kt).file.projectName),5)):ze("",!0),X("div",B0e,[X("span",j0e,Ne(D.value),1),(te(!0),ge(nt,null,yn(C.value,oe=>st((te(),ge("span",{key:oe.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Ot({backgroundColor:oe.bg,color:oe.text,border:`1px solid ${oe.border}`}),title:oe.description,"cursor-default":"",flex:"","items-center":""},[Qe(Ne(oe.name),1)],12,W0e)),[[Y,oe.description,void 0,{bottom:!0}]])),128))]),X("div",q0e,[W(ar)?ze("",!0):st((te(),We(St,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Kt)?.filepath,onClick:v},null,8,["disabled"])),[[Y,"Open in editor",void 0,{bottom:!0}]]),W(cr)?(te(),We(xf,{key:1})):ze("",!0)])]),X("div",U0e,[X("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":W(gn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=oe=>b(null))},[...q[5]||(q[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":W(gn)==="graph"}]),onClick:q[1]||(q[1]=oe=>b("graph"))},[s.value?(te(),ge("span",V0e)):(te(),ge("span",G0e)),q[6]||(q[6]=Qe(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":W(gn)==="editor"}]),onClick:q[2]||(q[2]=oe=>b("editor"))},[q[7]||(q[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Ne(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":W(gn)==="console",op20:W(gn)!=="console"&&w.value===0}]),onClick:q[3]||(q[3]=oe=>b("console"))},[q[8]||(q[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Ne(w.value)+") ",1)],2)])]),X("div",K0e,[o.value?(te(),ge("div",{key:0,"flex-1":W(gn)==="graph"&&""},[st(Me(Cve,{modelValue:f.value,"onUpdate:modelValue":q[4]||(q[4]=oe=>f.value=oe),graph:t.value,"data-testid":"graph","project-name":W(Kt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[fo,W(gn)==="graph"&&!s.value]])],8,X0e)):ze("",!0),W(gn)==="editor"?(te(),We(ive,{key:W(Kt).id,file:W(Kt),"data-testid":"editor",onDraft:P},null,8,["file"])):W(gn)==="console"?(te(),We(tve,{key:2,file:W(Kt),"data-testid":"console"},null,8,["file"])):!W(gn)&&!d.value&&W(Kt)?(te(),We(Kve,{key:3,file:W(Kt),"data-testid":"report"},null,8,["file"])):!W(gn)&&d.value?(te(),We(D0e,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):ze("",!0)])])):ze("",!0)}}}),Y0e=""+new URL("../favicon.svg",import.meta.url).href;function Z0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let hu;function Uh(){Uh.init||(Uh.init=!0,hu=Z0e()!==-1)}var Tf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Uh(),Ct(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",hu&&this.$el.appendChild(e),e.data="about:blank",hu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!hu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const J0e=Lb();Eb("data-v-b329ee4c");const Q0e={class:"resize-observer",tabindex:"-1"};Ab();const eye=J0e((e,t,r,o,s,c)=>(te(),We("div",Q0e)));Tf.render=eye;Tf.__scopeId="data-v-b329ee4c";Tf.__file="src/components/ResizeObserver.vue";function pu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pu=function(t){return typeof t}:pu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function tye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nye(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rye(e,t,r){return t&&nye(e.prototype,t),e}function $y(e){return iye(e)||oye(e)||sye(e)||lye()}function iye(e){if(Array.isArray(e))return Vh(e)}function oye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function sye(e,t){if(e){if(typeof e=="string")return Vh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vh(e,t)}}function Vh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function lye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function cye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(c=g,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat($y(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat($y(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function j1(e,t){if(e===t)return!0;if(pu(e)==="object"){for(var r in e)if(!j1(e[r],t[r]))return!1;return!0}return!1}var uye=(function(){function e(t,r,o){tye(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return rye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=aye(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=cye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Ct(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function W1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new uye(e,o,r);e._vue_visibilityState=s}}function fye(e,t,r){var o=t.value,s=t.oldValue;if(!j1(o,s)){var c=e._vue_visibilityState;if(!o){q1(e);return}c?c.createObserver(o,r):W1(e,{value:o},r)}}function q1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var dye={beforeMount:W1,updated:fye,unmounted:q1},hye={itemsLimit:1e3},pye=/(auto|scroll)/;function U1(e,t){return e.parentNode===null?t:U1(e.parentNode,t.concat([e]))}var Yd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},gye=function(t){return Yd(t,"overflow")+Yd(t,"overflow-y")+Yd(t,"overflow-x")},mye=function(t){return pye.test(gye(t))};function Oy(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=U1(e.parentNode,[]),r=0;r<t.length;r+=1)if(mye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Gh(e){"@babel/helpers - typeof";return Gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gh(e)}var vye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function yye(){return this.items.length&&Gh(this.items[0])!=="object"}var Kh=!1;if(typeof window<"u"){Kh=!1;try{var bye=Object.defineProperty({},"passive",{get:function(){Kh=!0}});window.addEventListener("test",null,bye)}catch{}}let wye=0;var Qp={name:"RecycleScroller",components:{ResizeObserver:Tf},directives:{ObserveVisibility:dye},props:{...vye,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:yye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=nf({id:wye++,index:t,used:!0,key:o,type:s}),f=ap({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,b=this.$_unusedViews,w=this.pool,P=this.itemIndexByKey;let A,N,E,M,D;if(!p)A=N=M=D=E=0;else if(this.$_prerender)A=M=0,N=D=Math.min(this.prerender,h.length),E=null;else{const G=this.getScroll();if(t){let $=G.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const K=this.buffer;G.start-=K,G.end+=K;let O=0;if(this.$refs.before&&(O=this.$refs.before.scrollHeight,G.start-=O),this.$refs.after){const $=this.$refs.after.scrollHeight;G.end+=$}if(r===null){let $,_=0,k=p-1,R=~~(p/2),B;do B=R,$=g[R].accumulator,$<G.start?_=R:R<p-1&&g[R+1].accumulator>G.start&&(k=R),R=~~((_+k)/2);while(R!==B);for(R<0&&(R=0),A=R,E=g[p-1].accumulator,N=R;N<p&&g[N].accumulator<G.end;N++);for(N===-1?N=h.length-1:(N++,N>p&&(N=p)),M=A;M<p&&O+g[M].accumulator<G.start;M++);for(D=M;D<p&&O+g[D].accumulator<G.end;D++);}else{A=~~(G.start/r*o);const $=A%o;A-=$,N=Math.ceil(G.end/r*o),M=Math.max(0,Math.floor((G.start-O)/r*o)),D=Math.floor((G.end-O)/r*o),A<0&&(A=0),N>p&&(N=p),M<0&&(M=0),D>p&&(D=p),E=Math.ceil(p/o)*r}}N-A>hye.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let C;const I=A<=this.$_endIndex&&N>=this.$_startIndex;if(I)for(let G=0,K=w.length;G<K;G++)C=w[G],C.nr.used&&(e&&(C.nr.index=P[C.item[d]]),(C.nr.index==null||C.nr.index<A||C.nr.index>=N)&&this.unuseView(C));const q=I?null:new Map;let Y,oe,J;for(let G=A;G<N;G++){Y=h[G];const K=d?Y[d]:Y;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${d}')`);if(C=v.get(K),!r&&!g[G].size){C&&this.unuseView(C);continue}oe=Y[f];let O=b.get(oe),$=!1;if(!C)I?O&&O.length?C=O.pop():C=this.addView(w,G,Y,K,oe):(J=q.get(oe)||0,(!O||J>=O.length)&&(C=this.addView(w,G,Y,K,oe),this.unuseView(C,!0),O=b.get(oe)),C=O[J],q.set(oe,J+1)),v.delete(C.nr.key),C.nr.used=!0,C.nr.index=G,C.nr.key=K,C.nr.type=oe,v.set(K,C),$=!0;else if(!C.nr.used&&(C.nr.used=!0,$=!0,O)){const _=O.indexOf(C);_!==-1&&O.splice(_,1)}C.item=Y,$&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(C.position=g[G-1].accumulator,C.offset=0):(C.position=Math.floor(G/o)*r,C.offset=G%o*s)}return this.$_startIndex=A,this.$_endIndex=N,this.emitUpdate&&this.$emit("update",A,N,M,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Oy(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Kh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=Oy(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const xye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},kye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function _ye(e,t,r,o,s,c){const f=es("ResizeObserver"),d=Qn("observe-visibility");return st((te(),ge("div",{class:ot(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(te(),ge("div",xye,[Ft(e.$slots,"before")],512)):ze("v-if",!0),(te(),We(wu(r.listTag),{ref:"wrapper",style:Ot({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:Be(()=>[(te(!0),ge(nt,null,yn(s.pool,h=>(te(),We(wu(r.itemTag),ei({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},mT(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:Be(()=>[Ft(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Ft(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ge("div",kye,[Ft(e.$slots,"after")],512)):ze("v-if",!0),Me(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}Qp.render=_ye;Qp.__file="src/components/RecycleScroller.vue";function Sye(e,t,r){const o=ke(()=>Ch.value?!1:!Je.onlyTests),s=ke(()=>Or.value===""),c=Ke(Or.value),f=ke(()=>Nr.value==="default");yt(()=>Th.value,w=>{!w&&(Nr.value==="asc"||Nr.value==="desc")&&(Nr.value="default")}),Zw(()=>Or.value,w=>{c.value=w?.trim()??""},{debounce:256});function d(w){Or.value="",w&&e.value?.focus()}function h(w){Je.failed=!1,Je.success=!1,Je.skipped=!1,Je.slow=!1,Je.onlyTests=!1,w&&e.value?.focus()}function p(w){Gs.value=gl,w&&t.value?.focus()}function g(w){Nr.value="default",w&&r.value?.focus()}function v(){h(!1),d(!0),p(!1),g(!1)}function b(w,P,A,N,E,M,D,C){sl.value&&(zt.value.search=w?.trim()??"",zt.value.failed=P,zt.value.success=A,zt.value.skipped=N,zt.value.slow=E,zt.value.onlyTests=M,zt.value.project=D,zt.value.projectSort=C==="default"?void 0:C)}return yt(()=>[c.value,Je.failed,Je.success,Je.skipped,Je.slow,Je.onlyTests,Gs.value,Nr.value],([w,P,A,N,E,M,D,C])=>{b(w,P,A,N,E,M,D,C),Le.filterNodes()},{flush:"post"}),yt(()=>Hr.value.length,w=>{w&&(zt.value.expandAll=void 0)},{flush:"post"}),{initialized:sl,filter:Je,search:Or,disableFilter:o,isFiltered:Tx,isFilteredByStatus:Ch,disableClearSearch:s,clearAll:v,clearSearch:d,clearFilter:h,filteredFiles:bf,testsTotal:qL,uiEntries:Jn,searchMatcher:ro,enableProjects:Th,disableClearProjects:HL,currentProject:Gs,currentProjectName:Lp,clearProject:p,projectSort:Nr,clearProjectSort:g,disableClearProjectSort:f}}const Tye=["disabled"],Cye={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},ea=tt({__name:"FilterStatus",props:Sa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=af(e,"modelValue");function r(){e.disabled||(t.value=!t.value)}return(o,s)=>(te(),ge("label",ei({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},o.$attrs,{onClick:ru(r,["prevent"])}),[X("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(X("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>t.value=c),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,Tye),[[xw,t.value]]),X("span",Cye,Ne(e.label),1)],16))}}),Eye=["open"],Aye=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(r,o)=>(te(),ge("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Ft(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Ft(r.$slots,"default")],40,Eye))}}),Lye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Mye=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(te(),ge("button",Lye,[X("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Nye=["aria-label","data-current"],$ye={key:1,"w-4":""},Oye={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},Pye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Rye={"text-sm":"",truncate:"","font-light":""},Iye=["innerHTML"],Dye={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},zye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Fye={key:1},Hye=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(ar)return!1;const N=t.value;return N&&$p(N)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Le.collapseNode(e.taskId):Le.expandNode(e.taskId)}async function s(N){e.onItemClick?.(N),ra.value&&(Du.value=!0,await Ct()),e.type==="file"?await Hp([N.file]):await Bue(N)}function c(N){return ft.rpc.updateSnapshot(N.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(N,E)=>`${e.taskId}-${E}`)),d=ke(()=>{const N=f.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${N.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=ke(()=>pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Sx(e.name)),g=ke(()=>{const N=WL.value,E=p.value;return N?E.replace(N,M=>`<span class="highlight">${M}</span>`):E}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function P(){const N=t.value;e.type==="file"?e.onItemClick?.(N):Fx(N)}const A=ke(()=>_x(e.projectNameColor));return(N,E)=>{const M=Qn("tooltip");return t.value?(te(),ge("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Ot(d.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:E[2]||(E[2]=D=>o())},[e.indent>0?(te(!0),ge(nt,{key:0},yn(f.value,D=>(te(),ge("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):ze("",!0),e.type==="file"||e.type==="suite"?(te(),ge("div",$ye,[X("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):ze("",!0),Me($1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",Oye,[e.type==="file"&&e.typecheck?st((te(),ge("div",Pye,null,512)),[[M,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):ze("",!0),X("span",Rye,[e.type==="file"&&e.projectName?(te(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Ot({backgroundColor:e.projectNameColor,color:A.value})},Ne(e.projectName),5)):ze("",!0),X("span",{class:ot(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:g.value},null,10,Iye)]),typeof e.duration=="number"?(te(),ge("span",{key:1,text:"xs",class:ot(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Ne(e.duration>0?e.duration:"< 1")+"ms ",3)):ze("",!0)]),X("div",Dye,[!W(ar)&&r.value&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(Mye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=ru(D=>c(t.value),["prevent","stop"]))},null,512)),[[M,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),Me(W(so),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:Be(()=>[v.value?(te(),ge("div",zye,[E[5]||(E[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Qe(Ne(b.value)+": this feature is not available, you have disabled ",1),E[3]||(E[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=Qe(" in your configuration file.",-1))]),E[6]||(E[6]=X("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(te(),ge("div",Fye,Ne(b.value),1))]),default:Be(()=>[Me(St,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:ru(P,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(ar)?ze("",!0):st((te(),We(St,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:W(pt).api?.allowExec===!1,onClick:E[1]||(E[1]=ru(D=>s(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[M,h.value,void 0,{bottom:!0}]])])],12,Nye)):ze("",!0)}}}),Bye=zi(Hye,[["__scopeId","data-v-7f38aded"]]),jye={h:"full",flex:"~ col"},Wye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},qye={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},Uye={class:"relative flex-1"},Vye=["value"],Gye=["value"],Kye={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},Xye={class:"relative flex-1"},Yye={key:0,value:"asc",class:"text-base bg-base"},Zye={key:1,value:"desc",class:"text-base bg-base"},Jye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Qye=["op"],ebe={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},tbe={"min-w-full":"",flex:"~ gap-2 items-center"},nbe={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},rbe={"text-red-700":"","dark:text-red-500":""},ibe={"text-yellow-700":"","dark:text-yellow-500":""},obe={"text-green-700":"","dark:text-green-500":""},sbe={class:"text-purple-700 dark:text-purple-400"},lbe={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},abe={key:0,"text-red":"","text-center":""},cbe={key:1,op30:""},ube=["disabled"],fbe=["disabled"],dbe={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},hbe=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>pt.value.includeTaskLocation),s=ke(()=>{const $=pt.value.slowTestThreshold;return typeof $=="number"?` (>${$}ms)`:""}),c=Ke(),f=Ke(),d=Ke(),{initialized:h,filter:p,search:g,disableFilter:v,isFiltered:b,isFilteredByStatus:w,disableClearSearch:P,clearAll:A,clearSearch:N,clearFilter:E,filteredFiles:M,testsTotal:D,uiEntries:C,enableProjects:I,disableClearProjects:q,currentProject:Y,currentProjectName:oe,clearProject:J,clearProjectSort:G,disableClearProjectSort:K,searchMatcher:O}=Sye(c,f,d);return($,_)=>{const k=Qn("tooltip");return te(),ge("div",jye,[X("div",null,[X("div",Wye,[Ft($.$slots,"header",{filteredFiles:W(b)||W(w)?W(M):void 0})]),W(I)?(te(),ge("div",qye,[_[19]||(_[19]=X("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),_[20]||(_[20]=X("label",{for:"project-select","text-sm":""}," Projects ",-1)),X("div",Uye,[st(X("select",{id:"project-select",ref_key:"selectProjectRef",ref:f,"onUpdate:modelValue":_[0]||(_[0]=R=>Mt(Y)?Y.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[X("option",{value:W(gl),class:"text-base bg-base"}," All Projects ",8,Vye),(te(!0),ge(nt,null,yn(W(Fp),R=>(te(),ge("option",{key:R,value:R,class:"text-base bg-base"},Ne(R),9,Gye))),128))],512),[[Fv,W(Y)]]),_[18]||(_[18]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Me(St,{disabled:W(q),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:_[1]||(_[1]=R=>W(J)(!0))},null,8,["disabled"]),[[k,"Clear project filter",void 0,{bottom:!0}]])])):ze("",!0),X("div",Kye,[_[25]||(_[25]=X("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),_[26]||(_[26]=X("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),X("div",Xye,[st(X("select",{id:"project-sort",ref_key:"sortProjectRef",ref:d,"onUpdate:modelValue":_[2]||(_[2]=R=>Mt(Nr)?Nr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[_[21]||(_[21]=X("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),_[22]||(_[22]=X("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),_[23]||(_[23]=X("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),W(I)?(te(),ge("option",Yye," Project A-Z ")):ze("",!0),W(I)?(te(),ge("option",Zye," Project Z-A ")):ze("",!0)],512),[[Fv,W(Nr)]]),_[24]||(_[24]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Me(St,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:_[3]||(_[3]=R=>W(G)(!0))},null,8,["disabled"]),[[k,"Reset sort",void 0,{bottom:!0}]])]),X("div",Jye,[_[27]||(_[27]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(X("input",{ref_key:"searchBox",ref:c,"onUpdate:modelValue":_[4]||(_[4]=R=>Mt(g)?g.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(g).length?"100":"50",onKeydown:[_[5]||(_[5]=ph(R=>W(N)(!1),["esc"])),_[6]||(_[6]=ph(R=>r("run",W(b)||W(w)?W(M):void 0),["enter"]))]},null,40,Qye),[[ww,W(g)]]),st(Me(St,{disabled:W(P),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:_[7]||(_[7]=R=>W(N)(!0))},null,8,["disabled"]),[[k,"Clear search",void 0,{bottom:!0}]])]),X("div",ebe,[X("div",tbe,[_[28]||(_[28]=X("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),_[29]||(_[29]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Me(St,{disabled:W(v),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:_[8]||(_[8]=R=>W(E)(!1))},null,8,["disabled"]),[[k,"Clear Filter",void 0,{bottom:!0}]])]),Me(ea,{modelValue:W(p).failed,"onUpdate:modelValue":_[9]||(_[9]=R=>W(p).failed=R),label:"Fail"},null,8,["modelValue"]),Me(ea,{modelValue:W(p).success,"onUpdate:modelValue":_[10]||(_[10]=R=>W(p).success=R),label:"Pass"},null,8,["modelValue"]),Me(ea,{modelValue:W(p).skipped,"onUpdate:modelValue":_[11]||(_[11]=R=>W(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Me(ea,{modelValue:W(p).onlyTests,"onUpdate:modelValue":_[12]||(_[12]=R=>W(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Me(ea,{modelValue:W(p).slow,"onUpdate:modelValue":_[13]||(_[13]=R=>W(p).slow=R),label:`Slow${s.value}`},null,8,["modelValue","label"])])]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:_[17]||(_[17]=(...R)=>W(l0)&&W(l0)(...R))},[Me(Aye,null,gT({default:Be(()=>[(W(b)||W(w)||W(oe))&&W(C).length===0?(te(),ge(nt,{key:0},[W(h)?(te(),ge("div",lbe,[W(O).error?(te(),ge("div",abe,Ne(W(O).error),1)):(te(),ge("div",cbe," No matched test ")),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(P)?null:"hover:op100"),disabled:W(P),onClickPassive:_[14]||(_[14]=R=>W(N)(!0))}," Clear Search ",42,ube),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(v)?null:"hover:op100"),disabled:W(v),onClickPassive:_[15]||(_[15]=R=>W(E)(!0))}," Clear Filter ",42,fbe),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:_[16]||(_[16]=(...R)=>W(A)&&W(A)(...R))}," Clear All ",32)])):(te(),ge("div",dbe,[..._[32]||(_[32]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(Qp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(C),buffer:100},{default:Be(({item:R})=>[Me(Bye,{class:ot(["h-28px m-0 p-0",W(Ci)===R.id||!W(Ci)&&W(xo)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:W(xo)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(h)?{name:"summary",fn:Be(()=>[X("div",nbe,[X("span",rbe," FAIL ("+Ne(W(D).failed)+") ",1),_[30]||(_[30]=X("span",null,"/",-1)),X("span",ibe," RUNNING ("+Ne(W(D).running)+") ",1),X("span",obe," PASS ("+Ne(W(D).success)+") ",1),_[31]||(_[31]=X("span",null,"/",-1)),X("span",sbe," SKIP ("+Ne(W(p).onlyTests?W(D).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),pbe={class:"flex text-lg"},gbe=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>wo.value?"light":"dark");async function o(d){pt.value.api?.allowExec!==!1&&(ra.value&&(Du.value=!0,await Ct(),ko.value&&(zu(!0),await Ct())),d?.length?await Hp(d):await Fue())}function s(){Le.collapseAllNodes()}function c(){Le.expandAllNodes()}function f(d){return pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":d?d.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(d,h)=>{const p=Qn("tooltip");return te(),We(hbe,{border:"r base","on-item-click":W(cue),nested:!0,onRun:o},{header:Be(({filteredFiles:g})=>[h[8]||(h[8]=X("img",{"w-6":"","h-6":"",src:Y0e,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",pbe,[st(Me(St,{title:"Collapse tests",disabled:!W(sl),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>s())},null,8,["disabled"]),[[fo,!W(L0)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Me(St,{disabled:!W(sl),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>c())},null,8,["disabled"]),[[fo,W(L0)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Me(St,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(zu)(!0))},null,512),[[fo,W(Mh)&&!W(ra)||!W(Ks)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Mh)&&!W(ra)?(te(),We(W(so),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:Be(()=>[...h[6]||(h[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:Be(()=>[h[7]||(h[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):ze("",!0),W(ra)?st((te(),We(St,{key:1,disabled:W(Du),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(uue)())},null,8,["disabled"])),[[fo,!W(ko)],[p,"Coverage",void 0,{bottom:!0}]]):ze("",!0),W(Le).summary.failedSnapshot&&!W(ar)&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(St,{key:2,icon:"i-carbon:result-old",disabled:!W(Le).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W(Le).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ze("",!0),W(ar)?ze("",!0):st((te(),We(St,{key:3,disabled:g?.length===0||!W(pt).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>o(g)},null,8,["disabled","onClick"])),[[p,f(g),void 0,{bottom:!0}]]),st(Me(St,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W(IL)())},null,512),[[p,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),mbe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},vbe=tt({__name:"ProgressBar",setup(e){const{width:t}=ox(),r=ke(()=>[Le.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!zs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesSuccess/d:0}),s=ke(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesFailed/d:0}),c=ke(()=>Le.summary.files-Le.summary.filesFailed-Le.summary.filesSuccess),f=ke(()=>{const d=Le.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(te(),ge("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(r.value)},[X("div",mbe,[X("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:ot(r.value),style:Ot(`width: ${s.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:ot(r.value),style:Ot(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:ot(r.value),style:Ot(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),ybe=zi(vbe,[["__scopeId","data-v-d5dc96ee"]]),bbe={"h-screen":"","w-screen":"",overflow:"hidden"},wbe={key:1,flex:"~ col","h-full":""},xbe={"h-full":"","overflow-hidden":""},kbe=tt({__name:"index",setup(e){const t=aue(),r=jc(({panes:g})=>{h(),d(g)},0),o=jc(({panes:g})=>{g.forEach((v,b)=>{Xs.value[b]=v.size}),f(g),p()},0),s=jc(({panes:g})=>{g.forEach((v,b)=>{Jo.value[b]=v.size}),d(g),p()},0),c=jc(({panes:g})=>{f(g),h()},0);function f(g){an.navigation=g[0].size,g[1]&&(an.details.size=g[1].size)}function d(g){an.details.browser=g[0].size,g[1]&&(an.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ge(nt,null,[Me(ybe),X("div",bbe,[Me(W(h0),{class:"pt-4px",onResized:W(o),onResize:W(c)},{default:Be(()=>[Me(W(Uc),{size:W(Xs)[0]},{default:Be(()=>[Me(gbe)]),_:1},8,["size"]),Me(W(Uc),{size:W(Xs)[1]},{default:Be(()=>[W(cr)?(te(),ge("div",wbe,[Me(W(h0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(kn)==="bottom",class:ot(W(kn)==="bottom"&&!W(Li)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(r),onResized:W(s)},{default:Be(()=>[Me(W(Uc),{size:W(Jo)[0],"min-size":"10"},{default:Be(()=>[v[0]||(nl(-1,!0),(v[0]=Me(Jue)).cacheIndex=0,nl(1),v[0])]),_:1},8,["size"]),W(Li)?(te(),We(W(Uc),{key:0,size:W(Jo)[1],"min-size":"10"},{default:Be(()=>[X("div",xbe,[W(t)?(te(),We(oy,{key:"summary"})):W(ko)?(te(),We(iy,{key:"coverage"})):(te(),We(Ny,{key:"details"}))])]),_:1},8,["size"])):ze("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(kn)==="bottom"&&!W(Li)?(te(),We(efe,{key:0})):ze("",!0)])):(te(),We(fC,{key:"ui-detail"},{default:Be(()=>[W(t)?(te(),We(oy,{key:"summary"})):W(ko)?(te(),We(iy,{key:"coverage"})):(te(),We(Ny,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Me(rfe)],64))}}),_be=[{name:"index",path:"/",component:kbe,props:!0}];/*!
52
+ * vue-router v5.0.3
53
+ * (c) 2026 Eduardo San Martin Morote
54
+ * @license MIT
55
+ */const Ds=typeof document<"u";function V1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Sbe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&V1(e.default)}const kt=Object.assign;function Zd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Br(s)?s.map(e):e(s)}return r}const ba=()=>{},Br=Array.isArray;function Py(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}let Wt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const G1=Symbol("");Wt.MATCHER_NOT_FOUND+"",Wt.NAVIGATION_GUARD_REDIRECT+"",Wt.NAVIGATION_ABORTED+"",Wt.NAVIGATION_CANCELLED+"",Wt.NAVIGATION_DUPLICATED+"";function fl(e,t){return kt(new Error,{type:e,[G1]:!0},t)}function yi(e,t){return e instanceof Error&&G1 in e&&(t==null||!!(e.type&t))}const Tbe=["params","query","hash"];function Cbe(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of Tbe)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}const Ebe=Symbol(""),Ry=Symbol(""),eg=Symbol(""),K1=Symbol(""),Xh=Symbol("");/*!
56
+ * vue-router v5.0.3
57
+ * (c) 2026 Eduardo San Martin Morote
58
+ * @license MIT
59
+ */const X1=/#/g,Abe=/&/g,Lbe=/\//g,Mbe=/=/g,Nbe=/\?/g,Y1=/\+/g,$be=/%5B/g,Obe=/%5D/g,Z1=/%5E/g,Pbe=/%60/g,J1=/%7B/g,Rbe=/%7C/g,Q1=/%7D/g,Ibe=/%20/g;function tg(e){return e==null?"":encodeURI(""+e).replace(Rbe,"|").replace($be,"[").replace(Obe,"]")}function Dbe(e){return tg(e).replace(J1,"{").replace(Q1,"}").replace(Z1,"^")}function Yh(e){return tg(e).replace(Y1,"%2B").replace(Ibe,"+").replace(X1,"%23").replace(Abe,"%26").replace(Pbe,"`").replace(J1,"{").replace(Q1,"}").replace(Z1,"^")}function zbe(e){return Yh(e).replace(Mbe,"%3D")}function Fbe(e){return tg(e).replace(X1,"%23").replace(Nbe,"%3F")}function Hbe(e){return Fbe(e).replace(Lbe,"%2F")}function Wa(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Bbe=/\/$/,jbe=e=>e.replace(Bbe,"");function Jd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=Vbe(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Wa(f)}}function Wbe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Iy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qbe(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&dl(t.matched[o],r.matched[s])&&ek(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ek(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!Ube(e[r],t[r]))return!1;return!0}function Ube(e,t){return Br(e)?Dy(e,t):Br(t)?Dy(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Dy(e,t){return Br(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Vbe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const eo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Zh=(function(e){return e.pop="pop",e.push="push",e})({}),Qd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Gbe(e){if(!e)if(Ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jbe(e)}const Kbe=/^[^#]+#/;function Xbe(e,t){return e.replace(Kbe,"#")+t}function Ybe(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Cf=()=>({left:window.scrollX,top:window.scrollY});function Zbe(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=Ybe(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zy(e,t){return(history.state?history.state.position-t:-1)+e}const Jh=new Map;function Jbe(e,t){Jh.set(e,t)}function Qbe(e){const t=Jh.get(e);return Jh.delete(e),t}function ewe(e){return typeof e=="string"||e&&typeof e=="object"}function tk(e){return typeof e=="string"||typeof e=="symbol"}function twe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(Y1," "),c=s.indexOf("="),f=Wa(c<0?s:s.slice(0,c)),d=c<0?null:Wa(s.slice(c+1));if(f in t){let h=t[f];Br(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function Fy(e){let t="";for(let r in e){const o=e[r];if(r=zbe(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Br(o)?o.map(s=>s&&Yh(s)):[o&&Yh(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function nwe(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Br(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}function ta(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function co(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(fl(Wt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):ewe(b)?h(fl(Wt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function eh(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(V1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(co(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=Sbe(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&co(b,r,o,f,d,s)()}))}}return c}function rwe(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>dl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>dl(p,h))||s.push(h))}return[r,o,s]}/*!
60
+ * vue-router v5.0.3
61
+ * (c) 2026 Eduardo San Martin Morote
62
+ * @license MIT
63
+ */let iwe=()=>location.protocol+"//"+location.host;function nk(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),Iy(d,"")}return Iy(r,e)+o+s}function owe(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=nk(e,location),P=r.value,A=t.value;let N=0;if(b){if(r.value=w,t.value=b,f&&f===P){f=null;return}N=A?b.position-A.position:0}else o(w);s.forEach(E=>{E(r.value,P,{delta:N,type:Zh.pop,direction:N?N>0?Qd.forward:Qd.back:Qd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const P=s.indexOf(b);P>-1&&s.splice(P,1)};return c.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(kt({},b.state,{scroll:Cf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function Hy(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Cf():null}}function swe(e){const{history:t,location:r}=window,o={value:nk(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:iwe()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](b)}}function f(h,p){c(h,kt({},t.state,Hy(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=kt({},s.value,t.state,{forward:h,scroll:Cf()});c(g.current,g,!0),c(h,kt({},Hy(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function lwe(e){e=Gbe(e);const t=swe(e),r=owe(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=kt({location:"",base:e,go:o,createHref:Xbe.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function awe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lwe(e)}let Ko=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var sn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(sn||{});const cwe={type:Ko.Static,value:""},uwe=/[a-zA-Z0-9_]/;function fwe(e){if(!e)return[[]];if(e==="/")return[[cwe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=sn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===sn.Static?c.push({type:Ko.Static,value:p}):r===sn.Param||r===sn.ParamRegExp||r===sn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Ko.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==sn.ParamRegExp){o=r,r=sn.EscapeNext;continue}switch(r){case sn.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=sn.Param):b();break;case sn.EscapeNext:b(),r=o;break;case sn.Param:h==="("?r=sn.ParamRegExp:uwe.test(h)?b():(v(),r=sn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case sn.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=sn.ParamRegExpEnd:g+=h;break;case sn.ParamRegExpEnd:v(),r=sn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===sn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}const By="[^/]+?",dwe={sensitive:!1,strict:!1,start:!0,end:!0};var In=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(In||{});const hwe=/[.+*?^${}()[\]/\\]/g;function pwe(e,t){const r=kt({},dwe,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const g=p.length?[]:[In.Root];r.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const b=p[v];let w=In.Segment+(r.sensitive?In.BonusCaseSensitive:0);if(b.type===Ko.Static)v||(s+="/"),s+=b.value.replace(hwe,"\\$&"),w+=In.Static;else if(b.type===Ko.Param){const{value:P,repeatable:A,optional:N,regexp:E}=b;c.push({name:P,repeatable:A,optional:N});const M=E||By;if(M!==By){w+=In.BonusCustomRegExp;try{new RegExp(`(${M})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${P}" (${M}): `+C.message)}}let D=A?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;v||(D=N&&p.length<2?`(?:/${D})`:"/"+D),N&&(D+="?"),s+=D,w+=In.Dynamic,N&&(w+=In.BonusOptional),A&&(w+=In.BonusRepeatable),M===".*"&&(w+=In.BonusWildcard)}g.push(w)}o.push(g)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=In.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const g=p.match(f),v={};if(!g)return null;for(let b=1;b<g.length;b++){const w=g[b]||"",P=c[b-1];v[P.name]=w&&P.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const b of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of b)if(w.type===Ko.Static)g+=w.value;else if(w.type===Ko.Param){const{value:P,repeatable:A,optional:N}=w,E=P in p?p[P]:"";if(Br(E)&&!A)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const M=Br(E)?E.join("/"):E;if(!M)if(N)b.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${P}"`);g+=M}}return g||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function gwe(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===In.Static+In.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===In.Static+In.Segment?1:-1:0}function rk(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=gwe(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(jy(o))return 1;if(jy(s))return-1}return s.length-o.length}function jy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const mwe={strict:!1,end:!0,sensitive:!1};function vwe(e,t,r){const o=pwe(fwe(e.path),r),s=kt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function ywe(e,t){const r=[],o=new Map;t=Py(mwe,t);function s(v){return o.get(v)}function c(v,b,w){const P=!w,A=qy(v);A.aliasOf=w&&w.record;const N=Py(t,v),E=[A];if("alias"in v){const C=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of C)E.push(qy(kt({},A,{components:w?w.record.components:A.components,path:I,aliasOf:w?w.record:A})))}let M,D;for(const C of E){const{path:I}=C;if(b&&I[0]!=="/"){const q=b.record.path,Y=q[q.length-1]==="/"?"":"/";C.path=b.record.path+(I&&Y+I)}if(M=vwe(C,b,N),w?w.alias.push(M):(D=D||M,D!==M&&D.alias.push(M),P&&v.name&&!Uy(M)&&f(v.name)),ik(M)&&h(M),A.children){const q=A.children;for(let Y=0;Y<q.length;Y++)c(q[Y],M,w&&w.children[Y])}w=w||M}return D?()=>{f(D)}:ba}function f(v){if(tk(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=xwe(v,r);r.splice(b,0,v),v.record.name&&!Uy(v)&&o.set(v.record.name,v)}function p(v,b){let w,P={},A,N;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw fl(Wt.MATCHER_NOT_FOUND,{location:v});N=w.record.name,P=kt(Wy(b.params,w.keys.filter(D=>!D.optional).concat(w.parent?w.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Wy(v.params,w.keys.map(D=>D.name))),A=w.stringify(P)}else if(v.path!=null)A=v.path,w=r.find(D=>D.re.test(A)),w&&(P=w.parse(A),N=w.record.name);else{if(w=b.name?o.get(b.name):r.find(D=>D.re.test(b.path)),!w)throw fl(Wt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});N=w.record.name,P=kt({},b.params,v.params),A=w.stringify(P)}const E=[];let M=w;for(;M;)E.unshift(M.record),M=M.parent;return{name:N,path:A,params:P,matched:E,meta:wwe(E)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function Wy(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function qy(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bwe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function bwe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function Uy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wwe(e){return e.reduce((t,r)=>kt(t,r.meta),{})}function xwe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rk(e,t[c])<0?o=c:r=c+1}const s=kwe(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function kwe(e){let t=e;for(;t=t.parent;)if(ik(t)&&rk(e,t)===0)return t}function ik({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Vy(e){const t=mn(eg),r=mn(K1),o=ke(()=>{const h=W(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(dl.bind(null,g));if(b>-1)return b;const w=Gy(h[p-2]);return p>1&&Gy(g)===w&&v[v.length-1].path!==w?v.findIndex(dl.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&Ewe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&ek(r.params,o.value.params));function d(h={}){if(Cwe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(ba);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function _we(e){return e.length===1?e[0]:e}const Swe=tt({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"},viewTransition:Boolean},useLink:Vy,setup(e,{slots:t}){const r=sr(Vy(e)),{options:o}=mn(eg),s=ke(()=>({[Ky(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Ky(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&_we(t.default(r));return e.custom?c:Ya("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),Twe=Swe;function Cwe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ewe(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Br(s)||s.length!==o.length||o.some((c,f)=>c.valueOf()!==s[f].valueOf()))return!1}return!0}function Gy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ky=(e,t,r)=>e??t??r,Awe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=mn(Xh),s=ke(()=>e.route||o.value),c=mn(Ry,0),f=ke(()=>{let p=W(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);mr(Ry,ke(()=>f.value+1)),mr(Ebe,d),mr(Xh,s);const h=Ke();return yt(()=>[h.value,d.value,e.name],([p,g,v],[b,w,P])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!dl(g,w)||!b)&&(g.enterCallbacks[v]||[]).forEach(A=>A(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return Xy(r.default,{Component:b,route:p});const w=v.props[g],P=w?w===!0?p.params:typeof w=="function"?w(p):w:null,N=Ya(b,kt({},P,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Xy(r.default,{Component:N,route:p})||N}}});function Xy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Lwe=Awe;function Mwe(e){const t=ywe(e.routes,e),r=e.parseQuery||twe,o=e.stringifyQuery||Fy,s=e.history,c=ta(),f=ta(),d=ta(),h=qt(eo);let p=eo;Ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zd.bind(null,F=>""+F),v=Zd.bind(null,Hbe),b=Zd.bind(null,Wa);function w(F,Z){let re,le;return tk(F)?(re=t.getRecordMatcher(F),le=Z):le=F,t.addRoute(le,re)}function P(F){const Z=t.getRecordMatcher(F);Z&&t.removeRoute(Z)}function A(){return t.getRoutes().map(F=>F.record)}function N(F){return!!t.getRecordMatcher(F)}function E(F,Z){if(Z=kt({},Z||h.value),typeof F=="string"){const ee=Jd(r,F,Z.path),de=t.resolve({path:ee.path},Z),he=s.createHref(ee.fullPath);return kt(ee,de,{params:b(de.params),hash:Wa(ee.hash),redirectedFrom:void 0,href:he})}let re;if(F.path!=null)re=kt({},F,{path:Jd(r,F.path,Z.path).path});else{const ee=kt({},F.params);for(const de in ee)ee[de]==null&&delete ee[de];re=kt({},F,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ce=F.hash||"";le.params=g(b(le.params));const z=Wbe(o,kt({},F,{hash:Dbe(ce),path:le.path})),j=s.createHref(z);return kt({fullPath:z,hash:ce,query:o===Fy?nwe(F.query):F.query||{}},le,{redirectedFrom:void 0,href:j})}function M(F){return typeof F=="string"?Jd(r,F,h.value.path):kt({},F)}function D(F,Z){if(p!==F)return fl(Wt.NAVIGATION_CANCELLED,{from:Z,to:F})}function C(F){return Y(F)}function I(F){return C(kt(M(F),{replace:!0}))}function q(F,Z){const re=F.matched[F.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ce=typeof le=="function"?le(F,Z):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=M(ce):{path:ce},ce.params={}),kt({query:F.query,hash:F.hash,params:ce.path!=null?{}:F.params},ce)}}function Y(F,Z){const re=p=E(F),le=h.value,ce=F.state,z=F.force,j=F.replace===!0,ee=q(re,le);if(ee)return Y(kt(M(ee),{state:typeof ee=="object"?kt({},ce,ee.state):ce,force:z,replace:j}),Z||re);const de=re;de.redirectedFrom=Z;let he;return!z&&qbe(o,le,re)&&(he=fl(Wt.NAVIGATION_DUPLICATED,{to:de,from:le}),je(le,le,!0,!1)),(he?Promise.resolve(he):G(de,le)).catch(me=>yi(me)?yi(me,Wt.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,de,le)).then(me=>{if(me){if(yi(me,Wt.NAVIGATION_GUARD_REDIRECT))return Y(kt({replace:j},M(me.to),{state:typeof me.to=="object"?kt({},ce,me.to.state):ce,force:z}),Z||de)}else me=O(de,le,!0,j,ce);return K(de,le,me),me})}function oe(F,Z){const re=D(F,Z);return re?Promise.reject(re):Promise.resolve()}function J(F){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function G(F,Z){let re;const[le,ce,z]=rwe(F,Z);re=eh(le.reverse(),"beforeRouteLeave",F,Z);for(const ee of le)ee.leaveGuards.forEach(de=>{re.push(co(de,F,Z))});const j=oe.bind(null,F,Z);return re.push(j),Pe(re).then(()=>{re=[];for(const ee of c.list())re.push(co(ee,F,Z));return re.push(j),Pe(re)}).then(()=>{re=eh(ce,"beforeRouteUpdate",F,Z);for(const ee of ce)ee.updateGuards.forEach(de=>{re.push(co(de,F,Z))});return re.push(j),Pe(re)}).then(()=>{re=[];for(const ee of z)if(ee.beforeEnter)if(Br(ee.beforeEnter))for(const de of ee.beforeEnter)re.push(co(de,F,Z));else re.push(co(ee.beforeEnter,F,Z));return re.push(j),Pe(re)}).then(()=>(F.matched.forEach(ee=>ee.enterCallbacks={}),re=eh(z,"beforeRouteEnter",F,Z,J),re.push(j),Pe(re))).then(()=>{re=[];for(const ee of f.list())re.push(co(ee,F,Z));return re.push(j),Pe(re)}).catch(ee=>yi(ee,Wt.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(F,Z,re){d.list().forEach(le=>J(()=>le(F,Z,re)))}function O(F,Z,re,le,ce){const z=D(F,Z);if(z)return z;const j=Z===eo,ee=Ds?history.state:{};re&&(le||j?s.replace(F.fullPath,kt({scroll:j&&ee&&ee.scroll},ce)):s.push(F.fullPath,ce)),h.value=F,je(F,Z,re,j),_e()}let $;function _(){$||($=s.listen((F,Z,re)=>{if(!He.listening)return;const le=E(F),ce=q(le,He.currentRoute.value);if(ce){Y(kt(ce,{replace:!0,force:!0}),le).catch(ba);return}p=le;const z=h.value;Ds&&Jbe(zy(z.fullPath,re.delta),Cf()),G(le,z).catch(j=>yi(j,Wt.NAVIGATION_ABORTED|Wt.NAVIGATION_CANCELLED)?j:yi(j,Wt.NAVIGATION_GUARD_REDIRECT)?(Y(kt(M(j.to),{force:!0}),le).then(ee=>{yi(ee,Wt.NAVIGATION_ABORTED|Wt.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===Zh.pop&&s.go(-1,!1)}).catch(ba),Promise.reject()):(re.delta&&s.go(-re.delta,!1),ae(j,le,z))).then(j=>{j=j||O(le,z,!1),j&&(re.delta&&!yi(j,Wt.NAVIGATION_CANCELLED)?s.go(-re.delta,!1):re.type===Zh.pop&&yi(j,Wt.NAVIGATION_ABORTED|Wt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),K(le,z,j)}).catch(ba)}))}let k=ta(),R=ta(),B;function ae(F,Z,re){_e(F);const le=R.list();return le.length?le.forEach(ce=>ce(F,Z,re)):console.error(F),Promise.reject(F)}function ve(){return B&&h.value!==eo?Promise.resolve():new Promise((F,Z)=>{k.add([F,Z])})}function _e(F){return B||(B=!F,_(),k.list().forEach(([Z,re])=>F?re(F):Z()),k.reset()),F}function je(F,Z,re,le){const{scrollBehavior:ce}=e;if(!Ds||!ce)return Promise.resolve();const z=!re&&Qbe(zy(F.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return Ct().then(()=>ce(F,Z,z)).then(j=>j&&Zbe(j)).catch(j=>ae(j,F,Z))}const Ee=F=>s.go(F);let Ge;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:P,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:A,resolve:E,options:e,push:C,replace:I,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:R.add,isReady:ve,install(F){F.component("RouterLink",Twe),F.component("RouterView",Lwe),F.config.globalProperties.$router=He,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),Ds&&!Ge&&h.value===eo&&(Ge=!0,C(s.location).catch(le=>{}));const Z={};for(const le in eo)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});F.provide(eg,He),F.provide(K1,ap(Z)),F.provide(Xh,h);const re=F.unmount;Ue.add(F),F.unmount=function(){Ue.delete(F),Ue.size<1&&(p=eo,$&&$(),$=null,h.value=eo,Ge=!1,B=!1),re()}}};function Pe(F){return F.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const Nwe={tooltip:BE};qw.options.instantMove=!0;qw.options.distance=10;function $we(){return Mwe({history:awe(),routes:_be})}const Owe=[$we],ng=_w(HC);Owe.forEach(e=>{ng.use(e())});Object.entries(Nwe).forEach(([e,t])=>{ng.directive(e,t)});ng.mount("#app");