@kw-yeh/vibeflow 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +146 -0
- package/dist/vibeflow.mjs +6103 -0
- package/dist/web/404/index.html +1 -0
- package/dist/web/404.html +1 -0
- package/dist/web/_next/static/-9MMnQDtlhk8JcEq6dTBS/_buildManifest.js +1 -0
- package/dist/web/_next/static/-9MMnQDtlhk8JcEq6dTBS/_ssgManifest.js +1 -0
- package/dist/web/_next/static/chunks/02e71eac.0250f42685eae210.js +18 -0
- package/dist/web/_next/static/chunks/043de7d2.3a6733c82bc2409f.js +160 -0
- package/dist/web/_next/static/chunks/1201.011a689cd95a4983.js +1 -0
- package/dist/web/_next/static/chunks/1282.d0e740390a16bb90.js +1 -0
- package/dist/web/_next/static/chunks/1396.cb165487d4bf0f35.js +1 -0
- package/dist/web/_next/static/chunks/167.98f928ccaed44837.js +1 -0
- package/dist/web/_next/static/chunks/1672.82392f784373fc1a.js +149 -0
- package/dist/web/_next/static/chunks/1776.9ad96593642a32f0.js +36 -0
- package/dist/web/_next/static/chunks/1840.fa1f1878af23fd9f.js +41 -0
- package/dist/web/_next/static/chunks/1886.22db355b96ff3e38.js +7 -0
- package/dist/web/_next/static/chunks/2039.461f2ac8bbfeb1cf.js +90 -0
- package/dist/web/_next/static/chunks/2107.2540b21d69c927d0.js +1 -0
- package/dist/web/_next/static/chunks/2205.fe6639ba89aebb99.js +1 -0
- package/dist/web/_next/static/chunks/2271.8d52a83cf1b02b3e.js +1 -0
- package/dist/web/_next/static/chunks/2396.a4c1620b6d217c02.js +1 -0
- package/dist/web/_next/static/chunks/260.7db9b90987032402.js +1 -0
- package/dist/web/_next/static/chunks/2806.c2a6f6733f2b439b.js +32 -0
- package/dist/web/_next/static/chunks/2817.a82d851ccf215c35.js +1 -0
- package/dist/web/_next/static/chunks/3082.5086ba86ade06629.js +1 -0
- package/dist/web/_next/static/chunks/3110.db844baaab453716.js +287 -0
- package/dist/web/_next/static/chunks/3289.04108f17cdf795e3.js +1 -0
- package/dist/web/_next/static/chunks/3618.418bfeef9a735cc6.js +148 -0
- package/dist/web/_next/static/chunks/3711.7f07235c9e8ae090.js +1 -0
- package/dist/web/_next/static/chunks/3746.81e4d62ebdb395eb.js +1 -0
- package/dist/web/_next/static/chunks/3846.d63d31d2de9a159c.js +1 -0
- package/dist/web/_next/static/chunks/3927.8202e4c7eeb07487.js +74 -0
- package/dist/web/_next/static/chunks/39a04069.9dd71f191712d3fa.js +62 -0
- package/dist/web/_next/static/chunks/4012.440934d750758d59.js +1 -0
- package/dist/web/_next/static/chunks/4109.f1de572405aa3b2b.js +309 -0
- package/dist/web/_next/static/chunks/4224.c5c8af77fc9b6c44.js +286 -0
- package/dist/web/_next/static/chunks/4270-6c9c75303137e3a5.js +9 -0
- package/dist/web/_next/static/chunks/4292.70e0a2a99b20e418.js +1 -0
- package/dist/web/_next/static/chunks/4459.814d84742e06267c.js +1 -0
- package/dist/web/_next/static/chunks/4485.e209e1d39502d049.js +226 -0
- package/dist/web/_next/static/chunks/4802.6f5a5e00488db074.js +1 -0
- package/dist/web/_next/static/chunks/5432.3349240a8cd1114c.js +94 -0
- package/dist/web/_next/static/chunks/5468.7440c698079f7f79.js +1 -0
- package/dist/web/_next/static/chunks/5469.5e1555e411d9c96b.js +1 -0
- package/dist/web/_next/static/chunks/5695.45dd981e66074a89.js +1 -0
- package/dist/web/_next/static/chunks/5785.01c97ed45f552929.js +8 -0
- package/dist/web/_next/static/chunks/59.a9be2f8a75bc42e9.js +1 -0
- package/dist/web/_next/static/chunks/5918.7a18726fa96ba97d.js +1 -0
- package/dist/web/_next/static/chunks/621.7f06a4c57845924d.js +27 -0
- package/dist/web/_next/static/chunks/6232.4ebeb2a3e3fde2f9.js +1 -0
- package/dist/web/_next/static/chunks/6390.df979849e0b82b10.js +1 -0
- package/dist/web/_next/static/chunks/6747.fe4ace8428cf57b8.js +1 -0
- package/dist/web/_next/static/chunks/67584bf0.bcc252f93280fffc.js +1 -0
- package/dist/web/_next/static/chunks/6848.18adf63b76b43ce0.js +1 -0
- package/dist/web/_next/static/chunks/6863.7c16f1cf40adc214.js +77 -0
- package/dist/web/_next/static/chunks/6981.db8f1cd11466723b.js +1 -0
- package/dist/web/_next/static/chunks/7045.7cf0eb88acb1ee65.js +1 -0
- package/dist/web/_next/static/chunks/7266.5fc4e54a82b394a3.js +23 -0
- package/dist/web/_next/static/chunks/7271.3e11a6c675bba517.js +1 -0
- package/dist/web/_next/static/chunks/7443.de45a50460ec02b4.js +217 -0
- package/dist/web/_next/static/chunks/7449.be3a97c644b086d6.js +86 -0
- package/dist/web/_next/static/chunks/7835.eaf45d5554820d67.js +104 -0
- package/dist/web/_next/static/chunks/7869.b407f42eca1ddf4d.js +1 -0
- package/dist/web/_next/static/chunks/7913.3de14c31f63521fd.js +193 -0
- package/dist/web/_next/static/chunks/7915.e23554d5280c643a.js +1 -0
- package/dist/web/_next/static/chunks/7992.5dde103489d49ad1.js +24 -0
- package/dist/web/_next/static/chunks/8057.16633338493802bd.js +24 -0
- package/dist/web/_next/static/chunks/8244.0a0a340eddcff9ce.js +1 -0
- package/dist/web/_next/static/chunks/8259.62f5c49f967282f1.js +64 -0
- package/dist/web/_next/static/chunks/8372.eb7c979688ab1442.js +62 -0
- package/dist/web/_next/static/chunks/8590.c7e1c62b00e799ea.js +1 -0
- package/dist/web/_next/static/chunks/8655.1a55ea833e35b289.js +115 -0
- package/dist/web/_next/static/chunks/8687.cbb5d2e055f2a05f.js +1 -0
- package/dist/web/_next/static/chunks/8704.bb5e916a22041380.js +1 -0
- package/dist/web/_next/static/chunks/88492ad4.406f106f686c2ea4.js +82 -0
- package/dist/web/_next/static/chunks/898.a636c29260da655a.js +93 -0
- package/dist/web/_next/static/chunks/9371.f52b19a630591b42.js +34 -0
- package/dist/web/_next/static/chunks/94.c653beceaa62934f.js +1 -0
- package/dist/web/_next/static/chunks/9516.3d1f5c6a23f298e9.js +1 -0
- package/dist/web/_next/static/chunks/9525.c2f5e990d374aeb6.js +38 -0
- package/dist/web/_next/static/chunks/9540.9cc4cb31dd3a0d0a.js +1 -0
- package/dist/web/_next/static/chunks/9612.d9f1b4d3209e70dc.js +79 -0
- package/dist/web/_next/static/chunks/9759.ddd2794ce95b458c.js +1 -0
- package/dist/web/_next/static/chunks/b02c773b.2d61cc590e6c1c58.js +1 -0
- package/dist/web/_next/static/chunks/b9dacbaa.d2b59af18cc80870.js +1 -0
- package/dist/web/_next/static/chunks/d94f238e.ed1acca9cb2f0773.js +122 -0
- package/dist/web/_next/static/chunks/f24717c3.caadd8481abaaae2.js +1 -0
- package/dist/web/_next/static/chunks/framework-b92a367cf1ad4bf7.js +1 -0
- package/dist/web/_next/static/chunks/main-ec7fd4c371d06729.js +5 -0
- package/dist/web/_next/static/chunks/pages/_app-320afeed07d86516.js +1 -0
- package/dist/web/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js +1 -0
- package/dist/web/_next/static/chunks/pages/home-efefddd4b88b018d.js +11 -0
- package/dist/web/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/web/_next/static/chunks/webpack-c8aa5df0425f6b7b.js +1 -0
- package/dist/web/_next/static/css/edcc6abb24dfd492.css +2 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/favicon.ico +0 -0
- package/dist/web/home/index.html +1 -0
- package/dist/web/logo.svg +17 -0
- package/package.json +37 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1201],{31201:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{DiffMethod:()=>c,LineNumberPrefix:()=>f,computeStyles:()=>ns,default:()=>nc});var r,l,o,s,a,u,c,d,f,h={};n.r(h),n.d(h,{Diff:()=>v,FILE_HEADERS_ONLY:()=>ef,INCLUDE_HEADERS:()=>ed,OMIT_HEADERS:()=>eh,applyPatch:()=>es,applyPatches:()=>ea,arrayDiff:()=>er,canonicalize:()=>en,characterDiff:()=>w,convertChangesToDMP:()=>eb,convertChangesToXML:()=>ev,createPatch:()=>ey,createTwoFilesPatch:()=>em,cssDiff:()=>K,diffArrays:()=>el,diffChars:()=>k,diffCss:()=>Q,diffJson:()=>et,diffLines:()=>_,diffSentences:()=>Y,diffTrimmedLines:()=>U,diffWords:()=>H,diffWordsWithSpace:()=>V,formatPatch:()=>eg,jsonDiff:()=>ee,lineDiff:()=>P,parsePatch:()=>eo,reversePatch:()=>function e(t){if(Array.isArray(t))return t.map(t=>e(t)).reverse();let n=Object.assign(Object.assign({},t),{oldFileName:t.isGit?eu(t.newFileName):t.newFileName,oldHeader:t.newHeader,newFileName:t.isGit?eu(t.oldFileName):t.oldFileName,newHeader:t.oldHeader,oldMode:t.newMode,newMode:t.oldMode,isCreate:t.isDelete,isDelete:t.isCreate,hunks:t.hunks.map(e=>({oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,lines:e.lines.map(e=>e.startsWith("-")?`+${e.slice(1)}`:e.startsWith("+")?`-${e.slice(1)}`:e)}))});return t.isCopy&&(n.newFileName="/dev/null",n.newHeader=void 0,n.isDelete=!0,delete n.isCreate,delete n.isCopy,delete n.isRename,n.hunks=[]),n},sentenceDiff:()=>J,structuredPatch:()=>ep,wordDiff:()=>R,wordsWithSpaceDiff:()=>$});var p=n(26514),g=n(69001),m=n(75834),y=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function b(e,t){if(e.length!==t.length)return!1;for(var n,i,r=0;r<e.length;r++)if(!((n=e[r])===(i=t[r])||y(n)&&y(i))&&1)return!1;return!0}class v{diff(e,t,n={}){let i;"function"==typeof n?(i=n,n={}):"callback"in n&&(i=n.callback);let r=this.castInput(e,n),l=this.castInput(t,n),o=this.removeEmpty(this.tokenize(r,n)),s=this.removeEmpty(this.tokenize(l,n));return this.diffWithOptionsObj(o,s,n,i)}diffWithOptionsObj(e,t,n,i){var r;let l=e=>(e=this.postProcess(e,n),i)?void setTimeout(function(){i(e)},0):e,o=t.length,s=e.length,a=1,u=o+s;null!=n.maxEditLength&&(u=Math.min(u,n.maxEditLength));let c=null!=(r=n.timeout)?r:1/0,d=Date.now()+c,f=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(f[0],t,e,0,n);if(f[0].oldPos+1>=s&&h+1>=o)return l(this.buildValues(f[0].lastComponent,t,e));let p=-1/0,g=1/0,m=()=>{for(let i=Math.max(p,-a);i<=Math.min(g,a);i+=2){let r,a=f[i-1],u=f[i+1];a&&(f[i-1]=void 0);let c=!1;if(u){let e=u.oldPos-i;c=u&&0<=e&&e<o}let d=a&&a.oldPos+1<s;if(!c&&!d){f[i]=void 0;continue}if(r=!d||c&&a.oldPos<u.oldPos?this.addToPath(u,!0,!1,0,n):this.addToPath(a,!1,!0,1,n),h=this.extractCommon(r,t,e,i,n),r.oldPos+1>=s&&h+1>=o)return l(this.buildValues(r.lastComponent,t,e))||!0;f[i]=r,r.oldPos+1>=s&&(g=Math.min(g,i-1)),h+1>=o&&(p=Math.max(p,i+1))}a++};if(i)!function e(){setTimeout(function(){if(a>u||Date.now()>d)return i(void 0);m()||e()},0)}();else for(;a<=u&&Date.now()<=d;){let e=m();if(e)return e}}addToPath(e,t,n,i,r){let l=e.lastComponent;return l&&!r.oneChangePerToken&&l.added===t&&l.removed===n?{oldPos:e.oldPos+i,lastComponent:{count:l.count+1,added:t,removed:n,previousComponent:l.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:t,removed:n,previousComponent:l}}}extractCommon(e,t,n,i,r){let l=t.length,o=n.length,s=e.oldPos,a=s-i,u=0;for(;a+1<l&&s+1<o&&this.equals(n[s+1],t[a+1],r);)a++,s++,u++,r.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!r.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,a}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let i,r=[];for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let l=r.length,o=0,s=0,a=0;for(;o<l;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(a,a+e.count)),a+=e.count;else{if(!e.added&&this.useLongestToken){let i=t.slice(s,s+e.count);i=i.map(function(e,t){let i=n[a+t];return i.length>e.length?i:e}),e.value=this.join(i)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(a+=e.count)}}return r}}class x extends v{}let w=new x;function k(e,t,n){return w.diff(e,t,n)}function C(e,t){let n;for(n=0;n<e.length&&n<t.length&&e[n]==t[n];n++);return e.slice(0,n)}function A(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length&&e[e.length-(n+1)]==t[t.length-(n+1)];n++);return e.slice(-n)}function S(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function j(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function T(e,t){return S(e,t,"")}function N(e,t){return t.slice(0,function(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let i=t.length;e.length<t.length&&(i=e.length);let r=Array(i),l=0;r[0]=0;for(let e=1;e<i;e++){for(t[e]==t[l]?r[e]=r[l]:r[e]=l;l>0&&t[e]!=t[l];)l=r[l];t[e]==t[l]&&l++}l=0;for(let i=n;i<e.length;i++){for(;l>0&&e[i]!=t[l];)l=r[l];e[i]==t[l]&&l++}return l}(e,t))}function L(e,t){let n=[];for(let i of Array.from(t.segment(e))){let e=i.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function O(e,t){let n;if(t)return D(e,t)[1];for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function E(e,t){if(t)return D(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:""}function D(e,t){if(!t)return[E(e),O(e)];if("word"!=t.resolvedOptions().granularity)throw Error('The segmenter passed must have a granularity of "word"');let n=L(e,t),i=n[0],r=n[n.length-1];return[/\s/.test(i)?i:"",/\s/.test(r)?r:""]}let F="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",M=RegExp(`[${F}]+|\\s+|[^${F}]`,"ug");class I extends v{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let i=t.intlSegmenter;if("word"!=i.resolvedOptions().granularity)throw Error('The segmenter passed must have a granularity of "word"');n=L(e,i)}else n=e.match(M)||[];let i=[],r=null;return n.forEach(e=>{/\s/.test(e)?null==r?i.push(e):i.push(i.pop()+e):null!=r&&/\s/.test(r)?i[i.length-1]==r?i.push(i.pop()+e):i.push(r+e):i.push(e),r=e}),i}join(e){return e.map((e,t)=>0==t?e:e.replace(/^\s+/,"")).join("")}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,i=null,r=null;return e.forEach(e=>{e.added?i=e:e.removed?r=e:((i||r)&&W(n,r,i,e,t.intlSegmenter),n=e,i=null,r=null)}),(i||r)&&W(n,r,i,null,t.intlSegmenter),e}}let R=new I;function H(e,t,n){return(null==n?void 0:n.ignoreWhitespace)==null||n.ignoreWhitespace?R.diff(e,t,n):V(e,t,n)}function W(e,t,n,i,r){var l,o,s,a;if(t&&n){let[s,a]=D(t.value,r),[u,c]=D(n.value,r);if(e){let i=C(s,u);e.value=j(e.value,u,i),t.value=T(t.value,i),n.value=T(n.value,i)}if(i){let e=A(a,c);i.value=S(i.value,c,e),l=t.value,t.value=j(l,e,""),o=n.value,n.value=j(o,e,"")}}else if(n){if(e){let e=E(n.value,r);n.value=n.value.substring(e.length)}if(i){let e=E(i.value,r);i.value=i.value.substring(e.length)}}else if(e&&i){let n=E(i.value,r),[l,o]=D(t.value,r),a=C(n,l);t.value=T(t.value,a);let u=A(T(n,a),o);s=t.value,t.value=j(s,u,""),i.value=S(i.value,n,u),e.value=j(e.value,n,n.slice(0,n.length-u.length))}else if(i){let e=E(i.value,r),n=N(O(t.value,r),e);a=t.value,t.value=j(a,n,"")}else if(e){let n=N(O(e.value,r),E(t.value,r));t.value=T(t.value,n)}}class B extends v{tokenize(e){let t=RegExp(`(\\r?\\n)|[${F}]+|[^\\S\\n\\r]+|[^${F}]`,"ug");return e.match(t)||[]}}let $=new B;function V(e,t,n){return $.diff(e,t,n)}class G extends v{constructor(){super(...arguments),this.tokenize=q}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}}let P=new G;function _(e,t,n){return P.diff(e,t,n)}function U(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),P.diff(e,t,n)}function q(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));let n=[],i=e.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(let e=0;e<i.length;e++){let r=i[e];e%2&&!t.newlineIsToken?n[n.length-1]+=r:n.push(r)}return n}class z extends v{tokenize(e){var t,n;let i=[],r=0;for(let l=0;l<e.length;l++){if(l==e.length-1){i.push(e.slice(r));break}if(("."==(n=e[l])||"!"==n||"?"==n)&&e[l+1].match(/\s/)){for(i.push(e.slice(r,l+1)),l=r=l+1;null==(t=e[l+1])?void 0:t.match(/\s/);)l++;i.push(e.slice(r,l+1)),r=l+1}}return i}}let J=new z;function Y(e,t,n){return J.diff(e,t,n)}class Z extends v{tokenize(e){return e.split(/([{}:;,]|\s+)/)}}let K=new Z;function Q(e,t,n){return K.diff(e,t,n)}class X extends v{constructor(){super(...arguments),this.tokenize=q}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:i=(e,t)=>void 0===t?n:t}=t;return"string"==typeof e?e:JSON.stringify(en(e,null,null,i),null," ")}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),n)}}let ee=new X;function et(e,t,n){return ee.diff(e,t,n)}function en(e,t,n,i,r){let l,o;for(t=t||[],n=n||[],i&&(e=i(void 0===r?"":r,e)),l=0;l<t.length;l+=1)if(t[l]===e)return n[l];if("[object Array]"===Object.prototype.toString.call(e)){for(t.push(e),o=Array(e.length),n.push(o),l=0;l<e.length;l+=1)o[l]=en(e[l],t,n,i,String(l));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"==typeof e&&null!==e){let r;t.push(e),o={},n.push(o);let s=[];for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.push(r);for(s.sort(),l=0;l<s.length;l+=1)o[r=s[l]]=en(e[r],t,n,i,r);t.pop(),n.pop()}else o=e;return o}class ei extends v{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}}let er=new ei;function el(e,t,n){return er.diff(e,t,n)}function eo(e){let t=e.split(/\n/),n=[],i=0;function r(e){return/^diff --git /.test(e)}function l(e){return r(e)||/^Index:\s/.test(e)||/^diff(?: -r \w+)+\s/.test(e)}function o(e){return/^(---|\+\+\+)\s/.test(e)}function s(e){return/^@@\s/.test(e)}function a(e){if(e.startsWith('"')){let t=u(e);if(t)return t.fileName}return e}function u(e){if(!e.startsWith('"'))return null;let t="",n=1;for(;n<e.length;){if('"'===e[n])return{fileName:t,rawLength:n+1};if("\\"===e[n]&&n+1<e.length)switch(e[++n]){case"a":t+="\x07";break;case"b":t+="\b";break;case"f":t+="\f";break;case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"v":t+="\v";break;case"\\":t+="\\";break;case'"':t+='"';break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{if(n+2>=e.length||e[n+1]<"0"||e[n+1]>"7"||e[n+2]<"0"||e[n+2]>"7")return null;let i=[parseInt(e.substring(n,n+3),8)];for(n+=3;"\\"===e[n]&&e[n+1]>="0"&&e[n+1]<="7";){if(n+3>=e.length||e[n+2]<"0"||e[n+2]>"7"||e[n+3]<"0"||e[n+3]>"7")return null;i.push(parseInt(e.substring(n+1,n+4),8)),n+=4}t+=new TextDecoder("utf-8").decode(new Uint8Array(i));continue}default:return null}else t+=e[n];n++}return null}function c(e){let n=/^(---|\+\+\+)\s+/.exec(t[i]);if(n){let r=n[1],l=t[i].substring(3).trim().split(" ",2),o=(l[1]||"").trim(),s=l[0];s=s.startsWith('"')?a(s):s.replace(/\\\\/g,"\\"),"---"===r?(e.oldFileName=s,e.oldHeader=o):(e.newFileName=s,e.newHeader=o),i++}}for(;i<t.length;)!function(){var e;let d={};d.hunks=[],n.push(d);let f=!1;for(;i<t.length;){let e=t[i];if(o(e)||s(e))break;if(r(e)){if(f)return;f=!0,d.isGit=!0;let n=function(e){let t=e.substring(11);if(t.startsWith('"')){let e,n=u(t);if(null===n)return null;let i=t.substring(n.rawLength+1);if(i.startsWith('"')){let t=u(i);if(null===t)return null;e=t.fileName}else e=i;return{oldFileName:n.fileName,newFileName:e}}let n=t.indexOf('"');if(n>0){let e=t.substring(0,n-1),i=u(t.substring(n));return null===i?null:{oldFileName:e,newFileName:i.fileName}}if(t.startsWith("a/")){let e=[],n=0;for(;-1!==(n=t.indexOf(" b/",n+1));)e.push(n);if(e.length>0){let n=e[Math.floor(e.length/2)];return{oldFileName:t.substring(0,n),newFileName:t.substring(n+1)}}}return null}(e);for(n&&(d.oldFileName=n.oldFileName,d.newFileName=n.newFileName),i++;i<t.length;){let e=t[i];if(o(e)||s(e)||l(e))break;let n=/^rename from (.*)/.exec(e);n&&(d.oldFileName="a/"+a(n[1]),d.isRename=!0);let r=/^rename to (.*)/.exec(e);r&&(d.newFileName="b/"+a(r[1]),d.isRename=!0);let u=/^copy from (.*)/.exec(e);u&&(d.oldFileName="a/"+a(u[1]),d.isCopy=!0);let c=/^copy to (.*)/.exec(e);c&&(d.newFileName="b/"+a(c[1]),d.isCopy=!0);let f=/^new file mode (\d+)/.exec(e);f&&(d.isCreate=!0,d.newMode=f[1]);let h=/^deleted file mode (\d+)/.exec(e);h&&(d.isDelete=!0,d.oldMode=h[1]);let p=/^old mode (\d+)/.exec(e);p&&(d.oldMode=p[1]);let g=/^new mode (\d+)/.exec(e);g&&(d.newMode=g[1]),/^Binary files /.test(e)&&(d.isBinary=!0),i++}continue}if(l(e)){if(f)return;f=!0;let t=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(e);t&&(d.index=e.substring(t[0].length).trim())}i++}if(c(d),c(d),void 0===d.oldFileName!=(void 0===d.newFileName))throw Error("Missing "+(void 0!==d.oldFileName?'"+++ ..."':'"--- ..."')+" file header for "+(null!=(e=d.oldFileName)?e:d.newFileName));for(;i<t.length;){let e=t[i];if(l(e)||o(e)||/^===================================================================/.test(e))break;s(e)?d.hunks.push(function(){var e;let n=i,r=t[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),l={oldStart:+r[1],oldLines:void 0===r[2]?1:+r[2],newStart:+r[3],newLines:void 0===r[4]?1:+r[4],lines:[]};0===l.oldLines&&(l.oldStart+=1),0===l.newLines&&(l.newStart+=1);let s=0,a=0;for(;i<t.length&&(a<l.oldLines||s<l.newLines||(null==(e=t[i])?void 0:e.startsWith("\\")));i++){let e=0==t[i].length&&i!=t.length-1?" ":t[i][0];if("+"===e||"-"===e||" "===e||"\\"===e)l.lines.push(t[i]),"+"===e?s++:"-"===e?a++:" "===e&&(s++,a++);else throw Error(`Hunk at line ${n+1} contained invalid line ${t[i]}`)}if(s||1!==l.newLines||(l.newLines=0),a||1!==l.oldLines||(l.oldLines=0),s!==l.newLines)throw Error("Added line count did not match for hunk at line "+(n+1));if(a!==l.oldLines)throw Error("Removed line count did not match for hunk at line "+(n+1));if(i<t.length&&t[i]&&/^[+ -]/.test(t[i])&&!o(t[i]))throw Error("Hunk at line "+(n+1)+" has more lines than expected (expected "+l.oldLines+" old lines and "+l.newLines+" new lines)");return l}()):i++}}();return n}function es(e,t,n={}){let i;if((i="string"==typeof t?eo(t):Array.isArray(t)?t:[t]).length>1)throw Error("applyPatch only works with a single input.");return function(e,t,n={}){if(n.autoConvertLineEndings||null==n.autoConvertLineEndings){var i,r;!e.includes("\r\n")||e.startsWith("\n")||e.match(/[^\r]\n/)||(Array.isArray(i=t)||(i=[i]),i.some(e=>e.hunks.some(e=>e.lines.some(e=>!e.startsWith("\\")&&e.endsWith("\r")))))?!e.includes("\r\n")&&e.includes("\n")&&(Array.isArray(r=t)||(r=[r]),r.some(e=>e.hunks.some(e=>e.lines.some(e=>e.endsWith("\r"))))&&r.every(e=>e.hunks.every(e=>e.lines.every((t,n)=>{var i;return t.startsWith("\\")||t.endsWith("\r")||(null==(i=e.lines[n+1])?void 0:i.startsWith("\\"))}))))&&(t=function e(t){return Array.isArray(t)?t.map(t=>e(t)):Object.assign(Object.assign({},t),{hunks:t.hunks.map(e=>Object.assign(Object.assign({},e),{lines:e.lines.map(e=>e.endsWith("\r")?e.substring(0,e.length-1):e)}))})}(t)):t=function e(t){return Array.isArray(t)?t.map(t=>e(t)):Object.assign(Object.assign({},t),{hunks:t.hunks.map(e=>Object.assign(Object.assign({},e),{lines:e.lines.map((t,n)=>{var i;return t.startsWith("\\")||t.endsWith("\r")||(null==(i=e.lines[n+1])?void 0:i.startsWith("\\"))?t:t+"\r"})}))})}(t)}let l=e.split("\n"),o=t.hunks,s=n.compareLine||((e,t,n,i)=>t===i),a=n.fuzzFactor||0,u=0;if(a<0||!Number.isInteger(a))throw Error("fuzzFactor must be a non-negative integer");if(!o.length)return e;let c="",d=!1,f=!1;for(let e=0;e<o[o.length-1].lines.length;e++){let t=o[o.length-1].lines[e];"\\"==t[0]&&("+"==c[0]?d=!0:"-"==c[0]&&(f=!0)),c=t}if(d){if(f){if(!a&&""==l[l.length-1])return!1}else if(""==l[l.length-1])l.pop();else if(!a)return!1}else if(f){if(""!=l[l.length-1])l.push("");else if(!a)return!1}let h=[],p=0;for(let e=0;e<o.length;e++){let t,n,i=o[e],r=l.length-i.oldLines+a;for(let e=0;e<=a;e++){let o=function(e,t,n){let i=!0,r=!1,l=!1,o=1;return function s(){if(i&&!l){if(r?o++:i=!1,e+o<=n)return e+o;l=!0}if(!r)return(l||(i=!0),t<=e-o)?e-o++:(r=!0,s())}}(n=i.oldStart+p-1,u,r);for(;void 0!==n&&!(t=function e(t,n,i,r=0,o=!0,a=[],u=0){let c=0,d=!1;for(;r<t.length;r++){let f=t[r],h=f.length>0?f[0]:" ",p=f.length>0?f.substr(1):f;if("-"===h)if(s(n+1,l[n],h,p))n++,c=0;else{if(!i||null==l[n])return null;return a[u]=l[n],e(t,n+1,i-1,r,!1,a,u+1)}if("+"===h){if(!o)return null;a[u]=p,u++,c=0,d=!0}if(" "===h)if(c++,a[u]=l[n],s(n+1,l[n],h,p))u++,o=!0,d=!1,n++;else{if(d||!i)return null;return l[n]&&(e(t,n+1,i-1,r+1,!1,a,u+1)||e(t,n+1,i-1,r,!1,a,u+1))||e(t,n,i-1,r+1,!1,a,u)}}return u-=c,n-=c,a.length=u,{patchedLines:a,oldLineLastI:n-1}}(i.lines,n,e));n=o());if(t)break}if(!t)return!1;for(let e=u;e<n;e++)h.push(l[e]);for(let e=0;e<t.patchedLines.length;e++){let n=t.patchedLines[e];h.push(n)}u=t.oldLineLastI+1,p=n+1-i.oldStart}for(let e=u;e<l.length;e++)h.push(l[e]);return h.join("\n")}(e,i[0],n)}function ea(e,t){let n="string"==typeof e?eo(e):e,i=0;!function e(){let r=n[i++];if(!r)return t.complete();t.loadFile(r,function(n,i){if(n)return t.complete(n);let l=es(i,r,t);t.patched(r,l,function(n){if(n)return t.complete(n);e()})})}()}function eu(e){return void 0===e||"/dev/null"===e?e:e.startsWith("a/")?"b/"+e.slice(2):e.startsWith("b/")?"a/"+e.slice(2):e}function ec(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"',n=new TextEncoder().encode(e),i=0;for(;i<n.length;){let e=n[i];7===e?t+="\\a":8===e?t+="\\b":9===e?t+="\\t":10===e?t+="\\n":11===e?t+="\\v":12===e?t+="\\f":13===e?t+="\\r":34===e?t+='\\"':92===e?t+="\\\\":e>=32&&e<=126?t+=String.fromCharCode(e):t+="\\"+e.toString(8).padStart(3,"0"),i++}return t+'"'}let ed={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},ef={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},eh={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function ep(e,t,n,i,r,l,o){let s;void 0===(s=o?"function"==typeof o?{callback:o}:o:{}).context&&(s.context=4);let a=s.context;if(s.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!s.callback)return u(_(n,i,s));{let{callback:e}=s;_(n,i,Object.assign(Object.assign({},s),{callback:t=>{e(u(t))}}))}function u(n){if(!n)return;function i(e){return e.map(function(e){return" "+e})}n.push({value:"",lines:[]});let o=[],s=0,u=0,c=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],r=t.lines||function(e){let t=e.endsWith("\n"),n=e.split("\n").map(e=>e+"\n");return t?n.pop():n.push(n.pop().slice(0,-1)),n}(t.value);if(t.lines=r,t.added||t.removed){if(!s){let t=n[e-1];s=d,u=f,t&&(s-=(c=a>0?i(t.lines.slice(-a)):[]).length,u-=c.length)}for(let e of r)c.push((t.added?"+":"-")+e);t.added?f+=r.length:d+=r.length}else{if(s)if(r.length<=2*a&&e<n.length-2)for(let e of i(r))c.push(e);else{let e=Math.min(r.length,a);for(let t of i(r.slice(0,e)))c.push(t);let t={oldStart:s,oldLines:d-s+e,newStart:u,newLines:f-u+e,lines:c};o.push(t),s=0,u=0,c=[]}d+=r.length,f+=r.length}}for(let e of o)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:r,newHeader:l,hunks:o}}}function eg(e,t){var n,i,r,l,o,s;if(t||(t=ed),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(e=>e.isGit))throw Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>eg(e,t)).join("\n")}let a=[];if(e.isGit){if(t=ed,!e.oldFileName)throw Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw Error("newFileName must be specified for Git patches");let u=e.oldFileName,c=e.newFileName;e.isCreate&&"/dev/null"===u?u=c.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===c&&(c=u.replace(/^a\//,"b/")),a.push("diff --git "+ec(u)+" "+ec(c)),e.isDelete&&a.push("deleted file mode "+(null!=(n=e.oldMode)?n:"100644")),e.isCreate&&a.push("new file mode "+(null!=(i=e.newMode)?i:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(a.push("old mode "+e.oldMode),a.push("new mode "+e.newMode)),e.isRename&&(a.push("rename from "+ec((null!=(r=e.oldFileName)?r:"").replace(/^a\//,""))),a.push("rename to "+ec((null!=(l=e.newFileName)?l:"").replace(/^b\//,"")))),e.isCopy&&(a.push("copy from "+ec((null!=(o=e.oldFileName)?o:"").replace(/^a\//,""))),a.push("copy to "+ec((null!=(s=e.newFileName)?s:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&a.push("Index: "+e.oldFileName),t.includeUnderline&&a.push("===================================================================");let u=e.hunks.length>0;t.includeFileHeaders&&void 0!==e.oldFileName&&void 0!==e.newFileName&&(!e.isGit||u)&&(a.push("--- "+ec(e.oldFileName)+(e.oldHeader?" "+e.oldHeader:"")),a.push("+++ "+ec(e.newFileName)+(e.newHeader?" "+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){let n=e.hunks[t],i=0===n.oldLines?n.oldStart-1:n.oldStart,r=0===n.newLines?n.newStart-1:n.newStart;for(let e of(a.push("@@ -"+i+","+n.oldLines+" +"+r+","+n.newLines+" @@"),n.lines))a.push(e)}return a.join("\n")+"\n"}function em(e,t,n,i,r,l,o){if("function"==typeof o&&(o={callback:o}),null==o?void 0:o.callback){let{callback:s}=o;ep(e,t,n,i,r,l,Object.assign(Object.assign({},o),{callback:e=>{e?s(eg(e,o.headerOptions)):s(void 0)}}))}else{let s=ep(e,t,n,i,r,l,o);if(!s)return;return eg(s,null==o?void 0:o.headerOptions)}}function ey(e,t,n,i,r,l){return em(e,e,t,n,i,r,l)}function eb(e){let t,n=[];for(let i=0;i<e.length;i++)n.push([(t=e[i]).added?1:t.removed?-1:0,t.value]);return n}function ev(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(function(e){let t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}(i.value)),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}var ex=Object.create,ew=Object.defineProperty,ek=Object.getOwnPropertyDescriptor,eC=Object.getOwnPropertyNames,eA=Object.getPrototypeOf,eS=Object.prototype.hasOwnProperty,ej=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),eT=ej((e,t)=>{function n(e){return null==e}t.exports.isNothing=n,t.exports.isObject=function(e){return"object"==typeof e&&null!==e},t.exports.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.exports.repeat=function(e,t){let n="";for(let i=0;i<t;i+=1)n+=e;return n},t.exports.isNegativeZero=function(e){return 0===e&&-1/0==1/e},t.exports.extend=function(e,t){if(t){let n=Object.keys(t);for(let i=0,r=n.length;i<r;i+=1){let r=n[i];e[r]=t[r]}}return e}}),eN=ej((e,t)=>{function n(e,t){let n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),i+" "+n):i}function i(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=n(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.toString=function(e){return this.name+": "+n(this,e)},t.exports=i}),eL=ej((e,t)=>{var n=eT();function i(e,t,n,i,r){let l="",o="",s=Math.floor(r/2)-1;return i-t>s&&(t=i-s+(l=" ... ").length),n-i>s&&(n=i+s-(o=" ...").length),{str:l+e.slice(t,n).replace(/\t/g,"→")+o,pos:i-t+l.length}}function r(e,t){return n.repeat(" ",t-e.length)+e}t.exports=function(e,t){let l;if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);let o=/\r?\n|\r|\0/g,s=[0],a=[],u=-1;for(;l=o.exec(e.buffer);)a.push(l.index),s.push(l.index+l[0].length),e.position<=l.index&&u<0&&(u=s.length-2);u<0&&(u=s.length-1);let c="",d=Math.min(e.line+t.linesAfter,a.length).toString().length,f=t.maxLength-(t.indent+d+3);for(let l=1;l<=t.linesBefore&&!(u-l<0);l++){let o=i(e.buffer,s[u-l],a[u-l],e.position-(s[u]-s[u-l]),f);c=n.repeat(" ",t.indent)+r((e.line-l+1).toString(),d)+" | "+o.str+"\n"+c}let h=i(e.buffer,s[u],a[u],e.position,f);c+=n.repeat(" ",t.indent)+r((e.line+1).toString(),d)+" | "+h.str+"\n"+n.repeat("-",t.indent+d+3+h.pos)+"^\n";for(let l=1;l<=t.linesAfter&&!(u+l>=a.length);l++){let o=i(e.buffer,s[u+l],a[u+l],e.position-(s[u]-s[u+l]),f);c+=n.repeat(" ",t.indent)+r((e.line+l+1).toString(),d)+" | "+o.str+"\n"}return c.replace(/\n$/,"")}}),eO=ej((e,t)=>{var n=eN(),i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];t.exports=function(e,t){var l;let o;if(Object.keys(t=t||{}).forEach(function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(l=t.styleAliases||null,o={},null!==l&&Object.keys(l).forEach(function(e){l[e].forEach(function(t){o[String(t)]=e})}),o),-1===r.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}),eE=ej((e,t)=>{var n=eN(),i=eO();function r(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)}),n[t]=e}),n}function l(e){return this.extend(e)}l.prototype.extend=function(e){let t=[],o=[];if(e instanceof i)o.push(e);else if(Array.isArray(e))o=o.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(o=o.concat(e.explicit));else throw new n("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof i))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(e){if(!(e instanceof i))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let s=Object.create(l.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(o),s.compiledImplicit=r(s,"implicit"),s.compiledExplicit=r(s,"explicit"),s.compiledTypeMap=function(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}(s.compiledImplicit,s.compiledExplicit),s},t.exports=l}),eD=ej((e,t)=>{t.exports=new(eO())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}),eF=ej((e,t)=>{t.exports=new(eO())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}),eM=ej((e,t)=>{t.exports=new(eO())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}),eI=ej((e,t)=>{t.exports=new(eE())({explicit:[eD(),eF(),eM()]})}),eR=ej((e,t)=>{t.exports=new(eO())("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;let t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}),eH=ej((e,t)=>{t.exports=new(eO())("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;let t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}),eW=ej((e,t)=>{var n=eT();function i(e){let t=e,n=1,i=t[0];if(("-"===i||"+"===i)&&("-"===i&&(n=-1),i=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===i){if("b"===t[1])return n*parseInt(t.slice(2),2);if("x"===t[1])return n*parseInt(t.slice(2),16);if("o"===t[1])return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}t.exports=new(eO())("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){var t,n,r;if(null===e)return!1;let l=e.length,o=0,s=!1;if(!l)return!1;let a=e[o];if(("-"===a||"+"===a)&&(a=e[++o]),"0"===a){if(o+1===l)return!0;if("b"===(a=e[++o])){for(o++;o<l;o++){if("0"!==(a=e[o])&&"1"!==a)return!1;s=!0}return s&&Number.isFinite(i(e))}if("x"===a){for(o++;o<l;o++){if(!((t=e.charCodeAt(o))>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return!1;s=!0}return s&&Number.isFinite(i(e))}if("o"===a){for(o++;o<l;o++){if(!((n=e.charCodeAt(o))>=48&&n<=55))return!1;s=!0}return s&&Number.isFinite(i(e))}}for(;o<l;o++){if(!((r=e.charCodeAt(o))>=48&&r<=57))return!1;s=!0}return!!s&&Number.isFinite(i(e))},construct:function(e){return i(e)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!n.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}),eB=ej((e,t)=>{var n=eT(),i=eO(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=/^[-+]?[0-9]+e/;t.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!r.test(e)&&(!!Number.isFinite(parseFloat(e,10))||l.test(e))},construct:function(e){let t=e.toLowerCase(),n="-"===t[0]?-1:1;return("+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?1/0:-1/0:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";let i=e.toString(10);return o.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})}),e$=ej((e,t)=>{t.exports=eI().extend({implicit:[eR(),eH(),eW(),eB()]})}),eV=ej((e,t)=>{t.exports=e$()}),eG=ej((e,t)=>{var n=eO(),i=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==r.exec(e))},construct:function(e){let t=0,n=null,l=i.exec(e);if(null===l&&(l=r.exec(e)),null===l)throw Error("Date resolve error");let o=+l[1],s=l[2]-1,a=+l[3];if(!l[4])return new Date(Date.UTC(o,s,a));let u=+l[4],c=+l[5],d=+l[6];if(l[7]){for(t=l[7].slice(0,3);t.length<3;)t+="0";t*=1}l[9]&&(n=(60*l[10]+ +(l[11]||0))*6e4,"-"===l[9]&&(n=-n));let f=new Date(Date.UTC(o,s,a,u,c,d,t));return n&&f.setTime(f.getTime()-n),f},instanceOf:Date,represent:function(e){return e.toISOString()}})}),eP=ej((e,t)=>{t.exports=new(eO())("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}),e_=ej((e,t)=>{var n=eO(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=i.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0},construct:function(e){let t=e.replace(/[\r\n=]/g,""),n=t.length,r=0,l=[];for(let e=0;e<n;e++)e%4==0&&e&&(l.push(r>>16&255),l.push(r>>8&255),l.push(255&r)),r=r<<6|i.indexOf(t.charAt(e));let o=n%4*6;return 0===o?(l.push(r>>16&255),l.push(r>>8&255),l.push(255&r)):18===o?(l.push(r>>10&255),l.push(r>>2&255)):12===o&&l.push(r>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let t="",n=0,r=e.length;for(let l=0;l<r;l++)l%3==0&&l&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[63&n]),n=(n<<8)+e[l];let l=r%3;return 0===l?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[63&n]):2===l?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):1===l&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}})}),eU=ej((e,t)=>{var n=eO(),i=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;let t=[];for(let n=0,l=e.length;n<l;n+=1){let l,o=e[n],s=!1;if("[object Object]"!==r.call(o))return!1;for(l in o)if(i.call(o,l))if(s)return!1;else s=!0;if(!s||-1!==t.indexOf(l))return!1;t.push(l)}return!0},construct:function(e){return null!==e?e:[]}})}),eq=ej((e,t)=>{var n=eO(),i=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;let t=Array(e.length);for(let n=0,r=e.length;n<r;n+=1){let r=e[n];if("[object Object]"!==i.call(r))return!1;let l=Object.keys(r);if(1!==l.length)return!1;t[n]=[l[0],r[l[0]]]}return!0},construct:function(e){if(null===e)return[];let t=Array(e.length);for(let n=0,i=e.length;n<i;n+=1){let i=e[n],r=Object.keys(i);t[n]=[r[0],i[r[0]]]}return t}})}),ez=ej((e,t)=>{var n=eO(),i=Object.prototype.hasOwnProperty;t.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;for(let t in e)if(i.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})}),eJ=ej((e,t)=>{t.exports=eV().extend({implicit:[eG(),eP()],explicit:[e_(),eU(),eq(),ez()]})}),eY=ej((e,t)=>{var n=eT(),i=eN(),r=eL(),l=eJ(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,u=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,d=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function f(e){return Object.prototype.toString.call(e)}function h(e){return 10===e||13===e}function p(e){return 9===e||32===e}function g(e){return 9===e||32===e||10===e||13===e}function m(e){return 44===e||91===e||93===e||123===e||125===e}function y(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function b(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var v=Array(256),x=Array(256);for(let e=0;e<256;e++)v[e]=+!!y(e),x[e]=y(e);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||l,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxMergeSeqLength="number"==typeof t.maxMergeSeqLength?t.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function k(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=r(n),new i(t,n)}function C(e,t){throw k(e,t)}function A(e,t){e.onWarning&&e.onWarning.call(null,k(e,t))}function S(e,t,n){let i=e.anchorMapTransactions;if(0!==i.length){let n=i[i.length-1];o.call(n,t)||(n[t]={existed:o.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function j(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function T(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var N={YAML:function(e,t,n){null!==e.version&&C(e,"duplication of %YAML directive"),1!==n.length&&C(e,"YAML directive accepts exactly one argument");let i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);null===i&&C(e,"ill-formed argument of the YAML directive");let r=parseInt(i[1],10),l=parseInt(i[2],10);1!==r&&C(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=l<2,1!==l&&2!==l&&A(e,"unsupported YAML version of the document")},TAG:function(e,t,n){let i;2!==n.length&&C(e,"TAG directive accepts exactly two arguments");let r=n[0];i=n[1],c.test(r)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,r)&&C(e,'there is a previously declared suffix for "'+r+'" tag handle'),d.test(i)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){C(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function L(e,t,n,i){if(t<n){let r=e.input.slice(t,n);if(i)for(let t=0,n=r.length;t<n;t+=1){let n=r.charCodeAt(t);9===n||n>=32&&n<=1114111||C(e,"expected valid JSON character")}else s.test(r)&&C(e,"the stream contains non-printable characters");e.result+=r}}function O(e,t,i,r){n.isObject(i)||C(e,"cannot merge mappings; the provided source object is unacceptable");let l=Object.keys(i);for(let e=0,n=l.length;e<n;e+=1){let n=l[e];o.call(t,n)||(b(t,n,i[n]),r[n]=!0)}}function E(e,t,n,i,r,l,s,a,u){if(Array.isArray(r)){r=Array.prototype.slice.call(r);for(let t=0,n=r.length;t<n;t+=1)Array.isArray(r[t])&&C(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===f(r[t])&&(r[t]="[object Object]")}if("object"==typeof r&&"[object Object]"===f(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(l)){l.length>e.maxMergeSeqLength&&C(e,"merge sequence length exceeded maxMergeSeqLength ("+e.maxMergeSeqLength+")");let i=new Set;for(let r=0,o=l.length;r<o;r+=1){let o=l[r];i.has(o)||(i.add(o),O(e,t,o,n))}}else O(e,t,l,n);else!e.json&&!o.call(n,r)&&o.call(t,r)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,C(e,"duplicated mapping key")),b(t,r,l),delete n[r];return t}function D(e){let t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):C(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function F(e,t,n){let i=0,r=e.input.charCodeAt(e.position);for(;0!==r;){for(;p(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do r=e.input.charCodeAt(++e.position);while(10!==r&&13!==r&&0!==r);if(h(r))for(D(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==i&&e.lineIndent<n&&A(e,"deficient indentation"),i}function M(e){let t=e.position,n=e.input.charCodeAt(t);return!!((45===n||46===n)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,0===(n=e.input.charCodeAt(t))||g(n)))||!1}function I(e,t){1===t?e.result+=" ":t>1&&(e.result+=n.repeat("\n",t-1))}function R(e,t){let n=e.tag,i=e.anchor,r=[],l=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&S(e,e.anchor,r);let o=e.input.charCodeAt(e.position);for(;0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation")),45===o&&g(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,F(e,!0,-1)&&e.lineIndent<=t){r.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(W(e,t,3,!1,!0),r.push(e.result),F(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)C(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!l&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=r,!0)}function H(e,t,n){let i,r,l,o,s=e.tag,a=e.anchor,u={},c=Object.create(null),d=null,f=null,h=null,m=!1,y=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&S(e,e.anchor,u);let b=e.input.charCodeAt(e.position);for(;0!==b;){m||-1===e.firstTabInLine||(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation"));let v=e.input.charCodeAt(e.position+1),x=e.line;if((63===b||58===b)&&g(v))63===b?(m&&(E(e,u,c,d,f,null,r,l,o),d=f=h=null),y=!0,m=!0,i=!0):m?(m=!1,i=!0):C(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=v;else{if(r=e.line,l=e.lineStart,o=e.position,!W(e,n,2,!1,!0))break;if(e.line===x){for(b=e.input.charCodeAt(e.position);p(b);)b=e.input.charCodeAt(++e.position);if(58===b)g(b=e.input.charCodeAt(++e.position))||C(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(E(e,u,c,d,f,null,r,l,o),d=f=h=null),y=!0,m=!1,i=!1,d=e.tag,f=e.result;else{if(!y)return e.tag=s,e.anchor=a,!0;C(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=s,e.anchor=a,!0;C(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===x||e.lineIndent>t)&&(m&&(r=e.line,l=e.lineStart,o=e.position),W(e,t,4,!0,i)&&(m?f=e.result:h=e.result),m||(E(e,u,c,d,f,h,r,l,o),d=f=h=null),F(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&0!==b)C(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&E(e,u,c,d,f,null,r,l,o),y&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=u),y}function W(e,t,i,r,l){let s,a,f,y,b,w=1,k=!1,A=!1,N=null;e.depth>=e.maxDepth&&C(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let O=s=a=4===i||3===i;if(r&&F(e,!0,-1)&&(k=!0,e.lineIndent>t?w=1:e.lineIndent===t?w=0:e.lineIndent<t&&(w=-1)),1===w)for(;;){let n=e.input.charCodeAt(e.position),i=j(e);if(k&&(33===n&&null!==e.tag||38===n&&null!==e.anchor)||!function(e){let t,n,i=!1,r=!1,l=e.input.charCodeAt(e.position);if(33!==l)return!1;null!==e.tag&&C(e,"duplication of a tag property"),60===(l=e.input.charCodeAt(++e.position))?(i=!0,l=e.input.charCodeAt(++e.position)):33===l?(r=!0,t="!!",l=e.input.charCodeAt(++e.position)):t="!";let s=e.position;if(i){do l=e.input.charCodeAt(++e.position);while(0!==l&&62!==l);e.position<e.length?(n=e.input.slice(s,e.position),l=e.input.charCodeAt(++e.position)):C(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==l&&!g(l);)33===l&&(r?C(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(s-1,e.position+1),c.test(t)||C(e,"named tag handle cannot contain such characters"),r=!0,s=e.position+1)),l=e.input.charCodeAt(++e.position);n=e.input.slice(s,e.position),u.test(n)&&C(e,"tag suffix cannot contain flow indicator characters")}n&&!d.test(n)&&C(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){C(e,"tag name is malformed: "+n)}return i?e.tag=n:o.call(e.tagMap,t)?e.tag=e.tagMap[t]+n:"!"===t?e.tag="!"+n:"!!"===t?e.tag="tag:yaml.org,2002:"+n:C(e,'undeclared tag handle "'+t+'"'),!0}(e)&&!function(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&C(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let n=e.position;for(;0!==t&&!g(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&C(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}(e))break;null===N&&(N=i),F(e,!0,-1)?(k=!0,a=O,e.lineIndent>t?w=1:e.lineIndent===t?w=0:e.lineIndent<t&&(w=-1)):a=!1}if(a&&(a=k||l),1===w||4===i)if(y=1===i||2===i?t:t+1,b=e.position-e.lineStart,1===w)if(a&&(R(e,b)||H(e,b,y))||function(e,t){let n,i,r,l,o,s,a,u,c,d,f,h=!0,p=e.tag,m=e.anchor,y=Object.create(null),b=e.input.charCodeAt(e.position);if(91===b)o=93,u=!1,l=[];else{if(123!==b)return!1;o=125,u=!0,l={}}for(null!==e.anchor&&S(e,e.anchor,l),b=e.input.charCodeAt(++e.position);0!==b;){if(F(e,!0,t),(b=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=p,e.anchor=m,e.kind=u?"mapping":"sequence",e.result=l,!0;h?44===b&&C(e,"expected the node content, but found ','"):C(e,"missed comma between flow collection entries"),d=c=f=null,s=a=!1,63===b&&g(e.input.charCodeAt(e.position+1))&&(s=a=!0,e.position++,F(e,!0,t)),n=e.line,i=e.lineStart,r=e.position,W(e,t,1,!1,!0),d=e.tag,c=e.result,F(e,!0,t),b=e.input.charCodeAt(e.position),(a||e.line===n)&&58===b&&(s=!0,b=e.input.charCodeAt(++e.position),F(e,!0,t),W(e,t,1,!1,!0),f=e.result),u?E(e,l,y,d,c,f,n,i,r):s?l.push(E(e,null,y,d,c,f,n,i,r)):l.push(c),F(e,!0,t),44===(b=e.input.charCodeAt(e.position))?(h=!0,b=e.input.charCodeAt(++e.position)):h=!1}C(e,"unexpected end of the stream within a flow collection")}(e,y))A=!0;else{let t=e.input.charCodeAt(e.position);null!==N&&O&&!a&&124!==t&&62!==t&&function(e,t,n,i){let r=j(e);if(e.anchorMapTransactions.push(Object.create(null)),T(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,H(e,n,i)&&"mapping"===e.kind)return!function(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(0===n.length)return;let i=n[n.length-1],r=Object.keys(t);for(let e=0,n=r.length;e<n;e+=1){let n=r[e];o.call(i,n)||(i[n]=t[n])}}(e),!0;let l=e.anchorMapTransactions.pop(),s=Object.keys(l);for(let t=s.length-1;t>=0;t-=1){let n=l[s[t]];n.existed?e.anchorMap[s[t]]=n.value:delete e.anchorMap[s[t]]}return T(e,r),!1}(e,N,N.position-N.lineStart,y)||s&&function(e,t){let i,r,l=1,o=!1,s=!1,a=t,u=0,c=!1,d=e.input.charCodeAt(e.position);if(124===d)i=!1;else{if(62!==d)return!1;i=!0}for(e.kind="scalar",e.result="";0!==d;)if(43===(d=e.input.charCodeAt(++e.position))||45===d)1===l?l=43===d?3:2:C(e,"repeat of a chomping mode identifier");else{var f;if((r=(f=d)>=48&&f<=57?f-48:-1)>=0)0===r?C(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?C(e,"repeat of an indentation width identifier"):(a=t+r-1,s=!0);else break}if(p(d)){do d=e.input.charCodeAt(++e.position);while(p(d));if(35===d)do d=e.input.charCodeAt(++e.position);while(!h(d)&&0!==d)}for(;0!==d;){for(D(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&32===d;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),h(d)){u++;continue}if(s||0!==a||C(e,"missing indentation for block scalar"),e.lineIndent<a){3===l?e.result+=n.repeat("\n",o?1+u:u):1===l&&o&&(e.result+="\n");break}i?p(d)?(c=!0,e.result+=n.repeat("\n",o?1+u:u)):c?(c=!1,e.result+=n.repeat("\n",u+1)):0===u?o&&(e.result+=" "):e.result+=n.repeat("\n",u):e.result+=n.repeat("\n",o?1+u:u),o=!0,s=!0,u=0;let t=e.position;for(;!h(d)&&0!==d;)d=e.input.charCodeAt(++e.position);L(e,t,e.position,!1)}return!0}(e,y)||function(e,t){let n,i,r=e.input.charCodeAt(e.position);if(39!==r)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(L(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else h(r)?(L(e,n,i,!0),I(e,F(e,!1,t)),n=i=e.position):e.position===e.lineStart&&M(e)?C(e,"unexpected end of the document within a single quoted scalar"):(e.position++,p(r)||(i=e.position));C(e,"unexpected end of the stream within a single quoted scalar")}(e,y)||function(e,t){let n,i,r,l=e.input.charCodeAt(e.position);if(34!==l)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(l=e.input.charCodeAt(e.position));)if(34===l)return L(e,n,e.position,!0),e.position++,!0;else if(92===l){if(L(e,n,e.position,!0),h(l=e.input.charCodeAt(++e.position)))F(e,!1,t);else if(l<256&&v[l])e.result+=x[l],e.position++;else{var o,s;if((r=120===(o=l)?2:117===o?4:8*(85===o))>0){let t=r,n=0;for(;t>0;t--)(r=function(e){if(e>=48&&e<=57)return e-48;let t=32|e;return t>=97&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?n=(n<<4)+r:C(e,"expected hexadecimal character");e.result+=(s=n)<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320),e.position++}else C(e,"unknown escape sequence")}n=i=e.position}else h(l)?(L(e,n,i,!0),I(e,F(e,!1,t)),n=i=e.position):e.position===e.lineStart&&M(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,p(l)||(i=e.position));C(e,"unexpected end of the stream within a double quoted scalar")}(e,y)?A=!0:function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;0!==t&&!g(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&C(e,"name of an alias node must contain at least one character");let i=e.input.slice(n,e.position);return o.call(e.anchorMap,i)||C(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],F(e,!0,-1),!0}(e)?(A=!0,(null!==e.tag||null!==e.anchor)&&C(e,"alias node should not have any properties")):function(e,t,n){let i,r,l,o,s,a,u=e.kind,c=e.result,d=e.input.charCodeAt(e.position);if(g(d)||m(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if(63===d||45===d){let t=e.input.charCodeAt(e.position+1);if(g(t)||n&&m(t))return!1}for(e.kind="scalar",e.result="",i=r=e.position,l=!1;0!==d;){if(58===d){let t=e.input.charCodeAt(e.position+1);if(g(t)||n&&m(t))break}else if(35===d){if(g(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&M(e)||n&&m(d))break;else if(h(d)){if(o=e.line,s=e.lineStart,a=e.lineIndent,F(e,!1,-1),e.lineIndent>=t){l=!0,d=e.input.charCodeAt(e.position);continue}e.position=r,e.line=o,e.lineStart=s,e.lineIndent=a;break}l&&(L(e,i,r,!1),I(e,e.line-o),i=r=e.position,l=!1),p(d)||(r=e.position+1),d=e.input.charCodeAt(++e.position)}return L(e,i,r,!1),!!e.result||(e.kind=u,e.result=c,!1)}(e,y,1===i)&&(A=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&S(e,e.anchor,e.result)}else 0===w&&(A=a&&R(e,b));if(null===e.tag)null!==e.anchor&&S(e,e.anchor,e.result);else if("?"===e.tag){null!==e.result&&"scalar"!==e.kind&&C(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if((f=e.implicitTypes[t]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&S(e,e.anchor,e.result);break}}else if("!"!==e.tag){if(o.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||"fallback"];for(let n=0,i=t.length;n<i;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||C(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&C(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&S(e,e.anchor,e.result)):C(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),e.depth-=1,null!==e.tag||null!==e.anchor||A}function B(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));let n=new w(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,C(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)!function(e){let t,n=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(t=e.input.charCodeAt(e.position))&&(F(e,!0,-1),t=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===t);){i=!0,t=e.input.charCodeAt(++e.position);let n=e.position;for(;0!==t&&!g(t);)t=e.input.charCodeAt(++e.position);let r=e.input.slice(n,e.position),l=[];for(r.length<1&&C(e,"directive name must not be less than one character in length");0!==t;){for(;p(t);)t=e.input.charCodeAt(++e.position);if(35===t){do t=e.input.charCodeAt(++e.position);while(0!==t&&!h(t));break}if(h(t))break;for(n=e.position;0!==t&&!g(t);)t=e.input.charCodeAt(++e.position);l.push(e.input.slice(n,e.position))}0!==t&&D(e),o.call(N,r)?N[r](e,r,l):A(e,'unknown document directive "'+r+'"')}if(F(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,F(e,!0,-1)):i&&C(e,"directives end mark is expected"),W(e,e.lineIndent-1,4,!1,!0),F(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(n,e.position))&&A(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&M(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,F(e,!0,-1));return}e.position<e.length-1&&C(e,"end of the stream or a document separator is expected")}(n);return n.documents}t.exports.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);let i=B(e,n);if("function"!=typeof t)return i;for(let e=0,n=i.length;e<n;e+=1)t(i[e])},t.exports.load=function(e,t){let n=B(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new i("expected a single document in the stream, but found more")}}}),eZ=ej((e,t)=>{var n=eT(),i=eN(),r=eJ(),l=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s={};s[0]="\\0",s[7]="\\a",s[8]="\\b",s[9]="\\t",s[10]="\\n",s[11]="\\v",s[12]="\\f",s[13]="\\r",s[27]="\\e",s[34]='\\"',s[92]="\\\\",s[133]="\\N",s[160]="\\_",s[8232]="\\L",s[8233]="\\P";var a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],u=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){if(null===t)return{};let n={},i=Object.keys(t);for(let r=0,l=i.length;r<l;r+=1){let l=i[r],s=String(t[l]);"!!"===l.slice(0,2)&&(l="tag:yaml.org,2002:"+l.slice(2));let a=e.compiledTypeMap.fallback[l];a&&o.call(a.styleAliases,s)&&(s=a.styleAliases[s]),n[l]=s}return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(e,t){let i=n.repeat(" ",t),r=0,l="",o=e.length;for(;r<o;){let t,n=e.indexOf("\n",r);-1===n?(t=e.slice(r),r=o):(t=e.slice(r,n+1),r=n+1),t.length&&"\n"!==t&&(l+=i),l+=t}return l}function f(e,t){return"\n"+n.repeat(" ",e.indent*t)}function h(e){return 32===e||9===e}function p(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&65279!==e||e>=65536&&e<=1114111}function g(e){return p(e)&&65279!==e&&13!==e&&10!==e}function m(e,t,n){let i=g(e),r=i&&!h(e);return(n?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||g(t)&&!h(t)&&35===e||58===t&&r}function y(e,t){let n,i=e.charCodeAt(t);return i>=55296&&i<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(i-55296)*1024+n-56320+65536:i}function b(e){return/^\n* /.test(e)}function v(e,t){let n=b(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function w(e,t){let n,i;if(""===e||" "===e[0])return e;let r=/ [^ ]/g,l=0,o=0,s=0,a="";for(;n=r.exec(e);)(s=n.index)-l>t&&(i=o>l?o:s,a+="\n"+e.slice(l,i),l=i+1),o=s;return a+="\n",e.length-l>t&&o>l?a+=e.slice(l,o)+"\n"+e.slice(o+1):a+=e.slice(l),a.slice(1)}function k(e,t,n,i){let r="",l=e.tag;for(let l=0,o=n.length;l<o;l+=1){let o=n[l];e.replacer&&(o=e.replacer.call(n,String(l),o)),(A(e,t+1,o,!0,!0,!1,!0)||void 0===o&&A(e,t+1,null,!0,!0,!1,!0))&&(i&&""===r||(r+=f(e,t)),e.dump&&10===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump)}e.tag=l,e.dump=r||"[]"}function C(e,t,n){let r=n?e.explicitTypes:e.implicitTypes;for(let s=0,a=r.length;s<a;s+=1){let a=r[s];if((a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(n?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){let n,r=e.styleMap[a.tag]||a.defaultStyle;if("[object Function]"===l.call(a.represent))n=a.represent(t,r);else if(o.call(a.represent,r))n=a.represent[r](t,r);else throw new i("!<"+a.tag+'> tag resolver accepts not "'+r+'" style');e.dump=n}return!0}}return!1}function A(e,t,r,o,c,g,S){let j,T;e.tag=null,e.dump=r,C(e,r,!1)||C(e,r,!0);let N=l.call(e.dump),L=o;o&&(o=e.flowLevel<0||e.flowLevel>t);let O="[object Object]"===N||"[object Array]"===N;if(O&&(T=-1!==(j=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||T||2!==e.indent&&t>0)&&(c=!1),T&&e.usedDuplicates[j])e.dump="*ref_"+j;else{if(O&&T&&!e.usedDuplicates[j]&&(e.usedDuplicates[j]=!0),"[object Object]"===N)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){let l="",o=e.tag,s=Object.keys(n);if(!0===e.sortKeys)s.sort();else if("function"==typeof e.sortKeys)s.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(let i=0,o=s.length;i<o;i+=1){let o="";r&&""===l||(o+=f(e,t));let a=s[i],u=n[a];if(e.replacer&&(u=e.replacer.call(n,a,u)),!A(e,t+1,a,!0,!0,!0))continue;let c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;c&&(e.dump&&10===e.dump.charCodeAt(0)?o+="?":o+="? "),o+=e.dump,c&&(o+=f(e,t)),A(e,t+1,u,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?o+=":":o+=": ",o+=e.dump,l+=o)}e.tag=o,e.dump=l||"{}"}(e,t,e.dump,c),T&&(e.dump="&ref_"+j+e.dump)):(!function(e,t,n){let i="",r=e.tag,l=Object.keys(n);for(let r=0,o=l.length;r<o;r+=1){let o="";""!==i&&(o+=", "),e.condenseFlow&&(o+='"');let s=l[r],a=n[s];e.replacer&&(a=e.replacer.call(n,s,a)),A(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),A(e,t,a,!1,!1)&&(o+=e.dump,i+=o))}e.tag=r,e.dump="{"+i+"}"}(e,t,e.dump),T&&(e.dump="&ref_"+j+" "+e.dump));else if("[object Array]"===N)o&&0!==e.dump.length?(e.noArrayIndent&&!S&&t>0?k(e,t-1,e.dump,c):k(e,t,e.dump,c),T&&(e.dump="&ref_"+j+e.dump)):(!function(e,t,n){let i="",r=e.tag;for(let r=0,l=n.length;r<l;r+=1){let l=n[r];e.replacer&&(l=e.replacer.call(n,String(r),l)),(A(e,t,l,!1,!1)||void 0===l&&A(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump)}e.tag=r,e.dump="["+i+"]"}(e,t,e.dump),T&&(e.dump="&ref_"+j+" "+e.dump));else if("[object String]"===N){var E;"?"!==e.tag&&(E=e.dump,e.dump=function(){if(0===E.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==a.indexOf(E)||u.test(E)))return 2===e.quotingType?'"'+E+'"':"'"+E+"'";let r=e.indent*Math.max(1,t),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r);switch(function(e,t,n,i,r,l,o,s){var a,u;let c,d=0,f=null,g=!1,v=!1,x=-1!==i,w=-1,k=p(a=y(e,0))&&65279!==a&&!h(a)&&45!==a&&63!==a&&58!==a&&44!==a&&91!==a&&93!==a&&123!==a&&125!==a&&35!==a&&38!==a&&42!==a&&33!==a&&124!==a&&61!==a&&62!==a&&39!==a&&34!==a&&37!==a&&64!==a&&96!==a&&!h(u=y(e,e.length-1))&&58!==u;if(t||o)for(c=0;c<e.length;d>=65536?c+=2:c++){if(!p(d=y(e,c)))return 5;k=k&&m(d,f,s),f=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(10===(d=y(e,c)))g=!0,x&&(v=v||c-w-1>i&&" "!==e[w+1],w=c);else if(!p(d))return 5;k=k&&m(d,f,s),f=d}v=v||x&&c-w-1>i&&" "!==e[w+1]}return g||v?n>9&&b(e)?5:o?2===l?5:2:v?4:3:!k||o||r(e)?2===l?5:2:1}(E,g||e.flowLevel>-1&&t>=e.flowLevel,e.indent,l,function(t){for(let n=0,i=e.implicitTypes.length;n<i;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1},e.quotingType,e.forceQuotes&&!g,L)){case 1:return E;case 2:return"'"+E.replace(/'/g,"''")+"'";case 3:return"|"+v(E,e.indent)+x(d(E,r));case 4:return">"+v(E,e.indent)+x(d(function(e,t){let n,i,r,l=/(\n+)([^\n]*)/g,o=(l.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,w(e.slice(0,r),t)),s="\n"===e[0]||" "===e[0];for(;i=l.exec(e);){let e=i[1],r=i[2];n=" "===r[0],o+=e+(s||n||""===r?"":"\n")+w(r,t),s=n}return o}(E,l),r));case 5:return'"'+function(e){let t="",r=0;for(let l=0;l<e.length;r>=65536?l+=2:l++){let o=s[r=y(e,l)];!o&&p(r)?(t+=e[l],r>=65536&&(t+=e[l+1])):t+=o||function(e){let t,r,l=e.toString(16).toUpperCase();if(e<=255)t="x",r=2;else if(e<=65535)t="u",r=4;else if(e<=0xffffffff)t="U",r=8;else throw new i("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+n.repeat("0",r-l.length)+l}(r)}return t}(E)+'"';default:throw new i("impossible error: invalid scalar style")}}())}else{if("[object Undefined]"===N||e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+N)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}t.exports.dump=function(e,t){let n=new c(t=t||{});n.noRefs||function(e,t){let n=[],i=[];!function e(t,n,i){if(null!==t&&"object"==typeof t){let r=n.indexOf(t);if(-1!==r)-1===i.indexOf(r)&&i.push(r);else if(n.push(t),Array.isArray(t))for(let r=0,l=t.length;r<l;r+=1)e(t[r],n,i);else{let r=Object.keys(t);for(let l=0,o=r.length;l<o;l+=1)e(t[r[l]],n,i)}}}(e,n,i);let r=i.length;for(let e=0;e<r;e+=1)t.duplicates.push(n[i[e]]);t.usedDuplicates=Array(r)}(e,n);let i=e;return(n.replacer&&(i=n.replacer.call({"":i},"",i)),A(n,0,i,!0,!0))?n.dump+"\n":""}}),eK=((e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,l=eC(t),o=0,s=l.length;o<s;o++)r=l[o],eS.call(e,r)||r===n||ew(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(i=ek(t,r))||i.enumerable});return e})(ew(null!=(i=ej((e,t)=>{var n=eY(),i=eZ();function r(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}t.exports.Type=eO(),t.exports.Schema=eE(),t.exports.FAILSAFE_SCHEMA=eI(),t.exports.JSON_SCHEMA=e$(),t.exports.CORE_SCHEMA=eV(),t.exports.DEFAULT_SCHEMA=eJ(),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.dump=i.dump,t.exports.YAMLException=eN(),t.exports.types={binary:e_(),float:eB(),map:eM(),null:eR(),pairs:eq(),set:ez(),timestamp:eG(),bool:eH(),int:eW(),merge:eP(),omap:eU(),seq:eF(),str:eD()},t.exports.safeLoad=r("safeLoad","load"),t.exports.safeLoadAll=r("safeLoadAll","loadAll"),t.exports.safeDump=r("safeDump","dump")})())?ex(eA(i)):{},"default",{value:i,enumerable:!0}),i),{Type:eQ,Schema:eX,FAILSAFE_SCHEMA:e0,JSON_SCHEMA:e1,CORE_SCHEMA:e5,DEFAULT_SCHEMA:e2,load:e3,loadAll:e4,dump:e6,YAMLException:e9,types:e7,safeLoad:e8,safeLoadAll:te,safeDump:tt}=eK.default;function tn(e,t){return"yaml"===t?e6(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}eK.default,(r=u||(u={}))[r.DEFAULT=0]="DEFAULT",r[r.ADDED=1]="ADDED",r[r.REMOVED=2]="REMOVED",r[r.CHANGED=3]="CHANGED";function ti(e,t,n="json"){if(0===t)return e;let i=" ".repeat(t);return e.split("\n").map((e,t)=>0===t?e:i+e).join("\n")}(l=c||(c={})).CHARS="diffChars",l.WORDS="diffWords",l.WORDS_WITH_SPACE="diffWordsWithSpace",l.LINES="diffLines",l.TRIMMED_LINES="diffTrimmedLines",l.SENTENCES="diffSentences",l.CSS="diffCss",l.JSON="diffJson",l.YAML="diffYaml";let tr=e=>""===e?[]:e.replace(/\n$/,"").split("\n"),tl=(e,t,n=c.CHARS)=>{let i=("string"==typeof n?h[n]:n)(e,t),r={left:[],right:[]};return i.forEach(({added:e,removed:t,value:n})=>{if(e)r.right.push({type:u.ADDED,value:n});else if(t)r.left.push({type:u.REMOVED,value:n});else{let e={type:u.DEFAULT,value:n};r.right.push(e),r.left.push(e)}}),r},to=(e,t,n=!1,i=c.CHARS,r=0,l=[],o=!1)=>{let s=[];if("string"==typeof e&&"string"==typeof t)if(i===c.JSON)s=function(e,t){try{let n=JSON.parse(e),i=JSON.parse(t),r=JSON.stringify(n),l=JSON.stringify(i);if(r===l)return[{value:e}];return _(e,t,{newlineIsToken:!1})}catch(n){return _(e,t,{newlineIsToken:!1})}}(e,t);else if(i===c.YAML)try{let n,i;n=e3(e),i=e3(t),s=e6(n,{indent:2,lineWidth:-1,noRefs:!0})===e6(i,{indent:2,lineWidth:-1,noRefs:!0})?[{value:e}]:_(e,t,{newlineIsToken:!1})}catch(n){s=_(e,t,{newlineIsToken:!1})}else s=_(e,t,{newlineIsToken:!1});else s=function(e,t,n="json"){let i=tn(e,n);return i===tn(t,n)?[{value:i}]:function e(t,n,i,r="json"){let l=tn(t,r),o=tn(n,r);return l===o?[{value:ti(l,i,r)}]:"object"!=typeof t||null===t||"object"!=typeof n||null===n||Array.isArray(t)||Array.isArray(n)?Array.isArray(t)&&Array.isArray(n)?function(t,n,i,r="json"){let l=[],o=" ".repeat(i),s=" ".repeat(i+1);l.push({value:"[\n"});let a=Math.max(t.length,n.length);for(let o=0;o<a;o++){let u=o===a-1?"":",";if(o>=t.length){let e=ti(tn(n[o],r),i+1);l.push({added:!0,value:s+e+u+"\n"})}else if(o>=n.length){let e=ti(tn(t[o],r),i+1);l.push({removed:!0,value:s+e+u+"\n"})}else{let a=tn(t[o],r);if(a===tn(n[o],r)){let e=ti(a,i+1);l.push({value:s+e+u+"\n"})}else{let a=e(t[o],n[o],i+1,r);if(a.length>0&&(a[0].value=s+a[0].value),u&&a.length>0){let e=a[a.length-1];e.value=e.value.replace(/\n$/,u+"\n")}l.push(...a)}}}return l.push({value:o+"]\n"}),l}(t,n,i,r):function(e,t,n,i="json"){return _(ti(e,n),ti(t,n)).map(e=>({value:e.value,added:e.added,removed:e.removed}))}(l,o,i,r):function(t,n,i,r="json"){let l=[],o=" ".repeat(i),s=" ".repeat(i+1),a=new Set(Object.keys(t)),u=[...Object.keys(n),...[...a].filter(e=>!(e in n))];l.push({value:"{\n"});for(let o=0;o<u.length;o++){let a=u[o],c=o===u.length-1?"":",",d=a in t,f=a in n;if(d&&f){let o=tn(t[a],r);if(o===tn(n[a],r)){let e=ti(o,i+1);l.push({value:s+JSON.stringify(a)+": "+e+c+"\n"})}else{let o=s+JSON.stringify(a)+": ",u=e(t[a],n[a],i+1,r);if(u.length>0)if(u[0].removed||u[0].added){let e=u.find(e=>e.removed),t=u.find(e=>e.added);e&&(e.value=o+e.value),t&&(t.value=o+t.value)}else u[0].value=o+u[0].value;if(c&&u.length>0){let e=u[u.length-1];e.value=e.value.replace(/\n$/,c+"\n")}l.push(...u)}}else if(d){let e=ti(tn(t[a],r),i+1);l.push({removed:!0,value:s+JSON.stringify(a)+": "+e+c+"\n"})}else{let e=ti(tn(n[a],r),i+1);l.push({added:!0,value:s+JSON.stringify(a)+": "+e+c+"\n"})}}return l.push({value:o+"}\n"}),l}(t,n,i,r)}(e,t,0,n)}(e,t,"json");let a=r,d=r,f=[],h=0,p=[],g=[],m=(e,t,r,c,f)=>tr(e).map((e,y)=>{let b={},v={};if(!g.includes(`${t}-${y}`)&&(!f||0===y)){if(r||c){let r=!0;if(c){b.lineNumber=d+=1,b.type=u.REMOVED,b.value=e||" ";let l=s[t+1];if(l?.added){let s=tr(l.value)[y];if(s){let{value:l,lineNumber:a,type:u}=m(s,t,!0,!1,!0)[0].right;if(g.push(`${t+1}-${y}`),v.lineNumber=a,b.value===l)r=!1,v.type=0,b.type=0,v.value=l;else{v.type=u;let t=e.length>500||l.length>500;if(n||t)v.value=l;else if(o)b.rawValue=e,b.value=e,v.rawValue=l,v.value=l;else{let t=tl(e,l,i);v.value=t.right,b.value=t.left}}}}}else v.lineNumber=a+=1,v.type=u.ADDED,v.value=e;!r||f||p.includes(h)||p.push(h)}else d+=1,a+=1,b.lineNumber=d,b.type=u.DEFAULT,b.value=e,v.lineNumber=a,v.type=u.DEFAULT,v.value=e;return(l?.includes(`L-${b.lineNumber}`)||l?.includes(`R-${v.lineNumber}`)&&!p.includes(h))&&p.push(h),f||(h+=1),{right:v,left:b}}}).filter(e=>null!=e);return s.forEach(({added:e,removed:t,value:n},i)=>{f=[...f,...m(n,i,e,t)]}),{lineInformation:f,diffLines:p}},ts=null,ta=null,tu=async()=>{if(null!==ts)return ts;if(!1===ta)return null;if("u"<typeof Worker||"u"<typeof Blob||"u"<typeof URL)return ta=!1,null;try{let{WORKER_CODE:e}=await n.e(6232).then(n.bind(n,46232)),t=new Blob([e],{type:"application/javascript"});ts=URL.createObjectURL(t),ta=!0}catch{ta=!1,ts=null}return ts},tc=async(e,t,n=!1,i=c.CHARS,r=0,l=[],o=!1,s=!1)=>{let a=()=>to(e,t,n,i,r,l,o);if(s)return Promise.resolve(a());let u=await tu();return u?new Promise(s=>{let c;try{c=new Worker(u)}catch{ta=!1,s(a());return}c.onmessage=e=>{s(e.data),c.terminate()},c.onerror=()=>{ta=!1,c.terminate(),s(a())},c.postMessage({oldString:e,newString:t,disableWordDiff:n,lineCompareMethod:i,linesOffset:r,showLines:l,deferWordDiff:o})}):Promise.resolve(a())};function td(){return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[(0,p.jsx)("title",{children:"expand"}),(0,p.jsx)("path",{d:"m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}var tf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{i.insertRule(e,i.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),th=Math.abs,tp=String.fromCharCode,tg=Object.assign;function tm(e,t,n){return e.replace(t,n)}function ty(e,t){return e.indexOf(t)}function tb(e,t){return 0|e.charCodeAt(t)}function tv(e,t,n){return e.slice(t,n)}function tx(e){return e.length}function tw(e,t){return t.push(e),e}var tk=1,tC=1,tA=0,tS=0,tj=0,tT="";function tN(e,t,n,i,r,l,o){return{value:e,root:t,parent:n,type:i,props:r,children:l,line:tk,column:tC,length:o,return:""}}function tL(e,t){return tg(tN("",null,null,"",null,null,0),e,{length:-e.length},t)}function tO(){return tj=tS<tA?tb(tT,tS++):0,tC++,10===tj&&(tC=1,tk++),tj}function tE(){return tb(tT,tS)}function tD(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tF(e){return tk=tC=1,tA=tx(tT=e),tS=0,[]}function tM(e){var t,n;return(t=tS-1,n=function e(t){for(;tO();)switch(tj){case t:return tS;case 34:case 39:34!==t&&39!==t&&e(tj);break;case 40:41===t&&e(t);break;case 92:tO()}return tS}(91===e?e+2:40===e?e+1:e),tv(tT,t,n)).trim()}var tI="-ms-",tR="-moz-",tH="-webkit-",tW="comm",tB="rule",t$="decl",tV="@keyframes";function tG(e,t){for(var n="",i=e.length,r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function tP(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case t$:return e.return=e.return||e.value;case tW:return"";case tV:return e.return=e.value+"{"+tG(e.children,i)+"}";case tB:e.value=e.props.join(",")}return tx(n=tG(e.children,i))?e.return=e.value+"{"+n+"}":""}function t_(e,t,n,i,r,l,o,s,a,u,c){for(var d=r-1,f=0===r?l:[""],h=f.length,p=0,g=0,m=0;p<i;++p)for(var y=0,b=tv(e,d+1,d=th(g=o[p])),v=e;y<h;++y)(v=(g>0?f[y]+" "+b:tm(b,/&\f/g,f[y])).trim())&&(a[m++]=v);return tN(e,t,n,0===r?tB:s,a,u,c)}function tU(e,t,n,i){return tN(e,t,n,t$,tv(e,0,i),tv(e,i+1,-1),i)}var tq=function(e,t,n){for(var i=0,r=0;i=r,r=tE(),38===i&&12===r&&(t[n]=1),!tD(r);)tO();return tv(tT,e,tS)},tz=function(e,t){var n=-1,i=44;do switch(tD(i)){case 0:38===i&&12===tE()&&(t[n]=1),e[n]+=tq(tS-1,t,n);break;case 2:e[n]+=tM(i);break;case 4:if(44===i){e[++n]=58===tE()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=tp(i)}while(i=tO());return e},tJ=function(e,t){var n;return n=tz(tF(e),t),tT="",n},tY=new WeakMap,tZ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||tY.get(n))&&!i){tY.set(e,!0);for(var r=[],l=tJ(t,r),o=n.props,s=0,a=0;s<l.length;s++)for(var u=0;u<o.length;u++,a++)e.props[a]=r[s]?l[s].replace(/&\f/g,o[u]):o[u]+" "+l[s]}}},tK=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},tQ=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case t$:e.return=function e(t,n){switch(45^tb(t,0)?(((n<<2^tb(t,0))<<2^tb(t,1))<<2^tb(t,2))<<2^tb(t,3):0){case 5103:return tH+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tH+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return tH+t+tR+t+tI+t+t;case 6828:case 4268:return tH+t+tI+t+t;case 6165:return tH+t+tI+"flex-"+t+t;case 5187:return tH+t+tm(t,/(\w+).+(:[^]+)/,tH+"box-$1$2"+tI+"flex-$1$2")+t;case 5443:return tH+t+tI+"flex-item-"+tm(t,/flex-|-self/,"")+t;case 4675:return tH+t+tI+"flex-line-pack"+tm(t,/align-content|flex-|-self/,"")+t;case 5548:return tH+t+tI+tm(t,"shrink","negative")+t;case 5292:return tH+t+tI+tm(t,"basis","preferred-size")+t;case 6060:return tH+"box-"+tm(t,"-grow","")+tH+t+tI+tm(t,"grow","positive")+t;case 4554:return tH+tm(t,/([^-])(transform)/g,"$1"+tH+"$2")+t;case 6187:return tm(tm(tm(t,/(zoom-|grab)/,tH+"$1"),/(image-set)/,tH+"$1"),t,"")+t;case 5495:case 3959:return tm(t,/(image-set\([^]*)/,tH+"$1$`$1");case 4968:return tm(tm(t,/(.+:)(flex-)?(.*)/,tH+"box-pack:$3"+tI+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tH+t+t;case 4095:case 3583:case 4068:case 2532:return tm(t,/(.+)-inline(.+)/,tH+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tx(t)-1-n>6)switch(tb(t,n+1)){case 109:if(45!==tb(t,n+4))break;case 102:return tm(t,/(.+:)(.+)-([^]+)/,"$1"+tH+"$2-$3$1"+tR+(108==tb(t,n+3)?"$3":"$2-$3"))+t;case 115:return~ty(t,"stretch")?e(tm(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==tb(t,n+1))break;case 6444:switch(tb(t,tx(t)-3-(~ty(t,"!important")&&10))){case 107:return tm(t,":",":"+tH)+t;case 101:return tm(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tH+(45===tb(t,14)?"inline-":"")+"box$3$1"+tH+"$2$3$1"+tI+"$2box$3")+t}break;case 5936:switch(tb(t,n+11)){case 114:return tH+t+tI+tm(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return tH+t+tI+tm(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return tH+t+tI+tm(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return tH+t+tI+t+t}return t}(e.value,e.length);break;case tV:return tG([tL(e,{value:tm(e.value,"@","@"+tH)})],i);case tB:if(e.length){var r,l;return r=e.props,l=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return tG([tL(e,{props:[tm(t,/:(read-\w+)/,":"+tR+"$1")]})],i);case"::placeholder":return tG([tL(e,{props:[tm(t,/:(plac\w+)/,":"+tH+"input-$1")]}),tL(e,{props:[tm(t,/:(plac\w+)/,":"+tR+"$1")]}),tL(e,{props:[tm(t,/:(plac\w+)/,tI+"input-$1")]})],i)}return""},r.map(l).join("")}}}],tX=function(e){var t,n,i,r,l,o=e.key;if("css"===o){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var a=e.stylisPlugins||tQ,u={},c=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)u[t[n]]=!0;c.push(e)});var d=(n=(t=[tZ,tK].concat(a,[tP,(i=function(e){l.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,i,r,l){for(var o="",s=0;s<n;s++)o+=t[s](e,i,r,l)||"";return o}),f=function(e){var t,n;return tG((n=function e(t,n,i,r,l,o,s,a,u){for(var c,d=0,f=0,h=s,p=0,g=0,m=0,y=1,b=1,v=1,x=0,w="",k=l,C=o,A=r,S=w;b;)switch(m=x,x=tO()){case 40:if(108!=m&&58==tb(S,h-1)){-1!=ty(S+=tm(tM(x),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=tM(x);break;case 9:case 10:case 13:case 32:S+=function(e){for(;tj=tE();)if(tj<33)tO();else break;return tD(e)>2||tD(tj)>3?"":" "}(m);break;case 92:S+=function(e,t){for(var n;--t&&tO()&&!(tj<48)&&!(tj>102)&&(!(tj>57)||!(tj<65))&&(!(tj>70)||!(tj<97)););return n=tS+(t<6&&32==tE()&&32==tO()),tv(tT,e,n)}(tS-1,7);continue;case 47:switch(tE()){case 42:case 47:tw((c=function(e,t){for(;tO();)if(e+tj===57)break;else if(e+tj===84&&47===tE())break;return"/*"+tv(tT,t,tS-1)+"*"+tp(47===e?e:tO())}(tO(),tS),tN(c,n,i,tW,tp(tj),tv(c,2,-2),0)),u);break;default:S+="/"}break;case 123*y:a[d++]=tx(S)*v;case 125*y:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+f:-1==v&&(S=tm(S,/\f/g,"")),g>0&&tx(S)-h&&tw(g>32?tU(S+";",r,i,h-1):tU(tm(S," ","")+";",r,i,h-2),u);break;case 59:S+=";";default:if(tw(A=t_(S,n,i,d,f,l,a,w,k=[],C=[],h),o),123===x)if(0===f)e(S,n,A,A,k,o,h,a,C);else switch(99===p&&110===tb(S,3)?100:p){case 100:case 108:case 109:case 115:e(t,A,A,r&&tw(t_(t,A,A,0,0,l,a,w,l,k=[],h),C),l,C,h,a,r?k:C);break;default:e(S,A,A,A,[""],C,0,a,C)}}d=f=g=0,y=v=1,w=S="",h=s;break;case 58:h=1+tx(S),g=m;default:if(y<1){if(123==x)--y;else if(125==x&&0==y++&&125==(tj=tS>0?tb(tT,--tS):0,tC--,10===tj&&(tC=1,tk--),tj))continue}switch(S+=tp(x),x*y){case 38:v=f>0?1:(S+="\f",-1);break;case 44:a[d++]=(tx(S)-1)*v,v=1;break;case 64:45===tE()&&(S+=tM(tO())),p=tE(),f=h=tx(w=S+=function(e){for(;!tD(tE());)tO();return tv(tT,e,tS)}(tS)),x++;break;case 45:45===m&&2==tx(S)&&(y=0)}}return o}("",null,null,null,[""],t=tF(t=e),0,[0],t),tT="",n),d)},h={key:o,sheet:new tf({key:o,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:function(e,t,n,i){l=n,f(e?e+"{"+t.styles+"}":t.styles),i&&(h.inserted[t.name]=!0)}};return h.sheet.hydrate(c),h},t0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},t1=/[A-Z]|^ms/g,t5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t2=function(e){return 45===e.charCodeAt(1)},t3=function(e){return null!=e&&"boolean"!=typeof e},t4=(o=function(e){return t2(e)?e:e.replace(t1,"-$&").toLowerCase()},s=Object.create(null),function(e){return void 0===s[e]&&(s[e]=o(e)),s[e]}),t6=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(t5,function(e,t,n){return d={name:t,styles:n,next:d},t})}return 1===t0[e]||t2(e)||"number"!=typeof t||0===t?t:t+"px"};function t9(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)d={name:i.name,styles:i.styles,next:d},i=i.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=t9(e,t,n[r])+";";else for(var l in n){var o=n[l];if("object"!=typeof o)null!=t&&void 0!==t[o]?i+=l+"{"+t[o]+"}":t3(o)&&(i+=t4(l)+":"+t6(l,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==t||void 0===t[o[0]]))for(var s=0;s<o.length;s++)t3(o[s])&&(i+=t4(l)+":"+t6(l,o[s])+";");else{var a=t9(e,t,o);switch(l){case"animation":case"animationName":i+=t4(l)+":"+a+";";break;default:i+=l+"{"+a+"}"}}}return i}(e,t,n);case"function":if(void 0!==e){var r=d,l=n(e);return d=r,t9(e,t,l)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var t7=/label:\s*([^\s;{]+)\s*(;|$)/g;function t8(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,r=!0,l="";d=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,l+=t9(n,t,o)):l+=o[0];for(var s=1;s<e.length;s++)l+=t9(n,t,e[s]),r&&(l+=o[s]);t7.lastIndex=0;for(var a="";null!==(i=t7.exec(l));)a+="-"+i[1];return{name:function(e){for(var t,n=0,i=0,r=e.length;r>=4;++i,r-=4)t=(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n^=255&e.charCodeAt(i),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(l)+a,styles:l,next:d}}function ne(e,t,n){var i="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(i+=n+" ")}),i}var nt=function(e,t,n){var i=e.key+"-"+t.name;!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},nn=function(e,t,n){nt(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do e.insert(t===r?"."+i:"",r,e.sheet,!0),r=r.next;while(void 0!==r)}};function ni(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function nr(e,t,n){var i=[],r=ne(e,i,n);return i.length<2?n:r+t(i)}var nl=function(e){var t=tX(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=t8(n,t.registered,void 0);return nn(t,r,!1),t.key+"-"+r.name};return{css:n,cx:function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return nr(t.registered,n,no(i))},injectGlobal:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=t8(n,t.registered);ni(t,r)},keyframes:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=t8(n,t.registered),l="animation-"+r.name;return ni(t,{name:r.name,styles:"@keyframes "+l+"{"+r.styles+"}"}),l},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:ne.bind(null,t.registered),merge:nr.bind(null,t.registered,n)}},no=function e(t){for(var n="",i=0;i<t.length;i++){var r=t[i];if(null!=r){var l=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))l=e(r);else for(var o in l="",r)r[o]&&o&&(l&&(l+=" "),l+=o);break;default:l=r}l&&(n&&(n+=" "),n+=l)}}return n};let ns=(e,t=!1,n="")=>{let{variables:i={},...r}=e,l={light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee",...i.light||{}},dark:{diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#2ea04326",addedColor:"white",removedBackground:"#f851491a",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#2ea04366",wordRemovedBackground:"#f8514966",addedGutterBackground:"#3fb9504d",removedGutterBackground:"#f851494d",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#262831",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#f0f6fc",addedGutterColor:"#f0f6fc",removedGutterColor:"#f0f6fc",codeFoldContentColor:"#9198a1",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#f0f6fc",diffViewerTitleBorderColor:"#353846",...i.dark||{}}},o=t?l.dark:l.light,{css:s,cx:a}=nl({key:"react-diff",nonce:n}),u=s({width:"auto",overflow:"hidden",label:"content"}),c=s({label:"split-view"}),d=s({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),f=s({background:o.diffViewerTitleBackground,color:o.diffViewerTitleColor,padding:"0.5em 1em",display:"flex",alignItems:"center",gap:"0.5em",fontFamily:"monospace",fontSize:12,fill:o.diffViewerTitleColor}),h=s({display:"flex",label:"column-headers"}),p=s({width:"100%",minWidth:"1000px",overflowX:"auto",tableLayout:"fixed",fontSize:12,background:o.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"1.6em",width:"fit-content"},label:"diff-container",borderCollapse:"collapse","@media (max-width: 768px)":{minWidth:"unset"}}),g=s({overflow:"hidden",width:"100%"}),m=s({color:o.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),y=s({userSelect:"none",label:"unselectable"}),b=s({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${m}`]:{whiteSpace:"pre",lineBreak:"auto"}}),v=s({background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",margin:0,label:"all-expand-button",":hover":{fill:o.addedGutterColor},":focus":{outline:`1px ${o.addedGutterColor} solid`}}),x=s({background:o.diffViewerTitleBackground,padding:"0.5em",lineHeight:"1.4em",height:"2.4em",overflow:"hidden",width:"50%",borderBottom:`1px solid ${o.diffViewerTitleBorderColor}`,boxSizing:"border-box",fontSize:12,label:"title-block",":only-child":{width:"100%"},":last-child:not(:only-child)":{borderLeft:`1px solid ${o.diffViewerTitleBorderColor}`},[`.${m}`]:{color:o.diffViewerTitleColor}}),w=s({color:o.gutterColor,label:"line-number"}),k=s({background:o.removedBackground,color:o.removedColor,pre:{color:o.removedColor},[`.${w}`]:{color:o.removedGutterColor},label:"diff-removed"}),C=s({background:o.addedBackground,color:o.addedColor,pre:{color:o.addedColor},[`.${w}`]:{color:o.addedGutterColor},label:"diff-added"}),A=s({background:o.changedBackground,[`.${w}`]:{color:o.gutterColor},label:"diff-changed"}),S=s({display:"inline",textDecoration:"none",label:"word-diff"}),j=s({background:o.wordAddedBackground,label:"word-added"}),T=s({background:o.wordRemovedBackground,label:"word-removed"}),N=s({backgroundColor:o.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",textAlign:"center",fill:o.codeFoldContentColor}),L=s({padding:""}),O=s({background:o.codeFoldBackground,cursor:"pointer",display:"inline",margin:0,border:"none",fill:o.codeFoldContentColor,label:"code-fold-expand-button"}),E=s({color:o.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),D=s({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:o.diffViewerTitleBorderColor}),F=s({backgroundColor:o.wordAddedBackground}),M=s({backgroundColor:o.wordRemovedBackground}),I=s({backgroundColor:o.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","&:hover":{color:o.diffViewerColor,fill:o.diffViewerColor,"& *":{color:o.diffViewerColor,fill:o.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),R=s({backgroundColor:o.emptyLineBackground,label:"empty-line"}),H=s({width:28,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${C}`]:{pre:{color:o.addedColor}},[`&.${k}`]:{pre:{color:o.removedColor}}}),W=s({background:o.highlightBackground,label:"highlighted-line",[`.${j}, .${T}`]:{backgroundColor:"initial"}}),B=s({label:"highlighted-gutter"}),$=s({userSelect:"none",minWidth:50,width:"50px",padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"center",color:o.gutterColor,background:o.gutterBackground,"&:hover":{cursor:"pointer",background:o.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:"center",width:"100%"},[`&.${C}`]:{background:o.addedGutterBackground},[`&.${k}`]:{background:o.removedGutterBackground},[`&.${B}`]:{background:o.highlightGutterBackground,"&:hover":{background:o.highlightGutterBackground}}}),V=s({"&:hover":{background:o.gutterBackground,cursor:"initial"},label:"empty-gutter"}),G={diffContainer:p,diffRemoved:k,diffAdded:C,diffChanged:A,splitView:c,marker:H,highlightedGutter:B,highlightedLine:W,gutter:$,line:s({verticalAlign:"baseline",label:"line",textDecoration:"none"}),lineContent:g,wordDiff:S,wordAdded:j,summary:f,block:D,blockAddition:F,blockDeletion:M,wordRemoved:T,noSelect:y,noWrap:b,codeFoldGutter:N,codeFoldExpandButton:O,codeFoldContentContainer:L,codeFold:I,emptyGutter:V,emptyLine:R,lineNumber:w,contentText:m,content:u,column:s({}),codeFoldContent:E,stickyHeader:d,columnHeaders:h,titleBlock:x,allExpandButton:v},P=Object.keys(r).reduce((e,t)=>({...e,[t]:s(r[t])}),{});return Object.keys(G).reduce((e,t)=>({...e,[t]:P[t]?a(G[t],P[t]):G[t]}),{})};function na(){return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[(0,p.jsx)("title",{children:"fold"}),(0,p.jsx)("path",{d:"M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}(a=f||(f={})).LEFT="L",a.RIGHT="R";class nu extends m.Component{styles;wordDiffCache=new Map;contentColumnRef=m.createRef();charMeasureRef=m.createRef();stickyHeaderRef=m.createRef();resizeObserver=null;scrollDebounceTimer=null;lastRenderedRange={start:0,end:1/0};static defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:c.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""};constructor(e){super(e),this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:m.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null,isScrolling:!1}}getWordDiffValues=(e,t,n)=>{if(!e||!t)return{leftValue:e?.value,rightValue:t?.value};if(void 0===e.rawValue||void 0===t.rawValue)return{leftValue:e.value,rightValue:t.value};let i=`${n}-${e.rawValue}-${t.rawValue}`,r=this.wordDiffCache.get(i);if(!r){let n=this.props.compareMethod===c.JSON||this.props.compareMethod===c.YAML?c.CHARS:this.props.compareMethod,l=tl(e.rawValue,t.rawValue,n);r={left:l.left??[],right:l.right??[]},this.wordDiffCache.set(i,r)}return{leftValue:r.left,rightValue:r.right}};resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0);onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t},()=>this.recalculateOffsets())};getStickyHeaderHeight(){return this.stickyHeaderRef.current?.offsetHeight||0}measureCharWidth(){let e=this.charMeasureRef.current;return e&&e.getBoundingClientRect().width||7.2}measureContentColumnWidth(){let e=this.contentColumnRef.current;if(e&&e.clientWidth>0){let t=window.getComputedStyle(e),n=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i=e.clientWidth-n;if(i>0)return i}let t=this.state.scrollableContainerRef.current;if(!t||t.clientWidth<=0)return null;let n=t.clientWidth,i=50*!this.props.hideLineNumbers;return Math.max(100,(n-(this.props.splitView,2*i+28*(this.props.splitView?2:1)))/(this.props.splitView?2:1))}getTextLength(e){return e?"string"==typeof e?e.length:e.reduce((e,t)=>e+("string"==typeof t.value?t.value.length:0),0):0}buildCumulativeOffsets(e,t,n,i,r,l,o,s){let a=[0],u=new Set;for(let c=0;c<e.length;c++){let d=e[c];if(r){let e=t[c];if(void 0!==e&&!i.includes(e)){let t=n[e].endLine===c;!u.has(e)&&t&&(u.add(e),a.push(a[a.length-1]+nu.ESTIMATED_ROW_HEIGHT));continue}}let f=d.left?.value?this.getTextLength(d.left.value):0,h=d.right?.value?this.getTextLength(d.right.value):0,p=s?Math.max(f,h):f||h,g=Math.floor(o/l),m=g>0?Math.max(1,Math.ceil(p/g)):1;a.push(a[a.length-1]+m*nu.ESTIMATED_ROW_HEIGHT)}return a}findLineAtOffset(e,t){let n=0,i=t.length-2;for(;n<i;){let r=Math.floor((n+i+1)/2);t[r]<=e?n=r:i=r-1}return n}recalculateOffsets=()=>{if(!this.props.infiniteLoading)return;let e=this.measureContentColumnWidth(),t=this.measureCharWidth();if(!e)return;let n=this.getMemoisedKey(),{lineInformation:i,lineBlocks:r,blocks:l}=this.state.computedDiffResult[n]??{};if(!i)return;let o=this.buildCumulativeOffsets(i,r,l,this.state.expandedBlocks,this.props.showDiffOnly??!0,t,e,this.props.splitView??!0);this.setState({cumulativeOffsets:o,contentColumnWidth:e,charWidth:t},()=>{this.onScroll()})};computeStyles=(function(e,t){void 0===t&&(t=b);var n=null;function i(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var l=e.apply(this,i);return n={lastResult:l,lastArgs:i,lastThis:this},l}return i.clear=function(){n=null},i})(ns);onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{};shouldHighlightWordDiff=()=>{let{compareMethod:e}=this.props;return e===c.CHARS||e===c.WORDS||e===c.WORDS_WITH_SPACE||e===c.JSON||e===c.YAML};renderWordDiff=(e,t)=>{let n=this.shouldHighlightWordDiff(),i=e.map(e=>"string"==typeof e.value?e.value:"").join("");if(i.length>500)return[(0,p.jsx)("span",{children:i},"long-line")];if(t){let r=t(i),l=r?.props?.dangerouslySetInnerHTML?.__html;if("string"==typeof l){let t=function(e,t,n){let i=[],r=0;for(let e of t){let t="string"==typeof e.value?e.value:"";t.length>0&&(i.push({start:r,end:r+t.length,type:e.type??u.DEFAULT}),r+=t.length)}let l=[],o=0;for(;o<e.length;)if("<"===e[o]){let t=e.indexOf(">",o);if(-1===t){l.push({type:"text",content:e.slice(o)});break}l.push({type:"tag",content:e.slice(o,t+1)}),o=t+1}else{let t=e.indexOf("<",o);-1===t&&(t=e.length),l.push({type:"text",content:e.slice(o,t)}),o=t}let s=0,a="";for(let e of l)if("tag"===e.type)a+=e.content;else{let t=e.content,r=t.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g,"\xa0"),l=0,o=0;for(;l<r.length;){var c;let e=s+l,d=i.find(t=>e>=t.start&&e<t.end);if(!d){a+=t[o],o++,l++;continue}let f=Math.min(d.end-e,r.length-l),h=o,p=0;for(;p<f&&h<t.length;){if("&"===t[h]){let e=t.indexOf(";",h);-1!==e&&e-h<10?h=e+1:h++}else h++;p++}let g=t.slice(o,h),m=(c=d.type)===u.ADDED?{open:`<ins class="${n.wordDiff} ${n.wordAdded}">`,close:"</ins>"}:c===u.REMOVED?{open:`<del class="${n.wordDiff} ${n.wordRemoved}">`,close:"</del>"}:{open:`<span class="${n.wordDiff}">`,close:"</span>"};m?a+=m.open+g+m.close:a+=g,o=h,l+=f}s+=r.length}return a}(l,e,{wordDiff:this.styles.wordDiff,wordAdded:n?this.styles.wordAdded:"",wordRemoved:n?this.styles.wordRemoved:""});return[m.cloneElement(r,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:t}})]}}return e.map((e,t)=>{let i;return i="string"==typeof e.value?e.value:void 0,e.type===u.ADDED?(0,p.jsx)("ins",{className:g(this.styles.wordDiff,{[this.styles.wordAdded]:n}),children:i},t):e.type===u.REMOVED?(0,p.jsx)("del",{className:g(this.styles.wordDiff,{[this.styles.wordRemoved]:n}),children:i},t):(0,p.jsx)("span",{className:g(this.styles.wordDiff),children:i},t)})};renderLine=(e,t,n,i,r,l)=>{let o,s=`${n}-${e}`,a=`${l}-${r}`,c=this.props.highlightLines??[],d=c.includes(s)||c.includes(a),h=t===u.ADDED,m=t===u.REMOVED,y=t===u.CHANGED,b=Array.isArray(i);o=b?this.renderWordDiff(i,this.props.renderContent):this.props.renderContent&&"string"==typeof i?this.props.renderContent(i):i;let v="div";return h&&!b?v="ins":m&&!b&&(v="del"),(0,p.jsxs)(p.Fragment,{children:[!this.props.hideLineNumbers&&(0,p.jsx)("td",{onClick:e&&this.onLineNumberClickProxy(s),className:g(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:h,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:y,[this.styles.highlightedGutter]:d}),children:(0,p.jsx)("pre",{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,p.jsx)("td",{onClick:r&&this.onLineNumberClickProxy(a),className:g(this.styles.gutter,{[this.styles.emptyGutter]:!r,[this.styles.diffAdded]:h,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:y,[this.styles.highlightedGutter]:d}),children:(0,p.jsx)("pre",{className:this.styles.lineNumber,children:r})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e??0,type:t??u.DEFAULT,prefix:n,value:i??"",additionalLineNumber:r??void 0,additionalPrefix:l,styles:this.styles}):null,(0,p.jsx)("td",{className:g(this.styles.marker,{[this.styles.emptyLine]:!o,[this.styles.diffAdded]:h,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:y,[this.styles.highlightedLine]:d}),children:(0,p.jsxs)("pre",{children:[h&&"+",m&&"-"]})}),(0,p.jsx)("td",{ref:n!==f.LEFT||this.state.cumulativeOffsets?void 0:this.contentColumnRef,className:g(this.styles.content,{[this.styles.emptyLine]:!o,[this.styles.diffAdded]:h,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:y,[this.styles.highlightedLine]:d,left:n===f.LEFT,right:n===f.RIGHT}),onMouseDown:()=>{let e=document.getElementsByClassName("right");for(let t=0;t<e.length;t++)e[t]?.classList.remove(this.styles.noSelect);let t=document.getElementsByClassName("left");for(let e=0;e<t.length;e++)t[e]?.classList.remove(this.styles.noSelect);let i=document.getElementsByClassName(n===f.LEFT?"right":"left");for(let e=0;e<i.length;e++)i[e]?.classList.add(this.styles.noSelect)},title:h&&!b?"Added line":m&&!b?"Removed line":void 0,children:(0,p.jsx)(v,{className:this.styles.contentText,children:o})})]})};renderSplitView=({left:e,right:t},n)=>{let{leftValue:i,rightValue:r}=this.getWordDiffValues(e,t,n);return(0,p.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,f.LEFT,i),this.renderLine(t.lineNumber,t.type,f.RIGHT,r)]},n)};renderInlineView=({left:e,right:t},n)=>{let i,{leftValue:r,rightValue:l}=this.getWordDiffValues(e,t,n);return e.type===u.REMOVED&&t.type===u.ADDED?(0,p.jsxs)(m.Fragment,{children:[(0,p.jsx)("tr",{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,f.LEFT,r,null)}),(0,p.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,t.type,f.RIGHT,l,t.lineNumber,f.RIGHT)})]},n):(e.type===u.REMOVED&&(i=this.renderLine(e.lineNumber,e.type,f.LEFT,r,null)),e.type===u.DEFAULT&&(i=this.renderLine(e.lineNumber,e.type,f.LEFT,r,t.lineNumber,f.RIGHT)),t.type===u.ADDED&&(i=this.renderLine(null,t.type,f.RIGHT,l,t.lineNumber)),(0,p.jsx)("tr",{className:this.styles.line,children:i},n))};onBlockClickProxy=e=>()=>this.onBlockExpand(e);renderSkippedLineIndicator=(e,t,n,i)=>{let{hideLineNumbers:r,splitView:l}=this.props,o=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,i):(0,p.jsxs)("span",{className:this.styles.codeFoldContent,children:["@@ -",n-e,",",e," +",i-e,",",e," @@"]}),s=(0,p.jsx)("td",{className:this.styles.codeFoldContentContainer,children:(0,p.jsx)("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(t),tabIndex:0,children:o})}),a=!l&&!r,u=(0,p.jsx)("td",{className:this.styles.codeFoldGutter,children:(0,p.jsx)(td,{})});return(0,p.jsxs)("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(t),role:"button",tabIndex:0,children:[!r&&u,this.props.renderGutter?(0,p.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,p.jsx)("td",{className:g({[this.styles.codeFoldGutter]:a})}),a?(0,p.jsxs)(m.Fragment,{children:[(0,p.jsx)("td",{}),s]}):(0,p.jsxs)(m.Fragment,{children:[s,this.props.renderGutter?(0,p.jsx)("td",{}):null,(0,p.jsx)("td",{}),(0,p.jsx)("td",{}),r?null:(0,p.jsx)("td",{})]})]},`${n}-${i}`)};getMemoisedKey=()=>{let{oldValue:e,newValue:t,disableWordDiff:n,compareMethod:i,linesOffset:r,alwaysShowLines:l,extraLinesSurroundingDiff:o}=this.props;return JSON.stringify({oldValue:e,newValue:t,disableWordDiff:n,compareMethod:i,linesOffset:r,alwaysShowLines:l,extraLinesSurroundingDiff:o})};memoisedCompute=async()=>{let e,t,n,i,{oldValue:r,newValue:l,disableWordDiff:o,compareMethod:s,linesOffset:a}=this.props,u=this.getMemoisedKey();if(this.state.computedDiffResult[u])return void this.setState(e=>({...e,isLoading:!1}));let c=this.props.infiniteLoading?.containerHeight,d=c?"number"==typeof c?c:parseInt(c,10)||0:0,f=!o&&!!this.props.infiniteLoading&&d>0&&d<2e3,{lineInformation:h,diffLines:p}=await tc(r,l,o,s,a,this.props.alwaysShowLines,f,this.props.disableWorker),g=this.props.extraLinesSurroundingDiff??3,m=g<0?0:Math.round(g),{lineBlocks:y,blocks:b}=(t=0,n={},i=[],h.forEach((r,l)=>{let o=p.some(e=>e>=l-m&&e<=l+m);o||void 0!==e?!o&&e?(e.endLine=l,e.lines++,n[l]=e.index):e=void 0:(e={index:t,startLine:l,endLine:l,lines:1},i.push(e),n[l]=e.index,t++)}),{lineBlocks:n,blocks:i});this.state.computedDiffResult[u]={lineInformation:h,lineBlocks:y,blocks:b},this.setState(e=>({...e,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})};static ESTIMATED_ROW_HEIGHT=19;onScroll=()=>{let e=this.state.scrollableContainerRef.current;if(!e||!this.props.infiniteLoading)return;let t=this.getStickyHeaderHeight(),n=Math.max(0,e.scrollTop-t),{cumulativeOffsets:i}=this.state,r=i?this.findLineAtOffset(n,i):Math.floor(n/nu.ESTIMATED_ROW_HEIGHT),l=r+Math.ceil(e.clientHeight/nu.ESTIMATED_ROW_HEIGHT),o=r<this.lastRenderedRange.start||l>this.lastRenderedRange.end;this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer);let s={};r!==this.state.visibleStartRow&&(s.visibleStartRow=r),o&&!this.state.isScrolling&&(s.isScrolling=!0),Object.keys(s).length>0&&this.setState(s),(this.state.isScrolling||o)&&(this.scrollDebounceTimer=setTimeout(()=>{this.setState({isScrolling:!1})},150))};renderDiff=()=>{let{splitView:e,infiniteLoading:t,showDiffOnly:n}=this.props,{computedDiffResult:i,expandedBlocks:r,visibleStartRow:l,scrollableContainerRef:o,cumulativeOffsets:s}=this.state,{lineInformation:a=[],lineBlocks:u=[],blocks:c=[]}=i[this.getMemoisedKey()]??{},d=0,f=1/0,h=t?.overscan??20;if(t&&o.current){let e=o.current,t=this.getStickyHeaderHeight(),n=Math.max(0,e.scrollTop-t);if(s){let t=s[s.length-1]||0,i=s.length-2;d=Math.max(0,this.findLineAtOffset(n,s)-h),f=Math.max(f=this.findLineAtOffset(n+e.clientHeight,s)+h,d+Math.ceil(e.clientHeight/nu.ESTIMATED_ROW_HEIGHT)+h),n+e.clientHeight>=t-h*nu.ESTIMATED_ROW_HEIGHT&&(f=i+h)}else{let t=Math.ceil(e.clientHeight/nu.ESTIMATED_ROW_HEIGHT);d=Math.max(0,l-h),f=l+t+h}}let g=new Map,y=new Set,b=0;for(let e=0;e<a.length;e++){let t=u[e];if(n&&void 0!==t)if(r.includes(t))g.set(e,b),b++;else{let n=c[t].endLine===e;!y.has(t)&&n&&(y.add(t),g.set(e,b),b++)}else g.set(e,b),b++}let v=b,x=[],w=0,k=!1,C=-1;y.clear();for(let t=0;t<a.length;t++){let i=a[t],l=g.get(t);if(void 0!==l&&!(l<d)){if(l>f)break;if(k||(w=s?s[l]||0:l*nu.ESTIMATED_ROW_HEIGHT,k=!0),C=l,n){let e=u[t];if(void 0!==e){let n=c[e].endLine===t;if(!r.includes(e)&&n){x.push((0,p.jsx)(m.Fragment,{children:this.renderSkippedLineIndicator(c[e].lines,e,i.left.lineNumber??0,i.right.lineNumber??0)},t));continue}if(!r.includes(e))continue}}x.push(e?this.renderSplitView(i,t):this.renderInlineView(i,t))}}let A=s?s[s.length-1]||0:v*nu.ESTIMATED_ROW_HEIGHT,S=s&&C>=0?A-(s[C+1]||A):0;return this.lastRenderedRange={start:d,end:f},{diffNodes:x,blocks:c,lineInformation:a,totalRenderedRows:v,topPadding:w,bottomPadding:S,totalContentHeight:A,renderedCount:x.length,debug:{visibleRowStart:d,visibleRowEnd:f,totalRows:v,offsetsLength:s?.length??0,renderedCount:x.length,scrollTop:o.current?.scrollTop??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:o.current?Math.max(0,o.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:o.current?.clientHeight??0}}};componentDidUpdate(e){if(e.oldValue!==this.props.oldValue||e.newValue!==this.props.newValue||e.compareMethod!==this.props.compareMethod||e.disableWordDiff!==this.props.disableWordDiff||e.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();let e=this.state.scrollableContainerRef.current;e&&(e.scrollTop=0),this.setState(e=>({...e,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}}componentDidMount(){if(this.setState(e=>({...e,isLoading:!0})),this.memoisedCompute(),"u">typeof ResizeObserver&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});let e=this.state.scrollableContainerRef.current;e&&this.resizeObserver.observe(e)}}componentWillUnmount(){this.resizeObserver?.disconnect(),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer)}render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:i,rightTitle:r,splitView:l,compareMethod:o,hideLineNumbers:s,nonce:a}=this.props;if("string"==typeof o&&o!==c.JSON&&("string"!=typeof e||"string"!=typeof t))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles??{},n??!1,a??"");let d=this.renderDiff(),f=3,h=4;s&&(f-=1,h-=1),this.props.renderGutter&&(f+=1,h+=1);let m=0,y=0;for(let e of d.lineInformation)e.left.type===u.ADDED&&y++,e.right.type===u.ADDED&&y++,e.left.type===u.REMOVED&&m++,e.right.type===u.REMOVED&&m++;let b=m+y,v=Math.round(y/b*100),x=[];for(let e=0;e<5;e++)v>20*e?x.push((0,p.jsx)("span",{className:g(this.styles.block,this.styles.blockAddition)},e)):x.push((0,p.jsx)("span",{className:g(this.styles.block,this.styles.blockDeletion)},e));let w=this.state.expandedBlocks.length===d.blocks.length,k=this.props.loadingElement,C=this.props.infiniteLoading?{overflowY:"scroll",overflowX:"hidden",height:this.props.infiniteLoading.containerHeight}:{},A=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,S=(0,p.jsxs)("table",{className:g(this.styles.diffContainer,{[this.styles.splitView]:l,[this.styles.noWrap]:A}),onMouseUp:()=>{},children:[(0,p.jsxs)("colgroup",{children:[!this.props.hideLineNumbers&&(0,p.jsx)("col",{width:"50px"}),!l&&!this.props.hideLineNumbers&&(0,p.jsx)("col",{width:"50px"}),this.props.renderGutter&&(0,p.jsx)("col",{width:"50px"}),(0,p.jsx)("col",{width:"28px"}),(0,p.jsx)("col",{width:"auto"}),l&&(0,p.jsxs)(p.Fragment,{children:[!this.props.hideLineNumbers&&(0,p.jsx)("col",{width:"50px"}),this.props.renderGutter&&(0,p.jsx)("col",{width:"50px"}),(0,p.jsx)("col",{width:"28px"}),(0,p.jsx)("col",{width:"auto"})]})]}),(0,p.jsx)("tbody",{children:d.diffNodes})]}),j=(this.state.isLoading||this.state.isScrolling)&&!!k;return(0,p.jsxs)("div",{style:{position:"relative"},children:[j&&(0,p.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:3},children:(0,p.jsx)(k,{})}),(0,p.jsxs)("div",{style:{...C,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||i||r)&&(0,p.jsxs)("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&(0,p.jsxs)("div",{className:this.styles.summary,role:"banner",children:[(0,p.jsx)("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:w?[]:d.blocks.map(e=>e.index)},()=>this.recalculateOffsets())},children:w?(0,p.jsx)(na,{}):(0,p.jsx)(td,{})})," ",b,(0,p.jsx)("div",{style:{display:"flex",gap:"1px"},children:x}),this.props.summary?(0,p.jsx)("span",{children:this.props.summary}):null]}),(i||r)&&(0,p.jsxs)("div",{className:this.styles.columnHeaders,children:[(0,p.jsx)("div",{className:this.styles.titleBlock,children:i?(0,p.jsx)("pre",{className:this.styles.contentText,children:i}):null}),l&&(0,p.jsx)("div",{className:this.styles.titleBlock,children:r?(0,p.jsx)("pre",{className:this.styles.contentText,children:r}):null})]})]}),this.props.infiniteLoading?(0,p.jsx)("div",{style:{height:d.totalContentHeight,position:"relative"},children:(0,p.jsx)("div",{style:{position:"absolute",top:d.topPadding,left:0,right:0,visibility:this.state.isScrolling?"hidden":"visible"},children:S})}):S,(0,p.jsx)("span",{ref:this.charMeasureRef,style:{position:"absolute",top:0,left:"-9999px",visibility:"hidden",whiteSpace:"pre",fontFamily:"monospace",fontSize:12},"aria-hidden":"true",children:"M"}),this.props.infiniteLoading&&this.props.showDebugInfo&&(0,p.jsxs)("div",{style:{position:"fixed",top:10,right:10,background:"rgba(0,0,0,0.85)",color:"#0f0",padding:"10px",fontFamily:"monospace",fontSize:"11px",zIndex:9999,borderRadius:"4px",maxWidth:"300px",lineHeight:1.4},children:[(0,p.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),(0,p.jsxs)("div",{children:["scrollTop: ",d.debug.scrollTop]}),(0,p.jsxs)("div",{children:["headerHeight: ",d.debug.headerHeight]}),(0,p.jsxs)("div",{children:["contentScrollTop: ",d.debug.contentScrollTop]}),(0,p.jsxs)("div",{children:["clientHeight: ",d.debug.clientHeight]}),(0,p.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,p.jsxs)("div",{children:["visibleRowStart: ",d.debug.visibleRowStart]}),(0,p.jsxs)("div",{children:["visibleRowEnd: ",d.debug.visibleRowEnd]})]}),(0,p.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,p.jsxs)("div",{children:["totalRows: ",d.debug.totalRows]}),(0,p.jsxs)("div",{children:["offsetsLength: ",d.debug.offsetsLength]}),(0,p.jsxs)("div",{children:["renderedCount: ",d.debug.renderedCount]})]}),(0,p.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[(0,p.jsxs)("div",{children:["topPadding: ",d.topPadding.toFixed(0)]}),(0,p.jsxs)("div",{children:["bottomPadding: ",d.bottomPadding.toFixed(0)]}),(0,p.jsxs)("div",{children:["totalContentHeight: ",d.totalContentHeight.toFixed(0)]})]}),(0,p.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[(0,p.jsxs)("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),(0,p.jsxs)("div",{children:["columnWidth: ",this.state.contentColumnWidth?.toFixed(0)??"N/A","px"]}),(0,p.jsxs)("div",{children:["charWidth: ",this.state.charWidth?.toFixed(2)??"N/A","px"]}),(0,p.jsxs)("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&(0,p.jsxs)("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[(0,p.jsxs)("div",{children:["offsets[",d.debug.visibleRowEnd,"]: ",this.state.cumulativeOffsets[d.debug.visibleRowEnd]?.toFixed(0)??"N/A"]}),(0,p.jsxs)("div",{children:["offsets[",d.debug.totalRows-1,"]: ",this.state.cumulativeOffsets[d.debug.totalRows-1]?.toFixed(0)??"N/A"]}),(0,p.jsxs)("div",{children:["offsets[",d.debug.totalRows,"]: ",this.state.cumulativeOffsets[d.debug.totalRows]?.toFixed(0)??"N/A"]}),(0,p.jsxs)("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(d.debug.contentScrollTop+d.debug.clientHeight).toFixed(0)]}),(0,p.jsxs)("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",this.state.scrollableContainerRef.current?.scrollHeight??"N/A"]}),(0,p.jsxs)("div",{children:["maxScrollTop: ",(this.state.scrollableContainerRef.current?.scrollHeight??0)-d.debug.clientHeight]})]})]})]})]})}}let nc=nu},69001:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=l(t,n));return t}(n)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=(function(){return r}).apply(t,[]))||(e.exports=n)}()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1282],{41282:(t,r,e)=>{"use strict";e.d(r,{Z:()=>E});var n=e(37064),o=e(14528),i=e(71562).Buffer;function f(t){let r=[];for(let e=0;e<t.length-1;e++)r.push({a:t[e],b:t[e+1]});return r}function u(t,r,e,n){let o=r.x-t.x,i=r.y-t.y,f=n.x-e.x,u=n.y-e.y,s=o*u-i*f;if(0===s)return null;let a=e.x-t.x,h=e.y-t.y,l=(a*u-h*f)/s,p=(a*i-h*o)/s;return l<=1e-6||l>=.999999||p<=1e-6||p>=.999999?null:{point:{x:t.x+l*o,y:t.y+l*i},tA:l,tB:p}}function s(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}function a(t,r,e){if("rounded"!==t.curve)return!1;let n=t.points,o=n[r],i=n[r+1];if(!o||!i)return!1;let f=Math.hypot(i.x-o.x,i.y-o.y),u=e*f,s=r>0?d(n[r-1],o,i,5):null;if(s&&u<s.cutLen)return!0;let a=r+2<n.length?d(o,i,n[r+2],5):null;return null!==a&&f-u<a.cutLen}function h(t){let r=[];for(let e=0;e<t.length;e++){let n=t[e],o=f(n.points);for(let i=e+1;i<t.length;i++){let e=t[i],h=f(e.points);for(let[t,i]of o.entries())for(let[o,f]of h.entries()){let h=u(i.a,i.b,f.a,f.b);if(!h||a(n,t,h.tA)||a(e,o,h.tB))continue;let l=s(i);l!==s(f)&&l?r.push({jumpEdgeId:n.id,otherEdgeId:e.id,segIndex:t,t:h.tA,point:h.point}):r.push({jumpEdgeId:e.id,otherEdgeId:n.id,segIndex:o,t:h.tB,point:h.point})}}}return r}function l(t){let r=Math.round(1e3*t)/1e3;return Number.isInteger(r),`${r}`}function p(t){return`${l(t.x)},${l(t.y)}`}function c(t){let r=t.b.x-t.a.x,e=t.b.y-t.a.y;return Math.abs(r)>=Math.abs(e)?+(r>=0):+(e>=0)}function y(t,r){if(t.length<2)return t.map(t=>({...t}));let e=t.map(t=>({...t})),o=r.arrowTypeStart&&n.hq[r.arrowTypeStart];if(o){let r=t[0],n=t[1],i=Math.atan2(n.y-r.y,n.x-r.x);e[0].x=r.x+o*Math.cos(i),e[0].y=r.y+o*Math.sin(i)}let i=r.arrowTypeEnd&&n.hq[r.arrowTypeEnd];if(i){let r=t.length,n=t[r-2],o=t[r-1],f=Math.atan2(o.y-n.y,o.x-n.x);e[r-1].x=o.x-i*Math.cos(f),e[r-1].y=o.y-i*Math.sin(f)}return e}function g(t,r,e,n,o){let i=t.point.x,f=t.point.y,u={x:i-r*t.r,y:f-e*t.r},s={x:i+r*t.r,y:f+e*t.r},a=[`L${p(u)}`];return"arc"===o?a.push(`A${l(t.r)},${l(t.r)} 0 0 ${n} ${p(s)}`):a.push(`M${p(s)}`),a}function d(t,r,e,n){let o=r.x-t.x,i=r.y-t.y,f=e.x-r.x,u=e.y-r.y,s=Math.hypot(o,i),a=Math.hypot(f,u);if(s<1e-5||a<1e-5)return null;let h=o/s,l=i/s,p=f/a,c=u/a,y=Math.acos(Math.max(-1,Math.min(1,h*p+l*c)));if(y<1e-5||1e-5>Math.abs(Math.PI-y))return null;let g=Math.min(n/Math.sin(y/2),s/2,a/2);return{startX:r.x-h*g,startY:r.y-l*g,endX:r.x+p*g,endY:r.y+c*g,ctrlX:r.x,ctrlY:r.y,cutLen:g}}function b(t,r,e){let n=t.points;if(n.length<2)return"";let o=y(n,t),i="rounded"===t.curve,u=f(o),s=new Map;for(let t of r){let r=u[t.segIndex];if(!r)continue;let n=Math.hypot(r.b.x-r.a.x,r.b.y-r.a.y),o=s.get(t.segIndex)??[];o.push({t:t.t,point:t.point,d:t.t*n,r:e.jumpRadius}),s.set(t.segIndex,o)}let a=[`M${p(o[0])}`];for(let t=0;t<u.length;t++){let r=u[t],n=Math.hypot(r.b.x-r.a.x,r.b.y-r.a.y),f=0===n?0:(r.b.x-r.a.x)/n,h=0===n?0:(r.b.y-r.a.y)/n,y=c(r),b=0;if(i&&t>0){let r=d(o[t-1],o[t],o[t+1]??o[t],5);r&&(b=r.cutLen)}let v=n,m=null;i&&t<u.length-1&&(m=d(o[t],o[t+1],o[t+2]??o[t+1],5))&&(v=n-m.cutLen);let w=.6*e.jumpRadius,E=[...s.get(t)??[]].sort((t,r)=>t.t-r.t).filter(t=>{let r=Math.min(t.d-b,v-t.d)-2;return t.r=Math.min(t.r,r),t.r>=w});for(let t=0;t<E.length-1;t++){let r=E[t+1].d-E[t].d;if(E[t].r+E[t+1].r>r){let e=r/2;E[t].r=Math.min(E[t].r,e),E[t+1].r=Math.min(E[t+1].r,e)}}for(let t of E)t.r<w||a.push(...g(t,f,h,y,e.jumpStyle));i&&m?(a.push(`L${l(m.startX)},${l(m.startY)}`),a.push(`Q${l(m.ctrlX)},${l(m.ctrlY)} ${l(m.endX)},${l(m.endY)}`)):a.push(`L${p(r.b)}`)}return a.join(" ")}function v(t){return/^[\d\s+,.LMelm-]*$/.test(t)}function m(t){return!t||"linear"===t||"rounded"===t||"step"===t||"stepBefore"===t||"stepAfter"===t}function w(t){if(!t)return null;try{let r="function"==typeof atob?atob(t):i.from(t,"base64").toString(),e=JSON.parse(r);if(!Array.isArray(e))return null;let n=[];for(let t of e)t&&"number"==typeof t.x&&"number"==typeof t.y&&n.push({x:t.x,y:t.y});return n.length>=2?n:null}catch{return null}}function E(t,r,e){if(!e.enabled)return;let n=t.node();if(!n)return;let o=new Map;for(let t of r)o.set(t.id,t);let i=new Map;for(let t of n.querySelectorAll("path[data-id]")){let r=t.getAttribute("data-id");null===r||i.has(r)||i.set(r,t)}let f=[];for(let t of r){let r=i.get(t.id);if(!r)continue;let e=w(r.getAttribute("data-points"))??t.points;f.push({...t,points:e})}let u=h(f);if(0===u.length)return;let s=new Map;for(let t of u){let r=s.get(t.jumpEdgeId)??[];r.push(t),s.set(t.jumpEdgeId,r)}for(let t of f){let r=s.get(t.id);if(!r||0===r.length)continue;let n=o.get(t.id),f=n?.curve;if(void 0!==f&&!m(f))continue;let u=i.get(t.id);if(!u||void 0===f&&!v(u.getAttribute("d")??""))continue;let a=u.getAttribute("style")??"",h=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(a),l=h?Number.parseFloat(h[1]):null,p=h?Number.parseFloat(h[2]):null,c=b(t,r,e);if(u.setAttribute("d",c),null!==l&&null!==p&&"function"==typeof u.getTotalLength){let t=Math.max(0,u.getTotalLength()-l-p),r=`0 ${l} ${t} ${p}`,e=a.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${r};`).replace(/;\s*;+/g,";");u.setAttribute("style",e)}}}(0,o.K)(f,"buildSegmentList"),(0,o.K)(u,"segmentIntersection"),(0,o.K)(s,"isHorizontalSeg"),(0,o.K)(a,"crossingSitsInRoundedCorner"),(0,o.K)(h,"findEdgeIntersections"),(0,o.K)(l,"fmt"),(0,o.K)(p,"pointToString"),(0,o.K)(c,"getArcSweepFlag"),(0,o.K)(y,"applyMarkerOffsets"),(0,o.K)(g,"emitJump"),(0,o.K)(d,"computeRoundedCorner"),(0,o.K)(b,"rewriteEdgePath"),(0,o.K)(v,"isStraightPath"),(0,o.K)(m,"curveSupportsLineHops"),(0,o.K)(w,"decodeDataPoints"),(0,o.K)(E,"applyLineJumpsToSvg")},71562:t=>{var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],a=new o((f+u)*3/4-u),h=0,l=u>0?f-4:f;for(e=0;e<l;e+=4)r=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],a[h++]=r>>16&255,a[h++]=r>>8&255,a[h++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,a[h++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,a[h++]=r>>8&255,a[h++]=255&r),a},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f<u;f+=16383)i.push(function(t,r,n){for(var o,i=[],f=r;f<n;f+=3)o=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),i.push(e[o>>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f<u;++f)e[f]=i[f],n[i.charCodeAt(f)]=f;function s(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},72:function(t,r,e){"use strict";var n=e(675),o=e(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t){var n=t,o=r;if(("string"!=typeof o||""===o)&&(o="utf8"),!u.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|c(n,o),s=f(i),a=s.write(n,o);return a!==i&&(s=s.slice(0,a)),s}if(ArrayBuffer.isView(t))return l(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);if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(U(t,SharedArrayBuffer)||t&&U(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),u.prototype),n}(t,r,e);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var h=t.valueOf&&t.valueOf();if(null!=h&&h!==t)return u.from(h,r,e);var y=function(t){if(u.isBuffer(t)){var r=0|p(t.length),e=f(r);return 0===e.length||t.copy(e,0,0,r),e}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?f(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),r,e);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(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 h(t){return a(t),f(t<0?0:0|p(t))}function l(t){for(var r=t.length<0?0:0|p(t.length),e=f(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),!u.TYPED_ARRAY_SUPPORT&&"u">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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(a(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)};function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function c(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(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 e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return M(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return S(t).length;default:if(o)return n?-1:M(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f,u=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=L[t[i]];return o}(this,r,e);case"utf8":case"utf-8":return v(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}(this,r,e);case"base64":return o=this,i=r,f=e,0===i&&f===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,r,e);default:if(u)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),u=!0}}function g(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function d(t,r,e,n,o){var i;if(0===t.length)return -1;if("string"==typeof e?(n=e,e=0):e>0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(i=e*=1)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(o)return -1;else e=t.length-1;else if(e<0)if(!o)return -1;else e=0;if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:b(t,r,e,n,o);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return b(t,[r],e,n,o)}throw TypeError("val must be string, number or Buffer")}function b(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function a(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var h=-1;for(i=e;i<u;i++)if(a(t,i)===a(r,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===s)return h*f}else -1!==h&&(i-=i-h),h=-1}else for(e+s>u&&(e=u-s),i=e;i>=0;i--){for(var l=!0,p=0;p<s;p++)if(a(t,i+p)!==a(r,p)){l=!1;break}if(l)return i}return -1}u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(U(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),U(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:+(n<e)},u.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}},u.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===r)for(e=0,r=0;e<t.length;++e)r+=t[e].length;var e,n=u.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var i=t[e];if(U(i,Uint8Array)&&(i=u.from(i)),!u.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},u.byteLength=c,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)g(this,r,r+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(U(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),a=this.slice(n,o),h=t.slice(r,e),l=0;l<s;++l)if(a[l]!==h[l]){i=a[l],f=h[l];break}return i<f?-1:+(f<i)},u.prototype.includes=function(t,r,e){return -1!==this.indexOf(t,r,e)},u.prototype.indexOf=function(t,r,e){return d(this,t,r,e,!0)},u.prototype.lastIndexOf=function(t,r,e){return d(this,t,r,e,!1)};function v(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,f,u,s,a=t[o],h=null,l=a>239?4:a>223?3:a>191?2:1;if(o+l<=e)switch(l){case 1:a<128&&(h=a);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&a)<<6|63&i)>127&&(h=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&a)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&a)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(h=s)}null===h?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=l}var p=n,c=p.length;if(c<=4096)return String.fromCharCode.apply(String,p);for(var y="",g=0;g<c;)y+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return y}function m(t,r,e){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>e)throw RangeError("Trying to access beyond buffer length")}function w(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw RangeError('"value" argument is out of bounds');if(e+n>t.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function x(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function A(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}u.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,a,h,l,p=this.length-r;if((void 0===e||e>p)&&(e=p),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var c=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f<n;++f){var u,s=parseInt(r.substr(2*f,2),16);if((u=s)!=u)break;t[e+f]=s}return f}(this,t,r,e);case"utf8":case"utf-8":return o=r,i=e,T(M(t,this.length-o),this,o,i);case"ascii":return f=r,u=e,T(I(t),this,f,u);case"latin1":case"binary":return function(t,r,e,n){return T(I(r),t,e,n)}(this,t,r,e);case"base64":return s=r,a=e,T(S(t),this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=r,l=e,T(function(t,r){for(var e,n,o=[],i=0;i<t.length&&!((r-=2)<0);++i)n=(e=t.charCodeAt(i))>>8,o.push(e%256),o.push(n);return o}(t,this.length-h),this,h,l);default:if(c)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||m(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||m(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||m(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||m(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||m(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||m(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||m(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||m(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||m(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||m(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||m(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||m(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||m(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||m(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f<e&&(i*=256);)this[r+f]=t/i&255;return r+e},u.prototype.writeUIntBE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i<e&&(f*=256);)t<0&&0===u&&0!==this[r+i-1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return x(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return x(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o=n-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,n);else if(this===t&&e<r&&r<n)for(var i=o-1;i>=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw RangeError("Out of range index");if(e<=r)return this;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var f=u.isBuffer(t)?t:u.from(t,n),s=f.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<e-r;++o)this[o+r]=f[o%s]}return this};var B=/[^+/0-9A-Za-z-_]/g;function M(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],f=0;f<n;++f){if((e=t.charCodeAt(f))>55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function I(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function S(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function U(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var L=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},783:function(t,r){r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<<u)-1,a=s>>1,h=-7,l=e?o-1:0,p=e?-1:1,c=t[r+l];for(l+=p,i=c&(1<<-h)-1,c>>=-h,h+=u;h>0;i=256*i+t[r+l],l+=p,h-=8);for(f=i&(1<<-h)-1,i>>=-h,h+=n;h>0;f=256*f+t[r+l],l+=p,h-=8);if(0===i)i=1-a;else{if(i===s)return f?NaN:1/0*(c?-1:1);f+=Math.pow(2,n),i-=a}return(c?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,a=8*i-o-1,h=(1<<a)-1,l=h>>1,p=5960464477539062e-23*(23===o),c=n?0:i-1,y=n?1:-1,g=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(u=+!!isNaN(r),f=h):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+l>=1?r+=p/s:r+=p*Math.pow(2,1-l),r*s>=2&&(f++,s/=2),f+l>=h?(u=0,f=h):f+l>=1?(u=(r*s-1)*Math.pow(2,o),f+=l):(u=r*Math.pow(2,l-1)*Math.pow(2,o),f=0));o>=8;t[e+c]=255&u,c+=y,u/=256,o-=8);for(f=f<<o|u,a+=o;a>0;t[e+c]=255&f,c+=y,f/=256,a-=8);t[e+c-y]|=128*g}}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}},f=!0;try{r[t](i,i.exports,n),f=!1}finally{f&&delete e[t]}return i.exports}n.ab="//",t.exports=n(72)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1396],{31984:(t,e,r)=>{r.d(e,{CP:()=>p,Ck:()=>h,HT:()=>y,PB:()=>c,aC:()=>x,lC:()=>d,m:()=>o,tk:()=>n});var a=r(95631),s=r(14528),l=r(77850),i=r(60830),n=(0,s.K)((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)r.attr(t,e.attrs[t]);return e.class&&r.attr("class",e.class),r},"drawRect"),d=(0,s.K)((t,e)=>{n(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),o=(0,s.K)((t,e)=>{let r=e.text.replace(a.H1," "),s=t.append("text");s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class&&s.attr("class",e.class);let l=s.append("tspan");return l.attr("x",e.x+2*e.textMargin),l.text(r),s},"drawText"),x=(0,s.K)((t,e,r,a)=>{let s=t.append("image");s.attr("x",e),s.attr("y",r);let i=(0,l.J)(a);s.attr("xlink:href",i)},"drawImage"),p=(0,s.K)((t,e,r,a)=>{let s=t.append("use");s.attr("x",e),s.attr("y",r);let i=(0,l.J)(a);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),c=(0,s.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=(0,s.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),h=(0,s.K)(()=>{let t=(0,i.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,i.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},95205:(t,e,r)=>{r.d(e,{m:()=>s});var a=r(14528),s=class{constructor(t){this.init=t,this.records=this.init()}static{(0,a.K)(this,"ImperativeState")}reset(){this.records=this.init()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167],{3:(t,e)=>{let r=new Uint8Array(512),n=new Uint8Array(256),o=1;for(let t=0;t<255;t++)r[t]=o,n[o]=t,256&(o<<=1)&&(o^=285);for(let t=255;t<512;t++)r[t]=r[t-255];e.log=function(t){if(t<1)throw Error("log("+t+")");return n[t]},e.exp=function(t){return r[t]},e.mul=function(t,e){return 0===t||0===e?0:r[n[t]+n[e]]}},3108:(t,e,r)=>{let n=r(94496);function o(t){this.mode=n.BYTE,"string"==typeof t?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)},t.exports=o},10604:(t,e)=>{let r,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},10961:(t,e,r)=>{let n=r(3);e.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=n.mul(t[o],e[i]);return r},e.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){let t=r[0];for(let o=0;o<e.length;o++)r[o]^=n.mul(e[o],t);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},e.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let o=0;o<t;o++)r=e.mul(r,new Uint8Array([1,n.exp(o)]));return r}},15756:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){let e=t.size,r=0,n=0,o=0,i=null,a=null;for(let s=0;s<e;s++){n=o=0,i=a=null;for(let u=0;u<e;u++){let e=t.get(s,u);e===i?n++:(n>=5&&(r+=3+(n-5)),i=e,n=1),(e=t.get(u,s))===a?o++:(o>=5&&(r+=3+(o-5)),a=e,o=1)}n>=5&&(r+=3+(n-5)),o>=5&&(r+=3+(o-5))}return r},e.getPenaltyN2=function(t){let e=t.size,r=0;for(let n=0;n<e-1;n++)for(let o=0;o<e-1;o++){let e=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);(4===e||0===e)&&r++}return 3*r},e.getPenaltyN3=function(t){let e=t.size,r=0,n=0,o=0;for(let i=0;i<e;i++){n=o=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(i,a),a>=10&&(1488===n||93===n)&&r++,o=o<<1&2047|t.get(a,i),a>=10&&(1488===o||93===o)&&r++}return 40*r},e.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let n=0;n<r;n++)e+=t.data[n];return 10*Math.abs(Math.ceil(100*e/r/5)-10)},e.applyMask=function(t,r){let n=r.size;for(let o=0;o<n;o++)for(let i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,function(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(r+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return r*n%2+r*n%3==0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error("bad maskPattern:"+t)}}(t,i,o))},e.getBestMask=function(t,r){let n=Object.keys(e.Patterns).length,o=0,i=1/0;for(let a=0;a<n;a++){r(a),e.applyMask(a,t);let n=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),n<i&&(i=n,o=a)}return o}},15868:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},16677:(t,e,r)=>{let n=r(94496);function o(t){this.mode=n.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e,r;for(e=0;e+3<=this.data.length;e+=3)r=parseInt(this.data.substr(e,3),10),t.put(r,10);let n=this.data.length-e;n>0&&(r=parseInt(this.data.substr(e),10),t.put(r,3*n+1))},t.exports=o},17691:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},20167:(t,e,r)=>{let n=r(82957),o=r(77877),i=r(56707),a=r(69270);function s(t,e,r,i,a){let s=[].slice.call(arguments,1),u=s.length,l="function"==typeof s[u-1];if(!l&&!n())throw Error("Callback required as last argument");if(l){if(u<2)throw Error("Too few arguments provided");2===u?(a=r,r=e,e=i=void 0):3===u&&(e.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=e,e=void 0))}else{if(u<1)throw Error("Too few arguments provided");return 1===u?(r=e,e=i=void 0):2!==u||e.getContext||(i=r,r=e,e=void 0),new Promise(function(n,a){try{let a=o.create(r,i);n(t(a,e,i))}catch(t){a(t)}})}try{let n=o.create(r,i);a(null,t(n,e,i))}catch(t){a(t)}}e.create=o.create,e.toCanvas=s.bind(null,i.render),e.toDataURL=s.bind(null,i.renderToDataURL),e.toString=s.bind(null,function(t,e,r){return a.render(t,r)})},21816:(t,e,r)=>{let n=r(10604).getSymbolSize;e.getPositions=function(t){let e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},22752:(t,e)=>{function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){let n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){let o=r.modules.size,i=r.modules.data,a=e.getScale(o,n),s=Math.floor((o+2*n.margin)*a),u=n.margin*a,l=[n.color.light,n.color.dark];for(let e=0;e<s;e++)for(let r=0;r<s;r++){let f=(e*s+r)*4,h=n.color.light;e>=u&&r>=u&&e<s-u&&r<s-u&&(h=l[+!!i[Math.floor((e-u)/a)*o+Math.floor((r-u)/a)]]),t[f++]=h.r,t[f++]=h.g,t[f++]=h.b,t[f]=h.a}}},23125:(t,e,r)=>{let n=r(10604),o=r(68744),i=r(30993),a=r(94496),s=r(15868),u=n.getBCHDigit(7973);function l(t,e){return a.getCharCountIndicator(t,e)+4}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!s.isValid(t))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let i=(n.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,e))*8;if(r===a.MIXED)return i;let u=i-l(r,t);switch(r){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,r){let n,o=i.from(r,i.M);if(Array.isArray(t)){if(t.length>1){for(let r=1;r<=40;r++)if(function(t,e){let r=0;return t.forEach(function(t){let n=l(t.mode,e);r+=n+t.getBitsLength()}),r}(t,r)<=e.getCapacity(r,o,a.MIXED))return r;return}if(0===t.length)return 1;n=t[0]}else n=t;return function(t,r,n){for(let o=1;o<=40;o++)if(r<=e.getCapacity(o,n,t))return o}(n.mode,n.getLength(),o)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-u>=0;)e^=7973<<n.getBCHDigit(e)-u;return t<<12|e}},28765:(t,e,r)=>{let n=r(94496),o=r(16677),i=r(81663),a=r(3108),s=r(67569),u=r(36846),l=r(10604),f=r(97506);function h(t){return unescape(encodeURIComponent(t)).length}function c(t,e,r){let n,o=[];for(;null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function g(t){let e,r,o=c(u.NUMERIC,n.NUMERIC,t),i=c(u.ALPHANUMERIC,n.ALPHANUMERIC,t);return l.isKanjiModeEnabled()?(e=c(u.BYTE,n.BYTE,t),r=c(u.KANJI,n.KANJI,t)):(e=c(u.BYTE_KANJI,n.BYTE,t),r=[]),o.concat(i,e,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function d(t,e){switch(e){case n.NUMERIC:return o.getBitsLength(t);case n.ALPHANUMERIC:return i.getBitsLength(t);case n.KANJI:return s.getBitsLength(t);case n.BYTE:return a.getBitsLength(t)}}function p(t,e){let r,u=n.getBestModeForData(t);if((r=n.from(e,u))!==n.BYTE&&r.bit<u.bit)throw Error('"'+t+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(u));switch(r===n.KANJI&&!l.isKanjiModeEnabled()&&(r=n.BYTE),r){case n.NUMERIC:return new o(t);case n.ALPHANUMERIC:return new i(t);case n.KANJI:return new s(t);case n.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},e.fromString=function(t,r){let o=function(t,e){let r={},o={start:{}},i=["start"];for(let a=0;a<t.length;a++){let s=t[a],u=[];for(let t=0;t<s.length;t++){let l=s[t],f=""+a+t;u.push(f),r[f]={node:l,lastCount:0},o[f]={};for(let t=0;t<i.length;t++){let a=i[t];r[a]&&r[a].node.mode===l.mode?(o[a][f]=d(r[a].lastCount+l.length,l.mode)-d(r[a].lastCount,l.mode),r[a].lastCount+=l.length):(r[a]&&(r[a].lastCount=l.length),o[a][f]=d(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,e))}}i=u}for(let t=0;t<i.length;t++)o[i[t]].end=0;return{map:o,table:r}}(function(t){let e=[];for(let r=0;r<t.length;r++){let o=t[r];switch(o.mode){case n.NUMERIC:e.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:e.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:e.push([o,{data:o.data,mode:n.BYTE,length:h(o.data)}]);break;case n.BYTE:e.push([{data:o.data,mode:n.BYTE,length:h(o.data)}])}}return e}(g(t,l.isKanjiModeEnabled())),r),i=f.find_path(o.map,"start","end"),a=[];for(let t=1;t<i.length-1;t++)a.push(o.table[i[t]].node);return e.fromArray(a.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?t[t.length-1].data+=e.data:t.push(e),t},[]))},e.rawSplit=function(t){return e.fromArray(g(t,l.isKanjiModeEnabled()))}},30993:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw Error("Unknown EC Level: "+t)}}catch(t){return r}}},36846:(t,e)=>{let r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=RegExp(n,"g"),e.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=RegExp(o,"g"),e.NUMERIC=RegExp(r,"g"),e.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let i=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return i.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},45868:(t,e,r)=>{let n=r(10961);function o(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(t){this.degree=t,this.genPoly=n.generateECPolynomial(this.degree)},o.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=n.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let t=new Uint8Array(this.degree);return t.set(r,o),t}return r},t.exports=o},49739:(t,e,r)=>{let n=r(10604),o=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){let r=t.bit<<3|e,i=r<<10;for(;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return(r<<10|i)^21522}},54440:t=>{function e(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},56707:(t,e,r)=>{let n=r(22752);e.render=function(t,e,r){var o;let i=r,a=e;void 0!==i||e&&e.getContext||(i=e,e=void 0),e||(a=function(){try{return document.createElement("canvas")}catch(t){throw Error("You need to specify a canvas element")}}()),i=n.getOptions(i);let s=n.getImageWidth(t.modules.size,i),u=a.getContext("2d"),l=u.createImageData(s,s);return n.qrToImageData(l.data,t,i),o=a,u.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px",u.putImageData(l,0,0),a},e.renderToDataURL=function(t,r,n){let o=n;void 0!==o||r&&r.getContext||(o=r,r=void 0),o||(o={});let i=e.render(t,r,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},67569:(t,e,r)=>{let n=r(94496),o=r(10604);function i(t){this.mode=n.KANJI,this.data=t}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=o.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),t.put(r,13)}},t.exports=i},68744:(t,e,r)=>{let n=r(30993),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return o[(t-1)*4+0];case n.M:return o[(t-1)*4+1];case n.Q:return o[(t-1)*4+2];case n.H:return o[(t-1)*4+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return i[(t-1)*4+0];case n.M:return i[(t-1)*4+1];case n.Q:return i[(t-1)*4+2];case n.H:return i[(t-1)*4+3];default:return}}},69270:(t,e,r)=>{let n=r(22752);function o(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function i(t,e,r){let n=t+e;return void 0!==r&&(n+=" "+r),n}e.render=function(t,e,r){let a=n.getOptions(e),s=t.modules.size,u=t.modules.data,l=s+2*a.margin,f=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",h="<path "+o(a.color.dark,"stroke")+' d="'+function(t,e,r){let n="",o=0,a=!1,s=0;for(let u=0;u<t.length;u++){let l=Math.floor(u%e),f=Math.floor(u/e);l||a||(a=!0),t[u]?(s++,u>0&&l>0&&t[u-1]||(n+=a?i("M",l+r,.5+f+r):i("m",o,0),o=0,a=!1),l+1<e&&t[u+1]||(n+=i("h",s),s=0)):o++}return n}(u,s,a.margin)+'"/>',c='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+l+" ")+l+'" shape-rendering="crispEdges">'+f+h+"</svg>\n";return"function"==typeof r&&r(null,c),c}},77877:(t,e,r)=>{let n=r(10604),o=r(30993),i=r(17691),a=r(54440),s=r(81635),u=r(21816),l=r(15756),f=r(68744),h=r(45868),c=r(23125),g=r(49739),d=r(94496),p=r(28765);function m(t,e,r){let n,o,i=t.size,a=g.getEncodedBits(e,r);for(n=0;n<15;n++)o=(a>>n&1)==1,n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}e.create=function(t,e){let r,g;if(void 0===t||""===t)throw Error("No input text");let E=o.M;return void 0!==e&&(E=o.from(e.errorCorrectionLevel,o.M),r=c.from(e.version),g=l.from(e.maskPattern),e.toSJISFunc&&n.setToSJISFunction(e.toSJISFunc)),function(t,e,r,o){let g;if(Array.isArray(t))g=p.fromArray(t);else if("string"==typeof t){let n=e;if(!n){let e=p.rawSplit(t);n=c.getBestVersionForData(e,r)}g=p.fromString(t,n||40)}else throw Error("Invalid data");let E=c.getBestVersionForData(g,r);if(!E)throw Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<E)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+E+".\n")}else e=E;let y=function(t,e,r){let o=new i;r.forEach(function(e){o.put(e.mode.bit,4),o.put(e.getLength(),d.getCharCountIndicator(e.mode,t)),e.write(o)});let a=(n.getSymbolTotalCodewords(t)-f.getTotalCodewordsCount(t,e))*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);let s=(a-o.getLengthInBits())/8;for(let t=0;t<s;t++)o.put(t%2?17:236,8);return function(t,e,r){let o,i,a=n.getSymbolTotalCodewords(e),s=a-f.getTotalCodewordsCount(e,r),u=f.getBlocksCount(e,r),l=a%u,c=u-l,g=Math.floor(a/u),d=Math.floor(s/u),p=d+1,m=g-d,E=new h(m),y=0,w=Array(u),A=Array(u),C=0,B=new Uint8Array(t.buffer);for(let t=0;t<u;t++){let e=t<c?d:p;w[t]=B.slice(y,y+e),A[t]=E.encode(w[t]),y+=e,C=Math.max(C,e)}let I=new Uint8Array(a),M=0;for(o=0;o<C;o++)for(i=0;i<u;i++)o<w[i].length&&(I[M++]=w[i][o]);for(o=0;o<m;o++)for(i=0;i<u;i++)I[M++]=A[i][o];return I}(o,t,e)}(e,r,g),w=new a(n.getSymbolSize(e));!function(t,e){let r=t.size,n=u.getPositions(e);for(let e=0;e<n.length;e++){let o=n[e][0],i=n[e][1];for(let e=-1;e<=7;e++)if(!(o+e<=-1)&&!(r<=o+e))for(let n=-1;n<=7;n++)i+n<=-1||r<=i+n||(e>=0&&e<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===e||6===e)||e>=2&&e<=4&&n>=2&&n<=4?t.set(o+e,i+n,!0,!0):t.set(o+e,i+n,!1,!0))}}(w,e);let A=w.size;for(let t=8;t<A-8;t++){let e=t%2==0;w.set(t,6,e,!0),w.set(6,t,e,!0)}return!function(t,e){let r=s.getPositions(e);for(let e=0;e<r.length;e++){let n=r[e][0],o=r[e][1];for(let e=-2;e<=2;e++)for(let r=-2;r<=2;r++)-2===e||2===e||-2===r||2===r||0===e&&0===r?t.set(n+e,o+r,!0,!0):t.set(n+e,o+r,!1,!0)}}(w,e),m(w,r,0),e>=7&&function(t,e){let r,n,o,i=t.size,a=c.getEncodedBits(e);for(let e=0;e<18;e++)r=Math.floor(e/3),n=e%3+i-8-3,o=(a>>e&1)==1,t.set(r,n,o,!0),t.set(n,r,o,!0)}(w,e),!function(t,e){let r=t.size,n=-1,o=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!t.isReserved(o,s-r)){let n=!1;a<e.length&&(n=(e[a]>>>i&1)==1),t.set(o,s-r,n),-1==--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(w,y),isNaN(o)&&(o=l.getBestMask(w,m.bind(null,w,r))),l.applyMask(o,w),m(w,r,o),{modules:w,version:e,errorCorrectionLevel:r,maskPattern:o,segments:g}}(t,r,E,g)}},81635:(t,e,r)=>{let n=r(10604).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];let e=Math.floor(t/7)+2,r=n(t),o=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7];for(let t=1;t<e-1;t++)i[t]=i[t-1]-o;return i.push(6),i.reverse()},e.getPositions=function(t){let r=[],n=e.getRowColCoords(t),o=n.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)(0!==t||0!==e)&&(0!==t||e!==o-1)&&(t!==o-1||0!==e)&&r.push([n[t],n[e]]);return r}},81663:(t,e,r)=>{let n=r(94496),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(t){this.mode=n.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*o.indexOf(this.data[e]);r+=o.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},t.exports=i},82957:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},94496:(t,e,r)=>{let n=r(15868),o=r(36846);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!n.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw Error("Unknown mode: "+t)}}catch(t){return r}}},97506:t=>{"use strict";var e={single_source_shortest_paths:function(t,r,n){var o,i,a,s,u,l,f,h={},c={};c[r]=0;var g=e.PriorityQueue.make();for(g.push(r,0);!g.empty();)for(a in i=(o=g.pop()).value,s=o.cost,u=t[i]||{})u.hasOwnProperty(a)&&(l=s+u[a],f=c[a],(void 0===c[a]||f>l)&&(c[a]=l,g.push(a,l),h[a]=i));if(void 0!==n&&void 0===c[n])throw Error("Could not find a path from "+r+" to "+n+".");return h},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e;n;)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,r,n){var o=e.single_source_shortest_paths(t,r,n);return e.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var r,n=e.PriorityQueue,o={};for(r in t=t||{},n)n.hasOwnProperty(r)&&(o[r]=n[r]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}}]);
|