isorite 0.15.0 → 0.16.0

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.
Files changed (35) hide show
  1. package/dist/main.js +416 -61
  2. package/guide/out-of-the-base/web-and-code-links.md +3 -1
  3. package/package.json +1 -1
  4. package/web/_app/immutable/assets/0.BEFtmzIh.css +1 -0
  5. package/web/_app/immutable/assets/4.LR47AJKA.css +1 -0
  6. package/web/_app/immutable/assets/NoteList.C2GYAaLW.css +1 -0
  7. package/web/_app/immutable/chunks/BHORylQC.js +1 -0
  8. package/web/_app/immutable/chunks/{LbnMg2Kc.js → BMijTvgG.js} +1 -1
  9. package/web/_app/immutable/chunks/{Djo-ijeo.js → BtYMl4bD.js} +1 -1
  10. package/web/_app/immutable/chunks/{BsY4iMci.js → C8FxuPry.js} +1 -1
  11. package/web/_app/immutable/chunks/CA-rzUq8.js +524 -0
  12. package/web/_app/immutable/chunks/{D1MhxXyn.js → CTuuQ66F.js} +1 -1
  13. package/web/_app/immutable/chunks/{D4EpFhYZ.js → CglDFp51.js} +1 -1
  14. package/web/_app/immutable/chunks/{B_x6_Y3m.js → D9uNsgxP.js} +1 -1
  15. package/web/_app/immutable/chunks/{wD7RSG2d.js → Qej0SEux.js} +1 -1
  16. package/web/_app/immutable/chunks/{B9TKPEJD.js → TmxIGCN3.js} +1 -1
  17. package/web/_app/immutable/chunks/{BDJlNL-I.js → Wv-ICQRy.js} +3 -3
  18. package/web/_app/immutable/entry/{app.Av5W3V8v.js → app.B9TPZNFw.js} +2 -2
  19. package/web/_app/immutable/entry/start.WU9HKeyT.js +1 -0
  20. package/web/_app/immutable/nodes/{0.BTVYyqUm.js → 0.C9NFEqJd.js} +2 -2
  21. package/web/_app/immutable/nodes/{1.DR-b7PMP.js → 1.B5PJwWOG.js} +1 -1
  22. package/web/_app/immutable/nodes/{2.BePyTqoa.js → 2.DRtC7zjs.js} +1 -1
  23. package/web/_app/immutable/nodes/{3.D2rfIXQP.js → 3.EEMisvUL.js} +1 -1
  24. package/web/_app/immutable/nodes/4.DthmsFQC.js +19 -0
  25. package/web/_app/immutable/nodes/5.CEu0DlpQ.js +1 -0
  26. package/web/_app/version.json +1 -1
  27. package/web/index.html +14 -14
  28. package/web/_app/immutable/assets/0.CtWz9d2A.css +0 -1
  29. package/web/_app/immutable/assets/4.fOHsAKBF.css +0 -1
  30. package/web/_app/immutable/assets/NoteList.E6jC-AtZ.css +0 -1
  31. package/web/_app/immutable/chunks/B7Bf3hc7.js +0 -1
  32. package/web/_app/immutable/chunks/Dx_7xlS4.js +0 -523
  33. package/web/_app/immutable/entry/start.CbpxCvWi.js +0 -1
  34. package/web/_app/immutable/nodes/4.7tuUcODS.js +0 -15
  35. package/web/_app/immutable/nodes/5.Cs9hcGU9.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as e,_t as t,nt as n,rt as r,tt as i}from"./AnnzTlE8.js";import{s as a,t as o}from"./LbnMg2Kc.js";var s=Symbol.for(`yaml.alias`),c=Symbol.for(`yaml.document`),l=Symbol.for(`yaml.map`),u=Symbol.for(`yaml.pair`),d=Symbol.for(`yaml.scalar`),f=Symbol.for(`yaml.seq`),p=Symbol.for(`yaml.node.type`),m=e=>!!e&&typeof e==`object`&&e[p]===s,h=e=>!!e&&typeof e==`object`&&e[p]===c,g=e=>!!e&&typeof e==`object`&&e[p]===l,_=e=>!!e&&typeof e==`object`&&e[p]===u,v=e=>!!e&&typeof e==`object`&&e[p]===d,y=e=>!!e&&typeof e==`object`&&e[p]===f;function b(e){if(e&&typeof e==`object`)switch(e[p]){case l:case f:return!0}return!1}function x(e){if(e&&typeof e==`object`)switch(e[p]){case s:case l:case d:case f:return!0}return!1}var S=e=>(v(e)||b(e))&&!!e.anchor,C=Symbol(`break visit`),ee=Symbol(`skip children`),w=Symbol(`remove node`);function T(e,t){let n=ne(t);h(e)?te(null,e.contents,n,Object.freeze([e]))===w&&(e.contents=null):te(null,e,n,Object.freeze([]))}T.BREAK=C,T.SKIP=ee,T.REMOVE=w;function te(e,t,n,r){let i=re(e,t,n,r);if(x(i)||_(i))return ie(e,r,i),te(e,i,n,r);if(typeof i!=`symbol`){if(b(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=te(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===C)return C;else i===w&&(t.items.splice(e,1),--e)}}else if(_(t)){r=Object.freeze(r.concat(t));let e=te(`key`,t.key,n,r);if(e===C)return C;e===w&&(t.key=null);let i=te(`value`,t.value,n,r);if(i===C)return C;i===w&&(t.value=null)}}return i}function ne(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function re(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(g(t))return n.Map?.(e,t,r);if(y(t))return n.Seq?.(e,t,r);if(_(t))return n.Pair?.(e,t,r);if(v(t))return n.Scalar?.(e,t,r);if(m(t))return n.Alias?.(e,t,r)}function ie(e,t,n){let r=t[t.length-1];if(b(r))r.items[e]=n;else if(_(r))e===`key`?r.key=n:r.value=n;else if(h(r))r.contents=n;else{let e=m(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var ae={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},oe=e=>e.replace(/[!,[\]{}]/g,e=>ae[e]),se=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+oe(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&x(e.contents)){let t={};T(e.contents,(e,n)=>{x(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
1
+ import{V as e,_t as t,nt as n,rt as r,tt as i}from"./AnnzTlE8.js";import{s as a,t as o}from"./BMijTvgG.js";var s=Symbol.for(`yaml.alias`),c=Symbol.for(`yaml.document`),l=Symbol.for(`yaml.map`),u=Symbol.for(`yaml.pair`),d=Symbol.for(`yaml.scalar`),f=Symbol.for(`yaml.seq`),p=Symbol.for(`yaml.node.type`),m=e=>!!e&&typeof e==`object`&&e[p]===s,h=e=>!!e&&typeof e==`object`&&e[p]===c,g=e=>!!e&&typeof e==`object`&&e[p]===l,_=e=>!!e&&typeof e==`object`&&e[p]===u,v=e=>!!e&&typeof e==`object`&&e[p]===d,y=e=>!!e&&typeof e==`object`&&e[p]===f;function b(e){if(e&&typeof e==`object`)switch(e[p]){case l:case f:return!0}return!1}function x(e){if(e&&typeof e==`object`)switch(e[p]){case s:case l:case d:case f:return!0}return!1}var S=e=>(v(e)||b(e))&&!!e.anchor,C=Symbol(`break visit`),ee=Symbol(`skip children`),w=Symbol(`remove node`);function T(e,t){let n=ne(t);h(e)?te(null,e.contents,n,Object.freeze([e]))===w&&(e.contents=null):te(null,e,n,Object.freeze([]))}T.BREAK=C,T.SKIP=ee,T.REMOVE=w;function te(e,t,n,r){let i=re(e,t,n,r);if(x(i)||_(i))return ie(e,r,i),te(e,i,n,r);if(typeof i!=`symbol`){if(b(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=te(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===C)return C;else i===w&&(t.items.splice(e,1),--e)}}else if(_(t)){r=Object.freeze(r.concat(t));let e=te(`key`,t.key,n,r);if(e===C)return C;e===w&&(t.key=null);let i=te(`value`,t.value,n,r);if(i===C)return C;i===w&&(t.value=null)}}return i}function ne(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function re(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(g(t))return n.Map?.(e,t,r);if(y(t))return n.Seq?.(e,t,r);if(_(t))return n.Pair?.(e,t,r);if(v(t))return n.Scalar?.(e,t,r);if(m(t))return n.Alias?.(e,t,r)}function ie(e,t,n){let r=t[t.length-1];if(b(r))r.items[e]=n;else if(_(r))e===`key`?r.key=n:r.value=n;else if(h(r))r.contents=n;else{let e=m(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var ae={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},oe=e=>e.replace(/[!,[\]{}]/g,e=>ae[e]),se=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+oe(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&x(e.contents)){let t={};T(e.contents,(e,n)=>{x(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
2
2
  `)}};se.defaultYaml={explicit:!1,version:`1.2`},se.defaultTags={"!!":`tag:yaml.org,2002:`};function ce(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function le(e){let t=new Set;return T(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ue(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function de(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=le(e);let a=ue(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(v(t.node)||b(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function fe(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=fe(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=fe(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=fe(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=fe(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function E(e,t,n){if(Array.isArray(e))return e.map((e,t)=>E(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!S(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var pe=class{constructor(e){Object.defineProperty(this,p,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!h(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=E(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?fe(i,{"":o},``,o):o}},me=class extends pe{constructor(e){super(s),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],T(e,{Node:(e,t)=>{(m(t)||S(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(E(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=he(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(ce(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function he(e,t,n){if(m(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(b(t)){let r=0;for(let i of t.items){let t=he(e,i,n);t>r&&(r=t)}return r}if(_(t)){let r=he(e,t.key,n),i=he(e,t.value,n);return Math.max(r,i)}return 1}var ge=e=>!e||typeof e!=`function`&&typeof e!=`object`,D=class extends pe{constructor(e){super(d),this.value=e}toJSON(e,t){return t?.keep?this.value:E(this.value,e,t)}toString(){return String(this.value)}};D.BLOCK_FOLDED=`BLOCK_FOLDED`,D.BLOCK_LITERAL=`BLOCK_LITERAL`,D.PLAIN=`PLAIN`,D.QUOTE_DOUBLE=`QUOTE_DOUBLE`,D.QUOTE_SINGLE=`QUOTE_SINGLE`;var _e=`tag:yaml.org,2002:`;function ve(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function ye(e,t,n){if(h(e)&&(e=e.contents),x(e))return e;if(_(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new me(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=_e+t.slice(2));let u=ve(e,t,o.tags);if(!u){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new D(e);return c&&(c.node=t),t}u=e instanceof Map?o[l]:Symbol.iterator in Object(e)?o[f]:o[l]}a&&(a(u),delete n.onTagObj);let d=u?.createNode?u.createNode(n.schema,e,n):typeof u?.nodeClass?.from==`function`?u.nodeClass.from(n.schema,e,n):new D(e);return t?d.tag=t:u.default||(d.tag=u.tag),c&&(c.node=d),d}function be(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return ye(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var xe=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Se=class extends pe{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>x(t)||_(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(xe(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(b(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,be(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(b(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&v(i)?i.value:i:b(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!_(t))return!1;let n=t.value;return n==null||e&&v(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return b(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(b(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,be(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Ce=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function O(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var we=(e,t,n)=>e.endsWith(`
3
3
  `)?O(n,t):n.includes(`
4
4
  `)?`
@@ -120,7 +120,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
120
120
  `:`>`,i},Xi.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},Xi.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
121
121
  `}return r},Xi.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function W(){this.__rules__=[],this.__cache__=null}W.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},W.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},W.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},W.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},W.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},W.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},W.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},W.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},W.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},W.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function G(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}G.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},G.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},G.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},G.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},G.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function Zi(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Zi.prototype.Token=G;var Qi=/\r\n?|\n/g,$i=/\0/g;function ea(e){let t;t=e.src.replace(Qi,`
122
122
  `),t=t.replace($i,`�`),e.src=t}function ta(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function na(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function ra(e){return/^<a[>\s]/i.test(e)}function ia(e){return/^<\/a\s*>/i.test(e)}function aa(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=[],a=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n.type===`link_close`)for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;else if(n.type===`html_inline`&&(ra(n.content)&&a>0&&a--,ia(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=o[t].text;i=o[t].schema?o[t].schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:`+i).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://`+i).replace(/^http:\/\//,``);let u=o[t].index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=o[t].lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.push({index:t,nodes:s})}}if(i.length>0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e<r.length;e++){let t=i[o];if(t?.index===e){for(let e of t.nodes)a[s++]=e;o++}else a[s++]=r[e]}t[n].children=a}}}var oa=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sa=/\((c|tm|r)\)/i,ca=/\((c|tm|r)\)/gi,la={c:`©`,r:`®`,tm:`™`};function ua(e,t){return la[t.toLowerCase()]}function da(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(ca,ua)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function fa(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&oa.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function pa(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(sa.test(e.tokens[t].content)&&da(e.tokens[t].children),oa.test(e.tokens[t].content)&&fa(e.tokens[t].children))}var ma=/['"]/,ha=/['"]/g,ga=`’`,_a=1e3;function va(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function ya(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function ba(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function xa(e,t){let n,r=[],i={single:-1,double:-1},a={};for(let o=0;o<e.length;o++){let s=e[o],c=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(va(r,i,n+1),s.type!==`text`)continue;let l=s.content,u=0,d=l.length;OUTER:for(;u<d;){ha.lastIndex=u;let s=ha.exec(l);if(!s)break;let f=!0,p=!0;u=s.index+1;let m=s[0]===`'`,h=32;if(s.index-1>=0)h=l.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u<d)g=l.charCodeAt(u);else for(n=o+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}let _=Vi(h)||Bi(h),v=Vi(g)||Bi(g),y=Ri(h),b=Ri(g);if(b?f=!1:v&&(y||_||(f=!1)),y?p=!1:_&&(b||v||(p=!1)),g===34&&s[0]===`"`&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p)m&&ya(a,o,s.index,ga);else{if(p&&(n=m?i.single:i.double,n>=0&&r[n].level===c)){let e=r[n],c,l;m?(c=t.md.options.quotes[2],l=t.md.options.quotes[3]):(c=t.md.options.quotes[0],l=t.md.options.quotes[1]),ya(a,o,s.index,l),ya(a,e.tokenIdx,e.contentPos,c),va(r,i,n);continue OUTER}if(f){if(r.length>=_a)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:m,level:c,prevSameQuoteIdx:m?i.single:i.double}),m?i.single=r.length-1:i.double=r.length-1}else p&&m&&ya(a,o,s.index,ga)}}}Object.keys(a).forEach(function(t){e[t].content=ba(e[t].content,a[t])})}function Sa(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&ma.test(e.tokens[t].content)&&xa(e.tokens[t].children,e)}function Ca(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var wa=[[`normalize`,ea],[`block`,ta],[`inline`,na],[`linkify`,aa],[`replacements`,pa],[`smartquotes`,Sa],[`text_join`,Ca]];function Ta(){this.ruler=new W;for(let e=0;e<wa.length;e++)this.ruler.push(wa[e][0],wa[e][1])}Ta.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},Ta.prototype.State=Zi;function K(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(H(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}K.prototype.push=function(e,t,n){let r=new G(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},K.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},K.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},K.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&H(this.src.charCodeAt(e));e++);return e},K.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!H(this.src.charCodeAt(--e)))return e+1;return e},K.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},K.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},K.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(H(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},K.prototype.Token=G;var Ea=65536;function Da(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Oa(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function ka(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!H(s)||o===45&&H(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!H(t))return!1;a++}let c=Da(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Da(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Oa(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Da(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Oa(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Ea))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function Aa(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else if(e.sCount[r]-e.blkIndent>=4)r++,i=r;else break;e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
123
- `,a.map=[t,e.line],!0}function ja(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Ma(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(H(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Na(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!H(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Pa(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!H(e.src.charCodeAt(r))?-1:r}function Fa(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!H(a))?-1:i}function Ia(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function La(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Fa(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Pa(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=Fa(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=Pa(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Ia(e,h),!0}function Ra(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!H(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!H(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&H(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&H(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Hi(c.slice(1,l));return _?(r||(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o),!0):!1}var za=`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`.split(`.`),Ba=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Va=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,Ha=RegExp(`^(?:`+Ba+`|`+Va+`|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Ua=RegExp(`^(?:`+Ba+`|`+Va+`)`),q=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+za.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Ua.source+`\\s*$`),/^$/,!1]];function Wa(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<q.length&&!q[s][0].test(o);s++);if(s===q.length)return!1;if(r)return q[s][2];let c=t+1,l=q[s][1].test(``);if(!q[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),q[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Ga(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!H(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&H(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Wi(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Ka(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=Wi(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function qa(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Wi(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Ja=[[`table`,ka,[`paragraph`,`reference`]],[`code`,Aa],[`fence`,ja,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Ma,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Na,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,La,[`paragraph`,`reference`,`blockquote`]],[`reference`,Ra],[`html_block`,Wa,[`paragraph`,`reference`,`blockquote`]],[`heading`,Ga,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Ka],[`paragraph`,qa]];function Ya(){this.ruler=new W;for(let e=0;e<Ja.length;e++)this.ruler.push(Ja[e][0],Ja[e][1],{alt:(Ja[e][2]||[]).slice()})}Ya.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Ya.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Ya.prototype.State=K;function Xa(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Xa.prototype.pushPending=function(){let e=new G(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Xa.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new G(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Xa.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=Vi(i)||Bi(i),l=Vi(s)||Bi(s),u=Ri(i),d=Ri(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Xa.prototype.Token=G;function Za(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Qa(e,t){let n=e.pos;for(;n<e.posMax&&!Za(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function $a(e){return e>=65&&e<=90||e>=97&&e<=122}function eo(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function to(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&eo(e.src.charCodeAt(a-1));)a--;if(a===n||!$a(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function no(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&H(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var ro=[];for(let e=0;e<256;e++)ro.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){ro[e.charCodeAt(0)]=1});function io(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),H(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&ro[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function ao(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function oo(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function so(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function co(e){let t=e.tokens_meta,n=e.tokens_meta.length;so(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&so(e,t[r].delimiters)}var lo={tokenize:oo,postProcess:co};function uo(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function fo(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function po(e){let t=e.tokens_meta,n=e.tokens_meta.length;fo(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&fo(e,t[r].delimiters)}var mo={tokenize:uo,postProcess:po};function ho(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),H(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),H(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),H(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Hi(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function go(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),H(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),H(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),H(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Hi(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var _o=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,vo=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function yo(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(vo.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(_o.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function bo(e){return/^<a[>\s]/i.test(e)}function xo(e){return/^<\/a\s*>/i.test(e)}function So(e){let t=e|32;return t>=97&&t<=122}function Co(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!So(i))return!1;let a=e.src.slice(r).match(Ha);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],bo(t.content)&&e.linkLevel++,xo(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var wo=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,To=/^&([a-z][a-z0-9]{1,31});/i;function Eo(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(wo);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=wi(t)?Ti(t):Ti(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(To);if(r){let n=gi(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Do(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Oo(e){let t=e.tokens_meta,n=e.tokens_meta.length;Do(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Do(t[e].delimiters)}function ko(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var Ao=[[`text`,Qa],[`linkify`,to],[`newline`,no],[`escape`,io],[`backticks`,ao],[`strikethrough`,lo.tokenize],[`emphasis`,mo.tokenize],[`link`,ho],[`image`,go],[`autolink`,yo],[`html_inline`,Co],[`entity`,Eo]],jo=[[`balance_pairs`,Oo],[`strikethrough`,lo.postProcess],[`emphasis`,mo.postProcess],[`fragments_join`,ko]];function Mo(){this.ruler=new W;for(let e=0;e<Ao.length;e++)this.ruler.push(Ao[e][0],Ao[e][1]);this.ruler2=new W;for(let e=0;e<jo.length;e++)this.ruler2.push(jo[e][0],jo[e][1])}Mo.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},Mo.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Mo.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},Mo.prototype.State=Xa;function No(e){let t={};e||={},t.src_Any=Jr.source,t.src_Cc=Yr.source,t.src_Z=$r.source,t.src_P=Zr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Po(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Fo(e){return Object.prototype.toString.call(e)}function Io(e){return Fo(e)===`[object String]`}function Lo(e){return Fo(e)===`[object Object]`}function Ro(e){return Fo(e)===`[object RegExp]`}function zo(e){return Fo(e)===`[object Function]`}function Bo(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Vo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ho(e){return Object.keys(e||{}).reduce(function(e,t){return e||Vo.hasOwnProperty(t)},!1)}var Uo={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Wo=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Go=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Ko(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qo(){return function(e,t){t.normalize(e)}}function Jo(e){let t=e.re=No(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Wo),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,Lo(n)?(Ro(n.validate)?r.validate=Ko(n.validate):zo(n.validate)?r.validate=n.validate:a(t,n),zo(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=qo()):Io(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:qo()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Bo).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Yo(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function J(e,t){if(!(this instanceof J))return new J(e,t);t||Ho(e)&&(t=e,e={}),this.__opts__=Po({},Vo,t),this.__schemas__=Po({},Uo,e),this.__compiled__={},this.__tlds__=Go,this.__tlds_replaced__=!1,this.re={},Jo(this)}J.prototype.add=function(e,t){return this.__schemas__[e]=t,Jo(this),this},J.prototype.set=function(e){return this.__opts__=Po(this.__opts__,e),this},J.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},J.prototype.pretest=function(e){return this.re.pretest.test(e)},J.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},J.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Yo(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},J.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Yo(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},J.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Jo(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Jo(this),this)},J.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},J.prototype.onCompile=function(){};var Xo=2147483647,Y=36,Zo=1,Qo=26,$o=38,es=700,ts=72,ns=128,rs=`-`,is=/^xn--/,as=/[^\0-\x7F]/,os=/[\x2E\u3002\uFF0E\uFF61]/g,ss={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},cs=35,X=Math.floor,ls=String.fromCharCode;function Z(e){throw RangeError(ss[e])}function us(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ds(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(os,`.`);let i=us(e.split(`.`),t).join(`.`);return r+i}function fs(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var ps=e=>String.fromCodePoint(...e),ms=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Y},hs=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},gs=function(e,t,n){let r=0;for(e=n?X(e/es):e>>1,e+=X(e/t);e>455;r+=Y)e=X(e/cs);return X(r+36*e/(e+$o))},_s=function(e){let t=[],n=e.length,r=0,i=ns,a=ts,o=e.lastIndexOf(rs);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Z(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Y;;i+=Y){s>=n&&Z(`invalid-input`);let o=ms(e.charCodeAt(s++));o>=Y&&Z(`invalid-input`),o>X((Xo-r)/t)&&Z(`overflow`),r+=o*t;let c=i<=a?Zo:i>=a+Qo?Qo:i-a;if(o<c)break;let l=Y-c;t>X(Xo/l)&&Z(`overflow`),t*=l}let c=t.length+1;a=gs(r-o,c,o==0),X(r/c)>Xo-i&&Z(`overflow`),i+=X(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},vs=function(e){let t=[];e=fs(e);let n=e.length,r=ns,i=0,a=ts;for(let n of e)n<128&&t.push(ls(n));let o=t.length,s=o;for(o&&t.push(rs);s<n;){let n=Xo;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>X((Xo-i)/c)&&Z(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Xo&&Z(`overflow`),n===r){let e=i;for(let n=Y;;n+=Y){let r=n<=a?Zo:n>=a+Qo?Qo:n-a;if(e<r)break;let i=e-r,o=Y-r;t.push(ls(hs(r+i%o,0))),e=X(i/o)}t.push(ls(hs(e,0))),a=gs(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},ys={version:`2.3.1`,ucs2:{decode:fs,encode:ps},decode:_s,encode:vs,toASCII:function(e){return ds(e,function(e){return as.test(e)?`xn--`+vs(e):e})},toUnicode:function(e){return ds(e,function(e){return is.test(e)?_s(e.slice(4).toLowerCase()):e})}},bs={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},xs=/^(vbscript|javascript|file|data):/,Ss=/^data:image\/(gif|png|jpeg|webp);/;function Cs(e){let t=e.trim().toLowerCase();return!xs.test(t)||Ss.test(t)}var ws=[`http:`,`https:`,`mailto:`];function Ts(e){let t=Kr(e,!0);if(t.hostname&&(!t.protocol||ws.indexOf(t.protocol)>=0))try{t.hostname=ys.toASCII(t.hostname)}catch{}return Nr(Pr(t))}function Es(e){let t=Kr(e,!0);if(t.hostname&&(!t.protocol||ws.indexOf(t.protocol)>=0))try{t.hostname=ys.toUnicode(t.hostname)}catch{}return Ar(Pr(t),Ar.defaultChars+`%`)}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);t||yi(e)||(t=e||{},e=`default`),this.inline=new Mo,this.block=new Ya,this.core=new Ta,this.renderer=new Xi,this.linkify=new J,this.validateLink=Cs,this.normalizeLink=Ts,this.normalizeLinkText=Es,this.utils=_i,this.helpers=Si({},Yi),this.options={},this.configure(e),t&&this.set(t)}Q.prototype.set=function(e){return Si(this.options,e),this},Q.prototype.configure=function(e){let t=this;if(yi(e)){let t=e;if(e=bs[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Q.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},Q.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},Q.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Q.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Q.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},Q.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Q.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)},new Q(`commonmark`);var Ds={requires:3,uses:2,"see also":1};function Os(e){let t=vr((e??``).toLowerCase().replaceAll(`-`,` `).replaceAll(`_`,` `)).split(/\s+/).filter(Boolean).join(` `);return t===`seealso`&&(t=`see also`),t in Ds?t:null}var ks={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,svg:`image/svg+xml`,webp:`image/webp`,avif:`image/avif`},As=e=>{let t=e.lastIndexOf(`.`);return t<0||e.lastIndexOf(`/`)>t?null:ks[e.slice(t+1).toLowerCase()]??null};function js(e){let t=e.trim().toLowerCase();return t===`question`?`question`:t===`problem`?`problem`:`note`}var Ms={question:`about`,problem:`uses`},Ns={question:`resolved`,problem:`solved`};function Ps(e){return(typeof e==`string`?[e]:Array.isArray(e)?e:[]).map(e=>br(e).trim().replace(/^\/+/,``).replace(/\.md$/,``)).filter(Boolean)}function Fs(e,t){if(t===`note`)return null;let n=e[Ns[t]];return n==null||n===!1||n===``?null:n instanceof Date?n.toISOString().slice(0,10):br(n)}function Is(e,t){let n=e.split(`/`).at(-1),r=0;for(let e of t)e.split(`/`).at(-1)===n&&r++;return`[[!${r>1?e:n}]]`}function Ls(e){let t=/^code:([^#?]+)(?:#L(\d+)(?:-L?(\d+))?)?$/.exec(e.trim());if(!t)return null;let n=decodeURIComponent(t[1]).replace(/^\.?\/+/,``);return!n||n.split(`/`).some(e=>e===`..`||!e)?null:{path:n,...t[2]?{line:Number(t[2])}:{},...t[3]?{end:Number(t[3])}:{}}}var Rs=[[`artifact`,/\.html?$/i],[`image`,/\.(png|jpe?g|gif|svg|webp|avif)$/i],[`data`,/\.(csv|tsv|json|jsonl|ndjson|parquet|arrow|feather|npy|npz|xlsx|xls|h5|hdf5|nc)$/i],[`document`,/\.(pdf|docx?|odt|rtf|epub|pptx?|odp|txt|tex)$/i]],zs=e=>{let t=xr(e);return/\.md$/i.test(t)||!/\.[^.]+$/.test(t.replace(/^\./,``))?null:Rs.find(([,e])=>e.test(t))?.[0]??`misc`},Bs=``;function Vs(e){let[t]=Tr(e);if(t===null)return[``,null,e];let n=e.indexOf(`
123
+ `,a.map=[t,e.line],!0}function ja(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Ma(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(H(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Na(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!H(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Pa(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!H(e.src.charCodeAt(r))?-1:r}function Fa(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!H(a))?-1:i}function Ia(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function La(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Fa(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Pa(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=Fa(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=Pa(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Ia(e,h),!0}function Ra(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!H(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!H(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&H(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&H(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Hi(c.slice(1,l));return _?(r||(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o),!0):!1}var za=`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`.split(`.`),Ba=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Va=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,Ha=RegExp(`^(?:`+Ba+`|`+Va+`|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Ua=RegExp(`^(?:`+Ba+`|`+Va+`)`),q=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+za.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Ua.source+`\\s*$`),/^$/,!1]];function Wa(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<q.length&&!q[s][0].test(o);s++);if(s===q.length)return!1;if(r)return q[s][2];let c=t+1,l=q[s][1].test(``);if(!q[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),q[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Ga(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!H(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&H(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Wi(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Ka(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=Wi(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function qa(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Wi(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Ja=[[`table`,ka,[`paragraph`,`reference`]],[`code`,Aa],[`fence`,ja,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Ma,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Na,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,La,[`paragraph`,`reference`,`blockquote`]],[`reference`,Ra],[`html_block`,Wa,[`paragraph`,`reference`,`blockquote`]],[`heading`,Ga,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Ka],[`paragraph`,qa]];function Ya(){this.ruler=new W;for(let e=0;e<Ja.length;e++)this.ruler.push(Ja[e][0],Ja[e][1],{alt:(Ja[e][2]||[]).slice()})}Ya.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Ya.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Ya.prototype.State=K;function Xa(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Xa.prototype.pushPending=function(){let e=new G(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Xa.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new G(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Xa.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=Vi(i)||Bi(i),l=Vi(s)||Bi(s),u=Ri(i),d=Ri(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Xa.prototype.Token=G;function Za(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Qa(e,t){let n=e.pos;for(;n<e.posMax&&!Za(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function $a(e){return e>=65&&e<=90||e>=97&&e<=122}function eo(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function to(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&eo(e.src.charCodeAt(a-1));)a--;if(a===n||!$a(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function no(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&H(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var ro=[];for(let e=0;e<256;e++)ro.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){ro[e.charCodeAt(0)]=1});function io(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),H(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&ro[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function ao(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function oo(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function so(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function co(e){let t=e.tokens_meta,n=e.tokens_meta.length;so(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&so(e,t[r].delimiters)}var lo={tokenize:oo,postProcess:co};function uo(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function fo(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function po(e){let t=e.tokens_meta,n=e.tokens_meta.length;fo(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&fo(e,t[r].delimiters)}var mo={tokenize:uo,postProcess:po};function ho(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),H(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),H(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),H(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Hi(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function go(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),H(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),H(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),H(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Hi(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var _o=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,vo=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function yo(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(vo.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(_o.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function bo(e){return/^<a[>\s]/i.test(e)}function xo(e){return/^<\/a\s*>/i.test(e)}function So(e){let t=e|32;return t>=97&&t<=122}function Co(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!So(i))return!1;let a=e.src.slice(r).match(Ha);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],bo(t.content)&&e.linkLevel++,xo(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var wo=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,To=/^&([a-z][a-z0-9]{1,31});/i;function Eo(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(wo);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=wi(t)?Ti(t):Ti(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(To);if(r){let n=gi(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Do(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Oo(e){let t=e.tokens_meta,n=e.tokens_meta.length;Do(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Do(t[e].delimiters)}function ko(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var Ao=[[`text`,Qa],[`linkify`,to],[`newline`,no],[`escape`,io],[`backticks`,ao],[`strikethrough`,lo.tokenize],[`emphasis`,mo.tokenize],[`link`,ho],[`image`,go],[`autolink`,yo],[`html_inline`,Co],[`entity`,Eo]],jo=[[`balance_pairs`,Oo],[`strikethrough`,lo.postProcess],[`emphasis`,mo.postProcess],[`fragments_join`,ko]];function Mo(){this.ruler=new W;for(let e=0;e<Ao.length;e++)this.ruler.push(Ao[e][0],Ao[e][1]);this.ruler2=new W;for(let e=0;e<jo.length;e++)this.ruler2.push(jo[e][0],jo[e][1])}Mo.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},Mo.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Mo.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},Mo.prototype.State=Xa;function No(e){let t={};e||={},t.src_Any=Jr.source,t.src_Cc=Yr.source,t.src_Z=$r.source,t.src_P=Zr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Po(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Fo(e){return Object.prototype.toString.call(e)}function Io(e){return Fo(e)===`[object String]`}function Lo(e){return Fo(e)===`[object Object]`}function Ro(e){return Fo(e)===`[object RegExp]`}function zo(e){return Fo(e)===`[object Function]`}function Bo(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Vo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ho(e){return Object.keys(e||{}).reduce(function(e,t){return e||Vo.hasOwnProperty(t)},!1)}var Uo={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Wo=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Go=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Ko(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qo(){return function(e,t){t.normalize(e)}}function Jo(e){let t=e.re=No(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Wo),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,Lo(n)?(Ro(n.validate)?r.validate=Ko(n.validate):zo(n.validate)?r.validate=n.validate:a(t,n),zo(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=qo()):Io(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:qo()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Bo).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Yo(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function J(e,t){if(!(this instanceof J))return new J(e,t);t||Ho(e)&&(t=e,e={}),this.__opts__=Po({},Vo,t),this.__schemas__=Po({},Uo,e),this.__compiled__={},this.__tlds__=Go,this.__tlds_replaced__=!1,this.re={},Jo(this)}J.prototype.add=function(e,t){return this.__schemas__[e]=t,Jo(this),this},J.prototype.set=function(e){return this.__opts__=Po(this.__opts__,e),this},J.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},J.prototype.pretest=function(e){return this.re.pretest.test(e)},J.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},J.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Yo(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},J.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Yo(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},J.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Jo(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Jo(this),this)},J.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},J.prototype.onCompile=function(){};var Xo=2147483647,Y=36,Zo=1,Qo=26,$o=38,es=700,ts=72,ns=128,rs=`-`,is=/^xn--/,as=/[^\0-\x7F]/,os=/[\x2E\u3002\uFF0E\uFF61]/g,ss={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},cs=35,X=Math.floor,ls=String.fromCharCode;function Z(e){throw RangeError(ss[e])}function us(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ds(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(os,`.`);let i=us(e.split(`.`),t).join(`.`);return r+i}function fs(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var ps=e=>String.fromCodePoint(...e),ms=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Y},hs=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},gs=function(e,t,n){let r=0;for(e=n?X(e/es):e>>1,e+=X(e/t);e>455;r+=Y)e=X(e/cs);return X(r+36*e/(e+$o))},_s=function(e){let t=[],n=e.length,r=0,i=ns,a=ts,o=e.lastIndexOf(rs);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Z(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Y;;i+=Y){s>=n&&Z(`invalid-input`);let o=ms(e.charCodeAt(s++));o>=Y&&Z(`invalid-input`),o>X((Xo-r)/t)&&Z(`overflow`),r+=o*t;let c=i<=a?Zo:i>=a+Qo?Qo:i-a;if(o<c)break;let l=Y-c;t>X(Xo/l)&&Z(`overflow`),t*=l}let c=t.length+1;a=gs(r-o,c,o==0),X(r/c)>Xo-i&&Z(`overflow`),i+=X(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},vs=function(e){let t=[];e=fs(e);let n=e.length,r=ns,i=0,a=ts;for(let n of e)n<128&&t.push(ls(n));let o=t.length,s=o;for(o&&t.push(rs);s<n;){let n=Xo;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>X((Xo-i)/c)&&Z(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Xo&&Z(`overflow`),n===r){let e=i;for(let n=Y;;n+=Y){let r=n<=a?Zo:n>=a+Qo?Qo:n-a;if(e<r)break;let i=e-r,o=Y-r;t.push(ls(hs(r+i%o,0))),e=X(i/o)}t.push(ls(hs(e,0))),a=gs(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},ys={version:`2.3.1`,ucs2:{decode:fs,encode:ps},decode:_s,encode:vs,toASCII:function(e){return ds(e,function(e){return as.test(e)?`xn--`+vs(e):e})},toUnicode:function(e){return ds(e,function(e){return is.test(e)?_s(e.slice(4).toLowerCase()):e})}},bs={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},xs=/^(vbscript|javascript|file|data):/,Ss=/^data:image\/(gif|png|jpeg|webp);/;function Cs(e){let t=e.trim().toLowerCase();return!xs.test(t)||Ss.test(t)}var ws=[`http:`,`https:`,`mailto:`];function Ts(e){let t=Kr(e,!0);if(t.hostname&&(!t.protocol||ws.indexOf(t.protocol)>=0))try{t.hostname=ys.toASCII(t.hostname)}catch{}return Nr(Pr(t))}function Es(e){let t=Kr(e,!0);if(t.hostname&&(!t.protocol||ws.indexOf(t.protocol)>=0))try{t.hostname=ys.toUnicode(t.hostname)}catch{}return Ar(Pr(t),Ar.defaultChars+`%`)}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);t||yi(e)||(t=e||{},e=`default`),this.inline=new Mo,this.block=new Ya,this.core=new Ta,this.renderer=new Xi,this.linkify=new J,this.validateLink=Cs,this.normalizeLink=Ts,this.normalizeLinkText=Es,this.utils=_i,this.helpers=Si({},Yi),this.options={},this.configure(e),t&&this.set(t)}Q.prototype.set=function(e){return Si(this.options,e),this},Q.prototype.configure=function(e){let t=this;if(yi(e)){let t=e;if(e=bs[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Q.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},Q.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},Q.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Q.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Q.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},Q.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Q.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)},new Q(`commonmark`);var Ds={requires:3,uses:2,"see also":1};function Os(e){let t=vr((e??``).toLowerCase().replaceAll(`-`,` `).replaceAll(`_`,` `)).split(/\s+/).filter(Boolean).join(` `);return t===`seealso`&&(t=`see also`),t in Ds?t:null}var ks={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,svg:`image/svg+xml`,webp:`image/webp`,avif:`image/avif`},As=e=>{let t=e.lastIndexOf(`.`);return t<0||e.lastIndexOf(`/`)>t?null:ks[e.slice(t+1).toLowerCase()]??null};function js(e){let t=e.trim().toLowerCase();return t===`question`?`question`:t===`problem`?`problem`:`note`}var Ms={question:`about`,problem:`uses`},Ns={question:`resolved`,problem:`solved`};function Ps(e){return(typeof e==`string`?[e]:Array.isArray(e)?e:[]).map(e=>br(e).trim().replace(/^\/+/,``).replace(/\.md$/,``)).filter(Boolean)}function Fs(e,t){if(t===`note`)return null;let n=e[Ns[t]];return n==null||n===!1||n===``?null:n instanceof Date?n.toISOString().slice(0,10):br(n)}function Is(e,t){let n=e.split(`/`).at(-1),r=0;for(let e of t)e.split(`/`).at(-1)===n&&r++;return`[[!${r>1?e:n}]]`}function Ls(e){let t=/^code:([^#?]+)(?:#(?:L(\d+)(?:-L?(\d+))?|([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)))?$/.exec(e.trim());if(!t)return null;let n=decodeURIComponent(t[1]).replace(/^\.?\/+/,``);return!n||n.split(`/`).some(e=>e===`..`||!e)?null:{path:n,...t[2]?{line:Number(t[2])}:{},...t[3]?{end:Number(t[3])}:{},...t[4]?{symbol:t[4]}:{}}}var Rs=[[`artifact`,/\.html?$/i],[`image`,/\.(png|jpe?g|gif|svg|webp|avif)$/i],[`data`,/\.(csv|tsv|json|jsonl|ndjson|parquet|arrow|feather|npy|npz|xlsx|xls|h5|hdf5|nc)$/i],[`document`,/\.(pdf|docx?|odt|rtf|epub|pptx?|odp|txt|tex)$/i]],zs=e=>{let t=xr(e);return/\.md$/i.test(t)||!/\.[^.]+$/.test(t.replace(/^\./,``))?null:Rs.find(([,e])=>e.test(t))?.[0]??`misc`},Bs=``;function Vs(e){let[t]=Tr(e);if(t===null)return[``,null,e];let n=e.indexOf(`
124
124
  `)+1,r=n;for(let t of e.slice(n).split(`
125
125
  `))if(r+=t.length+1,t.replace(/\s+$/u,``)===`---`)break;for(r=Math.min(r,e.length);e[r]===`
126
126
  `||e[r]===`\r`&&e[r+1]===`
@@ -149,4 +149,4 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
149
149
  `?(m.push(p),p={t:[],w:[]}):(p.t.push(e),p.w.push(l[t]))}),t.ins.length&&m.push(p),o.push(...m),s=t.at+t.del.length}o.push(...n.slice(s)),n=o,r=nc(r,a.hunks)}return(n??[]).map(e=>{let t=[],n=0;return e.t.forEach((r,i)=>{let a=e.w[i],o=t.at(-1);o&&o.who===a&&o.to===n?o.to+=r.length:t.push({from:n,to:n+r.length,who:a}),n+=r.length}),t})}var cc=(e,t)=>ac(e,t)?.text??null;function lc(e){let t=new Map,n=(e,n)=>{let r=t.get(e);if(!r)return;let i=r.form===`rewrite`&&n!==void 0?(r.open??[]).filter(e=>e!==n):[];r.form===`rewrite`&&i.length?t.set(e,{...r,open:i}):t.delete(e)};for(let r of e)if(r.kind===`proposal`)t.set(r.id,r.form===`rewrite`?{...r,open:r.regions.map((e,t)=>t)}:r);else if(r.kind===`discard`)n(r.proposal,r.region);else if(r.kind===`change`&&r.proposal&&r.why===`keep`)n(r.proposal,r.region);else if(r.kind===`revise`){let e=t.get(r.proposal);if(!e)continue;e.form===`insert`&&r.text!==void 0&&t.set(e.id,{...e,text:r.text}),e.form===`rewrite`&&r.regions&&t.set(e.id,{...e,regions:e.regions.map((e,t)=>({old:e.old,new:r.regions[t]??e.new}))})}return[...t.values()]}function uc(e,t){if(!t.text)return null;let n=-1;for(let r=0;r<=t.nth&&(n=e.indexOf(t.text,n+1),!(n<0));r++);if(n<0){let r=e.indexOf(t.text);if(r<0||e.indexOf(t.text,r+1)>=0)return null;n=r}return{from:n,to:n+t.text.length}}function dc(e,t){if(t.form===`rewrite`)return{form:`rewrite`,regions:t.regions.map(t=>uc(e,t.old))};let n=Zs(e),r=t.after?Qs(n,t.after):-1,i=t.before?Qs(n,t.before):-1;if(r>=0)return{form:`insert`,line:n[r].to};if(i>=0)return{form:`insert`,line:n[i].from};if(!t.after&&!t.before){if(n.length)return{form:`insert`,line:n[n.length-1].to};let t=e.split(`
150
150
  `),r=t.length;for(;r>0&&!t[r-1].trim();)r--;return{form:`insert`,line:r}}return!t.after&&n.length?{form:`insert`,line:n[0].from}:null}function fc(e){let t=[],n=new Map,r=new Map,i=e=>e.why===`start`||!e.hunks.length&&e.before===null?[(e.text??``).split(`
151
151
  `).length,0]:[e.hunks.reduce((e,t)=>e+t.ins.length,0),e.hunks.reduce((e,t)=>e+t.del.length,0)];for(let a of e){let e={ids:[a.id],at:a.at,session:a.session,who:a.who,added:0,removed:0};if(a.kind===`proposal`){let i={...e,what:`offered`,asked:a.asked};n.set(a.id,i),r.set(a.id,a.asked),t.push(i)}else if(a.kind===`discard`){let e=n.get(a.proposal);e&&(e.what=`discarded`,e.ids.push(a.id))}else if(a.kind===`change`){let r=a.proposal?n.get(a.proposal):void 0,[o,s]=i(a);if(a.why===`keep`&&r){r.what=`kept`,r.ids.push(a.id),r.at=a.at,r.added+=o,r.removed+=s;continue}let c=t[t.length-1];if(a.why===`edit`&&c&&c.what===`edited`&&c.who===a.who&&c.session===a.session&&Date.parse(a.at)-Date.parse(c.at)<=6e5){c.ids.push(a.id),c.at=a.at,c.added+=o,c.removed+=s;continue}let l=a.why===`start`?a.who===`external`?`found`:`wrote`:a.why===`edit`?`edited`:a.why===`restore`?`restored`:a.why===`keep`?`kept`:a.why===`move`?`moved`:`changed elsewhere`;t.push({...e,what:l,added:o,removed:s,...a.asked?{asked:a.asked}:{}})}}return t}function pc(e,t){let n=0;for(let r of e){if(t<r.at)break;if(t<r.at+r.del.length)return null;n+=r.ins.length-r.del.length}return t+n}function mc(e){if(e.why===`start`||!e.hunks.length&&e.before===null)return(e.text??``).split(`
152
- `).map((e,t)=>t);let t=[],n=0;for(let r of e.hunks){for(let e=0;e<r.ins.length;e++)t.push(r.at+n+e);n+=r.ins.length-r.del.length}return t}function hc(e,t){let n=new Set(t),r=new Set,i=!1;for(let t of e){if(!ic(t))continue;let e=new Set;for(let n of r){let r=pc(t.hunks,n);r!==null&&e.add(r)}if(r=e,n.has(t.id))for(let e of mc(t))r.add(e),i=!0}let a=[...r].sort((e,t)=>e-t),o=[];for(let e of a){let t=o[o.length-1];t&&t.to===e?t.to=e+1:o.push({from:e,to:e+1})}return{runs:o,removed:i&&!o.length}}``.isWellFormed;function gc(e,t){let n=e.edges.some(([,,e])=>e>=Ys.requires)?Ys.requires:Ys.uses,r=new Map,i=new Map,a=new Set,o=new Set,s=[];for(let[c,l,u]of e.edges)if(c!==l){if(u<n){if(c!==t&&l!==t)continue;(u>=Ys.uses?a:o).add(c===t?l:c),u>=Ys.uses&&s.push({from:c,to:l,kind:`uses`})}else r.set(c,[...r.get(c)??[],l]),i.set(l,[...i.get(l)??[],c])}let c={},l={},u=new Set([t]),d=[],f=[],p=[t];for(let e=0;e<p.length;e++){let t=p[e];for(let e of r.get(t)??[])f.push({from:t,to:e,kind:`requires`}),!u.has(e)&&(u.add(e),d.push(e),p.push(e),c[e]=(c[t]??0)+1,l[e]=t)}let m=new Map;for(let e of f)m.set(e.from,(m.get(e.from)??new Set).add(e.to));for(let e of f){let t=new Set,n=[...m.get(e.from)].filter(t=>t!==e.to),r=!1;for(;n.length&&!r;){let i=n.pop();i===e.to?r=!0:i!==e.from&&!t.has(i)&&(t.add(i),n.push(...m.get(i)??[]))}r&&(e.spare=!0,m.get(e.from).delete(e.to))}let h=[...new Set(i.get(t)??[])];for(let e of h)f.push({from:e,to:t,kind:`builds`});let g=new Set([...d,...h]);return{requires:d,depth:c,via:l,builds:h,uses:[...a].filter(e=>!g.has(e)),also:[...o].filter(e=>!g.has(e)&&!a.has(e)),links:[...f,...s.filter(e=>!g.has(e.from===t?e.to:e.from))]}}function _c(){try{return new URLSearchParams(location.search).get(`base`)??``}catch{return``}}var vc=e=>_c()?`${e}@${_c()}`:e;function yc(e,t=``){return`${location.origin}${location.pathname}?base=${encodeURIComponent(e)}${t}`}var bc=class extends Error{status;current;constructor(e,t,n){super(e),this.status=t,this.current=n}};function xc(e=new URL(_c()?`b/${encodeURIComponent(_c())}/api/`:`api/`,document.baseURI).href){let t=null,n=async(t,n)=>{let r;try{r=await fetch(e+t,n)}catch{throw new bc(`isorite is not answering`,0)}let i=await r.json().catch(()=>({}));if(!r.ok)throw new bc(i.error??r.statusText,r.status,i.current);return i},r=()=>n(`session`),i=async(e,i,a)=>{t??=r().then(e=>e.token);let o={"Content-Type":`application/json`,"x-isorite-token":await t};return n(i,{method:e,headers:o,body:JSON.stringify(a)})},a=e=>`?id=${encodeURIComponent(e)}`,o=(t,n=`notes`)=>`${e}file?${n===`code`?`code`:`path`}=${encodeURIComponent(t)}`;return{session:async()=>{let{token:e,...n}=await r();return t=Promise.resolve(e),n},notes:()=>n(`notes`),readNote:e=>n(`note`+a(e)),fileUrl:o,pictures:()=>n(`pictures`),savePicture:async(e,i)=>{t??=r().then(e=>e.token);let a=As(e)??`application/octet-stream`;return n(`file?path=${encodeURIComponent(e)}`,{method:`POST`,headers:{"Content-Type":a,"x-isorite-token":await t},body:i})},file:async(e,t)=>{let n;try{n=await fetch(o(e,t))}catch{throw new bc(`isorite is not answering`,0)}if(n.status===404)return null;if(!n.ok)throw new bc((await n.json().catch(()=>({}))).error??n.statusText,n.status);return{bytes:new Uint8Array(await n.arrayBuffer()),type:n.headers.get(`content-type`)??``,version:(n.headers.get(`etag`)??``).replaceAll(`"`,``)}},saveNote:(e,t)=>i(`PUT`,`note`+a(e),t),createNote:(e,t)=>i(`POST`,`note`+a(e),{text:t}),journal:e=>n(`journal`+a(e)),version:async(e,t)=>(await n(`version`+a(e)+`&entry=`+encodeURIComponent(t))).text,moveNote:(e,t,n)=>i(`POST`,`note/move`+a(e),{to:t,base:n}),deleteNote:async(e,t)=>{await i(`POST`,`note/delete`+a(e),{base:t})},restore:(e,t,n)=>i(`POST`,`note/restore`+a(e),{entry:t,base:n}),map:()=>n(`map`),timeline:()=>n(`timeline`),search:e=>n(`search?q=${encodeURIComponent(e)}`),agents:()=>n(`agents`),saveAgents:e=>i(`POST`,`agents`,{text:e}),nameRepository:async()=>!1,agentNotes:()=>n(`agents/notes`),setAgentNotes:e=>i(`POST`,`agents/notes`,{may:e}),brokenNews:async()=>[],conversations:()=>n(`conversations`),deleteConversation:async e=>{await i(`POST`,`conversation/delete`,{id:e})},conversation:async e=>{let t=await n(`conversation`+(e?a(e):``));return t.id?t:null},keep:(e,t,n)=>i(`POST`,`proposal/keep`+a(e),{proposal:t,...n===void 0?{}:{region:n}}),revise:async(e,t,n)=>{await i(`POST`,`proposal/revise`+a(e),{proposal:t,text:n})},discard:async(e,t,n)=>{await i(`POST`,`proposal/discard`+a(e),{proposal:t,...n===void 0?{}:{region:n}})},setDone:(e,t,n)=>i(`POST`,`note/done`+a(e),{done:t,base:n}),agentTools:()=>n(`agent/tools`),agentLook:e=>i(`POST`,`agent/look`,e),agentWrite:e=>i(`POST`,`agent/write`,e),agentSend:e=>i(`POST`,`agent/send`,e),agentReceived:async(e,t)=>{await i(`POST`,`agent/received`,{id:e,agent:t})},agentStatus:async(e,t,n)=>{await i(`POST`,`agent/status`,{agent:e,session:t,busy:n})},agentTake:e=>i(`POST`,`agent/take`,{id:e}),agentChanged:async()=>{throw Error(`only isorite acp tells the server of an agent's change`)},keepAgentRecord:async()=>{throw Error(`only the server keeps an agent's session`)},agentRecords:()=>n(`agent/records`),agentRecord:(e,t)=>n(`agent/record?agent=${encodeURIComponent(e)}&session=${encodeURIComponent(t)}`),deleteAgentRecord:async()=>{throw Error(`a kept session is removed through the pane's drawer`)},bases:{list:()=>n(`bases`),lend:async(e,t)=>(await i(`POST`,`bases/lend`,{name:e,lend:t})).bases},own:{repo:()=>n(`own/repo`),choose:e=>i(`POST`,`own/choose`,{choice:e})},terminal:{view:()=>n(`terminal`),prompt:async(e,t)=>{await i(`POST`,`terminal/prompt`,{asked:e,given:t})},stop:async()=>{await i(`POST`,`terminal/stop`,{})},reply:async(e,t)=>{await i(`POST`,`terminal/permission`,{id:e,decision:t})},take:e=>i(`POST`,`agent/take`,{id:e}),give:async e=>{await i(`POST`,`acp/give`,{given:e})},follow:async(e,t)=>{await i(`POST`,`acp/follow`,{agent:e,session:t})},fresh:async e=>{await i(`POST`,`acp/new`,{agent:e})},list:async()=>{await i(`POST`,`acp/list`,{})},set:async(e,t,n)=>{await i(`POST`,`acp/set`,{kind:e,id:t,value:n})},forget:async(e,t)=>{await i(`POST`,`acp/forget`,{agent:e,session:t})},project:()=>n(`connect`),writeProject:async()=>(await i(`POST`,`connect`,{})).written,chosen:()=>n(`acp/agent`),registry:()=>n(`acp/registry`),detected:()=>n(`acp/detected`),choose:e=>i(`POST`,`acp/choose`,{choice:e})},events(t){let n=new EventSource(e+`events`),r=e=>{try{t(JSON.parse(e.data))}catch{}};for(let e of[`note-changed`,`journal`,`agent-start`,`agent-step`,`agent-done`,`agent-sent`,`agent-received`,`agent-item`,`agent-taken`,`terminal`])n.addEventListener(e,r);return()=>n.close()}}}var Sc=new class{api;#e=r(null);get session(){return e(this.#e)}set session(e){n(this.#e,e)}#t=r({notes:[],dirs:[]});get listing(){return e(this.#t)}set listing(e){n(this.#t,e)}#n=r(``);get error(){return e(this.#n)}set error(e){n(this.#n,e,!0)}#r=r(``);get open(){return e(this.#r)}set open(e){n(this.#r,e,!0)}#i=r(``);get here(){return e(this.#i)}set here(e){n(this.#i,e,!0)}#a=r(null);get saving(){return e(this.#a)}set saving(e){n(this.#a,e,!0)}#o=r(null);get atlas(){return e(this.#o)}set atlas(e){n(this.#o,e)}#s=r(null);get iso(){return e(this.#s)}set iso(e){n(this.#s,e)}listeners=new Set;relist=null;async load(e=xc()){this.api=e;try{[this.session,this.listing]=await Promise.all([e.session(),e.notes()])}catch(e){this.error=e.message;return}e.events(e=>{this.follow(e);for(let t of this.listeners)t(e);e.type===`note-changed`&&(this.relist&&clearTimeout(this.relist),this.relist=setTimeout(()=>{this.refresh()},300))})}async refresh(){try{this.listing=await this.api.notes()}catch{}}follow(e){(e.type===`agent-start`||e.type===`agent-step`)&&this.iso?.request!==e.request&&(this.iso={request:e.request,note:``,agent:e.agent,state:`reading`,steps:[],message:``});let t=this.iso;t&&`request`in e&&e.request===t.request&&(e.type===`agent-step`?this.iso={...t,state:`reading`,steps:[...t.steps,e.step]}:e.type===`agent-done`&&(this.iso={...t,state:`done`}))}on(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},Cc=e=>a(`/n/[...id]`,{id:e});function wc(e){return e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,`-`).replace(/^-+|-+$/g,``)}function Tc(e){let t=e.trim().replace(/^\/+/,``).replace(/\.md$/,``),n=t.includes(`/`)?Sc.listing.notes.filter(e=>e.id===t):Sc.listing.notes.filter(e=>e.id.split(`/`).at(-1)===t),r=n.length===1?n[0]:null;return r?{id:r.id,title:r.title,kind:r.kind??`note`,done:!!r.done}:null}var Ec=(e,t)=>{try{return localStorage.getItem(e)??t}catch{return t}},Dc=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},Oc=(e,t)=>{try{return{...t,...JSON.parse(Ec(e,`{}`))}}catch{return t}},$=[`note`,`atlas`,`iso`],kc=[`cols`,`stack`,`one`],Ac={note:[`provenance`,`timeline`],atlas:[`questions`,`problems`,`web`,`code`,`pictures`,`context`],iso:[`notes`,`files`,`run`]},jc={provenance:!1,timeline:!1,questions:!0,problems:!0,web:!1,code:!1,pictures:!1,context:!1,notes:!0,files:!1,run:!1},Mc={note:1.25,atlas:1,iso:1.05},Nc={min:.4,max:3},Pc=new class{#e=r(i(kc.includes(Ec(`isorite.layout`,``))?Ec(`isorite.layout`,``):`cols`));get layout(){return e(this.#e)}set layout(e){n(this.#e,e,!0)}#t=r(i(Oc(`isorite.show`,{note:!0,atlas:!0,iso:!0})));get show(){return e(this.#t)}set show(e){n(this.#t,e,!0)}#n=r(i(Oc(`isorite.widths`,Mc)));get widths(){return e(this.#n)}set widths(e){n(this.#n,e,!0)}#r=r(i(Oc(`isorite.switches`,jc)));get on(){return e(this.#r)}set on(e){n(this.#r,e,!0)}#i=r(`note`);get focus(){return e(this.#i)}set focus(e){n(this.#i,e,!0)}#a=r(!1);get narrow(){return e(this.#a)}set narrow(e){n(this.#a,e,!0)}#o=r(0);get unseen(){return e(this.#o)}set unseen(e){n(this.#o,e,!0)}#s=r(!1);get tree(){return e(this.#s)}set tree(e){n(this.#s,e,!0)}#c=r(``);get fresh(){return e(this.#c)}set fresh(e){n(this.#c,e,!0)}#l=r(null);get settings(){return e(this.#l)}set settings(e){n(this.#l,e,!0)}#u=r(i(Ec(vc(`isorite.last`),``)));get last(){return e(this.#u)}set last(e){n(this.#u,e,!0)}get standing(){if(this.narrow)return[...$];let e=$.filter(e=>this.show[e]);return this.layout===`one`?[e.includes(this.focus)?this.focus:e[0]??`note`]:e}setLayout(e){this.layout=e,Dc(`isorite.layout`,e)}nextLayout(){this.setLayout(kc[(kc.indexOf(this.layout)+1)%kc.length])}toggle(e){this.show[e]&&$.filter(e=>this.show[e]).length===1||(this.show[e]=!this.show[e],Dc(`isorite.show`,JSON.stringify(this.show)),!this.show[e]&&this.focus===e&&(this.focus=$.find(e=>this.show[e])))}setWidth(e,t){this.widths[e]=Math.min(Nc.max,Math.max(Nc.min,t)),Dc(`isorite.widths`,JSON.stringify(this.widths))}to(e){!this.narrow&&!this.show[e]&&this.toggle(e),this.focus=e,e===`iso`&&(this.unseen=0),this.scroll?.(e)}scroll=null;step(e){let t=this.narrow?[...$]:$.filter(e=>this.show[e]),n=t.indexOf(this.focus);this.to(t[(n+e+t.length)%t.length])}flip(e,t=!this.on[e]){this.on[e]=t,Dc(`isorite.switches`,JSON.stringify(this.on)),e===`notes`&&this.notesFlipped?.(t)}notesFlipped=null;busy(e){let t=typeof document>`u`?null:document.activeElement;return!!t&&!!t.closest(`[data-pane="${e}"]`)&&(t.matches(`input, textarea, [contenteditable=true]`)||!!t.closest(`.cm-editor`))}#d=r(!1);get attached(){return e(this.#d)}set attached(e){n(this.#d,e,!0)}setAttached(e){this.attached=e}setLast(e){e&&!e.startsWith(`@`)&&(this.last=e,Dc(vc(`isorite.last`),e))}async open(e,t=this.narrow){await o(Cc(e)),t&&this.to(`note`)}async home(){await o(a(`/notes`))}};export{Is as A,Ys as C,Ms as D,zs as E,Dr as F,Sr as I,js as M,Os as N,Ls as O,Q as P,Zs as S,Vs as T,fc as _,Sc as a,hc as b,wc as c,yc as d,vc as f,dc as g,rc as h,Pc as i,Ps as j,Fs as k,bc as l,uc as m,$ as n,Tc as o,gc as p,Ac as r,Cc as s,kc as t,_c as u,lc as v,Js as w,sc as x,cc as y};
152
+ `).map((e,t)=>t);let t=[],n=0;for(let r of e.hunks){for(let e=0;e<r.ins.length;e++)t.push(r.at+n+e);n+=r.ins.length-r.del.length}return t}function hc(e,t){let n=new Set(t),r=new Set,i=!1;for(let t of e){if(!ic(t))continue;let e=new Set;for(let n of r){let r=pc(t.hunks,n);r!==null&&e.add(r)}if(r=e,n.has(t.id))for(let e of mc(t))r.add(e),i=!0}let a=[...r].sort((e,t)=>e-t),o=[];for(let e of a){let t=o[o.length-1];t&&t.to===e?t.to=e+1:o.push({from:e,to:e+1})}return{runs:o,removed:i&&!o.length}}``.isWellFormed;function gc(e,t){let n=e.edges.some(([,,e])=>e>=Ys.requires)?Ys.requires:Ys.uses,r=new Map,i=new Map,a=new Set,o=new Set,s=[];for(let[c,l,u]of e.edges)if(c!==l){if(u<n){if(c!==t&&l!==t)continue;(u>=Ys.uses?a:o).add(c===t?l:c),u>=Ys.uses&&s.push({from:c,to:l,kind:`uses`})}else r.set(c,[...r.get(c)??[],l]),i.set(l,[...i.get(l)??[],c])}let c={},l={},u=new Set([t]),d=[],f=[],p=[t];for(let e=0;e<p.length;e++){let t=p[e];for(let e of r.get(t)??[])f.push({from:t,to:e,kind:`requires`}),!u.has(e)&&(u.add(e),d.push(e),p.push(e),c[e]=(c[t]??0)+1,l[e]=t)}let m=new Map;for(let e of f)m.set(e.from,(m.get(e.from)??new Set).add(e.to));for(let e of f){let t=new Set,n=[...m.get(e.from)].filter(t=>t!==e.to),r=!1;for(;n.length&&!r;){let i=n.pop();i===e.to?r=!0:i!==e.from&&!t.has(i)&&(t.add(i),n.push(...m.get(i)??[]))}r&&(e.spare=!0,m.get(e.from).delete(e.to))}let h=[...new Set(i.get(t)??[])];for(let e of h)f.push({from:e,to:t,kind:`builds`});let g=new Set([...d,...h]);return{requires:d,depth:c,via:l,builds:h,uses:[...a].filter(e=>!g.has(e)),also:[...o].filter(e=>!g.has(e)&&!a.has(e)),links:[...f,...s.filter(e=>!g.has(e.from===t?e.to:e.from))]}}function _c(){try{return new URLSearchParams(location.search).get(`base`)??``}catch{return``}}var vc=e=>_c()?`${e}@${_c()}`:e;function yc(e,t=``){return`${location.origin}${location.pathname}?base=${encodeURIComponent(e)}${t}`}var bc=class extends Error{status;current;constructor(e,t,n){super(e),this.status=t,this.current=n}};function xc(e=new URL(_c()?`b/${encodeURIComponent(_c())}/api/`:`api/`,document.baseURI).href){let t=null,n=async(t,n)=>{let r;try{r=await fetch(e+t,n)}catch{throw new bc(`isorite is not answering`,0)}let i=await r.json().catch(()=>({}));if(!r.ok)throw new bc(i.error??r.statusText,r.status,i.current);return i},r=()=>n(`session`),i=async(e,i,a)=>{t??=r().then(e=>e.token);let o={"Content-Type":`application/json`,"x-isorite-token":await t};return n(i,{method:e,headers:o,body:JSON.stringify(a)})},a=e=>`?id=${encodeURIComponent(e)}`,o=(t,n=`notes`)=>`${e}file?${n===`code`?`code`:`path`}=${encodeURIComponent(t)}`;return{session:async()=>{let{token:e,...n}=await r();return t=Promise.resolve(e),n},notes:()=>n(`notes`),readNote:e=>n(`note`+a(e)),fileUrl:o,pictures:()=>n(`pictures`),code:e=>n(`code?href=${encodeURIComponent(e)}`),savePicture:async(e,i)=>{t??=r().then(e=>e.token);let a=As(e)??`application/octet-stream`;return n(`file?path=${encodeURIComponent(e)}`,{method:`POST`,headers:{"Content-Type":a,"x-isorite-token":await t},body:i})},file:async(e,t)=>{let n;try{n=await fetch(o(e,t))}catch{throw new bc(`isorite is not answering`,0)}if(n.status===404)return null;if(!n.ok)throw new bc((await n.json().catch(()=>({}))).error??n.statusText,n.status);return{bytes:new Uint8Array(await n.arrayBuffer()),type:n.headers.get(`content-type`)??``,version:(n.headers.get(`etag`)??``).replaceAll(`"`,``)}},saveNote:(e,t)=>i(`PUT`,`note`+a(e),t),createNote:(e,t)=>i(`POST`,`note`+a(e),{text:t}),journal:e=>n(`journal`+a(e)),version:async(e,t)=>(await n(`version`+a(e)+`&entry=`+encodeURIComponent(t))).text,makeFolder:e=>i(`POST`,`folder`,{path:e}),moveNote:(e,t,n)=>i(`POST`,`note/move`+a(e),{to:t,base:n}),deleteNote:async(e,t)=>{await i(`POST`,`note/delete`+a(e),{base:t})},restore:(e,t,n)=>i(`POST`,`note/restore`+a(e),{entry:t,base:n}),map:()=>n(`map`),timeline:()=>n(`timeline`),search:e=>n(`search?q=${encodeURIComponent(e)}`),agents:()=>n(`agents`),saveAgents:e=>i(`POST`,`agents`,{text:e}),nameRepository:async()=>!1,agentNotes:()=>n(`agents/notes`),setAgentNotes:e=>i(`POST`,`agents/notes`,{may:e}),brokenNews:async()=>[],conversations:()=>n(`conversations`),deleteConversation:async e=>{await i(`POST`,`conversation/delete`,{id:e})},conversation:async e=>{let t=await n(`conversation`+(e?a(e):``));return t.id?t:null},keep:(e,t,n)=>i(`POST`,`proposal/keep`+a(e),{proposal:t,...n===void 0?{}:{region:n}}),revise:async(e,t,n)=>{await i(`POST`,`proposal/revise`+a(e),{proposal:t,text:n})},discard:async(e,t,n)=>{await i(`POST`,`proposal/discard`+a(e),{proposal:t,...n===void 0?{}:{region:n}})},setDone:(e,t,n)=>i(`POST`,`note/done`+a(e),{done:t,base:n}),agentTools:()=>n(`agent/tools`),agentLook:e=>i(`POST`,`agent/look`,e),agentWrite:e=>i(`POST`,`agent/write`,e),agentSend:e=>i(`POST`,`agent/send`,e),agentReceived:async(e,t)=>{await i(`POST`,`agent/received`,{id:e,agent:t})},agentStatus:async(e,t,n)=>{await i(`POST`,`agent/status`,{agent:e,session:t,busy:n})},agentTake:e=>i(`POST`,`agent/take`,{id:e}),agentChanged:async()=>{throw Error(`only isorite acp tells the server of an agent's change`)},keepAgentRecord:async()=>{throw Error(`only the server keeps an agent's session`)},agentRecords:()=>n(`agent/records`),agentRecord:(e,t)=>n(`agent/record?agent=${encodeURIComponent(e)}&session=${encodeURIComponent(t)}`),deleteAgentRecord:async()=>{throw Error(`a kept session is removed through the pane's drawer`)},bases:{list:()=>n(`bases`),lend:async(e,t)=>(await i(`POST`,`bases/lend`,{name:e,lend:t})).bases},own:{repo:()=>n(`own/repo`),choose:e=>i(`POST`,`own/choose`,{choice:e})},terminal:{view:()=>n(`terminal`),prompt:async(e,t)=>{await i(`POST`,`terminal/prompt`,{asked:e,given:t})},stop:async()=>{await i(`POST`,`terminal/stop`,{})},reply:async(e,t)=>{await i(`POST`,`terminal/permission`,{id:e,decision:t})},take:e=>i(`POST`,`agent/take`,{id:e}),give:async e=>{await i(`POST`,`acp/give`,{given:e})},follow:async(e,t)=>{await i(`POST`,`acp/follow`,{agent:e,session:t})},fresh:async e=>{await i(`POST`,`acp/new`,{agent:e})},list:async()=>{await i(`POST`,`acp/list`,{})},set:async(e,t,n)=>{await i(`POST`,`acp/set`,{kind:e,id:t,value:n})},forget:async(e,t)=>{await i(`POST`,`acp/forget`,{agent:e,session:t})},project:()=>n(`connect`),writeProject:async()=>(await i(`POST`,`connect`,{})).written,chosen:()=>n(`acp/agent`),registry:()=>n(`acp/registry`),detected:()=>n(`acp/detected`),choose:e=>i(`POST`,`acp/choose`,{choice:e})},events(t){let n=new EventSource(e+`events`),r=e=>{try{t(JSON.parse(e.data))}catch{}};for(let e of[`note-changed`,`journal`,`agent-start`,`agent-step`,`agent-done`,`agent-sent`,`agent-received`,`agent-item`,`agent-taken`,`terminal`])n.addEventListener(e,r);return()=>n.close()}}}var Sc=new class{api;#e=r(null);get session(){return e(this.#e)}set session(e){n(this.#e,e)}#t=r({notes:[],dirs:[]});get listing(){return e(this.#t)}set listing(e){n(this.#t,e)}#n=r(``);get error(){return e(this.#n)}set error(e){n(this.#n,e,!0)}#r=r(``);get open(){return e(this.#r)}set open(e){n(this.#r,e,!0)}#i=r(``);get here(){return e(this.#i)}set here(e){n(this.#i,e,!0)}#a=r(null);get saving(){return e(this.#a)}set saving(e){n(this.#a,e,!0)}#o=r(null);get atlas(){return e(this.#o)}set atlas(e){n(this.#o,e)}#s=r(null);get iso(){return e(this.#s)}set iso(e){n(this.#s,e)}listeners=new Set;relist=null;async load(e=xc()){this.api=e;try{[this.session,this.listing]=await Promise.all([e.session(),e.notes()])}catch(e){this.error=e.message;return}e.events(e=>{this.follow(e);for(let t of this.listeners)t(e);e.type===`note-changed`&&(this.relist&&clearTimeout(this.relist),this.relist=setTimeout(()=>{this.refresh()},300))})}async refresh(){try{this.listing=await this.api.notes()}catch{}}follow(e){(e.type===`agent-start`||e.type===`agent-step`)&&this.iso?.request!==e.request&&(this.iso={request:e.request,note:``,agent:e.agent,state:`reading`,steps:[],message:``});let t=this.iso;t&&`request`in e&&e.request===t.request&&(e.type===`agent-step`?this.iso={...t,state:`reading`,steps:[...t.steps,e.step]}:e.type===`agent-done`&&(this.iso={...t,state:`done`}))}on(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},Cc=e=>a(`/n/[...id]`,{id:e});function wc(e){return e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,`-`).replace(/^-+|-+$/g,``)}function Tc(e){let t=e.trim().replace(/^\/+/,``).replace(/\.md$/,``),n=t.includes(`/`)?Sc.listing.notes.filter(e=>e.id===t):Sc.listing.notes.filter(e=>e.id.split(`/`).at(-1)===t),r=n.length===1?n[0]:null;return r?{id:r.id,title:r.title,kind:r.kind??`note`,done:!!r.done}:null}var Ec=(e,t)=>{try{return localStorage.getItem(e)??t}catch{return t}},Dc=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},Oc=(e,t)=>{try{return{...t,...JSON.parse(Ec(e,`{}`))}}catch{return t}},$=[`note`,`atlas`,`iso`],kc=[`cols`,`stack`,`one`],Ac={note:[`provenance`,`timeline`],atlas:[`questions`,`problems`,`web`,`code`,`pictures`,`context`],iso:[`notes`,`files`,`run`]},jc={provenance:!1,timeline:!1,questions:!0,problems:!0,web:!1,code:!1,pictures:!1,context:!1,notes:!0,files:!1,run:!1},Mc={note:1.25,atlas:1,iso:1.05},Nc={min:.4,max:3},Pc=new class{#e=r(i(kc.includes(Ec(`isorite.layout`,``))?Ec(`isorite.layout`,``):`cols`));get layout(){return e(this.#e)}set layout(e){n(this.#e,e,!0)}#t=r(i(Oc(`isorite.show`,{note:!0,atlas:!0,iso:!0})));get show(){return e(this.#t)}set show(e){n(this.#t,e,!0)}#n=r(i(Oc(`isorite.widths`,Mc)));get widths(){return e(this.#n)}set widths(e){n(this.#n,e,!0)}#r=r(i(Oc(`isorite.switches`,jc)));get on(){return e(this.#r)}set on(e){n(this.#r,e,!0)}#i=r(`note`);get focus(){return e(this.#i)}set focus(e){n(this.#i,e,!0)}#a=r(!1);get narrow(){return e(this.#a)}set narrow(e){n(this.#a,e,!0)}#o=r(0);get unseen(){return e(this.#o)}set unseen(e){n(this.#o,e,!0)}#s=r(!1);get tree(){return e(this.#s)}set tree(e){n(this.#s,e,!0)}#c=r(``);get fresh(){return e(this.#c)}set fresh(e){n(this.#c,e,!0)}#l=r(null);get settings(){return e(this.#l)}set settings(e){n(this.#l,e,!0)}#u=r(i(Ec(vc(`isorite.last`),``)));get last(){return e(this.#u)}set last(e){n(this.#u,e,!0)}get standing(){if(this.narrow)return[...$];let e=$.filter(e=>this.show[e]);return this.layout===`one`?[e.includes(this.focus)?this.focus:e[0]??`note`]:e}setLayout(e){this.layout=e,Dc(`isorite.layout`,e)}nextLayout(){this.setLayout(kc[(kc.indexOf(this.layout)+1)%kc.length])}toggle(e){this.show[e]&&$.filter(e=>this.show[e]).length===1||(this.show[e]=!this.show[e],Dc(`isorite.show`,JSON.stringify(this.show)),!this.show[e]&&this.focus===e&&(this.focus=$.find(e=>this.show[e])))}setWidth(e,t){this.widths[e]=Math.min(Nc.max,Math.max(Nc.min,t)),Dc(`isorite.widths`,JSON.stringify(this.widths))}to(e){!this.narrow&&!this.show[e]&&this.toggle(e),this.focus=e,e===`iso`&&(this.unseen=0),this.scroll?.(e)}scroll=null;step(e){let t=this.narrow?[...$]:$.filter(e=>this.show[e]),n=t.indexOf(this.focus);this.to(t[(n+e+t.length)%t.length])}flip(e,t=!this.on[e]){this.on[e]=t,Dc(`isorite.switches`,JSON.stringify(this.on)),e===`notes`&&this.notesFlipped?.(t)}notesFlipped=null;busy(e){let t=typeof document>`u`?null:document.activeElement;return!!t&&!!t.closest(`[data-pane="${e}"]`)&&(t.matches(`input, textarea, [contenteditable=true]`)||!!t.closest(`.cm-editor`))}#d=r(!1);get attached(){return e(this.#d)}set attached(e){n(this.#d,e,!0)}setAttached(e){this.attached=e}setLast(e){e&&!e.startsWith(`@`)&&(this.last=e,Dc(vc(`isorite.last`),e))}async open(e,t=this.narrow){await o(Cc(e)),t&&this.to(`note`)}async home(){await o(a(`/notes`))}};export{Is as A,Ys as C,Ms as D,zs as E,Dr as F,Sr as I,js as M,Os as N,Ls as O,Q as P,Zs as S,Vs as T,fc as _,Sc as a,hc as b,wc as c,yc as d,vc as f,dc as g,rc as h,Pc as i,Ps as j,Fs as k,bc as l,uc as m,$ as n,Tc as o,gc as p,Ac as r,Cc as s,kc as t,_c as u,lc as v,Js as w,sc as x,cc as y};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BTVYyqUm.js","../chunks/AnnzTlE8.js","../chunks/LbnMg2Kc.js","../chunks/xihTtKlq.js","../chunks/BDJlNL-I.js","../chunks/Dx_7xlS4.js","../chunks/CRzLMJPS.js","../chunks/BxTFtVqu.js","../chunks/yxd8jSz3.js","../assets/drawn.D6lJzDcc.css","../chunks/D1MhxXyn.js","../chunks/CSTv2fL0.js","../assets/ground.hxi5N5fC.css","../chunks/B7Bf3hc7.js","../chunks/B9TKPEJD.js","../assets/FolderField._A4_sc1Z.css","../assets/NoteList.E6jC-AtZ.css","../assets/0.CtWz9d2A.css","../nodes/1.DR-b7PMP.js","../nodes/2.BePyTqoa.js","../chunks/C7qBBO-i.js","../nodes/3.D2rfIXQP.js","../nodes/4.7tuUcODS.js","../assets/4.fOHsAKBF.css","../nodes/5.Cs9hcGU9.js","../nodes/6.DzvF0ZPt.js","../assets/6.C00vyVPo.css"])))=>i.map(i=>d[i]);
2
- import{A as e,I as t,J as n,K as r,M as i,N as a,O as o,P as s,Q as c,S as l,U as u,V as d,Z as f,ct as p,et as m,i as h,it as g,l as _,lt as v,n as y,nt as b,pt as x,q as S,r as C,rt as w}from"../chunks/AnnzTlE8.js";import{t as T}from"../chunks/CRzLMJPS.js";import"../chunks/xihTtKlq.js";var E={},D=s(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=s(`<!> <!>`,1);function k(s,C){v(C,!0);let T=h(C,`components`,23,()=>[]),E=h(C,`data_0`,3,null),k=h(C,`data_1`,3,null);n(()=>C.stores.page.set(C.page)),S(()=>{C.stores,C.page,C.constructors,T(),C.form,E(),k(),C.stores.page.notify()});let A=w(!1),j=w(!1),M=w(null);y(()=>{let e=C.stores.page.subscribe(()=>{d(A)&&(b(j,!0),u().then(()=>{b(M,document.title||`untitled page`,!0)}))});return b(A,!0),e});let N=g(()=>C.constructors[1]);var P=O(),F=c(P),I=e=>{let t=g(()=>C.constructors[0]);var n=a(),r=c(n);l(r,()=>d(t),(e,t)=>{_(t(e,{get data(){return E()},get form(){return C.form},get params(){return C.page.params},children:(e,t)=>{var n=a(),r=c(n);l(r,()=>d(N),(e,t)=>{_(t(e,{get data(){return k()},get form(){return C.form},get params(){return C.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),i(e,n)},L=e=>{let t=g(()=>C.constructors[0]);var n=a(),r=c(n);l(r,()=>d(t),(e,t)=>{_(t(e,{get data(){return E()},get form(){return C.form},get params(){return C.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),i(e,n)};o(F,e=>{C.constructors[1]?e(I):e(L,-1)});var R=m(F,2),z=n=>{var a=D(),s=f(a),c=n=>{var a=t();r(()=>e(a,d(M))),i(n,a)};o(s,e=>{d(j)&&e(c)}),x(a),i(n,a)};o(R,e=>{d(A)&&e(z)}),i(s,P),p()}var A=C(k),j=[()=>T(()=>import(`../nodes/0.BTVYyqUm.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),()=>T(()=>import(`../nodes/1.DR-b7PMP.js`),__vite__mapDeps([18,1,3,10,2]),import.meta.url),()=>T(()=>import(`../nodes/2.BePyTqoa.js`),__vite__mapDeps([19,1,2,3,4,20]),import.meta.url),()=>T(()=>import(`../nodes/3.D2rfIXQP.js`),__vite__mapDeps([21,1,2,3,4,10,20]),import.meta.url),()=>T(()=>import(`../nodes/4.7tuUcODS.js`),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,14,15,23]),import.meta.url),()=>T(()=>import(`../nodes/5.Cs9hcGU9.js`),__vite__mapDeps([24,1,3,13,2,4,14,15,16,20]),import.meta.url),()=>T(()=>import(`../nodes/6.DzvF0ZPt.js`),__vite__mapDeps([25,1,3,11,12,20,26]),import.meta.url)],M=[],N={"/":[2],"/atlas":[3],"/notes":[5],"/n/[...id]":[4],"/parts":[6]},P={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},F=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.decode])),I=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.encode])),L=!0,R=(e,t)=>F[e](t),z=()=>T(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{R as decode,F as decoders,N as dictionary,I as encoders,z as get_error_template,L as hash,P as hooks,E as matchers,j as nodes,A as root,M as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C9NFEqJd.js","../chunks/AnnzTlE8.js","../chunks/BMijTvgG.js","../chunks/xihTtKlq.js","../chunks/Wv-ICQRy.js","../chunks/CA-rzUq8.js","../chunks/CRzLMJPS.js","../chunks/BxTFtVqu.js","../chunks/yxd8jSz3.js","../assets/drawn.D6lJzDcc.css","../chunks/CTuuQ66F.js","../chunks/CSTv2fL0.js","../assets/ground.hxi5N5fC.css","../chunks/BHORylQC.js","../chunks/TmxIGCN3.js","../assets/FolderField._A4_sc1Z.css","../assets/NoteList.C2GYAaLW.css","../assets/0.BEFtmzIh.css","../nodes/1.B5PJwWOG.js","../nodes/2.DRtC7zjs.js","../chunks/C7qBBO-i.js","../nodes/3.EEMisvUL.js","../nodes/4.DthmsFQC.js","../assets/4.LR47AJKA.css","../nodes/5.CEu0DlpQ.js","../nodes/6.DzvF0ZPt.js","../assets/6.C00vyVPo.css"])))=>i.map(i=>d[i]);
2
+ import{A as e,I as t,J as n,K as r,M as i,N as a,O as o,P as s,Q as c,S as l,U as u,V as d,Z as f,ct as p,et as m,i as h,it as g,l as _,lt as v,n as y,nt as b,pt as x,q as S,r as C,rt as w}from"../chunks/AnnzTlE8.js";import{t as T}from"../chunks/CRzLMJPS.js";import"../chunks/xihTtKlq.js";var E={},D=s(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=s(`<!> <!>`,1);function k(s,C){v(C,!0);let T=h(C,`components`,23,()=>[]),E=h(C,`data_0`,3,null),k=h(C,`data_1`,3,null);n(()=>C.stores.page.set(C.page)),S(()=>{C.stores,C.page,C.constructors,T(),C.form,E(),k(),C.stores.page.notify()});let A=w(!1),j=w(!1),M=w(null);y(()=>{let e=C.stores.page.subscribe(()=>{d(A)&&(b(j,!0),u().then(()=>{b(M,document.title||`untitled page`,!0)}))});return b(A,!0),e});let N=g(()=>C.constructors[1]);var P=O(),F=c(P),I=e=>{let t=g(()=>C.constructors[0]);var n=a(),r=c(n);l(r,()=>d(t),(e,t)=>{_(t(e,{get data(){return E()},get form(){return C.form},get params(){return C.page.params},children:(e,t)=>{var n=a(),r=c(n);l(r,()=>d(N),(e,t)=>{_(t(e,{get data(){return k()},get form(){return C.form},get params(){return C.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),i(e,n)},L=e=>{let t=g(()=>C.constructors[0]);var n=a(),r=c(n);l(r,()=>d(t),(e,t)=>{_(t(e,{get data(){return E()},get form(){return C.form},get params(){return C.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),i(e,n)};o(F,e=>{C.constructors[1]?e(I):e(L,-1)});var R=m(F,2),z=n=>{var a=D(),s=f(a),c=n=>{var a=t();r(()=>e(a,d(M))),i(n,a)};o(s,e=>{d(j)&&e(c)}),x(a),i(n,a)};o(R,e=>{d(A)&&e(z)}),i(s,P),p()}var A=C(k),j=[()=>T(()=>import(`../nodes/0.C9NFEqJd.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),()=>T(()=>import(`../nodes/1.B5PJwWOG.js`),__vite__mapDeps([18,1,3,10,2]),import.meta.url),()=>T(()=>import(`../nodes/2.DRtC7zjs.js`),__vite__mapDeps([19,1,2,3,4,20]),import.meta.url),()=>T(()=>import(`../nodes/3.EEMisvUL.js`),__vite__mapDeps([21,1,2,3,4,10,20]),import.meta.url),()=>T(()=>import(`../nodes/4.DthmsFQC.js`),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,14,15,23]),import.meta.url),()=>T(()=>import(`../nodes/5.CEu0DlpQ.js`),__vite__mapDeps([24,1,3,13,2,4,14,15,16,20]),import.meta.url),()=>T(()=>import(`../nodes/6.DzvF0ZPt.js`),__vite__mapDeps([25,1,3,11,12,20,26]),import.meta.url)],M=[],N={"/":[2],"/atlas":[3],"/notes":[5],"/n/[...id]":[4],"/parts":[6]},P={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},F=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.decode])),I=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.encode])),L=!0,R=(e,t)=>F[e](t),z=()=>T(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{R as decode,F as decoders,N as dictionary,I as encoders,z as get_error_template,L as hash,P as hooks,E as matchers,j as nodes,A as root,M as server_loads};
@@ -0,0 +1 @@
1
+ export{a as load_css,n as start}from"../chunks/BMijTvgG.js";