@apollosproject/canvas-embeds 2.1.1941 → 2.1.1942

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 (2) hide show
  1. package/package.json +4 -4
  2. package/widget/index.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apollosproject/canvas-embeds",
3
3
  "description": "Apollos React embed widgets",
4
- "version": "2.1.1941",
4
+ "version": "2.1.1942",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -96,7 +96,7 @@
96
96
  "@vitest/coverage-v8": "^4.0.0",
97
97
  "autoprefixer": "^10.4.20",
98
98
  "bfj": "^9.1.1",
99
- "browserslist": "^4.24.2",
99
+ "browserslist": "^4.28.7",
100
100
  "cross-env": "^7.0.3",
101
101
  "dotenv": "^16.4.5",
102
102
  "dotenv-cli": "^8.0.0",
@@ -107,7 +107,7 @@
107
107
  "eslint-plugin-simple-import-sort": "^12.1.1",
108
108
  "fs-extra": "^11.2.0",
109
109
  "jsdom": "^29.1.1",
110
- "postcss": "^8.5.10",
110
+ "postcss": "^8.5.23",
111
111
  "postcss-flexbugs-fixes": "^5.0.2",
112
112
  "postcss-loader": "^8.1.1",
113
113
  "postcss-normalize": "^13.0.1",
@@ -121,7 +121,7 @@
121
121
  "resolve-url-loader": "^5.0.0",
122
122
  "sass-loader": "^16.0.3",
123
123
  "ts-loader": "^9.5.1",
124
- "vite": "^7.3.5",
124
+ "vite": "^7.3.6",
125
125
  "vitest": "^4.0.0"
126
126
  },
127
127
  "targets": {
package/widget/index.js CHANGED
@@ -846,7 +846,7 @@ Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}
846
846
  `;break}case-3:{o=`\r
