tocco-admin 3.16.47 → 3.16.49
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.
- package/changelog.md +7 -0
- package/dist/chunk-11211.c047320bb9aeb6a8afa8.js +1 -0
- package/dist/chunk-11281.6cca64a6b22ae66dec22.js +1 -0
- package/dist/chunk-12718.73a401c947f6e416dc96.js +1 -0
- package/dist/chunk-1387.db4ea7c5b9b4bafd0f31.js +1 -0
- package/dist/chunk-14406.193e89b3bab4a76ff64c.js +1 -0
- package/dist/{chunk-14663.51eca5c9fc96acb3d3fd.js → chunk-14663.421a08fcfef247d7bf23.js} +1 -1
- package/dist/chunk-15802.a2be5411a1917623b937.js +1 -0
- package/dist/chunk-1766.135ab067cfb193cad638.js +1 -0
- package/dist/chunk-19249.d09c10c7e5a9775ab4b4.js +1 -0
- package/dist/chunk-19592.3efeef352f175343cea0.js +1 -0
- package/dist/chunk-19822.3bc1e73e57bda3decdc5.js +1 -0
- package/dist/chunk-20047.d792862a5cea6bfdf859.js +1 -0
- package/dist/{chunk-8992.f25442915b57342ae038.js → chunk-21843.36ffd9b3a70cd48a2cc9.js} +1 -1
- package/dist/chunk-2188.f5e8e30b02d2ae9ddfc0.js +1 -0
- package/dist/{chunk-2682.cfc3b87ba3066a6b6a95.js → chunk-22030.64b8bc22892016507951.js} +1 -1
- package/dist/chunk-22284.bda827c47ee03f966640.js +1 -0
- package/dist/chunk-22354.38812eb1ede449619ddb.js +1 -0
- package/dist/chunk-22981.e78181d1033636d18f3f.js +1 -0
- package/dist/chunk-23575.c4abf260b4a67d8b2080.js +1 -0
- package/dist/chunk-24499.d1a3adb4a5690ef7b337.js +1 -0
- package/dist/chunk-2451.6c2305080b6f382a2949.js +1 -0
- package/dist/chunk-24522.ddd8bdae432cd57c7de1.js +1 -0
- package/dist/chunk-24854.06fa1b4ac5587f8ec330.js +1 -0
- package/dist/chunk-25039.1acecd0e2ec0d44298d7.js +1 -0
- package/dist/chunk-25705.7bf358fd8862526e98d9.js +1 -0
- package/dist/chunk-26335.74f8d237b4e65213f5f5.js +1 -0
- package/dist/chunk-26605.cd60bdd885abc7c18078.js +1 -0
- package/dist/chunk-2682.09ac910c9ceab98e77bc.js +1 -0
- package/dist/{chunk-27136.6cfc9a658884e7239020.js → chunk-27136.11820865bd2883ab08fc.js} +1 -1
- package/dist/chunk-27311.576c573d4457ca290eff.js +1 -0
- package/dist/chunk-28507.72bdf3fbdefe3bfa8356.js +1 -0
- package/dist/chunk-29072.189a4bab1c2f18bc7010.js +1 -0
- package/dist/chunk-29755.ba2998b8fe60f4242a51.js +1 -0
- package/dist/chunk-29848.90041f421b399b4707aa.js +1 -0
- package/dist/chunk-30470.fd8e1f081abc3ead40b0.js +1 -0
- package/dist/chunk-30897.9100b21a0b33ef44bc2d.js +1 -0
- package/dist/chunk-31255.41459bc59a226f9c90a8.js +1 -0
- package/dist/chunk-32503.9f6c51bfe378ab9b09ca.js +1 -0
- package/dist/chunk-33050.07638f00a2dc06c76e2c.js +1 -0
- package/dist/chunk-34049.d1b8ce43aebe7eb8947a.js +1 -0
- package/dist/chunk-34132.5a95f8d35fe5833f09f6.js +1 -0
- package/dist/chunk-34678.aaa34585cfca61060329.js +1 -0
- package/dist/chunk-35396.15ab865b1d9c518bb1c5.js +1 -0
- package/dist/chunk-37210.74c360042493c073221e.js +1 -0
- package/dist/chunk-38066.8ba3c6b29ec25be68960.js +1 -0
- package/dist/chunk-38223.fd731c22ae46cc61f787.js +1 -0
- package/dist/chunk-38992.6b954202ee6bfc78ded2.js +1 -0
- package/dist/chunk-39643.d74bf444dd7cc8a9d82a.js +1 -0
- package/dist/chunk-41170.2a6ada0270fb4abf2546.js +1 -0
- package/dist/chunk-42618.0a674e4ef753d6fa8da1.js +1 -0
- package/dist/chunk-42969.f187f9ba7e157c7a8004.js +1 -0
- package/dist/chunk-43481.93124e6c6275e732a451.js +1 -0
- package/dist/chunk-44417.9ddb64dacd512ee6c3d6.js +1 -0
- package/dist/chunk-45631.91ed376096079673828e.js +1 -0
- package/dist/chunk-45814.2d787e4c45ea4eed738b.js +1 -0
- package/dist/chunk-46187.64927d85fa8962de9d90.js +1 -0
- package/dist/chunk-46623.9947ca9f92b9854e4c19.js +1 -0
- package/dist/{chunk-47145.9666bf5242e5cd840334.js → chunk-47145.c210e286a9b1d68a5d4a.js} +1 -1
- package/dist/{chunk-47610.9cdb867d2d27052f5c60.js → chunk-47610.bc6611aa02eeec8db919.js} +1 -1
- package/dist/{chunk-7802.c073d9cde178c9ad0f54.js → chunk-48077.94b2bcbbf99c1b412395.js} +1 -1
- package/dist/chunk-48645.00d6e2c767722527c04b.js +1 -0
- package/dist/chunk-50603.db2d85c8277f5d4be8e6.js +1 -0
- package/dist/chunk-50681.5b2787f97b6cfa2f60a3.js +1 -0
- package/dist/chunk-51057.d3aff53d711b4dbe2a68.js +1 -0
- package/dist/chunk-51544.c7c47f31473765978095.js +99 -0
- package/dist/chunk-51776.40c741a093e66885ddbd.js +1 -0
- package/dist/chunk-5243.38ede90cafc48c03b1aa.js +1 -0
- package/dist/chunk-54855.b9137f7b280835d9a6ef.js +1 -0
- package/dist/chunk-55009.c94a27239babc4897a84.js +1 -0
- package/dist/{chunk-55208.e70a76de3f33670270e7.js → chunk-55208.af3b76b1fc6311cfd237.js} +1 -1
- package/dist/{chunk-55348.41e9f542487999e7455f.js → chunk-55348.686c175cb0e61f80a8f3.js} +1 -1
- package/dist/chunk-56470.556c2caaae71dbc1b9bd.js +1 -0
- package/dist/chunk-57217.b823974cd02852a084c8.js +1 -0
- package/dist/chunk-59899.81644b59bd81178ad0a1.js +1 -0
- package/dist/chunk-6147.af3872a1411da6fbf4ed.js +1 -0
- package/dist/chunk-61624.9df0bea262b6eb637d5c.js +1 -0
- package/dist/chunk-61777.288fa59c359172e6126d.js +1 -0
- package/dist/chunk-62575.b74e4d4776cba26445e1.js +1 -0
- package/dist/chunk-62797.d4f371619412d7768cdb.js +1 -0
- package/dist/chunk-63489.5a8dce1cb48833d5098f.js +1 -0
- package/dist/chunk-63493.3fb8d713d01a768e3b9d.js +1 -0
- package/dist/chunk-63659.1c034f19e5cb1b3bb845.js +6 -0
- package/dist/chunk-6396.8e97e330cabfd435e595.js +1 -0
- package/dist/chunk-64108.2dbbf1c6eafebb45dd0b.js +1 -0
- package/dist/chunk-6425.58c76096ff75c179bbd0.js +1 -0
- package/dist/chunk-64570.c5abfeda2d7189588444.js +1 -0
- package/dist/chunk-65201.7a20a96bc4b63cdebac4.js +1 -0
- package/dist/chunk-65402.7ab1c0dfe662f9bde6d3.js +1 -0
- package/dist/chunk-65408.38bc9ffc89865c6de993.js +1 -0
- package/dist/chunk-67744.a20db61a624bf24be4c8.js +1 -0
- package/dist/chunk-67772.5742c8d21b6a0d48b45b.js +1 -0
- package/dist/chunk-69395.5ae310358e8037e47cea.js +1 -0
- package/dist/chunk-69465.94bf8c54128357a98b12.js +1 -0
- package/dist/chunk-69640.67bd5723c8dec93c7d35.js +1 -0
- package/dist/{chunk-71306.a936c4b0e9b978916d67.js → chunk-71306.eccd63887ac7c3406abd.js} +1 -1
- package/dist/{chunk-72969.59b9bb9406979abd2ad4.js → chunk-72969.47092d634da9a6969ecf.js} +7 -7
- package/dist/chunk-74251.44b44efc01520f07e00b.js +1 -0
- package/dist/chunk-74933.ab405f32e2cff2cdd84d.js +1 -0
- package/dist/chunk-76284.254502b1d77c1de47af3.js +1 -0
- package/dist/chunk-76667.98deb701ea4b5031b79c.js +1 -0
- package/dist/chunk-77385.69a8e97aeb8a75f27884.js +1 -0
- package/dist/chunk-77801.0075955446d760439982.js +1 -0
- package/dist/chunk-77890.24784c3b08b996a228fa.js +1 -0
- package/dist/chunk-7802.59c80f4e7a6fe3aca2a1.js +1 -0
- package/dist/chunk-7813.f28415e6e0480720cab3.js +1 -0
- package/dist/chunk-79258.1b988912f1bb8efa5f13.js +1 -0
- package/dist/chunk-80569.04a73392ac26218c9fe7.js +1 -0
- package/dist/{chunk-83136.dec3b88f3927ec5b0d54.js → chunk-83136.809c2d87aac4cbf33a9c.js} +1 -1
- package/dist/chunk-83864.b63ee961a4df265a5280.js +1 -0
- package/dist/chunk-84567.f954e8bdfcf816a84898.js +1 -0
- package/dist/chunk-8485.7e12ce9ed24aeba2f5b7.js +1 -0
- package/dist/chunk-84899.0dc926df213a81bdf407.js +1 -0
- package/dist/chunk-86133.144af952341736a58372.js +1 -0
- package/dist/chunk-86275.24d26f4dd8ecff940178.js +1 -0
- package/dist/chunk-87528.a421714d48229639fa03.js +1 -0
- package/dist/{chunk-89182.b33e543dcd32234ab9b3.js → chunk-89182.3670d4924a5412a0de5f.js} +1 -1
- package/dist/chunk-8992.32a58c0540d1fa7ccaee.js +1 -0
- package/dist/chunk-90008.80de96aa57b9515e18b2.js +1 -0
- package/dist/chunk-90616.ec520e8875ef5e0517b7.js +1 -0
- package/dist/chunk-90731.035b07edeba90881e486.js +1 -0
- package/dist/chunk-90846.4d10be711987b973fdbc.js +1 -0
- package/dist/chunk-92789.a864d1fd6e4eb478c7b8.js +1 -0
- package/dist/{chunk-1766.2ce3c5eea8b4df4a5d42.js → chunk-93236.e1914e888f5ea1db182a.js} +1 -1
- package/dist/chunk-94194.2a78eae9bf6ec9dbcafb.js +1 -0
- package/dist/chunk-95409.830b15294582db6f05e9.js +1 -0
- package/dist/chunk-96332.f81441fdb08acd52a402.js +1 -0
- package/dist/chunk-96410.f3e8ccef9b74dd15e5cf.js +1 -0
- package/dist/chunk-96679.2ce8f980519d1894e256.js +1 -0
- package/dist/chunk-97359.9fea99651ccf00bfb6ab.js +1 -0
- package/dist/chunk-97536.7c308a35c1fb7335cde1.js +1 -0
- package/dist/chunk-98636.704c73c1056e301d04e6.js +1 -0
- package/dist/chunk-99359.c8b798bdd150da73d79b.js +1 -0
- package/dist/chunk-actions.85668fe88943b670e4d9.js +1 -0
- package/dist/chunk-code-editor.a9ce0b5dfe5c6224a935.js +1 -0
- package/dist/chunk-docs-actions.01fb99caf1e95cbe69bd.js +1 -0
- package/dist/chunk-phone-formatter.50199e325bcd29d91e58.js +1 -0
- package/dist/chunk-vendor-fontawesome.dd2be8558ad1a2bb14cd.js +7 -0
- package/dist/chunk-vendor-libphonenumber-js.11c5886c5f63e2afbde1.js +1 -0
- package/dist/ckeditor4/ckeditor-new.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.addon.merge.min.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.addons.min.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.min.js +1 -1
- package/dist/index.js +78 -13
- package/package.json +1 -1
- package/dist/chunk-10561.201de36026c275f1e9af.js +0 -8
- package/dist/chunk-11211.926d9638327e0efad40e.js +0 -1
- package/dist/chunk-11281.576243eb67d0f56d5e28.js +0 -1
- package/dist/chunk-12260.6d09de73e7fe1ae9d72a.js +0 -1
- package/dist/chunk-15802.146075f3b6e0867dfb94.js +0 -1
- package/dist/chunk-19249.8692aacecaf00d03255c.js +0 -1
- package/dist/chunk-19592.5c79e7650797b40ff348.js +0 -1
- package/dist/chunk-20047.7e292bdc185653e20047.js +0 -1
- package/dist/chunk-21843.389fa58d1988f10127a2.js +0 -1
- package/dist/chunk-22030.fe79db6fd95d0b90cbf8.js +0 -1
- package/dist/chunk-22981.3fde02827aba40775960.js +0 -1
- package/dist/chunk-24499.a631aed256959430cd61.js +0 -1
- package/dist/chunk-2451.d8a73f1ea3d309b2514e.js +0 -1
- package/dist/chunk-24522.fbf1b70126485d175367.js +0 -1
- package/dist/chunk-24854.4e7379b40a481e724d8d.js +0 -1
- package/dist/chunk-25039.6019d09735e921cbc78e.js +0 -1
- package/dist/chunk-26335.2dc6db848213a1fbf863.js +0 -1
- package/dist/chunk-26605.2f25129f5f4770c729f6.js +0 -1
- package/dist/chunk-28507.61b1b50b51c1b0c9c733.js +0 -1
- package/dist/chunk-29072.b3fdfd9815fd7e1d0ce6.js +0 -1
- package/dist/chunk-29755.6c9218bc21f6ff34c232.js +0 -1
- package/dist/chunk-30470.6a67f86d48a5db19cef4.js +0 -1
- package/dist/chunk-30897.8a660b7a96c71fd003be.js +0 -1
- package/dist/chunk-31255.005592c481ce094dd183.js +0 -1
- package/dist/chunk-31985.2d57d01b09e8351790f9.js +0 -1
- package/dist/chunk-33050.f6c41b97edc485114855.js +0 -1
- package/dist/chunk-34678.4a3d6b9878d9177f1a13.js +0 -1
- package/dist/chunk-37210.f8445182dc028e794aa9.js +0 -1
- package/dist/chunk-38223.8dc9134b95f91f7729c8.js +0 -1
- package/dist/chunk-39643.7931aace9f5317d12c9e.js +0 -1
- package/dist/chunk-41170.12580798be5b61a92bb8.js +0 -1
- package/dist/chunk-44417.df904fa45a8304efdaf9.js +0 -1
- package/dist/chunk-45631.5fd88296a8a66f3df698.js +0 -1
- package/dist/chunk-45814.10275f4079f1d0827ba7.js +0 -1
- package/dist/chunk-46187.afef3dafa925bc8ef13f.js +0 -1
- package/dist/chunk-46623.1279fca408d8eef8d565.js +0 -1
- package/dist/chunk-48077.2fb0b2742a962906b7b4.js +0 -1
- package/dist/chunk-51057.adb220a7470a2c9062d3.js +0 -1
- package/dist/chunk-5243.ee71f57c73e80f87629a.js +0 -1
- package/dist/chunk-55009.0d5da94e279cbdfe723a.js +0 -1
- package/dist/chunk-56470.982607cc9a4aa4d5ca5d.js +0 -1
- package/dist/chunk-57217.900f6c296a9f8afffa57.js +0 -1
- package/dist/chunk-59899.01d1bca17584ae227c9a.js +0 -1
- package/dist/chunk-6147.9a8a75f0197a1ecf99cd.js +0 -1
- package/dist/chunk-61777.531f6b5370cfff653af7.js +0 -1
- package/dist/chunk-62575.36e66bf2ce9d21db8e7e.js +0 -1
- package/dist/chunk-62797.768ca65582be64c0f354.js +0 -1
- package/dist/chunk-63489.06b07e0f45fd3448362a.js +0 -1
- package/dist/chunk-6396.6782db80cca3b5a9bca5.js +0 -1
- package/dist/chunk-64108.48d41ee44d4be7e5e319.js +0 -1
- package/dist/chunk-64570.f6edc0c6bf6cf77509c8.js +0 -1
- package/dist/chunk-65408.8ce27d20f7461341b72f.js +0 -1
- package/dist/chunk-66672.4d6c9d397b9c66c7df45.js +0 -1
- package/dist/chunk-67744.d9e9ab2d5681b49a4397.js +0 -1
- package/dist/chunk-67772.20f99232e9aca7a89724.js +0 -1
- package/dist/chunk-76667.3378264c896fd671408e.js +0 -1
- package/dist/chunk-77385.105a95ec12f71a39392d.js +0 -1
- package/dist/chunk-79258.3be81f3cc638458f0544.js +0 -1
- package/dist/chunk-80569.b397fa7e0bc8a6a30c74.js +0 -1
- package/dist/chunk-84567.c6459754fc12d4a43ea4.js +0 -1
- package/dist/chunk-86275.9bb476a380a6c78e366f.js +0 -1
- package/dist/chunk-90008.4e4800bb5dd8b5d8f190.js +0 -1
- package/dist/chunk-90616.2065ebaa4e700cb050cb.js +0 -1
- package/dist/chunk-90731.debf1d82ea8d120be7bd.js +0 -1
- package/dist/chunk-90846.1fa1ead8c15f4ad0f759.js +0 -1
- package/dist/chunk-92789.a651a8882173aeea9aaf.js +0 -1
- package/dist/chunk-93236.87b618124f4c2689bfcf.js +0 -1
- package/dist/chunk-94194.4acac5b27ec3980e20e9.js +0 -1
- package/dist/chunk-96332.7603317cb6651cd7ac3e.js +0 -1
- package/dist/chunk-96679.70f165a867060dea0dd4.js +0 -1
- package/dist/chunk-97359.7e1cbe178906dbe30827.js +0 -1
- package/dist/chunk-97536.39d7b0e335bb9b864cf6.js +0 -1
- package/dist/chunk-actions.26cb6ae5cbc6158e25f8.js +0 -1
- package/dist/chunk-code-editor.960c6f046a6cb72f10e2.js +0 -1
- package/dist/chunk-docs-actions.979889a1bd9083681102.js +0 -1
- package/dist/chunk-phone-formatter.426a7ad83073a3a9db88.js +0 -1
- package/dist/chunk-vendor-fontawesome.4e9b85f1cc93e25fa170.js +0 -7
- package/dist/chunk-vendor-libphonenumber-js.12d68aad9e4cc8110972.js +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[63659],{46942(e,t){var n;
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},63659(e,t,n){"use strict";n.r(t),n.d(t,{DiffMethod:()=>qt,LineNumberPrefix:()=>Ki,computeStyles:()=>Tr,default:()=>Zi,defaultDarkHighlightTheme:()=>Pi,defaultDarkThemeVariables:()=>Sr,defaultLightHighlightTheme:()=>Fi,defaultLightThemeVariables:()=>Ar});var r={};n.r(r),n.d(r,{Diff:()=>u,FILE_HEADERS_ONLY:()=>Q,INCLUDE_HEADERS:()=>X,OMIT_HEADERS:()=>ee,applyPatch:()=>q,applyPatches:()=>Y,arrayDiff:()=>V,canonicalize:()=>W,characterDiff:()=>c,convertChangesToDMP:()=>le,convertChangesToXML:()=>se,createPatch:()=>ie,createTwoFilesPatch:()=>re,cssDiff:()=>F,diffArrays:()=>$,diffChars:()=>d,diffCss:()=>P,diffJson:()=>B,diffLines:()=>E,diffSentences:()=>I,diffTrimmedLines:()=>D,diffWords:()=>T,diffWordsWithSpace:()=>j,formatPatch:()=>ne,jsonDiff:()=>H,lineDiff:()=>N,parsePatch:()=>z,reversePatch:()=>J,sentenceDiff:()=>R,structuredPatch:()=>te,wordDiff:()=>S,wordsWithSpaceDiff:()=>L});var i={};n.r(i),n.d(i,{boolean:()=>Mr,booleanish:()=>Rr,commaOrSpaceSeparated:()=>Br,commaSeparated:()=>Hr,number:()=>Fr,overloadedBoolean:()=>Ir,spaceSeparated:()=>Pr});var o=n(74848),l=n(46942),s=n(4883),a=n(41811);class u{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const i=this.castInput(e,n),o=this.castInput(t,n),l=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(l,s,n,r)}diffWithOptionsObj(e,t,n,r){var i;const o=e=>(e=this.postProcess(e,n),r?void setTimeout((function(){r(e)}),0):e),l=t.length,s=e.length;let a=1,u=l+s;null!=n.maxEditLength&&(u=Math.min(u,n.maxEditLength));const c=null!==(i=n.timeout)&&void 0!==i?i:1/0,d=Date.now()+c,f=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(f[0],t,e,0,n);if(f[0].oldPos+1>=s&&h+1>=l)return o(this.buildValues(f[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-a);r<=Math.min(g,a);r+=2){let i;const a=f[r-1],u=f[r+1];a&&(f[r-1]=void 0);let c=!1;if(u){const e=u.oldPos-r;c=u&&0<=e&&e<l}const d=a&&a.oldPos+1<s;if(c||d){if(i=!d||c&&a.oldPos<u.oldPos?this.addToPath(u,!0,!1,0,n):this.addToPath(a,!1,!0,1,n),h=this.extractCommon(i,t,e,r,n),i.oldPos+1>=s&&h+1>=l)return o(this.buildValues(i.lastComponent,t,e))||!0;f[r]=i,i.oldPos+1>=s&&(g=Math.min(g,r-1)),h+1>=l&&(p=Math.max(p,r+1))}else f[r]=void 0}a++};if(r)!function e(){setTimeout((function(){if(a>u||Date.now()>d)return r(void 0);m()||e()}),0)}();else for(;a<=u&&Date.now()<=d;){const e=m();if(e)return e}}addToPath(e,t,n,r,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){const o=t.length,l=n.length;let s=e.oldPos,a=s-r,u=0;for(;a+1<o&&s+1<l&&this.equals(n[s+1],t[a+1],i);)a++,s++,u++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,a}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();const o=r.length;let l=0,s=0,a=0;for(;l<o;l++){const e=r[l];if(e.removed)e.value=this.join(n.slice(a,a+e.count)),a+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map((function(e,t){const r=n[a+t];return r.length>e.length?r:e})),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(a+=e.count)}}return r}}const c=new class extends u{};function d(e,t,n){return c.diff(e,t,n)}function f(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function h(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function p(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function g(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function m(e,t){return p(e,t,"")}function y(e,t){return g(e,t,"")}function b(e,t){return t.slice(0,function(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);const i=Array(r);let o=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[o]?i[e]=i[o]:i[e]=o;o>0&&t[e]!=t[o];)o=i[o];t[e]==t[o]&&o++}o=0;for(let r=n;r<e.length;r++){for(;o>0&&e[r]!=t[o];)o=i[o];e[r]==t[o]&&o++}return o}(e,t))}function v(e,t){const n=[];for(const r of Array.from(t.segment(e))){const e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function w(e,t){if(t)return k(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function x(e,t){if(t)return k(e,t)[0];const n=e.match(/^\s*/);return n?n[0]:""}function k(e,t){if(!t)return[x(e),w(e)];if("word"!=t.resolvedOptions().granularity)throw new Error('The segmenter passed must have a granularity of "word"');const n=v(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:"",/\s/.test(i)?i:""]}const C="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}",A=new RegExp(`[${C}]+|\\s+|[^${C}]`,"ug");const S=new class extends u{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){const r=t.intlSegmenter;if("word"!=r.resolvedOptions().granularity)throw new Error('The segmenter passed must have a granularity of "word"');n=v(e,r)}else n=e.match(A)||[];const r=[];let i=null;return n.forEach((e=>{/\s/.test(e)?null==i?r.push(e):r.push(r.pop()+e):null!=i&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e})),r}join(e){return e.map(((e,t)=>0==t?e:e.replace(/^\s+/,""))).join("")}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach((e=>{e.added?r=e:e.removed?i=e:((r||i)&&O(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)})),(r||i)&&O(n,i,r,null,t.intlSegmenter),e}};function T(e,t,n){return null==(null==n?void 0:n.ignoreWhitespace)||n.ignoreWhitespace?S.diff(e,t,n):j(e,t,n)}function O(e,t,n,r,i){if(t&&n){const[o,l]=k(t.value,i),[s,a]=k(n.value,i);if(e){const r=f(o,s);e.value=g(e.value,s,r),t.value=m(t.value,r),n.value=m(n.value,r)}if(r){const e=h(l,a);r.value=p(r.value,a,e),t.value=y(t.value,e),n.value=y(n.value,e)}}else if(n){if(e){const e=x(n.value,i);n.value=n.value.substring(e.length)}if(r){const e=x(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){const n=x(r.value,i),[o,l]=k(t.value,i),s=f(n,o);t.value=m(t.value,s);const a=h(m(n,s),l);t.value=y(t.value,a),r.value=p(r.value,n,a),e.value=g(e.value,n,n.slice(0,n.length-a.length))}else if(r){const e=x(r.value,i),n=b(w(t.value,i),e);t.value=y(t.value,n)}else if(e){const n=b(w(e.value,i),x(t.value,i));t.value=m(t.value,n)}}const L=new class extends u{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${C}]+|[^\\S\\n\\r]+|[^${C}]`,"ug");return e.match(t)||[]}};function j(e,t,n){return L.diff(e,t,n)}const N=new class extends u{constructor(){super(...arguments),this.tokenize=M}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function E(e,t,n){return N.diff(e,t,n)}function D(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),N.diff(e,t,n)}function M(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){const i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}const R=new class extends u{tokenize(e){var t;const n=[];let r=0;for(let o=0;o<e.length;o++){if(o==e.length-1){n.push(e.slice(r));break}if(("."==(i=e[o])||"!"==i||"?"==i)&&e[o+1].match(/\s/)){for(n.push(e.slice(r,o+1)),o=r=o+1;null===(t=e[o+1])||void 0===t?void 0:t.match(/\s/);)o++;n.push(e.slice(r,o+1)),r=o+1}}var i;return n}};function I(e,t,n){return R.diff(e,t,n)}const F=new class extends u{tokenize(e){return e.split(/([{}:;,]|\s+)/)}};function P(e,t,n){return F.diff(e,t,n)}const H=new class extends u{constructor(){super(...arguments),this.tokenize=M}get useLongestToken(){return!0}castInput(e,t){const{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>void 0===t?n:t}=t;return"string"==typeof e?e:JSON.stringify(W(e,null,null,r),null," ")}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),n)}};function B(e,t,n){return H.diff(e,t,n)}function W(e,t,n,r,i){let o,l;for(t=t||[],n=n||[],r&&(e=r(void 0===i?"":i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===Object.prototype.toString.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),o=0;o<e.length;o+=1)l[o]=W(e[o],t,n,r,String(o));return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"==typeof e&&null!==e){t.push(e),l={},n.push(l);const i=[];let s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),o=0;o<i.length;o+=1)s=i[o],l[s]=W(e[s],t,n,r,s);t.pop(),n.pop()}else l=e;return l}const V=new class extends u{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function $(e,t,n){return V.diff(e,t,n)}function U(e){return Array.isArray(e)?e.map((e=>U(e))):Object.assign(Object.assign({},e),{hunks:e.hunks.map((e=>Object.assign(Object.assign({},e),{lines:e.lines.map(((t,n)=>{var r;return t.startsWith("\\")||t.endsWith("\r")||(null===(r=e.lines[n+1])||void 0===r?void 0:r.startsWith("\\"))?t:t+"\r"}))})))})}function G(e){return Array.isArray(e)?e.map((e=>G(e))):Object.assign(Object.assign({},e),{hunks:e.hunks.map((e=>Object.assign(Object.assign({},e),{lines:e.lines.map((e=>e.endsWith("\r")?e.substring(0,e.length-1):e))})))})}function z(e){const t=e.split(/\n/),n=[];let r=0;function i(e){return/^diff --git /.test(e)}function o(e){return i(e)||/^Index:\s/.test(e)||/^diff(?: -r \w+)+\s/.test(e)}function l(e){return/^(---|\+\+\+)\s/.test(e)}function s(e){return/^@@\s/.test(e)}function a(){var e;const a={hunks:[]};n.push(a);let d=!1;for(;r<t.length;){const e=t[r];if(l(e)||s(e))break;if(i(e)){if(d)return;d=!0,a.isGit=!0;const n=u(e);for(n&&(a.oldFileName=n.oldFileName,a.newFileName=n.newFileName),r++;r<t.length;){const e=t[r];if(l(e)||s(e)||o(e))break;const n=/^rename from (.*)/.exec(e);n&&(a.oldFileName="a/"+c(n[1]),a.isRename=!0);const i=/^rename to (.*)/.exec(e);i&&(a.newFileName="b/"+c(i[1]),a.isRename=!0);const u=/^copy from (.*)/.exec(e);u&&(a.oldFileName="a/"+c(u[1]),a.isCopy=!0);const d=/^copy to (.*)/.exec(e);d&&(a.newFileName="b/"+c(d[1]),a.isCopy=!0);const f=/^new file mode (\d+)/.exec(e);f&&(a.isCreate=!0,a.newMode=f[1]);const h=/^deleted file mode (\d+)/.exec(e);h&&(a.isDelete=!0,a.oldMode=h[1]);const p=/^old mode (\d+)/.exec(e);p&&(a.oldMode=p[1]);const g=/^new mode (\d+)/.exec(e);g&&(a.newMode=g[1]),/^Binary files /.test(e)&&(a.isBinary=!0),r++}}else{if(o(e)){if(d)return;d=!0;const t=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(e);t&&(a.index=e.substring(t[0].length).trim())}r++}}if(f(a),f(a),void 0===a.oldFileName!=(void 0===a.newFileName))throw new Error("Missing "+(void 0!==a.oldFileName?'"+++ ..."':'"--- ..."')+" file header for "+(null!==(e=a.oldFileName)&&void 0!==e?e:a.newFileName));for(;r<t.length;){const e=t[r];if(o(e)||l(e)||/^===================================================================/.test(e))break;s(e)?a.hunks.push(h()):r++}}function u(e){const t=e.substring(11);if(t.startsWith('"')){const e=d(t);if(null===e)return null;const n=t.substring(e.rawLength+1);let r;if(n.startsWith('"')){const e=d(n);if(null===e)return null;r=e.fileName}else r=n;return{oldFileName:e.fileName,newFileName:r}}const n=t.indexOf('"');if(n>0){const e=t.substring(0,n-1),r=d(t.substring(n));return null===r?null:{oldFileName:e,newFileName:r.fileName}}if(t.startsWith("a/")){const e=[];let n=0;for(;n=t.indexOf(" b/",n+1),-1!==n;)e.push(n);if(e.length>0){const n=e[Math.floor(e.length/2)];return{oldFileName:t.substring(0,n),newFileName:t.substring(n+1)}}}return null}function c(e){if(e.startsWith('"')){const t=d(e);if(t)return t.fileName}return e}function d(e){if(!e.startsWith('"'))return null;let t="",n=1;for(;n<e.length;){if('"'===e[n])return{fileName:t,rawLength:n+1};if("\\"===e[n]&&n+1<e.length)switch(n++,e[n]){case"a":t+="";break;case"b":t+="\b";break;case"f":t+="\f";break;case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"v":t+="\v";break;case"\\":t+="\\";break;case'"':t+='"';break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{if(n+2>=e.length||e[n+1]<"0"||e[n+1]>"7"||e[n+2]<"0"||e[n+2]>"7")return null;const r=[parseInt(e.substring(n,n+3),8)];for(n+=3;"\\"===e[n]&&e[n+1]>="0"&&e[n+1]<="7";){if(n+3>=e.length||e[n+2]<"0"||e[n+2]>"7"||e[n+3]<"0"||e[n+3]>"7")return null;r.push(parseInt(e.substring(n+1,n+4),8)),n+=4}t+=new TextDecoder("utf-8").decode(new Uint8Array(r));continue}default:return null}else t+=e[n];n++}return null}function f(e){const n=/^(---|\+\+\+)\s+/.exec(t[r]);if(n){const i=n[1],o=t[r].substring(3).trim().split("\t",2),l=(o[1]||"").trim();let s=o[0];s=s.startsWith('"')?c(s):s.replace(/\\\\/g,"\\"),"---"===i?(e.oldFileName=s,e.oldHeader=l):(e.newFileName=s,e.newHeader=l),r++}}function h(){var e;const n=r,i=t[r++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),o={oldStart:+i[1],oldLines:void 0===i[2]?1:+i[2],newStart:+i[3],newLines:void 0===i[4]?1:+i[4],lines:[]};0===o.oldLines&&(o.oldStart+=1),0===o.newLines&&(o.newStart+=1);let s=0,a=0;for(;r<t.length&&(a<o.oldLines||s<o.newLines||(null===(e=t[r])||void 0===e?void 0:e.startsWith("\\")));r++){const e=0==t[r].length&&r!=t.length-1?" ":t[r][0];if("+"!==e&&"-"!==e&&" "!==e&&"\\"!==e)throw new Error(`Hunk at line ${n+1} contained invalid line ${t[r]}`);o.lines.push(t[r]),"+"===e?s++:"-"===e?a++:" "===e&&(s++,a++)}if(s||1!==o.newLines||(o.newLines=0),a||1!==o.oldLines||(o.oldLines=0),s!==o.newLines)throw new Error("Added line count did not match for hunk at line "+(n+1));if(a!==o.oldLines)throw new Error("Removed line count did not match for hunk at line "+(n+1));if(r<t.length&&t[r]&&/^[+ -]/.test(t[r])&&!l(t[r]))throw new Error("Hunk at line "+(n+1)+" has more lines than expected (expected "+o.oldLines+" old lines and "+o.newLines+" new lines)");return o}for(;r<t.length;)a();return n}function _(e,t,n){let r=!0,i=!1,o=!1,l=1;return function s(){if(r&&!o){if(i?l++:r=!1,e+l<=n)return e+l;o=!0}if(!i)return o||(r=!0),t<=e-l?e-l++:(i=!0,s())}}function q(e,t,n={}){let r;if(r="string"==typeof t?z(t):Array.isArray(t)?t:[t],r.length>1)throw new Error("applyPatch only works with a single input.");return function(e,t,n={}){(n.autoConvertLineEndings||null==n.autoConvertLineEndings)&&((r=e).includes("\r\n")&&!r.startsWith("\n")&&!r.match(/[^\r]\n/)&&function(e){return Array.isArray(e)||(e=[e]),!e.some((e=>e.hunks.some((e=>e.lines.some((e=>!e.startsWith("\\")&&e.endsWith("\r")))))))}(t)?t=U(t):function(e){return!e.includes("\r\n")&&e.includes("\n")}(e)&&function(e){return Array.isArray(e)||(e=[e]),e.some((e=>e.hunks.some((e=>e.lines.some((e=>e.endsWith("\r")))))))&&e.every((e=>e.hunks.every((e=>e.lines.every(((t,n)=>{var r;return t.startsWith("\\")||t.endsWith("\r")||(null===(r=e.lines[n+1])||void 0===r?void 0:r.startsWith("\\"))}))))))}(t)&&(t=G(t)));var r;const i=e.split("\n"),o=t.hunks,l=n.compareLine||((e,t,n,r)=>t===r),s=n.fuzzFactor||0;let a=0;if(s<0||!Number.isInteger(s))throw new Error("fuzzFactor must be a non-negative integer");if(!o.length)return e;let u="",c=!1,d=!1;for(let e=0;e<o[o.length-1].lines.length;e++){const t=o[o.length-1].lines[e];"\\"==t[0]&&("+"==u[0]?c=!0:"-"==u[0]&&(d=!0)),u=t}if(c){if(d){if(!s&&""==i[i.length-1])return!1}else if(""==i[i.length-1])i.pop();else if(!s)return!1}else if(d)if(""!=i[i.length-1])i.push("");else if(!s)return!1;function f(e,t,n,r=0,o=!0,s=[],a=0){let u=0,c=!1;for(;r<e.length;r++){const d=e[r],h=d.length>0?d[0]:" ",p=d.length>0?d.substr(1):d;if("-"===h){if(!l(t+1,i[t],h,p))return n&&null!=i[t]?(s[a]=i[t],f(e,t+1,n-1,r,!1,s,a+1)):null;t++,u=0}if("+"===h){if(!o)return null;s[a]=p,a++,u=0,c=!0}if(" "===h){if(u++,s[a]=i[t],!l(t+1,i[t],h,p))return c||!n?null:i[t]&&(f(e,t+1,n-1,r+1,!1,s,a+1)||f(e,t+1,n-1,r,!1,s,a+1))||f(e,t,n-1,r+1,!1,s,a);a++,o=!0,c=!1,t++}}return a-=u,t-=u,s.length=a,{patchedLines:s,oldLineLastI:t-1}}const h=[];let p=0;for(let e=0;e<o.length;e++){const t=o[e];let n;const r=i.length-t.oldLines+s;let l;for(let e=0;e<=s;e++){l=t.oldStart+p-1;const i=_(l,a,r);for(;void 0!==l&&(n=f(t.lines,l,e),!n);l=i());if(n)break}if(!n)return!1;for(let e=a;e<l;e++)h.push(i[e]);for(let e=0;e<n.patchedLines.length;e++){const t=n.patchedLines[e];h.push(t)}a=n.oldLineLastI+1,p=l+1-t.oldStart}for(let e=a;e<i.length;e++)h.push(i[e]);return h.join("\n")}(e,r[0],n)}function Y(e,t){const n="string"==typeof e?z(e):e;let r=0;!function e(){const i=n[r++];if(!i)return t.complete();t.loadFile(i,(function(n,r){if(n)return t.complete(n);const o=q(r,i,t);t.patched(i,o,(function(n){if(n)return t.complete(n);e()}))}))}()}function K(e){return void 0===e||"/dev/null"===e?e:e.startsWith("a/")?"b/"+e.slice(2):e.startsWith("b/")?"a/"+e.slice(2):e}function J(e){if(Array.isArray(e))return e.map((e=>J(e))).reverse();const t=Object.assign(Object.assign({},e),{oldFileName:e.isGit?K(e.newFileName):e.newFileName,oldHeader:e.newHeader,newFileName:e.isGit?K(e.oldFileName):e.oldFileName,newHeader:e.oldHeader,oldMode:e.newMode,newMode:e.oldMode,isCreate:e.isDelete,isDelete:e.isCreate,hunks:e.hunks.map((e=>({oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,lines:e.lines.map((e=>e.startsWith("-")?`+${e.slice(1)}`:e.startsWith("+")?`-${e.slice(1)}`:e))})))});return e.isCopy&&(t.newFileName="/dev/null",t.newHeader=void 0,t.isDelete=!0,delete t.isCreate,delete t.isCopy,delete t.isRename,t.hunks=[]),t}function Z(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"';const n=(new TextEncoder).encode(e);let r=0;for(;r<n.length;){const e=n[r];t+=7===e?"\\a":8===e?"\\b":9===e?"\\t":10===e?"\\n":11===e?"\\v":12===e?"\\f":13===e?"\\r":34===e?'\\"':92===e?"\\\\":e>=32&&e<=126?String.fromCharCode(e):"\\"+e.toString(8).padStart(3,"0"),r++}return t+='"',t}const X={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},Q={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},ee={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function te(e,t,n,r,i,o,l){let s;s=l?"function"==typeof l?{callback:l}:l:{},void 0===s.context&&(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)return u(E(n,r,s));{const{callback:e}=s;E(n,r,Object.assign(Object.assign({},s),{callback:t=>{const n=u(t);e(n)}}))}function u(n){if(!n)return;function r(e){return e.map((function(e){return" "+e}))}n.push({value:"",lines:[]});const l=[];let s=0,u=0,c=[],d=1,f=1;for(let e=0;e<n.length;e++){const t=n[e],i=t.lines||oe(t.value);if(t.lines=i,t.added||t.removed){if(!s){const t=n[e-1];s=d,u=f,t&&(c=a>0?r(t.lines.slice(-a)):[],s-=c.length,u-=c.length)}for(const e of i)c.push((t.added?"+":"-")+e);t.added?f+=i.length:d+=i.length}else{if(s)if(i.length<=2*a&&e<n.length-2)for(const e of r(i))c.push(e);else{const e=Math.min(i.length,a);for(const t of r(i.slice(0,e)))c.push(t);const t={oldStart:s,oldLines:d-s+e,newStart:u,newLines:f-u+e,lines:c};l.push(t),s=0,u=0,c=[]}d+=i.length,f+=i.length}}for(const e of l)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:l}}}function ne(e,t){var n,r,i,o,l,s;if(t||(t=X),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every((e=>e.isGit)))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((e=>ne(e,t))).join("\n")}const a=[];if(e.isGit){if(t=X,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let u=e.oldFileName,c=e.newFileName;e.isCreate&&"/dev/null"===u?u=c.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===c&&(c=u.replace(/^a\//,"b/")),a.push("diff --git "+Z(u)+" "+Z(c)),e.isDelete&&a.push("deleted file mode "+(null!==(n=e.oldMode)&&void 0!==n?n:"100644")),e.isCreate&&a.push("new file mode "+(null!==(r=e.newMode)&&void 0!==r?r:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(a.push("old mode "+e.oldMode),a.push("new mode "+e.newMode)),e.isRename&&(a.push("rename from "+Z((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),a.push("rename to "+Z((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(a.push("copy from "+Z((null!==(l=e.oldFileName)&&void 0!==l?l:"").replace(/^a\//,""))),a.push("copy to "+Z((null!==(s=e.newFileName)&&void 0!==s?s:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&a.push("Index: "+e.oldFileName),t.includeUnderline&&a.push("===================================================================");const u=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!u||(a.push("--- "+Z(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),a.push("+++ "+Z(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const n=e.hunks[t],r=0===n.oldLines?n.oldStart-1:n.oldStart,i=0===n.newLines?n.newStart-1:n.newStart;a.push("@@ -"+r+","+n.oldLines+" +"+i+","+n.newLines+" @@");for(const e of n.lines)a.push(e)}return a.join("\n")+"\n"}function re(e,t,n,r,i,o,l){if("function"==typeof l&&(l={callback:l}),!(null==l?void 0:l.callback)){const s=te(e,t,n,r,i,o,l);if(!s)return;return ne(s,null==l?void 0:l.headerOptions)}{const{callback:s}=l;te(e,t,n,r,i,o,Object.assign(Object.assign({},l),{callback:e=>{s(e?ne(e,l.headerOptions):void 0)}}))}}function ie(e,t,n,r,i,o){return re(e,e,t,n,r,i,o)}function oe(e){const t=e.endsWith("\n"),n=e.split("\n").map((e=>e+"\n"));return t?n.pop():n.push(n.pop().slice(0,-1)),n}function le(e){const t=[];let n,r;for(let i=0;i<e.length;i++)n=e[i],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}function se(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(ae(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}function ae(e){let t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,"""),t}function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ce,de,fe,he,pe,ge,me,ye,be,ve,we,xe,ke,Ce,Ae,Se,Te,Oe,Le,je,Ne,Ee,De,Me,Re,Ie,Fe,Pe,He,Be,We,Ve,$e,Ue,Ge,ze,_e,qe,Ye,Ke,Je,Ze,Xe,Qe,et={},tt={},nt={};function rt(){if(ce)return nt;function e(e){return null==e}return ce=1,nt.isNothing=e,nt.isObject=function(e){return"object"==typeof e&&null!==e},nt.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},nt.repeat=function(e,t){let n="";for(let r=0;r<t;r+=1)n+=e;return n},nt.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},nt.extend=function(e,t){if(t){const n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){const i=n[r];e[i]=t[i]}}return e},nt}function it(){if(fe)return de;function e(e,t){let n="";const r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function t(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return fe=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},de=t}function ot(){if(me)return ge;me=1;const e=it(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return ge=function(r,i){if(i=i||{},Object.keys(i).forEach((function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')})),this.options=i,this.tag=r,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=function(e){const t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(i.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')},ge}function lt(){if(be)return ye;be=1;const e=it(),t=ot();function n(e,t){const n=[];return e[t].forEach((function(e){let t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function r(e){return this.extend(e)}return r.prototype.extend=function(i){let o=[],l=[];if(i instanceof t)l.push(i);else if(Array.isArray(i))l=l.concat(i);else{if(!i||!Array.isArray(i.implicit)&&!Array.isArray(i.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.implicit&&(o=o.concat(i.implicit)),i.explicit&&(l=l.concat(i.explicit))}o.forEach((function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),l.forEach((function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));const s=Object.create(r.prototype);return s.implicit=(this.implicit||[]).concat(o),s.explicit=(this.explicit||[]).concat(l),s.compiledImplicit=n(s,"implicit"),s.compiledExplicit=n(s,"explicit"),s.compiledTypeMap=function(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}(s.compiledImplicit,s.compiledExplicit),s},ye=r}function st(){if(we)return ve;we=1;const e=ot();return ve=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function at(){if(ke)return xe;ke=1;const e=ot();return xe=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function ut(){if(Ae)return Ce;Ae=1;const e=ot();return Ce=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function ct(){if(Te)return Se;Te=1;const e=lt();return Se=new e({explicit:[st(),at(),ut()]})}function dt(){if(Le)return Oe;Le=1;const e=ot();return Oe=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;const t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}function ft(){if(Ne)return je;Ne=1;const e=ot();return je=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},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 ht(){if(De)return Ee;De=1;const e=rt(),t=ot();function n(e){return e>=48&&e<=55}function r(e){return e>=48&&e<=57}function i(e){let t=e,n=1,r=t[0];if("-"!==r&&"+"!==r||("-"===r&&(n=-1),t=t.slice(1),r=t[0]),"0"===t)return 0;if("0"===r){if("b"===t[1])return n*parseInt(t.slice(2),2);if("x"===t[1])return n*parseInt(t.slice(2),16);if("o"===t[1])return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}return Ee=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;let o=0,l=!1;if(!t)return!1;let s=e[o];if("-"!==s&&"+"!==s||(s=e[++o]),"0"===s){if(o+1===t)return!0;if(s=e[++o],"b"===s){for(o++;o<t;o++){if(s=e[o],"0"!==s&&"1"!==s)return!1;l=!0}return l&&isFinite(i(e))}if("x"===s){for(o++;o<t;o++){if(!((a=e.charCodeAt(o))>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102))return!1;l=!0}return l&&isFinite(i(e))}if("o"===s){for(o++;o<t;o++){if(!n(e.charCodeAt(o)))return!1;l=!0}return l&&isFinite(i(e))}}for(var a;o<t;o++){if(!r(e.charCodeAt(o)))return!1;l=!0}return!!l&&isFinite(i(e))},construct:function(e){return i(e)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},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"]}})}function pt(){if(Re)return Me;Re=1;const e=rt(),t=ot(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),r=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");const i=/^[-+]?[0-9]+e/;return Me=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&(!!n.test(e)&&(!!isFinite(parseFloat(e,10))||r.test(e)))},construct:function(e){let t=e.toLowerCase();const n="-"===t[0]?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,n){if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";const r=t.toString(10);return i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),Me}function gt(){return Fe?Ie:(Fe=1,Ie=ct().extend({implicit:[dt(),ft(),ht(),pt()]}))}function mt(){return He?Pe:(He=1,Pe=gt())}function yt(){if(We)return Be;We=1;const e=ot(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=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]))?))?$");return Be=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==n.exec(e))},construct:function(e){let r=0,i=null,o=t.exec(e);if(null===o&&(o=n.exec(e)),null===o)throw new Error("Date resolve error");const l=+o[1],s=+o[2]-1,a=+o[3];if(!o[4])return new Date(Date.UTC(l,s,a));const u=+o[4],c=+o[5],d=+o[6];if(o[7]){for(r=o[7].slice(0,3);r.length<3;)r+="0";r=+r}if(o[9]){i=6e4*(60*+o[10]+ +(o[11]||0)),"-"===o[9]&&(i=-i)}const f=new Date(Date.UTC(l,s,a,u,c,d,r));return i&&f.setTime(f.getTime()-i),f},instanceOf:Date,represent:function(e){return e.toISOString()}}),Be}function bt(){if($e)return Ve;$e=1;const e=ot();return Ve=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function vt(){if(Ge)return Ue;Ge=1;const e=ot(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return Ue=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let n=0;const r=e.length,i=t;for(let t=0;t<r;t++){const r=i.indexOf(e.charAt(t));if(!(r>64)){if(r<0)return!1;n+=6}}return n%8==0},construct:function(e){const n=e.replace(/[\r\n=]/g,""),r=n.length,i=t;let o=0;const l=[];for(let e=0;e<r;e++)e%4==0&&e&&(l.push(o>>16&255),l.push(o>>8&255),l.push(255&o)),o=o<<6|i.indexOf(n.charAt(e));const s=r%4*6;return 0===s?(l.push(o>>16&255),l.push(o>>8&255),l.push(255&o)):18===s?(l.push(o>>10&255),l.push(o>>2&255)):12===s&&l.push(o>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let n="",r=0;const i=e.length,o=t;for(let t=0;t<i;t++)t%3==0&&t&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]),r=(r<<8)+e[t];const l=i%3;return 0===l?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]):2===l?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):1===l&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}})}function wt(){if(_e)return ze;_e=1;const e=ot(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return ze=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const r={},i=e;for(let e=0,o=i.length;e<o;e+=1){const o=i[e];let l,s=!1;if("[object Object]"!==n.call(o))return!1;for(l in o)if(t.call(o,l)){if(s)return!1;s=!0}if(!s)return!1;if(t.call(r,l))return!1;Object.defineProperty(r,l,{value:!0})}return!0},construct:function(e){return null!==e?e:[]}})}function xt(){if(Ye)return qe;Ye=1;const e=ot(),t=Object.prototype.toString;return qe=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;const n=e,r=new Array(n.length);for(let e=0,i=n.length;e<i;e+=1){const i=n[e];if("[object Object]"!==t.call(i))return!1;const o=Object.keys(i);if(1!==o.length)return!1;r[e]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];const t=e,n=new Array(t.length);for(let e=0,r=t.length;e<r;e+=1){const r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}})}function kt(){if(Je)return Ke;Je=1;const e=ot(),t=Object.prototype.hasOwnProperty;return Ke=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;const n=e;for(const e in n)if(t.call(n,e)&&null!==n[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function Ct(){return Xe?Ze:(Xe=1,Ze=mt().extend({implicit:[yt(),bt()],explicit:[vt(),wt(),xt(),kt()]}))}function At(){if(Qe)return tt;Qe=1;const e=rt(),t=it(),n=function(){if(pe)return he;pe=1;const e=rt();function t(e,t,n,r,i){let o="",l="";const s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(l=" ...",n=r+s-l.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+l,pos:r-t+o.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}return he=function(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);const o=/\r?\n|\r|\0/g,l=[0],s=[];let a,u=-1;for(;a=o.exec(r.buffer);)s.push(a.index),l.push(a.index+a[0].length),r.position<=a.index&&u<0&&(u=l.length-2);u<0&&(u=l.length-1);let c="";const d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let o=1;o<=i.linesBefore&&!(u-o<0);o++){const a=t(r.buffer,l[u-o],s[u-o],r.position-(l[u]-l[u-o]),f);c=e.repeat(" ",i.indent)+n((r.line-o+1).toString(),d)+" | "+a.str+"\n"+c}const h=t(r.buffer,l[u],s[u],r.position,f);c+=e.repeat(" ",i.indent)+n((r.line+1).toString(),d)+" | "+h.str+"\n",c+=e.repeat("-",i.indent+d+3+h.pos)+"^\n";for(let o=1;o<=i.linesAfter&&!(u+o>=s.length);o++){const a=t(r.buffer,l[u+o],s[u+o],r.position-(l[u]-l[u+o]),f);c+=e.repeat(" ",i.indent)+n((r.line+o+1).toString(),d)+" | "+a.str+"\n"}return c.replace(/\n$/,"")},he}(),r=Ct(),i=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,l=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,a=/^(?:!|!!|![0-9A-Za-z-]+!)$/,u=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function c(e){return Object.prototype.toString.call(e)}function d(e){return 10===e||13===e}function f(e){return 9===e||32===e}function h(e){return 9===e||32===e||10===e||13===e}function p(e){return 44===e||91===e||93===e||123===e||125===e}function g(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function m(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function b(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}const v=new Array(256),w=new Array(256);for(let e=0;e<256;e++)v[e]=m(e)?1:0,w[e]=m(e);function x(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function k(e,r){const i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function C(e,t){throw k(e,t)}function A(e,t){e.onWarning&&e.onWarning.call(null,k(e,t))}function S(e,t,n){const r=e.anchorMapTransactions;if(0!==r.length){const n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function T(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function O(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}const L={YAML:function(e,t,n){null!==e.version&&C(e,"duplication of %YAML directive"),1!==n.length&&C(e,"YAML directive accepts exactly one argument");const r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);null===r&&C(e,"ill-formed argument of the YAML directive");const i=parseInt(r[1],10),o=parseInt(r[2],10);1!==i&&C(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&A(e,"unsupported YAML version of the document")},TAG:function(e,t,n){let r;2!==n.length&&C(e,"TAG directive accepts exactly two arguments");const o=n[0];r=n[1],a.test(o)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),i.call(e.tagMap,o)&&C(e,'there is a previously declared suffix for "'+o+'" tag handle'),u.test(r)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){C(e,"tag prefix is malformed: "+r)}e.tagMap[o]=r}};function j(e,t,n,r){if(t<n){const i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){const n=i.charCodeAt(t);9===n||n>=32&&n<=1114111||C(e,"expected valid JSON character")}else o.test(i)&&C(e,"the stream contains non-printable characters");e.result+=i}}function N(t,n,r,o){e.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable");const l=Object.keys(r);for(let e=0,s=l.length;e<s;e+=1){const s=l[e];-1!==t.maxTotalMergeKeys&&++t.totalMergeKeys>t.maxTotalMergeKeys&&C(t,"merge keys exceeded maxTotalMergeKeys ("+t.maxTotalMergeKeys+")"),i.call(n,s)||(b(n,s,r[s]),o[s]=!0)}}function E(e,t,n,r,o,l,s,a,u){if(Array.isArray(o))for(let t=0,n=(o=Array.prototype.slice.call(o)).length;t<n;t+=1)Array.isArray(o[t])&&C(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===c(o[t])&&(o[t]="[object Object]");if("object"==typeof o&&"[object Object]"===c(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(l))for(let r=0,i=l.length;r<i;r+=1)N(e,t,l[r],n);else N(e,t,l,n);else e.json||i.call(n,o)||!i.call(t,o)||(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,C(e,"duplicated mapping key")),b(t,o,l),delete n[o];return t}function D(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):C(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function M(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;0!==i;){for(;f(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!d(i))break;for(D(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&A(e,"deficient indentation"),r}function R(e){let t=e.position,n=e.input.charCodeAt(t);return!(45!==n&&46!==n||n!==e.input.charCodeAt(t+1)||n!==e.input.charCodeAt(t+2)||(t+=3,n=e.input.charCodeAt(t),0!==n&&!h(n)))}function I(t,n){1===n?t.result+=" ":n>1&&(t.result+=e.repeat("\n",n-1))}function F(e,t){const n=e.tag,r=e.anchor,i=[];let o=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&S(e,e.anchor,i);let l=e.input.charCodeAt(e.position);for(;0!==l&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation")),45===l);){if(!h(e.input.charCodeAt(e.position+1)))break;if(o=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}const n=e.line;if(V(e,t,3,!1,!0),i.push(e.result),M(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==l)C(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=n,e.anchor=r,e.kind="sequence",e.result=i,!0)}function P(e,t,n){let r,i,o,l;const s=e.tag,a=e.anchor,u={},c=Object.create(null);let d=null,p=null,g=null,m=!1,y=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&S(e,e.anchor,u);let b=e.input.charCodeAt(e.position);for(;0!==b;){m||-1===e.firstTabInLine||(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation"));const v=e.input.charCodeAt(e.position+1),w=e.line;if(63!==b&&58!==b||!h(v)){if(i=e.line,o=e.lineStart,l=e.position,!V(e,n,2,!1,!0))break;if(e.line===w){for(b=e.input.charCodeAt(e.position);f(b);)b=e.input.charCodeAt(++e.position);if(58===b)b=e.input.charCodeAt(++e.position),h(b)||C(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(E(e,u,c,d,p,null,i,o,l),d=p=g=null),y=!0,m=!1,r=!1,d=e.tag,p=e.result;else{if(!y)return e.tag=s,e.anchor=a,!0;C(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=s,e.anchor=a,!0;C(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===b?(m&&(E(e,u,c,d,p,null,i,o,l),d=p=g=null),y=!0,m=!0,r=!0):m?(m=!1,r=!0):C(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=v;if((e.line===w||e.lineIndent>t)&&(m&&(i=e.line,o=e.lineStart,l=e.position),V(e,t,4,!0,r)&&(m?p=e.result:g=e.result),m||(E(e,u,c,d,p,g,i,o,l),d=p=g=null),M(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===w||e.lineIndent>t)&&0!==b)C(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&E(e,u,c,d,p,null,i,o,l),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=u),y}function H(e){let t,n,r=!1,o=!1,l=e.input.charCodeAt(e.position);if(33!==l)return!1;null!==e.tag&&C(e,"duplication of a tag property"),l=e.input.charCodeAt(++e.position),60===l?(r=!0,l=e.input.charCodeAt(++e.position)):33===l?(o=!0,t="!!",l=e.input.charCodeAt(++e.position)):t="!";let c=e.position;if(r){do{l=e.input.charCodeAt(++e.position)}while(0!==l&&62!==l);e.position<e.length?(n=e.input.slice(c,e.position),l=e.input.charCodeAt(++e.position)):C(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==l&&!h(l);)33===l&&(o?C(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(c-1,e.position+1),a.test(t)||C(e,"named tag handle cannot contain such characters"),o=!0,c=e.position+1)),l=e.input.charCodeAt(++e.position);n=e.input.slice(c,e.position),s.test(n)&&C(e,"tag suffix cannot contain flow indicator characters")}n&&!u.test(n)&&C(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){C(e,"tag name is malformed: "+n)}return r?e.tag=n:i.call(e.tagMap,t)?e.tag=e.tagMap[t]+n:"!"===t?e.tag="!"+n:"!!"===t?e.tag="tag:yaml.org,2002:"+n:C(e,'undeclared tag handle "'+t+'"'),!0}function B(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&C(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!h(t)&&!p(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&C(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function W(e,t,n,r){const o=T(e);return function(e){e.anchorMapTransactions.push(Object.create(null))}(e),O(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,P(e,n,r)&&"mapping"===e.kind?(function(e){const t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(0===n.length)return;const r=n[n.length-1],o=Object.keys(t);for(let e=0,n=o.length;e<n;e+=1){const n=o[e];i.call(r,n)||(r[n]=t[n])}}(e),!0):(function(e){const t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;r-=1){const i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}(e),O(e,o),!1)}function V(t,n,r,o,l){let s,a,u,c,m,b=1,x=!1,k=!1,A=null;t.depth>=t.maxDepth&&C(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;const O=s=a=4===r||3===r;if(o&&M(t,!0,-1)&&(x=!0,t.lineIndent>n?b=1:t.lineIndent===n?b=0:t.lineIndent<n&&(b=-1)),1===b)for(;;){const e=t.input.charCodeAt(t.position),r=T(t);if(x&&(33===e&&null!==t.tag||38===e&&null!==t.anchor))break;if(!H(t)&&!B(t))break;null===A&&(A=r),M(t,!0,-1)?(x=!0,a=O,t.lineIndent>n?b=1:t.lineIndent===n?b=0:t.lineIndent<n&&(b=-1)):a=!1}if(a&&(a=x||l),1===b||4===r)if(c=1===r||2===r?n:n+1,m=t.position-t.lineStart,1===b)if(a&&(F(t,m)||P(t,m,c))||function(e,t){let n,r,i,o=!0;const l=e.tag;let s;const a=e.anchor;let u,c,d,f;const p=Object.create(null);let g,m,y,b=e.input.charCodeAt(e.position);if(91===b)u=93,f=!1,s=[];else{if(123!==b)return!1;u=125,f=!0,s={}}for(null!==e.anchor&&S(e,e.anchor,s),b=e.input.charCodeAt(++e.position);0!==b;){if(M(e,!0,t),b=e.input.charCodeAt(e.position),b===u)return e.position++,e.tag=l,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;o?44===b&&C(e,"expected the node content, but found ','"):C(e,"missed comma between flow collection entries"),m=g=y=null,c=d=!1,63===b&&h(e.input.charCodeAt(e.position+1))&&(c=d=!0,e.position++,M(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,V(e,t,1,!1,!0),m=e.tag,g=e.result,M(e,!0,t),b=e.input.charCodeAt(e.position),!d&&e.line!==n||58!==b||(c=!0,b=e.input.charCodeAt(++e.position),M(e,!0,t),V(e,t,1,!1,!0),y=e.result),f?E(e,s,p,m,g,y,n,r,i):c?s.push(E(e,null,p,m,g,y,n,r,i)):s.push(g),M(e,!0,t),b=e.input.charCodeAt(e.position),44===b?(o=!0,b=e.input.charCodeAt(++e.position)):o=!1}C(e,"unexpected end of the stream within a flow collection")}(t,c))k=!0;else{const n=t.input.charCodeAt(t.position);null!==A&&O&&!a&&124!==n&&62!==n&&W(t,A,A.position-A.lineStart,c)||s&&function(t,n){let r,i,o=1,l=!1,s=!1,a=n,u=0,c=!1,h=t.input.charCodeAt(t.position);if(124===h)r=!1;else{if(62!==h)return!1;r=!0}for(t.kind="scalar",t.result="";0!==h;)if(h=t.input.charCodeAt(++t.position),43===h||45===h)1===o?o=43===h?3:2:C(t,"repeat of a chomping mode identifier");else{if(!((i=(p=h)>=48&&p<=57?p-48:-1)>=0))break;0===i?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?C(t,"repeat of an indentation width identifier"):(a=n+i-1,s=!0)}var p;if(f(h)){do{h=t.input.charCodeAt(++t.position)}while(f(h));if(35===h)do{h=t.input.charCodeAt(++t.position)}while(!d(h)&&0!==h)}for(;0!==h;){for(D(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&32===h;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),d(h)){u++;continue}if(s||0!==a||C(t,"missing indentation for block scalar"),t.lineIndent<a){3===o?t.result+=e.repeat("\n",l?1+u:u):1===o&&l&&(t.result+="\n");break}r?f(h)?(c=!0,t.result+=e.repeat("\n",l?1+u:u)):c?(c=!1,t.result+=e.repeat("\n",u+1)):0===u?l&&(t.result+=" "):t.result+=e.repeat("\n",u):t.result+=e.repeat("\n",l?1+u:u),l=!0,s=!0,u=0;const n=t.position;for(;!d(h)&&0!==h;)h=t.input.charCodeAt(++t.position);j(t,n,t.position,!1)}return!0}(t,c)||function(e,t){let n,r,i=e.input.charCodeAt(e.position);if(39!==i)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(i=e.input.charCodeAt(e.position));)if(39===i){if(j(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),39!==i)return!0;n=e.position,e.position++,r=e.position}else d(i)?(j(e,n,r,!0),I(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&R(e)?C(e,"unexpected end of the document within a single quoted scalar"):(e.position++,f(i)||(r=e.position));C(e,"unexpected end of the stream within a single quoted scalar")}(t,c)||function(e,t){let n,r,i,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return j(e,n,e.position,!0),e.position++,!0;if(92===o){if(j(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),d(o))M(e,!1,t);else if(o<256&&v[o])e.result+=w[o],e.position++;else if((i=120===(l=o)?2:117===l?4:85===l?8:0)>0){let t=i,n=0;for(;t>0;t--)o=e.input.charCodeAt(++e.position),(i=g(o))>=0?n=(n<<4)+i:C(e,"expected hexadecimal character");e.result+=y(n),e.position++}else C(e,"unknown escape sequence");n=r=e.position}else d(o)?(j(e,n,r,!0),I(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&R(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,f(o)||(r=e.position))}var l;C(e,"unexpected end of the stream within a double quoted scalar")}(t,c)?k=!0:!function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!h(t)&&!p(t);)t=e.input.charCodeAt(++e.position);e.position===n&&C(e,"name of an alias node must contain at least one character");const r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||C(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],M(e,!0,-1),!0}(t)?function(e,t,n){let r,i,o,l,s,a;const u=e.kind,c=e.result;let g=e.input.charCodeAt(e.position);if(h(g)||p(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if(63===g||45===g){const t=e.input.charCodeAt(e.position+1);if(h(t)||n&&p(t))return!1}for(e.kind="scalar",e.result="",r=i=e.position,o=!1;0!==g;){if(58===g){const t=e.input.charCodeAt(e.position+1);if(h(t)||n&&p(t))break}else if(35===g){if(h(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&R(e)||n&&p(g))break;if(d(g)){if(l=e.line,s=e.lineStart,a=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){o=!0,g=e.input.charCodeAt(e.position);continue}e.position=i,e.line=l,e.lineStart=s,e.lineIndent=a;break}}o&&(j(e,r,i,!1),I(e,e.line-l),r=i=e.position,o=!1),f(g)||(i=e.position+1),g=e.input.charCodeAt(++e.position)}return j(e,r,i,!1),!!e.result||(e.kind=u,e.result=c,!1)}(t,c,1===r)&&(k=!0,null===t.tag&&(t.tag="?")):(k=!0,null===t.tag&&null===t.anchor||C(t,"alias node should not have any properties")),null!==t.anchor&&S(t,t.anchor,t.result)}else 0===b&&(k=a&&F(t,m));if(null===t.tag)null!==t.anchor&&S(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,n=t.implicitTypes.length;e<n;e+=1)if(u=t.implicitTypes[e],u.resolve(t.result)){t.result=u.construct(t.result),t.tag=u.tag,null!==t.anchor&&S(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(i.call(t.typeMap[t.kind||"fallback"],t.tag))u=t.typeMap[t.kind||"fallback"][t.tag];else{u=null;const e=t.typeMap.multi[t.kind||"fallback"];for(let n=0,r=e.length;n<r;n+=1)if(t.tag.slice(0,e[n].tag.length)===e[n].tag){u=e[n];break}}u||C(t,"unknown tag !<"+t.tag+">"),null!==t.result&&u.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&S(t,t.anchor,t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||k}function $(e){const t=e.position;let n,r=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(M(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){r=!0,n=e.input.charCodeAt(++e.position);let t=e.position;for(;0!==n&&!h(n);)n=e.input.charCodeAt(++e.position);const o=e.input.slice(t,e.position),l=[];for(o.length<1&&C(e,"directive name must not be less than one character in length");0!==n;){for(;f(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!d(n));break}if(d(n))break;for(t=e.position;0!==n&&!h(n);)n=e.input.charCodeAt(++e.position);l.push(e.input.slice(t,e.position))}0!==n&&D(e),i.call(L,o)?L[o](e,o,l):A(e,'unknown document directive "'+o+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):r&&C(e,"directives end mark is expected"),V(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&l.test(e.input.slice(t,e.position))&&A(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&R(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position<e.length-1&&C(e,"end of the stream or a document separator is expected")}function U(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));const n=new x(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,C(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)$(n);return n.documents}return tt.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);const r=U(e,n);if("function"!=typeof t)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])},tt.load=function(e,n){const r=U(e,n);if(0!==r.length){if(1===r.length)return r[0];throw new t("expected a single document in the stream, but found more")}},tt}var St,Tt,Ot={};function Lt(){if(St)return Ot;St=1;const e=rt(),t=it(),n=Ct(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=65279,l={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},s=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],a=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function u(n){let r,i;const o=n.toString(16).toUpperCase();if(n<=255)r="x",i=2;else if(n<=65535)r="u",i=4;else{if(!(n<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+e.repeat("0",i-o.length)+o}function c(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){if(null===t)return{};const n={},r=Object.keys(t);for(let o=0,l=r.length;o<l;o+=1){let l=r[o],s=String(t[l]);"!!"===l.slice(0,2)&&(l="tag:yaml.org,2002:"+l.slice(2));const a=e.compiledTypeMap.fallback[l];a&&i.call(a.styleAliases,s)&&(s=a.styleAliases[s]),n[l]=s}return n}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(t,n){const r=e.repeat(" ",n);let i=0,o="";const l=t.length;for(;i<l;){let e;const n=t.indexOf("\n",i);-1===n?(e=t.slice(i),i=l):(e=t.slice(i,n+1),i=n+1),e.length&&"\n"!==e&&(o+=r),o+=e}return o}function f(t,n){return"\n"+e.repeat(" ",t.indent*n)}function h(e){return 32===e||9===e}function p(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==o||e>=65536&&e<=1114111}function g(e){return p(e)&&e!==o&&13!==e&&10!==e}function m(e,t,n){const r=g(e),i=r&&!h(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||g(t)&&!h(t)&&35===e||58===t&&i}function y(e,t){const n=e.charCodeAt(t);let r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}function b(e){return/^\n* /.test(e)}function v(e,t,n,r,i,l,s,a){let u,c=0,d=null,f=!1,g=!1;const v=-1!==r;let w=-1,x=p(k=y(e,0))&&k!==o&&!h(k)&&45!==k&&63!==k&&58!==k&&44!==k&&91!==k&&93!==k&&123!==k&&125!==k&&35!==k&&38!==k&&42!==k&&33!==k&&124!==k&&61!==k&&62!==k&&39!==k&&34!==k&&37!==k&&64!==k&&96!==k&&function(e){return!h(e)&&58!==e}(y(e,e.length-1));var k;if(t||s)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=y(e,u),!p(c))return 5;x=x&&m(c,d,a),d=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=y(e,u),10===c)f=!0,v&&(g=g||u-w-1>r&&" "!==e[w+1],w=u);else if(!p(c))return 5;x=x&&m(c,d,a),d=c}g=g||v&&u-w-1>r&&" "!==e[w+1]}return f||g?n>9&&b(e)?5:s?2===l?5:2:g?4:3:!x||s||i(e)?2===l?5:2:1}function w(e,n,r,i,o){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==s.indexOf(n)||a.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";const c=e.indent*Math.max(1,r),f=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),h=i||e.flowLevel>-1&&r>=e.flowLevel;switch(v(n,h,e.indent,f,(function(t){return function(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!i,o)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+x(n,e.indent)+k(d(n,c));case 4:return">"+x(n,e.indent)+k(d(function(e,t){const n=/(\n+)([^\n]*)/g;let r,i,o=function(){let r=e.indexOf("\n");return r=-1!==r?r:e.length,n.lastIndex=r,C(e.slice(0,r),t)}(),l="\n"===e[0]||" "===e[0];for(;i=n.exec(e);){const e=i[1],n=i[2];r=" "===n[0],o+=e+(l||r||""===n?"":"\n")+C(n,t),l=r}return o}(n,f),c));case 5:return'"'+function(e){let t="",n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=y(e,r);const i=l[n];!i&&p(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}(n)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function x(e,t){const n=b(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function k(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){if(""===e||" "===e[0])return e;const n=/ [^ ]/g;let r,i,o=0,l=0,s=0,a="";for(;r=n.exec(e);)s=r.index,s-o>t&&(i=l>o?l:s,a+="\n"+e.slice(o,i),o=i+1),l=s;return a+="\n",e.length-o>t&&l>o?a+=e.slice(o,l)+"\n"+e.slice(l+1):a+=e.slice(o),a.slice(1)}function A(e,t,n,r){let i="";const o=e.tag;for(let o=0,l=n.length;o<l;o+=1){let l=n[o];e.replacer&&(l=e.replacer.call(n,String(o),l)),(T(e,t+1,l,!0,!0,!1,!0)||void 0===l&&T(e,t+1,null,!0,!0,!1,!0))&&(r&&""===i||(i+=f(e,t)),e.dump&&10===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump)}e.tag=o,e.dump=i||"[]"}function S(e,n,o){const l=o?e.explicitTypes:e.implicitTypes;for(let s=0,a=l.length;s<a;s+=1){const a=l[s];if((a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof n&&n instanceof a.instanceOf)&&(!a.predicate||a.predicate(n))){if(o?a.multi&&a.representName?e.tag=a.representName(n):e.tag=a.tag:e.tag="?",a.represent){const o=e.styleMap[a.tag]||a.defaultStyle;let l;if("[object Function]"===r.call(a.represent))l=a.represent(n,o);else{if(!i.call(a.represent,o))throw new t("!<"+a.tag+'> tag resolver accepts not "'+o+'" style');l=a.represent[o](n,o)}e.dump=l}return!0}}return!1}function T(e,n,i,o,l,s,a){e.tag=null,e.dump=i,S(e,i,!1)||S(e,i,!0);const u=r.call(e.dump),c=o;o&&(o=e.flowLevel<0||e.flowLevel>n);const d="[object Object]"===u||"[object Array]"===u;let h,p;if(d&&(h=e.duplicates.indexOf(i),p=-1!==h),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&n>0)&&(l=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(d&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,n,r,i){let o="";const l=e.tag,s=Object.keys(r);if(!0===e.sortKeys)s.sort();else if("function"==typeof e.sortKeys)s.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,l=s.length;t<l;t+=1){let l="";i&&""===o||(l+=f(e,n));const a=s[t];let u=r[a];if(e.replacer&&(u=e.replacer.call(r,a,u)),!T(e,n+1,a,!0,!0,!0))continue;const c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;c&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=f(e,n)),T(e,n+1,u,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",l+=e.dump,o+=l)}e.tag=l,e.dump=o||"{}"}(e,n,e.dump,l),p&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const i=e.tag,o=Object.keys(n);for(let i=0,l=o.length;i<l;i+=1){let l="";""!==r&&(l+=", "),e.condenseFlow&&(l+='"');const s=o[i];let a=n[s];e.replacer&&(a=e.replacer.call(n,s,a)),T(e,t,s,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),T(e,t,a,!1,!1)&&(l+=e.dump,r+=l))}e.tag=i,e.dump="{"+r+"}"}(e,n,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===u)o&&0!==e.dump.length?(e.noArrayIndent&&!a&&n>0?A(e,n-1,e.dump,l):A(e,n,e.dump,l),p&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const i=e.tag;for(let i=0,o=n.length;i<o;i+=1){let o=n[i];e.replacer&&(o=e.replacer.call(n,String(i),o)),(T(e,t,o,!1,!1)||void 0===o&&T(e,t,null,!1,!1))&&(""!==r&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump)}e.tag=i,e.dump="["+r+"]"}(e,n,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else{if("[object String]"!==u){if("[object Undefined]"===u)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+u)}"?"!==e.tag&&w(e,e.dump,n,s,c)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function O(e,t){const n=[],r=[];L(e,n,r);const i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=new Array(i)}function L(e,t,n){if(null!==e&&"object"==typeof e){const r=t.indexOf(e);if(-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)L(e[r],t,n);else{const r=Object.keys(e);for(let i=0,o=r.length;i<o;i+=1)L(e[r[i]],t,n)}}}return Ot.dump=function(e,t){const n=new c(t=t||{});n.noRefs||O(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),T(n,0,r,!0,!0)?n.dump+"\n":""},Ot}var jt=function(){if(Tt)return et;Tt=1;const e=At(),t=Lt();function n(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return et.Type=ot(),et.Schema=lt(),et.FAILSAFE_SCHEMA=ct(),et.JSON_SCHEMA=gt(),et.CORE_SCHEMA=mt(),et.DEFAULT_SCHEMA=Ct(),et.load=e.load,et.loadAll=e.loadAll,et.dump=t.dump,et.YAMLException=it(),et.types={binary:vt(),float:pt(),map:ut(),null:dt(),pairs:xt(),set:kt(),timestamp:yt(),bool:ft(),int:ht(),merge:bt(),omap:wt(),seq:at(),str:st()},et.safeLoad=n("safeLoad","load"),et.safeLoadAll=n("safeLoadAll","loadAll"),et.safeDump=n("safeDump","dump"),et}();const Nt=ue(jt),{Type:Et,Schema:Dt,FAILSAFE_SCHEMA:Mt,JSON_SCHEMA:Rt,CORE_SCHEMA:It,DEFAULT_SCHEMA:Ft,load:Pt,loadAll:Ht,dump:Bt,YAMLException:Wt,types:Vt,safeLoad:$t,safeLoadAll:Ut,safeDump:Gt}=Nt,zt=r;var _t,qt;function Yt(e,t){return"yaml"===t?Bt(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function Kt(e,t){return function(e,t,n="json"){const r=Yt(e,n);return r===Yt(t,n)?[{value:r}]:Jt(e,t,0,n)}(e,t,"json")}function Jt(e,t,n,r="json"){const i=Yt(e,r),o=Yt(t,r);return i===o?[{value:Zt(i,n,r)}]:"object"!=typeof e||null===e||"object"!=typeof t||null===t||Array.isArray(e)||Array.isArray(t)?Array.isArray(e)&&Array.isArray(t)?function(e,t,n,r="json"){const i=[],o=" ".repeat(n),l=" ".repeat(n+1);i.push({value:"[\n"});const s=Math.max(e.length,t.length);for(let o=0;o<s;o++){const a=o===s-1?"":",";if(o>=e.length){const e=Zt(Yt(t[o],r),n+1);i.push({added:!0,value:l+e+a+"\n"})}else if(o>=t.length){const t=Zt(Yt(e[o],r),n+1);i.push({removed:!0,value:l+t+a+"\n"})}else{const s=Yt(e[o],r);if(s===Yt(t[o],r)){const e=Zt(s,n+1);i.push({value:l+e+a+"\n"})}else{const s=Jt(e[o],t[o],n+1,r);if(s.length>0&&(s[0].value=l+s[0].value),a&&s.length>0){const e=s[s.length-1];e.value=e.value.replace(/\n$/,a+"\n")}i.push(...s)}}}return i.push({value:o+"]\n"}),i}(e,t,n,r):function(e,t,n){const r=Zt(e,n),i=Zt(t,n),o=E(r,i);return o.map((e=>({value:e.value,added:e.added,removed:e.removed})))}(i,o,n,r):function(e,t,n,r="json"){const i=[],o=" ".repeat(n),l=" ".repeat(n+1),s=new Set(Object.keys(e)),a=Object.keys(t),u=[...s].filter((e=>!(e in t))),c=[...a,...u];i.push({value:"{\n"});for(let o=0;o<c.length;o++){const s=c[o],a=o===c.length-1?"":",",u=s in e;if(u&&s in t){const o=Yt(e[s],r);if(o===Yt(t[s],r)){const e=Zt(o,n+1);i.push({value:l+JSON.stringify(s)+": "+e+a+"\n"})}else{const o=l+JSON.stringify(s)+": ",u=Jt(e[s],t[s],n+1,r);if(u.length>0)if(u[0].removed||u[0].added){const e=u.find((e=>e.removed)),t=u.find((e=>e.added));e&&(e.value=o+e.value),t&&(t.value=o+t.value)}else u[0].value=o+u[0].value;if(a&&u.length>0){const e=u[u.length-1];e.value=e.value.replace(/\n$/,a+"\n")}i.push(...u)}}else if(u){const t=Zt(Yt(e[s],r),n+1);i.push({removed:!0,value:l+JSON.stringify(s)+": "+t+a+"\n"})}else{const e=Zt(Yt(t[s],r),n+1);i.push({added:!0,value:l+JSON.stringify(s)+": "+e+a+"\n"})}}return i.push({value:o+"}\n"}),i}(e,t,n,r)}function Zt(e,t,n="json"){if(0===t)return e;const r=" ".repeat(t);return e.split("\n").map(((e,t)=>0===t?e:r+e)).join("\n")}!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"}(_t||(_t={})),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"}(qt||(qt={}));const Xt=e=>{if(""===e)return[];return e.replace(/\n$/,"").split("\n")},Qt=(e,t,n=qt.CHARS)=>{const r=("string"==typeof n?zt[n]:n)(e,t),i={left:[],right:[]};return r.forEach((({added:e,removed:t,value:n})=>{if(e)i.right.push({type:_t.ADDED,value:n});else if(t)i.left.push({type:_t.REMOVED,value:n});else{const e={type:_t.DEFAULT,value:n};i.right.push(e),i.left.push(e)}})),i},en=(e,t,n=!1,r=qt.CHARS,i=0,o=[],l=!1)=>{let s=[];if("string"==typeof e&&"string"==typeof t)if(r===qt.JSON)s=function(e,t){try{const n=JSON.parse(e),r=JSON.parse(t);return JSON.stringify(n)===JSON.stringify(r)?[{value:e}]:E(e,t,{newlineIsToken:!1})}catch(n){return E(e,t,{newlineIsToken:!1})}}(e,t);else if(r===qt.YAML)try{s=function(e,t){const n=Pt(e),r=Pt(t);return Bt(n,{indent:2,lineWidth:-1,noRefs:!0})===Bt(r,{indent:2,lineWidth:-1,noRefs:!0})?[{value:e}]:E(e,t,{newlineIsToken:!1})}(e,t)}catch(n){s=E(e,t,{newlineIsToken:!1})}else s=E(e,t,{newlineIsToken:!1});else s=Kt(e,t);let a=i,u=i,c=[],d=0;const f=[],h=[],p=(e,t,i,c,g)=>Xt(e).map(((e,m)=>{const y={},b={};if(!(h.includes(`${t}-${m}`)||g&&0!==m)){if(i||c){let i=!0;if(c){u+=1,y.lineNumber=u,y.type=_t.REMOVED,y.value=e||" ";const o=s[t+1];if(o?.added){const s=Xt(o.value)[m];if(s){const o=p(s,t,!0,!1,!0),{value:a,lineNumber:u,type:c}=o[0].right;if(h.push(`${t+1}-${m}`),b.lineNumber=u,y.value===a)i=!1,b.type=0,y.type=0,b.value=a;else{b.type=c;const t=500,i=e.length>t||a.length>t;if(n||i)b.value=a;else if(l)y.rawValue=e,y.value=e,b.rawValue=a,b.value=a;else{const t=Qt(e,a,r);b.value=t.right,y.value=t.left}}}}}else a+=1,b.lineNumber=a,b.type=_t.ADDED,b.value=e;i&&!g&&(f.includes(d)||f.push(d))}else u+=1,a+=1,y.lineNumber=u,y.type=_t.DEFAULT,y.value=e,b.lineNumber=a,b.type=_t.DEFAULT,b.value=e;return(o?.includes(`L-${y.lineNumber}`)||o?.includes(`R-${b.lineNumber}`)&&!f.includes(d))&&f.push(d),g||(d+=1),{right:b,left:y}}})).filter((e=>null!=e));return s.forEach((({added:e,removed:t,value:n},r)=>{c=[...c,...p(n,r,e,t)]})),{lineInformation:c,diffLines:f}};let tn=null,nn=null;const rn=async(e,t,r=!1,i=qt.CHARS,o=0,l=[],s=!1,a=!1)=>{const u=()=>en(e,t,r,i,o,l,s);if(a)return Promise.resolve(u());const c=await(async()=>{if(null!==tn)return tn;if(!1===nn)return null;if("undefined"==typeof Worker||"undefined"==typeof Blob||"undefined"==typeof URL)return nn=!1,null;try{const{WORKER_CODE:e}=await n.e(74251).then(n.bind(n,74251)),t=new Blob([e],{type:"application/javascript"});tn=URL.createObjectURL(t),nn=!0}catch{nn=!1,tn=null}return tn})();return c?new Promise((n=>{let a;try{a=new Worker(c)}catch{return nn=!1,void n(u())}a.onmessage=e=>{n(e.data),a.terminate()},a.onerror=()=>{nn=!1,a.terminate(),n(u())},a.postMessage({oldString:e,newString:t,disableWordDiff:r,lineCompareMethod:i,linesOffset:o,showLines:l,deferWordDiff:s})})):Promise.resolve(u())};function on(){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[(0,o.jsx)("title",{children:"expand"}),(0,o.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"})]})}var ln=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),sn=Math.abs,an=String.fromCharCode,un=Object.assign;function cn(e){return e.trim()}function dn(e,t,n){return e.replace(t,n)}function fn(e,t){return e.indexOf(t)}function hn(e,t){return 0|e.charCodeAt(t)}function pn(e,t,n){return e.slice(t,n)}function gn(e){return e.length}function mn(e){return e.length}function yn(e,t){return t.push(e),e}var bn=1,vn=1,wn=0,xn=0,kn=0,Cn="";function An(e,t,n,r,i,o,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:bn,column:vn,length:l,return:""}}function Sn(e,t){return un(An("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tn(){return kn=xn>0?hn(Cn,--xn):0,vn--,10===kn&&(vn=1,bn--),kn}function On(){return kn=xn<wn?hn(Cn,xn++):0,vn++,10===kn&&(vn=1,bn++),kn}function Ln(){return hn(Cn,xn)}function jn(){return xn}function Nn(e,t){return pn(Cn,e,t)}function En(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 Dn(e){return bn=vn=1,wn=gn(Cn=e),xn=0,[]}function Mn(e){return Cn="",e}function Rn(e){return cn(Nn(xn-1,Pn(91===e?e+2:40===e?e+1:e)))}function In(e){for(;(kn=Ln())&&kn<33;)On();return En(e)>2||En(kn)>3?"":" "}function Fn(e,t){for(;--t&&On()&&!(kn<48||kn>102||kn>57&&kn<65||kn>70&&kn<97););return Nn(e,jn()+(t<6&&32==Ln()&&32==On()))}function Pn(e){for(;On();)switch(kn){case e:return xn;case 34:case 39:34!==e&&39!==e&&Pn(kn);break;case 40:41===e&&Pn(e);break;case 92:On()}return xn}function Hn(e,t){for(;On()&&e+kn!==57&&(e+kn!==84||47!==Ln()););return"/*"+Nn(t,xn-1)+"*"+an(47===e?e:On())}function Bn(e){for(;!En(Ln());)On();return Nn(e,xn)}var Wn="-ms-",Vn="-moz-",$n="-webkit-",Un="comm",Gn="rule",zn="decl",_n="@keyframes";function qn(e,t){for(var n="",r=mn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Yn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case zn:return e.return=e.return||e.value;case Un:return"";case _n:return e.return=e.value+"{"+qn(e.children,r)+"}";case Gn:e.value=e.props.join(",")}return gn(n=qn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kn(e){return Mn(Jn("",null,null,null,[""],e=Dn(e),0,[0],e))}function Jn(e,t,n,r,i,o,l,s,a){for(var u=0,c=0,d=l,f=0,h=0,p=0,g=1,m=1,y=1,b=0,v="",w=i,x=o,k=r,C=v;m;)switch(p=b,b=On()){case 40:if(108!=p&&58==hn(C,d-1)){-1!=fn(C+=dn(Rn(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=Rn(b);break;case 9:case 10:case 13:case 32:C+=In(p);break;case 92:C+=Fn(jn()-1,7);continue;case 47:switch(Ln()){case 42:case 47:yn(Xn(Hn(On(),jn()),t,n),a);break;default:C+="/"}break;case 123*g:s[u++]=gn(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==y&&(C=dn(C,/\f/g,"")),h>0&&gn(C)-d&&yn(h>32?Qn(C+";",r,n,d-1):Qn(dn(C," ","")+";",r,n,d-2),a);break;case 59:C+=";";default:if(yn(k=Zn(C,t,n,u,c,i,s,v,w=[],x=[],d),o),123===b)if(0===c)Jn(C,t,k,k,w,o,d,s,x);else switch(99===f&&110===hn(C,3)?100:f){case 100:case 108:case 109:case 115:Jn(e,k,k,r&&yn(Zn(e,k,k,0,0,i,s,v,i,w=[],d),x),i,x,d,s,r?w:x);break;default:Jn(C,k,k,k,[""],x,0,s,x)}}u=c=h=0,g=y=1,v=C="",d=l;break;case 58:d=1+gn(C),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Tn())continue;switch(C+=an(b),b*g){case 38:y=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(gn(C)-1)*y,y=1;break;case 64:45===Ln()&&(C+=Rn(On())),f=Ln(),c=d=gn(v=C+=Bn(jn())),b++;break;case 45:45===p&&2==gn(C)&&(g=0)}}return o}function Zn(e,t,n,r,i,o,l,s,a,u,c){for(var d=i-1,f=0===i?o:[""],h=mn(f),p=0,g=0,m=0;p<r;++p)for(var y=0,b=pn(e,d+1,d=sn(g=l[p])),v=e;y<h;++y)(v=cn(g>0?f[y]+" "+b:dn(b,/&\f/g,f[y])))&&(a[m++]=v);return An(e,t,n,0===i?Gn:s,a,u,c)}function Xn(e,t,n){return An(e,t,n,Un,an(kn),pn(e,2,-2),0)}function Qn(e,t,n,r){return An(e,t,n,zn,pn(e,0,r),pn(e,r+1,-1),r)}var er=function(e,t,n){for(var r=0,i=0;r=i,i=Ln(),38===r&&12===i&&(t[n]=1),!En(i);)On();return Nn(e,xn)},tr=function(e,t){return Mn(function(e,t){var n=-1,r=44;do{switch(En(r)){case 0:38===r&&12===Ln()&&(t[n]=1),e[n]+=er(xn-1,t,n);break;case 2:e[n]+=Rn(r);break;case 4:if(44===r){e[++n]=58===Ln()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=an(r)}}while(r=On());return e}(Dn(e),t))},nr=new WeakMap,rr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nr.get(n))&&!r){nr.set(e,!0);for(var i=[],o=tr(t,i),l=n.props,s=0,a=0;s<o.length;s++)for(var u=0;u<l.length;u++,a++)e.props[a]=i[s]?o[s].replace(/&\f/g,l[u]):l[u]+" "+o[s]}}},ir=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function or(e,t){switch(function(e,t){return 45^hn(e,0)?(((t<<2^hn(e,0))<<2^hn(e,1))<<2^hn(e,2))<<2^hn(e,3):0}(e,t)){case 5103:return $n+"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 $n+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $n+e+Vn+e+Wn+e+e;case 6828:case 4268:return $n+e+Wn+e+e;case 6165:return $n+e+Wn+"flex-"+e+e;case 5187:return $n+e+dn(e,/(\w+).+(:[^]+)/,$n+"box-$1$2"+Wn+"flex-$1$2")+e;case 5443:return $n+e+Wn+"flex-item-"+dn(e,/flex-|-self/,"")+e;case 4675:return $n+e+Wn+"flex-line-pack"+dn(e,/align-content|flex-|-self/,"")+e;case 5548:return $n+e+Wn+dn(e,"shrink","negative")+e;case 5292:return $n+e+Wn+dn(e,"basis","preferred-size")+e;case 6060:return $n+"box-"+dn(e,"-grow","")+$n+e+Wn+dn(e,"grow","positive")+e;case 4554:return $n+dn(e,/([^-])(transform)/g,"$1"+$n+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,$n+"$1"),/(image-set)/,$n+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,$n+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,$n+"box-pack:$3"+Wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$n+e+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,$n+"$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(gn(e)-1-t>6)switch(hn(e,t+1)){case 109:if(45!==hn(e,t+4))break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+$n+"$2-$3$1"+Vn+(108==hn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch")?or(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==hn(e,t+1))break;case 6444:switch(hn(e,gn(e)-3-(~fn(e,"!important")&&10))){case 107:return dn(e,":",":"+$n)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$n+(45===hn(e,14)?"inline-":"")+"box$3$1"+$n+"$2$3$1"+Wn+"$2box$3")+e}break;case 5936:switch(hn(e,t+11)){case 114:return $n+e+Wn+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $n+e+Wn+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $n+e+Wn+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $n+e+Wn+e+e}return e}var lr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zn:e.return=or(e.value,e.length);break;case _n:return qn([Sn(e,{value:dn(e.value,"@","@"+$n)})],r);case Gn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qn([Sn(e,{props:[dn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return qn([Sn(e,{props:[dn(t,/:(plac\w+)/,":"+$n+"input-$1")]}),Sn(e,{props:[dn(t,/:(plac\w+)/,":-moz-$1")]}),Sn(e,{props:[dn(t,/:(plac\w+)/,Wn+"input-$1")]})],r)}return""}))}}],sr=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||lr,l={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;s.push(e)}));var a,u,c,d,f=[Yn,(d=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(u=[rr,ir].concat(o,f),c=mn(u),function(e,t,n,r){for(var i="",o=0;o<c;o++)i+=u[o](e,t,n,r)||"";return i});i=function(e,t,n,r){a=n,function(e){qn(Kn(e),h)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ln({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return p.sheet.hydrate(s),p};var ar={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};function ur(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cr=/[A-Z]|^ms/g,dr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fr=function(e){return 45===e.charCodeAt(1)},hr=function(e){return null!=e&&"boolean"!=typeof e},pr=ur((function(e){return fr(e)?e:e.replace(cr,"-$&").toLowerCase()})),gr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dr,(function(e,t,n){return yr={name:t,styles:n,next:yr},t}))}return 1===ar[e]||fr(e)||"number"!=typeof t||0===t?t:t+"px"};function mr(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return yr={name:i.name,styles:i.styles,next:yr},i.name;var o=n;if(void 0!==o.styles){var l=o.next;if(void 0!==l)for(;void 0!==l;)yr={name:l.name,styles:l.styles,next:yr},l=l.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=mr(e,t,n[i])+";";else for(var o in n){var l=n[o];if("object"!=typeof l){var s=l;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":hr(s)&&(r+=pr(o)+":"+gr(o,s)+";")}else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var a=mr(e,t,l);switch(o){case"animation":case"animationName":r+=pr(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var u=0;u<l.length;u++)hr(l[u])&&(r+=pr(o)+":"+gr(o,l[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=yr,a=n(e);return yr=s,mr(e,t,a)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var yr,br=/label:\s*([^\s;{]+)\s*(;|$)/g;function vr(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";yr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=mr(n,t,o)):i+=o[0];for(var l=1;l<e.length;l++){if(i+=mr(n,t,e[l]),r)i+=o[l]}br.lastIndex=0;for(var s,a="";null!==(s=br.exec(i));)a+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+a;return{name:u,styles:i,next:yr}}function wr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}function xr(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function kr(e,t,n){var r=[],i=wr(e,r,n);return r.length<2?n:i+t(r)}var Cr=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var l in o="",i)i[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=i}o&&(n&&(n+=" "),n+=o)}}return n};const Ar=Object.freeze({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"}),Sr=Object.freeze({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"}),Tr=(e,t=!1,n="")=>{const{variables:r={},...i}=e,o={light:{...Ar,...r.light||{}},dark:{...Sr,...r.dark||{}}},l=t?o.dark:o.light,{css:s,cx:a}=function(e){var t=sr(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=vr(n,t.registered,void 0);return function(e,t){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,!1);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+n:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,i),t.key+"-"+i.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return kr(t.registered,n,Cr(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=vr(n,t.registered);xr(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=vr(n,t.registered),o="animation-"+i.name;return xr(t,{name:i.name,styles:"@keyframes "+o+"{"+i.styles+"}"}),o},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:wr.bind(null,t.registered),merge:kr.bind(null,t.registered,n)}}({key:"react-diff",nonce:n}),u=s({width:"auto",overflow:"hidden",padding:0,label:"content"}),c=s({label:"split-view"}),d=s({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),f=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}),h=s({display:"flex",label:"column-headers"}),p=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",borderRadius:0,"& td, & th":{border:0,verticalAlign:"baseline"},"@media (max-width: 768px)":{minWidth:"unset"}}),g=s({overflow:"hidden",width:"100%"}),m=s({color:l.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),y=s({display:"flex",alignItems:"baseline",label:"content-flex"}),b=s({whiteSpace:"pre",wordBreak:"keep-all",flex:"0 0 auto",label:"line-indent"}),v=s({flex:"1 1 auto",minWidth:0,label:"line-body"}),w=s({userSelect:"none",label:"unselectable"}),x=s({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${m}`]:{whiteSpace:"pre",lineBreak:"auto"}}),k=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}`},[`.${m}`]:{color:l.diffViewerTitleColor}}),A=s({color:l.gutterColor,label:"line-number"}),S=s({background:l.removedBackground,color:l.removedColor,pre:{color:l.removedColor},[`.${A}`]:{color:l.removedGutterColor},label:"diff-removed"}),T=s({background:l.addedBackground,color:l.addedColor,pre:{color:l.addedColor},[`.${A}`]:{color:l.addedGutterColor},label:"diff-added"}),O=s({background:l.changedBackground,[`.${A}`]:{color:l.gutterColor},label:"diff-changed"}),L=s({display:"inline",textDecoration:"none",label:"word-diff"}),j=s({background:l.wordAddedBackground,label:"word-added"}),N=s({background:l.wordRemovedBackground,label:"word-removed"}),E=s({backgroundColor:l.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",padding:0,textAlign:"center",fill:l.codeFoldContentColor}),D=s({padding:0,overflow:"hidden","&&&":{verticalAlign:"middle"},label:"code-fold-content-container"}),M=s({background:l.codeFoldBackground,cursor:"pointer",display:"block",margin:0,padding:0,border:"none",font:"inherit",lineHeight:"inherit",textAlign:"left",fill:l.codeFoldContentColor,label:"code-fold-expand-button"}),R=s({color:l.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),I=s({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:l.diffViewerTitleBorderColor}),F=s({backgroundColor:l.wordAddedBackground}),P=s({backgroundColor:l.wordRemovedBackground}),H=s({backgroundColor:l.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","& td":{paddingTop:0,paddingBottom:0},"&:hover":{color:l.diffViewerColor,fill:l.diffViewerColor,"& *":{color:l.diffViewerColor,fill:l.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),B=s({backgroundColor:l.emptyLineBackground,label:"empty-line"}),W=s({width:28,paddingLeft:10,paddingRight:10,paddingTop:0,paddingBottom:0,userSelect:"none",label:"marker",[`&.${T}`]:{pre:{color:l.addedColor}},[`&.${S}`]:{pre:{color:l.removedColor}}}),V=s({background:l.highlightBackground,label:"highlighted-line",[`.${j}, .${N}`]:{backgroundColor:"initial"}}),$=s({label:"highlighted-gutter"}),U=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%"},[`&.${T}`]:{background:l.addedGutterBackground},[`&.${S}`]:{background:l.removedGutterBackground},[`&.${$}`]:{background:l.highlightGutterBackground,"&:hover":{background:l.highlightGutterBackground}}}),G=s({"&:hover":{background:l.gutterBackground,cursor:"initial"},label:"empty-gutter"}),z={diffContainer:p,diffRemoved:S,diffAdded:T,diffChanged:O,splitView:c,marker:W,highlightedGutter:$,highlightedLine:V,gutter:U,line:s({verticalAlign:"baseline",label:"line",textDecoration:"none",backgroundColor:"transparent",fontSize:12}),lineContent:g,wordDiff:L,wordAdded:j,summary:f,block:I,blockAddition:F,blockDeletion:P,wordRemoved:N,noSelect:w,noWrap:x,codeFoldGutter:E,codeFoldExpandButton:M,codeFoldContentContainer:D,codeFold:H,emptyGutter:G,emptyLine:B,lineNumber:A,contentText:m,contentFlex:y,lineIndent:b,lineBody:v,content:u,column:s({}),codeFoldContent:R,stickyHeader:d,columnHeaders:h,titleBlock:C,allExpandButton:k},_=Object.keys(i).reduce(((e,t)=>({...e,[t]:s(i[t])})),{});return Object.keys(z).reduce(((e,t)=>({...e,[t]:_[t]?a(z[t],_[t]):z[t]})),{})};function Or(){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[(0,o.jsx)("title",{children:"fold"}),(0,o.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"})]})}class Lr{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function jr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Lr(n,r,t)}function Nr(e){return e.toLowerCase()}Lr.prototype.normal={},Lr.prototype.property={},Lr.prototype.space=void 0;class Er{constructor(e,t){this.attribute=t,this.property=e}}Er.prototype.attribute="",Er.prototype.booleanish=!1,Er.prototype.boolean=!1,Er.prototype.commaOrSpaceSeparated=!1,Er.prototype.commaSeparated=!1,Er.prototype.defined=!1,Er.prototype.mustUseProperty=!1,Er.prototype.number=!1,Er.prototype.overloadedBoolean=!1,Er.prototype.property="",Er.prototype.spaceSeparated=!1,Er.prototype.space=void 0;let Dr=0;const Mr=Wr(),Rr=Wr(),Ir=Wr(),Fr=Wr(),Pr=Wr(),Hr=Wr(),Br=Wr();function Wr(){return 2**++Dr}const Vr=Object.keys(i);class $r extends Er{constructor(e,t,n,r){let o=-1;if(super(e,t),Ur(this,"space",r),"number"==typeof n)for(;++o<Vr.length;){const e=Vr[o];Ur(this,Vr[o],(n&i[e])===i[e])}}}function Ur(e,t,n){n&&(e[t]=n)}function Gr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new $r(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Nr(r)]=r,n[Nr(o.attribute)]=r}return new Lr(t,n,e.space)}$r.prototype.defined=!0;const zr=Gr({properties:{ariaActiveDescendant:null,ariaAtomic:Rr,ariaAutoComplete:null,ariaBusy:Rr,ariaChecked:Rr,ariaColCount:Fr,ariaColIndex:Fr,ariaColSpan:Fr,ariaControls:Pr,ariaCurrent:null,ariaDescribedBy:Pr,ariaDetails:null,ariaDisabled:Rr,ariaDropEffect:Pr,ariaErrorMessage:null,ariaExpanded:Rr,ariaFlowTo:Pr,ariaGrabbed:Rr,ariaHasPopup:null,ariaHidden:Rr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pr,ariaLevel:Fr,ariaLive:null,ariaModal:Rr,ariaMultiLine:Rr,ariaMultiSelectable:Rr,ariaOrientation:null,ariaOwns:Pr,ariaPlaceholder:null,ariaPosInSet:Fr,ariaPressed:Rr,ariaReadOnly:Rr,ariaRelevant:null,ariaRequired:Rr,ariaRoleDescription:Pr,ariaRowCount:Fr,ariaRowIndex:Fr,ariaRowSpan:Fr,ariaSelected:Rr,ariaSetSize:Fr,ariaSort:null,ariaValueMax:Fr,ariaValueMin:Fr,ariaValueNow:Fr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function _r(e,t){return t in e?e[t]:t}function qr(e,t){return _r(e,t.toLowerCase())}const Yr=Gr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hr,acceptCharset:Pr,accessKey:Pr,action:null,allow:null,allowFullScreen:Mr,allowPaymentRequest:Mr,allowUserMedia:Mr,alpha:Mr,alt:null,as:null,async:Mr,autoCapitalize:null,autoComplete:Pr,autoFocus:Mr,autoPlay:Mr,blocking:Pr,capture:null,charSet:null,checked:Mr,cite:null,className:Pr,closedBy:null,colorSpace:null,cols:Fr,colSpan:Fr,command:null,commandFor:null,content:null,contentEditable:Rr,controls:Mr,controlsList:Pr,coords:Fr|Hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mr,defer:Mr,dir:null,dirName:null,disabled:Mr,download:Ir,draggable:Rr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mr,formTarget:null,headers:Pr,height:Fr,hidden:Ir,high:Fr,href:null,hrefLang:null,htmlFor:Pr,httpEquiv:Pr,id:null,imageSizes:null,imageSrcSet:null,inert:Mr,inputMode:null,integrity:null,is:null,isMap:Mr,itemId:null,itemProp:Pr,itemRef:Pr,itemScope:Mr,itemType:Pr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mr,low:Fr,manifest:null,max:null,maxLength:Fr,media:null,method:null,min:null,minLength:Fr,multiple:Mr,muted:Mr,name:null,nonce:null,noModule:Mr,noValidate:Mr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mr,optimum:Fr,pattern:null,ping:Pr,placeholder:null,playsInline:Mr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mr,referrerPolicy:null,rel:Pr,required:Mr,reversed:Mr,rows:Fr,rowSpan:Fr,sandbox:Pr,scope:null,scoped:Mr,seamless:Mr,selected:Mr,shadowRootClonable:Mr,shadowRootCustomElementRegistry:Mr,shadowRootDelegatesFocus:Mr,shadowRootMode:null,shadowRootSerializable:Mr,shape:null,size:Fr,sizes:null,slot:null,span:Fr,spellCheck:Rr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fr,step:null,style:null,tabIndex:Fr,target:null,title:null,translate:null,type:null,typeMustMatch:Mr,useMap:null,value:Rr,width:Fr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pr,axis:null,background:null,bgColor:null,border:Fr,borderColor:null,bottomMargin:Fr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mr,declare:Mr,event:null,face:null,frame:null,frameBorder:null,hSpace:Fr,leftMargin:Fr,link:null,longDesc:null,lowSrc:null,marginHeight:Fr,marginWidth:Fr,noResize:Mr,noHref:Mr,noShade:Mr,noWrap:Mr,object:null,profile:null,prompt:null,rev:null,rightMargin:Fr,rules:null,scheme:null,scrolling:Rr,standby:null,summary:null,text:null,topMargin:Fr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fr,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Mr,disablePictureInPicture:Mr,disableRemotePlayback:Mr,exportParts:Hr,part:Pr,prefix:null,property:null,results:Fr,security:null,unselectable:null},space:"html",transform:qr}),Kr=Gr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Br,accentHeight:Fr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fr,amplitude:Fr,arabicForm:null,ascent:Fr,attributeName:null,attributeType:null,azimuth:Fr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fr,by:null,calcMode:null,capHeight:Fr,className:Pr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fr,diffuseConstant:Fr,direction:null,display:null,dur:null,divisor:Fr,dominantBaseline:null,download:Mr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fr,enableBackground:null,end:null,event:null,exponent:Fr,externalResourcesRequired:null,fill:null,fillOpacity:Fr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Hr,g2:Hr,glyphName:Hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fr,horizOriginX:Fr,horizOriginY:Fr,id:null,ideographic:Fr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fr,k:Fr,k1:Fr,k2:Fr,k3:Fr,k4:Fr,kernelMatrix:Br,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fr,overlineThickness:Fr,paintOrder:null,panose1:null,path:null,pathLength:Fr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fr,pointsAtY:Fr,pointsAtZ:Fr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Br,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Br,rev:Br,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Br,requiredFeatures:Br,requiredFonts:Br,requiredFormats:Br,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fr,specularExponent:Fr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fr,strikethroughThickness:Fr,string:null,stroke:null,strokeDashArray:Br,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fr,strokeOpacity:Fr,strokeWidth:null,style:null,surfaceScale:Fr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Br,tabIndex:Fr,tableValues:null,target:null,targetX:Fr,targetY:Fr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Br,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fr,underlineThickness:Fr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fr,values:null,vAlphabetic:Fr,vMathematical:Fr,vectorEffect:null,vHanging:Fr,vIdeographic:Fr,version:null,vertAdvY:Fr,vertOriginX:Fr,vertOriginY:Fr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_r}),Jr=Gr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Zr=Gr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qr}),Xr=Gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Qr=jr([zr,Yr,Jr,Zr,Xr],"html"),ei=jr([zr,Kr,Jr,Zr,Xr],"svg");function ti(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(i,r).trim();!e&&o||t.push(e),i=r+1,r=n.indexOf(",",i)}return t}const ni=/[#.]/g;const ri=/[A-Z]/g,ii=/-[a-z]/g,oi=/^data[-\w.:]+$/i;function li(e){return"-"+e.toLowerCase()}function si(e){return e.charAt(1).toUpperCase()}function ai(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ui(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...o){let l;if(null==n){l={type:"root",children:[]};const e=i;o.unshift(e)}else{l=function(e,t){const n=e||"",r={};let i,o,l=0;for(;l<n.length;){ni.lastIndex=l;const e=ni.exec(n),t=n.slice(l,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,l+=t.length),e&&(i=e[0],l++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=l.tagName.toLowerCase(),a=r?r.get(s):void 0;if(l.tagName=a||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(i))o.unshift(i);else for(const[t,n]of Object.entries(i))ci(e,l.properties,t,n)}for(const e of o)di(l.children,e);return"element"===l.type&&"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]),l}}function ci(e,t,n,r){const i=function(e,t){const n=Nr(t);let r=t,i=Er;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&oi.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ii,si);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ii.test(e)){let n=e.replace(ri,li);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=$r}return new i(r,t)}(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?ai(r):i.commaSeparated?ti(r):i.commaOrSpaceSeparated?ai(ti(r).join(" ")):fi(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(fi(i,i.property,t));o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function di(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)di(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?di(e,t.children):e.push(t)}}function fi(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Nr(n)===Nr(t)))return!0}return n}const hi=ui(Qr,"div"),pi=(ui(ei,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]),gi={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function mi(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function yi(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function bi(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||mi(e)}const vi=document.createElement("i");function wi(e){const t="&"+e+";";vi.innerHTML=t;const n=vi.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const xi=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ki(e,t){const n=t||{},r="string"==typeof n.additional?n.additional.charCodeAt(0):n.additional,i=[];let o,l,s=0,a=-1,u="";n.position&&("start"in n.position||"indent"in n.position?(l=n.position.indent,o=n.position.start):o=n.position);let c,d=(o?o.line:0)||1,f=(o?o.column:0)||1,h=g();for(s--;++s<=e.length;)if(10===c&&(f=(l?l[a]:0)||1),c=e.charCodeAt(s),38===c){const t=e.charCodeAt(s+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||r&&t===r){u+=String.fromCharCode(c),f++;continue}const o=s+1;let l,a=o,d=o;if(35===t){d=++a;const t=e.charCodeAt(d);88===t||120===t?(l="hexadecimal",d=++a):l="decimal"}else l="named";let b="",v="",w="";const x="named"===l?bi:"decimal"===l?mi:yi;for(d--;++d<=e.length;){const t=e.charCodeAt(d);if(!x(t))break;w+=String.fromCharCode(t),"named"===l&&pi.includes(w)&&(b=w,v=wi(w))}let k=59===e.charCodeAt(d);if(k){d++;const e="named"===l&&wi(w);e&&(b=w,v=e)}let C=1+d-o,A="";if(k||!1!==n.nonTerminated)if(w)if("named"===l){if(k&&!v)m(5,1);else if(b!==w&&(d=a+b.length,C=1+d-a,k=!1),!k){const t=b?1:3;if(n.attribute){const n=e.charCodeAt(d);61===n?(m(t,C),v=""):bi(n)?v="":m(t,C)}else m(t,C)}A=v}else{k||m(2,C);let e=Number.parseInt(w,"hexadecimal"===l?16:10);if((p=e)>=55296&&p<=57343||p>1114111)m(7,C),A=String.fromCharCode(65533);else if(e in gi)m(6,C),A=gi[e];else{let t="";Ci(e)&&m(6,C),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),A=t+String.fromCharCode(e)}}else"named"!==l&&m(4,C);else;if(A){y(),h=g(),s=d-1,f+=d-o+1,i.push(A);const t=g();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,A,{start:h,end:t},e.slice(o-1,d)),h=t}else w=e.slice(o-1,d),u+=w,f+=w.length,s=d-1}else 10===c&&(d++,a++,f=0),Number.isNaN(c)?y():(u+=String.fromCharCode(c),f++);var p;return i.join("");function g(){return{line:d,column:f,offset:s+((o?o.offset:0)||0)}}function m(e,t){let r;n.warning&&(r=g(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,xi[e],r,e))}function y(){u&&(i.push(u),n.text&&n.text.call(n.textContext||void 0,u,{start:h,end:g()}),u="")}}function Ci(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}var Ai=0,Si={},Ti={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Ai}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},Ti.util.type(t)){case"Object":if(i=Ti.util.objId(t),n[i])return n[i];for(var o in r={},n[i]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Ti.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}}},languages:{plain:Si,plaintext:Si,text:Si,txt:Si,extend:function(e,t){var n=Ti.util.clone(Ti.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||Ti.languages)[e],o={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(l)||(o[l]=i[l])}var a=r[e];return r[e]=o,Ti.languages.DFS(Ti.languages,(function(t,n){n===a&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,i){i=i||{};var o=Ti.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],a=Ti.util.type(s);"Object"!==a||i[o(s)]?"Array"!==a||i[o(s)]||(i[o(s)]=!0,e(s,n,l,i)):(i[o(s)]=!0,e(s,n,null,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Ti.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Ti.tokenize(r.code,r.grammar),Ti.hooks.run("after-tokenize",r),Oi.stringify(Ti.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Ni;return Ei(i,i.head,e),ji(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=Ti.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Ti.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:Oi};function Oi(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function Li(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function ji(e,t,n,r,i,o){for(var l in n)if(n.hasOwnProperty(l)&&n[l]){var s=n[l];s=Array.isArray(s)?s:[s];for(var a=0;a<s.length;++a){if(o&&o.cause==l+","+a)return;var u=s[a],c=u.inside,d=!!u.lookbehind,f=!!u.greedy,h=u.alias;if(f&&!u.pattern.global){var p=u.pattern.toString().match(/[imsuy]*$/)[0];u.pattern=RegExp(u.pattern.source,p+"g")}for(var g=u.pattern||u,m=r.next,y=i;m!==t.tail&&!(o&&y>=o.reach);y+=m.value.length,m=m.next){var b=m.value;if(t.length>e.length)return;if(!(b instanceof Oi)){var v,w=1;if(f){if(!(v=Li(g,y,e,d))||v.index>=e.length)break;var x=v.index,k=v.index+v[0].length,C=y;for(C+=m.value.length;x>=C;)C+=(m=m.next).value.length;if(y=C-=m.value.length,m.value instanceof Oi)continue;for(var A=m;A!==t.tail&&(C<k||"string"==typeof A.value);A=A.next)w++,C+=A.value.length;w--,b=e.slice(y,C),v.index-=y}else if(!(v=Li(g,0,b,d)))continue;x=v.index;var S=v[0],T=b.slice(0,x),O=b.slice(x+S.length),L=y+b.length;o&&L>o.reach&&(o.reach=L);var j=m.prev;if(T&&(j=Ei(t,j,T),y+=T.length),Di(t,j,w),m=Ei(t,j,new Oi(l,c?Ti.tokenize(S,c):S,h,S)),O&&Ei(t,m,O),w>1){var N={cause:l+","+a,reach:L};ji(e,t,n,m.prev,y,N),o&&N.reach>o.reach&&(o.reach=N.reach)}}}}}}function Ni(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Ei(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function Di(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}const Mi=Ti;function Ri(){}Ri.prototype=Mi;const Ii=new Ri;Ii.highlight=function(e,t){if("string"!=typeof e)throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&"object"==typeof t)n=t;else{if(r=t,"string"!=typeof r)throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(!Object.hasOwn(Ii.languages,r))throw new Error("Unknown language: `"+r+"` is not registered");n=Ii.languages[r]}return{type:"root",children:Mi.highlight.call(Ii,e,n,r)}},Ii.register=function(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(Ii.languages,e.displayName)||e(Ii)},Ii.alias=function(e,t){const n=Ii.languages;let r,i={};"string"==typeof e?t&&(i[e]=t):i=e;for(r in i)if(Object.hasOwn(i,r)){const e=i[r],t="string"==typeof e?[e]:e;let o=-1;for(;++o<t.length;)n[t[o]]=n[r]}},Ii.registered=function(e){if("string"!=typeof e)throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(Ii.languages,e)},Ii.listLanguages=function(){const e=Ii.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&"object"==typeof e[n]&&t.push(n);return t},Ii.util.encode=function(e){return e},Ii.Token.stringify=function e(t,n){if("string"==typeof t)return{type:"text",value:t};if(Array.isArray(t)){const r=[];let i=-1;for(;++i<t.length;)null!==t[i]&&void 0!==t[i]&&""!==t[i]&&r.push(e(t[i],n));return r}const r={attributes:{},classes:["token",t.type],content:e(t.content,n),language:n,tag:"span",type:t.type};t.alias&&r.classes.push(..."string"==typeof t.alias?[t.alias]:t.alias);return Ii.hooks.run("wrap",r),hi(r.tag+"."+r.classes.join("."),function(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=ki(e[t]));return e}(r.attributes),r.content)};const Fi={default:"#24292e",comment:"#6a737d",prolog:"#6a737d",doctype:"#6a737d",cdata:"#6a737d",punctuation:"#24292e",property:"#005cc5",tag:"#22863a",boolean:"#005cc5",number:"#005cc5",constant:"#005cc5",symbol:"#005cc5",deleted:"#b31d28",selector:"#6f42c1","attr-name":"#6f42c1",string:"#032f62",char:"#032f62",builtin:"#005cc5",inserted:"#22863a",operator:"#d73a49",entity:"#22863a",url:"#032f62","attr-value":"#032f62",keyword:"#d73a49",atrule:"#d73a49","class-name":"#6f42c1",function:"#6f42c1",regex:"#032f62",important:"#e36209",variable:"#e36209"},Pi={default:"#f8f8f2",comment:"#6272a4",prolog:"#6272a4",doctype:"#6272a4",cdata:"#6272a4",punctuation:"#f8f8f2",property:"#8be9fd",tag:"#ff79c6",boolean:"#bd93f9",number:"#bd93f9",constant:"#bd93f9",symbol:"#bd93f9",deleted:"#ff5555",selector:"#50fa7b","attr-name":"#50fa7b",string:"#f1fa8c",char:"#f1fa8c",builtin:"#8be9fd",inserted:"#50fa7b",operator:"#f8f8f2",entity:"#ff79c6",url:"#f1fa8c","attr-value":"#f1fa8c",keyword:"#ff79c6",atrule:"#ff79c6","class-name":"#8be9fd",function:"#50fa7b",regex:"#ffb86c",important:"#ffb86c",variable:"#f8f8f2"},Hi=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];if("token"!==r&&e[r])return e[r]}return e.default},Bi={arduino:()=>n.e(32503).then(n.bind(n,32503)),bash:()=>n.e(77801).then(n.bind(n,77801)),basic:()=>n.e(50681).then(n.bind(n,50681)),c:()=>n.e(42618).then(n.bind(n,42618)),clike:()=>n.e(63493).then(n.bind(n,63493)),cpp:()=>n.e(77890).then(n.bind(n,77890)),csharp:()=>n.e(61624).then(n.bind(n,61624)),css:()=>n.e(22284).then(n.bind(n,22284)),diff:()=>n.e(98636).then(n.bind(n,98636)),go:()=>n.e(42969).then(n.bind(n,42969)),ini:()=>n.e(8485).then(n.bind(n,8485)),java:()=>n.e(54855).then(n.bind(n,54855)),javascript:()=>n.e(29848).then(n.bind(n,29848)),json:()=>n.e(86133).then(n.bind(n,86133)),kotlin:()=>n.e(12718).then(n.bind(n,12718)),less:()=>n.e(38066).then(n.bind(n,38066)),lua:()=>n.e(25705).then(n.bind(n,25705)),makefile:()=>n.e(50603).then(n.bind(n,50603)),markdown:()=>n.e(22354).then(n.bind(n,22354)),markup:()=>n.e(1387).then(n.bind(n,1387)),"markup-templating":()=>n.e(74933).then(n.bind(n,74933)),objectivec:()=>n.e(23575).then(n.bind(n,23575)),perl:()=>n.e(65402).then(n.bind(n,65402)),php:()=>n.e(27311).then(n.bind(n,27311)),python:()=>n.e(48645).then(n.bind(n,48645)),r:()=>n.e(69465).then(n.bind(n,69465)),regex:()=>n.e(2188).then(n.bind(n,2188)),ruby:()=>n.e(99359).then(n.bind(n,99359)),rust:()=>n.e(6425).then(n.bind(n,6425)),sass:()=>n.e(95409).then(n.bind(n,95409)),scss:()=>n.e(84899).then(n.bind(n,84899)),sql:()=>n.e(69395).then(n.bind(n,69395)),swift:()=>n.e(38992).then(n.bind(n,38992)),typescript:()=>n.e(83864).then(n.bind(n,83864)),vbnet:()=>n.e(87528).then(n.bind(n,87528)),yaml:()=>n.e(76284).then(n.bind(n,76284))},Wi={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",jsx:"javascript",node:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",yml:"yaml",md:"markdown",sh:"bash",shell:"bash",zsh:"bash","c++":"cpp",objc:"objectivec",cs:"csharp",dotnet:"csharp",kt:"kotlin",rs:"rust",golang:"go"},Vi=new Set,$i=new Map,Ui=async e=>{const t=(e=>{const t=e.toLowerCase();return Wi[t]??t})(e);if(Ii.registered(t))return t;if(Vi.has(t))return null;const n=Bi[t];if(!n)return Vi.add(t),null;let r=$i.get(t);return r||(r=n().then((e=>{Ii.register(e.default)})).catch((()=>{Vi.add(t)})).finally((()=>{$i.delete(t)})),$i.set(t,r)),await r,Ii.registered(t)?t:null},Gi=(e,t,n,r,i)=>{let o=r;for(const r of e)if("text"===r.type){const e=r.value??"";e.length>0&&(i.push({start:o,end:o+e.length,color:n,text:e}),o+=e.length)}else if(r.children){const e=r.properties?.className,l=Array.isArray(e)?Hi(t,e):n;o=Gi(r.children,t,l,o,i)}return o},zi=(e,t,n)=>{if(0===e.length)return[];let r;try{r=Ii.highlight(e,t)}catch{return null}const i=[];Gi(r.children??[],n,n.default,0,i);return((e,t)=>{const n=Array.from({length:t},(()=>[]));let r=0,i=0;for(const t of e){let e=t.start;for(let o=0;o<t.text.length;o++)if("\n"===t.text[o]){const l=t.start+o;l>e&&n[r]&&n[r].push({start:e-i,end:l-i,color:t.color}),r+=1,i=t.start+o+1,e=i}t.end>e&&n[r]&&n[r].push({start:e-i,end:t.end-i,color:t.color})}return n})(i,e.split("\n").length)},_i=(e,t,n,{styles:r,showHighlight:i},s)=>{const a=t?{color:t}:void 0;return n===_t.ADDED?(0,o.jsx)("ins",{className:l(r.wordDiff,{[r.wordAdded]:i}),style:a,children:e},s):n===_t.REMOVED?(0,o.jsx)("del",{className:l(r.wordDiff,{[r.wordRemoved]:i}),style:a,children:e},s):(0,o.jsx)("span",{className:r.wordDiff,style:a,children:e},s)},qi=(e,t)=>0===t.length?[(0,o.jsx)("span",{children:e},0)]:t.map(((t,n)=>(0,o.jsx)("span",{style:{color:t.color},children:e.slice(t.start,t.end)},n))),Yi=/^[ \t]+/;var Ki;!function(e){e.LEFT="L",e.RIGHT="R"}(Ki||(Ki={}));class Ji extends s.Component{styles;wordDiffCache=new Map;highlightPrecedenceWarned=!1;contentColumnRef=s.createRef();charMeasureRef=s.createRef();stickyHeaderRef=s.createRef();resizeObserver=null;scrollDebounceTimer=null;lastRenderedRange={start:0,end:1/0};static defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:qt.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""};constructor(e){super(e),this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:s.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null,isScrolling:!1,highlightResult:null}}getWordDiffValues=(e,t,n)=>{if(!e||!t)return{leftValue:e?.value,rightValue:t?.value};if(void 0===e.rawValue||void 0===t.rawValue)return{leftValue:e.value,rightValue:t.value};const r=`${n}-${e.rawValue}-${t.rawValue}`;let i=this.wordDiffCache.get(r);if(!i){const n=this.props.compareMethod===qt.JSON||this.props.compareMethod===qt.YAML?qt.CHARS:this.props.compareMethod,o=Qt(e.rawValue,t.rawValue,n);i={left:o.left??[],right:o.right??[]},this.wordDiffCache.set(r,i)}return{leftValue:i.left,rightValue:i.right}};resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0);onBlockExpand=e=>{const t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t},(()=>this.recalculateOffsets()))};getStickyHeaderHeight(){return this.stickyHeaderRef.current?.offsetHeight||0}measureCharWidth(){const e=this.charMeasureRef.current;return e&&e.getBoundingClientRect().width||7.2}measureContentColumnWidth(){const e=this.contentColumnRef.current;if(e&&e.clientWidth>0){const t=window.getComputedStyle(e),n=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r=e.clientWidth-n;if(r>0)return r}const t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;const n=t.clientWidth,r=this.props.hideLineNumbers?0:50,i=(this.props.splitView,2),o=this.props.splitView?2:1,l=this.props.splitView?2:1,s=n-(i*r+28*o);return Math.max(100,s/l)}getTextLength(e){return e?"string"==typeof e?e.length:e.reduce(((e,t)=>e+("string"==typeof t.value?t.value.length:0)),0):0}buildCumulativeOffsets(e,t,n,r,i,o,l,s){const a=[0],u=new Set;for(let c=0;c<e.length;c++){const d=e[c];if(i){const e=t[c];if(void 0!==e&&!r.includes(e)){const t=n[e].endLine===c;!u.has(e)&&t&&(u.add(e),a.push(a[a.length-1]+Ji.ESTIMATED_ROW_HEIGHT));continue}}const f=d.left?.value?this.getTextLength(d.left.value):0,h=d.right?.value?this.getTextLength(d.right.value):0,p=s?Math.max(f,h):f||h,g=Math.floor(l/o),m=g>0?Math.max(1,Math.ceil(p/g)):1;a.push(a[a.length-1]+m*Ji.ESTIMATED_ROW_HEIGHT)}return a}findLineAtOffset(e,t){let n=0,r=t.length-2;for(;n<r;){const i=Math.floor((n+r+1)/2);t[i]<=e?n=i:r=i-1}return n}recalculateOffsets=()=>{if(!this.props.infiniteLoading)return;const e=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!e)return;const n=this.getMemoisedKey(),{lineInformation:r,lineBlocks:i,blocks:o}=this.state.computedDiffResult[n]??{};if(!r)return;const l=this.buildCumulativeOffsets(r,i,o,this.state.expandedBlocks,this.props.showDiffOnly??!0,t,e,this.props.splitView??!0);this.setState({cumulativeOffsets:l,contentColumnWidth:e,charWidth:t},(()=>{this.onScroll()}))};computeStyles=(0,a.A)(Tr);onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{};shouldHighlightWordDiff=()=>{const{compareMethod:e}=this.props;return e===qt.CHARS||e===qt.WORDS||e===qt.WORDS_WITH_SPACE||e===qt.JSON||e===qt.YAML};renderWordDiff=(e,t)=>{const n=this.shouldHighlightWordDiff(),r=e.map((e=>"string"==typeof e.value?e.value:"")).join("");if(r.length>500)return[(0,o.jsx)("span",{children:r},"long-line")];if(t){const i=t(r),o=i?.props?.dangerouslySetInnerHTML?.__html;if("string"==typeof o){const t=function(e,t,n){const r=[];let i=0;for(const e of t){const t="string"==typeof e.value?e.value:"";t.length>0&&(r.push({start:i,end:i+t.length,type:e.type??_t.DEFAULT}),i+=t.length)}const o=[];let l=0;for(;l<e.length;)if("<"===e[l]){const t=e.indexOf(">",l);if(-1===t){o.push({type:"text",content:e.slice(l)});break}o.push({type:"tag",content:e.slice(l,t+1)}),l=t+1}else{let t=e.indexOf("<",l);-1===t&&(t=e.length),o.push({type:"text",content:e.slice(l,t)}),l=t}function s(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g," ")}function a(e){return e===_t.ADDED?{open:`<ins class="${n.wordDiff} ${n.wordAdded}">`,close:"</ins>"}:e===_t.REMOVED?{open:`<del class="${n.wordDiff} ${n.wordRemoved}">`,close:"</del>"}:{open:`<span class="${n.wordDiff}">`,close:"</span>"}}let u=0,c="";for(const e of o)if("tag"===e.type)c+=e.content;else{const t=e.content,n=s(t);let i=0,o=0;for(;i<n.length;){const e=u+i,l=r.find((t=>e>=t.start&&e<t.end));if(!l){c+=t[o],o++,i++;continue}const s=l.end-e,d=n.length-i,f=Math.min(s,d);let h=o,p=0;for(;p<f&&h<t.length;){if("&"===t[h]){const e=t.indexOf(";",h);-1!==e&&e-h<10?h=e+1:h++}else h++;p++}const g=t.slice(o,h),m=a(l.type);c+=m?m.open+g+m.close:g,o=h,i+=f}u+=n.length}return c}(o,e,{wordDiff:this.styles.wordDiff,wordAdded:n?this.styles.wordAdded:"",wordRemoved:n?this.styles.wordRemoved:""});return[s.cloneElement(i,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:t}})]}}return e.map(((e,t)=>{let r;return r="string"==typeof e.value?e.value:void 0,e.type===_t.ADDED?(0,o.jsx)("ins",{className:l(this.styles.wordDiff,{[this.styles.wordAdded]:n}),children:r},t):e.type===_t.REMOVED?(0,o.jsx)("del",{className:l(this.styles.wordDiff,{[this.styles.wordRemoved]:n}),children:r},t):(0,o.jsx)("span",{className:l(this.styles.wordDiff),children:r},t)}))};renderLine=(e,t,n,r,i,s)=>{const a=`${n}-${e}`,u=`${s}-${i}`,c=this.props.highlightLines??[],d=c.includes(a)||c.includes(u),f=t===_t.ADDED,h=t===_t.REMOVED,p=t===_t.CHANGED,{indent:g,rest:m}=function(e){if("string"==typeof e){const t=e.match(Yi);return t?{indent:t[0],rest:e.slice(t[0].length)}:{indent:"",rest:e}}if(Array.isArray(e)){const t=e.map((e=>({...e})));let n="",r=0;for(;r<t.length;r++){const e="string"==typeof t[r].value?t[r].value:null;if(null===e)break;const i=e.match(Yi);if(!i)break;if(i[0].length!==e.length){n+=i[0],t[r]={...t[r],value:e.slice(i[0].length)};break}n+=e}return n?{indent:n,rest:t.slice(r)}:{indent:"",rest:e}}return{indent:"",rest:e}}(r),y=Array.isArray(m),b=this.state.highlightResult?n===Ki.LEFT?this.state.highlightResult.left:this.state.highlightResult.right:null,v=e??i??void 0,w=b&&null!=v?b.get(v):void 0,x=w?((e,t)=>{if(t<=0)return e;const n=[];for(const r of e)r.end<=t||n.push({start:Math.max(r.start,t)-t,end:r.end-t,color:r.color});return n})(w,g.length):void 0;let k;if(x)if(y){const e=m.map((e=>"string"==typeof e.value?e.value:"")).join("");k=e.length>500?qi(e,x):((e,t,n,r)=>{const i=[];let o=0;for(const e of n){const t="string"==typeof e.value?e.value:"";t.length>0&&(i.push({start:o,end:o+t.length,type:e.type??_t.DEFAULT}),o+=t.length)}const l=e.length,s=[];let a=0,u=0,c=0,d=0;for(;c<l;){const n=t[a],o=i[u],f=n?n.end:l,h=o?o.end:l,p=Math.min(f,h,l);if(p<=c)if(f<=c)a+=1;else{if(!(h<=c))break;u+=1}else s.push(_i(e.slice(c,p),n?.color,o?o.type:_t.DEFAULT,r,d++)),c=p,f<=c&&(a+=1),h<=c&&(u+=1)}return s})(e,x,m,{styles:{wordDiff:this.styles.wordDiff,wordAdded:this.styles.wordAdded,wordRemoved:this.styles.wordRemoved},showHighlight:this.shouldHighlightWordDiff()})}else k="string"==typeof m?qi(m,x):m;else k=y?this.renderWordDiff(m,this.props.renderContent):this.props.renderContent&&"string"==typeof m?this.props.renderContent(m):m;let C="div";f&&!y?C="ins":h&&!y&&(C="del");const A=!k&&!g;return(0,o.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,o.jsx)("td",{onClick:e&&this.onLineNumberClickProxy(a),className:l(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:h,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:d}),children:(0,o.jsx)("pre",{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,o.jsx)("td",{onClick:i&&this.onLineNumberClickProxy(u),className:l(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:h,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:d}),children:(0,o.jsx)("pre",{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e??0,type:t??_t.DEFAULT,prefix:n,value:r??"",additionalLineNumber:i??void 0,additionalPrefix:s,styles:this.styles}):null,(0,o.jsx)("td",{className:l(this.styles.marker,{[this.styles.emptyLine]:A,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:h,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:d}),children:(0,o.jsxs)("pre",{children:[f&&"+",h&&"-"]})}),(0,o.jsx)("td",{ref:n!==Ki.LEFT||this.state.cumulativeOffsets?void 0:this.contentColumnRef,className:l(this.styles.content,{[this.styles.emptyLine]:A,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:h,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:d,left:n===Ki.LEFT,right:n===Ki.RIGHT}),onMouseDown:()=>{const e=document.getElementsByClassName("right");for(let t=0;t<e.length;t++)e[t]?.classList.remove(this.styles.noSelect);const t=document.getElementsByClassName("left");for(let e=0;e<t.length;e++)t[e]?.classList.remove(this.styles.noSelect);const r=document.getElementsByClassName(n===Ki.LEFT?"right":"left");for(let e=0;e<r.length;e++)r[e]?.classList.add(this.styles.noSelect)},title:f&&!y?"Added line":h&&!y?"Removed line":void 0,children:(0,o.jsxs)(C,{className:l(this.styles.contentText,this.styles.contentFlex),children:[g?(0,o.jsx)("span",{className:this.styles.lineIndent,children:g}):null,(0,o.jsx)("span",{className:this.styles.lineBody,children:k})]})})]})};renderSplitView=({left:e,right:t},n)=>{const{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n);return(0,o.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,Ki.LEFT,r),this.renderLine(t.lineNumber,t.type,Ki.RIGHT,i)]},n)};renderInlineView=({left:e,right:t},n)=>{const{leftValue:r,rightValue:i}=this.getWordDiffValues(e,t,n);let l;return e.type===_t.REMOVED&&t.type===_t.ADDED?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("tr",{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,Ki.LEFT,r,null)}),(0,o.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,t.type,Ki.RIGHT,i,t.lineNumber,Ki.RIGHT)})]},n):(e.type===_t.REMOVED&&(l=this.renderLine(e.lineNumber,e.type,Ki.LEFT,r,null)),e.type===_t.DEFAULT&&(l=this.renderLine(e.lineNumber,e.type,Ki.LEFT,r,t.lineNumber,Ki.RIGHT)),t.type===_t.ADDED&&(l=this.renderLine(null,t.type,Ki.RIGHT,i,t.lineNumber)),(0,o.jsx)("tr",{className:this.styles.line,children:l},n))};onBlockClickProxy=e=>()=>this.onBlockExpand(e);renderSkippedLineIndicator=(e,t,n,r)=>{const{hideLineNumbers:i,splitView:a}=this.props,u=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,o.jsxs)("span",{className:this.styles.codeFoldContent,children:["@@ -",n-e,",",e," +",r-e,",",e," @@"]}),c=(0,o.jsx)("td",{className:this.styles.codeFoldContentContainer,children:(0,o.jsx)("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:u})}),d=!a&&!i,f=(0,o.jsx)("td",{className:this.styles.codeFoldGutter,children:(0,o.jsx)(on,{})});return(0,o.jsxs)("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:"button",tabIndex:0,children:[!i&&f,this.props.renderGutter?(0,o.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,o.jsx)("td",{className:l({[this.styles.codeFoldGutter]:d})}),d?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("td",{}),c]}):(0,o.jsxs)(s.Fragment,{children:[c,this.props.renderGutter?(0,o.jsx)("td",{}):null,(0,o.jsx)("td",{}),(0,o.jsx)("td",{}),i?null:(0,o.jsx)("td",{})]})]},`${n}-${r}`)};getMemoisedKey=()=>{const{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:o,extraLinesSurroundingDiff:l}=this.props;return JSON.stringify({oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i,alwaysShowLines:o,extraLinesSurroundingDiff:l})};memoisedCompute=async()=>{const{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:r,linesOffset:i}=this.props,o=this.getMemoisedKey();if(this.state.computedDiffResult[o])return this.setState((e=>({...e,isLoading:!1}))),void this.updateHighlight();const l=this.props.infiniteLoading?.containerHeight,s=l?"number"==typeof l?l:parseInt(l,10)||0:0,a=!n&&!!this.props.infiniteLoading&&s>0&&s<2e3,{lineInformation:u,diffLines:c}=await rn(e,t,n,r,i,this.props.alwaysShowLines,a,this.props.disableWorker),d=this.props.extraLinesSurroundingDiff??3,f=d<0?0:Math.round(d),{lineBlocks:h,blocks:p}=function(e,t,n){let r,i=0;const o={},l=[];return e.forEach(((e,s)=>{const a=t.some((e=>e>=s-n&&e<=s+n));a||void 0!==r?!a&&r?(r.endLine=s,r.lines++,o[s]=r.index):r=void 0:(r={index:i,startLine:s,endLine:s,lines:1},l.push(r),o[s]=r.index,i++)})),{lineBlocks:o,blocks:l}}(u,c,f);this.state.computedDiffResult[o]={lineInformation:u,lineBlocks:h,blocks:p},this.setState((e=>({...e,computedDiffResult:this.state.computedDiffResult,isLoading:!1})),(()=>{this.updateHighlight(),this.props.infiniteLoading&&requestAnimationFrame((()=>this.recalculateOffsets()))}))};lineToText=e=>"string"==typeof e.rawValue?e.rawValue:"string"==typeof e.value?e.value:Array.isArray(e.value)?e.value.map((e=>"string"==typeof e.value?e.value:"")).join(""):"";buildSideTokens=(e,t,n,r)=>{const i=[];for(const n of e){const e=n[t];e&&null!=e.lineNumber&&i.push({lineNumber:e.lineNumber,text:this.lineToText(e)})}i.sort(((e,t)=>e.lineNumber-t.lineNumber));const o=new Map;if(0===i.length)return o;const l=zi(i.map((e=>e.text)).join("\n"),n,r);if(!l)return o;for(let e=0;e<i.length;e++)o.set(i[e].lineNumber,l[e]??[]);return o};resolveHighlightTheme=()=>{const e=this.props.useDarkTheme?Pi:Fi;return this.props.highlightTheme?{...e,...this.props.highlightTheme}:e};updateHighlight=async()=>{const{highlightLanguage:e}=this.props;if(!e)return void(this.state.highlightResult&&this.setState({highlightResult:null}));const t=this.getMemoisedKey(),n=this.state.computedDiffResult[t];if(!n)return;const r=`${t}::${e}::${this.props.useDarkTheme??!1}::${JSON.stringify(this.props.highlightTheme??null)}`;if(this.state.highlightResult?.key===r)return;const i=await Ui(e);if(this.props.highlightLanguage!==e||this.getMemoisedKey()!==t)return;if(!i)return void(this.state.highlightResult&&this.setState({highlightResult:null}));!this.highlightPrecedenceWarned&&this.props.renderContent;const o=this.resolveHighlightTheme(),l=this.buildSideTokens(n.lineInformation,"left",i,o),s=this.buildSideTokens(n.lineInformation,"right",i,o);this.setState({highlightResult:{key:r,left:l,right:s}})};static ESTIMATED_ROW_HEIGHT=19;onScroll=()=>{const e=this.state.scrollableContainerRef.current;if(!e||!this.props.infiniteLoading)return;const t=this.getStickyHeaderHeight(),n=Math.max(0,e.scrollTop-t),{cumulativeOffsets:r}=this.state,i=r?this.findLineAtOffset(n,r):Math.floor(n/Ji.ESTIMATED_ROW_HEIGHT),o=i+Math.ceil(e.clientHeight/Ji.ESTIMATED_ROW_HEIGHT),l=i<this.lastRenderedRange.start||o>this.lastRenderedRange.end;this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer);const s={};i!==this.state.visibleStartRow&&(s.visibleStartRow=i),l&&!this.state.isScrolling&&(s.isScrolling=!0),Object.keys(s).length>0&&this.setState(s),(this.state.isScrolling||l)&&(this.scrollDebounceTimer=setTimeout((()=>{this.setState({isScrolling:!1})}),150))};renderDiff=()=>{const{splitView:e,infiniteLoading:t,showDiffOnly:n}=this.props,{computedDiffResult:r,expandedBlocks:i,visibleStartRow:l,scrollableContainerRef:a,cumulativeOffsets:u}=this.state,c=this.getMemoisedKey(),{lineInformation:d=[],lineBlocks:f=[],blocks:h=[]}=r[c]??{};let p=0,g=1/0;const m=t?.overscan??20;if(t&&a.current){const e=a.current,t=this.getStickyHeaderHeight(),n=Math.max(0,e.scrollTop-t);if(u){const t=u[u.length-1]||0,r=u.length-2;p=Math.max(0,this.findLineAtOffset(n,u)-m),g=this.findLineAtOffset(n+e.clientHeight,u)+m;const i=Math.ceil(e.clientHeight/Ji.ESTIMATED_ROW_HEIGHT);g=Math.max(g,p+i+m),n+e.clientHeight>=t-m*Ji.ESTIMATED_ROW_HEIGHT&&(g=r+m)}else{const t=Math.ceil(e.clientHeight/Ji.ESTIMATED_ROW_HEIGHT);p=Math.max(0,l-m),g=l+t+m}}const y=new Map,b=new Set;let v=0;for(let e=0;e<d.length;e++){const t=f[e];if(n&&void 0!==t)if(i.includes(t))y.set(e,v),v++;else{const n=h[t].endLine===e;!b.has(t)&&n&&(b.add(t),y.set(e,v),v++)}else y.set(e,v),v++}const w=v,x=[];let k=0,C=!1,A=-1;b.clear();for(let t=0;t<d.length;t++){const r=d[t],l=y.get(t);if(void 0!==l&&!(l<p)){if(l>g)break;if(C||(k=u?u[l]||0:l*Ji.ESTIMATED_ROW_HEIGHT,C=!0),A=l,n){const e=f[t];if(void 0!==e){const n=h[e].endLine===t;if(!i.includes(e)&&n){x.push((0,o.jsx)(s.Fragment,{children:this.renderSkippedLineIndicator(h[e].lines,e,r.left.lineNumber??0,r.right.lineNumber??0)},t));continue}if(!i.includes(e))continue}}x.push(e?this.renderSplitView(r,t):this.renderInlineView(r,t))}}const S=u?u[u.length-1]||0:w*Ji.ESTIMATED_ROW_HEIGHT,T=u&&A>=0?S-(u[A+1]||S):0;return this.lastRenderedRange={start:p,end:g},{diffNodes:x,blocks:h,lineInformation:d,totalRenderedRows:w,topPadding:k,bottomPadding:T,totalContentHeight:S,renderedCount:x.length,debug:{visibleRowStart:p,visibleRowEnd:g,totalRows:w,offsetsLength:u?.length??0,renderedCount:x.length,scrollTop:a.current?.scrollTop??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:a.current?Math.max(0,a.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:a.current?.clientHeight??0}}};componentDidUpdate(e){if(e.oldValue!==this.props.oldValue||e.newValue!==this.props.newValue||e.compareMethod!==this.props.compareMethod||e.disableWordDiff!==this.props.disableWordDiff||e.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();const e=this.state.scrollableContainerRef.current;e&&(e.scrollTop=0),this.setState((e=>({...e,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null}))),this.memoisedCompute()}else e.highlightLanguage===this.props.highlightLanguage&&e.highlightTheme===this.props.highlightTheme&&e.useDarkTheme===this.props.useDarkTheme||this.updateHighlight()}componentDidMount(){if(this.setState((e=>({...e,isLoading:!0}))),this.memoisedCompute(),"undefined"!=typeof ResizeObserver&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver((()=>{requestAnimationFrame((()=>this.recalculateOffsets()))}));const e=this.state.scrollableContainerRef.current;e&&this.resizeObserver.observe(e)}}componentWillUnmount(){this.resizeObserver?.disconnect(),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer)}render=()=>{const{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:s,compareMethod:a,hideLineNumbers:u,nonce:c}=this.props;if("string"==typeof a&&a!==qt.JSON&&("string"!=typeof e||"string"!=typeof t))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles??{},n??!1,c??"");const d=this.renderDiff();let f=3,h=4;u&&(f-=1,h-=1),this.props.renderGutter&&(f+=1,h+=1);let p=0,g=0;for(const e of d.lineInformation)e.left.type===_t.ADDED&&g++,e.right.type===_t.ADDED&&g++,e.left.type===_t.REMOVED&&p++,e.right.type===_t.REMOVED&&p++;const m=p+g,y=Math.round(g/m*100),b=[];for(let e=0;e<5;e++)y>20*e?b.push((0,o.jsx)("span",{className:l(this.styles.block,this.styles.blockAddition)},e)):b.push((0,o.jsx)("span",{className:l(this.styles.block,this.styles.blockDeletion)},e));const v=this.state.expandedBlocks.length===d.blocks.length,w=this.props.loadingElement,x=this.props.infiniteLoading?{overflowY:"scroll",overflowX:"hidden",height:this.props.infiniteLoading.containerHeight}:{},k=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,C=(0,o.jsxs)("table",{className:l(this.styles.diffContainer,{[this.styles.splitView]:s,[this.styles.noWrap]:k}),onMouseUp:()=>{},children:[(0,o.jsxs)("colgroup",{children:[!this.props.hideLineNumbers&&(0,o.jsx)("col",{width:"50px"}),!s&&!this.props.hideLineNumbers&&(0,o.jsx)("col",{width:"50px"}),this.props.renderGutter&&(0,o.jsx)("col",{width:"50px"}),(0,o.jsx)("col",{width:"28px"}),(0,o.jsx)("col",{width:"auto"}),s&&(0,o.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,o.jsx)("col",{width:"50px"}),this.props.renderGutter&&(0,o.jsx)("col",{width:"50px"}),(0,o.jsx)("col",{width:"28px"}),(0,o.jsx)("col",{width:"auto"})]})]}),(0,o.jsx)("tbody",{children:d.diffNodes})]}),A=(this.state.isLoading||this.state.isScrolling)&&!!w;return(0,o.jsxs)("div",{style:{position:"relative"},children:[A&&(0,o.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:3},children:(0,o.jsx)(w,{})}),(0,o.jsxs)("div",{style:{...x,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||r||i)&&(0,o.jsxs)("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&(0,o.jsxs)("div",{className:this.styles.summary,role:"banner",children:[(0,o.jsx)("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:v?[]:d.blocks.map((e=>e.index))},(()=>this.recalculateOffsets()))},children:v?(0,o.jsx)(Or,{}):(0,o.jsx)(on,{})})," ",m,(0,o.jsx)("div",{style:{display:"flex",gap:"1px"},children:b}),this.props.summary?(0,o.jsx)("span",{children:this.props.summary}):null]}),(r||i)&&(0,o.jsxs)("div",{className:this.styles.columnHeaders,children:[(0,o.jsx)("div",{className:this.styles.titleBlock,children:r?(0,o.jsx)("pre",{className:this.styles.contentText,children:r}):null}),s&&(0,o.jsx)("div",{className:this.styles.titleBlock,children:i?(0,o.jsx)("pre",{className:this.styles.contentText,children:i}):null})]})]}),this.props.infiniteLoading?(0,o.jsx)("div",{style:{height:d.totalContentHeight,position:"relative"},children:(0,o.jsx)("div",{style:{position:"absolute",top:d.topPadding,left:0,right:0,visibility:this.state.isScrolling?"hidden":"visible"},children:C})}):C,(0,o.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&&(0,o.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:[(0,o.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),(0,o.jsxs)("div",{children:["scrollTop: ",d.debug.scrollTop]}),(0,o.jsxs)("div",{children:["headerHeight: ",d.debug.headerHeight]}),(0,o.jsxs)("div",{children:["contentScrollTop: ",d.debug.contentScrollTop]}),(0,o.jsxs)("div",{children:["clientHeight: ",d.debug.clientHeight]}),(0,o.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,o.jsxs)("div",{children:["visibleRowStart: ",d.debug.visibleRowStart]}),(0,o.jsxs)("div",{children:["visibleRowEnd: ",d.debug.visibleRowEnd]})]}),(0,o.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,o.jsxs)("div",{children:["totalRows: ",d.debug.totalRows]}),(0,o.jsxs)("div",{children:["offsetsLength: ",d.debug.offsetsLength]}),(0,o.jsxs)("div",{children:["renderedCount: ",d.debug.renderedCount]})]}),(0,o.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,o.jsxs)("div",{children:["topPadding: ",d.topPadding.toFixed(0)]}),(0,o.jsxs)("div",{children:["bottomPadding: ",d.bottomPadding.toFixed(0)]}),(0,o.jsxs)("div",{children:["totalContentHeight: ",d.totalContentHeight.toFixed(0)]})]}),(0,o.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[(0,o.jsxs)("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),(0,o.jsxs)("div",{children:["columnWidth: ",this.state.contentColumnWidth?.toFixed(0)??"N/A","px"]}),(0,o.jsxs)("div",{children:["charWidth: ",this.state.charWidth?.toFixed(2)??"N/A","px"]}),(0,o.jsxs)("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&(0,o.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[(0,o.jsxs)("div",{children:["offsets[",d.debug.visibleRowEnd,"]: ",this.state.cumulativeOffsets[d.debug.visibleRowEnd]?.toFixed(0)??"N/A"]}),(0,o.jsxs)("div",{children:["offsets[",d.debug.totalRows-1,"]: ",this.state.cumulativeOffsets[d.debug.totalRows-1]?.toFixed(0)??"N/A"]}),(0,o.jsxs)("div",{children:["offsets[",d.debug.totalRows,"]: ",this.state.cumulativeOffsets[d.debug.totalRows]?.toFixed(0)??"N/A"]}),(0,o.jsxs)("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(d.debug.contentScrollTop+d.debug.clientHeight).toFixed(0)]}),(0,o.jsxs)("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",this.state.scrollableContainerRef.current?.scrollHeight??"N/A"]}),(0,o.jsxs)("div",{children:["maxScrollTop: ",(this.state.scrollableContainerRef.current?.scrollHeight??0)-d.debug.clientHeight]})]})]})]})]})}}const Zi=Ji}}]);
|