upfynai-code 2.9.0 → 2.9.2

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 (229) hide show
  1. package/README.md +91 -66
  2. package/client/dist/api-docs.html +838 -0
  3. package/client/dist/assets/AppContent-BXZDeSIC.js +545 -0
  4. package/client/dist/assets/CanvasFullScreen-mnpCnLZ9.js +1 -0
  5. package/client/dist/assets/CanvasWorkspace-4CqmjAVQ.js +163 -0
  6. package/client/dist/assets/DashboardPanel-zFIFlw56.js +1 -0
  7. package/client/dist/assets/FileTree-B0c_GaB3.js +1 -0
  8. package/client/dist/assets/GitPanel-DUP4zVU4.js +2 -0
  9. package/client/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  10. package/client/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  11. package/client/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  12. package/client/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  13. package/client/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  14. package/client/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  15. package/client/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  16. package/client/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  17. package/client/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  18. package/client/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  19. package/client/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  20. package/client/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  21. package/client/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  22. package/client/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  23. package/client/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  24. package/client/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  25. package/client/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  26. package/client/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  27. package/client/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  28. package/client/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  29. package/client/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  30. package/client/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  31. package/client/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  32. package/client/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  33. package/client/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  34. package/client/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  35. package/client/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  36. package/client/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  37. package/client/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  38. package/client/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  39. package/client/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  40. package/client/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  41. package/client/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  42. package/client/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  43. package/client/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  44. package/client/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  45. package/client/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  46. package/client/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  47. package/client/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  48. package/client/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  49. package/client/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  50. package/client/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  51. package/client/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  52. package/client/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  53. package/client/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  54. package/client/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  55. package/client/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  56. package/client/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  57. package/client/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  58. package/client/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  59. package/client/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  60. package/client/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  61. package/client/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  62. package/client/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  63. package/client/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  64. package/client/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  65. package/client/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  66. package/client/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  67. package/client/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  68. package/client/dist/assets/LoginModal-BRycfsyD.js +13 -0
  69. package/client/dist/assets/MarkdownPreview-DHmk3qzu.js +1 -0
  70. package/client/dist/assets/MermaidBlock-BuBc_G-F.js +2 -0
  71. package/client/dist/assets/Onboarding-BcnaZZ0o.js +1 -0
  72. package/client/dist/assets/PreviewPanel-CqCa92Tf.js +32 -0
  73. package/client/dist/assets/SetupForm-S0g6u5yT.js +1 -0
  74. package/client/dist/assets/WorkflowsPanel-CouH9JDO.js +1 -0
  75. package/client/dist/assets/index-BFuqS0tY.css +1 -0
  76. package/client/dist/assets/index-CNDcVl2g.js +68 -0
  77. package/client/dist/assets/pdf-CE_K4jFx.js +12 -0
  78. package/client/dist/assets/vendor-canvas-BZV40eAE.css +1 -0
  79. package/client/dist/assets/vendor-canvas-D39yWul6.js +49 -0
  80. package/client/dist/assets/vendor-codemirror-CbtmxxaB.js +35 -0
  81. package/client/dist/assets/vendor-diff-DNQpbhrT.js +69 -0
  82. package/client/dist/assets/vendor-i18n-DCFGyhQR.js +1 -0
  83. package/client/dist/assets/vendor-icons-BaD0x9SL.js +711 -0
  84. package/client/dist/assets/vendor-markdown-CimbIo6Y.js +296 -0
  85. package/client/dist/assets/vendor-mermaid-CH7SGc99.js +2556 -0
  86. package/client/dist/assets/vendor-react-96lCPsRK.js +67 -0
  87. package/client/dist/assets/vendor-syntax-DuHI9Ok6.js +16 -0
  88. package/client/dist/assets/vendor-xterm-CZq1hqo1.js +66 -0
  89. package/client/dist/assets/vendor-xterm-qxJ8_QYu.css +32 -0
  90. package/client/dist/clear-cache.html +85 -0
  91. package/client/dist/convert-icons.md +53 -0
  92. package/client/dist/favicon.png +0 -0
  93. package/client/dist/favicon.svg +5 -0
  94. package/client/dist/generate-icons.js +49 -0
  95. package/client/dist/icons/claude-ai-icon.svg +1 -0
  96. package/client/dist/icons/codex-white.svg +3 -0
  97. package/client/dist/icons/codex.svg +3 -0
  98. package/client/dist/icons/cursor-white.svg +12 -0
  99. package/client/dist/icons/cursor.svg +1 -0
  100. package/client/dist/icons/icon-128x128.png +0 -0
  101. package/client/dist/icons/icon-128x128.svg +5 -0
  102. package/client/dist/icons/icon-144x144.png +0 -0
  103. package/client/dist/icons/icon-144x144.svg +5 -0
  104. package/client/dist/icons/icon-152x152.png +0 -0
  105. package/client/dist/icons/icon-152x152.svg +5 -0
  106. package/client/dist/icons/icon-192x192.png +0 -0
  107. package/client/dist/icons/icon-192x192.svg +5 -0
  108. package/client/dist/icons/icon-384x384.png +0 -0
  109. package/client/dist/icons/icon-384x384.svg +5 -0
  110. package/client/dist/icons/icon-512x512.png +0 -0
  111. package/client/dist/icons/icon-512x512.svg +5 -0
  112. package/client/dist/icons/icon-72x72.png +0 -0
  113. package/client/dist/icons/icon-72x72.svg +5 -0
  114. package/client/dist/icons/icon-96x96.png +0 -0
  115. package/client/dist/icons/icon-96x96.svg +5 -0
  116. package/client/dist/icons/icon-template.svg +5 -0
  117. package/client/dist/index.html +119 -0
  118. package/client/dist/logo-128.png +0 -0
  119. package/client/dist/logo-256.png +0 -0
  120. package/client/dist/logo-32.png +0 -0
  121. package/client/dist/logo-512.png +0 -0
  122. package/client/dist/logo-64.png +0 -0
  123. package/client/dist/logo.svg +14 -0
  124. package/client/dist/manifest.json +61 -0
  125. package/client/dist/mcp-docs.html +108 -0
  126. package/client/dist/offline.html +84 -0
  127. package/client/dist/screenshots/cli-selection.png +0 -0
  128. package/client/dist/screenshots/desktop-main.png +0 -0
  129. package/client/dist/screenshots/mobile-chat.png +0 -0
  130. package/client/dist/screenshots/tools-modal.png +0 -0
  131. package/client/dist/sw.js +82 -0
  132. package/commands/upfynai-connect.md +59 -0
  133. package/commands/upfynai-disconnect.md +31 -0
  134. package/commands/upfynai-doctor.md +99 -0
  135. package/commands/upfynai-export.md +49 -0
  136. package/commands/upfynai-local.md +82 -0
  137. package/commands/upfynai-status.md +75 -0
  138. package/commands/upfynai-stop.md +49 -0
  139. package/commands/upfynai-uninstall.md +58 -0
  140. package/commands/upfynai.md +69 -0
  141. package/package.json +143 -82
  142. package/scripts/build-client.js +17 -0
  143. package/scripts/fix-node-pty.js +67 -0
  144. package/scripts/install-commands.js +78 -0
  145. package/server/agent-loop.js +242 -0
  146. package/server/auto-compact.js +99 -0
  147. package/server/claude-sdk.js +797 -0
  148. package/server/cli-ui.js +785 -0
  149. package/server/cli.js +596 -0
  150. package/server/constants/config.js +31 -0
  151. package/server/cursor-cli.js +270 -0
  152. package/server/database/auth.db +0 -0
  153. package/server/database/db.js +1391 -0
  154. package/server/database/init.sql +70 -0
  155. package/server/index.js +3799 -0
  156. package/server/load-env.js +26 -0
  157. package/server/mcp-server.js +621 -0
  158. package/server/middleware/auth.js +176 -0
  159. package/server/middleware/relayHelpers.js +44 -0
  160. package/server/middleware/sandboxRouter.js +174 -0
  161. package/server/openai-codex.js +403 -0
  162. package/server/openrouter.js +137 -0
  163. package/server/projects.js +1807 -0
  164. package/server/provider-factory.js +174 -0
  165. package/server/relay-client.js +379 -0
  166. package/server/routes/agent.js +1226 -0
  167. package/server/routes/auth.js +554 -0
  168. package/server/routes/canvas.js +53 -0
  169. package/server/routes/cli-auth.js +263 -0
  170. package/server/routes/codex.js +396 -0
  171. package/server/routes/commands.js +707 -0
  172. package/server/routes/composio.js +176 -0
  173. package/server/routes/cursor.js +770 -0
  174. package/server/routes/dashboard.js +295 -0
  175. package/server/routes/git.js +1208 -0
  176. package/server/routes/keys.js +34 -0
  177. package/server/routes/mcp-utils.js +48 -0
  178. package/server/routes/mcp.js +661 -0
  179. package/server/routes/payments.js +227 -0
  180. package/server/routes/projects.js +655 -0
  181. package/server/routes/sessions.js +146 -0
  182. package/server/routes/settings.js +261 -0
  183. package/server/routes/taskmaster.js +1928 -0
  184. package/server/routes/user.js +106 -0
  185. package/server/routes/vapi-chat.js +624 -0
  186. package/server/routes/voice.js +235 -0
  187. package/server/routes/webhooks.js +166 -0
  188. package/server/routes/workflows.js +312 -0
  189. package/server/sandbox.js +120 -0
  190. package/server/services/composio.js +204 -0
  191. package/server/services/sessionRegistry.js +139 -0
  192. package/server/services/whisperService.js +84 -0
  193. package/server/services/workflowScheduler.js +206 -0
  194. package/server/tests/relay-flow.test.js +570 -0
  195. package/server/tests/sessions.test.js +259 -0
  196. package/server/utils/commandParser.js +303 -0
  197. package/server/utils/email.js +61 -0
  198. package/server/utils/gitConfig.js +24 -0
  199. package/server/utils/mcp-detector.js +198 -0
  200. package/server/utils/taskmaster-websocket.js +129 -0
  201. package/shared/integrationCatalog.d.ts +12 -0
  202. package/shared/integrationCatalog.js +172 -0
  203. package/shared/modelConstants.js +96 -0
  204. package/bin/cli.js +0 -97
  205. package/dist/agents/claude.js +0 -229
  206. package/dist/agents/codex.js +0 -48
  207. package/dist/agents/cursor.js +0 -48
  208. package/dist/agents/detect.js +0 -51
  209. package/dist/agents/exec.js +0 -31
  210. package/dist/agents/files.js +0 -105
  211. package/dist/agents/git.js +0 -18
  212. package/dist/agents/gitagent.js +0 -67
  213. package/dist/agents/index.js +0 -88
  214. package/dist/agents/shell.js +0 -38
  215. package/dist/agents/utils.js +0 -136
  216. package/scripts/postinstall.js +0 -9
  217. package/scripts/prepublish.js +0 -58
  218. package/src/animation.js +0 -228
  219. package/src/auth.js +0 -122
  220. package/src/config.js +0 -40
  221. package/src/connect.js +0 -416
  222. package/src/launch.js +0 -78
  223. package/src/mcp.js +0 -57
  224. package/src/permissions.js +0 -140
  225. package/src/persistent-shell.js +0 -261
  226. package/src/server.js +0 -54
  227. /package/{dist → shared}/gitagent/index.js +0 -0
  228. /package/{dist → shared}/gitagent/parser.js +0 -0
  229. /package/{dist → shared}/gitagent/prompt-builder.js +0 -0