847
847
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}function Ln1(a){const r={constructs:uA0([yn1,...(a||{}).extensions||[]]),content:l(X61),defined:[],document:l(e41),flow:l(An1),lazy:{},string:l(En1),text:l(Mn1)};return r;function l(i){return o;function o(s){return kn1(r,i,s)}}}function bn1(a){for(;!EA0(a););return a}const bA0=/[\0\t\n\r]/g;function _n1(){let a=1,t="",n=!0,r;return l;function l(i,o,s){const c=[];let d,h,p,f,v;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(bA0.lastIndex=p,d=bA0.exec(i),f=d&&d.index!==void 0?d.index:i.length,v=i.charCodeAt(f),!d){t=i.slice(p);break}if(v===10&&p===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<f&&(c.push(i.slice(p,f)),a+=f-p),v){case 0:{c.push(65533),a++;break}case 9:{for(h=Math.ceil(a/4)*4,c.push(-2);a++<h;)c.push(-1);break}case 10:{c.push(-4),a=1;break}default:r=!0,a=1}p=f+1}return s&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const wn1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nn1(a){return a.replace(wn1,Cn1)}function Cn1(a,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return hA0(n.slice(i?2:1),i?16:10)}return Iw(n)||a}const _A0={}.hasOwnProperty;function Tn1(a,t,n){return typeof t!="string"&&(n=t,t=void 0),xn1(n)(bn1(Ln1(n).document().write(_n1()(a,t,!0))))}function xn1(a){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(H1),autolinkProtocol:j,autolinkEmail:j,atxHeading:i(c0),blockQuote:i(A0),characterEscape:j,characterReference:j,codeFenced:i(F0),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(F0,o),codeText:i(C0,o),codeTextData:j,data:j,codeFlowValue:j,definition:i(Y),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(r0),hardBreakEscape:i(k0),hardBreakTrailing:i(k0),htmlFlow:i(O0,o),htmlFlowData:j,htmlText:i(O0,o),htmlTextData:j,image:i(n1),label:o,link:i(H1),listItem:i(ae),listItemValue:f,listOrdered:i(y1,p),listUnordered:i(y1),paragraph:i(d1),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(c0),strong:i(a1),thematicBreak:i(m1)},exit:{atxHeading:c(),atxHeadingSequence:F,autolink:c(),autolinkEmail:f0,autolinkProtocol:o0,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:y0,characterReferenceMarkerNumeric:y0,characterReferenceValue:p0,characterReference:B0,codeFenced:c(M),codeFencedFence:E,codeFencedFenceInfo:v,codeFencedFenceMeta:Z,codeFlowValue:O,codeIndented:c(y),codeText:c(U),codeTextData:O,data:O,definition:c(),definitionDestinationString:w,definitionLabelString:L,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(a0),hardBreakTrailing:c(a0),htmlFlow:c(J),htmlFlowData:O,htmlText:c(K),htmlTextData:O,image:c(E0),label:s0,labelText:l0,lineEnding:G,link:c(h0),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:H0,resourceDestinationString:q,resourceTitleString:X,resource:n0,setextHeading:c($),setextHeadingLineSequence:I,setextHeadingText:N,strong:c(),thematicBreak:c()}};wA0(t,(a||{}).mdastExtensions||[]);const n={};return r;function r(N0){let G0={type:"root",children:[]};const i1={stack:[G0],tokenStack:[],config:t,enter:s,exit:d,buffer:o,resume:h,data:n},x1=[];let le=-1;for(;++le<N0.length;)if(N0[le][1].type==="listOrdered"||N0[le][1].type==="listUnordered")if(N0[le][0]==="enter")x1.push(le);else{const o1=x1.pop();le=l(N0,o1,le)}for(le=-1;++le<N0.length;){const o1=t[N0[le][0]];_A0.call(o1,N0[le][1].type)&&o1[N0[le][1].type].call(Object.assign({sliceSerialize:N0[le][2].sliceSerialize},i1),N0[le][1])}if(i1.tokenStack.length>0){const o1=i1.tokenStack[i1.tokenStack.length-1];(o1[1]||NA0).call(i1,void 0,o1[0])}for(G0.position={start:N3(N0.length>0?N0[0][1].start:{line:1,column:1,offset:0}),end:N3(N0.length>0?N0[N0.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<t.transforms.length;)G0=t.transforms[le](G0)||G0;return G0}function l(N0,G0,i1){let x1=G0-1,le=-1,o1=!1,C1,w1,Ae,Pe;for(;++x1<=i1;){const ye=N0[x1];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?le++:le--,Pe=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(C1&&!Pe&&!le&&!Ae&&(Ae=x1),Pe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pe=void 0}if(!le&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||le===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(C1){let i2=x1;for(w1=void 0;i2--;){const f2=N0[i2];if(f2[1].type==="lineEnding"||f2[1].type==="lineEndingBlank"){if(f2[0]==="exit")continue;w1&&(N0[w1][1].type="lineEndingBlank",o1=!0),f2[1].type="lineEnding",w1=i2}else if(!(f2[1].type==="linePrefix"||f2[1].type==="blockQuotePrefix"||f2[1].type==="blockQuotePrefixWhitespace"||f2[1].type==="blockQuoteMarker"||f2[1].type==="listItemIndent"))break}Ae&&(!w1||Ae<w1)&&(C1._spread=!0),C1.end=Object.assign({},w1?N0[w1][1].start:ye[1].end),N0.splice(w1||x1,0,["exit",C1,ye[2]]),x1++,i1++}if(ye[1].type==="listItemPrefix"){const i2={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};C1=i2,N0.splice(x1,0,["enter",i2,ye[2]]),x1++,i1++,Ae=void 0,Pe=!0}}}return N0[G0][1]._spread=o1,i1}function i(N0,G0){return i1;function i1(x1){s.call(this,N0(x1),x1),G0&&G0.call(this,x1)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(N0,G0,i1){this.stack[this.stack.length-1].children.push(N0),this.stack.push(N0),this.tokenStack.push([G0,i1||void 0]),N0.position={start:N3(G0.start),end:void 0}}function c(N0){return G0;function G0(i1){N0&&N0.call(this,i1),d.call(this,i1)}}function d(N0,G0){const i1=this.stack.pop(),x1=this.tokenStack.pop();if(x1)x1[0].type!==N0.type&&(G0?G0.call(this,N0,x1[0]):(x1[1]||NA0).call(this,N0,x1[0]));else throw new Error("Cannot close `"+N0.type+"` ("+eh({start:N0.start,end:N0.end})+"): it’s not open");i1.position.end=N3(N0.end)}function h(){return xw(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(N0){if(this.data.expectingFirstListItemValue){const G0=this.stack[this.stack.length-2];G0.start=Number.parseInt(this.sliceSerialize(N0),10),this.data.expectingFirstListItemValue=void 0}}function v(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.lang=N0}function Z(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.meta=N0}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.value=N0.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.value=N0.replace(/(\r?\n|\r)$/g,"")}function L(N0){const G0=this.resume(),i1=this.stack[this.stack.length-1];i1.label=G0,i1.identifier=$n(this.sliceSerialize(N0)).toLowerCase()}function b(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.title=N0}function w(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.url=N0}function F(N0){const G0=this.stack[this.stack.length-1];if(!G0.depth){const i1=this.sliceSerialize(N0).length;G0.depth=i1}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function I(N0){const G0=this.stack[this.stack.length-1];G0.depth=this.sliceSerialize(N0).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function j(N0){const i1=this.stack[this.stack.length-1].children;let x1=i1[i1.length-1];(!x1||x1.type!=="text")&&(x1=X0(),x1.position={start:N3(N0.start),end:void 0},i1.push(x1)),this.stack.push(x1)}function O(N0){const G0=this.stack.pop();G0.value+=this.sliceSerialize(N0),G0.position.end=N3(N0.end)}function G(N0){const G0=this.stack[this.stack.length-1];if(this.data.atHardBreak){const i1=G0.children[G0.children.length-1];i1.position.end=N3(N0.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(G0.type)&&(j.call(this,N0),O.call(this,N0))}function a0(){this.data.atHardBreak=!0}function J(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.value=N0}function K(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.value=N0}function U(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.value=N0}function h0(){const N0=this.stack[this.stack.length-1];if(this.data.inReference){const G0=this.data.referenceType||"shortcut";N0.type+="Reference",N0.referenceType=G0,delete N0.url,delete N0.title}else delete N0.identifier,delete N0.label;this.data.referenceType=void 0}function E0(){const N0=this.stack[this.stack.length-1];if(this.data.inReference){const G0=this.data.referenceType||"shortcut";N0.type+="Reference",N0.referenceType=G0,delete N0.url,delete N0.title}else delete N0.identifier,delete N0.label;this.data.referenceType=void 0}function l0(N0){const G0=this.sliceSerialize(N0),i1=this.stack[this.stack.length-2];i1.label=Nn1(G0),i1.identifier=$n(G0).toLowerCase()}function s0(){const N0=this.stack[this.stack.length-1],G0=this.resume(),i1=this.stack[this.stack.length-1];if(this.data.inReference=!0,i1.type==="link"){const x1=N0.children;i1.children=x1}else i1.alt=G0}function q(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.url=N0}function X(){const N0=this.resume(),G0=this.stack[this.stack.length-1];G0.title=N0}function n0(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function H0(N0){const G0=this.resume(),i1=this.stack[this.stack.length-1];i1.label=G0,i1.identifier=$n(this.sliceSerialize(N0)).toLowerCase(),this.data.referenceType="full"}function y0(N0){this.data.characterReferenceType=N0.type}function p0(N0){const G0=this.sliceSerialize(N0),i1=this.data.characterReferenceType;let x1;i1?(x1=hA0(G0,i1==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):x1=Iw(G0);const le=this.stack[this.stack.length-1];le.value+=x1}function B0(N0){const G0=this.stack.pop();G0.position.end=N3(N0.end)}function o0(N0){O.call(this,N0);const G0=this.stack[this.stack.length-1];G0.url=this.sliceSerialize(N0)}function f0(N0){O.call(this,N0);const G0=this.stack[this.stack.length-1];G0.url="mailto:"+this.sliceSerialize(N0)}function A0(){return{type:"blockquote",children:[]}}function F0(){return{type:"code",lang:null,meta:null,value:""}}function C0(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function r0(){return{type:"emphasis",children:[]}}function c0(){return{type:"heading",depth:0,children:[]}}function k0(){return{type:"break"}}function O0(){return{type:"html",value:""}}function n1(){return{type:"image",title:null,url:"",alt:null}}function H1(){return{type:"link",title:null,url:"",children:[]}}function y1(N0){return{type:"list",ordered:N0.type==="listOrdered",start:null,spread:N0._spread,children:[]}}function ae(N0){return{type:"listItem",spread:N0._spread,checked:null,children:[]}}function d1(){return{type:"paragraph",children:[]}}function a1(){return{type:"strong",children:[]}}function X0(){return{type:"text",value:""}}function m1(){return{type:"thematicBreak"}}}function N3(a){return{line:a.line,column:a.column,offset:a.offset}}function wA0(a,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wA0(a,r):In1(a,r)}}function In1(a,t){let n;for(n in t)if(_A0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&a[n].push(...r);break}case"transforms":{const r=t[n];r&&a[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(a[n],r);break}}}function NA0(a,t){throw a?new Error("Cannot close `"+a.type+"` ("+eh({start:a.start,end:a.end})+"): a different token (`"+t.type+"`, "+eh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+eh({start:t.start,end:t.end})+") is still open")}function Pn1(a){const t=this;t.parser=n;function n(r){return Tn1(r,{...t.data("settings"),...a,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function On1(a,t){const n={type:"element",tagName:"blockquote",properties:{},children:a.wrap(a.all(t),!0)};return a.patch(t,n),a.applyData(t,n)}function Rn1(a,t){const n={type:"element",tagName:"br",properties:{},children:[]};return a.patch(t,n),[a.applyData(t,n),{type:"text",value:`
848
848
  `}]}function $n1(a,t){const n=t.value?t.value+`
849
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),a.patch(t,l),l=a.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},a.patch(t,l),l}function Dn1(a,t){const n={type:"element",tagName:"del",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function jn1(a,t){const n={type:"element",tagName:"em",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function Bn1(a,t){const n=typeof a.options.clobberPrefix=="string"?a.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Jc(r.toLowerCase()),i=a.footnoteOrder.indexOf(r);let o,s=a.footnoteCounts.get(r);s===void 0?(s=0,a.footnoteOrder.push(r),o=a.footnoteOrder.length):o=i+1,s+=1,a.footnoteCounts.set(r,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};a.patch(t,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return a.patch(t,d),a.applyData(t,d)}function zn1(a,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function Un1(a,t){if(a.options.allowDangerousHtml){const n={type:"raw",value:t.value};return a.patch(t,n),a.applyData(t,n)}}function CA0(a,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=a.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function qn1(a,t){const n=String(t.identifier).toUpperCase(),r=a.definitionById.get(n);if(!r)return CA0(a,t);const l={src:Jc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return a.patch(t,i),a.applyData(t,i)}function Gn1(a,t){const n={src:Jc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return a.patch(t,r),a.applyData(t,r)}function Wn1(a,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};a.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return a.patch(t,r),a.applyData(t,r)}function Kn1(a,t){const n=String(t.identifier).toUpperCase(),r=a.definitionById.get(n);if(!r)return CA0(a,t);const l={href:Jc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:a.all(t)};return a.patch(t,i),a.applyData(t,i)}function Yn1(a,t){const n={href:Jc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:a.all(t)};return a.patch(t,r),a.applyData(t,r)}function Qn1(a,t,n){const r=a.all(t),l=n?Xn1(n):TA0(t),i={},o=[];if(typeof t.checked=="boolean"){const h=r[0];let p;h&&h.type==="element"&&h.tagName==="p"?p=h:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const h=r[s];(l||s!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
849
+ `:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),a.patch(t,i),i=a.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},a.patch(t,i),i}function Dn1(a,t){const n={type:"element",tagName:"del",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function jn1(a,t){const n={type:"element",tagName:"em",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function Bn1(a,t){const n=typeof a.options.clobberPrefix=="string"?a.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Jc(r.toLowerCase()),i=a.footnoteOrder.indexOf(r);let o,s=a.footnoteCounts.get(r);s===void 0?(s=0,a.footnoteOrder.push(r),o=a.footnoteOrder.length):o=i+1,s+=1,a.footnoteCounts.set(r,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};a.patch(t,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return a.patch(t,d),a.applyData(t,d)}function zn1(a,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function Un1(a,t){if(a.options.allowDangerousHtml){const n={type:"raw",value:t.value};return a.patch(t,n),a.applyData(t,n)}}function CA0(a,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=a.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function qn1(a,t){const n=String(t.identifier).toUpperCase(),r=a.definitionById.get(n);if(!r)return CA0(a,t);const l={src:Jc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return a.patch(t,i),a.applyData(t,i)}function Gn1(a,t){const n={src:Jc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return a.patch(t,r),a.applyData(t,r)}function Wn1(a,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};a.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return a.patch(t,r),a.applyData(t,r)}function Kn1(a,t){const n=String(t.identifier).toUpperCase(),r=a.definitionById.get(n);if(!r)return CA0(a,t);const l={href:Jc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:a.all(t)};return a.patch(t,i),a.applyData(t,i)}function Yn1(a,t){const n={href:Jc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:a.all(t)};return a.patch(t,r),a.applyData(t,r)}function Qn1(a,t,n){const r=a.all(t),l=n?Xn1(n):TA0(t),i={},o=[];if(typeof t.checked=="boolean"){const h=r[0];let p;h&&h.type==="element"&&h.tagName==="p"?p=h:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const h=r[s];(l||s!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
850
850
  `}),h.type==="element"&&h.tagName==="p"&&!l?o.push(...h.children):o.push(h)}const c=r[r.length-1];c&&(l||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
851
851
  `});const d={type:"element",tagName:"li",properties:i,children:o};return a.patch(t,d),a.applyData(t,d)}function Xn1(a){let t=!1;if(a.type==="list"){t=a.spread||!1;const n=a.children;let r=-1;for(;!t&&++r<n.length;)t=TA0(n[r])}return t}function TA0(a){const t=a.spread;return t??a.children.length>1}function Jn1(a,t){const n={},r=a.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const o=r[l];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:a.wrap(r,!0)};return a.patch(t,i),a.applyData(t,i)}function er1(a,t){const n={type:"element",tagName:"p",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function tr1(a,t){const n={type:"root",children:a.wrap(a.all(t))};return a.patch(t,n),a.applyData(t,n)}function ar1(a,t){const n={type:"element",tagName:"strong",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}function nr1(a,t){const n=a.all(t),r=n.shift(),l=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:a.wrap([r],!0)};a.patch(t.children[0],o),l.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:a.wrap(n,!0)},s=bw(t.children[1]),c=eA0(t.children[t.children.length-1]);s&&c&&(o.position={start:s,end:c}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:a.wrap(l,!0)};return a.patch(t,i),a.applyData(t,i)}function rr1(a,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let c=-1;const d=[];for(;++c<s;){const p=t.children[c],f={},v=o?o[c]:void 0;v&&(f.align=v);let Z={type:"element",tagName:i,properties:f,children:[]};p&&(Z.children=a.all(p),a.patch(p,Z),Z=a.applyData(p,Z)),d.push(Z)}const h={type:"element",tagName:"tr",properties:{},children:a.wrap(d,!0)};return a.patch(t,h),a.applyData(t,h)}function lr1(a,t){const n={type:"element",tagName:"td",properties:{},children:a.all(t)};return a.patch(t,n),a.applyData(t,n)}const xA0=9,IA0=32;function ir1(a){const t=String(a),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(PA0(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(PA0(t.slice(l),l>0,!1)),i.join("")}function PA0(a,t,n){let r=0,l=a.length;if(t){let i=a.codePointAt(r);for(;i===xA0||i===IA0;)r++,i=a.codePointAt(r)}if(n){let i=a.codePointAt(l-1);for(;i===xA0||i===IA0;)l--,i=a.codePointAt(l-1)}return l>r?a.slice(r,l):""}function or1(a,t){const n={type:"text",value:ir1(String(t.value))};return a.patch(t,n),a.applyData(t,n)}function sr1(a,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return a.patch(t,n),a.applyData(t,n)}const cr1={blockquote:On1,break:Rn1,code:$n1,delete:Dn1,emphasis:jn1,footnoteReference:Bn1,heading:zn1,html:Un1,imageReference:qn1,image:Gn1,inlineCode:Wn1,linkReference:Kn1,link:Yn1,listItem:Qn1,list:Jn1,paragraph:er1,root:tr1,strong:ar1,table:nr1,tableCell:lr1,tableRow:rr1,text:or1,thematicBreak:sr1,toml:WZ,yaml:WZ,definition:WZ,footnoteDefinition:WZ};function WZ(){}const OA0=-1,KZ=0,YZ=1,QZ=2,jw=3,Bw=4,zw=5,Uw=6,RA0=7,$A0=8,DA0=typeof self=="object"?self:globalThis,dr1=(a,t)=>{const n=(l,i)=>(a.set(i,l),l),r=l=>{if(a.has(l))return a.get(l);const[i,o]=t[l];switch(i){case KZ:case OA0:return n(o,l);case YZ:{const s=n([],l);for(const c of o)s.push(r(c));return s}case QZ:{const s=n({},l);for(const[c,d]of o)s[r(c)]=r(d);return s}case jw:return n(new Date(o),l);case Bw:{const{source:s,flags:c}=o;return n(new RegExp(s,c),l)}case zw:{const s=n(new Map,l);for(const[c,d]of o)s.set(r(c),r(d));return s}case Uw:{const s=n(new Set,l);for(const c of o)s.add(r(c));return s}case RA0:{const{name:s,message:c}=o;return n(new DA0[s](c),l)}case $A0:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new DA0[i](o),l)};return r},jA0=a=>dr1(new Map,a)(0),t9="",{toString:mr1}={},{keys:ur1}=Object,lh=a=>{const t=typeof a;if(t!=="object"||!a)return[KZ,t];const n=mr1.call(a).slice(8,-1);switch(n){case"Array":return[YZ,t9];case"Object":return[QZ,t9];case"Date":return[jw,t9];case"RegExp":return[Bw,t9];case"Map":return[zw,t9];case"Set":return[Uw,t9]}return n.includes("Array")?[YZ,n]:n.includes("Error")?[RA0,n]:[QZ,n]},XZ=([a,t])=>a===KZ&&(t==="function"||t==="symbol"),hr1=(a,t,n,r)=>{const l=(o,s)=>{const c=r.push(o)-1;return n.set(s,c),c},i=o=>{if(n.has(o))return n.get(o);let[s,c]=lh(o);switch(s){case KZ:{let h=o;switch(c){case"bigint":s=$A0,h=o.toString();break;case"function":case"symbol":if(a)throw new TypeError("unable to serialize "+c);h=null;break;case"undefined":return l([OA0],o)}return l([s,h],o)}case YZ:{if(c)return l([c,[...o]],o);const h=[],p=l([s,h],o);for(const f of o)h.push(i(f));return p}case QZ:{if(c)switch(c){case"BigInt":return l([c,o.toString()],o);case"Boolean":case"Number":case"String":return l([c,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const h=[],p=l([s,h],o);for(const f of ur1(o))(a||!XZ(lh(o[f])))&&h.push([i(f),i(o[f])]);return p}case jw:return l([s,o.toISOString()],o);case Bw:{const{source:h,flags:p}=o;return l([s,{source:h,flags:p}],o)}case zw:{const h=[],p=l([s,h],o);for(const[f,v]of o)(a||!(XZ(lh(f))||XZ(lh(v))))&&h.push([i(f),i(v)]);return p}case Uw:{const h=[],p=l([s,h],o);for(const f of o)(a||!XZ(lh(f)))&&h.push(i(f));return p}}const{message:d}=o;return l([s,{name:c,message:d}],o)};return i},BA0=(a,{json:t,lossy:n}={})=>{const r=[];return hr1(!(t||n),!!t,new Map,r)(a),r},JZ=typeof structuredClone=="function"?(a,t)=>t&&("json"in t||"lossy"in t)?jA0(BA0(a,t)):structuredClone(a):(a,t)=>jA0(BA0(a,t));function pr1(a,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function fr1(a,t){return"Back to reference "+(a+1)+(t>1?"-"+t:"")}function gr1(a){const t=typeof a.options.clobberPrefix=="string"?a.options.clobberPrefix:"user-content-",n=a.options.footnoteBackContent||pr1,r=a.options.footnoteBackLabel||fr1,l=a.options.footnoteLabel||"Footnotes",i=a.options.footnoteLabelTagName||"h2",o=a.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<a.footnoteOrder.length;){const d=a.footnoteById.get(a.footnoteOrder[c]);if(!d)continue;const h=a.all(d),p=String(d.identifier).toUpperCase(),f=Jc(p.toLowerCase());let v=0;const Z=[],E=a.footnoteCounts.get(p);for(;E!==void 0&&++v<=E;){Z.length>0&&Z.push({type:"text",value:" "});let L=typeof n=="string"?n:n(c,v);typeof L=="string"&&(L={type:"text",value:L}),Z.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,v),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const M=h[h.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const L=M.children[M.children.length-1];L&&L.type==="text"?L.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...Z)}else h.push(...Z);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:a.wrap(h,!0)};a.patch(d,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...JZ(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
852
852
  `},{type:"element",tagName:"ol",properties:{},children:a.wrap(s,!0)},{type:"text",value:`