tocco-admin 3.16.1 → 3.16.3
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 +10 -0
- package/dist/chunk-10561.201de36026c275f1e9af.js +8 -0
- package/dist/chunk-11211.926d9638327e0efad40e.js +1 -0
- package/dist/{chunk-12553.443d851862db88ece35c.js → chunk-12260.6d09de73e7fe1ae9d72a.js} +1 -1
- package/dist/chunk-26335.2dc6db848213a1fbf863.js +1 -0
- package/dist/chunk-27136.dc923a2f3d3fb3d5a35c.js +1 -0
- package/dist/chunk-27230.e04592da46c6329c1960.js +1 -0
- package/dist/chunk-27316.978062819920752ca41d.js +1 -0
- package/dist/chunk-33050.f9c1608ed963274e140a.js +1 -0
- package/dist/chunk-46187.44be0bf3ea3122c15ac8.js +1 -0
- package/dist/chunk-55348.c70553102376efb8e7c5.js +1 -0
- package/dist/chunk-68389.d2bad5bd987cfbdb5c48.js +1 -0
- package/dist/chunk-71306.f8cda811ccc102f26649.js +1 -0
- package/dist/chunk-72969.b97d422173652314d11a.js +19 -0
- package/dist/chunk-78559.464750650c3620b8f75d.js +1 -0
- package/dist/chunk-84350.4ed39fad7ec30fa8c17d.js +1 -0
- package/dist/chunk-86275.998c7b0f3ba64759523f.js +1 -0
- package/dist/{chunk-89182.3670d4924a5412a0de5f.js → chunk-89182.b33e543dcd32234ab9b3.js} +1 -1
- package/dist/chunk-92789.007664ba4a1ba0f4b38f.js +1 -0
- package/dist/chunk-97536.bfc833b2aefa02c0e5ac.js +1 -0
- package/dist/chunk-98512.065b1a0f7758792d6d22.js +1 -0
- package/dist/chunk-actions.bea0db5597a1b16fd0c7.js +1 -0
- package/dist/chunk-admin-login-form.bb8e3e13d0b39599cc96.js +1 -0
- package/dist/chunk-code-editor.960c6f046a6cb72f10e2.js +1 -0
- package/dist/chunk-docs-actions.716e5269f94de84377ea.js +1 -0
- package/dist/chunk-html-editor.bbb9d2b58016b8b37ceb.js +6 -0
- package/dist/chunk-vendor-fontawesome.4e9b85f1cc93e25fa170.js +7 -0
- package/dist/chunk-vendor-icons.117ec8bdcac216f298be.js +1 -0
- package/dist/index.js +12 -12
- package/package.json +1 -2
- package/dist/chunk-11211.17f65531376393ec7f8a.js +0 -1
- package/dist/chunk-26528.24829d005f94e1c2e09c.js +0 -1
- package/dist/chunk-27136.8a391fdc06c0762eeb30.js +0 -1
- package/dist/chunk-27230.21591731c17fdd408148.js +0 -1
- package/dist/chunk-32315.621f671e9368af23bf4e.js +0 -1
- package/dist/chunk-33050.02f815edac9e2b1e22cb.js +0 -1
- package/dist/chunk-46187.eae060704d2bac34edfb.js +0 -1
- package/dist/chunk-55348.7a4093fd3bbc3e0cb23b.js +0 -1
- package/dist/chunk-58424.9bd3504f90a559481129.js +0 -6
- package/dist/chunk-68389.5a4d0af7337006e9544f.js +0 -1
- package/dist/chunk-71306.1fbfb25cf0c5f0c8e129.js +0 -1
- package/dist/chunk-72969.81cc6219638d5cebac5c.js +0 -19
- package/dist/chunk-84350.e79e57771b9c47e77d21.js +0 -1
- package/dist/chunk-85957.5d86de380508e4550f71.js +0 -1
- package/dist/chunk-86275.03cdb82e1f374b5cda65.js +0 -1
- package/dist/chunk-92789.1927ea4a98ef189bfa76.js +0 -1
- package/dist/chunk-94968.92e2a2ec39e981c2656a.js +0 -1
- package/dist/chunk-97536.06839357970b71b03729.js +0 -1
- package/dist/chunk-98512.844d4bfdaa8063f67dfe.js +0 -1
- package/dist/chunk-actions.e7700c6e16ff42c28d1b.js +0 -1
- package/dist/chunk-admin-login-form.4ff630fd308ef0e139c7.js +0 -1
- package/dist/chunk-code-editor.95148fee3ffa502eb4ad.js +0 -1
- package/dist/chunk-docs-actions.87405e9694f84a09d102.js +0 -1
- package/dist/chunk-html-editor.b098dbbb8da9f444a7f2.js +0 -6
- package/dist/chunk-vendor-fontawesome.1d8d6d044d0803224ae8.js +0 -7
- package/dist/chunk-vendor-icons.b369db29124ed2546dd2.js +0 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
3.16.3
|
|
2
|
+
- avoid pin actions in widgets
|
|
3
|
+
- remove event-tree route
|
|
4
|
+
- add resize observer to LayoutContainer
|
|
5
|
+
- improve selection button styling in widgets
|
|
6
|
+
- fix date field input issues
|
|
7
|
+
|
|
8
|
+
3.16.2
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
3.16.1
|
|
2
12
|
- add breakWords to tile cellRenderer
|
|
3
13
|
- add breakWords functionality to defaultCellrenderer
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[10561],{46942(e,n){var t;
|
|
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 i={}.hasOwnProperty;function r(){for(var e="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(e=l(e,o(t)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var t in e)i.call(e,t)&&e[t]&&(n=l(n,t));return n}function l(e,n){return n?e?e+" "+n:e+n:e}e.exports?(r.default=r,e.exports=r):void 0===(t=function(){return r}.apply(n,[]))||(e.exports=t)}()},10561(e,n,t){"use strict";t.r(n),t.d(n,{DiffMethod:()=>ut,LineNumberPrefix:()=>Pi,computeStyles:()=>_i,default:()=>Vi});var i={};t.r(i),t.d(i,{Diff:()=>a,FILE_HEADERS_ONLY:()=>Z,INCLUDE_HEADERS:()=>J,OMIT_HEADERS:()=>K,applyPatch:()=>q,applyPatches:()=>z,arrayDiff:()=>$,canonicalize:()=>_,characterDiff:()=>u,convertChangesToDMP:()=>ie,convertChangesToXML:()=>re,createPatch:()=>ne,createTwoFilesPatch:()=>ee,cssDiff:()=>M,diffArrays:()=>P,diffChars:()=>c,diffCss:()=>R,diffJson:()=>H,diffLines:()=>I,diffSentences:()=>D,diffTrimmedLines:()=>N,diffWords:()=>S,diffWordsWithSpace:()=>L,formatPatch:()=>X,jsonDiff:()=>W,lineDiff:()=>T,parsePatch:()=>G,reversePatch:()=>Y,sentenceDiff:()=>F,structuredPatch:()=>Q,wordDiff:()=>C,wordsWithSpaceDiff:()=>O});var r=t(74848),o=t(46942),l=t(4883),s=t(41811);class a{diff(e,n,t={}){let i;"function"==typeof t?(i=t,t={}):"callback"in t&&(i=t.callback);const r=this.castInput(e,t),o=this.castInput(n,t),l=this.removeEmpty(this.tokenize(r,t)),s=this.removeEmpty(this.tokenize(o,t));return this.diffWithOptionsObj(l,s,t,i)}diffWithOptionsObj(e,n,t,i){var r;const o=e=>(e=this.postProcess(e,t),i?void setTimeout((function(){i(e)}),0):e),l=n.length,s=e.length;let a=1,u=l+s;null!=t.maxEditLength&&(u=Math.min(u,t.maxEditLength));const c=null!==(r=t.timeout)&&void 0!==r?r:1/0,f=Date.now()+c,d=[{oldPos:-1,lastComponent:void 0}];let p=this.extractCommon(d[0],n,e,0,t);if(d[0].oldPos+1>=s&&p+1>=l)return o(this.buildValues(d[0].lastComponent,n,e));let h=-1/0,g=1/0;const m=()=>{for(let i=Math.max(h,-a);i<=Math.min(g,a);i+=2){let r;const a=d[i-1],u=d[i+1];a&&(d[i-1]=void 0);let c=!1;if(u){const e=u.oldPos-i;c=u&&0<=e&&e<l}const f=a&&a.oldPos+1<s;if(c||f){if(r=!f||c&&a.oldPos<u.oldPos?this.addToPath(u,!0,!1,0,t):this.addToPath(a,!1,!0,1,t),p=this.extractCommon(r,n,e,i,t),r.oldPos+1>=s&&p+1>=l)return o(this.buildValues(r.lastComponent,n,e))||!0;d[i]=r,r.oldPos+1>=s&&(g=Math.min(g,i-1)),p+1>=l&&(h=Math.max(h,i+1))}else d[i]=void 0}a++};if(i)!function e(){setTimeout((function(){if(a>u||Date.now()>f)return i(void 0);m()||e()}),0)}();else for(;a<=u&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,n,t,i,r){const o=e.lastComponent;return o&&!r.oneChangePerToken&&o.added===n&&o.removed===t?{oldPos:e.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:t,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:n,removed:t,previousComponent:o}}}extractCommon(e,n,t,i,r){const o=n.length,l=t.length;let s=e.oldPos,a=s-i,u=0;for(;a+1<o&&s+1<l&&this.equals(t[s+1],n[a+1],r);)a++,s++,u++,r.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!r.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,a}equals(e,n,t){return t.comparator?t.comparator(e,n):e===n||!!t.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){const n=[];for(let t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,t){const i=[];let r;for(;e;)i.push(e),r=e.previousComponent,delete e.previousComponent,e=r;i.reverse();const o=i.length;let l=0,s=0,a=0;for(;l<o;l++){const e=i[l];if(e.removed)e.value=this.join(t.slice(a,a+e.count)),a+=e.count;else{if(!e.added&&this.useLongestToken){let i=n.slice(s,s+e.count);i=i.map((function(e,n){const i=t[a+n];return i.length>e.length?i:e})),e.value=this.join(i)}else e.value=this.join(n.slice(s,s+e.count));s+=e.count,e.added||(a+=e.count)}}return i}}const u=new class extends a{};function c(e,n,t){return u.diff(e,n,t)}function f(e,n){let t;for(t=0;t<e.length&&t<n.length;t++)if(e[t]!=n[t])return e.slice(0,t);return e.slice(0,t)}function d(e,n){let t;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(t=0;t<e.length&&t<n.length;t++)if(e[e.length-(t+1)]!=n[n.length-(t+1)])return e.slice(-t);return e.slice(-t)}function p(e,n,t){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(n)}; this is a bug`);return t+e.slice(n.length)}function h(e,n,t){if(!n)return e+t;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+t}function g(e,n){return p(e,n,"")}function m(e,n){return h(e,n,"")}function v(e,n){return n.slice(0,function(e,n){let t=0;e.length>n.length&&(t=e.length-n.length);let i=n.length;e.length<n.length&&(i=e.length);const r=Array(i);let o=0;r[0]=0;for(let e=1;e<i;e++){for(n[e]==n[o]?r[e]=r[o]:r[e]=o;o>0&&n[e]!=n[o];)o=r[o];n[e]==n[o]&&o++}o=0;for(let i=t;i<e.length;i++){for(;o>0&&e[i]!=n[o];)o=r[o];e[i]==n[o]&&o++}return o}(e,n))}function y(e,n){const t=[];for(const i of Array.from(n.segment(e))){const e=i.segment;t.length&&/\s/.test(t[t.length-1])&&/\s/.test(e)?t[t.length-1]+=e:t.push(e)}return t}function b(e,n){if(n)return x(e,n)[1];let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function w(e,n){if(n)return x(e,n)[0];const t=e.match(/^\s*/);return t?t[0]:""}function x(e,n){if(!n)return[w(e),b(e)];if("word"!=n.resolvedOptions().granularity)throw new Error('The segmenter passed must have a granularity of "word"');const t=y(e,n),i=t[0],r=t[t.length-1];return[/\s/.test(i)?i:"",/\s/.test(r)?r:""]}const k="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(`[${k}]+|\\s+|[^${k}]`,"ug");const C=new class extends a{equals(e,n,t){return t.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e.trim()===n.trim()}tokenize(e,n={}){let t;if(n.intlSegmenter){const i=n.intlSegmenter;if("word"!=i.resolvedOptions().granularity)throw new Error('The segmenter passed must have a granularity of "word"');t=y(e,i)}else t=e.match(A)||[];const i=[];let r=null;return t.forEach((e=>{/\s/.test(e)?null==r?i.push(e):i.push(i.pop()+e):null!=r&&/\s/.test(r)?i[i.length-1]==r?i.push(i.pop()+e):i.push(r+e):i.push(e),r=e})),i}join(e){return e.map(((e,n)=>0==n?e:e.replace(/^\s+/,""))).join("")}postProcess(e,n){if(!e||n.oneChangePerToken)return e;let t=null,i=null,r=null;return e.forEach((e=>{e.added?i=e:e.removed?r=e:((i||r)&&j(t,r,i,e,n.intlSegmenter),t=e,i=null,r=null)})),(i||r)&&j(t,r,i,null,n.intlSegmenter),e}};function S(e,n,t){return null==(null==t?void 0:t.ignoreWhitespace)||t.ignoreWhitespace?C.diff(e,n,t):L(e,n,t)}function j(e,n,t,i,r){if(n&&t){const[o,l]=x(n.value,r),[s,a]=x(t.value,r);if(e){const i=f(o,s);e.value=h(e.value,s,i),n.value=g(n.value,i),t.value=g(t.value,i)}if(i){const e=d(l,a);i.value=p(i.value,a,e),n.value=m(n.value,e),t.value=m(t.value,e)}}else if(t){if(e){const e=w(t.value,r);t.value=t.value.substring(e.length)}if(i){const e=w(i.value,r);i.value=i.value.substring(e.length)}}else if(e&&i){const t=w(i.value,r),[o,l]=x(n.value,r),s=f(t,o);n.value=g(n.value,s);const a=d(g(t,s),l);n.value=m(n.value,a),i.value=p(i.value,t,a),e.value=h(e.value,t,t.slice(0,t.length-a.length))}else if(i){const e=w(i.value,r),t=v(b(n.value,r),e);n.value=m(n.value,t)}else if(e){const t=v(b(e.value,r),w(n.value,r));n.value=g(n.value,t)}}const O=new class extends a{tokenize(e){const n=new RegExp(`(\\r?\\n)|[${k}]+|[^\\S\\n\\r]+|[^${k}]`,"ug");return e.match(n)||[]}};function L(e,n,t){return O.diff(e,n,t)}const T=new class extends a{constructor(){super(...arguments),this.tokenize=E}equals(e,n,t){return t.ignoreWhitespace?(t.newlineIsToken&&e.includes("\n")||(e=e.trim()),t.newlineIsToken&&n.includes("\n")||(n=n.trim())):t.ignoreNewlineAtEof&&!t.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),n.endsWith("\n")&&(n=n.slice(0,-1))),super.equals(e,n,t)}};function I(e,n,t){return T.diff(e,n,t)}function N(e,n,t){return t=function(e,n){if("function"==typeof e)n.callback=e;else if(e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}(t,{ignoreWhitespace:!0}),T.diff(e,n,t)}function E(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const t=[],i=e.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(let e=0;e<i.length;e++){const r=i[e];e%2&&!n.newlineIsToken?t[t.length-1]+=r:t.push(r)}return t}const F=new class extends a{tokenize(e){var n;const t=[];let i=0;for(let o=0;o<e.length;o++){if(o==e.length-1){t.push(e.slice(i));break}if(("."==(r=e[o])||"!"==r||"?"==r)&&e[o+1].match(/\s/)){for(t.push(e.slice(i,o+1)),o=i=o+1;null===(n=e[o+1])||void 0===n?void 0:n.match(/\s/);)o++;t.push(e.slice(i,o+1)),i=o+1}}var r;return t}};function D(e,n,t){return F.diff(e,n,t)}const M=new class extends a{tokenize(e){return e.split(/([{}:;,]|\s+)/)}};function R(e,n,t){return M.diff(e,n,t)}const W=new class extends a{constructor(){super(...arguments),this.tokenize=E}get useLongestToken(){return!0}castInput(e,n){const{undefinedReplacement:t,stringifyReplacer:i=(e,n)=>void 0===n?t:n}=n;return"string"==typeof e?e:JSON.stringify(_(e,null,null,i),null," ")}equals(e,n,t){return super.equals(e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"),t)}};function H(e,n,t){return W.diff(e,n,t)}function _(e,n,t,i,r){let o,l;for(n=n||[],t=t||[],i&&(e=i(void 0===r?"":r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===Object.prototype.toString.call(e)){for(n.push(e),l=new Array(e.length),t.push(l),o=0;o<e.length;o+=1)l[o]=_(e[o],n,t,i,String(o));return n.pop(),t.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"==typeof e&&null!==e){n.push(e),l={},t.push(l);const r=[];let s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.push(s);for(r.sort(),o=0;o<r.length;o+=1)s=r[o],l[s]=_(e[s],n,t,i,s);n.pop(),t.pop()}else l=e;return l}const $=new class extends a{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function P(e,n,t){return $.diff(e,n,t)}function B(e){return Array.isArray(e)?e.map((e=>B(e))):Object.assign(Object.assign({},e),{hunks:e.hunks.map((e=>Object.assign(Object.assign({},e),{lines:e.lines.map(((n,t)=>{var i;return n.startsWith("\\")||n.endsWith("\r")||(null===(i=e.lines[t+1])||void 0===i?void 0:i.startsWith("\\"))?n:n+"\r"}))})))})}function V(e){return Array.isArray(e)?e.map((e=>V(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 G(e){const n=e.split(/\n/),t=[];let i=0;function r(){const e={};for(t.push(e);i<n.length;){const t=n[i];if(/^(---|\+\+\+|@@)\s/.test(t))break;const r=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(t);r&&(e.index=t.substring(r[0].length).trim()),i++}for(o(e),o(e),e.hunks=[];i<n.length;){const t=n[i];if(/^(Index:\s|diff\s|---\s|\+\+\+\s|===================================================================)/.test(t))break;if(/^@@/.test(t))e.hunks.push(l());else{if(t)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(t));i++}}}function o(e){const t=/^(---|\+\+\+)\s+/.exec(n[i]);if(t){const r=t[1],o=n[i].substring(3).trim().split("\t",2),l=(o[1]||"").trim();let s=o[0].replace(/\\\\/g,"\\");s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),"---"===r?(e.oldFileName=s,e.oldHeader=l):(e.newFileName=s,e.newHeader=l),i++}}function l(){var e;const t=i,r=n[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),o={oldStart:+r[1],oldLines:void 0===r[2]?1:+r[2],newStart:+r[3],newLines:void 0===r[4]?1:+r[4],lines:[]};0===o.oldLines&&(o.oldStart+=1),0===o.newLines&&(o.newStart+=1);let l=0,s=0;for(;i<n.length&&(s<o.oldLines||l<o.newLines||(null===(e=n[i])||void 0===e?void 0:e.startsWith("\\")));i++){const e=0==n[i].length&&i!=n.length-1?" ":n[i][0];if("+"!==e&&"-"!==e&&" "!==e&&"\\"!==e)throw new Error(`Hunk at line ${t+1} contained invalid line ${n[i]}`);o.lines.push(n[i]),"+"===e?l++:"-"===e?s++:" "===e&&(l++,s++)}if(l||1!==o.newLines||(o.newLines=0),s||1!==o.oldLines||(o.oldLines=0),l!==o.newLines)throw new Error("Added line count did not match for hunk at line "+(t+1));if(s!==o.oldLines)throw new Error("Removed line count did not match for hunk at line "+(t+1));return o}for(;i<n.length;)r();return t}function U(e,n,t){let i=!0,r=!1,o=!1,l=1;return function s(){if(i&&!o){if(r?l++:i=!1,e+l<=t)return e+l;o=!0}if(!r)return o||(i=!0),n<=e-l?e-l++:(r=!0,s())}}function q(e,n,t={}){let i;if(i="string"==typeof n?G(n):Array.isArray(n)?n:[n],i.length>1)throw new Error("applyPatch only works with a single input.");return function(e,n,t={}){(t.autoConvertLineEndings||null==t.autoConvertLineEndings)&&((i=e).includes("\r\n")&&!i.startsWith("\n")&&!i.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")))))))}(n)?n=B(n):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(((n,t)=>{var i;return n.startsWith("\\")||n.endsWith("\r")||(null===(i=e.lines[t+1])||void 0===i?void 0:i.startsWith("\\"))}))))))}(n)&&(n=V(n)));var i;const r=e.split("\n"),o=n.hunks,l=t.compareLine||((e,n,t,i)=>n===i),s=t.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,f=!1;for(let e=0;e<o[o.length-1].lines.length;e++){const n=o[o.length-1].lines[e];"\\"==n[0]&&("+"==u[0]?c=!0:"-"==u[0]&&(f=!0)),u=n}if(c){if(f){if(!s&&""==r[r.length-1])return!1}else if(""==r[r.length-1])r.pop();else if(!s)return!1}else if(f)if(""!=r[r.length-1])r.push("");else if(!s)return!1;function d(e,n,t,i=0,o=!0,s=[],a=0){let u=0,c=!1;for(;i<e.length;i++){const f=e[i],p=f.length>0?f[0]:" ",h=f.length>0?f.substr(1):f;if("-"===p){if(!l(n+1,r[n],p,h))return t&&null!=r[n]?(s[a]=r[n],d(e,n+1,t-1,i,!1,s,a+1)):null;n++,u=0}if("+"===p){if(!o)return null;s[a]=h,a++,u=0,c=!0}if(" "===p){if(u++,s[a]=r[n],!l(n+1,r[n],p,h))return c||!t?null:r[n]&&(d(e,n+1,t-1,i+1,!1,s,a+1)||d(e,n+1,t-1,i,!1,s,a+1))||d(e,n,t-1,i+1,!1,s,a);a++,o=!0,c=!1,n++}}return a-=u,n-=u,s.length=a,{patchedLines:s,oldLineLastI:n-1}}const p=[];let h=0;for(let e=0;e<o.length;e++){const n=o[e];let t;const i=r.length-n.oldLines+s;let l;for(let e=0;e<=s;e++){l=n.oldStart+h-1;const r=U(l,a,i);for(;void 0!==l&&(t=d(n.lines,l,e),!t);l=r());if(t)break}if(!t)return!1;for(let e=a;e<l;e++)p.push(r[e]);for(let e=0;e<t.patchedLines.length;e++){const n=t.patchedLines[e];p.push(n)}a=t.oldLineLastI+1,h=l+1-n.oldStart}for(let e=a;e<r.length;e++)p.push(r[e]);return p.join("\n")}(e,i[0],t)}function z(e,n){const t="string"==typeof e?G(e):e;let i=0;!function e(){const r=t[i++];if(!r)return n.complete();n.loadFile(r,(function(t,i){if(t)return n.complete(t);const o=q(i,r,n);n.patched(r,o,(function(t){if(t)return n.complete(t);e()}))}))}()}function Y(e){return Array.isArray(e)?e.map((e=>Y(e))).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,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))})))})}Object.defineProperty(U,"name",{value:"default",configurable:!0});const J={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},Z={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},K={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function Q(e,n,t,i,r,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(I(t,i,s));{const{callback:e}=s;I(t,i,Object.assign(Object.assign({},s),{callback:n=>{const t=u(n);e(t)}}))}function u(t){if(!t)return;function i(e){return e.map((function(e){return" "+e}))}t.push({value:"",lines:[]});const l=[];let s=0,u=0,c=[],f=1,d=1;for(let e=0;e<t.length;e++){const n=t[e],r=n.lines||te(n.value);if(n.lines=r,n.added||n.removed){if(!s){const n=t[e-1];s=f,u=d,n&&(c=a>0?i(n.lines.slice(-a)):[],s-=c.length,u-=c.length)}for(const e of r)c.push((n.added?"+":"-")+e);n.added?d+=r.length:f+=r.length}else{if(s)if(r.length<=2*a&&e<t.length-2)for(const e of i(r))c.push(e);else{const e=Math.min(r.length,a);for(const n of i(r.slice(0,e)))c.push(n);const n={oldStart:s,oldLines:f-s+e,newStart:u,newLines:d-u+e,lines:c};l.push(n),s=0,u=0,c=[]}f+=r.length,d+=r.length}}for(const e of l)for(let n=0;n<e.lines.length;n++)e.lines[n].endsWith("\n")?e.lines[n]=e.lines[n].slice(0,-1):(e.lines.splice(n+1,0,"\"),n++);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:l}}}function X(e,n){if(n||(n=J),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map((e=>X(e,n))).join("\n")}const t=[];n.includeIndex&&e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),n.includeUnderline&&t.push("==================================================================="),n.includeFileHeaders&&(t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader)));for(let n=0;n<e.hunks.length;n++){const i=e.hunks[n];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@");for(const e of i.lines)t.push(e)}return t.join("\n")+"\n"}function ee(e,n,t,i,r,o,l){if("function"==typeof l&&(l={callback:l}),!(null==l?void 0:l.callback)){const s=Q(e,n,t,i,r,o,l);if(!s)return;return X(s,null==l?void 0:l.headerOptions)}{const{callback:s}=l;Q(e,n,t,i,r,o,Object.assign(Object.assign({},l),{callback:e=>{s(e?X(e,l.headerOptions):void 0)}}))}}function ne(e,n,t,i,r,o){return ee(e,e,n,t,i,r,o)}function te(e){const n=e.endsWith("\n"),t=e.split("\n").map((e=>e+"\n"));return n?t.pop():t.push(t.pop().slice(0,-1)),t}function ie(e){const n=[];let t,i;for(let r=0;r<e.length;r++)t=e[r],i=t.added?1:t.removed?-1:0,n.push([i,t.value]);return n}function re(e){const n=[];for(let t=0;t<e.length;t++){const i=e[t];i.added?n.push("<ins>"):i.removed&&n.push("<del>"),n.push(oe(i.value)),i.added?n.push("</ins>"):i.removed&&n.push("</del>")}return n.join("")}function oe(e){let n=e;return n=n.replace(/&/g,"&"),n=n.replace(/</g,"<"),n=n.replace(/>/g,">"),n=n.replace(/"/g,"""),n}
|
|
7
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
8
|
+
function le(e){return null==e}var se={isNothing:le,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:le(e)?[]:[e]},repeat:function(e,n){var t,i="";for(t=0;t<n;t+=1)i+=e;return i},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,n){var t,i,r,o;if(n)for(t=0,i=(o=Object.keys(n)).length;t<i;t+=1)e[r=o[t]]=n[r];return e}};function ae(e,n){var t="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(t+="\n\n"+e.mark.snippet),i+" "+t):i}function ue(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=ae(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}ue.prototype=Object.create(Error.prototype),ue.prototype.constructor=ue,ue.prototype.toString=function(e){return this.name+": "+ae(this,e)};var ce=ue;function fe(e,n,t,i,r){var o="",l="",s=Math.floor(r/2)-1;return i-n>s&&(n=i-s+(o=" ... ").length),t-i>s&&(t=i+s-(l=" ...").length),{str:o+e.slice(n,t).replace(/\t/g,"→")+l,pos:i-n+o.length}}function de(e,n){return se.repeat(" ",n-e.length)+e}var pe=function(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),"number"!=typeof n.indent&&(n.indent=1),"number"!=typeof n.linesBefore&&(n.linesBefore=3),"number"!=typeof n.linesAfter&&(n.linesAfter=2);for(var t,i=/\r?\n|\r|\0/g,r=[0],o=[],l=-1;t=i.exec(e.buffer);)o.push(t.index),r.push(t.index+t[0].length),e.position<=t.index&&l<0&&(l=r.length-2);l<0&&(l=r.length-1);var s,a,u="",c=Math.min(e.line+n.linesAfter,o.length).toString().length,f=n.maxLength-(n.indent+c+3);for(s=1;s<=n.linesBefore&&!(l-s<0);s++)a=fe(e.buffer,r[l-s],o[l-s],e.position-(r[l]-r[l-s]),f),u=se.repeat(" ",n.indent)+de((e.line-s+1).toString(),c)+" | "+a.str+"\n"+u;for(a=fe(e.buffer,r[l],o[l],e.position,f),u+=se.repeat(" ",n.indent)+de((e.line+1).toString(),c)+" | "+a.str+"\n",u+=se.repeat("-",n.indent+c+3+a.pos)+"^\n",s=1;s<=n.linesAfter&&!(l+s>=o.length);s++)a=fe(e.buffer,r[l+s],o[l+s],e.position-(r[l]-r[l+s]),f),u+=se.repeat(" ",n.indent)+de((e.line+s+1).toString(),c)+" | "+a.str+"\n";return u.replace(/\n$/,"")},he=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ge=["scalar","sequence","mapping"];var me=function(e,n){if(n=n||{},Object.keys(n).forEach((function(n){if(-1===he.indexOf(n))throw new ce('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')})),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(e){return e},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=function(e){var n={};return null!==e&&Object.keys(e).forEach((function(t){e[t].forEach((function(e){n[String(e)]=t}))})),n}(n.styleAliases||null),-1===ge.indexOf(this.kind))throw new ce('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ve(e,n){var t=[];return e[n].forEach((function(e){var n=t.length;t.forEach((function(t,i){t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi&&(n=i)})),t[n]=e})),t}function ye(e){return this.extend(e)}ye.prototype.extend=function(e){var n=[],t=[];if(e instanceof me)t.push(e);else if(Array.isArray(e))t=t.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new ce("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit))}n.forEach((function(e){if(!(e instanceof me))throw new ce("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new ce("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new ce("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),t.forEach((function(e){if(!(e instanceof me))throw new ce("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(ye.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=ve(i,"implicit"),i.compiledExplicit=ve(i,"explicit"),i.compiledTypeMap=function(){var e,n,t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(i);return t}(i.compiledImplicit,i.compiledExplicit),i};var be=ye,we=new me("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),xe=new me("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),ke=new me("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Ae=new be({explicit:[we,xe,ke]});var Ce=new me("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var n=e.length;return 1===n&&"~"===e||4===n&&("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"});var Se=new me("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var n=e.length;return 4===n&&("true"===e||"True"===e||"TRUE"===e)||5===n&&("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 je(e){return 48<=e&&e<=55}function Oe(e){return 48<=e&&e<=57}var Le=new me("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var n,t,i=e.length,r=0,o=!1;if(!i)return!1;if("-"!==(n=e[r])&&"+"!==n||(n=e[++r]),"0"===n){if(r+1===i)return!0;if("b"===(n=e[++r])){for(r++;r<i;r++)if("_"!==(n=e[r])){if("0"!==n&&"1"!==n)return!1;o=!0}return o&&"_"!==n}if("x"===n){for(r++;r<i;r++)if("_"!==(n=e[r])){if(!(48<=(t=e.charCodeAt(r))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;o=!0}return o&&"_"!==n}if("o"===n){for(r++;r<i;r++)if("_"!==(n=e[r])){if(!je(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==n}}if("_"===n)return!1;for(;r<i;r++)if("_"!==(n=e[r])){if(!Oe(e.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===n)},construct:function(e){var n,t=e,i=1;if(-1!==t.indexOf("_")&&(t=t.replace(/_/g,"")),"-"!==(n=t[0])&&"+"!==n||("-"===n&&(i=-1),n=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===n){if("b"===t[1])return i*parseInt(t.slice(2),2);if("x"===t[1])return i*parseInt(t.slice(2),16);if("o"===t[1])return i*parseInt(t.slice(2),8)}return i*parseInt(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!se.isNegativeZero(e)},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"]}}),Te=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Ie=/^[-+]?[0-9]+e/;var Ne=new me("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Te.test(e)||"_"===e[e.length-1])},construct:function(e){var n,t;return t="-"===(n=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),".inf"===n?1===t?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===n?NaN:t*parseFloat(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||se.isNegativeZero(e))},represent:function(e,n){var t;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(se.isNegativeZero(e))return"-0.0";return t=e.toString(10),Ie.test(t)?t.replace("e",".e"):t},defaultStyle:"lowercase"}),Ee=Ae.extend({implicit:[Ce,Se,Le,Ne]}),Fe=Ee,De=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Me=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]))?))?$");var Re=new me("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==De.exec(e)||null!==Me.exec(e))},construct:function(e){var n,t,i,r,o,l,s,a,u=0,c=null;if(null===(n=De.exec(e))&&(n=Me.exec(e)),null===n)throw new Error("Date resolve error");if(t=+n[1],i=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(t,i,r));if(o=+n[4],l=+n[5],s=+n[6],n[7]){for(u=n[7].slice(0,3);u.length<3;)u+="0";u=+u}return n[9]&&(c=6e4*(60*+n[10]+ +(n[11]||0)),"-"===n[9]&&(c=-c)),a=new Date(Date.UTC(t,i,r,o,l,s,u)),c&&a.setTime(a.getTime()-c),a},instanceOf:Date,represent:function(e){return e.toISOString()}});var We=new me("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var _e=new me("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var n,t,i=0,r=e.length,o=He;for(t=0;t<r;t++)if(!((n=o.indexOf(e.charAt(t)))>64)){if(n<0)return!1;i+=6}return i%8==0},construct:function(e){var n,t,i=e.replace(/[\r\n=]/g,""),r=i.length,o=He,l=0,s=[];for(n=0;n<r;n++)n%4==0&&n&&(s.push(l>>16&255),s.push(l>>8&255),s.push(255&l)),l=l<<6|o.indexOf(i.charAt(n));return 0===(t=r%4*6)?(s.push(l>>16&255),s.push(l>>8&255),s.push(255&l)):18===t?(s.push(l>>10&255),s.push(l>>2&255)):12===t&&s.push(l>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var n,t,i="",r=0,o=e.length,l=He;for(n=0;n<o;n++)n%3==0&&n&&(i+=l[r>>18&63],i+=l[r>>12&63],i+=l[r>>6&63],i+=l[63&r]),r=(r<<8)+e[n];return 0===(t=o%3)?(i+=l[r>>18&63],i+=l[r>>12&63],i+=l[r>>6&63],i+=l[63&r]):2===t?(i+=l[r>>10&63],i+=l[r>>4&63],i+=l[r<<2&63],i+=l[64]):1===t&&(i+=l[r>>2&63],i+=l[r<<4&63],i+=l[64],i+=l[64]),i}}),$e=Object.prototype.hasOwnProperty,Pe=Object.prototype.toString;var Be=new me("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,t,i,r,o,l=[],s=e;for(n=0,t=s.length;n<t;n+=1){if(i=s[n],o=!1,"[object Object]"!==Pe.call(i))return!1;for(r in i)if($e.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==l.indexOf(r))return!1;l.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),Ve=Object.prototype.toString;var Ge=new me("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,t,i,r,o,l=e;for(o=new Array(l.length),n=0,t=l.length;n<t;n+=1){if(i=l[n],"[object Object]"!==Ve.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[n]=[r[0],i[r[0]]]}return!0},construct:function(e){if(null===e)return[];var n,t,i,r,o,l=e;for(o=new Array(l.length),n=0,t=l.length;n<t;n+=1)i=l[n],r=Object.keys(i),o[n]=[r[0],i[r[0]]];return o}}),Ue=Object.prototype.hasOwnProperty;var qe=new me("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var n,t=e;for(n in t)if(Ue.call(t,n)&&null!==t[n])return!1;return!0},construct:function(e){return null!==e?e:{}}}),ze=Fe.extend({implicit:[Re,We],explicit:[_e,Be,Ge,qe]}),Ye=Object.prototype.hasOwnProperty,Je=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ze=/[\x85\u2028\u2029]/,Ke=/[,\[\]\{\}]/,Qe=/^(?:!|!!|![a-z\-]+!)$/i,Xe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function en(e){return Object.prototype.toString.call(e)}function nn(e){return 10===e||13===e}function tn(e){return 9===e||32===e}function rn(e){return 9===e||32===e||10===e||13===e}function on(e){return 44===e||91===e||93===e||123===e||125===e}function ln(e){var n;return 48<=e&&e<=57?e-48:97<=(n=32|e)&&n<=102?n-97+10:-1}function sn(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function an(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function un(e,n,t){"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:t}):e[n]=t}for(var cn=new Array(256),fn=new Array(256),dn=0;dn<256;dn++)cn[dn]=sn(dn)?1:0,fn[dn]=sn(dn);function pn(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||ze,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function hn(e,n){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=pe(t),new ce(n,t)}function gn(e,n){throw hn(e,n)}function mn(e,n){e.onWarning&&e.onWarning.call(null,hn(e,n))}var vn={YAML:function(e,n,t){var i,r,o;null!==e.version&&gn(e,"duplication of %YAML directive"),1!==t.length&&gn(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]))&&gn(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&gn(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&mn(e,"unsupported YAML version of the document")},TAG:function(e,n,t){var i,r;2!==t.length&&gn(e,"TAG directive accepts exactly two arguments"),i=t[0],r=t[1],Qe.test(i)||gn(e,"ill-formed tag handle (first argument) of the TAG directive"),Ye.call(e.tagMap,i)&&gn(e,'there is a previously declared suffix for "'+i+'" tag handle'),Xe.test(r)||gn(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(n){gn(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function yn(e,n,t,i){var r,o,l,s;if(n<t){if(s=e.input.slice(n,t),i)for(r=0,o=s.length;r<o;r+=1)9===(l=s.charCodeAt(r))||32<=l&&l<=1114111||gn(e,"expected valid JSON character");else Je.test(s)&&gn(e,"the stream contains non-printable characters");e.result+=s}}function bn(e,n,t,i){var r,o,l,s;for(se.isObject(t)||gn(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,s=(r=Object.keys(t)).length;l<s;l+=1)o=r[l],Ye.call(n,o)||(un(n,o,t[o]),i[o]=!0)}function wn(e,n,t,i,r,o,l,s,a){var u,c;if(Array.isArray(r))for(u=0,c=(r=Array.prototype.slice.call(r)).length;u<c;u+=1)Array.isArray(r[u])&&gn(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===en(r[u])&&(r[u]="[object Object]");if("object"==typeof r&&"[object Object]"===en(r)&&(r="[object Object]"),r=String(r),null===n&&(n={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)bn(e,n,o[u],t);else bn(e,n,o,t);else e.json||Ye.call(t,r)||!Ye.call(n,r)||(e.line=l||e.line,e.lineStart=s||e.lineStart,e.position=a||e.position,gn(e,"duplicated mapping key")),un(n,r,o),delete t[r];return n}function xn(e){var n;10===(n=e.input.charCodeAt(e.position))?e.position++:13===n?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):gn(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function kn(e,n,t){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;tn(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!nn(r))break;for(xn(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==t&&0!==i&&e.lineIndent<t&&mn(e,"deficient indentation"),i}function An(e){var n,t=e.position;return!(45!==(n=e.input.charCodeAt(t))&&46!==n||n!==e.input.charCodeAt(t+1)||n!==e.input.charCodeAt(t+2)||(t+=3,0!==(n=e.input.charCodeAt(t))&&!rn(n)))}function Cn(e,n){1===n?e.result+=" ":n>1&&(e.result+=se.repeat("\n",n-1))}function Sn(e,n){var t,i,r=e.tag,o=e.anchor,l=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=l),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,gn(e,"tab characters must not be used in indentation")),45===i)&&rn(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,kn(e,!0,-1)&&e.lineIndent<=n)l.push(null),i=e.input.charCodeAt(e.position);else if(t=e.line,Ln(e,n,3,!1,!0),l.push(e.result),kn(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>n)&&0!==i)gn(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break;return!!s&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=l,!0)}function jn(e){var n,t,i,r,o=!1,l=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&gn(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(l=!0,t="!!",r=e.input.charCodeAt(++e.position)):t="!",n=e.position,o){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(i=e.input.slice(n,e.position),r=e.input.charCodeAt(++e.position)):gn(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!rn(r);)33===r&&(l?gn(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(n-1,e.position+1),Qe.test(t)||gn(e,"named tag handle cannot contain such characters"),l=!0,n=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(n,e.position),Ke.test(i)&&gn(e,"tag suffix cannot contain flow indicator characters")}i&&!Xe.test(i)&&gn(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(n){gn(e,"tag name is malformed: "+i)}return o?e.tag=i:Ye.call(e.tagMap,t)?e.tag=e.tagMap[t]+i:"!"===t?e.tag="!"+i:"!!"===t?e.tag="tag:yaml.org,2002:"+i:gn(e,'undeclared tag handle "'+t+'"'),!0}function On(e){var n,t;if(38!==(t=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&gn(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),n=e.position;0!==t&&!rn(t)&&!on(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&gn(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Ln(e,n,t,i,r){var o,l,s,a,u,c,f,d,p,h=1,g=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=l=s=4===t||3===t,i&&kn(e,!0,-1)&&(g=!0,e.lineIndent>n?h=1:e.lineIndent===n?h=0:e.lineIndent<n&&(h=-1)),1===h)for(;jn(e)||On(e);)kn(e,!0,-1)?(g=!0,s=o,e.lineIndent>n?h=1:e.lineIndent===n?h=0:e.lineIndent<n&&(h=-1)):s=!1;if(s&&(s=g||r),1!==h&&4!==t||(d=1===t||2===t?n:n+1,p=e.position-e.lineStart,1===h?s&&(Sn(e,p)||function(e,n,t){var i,r,o,l,s,a,u,c=e.tag,f=e.anchor,d={},p=Object.create(null),h=null,g=null,m=null,v=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),u=e.input.charCodeAt(e.position);0!==u;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,gn(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,63!==u&&58!==u||!rn(i)){if(l=e.line,s=e.lineStart,a=e.position,!Ln(e,t,2,!1,!0))break;if(e.line===o){for(u=e.input.charCodeAt(e.position);tn(u);)u=e.input.charCodeAt(++e.position);if(58===u)rn(u=e.input.charCodeAt(++e.position))||gn(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(wn(e,d,p,h,g,null,l,s,a),h=g=m=null),y=!0,v=!1,r=!1,h=e.tag,g=e.result;else{if(!y)return e.tag=c,e.anchor=f,!0;gn(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=c,e.anchor=f,!0;gn(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(v&&(wn(e,d,p,h,g,null,l,s,a),h=g=m=null),y=!0,v=!0,r=!0):v?(v=!1,r=!0):gn(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=i;if((e.line===o||e.lineIndent>n)&&(v&&(l=e.line,s=e.lineStart,a=e.position),Ln(e,n,4,!0,r)&&(v?g=e.result:m=e.result),v||(wn(e,d,p,h,g,m,l,s,a),h=g=m=null),kn(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>n)&&0!==u)gn(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return v&&wn(e,d,p,h,g,null,l,s,a),y&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=d),y}(e,p,d))||function(e,n){var t,i,r,o,l,s,a,u,c,f,d,p,h=!0,g=e.tag,m=e.anchor,v=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))l=93,u=!1,o=[];else{if(123!==p)return!1;l=125,u=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),p=e.input.charCodeAt(++e.position);0!==p;){if(kn(e,!0,n),(p=e.input.charCodeAt(e.position))===l)return e.position++,e.tag=g,e.anchor=m,e.kind=u?"mapping":"sequence",e.result=o,!0;h?44===p&&gn(e,"expected the node content, but found ','"):gn(e,"missed comma between flow collection entries"),d=null,s=a=!1,63===p&&rn(e.input.charCodeAt(e.position+1))&&(s=a=!0,e.position++,kn(e,!0,n)),t=e.line,i=e.lineStart,r=e.position,Ln(e,n,1,!1,!0),f=e.tag,c=e.result,kn(e,!0,n),p=e.input.charCodeAt(e.position),!a&&e.line!==t||58!==p||(s=!0,p=e.input.charCodeAt(++e.position),kn(e,!0,n),Ln(e,n,1,!1,!0),d=e.result),u?wn(e,o,v,f,c,d,t,i,r):s?o.push(wn(e,null,v,f,c,d,t,i,r)):o.push(c),kn(e,!0,n),44===(p=e.input.charCodeAt(e.position))?(h=!0,p=e.input.charCodeAt(++e.position)):h=!1}gn(e,"unexpected end of the stream within a flow collection")}(e,d)?m=!0:(l&&function(e,n){var t,i,r,o,l,s=1,a=!1,u=!1,c=n,f=0,d=!1;if(124===(o=e.input.charCodeAt(e.position)))i=!1;else{if(62!==o)return!1;i=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===s?s=43===o?3:2:gn(e,"repeat of a chomping mode identifier");else{if(!((r=48<=(l=o)&&l<=57?l-48:-1)>=0))break;0===r?gn(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?gn(e,"repeat of an indentation width identifier"):(c=n+r-1,u=!0)}if(tn(o)){do{o=e.input.charCodeAt(++e.position)}while(tn(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!nn(o)&&0!==o)}for(;0!==o;){for(xn(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!u||e.lineIndent<c)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>c&&(c=e.lineIndent),nn(o))f++;else{if(e.lineIndent<c){3===s?e.result+=se.repeat("\n",a?1+f:f):1===s&&a&&(e.result+="\n");break}for(i?tn(o)?(d=!0,e.result+=se.repeat("\n",a?1+f:f)):d?(d=!1,e.result+=se.repeat("\n",f+1)):0===f?a&&(e.result+=" "):e.result+=se.repeat("\n",f):e.result+=se.repeat("\n",a?1+f:f),a=!0,u=!0,f=0,t=e.position;!nn(o)&&0!==o;)o=e.input.charCodeAt(++e.position);yn(e,t,e.position,!1)}}return!0}(e,d)||function(e,n){var t,i,r;if(39!==(t=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(t=e.input.charCodeAt(e.position));)if(39===t){if(yn(e,i,e.position,!0),39!==(t=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,r=e.position}else nn(t)?(yn(e,i,r,!0),Cn(e,kn(e,!1,n)),i=r=e.position):e.position===e.lineStart&&An(e)?gn(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);gn(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,n){var t,i,r,o,l,s,a;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return yn(e,t,e.position,!0),e.position++,!0;if(92===s){if(yn(e,t,e.position,!0),nn(s=e.input.charCodeAt(++e.position)))kn(e,!1,n);else if(s<256&&cn[s])e.result+=fn[s],e.position++;else if((l=120===(a=s)?2:117===a?4:85===a?8:0)>0){for(r=l,o=0;r>0;r--)(l=ln(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+l:gn(e,"expected hexadecimal character");e.result+=an(o),e.position++}else gn(e,"unknown escape sequence");t=i=e.position}else nn(s)?(yn(e,t,i,!0),Cn(e,kn(e,!1,n)),t=i=e.position):e.position===e.lineStart&&An(e)?gn(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}gn(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?m=!0:!function(e){var n,t,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),n=e.position;0!==i&&!rn(i)&&!on(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&gn(e,"name of an alias node must contain at least one character"),t=e.input.slice(n,e.position),Ye.call(e.anchorMap,t)||gn(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],kn(e,!0,-1),!0}(e)?function(e,n,t){var i,r,o,l,s,a,u,c,f=e.kind,d=e.result;if(rn(c=e.input.charCodeAt(e.position))||on(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(rn(i=e.input.charCodeAt(e.position+1))||t&&on(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,l=!1;0!==c;){if(58===c){if(rn(i=e.input.charCodeAt(e.position+1))||t&&on(i))break}else if(35===c){if(rn(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&An(e)||t&&on(c))break;if(nn(c)){if(s=e.line,a=e.lineStart,u=e.lineIndent,kn(e,!1,-1),e.lineIndent>=n){l=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=a,e.lineIndent=u;break}}l&&(yn(e,r,o,!1),Cn(e,e.line-s),r=o=e.position,l=!1),tn(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return yn(e,r,o,!1),!!e.result||(e.kind=f,e.result=d,!1)}(e,d,1===t)&&(m=!0,null===e.tag&&(e.tag="?")):(m=!0,null===e.tag&&null===e.anchor||gn(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(m=s&&Sn(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&gn(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),a=0,u=e.implicitTypes.length;a<u;a+=1)if((f=e.implicitTypes[a]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Ye.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,a=0,u=(c=e.typeMap.multi[e.kind||"fallback"]).length;a<u;a+=1)if(e.tag.slice(0,c[a].tag.length)===c[a].tag){f=c[a];break}f||gn(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&gn(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):gn(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function Tn(e){var n,t,i,r,o=e.position,l=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(kn(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(l=!0,r=e.input.charCodeAt(++e.position),n=e.position;0!==r&&!rn(r);)r=e.input.charCodeAt(++e.position);for(i=[],(t=e.input.slice(n,e.position)).length<1&&gn(e,"directive name must not be less than one character in length");0!==r;){for(;tn(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!nn(r));break}if(nn(r))break;for(n=e.position;0!==r&&!rn(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}0!==r&&xn(e),Ye.call(vn,t)?vn[t](e,t,i):mn(e,'unknown document directive "'+t+'"')}kn(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,kn(e,!0,-1)):l&&gn(e,"directives end mark is expected"),Ln(e,e.lineIndent-1,4,!1,!0),kn(e,!0,-1),e.checkLineBreaks&&Ze.test(e.input.slice(o,e.position))&&mn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&An(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,kn(e,!0,-1)):e.position<e.length-1&&gn(e,"end of the stream or a document separator is expected")}function In(e,n){n=n||{},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)));var t=new pn(e,n),i=e.indexOf("\0");for(-1!==i&&(t.position=i,gn(t,"null byte is not allowed in input")),t.input+="\0";32===t.input.charCodeAt(t.position);)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)Tn(t);return t.documents}var Nn={loadAll:function(e,n,t){null!==n&&"object"==typeof n&&void 0===t&&(t=n,n=null);var i=In(e,t);if("function"!=typeof n)return i;for(var r=0,o=i.length;r<o;r+=1)n(i[r])},load:function(e,n){var t=In(e,n);if(0!==t.length){if(1===t.length)return t[0];throw new ce("expected a single document in the stream, but found more")}}},En=Object.prototype.toString,Fn=Object.prototype.hasOwnProperty,Dn=65279,Mn={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"},Rn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Wn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Hn(e){var n,t,i;if(n=e.toString(16).toUpperCase(),e<=255)t="x",i=2;else if(e<=65535)t="u",i=4;else{if(!(e<=4294967295))throw new ce("code point within a string may not be greater than 0xFFFFFFFF");t="U",i=8}return"\\"+t+se.repeat("0",i-n.length)+n}function _n(e){this.schema=e.schema||ze,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=se.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,n){var t,i,r,o,l,s,a;if(null===n)return{};for(t={},r=0,o=(i=Object.keys(n)).length;r<o;r+=1)l=i[r],s=String(n[l]),"!!"===l.slice(0,2)&&(l="tag:yaml.org,2002:"+l.slice(2)),(a=e.compiledTypeMap.fallback[l])&&Fn.call(a.styleAliases,s)&&(s=a.styleAliases[s]),t[l]=s;return t}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $n(e,n){for(var t,i=se.repeat(" ",n),r=0,o=-1,l="",s=e.length;r<s;)-1===(o=e.indexOf("\n",r))?(t=e.slice(r),r=s):(t=e.slice(r,o+1),r=o+1),t.length&&"\n"!==t&&(l+=i),l+=t;return l}function Pn(e,n){return"\n"+se.repeat(" ",e.indent*n)}function Bn(e){return 32===e||9===e}function Vn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Dn||65536<=e&&e<=1114111}function Gn(e){return Vn(e)&&e!==Dn&&13!==e&&10!==e}function Un(e,n,t){var i=Gn(e),r=i&&!Bn(e);return(t?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===n&&!r)||Gn(n)&&!Bn(n)&&35===e||58===n&&r}function qn(e,n){var t,i=e.charCodeAt(n);return i>=55296&&i<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1))>=56320&&t<=57343?1024*(i-55296)+t-56320+65536:i}function zn(e){return/^\n* /.test(e)}function Yn(e,n,t,i,r,o,l,s){var a,u,c=0,f=null,d=!1,p=!1,h=-1!==i,g=-1,m=Vn(u=qn(e,0))&&u!==Dn&&!Bn(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!Bn(e)&&58!==e}(qn(e,e.length-1));if(n||l)for(a=0;a<e.length;c>=65536?a+=2:a++){if(!Vn(c=qn(e,a)))return 5;m=m&&Un(c,f,s),f=c}else{for(a=0;a<e.length;c>=65536?a+=2:a++){if(10===(c=qn(e,a)))d=!0,h&&(p=p||a-g-1>i&&" "!==e[g+1],g=a);else if(!Vn(c))return 5;m=m&&Un(c,f,s),f=c}p=p||h&&a-g-1>i&&" "!==e[g+1]}return d||p?t>9&&zn(e)?5:l?2===o?5:2:p?4:3:!m||l||r(e)?2===o?5:2:1}function Jn(e,n,t,i,r){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Rn.indexOf(n)||Wn.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";var o=e.indent*Math.max(1,t),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=i||e.flowLevel>-1&&t>=e.flowLevel;switch(Yn(n,s,e.indent,l,(function(n){return function(e,n){var t,i;for(t=0,i=e.implicitTypes.length;t<i;t+=1)if(e.implicitTypes[t].resolve(n))return!0;return!1}(e,n)}),e.quotingType,e.forceQuotes&&!i,r)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+Zn(n,e.indent)+Kn($n(n,o));case 4:return">"+Zn(n,e.indent)+Kn($n(function(e,n){var t,i,r=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,r.lastIndex=s,Qn(e.slice(0,s),n)),l="\n"===e[0]||" "===e[0];var s;for(;i=r.exec(e);){var a=i[1],u=i[2];t=" "===u[0],o+=a+(l||t||""===u?"":"\n")+Qn(u,n),l=t}return o}(n,l),o));case 5:return'"'+function(e){for(var n,t="",i=0,r=0;r<e.length;i>=65536?r+=2:r++)i=qn(e,r),!(n=Mn[i])&&Vn(i)?(t+=e[r],i>=65536&&(t+=e[r+1])):t+=n||Hn(i);return t}(n)+'"';default:throw new ce("impossible error: invalid scalar style")}}()}function Zn(e,n){var t=zn(e)?String(n):"",i="\n"===e[e.length-1];return t+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function Kn(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Qn(e,n){if(""===e||" "===e[0])return e;for(var t,i,r=/ [^ ]/g,o=0,l=0,s=0,a="";t=r.exec(e);)(s=t.index)-o>n&&(i=l>o?l:s,a+="\n"+e.slice(o,i),o=i+1),l=s;return a+="\n",e.length-o>n&&l>o?a+=e.slice(o,l)+"\n"+e.slice(l+1):a+=e.slice(o),a.slice(1)}function Xn(e,n,t,i){var r,o,l,s="",a=e.tag;for(r=0,o=t.length;r<o;r+=1)l=t[r],e.replacer&&(l=e.replacer.call(t,String(r),l)),(nt(e,n+1,l,!0,!0,!1,!0)||void 0===l&&nt(e,n+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=Pn(e,n)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}function et(e,n,t){var i,r,o,l,s,a;for(o=0,l=(r=t?e.explicitTypes:e.implicitTypes).length;o<l;o+=1)if(((s=r[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof n&&n instanceof s.instanceOf)&&(!s.predicate||s.predicate(n))){if(t?s.multi&&s.representName?e.tag=s.representName(n):e.tag=s.tag:e.tag="?",s.represent){if(a=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===En.call(s.represent))i=s.represent(n,a);else{if(!Fn.call(s.represent,a))throw new ce("!<"+s.tag+'> tag resolver accepts not "'+a+'" style');i=s.represent[a](n,a)}e.dump=i}return!0}return!1}function nt(e,n,t,i,r,o,l){e.tag=null,e.dump=t,et(e,t,!1)||et(e,t,!0);var s,a=En.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>n);var c,f,d="[object Object]"===a||"[object Array]"===a;if(d&&(f=-1!==(c=e.duplicates.indexOf(t))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&n>0)&&(r=!1),f&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(d&&f&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===a)i&&0!==Object.keys(e.dump).length?(!function(e,n,t,i){var r,o,l,s,a,u,c="",f=e.tag,d=Object.keys(t);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new ce("sortKeys must be a boolean or a function");for(r=0,o=d.length;r<o;r+=1)u="",i&&""===c||(u+=Pn(e,n)),s=t[l=d[r]],e.replacer&&(s=e.replacer.call(t,l,s)),nt(e,n+1,l,!0,!0,!0)&&((a=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,a&&(u+=Pn(e,n)),nt(e,n+1,s,!0,a)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",c+=u+=e.dump));e.tag=f,e.dump=c||"{}"}(e,n,e.dump,r),f&&(e.dump="&ref_"+c+e.dump)):(!function(e,n,t){var i,r,o,l,s,a="",u=e.tag,c=Object.keys(t);for(i=0,r=c.length;i<r;i+=1)s="",""!==a&&(s+=", "),e.condenseFlow&&(s+='"'),l=t[o=c[i]],e.replacer&&(l=e.replacer.call(t,o,l)),nt(e,n,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),nt(e,n,l,!1,!1)&&(a+=s+=e.dump));e.tag=u,e.dump="{"+a+"}"}(e,n,e.dump),f&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===a)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&n>0?Xn(e,n-1,e.dump,r):Xn(e,n,e.dump,r),f&&(e.dump="&ref_"+c+e.dump)):(!function(e,n,t){var i,r,o,l="",s=e.tag;for(i=0,r=t.length;i<r;i+=1)o=t[i],e.replacer&&(o=e.replacer.call(t,String(i),o)),(nt(e,n,o,!1,!1)||void 0===o&&nt(e,n,null,!1,!1))&&(""!==l&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=s,e.dump="["+l+"]"}(e,n,e.dump),f&&(e.dump="&ref_"+c+" "+e.dump));else{if("[object String]"!==a){if("[object Undefined]"===a)return!1;if(e.skipInvalid)return!1;throw new ce("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&Jn(e,e.dump,n,o,u)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function tt(e,n){var t,i,r=[],o=[];for(it(e,r,o),t=0,i=o.length;t<i;t+=1)n.duplicates.push(r[o[t]]);n.usedDuplicates=new Array(i)}function it(e,n,t){var i,r,o;if(null!==e&&"object"==typeof e)if(-1!==(r=n.indexOf(e)))-1===t.indexOf(r)&&t.push(r);else if(n.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)it(e[r],n,t);else for(r=0,o=(i=Object.keys(e)).length;r<o;r+=1)it(e[i[r]],n,t)}function rt(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var ot=Nn.load,lt={dump:function(e,n){var t=new _n(n=n||{});t.noRefs||tt(e,t);var i=e;return t.replacer&&(i=t.replacer.call({"":i},"",i)),nt(t,0,i,!0,!0)?t.dump+"\n":""}}.dump;rt("safeLoad","load"),rt("safeLoadAll","loadAll"),rt("safeDump","dump");const st=i;var at,ut;function ct(e,n){return"yaml"===n?lt(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function ft(e,n){return function(e,n,t="json"){const i=ct(e,t);return i===ct(n,t)?[{value:i}]:dt(e,n,0,t)}(e,n,"json")}function dt(e,n,t,i="json"){const r=ct(e,i),o=ct(n,i);return r===o?[{value:pt(r,t,i)}]:"object"!=typeof e||null===e||"object"!=typeof n||null===n||Array.isArray(e)||Array.isArray(n)?Array.isArray(e)&&Array.isArray(n)?function(e,n,t,i="json"){const r=[],o=" ".repeat(t),l=" ".repeat(t+1);r.push({value:"[\n"});const s=Math.max(e.length,n.length);for(let o=0;o<s;o++){const a=o===s-1?"":",";if(o>=e.length){const e=pt(ct(n[o],i),t+1);r.push({added:!0,value:l+e+a+"\n"})}else if(o>=n.length){const n=pt(ct(e[o],i),t+1);r.push({removed:!0,value:l+n+a+"\n"})}else{const s=ct(e[o],i);if(s===ct(n[o],i)){const e=pt(s,t+1);r.push({value:l+e+a+"\n"})}else{const s=dt(e[o],n[o],t+1,i);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")}r.push(...s)}}}return r.push({value:o+"]\n"}),r}(e,n,t,i):function(e,n,t){const i=pt(e,t),r=pt(n,t),o=I(i,r);return o.map((e=>({value:e.value,added:e.added,removed:e.removed})))}(r,o,t,i):function(e,n,t,i="json"){const r=[],o=" ".repeat(t),l=" ".repeat(t+1),s=new Set(Object.keys(e)),a=Object.keys(n),u=[...s].filter((e=>!(e in n))),c=[...a,...u];r.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 n){const o=ct(e[s],i);if(o===ct(n[s],i)){const e=pt(o,t+1);r.push({value:l+JSON.stringify(s)+": "+e+a+"\n"})}else{const o=l+JSON.stringify(s)+": ",u=dt(e[s],n[s],t+1,i);if(u.length>0)if(u[0].removed||u[0].added){const e=u.find((e=>e.removed)),n=u.find((e=>e.added));e&&(e.value=o+e.value),n&&(n.value=o+n.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")}r.push(...u)}}else if(u){const n=pt(ct(e[s],i),t+1);r.push({removed:!0,value:l+JSON.stringify(s)+": "+n+a+"\n"})}else{const e=pt(ct(n[s],i),t+1);r.push({added:!0,value:l+JSON.stringify(s)+": "+e+a+"\n"})}}return r.push({value:o+"}\n"}),r}(e,n,t,i)}function pt(e,n,t="json"){if(0===n)return e;const i=" ".repeat(n);return e.split("\n").map(((e,n)=>0===n?e:i+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"}(at||(at={})),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"}(ut||(ut={}));const ht=e=>{if(""===e)return[];return e.replace(/\n$/,"").split("\n")},gt=(e,n,t=ut.CHARS)=>{const i=("string"==typeof t?st[t]:t)(e,n),r={left:[],right:[]};return i.forEach((({added:e,removed:n,value:t})=>{const i={};return e&&(i.type=at.ADDED,i.value=t,r.right.push(i)),n&&(i.type=at.REMOVED,i.value=t,r.left.push(i)),n||e||(i.type=at.DEFAULT,i.value=t,r.right.push(i),r.left.push(i)),i})),r},mt=(e,n,t=!1,i=ut.CHARS,r=0,o=[],l=!1)=>{let s=[];if("string"==typeof e&&"string"==typeof n)if(i===ut.JSON)s=function(e,n){try{const t=JSON.parse(e),i=JSON.parse(n);return JSON.stringify(t)===JSON.stringify(i)?[{value:e}]:I(e,n,{newlineIsToken:!1})}catch(t){return I(e,n,{newlineIsToken:!1})}}(e,n);else if(i===ut.YAML)try{s=function(e,n){const t=ot(e),i=ot(n);return lt(t,{indent:2,lineWidth:-1,noRefs:!0})===lt(i,{indent:2,lineWidth:-1,noRefs:!0})?[{value:e}]:I(e,n,{newlineIsToken:!1})}(e,n)}catch(t){s=I(e,n,{newlineIsToken:!1})}else s=I(e,n,{newlineIsToken:!1});else s=ft(e,n);let a=r,u=r,c=[],f=0;const d=[],p=[],h=(e,n,r,c,g)=>ht(e).map(((e,m)=>{const v={},y={};if(!(p.includes(`${n}-${m}`)||g&&0!==m)){if(r||c){let r=!0;if(c){u+=1,v.lineNumber=u,v.type=at.REMOVED,v.value=e||" ";const o=s[n+1];if(o?.added){const s=ht(o.value)[m];if(s){const o=h(s,n,!0,!1,!0),{value:a,lineNumber:u,type:c}=o[0].right;if(p.push(`${n+1}-${m}`),y.lineNumber=u,v.value===a)r=!1,y.type=0,v.type=0,y.value=a;else{y.type=c;const n=500,r=e.length>n||a.length>n;if(t||r)y.value=a;else if(l)v.rawValue=e,v.value=e,y.rawValue=a,y.value=a;else{const n=gt(e,a,i);y.value=n.right,v.value=n.left}}}}}else a+=1,y.lineNumber=a,y.type=at.ADDED,y.value=e;r&&!g&&(d.includes(f)||d.push(f))}else u+=1,a+=1,v.lineNumber=u,v.type=at.DEFAULT,v.value=e,y.lineNumber=a,y.type=at.DEFAULT,y.value=e;return(o?.includes(`L-${v.lineNumber}`)||o?.includes(`R-${y.lineNumber}`)&&!d.includes(f))&&d.push(f),g||(f+=1),{right:y,left:v}}})).filter(Boolean);return s.forEach((({added:e,removed:n,value:t},i)=>{c=[...c,...h(t,i,e,n)]})),{lineInformation:c,diffLines:d}};let vt=null,yt=null;const bt=(e,n,t=!1,i=ut.CHARS,r=0,o=[],l=!1)=>{const s=()=>mt(e,n,t,i,r,o,l),a=(()=>{if(null!==vt)return vt;if("undefined"==typeof Worker||"undefined"==typeof Blob||"undefined"==typeof URL)return yt=!1,null;try{const e=new Blob(['(()=>{var Si=Object.defineProperty;var bi=(e,n)=>{for(var i in n)Si(e,i,{get:n[i],enumerable:!0})};var $e={};bi($e,{Diff:()=>b,FILE_HEADERS_ONLY:()=>_n,INCLUDE_HEADERS:()=>Ue,OMIT_HEADERS:()=>Ln,applyPatch:()=>je,applyPatches:()=>bn,arrayDiff:()=>Pe,canonicalize:()=>V,characterDiff:()=>ye,convertChangesToDMP:()=>On,convertChangesToXML:()=>In,createPatch:()=>Fn,createTwoFilesPatch:()=>Ye,cssDiff:()=>Ne,diffArrays:()=>wn,diffChars:()=>sn,diffCss:()=>yn,diffJson:()=>An,diffLines:()=>N,diffSentences:()=>vn,diffTrimmedLines:()=>xn,diffWords:()=>mn,diffWordsWithSpace:()=>Le,formatPatch:()=>ee,jsonDiff:()=>Re,lineDiff:()=>ce,parsePatch:()=>Z,reversePatch:()=>Be,sentenceDiff:()=>ke,structuredPatch:()=>ae,wordDiff:()=>be,wordsWithSpaceDiff:()=>_e});var b=class{diff(n,i,r={}){let l;typeof r=="function"?(l=r,r={}):"callback"in r&&(l=r.callback);let t=this.castInput(n,r),o=this.castInput(i,r),u=this.removeEmpty(this.tokenize(t,r)),f=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(u,f,r,l)}diffWithOptionsObj(n,i,r,l){var t;let o=m=>{if(m=this.postProcess(m,r),l){setTimeout(function(){l(m)},0);return}else return m},u=i.length,f=n.length,c=1,s=u+f;r.maxEditLength!=null&&(s=Math.min(s,r.maxEditLength));let a=(t=r.timeout)!==null&&t!==void 0?t:1/0,p=Date.now()+a,d=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(d[0],i,n,0,r);if(d[0].oldPos+1>=f&&h+1>=u)return o(this.buildValues(d[0].lastComponent,i,n));let g=-1/0,y=1/0,w=()=>{for(let m=Math.max(g,-c);m<=Math.min(y,c);m+=2){let x,A=d[m-1],C=d[m+1];A&&(d[m-1]=void 0);let F=!1;if(C){let S=C.oldPos-m;F=C&&0<=S&&S<u}let E=A&&A.oldPos+1<f;if(!F&&!E){d[m]=void 0;continue}if(!E||F&&A.oldPos<C.oldPos?x=this.addToPath(C,!0,!1,0,r):x=this.addToPath(A,!1,!0,1,r),h=this.extractCommon(x,i,n,m,r),x.oldPos+1>=f&&h+1>=u)return o(this.buildValues(x.lastComponent,i,n))||!0;d[m]=x,x.oldPos+1>=f&&(y=Math.min(y,m-1)),h+1>=u&&(g=Math.max(g,m+1))}c++};if(l)(function m(){setTimeout(function(){if(c>s||Date.now()>p)return l(void 0);w()||m()},0)})();else for(;c<=s&&Date.now()<=p;){let m=w();if(m)return m}}addToPath(n,i,r,l,t){let o=n.lastComponent;return o&&!t.oneChangePerToken&&o.added===i&&o.removed===r?{oldPos:n.oldPos+l,lastComponent:{count:o.count+1,added:i,removed:r,previousComponent:o.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:i,removed:r,previousComponent:o}}}extractCommon(n,i,r,l,t){let o=i.length,u=r.length,f=n.oldPos,c=f-l,s=0;for(;c+1<o&&f+1<u&&this.equals(r[f+1],i[c+1],t);)c++,f++,s++,t.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return s&&!t.oneChangePerToken&&(n.lastComponent={count:s,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=f,c}equals(n,i,r){return r.comparator?r.comparator(n,i):n===i||!!r.ignoreCase&&n.toLowerCase()===i.toLowerCase()}removeEmpty(n){let i=[];for(let r=0;r<n.length;r++)n[r]&&i.push(n[r]);return i}castInput(n,i){return n}tokenize(n,i){return Array.from(n)}join(n){return n.join("")}postProcess(n,i){return n}get useLongestToken(){return!1}buildValues(n,i,r){let l=[],t;for(;n;)l.push(n),t=n.previousComponent,delete n.previousComponent,n=t;l.reverse();let o=l.length,u=0,f=0,c=0;for(;u<o;u++){let s=l[u];if(s.removed)s.value=this.join(r.slice(c,c+s.count)),c+=s.count;else{if(!s.added&&this.useLongestToken){let a=i.slice(f,f+s.count);a=a.map(function(p,d){let h=r[c+d];return h.length>p.length?h:p}),s.value=this.join(a)}else s.value=this.join(i.slice(f,f+s.count));f+=s.count,s.added||(c+=s.count)}}return l}};var ve=class extends b{},ye=new ve;function sn(e,n,i){return ye.diff(e,n,i)}function Ae(e,n){let i;for(i=0;i<e.length&&i<n.length;i++)if(e[i]!=n[i])return e.slice(0,i);return e.slice(0,i)}function we(e,n){let i;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(i=0;i<e.length&&i<n.length;i++)if(e[e.length-(i+1)]!=n[n.length-(i+1)])return e.slice(-i);return e.slice(-i)}function te(e,n,i){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn\'t start with prefix ${JSON.stringify(n)}; this is a bug`);return i+e.slice(n.length)}function ue(e,n,i){if(!n)return e+i;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn\'t end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+i}function q(e,n){return te(e,n,"")}function X(e,n){return ue(e,n,"")}function Ce(e,n){return n.slice(0,_i(e,n))}function _i(e,n){let i=0;e.length>n.length&&(i=e.length-n.length);let r=n.length;e.length<n.length&&(r=e.length);let l=Array(r),t=0;l[0]=0;for(let o=1;o<r;o++){for(n[o]==n[t]?l[o]=l[t]:l[o]=t;t>0&&n[o]!=n[t];)t=l[t];n[o]==n[t]&&t++}t=0;for(let o=i;o<e.length;o++){for(;t>0&&e[o]!=n[t];)t=l[t];e[o]==n[t]&&t++}return t}function pn(e){return e.includes(`\\r\n`)&&!e.startsWith(`\n`)&&!e.match(/[^\\r]\\n/)}function dn(e){return!e.includes(`\\r\n`)&&e.includes(`\n`)}function z(e){let n;for(n=e.length-1;n>=0&&e[n].match(/\\s/);n--);return e.substring(n+1)}function M(e){let n=e.match(/^\\s*/);return n?n[0]:""}var fe="a-zA-Z0-9_\\\\u{AD}\\\\u{C0}-\\\\u{D6}\\\\u{D8}-\\\\u{F6}\\\\u{F8}-\\\\u{2C6}\\\\u{2C8}-\\\\u{2D7}\\\\u{2DE}-\\\\u{2FF}\\\\u{1E00}-\\\\u{1EFF}",Li=new RegExp(`[${fe}]+|\\\\s+|[^${fe}]`,"ug"),Ee=class extends b{equals(n,i,r){return r.ignoreCase&&(n=n.toLowerCase(),i=i.toLowerCase()),n.trim()===i.trim()}tokenize(n,i={}){let r;if(i.intlSegmenter){let o=i.intlSegmenter;if(o.resolvedOptions().granularity!="word")throw new Error(\'The segmenter passed must have a granularity of "word"\');r=[];for(let u of Array.from(o.segment(n))){let f=u.segment;r.length&&/\\s/.test(r[r.length-1])&&/\\s/.test(f)?r[r.length-1]+=f:r.push(f)}}else r=n.match(Li)||[];let l=[],t=null;return r.forEach(o=>{/\\s/.test(o)?t==null?l.push(o):l.push(l.pop()+o):t!=null&&/\\s/.test(t)?l[l.length-1]==t?l.push(l.pop()+o):l.push(t+o):l.push(o),t=o}),l}join(n){return n.map((i,r)=>r==0?i:i.replace(/^\\s+/,"")).join("")}postProcess(n,i){if(!n||i.oneChangePerToken)return n;let r=null,l=null,t=null;return n.forEach(o=>{o.added?l=o:o.removed?t=o:((l||t)&&hn(r,t,l,o),r=o,l=null,t=null)}),(l||t)&&hn(r,t,l,null),n}},be=new Ee;function mn(e,n,i){return i?.ignoreWhitespace!=null&&!i.ignoreWhitespace?Le(e,n,i):be.diff(e,n,i)}function hn(e,n,i,r){if(n&&i){let l=M(n.value),t=z(n.value),o=M(i.value),u=z(i.value);if(e){let f=Ae(l,o);e.value=ue(e.value,o,f),n.value=q(n.value,f),i.value=q(i.value,f)}if(r){let f=we(t,u);r.value=te(r.value,u,f),n.value=X(n.value,f),i.value=X(i.value,f)}}else if(i){if(e){let l=M(i.value);i.value=i.value.substring(l.length)}if(r){let l=M(r.value);r.value=r.value.substring(l.length)}}else if(e&&r){let l=M(r.value),t=M(n.value),o=z(n.value),u=Ae(l,t);n.value=q(n.value,u);let f=we(q(l,u),o);n.value=X(n.value,f),r.value=te(r.value,l,f),e.value=ue(e.value,l,l.slice(0,l.length-f.length))}else if(r){let l=M(r.value),t=z(n.value),o=Ce(t,l);n.value=X(n.value,o)}else if(e){let l=z(e.value),t=M(n.value),o=Ce(l,t);n.value=q(n.value,o)}}var Se=class extends b{tokenize(n){let i=new RegExp(`(\\\\r?\\\\n)|[${fe}]+|[^\\\\S\\\\n\\\\r]+|[^${fe}]`,"ug");return n.match(i)||[]}},_e=new Se;function Le(e,n,i){return _e.diff(e,n,i)}function gn(e,n){if(typeof e=="function")n.callback=e;else if(e)for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}var Fe=class extends b{constructor(){super(...arguments),this.tokenize=Oe}equals(n,i,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`\n`))&&(n=n.trim()),(!r.newlineIsToken||!i.includes(`\n`))&&(i=i.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`\n`)&&(n=n.slice(0,-1)),i.endsWith(`\n`)&&(i=i.slice(0,-1))),super.equals(n,i,r)}},ce=new Fe;function N(e,n,i){return ce.diff(e,n,i)}function xn(e,n,i){return i=gn(i,{ignoreWhitespace:!0}),ce.diff(e,n,i)}function Oe(e,n){n.stripTrailingCr&&(e=e.replace(/\\r\\n/g,`\n`));let i=[],r=e.split(/(\\n|\\r\\n)/);r[r.length-1]||r.pop();for(let l=0;l<r.length;l++){let t=r[l];l%2&&!n.newlineIsToken?i[i.length-1]+=t:i.push(t)}return i}function Fi(e){return e=="."||e=="!"||e=="?"}var Ie=class extends b{tokenize(n){var i;let r=[],l=0;for(let t=0;t<n.length;t++){if(t==n.length-1){r.push(n.slice(l));break}if(Fi(n[t])&&n[t+1].match(/\\s/)){for(r.push(n.slice(l,t+1)),t=l=t+1;!((i=n[t+1])===null||i===void 0)&&i.match(/\\s/);)t++;r.push(n.slice(l,t+1)),l=t+1}}return r}},ke=new Ie;function vn(e,n,i){return ke.diff(e,n,i)}var Te=class extends b{tokenize(n){return n.split(/([{}:;,]|\\s+)/)}},Ne=new Te;function yn(e,n,i){return Ne.diff(e,n,i)}var De=class extends b{constructor(){super(...arguments),this.tokenize=Oe}get useLongestToken(){return!0}castInput(n,i){let{undefinedReplacement:r,stringifyReplacer:l=(t,o)=>typeof o>"u"?r:o}=i;return typeof n=="string"?n:JSON.stringify(V(n,null,null,l),null," ")}equals(n,i,r){return super.equals(n.replace(/,([\\r\\n])/g,"$1"),i.replace(/,([\\r\\n])/g,"$1"),r)}},Re=new De;function An(e,n,i){return Re.diff(e,n,i)}function V(e,n,i,r,l){n=n||[],i=i||[],r&&(e=r(l===void 0?"":l,e));let t;for(t=0;t<n.length;t+=1)if(n[t]===e)return i[t];let o;if(Object.prototype.toString.call(e)==="[object Array]"){for(n.push(e),o=new Array(e.length),i.push(o),t=0;t<e.length;t+=1)o[t]=V(e[t],n,i,r,String(t));return n.pop(),i.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){n.push(e),o={},i.push(o);let u=[],f;for(f in e)Object.prototype.hasOwnProperty.call(e,f)&&u.push(f);for(u.sort(),t=0;t<u.length;t+=1)f=u[t],o[f]=V(e[f],n,i,r,f);n.pop(),i.pop()}else o=e;return o}var Me=class extends b{tokenize(n){return n.slice()}join(n){return n}removeEmpty(n){return n}},Pe=new Me;function wn(e,n,i){return Pe.diff(e,n,i)}function We(e){return Array.isArray(e)?e.map(n=>We(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map((i,r)=>{var l;return i.startsWith("\\\\")||i.endsWith("\\r")||!((l=n.lines[r+1])===null||l===void 0)&&l.startsWith("\\\\")?i:i+"\\r"})}))})}function He(e){return Array.isArray(e)?e.map(n=>He(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map(i=>i.endsWith("\\r")?i.substring(0,i.length-1):i)}))})}function Cn(e){return Array.isArray(e)||(e=[e]),!e.some(n=>n.hunks.some(i=>i.lines.some(r=>!r.startsWith("\\\\")&&r.endsWith("\\r"))))}function En(e){return Array.isArray(e)||(e=[e]),e.some(n=>n.hunks.some(i=>i.lines.some(r=>r.endsWith("\\r"))))&&e.every(n=>n.hunks.every(i=>i.lines.every((r,l)=>{var t;return r.startsWith("\\\\")||r.endsWith("\\r")||((t=i.lines[l+1])===null||t===void 0?void 0:t.startsWith("\\\\"))})))}function Z(e){let n=e.split(/\\n/),i=[],r=0;function l(){let u={};for(i.push(u);r<n.length;){let f=n[r];if(/^(---|\\+\\+\\+|@@)\\s/.test(f))break;let c=/^(?:Index:|diff(?: -r \\w+)+)\\s+/.exec(f);c&&(u.index=f.substring(c[0].length).trim()),r++}for(t(u),t(u),u.hunks=[];r<n.length;){let f=n[r];if(/^(Index:\\s|diff\\s|---\\s|\\+\\+\\+\\s|===================================================================)/.test(f))break;if(/^@@/.test(f))u.hunks.push(o());else{if(f)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(f));r++}}}function t(u){let f=/^(---|\\+\\+\\+)\\s+/.exec(n[r]);if(f){let c=f[1],s=n[r].substring(3).trim().split("\t",2),a=(s[1]||"").trim(),p=s[0].replace(/\\\\\\\\/g,"\\\\");p.startsWith(\'"\')&&p.endsWith(\'"\')&&(p=p.substr(1,p.length-2)),c==="---"?(u.oldFileName=p,u.oldHeader=a):(u.newFileName=p,u.newHeader=a),r++}}function o(){var u;let f=r,c=n[r++],s=c.split(/@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@/),a={oldStart:+s[1],oldLines:typeof s[2]>"u"?1:+s[2],newStart:+s[3],newLines:typeof s[4]>"u"?1:+s[4],lines:[]};a.oldLines===0&&(a.oldStart+=1),a.newLines===0&&(a.newStart+=1);let p=0,d=0;for(;r<n.length&&(d<a.oldLines||p<a.newLines||!((u=n[r])===null||u===void 0)&&u.startsWith("\\\\"));r++){let h=n[r].length==0&&r!=n.length-1?" ":n[r][0];if(h==="+"||h==="-"||h===" "||h==="\\\\")a.lines.push(n[r]),h==="+"?p++:h==="-"?d++:h===" "&&(p++,d++);else throw new Error(`Hunk at line ${f+1} contained invalid line ${n[r]}`)}if(!p&&a.newLines===1&&(a.newLines=0),!d&&a.oldLines===1&&(a.oldLines=0),p!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(f+1));if(d!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(f+1));return a}for(;r<n.length;)l();return i}function Sn(e,n,i){let r=!0,l=!1,t=!1,o=1;return function u(){if(r&&!t){if(l?o++:r=!1,e+o<=i)return e+o;t=!0}if(!l)return t||(r=!0),n<=e-o?e-o++:(l=!0,u())}}function je(e,n,i={}){let r;if(typeof n=="string"?r=Z(n):Array.isArray(n)?r=n:r=[n],r.length>1)throw new Error("applyPatch only works with a single input.");return Oi(e,r[0],i)}function Oi(e,n,i={}){(i.autoConvertLineEndings||i.autoConvertLineEndings==null)&&(pn(e)&&Cn(n)?n=We(n):dn(e)&&En(n)&&(n=He(n)));let r=e.split(`\n`),l=n.hunks,t=i.compareLine||((h,g,y,w)=>g===w),o=i.fuzzFactor||0,u=0;if(o<0||!Number.isInteger(o))throw new Error("fuzzFactor must be a non-negative integer");if(!l.length)return e;let f="",c=!1,s=!1;for(let h=0;h<l[l.length-1].lines.length;h++){let g=l[l.length-1].lines[h];g[0]=="\\\\"&&(f[0]=="+"?c=!0:f[0]=="-"&&(s=!0)),f=g}if(c){if(s){if(!o&&r[r.length-1]=="")return!1}else if(r[r.length-1]=="")r.pop();else if(!o)return!1}else if(s){if(r[r.length-1]!="")r.push("");else if(!o)return!1}function a(h,g,y,w=0,m=!0,x=[],A=0){let C=0,F=!1;for(;w<h.length;w++){let E=h[w],S=E.length>0?E[0]:" ",$=E.length>0?E.substr(1):E;if(S==="-")if(t(g+1,r[g],S,$))g++,C=0;else return!y||r[g]==null?null:(x[A]=r[g],a(h,g+1,y-1,w,!1,x,A+1));if(S==="+"){if(!m)return null;x[A]=$,A++,C=0,F=!0}if(S===" ")if(C++,x[A]=r[g],t(g+1,r[g],S,$))A++,m=!0,F=!1,g++;else return F||!y?null:r[g]&&(a(h,g+1,y-1,w+1,!1,x,A+1)||a(h,g+1,y-1,w,!1,x,A+1))||a(h,g,y-1,w+1,!1,x,A)}return A-=C,g-=C,x.length=A,{patchedLines:x,oldLineLastI:g-1}}let p=[],d=0;for(let h=0;h<l.length;h++){let g=l[h],y,w=r.length-g.oldLines+o,m;for(let x=0;x<=o;x++){m=g.oldStart+d-1;let A=Sn(m,u,w);for(;m!==void 0&&(y=a(g.lines,m,x),!y);m=A());if(y)break}if(!y)return!1;for(let x=u;x<m;x++)p.push(r[x]);for(let x=0;x<y.patchedLines.length;x++){let A=y.patchedLines[x];p.push(A)}u=y.oldLineLastI+1,d=m+1-g.oldStart}for(let h=u;h<r.length;h++)p.push(r[h]);return p.join(`\n`)}function bn(e,n){let i=typeof e=="string"?Z(e):e,r=0;function l(){let t=i[r++];if(!t)return n.complete();n.loadFile(t,function(o,u){if(o)return n.complete(o);let f=je(u,t,n);n.patched(t,f,function(c){if(c)return n.complete(c);l()})})}l()}function Be(e){return Array.isArray(e)?e.map(n=>Be(n)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(n=>({oldLines:n.newLines,oldStart:n.newStart,newLines:n.oldLines,newStart:n.oldStart,lines:n.lines.map(i=>i.startsWith("-")?`+${i.slice(1)}`:i.startsWith("+")?`-${i.slice(1)}`:i)}))})}var Ue={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},_n={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},Ln={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function ae(e,n,i,r,l,t,o){let u;o?typeof o=="function"?u={callback:o}:u=o:u={},typeof u.context>"u"&&(u.context=4);let f=u.context;if(u.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(u.callback){let{callback:s}=u;N(i,r,Object.assign(Object.assign({},u),{callback:a=>{let p=c(a);s(p)}}))}else return c(N(i,r,u));function c(s){if(!s)return;s.push({value:"",lines:[]});function a(m){return m.map(function(x){return" "+x})}let p=[],d=0,h=0,g=[],y=1,w=1;for(let m=0;m<s.length;m++){let x=s[m],A=x.lines||Ii(x.value);if(x.lines=A,x.added||x.removed){if(!d){let C=s[m-1];d=y,h=w,C&&(g=f>0?a(C.lines.slice(-f)):[],d-=g.length,h-=g.length)}for(let C of A)g.push((x.added?"+":"-")+C);x.added?w+=A.length:y+=A.length}else{if(d)if(A.length<=f*2&&m<s.length-2)for(let C of a(A))g.push(C);else{let C=Math.min(A.length,f);for(let E of a(A.slice(0,C)))g.push(E);let F={oldStart:d,oldLines:y-d+C,newStart:h,newLines:w-h+C,lines:g};p.push(F),d=0,h=0,g=[]}y+=A.length,w+=A.length}}for(let m of p)for(let x=0;x<m.lines.length;x++)m.lines[x].endsWith(`\n`)?m.lines[x]=m.lines[x].slice(0,-1):(m.lines.splice(x+1,0,"\\\"),x++);return{oldFileName:e,newFileName:n,oldHeader:l,newHeader:t,hunks:p}}}function ee(e,n){if(n||(n=Ue),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(r=>ee(r,n)).join(`\n`)}let i=[];n.includeIndex&&e.oldFileName==e.newFileName&&i.push("Index: "+e.oldFileName),n.includeUnderline&&i.push("==================================================================="),n.includeFileHeaders&&(i.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":"\t"+e.oldHeader)),i.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":"\t"+e.newHeader)));for(let r=0;r<e.hunks.length;r++){let l=e.hunks[r];l.oldLines===0&&(l.oldStart-=1),l.newLines===0&&(l.newStart-=1),i.push("@@ -"+l.oldStart+","+l.oldLines+" +"+l.newStart+","+l.newLines+" @@");for(let t of l.lines)i.push(t)}return i.join(`\n`)+`\n`}function Ye(e,n,i,r,l,t,o){if(typeof o=="function"&&(o={callback:o}),o?.callback){let{callback:u}=o;ae(e,n,i,r,l,t,Object.assign(Object.assign({},o),{callback:f=>{u(f?ee(f,o.headerOptions):void 0)}}))}else{let u=ae(e,n,i,r,l,t,o);return u?ee(u,o?.headerOptions):void 0}}function Fn(e,n,i,r,l,t){return Ye(e,e,n,i,r,l,t)}function Ii(e){let n=e.endsWith(`\n`),i=e.split(`\n`).map(r=>r+`\n`);return n?i.pop():i.push(i.pop().slice(0,-1)),i}function On(e){let n=[],i,r;for(let l=0;l<e.length;l++)i=e[l],i.added?r=1:i.removed?r=-1:r=0,n.push([r,i.value]);return n}function In(e){let n=[];for(let i=0;i<e.length;i++){let r=e[i];r.added?n.push("<ins>"):r.removed&&n.push("<del>"),n.push(ki(r.value)),r.added?n.push("</ins>"):r.removed&&n.push("</del>")}return n.join("")}function ki(e){let n=e;return n=n.replace(/&/g,"&"),n=n.replace(/</g,"<"),n=n.replace(/>/g,">"),n=n.replace(/"/g,"""),n}function zn(e){return typeof e>"u"||e===null}function Ti(e){return typeof e=="object"&&e!==null}function Ni(e){return Array.isArray(e)?e:zn(e)?[]:[e]}function Di(e,n){var i,r,l,t;if(n)for(t=Object.keys(n),i=0,r=t.length;i<r;i+=1)l=t[i],e[l]=n[l];return e}function Ri(e,n){var i="",r;for(r=0;r<n;r+=1)i+=e;return i}function Mi(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Pi=zn,Wi=Ti,Hi=Ni,ji=Ri,Bi=Mi,Ui=Di,L={isNothing:Pi,isObject:Wi,toArray:Hi,repeat:ji,isNegativeZero:Bi,extend:Ui};function Gn(e,n){var i="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+=\'in "\'+e.mark.name+\'" \'),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`\n\n`+e.mark.snippet),r+" "+i):r}function ie(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Gn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ie.prototype=Object.create(Error.prototype);ie.prototype.constructor=ie;ie.prototype.toString=function(n){return this.name+": "+Gn(this,n)};var k=ie;function qe(e,n,i,r,l){var t="",o="",u=Math.floor(l/2)-1;return r-n>u&&(t=" ... ",n=r-u+t.length),i-r>u&&(o=" ...",i=r+u-o.length),{str:t+e.slice(n,i).replace(/\\t/g,"\\u2192")+o,pos:r-n+t.length}}function ze(e,n){return L.repeat(" ",n-e.length)+e}function Yi(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\\r?\\n|\\r|\\0/g,r=[0],l=[],t,o=-1;t=i.exec(e.buffer);)l.push(t.index),r.push(t.index+t[0].length),e.position<=t.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var u="",f,c,s=Math.min(e.line+n.linesAfter,l.length).toString().length,a=n.maxLength-(n.indent+s+3);for(f=1;f<=n.linesBefore&&!(o-f<0);f++)c=qe(e.buffer,r[o-f],l[o-f],e.position-(r[o]-r[o-f]),a),u=L.repeat(" ",n.indent)+ze((e.line-f+1).toString(),s)+" | "+c.str+`\n`+u;for(c=qe(e.buffer,r[o],l[o],e.position,a),u+=L.repeat(" ",n.indent)+ze((e.line+1).toString(),s)+" | "+c.str+`\n`,u+=L.repeat("-",n.indent+s+3+c.pos)+`^\n`,f=1;f<=n.linesAfter&&!(o+f>=l.length);f++)c=qe(e.buffer,r[o+f],l[o+f],e.position-(r[o]-r[o+f]),a),u+=L.repeat(" ",n.indent)+ze((e.line+f+1).toString(),s)+" | "+c.str+`\n`;return u.replace(/\\n$/,"")}var $i=Yi,qi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zi=["scalar","sequence","mapping"];function Gi(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(r){n[String(r)]=i})}),n}function Ji(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(qi.indexOf(i)===-1)throw new k(\'Unknown option "\'+i+\'" is met in definition of "\'+e+\'" YAML type.\')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Gi(n.styleAliases||null),zi.indexOf(this.kind)===-1)throw new k(\'Unknown kind "\'+this.kind+\'" is specified for "\'+e+\'" YAML type.\')}var O=Ji;function kn(e,n){var i=[];return e[n].forEach(function(r){var l=i.length;i.forEach(function(t,o){t.tag===r.tag&&t.kind===r.kind&&t.multi===r.multi&&(l=o)}),i[l]=r}),i}function Ki(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function r(l){l.multi?(e.multi[l.kind].push(l),e.multi.fallback.push(l)):e[l.kind][l.tag]=e.fallback[l.tag]=l}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(r);return e}function Je(e){return this.extend(e)}Je.prototype.extend=function(n){var i=[],r=[];if(n instanceof O)r.push(n);else if(Array.isArray(n))r=r.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(r=r.concat(n.explicit));else throw new k("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(t){if(!(t instanceof O))throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&t.loadKind!=="scalar")throw new k("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new k("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof O))throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var l=Object.create(Je.prototype);return l.implicit=(this.implicit||[]).concat(i),l.explicit=(this.explicit||[]).concat(r),l.compiledImplicit=kn(l,"implicit"),l.compiledExplicit=kn(l,"explicit"),l.compiledTypeMap=Ki(l.compiledImplicit,l.compiledExplicit),l};var Qi=Je,Xi=new O("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Vi=new O("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Zi=new O("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),er=new Qi({explicit:[Xi,Vi,Zi]});function nr(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function ir(){return null}function rr(e){return e===null}var lr=new O("tag:yaml.org,2002:null",{kind:"scalar",resolve:nr,construct:ir,predicate:rr,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function or(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function tr(e){return e==="true"||e==="True"||e==="TRUE"}function ur(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var fr=new O("tag:yaml.org,2002:bool",{kind:"scalar",resolve:or,construct:tr,predicate:ur,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 cr(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ar(e){return 48<=e&&e<=55}function sr(e){return 48<=e&&e<=57}function pr(e){if(e===null)return!1;var n=e.length,i=0,r=!1,l;if(!n)return!1;if(l=e[i],(l==="-"||l==="+")&&(l=e[++i]),l==="0"){if(i+1===n)return!0;if(l=e[++i],l==="b"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(l!=="0"&&l!=="1")return!1;r=!0}return r&&l!=="_"}if(l==="x"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(!cr(e.charCodeAt(i)))return!1;r=!0}return r&&l!=="_"}if(l==="o"){for(i++;i<n;i++)if(l=e[i],l!=="_"){if(!ar(e.charCodeAt(i)))return!1;r=!0}return r&&l!=="_"}}if(l==="_")return!1;for(;i<n;i++)if(l=e[i],l!=="_"){if(!sr(e.charCodeAt(i)))return!1;r=!0}return!(!r||l==="_")}function dr(e){var n=e,i=1,r;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),n=n.slice(1),r=n[0]),n==="0")return 0;if(r==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function hr(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!L.isNegativeZero(e)}var mr=new O("tag:yaml.org,2002:int",{kind:"scalar",resolve:pr,construct:dr,predicate:hr,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),gr=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))$");function xr(e){return!(e===null||!gr.test(e)||e[e.length-1]==="_")}function vr(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var yr=/^[-+]?[0-9]+e/;function Ar(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(L.isNegativeZero(e))return"-0.0";return i=e.toString(10),yr.test(i)?i.replace("e",".e"):i}function wr(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||L.isNegativeZero(e))}var Cr=new O("tag:yaml.org,2002:float",{kind:"scalar",resolve:xr,construct:vr,predicate:wr,represent:Ar,defaultStyle:"lowercase"}),Er=er.extend({implicit:[lr,fr,mr,Cr]}),Sr=Er,Jn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Kn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\\\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\\\.([0-9]*))?(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function br(e){return e===null?!1:Jn.exec(e)!==null||Kn.exec(e)!==null}function _r(e){var n,i,r,l,t,o,u,f=0,c=null,s,a,p;if(n=Jn.exec(e),n===null&&(n=Kn.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],r=+n[2]-1,l=+n[3],!n[4])return new Date(Date.UTC(i,r,l));if(t=+n[4],o=+n[5],u=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(s=+n[10],a=+(n[11]||0),c=(s*60+a)*6e4,n[9]==="-"&&(c=-c)),p=new Date(Date.UTC(i,r,l,t,o,u,f)),c&&p.setTime(p.getTime()-c),p}function Lr(e){return e.toISOString()}var Fr=new O("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:br,construct:_r,instanceOf:Date,represent:Lr});function Or(e){return e==="<<"||e===null}var Ir=new O("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Or}),Ze=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\\r`;function kr(e){if(e===null)return!1;var n,i,r=0,l=e.length,t=Ze;for(i=0;i<l;i++)if(n=t.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;r+=6}return r%8===0}function Tr(e){var n,i,r=e.replace(/[\\r\\n=]/g,""),l=r.length,t=Ze,o=0,u=[];for(n=0;n<l;n++)n%4===0&&n&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|t.indexOf(r.charAt(n));return i=l%4*6,i===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):i===18?(u.push(o>>10&255),u.push(o>>2&255)):i===12&&u.push(o>>4&255),new Uint8Array(u)}function Nr(e){var n="",i=0,r,l,t=e.length,o=Ze;for(r=0;r<t;r++)r%3===0&&r&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[r];return l=t%3,l===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):l===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):l===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function Dr(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Rr=new O("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kr,construct:Tr,predicate:Dr,represent:Nr}),Mr=Object.prototype.hasOwnProperty,Pr=Object.prototype.toString;function Wr(e){if(e===null)return!0;var n=[],i,r,l,t,o,u=e;for(i=0,r=u.length;i<r;i+=1){if(l=u[i],o=!1,Pr.call(l)!=="[object Object]")return!1;for(t in l)if(Mr.call(l,t))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(t)===-1)n.push(t);else return!1}return!0}function Hr(e){return e!==null?e:[]}var jr=new O("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Wr,construct:Hr}),Br=Object.prototype.toString;function Ur(e){if(e===null)return!0;var n,i,r,l,t,o=e;for(t=new Array(o.length),n=0,i=o.length;n<i;n+=1){if(r=o[n],Br.call(r)!=="[object Object]"||(l=Object.keys(r),l.length!==1))return!1;t[n]=[l[0],r[l[0]]]}return!0}function Yr(e){if(e===null)return[];var n,i,r,l,t,o=e;for(t=new Array(o.length),n=0,i=o.length;n<i;n+=1)r=o[n],l=Object.keys(r),t[n]=[l[0],r[l[0]]];return t}var $r=new O("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ur,construct:Yr}),qr=Object.prototype.hasOwnProperty;function zr(e){if(e===null)return!0;var n,i=e;for(n in i)if(qr.call(i,n)&&i[n]!==null)return!1;return!0}function Gr(e){return e!==null?e:{}}var Jr=new O("tag:yaml.org,2002:set",{kind:"mapping",resolve:zr,construct:Gr}),Qn=Sr.extend({implicit:[Fr,Ir],explicit:[Rr,jr,$r,Jr]}),j=Object.prototype.hasOwnProperty,se=1,Xn=2,Vn=3,pe=4,Ge=1,Kr=2,Tn=3,Qr=/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/,Xr=/[\\x85\\u2028\\u2029]/,Vr=/[,\\[\\]\\{\\}]/,Zn=/^(?:!|!!|![a-z\\-]+!)$/i,ei=/^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*\'\\(\\)\\[\\]])*$/i;function Nn(e){return Object.prototype.toString.call(e)}function R(e){return e===10||e===13}function Y(e){return e===9||e===32}function T(e){return e===9||e===32||e===10||e===13}function J(e){return e===44||e===91||e===93||e===123||e===125}function Zr(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function el(e){return e===120?2:e===117?4:e===85?8:0}function nl(e){return 48<=e&&e<=57?e-48:-1}function Dn(e){return e===48?"\\0":e===97?"\\x07":e===98?"\\b":e===116||e===9?"\t":e===110?`\n`:e===118?"\\v":e===102?"\\f":e===114?"\\r":e===101?"\\x1B":e===32?" ":e===34?\'"\':e===47?"/":e===92?"\\\\":e===78?"\\x85":e===95?"\\xA0":e===76?"\\u2028":e===80?"\\u2029":""}function il(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ni(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var ii=new Array(256),ri=new Array(256);for(U=0;U<256;U++)ii[U]=Dn(U)?1:0,ri[U]=Dn(U);var U;function rl(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Qn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function li(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=$i(i),new k(n,i)}function v(e,n){throw li(e,n)}function de(e,n){e.onWarning&&e.onWarning.call(null,li(e,n))}var Rn={YAML:function(n,i,r){var l,t,o;n.version!==null&&v(n,"duplication of %YAML directive"),r.length!==1&&v(n,"YAML directive accepts exactly one argument"),l=/^([0-9]+)\\.([0-9]+)$/.exec(r[0]),l===null&&v(n,"ill-formed argument of the YAML directive"),t=parseInt(l[1],10),o=parseInt(l[2],10),t!==1&&v(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&de(n,"unsupported YAML version of the document")},TAG:function(n,i,r){var l,t;r.length!==2&&v(n,"TAG directive accepts exactly two arguments"),l=r[0],t=r[1],Zn.test(l)||v(n,"ill-formed tag handle (first argument) of the TAG directive"),j.call(n.tagMap,l)&&v(n,\'there is a previously declared suffix for "\'+l+\'" tag handle\'),ei.test(t)||v(n,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{v(n,"tag prefix is malformed: "+t)}n.tagMap[l]=t}};function H(e,n,i,r){var l,t,o,u;if(n<i){if(u=e.input.slice(n,i),r)for(l=0,t=u.length;l<t;l+=1)o=u.charCodeAt(l),o===9||32<=o&&o<=1114111||v(e,"expected valid JSON character");else Qr.test(u)&&v(e,"the stream contains non-printable characters");e.result+=u}}function Mn(e,n,i,r){var l,t,o,u;for(L.isObject(i)||v(e,"cannot merge mappings; the provided source object is unacceptable"),l=Object.keys(i),o=0,u=l.length;o<u;o+=1)t=l[o],j.call(n,t)||(ni(n,t,i[t]),r[t]=!0)}function K(e,n,i,r,l,t,o,u,f){var c,s;if(Array.isArray(l))for(l=Array.prototype.slice.call(l),c=0,s=l.length;c<s;c+=1)Array.isArray(l[c])&&v(e,"nested arrays are not supported inside keys"),typeof l=="object"&&Nn(l[c])==="[object Object]"&&(l[c]="[object Object]");if(typeof l=="object"&&Nn(l)==="[object Object]"&&(l="[object Object]"),l=String(l),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(t))for(c=0,s=t.length;c<s;c+=1)Mn(e,n,t[c],i);else Mn(e,n,t,i);else!e.json&&!j.call(i,l)&&j.call(n,l)&&(e.line=o||e.line,e.lineStart=u||e.lineStart,e.position=f||e.position,v(e,"duplicated mapping key")),ni(n,l,t),delete i[l];return n}function en(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):v(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _(e,n,i){for(var r=0,l=e.input.charCodeAt(e.position);l!==0;){for(;Y(l);)l===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),l=e.input.charCodeAt(++e.position);if(n&&l===35)do l=e.input.charCodeAt(++e.position);while(l!==10&&l!==13&&l!==0);if(R(l))for(en(e),l=e.input.charCodeAt(e.position),r++,e.lineIndent=0;l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);else break}return i!==-1&&r!==0&&e.lineIndent<i&&de(e,"deficient indentation"),r}function ge(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||T(i)))}function nn(e,n){n===1?e.result+=" ":n>1&&(e.result+=L.repeat(`\n`,n-1))}function ll(e,n,i){var r,l,t,o,u,f,c,s,a=e.kind,p=e.result,d;if(d=e.input.charCodeAt(e.position),T(d)||J(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(l=e.input.charCodeAt(e.position+1),T(l)||i&&J(l)))return!1;for(e.kind="scalar",e.result="",t=o=e.position,u=!1;d!==0;){if(d===58){if(l=e.input.charCodeAt(e.position+1),T(l)||i&&J(l))break}else if(d===35){if(r=e.input.charCodeAt(e.position-1),T(r))break}else{if(e.position===e.lineStart&&ge(e)||i&&J(d))break;if(R(d))if(f=e.line,c=e.lineStart,s=e.lineIndent,_(e,!1,-1),e.lineIndent>=n){u=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=f,e.lineStart=c,e.lineIndent=s;break}}u&&(H(e,t,o,!1),nn(e,e.line-f),t=o=e.position,u=!1),Y(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return H(e,t,o,!1),e.result?!0:(e.kind=a,e.result=p,!1)}function ol(e,n){var i,r,l;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=l=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(H(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)r=e.position,e.position++,l=e.position;else return!0;else R(i)?(H(e,r,l,!0),nn(e,_(e,!1,n)),r=l=e.position):e.position===e.lineStart&&ge(e)?v(e,"unexpected end of the document within a single quoted scalar"):(e.position++,l=e.position);v(e,"unexpected end of the stream within a single quoted scalar")}function tl(e,n){var i,r,l,t,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return H(e,i,e.position,!0),e.position++,!0;if(u===92){if(H(e,i,e.position,!0),u=e.input.charCodeAt(++e.position),R(u))_(e,!1,n);else if(u<256&&ii[u])e.result+=ri[u],e.position++;else if((o=el(u))>0){for(l=o,t=0;l>0;l--)u=e.input.charCodeAt(++e.position),(o=Zr(u))>=0?t=(t<<4)+o:v(e,"expected hexadecimal character");e.result+=il(t),e.position++}else v(e,"unknown escape sequence");i=r=e.position}else R(u)?(H(e,i,r,!0),nn(e,_(e,!1,n)),i=r=e.position):e.position===e.lineStart&&ge(e)?v(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}v(e,"unexpected end of the stream within a double quoted scalar")}function ul(e,n){var i=!0,r,l,t,o=e.tag,u,f=e.anchor,c,s,a,p,d,h=Object.create(null),g,y,w,m;if(m=e.input.charCodeAt(e.position),m===91)s=93,d=!1,u=[];else if(m===123)s=125,d=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),m=e.input.charCodeAt(++e.position);m!==0;){if(_(e,!0,n),m=e.input.charCodeAt(e.position),m===s)return e.position++,e.tag=o,e.anchor=f,e.kind=d?"mapping":"sequence",e.result=u,!0;i?m===44&&v(e,"expected the node content, but found \',\'"):v(e,"missed comma between flow collection entries"),y=g=w=null,a=p=!1,m===63&&(c=e.input.charCodeAt(e.position+1),T(c)&&(a=p=!0,e.position++,_(e,!0,n))),r=e.line,l=e.lineStart,t=e.position,Q(e,n,se,!1,!0),y=e.tag,g=e.result,_(e,!0,n),m=e.input.charCodeAt(e.position),(p||e.line===r)&&m===58&&(a=!0,m=e.input.charCodeAt(++e.position),_(e,!0,n),Q(e,n,se,!1,!0),w=e.result),d?K(e,u,h,y,g,w,r,l,t):a?u.push(K(e,null,h,y,g,w,r,l,t)):u.push(g),_(e,!0,n),m=e.input.charCodeAt(e.position),m===44?(i=!0,m=e.input.charCodeAt(++e.position)):i=!1}v(e,"unexpected end of the stream within a flow collection")}function fl(e,n){var i,r,l=Ge,t=!1,o=!1,u=n,f=0,c=!1,s,a;if(a=e.input.charCodeAt(e.position),a===124)r=!1;else if(a===62)r=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)Ge===l?l=a===43?Tn:Kr:v(e,"repeat of a chomping mode identifier");else if((s=nl(a))>=0)s===0?v(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?v(e,"repeat of an indentation width identifier"):(u=n+s-1,o=!0);else break;if(Y(a)){do a=e.input.charCodeAt(++e.position);while(Y(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!R(a)&&a!==0)}for(;a!==0;){for(en(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),R(a)){f++;continue}if(e.lineIndent<u){l===Tn?e.result+=L.repeat(`\n`,t?1+f:f):l===Ge&&t&&(e.result+=`\n`);break}for(r?Y(a)?(c=!0,e.result+=L.repeat(`\n`,t?1+f:f)):c?(c=!1,e.result+=L.repeat(`\n`,f+1)):f===0?t&&(e.result+=" "):e.result+=L.repeat(`\n`,f):e.result+=L.repeat(`\n`,t?1+f:f),t=!0,o=!0,f=0,i=e.position;!R(a)&&a!==0;)a=e.input.charCodeAt(++e.position);H(e,i,e.position,!1)}return!0}function Pn(e,n){var i,r=e.tag,l=e.anchor,t=[],o,u=!1,f;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=t),f=e.input.charCodeAt(e.position);f!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,v(e,"tab characters must not be used in indentation")),!(f!==45||(o=e.input.charCodeAt(e.position+1),!T(o))));){if(u=!0,e.position++,_(e,!0,-1)&&e.lineIndent<=n){t.push(null),f=e.input.charCodeAt(e.position);continue}if(i=e.line,Q(e,n,Vn,!1,!0),t.push(e.result),_(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&f!==0)v(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return u?(e.tag=r,e.anchor=l,e.kind="sequence",e.result=t,!0):!1}function cl(e,n,i){var r,l,t,o,u,f,c=e.tag,s=e.anchor,a={},p=Object.create(null),d=null,h=null,g=null,y=!1,w=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),m=e.input.charCodeAt(e.position);m!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,v(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),t=e.line,(m===63||m===58)&&T(r))m===63?(y&&(K(e,a,p,d,h,null,o,u,f),d=h=g=null),w=!0,y=!0,l=!0):y?(y=!1,l=!0):v(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=r;else{if(o=e.line,u=e.lineStart,f=e.position,!Q(e,i,Xn,!1,!0))break;if(e.line===t){for(m=e.input.charCodeAt(e.position);Y(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),T(m)||v(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(K(e,a,p,d,h,null,o,u,f),d=h=g=null),w=!0,y=!1,l=!1,d=e.tag,h=e.result;else if(w)v(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=s,!0}else if(w)v(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=s,!0}if((e.line===t||e.lineIndent>n)&&(y&&(o=e.line,u=e.lineStart,f=e.position),Q(e,n,pe,!0,l)&&(y?h=e.result:g=e.result),y||(K(e,a,p,d,h,g,o,u,f),d=h=g=null),_(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===t||e.lineIndent>n)&&m!==0)v(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return y&&K(e,a,p,d,h,null,o,u,f),w&&(e.tag=c,e.anchor=s,e.kind="mapping",e.result=a),w}function al(e){var n,i=!1,r=!1,l,t,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&v(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,l="!!",o=e.input.charCodeAt(++e.position)):l="!",n=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(t=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):v(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!T(o);)o===33&&(r?v(e,"tag suffix cannot contain exclamation marks"):(l=e.input.slice(n-1,e.position+1),Zn.test(l)||v(e,"named tag handle cannot contain such characters"),r=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),Vr.test(t)&&v(e,"tag suffix cannot contain flow indicator characters")}t&&!ei.test(t)&&v(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{v(e,"tag name is malformed: "+t)}return i?e.tag=t:j.call(e.tagMap,l)?e.tag=e.tagMap[l]+t:l==="!"?e.tag="!"+t:l==="!!"?e.tag="tag:yaml.org,2002:"+t:v(e,\'undeclared tag handle "\'+l+\'"\'),!0}function sl(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&v(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!T(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&v(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function pl(e){var n,i,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!T(r)&&!J(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&v(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),j.call(e.anchorMap,i)||v(e,\'unidentified alias "\'+i+\'"\'),e.result=e.anchorMap[i],_(e,!0,-1),!0}function Q(e,n,i,r,l){var t,o,u,f=1,c=!1,s=!1,a,p,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,t=o=u=pe===i||Vn===i,r&&_(e,!0,-1)&&(c=!0,e.lineIndent>n?f=1:e.lineIndent===n?f=0:e.lineIndent<n&&(f=-1)),f===1)for(;al(e)||sl(e);)_(e,!0,-1)?(c=!0,u=t,e.lineIndent>n?f=1:e.lineIndent===n?f=0:e.lineIndent<n&&(f=-1)):u=!1;if(u&&(u=c||l),(f===1||pe===i)&&(se===i||Xn===i?g=n:g=n+1,y=e.position-e.lineStart,f===1?u&&(Pn(e,y)||cl(e,y,g))||ul(e,g)?s=!0:(o&&fl(e,g)||ol(e,g)||tl(e,g)?s=!0:pl(e)?(s=!0,(e.tag!==null||e.anchor!==null)&&v(e,"alias node should not have any properties")):ll(e,g,se===i)&&(s=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(s=u&&Pn(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&v(e,\'unacceptable node kind for !<?> tag; it should be "scalar", not "\'+e.kind+\'"\'),a=0,p=e.implicitTypes.length;a<p;a+=1)if(h=e.implicitTypes[a],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(j.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,d=e.typeMap.multi[e.kind||"fallback"],a=0,p=d.length;a<p;a+=1)if(e.tag.slice(0,d[a].tag.length)===d[a].tag){h=d[a];break}h||v(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&v(e,"unacceptable node kind for !<"+e.tag+\'> tag; it should be "\'+h.kind+\'", not "\'+e.kind+\'"\'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||s}function dl(e){var n=e.position,i,r,l,t=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(_(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(t=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!T(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(i,e.position),l=[],r.length<1&&v(e,"directive name must not be less than one character in length");o!==0;){for(;Y(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!R(o));break}if(R(o))break;for(i=e.position;o!==0&&!T(o);)o=e.input.charCodeAt(++e.position);l.push(e.input.slice(i,e.position))}o!==0&&en(e),j.call(Rn,r)?Rn[r](e,r,l):de(e,\'unknown document directive "\'+r+\'"\')}if(_(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_(e,!0,-1)):t&&v(e,"directives end mark is expected"),Q(e,e.lineIndent-1,pe,!1,!0),_(e,!0,-1),e.checkLineBreaks&&Xr.test(e.input.slice(n,e.position))&&de(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ge(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_(e,!0,-1));return}if(e.position<e.length-1)v(e,"end of the stream or a document separator is expected");else return}function oi(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`\n`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new rl(e,n),r=e.indexOf("\\0");for(r!==-1&&(i.position=r,v(i,"null byte is not allowed in input")),i.input+="\\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)dl(i);return i.documents}function hl(e,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var r=oi(e,i);if(typeof n!="function")return r;for(var l=0,t=r.length;l<t;l+=1)n(r[l])}function ml(e,n){var i=oi(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new k("expected a single document in the stream, but found more")}}var gl=hl,xl=ml,ti={loadAll:gl,load:xl},ui=Object.prototype.toString,fi=Object.prototype.hasOwnProperty,rn=65279,vl=9,re=10,yl=13,Al=32,wl=33,Cl=34,Ke=35,El=37,Sl=38,bl=39,_l=42,ci=44,Ll=45,he=58,Fl=61,Ol=62,Il=63,kl=64,ai=91,si=93,Tl=96,pi=123,Nl=124,di=125,I={};I[0]="\\\\0";I[7]="\\\\a";I[8]="\\\\b";I[9]="\\\\t";I[10]="\\\\n";I[11]="\\\\v";I[12]="\\\\f";I[13]="\\\\r";I[27]="\\\\e";I[34]=\'\\\\"\';I[92]="\\\\\\\\";I[133]="\\\\N";I[160]="\\\\_";I[8232]="\\\\L";I[8233]="\\\\P";var Dl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Rl=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\\.[0-9_]*)?$/;function Ml(e,n){var i,r,l,t,o,u,f;if(n===null)return{};for(i={},r=Object.keys(n),l=0,t=r.length;l<t;l+=1)o=r[l],u=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),f=e.compiledTypeMap.fallback[o],f&&fi.call(f.styleAliases,u)&&(u=f.styleAliases[u]),i[o]=u;return i}function Pl(e){var n,i,r;if(n=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else if(e<=4294967295)i="U",r=8;else throw new k("code point within a string may not be greater than 0xFFFFFFFF");return"\\\\"+i+L.repeat("0",r-n.length)+n}var Wl=1,le=2;function Hl(e){this.schema=e.schema||Qn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=L.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ml(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===\'"\'?le:Wl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Wn(e,n){for(var i=L.repeat(" ",n),r=0,l=-1,t="",o,u=e.length;r<u;)l=e.indexOf(`\n`,r),l===-1?(o=e.slice(r),r=u):(o=e.slice(r,l+1),r=l+1),o.length&&o!==`\n`&&(t+=i),t+=o;return t}function Qe(e,n){return`\n`+L.repeat(" ",e.indent*n)}function jl(e,n){var i,r,l;for(i=0,r=e.implicitTypes.length;i<r;i+=1)if(l=e.implicitTypes[i],l.resolve(n))return!0;return!1}function me(e){return e===Al||e===vl}function oe(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==rn||65536<=e&&e<=1114111}function Hn(e){return oe(e)&&e!==rn&&e!==yl&&e!==re}function jn(e,n,i){var r=Hn(e),l=r&&!me(e);return(i?r:r&&e!==ci&&e!==ai&&e!==si&&e!==pi&&e!==di)&&e!==Ke&&!(n===he&&!l)||Hn(n)&&!me(n)&&e===Ke||n===he&&l}function Bl(e){return oe(e)&&e!==rn&&!me(e)&&e!==Ll&&e!==Il&&e!==he&&e!==ci&&e!==ai&&e!==si&&e!==pi&&e!==di&&e!==Ke&&e!==Sl&&e!==_l&&e!==wl&&e!==Nl&&e!==Fl&&e!==Ol&&e!==bl&&e!==Cl&&e!==El&&e!==kl&&e!==Tl}function Ul(e){return!me(e)&&e!==he}function ne(e,n){var i=e.charCodeAt(n),r;return i>=55296&&i<=56319&&n+1<e.length&&(r=e.charCodeAt(n+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function hi(e){var n=/^\\n* /;return n.test(e)}var mi=1,Xe=2,gi=3,xi=4,G=5;function Yl(e,n,i,r,l,t,o,u){var f,c=0,s=null,a=!1,p=!1,d=r!==-1,h=-1,g=Bl(ne(e,0))&&Ul(ne(e,e.length-1));if(n||o)for(f=0;f<e.length;c>=65536?f+=2:f++){if(c=ne(e,f),!oe(c))return G;g=g&&jn(c,s,u),s=c}else{for(f=0;f<e.length;c>=65536?f+=2:f++){if(c=ne(e,f),c===re)a=!0,d&&(p=p||f-h-1>r&&e[h+1]!==" ",h=f);else if(!oe(c))return G;g=g&&jn(c,s,u),s=c}p=p||d&&f-h-1>r&&e[h+1]!==" "}return!a&&!p?g&&!o&&!l(e)?mi:t===le?G:Xe:i>9&&hi(e)?G:o?t===le?G:Xe:p?xi:gi}function $l(e,n,i,r,l){e.dump=(function(){if(n.length===0)return e.quotingType===le?\'""\':"\'\'";if(!e.noCompatMode&&(Dl.indexOf(n)!==-1||Rl.test(n)))return e.quotingType===le?\'"\'+n+\'"\':"\'"+n+"\'";var t=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-t),u=r||e.flowLevel>-1&&i>=e.flowLevel;function f(c){return jl(e,c)}switch(Yl(n,u,e.indent,o,f,e.quotingType,e.forceQuotes&&!r,l)){case mi:return n;case Xe:return"\'"+n.replace(/\'/g,"\'\'")+"\'";case gi:return"|"+Bn(n,e.indent)+Un(Wn(n,t));case xi:return">"+Bn(n,e.indent)+Un(Wn(ql(n,o),t));case G:return\'"\'+zl(n)+\'"\';default:throw new k("impossible error: invalid scalar style")}})()}function Bn(e,n){var i=hi(e)?String(n):"",r=e[e.length-1]===`\n`,l=r&&(e[e.length-2]===`\n`||e===`\n`),t=l?"+":r?"":"-";return i+t+`\n`}function Un(e){return e[e.length-1]===`\n`?e.slice(0,-1):e}function ql(e,n){for(var i=/(\\n+)([^\\n]*)/g,r=(function(){var c=e.indexOf(`\n`);return c=c!==-1?c:e.length,i.lastIndex=c,Yn(e.slice(0,c),n)})(),l=e[0]===`\n`||e[0]===" ",t,o;o=i.exec(e);){var u=o[1],f=o[2];t=f[0]===" ",r+=u+(!l&&!t&&f!==""?`\n`:"")+Yn(f,n),l=t}return r}function Yn(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,r,l=0,t,o=0,u=0,f="";r=i.exec(e);)u=r.index,u-l>n&&(t=o>l?o:u,f+=`\n`+e.slice(l,t),l=t+1),o=u;return f+=`\n`,e.length-l>n&&o>l?f+=e.slice(l,o)+`\n`+e.slice(o+1):f+=e.slice(l),f.slice(1)}function zl(e){for(var n="",i=0,r,l=0;l<e.length;i>=65536?l+=2:l++)i=ne(e,l),r=I[i],!r&&oe(i)?(n+=e[l],i>=65536&&(n+=e[l+1])):n+=r||Pl(i);return n}function Gl(e,n,i){var r="",l=e.tag,t,o,u;for(t=0,o=i.length;t<o;t+=1)u=i[t],e.replacer&&(u=e.replacer.call(i,String(t),u)),(P(e,n,u,!1,!1)||typeof u>"u"&&P(e,n,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=l,e.dump="["+r+"]"}function $n(e,n,i,r){var l="",t=e.tag,o,u,f;for(o=0,u=i.length;o<u;o+=1)f=i[o],e.replacer&&(f=e.replacer.call(i,String(o),f)),(P(e,n+1,f,!0,!0,!1,!0)||typeof f>"u"&&P(e,n+1,null,!0,!0,!1,!0))&&((!r||l!=="")&&(l+=Qe(e,n)),e.dump&&re===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=t,e.dump=l||"[]"}function Jl(e,n,i){var r="",l=e.tag,t=Object.keys(i),o,u,f,c,s;for(o=0,u=t.length;o<u;o+=1)s="",r!==""&&(s+=", "),e.condenseFlow&&(s+=\'"\'),f=t[o],c=i[f],e.replacer&&(c=e.replacer.call(i,f,c)),P(e,n,f,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?\'"\':"")+":"+(e.condenseFlow?"":" "),P(e,n,c,!1,!1)&&(s+=e.dump,r+=s));e.tag=l,e.dump="{"+r+"}"}function Kl(e,n,i,r){var l="",t=e.tag,o=Object.keys(i),u,f,c,s,a,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new k("sortKeys must be a boolean or a function");for(u=0,f=o.length;u<f;u+=1)p="",(!r||l!=="")&&(p+=Qe(e,n)),c=o[u],s=i[c],e.replacer&&(s=e.replacer.call(i,c,s)),P(e,n+1,c,!0,!0,!0)&&(a=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,a&&(e.dump&&re===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,a&&(p+=Qe(e,n)),P(e,n+1,s,!0,a)&&(e.dump&&re===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,l+=p));e.tag=t,e.dump=l||"{}"}function qn(e,n,i){var r,l,t,o,u,f;for(l=i?e.explicitTypes:e.implicitTypes,t=0,o=l.length;t<o;t+=1)if(u=l[t],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof n=="object"&&n instanceof u.instanceOf)&&(!u.predicate||u.predicate(n))){if(i?u.multi&&u.representName?e.tag=u.representName(n):e.tag=u.tag:e.tag="?",u.represent){if(f=e.styleMap[u.tag]||u.defaultStyle,ui.call(u.represent)==="[object Function]")r=u.represent(n,f);else if(fi.call(u.represent,f))r=u.represent[f](n,f);else throw new k("!<"+u.tag+\'> tag resolver accepts not "\'+f+\'" style\');e.dump=r}return!0}return!1}function P(e,n,i,r,l,t,o){e.tag=null,e.dump=i,qn(e,i,!1)||qn(e,i,!0);var u=ui.call(e.dump),f=r,c;r&&(r=e.flowLevel<0||e.flowLevel>n);var s=u==="[object Object]"||u==="[object Array]",a,p;if(s&&(a=e.duplicates.indexOf(i),p=a!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&n>0)&&(l=!1),p&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&p&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),u==="[object Object]")r&&Object.keys(e.dump).length!==0?(Kl(e,n,e.dump,l),p&&(e.dump="&ref_"+a+e.dump)):(Jl(e,n,e.dump),p&&(e.dump="&ref_"+a+" "+e.dump));else if(u==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?$n(e,n-1,e.dump,l):$n(e,n,e.dump,l),p&&(e.dump="&ref_"+a+e.dump)):(Gl(e,n,e.dump),p&&(e.dump="&ref_"+a+" "+e.dump));else if(u==="[object String]")e.tag!=="?"&&$l(e,e.dump,n,t,f);else{if(u==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new k("unacceptable kind of an object to dump "+u)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Ql(e,n){var i=[],r=[],l,t;for(Ve(e,i,r),l=0,t=r.length;l<t;l+=1)n.duplicates.push(i[r[l]]);n.usedDuplicates=new Array(t)}function Ve(e,n,i){var r,l,t;if(e!==null&&typeof e=="object")if(l=n.indexOf(e),l!==-1)i.indexOf(l)===-1&&i.push(l);else if(n.push(e),Array.isArray(e))for(l=0,t=e.length;l<t;l+=1)Ve(e[l],n,i);else for(r=Object.keys(e),l=0,t=r.length;l<t;l+=1)Ve(e[r[l]],n,i)}function Xl(e,n){n=n||{};var i=new Hl(n);i.noRefs||Ql(e,i);var r=e;return i.replacer&&(r=i.replacer.call({"":r},"",r)),P(i,0,r,!0,!0)?i.dump+`\n`:""}var Vl=Xl,Zl={dump:Vl};function ln(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var on=ti.load,ot=ti.loadAll,xe=Zl.dump;var tt=ln("safeLoad","load"),ut=ln("safeLoadAll","loadAll"),ft=ln("safeDump","dump");var no=$e;function D(e,n){return n==="yaml"?xe(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function io(e,n,i="json"){let r=D(e,i),l=D(n,i);return r===l?[{value:r}]:tn(e,n,0,i)}function ro(e,n){return io(e,n,"json")}function lo(e,n){try{let i=JSON.parse(e),r=JSON.parse(n),l=JSON.stringify(i),t=JSON.stringify(r);return l===t?[{value:e}]:N(e,n,{newlineIsToken:!1})}catch{return N(e,n,{newlineIsToken:!1})}}function oo(e,n){let i=on(e),r=on(n),l=xe(i,{indent:2,lineWidth:-1,noRefs:!0}),t=xe(r,{indent:2,lineWidth:-1,noRefs:!0});return l===t?[{value:e}]:N(e,n,{newlineIsToken:!1})}function tn(e,n,i,r="json"){let l=D(e,r),t=D(n,r);return l===t?[{value:W(l,i,r)}]:typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&!Array.isArray(e)&&!Array.isArray(n)?to(e,n,i,r):Array.isArray(e)&&Array.isArray(n)?uo(e,n,i,r):fo(l,t,i,r)}function to(e,n,i,r="json"){let l=[],t=" ".repeat(i),o=" ".repeat(i+1),u=new Set(Object.keys(e)),f=Object.keys(n),c=[...u].filter(a=>!(a in n)),s=[...f,...c];l.push({value:`{\n`});for(let a=0;a<s.length;a++){let p=s[a],h=a===s.length-1?"":",",g=p in e,y=p in n;if(g&&y){let w=D(e[p],r),m=D(n[p],r);if(w===m){let x=W(w,i+1);l.push({value:o+JSON.stringify(p)+": "+x+h+`\n`})}else{let x=o+JSON.stringify(p)+": ",A=tn(e[p],n[p],i+1,r);if(A.length>0)if(!A[0].removed&&!A[0].added)A[0].value=x+A[0].value;else{let C=A.find(E=>E.removed),F=A.find(E=>E.added);C&&(C.value=x+C.value),F&&(F.value=x+F.value)}if(h&&A.length>0){let C=A[A.length-1];C.value=C.value.replace(/\\n$/,h+`\n`)}l.push(...A)}}else if(g){let w=W(D(e[p],r),i+1);l.push({removed:!0,value:o+JSON.stringify(p)+": "+w+h+`\n`})}else{let w=W(D(n[p],r),i+1);l.push({added:!0,value:o+JSON.stringify(p)+": "+w+h+`\n`})}}return l.push({value:t+`}\n`}),l}function uo(e,n,i,r="json"){let l=[],t=" ".repeat(i),o=" ".repeat(i+1);l.push({value:`[\n`});let u=Math.max(e.length,n.length);for(let f=0;f<u;f++){let s=f===u-1?"":",";if(f>=e.length){let a=W(D(n[f],r),i+1);l.push({added:!0,value:o+a+s+`\n`})}else if(f>=n.length){let a=W(D(e[f],r),i+1);l.push({removed:!0,value:o+a+s+`\n`})}else{let a=D(e[f],r),p=D(n[f],r);if(a===p){let d=W(a,i+1);l.push({value:o+d+s+`\n`})}else{let d=tn(e[f],n[f],i+1,r);if(d.length>0&&(d[0].value=o+d[0].value),s&&d.length>0){let h=d[d.length-1];h.value=h.value.replace(/\\n$/,s+`\n`)}l.push(...d)}}}return l.push({value:t+`]\n`}),l}function fo(e,n,i,r="json"){let l=W(e,i),t=W(n,i);return N(l,t).map(u=>({value:u.value,added:u.added,removed:u.removed}))}function W(e,n,i="json"){if(n===0)return e;let r=" ".repeat(n);return e.split(`\n`).map((l,t)=>t===0?l:r+l).join(`\n`)}var vi=e=>e===""?[]:e.replace(/\\n$/,"").split(`\n`),co=(e,n,i="diffChars")=>{let l=(typeof i=="string"?no[i]:i)(e,n),t={left:[],right:[]};return l.forEach(({added:o,removed:u,value:f})=>{let c={};return o&&(c.type=1,c.value=f,t.right.push(c)),u&&(c.type=2,c.value=f,t.left.push(c)),!u&&!o&&(c.type=0,c.value=f,t.right.push(c),t.left.push(c)),c}),t},yi=(e,n,i=!1,r="diffChars",l=0,t=[],o=!1)=>{let u=[];if(typeof e=="string"&&typeof n=="string")if(r==="diffJson")u=lo(e,n);else if(r==="diffYaml")try{u=oo(e,n)}catch{u=N(e,n,{newlineIsToken:!1})}else u=N(e,n,{newlineIsToken:!1});else u=ro(e,n);let f=l,c=l,s=[],a=0,p=[],d=[],h=(g,y,w,m,x)=>vi(g).map((C,F)=>{let E={},S={};if(!(d.includes(`${y}-${F}`)||x&&F!==0)){if(w||m){let $=!0;if(m){c+=1,E.lineNumber=c,E.type=2,E.value=C||" ";let un=u[y+1];if(un?.added){let fn=vi(un.value)[F];if(fn){let Ai=h(fn,y,!0,!1,!0),{value:B,lineNumber:wi,type:Ci}=Ai[0].right;if(d.push(`${y+1}-${F}`),S.lineNumber=wi,E.value===B)$=!1,S.type=0,E.type=0,S.value=B;else{S.type=Ci;let cn=500,Ei=C.length>cn||B.length>cn;if(i||Ei)S.value=B;else if(o)E.rawValue=C,E.value=C,S.rawValue=B,S.value=B;else{let an=co(C,B,r);S.value=an.right,E.value=an.left}}}}}else f+=1,S.lineNumber=f,S.type=1,S.value=C;$&&!x&&(p.includes(a)||p.push(a))}else c+=1,f+=1,E.lineNumber=c,E.type=0,E.value=C,S.lineNumber=f,S.type=0,S.value=C;return(t?.includes(`L-${E.lineNumber}`)||t?.includes(`R-${S.lineNumber}`)&&!p.includes(a))&&p.push(a),x||(a+=1),{right:S,left:E}}}).filter(Boolean);return u.forEach(({added:g,removed:y,value:w},m)=>{s=[...s,...h(w,m,g,y)]}),{lineInformation:s,diffLines:p}};self.onmessage=e=>{let{oldString:n,newString:i,disableWordDiff:r,lineCompareMethod:l,linesOffset:t,showLines:o,deferWordDiff:u}=e.data,f=yi(n,i,r,l,t,o,u);self.postMessage(f)};})();\n/*! Bundled license information:\n\njs-yaml/dist/js-yaml.mjs:\n (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)\n*/\n'],{type:"application/javascript"});vt=URL.createObjectURL(e),yt=!0}catch{yt=!1,vt=null}return vt})();return a?new Promise((u=>{let c;try{c=new Worker(a)}catch{return yt=!1,void u(s())}c.onmessage=e=>{u(e.data),c.terminate()},c.onerror=()=>{yt=!1,c.terminate(),u(s())},c.postMessage({oldString:e,newString:n,disableWordDiff:t,lineCompareMethod:i,linesOffset:r,showLines:o,deferWordDiff:l})})):Promise.resolve(s())};function wt(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[(0,r.jsx)("title",{children:"expand"}),(0,r.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 xt=function(){function e(e){var n=this;this._insertTag=function(e){var t;t=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(e,t),n.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 n=e.prototype;return n.hydrate=function(e){e.forEach(this._insertTag)},n.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),void 0!==e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var t=function(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}(n);try{t.insertRule(e,t.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},n.flush=function(){this.tags.forEach((function(e){var n;return null==(n=e.parentNode)?void 0:n.removeChild(e)})),this.tags=[],this.ctr=0},e}(),kt=Math.abs,At=String.fromCharCode,Ct=Object.assign;function St(e){return e.trim()}function jt(e,n,t){return e.replace(n,t)}function Ot(e,n){return e.indexOf(n)}function Lt(e,n){return 0|e.charCodeAt(n)}function Tt(e,n,t){return e.slice(n,t)}function It(e){return e.length}function Nt(e){return e.length}function Et(e,n){return n.push(e),e}var Ft=1,Dt=1,Mt=0,Rt=0,Wt=0,Ht="";function _t(e,n,t,i,r,o,l){return{value:e,root:n,parent:t,type:i,props:r,children:o,line:Ft,column:Dt,length:l,return:""}}function $t(e,n){return Ct(_t("",null,null,"",null,null,0),e,{length:-e.length},n)}function Pt(){return Wt=Rt>0?Lt(Ht,--Rt):0,Dt--,10===Wt&&(Dt=1,Ft--),Wt}function Bt(){return Wt=Rt<Mt?Lt(Ht,Rt++):0,Dt++,10===Wt&&(Dt=1,Ft++),Wt}function Vt(){return Lt(Ht,Rt)}function Gt(){return Rt}function Ut(e,n){return Tt(Ht,e,n)}function qt(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 zt(e){return Ft=Dt=1,Mt=It(Ht=e),Rt=0,[]}function Yt(e){return Ht="",e}function Jt(e){return St(Ut(Rt-1,Qt(91===e?e+2:40===e?e+1:e)))}function Zt(e){for(;(Wt=Vt())&&Wt<33;)Bt();return qt(e)>2||qt(Wt)>3?"":" "}function Kt(e,n){for(;--n&&Bt()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Ut(e,Gt()+(n<6&&32==Vt()&&32==Bt()))}function Qt(e){for(;Bt();)switch(Wt){case e:return Rt;case 34:case 39:34!==e&&39!==e&&Qt(Wt);break;case 40:41===e&&Qt(e);break;case 92:Bt()}return Rt}function Xt(e,n){for(;Bt()&&e+Wt!==57&&(e+Wt!==84||47!==Vt()););return"/*"+Ut(n,Rt-1)+"*"+At(47===e?e:Bt())}function ei(e){for(;!qt(Vt());)Bt();return Ut(e,Rt)}var ni="-ms-",ti="-moz-",ii="-webkit-",ri="comm",oi="rule",li="decl",si="@keyframes";function ai(e,n){for(var t="",i=Nt(e),r=0;r<i;r++)t+=n(e[r],r,e,n)||"";return t}function ui(e,n,t,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case li:return e.return=e.return||e.value;case ri:return"";case si:return e.return=e.value+"{"+ai(e.children,i)+"}";case oi:e.value=e.props.join(",")}return It(t=ai(e.children,i))?e.return=e.value+"{"+t+"}":""}function ci(e){return Yt(fi("",null,null,null,[""],e=zt(e),0,[0],e))}function fi(e,n,t,i,r,o,l,s,a){for(var u=0,c=0,f=l,d=0,p=0,h=0,g=1,m=1,v=1,y=0,b="",w=r,x=o,k=i,A=b;m;)switch(h=y,y=Bt()){case 40:if(108!=h&&58==Lt(A,f-1)){-1!=Ot(A+=jt(Jt(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:A+=Jt(y);break;case 9:case 10:case 13:case 32:A+=Zt(h);break;case 92:A+=Kt(Gt()-1,7);continue;case 47:switch(Vt()){case 42:case 47:Et(pi(Xt(Bt(),Gt()),n,t),a);break;default:A+="/"}break;case 123*g:s[u++]=It(A)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:-1==v&&(A=jt(A,/\f/g,"")),p>0&&It(A)-f&&Et(p>32?hi(A+";",i,t,f-1):hi(jt(A," ","")+";",i,t,f-2),a);break;case 59:A+=";";default:if(Et(k=di(A,n,t,u,c,r,s,b,w=[],x=[],f),o),123===y)if(0===c)fi(A,n,k,k,w,o,f,s,x);else switch(99===d&&110===Lt(A,3)?100:d){case 100:case 108:case 109:case 115:fi(e,k,k,i&&Et(di(e,k,k,0,0,r,s,b,r,w=[],f),x),r,x,f,s,i?w:x);break;default:fi(A,k,k,k,[""],x,0,s,x)}}u=c=p=0,g=v=1,b=A="",f=l;break;case 58:f=1+It(A),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Pt())continue;switch(A+=At(y),y*g){case 38:v=c>0?1:(A+="\f",-1);break;case 44:s[u++]=(It(A)-1)*v,v=1;break;case 64:45===Vt()&&(A+=Jt(Bt())),d=Vt(),c=f=It(b=A+=ei(Gt())),y++;break;case 45:45===h&&2==It(A)&&(g=0)}}return o}function di(e,n,t,i,r,o,l,s,a,u,c){for(var f=r-1,d=0===r?o:[""],p=Nt(d),h=0,g=0,m=0;h<i;++h)for(var v=0,y=Tt(e,f+1,f=kt(g=l[h])),b=e;v<p;++v)(b=St(g>0?d[v]+" "+y:jt(y,/&\f/g,d[v])))&&(a[m++]=b);return _t(e,n,t,0===r?oi:s,a,u,c)}function pi(e,n,t){return _t(e,n,t,ri,At(Wt),Tt(e,2,-2),0)}function hi(e,n,t,i){return _t(e,n,t,li,Tt(e,0,i),Tt(e,i+1,-1),i)}var gi=function(e,n,t){for(var i=0,r=0;i=r,r=Vt(),38===i&&12===r&&(n[t]=1),!qt(r);)Bt();return Ut(e,Rt)},mi=function(e,n){return Yt(function(e,n){var t=-1,i=44;do{switch(qt(i)){case 0:38===i&&12===Vt()&&(n[t]=1),e[t]+=gi(Rt-1,n,t);break;case 2:e[t]+=Jt(i);break;case 4:if(44===i){e[++t]=58===Vt()?"&\f":"",n[t]=e[t].length;break}default:e[t]+=At(i)}}while(i=Bt());return e}(zt(e),n))},vi=new WeakMap,yi=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var n=e.value,t=e.parent,i=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===n.charCodeAt(0)||vi.get(t))&&!i){vi.set(e,!0);for(var r=[],o=mi(n,r),l=t.props,s=0,a=0;s<o.length;s++)for(var u=0;u<l.length;u++,a++)e.props[a]=r[s]?o[s].replace(/&\f/g,l[u]):l[u]+" "+o[s]}}},bi=function(e){if("decl"===e.type){var n=e.value;108===n.charCodeAt(0)&&98===n.charCodeAt(2)&&(e.return="",e.value="")}};function wi(e,n){switch(function(e,n){return 45^Lt(e,0)?(((n<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}(e,n)){case 5103:return ii+"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 ii+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ii+e+ti+e+ni+e+e;case 6828:case 4268:return ii+e+ni+e+e;case 6165:return ii+e+ni+"flex-"+e+e;case 5187:return ii+e+jt(e,/(\w+).+(:[^]+)/,ii+"box-$1$2"+ni+"flex-$1$2")+e;case 5443:return ii+e+ni+"flex-item-"+jt(e,/flex-|-self/,"")+e;case 4675:return ii+e+ni+"flex-line-pack"+jt(e,/align-content|flex-|-self/,"")+e;case 5548:return ii+e+ni+jt(e,"shrink","negative")+e;case 5292:return ii+e+ni+jt(e,"basis","preferred-size")+e;case 6060:return ii+"box-"+jt(e,"-grow","")+ii+e+ni+jt(e,"grow","positive")+e;case 4554:return ii+jt(e,/([^-])(transform)/g,"$1"+ii+"$2")+e;case 6187:return jt(jt(jt(e,/(zoom-|grab)/,ii+"$1"),/(image-set)/,ii+"$1"),e,"")+e;case 5495:case 3959:return jt(e,/(image-set\([^]*)/,ii+"$1$`$1");case 4968:return jt(jt(e,/(.+:)(flex-)?(.*)/,ii+"box-pack:$3"+ni+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ii+e+e;case 4095:case 3583:case 4068:case 2532:return jt(e,/(.+)-inline(.+)/,ii+"$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(It(e)-1-n>6)switch(Lt(e,n+1)){case 109:if(45!==Lt(e,n+4))break;case 102:return jt(e,/(.+:)(.+)-([^]+)/,"$1"+ii+"$2-$3$1"+ti+(108==Lt(e,n+3)?"$3":"$2-$3"))+e;case 115:return~Ot(e,"stretch")?wi(jt(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(115!==Lt(e,n+1))break;case 6444:switch(Lt(e,It(e)-3-(~Ot(e,"!important")&&10))){case 107:return jt(e,":",":"+ii)+e;case 101:return jt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ii+(45===Lt(e,14)?"inline-":"")+"box$3$1"+ii+"$2$3$1"+ni+"$2box$3")+e}break;case 5936:switch(Lt(e,n+11)){case 114:return ii+e+ni+jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ii+e+ni+jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ii+e+ni+jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ii+e+ni+e+e}return e}var xi=[function(e,n,t,i){if(e.length>-1&&!e.return)switch(e.type){case li:e.return=wi(e.value,e.length);break;case si:return ai([$t(e,{value:jt(e.value,"@","@"+ii)})],i);case oi:if(e.length)return function(e,n){return e.map(n).join("")}(e.props,(function(n){switch(function(e,n){return(e=n.exec(e))?e[0]:e}(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ai([$t(e,{props:[jt(n,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return ai([$t(e,{props:[jt(n,/:(plac\w+)/,":"+ii+"input-$1")]}),$t(e,{props:[jt(n,/:(plac\w+)/,":-moz-$1")]}),$t(e,{props:[jt(n,/:(plac\w+)/,ni+"input-$1")]})],i)}return""}))}}],ki=function(e){var n=e.key;if("css"===n){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,r,o=e.stylisPlugins||xi,l={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),(function(e){for(var n=e.getAttribute("data-emotion").split(" "),t=1;t<n.length;t++)l[n[t]]=!0;s.push(e)}));var a,u,c,f,d=[ui,(f=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(u=[yi,bi].concat(o,d),c=Nt(u),function(e,n,t,i){for(var r="",o=0;o<c;o++)r+=u[o](e,n,t,i)||"";return r});r=function(e,n,t,i){a=t,function(e){ai(ci(e),p)}(e?e+"{"+n.styles+"}":n.styles),i&&(h.inserted[n.name]=!0)};var h={key:n,sheet:new xt({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:r};return h.sheet.hydrate(s),h};var Ai={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 Ci(e){var n=Object.create(null);return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}var Si=/[A-Z]|^ms/g,ji=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oi=function(e){return 45===e.charCodeAt(1)},Li=function(e){return null!=e&&"boolean"!=typeof e},Ti=Ci((function(e){return Oi(e)?e:e.replace(Si,"-$&").toLowerCase()})),Ii=function(e,n){switch(e){case"animation":case"animationName":if("string"==typeof n)return n.replace(ji,(function(e,n,t){return Ei={name:n,styles:t,next:Ei},n}))}return 1===Ai[e]||Oi(e)||"number"!=typeof n||0===n?n:n+"px"};function Ni(e,n,t){if(null==t)return"";var i=t;if(void 0!==i.__emotion_styles)return i;switch(typeof t){case"boolean":return"";case"object":var r=t;if(1===r.anim)return Ei={name:r.name,styles:r.styles,next:Ei},r.name;var o=t;if(void 0!==o.styles){var l=o.next;if(void 0!==l)for(;void 0!==l;)Ei={name:l.name,styles:l.styles,next:Ei},l=l.next;return o.styles+";"}return function(e,n,t){var i="";if(Array.isArray(t))for(var r=0;r<t.length;r++)i+=Ni(e,n,t[r])+";";else for(var o in t){var l=t[o];if("object"!=typeof l){var s=l;null!=n&&void 0!==n[s]?i+=o+"{"+n[s]+"}":Li(s)&&(i+=Ti(o)+":"+Ii(o,s)+";")}else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=n&&void 0!==n[l[0]]){var a=Ni(e,n,l);switch(o){case"animation":case"animationName":i+=Ti(o)+":"+a+";";break;default:i+=o+"{"+a+"}"}}else for(var u=0;u<l.length;u++)Li(l[u])&&(i+=Ti(o)+":"+Ii(o,l[u])+";")}return i}(e,n,t);case"function":if(void 0!==e){var s=Ei,a=t(e);return Ei=s,Ni(e,n,a)}}var u=t;if(null==n)return u;var c=n[u];return void 0!==c?c:u}var Ei,Fi=/label:\s*([^\s;{]+)\s*(;|$)/g;function Di(e,n,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,r="";Ei=void 0;var o=e[0];null==o||void 0===o.raw?(i=!1,r+=Ni(t,n,o)):r+=o[0];for(var l=1;l<e.length;l++){if(r+=Ni(t,n,e[l]),i)r+=o[l]}Fi.lastIndex=0;for(var s,a="";null!==(s=Fi.exec(r));)a+="-"+s[1];var u=function(e){for(var n,t=0,i=0,r=e.length;r>=4;++i,r-=4)n=1540483477*(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(n>>>16)<<16),t=1540483477*(65535&(n^=n>>>24))+(59797*(n>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(r){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(i)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(r)+a;return{name:u,styles:r,next:Ei}}function Mi(e,n,t){var i="";return t.split(" ").forEach((function(t){void 0!==e[t]?n.push(e[t]+";"):t&&(i+=t+" ")})),i}function Ri(e,n){if(void 0===e.inserted[n.name])return e.insert("",n,e.sheet,!0)}function Wi(e,n,t){var i=[],r=Mi(e,i,t);return i.length<2?t:r+n(i)}var Hi=function e(n){for(var t="",i=0;i<n.length;i++){var r=n[i];if(null!=r){var o=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))o=e(r);else for(var l in o="",r)r[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=r}o&&(t&&(t+=" "),t+=o)}}return t};const _i=(e,n=!1,t="")=>{const{variables:i={},...r}=e,o={light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee",...i.light||{}},dark:{diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#2ea04326",addedColor:"white",removedBackground:"#f851491a",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#2ea04366",wordRemovedBackground:"#f8514966",addedGutterBackground:"#3fb9504d",removedGutterBackground:"#f851494d",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#262831",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#f0f6fc",addedGutterColor:"#f0f6fc",removedGutterColor:"#f0f6fc",codeFoldContentColor:"#9198a1",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#f0f6fc",diffViewerTitleBorderColor:"#353846",...i.dark||{}}},l=n?o.dark:o.light,{css:s,cx:a}=function(e){var n=ki(e);n.sheet.speedy=function(e){this.isSpeedy=e},n.compat=!0;var t=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r=Di(t,n.registered,void 0);return function(e,n){!function(e,n,t){var i=e.key+"-"+n.name;!1===t&&void 0===e.registered[i]&&(e.registered[i]=n.styles)}(e,n,!1);var t=e.key+"-"+n.name;if(void 0===e.inserted[n.name]){var i=n;do{e.insert(n===i?"."+t:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(n,r),n.key+"-"+r.name};return{css:t,cx:function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Wi(n.registered,t,Hi(i))},injectGlobal:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r=Di(t,n.registered);Ri(n,r)},keyframes:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r=Di(t,n.registered),o="animation-"+r.name;return Ri(n,{name:r.name,styles:"@keyframes "+o+"{"+r.styles+"}"}),o},hydrate:function(e){e.forEach((function(e){n.inserted[e]=!0}))},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Mi.bind(null,n.registered),merge:Wi.bind(null,n.registered,t)}}({key:"react-diff",nonce:t}),u=s({width:"auto",overflow:"hidden",label:"content"}),c=s({label:"split-view"}),f=s({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),d=s({background:l.diffViewerTitleBackground,color:l.diffViewerTitleColor,padding:"0.5em 1em",display:"flex",alignItems:"center",gap:"0.5em",fontFamily:"monospace",fontSize:12,fill:l.diffViewerTitleColor}),p=s({display:"flex",label:"column-headers"}),h=s({width:"100%",minWidth:"1000px",overflowX:"auto",tableLayout:"fixed",fontSize:12,background:l.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"1.6em",width:"fit-content"},label:"diff-container",borderCollapse:"collapse","@media (max-width: 768px)":{minWidth:"unset"}}),g=s({overflow:"hidden",width:"100%"}),m=s({color:l.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),v=s({userSelect:"none",label:"unselectable"}),y=s({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${m}`]:{whiteSpace:"pre",lineBreak:"auto"}}),b=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`}}),w=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}}),x=s({color:l.gutterColor,label:"line-number"}),k=s({background:l.removedBackground,color:l.removedColor,pre:{color:l.removedColor},[`.${x}`]:{color:l.removedGutterColor},label:"diff-removed"}),A=s({background:l.addedBackground,color:l.addedColor,pre:{color:l.addedColor},[`.${x}`]:{color:l.addedGutterColor},label:"diff-added"}),C=s({background:l.changedBackground,[`.${x}`]:{color:l.gutterColor},label:"diff-changed"}),S=s({display:"inline",textDecoration:"none",label:"word-diff"}),j=s({background:l.wordAddedBackground,label:"word-added"}),O=s({background:l.wordRemovedBackground,label:"word-removed"}),L=s({backgroundColor:l.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",textAlign:"center",fill:l.codeFoldContentColor}),T=s({padding:""}),I=s({background:l.codeFoldBackground,cursor:"pointer",display:"inline",margin:0,border:"none",fill:l.codeFoldContentColor,label:"code-fold-expand-button"}),N=s({color:l.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),E=s({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:l.diffViewerTitleBorderColor}),F=s({backgroundColor:l.wordAddedBackground}),D=s({backgroundColor:l.wordRemovedBackground}),M=s({backgroundColor:l.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","&:hover":{color:l.diffViewerColor,fill:l.diffViewerColor,"& *":{color:l.diffViewerColor,fill:l.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),R=s({backgroundColor:l.emptyLineBackground,label:"empty-line"}),W=s({width:28,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${A}`]:{pre:{color:l.addedColor}},[`&.${k}`]:{pre:{color:l.removedColor}}}),H=s({background:l.highlightBackground,label:"highlighted-line",[`.${j}, .${O}`]:{backgroundColor:"initial"}}),_=s({label:"highlighted-gutter"}),$=s({userSelect:"none",minWidth:50,width:"50px",padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"center",color:l.gutterColor,background:l.gutterBackground,"&:hover":{cursor:"pointer",background:l.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:"center",width:"100%"},[`&.${A}`]:{background:l.addedGutterBackground},[`&.${k}`]:{background:l.removedGutterBackground},[`&.${_}`]:{background:l.highlightGutterBackground,"&:hover":{background:l.highlightGutterBackground}}}),P=s({"&:hover":{background:l.gutterBackground,cursor:"initial"},label:"empty-gutter"}),B={diffContainer:h,diffRemoved:k,diffAdded:A,diffChanged:C,splitView:c,marker:W,highlightedGutter:_,highlightedLine:H,gutter:$,line:s({verticalAlign:"baseline",label:"line",textDecoration:"none"}),lineContent:g,wordDiff:S,wordAdded:j,summary:d,block:E,blockAddition:F,blockDeletion:D,wordRemoved:O,noSelect:v,noWrap:y,codeFoldGutter:L,codeFoldExpandButton:I,codeFoldContentContainer:T,codeFold:M,emptyGutter:P,emptyLine:R,lineNumber:x,contentText:m,content:u,column:s({}),codeFoldContent:N,stickyHeader:f,columnHeaders:p,titleBlock:w,allExpandButton:b},V=Object.keys(r).reduce(((e,n)=>({...e,[n]:s(r[n])})),{});return Object.keys(B).reduce(((e,n)=>({...e,[n]:V[n]?a(B[n],V[n]):B[n]})),{})};function $i(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[(0,r.jsx)("title",{children:"fold"}),(0,r.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"})]})}var Pi;(Object.getOwnPropertyDescriptor(_i,"name")||{}).writable||Object.defineProperty(_i,"name",{value:"default",configurable:!0}),function(e){e.LEFT="L",e.RIGHT="R"}(Pi||(Pi={}));class Bi extends l.Component{styles;wordDiffCache=new Map;contentColumnRef=l.createRef();charMeasureRef=l.createRef();stickyHeaderRef=l.createRef();resizeObserver=null;static defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:ut.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""};constructor(e){super(e),this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:l.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null}}getWordDiffValues=(e,n,t)=>{if(!e||!n)return{leftValue:e?.value,rightValue:n?.value};if(void 0===e.rawValue||void 0===n.rawValue)return{leftValue:e.value,rightValue:n.value};const i=`${t}-${e.rawValue}-${n.rawValue}`;let r=this.wordDiffCache.get(i);if(!r){const t=this.props.compareMethod===ut.JSON||this.props.compareMethod===ut.YAML?ut.CHARS:this.props.compareMethod,o=gt(e.rawValue,n.rawValue,t);r={left:o.left,right:o.right},this.wordDiffCache.set(i,r)}return{leftValue:r.left,rightValue:r.right}};resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0);onBlockExpand=e=>{const n=this.state.expandedBlocks.slice();n.push(e),this.setState({expandedBlocks:n},(()=>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 n=window.getComputedStyle(e),t=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),i=e.clientWidth-t;if(i>0)return i}const n=this.state.scrollableContainerRef.current;if(!n||n.clientWidth<=0)return null;const t=n.clientWidth,i=this.props.hideLineNumbers?0:50,r=(this.props.splitView,2),o=this.props.splitView?2:1,l=this.props.splitView?2:1,s=t-(r*i+28*o);return Math.max(100,s/l)}getTextLength(e){return e?"string"==typeof e?e.length:e.reduce(((e,n)=>e+("string"==typeof n.value?n.value.length:0)),0):0}buildCumulativeOffsets(e,n,t,i,r,o,l,s){const a=[0],u=new Set;for(let c=0;c<e.length;c++){const f=e[c];if(r){const e=n[c];if(void 0!==e&&!i.includes(e)){const n=t[e].endLine===c;!u.has(e)&&n&&(u.add(e),a.push(a[a.length-1]+Bi.ESTIMATED_ROW_HEIGHT));continue}}const d=f.left?.value?this.getTextLength(f.left.value):0,p=f.right?.value?this.getTextLength(f.right.value):0,h=s?Math.max(d,p):d||p,g=Math.floor(l/o),m=g>0?Math.max(1,Math.ceil(h/g)):1;a.push(a[a.length-1]+m*Bi.ESTIMATED_ROW_HEIGHT)}return a}findLineAtOffset(e,n){let t=0,i=n.length-2;for(;t<i;){const r=Math.floor((t+i+1)/2);n[r]<=e?t=r:i=r-1}return t}recalculateOffsets=()=>{if(!this.props.infiniteLoading)return;const e=this.measureContentColumnWidth(),n=this.measureCharWidth();if(!e)return;const t=this.getMemoisedKey(),{lineInformation:i,lineBlocks:r,blocks:o}=this.state.computedDiffResult[t]??{};if(!i)return;const l=this.buildCumulativeOffsets(i,r,o,this.state.expandedBlocks,this.props.showDiffOnly,n,e,this.props.splitView);this.setState({cumulativeOffsets:l,contentColumnWidth:e,charWidth:n},(()=>{this.onScroll()}))};computeStyles=(0,s.A)(_i);onLineNumberClickProxy=e=>this.props.onLineNumberClick?n=>this.props.onLineNumberClick(e,n):()=>{};shouldHighlightWordDiff=()=>{const{compareMethod:e}=this.props;return e===ut.CHARS||e===ut.WORDS||e===ut.WORDS_WITH_SPACE||e===ut.JSON||e===ut.YAML};renderWordDiff=(e,n)=>{const t=this.shouldHighlightWordDiff(),i=e.map((e=>"string"==typeof e.value?e.value:"")).join("");if(i.length>500)return[(0,r.jsx)("span",{children:i},"long-line")];if(n){const r=n(i),o=r?.props?.dangerouslySetInnerHTML?.__html;if("string"==typeof o){const n=function(e,n,t){const i=[];let r=0;for(const e of n){const n="string"==typeof e.value?e.value:"";n.length>0&&(i.push({start:r,end:r+n.length,type:e.type}),r+=n.length)}const o=[];let l=0;for(;l<e.length;)if("<"===e[l]){const n=e.indexOf(">",l);if(-1===n){o.push({type:"text",content:e.slice(l)});break}o.push({type:"tag",content:e.slice(l,n+1)}),l=n+1}else{let n=e.indexOf("<",l);-1===n&&(n=e.length),o.push({type:"text",content:e.slice(l,n)}),l=n}function s(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/ /g," ")}function a(e){return e===at.ADDED?{open:`<ins class="${t.wordDiff} ${t.wordAdded}">`,close:"</ins>"}:e===at.REMOVED?{open:`<del class="${t.wordDiff} ${t.wordRemoved}">`,close:"</del>"}:{open:`<span class="${t.wordDiff}">`,close:"</span>"}}let u=0,c="";for(const e of o)if("tag"===e.type)c+=e.content;else{const n=e.content,t=s(n);let r=0,o=0;for(;r<t.length;){const e=u+r,l=i.find((n=>e>=n.start&&e<n.end));if(!l){c+=n[o],o++,r++;continue}const s=l.end-e,f=t.length-r,d=Math.min(s,f);let p=o,h=0;for(;h<d&&p<n.length;){if("&"===n[p]){const e=n.indexOf(";",p);-1!==e&&e-p<10?p=e+1:p++}else p++;h++}const g=n.slice(o,p),m=a(l.type);c+=m?m.open+g+m.close:g,o=p,r+=d}u+=t.length}return c}(o,e,{wordDiff:this.styles.wordDiff,wordAdded:t?this.styles.wordAdded:"",wordRemoved:t?this.styles.wordRemoved:""});return[l.cloneElement(r,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:n}})]}}return e.map(((e,n)=>{let i;return i="string"==typeof e.value?e.value:void 0,e.type===at.ADDED?(0,r.jsx)("ins",{className:o(this.styles.wordDiff,{[this.styles.wordAdded]:t}),children:i},n):e.type===at.REMOVED?(0,r.jsx)("del",{className:o(this.styles.wordDiff,{[this.styles.wordRemoved]:t}),children:i},n):(0,r.jsx)("span",{className:o(this.styles.wordDiff),children:i},n)}))};renderLine=(e,n,t,i,l,s)=>{const a=`${t}-${e}`,u=`${s}-${l}`,c=this.props.highlightLines.includes(a)||this.props.highlightLines.includes(u),f=n===at.ADDED,d=n===at.REMOVED,p=n===at.CHANGED;let h;const g=Array.isArray(i);h=g?this.renderWordDiff(i,this.props.renderContent):this.props.renderContent?this.props.renderContent(i):i;let m="div";return f&&!g?m="ins":d&&!g&&(m="del"),(0,r.jsxs)(r.Fragment,{children:[!this.props.hideLineNumbers&&(0,r.jsx)("td",{onClick:e&&this.onLineNumberClickProxy(a),className:o(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:c}),children:(0,r.jsx)("pre",{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,r.jsx)("td",{onClick:l&&this.onLineNumberClickProxy(u),className:o(this.styles.gutter,{[this.styles.emptyGutter]:!l,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:c}),children:(0,r.jsx)("pre",{className:this.styles.lineNumber,children:l})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:n,prefix:t,value:i,additionalLineNumber:l,additionalPrefix:s,styles:this.styles}):null,(0,r.jsx)("td",{className:o(this.styles.marker,{[this.styles.emptyLine]:!h,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:c}),children:(0,r.jsxs)("pre",{children:[f&&"+",d&&"-"]})}),(0,r.jsx)("td",{ref:t!==Pi.LEFT||this.state.cumulativeOffsets?void 0:this.contentColumnRef,className:o(this.styles.content,{[this.styles.emptyLine]:!h,[this.styles.diffAdded]:f,[this.styles.diffRemoved]:d,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:c,left:t===Pi.LEFT,right:t===Pi.RIGHT}),onMouseDown:()=>{const e=document.getElementsByClassName(t===Pi.LEFT?"right":"left");for(let n=0;n<e.length;n++){e.item(n).classList.add(this.styles.noSelect)}},title:f&&!g?"Added line":d&&!g?"Removed line":void 0,children:(0,r.jsx)(m,{className:this.styles.contentText,children:h})})]})};renderSplitView=({left:e,right:n},t)=>{const{leftValue:i,rightValue:o}=this.getWordDiffValues(e,n,t);return(0,r.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,Pi.LEFT,i),this.renderLine(n.lineNumber,n.type,Pi.RIGHT,o)]},t)};renderInlineView=({left:e,right:n},t)=>{const{leftValue:i,rightValue:o}=this.getWordDiffValues(e,n,t);let s;return e.type===at.REMOVED&&n.type===at.ADDED?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)("tr",{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,Pi.LEFT,i,null)}),(0,r.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,n.type,Pi.RIGHT,o,n.lineNumber,Pi.RIGHT)})]},t):(e.type===at.REMOVED&&(s=this.renderLine(e.lineNumber,e.type,Pi.LEFT,i,null)),e.type===at.DEFAULT&&(s=this.renderLine(e.lineNumber,e.type,Pi.LEFT,i,n.lineNumber,Pi.RIGHT)),n.type===at.ADDED&&(s=this.renderLine(null,n.type,Pi.RIGHT,o,n.lineNumber)),(0,r.jsx)("tr",{className:this.styles.line,children:s},t))};onBlockClickProxy=e=>()=>this.onBlockExpand(e);renderSkippedLineIndicator=(e,n,t,i)=>{const{hideLineNumbers:s,splitView:a}=this.props,u=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,t,i):(0,r.jsxs)("span",{className:this.styles.codeFoldContent,children:["@@ -",t-e,",",e," +",i-e,",",e," @@"]}),c=(0,r.jsx)("td",{className:this.styles.codeFoldContentContainer,children:(0,r.jsx)("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(n),tabIndex:0,children:u})}),f=!a&&!s,d=(0,r.jsx)("td",{className:this.styles.codeFoldGutter,children:(0,r.jsx)(wt,{})});return(0,r.jsxs)("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(n),role:"button",tabIndex:0,children:[!s&&d,this.props.renderGutter?(0,r.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,r.jsx)("td",{className:o({[this.styles.codeFoldGutter]:f})}),f?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)("td",{}),c]}):(0,r.jsxs)(l.Fragment,{children:[c,this.props.renderGutter?(0,r.jsx)("td",{}):null,(0,r.jsx)("td",{}),(0,r.jsx)("td",{}),s?null:(0,r.jsx)("td",{})]})]},`${t}-${i}`)};getMemoisedKey=()=>{const{oldValue:e,newValue:n,disableWordDiff:t,compareMethod:i,linesOffset:r,alwaysShowLines:o,extraLinesSurroundingDiff:l}=this.props;return JSON.stringify({oldValue:e,newValue:n,disableWordDiff:t,compareMethod:i,linesOffset:r,alwaysShowLines:o,extraLinesSurroundingDiff:l})};memoisedCompute=async()=>{const{oldValue:e,newValue:n,disableWordDiff:t,compareMethod:i,linesOffset:r}=this.props,o=this.getMemoisedKey();if(this.state.computedDiffResult[o])return void this.setState((e=>({...e,isLoading:!1})));const l=this.props.infiniteLoading?.containerHeight,s=l?"number"==typeof l?l:parseInt(l,10)||0:0,a=!t&&!!this.props.infiniteLoading&&s>0&&s<2e3,{lineInformation:u,diffLines:c}=await bt(e,n,t,i,r,this.props.alwaysShowLines,a),f=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:d,blocks:p}=function(e,n,t){let i,r=0;const o={},l=[];return e.forEach(((e,s)=>{const a=n.some((e=>e>=s-t&&e<=s+t));a||void 0!==i?!a&&i?(i.endLine=s,i.lines++,o[s]=i.index):i=void 0:(i={index:r,startLine:s,endLine:s,lines:1},l.push(i),o[s]=i.index,r++)})),{lineBlocks:o,blocks:l}}(u,c,f);this.state.computedDiffResult[o]={lineInformation:u,lineBlocks:d,blocks:p},this.setState((e=>({...e,computedDiffResult:this.state.computedDiffResult,isLoading:!1})),(()=>{this.props.infiniteLoading&&requestAnimationFrame((()=>this.recalculateOffsets()))}))};static ESTIMATED_ROW_HEIGHT=19;onScroll=()=>{const e=this.state.scrollableContainerRef.current;if(!e||!this.props.infiniteLoading)return;const n=this.getStickyHeaderHeight(),t=Math.max(0,e.scrollTop-n),{cumulativeOffsets:i}=this.state,r=i?this.findLineAtOffset(t,i):Math.floor(t/Bi.ESTIMATED_ROW_HEIGHT);r!==this.state.visibleStartRow&&this.setState({visibleStartRow:r})};renderDiff=()=>{const{splitView:e,infiniteLoading:n,showDiffOnly:t}=this.props,{computedDiffResult:i,expandedBlocks:o,visibleStartRow:s,scrollableContainerRef:a,cumulativeOffsets:u}=this.state,c=this.getMemoisedKey(),{lineInformation:f=[],lineBlocks:d=[],blocks:p=[]}=i[c]??{};let h=0,g=1/0;if(n&&a.current){const e=a.current,n=this.getStickyHeaderHeight(),t=Math.max(0,e.scrollTop-n);if(u){const n=u[u.length-1]||0,i=u.length-2;h=Math.max(0,this.findLineAtOffset(t,u)-5),g=this.findLineAtOffset(t+e.clientHeight,u)+5;const r=Math.ceil(e.clientHeight/Bi.ESTIMATED_ROW_HEIGHT);g=Math.max(g,h+r+5),t+e.clientHeight>=n-5*Bi.ESTIMATED_ROW_HEIGHT&&(g=i+5)}else{const n=Math.ceil(e.clientHeight/Bi.ESTIMATED_ROW_HEIGHT);h=Math.max(0,s-5),g=s+n+5}}const m=new Map,v=new Set;let y=0;for(let e=0;e<f.length;e++){const n=d[e];if(t&&void 0!==n)if(o.includes(n))m.set(e,y),y++;else{const t=p[n].endLine===e;!v.has(n)&&t&&(v.add(n),m.set(e,y),y++)}else m.set(e,y),y++}const b=y,w=[];let x=0,k=!1,A=-1;v.clear();for(let n=0;n<f.length;n++){const i=f[n],s=m.get(n);if(void 0!==s&&!(s<h)){if(s>g)break;if(k||(x=u?u[s]||0:s*Bi.ESTIMATED_ROW_HEIGHT,k=!0),A=s,t){const e=d[n];if(void 0!==e){const t=p[e].endLine===n;if(!o.includes(e)&&t){w.push((0,r.jsx)(l.Fragment,{children:this.renderSkippedLineIndicator(p[e].lines,e,i.left.lineNumber,i.right.lineNumber)},n));continue}if(!o.includes(e))continue}}w.push(e?this.renderSplitView(i,n):this.renderInlineView(i,n))}}const C=u?u[u.length-1]||0:b*Bi.ESTIMATED_ROW_HEIGHT;return{diffNodes:w,blocks:p,lineInformation:f,totalRenderedRows:b,topPadding:x,bottomPadding:u&&A>=0?C-(u[A+1]||C):0,totalContentHeight:C,renderedCount:w.length,debug:{visibleRowStart:h,visibleRowEnd:g,totalRows:b,offsetsLength:u?.length??0,renderedCount:w.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()}}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()}render=()=>{const{oldValue:e,newValue:n,useDarkTheme:t,leftTitle:i,rightTitle:l,splitView:s,compareMethod:a,hideLineNumbers:u,nonce:c}=this.props;if("string"==typeof a&&a!==ut.JSON&&("string"!=typeof e||"string"!=typeof n))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,t,c);const f=this.renderDiff();let d=3,p=4;u&&(d-=1,p-=1),this.props.renderGutter&&(d+=1,p+=1);let h=0,g=0;for(const e of f.lineInformation)e.left.type===at.ADDED&&g++,e.right.type===at.ADDED&&g++,e.left.type===at.REMOVED&&h++,e.right.type===at.REMOVED&&h++;const m=h+g,v=Math.round(g/m*100),y=[];for(let e=0;e<5;e++)v>20*e?y.push((0,r.jsx)("span",{className:o(this.styles.block,this.styles.blockAddition)},e)):y.push((0,r.jsx)("span",{className:o(this.styles.block,this.styles.blockDeletion)},e));const b=this.state.expandedBlocks.length===f.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,A=(0,r.jsxs)("table",{className:o(this.styles.diffContainer,{[this.styles.splitView]:s,[this.styles.noWrap]:k}),onMouseUp:()=>{const e=document.getElementsByClassName("right");for(let n=0;n<e.length;n++){e.item(n).classList.remove(this.styles.noSelect)}const n=document.getElementsByClassName("left");for(let e=0;e<n.length;e++){n.item(e).classList.remove(this.styles.noSelect)}},children:[(0,r.jsxs)("colgroup",{children:[!this.props.hideLineNumbers&&(0,r.jsx)("col",{width:"50px"}),!s&&!this.props.hideLineNumbers&&(0,r.jsx)("col",{width:"50px"}),this.props.renderGutter&&(0,r.jsx)("col",{width:"50px"}),(0,r.jsx)("col",{width:"28px"}),(0,r.jsx)("col",{width:"auto"}),s&&(0,r.jsxs)(r.Fragment,{children:[!this.props.hideLineNumbers&&(0,r.jsx)("col",{width:"50px"}),this.props.renderGutter&&(0,r.jsx)("col",{width:"50px"}),(0,r.jsx)("col",{width:"28px"}),(0,r.jsx)("col",{width:"auto"})]})]}),(0,r.jsx)("tbody",{children:f.diffNodes})]});return(0,r.jsxs)("div",{style:{...x,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||i||l)&&(0,r.jsxs)("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&(0,r.jsxs)("div",{className:this.styles.summary,role:"banner",children:[(0,r.jsx)("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:b?[]:f.blocks.map((e=>e.index))},(()=>this.recalculateOffsets()))},children:b?(0,r.jsx)($i,{}):(0,r.jsx)(wt,{})})," ",m,(0,r.jsx)("div",{style:{display:"flex",gap:"1px"},children:y}),this.props.summary?(0,r.jsx)("span",{children:this.props.summary}):null]}),(i||l)&&(0,r.jsxs)("div",{className:this.styles.columnHeaders,children:[(0,r.jsx)("div",{className:this.styles.titleBlock,children:i?(0,r.jsx)("pre",{className:this.styles.contentText,children:i}):null}),s&&(0,r.jsx)("div",{className:this.styles.titleBlock,children:l?(0,r.jsx)("pre",{className:this.styles.contentText,children:l}):null})]})]}),this.state.isLoading&&w&&(0,r.jsx)(w,{}),this.props.infiniteLoading?(0,r.jsx)("div",{style:{height:f.totalContentHeight,position:"relative"},children:(0,r.jsx)("div",{style:{position:"absolute",top:f.topPadding,left:0,right:0},children:A})}):A,(0,r.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,r.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,r.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),(0,r.jsxs)("div",{children:["scrollTop: ",f.debug.scrollTop]}),(0,r.jsxs)("div",{children:["headerHeight: ",f.debug.headerHeight]}),(0,r.jsxs)("div",{children:["contentScrollTop: ",f.debug.contentScrollTop]}),(0,r.jsxs)("div",{children:["clientHeight: ",f.debug.clientHeight]}),(0,r.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,r.jsxs)("div",{children:["visibleRowStart: ",f.debug.visibleRowStart]}),(0,r.jsxs)("div",{children:["visibleRowEnd: ",f.debug.visibleRowEnd]})]}),(0,r.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,r.jsxs)("div",{children:["totalRows: ",f.debug.totalRows]}),(0,r.jsxs)("div",{children:["offsetsLength: ",f.debug.offsetsLength]}),(0,r.jsxs)("div",{children:["renderedCount: ",f.debug.renderedCount]})]}),(0,r.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,r.jsxs)("div",{children:["topPadding: ",f.topPadding.toFixed(0)]}),(0,r.jsxs)("div",{children:["bottomPadding: ",f.bottomPadding.toFixed(0)]}),(0,r.jsxs)("div",{children:["totalContentHeight: ",f.totalContentHeight.toFixed(0)]})]}),(0,r.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[(0,r.jsxs)("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),(0,r.jsxs)("div",{children:["columnWidth: ",this.state.contentColumnWidth?.toFixed(0)??"N/A","px"]}),(0,r.jsxs)("div",{children:["charWidth: ",this.state.charWidth?.toFixed(2)??"N/A","px"]}),(0,r.jsxs)("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&(0,r.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[(0,r.jsxs)("div",{children:["offsets[",f.debug.visibleRowEnd,"]: ",this.state.cumulativeOffsets[f.debug.visibleRowEnd]?.toFixed(0)??"N/A"]}),(0,r.jsxs)("div",{children:["offsets[",f.debug.totalRows-1,"]: ",this.state.cumulativeOffsets[f.debug.totalRows-1]?.toFixed(0)??"N/A"]}),(0,r.jsxs)("div",{children:["offsets[",f.debug.totalRows,"]: ",this.state.cumulativeOffsets[f.debug.totalRows]?.toFixed(0)??"N/A"]}),(0,r.jsxs)("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(f.debug.contentScrollTop+f.debug.clientHeight).toFixed(0)]}),(0,r.jsxs)("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",this.state.scrollableContainerRef.current?.scrollHeight??"N/A"]}),(0,r.jsxs)("div",{children:["maxScrollTop: ",(this.state.scrollableContainerRef.current?.scrollHeight??0)-f.debug.clientHeight]})]})]})]})}}const Vi=Bi}}]);
|