slice-machine-ui 2.20.5-alpha.jp-import-slice-base.2 → 2.20.5-alpha.jp-import-slices-2.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/out/404.html +1 -1
- package/out/_next/static/60BSwFmsh1-aNIyMe29hH/_buildManifest.js +1 -0
- package/out/_next/static/chunks/21-f3962d02eda0a46e.js +1 -0
- package/out/_next/static/chunks/{248-84a5987f0499b074.js → 248-2902bda47821f37b.js} +1 -1
- package/out/_next/static/chunks/{630-2bf927bca082a191.js → 630-4fe1e982234bd925.js} +1 -1
- package/out/_next/static/chunks/633-2d20c3e815c79c7f.js +1 -0
- package/out/_next/static/chunks/{647-aa094286bc248d52.js → 647-a29bee23cb9ac7a2.js} +1 -1
- package/out/_next/static/chunks/660-a3ec593dcfbb44c9.js +1 -0
- package/out/_next/static/chunks/6611d287.1714222015f895ea.js +28 -0
- package/out/_next/static/chunks/{882-48d61b2fabee28d8.js → 882-8ab59c0c72307c87.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-651bb3e76e35a633.js → _app-a60aecdbaa4efedd.js} +217 -217
- package/out/_next/static/chunks/pages/{changelog-8514e0696e90a1b2.js → changelog-bc83e25e8d316ca9.js} +1 -1
- package/out/_next/static/chunks/pages/{changes-e66094f57453cf9c.js → changes-6f371ebe52dbe76a.js} +1 -1
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-273e9a82c085b596.js → [customTypeId]-80defa14b6ea36f7.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-56fd818a63553497.js → labs-16d118a80936d583.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-3fa7667de1a790d9.js → [pageTypeId]-f4ff9ad74b44bf09.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-8c70298caf51bed0.js → simulator-873c0c89aaf50b3c.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-22ffa2561ac66557.js → [variation]-0e9aa745ed9fe1ec.js} +1 -1
- package/out/_next/static/chunks/pages/slices-93fc784c443a996c.js +1 -0
- package/out/_next/static/chunks/{webpack-24ddb02bea621501.js → webpack-e986dd216b883a74.js} +1 -1
- package/out/_next/static/css/b30fbbc3ed00a725.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +6 -6
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/ImportSlicesFromLibraryModal.tsx +104 -285
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/LibrarySlicesTab.tsx +125 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/LocalSlicesTab.tsx +67 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/ReuseExistingSlicesContext.tsx +279 -0
- package/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/hooks/useImportSlicesFromGithub.ts +7 -4
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +4 -18
- package/src/features/customTypes/customTypesBuilder/shared/getSubmitButtonLabel.ts +3 -5
- package/src/features/customTypes/customTypesBuilder/sliceCreationOptions.tsx +0 -14
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +1 -3
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +31 -79
- package/src/pages/slices.tsx +0 -30
- package/out/_next/static/CGK-vfrV6JByBnDLoS7iE/_buildManifest.js +0 -1
- package/out/_next/static/chunks/422-c7a16d95b75c9e1c.js +0 -1
- package/out/_next/static/chunks/489-c9535ef34da63d1a.js +0 -1
- package/out/_next/static/chunks/585-c89bb2471e85b9f8.js +0 -1
- package/out/_next/static/chunks/954-bedaaabf664584a0.js +0 -1
- package/out/_next/static/chunks/a6495ab1.00190ac98e794d8f.js +0 -28
- package/out/_next/static/chunks/pages/slices-76679cf064761d2b.js +0 -1
- package/out/_next/static/css/bc89f2cd4e4781f5.css +0 -1
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +0 -72
- /package/out/_next/static/{CGK-vfrV6JByBnDLoS7iE → 60BSwFmsh1-aNIyMe29hH}/_ssgManifest.js +0 -0
package/out/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/b30fbbc3ed00a725.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b30fbbc3ed00a725.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e986dd216b883a74.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-de87250a4e0c9fcf.js" defer=""></script><script src="/_next/static/chunks/pages/_app-a60aecdbaa4efedd.js" defer=""></script><script src="/_next/static/chunks/pages/_error-fedd2c6ebd3d27b9.js" defer=""></script><script src="/_next/static/60BSwFmsh1-aNIyMe29hH/_buildManifest.js" defer=""></script><script src="/_next/static/60BSwFmsh1-aNIyMe29hH/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"60BSwFmsh1-aNIyMe29hH","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,d,n,u,h,f,k,j,l,p,g,o,r,m,_,y,I,N){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,t,o,r,"static/chunks/pages/index-0d8cb369de720a35.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/changelog":[c,i,"static/chunks/870-a72b74312773efea.js","static/chunks/pages/changelog-bc83e25e8d316ca9.js"],"/changes":[c,b,"static/chunks/8eec4907-b712959d9f984b68.js",a,"static/chunks/125-00b909bdbab2ca15.js",e,n,"static/css/d98ebc475f8423a3.css","static/chunks/pages/changes-6f371ebe52dbe76a.js"],"/custom-types":[s,t,o,r,"static/chunks/pages/custom-types-5acd56959b60346f.js"],"/custom-types/[customTypeId]":[c,u,h,f,k,s,a,i,d,j,l,m,e,t,p,g,_,y,"static/chunks/pages/custom-types/[customTypeId]-80defa14b6ea36f7.js"],"/labs":["static/chunks/pages/labs-16d118a80936d583.js"],"/page-types/[pageTypeId]":[c,u,h,f,k,s,a,i,d,j,l,m,e,t,p,g,_,y,"static/chunks/pages/page-types/[pageTypeId]-f4ff9ad74b44bf09.js"],"/slices":[c,b,I,s,a,d,N,e,g,n,"static/css/efa5152b7c0f35c0.css","static/chunks/pages/slices-93fc784c443a996c.js"],"/slices/[lib]/[sliceName]/[variation]":[c,b,u,h,f,k,I,s,a,i,d,j,N,"static/chunks/484-3e011e79c41f0342.js",e,p,n,"static/css/e8e03c0d4003d1eb.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-0e9aa745ed9fe1ec.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[b,"static/chunks/72585f70-28b4d7d5384b3703.js",l,"static/chunks/429-e5d7e39160de9f5e.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-873c0c89aaf50b3c.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/397-e6c340070a3bcb41.js","static/chunks/59b4e022-ef680789f7cc9b11.js","static/chunks/66-d9d3bcb5d041cb6d.js","static/chunks/882-8ab59c0c72307c87.js","static/chunks/647-a29bee23cb9ac7a2.js","static/chunks/183-4ea255b867ff171b.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/344-b64f09e670634ed1.js","static/chunks/593-7ffd1197c3405ef8.js","static/chunks/f36c6662-1f3a854183168b10.js","static/chunks/4c744e84-480e426e4b1cfef3.js","static/chunks/065a3ddb-9a38ca0d60f0bf2f.js","static/chunks/1cc2734a-09fb3b997ad1eb70.js","static/chunks/256-07f768a2b19b0a0e.js","static/chunks/130-e1a16d2f94fb2b64.js","static/chunks/630-4fe1e982234bd925.js","static/chunks/633-2d20c3e815c79c7f.js","static/chunks/248-2902bda47821f37b.js","static/css/4e475d945cf8a890.css","static/chunks/21-f3962d02eda0a46e.js","static/chunks/660-a3ec593dcfbb44c9.js","static/css/56f2a6684a524374.css","static/chunks/52d4c156-89c6ec6efca0a0bb.js","static/chunks/444-d39213143f782fec.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21],{49385:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,s,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(t=arguments[d],null!=t)for(n in t)r=u(p,n),p!==(i=u(t,n))&&(h&&i&&(o(i)||(c=l(i)))?(c?(c=!1,s=r&&l(r)?r:[]):s=r&&o(r)?r:{},a(p,{name:n,newValue:e(h,s,i)})):void 0!==i&&a(p,{name:n,newValue:i}));return p}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g;function c(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var s=1,p=1;function d(e){var t=e.match(n);t&&(s+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:s,column:p};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:s,column:p},this.source=u.source}h.prototype.content=e;var y=[];function m(t){var n=Error(u.source+":"+s+":"+p+": "+t);if(n.reason=t,n.filename=u.source,n.line=s,n.column=p,n.source=e,u.silent)y.push(n);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function C(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return p+=2,d(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}return g(r),function(){var e,n=[];for(C(n);e=function(){var e=f(),n=g(i);if(n){if(k(),!g(l))return m("property missing ':'");var r=g(o),u=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(a),u}}();)!1!==e&&(n.push(e),C(n));return n}()}},74600:function(e,t,n){var r=n(34311),i=n(23779),l=r(function(e,t,n){return e+(n?" ":"")+i(t)});e.exports=l},85653:function(e,t,n){var r=n(6299);function i(e,t){var n,i,l,o=null;if(!e||"string"!=typeof e)return o;for(var a=r(e),u="function"==typeof t,c=0,s=a.length;c<s;c++)i=(n=a[c]).property,l=n.value,u?t(i,l,n):l&&(o||(o={}),o[i]=l);return o}e.exports=i,e.exports.default=i},9520:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},97033:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},50421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},7217:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(50421),c=n(98088),s=n(88866),p=n(82956),d=n(75122);t.Document=a.record(c.WidgetKey,p.WidgetContent);let f=a.record(c.WidgetKey,a.unknown),h=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,o.pipe)(f.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).decode(r);return!o||(0,l.isLeft)(o)?t:{...t,[n]:o.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),l=(0,p.WidgetLegacy)(i).encode(r);return l?{content:{...t.content,[n]:l.content},types:{...t.types,...l.types}}:t},{content:{},types:{}}));function y(e){let{types:t,widgets:n}=Object.entries(e).reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,l.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),r=e.slugs_INTERNAL||[];return{widgets:n,types:t,uid:e.uid,slugs:r}}function m(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,s.flattenSections)(e))}}function g({document:e,customType:t}){let n=t&&s.StaticCustomType.is(t)?m(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[l,o])=>{let a=i&&i[l],c=u.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:l,type:"Widget"}]),s=(()=>{switch(o.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:c,key:l,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:o})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:c,key:l,apiId:l,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:o})(t);case"RepeatableContent":return(0,p.traverseRepeatableContent)({path:c,key:l,apiId:l,model:(null==a?void 0:a.type)==="Link"?a:void 0,content:o})(t);case"TableContent":return(0,p.traverseTableContent)({path:c,key:l,apiId:l,model:(null==a?void 0:a.type)==="Table"?a:void 0,content:o})(t);default:return t({path:c,key:l,apiId:l,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:o})}})();return{...e,...s?{[l]:s}:{}}},{})}}function C(e,t){let n=s.StaticCustomType.is(t)?m(t):t;return Object.values((0,s.collectSharedSlices)(n)).some(e=>!!e.legacyPaths)?g({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:h,extractMetadata:y,parse:function(e,t){let n=(0,o.pipe)(a.record(c.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=y(e);return h(t).decode(n)}));return(0,l.isLeft)(n)?void 0:C(n.right,t)},encode:function(e){let t=h().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&s.StaticCustomType.is(e)?m(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],l=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&s.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return l?{...e,[n]:l}:e},t)},t.traverseDocument=g,t.collectWidgets=function(e,t){let n={};return g({document:e})({transformWidget:({content:e,path:r})=>{let i=u.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=C},75122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=(0,n(22970).__importStar)(n(32521)),i=n(59050);t.FieldOrSliceType=r.union([r.union([i.FieldType,i.SlicesTypes]),r.literal("Repeatable.Link")]);class l{constructor(e,t,n){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=e,this.fieldPath=t||[],this.allTypes=n||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}t.LegacyContentCtx=l,t.getFieldCtx=function(e,t,n){return new l(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new l(e,[],t)}},54175:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(3441);t.EmptyContentType="EmptyContent",t.isEmptyContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;let u=o.union([o.null,o.type({value:o.null})]);t.EmptyLegacy=e=>new o.Type("EmptyLegacy",t.isEmptyContent,n=>(0,l.pipe)(u.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null),t.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(t.EmptyContentType)})},35792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroupItemsContent=t.traverseGroupContent=t.groupContentWithDefaultValues=t.GroupLegacy=t.GroupItemLegacy=t.GroupContentDefaultValue=t.isGroupContent=t.GroupContent=t.GroupItemContent=t.GroupContentType=t.GroupItemContentType=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(88866),c=n(75122),s=n(3441),p=n(69732),d=n(29231);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupItemContent=a.recursion("GroupItemContent",()=>a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,a.union([p.NestableContent,t.GroupContent])]))})),t.GroupContent=a.recursion("GroupContent",()=>a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)})),t.isGroupContent=e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.GroupContentType,t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]};let f=a.record(a.string,a.unknown);function h({path:e,key:t,apiId:n,model:r,content:i}){return l=>{var o;let a=y({path:e,model:null===(o=null==r?void 0:r.config)||void 0===o?void 0:o.fields,content:i.value})(l);return l({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}}function y({path:e,model:n,content:r}){return i=>r.map((r,l)=>{let o=e.concat([{key:l.toString(),type:"GroupItem"}]),a=r.value.reduce((e,[r,l])=>{let a;let u=null==n?void 0:n[r];return(a=(0,t.isGroupContent)(l)?h({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==u?void 0:u.type)==="Group"?u:void 0,content:l})(i):(0,p.isRepeatableContent)(l)?(0,p.traverseRepeatableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==u?void 0:u.type)==="Link"?u:void 0,content:l})(i):(0,p.isTableContent)(l)?(0,p.traverseTableContent)({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:(null==u?void 0:u.type)==="Table"?u:void 0,content:l})(i):i({path:o.concat([{key:r,type:"Widget"}]),key:r,apiId:r,model:u,content:l}))&&((0,p.isNestableContent)(a)||(0,t.isGroupContent)(a))?e.concat([[r,a]]):e},[]);return{__TYPE__:r.__TYPE__,value:a}})}t.GroupItemLegacy=e=>new a.Type("GroupItemLegacy",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>(0,o.pipe)(f.decode(n),i.either.map(n=>({value:Object.entries(n).reduce((n,[r,i])=>{let o=(0,c.getFieldCtx)(r,e),a=o.fieldType===u.GroupFieldType?(0,t.GroupLegacy)(o).decode(i):(0,p.NestableLegacy)(o).decode(i);return!a||(0,l.isLeft)(a)?n:[...n,[r,a.right]]},[]),__TYPE__:t.GroupItemContentType}))),n=>n.value.reduce((n,[r,i])=>{let l=(0,c.getFieldCtx)(r,e),o=(0,t.isGroupContent)(i)?(0,t.GroupLegacy)(l).encode(i):(0,p.NestableLegacy)(l).encode(i);return o?{content:{...n.content,[r]:o.content},types:{...n.types,...o.types}}:n},{content:{},types:{}})),t.GroupLegacy=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:u.GroupFieldType})}})},t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,d.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=h,t.traverseGroupItemsContent=y},86901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(3441);t.UIDContentType="UIDContent",t.isUIDContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType,t.UIDLegacy=e=>new o.Type("UIDLegacy",t.isUIDContent,e=>(0,l.pipe)(o.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}})),t.UIDContent=o.type({__TYPE__:o.literal(t.UIDContentType),value:o.string})},18268:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=(0,n(22970).__importStar)(n(32521)),i=n(35792),l=n(69732),o=n(6869),a=n(86901);t.WidgetContent=r.union([i.GroupContent,l.NestableContent,a.UIDContent,o.SlicesContent]),t.isWidgetContent=e=>(0,i.isGroupContent)(e)||(0,l.isNestableContent)(e)||(0,a.isUIDContent)(e)||(0,o.isSlicesContent)(e),t.WidgetLegacy=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,a.UIDLegacy)(e);case"Group":return(0,i.GroupLegacy)(e);case"Choice":case"Slices":return(0,o.SlicesLegacy)(e);default:return(0,l.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case a.UIDContentType:return(0,a.UIDLegacy)(e).encode(t);case i.GroupContentType:return(0,i.GroupLegacy)(e).encode(t);case o.SlicesContentType:return(0,o.SlicesLegacy)(e).encode(t);default:return(0,l.NestableLegacy)(e).encode(t)}}})},82956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(54175),t),(0,r.__exportStar)(n(35792),t),(0,r.__exportStar)(n(69732),t),(0,r.__exportStar)(n(6869),t),(0,r.__exportStar)(n(86901),t),(0,r.__exportStar)(n(18268),t)},58021:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(3441);t.BooleanContentType="BooleanContent",t.isBooleanContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType,t.BooleanLegacy=e=>new o.Type("BooleanLegacy",t.isBooleanContent,e=>(0,l.pipe)(o.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}})),t.BooleanContent=o.strict({__TYPE__:o.literal(t.BooleanContentType),value:o.boolean}),t.BooleanContentDefaultValue=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0}},92611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(10082),u=n(3441);t.EmbedContentType="EmbedContent",t.isEmbedContent=e=>(0,u.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType,t.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull})])),t.EmbedLegacy=e=>new o.Type("EmbedLegacy",t.isEmbedContent,e=>(0,l.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}})),t.EmbedContent=o.intersection([t.EmbedContentLegacy,o.strict({__TYPE__:o.literal(t.EmbedContentType),all:o.unknown})])},28043:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isColorContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Color"===e.type,t.ColorLegacy=e=>new o.Type("ColorLegacy",t.isColorContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}})),t.ColorContent=o.strict({type:o.literal(a.ColorFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)})},87029:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isDateContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Date"===e.type,t.DateLegacy=e=>new o.Type("DateLegacy",t.isDateContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}})),t.DateContent=o.strict({type:o.literal(a.DateFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)})},10473:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isNumberContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Number"===e.type,t.NumberLegacy=e=>new o.Type("NumberLegacy",t.isNumberContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}})),t.NumberContent=o.strict({type:o.literal(a.NumberFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)})},21576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isRangeContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Range"===e.type,t.RangeLegacy=e=>new o.Type("RangeLegacy",t.isRangeContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}})),t.RangeContent=o.strict({type:o.literal(a.RangeFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)})},62145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isSelectContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Select"===e.type,t.SelectLegacy=e=>new o.Type("SelectLegacy",t.isSelectContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}})),t.SelectContent=o.strict({type:o.literal(a.SelectFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)}),t.SelectContentDefaultValue=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:s.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0}},51008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isTextContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Text"===e.type,t.TextLegacy=e=>new o.Type("TextLegacy",t.isTextContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}})),t.TextContent=o.strict({type:o.literal(a.TextFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)})},47286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(59050),u=(0,r.__importDefault)(n(93662)),c=n(3441),s=n(1876);t.isTimestampContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===s.FieldContentType&&(0,c.hasFieldContentType)(e)&&"Timestamp"===e.type,t.TimestampLegacy=e=>new o.Type("TimestampLegacy",t.isTimestampContent,e=>(0,l.pipe)(u.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:s.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}})),t.TimestampContent=o.strict({type:o.literal(a.TimestampFieldType),value:u.default,__TYPE__:o.literal(s.FieldContentType)})},1876:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},51711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(22970),i=(0,r.__importStar)(n(32521)),l=n(28043),o=n(87029),a=n(10473),u=n(21576),c=n(62145),s=n(51008),p=n(47286);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([o.DateContent,l.ColorContent,a.NumberContent,u.RangeContent,c.SelectContent,s.TextContent,p.TimestampContent]),(0,r.__exportStar)(n(28043),t),(0,r.__exportStar)(n(1876),t),(0,r.__exportStar)(n(87029),t),(0,r.__exportStar)(n(10473),t),(0,r.__exportStar)(n(21576),t),(0,r.__exportStar)(n(62145),t),(0,r.__exportStar)(n(51008),t),(0,r.__exportStar)(n(47286),t)},95110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(22970),i=n(76160),l=n(3735),o=(0,r.__importStar)(n(32521)),a=n(3441);t.GeoPointContentType="GeoPointContent",t.isGeoPointContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;let u=o.strict({position:o.strict({lat:o.number,lng:o.number})});t.GeoPointLegacy=e=>new o.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,l.pipe)(u.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}})),t.GeoPointContent=o.intersection([u,o.strict({__TYPE__:o.literal(t.GeoPointContentType)})])},19729:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(46898),u=n(10082),c=n(3441);t.ImageContentType="ImageContent",t.isImageContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;let s=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));t.ImageContentView=o.exact(o.intersection([o.type({origin:s,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:u.NonEmptyStringOrNull,alt:u.NonEmptyStringOrNull,provider:u.StringOrNull})]));let p=o.intersection([t.ImageContentView,o.partial({thumbnails:o.record(o.string,t.ImageContentView)})]);t.ImageLegacy=e=>new o.Type("ImageLegacy",t.isImageContent,e=>(0,l.pipe)(p.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__TYPE__:t.ImageContentType}))),t=>({content:(0,a.withOptionals)({edit:t.edit,height:t.height,origin:t.origin,width:t.width},[["alt",t.alt],["credits",t.credits],["provider",t.provider],["thumbnails",t.thumbnails],["url",t.url]]),types:{[e.keyOfType]:"Image"}})),t.ImageContent=o.intersection([p,o.strict({__TYPE__:o.literal(t.ImageContentType)})])},14506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(3441);t.IntegrationFieldContentType="IntegrationFieldsContent",t.isIntegrationFieldContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType,t.IntegrationFieldLegacy=e=>new o.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,l.pipe)(o.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}})),t.IntegrationFieldContent=o.strict({__TYPE__:o.literal(t.IntegrationFieldContentType),value:o.string})},70451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilledLinkContent=t.FilledLink=t.FilledLinkContentLegacy=t.FilledLinkLegacy=t.isFilledLinkContent=t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.AnyLinkContent=t.AnyLinkType=t.ExternalLinkContent=t.FilledExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.FilledDocumentLinkContent=t.DocumentLinkType=t.MediaLinkContent=t.MediaLinkType=t.FileLinkContent=t.FilledFileLinkContent=t.FileLinkType=t.ImageLinkContent=t.FilledImageLinkContent=t.ImageLinkType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(7862),u=n(10082),c=n(61365),s=n(3441);t.ImageLinkType="ImageLink";let p=e=>"string"==typeof e,d=new o.Type("ImageLinkKind",e=>p(e),(e,t)=>p(e)?o.success("image"):o.failure(e,t),()=>"image"),f=o.intersection([o.strict({kind:d,id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string}),o.exact(o.partial({date:u.StringOrNull}))]),h=new o.Type("FilledImageLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,l.pipe)(f.decode(e),i.either.map(e=>t.FilledImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>f.encode(e));t.FilledImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),f]);let y=o.intersection([o.union([f,o.strict({kind:o.literal("image")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),m=new o.Type("ImageLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,l.pipe)(y.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>y.encode(e));t.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),y]),t.FileLinkType="FileLink";let g=e=>"string"==typeof e,C=new o.Type("FileLinkKind",e=>g(e),(e,t)=>g(e)?o.success("file"):o.failure(e,t),()=>"file"),k=o.exact(o.intersection([o.type({kind:C,id:o.string,url:o.string,name:o.string,size:(0,a.withFallback)(o.string,"0")}),o.partial({date:u.StringOrNull})])),v=new o.Type("FilledFileLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,l.pipe)(k.decode(e),i.either.map(e=>t.FilledFileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>k.encode(e));t.FilledFileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),k]);let b=o.intersection([o.union([k,o.strict({kind:o.literal("file")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),_=new o.Type("FileLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,l.pipe)(b.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>b.encode(e));t.FileLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.FileLinkType)}),b]),t.MediaLinkType="MediaLink";let x=o.intersection([o.strict({kind:o.literal("media")}),o.exact(o.partial({text:o.string,variant:o.string}))]),T=new o.Type("MediaLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.MediaLinkType,e=>(0,l.pipe)(x.decode(e),i.either.map(e=>t.MediaLinkContent.encode({...e,__TYPE__:t.MediaLinkType}))),e=>x.encode(e));t.MediaLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.MediaLinkType)}),x]),t.DocumentLinkType="DocumentLink";let S=o.strict({id:u.NonEmptyString}),L=new o.Type("FilledDocumentLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,l.pipe)(S.decode(e),i.either.map(e=>t.FilledDocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>S.encode(e));t.FilledDocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),S]);let w=o.intersection([o.union([S,o.strict({kind:o.literal("document")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),E=new o.Type("DocumentLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,l.pipe)(w.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>w.encode(e));t.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),w]),t.ExternalLinkType="ExternalLink";let F=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:u.StringOrNull,preview:(0,c.nullable)(o.partial({title:o.string}))})])),P=new o.Type("FilledExternalLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,l.pipe)(F.decode(e),i.either.map(e=>t.FilledExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>F.encode(e));t.FilledExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),F]);let I=o.intersection([o.union([F,o.strict({kind:o.literal("web")})]),o.exact(o.partial({text:o.string,variant:o.string}))]),D=new o.Type("ExternalLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,l.pipe)(I.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>I.encode(e));t.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),I]),t.AnyLinkType="AnyLink";let O=o.exact(o.intersection([o.type({kind:(0,a.withFallback)(o.literal("any"),"any")}),o.partial({text:o.string,variant:o.string})])),A=new o.Type("AnyLink",e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.AnyLinkType,e=>(0,l.pipe)(O.decode(e),i.either.map(e=>t.AnyLinkContent.encode({...e,__TYPE__:t.AnyLinkType}))),e=>O.encode(e));t.AnyLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.AnyLinkType)}),O]),t.LinkContentType="LinkContent",t.isLinkContent=e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.LinkLegacy=(0,s.withKey)(o.union([m,_,E,D,T,A])),t.LinkContentLegacy=e=>new o.Type("LinkLegacy",t.isLinkContent,e=>(0,l.pipe)(t.LinkLegacy.decode(e),i.either.map(({key:e,...n})=>t.LinkContent.encode({__TYPE__:"LinkContent",key:e,value:n}))),({key:n,value:r})=>({content:t.LinkLegacy.encode({...r,key:n}),types:{[e.keyOfType]:"Link"}})),t.Link=o.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,t.MediaLinkContent,t.AnyLinkContent]),t.LinkContent=(0,s.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.Link})),t.isFilledLinkContent=e=>(0,s.hasContentType)(e)&&e.__TYPE__===t.LinkContentType,t.FilledLinkLegacy=o.union([h,v,L,P]),t.FilledLinkContentLegacy=e=>{let n=(0,s.withKey)(t.FilledLinkLegacy);return new o.Type("FilledLinkLegacy",t.isFilledLinkContent,e=>(0,l.pipe)(n.decode(e),i.either.map(({key:e,...n})=>t.FilledLinkContent.encode({__TYPE__:"LinkContent",key:e,value:n}))),({key:t,value:r})=>({content:n.encode({...r,key:t}),types:{[e.keyOfType]:"Link"}}))},t.FilledLink=o.union([t.FilledImageLinkContent,t.FilledFileLinkContent,t.FilledDocumentLinkContent,t.FilledExternalLinkContent]),t.FilledLinkContent=(0,s.withKey)(o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.FilledLink}))},60882:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(22970),i=n(45974),l=(0,r.__importStar)(n(32521)),o=n(54175),a=n(58021),u=n(92611),c=n(51711),s=n(1876),p=n(95110),d=n(19729),f=n(14506),h=n(70451),y=n(97798),m=n(13656),g=n(9746),C=n(43940);t.NestableContent=l.union([o.EmptyContent,a.BooleanContent,u.EmbedContent,c.TextContent,c.TimestampContent,c.SelectContent,c.RangeContent,c.NumberContent,c.DateContent,c.ColorContent,p.GeoPointContent,d.ImageContent,f.IntegrationFieldContent,h.LinkContent,m.RichTextContent,g.SeparatorContent,C.TableContent,y.RepeatableContent]),t.NestableContentDefaultValue=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,c.SelectContentDefaultValue)(e);default:return}},t.isNestableContent=e=>(0,c.isTextContent)(e)||(0,c.isColorContent)(e)||(0,c.isDateContent)(e)||(0,c.isTimestampContent)(e)||(0,c.isNumberContent)(e)||(0,c.isRangeContent)(e)||(0,c.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,m.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,u.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,f.isIntegrationFieldContent)(e)||(0,h.isLinkContent)(e)||(0,g.isSeparatorContent)(e)||(0,C.isTableContent)(e)||(0,o.isEmptyContent)(e)||(0,y.isRepeatableContent)(e),t.NestableLegacy=e=>({decode(t){if(!e.fieldType)return;let n=(0,o.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,c.TextLegacy)(e);case"Color":return(0,c.ColorLegacy)(e);case"Date":return(0,c.DateLegacy)(e);case"Timestamp":return(0,c.TimestampLegacy)(e);case"Number":return(0,c.NumberLegacy)(e);case"Range":return(0,c.RangeLegacy)(e);case"Select":return(0,c.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,m.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,u.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,f.IntegrationFieldLegacy)(e);case"Link":return(0,h.LinkContentLegacy)(e);case"Separator":return(0,g.SeparatorLegacy)(e);case"Table":return(0,C.TableLegacy)(e);case"Repeatable.Link":return(0,y.RepeatableLegacy)(e,"Link");default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case s.FieldContentType:if("Text"===t.type)return(0,c.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,c.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,c.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,c.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,c.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,c.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,c.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case m.RichTextContentType:return(0,m.RichTextLegacy)(e).encode(t);case u.EmbedContentType:return(0,u.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case f.IntegrationFieldContentType:return(0,f.IntegrationFieldLegacy)(e).encode(t);case h.LinkContentType:return(0,h.LinkContentLegacy)(e).encode(t);case g.SeparatorContentType:return(0,g.SeparatorLegacy)(e).encode(t);case C.TableContentType:return(0,C.TableLegacy)(e).encode(t);case"RepeatableContent":return(0,y.RepeatableLegacy)(e,t.type).encode(t);default:return}}})},97798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseRepeatableContent=t.RepeatableLegacy=t.isRepeatableContent=t.RepeatableContent=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(3441),c=n(70451),s="RepeatableContent";t.RepeatableContent=a.strict({__TYPE__:a.literal(s),type:a.literal("Link"),value:a.array(c.LinkContent)}),t.isRepeatableContent=e=>(0,u.hasContentType)(e)&&e.__TYPE__===s,t.RepeatableLegacy=(e,n)=>new a.Type("RepeatableLegacy",t.isRepeatableContent,t=>(0,o.pipe)(a.array(a.unknown).decode(t),i.either.map(t=>({value:t.reduce((t,r)=>{let i;return"Link"===n&&(i=(0,c.LinkContentLegacy)(e).decode(r)),!i||(0,l.isLeft)(i)?t:[...t,i.right]},[]),type:n,__TYPE__:"RepeatableContent"}))),t=>({content:a.array(c.LinkContent).encode(t.value).reduce((t,n)=>{let r;return n.__TYPE__===c.LinkContentType&&(r=(0,c.LinkContentLegacy)(e).encode(n)),r?[...t,r]:t},[]).map(e=>e.content),types:{[e.keyOfType]:`Repeatable.${n}`}})),t.traverseRepeatableContent=function({path:e,key:t,apiId:n,model:r,content:i}){return l=>{let o=i.value.reduce((i,o,a)=>{let u=l({path:e.concat([{key:a.toString(),type:"Widget"}]),key:t,apiId:n,model:(null==r?void 0:r.type)==="Link"&&r.config?{...r,config:{...r.config,repeat:!1}}:r,content:o});return u&&(0,c.isLinkContent)(u)?i.concat(u):i},[]);return l({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,type:i.type,value:o}})}}},76994:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(7862),c=n(8199),s=n(10082),p=n(61365),d=n(92611),f=n(19729),h=n(70451),y=e=>a.strict({data:e,start:a.number,end:a.number,type:a.literal(c.RichTextNodeType.hyperlink)}),m=a.strict({data:(0,u.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),g=a.strict({start:a.number,end:a.number,type:a.keyof({[c.RichTextNodeType.strong]:null,[c.RichTextNodeType.em]:null,"list-item":null})});t.Span=a.union([y(h.FilledLink),m,g]),t.SpanLegacy=a.union([y(h.FilledLinkLegacy),m,g]),t.ValidatedSpans=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let n=t.reduce((t,n)=>{let r=e.decode(n);return(0,l.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(n)}},t=>t.reduce((t,n)=>[...t,e.encode(n)],[]));let C=e=>a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.image),data:a.intersection([f.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)})])}),a.partial({label:s.StringOrNull,direction:s.StringOrNull})]));t.ImageBlock=C(h.FilledLink);let k=C(h.FilledLinkLegacy);t.checkImageBlock=function(e){return e.type===c.RichTextNodeType.image};let v=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.embed),data:a.unknown}),a.partial({label:s.StringOrNull,direction:s.StringOrNull})])),b=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,o.pipe)(v.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...v.encode(e),data:d.EmbedContentLegacy.encode(e.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:s.StringOrNull,direction:s.StringOrNull})])),t.checkEmbedBlock=function(e){return e.type===c.RichTextNodeType.embed};let _=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(c.RichTextNodeTypeCodec,`string which isn't ${c.RichTextNodeType.image} ${c.RichTextNodeType.embed}`,e=>e!==c.RichTextNodeType.image&&e!==c.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)})])}),a.partial({label:a.string,direction:a.string})]));t.TextBlock=_(t.Span),t.TextBlockLegacy=_(t.SpanLegacy);let x=a.union([b,k,t.TextBlockLegacy]);t.BlockLegacy=new a.Type("BlockLegacy",e=>b.is(e)||k.is(e)||t.TextBlockLegacy.is(e),e=>x.decode(e),e=>t.ImageBlock.is(e)?k.encode(e):t.EmbedBlock.is(e)?b.encode(e):t.TextBlockLegacy.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},13656:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.RichTextLegacyContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(3441),u=n(76994);t.RichTextContentType="StructuredTextContent",t.isRichTextContent=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType,t.RichTextLegacyContent=o.array(u.BlockLegacy),t.RichTextContent=o.strict({__TYPE__:o.literal(t.RichTextContentType),value:o.array(u.Block)}),(0,r.__exportStar)(n(76994),t),t.RichTextLegacy=e=>new o.Type("RichTextLegacy",t.isRichTextContent,e=>(0,l.pipe)(t.RichTextLegacyContent.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),n=>({content:t.RichTextLegacyContent.encode(n.value),types:{[e.keyOfType]:"StructuredText"}}))},9746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=(0,n(22970).__importStar)(n(32521)),i=n(3441);t.SeparatorContentType="SeparatorContent",t.isSeparatorContent=e=>(0,i.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType,t.SeparatorLegacy=e=>new r.Type("SeparatorLegacy",t.isSeparatorContent,()=>r.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}})),t.SeparatorContent=r.strict({__TYPE__:r.literal(t.SeparatorContentType)})},43940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseTableContent=t.TableLegacy=t.TableContent=t.isTableContent=t.TableContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(88866),u=n(3441),c=n(13656);t.TableContentType="TableContent",t.isTableContent=e=>(0,u.hasContentType)(e)&&e.__TYPE__===t.TableContentType;let s=(0,u.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:c.RichTextContent}),o.exact(o.partial({columnWidth:o.number}))])),p=(0,u.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(s)}));t.TableContent=o.strict({__TYPE__:o.literal(t.TableContentType),content:o.array(p)});let d=(0,u.withKey)(o.intersection([o.strict({type:o.union([o.literal("tableHeader"),o.literal("tableCell")]),content:c.RichTextLegacyContent}),o.exact(o.partial({columnWidth:o.number}))])),f=(0,u.withKey)(o.strict({type:o.literal("tableRow"),content:o.array(d)})),h=o.strict({content:o.array(f)});t.TableLegacy=e=>new o.Type("TableLegacy",t.isTableContent,e=>(0,l.pipe)(h.decode(e),i.either.map(e=>({__TYPE__:"TableContent",content:e.content.map(e=>({...e,content:e.content.map(e=>({...e,content:{__TYPE__:"StructuredTextContent",value:e.content}}))}))}))),t=>({content:h.encode({content:t.content.map(e=>({...e,content:e.content.map(e=>({...e,content:e.content.value}))}))}),types:{[e.keyOfType]:"Table"}})),t.traverseTableContent=function({path:e,key:t,apiId:n,model:r,content:i}){return l=>{let o=i.content.map((r,i)=>({...r,content:r.content.map((r,o)=>{let u=l({path:e.concat([{key:[i.toString(),o.toString()].join(","),type:"Widget"}]),key:t,apiId:n,model:a.TableCell,content:{__TYPE__:r.content.__TYPE__,value:r.content.value}})||{__TYPE__:"StructuredTextContent",value:[]};return{...r,content:u}})}));return l({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,content:o}})}}},69732:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(58021),t),(0,r.__exportStar)(n(92611),t),(0,r.__exportStar)(n(51711),t),(0,r.__exportStar)(n(95110),t),(0,r.__exportStar)(n(19729),t),(0,r.__exportStar)(n(14506),t),(0,r.__exportStar)(n(70451),t),(0,r.__exportStar)(n(60882),t),(0,r.__exportStar)(n(97798),t),(0,r.__exportStar)(n(13656),t),(0,r.__exportStar)(n(9746),t),(0,r.__exportStar)(n(43940),t)},77517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(75122),c=n(3441),s=n(35792),p=n(69732),d=n(29231),f=n(96279);t.CompositeSliceContentType="CompositeSliceContent",t.isCompositeSliceContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;let h=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord}));t.CompositeSliceLegacy=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,o.pipe)(h.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,u.getFieldCtx)("repeat",e),r=(0,f.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,l.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,u.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let o=(0,p.NestableLegacy)(i).decode(r);return!o||(0,l.isLeft)(o)?t:{...t,[n]:o.right}},{}),repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,u.getFieldCtx)(n,e,["non-repeat"]),l=(0,p.NestableLegacy)(i).encode(r);return l?{content:{...t.content,[n]:l.content},types:{...t.types,...l.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,u.getFieldCtx)("repeat",e);return(0,f.RepeatableWidgetsLegacy)(n).encode(t.repeat)})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}}),t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:f.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,d.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),l=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:l}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(l,o)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[o,a])=>{var u,c,s;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(c=null===(u=null==r?void 0:r.fields)||void 0===u?void 0:u.primary)||void 0===c?void 0:c[o]:null===(s=null==r?void 0:r["non-repeat"])||void 0===s?void 0:s[o],f=l({path:e.concat([{key:"non-repeat",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:n,model:d,content:a});return f?(0,p.isNestableContent)(f)?{...i,[o]:f}:(console.warn(`Warn: Non nestable content with key [${o}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),u=(0,s.traverseGroupItemsContent)({path:e.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:i.widget.repeat})(l);return o({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:u,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var l;return(null===(l=e.fields.primary)||void 0===l?void 0:l[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var l;return(null===(l=e.fields.items)||void 0===l?void 0:l[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},96279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=(0,n(22970).__importStar)(n(32521)),i=n(35792),l=n(69732);t.RepeatableWidgetsLegacy=e=>r.array((0,i.GroupItemLegacy)(e));let o=r.tuple([r.string,r.union([l.NestableContent,i.GroupContent])]),a=r.strict({__TYPE__:r.literal(i.GroupItemContentType),value:r.array(o)});t.RepeatableWidgets=r.array(a)},90848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(7862),c=n(88866),s=n(75122),p=n(3441),d=n(35792),f=n(69732),h=n(29231),y=n(96279),m=n(95305);t.SharedSliceContentType="SharedSliceContent",t.isSharedSliceContent=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;let g=a.exact(a.type({variation:a.string,items:(0,u.withFallback)(a.array(a.unknown),[]),primary:(0,u.withFallback)(a.UnknownRecord,{})}));t.SharedSliceLegacy=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,o.pipe)(g.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,s.getFieldCtx)("items",e,["variations",n.variation]),r=(0,y.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,l.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let o=(0,s.getFieldCtx)(r,e,["variations",n.variation,"primary"]),a=(0,m.SlicePrimaryLegacy)(o).decode(i);return!a||(0,l.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let l=(0,s.getFieldCtx)(r,e,["variations",t.variation,"primary"]),o=(0,m.SlicePrimaryLegacy)(l).encode(i);return o?{content:{...n.content,[r]:o.content},types:{...n.types,...o.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,s.getFieldCtx)("items",e,["variations",t.variation]);return(0,y.RepeatableWidgetsLegacy)(n).encode(t.items)})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}}),t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,m.SlicePrimaryContent),items:y.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),l=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},o=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,h.withDefaultSlicePrimaryContentValues)(l,t.primary),u=(0,h.repeatableContentWithDefaultNestableContentValues)(o,t.items);return{...t,primary:a,items:u}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(l,o)=>{let a=Object.entries(i.widget.primary).reduce((i,[o,a])=>{var u,s;let p=null===(s=null===(u=null==r?void 0:r.fields)||void 0===u?void 0:u.primary)||void 0===s?void 0:s[o],h=(0,d.isGroupContent)(a)?(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)===c.GroupFieldType?p:void 0})(l):(0,f.isRepeatableContent)(a)?(0,f.traverseRepeatableContent)({path:e.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)==="Link"?p:void 0})(l):(0,f.isTableContent)(a)?(0,f.traverseTableContent)({path:e.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,content:a,model:(null==p?void 0:p.type)==="Table"?p:void 0})(l):(0,f.isNestableContent)(a)?l({path:e.concat([{key:"primary",type:"primary"},{key:o,type:"Widget"}]),key:o,apiId:o,model:p,content:a}):void 0;return h?((0,m.isSlicePrimaryContent)(h)||console.warn(`Warn: Non nestable or group content with key [${o}] detected in a shared slice [${n}] with key [${t}]`),{...i,[o]:h}):i},{}),u=(0,d.traverseGroupItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(l);return o({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:u}}})}}},56710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=(0,n(22970).__importStar)(n(32521)),i=n(35792),l=n(69732);t.SimpleSliceContent=r.union([l.NestableContent,i.GroupContent]),t.isSimpleSliceContent=e=>(0,l.isNestableContent)(e)||(0,i.isGroupContent)(e),t.SimpleSliceLegacy=e=>({decode:"Group"===e.fieldType?(0,i.GroupLegacy)(e).decode.bind(null):(0,l.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,i.GroupLegacy)(e).encode(t):(0,l.NestableLegacy)(e).encode(t)}),t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:l}){return(o,a)=>{var u;if((0,i.isGroupContent)(l.widget)){let t=(0,i.traverseGroupContent)({path:e,key:l.key,apiId:l.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:l.widget})(o);return t&&a({key:l.key,apiId:l.name,path:e,model:r,content:{...l,widget:t}})}let c=o({key:l.key,apiId:l.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(u=r.fields.primary)||void 0===u?void 0:u[l.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:l.widget});return c&&a({key:t,apiId:n,path:e,model:r,content:{...l,widget:c}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},95305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSlicePrimaryContent=t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=(0,n(22970).__importStar)(n(32521)),i=n(88866),l=n(35792),o=n(69732);t.SlicePrimaryContent=r.union([o.NestableContent,l.GroupContent]),t.SlicePrimaryLegacy=e=>{let t=(0,l.GroupLegacy)(e),n=(0,o.NestableLegacy)(e);return{decode:r=>e.fieldType===i.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,l.isGroupContent)(e)?t.encode(e):n.encode(e)}},t.isSlicePrimaryContent=e=>(0,o.isNestableContent)(e)||(0,l.isGroupContent)(e)},71771:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(22970),i=(0,r.__importStar)(n(32521)),l=n(77517),o=n(90848),a=n(56710);t.SliceLegacy=e=>({decode:t=>(()=>{switch(e.fieldType){case"Slice":return(0,l.CompositeSliceLegacy)(e);case"SharedSlice":return(0,o.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})().decode(t),encode:t=>{switch(t.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,l.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}}),t.SliceContent=i.union([l.CompositeSliceContent,o.SharedSliceContent,a.SimpleSliceContent]),(0,r.__exportStar)(n(77517),t),(0,r.__exportStar)(n(90848),t),(0,r.__exportStar)(n(56710),t),(0,r.__exportStar)(n(95305),t)},66219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(22970),i=n(76160),l=n(45974),o=n(30902),a=(0,r.__importStar)(n(32521)),u=n(61365),c=n(75122),s=n(35792),p=n(69732),d=n(29231),f=n(71771),h=n(77517),y=n(90848),m=n(56710);function g(e){return(0,h.isCompositeSliceContent)(e.widget)}function C(e){return(0,s.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:f.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,y.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=g,t.isSimpleSliceItemContent=C,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,y.isSharedSliceContent)(t))return(0,f.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,h.isCompositeSliceContent)(t))return(0,f.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,s.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let n=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:n}}return t};let k=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,u.nullable)(a.string)})]));t.SlicesItemLegacy=e=>new a.Type("SlicesItemLegacy",e=>((0,y.isSharedSliceContent)(e.widget),(0,h.isCompositeSliceContent)(e.widget),(0,m.isSimpleSliceContent)(e.widget)),(t,n)=>(0,o.pipe)(k.decode(t),i.either.chain(r=>{var i;let o=r.key.indexOf("$"),u=r.key.substring(0,o>0?o:void 0),s=(0,c.getFieldCtx)(u,e),p=(0,f.SliceLegacy)(s).decode(r.value);return!p||(0,l.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:u,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,c.getFieldCtx)(t.name,e),r=(0,f.SliceLegacy)(n).encode(t.widget);return{content:{key:t.key,label:t.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}}),t.migrateSliceItem=({model:e,content:t})=>g(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(e,t):C(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,m.migrateSimpleSlice)(e,t):t},84186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(22970),i=n(76160),l=n(30902),o=(0,r.__importStar)(n(32521)),a=n(50421),u=n(88866),c=n(3441),s=n(77517),p=n(90848),d=n(56710),f=n(66219);t.SlicesContentType="SliceContentType",t.isSlicesContent=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType,t.SlicesLegacy=e=>{let n=o.array((0,f.SlicesItemLegacy)(e));return new o.Type("SlicesLegacy",t.isSlicesContent,e=>(0,l.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})},t.SlicesContent=o.type({__TYPE__:o.literal(t.SlicesContentType),value:o.array(f.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,f.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:l=({content:e})=>e})=>{let o=r.value.reduce((t,r)=>{let o=n&&function(e,t,n){var r,i;let l=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,f.isSharedSliceItemContent)(n)&&l&&(0,u.isStaticSharedSlice)(l)){let e=l.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:l.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),l=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,u.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!l)return;let o=null==l?void 0:l.variations.find(e=>{var t;return e.id===(null===(t=l.legacyPaths)||void 0===t?void 0:t[i])});if(o)return{type:"SharedSlice",sliceName:l.id,variationId:o.id,fields:{primary:o.primary||{},items:o.items||{}}}})()||(()=>{if(l){if((0,u.isCompositeSlice)(l))return{type:"Slice","non-repeat":l["non-repeat"]||{},repeat:l.repeat||{}};if((0,u.isLegacySlice)(l))return l}})()}(e,n,r),c=(0,f.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(i,l):(0,f.isCompositeSliceItemContent)(r)?(0,s.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==o?void 0:o.type)==="Slice"||(null==o?void 0:o.type)==="SharedSlice"?o:void 0,content:r})(i,l):(0,f.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:o&&(null==o?void 0:o.type)!=="Slice"?o:void 0,content:r})(i,l):void 0;return c?t.concat(c):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:o}})}}},6869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(71771),t),(0,r.__exportStar)(n(66219),t),(0,r.__exportStar)(n(84186),t)},29231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(88866),i=n(35792),l=n(69732);t.withDefaultSlicePrimaryContentValues=function(e,t){for(let[n,o]of Object.entries(e)){let e=t[n];if(void 0===e){if(o.type===r.GroupFieldType)t[n]=(0,i.groupContentWithDefaultValues)(o,i.GroupContentDefaultValue);else{let e=(0,l.NestableContentDefaultValue)(o);e&&(t[n]=e)}continue}o.type===r.GroupFieldType&&(0,i.isGroupContent)(e)&&(t[n]=(0,i.groupContentWithDefaultValues)(o,e))}return t},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let t=(0,l.NestableContentDefaultValue)(r);return void 0!==t?{...e,[n]:t}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{var o;let a=e.value.find(([e])=>e===n);if("Group"===r.type){let e=(0,i.groupContentWithDefaultValues)(r,null!==(o=null==a?void 0:a[1])&&void 0!==o?o:{__TYPE__:i.GroupContentType,value:[]});return{...t,value:[...t.value.filter(([e])=>e!==n),...e?[[n,e]]:[]]}}if(!a){let e=(0,l.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...e?[[n,e]]:[]]}}return t},e))}},74686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970);(0,r.__exportStar)(n(7217),t),(0,r.__exportStar)(n(82956),t),(0,r.__exportStar)(n(75122),t)},3441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withKey=t.hasContentType=t.hasFieldContentType=void 0;let r=n(22970),i=n(45974),l=(0,r.__importStar)(n(32521)),o=n(60130),a=n(82956);function u(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return u(e)&&e.__TYPE__===a.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,i.isRight)(a.FieldType.decode(e.type))},t.hasContentType=u;let c=e=>"string"==typeof e&&(0,o.validate)(e),s=new l.Type("UUID",c,(e,t)=>void 0===e?l.success((0,o.v4)()):c(e)?l.success(e):l.failure(e,t),l.identity);t.withKey=function(e){return l.intersection([l.strict({key:s}),e])}},93662:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(22970),i=n(83296),l=n(3735),o=(0,r.__importStar)(n(32521));t.default=new o.Type("TrimmedString",o.string.is,(e,t)=>(0,l.pipe)(o.string.validate(e,t),(0,i.chain)(e=>o.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},11166:function(e,t,n){"use strict";n.d(t,{VY:function(){return ee},aV:function(){return Z},fC:function(){return X},xz:function(){return J}});var r=n(2784),i=n.t(r,2),l=n(17998),o=n(92211),a=n(62656),u=n(49815),c=n(52322),s=n(61644),p=i[" useId ".trim().toString()]||(()=>void 0),d=0;function f(e){let[t,n]=r.useState(p());return(0,s.b)(()=>{e||n(e=>e??String(d++))},[e]),e||(t?`radix-${t}`:"")}var h=n(72714),y=n(27757),m=n(87695),g=r.createContext(void 0);function C(e){let t=r.useContext(g);return e||t||"ltr"}var k="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[_,x,T]=function(e){let t=e+"CollectionProvider",[n,i]=(0,o.b)(t),[l,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),p=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,c.jsx)(l,{scope:t,itemMap:o,collectionRef:i,children:n})};p.displayName=t;let d=e+"CollectionSlot",f=(0,u.Z8)(d),h=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=s(d,n),l=(0,a.e)(t,i.collectionRef);return(0,c.jsx)(f,{ref:l,children:r})});h.displayName=d;let y=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,u.Z8)(y),C=r.forwardRef((e,t)=>{let{scope:n,children:i,...l}=e,o=r.useRef(null),u=(0,a.e)(t,o),p=s(y,n);return r.useEffect(()=>(p.itemMap.set(o,{ref:o,...l}),()=>void p.itemMap.delete(o))),(0,c.jsx)(g,{[m]:"",ref:u,children:i})});return C.displayName=y,[{Provider:p,Slot:h,ItemSlot:C},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}(b),[S,L]=(0,o.b)(b,[T]),[w,E]=S(b),F=r.forwardRef((e,t)=>(0,c.jsx)(_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(P,{...e,ref:t})})}));F.displayName=b;var P=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:o=!1,dir:u,currentTabStopId:s,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:g=!1,..._}=e,T=r.useRef(null),S=(0,a.e)(t,T),L=C(u),[E,F]=(0,m.T)({prop:s,defaultProp:p??null,onChange:d,caller:b}),[P,I]=r.useState(!1),D=(0,y.W)(f),O=x(n),R=r.useRef(!1),[z,j]=r.useState(0);return r.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(k,D),()=>e.removeEventListener(k,D)},[D]),(0,c.jsx)(w,{scope:n,orientation:i,dir:L,loop:o,currentTabStopId:E,onItemFocus:r.useCallback(e=>F(e),[F]),onItemShiftTab:r.useCallback(()=>I(!0),[]),onFocusableItemAdd:r.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>j(e=>e-1),[]),children:(0,c.jsx)(h.WV.div,{tabIndex:P||0===z?-1:0,"data-orientation":i,..._,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,l.M)(e.onMouseDown,()=>{R.current=!0}),onFocus:(0,l.M)(e.onFocus,e=>{let t=!R.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(k,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),g)}}R.current=!1}),onBlur:(0,l.M)(e.onBlur,()=>I(!1))})})}),I="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,tabStopId:a,children:u,...s}=e,p=f(),d=a||p,y=E(I,n),m=y.currentTabStopId===d,g=x(n),{onFocusableItemAdd:C,onFocusableItemRemove:k,currentTabStopId:v}=y;return r.useEffect(()=>{if(i)return C(),()=>k()},[i,C,k]),(0,c.jsx)(_.ItemSlot,{scope:n,id:d,focusable:i,active:o,children:(0,c.jsx)(h.WV.span,{tabIndex:m?0:-1,"data-orientation":y.orientation,...s,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{i?y.onItemFocus(d):e.preventDefault()}),onFocus:(0,l.M)(e.onFocus,()=>y.onItemFocus(d)),onKeyDown:(0,l.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){y.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return O[i]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let l=i.indexOf(e.currentTarget);i=y.loop?(n=i,r=l+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(l+1)}setTimeout(()=>A(i))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=v}):u})})});D.displayName=I;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var R=n(79616),z="Tabs",[j,M]=(0,o.b)(z,[L]),N=L(),[B,Y]=j(z),V=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:o="horizontal",dir:a,activationMode:u="automatic",...s}=e,p=C(a),[d,y]=(0,m.T)({prop:r,onChange:i,defaultProp:l??"",caller:z});return(0,c.jsx)(B,{scope:n,baseId:f(),value:d,onValueChange:y,orientation:o,dir:p,activationMode:u,children:(0,c.jsx)(h.WV.div,{dir:p,"data-orientation":o,...s,ref:t})})});V.displayName=z;var G="TabsList",W=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,l=Y(G,n),o=N(n);return(0,c.jsx)(F,{asChild:!0,...o,orientation:l.orientation,dir:l.dir,loop:r,children:(0,c.jsx)(h.WV.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});W.displayName=G;var H="TabsTrigger",U=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=Y(H,n),u=N(n),s=K(a.baseId,r),p=Q(a.baseId,r),d=r===a.value;return(0,c.jsx)(D,{asChild:!0,...u,focusable:!i,active:d,children:(0,c.jsx)(h.WV.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":p,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s,...o,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,l.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;d||i||!e||a.onValueChange(r)})})})});U.displayName=H;var $="TabsContent",q=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:l,children:o,...a}=e,u=Y($,n),s=K(u.baseId,i),p=Q(u.baseId,i),d=i===u.value,f=r.useRef(d);return r.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(R.z,{present:l||d,children:({present:n})=>(0,c.jsx)(h.WV.div,{"data-state":d?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:p,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:n&&o})})});function K(e,t){return`${e}-trigger-${t}`}function Q(e,t){return`${e}-content-${t}`}q.displayName=$;var X=V,Z=W,J=U,ee=q},8731:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});let r=document.createElement("i");function i(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},8466:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(72473),i=n(51748);let l={tokenize:function(e,t,n){return function(t){return(0,i.xz)(t)?(0,r.f)(e,l,"linePrefix")(t):l(t)};function l(e){return null===e||(0,i.Ch)(e)?t(e):n(e)}},partial:!0}},72473:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(51748);function i(e,t,n,i){let l=i?i-1:Number.POSITIVE_INFINITY,o=0;return function(i){return(0,r.xz)(i)?(e.enter(n),function i(a){return(0,r.xz)(a)&&o++<l?(e.consume(a),i):(e.exit(n),t(a))}(i)):t(i)}}},51748:function(e,t,n){"use strict";n.d(t,{jv:function(){return r},H$:function(){return i},n9:function(){return l},Av:function(){return o},pY:function(){return a},AF:function(){return u},sR:function(){return c},Ch:function(){return s},z3:function(){return p},xz:function(){return d},Xh:function(){return f},B8:function(){return h}});let r=y(/[A-Za-z]/),i=y(/[\dA-Za-z]/),l=y(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let a=y(/\d/),u=y(/[\dA-Fa-f]/),c=y(/[!-/:-@[-`{-~]/);function s(e){return null!==e&&e<-2}function p(e){return null!==e&&(e<0||32===e)}function d(e){return -2===e||-1===e||32===e}let f=y(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),h=y(/\s/);function y(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},98391:function(e,t,n){"use strict";function r(e,t,n,r){let i;let l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},20898:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(51748);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},87842:function(e,t,n){"use strict";n.d(t,{W:function(){return l}});var r=n(98391);let i={}.hasOwnProperty;function l(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let l;let o=(i.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(l in a){i.call(o,l)||(o[l]=[]);let e=a[l];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.d)(e,0,0,i)}(o[l],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},69001:function(e,t,n){"use strict";n.d(t,{v:function(){return l}});var r=n(8731);let i=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function l(e){return e.replace(i,o)}function o(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return function(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}(n.slice(t?2:1),t?16:10)}return(0,r.T)(n)||e}},36910:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},27828:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}n.d(t,{C:function(){return r}})},25661:function(e,t,n){"use strict";n.d(t,{D:function(){return tZ}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return eB},contentInitial:function(){return eA},disable:function(){return eY},document:function(){return eO},flow:function(){return ez},flowInitial:function(){return eR},insideSpan:function(){return eN},string:function(){return ej},text:function(){return eM}});var i={};n.r(i),n.d(i,{boolean:function(){return tf},booleanish:function(){return th},commaOrSpaceSeparated:function(){return tk},commaSeparated:function(){return tC},number:function(){return tm},overloadedBoolean:function(){return ty},spaceSeparated:function(){return tg}});var l=n(2784),o=n(97033);function a(e){return e&&"object"==typeof e?"position"in e||"type"in e?c(e.position):"start"in e||"end"in e?c(e):"line"in e||"column"in e?u(e):"":""}function u(e){return s(e&&e.line)+":"+s(e&&e.column)}function c(e){return u(e&&e.start)+"-"+u(e&&e.end)}function s(e){return e&&"number"==typeof e?e:1}class p extends Error{constructor(e,t,n){let r=[null,null],i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=a(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}p.prototype.file="",p.prototype.name="",p.prototype.reason="",p.prototype.message="",p.prototype.stack="",p.prototype.fatal=null,p.prototype.column=null,p.prototype.line=null,p.prototype.source=null,p.prototype.ruleId=null,p.prototype.position=null;let d={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');f(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.charCodeAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.charCodeAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.charCodeAt(l)===t.charCodeAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(f(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;f(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.charCodeAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)f(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){f(e);let t=47===e.charCodeAt(0),n=function(e,t){let n,r,i="",l=0,o=-1,a=0,u=-1;for(;++u<=e.length;){if(u<e.length)n=e.charCodeAt(u);else if(47===n)break;else n=47;if(47===n){if(o===u-1||1===a);else if(o!==u-1&&2===a){if(i.length<2||2!==l||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=u,a=0;continue}}else if(i.length>0){i="",l=0,o=u,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),l=u-o-1;o=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function f(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function h(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let y=["history","path","basename","stem","extname","dirname"];class m{constructor(e){let t,n;t=e?"string"==typeof e||o(e)?{value:e}:h(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++r<y.length;){let e=y[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)y.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){h(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!h(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){let e=t.charCodeAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),C(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?d.dirname(this.path):void 0}set dirname(e){k(this.basename,"dirname"),this.path=d.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?d.basename(this.path):void 0}set basename(e){C(e,"basename"),g(e,"basename"),this.path=d.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?d.extname(this.path):void 0}set extname(e){if(g(e,"extname"),k(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=d.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?d.basename(this.path,this.extname):void 0}set stem(e){C(e,"stem"),g(e,"stem"),this.path=d.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){let r=new p(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}}function g(e,t){if(e&&e.includes(d.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+d.sep+"`")}function C(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function k(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function v(e){if(e)throw e}var b=n(9520),_=n(49385);function x(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let T=(function e(){let t;let n=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...o){let a=e[++n],u=-1;if(l){r(l);return}for(;++u<t.length;)(null===o[u]||void 0===o[u])&&(o[u]=t[u]);t=o,a?(function(e,t){let n;return function(...t){let l;let o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l instanceof Promise?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],i={},l=-1;return o.data=function(e,n){return"string"==typeof e?2==arguments.length?(F("data",t),i[e]=n,o):S.call(i,e)&&i[e]||null:e?(F("data",t),i=e,o):i},o.Parser=void 0,o.Compiler=void 0,o.freeze=function(){if(t)return o;for(;++l<r.length;){let[e,...t]=r[l];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let i=e.call(o,...t);"function"==typeof i&&n.use(i)}return t=!0,l=Number.POSITIVE_INFINITY,o},o.attachers=r,o.use=function(e,...n){let l;if(F("use",t),null==e);else if("function"==typeof e)c(e,...n);else if("object"==typeof e)Array.isArray(e)?u(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return l&&(i.settings=Object.assign(i.settings||{},l)),o;function a(e){u(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function u(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)c(e);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;c(t,...n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function c(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(x(n[1])&&x(t)&&(t=_(!0,n[1],t)),n[1]=t):r.push([...arguments])}},o.parse=function(e){o.freeze();let t=D(e),n=o.Parser;return(w("parse",n),L(n,"parse"))?new n(String(t),t).parse():n(String(t),t)},o.stringify=function(e,t){o.freeze();let n=D(t),r=o.Compiler;return(E("stringify",r),P(e),L(r,"compile"))?new r(e,n).compile():r(e,n)},o.run=function(e,t,r){if(P(e),o.freeze(),r||"function"!=typeof t||(r=t,t=void 0),!r)return new Promise(i);function i(i,l){n.run(e,D(t),function(t,n,o){n=n||e,t?l(t):i?i(n):r(null,n,o)})}i(null,r)},o.runSync=function(e,t){let n,r;return o.run(e,t,function(e,t){v(e),n=t,r=!0}),I("runSync","run",r),n},o.process=function(e,t){if(o.freeze(),w("process",o.Parser),E("process",o.Compiler),!t)return new Promise(n);function n(n,r){let i=D(e);function l(e,i){e||!i?r(e):n?n(i):t(null,i)}o.run(o.parse(i),i,(e,t,n)=>{if(!e&&t&&n){let r=o.stringify(t,n);null==r||("string"==typeof r||b(r)?n.value=r:n.result=r),l(e,n)}else l(e)})}n(null,t)},o.processSync=function(e){let t;o.freeze(),w("processSync",o.Parser),E("processSync",o.Compiler);let n=D(e);return o.process(n,function(e){t=!0,v(e)}),I("processSync","process",t),n},o;function o(){let t=e(),n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(_(!0,{},i)),t}})().freeze(),S={}.hasOwnProperty;function L(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(S.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function w(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function E(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function F(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function P(e){if(!x(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function I(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function D(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new m(e)}let O={};function A(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return R(e.children,t,n)}return Array.isArray(e)?R(e,t,n):""}function R(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=A(e[i],t,n);return r.join("")}var z=n(87842),j=n(72473),M=n(51748);let N={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,j.f)(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,M.Ch)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}};var B=n(98391);let Y={tokenize:function(e){let t,n,r;let i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,u,c)(t)}return c(t)}function u(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&g();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}m(o);let a=r;for(;a<i.events.length;)i.events[a][1].end=Object.assign({},n),a++;return(0,B.d)(i.events,l+1,0,i.events.slice(r)),i.events.length=a,c(e)}return a(e)}function c(n){if(o===l.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(V,s,p)(n)}function s(e){return t&&g(),m(o),d(e)}function p(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,h(e)}function d(t){return i.containerState={},e.attempt(V,f,h)(t)}function f(e){return o++,l.push([i.currentConstruct,i.containerState]),d(e)}function h(r){if(null===r){t&&g(),m(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){y(e.exit("chunkFlow"),!0),m(0),e.consume(n);return}return(0,M.Ch)(n)?(e.consume(n),y(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function y(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(m(o),l=a;l<i.events.length;)i.events[l][1].end=Object.assign({},n),l++;(0,B.d)(i.events,u+1,0,i.events.slice(a)),i.events.length=l}}function m(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function g(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},V={tokenize:function(e,t,n){return(0,j.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var G=n(8466);let W={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,M.Ch)(t)?e.check(H,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return!function(e){let t,n,r,i,l,o;let a={},u=-1;for(;++u<e.length;){for(;(u in a);)u=a[u];if(t=e[u],u&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[u-1][1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,r;let i=e[t][1],l=e[t][2],o=t-1,a=[],u=i._tokenizer||l.parser[i.contentType](i.start),c=u.events,s=[],p={},d=-1,f=i,h=0,y=0,m=[0];for(;f;){for(;e[++o][1]!==f;);a.push(o),!f._tokenizer&&(n=l.sliceStream(f),f.next||n.push(null),r&&u.defineSkip(f.start),f._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(n),f._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++d<c.length;)"exit"===c[d][0]&&"enter"===c[d-1][0]&&c[d][1].type===c[d-1][1].type&&c[d][1].start.line!==c[d][1].end.line&&(y=d+1,m.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(u.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),d=m.length;d--;){let t=c.slice(m[d],m[d+1]),n=a.pop();s.unshift([n,n+t.length-1]),(0,B.d)(e,n,2,t)}for(d=-1;++d<s.length;)p[h+s[d][0]]=h+s[d][1],h+=s[d][1]-s[d][0]-1;return p}(e,u)),u=a[u]);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=e[r])[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(e[n][1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},e[n][1].start),(l=e.slice(n,u)).unshift(t),(0,B.d)(e,n,u-n+1,l))}}}(e),e}},H={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,j.f)(e,i,"linePrefix")};function i(i){if(null===i||(0,M.Ch)(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},U={tokenize:function(e){let t=this,n=e.attempt(G.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,j.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(W,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},$={resolveAll:X()},q=Q("string"),K=Q("text");function Q(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return u(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:X("text"===e?Z:void 0)}}function X(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Z(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,u=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)u++,a--;if(a)break;a=-1}else if(-2===e)r=!0,u++;else if(-1===e);else{o++;break}}if(u){let l={type:n===e.length||r||u<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-u,offset:i.end.offset-u,_index:i.start._index+o,_bufferIndex:o?a:i.start._bufferIndex+a},end:Object.assign({},i.end)};i.end=Object.assign({},l.start),i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}var J=n(27828);let ee={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){return e.enter("thematicBreak"),r=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,M.xz)(n)?(0,j.f)(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||(0,M.Ch)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(l)}}},et={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,M.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ee,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,M.pY)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(G.w,r.interrupt?n:u,e.attempt(en,s,c))}function u(e){return r.containerState.initialBlankLine=!0,l++,s(e)}function c(t){return(0,M.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),s):n(t)}function s(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(G.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,j.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,M.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(er,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,j.f)(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},en={tokenize:function(e,t,n){let r=this;return(0,j.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,M.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},er={tokenize:function(e,t,n){let r=this;return(0,j.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},ei={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,M.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,M.xz)(t)?(0,j.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ei,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function el(e,t,n,r,i,l,o,a,u){let c=u||Number.POSITIVE_INFINITY,s=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),p):null===t||32===t||41===t||(0,M.Av)(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function p(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),p(t)):null===t||60===t||(0,M.Ch)(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(i){return!s&&(null===i||41===i||(0,M.z3)(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):s<c&&40===i?(e.consume(i),s++,h):41===i?(e.consume(i),s--,h):null===i||32===i||40===i||(0,M.Av)(i)?n(i):(e.consume(i),92===i?y:h)}function y(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function eo(e,t,n,r,i,l){let o;let a=this,u=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),c};function c(p){return u>999||null===p||91===p||93===p&&!o||94===p&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):93===p?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(0,M.Ch)(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),s(p))}function s(t){return null===t||91===t||93===t||(0,M.Ch)(t)||u++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!(0,M.xz)(t)),92===t?p:s)}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,s):s(t)}}function ea(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),u(n))}function u(t){return t===o?(e.exit(l),a(o)):null===t?n(t):(0,M.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,j.f)(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||(0,M.Ch)(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?s:c)}function s(t){return t===o||92===t?(e.consume(t),c):c(t)}}function eu(e,t){let n;return function r(i){return(0,M.Ch)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,M.xz)(i)?(0,j.f)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var ec=n(36910);let es={tokenize:function(e,t,n){return function(t){return(0,M.z3)(t)?eu(e,r)(t):n(t)};function r(t){return ea(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,M.xz)(t)?(0,j.f)(e,l,"whitespace")(t):l(t)}function l(e){return null===e||(0,M.Ch)(e)?t(e):n(e)}},partial:!0},ep={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,j.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):(0,M.Ch)(n)?e.attempt(ed,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,M.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},ed={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,M.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,j.f)(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):(0,M.Ch)(e)?i(e):n(e)}},partial:!0},ef={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let o,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){o="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,M.xz)(n)?(0,j.f)(e,l,"lineSuffix")(n):l(n))}(t)):n(t)};function l(r){return null===r||(0,M.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},eh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ey=["pre","script","style","textarea"],em={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(G.w,t,n)}},partial:!0},eg={tokenize:function(e,t,n){let r=this;return function(t){return(0,M.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eC={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ek={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,l={tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,M.xz)(t)?(0,j.f)(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),(0,M.xz)(i)?(0,j.f)(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||(0,M.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},o=0,a=0;return function(t){return function(t){let l=i.events[i.events.length-1];return o=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),(0,M.xz)(i)?(0,j.f)(e,u,"whitespace")(i):u(i))}(t)}(t)};function u(l){return null===l||(0,M.Ch)(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(eC,s,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,M.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):(0,M.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,j.f)(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function c(t){return null===t||(0,M.Ch)(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,M.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function s(t){return e.attempt(l,h,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return o>0&&(0,M.xz)(t)?(0,j.f)(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||(0,M.Ch)(t)?e.check(eC,s,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,M.Ch)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var ev=n(8731);let eb={name:"characterReference",tokenize:function(e,t,n){let r,i;let l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=M.H$,c(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=M.AF,c):(e.enter("characterReferenceValue"),r=7,i=M.pY,c(t))}function c(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==M.H$||(0,ev.T)(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),c):n(a)}}},e_={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,M.sR)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ex={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,j.f)(e,t,"linePrefix")}}},eT={name:"labelEnd",tokenize:function(e,t,n){let r,i;let l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?s(t):(i=l.parser.defined.includes((0,ec.d)(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(eS,c,i?c:s)(t):91===t?e.attempt(eL,c,i?u:s)(t):i?c(t):s(t)}function u(t){return e.attempt(ew,c,s)(t)}function c(e){return t(e)}function s(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,l,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let u={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},s={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return l=[["enter",u,t],["enter",c,t]],l=(0,B.V)(l,e.slice(r+1,r+a+3)),l=(0,B.V)(l,[["enter",s,t]]),l=(0,B.V)(l,(0,J.C)(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),l=(0,B.V)(l,[["exit",s,t],e[i-2],e[i-1],["exit",c,t]]),l=(0,B.V)(l,e.slice(i+1)),l=(0,B.V)(l,[["exit",u,t]]),(0,B.d)(e,r,e.length,l),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},eS={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,M.z3)(t)?eu(e,i)(t):i(t)}function i(t){return 41===t?c(t):el(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return(0,M.z3)(t)?eu(e,a)(t):c(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?ea(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function u(t){return(0,M.z3)(t)?eu(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},eL={tokenize:function(e,t,n){let r=this;return function(t){return eo.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,ec.d)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},ew={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},eE={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:eT.resolveAll};var eF=n(20898);let eP={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=(0,eF.r)(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let u=e.exit("attentionSequence"),c=(0,eF.r)(a),s=!c||2===c&&l||r.includes(a),p=!l||2===l&&c||r.includes(i);return u._open=!!(42===n?s:s&&(l||!p)),u._close=!!(42===n?p:p&&(c||!s)),t(a)}(o)}},resolveAll:function(e,t){let n,r,i,l,o,a,u,c,s=-1;for(;++s<e.length;)if("enter"===e[s][0]&&"attentionSequence"===e[s][1].type&&e[s][1]._close){for(n=s;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[s][1]).charCodeAt(0)){if((e[n][1]._close||e[s][1]._open)&&(e[s][1].end.offset-e[s][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[s][1].end.offset-e[s][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[s][1].end.offset-e[s][1].start.offset>1?2:1;let p=Object.assign({},e[n][1].end),d=Object.assign({},e[s][1].start);eI(p,-a),eI(d,a),l={type:a>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[n][1].end)},o={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[s][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[s][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},l.start),e[s][1].start=Object.assign({},o.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=(0,B.V)(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=(0,B.V)(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=(0,B.V)(u,(0,J.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,s),t)),u=(0,B.V)(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[s][1].end.offset-e[s][1].start.offset?(c=2,u=(0,B.V)(u,[["enter",e[s][1],t],["exit",e[s][1],t]])):c=0,(0,B.d)(e,n-1,s-n+3,u),s=n+u.length-c-2;break}}for(s=-1;++s<e.length;)"attentionSequence"===e[s][1].type&&(e[s][1].type="data");return e}};function eI(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let eD={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:eT.resolveAll},eO={42:et,43:et,45:et,48:et,49:et,50:et,51:et,52:et,53:et,54:et,55:et,56:et,57:et,62:ei},eA={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),eo.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return(r=(0,ec.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return(0,M.z3)(t)?eu(e,a)(t):a(t)}function a(t){return el(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(es,c,c)(t)}function c(t){return(0,M.xz)(t)?(0,j.f)(e,s,"whitespace")(t):s(t)}function s(l){return null===l||(0,M.Ch)(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},eR={[-2]:ep,[-1]:ep,32:ep},ez={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||(0,M.z3)(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,M.Ch)(r)?(e.exit("atxHeading"),t(r)):(0,M.xz)(r)?(0,j.f)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,M.z3)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(i)}},resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},(0,B.d)(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:ee,45:[ef,ee],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,l,o,a;let u=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),s):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,u.interrupt?t:D):(0,M.jv)(o)?(e.consume(o),l=String.fromCharCode(o),h):n(o)}function s(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,o=0,d):(0,M.jv)(i)?(e.consume(i),r=4,u.interrupt?t:D):n(i)}function p(r){return 45===r?(e.consume(r),u.interrupt?t:D):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?u.interrupt?t:T:d:n(r)}function f(t){return(0,M.jv)(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||(0,M.z3)(o)){let a=47===o,c=l.toLowerCase();return!a&&!i&&ey.includes(c)?(r=1,u.interrupt?t(o):T(o)):eh.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),y):u.interrupt?t(o):T(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):i?function t(n){return(0,M.xz)(n)?(e.consume(n),t):_(n)}(o):m(o))}return 45===o||(0,M.H$)(o)?(e.consume(o),l+=String.fromCharCode(o),h):n(o)}function y(r){return 62===r?(e.consume(r),u.interrupt?t:T):n(r)}function m(t){return 47===t?(e.consume(t),_):58===t||95===t||(0,M.jv)(t)?(e.consume(t),g):(0,M.xz)(t)?(e.consume(t),m):_(t)}function g(t){return 45===t||46===t||58===t||95===t||(0,M.H$)(t)?(e.consume(t),g):C(t)}function C(t){return 61===t?(e.consume(t),k):(0,M.xz)(t)?(e.consume(t),C):m(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,v):(0,M.xz)(t)?(e.consume(t),k):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,M.z3)(n)?C(n):(e.consume(n),t)}(t)}function v(t){return t===a?(e.consume(t),a=null,b):null===t||(0,M.Ch)(t)?n(t):(e.consume(t),v)}function b(e){return 47===e||62===e||(0,M.xz)(e)?m(e):n(e)}function _(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||(0,M.Ch)(t)?T(t):(0,M.xz)(t)?(e.consume(t),x):n(t)}function T(t){return 45===t&&2===r?(e.consume(t),E):60===t&&1===r?(e.consume(t),F):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),D):93===t&&5===r?(e.consume(t),I):(0,M.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(em,A,S)(t)):null===t||(0,M.Ch)(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),T)}function S(t){return e.check(eg,L,A)(t)}function L(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w}function w(t){return null===t||(0,M.Ch)(t)?S(t):(e.enter("htmlFlowData"),T(t))}function E(t){return 45===t?(e.consume(t),D):T(t)}function F(t){return 47===t?(e.consume(t),l="",P):T(t)}function P(t){if(62===t){let n=l.toLowerCase();return ey.includes(n)?(e.consume(t),O):T(t)}return(0,M.jv)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),P):T(t)}function I(t){return 93===t?(e.consume(t),D):T(t)}function D(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),D):T(t)}function O(t){return null===t||(0,M.Ch)(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),O)}function A(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:ef,95:ee,96:ek,126:ek},ej={38:eb,92:e_},eM={[-5]:ex,[-4]:ex,[-3]:ex,33:eE,38:eb,42:eP,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,M.jv)(t)?(e.consume(t),l):a(t)}function l(t){return 43===t||45===t||46===t||(0,M.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,M.H$)(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,M.Av)(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),u):(0,M.n9)(t)?(e.consume(t),a):n(t)}function u(i){return(0,M.H$)(i)?function i(l){return 46===l?(e.consume(l),r=0,u):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||(0,M.H$)(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),v):63===t?(e.consume(t),C):(0,M.jv)(t)?(e.consume(t),_):n(t)}function u(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):(0,M.jv)(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function s(t){return null===t?n(t):45===t?(e.consume(t),p):(0,M.Ch)(t)?(l=s,P(t)):(e.consume(t),s)}function p(t){return 45===t?(e.consume(t),d):s(t)}function d(e){return 62===e?F(e):45===e?p(e):s(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),y):(0,M.Ch)(t)?(l=h,P(t)):(e.consume(t),h)}function y(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?F(t):93===t?(e.consume(t),m):h(t)}function g(t){return null===t||62===t?F(t):(0,M.Ch)(t)?(l=g,P(t)):(e.consume(t),g)}function C(t){return null===t?n(t):63===t?(e.consume(t),k):(0,M.Ch)(t)?(l=C,P(t)):(e.consume(t),C)}function k(e){return 62===e?F(e):C(e)}function v(t){return(0,M.jv)(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||(0,M.H$)(t)?(e.consume(t),b):function t(n){return(0,M.Ch)(n)?(l=t,P(n)):(0,M.xz)(n)?(e.consume(n),t):F(n)}(t)}function _(t){return 45===t||(0,M.H$)(t)?(e.consume(t),_):47===t||62===t||(0,M.z3)(t)?x(t):n(t)}function x(t){return 47===t?(e.consume(t),F):58===t||95===t||(0,M.jv)(t)?(e.consume(t),T):(0,M.Ch)(t)?(l=x,P(t)):(0,M.xz)(t)?(e.consume(t),x):F(t)}function T(t){return 45===t||46===t||58===t||95===t||(0,M.H$)(t)?(e.consume(t),T):function t(n){return 61===n?(e.consume(n),S):(0,M.Ch)(n)?(l=t,P(n)):(0,M.xz)(n)?(e.consume(n),t):x(n)}(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,L):(0,M.Ch)(t)?(l=S,P(t)):(0,M.xz)(t)?(e.consume(t),S):(e.consume(t),w)}function L(t){return t===r?(e.consume(t),r=void 0,E):null===t?n(t):(0,M.Ch)(t)?(l=L,P(t)):(e.consume(t),L)}function w(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,M.z3)(t)?x(t):(e.consume(t),w)}function E(e){return 47===e||62===e||(0,M.z3)(e)?x(e):n(e)}function F(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return(0,M.xz)(t)?(0,j.f)(e,D,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),l(t)}}}],91:eD,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,M.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e_],93:eT,95:eP,96:{name:"codeText",tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(u){return null===u?n(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),o):96===u?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(u)):(0,M.Ch)(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(u))}function a(t){return null===t||32===t||96===t||(0,M.Ch)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},eN={null:[eP,$]},eB={null:[42,95]},eY={null:[]},eV=/[\0\t\n\r]/g;var eG=n(69001);let eW={}.hasOwnProperty,eH=function(e,t,n){let i,l,o,u;return"string"!=typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(v),autolinkProtocol:d,autolinkEmail:d,atxHeading:l(g),blockQuote:l(function(){return{type:"blockquote",children:[]}}),characterEscape:d,characterReference:d,codeFenced:l(m),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(m,o),codeText:l(function(){return{type:"inlineCode",value:""}},o),codeTextData:d,data:d,codeFlowValue:d,definition:l(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(k,o),htmlFlowData:d,htmlText:l(k,o),htmlTextData:d,image:l(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:l(v),listItem:l(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){n.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),n.expectingFirstListItemValue=void 0)},listOrdered:l(b,function(){n.expectingFirstListItemValue=!0}),listUnordered:l(b),paragraph:l(function(){return{type:"paragraph",children:[]}}),reference:function(){n.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(g),strong:l(function(){return{type:"strong",children:[]}}),thematicBreak:l(function(){return{type:"thematicBreak"}})},exit:{atxHeading:c(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:c(),autolinkEmail:function(e){f.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){f.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:c(),characterEscapeValue:f,characterReferenceMarkerHexadecimal:y,characterReferenceMarkerNumeric:y,characterReferenceValue:function(e){let t;let r=this.sliceSerialize(e),i=n.characterReferenceType;i?(t=function(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}(r,"characterReferenceMarkerNumeric"===i?10:16),n.characterReferenceType=void 0):t=(0,ev.T)(r);let l=this.stack.pop();l.value+=t,l.position.end=eU(e.end)},codeFenced:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n.flowCodeInside=void 0}),codeFencedFence:function(){!n.flowCodeInside&&(this.buffer(),n.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:f,codeIndented:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:f,data:f,definition:c(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,ec.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:c(),hardBreakEscape:c(h),hardBreakTrailing:c(h),htmlFlow:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:f,htmlText:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:f,image:c(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(n.inReference=!0,"link"===r.type){let t=e.children;r.children=t}else r.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=(0,eG.v)(t),n.identifier=(0,ec.d)(t).toLowerCase()},lineEnding:function(e){let r=this.stack[this.stack.length-1];if(n.atHardBreak){r.children[r.children.length-1].position.end=eU(e.end),n.atHardBreak=void 0;return}!n.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(d.call(this,e),f.call(this,e))},link:c(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,ec.d)(this.sliceSerialize(e)).toLowerCase(),n.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){n.inReference=void 0},setextHeading:c(function(){n.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){n.setextHeadingSlurpLineEnding=!0},strong:c(),thematicBreak:c()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(eW.call(t,n)){if("canContainEols"===n){let r=t[n];r&&e[n].push(...r)}else if("transforms"===n){let r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let n={type:"root",children:[]},l={stack:[n],tokenStack:[],config:t,enter:u,exit:s,buffer:o,resume:p,setData:r,getData:i},a=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?a.push(c):c=function(e,t,n){let r,i,l,o,a=t-1,u=-1,c=!1;for(;++a<=n;){let t=e[a];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?u++:u--,o=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||o||u||l||(l=a),o=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(o=void 0),!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(a,0,["enter",r,t[2]]),a++,n++,l=void 0,o=!0)}}return e[t][1]._spread=c,n}(e,a.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];eW.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||e$).call(l,void 0,e[0])}for(n.position={start:eU(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eU(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)n=t.transforms[c](n)||n;return n};function r(e,t){n[e]=t}function i(e){return n[e]}function l(e,t){return function(n){u.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:eU(t.start)},e}function c(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||e$).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+a({start:e.start,end:e.end})+"): it’s not open");return n.position.end=eU(e.end),n}function p(){return A(this.stack.pop(),"boolean"!=typeof O.includeImageAlt||O.includeImageAlt,"boolean"!=typeof O.includeHtml||O.includeHtml)}function d(e){let t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:eU(e.start)},t.children.push(n)),this.stack.push(n)}function f(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=eU(e.end)}function h(){n.atHardBreak=!0}function y(e){var t;t=e.type,n.characterReferenceType=t}function m(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:void 0,children:[]}}function C(){return{type:"break"}}function k(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!function(e){let t,n,r,i,l,o,a;let u={},c=-1;for(;++c<e.length;){for(;(c in u);)c=u[c];if(t=e[c],c&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[c-1][1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(u,function(e,t){let n,r;let i=e[t][1],l=e[t][2],o=t-1,a=[],u=i._tokenizer||l.parser[i.contentType](i.start),c=u.events,s=[],p={},d=-1,f=i,h=0,y=0,m=[0];for(;f;){for(;e[++o][1]!==f;);a.push(o),!f._tokenizer&&(n=l.sliceStream(f),f.next||n.push(null),r&&u.defineSkip(f.start),f._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(n),f._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++d<c.length;)"exit"===c[d][0]&&"enter"===c[d-1][0]&&c[d][1].type===c[d-1][1].type&&c[d][1].start.line!==c[d][1].end.line&&(y=d+1,m.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(u.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),d=m.length;d--;){let t=c.slice(m[d],m[d+1]),n=a.pop();s.unshift([n,n+t.length-1]),(0,B.d)(e,n,2,t)}for(d=-1;++d<s.length;)p[h+s[d][0]]=h+s[d][1],h+=s[d][1]-s[d][0]-1;return p}(e,c)),c=u[c],a=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=e[r])[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(e[n][1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},e[n][1].start),(l=e.slice(n,c)).unshift(t),(0,B.d)(e,n,c-n+1,l))}}return!a}(e););return e}((function(e){let t={defined:[],lazy:{},constructs:(0,z.W)([r,...(e||{}).extensions||[]]),content:n(N),document:n(Y),flow:n(U),string:n(q),text:n(K)};return t;function n(e){return function(n){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},l=[],o=[],a=[],u={consume:function(e){(0,M.Ch)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=d(),c.events.push(["exit",t,c]),t},attempt:h(function(e,t){y(e,t.from)}),check:h(f),interrupt:h(f,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l;let o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(p(e),t)},now:d,defineSkip:function(e){i[e.line]=e.column,m()},write:function(e){return(o=(0,B.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),s=s(t)}else s=s(n)}}(),null!==o[o.length-1])?[]:(y(t,0),c.events=(0,J.C)(l,c.events,c),c.events)}},s=t.tokenize.call(c,u);return t.resolveAll&&l.push(t),c;function p(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function d(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:l}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:l}}function f(e,t){t.restore()}function h(e,t){return function(n,i,l){let o,s,p,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function h(e){return(o=e,s=0,0===e.length)?l:y(e[s])}function y(e){return function(n){return(f=function(){let e=d(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(a);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=l,m()},from:i}}(),p=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?C(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,g,C)(n)}}function g(t){return e(p,f),i}function C(e){return(f.restore(),++s<o.length)?y(o[s]):l}}}function y(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&(0,B.d)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(n).document().write((l=1,o="",u=!0,function(e,t,n){let r,a,c,s,p;let d=[];for(e=o+e.toString(t),c=0,o="",u&&(65279===e.charCodeAt(0)&&c++,u=void 0);c<e.length;){if(eV.lastIndex=c,s=(r=eV.exec(e))&&void 0!==r.index?r.index:e.length,p=e.charCodeAt(s),!r){o=e.slice(c);break}if(10===p&&c===s&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),c<s&&(d.push(e.slice(c,s)),l+=s-c),p){case 0:d.push(65533),l++;break;case 9:for(a=4*Math.ceil(l/4),d.push(-2);l++<a;)d.push(-1);break;case 10:d.push(-4),l=1;break;default:i=!0,l=1}c=s+1}return n&&(i&&d.push(-5),o&&d.push(o),d.push(null)),d})(e,t,!0))))};function eU(e){return{line:e.line,column:e.column,offset:e.offset}}function e$(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+a({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+a({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+a({start:t.start,end:t.end})+") is still open")}function eq(e){Object.assign(this,{Parser:t=>eH(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}function eK(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&(0,M.H$)(e.charCodeAt(n+1))&&(0,M.H$)(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}var eQ=n(98578);let eX=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),(0,eQ.S4)(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)},eZ=e0("start"),eJ=e0("end");function e0(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}let e1={}.hasOwnProperty;function e2(e){return String(e||"").toUpperCase()}function e9(e,t){let n;let r=String(t.identifier).toUpperCase(),i=eK(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);-1===l?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=l+1);let o=e.footnoteCounts[r],a={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function e3(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function e6(e){let t=e.spread;return null==t?e.children.length>1:t}function e4(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let e5={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:e9,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},e9(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e3(e,t);let r={src:eK(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:eK(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e3(e,t);let r={href:eK(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:eK(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=e6(n[r])}return t}(n):e6(t),l={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let u=r[r.length-1];u&&(i||"element"!==u.type||"p"!==u.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=eZ(t.children[1]),o=eJ(t.children[t.children.length-1]);l.line&&o.line&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,u=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),u.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(e4(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(e4(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:e7,yaml:e7,definition:e7,footnoteDefinition:e7};function e7(){return null}let e8={}.hasOwnProperty;function te(e,t){e.position&&(t.position={start:eZ(e),end:eJ(e)})}function tt(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tn(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return e8.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:tr(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(e8.call(n,"hProperties")||e8.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:tr(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function tr(e,t){let n=[];if("children"in t){let r=t.children,i=-1;for(;++i<r.length;){let l=tn(e,r[i],t);if(l){if(i&&"break"===r[i-1].type&&(Array.isArray(l)||"text"!==l.type||(l.value=l.value.replace(/^\s+/,"")),!Array.isArray(l)&&"element"===l.type)){let e=l.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(l)?n.push(...l):n.push(l)}}}return n}function ti(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tl(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...e5,...n.handlers},o.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return eX(e,"definition",e=>{let n=e2(e.identifier);n&&!e1.call(t,n)&&(t[n]=e)}),function(e){let n=e2(e);return n&&e1.call(t,n)?t[n]:null}}(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=te,o.applyData=tt,o.one=function(e,t){return tn(o,e,t)},o.all=function(e){return tr(o,e)},o.wrap=ti,o.augment=l,eX(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();e8.call(i,t)||(i[t]=e)}),o;function l(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:eZ(n),end:eJ(n)})}return t}function o(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),l(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),i=function(e){let t=[],n=-1;for(;++n<e.footnoteOrder.length;){let r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;let i=e.all(r),l=String(r.identifier).toUpperCase(),o=eK(l.toLowerCase()),a=0,u=[];for(;++a<=e.footnoteCounts[l];){let t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(t)}let c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){let e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);let s={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,s),t.push(s)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}var to=function(e,t){var n;return e&&"run"in e?(n,r,i)=>{e.run(tl(n,t),r,e=>{i(e)})}:(n=e||t,e=>tl(e,n))},ta=n(13980);class tu{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function tc(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new tu(n,r,t)}function ts(e){return e.toLowerCase()}tu.prototype.property={},tu.prototype.normal={},tu.prototype.space=null;class tp{constructor(e,t){this.property=e,this.attribute=t}}tp.prototype.space=null,tp.prototype.boolean=!1,tp.prototype.booleanish=!1,tp.prototype.overloadedBoolean=!1,tp.prototype.number=!1,tp.prototype.commaSeparated=!1,tp.prototype.spaceSeparated=!1,tp.prototype.commaOrSpaceSeparated=!1,tp.prototype.mustUseProperty=!1,tp.prototype.defined=!1;let td=0,tf=tv(),th=tv(),ty=tv(),tm=tv(),tg=tv(),tC=tv(),tk=tv();function tv(){return 2**++td}let tb=Object.keys(i);class t_ extends tp{constructor(e,t,n,r){var l,o;let a=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++a<tb.length;){let e=tb[a];l=tb[a],(o=(n&i[e])===i[e])&&(this[l]=o)}}}t_.prototype.defined=!0;let tx={}.hasOwnProperty;function tT(e){let t;let n={},r={};for(t in e.properties)if(tx.call(e.properties,t)){let i=e.properties[t],l=new t_(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(l.mustUseProperty=!0),n[t]=l,r[ts(t)]=t,r[ts(l.attribute)]=t}return new tu(n,r,e.space)}let tS=tT({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tL=tT({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tw(e,t){return t in e?e[t]:t}function tE(e,t){return tw(e,t.toLowerCase())}let tF=tT({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tE,properties:{xmlns:null,xmlnsXLink:null}}),tP=tT({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:th,ariaAutoComplete:null,ariaBusy:th,ariaChecked:th,ariaColCount:tm,ariaColIndex:tm,ariaColSpan:tm,ariaControls:tg,ariaCurrent:null,ariaDescribedBy:tg,ariaDetails:null,ariaDisabled:th,ariaDropEffect:tg,ariaErrorMessage:null,ariaExpanded:th,ariaFlowTo:tg,ariaGrabbed:th,ariaHasPopup:null,ariaHidden:th,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tg,ariaLevel:tm,ariaLive:null,ariaModal:th,ariaMultiLine:th,ariaMultiSelectable:th,ariaOrientation:null,ariaOwns:tg,ariaPlaceholder:null,ariaPosInSet:tm,ariaPressed:th,ariaReadOnly:th,ariaRelevant:null,ariaRequired:th,ariaRoleDescription:tg,ariaRowCount:tm,ariaRowIndex:tm,ariaRowSpan:tm,ariaSelected:th,ariaSetSize:tm,ariaSort:null,ariaValueMax:tm,ariaValueMin:tm,ariaValueNow:tm,ariaValueText:null,role:null}}),tI=tT({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tE,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tC,acceptCharset:tg,accessKey:tg,action:null,allow:null,allowFullScreen:tf,allowPaymentRequest:tf,allowUserMedia:tf,alt:null,as:null,async:tf,autoCapitalize:null,autoComplete:tg,autoFocus:tf,autoPlay:tf,capture:tf,charSet:null,checked:tf,cite:null,className:tg,cols:tm,colSpan:null,content:null,contentEditable:th,controls:tf,controlsList:tg,coords:tm|tC,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tf,defer:tf,dir:null,dirName:null,disabled:tf,download:ty,draggable:th,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tf,formTarget:null,headers:tg,height:tm,hidden:tf,high:tm,href:null,hrefLang:null,htmlFor:tg,httpEquiv:tg,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:tf,itemId:null,itemProp:tg,itemRef:tg,itemScope:tf,itemType:tg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tf,low:tm,manifest:null,max:null,maxLength:tm,media:null,method:null,min:null,minLength:tm,multiple:tf,muted:tf,name:null,nonce:null,noModule:tf,noValidate:tf,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tf,optimum:tm,pattern:null,ping:tg,placeholder:null,playsInline:tf,poster:null,preload:null,readOnly:tf,referrerPolicy:null,rel:tg,required:tf,reversed:tf,rows:tm,rowSpan:tm,sandbox:tg,scope:null,scoped:tf,seamless:tf,selected:tf,shape:null,size:tm,sizes:null,slot:null,span:tm,spellCheck:th,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tm,step:null,style:null,tabIndex:tm,target:null,title:null,translate:null,type:null,typeMustMatch:tf,useMap:null,value:th,width:tm,wrap:null,align:null,aLink:null,archive:tg,axis:null,background:null,bgColor:null,border:tm,borderColor:null,bottomMargin:tm,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tf,declare:tf,event:null,face:null,frame:null,frameBorder:null,hSpace:tm,leftMargin:tm,link:null,longDesc:null,lowSrc:null,marginHeight:tm,marginWidth:tm,noResize:tf,noHref:tf,noShade:tf,noWrap:tf,object:null,profile:null,prompt:null,rev:null,rightMargin:tm,rules:null,scheme:null,scrolling:th,standby:null,summary:null,text:null,topMargin:tm,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tm,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tf,disableRemotePlayback:tf,prefix:null,property:null,results:tm,security:null,unselectable:null}}),tD=tT({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:tw,properties:{about:tk,accentHeight:tm,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tm,amplitude:tm,arabicForm:null,ascent:tm,attributeName:null,attributeType:null,azimuth:tm,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tm,by:null,calcMode:null,capHeight:tm,className:tg,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tm,diffuseConstant:tm,direction:null,display:null,dur:null,divisor:tm,dominantBaseline:null,download:tf,dx:null,dy:null,edgeMode:null,editable:null,elevation:tm,enableBackground:null,end:null,event:null,exponent:tm,externalResourcesRequired:null,fill:null,fillOpacity:tm,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tC,g2:tC,glyphName:tC,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tm,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tm,horizOriginX:tm,horizOriginY:tm,id:null,ideographic:tm,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tm,k:tm,k1:tm,k2:tm,k3:tm,k4:tm,kernelMatrix:tk,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tm,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tm,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tm,overlineThickness:tm,paintOrder:null,panose1:null,path:null,pathLength:tm,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tm,pointsAtY:tm,pointsAtZ:tm,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tk,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tk,rev:tk,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tk,requiredFeatures:tk,requiredFonts:tk,requiredFormats:tk,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tm,specularExponent:tm,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tm,strikethroughThickness:tm,string:null,stroke:null,strokeDashArray:tk,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tm,strokeOpacity:tm,strokeWidth:null,style:null,surfaceScale:tm,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tk,tabIndex:tm,tableValues:null,target:null,targetX:tm,targetY:tm,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tk,to:null,transform:null,u1:null,u2:null,underlinePosition:tm,underlineThickness:tm,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tm,values:null,vAlphabetic:tm,vMathematical:tm,vectorEffect:null,vHanging:tm,vIdeographic:tm,version:null,vertAdvY:tm,vertOriginX:tm,vertOriginY:tm,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tm,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tO=tc([tL,tS,tF,tP,tI],"html"),tA=tc([tL,tS,tF,tP,tD],"svg");function tR(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{eX(t,"element",(t,n,r)=>{let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,r)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var tz=n(48570);let tj=/^data[-\w.:]+$/i,tM=/-[a-z]/g,tN=/[A-Z]/g;function tB(e){return"-"+e.toLowerCase()}function tY(e){return e.charAt(1).toUpperCase()}let tV={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var tG=n(85653);let tW=["http","https","mailto","tel"];function tH(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++i<tW.length;){let e=tW[i];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return -1!==(i=t.indexOf("?"))&&r>i||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}let tU={}.hasOwnProperty,t$=new Set(["table","thead","tbody","tfoot","tr"]);function tq(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function tK(e,t){return t.toUpperCase()}let tQ={}.hasOwnProperty,tX={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function tZ(e){for(let t in tX)if(tQ.call(tX,t)&&tQ.call(e,t)){let e=tX[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete tX[t]}let t=T().use(eq).use(e.remarkPlugins||[]).use(to,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(tR,e),n=new m;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let i=l.createElement(l.Fragment,{},function e(t,n){let r;let i=[],o=-1;for(;++o<n.children.length;)"element"===(r=n.children[o]).type?i.push(function(t,n,r,i){let o;let a=t.options,u=void 0===a.transformLinkUri?tH:a.transformLinkUri,c=t.schema,s=n.tagName,p={},d=c;if("html"===c.space&&"svg"===s&&(d=tA,t.schema=d),n.properties)for(o in n.properties)tU.call(n.properties,o)&&function(e,t,n,r){let i=function(e,t){let n=ts(t),r=t,i=tp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&tj.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tM,tY);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tM.test(e)){let n=e.replace(tN,tB);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=t_}return new i(r,t)}(r.schema,t),l=n;null!=l&&l==l&&(Array.isArray(l)&&(l=i.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(l):l.join(" ").trim()),"style"===i.property&&"string"==typeof l&&(l=function(e){let t={};try{tG(e,function(e,n){t[("-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e).replace(/-([a-z])/g,tK)]=n})}catch{}return t}(l)),i.space&&i.property?e[tU.call(tV,i.property)?tV[i.property]:i.property]=l:i.attribute&&(e[i.attribute]=l))}(p,o,n.properties[o],t);("ol"===s||"ul"===s)&&t.listDepth++;let f=e(t,n);("ol"===s||"ul"===s)&&t.listDepth--,t.schema=c;let h=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},y=a.components&&tU.call(a.components,s)?a.components[s]:s,m="string"==typeof y||y===l.Fragment;if(!tz.isValidElementType(y))throw TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(p.key=r,"a"===s&&a.linkTarget&&(p.target="function"==typeof a.linkTarget?a.linkTarget(String(p.href||""),n.children,"string"==typeof p.title?p.title:null):a.linkTarget),"a"===s&&u&&(p.href=u(String(p.href||""),n.children,"string"==typeof p.title?p.title:null)),m||"code"!==s||"element"!==i.type||"pre"===i.tagName||(p.inline=!0),m||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(p.level=Number.parseInt(s.charAt(1),10)),"img"===s&&a.transformImageUri&&(p.src=a.transformImageUri(String(p.src||""),String(p.alt||""),"string"==typeof p.title?p.title:null)),!m&&"li"===s&&"element"===i.type){let e=function(e){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(n);p.checked=e&&e.properties?!!e.properties.checked:null,p.index=tq(i,n),p.ordered="ol"===i.tagName}return m||"ol"!==s&&"ul"!==s||(p.ordered="ol"===s,p.depth=t.listDepth),"td"!==s&&"th"!==s||(p.align&&(p.style||(p.style={}),p.style.textAlign=p.align,delete p.align),m||(p.isHeader="th"===s)),m||"tr"!==s||"element"!==i.type||(p.isHeader="thead"===i.tagName),a.sourcePos&&(p["data-sourcepos"]=[h.start.line,":",h.start.column,"-",h.end.line,":",h.end.column].map(String).join("")),!m&&a.rawSourcePos&&(p.sourcePosition=n.position),!m&&a.includeElementIndex&&(p.index=tq(i,n),p.siblingCount=tq(i)),m||(p.node=n),f.length>0?l.createElement(y,p,f):l.createElement(y,p)}(t,r,o,n)):"text"===r.type?"element"===n.type&&t$.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||i.push(r.value):"raw"!==r.type||t.options.skipHtml||i.push(r.value);return i}({options:e,schema:tO,listDepth:0},r));return e.className&&(i=l.createElement("div",{className:e.className},i)),i}tZ.propTypes={children:ta.string,className:ta.string,allowElement:ta.func,allowedElements:ta.arrayOf(ta.string),disallowedElements:ta.arrayOf(ta.string),unwrapDisallowed:ta.bool,remarkPlugins:ta.arrayOf(ta.oneOfType([ta.object,ta.func,ta.arrayOf(ta.oneOfType([ta.bool,ta.string,ta.object,ta.func,ta.arrayOf(ta.any)]))])),rehypePlugins:ta.arrayOf(ta.oneOfType([ta.object,ta.func,ta.arrayOf(ta.oneOfType([ta.bool,ta.string,ta.object,ta.func,ta.arrayOf(ta.any)]))])),sourcePos:ta.bool,rawSourcePos:ta.bool,skipHtml:ta.bool,includeElementIndex:ta.bool,transformLinkUri:ta.oneOfType([ta.func,ta.bool]),linkTarget:ta.oneOfType([ta.func,ta.string]),transformImageUri:ta.func,components:ta.object}},88241:function(e,t,n){"use strict";n.d(t,{Z:function(){return ez}});var r=n(87842),i=n(51748);let l={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},o={tokenize:function(e,t,n){let r,l,o;return a;function a(t){return 46===t||95===t?e.check(u,s,c)(t):null===t||(0,i.z3)(t)||(0,i.B8)(t)||45!==t&&(0,i.Xh)(t)?s(t):(o=!0,e.consume(t),a)}function c(t){return 95===t?r=!0:(l=r,r=void 0),e.consume(t),a}function s(e){return l||r||!o?n(e):t(e)}},partial:!0},a={tokenize:function(e,t){let n=0,r=0;return l;function l(a){return 40===a?(n++,e.consume(a),l):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(u,t,o)(a):null===a||(0,i.z3)(a)||(0,i.B8)(a)?t(a):(e.consume(a),l)}function o(t){return 41===t&&r++,e.consume(t),l}},partial:!0},u={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),l):60===a||null===a||(0,i.z3)(a)||(0,i.B8)(a)?t(a):n(a)}function l(e){return null===e||40===e||91===e||(0,i.z3)(e)||(0,i.B8)(e)?t(e):r(e)}function o(t){return(0,i.jv)(t)?function t(l){return 59===l?(e.consume(l),r):(0,i.jv)(l)?(e.consume(l),t):n(l)}(t):n(t)}},partial:!0},c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,i.H$)(e)?n(e):t(e)}},partial:!0},s={tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!m.call(r,r.previous)||v(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(l,e.attempt(o,e.attempt(a,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:m},p={tokenize:function(e,t,n){let r=this,l="",u=!1;return function(t){return(72===t||104===t)&&g.call(r,r.previous)&&!v(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(t),e.consume(t),c):n(t)};function c(t){if((0,i.jv)(t)&&l.length<5)return l+=String.fromCodePoint(t),e.consume(t),c;if(58===t){let n=l.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),u)?p:(u=!0,s):n(t)}function p(t){return null===t||(0,i.Av)(t)||(0,i.z3)(t)||(0,i.B8)(t)||(0,i.Xh)(t)?n(t):e.attempt(o,e.attempt(a,d),n)(t)}function d(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:g},d={tokenize:function(e,t,n){let r,l;let o=this;return function(t){return!k(t)||!C.call(o,o.previous)||v(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return k(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(c,s,u)(t):45===t||95===t||(0,i.H$)(t)?(l=!0,e.consume(t),a):s(t)}function u(t){return e.consume(t),r=!0,a}function s(a){return l&&r&&(0,i.jv)(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:C},f={},h={text:f},y=48;for(;y<123;)f[y]=d,58==++y?y=65:91===y&&(y=97);function m(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,i.z3)(e)}function g(e){return!(0,i.jv)(e)}function C(e){return!(47===e||k(e))}function k(e){return 43===e||45===e||46===e||95===e||(0,i.H$)(e)}function v(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}f[43]=d,f[45]=d,f[46]=d,f[95]=d,f[72]=[d,p],f[104]=[d,p],f[87]=[d,s],f[119]=[d,s];var b=n(8466),_=n(72473),x=n(36910);let T={tokenize:function(e,t,n){let r=this;return(0,_.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function S(e,t,n){let r;let i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=(0,x.d)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function L(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function w(e,t,n){let r;let l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),u};function u(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||93===u&&!r||null===u||91===u||(0,i.z3)(u))return n(u);if(93===u){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,x.d)(l.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return(0,i.z3)(u)||(r=!0),a++,e.consume(u),92===u?s:c}function s(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function E(e,t,n){let r,l;let o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),u=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",s):n(t)}function s(t){if(u>999||93===t&&!l||null===t||91===t||(0,i.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,x.d)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,i.z3)(t)||(l=!0),u++,e.consume(t),92===t?p:s}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,s):s(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),(0,_.f)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function F(e,t,n){return e.check(b.w,t,e.attempt(T,t,n))}function P(e){e.exit("gfmFootnoteDefinition")}var I=n(98391),D=n(20898),O=n(27828);class A{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort((e,t)=>e[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let R={flow:{null:{tokenize:function(e,t,n){let r;let l=this,o=0,a=0;return function(e){let t=l.events.length-1;for(;t>-1;){let e=l.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?l.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?k:u;return i===k&&l.parser.lazy[l.now().line]?n(e):i(e)};function u(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,a+=1),c(t)}function c(t){return null===t?n(t):(0,i.Ch)(t)?a>1?(a=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,i.xz)(t)?(0,_.f)(e,c,"whitespace")(t):(a+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),s(t))}function s(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?p:s)}function p(t){return 92===t||124===t?(e.consume(t),s):s(t)}function d(t){return(l.interrupt=!1,l.parser.lazy[l.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,i.xz)(t))?(0,_.f)(e,f,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?y(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return(0,i.xz)(t)?(0,_.f)(e,y,"whitespace")(t):y(t)}function y(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||(0,i.Ch)(t)?C(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return(0,i.xz)(t)?(0,_.f)(e,C,"whitespace")(t):C(t)}function C(l){return 124===l?f(l):null===l||(0,i.Ch)(l)?r&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(l)):n(l):n(l)}function k(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||(0,i.Ch)(n)?(e.exit("tableRow"),t(n)):(0,i.xz)(n)?(0,_.f)(e,v,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?x:b)}function x(t){return 92===t||124===t?(e.consume(t),b):b(t)}},resolveAll:function(e,t){let n,r,i,l=-1,o=!0,a=0,u=[0,0,0,0],c=[0,0,0,0],s=!1,p=0,d=new A;for(;++l<e.length;){let f=e[l],h=f[1];"enter"===f[0]?"tableHead"===h.type?(s=!1,0!==p&&(j(d,t,p,n,r),r=void 0,p=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,u=[0,0,0,0],c=[0,l+1,0,0],s&&(s=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===c[2]&&(0!==u[1]&&(c[0]=c[1],i=z(d,t,u,a,void 0,i),u=[0,0,0,0]),c[2]=l)):"tableCellDivider"===h.type&&(o?o=!1:(0!==u[1]&&(c[0]=c[1],i=z(d,t,u,a,void 0,i)),c=[(u=c)[1],l,0,0])):"tableHead"===h.type?(s=!0,p=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(p=l,0!==u[1]?(c[0]=c[1],i=z(d,t,u,a,l,i)):0!==c[1]&&(i=z(d,t,c,a,l,i)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(c[3]=l)}for(0!==p&&j(d,t,p,n,r),d.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}}}};function z(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},M(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=M(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=M(t.events,n[2]),l=M(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},M(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function j(e,t,n,r,i){let l=[],o=M(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function M(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let N={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),l):n(t)};function l(t){return(0,i.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,i.Ch)(r)?t(r):(0,i.xz)(r)?e.check({tokenize:B},t,n)(r):n(r)}}}}};function B(e,t,n){return(0,_.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}function Y(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}var V=n(98578),G=n(27689);let W={}.hasOwnProperty,H=function(e,t,n,r){let i,l;"string"==typeof t||t instanceof RegExp?(l=[[t,n]],i=r):(l=t,i=n),i||(i={});let o=(0,G.O)(i.ignore||[]),a=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([U(e[n][0]),$(e[n][1])])}else{let n;for(n in e)W.call(e,n)&&t.push([U(n),$(e[n])])}return t}(l),u=-1;for(;++u<a.length;)(0,V.S4)(e,"text",c);return e;function c(e,t){let n,r=-1;for(;++r<t.length;){let e=t[r];if(o(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=a[u][0],i=a[u][1],l=0,o=n.children.indexOf(e),c=!1,s=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){let n=p.index,o={index:p.index,input:p.input,stack:[...t,e]},a=i(...p,o);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1!==a&&(l!==n&&s.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(a)?s.push(...a):a&&s.push(a),l=n+p[0].length,c=!0),!r.global)break;p=r.exec(e.value)}return c?(l<e.value.length&&s.push({type:"text",value:e.value.slice(l)}),n.children.splice(o,1,...s)):s=[e],o+s.length}(e,t)}};function U(e){return"string"==typeof e?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function $(e){return"function"==typeof e?e:()=>e}let q="phrasing",K=["autolink","link","image","label"],Q={transforms:[function(e){H(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,J],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ee]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Z,literalAutolinkHttp:Z,literalAutolinkWww:Z},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},X={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:q,notInConstruct:K},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:q,notInConstruct:K},{character:":",before:"[ps]",after:"\\/",inConstruct:q,notInConstruct:K}]};function Z(e){this.config.enter.autolinkProtocol.call(this,e)}function J(e,t,n,r,i){let l="";if(!et(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=Y(e,"("),l=Y(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function ee(e,t,n,r){return!(!et(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function et(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.B8)(n)||(0,i.Xh)(n))&&(!t||47!==n)}var en=n(69001);function er(e){return e.label||!e.identifier?e.label||"":(0,en.v)(e.identifier)}let ei=/\r?\n|\r/g;function el(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function eo(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ea(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),i=[],l=[],o={},a=-1;for(;++a<e.unsafe.length;){var u;let t;let n=e.unsafe[a];if(!eo(u=e.stack,n.inConstruct,!0)||eo(u,n.notInConstruct,!1))continue;let l=el(n);for(;t=l.exec(r);){let e="before"in n||!!n.atBreak,r="after"in n,l=t.index+(e?t[1].length:0);i.includes(l)?(o[l].before&&!e&&(o[l].before=!1),o[l].after&&!r&&(o[l].after=!1)):(i.push(l),o[l]={before:e,after:r})}}i.sort(eu);let c=n.before?n.before.length:0,s=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){let e=i[a];!(e<c)&&!(e>=s)&&(!(e+1<s)||i[a+1]!==e+1||!o[e].after||o[e+1].before||o[e+1].after)&&(i[a-1]!==e-1||!o[e].before||o[e-1].before||o[e-1].after)&&(c!==e&&l.push(ec(r.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(l.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),c++):l.push("\\"))}return l.push(ec(r.slice(c,s),n.after)),l.join("")}function eu(e,t){return e-t}function ec(e,t){let n;let r=/\\(?=[!-/:-@[-`{-~])/g,i=[],l=[],o=e+t,a=-1,u=0;for(;n=r.exec(o);)i.push(n.index);for(;++a<i.length;)u!==i[a]&&l.push(e.slice(u,i[a])),l.push("\\"),u=i[a];return l.push(e.slice(u)),l.join("")}function es(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,l=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,l=1===n.length?l+o.length:1+o.length+r,t},current:function(){return{now:{line:i,column:l},lineShift:r}},shift:function(e){r+=e}}}function ep(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ed(){this.buffer()}function ef(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,x.d)(this.sliceSerialize(e)).toLowerCase()}function eh(e){this.exit(e)}function ey(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function em(){this.buffer()}function eg(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,x.d)(this.sliceSerialize(e)).toLowerCase()}function eC(e){this.exit(e)}function ek(e,t,n,r){let i=es(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(ea(n,er(e),{...i.current(),before:l,after:"]"})),a(),o(),l+=i.move("]")}function ev(e,t,n,r){let i=es(r),l=i.move("[^"),o=n.enter("footnoteDefinition"),a=n.enter("label");return l+=i.move(ea(n,er(e),{...i.current(),before:l,after:"]"})),a(),l+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),l+=i.move(function(e,t){let n;let r=[],i=0,l=0;for(;n=ei.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,l++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,l,!e))}}(function(e,t,n){let r=t.indexStack,i=e.children||[],l=t.createTracker(n),o=[],a=-1;for(r.push(-1);++a<i.length;){let n=i[a];r[r.length-1]=a,o.push(l.move(t.handle(n,e,t,{before:"\n",after:"\n",...l.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&o.push(l.move(function(e,t,n,r){let i=r.join.length;for(;i--;){let l=r.join[i](e,t,n,r);if(!0===l||1===l)break;if("number"==typeof l)return"\n".repeat(1+l);if(!1===l)return"\n\n<!---->\n\n"}return"\n\n"}(n,i[a+1],e,t)))}return r.pop(),o.join("")}(e,n,i.current()),eb)),o(),l}function eb(e,t,n){return 0===t?e:(n?"":" ")+e}function e_(e,t,n){let r=t.indexStack,i=e.children||[],l=[],o=-1,a=n.before;r.push(-1);let u=t.createTracker(n);for(;++o<i.length;){let c;let s=i[o];if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),c=n?n(i[o+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else c=n.after;l.length>0&&("\r"===a||"\n"===a)&&"html"===s.type&&(l[l.length-1]=l[l.length-1].replace(/(\r?\n|\r)$/," "),a=" ",(u=t.createTracker(n)).move(l.join(""))),l.push(u.move(t.handle(s,e,t,{...u.current(),before:a,after:c}))),a=l[l.length-1].slice(-1)}return r.pop(),l.join("")}ek.peek=function(){return"["},eS.peek=function(){return"~"};let ex={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},eT={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:eS}};function eS(e,t,n,r){let i=es(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=e_(e,n,{...i.current(),before:o,after:"~"})+i.move("~~"),l(),o}function eL(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e;let t=n.unsafe[l],i=el(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function ew(e){return e.length}function eE(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}eL.peek=function(){return"`"};let eF={enter:{table:function(e){let t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:eI,tableHeader:eI,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,eD)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:eP,tableHeader:eP,tableRow:eP}};function eP(e){this.exit(e)}function eI(e){this.enter({type:"tableCell",children:[]},e)}function eD(e,t){return"|"===t?t:e}let eO={exit:{taskListCheckValueChecked:eR,taskListCheckValueUnchecked:eR,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},eA={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=es(r);l&&a.move(o);let u=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return u(),c}(e,t,n,{...r,...a.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),u}}};function eR(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function ez(e={}){let t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",(0,r.W)([h,{document:{91:{tokenize:E,continuation:{tokenize:F},exit:P}},text:{91:{tokenize:w},93:{add:"after",tokenize:S,resolveTo:L}}},function(e){let t=(e||{}).singleTilde,n={tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let u=(0,D.r)(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let c=e.exit("strikethroughSequenceTemporary"),s=(0,D.r)(a);return c._open=!s||2===s&&!!u,c._close=!u||2===u&&!!s,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&(0,I.d)(o,o.length,0,(0,O.C)(a,e.slice(r+1,n),t)),(0,I.d)(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,I.d)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(e),R,N])),n("fromMarkdownExtensions",[Q,{enter:{gfmFootnoteDefinition:ep,gfmFootnoteDefinitionLabelString:ed,gfmFootnoteCall:ey,gfmFootnoteCallString:em},exit:{gfmFootnoteDefinition:eh,gfmFootnoteDefinitionLabelString:ef,gfmFootnoteCall:eC,gfmFootnoteCallString:eg}},ex,eF,eO]),n("toMarkdownExtensions",{extensions:[X,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ev,footnoteReference:ek}},eT,function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=u(r[i],t,n);return o(),l}(e,n,r),e.align)},tableRow:function(e,t,n,r){let i=a([u(e,n,r)]);return i.slice(0,i.indexOf("\n"))},tableCell:o,inlineCode:function(e,t,n){let r=eL(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),a=e_(e,n,{...r,before:l,after:l});return o(),i(),a}function a(e,t){return function(e,t={}){let n=(t.align||[]).concat(),r=t.stringLength||ew,i=[],l=[],o=[],a=[],u=0,c=-1;for(;++c<e.length;){let n=[],i=[],p=-1;for(e[c].length>u&&(u=e[c].length);++p<e[c].length;){var s;let l=null==(s=e[c][p])?"":String(s);if(!1!==t.alignDelimiters){let e=r(l);i[p]=e,(void 0===a[p]||e>a[p])&&(a[p]=e)}n.push(l)}l[c]=n,o[c]=i}let p=-1;if("object"==typeof n&&"length"in n)for(;++p<u;)i[p]=eE(n[p]);else{let e=eE(n);for(;++p<u;)i[p]=e}p=-1;let d=[],f=[];for(;++p<u;){let e=i[p],n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let l=!1===t.alignDelimiters?1:Math.max(1,a[p]-n.length-r.length),o=n+"-".repeat(l)+r;!1!==t.alignDelimiters&&((l=n.length+l+r.length)>a[p]&&(a[p]=l),f[p]=l),d[p]=o}l.splice(1,0,d),o.splice(1,0,f),c=-1;let h=[];for(;++c<l.length;){let e=l[c],n=o[c];p=-1;let r=[];for(;++p<u;){let l=e[p]||"",o="",c="";if(!1!==t.alignDelimiters){let e=a[p]-(n[p]||0),t=i[p];114===t?o=" ".repeat(e):99===t?e%2?(o=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):c=o=" ".repeat(e/2):c=" ".repeat(e)}!1===t.delimiterStart||p||r.push("|"),!1!==t.padding&&!(!1===t.alignDelimiters&&""===l)&&(!1!==t.delimiterStart||p)&&r.push(" "),!1!==t.alignDelimiters&&r.push(o),r.push(l),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),(!1!==t.delimiterEnd||p!==u-1)&&r.push("|")}h.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return a(),l}}(e),eA]})}},27689:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return l;if("string"==typeof e)return i(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):i(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("function"==typeof e)return i(e);throw Error("Expected function, string, or object as test")};function i(e){return function(t,...n){return!!(t&&"object"==typeof t&&"type"in t&&e.call(this,t,...n))}}function l(){return!0}},98578:function(e,t,n){"use strict";n.d(t,{S4:function(){return i}});var r=n(27689);let i=function(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null);let l=(0,r.O)(t),o=i?-1:1;(function e(r,a,u){let c=r&&"object"==typeof r?r:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(s,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return s;function s(){var c;let s,p,d,f=[];if((!t||l(r,a,u[u.length-1]||null))&&!1===(f=Array.isArray(c=n(r,u))?c:"number"==typeof c?[!0,c]:[c])[0])return f;if(r.children&&"skip"!==f[0])for(p=(i?r.children.length:-1)+o,d=u.concat(r);p>-1&&p<r.children.length;){if(!1===(s=e(r.children[p],p,d)())[0])return s;p="number"==typeof s[1]?s[1]:p+o}return f}})(e,void 0,[])()}}}]);
|