@@ -0,0 +1,69 @@
1
+ var vt=Object.defineProperty;var yt=(e,n,i)=>n in e?vt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var N=(e,n,i)=>yt(e,typeof n!="symbol"?n+"":n,i);import{g as xt,j as v,r as ee}from"./vendor-react-96lCPsRK.js";var on={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */var Dn;function wt(){return Dn||(Dn=1,(function(e){(function(){var n={}.hasOwnProperty;function i(){for(var o="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(o=r(o,t(s)))}return o}function t(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return i.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var s in o)n.call(o,s)&&o[s]&&(l=r(l,s));return l}function r(o,l){return l?o?o+" "+l:o+l:o}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(on)),on.exports}var bt=wt();const X=xt(bt);var _n=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function At(e,n){return!!(e===n||_n(e)&&_n(n))}function Ct(e,n){if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(!At(e[i],n[i]))return!1;return!0}function kt(e,n){n===void 0&&(n=Ct);var i=null;function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(i&&i.lastThis===this&&n(r,i.lastArgs))return i.lastResult;var l=e.apply(this,r);return i={lastResult:l,lastArgs:r,lastThis:this},l}return t.clear=function(){i=null},t}function St(e,n,i){let t=0,r;const o={},l=[];return e.forEach((s,a)=>{const c=n.some(f=>f>=a-i&&f<=a+i);!c&&r===void 0?(r={index:t,startLine:a,endLine:a,lines:1},l.push(r),o[a]=r.index,t++):!c&&r?(r.endLine=a,r.lines++,o[a]=r.index):r=void 0}),{lineBlocks:o,blocks:l}}class ae{diff(n,i,t={}){let r;typeof t=="function"?(r=t,t={}):"callback"in t&&(r=t.callback);const o=this.castInput(n,t),l=this.castInput(i,t),s=this.removeEmpty(this.tokenize(o,t)),a=this.removeEmpty(this.tokenize(l,t));return this.diffWithOptionsObj(s,a,t,r)}diffWithOptionsObj(n,i,t,r){var o;const l=m=>{if(m=this.postProcess(m,t),r){setTimeout(function(){r(m)},0);return}else return m},s=i.length,a=n.length;let c=1,f=s+a;t.maxEditLength!=null&&(f=Math.min(f,t.maxEditLength));const u=(o=t.timeout)!==null&&o!==void 0?o:1/0,d=Date.now()+u,g=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(g[0],i,n,0,t);if(g[0].oldPos+1>=a&&h+1>=s)return l(this.buildValues(g[0].lastComponent,i,n));let p=-1/0,y=1/0;const x=()=>{for(let m=Math.max(p,-c);m<=Math.min(y,c);m+=2){let w;const C=g[m-1],b=g[m+1];C&&(g[m-1]=void 0);let E=!1;if(b){const O=b.oldPos-m;E=b&&0<=O&&O<s}const A=C&&C.oldPos+1<a;if(!E&&!A){g[m]=void 0;continue}if(!A||E&&C.oldPos<b.oldPos?w=this.addToPath(b,!0,!1,0,t):w=this.addToPath(C,!1,!0,1,t),h=this.extractCommon(w,i,n,m,t),w.oldPos+1>=a&&h+1>=s)return l(this.buildValues(w.lastComponent,i,n))||!0;g[m]=w,w.oldPos+1>=a&&(y=Math.min(y,m-1)),h+1>=s&&(p=Math.max(p,m+1))}c++};if(r)(function m(){setTimeout(function(){if(c>f||Date.now()>d)return r(void 0);x()||m()},0)})();else for(;c<=f&&Date.now()<=d;){const m=x();if(m)return m}}addToPath(n,i,t,r,o){const l=n.lastComponent;return l&&!o.oneChangePerToken&&l.added===i&&l.removed===t?{oldPos:n.oldPos+r,lastComponent:{count:l.count+1,added:i,removed:t,previousComponent:l.previousComponent}}:{oldPos:n.oldPos+r,lastComponent:{count:1,added:i,removed:t,previousComponent:l}}}extractCommon(n,i,t,r,o){const l=i.length,s=t.length;let a=n.oldPos,c=a-r,f=0;for(;c+1<l&&a+1<s&&this.equals(t[a+1],i[c+1],o);)c++,a++,f++,o.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return f&&!o.oneChangePerToken&&(n.lastComponent={count:f,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=a,c}equals(n,i,t){return t.comparator?t.comparator(n,i):n===i||!!t.ignoreCase&&n.toLowerCase()===i.toLowerCase()}removeEmpty(n){const i=[];for(let t=0;t<n.length;t++)n[t]&&i.push(n[t]);return i}castInput(n,i){return n}tokenize(n,i){return Array.from(n)}join(n){return n.join("")}postProcess(n,i){return n}get useLongestToken(){return!1}buildValues(n,i,t){const r=[];let o;for(;n;)r.push(n),o=n.previousComponent,delete n.previousComponent,n=o;r.reverse();const l=r.length;let s=0,a=0,c=0;for(;s<l;s++){const f=r[s];if(f.removed)f.value=this.join(t.slice(c,c+f.count)),c+=f.count;else{if(!f.added&&this.useLongestToken){let u=i.slice(a,a+f.count);u=u.map(function(d,g){const h=t[c+g];return h.length>d.length?h:d}),f.value=this.join(u)}else f.value=this.join(i.slice(a,a+f.count));a+=f.count,f.added||(c+=f.count)}}return r}}class Et extends ae{}const pi=new Et;function Ot(e,n,i){return pi.diff(e,n,i)}function Mn(e,n){let i;for(i=0;i<e.length&&i<n.length;i++)if(e[i]!=n[i])return e.slice(0,i);return e.slice(0,i)}function Wn(e,n){let i;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(i=0;i<e.length&&i<n.length;i++)if(e[e.length-(i+1)]!=n[n.length-(i+1)])return e.slice(-i);return e.slice(-i)}function dn(e,n,i){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(n)}; this is a bug`);return i+e.slice(n.length)}function hn(e,n,i){if(!n)return e+i;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+i}function Se(e,n){return dn(e,n,"")}function We(e,n){return hn(e,n,"")}function Hn(e,n){return n.slice(0,Tt(e,n))}function Tt(e,n){let i=0;e.length>n.length&&(i=e.length-n.length);let t=n.length;e.length<n.length&&(t=e.length);const r=Array(t);let o=0;r[0]=0;for(let l=1;l<t;l++){for(n[l]==n[o]?r[l]=r[o]:r[l]=o;o>0&&n[l]!=n[o];)o=r[o];n[l]==n[o]&&o++}o=0;for(let l=i;l<e.length;l++){for(;o>0&&e[l]!=n[o];)o=r[o];e[l]==n[o]&&o++}return o}function Lt(e){return e.includes(`\r
6
+ `)&&!e.startsWith(`
7
+ `)&&!e.match(/[^\r]\n/)}function Nt(e){return!e.includes(`\r
8
+ `)&&e.includes(`
9
+ `)}function Ee(e){let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function ce(e){const n=e.match(/^\s*/);return n?n[0]:""}const Ve="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",It=new RegExp(`[${Ve}]+|\\s+|[^${Ve}]`,"ug");class Ft extends ae{equals(n,i,t){return t.ignoreCase&&(n=n.toLowerCase(),i=i.toLowerCase()),n.trim()===i.trim()}tokenize(n,i={}){let t;if(i.intlSegmenter){const l=i.intlSegmenter;if(l.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');t=[];for(const s of Array.from(l.segment(n))){const a=s.segment;t.length&&/\s/.test(t[t.length-1])&&/\s/.test(a)?t[t.length-1]+=a:t.push(a)}}else t=n.match(It)||[];const r=[];let o=null;return t.forEach(l=>{/\s/.test(l)?o==null?r.push(l):r.push(r.pop()+l):o!=null&&/\s/.test(o)?r[r.length-1]==o?r.push(r.pop()+l):r.push(o+l):r.push(l),o=l}),r}join(n){return n.map((i,t)=>t==0?i:i.replace(/^\s+/,"")).join("")}postProcess(n,i){if(!n||i.oneChangePerToken)return n;let t=null,r=null,o=null;return n.forEach(l=>{l.added?r=l:l.removed?o=l:((r||o)&&Bn(t,o,r,l),t=l,r=null,o=null)}),(r||o)&&Bn(t,o,r,null),n}}const gi=new Ft;function jt(e,n,i){return(i==null?void 0:i.ignoreWhitespace)!=null&&!i.ignoreWhitespace?vi(e,n,i):gi.diff(e,n,i)}function Bn(e,n,i,t){if(n&&i){const r=ce(n.value),o=Ee(n.value),l=ce(i.value),s=Ee(i.value);if(e){const a=Mn(r,l);e.value=hn(e.value,l,a),n.value=Se(n.value,a),i.value=Se(i.value,a)}if(t){const a=Wn(o,s);t.value=dn(t.value,s,a),n.value=We(n.value,a),i.value=We(i.value,a)}}else if(i){if(e){const r=ce(i.value);i.value=i.value.substring(r.length)}if(t){const r=ce(t.value);t.value=t.value.substring(r.length)}}else if(e&&t){const r=ce(t.value),o=ce(n.value),l=Ee(n.value),s=Mn(r,o);n.value=Se(n.value,s);const a=Wn(Se(r,s),l);n.value=We(n.value,a),t.value=dn(t.value,r,a),e.value=hn(e.value,r,r.slice(0,r.length-a.length))}else if(t){const r=ce(t.value),o=Ee(n.value),l=Hn(o,r);n.value=We(n.value,l)}else if(e){const r=Ee(e.value),o=ce(n.value),l=Hn(r,o);n.value=Se(n.value,l)}}class Rt extends ae{tokenize(n){const i=new RegExp(`(\\r?\\n)|[${Ve}]+|[^\\S\\n\\r]+|[^${Ve}]`,"ug");return n.match(i)||[]}}const mi=new Rt;function vi(e,n,i){return mi.diff(e,n,i)}function Dt(e,n){if(typeof e=="function")n.callback=e;else if(e)for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}class _t extends ae{constructor(){super(...arguments),this.tokenize=yi}equals(n,i,t){return t.ignoreWhitespace?((!t.newlineIsToken||!n.includes(`
10
+ `))&&(n=n.trim()),(!t.newlineIsToken||!i.includes(`
11
+ `))&&(i=i.trim())):t.ignoreNewlineAtEof&&!t.newlineIsToken&&(n.endsWith(`
12
+ `)&&(n=n.slice(0,-1)),i.endsWith(`
13
+ `)&&(i=i.slice(0,-1))),super.equals(n,i,t)}}const Cn=new _t;function oe(e,n,i){return Cn.diff(e,n,i)}function Mt(e,n,i){return i=Dt(i,{ignoreWhitespace:!0}),Cn.diff(e,n,i)}function yi(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,`
14
+ `));const i=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(let r=0;r<t.length;r++){const o=t[r];r%2&&!n.newlineIsToken?i[i.length-1]+=o:i.push(o)}return i}function Wt(e){return e=="."||e=="!"||e=="?"}class Ht extends ae{tokenize(n){var i;const t=[];let r=0;for(let o=0;o<n.length;o++){if(o==n.length-1){t.push(n.slice(r));break}if(Wt(n[o])&&n[o+1].match(/\s/)){for(t.push(n.slice(r,o+1)),o=r=o+1;!((i=n[o+1])===null||i===void 0)&&i.match(/\s/);)o++;t.push(n.slice(r,o+1)),r=o+1}}return t}}const xi=new Ht;function Bt(e,n,i){return xi.diff(e,n,i)}class Pt extends ae{tokenize(n){return n.split(/([{}:;,]|\s+)/)}}const wi=new Pt;function $t(e,n,i){return wi.diff(e,n,i)}class Vt extends ae{constructor(){super(...arguments),this.tokenize=yi}get useLongestToken(){return!0}castInput(n,i){const{undefinedReplacement:t,stringifyReplacer:r=(o,l)=>typeof l>"u"?t:l}=i;return typeof n=="string"?n:JSON.stringify(Ge(n,null,null,r),null," ")}equals(n,i,t){return super.equals(n.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"),t)}}const bi=new Vt;function Gt(e,n,i){return bi.diff(e,n,i)}function Ge(e,n,i,t,r){n=n||[],i=i||[],t&&(e=t(r===void 0?"":r,e));let o;for(o=0;o<n.length;o+=1)if(n[o]===e)return i[o];let l;if(Object.prototype.toString.call(e)==="[object Array]"){for(n.push(e),l=new Array(e.length),i.push(l),o=0;o<e.length;o+=1)l[o]=Ge(e[o],n,i,t,String(o));return n.pop(),i.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){n.push(e),l={},i.push(l);const s=[];let a;for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.push(a);for(s.sort(),o=0;o<s.length;o+=1)a=s[o],l[a]=Ge(e[a],n,i,t,a);n.pop(),i.pop()}else l=e;return l}class Ut extends ae{tokenize(n){return n.slice()}join(n){return n}removeEmpty(n){return n}}const Ai=new Ut;function Yt(e,n,i){return Ai.diff(e,n,i)}function Ci(e){return Array.isArray(e)?e.map(n=>Ci(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map((i,t)=>{var r;return i.startsWith("\\")||i.endsWith("\r")||!((r=n.lines[t+1])===null||r===void 0)&&r.startsWith("\\")?i:i+"\r"})}))})}function ki(e){return Array.isArray(e)?e.map(n=>ki(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map(i=>i.endsWith("\r")?i.substring(0,i.length-1):i)}))})}function qt(e){return Array.isArray(e)||(e=[e]),!e.some(n=>n.hunks.some(i=>i.lines.some(t=>!t.startsWith("\\")&&t.endsWith("\r"))))}function zt(e){return Array.isArray(e)||(e=[e]),e.some(n=>n.hunks.some(i=>i.lines.some(t=>t.endsWith("\r"))))&&e.every(n=>n.hunks.every(i=>i.lines.every((t,r)=>{var o;return t.startsWith("\\")||t.endsWith("\r")||((o=i.lines[r+1])===null||o===void 0?void 0:o.startsWith("\\"))})))}function kn(e){const n=e.split(/\n/),i=[];let t=0;function r(){const s={};for(i.push(s);t<n.length;){const a=n[t];if(/^(---|\+\+\+|@@)\s/.test(a))break;const c=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(a);c&&(s.index=a.substring(c[0].length).trim()),t++}for(o(s),o(s),s.hunks=[];t<n.length;){const a=n[t];if(/^(Index:\s|diff\s|---\s|\+\+\+\s|===================================================================)/.test(a))break;if(/^@@/.test(a))s.hunks.push(l());else{if(a)throw new Error("Unknown line "+(t+1)+" "+JSON.stringify(a));t++}}}function o(s){const a=/^(---|\+\+\+)\s+/.exec(n[t]);if(a){const c=a[1],f=n[t].substring(3).trim().split(" ",2),u=(f[1]||"").trim();let d=f[0].replace(/\\\\/g,"\\");d.startsWith('"')&&d.endsWith('"')&&(d=d.substr(1,d.length-2)),c==="---"?(s.oldFileName=d,s.oldHeader=u):(s.newFileName=d,s.newHeader=u),t++}}function l(){var s;const a=t,c=n[t++],f=c.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),u={oldStart:+f[1],oldLines:typeof f[2]>"u"?1:+f[2],newStart:+f[3],newLines:typeof f[4]>"u"?1:+f[4],lines:[]};u.oldLines===0&&(u.oldStart+=1),u.newLines===0&&(u.newStart+=1);let d=0,g=0;for(;t<n.length&&(g<u.oldLines||d<u.newLines||!((s=n[t])===null||s===void 0)&&s.startsWith("\\"));t++){const h=n[t].length==0&&t!=n.length-1?" ":n[t][0];if(h==="+"||h==="-"||h===" "||h==="\\")u.lines.push(n[t]),h==="+"?d++:h==="-"?g++:h===" "&&(d++,g++);else throw new Error(`Hunk at line ${a+1} contained invalid line ${n[t]}`)}if(!d&&u.newLines===1&&(u.newLines=0),!g&&u.oldLines===1&&(u.oldLines=0),d!==u.newLines)throw new Error("Added line count did not match for hunk at line "+(a+1));if(g!==u.oldLines)throw new Error("Removed line count did not match for hunk at line "+(a+1));return u}for(;t<n.length;)r();return i}function Jt(e,n,i){let t=!0,r=!1,o=!1,l=1;return function s(){if(t&&!o){if(r?l++:t=!1,e+l<=i)return e+l;o=!0}if(!r)return o||(t=!0),n<=e-l?e-l++:(r=!0,s())}}function Si(e,n,i={}){let t;if(typeof n=="string"?t=kn(n):Array.isArray(n)?t=n:t=[n],t.length>1)throw new Error("applyPatch only works with a single input.");return Kt(e,t[0],i)}function Kt(e,n,i={}){(i.autoConvertLineEndings||i.autoConvertLineEndings==null)&&(Lt(e)&&qt(n)?n=Ci(n):Nt(e)&&zt(n)&&(n=ki(n)));const t=e.split(`
15
+ `),r=n.hunks,o=i.compareLine||((h,p,y,x)=>p===x),l=i.fuzzFactor||0;let s=0;if(l<0||!Number.isInteger(l))throw new Error("fuzzFactor must be a non-negative integer");if(!r.length)return e;let a="",c=!1,f=!1;for(let h=0;h<r[r.length-1].lines.length;h++){const p=r[r.length-1].lines[h];p[0]=="\\"&&(a[0]=="+"?c=!0:a[0]=="-"&&(f=!0)),a=p}if(c){if(f){if(!l&&t[t.length-1]=="")return!1}else if(t[t.length-1]=="")t.pop();else if(!l)return!1}else if(f){if(t[t.length-1]!="")t.push("");else if(!l)return!1}function u(h,p,y,x=0,m=!0,w=[],C=0){let b=0,E=!1;for(;x<h.length;x++){const A=h[x],O=A.length>0?A[0]:" ",F=A.length>0?A.substr(1):A;if(O==="-")if(o(p+1,t[p],O,F))p++,b=0;else return!y||t[p]==null?null:(w[C]=t[p],u(h,p+1,y-1,x,!1,w,C+1));if(O==="+"){if(!m)return null;w[C]=F,C++,b=0,E=!0}if(O===" ")if(b++,w[C]=t[p],o(p+1,t[p],O,F))C++,m=!0,E=!1,p++;else return E||!y?null:t[p]&&(u(h,p+1,y-1,x+1,!1,w,C+1)||u(h,p+1,y-1,x,!1,w,C+1))||u(h,p,y-1,x+1,!1,w,C)}return C-=b,p-=b,w.length=C,{patchedLines:w,oldLineLastI:p-1}}const d=[];let g=0;for(let h=0;h<r.length;h++){const p=r[h];let y;const x=t.length-p.oldLines+l;let m;for(let w=0;w<=l;w++){m=p.oldStart+g-1;const C=Jt(m,s,x);for(;m!==void 0&&(y=u(p.lines,m,w),!y);m=C());if(y)break}if(!y)return!1;for(let w=s;w<m;w++)d.push(t[w]);for(let w=0;w<y.patchedLines.length;w++){const C=y.patchedLines[w];d.push(C)}s=y.oldLineLastI+1,g=m+1-p.oldStart}for(let h=s;h<t.length;h++)d.push(t[h]);return d.join(`
16
+ `)}function Zt(e,n){const i=typeof e=="string"?kn(e):e;let t=0;function r(){const o=i[t++];if(!o)return n.complete();n.loadFile(o,function(l,s){if(l)return n.complete(l);const a=Si(s,o,n);n.patched(o,a,function(c){if(c)return n.complete(c);r()})})}r()}function Ei(e){return Array.isArray(e)?e.map(n=>Ei(n)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(n=>({oldLines:n.newLines,oldStart:n.newStart,newLines:n.oldLines,newStart:n.oldStart,lines:n.lines.map(i=>i.startsWith("-")?`+${i.slice(1)}`:i.startsWith("+")?`-${i.slice(1)}`:i)}))})}const Oi={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},Qt={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},Xt={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function pn(e,n,i,t,r,o,l){let s;l?typeof l=="function"?s={callback:l}:s=l:s={},typeof s.context>"u"&&(s.context=4);const a=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){const{callback:f}=s;oe(i,t,Object.assign(Object.assign({},s),{callback:u=>{const d=c(u);f(d)}}))}else return c(oe(i,t,s));function c(f){if(!f)return;f.push({value:"",lines:[]});function u(m){return m.map(function(w){return" "+w})}const d=[];let g=0,h=0,p=[],y=1,x=1;for(let m=0;m<f.length;m++){const w=f[m],C=w.lines||nr(w.value);if(w.lines=C,w.added||w.removed){if(!g){const b=f[m-1];g=y,h=x,b&&(p=a>0?u(b.lines.slice(-a)):[],g-=p.length,h-=p.length)}for(const b of C)p.push((w.added?"+":"-")+b);w.added?x+=C.length:y+=C.length}else{if(g)if(C.length<=a*2&&m<f.length-2)for(const b of u(C))p.push(b);else{const b=Math.min(C.length,a);for(const A of u(C.slice(0,b)))p.push(A);const E={oldStart:g,oldLines:y-g+b,newStart:h,newLines:x-h+b,lines:p};d.push(E),g=0,h=0,p=[]}y+=C.length,x+=C.length}}for(const m of d)for(let w=0;w<m.lines.length;w++)m.lines[w].endsWith(`
17
+ `)?m.lines[w]=m.lines[w].slice(0,-1):(m.lines.splice(w+1,0,"\"),w++);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:d}}}function Ue(e,n){if(n||(n=Oi),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(t=>Ue(t,n)).join(`
18
+ `)}const i=[];n.includeIndex&&e.oldFileName==e.newFileName&&i.push("Index: "+e.oldFileName),n.includeUnderline&&i.push("==================================================================="),n.includeFileHeaders&&(i.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),i.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader)));for(let t=0;t<e.hunks.length;t++){const r=e.hunks[t];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),i.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@");for(const o of r.lines)i.push(o)}return i.join(`
19
+ `)+`
20
+ `}function Ti(e,n,i,t,r,o,l){if(typeof l=="function"&&(l={callback:l}),l!=null&&l.callback){const{callback:s}=l;pn(e,n,i,t,r,o,Object.assign(Object.assign({},l),{callback:a=>{s(a?Ue(a,l.headerOptions):void 0)}}))}else{const s=pn(e,n,i,t,r,o,l);return s?Ue(s,l==null?void 0:l.headerOptions):void 0}}function er(e,n,i,t,r,o){return Ti(e,e,n,i,t,r,o)}function nr(e){const n=e.endsWith(`
21
+ `),i=e.split(`
22
+ `).map(t=>t+`
23
+ `);return n?i.pop():i.push(i.pop().slice(0,-1)),i}function ir(e){const n=[];let i,t;for(let r=0;r<e.length;r++)i=e[r],i.added?t=1:i.removed?t=-1:t=0,n.push([t,i.value]);return n}function tr(e){const n=[];for(let i=0;i<e.length;i++){const t=e[i];t.added?n.push("<ins>"):t.removed&&n.push("<del>"),n.push(rr(t.value)),t.added?n.push("</ins>"):t.removed&&n.push("</del>")}return n.join("")}function rr(e){let n=e;return n=n.replace(/&/g,"&amp;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;"),n=n.replace(/"/g,"&quot;"),n}const lr=Object.freeze(Object.defineProperty({__proto__:null,Diff:ae,FILE_HEADERS_ONLY:Qt,INCLUDE_HEADERS:Oi,OMIT_HEADERS:Xt,applyPatch:Si,applyPatches:Zt,arrayDiff:Ai,canonicalize:Ge,characterDiff:pi,convertChangesToDMP:ir,convertChangesToXML:tr,createPatch:er,createTwoFilesPatch:Ti,cssDiff:wi,diffArrays:Yt,diffChars:Ot,diffCss:$t,diffJson:Gt,diffLines:oe,diffSentences:Bt,diffTrimmedLines:Mt,diffWords:jt,diffWordsWithSpace:vi,formatPatch:Ue,jsonDiff:bi,lineDiff:Cn,parsePatch:kn,reversePatch:Ei,sentenceDiff:xi,structuredPatch:pn,wordDiff:gi,wordsWithSpaceDiff:mi},Symbol.toStringTag,{value:"Module"}));/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Li(e){return typeof e>"u"||e===null}function or(e){return typeof e=="object"&&e!==null}function sr(e){return Array.isArray(e)?e:Li(e)?[]:[e]}function ar(e,n){var i,t,r,o;if(n)for(o=Object.keys(n),i=0,t=o.length;i<t;i+=1)r=o[i],e[r]=n[r];return e}function ur(e,n){var i="",t;for(t=0;t<n;t+=1)i+=e;return i}function cr(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var fr=Li,dr=or,hr=sr,pr=ur,gr=cr,mr=ar,M={isNothing:fr,isObject:dr,toArray:hr,repeat:pr,isNegativeZero:gr,extend:mr};function Ni(e,n){var i="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`
24
+
25
+ `+e.mark.snippet),t+" "+i):t}function Ie(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Ni(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ie.prototype=Object.create(Error.prototype);Ie.prototype.constructor=Ie;Ie.prototype.toString=function(n){return this.name+": "+Ni(this,n)};var U=Ie;function sn(e,n,i,t,r){var o="",l="",s=Math.floor(r/2)-1;return t-n>s&&(o=" ... ",n=t-s+o.length),i-t>s&&(l=" ...",i=t+s-l.length),{str:o+e.slice(n,i).replace(/\t/g,"→")+l,pos:t-n+o.length}}function an(e,n){return M.repeat(" ",n-e.length)+e}function vr(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,t=[0],r=[],o,l=-1;o=i.exec(e.buffer);)r.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&l<0&&(l=t.length-2);l<0&&(l=t.length-1);var s="",a,c,f=Math.min(e.line+n.linesAfter,r.length).toString().length,u=n.maxLength-(n.indent+f+3);for(a=1;a<=n.linesBefore&&!(l-a<0);a++)c=sn(e.buffer,t[l-a],r[l-a],e.position-(t[l]-t[l-a]),u),s=M.repeat(" ",n.indent)+an((e.line-a+1).toString(),f)+" | "+c.str+`
26
+ `+s;for(c=sn(e.buffer,t[l],r[l],e.position,u),s+=M.repeat(" ",n.indent)+an((e.line+1).toString(),f)+" | "+c.str+`
27
+ `,s+=M.repeat("-",n.indent+f+3+c.pos)+`^
28
+ `,a=1;a<=n.linesAfter&&!(l+a>=r.length);a++)c=sn(e.buffer,t[l+a],r[l+a],e.position-(t[l]-t[l+a]),u),s+=M.repeat(" ",n.indent)+an((e.line+a+1).toString(),f)+" | "+c.str+`
29
+ `;return s.replace(/\n$/,"")}var yr=vr,xr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wr=["scalar","sequence","mapping"];function br(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(t){n[String(t)]=i})}),n}function Ar(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(xr.indexOf(i)===-1)throw new U('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=br(n.styleAliases||null),wr.indexOf(this.kind)===-1)throw new U('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var $=Ar;function Pn(e,n){var i=[];return e[n].forEach(function(t){var r=i.length;i.forEach(function(o,l){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(r=l)}),i[r]=t}),i}function Cr(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function t(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(t);return e}function gn(e){return this.extend(e)}gn.prototype.extend=function(n){var i=[],t=[];if(n instanceof $)t.push(n);else if(Array.isArray(n))t=t.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(t=t.concat(n.explicit));else throw new U("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof $))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new U("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new U("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof $))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(gn.prototype);return r.implicit=(this.implicit||[]).concat(i),r.explicit=(this.explicit||[]).concat(t),r.compiledImplicit=Pn(r,"implicit"),r.compiledExplicit=Pn(r,"explicit"),r.compiledTypeMap=Cr(r.compiledImplicit,r.compiledExplicit),r};var kr=gn,Sr=new $("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Er=new $("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Or=new $("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Tr=new kr({explicit:[Sr,Er,Or]});function Lr(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Nr(){return null}function Ir(e){return e===null}var Fr=new $("tag:yaml.org,2002:null",{kind:"scalar",resolve:Lr,construct:Nr,predicate:Ir,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function jr(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Rr(e){return e==="true"||e==="True"||e==="TRUE"}function Dr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var _r=new $("tag:yaml.org,2002:bool",{kind:"scalar",resolve:jr,construct:Rr,predicate:Dr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Mr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Wr(e){return 48<=e&&e<=55}function Hr(e){return 48<=e&&e<=57}function Br(e){if(e===null)return!1;var n=e.length,i=0,t=!1,r;if(!n)return!1;if(r=e[i],(r==="-"||r==="+")&&(r=e[++i]),r==="0"){if(i+1===n)return!0;if(r=e[++i],r==="b"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(r!=="0"&&r!=="1")return!1;t=!0}return t&&r!=="_"}if(r==="x"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Mr(e.charCodeAt(i)))return!1;t=!0}return t&&r!=="_"}if(r==="o"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Wr(e.charCodeAt(i)))return!1;t=!0}return t&&r!=="_"}}if(r==="_")return!1;for(;i<n;i++)if(r=e[i],r!=="_"){if(!Hr(e.charCodeAt(i)))return!1;t=!0}return!(!t||r==="_")}function Pr(e){var n=e,i=1,t;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),t=n[0],(t==="-"||t==="+")&&(t==="-"&&(i=-1),n=n.slice(1),t=n[0]),n==="0")return 0;if(t==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function $r(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!M.isNegativeZero(e)}var Vr=new $("tag:yaml.org,2002:int",{kind:"scalar",resolve:Br,construct:Pr,predicate:$r,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Gr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ur(e){return!(e===null||!Gr.test(e)||e[e.length-1]==="_")}function Yr(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var qr=/^[-+]?[0-9]+e/;function zr(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(M.isNegativeZero(e))return"-0.0";return i=e.toString(10),qr.test(i)?i.replace("e",".e"):i}function Jr(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||M.isNegativeZero(e))}var Kr=new $("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ur,construct:Yr,predicate:Jr,represent:zr,defaultStyle:"lowercase"}),Zr=Tr.extend({implicit:[Fr,_r,Vr,Kr]}),Qr=Zr,Ii=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Xr(e){return e===null?!1:Ii.exec(e)!==null||Fi.exec(e)!==null}function el(e){var n,i,t,r,o,l,s,a=0,c=null,f,u,d;if(n=Ii.exec(e),n===null&&(n=Fi.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],t=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(i,t,r));if(o=+n[4],l=+n[5],s=+n[6],n[7]){for(a=n[7].slice(0,3);a.length<3;)a+="0";a=+a}return n[9]&&(f=+n[10],u=+(n[11]||0),c=(f*60+u)*6e4,n[9]==="-"&&(c=-c)),d=new Date(Date.UTC(i,t,r,o,l,s,a)),c&&d.setTime(d.getTime()-c),d}function nl(e){return e.toISOString()}var il=new $("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Xr,construct:el,instanceOf:Date,represent:nl});function tl(e){return e==="<<"||e===null}var rl=new $("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tl}),Sn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
30
+ \r`;function ll(e){if(e===null)return!1;var n,i,t=0,r=e.length,o=Sn;for(i=0;i<r;i++)if(n=o.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;t+=6}return t%8===0}function ol(e){var n,i,t=e.replace(/[\r\n=]/g,""),r=t.length,o=Sn,l=0,s=[];for(n=0;n<r;n++)n%4===0&&n&&(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)),l=l<<6|o.indexOf(t.charAt(n));return i=r%4*6,i===0?(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)):i===18?(s.push(l>>10&255),s.push(l>>2&255)):i===12&&s.push(l>>4&255),new Uint8Array(s)}function sl(e){var n="",i=0,t,r,o=e.length,l=Sn;for(t=0;t<o;t++)t%3===0&&t&&(n+=l[i>>18&63],n+=l[i>>12&63],n+=l[i>>6&63],n+=l[i&63]),i=(i<<8)+e[t];return r=o%3,r===0?(n+=l[i>>18&63],n+=l[i>>12&63],n+=l[i>>6&63],n+=l[i&63]):r===2?(n+=l[i>>10&63],n+=l[i>>4&63],n+=l[i<<2&63],n+=l[64]):r===1&&(n+=l[i>>2&63],n+=l[i<<4&63],n+=l[64],n+=l[64]),n}function al(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ul=new $("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ll,construct:ol,predicate:al,represent:sl}),cl=Object.prototype.hasOwnProperty,fl=Object.prototype.toString;function dl(e){if(e===null)return!0;var n=[],i,t,r,o,l,s=e;for(i=0,t=s.length;i<t;i+=1){if(r=s[i],l=!1,fl.call(r)!=="[object Object]")return!1;for(o in r)if(cl.call(r,o))if(!l)l=!0;else return!1;if(!l)return!1;if(n.indexOf(o)===-1)n.push(o);else return!1}return!0}function hl(e){return e!==null?e:[]}var pl=new $("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dl,construct:hl}),gl=Object.prototype.toString;function ml(e){if(e===null)return!0;var n,i,t,r,o,l=e;for(o=new Array(l.length),n=0,i=l.length;n<i;n+=1){if(t=l[n],gl.call(t)!=="[object Object]"||(r=Object.keys(t),r.length!==1))return!1;o[n]=[r[0],t[r[0]]]}return!0}function vl(e){if(e===null)return[];var n,i,t,r,o,l=e;for(o=new Array(l.length),n=0,i=l.length;n<i;n+=1)t=l[n],r=Object.keys(t),o[n]=[r[0],t[r[0]]];return o}var yl=new $("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ml,construct:vl}),xl=Object.prototype.hasOwnProperty;function wl(e){if(e===null)return!0;var n,i=e;for(n in i)if(xl.call(i,n)&&i[n]!==null)return!1;return!0}function bl(e){return e!==null?e:{}}var Al=new $("tag:yaml.org,2002:set",{kind:"mapping",resolve:wl,construct:bl}),ji=Qr.extend({implicit:[il,rl],explicit:[ul,pl,yl,Al]}),he=Object.prototype.hasOwnProperty,Ye=1,Ri=2,Di=3,qe=4,un=1,Cl=2,$n=3,kl=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Sl=/[\x85\u2028\u2029]/,El=/[,\[\]\{\}]/,_i=/^(?:!|!!|![a-z\-]+!)$/i,Mi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Vn(e){return Object.prototype.toString.call(e)}function ie(e){return e===10||e===13}function ge(e){return e===9||e===32}function Y(e){return e===9||e===32||e===10||e===13}function xe(e){return e===44||e===91||e===93||e===123||e===125}function Ol(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function Tl(e){return e===120?2:e===117?4:e===85?8:0}function Ll(e){return 48<=e&&e<=57?e-48:-1}function Gn(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
31
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Nl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Wi(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var Hi=new Array(256),Bi=new Array(256);for(var ve=0;ve<256;ve++)Hi[ve]=Gn(ve)?1:0,Bi[ve]=Gn(ve);function Il(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||ji,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Pi(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=yr(i),new U(n,i)}function k(e,n){throw Pi(e,n)}function ze(e,n){e.onWarning&&e.onWarning.call(null,Pi(e,n))}var Un={YAML:function(n,i,t){var r,o,l;n.version!==null&&k(n,"duplication of %YAML directive"),t.length!==1&&k(n,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),r===null&&k(n,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),l=parseInt(r[2],10),o!==1&&k(n,"unacceptable YAML version of the document"),n.version=t[0],n.checkLineBreaks=l<2,l!==1&&l!==2&&ze(n,"unsupported YAML version of the document")},TAG:function(n,i,t){var r,o;t.length!==2&&k(n,"TAG directive accepts exactly two arguments"),r=t[0],o=t[1],_i.test(r)||k(n,"ill-formed tag handle (first argument) of the TAG directive"),he.call(n.tagMap,r)&&k(n,'there is a previously declared suffix for "'+r+'" tag handle'),Mi.test(o)||k(n,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{k(n,"tag prefix is malformed: "+o)}n.tagMap[r]=o}};function de(e,n,i,t){var r,o,l,s;if(n<i){if(s=e.input.slice(n,i),t)for(r=0,o=s.length;r<o;r+=1)l=s.charCodeAt(r),l===9||32<=l&&l<=1114111||k(e,"expected valid JSON character");else kl.test(s)&&k(e,"the stream contains non-printable characters");e.result+=s}}function Yn(e,n,i,t){var r,o,l,s;for(M.isObject(i)||k(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(i),l=0,s=r.length;l<s;l+=1)o=r[l],he.call(n,o)||(Wi(n,o,i[o]),t[o]=!0)}function we(e,n,i,t,r,o,l,s,a){var c,f;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,f=r.length;c<f;c+=1)Array.isArray(r[c])&&k(e,"nested arrays are not supported inside keys"),typeof r=="object"&&Vn(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&Vn(r)==="[object Object]"&&(r="[object Object]"),r=String(r),n===null&&(n={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,f=o.length;c<f;c+=1)Yn(e,n,o[c],i);else Yn(e,n,o,i);else!e.json&&!he.call(i,r)&&he.call(n,r)&&(e.line=l||e.line,e.lineStart=s||e.lineStart,e.position=a||e.position,k(e,"duplicated mapping key")),Wi(n,r,o),delete i[r];return n}function En(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):k(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function D(e,n,i){for(var t=0,r=e.input.charCodeAt(e.position);r!==0;){for(;ge(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ie(r))for(En(e),r=e.input.charCodeAt(e.position),t++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return i!==-1&&t!==0&&e.lineIndent<i&&ze(e,"deficient indentation"),t}function Xe(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||Y(i)))}function On(e,n){n===1?e.result+=" ":n>1&&(e.result+=M.repeat(`
32
+ `,n-1))}function Fl(e,n,i){var t,r,o,l,s,a,c,f,u=e.kind,d=e.result,g;if(g=e.input.charCodeAt(e.position),Y(g)||xe(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(r=e.input.charCodeAt(e.position+1),Y(r)||i&&xe(r)))return!1;for(e.kind="scalar",e.result="",o=l=e.position,s=!1;g!==0;){if(g===58){if(r=e.input.charCodeAt(e.position+1),Y(r)||i&&xe(r))break}else if(g===35){if(t=e.input.charCodeAt(e.position-1),Y(t))break}else{if(e.position===e.lineStart&&Xe(e)||i&&xe(g))break;if(ie(g))if(a=e.line,c=e.lineStart,f=e.lineIndent,D(e,!1,-1),e.lineIndent>=n){s=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=l,e.line=a,e.lineStart=c,e.lineIndent=f;break}}s&&(de(e,o,l,!1),On(e,e.line-a),o=l=e.position,s=!1),ge(g)||(l=e.position+1),g=e.input.charCodeAt(++e.position)}return de(e,o,l,!1),e.result?!0:(e.kind=u,e.result=d,!1)}function jl(e,n){var i,t,r;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(de(e,t,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)t=e.position,e.position++,r=e.position;else return!0;else ie(i)?(de(e,t,r,!0),On(e,D(e,!1,n)),t=r=e.position):e.position===e.lineStart&&Xe(e)?k(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);k(e,"unexpected end of the stream within a single quoted scalar")}function Rl(e,n){var i,t,r,o,l,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=t=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return de(e,i,e.position,!0),e.position++,!0;if(s===92){if(de(e,i,e.position,!0),s=e.input.charCodeAt(++e.position),ie(s))D(e,!1,n);else if(s<256&&Hi[s])e.result+=Bi[s],e.position++;else if((l=Tl(s))>0){for(r=l,o=0;r>0;r--)s=e.input.charCodeAt(++e.position),(l=Ol(s))>=0?o=(o<<4)+l:k(e,"expected hexadecimal character");e.result+=Nl(o),e.position++}else k(e,"unknown escape sequence");i=t=e.position}else ie(s)?(de(e,i,t,!0),On(e,D(e,!1,n)),i=t=e.position):e.position===e.lineStart&&Xe(e)?k(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}k(e,"unexpected end of the stream within a double quoted scalar")}function Dl(e,n){var i=!0,t,r,o,l=e.tag,s,a=e.anchor,c,f,u,d,g,h=Object.create(null),p,y,x,m;if(m=e.input.charCodeAt(e.position),m===91)f=93,g=!1,s=[];else if(m===123)f=125,g=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(++e.position);m!==0;){if(D(e,!0,n),m=e.input.charCodeAt(e.position),m===f)return e.position++,e.tag=l,e.anchor=a,e.kind=g?"mapping":"sequence",e.result=s,!0;i?m===44&&k(e,"expected the node content, but found ','"):k(e,"missed comma between flow collection entries"),y=p=x=null,u=d=!1,m===63&&(c=e.input.charCodeAt(e.position+1),Y(c)&&(u=d=!0,e.position++,D(e,!0,n))),t=e.line,r=e.lineStart,o=e.position,Ae(e,n,Ye,!1,!0),y=e.tag,p=e.result,D(e,!0,n),m=e.input.charCodeAt(e.position),(d||e.line===t)&&m===58&&(u=!0,m=e.input.charCodeAt(++e.position),D(e,!0,n),Ae(e,n,Ye,!1,!0),x=e.result),g?we(e,s,h,y,p,x,t,r,o):u?s.push(we(e,null,h,y,p,x,t,r,o)):s.push(p),D(e,!0,n),m=e.input.charCodeAt(e.position),m===44?(i=!0,m=e.input.charCodeAt(++e.position)):i=!1}k(e,"unexpected end of the stream within a flow collection")}function _l(e,n){var i,t,r=un,o=!1,l=!1,s=n,a=0,c=!1,f,u;if(u=e.input.charCodeAt(e.position),u===124)t=!1;else if(u===62)t=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)un===r?r=u===43?$n:Cl:k(e,"repeat of a chomping mode identifier");else if((f=Ll(u))>=0)f===0?k(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?k(e,"repeat of an indentation width identifier"):(s=n+f-1,l=!0);else break;if(ge(u)){do u=e.input.charCodeAt(++e.position);while(ge(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!ie(u)&&u!==0)}for(;u!==0;){for(En(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!l||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>s&&(s=e.lineIndent),ie(u)){a++;continue}if(e.lineIndent<s){r===$n?e.result+=M.repeat(`
33
+ `,o?1+a:a):r===un&&o&&(e.result+=`
34
+ `);break}for(t?ge(u)?(c=!0,e.result+=M.repeat(`
35
+ `,o?1+a:a)):c?(c=!1,e.result+=M.repeat(`
36
+ `,a+1)):a===0?o&&(e.result+=" "):e.result+=M.repeat(`
37
+ `,a):e.result+=M.repeat(`
38
+ `,o?1+a:a),o=!0,l=!0,a=0,i=e.position;!ie(u)&&u!==0;)u=e.input.charCodeAt(++e.position);de(e,i,e.position,!1)}return!0}function qn(e,n){var i,t=e.tag,r=e.anchor,o=[],l,s=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,k(e,"tab characters must not be used in indentation")),!(a!==45||(l=e.input.charCodeAt(e.position+1),!Y(l))));){if(s=!0,e.position++,D(e,!0,-1)&&e.lineIndent<=n){o.push(null),a=e.input.charCodeAt(e.position);continue}if(i=e.line,Ae(e,n,Di,!1,!0),o.push(e.result),D(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&a!==0)k(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return s?(e.tag=t,e.anchor=r,e.kind="sequence",e.result=o,!0):!1}function Ml(e,n,i){var t,r,o,l,s,a,c=e.tag,f=e.anchor,u={},d=Object.create(null),g=null,h=null,p=null,y=!1,x=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),m=e.input.charCodeAt(e.position);m!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,k(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),o=e.line,(m===63||m===58)&&Y(t))m===63?(y&&(we(e,u,d,g,h,null,l,s,a),g=h=p=null),x=!0,y=!0,r=!0):y?(y=!1,r=!0):k(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=t;else{if(l=e.line,s=e.lineStart,a=e.position,!Ae(e,i,Ri,!1,!0))break;if(e.line===o){for(m=e.input.charCodeAt(e.position);ge(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),Y(m)||k(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(we(e,u,d,g,h,null,l,s,a),g=h=p=null),x=!0,y=!1,r=!1,g=e.tag,h=e.result;else if(x)k(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(x)k(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===o||e.lineIndent>n)&&(y&&(l=e.line,s=e.lineStart,a=e.position),Ae(e,n,qe,!0,r)&&(y?h=e.result:p=e.result),y||(we(e,u,d,g,h,p,l,s,a),g=h=p=null),D(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>n)&&m!==0)k(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return y&&we(e,u,d,g,h,null,l,s,a),x&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=u),x}function Wl(e){var n,i=!1,t=!1,r,o,l;if(l=e.input.charCodeAt(e.position),l!==33)return!1;if(e.tag!==null&&k(e,"duplication of a tag property"),l=e.input.charCodeAt(++e.position),l===60?(i=!0,l=e.input.charCodeAt(++e.position)):l===33?(t=!0,r="!!",l=e.input.charCodeAt(++e.position)):r="!",n=e.position,i){do l=e.input.charCodeAt(++e.position);while(l!==0&&l!==62);e.position<e.length?(o=e.input.slice(n,e.position),l=e.input.charCodeAt(++e.position)):k(e,"unexpected end of the stream within a verbatim tag")}else{for(;l!==0&&!Y(l);)l===33&&(t?k(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(n-1,e.position+1),_i.test(r)||k(e,"named tag handle cannot contain such characters"),t=!0,n=e.position+1)),l=e.input.charCodeAt(++e.position);o=e.input.slice(n,e.position),El.test(o)&&k(e,"tag suffix cannot contain flow indicator characters")}o&&!Mi.test(o)&&k(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{k(e,"tag name is malformed: "+o)}return i?e.tag=o:he.call(e.tagMap,r)?e.tag=e.tagMap[r]+o:r==="!"?e.tag="!"+o:r==="!!"?e.tag="tag:yaml.org,2002:"+o:k(e,'undeclared tag handle "'+r+'"'),!0}function Hl(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&k(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!Y(i)&&!xe(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&k(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Bl(e){var n,i,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!Y(t)&&!xe(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&k(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),he.call(e.anchorMap,i)||k(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],D(e,!0,-1),!0}function Ae(e,n,i,t,r){var o,l,s,a=1,c=!1,f=!1,u,d,g,h,p,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=l=s=qe===i||Di===i,t&&D(e,!0,-1)&&(c=!0,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)),a===1)for(;Wl(e)||Hl(e);)D(e,!0,-1)?(c=!0,s=o,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)):s=!1;if(s&&(s=c||r),(a===1||qe===i)&&(Ye===i||Ri===i?p=n:p=n+1,y=e.position-e.lineStart,a===1?s&&(qn(e,y)||Ml(e,y,p))||Dl(e,p)?f=!0:(l&&_l(e,p)||jl(e,p)||Rl(e,p)?f=!0:Bl(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&k(e,"alias node should not have any properties")):Fl(e,p,Ye===i)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(f=s&&qn(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&k(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,d=e.implicitTypes.length;u<d;u+=1)if(h=e.implicitTypes[u],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(he.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,g=e.typeMap.multi[e.kind||"fallback"],u=0,d=g.length;u<d;u+=1)if(e.tag.slice(0,g[u].tag.length)===g[u].tag){h=g[u];break}h||k(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&k(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):k(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function Pl(e){var n=e.position,i,t,r,o=!1,l;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(l=e.input.charCodeAt(e.position))!==0&&(D(e,!0,-1),l=e.input.charCodeAt(e.position),!(e.lineIndent>0||l!==37));){for(o=!0,l=e.input.charCodeAt(++e.position),i=e.position;l!==0&&!Y(l);)l=e.input.charCodeAt(++e.position);for(t=e.input.slice(i,e.position),r=[],t.length<1&&k(e,"directive name must not be less than one character in length");l!==0;){for(;ge(l);)l=e.input.charCodeAt(++e.position);if(l===35){do l=e.input.charCodeAt(++e.position);while(l!==0&&!ie(l));break}if(ie(l))break;for(i=e.position;l!==0&&!Y(l);)l=e.input.charCodeAt(++e.position);r.push(e.input.slice(i,e.position))}l!==0&&En(e),he.call(Un,t)?Un[t](e,t,r):ze(e,'unknown document directive "'+t+'"')}if(D(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,D(e,!0,-1)):o&&k(e,"directives end mark is expected"),Ae(e,e.lineIndent-1,qe,!1,!0),D(e,!0,-1),e.checkLineBreaks&&Sl.test(e.input.slice(n,e.position))&&ze(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Xe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,D(e,!0,-1));return}if(e.position<e.length-1)k(e,"end of the stream or a document separator is expected");else return}function $l(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
39
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new Il(e,n),t=e.indexOf("\0");for(t!==-1&&(i.position=t,k(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Pl(i);return i.documents}function Vl(e,n){var i=$l(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new U("expected a single document in the stream, but found more")}}var Gl=Vl,Ul={load:Gl},$i=Object.prototype.toString,Vi=Object.prototype.hasOwnProperty,Tn=65279,Yl=9,Fe=10,ql=13,zl=32,Jl=33,Kl=34,mn=35,Zl=37,Ql=38,Xl=39,eo=42,Gi=44,no=45,Je=58,io=61,to=62,ro=63,lo=64,Ui=91,Yi=93,oo=96,qi=123,so=124,zi=125,V={};V[0]="\\0";V[7]="\\a";V[8]="\\b";V[9]="\\t";V[10]="\\n";V[11]="\\v";V[12]="\\f";V[13]="\\r";V[27]="\\e";V[34]='\\"';V[92]="\\\\";V[133]="\\N";V[160]="\\_";V[8232]="\\L";V[8233]="\\P";var ao=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],uo=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function co(e,n){var i,t,r,o,l,s,a;if(n===null)return{};for(i={},t=Object.keys(n),r=0,o=t.length;r<o;r+=1)l=t[r],s=String(n[l]),l.slice(0,2)==="!!"&&(l="tag:yaml.org,2002:"+l.slice(2)),a=e.compiledTypeMap.fallback[l],a&&Vi.call(a.styleAliases,s)&&(s=a.styleAliases[s]),i[l]=s;return i}function fo(e){var n,i,t;if(n=e.toString(16).toUpperCase(),e<=255)i="x",t=2;else if(e<=65535)i="u",t=4;else if(e<=4294967295)i="U",t=8;else throw new U("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+M.repeat("0",t-n.length)+n}var ho=1,je=2;function po(e){this.schema=e.schema||ji,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=M.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=co(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?je:ho,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function zn(e,n){for(var i=M.repeat(" ",n),t=0,r=-1,o="",l,s=e.length;t<s;)r=e.indexOf(`
40
+ `,t),r===-1?(l=e.slice(t),t=s):(l=e.slice(t,r+1),t=r+1),l.length&&l!==`
41
+ `&&(o+=i),o+=l;return o}function vn(e,n){return`
42
+ `+M.repeat(" ",e.indent*n)}function go(e,n){var i,t,r;for(i=0,t=e.implicitTypes.length;i<t;i+=1)if(r=e.implicitTypes[i],r.resolve(n))return!0;return!1}function Ke(e){return e===zl||e===Yl}function Re(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Tn||65536<=e&&e<=1114111}function Jn(e){return Re(e)&&e!==Tn&&e!==ql&&e!==Fe}function Kn(e,n,i){var t=Jn(e),r=t&&!Ke(e);return(i?t:t&&e!==Gi&&e!==Ui&&e!==Yi&&e!==qi&&e!==zi)&&e!==mn&&!(n===Je&&!r)||Jn(n)&&!Ke(n)&&e===mn||n===Je&&r}function mo(e){return Re(e)&&e!==Tn&&!Ke(e)&&e!==no&&e!==ro&&e!==Je&&e!==Gi&&e!==Ui&&e!==Yi&&e!==qi&&e!==zi&&e!==mn&&e!==Ql&&e!==eo&&e!==Jl&&e!==so&&e!==io&&e!==to&&e!==Xl&&e!==Kl&&e!==Zl&&e!==lo&&e!==oo}function vo(e){return!Ke(e)&&e!==Je}function Le(e,n){var i=e.charCodeAt(n),t;return i>=55296&&i<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1),t>=56320&&t<=57343)?(i-55296)*1024+t-56320+65536:i}function Ji(e){var n=/^\n* /;return n.test(e)}var Ki=1,yn=2,Zi=3,Qi=4,ye=5;function yo(e,n,i,t,r,o,l,s){var a,c=0,f=null,u=!1,d=!1,g=t!==-1,h=-1,p=mo(Le(e,0))&&vo(Le(e,e.length-1));if(n||l)for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Le(e,a),!Re(c))return ye;p=p&&Kn(c,f,s),f=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(c=Le(e,a),c===Fe)u=!0,g&&(d=d||a-h-1>t&&e[h+1]!==" ",h=a);else if(!Re(c))return ye;p=p&&Kn(c,f,s),f=c}d=d||g&&a-h-1>t&&e[h+1]!==" "}return!u&&!d?p&&!l&&!r(e)?Ki:o===je?ye:yn:i>9&&Ji(e)?ye:l?o===je?ye:yn:d?Qi:Zi}function xo(e,n,i,t,r){e.dump=(function(){if(n.length===0)return e.quotingType===je?'""':"''";if(!e.noCompatMode&&(ao.indexOf(n)!==-1||uo.test(n)))return e.quotingType===je?'"'+n+'"':"'"+n+"'";var o=e.indent*Math.max(1,i),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=t||e.flowLevel>-1&&i>=e.flowLevel;function a(c){return go(e,c)}switch(yo(n,s,e.indent,l,a,e.quotingType,e.forceQuotes&&!t,r)){case Ki:return n;case yn:return"'"+n.replace(/'/g,"''")+"'";case Zi:return"|"+Zn(n,e.indent)+Qn(zn(n,o));case Qi:return">"+Zn(n,e.indent)+Qn(zn(wo(n,l),o));case ye:return'"'+bo(n)+'"';default:throw new U("impossible error: invalid scalar style")}})()}function Zn(e,n){var i=Ji(e)?String(n):"",t=e[e.length-1]===`
43
+ `,r=t&&(e[e.length-2]===`
44
+ `||e===`
45
+ `),o=r?"+":t?"":"-";return i+o+`
46
+ `}function Qn(e){return e[e.length-1]===`
47
+ `?e.slice(0,-1):e}function wo(e,n){for(var i=/(\n+)([^\n]*)/g,t=(function(){var c=e.indexOf(`
48
+ `);return c=c!==-1?c:e.length,i.lastIndex=c,Xn(e.slice(0,c),n)})(),r=e[0]===`
49
+ `||e[0]===" ",o,l;l=i.exec(e);){var s=l[1],a=l[2];o=a[0]===" ",t+=s+(!r&&!o&&a!==""?`
50
+ `:"")+Xn(a,n),r=o}return t}function Xn(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,t,r=0,o,l=0,s=0,a="";t=i.exec(e);)s=t.index,s-r>n&&(o=l>r?l:s,a+=`
51
+ `+e.slice(r,o),r=o+1),l=s;return a+=`
52
+ `,e.length-r>n&&l>r?a+=e.slice(r,l)+`
53
+ `+e.slice(l+1):a+=e.slice(r),a.slice(1)}function bo(e){for(var n="",i=0,t,r=0;r<e.length;i>=65536?r+=2:r++)i=Le(e,r),t=V[i],!t&&Re(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||fo(i);return n}function Ao(e,n,i){var t="",r=e.tag,o,l,s;for(o=0,l=i.length;o<l;o+=1)s=i[o],e.replacer&&(s=e.replacer.call(i,String(o),s)),(se(e,n,s,!1,!1)||typeof s>"u"&&se(e,n,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=r,e.dump="["+t+"]"}function ei(e,n,i,t){var r="",o=e.tag,l,s,a;for(l=0,s=i.length;l<s;l+=1)a=i[l],e.replacer&&(a=e.replacer.call(i,String(l),a)),(se(e,n+1,a,!0,!0,!1,!0)||typeof a>"u"&&se(e,n+1,null,!0,!0,!1,!0))&&((!t||r!=="")&&(r+=vn(e,n)),e.dump&&Fe===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=o,e.dump=r||"[]"}function Co(e,n,i){var t="",r=e.tag,o=Object.keys(i),l,s,a,c,f;for(l=0,s=o.length;l<s;l+=1)f="",t!==""&&(f+=", "),e.condenseFlow&&(f+='"'),a=o[l],c=i[a],e.replacer&&(c=e.replacer.call(i,a,c)),se(e,n,a,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),se(e,n,c,!1,!1)&&(f+=e.dump,t+=f));e.tag=r,e.dump="{"+t+"}"}function ko(e,n,i,t){var r="",o=e.tag,l=Object.keys(i),s,a,c,f,u,d;if(e.sortKeys===!0)l.sort();else if(typeof e.sortKeys=="function")l.sort(e.sortKeys);else if(e.sortKeys)throw new U("sortKeys must be a boolean or a function");for(s=0,a=l.length;s<a;s+=1)d="",(!t||r!=="")&&(d+=vn(e,n)),c=l[s],f=i[c],e.replacer&&(f=e.replacer.call(i,c,f)),se(e,n+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Fe===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=vn(e,n)),se(e,n+1,f,!0,u)&&(e.dump&&Fe===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,r+=d));e.tag=o,e.dump=r||"{}"}function ni(e,n,i){var t,r,o,l,s,a;for(r=i?e.explicitTypes:e.implicitTypes,o=0,l=r.length;o<l;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof n=="object"&&n instanceof s.instanceOf)&&(!s.predicate||s.predicate(n))){if(i?s.multi&&s.representName?e.tag=s.representName(n):e.tag=s.tag:e.tag="?",s.represent){if(a=e.styleMap[s.tag]||s.defaultStyle,$i.call(s.represent)==="[object Function]")t=s.represent(n,a);else if(Vi.call(s.represent,a))t=s.represent[a](n,a);else throw new U("!<"+s.tag+'> tag resolver accepts not "'+a+'" style');e.dump=t}return!0}return!1}function se(e,n,i,t,r,o,l){e.tag=null,e.dump=i,ni(e,i,!1)||ni(e,i,!0);var s=$i.call(e.dump),a=t,c;t&&(t=e.flowLevel<0||e.flowLevel>n);var f=s==="[object Object]"||s==="[object Array]",u,d;if(f&&(u=e.duplicates.indexOf(i),d=u!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&n>0)&&(r=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(f&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")t&&Object.keys(e.dump).length!==0?(ko(e,n,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(Co(e,n,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?ei(e,n-1,e.dump,r):ei(e,n,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(Ao(e,n,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&xo(e,e.dump,n,o,a);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new U("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function So(e,n){var i=[],t=[],r,o;for(xn(e,i,t),r=0,o=t.length;r<o;r+=1)n.duplicates.push(i[t[r]]);n.usedDuplicates=new Array(o)}function xn(e,n,i){var t,r,o;if(e!==null&&typeof e=="object")if(r=n.indexOf(e),r!==-1)i.indexOf(r)===-1&&i.push(r);else if(n.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)xn(e[r],n,i);else for(t=Object.keys(e),r=0,o=t.length;r<o;r+=1)xn(e[t[r]],n,i)}function Eo(e,n){n=n||{};var i=new po(n);i.noRefs||So(e,i);var t=e;return i.replacer&&(t=i.replacer.call({"":t},"",t)),se(i,0,t,!0,!0)?i.dump+`
54
+ `:""}var Oo=Eo,To={dump:Oo},ii=Ul.load,wn=To.dump;const Lo='(()=>{var Si=Object.defineProperty;var bi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error(\'Dynamic require of "\'+e+\'" is not supported\')});var _i=(e,n)=>{for(var i in n)Si(e,i,{get:n[i],enumerable:!0})};var $e={};_i($e,{Diff:()=>b,FILE_HEADERS_ONLY:()=>_n,INCLUDE_HEADERS:()=>Ue,OMIT_HEADERS:()=>Ln,applyPatch:()=>je,applyPatches:()=>bn,arrayDiff:()=>Pe,canonicalize:()=>V,characterDiff:()=>ye,convertChangesToDMP:()=>On,convertChangesToXML:()=>In,createPatch:()=>Fn,createTwoFilesPatch:()=>Ye,cssDiff:()=>Ne,diffArrays:()=>wn,diffChars:()=>sn,diffCss:()=>yn,diffJson:()=>An,diffLines:()=>N,diffSentences:()=>vn,diffTrimmedLines:()=>xn,diffWords:()=>mn,diffWordsWithSpace:()=>Le,formatPatch:()=>ee,jsonDiff:()=>Re,lineDiff:()=>ce,parsePatch:()=>Z,reversePatch:()=>Be,sentenceDiff:()=>ke,structuredPatch:()=>ae,wordDiff:()=>be,wordsWithSpaceDiff:()=>_e});var b=class{diff(n,i,r={}){let l;typeof r=="function"?(l=r,r={}):"callback"in r&&(l=r.callback);let t=this.castInput(n,r),o=this.castInput(i,r),u=this.removeEmpty(this.tokenize(t,r)),f=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(u,f,r,l)}diffWithOptionsObj(n,i,r,l){var t;let o=m=>{if(m=this.postProcess(m,r),l){setTimeout(function(){l(m)},0);return}else return m},u=i.length,f=n.length,c=1,s=u+f;r.maxEditLength!=null&&(s=Math.min(s,r.maxEditLength));let a=(t=r.timeout)!==null&&t!==void 0?t:1/0,p=Date.now()+a,d=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(d[0],i,n,0,r);if(d[0].oldPos+1>=f&&h+1>=u)return o(this.buildValues(d[0].lastComponent,i,n));let g=-1/0,y=1/0,w=()=>{for(let m=Math.max(g,-c);m<=Math.min(y,c);m+=2){let x,A=d[m-1],C=d[m+1];A&&(d[m-1]=void 0);let F=!1;if(C){let S=C.oldPos-m;F=C&&0<=S&&S<u}let E=A&&A.oldPos+1<f;if(!F&&!E){d[m]=void 0;continue}if(!E||F&&A.oldPos<C.oldPos?x=this.addToPath(C,!0,!1,0,r):x=this.addToPath(A,!1,!0,1,r),h=this.extractCommon(x,i,n,m,r),x.oldPos+1>=f&&h+1>=u)return o(this.buildValues(x.lastComponent,i,n))||!0;d[m]=x,x.oldPos+1>=f&&(y=Math.min(y,m-1)),h+1>=u&&(g=Math.max(g,m+1))}c++};if(l)(function m(){setTimeout(function(){if(c>s||Date.now()>p)return l(void 0);w()||m()},0)})();else for(;c<=s&&Date.now()<=p;){let m=w();if(m)return m}}addToPath(n,i,r,l,t){let o=n.lastComponent;return o&&!t.oneChangePerToken&&o.added===i&&o.removed===r?{oldPos:n.oldPos+l,lastComponent:{count:o.count+1,added:i,removed:r,previousComponent:o.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:i,removed:r,previousComponent:o}}}extractCommon(n,i,r,l,t){let o=i.length,u=r.length,f=n.oldPos,c=f-l,s=0;for(;c+1<o&&f+1<u&&this.equals(r[f+1],i[c+1],t);)c++,f++,s++,t.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return s&&!t.oneChangePerToken&&(n.lastComponent={count:s,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=f,c}equals(n,i,r){return r.comparator?r.comparator(n,i):n===i||!!r.ignoreCase&&n.toLowerCase()===i.toLowerCase()}removeEmpty(n){let i=[];for(let r=0;r<n.length;r++)n[r]&&i.push(n[r]);return i}castInput(n,i){return n}tokenize(n,i){return Array.from(n)}join(n){return n.join("")}postProcess(n,i){return n}get useLongestToken(){return!1}buildValues(n,i,r){let l=[],t;for(;n;)l.push(n),t=n.previousComponent,delete n.previousComponent,n=t;l.reverse();let o=l.length,u=0,f=0,c=0;for(;u<o;u++){let s=l[u];if(s.removed)s.value=this.join(r.slice(c,c+s.count)),c+=s.count;else{if(!s.added&&this.useLongestToken){let a=i.slice(f,f+s.count);a=a.map(function(p,d){let h=r[c+d];return h.length>p.length?h:p}),s.value=this.join(a)}else s.value=this.join(i.slice(f,f+s.count));f+=s.count,s.added||(c+=s.count)}}return l}};var ve=class extends b{},ye=new ve;function sn(e,n,i){return ye.diff(e,n,i)}function Ae(e,n){let i;for(i=0;i<e.length&&i<n.length;i++)if(e[i]!=n[i])return e.slice(0,i);return e.slice(0,i)}function we(e,n){let i;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(i=0;i<e.length&&i<n.length;i++)if(e[e.length-(i+1)]!=n[n.length-(i+1)])return e.slice(-i);return e.slice(-i)}function te(e,n,i){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn\'t start with prefix ${JSON.stringify(n)}; this is a bug`);return i+e.slice(n.length)}function ue(e,n,i){if(!n)return e+i;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn\'t end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+i}function q(e,n){return te(e,n,"")}function X(e,n){return ue(e,n,"")}function Ce(e,n){return n.slice(0,Li(e,n))}function Li(e,n){let i=0;e.length>n.length&&(i=e.length-n.length);let r=n.length;e.length<n.length&&(r=e.length);let l=Array(r),t=0;l[0]=0;for(let o=1;o<r;o++){for(n[o]==n[t]?l[o]=l[t]:l[o]=t;t>0&&n[o]!=n[t];)t=l[t];n[o]==n[t]&&t++}t=0;for(let o=i;o<e.length;o++){for(;t>0&&e[o]!=n[t];)t=l[t];e[o]==n[t]&&t++}return t}function pn(e){return e.includes(`\\r\n`)&&!e.startsWith(`\n`)&&!e.match(/[^\\r]\\n/)}function dn(e){return!e.includes(`\\r\n`)&&e.includes(`\n`)}function z(e){let n;for(n=e.length-1;n>=0&&e[n].match(/\\s/);n--);return e.substring(n+1)}function M(e){let n=e.match(/^\\s*/);return n?n[0]:""}var fe="a-zA-Z0-9_\\\\u{AD}\\\\u{C0}-\\\\u{D6}\\\\u{D8}-\\\\u{F6}\\\\u{F8}-\\\\u{2C6}\\\\u{2C8}-\\\\u{2D7}\\\\u{2DE}-\\\\u{2FF}\\\\u{1E00}-\\\\u{1EFF}",Fi=new RegExp(`[${fe}]+|\\\\s+|[^${fe}]`,"ug"),Ee=class extends b{equals(n,i,r){return r.ignoreCase&&(n=n.toLowerCase(),i=i.toLowerCase()),n.trim()===i.trim()}tokenize(n,i={}){let r;if(i.intlSegmenter){let o=i.intlSegmenter;if(o.resolvedOptions().granularity!="word")throw new Error(\'The segmenter passed must have a granularity of "word"\');r=[];for(let u of Array.from(o.segment(n))){let f=u.segment;r.length&&/\\s/.test(r[r.length-1])&&/\\s/.test(f)?r[r.length-1]+=f:r.push(f)}}else r=n.match(Fi)||[];let l=[],t=null;return r.forEach(o=>{/\\s/.test(o)?t==null?l.push(o):l.push(l.pop()+o):t!=null&&/\\s/.test(t)?l[l.length-1]==t?l.push(l.pop()+o):l.push(t+o):l.push(o),t=o}),l}join(n){return n.map((i,r)=>r==0?i:i.replace(/^\\s+/,"")).join("")}postProcess(n,i){if(!n||i.oneChangePerToken)return n;let r=null,l=null,t=null;return n.forEach(o=>{o.added?l=o:o.removed?t=o:((l||t)&&hn(r,t,l,o),r=o,l=null,t=null)}),(l||t)&&hn(r,t,l,null),n}},be=new Ee;function mn(e,n,i){return i?.ignoreWhitespace!=null&&!i.ignoreWhitespace?Le(e,n,i):be.diff(e,n,i)}function hn(e,n,i,r){if(n&&i){let l=M(n.value),t=z(n.value),o=M(i.value),u=z(i.value);if(e){let f=Ae(l,o);e.value=ue(e.value,o,f),n.value=q(n.value,f),i.value=q(i.value,f)}if(r){let f=we(t,u);r.value=te(r.value,u,f),n.value=X(n.value,f),i.value=X(i.value,f)}}else if(i){if(e){let l=M(i.value);i.value=i.value.substring(l.length)}if(r){let l=M(r.value);r.value=r.value.substring(l.length)}}else if(e&&r){let l=M(r.value),t=M(n.value),o=z(n.value),u=Ae(l,t);n.value=q(n.value,u);let f=we(q(l,u),o);n.value=X(n.value,f),r.value=te(r.value,l,f),e.value=ue(e.value,l,l.slice(0,l.length-f.length))}else if(r){let l=M(r.value),t=z(n.value),o=Ce(t,l);n.value=X(n.value,o)}else if(e){let l=z(e.value),t=M(n.value),o=Ce(l,t);n.value=q(n.value,o)}}var Se=class extends b{tokenize(n){let i=new RegExp(`(\\\\r?\\\\n)|[${fe}]+|[^\\\\S\\\\n\\\\r]+|[^${fe}]`,"ug");return n.match(i)||[]}},_e=new Se;function Le(e,n,i){return _e.diff(e,n,i)}function gn(e,n){if(typeof e=="function")n.callback=e;else if(e)for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}var Fe=class extends b{constructor(){super(...arguments),this.tokenize=Oe}equals(n,i,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`\n`))&&(n=n.trim()),(!r.newlineIsToken||!i.includes(`\n`))&&(i=i.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`\n`)&&(n=n.slice(0,-1)),i.endsWith(`\n`)&&(i=i.slice(0,-1))),super.equals(n,i,r)}},ce=new Fe;function N(e,n,i){return ce.diff(e,n,i)}function xn(e,n,i){return i=gn(i,{ignoreWhitespace:!0}),ce.diff(e,n,i)}function Oe(e,n){n.stripTrailingCr&&(e=e.replace(/\\r\\n/g,`\n`));let i=[],r=e.split(/(\\n|\\r\\n)/);r[r.length-1]||r.pop();for(let l=0;l<r.length;l++){let t=r[l];l%2&&!n.newlineIsToken?i[i.length-1]+=t:i.push(t)}return i}function Oi(e){return e=="."||e=="!"||e=="?"}var Ie=class extends b{tokenize(n){var i;let r=[],l=0;for(let t=0;t<n.length;t++){if(t==n.length-1){r.push(n.slice(l));break}if(Oi(n[t])&&n[t+1].match(/\\s/)){for(r.push(n.slice(l,t+1)),t=l=t+1;!((i=n[t+1])===null||i===void 0)&&i.match(/\\s/);)t++;r.push(n.slice(l,t+1)),l=t+1}}return r}},ke=new Ie;function vn(e,n,i){return ke.diff(e,n,i)}var Te=class extends b{tokenize(n){return n.split(/([{}:;,]|\\s+)/)}},Ne=new Te;function yn(e,n,i){return Ne.diff(e,n,i)}var De=class extends b{constructor(){super(...arguments),this.tokenize=Oe}get useLongestToken(){return!0}castInput(n,i){let{undefinedReplacement:r,stringifyReplacer:l=(t,o)=>typeof o>"u"?r:o}=i;return typeof n=="string"?n:JSON.stringify(V(n,null,null,l),null," ")}equals(n,i,r){return super.equals(n.replace(/,([\\r\\n])/g,"$1"),i.replace(/,([\\r\\n])/g,"$1"),r)}},Re=new De;function An(e,n,i){return Re.diff(e,n,i)}function V(e,n,i,r,l){n=n||[],i=i||[],r&&(e=r(l===void 0?"":l,e));let t;for(t=0;t<n.length;t+=1)if(n[t]===e)return i[t];let o;if(Object.prototype.toString.call(e)==="[object Array]"){for(n.push(e),o=new Array(e.length),i.push(o),t=0;t<e.length;t+=1)o[t]=V(e[t],n,i,r,String(t));return n.pop(),i.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){n.push(e),o={},i.push(o);let u=[],f;for(f in e)Object.prototype.hasOwnProperty.call(e,f)&&u.push(f);for(u.sort(),t=0;t<u.length;t+=1)f=u[t],o[f]=V(e[f],n,i,r,f);n.pop(),i.pop()}else o=e;return o}var Me=class extends b{tokenize(n){return n.slice()}join(n){return n}removeEmpty(n){return n}},Pe=new Me;function wn(e,n,i){return Pe.diff(e,n,i)}function We(e){return Array.isArray(e)?e.map(n=>We(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map((i,r)=>{var l;return i.startsWith("\\\\")||i.endsWith("\\r")||!((l=n.lines[r+1])===null||l===void 0)&&l.startsWith("\\\\")?i:i+"\\r"})}))})}function He(e){return Array.isArray(e)?e.map(n=>He(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map(i=>i.endsWith("\\r")?i.substring(0,i.length-1):i)}))})}function Cn(e){return Array.isArray(e)||(e=[e]),!e.some(n=>n.hunks.some(i=>i.lines.some(r=>!r.startsWith("\\\\")&&r.endsWith("\\r"))))}function En(e){return Array.isArray(e)||(e=[e]),e.some(n=>n.hunks.some(i=>i.lines.some(r=>r.endsWith("\\r"))))&&e.every(n=>n.hunks.every(i=>i.lines.every((r,l)=>{var t;return r.startsWith("\\\\")||r.endsWith("\\r")||((t=i.lines[l+1])===null||t===void 0?void 0:t.startsWith("\\\\"))})))}function Z(e){let n=e.split(/\\n/),i=[],r=0;function l(){let u={};for(i.push(u);r<n.length;){let f=n[r];if(/^(---|\\+\\+\\+|@@)\\s/.test(f))break;let c=/^(?:Index:|diff(?: -r \\w+)+)\\s+/.exec(f);c&&(u.index=f.substring(c[0].length).trim()),r++}for(t(u),t(u),u.hunks=[];r<n.length;){let f=n[r];if(/^(Index:\\s|diff\\s|---\\s|\\+\\+\\+\\s|===================================================================)/.test(f))break;if(/^@@/.test(f))u.hunks.push(o());else{if(f)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(f));r++}}}function t(u){let f=/^(---|\\+\\+\\+)\\s+/.exec(n[r]);if(f){let c=f[1],s=n[r].substring(3).trim().split(" ",2),a=(s[1]||"").trim(),p=s[0].replace(/\\\\\\\\/g,"\\\\");p.startsWith(\'"\')&&p.endsWith(\'"\')&&(p=p.substr(1,p.length-2)),c==="---"?(u.oldFileName=p,u.oldHeader=a):(u.newFileName=p,u.newHeader=a),r++}}function o(){var u;let f=r,c=n[r++],s=c.split(/@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@/),a={oldStart:+s[1],oldLines:typeof s[2]>"u"?1:+s[2],newStart:+s[3],newLines:typeof s[4]>"u"?1:+s[4],lines:[]};a.oldLines===0&&(a.oldStart+=1),a.newLines===0&&(a.newStart+=1);let p=0,d=0;for(;r<n.length&&(d<a.oldLines||p<a.newLines||!((u=n[r])===null||u===void 0)&&u.startsWith("\\\\"));r++){let h=n[r].length==0&&r!=n.length-1?" ":n[r][0];if(h==="+"||h==="-"||h===" "||h==="\\\\")a.lines.push(n[r]),h==="+"?p++:h==="-"?d++:h===" "&&(p++,d++);else throw new Error(`Hunk at line ${f+1} contained invalid line ${n[r]}`)}if(!p&&a.newLines===1&&(a.newLines=0),!d&&a.oldLines===1&&(a.oldLines=0),p!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(f+1));if(d!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(f+1));return a}for(;r<n.length;)l();return i}function Sn(e,n,i){let r=!0,l=!1,t=!1,o=1;return function u(){if(r&&!t){if(l?o++:r=!1,e+o<=i)return e+o;t=!0}if(!l)return t||(r=!0),n<=e-o?e-o++:(l=!0,u())}}function je(e,n,i={}){let r;if(typeof n=="string"?r=Z(n):Array.isArray(n)?r=n:r=[n],r.length>1)throw new Error("applyPatch only works with a single input.");return Ii(e,r[0],i)}function Ii(e,n,i={}){(i.autoConvertLineEndings||i.autoConvertLineEndings==null)&&(pn(e)&&Cn(n)?n=We(n):dn(e)&&En(n)&&(n=He(n)));let r=e.split(`\n`),l=n.hunks,t=i.compareLine||((h,g,y,w)=>g===w),o=i.fuzzFactor||0,u=0;if(o<0||!Number.isInteger(o))throw new Error("fuzzFactor must be a non-negative integer");if(!l.length)return e;let f="",c=!1,s=!1;for(let h=0;h<l[l.length-1].lines.length;h++){let g=l[l.length-1].lines[h];g[0]=="\\\\"&&(f[0]=="+"?c=!0:f[0]=="-"&&(s=!0)),f=g}if(c){if(s){if(!o&&r[r.length-1]=="")return!1}else if(r[r.length-1]=="")r.pop();else if(!o)return!1}else if(s){if(r[r.length-1]!="")r.push("");else if(!o)return!1}function a(h,g,y,w=0,m=!0,x=[],A=0){let C=0,F=!1;for(;w<h.length;w++){let E=h[w],S=E.length>0?E[0]:" ",$=E.length>0?E.substr(1):E;if(S==="-")if(t(g+1,r[g],S,$))g++,C=0;else return!y||r[g]==null?null:(x[A]=r[g],a(h,g+1,y-1,w,!1,x,A+1));if(S==="+"){if(!m)return null;x[A]=$,A++,C=0,F=!0}if(S===" ")if(C++,x[A]=r[g],t(g+1,r[g],S,$))A++,m=!0,F=!1,g++;else return F||!y?null:r[g]&&(a(h,g+1,y-1,w+1,!1,x,A+1)||a(h,g+1,y-1,w,!1,x,A+1))||a(h,g,y-1,w+1,!1,x,A)}return A-=C,g-=C,x.length=A,{patchedLines:x,oldLineLastI:g-1}}let p=[],d=0;for(let h=0;h<l.length;h++){let g=l[h],y,w=r.length-g.oldLines+o,m;for(let x=0;x<=o;x++){m=g.oldStart+d-1;let A=Sn(m,u,w);for(;m!==void 0&&(y=a(g.lines,m,x),!y);m=A());if(y)break}if(!y)return!1;for(let x=u;x<m;x++)p.push(r[x]);for(let x=0;x<y.patchedLines.length;x++){let A=y.patchedLines[x];p.push(A)}u=y.oldLineLastI+1,d=m+1-g.oldStart}for(let h=u;h<r.length;h++)p.push(r[h]);return p.join(`\n`)}function bn(e,n){let i=typeof e=="string"?Z(e):e,r=0;function l(){let t=i[r++];if(!t)return n.complete();n.loadFile(t,function(o,u){if(o)return n.complete(o);let f=je(u,t,n);n.patched(t,f,function(c){if(c)return n.complete(c);l()})})}l()}function Be(e){return Array.isArray(e)?e.map(n=>Be(n)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(n=>({oldLines:n.newLines,oldStart:n.newStart,newLines:n.oldLines,newStart:n.oldStart,lines:n.lines.map(i=>i.startsWith("-")?`+${i.slice(1)}`:i.startsWith("+")?`-${i.slice(1)}`:i)}))})}var Ue={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},_n={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},Ln={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function ae(e,n,i,r,l,t,o){let u;o?typeof o=="function"?u={callback:o}:u=o:u={},typeof u.context>"u"&&(u.context=4);let f=u.context;if(u.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(u.callback){let{callback:s}=u;N(i,r,Object.assign(Object.assign({},u),{callback:a=>{let p=c(a);s(p)}}))}else return c(N(i,r,u));function c(s){if(!s)return;s.push({value:"",lines:[]});function a(m){return m.map(function(x){return" "+x})}let p=[],d=0,h=0,g=[],y=1,w=1;for(let m=0;m<s.length;m++){let x=s[m],A=x.lines||ki(x.value);if(x.lines=A,x.added||x.removed){if(!d){let C=s[m-1];d=y,h=w,C&&(g=f>0?a(C.lines.slice(-f)):[],d-=g.length,h-=g.length)}for(let C of A)g.push((x.added?"+":"-")+C);x.added?w+=A.length:y+=A.length}else{if(d)if(A.length<=f*2&&m<s.length-2)for(let C of a(A))g.push(C);else{let C=Math.min(A.length,f);for(let E of a(A.slice(0,C)))g.push(E);let F={oldStart:d,oldLines:y-d+C,newStart:h,newLines:w-h+C,lines:g};p.push(F),d=0,h=0,g=[]}y+=A.length,w+=A.length}}for(let m of p)for(let x=0;x<m.lines.length;x++)m.lines[x].endsWith(`\n`)?m.lines[x]=m.lines[x].slice(0,-1):(m.lines.splice(x+1,0,"\\\"),x++);return{oldFileName:e,newFileName:n,oldHeader:l,newHeader:t,hunks:p}}}function ee(e,n){if(n||(n=Ue),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(r=>ee(r,n)).join(`\n`)}let i=[];n.includeIndex&&e.oldFileName==e.newFileName&&i.push("Index: "+e.oldFileName),n.includeUnderline&&i.push("==================================================================="),n.includeFileHeaders&&(i.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),i.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader)));for(let r=0;r<e.hunks.length;r++){let l=e.hunks[r];l.oldLines===0&&(l.oldStart-=1),l.newLines===0&&(l.newStart-=1),i.push("@@ -"+l.oldStart+","+l.oldLines+" +"+l.newStart+","+l.newLines+" @@");for(let t of l.lines)i.push(t)}return i.join(`\n`)+`\n`}function Ye(e,n,i,r,l,t,o){if(typeof o=="function"&&(o={callback:o}),o?.callback){let{callback:u}=o;ae(e,n,i,r,l,t,Object.assign(Object.assign({},o),{callback:f=>{u(f?ee(f,o.headerOptions):void 0)}}))}else{let u=ae(e,n,i,r,l,t,o);return u?ee(u,o?.headerOptions):void 0}}function Fn(e,n,i,r,l,t){return Ye(e,e,n,i,r,l,t)}function ki(e){let n=e.endsWith(`\n`),i=e.split(`\n`).map(r=>r+`\n`);return n?i.pop():i.push(i.pop().slice(0,-1)),i}function On(e){let n=[],i,r;for(let l=0;l<e.length;l++)i=e[l],i.added?r=1:i.removed?r=-1:r=0,n.push([r,i.value]);return n}function In(e){let n=[];for(let i=0;i<e.length;i++){let r=e[i];r.added?n.push("<ins>"):r.removed&&n.push("<del>"),n.push(Ti(r.value)),r.added?n.push("</ins>"):r.removed&&n.push("</del>")}return n.join("")}function Ti(e){let n=e;return n=n.replace(/&/g,"&amp;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;"),n=n.replace(/"/g,"&quot;"),n}function zn(e){return typeof e>"u"||e===null}function Ni(e){return typeof e=="object"&&e!==null}function Di(e){return Array.isArray(e)?e:zn(e)?[]:[e]}function Ri(e,n){var i,r,l,t;if(n)for(t=Object.keys(n),i=0,r=t.length;i<r;i+=1)l=t[i],e[l]=n[l];return e}function Mi(e,n){var i="",r;for(r=0;r<n;r+=1)i+=e;return i}function Pi(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Wi=zn,Hi=Ni,ji=Di,Bi=Mi,Ui=Pi,Yi=Ri,L={isNothing:Wi,isObject:Hi,toArray:ji,repeat:Bi,isNegativeZero:Ui,extend:Yi};function Gn(e,n){var i="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+=\'in "\'+e.mark.name+\'" \'),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`\n\n`+e.mark.snippet),r+" "+i):r}function ie(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Gn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ie.prototype=Object.create(Error.prototype);ie.prototype.constructor=ie;ie.prototype.toString=function(n){return this.name+": "+Gn(this,n)};var k=ie;function qe(e,n,i,r,l){var t="",o="",u=Math.floor(l/2)-1;return r-n>u&&(t=" ... ",n=r-u+t.length),i-r>u&&(o=" ...",i=r+u-o.length),{str:t+e.slice(n,i).replace(/\\t/g,"\\u2192")+o,pos:r-n+t.length}}function ze(e,n){return L.repeat(" ",n-e.length)+e}function $i(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\\r?\\n|\\r|\\0/g,r=[0],l=[],t,o=-1;t=i.exec(e.buffer);)l.push(t.index),r.push(t.index+t[0].length),e.position<=t.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var u="",f,c,s=Math.min(e.line+n.linesAfter,l.length).toString().length,a=n.maxLength-(n.indent+s+3);for(f=1;f<=n.linesBefore&&!(o-f<0);f++)c=qe(e.buffer,r[o-f],l[o-f],e.position-(r[o]-r[o-f]),a),u=L.repeat(" ",n.indent)+ze((e.line-f+1).toString(),s)+" | "+c.str+`\n`+u;for(c=qe(e.buffer,r[o],l[o],e.position,a),u+=L.repeat(" ",n.indent)+ze((e.line+1).toString(),s)+" | "+c.str+`\n`,u+=L.repeat("-",n.indent+s+3+c.pos)+`^\n`,f=1;f<=n.linesAfter&&!(o+f>=l.length);f++)c=qe(e.buffer,r[o+f],l[o+f],e.position-(r[o]-r[o+f]),a),u+=L.repeat(" ",n.indent)+ze((e.line+f+1).toString(),s)+" | "+c.str+`\n`;return u.replace(/\\n$/,"")}var qi=$i,zi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Gi=["scalar","sequence","mapping"];function Ji(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(r){n[String(r)]=i})}),n}function Ki(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(zi.indexOf(i)===-1)throw new k(\'Unknown option "\'+i+\'" is met in definition of "\'+e+\'" YAML type.\')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Ji(n.styleAliases||null),Gi.indexOf(this.kind)===-1)throw new k(\'Unknown kind "\'+this.kind+\'" is specified for "\'+e+\'" YAML type.\')}var O=Ki;function kn(e,n){var i=[];return e[n].forEach(function(r){var l=i.length;i.forEach(function(t,o){t.tag===r.tag&&t.kind===r.kind&&t.multi===r.multi&&(l=o)}),i[l]=r}),i}function Qi(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function r(l){l.multi?(e.multi[l.kind].push(l),e.multi.fallback.push(l)):e[l.kind][l.tag]=e.fallback[l.tag]=l}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(r);return e}function Je(e){return this.extend(e)}Je.prototype.extend=function(n){var i=[],r=[];if(n instanceof O)r.push(n);else if(Array.isArray(n))r=r.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(r=r.concat(n.explicit));else throw new k("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(t){if(!(t instanceof O))throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&t.loadKind!=="scalar")throw new k("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new k("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof O))throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var l=Object.create(Je.prototype);return l.implicit=(this.implicit||[]).concat(i),l.explicit=(this.explicit||[]).concat(r),l.compiledImplicit=kn(l,"implicit"),l.compiledExplicit=kn(l,"explicit"),l.compiledTypeMap=Qi(l.compiledImplicit,l.compiledExplicit),l};var Xi=Je,Vi=new O("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Zi=new O("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),er=new O("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),nr=new Xi({explicit:[Vi,Zi,er]});function ir(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function rr(){return null}function lr(e){return e===null}var or=new O("tag:yaml.org,2002:null",{kind:"scalar",resolve:ir,construct:rr,predicate:lr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function tr(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function ur(e){return e==="true"||e==="True"||e==="TRUE"}function fr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var cr=new O("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tr,construct:ur,predicate:fr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function ar(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function sr(e){return 48<=e&&e<=55}function pr(e){return 48<=e&&e<=57}function dr(e){if(e===null)return!1;var n=e.length,i=0,r=!1,l;if(!n)return!1;if(l=e[i],(l==="-"||l==="+")&&(l=e[++i]),l==="0"){if(i+1===n)return!0;if(l=e[++i],l==="b"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(l!=="0"&&l!=="1")return!1;r=!0}return r&&l!=="_"}if(l==="x"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(!ar(e.charCodeAt(i)))return!1;r=!0}return r&&l!=="_"}if(l==="o"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(!sr(e.charCodeAt(i)))return!1;r=!0}return r&&l!=="_"}}if(l==="_")return!1;for(;i<n;i++)if(l=e[i],l!=="_"){if(!pr(e.charCodeAt(i)))return!1;r=!0}return!(!r||l==="_")}function hr(e){var n=e,i=1,r;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),n=n.slice(1),r=n[0]),n==="0")return 0;if(r==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function mr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!L.isNegativeZero(e)}var gr=new O("tag:yaml.org,2002:int",{kind:"scalar",resolve:dr,construct:hr,predicate:mr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))$");function vr(e){return!(e===null||!xr.test(e)||e[e.length-1]==="_")}function yr(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var Ar=/^[-+]?[0-9]+e/;function wr(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(L.isNegativeZero(e))return"-0.0";return i=e.toString(10),Ar.test(i)?i.replace("e",".e"):i}function Cr(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||L.isNegativeZero(e))}var Er=new O("tag:yaml.org,2002:float",{kind:"scalar",resolve:vr,construct:yr,predicate:Cr,represent:wr,defaultStyle:"lowercase"}),Sr=nr.extend({implicit:[or,cr,gr,Er]}),br=Sr,Jn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Kn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\\\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\\\.([0-9]*))?(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function _r(e){return e===null?!1:Jn.exec(e)!==null||Kn.exec(e)!==null}function Lr(e){var n,i,r,l,t,o,u,f=0,c=null,s,a,p;if(n=Jn.exec(e),n===null&&(n=Kn.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],r=+n[2]-1,l=+n[3],!n[4])return new Date(Date.UTC(i,r,l));if(t=+n[4],o=+n[5],u=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(s=+n[10],a=+(n[11]||0),c=(s*60+a)*6e4,n[9]==="-"&&(c=-c)),p=new Date(Date.UTC(i,r,l,t,o,u,f)),c&&p.setTime(p.getTime()-c),p}function Fr(e){return e.toISOString()}var Or=new O("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:_r,construct:Lr,instanceOf:Date,represent:Fr});function Ir(e){return e==="<<"||e===null}var kr=new O("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ir}),Ze=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\\r`;function Tr(e){if(e===null)return!1;var n,i,r=0,l=e.length,t=Ze;for(i=0;i<l;i++)if(n=t.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;r+=6}return r%8===0}function Nr(e){var n,i,r=e.replace(/[\\r\\n=]/g,""),l=r.length,t=Ze,o=0,u=[];for(n=0;n<l;n++)n%4===0&&n&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|t.indexOf(r.charAt(n));return i=l%4*6,i===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):i===18?(u.push(o>>10&255),u.push(o>>2&255)):i===12&&u.push(o>>4&255),new Uint8Array(u)}function Dr(e){var n="",i=0,r,l,t=e.length,o=Ze;for(r=0;r<t;r++)r%3===0&&r&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[r];return l=t%3,l===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):l===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):l===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function Rr(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Mr=new O("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Tr,construct:Nr,predicate:Rr,represent:Dr}),Pr=Object.prototype.hasOwnProperty,Wr=Object.prototype.toString;function Hr(e){if(e===null)return!0;var n=[],i,r,l,t,o,u=e;for(i=0,r=u.length;i<r;i+=1){if(l=u[i],o=!1,Wr.call(l)!=="[object Object]")return!1;for(t in l)if(Pr.call(l,t))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(t)===-1)n.push(t);else return!1}return!0}function jr(e){return e!==null?e:[]}var Br=new O("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Hr,construct:jr}),Ur=Object.prototype.toString;function Yr(e){if(e===null)return!0;var n,i,r,l,t,o=e;for(t=new Array(o.length),n=0,i=o.length;n<i;n+=1){if(r=o[n],Ur.call(r)!=="[object Object]"||(l=Object.keys(r),l.length!==1))return!1;t[n]=[l[0],r[l[0]]]}return!0}function $r(e){if(e===null)return[];var n,i,r,l,t,o=e;for(t=new Array(o.length),n=0,i=o.length;n<i;n+=1)r=o[n],l=Object.keys(r),t[n]=[l[0],r[l[0]]];return t}var qr=new O("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Yr,construct:$r}),zr=Object.prototype.hasOwnProperty;function Gr(e){if(e===null)return!0;var n,i=e;for(n in i)if(zr.call(i,n)&&i[n]!==null)return!1;return!0}function Jr(e){return e!==null?e:{}}var Kr=new O("tag:yaml.org,2002:set",{kind:"mapping",resolve:Gr,construct:Jr}),Qn=br.extend({implicit:[Or,kr],explicit:[Mr,Br,qr,Kr]}),j=Object.prototype.hasOwnProperty,se=1,Xn=2,Vn=3,pe=4,Ge=1,Qr=2,Tn=3,Xr=/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/,Vr=/[\\x85\\u2028\\u2029]/,Zr=/[,\\[\\]\\{\\}]/,Zn=/^(?:!|!!|![a-z\\-]+!)$/i,ei=/^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*\'\\(\\)\\[\\]])*$/i;function Nn(e){return Object.prototype.toString.call(e)}function R(e){return e===10||e===13}function Y(e){return e===9||e===32}function T(e){return e===9||e===32||e===10||e===13}function J(e){return e===44||e===91||e===93||e===123||e===125}function el(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function nl(e){return e===120?2:e===117?4:e===85?8:0}function il(e){return 48<=e&&e<=57?e-48:-1}function Dn(e){return e===48?"\\0":e===97?"\\x07":e===98?"\\b":e===116||e===9?" ":e===110?`\n`:e===118?"\\v":e===102?"\\f":e===114?"\\r":e===101?"\\x1B":e===32?" ":e===34?\'"\':e===47?"/":e===92?"\\\\":e===78?"\\x85":e===95?"\\xA0":e===76?"\\u2028":e===80?"\\u2029":""}function rl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ni(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var ii=new Array(256),ri=new Array(256);for(U=0;U<256;U++)ii[U]=Dn(U)?1:0,ri[U]=Dn(U);var U;function ll(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Qn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function li(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=qi(i),new k(n,i)}function v(e,n){throw li(e,n)}function de(e,n){e.onWarning&&e.onWarning.call(null,li(e,n))}var Rn={YAML:function(n,i,r){var l,t,o;n.version!==null&&v(n,"duplication of %YAML directive"),r.length!==1&&v(n,"YAML directive accepts exactly one argument"),l=/^([0-9]+)\\.([0-9]+)$/.exec(r[0]),l===null&&v(n,"ill-formed argument of the YAML directive"),t=parseInt(l[1],10),o=parseInt(l[2],10),t!==1&&v(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&de(n,"unsupported YAML version of the document")},TAG:function(n,i,r){var l,t;r.length!==2&&v(n,"TAG directive accepts exactly two arguments"),l=r[0],t=r[1],Zn.test(l)||v(n,"ill-formed tag handle (first argument) of the TAG directive"),j.call(n.tagMap,l)&&v(n,\'there is a previously declared suffix for "\'+l+\'" tag handle\'),ei.test(t)||v(n,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{v(n,"tag prefix is malformed: "+t)}n.tagMap[l]=t}};function H(e,n,i,r){var l,t,o,u;if(n<i){if(u=e.input.slice(n,i),r)for(l=0,t=u.length;l<t;l+=1)o=u.charCodeAt(l),o===9||32<=o&&o<=1114111||v(e,"expected valid JSON character");else Xr.test(u)&&v(e,"the stream contains non-printable characters");e.result+=u}}function Mn(e,n,i,r){var l,t,o,u;for(L.isObject(i)||v(e,"cannot merge mappings; the provided source object is unacceptable"),l=Object.keys(i),o=0,u=l.length;o<u;o+=1)t=l[o],j.call(n,t)||(ni(n,t,i[t]),r[t]=!0)}function K(e,n,i,r,l,t,o,u,f){var c,s;if(Array.isArray(l))for(l=Array.prototype.slice.call(l),c=0,s=l.length;c<s;c+=1)Array.isArray(l[c])&&v(e,"nested arrays are not supported inside keys"),typeof l=="object"&&Nn(l[c])==="[object Object]"&&(l[c]="[object Object]");if(typeof l=="object"&&Nn(l)==="[object Object]"&&(l="[object Object]"),l=String(l),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(t))for(c=0,s=t.length;c<s;c+=1)Mn(e,n,t[c],i);else Mn(e,n,t,i);else!e.json&&!j.call(i,l)&&j.call(n,l)&&(e.line=o||e.line,e.lineStart=u||e.lineStart,e.position=f||e.position,v(e,"duplicated mapping key")),ni(n,l,t),delete i[l];return n}function en(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):v(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _(e,n,i){for(var r=0,l=e.input.charCodeAt(e.position);l!==0;){for(;Y(l);)l===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),l=e.input.charCodeAt(++e.position);if(n&&l===35)do l=e.input.charCodeAt(++e.position);while(l!==10&&l!==13&&l!==0);if(R(l))for(en(e),l=e.input.charCodeAt(e.position),r++,e.lineIndent=0;l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);else break}return i!==-1&&r!==0&&e.lineIndent<i&&de(e,"deficient indentation"),r}function ge(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||T(i)))}function nn(e,n){n===1?e.result+=" ":n>1&&(e.result+=L.repeat(`\n`,n-1))}function ol(e,n,i){var r,l,t,o,u,f,c,s,a=e.kind,p=e.result,d;if(d=e.input.charCodeAt(e.position),T(d)||J(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(l=e.input.charCodeAt(e.position+1),T(l)||i&&J(l)))return!1;for(e.kind="scalar",e.result="",t=o=e.position,u=!1;d!==0;){if(d===58){if(l=e.input.charCodeAt(e.position+1),T(l)||i&&J(l))break}else if(d===35){if(r=e.input.charCodeAt(e.position-1),T(r))break}else{if(e.position===e.lineStart&&ge(e)||i&&J(d))break;if(R(d))if(f=e.line,c=e.lineStart,s=e.lineIndent,_(e,!1,-1),e.lineIndent>=n){u=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=f,e.lineStart=c,e.lineIndent=s;break}}u&&(H(e,t,o,!1),nn(e,e.line-f),t=o=e.position,u=!1),Y(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return H(e,t,o,!1),e.result?!0:(e.kind=a,e.result=p,!1)}function tl(e,n){var i,r,l;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=l=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(H(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)r=e.position,e.position++,l=e.position;else return!0;else R(i)?(H(e,r,l,!0),nn(e,_(e,!1,n)),r=l=e.position):e.position===e.lineStart&&ge(e)?v(e,"unexpected end of the document within a single quoted scalar"):(e.position++,l=e.position);v(e,"unexpected end of the stream within a single quoted scalar")}function ul(e,n){var i,r,l,t,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return H(e,i,e.position,!0),e.position++,!0;if(u===92){if(H(e,i,e.position,!0),u=e.input.charCodeAt(++e.position),R(u))_(e,!1,n);else if(u<256&&ii[u])e.result+=ri[u],e.position++;else if((o=nl(u))>0){for(l=o,t=0;l>0;l--)u=e.input.charCodeAt(++e.position),(o=el(u))>=0?t=(t<<4)+o:v(e,"expected hexadecimal character");e.result+=rl(t),e.position++}else v(e,"unknown escape sequence");i=r=e.position}else R(u)?(H(e,i,r,!0),nn(e,_(e,!1,n)),i=r=e.position):e.position===e.lineStart&&ge(e)?v(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}v(e,"unexpected end of the stream within a double quoted scalar")}function fl(e,n){var i=!0,r,l,t,o=e.tag,u,f=e.anchor,c,s,a,p,d,h=Object.create(null),g,y,w,m;if(m=e.input.charCodeAt(e.position),m===91)s=93,d=!1,u=[];else if(m===123)s=125,d=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),m=e.input.charCodeAt(++e.position);m!==0;){if(_(e,!0,n),m=e.input.charCodeAt(e.position),m===s)return e.position++,e.tag=o,e.anchor=f,e.kind=d?"mapping":"sequence",e.result=u,!0;i?m===44&&v(e,"expected the node content, but found \',\'"):v(e,"missed comma between flow collection entries"),y=g=w=null,a=p=!1,m===63&&(c=e.input.charCodeAt(e.position+1),T(c)&&(a=p=!0,e.position++,_(e,!0,n))),r=e.line,l=e.lineStart,t=e.position,Q(e,n,se,!1,!0),y=e.tag,g=e.result,_(e,!0,n),m=e.input.charCodeAt(e.position),(p||e.line===r)&&m===58&&(a=!0,m=e.input.charCodeAt(++e.position),_(e,!0,n),Q(e,n,se,!1,!0),w=e.result),d?K(e,u,h,y,g,w,r,l,t):a?u.push(K(e,null,h,y,g,w,r,l,t)):u.push(g),_(e,!0,n),m=e.input.charCodeAt(e.position),m===44?(i=!0,m=e.input.charCodeAt(++e.position)):i=!1}v(e,"unexpected end of the stream within a flow collection")}function cl(e,n){var i,r,l=Ge,t=!1,o=!1,u=n,f=0,c=!1,s,a;if(a=e.input.charCodeAt(e.position),a===124)r=!1;else if(a===62)r=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)Ge===l?l=a===43?Tn:Qr:v(e,"repeat of a chomping mode identifier");else if((s=il(a))>=0)s===0?v(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?v(e,"repeat of an indentation width identifier"):(u=n+s-1,o=!0);else break;if(Y(a)){do a=e.input.charCodeAt(++e.position);while(Y(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!R(a)&&a!==0)}for(;a!==0;){for(en(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),R(a)){f++;continue}if(e.lineIndent<u){l===Tn?e.result+=L.repeat(`\n`,t?1+f:f):l===Ge&&t&&(e.result+=`\n`);break}for(r?Y(a)?(c=!0,e.result+=L.repeat(`\n`,t?1+f:f)):c?(c=!1,e.result+=L.repeat(`\n`,f+1)):f===0?t&&(e.result+=" "):e.result+=L.repeat(`\n`,f):e.result+=L.repeat(`\n`,t?1+f:f),t=!0,o=!0,f=0,i=e.position;!R(a)&&a!==0;)a=e.input.charCodeAt(++e.position);H(e,i,e.position,!1)}return!0}function Pn(e,n){var i,r=e.tag,l=e.anchor,t=[],o,u=!1,f;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=t),f=e.input.charCodeAt(e.position);f!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,v(e,"tab characters must not be used in indentation")),!(f!==45||(o=e.input.charCodeAt(e.position+1),!T(o))));){if(u=!0,e.position++,_(e,!0,-1)&&e.lineIndent<=n){t.push(null),f=e.input.charCodeAt(e.position);continue}if(i=e.line,Q(e,n,Vn,!1,!0),t.push(e.result),_(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&f!==0)v(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return u?(e.tag=r,e.anchor=l,e.kind="sequence",e.result=t,!0):!1}function al(e,n,i){var r,l,t,o,u,f,c=e.tag,s=e.anchor,a={},p=Object.create(null),d=null,h=null,g=null,y=!1,w=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),m=e.input.charCodeAt(e.position);m!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,v(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),t=e.line,(m===63||m===58)&&T(r))m===63?(y&&(K(e,a,p,d,h,null,o,u,f),d=h=g=null),w=!0,y=!0,l=!0):y?(y=!1,l=!0):v(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=r;else{if(o=e.line,u=e.lineStart,f=e.position,!Q(e,i,Xn,!1,!0))break;if(e.line===t){for(m=e.input.charCodeAt(e.position);Y(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),T(m)||v(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(K(e,a,p,d,h,null,o,u,f),d=h=g=null),w=!0,y=!1,l=!1,d=e.tag,h=e.result;else if(w)v(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=s,!0}else if(w)v(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=s,!0}if((e.line===t||e.lineIndent>n)&&(y&&(o=e.line,u=e.lineStart,f=e.position),Q(e,n,pe,!0,l)&&(y?h=e.result:g=e.result),y||(K(e,a,p,d,h,g,o,u,f),d=h=g=null),_(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===t||e.lineIndent>n)&&m!==0)v(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return y&&K(e,a,p,d,h,null,o,u,f),w&&(e.tag=c,e.anchor=s,e.kind="mapping",e.result=a),w}function sl(e){var n,i=!1,r=!1,l,t,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&v(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,l="!!",o=e.input.charCodeAt(++e.position)):l="!",n=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(t=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):v(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!T(o);)o===33&&(r?v(e,"tag suffix cannot contain exclamation marks"):(l=e.input.slice(n-1,e.position+1),Zn.test(l)||v(e,"named tag handle cannot contain such characters"),r=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),Zr.test(t)&&v(e,"tag suffix cannot contain flow indicator characters")}t&&!ei.test(t)&&v(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{v(e,"tag name is malformed: "+t)}return i?e.tag=t:j.call(e.tagMap,l)?e.tag=e.tagMap[l]+t:l==="!"?e.tag="!"+t:l==="!!"?e.tag="tag:yaml.org,2002:"+t:v(e,\'undeclared tag handle "\'+l+\'"\'),!0}function pl(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&v(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!T(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&v(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function dl(e){var n,i,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!T(r)&&!J(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&v(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),j.call(e.anchorMap,i)||v(e,\'unidentified alias "\'+i+\'"\'),e.result=e.anchorMap[i],_(e,!0,-1),!0}function Q(e,n,i,r,l){var t,o,u,f=1,c=!1,s=!1,a,p,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,t=o=u=pe===i||Vn===i,r&&_(e,!0,-1)&&(c=!0,e.lineIndent>n?f=1:e.lineIndent===n?f=0:e.lineIndent<n&&(f=-1)),f===1)for(;sl(e)||pl(e);)_(e,!0,-1)?(c=!0,u=t,e.lineIndent>n?f=1:e.lineIndent===n?f=0:e.lineIndent<n&&(f=-1)):u=!1;if(u&&(u=c||l),(f===1||pe===i)&&(se===i||Xn===i?g=n:g=n+1,y=e.position-e.lineStart,f===1?u&&(Pn(e,y)||al(e,y,g))||fl(e,g)?s=!0:(o&&cl(e,g)||tl(e,g)||ul(e,g)?s=!0:dl(e)?(s=!0,(e.tag!==null||e.anchor!==null)&&v(e,"alias node should not have any properties")):ol(e,g,se===i)&&(s=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(s=u&&Pn(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&v(e,\'unacceptable node kind for !<?> tag; it should be "scalar", not "\'+e.kind+\'"\'),a=0,p=e.implicitTypes.length;a<p;a+=1)if(h=e.implicitTypes[a],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(j.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,d=e.typeMap.multi[e.kind||"fallback"],a=0,p=d.length;a<p;a+=1)if(e.tag.slice(0,d[a].tag.length)===d[a].tag){h=d[a];break}h||v(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&v(e,"unacceptable node kind for !<"+e.tag+\'> tag; it should be "\'+h.kind+\'", not "\'+e.kind+\'"\'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||s}function hl(e){var n=e.position,i,r,l,t=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(_(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(t=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!T(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(i,e.position),l=[],r.length<1&&v(e,"directive name must not be less than one character in length");o!==0;){for(;Y(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!R(o));break}if(R(o))break;for(i=e.position;o!==0&&!T(o);)o=e.input.charCodeAt(++e.position);l.push(e.input.slice(i,e.position))}o!==0&&en(e),j.call(Rn,r)?Rn[r](e,r,l):de(e,\'unknown document directive "\'+r+\'"\')}if(_(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_(e,!0,-1)):t&&v(e,"directives end mark is expected"),Q(e,e.lineIndent-1,pe,!1,!0),_(e,!0,-1),e.checkLineBreaks&&Vr.test(e.input.slice(n,e.position))&&de(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ge(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_(e,!0,-1));return}if(e.position<e.length-1)v(e,"end of the stream or a document separator is expected");else return}function oi(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`\n`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new ll(e,n),r=e.indexOf("\\0");for(r!==-1&&(i.position=r,v(i,"null byte is not allowed in input")),i.input+="\\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)hl(i);return i.documents}function ml(e,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var r=oi(e,i);if(typeof n!="function")return r;for(var l=0,t=r.length;l<t;l+=1)n(r[l])}function gl(e,n){var i=oi(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new k("expected a single document in the stream, but found more")}}var xl=ml,vl=gl,ti={loadAll:xl,load:vl},ui=Object.prototype.toString,fi=Object.prototype.hasOwnProperty,rn=65279,yl=9,re=10,Al=13,wl=32,Cl=33,El=34,Ke=35,Sl=37,bl=38,_l=39,Ll=42,ci=44,Fl=45,he=58,Ol=61,Il=62,kl=63,Tl=64,ai=91,si=93,Nl=96,pi=123,Dl=124,di=125,I={};I[0]="\\\\0";I[7]="\\\\a";I[8]="\\\\b";I[9]="\\\\t";I[10]="\\\\n";I[11]="\\\\v";I[12]="\\\\f";I[13]="\\\\r";I[27]="\\\\e";I[34]=\'\\\\"\';I[92]="\\\\\\\\";I[133]="\\\\N";I[160]="\\\\_";I[8232]="\\\\L";I[8233]="\\\\P";var Rl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ml=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\\.[0-9_]*)?$/;function Pl(e,n){var i,r,l,t,o,u,f;if(n===null)return{};for(i={},r=Object.keys(n),l=0,t=r.length;l<t;l+=1)o=r[l],u=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),f=e.compiledTypeMap.fallback[o],f&&fi.call(f.styleAliases,u)&&(u=f.styleAliases[u]),i[o]=u;return i}function Wl(e){var n,i,r;if(n=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else if(e<=4294967295)i="U",r=8;else throw new k("code point within a string may not be greater than 0xFFFFFFFF");return"\\\\"+i+L.repeat("0",r-n.length)+n}var Hl=1,le=2;function jl(e){this.schema=e.schema||Qn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=L.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Pl(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===\'"\'?le:Hl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Wn(e,n){for(var i=L.repeat(" ",n),r=0,l=-1,t="",o,u=e.length;r<u;)l=e.indexOf(`\n`,r),l===-1?(o=e.slice(r),r=u):(o=e.slice(r,l+1),r=l+1),o.length&&o!==`\n`&&(t+=i),t+=o;return t}function Qe(e,n){return`\n`+L.repeat(" ",e.indent*n)}function Bl(e,n){var i,r,l;for(i=0,r=e.implicitTypes.length;i<r;i+=1)if(l=e.implicitTypes[i],l.resolve(n))return!0;return!1}function me(e){return e===wl||e===yl}function oe(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==rn||65536<=e&&e<=1114111}function Hn(e){return oe(e)&&e!==rn&&e!==Al&&e!==re}function jn(e,n,i){var r=Hn(e),l=r&&!me(e);return(i?r:r&&e!==ci&&e!==ai&&e!==si&&e!==pi&&e!==di)&&e!==Ke&&!(n===he&&!l)||Hn(n)&&!me(n)&&e===Ke||n===he&&l}function Ul(e){return oe(e)&&e!==rn&&!me(e)&&e!==Fl&&e!==kl&&e!==he&&e!==ci&&e!==ai&&e!==si&&e!==pi&&e!==di&&e!==Ke&&e!==bl&&e!==Ll&&e!==Cl&&e!==Dl&&e!==Ol&&e!==Il&&e!==_l&&e!==El&&e!==Sl&&e!==Tl&&e!==Nl}function Yl(e){return!me(e)&&e!==he}function ne(e,n){var i=e.charCodeAt(n),r;return i>=55296&&i<=56319&&n+1<e.length&&(r=e.charCodeAt(n+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function hi(e){var n=/^\\n* /;return n.test(e)}var mi=1,Xe=2,gi=3,xi=4,G=5;function $l(e,n,i,r,l,t,o,u){var f,c=0,s=null,a=!1,p=!1,d=r!==-1,h=-1,g=Ul(ne(e,0))&&Yl(ne(e,e.length-1));if(n||o)for(f=0;f<e.length;c>=65536?f+=2:f++){if(c=ne(e,f),!oe(c))return G;g=g&&jn(c,s,u),s=c}else{for(f=0;f<e.length;c>=65536?f+=2:f++){if(c=ne(e,f),c===re)a=!0,d&&(p=p||f-h-1>r&&e[h+1]!==" ",h=f);else if(!oe(c))return G;g=g&&jn(c,s,u),s=c}p=p||d&&f-h-1>r&&e[h+1]!==" "}return!a&&!p?g&&!o&&!l(e)?mi:t===le?G:Xe:i>9&&hi(e)?G:o?t===le?G:Xe:p?xi:gi}function ql(e,n,i,r,l){e.dump=(function(){if(n.length===0)return e.quotingType===le?\'""\':"\'\'";if(!e.noCompatMode&&(Rl.indexOf(n)!==-1||Ml.test(n)))return e.quotingType===le?\'"\'+n+\'"\':"\'"+n+"\'";var t=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-t),u=r||e.flowLevel>-1&&i>=e.flowLevel;function f(c){return Bl(e,c)}switch($l(n,u,e.indent,o,f,e.quotingType,e.forceQuotes&&!r,l)){case mi:return n;case Xe:return"\'"+n.replace(/\'/g,"\'\'")+"\'";case gi:return"|"+Bn(n,e.indent)+Un(Wn(n,t));case xi:return">"+Bn(n,e.indent)+Un(Wn(zl(n,o),t));case G:return\'"\'+Gl(n)+\'"\';default:throw new k("impossible error: invalid scalar style")}})()}function Bn(e,n){var i=hi(e)?String(n):"",r=e[e.length-1]===`\n`,l=r&&(e[e.length-2]===`\n`||e===`\n`),t=l?"+":r?"":"-";return i+t+`\n`}function Un(e){return e[e.length-1]===`\n`?e.slice(0,-1):e}function zl(e,n){for(var i=/(\\n+)([^\\n]*)/g,r=(function(){var c=e.indexOf(`\n`);return c=c!==-1?c:e.length,i.lastIndex=c,Yn(e.slice(0,c),n)})(),l=e[0]===`\n`||e[0]===" ",t,o;o=i.exec(e);){var u=o[1],f=o[2];t=f[0]===" ",r+=u+(!l&&!t&&f!==""?`\n`:"")+Yn(f,n),l=t}return r}function Yn(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,r,l=0,t,o=0,u=0,f="";r=i.exec(e);)u=r.index,u-l>n&&(t=o>l?o:u,f+=`\n`+e.slice(l,t),l=t+1),o=u;return f+=`\n`,e.length-l>n&&o>l?f+=e.slice(l,o)+`\n`+e.slice(o+1):f+=e.slice(l),f.slice(1)}function Gl(e){for(var n="",i=0,r,l=0;l<e.length;i>=65536?l+=2:l++)i=ne(e,l),r=I[i],!r&&oe(i)?(n+=e[l],i>=65536&&(n+=e[l+1])):n+=r||Wl(i);return n}function Jl(e,n,i){var r="",l=e.tag,t,o,u;for(t=0,o=i.length;t<o;t+=1)u=i[t],e.replacer&&(u=e.replacer.call(i,String(t),u)),(P(e,n,u,!1,!1)||typeof u>"u"&&P(e,n,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=l,e.dump="["+r+"]"}function $n(e,n,i,r){var l="",t=e.tag,o,u,f;for(o=0,u=i.length;o<u;o+=1)f=i[o],e.replacer&&(f=e.replacer.call(i,String(o),f)),(P(e,n+1,f,!0,!0,!1,!0)||typeof f>"u"&&P(e,n+1,null,!0,!0,!1,!0))&&((!r||l!=="")&&(l+=Qe(e,n)),e.dump&&re===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=t,e.dump=l||"[]"}function Kl(e,n,i){var r="",l=e.tag,t=Object.keys(i),o,u,f,c,s;for(o=0,u=t.length;o<u;o+=1)s="",r!==""&&(s+=", "),e.condenseFlow&&(s+=\'"\'),f=t[o],c=i[f],e.replacer&&(c=e.replacer.call(i,f,c)),P(e,n,f,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?\'"\':"")+":"+(e.condenseFlow?"":" "),P(e,n,c,!1,!1)&&(s+=e.dump,r+=s));e.tag=l,e.dump="{"+r+"}"}function Ql(e,n,i,r){var l="",t=e.tag,o=Object.keys(i),u,f,c,s,a,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new k("sortKeys must be a boolean or a function");for(u=0,f=o.length;u<f;u+=1)p="",(!r||l!=="")&&(p+=Qe(e,n)),c=o[u],s=i[c],e.replacer&&(s=e.replacer.call(i,c,s)),P(e,n+1,c,!0,!0,!0)&&(a=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,a&&(e.dump&&re===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,a&&(p+=Qe(e,n)),P(e,n+1,s,!0,a)&&(e.dump&&re===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,l+=p));e.tag=t,e.dump=l||"{}"}function qn(e,n,i){var r,l,t,o,u,f;for(l=i?e.explicitTypes:e.implicitTypes,t=0,o=l.length;t<o;t+=1)if(u=l[t],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof n=="object"&&n instanceof u.instanceOf)&&(!u.predicate||u.predicate(n))){if(i?u.multi&&u.representName?e.tag=u.representName(n):e.tag=u.tag:e.tag="?",u.represent){if(f=e.styleMap[u.tag]||u.defaultStyle,ui.call(u.represent)==="[object Function]")r=u.represent(n,f);else if(fi.call(u.represent,f))r=u.represent[f](n,f);else throw new k("!<"+u.tag+\'> tag resolver accepts not "\'+f+\'" style\');e.dump=r}return!0}return!1}function P(e,n,i,r,l,t,o){e.tag=null,e.dump=i,qn(e,i,!1)||qn(e,i,!0);var u=ui.call(e.dump),f=r,c;r&&(r=e.flowLevel<0||e.flowLevel>n);var s=u==="[object Object]"||u==="[object Array]",a,p;if(s&&(a=e.duplicates.indexOf(i),p=a!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&n>0)&&(l=!1),p&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&p&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),u==="[object Object]")r&&Object.keys(e.dump).length!==0?(Ql(e,n,e.dump,l),p&&(e.dump="&ref_"+a+e.dump)):(Kl(e,n,e.dump),p&&(e.dump="&ref_"+a+" "+e.dump));else if(u==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?$n(e,n-1,e.dump,l):$n(e,n,e.dump,l),p&&(e.dump="&ref_"+a+e.dump)):(Jl(e,n,e.dump),p&&(e.dump="&ref_"+a+" "+e.dump));else if(u==="[object String]")e.tag!=="?"&&ql(e,e.dump,n,t,f);else{if(u==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new k("unacceptable kind of an object to dump "+u)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Xl(e,n){var i=[],r=[],l,t;for(Ve(e,i,r),l=0,t=r.length;l<t;l+=1)n.duplicates.push(i[r[l]]);n.usedDuplicates=new Array(t)}function Ve(e,n,i){var r,l,t;if(e!==null&&typeof e=="object")if(l=n.indexOf(e),l!==-1)i.indexOf(l)===-1&&i.push(l);else if(n.push(e),Array.isArray(e))for(l=0,t=e.length;l<t;l+=1)Ve(e[l],n,i);else for(r=Object.keys(e),l=0,t=r.length;l<t;l+=1)Ve(e[r[l]],n,i)}function Vl(e,n){n=n||{};var i=new jl(n);i.noRefs||Xl(e,i);var r=e;return i.replacer&&(r=i.replacer.call({"":r},"",r)),P(i,0,r,!0,!0)?i.dump+`\n`:""}var Zl=Vl,eo={dump:Zl};function ln(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var on=ti.load,ut=ti.loadAll,xe=eo.dump;var ft=ln("safeLoad","load"),ct=ln("safeLoadAll","loadAll"),at=ln("safeDump","dump");var so=bi("./workerBundle"),io=$e;function D(e,n){return n==="yaml"?xe(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function ro(e,n,i="json"){let r=D(e,i),l=D(n,i);return r===l?[{value:r}]:tn(e,n,0,i)}function lo(e,n){return ro(e,n,"json")}function oo(e,n){try{let i=JSON.parse(e),r=JSON.parse(n),l=JSON.stringify(i),t=JSON.stringify(r);return l===t?[{value:e}]:N(e,n,{newlineIsToken:!1})}catch{return N(e,n,{newlineIsToken:!1})}}function to(e,n){let i=on(e),r=on(n),l=xe(i,{indent:2,lineWidth:-1,noRefs:!0}),t=xe(r,{indent:2,lineWidth:-1,noRefs:!0});return l===t?[{value:e}]:N(e,n,{newlineIsToken:!1})}function tn(e,n,i,r="json"){let l=D(e,r),t=D(n,r);return l===t?[{value:W(l,i,r)}]:typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&!Array.isArray(e)&&!Array.isArray(n)?uo(e,n,i,r):Array.isArray(e)&&Array.isArray(n)?fo(e,n,i,r):co(l,t,i,r)}function uo(e,n,i,r="json"){let l=[],t=" ".repeat(i),o=" ".repeat(i+1),u=new Set(Object.keys(e)),f=Object.keys(n),c=[...u].filter(a=>!(a in n)),s=[...f,...c];l.push({value:`{\n`});for(let a=0;a<s.length;a++){let p=s[a],h=a===s.length-1?"":",",g=p in e,y=p in n;if(g&&y){let w=D(e[p],r),m=D(n[p],r);if(w===m){let x=W(w,i+1);l.push({value:o+JSON.stringify(p)+": "+x+h+`\n`})}else{let x=o+JSON.stringify(p)+": ",A=tn(e[p],n[p],i+1,r);if(A.length>0)if(!A[0].removed&&!A[0].added)A[0].value=x+A[0].value;else{let C=A.find(E=>E.removed),F=A.find(E=>E.added);C&&(C.value=x+C.value),F&&(F.value=x+F.value)}if(h&&A.length>0){let C=A[A.length-1];C.value=C.value.replace(/\\n$/,h+`\n`)}l.push(...A)}}else if(g){let w=W(D(e[p],r),i+1);l.push({removed:!0,value:o+JSON.stringify(p)+": "+w+h+`\n`})}else{let w=W(D(n[p],r),i+1);l.push({added:!0,value:o+JSON.stringify(p)+": "+w+h+`\n`})}}return l.push({value:t+`}\n`}),l}function fo(e,n,i,r="json"){let l=[],t=" ".repeat(i),o=" ".repeat(i+1);l.push({value:`[\n`});let u=Math.max(e.length,n.length);for(let f=0;f<u;f++){let s=f===u-1?"":",";if(f>=e.length){let a=W(D(n[f],r),i+1);l.push({added:!0,value:o+a+s+`\n`})}else if(f>=n.length){let a=W(D(e[f],r),i+1);l.push({removed:!0,value:o+a+s+`\n`})}else{let a=D(e[f],r),p=D(n[f],r);if(a===p){let d=W(a,i+1);l.push({value:o+d+s+`\n`})}else{let d=tn(e[f],n[f],i+1,r);if(d.length>0&&(d[0].value=o+d[0].value),s&&d.length>0){let h=d[d.length-1];h.value=h.value.replace(/\\n$/,s+`\n`)}l.push(...d)}}}return l.push({value:t+`]\n`}),l}function co(e,n,i,r="json"){let l=W(e,i),t=W(n,i);return N(l,t).map(u=>({value:u.value,added:u.added,removed:u.removed}))}function W(e,n,i="json"){if(n===0)return e;let r=" ".repeat(n);return e.split(`\n`).map((l,t)=>t===0?l:r+l).join(`\n`)}var vi=e=>e===""?[]:e.replace(/\\n$/,"").split(`\n`),ao=(e,n,i="diffChars")=>{let l=(typeof i=="string"?io[i]:i)(e,n),t={left:[],right:[]};return l.forEach(({added:o,removed:u,value:f})=>{let c={};return o&&(c.type=1,c.value=f,t.right.push(c)),u&&(c.type=2,c.value=f,t.left.push(c)),!u&&!o&&(c.type=0,c.value=f,t.right.push(c),t.left.push(c)),c}),t},yi=(e,n,i=!1,r="diffChars",l=0,t=[],o=!1)=>{let u=[];if(typeof e=="string"&&typeof n=="string")if(r==="diffJson")u=oo(e,n);else if(r==="diffYaml")try{u=to(e,n)}catch{u=N(e,n,{newlineIsToken:!1})}else u=N(e,n,{newlineIsToken:!1});else u=lo(e,n);let f=l,c=l,s=[],a=0,p=[],d=[],h=(g,y,w,m,x)=>vi(g).map((C,F)=>{let E={},S={};if(!(d.includes(`${y}-${F}`)||x&&F!==0)){if(w||m){let $=!0;if(m){c+=1,E.lineNumber=c,E.type=2,E.value=C||" ";let un=u[y+1];if(un?.added){let fn=vi(un.value)[F];if(fn){let Ai=h(fn,y,!0,!1,!0),{value:B,lineNumber:wi,type:Ci}=Ai[0].right;if(d.push(`${y+1}-${F}`),S.lineNumber=wi,E.value===B)$=!1,S.type=0,E.type=0,S.value=B;else{S.type=Ci;let cn=500,Ei=C.length>cn||B.length>cn;if(i||Ei)S.value=B;else if(o)E.rawValue=C,E.value=C,S.rawValue=B,S.value=B;else{let an=ao(C,B,r);S.value=an.right,E.value=an.left}}}}}else f+=1,S.lineNumber=f,S.type=1,S.value=C;$&&!x&&(p.includes(a)||p.push(a))}else c+=1,f+=1,E.lineNumber=c,E.type=0,E.value=C,S.lineNumber=f,S.type=0,S.value=C;return(t?.includes(`L-${E.lineNumber}`)||t?.includes(`R-${S.lineNumber}`)&&!p.includes(a))&&p.push(a),x||(a+=1),{right:S,left:E}}}).filter(Boolean);return u.forEach(({added:g,removed:y,value:w},m)=>{s=[...s,...h(w,m,g,y)]}),{lineInformation:s,diffLines:p}};self.onmessage=e=>{let{oldString:n,newString:i,disableWordDiff:r,lineCompareMethod:l,linesOffset:t,showLines:o,deferWordDiff:u}=e.data,f=yi(n,i,r,l,t,o,u);self.postMessage(f)};})();\n/*! Bundled license information:\n\njs-yaml/dist/js-yaml.mjs:\n (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)\n*/\n',No=lr;var I;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"})(I||(I={}));function Z(e,n){return n==="yaml"?wn(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function Io(e,n,i="json"){const t=Z(e,i),r=Z(n,i);return t===r?[{value:t}]:Ln(e,n,0,i)}function Fo(e,n){return Io(e,n,"json")}function jo(e,n){try{const i=JSON.parse(e),t=JSON.parse(n),r=JSON.stringify(i),o=JSON.stringify(t);return r===o?[{value:e}]:oe(e,n,{newlineIsToken:!1})}catch{return oe(e,n,{newlineIsToken:!1})}}function Ro(e,n){const i=ii(e),t=ii(n),r=wn(i,{indent:2,lineWidth:-1,noRefs:!0}),o=wn(t,{indent:2,lineWidth:-1,noRefs:!0});return r===o?[{value:e}]:oe(e,n,{newlineIsToken:!1})}function Ln(e,n,i,t="json"){const r=Z(e,t),o=Z(n,t);return r===o?[{value:le(r,i,t)}]:typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&!Array.isArray(e)&&!Array.isArray(n)?Do(e,n,i,t):Array.isArray(e)&&Array.isArray(n)?_o(e,n,i,t):Mo(r,o,i,t)}function Do(e,n,i,t="json"){const r=[],o=" ".repeat(i),l=" ".repeat(i+1),s=new Set(Object.keys(e)),a=Object.keys(n),c=[...s].filter(u=>!(u in n)),f=[...a,...c];r.push({value:`{
55
+ `});for(let u=0;u<f.length;u++){const d=f[u],h=u===f.length-1?"":",",p=d in e,y=d in n;if(p&&y){const x=Z(e[d],t),m=Z(n[d],t);if(x===m){const w=le(x,i+1);r.push({value:l+JSON.stringify(d)+": "+w+h+`
56
+ `})}else{const w=l+JSON.stringify(d)+": ",C=Ln(e[d],n[d],i+1,t);if(C.length>0)if(!C[0].removed&&!C[0].added)C[0].value=w+C[0].value;else{const b=C.find(A=>A.removed),E=C.find(A=>A.added);b&&(b.value=w+b.value),E&&(E.value=w+E.value)}if(h&&C.length>0){const b=C[C.length-1];b.value=b.value.replace(/\n$/,h+`
57
+ `)}r.push(...C)}}else if(p){const x=le(Z(e[d],t),i+1);r.push({removed:!0,value:l+JSON.stringify(d)+": "+x+h+`
58
+ `})}else{const x=le(Z(n[d],t),i+1);r.push({added:!0,value:l+JSON.stringify(d)+": "+x+h+`
59
+ `})}}return r.push({value:o+`}
60
+ `}),r}function _o(e,n,i,t="json"){const r=[],o=" ".repeat(i),l=" ".repeat(i+1);r.push({value:`[
61
+ `});const s=Math.max(e.length,n.length);for(let a=0;a<s;a++){const f=a===s-1?"":",";if(a>=e.length){const u=le(Z(n[a],t),i+1);r.push({added:!0,value:l+u+f+`
62
+ `})}else if(a>=n.length){const u=le(Z(e[a],t),i+1);r.push({removed:!0,value:l+u+f+`
63
+ `})}else{const u=Z(e[a],t),d=Z(n[a],t);if(u===d){const g=le(u,i+1);r.push({value:l+g+f+`
64
+ `})}else{const g=Ln(e[a],n[a],i+1,t);if(g.length>0&&(g[0].value=l+g[0].value),f&&g.length>0){const h=g[g.length-1];h.value=h.value.replace(/\n$/,f+`
65
+ `)}r.push(...g)}}}return r.push({value:o+`]
66
+ `}),r}function Mo(e,n,i,t="json"){const r=le(e,i),o=le(n,i);return oe(r,o).map(s=>({value:s.value,added:s.added,removed:s.removed}))}function le(e,n,i="json"){if(n===0)return e;const t=" ".repeat(n);return e.split(`
67
+ `).map((r,o)=>o===0?r:t+r).join(`
68
+ `)}var H;(function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson",e.YAML="diffYaml"})(H||(H={}));const ti=e=>e===""?[]:e.replace(/\n$/,"").split(`
69
+ `),Xi=(e,n,i=H.CHARS)=>{const r=(typeof i=="string"?No[i]:i)(e,n),o={left:[],right:[]};return r.forEach(({added:l,removed:s,value:a})=>{const c={};return l&&(c.type=I.ADDED,c.value=a,o.right.push(c)),s&&(c.type=I.REMOVED,c.value=a,o.left.push(c)),!s&&!l&&(c.type=I.DEFAULT,c.value=a,o.right.push(c),o.left.push(c)),c}),o},Wo=(e,n,i=!1,t=H.CHARS,r=0,o=[],l=!1)=>{let s=[];if(typeof e=="string"&&typeof n=="string")if(t===H.JSON)s=jo(e,n);else if(t===H.YAML)try{s=Ro(e,n)}catch{s=oe(e,n,{newlineIsToken:!1})}else s=oe(e,n,{newlineIsToken:!1});else s=Fo(e,n);let a=r,c=r,f=[],u=0;const d=[],g=[],h=(p,y,x,m,w)=>ti(p).map((b,E)=>{const A={},O={};if(!(g.includes(`${y}-${E}`)||w&&E!==0)){if(x||m){let F=!0;if(m){c+=1,A.lineNumber=c,A.type=I.REMOVED,A.value=b||" ";const J=s[y+1];if(J!=null&&J.added){const Q=ti(J.value)[E];if(Q){const re=h(Q,y,!0,!1,!0),{value:S,lineNumber:_,type:j}=re[0].right;if(g.push(`${y+1}-${E}`),O.lineNumber=_,A.value===S)F=!1,O.type=0,A.type=0,O.value=S;else{O.type=j;const W=500,pe=b.length>W||S.length>W;if(i||pe)O.value=S;else if(l)A.rawValue=b,A.value=b,O.rawValue=S,O.value=S;else{const me=Xi(b,S,t);O.value=me.right,A.value=me.left}}}}}else a+=1,O.lineNumber=a,O.type=I.ADDED,O.value=b;F&&!w&&(d.includes(u)||d.push(u))}else c+=1,a+=1,A.lineNumber=c,A.type=I.DEFAULT,A.value=b,O.lineNumber=a,O.type=I.DEFAULT,O.value=b;return(o!=null&&o.includes(`L-${A.lineNumber}`)||o!=null&&o.includes(`R-${O.lineNumber}`)&&!d.includes(u))&&d.push(u),w||(u+=1),{right:O,left:A}}}).filter(Boolean);return s.forEach(({added:p,removed:y,value:x},m)=>{f=[...f,...h(x,m,p,y)]}),{lineInformation:f,diffLines:d}};let Oe=null,Ne=null;const Ho=()=>{if(Oe!==null)return Oe;if(typeof Worker>"u"||typeof Blob>"u"||typeof URL>"u")return Ne=!1,null;try{const e=new Blob([Lo],{type:"application/javascript"});Oe=URL.createObjectURL(e),Ne=!0}catch{Ne=!1,Oe=null}return Oe},Bo=(e,n,i=!1,t=H.CHARS,r=0,o=[],l=!1)=>{const s=()=>Wo(e,n,i,t,r,o,l),a=Ho();return a?new Promise(c=>{let f;try{f=new Worker(a)}catch{Ne=!1,c(s());return}f.onmessage=u=>{c(u.data),f.terminate()},f.onerror=()=>{Ne=!1,f.terminate(),c(s())},f.postMessage({oldString:e,newString:n,disableWordDiff:i,lineCompareMethod:t,linesOffset:r,showLines:o,deferWordDiff:l})}):Promise.resolve(s())};function ri(){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[v.jsx("title",{children:"expand"}),v.jsx("path",{d:"m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function Po(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function $o(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Vo=(function(){function e(i){var t=this;this._insertTag=function(r){var o;t.tags.length===0?t.insertionPoint?o=t.insertionPoint.nextSibling:t.prepend?o=t.container.firstChild:o=t.before:o=t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(r,o),t.tags.push(r)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(t){t.forEach(this._insertTag)},n.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($o(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Po(r);try{o.insertRule(t,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(t));this.ctr++},n.flush=function(){this.tags.forEach(function(t){var r;return(r=t.parentNode)==null?void 0:r.removeChild(t)}),this.tags=[],this.ctr=0},e})(),P="-ms-",Ze="-moz-",T="-webkit-",et="comm",Nn="rule",In="decl",Go="@import",nt="@keyframes",Uo="@layer",Yo=Math.abs,en=String.fromCharCode,qo=Object.assign;function zo(e,n){return B(e,0)^45?(((n<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function it(e){return e.trim()}function Jo(e,n){return(e=n.exec(e))?e[0]:e}function L(e,n,i){return e.replace(n,i)}function bn(e,n){return e.indexOf(n)}function B(e,n){return e.charCodeAt(n)|0}function De(e,n,i){return e.slice(n,i)}function ne(e){return e.length}function Fn(e){return e.length}function He(e,n){return n.push(e),e}function Ko(e,n){return e.map(n).join("")}var nn=1,Ce=1,tt=0,q=0,R=0,ke="";function tn(e,n,i,t,r,o,l){return{value:e,root:n,parent:i,type:t,props:r,children:o,line:nn,column:Ce,length:l,return:""}}function Te(e,n){return qo(tn("",null,null,"",null,null,0),e,{length:-e.length},n)}function Zo(){return R}function Qo(){return R=q>0?B(ke,--q):0,Ce--,R===10&&(Ce=1,nn--),R}function z(){return R=q<tt?B(ke,q++):0,Ce++,R===10&&(Ce=1,nn++),R}function te(){return B(ke,q)}function Be(){return q}function Me(e,n){return De(ke,e,n)}function _e(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rt(e){return nn=Ce=1,tt=ne(ke=e),q=0,[]}function lt(e){return ke="",e}function Pe(e){return it(Me(q-1,An(e===91?e+2:e===40?e+1:e)))}function Xo(e){for(;(R=te())&&R<33;)z();return _e(e)>2||_e(R)>3?"":" "}function es(e,n){for(;--n&&z()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return Me(e,Be()+(n<6&&te()==32&&z()==32))}function An(e){for(;z();)switch(R){case e:return q;case 34:case 39:e!==34&&e!==39&&An(R);break;case 40:e===41&&An(e);break;case 92:z();break}return q}function ns(e,n){for(;z()&&e+R!==57;)if(e+R===84&&te()===47)break;return"/*"+Me(n,q-1)+"*"+en(e===47?e:z())}function is(e){for(;!_e(te());)z();return Me(e,q)}function ts(e){return lt($e("",null,null,null,[""],e=rt(e),0,[0],e))}function $e(e,n,i,t,r,o,l,s,a){for(var c=0,f=0,u=l,d=0,g=0,h=0,p=1,y=1,x=1,m=0,w="",C=r,b=o,E=t,A=w;y;)switch(h=m,m=z()){case 40:if(h!=108&&B(A,u-1)==58){bn(A+=L(Pe(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=Pe(m);break;case 9:case 10:case 13:case 32:A+=Xo(h);break;case 92:A+=es(Be()-1,7);continue;case 47:switch(te()){case 42:case 47:He(rs(ns(z(),Be()),n,i),a);break;default:A+="/"}break;case 123*p:s[c++]=ne(A)*x;case 125*p:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+f:x==-1&&(A=L(A,/\f/g,"")),g>0&&ne(A)-u&&He(g>32?oi(A+";",t,i,u-1):oi(L(A," ","")+";",t,i,u-2),a);break;case 59:A+=";";default:if(He(E=li(A,n,i,c,f,r,s,w,C=[],b=[],u),o),m===123)if(f===0)$e(A,n,E,E,C,o,u,s,b);else switch(d===99&&B(A,3)===110?100:d){case 100:case 108:case 109:case 115:$e(e,E,E,t&&He(li(e,E,E,0,0,r,s,w,r,C=[],u),b),r,b,u,s,t?C:b);break;default:$e(A,E,E,E,[""],b,0,s,b)}}c=f=g=0,p=x=1,w=A="",u=l;break;case 58:u=1+ne(A),g=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&Qo()==125)continue}switch(A+=en(m),m*p){case 38:x=f>0?1:(A+="\f",-1);break;case 44:s[c++]=(ne(A)-1)*x,x=1;break;case 64:te()===45&&(A+=Pe(z())),d=te(),f=u=ne(w=A+=is(Be())),m++;break;case 45:h===45&&ne(A)==2&&(p=0)}}return o}function li(e,n,i,t,r,o,l,s,a,c,f){for(var u=r-1,d=r===0?o:[""],g=Fn(d),h=0,p=0,y=0;h<t;++h)for(var x=0,m=De(e,u+1,u=Yo(p=l[h])),w=e;x<g;++x)(w=it(p>0?d[x]+" "+m:L(m,/&\f/g,d[x])))&&(a[y++]=w);return tn(e,n,i,r===0?Nn:s,a,c,f)}function rs(e,n,i){return tn(e,n,i,et,en(Zo()),De(e,2,-2),0)}function oi(e,n,i,t){return tn(e,n,i,In,De(e,0,t),De(e,t+1,-1),t)}function be(e,n){for(var i="",t=Fn(e),r=0;r<t;r++)i+=n(e[r],r,e,n)||"";return i}function ls(e,n,i,t){switch(e.type){case Uo:if(e.children.length)break;case Go:case In:return e.return=e.return||e.value;case et:return"";case nt:return e.return=e.value+"{"+be(e.children,t)+"}";case Nn:e.value=e.props.join(",")}return ne(i=be(e.children,t))?e.return=e.value+"{"+i+"}":""}function os(e){var n=Fn(e);return function(i,t,r,o){for(var l="",s=0;s<n;s++)l+=e[s](i,t,r,o)||"";return l}}function ss(e){return function(n){n.root||(n=n.return)&&e(n)}}function as(e){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=e(i)),n[i]}}var us=function(n,i,t){for(var r=0,o=0;r=o,o=te(),r===38&&o===12&&(i[t]=1),!_e(o);)z();return Me(n,q)},cs=function(n,i){var t=-1,r=44;do switch(_e(r)){case 0:r===38&&te()===12&&(i[t]=1),n[t]+=us(q-1,i,t);break;case 2:n[t]+=Pe(r);break;case 4:if(r===44){n[++t]=te()===58?"&\f":"",i[t]=n[t].length;break}default:n[t]+=en(r)}while(r=z());return n},fs=function(n,i){return lt(cs(rt(n),i))},si=new WeakMap,ds=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,t=n.parent,r=n.column===t.column&&n.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!si.get(t))&&!r){si.set(n,!0);for(var o=[],l=fs(i,o),s=t.props,a=0,c=0;a<l.length;a++)for(var f=0;f<s.length;f++,c++)n.props[c]=o[a]?l[a].replace(/&\f/g,s[f]):s[f]+" "+l[a]}}},hs=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function ot(e,n){switch(zo(e,n)){case 5103:return T+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+Ze+e+P+e+e;case 6828:case 4268:return T+e+P+e+e;case 6165:return T+e+P+"flex-"+e+e;case 5187:return T+e+L(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return T+e+P+"flex-item-"+L(e,/flex-|-self/,"")+e;case 4675:return T+e+P+"flex-line-pack"+L(e,/align-content|flex-|-self/,"")+e;case 5548:return T+e+P+L(e,"shrink","negative")+e;case 5292:return T+e+P+L(e,"basis","preferred-size")+e;case 6060:return T+"box-"+L(e,"-grow","")+T+e+P+L(e,"grow","positive")+e;case 4554:return T+L(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,T+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ne(e)-1-n>6)switch(B(e,n+1)){case 109:if(B(e,n+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+Ze+(B(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~bn(e,"stretch")?ot(L(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(B(e,n+1)!==115)break;case 6444:switch(B(e,ne(e)-3-(~bn(e,"!important")&&10))){case 107:return L(e,":",":"+T)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(B(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(B(e,n+11)){case 114:return T+e+P+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+P+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+P+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return T+e+P+e+e}return e}var ps=function(n,i,t,r){if(n.length>-1&&!n.return)switch(n.type){case In:n.return=ot(n.value,n.length);break;case nt:return be([Te(n,{value:L(n.value,"@","@"+T)})],r);case Nn:if(n.length)return Ko(n.props,function(o){switch(Jo(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return be([Te(n,{props:[L(o,/:(read-\w+)/,":"+Ze+"$1")]})],r);case"::placeholder":return be([Te(n,{props:[L(o,/:(plac\w+)/,":"+T+"input-$1")]}),Te(n,{props:[L(o,/:(plac\w+)/,":"+Ze+"$1")]}),Te(n,{props:[L(o,/:(plac\w+)/,P+"input-$1")]})],r)}return""})}},gs=[ps],ms=function(n){var i=n.key;if(i==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=n.stylisPlugins||gs,o={},l,s=[];l=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)o[y[x]]=!0;s.push(p)});var a,c=[ds,hs];{var f,u=[ls,ss(function(p){f.insert(p)})],d=os(c.concat(r,u)),g=function(y){return be(ts(y),d)};a=function(y,x,m,w){f=m,g(y?y+"{"+x.styles+"}":x.styles),w&&(h.inserted[x.name]=!0)}}var h={key:i,sheet:new Vo({key:i,container:l,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:o,registered:{},insert:a};return h.sheet.hydrate(s),h};function vs(e){for(var n=0,i,t=0,r=e.length;r>=4;++t,r-=4)i=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(r){case 3:n^=(e.charCodeAt(t+2)&255)<<16;case 2:n^=(e.charCodeAt(t+1)&255)<<8;case 1:n^=e.charCodeAt(t)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var ys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xs=/[A-Z]|^ms/g,ws=/_EMO_([^_]+?)_([^]*?)_EMO_/g,st=function(n){return n.charCodeAt(1)===45},ai=function(n){return n!=null&&typeof n!="boolean"},cn=as(function(e){return st(e)?e:e.replace(xs,"-$&").toLowerCase()}),ui=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(ws,function(t,r,o){return fe={name:r,styles:o,next:fe},r})}return ys[n]!==1&&!st(n)&&typeof i=="number"&&i!==0?i+"px":i};function Qe(e,n,i){if(i==null)return"";var t=i;if(t.__emotion_styles!==void 0)return t;switch(typeof i){case"boolean":return"";case"object":{var r=i;if(r.anim===1)return fe={name:r.name,styles:r.styles,next:fe},r.name;var o=i;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)fe={name:l.name,styles:l.styles,next:fe},l=l.next;var s=o.styles+";";return s}return bs(e,n,i)}}var a=i;if(n==null)return a;var c=n[a];return c!==void 0?c:a}function bs(e,n,i){var t="";if(Array.isArray(i))for(var r=0;r<i.length;r++)t+=Qe(e,n,i[r])+";";else for(var o in i){var l=i[o];if(typeof l!="object"){var s=l;n!=null&&n[s]!==void 0?t+=o+"{"+n[s]+"}":ai(s)&&(t+=cn(o)+":"+ui(o,s)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(n==null||n[l[0]]===void 0))for(var a=0;a<l.length;a++)ai(l[a])&&(t+=cn(o)+":"+ui(o,l[a])+";");else{var c=Qe(e,n,l);switch(o){case"animation":case"animationName":{t+=cn(o)+":"+c+";";break}default:t+=o+"{"+c+"}"}}}return t}var ci=/label:\s*([^\s;{]+)\s*(;|$)/g,fe;function fn(e,n,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var t=!0,r="";fe=void 0;var o=e[0];if(o==null||o.raw===void 0)t=!1,r+=Qe(i,n,o);else{var l=o;r+=l[0]}for(var s=1;s<e.length;s++)if(r+=Qe(i,n,e[s]),t){var a=o;r+=a[s]}ci.lastIndex=0;for(var c="",f;(f=ci.exec(r))!==null;)c+="-"+f[1];var u=vs(r)+c;return{name:u,styles:r,next:fe}}function at(e,n,i){var t="";return i.split(" ").forEach(function(r){e[r]!==void 0?n.push(e[r]+";"):r&&(t+=r+" ")}),t}var As=function(n,i,t){var r=n.key+"-"+i.name;n.registered[r]===void 0&&(n.registered[r]=i.styles)},Cs=function(n,i,t){As(n,i);var r=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var o=i;do n.insert(i===o?"."+r:"",o,n.sheet,!0),o=o.next;while(o!==void 0)}};function fi(e,n){if(e.inserted[n.name]===void 0)return e.insert("",n,e.sheet,!0)}function di(e,n,i){var t=[],r=at(e,t,i);return t.length<2?i:r+n(t)}var ks=function(n){var i=ms(n);i.sheet.speedy=function(s){this.isSpeedy=s},i.compat=!0;var t=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];var u=fn(c,i.registered,void 0);return Cs(i,u),i.key+"-"+u.name},r=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];var u=fn(c,i.registered),d="animation-"+u.name;return fi(i,{name:u.name,styles:"@keyframes "+d+"{"+u.styles+"}"}),d},o=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];var u=fn(c,i.registered);fi(i,u)},l=function(){for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return di(i.registered,t,Ss(c))};return{css:t,cx:l,injectGlobal:o,keyframes:r,hydrate:function(a){a.forEach(function(c){i.inserted[c]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:at.bind(null,i.registered),merge:di.bind(null,i.registered,t)}},Ss=function e(n){for(var i="",t=0;t<n.length;t++){var r=n[t];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=e(r);else{o="";for(var l in r)r[l]&&l&&(o&&(o+=" "),o+=l)}break}default:o=r}o&&(i&&(i+=" "),i+=o)}}return i};const Es=(e,n=!1,i="")=>{const{variables:t={},...r}=e,o={light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee",...t.light||{}},dark:{diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#2ea04326",addedColor:"white",removedBackground:"#f851491a",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#2ea04366",wordRemovedBackground:"#f8514966",addedGutterBackground:"#3fb9504d",removedGutterBackground:"#f851494d",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#262831",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#f0f6fc",addedGutterColor:"#f0f6fc",removedGutterColor:"#f0f6fc",codeFoldContentColor:"#9198a1",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#f0f6fc",diffViewerTitleBorderColor:"#353846",...t.dark||{}}},l=n?o.dark:o.light,{css:s,cx:a}=ks({key:"react-diff",nonce:i}),c=s({width:"auto",overflow:"hidden",label:"content"}),f=s({label:"split-view"}),u=s({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),d=s({background:l.diffViewerTitleBackground,color:l.diffViewerTitleColor,padding:"0.5em 1em",display:"flex",alignItems:"center",gap:"0.5em",fontFamily:"monospace",fontSize:12,fill:l.diffViewerTitleColor}),g=s({display:"flex",label:"column-headers"}),h=s({width:"100%",minWidth:"1000px",overflowX:"auto",tableLayout:"fixed",fontSize:12,background:l.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"1.6em",width:"fit-content"},label:"diff-container",borderCollapse:"collapse","@media (max-width: 768px)":{minWidth:"unset"}}),p=s({overflow:"hidden",width:"100%"}),y=s({color:l.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),x=s({userSelect:"none",label:"unselectable"}),m=s({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${y}`]:{whiteSpace:"pre",lineBreak:"auto"}}),w=s({background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",margin:0,label:"all-expand-button",":hover":{fill:l.addedGutterColor},":focus":{outline:`1px ${l.addedGutterColor} solid`}}),C=s({background:l.diffViewerTitleBackground,padding:"0.5em",lineHeight:"1.4em",height:"2.4em",overflow:"hidden",width:"50%",borderBottom:`1px solid ${l.diffViewerTitleBorderColor}`,boxSizing:"border-box",fontSize:12,label:"title-block",":only-child":{width:"100%"},":last-child:not(:only-child)":{borderLeft:`1px solid ${l.diffViewerTitleBorderColor}`},[`.${y}`]:{color:l.diffViewerTitleColor}}),b=s({color:l.gutterColor,label:"line-number"}),E=s({background:l.removedBackground,color:l.removedColor,pre:{color:l.removedColor},[`.${b}`]:{color:l.removedGutterColor},label:"diff-removed"}),A=s({background:l.addedBackground,color:l.addedColor,pre:{color:l.addedColor},[`.${b}`]:{color:l.addedGutterColor},label:"diff-added"}),O=s({background:l.changedBackground,[`.${b}`]:{color:l.gutterColor},label:"diff-changed"}),F=s({display:"inline",textDecoration:"none",label:"word-diff"}),J=s({background:l.wordAddedBackground,label:"word-added"}),Q=s({background:l.wordRemovedBackground,label:"word-removed"}),re=s({backgroundColor:l.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",textAlign:"center",fill:l.codeFoldContentColor}),S=s({padding:""}),_=s({background:l.codeFoldBackground,cursor:"pointer",display:"inline",margin:0,border:"none",fill:l.codeFoldContentColor,label:"code-fold-expand-button"}),j=s({color:l.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),W=s({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:l.diffViewerTitleBorderColor}),pe=s({backgroundColor:l.wordAddedBackground}),me=s({backgroundColor:l.wordRemovedBackground}),ut=s({backgroundColor:l.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","&:hover":{color:l.diffViewerColor,fill:l.diffViewerColor,"& *":{color:l.diffViewerColor,fill:l.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),ct=s({backgroundColor:l.emptyLineBackground,label:"empty-line"}),ft=s({width:28,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${A}`]:{pre:{color:l.addedColor}},[`&.${E}`]:{pre:{color:l.removedColor}}}),dt=s({background:l.highlightBackground,label:"highlighted-line",[`.${J}, .${Q}`]:{backgroundColor:"initial"}}),jn=s({label:"highlighted-gutter"}),ht=s({userSelect:"none",minWidth:50,width:"50px",padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"center",color:l.gutterColor,background:l.gutterBackground,"&:hover":{cursor:"pointer",background:l.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:"center",width:"100%"},[`&.${A}`]:{background:l.addedGutterBackground},[`&.${E}`]:{background:l.removedGutterBackground},[`&.${jn}`]:{background:l.highlightGutterBackground,"&:hover":{background:l.highlightGutterBackground}}}),pt=s({"&:hover":{background:l.gutterBackground,cursor:"initial"},label:"empty-gutter"}),gt=s({verticalAlign:"baseline",label:"line",textDecoration:"none"}),mt=s({}),rn={diffContainer:h,diffRemoved:E,diffAdded:A,diffChanged:O,splitView:f,marker:ft,highlightedGutter:jn,highlightedLine:dt,gutter:ht,line:gt,lineContent:p,wordDiff:F,wordAdded:J,summary:d,block:W,blockAddition:pe,blockDeletion:me,wordRemoved:Q,noSelect:x,noWrap:m,codeFoldGutter:re,codeFoldExpandButton:_,codeFoldContentContainer:S,codeFold:ut,emptyGutter:pt,emptyLine:ct,lineNumber:b,contentText:y,content:c,column:mt,codeFoldContent:j,stickyHeader:u,columnHeaders:g,titleBlock:C,allExpandButton:w},Rn=Object.keys(r).reduce((ln,ue)=>({...ln,[ue]:s(r[ue])}),{});return Object.keys(rn).reduce((ln,ue)=>({...ln,[ue]:Rn[ue]?a(rn[ue],Rn[ue]):rn[ue]}),{})};function Os(){return v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[v.jsx("title",{children:"fold"}),v.jsx("path",{d:"M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function Ts(e,n,i){const t=[];let r=0;for(const u of n){const d=typeof u.value=="string"?u.value:"";d.length>0&&(t.push({start:r,end:r+d.length,type:u.type}),r+=d.length)}const o=[];let l=0;for(;l<e.length;)if(e[l]==="<"){const u=e.indexOf(">",l);if(u===-1){o.push({type:"text",content:e.slice(l)});break}o.push({type:"tag",content:e.slice(l,u+1)}),l=u+1}else{let u=e.indexOf("<",l);u===-1&&(u=e.length),o.push({type:"text",content:e.slice(l,u)}),l=u}function s(u){return u.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&nbsp;/g," ")}function a(u){return u===I.ADDED?{open:`<ins class="${i.wordDiff} ${i.wordAdded}">`,close:"</ins>"}:u===I.REMOVED?{open:`<del class="${i.wordDiff} ${i.wordRemoved}">`,close:"</del>"}:{open:`<span class="${i.wordDiff}">`,close:"</span>"}}let c=0,f="";for(const u of o)if(u.type==="tag")f+=u.content;else{const d=u.content,g=s(d);let h=0,p=0;for(;h<g.length;){const y=c+h,x=t.find(F=>y>=F.start&&y<F.end);if(!x){const F=d[p];f+=F,p++,h++;continue}const m=x.end-y,w=g.length-h,C=Math.min(m,w);let b=p,E=0;for(;E<C&&b<d.length;){if(d[b]==="&"){const F=d.indexOf(";",b);F!==-1&&F-b<10?b=F+1:b++}else b++;E++}const A=d.slice(p,b),O=a(x.type);O?f+=O.open+A+O.close:f+=A,p=b,h+=C}c+=g.length}return f}var G;(function(e){e.LEFT="L",e.RIGHT="R"})(G||(G={}));const K=class K extends ee.Component{constructor(i){super(i);N(this,"styles");N(this,"wordDiffCache",new Map);N(this,"contentColumnRef",ee.createRef());N(this,"charMeasureRef",ee.createRef());N(this,"stickyHeaderRef",ee.createRef());N(this,"resizeObserver",null);N(this,"getWordDiffValues",(i,t,r)=>{if(!i||!t)return{leftValue:i==null?void 0:i.value,rightValue:t==null?void 0:t.value};if(i.rawValue===void 0||t.rawValue===void 0)return{leftValue:i.value,rightValue:t.value};const o=`${r}-${i.rawValue}-${t.rawValue}`;let l=this.wordDiffCache.get(o);if(!l){const s=this.props.compareMethod===H.JSON||this.props.compareMethod===H.YAML?H.CHARS:this.props.compareMethod,a=Xi(i.rawValue,t.rawValue,s);l={left:a.left,right:a.right},this.wordDiffCache.set(o,l)}return{leftValue:l.left,rightValue:l.right}});N(this,"resetCodeBlocks",()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1);N(this,"onBlockExpand",i=>{const t=this.state.expandedBlocks.slice();t.push(i),this.setState({expandedBlocks:t},()=>this.recalculateOffsets())});N(this,"recalculateOffsets",()=>{if(!this.props.infiniteLoading)return;const i=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!i)return;const r=this.getMemoisedKey(),{lineInformation:o,lineBlocks:l,blocks:s}=this.state.computedDiffResult[r]??{};if(!o)return;const a=this.buildCumulativeOffsets(o,l,s,this.state.expandedBlocks,this.props.showDiffOnly,t,i,this.props.splitView);this.setState({cumulativeOffsets:a,contentColumnWidth:i,charWidth:t},()=>{this.onScroll()})});N(this,"computeStyles",kt(Es));N(this,"onLineNumberClickProxy",i=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(i,t):()=>{});N(this,"shouldHighlightWordDiff",()=>{const{compareMethod:i}=this.props;return i===H.CHARS||i===H.WORDS||i===H.WORDS_WITH_SPACE||i===H.JSON||i===H.YAML});N(this,"renderWordDiff",(i,t)=>{var s,a;const r=this.shouldHighlightWordDiff(),o=i.map(c=>typeof c.value=="string"?c.value:"").join("");if(o.length>500)return[v.jsx("span",{children:o},"long-line")];if(t){const c=t(o),f=(a=(s=c==null?void 0:c.props)==null?void 0:s.dangerouslySetInnerHTML)==null?void 0:a.__html;if(typeof f=="string"){const u=Ts(f,i,{wordDiff:this.styles.wordDiff,wordAdded:r?this.styles.wordAdded:"",wordRemoved:r?this.styles.wordRemoved:""});return[ee.cloneElement(c,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:u}})]}}return i.map((c,f)=>{let u;return typeof c.value=="string"?u=c.value:u=void 0,c.type===I.ADDED?v.jsx("ins",{className:X(this.styles.wordDiff,{[this.styles.wordAdded]:r}),children:u},f):c.type===I.REMOVED?v.jsx("del",{className:X(this.styles.wordDiff,{[this.styles.wordRemoved]:r}),children:u},f):v.jsx("span",{className:X(this.styles.wordDiff),children:u},f)})});N(this,"renderLine",(i,t,r,o,l,s)=>{const a=`${r}-${i}`,c=`${s}-${l}`,f=this.props.highlightLines.includes(a)||this.props.highlightLines.includes(c),u=t===I.ADDED,d=t===I.REMOVED,g=t===I.CHANGED;let h;const p=Array.isArray(o);p?h=this.renderWordDiff(o,this.props.renderContent):this.props.renderContent?h=this.props.renderContent(o):h=o;let y="div";return u&&!p?y="ins":d&&!p&&(y="del"),v.jsxs(v.Fragment,{children:[!this.props.hideLineNumbers&&v.jsx("td",{onClick:i&&this.onLineNumberClickProxy(a),className:X(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedGutter]:f}),children:v.jsx("pre",{className:this.styles.lineNumber,children:i})}),!this.props.splitView&&!this.props.hideLineNumbers&&v.jsx("td",{onClick:l&&this.onLineNumberClickProxy(c),className:X(this.styles.gutter,{[this.styles.emptyGutter]:!l,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedGutter]:f}),children:v.jsx("pre",{className:this.styles.lineNumber,children:l})}),this.props.renderGutter?this.props.renderGutter({lineNumber:i,type:t,prefix:r,value:o,additionalLineNumber:l,additionalPrefix:s,styles:this.styles}):null,v.jsx("td",{className:X(this.styles.marker,{[this.styles.emptyLine]:!h,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedLine]:f}),children:v.jsxs("pre",{children:[u&&"+",d&&"-"]})}),v.jsx("td",{ref:r===G.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:X(this.styles.content,{[this.styles.emptyLine]:!h,[this.styles.diffAdded]:u,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:g,[this.styles.highlightedLine]:f,left:r===G.LEFT,right:r===G.RIGHT}),onMouseDown:()=>{const x=document.getElementsByClassName(r===G.LEFT?"right":"left");for(let m=0;m<x.length;m++)x.item(m).classList.add(this.styles.noSelect)},title:u&&!p?"Added line":d&&!p?"Removed line":void 0,children:v.jsx(y,{className:this.styles.contentText,children:h})})]})});N(this,"renderSplitView",({left:i,right:t},r)=>{const{leftValue:o,rightValue:l}=this.getWordDiffValues(i,t,r);return v.jsxs("tr",{className:this.styles.line,children:[this.renderLine(i.lineNumber,i.type,G.LEFT,o),this.renderLine(t.lineNumber,t.type,G.RIGHT,l)]},r)});N(this,"renderInlineView",({left:i,right:t},r)=>{const{leftValue:o,rightValue:l}=this.getWordDiffValues(i,t,r);let s;return i.type===I.REMOVED&&t.type===I.ADDED?v.jsxs(ee.Fragment,{children:[v.jsx("tr",{className:this.styles.line,children:this.renderLine(i.lineNumber,i.type,G.LEFT,o,null)}),v.jsx("tr",{className:this.styles.line,children:this.renderLine(null,t.type,G.RIGHT,l,t.lineNumber,G.RIGHT)})]},r):(i.type===I.REMOVED&&(s=this.renderLine(i.lineNumber,i.type,G.LEFT,o,null)),i.type===I.DEFAULT&&(s=this.renderLine(i.lineNumber,i.type,G.LEFT,o,t.lineNumber,G.RIGHT)),t.type===I.ADDED&&(s=this.renderLine(null,t.type,G.RIGHT,l,t.lineNumber)),v.jsx("tr",{className:this.styles.line,children:s},r))});N(this,"onBlockClickProxy",i=>()=>this.onBlockExpand(i));N(this,"renderSkippedLineIndicator",(i,t,r,o)=>{const{hideLineNumbers:l,splitView:s}=this.props,a=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(i,r,o):v.jsxs("span",{className:this.styles.codeFoldContent,children:["@@ -",r-i,",",i," +",o-i,",",i," @@"]}),c=v.jsx("td",{className:this.styles.codeFoldContentContainer,children:v.jsx("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:a})}),f=!s&&!l,u=v.jsx("td",{className:this.styles.codeFoldGutter,children:v.jsx(ri,{})});return v.jsxs("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:"button",tabIndex:0,children:[!l&&u,this.props.renderGutter?v.jsx("td",{className:this.styles.codeFoldGutter}):null,v.jsx("td",{className:X({[this.styles.codeFoldGutter]:f})}),f?v.jsxs(ee.Fragment,{children:[v.jsx("td",{}),c]}):v.jsxs(ee.Fragment,{children:[c,this.props.renderGutter?v.jsx("td",{}):null,v.jsx("td",{}),v.jsx("td",{}),l?null:v.jsx("td",{})]})]},`${r}-${o}`)});N(this,"getMemoisedKey",()=>{const{oldValue:i,newValue:t,disableWordDiff:r,compareMethod:o,linesOffset:l,alwaysShowLines:s,extraLinesSurroundingDiff:a}=this.props;return JSON.stringify({oldValue:i,newValue:t,disableWordDiff:r,compareMethod:o,linesOffset:l,alwaysShowLines:s,extraLinesSurroundingDiff:a})});N(this,"memoisedCompute",async()=>{var y;const{oldValue:i,newValue:t,disableWordDiff:r,compareMethod:o,linesOffset:l}=this.props,s=this.getMemoisedKey();if(this.state.computedDiffResult[s]){this.setState(x=>({...x,isLoading:!1}));return}const a=(y=this.props.infiniteLoading)==null?void 0:y.containerHeight,c=a?typeof a=="number"?a:parseInt(a,10)||0:0,f=!r&&!!this.props.infiniteLoading&&c>0&&c<2e3,{lineInformation:u,diffLines:d}=await Bo(i,t,r,o,l,this.props.alwaysShowLines,f),g=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:h,blocks:p}=St(u,d,g);this.state.computedDiffResult[s]={lineInformation:u,lineBlocks:h,blocks:p},this.setState(x=>({...x,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})});N(this,"onScroll",()=>{const i=this.state.scrollableContainerRef.current;if(!i||!this.props.infiniteLoading)return;const t=this.getStickyHeaderHeight(),r=Math.max(0,i.scrollTop-t),{cumulativeOffsets:o}=this.state,l=o?this.findLineAtOffset(r,o):Math.floor(r/K.ESTIMATED_ROW_HEIGHT);l!==this.state.visibleStartRow&&this.setState({visibleStartRow:l})});N(this,"renderDiff",()=>{var Q,re;const{splitView:i,infiniteLoading:t,showDiffOnly:r}=this.props,{computedDiffResult:o,expandedBlocks:l,visibleStartRow:s,scrollableContainerRef:a,cumulativeOffsets:c}=this.state,f=this.getMemoisedKey(),{lineInformation:u=[],lineBlocks:d=[],blocks:g=[]}=o[f]??{};let h=0,p=1/0;const y=5;if(t&&a.current){const S=a.current,_=this.getStickyHeaderHeight(),j=Math.max(0,S.scrollTop-_);if(c){const W=c[c.length-1]||0,pe=c.length-2;h=Math.max(0,this.findLineAtOffset(j,c)-y),p=this.findLineAtOffset(j+S.clientHeight,c)+y;const me=Math.ceil(S.clientHeight/K.ESTIMATED_ROW_HEIGHT);p=Math.max(p,h+me+y),j+S.clientHeight>=W-y*K.ESTIMATED_ROW_HEIGHT&&(p=pe+y)}else{const W=Math.ceil(S.clientHeight/K.ESTIMATED_ROW_HEIGHT);h=Math.max(0,s-y),p=s+W+y}}const x=new Map,m=new Set;let w=0;for(let S=0;S<u.length;S++){const _=d[S];if(r&&_!==void 0)if(l.includes(_))x.set(S,w),w++;else{const j=g[_].endLine===S;!m.has(_)&&j&&(m.add(_),x.set(S,w),w++)}else x.set(S,w),w++}const C=w,b=[];let E=0,A=!1,O=-1;m.clear();for(let S=0;S<u.length;S++){const _=u[S],j=x.get(S);if(j!==void 0&&!(j<h)){if(j>p)break;if(A||(E=c?c[j]||0:j*K.ESTIMATED_ROW_HEIGHT,A=!0),O=j,r){const W=d[S];if(W!==void 0){const pe=g[W].endLine===S;if(!l.includes(W)&&pe){b.push(v.jsx(ee.Fragment,{children:this.renderSkippedLineIndicator(g[W].lines,W,_.left.lineNumber,_.right.lineNumber)},S));continue}if(!l.includes(W))continue}}b.push(i?this.renderSplitView(_,S):this.renderInlineView(_,S))}}const F=c?c[c.length-1]||0:C*K.ESTIMATED_ROW_HEIGHT,J=c&&O>=0?F-(c[O+1]||F):0;return{diffNodes:b,blocks:g,lineInformation:u,totalRenderedRows:C,topPadding:E,bottomPadding:J,totalContentHeight:F,renderedCount:b.length,debug:{visibleRowStart:h,visibleRowEnd:p,totalRows:C,offsetsLength:(c==null?void 0:c.length)??0,renderedCount:b.length,scrollTop:((Q=a.current)==null?void 0:Q.scrollTop)??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:a.current?Math.max(0,a.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:((re=a.current)==null?void 0:re.clientHeight)??0}}});N(this,"render",()=>{var E,A,O,F,J,Q,re;const{oldValue:i,newValue:t,useDarkTheme:r,leftTitle:o,rightTitle:l,splitView:s,compareMethod:a,hideLineNumbers:c,nonce:f}=this.props;if(typeof a=="string"&&a!==H.JSON&&(typeof i!="string"||typeof t!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,r,f);const u=this.renderDiff();this.props.renderGutter;let d=0,g=0;for(const S of u.lineInformation)S.left.type===I.ADDED&&g++,S.right.type===I.ADDED&&g++,S.left.type===I.REMOVED&&d++,S.right.type===I.REMOVED&&d++;const h=d+g,p=Math.round(g/h*100),y=[];for(let S=0;S<5;S++)p>S*20?y.push(v.jsx("span",{className:X(this.styles.block,this.styles.blockAddition)},S)):y.push(v.jsx("span",{className:X(this.styles.block,this.styles.blockDeletion)},S));const x=this.state.expandedBlocks.length===u.blocks.length,m=this.props.loadingElement,w=this.props.infiniteLoading?{overflowY:"scroll",overflowX:"hidden",height:this.props.infiniteLoading.containerHeight}:{},C=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,b=v.jsxs("table",{className:X(this.styles.diffContainer,{[this.styles.splitView]:s,[this.styles.noWrap]:C}),onMouseUp:()=>{const S=document.getElementsByClassName("right");for(let j=0;j<S.length;j++)S.item(j).classList.remove(this.styles.noSelect);const _=document.getElementsByClassName("left");for(let j=0;j<_.length;j++)_.item(j).classList.remove(this.styles.noSelect)},children:[v.jsxs("colgroup",{children:[!this.props.hideLineNumbers&&v.jsx("col",{width:"50px"}),!s&&!this.props.hideLineNumbers&&v.jsx("col",{width:"50px"}),this.props.renderGutter&&v.jsx("col",{width:"50px"}),v.jsx("col",{width:"28px"}),v.jsx("col",{width:"auto"}),s&&v.jsxs(v.Fragment,{children:[!this.props.hideLineNumbers&&v.jsx("col",{width:"50px"}),this.props.renderGutter&&v.jsx("col",{width:"50px"}),v.jsx("col",{width:"28px"}),v.jsx("col",{width:"auto"})]})]}),v.jsx("tbody",{children:u.diffNodes})]});return v.jsxs("div",{style:{...w,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||o||l)&&v.jsxs("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&v.jsxs("div",{className:this.styles.summary,role:"banner",children:[v.jsx("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:x?[]:u.blocks.map(S=>S.index)},()=>this.recalculateOffsets())},children:x?v.jsx(Os,{}):v.jsx(ri,{})})," ",h,v.jsx("div",{style:{display:"flex",gap:"1px"},children:y}),this.props.summary?v.jsx("span",{children:this.props.summary}):null]}),(o||l)&&v.jsxs("div",{className:this.styles.columnHeaders,children:[v.jsx("div",{className:this.styles.titleBlock,children:o?v.jsx("pre",{className:this.styles.contentText,children:o}):null}),s&&v.jsx("div",{className:this.styles.titleBlock,children:l?v.jsx("pre",{className:this.styles.contentText,children:l}):null})]})]}),this.state.isLoading&&m&&v.jsx(m,{}),this.props.infiniteLoading?v.jsx("div",{style:{height:u.totalContentHeight,position:"relative"},children:v.jsx("div",{style:{position:"absolute",top:u.topPadding,left:0,right:0},children:b})}):b,v.jsx("span",{ref:this.charMeasureRef,style:{position:"absolute",top:0,left:"-9999px",visibility:"hidden",whiteSpace:"pre",fontFamily:"monospace",fontSize:12},"aria-hidden":"true",children:"M"}),this.props.infiniteLoading&&this.props.showDebugInfo&&v.jsxs("div",{style:{position:"fixed",top:10,right:10,background:"rgba(0,0,0,0.85)",color:"#0f0",padding:"10px",fontFamily:"monospace",fontSize:"11px",zIndex:9999,borderRadius:"4px",maxWidth:"300px",lineHeight:1.4},children:[v.jsx("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),v.jsxs("div",{children:["scrollTop: ",u.debug.scrollTop]}),v.jsxs("div",{children:["headerHeight: ",u.debug.headerHeight]}),v.jsxs("div",{children:["contentScrollTop: ",u.debug.contentScrollTop]}),v.jsxs("div",{children:["clientHeight: ",u.debug.clientHeight]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[v.jsxs("div",{children:["visibleRowStart: ",u.debug.visibleRowStart]}),v.jsxs("div",{children:["visibleRowEnd: ",u.debug.visibleRowEnd]})]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[v.jsxs("div",{children:["totalRows: ",u.debug.totalRows]}),v.jsxs("div",{children:["offsetsLength: ",u.debug.offsetsLength]}),v.jsxs("div",{children:["renderedCount: ",u.debug.renderedCount]})]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[v.jsxs("div",{children:["topPadding: ",u.topPadding.toFixed(0)]}),v.jsxs("div",{children:["bottomPadding: ",u.bottomPadding.toFixed(0)]}),v.jsxs("div",{children:["totalContentHeight: ",u.totalContentHeight.toFixed(0)]})]}),v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[v.jsxs("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),v.jsxs("div",{children:["columnWidth: ",((E=this.state.contentColumnWidth)==null?void 0:E.toFixed(0))??"N/A","px"]}),v.jsxs("div",{children:["charWidth: ",((A=this.state.charWidth)==null?void 0:A.toFixed(2))??"N/A","px"]}),v.jsxs("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&v.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[v.jsxs("div",{children:["offsets[",u.debug.visibleRowEnd,"]: ",((O=this.state.cumulativeOffsets[u.debug.visibleRowEnd])==null?void 0:O.toFixed(0))??"N/A"]}),v.jsxs("div",{children:["offsets[",u.debug.totalRows-1,"]: ",((F=this.state.cumulativeOffsets[u.debug.totalRows-1])==null?void 0:F.toFixed(0))??"N/A"]}),v.jsxs("div",{children:["offsets[",u.debug.totalRows,"]: ",((J=this.state.cumulativeOffsets[u.debug.totalRows])==null?void 0:J.toFixed(0))??"N/A"]}),v.jsxs("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(u.debug.contentScrollTop+u.debug.clientHeight).toFixed(0)]}),v.jsxs("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",((Q=this.state.scrollableContainerRef.current)==null?void 0:Q.scrollHeight)??"N/A"]}),v.jsxs("div",{children:["maxScrollTop: ",(((re=this.state.scrollableContainerRef.current)==null?void 0:re.scrollHeight)??0)-u.debug.clientHeight]})]})]})]})});this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:ee.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null}}getStickyHeaderHeight(){var i;return((i=this.stickyHeaderRef.current)==null?void 0:i.offsetHeight)||0}measureCharWidth(){const i=this.charMeasureRef.current;return i&&i.getBoundingClientRect().width||7.2}measureContentColumnWidth(){const i=this.contentColumnRef.current;if(i&&i.clientWidth>0){const d=window.getComputedStyle(i),g=parseFloat(d.paddingLeft)+parseFloat(d.paddingRight),h=i.clientWidth-g;if(h>0)return h}const t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;const r=t.clientWidth,o=this.props.hideLineNumbers?0:50,l=28,s=(this.props.splitView,2),a=this.props.splitView?2:1,c=this.props.splitView?2:1,f=s*o+a*l,u=r-f;return Math.max(100,u/c)}getTextLength(i){return i?typeof i=="string"?i.length:i.reduce((t,r)=>t+(typeof r.value=="string"?r.value.length:0),0):0}buildCumulativeOffsets(i,t,r,o,l,s,a,c){var d,g;const f=[0],u=new Set;for(let h=0;h<i.length;h++){const p=i[h];if(l){const b=t[h];if(b!==void 0&&!o.includes(b)){const E=r[b].endLine===h;!u.has(b)&&E&&(u.add(b),f.push(f[f.length-1]+K.ESTIMATED_ROW_HEIGHT));continue}}const y=(d=p.left)!=null&&d.value?this.getTextLength(p.left.value):0,x=(g=p.right)!=null&&g.value?this.getTextLength(p.right.value):0,m=c?Math.max(y,x):y||x,w=Math.floor(a/s),C=w>0?Math.max(1,Math.ceil(m/w)):1;f.push(f[f.length-1]+C*K.ESTIMATED_ROW_HEIGHT)}return f}findLineAtOffset(i,t){let r=0,o=t.length-2;for(;r<o;){const l=Math.floor((r+o+1)/2);t[l]<=i?r=l:o=l-1}return r}componentDidUpdate(i){if(i.oldValue!==this.props.oldValue||i.newValue!==this.props.newValue||i.compareMethod!==this.props.compareMethod||i.disableWordDiff!==this.props.disableWordDiff||i.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();const t=this.state.scrollableContainerRef.current;t&&(t.scrollTop=0),this.setState(r=>({...r,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}}componentDidMount(){if(this.setState(i=>({...i,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<"u"&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});const i=this.state.scrollableContainerRef.current;i&&this.resizeObserver.observe(i)}}componentWillUnmount(){var i;(i=this.resizeObserver)==null||i.disconnect()}};N(K,"defaultProps",{oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:H.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""}),N(K,"ESTIMATED_ROW_HEIGHT",19);let hi=K;export{H as DiffMethod,G as LineNumberPrefix,hi as default};