PageSourceSearch

https://freemarkdown.com/_next/static/chunks/346-fd423dda8baf1a99.js

js freemarkdown.com collected 2026-10-03 21:19:18 UTC 276,552 bytes, 27 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[346],{48:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});let r=i(n(9192));function a(t,e){let n=t.src[e-1],i=t.src[e],r=t.src[e+1];if("$"!==i)return{can_open:!1,can_close:!1};let a=!1,l=!1;return"$"!==n&&"\\"!==n&&(void 0===n||o(n)||!s(n))&&(a=!0),"$"!==r&&(void 0==r||o(r)||!s(r))&&(l=!0),{can_open:a,can_close:l}}function o(t){return/^\s$/u.test(t)}function s(t){return/^[\w\d]$/u.test(t)}function l(t,e){let n=t.src[e-1],i=t.src[e],r=t.src[e+1],a=t.src[e+2];return"$"===i&&"$"!==n&&"\\"!==n&&"$"===r&&"$"!==a?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function c(t,e){let n;if("$"!==t.src[t.pos])return!1;let i=t.tokens.at(-1);if(i?.type==="html_inline"&&/^<\w+.+[^/]>$/.test(i.content))return!1;let r=a(t,t.pos);if(!r.can_open)return e||(t.pending+="$"),t.pos+=1,!0;let o=t.pos+1,s=o;for(;-1!==(s=t.src.indexOf("$",s));){for(n=s-1;"\\"===t.src[n];)n-=1;if((s-n)%2==1)break;s+=1}if(-1===s)return e||(t.pending+="$"),t.pos=o,!0;if(s-o==0)return e||(t.pending+="$$"),t.pos=o+1,!0;if(!(r=a(t,s)).can_close)return e||(t.pending+="$"),t.pos=o,!0;if(!e){let e=t.push("math_inline","math",0);e.markup="$",e.content=t.src.slice(o,s)}return t.pos=s+1,!0}function p(t,e){var n,i,r,a;if("$$"!==t.src.slice(t.pos,t.pos+2))return!1;if(!l(t,t.pos).can_open)return e||(t.pending+="$$"),t.pos+=2,!0;for(i=n=t.pos+2;-1!==(i=t.src.indexOf("$$",i));){for(a=i-1;"\\"===t.src[a];)a-=1;if((i-a)%2==1)break;i+=2}return -1===i?(e||(t.pending+="$$"),t.pos=n):i-n==0?(e||(t.pending+="$$$$"),t.pos=n+2):l(t,i).can_close?(e||((r=t.push("math_block","math",0)).block=!0,r.markup="$$",r.content=t.src.slice(n,i)),t.pos=i+2):(e||(t.pending+="$$"),t.pos=n),!0}function u(t,e){let n;let i=t.src.slice(t.pos);if(!/^\n\\begin/.test(i))return!1;if(t.pos+=1,e)return!0;let r=i.split(/\n/g).slice(1),a=[];t:for(var o=0;o<r.length;++o)for(let t of r[o].matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if("\\begin"===t[1])a.push(t[2].trim());else if("\\end"===t[1]&&(a.pop(),!a.length)){n=o;break t}if(void 0===n)return!1;let s=r.slice(0,n+1).reduce((t,e)=>t+e.length,0)+n+1,l=t.push("math_inline_bare_block","math",0);return l.block=!0,l.markup="$$",l.content=i.slice(1,s),t.pos=t.pos+s,!0}function f(t,e,n,i){let r=t.tokens;for(let t=r.length-1;t>=0;t--){let a=r[t],o=[];if("html_block"===a.type){for(let t of a.content.matchAll(i)){if
1(!t.groups)continue;let i=t.groups.html_before_math,r=t.groups.math,s=t.groups.html_after_math;i&&o.push({...a,type:"html_block",map:null,content:i}),r&&o.push({...a,type:e,map:null,content:r,markup:n,block:!0,tag:"math"}),s&&o.push({...a,type:"html_block",map:null,content:s})}o.length>0&&r.splice(t,1,...o)}}return!0}function h(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}e.default=function(t,e){let n=e?.katex??r.default,i=e?.enableBareBlocks,a=e?.enableMathBlockInHtml,o=e?.enableMathInlineInHtml,s=e?.enableFencedBlocks;t.inline.ruler.after("escape","math_inline",c),t.inline.ruler.after("escape","math_inline_block",p),i&&t.inline.ruler.before("text","math_inline_bare_block",u),t.block.ruler.after("blockquote","math_block",(t,e,n,r)=>!!(i&&function(t,e,n,i){let r;let a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(!t.src.slice(a,o).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(e>0){let n=t.bMarks[e-1]+t.tShift[e-1],i=t.eMarks[e-1],r=t.src.slice(n,i);if(!/^\s*$/.test(r))return!1}if(i)return!0;let s=[],l=e,c=!1;t:for(;!c&&!(l>=n);l++){let e=t.bMarks[l]+t.tShift[l],n=t.eMarks[l];if(e<n&&t.tShift[l]<t.blkIndent)break;for(let i of t.src.slice(e,n).matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if("\\begin"===i[1])s.push(i[2].trim());else if("\\end"===i[1]&&(s.pop(),!s.length)){r=t.src.slice(e,n),c=!0;break t}}t.line=l+1;let p=t.push("math_block","math",0);return p.block=!0,p.content=(t.getLines(e,l,t.tShift[e],!0)+(r??"")).trim(),p.map=[e,t.line],p.markup="$$",!0}(t,e,n,r))||function(t,e,n,i){var r,a,o,s,l=!1,c=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(c+2>p||"$$"!==t.src.slice(c,c+2))return!1;c+=2;let u=t.src.slice(c,p);if(i)return!0;for("$$"===u.trim().slice(-2)&&(u=u.trim().slice(0,-2),l=!0),a=e;!l&&!(++a>=n)&&(!((c=t.bMarks[a]+t.tShift[a])<(p=t.eMarks[a]))||!(t.tShift[a]<t.blkIndent));)"$$"===t.src.slice(c,p).trim().slice(-2)?(o=t.src.slice(0,p).lastIndexOf("$$"),r=t.src.slice(c,o),l=!0):t.src.slice(c,p).trim().includes("$$")&&(o=t.src.slice(0,p).trim().indexOf("$$"),r=t.src.slice(c,o),l=!0);return t.line=a+1,(s=t.push("math_block","math",0)).block=!0,s.content=(u&&u.trim()?u+"\n":"")+t.getLines(e+1,a,t.tShift[e],!0)+(r&&r.trim()?r:""),s.map=[e,t.line],s.markup="$$",!0}(t,e,n,r),{alt:["paragraph","reference","blockquote","list"]});let l=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,d=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;a&&t.core.ruler.push("math_block_in_html_block",t=>f(t,"math_block","$$",l)),o&&t.core.ruler.push("math_inline_in_html_block",t=>f(t,"math_inline","$",d));let m=t=>{let i=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(t);try{return n.renderToString(t,{...e,displayMode:i})}catch(n){return e?.throwOnError&&console.log(n),`<span class="katex-error" title="${h(t)}">${h(n+"")}</span>`}},g=t=>{try{return`<p class="katex-block">${n.renderToString(t,{...e,displayMode:!0})}</p>`}catch(n){return e?.throwOnError&&console.log(n),`<p class="katex-block katex-error" title="${h(t)}">${h(n+"")}</p>`}},v=(t,e)=>g(t[e].content)+"\n";if(t.renderer.rules.math_inline=(t,e)=>{let n=t[e].content;return m(n.length>2&&"`"===n[0]&&"`"===n[n.length-1]?n.slice(1,-1):n)},t.renderer.rules.math_inline_block=v,t.renderer.rules.math_inline_bare_block=v,t.renderer.rules.math_block=v,s){let e=t.renderer.rules.fence;t.renderer.rules.fence=function(t,n,i,r,a){let o=t[n];return"math"===o.info.trim().toLowerCase()&&s?g(o.content)+"\n":e?.call(this,t,n,i,r,a)||""}}}},8135:function(t,e){"use strict";e.Z=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var i=t.name||"",r=(t.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some(function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?i.toLowerCase().endsWith(e):e.endsWith("/*")?a===e.replace(/\/.*$/,""):r===e})}return!0}},12:function(t,e,n){var i,r,a;r=[],void 0!==(a="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){s(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");
1e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,n,o){var s=a.URL||a.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?e(t,n,o):r(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t){var o;navigator.msSaveOrOpenBlob((void 0===(o=a)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t),n)}else if(i(t))e(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout(function(){r(s)})}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var s="application/octet-stream"===t.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||o)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var t=p.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},p.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,f=u.createObjectURL(t);r?r.location=f:location.href=f,r=null,setTimeout(function(){u.revokeObjectURL(f)},4e4)}});a.saveAs=s.saveAs=s,t.exports=s})?i.apply(e,r):i)&&(t.exports=a)},6434:function(t){!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return(n+i)*3/4-i},e.toByteArray=function(t){var e,n,a=l(t),o=a[0],s=a[1],c=new r((o+s)*3/4-s),p=0,u=s>0?o-4:o;for(n=0;n<u;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[p++]=e>>16&255,c[p++]=e>>8&255,c[p++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[p++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[p++]=e>>8&255,c[p++]=255&e),c},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,a=[],o=0,s=i-r;o<s;o+=16383)a.push(function(t,e,i){for(var r,a=[],o=e;o<i;o+=3)a.push(n[(r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]))>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}(t,o,o+16383>s?s:o+16383));return 1===r?a.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&a.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),a.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],i[a.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},72:function(t,e,n){"use strict";var i=n(675),r=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return p(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);var n=0|h(t,e),i=o(n),r=i.write(t,e);return r!==n&&(i=i.slice(0,r)),i}(t,e);if(ArrayBuffer.isView(t))return u(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);
vendor: 17,794 bytes, line 1
1if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return function(t,e,n){var i;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),s.prototype),i}(t,e,n);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return s.from(i,e,n);var r=function(t){if(s.isBuffer(t)){var e,n=0|f(t.length),i=o(n);return 0===i.length||t.copy(i,0,0,n),i}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?o(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function p(t){return c(t),o(t<0?0:0|f(t))}function u(t){for(var e=t.length<0?0:0|f(t.length),n=o(e),i=0;i<e;i+=1)n[i]=255&t[i];return n}function f(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function h(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(t).length;default:if(r)return i?-1:S(t).length;e=(""+e).toLowerCase(),r=!0}}function d(t,e,n){var r,a,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=j[t[a]];return r}(this,e,n);case"utf8":case"utf-8":return y(this,e,n);case"ascii":return function(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}(this,e,n);case"latin1":case"binary":return function(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}(this,e,n);case"base64":return r=e,a=n,0===r&&a===this.length?i.fromByteArray(this):i.fromByteArray(this.slice(r,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}(this,e,n);default:if(o)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function m(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,r){var a;if(0===t.length)return -1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return -1;n=t.length-1}else if(n<0){if(!r)return -1;n=0}if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,r);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,i,r);throw TypeError("val must be string, number or Buffer")}function v(t,e,n,i,r){var a,o=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return -1;o=2,s/=2,l/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var p=-1;for(a=n;a<s;a++)if(c(t,a)===c(e,-1===p?0:a-p)){if(-1===p&&(p=a),a-p+1===l)return p*o}else -1!==p&&(a-=a-p),p=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var u=!0,f=0;f<l;f++)if(c(t,a+f)!==c(e,f)){u=!1;break}if(u)return a}return -1}function y(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var a,o,s,l,c=t[r],p=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u<=n)switch(u){case 1:c<128&&(p=c);break;case 2:(192&(a=t[r+1]))==128&&(l=(31&c)<<6|63&a)>127&&(p=l);break;case 3:a=t[r+1],o=t[r+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(p=l);break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(p=l)}null===p?(p=65533,u=1):p>65535&&(p-=65536,i.push(p>>>10&1023|55296),p=56320|1023&p),i.push(p),r+=u}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return n}(i)}function x(t,e,n){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>n)throw RangeError("Trying to access beyond buffer length")}function b(t,e,n,i,r,a){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw RangeError('"value" argument is out of bounds');if(n+i>t.length)throw RangeError("Index out of range")}function w(t,e,n,i,r,a){if(n+i>t.length||n<0)throw RangeError("Index out of range")}function k(t,e,n,i,a){return e=+e,n>>>=0,a||w(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function _(t,e,n,i,a){return e=+e,n>>>=0,a||w(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,n){return l(t,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,n){return(c(t),t<=0)?o(t):void 0!==e?"string"==typeof n?o(t).fill(e,n):o(t).fill(e):o(t)},s.allocUnsafe=function(t){return p(t)},s.allocUnsafeSlow=function(t){return p(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(n=0,e=0;n<t.length;++n)e+=t[n].length;var n,i=s.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(T(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?y(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(t,e,n,i,r){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,o=n-e,l=Math.min(a,o),c=this.slice(i,r),p=t.slice(e,n),u=0;u<l;++u)if(c[u]!==p[u]){a=c[u],o=p[u];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(t,e,n){return -1!==this.indexOf(t,e,n)},s.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},s.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,a,o,s,l,c,p,u,f,h,d,m,g=this.length-e;if((void 0===n||n>g)&&(n=g),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var v=!1;;)switch(i){case"hex":return function(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=e.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(s!=s)break;t[n+o]=s}return o}(this,t,e,n);case"utf8":case"utf-8":return l=e,c=n,$(S(t,this.length-l),this,l,c);case"ascii":return p=e,u=n,$(A(t),this,p,u);case"latin1":case"binary":return r=this,a=t,o=e,s=n,$(A(a),r,o,s);case"base64":return f=e,h=n,$(O(t),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=e,m=n,$(function(t,e){for(var n,i,r=[],a=0;a<t.length&&!((e-=2)<0);++a)i=(n=t.charCodeAt(a))>>8,r.push(n%256),r.push(i);return r}(t,this.length-d),this,d,m);default:if(v)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),v=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i=this.subarray(t,e);return Object.setPrototypeOf(i,s.prototype),i},s.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i},s.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},s.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||x(t,e,this.length);for(var i=e,r=1,a=this[t+--i];i>0&&(r*=256);)a+=this[t+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return(t>>>=0,e||x(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||x(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;b(this,t,e,n,r,0)}var a=1,o=0;for(this[e]=255&t;++o<n&&(a*=256);)this[e+o]=t/a&255;return e+n},s.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;b(this,t,e,n,r,0)}var a=n-1,o=1;for(this[e+a]=255&t;--a>=0&&(o*=256);)this[e+a]=t/o&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);b(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;for(this[e]=255&t;++a<n&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},s.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);b(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return _(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return _(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,i){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r=i-n;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,i);else if(this===t&&n<e&&e<i)for(var a=r-1;a>=0;--a)t[a+e]=this[a+n];else Uint8Array.prototype.set.call(t,this.subarray(n,i),e);return r},s.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===t.length){var r,a=t.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(t=a)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{var o=s.isBuffer(t)?t:s.from(t,i),l=o.length;
1if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<n-e;++r)this[r+e]=o[r%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function S(t,e){e=e||1/0;for(var n,i=t.length,r=null,a=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319||o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function A(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function O(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length)&&!(r>=t.length);++r)e[r+n]=t[r];return r}function T(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var j=function(){for(var t="0123456789abcdef",e=Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)e[i+r]=t[n]+t[r];return e}()},783:function(t,e){e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,c=l>>1,p=-7,u=n?r-1:0,f=n?-1:1,h=t[e+u];for(u+=f,a=h&(1<<-p)-1,h>>=-p,p+=s;p>0;a=256*a+t[e+u],u+=f,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=i;p>0;o=256*o+t[e+u],u+=f,p-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=c}return(h?-1:1)*o*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var o,s,l,c=8*a-r-1,p=(1<<c)-1,u=p>>1,f=23===r?5960464477539062e-23:0,h=i?0:a-1,d=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+u>=1?e+=f/l:e+=f*Math.pow(2,1-u),e*l>=2&&(o++,l/=2),o+u>=p?(s=0,o=p):o+u>=1?(s=(e*l-1)*Math.pow(2,r),o+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,r),o=0));r>=8;t[n+h]=255&s,h+=d,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;t[n+h]=255&o,h+=d,o/=256,c-=8);t[n+h-d]|=128*m}}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,i),o=!1}finally{o&&delete n[t]}return a.exports}i.ab="//";var r=i(72);t.exports=r}()},8049:function(t,e,n){"use strict";var i=n(4397);function r(){}function a(){}a.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,a,o){if(o!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},718:function(t,e,n){t.exports=n(8049)()},4397:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3835:function(t,e,n){"use strict";n.d(e,{uI:function(){return tt}});
1var i=n(2265),r=n(718),a=n.n(r);function o(t,e,n,i){return new(n||(n=Promise))(function(r,a){function o(t){try{l(i.next(t))}catch(t){a(t)}}function s(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,s)}l((i=i.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;let s
vendor: 41,168 bytes, line 1
1=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function 
1l(t,e,n){let i=function(t){let{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){let n=e.split(".").pop().toLowerCase(),i=s.get(n);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}(t),{webkitRelativePath:r}=t,a="string"==typeof e?e:"string"==typeof r&&r.length>0?r:`./${t.name}`;return"string"!=typeof i.path&&c(i,"path",a),void 0!==n&&Object.defineProperty(i,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),c(i,"relativePath",a),i}function c(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}let p=[".DS_Store","Thumbs.db"];function u(t){return"object"==typeof t&&null!==t}function f(t){return t.filter(t=>-1===p.indexOf(t.name))}function h(t){if(null===t)return[];let e=[];for(let n=0;n<t.length;n++){let i=t[n];e.push(i)}return e}function d(t){if("function"!=typeof t.webkitGetAsEntry)return m(t);let e=t.webkitGetAsEntry();return e&&e.isDirectory?v(e):m(t,e)}function m(t,e){return o(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof t.getAsFileSystemHandle){let e=yield t.getAsFileSystemHandle();if(null===e)throw Error(`${t} is not a File`);if(void 0!==e){let t=yield e.getFile();return t.handle=e,l(t)}}let i=t.getAsFile();if(!i)throw Error(`${t} is not a File`);return l(i,null!==(n=null==e?void 0:e.fullPath)&&void 0!==n?n:void 0)})}function g(t){return o(this,void 0,void 0,function*(){return t.isDirectory?v(t):function(t){return o(this,void 0,void 0,function*(){return new Promise((e,n)=>{t.file(n=>{e(l(n,t.fullPath))},t=>{n(t)})})})}(t)})}function v(t){let e=t.createReader();return new Promise((t,n)=>{let i=[];!function r(){e.readEntries(e=>o(this,void 0,void 0,function*(){if(e.length){let t=Promise.all(e.map(g));i.push(t),r()}else try{let e=yield Promise.all(i);t(e)}catch(t){n(t)}}),t=>{n(t)})}()})}var y=n(8135);function x(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||E(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,i,r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(t,e)||E(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(t,e)}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var A="function"==typeof y.Z?y.Z:y.Z.default,O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split(","),n=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(n)}},$=function(t){return{code:"file-too-large",message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},T=function(t){return{code:"file-too-small",message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},j={code:"too-many-files",message:"Too many files"};function N(t,e){var n="application/x-moz-file"===t.type||A(t,e);return[n,n?null:O(e)]}function I(t,e,n){if(C(t.size)){if(C(e)&&C(n)){if(t.size>n)return[!1,$(n)];if(t.size<e)return[!1,T(e)]}else if(C(e)&&t.size<e)return[!1,T(e)];else if(C(n)&&t.size>n)return[!1,$(n)]}return[!0,null]}function C(t){return null!=t}function M(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function L(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(t){return"Files"===t||"application/x-moz-file"===t}):!!t.target&&!!t.target.files}function z(t){t.preventDefault()}function B(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e.some(function(e){return!M(t)&&e&&e.apply(void 0,[t].concat(i)),M(t)})}}function D(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||"application/*"===t||/\w+\/[-+.\w]+/g.test(t)}function P(t){return/^.*\.[\w]+$/.test(t)}var R=["children"],q=["open"],K=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],F=["refKey","onChange","onClick"];function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,i,r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(t,e)||X(t,e)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){if(t){if("string"==typeof t)return V(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(t,e)}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(e){W(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function W(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var G=(0,i.forwardRef)(function(t,e){var n=t.children,r=tt(J(t,R)),a=r.open,o=J(r,q);return(0,i.useImperativeHandle)(e,function(){return{open:a}},[a]),i.createElement(i.Fragment,null,n(H(H({},o),{},{open:a})))});G.displayName="Dropzone";var Q={disabled:!1,getFilesFromEvent:function(t){return o(this,void 0,void 0,function*(){return u(t)&&u(t.dataTransfer)?function(t,e){return o(this,void 0,void 0,function*(){if(t.items){let n=h(t.items).filter(t=>"file"===t.kind);return"drop"!==e?n:f(function t(e){return e.reduce((e,n)=>[...e,...Array.isArray(n)?t(n):[n]],[])}((yield Promise.all(n.map(d)))))}return f(h(t.files).map(t=>l(t)))})}(t.dataTransfer,t.type):u(t)&&u(t.target)?h(t.target.files).map(t=>l(t)):Array.isArray(t)&&t.every(t=>"getFile"in t&&"function"==typeof t.getFile)?function(t){return o(this,void 0,void 0,function*(){return(yield Promise.all(t.map(t=>t.getFile()))).map(t=>l(t))})}(t):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};G.defaultProps=Q,G.propTypes={children:a().func,accept:a().objectOf(a().arrayOf(a().string)),multiple:a().bool,preventDropOnDocument:a().bool,noClick:a().bool,noKeyboard:a().bool,noDrag:a().bool,noDragEventsBubbling:a().bool,minSize:a().number,maxSize:a().number,maxFiles:a().number,disabled:a().bool,getFilesFromEvent:a().func,onFileDialogCancel:a().func,onFileDialogOpen:a().func,useFsAccessApi:a().bool,autoFocus:a().bool,onDragEnter:a().func,onDragLeave:a().func,onDragOver:a().func,onDrop:a().func,onDropAccepted:a().func,onDropRejected:a().func,onError:a().func,validator:a().func};var Z={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=H(H({},Q),t),n=e.accept,r=e.disabled,a=e.getFilesFromEvent,o=e.maxSize,s=e.minSize,l=e.multiple,c=e.maxFiles,p=e.onDragEnter,u=e.onDragLeave,f=e.onDragOver,h=e.onDrop,d=e.onDropAccepted,m=e.onDropRejected,g=e.onFileDialogCancel,v=e.onFileDialogOpen,y=e.useFsAccessApi,b=e.autoFocus,E=e.preventDropOnDocument,S=e.noClick,A=e.noKeyboard,O=e.noDrag,$=e.noDragEventsBubbling,T=e.onError,R=e.validator,q=(0,i.useMemo)(function(){return function(t){if(C(t))return Object.entries(t).reduce(function(t,e){var n=_(e,2),i=n[0],r=n[1];return[].concat(x(t),[i],x(r))},[]).filter(function(t){return D(t)||P(t)}).join(",")}(n)},[n]),Y=(0,i.useMemo)(function(){return C(n)?[{description:"Files",accept:Object.entries(n).filter(function(t){var e=_(t,2),n=e[0],i=e[1],r=!0;return D(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),r=!1),Array.isArray(i)&&i.every(P)||(console.warn('Skipped "'.concat(n,'" because an invali
1d file extension was provided.')),r=!1),r}).reduce(function(t,e){var n=_(e,2),i=n[0],r=n[1];return w(w({},t),{},k({},i,r))},{})}]:n},[n]),G=(0,i.useMemo)(function(){return"function"==typeof v?v:tn},[v]),tt=(0,i.useMemo)(function(){return"function"==typeof g?g:tn},[g]),ti=(0,i.useRef)(null),tr=(0,i.useRef)(null),ta=U((0,i.useReducer)(te,Z),2),to=ta[0],ts=ta[1],tl=to.isFocused,tc=to.isFileDialogActive,tp=(0,i.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),tu=function(){!tp.current&&tc&&setTimeout(function(){tr.current&&!tr.current.files.length&&(ts({type:"closeDialog"}),tt())},300)};(0,i.useEffect)(function(){return window.addEventListener("focus",tu,!1),function(){window.removeEventListener("focus",tu,!1)}},[tr,tc,tt,tp]);var tf=(0,i.useRef)([]),th=function(t){ti.current&&ti.current.contains(t.target)||(t.preventDefault(),tf.current=[])};(0,i.useEffect)(function(){return E&&(document.addEventListener("dragover",z,!1),document.addEventListener("drop",th,!1)),function(){E&&(document.removeEventListener("dragover",z),document.removeEventListener("drop",th))}},[ti,E]),(0,i.useEffect)(function(){return!r&&b&&ti.current&&ti.current.focus(),function(){}},[ti,b,r]);var td=(0,i.useCallback)(function(t){T?T(t):console.error(t)},[T]),tm=(0,i.useCallback)(function(t){var e;t.preventDefault(),t.persist(),t$(t),tf.current=[].concat(function(t){if(Array.isArray(t))return V(t)}(e=tf.current)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||X(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t.target]),L(t)&&Promise.resolve(a(t)).then(function(e){if(!M(t)||$){var n,i,r,a,u,f,h,d,m=e.length,g=m>0&&(i=(n={files:e,accept:q,minSize:s,maxSize:o,multiple:l,maxFiles:c,validator:R}).files,r=n.accept,a=n.minSize,u=n.maxSize,f=n.multiple,h=n.maxFiles,d=n.validator,(!!f||!(i.length>1))&&(!f||!(h>=1)||!(i.length>
1h))&&i.every(function(t){var e=_(N(t,r),1)[0],n=_(I(t,a,u),1)[0],i=d?d(t):null;return e&&n&&!i}));ts({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),p&&p(t)}}).catch(function(t){return td(t)})},[a,p,td,$,q,s,o,l,c,R]),tg=(0,i.useCallback)(function(t){t.preventDefault(),t.persist(),t$(t);var e=L(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&f&&f(t),!1},[f,$]),tv=(0,i.useCallback)(function(t){t.preventDefault(),t.persist(),t$(t);var e=tf.current.filter(function(t){return ti.current&&ti.current.contains(t)}),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),tf.current=e,!(e.length>0)&&(ts({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),L(t)&&u&&u(t))},[ti,u,$]),ty=(0,i.useCallback)(function(t,e){var n=[],i=[];t.forEach(function(t){var e=U(N(t,q),2),r=e[0],a=e[1],l=U(I(t,s,o),2),c=l[0],p=l[1],u=R?R(t):null;if(r&&c&&!u)n.push(t);else{var f=[a,p];u&&(f=f.concat(u)),i.push({file:t,errors:f.filter(function(t){return t})})}}),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach(function(t){i.push({file:t,errors:[j]})}),n.splice(0)),ts({acceptedFiles:n,fileRejections:i,isDragReject:i.length>0,type:"setFiles"}),h&&h(n,i,e),i.length>0&&m&&m(i,e),n.length>0&&d&&d(n,e)},[ts,l,q,s,o,c,h,d,m,R]),tx=(0,i.useCallback)(function(t){t.preventDefault(),t.persist(),t$(t),tf.current=[],L(t)&&Promise.resolve(a(t)).then(function(e){(!M(t)||$)&&ty(e,t)}).catch(function(t){return td(t)}),ts({type:"reset"})},[a,ty,td,$]),tb=(0,i.useCallback)(function(){if(tp.current){ts({type:"openDialog"}),G(),window.showOpenFilePicker({multiple:l,types:Y}).then(function(t){return a(t)}).then(function(t){ty(t,null),ts({type:"closeDialog"})}).catch(function(t){t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(tt(t),ts({type:"closeDialog"})):t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)?(tp.current=!1,tr.current?(tr.current.value=null,tr.current.click()):td(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):td(t)});return}tr.current&&(ts({type:"openDialog"}),G(),tr.current.value=null,tr.current.click())},[ts,G,tt,y,ty,td,Y,l]),tw=(0,i.useCallback)(function(t){ti.current&&ti.current.isEqualNode(t.target)&&(" "===t.key||"Enter"===t.key||32===t.keyCode||13===t.keyCode)&&(t.preventDefault(),tb())},[ti,tb]),tk=(0,i.useCallback)(function(){ts({type:"focus"})},[]),t_=(0,i.useCallback)(function(){ts({type:"blur"})},[]),tE=(0,i.useCallback)(function(){S||(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/")}()?setTimeout(tb,0):tb())},[S,tb]),tS=function(t){return r?null:t},tA=function(t){return A?null:tS(t)},tO=function(t){return O?null:tS(t)},t$=function(t){$&&t.stopPropagation()},tT=(0,i.useMemo)(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=t.role,i=t.onKeyDown,a=t.onFocus,o=t.onBlur,s=t.onClick,l=t.onDragEnter,c=t.onDragOver,p=t.onDragLeave,u=t.onDrop,f=J(t,K);return H(H(W({onKeyDown:tA(B(i,tw)),onFocus:tA(B(a,tk)),onBlur:tA(B(o,t_)),onClick:tS(B(s,tE)),onDragEnter:tO(B(l,tm)),onDragOver:tO(B(c,tg)),onDragLeave:tO(B(p,tv)),onDrop:tO(B(u,tx)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===e?"ref":e,ti),r||A?{}:{tabIndex:0}),f)}},[ti,tw,tk,t_,tE,tm,tg,tv,tx,A,O,r]),tj=(0,i.useCallback)(function(t){t.stopPropagation()},[]),tN=(0,i.useMemo)(function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=t.onChange,i=t.onClick,r=J(t,F);return H(H({},W({accept:q,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:tS(B(n,tx)),onClick:tS(B(i,tj)),tabIndex:-1},void 0===e?"ref":e,tr)),r)}},[tr,n,l,tx,r]);return H(H({},to),{}
1,{isFocused:tl&&!r,getRootProps:tT,getInputProps:tN,rootRef:ti,inputRef:tr,open:tS(tb)})}function te(t,e){switch(e.type){case"focus":return H(H({},t),{},{isFocused:!0});case"blur":return H(H({},t),{},{isFocused:!1});case"openDialog":return H(H({},Z),{},{isFileDialogActive:!0});case"closeDialog":return H(H({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return H(H({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return H(H({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return H({},Z);default:return t}}function tn(){}},2770:function(){},8666:function(){},5496:function(t,e,n){"use strict";n.d(e,{$O:function(){return o},Ds:function(){return m},FU:function(){return I},ZT:function(){return u},cn:function(){return h},ew:function(){return s},fs:function(){return N},in:function(){return f},kl:function(){return d},my:function(){return C},zv:function(){return p}});let i="npm2url/dist/index.cjs",r={jsdelivr:t=>`https://cdn.jsdelivr.net/npm/${t}`,unpkg:t=>`https://unpkg.com/${t}`};async function a(t,e){let n=await fetch(t,{signal:e});if(!n.ok)throw n;await n.text()}class o{constructor(){this.providers={...r},this.provider="jsdelivr"}async getFastestProvider(t=5e3,e=i){let n=new AbortController,r=0;try{return await new Promise((i,o)=>{Promise.all(Object.entries(this.providers).map(async([t,r])=>{try{await a(r(e),n.signal),i(t)}catch{}})).then(()=>o(Error("All providers failed"))),r=setTimeout(o,t,Error("Timed out"))})}finally{n.abort(),clearTimeout(r)}}async findFastestProvider(t,e){return this.provider=await this.getFastestProvider(t,e),this.provider}setProvider(t,e){e?this.providers[t]=e:delete this.providers[t]}getFullUrl(t,e=this.provider){if(t.includes("://"))return t;let n=this.providers[e];if(!n)throw Error(`Provider ${e} not found`);return n(t)}}new o;class s{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){let e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(let e of this.listeners)e(...t)}}let l=Math.random().toString(36).slice(2,8),c=0;function p(){return c+=1,`mm-${l}-${c}`}function u(){}function f(t,e){let n=(t,i)=>e(t,()=>{var e;return null==(e=t.children)?void 0:e.map(e=>n(e,t))},i);return n(t)}function h(t,...e){let n=(t||"").split(" ").filter(Boolean);return e.forEach(t=>{t&&0>n.indexOf(t)&&n.push(t)}),n.join(" ")}function d(t,e){return(...n)=>e(t,...n)}function m(t,e){let n={timer:0};function i(){n.timer&&(window.clearTimeout(n.timer),n.timer=0)}function r(){i(),n.args&&(n.result=t(...n.args))}return function(...t){return i(),n.args=t,n.timer=window.setTimeout(r,e),n.result}}let g="http://www.w3.org/1999/xlink",v={show:g,actuate:g,href:g},y=t=>"string"==typeof t||"number"==typeof t,x=t=>(null==t?void 0:t.vtype)===1,b=t=>(null==t?void 0:t.vtype)===2;function w(t){return t.children}let k={isSvg:!1};function _(t,e){Array.isArray(e)||(e=[e]),(e=e.filter(Boolean)).length&&t.append(...e)}let E={className:"class",labelFor:"for"};function S(t,e){return Array.isArray(t)?t.map(t=>S(t,e)).reduce((t,e)=>t.concat(e),[]):A(t,e)}function A(t,e=k){if(null==t||"boolean"==typeof t)return null;if(t instanceof Node)return t;
1if(b(t)){let{type:n,props:i}=t;if(n===w){let t=document.createDocumentFragment();return i.children&&_(t,S(i.children,e)),t}return A(n(i),e)}if(y(t))return document.createTextNode(`${t}`);if(x(t)){let n;let{type:i,props:r}=t;if(e.isSvg||"svg"!==i||(e=Object.assign({},e,{isSvg:!0})),!function(t,e,n){for(let i in e)if("key"!==i&&"children"!==i&&"ref"!==i){if("dangerouslySetInnerHTML"===i)t.innerHTML=e[i].__html;else if("innerHTML"===i||"textContent"===i||"innerText"===i||"value"===i&&["textarea","select"].includes(t.tagName)){let n=e[i];null!=n&&(t[i]=n)}else i.startsWith("on")?t[i.toLowerCase()]=e[i]:function(t,e,n,i){if(e=E[e]||e,!0===n)t.setAttribute(e,"");else if(!1===n)t.removeAttribute(e);else{let r=i?v[e]:void 0;void 0!==r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}}(t,i,e[i],n.isSvg)}}(n=e.isSvg?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i),r,e),r.children){let t=e;e.isSvg&&"foreignObject"===i&&(t=Object.assign({},t,{isSvg:!1}));let a=S(r.children,t);null!=a&&_(n,a)}let{ref:a}=r;return"function"==typeof a&&a(n),n}throw Error("mount: Invalid Vnode!")}function O(...t){return A(function(t,e,...n){return function(t,e){let n;if("string"==typeof t)n=1;else if("function"==typeof t)n=2;else throw Error("Invalid VNode type");return{vtype:n,type:t,props:e}}(t,e=Object.assign({},e,{children:1===n.length?n[0]:n}))}(...t))}let $=function(t){let e={};return function(...n){let i=`${n[0]}`,r=e[i];return r||(r={value:t(...n)},e[i]=r),r.value}}(t=>{document.head.append(O("link",{rel:"preload",as:"script",href:t}))}),T={};async function j(t,e){var n;let i="script"===t.type&&(null==(n=t.data)?void 0:n.src)||"";if(t.loaded||(t.loaded=T[i]),!t.loaded){let n=function(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}();if(t.loaded=n.promise,"script"===t.type&&(document.head.append(O("script",{...t.data,onLoad:()=>n.resolve(),onError:n.reject})),i?T[i]=t.loaded:n.resolve()),"iife"===t.type){let{fn:i,getParams:r}=t.data;i(...(null==r?void 0:r(e))||[]),n.resolve()}}await t.loaded}async function N(t,e){for(let n of(t.forEach(t=>{var e;"script"===t.type&&(null==(e=t.data)?void 0:e.src)&&$(t.data.src)}),e={getMarkmap:()=>window.markmap,...e},t))await j(n,e)}function I(t){return{type:"script",data:{src:t}}}function C(t){return{type:"stylesheet",data:{href:t}}}},4814:function(t,e,n){"use strict";let i;n.d(e,{$T:function(){return no}});var r=n(5496),a=n(5983),o=n(2862);function s(t){function e(t,e){let n;let i=[],r=e.length;for(let a=0;a<r;a++){let r=e[a];if(43!==r.marker||-1===r.end)continue;let o=e[r.end];(n=t.tokens[r.token]).type="ins_open",n.tag="ins",n.nesting=1,n.markup="++",n.content="",(n=t.tokens[o.token]).type="ins_close",n.tag="ins",n.nesting=-1,n.markup="++",n.content="","text"===t.tokens[o.token-1].type&&"+"===t.tokens[o.token-1].content&&i.push(o.token-1)}for(;i.length;){let e=i.pop(),r=e+1;for(;r<t.tokens.length&&"ins_close"===t.tokens[r].type;)r++;e!==--r&&(n=t.tokens[r],t.tokens[r]=t.tokens[e],t.tokens[e]=n)}}t.inline.ruler.before("emphasis","ins",function(t,e){let n=t.pos,i=t.src.charCodeAt(n);if(e||43!==i)return!1;let r=t.scanDelims(t.pos,!0),a=r.length,o=String.fromCharCode(i);if(a<2)return!1;a%2&&(t.push("text","",0).content=o,a--);for(let e=0;e<a;e+=2)t.push("text","",0).content=o+o,(r.can_open||r.can_close)&&t.delimiters.push({marker:i,length:0,jump:e/2,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}),t.inline.ruler2.before("emphasis","ins",function(t){let n=t.tokens_meta,i=(t.tokens_meta||[]).length;e(t,t.delimiters);for(let r=0;r<i;r++)n[r]&&n[r].delimiters&&e(t,n[r].delimiters)})}function l(t){function e(t,e){let n=[],i=e.length;for(let r=0;r<i;r++){let i=e[r];if(61!==i.marker||-1===i.end)continue;let a=e[i.end],o=t.tokens[i.token];o.type="mark_open",o.tag="mark",o.nesting=1,o.markup="==",o.content="";let s=t.tokens[a.token];s.type="mark_close",s.tag="mark",s.nesting=-1,s.markup="==",s.content="","text"===t.tokens[a.token-1].type&&"="===t.tokens[a.token-1].content&&n.push(a.token-1)}for(;n.length;){let e=n.pop(),i=e+1;for(;i<t.tokens.length&&"mark_close"===t.tokens[i].type;)i++;if(e!==--i){let n=t.tokens[i];t.tokens[i]=t.tokens[e],t.tokens[e]=n}}}t.inline.ruler.before("emphasis","mark",function(t,e){let n=t.pos,i=t.src.charCo
1deAt(n);if(e||61!==i)return!1;let r=t.scanDelims(t.pos,!0),a=r.length,o=String.fromCharCode(i);if(a<2)return!1;a%2&&(t.push("text","",0).content=o,a--);for(let e=0;e<a;e+=2)t.push("text","",0).content=o+o,(r.can_open||r.can_close)&&t.delimiters.push({marker:i,length:0,jump:e/2,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}),t.inline.ruler2.before("emphasis","mark",function(t){let n;let i=t.tokens_meta,r=(t.tokens_meta||[]).length;for(e(t,t.delimiters),n=0;n<r;n++)i[n]&&i[n].delimiters&&e(t,i[n].delimiters)})}let c=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function p(t,e){let n=t.posMax,i=t.pos;if(126!==t.src.charCodeAt(i)||e||i+2>=n)return!1;t.pos=i+1;let r=!1;for(;t.pos<n;){if(126===t.src.charCodeAt(t.pos)){r=!0;break}t.md.inline.skipToken(t)}if(!r||i+1===t.pos)return t.pos=i,!1;let a=t.src.slice(i+1,t.pos);return a.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,t.push("sub_open","sub",1).markup="~",t.push("text","",0).content=a.replace(c,"$1"),t.push("sub_close","sub",-1).markup="~",t.pos=t.posMax+1,t.posMax=n,!0)}function u(t){t.inline.ruler.after("emphasis","sub",p)}let f=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function h(t,e){let n=t.posMax,i=t.pos;if(94!==t.src.charCodeAt(i)||e||i+2>=n)return!1;t.pos=i+1;let r=!1;for(;t.pos<n;){if(94===t.src.charCodeAt(t.pos)){r=!0;break}t.md.inline.skipToken(t)}if(!r||i+1===t.pos)return t.pos=i,!1;let a=t.src.slice(i+1,t.pos);return a.match(/(^|[^\\])(\\\\)*\s/)?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,t.push("sup_open","sup",1).markup="^",t.push("text","",0).content=a.replace(f,"$1"),t.push("sup_close","sup",-1).markup="^",t.pos=t.posMax+1,t.posMax=n,!0)}function d(t){t.inline.ruler.after("emphasis","sup",h)}let m=Symbol.for("yaml.alias"),g=Symbol.for("yaml.document"),v=Symbol.for("yaml.map"),y=Symbol.for("yaml.pair"),x=Symbol.for("yaml.scalar"),b=Symbol.for("yaml.seq"),w=Symbol.for("yaml.node.type"),k=t=>!!t&&"object"==typeof t&&t[w]===m,_=t=>!!t&&"object"==typeof t&&t[w]===g,E=t=>!!t&&"object"==typeof t&&t[w]===v,S=t=>!!t&&"object"==typeof t&&t[w]===y,A=t=>!!t&&"object"==typeof t&&t[w]===x,O=t=>!!t&&"object"==typeof t&&t[w]===b;function $(t){if(t&&"object"==typeof t)switch(t[w]){case v:case b:return!0}return!1}function T(t){if(t&&"object"==typeof t)switch(t[w]){case m:case v:case x:case b:return!0}return!1}let j=t=>(A(t)||$(t))&&!!t.anchor,N=Symbol("break visit"),I=Symbol("skip children"),C=Symbol("remove node");function M(t,e){let n=D(e);_(t)?L(null,t.contents,n,Object.freeze([t]))===C&&(t.contents=null):L(null,t,n,Object.freeze([]))}function L(t,e,n,i){let r=P(t,e,n,i);if(T(r)||S(r))return R(t,i,r),L(t,r,n,i);if("symbol"!=typeof r){if($(e)){i=Object.freeze(i.concat(e));for(let t=0;t<e.items.length;++t){let r=L(t,e.items[t],n,i);if("number"==typeof r)t=r-1;else{if(r===N)return N;r===C&&(e.items.splice(t,1),t-=1)}}}else if(S(e)){i=Object.freeze(i.concat(e));let t=L("key",e.key,n,i);if(t===N)return N;t===C&&(e.key=null);let r=L("value",e.value,n,i);if(r===N)return N;r===C&&(e.value=null)}}return r}async function z(t,e){let n=D(e);_(t)?await B(null,t.contents,n,Object.freeze([t]))===C&&(t.contents=null):await B(null,t,n,Object.freeze([]))}async function B(t,e,n,i){let r=await P(t,e,n,i);if(T(r)||S(r))return R(t,i,r),B(t,r,n,i);if("symbol"!=typeof r){if($(e)){i=Object.freeze(i.concat(e));for(let t=0;t<e.items.length;++t){let r=await B(t,e.items[t],n,i);if("number"==typeof r)t=r-1;else{if(r===N)return N;r===C&&(e.items.splice(t,1),t-=1)}}}else if(S(e)){i=Object.freeze(i.concat(e));let t=await B("key",e.key,n,i);if(t===N)return N;t===C&&(e.key=null);let r=await B("value",e.value,n,i);if(r===N)return N;r===C&&(e.value=null)}}return r}function D(t){return"object"==typeof t&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function P(t,e,n,i){return"function"==typeof n?n(t,e,i):E(e)?n.Map?.(t,e,i):O(e)?n.Seq?.(t,e,i):S(e)?n.Pair?.(t,e,i):A(e)?n.Scalar?.(t,e,i):k(e)?n.Alias?.(t,e,i):void 0}function R(t,e,n){let i=e[e.length-1];if($(i))i.items[t]=n;else if(S(i))"key"===t?i.key=n:i.value=n;else if(_(i))i.contents=n;else{let t=k(i)?"alias":"scalar";throw Error(`Cannot replace node with ${t} parent`)}}M.BREAK=N,M.SKIP=I,M.REMOVE=C,z.BREAK=N,z.SKIP=I,z.REMOVE=C;
1let q={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},K=t=>t.replace(/[!,[\]{}]/g,t=>q[t]);class F{constructor(t,e){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},F.defaultYaml,t),this.tags=Object.assign({},F.defaultTags,e)}clone(){let t=new F(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new F(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:F.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},F.defaultTags)}return t}add(t,e){this.atNextDocument&&(this.yaml={explicit:F.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},F.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(2!==n.length&&(e(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[t,i]=n;return this.tags[t]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return e(0,"%YAML directive should contain exactly one part"),!1;let[t]=n;if("1.1"===t||"1.2"===t)return this.yaml.version=t,!0;{let n=/^\d+\.\d+$/.test(t);return e(6,`Unsupported YAML version ${t}`,n),!1}}default:return e(0,`Unknown directive ${i}`,!0),!1}}tagName(t,e){if("!"===t)return"!";if("!"!==t[0])return e(`Not a valid tag: ${t}`),null;if("<"===t[1]){let n=t.slice(2,-1);return"!"===n||"!!"===n?(e(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(">"!==t[t.length-1]&&e("Verbatim tags must end with a >"),n)}let[,n,i]=t.match(/^(.*!)([^!]*)$/s);i||e(`The ${t} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(t){return e(String(t)),null}return"!"===n?t:(e(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[e,n]of Object.entries(this.tags))if(t.startsWith(n))return e+K(t.substring(n.length));return"!"===t[0]?t:`!<${t}>`}toString(t){let e;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);if(t&&i.length>0&&T(t.contents)){let n={};M(t.contents,(t,e)=>{T(e)&&e.tag&&(n[e.tag]=!0)}),e=Object.keys(n)}else e=[];for(let[r,a]of i)("!!"!==r||"tag:yaml.org,2002:"!==a)&&(!t||e.some(t=>t.startsWith(a)))&&n.push(`%TAG ${r} ${a}`);return n.join("\n")}}function U(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let e=JSON.stringify(t);throw Error(`Anchor must not contain whitespace or control characters: ${e}`)}return!0}function X(t){let e=new Set;return M(t,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function V(t,e){for(let n=1;;++n){let i=`${t}${n}`;if(!e.has(i))return i}}function Y(t,e,n,i){if(i&&"object"==typeof i){if(Array.isArray(i))for(let e=0,n=i.length;e<n;++e){let n=i[e],r=Y(t,i,String(e),n);void 0===r?delete i[e]:r!==n&&(i[e]=r)}else if(i instanceof Map)for(let e of Array.from(i.keys())){let n=i.get(e),r=Y(t,i,e,n);void 0===r?i.delete(e):r!==n&&i.set(e,r)}else if(i instanceof Set)for(let e of Array.from(i)){let n=Y(t,i,e,e);void 0===n?i.delete(e):n!==e&&(i.delete(e),i.add(n))}else for(let[e,n]of Object.entries(i)){let r=Y(t,i,e,n);void 0===r?delete i[e]:r!==n&&(i[e]=r)}}return t.call(e,n,i)}function H(t,e,n){if(Array.isArray(t))return t.map((t,e)=>H(t,String(e),n));if(t&&"function"==typeof t.toJSON){if(!n||!j(t))return t.toJSON(e,n);let i={aliasCount:0,count:1,res:void 0};n.anchors.set(t,i),n.onCreate=t=>{i.res=t,delete n.onCreate};let r=t.toJSON(e,n);return n.onCreate&&n.onCreate(r),r}return"bigint"!=typeof t||n?.keep?t:Number(t)}F.defaultYaml={explicit:!1,version:"1.2"},F.defaultTags={"!!":"tag:yaml.org,2002:"};class W{constructor(t){Object.defineProperty(this,w,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:e,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!_(t))throw TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:!0===e,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=H(this,"",a);if("function"==typeof i)for(let{count:t,res:e}of a.anchors.values())i(e,t);return"function"==typeof r?Y(r,{"":o},"",o):o}}class J extends W{constructor(t){super(m),this.source=t,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(t){let e;return M(t,{Node:(t,n)=>{if(n===this)return M.BREAK;n.anchor===this.source&&(e=n)}}),e}toJSON(t,e){if(!e)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=e,a=this.resolve(i);if(!a)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=n.get(a);if(o||(H(a,null,e),o=n.get(a)),!o||void 0===o.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function t(e,n,i){if(k(n)){let t=n.resolve(e),r=i&&t&&i.get(t);return r?r.count*r.aliasCount:0}if($(n)){let r=0;for(let a of n.items){let n=t(e,a,i);n>r&&(r=n)}return r}return S(n)?Math.max(t(e,n.key,i),t(e,n.value,i)):1}(i,a,n)),o.count*o.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exh
1austion attack");return o.res}toString(t,e,n){let i=`*${this.source}`;if(t){if(U(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(t.implicitKey)return`${i} `}return i}}let G=t=>!t||"function"!=typeof t&&"object"!=typeof t;class Q extends W{constructor(t){super(x),this.value=t}toJSON(t,e){return e?.keep?this.value:H(this.value,t,e)}toString(){return String(this.value)}}function Z(t,e,n){let i;if(_(t)&&(t=t.contents),T(t))return t;if(S(t)){let e=n.schema[v].createNode?.(n.schema,null,n);return e.items.push(t),e}(t instanceof String||t instanceof Number||t instanceof Boolean||"undefined"!=typeof BigInt&&t instanceof BigInt)&&(t=t.valueOf());let{aliasDuplicateObjects:r,onAnchor:a,onTagObj:o,schema:s,sourceObjects:l}=n;if(r&&t&&"object"==typeof t){if(i=l.get(t))return i.anchor||(i.anchor=a(t)),new J(i.anchor);i={anchor:null,node:null},l.set(t,i)}e?.startsWith("!!")&&(e="tag:yaml.org,2002:"+e.slice(2));let c=function(t,e,n){if(e){let t=n.filter(t=>t.tag===e),i=t.find(t=>!t.format)??t[0];if(!i)throw Error(`Tag ${e} not found`);return i}return n.find(e=>e.identify?.(t)&&!e.format)}(t,e,s.tags);if(!c){if(t&&"function"==typeof t.toJSON&&(t=t.toJSON()),!t||"object"!=typeof t){let e=new Q(t);return i&&(i.node=e),e}c=t instanceof Map?s[v]:Symbol.iterator in Object(t)?s[b]:s[v]}o&&(o(c),delete n.onTagObj);let p=c?.createNode?c.createNode(n.schema,t,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,t,n):new Q(t);return e?p.tag=e:c.default||(p.tag=c.tag),i&&(i.node=p),p}function tt(t,e,n){let i=n;for(let t=e.length-1;t>=0;--t){let n=e[t];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let t=[];t[n]=i,i=t}else i=new Map([[n,i]])}return Z(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}Q.BLOCK_FOLDED="BLOCK_FOLDED",Q.BLOCK_LITERAL="BLOCK_LITERAL",Q.PLAIN="PLAIN",Q.QUOTE_DOUBLE="QUOTE_DOUBLE",Q.QUOTE_SINGLE="QUOTE_SINGLE";let te=t=>null==t||"object"==typeof t&&!!t[Symbol.iterator]().next().done;class tn extends W{constructor(t,e){super(t),Object.defineProperty(this,"schema",{value:e,configurable:!0,enumerable:!1,writable:!0})}clone(t){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(e.schema=t),e.items=e.items.map(e=>T(e)||S(e)?e.clone(t):e),this.range&&(e.range=this.range.slice()),e}addIn(t,e){if(te(t))this.add(e);else{let[n,...i]=t,r=this.get(n,!0);if($(r))r.addIn(i,e);else if(void 0===r&&this.schema)this.set(n,tt(this.schema,i,e));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(t){let[e,...n]=t;if(0===n.length)return this.delete(e);let i=this.get(e,!0);if($(i))return i.deleteIn(n);throw Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn(t,e){let[n,...i]=t,r=this.get(n,!0);return 0===i.length?!e&&A(r)?r.value:r:$(r)?r.getIn(i,e):void 0}hasAllNullValues(t){return this.items.every(e=>{if(!S(e))return!1;let n=e.value;return null==n||t&&A(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[e,...n]=t;if(0===n.length)return this.has(e);let i=this.get(e,!0);return!!$(i)&&i.hasIn(n)}setIn(t,e){let[n,...i]=t;if(0===i.length)this.set(n,e);else{let t=this.get(n,!0);if($(t))t.setIn(i,e);else if(void 0===t&&this.schema)this.set(n,tt(this.schema,i,e));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}let ti=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function tr(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}let ta=(t,e,n)=>t.endsWith("\n")?tr(n,e):n.includes("\n")?"\n"+tr(n,e):(t.endsWith(" ")?"":" ")+n,to="flow",ts="block",tl="quoted";function tc(t,e,n="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){let l,c,p;if(!r||r<0)return t;r<a&&(a=0);let u=Math.max(1+a,1+r-e.length);if(t.length<=u)return t;let f=[],h={},d=r-e.length;"number"==typeof i&&(i>r-Math.max(2,a)?f.push(0):d=r-i);let m=!1,g=-1,v=-1,y=-1;for(n===ts&&-1!==(g=tp(t,g,e.length))&&(d=g+u);p=t[g+=1];
1){if(n===tl&&"\\"===p){switch(v=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if("\n"===p)n===ts&&(g=tp(t,g,e.length)),d=g+e.length+u,l=void 0;else{if(" "===p&&c&&" "!==c&&"\n"!==c&&"	"!==c){let e=t[g+1];e&&" "!==e&&"\n"!==e&&"	"!==e&&(l=g)}if(g>=d){if(l)f.push(l),d=l+u,l=void 0;else if(n===tl){for(;" "===c||"	"===c;)c=p,p=t[g+=1],m=!0;let e=g>y+1?g-2:v-1;if(h[e])return t;f.push(e),h[e]=!0,d=e+u,l=void 0}else m=!0}}c=p}if(m&&s&&s(),0===f.length)return t;o&&o();let x=t.slice(0,f[0]);for(let i=0;i<f.length;++i){let r=f[i],a=f[i+1]||t.length;0===r?x=`
2${e}${t.slice(0,a)}`:(n===tl&&h[r]&&(x+=`${t[r]}\\`),x+=`
3${e}${t.slice(r+1,a)}`)}return x}function tp(t,e,n){let i=e,r=e+1,a=t[r];for(;" "===a||"	"===a;)if(e<r+n)a=t[++e];else{do a=t[++e];while(a&&"\n"!==a);i=e,a=t[r=e+1]}return i}let tu=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),tf=t=>/^(%|---|\.\.\.)/m.test(t);function th(t,e){let n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;let{implicitKey:i}=e,r=e.options.doubleQuotedMinMultiLineLength,a=e.indent||(tf(t)?"  ":""),o="",s=0;for(let t=0,e=n[t];e;e=n[++t])if(" "===e&&"\\"===n[t+1]&&"n"===n[t+2]&&(o+=n.slice(s,t)+"\\ ",t+=1,s=t,e="\\"),"\\"===e)switch(n[t+1]){case"u":{o+=n.slice(s,t);let e=n.substr(t+2,4);switch(e){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===e.substr(0,2)?o+="\\x"+e.substr(2):o+=n.substr(t,6)}t+=5,s=t+1}break;case"n":if(i||'"'===n[t+2]||n.length<r)t+=1;else{for(o+=n.slice(s,t)+"\n\n";"\\"===n[t+2]&&"n"===n[t+3]&&'"'!==n[t+4];)o+="\n",t+=2;o+=a," "===n[t+2]&&(o+="\\"),t+=1,s=t+1}break;default:t+=1}return o=s?o+n.slice(s):n,i?o:tc(o,a,tl,tu(e,!1))}function td(t,e){if(!1===e.options.singleQuote||e.implicitKey&&t.includes("\n")||/[ \t]\n|\n[ \t]/.test(t))return th(t,e);let n=e.indent||(tf(t)?"  ":""),i="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
4${n}`)+"'";return e.implicitKey?i:tc(i,n,to,tu(e,!1))}function tm(t,e){let n;let{singleQuote:i}=e.options;if(!1===i)n=th;else{let e=t.includes('"'),r=t.includes("'");n=e&&!r?td:r&&!e?th:i?td:th}return n(t,e)}try{i=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{i=/\n+(?!\n|$)/g}function tg({comment:t,type:e,value:n},r,a,o){let s,l,c;let{blockQuote:p,commentString:u,lineWidth:f}=r.options;if(!p||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return tm(n,r);let h=r.indent||(r.forceBlockIndent||tf(n)?"  ":""),d="literal"===p||"folded"!==p&&e!==Q.BLOCK_FOLDED&&(e===Q.BLOCK_LITERAL||!function(t,e,n){if(!e||e<0)return!1;let i=e-n,r=t.length;if(r<=i)return!1;for(let e=0,n=0;e<r;++e)if("\n"===t[e]){if(e-n>i)return!0;if(r-(n=e+1)<=i)return!1}return!0}(n,f,h.length));if(!n)return d?"|\n":">\n";for(l=n.length;l>0;--l){let t=n[l-1];if("\n"!==t&&"	"!==t&&" "!==t)break}let m=n.substring(l),g=m.indexOf("\n");-1===g?s="-":n===m||g!==m.length-1?(s="+",o&&o()):s="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(i,`$&${h}`));let v=!1,y=-1;for(c=0;c<n.length;++c){let t=n[c];if(" "===t)v=!0;else if("\n"===t)y=c;else break}let x=n.substring(0,y<c?y+1:c);x&&(n=n.substring(x.length),x=x.replace(/\n+/g,`$&${h}`));let b=h?"2":"1",w=(v?b:"")+s;if(t&&(w+=" "+u(t.replace(/ ?[\r\n]+/g," ")),a&&a()),!d){let t=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),i=!1,a=tu(r,!0);"folded"!==p&&e!==Q.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let o=tc(`${x}${t}${m}`,h,ts,a);if(!i)return`>${w}
5${h}${o}`}return n=n.replace(/\n+/g,`$&${h}`),`|${w}
6${h}${x}${n}${m}`}function tv(t,e,n,i){let{implicitKey:r,inFlow:a}=e,o="string"==typeof t.value?t:Object.assign({},t,{value:String(t.value)}),{type:s}=t;s!==Q.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=Q.QUOTE_DOUBLE);let l=t=>{switch(t){case Q.BLOCK_FOLDED:case Q.BLOCK_LITERAL:return r||a?tm(o.value,e):tg(o,e,n,i);case Q.QUOTE_DOUBLE:return th(o.value,e);
6case Q.QUOTE_SINGLE:return td(o.value,e);case Q.PLAIN:return function(t,e,n,i){let{type:r,value:a}=t,{actualString:o,implicitKey:s,indent:l,indentStep:c,inFlow:p}=e;if(s&&a.includes("\n")||p&&/[[\]{},]/.test(a))return tm(a,e);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||p||!a.includes("\n")?tm(a,e):tg(t,e,n,i);if(!s&&!p&&r!==Q.PLAIN&&a.includes("\n"))return tg(t,e,n,i);if(tf(a)){if(""===l)return e.forceBlockIndent=!0,tg(t,e,n,i);if(s&&l===c)return tm(a,e)}let u=a.replace(/\n+/g,`$&
7${l}`);if(o){let t=t=>t.default&&"tag:yaml.org,2002:str"!==t.tag&&t.test?.test(u),{compat:n,tags:i}=e.doc.schema;if(i.some(t)||n?.some(t))return tm(a,e)}return s?u:tc(u,l,to,tu(e,!1))}(o,e,n,i);default:return null}},c=l(s);if(null===c){let{defaultKeyType:t,defaultStringType:n}=e.options,i=r&&t||n;if(null===(c=l(i)))throw Error(`Unsupported default string type ${i}`)}return c}function ty(t,e){let n;let i=Object.assign({blockQuote:!0,commentString:ti,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);switch(i.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof i.indent?" ".repeat(i.indent):"  ",inFlow:n,options:i}}function tx(t,e,n,i){let r;if(S(t))return t.toString(e,n,i);if(k(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let a=T(t)?t:e.doc.createNode(t,{onTagObj:t=>r=t});r||(r=function(t,e){let n,i;if(e.tag){let n=t.filter(t=>t.tag===e.tag);if(n.length>0)return n.find(t=>t.format===e.format)??n[0]}if(A(e)){n=e.value;let r=t.filter(t=>t.identify?.(n));if(r.length>1){let t=r.filter(t=>t.test);t.length>0&&(r=t)}i=r.find(t=>t.format===e.format)??r.find(t=>!t.format)}else n=e,i=t.find(t=>t.nodeClass&&n instanceof t.nodeClass);if(!i){let t=n?.constructor?.name??typeof n;throw Error(`Tag not resolved for ${t} value`)}return i}(e.doc.schema.tags,a));let o=function(t,e,{anchors:n,doc:i}){if(!i.directives)return"";let r=[],a=(A(t)||$(t))&&t.anchor;a&&U(a)&&(n.add(a),r.push(`&${a}`));let o=t.tag?t.tag:e.default?null:e.tag;return o&&r.push(i.directives.tagString(o)),r.join(" ")}(a,r,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let s="function"==typeof r.stringify?r.stringify(a,e,n,i):A(a)?tv(a,e,n,i):a.toString(e,n,i);return o?A(a)||"{"===s[0]||"["===s[0]?`${o} ${s}`:`${o}
8${e.indent}${s}`:s}function tb(t,e){("debug"===t||"warn"===t)&&console.warn(e)}let tw={identify:t=>"<<"===t||"symbol"==typeof t&&"<<"===t.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Q(Symbol("<<")),{addToJSMap:t_}),stringify:()=>"<<"},tk=(t,e)=>(tw.identify(e)||A(e)&&(!e.type||e.type===Q.PLAIN)&&tw.identify(e.value))&&t?.doc.schema.tags.some(t=>t.tag===tw.tag&&t.default);function t_(t,e,n){if(O(n=t&&k(n)?n.resolve(t.doc):n))for(let i of n.items)tE(t,e,i);else if(Array.isArray(n))for(let i of n)tE(t,e,i);else tE(t,e,n)}function tE(t,e,n){let i=t&&k(n)?n.resolve(t.doc):n;if(!E(i))throw Error("Merge sources must be maps or map aliases");for(let[n,r]of i.toJSON(null,t,Map))e instanceof Map?e.has(n)||e.set(n,r):e instanceof Set?e.add(n):Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0});return e}function tS(t,e,{key:n,value:i}){if(T(n)&&n.addToJSMap)n.addToJSMap(t,e,i);else if(tk(t,n))t_(t,e,i);else{let r=H(n,"",t);if(e instanceof Map)e.set(r,H(i,r,t));else if(e instanceof Set)e.add(r);else{let a=function(t,e,n){if(null===e)return"";if("object"!=typeof e)return String(e);if(T(t)&&n?.doc){let e=ty(n.doc,{});for(let t of(e.anchors=new Set,n.anchors.keys()))e.anchors.add(t.anchor);e.inFlow=!0,e.inStringifyKey=!0;let i=t.toString(e);if(!n.mapKeyWarned){let t=JSON.stringify(i);t.length>40&&(t=t.substring(0,36)+'..."'),tb(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${t}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(e)}
8(n,r,t),o=H(i,a,t);a in e?Object.defineProperty(e,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[a]=o}}return e}function tA(t,e,n){return new tO(Z(t,void 0,n),Z(e,void 0,n))}class tO{constructor(t,e=null){Object.defineProperty(this,w,{value:y}),this.key=t,this.value=e}clone(t){let{key:e,value:n}=this;return T(e)&&(e=e.clone(t)),T(n)&&(n=n.clone(t)),new tO(e,n)}toJSON(t,e){let n=e?.mapAsMap?new Map:{};return tS(e,n,this)}toString(t,e,n){return t?.doc?function({key:t,value:e},n,i,r){let a,o,s;let{allNullValues:l,doc:c,indent:p,indentStep:u,options:{commentString:f,indentSeq:h,simpleKeys:d}}=n,m=T(t)&&t.comment||null;if(d){if(m)throw Error("With simple keys, key nodes cannot have comments");if($(t)||!T(t)&&"object"==typeof t)throw Error("With simple keys, collection cannot be used as a key value")}let g=!d&&(!t||m&&null==e&&!n.inFlow||$(t)||(A(t)?t.type===Q.BLOCK_FOLDED||t.type===Q.BLOCK_LITERAL:"object"==typeof t));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(d||!l),indent:p+u});let v=!1,y=!1,x=tx(t,n,()=>v=!0,()=>y=!0);if(!g&&!n.inFlow&&x.length>1024){if(d)throw Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(l||null==e)return v&&i&&i(),""===x?"?":g?`? ${x}`:x}else if(l&&!d||null==e&&g)return x=`? ${x}`,m&&!v?x+=ta(x,n.indent,f(m)):y&&r&&r(),x;v&&(m=null),g?(m&&(x+=ta(x,n.indent,f(m))),x=`? ${x}
9${p}:`):(x=`${x}:`,m&&(x+=ta(x,n.indent,f(m)))),T(e)?(a=!!e.spaceBefore,o=e.commentBefore,s=e.comment):(a=!1,o=null,s=null,e&&"object"==typeof e&&(e=c.createNode(e))),n.implicitKey=!1,!g&&!m&&A(e)&&(n.indentAtStart=x.length+1),y=!1,!(!h&&u.length>=2&&!n.inFlow&&!g&&O(e))||e.flow||e.tag||e.anchor||(n.indent=n.indent.substring(2));let b=!1,w=tx(e,n,()=>b=!0,()=>y=!0),k=" ";if(m||a||o){if(k=a?"\n":"",o){let t=f(o);k+=`
10${tr(t,n.indent)}`}""!==w||n.inFlow?k+=`
11${n.indent}`:"\n"===k&&(k="\n\n")}else if(!g&&$(e)){let t=w[0],i=w.indexOf("\n"),r=-1!==i,a=n.inFlow??e.flow??0===e.items.length;if(r||!a){let e=!1;if(r&&("&"===t||"!"===t)){let n=w.indexOf(" ");"&"===t&&-1!==n&&n<i&&"!"===w[n+1]&&(n=w.indexOf(" ",n+1)),(-1===n||i<n)&&(e=!0)}e||(k=`
12${n.indent}`)}}else(""===w||"\n"===w[0])&&(k="");return x+=k+w,n.inFlow?b&&i&&i():s&&!b?x+=ta(x,n.indent,f(s)):y&&r&&r(),x}(this,t,e,n):JSON.stringify(this)}}function t$(t,e,n){return(e.inFlow??t.flow?function({items:t},e,{flowChars:n,itemIndent:i}){let{indent:r,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=e,l=Object.assign({},e,{indent:i+=a,inFlow:!0,type:null}),c=!1,p=0,u=[];for(let n=0;n<t.length;++n){let r=t[n],a=null;if(T(r))r.spaceBefore&&u.push(""),tT(e,u,r.commentBefore,!1),r.comment&&(a=r.comment);else if(S(r)){let t=T(r.key)?r.key:null;t&&(t.spaceBefore&&u.push(""),tT(e,u,t.commentBefore,!1),t.comment&&(c=!0));let n=T(r.value)?r.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(c=!0)):null==r.value&&t?.comment&&(a=t.comment)}a&&(c=!0);let o=tx(r,l,()=>a=null);n<t.length-1&&(o+=","),a&&(o+=ta(o,i,s(a))),!c&&(u.length>p||o.includes("\n"))&&(c=!0),u.push(o),p=u.length}let{start:f,end:h}=n;if(0===u.length)return f+h;if(!c){let t=u.reduce((t,e)=>t+e.length+2,2);c=e.options.lineWidth>0&&t>e.options.lineWidth}if(!c)return`${f}${o}${u.join(" ")}${o}${h}`;{let t=f;for(let e of u)t+=e?`
13${a}${r}${e}`:"\n";return`${t}
14${r}${h}`}}:function({comment:t,items:e},n,{blockItemPrefix:i,flowChars:r,itemIndent:a,onChompKeep:o,onComment:s}){let l;let{indent:c,options:{commentString:p}}=n,u=Object.assign({},n,{indent:a,type:null}),f=!1,h=[];for(let t=0;t<e.length;++t){let r=e[t],o=null;if(T(r))!f&&r.spaceBefore&&h.push(""),tT(n,h,r.commentBefore,f),r.comment&&(o=r.comment);else if(S(r)){let t=T(r.key)?r.key:null;t&&(!f&&t.spaceBefore&&h.push(""),tT(n,h,t.commentBefore,f))}f=!1;let s=tx(r,u,()=>o=null,()=>f=!0);o&&(s+=ta(s,a,p(o))),f&&o&&(f=!1),h.push(i+s)}if(0===h.length)l=r.start+r.end;else{l=h[0];for(let t=1;t<h.length;++t){let e=h[t];l+=e?`
15${c}${e}`:"\n"}}return t?(l+="\n"+tr(p(t),c),s&&s()):f&&o&&o(),l})(t,e,n)}function tT({indent:t,options:{commentString:e}},n,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){let r=tr(e(i),t);n.push(r.trimStart())}}function tj(t,e){let n=A(e)?e.value:e;for(let i of t)if(S(i)&&(i.key===e||i.key===n||A(i.key)&&i.key.value===n))return i}class tN extends tn{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(v,t),this.items=[]}static from(t,e,n){let{keepUndefined:i,replacer:r}=n,a=new this(t),o=(t,o)=>{if("function"==typeof r)o=r.call(e,t,o);else if(Array.isArray(r)&&!r.includes(t))return;(void 0!==o||i)&&a.items.push(tA(t,o,n))};if(e instanceof Map)for(let[t,n]of e)o(t,n);else if(e&&"object"==typeof e)for(let t of Object.keys(e))o(t,e[t]);return"function"==typeof t.sortMapEntries&&a.items.sort(t.sortMapEntries),a}add(t,e){let n;
15n=S(t)?t:t&&"object"==typeof t&&"key"in t?new tO(t.key,t.value):new tO(t,t?.value);let i=tj(this.items,n.key),r=this.schema?.sortMapEntries;if(i){if(!e)throw Error(`Key ${n.key} already set`);A(i.value)&&G(n.value)?i.value.value=n.value:i.value=n.value}else if(r){let t=this.items.findIndex(t=>0>r(n,t));-1===t?this.items.push(n):this.items.splice(t,0,n)}else this.items.push(n)}delete(t){let e=tj(this.items,t);return!!e&&this.items.splice(this.items.indexOf(e),1).length>0}get(t,e){let n=tj(this.items,t),i=n?.value;return(!e&&A(i)?i.value:i)??void 0}has(t){return!!tj(this.items,t)}set(t,e){this.add(new tO(t,e),!0)}toJSON(t,e,n){let i=n?new n:e?.mapAsMap?new Map:{};for(let t of(e?.onCreate&&e.onCreate(i),this.items))tS(e,i,t);return i}toString(t,e,n){if(!t)return JSON.stringify(this);for(let t of this.items)if(!S(t))throw Error(`Map items must all be pairs; found ${JSON.stringify(t)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),t$(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:e})}}let tI={collection:"map",default:!0,nodeClass:tN,tag:"tag:yaml.org,2002:map",resolve:(t,e)=>(E(t)||e("Expected a mapping for this tag"),t),createNode:(t,e,n)=>tN.from(t,e,n)};class tC extends tn{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(b,t),this.items=[]}add(t){this.items.push(t)}delete(t){let e=tM(t);return"number"==typeof e&&this.items.splice(e,1).length>0}get(t,e){let n=tM(t);if("number"!=typeof n)return;let i=this.items[n];return!e&&A(i)?i.value:i}has(t){let e=tM(t);return"number"==typeof e&&e<this.items.length}set(t,e){let n=tM(t);if("number"!=typeof n)throw Error(`Expected a valid index, not ${t}.`);let i=this.items[n];A(i)&&G(e)?i.value=e:this.items[n]=e}toJSON(t,e){let n=[];e?.onCreate&&e.onCreate(n);let i=0;for(let t of this.items)n.push(H(t,String(i++),e));return n}toString(t,e,n){return t?t$(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+"  ",onChompKeep:n,onComment:e}):JSON.stringify(this)}static from(t,e,n){let{replacer:i}=n,r=new this(t);if(e&&Symbol.iterator in Object(e)){let t=0;for(let a of e){if("function"==typeof i){let n=e instanceof Set?a:String(t++);a=i.call(e,n,a)}r.items.push(Z(a,void 0,n))}}return r}}function tM(t){let e=A(t)?t.value:t;return e&&"string"==typeof e&&(e=Number(e)),"number"==typeof e&&Number.isInteger(e)&&e>=0?e:null}let tL={collection:"seq",default:!0,nodeClass:tC,tag:"tag:yaml.org,2002:seq",resolve:(t,e)=>(O(t)||e("Expected a sequence for this tag"),t),createNode:(t,e,n)=>tC.from(t,e,n)},tz={identify:t=>"string"==typeof t,default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:(t,e,n,i)=>tv(t,e=Object.assign({actualString:!0},e),n,i)},tB={identify:t=>null==t,createNode:()=>new Q(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Q(null),stringify:({source:t},e)=>"string"==typeof t&&tB.test.test(t)?t:e.options.nullStr},tD={identify:t=>"boolean"==typeof t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new Q("t"===t[0]||"T"===t[0]),stringify:({source:t,value:e},n)=>t&&tD.test.test(t)&&e===("t"===t[0]||"T"===t[0])?t:e?n.options.trueStr:n.options.falseStr};function tP({format:t,minFractionDigits:e,tag:n,value:i}){if("bigint"==typeof i)return String(i);let r="number"==typeof i?i:Number(i);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let a=JSON.stringify(i);if(!t&&e&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(a)){let t=a.indexOf(".");t<0&&(t=a.length,a+=".");let n=e-(a.length-t-1);for(;n-- >0;)a+="0"}return a}let tR={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>"nan"===t.slice(-3).toLowerCase()?NaN:"-"===t[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tP},tq={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():tP(t)}},tK={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new Q(parseFloat(t)),n=t.indexOf(".");return -1!==n&&"0"===t[t.length-1]&&(e.minFractionDigits=t.length-n-1),e},stringify:tP},tF=t=>"bigint"==typeof t||Number.isInteger(t),tU=(t,e,n,{intAsBigInt:i})=>i?BigInt(t):parseInt(t.substring(e),n);function tX(t,e,n){let{value:i}=t;return tF(i)&&i>=0?n+i.toString(e):tP(t)}let tV={identify:t=>tF(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>tU(t,2,8,n),stringify:t=>tX(t,8,"0o")},tY={identify:tF,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>tU(t,0,10,n),stringify:tP},tH={identify:t=>tF(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>tU(t,2,16,n),stringify:t=>tX(t,16,"0x")},tW=[tI,tL,tz,tB,tD,tV,tY,tH,tR,tq,tK];function tJ(t){return"bigint"==typeof t||Number.isInteger(t)}let tG=({value:t})=>JSON.stringify(t),tQ=[tI,tL].concat([{identify:t=>"string"==typeof t,default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:tG},{identify:t=>null==t,createNode:()=>new Q(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:tG},{identify:t=>"boolean"==typeof t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>"true"===t,stringify:tG},{identify:tJ,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>tJ(t)?t.toString():JSON.stringify(t)},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:tG}],{default:!0,tag:"",test:/^/,resolve:(t,e)=>(e(`Unresolved plain scalar ${JSON.stringify(t)}`),t)}),tZ={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if("function"!=typeof atob)return e("This environment does not support reading binary tags; either Buffer or atob is required"),t;{let e=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t);return n}}
15,stringify({comment:t,type:e,value:n},i,r,a){let o;if("function"==typeof btoa){let t="";for(let e=0;e<n.length;++e)t+=String.fromCharCode(n[e]);o=btoa(t)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=Q.BLOCK_LITERAL),e!==Q.QUOTE_DOUBLE){let t=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),n=Math.ceil(o.length/t),r=Array(n);for(let e=0,i=0;e<n;++e,i+=t)r[e]=o.substr(i,t);o=r.join(e===Q.BLOCK_LITERAL?"\n":" ")}return tv({comment:t,type:e,value:o},i,r,a)}};function t0(t,e){if(O(t))for(let n=0;n<t.items.length;++n){let i=t.items[n];if(!S(i)){if(E(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let t=i.items[0]||new tO(new Q(null));if(i.commentBefore&&(t.key.commentBefore=t.key.commentBefore?`${i.commentBefore}
16${t.key.commentBefore}`:i.commentBefore),i.comment){let e=t.value??t.key;e.comment=e.comment?`${i.comment}
17${e.comment}`:i.comment}i=t}t.items[n]=S(i)?i:new tO(i)}}else e("Expected a sequence for this tag");return t}function t1(t,e,n){let{replacer:i}=n,r=new tC(t);r.tag="tag:yaml.org,2002:pairs";let a=0;if(e&&Symbol.iterator in Object(e))for(let t of e){let o,s;if("function"==typeof i&&(t=i.call(e,String(a++),t)),Array.isArray(t)){if(2===t.length)o=t[0],s=t[1];else throw TypeError(`Expected [key, value] tuple: ${t}`)}else if(t&&t instanceof Object){let e=Object.keys(t);if(1===e.length)s=t[o=e[0]];else throw TypeError(`Expected tuple with one key, not ${e.length} keys`)}else o=t;r.items.push(tA(o,s,n))}return r}let t2={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:t0,createNode:t1};class t3 extends tC{constructor(){super(),this.add=tN.prototype.add.bind(this),this.delete=tN.prototype.delete.bind(this),this.get=tN.prototype.get.bind(this),this.has=tN.prototype.has.bind(this),this.set=tN.prototype.set.bind(this),this.tag=t3.tag}toJSON(t,e){if(!e)return super.toJSON(t);let n=new Map;for(let t of(e?.onCreate&&e.onCreate(n),this.items)){let i,r;if(S(t)?(i=H(t.key,"",e),r=H(t.value,i,e)):i=H(t,"",e),n.has(i))throw Error("Ordered maps must not include duplicate keys");n.set(i,r)}return n}static from(t,e,n){let i=t1(t,e,n),r=new this;return r.items=i.items,r}}t3.tag="tag:yaml.org,2002:omap";let t6={collection:"seq",identify:t=>t instanceof Map,nodeClass:t3,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let n=t0(t,e),i=[];for(let{key:t}of n.items)A(t)&&(i.includes(t.value)?e(`Ordered maps must not include duplicate keys: ${t.value}`):i.push(t.value));return Object.assign(new t3,n)},createNode:(t,e,n)=>t3.from(t,e,n)};function t4({value:t,source:e},n){return e&&(t?t5:t8).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}let t5={identify:t=>!0===t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Q(!0),stringify:t4},t8={identify:t=>!1===t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>
17new Q(!1),stringify:t4},t7=t=>"bigint"==typeof t||Number.isInteger(t);function t9(t,e,n,{intAsBigInt:i}){let r=t[0];if(("-"===r||"+"===r)&&(e+=1),t=t.substring(e).replace(/_/g,""),i){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`}let e=BigInt(t);return"-"===r?BigInt(-1)*e:e}let a=parseInt(t,n);return"-"===r?-1*a:a}function et(t,e,n){let{value:i}=t;if(t7(i)){let t=i.toString(e);return i<0?"-"+n+t.substr(1):n+t}return tP(t)}class ee extends tN{constructor(t){super(t),this.tag=ee.tag}add(t){let e;e=S(t)?t:t&&"object"==typeof t&&"key"in t&&"value"in t&&null===t.value?new tO(t.key,null):new tO(t,null),tj(this.items,e.key)||this.items.push(e)}get(t,e){let n=tj(this.items,t);return!e&&S(n)?A(n.key)?n.key.value:n.key:n}set(t,e){if("boolean"!=typeof e)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof e}`);let n=tj(this.items,t);n&&!e?this.items.splice(this.items.indexOf(n),1):!n&&e&&this.items.push(new tO(t))}toJSON(t,e){return super.toJSON(t,e,Set)}toString(t,e,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),e,n);throw Error("Set items must all have null values")}static from(t,e,n){let{replacer:i}=n,r=new this(t);if(e&&Symbol.iterator in Object(e))for(let t of e)"function"==typeof i&&(t=i.call(e,t,t)),r.items.push(tA(t,null,n));return r}}ee.tag="tag:yaml.org,2002:set";let en={collection:"map",identify:t=>t instanceof Set,nodeClass:ee,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>ee.from(t,e,n),resolve(t,e){if(E(t)){if(t.hasAllNullValues(!0))return Object.assign(new ee,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function ei(t,e){let n=t[0],i="-"===n||"+"===n?t.substring(1):t,r=t=>e?BigInt(t):Number(t),a=i.replace(/_/g,"").split(":").reduce((t,e)=>t*r(60)+r(e),r(0));return"-"===n?r(-1)*a:a}function er(t){let{value:e}=t,n=t=>t;if("bigint"==typeof e)n=t=>BigInt(t);else if(isNaN(e)||!isFinite(e))return tP(t);let i="";e<0&&(i="-",e*=n(-1));let r=n(60),a=[e%r];return e<60?a.unshift(0):(e=(e-a[0])/r,a.unshift(e%r),e>=60&&(e=(e-a[0])/r,a.unshift(e))),i+a.map(t=>String(t).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let ea={identify:t=>"bigint"==typeof t||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>ei(t,n),stringify:er},eo={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>ei(t,!1),stringify:er},es={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){let e=t.match(es.test);if(!e)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,i,r,a,o,s]=e.map(Number),l=Date.UTC(n,i-1,r,a||0,o||0,s||0,e[7]?Number((e[7]+"00").substr(1,3)):0),c=e[8];if(c&&"Z"!==c){let t=ei(c,!1);30>Math.abs(t)&&(t*=60),l-=6e4*t}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},el=[tI,tL,tz,tB,t5,t8,{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>t9(t,2,2,n),stringify:t=>et(t,2,"0b")},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>t9(t,1,8,n),stringify:t=>et(t,8,"0")},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>t9(t,0,10,n),stringify:tP},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>t9(t,2,16,n),stringify:t=>et(t,16,"0x")},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>"nan"===t.slice(-3).toLowerCase()?NaN:"-"===t[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tP},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():tP(t)}},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new Q(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(-1!==n){let i=t.substring(n+1).replace(/_/g,"");"0"===i[i.length-1]&&(e.minFractionDigits=i.length)}return e},stringify:tP},tZ,tw,t6,t2,en,ea,eo,es],ec=new Map([["core",tW],["failsafe",[tI,tL,tz]],["json",tQ],["yaml11",el],["yaml-1.1",el]]),ep={binary:tZ,bool:tD,float:tK,floatExp:tq,floatNaN:tR,floatTime:eo,int:tY,intHex:tH,intOct:tV,intTime:ea,map:tI,merge:tw,null:tB,omap:t6,pairs:t2,seq:tL,set:en,timestamp:es},eu={"tag:yaml.org,2002:binary":tZ,"tag:yaml.org,2002:merge":tw,"tag:yaml.org,2002:omap":t6,"tag:yaml.org,2002:pairs":t2,"tag:yaml.org,2002:set":en,"tag:yaml.org,2002:timestamp":es};function ef(t,e,n){let i=ec.get(e);if(i&&!t)return n&&!i.includes(tw)?i.concat(tw):i.slice();let r=i;if(!r){if(Array.isArray(t))r=[];else{let t=Array.from(ec.keys()).filter(t=>"yaml11"!==t).map(t=>JSON.stringify(t)).join(", ");throw Error(`Unknown schema "${e}"; use one of ${t} or define customTags array`)}}if(Array.isArray(t))for(let e of t)r=r.concat(e);else"function"==typeof t&&(r=t(r.slice()));return n&&(r=r.concat(tw)),r.reduce((t,e)=>{let n="string"==typeof e?ep[e]:e;if(!n){let t=JSON.stringify(e),n=Object.keys(ep).map(t=>JSON.stringify(t)).join(", ");throw Error(`Unknown custom tag ${t}; use one of ${n}`)}return t.includes(n)||t.push(n),t},[])}let eh=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class ed{constructor({compat:t,customTags:e,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?ef(t,"compat"):t?ef(null,t):null,this.name="string"==typeof r&&r||"core",this.knownTags=i?eu:{},this.tags=ef(e,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,v,{value:tI}),Object.defineProperty(this,x,{value:tz}),Object.defineProperty(this,b,{value:tL}),this.sortMapEntries="function"==typeof a?a:!0===a?eh:null}clone(){let t=Object.create(ed.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}class em{constructor(t,e,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,w,{value:g});let i=null;"function"==typeof e||Array.isArray(e)?i=e:void 0===n&&e&&(n=e,e=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:a}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new F({version:a}),this.setSchema(a,n),this.contents=void 0===t?null:this.createNode(t,i,n)}clone(){let t=Object.create(em.prototype,{[w]:{value:g}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=T(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){eg(this.contents)&&this.contents.add(t)}addIn(t,e){eg(this.contents)&&this.contents.addIn(t,e)}createAlias(t,e){if(!t.anchor){let n=X(this);t.anchor=!e||n.has(e)?V(e||"a",n):e}
17return new J(t.anchor)}createNode(t,e,n){let i;if("function"==typeof e)t=e.call({"":t},"",t),i=e;else if(Array.isArray(e)){let t=e.filter(t=>"number"==typeof t||t instanceof String||t instanceof Number).map(String);t.length>0&&(e=e.concat(t)),i=e}else void 0===n&&e&&(n=e,e=void 0);let{aliasDuplicateObjects:r,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:l,tag:c}=n??{},{onAnchor:p,setAnchors:u,sourceObjects:f}=function(t,e){let n=[],i=new Map,r=null;return{onAnchor:i=>{n.push(i),r||(r=X(t));let a=V(e,r);return r.add(a),a},setAnchors:()=>{for(let t of n){let e=i.get(t);if("object"==typeof e&&e.anchor&&(A(e.node)||$(e.node)))e.node.anchor=e.anchor;else{let e=Error("Failed to resolve repeated object (this should not happen)");throw e.source=t,e}}},sourceObjects:i}}(this,a||"a"),h={aliasDuplicateObjects:r??!0,keepUndefined:s??!1,onAnchor:p,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:f},d=Z(t,c,h);return o&&$(d)&&(d.flow=!0),u(),d}createPair(t,e,n={}){return new tO(this.createNode(t,null,n),this.createNode(e,null,n))}delete(t){return!!eg(this.contents)&&this.contents.delete(t)}deleteIn(t){return te(t)?null!=this.contents&&(this.contents=null,!0):!!eg(this.contents)&&this.contents.deleteIn(t)}get(t,e){return $(this.contents)?this.contents.get(t,e):void 0}getIn(t,e){return te(t)?!e&&A(this.contents)?this.contents.value:this.contents:$(this.contents)?this.contents.getIn(t,e):void 0}has(t){return!!$(this.contents)&&this.contents.has(t)}hasIn(t){return te(t)?void 0!==this.contents:!!$(this.contents)&&this.contents.hasIn(t)}set(t,e){null==this.contents?this.contents=tt(this.schema,[t],e):eg(this.contents)&&this.contents.set(t,e)}setIn(t,e){te(t)?this.contents=e:null==this.contents?this.contents=tt(this.schema,Array.from(t),e):eg(this.contents)&&this.contents.setIn(t,e)}setSchema(t,e={}){let n;switch("number"==typeof t&&(t=String(t)),t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new F({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new F({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let e=JSON.stringify(t);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${e}`)}}if(e.schema instanceof Object)this.schema=e.schema;else if(n)this.schema=new ed(Object.assign(n,e));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:e,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!t,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof i?i:100},s=H(this.contents,e??"",o);if("function"==typeof r)for(let{count:t,res:e}of o.anchors.values())r(e,t);return"function"==typeof a?Y(a,{"":s},"",s):s}toJSON(t,e){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:e})}toString(t={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||0>=Number(t.indent))){let e=JSON.stringify(t.indent);throw Error(`"indent" option must be a positive integer, not ${e}`)}return function(t,e){let n=[],i=!0===e.directives;if(!1!==e.directives&&t.directives){let e=t.directives.toString(t);e?(n.push(e),i=!0):t.directives.docStart&&(i=!0)}i&&n.push("---");let r=ty(t,e),{commentString:a}=r.options;if(t.commentBefore){1!==n.length&&n.unshift("");let e=a(t.commentBefore);n.unshift(tr(e,""))}let o=!1,s=null;if(t.contents){if(T(t.contents)){if(t.contents.spaceBefore&&i&&n.push(""),t.contents.commentBefore){let e=a(t.contents.commentBefore);n.push(tr(e,""))}r.forceBlockIndent=!!t.comment,s=t.contents.comment}let e=s?void 0:()=>o=!0,l=tx(t.contents,r,()=>s=null,e);s&&(l+=ta(l,"",a(s))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(tx(t.contents,r));if(t.directives?.docEnd){if(t.comment){let e=a(t.comment);e.includes("\n")?(n.push("..."),n.push(tr(e,""))):n.push(`... ${e}`)}else n.push("...")}else{let e=t.comment;e&&o&&(e=e.replace(/^\n+/,"")),e&&((!o||s)&&""!==n[n.length-1]&&n.push(""),n.push(tr(a(e),"")))}return n.join("\n")+"\n"}(this,t)}}function eg(t){if($(t))return!0;throw Error("Expected a YAML collection as document contents")}
17class ev extends Error{constructor(t,e,n,i){super(),this.name=t,this.code=n,this.message=i,this.pos=e}}class ey extends ev{constructor(t,e,n){super("YAMLParseError",t,e,n)}}class ex extends ev{constructor(t,e,n){super("YAMLWarning",t,e,n)}}let eb=(t,e)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(t=>e.linePos(t));let{line:i,col:r}=n.linePos[0];n.message+=` at line ${i}, column ${r}`;let a=r-1,o=t.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(a>=60&&o.length>80){let t=Math.min(a-39,o.length-79);o="…"+o.substring(t),a-=t-1}if(o.length>80&&(o=o.substring(0,79)+"…"),i>1&&/^ *$/.test(o.substring(0,a))){let n=t.substring(e.lineStarts[i-2],e.lineStarts[i-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let t=1,e=n.linePos[1];e&&e.line===i&&e.col>r&&(t=Math.max(1,Math.min(e.col-r,80-a)));let s=" ".repeat(a)+"^".repeat(t);n.message+=`:
18
19${o}
20${s}
21`}};function ew(t,{flow:e,indicator:n,next:i,offset:r,onError:a,parentIndent:o,startOnNewline:s}){let l=!1,c=s,p=s,u="",f="",h=!1,d=!1,m=null,g=null,v=null,y=null,x=null,b=null,w=null;for(let r of t)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&a(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),m&&(c&&"comment"!==r.type&&"newline"!==r.type&&a(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),r.type){case"space":!e&&("doc-start"!==n||i?.type!=="flow-collection")&&r.source.includes("	")&&(m=r),p=!0;break;case"comment":{p||a(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=r.source.substring(1)||" ";u?u+=f+t:u=t,f="",c=!1;break}case"newline":c?u?u+=r.source:b&&"seq-item-ind"===n||(l=!0):f+=r.source,c=!0,h=!0,(g||v)&&(y=r),p=!0;break;case"anchor":g&&a(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&a(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=r,null===w&&(w=r.offset),c=!1,p=!1,d=!0;break;case"tag":v&&a(r,"MULTIPLE_TAGS","A node can have at most one tag"),v=r,null===w&&(w=r.offset),c=!1,p=!1,d=!0;break;case n:(g||v)&&a(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),b&&a(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${e??"collection"}`),b=r,c="seq-item-ind"===n||"explicit-key-ind"===n,p=!1;break;case"comma":if(e){x&&a(r,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),x=r,c=!1,p=!1;break}default:a(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,p=!1}let k=t[t.length-1],_=k?k.offset+k.source.length:r;return d&&i&&"space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&("scalar"!==i.type||""!==i.source)&&a(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=o||i?.type==="block-map"||i?.type==="block-seq")&&a(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:x,found:b,spaceBefore:l,comment:u,hasNewline:h,anchor:g,tag:v,newlineAfterProp:y,end:_,start:w??_}}function ek(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end){for(let e of t.end)if("newline"===e.type)return!0}return!1;case"flow-collection":for(let e of t.items){for(let t of e.start)if("newline"===t.type)return!0;if(e.sep){for(let t of e.sep)if("newline"===t.type)return!0}if(ek(e.key)||ek(e.value))return!0}return!1;default:return!0}}function e_(t,e,n){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===t&&("]"===i.source||"}"===i.source)&&ek(e)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function eE(t,e,n){let{uniqueKeys:i}=t.options;if(!1===i)return!1;let r="function"==typeof i?i:(t,e)=>t===e||A(t)&&A(e)&&t.value===e.value;return e.some(t=>r(t.key,n))}let eS="All mapping items must start at the same column";function eA(t,e,n,i){let r="";if(t){let a=!1,o="";for(let s of t){let{source:t,type:l}=s;switch(l){case"space":a=!0;break;case"comment":{n&&!a&&i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=t.substring(1)||" ";r?r+=o+e:r=e,o="";break}case"newline":r&&(o+=t),a=!0;break;default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}e+=t.length}}return{comment:r,offset:e}}let eO="Block collections are not allowed within flow collections",e$=t=>t&&("block-map"===t.type||"block-seq"===t.type);function eT(t,e,n,i,r,a){let o="block-map"===n.type?function({composeNode:t,composeEmptyNode:e},n,i,r,a){let o=new(a?.nodeClass??tN)(n.schema);n.atRoot&&(n.atRoot=!1);let s=i.offset,l=null;for(let a of i.items){let{start:c,key:p,sep:u,value:f}=a,h=ew(c,{indicator:"explicit-key-ind",next:p??u?.[0],offset:s,onError:r,parentIndent:i.indent,startOnNewline:!0}),d=!h.found;if(d){if(p&&("block-seq"===p.type?r(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==i.indent&&r(s,"BAD_INDENT",eS)),!h.anchor&&!h.tag&&!u){l=h.end,h.comment&&(o.comment?o.comment+="\n"+h.c
21omment:o.comment=h.comment);continue}(h.newlineAfterProp||ek(p))&&r(p??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==i.indent&&r(s,"BAD_INDENT",eS);n.atKey=!0;let m=h.end,g=p?t(n,p,h,r):e(n,m,c,null,h,r);n.schema.compat&&e_(i.indent,p,r),n.atKey=!1,eE(n,o.items,g)&&r(m,"DUPLICATE_KEY","Map keys must be unique");let v=ew(u??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:r,parentIndent:i.indent,startOnNewline:!p||"block-scalar"===p.type});if(s=v.end,v.found){d&&(f?.type!=="block-map"||v.hasNewline||r(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&h.start<v.found.offset-1024&&r(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=f?t(n,f,v,r):e(n,s,u,null,v,r);n.schema.compat&&e_(i.indent,f,r),s=l.range[2];let c=new tO(g,l);n.options.keepSourceTokens&&(c.srcToken=a),o.items.push(c)}else{d&&r(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),v.comment&&(g.comment?g.comment+="\n"+v.comment:g.comment=v.comment);let t=new tO(g);n.options.keepSourceTokens&&(t.srcToken=a),o.items.push(t)}}return l&&l<s&&r(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[i.offset,s,l??s],o}(t,e,n,i,a):"block-seq"===n.type?function({composeNode:t,composeEmptyNode:e},n,i,r,a){let o=new(a?.nodeClass??tC)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let s=i.offset,l=null;for(let{start:a,value:c}of i.items){let p=ew(a,{indicator:"seq-item-ind",next:c,offset:s,onError:r,parentIndent:i.indent,startOnNewline:!0});if(!p.found){if(p.anchor||p.tag||c)c&&"block-seq"===c.type?r(p.end,"BAD_INDENT","All sequence items must start at the same column"):r(s,"MISSING_CHAR","Sequence item without - indicator");else{l=p.end,p.comment&&(o.comment=p.comment);continue}}let u=c?t(n,c,p,r):e(n,p.end,a,null,p,r);n.schema.compat&&e_(i.indent,c,r),s=u.range[2],o.items.push(u)}return o.range=[i.offset,s,l??s],o}(t,e,n,i,a):function({composeNode:t,composeEmptyNode:e},n,i,r,a){let o="{"===i.start.source,s=o?"flow map":"flow sequence",l=new(a?.nodeClass??(o?tN:tC))(n.schema);l.flow=!0;let c=n.atRoot;c&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=i.offset+i.start.source.length;for(let a=0;a<i.items.length;++a){let c=i.items[a],{start:u,key:f,sep:h,value:d}=c,m=ew(u,{flow:s,indicator:"explicit-key-ind",next:f??h?.[0],offset:p,onError:r,parentIndent:i.indent,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!h&&!d){0===a&&m.comma?r(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):a<i.items.length-1&&r(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),p=m.end;continue}!o&&n.options.strict&&ek(f)&&r(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===a)m.comma&&r(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(m.comma||r(m.start,"MISSING_CHAR",`Missing , between ${s} items`),m.comment){let t="";e:for(let e of u)switch(e.type){case"comma":case"space":break;case"comment":t=e.source.substring(1);break e;default:break e}if(t){let e=l.items[l.items.length-1];S(e)&&(e=e.value??e.key),e.comment?e.comment+="\n"+t:e.comment=t,m.comment=m.comment.substring(t.length+1)}}if(o||h||m.found){n.atKey=!0;let a=m.end,g=f?t(n,f,m,r):e(n,a,u,null,m,r);e$(f)&&r(g.range,"BLOCK_IN_FLOW",eO),n.atKey=!1;let v=ew(h??[],{flow:s,indicator:"map-value-ind",next:d,offset:g.range[2],onError:r,parentIndent:i.indent,startOnNewline:!1});if(v.found){if(!o&&!m.found&&n.options.strict){if(h)for(let t of h){if(t===v.found)break;if("newline"===t.type){r(t,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<v.found.offset-1024&&r(v.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else d&&("source"in d&&d.source&&":"===d.source[0]?r(d,"MISSING_CHAR",`Missing space after : in ${s}`):r(v.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let y=d?t(n,d,v,r):v.found?e(n,v.end,h,null,v,r):null;y?e$(d)&&r(y.range,"BLOCK_IN_FLOW",eO):v.comment&&(g.comment?g.comment+="\n"+v.comment:g.comment=v.comment);let x=new tO(g,y);if(n.options.keepSourceTokens&&(x.srcToken=c),o)eE(n,l.items,g)&&r(a,"DUPLICATE_KEY","Map ke
21ys must be unique"),l.items.push(x);else{let t=new tN(n.schema);t.flow=!0,t.items.push(x);let e=(y??g).range;t.range=[g.range[0],e[1],e[2]],l.items.push(t)}p=y?y.range[2]:v.end}else{let i=d?t(n,d,m,r):e(n,m.end,h,null,m,r);l.items.push(i),p=i.range[2],e$(d)&&r(i.range,"BLOCK_IN_FLOW",eO)}}let u=o?"}":"]",[f,...h]=i.end,d=p;if(f&&f.source===u)d=f.offset+f.source.length;else{let t=s[0].toUpperCase()+s.substring(1),e=c?`${t} must end with a ${u}`:`${t} in block collection must be sufficiently indented and end with a ${u}`;r(p,c?"MISSING_CHAR":"BAD_INDENT",e),f&&1!==f.source.length&&h.unshift(f)}if(h.length>0){let t=eA(h,d,n.options.strict,r);t.comment&&(l.comment?l.comment+="\n"+t.comment:l.comment=t.comment),l.range=[i.offset,d,t.offset]}else l.range=[i.offset,d,d];return l}(t,e,n,i,a),s=o.constructor;return"!"===r||r===s.tagName?o.tag=s.tagName:r&&(o.tag=r),o}function ej(t){let e,n;try{e=RegExp("(.*?)(?<![ 	])[ 	]*\r?\n","sy"),n=RegExp("[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?\n","sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=e.exec(t);if(!i)return t;let r=i[1],a=" ",o=e.lastIndex;for(n.lastIndex=o;i=n.exec(t);)""===i[1]?"\n"===a?r+=a:a="\n":(r+=a+i[1],a=" "),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,i=s.exec(t),r+a+(i?.[1]??"")}let eN={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:"	",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","	":"	"};function eI(t,e,n,i){let r,a;let{value:o,type:s,comment:l,range:c}="block-scalar"===e.type?function(t,e,n){let i=e.offset,r=function({offset:t,props:e},n,i){if("block-scalar-header"!==e[0].type)return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=e[0],a=r[0],o=0,s="",l=-1;for(let e=1;e<r.length;++e){let n=r[e];if(s||"-"!==n&&"+"!==n){let i=Number(n);!o&&i?o=i:-1===l&&(l=t+e)}else s=n}-1!==l&&i(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,p="",u=r.length;for(let t=1;t<e.length;++t){let r=e[t];switch(r.type){case"space":c=!0;case"newline":u+=r.source.length;break;case"comment":n&&!c&&i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=r.source.length,p=r.source.substring(1);break;case"error":i(r,"UNEXPECTED_TOKEN",r.message),u+=r.source.length;break;default:{let t=`Unexpected token in block scalar header: ${r.type}`;i(r,"UNEXPECTED_TOKEN",t);let e=r.source;e&&"string"==typeof e&&(u+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:p,length:u}}(e,t.options.strict,n);if(!r)return{value:"",type:null,comment:"",range:[i,i,i]};let a=">"===r.mode?Q.BLOCK_FOLDED:Q.BLOCK_LITERAL,o=e.source?function(t){let e=t.split(/\n( *)/),n=e[0],i=n.match(/^( *)/),r=[i?.[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let t=1;t<e.length;t+=2)r.push([e[t],e[t+1]]);return r}(e.source):[],s=o.length;for(let t=o.length-1;t>=0;--t){let e=o[t][1];if(""===e||"\r"===e)s=t;else break}if(0===s){let t="+"===r.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",n=i+r.length;return e.source&&(n+=e.source.length),{value:t,type:a,comment:r.comment,range:[i,n,n]}}let l=e.indent+r.indent,c=e.offset+r.length,p=0;for(let e=0;e<s;++e){let[i,a]=o[e];if(""===a||"\r"===a)0===r.indent&&i.length>l&&(l=i.length);else{i.length<l&&n(c+i.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===r.indent&&(l=i.length),p=e,0!==l||t.atRoot||n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=i.length+a.length+1}for(let t=o.length-1;t>=s;--t)o[t][0].length>l&&(s=t+1);let u="",f="",h=!1;for(let t=0;t<p;++t)u+=o[t][0].slice(l)+"\n";for(let t=p;t<s;++t){let[e,i]=o[t];c+=e.length+i.length+1;let s="\r"===i[i.length-1];if(s&&(i=i.slice(0,-1)),i&&e.length<l){let t=r.indent?"explicit indentation indicator":"first line",a=`Block scalar lines must not be less indented than their ${t}`;n(c-i.length-(s?2:1),"BAD_INDENT",a),e=""}a===Q.BLOCK_LITERAL?(u+=f+e.slice(l)+i,f="\n"):e.length>l||"	"===i[0]?(" "===f?f="\n":h||"\n"!==f||(f="\n\n"),u+=f+e.slice(l)+i,f="\n",h=!0):""===i?"\n"===f?u+="\n":f="\n":(u+=f+i,f=" ",h=!1)}switch(r.chomp){case"-":break;case"+":for(let t=s;t<o.length;++t)u+="\n"+o[t][0].slice(l);
21"\n"!==u[u.length-1]&&(u+="\n");break;default:u+="\n"}let d=i+r.length+e.source.length;return{value:u,type:a,comment:r.comment,range:[i,d,d]}}(t,e,i):function(t,e,n){let i,r;let{offset:a,type:o,source:s,end:l}=t,c=(t,e,i)=>n(a+t,e,i);switch(o){case"scalar":i=Q.PLAIN,r=function(t,e){let n="";switch(t[0]){case"	":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${t[0]}`;break;case"@":case"`":n=`reserved character ${t[0]}`}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),ej(t)}(s,c);break;case"single-quoted-scalar":i=Q.QUOTE_SINGLE,("'"!==s[s.length-1]||1===s.length)&&c(s.length,"MISSING_CHAR","Missing closing 'quote"),r=ej(s.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":i=Q.QUOTE_DOUBLE,r=function(t,e){let n="";for(let i=1;i<t.length-1;++i){let r=t[i];if("\r"!==r||"\n"!==t[i+1]){if("\n"===r){let{fold:e,offset:r}=function(t,e){let n="",i=t[e+1];for(;(" "===i||"	"===i||"\n"===i||"\r"===i)&&("\r"!==i||"\n"===t[e+2]);)"\n"===i&&(n+="\n"),e+=1,i=t[e+1];return n||(n=" "),{fold:n,offset:e}}(t,i);n+=e,i=r}else if("\\"===r){let r=t[++i],a=eN[r];if(a)n+=a;else if("\n"===r)for(r=t[i+1];" "===r||"	"===r;)r=t[++i+1];else if("\r"===r&&"\n"===t[i+1])for(r=t[++i+1];" "===r||"	"===r;)r=t[++i+1];else if("x"===r||"u"===r||"U"===r){let a={x:2,u:4,U:8}[r];n+=function(t,e,n,i){let r=t.substr(e,n),a=r.length===n&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(a)){let r=t.substr(e-2,n+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),r}return String.fromCodePoint(a)}(t,i+1,a,e),i+=a}else{let r=t.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),n+=r}}else if(" "===r||"	"===r){let e=i,a=t[i+1];for(;" "===a||"	"===a;)a=t[++i+1];"\n"===a||"\r"===a&&"\n"===t[i+2]||(n+=i>e?t.slice(e,i+1):r)}else n+=r}}return('"'!==t[t.length-1]||1===t.length)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[a,a+s.length,a+s.length]}}let p=a+s.length,u=eA(l,p,e,n);return{value:r,type:i,comment:u.comment,range:[a,p,u.offset]}}(e,t.options.strict,i),p=n?t.directives.tagName(n.source,t=>i(n,"TAG_RESOLVE_FAILED",t)):null;r=t.options.stringKeys&&t.atKey?t.schema[x]:p?function(t,e,n,i,r){if("!"===n)return t[x];let a=[];for(let e of t.tags)if(!e.collection&&e.tag===n){if(!e.default||!e.test)return e;a.push(e)}for(let t of a)if(t.test?.test(e))return t;let o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),t[x])}(t.schema,o,p,n,i):"scalar"===e.type?function({atKey:t,directives:e,schema:n},i,r,a){let o=n.tags.find(e=>(!0===e.default||t&&"key"===e.default)&&e.test?.test(i))||n[x];if(n.compat){let t=n.compat.find(t=>t.default&&t.test?.test(i))??n[x];if(o.tag!==t.tag){let n=e.tagString(o.tag),i=e.tagString(t.tag);a(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${i}`,!0)}}return o}(t,o,e,i):t.schema[x];try{let s=r.resolve(o,t=>i(n??e,"TAG_RESOLVE_FAILED",t),t.options);a=A(s)?s:new Q(s)}catch(t){i(n??e,"TAG_RESOLVE_FAILED",t instanceof Error?t.message:String(t)),a=new Q(o)}return a.range=c,a.source=o,s&&(a.type=s),p&&(a.tag=p),r.format&&(a.format=r.format),l&&(
21a.comment=l),a}let eC={composeNode:eM,composeEmptyNode:eL};function eM(t,e,n,i){let r;let a=t.atKey,{spaceBefore:o,comment:s,anchor:l,tag:c}=n,p=!0;switch(e.type){case"alias":r=function({options:t},{offset:e,source:n,end:i},r){let a=new J(n.substring(1));""===a.source&&r(e,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&r(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+n.length,s=eA(i,o,t.strict,r);return a.range=[e,o,s.offset],s.comment&&(a.comment=s.comment),a}(t,e,i),(l||c)&&i(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":r=eI(t,e,c,i),l&&(r.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":r=function(t,e,n,i,r){let a=i.tag,o=a?e.directives.tagName(a.source,t=>r(a,"TAG_RESOLVE_FAILED",t)):null;if("block-seq"===n.type){let{anchor:t,newlineAfterProp:e}=i,n=t&&a?t.offset>a.offset?t:a:t??a;n&&(!e||e.offset<n.offset)&&r(n,"MISSING_CHAR","Missing newline after block sequence props")}let s="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!a||!o||"!"===o||o===tN.tagName&&"map"===s||o===tC.tagName&&"seq"===s)return eT(t,e,n,r,o);let l=e.schema.tags.find(t=>t.tag===o&&t.collection===s);
21if(!l){let i=e.schema.knownTags[o];if(!i||i.collection!==s)return i?.collection?r(a,"BAD_COLLECTION_TYPE",`${i.tag} used for ${s} collection, but expects ${i.collection}`,!0):r(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),eT(t,e,n,r,o);e.schema.tags.push(Object.assign({},i,{default:!1})),l=i}let c=eT(t,e,n,r,o,l),p=l.resolve?.(c,t=>r(a,"TAG_RESOLVE_FAILED",t),e.options)??c,u=T(p)?p:new Q(p);return u.range=c.range,u.tag=o,l?.format&&(u.format=l.format),u}(eC,t,e,n,i),l&&(r.anchor=l.source.substring(1));break;default:{let a="error"===e.type?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",a),r=eL(t,e.offset,void 0,null,n,i),p=!1}}return l&&""===r.anchor&&i(l,"BAD_ALIAS","Anchor cannot be an empty string"),a&&t.options.stringKeys&&(!A(r)||"string"!=typeof r.value||r.tag&&"tag:yaml.org,2002:str"!==r.tag)&&i(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(r.spaceBefore=!0),s&&("scalar"===e.type&&""===e.source?r.comment=s:r.commentBefore=s),t.options.keepSourceTokens&&p&&(r.srcToken=e),r}function eL(t,e,n,i,{spaceBefore:r,comment:a,anchor:o,tag:s,end:l},c){let p=eI(t,{type:"scalar",offset:function(t,e,n){if(e){null===n&&(n=e.length);for(let i=n-1;i>=0;--i){let n=e[i];switch(n.type){case"space":case"comment":case"newline":t-=n.source.length;continue}for(n=e[++i];n?.type==="space";)t+=n.source.length,n=e[++i];break}}return t}(e,n,i),indent:-1,source:""},s,c);return o&&(p.anchor=o.source.substring(1),""===p.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(p.spaceBefore=!0),a&&(p.comment=a,p.range[2]=l),p}function ez(t){if("number"==typeof t)return[t,t+1];if(Array.isArray(t))return 2===t.length?t:[t[0],t[1]];let{offset:e,source:n}=t;return[e,e+("string"==typeof n?n.length:1)]}function eB(t){let e="",n=!1,i=!1;for(let r=0;r<t.length;++r){let a=t[r];switch(a[0]){case"#":e+=(""===e?"":i?"\n\n":"\n")+(a.substring(1)||" "),n=!0,i=!1;break;case"%":t[r+1]?.[0]!=="#"&&(r+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:e,afterEmptyLine:i}}class eD{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,e,n,i)=>{let r=ez(t);i?this.warnings.push(new ex(r,e,n)):this.errors.push(new ey(r,e,n))},this.directives=new F({version:t.version||"1.2"}),this.options=t}decorate(t,e){let{comment:n,afterEmptyLine:i}=eB(this.prelude);if(n){let r=t.contents;if(e)t.comment=t.comment?`${t.comment}
22${n}`:n;else if(i||t.directives.docStart||!r)t.commentBefore=n;else if($(r)&&!r.flow&&r.items.length>0){let t=r.items[0];S(t)&&(t=t.key);let e=t.commentBefore;t.commentBefore=e?`${n}
23${e}`:n}else{let t=r.commentBefore;r.commentBefore=t?`${n}
24${t}`:n}}e?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:eB(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,e=!1,n=-1){for(let e of t)yield*this.next(e);yield*this.end(e,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(e,n,i)=>{let r=ez(t);r[0]+=e,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let e=function(t,e,{offset:n,start:i,value:r,end:a},o){let s=new em(void 0,Object.assign({_directives:e},t)),l={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},c=ew(i,{indicator:"doc-start",next:r??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(s.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),s.contents=r?eM(l,r,c,o):eL(l,c.end,i,null,c,o);let p=s.contents.range[2],u=eA(a,p,!1,o);return u.comment&&(s.comment=u.comment),s.range=[n,p,u.offset],s}(this.options,this.directives,t,this.onError);this.atDirectives&&!e.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(e,!1),this.doc&&(yield this.doc),this.doc=e,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let e=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new ey(ez(t),"UNEXPECTED_TOKEN",e);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new ey(ez(t),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let e=eA(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),e.comment){let t=this.doc.comment;this.doc.comment=t?`${t}
25${e.comment}`:e.comment}this.doc.range[2]=e.offset;break}default:this.errors.push(new ey(ez(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,e=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let t=new em(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(e,"MISSING_CHAR","Missing directives-end indicator line"),t.range=[0,e,e],this.decorate(t,!1),yield t}}}let eP=Symbol("break visit"),eR=Symbol("skip children"),eq=Symbol("remove item");function eK(t,e){"type"in t&&"document"===t.type&&(t={start:t.start,value:t.value}),function t(e,n,i){let r=i(n,e);if("symbol"==typeof r)return r;for(let a of["key","value"]){let o=n[a];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let r=t(Object.freeze(e.concat([[a,n]])),o.items[n],i);if("number"==typeof r)n=r-1;else{if(r===eP)return eP;r===eq&&(o.items.splice(n,1),n-=1)}}"function"==typeof r&&"key"===a&&(r=r(n,e))}}return"function"==typeof r?r(n,e):r}(Object.freeze([]),t,e)}function eF(t){switch(t){case void 0:case" ":case"\n":case"\r":case"	":return!0;default:return!1}}eK.BREAK=eP,eK.SKIP=eR,eK.REMOVE=eq,eK.itemAtPath=(t,e)=>{let n=t;for(let[t,i]of e){let e=n?.[t];if(!e||!("items"in e))return;n=e.items[i]}return n},eK.parentCollection=(t,e)=>{let n=eK.itemAtPath(t,e.slice(0,-1)),i=e[e.length-1][0],r=n?.[i];if(r&&"items"in r)return r;throw Error("Parent collection not found")};let eU=new Set("0123456789ABCDEFabcdef"),eX=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),eV=new Set(",[]{}"),eY=new Set(" ,[]{}\n\r	"),eH=t=>!t||eY.has(t);class eW{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,e=!1){if(t){if("string"!=typeof t)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!e;let n=this.next??"stream";for(;n&&(e||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,e=this.buffer[t];for(;" "===e||"	"===e;)e=this.buffer[++t];return!e||"#"===e||"\n"===e||"\r"===e&&"\n"===this.buffer[t+1]}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let e=this.buffer[t];if(this.indentNext>0){let n=0;for(;" "===e;)e=this.buffer[++n+t];if("\r"===e){let e=this.buffer[n+t+1];if("\n"===e||!e&&!this.atEnd)return t+n+1}return"\n"!==e&&!(n>=this.indentNext)&&(e||this.atEnd)?-1:t+n}if("-"===e||"."===e){let e=this.buffer.substr(t,3);if(("---"===e||"..."===e)&&eF(this.buffer[t+3]))return -1}return t}getLine(){let t=this.lineEndPos;return(("number"!=typeof t||-1!==t&&t<this.pos)&&(t=this.buffer.indexOf("\n",this.pos),this.lineEndPos=t),-1===t)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[t-1]&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(null===t)return this.setNext("stream");if("\uFEFF"===t[0]&&(yield*this.pushCount(1),t=t.substring(1)),"%"===t[0]){let e=t.length,n=t.indexOf("#");for(;-1!==n;){let i=t[n-1];if(" "===i||"	"===i){e=n-1;break}n=t.indexOf("#",n+1)}for(;;){let n=t[e-1];if(" "===n||"	"===n)e-=1;else break}let i=(yield*this.pushCount(e))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){let e=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-e),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if("-"===t||"."===t){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if(("---"===t||"..."===t)&&eF(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===t?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!eF(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,e]=this.peek(2);if(!e&&!this.atEnd)return this.setNext("block-start");if(("-"===t||"?"===t||":"===t)&&eF(e)){let t=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=t,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(null===t)return this.setNext("doc");let e=yield*this.pushIndicators();switch(t[e]){case"#":yield*this.pushCount(t.length-e);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";
25case"*":return yield*this.pushUntil(eH),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return e+=(yield*this.parseBlockScalarHeader())+(yield*this.pushSpaces(!0)),yield*this.pushCount(t.length-e),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,e;let n=-1;do(t=yield*this.pushNewline())>0?(e=yield*this.pushSpaces(!1),this.indentValue=n=e):e=0,e+=yield*this.pushSpaces(!0);while(t+e>0);let i=this.getLine();if(null===i)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==i[0]||0===n&&(i.startsWith("---")||i.startsWith("..."))&&eF(i[3]))&&!(n===this.indentNext-1&&1===this.flowLevel&&("]"===i[0]||"}"===i[0])))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let r=0;for(;","===i[r];)r+=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i[r+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(eH),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let t=this.charAt(1);if(this.flowKey||eF(t)||","===t)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),e=this.buffer.indexOf(t,this.pos+1);if("'"===t)for(;-1!==e&&"'"===this.buffer[e+1];)e=this.buffer.indexOf("'",e+2);else for(;-1!==e;){let t=0;for(;"\\"===this.buffer[e-1-t];)t+=1;if(t%2==0)break;e=this.buffer.indexOf('"',e+1)}let n=this.buffer.substring(0,e),i=n.indexOf("\n",this.pos);if(-1!==i){for(;-1!==i;){let t=this.continueScalar(i+1);if(-1===t)break;i=n.indexOf("\n",t)}-1!==i&&(e=i-("\r"===n[i-1]?2:1))}if(-1===e){if(!this.atEnd)return this.setNext("quoted-scalar");e=this.buffer.length}return yield*this.pushToIndex(e+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let e=this.buffer[++t];if("+"===e)this.blockScalarKeep=!0;else if(e>"0"&&e<="9")this.blockScalarIndent=Number(e)-1;else if("-"!==e)break}return yield*this.pushUntil(t=>eF(t)||"#"===t)}*parseBlockScalar(){let t,e=this.pos-1,n=0;e:for(let i=this.pos;t=this.buffer[i];++i)switch(t){case" ":n+=1;break;case"\n":e=i,n=0;break;case"\r":{let t=this.buffer[i+1];if(!t&&!this.atEnd)return this.setNext("block-scalar");if("\n"===t)break}default:break e}if(!t&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let t=this.continueScalar(e+1);if(-1===t)break;e=this.buffer.indexOf("\n",t)}while(-1!==e);if(-1===e){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(t=this.buffer[i];" "===t;)t=this.buffer[++i];if("	"===t){for(;"	"===t||" "===t||"\r"===t||"\n"===t;)t=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)for(;;){let t=e-1,i=this.buffer[t];"\r"===i&&(i=this.buffer[--t]);let r=t;for(;" "===i;)i=this.buffer[--t];if("\n"===i&&t>=this.pos&&t+1+n>r)e=t;else break}return yield"\x1f",yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t;let e=this.flowLevel>0,n=this.pos-1,i=this.pos-1;for(;t=this.buffer[++i];)if(":"===t){let t=this.buffer[i+1];if(eF(t)||e&&eV.has(t))break;n=i}else if(eF(t)){let r=this.buffer[i+1];if("\r"===t&&("\n"===r?(i+=1,t="\n",r=this.buffer[i+1]):n=i),"#"===r||e&&eV.has(r))break;if("\n"===t){let t=this.continueScalar(i+1);if(-1===t)break;i=Math.max(i,t-2)}}else{if(e&&eV.has(t))break;n=i}return t||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,e){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(e&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(eH))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,e=this.charAt(1);if(eF(e)||t&&eV.has(e))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let t=this.pos+2,e=this.buffer[t];for(;!eF(e)&&">"!==e;)e=this.buffer[++t];return yield*this.pushToIndex(">"===e?t+1:t,!1)}{let t=this.pos+1,e=this.buffer[t];for(;e;)if(eX.has(e))e=this.buffer[++t];else if("%"===e&&eU.has(this.buffer[t+1])&&eU.has(this.buffer[t+2]))e=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return"\n"===t?yield*this.pushCount(1):"\r"===t&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(t){let e,n=this.pos-1;do e=this.buffer[++n];while(" "===e||t&&"	"===e);let i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let e=this.pos,n=this.buffer[e];for(;!t(n);)n=this.buffer[++e];return yield*this.pushToIndex(e,!1)}}function eJ(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}function eG(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return -1}function eQ(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function eZ(t){switch(t.type){case"document":return t.start;case"block-map":{let e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function e0(t){if(0===t.length)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function e1(t){if("flow-seq-start"===t.start.type)for(let e of t.items)!e.sep||e.value||eJ(e.start,"explicit-key-ind")||eJ(e.sep,"map-value-ind")||(e.key&&(e.value=e.key),delete e.key,eQ(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class e2{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new eW,this.onNewLine=t}*parse(t,e=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(t,e)))yield*this.next(n);e||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let e=function(t){switch(t){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case"	":return"space";case"#":return"comment";
25case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(t);if(e){if("scalar"===e)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=e,yield*this.step(),e){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&" "===t[0]&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}}else{let e=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:e,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if("doc-end"===this.type&&(!t||"doc-end"!==t.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let e=t??this.stack.pop();if(e){if(0===this.stack.length)yield e;else{let t=this.peek(1);switch("block-scalar"===e.type?e.indent="indent"in t?t.indent:0:"flow-collection"===e.type&&"document"===t.type&&(e.indent=0),"flow-collection"===e.type&&e1(e),t.type){case"document":t.value=e;break;case"block-scalar":t.props.push(e);break;case"block-map":{let n=t.items[t.items.length-1];if(n.value){t.items.push({start:[],key:e,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=e;else{Object.assign(n,{key:e,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=t.items[t.items.length-1];n.value?t.items.push({start:[],value:e}):n.value=e;break}case"flow-collection":{let n=t.items[t.items.length-1];!n||n.value?t.items.push({start:[],key:e,sep:[]}):n.sep?n.value=e:Object.assign(n,{key:e,sep:[]});return}default:yield*this.pop(),yield*this.pop(e)}if(("document"===t.type||"block-map"===t.type||"block-seq"===t.type)&&("block-map"===e.type||"block-seq"===e.type)){let n=e.items[e.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===eG(n.start)&&(0===e.indent||n.start.every(t=>"comment"!==t.type||t.indent<e.indent))&&("document"===t.type?t.end=n.start:t.items.push({start:n.start}),e.items.splice(-1,1))}}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":-1!==eG(t.start)?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let e=this.startBlockValue(t);e?this.stack.push(e):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if("map-value-ind"===this.type){let e;let n=e0(eZ(this.peek(2)));t.end?((e=t.end).push(this.sourceToken),delete t.end):e=[this.sourceToken];let i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:e}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf("\n")+1;for(;0!==t;)this.onNewLine(this.offset+t),t=this.source.indexOf("\n",t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let e=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,e.value){let n="end"in e.value?e.value.end:void 0,i=Array.isArray(n)?n[n.length-1]:void 0;i?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}
25else e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"space":case"comment":if(e.value)t.items.push({start:[this.sourceToken]});else if(e.sep)e.sep.push(this.sourceToken);else{if(this.atIndentedComment(e.start,t.indent)){let n=t.items[t.items.length-2],i=n?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,e.start),i.push(this.sourceToken),t.items.pop();return}}e.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,i=n&&(e.sep||e.explicitKey)&&"seq-item-ind"!==this.type,r=[];if(i&&e.sep&&!e.value){let n=[];for(let i=0;i<e.sep.length;++i){let r=e.sep[i];switch(r.type){case"newline":n.push(i);break;case"space":break;case"comment":r.indent>t.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=e.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":i||e.value?(r.push(this.sourceToken),t.items.push({start:r}),this.onKeyLine=!0):e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"explicit-key-ind":e.sep||e.explicitKey?i||e.value?(r.push(this.sourceToken),t.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(e.start.push(this.sourceToken),e.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(e.explicitKey){if(e.sep){if(e.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(eJ(e.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(eQ(e.key)&&!eJ(e.sep,"newline")){let t=e0(e.start),n=e.key,i=e.sep;i.push(this.sourceToken),delete e.key,delete e.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:n,sep:i}]})}else r.length>0?e.sep=e.sep.concat(r,this.sourceToken):e.sep.push(this.sourceToken)}else if(eJ(e.start,"newline"))Object.assign(e,{key:null,sep:[this.sourceToken]});else{let t=e0(e.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]})}}else e.sep?e.value||i?t.items.push({start:r,key:null,sep:[this.sourceToken]}):eJ(e.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):e.sep.push(this.sourceToken):Object.assign(e,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);i||e.value?(t.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):e.sep?this.stack.push(n):(Object.assign(e,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let e=this.startBlockValue(t);if(e){n&&"block-seq"!==e.type&&t.items.push({start:r}),this.stack.push(e);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let e=t.items[t.items.length-1];switch(this.type){case"newline":if(e.value){let n="end"in e.value?e.value.end:void 0,i=Array.isArray(n)?n[n.length-1]:void 0;i?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else e.start.push(this.sourceToken);return;case"space":case"comment":if(e.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(e.start,t.indent)){let n=t.items[t.items.length-2],i=n?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,e.start),i.push(this.sourceToken),t.items.pop();return}}e.start.push(this.sourceToken)}return;case"anchor":case"tag":if(e.value||this.indent<=t.indent)break;e.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;e.value||eJ(e.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):e.start.push(this.sourceToken);return}if(this.indent>t.indent){let e=this.startBlockValue(t);if(e){this.stack.push(e);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let e=t.items[t.items.length-1];if("flow-error-end"===this.type){let t;do yield*this.pop(),t=this.peek(1);while(t&&"flow-collection"===t.type)}else if(0===t.end.length){switch(this.type){case"comma":case"explicit-key-ind":!e||e.sep?t.items.push({start:[this.sourceToken]}):e.start.push(this.sourceToken);return;case"map-value-ind":!e||e.value?t.items.push({start:[],key:null,
25sep:[this.sourceToken]}):e.sep?e.sep.push(this.sourceToken):Object.assign(e,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!e||e.value?t.items.push({start:[this.sourceToken]}):e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!e||e.value?t.items.push({start:[],key:n,sep:[]}):e.sep?this.stack.push(n):Object.assign(e,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let e=this.peek(2);if("block-map"!==e.type||("map-value-ind"!==this.type||e.indent!==t.indent)&&("newline"!==this.type||e.items[e.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==e.type){let n=e0(eZ(e));e1(t);let i=t.end.splice(1,t.end.length);i.push(this.sourceToken);let r={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(t)}else yield*this.pop(),yield*this.step()}}flowScalar(t){if(this.onNewLine){let t=this.source.indexOf("\n")+1;for(;0!==t;)this.onNewLine(this.offset+t),t=this.source.indexOf("\n",t)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let e=e0(eZ(t));return e.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let e=e0(eZ(t));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,e){return"comment"===this.type&&!(this.indent<=e)&&t.every(t=>"newline"===t.type||"space"===t.type)}*documentEnd(t){"doc-mode"!==this.type&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class e3{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let e=0,n=this.lineStarts.length;for(;e<n;){let i=e+n>>1;this.lineStarts[i]<t?e=i+1:n=i}if(this.lineStarts[e]===t)return{line:e+1,col:1};if(0===e)return{line:0,col:t};let i=this.lineStarts[e-1];return{line:e,col:t-i+1}}}}var e6=n(48);let e4={" ":'<svg width="16" height="16" viewBox="0 -3 24 24">
25<path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-5z" clip-rule="evenodd"/></svg>\n'.trim(),x:'<svg width="16" height="16" viewBox="0 -3 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>\n'.trim()};function e5(t,e){return"script"===e.type&&e.data.src?{...e,data:{...e.data,src:t.getFullUrl(e.data.src)}}:e}let e8="hljs",e7={name:e8,config:{versions:{hljs:"11.11.1"},preloadScripts:["@highlightjs/[email protected]/highlight.min.js"].map(t=>(0,r.FU)(t)),styles:["@highlightjs/[email protected]/styles/default.min.css"].map(t=>(0,r.my)(t))},transform(t){var e,n,i;let a;let o=(null==(n=null==(e=e7.config)?void 0:e.preloadScripts)?void 0:n.map(e=>e5(t.transformer.urlBuilder,e)))||[],s=()=>(a||(a=(0,r.fs)(o)),a),l=r.ZT;return t.parser.tap(e=>{e.set({highlight:(e,n)=>{l();let{hljs:i}=window;return i?i.highlightAuto(e,n?[n]:void 0).value:(s().then(()=>{t.retransform.call()}),e)}})}),t.beforeParse.tap((t,e)=>{l=()=>{e.features[e8]=!0}}),{styles:null==(i=e7.config)?void 0:i.styles}}},e9="katex",nt=["[email protected]/dist/katex.min.js"].map(t=>(0,r.FU)(t)),ne=(0,r.FU)("[email protected]/webfontloader.js");ne.data.defer=!0;let nn=["[email protected]/dist/katex.min.css"].map(t=>(0,r.my)(t)),ni=e6.default||e6,nr={name:e9,config:{versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts:nt,scripts:[{type:"iife",data:{fn:t=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{t().refreshHook.call()}}},getParams:({getMarkmap:t})=>[t]}},ne],styles:nn,resources:["[email protected]/dist/fonts/KaTeX_AMS-Regular.woff2","[email protected]/dist/fonts/KaTeX_Caligraphic-Bold.woff2","[email protected]/dist/fonts/KaTeX_Caligraphic-Regular.woff2","[email protected]/dist/fonts/KaTeX_Fraktur-Bold.woff2","[email protected]/dist/fonts/KaTeX_Fraktur-Regular.woff2","[email protected]/dist/fonts/KaTeX_Main-Bold.woff2","[email protected]/dist/fonts/KaTeX_Main-BoldItalic.woff2","[email protected]/dist/fonts/KaTeX_Main-Italic.woff2","[email protected]/dist/fonts/KaTeX_Main-Regular.woff2","[email protected]/dist/fonts/KaTeX_Math-BoldItalic.woff2","[email protected]/dist/fonts/KaTeX_Math-Italic.woff2","[email protected]/dist/fonts/KaTeX_SansSerif-Bold.woff2","[email protected]/dist/fonts/KaTeX_SansSerif-Italic.woff2","[email protected]/dist/fonts/KaTeX_SansSerif-Regular.woff2","[email protected]/dist/fonts/KaTeX_Script-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size1-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size2-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size3-Regular.woff2","[email protected]/dist/fonts/KaTeX_Size4-Regular.woff2","[email protected]/dist/fonts/KaTeX_Typewriter-Regular.woff2"]},transform(t){var e,n,i,a;let o;let s=(null==(n=null==(e=nr.config)?void 0:e.preloadScripts)?void 0:n.map(e=>e5(t.transformer.urlBuilder,e)))||[],l=()=>(o||(o=(0,r.fs)(s)),o),c=(e,n)=>{let{katex:i}=window;return i?i.renderToString(e,{displayMode:n,throwOnError:!1}):(l().then(()=>{t.retransform.call()}),e)},p=r.ZT;return t.parser.tap(t=>{t.use(ni),["math_block","math_inline"].forEach(e=>{t.renderer.rules[e]=(t,e)=>(p(),c(t[e].content,!!t[e].block))})}),t.beforeParse.tap((t,e)=>{p=()=>{e.features[e9]=!0}}),t.afterParse.tap((t,e)=>{var n;let i=null==(n=e.frontmatter)?void 0:n.markmap;i&&["extraJs","extraCss"].forEach(t=>{var e,n,r;let a=i[t];a&&(i[t]=(r=(null==(n=null==(e=nr.config)?void 0:e.versions)?void 0:n.katex)||"",a.map(t=>{if("string"==typeof t&&!t.includes("://")){t.startsWith("npm:")||(t=`npm:${t}`);let e=4+e9.length;t.startsWith(`npm:${e9}/`)&&(t=`${t.slice(0,e)}@${r}${t.slice(e)}`)}return t})))})}),{styles:null==(i=nr.config)?void 0:i.styles,scripts:null==(a=nr.config)?void 0:a.scripts}}},na=[{name:"frontmatter",transform:t=>(t.beforeParse.tap((t,e)=>{var n;let i;let{content:r}=e;if(!/^---\r?\n/.test(r))return;let a=/\n---\r?\n/.exec(r);if(!a)return;let o=r.slice(4,a.index).trimEnd();try{i=function(t,e,n){let i;let r=function(t,e={}){let{lineCounter:n,prettyErrors:i}=function(t){let e=!1!==t.prettyErrors;return{lineCounter:t.lineCounter||e&&new e3||null,prettyErrors:e}}(e),r=new e2(n?.addNewLine),a=new eD(e),o=null;for(let e of a.compose(r.parse(t),!0,t.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new ey(e.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=e;
25return i&&n&&(o.errors.forEach(eb(t,n)),o.warnings.forEach(eb(t,n))),o}(t,void 0);if(!r)return null;if(r.warnings.forEach(t=>tb(r.options.logLevel,t)),r.errors.length>0){if("silent"!==r.options.logLevel)throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:i},n))}(o.replace(/\r?\n|\r/g,"\n")),(null==i?void 0:i.markmap)&&(i.markmap=function(t){if(t)return["color","extraJs","extraCss"].forEach(e=>{var n;let i;null!=t[e]&&(t[e]=(n=t[e],"string"==typeof n?i=[n]:Array.isArray(n)&&(i=n.filter(t=>t&&"string"==typeof t)),(null==i?void 0:i.length)?i:void 0))}),["duration","maxWidth","initialExpandLevel"].forEach(e=>{null!=t[e]&&(t[e]=function(t){if(!isNaN(+t))return+t}(t[e]))}),t}(i.markmap))}catch{return}e.frontmatter=i,e.parserOptions={...e.parserOptions,...null==(n=null==i?void 0:i.markmap)?void 0:n.htmlParser},e.frontmatterInfo={lines:r.slice(0,a.index).split("\n").length+1,offset:a.index+a[0].length}}),{})},nr,e7,{name:"npmUrl",transform:t=>(t.afterParse.tap((e,n)=>{let{frontmatter:i}=n,r=null==i?void 0:i.markmap;r&&["extraJs","extraCss"].forEach(e=>{let n=r[e];n&&(r[e]=n.map(e=>e.startsWith("npm:")?t.transformer.urlBuilder.getFullUrl(e.slice(4)):e))})}),{})},{name:"checkbox",transform:t=>(t.parser.tap(t=>{t.core.ruler.before("inline","checkbox",t=>{for(let e=2;e<t.tokens.length;e+=1){let n=t.tokens[e];if("inline"===n.type&&n.content){let i=t.tokens[e-1].type,r=t.tokens[e-2].type;("heading_open"===i||"paragraph_open"===i&&"list_item_open"===r)&&(n.content=n.content.replace(/^\[(.)\] /,(t,e)=>e4[e]?`${e4[e]} `:t))}}return!1})}),{})},{name:"sourceLines",transform(t){let e=0;return t.beforeParse.tap((t,n)=>{var i;e=(null==(i=n.frontmatterInfo)?void 0:i.lines)||0}),t.parser.tap(t=>{t.renderer.renderAttrs=(0,r.kl)(t.renderer.renderAttrs,(t,n)=>{if(n.block&&n.map){let t=n.map.map(t=>t+e);n.attrSet("data-lines",t.join(","))}return t(n)}),t.renderer.rules.fence&&(t.renderer.rules.fence=(0,r.kl)(t.renderer.rules.fence,(t,n,i,...r)=>{let a=t(n,i,...r),o=n[i];if(a.startsWith("<pre>")&&o.map){let t=o.map.map(t=>t+e);a=a.slice(0,4)+` data-lines="${t.join(",")}"`+a.slice(4)}return a}))}),{}}}];class no{constructor(t=na){this.assetsMap={},this.urlBuilder=new r.$O,this.hooks={transformer:this,parser:new r.ew,beforeParse:new r.ew,afterParse:new r.ew,retransform:new r.ew},this.plugins=t.map(t=>"function"==typeof t?t():t);let e={};for(let{name:t,transform:n}of this.plugins)e[t]=n(this.hooks);this.assetsMap=e;let n=function(){let t=(0,o.default)({html:!0,breaks:!0});return t.use(s).use(l).use(u).use(d),t}();this.md=n,this.hooks.parser.call(n)}transform(t,e){var n;let i={content:t,features:{},parserOptions:e};this.hooks.beforeParse.call(this.md,i);let{content:r}=i;i.frontmatterInfo&&(r=r.slice(i.frontmatterInfo.offset));let o=this.md.render(r,{});this.hooks.afterParse.call(this.md,i);let s=function t(e){for(;!e.content&&1===e.children.length;)e=e.children[0];for(;1===e.children.length&&!e.children[0].content;)e={...e,children:e.children[0].children};return{...e,children:e.children.map(t)}}((0,a.fX)(o,i.parserOptions));return s.content||(s.content=`${(null==(n=i.frontmatter)?void 0:n.title)||""}`),{...i,root:s}}resolveJS(t){return e5(this.urlBuilder,t)}resolveCSS(t){var e;return e=this.urlBuilder,"stylesheet"===t.type&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}getAssets(t){let e=[],n=[];for(let i of(t??(t=this.plugins.map(t=>t.name)),t.map(t=>this.assetsMap[t])))i&&(i.styles&&e.push(...i.styles),i.scripts&&n.push(...i.scripts));return{styles:e.map(t=>this.resolveCSS(t)),scripts:n.map(t=>this.resolveJS(t))}}getUsedAssets(t){let e=this.plugins.map(t=>t.name).filter(e=>t[e]);return this.getAssets(e)}}},8011:function(t,e,n){"use strict";n.d(e,{v$:function(){return nb}});var i,r=n(5496);function a(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function o(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function s(){}function l(t){return null==t?s:function(){return this.querySelector(t)}}function c(){return[]}function p(t){return null==t?c:function(){return this.querySelectorAll(t)}}function u(t){return function(){return this.matches(t)}}function f(t){return function(e){return e.matches(t)}}var h=Array.prototype.find;function d(){return this.firstElementChild}var m=Array.prototype.filter;function g(){return Array.from(this.children)}function v(t){return Array(t.length)}function y(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function x(t,e,n,i,r,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],i[s]=o):n[s]=new y(t,a[s]);for(;s<l;++s)(o=e[s])&&(r[s]=o)}function b(t,e,n,i,r,a,o){var s,l,c,p=new Map,u=e.length,f=a.length,h=Array(u);for(s=0;s<u;++s)(l=e[s])&&(h[s]=c=o.call(l,l.__data__,s,e)+"",p.has(c)?r[s]=l:p.set(c,l));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(l=p.get(c))?(i[s]=l,l.__data__=a[s],p.delete(c)):n[s]=new y(t,a[s]);for(s=0;s<u;++s)(l=e[s])&&p.get(h[s])===l&&(r[s]=l)}function w(t){return t.__data__}function k(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}y.prototype={constructor:y,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var _="http://www.w3.org/1999/xhtml",E={svg:"http://www.w3.org/2000/svg",xhtml:_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function S(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),E.hasOwnProperty(e)?{space:E[e],local:t}:t}function A(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function O(t,e){return t.style.getPropertyValue(e)||A(t).getComputedStyle(t,null).getPropertyValue(e)}function $(t){return t.trim().split(/^|\s+/)}function T(t){return t.classList||new j(t)}function j(t){this._node=t,this._names=$(t.getAttribute("class")||"")}function N(t,e){for(var n=T(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function I(t,e){for(var n=T(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function C(){this.textContent=""}function M(){this.innerHTML=""}function L(){this.nextSibling&&this.parentNode.appendChild(this)}function z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function B(t){var e=S(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_&&e.documentElement.namespaceURI===_?e.createElement(t):e.createElementNS(n,t)}})(e)}function D(){return null}function P(){var t=this.parentNode;t&&t.removeChild(this)}function R(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function q(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function K(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;i<a;++i)(n=e[i],t.type&&n.type!==t.type||n.name!==t.name)?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function F(t,e,n){return function(){var i,r=this.__on,a=function(t){e.call(this,t,this.__data__)};if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=e;return}}this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function U(t,e,n){var i=A(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dis
25patchEvent(r)}j.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var X=[null];function V(t,e){this._groups=t,this._parents=e}function Y(){return new V([[document.documentElement]],X)}V.prototype=Y.prototype={constructor:V,select:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var a,o,s=e[r],c=s.length,p=i[r]=Array(c),u=0;u<c;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),p[u]=o);return new V(i,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=p(t);for(var n=this._groups,i=n.length,r=[],a=[],o=0;o<i;++o)for(var s,l=n[o],c=l.length,u=0;u<c;++u)(s=l[u])&&(r.push(t.call(s,s.__data__,u,l)),a.push(s));return new V(r,a)},selectChild:function(t){var e;return this.select(null==t?d:(e="function"==typeof t?t:f(t),function(){return h.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?g:(e="function"==typeof t?t:f(t),function(){return m.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new V(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,w);var n=e?b:x,i=this._parents,r=this._groups;"function"!=typeof t&&(y=t,t=function(){return y});for(var a=r.length,o=Array(a),s=Array(a),l=Array(a),c=0;c<a;++c){var p=i[c],u=r[c],f=u.length,h="object"==typeof(v=t.call(p,p&&p.__data__,c,i))&&"length"in v?v:Array.from(v),d=h.length,m=s[c]=Array(d),g=o[c]=Array(d);n(p,u,m,g,l[c]=Array(f),h,e);for(var v,y,k,_,E=0,S=0;E<d;++E)if(k=m[E]){for(E>=S&&(S=E+1);!(_=g[S])&&++S<d;);k._next=_||null}}return(o=new V(o,i))._enter=s,o._exit=l,o},enter:function(){return new V(this._enter||this._groups.map(v),this._parents)},exit:function(){return new V(this._exit||this._groups.map(v),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,a=i.length,o=Math.min(r,a),s=Array(r),l=0;l<o;++l)for(var c,p=n[l],u=i[l],f=p.length,h=s[l]=Array(f),d=0;d<f;++d)(c=p[d]||u[d])&&(h[d]=c);for(;l<r;++l)s[l]=n[l];return new V(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],a=r.length-1,o=r[a];--a>=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=k);for(var n=this._groups,i=n.length,r=Array(i),a=0;a<i;++a){for(var o,s=n[a],l=s.length,c=r[a]=Array(l),p=0;p<l;++p)(o=s[p])&&(c[p]=o);c.sort(e)}return new V(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,a=e[n],o=0,s=a.length;o<s;++o)(r=a[o])&&t.call(r,r.__data__,o,a);return this},attr:function(t,e){var n=S(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):O(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=$(t+"");
25if(arguments.length<2){for(var i=T(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?N:I)(this,t)}}:e?function(t){return function(){N(this,t)}}:function(t){return function(){I(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?C:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?M:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(L)},lower:function(){return this.each(z)},append:function(t){var e="function"==typeof t?t:B(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:B(t),i=null==e?D:"function"==typeof e?e:l(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(P)},clone:function(t){return this.select(t?q:R)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,c=0,p=s.length;c<p;++c)for(i=0,l=s[c];i<o;++i)if((r=a[i]).type===l.type&&r.name===l.name)return l.value}return}for(i=0,s=e?F:K;i<o;++i)this.each(s(a[i],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return U(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return U(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],a=0,o=r.length;a<o;++a)(i=r[a])&&(yield i)}};var H={value:()=>{}};function W(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw Error("illegal type: "+t);i[t]=[]}return new J(i)}function J(t){this._=t}function G(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=H,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}J.prototype=W.prototype={constructor:J,on:function(t,e){var n,i=this._,r=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((n=(t=r[a]).type)&&(n=function(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}(i[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++a<o;)if(n=(t=r[a]).type)i[n]=G(i[n],t.name,e);else if(null==e)for(n in i)i[n]=G(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new J(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(i=this._[t],a=0,n=i.length;a<n;++a)i[a].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};var Q,Z,tt=0,te=0,tn=0,ti=0,tr=0,ta=0,to="object"==typeof performance&&performance.now?performance:Date,ts="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tl(){return tr||(ts(tc),tr=to.now()+ta)}function tc(){tr=0}function tp(){this._call=this._time=this._next=null}function tu(t,e,n){var i=new tp;return i.restart(t,e,n),i}function tf(){tr=(ti=to.now())+ta,tt=te=0;try{!function(){tl(),++tt;for(var t,e=Q;e;)(t=tr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tt}()}finally{tt=0,function(){for(var t,e,n=Q,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Q=e);Z=t,td(i)}(),tr=0}}function th(){var t=to.now(),e=t-ti;e>1e3&&(ta-=e,ti=t)}function td(t){!tt&&(te&&(te=clearTimeout(te)),t-tr>24?(t<1/0&&(te=setTimeout(tf,t-to.now()-ta)),tn&&(tn=clearInterval(tn))):(tn||(ti=to.now(),tn=setInterval(th,1e3)),tt=1,ts(tf)))}function tm(t,e,n){var i=new tp;return e=null==e?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,n),i}tp.prototype=tu.prototype={constructor:tp,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tl():+n)+(null==e?0:+e),this._next||Z===this||(Z?Z._next=this:Q=this,Z=this),this._call=t,this._time=n,td()},stop:function(){this._call&&(this._call=null,this._time=1/0,td())}};
vendor: 7,307 bytes, line 25
25var tg=W("start","end","cancel","interrupt"),tv=[];function ty(t,e,n,i,r,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(l){var c,p,u,f;if(1!==n.state)return s();for(c in r)if((f=r[c]).name===n.name){if(3===f.state)return tm(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[c])}if(tm(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,i=Array(u=n.tween.length),p=-1;c<u;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++p]=f);i.length=p+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=tu(function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)},0,n.time)}(t,n,{name:e,index:i,group:r,on:tg,tween:tv,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function tx(t,e){var n=tw(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tb(t,e){var n=tw(t,e);if(n.state>3)throw Error("too late; already running");return n}function tw(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tk(t,e){var n,i,r,a=t.__transition,o=!0;if(a){for(r in e=null==e?null:e+"",a){if((n=a[r]).name!==e){o=!1;continue}i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]}o&&delete t.__transition}}function t_(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var tE=180/Math.PI,tS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tA(t,e,n,i,r,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*tE,skewX:Math.atan(l)*tE,scaleX:o,scaleY:s}}function tO(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(a,o){var s,l,c,p,u=[],f=[];return a=t(a),o=t(o),!function(t,i,r,a,o,s){if(t!==r||i!==a){var l=o.push("translate(",null,e,null,n);s.push({i:l-4,x:t_(t,r)},{i:l-2,x:t_(i,a)})}else(r||a)&&o.push("translate("+r+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,u,f),(s=a.rotate)!==(l=o.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:u.push(r(u)+"rotate(",null,i)-2,x:t_(s,l)})):l&&u.push(r(u)+"rotate("+l+i),(c=a.skewX)!==(p=o.skewX)?f.push({i:u.push(r(u)+"skewX(",null,i)-2,x:t_(c,p)}):p&&u.push(r(u)+"skewX("+p+i),!function(t,e,n,i,a,o){if(t!==n||e!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:t_(t,n)},{i:s-2,x:t_(e,i)})}else(1!==n||1!==i)&&a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,f),a=o=null,function(t){for(var e,n=-1,i=f.length;++n<i;)u[(e=f[n]).i]=e.x(t);return u.join("")}}}var t$=tO(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tS:tA(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tT=tO(function(t){return null==t?tS:(i||(i=document.createElementNS("http://www.w3.org/2000/svg","g")),i.setAttribute("transform",t),t=i.transform.baseVal.consolidate())?tA((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tS},", ",")",")");function tj(t,e,n){var i=t._id;return t.each(function(){var t=tb(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tw(t,i).value[e]}}function tN(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tI(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function tC(){}var tM="\\s*([+-]?\\d+)\\s*",tL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tB=/^#([0-9a-f]{3,8})$/,tD=RegExp(`^rgb\\(${tM},${tM},${tM}\\)$`),tP=RegExp(`^rgb\\(${tz},${tz},${tz}\\)$`),tR=RegExp(`^rgba\\(${tM},${tM},${tM},${tL}\\)$`),tq=RegExp(`^rgba\\(${tz},${tz},${tz},${tL}\\)$`),tK=RegExp(`^hsl\\(${tL},${tz},${tz}\\)$`),tF=RegExp(`^hsla\\(${tL},${tz},${tz},${tL}\\)$`),tU={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function tX(){return this.rgb().formatHex()}function tV(){return this.rgb().formatRgb()}function tY(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=tB.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tH(e):3===n?
25new tG(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?tW(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?tW(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tD.exec(t))?new tG(e[1],e[2],e[3],1):(e=tP.exec(t))?new tG(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tR.exec(t))?tW(e[1],e[2],e[3],e[4]):(e=tq.exec(t))?tW(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tK.exec(t))?t3(e[1],e[2]/100,e[3]/100,1):(e=tF.exec(t))?t3(e[1],e[2]/100,e[3]/100,e[4]):tU.hasOwnProperty(t)?tH(tU[t]):"transparent"===t?new tG(NaN,NaN,NaN,0):null}function tH(t){return new tG(t>>16&255,t>>8&255,255&t,1)}function tW(t,e,n,i){return i<=0&&(t=e=n=NaN),new tG(t,e,n,i)}function tJ(t,e,n,i){var r;return 1==arguments.length?((r=t)instanceof tC||(r=tY(r)),r)?new tG((r=r.rgb()).r,r.g,r.b,r.opacity):new tG:new tG(t,e,n,null==i?1:i)}function tG(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function tQ(){return`#${t2(this.r)}${t2(this.g)}${t2(this.b)}`}function tZ(){let t=t0(this.opacity);return`${1===t?"rgb(":"rgba("}${t1(this.r)}, ${t1(this.g)}, ${t1(this.b)}${1===t?")":`, ${t})`}`}function t0(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function t1(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function t2(t){return((t=t1(t))<16?"0":"")+t.toString(16)}function t3(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new t4(t,e,n,i)}function t6(t){if(t instanceof t4)return new t4(t.h,t.s,t.l,t.opacity);if(t instanceof tC||(t=tY(t)),!t)return new t4;if(t instanceof t4)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,l=(a+r)/2;return s?(o=e===a?(n-i)/s+(n<i)*6:n===a?(i-e)/s+2:(e-n)/s+4,s/=l<.5?a+r:2-a-r,o*=60):s=l>0&&l<1?0:o,new t4(o,s,l,t.opacity)}function t4(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function t5(t){return(t=(t||0)%360)<0?t+360:t}function t8(t){return Math.max(0,Math.min(1,t||0))}function t7(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function t9(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}tN(tC,tY,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:tX,formatHex:tX,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return t6(this).formatHsl()},formatRgb:tV,toString:tV}),tN(tG,tJ,tI(tC,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tG(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tG(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tG(t1(this.r),t1(this.g),t1(this.b),t0(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tQ,formatHex:tQ,formatHex8:function(){return`#${t2(this.r)}${t2(this.g)}${t2(this.b)}${t2((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tZ,toString:tZ})),tN(t4,function(t,e,n,i){return 1==arguments.length?t6(t):new t4(t,e,n,null==i?1:i)},tI(tC,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t4(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t4(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new tG(t7(t>=240?t-240:t+120,r,i),t7(t,r,i),t7(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new t4(t5(this.h),t8(this.s),t8(this.l),t0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=t0(this.opacity);return`${1===t?"hsl(":"hsla("}${t5(this.h)}, ${100*t8(this.s)}%, ${100*t8(this.l)}%${1===t?")":`, ${t})`}`}}));var et=t=>()=>t;function ee(t,e){var n=e-t;return n?function(e){return t+e*n}:et(isNaN(t)?e:t)}var en=function t(e){var n,i=1==(n=+(n=e))?ee:function(t,e){var i,r,a;return e-t?(i=t,r=e,i=Math.pow(i,a=n),r=Math.pow(r,a)-i,a=1/a,function(t){return Math.pow(i+t*r,a)}):et(isNaN(t)?e:t)};function r(t,e){var n=i((t=tJ(t)).r,(e=tJ(e)).r),r=i(t.g,e.g),a=i(t.b,e.b),o=ee(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function ei(t){return function(e){var n,i,r=e.length,a=Array(r),o=Array(r),s=Array(r);for(n=0;n<r;++n)i=tJ(e[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=t(a),o=t(o),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=o(t),i.b=s(t),i+""}}}ei(function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=i<e-1?t[i+2]:2*a-r;return t9((n-i/e)*e,o,r,a,s)}}),ei(function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],o=t[(i+1)%e],s=t[(i+2)%e];return t9((n-i/e)*e,r,a,o,s)}});var er=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ea=RegExp(er.source,"g");function eo(t,e){var n;return("number"==typeof e?t_:e instanceof tY?en:(n=tY(e))?(e=n,en):function(t,e){var n,i,r,a,o,s=er.lastIndex=ea.lastIndex=0,l=-1,c=[],p=[];for(t+="",e+="";(r=er.exec(t))&&(a=ea.exec(e));)(o=a.index)>s&&(o=e.slice(s,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,p.push({i:l,x:t_(r,a)})),s=ea.lastIndex;return s<e.length&&(o=e.slice(s),c[l]?c[l]+=o:c[++l]=o),c.length<2?p[0]?(n=p[0].x,function(t){return n(t)+""}):(i=e,function(){return i}):(e=p.length,function(t){for(var n,i=0;i<e;++i)c[(n=p[i]).i]=n.x(t);return c.join("")})})(t,e)}var es=Y.prototype.constructor;function el(t){return function(){this.style.removeProperty(t)}}var ec=0;function ep(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}var eu=Y.prototype;ep.prototype=(function(t){return Y().transition(t)}).prototype={constructor:ep,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=l(t));for(var i=this._groups,r=i.length,a=Array(r),o=0;o<r;++o)for(var s,c,p=i[o],u=p.length,f=a[o]=Array(u),h=0;h<u;
25++h)(s=p[h])&&(c=t.call(s,s.__data__,h,p))&&("__data__"in s&&(c.__data__=s.__data__),f[h]=c,ty(f[h],e,n,h,f,tw(s,n)));return new ep(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=p(t));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,f=0;f<u;++f)if(l=c[f]){for(var h,d=t.call(l,l.__data__,f,c),m=tw(l,n),g=0,v=d.length;g<v;++g)(h=d[g])&&ty(h,e,n,g,d,m);a.push(d),o.push(l)}return new ep(a,o,e,n)},selectChild:eu.selectChild,selectChildren:eu.selectChildren,filter:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,i=Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new ep(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=Array(i),s=0;s<a;++s)for(var l,c=e[s],p=n[s],u=c.length,f=o[s]=Array(u),h=0;h<u;++h)(l=c[h]||p[h])&&(f[h]=l);for(;s<i;++s)o[s]=e[s];return new ep(o,this._parents,this._name,this._id)},selection:function(){return new es(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++ec,i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var p=tw(o,e);ty(o,t,n,c,s,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new ep(i,this._parents,t,n)},call:eu.call,nodes:eu.nodes,node:eu.node,size:eu.size,empty:eu.empty,each:eu.each,on:function(t,e){var n,i,r,a=this._id;return arguments.length<2?tw(this.node(),a).on.on(t):this.each((r=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tx:tb,function(){var o=r(this,a),s=o.on;s!==n&&(i=(n=s).copy()).on(t,e),o.on=i}))},attr:function(t,e){var n=S(t),i="transform"===n?tT:eo;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var i,r,a;return function(){var o,s,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,l))}}:function(t,e,n){var i,r,a;return function(){var o,s,l=n(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,l))}})(n,i,tj(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var i,r,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===i?r:r=e(i=o,n)}}:function(t,e,n){var i,r,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===i?r:r=e(i=o,n)}})(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var i=S(t);return this.tween(n,(i.local?function(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(e){this.setAttributeNS(t.space,t.local,r.call(this,e))}),n}return r._value=e,r}:function(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(e){this.setAttribute(t,r.call(this,e))}),n}return r._value=e,r})(i,e))},style:function(t,e,n){var i,r,a,o,s,l,c,p,u,f,h,d,m,g,v,y,x,b,w,k,_,E="transform"==(t+="")?t$:eo;return null==e?this.styleTween(t,(i=t,function(){var t=O(this,i),e=(this.style.removeProperty(i),O(this,i));return t===e?null:t===r&&e===a?o:o=E(r=t,a=e)})).on("end.style."+t,el(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tj(this,"style."+t,e),function(){var t=O(this,s),e=l(this),n=e+"";return null==e&&(this.style.removeProperty(s),n=e=O(this,s)),t===n?null:t===c&&n===p?u:(p=n,u=E(c=t,e))})).each((f=this._id,x="end."+(y="style."+(h=t)),function(){var t=tb(this,f),e=t.on,n=null==t.value[y]?v||(v=el(h)):void 0;(e!==d||g!==n)&&(m=(d=e).copy()).on(x,g=n),t.on=m})):this.styleTween(t,(b=t,_=e+"",function(){var t=O(this,b);return t===_?null:t===w?k:k=E(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw Error();return this.tween(i,function(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&function(e){this.style.setProperty(t,a.call(this,e),n)}),i}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=tj(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){this.textContent=i.call(this,t)}),e}return i._value=t,i}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=tw(this.node(),n).tween,a=0,o=r.length;a<o;++a)if((i=r[a]).name===t)return i.value;return null}return this.each((null==e?function(t,e){var n,i;return function(){var r=tb(this,t),a=r.tween;if(a!==n){i=n=a;for(var o=0,s=i.length;o<s;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}}r.tween=i}}:function(t,e,n){var i,r;if("function"!=typeof n)throw Error();return function(){var a=tb(this,t),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=s;break}l===c&&r.push(s)}a.tween=r}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tx(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tx(this,t).delay=e}})(e,t)):tw(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tb(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tb(this,t).duration=e}})(e,t)):tw(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tb(this,t).ease=e}}(e,t)):tw(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tb(this,e).ease=n}))}
25,end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){0==--r&&a()}};n.each(function(){var n=tb(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e}),0===r&&a()})},[Symbol.iterator]:eu[Symbol.iterator]};var ef={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};Y.prototype.interrupt=function(t){return this.each(function(){tk(this,t)})},Y.prototype.transition=function(t){var e,n;t instanceof ep?(e=t._id,t=t._name):(e=++ec,(n=ef).time=tl(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)(o=s[c])&&ty(o,t,e,c,s,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(o,e));return new ep(i,this._parents,t,e)};let{abs:eh,max:ed,min:em}=Math;function eg(t){return{type:t}}["w","e"].map(eg),["n","s"].map(eg),["n","w","e","s","nw","ne","sw","se"].map(eg);class ev extends Map{constructor(t,e=ex){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(ey(this,t))}has(t){return super.has(ey(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}(this,t))}}function ey({_intern:t,_key:e},n){let i=e(n);return t.has(i)?t.get(i):n}function ex(t){return null!==t&&"object"==typeof t?t.valueOf():t}function eb(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}let ew=Symbol("implicit");var ek=function(t){for(var e=t.length/6|0,n=Array(e),i=0;i<e;)n[i]="#"+t.slice(6*i,6*++i);return n}("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function e_(t){return"string"==typeof t?new V([[document.querySelector(t)]],[document.documentElement]):new V([[t]],X)}var eE=Array.prototype.slice;function eS(t){return function(){return t}}class eA{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}let eO=Math.PI,e$=2*eO,eT=e$-1e-6;function ej(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class eN{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ej:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return ej;let n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,i){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,e,n,i,r,a){this._append`C${+t},${+e},${+n},${+i},${this._x1=+r},${this._y1=+a}`}arcTo(t,e,n,i,r){if(t=+t,e=+e,n=+n,i=+i,(r=+r)<0)throw Error(`negative radius: ${r}`);let a=this._x1,o=this._y1,s=n-t,l=i-e,c=a-t,p=o-e,u=c*c+p*p;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>1e-6){if(Math.abs(p*s-l*c)>1e-6&&r){let f=n-a,h=i-o,d=s*s+l*l,m=Math.sqrt(d),g=Math.sqrt(u),v=r*Math.tan((eO-Math.acos((d+u-(f*f+h*h))/(2*m*g)))/2),y=v/g,x=v/m;Math.abs(y-1)>1e-6&&this._append`L${t+y*c},${e+y*p}`,this._append`A${r},${r},0,0,${+(p*f>c*h)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,i,r,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(i),s=n*Math.sin(i),l=t+o,c=e+s,p=1^a,u=a?i-r:r-i;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(u<0&&(u=u%e$+e$),u>eT?this._append`A${n},${n},0,1,${p}
25,${t-o},${e-s}A${n},${n},0,1,${p},${this._x1=l},${this._y1=c}`:u>1e-6&&this._append`A${n},${n},0,${+(u>=eO)},${p},${this._x1=t+n*Math.cos(r)},${this._y1=e+n*Math.sin(r)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function eI(t){return t[0]}function eC(t){return t[1]}function eM(t){return t.source}function eL(t){return t.target}eN.prototype;let ez={capture:!0,passive:!1};function eB(t){t.preventDefault(),t.stopImmediatePropagation()}function eD(t){return((t=Math.exp(t))+1/t)/2}var eP=function t(e,n,i){function r(t,r){var a,o,s=t[0],l=t[1],c=t[2],p=r[0],u=r[1],f=r[2],h=p-s,d=u-l,m=h*h+d*d;if(m<1e-12)o=Math.log(f/c)/e,a=function(t){return[s+t*h,l+t*d,c*Math.exp(e*t*o)]};else{var g=Math.sqrt(m),v=(f*f-c*c+i*m)/(2*c*n*g),y=(f*f-c*c-i*m)/(2*f*n*g),x=Math.log(Math.sqrt(v*v+1)-v);o=(Math.log(Math.sqrt(y*y+1)-y)-x)/e,a=function(t){var i,r,a=t*o,p=eD(x),u=c/(n*g)*(((i=Math.exp(2*(i=e*a+x)))-1)/(i+1)*p-((r=Math.exp(r=x))-1/r)/2);return[s+u*h,l+u*d,c*p/eD(e*a+x)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return r.rho=function(e){var n=Math.max(.001,+e),i=n*n;return t(n,i,i*i)},r}(Math.SQRT2,2,4);function eR(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var eq=t=>()=>t;function eK(t,{sourceEvent:e,target:n,transform:i,dispatch:r}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:r}})}function eF(t,e,n){this.k=t,this.x=e,this.y=n}eF.prototype={constructor:eF,scale:function(t){return 1===t?this:new eF(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eF(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eU=new eF(1,0,0);function eX(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eU;return t.__zoom}function eV(t){t.stopImmediatePropagation()}function eY(t){t.preventDefault(),t.stopImmediatePropagation()}function eH(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eW(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function eJ(){return this.__zoom||eU}function eG(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eZ(t,e,n){var i=t.invertX(e[0][0])-n[0][0],r=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}eX.prototype=eF.prototype;let e0="u">typeof navigator&&navigator.userAgent.includes("Macintosh"),e1=function t(){var e=new ev,n=[],i=[],r=ew;function a(t){let a=e.get(t);if(void 0===a){if(r!==ew)return r;e.set(t,a=n.push(t)-1)}return i[a%i.length]}return a.domain=function(t){if(!arguments.length)return n.slice();for(let i of(n=[],e=new ev,t))e.has(i)||e.set(i,n.push(i)-1);return a},a.range=function(t){return arguments.length?(i=Array.from(t),a):i.slice()},a.unknown=function(t){return arguments.length?(r=t,a):r},a.copy=function(){return t(n,i).unknown(r)},eb.apply(a,arguments),a}(ek),e2={autoFit:!1,duration:500,embedGlobalCSS:!0,fitRatio:.95,maxInitialScale:2,scrollForPan:e0,initialExpandLevel:-1,zoom:!0,pan:!0,toggleRecursively:!1,color:t=>{var e;return e1(`${(null==(e=t.state)?void 0:e.path)||""}`)},lineWidth:((t=1,e=3,n=2)=>i=>t+e/n**i.state.depth)(),maxWidth:0,nodeMinHeight:16,paddingX:8,spacingHorizontal:80,spacingVertical:5};function e3(t){if("string"==typeof t){let e=t;t=t=>t.matches(e)}let e=t;return function(){let t=Array.from(this.childNodes);return e&&(t=t.filter(t=>e(t))),t}}function e6(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function e4(t,e){var n,i,r,a,o,s=new e9(t),l=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=e5);n=c.pop();)if(l&&(n.value=+n.data.value),(r=e(n.data))&&(o=r.length))for(n.children=Array(o),a=o-1;a>=0;--a)c.push(i=n.children[a]=new e9(r[a])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(e7)}function e5(t){return t.children}function e8(t){t.data=t.data.data}function e7(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function e9(t){this.data=t,this.depth=this.height=0,this.parent=null}e9.prototype=e4.prototype={constructor:e9,count:function(){return this.eachAfter(e6)},each:function(t){var e,n,i,r,a=this,o=[a];do for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(i=0,r=n.length;i<r;++i)o.push(n[i]);while(o.length);return this},eachAfter:function(t){for(var e,n,i,r=this,a=[r],o=[];r=a.pop();)if(o.push(r),e=r.children)for(n=0,i=e.length;n<i;++n)a.push(e[n]);for(;r=o.pop();)t(r);return this},eachBefore:function(t){for(var e,n,i=this,r=[i];i=r.pop();)if(t(i),e=i.children)for(n=e.length-1;n>=0;--n)r.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;for(t=n.pop(),e=i.pop();t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)i.push(e=e.parent);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return e4(this).eachBefore(e8)}};let{version:nt}={name:"d3-flextree",version:"2.1.2",main:"build/d3-flextree.js",module:"index","jsnext:main":"index",author:{name:"Chris Maloney",url:"http://chrismaloney.org"},description:"Flexible tree layout algorithm that allows for variable node sizes.",keywords:["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],homepage:"https://github.com/klortho/d3-flextree",license:"WTFPL",repository:{type:"git",url:"https://github.com/klortho/d3-flextree.git"},scripts:{clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},dependencies:{"d3-hierarchy":"^1.1.5"},devDependencies:{"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"}},ne=Object.freeze({children:t=>t.children,nodeSize:t=>t.data.size,spacing:0});function nn(t){let e=Object.assign({},ne,t);function n(t){let n=e[t];return"function"==typeof n?n:()=>n}function i(t){let e=a(function(){let t=r(),e=n("nodeSize"),i=n("spacing");return class extends t{constructor(t){super(t),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return e(this.data)}spacing(t){return i(this.data,t.data)}get x(){return this.data.x}set x(t){this.data.x=t}get y(){return this.data.y}set y(t){this.data.y=t}update(){return ni(this),nr(this),this}}}(),t,t=>t.children);
25return e.update(),e.data}function r(){let t=n("nodeSize"),e=n("spacing");return class n extends e4.prototype.constructor{constructor(t){super(t)}copy(){let t=a(this.constructor,this,t=>t.children);return t.each(t=>t.data=t.data.data),t}get size(){return t(this)}spacing(t){return e(this,t)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){let t=this.ancestors();return t[t.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return null===this.children}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((t,e)=>n.maxExtents(t,e.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(t,e){return{top:Math.min(t.top,e.top),bottom:Math.max(t.bottom,e.bottom),left:Math.min(t.left,e.left),right:Math.max(t.right,e.right)}}}}function a(t,e,n){let i=(e,r)=>{let a=new t(e);Object.assign(a,{parent:r,depth:null===r?0:r.depth+1,height:0,length:1});let o=n(e)||[];return a.children=0===o.length?null:o.map(t=>i(t,a)),a.children&&Object.assign(a,a.children.reduce((t,e)=>({height:Math.max(t.height,e.height+1),length:t.length+e.length}),a)),a};return i(e,null)}return Object.assign(i,{nodeSize(t){return arguments.length?(e.nodeSize=t,i):e.nodeSize},spacing(t){return arguments.length?(e.spacing=t,i):e.spacing},children(t){return arguments.length?(e.children=t,i):e.children},hierarchy(t,n){let i=typeof n>"u"?e.children:n;return a(r(),t,i)},dump(t){let e=n("nodeSize"),i=t=>n=>{let r=t+"  ",a=t+"    ",{x:o,y:s}=n,l=e(n),c=n.children||[],p=0===c.length?" ":`,${r}children: [${a}${c.map(i(a)).join(a)}${r}],${t}`;return`{ size: [${l.join(", ")}],${r}x: ${o}, y: ${s}${p}},`};return i(`
26`)(t)}}),i}nn.version=nt;let ni=(t,e=0)=>(t.y=e,(t.children||[]).reduce((e,n)=>{let[i,r]=e;ni(n,t.y+t.ySize);let a=(0===i?n.lExt:n.rExt).bottom;0!==i&&no(t,i,r);let o=nd(a,i,r);return[i+1,o]},[0,null]),na(t),nh(t),t),nr=(t,e,n)=>{typeof e>"u"&&(e=-t.relX-t.prelim,n=0);let i=e+t.relX;return t.relX=i+t.prelim-n,t.prelim=0,t.x=n+t.relX,(t.children||[]).forEach(e=>nr(e,i,t.x)),t},na=t=>{(t.children||[]).reduce((t,e)=>{let[n,i]=t,r=n+e.shift,a=i+r+e.change;return e.relX+=a,[r,a]},[0,0])},no=(t,e,n)=>{let i=t.children[e-1],r=t.children[e],a=i,o=i.relX,s=r,l=r.relX,c=!0;for(;a&&s;){a.bottom>n.lowY&&(n=n.next);let i=o+a.prelim-(l+s.prelim)+a.xSize/2+s.xSize/2+a.spacing(s);(i>0||i<0&&c)&&(l+=i,ns(r,i),nl(t,e,n.index,i)),c=!1;let p=a.bottom,u=s.bottom;p<=u&&(a=np(a))&&(o+=a.relX),p>=u&&(s=nc(s))&&(l+=s.relX)}!a&&s?nu(t,e,s,l):a&&!s&&nf(t,e,a,o)},ns=(t,e)=>{t.relX+=e,t.lExtRelX+=e,t.rExtRelX+=e},nl=(t,e,n,i)=>{let r=t.children[e],a=e-n;if(a>1){let e=i/a;t.children[n+1].shift+=e,r.shift-=e,r.change-=i-e}},nc=t=>t.hasChildren?t.firstChild:t.lThr,np=t=>t.hasChildren?t.lastChild:t.rThr,nu=(t,e,n,i)=>{let r=t.firstChild,a=r.lExt,o=t.children[e];a.lThr=n;let s=i-n.relX-r.lExtRelX;a.relX+=s,a.prelim-=s,r.lExt=o.lExt,r.lExtRelX=o.lExtRelX},nf=(t,e,n,i)=>{let r=t.children[e],a=r.rExt,o=t.children[e-1];a.rThr=n;let s=i-n.relX-r.rExtRelX;a.relX+=s,a.prelim-=s,r.rExt=o.rExt,r.rExtRelX=o.rExtRelX},nh=t=>{if(t.hasChildren){let e=t.firstChild,n=t.lastChild;Object.assign(t,{prelim:(e.prelim+e.relX-e.xSize/2+n.relX+n.prelim+n.xSize/2)/2,lExt:e.lExt,lExtRelX:e.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},nd=(t,e,n)=>{for(;null!==n&&t>=n.lowY;)n=n.next;return{lowY:t,index:e,next:n}},nm="g.markmap-node",ng=function(t){let e;let n=eM,i=eL,r=eI,a=eC,o=null,s=null,l=(e=3,c.digits=function(t){if(!arguments.length)return e;if(null==t)e=null;else{let n=Math.floor(t);if(!(n>=0))throw RangeError(`invalid digits: ${t}`);e=n}return c},()=>new eN(e));function c(){let e;let c=eE.call(arguments),p=n.apply(this,c),u=i.apply(this,c);if(null==o&&(s=t(e=l())),s.lineStart(),c[0]=p,s.point(+r.apply(this,c),+a.apply(this,c)),c[0]=u,s.point(+r.apply(this,c),+a.apply(this,c)),s.lineEnd(),e)return s=null,e+""||null}return c.source=function(t){return arguments.length?(n=t,c):n},c.target=function(t){return arguments.length?(i=t,c):i},c.x=function(t){return arguments.length?(r="function"==typeof t?t:eS(+t),c):r},c.y=function(t){return arguments.length?(a="function"==typeof t?t:eS(+t),c):a},c.context=function(e){return arguments.length?(null==e?o=s=null:s=t(o=e),c):o},c}(function(t){return new eA(t,!0)});function nv(t,e){let n=function(t,e){let n;let i=-1,r=-1;if(void 0===e)for(let e of t)++r,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,i=r);else for(let a of t)null!=(a=e(a,++r,t))&&(n>a||void 0===n&&a>=a)&&(n=a,i=r);return i}(t,e);return t[n]}function ny(t){t.stopPropagation()}let nx=new r.ew;
vendor: 6,467 bytes, line 26
26class nb{constructor(t,e){this.options={...e2},this._disposeList=[],this.handleZoom=t=>{let{transform:e}=t;this.g.attr("transform",e)},this.handlePan=t=>{t.preventDefault();let e=eX(this.svg.node()),n=e.translate(-t.deltaX/e.k,-t.deltaY/e.k);this.svg.call(this.zoom.transform,n)},this.handleClick=(t,e)=>{let n=this.options.toggleRecursively;(e0?t.metaKey:t.ctrlKey)&&(n=!n),this.toggleNode(e,n)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:e_(t),this.styleNode=this.svg.append("style"),this.zoom=(function(){var t,e,n,i=eH,r=eW,a=eZ,o=eG,s=eQ,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],p=250,u=eP,f=W("start","zoom","end"),h=0,d=10;function m(t){t.property("__zoom",eJ).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",E).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new eF(e,t.x,t.y)}function v(t,e,n){var i=e[0]-n[0]*t.k,r=e[1]-n[1]*t.k;return i===t.x&&r===t.y?t:new eF(t.k,i,r)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",function(){b(this,arguments).event(i).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(i).end()}).tween("zoom",function(){var t=arguments,a=b(this,t).event(i),o=r.apply(this,t),s=null==n?y(o):"function"==typeof n?n.apply(this,t):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=this.__zoom,p="function"==typeof e?e.apply(this,t):e,f=u(c.invert(s).concat(l/c.k),p.invert(s).concat(l/p.k));return function(t){if(1===t)t=p;else{var e=f(t),n=l/e[2];t=new eF(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}})}function b(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,e),this.taps=0}function k(t,...e){if(i.apply(this,arguments)){var n=b(this,e).event(t),r=this.__zoom,s=Math.max(l[0],Math.min(l[1],r.k*Math.pow(2,o.apply(this,arguments)))),p=eR(t);if(n.wheel)(n.mouse[0][0]!==p[0]||n.mouse[0][1]!==p[1])&&(n.mouse[1]=r.invert(n.mouse[0]=p)),clearTimeout(n.wheel);else{if(r.k===s)return;n.mouse=[p,r.invert(p)],tk(this),n.start()}eY(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",a(v(g(r,s),n.mouse[0],n.mouse[1]),n.extent,c))}}function _(t,...e){if(!n&&i.apply(this,arguments)){var r,o,s,l=t.currentTarget,p=b(this,e,!0).event(t),u=e_(t.view).on("mousemove.zoom",function(t){if(eY(t),!p.moved){var e=t.clientX-d,n=t.clientY-m;p.moved=e*e+n*n>h}p.event(t).zoom("mouse",a(v(p.that.__zoom,p.mouse[0]=eR(t,l),p.mouse[1]),p.extent,c))},!0).on("mouseup.zoom",function(t){var e,n,i,r;u.on("mousemove.zoom mouseup.zoom",null),e=t.view,n=p.moved,i=e.document.documentElement,r=e_(e).on("dragstart.drag",null),n&&(r.on("click.drag",eB,ez),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in i?r.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect),eY(t),p.event(t).end()},!0),f=eR(t,l),d=t.clientX,m=t.clientY;o=(r=t.view).document.documentElement,s=e_(r).on("dragstart.drag",eB,ez),"onselectstart"in o?s.on("selectstart.drag",eB,ez):(o.__noselect=o.style.MozUserSelect,o.style.MozUserSelect="none"),eV(t),p.mouse=[f,this.__zoom.invert(f)],tk(this),p.start()}}function E(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,o=eR(t.changedTouches?t.changedTouches[0]:t,this),s=n.invert(o),l=n.k*(t.shiftKey?.5:2),u=a(v(g(n,l),o,s),r.apply(this,e),c);eY(t),p>0?e_(this).transition().duration(p).call(x,u,o,t):e_(this).call(m.transform,u,o,t)}}function S(n,...r){if(i.apply(this,arguments)){var a,o,s,l,c=n.touches,p=c.length,u=b(this,r,n.changedTouches.length===p).event(n);for(eV(n),o=0;o<p;++o)l=[l=eR(s=c[o],this),this.__zoom.invert(l),s.identifier],u.touch0?u.touch1||u.touch0[2]===l[2]||(u.touch1=l,u.taps=0):(u.touch0=l,a=!0,u.taps=1+!!t);t&&(t=clearTimeout(t)),a&&(u.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),tk(this),u.start())}}function A(t,...e){if(this.__zooming){var n,i,r,o,s=b(this,e).event(t),l=t.changedTouches,p=l.length;for(eY(t),n=0;n<p;++n)r=eR(i=l[n],this),s.touch0&&s.touch0[2]===i.identifier?s.touch0[0]=r:s.touch1&&s.touch1[2]===i.identifier&&(s.touch1[0]=r);if(i=s.that.__zoom,s.touch1){var u=s.touch0[0],f=s.touch0[1],h=s.touch1[0],d=s.touch1[1],m=(m=h[0]-u[0])*m+(m=h[1]-u[1])*m,y=(y=d[0]-f[0])*y+(y=d[1]-f[1])*y;i=g(i,Math.sqrt(m/y)),r=[(u[0]+h[0])/2,(u[1]+h[1])/2],o=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!s.touch0)return;r=s.touch0[0],o=s.touch0[1]}s.zoom("touch",a(v(i,r,o),s.extent,c))}}function O(t,...i){if(this.__zooming){var r,a,o=b(this,i).event(t),s=t.changedTouches,l=s.length;for(eV(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),r=0;r<l;++r)a=s[r],o.touch0&&o.touch0[2]===a.identifier?delete o.touch0:o.touch1&&o.touch1[2]===a.identifier&&delete o.touch1;if(o.touch1&&!o.touch0&&(o.touch0=o.touch1,delete o.touch1),o.touch0)o.touch0[1]=this.__zoom.invert(o.touch0[0]);else if(o.end(),2===o.taps&&(a=eR(a,this),Math.hypot(e[0]-a[0],e[1]-a[1])<d)){var c=e_(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return m.transform=function(t,e,n,i){var r=t.selection?t.selection():t;r.property("__zoom",eJ),t!==r?x(t,e,n,i):r.interrupt().each(function(){b(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},m.scaleBy=function(t,e,n,i){m.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,i)},m.scaleTo=function(t,e,n,i){m.transform(t,function(){var t=r.apply(this,arguments),i=this.__zoom,o=null==n?y(t):"function"==typeof n?n.apply(this,arguments):n,s=i.invert(o),l="function"==typeof e?e.apply(this,arguments):e;return a(v(g(i,l),o,s),t,c)},n,i)},m.translateBy=function(t,e,n,i){m.transform(t,function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)},null,i)},m.translateTo=function(t,e,n,i,o){m.transform(t,function(){var t=r.apply(this,arguments),o=this.__zoom,s=null==i?y(t):"function"==typeof i?i.apply(this,arguments):i;return a(eU.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},i,o)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
26("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=e_(this.that).datum();f.call(t,this.that,new eK(t,{sourceEvent:this.sourceEvent,target:m,type:t,transform:this.that.__zoom,dispatch:f}),e)}},m.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:eq(+t),m):o},m.filter=function(t){return arguments.length?(i="function"==typeof t?t:eq(!!t),m):i},m.touchable=function(t){return arguments.length?(s="function"==typeof t?t:eq(!!t),m):s},m.extent=function(t){return arguments.length?(r="function"==typeof t?t:eq([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):r},m.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],m):[l[0],l[1]]},m.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(t){return arguments.length?(a=t,m):a},m.duration=function(t){return arguments.length?(p=+t,m):p},m.interpolate=function(t){return arguments.length?(u=t,m):u},m.on=function(){var t=f.on.apply(f,arguments);return t===f?m:t},m.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,m):Math.sqrt(h)},m.tapDistance=function(t){return arguments.length?(d=+t,m):d},m})().filter(t=>this.options.scrollForPan&&"wheel"===t.type?t.ctrlKey&&!t.button:(!t.ctrlKey||"wheel"===t.type)&&!t.button).on("zoom",this.handleZoom),this.setOptions(e),this.state={id:this.options.id||this.svg.attr("id")||(0,r.zv)(),rect:{x1:0,y1:0,x2:0,y2:0}},this.g=this.svg.append("g"),this.g.append("g").attr("class","markmap-highlight"),this._observer=new ResizeObserver((0,r.Ds)(()=>{this.renderData()},100)),this._disposeList.push(nx.tap(()=>{this.setData()}),()=>this._observer.disconnect())}getStyleContent(){let{style:t}=this.options,{id:e}=this.state,n="function"==typeof t?t(e):"";return[this.options.embedGlobalCSS&&".markmap{--markmap-max-width: 9999px;--markmap-a-color: #0097e6;--markmap-a-hover-color: #00a8ff;--markmap-code-bg: #f0f0f0;--markmap-code-color: #555;--markmap-highlight-bg: #ffeaa7;--markmap-table-border: 1px solid currentColor;--markmap-font: 300 16px/20px sans-serif;--markmap-circle-open-bg: #fff;--markmap-text-color: #333;--markmap-highlight-node-bg: #ff02;font:var(--markmap-font);color:var(--markmap-text-color)}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign p{margin:0}.markmap-foreign a{color:var(--markmap-a-color)}.markmap-foreign a:hover{color:var(--markmap-a-hover-color)}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:var(--markmap-code-color);background-color:var(--markmap-code-bg);border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:var(--markmap-highlight-bg)}.markmap-foreign table,.markmap-foreign th,.markmap-foreign td{border-collapse:collapse;border:var(--markmap-table-border)}.markmap-foreign img{display:inline-block}.markmap-foreign svg{fill:currentColor}.markmap-foreign>div{width:var(--markmap-max-width);text-align:left}.markmap-foreign>div>div{display:inline-block}.markmap-highlight rect{fill:var(--markmap-highlight-node-bg)}.markmap-dark .markmap{--markmap-code-bg: #1a1b26;--markmap-code-color: #ddd;--markmap-circle-open-bg: #444;--markmap-text-color: #eee}",n].filter(Boolean).join(`
27`)}updateStyle(){this.svg.attr("class",(0,r.cn)(this.svg.attr("class"),"markmap",this.state.id));let t=this.getStyleContent();this.styleNode.text(t)}async toggleNode(t,e=!1){var n,i;let a=null!=(n=t.payload)&&n.fold?0:1;e?(0,r.in)(t,(t,e)=>{t.payload={...t.payload,fold:a},e()}):t.payload={...t.payload,fold:null!=(i=t.payload)&&i.fold?0:1},await this.renderData(t)}_initializeData(t){let e=0,{color:n,initialExpandLevel:i}=this.options,a=0,o=0;return(0,r.in)(t,(t,r,s)=>{var l,c,p,u;o+=1,t.children=null==(l=t.children)?void 0:l.map(t=>({...t})),e+=1,t.state={...t.state,depth:o,id:e,rect:{x:0,y:0,width:0,height:0},size:[0,0]},t.state.key=[null==(c=null==s?void 0:s.state)?void 0:c.id,t.state.id].filter(
27Boolean).join(".")+function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return(e>>>0).toString(36)}(t.content),t.state.path=[null==(p=null==s?void 0:s.state)?void 0:p.path,t.state.id].filter(Boolean).join("."),n(t);let f=(null==(u=t.payload)?void 0:u.fold)===2;f?a+=1:(a||i>=0&&t.state.depth>=i)&&(t.payload={...t.payload,fold:1}),r(),f&&(a-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(e3(nm)).selectAll(e3("foreignObject")).each(function(t){var e;let n=null==(e=this.firstChild)?void 0:e.firstChild,i=[n.scrollWidth,n.scrollHeight];t.state.size=i});let{lineWidth:t,paddingX:e,spacingHorizontal:n,spacingVertical:i}=this.options,r=nn({}).children(t=>{var e;if(!(null!=(e=t.payload)&&e.fold))return t.children}).nodeSize(t=>{let[i,r]=t.data.state.size;return[r,i+(i?2*e:0)+n]}).spacing((e,n)=>(e.parent===n.parent?i:2*i)+t(e.data)),s=r.hierarchy(this.state.data);r(s);let l=s.descendants();l.forEach(t=>{t.data.state.rect={x:t.y,y:t.x-t.xSize/2,width:t.ySize-n,height:t.xSize}}),this.state.rect={x1:o(l,t=>t.data.state.rect.x)||0,y1:o(l,t=>t.data.state.rect.y)||0,x2:a(l,t=>t.data.state.rect.x+t.data.state.rect.width)||0,y2:a(l,t=>t.data.state.rect.y+t.data.state.rect.height)||0}}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}async setData(t,e){e&&this.setOptions(e),t&&(this.state.data=this._initializeData(t)),this.state.data&&(this.updateStyle(),await this.renderData())}async setHighlight(t){this.state.highlight=t||void 0,await this.renderData()}_getHighlightRect(t){let e=4/eX(this.svg.node()).k,n={...t.state.rect};return n.x-=e,n.y-=e,n.width+=2*e,n.height+=2*e,n}async renderData(t){let{paddingX:e,autoFit:n,color:i,maxWidth:a,lineWidth:o}=this.options,s=this.state.data;if(!s)return;let l={},c={},p=[];(0,r.in)(s,(t,e,n)=>{var i;null!=(i=t.payload)&&i.fold||e(),l[t.state.id]=t,n&&(c[t.state.id]=n.state.id),p.push(t)});let u={},f={},h=t=>{!t||u[t.state.id]||(0,r.in)(t,(e,n)=>{u[e.state.id]=t.state.id,n()})},d=t=>f[u[t.state.id]]||s.state.rect,m=t=>(l[u[t.state.id]]||s).state.rect;f[s.state.id]=s.state.rect,t&&h(t);let{highlight:g}=this.state;g&&!l[g.state.id]&&(g=void 0);let v=this.g.selectAll(e3("g.markmap-highlight")).selectAll(e3("rect")).data(g?[this._getHighlightRect(g)]:[]).join("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height),y=this.g.selectAll(e3(nm)).each(t=>{f[t.state.id]=t.state.rect}).data(p,t=>t.state.key),x=y.enter().append("g").attr("data-depth",t=>t.state.depth).attr("data-path",t=>t.state.path).each(t=>{h(l[c[t.state.id]])}),b=y.exit().each(t=>{h(l[c[t.state.id]])}),w=y.merge(x).attr("class",t=>{var e;return["markmap-node",(null==(e=t.payload)?void 0:e.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),k=w.selectAll(e3("line")).data(t=>[t],t=>t.state.key),_=k.enter().append("line").attr("stroke",t=>i(t)).attr("stroke-width",0),E=k.merge(_),S=w.selectAll(e3("circle")).data(t=>{var e;return null!=(e=t.children)&&e.length?[t]:[]},t=>t.state.key),A=S.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(t,e)=>this.handleClick(t,e)).on("mousedown",ny).merge(S).attr("stroke",t=>i(t)).attr("fill",t=>{var e;return null!=(e=t.payload)&&e.fold&&t.children?i(t):"var(--markmap-circle-open-bg)"}),O=this._observer,$=w.selectAll(e3("foreignObject")).data(t=>[t],t=>t.state.key),T=$.enter().append("foreignObject").attr("class","markmap-foreign").attr("x",e).attr("y",0).style("opacity",0).on("mousedown",ny).on("dblclick",ny);T.append("xhtml:div").append("xhtml:div").html(t=>t.content).attr("xmlns","http://www.w3.org/1999/xhtml"),T.each(function(){var t;let e=null==(t=this.firstChild)?void 0:t.firstChild;O.observe(e)});let j=b.selectAll(e3("foreignObject"));j.each(function(){var t;let e=null==(t=this.firstChild)?void 0:t.firstChild;O.unobserve(e)});let N=T.merge($),I=p.flatMap(t=>{var e;return null!=(e=t.payload)&&e.fold?[]:t.children.map(e=>({source:t,target:e}))}),C=this.g.selectAll(e3("path.markmap-link")).data(I,t=>t.target.state.key),M=C.exit(),L=C.enter().insert("path","g").attr("class","markmap-link").attr("data-depth",t=>t.target.state.depth).attr("data-path",t=>t.target.state.path).attr("d",t=>{let e=d(t.target),n=[e.x+e.width,e.y+e.height];return ng({source:n,target:n})}).attr("stroke-width",0).merge(C);this.svg.style("--markmap-max-width",a?`${a}px`:null),await new Promise(requestAnimationFrame),this._relayout(),v=v.data(g?[this._getHighlightRect(g)]:[]).join("rect"),this.transition(v).attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height),x.attr("transform",t=>{let e=d(t);return`translate(${e.x+e.width-t.state.rect.width},${e.y+e.height-t.state.rect.height})`}),this.transition(b).attr("transform",t=>{let e=m(t),n=e.x+e.width-t.state.rect.width,i=e.y+e.height-t.state.rect.height;return`translate(${n},${i})`}).remove(),this.transition(w).attr("transform",t=>`translate(${t.state.rect.x},${t.state.rect.y})`);let z=b.selectAll(e3("line"));this.transition(z).attr("x1",t=>t.state.rect.width).attr("stroke-width",0),_.attr("x1",t=>t.state.rect.width).attr("x2",t=>t.state.rect.width),E.attr("y1",t=>t.state.rect.height+o(t)/2).attr("y2",t=>t.state.rect.height+o(t)/2),this.transition(E).attr("x1",-1).attr("x2",t=>t.state.rect.width+2).attr("stroke",t=>i(t)).attr("stroke-width",o);let B=b.selectAll(e3("circle"));this.transition(B).attr("r",0).attr("stroke-width",0),A.attr("cx",t=>t.state.rect.width).attr("cy",t=>t.state.rect.height+o(t)/2),this.transition(A).attr("r",6).attr("stroke-width","1.5"),this.transition(j).style("opacity",0),N.attr("width",t=>Math.max(0,t.state.rect.width-2*e)).attr("height",t=>t.state.rect.height),this.transition(N).style("opacity",1),this.transition(M).attr("d",t=>{let e=m(t.target),n=[e.x+e.width,e.y+e.height+o(t.target)/2];return ng({source:n,target:n})}).attr("stroke-width",0).remove(),this.transition(L).attr("stroke",t=>i(t.target)).attr("stroke-width",t=>o(t.target)).attr("d",t=>{let e=t.source,n=t.target;return ng({source:[e.state.rect.x+e.state.rect.width,e.state.rect.y+e.state.rect.height+o(e)/2],target:[n.state.rect.x,n.state.rect.y+n.state.rect.height+o(n)/2]})}),n&&this.fit()}transition(t){let{duration:e}=this.options;return t.transition().duration(e)}async fit(t=this.options.maxInitialScale){let{width:e,height:n}=this.svg.node().getBoundingClientRect(),{fitRatio:i}=this.options,{x1:a,y1:o,x2:s,y2:l}=this.state.rect,c=s-a,p=l-o,u=Math.min(e/c*i,n/p*i,t),f=eU.translate((e-c*u)/2-a*u,(n-p*u)/2-o*u).scale(u);return this.transition(this.svg).call(this.zoom.transform,f).end().catch(r.ZT)}findElement(t){let e;return this.g.selectAll(e3(nm)).each(function(n){n===t&&(e={data:n,g:this})}),e}async ensureVisible(t,e){var n;let i=null==(n=this.findElement(t))?void 0:n.data;if(!i)return;let a=this.svg.node(),o=a.getBoundingClientRect(),s=eX(a),[l,c]=[i.state.rect.x,i.state.rect.x+i.state.rect.width+2].map(t=>t*s.k+s.x),[p,u]=[i.state.rect.y,i.state.rect.y+i.state.rect.height].map(t=>t*s.k+s.y),f={left:0,right:0,top:0,bottom:0,...e}
27,h=[f.left-l,o.width-f.right-c],d=[f.top-p,o.height-f.bottom-u],m=h[0]*h[1]>0?nv(h,Math.abs)/s.k:0,g=d[0]*d[1]>0?nv(d,Math.abs)/s.k:0;if(m||g){let t=s.translate(m,g);return this.transition(this.svg).call(this.zoom.transform,t).end().catch(r.ZT)}}async centerNode(t,e){var n;let i=null==(n=this.findElement(t))?void 0:n.data;if(!i)return;let a=this.svg.node(),o=a.getBoundingClientRect(),s=eX(a),l=(i.state.rect.x+i.state.rect.width/2)*s.k+s.x,c=(i.state.rect.y+i.state.rect.height/2)*s.k+s.y,p={left:0,right:0,top:0,bottom:0,...e},u=(p.left+o.width-p.right)/2,f=(p.top+o.height-p.bottom)/2,h=(u-l)/s.k,d=(f-c)/s.k;if(h||d){let t=s.translate(h,d);return this.transition(this.svg).call(this.zoom.transform,t).end().catch(r.ZT)}}async rescale(t){let e=this.svg.node(),{width:n,height:i}=e.getBoundingClientRect(),a=eX(e),o=a.translate((n/2-a.x)*(1-t)/a.k,(i/2-a.y)*(1-t)/a.k).scale(t);return this.transition(this.svg).call(this.zoom.transform,o).end().catch(r.ZT)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this._disposeList.forEach(t=>{t()})}static create(t,e,n=null){let i=new nb(t,e);return n&&i.setData(n).then(()=>{i.fit()}),i}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.