@rizom/brain 0.2.0-alpha.129 → 0.2.0-alpha.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brain.js +1076 -1217
- package/dist/entities.d.ts +8 -0
- package/dist/entities.js +2 -2
- package/dist/entities.js.map +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +50 -0
- package/dist/plugins.js +40 -40
- package/dist/plugins.js.map +4 -4
- package/dist/seed-content/rover-seed-content-core/playbook/rover-onboarding.md +9 -1
- package/dist/services.js.map +1 -1
- package/dist/site.js +135 -135
- package/dist/site.js.map +16 -16
- package/package.json +1 -1
package/dist/plugins.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var Tq=Object.create;var{getPrototypeOf:Eq,defineProperty:N5,getOwnPropertyNames:jq}=Object;var Sq=Object.prototype.hasOwnProperty;function Iq($){return this[$]}var xq,kq,$6=($,G,X)=>{var Y=$!=null&&typeof $==="object";if(Y){var W=G?xq??=new WeakMap:kq??=new WeakMap,q=W.get($);if(q)return q}X=$!=null?Tq(Eq($)):{};let V=G||!$||!$.__esModule?N5(X,"default",{value:$,enumerable:!0}):X;for(let J of jq($))if(!Sq.call(V,J))N5(V,J,{get:Iq.bind($,J),enumerable:!0});if(Y)W.set($,V);return V};var f=($,G)=>()=>(G||$((G={exports:{}}).exports,G),G.exports);var bq=($)=>$;function vq($,G){this[$]=bq.bind(null,G)}var t9=($,G)=>{for(var X in G)N5($,X,{get:G[X],enumerable:!0,configurable:!0,set:vq.bind(G,X)})};var w0=import.meta.require;var
|
|
2
|
+
var Tq=Object.create;var{getPrototypeOf:Eq,defineProperty:N5,getOwnPropertyNames:jq}=Object;var Sq=Object.prototype.hasOwnProperty;function Iq($){return this[$]}var xq,kq,$6=($,G,X)=>{var Y=$!=null&&typeof $==="object";if(Y){var W=G?xq??=new WeakMap:kq??=new WeakMap,q=W.get($);if(q)return q}X=$!=null?Tq(Eq($)):{};let V=G||!$||!$.__esModule?N5(X,"default",{value:$,enumerable:!0}):X;for(let J of jq($))if(!Sq.call(V,J))N5(V,J,{get:Iq.bind($,J),enumerable:!0});if(Y)W.set($,V);return V};var f=($,G)=>()=>(G||$((G={exports:{}}).exports,G),G.exports);var bq=($)=>$;function vq($,G){this[$]=bq.bind(null,G)}var t9=($,G)=>{for(var X in G)N5($,X,{get:G[X],enumerable:!0,configurable:!0,set:vq.bind(G,X)})};var w0=import.meta.require;var A4=f((wB,$7)=>{var fq=Object.prototype.toString;$7.exports=function(G){if(G===void 0)return"undefined";if(G===null)return"null";var X=typeof G;if(X==="boolean")return"boolean";if(X==="string")return"string";if(X==="number")return"number";if(X==="symbol")return"symbol";if(X==="function")return rq(G)?"generatorfunction":"function";if(mq(G))return"array";if(iq(G))return"buffer";if(dq(G))return"arguments";if(pq(G))return"date";if(uq(G))return"error";if(lq(G))return"regexp";switch(e9(G)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(cq(G))return"generator";switch(X=fq.call(G),X){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return X.slice(8,-1).toLowerCase().replace(/\s/g,"")};function e9($){return typeof $.constructor==="function"?$.constructor.name:null}function mq($){if(Array.isArray)return Array.isArray($);return $ instanceof Array}function uq($){return $ instanceof Error||typeof $.message==="string"&&$.constructor&&typeof $.constructor.stackTraceLimit==="number"}function pq($){if($ instanceof Date)return!0;return typeof $.toDateString==="function"&&typeof $.getDate==="function"&&typeof $.setDate==="function"}function lq($){if($ instanceof RegExp)return!0;return typeof $.flags==="string"&&typeof $.ignoreCase==="boolean"&&typeof $.multiline==="boolean"&&typeof $.global==="boolean"}function rq($,G){return e9($)==="GeneratorFunction"}function cq($){return typeof $.throw==="function"&&typeof $.return==="function"&&typeof $.next==="function"}function dq($){try{if(typeof $.length==="number"&&typeof $.callee==="function")return!0}catch(G){if(G.message.indexOf("callee")!==-1)return!0}return!1}function iq($){if($.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var X7=f((BB,G7)=>{/*!
|
|
3
3
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2015, Jon Schlinkert.
|
|
6
6
|
* Licensed under the MIT License.
|
|
7
|
-
*/G7.exports=function(G){return typeof G<"u"&&G!==null&&(typeof G==="object"||typeof G==="function")}});var q7=f((OB,W7)=>{var Y7=X7();W7.exports=function(G){if(!Y7(G))G={};var X=arguments.length;for(var Y=1;Y<X;Y++){var W=arguments[Y];if(Y7(W))nq(G,W)}return G};function nq($,G){for(var X in G)if(oq(G,X))$[X]=G[X]}function oq($,G){return Object.prototype.hasOwnProperty.call($,G)}});var H7=f((PB,J7)=>{var sq=
|
|
7
|
+
*/G7.exports=function(G){return typeof G<"u"&&G!==null&&(typeof G==="object"||typeof G==="function")}});var q7=f((OB,W7)=>{var Y7=X7();W7.exports=function(G){if(!Y7(G))G={};var X=arguments.length;for(var Y=1;Y<X;Y++){var W=arguments[Y];if(Y7(W))nq(G,W)}return G};function nq($,G){for(var X in G)if(oq(G,X))$[X]=G[X]}function oq($,G){return Object.prototype.hasOwnProperty.call($,G)}});var H7=f((PB,J7)=>{var sq=A4(),aq=q7();J7.exports=function($,G){if(typeof G==="function")G={parse:G};var X=eq($),Y={section_delimiter:"---",parse:GV},W=aq({},Y,G),q=W.section_delimiter,V=X.content.split(/\r?\n/),J=null,U=V7(),R=[],D=[];function M(L){X.content=L,J=[],R=[]}function F(L){if(D.length)U.key=$V(D[0],q),U.content=L,W.parse(U,J),J.push(U),U=V7(),R=[],D=[]}for(var K=0;K<V.length;K++){var z=V[K],Z=D.length,C=z.trim();if(tq(C,q)){if(C.length===3&&K!==0){if(Z===0||Z===2){R.push(z);continue}D.push(C),U.data=R.join(`
|
|
8
8
|
`),R=[];continue}if(J===null)M(R.join(`
|
|
9
|
-
`));if(
|
|
10
|
-
`));D.push(C);continue}R.push(
|
|
9
|
+
`));if(Z===2)F(R.join(`
|
|
10
|
+
`));D.push(C);continue}R.push(z)}if(J===null)M(R.join(`
|
|
11
11
|
`));else F(R.join(`
|
|
12
|
-
`));return X.sections=J,X};function tq($,G){if($.slice(0,G.length)!==G)return!1;if($.charAt(G.length+1)===G.slice(-1))return!1;return!0}function eq($){if(sq($)!=="object")$={content:$};if(typeof $.content!=="string"&&!XV($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function $V($,G){return $?$.slice(G.length).trim():""}function V7(){return{key:"",data:"",content:""}}function GV($){return $}function XV($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var n0=f((HV,i0)=>{function U7($){return typeof $>"u"||$===null}function YV($){return typeof $==="object"&&$!==null}function WV($){if(Array.isArray($))return $;else if(U7($))return[];return[$]}function qV($,G){var X,Y,W,q;if(G){q=Object.keys(G);for(X=0,Y=q.length;X<Y;X+=1)W=q[X],$[W]=G[W]}return $}function VV($,G){var X="",Y;for(Y=0;Y<G;Y+=1)X+=$;return X}function JV($){return $===0&&Number.NEGATIVE_INFINITY===1/$}HV.isNothing=U7;HV.isObject=YV;HV.toArray=WV;HV.repeat=VV;HV.isNegativeZero=JV;HV.extend=qV});var N2=f((NB,R7)=>{function
|
|
12
|
+
`));return X.sections=J,X};function tq($,G){if($.slice(0,G.length)!==G)return!1;if($.charAt(G.length+1)===G.slice(-1))return!1;return!0}function eq($){if(sq($)!=="object")$={content:$};if(typeof $.content!=="string"&&!XV($.content))throw TypeError("expected a buffer or string");return $.content=$.content.toString(),$.sections=[],$}function $V($,G){return $?$.slice(G.length).trim():""}function V7(){return{key:"",data:"",content:""}}function GV($){return $}function XV($){if($&&$.constructor&&typeof $.constructor.isBuffer==="function")return $.constructor.isBuffer($);return!1}});var n0=f((HV,i0)=>{function U7($){return typeof $>"u"||$===null}function YV($){return typeof $==="object"&&$!==null}function WV($){if(Array.isArray($))return $;else if(U7($))return[];return[$]}function qV($,G){var X,Y,W,q;if(G){q=Object.keys(G);for(X=0,Y=q.length;X<Y;X+=1)W=q[X],$[W]=G[W]}return $}function VV($,G){var X="",Y;for(Y=0;Y<G;Y+=1)X+=$;return X}function JV($){return $===0&&Number.NEGATIVE_INFINITY===1/$}HV.isNothing=U7;HV.isObject=YV;HV.toArray=WV;HV.repeat=VV;HV.isNegativeZero=JV;HV.extend=qV});var N2=f((NB,R7)=>{function Q4($,G){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=G,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}Q4.prototype=Object.create(Error.prototype);Q4.prototype.constructor=Q4;Q4.prototype.toString=function(G){var X=this.name+": ";if(X+=this.reason||"(unknown reason)",!G&&this.mark)X+=" "+this.mark.toString();return X};R7.exports=Q4});var A7=f((zB,M7)=>{var D7=n0();function z5($,G,X,Y,W){this.name=$,this.buffer=G,this.position=X,this.line=Y,this.column=W}z5.prototype.getSnippet=function(G,X){var Y,W,q,V,J;if(!this.buffer)return null;G=G||4,X=X||75,Y="",W=this.position;while(W>0&&`\x00\r
|
|
13
13
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(W-1))===-1)if(W-=1,this.position-W>X/2-1){Y=" ... ",W+=5;break}q="",V=this.position;while(V<this.buffer.length&&`\x00\r
|
|
14
14
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(V))===-1)if(V+=1,V-this.position>X/2-1){q=" ... ",V-=5;break}return J=this.buffer.slice(W,V),D7.repeat(" ",G)+Y+J+q+`
|
|
15
|
-
`+D7.repeat(" ",G+this.position-W+Y.length)+"^"};
|
|
16
|
-
`+X}return Y};M7.exports=
|
|
17
|
-
\r`;function YJ($){if($===null)return!1;var G,X,Y=0,W=$.length,q=T5;for(X=0;X<W;X++){if(G=q.indexOf($.charAt(X)),G>64)continue;if(G<0)return!1;Y+=6}return Y%8===0}function WJ($){var G,X,Y=$.replace(/[\r\n=]/g,""),W=Y.length,q=T5,V=0,J=[];for(G=0;G<W;G++){if(G%4===0&&G)J.push(V>>16&255),J.push(V>>8&255),J.push(V&255);V=V<<6|q.indexOf(Y.charAt(G))}if(X=W%4*6,X===0)J.push(V>>16&255),J.push(V>>8&255),J.push(V&255);else if(X===18)J.push(V>>10&255),J.push(V>>2&255);else if(X===12)J.push(V>>4&255);if(s0)return s0.from?s0.from(J):new s0(J);return J}function qJ($){var G="",X=0,Y,W,q=$.length,V=T5;for(Y=0;Y<q;Y++){if(Y%3===0&&Y)G+=V[X>>18&63],G+=V[X>>12&63],G+=V[X>>6&63],G+=V[X&63];X=(X<<8)+$[Y]}if(W=q%3,W===0)G+=V[X>>18&63],G+=V[X>>12&63],G+=V[X>>6&63],G+=V[X&63];else if(W===2)G+=V[X>>10&63],G+=V[X>>4&63],G+=V[X<<2&63],G+=V[64];else if(W===1)G+=V[X>>2&63],G+=V[X<<4&63],G+=V[64],G+=V[64];return G}function VJ($){return s0&&s0.isBuffer($)}p7.exports=new XJ("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YJ,construct:WJ,predicate:VJ,represent:qJ})});var c7=f((fB,r7)=>{var JJ=F1(),HJ=Object.prototype.hasOwnProperty,UJ=Object.prototype.toString;function RJ($){if($===null)return!0;var G=[],X,Y,W,q,V,J=$;for(X=0,Y=J.length;X<Y;X+=1){if(W=J[X],V=!1,UJ.call(W)!=="[object Object]")return!1;for(q in W)if(HJ.call(W,q))if(!V)V=!0;else return!1;if(!V)return!1;if(G.indexOf(q)===-1)G.push(q);else return!1}return!0}function DJ($){return $!==null?$:[]}r7.exports=new JJ("tag:yaml.org,2002:omap",{kind:"sequence",resolve:RJ,construct:DJ})});var i7=f((mB,d7)=>{var MJ=F1(),
|
|
15
|
+
`+D7.repeat(" ",G+this.position-W+Y.length)+"^"};z5.prototype.toString=function(G){var X,Y="";if(this.name)Y+='in "'+this.name+'" ';if(Y+="at line "+(this.line+1)+", column "+(this.column+1),!G){if(X=this.getSnippet(),X)Y+=`:
|
|
16
|
+
`+X}return Y};M7.exports=z5});var F1=f((ZB,K7)=>{var Q7=N2(),KV=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],FV=["scalar","sequence","mapping"];function wV($){var G={};if($!==null)Object.keys($).forEach(function(X){$[X].forEach(function(Y){G[String(Y)]=X})});return G}function BV($,G){if(G=G||{},Object.keys(G).forEach(function(X){if(KV.indexOf(X)===-1)throw new Q7('Unknown option "'+X+'" is met in definition of "'+$+'" YAML type.')}),this.tag=$,this.kind=G.kind||null,this.resolve=G.resolve||function(){return!0},this.construct=G.construct||function(X){return X},this.instanceOf=G.instanceOf||null,this.predicate=G.predicate||null,this.represent=G.represent||null,this.defaultStyle=G.defaultStyle||null,this.styleAliases=wV(G.styleAliases||null),FV.indexOf(this.kind)===-1)throw new Q7('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}K7.exports=BV});var o0=f((_B,w7)=>{var F7=n0(),G6=N2(),OV=F1();function Z5($,G,X){var Y=[];return $.include.forEach(function(W){X=Z5(W,G,X)}),$[G].forEach(function(W){X.forEach(function(q,V){if(q.tag===W.tag&&q.kind===W.kind)Y.push(V)}),X.push(W)}),X.filter(function(W,q){return Y.indexOf(q)===-1})}function PV(){var $={scalar:{},sequence:{},mapping:{},fallback:{}},G,X;function Y(W){$[W.kind][W.tag]=$.fallback[W.tag]=W}for(G=0,X=arguments.length;G<X;G+=1)arguments[G].forEach(Y);return $}function z2($){this.include=$.include||[],this.implicit=$.implicit||[],this.explicit=$.explicit||[],this.implicit.forEach(function(G){if(G.loadKind&&G.loadKind!=="scalar")throw new G6("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Z5(this,"implicit",[]),this.compiledExplicit=Z5(this,"explicit",[]),this.compiledTypeMap=PV(this.compiledImplicit,this.compiledExplicit)}z2.DEFAULT=null;z2.create=function(){var G,X;switch(arguments.length){case 1:G=z2.DEFAULT,X=arguments[0];break;case 2:G=arguments[0],X=arguments[1];break;default:throw new G6("Wrong number of arguments for Schema.create function")}if(G=F7.toArray(G),X=F7.toArray(X),!G.every(function(Y){return Y instanceof z2}))throw new G6("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!X.every(function(Y){return Y instanceof OV}))throw new G6("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new z2({include:G,explicit:X})};w7.exports=z2});var O7=f((LB,B7)=>{var NV=F1();B7.exports=new NV("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}})});var N7=f((CB,P7)=>{var zV=F1();P7.exports=new zV("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}})});var Z7=f((TB,z7)=>{var ZV=F1();z7.exports=new ZV("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}})});var X6=f((EB,_7)=>{var _V=o0();_7.exports=new _V({explicit:[O7(),N7(),Z7()]})});var C7=f((jB,L7)=>{var LV=F1();function CV($){if($===null)return!0;var G=$.length;return G===1&&$==="~"||G===4&&($==="null"||$==="Null"||$==="NULL")}function TV(){return null}function EV($){return $===null}L7.exports=new LV("tag:yaml.org,2002:null",{kind:"scalar",resolve:CV,construct:TV,predicate:EV,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var E7=f((SB,T7)=>{var jV=F1();function SV($){if($===null)return!1;var G=$.length;return G===4&&($==="true"||$==="True"||$==="TRUE")||G===5&&($==="false"||$==="False"||$==="FALSE")}function IV($){return $==="true"||$==="True"||$==="TRUE"}function xV($){return Object.prototype.toString.call($)==="[object Boolean]"}T7.exports=new jV("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SV,construct:IV,predicate:xV,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"})});var S7=f((IB,j7)=>{var kV=n0(),bV=F1();function vV($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function gV($){return 48<=$&&$<=55}function hV($){return 48<=$&&$<=57}function yV($){if($===null)return!1;var G=$.length,X=0,Y=!1,W;if(!G)return!1;if(W=$[X],W==="-"||W==="+")W=$[++X];if(W==="0"){if(X+1===G)return!0;if(W=$[++X],W==="b"){X++;for(;X<G;X++){if(W=$[X],W==="_")continue;if(W!=="0"&&W!=="1")return!1;Y=!0}return Y&&W!=="_"}if(W==="x"){X++;for(;X<G;X++){if(W=$[X],W==="_")continue;if(!vV($.charCodeAt(X)))return!1;Y=!0}return Y&&W!=="_"}for(;X<G;X++){if(W=$[X],W==="_")continue;if(!gV($.charCodeAt(X)))return!1;Y=!0}return Y&&W!=="_"}if(W==="_")return!1;for(;X<G;X++){if(W=$[X],W==="_")continue;if(W===":")break;if(!hV($.charCodeAt(X)))return!1;Y=!0}if(!Y||W==="_")return!1;if(W!==":")return!0;return/^(:[0-5]?[0-9])+$/.test($.slice(X))}function fV($){var G=$,X=1,Y,W,q=[];if(G.indexOf("_")!==-1)G=G.replace(/_/g,"");if(Y=G[0],Y==="-"||Y==="+"){if(Y==="-")X=-1;G=G.slice(1),Y=G[0]}if(G==="0")return 0;if(Y==="0"){if(G[1]==="b")return X*parseInt(G.slice(2),2);if(G[1]==="x")return X*parseInt(G,16);return X*parseInt(G,8)}if(G.indexOf(":")!==-1)return G.split(":").forEach(function(V){q.unshift(parseInt(V,10))}),G=0,W=1,q.forEach(function(V){G+=V*W,W*=60}),X*G;return X*parseInt(G,10)}function mV($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!kV.isNegativeZero($))}j7.exports=new bV("tag:yaml.org,2002:int",{kind:"scalar",resolve:yV,construct:fV,predicate:mV,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0"+$.toString(8):"-0"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var k7=f((xB,x7)=>{var I7=n0(),uV=F1(),pV=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function lV($){if($===null)return!1;if(!pV.test($)||$[$.length-1]==="_")return!1;return!0}function rV($){var G,X,Y,W;if(G=$.replace(/_/g,"").toLowerCase(),X=G[0]==="-"?-1:1,W=[],"+-".indexOf(G[0])>=0)G=G.slice(1);if(G===".inf")return X===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(G===".nan")return NaN;else if(G.indexOf(":")>=0)return G.split(":").forEach(function(q){W.unshift(parseFloat(q,10))}),G=0,Y=1,W.forEach(function(q){G+=q*Y,Y*=60}),X*G;return X*parseFloat(G,10)}var cV=/^[-+]?[0-9]+e/;function dV($,G){var X;if(isNaN($))switch(G){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(G){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(G){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(I7.isNegativeZero($))return"-0.0";return X=$.toString(10),cV.test(X)?X.replace("e",".e"):X}function iV($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||I7.isNegativeZero($))}x7.exports=new uV("tag:yaml.org,2002:float",{kind:"scalar",resolve:lV,construct:rV,predicate:iV,represent:dV,defaultStyle:"lowercase"})});var _5=f((kB,b7)=>{var nV=o0();b7.exports=new nV({include:[X6()],implicit:[C7(),E7(),S7(),k7()]})});var L5=f((bB,v7)=>{var oV=o0();v7.exports=new oV({include:[_5()]})});var f7=f((vB,y7)=>{var sV=F1(),g7=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),h7=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function aV($){if($===null)return!1;if(g7.exec($)!==null)return!0;if(h7.exec($)!==null)return!0;return!1}function tV($){var G,X,Y,W,q,V,J,U=0,R=null,D,M,F;if(G=g7.exec($),G===null)G=h7.exec($);if(G===null)throw Error("Date resolve error");if(X=+G[1],Y=+G[2]-1,W=+G[3],!G[4])return new Date(Date.UTC(X,Y,W));if(q=+G[4],V=+G[5],J=+G[6],G[7]){U=G[7].slice(0,3);while(U.length<3)U+="0";U=+U}if(G[9]){if(D=+G[10],M=+(G[11]||0),R=(D*60+M)*60000,G[9]==="-")R=-R}if(F=new Date(Date.UTC(X,Y,W,q,V,J,U)),R)F.setTime(F.getTime()-R);return F}function eV($){return $.toISOString()}y7.exports=new sV("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:aV,construct:tV,instanceOf:Date,represent:eV})});var u7=f((gB,m7)=>{var $J=F1();function GJ($){return $==="<<"||$===null}m7.exports=new $J("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GJ})});var l7=f((hB,p7)=>{var s0;try{C5=w0,s0=C5("buffer").Buffer}catch($){}var C5,XJ=F1(),T5=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
17
|
+
\r`;function YJ($){if($===null)return!1;var G,X,Y=0,W=$.length,q=T5;for(X=0;X<W;X++){if(G=q.indexOf($.charAt(X)),G>64)continue;if(G<0)return!1;Y+=6}return Y%8===0}function WJ($){var G,X,Y=$.replace(/[\r\n=]/g,""),W=Y.length,q=T5,V=0,J=[];for(G=0;G<W;G++){if(G%4===0&&G)J.push(V>>16&255),J.push(V>>8&255),J.push(V&255);V=V<<6|q.indexOf(Y.charAt(G))}if(X=W%4*6,X===0)J.push(V>>16&255),J.push(V>>8&255),J.push(V&255);else if(X===18)J.push(V>>10&255),J.push(V>>2&255);else if(X===12)J.push(V>>4&255);if(s0)return s0.from?s0.from(J):new s0(J);return J}function qJ($){var G="",X=0,Y,W,q=$.length,V=T5;for(Y=0;Y<q;Y++){if(Y%3===0&&Y)G+=V[X>>18&63],G+=V[X>>12&63],G+=V[X>>6&63],G+=V[X&63];X=(X<<8)+$[Y]}if(W=q%3,W===0)G+=V[X>>18&63],G+=V[X>>12&63],G+=V[X>>6&63],G+=V[X&63];else if(W===2)G+=V[X>>10&63],G+=V[X>>4&63],G+=V[X<<2&63],G+=V[64];else if(W===1)G+=V[X>>2&63],G+=V[X<<4&63],G+=V[64],G+=V[64];return G}function VJ($){return s0&&s0.isBuffer($)}p7.exports=new XJ("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YJ,construct:WJ,predicate:VJ,represent:qJ})});var c7=f((fB,r7)=>{var JJ=F1(),HJ=Object.prototype.hasOwnProperty,UJ=Object.prototype.toString;function RJ($){if($===null)return!0;var G=[],X,Y,W,q,V,J=$;for(X=0,Y=J.length;X<Y;X+=1){if(W=J[X],V=!1,UJ.call(W)!=="[object Object]")return!1;for(q in W)if(HJ.call(W,q))if(!V)V=!0;else return!1;if(!V)return!1;if(G.indexOf(q)===-1)G.push(q);else return!1}return!0}function DJ($){return $!==null?$:[]}r7.exports=new JJ("tag:yaml.org,2002:omap",{kind:"sequence",resolve:RJ,construct:DJ})});var i7=f((mB,d7)=>{var MJ=F1(),AJ=Object.prototype.toString;function QJ($){if($===null)return!0;var G,X,Y,W,q,V=$;q=Array(V.length);for(G=0,X=V.length;G<X;G+=1){if(Y=V[G],AJ.call(Y)!=="[object Object]")return!1;if(W=Object.keys(Y),W.length!==1)return!1;q[G]=[W[0],Y[W[0]]]}return!0}function KJ($){if($===null)return[];var G,X,Y,W,q,V=$;q=Array(V.length);for(G=0,X=V.length;G<X;G+=1)Y=V[G],W=Object.keys(Y),q[G]=[W[0],Y[W[0]]];return q}d7.exports=new MJ("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:QJ,construct:KJ})});var o7=f((uB,n7)=>{var FJ=F1(),wJ=Object.prototype.hasOwnProperty;function BJ($){if($===null)return!0;var G,X=$;for(G in X)if(wJ.call(X,G)){if(X[G]!==null)return!1}return!0}function OJ($){return $!==null?$:{}}n7.exports=new FJ("tag:yaml.org,2002:set",{kind:"mapping",resolve:BJ,construct:OJ})});var Z2=f((pB,s7)=>{var PJ=o0();s7.exports=new PJ({include:[L5()],implicit:[f7(),u7()],explicit:[l7(),c7(),i7(),o7()]})});var t7=f((lB,a7)=>{var NJ=F1();function zJ(){return!0}function ZJ(){return}function _J(){return""}function LJ($){return typeof $>"u"}a7.exports=new NJ("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:zJ,construct:ZJ,predicate:LJ,represent:_J})});var $$=f((rB,e7)=>{var CJ=F1();function TJ($){if($===null)return!1;if($.length===0)return!1;var G=$,X=/\/([gim]*)$/.exec($),Y="";if(G[0]==="/"){if(X)Y=X[1];if(Y.length>3)return!1;if(G[G.length-Y.length-1]!=="/")return!1}return!0}function EJ($){var G=$,X=/\/([gim]*)$/.exec($),Y="";if(G[0]==="/"){if(X)Y=X[1];G=G.slice(1,G.length-Y.length-1)}return new RegExp(G,Y)}function jJ($){var G="/"+$.source+"/";if($.global)G+="g";if($.multiline)G+="m";if($.ignoreCase)G+="i";return G}function SJ($){return Object.prototype.toString.call($)==="[object RegExp]"}e7.exports=new CJ("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:TJ,construct:EJ,predicate:SJ,represent:jJ})});var X$=f((cB,G$)=>{var Y6;try{E5=w0,Y6=E5("esprima")}catch($){if(typeof window<"u")Y6=window.esprima}var E5,IJ=F1();function xJ($){if($===null)return!1;try{var G="("+$+")",X=Y6.parse(G,{range:!0});if(X.type!=="Program"||X.body.length!==1||X.body[0].type!=="ExpressionStatement"||X.body[0].expression.type!=="ArrowFunctionExpression"&&X.body[0].expression.type!=="FunctionExpression")return!1;return!0}catch(Y){return!1}}function kJ($){var G="("+$+")",X=Y6.parse(G,{range:!0}),Y=[],W;if(X.type!=="Program"||X.body.length!==1||X.body[0].type!=="ExpressionStatement"||X.body[0].expression.type!=="ArrowFunctionExpression"&&X.body[0].expression.type!=="FunctionExpression")throw Error("Failed to resolve function");if(X.body[0].expression.params.forEach(function(q){Y.push(q.name)}),W=X.body[0].expression.body.range,X.body[0].expression.body.type==="BlockStatement")return Function(Y,G.slice(W[0]+1,W[1]-1));return Function(Y,"return "+G.slice(W[0],W[1]))}function bJ($){return $.toString()}function vJ($){return Object.prototype.toString.call($)==="[object Function]"}G$.exports=new IJ("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:xJ,construct:kJ,predicate:vJ,represent:bJ})});var K4=f((iB,W$)=>{var Y$=o0();W$.exports=Y$.DEFAULT=new Y$({include:[Z2()],explicit:[t7(),$$(),X$()]})});var _$=f((qH,F4)=>{var B0=n0(),D$=N2(),gJ=A7(),M$=Z2(),hJ=K4(),C0=Object.prototype.hasOwnProperty,W6=1,A$=2,Q$=3,q6=4,j5=1,yJ=2,q$=3,fJ=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,mJ=/[\x85\u2028\u2029]/,uJ=/[,\[\]\{\}]/,K$=/^(?:!|!!|![a-z\-]+!)$/i,F$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function V$($){return Object.prototype.toString.call($)}function q0($){return $===10||$===13}function a0($){return $===9||$===32}function h1($){return $===9||$===32||$===10||$===13}function _2($){return $===44||$===91||$===93||$===123||$===125}function pJ($){var G;if(48<=$&&$<=57)return $-48;if(G=$|32,97<=G&&G<=102)return G-97+10;return-1}function lJ($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function rJ($){if(48<=$&&$<=57)return $-48;return-1}function J$($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
|
|
18
18
|
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function cJ($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function w$($,G,X){if(G==="__proto__")Object.defineProperty($,G,{configurable:!0,enumerable:!0,writable:!0,value:X});else $[G]=X}var B$=Array(256),O$=Array(256);for(_0=0;_0<256;_0++)B$[_0]=J$(_0)?1:0,O$[_0]=J$(_0);var _0;function dJ($,G){this.input=$,this.filename=G.filename||null,this.schema=G.schema||hJ,this.onWarning=G.onWarning||null,this.legacy=G.legacy||!1,this.json=G.json||!1,this.listener=G.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function P$($,G){return new D$(G,new gJ($.filename,$.input,$.position,$.line,$.position-$.lineStart))}function m($,G){throw P$($,G)}function V6($,G){if($.onWarning)$.onWarning.call(null,P$($,G))}var H$={YAML:function(G,X,Y){var W,q,V;if(G.version!==null)m(G,"duplication of %YAML directive");if(Y.length!==1)m(G,"YAML directive accepts exactly one argument");if(W=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),W===null)m(G,"ill-formed argument of the YAML directive");if(q=parseInt(W[1],10),V=parseInt(W[2],10),q!==1)m(G,"unacceptable YAML version of the document");if(G.version=Y[0],G.checkLineBreaks=V<2,V!==1&&V!==2)V6(G,"unsupported YAML version of the document")},TAG:function(G,X,Y){var W,q;if(Y.length!==2)m(G,"TAG directive accepts exactly two arguments");if(W=Y[0],q=Y[1],!K$.test(W))m(G,"ill-formed tag handle (first argument) of the TAG directive");if(C0.call(G.tagMap,W))m(G,'there is a previously declared suffix for "'+W+'" tag handle');if(!F$.test(q))m(G,"ill-formed tag prefix (second argument) of the TAG directive");G.tagMap[W]=q}};function L0($,G,X,Y){var W,q,V,J;if(G<X){if(J=$.input.slice(G,X),Y){for(W=0,q=J.length;W<q;W+=1)if(V=J.charCodeAt(W),!(V===9||32<=V&&V<=1114111))m($,"expected valid JSON character")}else if(fJ.test(J))m($,"the stream contains non-printable characters");$.result+=J}}function U$($,G,X,Y){var W,q,V,J;if(!B0.isObject(X))m($,"cannot merge mappings; the provided source object is unacceptable");W=Object.keys(X);for(V=0,J=W.length;V<J;V+=1)if(q=W[V],!C0.call(G,q))w$(G,q,X[q]),Y[q]=!0}function L2($,G,X,Y,W,q,V,J){var U,R;if(Array.isArray(W)){W=Array.prototype.slice.call(W);for(U=0,R=W.length;U<R;U+=1){if(Array.isArray(W[U]))m($,"nested arrays are not supported inside keys");if(typeof W==="object"&&V$(W[U])==="[object Object]")W[U]="[object Object]"}}if(typeof W==="object"&&V$(W)==="[object Object]")W="[object Object]";if(W=String(W),G===null)G={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(q))for(U=0,R=q.length;U<R;U+=1)U$($,G,q[U],X);else U$($,G,q,X);else{if(!$.json&&!C0.call(X,W)&&C0.call(G,W))$.line=V||$.line,$.position=J||$.position,m($,"duplicated mapping key");w$(G,W,q),delete X[W]}return G}function S5($){var G=$.input.charCodeAt($.position);if(G===10)$.position++;else if(G===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else m($,"a line break is expected");$.line+=1,$.lineStart=$.position}function R1($,G,X){var Y=0,W=$.input.charCodeAt($.position);while(W!==0){while(a0(W))W=$.input.charCodeAt(++$.position);if(G&&W===35)do W=$.input.charCodeAt(++$.position);while(W!==10&&W!==13&&W!==0);if(q0(W)){S5($),W=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(W===32)$.lineIndent++,W=$.input.charCodeAt(++$.position)}else break}if(X!==-1&&Y!==0&&$.lineIndent<X)V6($,"deficient indentation");return Y}function J6($){var G=$.position,X;if(X=$.input.charCodeAt(G),(X===45||X===46)&&X===$.input.charCodeAt(G+1)&&X===$.input.charCodeAt(G+2)){if(G+=3,X=$.input.charCodeAt(G),X===0||h1(X))return!0}return!1}function I5($,G){if(G===1)$.result+=" ";else if(G>1)$.result+=B0.repeat(`
|
|
19
|
-
`,G-1)}function iJ($,G,X){var Y,W,q,V,J,U,R,D,M=$.kind,F=$.result,K;if(K=$.input.charCodeAt($.position),h1(K)||_2(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){if(W=$.input.charCodeAt($.position+1),h1(W)||X&&_2(W))return!1}$.kind="scalar",$.result="",q=V=$.position,J=!1;while(K!==0){if(K===58){if(W=$.input.charCodeAt($.position+1),h1(W)||X&&_2(W))break}else if(K===35){if(Y=$.input.charCodeAt($.position-1),h1(Y))break}else if($.position===$.lineStart&&J6($)||X&&_2(K))break;else if(q0(K))if(U=$.line,R=$.lineStart,D=$.lineIndent,R1($,!1,-1),$.lineIndent>=G){J=!0,K=$.input.charCodeAt($.position);continue}else{$.position=V,$.line=U,$.lineStart=R,$.lineIndent=D;break}if(J)L0($,q,V,!1),I5($,$.line-U),q=V=$.position,J=!1;if(!a0(K))V=$.position+1;K=$.input.charCodeAt(++$.position)}if(L0($,q,V,!1),$.result)return!0;return $.kind=M,$.result=F,!1}function nJ($,G){var X,Y,W;if(X=$.input.charCodeAt($.position),X!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=W=$.position;while((X=$.input.charCodeAt($.position))!==0)if(X===39)if(L0($,Y,$.position,!0),X=$.input.charCodeAt(++$.position),X===39)Y=$.position,$.position++,W=$.position;else return!0;else if(q0(X))L0($,Y,W,!0),I5($,R1($,!1,G)),Y=W=$.position;else if($.position===$.lineStart&&J6($))m($,"unexpected end of the document within a single quoted scalar");else $.position++,W=$.position;m($,"unexpected end of the stream within a single quoted scalar")}function oJ($,G){var X,Y,W,q,V,J;if(J=$.input.charCodeAt($.position),J!==34)return!1;$.kind="scalar",$.result="",$.position++,X=Y=$.position;while((J=$.input.charCodeAt($.position))!==0)if(J===34)return L0($,X,$.position,!0),$.position++,!0;else if(J===92){if(L0($,X,$.position,!0),J=$.input.charCodeAt(++$.position),q0(J))R1($,!1,G);else if(J<256&&B$[J])$.result+=O$[J],$.position++;else if((V=lJ(J))>0){W=V,q=0;for(;W>0;W--)if(J=$.input.charCodeAt(++$.position),(V=pJ(J))>=0)q=(q<<4)+V;else m($,"expected hexadecimal character");$.result+=cJ(q),$.position++}else m($,"unknown escape sequence");X=Y=$.position}else if(q0(J))L0($,X,Y,!0),I5($,R1($,!1,G)),X=Y=$.position;else if($.position===$.lineStart&&J6($))m($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;m($,"unexpected end of the stream within a double quoted scalar")}function sJ($,G){var X=!0,Y,W=$.tag,q,V=$.anchor,J,U,R,D,M,F={},K,Z,
|
|
19
|
+
`,G-1)}function iJ($,G,X){var Y,W,q,V,J,U,R,D,M=$.kind,F=$.result,K;if(K=$.input.charCodeAt($.position),h1(K)||_2(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){if(W=$.input.charCodeAt($.position+1),h1(W)||X&&_2(W))return!1}$.kind="scalar",$.result="",q=V=$.position,J=!1;while(K!==0){if(K===58){if(W=$.input.charCodeAt($.position+1),h1(W)||X&&_2(W))break}else if(K===35){if(Y=$.input.charCodeAt($.position-1),h1(Y))break}else if($.position===$.lineStart&&J6($)||X&&_2(K))break;else if(q0(K))if(U=$.line,R=$.lineStart,D=$.lineIndent,R1($,!1,-1),$.lineIndent>=G){J=!0,K=$.input.charCodeAt($.position);continue}else{$.position=V,$.line=U,$.lineStart=R,$.lineIndent=D;break}if(J)L0($,q,V,!1),I5($,$.line-U),q=V=$.position,J=!1;if(!a0(K))V=$.position+1;K=$.input.charCodeAt(++$.position)}if(L0($,q,V,!1),$.result)return!0;return $.kind=M,$.result=F,!1}function nJ($,G){var X,Y,W;if(X=$.input.charCodeAt($.position),X!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=W=$.position;while((X=$.input.charCodeAt($.position))!==0)if(X===39)if(L0($,Y,$.position,!0),X=$.input.charCodeAt(++$.position),X===39)Y=$.position,$.position++,W=$.position;else return!0;else if(q0(X))L0($,Y,W,!0),I5($,R1($,!1,G)),Y=W=$.position;else if($.position===$.lineStart&&J6($))m($,"unexpected end of the document within a single quoted scalar");else $.position++,W=$.position;m($,"unexpected end of the stream within a single quoted scalar")}function oJ($,G){var X,Y,W,q,V,J;if(J=$.input.charCodeAt($.position),J!==34)return!1;$.kind="scalar",$.result="",$.position++,X=Y=$.position;while((J=$.input.charCodeAt($.position))!==0)if(J===34)return L0($,X,$.position,!0),$.position++,!0;else if(J===92){if(L0($,X,$.position,!0),J=$.input.charCodeAt(++$.position),q0(J))R1($,!1,G);else if(J<256&&B$[J])$.result+=O$[J],$.position++;else if((V=lJ(J))>0){W=V,q=0;for(;W>0;W--)if(J=$.input.charCodeAt(++$.position),(V=pJ(J))>=0)q=(q<<4)+V;else m($,"expected hexadecimal character");$.result+=cJ(q),$.position++}else m($,"unknown escape sequence");X=Y=$.position}else if(q0(J))L0($,X,Y,!0),I5($,R1($,!1,G)),X=Y=$.position;else if($.position===$.lineStart&&J6($))m($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;m($,"unexpected end of the stream within a double quoted scalar")}function sJ($,G){var X=!0,Y,W=$.tag,q,V=$.anchor,J,U,R,D,M,F={},K,z,Z,C;if(C=$.input.charCodeAt($.position),C===91)U=93,M=!1,q=[];else if(C===123)U=125,M=!0,q={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;C=$.input.charCodeAt(++$.position);while(C!==0){if(R1($,!0,G),C=$.input.charCodeAt($.position),C===U)return $.position++,$.tag=W,$.anchor=V,$.kind=M?"mapping":"sequence",$.result=q,!0;else if(!X)m($,"missed comma between flow collection entries");if(z=K=Z=null,R=D=!1,C===63){if(J=$.input.charCodeAt($.position+1),h1(J))R=D=!0,$.position++,R1($,!0,G)}if(Y=$.line,C2($,G,W6,!1,!0),z=$.tag,K=$.result,R1($,!0,G),C=$.input.charCodeAt($.position),(D||$.line===Y)&&C===58)R=!0,C=$.input.charCodeAt(++$.position),R1($,!0,G),C2($,G,W6,!1,!0),Z=$.result;if(M)L2($,q,F,z,K,Z);else if(R)q.push(L2($,null,F,z,K,Z));else q.push(K);if(R1($,!0,G),C=$.input.charCodeAt($.position),C===44)X=!0,C=$.input.charCodeAt(++$.position);else X=!1}m($,"unexpected end of the stream within a flow collection")}function aJ($,G){var X,Y,W=j5,q=!1,V=!1,J=G,U=0,R=!1,D,M;if(M=$.input.charCodeAt($.position),M===124)Y=!1;else if(M===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(M!==0)if(M=$.input.charCodeAt(++$.position),M===43||M===45)if(j5===W)W=M===43?q$:yJ;else m($,"repeat of a chomping mode identifier");else if((D=rJ(M))>=0)if(D===0)m($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!V)J=G+D-1,V=!0;else m($,"repeat of an indentation width identifier");else break;if(a0(M)){do M=$.input.charCodeAt(++$.position);while(a0(M));if(M===35)do M=$.input.charCodeAt(++$.position);while(!q0(M)&&M!==0)}while(M!==0){S5($),$.lineIndent=0,M=$.input.charCodeAt($.position);while((!V||$.lineIndent<J)&&M===32)$.lineIndent++,M=$.input.charCodeAt(++$.position);if(!V&&$.lineIndent>J)J=$.lineIndent;if(q0(M)){U++;continue}if($.lineIndent<J){if(W===q$)$.result+=B0.repeat(`
|
|
20
20
|
`,q?1+U:U);else if(W===j5){if(q)$.result+=`
|
|
21
21
|
`}break}if(Y)if(a0(M))R=!0,$.result+=B0.repeat(`
|
|
22
22
|
`,q?1+U:U);else if(R)R=!1,$.result+=B0.repeat(`
|
|
23
23
|
`,U+1);else if(U===0){if(q)$.result+=" "}else $.result+=B0.repeat(`
|
|
24
24
|
`,U);else $.result+=B0.repeat(`
|
|
25
|
-
`,q?1+U:U);q=!0,V=!0,U=0,X=$.position;while(!q0(M)&&M!==0)M=$.input.charCodeAt(++$.position);L0($,X,$.position,!1)}return!0}function R$($,G){var X,Y=$.tag,W=$.anchor,q=[],V,J=!1,U;if($.anchor!==null)$.anchorMap[$.anchor]=q;U=$.input.charCodeAt($.position);while(U!==0){if(U!==45)break;if(V=$.input.charCodeAt($.position+1),!h1(V))break;if(J=!0,$.position++,R1($,!0,-1)){if($.lineIndent<=G){q.push(null),U=$.input.charCodeAt($.position);continue}}if(X=$.line,C2($,G,
|
|
26
|
-
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var X=new dJ($,G),Y=$.indexOf("\x00");if(Y!==-1)X.position=Y,m(X,"null byte is not allowed in input");X.input+="\x00";while(X.input.charCodeAt(X.position)===32)X.lineIndent+=1,X.position+=1;while(X.position<X.length-1)XH(X);return X.documents}function
|
|
25
|
+
`,q?1+U:U);q=!0,V=!0,U=0,X=$.position;while(!q0(M)&&M!==0)M=$.input.charCodeAt(++$.position);L0($,X,$.position,!1)}return!0}function R$($,G){var X,Y=$.tag,W=$.anchor,q=[],V,J=!1,U;if($.anchor!==null)$.anchorMap[$.anchor]=q;U=$.input.charCodeAt($.position);while(U!==0){if(U!==45)break;if(V=$.input.charCodeAt($.position+1),!h1(V))break;if(J=!0,$.position++,R1($,!0,-1)){if($.lineIndent<=G){q.push(null),U=$.input.charCodeAt($.position);continue}}if(X=$.line,C2($,G,Q$,!1,!0),q.push($.result),R1($,!0,-1),U=$.input.charCodeAt($.position),($.line===X||$.lineIndent>G)&&U!==0)m($,"bad indentation of a sequence entry");else if($.lineIndent<G)break}if(J)return $.tag=Y,$.anchor=W,$.kind="sequence",$.result=q,!0;return!1}function tJ($,G,X){var Y,W,q,V,J=$.tag,U=$.anchor,R={},D={},M=null,F=null,K=null,z=!1,Z=!1,C;if($.anchor!==null)$.anchorMap[$.anchor]=R;C=$.input.charCodeAt($.position);while(C!==0){if(Y=$.input.charCodeAt($.position+1),q=$.line,V=$.position,(C===63||C===58)&&h1(Y)){if(C===63){if(z)L2($,R,D,M,F,null),M=F=K=null;Z=!0,z=!0,W=!0}else if(z)z=!1,W=!0;else m($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,C=Y}else if(C2($,X,A$,!1,!0))if($.line===q){C=$.input.charCodeAt($.position);while(a0(C))C=$.input.charCodeAt(++$.position);if(C===58){if(C=$.input.charCodeAt(++$.position),!h1(C))m($,"a whitespace character is expected after the key-value separator within a block mapping");if(z)L2($,R,D,M,F,null),M=F=K=null;Z=!0,z=!1,W=!1,M=$.tag,F=$.result}else if(Z)m($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=J,$.anchor=U,!0}else if(Z)m($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=J,$.anchor=U,!0;else break;if($.line===q||$.lineIndent>G){if(C2($,G,q6,!0,W))if(z)F=$.result;else K=$.result;if(!z)L2($,R,D,M,F,K,q,V),M=F=K=null;R1($,!0,-1),C=$.input.charCodeAt($.position)}if($.lineIndent>G&&C!==0)m($,"bad indentation of a mapping entry");else if($.lineIndent<G)break}if(z)L2($,R,D,M,F,null);if(Z)$.tag=J,$.anchor=U,$.kind="mapping",$.result=R;return Z}function eJ($){var G,X=!1,Y=!1,W,q,V;if(V=$.input.charCodeAt($.position),V!==33)return!1;if($.tag!==null)m($,"duplication of a tag property");if(V=$.input.charCodeAt(++$.position),V===60)X=!0,V=$.input.charCodeAt(++$.position);else if(V===33)Y=!0,W="!!",V=$.input.charCodeAt(++$.position);else W="!";if(G=$.position,X){do V=$.input.charCodeAt(++$.position);while(V!==0&&V!==62);if($.position<$.length)q=$.input.slice(G,$.position),V=$.input.charCodeAt(++$.position);else m($,"unexpected end of the stream within a verbatim tag")}else{while(V!==0&&!h1(V)){if(V===33)if(!Y){if(W=$.input.slice(G-1,$.position+1),!K$.test(W))m($,"named tag handle cannot contain such characters");Y=!0,G=$.position+1}else m($,"tag suffix cannot contain exclamation marks");V=$.input.charCodeAt(++$.position)}if(q=$.input.slice(G,$.position),uJ.test(q))m($,"tag suffix cannot contain flow indicator characters")}if(q&&!F$.test(q))m($,"tag name cannot contain such characters: "+q);if(X)$.tag=q;else if(C0.call($.tagMap,W))$.tag=$.tagMap[W]+q;else if(W==="!")$.tag="!"+q;else if(W==="!!")$.tag="tag:yaml.org,2002:"+q;else m($,'undeclared tag handle "'+W+'"');return!0}function $H($){var G,X;if(X=$.input.charCodeAt($.position),X!==38)return!1;if($.anchor!==null)m($,"duplication of an anchor property");X=$.input.charCodeAt(++$.position),G=$.position;while(X!==0&&!h1(X)&&!_2(X))X=$.input.charCodeAt(++$.position);if($.position===G)m($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(G,$.position),!0}function GH($){var G,X,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),G=$.position;while(Y!==0&&!h1(Y)&&!_2(Y))Y=$.input.charCodeAt(++$.position);if($.position===G)m($,"name of an alias node must contain at least one character");if(X=$.input.slice(G,$.position),!C0.call($.anchorMap,X))m($,'unidentified alias "'+X+'"');return $.result=$.anchorMap[X],R1($,!0,-1),!0}function C2($,G,X,Y,W){var q,V,J,U=1,R=!1,D=!1,M,F,K,z,Z;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,q=V=J=q6===X||Q$===X,Y){if(R1($,!0,-1)){if(R=!0,$.lineIndent>G)U=1;else if($.lineIndent===G)U=0;else if($.lineIndent<G)U=-1}}if(U===1)while(eJ($)||$H($))if(R1($,!0,-1)){if(R=!0,J=q,$.lineIndent>G)U=1;else if($.lineIndent===G)U=0;else if($.lineIndent<G)U=-1}else J=!1;if(J)J=R||W;if(U===1||q6===X){if(W6===X||A$===X)z=G;else z=G+1;if(Z=$.position-$.lineStart,U===1)if(J&&(R$($,Z)||tJ($,Z,z))||sJ($,z))D=!0;else{if(V&&aJ($,z)||nJ($,z)||oJ($,z))D=!0;else if(GH($)){if(D=!0,$.tag!==null||$.anchor!==null)m($,"alias node should not have any properties")}else if(iJ($,z,W6===X)){if(D=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(U===0)D=J&&R$($,Z)}if($.tag!==null&&$.tag!=="!")if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")m($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(M=0,F=$.implicitTypes.length;M<F;M+=1)if(K=$.implicitTypes[M],K.resolve($.result)){if($.result=K.construct($.result),$.tag=K.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if(C0.call($.typeMap[$.kind||"fallback"],$.tag)){if(K=$.typeMap[$.kind||"fallback"][$.tag],$.result!==null&&K.kind!==$.kind)m($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+K.kind+'", not "'+$.kind+'"');if(!K.resolve($.result))m($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=K.construct($.result),$.anchor!==null)$.anchorMap[$.anchor]=$.result}else m($,"unknown tag !<"+$.tag+">");if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||D}function XH($){var G=$.position,X,Y,W,q=!1,V;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap={},$.anchorMap={};while((V=$.input.charCodeAt($.position))!==0){if(R1($,!0,-1),V=$.input.charCodeAt($.position),$.lineIndent>0||V!==37)break;q=!0,V=$.input.charCodeAt(++$.position),X=$.position;while(V!==0&&!h1(V))V=$.input.charCodeAt(++$.position);if(Y=$.input.slice(X,$.position),W=[],Y.length<1)m($,"directive name must not be less than one character in length");while(V!==0){while(a0(V))V=$.input.charCodeAt(++$.position);if(V===35){do V=$.input.charCodeAt(++$.position);while(V!==0&&!q0(V));break}if(q0(V))break;X=$.position;while(V!==0&&!h1(V))V=$.input.charCodeAt(++$.position);W.push($.input.slice(X,$.position))}if(V!==0)S5($);if(C0.call(H$,Y))H$[Y]($,Y,W);else V6($,'unknown document directive "'+Y+'"')}if(R1($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,R1($,!0,-1);else if(q)m($,"directives end mark is expected");if(C2($,$.lineIndent-1,q6,!1,!0),R1($,!0,-1),$.checkLineBreaks&&mJ.test($.input.slice(G,$.position)))V6($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&J6($)){if($.input.charCodeAt($.position)===46)$.position+=3,R1($,!0,-1);return}if($.position<$.length-1)m($,"end of the stream or a document separator is expected");else return}function N$($,G){if($=String($),G=G||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
|
|
26
|
+
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var X=new dJ($,G),Y=$.indexOf("\x00");if(Y!==-1)X.position=Y,m(X,"null byte is not allowed in input");X.input+="\x00";while(X.input.charCodeAt(X.position)===32)X.lineIndent+=1,X.position+=1;while(X.position<X.length-1)XH(X);return X.documents}function z$($,G,X){if(G!==null&&typeof G==="object"&&typeof X>"u")X=G,G=null;var Y=N$($,X);if(typeof G!=="function")return Y;for(var W=0,q=Y.length;W<q;W+=1)G(Y[W])}function Z$($,G){var X=N$($,G);if(X.length===0)return;else if(X.length===1)return X[0];throw new D$("expected a single document in the stream, but found more")}function YH($,G,X){if(typeof G==="object"&&G!==null&&typeof X>"u")X=G,G=null;return z$($,G,B0.extend({schema:M$},X))}function WH($,G){return Z$($,B0.extend({schema:M$},G))}qH.loadAll=z$;qH.load=Z$;qH.safeLoadAll=YH;qH.safeLoad=WH});var i$=f((rH,v5)=>{var B4=n0(),O4=N2(),RH=K4(),DH=Z2(),x$=Object.prototype.toString,k$=Object.prototype.hasOwnProperty,MH=9,w4=10,AH=13,QH=32,KH=33,FH=34,b$=35,wH=37,BH=38,OH=39,PH=42,v$=44,NH=45,g$=58,zH=61,ZH=62,_H=63,LH=64,h$=91,y$=93,CH=96,f$=123,TH=124,m$=125,L1={};L1[0]="\\0";L1[7]="\\a";L1[8]="\\b";L1[9]="\\t";L1[10]="\\n";L1[11]="\\v";L1[12]="\\f";L1[13]="\\r";L1[27]="\\e";L1[34]="\\\"";L1[92]="\\\\";L1[133]="\\N";L1[160]="\\_";L1[8232]="\\L";L1[8233]="\\P";var EH=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function jH($,G){var X,Y,W,q,V,J,U;if(G===null)return{};X={},Y=Object.keys(G);for(W=0,q=Y.length;W<q;W+=1){if(V=Y[W],J=String(G[V]),V.slice(0,2)==="!!")V="tag:yaml.org,2002:"+V.slice(2);if(U=$.compiledTypeMap.fallback[V],U&&k$.call(U.styleAliases,J))J=U.styleAliases[J];X[V]=J}return X}function L$($){var G,X,Y;if(G=$.toString(16).toUpperCase(),$<=255)X="x",Y=2;else if($<=65535)X="u",Y=4;else if($<=4294967295)X="U",Y=8;else throw new O4("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+X+B4.repeat("0",Y-G.length)+G}function SH($){this.schema=$.schema||RH,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=B4.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=jH(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function C$($,G){var X=B4.repeat(" ",G),Y=0,W=-1,q="",V,J=$.length;while(Y<J){if(W=$.indexOf(`
|
|
27
27
|
`,Y),W===-1)V=$.slice(Y),Y=J;else V=$.slice(Y,W+1),Y=W+1;if(V.length&&V!==`
|
|
28
28
|
`)q+=X;q+=V}return q}function x5($,G){return`
|
|
29
|
-
`+B4.repeat(" ",$.indent*G)}function IH($,G){var X,Y,W;for(X=0,Y=$.implicitTypes.length;X<Y;X+=1)if(W=$.implicitTypes[X],W.resolve(G))return!0;return!1}function b5($){return $===
|
|
29
|
+
`+B4.repeat(" ",$.indent*G)}function IH($,G){var X,Y,W;for(X=0,Y=$.implicitTypes.length;X<Y;X+=1)if(W=$.implicitTypes[X],W.resolve(G))return!0;return!1}function b5($){return $===QH||$===MH}function T2($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==65279||65536<=$&&$<=1114111}function xH($){return T2($)&&!b5($)&&$!==65279&&$!==AH&&$!==w4}function T$($,G){return T2($)&&$!==65279&&$!==v$&&$!==h$&&$!==y$&&$!==f$&&$!==m$&&$!==g$&&($!==b$||G&&xH(G))}function kH($){return T2($)&&$!==65279&&!b5($)&&$!==NH&&$!==_H&&$!==g$&&$!==v$&&$!==h$&&$!==y$&&$!==f$&&$!==m$&&$!==b$&&$!==BH&&$!==PH&&$!==KH&&$!==TH&&$!==zH&&$!==ZH&&$!==OH&&$!==FH&&$!==wH&&$!==LH&&$!==CH}function u$($){var G=/^\n* /;return G.test($)}var p$=1,l$=2,r$=3,c$=4,H6=5;function bH($,G,X,Y,W){var q,V,J,U=!1,R=!1,D=Y!==-1,M=-1,F=kH($.charCodeAt(0))&&!b5($.charCodeAt($.length-1));if(G)for(q=0;q<$.length;q++){if(V=$.charCodeAt(q),!T2(V))return H6;J=q>0?$.charCodeAt(q-1):null,F=F&&T$(V,J)}else{for(q=0;q<$.length;q++){if(V=$.charCodeAt(q),V===w4){if(U=!0,D)R=R||q-M-1>Y&&$[M+1]!==" ",M=q}else if(!T2(V))return H6;J=q>0?$.charCodeAt(q-1):null,F=F&&T$(V,J)}R=R||D&&(q-M-1>Y&&$[M+1]!==" ")}if(!U&&!R)return F&&!W($)?p$:l$;if(X>9&&u$($))return H6;return R?c$:r$}function vH($,G,X,Y){$.dump=function(){if(G.length===0)return"''";if(!$.noCompatMode&&EH.indexOf(G)!==-1)return"'"+G+"'";var W=$.indent*Math.max(1,X),q=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-W),V=Y||$.flowLevel>-1&&X>=$.flowLevel;function J(U){return IH($,U)}switch(bH(G,V,$.indent,q,J)){case p$:return G;case l$:return"'"+G.replace(/'/g,"''")+"'";case r$:return"|"+E$(G,$.indent)+j$(C$(G,W));case c$:return">"+E$(G,$.indent)+j$(C$(gH(G,q),W));case H6:return'"'+hH(G,q)+'"';default:throw new O4("impossible error: invalid scalar style")}}()}function E$($,G){var X=u$($)?String(G):"",Y=$[$.length-1]===`
|
|
30
30
|
`,W=Y&&($[$.length-2]===`
|
|
31
31
|
`||$===`
|
|
32
32
|
`),q=W?"+":Y?"":"-";return X+q+`
|
|
@@ -38,41 +38,41 @@ var Tq=Object.create;var{getPrototypeOf:Eq,defineProperty:N5,getOwnPropertyNames
|
|
|
38
38
|
`+$.slice(W,q),W=q+1;V=J}if(U+=`
|
|
39
39
|
`,$.length-W>G&&V>W)U+=$.slice(W,V)+`
|
|
40
40
|
`+$.slice(V+1);else U+=$.slice(W);return U.slice(1)}function hH($){var G="",X,Y,W;for(var q=0;q<$.length;q++){if(X=$.charCodeAt(q),X>=55296&&X<=56319){if(Y=$.charCodeAt(q+1),Y>=56320&&Y<=57343){G+=L$((X-55296)*1024+Y-56320+65536),q++;continue}}W=L1[X],G+=!W&&T2(X)?$[q]:W||L$(X)}return G}function yH($,G,X){var Y="",W=$.tag,q,V;for(q=0,V=X.length;q<V;q+=1)if(t0($,G,X[q],!1,!1)){if(q!==0)Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}$.tag=W,$.dump="["+Y+"]"}function fH($,G,X,Y){var W="",q=$.tag,V,J;for(V=0,J=X.length;V<J;V+=1)if(t0($,G+1,X[V],!0,!0)){if(!Y||V!==0)W+=x5($,G);if($.dump&&w4===$.dump.charCodeAt(0))W+="-";else W+="- ";W+=$.dump}$.tag=q,$.dump=W||"[]"}function mH($,G,X){var Y="",W=$.tag,q=Object.keys(X),V,J,U,R,D;for(V=0,J=q.length;V<J;V+=1){if(D="",V!==0)D+=", ";if($.condenseFlow)D+='"';if(U=q[V],R=X[U],!t0($,G,U,!1,!1))continue;if($.dump.length>1024)D+="? ";if(D+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!t0($,G,R,!1,!1))continue;D+=$.dump,Y+=D}$.tag=W,$.dump="{"+Y+"}"}function uH($,G,X,Y){var W="",q=$.tag,V=Object.keys(X),J,U,R,D,M,F;if($.sortKeys===!0)V.sort();else if(typeof $.sortKeys==="function")V.sort($.sortKeys);else if($.sortKeys)throw new O4("sortKeys must be a boolean or a function");for(J=0,U=V.length;J<U;J+=1){if(F="",!Y||J!==0)F+=x5($,G);if(R=V[J],D=X[R],!t0($,G+1,R,!0,!0,!0))continue;if(M=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,M)if($.dump&&w4===$.dump.charCodeAt(0))F+="?";else F+="? ";if(F+=$.dump,M)F+=x5($,G);if(!t0($,G+1,D,!0,M))continue;if($.dump&&w4===$.dump.charCodeAt(0))F+=":";else F+=": ";F+=$.dump,W+=F}$.tag=q,$.dump=W||"{}"}function I$($,G,X){var Y,W,q,V,J,U;W=X?$.explicitTypes:$.implicitTypes;for(q=0,V=W.length;q<V;q+=1)if(J=W[q],(J.instanceOf||J.predicate)&&(!J.instanceOf||typeof G==="object"&&G instanceof J.instanceOf)&&(!J.predicate||J.predicate(G))){if($.tag=X?J.tag:"?",J.represent){if(U=$.styleMap[J.tag]||J.defaultStyle,x$.call(J.represent)==="[object Function]")Y=J.represent(G,U);else if(k$.call(J.represent,U))Y=J.represent[U](G,U);else throw new O4("!<"+J.tag+'> tag resolver accepts not "'+U+'" style');$.dump=Y}return!0}return!1}function t0($,G,X,Y,W,q){if($.tag=null,$.dump=X,!I$($,X,!1))I$($,X,!0);var V=x$.call($.dump);if(Y)Y=$.flowLevel<0||$.flowLevel>G;var J=V==="[object Object]"||V==="[object Array]",U,R;if(J)U=$.duplicates.indexOf(X),R=U!==-1;if($.tag!==null&&$.tag!=="?"||R||$.indent!==2&&G>0)W=!1;if(R&&$.usedDuplicates[U])$.dump="*ref_"+U;else{if(J&&R&&!$.usedDuplicates[U])$.usedDuplicates[U]=!0;if(V==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(uH($,G,$.dump,W),R)$.dump="&ref_"+U+$.dump}else if(mH($,G,$.dump),R)$.dump="&ref_"+U+" "+$.dump}else if(V==="[object Array]"){var D=$.noArrayIndent&&G>0?G-1:G;if(Y&&$.dump.length!==0){if(fH($,D,$.dump,W),R)$.dump="&ref_"+U+$.dump}else if(yH($,D,$.dump),R)$.dump="&ref_"+U+" "+$.dump}else if(V==="[object String]"){if($.tag!=="?")vH($,$.dump,G,q)}else{if($.skipInvalid)return!1;throw new O4("unacceptable kind of an object to dump "+V)}if($.tag!==null&&$.tag!=="?")$.dump="!<"+$.tag+"> "+$.dump}return!0}function pH($,G){var X=[],Y=[],W,q;k5($,X,Y);for(W=0,q=Y.length;W<q;W+=1)G.duplicates.push(X[Y[W]]);G.usedDuplicates=Array(q)}function k5($,G,X){var Y,W,q;if($!==null&&typeof $==="object")if(W=G.indexOf($),W!==-1){if(X.indexOf(W)===-1)X.push(W)}else if(G.push($),Array.isArray($))for(W=0,q=$.length;W<q;W+=1)k5($[W],G,X);else{Y=Object.keys($);for(W=0,q=Y.length;W<q;W+=1)k5($[Y[W]],G,X)}}function d$($,G){G=G||{};var X=new SH(G);if(!X.noRefs)pH($,X);if(t0(X,0,$,!0,!0))return X.dump+`
|
|
41
|
-
`;return""}function lH($,G){return d$($,B4.extend({schema:DH},G))}rH.dump=d$;rH.safeDump=lH});var o$=f((iH,H1)=>{var U6=_$(),n$=i$();function R6($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}iH.Type=F1();iH.Schema=o0();iH.FAILSAFE_SCHEMA=X6();iH.JSON_SCHEMA=_5();iH.CORE_SCHEMA=L5();iH.DEFAULT_SAFE_SCHEMA=
|
|
41
|
+
`;return""}function lH($,G){return d$($,B4.extend({schema:DH},G))}rH.dump=d$;rH.safeDump=lH});var o$=f((iH,H1)=>{var U6=_$(),n$=i$();function R6($){return function(){throw Error("Function "+$+" is deprecated and cannot be used.")}}iH.Type=F1();iH.Schema=o0();iH.FAILSAFE_SCHEMA=X6();iH.JSON_SCHEMA=_5();iH.CORE_SCHEMA=L5();iH.DEFAULT_SAFE_SCHEMA=Z2();iH.DEFAULT_FULL_SCHEMA=K4();iH.load=U6.load;iH.loadAll=U6.loadAll;iH.safeLoad=U6.safeLoad;iH.safeLoadAll=U6.safeLoadAll;iH.dump=n$.dump;iH.safeDump=n$.safeDump;iH.YAMLException=N2();iH.MINIMAL_SCHEMA=X6();iH.SAFE_SCHEMA=Z2();iH.DEFAULT_SCHEMA=K4();iH.scan=R6("scan");iH.parse=R6("parse");iH.compose=R6("compose");iH.addConstructor=R6("addConstructor")});var a$=f((nB,s$)=>{var KU=o$();s$.exports=KU});var f5=f((h5,y5)=>{var D6=a$(),g5=h5=y5.exports;g5.yaml={parse:D6.safeLoad.bind(D6),stringify:D6.safeDump.bind(D6)};g5.json={parse:JSON.parse.bind(JSON),stringify:function($,G){let X=Object.assign({replacer:null,space:2},G);return JSON.stringify($,X.replacer,X.space)}};g5.javascript={parse:function parse(str,options,wrap){try{if(wrap!==!1)str=`(function() {
|
|
42
42
|
return `+str.trim()+`;
|
|
43
43
|
}());`;return eval(str)||{}}catch($){if(wrap!==!1&&/(unexpected|identifier)/i.test($.message))return parse(str,options,!1);throw SyntaxError($)}},stringify:function(){throw Error("stringifying JavaScript is not supported")}}});var e$=f((oB,t$)=>{/*!
|
|
44
44
|
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
45
45
|
*
|
|
46
46
|
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
47
47
|
* Released under the MIT License.
|
|
48
|
-
*/t$.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var M6=f((FU)=>{var $G=e$(),GG=
|
|
48
|
+
*/t$.exports=function($){if(typeof $==="string"&&$.charAt(0)==="\uFEFF")return $.slice(1);return $}});var M6=f((FU)=>{var $G=e$(),GG=A4();FU.define=function($,G,X){Reflect.defineProperty($,G,{enumerable:!1,configurable:!0,writable:!0,value:X})};FU.isBuffer=function($){return GG($)==="buffer"};FU.isObject=function($){return GG($)==="object"};FU.toBuffer=function($){return typeof $==="string"?Buffer.from($):$};FU.toString=function($){if(FU.isBuffer($))return $G(String($));if(typeof $!=="string")throw TypeError("expected input to be a string or buffer");return $G($)};FU.arrayify=function($){return $?Array.isArray($)?$:[$]:[]};FU.startsWith=function($,G,X){if(typeof X!=="number")X=G.length;return $.slice(0,X)===G}});var P4=f((aB,YG)=>{var ZU=f5(),_U=M6();YG.exports=function($){let G=Object.assign({},$);if(G.delimiters=_U.arrayify(G.delims||G.delimiters||"---"),G.delimiters.length===1)G.delimiters.push(G.delimiters[0]);return G.language=(G.language||G.lang||"yaml").toLowerCase(),G.engines=Object.assign({},ZU,G.parsers,G.engines),G}});var m5=f((tB,WG)=>{WG.exports=function($,G){let X=G.engines[$]||G.engines[LU($)];if(typeof X>"u")throw Error('gray-matter engine "'+$+'" is not registered');if(typeof X==="function")X={parse:X};return X};function LU($){switch($.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return $}}});var u5=f((eB,qG)=>{var CU=A4(),TU=m5(),EU=P4();qG.exports=function($,G,X){if(G==null&&X==null)switch(CU($)){case"object":G=$.data,X={};break;case"string":return $;default:throw TypeError("expected file to be a string or object")}let Y=$.content,W=EU(X);if(G==null){if(!W.data)return $;G=W.data}let q=$.language||W.language,V=TU(q,W);if(typeof V.stringify!=="function")throw TypeError('expected "'+q+'.stringify" to be a function');G=Object.assign({},$.data,G);let J=W.delimiters[0],U=W.delimiters[1],R=V.stringify(G,X).trim(),D="";if(R!=="{}")D=E2(J)+E2(R)+E2(U);if(typeof $.excerpt==="string"&&$.excerpt!==""){if(Y.indexOf($.excerpt.trim())===-1)D+=E2($.excerpt)+E2(U)}return D+E2(Y)};function E2($){return $.slice(-1)!==`
|
|
49
49
|
`?$+`
|
|
50
|
-
`:$}});var JG=f(($O,VG)=>{var jU=P4();VG.exports=function($,G){let X=jU(G);if($.data==null)$.data={};if(typeof X.excerpt==="function")return X.excerpt($,X);let Y=$.data.excerpt_separator||X.excerpt_separator;if(Y==null&&(X.excerpt===!1||X.excerpt==null))return $;let W=typeof X.excerpt==="string"?X.excerpt:Y||X.delimiters[0],q=$.content.indexOf(W);if(q!==-1)$.excerpt=$.content.slice(0,q);return $}});var RG=f((GO,UG)=>{var HG=
|
|
51
|
-
`+X.delimiters[1],q=$.content;if(X.language)$.language=X.language;let V=Y.length;if(!
|
|
52
|
-
`)$.content=$.content.slice(1)}if(
|
|
50
|
+
`:$}});var JG=f(($O,VG)=>{var jU=P4();VG.exports=function($,G){let X=jU(G);if($.data==null)$.data={};if(typeof X.excerpt==="function")return X.excerpt($,X);let Y=$.data.excerpt_separator||X.excerpt_separator;if(Y==null&&(X.excerpt===!1||X.excerpt==null))return $;let W=typeof X.excerpt==="string"?X.excerpt:Y||X.delimiters[0],q=$.content.indexOf(W);if(q!==-1)$.excerpt=$.content.slice(0,q);return $}});var RG=f((GO,UG)=>{var HG=A4(),SU=u5(),j2=M6();UG.exports=function($){if(HG($)!=="object")$={content:$};if(HG($.data)!=="object")$.data={};if($.contents&&$.content==null)$.content=$.contents;return j2.define($,"orig",j2.toBuffer($.content)),j2.define($,"language",$.language||""),j2.define($,"matter",$.matter||""),j2.define($,"stringify",function(G,X){if(X&&X.language)$.language=X.language;return SU($,G,X)}),$.content=j2.toString($.content),$.isEmpty=!1,$.excerpt="",$}});var MG=f((XO,DG)=>{var IU=m5(),xU=P4();DG.exports=function($,G,X){let Y=xU(X),W=IU($,Y);if(typeof W.parse!=="function")throw TypeError('expected "'+$+'.parse" to be a function');return W.parse(G,Y)}});var l5=f((YO,KG)=>{var kU=w0("fs"),bU=H7(),p5=P4(),vU=u5(),AG=JG(),gU=f5(),hU=RG(),yU=MG(),QG=M6();function I1($,G){if($==="")return{data:{},content:$,excerpt:"",orig:$};let X=hU($),Y=I1.cache[X.content];if(!G){if(Y)return X=Object.assign({},Y),X.orig=Y.orig,X;I1.cache[X.content]=X}return fU(X,G)}function fU($,G){let X=p5(G),Y=X.delimiters[0],W=`
|
|
51
|
+
`+X.delimiters[1],q=$.content;if(X.language)$.language=X.language;let V=Y.length;if(!QG.startsWith(q,Y,V))return AG($,X),$;if(q.charAt(V)===Y.slice(-1))return $;q=q.slice(V);let J=q.length,U=I1.language(q,X);if(U.name)$.language=U.name,q=q.slice(U.raw.length);let R=q.indexOf(W);if(R===-1)R=J;if($.matter=q.slice(0,R),$.matter.replace(/^\s*#[^\n]+/gm,"").trim()==="")$.isEmpty=!0,$.empty=$.content,$.data={};else $.data=yU($.language,$.matter,X);if(R===J)$.content="";else{if($.content=q.slice(R+W.length),$.content[0]==="\r")$.content=$.content.slice(1);if($.content[0]===`
|
|
52
|
+
`)$.content=$.content.slice(1)}if(AG($,X),X.sections===!0||typeof X.section==="function")bU($,X.section);return $}I1.engines=gU;I1.stringify=function($,G,X){if(typeof $==="string")$=I1($,X);return vU($,G,X)};I1.read=function($,G){let X=kU.readFileSync($,"utf8"),Y=I1(X,G);return Y.path=$,Y};I1.test=function($,G){return QG.startsWith($,p5(G).delimiters[0])};I1.language=function($,G){let Y=p5(G).delimiters[0];if(I1.test($))$=$.slice(Y.length);let W=$.slice(0,$.search(/\r?\n/));return{raw:W,name:W?W.trim():""}};I1.cache={};I1.clearCache=function(){I1.cache={}};KG.exports=I1});var mG=f((MZ,fG)=>{var k2=1000,b2=k2*60,v2=b2*60,Y2=v2*24,HD=Y2*7,UD=Y2*365.25;fG.exports=function($,G){G=G||{};var X=typeof $;if(X==="string"&&$.length>0)return RD($);else if(X==="number"&&isFinite($))return G.long?MD($):DD($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function RD($){if($=String($),$.length>100)return;var G=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!G)return;var X=parseFloat(G[1]),Y=(G[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return X*UD;case"weeks":case"week":case"w":return X*HD;case"days":case"day":case"d":return X*Y2;case"hours":case"hour":case"hrs":case"hr":case"h":return X*v2;case"minutes":case"minute":case"mins":case"min":case"m":return X*b2;case"seconds":case"second":case"secs":case"sec":case"s":return X*k2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function DD($){var G=Math.abs($);if(G>=Y2)return Math.round($/Y2)+"d";if(G>=v2)return Math.round($/v2)+"h";if(G>=b2)return Math.round($/b2)+"m";if(G>=k2)return Math.round($/k2)+"s";return $+"ms"}function MD($){var G=Math.abs($);if(G>=Y2)return Z6($,G,Y2,"day");if(G>=v2)return Z6($,G,v2,"hour");if(G>=b2)return Z6($,G,b2,"minute");if(G>=k2)return Z6($,G,k2,"second");return $+" ms"}function Z6($,G,X,Y){var W=G>=X*1.5;return Math.round($/X)+" "+Y+(W?"s":"")}});var W8=f((AZ,uG)=>{function AD($){X.debug=X,X.default=X,X.coerce=U,X.disable=V,X.enable=W,X.enabled=J,X.humanize=mG(),X.destroy=R,Object.keys($).forEach((D)=>{X[D]=$[D]}),X.names=[],X.skips=[],X.formatters={};function G(D){let M=0;for(let F=0;F<D.length;F++)M=(M<<5)-M+D.charCodeAt(F),M|=0;return X.colors[Math.abs(M)%X.colors.length]}X.selectColor=G;function X(D){let M,F=null,K,z;function Z(...C){if(!Z.enabled)return;let L=Z,v=Number(new Date),h=v-(M||v);if(L.diff=h,L.prev=M,L.curr=v,M=v,C[0]=X.coerce(C[0]),typeof C[0]!=="string")C.unshift("%O");let e=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(_,G1)=>{if(_==="%%")return"%";e++;let q1=X.formatters[G1];if(typeof q1==="function"){let t=C[e];_=q1.call(L,t),C.splice(e,1),e--}return _}),X.formatArgs.call(L,C),(L.log||X.log).apply(L,C)}if(Z.namespace=D,Z.useColors=X.useColors(),Z.color=X.selectColor(D),Z.extend=Y,Z.destroy=X.destroy,Object.defineProperty(Z,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(F!==null)return F;if(K!==X.namespaces)K=X.namespaces,z=X.enabled(D);return z},set:(C)=>{F=C}}),typeof X.init==="function")X.init(Z);return Z}function Y(D,M){let F=X(this.namespace+(typeof M>"u"?":":M)+D);return F.log=this.log,F}function W(D){X.save(D),X.namespaces=D,X.names=[],X.skips=[];let M=(typeof D==="string"?D:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let F of M)if(F[0]==="-")X.skips.push(F.slice(1));else X.names.push(F)}function q(D,M){let F=0,K=0,z=-1,Z=0;while(F<D.length)if(K<M.length&&(M[K]===D[F]||M[K]==="*"))if(M[K]==="*")z=K,Z=F,K++;else F++,K++;else if(z!==-1)K=z+1,Z++,F=Z;else return!1;while(K<M.length&&M[K]==="*")K++;return K===M.length}function V(){let D=[...X.names,...X.skips.map((M)=>"-"+M)].join(",");return X.enable(""),D}function J(D){for(let M of X.skips)if(q(D,M))return!1;for(let M of X.names)if(q(D,M))return!0;return!1}function U(D){if(D instanceof Error)return D.stack||D.message;return D}function R(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return X.enable(X.load()),X}uG.exports=AD});var lG=f((pG,_6)=>{pG.formatArgs=KD;pG.save=FD;pG.load=wD;pG.useColors=QD;pG.storage=BD();pG.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();pG.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function QD(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function KD($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+_6.exports.humanize(this.diff),!this.useColors)return;let G="color: "+this.color;$.splice(1,0,G,"color: inherit");let X=0,Y=0;$[0].replace(/%[a-zA-Z%]/g,(W)=>{if(W==="%%")return;if(X++,W==="%c")Y=X}),$.splice(Y,0,G)}pG.log=console.debug||console.log||(()=>{});function FD($){try{if($)pG.storage.setItem("debug",$);else pG.storage.removeItem("debug")}catch(G){}}function wD(){let $;try{$=pG.storage.getItem("debug")||pG.storage.getItem("DEBUG")}catch(G){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function BD(){try{return localStorage}catch($){}}_6.exports=W8()(pG);var{formatters:OD}=_6.exports;OD.j=function($){try{return JSON.stringify($)}catch(G){return"[UnexpectedJSONParseError]: "+G.message}}});var cG=f((KZ,rG)=>{rG.exports=($,G=process.argv)=>{let X=$.startsWith("-")?"":$.length===1?"-":"--",Y=G.indexOf(X+$),W=G.indexOf("--");return Y!==-1&&(W===-1||Y<W)}});var nG=f((FZ,iG)=>{var TD=w0("os"),dG=w0("tty"),n1=cG(),{env:B1}=process,j0;if(n1("no-color")||n1("no-colors")||n1("color=false")||n1("color=never"))j0=0;else if(n1("color")||n1("colors")||n1("color=true")||n1("color=always"))j0=1;if("FORCE_COLOR"in B1)if(B1.FORCE_COLOR==="true")j0=1;else if(B1.FORCE_COLOR==="false")j0=0;else j0=B1.FORCE_COLOR.length===0?1:Math.min(parseInt(B1.FORCE_COLOR,10),3);function q8($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function V8($,G){if(j0===0)return 0;if(n1("color=16m")||n1("color=full")||n1("color=truecolor"))return 3;if(n1("color=256"))return 2;if($&&!G&&j0===void 0)return 0;let X=j0||0;if(B1.TERM==="dumb")return X;if(process.platform==="win32"){let Y=TD.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in B1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in B1))||B1.CI_NAME==="codeship")return 1;return X}if("TEAMCITY_VERSION"in B1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(B1.TEAMCITY_VERSION)?1:0;if(B1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in B1){let Y=parseInt((B1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(B1.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(B1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(B1.TERM))return 1;if("COLORTERM"in B1)return 1;return X}function ED($){let G=V8($,$&&$.isTTY);return q8(G)}iG.exports={supportsColor:ED,stdout:q8(V8(!0,dG.isatty(1))),stderr:q8(V8(!0,dG.isatty(2)))}});var tG=f((sG,C6)=>{var jD=w0("tty"),L6=w0("util");sG.init=gD;sG.log=kD;sG.formatArgs=ID;sG.save=bD;sG.load=vD;sG.useColors=SD;sG.destroy=L6.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");sG.colors=[6,2,3,4,5,1];try{let $=nG();if($&&($.stderr||$).level>=2)sG.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}sG.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,G)=>{let X=G.substring(6).toLowerCase().replace(/_([a-z])/g,(W,q)=>{return q.toUpperCase()}),Y=process.env[G];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return $[X]=Y,$},{});function SD(){return"colors"in sG.inspectOpts?Boolean(sG.inspectOpts.colors):jD.isatty(process.stderr.fd)}function ID($){let{namespace:G,useColors:X}=this;if(X){let Y=this.color,W="\x1B[3"+(Y<8?Y:"8;5;"+Y),q=` ${W};1m${G} \x1B[0m`;$[0]=q+$[0].split(`
|
|
53
53
|
`).join(`
|
|
54
54
|
`+q),$.push(W+"m+"+C6.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=xD()+G+" "+$[0]}function xD(){if(sG.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function kD(...$){return process.stderr.write(L6.formatWithOptions(sG.inspectOpts,...$)+`
|
|
55
55
|
`)}function bD($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function vD(){return process.env.DEBUG}function gD($){$.inspectOpts={};let G=Object.keys(sG.inspectOpts);for(let X=0;X<G.length;X++)$.inspectOpts[G[X]]=sG.inspectOpts[G[X]]}C6.exports=W8()(sG);var{formatters:oG}=C6.exports;oG.o=function($){return this.inspectOpts.colors=this.useColors,L6.inspect($,this.inspectOpts).split(`
|
|
56
|
-
`).map((G)=>G.trim()).join(" ")};oG.O=function($){return this.inspectOpts.colors=this.useColors,L6.inspect($,this.inspectOpts)}});var eG=f((
|
|
56
|
+
`).map((G)=>G.trim()).join(" ")};oG.O=function($){return this.inspectOpts.colors=this.useColors,L6.inspect($,this.inspectOpts)}});var eG=f((BZ,J8)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)J8.exports=lG();else J8.exports=tG()});var a3=f((cC,s3)=>{var g6=Object.prototype.hasOwnProperty,o3=Object.prototype.toString,l3=Object.defineProperty,r3=Object.getOwnPropertyDescriptor,c3=function(G){if(typeof Array.isArray==="function")return Array.isArray(G);return o3.call(G)==="[object Array]"},d3=function(G){if(!G||o3.call(G)!=="[object Object]")return!1;var X=g6.call(G,"constructor"),Y=G.constructor&&G.constructor.prototype&&g6.call(G.constructor.prototype,"isPrototypeOf");if(G.constructor&&!X&&!Y)return!1;var W;for(W in G);return typeof W>"u"||g6.call(G,W)},i3=function(G,X){if(l3&&X.name==="__proto__")l3(G,X.name,{enumerable:!0,configurable:!0,value:X.newValue,writable:!0});else G[X.name]=X.newValue},n3=function(G,X){if(X==="__proto__"){if(!g6.call(G,X))return;else if(r3)return r3(G,X).value}return G[X]};s3.exports=function $(){var G,X,Y,W,q,V,J=arguments[0],U=1,R=arguments.length,D=!1;if(typeof J==="boolean")D=J,J=arguments[1]||{},U=2;if(J==null||typeof J!=="object"&&typeof J!=="function")J={};for(;U<R;++U)if(G=arguments[U],G!=null){for(X in G)if(Y=n3(J,X),W=n3(G,X),J!==W){if(D&&W&&(d3(W)||(q=c3(W)))){if(q)q=!1,V=Y&&c3(Y)?Y:[];else V=Y&&d3(Y)?Y:{};i3(J,{name:X,newValue:$(D,V,W)})}else if(typeof W<"u")i3(J,{name:X,newValue:W})}}return J}});import{openSync as gq,writeSync as hq}from"fs";class N1{static instance=null;level;context;useStderr;format;logFile;fileHandle;constructor($={},G){if(this.level=$.level??3,this.context=$.context??void 0,this.useStderr=$.useStderr??!1,this.format=$.format??"text",this.logFile=$.logFile,G!==void 0)this.fileHandle=G;else if(this.logFile)try{this.fileHandle=gq(this.logFile,"a")}catch{}}static getInstance($){if(!N1.instance)N1.instance=new N1($);else if($?.useStderr!==void 0)N1.instance.useStderr=$.useStderr;return N1.instance}static resetInstance(){N1.instance=null}static createFresh($){return new N1($)}formatEntry($,G,X){let Y=new Date().toISOString();if(this.format==="json"){let W={ts:Y,level:$,msg:G};if(this.context)W.ctx=this.context;if(X.length>0)W.data=X;return JSON.stringify(W)}return this.context?`[${Y}] [${this.context}] ${G}`:`[${Y}] ${G}`}write($,G,X,Y){if(this.format==="json")$(this.formatEntry(G,X,Y));else if(Y.length>0)$(this.formatEntry(G,X,[]),...Y);else $(this.formatEntry(G,X,[]));if(this.fileHandle!==void 0){let W=this.formatJsonEntry(G,X,Y);try{hq(this.fileHandle,W+`
|
|
57
57
|
`)}catch{}}}formatJsonEntry($,G,X){let Y={ts:new Date().toISOString(),level:$,msg:G};if(this.context)Y.ctx=this.context;if(X.length>0)Y.data=X;return JSON.stringify(Y)}silly($,...G){if(this.level<=0)this.write(console.debug.bind(console),"silly",$,G)}verbose($,...G){if(this.level<=1)this.write(console.debug.bind(console),"verbose",$,G)}debug($,...G){if(this.level<=2)this.write(console.debug.bind(console),"debug",$,G)}info($,...G){if(this.level<=3){let X=this.useStderr?console.error.bind(console):console.info.bind(console);this.write(X,"info",$,G)}}warn($,...G){if(this.level<=4)this.write(console.warn.bind(console),"warn",$,G)}error($,...G){if(this.level<=5)this.write(console.error.bind(console),"error",$,G)}child($){return new N1({level:this.level,context:$,useStderr:this.useStderr,format:this.format},this.fileHandle)}setUseStderr($){this.useStderr=$}}var yq=N1.getInstance();var jM=$6(l5(),1);class FG extends Error{name="Assertion";code="ERR_ASSERTION";constructor($,G,X,Y,W){super($);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.actual=G,this.expected=X,this.generated=W,this.operator=Y}}function w($,G){mU(Boolean($),!1,!0,"ok","Expected value to be truthy",G)}function mU($,G,X,Y,W,q){if(!$)throw q instanceof Error?q:new FG(q||W,G,X,Y,!q)}var uU={};function e0($,G){let X=G||uU,Y=typeof X.includeImageAlt==="boolean"?X.includeImageAlt:!0,W=typeof X.includeHtml==="boolean"?X.includeHtml:!0;return BG($,Y,W)}function BG($,G,X){if(pU($)){if("value"in $)return $.type==="html"&&!X?"":$.value;if(G&&"alt"in $&&$.alt)return $.alt;if("children"in $)return wG($.children,G,X)}if(Array.isArray($))return wG($,G,X);return""}function wG($,G,X){let Y=[],W=-1;while(++W<$.length)Y[W]=BG($[W],G,X);return Y.join("")}function pU($){return Boolean($&&typeof $==="object")}var r5={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\uD835\uDD04",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\uD835\uDD38",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\uD835\uDC9C",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\uD835\uDC9E",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\uD835\uDD3B",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\uD835\uDC9F",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\uD835\uDD08",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\uD835\uDD3C",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\uD835\uDD09",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\uD835\uDD3D",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\uD835\uDD0A",Gg:"\u22D9",Gopf:"\uD835\uDD3E",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\uD835\uDD40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\uD835\uDD0F",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\uD835\uDD43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",MinusPlus:"\u2213",Mopf:"\uD835\uDD44",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
58
|
-
`,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"};var lU={}.hasOwnProperty;function S2($){return lU.call(r5,$)?r5[$]:!1}var A={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var T={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var Q={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var p1={ht:"\t",lf:`
|
|
59
|
-
`,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"\uFFFD"};function Z1($,G,X,Y){let W=$.length,q=0,V;if(G<0)G=-G>W?0:W+G;else G=G>W?W:G;if(X=X>0?X:0,Y.length<T.v8MaxSafeChunkSize)V=Array.from(Y),V.unshift(G,X),$.splice(...V);else{if(X)$.splice(G,X);while(q<Y.length)V=Y.slice(q,q+T.v8MaxSafeChunkSize),V.unshift(G,0),$.splice(...V),q+=T.v8MaxSafeChunkSize,G+=T.v8MaxSafeChunkSize}}function x1($,G){if($.length>0)return Z1($,$.length,0,G),$;return G}var OG={}.hasOwnProperty;function PG($){let G={},X=-1;while(++X<$.length)rU(G,$[X]);return G}function rU($,G){let X;for(X in G){let W=(OG.call($,X)?$[X]:void 0)||($[X]={}),q=G[X],V;if(q)for(V in q){if(!OG.call(W,V))W[V]=[];let J=q[V];cU(W[V],Array.isArray(J)?J:J?[J]:[])}}}function cU($,G){let X=-1,Y=[];while(++X<G.length)(G[X].add==="after"?$:Y).push(G[X]);Z1($,0,0,Y)}function Q6($,G){let X=Number.parseInt($,G);if(X<A.ht||X===A.vt||X>A.cr&&X<A.space||X>A.tilde&&X<160||X>55295&&X<57344||X>64975&&X<65008||(X&65535)===65535||(X&65535)===65534||X>1114111)return p1.replacementCharacter;return String.fromCodePoint(X)}function O0($){return $.replace(/[\t\n\r ]+/g,p1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var l1=T0(/[A-Za-z]/),k1=T0(/[\dA-Za-z]/),NG=T0(/[#-'*+\--9=?A-Z^-~]/);function N4($){return $!==null&&($<A.space||$===A.del)}var Z4=T0(/\d/),ZG=T0(/[\dA-Fa-f]/),zG=T0(/[!-/:-@[-`{-~]/);function S($){return $!==null&&$<A.horizontalTab}function U1($){return $!==null&&($<A.nul||$===A.space)}function l($){return $===A.horizontalTab||$===A.virtualSpace||$===A.space}var _G=T0(/\p{P}|\p{S}/u),LG=T0(/\s/);function T0($){return G;function G(X){return X!==null&&X>-1&&$.test(String.fromCharCode(X))}}function c($,G,X,Y){let W=Y?Y-1:Number.POSITIVE_INFINITY,q=0;return V;function V(U){if(l(U))return $.enter(X),J(U);return G(U)}function J(U){if(l(U)&&q++<W)return $.consume(U),J;return $.exit(X),G(U)}}var CG={tokenize:dU};function dU($){let G=$.attempt(this.parser.constructs.contentInitial,Y,W),X;return G;function Y(J){if(w(J===A.eof||S(J),"expected eol or eof"),J===A.eof){$.consume(J);return}return $.enter(Q.lineEnding),$.consume(J),$.exit(Q.lineEnding),c($,G,Q.linePrefix)}function W(J){return w(J!==A.eof&&!S(J),"expected anything other than a line ending or EOF"),$.enter(Q.paragraph),q(J)}function q(J){let U=$.enter(Q.chunkText,{contentType:T.contentTypeText,previous:X});if(X)X.next=U;return X=U,V(J)}function V(J){if(J===A.eof){$.exit(Q.chunkText),$.exit(Q.paragraph),$.consume(J);return}if(S(J))return $.consume(J),$.exit(Q.chunkText),q;return $.consume(J),V}}var EG={tokenize:iU},TG={tokenize:nU};function iU($){let G=this,X=[],Y=0,W,q,V;return J;function J(h){if(Y<X.length){let e=X[Y];return G.containerState=e[1],w(e[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(e[0].continuation,U,R)(h)}return R(h)}function U(h){if(w(G.containerState,"expected `containerState` to be defined after continuation"),Y++,G.containerState._closeFlow){if(G.containerState._closeFlow=void 0,W)v();let e=G.events.length,Y1=e,_;while(Y1--)if(G.events[Y1][0]==="exit"&&G.events[Y1][1].type===Q.chunkFlow){_=G.events[Y1][1].end;break}w(_,"could not find previous flow chunk"),L(Y);let G1=e;while(G1<G.events.length)G.events[G1][1].end={..._},G1++;return Z1(G.events,Y1+1,0,G.events.slice(e)),G.events.length=G1,R(h)}return J(h)}function R(h){if(Y===X.length){if(!W)return F(h);if(W.currentConstruct&&W.currentConstruct.concrete)return Z(h);G.interrupt=Boolean(W.currentConstruct&&!W._gfmTableDynamicInterruptHack)}return G.containerState={},$.check(TG,D,M)(h)}function D(h){if(W)v();return L(Y),F(h)}function M(h){return G.parser.lazy[G.now().line]=Y!==X.length,V=G.now().offset,Z(h)}function F(h){return G.containerState={},$.attempt(TG,K,Z)(h)}function K(h){return w(G.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),w(G.containerState,"expected `containerState` to be defined on tokenizer"),Y++,X.push([G.currentConstruct,G.containerState]),F(h)}function Z(h){if(h===A.eof){if(W)v();L(0),$.consume(h);return}return W=W||G.parser.flow(G.now()),$.enter(Q.chunkFlow,{_tokenizer:W,contentType:T.contentTypeFlow,previous:q}),z(h)}function z(h){if(h===A.eof){C($.exit(Q.chunkFlow),!0),L(0),$.consume(h);return}if(S(h))return $.consume(h),C($.exit(Q.chunkFlow)),Y=0,G.interrupt=void 0,J;return $.consume(h),z}function C(h,e){w(W,"expected `childFlow` to be defined when continuing");let Y1=G.sliceStream(h);if(e)Y1.push(null);if(h.previous=q,q)q.next=h;if(q=h,W.defineSkip(h.start),W.write(Y1),G.parser.lazy[h.start.line]){let _=W.events.length;while(_--)if(W.events[_][1].start.offset<V&&(!W.events[_][1].end||W.events[_][1].end.offset>V))return;let G1=G.events.length,q1=G1,t,W1;while(q1--)if(G.events[q1][0]==="exit"&&G.events[q1][1].type===Q.chunkFlow){if(t){W1=G.events[q1][1].end;break}t=!0}w(W1,"could not find previous flow chunk"),L(Y),_=G1;while(_<G.events.length)G.events[_][1].end={...W1},_++;Z1(G.events,q1+1,0,G.events.slice(G1)),G.events.length=_}}function L(h){let e=X.length;while(e-- >h){let Y1=X[e];G.containerState=Y1[1],w(Y1[0].exit,"expected `exit` to be defined on container construct"),Y1[0].exit.call(G,$)}X.length=h}function v(){w(G.containerState,"expected `containerState` to be defined when closing flow"),w(W,"expected `childFlow` to be defined when closing it"),W.write([A.eof]),q=void 0,W=void 0,G.containerState._closeFlow=void 0}}function nU($,G,X){return w(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,$.attempt(this.parser.constructs.document,G,X),Q.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)}function I2($){if($===A.eof||U1($)||LG($))return T.characterGroupWhitespace;if(_G($))return T.characterGroupPunctuation}function x2($,G,X){let Y=[],W=-1;while(++W<$.length){let q=$[W].resolveAll;if(q&&!Y.includes(q))G=q(G,X),Y.push(q)}return G}var z4={name:"attention",resolveAll:oU,tokenize:sU};function oU($,G){let X=-1,Y,W,q,V,J,U,R,D;while(++X<$.length)if($[X][0]==="enter"&&$[X][1].type==="attentionSequence"&&$[X][1]._close){Y=X;while(Y--)if($[Y][0]==="exit"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._open&&G.sliceSerialize($[Y][1]).charCodeAt(0)===G.sliceSerialize($[X][1]).charCodeAt(0)){if(($[Y][1]._close||$[X][1]._open)&&($[X][1].end.offset-$[X][1].start.offset)%3&&!(($[Y][1].end.offset-$[Y][1].start.offset+$[X][1].end.offset-$[X][1].start.offset)%3))continue;U=$[Y][1].end.offset-$[Y][1].start.offset>1&&$[X][1].end.offset-$[X][1].start.offset>1?2:1;let M={...$[Y][1].end},F={...$[X][1].start};if(jG(M,-U),jG(F,U),V={type:U>1?Q.strongSequence:Q.emphasisSequence,start:M,end:{...$[Y][1].end}},J={type:U>1?Q.strongSequence:Q.emphasisSequence,start:{...$[X][1].start},end:F},q={type:U>1?Q.strongText:Q.emphasisText,start:{...$[Y][1].end},end:{...$[X][1].start}},W={type:U>1?Q.strong:Q.emphasis,start:{...V.start},end:{...J.end}},$[Y][1].end={...V.start},$[X][1].start={...J.end},R=[],$[Y][1].end.offset-$[Y][1].start.offset)R=x1(R,[["enter",$[Y][1],G],["exit",$[Y][1],G]]);if(R=x1(R,[["enter",W,G],["enter",V,G],["exit",V,G],["enter",q,G]]),w(G.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),R=x1(R,x2(G.parser.constructs.insideSpan.null,$.slice(Y+1,X),G)),R=x1(R,[["exit",q,G],["enter",J,G],["exit",J,G],["exit",W,G]]),$[X][1].end.offset-$[X][1].start.offset)D=2,R=x1(R,[["enter",$[X][1],G],["exit",$[X][1],G]]);else D=0;Z1($,Y-1,X-Y+3,R),X=Y+R.length-D-2;break}}X=-1;while(++X<$.length)if($[X][1].type==="attentionSequence")$[X][1].type="data";return $}function sU($,G){let X=this.parser.constructs.attentionMarkers.null,Y=this.previous,W=I2(Y),q;return V;function V(U){return w(U===A.asterisk||U===A.underscore,"expected asterisk or underscore"),q=U,$.enter("attentionSequence"),J(U)}function J(U){if(U===q)return $.consume(U),J;let R=$.exit("attentionSequence"),D=I2(U);w(X,"expected `attentionMarkers` to be populated");let M=!D||D===T.characterGroupPunctuation&&W||X.includes(U),F=!W||W===T.characterGroupPunctuation&&D||X.includes(Y);return R._open=Boolean(q===A.asterisk?M:M&&(W||!F)),R._close=Boolean(q===A.asterisk?F:F&&(D||!M)),G(U)}}function jG($,G){$.column+=G,$.offset+=G,$._bufferIndex+=G}var c5={name:"autolink",tokenize:aU};function aU($,G,X){let Y=0;return W;function W(K){return w(K===A.lessThan,"expected `<`"),$.enter(Q.autolink),$.enter(Q.autolinkMarker),$.consume(K),$.exit(Q.autolinkMarker),$.enter(Q.autolinkProtocol),q}function q(K){if(l1(K))return $.consume(K),V;if(K===A.atSign)return X(K);return R(K)}function V(K){if(K===A.plusSign||K===A.dash||K===A.dot||k1(K))return Y=1,J(K);return R(K)}function J(K){if(K===A.colon)return $.consume(K),Y=0,U;if((K===A.plusSign||K===A.dash||K===A.dot||k1(K))&&Y++<T.autolinkSchemeSizeMax)return $.consume(K),J;return Y=0,R(K)}function U(K){if(K===A.greaterThan)return $.exit(Q.autolinkProtocol),$.enter(Q.autolinkMarker),$.consume(K),$.exit(Q.autolinkMarker),$.exit(Q.autolink),G;if(K===A.eof||K===A.space||K===A.lessThan||N4(K))return X(K);return $.consume(K),U}function R(K){if(K===A.atSign)return $.consume(K),D;if(NG(K))return $.consume(K),R;return X(K)}function D(K){return k1(K)?M(K):X(K)}function M(K){if(K===A.dot)return $.consume(K),Y=0,D;if(K===A.greaterThan)return $.exit(Q.autolinkProtocol).type=Q.autolinkEmail,$.enter(Q.autolinkMarker),$.consume(K),$.exit(Q.autolinkMarker),$.exit(Q.autolink),G;return F(K)}function F(K){if((K===A.dash||k1(K))&&Y++<T.autolinkDomainSizeMax){let Z=K===A.dash?F:M;return $.consume(K),Z}return X(K)}}var E0={partial:!0,tokenize:tU};function tU($,G,X){return Y;function Y(q){return l(q)?c($,W,Q.linePrefix)(q):W(q)}function W(q){return q===A.eof||S(q)?G(q):X(q)}}var A6={continuation:{tokenize:$R},exit:GR,name:"blockQuote",tokenize:eU};function eU($,G,X){let Y=this;return W;function W(V){if(V===A.greaterThan){let J=Y.containerState;if(w(J,"expected `containerState` to be defined in container"),!J.open)$.enter(Q.blockQuote,{_container:!0}),J.open=!0;return $.enter(Q.blockQuotePrefix),$.enter(Q.blockQuoteMarker),$.consume(V),$.exit(Q.blockQuoteMarker),q}return X(V)}function q(V){if(l(V))return $.enter(Q.blockQuotePrefixWhitespace),$.consume(V),$.exit(Q.blockQuotePrefixWhitespace),$.exit(Q.blockQuotePrefix),G;return $.exit(Q.blockQuotePrefix),G(V)}}function $R($,G,X){let Y=this;return W;function W(V){if(l(V))return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,q,Q.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(V);return q(V)}function q(V){return $.attempt(A6,G,X)(V)}}function GR($){$.exit(Q.blockQuote)}var K6={name:"characterEscape",tokenize:XR};function XR($,G,X){return Y;function Y(q){return w(q===A.backslash,"expected `\\`"),$.enter(Q.characterEscape),$.enter(Q.escapeMarker),$.consume(q),$.exit(Q.escapeMarker),W}function W(q){if(zG(q))return $.enter(Q.characterEscapeValue),$.consume(q),$.exit(Q.characterEscapeValue),$.exit(Q.characterEscape),G;return X(q)}}var F6={name:"characterReference",tokenize:YR};function YR($,G,X){let Y=this,W=0,q,V;return J;function J(M){return w(M===A.ampersand,"expected `&`"),$.enter(Q.characterReference),$.enter(Q.characterReferenceMarker),$.consume(M),$.exit(Q.characterReferenceMarker),U}function U(M){if(M===A.numberSign)return $.enter(Q.characterReferenceMarkerNumeric),$.consume(M),$.exit(Q.characterReferenceMarkerNumeric),R;return $.enter(Q.characterReferenceValue),q=T.characterReferenceNamedSizeMax,V=k1,D(M)}function R(M){if(M===A.uppercaseX||M===A.lowercaseX)return $.enter(Q.characterReferenceMarkerHexadecimal),$.consume(M),$.exit(Q.characterReferenceMarkerHexadecimal),$.enter(Q.characterReferenceValue),q=T.characterReferenceHexadecimalSizeMax,V=ZG,D;return $.enter(Q.characterReferenceValue),q=T.characterReferenceDecimalSizeMax,V=Z4,D(M)}function D(M){if(M===A.semicolon&&W){let F=$.exit(Q.characterReferenceValue);if(V===k1&&!S2(Y.sliceSerialize(F)))return X(M);return $.enter(Q.characterReferenceMarker),$.consume(M),$.exit(Q.characterReferenceMarker),$.exit(Q.characterReference),G}if(V(M)&&W++<q)return $.consume(M),D;return X(M)}}var SG={partial:!0,tokenize:qR},w6={concrete:!0,name:"codeFenced",tokenize:WR};function WR($,G,X){let Y=this,W={partial:!0,tokenize:Y1},q=0,V=0,J;return U;function U(_){return R(_)}function R(_){w(_===A.graveAccent||_===A.tilde,"expected `` ` `` or `~`");let G1=Y.events[Y.events.length-1];return q=G1&&G1[1].type===Q.linePrefix?G1[2].sliceSerialize(G1[1],!0).length:0,J=_,$.enter(Q.codeFenced),$.enter(Q.codeFencedFence),$.enter(Q.codeFencedFenceSequence),D(_)}function D(_){if(_===J)return V++,$.consume(_),D;if(V<T.codeFencedSequenceSizeMin)return X(_);return $.exit(Q.codeFencedFenceSequence),l(_)?c($,M,Q.whitespace)(_):M(_)}function M(_){if(_===A.eof||S(_))return $.exit(Q.codeFencedFence),Y.interrupt?G(_):$.check(SG,z,e)(_);return $.enter(Q.codeFencedFenceInfo),$.enter(Q.chunkString,{contentType:T.contentTypeString}),F(_)}function F(_){if(_===A.eof||S(_))return $.exit(Q.chunkString),$.exit(Q.codeFencedFenceInfo),M(_);if(l(_))return $.exit(Q.chunkString),$.exit(Q.codeFencedFenceInfo),c($,K,Q.whitespace)(_);if(_===A.graveAccent&&_===J)return X(_);return $.consume(_),F}function K(_){if(_===A.eof||S(_))return M(_);return $.enter(Q.codeFencedFenceMeta),$.enter(Q.chunkString,{contentType:T.contentTypeString}),Z(_)}function Z(_){if(_===A.eof||S(_))return $.exit(Q.chunkString),$.exit(Q.codeFencedFenceMeta),M(_);if(_===A.graveAccent&&_===J)return X(_);return $.consume(_),Z}function z(_){return w(S(_),"expected eol"),$.attempt(W,e,C)(_)}function C(_){return w(S(_),"expected eol"),$.enter(Q.lineEnding),$.consume(_),$.exit(Q.lineEnding),L}function L(_){return q>0&&l(_)?c($,v,Q.linePrefix,q+1)(_):v(_)}function v(_){if(_===A.eof||S(_))return $.check(SG,z,e)(_);return $.enter(Q.codeFlowValue),h(_)}function h(_){if(_===A.eof||S(_))return $.exit(Q.codeFlowValue),v(_);return $.consume(_),h}function e(_){return $.exit(Q.codeFenced),G(_)}function Y1(_,G1,q1){let t=0;return W1;function W1(n){return w(S(n),"expected eol"),_.enter(Q.lineEnding),_.consume(n),_.exit(Q.lineEnding),c1}function c1(n){return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),_.enter(Q.codeFencedFence),l(n)?c(_,X1,Q.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(n):X1(n)}function X1(n){if(n===J)return _.enter(Q.codeFencedFenceSequence),k(n);return q1(n)}function k(n){if(n===J)return t++,_.consume(n),k;if(t>=V)return _.exit(Q.codeFencedFenceSequence),l(n)?c(_,r,Q.whitespace)(n):r(n);return q1(n)}function r(n){if(n===A.eof||S(n))return _.exit(Q.codeFencedFence),G1(n);return q1(n)}}}function qR($,G,X){let Y=this;return W;function W(V){if(V===A.eof)return X(V);return w(S(V),"expected eol"),$.enter(Q.lineEnding),$.consume(V),$.exit(Q.lineEnding),q}function q(V){return Y.parser.lazy[Y.now().line]?X(V):G(V)}}var _4={name:"codeIndented",tokenize:JR},VR={partial:!0,tokenize:HR};function JR($,G,X){let Y=this;return W;function W(R){return w(l(R)),$.enter(Q.codeIndented),c($,q,Q.linePrefix,T.tabSize+1)(R)}function q(R){let D=Y.events[Y.events.length-1];return D&&D[1].type===Q.linePrefix&&D[2].sliceSerialize(D[1],!0).length>=T.tabSize?V(R):X(R)}function V(R){if(R===A.eof)return U(R);if(S(R))return $.attempt(VR,V,U)(R);return $.enter(Q.codeFlowValue),J(R)}function J(R){if(R===A.eof||S(R))return $.exit(Q.codeFlowValue),V(R);return $.consume(R),J}function U(R){return $.exit(Q.codeIndented),G(R)}}function HR($,G,X){let Y=this;return W;function W(V){if(Y.parser.lazy[Y.now().line])return X(V);if(S(V))return $.enter(Q.lineEnding),$.consume(V),$.exit(Q.lineEnding),W;return c($,q,Q.linePrefix,T.tabSize+1)(V)}function q(V){let J=Y.events[Y.events.length-1];return J&&J[1].type===Q.linePrefix&&J[2].sliceSerialize(J[1],!0).length>=T.tabSize?G(V):S(V)?W(V):X(V)}}var d5={name:"codeText",previous:IG,resolve:UR,tokenize:RR};function UR($){let G=$.length-4,X=3,Y,W;if(($[X][1].type===Q.lineEnding||$[X][1].type==="space")&&($[G][1].type===Q.lineEnding||$[G][1].type==="space")){Y=X;while(++Y<G)if($[Y][1].type===Q.codeTextData){$[X][1].type=Q.codeTextPadding,$[G][1].type=Q.codeTextPadding,X+=2,G-=2;break}}Y=X-1,G++;while(++Y<=G)if(W===void 0){if(Y!==G&&$[Y][1].type!==Q.lineEnding)W=Y}else if(Y===G||$[Y][1].type===Q.lineEnding){if($[W][1].type=Q.codeTextData,Y!==W+2)$[W][1].end=$[Y-1][1].end,$.splice(W+2,Y-W-2),G-=Y-W-2,Y=W+2;W=void 0}return $}function IG($){return $!==A.graveAccent||this.events[this.events.length-1][1].type===Q.characterEscape}function RR($,G,X){let Y=this,W=0,q,V;return J;function J(F){return w(F===A.graveAccent,"expected `` ` ``"),w(IG.call(Y,Y.previous),"expected correct previous"),$.enter(Q.codeText),$.enter(Q.codeTextSequence),U(F)}function U(F){if(F===A.graveAccent)return $.consume(F),W++,U;return $.exit(Q.codeTextSequence),R(F)}function R(F){if(F===A.eof)return X(F);if(F===A.space)return $.enter("space"),$.consume(F),$.exit("space"),R;if(F===A.graveAccent)return V=$.enter(Q.codeTextSequence),q=0,M(F);if(S(F))return $.enter(Q.lineEnding),$.consume(F),$.exit(Q.lineEnding),R;return $.enter(Q.codeTextData),D(F)}function D(F){if(F===A.eof||F===A.space||F===A.graveAccent||S(F))return $.exit(Q.codeTextData),R(F);return $.consume(F),D}function M(F){if(F===A.graveAccent)return $.consume(F),q++,M;if(q===W)return $.exit(Q.codeTextSequence),$.exit(Q.codeText),G(F);return V.type=Q.codeTextData,D(F)}}class i5{constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,G){let X=G===null||G===void 0?Number.POSITIVE_INFINITY:G;if(X<this.left.length)return this.left.slice($,X);if($>this.left.length)return this.right.slice(this.right.length-X+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-X+this.left.length).reverse())}splice($,G,X){let Y=G||0;this.setCursor(Math.trunc($));let W=this.right.splice(this.right.length-Y,Number.POSITIVE_INFINITY);if(X)L4(this.left,X);return W.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),L4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),L4(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let G=this.left.splice($,Number.POSITIVE_INFINITY);L4(this.right,G.reverse())}else{let G=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);L4(this.left,G.reverse())}}}function L4($,G){let X=0;if(G.length<T.v8MaxSafeChunkSize)$.push(...G);else while(X<G.length)$.push(...G.slice(X,X+T.v8MaxSafeChunkSize)),X+=T.v8MaxSafeChunkSize}function B6($){let G={},X=-1,Y,W,q,V,J,U,R,D=new i5($);while(++X<D.length){while(X in G)X=G[X];if(Y=D.get(X),X&&Y[1].type===Q.chunkFlow&&D.get(X-1)[1].type===Q.listItemPrefix){if(w(Y[1]._tokenizer,"expected `_tokenizer` on subtokens"),U=Y[1]._tokenizer.events,q=0,q<U.length&&U[q][1].type===Q.lineEndingBlank)q+=2;if(q<U.length&&U[q][1].type===Q.content)while(++q<U.length){if(U[q][1].type===Q.content)break;if(U[q][1].type===Q.chunkText)U[q][1]._isInFirstContentOfListItem=!0,q++}}if(Y[0]==="enter"){if(Y[1].contentType)Object.assign(G,DR(D,X)),X=G[X],R=!0}else if(Y[1]._container){q=X,W=void 0;while(q--)if(V=D.get(q),V[1].type===Q.lineEnding||V[1].type===Q.lineEndingBlank){if(V[0]==="enter"){if(W)D.get(W)[1].type=Q.lineEndingBlank;V[1].type=Q.lineEnding,W=q}}else if(V[1].type===Q.linePrefix||V[1].type===Q.listItemIndent);else break;if(W)Y[1].end={...D.get(W)[1].start},J=D.slice(W,X),J.unshift(Y),D.splice(W,X-W+1,J)}}return Z1($,0,Number.POSITIVE_INFINITY,D.slice(0)),!R}function DR($,G){let X=$.get(G)[1],Y=$.get(G)[2],W=G-1,q=[];w(X.contentType,"expected `contentType` on subtokens");let V=X._tokenizer;if(!V){if(V=Y.parser[X.contentType](X.start),X._contentTypeTextTrailing)V._contentTypeTextTrailing=!0}let J=V.events,U=[],R={},D,M,F=-1,K=X,Z=0,z=0,C=[z];while(K){while($.get(++W)[1]!==K);if(w(!M||K.previous===M,"expected previous to match"),w(!M||M.next===K,"expected next to match"),q.push(W),!K._tokenizer){if(D=Y.sliceStream(K),!K.next)D.push(A.eof);if(M)V.defineSkip(K.start);if(K._isInFirstContentOfListItem)V._gfmTasklistFirstContentOfListItem=!0;if(V.write(D),K._isInFirstContentOfListItem)V._gfmTasklistFirstContentOfListItem=void 0}M=K,K=K.next}K=X;while(++F<J.length)if(J[F][0]==="exit"&&J[F-1][0]==="enter"&&J[F][1].type===J[F-1][1].type&&J[F][1].start.line!==J[F][1].end.line)w(K,"expected a current token"),z=F+1,C.push(z),K._tokenizer=void 0,K.previous=void 0,K=K.next;if(V.events=[],K)K._tokenizer=void 0,K.previous=void 0,w(!K.next,"expected no next token");else C.pop();F=C.length;while(F--){let L=J.slice(C[F],C[F+1]),v=q.pop();w(v!==void 0,"expected a start position when splicing"),U.push([v,v+L.length-1]),$.splice(v,2,L)}U.reverse(),F=-1;while(++F<U.length)R[Z+U[F][0]]=Z+U[F][1],Z+=U[F][1]-U[F][0]-1;return R}var n5={resolve:QR,tokenize:AR},MR={partial:!0,tokenize:KR};function QR($){return B6($),$}function AR($,G){let X;return Y;function Y(J){return w(J!==A.eof&&!S(J),"expected no eof or eol"),$.enter(Q.content),X=$.enter(Q.chunkContent,{contentType:T.contentTypeContent}),W(J)}function W(J){if(J===A.eof)return q(J);if(S(J))return $.check(MR,V,q)(J);return $.consume(J),W}function q(J){return $.exit(Q.chunkContent),$.exit(Q.content),G(J)}function V(J){return w(S(J),"expected eol"),$.consume(J),$.exit(Q.chunkContent),w(X,"expected previous token"),X.next=$.enter(Q.chunkContent,{contentType:T.contentTypeContent,previous:X}),X=X.next,W}}function KR($,G,X){let Y=this;return W;function W(V){return w(S(V),"expected a line ending"),$.exit(Q.chunkContent),$.enter(Q.lineEnding),$.consume(V),$.exit(Q.lineEnding),c($,q,Q.linePrefix)}function q(V){if(V===A.eof||S(V))return X(V);w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated");let J=Y.events[Y.events.length-1];if(!Y.parser.constructs.disable.null.includes("codeIndented")&&J&&J[1].type===Q.linePrefix&&J[2].sliceSerialize(J[1],!0).length>=T.tabSize)return G(V);return $.interrupt(Y.parser.constructs.flow,X,G)(V)}}function O6($,G,X,Y,W,q,V,J,U){let R=U||Number.POSITIVE_INFINITY,D=0;return M;function M(L){if(L===A.lessThan)return $.enter(Y),$.enter(W),$.enter(q),$.consume(L),$.exit(q),F;if(L===A.eof||L===A.space||L===A.rightParenthesis||N4(L))return X(L);return $.enter(Y),$.enter(V),$.enter(J),$.enter(Q.chunkString,{contentType:T.contentTypeString}),z(L)}function F(L){if(L===A.greaterThan)return $.enter(q),$.consume(L),$.exit(q),$.exit(W),$.exit(Y),G;return $.enter(J),$.enter(Q.chunkString,{contentType:T.contentTypeString}),K(L)}function K(L){if(L===A.greaterThan)return $.exit(Q.chunkString),$.exit(J),F(L);if(L===A.eof||L===A.lessThan||S(L))return X(L);return $.consume(L),L===A.backslash?Z:K}function Z(L){if(L===A.lessThan||L===A.greaterThan||L===A.backslash)return $.consume(L),K;return K(L)}function z(L){if(!D&&(L===A.eof||L===A.rightParenthesis||U1(L)))return $.exit(Q.chunkString),$.exit(J),$.exit(V),$.exit(Y),G(L);if(D<R&&L===A.leftParenthesis)return $.consume(L),D++,z;if(L===A.rightParenthesis)return $.consume(L),D--,z;if(L===A.eof||L===A.space||L===A.leftParenthesis||N4(L))return X(L);return $.consume(L),L===A.backslash?C:z}function C(L){if(L===A.leftParenthesis||L===A.rightParenthesis||L===A.backslash)return $.consume(L),z;return z(L)}}function P6($,G,X,Y,W,q){let V=this,J=0,U;return R;function R(K){return w(K===A.leftSquareBracket,"expected `[`"),$.enter(Y),$.enter(W),$.consume(K),$.exit(W),$.enter(q),D}function D(K){if(J>T.linkReferenceSizeMax||K===A.eof||K===A.leftSquareBracket||K===A.rightSquareBracket&&!U||K===A.caret&&!J&&"_hiddenFootnoteSupport"in V.parser.constructs)return X(K);if(K===A.rightSquareBracket)return $.exit(q),$.enter(W),$.consume(K),$.exit(W),$.exit(Y),G;if(S(K))return $.enter(Q.lineEnding),$.consume(K),$.exit(Q.lineEnding),D;return $.enter(Q.chunkString,{contentType:T.contentTypeString}),M(K)}function M(K){if(K===A.eof||K===A.leftSquareBracket||K===A.rightSquareBracket||S(K)||J++>T.linkReferenceSizeMax)return $.exit(Q.chunkString),D(K);if($.consume(K),!U)U=!l(K);return K===A.backslash?F:M}function F(K){if(K===A.leftSquareBracket||K===A.backslash||K===A.rightSquareBracket)return $.consume(K),J++,M;return M(K)}}function N6($,G,X,Y,W,q){let V;return J;function J(F){if(F===A.quotationMark||F===A.apostrophe||F===A.leftParenthesis)return $.enter(Y),$.enter(W),$.consume(F),$.exit(W),V=F===A.leftParenthesis?A.rightParenthesis:F,U;return X(F)}function U(F){if(F===V)return $.enter(W),$.consume(F),$.exit(W),$.exit(Y),G;return $.enter(q),R(F)}function R(F){if(F===V)return $.exit(q),U(V);if(F===A.eof)return X(F);if(S(F))return $.enter(Q.lineEnding),$.consume(F),$.exit(Q.lineEnding),c($,R,Q.linePrefix);return $.enter(Q.chunkString,{contentType:T.contentTypeString}),D(F)}function D(F){if(F===V||F===A.eof||S(F))return $.exit(Q.chunkString),R(F);return $.consume(F),F===A.backslash?M:D}function M(F){if(F===V||F===A.backslash)return $.consume(F),D;return D(F)}}function $2($,G){let X;return Y;function Y(W){if(S(W))return $.enter(Q.lineEnding),$.consume(W),$.exit(Q.lineEnding),X=!0,Y;if(l(W))return c($,Y,X?Q.linePrefix:Q.lineSuffix)(W);return G(W)}}var o5={name:"definition",tokenize:wR},FR={partial:!0,tokenize:BR};function wR($,G,X){let Y=this,W;return q;function q(K){return $.enter(Q.definition),V(K)}function V(K){return w(K===A.leftSquareBracket,"expected `[`"),P6.call(Y,$,J,X,Q.definitionLabel,Q.definitionLabelMarker,Q.definitionLabelString)(K)}function J(K){if(W=O0(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)),K===A.colon)return $.enter(Q.definitionMarker),$.consume(K),$.exit(Q.definitionMarker),U;return X(K)}function U(K){return U1(K)?$2($,R)(K):R(K)}function R(K){return O6($,D,X,Q.definitionDestination,Q.definitionDestinationLiteral,Q.definitionDestinationLiteralMarker,Q.definitionDestinationRaw,Q.definitionDestinationString)(K)}function D(K){return $.attempt(FR,M,M)(K)}function M(K){return l(K)?c($,F,Q.whitespace)(K):F(K)}function F(K){if(K===A.eof||S(K))return $.exit(Q.definition),Y.parser.defined.push(W),G(K);return X(K)}}function BR($,G,X){return Y;function Y(J){return U1(J)?$2($,W)(J):X(J)}function W(J){return N6($,q,X,Q.definitionTitle,Q.definitionTitleMarker,Q.definitionTitleString)(J)}function q(J){return l(J)?c($,V,Q.whitespace)(J):V(J)}function V(J){return J===A.eof||S(J)?G(J):X(J)}}var s5={name:"hardBreakEscape",tokenize:OR};function OR($,G,X){return Y;function Y(q){return w(q===A.backslash,"expected `\\`"),$.enter(Q.hardBreakEscape),$.consume(q),W}function W(q){if(S(q))return $.exit(Q.hardBreakEscape),G(q);return X(q)}}var a5={name:"headingAtx",resolve:PR,tokenize:NR};function PR($,G){let X=$.length-2,Y=3,W,q;if($[Y][1].type===Q.whitespace)Y+=2;if(X-2>Y&&$[X][1].type===Q.whitespace)X-=2;if($[X][1].type===Q.atxHeadingSequence&&(Y===X-1||X-4>Y&&$[X-2][1].type===Q.whitespace))X-=Y+1===X?2:4;if(X>Y)W={type:Q.atxHeadingText,start:$[Y][1].start,end:$[X][1].end},q={type:Q.chunkText,start:$[Y][1].start,end:$[X][1].end,contentType:T.contentTypeText},Z1($,Y,X-Y+1,[["enter",W,G],["enter",q,G],["exit",q,G],["exit",W,G]]);return $}function NR($,G,X){let Y=0;return W;function W(D){return $.enter(Q.atxHeading),q(D)}function q(D){return w(D===A.numberSign,"expected `#`"),$.enter(Q.atxHeadingSequence),V(D)}function V(D){if(D===A.numberSign&&Y++<T.atxHeadingOpeningFenceSizeMax)return $.consume(D),V;if(D===A.eof||U1(D))return $.exit(Q.atxHeadingSequence),J(D);return X(D)}function J(D){if(D===A.numberSign)return $.enter(Q.atxHeadingSequence),U(D);if(D===A.eof||S(D))return $.exit(Q.atxHeading),G(D);if(l(D))return c($,J,Q.whitespace)(D);return $.enter(Q.atxHeadingText),R(D)}function U(D){if(D===A.numberSign)return $.consume(D),U;return $.exit(Q.atxHeadingSequence),J(D)}function R(D){if(D===A.eof||D===A.numberSign||U1(D))return $.exit(Q.atxHeadingText),J(D);return $.consume(D),R}}var xG=["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"],t5=["pre","script","style","textarea"];var e5={concrete:!0,name:"htmlFlow",resolveTo:_R,tokenize:LR},ZR={partial:!0,tokenize:TR},zR={partial:!0,tokenize:CR};function _R($){let G=$.length;while(G--)if($[G][0]==="enter"&&$[G][1].type===Q.htmlFlow)break;if(G>1&&$[G-2][1].type===Q.linePrefix)$[G][1].start=$[G-2][1].start,$[G+1][1].start=$[G-2][1].start,$.splice(G-2,2);return $}function LR($,G,X){let Y=this,W,q,V,J,U;return R;function R(O){return D(O)}function D(O){return w(O===A.lessThan,"expected `<`"),$.enter(Q.htmlFlow),$.enter(Q.htmlFlowData),$.consume(O),M}function M(O){if(O===A.exclamationMark)return $.consume(O),F;if(O===A.slash)return $.consume(O),q=!0,z;if(O===A.questionMark)return $.consume(O),W=T.htmlInstruction,Y.interrupt?G:B;if(l1(O))return w(O!==null),$.consume(O),V=String.fromCharCode(O),C;return X(O)}function F(O){if(O===A.dash)return $.consume(O),W=T.htmlComment,K;if(O===A.leftSquareBracket)return $.consume(O),W=T.htmlCdata,J=0,Z;if(l1(O))return $.consume(O),W=T.htmlDeclaration,Y.interrupt?G:B;return X(O)}function K(O){if(O===A.dash)return $.consume(O),Y.interrupt?G:B;return X(O)}function Z(O){let m1=T.cdataOpeningString;if(O===m1.charCodeAt(J++)){if($.consume(O),J===m1.length)return Y.interrupt?G:X1;return Z}return X(O)}function z(O){if(l1(O))return w(O!==null),$.consume(O),V=String.fromCharCode(O),C;return X(O)}function C(O){if(O===A.eof||O===A.slash||O===A.greaterThan||U1(O)){let m1=O===A.slash,r0=V.toLowerCase();if(!m1&&!q&&t5.includes(r0))return W=T.htmlRaw,Y.interrupt?G(O):X1(O);if(xG.includes(V.toLowerCase())){if(W=T.htmlBasic,m1)return $.consume(O),L;return Y.interrupt?G(O):X1(O)}return W=T.htmlComplete,Y.interrupt&&!Y.parser.lazy[Y.now().line]?X(O):q?v(O):h(O)}if(O===A.dash||k1(O))return $.consume(O),V+=String.fromCharCode(O),C;return X(O)}function L(O){if(O===A.greaterThan)return $.consume(O),Y.interrupt?G:X1;return X(O)}function v(O){if(l(O))return $.consume(O),v;return W1(O)}function h(O){if(O===A.slash)return $.consume(O),W1;if(O===A.colon||O===A.underscore||l1(O))return $.consume(O),e;if(l(O))return $.consume(O),h;return W1(O)}function e(O){if(O===A.dash||O===A.dot||O===A.colon||O===A.underscore||k1(O))return $.consume(O),e;return Y1(O)}function Y1(O){if(O===A.equalsTo)return $.consume(O),_;if(l(O))return $.consume(O),Y1;return h(O)}function _(O){if(O===A.eof||O===A.lessThan||O===A.equalsTo||O===A.greaterThan||O===A.graveAccent)return X(O);if(O===A.quotationMark||O===A.apostrophe)return $.consume(O),U=O,G1;if(l(O))return $.consume(O),_;return q1(O)}function G1(O){if(O===U)return $.consume(O),U=null,t;if(O===A.eof||S(O))return X(O);return $.consume(O),G1}function q1(O){if(O===A.eof||O===A.quotationMark||O===A.apostrophe||O===A.slash||O===A.lessThan||O===A.equalsTo||O===A.greaterThan||O===A.graveAccent||U1(O))return Y1(O);return $.consume(O),q1}function t(O){if(O===A.slash||O===A.greaterThan||l(O))return h(O);return X(O)}function W1(O){if(O===A.greaterThan)return $.consume(O),c1;return X(O)}function c1(O){if(O===A.eof||S(O))return X1(O);if(l(O))return $.consume(O),c1;return X(O)}function X1(O){if(O===A.dash&&W===T.htmlComment)return $.consume(O),J1;if(O===A.lessThan&&W===T.htmlRaw)return $.consume(O),A1;if(O===A.greaterThan&&W===T.htmlDeclaration)return $.consume(O),i1;if(O===A.questionMark&&W===T.htmlInstruction)return $.consume(O),B;if(O===A.rightSquareBracket&&W===T.htmlCdata)return $.consume(O),W0;if(S(O)&&(W===T.htmlBasic||W===T.htmlComplete))return $.exit(Q.htmlFlowData),$.check(ZR,Q0,k)(O);if(O===A.eof||S(O))return $.exit(Q.htmlFlowData),k(O);return $.consume(O),X1}function k(O){return $.check(zR,r,Q0)(O)}function r(O){return w(S(O)),$.enter(Q.lineEnding),$.consume(O),$.exit(Q.lineEnding),n}function n(O){if(O===A.eof||S(O))return k(O);return $.enter(Q.htmlFlowData),X1(O)}function J1(O){if(O===A.dash)return $.consume(O),B;return X1(O)}function A1(O){if(O===A.slash)return $.consume(O),V="",d1;return X1(O)}function d1(O){if(O===A.greaterThan){let m1=V.toLowerCase();if(t5.includes(m1))return $.consume(O),i1;return X1(O)}if(l1(O)&&V.length<T.htmlRawSizeMax)return w(O!==null),$.consume(O),V+=String.fromCharCode(O),d1;return X1(O)}function W0(O){if(O===A.rightSquareBracket)return $.consume(O),B;return X1(O)}function B(O){if(O===A.greaterThan)return $.consume(O),i1;if(O===A.dash&&W===T.htmlComment)return $.consume(O),B;return X1(O)}function i1(O){if(O===A.eof||S(O))return $.exit(Q.htmlFlowData),Q0(O);return $.consume(O),i1}function Q0(O){return $.exit(Q.htmlFlow),G(O)}}function CR($,G,X){let Y=this;return W;function W(V){if(S(V))return $.enter(Q.lineEnding),$.consume(V),$.exit(Q.lineEnding),q;return X(V)}function q(V){return Y.parser.lazy[Y.now().line]?X(V):G(V)}}function TR($,G,X){return Y;function Y(W){return w(S(W),"expected a line ending"),$.enter(Q.lineEnding),$.consume(W),$.exit(Q.lineEnding),$.attempt(E0,G,X)}}var $8={name:"htmlText",tokenize:ER};function ER($,G,X){let Y=this,W,q,V;return J;function J(B){return w(B===A.lessThan,"expected `<`"),$.enter(Q.htmlText),$.enter(Q.htmlTextData),$.consume(B),U}function U(B){if(B===A.exclamationMark)return $.consume(B),R;if(B===A.slash)return $.consume(B),Y1;if(B===A.questionMark)return $.consume(B),h;if(l1(B))return $.consume(B),q1;return X(B)}function R(B){if(B===A.dash)return $.consume(B),D;if(B===A.leftSquareBracket)return $.consume(B),q=0,Z;if(l1(B))return $.consume(B),v;return X(B)}function D(B){if(B===A.dash)return $.consume(B),K;return X(B)}function M(B){if(B===A.eof)return X(B);if(B===A.dash)return $.consume(B),F;if(S(B))return V=M,A1(B);return $.consume(B),M}function F(B){if(B===A.dash)return $.consume(B),K;return M(B)}function K(B){return B===A.greaterThan?J1(B):B===A.dash?F(B):M(B)}function Z(B){let i1=T.cdataOpeningString;if(B===i1.charCodeAt(q++))return $.consume(B),q===i1.length?z:Z;return X(B)}function z(B){if(B===A.eof)return X(B);if(B===A.rightSquareBracket)return $.consume(B),C;if(S(B))return V=z,A1(B);return $.consume(B),z}function C(B){if(B===A.rightSquareBracket)return $.consume(B),L;return z(B)}function L(B){if(B===A.greaterThan)return J1(B);if(B===A.rightSquareBracket)return $.consume(B),L;return z(B)}function v(B){if(B===A.eof||B===A.greaterThan)return J1(B);if(S(B))return V=v,A1(B);return $.consume(B),v}function h(B){if(B===A.eof)return X(B);if(B===A.questionMark)return $.consume(B),e;if(S(B))return V=h,A1(B);return $.consume(B),h}function e(B){return B===A.greaterThan?J1(B):h(B)}function Y1(B){if(l1(B))return $.consume(B),_;return X(B)}function _(B){if(B===A.dash||k1(B))return $.consume(B),_;return G1(B)}function G1(B){if(S(B))return V=G1,A1(B);if(l(B))return $.consume(B),G1;return J1(B)}function q1(B){if(B===A.dash||k1(B))return $.consume(B),q1;if(B===A.slash||B===A.greaterThan||U1(B))return t(B);return X(B)}function t(B){if(B===A.slash)return $.consume(B),J1;if(B===A.colon||B===A.underscore||l1(B))return $.consume(B),W1;if(S(B))return V=t,A1(B);if(l(B))return $.consume(B),t;return J1(B)}function W1(B){if(B===A.dash||B===A.dot||B===A.colon||B===A.underscore||k1(B))return $.consume(B),W1;return c1(B)}function c1(B){if(B===A.equalsTo)return $.consume(B),X1;if(S(B))return V=c1,A1(B);if(l(B))return $.consume(B),c1;return t(B)}function X1(B){if(B===A.eof||B===A.lessThan||B===A.equalsTo||B===A.greaterThan||B===A.graveAccent)return X(B);if(B===A.quotationMark||B===A.apostrophe)return $.consume(B),W=B,k;if(S(B))return V=X1,A1(B);if(l(B))return $.consume(B),X1;return $.consume(B),r}function k(B){if(B===W)return $.consume(B),W=void 0,n;if(B===A.eof)return X(B);if(S(B))return V=k,A1(B);return $.consume(B),k}function r(B){if(B===A.eof||B===A.quotationMark||B===A.apostrophe||B===A.lessThan||B===A.equalsTo||B===A.graveAccent)return X(B);if(B===A.slash||B===A.greaterThan||U1(B))return t(B);return $.consume(B),r}function n(B){if(B===A.slash||B===A.greaterThan||U1(B))return t(B);return X(B)}function J1(B){if(B===A.greaterThan)return $.consume(B),$.exit(Q.htmlTextData),$.exit(Q.htmlText),G;return X(B)}function A1(B){return w(V,"expected return state"),w(S(B),"expected eol"),$.exit(Q.htmlTextData),$.enter(Q.lineEnding),$.consume(B),$.exit(Q.lineEnding),d1}function d1(B){return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(B)?c($,W0,Q.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(B):W0(B)}function W0(B){return $.enter(Q.htmlTextData),V(B)}}var G2={name:"labelEnd",resolveAll:xR,resolveTo:kR,tokenize:bR},jR={tokenize:vR},SR={tokenize:gR},IR={tokenize:hR};function xR($){let G=-1,X=[];while(++G<$.length){let Y=$[G][1];if(X.push($[G]),Y.type===Q.labelImage||Y.type===Q.labelLink||Y.type===Q.labelEnd){let W=Y.type===Q.labelImage?4:2;Y.type=Q.data,G+=W}}if($.length!==X.length)Z1($,0,$.length,X);return $}function kR($,G){let X=$.length,Y=0,W,q,V,J;while(X--)if(W=$[X][1],q){if(W.type===Q.link||W.type===Q.labelLink&&W._inactive)break;if($[X][0]==="enter"&&W.type===Q.labelLink)W._inactive=!0}else if(V){if($[X][0]==="enter"&&(W.type===Q.labelImage||W.type===Q.labelLink)&&!W._balanced){if(q=X,W.type!==Q.labelLink){Y=2;break}}}else if(W.type===Q.labelEnd)V=X;w(q!==void 0,"`open` is supposed to be found"),w(V!==void 0,"`close` is supposed to be found");let U={type:$[q][1].type===Q.labelLink?Q.link:Q.image,start:{...$[q][1].start},end:{...$[$.length-1][1].end}},R={type:Q.label,start:{...$[q][1].start},end:{...$[V][1].end}},D={type:Q.labelText,start:{...$[q+Y+2][1].end},end:{...$[V-2][1].start}};return J=[["enter",U,G],["enter",R,G]],J=x1(J,$.slice(q+1,q+Y+3)),J=x1(J,[["enter",D,G]]),w(G.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),J=x1(J,x2(G.parser.constructs.insideSpan.null,$.slice(q+Y+4,V-3),G)),J=x1(J,[["exit",D,G],$[V-2],$[V-1],["exit",R,G]]),J=x1(J,$.slice(V+1)),J=x1(J,[["exit",U,G]]),Z1($,q,$.length,J),$}function bR($,G,X){let Y=this,W=Y.events.length,q,V;while(W--)if((Y.events[W][1].type===Q.labelImage||Y.events[W][1].type===Q.labelLink)&&!Y.events[W][1]._balanced){q=Y.events[W][1];break}return J;function J(F){if(w(F===A.rightSquareBracket,"expected `]`"),!q)return X(F);if(q._inactive)return M(F);return V=Y.parser.defined.includes(O0(Y.sliceSerialize({start:q.end,end:Y.now()}))),$.enter(Q.labelEnd),$.enter(Q.labelMarker),$.consume(F),$.exit(Q.labelMarker),$.exit(Q.labelEnd),U}function U(F){if(F===A.leftParenthesis)return $.attempt(jR,D,V?D:M)(F);if(F===A.leftSquareBracket)return $.attempt(SR,D,V?R:M)(F);return V?D(F):M(F)}function R(F){return $.attempt(IR,D,M)(F)}function D(F){return G(F)}function M(F){return q._balanced=!0,X(F)}}function vR($,G,X){return Y;function Y(M){return w(M===A.leftParenthesis,"expected left paren"),$.enter(Q.resource),$.enter(Q.resourceMarker),$.consume(M),$.exit(Q.resourceMarker),W}function W(M){return U1(M)?$2($,q)(M):q(M)}function q(M){if(M===A.rightParenthesis)return D(M);return O6($,V,J,Q.resourceDestination,Q.resourceDestinationLiteral,Q.resourceDestinationLiteralMarker,Q.resourceDestinationRaw,Q.resourceDestinationString,T.linkResourceDestinationBalanceMax)(M)}function V(M){return U1(M)?$2($,U)(M):D(M)}function J(M){return X(M)}function U(M){if(M===A.quotationMark||M===A.apostrophe||M===A.leftParenthesis)return N6($,R,X,Q.resourceTitle,Q.resourceTitleMarker,Q.resourceTitleString)(M);return D(M)}function R(M){return U1(M)?$2($,D)(M):D(M)}function D(M){if(M===A.rightParenthesis)return $.enter(Q.resourceMarker),$.consume(M),$.exit(Q.resourceMarker),$.exit(Q.resource),G;return X(M)}}function gR($,G,X){let Y=this;return W;function W(J){return w(J===A.leftSquareBracket,"expected left bracket"),P6.call(Y,$,q,V,Q.reference,Q.referenceMarker,Q.referenceString)(J)}function q(J){return Y.parser.defined.includes(O0(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)))?G(J):X(J)}function V(J){return X(J)}}function hR($,G,X){return Y;function Y(q){return w(q===A.leftSquareBracket,"expected left bracket"),$.enter(Q.reference),$.enter(Q.referenceMarker),$.consume(q),$.exit(Q.referenceMarker),W}function W(q){if(q===A.rightSquareBracket)return $.enter(Q.referenceMarker),$.consume(q),$.exit(Q.referenceMarker),$.exit(Q.reference),G;return X(q)}}var G8={name:"labelStartImage",resolveAll:G2.resolveAll,tokenize:yR};function yR($,G,X){let Y=this;return W;function W(J){return w(J===A.exclamationMark,"expected `!`"),$.enter(Q.labelImage),$.enter(Q.labelImageMarker),$.consume(J),$.exit(Q.labelImageMarker),q}function q(J){if(J===A.leftSquareBracket)return $.enter(Q.labelMarker),$.consume(J),$.exit(Q.labelMarker),$.exit(Q.labelImage),V;return X(J)}function V(J){return J===A.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?X(J):G(J)}}var X8={name:"labelStartLink",resolveAll:G2.resolveAll,tokenize:fR};function fR($,G,X){let Y=this;return W;function W(V){return w(V===A.leftSquareBracket,"expected `[`"),$.enter(Q.labelLink),$.enter(Q.labelMarker),$.consume(V),$.exit(Q.labelMarker),$.exit(Q.labelLink),q}function q(V){return V===A.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?X(V):G(V)}}var C4={name:"lineEnding",tokenize:mR};function mR($,G){return X;function X(Y){return w(S(Y),"expected eol"),$.enter(Q.lineEnding),$.consume(Y),$.exit(Q.lineEnding),c($,G,Q.linePrefix)}}var X2={name:"thematicBreak",tokenize:uR};function uR($,G,X){let Y=0,W;return q;function q(R){return $.enter(Q.thematicBreak),V(R)}function V(R){return w(R===A.asterisk||R===A.dash||R===A.underscore,"expected `*`, `-`, or `_`"),W=R,J(R)}function J(R){if(R===W)return $.enter(Q.thematicBreakSequence),U(R);if(Y>=T.thematicBreakMarkerCountMin&&(R===A.eof||S(R)))return $.exit(Q.thematicBreak),G(R);return X(R)}function U(R){if(R===W)return $.consume(R),Y++,U;return $.exit(Q.thematicBreakSequence),l(R)?c($,J,Q.whitespace)(R):J(R)}}var C1={continuation:{tokenize:cR},exit:iR,name:"list",tokenize:rR},pR={partial:!0,tokenize:nR},lR={partial:!0,tokenize:dR};function rR($,G,X){let Y=this,W=Y.events[Y.events.length-1],q=W&&W[1].type===Q.linePrefix?W[2].sliceSerialize(W[1],!0).length:0,V=0;return J;function J(K){w(Y.containerState,"expected state");let Z=Y.containerState.type||(K===A.asterisk||K===A.plusSign||K===A.dash?Q.listUnordered:Q.listOrdered);if(Z===Q.listUnordered?!Y.containerState.marker||K===Y.containerState.marker:Z4(K)){if(!Y.containerState.type)Y.containerState.type=Z,$.enter(Z,{_container:!0});if(Z===Q.listUnordered)return $.enter(Q.listItemPrefix),K===A.asterisk||K===A.dash?$.check(X2,X,R)(K):R(K);if(!Y.interrupt||K===A.digit1)return $.enter(Q.listItemPrefix),$.enter(Q.listItemValue),U(K)}return X(K)}function U(K){if(w(Y.containerState,"expected state"),Z4(K)&&++V<T.listItemValueSizeMax)return $.consume(K),U;if((!Y.interrupt||V<2)&&(Y.containerState.marker?K===Y.containerState.marker:K===A.rightParenthesis||K===A.dot))return $.exit(Q.listItemValue),R(K);return X(K)}function R(K){return w(Y.containerState,"expected state"),w(K!==A.eof,"eof (`null`) is not a marker"),$.enter(Q.listItemMarker),$.consume(K),$.exit(Q.listItemMarker),Y.containerState.marker=Y.containerState.marker||K,$.check(E0,Y.interrupt?X:D,$.attempt(pR,F,M))}function D(K){return w(Y.containerState,"expected state"),Y.containerState.initialBlankLine=!0,q++,F(K)}function M(K){if(l(K))return $.enter(Q.listItemPrefixWhitespace),$.consume(K),$.exit(Q.listItemPrefixWhitespace),F;return X(K)}function F(K){return w(Y.containerState,"expected state"),Y.containerState.size=q+Y.sliceSerialize($.exit(Q.listItemPrefix),!0).length,G(K)}}function cR($,G,X){let Y=this;return w(Y.containerState,"expected state"),Y.containerState._closeFlow=void 0,$.check(E0,W,q);function W(J){return w(Y.containerState,"expected state"),w(typeof Y.containerState.size==="number","expected size"),Y.containerState.furtherBlankLines=Y.containerState.furtherBlankLines||Y.containerState.initialBlankLine,c($,G,Q.listItemIndent,Y.containerState.size+1)(J)}function q(J){if(w(Y.containerState,"expected state"),Y.containerState.furtherBlankLines||!l(J))return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,V(J);return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,$.attempt(lR,G,V)(J)}function V(J){return w(Y.containerState,"expected state"),Y.containerState._closeFlow=!0,Y.interrupt=void 0,w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,$.attempt(C1,G,X),Q.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(J)}}function dR($,G,X){let Y=this;return w(Y.containerState,"expected state"),w(typeof Y.containerState.size==="number","expected size"),c($,W,Q.listItemIndent,Y.containerState.size+1);function W(q){w(Y.containerState,"expected state");let V=Y.events[Y.events.length-1];return V&&V[1].type===Q.listItemIndent&&V[2].sliceSerialize(V[1],!0).length===Y.containerState.size?G(q):X(q)}}function iR($){w(this.containerState,"expected state"),w(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function nR($,G,X){let Y=this;return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,W,Q.listItemPrefixWhitespace,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize+1);function W(q){let V=Y.events[Y.events.length-1];return!l(q)&&V&&V[1].type===Q.listItemPrefixWhitespace?G(q):X(q)}}var Z6={name:"setextUnderline",resolveTo:oR,tokenize:sR};function oR($,G){let X=$.length,Y,W,q;while(X--)if($[X][0]==="enter"){if($[X][1].type===Q.content){Y=X;break}if($[X][1].type===Q.paragraph)W=X}else{if($[X][1].type===Q.content)$.splice(X,1);if(!q&&$[X][1].type===Q.definition)q=X}w(W!==void 0,"expected a `text` index to be found"),w(Y!==void 0,"expected a `text` index to be found"),w($[Y][2]===G,"enter context should be same"),w($[$.length-1][2]===G,"enter context should be same");let V={type:Q.setextHeading,start:{...$[Y][1].start},end:{...$[$.length-1][1].end}};if($[W][1].type=Q.setextHeadingText,q)$.splice(W,0,["enter",V,G]),$.splice(q+1,0,["exit",$[Y][1],G]),$[Y][1].end={...$[q][1].end};else $[Y][1]=V;return $.push(["exit",V,G]),$}function sR($,G,X){let Y=this,W;return q;function q(R){let D=Y.events.length,M;w(R===A.dash||R===A.equalsTo,"expected `=` or `-`");while(D--)if(Y.events[D][1].type!==Q.lineEnding&&Y.events[D][1].type!==Q.linePrefix&&Y.events[D][1].type!==Q.content){M=Y.events[D][1].type===Q.paragraph;break}if(!Y.parser.lazy[Y.now().line]&&(Y.interrupt||M))return $.enter(Q.setextHeadingLine),W=R,V(R);return X(R)}function V(R){return $.enter(Q.setextHeadingLineSequence),J(R)}function J(R){if(R===W)return $.consume(R),J;return $.exit(Q.setextHeadingLineSequence),l(R)?c($,U,Q.lineSuffix)(R):U(R)}function U(R){if(R===A.eof||S(R))return $.exit(Q.setextHeadingLine),G(R);return X(R)}}var kG={tokenize:aR};function aR($){let G=this,X=$.attempt(E0,Y,$.attempt(this.parser.constructs.flowInitial,W,c($,$.attempt(this.parser.constructs.flow,W,$.attempt(n5,W)),Q.linePrefix)));return X;function Y(q){if(w(q===A.eof||S(q),"expected eol or eof"),q===A.eof){$.consume(q);return}return $.enter(Q.lineEndingBlank),$.consume(q),$.exit(Q.lineEndingBlank),G.currentConstruct=void 0,X}function W(q){if(w(q===A.eof||S(q),"expected eol or eof"),q===A.eof){$.consume(q);return}return $.enter(Q.lineEnding),$.consume(q),$.exit(Q.lineEnding),G.currentConstruct=void 0,X}}var bG={resolveAll:yG()},vG=hG("string"),gG=hG("text");function hG($){return{resolveAll:yG($==="text"?tR:void 0),tokenize:G};function G(X){let Y=this,W=this.parser.constructs[$],q=X.attempt(W,V,J);return V;function V(D){return R(D)?q(D):J(D)}function J(D){if(D===A.eof){X.consume(D);return}return X.enter(Q.data),X.consume(D),U}function U(D){if(R(D))return X.exit(Q.data),q(D);return X.consume(D),U}function R(D){if(D===A.eof)return!0;let M=W[D],F=-1;if(M){w(Array.isArray(M),"expected `disable.null` to be populated");while(++F<M.length){let K=M[F];if(!K.previous||K.previous.call(Y,Y.previous))return!0}}return!1}}}function yG($){return G;function G(X,Y){let W=-1,q;while(++W<=X.length)if(q===void 0){if(X[W]&&X[W][1].type===Q.data)q=W,W++}else if(!X[W]||X[W][1].type!==Q.data){if(W!==q+2)X[q][1].end=X[W-1][1].end,X.splice(q+2,W-q-2),W=q+2;q=void 0}return $?$(X,Y):X}}function tR($,G){let X=0;while(++X<=$.length)if((X===$.length||$[X][1].type===Q.lineEnding)&&$[X-1][1].type===Q.data){let Y=$[X-1][1],W=G.sliceStream(Y),q=W.length,V=-1,J=0,U;while(q--){let R=W[q];if(typeof R==="string"){V=R.length;while(R.charCodeAt(V-1)===A.space)J++,V--;if(V)break;V=-1}else if(R===A.horizontalTab)U=!0,J++;else if(R===A.virtualSpace);else{q++;break}}if(G._contentTypeTextTrailing&&X===$.length)J=0;if(J){let R={type:X===$.length||U||J<T.hardBreakPrefixSizeMin?Q.lineSuffix:Q.hardBreakTrailing,start:{_bufferIndex:q?V:Y.start._bufferIndex+V,_index:Y.start._index+q,line:Y.end.line,column:Y.end.column-J,offset:Y.end.offset-J},end:{...Y.end}};if(Y.end={...R.start},Y.start.offset===Y.end.offset)Object.assign(Y,R);else $.splice(X,0,["enter",R,G],["exit",R,G]),X+=2}X++}return $}var Y8={};t9(Y8,{text:()=>WD,string:()=>YD,insideSpan:()=>qD,flowInitial:()=>GD,flow:()=>XD,document:()=>eR,disable:()=>JD,contentInitial:()=>$D,attentionMarkers:()=>VD});var eR={[A.asterisk]:C1,[A.plusSign]:C1,[A.dash]:C1,[A.digit0]:C1,[A.digit1]:C1,[A.digit2]:C1,[A.digit3]:C1,[A.digit4]:C1,[A.digit5]:C1,[A.digit6]:C1,[A.digit7]:C1,[A.digit8]:C1,[A.digit9]:C1,[A.greaterThan]:A6},$D={[A.leftSquareBracket]:o5},GD={[A.horizontalTab]:_4,[A.virtualSpace]:_4,[A.space]:_4},XD={[A.numberSign]:a5,[A.asterisk]:X2,[A.dash]:[Z6,X2],[A.lessThan]:e5,[A.equalsTo]:Z6,[A.underscore]:X2,[A.graveAccent]:w6,[A.tilde]:w6},YD={[A.ampersand]:F6,[A.backslash]:K6},WD={[A.carriageReturn]:C4,[A.lineFeed]:C4,[A.carriageReturnLineFeed]:C4,[A.exclamationMark]:G8,[A.ampersand]:F6,[A.asterisk]:z4,[A.lessThan]:[c5,$8],[A.leftSquareBracket]:X8,[A.backslash]:[s5,K6],[A.rightSquareBracket]:G2,[A.underscore]:z4,[A.graveAccent]:d5},qD={null:[z4,bG]},VD={null:[A.asterisk,A.underscore]},JD={null:[]};var $3=$6(eG(),1);var q2=$3.default("micromark");function G3($,G,X){let Y={_bufferIndex:-1,_index:0,line:X&&X.line||1,column:X&&X.column||1,offset:X&&X.offset||0},W={},q=[],V=[],J=[],U=!0,R={attempt:t(G1),check:t(q1),consume:e,enter:Y1,exit:_,interrupt:t(q1,{interrupt:!0})},D={code:A.eof,containerState:{},defineSkip:L,events:[],now:C,parser:$,previous:A.eof,sliceSerialize:Z,sliceStream:z,write:K},M=G.tokenize.call(D,R),F;if(G.resolveAll)q.push(G);return D;function K(k){if(V=x1(V,k),v(),V[V.length-1]!==A.eof)return[];return W1(G,0),D.events=x2(q,D.events,D),D.events}function Z(k,r){return cD(z(k),r)}function z(k){return rD(V,k)}function C(){let{_bufferIndex:k,_index:r,line:n,column:J1,offset:A1}=Y;return{_bufferIndex:k,_index:r,line:n,column:J1,offset:A1}}function L(k){W[k.line]=k.column,X1(),q2("position: define skip: `%j`",Y)}function v(){let k;while(Y._index<V.length){let r=V[Y._index];if(typeof r==="string"){if(k=Y._index,Y._bufferIndex<0)Y._bufferIndex=0;while(Y._index===k&&Y._bufferIndex<r.length)h(r.charCodeAt(Y._bufferIndex))}else h(r)}}function h(k){w(U===!0,"expected character to be consumed"),U=void 0,q2("main: passing `%s` to %s",k,M&&M.name),F=k,w(typeof M==="function","expected state"),M=M(k)}function e(k){if(w(k===F,"expected given code to equal expected code"),q2("consume: `%s`",k),w(U===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),w(k===null?D.events.length===0||D.events[D.events.length-1][0]==="exit":D.events[D.events.length-1][0]==="enter","expected last token to be open"),S(k))Y.line++,Y.column=1,Y.offset+=k===A.carriageReturnLineFeed?2:1,X1(),q2("position: after eol: `%j`",Y);else if(k!==A.virtualSpace)Y.column++,Y.offset++;if(Y._bufferIndex<0)Y._index++;else if(Y._bufferIndex++,Y._bufferIndex===V[Y._index].length)Y._bufferIndex=-1,Y._index++;D.previous=k,U=!0}function Y1(k,r){let n=r||{};return n.type=k,n.start=C(),w(typeof k==="string","expected string type"),w(k.length>0,"expected non-empty string"),q2("enter: `%s`",k),D.events.push(["enter",n,D]),J.push(n),n}function _(k){w(typeof k==="string","expected string type"),w(k.length>0,"expected non-empty string");let r=J.pop();return w(r,"cannot close w/o open tokens"),r.end=C(),w(k===r.type,"expected exit token to match current token"),w(!(r.start._index===r.end._index&&r.start._bufferIndex===r.end._bufferIndex),"expected non-empty token (`"+k+"`)"),q2("exit: `%s`",r.type),D.events.push(["exit",r,D]),r}function G1(k,r){W1(k,r.from)}function q1(k,r){r.restore()}function t(k,r){return n;function n(J1,A1,d1){let W0,B,i1,Q0;return Array.isArray(J1)?m1(J1):("tokenize"in J1)?m1([J1]):O(J1);function O(K1){return R4;function R4(A0){let c0=A0!==null&&K1[A0],O2=A0!==null&&K1.null,P5=[...Array.isArray(c0)?c0:c0?[c0]:[],...Array.isArray(O2)?O2:O2?[O2]:[]];return m1(P5)(A0)}}function m1(K1){if(W0=K1,B=0,K1.length===0)return w(d1,"expected `bogusState` to be given"),d1;return r0(K1[B])}function r0(K1){return R4;function R4(A0){if(Q0=c1(),i1=K1,!K1.partial)D.currentConstruct=K1;if(w(D.parser.constructs.disable.null,"expected `disable.null` to be populated"),K1.name&&D.parser.constructs.disable.null.includes(K1.name))return e4(A0);return K1.tokenize.call(r?Object.assign(Object.create(D),r):D,R,O5,e4)(A0)}}function O5(K1){return w(K1===F,"expected code"),U=!0,k(i1,Q0),A1}function e4(K1){if(w(K1===F,"expected code"),U=!0,Q0.restore(),++B<W0.length)return r0(W0[B]);return d1}}}function W1(k,r){if(k.resolveAll&&!q.includes(k))q.push(k);if(k.resolve)Z1(D.events,r,D.events.length-r,k.resolve(D.events.slice(r),D));if(k.resolveTo)D.events=k.resolveTo(D.events,D);w(k.partial||D.events.length===0||D.events[D.events.length-1][0]==="exit","expected last token to end")}function c1(){let k=C(),r=D.previous,n=D.currentConstruct,J1=D.events.length,A1=Array.from(J);return{from:J1,restore:d1};function d1(){Y=k,D.previous=r,D.currentConstruct=n,D.events.length=J1,J=A1,X1(),q2("position: restore: `%j`",Y)}}function X1(){if(Y.line in W&&Y.column<2)Y.column=W[Y.line],Y.offset+=W[Y.line]-1}}function rD($,G){let X=G.start._index,Y=G.start._bufferIndex,W=G.end._index,q=G.end._bufferIndex,V;if(X===W)w(q>-1,"expected non-negative end buffer index"),w(Y>-1,"expected non-negative start buffer index"),V=[$[X].slice(Y,q)];else{if(V=$.slice(X,W),Y>-1){let J=V[0];if(typeof J==="string")V[0]=J.slice(Y);else w(Y===0,"expected `startBufferIndex` to be `0`"),V.shift()}if(q>0)V.push($[W].slice(0,q))}return V}function cD($,G){let X=-1,Y=[],W;while(++X<$.length){let q=$[X],V;if(typeof q==="string")V=q;else switch(q){case A.carriageReturn:{V=p1.cr;break}case A.lineFeed:{V=p1.lf;break}case A.carriageReturnLineFeed:{V=p1.cr+p1.lf;break}case A.horizontalTab:{V=G?p1.space:p1.ht;break}case A.virtualSpace:{if(!G&&W)continue;V=p1.space;break}default:w(typeof q==="number","expected number"),V=String.fromCharCode(q)}W=q===A.horizontalTab,Y.push(V)}return Y.join("")}function H8($){let Y={constructs:PG([Y8,...($||{}).extensions||[]]),content:W(CG),defined:[],document:W(EG),flow:W(kG),lazy:{},string:W(vG),text:W(gG)};return Y;function W(q){return V;function V(J){return G3(Y,q,J)}}}function U8($){while(!B6($));return $}var X3=/[\0\t\n\r]/g;function R8(){let $=1,G="",X=!0,Y;return W;function W(q,V,J){let U=[],R,D,M,F,K;if(q=G+(typeof q==="string"?q.toString():new TextDecoder(V||void 0).decode(q)),M=0,G="",X){if(q.charCodeAt(0)===A.byteOrderMarker)M++;X=void 0}while(M<q.length){if(X3.lastIndex=M,R=X3.exec(q),F=R&&R.index!==void 0?R.index:q.length,K=q.charCodeAt(F),!R){G=q.slice(M);break}if(K===A.lf&&M===F&&Y)U.push(A.carriageReturnLineFeed),Y=void 0;else{if(Y)U.push(A.carriageReturn),Y=void 0;if(M<F)U.push(q.slice(M,F)),$+=F-M;switch(K){case A.nul:{U.push(A.replacementCharacter),$++;break}case A.ht:{D=Math.ceil($/T.tabSize)*T.tabSize,U.push(A.horizontalTab);while($++<D)U.push(A.virtualSpace);break}case A.lf:{U.push(A.lineFeed),$=1;break}default:Y=!0,$=1}}M=F+1}if(J){if(Y)U.push(A.carriageReturn);if(G)U.push(G);U.push(A.eof)}return U}}var dD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T6($){return $.replace(dD,iD)}function iD($,G,X){if(G)return G;if(X.charCodeAt(0)===A.numberSign){let W=X.charCodeAt(1),q=W===A.lowercaseX||W===A.uppercaseX;return Q6(X.slice(q?2:1),q?T.numericBaseHexadecimal:T.numericBaseDecimal)}return S2(X)||$}function S0($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return Y3($.position);if("start"in $||"end"in $)return Y3($);if("line"in $||"column"in $)return D8($);return""}function D8($){return W3($&&$.line)+":"+W3($&&$.column)}function Y3($){return D8($&&$.start)+"-"+D8($&&$.end)}function W3($){return $&&typeof $==="number"?$:1}var V3={}.hasOwnProperty;function M8($,G,X){if(G&&typeof G==="object")X=G,G=void 0;return nD(X)(U8(H8(X).document().write(R8()($,G,!0))))}function nD($){let G={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:q(s9),autolinkProtocol:t,autolinkEmail:t,atxHeading:q(i9),blockQuote:q(A0),characterEscape:t,characterReference:t,codeFenced:q(c0),codeFencedFenceInfo:V,codeFencedFenceMeta:V,codeIndented:q(c0,V),codeText:q(O2,V),codeTextData:t,data:t,codeFlowValue:t,definition:q(P5),definitionDestinationString:V,definitionLabelString:V,definitionTitleString:V,emphasis:q(Pq),hardBreakEscape:q(n9),hardBreakTrailing:q(n9),htmlFlow:q(o9,V),htmlFlowData:t,htmlText:q(o9,V),htmlTextData:t,image:q(Nq),label:V,link:q(s9),listItem:q(Zq),listItemValue:F,listOrdered:q(a9,M),listUnordered:q(a9),paragraph:q(zq),reference:O,referenceString:V,resourceDestinationString:V,resourceTitleString:V,setextHeading:q(i9),strong:q(_q),thematicBreak:q(Cq)},exit:{atxHeading:U(),atxHeadingSequence:Y1,autolink:U(),autolinkEmail:R4,autolinkProtocol:K1,blockQuote:U(),characterEscapeValue:W1,characterReferenceMarkerHexadecimal:r0,characterReferenceMarkerNumeric:r0,characterReferenceValue:O5,characterReference:e4,codeFenced:U(C),codeFencedFence:z,codeFencedFenceInfo:K,codeFencedFenceMeta:Z,codeFlowValue:W1,codeIndented:U(L),codeText:U(n),codeTextData:W1,data:W1,definition:U(),definitionDestinationString:e,definitionLabelString:v,definitionTitleString:h,emphasis:U(),hardBreakEscape:U(X1),hardBreakTrailing:U(X1),htmlFlow:U(k),htmlFlowData:W1,htmlText:U(r),htmlTextData:W1,image:U(A1),label:W0,labelText:d1,lineEnding:c1,link:U(J1),listItem:U(),listOrdered:U(),listUnordered:U(),paragraph:U(),referenceString:m1,resourceDestinationString:B,resourceTitleString:i1,resource:Q0,setextHeading:U(q1),setextHeadingLineSequence:G1,setextHeadingText:_,strong:U(),thematicBreak:U()}};J3(G,($||{}).mdastExtensions||[]);let X={};return Y;function Y(P){let N={type:"root",children:[]},b={stack:[N],tokenStack:[],config:G,enter:J,exit:R,buffer:V,resume:D,data:X},s=[],$1=-1;while(++$1<P.length)if(P[$1][1].type===Q.listOrdered||P[$1][1].type===Q.listUnordered)if(P[$1][0]==="enter")s.push($1);else{let g1=s.pop();w(typeof g1==="number","expected list to be open"),$1=W(P,g1,$1)}$1=-1;while(++$1<P.length){let g1=G[P[$1][0]];if(V3.call(g1,P[$1][1].type))g1[P[$1][1].type].call(Object.assign({sliceSerialize:P[$1][2].sliceSerialize},b),P[$1][1])}if(b.tokenStack.length>0){let g1=b.tokenStack[b.tokenStack.length-1];(g1[1]||q3).call(b,void 0,g1[0])}N.position={start:I0(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:I0(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},$1=-1;while(++$1<G.transforms.length)N=G.transforms[$1](N)||N;return N}function W(P,N,b){let s=N-1,$1=-1,g1=!1,d0,K0,D4,M4;while(++s<=b){let u1=P[s];switch(u1[1].type){case Q.listUnordered:case Q.listOrdered:case Q.blockQuote:{if(u1[0]==="enter")$1++;else $1--;M4=void 0;break}case Q.lineEndingBlank:{if(u1[0]==="enter"){if(d0&&!M4&&!$1&&!D4)D4=s;M4=void 0}break}case Q.linePrefix:case Q.listItemValue:case Q.listItemMarker:case Q.listItemPrefix:case Q.listItemPrefixWhitespace:break;default:M4=void 0}if(!$1&&u1[0]==="enter"&&u1[1].type===Q.listItemPrefix||$1===-1&&u1[0]==="exit"&&(u1[1].type===Q.listUnordered||u1[1].type===Q.listOrdered)){if(d0){let P2=s;K0=void 0;while(P2--){let F0=P[P2];if(F0[1].type===Q.lineEnding||F0[1].type===Q.lineEndingBlank){if(F0[0]==="exit")continue;if(K0)P[K0][1].type=Q.lineEndingBlank,g1=!0;F0[1].type=Q.lineEnding,K0=P2}else if(F0[1].type===Q.linePrefix||F0[1].type===Q.blockQuotePrefix||F0[1].type===Q.blockQuotePrefixWhitespace||F0[1].type===Q.blockQuoteMarker||F0[1].type===Q.listItemIndent);else break}if(D4&&(!K0||D4<K0))d0._spread=!0;d0.end=Object.assign({},K0?P[K0][1].start:u1[1].end),P.splice(K0||s,0,["exit",d0,u1[2]]),s++,b++}if(u1[1].type===Q.listItemPrefix){let P2={type:"listItem",_spread:!1,start:Object.assign({},u1[1].start),end:void 0};d0=P2,P.splice(s,0,["enter",P2,u1[2]]),s++,b++,D4=void 0,M4=!0}}}return P[N][1]._spread=g1,b}function q(P,N){return b;function b(s){if(J.call(this,P(s),s),N)N.call(this,s)}}function V(){this.stack.push({type:"fragment",children:[]})}function J(P,N,b){let s=this.stack[this.stack.length-1];w(s,"expected `parent`"),w("children"in s,"expected `parent`"),s.children.push(P),this.stack.push(P),this.tokenStack.push([N,b||void 0]),P.position={start:I0(N.start),end:void 0}}function U(P){return N;function N(b){if(P)P.call(this,b);R.call(this,b)}}function R(P,N){let b=this.stack.pop();w(b,"expected `node`");let s=this.tokenStack.pop();if(!s)throw Error("Cannot close `"+P.type+"` ("+S0({start:P.start,end:P.end})+"): it\u2019s not open");else if(s[0].type!==P.type)if(N)N.call(this,P,s[0]);else(s[1]||q3).call(this,P,s[0]);w(b.type!=="fragment","unexpected fragment `exit`ed"),w(b.position,"expected `position` to be defined"),b.position.end=I0(P.end)}function D(){return e0(this.stack.pop())}function M(){this.data.expectingFirstListItemValue=!0}function F(P){if(this.data.expectingFirstListItemValue){let N=this.stack[this.stack.length-2];w(N,"expected nodes on stack"),w(N.type==="list","expected list on stack"),N.start=Number.parseInt(this.sliceSerialize(P),T.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function K(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.lang=P}function Z(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.meta=P}function z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function C(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.value=P.replace(/(\r?\n|\r)$/g,"")}function v(P){let N=this.resume(),b=this.stack[this.stack.length-1];w(b,"expected node on stack"),w(b.type==="definition","expected definition on stack"),b.label=N,b.identifier=O0(this.sliceSerialize(P)).toLowerCase()}function h(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="definition","expected definition on stack"),N.title=P}function e(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="definition","expected definition on stack"),N.url=P}function Y1(P){let N=this.stack[this.stack.length-1];if(w(N,"expected node on stack"),w(N.type==="heading","expected heading on stack"),!N.depth){let b=this.sliceSerialize(P).length;w(b===1||b===2||b===3||b===4||b===5||b===6,"expected `depth` between `1` and `6`"),N.depth=b}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function G1(P){let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="heading","expected heading on stack"),N.depth=this.sliceSerialize(P).codePointAt(0)===A.equalsTo?1:2}function q1(){this.data.setextHeadingSlurpLineEnding=void 0}function t(P){let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w("children"in N,"expected parent on stack");let b=N.children,s=b[b.length-1];if(!s||s.type!=="text")s=Lq(),s.position={start:I0(P.start),end:void 0},b.push(s);this.stack.push(s)}function W1(P){let N=this.stack.pop();w(N,"expected a `node` to be on the stack"),w("value"in N,"expected a `literal` to be on the stack"),w(N.position,"expected `node` to have an open position"),N.value+=this.sliceSerialize(P),N.position.end=I0(P.end)}function c1(P){let N=this.stack[this.stack.length-1];if(w(N,"expected `node`"),this.data.atHardBreak){w("children"in N,"expected `parent`");let b=N.children[N.children.length-1];w(b.position,"expected tail to have a starting position"),b.position.end=I0(P.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&G.canContainEols.includes(N.type))t.call(this,P),W1.call(this,P)}function X1(){this.data.atHardBreak=!0}function k(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="html","expected html on stack"),N.value=P}function r(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="html","expected html on stack"),N.value=P}function n(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="inlineCode","expected inline code on stack"),N.value=P}function J1(){let P=this.stack[this.stack.length-1];if(w(P,"expected node on stack"),w(P.type==="link","expected link on stack"),this.data.inReference){let N=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=N,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function A1(){let P=this.stack[this.stack.length-1];if(w(P,"expected node on stack"),w(P.type==="image","expected image on stack"),this.data.inReference){let N=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=N,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function d1(P){let N=this.sliceSerialize(P),b=this.stack[this.stack.length-2];w(b,"expected ancestor on stack"),w(b.type==="image"||b.type==="link","expected image or link on stack"),b.label=T6(N),b.identifier=O0(N).toLowerCase()}function W0(){let P=this.stack[this.stack.length-1];w(P,"expected node on stack"),w(P.type==="fragment","expected fragment on stack");let N=this.resume(),b=this.stack[this.stack.length-1];if(w(b,"expected node on stack"),w(b.type==="image"||b.type==="link","expected image or link on stack"),this.data.inReference=!0,b.type==="link"){let s=P.children;b.children=s}else b.alt=N}function B(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="image"||N.type==="link","expected image or link on stack"),N.url=P}function i1(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="image"||N.type==="link","expected image or link on stack"),N.title=P}function Q0(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function m1(P){let N=this.resume(),b=this.stack[this.stack.length-1];w(b,"expected node on stack"),w(b.type==="image"||b.type==="link","expected image reference or link reference on stack"),b.label=N,b.identifier=O0(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function r0(P){w(P.type==="characterReferenceMarkerNumeric"||P.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=P.type}function O5(P){let N=this.sliceSerialize(P),b=this.data.characterReferenceType,s;if(b)s=Q6(N,b===Q.characterReferenceMarkerNumeric?T.numericBaseDecimal:T.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let g1=S2(N);w(g1!==!1,"expected reference to decode"),s=g1}let $1=this.stack[this.stack.length-1];w($1,"expected `node`"),w("value"in $1,"expected `node.value`"),$1.value+=s}function e4(P){let N=this.stack.pop();w(N,"expected `node`"),w(N.position,"expected `node.position`"),N.position.end=I0(P.end)}function K1(P){W1.call(this,P);let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="link","expected link on stack"),N.url=this.sliceSerialize(P)}function R4(P){W1.call(this,P);let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="link","expected link on stack"),N.url="mailto:"+this.sliceSerialize(P)}function A0(){return{type:"blockquote",children:[]}}function c0(){return{type:"code",lang:null,meta:null,value:""}}function O2(){return{type:"inlineCode",value:""}}function P5(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pq(){return{type:"emphasis",children:[]}}function i9(){return{type:"heading",depth:0,children:[]}}function n9(){return{type:"break"}}function o9(){return{type:"html",value:""}}function Nq(){return{type:"image",title:null,url:"",alt:null}}function s9(){return{type:"link",title:null,url:"",children:[]}}function a9(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Zq(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function zq(){return{type:"paragraph",children:[]}}function _q(){return{type:"strong",children:[]}}function Lq(){return{type:"text",value:""}}function Cq(){return{type:"thematicBreak"}}}function I0($){return{line:$.line,column:$.column,offset:$.offset}}function J3($,G){let X=-1;while(++X<G.length){let Y=G[X];if(Array.isArray(Y))J3($,Y);else oD($,Y)}}function oD($,G){let X;for(X in G)if(V3.call(G,X))switch(X){case"canContainEols":{let Y=G[X];if(Y)$[X].push(...Y);break}case"transforms":{let Y=G[X];if(Y)$[X].push(...Y);break}case"enter":case"exit":{let Y=G[X];if(Y)Object.assign($[X],Y);break}}}function q3($,G){if($)throw Error("Cannot close `"+$.type+"` ("+S0({start:$.start,end:$.end})+"): a different token (`"+G.type+"`, "+S0({start:G.start,end:G.end})+") is open");else throw Error("Cannot close document, a token (`"+G.type+"`, "+S0({start:G.start,end:G.end})+") is still open")}function E6($){let G=this;G.parser=X;function X(Y){return M8(Y,{...G.data("settings"),...$,extensions:G.data("micromarkExtensions")||[],mdastExtensions:G.data("fromMarkdownExtensions")||[]})}}var H3={}.hasOwnProperty;function U3($,G){let X=G||{};function Y(W,...q){let{invalid:V,handlers:J}=Y;if(W&&H3.call(W,$)){let U=String(W[$]);V=H3.call(J,U)?J[U]:Y.unknown}if(V)return V.call(this,W,...q)}return Y.handlers=X.handlers||{},Y.invalid=X.invalid,Y.unknown=X.unknown,Y}var sD={}.hasOwnProperty;function Q8($,G){let X=-1,Y;if(G.extensions)while(++X<G.extensions.length)Q8($,G.extensions[X]);for(Y in G)if(sD.call(G,Y))switch(Y){case"extensions":break;case"unsafe":{R3($[Y],G[Y]);break}case"join":{R3($[Y],G[Y]);break}case"handlers":{aD($[Y],G[Y]);break}default:$.options[Y]=G[Y]}return $}function R3($,G){if(G)$.push(...G)}function aD($,G){if(G)Object.assign($,G)}function D3($,G,X,Y){let W=X.enter("blockquote"),q=X.createTracker(Y);q.move("> "),q.shift(2);let V=X.indentLines(X.containerFlow($,q.current()),tD);return W(),V}function tD($,G,X){return">"+(X?"":" ")+$}function j6($,G){return M3($,G.inConstruct,!0)&&!M3($,G.notInConstruct,!1)}function M3($,G,X){if(typeof G==="string")G=[G];if(!G||G.length===0)return X;let Y=-1;while(++Y<G.length)if($.includes(G[Y]))return!0;return!1}function A8($,G,X,Y){let W=-1;while(++W<X.unsafe.length)if(X.unsafe[W].character===`
|
|
60
|
-
`&&j6(X.stack,X.unsafe[W]))return/[ \t]/.test(Y.before)?"":" ";return"\\\n"}function
|
|
58
|
+
`,Nfr:"\uD835\uDD11",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\uD835\uDCA9",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\uD835\uDD12",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\uD835\uDCAA",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\uD835\uDD13",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\uD835\uDCAB",Psi:"\u03A8",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"\u211A",Qscr:"\uD835\uDCAC",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\uD835\uDD16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\uD835\uDD4A",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\uD835\uDCAE",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"\t",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\uD835\uDD17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\uD835\uDD4B",TripleDot:"\u20DB",Tscr:"\uD835\uDCAF",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\uD835\uDD18",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\uD835\uDD4C",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\uD835\uDCB0",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"\u039E",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\uD835\uDCB5",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\uD835\uDD1E",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\uD835\uDD52",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\uD835\uDCB6",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\uD835\uDD20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\uD835\uDD54",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\uD835\uDD21",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\uD835\uDD55",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\uD835\uDCB9",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\uD835\uDD22",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\uD835\uDD23",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\uD835\uDD57",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\uD835\uDCBB",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\uD835\uDD24",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\uD835\uDD58",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\uD835\uDD25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\uD835\uDD59",horbar:"\u2015",hscr:"\uD835\uDCBD",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\uD835\uDD26",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\uD835\uDD5A",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\uD835\uDCBE",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\uD835\uDD27",jmath:"\u0237",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\uD835\uDD28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\uD835\uDCC1",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\uD835\uDD5E",mp:"\u2213",mscr:"\uD835\uDCC2",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\uD835\uDD5F",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\uD835\uDD2C",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\uD835\uDD60",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\uD835\uDD2D",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\uD835\uDD61",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\uD835\uDCC5",psi:"\u03C8",puncsp:"\u2008",qfr:"\uD835\uDD2E",qint:"\u2A0C",qopf:"\uD835\uDD62",qprime:"\u2057",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\uD835\uDD2F",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\uD835\uDCC7",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\uD835\uDD31",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\uD835\uDCC9",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\uD835\uDD32",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\uD835\uDD66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\uD835\uDCCA",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\uD835\uDD36",yicy:"\u0457",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\uD835\uDD37",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"};var lU={}.hasOwnProperty;function S2($){return lU.call(r5,$)?r5[$]:!1}var Q={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var T={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var A={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var p1={ht:"\t",lf:`
|
|
59
|
+
`,cr:"\r",space:" ",exclamationMark:"!",quotationMark:'"',numberSign:"#",dollarSign:"$",percentSign:"%",ampersand:"&",apostrophe:"'",leftParenthesis:"(",rightParenthesis:")",asterisk:"*",plusSign:"+",comma:",",dash:"-",dot:".",slash:"/",digit0:"0",digit1:"1",digit2:"2",digit3:"3",digit4:"4",digit5:"5",digit6:"6",digit7:"7",digit8:"8",digit9:"9",colon:":",semicolon:";",lessThan:"<",equalsTo:"=",greaterThan:">",questionMark:"?",atSign:"@",uppercaseA:"A",uppercaseB:"B",uppercaseC:"C",uppercaseD:"D",uppercaseE:"E",uppercaseF:"F",uppercaseG:"G",uppercaseH:"H",uppercaseI:"I",uppercaseJ:"J",uppercaseK:"K",uppercaseL:"L",uppercaseM:"M",uppercaseN:"N",uppercaseO:"O",uppercaseP:"P",uppercaseQ:"Q",uppercaseR:"R",uppercaseS:"S",uppercaseT:"T",uppercaseU:"U",uppercaseV:"V",uppercaseW:"W",uppercaseX:"X",uppercaseY:"Y",uppercaseZ:"Z",leftSquareBracket:"[",backslash:"\\",rightSquareBracket:"]",caret:"^",underscore:"_",graveAccent:"`",lowercaseA:"a",lowercaseB:"b",lowercaseC:"c",lowercaseD:"d",lowercaseE:"e",lowercaseF:"f",lowercaseG:"g",lowercaseH:"h",lowercaseI:"i",lowercaseJ:"j",lowercaseK:"k",lowercaseL:"l",lowercaseM:"m",lowercaseN:"n",lowercaseO:"o",lowercaseP:"p",lowercaseQ:"q",lowercaseR:"r",lowercaseS:"s",lowercaseT:"t",lowercaseU:"u",lowercaseV:"v",lowercaseW:"w",lowercaseX:"x",lowercaseY:"y",lowercaseZ:"z",leftCurlyBrace:"{",verticalBar:"|",rightCurlyBrace:"}",tilde:"~",replacementCharacter:"\uFFFD"};function z1($,G,X,Y){let W=$.length,q=0,V;if(G<0)G=-G>W?0:W+G;else G=G>W?W:G;if(X=X>0?X:0,Y.length<T.v8MaxSafeChunkSize)V=Array.from(Y),V.unshift(G,X),$.splice(...V);else{if(X)$.splice(G,X);while(q<Y.length)V=Y.slice(q,q+T.v8MaxSafeChunkSize),V.unshift(G,0),$.splice(...V),q+=T.v8MaxSafeChunkSize,G+=T.v8MaxSafeChunkSize}}function x1($,G){if($.length>0)return z1($,$.length,0,G),$;return G}var OG={}.hasOwnProperty;function PG($){let G={},X=-1;while(++X<$.length)rU(G,$[X]);return G}function rU($,G){let X;for(X in G){let W=(OG.call($,X)?$[X]:void 0)||($[X]={}),q=G[X],V;if(q)for(V in q){if(!OG.call(W,V))W[V]=[];let J=q[V];cU(W[V],Array.isArray(J)?J:J?[J]:[])}}}function cU($,G){let X=-1,Y=[];while(++X<G.length)(G[X].add==="after"?$:Y).push(G[X]);z1($,0,0,Y)}function A6($,G){let X=Number.parseInt($,G);if(X<Q.ht||X===Q.vt||X>Q.cr&&X<Q.space||X>Q.tilde&&X<160||X>55295&&X<57344||X>64975&&X<65008||(X&65535)===65535||(X&65535)===65534||X>1114111)return p1.replacementCharacter;return String.fromCodePoint(X)}function O0($){return $.replace(/[\t\n\r ]+/g,p1.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}var l1=T0(/[A-Za-z]/),k1=T0(/[\dA-Za-z]/),NG=T0(/[#-'*+\--9=?A-Z^-~]/);function N4($){return $!==null&&($<Q.space||$===Q.del)}var z4=T0(/\d/),zG=T0(/[\dA-Fa-f]/),ZG=T0(/[!-/:-@[-`{-~]/);function S($){return $!==null&&$<Q.horizontalTab}function U1($){return $!==null&&($<Q.nul||$===Q.space)}function l($){return $===Q.horizontalTab||$===Q.virtualSpace||$===Q.space}var _G=T0(/\p{P}|\p{S}/u),LG=T0(/\s/);function T0($){return G;function G(X){return X!==null&&X>-1&&$.test(String.fromCharCode(X))}}function c($,G,X,Y){let W=Y?Y-1:Number.POSITIVE_INFINITY,q=0;return V;function V(U){if(l(U))return $.enter(X),J(U);return G(U)}function J(U){if(l(U)&&q++<W)return $.consume(U),J;return $.exit(X),G(U)}}var CG={tokenize:dU};function dU($){let G=$.attempt(this.parser.constructs.contentInitial,Y,W),X;return G;function Y(J){if(w(J===Q.eof||S(J),"expected eol or eof"),J===Q.eof){$.consume(J);return}return $.enter(A.lineEnding),$.consume(J),$.exit(A.lineEnding),c($,G,A.linePrefix)}function W(J){return w(J!==Q.eof&&!S(J),"expected anything other than a line ending or EOF"),$.enter(A.paragraph),q(J)}function q(J){let U=$.enter(A.chunkText,{contentType:T.contentTypeText,previous:X});if(X)X.next=U;return X=U,V(J)}function V(J){if(J===Q.eof){$.exit(A.chunkText),$.exit(A.paragraph),$.consume(J);return}if(S(J))return $.consume(J),$.exit(A.chunkText),q;return $.consume(J),V}}var EG={tokenize:iU},TG={tokenize:nU};function iU($){let G=this,X=[],Y=0,W,q,V;return J;function J(h){if(Y<X.length){let e=X[Y];return G.containerState=e[1],w(e[0].continuation,"expected `continuation` to be defined on container construct"),$.attempt(e[0].continuation,U,R)(h)}return R(h)}function U(h){if(w(G.containerState,"expected `containerState` to be defined after continuation"),Y++,G.containerState._closeFlow){if(G.containerState._closeFlow=void 0,W)v();let e=G.events.length,Y1=e,_;while(Y1--)if(G.events[Y1][0]==="exit"&&G.events[Y1][1].type===A.chunkFlow){_=G.events[Y1][1].end;break}w(_,"could not find previous flow chunk"),L(Y);let G1=e;while(G1<G.events.length)G.events[G1][1].end={..._},G1++;return z1(G.events,Y1+1,0,G.events.slice(e)),G.events.length=G1,R(h)}return J(h)}function R(h){if(Y===X.length){if(!W)return F(h);if(W.currentConstruct&&W.currentConstruct.concrete)return z(h);G.interrupt=Boolean(W.currentConstruct&&!W._gfmTableDynamicInterruptHack)}return G.containerState={},$.check(TG,D,M)(h)}function D(h){if(W)v();return L(Y),F(h)}function M(h){return G.parser.lazy[G.now().line]=Y!==X.length,V=G.now().offset,z(h)}function F(h){return G.containerState={},$.attempt(TG,K,z)(h)}function K(h){return w(G.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),w(G.containerState,"expected `containerState` to be defined on tokenizer"),Y++,X.push([G.currentConstruct,G.containerState]),F(h)}function z(h){if(h===Q.eof){if(W)v();L(0),$.consume(h);return}return W=W||G.parser.flow(G.now()),$.enter(A.chunkFlow,{_tokenizer:W,contentType:T.contentTypeFlow,previous:q}),Z(h)}function Z(h){if(h===Q.eof){C($.exit(A.chunkFlow),!0),L(0),$.consume(h);return}if(S(h))return $.consume(h),C($.exit(A.chunkFlow)),Y=0,G.interrupt=void 0,J;return $.consume(h),Z}function C(h,e){w(W,"expected `childFlow` to be defined when continuing");let Y1=G.sliceStream(h);if(e)Y1.push(null);if(h.previous=q,q)q.next=h;if(q=h,W.defineSkip(h.start),W.write(Y1),G.parser.lazy[h.start.line]){let _=W.events.length;while(_--)if(W.events[_][1].start.offset<V&&(!W.events[_][1].end||W.events[_][1].end.offset>V))return;let G1=G.events.length,q1=G1,t,W1;while(q1--)if(G.events[q1][0]==="exit"&&G.events[q1][1].type===A.chunkFlow){if(t){W1=G.events[q1][1].end;break}t=!0}w(W1,"could not find previous flow chunk"),L(Y),_=G1;while(_<G.events.length)G.events[_][1].end={...W1},_++;z1(G.events,q1+1,0,G.events.slice(G1)),G.events.length=_}}function L(h){let e=X.length;while(e-- >h){let Y1=X[e];G.containerState=Y1[1],w(Y1[0].exit,"expected `exit` to be defined on container construct"),Y1[0].exit.call(G,$)}X.length=h}function v(){w(G.containerState,"expected `containerState` to be defined when closing flow"),w(W,"expected `childFlow` to be defined when closing it"),W.write([Q.eof]),q=void 0,W=void 0,G.containerState._closeFlow=void 0}}function nU($,G,X){return w(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,$.attempt(this.parser.constructs.document,G,X),A.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)}function I2($){if($===Q.eof||U1($)||LG($))return T.characterGroupWhitespace;if(_G($))return T.characterGroupPunctuation}function x2($,G,X){let Y=[],W=-1;while(++W<$.length){let q=$[W].resolveAll;if(q&&!Y.includes(q))G=q(G,X),Y.push(q)}return G}var Z4={name:"attention",resolveAll:oU,tokenize:sU};function oU($,G){let X=-1,Y,W,q,V,J,U,R,D;while(++X<$.length)if($[X][0]==="enter"&&$[X][1].type==="attentionSequence"&&$[X][1]._close){Y=X;while(Y--)if($[Y][0]==="exit"&&$[Y][1].type==="attentionSequence"&&$[Y][1]._open&&G.sliceSerialize($[Y][1]).charCodeAt(0)===G.sliceSerialize($[X][1]).charCodeAt(0)){if(($[Y][1]._close||$[X][1]._open)&&($[X][1].end.offset-$[X][1].start.offset)%3&&!(($[Y][1].end.offset-$[Y][1].start.offset+$[X][1].end.offset-$[X][1].start.offset)%3))continue;U=$[Y][1].end.offset-$[Y][1].start.offset>1&&$[X][1].end.offset-$[X][1].start.offset>1?2:1;let M={...$[Y][1].end},F={...$[X][1].start};if(jG(M,-U),jG(F,U),V={type:U>1?A.strongSequence:A.emphasisSequence,start:M,end:{...$[Y][1].end}},J={type:U>1?A.strongSequence:A.emphasisSequence,start:{...$[X][1].start},end:F},q={type:U>1?A.strongText:A.emphasisText,start:{...$[Y][1].end},end:{...$[X][1].start}},W={type:U>1?A.strong:A.emphasis,start:{...V.start},end:{...J.end}},$[Y][1].end={...V.start},$[X][1].start={...J.end},R=[],$[Y][1].end.offset-$[Y][1].start.offset)R=x1(R,[["enter",$[Y][1],G],["exit",$[Y][1],G]]);if(R=x1(R,[["enter",W,G],["enter",V,G],["exit",V,G],["enter",q,G]]),w(G.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),R=x1(R,x2(G.parser.constructs.insideSpan.null,$.slice(Y+1,X),G)),R=x1(R,[["exit",q,G],["enter",J,G],["exit",J,G],["exit",W,G]]),$[X][1].end.offset-$[X][1].start.offset)D=2,R=x1(R,[["enter",$[X][1],G],["exit",$[X][1],G]]);else D=0;z1($,Y-1,X-Y+3,R),X=Y+R.length-D-2;break}}X=-1;while(++X<$.length)if($[X][1].type==="attentionSequence")$[X][1].type="data";return $}function sU($,G){let X=this.parser.constructs.attentionMarkers.null,Y=this.previous,W=I2(Y),q;return V;function V(U){return w(U===Q.asterisk||U===Q.underscore,"expected asterisk or underscore"),q=U,$.enter("attentionSequence"),J(U)}function J(U){if(U===q)return $.consume(U),J;let R=$.exit("attentionSequence"),D=I2(U);w(X,"expected `attentionMarkers` to be populated");let M=!D||D===T.characterGroupPunctuation&&W||X.includes(U),F=!W||W===T.characterGroupPunctuation&&D||X.includes(Y);return R._open=Boolean(q===Q.asterisk?M:M&&(W||!F)),R._close=Boolean(q===Q.asterisk?F:F&&(D||!M)),G(U)}}function jG($,G){$.column+=G,$.offset+=G,$._bufferIndex+=G}var c5={name:"autolink",tokenize:aU};function aU($,G,X){let Y=0;return W;function W(K){return w(K===Q.lessThan,"expected `<`"),$.enter(A.autolink),$.enter(A.autolinkMarker),$.consume(K),$.exit(A.autolinkMarker),$.enter(A.autolinkProtocol),q}function q(K){if(l1(K))return $.consume(K),V;if(K===Q.atSign)return X(K);return R(K)}function V(K){if(K===Q.plusSign||K===Q.dash||K===Q.dot||k1(K))return Y=1,J(K);return R(K)}function J(K){if(K===Q.colon)return $.consume(K),Y=0,U;if((K===Q.plusSign||K===Q.dash||K===Q.dot||k1(K))&&Y++<T.autolinkSchemeSizeMax)return $.consume(K),J;return Y=0,R(K)}function U(K){if(K===Q.greaterThan)return $.exit(A.autolinkProtocol),$.enter(A.autolinkMarker),$.consume(K),$.exit(A.autolinkMarker),$.exit(A.autolink),G;if(K===Q.eof||K===Q.space||K===Q.lessThan||N4(K))return X(K);return $.consume(K),U}function R(K){if(K===Q.atSign)return $.consume(K),D;if(NG(K))return $.consume(K),R;return X(K)}function D(K){return k1(K)?M(K):X(K)}function M(K){if(K===Q.dot)return $.consume(K),Y=0,D;if(K===Q.greaterThan)return $.exit(A.autolinkProtocol).type=A.autolinkEmail,$.enter(A.autolinkMarker),$.consume(K),$.exit(A.autolinkMarker),$.exit(A.autolink),G;return F(K)}function F(K){if((K===Q.dash||k1(K))&&Y++<T.autolinkDomainSizeMax){let z=K===Q.dash?F:M;return $.consume(K),z}return X(K)}}var E0={partial:!0,tokenize:tU};function tU($,G,X){return Y;function Y(q){return l(q)?c($,W,A.linePrefix)(q):W(q)}function W(q){return q===Q.eof||S(q)?G(q):X(q)}}var Q6={continuation:{tokenize:$R},exit:GR,name:"blockQuote",tokenize:eU};function eU($,G,X){let Y=this;return W;function W(V){if(V===Q.greaterThan){let J=Y.containerState;if(w(J,"expected `containerState` to be defined in container"),!J.open)$.enter(A.blockQuote,{_container:!0}),J.open=!0;return $.enter(A.blockQuotePrefix),$.enter(A.blockQuoteMarker),$.consume(V),$.exit(A.blockQuoteMarker),q}return X(V)}function q(V){if(l(V))return $.enter(A.blockQuotePrefixWhitespace),$.consume(V),$.exit(A.blockQuotePrefixWhitespace),$.exit(A.blockQuotePrefix),G;return $.exit(A.blockQuotePrefix),G(V)}}function $R($,G,X){let Y=this;return W;function W(V){if(l(V))return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,q,A.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(V);return q(V)}function q(V){return $.attempt(Q6,G,X)(V)}}function GR($){$.exit(A.blockQuote)}var K6={name:"characterEscape",tokenize:XR};function XR($,G,X){return Y;function Y(q){return w(q===Q.backslash,"expected `\\`"),$.enter(A.characterEscape),$.enter(A.escapeMarker),$.consume(q),$.exit(A.escapeMarker),W}function W(q){if(ZG(q))return $.enter(A.characterEscapeValue),$.consume(q),$.exit(A.characterEscapeValue),$.exit(A.characterEscape),G;return X(q)}}var F6={name:"characterReference",tokenize:YR};function YR($,G,X){let Y=this,W=0,q,V;return J;function J(M){return w(M===Q.ampersand,"expected `&`"),$.enter(A.characterReference),$.enter(A.characterReferenceMarker),$.consume(M),$.exit(A.characterReferenceMarker),U}function U(M){if(M===Q.numberSign)return $.enter(A.characterReferenceMarkerNumeric),$.consume(M),$.exit(A.characterReferenceMarkerNumeric),R;return $.enter(A.characterReferenceValue),q=T.characterReferenceNamedSizeMax,V=k1,D(M)}function R(M){if(M===Q.uppercaseX||M===Q.lowercaseX)return $.enter(A.characterReferenceMarkerHexadecimal),$.consume(M),$.exit(A.characterReferenceMarkerHexadecimal),$.enter(A.characterReferenceValue),q=T.characterReferenceHexadecimalSizeMax,V=zG,D;return $.enter(A.characterReferenceValue),q=T.characterReferenceDecimalSizeMax,V=z4,D(M)}function D(M){if(M===Q.semicolon&&W){let F=$.exit(A.characterReferenceValue);if(V===k1&&!S2(Y.sliceSerialize(F)))return X(M);return $.enter(A.characterReferenceMarker),$.consume(M),$.exit(A.characterReferenceMarker),$.exit(A.characterReference),G}if(V(M)&&W++<q)return $.consume(M),D;return X(M)}}var SG={partial:!0,tokenize:qR},w6={concrete:!0,name:"codeFenced",tokenize:WR};function WR($,G,X){let Y=this,W={partial:!0,tokenize:Y1},q=0,V=0,J;return U;function U(_){return R(_)}function R(_){w(_===Q.graveAccent||_===Q.tilde,"expected `` ` `` or `~`");let G1=Y.events[Y.events.length-1];return q=G1&&G1[1].type===A.linePrefix?G1[2].sliceSerialize(G1[1],!0).length:0,J=_,$.enter(A.codeFenced),$.enter(A.codeFencedFence),$.enter(A.codeFencedFenceSequence),D(_)}function D(_){if(_===J)return V++,$.consume(_),D;if(V<T.codeFencedSequenceSizeMin)return X(_);return $.exit(A.codeFencedFenceSequence),l(_)?c($,M,A.whitespace)(_):M(_)}function M(_){if(_===Q.eof||S(_))return $.exit(A.codeFencedFence),Y.interrupt?G(_):$.check(SG,Z,e)(_);return $.enter(A.codeFencedFenceInfo),$.enter(A.chunkString,{contentType:T.contentTypeString}),F(_)}function F(_){if(_===Q.eof||S(_))return $.exit(A.chunkString),$.exit(A.codeFencedFenceInfo),M(_);if(l(_))return $.exit(A.chunkString),$.exit(A.codeFencedFenceInfo),c($,K,A.whitespace)(_);if(_===Q.graveAccent&&_===J)return X(_);return $.consume(_),F}function K(_){if(_===Q.eof||S(_))return M(_);return $.enter(A.codeFencedFenceMeta),$.enter(A.chunkString,{contentType:T.contentTypeString}),z(_)}function z(_){if(_===Q.eof||S(_))return $.exit(A.chunkString),$.exit(A.codeFencedFenceMeta),M(_);if(_===Q.graveAccent&&_===J)return X(_);return $.consume(_),z}function Z(_){return w(S(_),"expected eol"),$.attempt(W,e,C)(_)}function C(_){return w(S(_),"expected eol"),$.enter(A.lineEnding),$.consume(_),$.exit(A.lineEnding),L}function L(_){return q>0&&l(_)?c($,v,A.linePrefix,q+1)(_):v(_)}function v(_){if(_===Q.eof||S(_))return $.check(SG,Z,e)(_);return $.enter(A.codeFlowValue),h(_)}function h(_){if(_===Q.eof||S(_))return $.exit(A.codeFlowValue),v(_);return $.consume(_),h}function e(_){return $.exit(A.codeFenced),G(_)}function Y1(_,G1,q1){let t=0;return W1;function W1(n){return w(S(n),"expected eol"),_.enter(A.lineEnding),_.consume(n),_.exit(A.lineEnding),c1}function c1(n){return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),_.enter(A.codeFencedFence),l(n)?c(_,X1,A.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(n):X1(n)}function X1(n){if(n===J)return _.enter(A.codeFencedFenceSequence),k(n);return q1(n)}function k(n){if(n===J)return t++,_.consume(n),k;if(t>=V)return _.exit(A.codeFencedFenceSequence),l(n)?c(_,r,A.whitespace)(n):r(n);return q1(n)}function r(n){if(n===Q.eof||S(n))return _.exit(A.codeFencedFence),G1(n);return q1(n)}}}function qR($,G,X){let Y=this;return W;function W(V){if(V===Q.eof)return X(V);return w(S(V),"expected eol"),$.enter(A.lineEnding),$.consume(V),$.exit(A.lineEnding),q}function q(V){return Y.parser.lazy[Y.now().line]?X(V):G(V)}}var _4={name:"codeIndented",tokenize:JR},VR={partial:!0,tokenize:HR};function JR($,G,X){let Y=this;return W;function W(R){return w(l(R)),$.enter(A.codeIndented),c($,q,A.linePrefix,T.tabSize+1)(R)}function q(R){let D=Y.events[Y.events.length-1];return D&&D[1].type===A.linePrefix&&D[2].sliceSerialize(D[1],!0).length>=T.tabSize?V(R):X(R)}function V(R){if(R===Q.eof)return U(R);if(S(R))return $.attempt(VR,V,U)(R);return $.enter(A.codeFlowValue),J(R)}function J(R){if(R===Q.eof||S(R))return $.exit(A.codeFlowValue),V(R);return $.consume(R),J}function U(R){return $.exit(A.codeIndented),G(R)}}function HR($,G,X){let Y=this;return W;function W(V){if(Y.parser.lazy[Y.now().line])return X(V);if(S(V))return $.enter(A.lineEnding),$.consume(V),$.exit(A.lineEnding),W;return c($,q,A.linePrefix,T.tabSize+1)(V)}function q(V){let J=Y.events[Y.events.length-1];return J&&J[1].type===A.linePrefix&&J[2].sliceSerialize(J[1],!0).length>=T.tabSize?G(V):S(V)?W(V):X(V)}}var d5={name:"codeText",previous:IG,resolve:UR,tokenize:RR};function UR($){let G=$.length-4,X=3,Y,W;if(($[X][1].type===A.lineEnding||$[X][1].type==="space")&&($[G][1].type===A.lineEnding||$[G][1].type==="space")){Y=X;while(++Y<G)if($[Y][1].type===A.codeTextData){$[X][1].type=A.codeTextPadding,$[G][1].type=A.codeTextPadding,X+=2,G-=2;break}}Y=X-1,G++;while(++Y<=G)if(W===void 0){if(Y!==G&&$[Y][1].type!==A.lineEnding)W=Y}else if(Y===G||$[Y][1].type===A.lineEnding){if($[W][1].type=A.codeTextData,Y!==W+2)$[W][1].end=$[Y-1][1].end,$.splice(W+2,Y-W-2),G-=Y-W-2,Y=W+2;W=void 0}return $}function IG($){return $!==Q.graveAccent||this.events[this.events.length-1][1].type===A.characterEscape}function RR($,G,X){let Y=this,W=0,q,V;return J;function J(F){return w(F===Q.graveAccent,"expected `` ` ``"),w(IG.call(Y,Y.previous),"expected correct previous"),$.enter(A.codeText),$.enter(A.codeTextSequence),U(F)}function U(F){if(F===Q.graveAccent)return $.consume(F),W++,U;return $.exit(A.codeTextSequence),R(F)}function R(F){if(F===Q.eof)return X(F);if(F===Q.space)return $.enter("space"),$.consume(F),$.exit("space"),R;if(F===Q.graveAccent)return V=$.enter(A.codeTextSequence),q=0,M(F);if(S(F))return $.enter(A.lineEnding),$.consume(F),$.exit(A.lineEnding),R;return $.enter(A.codeTextData),D(F)}function D(F){if(F===Q.eof||F===Q.space||F===Q.graveAccent||S(F))return $.exit(A.codeTextData),R(F);return $.consume(F),D}function M(F){if(F===Q.graveAccent)return $.consume(F),q++,M;if(q===W)return $.exit(A.codeTextSequence),$.exit(A.codeText),G(F);return V.type=A.codeTextData,D(F)}}class i5{constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,G){let X=G===null||G===void 0?Number.POSITIVE_INFINITY:G;if(X<this.left.length)return this.left.slice($,X);if($>this.left.length)return this.right.slice(this.right.length-X+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-X+this.left.length).reverse())}splice($,G,X){let Y=G||0;this.setCursor(Math.trunc($));let W=this.right.splice(this.right.length-Y,Number.POSITIVE_INFINITY);if(X)L4(this.left,X);return W.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),L4(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),L4(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let G=this.left.splice($,Number.POSITIVE_INFINITY);L4(this.right,G.reverse())}else{let G=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);L4(this.left,G.reverse())}}}function L4($,G){let X=0;if(G.length<T.v8MaxSafeChunkSize)$.push(...G);else while(X<G.length)$.push(...G.slice(X,X+T.v8MaxSafeChunkSize)),X+=T.v8MaxSafeChunkSize}function B6($){let G={},X=-1,Y,W,q,V,J,U,R,D=new i5($);while(++X<D.length){while(X in G)X=G[X];if(Y=D.get(X),X&&Y[1].type===A.chunkFlow&&D.get(X-1)[1].type===A.listItemPrefix){if(w(Y[1]._tokenizer,"expected `_tokenizer` on subtokens"),U=Y[1]._tokenizer.events,q=0,q<U.length&&U[q][1].type===A.lineEndingBlank)q+=2;if(q<U.length&&U[q][1].type===A.content)while(++q<U.length){if(U[q][1].type===A.content)break;if(U[q][1].type===A.chunkText)U[q][1]._isInFirstContentOfListItem=!0,q++}}if(Y[0]==="enter"){if(Y[1].contentType)Object.assign(G,DR(D,X)),X=G[X],R=!0}else if(Y[1]._container){q=X,W=void 0;while(q--)if(V=D.get(q),V[1].type===A.lineEnding||V[1].type===A.lineEndingBlank){if(V[0]==="enter"){if(W)D.get(W)[1].type=A.lineEndingBlank;V[1].type=A.lineEnding,W=q}}else if(V[1].type===A.linePrefix||V[1].type===A.listItemIndent);else break;if(W)Y[1].end={...D.get(W)[1].start},J=D.slice(W,X),J.unshift(Y),D.splice(W,X-W+1,J)}}return z1($,0,Number.POSITIVE_INFINITY,D.slice(0)),!R}function DR($,G){let X=$.get(G)[1],Y=$.get(G)[2],W=G-1,q=[];w(X.contentType,"expected `contentType` on subtokens");let V=X._tokenizer;if(!V){if(V=Y.parser[X.contentType](X.start),X._contentTypeTextTrailing)V._contentTypeTextTrailing=!0}let J=V.events,U=[],R={},D,M,F=-1,K=X,z=0,Z=0,C=[Z];while(K){while($.get(++W)[1]!==K);if(w(!M||K.previous===M,"expected previous to match"),w(!M||M.next===K,"expected next to match"),q.push(W),!K._tokenizer){if(D=Y.sliceStream(K),!K.next)D.push(Q.eof);if(M)V.defineSkip(K.start);if(K._isInFirstContentOfListItem)V._gfmTasklistFirstContentOfListItem=!0;if(V.write(D),K._isInFirstContentOfListItem)V._gfmTasklistFirstContentOfListItem=void 0}M=K,K=K.next}K=X;while(++F<J.length)if(J[F][0]==="exit"&&J[F-1][0]==="enter"&&J[F][1].type===J[F-1][1].type&&J[F][1].start.line!==J[F][1].end.line)w(K,"expected a current token"),Z=F+1,C.push(Z),K._tokenizer=void 0,K.previous=void 0,K=K.next;if(V.events=[],K)K._tokenizer=void 0,K.previous=void 0,w(!K.next,"expected no next token");else C.pop();F=C.length;while(F--){let L=J.slice(C[F],C[F+1]),v=q.pop();w(v!==void 0,"expected a start position when splicing"),U.push([v,v+L.length-1]),$.splice(v,2,L)}U.reverse(),F=-1;while(++F<U.length)R[z+U[F][0]]=z+U[F][1],z+=U[F][1]-U[F][0]-1;return R}var n5={resolve:AR,tokenize:QR},MR={partial:!0,tokenize:KR};function AR($){return B6($),$}function QR($,G){let X;return Y;function Y(J){return w(J!==Q.eof&&!S(J),"expected no eof or eol"),$.enter(A.content),X=$.enter(A.chunkContent,{contentType:T.contentTypeContent}),W(J)}function W(J){if(J===Q.eof)return q(J);if(S(J))return $.check(MR,V,q)(J);return $.consume(J),W}function q(J){return $.exit(A.chunkContent),$.exit(A.content),G(J)}function V(J){return w(S(J),"expected eol"),$.consume(J),$.exit(A.chunkContent),w(X,"expected previous token"),X.next=$.enter(A.chunkContent,{contentType:T.contentTypeContent,previous:X}),X=X.next,W}}function KR($,G,X){let Y=this;return W;function W(V){return w(S(V),"expected a line ending"),$.exit(A.chunkContent),$.enter(A.lineEnding),$.consume(V),$.exit(A.lineEnding),c($,q,A.linePrefix)}function q(V){if(V===Q.eof||S(V))return X(V);w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated");let J=Y.events[Y.events.length-1];if(!Y.parser.constructs.disable.null.includes("codeIndented")&&J&&J[1].type===A.linePrefix&&J[2].sliceSerialize(J[1],!0).length>=T.tabSize)return G(V);return $.interrupt(Y.parser.constructs.flow,X,G)(V)}}function O6($,G,X,Y,W,q,V,J,U){let R=U||Number.POSITIVE_INFINITY,D=0;return M;function M(L){if(L===Q.lessThan)return $.enter(Y),$.enter(W),$.enter(q),$.consume(L),$.exit(q),F;if(L===Q.eof||L===Q.space||L===Q.rightParenthesis||N4(L))return X(L);return $.enter(Y),$.enter(V),$.enter(J),$.enter(A.chunkString,{contentType:T.contentTypeString}),Z(L)}function F(L){if(L===Q.greaterThan)return $.enter(q),$.consume(L),$.exit(q),$.exit(W),$.exit(Y),G;return $.enter(J),$.enter(A.chunkString,{contentType:T.contentTypeString}),K(L)}function K(L){if(L===Q.greaterThan)return $.exit(A.chunkString),$.exit(J),F(L);if(L===Q.eof||L===Q.lessThan||S(L))return X(L);return $.consume(L),L===Q.backslash?z:K}function z(L){if(L===Q.lessThan||L===Q.greaterThan||L===Q.backslash)return $.consume(L),K;return K(L)}function Z(L){if(!D&&(L===Q.eof||L===Q.rightParenthesis||U1(L)))return $.exit(A.chunkString),$.exit(J),$.exit(V),$.exit(Y),G(L);if(D<R&&L===Q.leftParenthesis)return $.consume(L),D++,Z;if(L===Q.rightParenthesis)return $.consume(L),D--,Z;if(L===Q.eof||L===Q.space||L===Q.leftParenthesis||N4(L))return X(L);return $.consume(L),L===Q.backslash?C:Z}function C(L){if(L===Q.leftParenthesis||L===Q.rightParenthesis||L===Q.backslash)return $.consume(L),Z;return Z(L)}}function P6($,G,X,Y,W,q){let V=this,J=0,U;return R;function R(K){return w(K===Q.leftSquareBracket,"expected `[`"),$.enter(Y),$.enter(W),$.consume(K),$.exit(W),$.enter(q),D}function D(K){if(J>T.linkReferenceSizeMax||K===Q.eof||K===Q.leftSquareBracket||K===Q.rightSquareBracket&&!U||K===Q.caret&&!J&&"_hiddenFootnoteSupport"in V.parser.constructs)return X(K);if(K===Q.rightSquareBracket)return $.exit(q),$.enter(W),$.consume(K),$.exit(W),$.exit(Y),G;if(S(K))return $.enter(A.lineEnding),$.consume(K),$.exit(A.lineEnding),D;return $.enter(A.chunkString,{contentType:T.contentTypeString}),M(K)}function M(K){if(K===Q.eof||K===Q.leftSquareBracket||K===Q.rightSquareBracket||S(K)||J++>T.linkReferenceSizeMax)return $.exit(A.chunkString),D(K);if($.consume(K),!U)U=!l(K);return K===Q.backslash?F:M}function F(K){if(K===Q.leftSquareBracket||K===Q.backslash||K===Q.rightSquareBracket)return $.consume(K),J++,M;return M(K)}}function N6($,G,X,Y,W,q){let V;return J;function J(F){if(F===Q.quotationMark||F===Q.apostrophe||F===Q.leftParenthesis)return $.enter(Y),$.enter(W),$.consume(F),$.exit(W),V=F===Q.leftParenthesis?Q.rightParenthesis:F,U;return X(F)}function U(F){if(F===V)return $.enter(W),$.consume(F),$.exit(W),$.exit(Y),G;return $.enter(q),R(F)}function R(F){if(F===V)return $.exit(q),U(V);if(F===Q.eof)return X(F);if(S(F))return $.enter(A.lineEnding),$.consume(F),$.exit(A.lineEnding),c($,R,A.linePrefix);return $.enter(A.chunkString,{contentType:T.contentTypeString}),D(F)}function D(F){if(F===V||F===Q.eof||S(F))return $.exit(A.chunkString),R(F);return $.consume(F),F===Q.backslash?M:D}function M(F){if(F===V||F===Q.backslash)return $.consume(F),D;return D(F)}}function $2($,G){let X;return Y;function Y(W){if(S(W))return $.enter(A.lineEnding),$.consume(W),$.exit(A.lineEnding),X=!0,Y;if(l(W))return c($,Y,X?A.linePrefix:A.lineSuffix)(W);return G(W)}}var o5={name:"definition",tokenize:wR},FR={partial:!0,tokenize:BR};function wR($,G,X){let Y=this,W;return q;function q(K){return $.enter(A.definition),V(K)}function V(K){return w(K===Q.leftSquareBracket,"expected `[`"),P6.call(Y,$,J,X,A.definitionLabel,A.definitionLabelMarker,A.definitionLabelString)(K)}function J(K){if(W=O0(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)),K===Q.colon)return $.enter(A.definitionMarker),$.consume(K),$.exit(A.definitionMarker),U;return X(K)}function U(K){return U1(K)?$2($,R)(K):R(K)}function R(K){return O6($,D,X,A.definitionDestination,A.definitionDestinationLiteral,A.definitionDestinationLiteralMarker,A.definitionDestinationRaw,A.definitionDestinationString)(K)}function D(K){return $.attempt(FR,M,M)(K)}function M(K){return l(K)?c($,F,A.whitespace)(K):F(K)}function F(K){if(K===Q.eof||S(K))return $.exit(A.definition),Y.parser.defined.push(W),G(K);return X(K)}}function BR($,G,X){return Y;function Y(J){return U1(J)?$2($,W)(J):X(J)}function W(J){return N6($,q,X,A.definitionTitle,A.definitionTitleMarker,A.definitionTitleString)(J)}function q(J){return l(J)?c($,V,A.whitespace)(J):V(J)}function V(J){return J===Q.eof||S(J)?G(J):X(J)}}var s5={name:"hardBreakEscape",tokenize:OR};function OR($,G,X){return Y;function Y(q){return w(q===Q.backslash,"expected `\\`"),$.enter(A.hardBreakEscape),$.consume(q),W}function W(q){if(S(q))return $.exit(A.hardBreakEscape),G(q);return X(q)}}var a5={name:"headingAtx",resolve:PR,tokenize:NR};function PR($,G){let X=$.length-2,Y=3,W,q;if($[Y][1].type===A.whitespace)Y+=2;if(X-2>Y&&$[X][1].type===A.whitespace)X-=2;if($[X][1].type===A.atxHeadingSequence&&(Y===X-1||X-4>Y&&$[X-2][1].type===A.whitespace))X-=Y+1===X?2:4;if(X>Y)W={type:A.atxHeadingText,start:$[Y][1].start,end:$[X][1].end},q={type:A.chunkText,start:$[Y][1].start,end:$[X][1].end,contentType:T.contentTypeText},z1($,Y,X-Y+1,[["enter",W,G],["enter",q,G],["exit",q,G],["exit",W,G]]);return $}function NR($,G,X){let Y=0;return W;function W(D){return $.enter(A.atxHeading),q(D)}function q(D){return w(D===Q.numberSign,"expected `#`"),$.enter(A.atxHeadingSequence),V(D)}function V(D){if(D===Q.numberSign&&Y++<T.atxHeadingOpeningFenceSizeMax)return $.consume(D),V;if(D===Q.eof||U1(D))return $.exit(A.atxHeadingSequence),J(D);return X(D)}function J(D){if(D===Q.numberSign)return $.enter(A.atxHeadingSequence),U(D);if(D===Q.eof||S(D))return $.exit(A.atxHeading),G(D);if(l(D))return c($,J,A.whitespace)(D);return $.enter(A.atxHeadingText),R(D)}function U(D){if(D===Q.numberSign)return $.consume(D),U;return $.exit(A.atxHeadingSequence),J(D)}function R(D){if(D===Q.eof||D===Q.numberSign||U1(D))return $.exit(A.atxHeadingText),J(D);return $.consume(D),R}}var xG=["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"],t5=["pre","script","style","textarea"];var e5={concrete:!0,name:"htmlFlow",resolveTo:_R,tokenize:LR},zR={partial:!0,tokenize:TR},ZR={partial:!0,tokenize:CR};function _R($){let G=$.length;while(G--)if($[G][0]==="enter"&&$[G][1].type===A.htmlFlow)break;if(G>1&&$[G-2][1].type===A.linePrefix)$[G][1].start=$[G-2][1].start,$[G+1][1].start=$[G-2][1].start,$.splice(G-2,2);return $}function LR($,G,X){let Y=this,W,q,V,J,U;return R;function R(O){return D(O)}function D(O){return w(O===Q.lessThan,"expected `<`"),$.enter(A.htmlFlow),$.enter(A.htmlFlowData),$.consume(O),M}function M(O){if(O===Q.exclamationMark)return $.consume(O),F;if(O===Q.slash)return $.consume(O),q=!0,Z;if(O===Q.questionMark)return $.consume(O),W=T.htmlInstruction,Y.interrupt?G:B;if(l1(O))return w(O!==null),$.consume(O),V=String.fromCharCode(O),C;return X(O)}function F(O){if(O===Q.dash)return $.consume(O),W=T.htmlComment,K;if(O===Q.leftSquareBracket)return $.consume(O),W=T.htmlCdata,J=0,z;if(l1(O))return $.consume(O),W=T.htmlDeclaration,Y.interrupt?G:B;return X(O)}function K(O){if(O===Q.dash)return $.consume(O),Y.interrupt?G:B;return X(O)}function z(O){let m1=T.cdataOpeningString;if(O===m1.charCodeAt(J++)){if($.consume(O),J===m1.length)return Y.interrupt?G:X1;return z}return X(O)}function Z(O){if(l1(O))return w(O!==null),$.consume(O),V=String.fromCharCode(O),C;return X(O)}function C(O){if(O===Q.eof||O===Q.slash||O===Q.greaterThan||U1(O)){let m1=O===Q.slash,r0=V.toLowerCase();if(!m1&&!q&&t5.includes(r0))return W=T.htmlRaw,Y.interrupt?G(O):X1(O);if(xG.includes(V.toLowerCase())){if(W=T.htmlBasic,m1)return $.consume(O),L;return Y.interrupt?G(O):X1(O)}return W=T.htmlComplete,Y.interrupt&&!Y.parser.lazy[Y.now().line]?X(O):q?v(O):h(O)}if(O===Q.dash||k1(O))return $.consume(O),V+=String.fromCharCode(O),C;return X(O)}function L(O){if(O===Q.greaterThan)return $.consume(O),Y.interrupt?G:X1;return X(O)}function v(O){if(l(O))return $.consume(O),v;return W1(O)}function h(O){if(O===Q.slash)return $.consume(O),W1;if(O===Q.colon||O===Q.underscore||l1(O))return $.consume(O),e;if(l(O))return $.consume(O),h;return W1(O)}function e(O){if(O===Q.dash||O===Q.dot||O===Q.colon||O===Q.underscore||k1(O))return $.consume(O),e;return Y1(O)}function Y1(O){if(O===Q.equalsTo)return $.consume(O),_;if(l(O))return $.consume(O),Y1;return h(O)}function _(O){if(O===Q.eof||O===Q.lessThan||O===Q.equalsTo||O===Q.greaterThan||O===Q.graveAccent)return X(O);if(O===Q.quotationMark||O===Q.apostrophe)return $.consume(O),U=O,G1;if(l(O))return $.consume(O),_;return q1(O)}function G1(O){if(O===U)return $.consume(O),U=null,t;if(O===Q.eof||S(O))return X(O);return $.consume(O),G1}function q1(O){if(O===Q.eof||O===Q.quotationMark||O===Q.apostrophe||O===Q.slash||O===Q.lessThan||O===Q.equalsTo||O===Q.greaterThan||O===Q.graveAccent||U1(O))return Y1(O);return $.consume(O),q1}function t(O){if(O===Q.slash||O===Q.greaterThan||l(O))return h(O);return X(O)}function W1(O){if(O===Q.greaterThan)return $.consume(O),c1;return X(O)}function c1(O){if(O===Q.eof||S(O))return X1(O);if(l(O))return $.consume(O),c1;return X(O)}function X1(O){if(O===Q.dash&&W===T.htmlComment)return $.consume(O),J1;if(O===Q.lessThan&&W===T.htmlRaw)return $.consume(O),Q1;if(O===Q.greaterThan&&W===T.htmlDeclaration)return $.consume(O),i1;if(O===Q.questionMark&&W===T.htmlInstruction)return $.consume(O),B;if(O===Q.rightSquareBracket&&W===T.htmlCdata)return $.consume(O),W0;if(S(O)&&(W===T.htmlBasic||W===T.htmlComplete))return $.exit(A.htmlFlowData),$.check(zR,A0,k)(O);if(O===Q.eof||S(O))return $.exit(A.htmlFlowData),k(O);return $.consume(O),X1}function k(O){return $.check(ZR,r,A0)(O)}function r(O){return w(S(O)),$.enter(A.lineEnding),$.consume(O),$.exit(A.lineEnding),n}function n(O){if(O===Q.eof||S(O))return k(O);return $.enter(A.htmlFlowData),X1(O)}function J1(O){if(O===Q.dash)return $.consume(O),B;return X1(O)}function Q1(O){if(O===Q.slash)return $.consume(O),V="",d1;return X1(O)}function d1(O){if(O===Q.greaterThan){let m1=V.toLowerCase();if(t5.includes(m1))return $.consume(O),i1;return X1(O)}if(l1(O)&&V.length<T.htmlRawSizeMax)return w(O!==null),$.consume(O),V+=String.fromCharCode(O),d1;return X1(O)}function W0(O){if(O===Q.rightSquareBracket)return $.consume(O),B;return X1(O)}function B(O){if(O===Q.greaterThan)return $.consume(O),i1;if(O===Q.dash&&W===T.htmlComment)return $.consume(O),B;return X1(O)}function i1(O){if(O===Q.eof||S(O))return $.exit(A.htmlFlowData),A0(O);return $.consume(O),i1}function A0(O){return $.exit(A.htmlFlow),G(O)}}function CR($,G,X){let Y=this;return W;function W(V){if(S(V))return $.enter(A.lineEnding),$.consume(V),$.exit(A.lineEnding),q;return X(V)}function q(V){return Y.parser.lazy[Y.now().line]?X(V):G(V)}}function TR($,G,X){return Y;function Y(W){return w(S(W),"expected a line ending"),$.enter(A.lineEnding),$.consume(W),$.exit(A.lineEnding),$.attempt(E0,G,X)}}var $8={name:"htmlText",tokenize:ER};function ER($,G,X){let Y=this,W,q,V;return J;function J(B){return w(B===Q.lessThan,"expected `<`"),$.enter(A.htmlText),$.enter(A.htmlTextData),$.consume(B),U}function U(B){if(B===Q.exclamationMark)return $.consume(B),R;if(B===Q.slash)return $.consume(B),Y1;if(B===Q.questionMark)return $.consume(B),h;if(l1(B))return $.consume(B),q1;return X(B)}function R(B){if(B===Q.dash)return $.consume(B),D;if(B===Q.leftSquareBracket)return $.consume(B),q=0,z;if(l1(B))return $.consume(B),v;return X(B)}function D(B){if(B===Q.dash)return $.consume(B),K;return X(B)}function M(B){if(B===Q.eof)return X(B);if(B===Q.dash)return $.consume(B),F;if(S(B))return V=M,Q1(B);return $.consume(B),M}function F(B){if(B===Q.dash)return $.consume(B),K;return M(B)}function K(B){return B===Q.greaterThan?J1(B):B===Q.dash?F(B):M(B)}function z(B){let i1=T.cdataOpeningString;if(B===i1.charCodeAt(q++))return $.consume(B),q===i1.length?Z:z;return X(B)}function Z(B){if(B===Q.eof)return X(B);if(B===Q.rightSquareBracket)return $.consume(B),C;if(S(B))return V=Z,Q1(B);return $.consume(B),Z}function C(B){if(B===Q.rightSquareBracket)return $.consume(B),L;return Z(B)}function L(B){if(B===Q.greaterThan)return J1(B);if(B===Q.rightSquareBracket)return $.consume(B),L;return Z(B)}function v(B){if(B===Q.eof||B===Q.greaterThan)return J1(B);if(S(B))return V=v,Q1(B);return $.consume(B),v}function h(B){if(B===Q.eof)return X(B);if(B===Q.questionMark)return $.consume(B),e;if(S(B))return V=h,Q1(B);return $.consume(B),h}function e(B){return B===Q.greaterThan?J1(B):h(B)}function Y1(B){if(l1(B))return $.consume(B),_;return X(B)}function _(B){if(B===Q.dash||k1(B))return $.consume(B),_;return G1(B)}function G1(B){if(S(B))return V=G1,Q1(B);if(l(B))return $.consume(B),G1;return J1(B)}function q1(B){if(B===Q.dash||k1(B))return $.consume(B),q1;if(B===Q.slash||B===Q.greaterThan||U1(B))return t(B);return X(B)}function t(B){if(B===Q.slash)return $.consume(B),J1;if(B===Q.colon||B===Q.underscore||l1(B))return $.consume(B),W1;if(S(B))return V=t,Q1(B);if(l(B))return $.consume(B),t;return J1(B)}function W1(B){if(B===Q.dash||B===Q.dot||B===Q.colon||B===Q.underscore||k1(B))return $.consume(B),W1;return c1(B)}function c1(B){if(B===Q.equalsTo)return $.consume(B),X1;if(S(B))return V=c1,Q1(B);if(l(B))return $.consume(B),c1;return t(B)}function X1(B){if(B===Q.eof||B===Q.lessThan||B===Q.equalsTo||B===Q.greaterThan||B===Q.graveAccent)return X(B);if(B===Q.quotationMark||B===Q.apostrophe)return $.consume(B),W=B,k;if(S(B))return V=X1,Q1(B);if(l(B))return $.consume(B),X1;return $.consume(B),r}function k(B){if(B===W)return $.consume(B),W=void 0,n;if(B===Q.eof)return X(B);if(S(B))return V=k,Q1(B);return $.consume(B),k}function r(B){if(B===Q.eof||B===Q.quotationMark||B===Q.apostrophe||B===Q.lessThan||B===Q.equalsTo||B===Q.graveAccent)return X(B);if(B===Q.slash||B===Q.greaterThan||U1(B))return t(B);return $.consume(B),r}function n(B){if(B===Q.slash||B===Q.greaterThan||U1(B))return t(B);return X(B)}function J1(B){if(B===Q.greaterThan)return $.consume(B),$.exit(A.htmlTextData),$.exit(A.htmlText),G;return X(B)}function Q1(B){return w(V,"expected return state"),w(S(B),"expected eol"),$.exit(A.htmlTextData),$.enter(A.lineEnding),$.consume(B),$.exit(A.lineEnding),d1}function d1(B){return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),l(B)?c($,W0,A.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(B):W0(B)}function W0(B){return $.enter(A.htmlTextData),V(B)}}var G2={name:"labelEnd",resolveAll:xR,resolveTo:kR,tokenize:bR},jR={tokenize:vR},SR={tokenize:gR},IR={tokenize:hR};function xR($){let G=-1,X=[];while(++G<$.length){let Y=$[G][1];if(X.push($[G]),Y.type===A.labelImage||Y.type===A.labelLink||Y.type===A.labelEnd){let W=Y.type===A.labelImage?4:2;Y.type=A.data,G+=W}}if($.length!==X.length)z1($,0,$.length,X);return $}function kR($,G){let X=$.length,Y=0,W,q,V,J;while(X--)if(W=$[X][1],q){if(W.type===A.link||W.type===A.labelLink&&W._inactive)break;if($[X][0]==="enter"&&W.type===A.labelLink)W._inactive=!0}else if(V){if($[X][0]==="enter"&&(W.type===A.labelImage||W.type===A.labelLink)&&!W._balanced){if(q=X,W.type!==A.labelLink){Y=2;break}}}else if(W.type===A.labelEnd)V=X;w(q!==void 0,"`open` is supposed to be found"),w(V!==void 0,"`close` is supposed to be found");let U={type:$[q][1].type===A.labelLink?A.link:A.image,start:{...$[q][1].start},end:{...$[$.length-1][1].end}},R={type:A.label,start:{...$[q][1].start},end:{...$[V][1].end}},D={type:A.labelText,start:{...$[q+Y+2][1].end},end:{...$[V-2][1].start}};return J=[["enter",U,G],["enter",R,G]],J=x1(J,$.slice(q+1,q+Y+3)),J=x1(J,[["enter",D,G]]),w(G.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),J=x1(J,x2(G.parser.constructs.insideSpan.null,$.slice(q+Y+4,V-3),G)),J=x1(J,[["exit",D,G],$[V-2],$[V-1],["exit",R,G]]),J=x1(J,$.slice(V+1)),J=x1(J,[["exit",U,G]]),z1($,q,$.length,J),$}function bR($,G,X){let Y=this,W=Y.events.length,q,V;while(W--)if((Y.events[W][1].type===A.labelImage||Y.events[W][1].type===A.labelLink)&&!Y.events[W][1]._balanced){q=Y.events[W][1];break}return J;function J(F){if(w(F===Q.rightSquareBracket,"expected `]`"),!q)return X(F);if(q._inactive)return M(F);return V=Y.parser.defined.includes(O0(Y.sliceSerialize({start:q.end,end:Y.now()}))),$.enter(A.labelEnd),$.enter(A.labelMarker),$.consume(F),$.exit(A.labelMarker),$.exit(A.labelEnd),U}function U(F){if(F===Q.leftParenthesis)return $.attempt(jR,D,V?D:M)(F);if(F===Q.leftSquareBracket)return $.attempt(SR,D,V?R:M)(F);return V?D(F):M(F)}function R(F){return $.attempt(IR,D,M)(F)}function D(F){return G(F)}function M(F){return q._balanced=!0,X(F)}}function vR($,G,X){return Y;function Y(M){return w(M===Q.leftParenthesis,"expected left paren"),$.enter(A.resource),$.enter(A.resourceMarker),$.consume(M),$.exit(A.resourceMarker),W}function W(M){return U1(M)?$2($,q)(M):q(M)}function q(M){if(M===Q.rightParenthesis)return D(M);return O6($,V,J,A.resourceDestination,A.resourceDestinationLiteral,A.resourceDestinationLiteralMarker,A.resourceDestinationRaw,A.resourceDestinationString,T.linkResourceDestinationBalanceMax)(M)}function V(M){return U1(M)?$2($,U)(M):D(M)}function J(M){return X(M)}function U(M){if(M===Q.quotationMark||M===Q.apostrophe||M===Q.leftParenthesis)return N6($,R,X,A.resourceTitle,A.resourceTitleMarker,A.resourceTitleString)(M);return D(M)}function R(M){return U1(M)?$2($,D)(M):D(M)}function D(M){if(M===Q.rightParenthesis)return $.enter(A.resourceMarker),$.consume(M),$.exit(A.resourceMarker),$.exit(A.resource),G;return X(M)}}function gR($,G,X){let Y=this;return W;function W(J){return w(J===Q.leftSquareBracket,"expected left bracket"),P6.call(Y,$,q,V,A.reference,A.referenceMarker,A.referenceString)(J)}function q(J){return Y.parser.defined.includes(O0(Y.sliceSerialize(Y.events[Y.events.length-1][1]).slice(1,-1)))?G(J):X(J)}function V(J){return X(J)}}function hR($,G,X){return Y;function Y(q){return w(q===Q.leftSquareBracket,"expected left bracket"),$.enter(A.reference),$.enter(A.referenceMarker),$.consume(q),$.exit(A.referenceMarker),W}function W(q){if(q===Q.rightSquareBracket)return $.enter(A.referenceMarker),$.consume(q),$.exit(A.referenceMarker),$.exit(A.reference),G;return X(q)}}var G8={name:"labelStartImage",resolveAll:G2.resolveAll,tokenize:yR};function yR($,G,X){let Y=this;return W;function W(J){return w(J===Q.exclamationMark,"expected `!`"),$.enter(A.labelImage),$.enter(A.labelImageMarker),$.consume(J),$.exit(A.labelImageMarker),q}function q(J){if(J===Q.leftSquareBracket)return $.enter(A.labelMarker),$.consume(J),$.exit(A.labelMarker),$.exit(A.labelImage),V;return X(J)}function V(J){return J===Q.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?X(J):G(J)}}var X8={name:"labelStartLink",resolveAll:G2.resolveAll,tokenize:fR};function fR($,G,X){let Y=this;return W;function W(V){return w(V===Q.leftSquareBracket,"expected `[`"),$.enter(A.labelLink),$.enter(A.labelMarker),$.consume(V),$.exit(A.labelMarker),$.exit(A.labelLink),q}function q(V){return V===Q.caret&&"_hiddenFootnoteSupport"in Y.parser.constructs?X(V):G(V)}}var C4={name:"lineEnding",tokenize:mR};function mR($,G){return X;function X(Y){return w(S(Y),"expected eol"),$.enter(A.lineEnding),$.consume(Y),$.exit(A.lineEnding),c($,G,A.linePrefix)}}var X2={name:"thematicBreak",tokenize:uR};function uR($,G,X){let Y=0,W;return q;function q(R){return $.enter(A.thematicBreak),V(R)}function V(R){return w(R===Q.asterisk||R===Q.dash||R===Q.underscore,"expected `*`, `-`, or `_`"),W=R,J(R)}function J(R){if(R===W)return $.enter(A.thematicBreakSequence),U(R);if(Y>=T.thematicBreakMarkerCountMin&&(R===Q.eof||S(R)))return $.exit(A.thematicBreak),G(R);return X(R)}function U(R){if(R===W)return $.consume(R),Y++,U;return $.exit(A.thematicBreakSequence),l(R)?c($,J,A.whitespace)(R):J(R)}}var C1={continuation:{tokenize:cR},exit:iR,name:"list",tokenize:rR},pR={partial:!0,tokenize:nR},lR={partial:!0,tokenize:dR};function rR($,G,X){let Y=this,W=Y.events[Y.events.length-1],q=W&&W[1].type===A.linePrefix?W[2].sliceSerialize(W[1],!0).length:0,V=0;return J;function J(K){w(Y.containerState,"expected state");let z=Y.containerState.type||(K===Q.asterisk||K===Q.plusSign||K===Q.dash?A.listUnordered:A.listOrdered);if(z===A.listUnordered?!Y.containerState.marker||K===Y.containerState.marker:z4(K)){if(!Y.containerState.type)Y.containerState.type=z,$.enter(z,{_container:!0});if(z===A.listUnordered)return $.enter(A.listItemPrefix),K===Q.asterisk||K===Q.dash?$.check(X2,X,R)(K):R(K);if(!Y.interrupt||K===Q.digit1)return $.enter(A.listItemPrefix),$.enter(A.listItemValue),U(K)}return X(K)}function U(K){if(w(Y.containerState,"expected state"),z4(K)&&++V<T.listItemValueSizeMax)return $.consume(K),U;if((!Y.interrupt||V<2)&&(Y.containerState.marker?K===Y.containerState.marker:K===Q.rightParenthesis||K===Q.dot))return $.exit(A.listItemValue),R(K);return X(K)}function R(K){return w(Y.containerState,"expected state"),w(K!==Q.eof,"eof (`null`) is not a marker"),$.enter(A.listItemMarker),$.consume(K),$.exit(A.listItemMarker),Y.containerState.marker=Y.containerState.marker||K,$.check(E0,Y.interrupt?X:D,$.attempt(pR,F,M))}function D(K){return w(Y.containerState,"expected state"),Y.containerState.initialBlankLine=!0,q++,F(K)}function M(K){if(l(K))return $.enter(A.listItemPrefixWhitespace),$.consume(K),$.exit(A.listItemPrefixWhitespace),F;return X(K)}function F(K){return w(Y.containerState,"expected state"),Y.containerState.size=q+Y.sliceSerialize($.exit(A.listItemPrefix),!0).length,G(K)}}function cR($,G,X){let Y=this;return w(Y.containerState,"expected state"),Y.containerState._closeFlow=void 0,$.check(E0,W,q);function W(J){return w(Y.containerState,"expected state"),w(typeof Y.containerState.size==="number","expected size"),Y.containerState.furtherBlankLines=Y.containerState.furtherBlankLines||Y.containerState.initialBlankLine,c($,G,A.listItemIndent,Y.containerState.size+1)(J)}function q(J){if(w(Y.containerState,"expected state"),Y.containerState.furtherBlankLines||!l(J))return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,V(J);return Y.containerState.furtherBlankLines=void 0,Y.containerState.initialBlankLine=void 0,$.attempt(lR,G,V)(J)}function V(J){return w(Y.containerState,"expected state"),Y.containerState._closeFlow=!0,Y.interrupt=void 0,w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,$.attempt(C1,G,X),A.linePrefix,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(J)}}function dR($,G,X){let Y=this;return w(Y.containerState,"expected state"),w(typeof Y.containerState.size==="number","expected size"),c($,W,A.listItemIndent,Y.containerState.size+1);function W(q){w(Y.containerState,"expected state");let V=Y.events[Y.events.length-1];return V&&V[1].type===A.listItemIndent&&V[2].sliceSerialize(V[1],!0).length===Y.containerState.size?G(q):X(q)}}function iR($){w(this.containerState,"expected state"),w(typeof this.containerState.type==="string","expected type"),$.exit(this.containerState.type)}function nR($,G,X){let Y=this;return w(Y.parser.constructs.disable.null,"expected `disable.null` to be populated"),c($,W,A.listItemPrefixWhitespace,Y.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize+1);function W(q){let V=Y.events[Y.events.length-1];return!l(q)&&V&&V[1].type===A.listItemPrefixWhitespace?G(q):X(q)}}var z6={name:"setextUnderline",resolveTo:oR,tokenize:sR};function oR($,G){let X=$.length,Y,W,q;while(X--)if($[X][0]==="enter"){if($[X][1].type===A.content){Y=X;break}if($[X][1].type===A.paragraph)W=X}else{if($[X][1].type===A.content)$.splice(X,1);if(!q&&$[X][1].type===A.definition)q=X}w(W!==void 0,"expected a `text` index to be found"),w(Y!==void 0,"expected a `text` index to be found"),w($[Y][2]===G,"enter context should be same"),w($[$.length-1][2]===G,"enter context should be same");let V={type:A.setextHeading,start:{...$[Y][1].start},end:{...$[$.length-1][1].end}};if($[W][1].type=A.setextHeadingText,q)$.splice(W,0,["enter",V,G]),$.splice(q+1,0,["exit",$[Y][1],G]),$[Y][1].end={...$[q][1].end};else $[Y][1]=V;return $.push(["exit",V,G]),$}function sR($,G,X){let Y=this,W;return q;function q(R){let D=Y.events.length,M;w(R===Q.dash||R===Q.equalsTo,"expected `=` or `-`");while(D--)if(Y.events[D][1].type!==A.lineEnding&&Y.events[D][1].type!==A.linePrefix&&Y.events[D][1].type!==A.content){M=Y.events[D][1].type===A.paragraph;break}if(!Y.parser.lazy[Y.now().line]&&(Y.interrupt||M))return $.enter(A.setextHeadingLine),W=R,V(R);return X(R)}function V(R){return $.enter(A.setextHeadingLineSequence),J(R)}function J(R){if(R===W)return $.consume(R),J;return $.exit(A.setextHeadingLineSequence),l(R)?c($,U,A.lineSuffix)(R):U(R)}function U(R){if(R===Q.eof||S(R))return $.exit(A.setextHeadingLine),G(R);return X(R)}}var kG={tokenize:aR};function aR($){let G=this,X=$.attempt(E0,Y,$.attempt(this.parser.constructs.flowInitial,W,c($,$.attempt(this.parser.constructs.flow,W,$.attempt(n5,W)),A.linePrefix)));return X;function Y(q){if(w(q===Q.eof||S(q),"expected eol or eof"),q===Q.eof){$.consume(q);return}return $.enter(A.lineEndingBlank),$.consume(q),$.exit(A.lineEndingBlank),G.currentConstruct=void 0,X}function W(q){if(w(q===Q.eof||S(q),"expected eol or eof"),q===Q.eof){$.consume(q);return}return $.enter(A.lineEnding),$.consume(q),$.exit(A.lineEnding),G.currentConstruct=void 0,X}}var bG={resolveAll:yG()},vG=hG("string"),gG=hG("text");function hG($){return{resolveAll:yG($==="text"?tR:void 0),tokenize:G};function G(X){let Y=this,W=this.parser.constructs[$],q=X.attempt(W,V,J);return V;function V(D){return R(D)?q(D):J(D)}function J(D){if(D===Q.eof){X.consume(D);return}return X.enter(A.data),X.consume(D),U}function U(D){if(R(D))return X.exit(A.data),q(D);return X.consume(D),U}function R(D){if(D===Q.eof)return!0;let M=W[D],F=-1;if(M){w(Array.isArray(M),"expected `disable.null` to be populated");while(++F<M.length){let K=M[F];if(!K.previous||K.previous.call(Y,Y.previous))return!0}}return!1}}}function yG($){return G;function G(X,Y){let W=-1,q;while(++W<=X.length)if(q===void 0){if(X[W]&&X[W][1].type===A.data)q=W,W++}else if(!X[W]||X[W][1].type!==A.data){if(W!==q+2)X[q][1].end=X[W-1][1].end,X.splice(q+2,W-q-2),W=q+2;q=void 0}return $?$(X,Y):X}}function tR($,G){let X=0;while(++X<=$.length)if((X===$.length||$[X][1].type===A.lineEnding)&&$[X-1][1].type===A.data){let Y=$[X-1][1],W=G.sliceStream(Y),q=W.length,V=-1,J=0,U;while(q--){let R=W[q];if(typeof R==="string"){V=R.length;while(R.charCodeAt(V-1)===Q.space)J++,V--;if(V)break;V=-1}else if(R===Q.horizontalTab)U=!0,J++;else if(R===Q.virtualSpace);else{q++;break}}if(G._contentTypeTextTrailing&&X===$.length)J=0;if(J){let R={type:X===$.length||U||J<T.hardBreakPrefixSizeMin?A.lineSuffix:A.hardBreakTrailing,start:{_bufferIndex:q?V:Y.start._bufferIndex+V,_index:Y.start._index+q,line:Y.end.line,column:Y.end.column-J,offset:Y.end.offset-J},end:{...Y.end}};if(Y.end={...R.start},Y.start.offset===Y.end.offset)Object.assign(Y,R);else $.splice(X,0,["enter",R,G],["exit",R,G]),X+=2}X++}return $}var Y8={};t9(Y8,{text:()=>WD,string:()=>YD,insideSpan:()=>qD,flowInitial:()=>GD,flow:()=>XD,document:()=>eR,disable:()=>JD,contentInitial:()=>$D,attentionMarkers:()=>VD});var eR={[Q.asterisk]:C1,[Q.plusSign]:C1,[Q.dash]:C1,[Q.digit0]:C1,[Q.digit1]:C1,[Q.digit2]:C1,[Q.digit3]:C1,[Q.digit4]:C1,[Q.digit5]:C1,[Q.digit6]:C1,[Q.digit7]:C1,[Q.digit8]:C1,[Q.digit9]:C1,[Q.greaterThan]:Q6},$D={[Q.leftSquareBracket]:o5},GD={[Q.horizontalTab]:_4,[Q.virtualSpace]:_4,[Q.space]:_4},XD={[Q.numberSign]:a5,[Q.asterisk]:X2,[Q.dash]:[z6,X2],[Q.lessThan]:e5,[Q.equalsTo]:z6,[Q.underscore]:X2,[Q.graveAccent]:w6,[Q.tilde]:w6},YD={[Q.ampersand]:F6,[Q.backslash]:K6},WD={[Q.carriageReturn]:C4,[Q.lineFeed]:C4,[Q.carriageReturnLineFeed]:C4,[Q.exclamationMark]:G8,[Q.ampersand]:F6,[Q.asterisk]:Z4,[Q.lessThan]:[c5,$8],[Q.leftSquareBracket]:X8,[Q.backslash]:[s5,K6],[Q.rightSquareBracket]:G2,[Q.underscore]:Z4,[Q.graveAccent]:d5},qD={null:[Z4,bG]},VD={null:[Q.asterisk,Q.underscore]},JD={null:[]};var $3=$6(eG(),1);var q2=$3.default("micromark");function G3($,G,X){let Y={_bufferIndex:-1,_index:0,line:X&&X.line||1,column:X&&X.column||1,offset:X&&X.offset||0},W={},q=[],V=[],J=[],U=!0,R={attempt:t(G1),check:t(q1),consume:e,enter:Y1,exit:_,interrupt:t(q1,{interrupt:!0})},D={code:Q.eof,containerState:{},defineSkip:L,events:[],now:C,parser:$,previous:Q.eof,sliceSerialize:z,sliceStream:Z,write:K},M=G.tokenize.call(D,R),F;if(G.resolveAll)q.push(G);return D;function K(k){if(V=x1(V,k),v(),V[V.length-1]!==Q.eof)return[];return W1(G,0),D.events=x2(q,D.events,D),D.events}function z(k,r){return cD(Z(k),r)}function Z(k){return rD(V,k)}function C(){let{_bufferIndex:k,_index:r,line:n,column:J1,offset:Q1}=Y;return{_bufferIndex:k,_index:r,line:n,column:J1,offset:Q1}}function L(k){W[k.line]=k.column,X1(),q2("position: define skip: `%j`",Y)}function v(){let k;while(Y._index<V.length){let r=V[Y._index];if(typeof r==="string"){if(k=Y._index,Y._bufferIndex<0)Y._bufferIndex=0;while(Y._index===k&&Y._bufferIndex<r.length)h(r.charCodeAt(Y._bufferIndex))}else h(r)}}function h(k){w(U===!0,"expected character to be consumed"),U=void 0,q2("main: passing `%s` to %s",k,M&&M.name),F=k,w(typeof M==="function","expected state"),M=M(k)}function e(k){if(w(k===F,"expected given code to equal expected code"),q2("consume: `%s`",k),w(U===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),w(k===null?D.events.length===0||D.events[D.events.length-1][0]==="exit":D.events[D.events.length-1][0]==="enter","expected last token to be open"),S(k))Y.line++,Y.column=1,Y.offset+=k===Q.carriageReturnLineFeed?2:1,X1(),q2("position: after eol: `%j`",Y);else if(k!==Q.virtualSpace)Y.column++,Y.offset++;if(Y._bufferIndex<0)Y._index++;else if(Y._bufferIndex++,Y._bufferIndex===V[Y._index].length)Y._bufferIndex=-1,Y._index++;D.previous=k,U=!0}function Y1(k,r){let n=r||{};return n.type=k,n.start=C(),w(typeof k==="string","expected string type"),w(k.length>0,"expected non-empty string"),q2("enter: `%s`",k),D.events.push(["enter",n,D]),J.push(n),n}function _(k){w(typeof k==="string","expected string type"),w(k.length>0,"expected non-empty string");let r=J.pop();return w(r,"cannot close w/o open tokens"),r.end=C(),w(k===r.type,"expected exit token to match current token"),w(!(r.start._index===r.end._index&&r.start._bufferIndex===r.end._bufferIndex),"expected non-empty token (`"+k+"`)"),q2("exit: `%s`",r.type),D.events.push(["exit",r,D]),r}function G1(k,r){W1(k,r.from)}function q1(k,r){r.restore()}function t(k,r){return n;function n(J1,Q1,d1){let W0,B,i1,A0;return Array.isArray(J1)?m1(J1):("tokenize"in J1)?m1([J1]):O(J1);function O(K1){return R4;function R4(Q0){let c0=Q0!==null&&K1[Q0],O2=Q0!==null&&K1.null,P5=[...Array.isArray(c0)?c0:c0?[c0]:[],...Array.isArray(O2)?O2:O2?[O2]:[]];return m1(P5)(Q0)}}function m1(K1){if(W0=K1,B=0,K1.length===0)return w(d1,"expected `bogusState` to be given"),d1;return r0(K1[B])}function r0(K1){return R4;function R4(Q0){if(A0=c1(),i1=K1,!K1.partial)D.currentConstruct=K1;if(w(D.parser.constructs.disable.null,"expected `disable.null` to be populated"),K1.name&&D.parser.constructs.disable.null.includes(K1.name))return e4(Q0);return K1.tokenize.call(r?Object.assign(Object.create(D),r):D,R,O5,e4)(Q0)}}function O5(K1){return w(K1===F,"expected code"),U=!0,k(i1,A0),Q1}function e4(K1){if(w(K1===F,"expected code"),U=!0,A0.restore(),++B<W0.length)return r0(W0[B]);return d1}}}function W1(k,r){if(k.resolveAll&&!q.includes(k))q.push(k);if(k.resolve)z1(D.events,r,D.events.length-r,k.resolve(D.events.slice(r),D));if(k.resolveTo)D.events=k.resolveTo(D.events,D);w(k.partial||D.events.length===0||D.events[D.events.length-1][0]==="exit","expected last token to end")}function c1(){let k=C(),r=D.previous,n=D.currentConstruct,J1=D.events.length,Q1=Array.from(J);return{from:J1,restore:d1};function d1(){Y=k,D.previous=r,D.currentConstruct=n,D.events.length=J1,J=Q1,X1(),q2("position: restore: `%j`",Y)}}function X1(){if(Y.line in W&&Y.column<2)Y.column=W[Y.line],Y.offset+=W[Y.line]-1}}function rD($,G){let X=G.start._index,Y=G.start._bufferIndex,W=G.end._index,q=G.end._bufferIndex,V;if(X===W)w(q>-1,"expected non-negative end buffer index"),w(Y>-1,"expected non-negative start buffer index"),V=[$[X].slice(Y,q)];else{if(V=$.slice(X,W),Y>-1){let J=V[0];if(typeof J==="string")V[0]=J.slice(Y);else w(Y===0,"expected `startBufferIndex` to be `0`"),V.shift()}if(q>0)V.push($[W].slice(0,q))}return V}function cD($,G){let X=-1,Y=[],W;while(++X<$.length){let q=$[X],V;if(typeof q==="string")V=q;else switch(q){case Q.carriageReturn:{V=p1.cr;break}case Q.lineFeed:{V=p1.lf;break}case Q.carriageReturnLineFeed:{V=p1.cr+p1.lf;break}case Q.horizontalTab:{V=G?p1.space:p1.ht;break}case Q.virtualSpace:{if(!G&&W)continue;V=p1.space;break}default:w(typeof q==="number","expected number"),V=String.fromCharCode(q)}W=q===Q.horizontalTab,Y.push(V)}return Y.join("")}function H8($){let Y={constructs:PG([Y8,...($||{}).extensions||[]]),content:W(CG),defined:[],document:W(EG),flow:W(kG),lazy:{},string:W(vG),text:W(gG)};return Y;function W(q){return V;function V(J){return G3(Y,q,J)}}}function U8($){while(!B6($));return $}var X3=/[\0\t\n\r]/g;function R8(){let $=1,G="",X=!0,Y;return W;function W(q,V,J){let U=[],R,D,M,F,K;if(q=G+(typeof q==="string"?q.toString():new TextDecoder(V||void 0).decode(q)),M=0,G="",X){if(q.charCodeAt(0)===Q.byteOrderMarker)M++;X=void 0}while(M<q.length){if(X3.lastIndex=M,R=X3.exec(q),F=R&&R.index!==void 0?R.index:q.length,K=q.charCodeAt(F),!R){G=q.slice(M);break}if(K===Q.lf&&M===F&&Y)U.push(Q.carriageReturnLineFeed),Y=void 0;else{if(Y)U.push(Q.carriageReturn),Y=void 0;if(M<F)U.push(q.slice(M,F)),$+=F-M;switch(K){case Q.nul:{U.push(Q.replacementCharacter),$++;break}case Q.ht:{D=Math.ceil($/T.tabSize)*T.tabSize,U.push(Q.horizontalTab);while($++<D)U.push(Q.virtualSpace);break}case Q.lf:{U.push(Q.lineFeed),$=1;break}default:Y=!0,$=1}}M=F+1}if(J){if(Y)U.push(Q.carriageReturn);if(G)U.push(G);U.push(Q.eof)}return U}}var dD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T6($){return $.replace(dD,iD)}function iD($,G,X){if(G)return G;if(X.charCodeAt(0)===Q.numberSign){let W=X.charCodeAt(1),q=W===Q.lowercaseX||W===Q.uppercaseX;return A6(X.slice(q?2:1),q?T.numericBaseHexadecimal:T.numericBaseDecimal)}return S2(X)||$}function S0($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return Y3($.position);if("start"in $||"end"in $)return Y3($);if("line"in $||"column"in $)return D8($);return""}function D8($){return W3($&&$.line)+":"+W3($&&$.column)}function Y3($){return D8($&&$.start)+"-"+D8($&&$.end)}function W3($){return $&&typeof $==="number"?$:1}var V3={}.hasOwnProperty;function M8($,G,X){if(G&&typeof G==="object")X=G,G=void 0;return nD(X)(U8(H8(X).document().write(R8()($,G,!0))))}function nD($){let G={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:q(s9),autolinkProtocol:t,autolinkEmail:t,atxHeading:q(i9),blockQuote:q(Q0),characterEscape:t,characterReference:t,codeFenced:q(c0),codeFencedFenceInfo:V,codeFencedFenceMeta:V,codeIndented:q(c0,V),codeText:q(O2,V),codeTextData:t,data:t,codeFlowValue:t,definition:q(P5),definitionDestinationString:V,definitionLabelString:V,definitionTitleString:V,emphasis:q(Pq),hardBreakEscape:q(n9),hardBreakTrailing:q(n9),htmlFlow:q(o9,V),htmlFlowData:t,htmlText:q(o9,V),htmlTextData:t,image:q(Nq),label:V,link:q(s9),listItem:q(zq),listItemValue:F,listOrdered:q(a9,M),listUnordered:q(a9),paragraph:q(Zq),reference:O,referenceString:V,resourceDestinationString:V,resourceTitleString:V,setextHeading:q(i9),strong:q(_q),thematicBreak:q(Cq)},exit:{atxHeading:U(),atxHeadingSequence:Y1,autolink:U(),autolinkEmail:R4,autolinkProtocol:K1,blockQuote:U(),characterEscapeValue:W1,characterReferenceMarkerHexadecimal:r0,characterReferenceMarkerNumeric:r0,characterReferenceValue:O5,characterReference:e4,codeFenced:U(C),codeFencedFence:Z,codeFencedFenceInfo:K,codeFencedFenceMeta:z,codeFlowValue:W1,codeIndented:U(L),codeText:U(n),codeTextData:W1,data:W1,definition:U(),definitionDestinationString:e,definitionLabelString:v,definitionTitleString:h,emphasis:U(),hardBreakEscape:U(X1),hardBreakTrailing:U(X1),htmlFlow:U(k),htmlFlowData:W1,htmlText:U(r),htmlTextData:W1,image:U(Q1),label:W0,labelText:d1,lineEnding:c1,link:U(J1),listItem:U(),listOrdered:U(),listUnordered:U(),paragraph:U(),referenceString:m1,resourceDestinationString:B,resourceTitleString:i1,resource:A0,setextHeading:U(q1),setextHeadingLineSequence:G1,setextHeadingText:_,strong:U(),thematicBreak:U()}};J3(G,($||{}).mdastExtensions||[]);let X={};return Y;function Y(P){let N={type:"root",children:[]},b={stack:[N],tokenStack:[],config:G,enter:J,exit:R,buffer:V,resume:D,data:X},s=[],$1=-1;while(++$1<P.length)if(P[$1][1].type===A.listOrdered||P[$1][1].type===A.listUnordered)if(P[$1][0]==="enter")s.push($1);else{let g1=s.pop();w(typeof g1==="number","expected list to be open"),$1=W(P,g1,$1)}$1=-1;while(++$1<P.length){let g1=G[P[$1][0]];if(V3.call(g1,P[$1][1].type))g1[P[$1][1].type].call(Object.assign({sliceSerialize:P[$1][2].sliceSerialize},b),P[$1][1])}if(b.tokenStack.length>0){let g1=b.tokenStack[b.tokenStack.length-1];(g1[1]||q3).call(b,void 0,g1[0])}N.position={start:I0(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:I0(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},$1=-1;while(++$1<G.transforms.length)N=G.transforms[$1](N)||N;return N}function W(P,N,b){let s=N-1,$1=-1,g1=!1,d0,K0,D4,M4;while(++s<=b){let u1=P[s];switch(u1[1].type){case A.listUnordered:case A.listOrdered:case A.blockQuote:{if(u1[0]==="enter")$1++;else $1--;M4=void 0;break}case A.lineEndingBlank:{if(u1[0]==="enter"){if(d0&&!M4&&!$1&&!D4)D4=s;M4=void 0}break}case A.linePrefix:case A.listItemValue:case A.listItemMarker:case A.listItemPrefix:case A.listItemPrefixWhitespace:break;default:M4=void 0}if(!$1&&u1[0]==="enter"&&u1[1].type===A.listItemPrefix||$1===-1&&u1[0]==="exit"&&(u1[1].type===A.listUnordered||u1[1].type===A.listOrdered)){if(d0){let P2=s;K0=void 0;while(P2--){let F0=P[P2];if(F0[1].type===A.lineEnding||F0[1].type===A.lineEndingBlank){if(F0[0]==="exit")continue;if(K0)P[K0][1].type=A.lineEndingBlank,g1=!0;F0[1].type=A.lineEnding,K0=P2}else if(F0[1].type===A.linePrefix||F0[1].type===A.blockQuotePrefix||F0[1].type===A.blockQuotePrefixWhitespace||F0[1].type===A.blockQuoteMarker||F0[1].type===A.listItemIndent);else break}if(D4&&(!K0||D4<K0))d0._spread=!0;d0.end=Object.assign({},K0?P[K0][1].start:u1[1].end),P.splice(K0||s,0,["exit",d0,u1[2]]),s++,b++}if(u1[1].type===A.listItemPrefix){let P2={type:"listItem",_spread:!1,start:Object.assign({},u1[1].start),end:void 0};d0=P2,P.splice(s,0,["enter",P2,u1[2]]),s++,b++,D4=void 0,M4=!0}}}return P[N][1]._spread=g1,b}function q(P,N){return b;function b(s){if(J.call(this,P(s),s),N)N.call(this,s)}}function V(){this.stack.push({type:"fragment",children:[]})}function J(P,N,b){let s=this.stack[this.stack.length-1];w(s,"expected `parent`"),w("children"in s,"expected `parent`"),s.children.push(P),this.stack.push(P),this.tokenStack.push([N,b||void 0]),P.position={start:I0(N.start),end:void 0}}function U(P){return N;function N(b){if(P)P.call(this,b);R.call(this,b)}}function R(P,N){let b=this.stack.pop();w(b,"expected `node`");let s=this.tokenStack.pop();if(!s)throw Error("Cannot close `"+P.type+"` ("+S0({start:P.start,end:P.end})+"): it\u2019s not open");else if(s[0].type!==P.type)if(N)N.call(this,P,s[0]);else(s[1]||q3).call(this,P,s[0]);w(b.type!=="fragment","unexpected fragment `exit`ed"),w(b.position,"expected `position` to be defined"),b.position.end=I0(P.end)}function D(){return e0(this.stack.pop())}function M(){this.data.expectingFirstListItemValue=!0}function F(P){if(this.data.expectingFirstListItemValue){let N=this.stack[this.stack.length-2];w(N,"expected nodes on stack"),w(N.type==="list","expected list on stack"),N.start=Number.parseInt(this.sliceSerialize(P),T.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function K(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.lang=P}function z(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.meta=P}function Z(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function C(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="code","expected code on stack"),N.value=P.replace(/(\r?\n|\r)$/g,"")}function v(P){let N=this.resume(),b=this.stack[this.stack.length-1];w(b,"expected node on stack"),w(b.type==="definition","expected definition on stack"),b.label=N,b.identifier=O0(this.sliceSerialize(P)).toLowerCase()}function h(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="definition","expected definition on stack"),N.title=P}function e(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="definition","expected definition on stack"),N.url=P}function Y1(P){let N=this.stack[this.stack.length-1];if(w(N,"expected node on stack"),w(N.type==="heading","expected heading on stack"),!N.depth){let b=this.sliceSerialize(P).length;w(b===1||b===2||b===3||b===4||b===5||b===6,"expected `depth` between `1` and `6`"),N.depth=b}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function G1(P){let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="heading","expected heading on stack"),N.depth=this.sliceSerialize(P).codePointAt(0)===Q.equalsTo?1:2}function q1(){this.data.setextHeadingSlurpLineEnding=void 0}function t(P){let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w("children"in N,"expected parent on stack");let b=N.children,s=b[b.length-1];if(!s||s.type!=="text")s=Lq(),s.position={start:I0(P.start),end:void 0},b.push(s);this.stack.push(s)}function W1(P){let N=this.stack.pop();w(N,"expected a `node` to be on the stack"),w("value"in N,"expected a `literal` to be on the stack"),w(N.position,"expected `node` to have an open position"),N.value+=this.sliceSerialize(P),N.position.end=I0(P.end)}function c1(P){let N=this.stack[this.stack.length-1];if(w(N,"expected `node`"),this.data.atHardBreak){w("children"in N,"expected `parent`");let b=N.children[N.children.length-1];w(b.position,"expected tail to have a starting position"),b.position.end=I0(P.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&G.canContainEols.includes(N.type))t.call(this,P),W1.call(this,P)}function X1(){this.data.atHardBreak=!0}function k(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="html","expected html on stack"),N.value=P}function r(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="html","expected html on stack"),N.value=P}function n(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="inlineCode","expected inline code on stack"),N.value=P}function J1(){let P=this.stack[this.stack.length-1];if(w(P,"expected node on stack"),w(P.type==="link","expected link on stack"),this.data.inReference){let N=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=N,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Q1(){let P=this.stack[this.stack.length-1];if(w(P,"expected node on stack"),w(P.type==="image","expected image on stack"),this.data.inReference){let N=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=N,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function d1(P){let N=this.sliceSerialize(P),b=this.stack[this.stack.length-2];w(b,"expected ancestor on stack"),w(b.type==="image"||b.type==="link","expected image or link on stack"),b.label=T6(N),b.identifier=O0(N).toLowerCase()}function W0(){let P=this.stack[this.stack.length-1];w(P,"expected node on stack"),w(P.type==="fragment","expected fragment on stack");let N=this.resume(),b=this.stack[this.stack.length-1];if(w(b,"expected node on stack"),w(b.type==="image"||b.type==="link","expected image or link on stack"),this.data.inReference=!0,b.type==="link"){let s=P.children;b.children=s}else b.alt=N}function B(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="image"||N.type==="link","expected image or link on stack"),N.url=P}function i1(){let P=this.resume(),N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="image"||N.type==="link","expected image or link on stack"),N.title=P}function A0(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function m1(P){let N=this.resume(),b=this.stack[this.stack.length-1];w(b,"expected node on stack"),w(b.type==="image"||b.type==="link","expected image reference or link reference on stack"),b.label=N,b.identifier=O0(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function r0(P){w(P.type==="characterReferenceMarkerNumeric"||P.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=P.type}function O5(P){let N=this.sliceSerialize(P),b=this.data.characterReferenceType,s;if(b)s=A6(N,b===A.characterReferenceMarkerNumeric?T.numericBaseDecimal:T.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{let g1=S2(N);w(g1!==!1,"expected reference to decode"),s=g1}let $1=this.stack[this.stack.length-1];w($1,"expected `node`"),w("value"in $1,"expected `node.value`"),$1.value+=s}function e4(P){let N=this.stack.pop();w(N,"expected `node`"),w(N.position,"expected `node.position`"),N.position.end=I0(P.end)}function K1(P){W1.call(this,P);let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="link","expected link on stack"),N.url=this.sliceSerialize(P)}function R4(P){W1.call(this,P);let N=this.stack[this.stack.length-1];w(N,"expected node on stack"),w(N.type==="link","expected link on stack"),N.url="mailto:"+this.sliceSerialize(P)}function Q0(){return{type:"blockquote",children:[]}}function c0(){return{type:"code",lang:null,meta:null,value:""}}function O2(){return{type:"inlineCode",value:""}}function P5(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pq(){return{type:"emphasis",children:[]}}function i9(){return{type:"heading",depth:0,children:[]}}function n9(){return{type:"break"}}function o9(){return{type:"html",value:""}}function Nq(){return{type:"image",title:null,url:"",alt:null}}function s9(){return{type:"link",title:null,url:"",children:[]}}function a9(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function zq(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Zq(){return{type:"paragraph",children:[]}}function _q(){return{type:"strong",children:[]}}function Lq(){return{type:"text",value:""}}function Cq(){return{type:"thematicBreak"}}}function I0($){return{line:$.line,column:$.column,offset:$.offset}}function J3($,G){let X=-1;while(++X<G.length){let Y=G[X];if(Array.isArray(Y))J3($,Y);else oD($,Y)}}function oD($,G){let X;for(X in G)if(V3.call(G,X))switch(X){case"canContainEols":{let Y=G[X];if(Y)$[X].push(...Y);break}case"transforms":{let Y=G[X];if(Y)$[X].push(...Y);break}case"enter":case"exit":{let Y=G[X];if(Y)Object.assign($[X],Y);break}}}function q3($,G){if($)throw Error("Cannot close `"+$.type+"` ("+S0({start:$.start,end:$.end})+"): a different token (`"+G.type+"`, "+S0({start:G.start,end:G.end})+") is open");else throw Error("Cannot close document, a token (`"+G.type+"`, "+S0({start:G.start,end:G.end})+") is still open")}function E6($){let G=this;G.parser=X;function X(Y){return M8(Y,{...G.data("settings"),...$,extensions:G.data("micromarkExtensions")||[],mdastExtensions:G.data("fromMarkdownExtensions")||[]})}}var H3={}.hasOwnProperty;function U3($,G){let X=G||{};function Y(W,...q){let{invalid:V,handlers:J}=Y;if(W&&H3.call(W,$)){let U=String(W[$]);V=H3.call(J,U)?J[U]:Y.unknown}if(V)return V.call(this,W,...q)}return Y.handlers=X.handlers||{},Y.invalid=X.invalid,Y.unknown=X.unknown,Y}var sD={}.hasOwnProperty;function A8($,G){let X=-1,Y;if(G.extensions)while(++X<G.extensions.length)A8($,G.extensions[X]);for(Y in G)if(sD.call(G,Y))switch(Y){case"extensions":break;case"unsafe":{R3($[Y],G[Y]);break}case"join":{R3($[Y],G[Y]);break}case"handlers":{aD($[Y],G[Y]);break}default:$.options[Y]=G[Y]}return $}function R3($,G){if(G)$.push(...G)}function aD($,G){if(G)Object.assign($,G)}function D3($,G,X,Y){let W=X.enter("blockquote"),q=X.createTracker(Y);q.move("> "),q.shift(2);let V=X.indentLines(X.containerFlow($,q.current()),tD);return W(),V}function tD($,G,X){return">"+(X?"":" ")+$}function j6($,G){return M3($,G.inConstruct,!0)&&!M3($,G.notInConstruct,!1)}function M3($,G,X){if(typeof G==="string")G=[G];if(!G||G.length===0)return X;let Y=-1;while(++Y<G.length)if($.includes(G[Y]))return!0;return!1}function Q8($,G,X,Y){let W=-1;while(++W<X.unsafe.length)if(X.unsafe[W].character===`
|
|
60
|
+
`&&j6(X.stack,X.unsafe[W]))return/[ \t]/.test(Y.before)?"":" ";return"\\\n"}function A3($,G){let X=String($),Y=X.indexOf(G),W=Y,q=0,V=0;if(typeof G!=="string")throw TypeError("Expected substring");while(Y!==-1){if(Y===W){if(++q>V)V=q}else q=1;W=Y+G.length,Y=X.indexOf(G,W)}return V}function E4($,G){return Boolean(G.options.fences===!1&&$.value&&!$.lang&&/[^ \r\n]/.test($.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test($.value))}function Q3($){let G=$.options.fence||"`";if(G!=="`"&&G!=="~")throw Error("Cannot serialize code with `"+G+"` for `options.fence`, expected `` ` `` or `~`");return G}function K3($,G,X,Y){let W=Q3(X),q=$.value||"",V=W==="`"?"GraveAccent":"Tilde";if(E4($,X)){let M=X.enter("codeIndented"),F=X.indentLines(q,eD);return M(),F}let J=X.createTracker(Y),U=W.repeat(Math.max(A3(q,W)+1,3)),R=X.enter("codeFenced"),D=J.move(U);if($.lang){let M=X.enter(`codeFencedLang${V}`);D+=J.move(X.safe($.lang,{before:D,after:" ",encode:["`"],...J.current()})),M()}if($.lang&&$.meta){let M=X.enter(`codeFencedMeta${V}`);D+=J.move(" "),D+=J.move(X.safe($.meta,{before:D,after:`
|
|
61
61
|
`,encode:["`"],...J.current()})),M()}if(D+=J.move(`
|
|
62
62
|
`),q)D+=J.move(q+`
|
|
63
63
|
`);return D+=J.move(U),R(),D}function eD($,G,X){return(X?"":" ")+$}function g2($){let G=$.options.quote||'"';if(G!=='"'&&G!=="'")throw Error("Cannot serialize title with `"+G+"` for `options.quote`, expected `\"`, or `'`");return G}function F3($,G,X,Y){let W=g2(X),q=W==='"'?"Quote":"Apostrophe",V=X.enter("definition"),J=X.enter("label"),U=X.createTracker(Y),R=U.move("[");if(R+=U.move(X.safe(X.associationId($),{before:R,after:"]",...U.current()})),R+=U.move("]: "),J(),!$.url||/[\0- \u007F]/.test($.url))J=X.enter("destinationLiteral"),R+=U.move("<"),R+=U.move(X.safe($.url,{before:R,after:">",...U.current()})),R+=U.move(">");else J=X.enter("destinationRaw"),R+=U.move(X.safe($.url,{before:R,after:$.title?" ":`
|
|
64
|
-
`,...U.current()}));if(J(),$.title)J=X.enter(`title${q}`),R+=U.move(" "+W),R+=U.move(X.safe($.title,{before:R,after:W,...U.current()})),R+=U.move(W),J();return V(),R}function w3($){let G=$.options.emphasis||"*";if(G!=="*"&&G!=="_")throw Error("Cannot serialize emphasis with `"+G+"` for `options.emphasis`, expected `*`, or `_`");return G}function r1($){return"&#x"+$.toString(16).toUpperCase()+";"}function h2($,G,X){let Y=I2($),W=I2(G);if(Y===void 0)return W===void 0?X==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:W===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(Y===1)return W===void 0?{inside:!1,outside:!1}:W===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return W===void 0?{inside:!1,outside:!1}:W===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}K8.peek=$M;function K8($,G,X,Y){let W=w3(X),q=X.enter("emphasis"),V=X.createTracker(Y),J=V.move(W),U=V.move(X.containerPhrasing($,{after:W,before:J,...V.current()})),R=U.charCodeAt(0),D=h2(Y.before.charCodeAt(Y.before.length-1),R,W);if(D.inside)U=r1(R)+U.slice(1);let M=U.charCodeAt(U.length-1),F=h2(Y.after.charCodeAt(0),M,W);if(F.inside)U=U.slice(0,-1)+r1(M);let K=V.move(W);return q(),X.attentionEncodeSurroundingInfo={after:F.outside,before:D.outside},J+U+K}function $M($,G,X){return X.options.emphasis||"*"}var y2=function($){if($===null||$===void 0)return WM;if(typeof $==="function")return S6($);if(typeof $==="object")return Array.isArray($)?GM($):XM($);if(typeof $==="string")return YM($);throw Error("Expected function, string, or object as test")};function GM($){let G=[],X=-1;while(++X<$.length)G[X]=y2($[X]);return S6(Y);function Y(...W){let q=-1;while(++q<G.length)if(G[q].apply(this,W))return!0;return!1}}function XM($){let G=$;return S6(X);function X(Y){let W=Y,q;for(q in $)if(W[q]!==G[q])return!1;return!0}}function YM($){return S6(G);function G(X){return X&&X.type===$}}function S6($){return G;function G(X,Y,W){return Boolean(qM(X)&&$.call(this,X,typeof Y==="number"?Y:void 0,W||void 0))}}function WM(){return!0}function qM($){return $!==null&&typeof $==="object"&&"type"in $}function B3($){return"\x1B[33m"+$+"\x1B[39m"}var O3=[],I6=!0,V2=!1,x6="skip";function F8($,G,X,Y){let W;if(typeof G==="function"&&typeof X!=="function")Y=X,X=G;else W=G;let q=y2(W),V=Y?-1:1;J($,void 0,[])();function J(U,R,D){let M=U&&typeof U==="object"?U:{};if(typeof M.type==="string"){let K=typeof M.tagName==="string"?M.tagName:typeof M.name==="string"?M.name:void 0;Object.defineProperty(F,"name",{value:"node ("+B3(U.type+(K?"<"+K+">":""))+")"})}return F;function F(){let K=O3,Z,
|
|
64
|
+
`,...U.current()}));if(J(),$.title)J=X.enter(`title${q}`),R+=U.move(" "+W),R+=U.move(X.safe($.title,{before:R,after:W,...U.current()})),R+=U.move(W),J();return V(),R}function w3($){let G=$.options.emphasis||"*";if(G!=="*"&&G!=="_")throw Error("Cannot serialize emphasis with `"+G+"` for `options.emphasis`, expected `*`, or `_`");return G}function r1($){return"&#x"+$.toString(16).toUpperCase()+";"}function h2($,G,X){let Y=I2($),W=I2(G);if(Y===void 0)return W===void 0?X==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:W===1?{inside:!0,outside:!0}:{inside:!1,outside:!0};if(Y===1)return W===void 0?{inside:!1,outside:!1}:W===1?{inside:!0,outside:!0}:{inside:!1,outside:!1};return W===void 0?{inside:!1,outside:!1}:W===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}K8.peek=$M;function K8($,G,X,Y){let W=w3(X),q=X.enter("emphasis"),V=X.createTracker(Y),J=V.move(W),U=V.move(X.containerPhrasing($,{after:W,before:J,...V.current()})),R=U.charCodeAt(0),D=h2(Y.before.charCodeAt(Y.before.length-1),R,W);if(D.inside)U=r1(R)+U.slice(1);let M=U.charCodeAt(U.length-1),F=h2(Y.after.charCodeAt(0),M,W);if(F.inside)U=U.slice(0,-1)+r1(M);let K=V.move(W);return q(),X.attentionEncodeSurroundingInfo={after:F.outside,before:D.outside},J+U+K}function $M($,G,X){return X.options.emphasis||"*"}var y2=function($){if($===null||$===void 0)return WM;if(typeof $==="function")return S6($);if(typeof $==="object")return Array.isArray($)?GM($):XM($);if(typeof $==="string")return YM($);throw Error("Expected function, string, or object as test")};function GM($){let G=[],X=-1;while(++X<$.length)G[X]=y2($[X]);return S6(Y);function Y(...W){let q=-1;while(++q<G.length)if(G[q].apply(this,W))return!0;return!1}}function XM($){let G=$;return S6(X);function X(Y){let W=Y,q;for(q in $)if(W[q]!==G[q])return!1;return!0}}function YM($){return S6(G);function G(X){return X&&X.type===$}}function S6($){return G;function G(X,Y,W){return Boolean(qM(X)&&$.call(this,X,typeof Y==="number"?Y:void 0,W||void 0))}}function WM(){return!0}function qM($){return $!==null&&typeof $==="object"&&"type"in $}function B3($){return"\x1B[33m"+$+"\x1B[39m"}var O3=[],I6=!0,V2=!1,x6="skip";function F8($,G,X,Y){let W;if(typeof G==="function"&&typeof X!=="function")Y=X,X=G;else W=G;let q=y2(W),V=Y?-1:1;J($,void 0,[])();function J(U,R,D){let M=U&&typeof U==="object"?U:{};if(typeof M.type==="string"){let K=typeof M.tagName==="string"?M.tagName:typeof M.name==="string"?M.name:void 0;Object.defineProperty(F,"name",{value:"node ("+B3(U.type+(K?"<"+K+">":""))+")"})}return F;function F(){let K=O3,z,Z,C;if(!G||q(U,R,D[D.length-1]||void 0)){if(K=VM(X(U,D)),K[0]===V2)return K}if("children"in U&&U.children){let L=U;if(L.children&&K[0]!==x6){Z=(Y?L.children.length:-1)+V,C=D.concat(L);while(Z>-1&&Z<L.children.length){let v=L.children[Z];if(z=J(v,Z,C)(),z[0]===V2)return z;Z=typeof z[1]==="number"?z[1]:Z+V}}}return K}}}function VM($){if(Array.isArray($))return $;if(typeof $==="number")return[I6,$];return $===null||$===void 0?O3:[$]}function w8($,G,X,Y){let W,q,V;if(typeof G==="function"&&typeof X!=="function")q=void 0,V=G,W=X;else q=G,V=X,W=Y;F8($,q,J,W);function J(U,R){let D=R[R.length-1],M=D?D.children.indexOf(U):void 0;return V(U,M,D)}}function k6($,G){let X=!1;return w8($,function(Y){if("value"in Y&&/\r?\n|\r/.test(Y.value)||Y.type==="break")return X=!0,V2}),Boolean((!$.depth||$.depth<3)&&e0($)&&(G.options.setext||X))}function P3($,G,X,Y){let W=Math.max(Math.min(6,$.depth||1),1),q=X.createTracker(Y);if(k6($,X)){let D=X.enter("headingSetext"),M=X.enter("phrasing"),F=X.containerPhrasing($,{...q.current(),before:`
|
|
65
65
|
`,after:`
|
|
66
66
|
`});return M(),D(),F+`
|
|
67
67
|
`+(W===1?"=":"-").repeat(F.length-(Math.max(F.lastIndexOf("\r"),F.lastIndexOf(`
|
|
68
68
|
`))+1))}let V="#".repeat(W),J=X.enter("headingAtx"),U=X.enter("phrasing");q.move(V+" ");let R=X.containerPhrasing($,{before:"# ",after:`
|
|
69
|
-
`,...q.current()});if(/^[\t ]/.test(R))R=r1(R.charCodeAt(0))+R.slice(1);if(R=R?V+" "+R:V,X.options.closeAtx)R+=" "+V;return U(),J(),R}B8.peek=JM;function B8($){return $.value||""}function JM(){return"<"}O8.peek=HM;function O8($,G,X,Y){let W=g2(X),q=W==='"'?"Quote":"Apostrophe",V=X.enter("image"),J=X.enter("label"),U=X.createTracker(Y),R=U.move("![");if(R+=U.move(X.safe($.alt,{before:R,after:"]",...U.current()})),R+=U.move("]("),J(),!$.url&&$.title||/[\0- \u007F]/.test($.url))J=X.enter("destinationLiteral"),R+=U.move("<"),R+=U.move(X.safe($.url,{before:R,after:">",...U.current()})),R+=U.move(">");else J=X.enter("destinationRaw"),R+=U.move(X.safe($.url,{before:R,after:$.title?" ":")",...U.current()}));if(J(),$.title)J=X.enter(`title${q}`),R+=U.move(" "+W),R+=U.move(X.safe($.title,{before:R,after:W,...U.current()})),R+=U.move(W),J();return R+=U.move(")"),V(),R}function HM(){return"!"}P8.peek=UM;function P8($,G,X,Y){let W=$.referenceType,q=X.enter("imageReference"),V=X.enter("label"),J=X.createTracker(Y),U=J.move("!["),R=X.safe($.alt,{before:U,after:"]",...J.current()});U+=J.move(R+"]["),V();let D=X.stack;X.stack=[],V=X.enter("reference");let M=X.safe(X.associationId($),{before:U,after:"]",...J.current()});if(V(),X.stack=D,q(),W==="full"||!R||R!==M)U+=J.move(M+"]");else if(W==="shortcut")U=U.slice(0,-1);else U+=J.move("]");return U}function UM(){return"!"}N8.peek=RM;function N8($,G,X){let Y=$.value||"",W="`",q=-1;while(new RegExp("(^|[^`])"+W+"([^`]|$)").test(Y))W+="`";if(/[^ \r\n]/.test(Y)&&(/^[ \r\n]/.test(Y)&&/[ \r\n]$/.test(Y)||/^`|`$/.test(Y)))Y=" "+Y+" ";while(++q<X.unsafe.length){let V=X.unsafe[q],J=X.compilePattern(V),U;if(!V.atBreak)continue;while(U=J.exec(Y)){let R=U.index;if(Y.charCodeAt(R)===10&&Y.charCodeAt(R-1)===13)R--;Y=Y.slice(0,R)+" "+Y.slice(U.index+1)}}return W+Y+W}function RM(){return"`"}function
|
|
69
|
+
`,...q.current()});if(/^[\t ]/.test(R))R=r1(R.charCodeAt(0))+R.slice(1);if(R=R?V+" "+R:V,X.options.closeAtx)R+=" "+V;return U(),J(),R}B8.peek=JM;function B8($){return $.value||""}function JM(){return"<"}O8.peek=HM;function O8($,G,X,Y){let W=g2(X),q=W==='"'?"Quote":"Apostrophe",V=X.enter("image"),J=X.enter("label"),U=X.createTracker(Y),R=U.move("![");if(R+=U.move(X.safe($.alt,{before:R,after:"]",...U.current()})),R+=U.move("]("),J(),!$.url&&$.title||/[\0- \u007F]/.test($.url))J=X.enter("destinationLiteral"),R+=U.move("<"),R+=U.move(X.safe($.url,{before:R,after:">",...U.current()})),R+=U.move(">");else J=X.enter("destinationRaw"),R+=U.move(X.safe($.url,{before:R,after:$.title?" ":")",...U.current()}));if(J(),$.title)J=X.enter(`title${q}`),R+=U.move(" "+W),R+=U.move(X.safe($.title,{before:R,after:W,...U.current()})),R+=U.move(W),J();return R+=U.move(")"),V(),R}function HM(){return"!"}P8.peek=UM;function P8($,G,X,Y){let W=$.referenceType,q=X.enter("imageReference"),V=X.enter("label"),J=X.createTracker(Y),U=J.move("!["),R=X.safe($.alt,{before:U,after:"]",...J.current()});U+=J.move(R+"]["),V();let D=X.stack;X.stack=[],V=X.enter("reference");let M=X.safe(X.associationId($),{before:U,after:"]",...J.current()});if(V(),X.stack=D,q(),W==="full"||!R||R!==M)U+=J.move(M+"]");else if(W==="shortcut")U=U.slice(0,-1);else U+=J.move("]");return U}function UM(){return"!"}N8.peek=RM;function N8($,G,X){let Y=$.value||"",W="`",q=-1;while(new RegExp("(^|[^`])"+W+"([^`]|$)").test(Y))W+="`";if(/[^ \r\n]/.test(Y)&&(/^[ \r\n]/.test(Y)&&/[ \r\n]$/.test(Y)||/^`|`$/.test(Y)))Y=" "+Y+" ";while(++q<X.unsafe.length){let V=X.unsafe[q],J=X.compilePattern(V),U;if(!V.atBreak)continue;while(U=J.exec(Y)){let R=U.index;if(Y.charCodeAt(R)===10&&Y.charCodeAt(R-1)===13)R--;Y=Y.slice(0,R)+" "+Y.slice(U.index+1)}}return W+Y+W}function RM(){return"`"}function z8($,G){let X=e0($);return Boolean(!G.options.resourceLink&&$.url&&!$.title&&$.children&&$.children.length===1&&$.children[0].type==="text"&&(X===$.url||"mailto:"+X===$.url)&&/^[a-z][a-z+.-]+:/i.test($.url)&&!/[\0- <>\u007F]/.test($.url))}Z8.peek=DM;function Z8($,G,X,Y){let W=g2(X),q=W==='"'?"Quote":"Apostrophe",V=X.createTracker(Y),J,U;if(z8($,X)){let D=X.stack;X.stack=[],J=X.enter("autolink");let M=V.move("<");return M+=V.move(X.containerPhrasing($,{before:M,after:">",...V.current()})),M+=V.move(">"),J(),X.stack=D,M}J=X.enter("link"),U=X.enter("label");let R=V.move("[");if(R+=V.move(X.containerPhrasing($,{before:R,after:"](",...V.current()})),R+=V.move("]("),U(),!$.url&&$.title||/[\0- \u007F]/.test($.url))U=X.enter("destinationLiteral"),R+=V.move("<"),R+=V.move(X.safe($.url,{before:R,after:">",...V.current()})),R+=V.move(">");else U=X.enter("destinationRaw"),R+=V.move(X.safe($.url,{before:R,after:$.title?" ":")",...V.current()}));if(U(),$.title)U=X.enter(`title${q}`),R+=V.move(" "+W),R+=V.move(X.safe($.title,{before:R,after:W,...V.current()})),R+=V.move(W),U();return R+=V.move(")"),J(),R}function DM($,G,X){return z8($,X)?"<":"["}_8.peek=MM;function _8($,G,X,Y){let W=$.referenceType,q=X.enter("linkReference"),V=X.enter("label"),J=X.createTracker(Y),U=J.move("["),R=X.containerPhrasing($,{before:U,after:"]",...J.current()});U+=J.move(R+"]["),V();let D=X.stack;X.stack=[],V=X.enter("reference");let M=X.safe(X.associationId($),{before:U,after:"]",...J.current()});if(V(),X.stack=D,q(),W==="full"||!R||R!==M)U+=J.move(M+"]");else if(W==="shortcut")U=U.slice(0,-1);else U+=J.move("]");return U}function MM(){return"["}function f2($){let G=$.options.bullet||"*";if(G!=="*"&&G!=="+"&&G!=="-")throw Error("Cannot serialize items with `"+G+"` for `options.bullet`, expected `*`, `+`, or `-`");return G}function N3($){let G=f2($),X=$.options.bulletOther;if(!X)return G==="*"?"-":"*";if(X!=="*"&&X!=="+"&&X!=="-")throw Error("Cannot serialize items with `"+X+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(X===G)throw Error("Expected `bullet` (`"+G+"`) and `bulletOther` (`"+X+"`) to be different");return X}function z3($){let G=$.options.bulletOrdered||".";if(G!=="."&&G!==")")throw Error("Cannot serialize items with `"+G+"` for `options.bulletOrdered`, expected `.` or `)`");return G}function b6($){let G=$.options.rule||"*";if(G!=="*"&&G!=="-"&&G!=="_")throw Error("Cannot serialize rules with `"+G+"` for `options.rule`, expected `*`, `-`, or `_`");return G}function Z3($,G,X,Y){let W=X.enter("list"),q=X.bulletCurrent,V=$.ordered?z3(X):f2(X),J=$.ordered?V==="."?")":".":N3(X),U=G&&X.bulletLastUsed?V===X.bulletLastUsed:!1;if(!$.ordered){let D=$.children?$.children[0]:void 0;if((V==="*"||V==="-")&&D&&(!D.children||!D.children[0])&&X.stack[X.stack.length-1]==="list"&&X.stack[X.stack.length-2]==="listItem"&&X.stack[X.stack.length-3]==="list"&&X.stack[X.stack.length-4]==="listItem"&&X.indexStack[X.indexStack.length-1]===0&&X.indexStack[X.indexStack.length-2]===0&&X.indexStack[X.indexStack.length-3]===0)U=!0;if(b6(X)===V&&D){let M=-1;while(++M<$.children.length){let F=$.children[M];if(F&&F.type==="listItem"&&F.children&&F.children[0]&&F.children[0].type==="thematicBreak"){U=!0;break}}}}if(U)V=J;X.bulletCurrent=V;let R=X.containerFlow($,Y);return X.bulletLastUsed=V,X.bulletCurrent=q,W(),R}function _3($){let G=$.options.listItemIndent||"one";if(G!=="tab"&&G!=="one"&&G!=="mixed")throw Error("Cannot serialize items with `"+G+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return G}function L3($,G,X,Y){let W=_3(X),q=X.bulletCurrent||f2(X);if(G&&G.type==="list"&&G.ordered)q=(typeof G.start==="number"&&G.start>-1?G.start:1)+(X.options.incrementListMarker===!1?0:G.children.indexOf($))+q;let V=q.length+1;if(W==="tab"||W==="mixed"&&(G&&G.type==="list"&&G.spread||$.spread))V=Math.ceil(V/4)*4;let J=X.createTracker(Y);J.move(q+" ".repeat(V-q.length)),J.shift(V);let U=X.enter("listItem"),R=X.indentLines(X.containerFlow($,J.current()),D);return U(),R;function D(M,F,K){if(F)return(K?"":" ".repeat(V))+M;return(K?q:q+" ".repeat(V-q.length))+M}}function C3($,G,X,Y){let W=X.enter("paragraph"),q=X.enter("phrasing"),V=X.containerPhrasing($,Y);return q(),W(),V}var L8=y2(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function T3($,G,X,Y){return($.children.some(function(V){return L8(V)})?X.containerPhrasing:X.containerFlow).call(X,$,Y)}function E3($){let G=$.options.strong||"*";if(G!=="*"&&G!=="_")throw Error("Cannot serialize strong with `"+G+"` for `options.strong`, expected `*`, or `_`");return G}C8.peek=AM;function C8($,G,X,Y){let W=E3(X),q=X.enter("strong"),V=X.createTracker(Y),J=V.move(W+W),U=V.move(X.containerPhrasing($,{after:W,before:J,...V.current()})),R=U.charCodeAt(0),D=h2(Y.before.charCodeAt(Y.before.length-1),R,W);if(D.inside)U=r1(R)+U.slice(1);let M=U.charCodeAt(U.length-1),F=h2(Y.after.charCodeAt(0),M,W);if(F.inside)U=U.slice(0,-1)+r1(M);let K=V.move(W+W);return q(),X.attentionEncodeSurroundingInfo={after:F.outside,before:D.outside},J+U+K}function AM($,G,X){return X.options.strong||"*"}function j3($,G,X,Y){return X.safe($.value,Y)}function S3($){let G=$.options.ruleRepetition||3;if(G<3)throw Error("Cannot serialize rules with repetition `"+G+"` for `options.ruleRepetition`, expected `3` or more");return G}function I3($,G,X){let Y=(b6(X)+(X.options.ruleSpaces?" ":"")).repeat(S3(X));return X.options.ruleSpaces?Y.slice(0,-1):Y}var x3={blockquote:D3,break:Q8,code:K3,definition:F3,emphasis:K8,hardBreak:Q8,heading:P3,html:B8,image:O8,imageReference:P8,inlineCode:N8,link:Z8,linkReference:_8,list:Z3,listItem:L3,paragraph:C3,root:T3,strong:C8,text:j3,thematicBreak:I3};var k3=[QM];function QM($,G,X,Y){if(G.type==="code"&&E4(G,Y)&&($.type==="list"||$.type===G.type&&E4($,Y)))return!1;if("spread"in X&&typeof X.spread==="boolean"){if($.type==="paragraph"&&($.type===G.type||G.type==="definition"||G.type==="heading"&&k6(G,Y)))return;return X.spread?1:0}}var J2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],b3=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
70
70
|
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:J2},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
71
71
|
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:J2},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
72
72
|
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:J2},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
73
73
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
74
74
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
75
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:J2},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:J2},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:J2},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:J2},{atBreak:!0,character:"~"}];function v3($){if($.label||!$.identifier)return $.label||"";return T6($.identifier)}function g3($){if(!$._compiled){let G=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((G?"("+G+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function h3($,G,X){let Y=G.indexStack,W=$.children||[],q=[],V=-1,J=X.before,U;Y.push(-1);let R=G.createTracker(X);while(++V<W.length){let D=W[V],M;if(Y[Y.length-1]=V,V+1<W.length){let
|
|
75
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:J2},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:J2},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:J2},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:J2},{atBreak:!0,character:"~"}];function v3($){if($.label||!$.identifier)return $.label||"";return T6($.identifier)}function g3($){if(!$._compiled){let G=($.atBreak?"[\\r\\n][\\t ]*":"")+($.before?"(?:"+$.before+")":"");$._compiled=new RegExp((G?"("+G+")":"")+(/[|\\{}()[\]^$+*?.-]/.test($.character)?"\\":"")+$.character+($.after?"(?:"+$.after+")":""),"g")}return $._compiled}function h3($,G,X){let Y=G.indexStack,W=$.children||[],q=[],V=-1,J=X.before,U;Y.push(-1);let R=G.createTracker(X);while(++V<W.length){let D=W[V],M;if(Y[Y.length-1]=V,V+1<W.length){let z=G.handle.handlers[W[V+1].type];if(z&&z.peek)z=z.peek;M=z?z(W[V+1],$,G,{before:"",after:"",...R.current()}).charAt(0):""}else M=X.after;if(q.length>0&&(J==="\r"||J===`
|
|
76
76
|
`)&&D.type==="html")q[q.length-1]=q[q.length-1].replace(/(\r?\n|\r)$/," "),J=" ",R=G.createTracker(X),R.move(q.join(""));let F=G.handle(D,$,G,{...R.current(),after:M,before:J});if(U&&U===F.slice(0,1))F=r1(U.charCodeAt(0))+F.slice(1);let K=G.attentionEncodeSurroundingInfo;if(G.attentionEncodeSurroundingInfo=void 0,U=void 0,K){if(q.length>0&&K.before&&J===q[q.length-1].slice(-1))q[q.length-1]=q[q.length-1].slice(0,-1)+r1(J.charCodeAt(0));if(K.after)U=M}R.move(F),q.push(F),J=F.slice(-1)}return Y.pop(),q.join("")}function y3($,G,X){let Y=G.indexStack,W=$.children||[],q=G.createTracker(X),V=[],J=-1;Y.push(-1);while(++J<W.length){let U=W[J];if(Y[Y.length-1]=J,V.push(q.move(G.handle(U,$,G,{before:`
|
|
77
77
|
`,after:`
|
|
78
78
|
`,...q.current()}))),U.type!=="list")G.bulletLastUsed=void 0;if(J<W.length-1)V.push(q.move(KM(U,W[J+1],$,G)))}return Y.pop(),V.join("")}function KM($,G,X,Y){let W=Y.join.length;while(W--){let q=Y.join[W]($,G,X,Y);if(q===!0||q===1)break;if(typeof q==="number")return`
|
|
@@ -82,47 +82,47 @@ return `+str.trim()+`;
|
|
|
82
82
|
|
|
83
83
|
`}return`
|
|
84
84
|
|
|
85
|
-
`}var FM=/\r?\n|\r/g;function f3($,G){let X=[],Y=0,W=0,q;while(q=FM.exec($))V($.slice(Y,q.index)),X.push(q[0]),Y=q.index+q[0].length,W++;return V($.slice(Y)),X.join("");function V(J){X.push(G(J,W,!J))}}function u3($,G,X){let Y=(X.before||"")+(G||"")+(X.after||""),W=[],q=[],V={},J=-1;while(++J<$.unsafe.length){let D=$.unsafe[J];if(!j6($.stack,D))continue;let M=$.compilePattern(D),F;while(F=M.exec(Y)){let K="before"in D||Boolean(D.atBreak),
|
|
85
|
+
`}var FM=/\r?\n|\r/g;function f3($,G){let X=[],Y=0,W=0,q;while(q=FM.exec($))V($.slice(Y,q.index)),X.push(q[0]),Y=q.index+q[0].length,W++;return V($.slice(Y)),X.join("");function V(J){X.push(G(J,W,!J))}}function u3($,G,X){let Y=(X.before||"")+(G||"")+(X.after||""),W=[],q=[],V={},J=-1;while(++J<$.unsafe.length){let D=$.unsafe[J];if(!j6($.stack,D))continue;let M=$.compilePattern(D),F;while(F=M.exec(Y)){let K="before"in D||Boolean(D.atBreak),z="after"in D,Z=F.index+(K?F[1].length:0);if(W.includes(Z)){if(V[Z].before&&!K)V[Z].before=!1;if(V[Z].after&&!z)V[Z].after=!1}else W.push(Z),V[Z]={before:K,after:z}}}W.sort(wM);let U=X.before?X.before.length:0,R=Y.length-(X.after?X.after.length:0);J=-1;while(++J<W.length){let D=W[J];if(D<U||D>=R)continue;if(D+1<R&&W[J+1]===D+1&&V[D].after&&!V[D+1].before&&!V[D+1].after||W[J-1]===D-1&&V[D].before&&!V[D-1].before&&!V[D-1].after)continue;if(U!==D)q.push(m3(Y.slice(U,D),"\\"));if(U=D,/[!-/:-@[-`{-~]/.test(Y.charAt(D))&&(!X.encode||!X.encode.includes(Y.charAt(D))))q.push("\\");else q.push(r1(Y.charCodeAt(D))),U++}return q.push(m3(Y.slice(U,R),X.after)),q.join("")}function wM($,G){return $-G}function m3($,G){let X=/\\(?=[!-/:-@[-`{-~])/g,Y=[],W=[],q=$+G,V=-1,J=0,U;while(U=X.exec(q))Y.push(U.index);while(++V<Y.length){if(J!==Y[V])W.push($.slice(J,Y[V]));W.push("\\"),J=Y[V]}return W.push($.slice(J)),W.join("")}function p3($){let G=$||{},X=G.now||{},Y=G.lineShift||0,W=X.line||1,q=X.column||1;return{move:U,current:V,shift:J};function V(){return{now:{line:W,column:q},lineShift:Y}}function J(R){Y+=R}function U(R){let D=R||"",M=D.split(/\r?\n|\r/g),F=M[M.length-1];return W+=M.length-1,q=M.length===1?q+F.length:1+F.length+Y,D}}function T8($,G){let X=G||{},Y={associationId:v3,containerPhrasing:NM,containerFlow:zM,createTracker:p3,compilePattern:g3,enter:q,handlers:{...x3},handle:void 0,indentLines:f3,indexStack:[],join:[...k3],options:{},safe:ZM,stack:[],unsafe:[...b3]};if(A8(Y,X),Y.options.tightDefinitions)Y.join.push(PM);Y.handle=U3("type",{invalid:BM,unknown:OM,handlers:Y.handlers});let W=Y.handle($,void 0,Y,{before:`
|
|
86
86
|
`,after:`
|
|
87
87
|
`,now:{line:1,column:1},lineShift:0});if(W&&W.charCodeAt(W.length-1)!==10&&W.charCodeAt(W.length-1)!==13)W+=`
|
|
88
|
-
`;return W;function q(V){return Y.stack.push(V),J;function J(){Y.stack.pop()}}}function BM($){throw Error("Cannot handle value `"+$+"`, expected node")}function OM($){throw Error("Cannot handle unknown node `"+$.type+"`")}function PM($,G){if($.type==="definition"&&$.type===G.type)return 0}function NM($,G){return h3($,this,G)}function ZM($,G){return y3($,this,G)}function zM($,G){return u3(this,$,G)}function v6($){let G=this;G.compiler=X;function X(Y){return T8(Y,{...G.data("settings"),...$,extensions:G.data("toMarkdownExtensions")||[]})}}function E8($){if($)throw $}var m6=$6(a3(),1);function j4($){if(typeof $!=="object"||$===null)return!1;let G=Object.getPrototypeOf($);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function j8(){let $=[],G={run:X,use:Y};return G;function X(...W){let q=-1,V=W.pop();if(typeof V!=="function")throw TypeError("Expected function as last argument, not "+V);J(null,...W);function J(U,...R){let D=$[++q],M=-1;if(U){V(U);return}while(++M<W.length)if(R[M]===null||R[M]===void 0)R[M]=W[M];if(W=R,D)t3(D,J)(...R);else V(null,...R)}}function Y(W){if(typeof W!=="function")throw TypeError("Expected `middelware` to be a function, not "+W);return $.push(W),G}}function t3($,G){let X;return Y;function Y(...V){let J=$.length>V.length,U;if(J)V.push(W);try{U=$.apply(this,V)}catch(R){let D=R;if(J&&X)throw D;return W(D)}if(!J)if(U&&U.then&&typeof U.then==="function")U.then(q,W);else if(U instanceof Error)W(U);else q(U)}function W(V,...J){if(!X)X=!0,G(V,...J)}function q(V){W(null,V)}}class z1 extends Error{constructor($,G,X){super();if(typeof G==="string")X=G,G=void 0;let Y="",W={},q=!1;if(G)if("line"in G&&"column"in G)W={place:G};else if("start"in G&&"end"in G)W={place:G};else if("type"in G)W={ancestors:[G],place:G.position};else W={...G};if(typeof $==="string")Y=$;else if(!W.cause&&$)q=!0,Y=$.message,W.cause=$;if(!W.ruleId&&!W.source&&typeof X==="string"){let J=X.indexOf(":");if(J===-1)W.ruleId=X;else W.source=X.slice(0,J),W.ruleId=X.slice(J+1)}if(!W.place&&W.ancestors&&W.ancestors){let J=W.ancestors[W.ancestors.length-1];if(J)W.place=J.position}let V=W.place&&"start"in W.place?W.place.start:W.place;this.ancestors=W.ancestors||void 0,this.cause=W.cause||void 0,this.column=V?V.column:void 0,this.fatal=void 0,this.file="",this.message=Y,this.line=V?V.line:void 0,this.name=S0(W.place)||"1:1",this.place=W.place||void 0,this.reason=this.message,this.ruleId=W.ruleId||void 0,this.source=W.source||void 0,this.stack=q&&W.cause&&typeof W.cause.stack==="string"?W.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}z1.prototype.file="";z1.prototype.name="";z1.prototype.reason="";z1.prototype.message="";z1.prototype.stack="";z1.prototype.column=void 0;z1.prototype.line=void 0;z1.prototype.ancestors=void 0;z1.prototype.cause=void 0;z1.prototype.fatal=void 0;z1.prototype.place=void 0;z1.prototype.ruleId=void 0;z1.prototype.source=void 0;import{default as s1}from"path";import{default as e3}from"process";import{fileURLToPath as $X}from"url";function h6($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}var S8=["history","path","basename","stem","extname","dirname"];class y6{constructor($){let G;if(!$)G={};else if(h6($))G={path:$};else if(typeof $==="string"||_M($))G={value:$};else G=$;this.cwd="cwd"in G?"":e3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let X=-1;while(++X<S8.length){let W=S8[X];if(W in G&&G[W]!==void 0&&G[W]!==null)this[W]=W==="history"?[...G[W]]:G[W]}let Y;for(Y in G)if(!S8.includes(Y))this[Y]=G[Y]}get basename(){return typeof this.path==="string"?s1.basename(this.path):void 0}set basename($){x8($,"basename"),I8($,"basename"),this.path=s1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?s1.dirname(this.path):void 0}set dirname($){GX(this.basename,"dirname"),this.path=s1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?s1.extname(this.path):void 0}set extname($){if(I8($,"extname"),GX(this.dirname,"extname"),$){if($.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if($.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=s1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(h6($))$=$X($);if(x8($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?s1.basename(this.path,this.extname):void 0}set stem($){x8($,"stem"),I8($,"stem"),this.path=s1.join(this.dirname||"",$+(this.extname||""))}fail($,G,X){let Y=this.message($,G,X);throw Y.fatal=!0,Y}info($,G,X){let Y=this.message($,G,X);return Y.fatal=void 0,Y}message($,G,X){let Y=new z1($,G,X);if(this.path)Y.name=this.path+":"+Y.name,Y.file=this.path;return Y.fatal=!1,this.messages.push(Y),Y}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function I8($,G){if($&&$.includes(s1.sep))throw Error("`"+G+"` cannot be a path: did not expect `"+s1.sep+"`")}function x8($,G){if(!$)throw Error("`"+G+"` cannot be empty")}function GX($,G){if(!$)throw Error("Setting `"+G+"` requires `path` to be set too")}function _M($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var XX=function($){let Y=this.constructor.prototype,W=Y[$],q=function(){return W.apply(q,arguments)};return Object.setPrototypeOf(q,Y),q};var LM={}.hasOwnProperty;class g8 extends XX{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j8()}copy(){let $=new g8,G=-1;while(++G<this.attachers.length){let X=this.attachers[G];$.use(...X)}return $.data(m6.default(!0,{},this.namespace)),$}data($,G){if(typeof $==="string"){if(arguments.length===2)return v8("data",this.frozen),this.namespace[$]=G,this;return LM.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return v8("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[G,...X]=this.attachers[this.freezeIndex];if(X[0]===!1)continue;if(X[0]===!0)X[0]=void 0;let Y=G.call($,...X);if(typeof Y==="function")this.transformers.use(Y)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let G=f6($),X=this.parser||this.Parser;return k8("parse",X),X(String(G),G)}process($,G){let X=this;return this.freeze(),k8("process",this.parser||this.Parser),b8("process",this.compiler||this.Compiler),G?Y(void 0,G):new Promise(Y);function Y(W,q){let V=f6($),J=X.parse(V);X.run(J,V,function(R,D,M){if(R||!D||!M)return U(R);let F=D,K=X.stringify(F,M);if(TM(K))M.value=K;else M.result=K;U(R,M)});function U(R,D){if(R||!D)q(R);else if(W)W(D);else w(G,"`done` is defined if `resolve` is not"),G(void 0,D)}}}processSync($){let G=!1,X;return this.freeze(),k8("processSync",this.parser||this.Parser),b8("processSync",this.compiler||this.Compiler),this.process($,Y),WX("processSync","process",G),w(X,"we either bailed on an error or have a tree"),X;function Y(W,q){G=!0,E8(W),X=q}}run($,G,X){YX($),this.freeze();let Y=this.transformers;if(!X&&typeof G==="function")X=G,G=void 0;return X?W(void 0,X):new Promise(W);function W(q,V){w(typeof G!=="function","`file` can\u2019t be a `done` anymore, we checked");let J=f6(G);Y.run($,J,U);function U(R,D,M){let F=D||$;if(R)V(R);else if(q)q(F);else w(X,"`done` is defined if `resolve` is not"),X(void 0,F,M)}}}runSync($,G){let X=!1,Y;return this.run($,G,W),WX("runSync","run",X),w(Y,"we either bailed on an error or have a tree"),Y;function W(q,V){E8(q),Y=V,X=!0}}stringify($,G){this.freeze();let X=f6(G),Y=this.compiler||this.Compiler;return b8("stringify",Y),YX($),Y($,X)}use($,...G){let X=this.attachers,Y=this.namespace;if(v8("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")J($,G);else if(typeof $==="object")if(Array.isArray($))V($);else q($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function W(U){if(typeof U==="function")J(U,[]);else if(typeof U==="object")if(Array.isArray(U)){let[R,...D]=U;J(R,D)}else q(U);else throw TypeError("Expected usable value, not `"+U+"`")}function q(U){if(!("plugins"in U)&&!("settings"in U))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(V(U.plugins),U.settings)Y.settings=m6.default(!0,Y.settings,U.settings)}function V(U){let R=-1;if(U===null||U===void 0);else if(Array.isArray(U))while(++R<U.length){let D=U[R];W(D)}else throw TypeError("Expected a list of plugins, not `"+U+"`")}function J(U,R){let D=-1,M=-1;while(++D<X.length)if(X[D][0]===U){M=D;break}if(M===-1)X.push([U,...R]);else if(R.length>0){let[F,...K]=R,Z=X[M][1];if(j4(Z)&&j4(F))F=m6.default(!0,Z,F);X[M]=[U,F,...K]}}}}var h8=new g8().freeze();function k8($,G){if(typeof G!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function b8($,G){if(typeof G!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function v8($,G){if(G)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function YX($){if(!j4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function WX($,G,X){if(!X)throw Error("`"+$+"` finished async. Use `"+G+"` instead")}function f6($){return CM($)?$:new y6($)}function CM($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function TM($){return typeof $==="string"||EM($)}function EM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var qX=h8().use(E6).use(v6).freeze();var ST=qX();class x0{callback;heartbeatInterval;constructor($){this.callback=$}static from($){if(!$)return;return new x0($)}createSub($){let{scale:G}=$??{};if(G){let{start:X,end:Y}=G,W=Y-X;return new x0(async(q)=>{let V=X+q.progress/(q.total??100)*W;await this.callback({...q,progress:V,total:100})})}return new x0(this.callback)}async report($){await this.callback($)}startHeartbeat($,G=5000){this.stopHeartbeat(),this.heartbeatInterval=setInterval(()=>{this.report({message:$,progress:0}).catch(()=>{})},G)}stopHeartbeat(){if(this.heartbeatInterval)clearInterval(this.heartbeatInterval),this.heartbeatInterval=void 0}toCallback(){return this.callback}}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function NX($){return typeof $>"u"||$===null}function SM($){return typeof $==="object"&&$!==null}function IM($){if(Array.isArray($))return $;else if(NX($))return[];return[$]}function xM($,G){var X,Y,W,q;if(G){q=Object.keys(G);for(X=0,Y=q.length;X<Y;X+=1)W=q[X],$[W]=G[W]}return $}function kM($,G){var X="",Y;for(Y=0;Y<G;Y+=1)X+=$;return X}function bM($){return $===0&&Number.NEGATIVE_INFINITY===1/$}var vM=NX,gM=SM,hM=IM,yM=kM,fM=bM,mM=xM,w1={isNothing:vM,isObject:gM,toArray:hM,repeat:yM,isNegativeZero:fM,extend:mM};function ZX($,G){var X="",Y=$.reason||"(unknown reason)";if(!$.mark)return Y;if($.mark.name)X+='in "'+$.mark.name+'" ';if(X+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!G&&$.mark.snippet)X+=`
|
|
88
|
+
`;return W;function q(V){return Y.stack.push(V),J;function J(){Y.stack.pop()}}}function BM($){throw Error("Cannot handle value `"+$+"`, expected node")}function OM($){throw Error("Cannot handle unknown node `"+$.type+"`")}function PM($,G){if($.type==="definition"&&$.type===G.type)return 0}function NM($,G){return h3($,this,G)}function zM($,G){return y3($,this,G)}function ZM($,G){return u3(this,$,G)}function v6($){let G=this;G.compiler=X;function X(Y){return T8(Y,{...G.data("settings"),...$,extensions:G.data("toMarkdownExtensions")||[]})}}function E8($){if($)throw $}var m6=$6(a3(),1);function j4($){if(typeof $!=="object"||$===null)return!1;let G=Object.getPrototypeOf($);return(G===null||G===Object.prototype||Object.getPrototypeOf(G)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function j8(){let $=[],G={run:X,use:Y};return G;function X(...W){let q=-1,V=W.pop();if(typeof V!=="function")throw TypeError("Expected function as last argument, not "+V);J(null,...W);function J(U,...R){let D=$[++q],M=-1;if(U){V(U);return}while(++M<W.length)if(R[M]===null||R[M]===void 0)R[M]=W[M];if(W=R,D)t3(D,J)(...R);else V(null,...R)}}function Y(W){if(typeof W!=="function")throw TypeError("Expected `middelware` to be a function, not "+W);return $.push(W),G}}function t3($,G){let X;return Y;function Y(...V){let J=$.length>V.length,U;if(J)V.push(W);try{U=$.apply(this,V)}catch(R){let D=R;if(J&&X)throw D;return W(D)}if(!J)if(U&&U.then&&typeof U.then==="function")U.then(q,W);else if(U instanceof Error)W(U);else q(U)}function W(V,...J){if(!X)X=!0,G(V,...J)}function q(V){W(null,V)}}class Z1 extends Error{constructor($,G,X){super();if(typeof G==="string")X=G,G=void 0;let Y="",W={},q=!1;if(G)if("line"in G&&"column"in G)W={place:G};else if("start"in G&&"end"in G)W={place:G};else if("type"in G)W={ancestors:[G],place:G.position};else W={...G};if(typeof $==="string")Y=$;else if(!W.cause&&$)q=!0,Y=$.message,W.cause=$;if(!W.ruleId&&!W.source&&typeof X==="string"){let J=X.indexOf(":");if(J===-1)W.ruleId=X;else W.source=X.slice(0,J),W.ruleId=X.slice(J+1)}if(!W.place&&W.ancestors&&W.ancestors){let J=W.ancestors[W.ancestors.length-1];if(J)W.place=J.position}let V=W.place&&"start"in W.place?W.place.start:W.place;this.ancestors=W.ancestors||void 0,this.cause=W.cause||void 0,this.column=V?V.column:void 0,this.fatal=void 0,this.file="",this.message=Y,this.line=V?V.line:void 0,this.name=S0(W.place)||"1:1",this.place=W.place||void 0,this.reason=this.message,this.ruleId=W.ruleId||void 0,this.source=W.source||void 0,this.stack=q&&W.cause&&typeof W.cause.stack==="string"?W.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z1.prototype.file="";Z1.prototype.name="";Z1.prototype.reason="";Z1.prototype.message="";Z1.prototype.stack="";Z1.prototype.column=void 0;Z1.prototype.line=void 0;Z1.prototype.ancestors=void 0;Z1.prototype.cause=void 0;Z1.prototype.fatal=void 0;Z1.prototype.place=void 0;Z1.prototype.ruleId=void 0;Z1.prototype.source=void 0;import{default as s1}from"path";import{default as e3}from"process";import{fileURLToPath as $X}from"url";function h6($){return Boolean($!==null&&typeof $==="object"&&"href"in $&&$.href&&"protocol"in $&&$.protocol&&$.auth===void 0)}var S8=["history","path","basename","stem","extname","dirname"];class y6{constructor($){let G;if(!$)G={};else if(h6($))G={path:$};else if(typeof $==="string"||_M($))G={value:$};else G=$;this.cwd="cwd"in G?"":e3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let X=-1;while(++X<S8.length){let W=S8[X];if(W in G&&G[W]!==void 0&&G[W]!==null)this[W]=W==="history"?[...G[W]]:G[W]}let Y;for(Y in G)if(!S8.includes(Y))this[Y]=G[Y]}get basename(){return typeof this.path==="string"?s1.basename(this.path):void 0}set basename($){x8($,"basename"),I8($,"basename"),this.path=s1.join(this.dirname||"",$)}get dirname(){return typeof this.path==="string"?s1.dirname(this.path):void 0}set dirname($){GX(this.basename,"dirname"),this.path=s1.join($||"",this.basename)}get extname(){return typeof this.path==="string"?s1.extname(this.path):void 0}set extname($){if(I8($,"extname"),GX(this.dirname,"extname"),$){if($.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if($.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=s1.join(this.dirname,this.stem+($||""))}get path(){return this.history[this.history.length-1]}set path($){if(h6($))$=$X($);if(x8($,"path"),this.path!==$)this.history.push($)}get stem(){return typeof this.path==="string"?s1.basename(this.path,this.extname):void 0}set stem($){x8($,"stem"),I8($,"stem"),this.path=s1.join(this.dirname||"",$+(this.extname||""))}fail($,G,X){let Y=this.message($,G,X);throw Y.fatal=!0,Y}info($,G,X){let Y=this.message($,G,X);return Y.fatal=void 0,Y}message($,G,X){let Y=new Z1($,G,X);if(this.path)Y.name=this.path+":"+Y.name,Y.file=this.path;return Y.fatal=!1,this.messages.push(Y),Y}toString($){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder($||void 0).decode(this.value)}}function I8($,G){if($&&$.includes(s1.sep))throw Error("`"+G+"` cannot be a path: did not expect `"+s1.sep+"`")}function x8($,G){if(!$)throw Error("`"+G+"` cannot be empty")}function GX($,G){if(!$)throw Error("Setting `"+G+"` requires `path` to be set too")}function _M($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var XX=function($){let Y=this.constructor.prototype,W=Y[$],q=function(){return W.apply(q,arguments)};return Object.setPrototypeOf(q,Y),q};var LM={}.hasOwnProperty;class g8 extends XX{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j8()}copy(){let $=new g8,G=-1;while(++G<this.attachers.length){let X=this.attachers[G];$.use(...X)}return $.data(m6.default(!0,{},this.namespace)),$}data($,G){if(typeof $==="string"){if(arguments.length===2)return v8("data",this.frozen),this.namespace[$]=G,this;return LM.call(this.namespace,$)&&this.namespace[$]||void 0}if($)return v8("data",this.frozen),this.namespace=$,this;return this.namespace}freeze(){if(this.frozen)return this;let $=this;while(++this.freezeIndex<this.attachers.length){let[G,...X]=this.attachers[this.freezeIndex];if(X[0]===!1)continue;if(X[0]===!0)X[0]=void 0;let Y=G.call($,...X);if(typeof Y==="function")this.transformers.use(Y)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse($){this.freeze();let G=f6($),X=this.parser||this.Parser;return k8("parse",X),X(String(G),G)}process($,G){let X=this;return this.freeze(),k8("process",this.parser||this.Parser),b8("process",this.compiler||this.Compiler),G?Y(void 0,G):new Promise(Y);function Y(W,q){let V=f6($),J=X.parse(V);X.run(J,V,function(R,D,M){if(R||!D||!M)return U(R);let F=D,K=X.stringify(F,M);if(TM(K))M.value=K;else M.result=K;U(R,M)});function U(R,D){if(R||!D)q(R);else if(W)W(D);else w(G,"`done` is defined if `resolve` is not"),G(void 0,D)}}}processSync($){let G=!1,X;return this.freeze(),k8("processSync",this.parser||this.Parser),b8("processSync",this.compiler||this.Compiler),this.process($,Y),WX("processSync","process",G),w(X,"we either bailed on an error or have a tree"),X;function Y(W,q){G=!0,E8(W),X=q}}run($,G,X){YX($),this.freeze();let Y=this.transformers;if(!X&&typeof G==="function")X=G,G=void 0;return X?W(void 0,X):new Promise(W);function W(q,V){w(typeof G!=="function","`file` can\u2019t be a `done` anymore, we checked");let J=f6(G);Y.run($,J,U);function U(R,D,M){let F=D||$;if(R)V(R);else if(q)q(F);else w(X,"`done` is defined if `resolve` is not"),X(void 0,F,M)}}}runSync($,G){let X=!1,Y;return this.run($,G,W),WX("runSync","run",X),w(Y,"we either bailed on an error or have a tree"),Y;function W(q,V){E8(q),Y=V,X=!0}}stringify($,G){this.freeze();let X=f6(G),Y=this.compiler||this.Compiler;return b8("stringify",Y),YX($),Y($,X)}use($,...G){let X=this.attachers,Y=this.namespace;if(v8("use",this.frozen),$===null||$===void 0);else if(typeof $==="function")J($,G);else if(typeof $==="object")if(Array.isArray($))V($);else q($);else throw TypeError("Expected usable value, not `"+$+"`");return this;function W(U){if(typeof U==="function")J(U,[]);else if(typeof U==="object")if(Array.isArray(U)){let[R,...D]=U;J(R,D)}else q(U);else throw TypeError("Expected usable value, not `"+U+"`")}function q(U){if(!("plugins"in U)&&!("settings"in U))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(V(U.plugins),U.settings)Y.settings=m6.default(!0,Y.settings,U.settings)}function V(U){let R=-1;if(U===null||U===void 0);else if(Array.isArray(U))while(++R<U.length){let D=U[R];W(D)}else throw TypeError("Expected a list of plugins, not `"+U+"`")}function J(U,R){let D=-1,M=-1;while(++D<X.length)if(X[D][0]===U){M=D;break}if(M===-1)X.push([U,...R]);else if(R.length>0){let[F,...K]=R,z=X[M][1];if(j4(z)&&j4(F))F=m6.default(!0,z,F);X[M]=[U,F,...K]}}}}var h8=new g8().freeze();function k8($,G){if(typeof G!=="function")throw TypeError("Cannot `"+$+"` without `parser`")}function b8($,G){if(typeof G!=="function")throw TypeError("Cannot `"+$+"` without `compiler`")}function v8($,G){if(G)throw Error("Cannot call `"+$+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function YX($){if(!j4($)||typeof $.type!=="string")throw TypeError("Expected node, got `"+$+"`")}function WX($,G,X){if(!X)throw Error("`"+$+"` finished async. Use `"+G+"` instead")}function f6($){return CM($)?$:new y6($)}function CM($){return Boolean($&&typeof $==="object"&&"message"in $&&"messages"in $)}function TM($){return typeof $==="string"||EM($)}function EM($){return Boolean($&&typeof $==="object"&&"byteLength"in $&&"byteOffset"in $)}var qX=h8().use(E6).use(v6).freeze();var ST=qX();class x0{callback;heartbeatInterval;constructor($){this.callback=$}static from($){if(!$)return;return new x0($)}createSub($){let{scale:G}=$??{};if(G){let{start:X,end:Y}=G,W=Y-X;return new x0(async(q)=>{let V=X+q.progress/(q.total??100)*W;await this.callback({...q,progress:V,total:100})})}return new x0(this.callback)}async report($){await this.callback($)}startHeartbeat($,G=5000){this.stopHeartbeat(),this.heartbeatInterval=setInterval(()=>{this.report({message:$,progress:0}).catch(()=>{})},G)}stopHeartbeat(){if(this.heartbeatInterval)clearInterval(this.heartbeatInterval),this.heartbeatInterval=void 0}toCallback(){return this.callback}}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function NX($){return typeof $>"u"||$===null}function SM($){return typeof $==="object"&&$!==null}function IM($){if(Array.isArray($))return $;else if(NX($))return[];return[$]}function xM($,G){var X,Y,W,q;if(G){q=Object.keys(G);for(X=0,Y=q.length;X<Y;X+=1)W=q[X],$[W]=G[W]}return $}function kM($,G){var X="",Y;for(Y=0;Y<G;Y+=1)X+=$;return X}function bM($){return $===0&&Number.NEGATIVE_INFINITY===1/$}var vM=NX,gM=SM,hM=IM,yM=kM,fM=bM,mM=xM,w1={isNothing:vM,isObject:gM,toArray:hM,repeat:yM,isNegativeZero:fM,extend:mM};function zX($,G){var X="",Y=$.reason||"(unknown reason)";if(!$.mark)return Y;if($.mark.name)X+='in "'+$.mark.name+'" ';if(X+="("+($.mark.line+1)+":"+($.mark.column+1)+")",!G&&$.mark.snippet)X+=`
|
|
89
89
|
|
|
90
|
-
`+$.mark.snippet;return Y+" "+X}function I4($,G){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=G,this.message=
|
|
90
|
+
`+$.mark.snippet;return Y+" "+X}function I4($,G){if(Error.call(this),this.name="YAMLException",this.reason=$,this.mark=G,this.message=zX(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}I4.prototype=Object.create(Error.prototype);I4.prototype.constructor=I4;I4.prototype.toString=function(G){return this.name+": "+zX(this,G)};var y1=I4;function y8($,G,X,Y,W){var q="",V="",J=Math.floor(W/2)-1;if(Y-G>J)q=" ... ",G=Y-J+q.length;if(X-Y>J)V=" ...",X=Y+J-V.length;return{str:q+$.slice(G,X).replace(/\t/g,"\u2192")+V,pos:Y-G+q.length}}function f8($,G){return w1.repeat(" ",G-$.length)+$}function uM($,G){if(G=Object.create(G||null),!$.buffer)return null;if(!G.maxLength)G.maxLength=79;if(typeof G.indent!=="number")G.indent=1;if(typeof G.linesBefore!=="number")G.linesBefore=3;if(typeof G.linesAfter!=="number")G.linesAfter=2;var X=/\r?\n|\r|\0/g,Y=[0],W=[],q,V=-1;while(q=X.exec($.buffer))if(W.push(q.index),Y.push(q.index+q[0].length),$.position<=q.index&&V<0)V=Y.length-2;if(V<0)V=Y.length-1;var J="",U,R,D=Math.min($.line+G.linesAfter,W.length).toString().length,M=G.maxLength-(G.indent+D+3);for(U=1;U<=G.linesBefore;U++){if(V-U<0)break;R=y8($.buffer,Y[V-U],W[V-U],$.position-(Y[V]-Y[V-U]),M),J=w1.repeat(" ",G.indent)+f8(($.line-U+1).toString(),D)+" | "+R.str+`
|
|
91
91
|
`+J}R=y8($.buffer,Y[V],W[V],$.position,M),J+=w1.repeat(" ",G.indent)+f8(($.line+1).toString(),D)+" | "+R.str+`
|
|
92
92
|
`,J+=w1.repeat("-",G.indent+D+3+R.pos)+`^
|
|
93
93
|
`;for(U=1;U<=G.linesAfter;U++){if(V+U>=W.length)break;R=y8($.buffer,Y[V+U],W[V+U],$.position-(Y[V]-Y[V+U]),M),J+=w1.repeat(" ",G.indent)+f8(($.line+U+1).toString(),D)+" | "+R.str+`
|
|
94
|
-
`}return J.replace(/\n$/,"")}var pM=uM,lM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rM=["scalar","sequence","mapping"];function cM($){var G={};if($!==null)Object.keys($).forEach(function(X){$[X].forEach(function(Y){G[String(Y)]=X})});return G}function dM($,G){if(G=G||{},Object.keys(G).forEach(function(X){if(lM.indexOf(X)===-1)throw new y1('Unknown option "'+X+'" is met in definition of "'+$+'" YAML type.')}),this.options=G,this.tag=$,this.kind=G.kind||null,this.resolve=G.resolve||function(){return!0},this.construct=G.construct||function(X){return X},this.instanceOf=G.instanceOf||null,this.predicate=G.predicate||null,this.represent=G.represent||null,this.representName=G.representName||null,this.defaultStyle=G.defaultStyle||null,this.multi=G.multi||!1,this.styleAliases=cM(G.styleAliases||null),rM.indexOf(this.kind)===-1)throw new y1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}var T1=dM;function VX($,G){var X=[];return $[G].forEach(function(Y){var W=X.length;X.forEach(function(q,V){if(q.tag===Y.tag&&q.kind===Y.kind&&q.multi===Y.multi)W=V}),X[W]=Y}),X}function iM(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},G,X;function Y(W){if(W.multi)$.multi[W.kind].push(W),$.multi.fallback.push(W);else $[W.kind][W.tag]=$.fallback[W.tag]=W}for(G=0,X=arguments.length;G<X;G+=1)arguments[G].forEach(Y);return $}function u8($){return this.extend($)}u8.prototype.extend=function(G){var X=[],Y=[];if(G instanceof T1)Y.push(G);else if(Array.isArray(G))Y=Y.concat(G);else if(G&&(Array.isArray(G.implicit)||Array.isArray(G.explicit))){if(G.implicit)X=X.concat(G.implicit);if(G.explicit)Y=Y.concat(G.explicit)}else throw new y1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");X.forEach(function(q){if(!(q instanceof T1))throw new y1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(q.loadKind&&q.loadKind!=="scalar")throw new y1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(q.multi)throw new y1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Y.forEach(function(q){if(!(q instanceof T1))throw new y1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var W=Object.create(u8.prototype);return W.implicit=(this.implicit||[]).concat(X),W.explicit=(this.explicit||[]).concat(Y),W.compiledImplicit=VX(W,"implicit"),W.compiledExplicit=VX(W,"explicit"),W.compiledTypeMap=iM(W.compiledImplicit,W.compiledExplicit),W};var nM=u8,oM=new T1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),sM=new T1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),aM=new T1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),tM=new nM({explicit:[oM,sM,aM]});function eM($){if($===null)return!0;var G=$.length;return G===1&&$==="~"||G===4&&($==="null"||$==="Null"||$==="NULL")}function $
|
|
95
|
-
\r`;function
|
|
96
|
-
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function $
|
|
97
|
-
`,G-1)}function
|
|
94
|
+
`}return J.replace(/\n$/,"")}var pM=uM,lM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rM=["scalar","sequence","mapping"];function cM($){var G={};if($!==null)Object.keys($).forEach(function(X){$[X].forEach(function(Y){G[String(Y)]=X})});return G}function dM($,G){if(G=G||{},Object.keys(G).forEach(function(X){if(lM.indexOf(X)===-1)throw new y1('Unknown option "'+X+'" is met in definition of "'+$+'" YAML type.')}),this.options=G,this.tag=$,this.kind=G.kind||null,this.resolve=G.resolve||function(){return!0},this.construct=G.construct||function(X){return X},this.instanceOf=G.instanceOf||null,this.predicate=G.predicate||null,this.represent=G.represent||null,this.representName=G.representName||null,this.defaultStyle=G.defaultStyle||null,this.multi=G.multi||!1,this.styleAliases=cM(G.styleAliases||null),rM.indexOf(this.kind)===-1)throw new y1('Unknown kind "'+this.kind+'" is specified for "'+$+'" YAML type.')}var T1=dM;function VX($,G){var X=[];return $[G].forEach(function(Y){var W=X.length;X.forEach(function(q,V){if(q.tag===Y.tag&&q.kind===Y.kind&&q.multi===Y.multi)W=V}),X[W]=Y}),X}function iM(){var $={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},G,X;function Y(W){if(W.multi)$.multi[W.kind].push(W),$.multi.fallback.push(W);else $[W.kind][W.tag]=$.fallback[W.tag]=W}for(G=0,X=arguments.length;G<X;G+=1)arguments[G].forEach(Y);return $}function u8($){return this.extend($)}u8.prototype.extend=function(G){var X=[],Y=[];if(G instanceof T1)Y.push(G);else if(Array.isArray(G))Y=Y.concat(G);else if(G&&(Array.isArray(G.implicit)||Array.isArray(G.explicit))){if(G.implicit)X=X.concat(G.implicit);if(G.explicit)Y=Y.concat(G.explicit)}else throw new y1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");X.forEach(function(q){if(!(q instanceof T1))throw new y1("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(q.loadKind&&q.loadKind!=="scalar")throw new y1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(q.multi)throw new y1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),Y.forEach(function(q){if(!(q instanceof T1))throw new y1("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var W=Object.create(u8.prototype);return W.implicit=(this.implicit||[]).concat(X),W.explicit=(this.explicit||[]).concat(Y),W.compiledImplicit=VX(W,"implicit"),W.compiledExplicit=VX(W,"explicit"),W.compiledTypeMap=iM(W.compiledImplicit,W.compiledExplicit),W};var nM=u8,oM=new T1("tag:yaml.org,2002:str",{kind:"scalar",construct:function($){return $!==null?$:""}}),sM=new T1("tag:yaml.org,2002:seq",{kind:"sequence",construct:function($){return $!==null?$:[]}}),aM=new T1("tag:yaml.org,2002:map",{kind:"mapping",construct:function($){return $!==null?$:{}}}),tM=new nM({explicit:[oM,sM,aM]});function eM($){if($===null)return!0;var G=$.length;return G===1&&$==="~"||G===4&&($==="null"||$==="Null"||$==="NULL")}function $A(){return null}function GA($){return $===null}var XA=new T1("tag:yaml.org,2002:null",{kind:"scalar",resolve:eM,construct:$A,predicate:GA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function YA($){if($===null)return!1;var G=$.length;return G===4&&($==="true"||$==="True"||$==="TRUE")||G===5&&($==="false"||$==="False"||$==="FALSE")}function WA($){return $==="true"||$==="True"||$==="TRUE"}function qA($){return Object.prototype.toString.call($)==="[object Boolean]"}var VA=new T1("tag:yaml.org,2002:bool",{kind:"scalar",resolve:YA,construct:WA,predicate:qA,represent:{lowercase:function($){return $?"true":"false"},uppercase:function($){return $?"TRUE":"FALSE"},camelcase:function($){return $?"True":"False"}},defaultStyle:"lowercase"});function JA($){return 48<=$&&$<=57||65<=$&&$<=70||97<=$&&$<=102}function HA($){return 48<=$&&$<=55}function UA($){return 48<=$&&$<=57}function RA($){if($===null)return!1;var G=$.length,X=0,Y=!1,W;if(!G)return!1;if(W=$[X],W==="-"||W==="+")W=$[++X];if(W==="0"){if(X+1===G)return!0;if(W=$[++X],W==="b"){X++;for(;X<G;X++){if(W=$[X],W==="_")continue;if(W!=="0"&&W!=="1")return!1;Y=!0}return Y&&W!=="_"}if(W==="x"){X++;for(;X<G;X++){if(W=$[X],W==="_")continue;if(!JA($.charCodeAt(X)))return!1;Y=!0}return Y&&W!=="_"}if(W==="o"){X++;for(;X<G;X++){if(W=$[X],W==="_")continue;if(!HA($.charCodeAt(X)))return!1;Y=!0}return Y&&W!=="_"}}if(W==="_")return!1;for(;X<G;X++){if(W=$[X],W==="_")continue;if(!UA($.charCodeAt(X)))return!1;Y=!0}if(!Y||W==="_")return!1;return!0}function DA($){var G=$,X=1,Y;if(G.indexOf("_")!==-1)G=G.replace(/_/g,"");if(Y=G[0],Y==="-"||Y==="+"){if(Y==="-")X=-1;G=G.slice(1),Y=G[0]}if(G==="0")return 0;if(Y==="0"){if(G[1]==="b")return X*parseInt(G.slice(2),2);if(G[1]==="x")return X*parseInt(G.slice(2),16);if(G[1]==="o")return X*parseInt(G.slice(2),8)}return X*parseInt(G,10)}function MA($){return Object.prototype.toString.call($)==="[object Number]"&&($%1===0&&!w1.isNegativeZero($))}var AA=new T1("tag:yaml.org,2002:int",{kind:"scalar",resolve:RA,construct:DA,predicate:MA,represent:{binary:function($){return $>=0?"0b"+$.toString(2):"-0b"+$.toString(2).slice(1)},octal:function($){return $>=0?"0o"+$.toString(8):"-0o"+$.toString(8).slice(1)},decimal:function($){return $.toString(10)},hexadecimal:function($){return $>=0?"0x"+$.toString(16).toUpperCase():"-0x"+$.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),QA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KA($){if($===null)return!1;if(!QA.test($)||$[$.length-1]==="_")return!1;return!0}function FA($){var G,X;if(G=$.replace(/_/g,"").toLowerCase(),X=G[0]==="-"?-1:1,"+-".indexOf(G[0])>=0)G=G.slice(1);if(G===".inf")return X===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(G===".nan")return NaN;return X*parseFloat(G,10)}var wA=/^[-+]?[0-9]+e/;function BA($,G){var X;if(isNaN($))switch(G){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===$)switch(G){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===$)switch(G){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w1.isNegativeZero($))return"-0.0";return X=$.toString(10),wA.test(X)?X.replace("e",".e"):X}function OA($){return Object.prototype.toString.call($)==="[object Number]"&&($%1!==0||w1.isNegativeZero($))}var PA=new T1("tag:yaml.org,2002:float",{kind:"scalar",resolve:KA,construct:FA,predicate:OA,represent:BA,defaultStyle:"lowercase"}),NA=tM.extend({implicit:[XA,VA,AA,PA]}),zA=NA,ZX=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_X=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ZA($){if($===null)return!1;if(ZX.exec($)!==null)return!0;if(_X.exec($)!==null)return!0;return!1}function _A($){var G,X,Y,W,q,V,J,U=0,R=null,D,M,F;if(G=ZX.exec($),G===null)G=_X.exec($);if(G===null)throw Error("Date resolve error");if(X=+G[1],Y=+G[2]-1,W=+G[3],!G[4])return new Date(Date.UTC(X,Y,W));if(q=+G[4],V=+G[5],J=+G[6],G[7]){U=G[7].slice(0,3);while(U.length<3)U+="0";U=+U}if(G[9]){if(D=+G[10],M=+(G[11]||0),R=(D*60+M)*60000,G[9]==="-")R=-R}if(F=new Date(Date.UTC(X,Y,W,q,V,J,U)),R)F.setTime(F.getTime()-R);return F}function LA($){return $.toISOString()}var CA=new T1("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ZA,construct:_A,instanceOf:Date,represent:LA});function TA($){return $==="<<"||$===null}var EA=new T1("tag:yaml.org,2002:merge",{kind:"scalar",resolve:TA}),d8=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
95
|
+
\r`;function jA($){if($===null)return!1;var G,X,Y=0,W=$.length,q=d8;for(X=0;X<W;X++){if(G=q.indexOf($.charAt(X)),G>64)continue;if(G<0)return!1;Y+=6}return Y%8===0}function SA($){var G,X,Y=$.replace(/[\r\n=]/g,""),W=Y.length,q=d8,V=0,J=[];for(G=0;G<W;G++){if(G%4===0&&G)J.push(V>>16&255),J.push(V>>8&255),J.push(V&255);V=V<<6|q.indexOf(Y.charAt(G))}if(X=W%4*6,X===0)J.push(V>>16&255),J.push(V>>8&255),J.push(V&255);else if(X===18)J.push(V>>10&255),J.push(V>>2&255);else if(X===12)J.push(V>>4&255);return new Uint8Array(J)}function IA($){var G="",X=0,Y,W,q=$.length,V=d8;for(Y=0;Y<q;Y++){if(Y%3===0&&Y)G+=V[X>>18&63],G+=V[X>>12&63],G+=V[X>>6&63],G+=V[X&63];X=(X<<8)+$[Y]}if(W=q%3,W===0)G+=V[X>>18&63],G+=V[X>>12&63],G+=V[X>>6&63],G+=V[X&63];else if(W===2)G+=V[X>>10&63],G+=V[X>>4&63],G+=V[X<<2&63],G+=V[64];else if(W===1)G+=V[X>>2&63],G+=V[X<<4&63],G+=V[64],G+=V[64];return G}function xA($){return Object.prototype.toString.call($)==="[object Uint8Array]"}var kA=new T1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jA,construct:SA,predicate:xA,represent:IA}),bA=Object.prototype.hasOwnProperty,vA=Object.prototype.toString;function gA($){if($===null)return!0;var G=[],X,Y,W,q,V,J=$;for(X=0,Y=J.length;X<Y;X+=1){if(W=J[X],V=!1,vA.call(W)!=="[object Object]")return!1;for(q in W)if(bA.call(W,q))if(!V)V=!0;else return!1;if(!V)return!1;if(G.indexOf(q)===-1)G.push(q);else return!1}return!0}function hA($){return $!==null?$:[]}var yA=new T1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gA,construct:hA}),fA=Object.prototype.toString;function mA($){if($===null)return!0;var G,X,Y,W,q,V=$;q=Array(V.length);for(G=0,X=V.length;G<X;G+=1){if(Y=V[G],fA.call(Y)!=="[object Object]")return!1;if(W=Object.keys(Y),W.length!==1)return!1;q[G]=[W[0],Y[W[0]]]}return!0}function uA($){if($===null)return[];var G,X,Y,W,q,V=$;q=Array(V.length);for(G=0,X=V.length;G<X;G+=1)Y=V[G],W=Object.keys(Y),q[G]=[W[0],Y[W[0]]];return q}var pA=new T1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mA,construct:uA}),lA=Object.prototype.hasOwnProperty;function rA($){if($===null)return!0;var G,X=$;for(G in X)if(lA.call(X,G)){if(X[G]!==null)return!1}return!0}function cA($){return $!==null?$:{}}var dA=new T1("tag:yaml.org,2002:set",{kind:"mapping",resolve:rA,construct:cA}),LX=zA.extend({implicit:[CA,EA],explicit:[kA,yA,pA,dA]}),v0=Object.prototype.hasOwnProperty,u6=1,CX=2,TX=3,p6=4,m8=1,iA=2,JX=3,nA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oA=/[\x85\u2028\u2029]/,sA=/[,\[\]\{\}]/,EX=/^(?:!|!!|![a-z\-]+!)$/i,jX=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function HX($){return Object.prototype.toString.call($)}function V0($){return $===10||$===13}function H2($){return $===9||$===32}function f1($){return $===9||$===32||$===10||$===13}function u2($){return $===44||$===91||$===93||$===123||$===125}function aA($){var G;if(48<=$&&$<=57)return $-48;if(G=$|32,97<=G&&G<=102)return G-97+10;return-1}function tA($){if($===120)return 2;if($===117)return 4;if($===85)return 8;return 0}function eA($){if(48<=$&&$<=57)return $-48;return-1}function UX($){return $===48?"\x00":$===97?"\x07":$===98?"\b":$===116?"\t":$===9?"\t":$===110?`
|
|
96
|
+
`:$===118?"\v":$===102?"\f":$===114?"\r":$===101?"\x1B":$===32?" ":$===34?'"':$===47?"/":$===92?"\\":$===78?"\x85":$===95?"\xA0":$===76?"\u2028":$===80?"\u2029":""}function $Q($){if($<=65535)return String.fromCharCode($);return String.fromCharCode(($-65536>>10)+55296,($-65536&1023)+56320)}function SX($,G,X){if(G==="__proto__")Object.defineProperty($,G,{configurable:!0,enumerable:!0,writable:!0,value:X});else $[G]=X}var IX=Array(256),xX=Array(256);for(k0=0;k0<256;k0++)IX[k0]=UX(k0)?1:0,xX[k0]=UX(k0);var k0;function GQ($,G){this.input=$,this.filename=G.filename||null,this.schema=G.schema||LX,this.onWarning=G.onWarning||null,this.legacy=G.legacy||!1,this.json=G.json||!1,this.listener=G.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=$.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function kX($,G){var X={name:$.filename,buffer:$.input.slice(0,-1),position:$.position,line:$.line,column:$.position-$.lineStart};return X.snippet=pM(X),new y1(G,X)}function y($,G){throw kX($,G)}function l6($,G){if($.onWarning)$.onWarning.call(null,kX($,G))}var RX={YAML:function(G,X,Y){var W,q,V;if(G.version!==null)y(G,"duplication of %YAML directive");if(Y.length!==1)y(G,"YAML directive accepts exactly one argument");if(W=/^([0-9]+)\.([0-9]+)$/.exec(Y[0]),W===null)y(G,"ill-formed argument of the YAML directive");if(q=parseInt(W[1],10),V=parseInt(W[2],10),q!==1)y(G,"unacceptable YAML version of the document");if(G.version=Y[0],G.checkLineBreaks=V<2,V!==1&&V!==2)l6(G,"unsupported YAML version of the document")},TAG:function(G,X,Y){var W,q;if(Y.length!==2)y(G,"TAG directive accepts exactly two arguments");if(W=Y[0],q=Y[1],!EX.test(W))y(G,"ill-formed tag handle (first argument) of the TAG directive");if(v0.call(G.tagMap,W))y(G,'there is a previously declared suffix for "'+W+'" tag handle');if(!jX.test(q))y(G,"ill-formed tag prefix (second argument) of the TAG directive");try{q=decodeURIComponent(q)}catch(V){y(G,"tag prefix is malformed: "+q)}G.tagMap[W]=q}};function b0($,G,X,Y){var W,q,V,J;if(G<X){if(J=$.input.slice(G,X),Y){for(W=0,q=J.length;W<q;W+=1)if(V=J.charCodeAt(W),!(V===9||32<=V&&V<=1114111))y($,"expected valid JSON character")}else if(nA.test(J))y($,"the stream contains non-printable characters");$.result+=J}}function DX($,G,X,Y){var W,q,V,J;if(!w1.isObject(X))y($,"cannot merge mappings; the provided source object is unacceptable");W=Object.keys(X);for(V=0,J=W.length;V<J;V+=1)if(q=W[V],!v0.call(G,q))SX(G,q,X[q]),Y[q]=!0}function p2($,G,X,Y,W,q,V,J,U){var R,D;if(Array.isArray(W)){W=Array.prototype.slice.call(W);for(R=0,D=W.length;R<D;R+=1){if(Array.isArray(W[R]))y($,"nested arrays are not supported inside keys");if(typeof W==="object"&&HX(W[R])==="[object Object]")W[R]="[object Object]"}}if(typeof W==="object"&&HX(W)==="[object Object]")W="[object Object]";if(W=String(W),G===null)G={};if(Y==="tag:yaml.org,2002:merge")if(Array.isArray(q))for(R=0,D=q.length;R<D;R+=1)DX($,G,q[R],X);else DX($,G,q,X);else{if(!$.json&&!v0.call(X,W)&&v0.call(G,W))$.line=V||$.line,$.lineStart=J||$.lineStart,$.position=U||$.position,y($,"duplicated mapping key");SX(G,W,q),delete X[W]}return G}function i8($){var G=$.input.charCodeAt($.position);if(G===10)$.position++;else if(G===13){if($.position++,$.input.charCodeAt($.position)===10)$.position++}else y($,"a line break is expected");$.line+=1,$.lineStart=$.position,$.firstTabInLine=-1}function D1($,G,X){var Y=0,W=$.input.charCodeAt($.position);while(W!==0){while(H2(W)){if(W===9&&$.firstTabInLine===-1)$.firstTabInLine=$.position;W=$.input.charCodeAt(++$.position)}if(G&&W===35)do W=$.input.charCodeAt(++$.position);while(W!==10&&W!==13&&W!==0);if(V0(W)){i8($),W=$.input.charCodeAt($.position),Y++,$.lineIndent=0;while(W===32)$.lineIndent++,W=$.input.charCodeAt(++$.position)}else break}if(X!==-1&&Y!==0&&$.lineIndent<X)l6($,"deficient indentation");return Y}function d6($){var G=$.position,X;if(X=$.input.charCodeAt(G),(X===45||X===46)&&X===$.input.charCodeAt(G+1)&&X===$.input.charCodeAt(G+2)){if(G+=3,X=$.input.charCodeAt(G),X===0||f1(X))return!0}return!1}function n8($,G){if(G===1)$.result+=" ";else if(G>1)$.result+=w1.repeat(`
|
|
97
|
+
`,G-1)}function XQ($,G,X){var Y,W,q,V,J,U,R,D,M=$.kind,F=$.result,K;if(K=$.input.charCodeAt($.position),f1(K)||u2(K)||K===35||K===38||K===42||K===33||K===124||K===62||K===39||K===34||K===37||K===64||K===96)return!1;if(K===63||K===45){if(W=$.input.charCodeAt($.position+1),f1(W)||X&&u2(W))return!1}$.kind="scalar",$.result="",q=V=$.position,J=!1;while(K!==0){if(K===58){if(W=$.input.charCodeAt($.position+1),f1(W)||X&&u2(W))break}else if(K===35){if(Y=$.input.charCodeAt($.position-1),f1(Y))break}else if($.position===$.lineStart&&d6($)||X&&u2(K))break;else if(V0(K))if(U=$.line,R=$.lineStart,D=$.lineIndent,D1($,!1,-1),$.lineIndent>=G){J=!0,K=$.input.charCodeAt($.position);continue}else{$.position=V,$.line=U,$.lineStart=R,$.lineIndent=D;break}if(J)b0($,q,V,!1),n8($,$.line-U),q=V=$.position,J=!1;if(!H2(K))V=$.position+1;K=$.input.charCodeAt(++$.position)}if(b0($,q,V,!1),$.result)return!0;return $.kind=M,$.result=F,!1}function YQ($,G){var X,Y,W;if(X=$.input.charCodeAt($.position),X!==39)return!1;$.kind="scalar",$.result="",$.position++,Y=W=$.position;while((X=$.input.charCodeAt($.position))!==0)if(X===39)if(b0($,Y,$.position,!0),X=$.input.charCodeAt(++$.position),X===39)Y=$.position,$.position++,W=$.position;else return!0;else if(V0(X))b0($,Y,W,!0),n8($,D1($,!1,G)),Y=W=$.position;else if($.position===$.lineStart&&d6($))y($,"unexpected end of the document within a single quoted scalar");else $.position++,W=$.position;y($,"unexpected end of the stream within a single quoted scalar")}function WQ($,G){var X,Y,W,q,V,J;if(J=$.input.charCodeAt($.position),J!==34)return!1;$.kind="scalar",$.result="",$.position++,X=Y=$.position;while((J=$.input.charCodeAt($.position))!==0)if(J===34)return b0($,X,$.position,!0),$.position++,!0;else if(J===92){if(b0($,X,$.position,!0),J=$.input.charCodeAt(++$.position),V0(J))D1($,!1,G);else if(J<256&&IX[J])$.result+=xX[J],$.position++;else if((V=tA(J))>0){W=V,q=0;for(;W>0;W--)if(J=$.input.charCodeAt(++$.position),(V=aA(J))>=0)q=(q<<4)+V;else y($,"expected hexadecimal character");$.result+=$Q(q),$.position++}else y($,"unknown escape sequence");X=Y=$.position}else if(V0(J))b0($,X,Y,!0),n8($,D1($,!1,G)),X=Y=$.position;else if($.position===$.lineStart&&d6($))y($,"unexpected end of the document within a double quoted scalar");else $.position++,Y=$.position;y($,"unexpected end of the stream within a double quoted scalar")}function qQ($,G){var X=!0,Y,W,q,V=$.tag,J,U=$.anchor,R,D,M,F,K,z=Object.create(null),Z,C,L,v;if(v=$.input.charCodeAt($.position),v===91)D=93,K=!1,J=[];else if(v===123)D=125,K=!0,J={};else return!1;if($.anchor!==null)$.anchorMap[$.anchor]=J;v=$.input.charCodeAt(++$.position);while(v!==0){if(D1($,!0,G),v=$.input.charCodeAt($.position),v===D)return $.position++,$.tag=V,$.anchor=U,$.kind=K?"mapping":"sequence",$.result=J,!0;else if(!X)y($,"missed comma between flow collection entries");else if(v===44)y($,"expected the node content, but found ','");if(C=Z=L=null,M=F=!1,v===63){if(R=$.input.charCodeAt($.position+1),f1(R))M=F=!0,$.position++,D1($,!0,G)}if(Y=$.line,W=$.lineStart,q=$.position,l2($,G,u6,!1,!0),C=$.tag,Z=$.result,D1($,!0,G),v=$.input.charCodeAt($.position),(F||$.line===Y)&&v===58)M=!0,v=$.input.charCodeAt(++$.position),D1($,!0,G),l2($,G,u6,!1,!0),L=$.result;if(K)p2($,J,z,C,Z,L,Y,W,q);else if(M)J.push(p2($,null,z,C,Z,L,Y,W,q));else J.push(Z);if(D1($,!0,G),v=$.input.charCodeAt($.position),v===44)X=!0,v=$.input.charCodeAt(++$.position);else X=!1}y($,"unexpected end of the stream within a flow collection")}function VQ($,G){var X,Y,W=m8,q=!1,V=!1,J=G,U=0,R=!1,D,M;if(M=$.input.charCodeAt($.position),M===124)Y=!1;else if(M===62)Y=!0;else return!1;$.kind="scalar",$.result="";while(M!==0)if(M=$.input.charCodeAt(++$.position),M===43||M===45)if(m8===W)W=M===43?JX:iA;else y($,"repeat of a chomping mode identifier");else if((D=eA(M))>=0)if(D===0)y($,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!V)J=G+D-1,V=!0;else y($,"repeat of an indentation width identifier");else break;if(H2(M)){do M=$.input.charCodeAt(++$.position);while(H2(M));if(M===35)do M=$.input.charCodeAt(++$.position);while(!V0(M)&&M!==0)}while(M!==0){i8($),$.lineIndent=0,M=$.input.charCodeAt($.position);while((!V||$.lineIndent<J)&&M===32)$.lineIndent++,M=$.input.charCodeAt(++$.position);if(!V&&$.lineIndent>J)J=$.lineIndent;if(V0(M)){U++;continue}if($.lineIndent<J){if(W===JX)$.result+=w1.repeat(`
|
|
98
98
|
`,q?1+U:U);else if(W===m8){if(q)$.result+=`
|
|
99
99
|
`}break}if(Y)if(H2(M))R=!0,$.result+=w1.repeat(`
|
|
100
100
|
`,q?1+U:U);else if(R)R=!1,$.result+=w1.repeat(`
|
|
101
101
|
`,U+1);else if(U===0){if(q)$.result+=" "}else $.result+=w1.repeat(`
|
|
102
102
|
`,U);else $.result+=w1.repeat(`
|
|
103
|
-
`,q?1+U:U);q=!0,V=!0,U=0,X=$.position;while(!V0(M)&&M!==0)M=$.input.charCodeAt(++$.position);b0($,X,$.position,!1)}return!0}function MX($,G){var X,Y=$.tag,W=$.anchor,q=[],V,J=!1,U;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;U=$.input.charCodeAt($.position);while(U!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,y($,"tab characters must not be used in indentation");if(U!==45)break;if(V=$.input.charCodeAt($.position+1),!f1(V))break;if(J=!0,$.position++,D1($,!0,-1)){if($.lineIndent<=G){q.push(null),U=$.input.charCodeAt($.position);continue}}if(X=$.line,l2($,G,TX,!1,!0),q.push($.result),D1($,!0,-1),U=$.input.charCodeAt($.position),($.line===X||$.lineIndent>G)&&U!==0)y($,"bad indentation of a sequence entry");else if($.lineIndent<G)break}if(J)return $.tag=Y,$.anchor=W,$.kind="sequence",$.result=q,!0;return!1}function
|
|
104
|
-
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var X=new
|
|
103
|
+
`,q?1+U:U);q=!0,V=!0,U=0,X=$.position;while(!V0(M)&&M!==0)M=$.input.charCodeAt(++$.position);b0($,X,$.position,!1)}return!0}function MX($,G){var X,Y=$.tag,W=$.anchor,q=[],V,J=!1,U;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=q;U=$.input.charCodeAt($.position);while(U!==0){if($.firstTabInLine!==-1)$.position=$.firstTabInLine,y($,"tab characters must not be used in indentation");if(U!==45)break;if(V=$.input.charCodeAt($.position+1),!f1(V))break;if(J=!0,$.position++,D1($,!0,-1)){if($.lineIndent<=G){q.push(null),U=$.input.charCodeAt($.position);continue}}if(X=$.line,l2($,G,TX,!1,!0),q.push($.result),D1($,!0,-1),U=$.input.charCodeAt($.position),($.line===X||$.lineIndent>G)&&U!==0)y($,"bad indentation of a sequence entry");else if($.lineIndent<G)break}if(J)return $.tag=Y,$.anchor=W,$.kind="sequence",$.result=q,!0;return!1}function JQ($,G,X){var Y,W,q,V,J,U,R=$.tag,D=$.anchor,M={},F=Object.create(null),K=null,z=null,Z=null,C=!1,L=!1,v;if($.firstTabInLine!==-1)return!1;if($.anchor!==null)$.anchorMap[$.anchor]=M;v=$.input.charCodeAt($.position);while(v!==0){if(!C&&$.firstTabInLine!==-1)$.position=$.firstTabInLine,y($,"tab characters must not be used in indentation");if(Y=$.input.charCodeAt($.position+1),q=$.line,(v===63||v===58)&&f1(Y)){if(v===63){if(C)p2($,M,F,K,z,null,V,J,U),K=z=Z=null;L=!0,C=!0,W=!0}else if(C)C=!1,W=!0;else y($,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");$.position+=1,v=Y}else{if(V=$.line,J=$.lineStart,U=$.position,!l2($,X,CX,!1,!0))break;if($.line===q){v=$.input.charCodeAt($.position);while(H2(v))v=$.input.charCodeAt(++$.position);if(v===58){if(v=$.input.charCodeAt(++$.position),!f1(v))y($,"a whitespace character is expected after the key-value separator within a block mapping");if(C)p2($,M,F,K,z,null,V,J,U),K=z=Z=null;L=!0,C=!1,W=!1,K=$.tag,z=$.result}else if(L)y($,"can not read an implicit mapping pair; a colon is missed");else return $.tag=R,$.anchor=D,!0}else if(L)y($,"can not read a block mapping entry; a multiline key may not be an implicit key");else return $.tag=R,$.anchor=D,!0}if($.line===q||$.lineIndent>G){if(C)V=$.line,J=$.lineStart,U=$.position;if(l2($,G,p6,!0,W))if(C)z=$.result;else Z=$.result;if(!C)p2($,M,F,K,z,Z,V,J,U),K=z=Z=null;D1($,!0,-1),v=$.input.charCodeAt($.position)}if(($.line===q||$.lineIndent>G)&&v!==0)y($,"bad indentation of a mapping entry");else if($.lineIndent<G)break}if(C)p2($,M,F,K,z,null,V,J,U);if(L)$.tag=R,$.anchor=D,$.kind="mapping",$.result=M;return L}function HQ($){var G,X=!1,Y=!1,W,q,V;if(V=$.input.charCodeAt($.position),V!==33)return!1;if($.tag!==null)y($,"duplication of a tag property");if(V=$.input.charCodeAt(++$.position),V===60)X=!0,V=$.input.charCodeAt(++$.position);else if(V===33)Y=!0,W="!!",V=$.input.charCodeAt(++$.position);else W="!";if(G=$.position,X){do V=$.input.charCodeAt(++$.position);while(V!==0&&V!==62);if($.position<$.length)q=$.input.slice(G,$.position),V=$.input.charCodeAt(++$.position);else y($,"unexpected end of the stream within a verbatim tag")}else{while(V!==0&&!f1(V)){if(V===33)if(!Y){if(W=$.input.slice(G-1,$.position+1),!EX.test(W))y($,"named tag handle cannot contain such characters");Y=!0,G=$.position+1}else y($,"tag suffix cannot contain exclamation marks");V=$.input.charCodeAt(++$.position)}if(q=$.input.slice(G,$.position),sA.test(q))y($,"tag suffix cannot contain flow indicator characters")}if(q&&!jX.test(q))y($,"tag name cannot contain such characters: "+q);try{q=decodeURIComponent(q)}catch(J){y($,"tag name is malformed: "+q)}if(X)$.tag=q;else if(v0.call($.tagMap,W))$.tag=$.tagMap[W]+q;else if(W==="!")$.tag="!"+q;else if(W==="!!")$.tag="tag:yaml.org,2002:"+q;else y($,'undeclared tag handle "'+W+'"');return!0}function UQ($){var G,X;if(X=$.input.charCodeAt($.position),X!==38)return!1;if($.anchor!==null)y($,"duplication of an anchor property");X=$.input.charCodeAt(++$.position),G=$.position;while(X!==0&&!f1(X)&&!u2(X))X=$.input.charCodeAt(++$.position);if($.position===G)y($,"name of an anchor node must contain at least one character");return $.anchor=$.input.slice(G,$.position),!0}function RQ($){var G,X,Y;if(Y=$.input.charCodeAt($.position),Y!==42)return!1;Y=$.input.charCodeAt(++$.position),G=$.position;while(Y!==0&&!f1(Y)&&!u2(Y))Y=$.input.charCodeAt(++$.position);if($.position===G)y($,"name of an alias node must contain at least one character");if(X=$.input.slice(G,$.position),!v0.call($.anchorMap,X))y($,'unidentified alias "'+X+'"');return $.result=$.anchorMap[X],D1($,!0,-1),!0}function l2($,G,X,Y,W){var q,V,J,U=1,R=!1,D=!1,M,F,K,z,Z,C;if($.listener!==null)$.listener("open",$);if($.tag=null,$.anchor=null,$.kind=null,$.result=null,q=V=J=p6===X||TX===X,Y){if(D1($,!0,-1)){if(R=!0,$.lineIndent>G)U=1;else if($.lineIndent===G)U=0;else if($.lineIndent<G)U=-1}}if(U===1)while(HQ($)||UQ($))if(D1($,!0,-1)){if(R=!0,J=q,$.lineIndent>G)U=1;else if($.lineIndent===G)U=0;else if($.lineIndent<G)U=-1}else J=!1;if(J)J=R||W;if(U===1||p6===X){if(u6===X||CX===X)Z=G;else Z=G+1;if(C=$.position-$.lineStart,U===1)if(J&&(MX($,C)||JQ($,C,Z))||qQ($,Z))D=!0;else{if(V&&VQ($,Z)||YQ($,Z)||WQ($,Z))D=!0;else if(RQ($)){if(D=!0,$.tag!==null||$.anchor!==null)y($,"alias node should not have any properties")}else if(XQ($,Z,u6===X)){if(D=!0,$.tag===null)$.tag="?"}if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if(U===0)D=J&&MX($,C)}if($.tag===null){if($.anchor!==null)$.anchorMap[$.anchor]=$.result}else if($.tag==="?"){if($.result!==null&&$.kind!=="scalar")y($,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+$.kind+'"');for(M=0,F=$.implicitTypes.length;M<F;M+=1)if(z=$.implicitTypes[M],z.resolve($.result)){if($.result=z.construct($.result),$.tag=z.tag,$.anchor!==null)$.anchorMap[$.anchor]=$.result;break}}else if($.tag!=="!"){if(v0.call($.typeMap[$.kind||"fallback"],$.tag))z=$.typeMap[$.kind||"fallback"][$.tag];else{z=null,K=$.typeMap.multi[$.kind||"fallback"];for(M=0,F=K.length;M<F;M+=1)if($.tag.slice(0,K[M].tag.length)===K[M].tag){z=K[M];break}}if(!z)y($,"unknown tag !<"+$.tag+">");if($.result!==null&&z.kind!==$.kind)y($,"unacceptable node kind for !<"+$.tag+'> tag; it should be "'+z.kind+'", not "'+$.kind+'"');if(!z.resolve($.result,$.tag))y($,"cannot resolve a node with !<"+$.tag+"> explicit tag");else if($.result=z.construct($.result,$.tag),$.anchor!==null)$.anchorMap[$.anchor]=$.result}if($.listener!==null)$.listener("close",$);return $.tag!==null||$.anchor!==null||D}function DQ($){var G=$.position,X,Y,W,q=!1,V;$.version=null,$.checkLineBreaks=$.legacy,$.tagMap=Object.create(null),$.anchorMap=Object.create(null);while((V=$.input.charCodeAt($.position))!==0){if(D1($,!0,-1),V=$.input.charCodeAt($.position),$.lineIndent>0||V!==37)break;q=!0,V=$.input.charCodeAt(++$.position),X=$.position;while(V!==0&&!f1(V))V=$.input.charCodeAt(++$.position);if(Y=$.input.slice(X,$.position),W=[],Y.length<1)y($,"directive name must not be less than one character in length");while(V!==0){while(H2(V))V=$.input.charCodeAt(++$.position);if(V===35){do V=$.input.charCodeAt(++$.position);while(V!==0&&!V0(V));break}if(V0(V))break;X=$.position;while(V!==0&&!f1(V))V=$.input.charCodeAt(++$.position);W.push($.input.slice(X,$.position))}if(V!==0)i8($);if(v0.call(RX,Y))RX[Y]($,Y,W);else l6($,'unknown document directive "'+Y+'"')}if(D1($,!0,-1),$.lineIndent===0&&$.input.charCodeAt($.position)===45&&$.input.charCodeAt($.position+1)===45&&$.input.charCodeAt($.position+2)===45)$.position+=3,D1($,!0,-1);else if(q)y($,"directives end mark is expected");if(l2($,$.lineIndent-1,p6,!1,!0),D1($,!0,-1),$.checkLineBreaks&&oA.test($.input.slice(G,$.position)))l6($,"non-ASCII line breaks are interpreted as content");if($.documents.push($.result),$.position===$.lineStart&&d6($)){if($.input.charCodeAt($.position)===46)$.position+=3,D1($,!0,-1);return}if($.position<$.length-1)y($,"end of the stream or a document separator is expected");else return}function bX($,G){if($=String($),G=G||{},$.length!==0){if($.charCodeAt($.length-1)!==10&&$.charCodeAt($.length-1)!==13)$+=`
|
|
104
|
+
`;if($.charCodeAt(0)===65279)$=$.slice(1)}var X=new GQ($,G),Y=$.indexOf("\x00");if(Y!==-1)X.position=Y,y(X,"null byte is not allowed in input");X.input+="\x00";while(X.input.charCodeAt(X.position)===32)X.lineIndent+=1,X.position+=1;while(X.position<X.length-1)DQ(X);return X.documents}function MQ($,G,X){if(G!==null&&typeof G==="object"&&typeof X>"u")X=G,G=null;var Y=bX($,X);if(typeof G!=="function")return Y;for(var W=0,q=Y.length;W<q;W+=1)G(Y[W])}function AQ($,G){var X=bX($,G);if(X.length===0)return;else if(X.length===1)return X[0];throw new y1("expected a single document in the stream, but found more")}var QQ=MQ,KQ=AQ,vX={loadAll:QQ,load:KQ},gX=Object.prototype.toString,hX=Object.prototype.hasOwnProperty,o8=65279,FQ=9,x4=10,wQ=13,BQ=32,OQ=33,PQ=34,p8=35,NQ=37,zQ=38,ZQ=39,_Q=42,yX=44,LQ=45,r6=58,CQ=61,TQ=62,EQ=63,jQ=64,fX=91,mX=93,SQ=96,uX=123,IQ=124,pX=125,E1={};E1[0]="\\0";E1[7]="\\a";E1[8]="\\b";E1[9]="\\t";E1[10]="\\n";E1[11]="\\v";E1[12]="\\f";E1[13]="\\r";E1[27]="\\e";E1[34]="\\\"";E1[92]="\\\\";E1[133]="\\N";E1[160]="\\_";E1[8232]="\\L";E1[8233]="\\P";var xQ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kQ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function bQ($,G){var X,Y,W,q,V,J,U;if(G===null)return{};X={},Y=Object.keys(G);for(W=0,q=Y.length;W<q;W+=1){if(V=Y[W],J=String(G[V]),V.slice(0,2)==="!!")V="tag:yaml.org,2002:"+V.slice(2);if(U=$.compiledTypeMap.fallback[V],U&&hX.call(U.styleAliases,J))J=U.styleAliases[J];X[V]=J}return X}function vQ($){var G,X,Y;if(G=$.toString(16).toUpperCase(),$<=255)X="x",Y=2;else if($<=65535)X="u",Y=4;else if($<=4294967295)X="U",Y=8;else throw new y1("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+X+w1.repeat("0",Y-G.length)+G}var gQ=1,k4=2;function hQ($){this.schema=$.schema||LX,this.indent=Math.max(1,$.indent||2),this.noArrayIndent=$.noArrayIndent||!1,this.skipInvalid=$.skipInvalid||!1,this.flowLevel=w1.isNothing($.flowLevel)?-1:$.flowLevel,this.styleMap=bQ(this.schema,$.styles||null),this.sortKeys=$.sortKeys||!1,this.lineWidth=$.lineWidth||80,this.noRefs=$.noRefs||!1,this.noCompatMode=$.noCompatMode||!1,this.condenseFlow=$.condenseFlow||!1,this.quotingType=$.quotingType==='"'?k4:gQ,this.forceQuotes=$.forceQuotes||!1,this.replacer=typeof $.replacer==="function"?$.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function AX($,G){var X=w1.repeat(" ",G),Y=0,W=-1,q="",V,J=$.length;while(Y<J){if(W=$.indexOf(`
|
|
105
105
|
`,Y),W===-1)V=$.slice(Y),Y=J;else V=$.slice(Y,W+1),Y=W+1;if(V.length&&V!==`
|
|
106
106
|
`)q+=X;q+=V}return q}function l8($,G){return`
|
|
107
|
-
`+w1.repeat(" ",$.indent*G)}function
|
|
107
|
+
`+w1.repeat(" ",$.indent*G)}function yQ($,G){var X,Y,W;for(X=0,Y=$.implicitTypes.length;X<Y;X+=1)if(W=$.implicitTypes[X],W.resolve(G))return!0;return!1}function c6($){return $===BQ||$===FQ}function b4($){return 32<=$&&$<=126||161<=$&&$<=55295&&$!==8232&&$!==8233||57344<=$&&$<=65533&&$!==o8||65536<=$&&$<=1114111}function QX($){return b4($)&&$!==o8&&$!==wQ&&$!==x4}function KX($,G,X){var Y=QX($),W=Y&&!c6($);return(X?Y:Y&&$!==yX&&$!==fX&&$!==mX&&$!==uX&&$!==pX)&&$!==p8&&!(G===r6&&!W)||QX(G)&&!c6(G)&&$===p8||G===r6&&W}function fQ($){return b4($)&&$!==o8&&!c6($)&&$!==LQ&&$!==EQ&&$!==r6&&$!==yX&&$!==fX&&$!==mX&&$!==uX&&$!==pX&&$!==p8&&$!==zQ&&$!==_Q&&$!==OQ&&$!==IQ&&$!==CQ&&$!==TQ&&$!==ZQ&&$!==PQ&&$!==NQ&&$!==jQ&&$!==SQ}function mQ($){return!c6($)&&$!==r6}function S4($,G){var X=$.charCodeAt(G),Y;if(X>=55296&&X<=56319&&G+1<$.length){if(Y=$.charCodeAt(G+1),Y>=56320&&Y<=57343)return(X-55296)*1024+Y-56320+65536}return X}function lX($){var G=/^\n* /;return G.test($)}var rX=1,r8=2,cX=3,dX=4,m2=5;function uQ($,G,X,Y,W,q,V,J){var U,R=0,D=null,M=!1,F=!1,K=Y!==-1,z=-1,Z=fQ(S4($,0))&&mQ(S4($,$.length-1));if(G||V)for(U=0;U<$.length;R>=65536?U+=2:U++){if(R=S4($,U),!b4(R))return m2;Z=Z&&KX(R,D,J),D=R}else{for(U=0;U<$.length;R>=65536?U+=2:U++){if(R=S4($,U),R===x4){if(M=!0,K)F=F||U-z-1>Y&&$[z+1]!==" ",z=U}else if(!b4(R))return m2;Z=Z&&KX(R,D,J),D=R}F=F||K&&(U-z-1>Y&&$[z+1]!==" ")}if(!M&&!F){if(Z&&!V&&!W($))return rX;return q===k4?m2:r8}if(X>9&&lX($))return m2;if(!V)return F?dX:cX;return q===k4?m2:r8}function pQ($,G,X,Y,W){$.dump=function(){if(G.length===0)return $.quotingType===k4?'""':"''";if(!$.noCompatMode){if(xQ.indexOf(G)!==-1||kQ.test(G))return $.quotingType===k4?'"'+G+'"':"'"+G+"'"}var q=$.indent*Math.max(1,X),V=$.lineWidth===-1?-1:Math.max(Math.min($.lineWidth,40),$.lineWidth-q),J=Y||$.flowLevel>-1&&X>=$.flowLevel;function U(R){return yQ($,R)}switch(uQ(G,J,$.indent,V,U,$.quotingType,$.forceQuotes&&!Y,W)){case rX:return G;case r8:return"'"+G.replace(/'/g,"''")+"'";case cX:return"|"+FX(G,$.indent)+wX(AX(G,q));case dX:return">"+FX(G,$.indent)+wX(AX(lQ(G,V),q));case m2:return'"'+rQ(G)+'"';default:throw new y1("impossible error: invalid scalar style")}}()}function FX($,G){var X=lX($)?String(G):"",Y=$[$.length-1]===`
|
|
108
108
|
`,W=Y&&($[$.length-2]===`
|
|
109
109
|
`||$===`
|
|
110
110
|
`),q=W?"+":Y?"":"-";return X+q+`
|
|
111
111
|
`}function wX($){return $[$.length-1]===`
|
|
112
|
-
`?$.slice(0,-1):$}function
|
|
112
|
+
`?$.slice(0,-1):$}function lQ($,G){var X=/(\n+)([^\n]*)/g,Y=function(){var R=$.indexOf(`
|
|
113
113
|
`);return R=R!==-1?R:$.length,X.lastIndex=R,BX($.slice(0,R),G)}(),W=$[0]===`
|
|
114
114
|
`||$[0]===" ",q,V;while(V=X.exec($)){var J=V[1],U=V[2];q=U[0]===" ",Y+=J+(!W&&!q&&U!==""?`
|
|
115
115
|
`:"")+BX(U,G),W=q}return Y}function BX($,G){if($===""||$[0]===" ")return $;var X=/ [^ ]/g,Y,W=0,q,V=0,J=0,U="";while(Y=X.exec($)){if(J=Y.index,J-W>G)q=V>W?V:J,U+=`
|
|
116
116
|
`+$.slice(W,q),W=q+1;V=J}if(U+=`
|
|
117
117
|
`,$.length-W>G&&V>W)U+=$.slice(W,V)+`
|
|
118
|
-
`+$.slice(V+1);else U+=$.slice(W);return U.slice(1)}function
|
|
119
|
-
`;return""}var sA=oA,aA={dump:sA};function s8($,G){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+G+" instead, which is now safe by default.")}}var{load:tA,loadAll:kT}=vX,eA=aA.dump;var bT=s8("safeLoad","load"),vT=s8("safeLoadAll","loadAll"),gT=s8("safeDump","dump");import{webcrypto as nX}from"crypto";var iX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var GK=128,U2,r2;function XK($){if($<0||$>1024)throw RangeError("Wrong ID size");if(!U2||U2.length<$)U2=Buffer.allocUnsafe($*GK),nX.getRandomValues(U2),r2=0;else if(r2+$>U2.length)nX.getRandomValues(U2),r2=0;r2+=$}function oX($=21){XK($|=0);let G="";for(let X=r2-$;X<r2;X++)G+=iX[U2[X]&63];return G}function g0($=12){return oX($)}function v4($){if(Array.isArray($))return $.map(v4);if(!$||typeof $!=="object")return $;if($ instanceof Uint8Array)return $;return Object.fromEntries(Object.entries($).filter(([,G])=>G!==void 0).map(([G,X])=>[G,v4(X)]))}var H={};t9(H,{void:()=>mK,util:()=>a,unknown:()=>yK,union:()=>rK,undefined:()=>vK,tuple:()=>iK,transformer:()=>YF,symbol:()=>bK,string:()=>WY,strictObject:()=>lK,setErrorMap:()=>qK,set:()=>sK,record:()=>nK,quotelessJson:()=>YK,promise:()=>XF,preprocess:()=>VF,pipeline:()=>JF,ostring:()=>HF,optional:()=>WF,onumber:()=>UF,oboolean:()=>RF,objectUtil:()=>a8,object:()=>pK,number:()=>qY,nullable:()=>qF,null:()=>gK,never:()=>fK,nativeEnum:()=>GF,nan:()=>IK,map:()=>oK,makeIssue:()=>g4,literal:()=>eK,lazy:()=>tK,late:()=>jK,isValid:()=>h0,isDirty:()=>n6,isAsync:()=>d2,isAborted:()=>i6,intersection:()=>dK,instanceof:()=>SK,getParsedType:()=>J0,getErrorMap:()=>c2,function:()=>aK,enum:()=>$F,effect:()=>YF,discriminatedUnion:()=>cK,defaultErrorMap:()=>N0,datetimeRegex:()=>GY,date:()=>kK,custom:()=>YY,coerce:()=>DF,boolean:()=>VY,bigint:()=>xK,array:()=>uK,any:()=>hK,addIssueToContext:()=>x,ZodVoid:()=>y4,ZodUnknown:()=>y0,ZodUnion:()=>t2,ZodUndefined:()=>s2,ZodType:()=>o,ZodTuple:()=>U0,ZodTransformer:()=>G0,ZodSymbol:()=>h4,ZodString:()=>a1,ZodSet:()=>Q2,ZodSchema:()=>o,ZodRecord:()=>f4,ZodReadonly:()=>q4,ZodPromise:()=>A2,ZodPipeline:()=>p4,ZodParsedType:()=>j,ZodOptional:()=>e1,ZodObject:()=>V1,ZodNumber:()=>f0,ZodNullable:()=>z0,ZodNull:()=>a2,ZodNever:()=>H0,ZodNativeEnum:()=>X4,ZodNaN:()=>u4,ZodMap:()=>m4,ZodLiteral:()=>G4,ZodLazy:()=>$4,ZodIssueCode:()=>E,ZodIntersection:()=>e2,ZodFunction:()=>n2,ZodFirstPartyTypeKind:()=>p,ZodError:()=>j1,ZodEnum:()=>u0,ZodEffects:()=>G0,ZodDiscriminatedUnion:()=>o6,ZodDefault:()=>Y4,ZodDate:()=>D2,ZodCatch:()=>W4,ZodBranded:()=>s6,ZodBoolean:()=>o2,ZodBigInt:()=>m0,ZodArray:()=>t1,ZodAny:()=>M2,Schema:()=>o,ParseStatus:()=>_1,OK:()=>S1,NEVER:()=>MF,INVALID:()=>u,EMPTY_PATH:()=>VK,DIRTY:()=>R2,BRAND:()=>EK});var a;(function($){$.assertEqual=(W)=>{};function G(W){}$.assertIs=G;function X(W){throw Error()}$.assertNever=X,$.arrayToEnum=(W)=>{let q={};for(let V of W)q[V]=V;return q},$.getValidEnumValues=(W)=>{let q=$.objectKeys(W).filter((J)=>typeof W[W[J]]!=="number"),V={};for(let J of q)V[J]=W[J];return $.objectValues(V)},$.objectValues=(W)=>{return $.objectKeys(W).map(function(q){return W[q]})},$.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let q=[];for(let V in W)if(Object.prototype.hasOwnProperty.call(W,V))q.push(V);return q},$.find=(W,q)=>{for(let V of W)if(q(V))return V;return},$.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function Y(W,q=" | "){return W.map((V)=>typeof V==="string"?`'${V}'`:V).join(q)}$.joinValues=Y,$.jsonStringifyReplacer=(W,q)=>{if(typeof q==="bigint")return q.toString();return q}})(a||(a={}));var a8;(function($){$.mergeShapes=(G,X)=>{return{...G,...X}}})(a8||(a8={}));var j=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),J0=($)=>{switch(typeof $){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN($)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":if(Array.isArray($))return j.array;if($===null)return j.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return j.promise;if(typeof Map<"u"&&$ instanceof Map)return j.map;if(typeof Set<"u"&&$ instanceof Set)return j.set;if(typeof Date<"u"&&$ instanceof Date)return j.date;return j.object;default:return j.unknown}};var E=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),YK=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class j1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(X)=>{this.issues=[...this.issues,X]},this.addIssues=(X=[])=>{this.issues=[...this.issues,...X]};let G=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,G);else this.__proto__=G;this.name="ZodError",this.issues=$}format($){let G=$||function(W){return W.message},X={_errors:[]},Y=(W)=>{for(let q of W.issues)if(q.code==="invalid_union")q.unionErrors.map(Y);else if(q.code==="invalid_return_type")Y(q.returnTypeError);else if(q.code==="invalid_arguments")Y(q.argumentsError);else if(q.path.length===0)X._errors.push(G(q));else{let V=X,J=0;while(J<q.path.length){let U=q.path[J];if(J!==q.path.length-1)V[U]=V[U]||{_errors:[]};else V[U]=V[U]||{_errors:[]},V[U]._errors.push(G(q));V=V[U],J++}}};return Y(this),X}static assert($){if(!($ instanceof j1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(G)=>G.message){let G={},X=[];for(let Y of this.issues)if(Y.path.length>0){let W=Y.path[0];G[W]=G[W]||[],G[W].push($(Y))}else X.push($(Y));return{formErrors:X,fieldErrors:G}}get formErrors(){return this.flatten()}}j1.create=($)=>{return new j1($)};var WK=($,G)=>{let X;switch($.code){case E.invalid_type:if($.received===j.undefined)X="Required";else X=`Expected ${$.expected}, received ${$.received}`;break;case E.invalid_literal:X=`Invalid literal value, expected ${JSON.stringify($.expected,a.jsonStringifyReplacer)}`;break;case E.unrecognized_keys:X=`Unrecognized key(s) in object: ${a.joinValues($.keys,", ")}`;break;case E.invalid_union:X="Invalid input";break;case E.invalid_union_discriminator:X=`Invalid discriminator value. Expected ${a.joinValues($.options)}`;break;case E.invalid_enum_value:X=`Invalid enum value. Expected ${a.joinValues($.options)}, received '${$.received}'`;break;case E.invalid_arguments:X="Invalid function arguments";break;case E.invalid_return_type:X="Invalid function return type";break;case E.invalid_date:X="Invalid date";break;case E.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(X=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")X=`${X} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)X=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)X=`Invalid input: must end with "${$.validation.endsWith}"`;else a.assertNever($.validation);else if($.validation!=="regex")X=`Invalid ${$.validation}`;else X="Invalid";break;case E.too_small:if($.type==="array")X=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")X=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")X=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")X=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")X=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else X="Invalid input";break;case E.too_big:if($.type==="array")X=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")X=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")X=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")X=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")X=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else X="Invalid input";break;case E.custom:X="Invalid input";break;case E.invalid_intersection_types:X="Intersection results could not be merged";break;case E.not_multiple_of:X=`Number must be a multiple of ${$.multipleOf}`;break;case E.not_finite:X="Number must be finite";break;default:X=G.defaultError,a.assertNever($)}return{message:X}},N0=WK;var sX=N0;function qK($){sX=$}function c2(){return sX}var g4=($)=>{let{data:G,path:X,errorMaps:Y,issueData:W}=$,q=[...X,...W.path||[]],V={...W,path:q};if(W.message!==void 0)return{...W,path:q,message:W.message};let J="",U=Y.filter((R)=>!!R).slice().reverse();for(let R of U)J=R(V,{data:G,defaultError:J}).message;return{...W,path:q,message:J}},VK=[];function x($,G){let X=c2(),Y=g4({issueData:G,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,X,X===N0?void 0:N0].filter((W)=>!!W)});$.common.issues.push(Y)}class _1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,G){let X=[];for(let Y of G){if(Y.status==="aborted")return u;if(Y.status==="dirty")$.dirty();X.push(Y.value)}return{status:$.value,value:X}}static async mergeObjectAsync($,G){let X=[];for(let Y of G){let W=await Y.key,q=await Y.value;X.push({key:W,value:q})}return _1.mergeObjectSync($,X)}static mergeObjectSync($,G){let X={};for(let Y of G){let{key:W,value:q}=Y;if(W.status==="aborted")return u;if(q.status==="aborted")return u;if(W.status==="dirty")$.dirty();if(q.status==="dirty")$.dirty();if(W.value!=="__proto__"&&(typeof q.value<"u"||Y.alwaysSet))X[W.value]=q.value}return{status:$.value,value:X}}}var u=Object.freeze({status:"aborted"}),R2=($)=>({status:"dirty",value:$}),S1=($)=>({status:"valid",value:$}),i6=($)=>$.status==="aborted",n6=($)=>$.status==="dirty",h0=($)=>$.status==="valid",d2=($)=>typeof Promise<"u"&&$ instanceof Promise;var g;(function($){$.errToObj=(G)=>typeof G==="string"?{message:G}:G||{},$.toString=(G)=>typeof G==="string"?G:G?.message})(g||(g={}));class $0{constructor($,G,X,Y){this._cachedPath=[],this.parent=$,this.data=G,this._path=X,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var aX=($,G)=>{if(h0(G))return{success:!0,data:G.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let X=new j1($.common.issues);return this._error=X,this._error}}}};function d($){if(!$)return{};let{errorMap:G,invalid_type_error:X,required_error:Y,description:W}=$;if(G&&(X||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(G)return{errorMap:G,description:W};return{errorMap:(V,J)=>{let{message:U}=$;if(V.code==="invalid_enum_value")return{message:U??J.defaultError};if(typeof J.data>"u")return{message:U??Y??J.defaultError};if(V.code!=="invalid_type")return{message:J.defaultError};return{message:U??X??J.defaultError}},description:W}}class o{get description(){return this._def.description}_getType($){return J0($.data)}_getOrReturnCtx($,G){return G||{common:$.parent.common,data:$.data,parsedType:J0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new _1,ctx:{common:$.parent.common,data:$.data,parsedType:J0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let G=this._parse($);if(d2(G))throw Error("Synchronous parse encountered promise.");return G}_parseAsync($){let G=this._parse($);return Promise.resolve(G)}parse($,G){let X=this.safeParse($,G);if(X.success)return X.data;throw X.error}safeParse($,G){let X={common:{issues:[],async:G?.async??!1,contextualErrorMap:G?.errorMap},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:J0($)},Y=this._parseSync({data:$,path:X.path,parent:X});return aX(X,Y)}"~validate"($){let G={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:J0($)};if(!this["~standard"].async)try{let X=this._parseSync({data:$,path:[],parent:G});return h0(X)?{value:X.value}:{issues:G.common.issues}}catch(X){if(X?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;G.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:G}).then((X)=>h0(X)?{value:X.value}:{issues:G.common.issues})}async parseAsync($,G){let X=await this.safeParseAsync($,G);if(X.success)return X.data;throw X.error}async safeParseAsync($,G){let X={common:{issues:[],contextualErrorMap:G?.errorMap,async:!0},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:J0($)},Y=this._parse({data:$,path:X.path,parent:X}),W=await(d2(Y)?Y:Promise.resolve(Y));return aX(X,W)}refine($,G){let X=(Y)=>{if(typeof G==="string"||typeof G>"u")return{message:G};else if(typeof G==="function")return G(Y);else return G};return this._refinement((Y,W)=>{let q=$(Y),V=()=>W.addIssue({code:E.custom,...X(Y)});if(typeof Promise<"u"&&q instanceof Promise)return q.then((J)=>{if(!J)return V(),!1;else return!0});if(!q)return V(),!1;else return!0})}refinement($,G){return this._refinement((X,Y)=>{if(!$(X))return Y.addIssue(typeof G==="function"?G(X,Y):G),!1;else return!0})}_refinement($){return new G0({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(G)=>this["~validate"](G)}}optional(){return e1.create(this,this._def)}nullable(){return z0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return t1.create(this)}promise(){return A2.create(this,this._def)}or($){return t2.create([this,$],this._def)}and($){return e2.create(this,$,this._def)}transform($){return new G0({...d(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:$}})}default($){let G=typeof $==="function"?$:()=>$;return new Y4({...d(this._def),innerType:this,defaultValue:G,typeName:p.ZodDefault})}brand(){return new s6({typeName:p.ZodBranded,type:this,...d(this._def)})}catch($){let G=typeof $==="function"?$:()=>$;return new W4({...d(this._def),innerType:this,catchValue:G,typeName:p.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return p4.create(this,$)}readonly(){return q4.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var JK=/^c[^\s-]{8,}$/i,HK=/^[0-9a-z]+$/,UK=/^[0-9A-HJKMNP-TV-Z]{26}$/i,RK=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,DK=/^[a-z0-9_-]{21}$/i,MK=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,QK=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,AK=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",t8,FK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,BK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,OK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,PK=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,NK=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eX="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ZK=new RegExp(`^${eX}$`);function $Y($){let G="[0-5]\\d";if($.precision)G=`${G}\\.\\d{${$.precision}}`;else if($.precision==null)G=`${G}(\\.\\d+)?`;let X=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${G})${X}`}function zK($){return new RegExp(`^${$Y($)}$`)}function GY($){let G=`${eX}T${$Y($)}`,X=[];if(X.push($.local?"Z?":"Z"),$.offset)X.push("([+-]\\d{2}:?\\d{2})");return G=`${G}(${X.join("|")})`,new RegExp(`^${G}$`)}function _K($,G){if((G==="v4"||!G)&&FK.test($))return!0;if((G==="v6"||!G)&&BK.test($))return!0;return!1}function LK($,G){if(!MK.test($))return!1;try{let[X]=$.split(".");if(!X)return!1;let Y=X.replace(/-/g,"+").replace(/_/g,"/").padEnd(X.length+(4-X.length%4)%4,"="),W=JSON.parse(atob(Y));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if(G&&W.alg!==G)return!1;return!0}catch{return!1}}function CK($,G){if((G==="v4"||!G)&&wK.test($))return!0;if((G==="v6"||!G)&&OK.test($))return!0;return!1}class a1 extends o{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==j.string){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_type,expected:j.string,received:W.parsedType}),u}let X=new _1,Y=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.length<W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),X.dirty()}else if(W.kind==="max"){if($.data.length>W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),X.dirty()}else if(W.kind==="length"){let q=$.data.length>W.value,V=$.data.length<W.value;if(q||V){if(Y=this._getOrReturnCtx($,Y),q)x(Y,{code:E.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(V)x(Y,{code:E.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});X.dirty()}}else if(W.kind==="email"){if(!AK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"email",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="emoji"){if(!t8)t8=new RegExp(KK,"u");if(!t8.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"emoji",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="uuid"){if(!RK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"uuid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="nanoid"){if(!DK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"nanoid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="cuid"){if(!JK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"cuid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="cuid2"){if(!HK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"cuid2",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="ulid"){if(!UK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"ulid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="url")try{new URL($.data)}catch{Y=this._getOrReturnCtx($,Y),x(Y,{validation:"url",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"regex",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="trim")$.data=$.data.trim();else if(W.kind==="includes"){if(!$.data.includes(W.value,W.position))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),X.dirty()}else if(W.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(W.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(W.kind==="startsWith"){if(!$.data.startsWith(W.value))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:{startsWith:W.value},message:W.message}),X.dirty()}else if(W.kind==="endsWith"){if(!$.data.endsWith(W.value))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:{endsWith:W.value},message:W.message}),X.dirty()}else if(W.kind==="datetime"){if(!GY(W).test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:"datetime",message:W.message}),X.dirty()}else if(W.kind==="date"){if(!ZK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:"date",message:W.message}),X.dirty()}else if(W.kind==="time"){if(!zK(W).test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:"time",message:W.message}),X.dirty()}else if(W.kind==="duration"){if(!QK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"duration",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="ip"){if(!_K($.data,W.version))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"ip",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="jwt"){if(!LK($.data,W.alg))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"jwt",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="cidr"){if(!CK($.data,W.version))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"cidr",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="base64"){if(!PK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"base64",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="base64url"){if(!NK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"base64url",code:E.invalid_string,message:W.message}),X.dirty()}else a.assertNever(W);return{status:X.value,value:$.data}}_regex($,G,X){return this.refinement((Y)=>$.test(Y),{validation:G,code:E.invalid_string,...g.errToObj(X)})}_addCheck($){return new a1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...g.errToObj($)})}url($){return this._addCheck({kind:"url",...g.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...g.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...g.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...g.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...g.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...g.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...g.errToObj($)})}base64($){return this._addCheck({kind:"base64",...g.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...g.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...g.errToObj($)})}ip($){return this._addCheck({kind:"ip",...g.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...g.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...g.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...g.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...g.errToObj($)})}regex($,G){return this._addCheck({kind:"regex",regex:$,...g.errToObj(G)})}includes($,G){return this._addCheck({kind:"includes",value:$,position:G?.position,...g.errToObj(G?.message)})}startsWith($,G){return this._addCheck({kind:"startsWith",value:$,...g.errToObj(G)})}endsWith($,G){return this._addCheck({kind:"endsWith",value:$,...g.errToObj(G)})}min($,G){return this._addCheck({kind:"min",value:$,...g.errToObj(G)})}max($,G){return this._addCheck({kind:"max",value:$,...g.errToObj(G)})}length($,G){return this._addCheck({kind:"length",value:$,...g.errToObj(G)})}nonempty($){return this.min(1,g.errToObj($))}trim(){return new a1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new a1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new a1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxLength(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}a1.create=($)=>{return new a1({checks:[],typeName:p.ZodString,coerce:$?.coerce??!1,...d($)})};function TK($,G){let X=($.toString().split(".")[1]||"").length,Y=(G.toString().split(".")[1]||"").length,W=X>Y?X:Y,q=Number.parseInt($.toFixed(W).replace(".","")),V=Number.parseInt(G.toFixed(W).replace(".",""));return q%V/10**W}class f0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==j.number){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_type,expected:j.number,received:W.parsedType}),u}let X=void 0,Y=new _1;for(let W of this._def.checks)if(W.kind==="int"){if(!a.isInteger($.data))X=this._getOrReturnCtx($,X),x(X,{code:E.invalid_type,expected:"integer",received:"float",message:W.message}),Y.dirty()}else if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),Y.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),Y.dirty()}else if(W.kind==="multipleOf"){if(TK($.data,W.value)!==0)X=this._getOrReturnCtx($,X),x(X,{code:E.not_multiple_of,multipleOf:W.value,message:W.message}),Y.dirty()}else if(W.kind==="finite"){if(!Number.isFinite($.data))X=this._getOrReturnCtx($,X),x(X,{code:E.not_finite,message:W.message}),Y.dirty()}else a.assertNever(W);return{status:Y.value,value:$.data}}gte($,G){return this.setLimit("min",$,!0,g.toString(G))}gt($,G){return this.setLimit("min",$,!1,g.toString(G))}lte($,G){return this.setLimit("max",$,!0,g.toString(G))}lt($,G){return this.setLimit("max",$,!1,g.toString(G))}setLimit($,G,X,Y){return new f0({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:X,message:g.toString(Y)}]})}_addCheck($){return new f0({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:g.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:g.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:g.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:g.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:g.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:g.toString(G)})}finite($){return this._addCheck({kind:"finite",message:g.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:g.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:g.toString($)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&a.isInteger($.value))}get isFinite(){let $=null,G=null;for(let X of this._def.checks)if(X.kind==="finite"||X.kind==="int"||X.kind==="multipleOf")return!0;else if(X.kind==="min"){if(G===null||X.value>G)G=X.value}else if(X.kind==="max"){if($===null||X.value<$)$=X.value}return Number.isFinite(G)&&Number.isFinite($)}}f0.create=($)=>{return new f0({checks:[],typeName:p.ZodNumber,coerce:$?.coerce||!1,...d($)})};class m0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==j.bigint)return this._getInvalidInput($);let X=void 0,Y=new _1;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),Y.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),Y.dirty()}else if(W.kind==="multipleOf"){if($.data%W.value!==BigInt(0))X=this._getOrReturnCtx($,X),x(X,{code:E.not_multiple_of,multipleOf:W.value,message:W.message}),Y.dirty()}else a.assertNever(W);return{status:Y.value,value:$.data}}_getInvalidInput($){let G=this._getOrReturnCtx($);return x(G,{code:E.invalid_type,expected:j.bigint,received:G.parsedType}),u}gte($,G){return this.setLimit("min",$,!0,g.toString(G))}gt($,G){return this.setLimit("min",$,!1,g.toString(G))}lte($,G){return this.setLimit("max",$,!0,g.toString(G))}lt($,G){return this.setLimit("max",$,!1,g.toString(G))}setLimit($,G,X,Y){return new m0({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:X,message:g.toString(Y)}]})}_addCheck($){return new m0({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:g.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:g.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:g.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:g.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:g.toString(G)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}m0.create=($)=>{return new m0({checks:[],typeName:p.ZodBigInt,coerce:$?.coerce??!1,...d($)})};class o2 extends o{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==j.boolean){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.boolean,received:X.parsedType}),u}return S1($.data)}}o2.create=($)=>{return new o2({typeName:p.ZodBoolean,coerce:$?.coerce||!1,...d($)})};class D2 extends o{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==j.date){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_type,expected:j.date,received:W.parsedType}),u}if(Number.isNaN($.data.getTime())){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_date}),u}let X=new _1,Y=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.getTime()<W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),X.dirty()}else if(W.kind==="max"){if($.data.getTime()>W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),X.dirty()}else a.assertNever(W);return{status:X.value,value:new Date($.data.getTime())}}_addCheck($){return new D2({...this._def,checks:[...this._def.checks,$]})}min($,G){return this._addCheck({kind:"min",value:$.getTime(),message:g.toString(G)})}max($,G){return this._addCheck({kind:"max",value:$.getTime(),message:g.toString(G)})}get minDate(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $!=null?new Date($):null}}D2.create=($)=>{return new D2({checks:[],coerce:$?.coerce||!1,typeName:p.ZodDate,...d($)})};class h4 extends o{_parse($){if(this._getType($)!==j.symbol){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.symbol,received:X.parsedType}),u}return S1($.data)}}h4.create=($)=>{return new h4({typeName:p.ZodSymbol,...d($)})};class s2 extends o{_parse($){if(this._getType($)!==j.undefined){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.undefined,received:X.parsedType}),u}return S1($.data)}}s2.create=($)=>{return new s2({typeName:p.ZodUndefined,...d($)})};class a2 extends o{_parse($){if(this._getType($)!==j.null){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.null,received:X.parsedType}),u}return S1($.data)}}a2.create=($)=>{return new a2({typeName:p.ZodNull,...d($)})};class M2 extends o{constructor(){super(...arguments);this._any=!0}_parse($){return S1($.data)}}M2.create=($)=>{return new M2({typeName:p.ZodAny,...d($)})};class y0 extends o{constructor(){super(...arguments);this._unknown=!0}_parse($){return S1($.data)}}y0.create=($)=>{return new y0({typeName:p.ZodUnknown,...d($)})};class H0 extends o{_parse($){let G=this._getOrReturnCtx($);return x(G,{code:E.invalid_type,expected:j.never,received:G.parsedType}),u}}H0.create=($)=>{return new H0({typeName:p.ZodNever,...d($)})};class y4 extends o{_parse($){if(this._getType($)!==j.undefined){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.void,received:X.parsedType}),u}return S1($.data)}}y4.create=($)=>{return new y4({typeName:p.ZodVoid,...d($)})};class t1 extends o{_parse($){let{ctx:G,status:X}=this._processInputParams($),Y=this._def;if(G.parsedType!==j.array)return x(G,{code:E.invalid_type,expected:j.array,received:G.parsedType}),u;if(Y.exactLength!==null){let q=G.data.length>Y.exactLength.value,V=G.data.length<Y.exactLength.value;if(q||V)x(G,{code:q?E.too_big:E.too_small,minimum:V?Y.exactLength.value:void 0,maximum:q?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),X.dirty()}if(Y.minLength!==null){if(G.data.length<Y.minLength.value)x(G,{code:E.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),X.dirty()}if(Y.maxLength!==null){if(G.data.length>Y.maxLength.value)x(G,{code:E.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),X.dirty()}if(G.common.async)return Promise.all([...G.data].map((q,V)=>{return Y.type._parseAsync(new $0(G,q,G.path,V))})).then((q)=>{return _1.mergeArray(X,q)});let W=[...G.data].map((q,V)=>{return Y.type._parseSync(new $0(G,q,G.path,V))});return _1.mergeArray(X,W)}get element(){return this._def.type}min($,G){return new t1({...this._def,minLength:{value:$,message:g.toString(G)}})}max($,G){return new t1({...this._def,maxLength:{value:$,message:g.toString(G)}})}length($,G){return new t1({...this._def,exactLength:{value:$,message:g.toString(G)}})}nonempty($){return this.min(1,$)}}t1.create=($,G)=>{return new t1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...d(G)})};function i2($){if($ instanceof V1){let G={};for(let X in $.shape){let Y=$.shape[X];G[X]=e1.create(i2(Y))}return new V1({...$._def,shape:()=>G})}else if($ instanceof t1)return new t1({...$._def,type:i2($.element)});else if($ instanceof e1)return e1.create(i2($.unwrap()));else if($ instanceof z0)return z0.create(i2($.unwrap()));else if($ instanceof U0)return U0.create($.items.map((G)=>i2(G)));else return $}class V1 extends o{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),G=a.objectKeys($);return this._cached={shape:$,keys:G},this._cached}_parse($){if(this._getType($)!==j.object){let U=this._getOrReturnCtx($);return x(U,{code:E.invalid_type,expected:j.object,received:U.parsedType}),u}let{status:X,ctx:Y}=this._processInputParams($),{shape:W,keys:q}=this._getCached(),V=[];if(!(this._def.catchall instanceof H0&&this._def.unknownKeys==="strip")){for(let U in Y.data)if(!q.includes(U))V.push(U)}let J=[];for(let U of q){let R=W[U],D=Y.data[U];J.push({key:{status:"valid",value:U},value:R._parse(new $0(Y,D,Y.path,U)),alwaysSet:U in Y.data})}if(this._def.catchall instanceof H0){let U=this._def.unknownKeys;if(U==="passthrough")for(let R of V)J.push({key:{status:"valid",value:R},value:{status:"valid",value:Y.data[R]}});else if(U==="strict"){if(V.length>0)x(Y,{code:E.unrecognized_keys,keys:V}),X.dirty()}else if(U==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let U=this._def.catchall;for(let R of V){let D=Y.data[R];J.push({key:{status:"valid",value:R},value:U._parse(new $0(Y,D,Y.path,R)),alwaysSet:R in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let U=[];for(let R of J){let D=await R.key,M=await R.value;U.push({key:D,value:M,alwaysSet:R.alwaysSet})}return U}).then((U)=>{return _1.mergeObjectSync(X,U)});else return _1.mergeObjectSync(X,J)}get shape(){return this._def.shape()}strict($){return g.errToObj,new V1({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(G,X)=>{let Y=this._def.errorMap?.(G,X).message??X.defaultError;if(G.code==="unrecognized_keys")return{message:g.errToObj($).message??Y};return{message:Y}}}:{}})}strip(){return new V1({...this._def,unknownKeys:"strip"})}passthrough(){return new V1({...this._def,unknownKeys:"passthrough"})}extend($){return new V1({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new V1({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:p.ZodObject})}setKey($,G){return this.augment({[$]:G})}catchall($){return new V1({...this._def,catchall:$})}pick($){let G={};for(let X of a.objectKeys($))if($[X]&&this.shape[X])G[X]=this.shape[X];return new V1({...this._def,shape:()=>G})}omit($){let G={};for(let X of a.objectKeys(this.shape))if(!$[X])G[X]=this.shape[X];return new V1({...this._def,shape:()=>G})}deepPartial(){return i2(this)}partial($){let G={};for(let X of a.objectKeys(this.shape)){let Y=this.shape[X];if($&&!$[X])G[X]=Y;else G[X]=Y.optional()}return new V1({...this._def,shape:()=>G})}required($){let G={};for(let X of a.objectKeys(this.shape))if($&&!$[X])G[X]=this.shape[X];else{let W=this.shape[X];while(W instanceof e1)W=W._def.innerType;G[X]=W}return new V1({...this._def,shape:()=>G})}keyof(){return XY(a.objectKeys(this.shape))}}V1.create=($,G)=>{return new V1({shape:()=>$,unknownKeys:"strip",catchall:H0.create(),typeName:p.ZodObject,...d(G)})};V1.strictCreate=($,G)=>{return new V1({shape:()=>$,unknownKeys:"strict",catchall:H0.create(),typeName:p.ZodObject,...d(G)})};V1.lazycreate=($,G)=>{return new V1({shape:$,unknownKeys:"strip",catchall:H0.create(),typeName:p.ZodObject,...d(G)})};class t2 extends o{_parse($){let{ctx:G}=this._processInputParams($),X=this._def.options;function Y(W){for(let V of W)if(V.result.status==="valid")return V.result;for(let V of W)if(V.result.status==="dirty")return G.common.issues.push(...V.ctx.common.issues),V.result;let q=W.map((V)=>new j1(V.ctx.common.issues));return x(G,{code:E.invalid_union,unionErrors:q}),u}if(G.common.async)return Promise.all(X.map(async(W)=>{let q={...G,common:{...G.common,issues:[]},parent:null};return{result:await W._parseAsync({data:G.data,path:G.path,parent:q}),ctx:q}})).then(Y);else{let W=void 0,q=[];for(let J of X){let U={...G,common:{...G.common,issues:[]},parent:null},R=J._parseSync({data:G.data,path:G.path,parent:U});if(R.status==="valid")return R;else if(R.status==="dirty"&&!W)W={result:R,ctx:U};if(U.common.issues.length)q.push(U.common.issues)}if(W)return G.common.issues.push(...W.ctx.common.issues),W.result;let V=q.map((J)=>new j1(J));return x(G,{code:E.invalid_union,unionErrors:V}),u}}get options(){return this._def.options}}t2.create=($,G)=>{return new t2({options:$,typeName:p.ZodUnion,...d(G)})};var Z0=($)=>{if($ instanceof $4)return Z0($.schema);else if($ instanceof G0)return Z0($.innerType());else if($ instanceof G4)return[$.value];else if($ instanceof u0)return $.options;else if($ instanceof X4)return a.objectValues($.enum);else if($ instanceof Y4)return Z0($._def.innerType);else if($ instanceof s2)return[void 0];else if($ instanceof a2)return[null];else if($ instanceof e1)return[void 0,...Z0($.unwrap())];else if($ instanceof z0)return[null,...Z0($.unwrap())];else if($ instanceof s6)return Z0($.unwrap());else if($ instanceof q4)return Z0($.unwrap());else if($ instanceof W4)return Z0($._def.innerType);else return[]};class o6 extends o{_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==j.object)return x(G,{code:E.invalid_type,expected:j.object,received:G.parsedType}),u;let X=this.discriminator,Y=G.data[X],W=this.optionsMap.get(Y);if(!W)return x(G,{code:E.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[X]}),u;if(G.common.async)return W._parseAsync({data:G.data,path:G.path,parent:G});else return W._parseSync({data:G.data,path:G.path,parent:G})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,G,X){let Y=new Map;for(let W of G){let q=Z0(W.shape[$]);if(!q.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let V of q){if(Y.has(V))throw Error(`Discriminator property ${String($)} has duplicate value ${String(V)}`);Y.set(V,W)}}return new o6({typeName:p.ZodDiscriminatedUnion,discriminator:$,options:G,optionsMap:Y,...d(X)})}}function e8($,G){let X=J0($),Y=J0(G);if($===G)return{valid:!0,data:$};else if(X===j.object&&Y===j.object){let W=a.objectKeys(G),q=a.objectKeys($).filter((J)=>W.indexOf(J)!==-1),V={...$,...G};for(let J of q){let U=e8($[J],G[J]);if(!U.valid)return{valid:!1};V[J]=U.data}return{valid:!0,data:V}}else if(X===j.array&&Y===j.array){if($.length!==G.length)return{valid:!1};let W=[];for(let q=0;q<$.length;q++){let V=$[q],J=G[q],U=e8(V,J);if(!U.valid)return{valid:!1};W.push(U.data)}return{valid:!0,data:W}}else if(X===j.date&&Y===j.date&&+$===+G)return{valid:!0,data:$};else return{valid:!1}}class e2 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($),Y=(W,q)=>{if(i6(W)||i6(q))return u;let V=e8(W.value,q.value);if(!V.valid)return x(X,{code:E.invalid_intersection_types}),u;if(n6(W)||n6(q))G.dirty();return{status:G.value,value:V.data}};if(X.common.async)return Promise.all([this._def.left._parseAsync({data:X.data,path:X.path,parent:X}),this._def.right._parseAsync({data:X.data,path:X.path,parent:X})]).then(([W,q])=>Y(W,q));else return Y(this._def.left._parseSync({data:X.data,path:X.path,parent:X}),this._def.right._parseSync({data:X.data,path:X.path,parent:X}))}}e2.create=($,G,X)=>{return new e2({left:$,right:G,typeName:p.ZodIntersection,...d(X)})};class U0 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.array)return x(X,{code:E.invalid_type,expected:j.array,received:X.parsedType}),u;if(X.data.length<this._def.items.length)return x(X,{code:E.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u;if(!this._def.rest&&X.data.length>this._def.items.length)x(X,{code:E.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G.dirty();let W=[...X.data].map((q,V)=>{let J=this._def.items[V]||this._def.rest;if(!J)return null;return J._parse(new $0(X,q,X.path,V))}).filter((q)=>!!q);if(X.common.async)return Promise.all(W).then((q)=>{return _1.mergeArray(G,q)});else return _1.mergeArray(G,W)}get items(){return this._def.items}rest($){return new U0({...this._def,rest:$})}}U0.create=($,G)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new U0({items:$,typeName:p.ZodTuple,rest:null,...d(G)})};class f4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.object)return x(X,{code:E.invalid_type,expected:j.object,received:X.parsedType}),u;let Y=[],W=this._def.keyType,q=this._def.valueType;for(let V in X.data)Y.push({key:W._parse(new $0(X,V,X.path,V)),value:q._parse(new $0(X,X.data[V],X.path,V)),alwaysSet:V in X.data});if(X.common.async)return _1.mergeObjectAsync(G,Y);else return _1.mergeObjectSync(G,Y)}get element(){return this._def.valueType}static create($,G,X){if(G instanceof o)return new f4({keyType:$,valueType:G,typeName:p.ZodRecord,...d(X)});return new f4({keyType:a1.create(),valueType:$,typeName:p.ZodRecord,...d(G)})}}class m4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.map)return x(X,{code:E.invalid_type,expected:j.map,received:X.parsedType}),u;let Y=this._def.keyType,W=this._def.valueType,q=[...X.data.entries()].map(([V,J],U)=>{return{key:Y._parse(new $0(X,V,X.path,[U,"key"])),value:W._parse(new $0(X,J,X.path,[U,"value"]))}});if(X.common.async){let V=new Map;return Promise.resolve().then(async()=>{for(let J of q){let U=await J.key,R=await J.value;if(U.status==="aborted"||R.status==="aborted")return u;if(U.status==="dirty"||R.status==="dirty")G.dirty();V.set(U.value,R.value)}return{status:G.value,value:V}})}else{let V=new Map;for(let J of q){let{key:U,value:R}=J;if(U.status==="aborted"||R.status==="aborted")return u;if(U.status==="dirty"||R.status==="dirty")G.dirty();V.set(U.value,R.value)}return{status:G.value,value:V}}}}m4.create=($,G,X)=>{return new m4({valueType:G,keyType:$,typeName:p.ZodMap,...d(X)})};class Q2 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.set)return x(X,{code:E.invalid_type,expected:j.set,received:X.parsedType}),u;let Y=this._def;if(Y.minSize!==null){if(X.data.size<Y.minSize.value)x(X,{code:E.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),G.dirty()}if(Y.maxSize!==null){if(X.data.size>Y.maxSize.value)x(X,{code:E.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),G.dirty()}let W=this._def.valueType;function q(J){let U=new Set;for(let R of J){if(R.status==="aborted")return u;if(R.status==="dirty")G.dirty();U.add(R.value)}return{status:G.value,value:U}}let V=[...X.data.values()].map((J,U)=>W._parse(new $0(X,J,X.path,U)));if(X.common.async)return Promise.all(V).then((J)=>q(J));else return q(V)}min($,G){return new Q2({...this._def,minSize:{value:$,message:g.toString(G)}})}max($,G){return new Q2({...this._def,maxSize:{value:$,message:g.toString(G)}})}size($,G){return this.min($,G).max($,G)}nonempty($){return this.min(1,$)}}Q2.create=($,G)=>{return new Q2({valueType:$,minSize:null,maxSize:null,typeName:p.ZodSet,...d(G)})};class n2 extends o{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==j.function)return x(G,{code:E.invalid_type,expected:j.function,received:G.parsedType}),u;function X(V,J){return g4({data:V,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,c2(),N0].filter((U)=>!!U),issueData:{code:E.invalid_arguments,argumentsError:J}})}function Y(V,J){return g4({data:V,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,c2(),N0].filter((U)=>!!U),issueData:{code:E.invalid_return_type,returnTypeError:J}})}let W={errorMap:G.common.contextualErrorMap},q=G.data;if(this._def.returns instanceof A2){let V=this;return S1(async function(...J){let U=new j1([]),R=await V._def.args.parseAsync(J,W).catch((F)=>{throw U.addIssue(X(J,F)),U}),D=await Reflect.apply(q,this,R);return await V._def.returns._def.type.parseAsync(D,W).catch((F)=>{throw U.addIssue(Y(D,F)),U})})}else{let V=this;return S1(function(...J){let U=V._def.args.safeParse(J,W);if(!U.success)throw new j1([X(J,U.error)]);let R=Reflect.apply(q,this,U.data),D=V._def.returns.safeParse(R,W);if(!D.success)throw new j1([Y(R,D.error)]);return D.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new n2({...this._def,args:U0.create($).rest(y0.create())})}returns($){return new n2({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,G,X){return new n2({args:$?$:U0.create([]).rest(y0.create()),returns:G||y0.create(),typeName:p.ZodFunction,...d(X)})}}class $4 extends o{get schema(){return this._def.getter()}_parse($){let{ctx:G}=this._processInputParams($);return this._def.getter()._parse({data:G.data,path:G.path,parent:G})}}$4.create=($,G)=>{return new $4({getter:$,typeName:p.ZodLazy,...d(G)})};class G4 extends o{_parse($){if($.data!==this._def.value){let G=this._getOrReturnCtx($);return x(G,{received:G.data,code:E.invalid_literal,expected:this._def.value}),u}return{status:"valid",value:$.data}}get value(){return this._def.value}}G4.create=($,G)=>{return new G4({value:$,typeName:p.ZodLiteral,...d(G)})};function XY($,G){return new u0({values:$,typeName:p.ZodEnum,...d(G)})}class u0 extends o{_parse($){if(typeof $.data!=="string"){let G=this._getOrReturnCtx($),X=this._def.values;return x(G,{expected:a.joinValues(X),received:G.parsedType,code:E.invalid_type}),u}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let G=this._getOrReturnCtx($),X=this._def.values;return x(G,{received:G.data,code:E.invalid_enum_value,options:X}),u}return S1($.data)}get options(){return this._def.values}get enum(){let $={};for(let G of this._def.values)$[G]=G;return $}get Values(){let $={};for(let G of this._def.values)$[G]=G;return $}get Enum(){let $={};for(let G of this._def.values)$[G]=G;return $}extract($,G=this._def){return u0.create($,{...this._def,...G})}exclude($,G=this._def){return u0.create(this.options.filter((X)=>!$.includes(X)),{...this._def,...G})}}u0.create=XY;class X4 extends o{_parse($){let G=a.getValidEnumValues(this._def.values),X=this._getOrReturnCtx($);if(X.parsedType!==j.string&&X.parsedType!==j.number){let Y=a.objectValues(G);return x(X,{expected:a.joinValues(Y),received:X.parsedType,code:E.invalid_type}),u}if(!this._cache)this._cache=new Set(a.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Y=a.objectValues(G);return x(X,{received:X.data,code:E.invalid_enum_value,options:Y}),u}return S1($.data)}get enum(){return this._def.values}}X4.create=($,G)=>{return new X4({values:$,typeName:p.ZodNativeEnum,...d(G)})};class A2 extends o{unwrap(){return this._def.type}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==j.promise&&G.common.async===!1)return x(G,{code:E.invalid_type,expected:j.promise,received:G.parsedType}),u;let X=G.parsedType===j.promise?G.data:Promise.resolve(G.data);return S1(X.then((Y)=>{return this._def.type.parseAsync(Y,{path:G.path,errorMap:G.common.contextualErrorMap})}))}}A2.create=($,G)=>{return new A2({type:$,typeName:p.ZodPromise,...d(G)})};class G0 extends o{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:G,ctx:X}=this._processInputParams($),Y=this._def.effect||null,W={addIssue:(q)=>{if(x(X,q),q.fatal)G.abort();else G.dirty()},get path(){return X.path}};if(W.addIssue=W.addIssue.bind(W),Y.type==="preprocess"){let q=Y.transform(X.data,W);if(X.common.async)return Promise.resolve(q).then(async(V)=>{if(G.value==="aborted")return u;let J=await this._def.schema._parseAsync({data:V,path:X.path,parent:X});if(J.status==="aborted")return u;if(J.status==="dirty")return R2(J.value);if(G.value==="dirty")return R2(J.value);return J});else{if(G.value==="aborted")return u;let V=this._def.schema._parseSync({data:q,path:X.path,parent:X});if(V.status==="aborted")return u;if(V.status==="dirty")return R2(V.value);if(G.value==="dirty")return R2(V.value);return V}}if(Y.type==="refinement"){let q=(V)=>{let J=Y.refinement(V,W);if(X.common.async)return Promise.resolve(J);if(J instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return V};if(X.common.async===!1){let V=this._def.schema._parseSync({data:X.data,path:X.path,parent:X});if(V.status==="aborted")return u;if(V.status==="dirty")G.dirty();return q(V.value),{status:G.value,value:V.value}}else return this._def.schema._parseAsync({data:X.data,path:X.path,parent:X}).then((V)=>{if(V.status==="aborted")return u;if(V.status==="dirty")G.dirty();return q(V.value).then(()=>{return{status:G.value,value:V.value}})})}if(Y.type==="transform")if(X.common.async===!1){let q=this._def.schema._parseSync({data:X.data,path:X.path,parent:X});if(!h0(q))return u;let V=Y.transform(q.value,W);if(V instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:G.value,value:V}}else return this._def.schema._parseAsync({data:X.data,path:X.path,parent:X}).then((q)=>{if(!h0(q))return u;return Promise.resolve(Y.transform(q.value,W)).then((V)=>({status:G.value,value:V}))});a.assertNever(Y)}}G0.create=($,G,X)=>{return new G0({schema:$,typeName:p.ZodEffects,effect:G,...d(X)})};G0.createWithPreprocess=($,G,X)=>{return new G0({schema:G,effect:{type:"preprocess",transform:$},typeName:p.ZodEffects,...d(X)})};class e1 extends o{_parse($){if(this._getType($)===j.undefined)return S1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}e1.create=($,G)=>{return new e1({innerType:$,typeName:p.ZodOptional,...d(G)})};class z0 extends o{_parse($){if(this._getType($)===j.null)return S1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}z0.create=($,G)=>{return new z0({innerType:$,typeName:p.ZodNullable,...d(G)})};class Y4 extends o{_parse($){let{ctx:G}=this._processInputParams($),X=G.data;if(G.parsedType===j.undefined)X=this._def.defaultValue();return this._def.innerType._parse({data:X,path:G.path,parent:G})}removeDefault(){return this._def.innerType}}Y4.create=($,G)=>{return new Y4({innerType:$,typeName:p.ZodDefault,defaultValue:typeof G.default==="function"?G.default:()=>G.default,...d(G)})};class W4 extends o{_parse($){let{ctx:G}=this._processInputParams($),X={...G,common:{...G.common,issues:[]}},Y=this._def.innerType._parse({data:X.data,path:X.path,parent:{...X}});if(d2(Y))return Y.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new j1(X.common.issues)},input:X.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new j1(X.common.issues)},input:X.data})}}removeCatch(){return this._def.innerType}}W4.create=($,G)=>{return new W4({innerType:$,typeName:p.ZodCatch,catchValue:typeof G.catch==="function"?G.catch:()=>G.catch,...d(G)})};class u4 extends o{_parse($){if(this._getType($)!==j.nan){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.nan,received:X.parsedType}),u}return{status:"valid",value:$.data}}}u4.create=($)=>{return new u4({typeName:p.ZodNaN,...d($)})};var EK=Symbol("zod_brand");class s6 extends o{_parse($){let{ctx:G}=this._processInputParams($),X=G.data;return this._def.type._parse({data:X,path:G.path,parent:G})}unwrap(){return this._def.type}}class p4 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:X.data,path:X.path,parent:X});if(W.status==="aborted")return u;if(W.status==="dirty")return G.dirty(),R2(W.value);else return this._def.out._parseAsync({data:W.value,path:X.path,parent:X})})();else{let Y=this._def.in._parseSync({data:X.data,path:X.path,parent:X});if(Y.status==="aborted")return u;if(Y.status==="dirty")return G.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:X.path,parent:X})}}static create($,G){return new p4({in:$,out:G,typeName:p.ZodPipeline})}}class q4 extends o{_parse($){let G=this._def.innerType._parse($),X=(Y)=>{if(h0(Y))Y.value=Object.freeze(Y.value);return Y};return d2(G)?G.then((Y)=>X(Y)):X(G)}unwrap(){return this._def.innerType}}q4.create=($,G)=>{return new q4({innerType:$,typeName:p.ZodReadonly,...d(G)})};function tX($,G){let X=typeof $==="function"?$(G):typeof $==="string"?{message:$}:$;return typeof X==="string"?{message:X}:X}function YY($,G={},X){if($)return M2.create().superRefine((Y,W)=>{let q=$(Y);if(q instanceof Promise)return q.then((V)=>{if(!V){let J=tX(G,Y),U=J.fatal??X??!0;W.addIssue({code:"custom",...J,fatal:U})}});if(!q){let V=tX(G,Y),J=V.fatal??X??!0;W.addIssue({code:"custom",...V,fatal:J})}return});return M2.create()}var jK={object:V1.lazycreate},p;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(p||(p={}));var SK=($,G={message:`Input not instance of ${$.name}`})=>YY((X)=>X instanceof $,G),WY=a1.create,qY=f0.create,IK=u4.create,xK=m0.create,VY=o2.create,kK=D2.create,bK=h4.create,vK=s2.create,gK=a2.create,hK=M2.create,yK=y0.create,fK=H0.create,mK=y4.create,uK=t1.create,pK=V1.create,lK=V1.strictCreate,rK=t2.create,cK=o6.create,dK=e2.create,iK=U0.create,nK=f4.create,oK=m4.create,sK=Q2.create,aK=n2.create,tK=$4.create,eK=G4.create,$F=u0.create,GF=X4.create,XF=A2.create,YF=G0.create,WF=e1.create,qF=z0.create,VF=G0.createWithPreprocess,JF=p4.create,HF=()=>WY().optional(),UF=()=>qY().optional(),RF=()=>VY().optional(),DF={string:($)=>a1.create({...$,coerce:!0}),number:($)=>f0.create({...$,coerce:!0}),boolean:($)=>o2.create({...$,coerce:!0}),bigint:($)=>m0.create({...$,coerce:!0}),date:($)=>D2.create({...$,coerce:!0})};var MF=u;function R0($){return $ instanceof Error?$.message:String($)}function wF($){return $}function BF($){return $}function OF($){return $===void 0?{success:!0}:{success:!0,data:$}}function PF($){return{success:!1,error:$}}var NF=H.object({captureUrls:H.boolean().default(!1),blockedUrlDomains:H.array(H.string()).default(["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"])});function ZF($,G){return{name:$,schema:G}}var p0=H.enum(["anchor","trusted","public"]),_F=H.enum(["create","update","delete","extract","publish"]),V4=H.enum(["never","anchor","trusted","public"]),JY=H.object({create:V4.optional(),update:V4.optional(),delete:V4.optional(),extract:V4.optional(),publish:V4.optional()}).strict(),LF=H.record(H.string(),JY);var CF=H.object({name:H.string(),description:H.string(),schema:H.any(),basePrompt:H.string().optional(),useKnowledgeContext:H.boolean().optional(),requiredPermission:p0,formatter:H.any().optional(),layout:H.object({component:H.any(),fullscreen:H.boolean().optional()}).optional(),dataSourceId:H.string().optional()});class l4{static canGenerate($){return!!$.basePrompt&&!!$.dataSourceId&&$.dataSourceId.includes("ai-content")}static canFetch($){return!!$.dataSourceId&&!this.canGenerate($)}static canRender($){return!!$.layout?.component}static isStaticOnly($){return!this.canGenerate($)&&!this.canFetch($)}static getCapabilities($){return{canGenerate:this.canGenerate($),canFetch:this.canFetch($),canRender:this.canRender($),isStaticOnly:this.isStaticOnly($)}}static validate($){let G=[];if($.dataSourceId?.includes("ai-content")&&!$.basePrompt)G.push(`Template "${$.name}" has AI-content dataSourceId but no basePrompt. AI generation requires a basePrompt.`);if($.basePrompt&&(!$.dataSourceId||!$.dataSourceId.includes("ai-content")))G.push(`Template "${$.name}" has basePrompt but no AI-content dataSourceId. The basePrompt won't be used.`);return G}static logCapabilities($,G){let X=this.getCapabilities($),Y=this.validate($);if(G)G.debug(`Template capabilities for "${$.name}":`,{...X,errors:Y.length>0?Y:void 0})}}var TF=H.enum(["site-content-preview","site-content-production"]),EF=H.enum(["web","image","pdf"]),jF=H.object({name:H.string(),schema:H.any(),description:H.string().optional(),pluginId:H.string(),renderers:H.object({web:H.union([H.function(),H.string()]).optional(),image:H.union([H.function(),H.string()]).optional(),pdf:H.union([H.function(),H.string()]).optional()})}),SF=H.object({enableContentGeneration:H.boolean().default(!1),outputDir:H.string(),workingDir:H.string().optional(),environment:H.enum(["preview","production"]).default("preview"),siteConfig:H.object({title:H.string(),description:H.string(),url:H.string().optional()}).optional()}),IF=H.object({success:H.boolean(),routesBuilt:H.number(),errors:H.array(H.string()).optional(),warnings:H.array(H.string()).optional()});var HY=H.object({type:H.literal("event"),event:H.string().min(1)}),kF=H.object({conversationId:H.string().min(1),interfaceType:H.string().min(1),channelId:H.string().min(1).optional(),channelName:H.string().min(1),userPermissionLevel:H.enum(["anchor","trusted","public"]),action:HY});var a6=H.object({id:H.string(),toolCallId:H.string().optional(),toolName:H.string(),summary:H.string(),completionSummary:H.string().optional(),preview:H.string().optional(),args:H.unknown()}),$9=H.enum(["approval-requested","approval-responded","output-available","output-denied","output-error"]),G9=H.object({kind:H.literal("tool-approval"),id:H.string(),toolCallId:H.string().optional(),toolName:H.string(),input:H.record(H.unknown()).optional(),summary:H.string(),completionSummary:H.string().optional(),preview:H.string().optional(),state:$9,output:H.unknown().optional(),error:H.string().optional()}),X9=H.object({entityType:H.string().optional(),entityId:H.string().optional(),attachmentType:H.string().optional()}),Y9=H.object({mediaType:H.string().min(1),url:H.string().min(1),downloadUrl:H.string().min(1).optional(),previewUrl:H.string().min(1).optional(),filename:H.string().min(1).optional(),sizeBytes:H.number().nonnegative().optional(),source:X9.optional()}),W9=H.object({kind:H.literal("attachment"),id:H.string(),jobId:H.string().optional(),title:H.string(),description:H.string().optional(),attachment:Y9}),q9=H.object({id:H.string().min(1),title:H.string().min(1).optional(),source:H.string().min(1),url:H.string().min(1).optional(),entityType:H.string().min(1).optional(),entityId:H.string().min(1).optional(),excerpt:H.string().min(1).optional(),provenance:H.record(H.unknown()).optional()}),V9=H.object({kind:H.literal("sources"),id:H.string().min(1),title:H.string().min(1).optional(),sources:H.array(q9).min(1)}),J9=H.object({type:H.literal("prompt"),id:H.string().min(1),label:H.string().min(1),prompt:H.string().min(1),description:H.string().min(1).optional()}),H9=H.object({type:H.literal("event"),id:H.string().min(1),label:H.string().min(1),event:H.string().min(1),description:H.string().min(1).optional()}),U9=H.discriminatedUnion("type",[J9,H9]),R9=H.object({kind:H.literal("actions"),id:H.string().min(1),title:H.string().min(1).optional(),defaultOpen:H.boolean().optional(),actions:H.array(U9).min(1)}),D9=H.discriminatedUnion("kind",[G9,W9,V9,R9]),t6=H.object({toolName:H.string(),args:H.record(H.unknown()).optional(),jobId:H.string().optional(),data:H.unknown().optional()}),e6=H.object({text:H.string(),toolResults:H.array(t6).optional(),cards:H.array(D9).optional(),pendingConfirmations:H.array(a6).optional(),usage:H.object({promptTokens:H.number(),completionTokens:H.number(),totalTokens:H.number()})});function M9($){return e6.parse(v4($))}var UY=H.enum(["anchor","trusted","public"]),bF=H.object({conversationId:H.string().min(1),message:H.string(),interfaceType:H.string().min(1),channelId:H.string().optional(),channelName:H.string().optional(),userPermissionLevel:UY}),RY=H.object({id:H.string().min(1),source:H.string().min(1),title:H.string().optional(),content:H.string().min(1),provenance:H.record(H.string(),H.unknown()).optional()}),vF=H.object({items:H.array(RY).default([])});var gF=H.object({url:H.string(),authToken:H.string().optional()});var hF=H.object({success:H.boolean(),entityId:H.string().optional(),error:H.string().optional()});var K2=H.enum(["user","assistant"]);var DY=H.object({message:H.string().describe("Natural language response to the query"),summary:H.string().optional().describe("Brief summary if applicable"),topics:H.array(H.string()).optional().describe("Related topics mentioned"),sources:H.array(H.object({id:H.string(),type:H.string(),excerpt:H.string().optional(),relevance:H.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:H.record(H.string(),H.unknown()).optional()}).describe("defaultQueryResponse"),MY=H.object({message:H.string()}).describe("simpleTextResponse"),QY=H.object({success:H.boolean(),entityId:H.string().optional(),message:H.string()}).describe("createEntityResponse"),AY=H.object({success:H.boolean(),entityId:H.string(),changes:H.array(H.string()).optional(),message:H.string()}).describe("updateEntityResponse");var yF=H.object({status:H.enum(["healthy","warning","error","unknown"]),message:H.string().optional(),lastCheck:H.date().optional(),details:H.record(H.string(),H.unknown()).optional()}),KY=H.object({name:H.string(),pluginId:H.string(),status:H.string(),health:yF.optional()});import{McpServer as lS,ResourceTemplate as rS}from"@modelcontextprotocol/sdk/server/mcp.js";var $5=H.object({interfaceType:H.string(),userId:H.string(),conversationId:H.string().optional(),channelId:H.string().optional(),channelName:H.string().optional(),runId:H.string().optional(),toolCallId:H.string().optional(),userPermissionLevel:H.enum(["anchor","trusted","public"]).optional()}),FY=H.object({success:H.literal(!0),data:H.unknown(),message:H.string().optional(),cached:H.literal(!0).optional()}).strict().superRefine(($,G)=>{if(!Object.prototype.hasOwnProperty.call($,"data"))G.addIssue({code:H.ZodIssueCode.custom,path:["data"],message:"Required"})}),wY=H.object({success:H.literal(!1),error:H.string(),code:H.string().optional()}).strict(),BY=H.object({needsConfirmation:H.literal(!0),toolName:H.string(),summary:H.string(),completionSummary:H.string().optional(),preview:H.string().optional(),args:H.unknown()}).strict(),Q9=H.union([FY,wY,BY]);var hS=H.union([H.object({success:H.literal(!0),data:H.unknown()}).superRefine(($,G)=>{if(!Object.prototype.hasOwnProperty.call($,"data"))G.addIssue({code:H.ZodIssueCode.custom,path:["data"],message:"Required"})}),H.object({success:H.literal(!1),error:H.string()})]);var fF=H.union([H.object({success:H.literal(!0),data:H.unknown(),message:H.string().optional()}),H.object({success:H.literal(!1),error:H.string(),code:H.string().optional()})]);var CI=H.object({id:H.string(),type:H.string(),version:H.string(),status:H.string()}),TI=H.object({name:H.string(),description:H.string()}),A9=H.object({label:H.string(),url:H.string(),pluginId:H.string(),priority:H.number().default(100),visibility:p0.default("public")}),mF=H.enum(["human","agent","admin","protocol"]),uF=H.enum(["available","coming-soon","disabled"]),K9=H.object({id:H.string(),label:H.string(),description:H.string().optional(),href:H.string(),kind:mF,pluginId:H.string(),priority:H.number().default(100),visibility:p0.default("public"),status:uF.default("available")}),F9=H.object({entityType:H.string(),count:H.number()}),EI=H.object({model:H.string(),version:H.string(),uptime:H.number(),entities:H.number(),entityCounts:H.array(F9),embeddings:H.number(),ai:H.object({model:H.string(),embeddingModel:H.string()}),daemons:H.array(KY),endpoints:H.array(A9),interactions:H.array(K9)});var jI=H.object({id:H.string(),version:H.string(),type:H.enum(["core","entity","service","interface"]),description:H.string().optional(),dependencies:H.array(H.string()).optional(),packageName:H.string()});var pF=H.object({toolName:H.string(),args:H.unknown(),progressToken:H.union([H.string(),H.number()]).optional(),hasProgress:H.boolean().optional(),...$5.shape}),lF=H.object({resourceUri:H.string()});class F2{id;version;description;packageName;config;context;get logger(){return this.context?.logger??N1.createFresh({context:this.id})}constructor($,G,X,Y){this.id=$,this.packageName=G.name,this.version=G.version,this.description=G.description??`${G.name} plugin`,this.config=Y.parse(X)}setupMessageHandlers($){$.messaging.subscribe(`plugin:${this.id}:tool:execute`,async(G)=>{try{let{toolName:X,args:Y,progressToken:W,hasProgress:q,interfaceType:V,userId:J,channelId:U,userPermissionLevel:R}=pF.parse(G.payload),M=(await this.getTools()).find((Z)=>Z.name===X);if(!M)return{success:!1,error:`Tool not found: ${X}`};let F={interfaceType:V,userId:J,...U&&{channelId:U},...R&&{userPermissionLevel:R},...q&&W!==void 0&&{progressToken:W,sendProgress:async(Z)=>{await $.messaging.send({type:`plugin:${this.id}:progress`,payload:{progressToken:W,notification:Z}})}}};return{success:!0,data:await M.handler(Y,F)}}catch(X){if(X instanceof H.ZodError)return{success:!1,error:"Invalid tool execution request format"};return this.logger.error("Tool execution error",X),{success:!1,error:R0(X)}}}),$.messaging.subscribe(`plugin:${this.id}:resource:get`,async(G)=>{try{let{resourceUri:X}=lF.parse(G.payload),W=(await this.getResources()).find((V)=>V.uri===X);if(!W)return{success:!1,error:`Resource not found: ${X}`};return{success:!0,data:await W.handler()}}catch(X){if(X instanceof H.ZodError)return{success:!1,error:"Invalid resource get request format"};return this.logger.error("Resource fetch error",X),{success:!1,error:R0(X)}}})}async onRegister($){}async onReady($){}async ready(){await this.onReady(this.getContext())}async getCapabilities(){let $=await this.getInstructions();return{tools:await this.getTools(),resources:await this.getResources(),...$&&{instructions:$}}}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}async shutdown(){await this.onShutdown()}async onShutdown(){}getContext(){if(!this.context)throw Error(`Plugin ${this.id}: Plugin not registered yet`);return this.context}determineUserPermissionLevel($){return"public"}createProgressBridge($){if(!$)return;let G=this.context;if(!G)return;let X=this.id;return x0.from(async(Y)=>{await G.messaging.send({type:`plugin:${X}:progress`,payload:{progressToken:$,notification:{progress:Y.progress,total:Y.total,message:Y.message}}})})}}var OY=H.object({id:H.string(),template:H.string(),content:H.unknown().optional(),dataQuery:H.object({entityType:H.string().optional(),template:H.string().optional(),query:H.object({id:H.string().optional(),limit:H.number().optional(),offset:H.number().optional()}).passthrough().optional()}).passthrough().optional(),order:H.number().optional()}),PY=["primary","secondary"],NY=H.object({show:H.boolean().default(!1),label:H.string().optional(),slot:H.enum(PY).default("primary"),priority:H.number().min(0).max(100).default(50)}).optional(),ZY=H.object({id:H.string(),path:H.string(),title:H.string().default(""),pageLabel:H.string().optional(),description:H.string().default(""),sections:H.array(OY).default([]),layout:H.string().default("default"),fullscreen:H.boolean().optional(),pluginId:H.string().optional(),sourceEntityType:H.string().optional(),external:H.boolean().optional(),navigation:NY}),rF=H.object({routes:H.array(ZY),pluginId:H.string()}),cF=H.object({paths:H.array(H.string()).optional(),pluginId:H.string().optional()}),dF=H.object({pluginId:H.string().optional()}),iF=H.object({path:H.string()}),G5=H.object({label:H.string(),href:H.string(),priority:H.number()});var zY=H.object({heading:H.string().describe("Main CTA heading text"),buttonText:H.string().describe("Call-to-action button text"),buttonLink:H.string().describe("URL or anchor for the CTA button")}),_Y=H.object({blurb:H.string().optional().describe("Short italic subtitle under the section title")}),LY=H.object({title:H.string().describe("The site's title"),description:H.string().describe("The site's description"),url:H.string().optional().describe("Canonical site URL"),copyright:H.string().optional().describe("Copyright notice text"),logo:H.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:H.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:H.string().optional().describe("Analytics script HTML"),cta:zY.optional().describe("Call-to-action configuration"),sections:H.record(H.string(),_Y).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")}),nF=H.object({platform:H.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:H.string().describe("Profile or contact URL"),label:H.string().optional().describe("Optional display label")}),oF=LY.extend({navigation:H.object({primary:H.array(G5),secondary:H.array(G5)}),copyright:H.string(),socialLinks:H.array(nF).optional().describe("Social media links from profile metadata")});function w9($){return`preview.${$.trim().replace(/^https?:\/\//,"")}`}var sF=H.string(),aF=H.object({id:H.string().min(1)}).passthrough(),tF=H.object({label:H.string().min(1)}).passthrough(),eF=H.object({layouts:H.record(H.unknown()),plugin:H.function(),routes:H.array(aF),entityDisplay:H.record(tF),staticAssets:H.record(H.string()).optional()}).passthrough(),$w=H.custom(($)=>eF.safeParse($).success);var CY=H.enum(["file_operations","content_operations","data_processing","batch_processing"]),TY=H.object({pluginId:H.string().optional(),progressToken:H.union([H.string(),H.number()]).optional(),operationType:CY,operationTarget:H.string().optional(),interfaceType:H.string().optional(),conversationId:H.string().optional(),channelId:H.string().optional()}),r4=TY.extend({rootJobId:H.string()}),Yx=H.enum(["none","skip","replace","coalesce"]);var B9=H.enum(["pending","processing","completed","failed"]),EY=H.enum(["completed","failed"]);var Gw=H.object({id:H.string(),type:H.string(),status:B9,data:H.unknown(),result:H.unknown().optional(),lastError:H.string().optional().nullable(),attempts:H.number(),maxRetries:H.number(),priority:H.number(),createdAt:H.date(),updatedAt:H.date(),processedAt:H.date().optional().nullable(),completedAt:H.date().optional().nullable(),failedAt:H.date().optional().nullable()}),Xw=H.object({jobId:H.string(),type:H.string(),status:EY,result:H.unknown().optional(),error:H.string().optional()}),jY=H.object({success:H.literal(!1),error:H.string().optional()}),O9=H.object({id:H.string(),type:H.enum(["job","batch"]),status:B9,message:H.string().optional(),progress:H.object({current:H.number(),total:H.number(),percentage:H.number()}).optional(),aggregationKey:H.string().optional(),batchDetails:H.object({totalOperations:H.number(),completedOperations:H.number(),failedOperations:H.number(),currentOperation:H.string().optional(),errors:H.array(H.string()).optional()}).optional(),jobDetails:H.object({jobType:H.string(),priority:H.number(),retryCount:H.number()}).optional(),metadata:r4});import{createClient as nk}from"@libsql/client";var I=Symbol.for("drizzle:entityKind");function b1($,G){if(!$||typeof $!=="object")return!1;if($ instanceof G)return!0;if(!Object.prototype.hasOwnProperty.call(G,I))throw Error(`Class "${G.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let X=Object.getPrototypeOf($).constructor;if(X)while(X){if(I in X&&X[I]===G[I])return!0;X=Object.getPrototypeOf(X)}return!1}class l0{constructor($,G){this.table=$,this.config=G,this.name=G.name,this.keyAsName=G.keyAsName,this.notNull=G.notNull,this.default=G.default,this.defaultFn=G.defaultFn,this.onUpdateFn=G.onUpdateFn,this.hasDefault=G.hasDefault,this.primary=G.primaryKey,this.isUnique=G.isUnique,this.uniqueName=G.uniqueName,this.uniqueType=G.uniqueType,this.dataType=G.dataType,this.columnType=G.columnType,this.generated=G.generated,this.generatedIdentity=G.generatedIdentity}static[I]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue($){return $}mapToDriverValue($){return $}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class P9{static[I]="ColumnBuilder";config;constructor($,G,X){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:G,columnType:X,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default($){return this.config.default=$,this.config.hasDefault=!0,this}$defaultFn($){return this.config.defaultFn=$,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn($){return this.config.onUpdateFn=$,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName($){if(this.config.name!=="")return;this.config.name=$}}var X0=Symbol.for("drizzle:Name");function SY($,...G){return $(...G)}function IY($,G){return`${$[X0]}_${G.join("_")}_unique`}class c4 extends l0{constructor($,G){if(!G.uniqueName)G.uniqueName=IY($,[G.name]);super($,G);this.table=$}static[I]="PgColumn"}class Yw extends c4{static[I]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op($){return this.indexConfig.opClass=$,this}}class Ww extends c4{static[I]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}var xY=Symbol.for("drizzle:isPgEnum");function kY($){return!!$&&typeof $==="function"&&xY in $&&$[xY]===!0}class qw extends c4{static[I]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}class X5{static[I]="Subquery";constructor($,G,X,Y=!1,W=[]){this._={brand:"Subquery",sql:$,selectedFields:G,alias:X,isWith:Y,usedTables:W}}}var bY="0.44.7";var N9,Z9,vY={startActiveSpan($,G){if(!N9)return G();if(!Z9)Z9=N9.trace.getTracer("drizzle-orm",bY);return SY((X,Y)=>Y.startActiveSpan($,(W)=>{try{return G(W)}catch(q){throw W.setStatus({code:X.SpanStatusCode.ERROR,message:q instanceof Error?q.message:"Unknown error"}),q}finally{W.end()}}),N9,Z9)}};var J4=Symbol.for("drizzle:ViewBaseConfig");var z9=Symbol.for("drizzle:Schema"),gY=Symbol.for("drizzle:Columns"),hY=Symbol.for("drizzle:ExtraConfigColumns"),_9=Symbol.for("drizzle:OriginalName"),L9=Symbol.for("drizzle:BaseName"),d4=Symbol.for("drizzle:IsAlias"),yY=Symbol.for("drizzle:ExtraConfigBuilder"),Vw=Symbol.for("drizzle:IsDrizzleTable");class M1{static[I]="Table";static Symbol={Name:X0,Schema:z9,OriginalName:_9,Columns:gY,ExtraConfigColumns:hY,BaseName:L9,IsAlias:d4,ExtraConfigBuilder:yY};[X0];[_9];[z9];[gY];[hY];[L9];[d4]=!1;[Vw]=!0;[yY]=void 0;constructor($,G,X){this[X0]=this[_9]=$,this[z9]=G,this[L9]=X}}function Jw($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function Hw($){let G={sql:"",params:[]};for(let X of $)if(G.sql+=X.sql,G.params.push(...X.params),X.typings?.length){if(!G.typings)G.typings=[];G.typings.push(...X.typings)}return G}class o1{static[I]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new Q1([this])}}class Q1{constructor($){this.queryChunks=$;for(let G of $)if(b1(G,M1)){let X=G[M1.Symbol.Schema];this.usedTables.push(X===void 0?G[M1.Symbol.Name]:X+"."+G[M1.Symbol.Name])}}static[I]="SQL";decoder=fY;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return vY.startActiveSpan("drizzle.buildSQL",(G)=>{let X=this.buildQueryFromSourceParams(this.queryChunks,$);return G?.setAttributes({"drizzle.query.text":X.sql,"drizzle.query.params":JSON.stringify(X.params)}),X})}buildQueryFromSourceParams($,G){let X=Object.assign({},G,{inlineParams:G.inlineParams||this.shouldInlineParams,paramStartIndex:G.paramStartIndex||{value:0}}),{casing:Y,escapeName:W,escapeParam:q,prepareTyping:V,inlineParams:J,paramStartIndex:U}=X;return Hw($.map((R)=>{if(b1(R,o1))return{sql:R.value.join(""),params:[]};if(b1(R,Y5))return{sql:W(R.value),params:[]};if(R===void 0)return{sql:"",params:[]};if(Array.isArray(R)){let D=[new o1("(")];for(let[M,F]of R.entries())if(D.push(F),M<R.length-1)D.push(new o1(", "));return D.push(new o1(")")),this.buildQueryFromSourceParams(D,X)}if(b1(R,Q1))return this.buildQueryFromSourceParams(R.queryChunks,{...X,inlineParams:J||R.shouldInlineParams});if(b1(R,M1)){let D=R[M1.Symbol.Schema],M=R[M1.Symbol.Name];return{sql:D===void 0||R[d4]?W(M):W(D)+"."+W(M),params:[]}}if(b1(R,l0)){let D=Y.getColumnCasing(R);if(G.invokeSource==="indexes")return{sql:W(D),params:[]};let M=R.table[M1.Symbol.Schema];return{sql:R.table[d4]||M===void 0?W(R.table[M1.Symbol.Name])+"."+W(D):W(M)+"."+W(R.table[M1.Symbol.Name])+"."+W(D),params:[]}}if(b1(R,uY)){let D=R[J4].schema,M=R[J4].name;return{sql:D===void 0||R[J4].isAlias?W(M):W(D)+"."+W(M),params:[]}}if(b1(R,C9)){if(b1(R.value,W5))return{sql:q(U.value++,R),params:[R],typings:["none"]};let D=R.value===null?null:R.encoder.mapToDriverValue(R.value);if(b1(D,Q1))return this.buildQueryFromSourceParams([D],X);if(J)return{sql:this.mapInlineParam(D,X),params:[]};let M=["none"];if(V)M=[V(R.encoder)];return{sql:q(U.value++,D),params:[D],typings:M}}if(b1(R,W5))return{sql:q(U.value++,R),params:[R],typings:["none"]};if(b1(R,Q1.Aliased)&&R.fieldAlias!==void 0)return{sql:W(R.fieldAlias),params:[]};if(b1(R,X5)){if(R._.isWith)return{sql:W(R._.alias),params:[]};return this.buildQueryFromSourceParams([new o1("("),R._.sql,new o1(") "),new Y5(R._.alias)],X)}if(kY(R)){if(R.schema)return{sql:W(R.schema)+"."+W(R.enumName),params:[]};return{sql:W(R.enumName),params:[]}}if(Jw(R)){if(R.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([R.getSQL()],X);return this.buildQueryFromSourceParams([new o1("("),R.getSQL(),new o1(")")],X)}if(J)return{sql:this.mapInlineParam(R,X),params:[]};return{sql:q(U.value++,R),params:[R],typings:["none"]}}))}mapInlineParam($,{escapeString:G}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return G($);if(typeof $==="object"){let X=$.toString();if(X==="[object Object]")return G(JSON.stringify($));return G(X)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new Q1.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}}class Y5{constructor($){this.value=$}static[I]="Name";brand;getSQL(){return new Q1([this])}}var fY={mapFromDriverValue:($)=>$},mY={mapToDriverValue:($)=>$},px={...fY,...mY};class C9{constructor($,G=mY){this.value=$,this.encoder=G}static[I]="Param";brand;getSQL(){return new Q1([this])}}function w2($,...G){let X=[];if(G.length>0||$.length>0&&$[0]!=="")X.push(new o1($[0]));for(let[Y,W]of G.entries())X.push(W,new o1($[Y+1]));return new Q1(X)}(($)=>{function G(){return new Q1([])}$.empty=G;function X(U){return new Q1(U)}$.fromList=X;function Y(U){return new Q1([new o1(U)])}$.raw=Y;function W(U,R){let D=[];for(let[M,F]of U.entries()){if(M>0&&R!==void 0)D.push(R);D.push(F)}return new Q1(D)}$.join=W;function q(U){return new Y5(U)}$.identifier=q;function V(U){return new W5(U)}$.placeholder=V;function J(U,R){return new C9(U,R)}$.param=J})(w2||(w2={}));(($)=>{class G{constructor(X,Y){this.sql=X,this.fieldAlias=Y}static[I]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new G(this.sql,this.fieldAlias)}}$.Aliased=G})(Q1||(Q1={}));class W5{constructor($){this.name=$}static[I]="Placeholder";getSQL(){return new Q1([this])}}var Uw=Symbol.for("drizzle:IsDrizzleView");class uY{static[I]="View";[J4];[Uw]=!0;constructor({name:$,schema:G,selectedFields:X,query:Y}){this[J4]={name:$,originalName:$,schema:G,selectedFields:X,query:Y,isExisting:!Y,isAlias:!1}}getSQL(){return new Q1([this])}}l0.prototype.getSQL=function(){return new Q1([this])};M1.prototype.getSQL=function(){return new Q1([this])};X5.prototype.getSQL=function(){return new Q1([this])};function D0($,G){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:G}}var T9=typeof TextDecoder>"u"?null:new TextDecoder;class E9{static[I]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,G){if(this.reference=()=>{let{name:X,columns:Y,foreignColumns:W}=$();return{name:X,columns:Y,foreignTable:W[0].table,foreignColumns:W}},G)this._onUpdate=G.onUpdate,this._onDelete=G.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new pY($,this)}}class pY{constructor($,G){this.table=$,this.reference=G.reference,this.onUpdate=G._onUpdate,this.onDelete=G._onDelete}static[I]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:G,foreignColumns:X}=this.reference(),Y=G.map((V)=>V.name),W=X.map((V)=>V.name),q=[this.table[X0],...Y,X[0].table[X0],...W];return $??`${q.join("_")}_fk`}}function lY($,G){return`${$[X0]}_${G.join("_")}_unique`}class O1 extends P9{static[I]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,G={}){return this.foreignKeyConfigs.push({ref:$,actions:G}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,G){return this.config.generated={as:$,type:"always",mode:G?.mode??"virtual"},this}buildForeignKeys($,G){return this.foreignKeyConfigs.map(({ref:X,actions:Y})=>{return((W,q)=>{let V=new E9(()=>{let J=W();return{columns:[$],foreignColumns:[J]}});if(q.onUpdate)V.onUpdate(q.onUpdate);if(q.onDelete)V.onDelete(q.onDelete);return V.build(G)})(X,Y)})}}class P1 extends l0{constructor($,G){if(!G.uniqueName)G.uniqueName=lY($,[G.name]);super($,G);this.table=$}static[I]="SQLiteColumn"}class rY extends O1{static[I]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new cY($,this.config)}}class cY extends P1{static[I]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(G.toString("utf8"))}return BigInt(T9.decode($))}mapToDriverValue($){return Buffer.from($.toString())}}class dY extends O1{static[I]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new iY($,this.config)}}class iY extends P1{static[I]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(G.toString("utf8"))}return JSON.parse(T9.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}}class nY extends O1{static[I]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new oY($,this.config)}}class oY extends P1{static[I]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}function sY($,G){let{name:X,config:Y}=D0($,G);if(Y?.mode==="json")return new dY(X);if(Y?.mode==="bigint")return new rY(X);return new nY(X)}class aY extends O1{static[I]="SQLiteCustomColumnBuilder";constructor($,G,X){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=G,this.config.customTypeParams=X}build($){return new tY($,this.config)}}class tY extends P1{static[I]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,G){super($,G);this.sqlName=G.customTypeParams.dataType(G.fieldConfig),this.mapTo=G.customTypeParams.toDriver,this.mapFrom=G.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}function q5($){return(G,X)=>{let{name:Y,config:W}=D0(G,X);return new aY(Y,W,$)}}class V5 extends O1{static[I]="SQLiteBaseIntegerBuilder";constructor($,G,X){super($,G,X);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}}class J5 extends P1{static[I]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class eY extends V5{static[I]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new $W($,this.config)}}class $W extends J5{static[I]="SQLiteInteger"}class GW extends V5{static[I]="SQLiteTimestampBuilder";constructor($,G){super($,"date","SQLiteTimestamp");this.config.mode=G}defaultNow(){return this.default(w2`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new XW($,this.config)}}class XW extends J5{static[I]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let G=$.getTime();if(this.config.mode==="timestamp")return Math.floor(G/1000);return G}}class YW extends V5{static[I]="SQLiteBooleanBuilder";constructor($,G){super($,"boolean","SQLiteBoolean");this.config.mode=G}build($){return new WW($,this.config)}}class WW extends J5{static[I]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}function v1($,G){let{name:X,config:Y}=D0($,G);if(Y?.mode==="timestamp"||Y?.mode==="timestamp_ms")return new GW(X,Y.mode);if(Y?.mode==="boolean")return new YW(X,Y.mode);return new eY(X)}class qW extends O1{static[I]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new VW($,this.config)}}class VW extends P1{static[I]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}}class JW extends O1{static[I]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new HW($,this.config)}}class HW extends P1{static[I]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}}class UW extends O1{static[I]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new RW($,this.config)}}class RW extends P1{static[I]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function DW($,G){let{name:X,config:Y}=D0($,G),W=Y?.mode;return W==="number"?new JW(X):W==="bigint"?new UW(X):new qW(X)}class MW extends O1{static[I]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new QW($,this.config)}}class QW extends P1{static[I]="SQLiteReal";getSQLType(){return"real"}}function AW($){return new MW($??"")}class KW extends O1{static[I]="SQLiteTextBuilder";constructor($,G){super($,"string","SQLiteText");this.config.enumValues=G.enum,this.config.length=G.length}build($){return new FW($,this.config)}}class FW extends P1{static[I]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,G){super($,G)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class wW extends O1{static[I]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new BW($,this.config)}}class BW extends P1{static[I]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}function i($,G={}){let{name:X,config:Y}=D0($,G);if(Y.mode==="json")return new wW(X);return new KW(X,Y)}function OW(){return{blob:sY,customType:q5,integer:v1,numeric:DW,real:AW,text:i}}var j9=Symbol.for("drizzle:SQLiteInlineForeignKeys");class i4 extends M1{static[I]="SQLiteTable";static Symbol=Object.assign({},M1.Symbol,{InlineForeignKeys:j9});[M1.Symbol.Columns];[j9]=[];[M1.Symbol.ExtraConfigBuilder]=void 0}function Rw($,G,X,Y,W=$){let q=new i4($,Y,W),V=typeof G==="function"?G(OW()):G,J=Object.fromEntries(Object.entries(V).map(([R,D])=>{let M=D;M.setName(R);let F=M.build(q);return q[j9].push(...M.buildForeignKeys(F,q)),[R,F]})),U=Object.assign(q,J);if(U[M1.Symbol.Columns]=J,U[M1.Symbol.ExtraConfigColumns]=J,X)U[i4.Symbol.ExtraConfigBuilder]=X;return U}var M0=($,G,X)=>{return Rw($,G,X)};class PW{constructor($,G){this.name=$,this.value=G}static[I]="SQLiteCheckBuilder";brand;build($){return new NW($,this)}}class NW{constructor($,G){this.table=$,this.name=G.name,this.value=G.value}static[I]="SQLiteCheck";name;value}function ZW($,G){return new PW($,G)}class zW{constructor($,G){this.name=$,this.unique=G}static[I]="SQLiteIndexBuilderOn";on(...$){return new _W(this.name,$,this.unique)}}class _W{static[I]="SQLiteIndexBuilder";config;constructor($,G,X){this.config={name:$,columns:G,unique:X,where:void 0}}where($){return this.config.where=$,this}build($){return new LW(this.config,$)}}class LW{static[I]="SQLiteIndex";config;constructor($,G){this.config={...$,table:G}}}function Y0($){return new zW($,!1)}function H5(...$){if($[0].columns)return new S9($[0].columns,$[0].name);return new S9($)}class S9{static[I]="SQLitePrimaryKeyBuilder";columns;name;constructor($,G){this.columns=$,this.name=G}build($){return new CW($,this.columns,this.name)}}class CW{constructor($,G,X){this.table=$,this.columns=G,this.name=X}static[I]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[i4.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}var TW=M0("job_queue",{id:i("id").primaryKey().$defaultFn(()=>g0()),type:i("type").notNull(),data:i("data").notNull(),result:i("result",{mode:"json"}),source:i("source"),metadata:i("metadata",{mode:"json"}).$type().notNull(),status:i("status",{enum:["pending","processing","completed","failed"]}).notNull().default("pending"),priority:v1("priority").notNull().default(0),retryCount:v1("retryCount").notNull().default(0),maxRetries:v1("maxRetries").notNull().default(3),lastError:i("lastError"),createdAt:v1("createdAt").notNull().$defaultFn(()=>Date.now()),scheduledFor:v1("scheduledFor").notNull().$defaultFn(()=>Date.now()),startedAt:v1("startedAt"),completedAt:v1("completedAt")},($)=>({queueReadyIdx:Y0("idx_job_queue_ready").on($.status,$.priority,$.scheduledFor),jobTypeIdx:Y0("idx_job_queue_type").on($.type,$.status),jobSourceIdx:Y0("idx_job_queue_source").on($.source)}));var Dw=H.object({id:H.string(),type:H.string(),data:H.string(),status:H.enum(["pending","processing","completed","failed"]),source:H.string().nullable(),priority:H.number(),retryCount:H.number(),maxRetries:H.number(),lastError:H.string().nullable(),createdAt:H.number(),scheduledFor:H.number(),startedAt:H.number().nullable(),completedAt:H.number().nullable(),metadata:r4,result:H.unknown().nullable().optional()});function I9($,G,X){return async(Y)=>{let{type:W,data:q,toolContext:V=null,options:J}=Y,{metadata:U,...R}=J??{},D={source:G,...J?.rootJobId&&{rootJobId:J.rootJobId},...R,metadata:{operationType:"data_processing",pluginId:G,...V&&{interfaceType:V.interfaceType,channelId:V.channelId},...U}},M=X&&!W.includes(":")?`${G}:${W}`:W;return $.enqueue({type:M,data:q,options:D})}}function x9($,G){return async(X,Y)=>{let W=g0(),q=X.map((J)=>({...J,type:J.type.includes(":")?J.type:`${G}:${J.type}`})),V={...Y,source:G,rootJobId:W,metadata:{...Y?.metadata,operationType:"batch_processing",pluginId:G}};return await $.enqueueBatch(q,V,W,G),W}}function k9($,G){return(X,Y)=>{let W=X.includes(":")?X:`${G}:${X}`;$.registerHandler(W,Y,G)}}var Mw=H.object({name:H.string(),schema:H.custom(($)=>$ instanceof H.ZodType)});function EW($){return Mw.safeParse($).success}function Qw($){if(!$)return;return{status:$.status,message:$.message,lastCheck:$.lastCheck?.toISOString(),details:$.details}}function jW($){return{model:$.model,version:$.version,uptime:$.uptime,entities:$.entities,entityCounts:$.entityCounts,embeddings:$.embeddings,ai:$.ai,daemons:$.daemons.map((G)=>({name:G.name,pluginId:G.pluginId,status:G.status,health:Qw(G.health)})),endpoints:$.endpoints,interactions:$.interactions}}var H4=H.record(H.unknown());var Aw=H.object({id:H.string(),sessionId:H.string(),interfaceType:H.string(),channelId:H.string(),channelName:H.string().optional(),startedAt:H.string(),lastActiveAt:H.string(),createdAt:H.string(),updatedAt:H.string(),metadata:H4}),Kw=H.object({id:H.string(),conversationId:H.string(),role:K2,content:H.string(),timestamp:H.string(),metadata:H4});function SW($){if(!$)return{};try{let G=JSON.parse($);if(G&&typeof G==="object"&&!Array.isArray(G))return G}catch{}return{}}function Fw($){let G=K2.safeParse($);return G.success?G.data:"user"}function U5($){let G=SW($.metadata),X=typeof G.channelName==="string"?G.channelName:void 0;return{id:$.id,sessionId:$.sessionId,interfaceType:$.interfaceType,channelId:$.channelId,channelName:X,startedAt:$.started,lastActiveAt:$.lastActive,createdAt:$.created,updatedAt:$.updated,metadata:G}}function IW($){return{id:$.id,conversationId:$.conversationId,role:Fw($.role),content:$.content,timestamp:$.timestamp,metadata:SW($.metadata)}}var b9=H.object({name:H.string(),role:H.string(),purpose:H.string(),values:H.array(H.string())}),v9=H.object({name:H.string(),kind:H.enum(["professional","team","collective"]),organization:H.string().optional(),description:H.string().optional(),avatar:H.string().optional(),website:H.string().optional(),email:H.string().optional(),socialLinks:H.array(H.object({platform:H.enum(["github","instagram","linkedin","email","website"]),url:H.string(),label:H.string().optional()})).optional()});function xW($){return b9.parse($)}function kW($){return v9.parse($)}function bW($){return async()=>{return jW(await $.getAppInfo())}}function vW($,G){return{get:()=>xW($.getIdentity()),getProfile:()=>kW($.getProfile()),getAppInfo:G}}function gW($,G,X){let Y=$.getMessageBus();return{send:async(q)=>{return Y.send({...q,sender:G})},subscribe:(q,V)=>{if(EW(q)){let J=q,U=V,R=async(D)=>{let M=J.schema.safeParse(D.payload);if(!M.success)return X.warn(`Invalid payload for channel ${J.name}`,{error:M.error.message}),{noop:!0};let{payload:F,...K}=D;return U(M.data,K)};return Y.subscribe(J.name,R)}return Y.subscribe(q,V)}}}function hW($,G){let X=$.getJobQueueService();return{...$.jobs,enqueue:I9(X,G,!0),enqueueBatch:x9($.jobs,G),registerHandler:k9(X,G)}}function yW($){let G=$.getPermissionService();return{assertEntityActionAllowed:(X,Y,W)=>{G.assertEntityActionAllowed(X,Y,W.userPermissionLevel)}}}function fW($){return{get:async(G)=>{let Y=await $.getConversationService().getConversation(G);return Y?U5(Y):null},search:async(G)=>{return(await $.getConversationService().searchConversations(G)).map(U5)},list:async(G)=>{return(await $.getConversationService().listConversations(G)).map(U5)},getMessages:async(G,X)=>{return(await $.getConversationService().getMessages(G,X)).map(IW)},countMessages:async(G)=>{return $.getConversationService().countMessages(G)}}}function mW($,G){return{registerHandler:(X,Y)=>{$.registerEvalHandler(G,X,Y)}}}function uW($){return{register:(G,X)=>{$.getInsightsRegistry().register(G,X)}}}function pW($,G){return{register:(X)=>{$.registerEndpoint({...X,pluginId:G})}}}function lW($,G){return{register:(X)=>{$.registerInteraction({...X,pluginId:G})}}}function U4($,G,X){let Y=$.getEntityService(),W=$.getLogger().child(G),q=$.getDomain(),V=$.getLocalSiteUrl(),J=$.shouldPreferLocalUrls(),U=$.getThemeCSS(),R=bW($),D=$.getAttachmentRegistry(),M=$.getRuntimeUploadRegistry(),F=$.getRuntimeState();return{pluginId:G,logger:W,entityService:Y,identity:vW($,R),appInfo:R,judge:(K)=>$.judge(K),domain:q,siteUrl:q?`https://${q}`:void 0,localSiteUrl:V,previewUrl:q?`https://${w9(q)}`:void 0,preferLocalUrls:J,themeCSS:U,entityDisplay:X?.entityDisplay,spaces:$.getSpaces(),permissions:yW($),messaging:gW($,G,W),jobs:hW($,G),attachments:D,uploads:M,runtimeState:F,conversations:fW($),dataDir:$.getDataDir(),eval:mW($,G),insights:uW($),endpoints:pW($,G),interactions:lW($,G)}}import{createClient as Ov}from"@libsql/client";var R5=M0("entities",{id:i("id").notNull(),entityType:i("entityType").notNull(),content:i("content").notNull(),contentHash:i("contentHash").notNull(),visibility:i("visibility",{enum:["public","shared","restricted"]}).notNull().default("public"),metadata:i("metadata",{mode:"json"}).$type().notNull().default(w2`'{}'`),created:v1("created").notNull().$defaultFn(()=>Date.now()),updated:v1("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:H5({columns:[$.id,$.entityType]}),visibilityCheck:ZW("entities_visibility_check",w2`${$.visibility} IN ('public', 'shared', 'restricted')`)}});import{createClient as Ev}from"@libsql/client";var rW=q5({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}});var D5=M0("embeddings",{entityId:i("entity_id").notNull(),entityType:i("entity_type").notNull(),embedding:rW("embedding").notNull(),contentHash:i("content_hash").notNull()},($)=>{return{pk:H5({columns:[$.entityId,$.entityType]})}});var ww=H.enum(["public","shared","restricted"]),B2=H.union([ww,H.literal("private")]).optional().transform(($)=>{if($===void 0)return"public";if($==="private")return"restricted";return $});var h9=H.object({id:H.string(),entityType:H.string(),content:H.string(),created:H.string().datetime(),updated:H.string().datetime(),visibility:B2,metadata:H.record(H.string(),H.unknown()),contentHash:H.string()}),Nw=H.object({mediaType:H.string(),url:H.string(),downloadUrl:H.string().optional(),previewUrl:H.string().optional(),filename:H.string().optional(),sizeBytes:H.number().optional(),source:H.object({entityType:H.string().optional(),entityId:H.string().optional(),attachmentType:H.string().optional()}).optional()});var pv=H.object({id:H.string().min(1,"Entity ID is required"),entityType:H.string().min(1,"Entity type is required"),contentHash:H.string().min(1,"Content hash is required"),operation:H.enum(["create","update"])});var iv=H.object({limit:H.number().int().positive().optional().default(20),offset:H.number().int().min(0).optional().default(0),types:H.array(H.string()).optional().default([]),excludeTypes:H.array(H.string()).optional().default([]),weight:H.record(H.string(),H.number()).optional(),visibilityScope:H.enum(["public","shared","restricted"]).optional(),includeUngenerated:H.boolean().optional().default(!1)});var f9=$6(l5(),1);function M5($,G){if(Object.keys(G).length===0)return $;let X=Object.fromEntries(Object.entries(G).filter(([,Y])=>Y!==void 0));return f9.default.stringify($,X)}function y9($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(y9);if($!==null&&typeof $==="object"){let G={};for(let[X,Y]of Object.entries($))G[X]=y9(Y);return G}return $}function o4($,G){let{content:X,data:Y}=f9.default($),W=y9(Y);return{content:X.trim(),metadata:G.parse(W)}}var av=H.object({visibility:B2});var Lw=H.object({field:H.string(),direction:H.enum(["asc","desc"]),nullsFirst:H.boolean().optional()}),Rg=H.object({limit:H.number().int().positive().optional(),offset:H.number().int().min(0).optional().default(0),sortFields:H.array(Lw).optional(),filter:H.object({metadata:H.record(H.string(),H.unknown()).optional(),visibilityScope:H.enum(["public","shared","restricted"]).optional()}).optional(),publishedOnly:H.boolean().optional()});var Bg=H.object({id:H.string().min(1),entityType:H.string().min(1),contentHash:H.string().min(1)});var gw=H.object({currentPage:H.number(),totalPages:H.number(),totalItems:H.number(),pageSize:H.number(),hasNextPage:H.boolean(),hasPrevPage:H.boolean()});function hw($){return $.replace(/:/g,"-")}function yw($){return $.split(/[:.-]/).map((G)=>G.charAt(0).toUpperCase()+G.slice(1)).join(" ")}var m9=new Map;async function iW($,G,X){let Y=m9.get(G);if(Y!==void 0)return Y;let W=hw(G),q;try{q=await $.getEntity({entityType:"prompt",id:W})}catch{return X}if(q?.content){let V=o4(q.content,H.record(H.unknown())).content;return m9.set(G,V),V}try{let V=yw(G),J=M5(X,{title:V,target:G});await $.createEntity({entity:{id:W,entityType:"prompt",content:J,metadata:{title:V,target:G,slug:W}}})}catch{}return m9.set(G,X),X}function Q5($){let G=$.getEntityService(),X=$.getEntityRegistry(),Y=$.getDataSourceRegistry();return{register:(W,q,V,J)=>{X.registerEntityType(W,q,V,J)},getAdapter:(W)=>{try{return X.getAdapter(W)}catch{return}},extendFrontmatterSchema:(W,q)=>{X.extendFrontmatterSchema(W,q)},getEffectiveFrontmatterSchema:(W)=>{return X.getEffectiveFrontmatterSchema(W)},registerCreateInterceptor:(W,q)=>{X.registerCreateInterceptor(W,q)},registerUploadSaveHandler:(W)=>{X.registerUploadSaveHandler(W)},update:async(W)=>{return G.updateEntity({entity:W})},registerDataSource:(W)=>{Y.register(W)}}}function A5($){return{resolve:(G,X)=>{return iW($,G,X)}}}function nW($,G,X){let Y=U4($,G,X),W=$.getEntityService();return{...Y,entityService:W,entities:Q5($),ai:{query:(q,V)=>$.query(q,V),generate:async(q)=>{return $.generateContent(q)},generateObject:async(q,V)=>{return $.generateObject(q,V)},generateImage:async(q,V)=>{return $.generateImage(q,V)},canGenerateImages:()=>{return $.canGenerateImages()}},prompts:A5(W),permissions:Y.permissions}}function sW($,G,X){let Y=!1,W=!1;if($.jobs.registerHandler(X.job.type,X.job.handler),X.initialSync){let q=X.initialSync;$.messaging.subscribe("sync:initial:completed",async()=>{if(Y)return{success:!0};if(Y=!0,!(await q.shouldEnqueue?.()??!0))return G.info("Skipping derived entity projection initial sync",{projectionId:X.id,targetType:X.targetType}),{success:!0};return W=await oW($,G,X,q.jobData,mw(q.jobOptions),"initial-sync"),{success:!0}})}if(X.sourceChange){let q=X.sourceChange,V=new Set(q.sourceTypes),J=q.events??["entity:created","entity:updated"],U=async(R)=>{if(q.requireInitialSync&&!Y)return{success:!0};let D=R.payload,M=fw(q,D);if(!M||!V.has("*")&&!V.has(M))return{success:!0};if(!(await q.shouldEnqueue?.(D)??!0))return{success:!0};let K=await q.jobData(D);if(!K)return{success:!0};return await oW($,G,X,K,q.jobOptions?.(D),"source-change"),{success:!0}};for(let R of J)$.messaging.subscribe(R,U)}return{hasObservedInitialSync:()=>Y,hasQueuedInitialSync:()=>W}}function fw($,G){if($.sourceType)return $.sourceType;if($.sourceKind&&$.sourceKind!=="entity")return $.sourceKind;return G.entityType}async function oW($,G,X,Y,W,q){try{return await $.jobs.enqueue({type:X.job.type,data:Y,...W?{options:W}:{}}),G.info("Queued derived entity projection",{projectionId:X.id,targetType:X.targetType,reason:q}),!0}catch(V){return G.error("Failed to queue derived entity projection",{projectionId:X.id,targetType:X.targetType,reason:q,error:R0(V)}),!1}}function mw($){return typeof $==="function"?$():$}var uw=H.object({});class K5 extends F2{type="entity";entityActionPolicy;derivedEntityProjectionControllers=new Map;constructor($,G,X={},Y=uw,W){super($,G,X,Y);if(W!==void 0)this.entityActionPolicy=W}async register($,G){let X=nW($,this.id,G);if(this.context=X,this.setupMessageHandlers(X),X.entities.register(this.entityType,this.schema,this.adapter,this.getEntityTypeConfig()),this.interceptCreate!==K5.prototype.interceptCreate)X.entities.registerCreateInterceptor(this.entityType,(U,R)=>this.interceptCreate(U,R,X));let Y=this.createGenerationHandler(X);if(Y)X.jobs.registerHandler(`${this.entityType}:generation`,Y);let W=this.getTemplates();if(W&&Object.keys(W).length>0)$.registerTemplates(W,this.id);let q=this.getDataSources();for(let U of q)X.entities.registerDataSource(U);let V=this.getDerivedEntityProjections(X);for(let U of V){let R=sW(X,this.logger,U);this.derivedEntityProjectionControllers.set(U.id,R)}await this.onRegister(this.context);let J=await this.getInstructions();return{tools:[],resources:[],...J&&{instructions:J}}}async interceptCreate($,G,X){return{kind:"continue",input:$}}createGenerationHandler($){return null}getTemplates(){return null}getDataSources(){return[]}getEntityTypeConfig(){return}getDerivedEntityProjections($){return[]}getDerivedEntityProjectionController($){return this.derivedEntityProjectionControllers.get($)}}class aW extends K5{hooks;constructor($,G,X,Y,W){super($,G,X,Y);this.hooks=W}get entityType(){return this.hooks.getEntityType()}get schema(){return this.hooks.getSchema()}get adapter(){return this.hooks.getAdapter()}onRegister($){return this.hooks.onRegister($)}onReady($){return this.hooks.onReady($)}onShutdown(){return this.hooks.onShutdown()}getEntityTypeConfig(){return this.hooks.getEntityTypeConfig()}getDataSources(){return this.hooks.getDataSources()}getInstructions(){return this.hooks.getInstructions()}interceptCreate($,G,X){return this.hooks.interceptCreate($,G,X)}}class u9{type="entity";id;version;packageName;description;delegate;constructor($,G,X,Y){if(this.id=$,this.version=G.version,this.packageName=G.name,G.description!==void 0)this.description=G.description;this.delegate=new aW($,G,X,Y,{getEntityType:()=>this.entityType,getSchema:()=>this.schema,getAdapter:()=>this.adapter,onRegister:(W)=>this.onRegister(W),onReady:(W)=>this.onReady(W),onShutdown:()=>this.onShutdown(),getEntityTypeConfig:()=>this.getEntityTypeConfig(),getDataSources:()=>this.getDataSources(),getInstructions:()=>this.getInstructions(),interceptCreate:(W,q,V)=>this.interceptCreate(W,q,V)})}register($,G){return this.delegate.register($,G)}async onRegister($){}async onReady($){}async onShutdown(){}async getInstructions(){return}getEntityTypeConfig(){return}getDataSources(){return[]}async interceptCreate($,G,X){return{kind:"continue",input:$}}ready(){return this.delegate.ready()}shutdown(){return this.delegate.shutdown?.()??Promise.resolve()}}function tW($){return M9($)}function eW($){if(!$)return;return{...$.userPermissionLevel&&{userPermissionLevel:$.userPermissionLevel},...$.interfaceType&&{interfaceType:$.interfaceType},...$.channelId&&{channelId:$.channelId},...$.channelName&&{channelName:$.channelName},...$.actor&&{actor:$.actor},...$.source&&{source:$.source},...$.attachments&&{attachments:$.attachments}}}function $q($){return{chat:async(G,X,Y)=>{return tW(await $.chat(G,X,eW(Y)))},confirmPendingAction:async(G,X,Y,W)=>{let q=eW(W);if(!q)throw Error("Confirmation requires caller context.");return tW(await $.confirmPendingAction(G,X,Y,q))},invalidate:()=>{$.invalidateAgent()}}}function Gq($,G,X){let Y=U4($,G,X),W=$.getMCPService(),q=$.getPermissionService(),V=$q($.getAgentService());return{...Y,mcpTransport:W,agent:V,permissions:{...Y.permissions,getUserLevel:(J,U,R)=>{return q.determineUserLevel(J,U,R)}},daemons:{register:(J,U)=>{let R=`${G}:${J}`;$.registerDaemon(R,U,G),Y.logger.debug(`Registered daemon: ${R}`)}},conversations:{...Y.conversations,start:async(J)=>{return $.getConversationService().startConversation(J)},addMessage:async(J)=>{await $.getConversationService().addMessage(J)},updateMetadata:async(J)=>{return $.getConversationService().updateConversationMetadata(J)},delete:async(J)=>{return $.getConversationService().deleteConversation(J)}},tools:{listForPermissionLevel:(J)=>{return $.listToolsForPermissionLevel(J)}},apiRoutes:{getRoutes:()=>{return $.getPluginApiRoutes()},getMessageBus:()=>{return $.getMessageBus()}},webRoutes:{getRoutes:()=>{return $.getPluginWebRoutes()}},plugins:{has:(J)=>$.hasPlugin(J)}}}var pw=3600000;class s4 extends F2{type="interface";daemon;jobTrackingEntries=new Map;jobTrackingTtlMs=pw;async register($,G){let X=Gq($,this.id,G);if(this.context=X,this.initializeDaemon(),this.daemon)await this.registerDaemon(X);return this.setupMessageHandlers(X),await this.onRegister(X),this.getCapabilities()}async onRegister($){}async registerDaemon($){if(!this.daemon)return;$.daemons.register(this.id,this.daemon),$.logger.debug(`Registered daemon for interface: ${this.id}`)}createDaemon(){return}requiresDaemonStartup(){return!1}getWebRoutes(){return[]}initializeDaemon(){let $=this.createDaemon();if($)this.daemon=$}async handleProgressEvent($,G){}cleanupExpiredEntries(){let $=Date.now(),G=[];for(let[X,Y]of this.jobTrackingEntries)if($-Y.createdAt>this.jobTrackingTtlMs)G.push(X);for(let X of G)this.jobTrackingEntries.delete(X)}ownsJob($,G){return this.jobTrackingEntries.has($)||G!==void 0&&this.jobTrackingEntries.has(G)}getJobTracking($,G){let X=this.jobTrackingEntries.get($);if(X)return X.info;if(G){let Y=this.jobTrackingEntries.get(G);if(Y)return Y.info}return}setJobTracking($,G){this.cleanupExpiredEntries(),this.jobTrackingEntries.set($,{info:G,createdAt:Date.now()})}removeJobTracking($){this.jobTrackingEntries.delete($)}async createJobWithTracking($,G){let Y=await this.getContext().jobs.enqueue($);return this.setJobTracking(Y,G),Y}async createBatchWithTracking($,G,X){let W=await this.getContext().jobs.enqueueBatch($,X);return this.setJobTracking(W,G),W}}class Xq extends s4{hooks;constructor($,G,X,Y,W){super($,G,X,Y);this.hooks=W}onRegister($){return this.hooks.onRegister($)}onReady($){return this.hooks.onReady($)}onShutdown(){return this.hooks.onShutdown()}getTools(){return this.hooks.getTools()}getResources(){return this.hooks.getResources()}getInstructions(){return this.hooks.getInstructions()}getWebRoutes(){return this.hooks.getWebRoutes()}requiresDaemonStartup(){return this.hooks.requiresDaemonStartup()}}class a4{type="interface";id;version;packageName;description;delegate;constructor($,G,X,Y){if(this.id=$,this.version=G.version,this.packageName=G.name,G.description!==void 0)this.description=G.description;this.delegate=new Xq($,G,X,Y,{onRegister:(W)=>this.onRegister(W),onReady:(W)=>this.onReady(W),onShutdown:()=>this.onShutdown(),getTools:()=>this.getTools(),getResources:()=>this.getResources(),getInstructions:()=>this.getInstructions(),getWebRoutes:()=>this.getWebRoutes(),requiresDaemonStartup:()=>this.requiresDaemonStartup()})}register($,G){return this.delegate.register($,G)}async onRegister($){}async onReady($){}async onShutdown(){}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}getWebRoutes(){return[]}requiresDaemonStartup(){return!1}ready(){return this.delegate.ready()}shutdown(){return this.delegate.shutdown?.()??Promise.resolve()}}function Yq($,G){$.messaging.subscribe("job-progress",async(X)=>{try{let Y=O9.safeParse(X.payload);if(!Y.success)return G.onInvalidSchema(),{success:!1};let W=Y.data;return await G.onProgress(W,W.metadata),{success:!0}}catch(Y){return G.onError(Y),{success:!1}}})}function Wq($){let G=$.status==="completed"?"\u2705":"\u274C",X=$.status==="completed"?"completed":"failed",Y=$.metadata.operationType.replace(/_/g," "),W=$.metadata.operationTarget?`: ${$.metadata.operationTarget}`:"",q=`${G} **${Y}${W}** ${X}`;if($.message)q+=`
|
|
118
|
+
`+$.slice(V+1);else U+=$.slice(W);return U.slice(1)}function rQ($){var G="",X=0,Y;for(var W=0;W<$.length;X>=65536?W+=2:W++)if(X=S4($,W),Y=E1[X],!Y&&b4(X)){if(G+=$[W],X>=65536)G+=$[W+1]}else G+=Y||vQ(X);return G}function cQ($,G,X){var Y="",W=$.tag,q,V,J;for(q=0,V=X.length;q<V;q+=1){if(J=X[q],$.replacer)J=$.replacer.call(X,String(q),J);if(P0($,G,J,!1,!1)||typeof J>"u"&&P0($,G,null,!1,!1)){if(Y!=="")Y+=","+(!$.condenseFlow?" ":"");Y+=$.dump}}$.tag=W,$.dump="["+Y+"]"}function OX($,G,X,Y){var W="",q=$.tag,V,J,U;for(V=0,J=X.length;V<J;V+=1){if(U=X[V],$.replacer)U=$.replacer.call(X,String(V),U);if(P0($,G+1,U,!0,!0,!1,!0)||typeof U>"u"&&P0($,G+1,null,!0,!0,!1,!0)){if(!Y||W!=="")W+=l8($,G);if($.dump&&x4===$.dump.charCodeAt(0))W+="-";else W+="- ";W+=$.dump}}$.tag=q,$.dump=W||"[]"}function dQ($,G,X){var Y="",W=$.tag,q=Object.keys(X),V,J,U,R,D;for(V=0,J=q.length;V<J;V+=1){if(D="",Y!=="")D+=", ";if($.condenseFlow)D+='"';if(U=q[V],R=X[U],$.replacer)R=$.replacer.call(X,U,R);if(!P0($,G,U,!1,!1))continue;if($.dump.length>1024)D+="? ";if(D+=$.dump+($.condenseFlow?'"':"")+":"+($.condenseFlow?"":" "),!P0($,G,R,!1,!1))continue;D+=$.dump,Y+=D}$.tag=W,$.dump="{"+Y+"}"}function iQ($,G,X,Y){var W="",q=$.tag,V=Object.keys(X),J,U,R,D,M,F;if($.sortKeys===!0)V.sort();else if(typeof $.sortKeys==="function")V.sort($.sortKeys);else if($.sortKeys)throw new y1("sortKeys must be a boolean or a function");for(J=0,U=V.length;J<U;J+=1){if(F="",!Y||W!=="")F+=l8($,G);if(R=V[J],D=X[R],$.replacer)D=$.replacer.call(X,R,D);if(!P0($,G+1,R,!0,!0,!0))continue;if(M=$.tag!==null&&$.tag!=="?"||$.dump&&$.dump.length>1024,M)if($.dump&&x4===$.dump.charCodeAt(0))F+="?";else F+="? ";if(F+=$.dump,M)F+=l8($,G);if(!P0($,G+1,D,!0,M))continue;if($.dump&&x4===$.dump.charCodeAt(0))F+=":";else F+=": ";F+=$.dump,W+=F}$.tag=q,$.dump=W||"{}"}function PX($,G,X){var Y,W,q,V,J,U;W=X?$.explicitTypes:$.implicitTypes;for(q=0,V=W.length;q<V;q+=1)if(J=W[q],(J.instanceOf||J.predicate)&&(!J.instanceOf||typeof G==="object"&&G instanceof J.instanceOf)&&(!J.predicate||J.predicate(G))){if(X)if(J.multi&&J.representName)$.tag=J.representName(G);else $.tag=J.tag;else $.tag="?";if(J.represent){if(U=$.styleMap[J.tag]||J.defaultStyle,gX.call(J.represent)==="[object Function]")Y=J.represent(G,U);else if(hX.call(J.represent,U))Y=J.represent[U](G,U);else throw new y1("!<"+J.tag+'> tag resolver accepts not "'+U+'" style');$.dump=Y}return!0}return!1}function P0($,G,X,Y,W,q,V){if($.tag=null,$.dump=X,!PX($,X,!1))PX($,X,!0);var J=gX.call($.dump),U=Y,R;if(Y)Y=$.flowLevel<0||$.flowLevel>G;var D=J==="[object Object]"||J==="[object Array]",M,F;if(D)M=$.duplicates.indexOf(X),F=M!==-1;if($.tag!==null&&$.tag!=="?"||F||$.indent!==2&&G>0)W=!1;if(F&&$.usedDuplicates[M])$.dump="*ref_"+M;else{if(D&&F&&!$.usedDuplicates[M])$.usedDuplicates[M]=!0;if(J==="[object Object]"){if(Y&&Object.keys($.dump).length!==0){if(iQ($,G,$.dump,W),F)$.dump="&ref_"+M+$.dump}else if(dQ($,G,$.dump),F)$.dump="&ref_"+M+" "+$.dump}else if(J==="[object Array]"){if(Y&&$.dump.length!==0){if($.noArrayIndent&&!V&&G>0)OX($,G-1,$.dump,W);else OX($,G,$.dump,W);if(F)$.dump="&ref_"+M+$.dump}else if(cQ($,G,$.dump),F)$.dump="&ref_"+M+" "+$.dump}else if(J==="[object String]"){if($.tag!=="?")pQ($,$.dump,G,q,U)}else if(J==="[object Undefined]")return!1;else{if($.skipInvalid)return!1;throw new y1("unacceptable kind of an object to dump "+J)}if($.tag!==null&&$.tag!=="?"){if(R=encodeURI($.tag[0]==="!"?$.tag.slice(1):$.tag).replace(/!/g,"%21"),$.tag[0]==="!")R="!"+R;else if(R.slice(0,18)==="tag:yaml.org,2002:")R="!!"+R.slice(18);else R="!<"+R+">";$.dump=R+" "+$.dump}}return!0}function nQ($,G){var X=[],Y=[],W,q;c8($,X,Y);for(W=0,q=Y.length;W<q;W+=1)G.duplicates.push(X[Y[W]]);G.usedDuplicates=Array(q)}function c8($,G,X){var Y,W,q;if($!==null&&typeof $==="object")if(W=G.indexOf($),W!==-1){if(X.indexOf(W)===-1)X.push(W)}else if(G.push($),Array.isArray($))for(W=0,q=$.length;W<q;W+=1)c8($[W],G,X);else{Y=Object.keys($);for(W=0,q=Y.length;W<q;W+=1)c8($[Y[W]],G,X)}}function oQ($,G){G=G||{};var X=new hQ(G);if(!X.noRefs)nQ($,X);var Y=$;if(X.replacer)Y=X.replacer.call({"":Y},"",Y);if(P0(X,0,Y,!0,!0))return X.dump+`
|
|
119
|
+
`;return""}var sQ=oQ,aQ={dump:sQ};function s8($,G){return function(){throw Error("Function yaml."+$+" is removed in js-yaml 4. Use yaml."+G+" instead, which is now safe by default.")}}var{load:tQ,loadAll:kT}=vX,eQ=aQ.dump;var bT=s8("safeLoad","load"),vT=s8("safeLoadAll","loadAll"),gT=s8("safeDump","dump");import{webcrypto as nX}from"crypto";var iX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var GK=128,U2,r2;function XK($){if($<0||$>1024)throw RangeError("Wrong ID size");if(!U2||U2.length<$)U2=Buffer.allocUnsafe($*GK),nX.getRandomValues(U2),r2=0;else if(r2+$>U2.length)nX.getRandomValues(U2),r2=0;r2+=$}function oX($=21){XK($|=0);let G="";for(let X=r2-$;X<r2;X++)G+=iX[U2[X]&63];return G}function g0($=12){return oX($)}function v4($){if(Array.isArray($))return $.map(v4);if(!$||typeof $!=="object")return $;if($ instanceof Uint8Array)return $;return Object.fromEntries(Object.entries($).filter(([,G])=>G!==void 0).map(([G,X])=>[G,v4(X)]))}var H={};t9(H,{void:()=>mK,util:()=>a,unknown:()=>yK,union:()=>rK,undefined:()=>vK,tuple:()=>iK,transformer:()=>YF,symbol:()=>bK,string:()=>WY,strictObject:()=>lK,setErrorMap:()=>qK,set:()=>sK,record:()=>nK,quotelessJson:()=>YK,promise:()=>XF,preprocess:()=>VF,pipeline:()=>JF,ostring:()=>HF,optional:()=>WF,onumber:()=>UF,oboolean:()=>RF,objectUtil:()=>a8,object:()=>pK,number:()=>qY,nullable:()=>qF,null:()=>gK,never:()=>fK,nativeEnum:()=>GF,nan:()=>IK,map:()=>oK,makeIssue:()=>g4,literal:()=>eK,lazy:()=>tK,late:()=>jK,isValid:()=>h0,isDirty:()=>n6,isAsync:()=>d2,isAborted:()=>i6,intersection:()=>dK,instanceof:()=>SK,getParsedType:()=>J0,getErrorMap:()=>c2,function:()=>aK,enum:()=>$F,effect:()=>YF,discriminatedUnion:()=>cK,defaultErrorMap:()=>N0,datetimeRegex:()=>GY,date:()=>kK,custom:()=>YY,coerce:()=>DF,boolean:()=>VY,bigint:()=>xK,array:()=>uK,any:()=>hK,addIssueToContext:()=>x,ZodVoid:()=>y4,ZodUnknown:()=>y0,ZodUnion:()=>t2,ZodUndefined:()=>s2,ZodType:()=>o,ZodTuple:()=>U0,ZodTransformer:()=>G0,ZodSymbol:()=>h4,ZodString:()=>a1,ZodSet:()=>A2,ZodSchema:()=>o,ZodRecord:()=>f4,ZodReadonly:()=>q4,ZodPromise:()=>Q2,ZodPipeline:()=>p4,ZodParsedType:()=>j,ZodOptional:()=>e1,ZodObject:()=>V1,ZodNumber:()=>f0,ZodNullable:()=>Z0,ZodNull:()=>a2,ZodNever:()=>H0,ZodNativeEnum:()=>X4,ZodNaN:()=>u4,ZodMap:()=>m4,ZodLiteral:()=>G4,ZodLazy:()=>$4,ZodIssueCode:()=>E,ZodIntersection:()=>e2,ZodFunction:()=>n2,ZodFirstPartyTypeKind:()=>p,ZodError:()=>j1,ZodEnum:()=>u0,ZodEffects:()=>G0,ZodDiscriminatedUnion:()=>o6,ZodDefault:()=>Y4,ZodDate:()=>D2,ZodCatch:()=>W4,ZodBranded:()=>s6,ZodBoolean:()=>o2,ZodBigInt:()=>m0,ZodArray:()=>t1,ZodAny:()=>M2,Schema:()=>o,ParseStatus:()=>_1,OK:()=>S1,NEVER:()=>MF,INVALID:()=>u,EMPTY_PATH:()=>VK,DIRTY:()=>R2,BRAND:()=>EK});var a;(function($){$.assertEqual=(W)=>{};function G(W){}$.assertIs=G;function X(W){throw Error()}$.assertNever=X,$.arrayToEnum=(W)=>{let q={};for(let V of W)q[V]=V;return q},$.getValidEnumValues=(W)=>{let q=$.objectKeys(W).filter((J)=>typeof W[W[J]]!=="number"),V={};for(let J of q)V[J]=W[J];return $.objectValues(V)},$.objectValues=(W)=>{return $.objectKeys(W).map(function(q){return W[q]})},$.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let q=[];for(let V in W)if(Object.prototype.hasOwnProperty.call(W,V))q.push(V);return q},$.find=(W,q)=>{for(let V of W)if(q(V))return V;return},$.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function Y(W,q=" | "){return W.map((V)=>typeof V==="string"?`'${V}'`:V).join(q)}$.joinValues=Y,$.jsonStringifyReplacer=(W,q)=>{if(typeof q==="bigint")return q.toString();return q}})(a||(a={}));var a8;(function($){$.mergeShapes=(G,X)=>{return{...G,...X}}})(a8||(a8={}));var j=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),J0=($)=>{switch(typeof $){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN($)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":if(Array.isArray($))return j.array;if($===null)return j.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return j.promise;if(typeof Map<"u"&&$ instanceof Map)return j.map;if(typeof Set<"u"&&$ instanceof Set)return j.set;if(typeof Date<"u"&&$ instanceof Date)return j.date;return j.object;default:return j.unknown}};var E=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),YK=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class j1 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(X)=>{this.issues=[...this.issues,X]},this.addIssues=(X=[])=>{this.issues=[...this.issues,...X]};let G=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,G);else this.__proto__=G;this.name="ZodError",this.issues=$}format($){let G=$||function(W){return W.message},X={_errors:[]},Y=(W)=>{for(let q of W.issues)if(q.code==="invalid_union")q.unionErrors.map(Y);else if(q.code==="invalid_return_type")Y(q.returnTypeError);else if(q.code==="invalid_arguments")Y(q.argumentsError);else if(q.path.length===0)X._errors.push(G(q));else{let V=X,J=0;while(J<q.path.length){let U=q.path[J];if(J!==q.path.length-1)V[U]=V[U]||{_errors:[]};else V[U]=V[U]||{_errors:[]},V[U]._errors.push(G(q));V=V[U],J++}}};return Y(this),X}static assert($){if(!($ instanceof j1))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(G)=>G.message){let G={},X=[];for(let Y of this.issues)if(Y.path.length>0){let W=Y.path[0];G[W]=G[W]||[],G[W].push($(Y))}else X.push($(Y));return{formErrors:X,fieldErrors:G}}get formErrors(){return this.flatten()}}j1.create=($)=>{return new j1($)};var WK=($,G)=>{let X;switch($.code){case E.invalid_type:if($.received===j.undefined)X="Required";else X=`Expected ${$.expected}, received ${$.received}`;break;case E.invalid_literal:X=`Invalid literal value, expected ${JSON.stringify($.expected,a.jsonStringifyReplacer)}`;break;case E.unrecognized_keys:X=`Unrecognized key(s) in object: ${a.joinValues($.keys,", ")}`;break;case E.invalid_union:X="Invalid input";break;case E.invalid_union_discriminator:X=`Invalid discriminator value. Expected ${a.joinValues($.options)}`;break;case E.invalid_enum_value:X=`Invalid enum value. Expected ${a.joinValues($.options)}, received '${$.received}'`;break;case E.invalid_arguments:X="Invalid function arguments";break;case E.invalid_return_type:X="Invalid function return type";break;case E.invalid_date:X="Invalid date";break;case E.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(X=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")X=`${X} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)X=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)X=`Invalid input: must end with "${$.validation.endsWith}"`;else a.assertNever($.validation);else if($.validation!=="regex")X=`Invalid ${$.validation}`;else X="Invalid";break;case E.too_small:if($.type==="array")X=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")X=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")X=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")X=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")X=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else X="Invalid input";break;case E.too_big:if($.type==="array")X=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")X=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")X=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")X=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")X=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else X="Invalid input";break;case E.custom:X="Invalid input";break;case E.invalid_intersection_types:X="Intersection results could not be merged";break;case E.not_multiple_of:X=`Number must be a multiple of ${$.multipleOf}`;break;case E.not_finite:X="Number must be finite";break;default:X=G.defaultError,a.assertNever($)}return{message:X}},N0=WK;var sX=N0;function qK($){sX=$}function c2(){return sX}var g4=($)=>{let{data:G,path:X,errorMaps:Y,issueData:W}=$,q=[...X,...W.path||[]],V={...W,path:q};if(W.message!==void 0)return{...W,path:q,message:W.message};let J="",U=Y.filter((R)=>!!R).slice().reverse();for(let R of U)J=R(V,{data:G,defaultError:J}).message;return{...W,path:q,message:J}},VK=[];function x($,G){let X=c2(),Y=g4({issueData:G,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,X,X===N0?void 0:N0].filter((W)=>!!W)});$.common.issues.push(Y)}class _1{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,G){let X=[];for(let Y of G){if(Y.status==="aborted")return u;if(Y.status==="dirty")$.dirty();X.push(Y.value)}return{status:$.value,value:X}}static async mergeObjectAsync($,G){let X=[];for(let Y of G){let W=await Y.key,q=await Y.value;X.push({key:W,value:q})}return _1.mergeObjectSync($,X)}static mergeObjectSync($,G){let X={};for(let Y of G){let{key:W,value:q}=Y;if(W.status==="aborted")return u;if(q.status==="aborted")return u;if(W.status==="dirty")$.dirty();if(q.status==="dirty")$.dirty();if(W.value!=="__proto__"&&(typeof q.value<"u"||Y.alwaysSet))X[W.value]=q.value}return{status:$.value,value:X}}}var u=Object.freeze({status:"aborted"}),R2=($)=>({status:"dirty",value:$}),S1=($)=>({status:"valid",value:$}),i6=($)=>$.status==="aborted",n6=($)=>$.status==="dirty",h0=($)=>$.status==="valid",d2=($)=>typeof Promise<"u"&&$ instanceof Promise;var g;(function($){$.errToObj=(G)=>typeof G==="string"?{message:G}:G||{},$.toString=(G)=>typeof G==="string"?G:G?.message})(g||(g={}));class $0{constructor($,G,X,Y){this._cachedPath=[],this.parent=$,this.data=G,this._path=X,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var aX=($,G)=>{if(h0(G))return{success:!0,data:G.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let X=new j1($.common.issues);return this._error=X,this._error}}}};function d($){if(!$)return{};let{errorMap:G,invalid_type_error:X,required_error:Y,description:W}=$;if(G&&(X||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(G)return{errorMap:G,description:W};return{errorMap:(V,J)=>{let{message:U}=$;if(V.code==="invalid_enum_value")return{message:U??J.defaultError};if(typeof J.data>"u")return{message:U??Y??J.defaultError};if(V.code!=="invalid_type")return{message:J.defaultError};return{message:U??X??J.defaultError}},description:W}}class o{get description(){return this._def.description}_getType($){return J0($.data)}_getOrReturnCtx($,G){return G||{common:$.parent.common,data:$.data,parsedType:J0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new _1,ctx:{common:$.parent.common,data:$.data,parsedType:J0($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let G=this._parse($);if(d2(G))throw Error("Synchronous parse encountered promise.");return G}_parseAsync($){let G=this._parse($);return Promise.resolve(G)}parse($,G){let X=this.safeParse($,G);if(X.success)return X.data;throw X.error}safeParse($,G){let X={common:{issues:[],async:G?.async??!1,contextualErrorMap:G?.errorMap},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:J0($)},Y=this._parseSync({data:$,path:X.path,parent:X});return aX(X,Y)}"~validate"($){let G={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:J0($)};if(!this["~standard"].async)try{let X=this._parseSync({data:$,path:[],parent:G});return h0(X)?{value:X.value}:{issues:G.common.issues}}catch(X){if(X?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;G.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:G}).then((X)=>h0(X)?{value:X.value}:{issues:G.common.issues})}async parseAsync($,G){let X=await this.safeParseAsync($,G);if(X.success)return X.data;throw X.error}async safeParseAsync($,G){let X={common:{issues:[],contextualErrorMap:G?.errorMap,async:!0},path:G?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:J0($)},Y=this._parse({data:$,path:X.path,parent:X}),W=await(d2(Y)?Y:Promise.resolve(Y));return aX(X,W)}refine($,G){let X=(Y)=>{if(typeof G==="string"||typeof G>"u")return{message:G};else if(typeof G==="function")return G(Y);else return G};return this._refinement((Y,W)=>{let q=$(Y),V=()=>W.addIssue({code:E.custom,...X(Y)});if(typeof Promise<"u"&&q instanceof Promise)return q.then((J)=>{if(!J)return V(),!1;else return!0});if(!q)return V(),!1;else return!0})}refinement($,G){return this._refinement((X,Y)=>{if(!$(X))return Y.addIssue(typeof G==="function"?G(X,Y):G),!1;else return!0})}_refinement($){return new G0({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(G)=>this["~validate"](G)}}optional(){return e1.create(this,this._def)}nullable(){return Z0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return t1.create(this)}promise(){return Q2.create(this,this._def)}or($){return t2.create([this,$],this._def)}and($){return e2.create(this,$,this._def)}transform($){return new G0({...d(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:$}})}default($){let G=typeof $==="function"?$:()=>$;return new Y4({...d(this._def),innerType:this,defaultValue:G,typeName:p.ZodDefault})}brand(){return new s6({typeName:p.ZodBranded,type:this,...d(this._def)})}catch($){let G=typeof $==="function"?$:()=>$;return new W4({...d(this._def),innerType:this,catchValue:G,typeName:p.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return p4.create(this,$)}readonly(){return q4.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var JK=/^c[^\s-]{8,}$/i,HK=/^[0-9a-z]+$/,UK=/^[0-9A-HJKMNP-TV-Z]{26}$/i,RK=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,DK=/^[a-z0-9_-]{21}$/i,MK=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,AK=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,QK=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",t8,FK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wK=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,BK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,OK=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,PK=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,NK=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eX="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zK=new RegExp(`^${eX}$`);function $Y($){let G="[0-5]\\d";if($.precision)G=`${G}\\.\\d{${$.precision}}`;else if($.precision==null)G=`${G}(\\.\\d+)?`;let X=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${G})${X}`}function ZK($){return new RegExp(`^${$Y($)}$`)}function GY($){let G=`${eX}T${$Y($)}`,X=[];if(X.push($.local?"Z?":"Z"),$.offset)X.push("([+-]\\d{2}:?\\d{2})");return G=`${G}(${X.join("|")})`,new RegExp(`^${G}$`)}function _K($,G){if((G==="v4"||!G)&&FK.test($))return!0;if((G==="v6"||!G)&&BK.test($))return!0;return!1}function LK($,G){if(!MK.test($))return!1;try{let[X]=$.split(".");if(!X)return!1;let Y=X.replace(/-/g,"+").replace(/_/g,"/").padEnd(X.length+(4-X.length%4)%4,"="),W=JSON.parse(atob(Y));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if(G&&W.alg!==G)return!1;return!0}catch{return!1}}function CK($,G){if((G==="v4"||!G)&&wK.test($))return!0;if((G==="v6"||!G)&&OK.test($))return!0;return!1}class a1 extends o{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==j.string){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_type,expected:j.string,received:W.parsedType}),u}let X=new _1,Y=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.length<W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),X.dirty()}else if(W.kind==="max"){if($.data.length>W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),X.dirty()}else if(W.kind==="length"){let q=$.data.length>W.value,V=$.data.length<W.value;if(q||V){if(Y=this._getOrReturnCtx($,Y),q)x(Y,{code:E.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(V)x(Y,{code:E.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});X.dirty()}}else if(W.kind==="email"){if(!QK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"email",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="emoji"){if(!t8)t8=new RegExp(KK,"u");if(!t8.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"emoji",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="uuid"){if(!RK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"uuid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="nanoid"){if(!DK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"nanoid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="cuid"){if(!JK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"cuid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="cuid2"){if(!HK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"cuid2",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="ulid"){if(!UK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"ulid",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="url")try{new URL($.data)}catch{Y=this._getOrReturnCtx($,Y),x(Y,{validation:"url",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"regex",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="trim")$.data=$.data.trim();else if(W.kind==="includes"){if(!$.data.includes(W.value,W.position))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),X.dirty()}else if(W.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(W.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(W.kind==="startsWith"){if(!$.data.startsWith(W.value))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:{startsWith:W.value},message:W.message}),X.dirty()}else if(W.kind==="endsWith"){if(!$.data.endsWith(W.value))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:{endsWith:W.value},message:W.message}),X.dirty()}else if(W.kind==="datetime"){if(!GY(W).test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:"datetime",message:W.message}),X.dirty()}else if(W.kind==="date"){if(!zK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:"date",message:W.message}),X.dirty()}else if(W.kind==="time"){if(!ZK(W).test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{code:E.invalid_string,validation:"time",message:W.message}),X.dirty()}else if(W.kind==="duration"){if(!AK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"duration",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="ip"){if(!_K($.data,W.version))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"ip",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="jwt"){if(!LK($.data,W.alg))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"jwt",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="cidr"){if(!CK($.data,W.version))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"cidr",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="base64"){if(!PK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"base64",code:E.invalid_string,message:W.message}),X.dirty()}else if(W.kind==="base64url"){if(!NK.test($.data))Y=this._getOrReturnCtx($,Y),x(Y,{validation:"base64url",code:E.invalid_string,message:W.message}),X.dirty()}else a.assertNever(W);return{status:X.value,value:$.data}}_regex($,G,X){return this.refinement((Y)=>$.test(Y),{validation:G,code:E.invalid_string,...g.errToObj(X)})}_addCheck($){return new a1({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...g.errToObj($)})}url($){return this._addCheck({kind:"url",...g.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...g.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...g.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...g.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...g.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...g.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...g.errToObj($)})}base64($){return this._addCheck({kind:"base64",...g.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...g.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...g.errToObj($)})}ip($){return this._addCheck({kind:"ip",...g.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...g.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...g.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...g.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...g.errToObj($)})}regex($,G){return this._addCheck({kind:"regex",regex:$,...g.errToObj(G)})}includes($,G){return this._addCheck({kind:"includes",value:$,position:G?.position,...g.errToObj(G?.message)})}startsWith($,G){return this._addCheck({kind:"startsWith",value:$,...g.errToObj(G)})}endsWith($,G){return this._addCheck({kind:"endsWith",value:$,...g.errToObj(G)})}min($,G){return this._addCheck({kind:"min",value:$,...g.errToObj(G)})}max($,G){return this._addCheck({kind:"max",value:$,...g.errToObj(G)})}length($,G){return this._addCheck({kind:"length",value:$,...g.errToObj(G)})}nonempty($){return this.min(1,g.errToObj($))}trim(){return new a1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new a1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new a1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxLength(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}a1.create=($)=>{return new a1({checks:[],typeName:p.ZodString,coerce:$?.coerce??!1,...d($)})};function TK($,G){let X=($.toString().split(".")[1]||"").length,Y=(G.toString().split(".")[1]||"").length,W=X>Y?X:Y,q=Number.parseInt($.toFixed(W).replace(".","")),V=Number.parseInt(G.toFixed(W).replace(".",""));return q%V/10**W}class f0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==j.number){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_type,expected:j.number,received:W.parsedType}),u}let X=void 0,Y=new _1;for(let W of this._def.checks)if(W.kind==="int"){if(!a.isInteger($.data))X=this._getOrReturnCtx($,X),x(X,{code:E.invalid_type,expected:"integer",received:"float",message:W.message}),Y.dirty()}else if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),Y.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),Y.dirty()}else if(W.kind==="multipleOf"){if(TK($.data,W.value)!==0)X=this._getOrReturnCtx($,X),x(X,{code:E.not_multiple_of,multipleOf:W.value,message:W.message}),Y.dirty()}else if(W.kind==="finite"){if(!Number.isFinite($.data))X=this._getOrReturnCtx($,X),x(X,{code:E.not_finite,message:W.message}),Y.dirty()}else a.assertNever(W);return{status:Y.value,value:$.data}}gte($,G){return this.setLimit("min",$,!0,g.toString(G))}gt($,G){return this.setLimit("min",$,!1,g.toString(G))}lte($,G){return this.setLimit("max",$,!0,g.toString(G))}lt($,G){return this.setLimit("max",$,!1,g.toString(G))}setLimit($,G,X,Y){return new f0({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:X,message:g.toString(Y)}]})}_addCheck($){return new f0({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:g.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:g.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:g.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:g.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:g.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:g.toString(G)})}finite($){return this._addCheck({kind:"finite",message:g.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:g.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:g.toString($)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&a.isInteger($.value))}get isFinite(){let $=null,G=null;for(let X of this._def.checks)if(X.kind==="finite"||X.kind==="int"||X.kind==="multipleOf")return!0;else if(X.kind==="min"){if(G===null||X.value>G)G=X.value}else if(X.kind==="max"){if($===null||X.value<$)$=X.value}return Number.isFinite(G)&&Number.isFinite($)}}f0.create=($)=>{return new f0({checks:[],typeName:p.ZodNumber,coerce:$?.coerce||!1,...d($)})};class m0 extends o{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==j.bigint)return this._getInvalidInput($);let X=void 0,Y=new _1;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),Y.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)X=this._getOrReturnCtx($,X),x(X,{code:E.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),Y.dirty()}else if(W.kind==="multipleOf"){if($.data%W.value!==BigInt(0))X=this._getOrReturnCtx($,X),x(X,{code:E.not_multiple_of,multipleOf:W.value,message:W.message}),Y.dirty()}else a.assertNever(W);return{status:Y.value,value:$.data}}_getInvalidInput($){let G=this._getOrReturnCtx($);return x(G,{code:E.invalid_type,expected:j.bigint,received:G.parsedType}),u}gte($,G){return this.setLimit("min",$,!0,g.toString(G))}gt($,G){return this.setLimit("min",$,!1,g.toString(G))}lte($,G){return this.setLimit("max",$,!0,g.toString(G))}lt($,G){return this.setLimit("max",$,!1,g.toString(G))}setLimit($,G,X,Y){return new m0({...this._def,checks:[...this._def.checks,{kind:$,value:G,inclusive:X,message:g.toString(Y)}]})}_addCheck($){return new m0({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:g.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:g.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:g.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:g.toString($)})}multipleOf($,G){return this._addCheck({kind:"multipleOf",value:$,message:g.toString(G)})}get minValue(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $}get maxValue(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $}}m0.create=($)=>{return new m0({checks:[],typeName:p.ZodBigInt,coerce:$?.coerce??!1,...d($)})};class o2 extends o{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==j.boolean){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.boolean,received:X.parsedType}),u}return S1($.data)}}o2.create=($)=>{return new o2({typeName:p.ZodBoolean,coerce:$?.coerce||!1,...d($)})};class D2 extends o{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==j.date){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_type,expected:j.date,received:W.parsedType}),u}if(Number.isNaN($.data.getTime())){let W=this._getOrReturnCtx($);return x(W,{code:E.invalid_date}),u}let X=new _1,Y=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.getTime()<W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),X.dirty()}else if(W.kind==="max"){if($.data.getTime()>W.value)Y=this._getOrReturnCtx($,Y),x(Y,{code:E.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),X.dirty()}else a.assertNever(W);return{status:X.value,value:new Date($.data.getTime())}}_addCheck($){return new D2({...this._def,checks:[...this._def.checks,$]})}min($,G){return this._addCheck({kind:"min",value:$.getTime(),message:g.toString(G)})}max($,G){return this._addCheck({kind:"max",value:$.getTime(),message:g.toString(G)})}get minDate(){let $=null;for(let G of this._def.checks)if(G.kind==="min"){if($===null||G.value>$)$=G.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let G of this._def.checks)if(G.kind==="max"){if($===null||G.value<$)$=G.value}return $!=null?new Date($):null}}D2.create=($)=>{return new D2({checks:[],coerce:$?.coerce||!1,typeName:p.ZodDate,...d($)})};class h4 extends o{_parse($){if(this._getType($)!==j.symbol){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.symbol,received:X.parsedType}),u}return S1($.data)}}h4.create=($)=>{return new h4({typeName:p.ZodSymbol,...d($)})};class s2 extends o{_parse($){if(this._getType($)!==j.undefined){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.undefined,received:X.parsedType}),u}return S1($.data)}}s2.create=($)=>{return new s2({typeName:p.ZodUndefined,...d($)})};class a2 extends o{_parse($){if(this._getType($)!==j.null){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.null,received:X.parsedType}),u}return S1($.data)}}a2.create=($)=>{return new a2({typeName:p.ZodNull,...d($)})};class M2 extends o{constructor(){super(...arguments);this._any=!0}_parse($){return S1($.data)}}M2.create=($)=>{return new M2({typeName:p.ZodAny,...d($)})};class y0 extends o{constructor(){super(...arguments);this._unknown=!0}_parse($){return S1($.data)}}y0.create=($)=>{return new y0({typeName:p.ZodUnknown,...d($)})};class H0 extends o{_parse($){let G=this._getOrReturnCtx($);return x(G,{code:E.invalid_type,expected:j.never,received:G.parsedType}),u}}H0.create=($)=>{return new H0({typeName:p.ZodNever,...d($)})};class y4 extends o{_parse($){if(this._getType($)!==j.undefined){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.void,received:X.parsedType}),u}return S1($.data)}}y4.create=($)=>{return new y4({typeName:p.ZodVoid,...d($)})};class t1 extends o{_parse($){let{ctx:G,status:X}=this._processInputParams($),Y=this._def;if(G.parsedType!==j.array)return x(G,{code:E.invalid_type,expected:j.array,received:G.parsedType}),u;if(Y.exactLength!==null){let q=G.data.length>Y.exactLength.value,V=G.data.length<Y.exactLength.value;if(q||V)x(G,{code:q?E.too_big:E.too_small,minimum:V?Y.exactLength.value:void 0,maximum:q?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),X.dirty()}if(Y.minLength!==null){if(G.data.length<Y.minLength.value)x(G,{code:E.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),X.dirty()}if(Y.maxLength!==null){if(G.data.length>Y.maxLength.value)x(G,{code:E.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),X.dirty()}if(G.common.async)return Promise.all([...G.data].map((q,V)=>{return Y.type._parseAsync(new $0(G,q,G.path,V))})).then((q)=>{return _1.mergeArray(X,q)});let W=[...G.data].map((q,V)=>{return Y.type._parseSync(new $0(G,q,G.path,V))});return _1.mergeArray(X,W)}get element(){return this._def.type}min($,G){return new t1({...this._def,minLength:{value:$,message:g.toString(G)}})}max($,G){return new t1({...this._def,maxLength:{value:$,message:g.toString(G)}})}length($,G){return new t1({...this._def,exactLength:{value:$,message:g.toString(G)}})}nonempty($){return this.min(1,$)}}t1.create=($,G)=>{return new t1({type:$,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...d(G)})};function i2($){if($ instanceof V1){let G={};for(let X in $.shape){let Y=$.shape[X];G[X]=e1.create(i2(Y))}return new V1({...$._def,shape:()=>G})}else if($ instanceof t1)return new t1({...$._def,type:i2($.element)});else if($ instanceof e1)return e1.create(i2($.unwrap()));else if($ instanceof Z0)return Z0.create(i2($.unwrap()));else if($ instanceof U0)return U0.create($.items.map((G)=>i2(G)));else return $}class V1 extends o{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),G=a.objectKeys($);return this._cached={shape:$,keys:G},this._cached}_parse($){if(this._getType($)!==j.object){let U=this._getOrReturnCtx($);return x(U,{code:E.invalid_type,expected:j.object,received:U.parsedType}),u}let{status:X,ctx:Y}=this._processInputParams($),{shape:W,keys:q}=this._getCached(),V=[];if(!(this._def.catchall instanceof H0&&this._def.unknownKeys==="strip")){for(let U in Y.data)if(!q.includes(U))V.push(U)}let J=[];for(let U of q){let R=W[U],D=Y.data[U];J.push({key:{status:"valid",value:U},value:R._parse(new $0(Y,D,Y.path,U)),alwaysSet:U in Y.data})}if(this._def.catchall instanceof H0){let U=this._def.unknownKeys;if(U==="passthrough")for(let R of V)J.push({key:{status:"valid",value:R},value:{status:"valid",value:Y.data[R]}});else if(U==="strict"){if(V.length>0)x(Y,{code:E.unrecognized_keys,keys:V}),X.dirty()}else if(U==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let U=this._def.catchall;for(let R of V){let D=Y.data[R];J.push({key:{status:"valid",value:R},value:U._parse(new $0(Y,D,Y.path,R)),alwaysSet:R in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let U=[];for(let R of J){let D=await R.key,M=await R.value;U.push({key:D,value:M,alwaysSet:R.alwaysSet})}return U}).then((U)=>{return _1.mergeObjectSync(X,U)});else return _1.mergeObjectSync(X,J)}get shape(){return this._def.shape()}strict($){return g.errToObj,new V1({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(G,X)=>{let Y=this._def.errorMap?.(G,X).message??X.defaultError;if(G.code==="unrecognized_keys")return{message:g.errToObj($).message??Y};return{message:Y}}}:{}})}strip(){return new V1({...this._def,unknownKeys:"strip"})}passthrough(){return new V1({...this._def,unknownKeys:"passthrough"})}extend($){return new V1({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new V1({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:p.ZodObject})}setKey($,G){return this.augment({[$]:G})}catchall($){return new V1({...this._def,catchall:$})}pick($){let G={};for(let X of a.objectKeys($))if($[X]&&this.shape[X])G[X]=this.shape[X];return new V1({...this._def,shape:()=>G})}omit($){let G={};for(let X of a.objectKeys(this.shape))if(!$[X])G[X]=this.shape[X];return new V1({...this._def,shape:()=>G})}deepPartial(){return i2(this)}partial($){let G={};for(let X of a.objectKeys(this.shape)){let Y=this.shape[X];if($&&!$[X])G[X]=Y;else G[X]=Y.optional()}return new V1({...this._def,shape:()=>G})}required($){let G={};for(let X of a.objectKeys(this.shape))if($&&!$[X])G[X]=this.shape[X];else{let W=this.shape[X];while(W instanceof e1)W=W._def.innerType;G[X]=W}return new V1({...this._def,shape:()=>G})}keyof(){return XY(a.objectKeys(this.shape))}}V1.create=($,G)=>{return new V1({shape:()=>$,unknownKeys:"strip",catchall:H0.create(),typeName:p.ZodObject,...d(G)})};V1.strictCreate=($,G)=>{return new V1({shape:()=>$,unknownKeys:"strict",catchall:H0.create(),typeName:p.ZodObject,...d(G)})};V1.lazycreate=($,G)=>{return new V1({shape:$,unknownKeys:"strip",catchall:H0.create(),typeName:p.ZodObject,...d(G)})};class t2 extends o{_parse($){let{ctx:G}=this._processInputParams($),X=this._def.options;function Y(W){for(let V of W)if(V.result.status==="valid")return V.result;for(let V of W)if(V.result.status==="dirty")return G.common.issues.push(...V.ctx.common.issues),V.result;let q=W.map((V)=>new j1(V.ctx.common.issues));return x(G,{code:E.invalid_union,unionErrors:q}),u}if(G.common.async)return Promise.all(X.map(async(W)=>{let q={...G,common:{...G.common,issues:[]},parent:null};return{result:await W._parseAsync({data:G.data,path:G.path,parent:q}),ctx:q}})).then(Y);else{let W=void 0,q=[];for(let J of X){let U={...G,common:{...G.common,issues:[]},parent:null},R=J._parseSync({data:G.data,path:G.path,parent:U});if(R.status==="valid")return R;else if(R.status==="dirty"&&!W)W={result:R,ctx:U};if(U.common.issues.length)q.push(U.common.issues)}if(W)return G.common.issues.push(...W.ctx.common.issues),W.result;let V=q.map((J)=>new j1(J));return x(G,{code:E.invalid_union,unionErrors:V}),u}}get options(){return this._def.options}}t2.create=($,G)=>{return new t2({options:$,typeName:p.ZodUnion,...d(G)})};var z0=($)=>{if($ instanceof $4)return z0($.schema);else if($ instanceof G0)return z0($.innerType());else if($ instanceof G4)return[$.value];else if($ instanceof u0)return $.options;else if($ instanceof X4)return a.objectValues($.enum);else if($ instanceof Y4)return z0($._def.innerType);else if($ instanceof s2)return[void 0];else if($ instanceof a2)return[null];else if($ instanceof e1)return[void 0,...z0($.unwrap())];else if($ instanceof Z0)return[null,...z0($.unwrap())];else if($ instanceof s6)return z0($.unwrap());else if($ instanceof q4)return z0($.unwrap());else if($ instanceof W4)return z0($._def.innerType);else return[]};class o6 extends o{_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==j.object)return x(G,{code:E.invalid_type,expected:j.object,received:G.parsedType}),u;let X=this.discriminator,Y=G.data[X],W=this.optionsMap.get(Y);if(!W)return x(G,{code:E.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[X]}),u;if(G.common.async)return W._parseAsync({data:G.data,path:G.path,parent:G});else return W._parseSync({data:G.data,path:G.path,parent:G})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,G,X){let Y=new Map;for(let W of G){let q=z0(W.shape[$]);if(!q.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let V of q){if(Y.has(V))throw Error(`Discriminator property ${String($)} has duplicate value ${String(V)}`);Y.set(V,W)}}return new o6({typeName:p.ZodDiscriminatedUnion,discriminator:$,options:G,optionsMap:Y,...d(X)})}}function e8($,G){let X=J0($),Y=J0(G);if($===G)return{valid:!0,data:$};else if(X===j.object&&Y===j.object){let W=a.objectKeys(G),q=a.objectKeys($).filter((J)=>W.indexOf(J)!==-1),V={...$,...G};for(let J of q){let U=e8($[J],G[J]);if(!U.valid)return{valid:!1};V[J]=U.data}return{valid:!0,data:V}}else if(X===j.array&&Y===j.array){if($.length!==G.length)return{valid:!1};let W=[];for(let q=0;q<$.length;q++){let V=$[q],J=G[q],U=e8(V,J);if(!U.valid)return{valid:!1};W.push(U.data)}return{valid:!0,data:W}}else if(X===j.date&&Y===j.date&&+$===+G)return{valid:!0,data:$};else return{valid:!1}}class e2 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($),Y=(W,q)=>{if(i6(W)||i6(q))return u;let V=e8(W.value,q.value);if(!V.valid)return x(X,{code:E.invalid_intersection_types}),u;if(n6(W)||n6(q))G.dirty();return{status:G.value,value:V.data}};if(X.common.async)return Promise.all([this._def.left._parseAsync({data:X.data,path:X.path,parent:X}),this._def.right._parseAsync({data:X.data,path:X.path,parent:X})]).then(([W,q])=>Y(W,q));else return Y(this._def.left._parseSync({data:X.data,path:X.path,parent:X}),this._def.right._parseSync({data:X.data,path:X.path,parent:X}))}}e2.create=($,G,X)=>{return new e2({left:$,right:G,typeName:p.ZodIntersection,...d(X)})};class U0 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.array)return x(X,{code:E.invalid_type,expected:j.array,received:X.parsedType}),u;if(X.data.length<this._def.items.length)return x(X,{code:E.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u;if(!this._def.rest&&X.data.length>this._def.items.length)x(X,{code:E.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G.dirty();let W=[...X.data].map((q,V)=>{let J=this._def.items[V]||this._def.rest;if(!J)return null;return J._parse(new $0(X,q,X.path,V))}).filter((q)=>!!q);if(X.common.async)return Promise.all(W).then((q)=>{return _1.mergeArray(G,q)});else return _1.mergeArray(G,W)}get items(){return this._def.items}rest($){return new U0({...this._def,rest:$})}}U0.create=($,G)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new U0({items:$,typeName:p.ZodTuple,rest:null,...d(G)})};class f4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.object)return x(X,{code:E.invalid_type,expected:j.object,received:X.parsedType}),u;let Y=[],W=this._def.keyType,q=this._def.valueType;for(let V in X.data)Y.push({key:W._parse(new $0(X,V,X.path,V)),value:q._parse(new $0(X,X.data[V],X.path,V)),alwaysSet:V in X.data});if(X.common.async)return _1.mergeObjectAsync(G,Y);else return _1.mergeObjectSync(G,Y)}get element(){return this._def.valueType}static create($,G,X){if(G instanceof o)return new f4({keyType:$,valueType:G,typeName:p.ZodRecord,...d(X)});return new f4({keyType:a1.create(),valueType:$,typeName:p.ZodRecord,...d(G)})}}class m4 extends o{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.map)return x(X,{code:E.invalid_type,expected:j.map,received:X.parsedType}),u;let Y=this._def.keyType,W=this._def.valueType,q=[...X.data.entries()].map(([V,J],U)=>{return{key:Y._parse(new $0(X,V,X.path,[U,"key"])),value:W._parse(new $0(X,J,X.path,[U,"value"]))}});if(X.common.async){let V=new Map;return Promise.resolve().then(async()=>{for(let J of q){let U=await J.key,R=await J.value;if(U.status==="aborted"||R.status==="aborted")return u;if(U.status==="dirty"||R.status==="dirty")G.dirty();V.set(U.value,R.value)}return{status:G.value,value:V}})}else{let V=new Map;for(let J of q){let{key:U,value:R}=J;if(U.status==="aborted"||R.status==="aborted")return u;if(U.status==="dirty"||R.status==="dirty")G.dirty();V.set(U.value,R.value)}return{status:G.value,value:V}}}}m4.create=($,G,X)=>{return new m4({valueType:G,keyType:$,typeName:p.ZodMap,...d(X)})};class A2 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.parsedType!==j.set)return x(X,{code:E.invalid_type,expected:j.set,received:X.parsedType}),u;let Y=this._def;if(Y.minSize!==null){if(X.data.size<Y.minSize.value)x(X,{code:E.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),G.dirty()}if(Y.maxSize!==null){if(X.data.size>Y.maxSize.value)x(X,{code:E.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),G.dirty()}let W=this._def.valueType;function q(J){let U=new Set;for(let R of J){if(R.status==="aborted")return u;if(R.status==="dirty")G.dirty();U.add(R.value)}return{status:G.value,value:U}}let V=[...X.data.values()].map((J,U)=>W._parse(new $0(X,J,X.path,U)));if(X.common.async)return Promise.all(V).then((J)=>q(J));else return q(V)}min($,G){return new A2({...this._def,minSize:{value:$,message:g.toString(G)}})}max($,G){return new A2({...this._def,maxSize:{value:$,message:g.toString(G)}})}size($,G){return this.min($,G).max($,G)}nonempty($){return this.min(1,$)}}A2.create=($,G)=>{return new A2({valueType:$,minSize:null,maxSize:null,typeName:p.ZodSet,...d(G)})};class n2 extends o{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==j.function)return x(G,{code:E.invalid_type,expected:j.function,received:G.parsedType}),u;function X(V,J){return g4({data:V,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,c2(),N0].filter((U)=>!!U),issueData:{code:E.invalid_arguments,argumentsError:J}})}function Y(V,J){return g4({data:V,path:G.path,errorMaps:[G.common.contextualErrorMap,G.schemaErrorMap,c2(),N0].filter((U)=>!!U),issueData:{code:E.invalid_return_type,returnTypeError:J}})}let W={errorMap:G.common.contextualErrorMap},q=G.data;if(this._def.returns instanceof Q2){let V=this;return S1(async function(...J){let U=new j1([]),R=await V._def.args.parseAsync(J,W).catch((F)=>{throw U.addIssue(X(J,F)),U}),D=await Reflect.apply(q,this,R);return await V._def.returns._def.type.parseAsync(D,W).catch((F)=>{throw U.addIssue(Y(D,F)),U})})}else{let V=this;return S1(function(...J){let U=V._def.args.safeParse(J,W);if(!U.success)throw new j1([X(J,U.error)]);let R=Reflect.apply(q,this,U.data),D=V._def.returns.safeParse(R,W);if(!D.success)throw new j1([Y(R,D.error)]);return D.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new n2({...this._def,args:U0.create($).rest(y0.create())})}returns($){return new n2({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,G,X){return new n2({args:$?$:U0.create([]).rest(y0.create()),returns:G||y0.create(),typeName:p.ZodFunction,...d(X)})}}class $4 extends o{get schema(){return this._def.getter()}_parse($){let{ctx:G}=this._processInputParams($);return this._def.getter()._parse({data:G.data,path:G.path,parent:G})}}$4.create=($,G)=>{return new $4({getter:$,typeName:p.ZodLazy,...d(G)})};class G4 extends o{_parse($){if($.data!==this._def.value){let G=this._getOrReturnCtx($);return x(G,{received:G.data,code:E.invalid_literal,expected:this._def.value}),u}return{status:"valid",value:$.data}}get value(){return this._def.value}}G4.create=($,G)=>{return new G4({value:$,typeName:p.ZodLiteral,...d(G)})};function XY($,G){return new u0({values:$,typeName:p.ZodEnum,...d(G)})}class u0 extends o{_parse($){if(typeof $.data!=="string"){let G=this._getOrReturnCtx($),X=this._def.values;return x(G,{expected:a.joinValues(X),received:G.parsedType,code:E.invalid_type}),u}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let G=this._getOrReturnCtx($),X=this._def.values;return x(G,{received:G.data,code:E.invalid_enum_value,options:X}),u}return S1($.data)}get options(){return this._def.values}get enum(){let $={};for(let G of this._def.values)$[G]=G;return $}get Values(){let $={};for(let G of this._def.values)$[G]=G;return $}get Enum(){let $={};for(let G of this._def.values)$[G]=G;return $}extract($,G=this._def){return u0.create($,{...this._def,...G})}exclude($,G=this._def){return u0.create(this.options.filter((X)=>!$.includes(X)),{...this._def,...G})}}u0.create=XY;class X4 extends o{_parse($){let G=a.getValidEnumValues(this._def.values),X=this._getOrReturnCtx($);if(X.parsedType!==j.string&&X.parsedType!==j.number){let Y=a.objectValues(G);return x(X,{expected:a.joinValues(Y),received:X.parsedType,code:E.invalid_type}),u}if(!this._cache)this._cache=new Set(a.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Y=a.objectValues(G);return x(X,{received:X.data,code:E.invalid_enum_value,options:Y}),u}return S1($.data)}get enum(){return this._def.values}}X4.create=($,G)=>{return new X4({values:$,typeName:p.ZodNativeEnum,...d(G)})};class Q2 extends o{unwrap(){return this._def.type}_parse($){let{ctx:G}=this._processInputParams($);if(G.parsedType!==j.promise&&G.common.async===!1)return x(G,{code:E.invalid_type,expected:j.promise,received:G.parsedType}),u;let X=G.parsedType===j.promise?G.data:Promise.resolve(G.data);return S1(X.then((Y)=>{return this._def.type.parseAsync(Y,{path:G.path,errorMap:G.common.contextualErrorMap})}))}}Q2.create=($,G)=>{return new Q2({type:$,typeName:p.ZodPromise,...d(G)})};class G0 extends o{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:G,ctx:X}=this._processInputParams($),Y=this._def.effect||null,W={addIssue:(q)=>{if(x(X,q),q.fatal)G.abort();else G.dirty()},get path(){return X.path}};if(W.addIssue=W.addIssue.bind(W),Y.type==="preprocess"){let q=Y.transform(X.data,W);if(X.common.async)return Promise.resolve(q).then(async(V)=>{if(G.value==="aborted")return u;let J=await this._def.schema._parseAsync({data:V,path:X.path,parent:X});if(J.status==="aborted")return u;if(J.status==="dirty")return R2(J.value);if(G.value==="dirty")return R2(J.value);return J});else{if(G.value==="aborted")return u;let V=this._def.schema._parseSync({data:q,path:X.path,parent:X});if(V.status==="aborted")return u;if(V.status==="dirty")return R2(V.value);if(G.value==="dirty")return R2(V.value);return V}}if(Y.type==="refinement"){let q=(V)=>{let J=Y.refinement(V,W);if(X.common.async)return Promise.resolve(J);if(J instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return V};if(X.common.async===!1){let V=this._def.schema._parseSync({data:X.data,path:X.path,parent:X});if(V.status==="aborted")return u;if(V.status==="dirty")G.dirty();return q(V.value),{status:G.value,value:V.value}}else return this._def.schema._parseAsync({data:X.data,path:X.path,parent:X}).then((V)=>{if(V.status==="aborted")return u;if(V.status==="dirty")G.dirty();return q(V.value).then(()=>{return{status:G.value,value:V.value}})})}if(Y.type==="transform")if(X.common.async===!1){let q=this._def.schema._parseSync({data:X.data,path:X.path,parent:X});if(!h0(q))return u;let V=Y.transform(q.value,W);if(V instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:G.value,value:V}}else return this._def.schema._parseAsync({data:X.data,path:X.path,parent:X}).then((q)=>{if(!h0(q))return u;return Promise.resolve(Y.transform(q.value,W)).then((V)=>({status:G.value,value:V}))});a.assertNever(Y)}}G0.create=($,G,X)=>{return new G0({schema:$,typeName:p.ZodEffects,effect:G,...d(X)})};G0.createWithPreprocess=($,G,X)=>{return new G0({schema:G,effect:{type:"preprocess",transform:$},typeName:p.ZodEffects,...d(X)})};class e1 extends o{_parse($){if(this._getType($)===j.undefined)return S1(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}e1.create=($,G)=>{return new e1({innerType:$,typeName:p.ZodOptional,...d(G)})};class Z0 extends o{_parse($){if(this._getType($)===j.null)return S1(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}Z0.create=($,G)=>{return new Z0({innerType:$,typeName:p.ZodNullable,...d(G)})};class Y4 extends o{_parse($){let{ctx:G}=this._processInputParams($),X=G.data;if(G.parsedType===j.undefined)X=this._def.defaultValue();return this._def.innerType._parse({data:X,path:G.path,parent:G})}removeDefault(){return this._def.innerType}}Y4.create=($,G)=>{return new Y4({innerType:$,typeName:p.ZodDefault,defaultValue:typeof G.default==="function"?G.default:()=>G.default,...d(G)})};class W4 extends o{_parse($){let{ctx:G}=this._processInputParams($),X={...G,common:{...G.common,issues:[]}},Y=this._def.innerType._parse({data:X.data,path:X.path,parent:{...X}});if(d2(Y))return Y.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new j1(X.common.issues)},input:X.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new j1(X.common.issues)},input:X.data})}}removeCatch(){return this._def.innerType}}W4.create=($,G)=>{return new W4({innerType:$,typeName:p.ZodCatch,catchValue:typeof G.catch==="function"?G.catch:()=>G.catch,...d(G)})};class u4 extends o{_parse($){if(this._getType($)!==j.nan){let X=this._getOrReturnCtx($);return x(X,{code:E.invalid_type,expected:j.nan,received:X.parsedType}),u}return{status:"valid",value:$.data}}}u4.create=($)=>{return new u4({typeName:p.ZodNaN,...d($)})};var EK=Symbol("zod_brand");class s6 extends o{_parse($){let{ctx:G}=this._processInputParams($),X=G.data;return this._def.type._parse({data:X,path:G.path,parent:G})}unwrap(){return this._def.type}}class p4 extends o{_parse($){let{status:G,ctx:X}=this._processInputParams($);if(X.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:X.data,path:X.path,parent:X});if(W.status==="aborted")return u;if(W.status==="dirty")return G.dirty(),R2(W.value);else return this._def.out._parseAsync({data:W.value,path:X.path,parent:X})})();else{let Y=this._def.in._parseSync({data:X.data,path:X.path,parent:X});if(Y.status==="aborted")return u;if(Y.status==="dirty")return G.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:X.path,parent:X})}}static create($,G){return new p4({in:$,out:G,typeName:p.ZodPipeline})}}class q4 extends o{_parse($){let G=this._def.innerType._parse($),X=(Y)=>{if(h0(Y))Y.value=Object.freeze(Y.value);return Y};return d2(G)?G.then((Y)=>X(Y)):X(G)}unwrap(){return this._def.innerType}}q4.create=($,G)=>{return new q4({innerType:$,typeName:p.ZodReadonly,...d(G)})};function tX($,G){let X=typeof $==="function"?$(G):typeof $==="string"?{message:$}:$;return typeof X==="string"?{message:X}:X}function YY($,G={},X){if($)return M2.create().superRefine((Y,W)=>{let q=$(Y);if(q instanceof Promise)return q.then((V)=>{if(!V){let J=tX(G,Y),U=J.fatal??X??!0;W.addIssue({code:"custom",...J,fatal:U})}});if(!q){let V=tX(G,Y),J=V.fatal??X??!0;W.addIssue({code:"custom",...V,fatal:J})}return});return M2.create()}var jK={object:V1.lazycreate},p;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(p||(p={}));var SK=($,G={message:`Input not instance of ${$.name}`})=>YY((X)=>X instanceof $,G),WY=a1.create,qY=f0.create,IK=u4.create,xK=m0.create,VY=o2.create,kK=D2.create,bK=h4.create,vK=s2.create,gK=a2.create,hK=M2.create,yK=y0.create,fK=H0.create,mK=y4.create,uK=t1.create,pK=V1.create,lK=V1.strictCreate,rK=t2.create,cK=o6.create,dK=e2.create,iK=U0.create,nK=f4.create,oK=m4.create,sK=A2.create,aK=n2.create,tK=$4.create,eK=G4.create,$F=u0.create,GF=X4.create,XF=Q2.create,YF=G0.create,WF=e1.create,qF=Z0.create,VF=G0.createWithPreprocess,JF=p4.create,HF=()=>WY().optional(),UF=()=>qY().optional(),RF=()=>VY().optional(),DF={string:($)=>a1.create({...$,coerce:!0}),number:($)=>f0.create({...$,coerce:!0}),boolean:($)=>o2.create({...$,coerce:!0}),bigint:($)=>m0.create({...$,coerce:!0}),date:($)=>D2.create({...$,coerce:!0})};var MF=u;function R0($){return $ instanceof Error?$.message:String($)}function wF($){return $}function BF($){return $}function OF($){return $===void 0?{success:!0}:{success:!0,data:$}}function PF($){return{success:!1,error:$}}var NF=H.object({captureUrls:H.boolean().default(!1),blockedUrlDomains:H.array(H.string()).default(["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"])});function zF($,G){return{name:$,schema:G}}var p0=H.enum(["anchor","trusted","public"]),_F=H.enum(["create","update","delete","extract","publish"]),V4=H.enum(["never","anchor","trusted","public"]),JY=H.object({create:V4.optional(),update:V4.optional(),delete:V4.optional(),extract:V4.optional(),publish:V4.optional()}).strict(),LF=H.record(H.string(),JY);var CF=H.object({name:H.string(),description:H.string(),schema:H.any(),basePrompt:H.string().optional(),useKnowledgeContext:H.boolean().optional(),requiredPermission:p0,formatter:H.any().optional(),layout:H.object({component:H.any(),fullscreen:H.boolean().optional()}).optional(),dataSourceId:H.string().optional()});class l4{static canGenerate($){return!!$.basePrompt&&!!$.dataSourceId&&$.dataSourceId.includes("ai-content")}static canFetch($){return!!$.dataSourceId&&!this.canGenerate($)}static canRender($){return!!$.layout?.component}static isStaticOnly($){return!this.canGenerate($)&&!this.canFetch($)}static getCapabilities($){return{canGenerate:this.canGenerate($),canFetch:this.canFetch($),canRender:this.canRender($),isStaticOnly:this.isStaticOnly($)}}static validate($){let G=[];if($.dataSourceId?.includes("ai-content")&&!$.basePrompt)G.push(`Template "${$.name}" has AI-content dataSourceId but no basePrompt. AI generation requires a basePrompt.`);if($.basePrompt&&(!$.dataSourceId||!$.dataSourceId.includes("ai-content")))G.push(`Template "${$.name}" has basePrompt but no AI-content dataSourceId. The basePrompt won't be used.`);return G}static logCapabilities($,G){let X=this.getCapabilities($),Y=this.validate($);if(G)G.debug(`Template capabilities for "${$.name}":`,{...X,errors:Y.length>0?Y:void 0})}}var TF=H.enum(["site-content-preview","site-content-production"]),EF=H.enum(["web","image","pdf"]),jF=H.object({name:H.string(),schema:H.any(),description:H.string().optional(),pluginId:H.string(),renderers:H.object({web:H.union([H.function(),H.string()]).optional(),image:H.union([H.function(),H.string()]).optional(),pdf:H.union([H.function(),H.string()]).optional()})}),SF=H.object({enableContentGeneration:H.boolean().default(!1),outputDir:H.string(),workingDir:H.string().optional(),environment:H.enum(["preview","production"]).default("preview"),siteConfig:H.object({title:H.string(),description:H.string(),url:H.string().optional()}).optional()}),IF=H.object({success:H.boolean(),routesBuilt:H.number(),errors:H.array(H.string()).optional(),warnings:H.array(H.string()).optional()});var HY=H.object({type:H.literal("event"),event:H.string().min(1)}),kF=H.object({conversationId:H.string().min(1),interfaceType:H.string().min(1),channelId:H.string().min(1).optional(),channelName:H.string().min(1),userPermissionLevel:H.enum(["anchor","trusted","public"]),action:HY});var a6=H.object({id:H.string(),toolCallId:H.string().optional(),toolName:H.string(),summary:H.string(),completionSummary:H.string().optional(),preview:H.string().optional(),args:H.unknown()}),$9=H.enum(["approval-requested","approval-responded","output-available","output-denied","output-error"]),G9=H.object({kind:H.literal("tool-approval"),id:H.string(),toolCallId:H.string().optional(),toolName:H.string(),input:H.record(H.unknown()).optional(),summary:H.string(),completionSummary:H.string().optional(),preview:H.string().optional(),state:$9,output:H.unknown().optional(),error:H.string().optional()}),X9=H.object({entityType:H.string().optional(),entityId:H.string().optional(),attachmentType:H.string().optional()}),Y9=H.object({mediaType:H.string().min(1),url:H.string().min(1),downloadUrl:H.string().min(1).optional(),previewUrl:H.string().min(1).optional(),filename:H.string().min(1).optional(),sizeBytes:H.number().nonnegative().optional(),source:X9.optional()}),W9=H.object({kind:H.literal("attachment"),id:H.string(),jobId:H.string().optional(),title:H.string(),description:H.string().optional(),attachment:Y9}),q9=H.object({id:H.string().min(1),title:H.string().min(1).optional(),source:H.string().min(1),url:H.string().min(1).optional(),entityType:H.string().min(1).optional(),entityId:H.string().min(1).optional(),excerpt:H.string().min(1).optional(),provenance:H.record(H.unknown()).optional()}),V9=H.object({kind:H.literal("sources"),id:H.string().min(1),title:H.string().min(1).optional(),sources:H.array(q9).min(1)}),J9=H.object({type:H.literal("prompt"),id:H.string().min(1),label:H.string().min(1),prompt:H.string().min(1),description:H.string().min(1).optional()}),H9=H.object({type:H.literal("event"),id:H.string().min(1),label:H.string().min(1),event:H.string().min(1),description:H.string().min(1).optional()}),U9=H.discriminatedUnion("type",[J9,H9]),R9=H.object({kind:H.literal("actions"),id:H.string().min(1),title:H.string().min(1).optional(),defaultOpen:H.boolean().optional(),actions:H.array(U9).min(1)}),D9=H.discriminatedUnion("kind",[G9,W9,V9,R9]),t6=H.object({toolName:H.string(),args:H.record(H.unknown()).optional(),jobId:H.string().optional(),data:H.unknown().optional(),error:H.object({message:H.string(),code:H.string().optional()}).optional()}),e6=H.object({text:H.string(),toolResults:H.array(t6).optional(),cards:H.array(D9).optional(),pendingConfirmations:H.array(a6).optional(),usage:H.object({promptTokens:H.number(),completionTokens:H.number(),totalTokens:H.number()})});function M9($){return e6.parse(v4($))}var UY=H.enum(["anchor","trusted","public"]),bF=H.object({conversationId:H.string().min(1),message:H.string(),interfaceType:H.string().min(1),channelId:H.string().optional(),channelName:H.string().optional(),userPermissionLevel:UY}),RY=H.object({id:H.string().min(1),source:H.string().min(1),title:H.string().optional(),content:H.string().min(1),provenance:H.record(H.string(),H.unknown()).optional()}),vF=H.object({items:H.array(RY).default([])});var gF=H.object({url:H.string(),authToken:H.string().optional()});var hF=H.object({success:H.boolean(),entityId:H.string().optional(),error:H.string().optional()});var K2=H.enum(["user","assistant"]);var DY=H.object({message:H.string().describe("Natural language response to the query"),summary:H.string().optional().describe("Brief summary if applicable"),topics:H.array(H.string()).optional().describe("Related topics mentioned"),sources:H.array(H.object({id:H.string(),type:H.string(),excerpt:H.string().optional(),relevance:H.number().min(0).max(1).optional()})).optional().describe("Source entities used to answer the query"),metadata:H.record(H.string(),H.unknown()).optional()}).describe("defaultQueryResponse"),MY=H.object({message:H.string()}).describe("simpleTextResponse"),AY=H.object({success:H.boolean(),entityId:H.string().optional(),message:H.string()}).describe("createEntityResponse"),QY=H.object({success:H.boolean(),entityId:H.string(),changes:H.array(H.string()).optional(),message:H.string()}).describe("updateEntityResponse");var yF=H.object({status:H.enum(["healthy","warning","error","unknown"]),message:H.string().optional(),lastCheck:H.date().optional(),details:H.record(H.string(),H.unknown()).optional()}),KY=H.object({name:H.string(),pluginId:H.string(),status:H.string(),health:yF.optional()});import{McpServer as lS,ResourceTemplate as rS}from"@modelcontextprotocol/sdk/server/mcp.js";var $5=H.object({interfaceType:H.string(),userId:H.string(),conversationId:H.string().optional(),channelId:H.string().optional(),channelName:H.string().optional(),runId:H.string().optional(),toolCallId:H.string().optional(),userPermissionLevel:H.enum(["anchor","trusted","public"]).optional()}),FY=H.object({success:H.literal(!0),data:H.unknown(),message:H.string().optional(),cached:H.literal(!0).optional()}).strict().superRefine(($,G)=>{if(!Object.prototype.hasOwnProperty.call($,"data"))G.addIssue({code:H.ZodIssueCode.custom,path:["data"],message:"Required"})}),wY=H.object({success:H.literal(!1),error:H.string(),code:H.string().optional()}).strict(),BY=H.object({needsConfirmation:H.literal(!0),toolName:H.string(),summary:H.string(),completionSummary:H.string().optional(),preview:H.string().optional(),args:H.unknown()}).strict(),A9=H.union([FY,wY,BY]);var hS=H.union([H.object({success:H.literal(!0),data:H.unknown()}).superRefine(($,G)=>{if(!Object.prototype.hasOwnProperty.call($,"data"))G.addIssue({code:H.ZodIssueCode.custom,path:["data"],message:"Required"})}),H.object({success:H.literal(!1),error:H.string()})]);var fF=H.union([H.object({success:H.literal(!0),data:H.unknown(),message:H.string().optional()}),H.object({success:H.literal(!1),error:H.string(),code:H.string().optional()})]);var jI=H.object({id:H.string(),type:H.string(),version:H.string(),status:H.string()}),SI=H.object({name:H.string(),description:H.string()}),Q9=H.object({label:H.string(),url:H.string(),pluginId:H.string(),priority:H.number().default(100),visibility:p0.default("public")}),mF=H.enum(["human","agent","admin","protocol"]),uF=H.enum(["available","coming-soon","disabled"]),K9=H.object({id:H.string(),label:H.string(),description:H.string().optional(),href:H.string(),kind:mF,pluginId:H.string(),priority:H.number().default(100),visibility:p0.default("public"),status:uF.default("available")}),F9=H.object({entityType:H.string(),count:H.number()}),II=H.object({model:H.string(),version:H.string(),uptime:H.number(),entities:H.number(),entityCounts:H.array(F9),embeddings:H.number(),ai:H.object({model:H.string(),embeddingModel:H.string()}),daemons:H.array(KY),endpoints:H.array(Q9),interactions:H.array(K9)});var xI=H.object({id:H.string(),version:H.string(),type:H.enum(["core","entity","service","interface"]),description:H.string().optional(),dependencies:H.array(H.string()).optional(),packageName:H.string()});var pF=H.object({toolName:H.string(),args:H.unknown(),progressToken:H.union([H.string(),H.number()]).optional(),hasProgress:H.boolean().optional(),...$5.shape}),lF=H.object({resourceUri:H.string()});class F2{id;version;description;packageName;config;context;get logger(){return this.context?.logger??N1.createFresh({context:this.id})}constructor($,G,X,Y){this.id=$,this.packageName=G.name,this.version=G.version,this.description=G.description??`${G.name} plugin`,this.config=Y.parse(X)}setupMessageHandlers($){$.messaging.subscribe(`plugin:${this.id}:tool:execute`,async(G)=>{try{let{toolName:X,args:Y,progressToken:W,hasProgress:q,interfaceType:V,userId:J,channelId:U,userPermissionLevel:R}=pF.parse(G.payload),M=(await this.getTools()).find((z)=>z.name===X);if(!M)return{success:!1,error:`Tool not found: ${X}`};let F={interfaceType:V,userId:J,...U&&{channelId:U},...R&&{userPermissionLevel:R},...q&&W!==void 0&&{progressToken:W,sendProgress:async(z)=>{await $.messaging.send({type:`plugin:${this.id}:progress`,payload:{progressToken:W,notification:z}})}}};return{success:!0,data:await M.handler(Y,F)}}catch(X){if(X instanceof H.ZodError)return{success:!1,error:"Invalid tool execution request format"};return this.logger.error("Tool execution error",X),{success:!1,error:R0(X)}}}),$.messaging.subscribe(`plugin:${this.id}:resource:get`,async(G)=>{try{let{resourceUri:X}=lF.parse(G.payload),W=(await this.getResources()).find((V)=>V.uri===X);if(!W)return{success:!1,error:`Resource not found: ${X}`};return{success:!0,data:await W.handler()}}catch(X){if(X instanceof H.ZodError)return{success:!1,error:"Invalid resource get request format"};return this.logger.error("Resource fetch error",X),{success:!1,error:R0(X)}}})}async onRegister($){}async onReady($){}async ready(){await this.onReady(this.getContext())}async getCapabilities(){let $=await this.getInstructions();return{tools:await this.getTools(),resources:await this.getResources(),...$&&{instructions:$}}}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}async shutdown(){await this.onShutdown()}async onShutdown(){}getContext(){if(!this.context)throw Error(`Plugin ${this.id}: Plugin not registered yet`);return this.context}determineUserPermissionLevel($){return"public"}createProgressBridge($){if(!$)return;let G=this.context;if(!G)return;let X=this.id;return x0.from(async(Y)=>{await G.messaging.send({type:`plugin:${X}:progress`,payload:{progressToken:$,notification:{progress:Y.progress,total:Y.total,message:Y.message}}})})}}var OY=H.object({id:H.string(),template:H.string(),content:H.unknown().optional(),dataQuery:H.object({entityType:H.string().optional(),template:H.string().optional(),query:H.object({id:H.string().optional(),limit:H.number().optional(),offset:H.number().optional()}).passthrough().optional()}).passthrough().optional(),order:H.number().optional()}),PY=["primary","secondary"],NY=H.object({show:H.boolean().default(!1),label:H.string().optional(),slot:H.enum(PY).default("primary"),priority:H.number().min(0).max(100).default(50)}).optional(),zY=H.object({id:H.string(),path:H.string(),title:H.string().default(""),pageLabel:H.string().optional(),description:H.string().default(""),sections:H.array(OY).default([]),layout:H.string().default("default"),fullscreen:H.boolean().optional(),pluginId:H.string().optional(),sourceEntityType:H.string().optional(),external:H.boolean().optional(),navigation:NY}),rF=H.object({routes:H.array(zY),pluginId:H.string()}),cF=H.object({paths:H.array(H.string()).optional(),pluginId:H.string().optional()}),dF=H.object({pluginId:H.string().optional()}),iF=H.object({path:H.string()}),G5=H.object({label:H.string(),href:H.string(),priority:H.number()});var ZY=H.object({heading:H.string().describe("Main CTA heading text"),buttonText:H.string().describe("Call-to-action button text"),buttonLink:H.string().describe("URL or anchor for the CTA button")}),_Y=H.object({blurb:H.string().optional().describe("Short italic subtitle under the section title")}),LY=H.object({title:H.string().describe("The site's title"),description:H.string().describe("The site's description"),url:H.string().optional().describe("Canonical site URL"),copyright:H.string().optional().describe("Copyright notice text"),logo:H.boolean().optional().describe("Whether to display logo instead of title text in header"),themeMode:H.enum(["light","dark"]).optional().describe("Default theme mode"),analyticsScript:H.string().optional().describe("Analytics script HTML"),cta:ZY.optional().describe("Call-to-action configuration"),sections:H.record(H.string(),_Y).optional().describe("Optional per-section blurbs, keyed by section id (e.g. 'essays', 'presentations', 'about'). Used by homepage templates that render editorial section headers.")}),nF=H.object({platform:H.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:H.string().describe("Profile or contact URL"),label:H.string().optional().describe("Optional display label")}),oF=LY.extend({navigation:H.object({primary:H.array(G5),secondary:H.array(G5)}),copyright:H.string(),socialLinks:H.array(nF).optional().describe("Social media links from profile metadata")});function w9($){return`preview.${$.trim().replace(/^https?:\/\//,"")}`}var sF=H.string(),aF=H.object({id:H.string().min(1)}).passthrough(),tF=H.object({label:H.string().min(1)}).passthrough(),eF=H.object({layouts:H.record(H.unknown()),plugin:H.function(),routes:H.array(aF),entityDisplay:H.record(tF),staticAssets:H.record(H.string()).optional()}).passthrough(),$w=H.custom(($)=>eF.safeParse($).success);var CY=H.enum(["file_operations","content_operations","data_processing","batch_processing"]),TY=H.object({pluginId:H.string().optional(),progressToken:H.union([H.string(),H.number()]).optional(),operationType:CY,operationTarget:H.string().optional(),interfaceType:H.string().optional(),conversationId:H.string().optional(),channelId:H.string().optional()}),r4=TY.extend({rootJobId:H.string()}),Vx=H.enum(["none","skip","replace","coalesce"]);var B9=H.enum(["pending","processing","completed","failed"]),EY=H.enum(["completed","failed"]);var Gw=H.object({id:H.string(),type:H.string(),status:B9,data:H.unknown(),result:H.unknown().optional(),lastError:H.string().optional().nullable(),attempts:H.number(),maxRetries:H.number(),priority:H.number(),createdAt:H.date(),updatedAt:H.date(),processedAt:H.date().optional().nullable(),completedAt:H.date().optional().nullable(),failedAt:H.date().optional().nullable()}),Xw=H.object({jobId:H.string(),type:H.string(),status:EY,result:H.unknown().optional(),error:H.string().optional()}),jY=H.object({success:H.literal(!1),error:H.string().optional()}),O9=H.object({id:H.string(),type:H.enum(["job","batch"]),status:B9,message:H.string().optional(),progress:H.object({current:H.number(),total:H.number(),percentage:H.number()}).optional(),aggregationKey:H.string().optional(),batchDetails:H.object({totalOperations:H.number(),completedOperations:H.number(),failedOperations:H.number(),currentOperation:H.string().optional(),errors:H.array(H.string()).optional()}).optional(),jobDetails:H.object({jobType:H.string(),priority:H.number(),retryCount:H.number()}).optional(),metadata:r4});import{createClient as ak}from"@libsql/client";var I=Symbol.for("drizzle:entityKind");function b1($,G){if(!$||typeof $!=="object")return!1;if($ instanceof G)return!0;if(!Object.prototype.hasOwnProperty.call(G,I))throw Error(`Class "${G.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let X=Object.getPrototypeOf($).constructor;if(X)while(X){if(I in X&&X[I]===G[I])return!0;X=Object.getPrototypeOf(X)}return!1}class l0{constructor($,G){this.table=$,this.config=G,this.name=G.name,this.keyAsName=G.keyAsName,this.notNull=G.notNull,this.default=G.default,this.defaultFn=G.defaultFn,this.onUpdateFn=G.onUpdateFn,this.hasDefault=G.hasDefault,this.primary=G.primaryKey,this.isUnique=G.isUnique,this.uniqueName=G.uniqueName,this.uniqueType=G.uniqueType,this.dataType=G.dataType,this.columnType=G.columnType,this.generated=G.generated,this.generatedIdentity=G.generatedIdentity}static[I]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue($){return $}mapToDriverValue($){return $}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class P9{static[I]="ColumnBuilder";config;constructor($,G,X){this.config={name:$,keyAsName:$==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:G,columnType:X,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default($){return this.config.default=$,this.config.hasDefault=!0,this}$defaultFn($){return this.config.defaultFn=$,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn($){return this.config.onUpdateFn=$,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName($){if(this.config.name!=="")return;this.config.name=$}}var X0=Symbol.for("drizzle:Name");function SY($,...G){return $(...G)}function IY($,G){return`${$[X0]}_${G.join("_")}_unique`}class c4 extends l0{constructor($,G){if(!G.uniqueName)G.uniqueName=IY($,[G.name]);super($,G);this.table=$}static[I]="PgColumn"}class Yw extends c4{static[I]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op($){return this.indexConfig.opClass=$,this}}class Ww extends c4{static[I]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}var xY=Symbol.for("drizzle:isPgEnum");function kY($){return!!$&&typeof $==="function"&&xY in $&&$[xY]===!0}class qw extends c4{static[I]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor($,G){super($,G);this.enum=G.enum}getSQLType(){return this.enum.enumName}}class X5{static[I]="Subquery";constructor($,G,X,Y=!1,W=[]){this._={brand:"Subquery",sql:$,selectedFields:G,alias:X,isWith:Y,usedTables:W}}}var bY="0.44.7";var N9,z9,vY={startActiveSpan($,G){if(!N9)return G();if(!z9)z9=N9.trace.getTracer("drizzle-orm",bY);return SY((X,Y)=>Y.startActiveSpan($,(W)=>{try{return G(W)}catch(q){throw W.setStatus({code:X.SpanStatusCode.ERROR,message:q instanceof Error?q.message:"Unknown error"}),q}finally{W.end()}}),N9,z9)}};var J4=Symbol.for("drizzle:ViewBaseConfig");var Z9=Symbol.for("drizzle:Schema"),gY=Symbol.for("drizzle:Columns"),hY=Symbol.for("drizzle:ExtraConfigColumns"),_9=Symbol.for("drizzle:OriginalName"),L9=Symbol.for("drizzle:BaseName"),d4=Symbol.for("drizzle:IsAlias"),yY=Symbol.for("drizzle:ExtraConfigBuilder"),Vw=Symbol.for("drizzle:IsDrizzleTable");class M1{static[I]="Table";static Symbol={Name:X0,Schema:Z9,OriginalName:_9,Columns:gY,ExtraConfigColumns:hY,BaseName:L9,IsAlias:d4,ExtraConfigBuilder:yY};[X0];[_9];[Z9];[gY];[hY];[L9];[d4]=!1;[Vw]=!0;[yY]=void 0;constructor($,G,X){this[X0]=this[_9]=$,this[Z9]=G,this[L9]=X}}function Jw($){return $!==null&&$!==void 0&&typeof $.getSQL==="function"}function Hw($){let G={sql:"",params:[]};for(let X of $)if(G.sql+=X.sql,G.params.push(...X.params),X.typings?.length){if(!G.typings)G.typings=[];G.typings.push(...X.typings)}return G}class o1{static[I]="StringChunk";value;constructor($){this.value=Array.isArray($)?$:[$]}getSQL(){return new A1([this])}}class A1{constructor($){this.queryChunks=$;for(let G of $)if(b1(G,M1)){let X=G[M1.Symbol.Schema];this.usedTables.push(X===void 0?G[M1.Symbol.Name]:X+"."+G[M1.Symbol.Name])}}static[I]="SQL";decoder=fY;shouldInlineParams=!1;usedTables=[];append($){return this.queryChunks.push(...$.queryChunks),this}toQuery($){return vY.startActiveSpan("drizzle.buildSQL",(G)=>{let X=this.buildQueryFromSourceParams(this.queryChunks,$);return G?.setAttributes({"drizzle.query.text":X.sql,"drizzle.query.params":JSON.stringify(X.params)}),X})}buildQueryFromSourceParams($,G){let X=Object.assign({},G,{inlineParams:G.inlineParams||this.shouldInlineParams,paramStartIndex:G.paramStartIndex||{value:0}}),{casing:Y,escapeName:W,escapeParam:q,prepareTyping:V,inlineParams:J,paramStartIndex:U}=X;return Hw($.map((R)=>{if(b1(R,o1))return{sql:R.value.join(""),params:[]};if(b1(R,Y5))return{sql:W(R.value),params:[]};if(R===void 0)return{sql:"",params:[]};if(Array.isArray(R)){let D=[new o1("(")];for(let[M,F]of R.entries())if(D.push(F),M<R.length-1)D.push(new o1(", "));return D.push(new o1(")")),this.buildQueryFromSourceParams(D,X)}if(b1(R,A1))return this.buildQueryFromSourceParams(R.queryChunks,{...X,inlineParams:J||R.shouldInlineParams});if(b1(R,M1)){let D=R[M1.Symbol.Schema],M=R[M1.Symbol.Name];return{sql:D===void 0||R[d4]?W(M):W(D)+"."+W(M),params:[]}}if(b1(R,l0)){let D=Y.getColumnCasing(R);if(G.invokeSource==="indexes")return{sql:W(D),params:[]};let M=R.table[M1.Symbol.Schema];return{sql:R.table[d4]||M===void 0?W(R.table[M1.Symbol.Name])+"."+W(D):W(M)+"."+W(R.table[M1.Symbol.Name])+"."+W(D),params:[]}}if(b1(R,uY)){let D=R[J4].schema,M=R[J4].name;return{sql:D===void 0||R[J4].isAlias?W(M):W(D)+"."+W(M),params:[]}}if(b1(R,C9)){if(b1(R.value,W5))return{sql:q(U.value++,R),params:[R],typings:["none"]};let D=R.value===null?null:R.encoder.mapToDriverValue(R.value);if(b1(D,A1))return this.buildQueryFromSourceParams([D],X);if(J)return{sql:this.mapInlineParam(D,X),params:[]};let M=["none"];if(V)M=[V(R.encoder)];return{sql:q(U.value++,D),params:[D],typings:M}}if(b1(R,W5))return{sql:q(U.value++,R),params:[R],typings:["none"]};if(b1(R,A1.Aliased)&&R.fieldAlias!==void 0)return{sql:W(R.fieldAlias),params:[]};if(b1(R,X5)){if(R._.isWith)return{sql:W(R._.alias),params:[]};return this.buildQueryFromSourceParams([new o1("("),R._.sql,new o1(") "),new Y5(R._.alias)],X)}if(kY(R)){if(R.schema)return{sql:W(R.schema)+"."+W(R.enumName),params:[]};return{sql:W(R.enumName),params:[]}}if(Jw(R)){if(R.shouldOmitSQLParens?.())return this.buildQueryFromSourceParams([R.getSQL()],X);return this.buildQueryFromSourceParams([new o1("("),R.getSQL(),new o1(")")],X)}if(J)return{sql:this.mapInlineParam(R,X),params:[]};return{sql:q(U.value++,R),params:[R],typings:["none"]}}))}mapInlineParam($,{escapeString:G}){if($===null)return"null";if(typeof $==="number"||typeof $==="boolean")return $.toString();if(typeof $==="string")return G($);if(typeof $==="object"){let X=$.toString();if(X==="[object Object]")return G(JSON.stringify($));return G(X)}throw Error("Unexpected param value: "+$)}getSQL(){return this}as($){if($===void 0)return this;return new A1.Aliased(this,$)}mapWith($){return this.decoder=typeof $==="function"?{mapFromDriverValue:$}:$,this}inlineParams(){return this.shouldInlineParams=!0,this}if($){return $?this:void 0}}class Y5{constructor($){this.value=$}static[I]="Name";brand;getSQL(){return new A1([this])}}var fY={mapFromDriverValue:($)=>$},mY={mapToDriverValue:($)=>$},cx={...fY,...mY};class C9{constructor($,G=mY){this.value=$,this.encoder=G}static[I]="Param";brand;getSQL(){return new A1([this])}}function w2($,...G){let X=[];if(G.length>0||$.length>0&&$[0]!=="")X.push(new o1($[0]));for(let[Y,W]of G.entries())X.push(W,new o1($[Y+1]));return new A1(X)}(($)=>{function G(){return new A1([])}$.empty=G;function X(U){return new A1(U)}$.fromList=X;function Y(U){return new A1([new o1(U)])}$.raw=Y;function W(U,R){let D=[];for(let[M,F]of U.entries()){if(M>0&&R!==void 0)D.push(R);D.push(F)}return new A1(D)}$.join=W;function q(U){return new Y5(U)}$.identifier=q;function V(U){return new W5(U)}$.placeholder=V;function J(U,R){return new C9(U,R)}$.param=J})(w2||(w2={}));(($)=>{class G{constructor(X,Y){this.sql=X,this.fieldAlias=Y}static[I]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new G(this.sql,this.fieldAlias)}}$.Aliased=G})(A1||(A1={}));class W5{constructor($){this.name=$}static[I]="Placeholder";getSQL(){return new A1([this])}}var Uw=Symbol.for("drizzle:IsDrizzleView");class uY{static[I]="View";[J4];[Uw]=!0;constructor({name:$,schema:G,selectedFields:X,query:Y}){this[J4]={name:$,originalName:$,schema:G,selectedFields:X,query:Y,isExisting:!Y,isAlias:!1}}getSQL(){return new A1([this])}}l0.prototype.getSQL=function(){return new A1([this])};M1.prototype.getSQL=function(){return new A1([this])};X5.prototype.getSQL=function(){return new A1([this])};function D0($,G){return{name:typeof $==="string"&&$.length>0?$:"",config:typeof $==="object"?$:G}}var T9=typeof TextDecoder>"u"?null:new TextDecoder;class E9{static[I]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor($,G){if(this.reference=()=>{let{name:X,columns:Y,foreignColumns:W}=$();return{name:X,columns:Y,foreignTable:W[0].table,foreignColumns:W}},G)this._onUpdate=G.onUpdate,this._onDelete=G.onDelete}onUpdate($){return this._onUpdate=$,this}onDelete($){return this._onDelete=$,this}build($){return new pY($,this)}}class pY{constructor($,G){this.table=$,this.reference=G.reference,this.onUpdate=G._onUpdate,this.onDelete=G._onDelete}static[I]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:$,columns:G,foreignColumns:X}=this.reference(),Y=G.map((V)=>V.name),W=X.map((V)=>V.name),q=[this.table[X0],...Y,X[0].table[X0],...W];return $??`${q.join("_")}_fk`}}function lY($,G){return`${$[X0]}_${G.join("_")}_unique`}class O1 extends P9{static[I]="SQLiteColumnBuilder";foreignKeyConfigs=[];references($,G={}){return this.foreignKeyConfigs.push({ref:$,actions:G}),this}unique($){return this.config.isUnique=!0,this.config.uniqueName=$,this}generatedAlwaysAs($,G){return this.config.generated={as:$,type:"always",mode:G?.mode??"virtual"},this}buildForeignKeys($,G){return this.foreignKeyConfigs.map(({ref:X,actions:Y})=>{return((W,q)=>{let V=new E9(()=>{let J=W();return{columns:[$],foreignColumns:[J]}});if(q.onUpdate)V.onUpdate(q.onUpdate);if(q.onDelete)V.onDelete(q.onDelete);return V.build(G)})(X,Y)})}}class P1 extends l0{constructor($,G){if(!G.uniqueName)G.uniqueName=lY($,[G.name]);super($,G);this.table=$}static[I]="SQLiteColumn"}class rY extends O1{static[I]="SQLiteBigIntBuilder";constructor($){super($,"bigint","SQLiteBigInt")}build($){return new cY($,this.config)}}class cY extends P1{static[I]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return BigInt(G.toString("utf8"))}return BigInt(T9.decode($))}mapToDriverValue($){return Buffer.from($.toString())}}class dY extends O1{static[I]="SQLiteBlobJsonBuilder";constructor($){super($,"json","SQLiteBlobJson")}build($){return new iY($,this.config)}}class iY extends P1{static[I]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue($){if(typeof Buffer<"u"&&Buffer.from){let G=Buffer.isBuffer($)?$:$ instanceof ArrayBuffer?Buffer.from($):$.buffer?Buffer.from($.buffer,$.byteOffset,$.byteLength):Buffer.from($);return JSON.parse(G.toString("utf8"))}return JSON.parse(T9.decode($))}mapToDriverValue($){return Buffer.from(JSON.stringify($))}}class nY extends O1{static[I]="SQLiteBlobBufferBuilder";constructor($){super($,"buffer","SQLiteBlobBuffer")}build($){return new oY($,this.config)}}class oY extends P1{static[I]="SQLiteBlobBuffer";mapFromDriverValue($){if(Buffer.isBuffer($))return $;return Buffer.from($)}getSQLType(){return"blob"}}function sY($,G){let{name:X,config:Y}=D0($,G);if(Y?.mode==="json")return new dY(X);if(Y?.mode==="bigint")return new rY(X);return new nY(X)}class aY extends O1{static[I]="SQLiteCustomColumnBuilder";constructor($,G,X){super($,"custom","SQLiteCustomColumn");this.config.fieldConfig=G,this.config.customTypeParams=X}build($){return new tY($,this.config)}}class tY extends P1{static[I]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor($,G){super($,G);this.sqlName=G.customTypeParams.dataType(G.fieldConfig),this.mapTo=G.customTypeParams.toDriver,this.mapFrom=G.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue($){return typeof this.mapFrom==="function"?this.mapFrom($):$}mapToDriverValue($){return typeof this.mapTo==="function"?this.mapTo($):$}}function q5($){return(G,X)=>{let{name:Y,config:W}=D0(G,X);return new aY(Y,W,$)}}class V5 extends O1{static[I]="SQLiteBaseIntegerBuilder";constructor($,G,X){super($,G,X);this.config.autoIncrement=!1}primaryKey($){if($?.autoIncrement)this.config.autoIncrement=!0;return this.config.hasDefault=!0,super.primaryKey()}}class J5 extends P1{static[I]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class eY extends V5{static[I]="SQLiteIntegerBuilder";constructor($){super($,"number","SQLiteInteger")}build($){return new $W($,this.config)}}class $W extends J5{static[I]="SQLiteInteger"}class GW extends V5{static[I]="SQLiteTimestampBuilder";constructor($,G){super($,"date","SQLiteTimestamp");this.config.mode=G}defaultNow(){return this.default(w2`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build($){return new XW($,this.config)}}class XW extends J5{static[I]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue($){if(this.config.mode==="timestamp")return new Date($*1000);return new Date($)}mapToDriverValue($){let G=$.getTime();if(this.config.mode==="timestamp")return Math.floor(G/1000);return G}}class YW extends V5{static[I]="SQLiteBooleanBuilder";constructor($,G){super($,"boolean","SQLiteBoolean");this.config.mode=G}build($){return new WW($,this.config)}}class WW extends J5{static[I]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue($){return Number($)===1}mapToDriverValue($){return $?1:0}}function v1($,G){let{name:X,config:Y}=D0($,G);if(Y?.mode==="timestamp"||Y?.mode==="timestamp_ms")return new GW(X,Y.mode);if(Y?.mode==="boolean")return new YW(X,Y.mode);return new eY(X)}class qW extends O1{static[I]="SQLiteNumericBuilder";constructor($){super($,"string","SQLiteNumeric")}build($){return new VW($,this.config)}}class VW extends P1{static[I]="SQLiteNumeric";mapFromDriverValue($){if(typeof $==="string")return $;return String($)}getSQLType(){return"numeric"}}class JW extends O1{static[I]="SQLiteNumericNumberBuilder";constructor($){super($,"number","SQLiteNumericNumber")}build($){return new HW($,this.config)}}class HW extends P1{static[I]="SQLiteNumericNumber";mapFromDriverValue($){if(typeof $==="number")return $;return Number($)}mapToDriverValue=String;getSQLType(){return"numeric"}}class UW extends O1{static[I]="SQLiteNumericBigIntBuilder";constructor($){super($,"bigint","SQLiteNumericBigInt")}build($){return new RW($,this.config)}}class RW extends P1{static[I]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function DW($,G){let{name:X,config:Y}=D0($,G),W=Y?.mode;return W==="number"?new JW(X):W==="bigint"?new UW(X):new qW(X)}class MW extends O1{static[I]="SQLiteRealBuilder";constructor($){super($,"number","SQLiteReal")}build($){return new AW($,this.config)}}class AW extends P1{static[I]="SQLiteReal";getSQLType(){return"real"}}function QW($){return new MW($??"")}class KW extends O1{static[I]="SQLiteTextBuilder";constructor($,G){super($,"string","SQLiteText");this.config.enumValues=G.enum,this.config.length=G.length}build($){return new FW($,this.config)}}class FW extends P1{static[I]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor($,G){super($,G)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class wW extends O1{static[I]="SQLiteTextJsonBuilder";constructor($){super($,"json","SQLiteTextJson")}build($){return new BW($,this.config)}}class BW extends P1{static[I]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue($){return JSON.parse($)}mapToDriverValue($){return JSON.stringify($)}}function i($,G={}){let{name:X,config:Y}=D0($,G);if(Y.mode==="json")return new wW(X);return new KW(X,Y)}function OW(){return{blob:sY,customType:q5,integer:v1,numeric:DW,real:QW,text:i}}var j9=Symbol.for("drizzle:SQLiteInlineForeignKeys");class i4 extends M1{static[I]="SQLiteTable";static Symbol=Object.assign({},M1.Symbol,{InlineForeignKeys:j9});[M1.Symbol.Columns];[j9]=[];[M1.Symbol.ExtraConfigBuilder]=void 0}function Rw($,G,X,Y,W=$){let q=new i4($,Y,W),V=typeof G==="function"?G(OW()):G,J=Object.fromEntries(Object.entries(V).map(([R,D])=>{let M=D;M.setName(R);let F=M.build(q);return q[j9].push(...M.buildForeignKeys(F,q)),[R,F]})),U=Object.assign(q,J);if(U[M1.Symbol.Columns]=J,U[M1.Symbol.ExtraConfigColumns]=J,X)U[i4.Symbol.ExtraConfigBuilder]=X;return U}var M0=($,G,X)=>{return Rw($,G,X)};class PW{constructor($,G){this.name=$,this.value=G}static[I]="SQLiteCheckBuilder";brand;build($){return new NW($,this)}}class NW{constructor($,G){this.table=$,this.name=G.name,this.value=G.value}static[I]="SQLiteCheck";name;value}function zW($,G){return new PW($,G)}class ZW{constructor($,G){this.name=$,this.unique=G}static[I]="SQLiteIndexBuilderOn";on(...$){return new _W(this.name,$,this.unique)}}class _W{static[I]="SQLiteIndexBuilder";config;constructor($,G,X){this.config={name:$,columns:G,unique:X,where:void 0}}where($){return this.config.where=$,this}build($){return new LW(this.config,$)}}class LW{static[I]="SQLiteIndex";config;constructor($,G){this.config={...$,table:G}}}function Y0($){return new ZW($,!1)}function H5(...$){if($[0].columns)return new S9($[0].columns,$[0].name);return new S9($)}class S9{static[I]="SQLitePrimaryKeyBuilder";columns;name;constructor($,G){this.columns=$,this.name=G}build($){return new CW($,this.columns,this.name)}}class CW{constructor($,G,X){this.table=$,this.columns=G,this.name=X}static[I]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[i4.Symbol.Name]}_${this.columns.map(($)=>$.name).join("_")}_pk`}}var TW=M0("job_queue",{id:i("id").primaryKey().$defaultFn(()=>g0()),type:i("type").notNull(),data:i("data").notNull(),result:i("result",{mode:"json"}),source:i("source"),metadata:i("metadata",{mode:"json"}).$type().notNull(),status:i("status",{enum:["pending","processing","completed","failed"]}).notNull().default("pending"),priority:v1("priority").notNull().default(0),retryCount:v1("retryCount").notNull().default(0),maxRetries:v1("maxRetries").notNull().default(3),lastError:i("lastError"),createdAt:v1("createdAt").notNull().$defaultFn(()=>Date.now()),scheduledFor:v1("scheduledFor").notNull().$defaultFn(()=>Date.now()),startedAt:v1("startedAt"),completedAt:v1("completedAt")},($)=>({queueReadyIdx:Y0("idx_job_queue_ready").on($.status,$.priority,$.scheduledFor),jobTypeIdx:Y0("idx_job_queue_type").on($.type,$.status),jobSourceIdx:Y0("idx_job_queue_source").on($.source)}));var Dw=H.object({id:H.string(),type:H.string(),data:H.string(),status:H.enum(["pending","processing","completed","failed"]),source:H.string().nullable(),priority:H.number(),retryCount:H.number(),maxRetries:H.number(),lastError:H.string().nullable(),createdAt:H.number(),scheduledFor:H.number(),startedAt:H.number().nullable(),completedAt:H.number().nullable(),metadata:r4,result:H.unknown().nullable().optional()});function I9($,G,X){return async(Y)=>{let{type:W,data:q,toolContext:V=null,options:J}=Y,{metadata:U,...R}=J??{},D={source:G,...J?.rootJobId&&{rootJobId:J.rootJobId},...R,metadata:{operationType:"data_processing",pluginId:G,...V&&{interfaceType:V.interfaceType,channelId:V.channelId},...U}},M=X&&!W.includes(":")?`${G}:${W}`:W;return $.enqueue({type:M,data:q,options:D})}}function x9($,G){return async(X,Y)=>{let W=g0(),q=X.map((J)=>({...J,type:J.type.includes(":")?J.type:`${G}:${J.type}`})),V={...Y,source:G,rootJobId:W,metadata:{...Y?.metadata,operationType:"batch_processing",pluginId:G}};return await $.enqueueBatch(q,V,W,G),W}}function k9($,G){return(X,Y)=>{let W=X.includes(":")?X:`${G}:${X}`;$.registerHandler(W,Y,G)}}var Mw=H.object({name:H.string(),schema:H.custom(($)=>$ instanceof H.ZodType)});function EW($){return Mw.safeParse($).success}function Aw($){if(!$)return;return{status:$.status,message:$.message,lastCheck:$.lastCheck?.toISOString(),details:$.details}}function jW($){return{model:$.model,version:$.version,uptime:$.uptime,entities:$.entities,entityCounts:$.entityCounts,embeddings:$.embeddings,ai:$.ai,daemons:$.daemons.map((G)=>({name:G.name,pluginId:G.pluginId,status:G.status,health:Aw(G.health)})),endpoints:$.endpoints,interactions:$.interactions}}var H4=H.record(H.unknown());var Qw=H.object({id:H.string(),sessionId:H.string(),interfaceType:H.string(),channelId:H.string(),channelName:H.string().optional(),startedAt:H.string(),lastActiveAt:H.string(),createdAt:H.string(),updatedAt:H.string(),metadata:H4}),Kw=H.object({id:H.string(),conversationId:H.string(),role:K2,content:H.string(),timestamp:H.string(),metadata:H4});function SW($){if(!$)return{};try{let G=JSON.parse($);if(G&&typeof G==="object"&&!Array.isArray(G))return G}catch{}return{}}function Fw($){let G=K2.safeParse($);return G.success?G.data:"user"}function U5($){let G=SW($.metadata),X=typeof G.channelName==="string"?G.channelName:void 0;return{id:$.id,sessionId:$.sessionId,interfaceType:$.interfaceType,channelId:$.channelId,channelName:X,startedAt:$.started,lastActiveAt:$.lastActive,createdAt:$.created,updatedAt:$.updated,metadata:G}}function IW($){return{id:$.id,conversationId:$.conversationId,role:Fw($.role),content:$.content,timestamp:$.timestamp,metadata:SW($.metadata)}}var b9=H.object({name:H.string(),role:H.string(),purpose:H.string(),values:H.array(H.string())}),v9=H.object({name:H.string(),kind:H.enum(["professional","team","collective"]),organization:H.string().optional(),description:H.string().optional(),avatar:H.string().optional(),website:H.string().optional(),email:H.string().optional(),socialLinks:H.array(H.object({platform:H.enum(["github","instagram","linkedin","email","website"]),url:H.string(),label:H.string().optional()})).optional()});function xW($){return b9.parse($)}function kW($){return v9.parse($)}function bW($){return async()=>{return jW(await $.getAppInfo())}}function vW($,G){return{get:()=>xW($.getIdentity()),getProfile:()=>kW($.getProfile()),getAppInfo:G}}function gW($,G,X){let Y=$.getMessageBus();return{send:async(q)=>{return Y.send({...q,sender:G})},subscribe:(q,V)=>{if(EW(q)){let J=q,U=V,R=async(D)=>{let M=J.schema.safeParse(D.payload);if(!M.success)return X.warn(`Invalid payload for channel ${J.name}`,{error:M.error.message}),{noop:!0};let{payload:F,...K}=D;return U(M.data,K)};return Y.subscribe(J.name,R)}return Y.subscribe(q,V)}}}function hW($,G){let X=$.getJobQueueService();return{...$.jobs,enqueue:I9(X,G,!0),enqueueBatch:x9($.jobs,G),registerHandler:k9(X,G)}}function yW($){let G=$.getPermissionService();return{assertEntityActionAllowed:(X,Y,W)=>{G.assertEntityActionAllowed(X,Y,W.userPermissionLevel)}}}function fW($){return{get:async(G)=>{let Y=await $.getConversationService().getConversation(G);return Y?U5(Y):null},search:async(G)=>{return(await $.getConversationService().searchConversations(G)).map(U5)},list:async(G)=>{return(await $.getConversationService().listConversations(G)).map(U5)},getMessages:async(G,X)=>{return(await $.getConversationService().getMessages(G,X)).map(IW)},countMessages:async(G)=>{return $.getConversationService().countMessages(G)}}}function mW($,G){return{registerHandler:(X,Y)=>{$.registerEvalHandler(G,X,Y)}}}function uW($){return{register:(G,X)=>{$.getInsightsRegistry().register(G,X)}}}function pW($,G){return{register:(X)=>{$.registerEndpoint({...X,pluginId:G})}}}function lW($,G){return{register:(X)=>{$.registerInteraction({...X,pluginId:G})}}}function U4($,G,X){let Y=$.getEntityService(),W=$.getLogger().child(G),q=$.getDomain(),V=$.getLocalSiteUrl(),J=$.shouldPreferLocalUrls(),U=$.getThemeCSS(),R=bW($),D=$.getAttachmentRegistry(),M=$.getRuntimeUploadRegistry(),F=$.getRuntimeState();return{pluginId:G,logger:W,entityService:Y,identity:vW($,R),appInfo:R,judge:(K)=>$.judge(K),domain:q,siteUrl:q?`https://${q}`:void 0,localSiteUrl:V,previewUrl:q?`https://${w9(q)}`:void 0,preferLocalUrls:J,themeCSS:U,entityDisplay:X?.entityDisplay,spaces:$.getSpaces(),permissions:yW($),messaging:gW($,G,W),jobs:hW($,G),attachments:D,uploads:M,runtimeState:F,conversations:fW($),dataDir:$.getDataDir(),eval:mW($,G),insights:uW($),endpoints:pW($,G),interactions:lW($,G)}}import{createClient as zv}from"@libsql/client";var R5=M0("entities",{id:i("id").notNull(),entityType:i("entityType").notNull(),content:i("content").notNull(),contentHash:i("contentHash").notNull(),visibility:i("visibility",{enum:["public","shared","restricted"]}).notNull().default("public"),metadata:i("metadata",{mode:"json"}).$type().notNull().default(w2`'{}'`),created:v1("created").notNull().$defaultFn(()=>Date.now()),updated:v1("updated").notNull().$defaultFn(()=>Date.now())},($)=>{return{pk:H5({columns:[$.id,$.entityType]}),visibilityCheck:zW("entities_visibility_check",w2`${$.visibility} IN ('public', 'shared', 'restricted')`)}});import{createClient as Iv}from"@libsql/client";var rW=q5({dataType(){return"F32_BLOB(1536)"},toDriver($){return Buffer.from($.buffer)},fromDriver($){return new Float32Array($.buffer,$.byteOffset,$.byteLength/4)}});var D5=M0("embeddings",{entityId:i("entity_id").notNull(),entityType:i("entity_type").notNull(),embedding:rW("embedding").notNull(),contentHash:i("content_hash").notNull()},($)=>{return{pk:H5({columns:[$.entityId,$.entityType]})}});var ww=H.enum(["public","shared","restricted"]),B2=H.union([ww,H.literal("private")]).optional().transform(($)=>{if($===void 0)return"public";if($==="private")return"restricted";return $});var h9=H.object({id:H.string(),entityType:H.string(),content:H.string(),created:H.string().datetime(),updated:H.string().datetime(),visibility:B2,metadata:H.record(H.string(),H.unknown()),contentHash:H.string()}),Nw=H.object({mediaType:H.string(),url:H.string(),downloadUrl:H.string().optional(),previewUrl:H.string().optional(),filename:H.string().optional(),sizeBytes:H.number().optional(),source:H.object({entityType:H.string().optional(),entityId:H.string().optional(),attachmentType:H.string().optional()}).optional()});var cv=H.object({id:H.string().min(1,"Entity ID is required"),entityType:H.string().min(1,"Entity type is required"),contentHash:H.string().min(1,"Content hash is required"),operation:H.enum(["create","update"])});var sv=H.object({limit:H.number().int().positive().optional().default(20),offset:H.number().int().min(0).optional().default(0),types:H.array(H.string()).optional().default([]),excludeTypes:H.array(H.string()).optional().default([]),weight:H.record(H.string(),H.number()).optional(),visibilityScope:H.enum(["public","shared","restricted"]).optional(),includeUngenerated:H.boolean().optional().default(!1)});var f9=$6(l5(),1);function M5($,G){if(Object.keys(G).length===0)return $;let X=Object.fromEntries(Object.entries(G).filter(([,Y])=>Y!==void 0));return f9.default.stringify($,X)}function y9($){if($ instanceof Date)return $.toISOString();if(Array.isArray($))return $.map(y9);if($!==null&&typeof $==="object"){let G={};for(let[X,Y]of Object.entries($))G[X]=y9(Y);return G}return $}function o4($,G){let{content:X,data:Y}=f9.default($),W=y9(Y);return{content:X.trim(),metadata:G.parse(W)}}var $g=H.object({visibility:B2});var Lw=H.object({field:H.string(),direction:H.enum(["asc","desc"]),nullsFirst:H.boolean().optional()}),Ag=H.object({limit:H.number().int().positive().optional(),offset:H.number().int().min(0).optional().default(0),sortFields:H.array(Lw).optional(),filter:H.object({metadata:H.record(H.string(),H.unknown()).optional(),visibilityScope:H.enum(["public","shared","restricted"]).optional()}).optional(),publishedOnly:H.boolean().optional()});var Ng=H.object({id:H.string().min(1),entityType:H.string().min(1),contentHash:H.string().min(1)});var gw=H.object({currentPage:H.number(),totalPages:H.number(),totalItems:H.number(),pageSize:H.number(),hasNextPage:H.boolean(),hasPrevPage:H.boolean()});function hw($){return $.replace(/:/g,"-")}function yw($){return $.split(/[:.-]/).map((G)=>G.charAt(0).toUpperCase()+G.slice(1)).join(" ")}var m9=new Map;async function iW($,G,X){let Y=m9.get(G);if(Y!==void 0)return Y;let W=hw(G),q;try{q=await $.getEntity({entityType:"prompt",id:W})}catch{return X}if(q?.content){let V=o4(q.content,H.record(H.unknown())).content;return m9.set(G,V),V}try{let V=yw(G),J=M5(X,{title:V,target:G});await $.createEntity({entity:{id:W,entityType:"prompt",content:J,metadata:{title:V,target:G,slug:W}}})}catch{}return m9.set(G,X),X}function A5($){let G=$.getEntityService(),X=$.getEntityRegistry(),Y=$.getDataSourceRegistry();return{register:(W,q,V,J)=>{X.registerEntityType(W,q,V,J)},getAdapter:(W)=>{try{return X.getAdapter(W)}catch{return}},extendFrontmatterSchema:(W,q)=>{X.extendFrontmatterSchema(W,q)},getEffectiveFrontmatterSchema:(W)=>{return X.getEffectiveFrontmatterSchema(W)},registerCreateInterceptor:(W,q)=>{X.registerCreateInterceptor(W,q)},registerUploadSaveHandler:(W)=>{X.registerUploadSaveHandler(W)},update:async(W)=>{return G.updateEntity({entity:W})},registerDataSource:(W)=>{Y.register(W)}}}function Q5($){return{resolve:(G,X)=>{return iW($,G,X)}}}function nW($,G,X){let Y=U4($,G,X),W=$.getEntityService();return{...Y,entityService:W,entities:A5($),ai:{query:(q,V)=>$.query(q,V),generate:async(q)=>{return $.generateContent(q)},generateObject:async(q,V)=>{return $.generateObject(q,V)},generateImage:async(q,V)=>{return $.generateImage(q,V)},canGenerateImages:()=>{return $.canGenerateImages()}},prompts:Q5(W),permissions:Y.permissions}}function sW($,G,X){let Y=!1,W=!1;if($.jobs.registerHandler(X.job.type,X.job.handler),X.initialSync){let q=X.initialSync;$.messaging.subscribe("sync:initial:completed",async()=>{if(Y)return{success:!0};if(Y=!0,!(await q.shouldEnqueue?.()??!0))return G.info("Skipping derived entity projection initial sync",{projectionId:X.id,targetType:X.targetType}),{success:!0};return W=await oW($,G,X,q.jobData,mw(q.jobOptions),"initial-sync"),{success:!0}})}if(X.sourceChange){let q=X.sourceChange,V=new Set(q.sourceTypes),J=q.events??["entity:created","entity:updated"],U=async(R)=>{if(q.requireInitialSync&&!Y)return{success:!0};let D=R.payload,M=fw(q,D);if(!M||!V.has("*")&&!V.has(M))return{success:!0};if(!(await q.shouldEnqueue?.(D)??!0))return{success:!0};let K=await q.jobData(D);if(!K)return{success:!0};return await oW($,G,X,K,q.jobOptions?.(D),"source-change"),{success:!0}};for(let R of J)$.messaging.subscribe(R,U)}return{hasObservedInitialSync:()=>Y,hasQueuedInitialSync:()=>W}}function fw($,G){if($.sourceType)return $.sourceType;if($.sourceKind&&$.sourceKind!=="entity")return $.sourceKind;return G.entityType}async function oW($,G,X,Y,W,q){try{return await $.jobs.enqueue({type:X.job.type,data:Y,...W?{options:W}:{}}),G.info("Queued derived entity projection",{projectionId:X.id,targetType:X.targetType,reason:q}),!0}catch(V){return G.error("Failed to queue derived entity projection",{projectionId:X.id,targetType:X.targetType,reason:q,error:R0(V)}),!1}}function mw($){return typeof $==="function"?$():$}var uw=H.object({});class K5 extends F2{type="entity";entityActionPolicy;derivedEntityProjectionControllers=new Map;constructor($,G,X={},Y=uw,W){super($,G,X,Y);if(W!==void 0)this.entityActionPolicy=W}async register($,G){let X=nW($,this.id,G);if(this.context=X,this.setupMessageHandlers(X),X.entities.register(this.entityType,this.schema,this.adapter,this.getEntityTypeConfig()),this.interceptCreate!==K5.prototype.interceptCreate)X.entities.registerCreateInterceptor(this.entityType,(U,R)=>this.interceptCreate(U,R,X));let Y=this.createGenerationHandler(X);if(Y)X.jobs.registerHandler(`${this.entityType}:generation`,Y);let W=this.getTemplates();if(W&&Object.keys(W).length>0)$.registerTemplates(W,this.id);let q=this.getDataSources();for(let U of q)X.entities.registerDataSource(U);let V=this.getDerivedEntityProjections(X);for(let U of V){let R=sW(X,this.logger,U);this.derivedEntityProjectionControllers.set(U.id,R)}await this.onRegister(this.context);let J=await this.getInstructions();return{tools:[],resources:[],...J&&{instructions:J}}}async interceptCreate($,G,X){return{kind:"continue",input:$}}createGenerationHandler($){return null}getTemplates(){return null}getDataSources(){return[]}getEntityTypeConfig(){return}getDerivedEntityProjections($){return[]}getDerivedEntityProjectionController($){return this.derivedEntityProjectionControllers.get($)}}class aW extends K5{hooks;constructor($,G,X,Y,W){super($,G,X,Y);this.hooks=W}get entityType(){return this.hooks.getEntityType()}get schema(){return this.hooks.getSchema()}get adapter(){return this.hooks.getAdapter()}onRegister($){return this.hooks.onRegister($)}onReady($){return this.hooks.onReady($)}onShutdown(){return this.hooks.onShutdown()}getEntityTypeConfig(){return this.hooks.getEntityTypeConfig()}getDataSources(){return this.hooks.getDataSources()}getInstructions(){return this.hooks.getInstructions()}interceptCreate($,G,X){return this.hooks.interceptCreate($,G,X)}}class u9{type="entity";id;version;packageName;description;delegate;constructor($,G,X,Y){if(this.id=$,this.version=G.version,this.packageName=G.name,G.description!==void 0)this.description=G.description;this.delegate=new aW($,G,X,Y,{getEntityType:()=>this.entityType,getSchema:()=>this.schema,getAdapter:()=>this.adapter,onRegister:(W)=>this.onRegister(W),onReady:(W)=>this.onReady(W),onShutdown:()=>this.onShutdown(),getEntityTypeConfig:()=>this.getEntityTypeConfig(),getDataSources:()=>this.getDataSources(),getInstructions:()=>this.getInstructions(),interceptCreate:(W,q,V)=>this.interceptCreate(W,q,V)})}register($,G){return this.delegate.register($,G)}async onRegister($){}async onReady($){}async onShutdown(){}async getInstructions(){return}getEntityTypeConfig(){return}getDataSources(){return[]}async interceptCreate($,G,X){return{kind:"continue",input:$}}ready(){return this.delegate.ready()}shutdown(){return this.delegate.shutdown?.()??Promise.resolve()}}function tW($){return M9($)}function eW($){if(!$)return;return{...$.userPermissionLevel&&{userPermissionLevel:$.userPermissionLevel},...$.interfaceType&&{interfaceType:$.interfaceType},...$.channelId&&{channelId:$.channelId},...$.channelName&&{channelName:$.channelName},...$.actor&&{actor:$.actor},...$.source&&{source:$.source},...$.attachments&&{attachments:$.attachments}}}function $q($){return{chat:async(G,X,Y)=>{return tW(await $.chat(G,X,eW(Y)))},confirmPendingAction:async(G,X,Y,W)=>{let q=eW(W);if(!q)throw Error("Confirmation requires caller context.");return tW(await $.confirmPendingAction(G,X,Y,q))},invalidate:()=>{$.invalidateAgent()}}}function Gq($,G,X){let Y=U4($,G,X),W=$.getMCPService(),q=$.getPermissionService(),V=$q($.getAgentService());return{...Y,mcpTransport:W,agent:V,permissions:{...Y.permissions,getUserLevel:(J,U,R)=>{return q.determineUserLevel(J,U,R)}},daemons:{register:(J,U)=>{let R=`${G}:${J}`;$.registerDaemon(R,U,G),Y.logger.debug(`Registered daemon: ${R}`)}},conversations:{...Y.conversations,start:async(J)=>{return $.getConversationService().startConversation(J)},addMessage:async(J)=>{await $.getConversationService().addMessage(J)},updateMetadata:async(J)=>{return $.getConversationService().updateConversationMetadata(J)},delete:async(J)=>{return $.getConversationService().deleteConversation(J)}},tools:{listForPermissionLevel:(J)=>{return $.listToolsForPermissionLevel(J)}},apiRoutes:{getRoutes:()=>{return $.getPluginApiRoutes()},getMessageBus:()=>{return $.getMessageBus()}},webRoutes:{getRoutes:()=>{return $.getPluginWebRoutes()}},plugins:{has:(J)=>$.hasPlugin(J)}}}var pw=3600000;class s4 extends F2{type="interface";daemon;jobTrackingEntries=new Map;jobTrackingTtlMs=pw;async register($,G){let X=Gq($,this.id,G);if(this.context=X,this.initializeDaemon(),this.daemon)await this.registerDaemon(X);return this.setupMessageHandlers(X),await this.onRegister(X),this.getCapabilities()}async onRegister($){}async registerDaemon($){if(!this.daemon)return;$.daemons.register(this.id,this.daemon),$.logger.debug(`Registered daemon for interface: ${this.id}`)}createDaemon(){return}requiresDaemonStartup(){return!1}getWebRoutes(){return[]}initializeDaemon(){let $=this.createDaemon();if($)this.daemon=$}async handleProgressEvent($,G){}cleanupExpiredEntries(){let $=Date.now(),G=[];for(let[X,Y]of this.jobTrackingEntries)if($-Y.createdAt>this.jobTrackingTtlMs)G.push(X);for(let X of G)this.jobTrackingEntries.delete(X)}ownsJob($,G){return this.jobTrackingEntries.has($)||G!==void 0&&this.jobTrackingEntries.has(G)}getJobTracking($,G){let X=this.jobTrackingEntries.get($);if(X)return X.info;if(G){let Y=this.jobTrackingEntries.get(G);if(Y)return Y.info}return}setJobTracking($,G){this.cleanupExpiredEntries(),this.jobTrackingEntries.set($,{info:G,createdAt:Date.now()})}removeJobTracking($){this.jobTrackingEntries.delete($)}async createJobWithTracking($,G){let Y=await this.getContext().jobs.enqueue($);return this.setJobTracking(Y,G),Y}async createBatchWithTracking($,G,X){let W=await this.getContext().jobs.enqueueBatch($,X);return this.setJobTracking(W,G),W}}class Xq extends s4{hooks;constructor($,G,X,Y,W){super($,G,X,Y);this.hooks=W}onRegister($){return this.hooks.onRegister($)}onReady($){return this.hooks.onReady($)}onShutdown(){return this.hooks.onShutdown()}getTools(){return this.hooks.getTools()}getResources(){return this.hooks.getResources()}getInstructions(){return this.hooks.getInstructions()}getWebRoutes(){return this.hooks.getWebRoutes()}requiresDaemonStartup(){return this.hooks.requiresDaemonStartup()}}class a4{type="interface";id;version;packageName;description;delegate;constructor($,G,X,Y){if(this.id=$,this.version=G.version,this.packageName=G.name,G.description!==void 0)this.description=G.description;this.delegate=new Xq($,G,X,Y,{onRegister:(W)=>this.onRegister(W),onReady:(W)=>this.onReady(W),onShutdown:()=>this.onShutdown(),getTools:()=>this.getTools(),getResources:()=>this.getResources(),getInstructions:()=>this.getInstructions(),getWebRoutes:()=>this.getWebRoutes(),requiresDaemonStartup:()=>this.requiresDaemonStartup()})}register($,G){return this.delegate.register($,G)}async onRegister($){}async onReady($){}async onShutdown(){}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}getWebRoutes(){return[]}requiresDaemonStartup(){return!1}ready(){return this.delegate.ready()}shutdown(){return this.delegate.shutdown?.()??Promise.resolve()}}function Yq($,G){$.messaging.subscribe("job-progress",async(X)=>{try{let Y=O9.safeParse(X.payload);if(!Y.success)return G.onInvalidSchema(),{success:!1};let W=Y.data;return await G.onProgress(W,W.metadata),{success:!0}}catch(Y){return G.onError(Y),{success:!1}}})}function Wq($){let G=$.status==="completed"?"\u2705":"\u274C",X=$.status==="completed"?"completed":"failed",Y=$.metadata.operationType.replace(/_/g," "),W=$.metadata.operationTarget?`: ${$.metadata.operationTarget}`:"",q=`${G} **${Y}${W}** ${X}`;if($.message)q+=`
|
|
120
120
|
${$.message}`;return q}function qq($){let G=$.metadata.operationType.replace(/_/g," "),X=$.metadata.operationTarget?`: ${$.metadata.operationTarget}`:"",Y=`\uD83D\uDD04 **${G}${X}**`;if($.progress&&$.progress.total>0)Y+=` ${$.progress.current}/${$.progress.total} (${$.progress.percentage}%)`;if($.message)Y+=`
|
|
121
121
|
${$.message}`;return Y}var lw=H.enum(["tool:invoking","tool:completed","tool:failed"]),rw=H.object({toolName:H.string().min(1),conversationId:H.string().min(1),interfaceType:H.string().min(1),channelId:H.string().min(1).optional(),channelName:H.string().min(1).optional(),toolCallId:H.string().min(1).optional(),error:H.string().optional()}),cw=["tool:invoking","tool:completed","tool:failed"];function Vq($,G){for(let X of cw)$.messaging.subscribe(X,async(Y)=>{try{let W=lw.safeParse(Y.type),q=rw.safeParse(Y.payload);if(!W.success||!q.success)return G.onInvalidSchema(),{success:!1};return await G.onToolActivity({type:W.data,...q.data}),{success:!0}}catch(W){return G.onError(W),{success:!1}}})}function t4($,G){return{state:G,toolName:$.toolName,conversationId:$.conversationId,interfaceType:$.interfaceType,...$.channelId!==void 0&&{channelId:$.channelId},...$.channelName!==void 0&&{channelName:$.channelName},...$.error!==void 0&&{error:$.error}}}function Jq($,G){return $.pendingConfirmations?.some((X)=>X.toolName===G)===!0||dw($.cards).some((X)=>X.toolName===G)}function dw($){return $?.filter((G)=>G.kind==="tool-approval"&&G.state==="approval-requested")??[]}var p9=1e5,iw=[".md",".txt",".markdown"],nw=["text/plain","text/markdown","text/x-markdown"],ow=/https?:\/\/[^\s<>"{}|\\^`[\]]+?(?=[,;:\s]|$)/gi,sw=["meet.google.com","zoom.us","teams.microsoft.com","whereby.com","gather.town","calendly.com","cal.com","discord.com","discord.gg","cdn.discordapp.com","media.discordapp.net","giphy.com","tenor.com","wetransfer.com","file.io"],aw=H.object({captureUrls:H.boolean().default(!1),blockedUrlDomains:H.array(H.string()).default(sw)});function Hq($,G){if(G&&nw.some((X)=>G.startsWith(X)))return!0;return iw.some((X)=>$.toLowerCase().endsWith(X))}function Uq($){return $<=p9}function Rq($){if($.includes(0))return!1;try{return new TextDecoder("utf-8",{fatal:!0}).decode($),!0}catch{return!1}}function Dq($,G){return`User uploaded a file "${$}":
|
|
122
122
|
|
|
123
|
-
${G}`}function Mq($,G){let X=$.match(ow)??[];return[...new Set(X)].filter((Y)=>{try{let{hostname:W}=new URL(Y);return!G.some((q)=>W===q||W.endsWith(`.${q}`))}catch{return!1}})}var
|
|
123
|
+
${G}`}function Mq($,G){let X=$.match(ow)??[];return[...new Set(X)].filter((Y)=>{try{let{hostname:W}=new URL(Y);return!G.some((q)=>W===q||W.endsWith(`.${q}`))}catch{return!1}})}var Aq=500;class l9 extends s4{isUploadableTextFile($,G){return Hq($,G)}isFileSizeAllowed($){return Uq($)}formatFileUploadMessage($,G){return Dq($,G)}getMaxFileUploadBytes(){return p9}isLikelyTextContent($){return Rq($)}extractCaptureableUrls($,G){return Mq($,G)}async captureUrlViaAgent($,G,X,Y,W){if(!this.context)return;let q=this.context.permissions.getUserLevel(Y,X,W);await this.context.agent.chat(`Save this link: ${$}`,`links-${G}`,{userPermissionLevel:q,interfaceType:Y,channelId:G})}progressEvents=new Map;sendMessageWithId($){return Promise.resolve(void 0)}editMessage($){return Promise.resolve(!1)}supportsMessageEditing(){return!1}progressCallback;isProcessingInput=!1;currentChannelId=null;bufferedCompletionMessages=[];progressMessageTracking=new Map;agentResponseTracking=new Map;pendingToolCompletions=new Map;registerProgressCallback($){this.progressCallback=$;let G=Array.from(this.progressEvents.values()).filter((X)=>X.status==="processing");$(G)}unregisterProgressCallback(){delete this.progressCallback}trackAgentResponseForJob($,G,X){this.agentResponseTracking.set($,{messageId:G,channelId:X,lastUpdate:Date.now()}),this.logger.debug("Tracking agent response for job",{jobId:$,messageId:G,channelId:X})}async onRegister($){await super.onRegister($),Yq($,{onProgress:async(G,X)=>{await this.handleProgressEvent(G,X)},onError:(G)=>{this.logger.error("Error handling progress event",{error:G,interfaceId:this.id})},onInvalidSchema:()=>{this.logger.warn("Invalid progress event schema",{interfaceId:this.id})}}),Vq($,{onToolActivity:async(G)=>{await this.handleToolActivityEvent(G)},onError:(G)=>{this.logger.error("Error handling tool activity event",{error:G,interfaceId:this.id})},onInvalidSchema:()=>{this.logger.warn("Invalid tool activity event schema",{interfaceId:this.id})}}),this.logger.debug("Message interface registered with progress and tool handlers",{id:this.id})}async handleProgressEvent($,G){if(!this.shouldHandleProgressEvent($))return;this.updateProgressState($);let X=$.metadata.channelId??null,Y=$.metadata.rootJobId;if(await this.handleProcessingProgress($,X,Y))return;if($.status==="completed"||$.status==="failed")await this.handleTerminalProgress($,X,Y);await this.onProgressUpdate($),this.logProgressProcessed($)}shouldHandleProgressEvent($){let G=$.metadata.interfaceType;return!G||G===this.id}updateProgressState($){this.progressEvents.set($.id,$),this.notifyProgressCallback()}async handleProcessingProgress($,G,X){if($.status!=="processing"||!this.supportsMessageEditing())return!1;let Y=this.agentResponseTracking.get($.id);if(Y)return await this.editTrackedProgressMessage($,Y),!0;let W=this.formatProgressOutput($),q=this.progressMessageTracking.get(X),V=Date.now();if(q){if(V-q.lastUpdate>=Aq)await this.editMessage({channelId:q.channelId,messageId:q.messageId,newMessage:W}),q.lastUpdate=V}else if(G&&!this.isProcessingInput)await this.sendInitialProgressMessage(X,G,W,V);return!1}async editTrackedProgressMessage($,G){let X=Date.now();if(X-G.lastUpdate<Aq)return;await this.editMessage({channelId:G.channelId,messageId:G.messageId,newMessage:this.formatProgressOutput($)}),G.lastUpdate=X}async sendInitialProgressMessage($,G,X,Y){let W=await this.sendMessageWithId({channelId:G,message:X});if(!W)return;this.progressMessageTracking.set($,{messageId:W,channelId:G,lastUpdate:Y}),this.logger.debug("Tracking progress message",{rootJobId:$,messageId:W,channelId:G})}async handleTerminalProgress($,G,X){let Y=this.formatCompletionOutput($),W=this.progressMessageTracking.get(X),q=this.agentResponseTracking.get($.id);if(this.logger.debug("Completion event received",{eventId:$.id,rootJobId:X,hasProgressTracking:!!W,hasAgentTracking:!!q,supportsEditing:this.supportsMessageEditing()}),this.supportsMessageEditing())await this.updateTrackedCompletion($,Y,W,q,X);if(!W&&!q&&G)this.sendOrBufferCompletionMessage(Y,G);this.scheduleProgressCleanup($.id)}async updateTrackedCompletion($,G,X,Y,W){if(Y){if(await this.editMessage({channelId:Y.channelId,messageId:Y.messageId,newMessage:G}),this.agentResponseTracking.delete($.id),X)this.progressMessageTracking.delete(W);return}if(X)await this.editMessage({channelId:X.channelId,messageId:X.messageId,newMessage:G}),this.progressMessageTracking.delete(W)}sendOrBufferCompletionMessage($,G){if(this.isProcessingInput){this.bufferedCompletionMessages.push({message:$,channelId:G});return}this.sendMessageToChannel({channelId:G,message:$})}scheduleProgressCleanup($){setTimeout(()=>{this.progressEvents.delete($),this.notifyProgressCallback()},500)}logProgressProcessed($){this.logger.debug("Progress event processed",{eventId:$.id,status:$.status,operationType:$.metadata.operationType,targetChannel:$.metadata.channelId})}formatProgressOutput($){return qq($)}formatCompletionOutput($){return Wq($)}async onProgressUpdate($){}async handleToolActivityEvent($){if($.interfaceType!==this.id)return;switch($.type){case"tool:invoking":this.pendingToolCompletions.delete(this.getToolCompletionKey($)),await this.handleToolStatusUpdate(t4($,"running"));return;case"tool:completed":if(this.isProcessingInput){this.pendingToolCompletions.set(this.getToolCompletionKey($),$);return}await this.handleToolStatusUpdate(t4($,"completed"));return;case"tool:failed":this.pendingToolCompletions.delete(this.getToolCompletionKey($)),await this.handleToolStatusUpdate(t4($,"failed"));return}}async handleToolStatusUpdate($){}async handleAgentResponseToolStatuses($,G){if(this.pendingToolCompletions.size===0)return;let X=Array.from(this.pendingToolCompletions.values()).filter((Y)=>Y.interfaceType===this.id&&Y.conversationId===G);for(let Y of X){this.pendingToolCompletions.delete(this.getToolCompletionKey(Y));let W=Jq($,Y.toolName)?"awaiting-approval":"completed";await this.handleToolStatusUpdate(t4(Y,W))}}getToolCompletionKey($){return`${$.interfaceType}:${$.conversationId}:${$.toolName}`}notifyProgressCallback(){if(this.progressCallback){let $=Array.from(this.progressEvents.values());this.progressCallback($)}}getProgressEvents(){return Array.from(this.progressEvents.values())}getActiveProgressEvents(){return Array.from(this.progressEvents.values()).filter(($)=>$.status==="processing")}startProcessingInput($=null){this.isProcessingInput=!0,this.currentChannelId=$}endProcessingInput(){this.isProcessingInput=!1;for(let{message:$,channelId:G}of this.bufferedCompletionMessages)this.sendMessageToChannel({channelId:G,message:$});this.bufferedCompletionMessages=[],this.currentChannelId=null}getCurrentChannelId(){return this.currentChannelId}}class Qq extends l9{hooks;constructor($,G,X,Y,W){super($,G,X,Y);this.hooks=W}async onRegister($){await super.onRegister($),await this.hooks.onRegister($)}onReady($){return this.hooks.onReady($)}onShutdown(){return this.hooks.onShutdown()}getTools(){return this.hooks.getTools()}getResources(){return this.hooks.getResources()}getInstructions(){return this.hooks.getInstructions()}getWebRoutes(){return this.hooks.getWebRoutes()}requiresDaemonStartup(){return this.hooks.requiresDaemonStartup()}sendMessageToChannel($){this.hooks.sendMessageToChannel($)}sendMessageWithId($){return this.hooks.sendMessageWithId($)}editMessage($){return this.hooks.editMessage($)}supportsMessageEditing(){return this.hooks.supportsMessageEditing()}onProgressUpdate($){return this.hooks.onProgressUpdate($)}trackAgentResponseForJobPublic($,G,X){this.trackAgentResponseForJob($,G,X)}captureUrlViaAgentPublic($,G,X,Y,W){return this.captureUrlViaAgent($,G,X,Y,W)}getCurrentChannelIdPublic(){return this.getCurrentChannelId()}}class r9 extends a4{messageDelegate;constructor($,G,X,Y){super($,G,X,Y);this.messageDelegate=new Qq($,G,X,Y,{onRegister:(W)=>this.onRegister(W),onReady:(W)=>this.onReady(W),onShutdown:()=>this.onShutdown(),getTools:()=>this.getTools(),getResources:()=>this.getResources(),getInstructions:()=>this.getInstructions(),getWebRoutes:()=>this.getWebRoutes(),requiresDaemonStartup:()=>this.requiresDaemonStartup(),sendMessageToChannel:(W)=>this.sendMessageToChannel(W),sendMessageWithId:(W)=>this.sendMessageWithId(W),editMessage:(W)=>this.editMessage(W),supportsMessageEditing:()=>this.supportsMessageEditing(),onProgressUpdate:(W)=>this.onProgressUpdate(W)})}register($,G){return this.messageDelegate.register($,G)}async onRegister($){}async onReady($){}async onShutdown(){}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}sendMessageWithId($){return Promise.resolve(void 0)}editMessage($){return Promise.resolve(!1)}supportsMessageEditing(){return!1}async onProgressUpdate($){}isUploadableTextFile($,G){let X=[".md",".txt",".markdown"];if(G&&["text/plain","text/markdown","text/x-markdown"].some((W)=>G.startsWith(W)))return!0;return X.some((W)=>$.toLowerCase().endsWith(W))}isFileSizeAllowed($){return $<=1e5}formatFileUploadMessage($,G){return`User uploaded a file "${$}":
|
|
124
124
|
|
|
125
|
-
${G}`}extractCaptureableUrls($,G){let X=$.match(/https?:\/\/[^\s<>"{}|\\^`[\]]+?(?=[,;:\s]|$)/gi)??[];return[...new Set(X)].filter((Y)=>{try{let{hostname:W}=new URL(Y);return!G.some((q)=>W===q||W.endsWith(`.${q}`))}catch{return!1}})}captureUrlViaAgent($,G,X,Y,W){return this.messageDelegate.captureUrlViaAgentPublic($,G,X,Y,W)}trackAgentResponseForJob($,G,X){this.messageDelegate.trackAgentResponseForJobPublic($,G,X)}registerProgressCallback($){this.messageDelegate.registerProgressCallback($)}unregisterProgressCallback(){this.messageDelegate.unregisterProgressCallback()}getProgressEvents(){return this.messageDelegate.getProgressEvents()}getActiveProgressEvents(){return this.messageDelegate.getActiveProgressEvents()}startProcessingInput($=null){this.messageDelegate.startProcessingInput($)}endProcessingInput(){this.messageDelegate.endProcessingInput()}getCurrentChannelId(){return this.messageDelegate.getCurrentChannelIdPublic()}ready(){return this.messageDelegate.ready()}shutdown(){return this.messageDelegate.shutdown?.()??Promise.resolve()}}function Kq($,G,X){let Y=U4($,G,X),W=$.getEntityService(),q=$.getRenderService(),V=$.getContentService();return{...Y,entityService:W,entities:
|
|
125
|
+
${G}`}extractCaptureableUrls($,G){let X=$.match(/https?:\/\/[^\s<>"{}|\\^`[\]]+?(?=[,;:\s]|$)/gi)??[];return[...new Set(X)].filter((Y)=>{try{let{hostname:W}=new URL(Y);return!G.some((q)=>W===q||W.endsWith(`.${q}`))}catch{return!1}})}captureUrlViaAgent($,G,X,Y,W){return this.messageDelegate.captureUrlViaAgentPublic($,G,X,Y,W)}trackAgentResponseForJob($,G,X){this.messageDelegate.trackAgentResponseForJobPublic($,G,X)}registerProgressCallback($){this.messageDelegate.registerProgressCallback($)}unregisterProgressCallback(){this.messageDelegate.unregisterProgressCallback()}getProgressEvents(){return this.messageDelegate.getProgressEvents()}getActiveProgressEvents(){return this.messageDelegate.getActiveProgressEvents()}startProcessingInput($=null){this.messageDelegate.startProcessingInput($)}endProcessingInput(){this.messageDelegate.endProcessingInput()}getCurrentChannelId(){return this.messageDelegate.getCurrentChannelIdPublic()}ready(){return this.messageDelegate.ready()}shutdown(){return this.messageDelegate.shutdown?.()??Promise.resolve()}}function Kq($,G,X){let Y=U4($,G,X),W=$.getEntityService(),q=$.getRenderService(),V=$.getContentService();return{...Y,entityService:W,entities:A5($),templates:{register:(J,U)=>{$.registerTemplates(J,U??G)},format:(J,U)=>{return V.formatContent(J,U,{pluginId:G})},parse:(J,U)=>{return V.parseContent(J,U,G)},resolve:async(J,U)=>{return await V.resolveContent(J,U,G)},getCapabilities:(J)=>{let U=J.includes(":")?J:`${G}:${J}`,R=$.getTemplate(U);if(!R)return null;let D=l4.getCapabilities(R);return{canGenerate:D.canGenerate,canFetch:D.canFetch,canRender:D.canRender,isStaticOnly:D.isStaticOnly}}},views:{get:(J)=>{return q.get(J)??void 0},list:()=>{return q.list()},hasRenderer:(J,U="web")=>{return q.hasRenderer(J,U)},getRenderer:(J,U="web")=>{return q.getRenderer(J,U)},validate:(J,U)=>{return q.validate(J,U)}},prompts:Q5(W),registerInstructions:(J)=>{$.registerInstructions(G,J)}}}class c9 extends F2{type="service";getApiRoutes(){return[]}getWebRoutes(){return[]}async register($,G){let X=Kq($,this.id,G);return this.context=X,this.setupMessageHandlers(X),await this.onRegister(X),this.getCapabilities()}get entityService(){return this.getContext().entityService}registerEntityType($,G,X,Y){this.getContext().entities.register($,G,X,Y)}async enqueueJob($){return this.getContext().jobs.enqueue($)}async enqueueBatch($,G){return this.getContext().jobs.enqueueBatch($,G)}async registerEntityTypes($){}async registerJobHandlers($){}async onRegister($){await this.registerEntityTypes($),await this.registerJobHandlers($)}}class Fq extends c9{hooks;constructor($,G,X,Y,W){super($,G,X,Y);this.hooks=W}onRegister($){return this.hooks.onRegister($)}onReady($){return this.hooks.onReady($)}onShutdown(){return this.hooks.onShutdown()}getTools(){return this.hooks.getTools()}getResources(){return this.hooks.getResources()}getInstructions(){return this.hooks.getInstructions()}}class d9{type="service";id;version;packageName;description;delegate;constructor($,G,X,Y){if(this.id=$,this.version=G.version,this.packageName=G.name,G.description!==void 0)this.description=G.description;this.delegate=new Fq($,G,X,Y,{onRegister:(W)=>this.onRegister(W),onReady:(W)=>this.onReady(W),onShutdown:()=>this.onShutdown(),getTools:()=>this.getTools(),getResources:()=>this.getResources(),getInstructions:()=>this.getInstructions()})}register($,G){return this.delegate.register($,G)}async onRegister($){}async onReady($){}async onShutdown(){}async getTools(){return[]}async getResources(){return[]}async getInstructions(){return}ready(){return this.delegate.ready()}shutdown(){return this.delegate.shutdown?.()??Promise.resolve()}}import{createClient as ny}from"@libsql/client";var F5=M0("conversations",{id:i("id").primaryKey(),sessionId:i("session_id").notNull(),interfaceType:i("interface_type").notNull(),channelId:i("channel_id").notNull(),started:i("started").notNull(),lastActive:i("last_active").notNull(),metadata:i("metadata"),created:i("created").notNull(),updated:i("updated").notNull()},($)=>({sessionIdx:Y0("idx_conversations_session").on($.sessionId),channelIdx:Y0("idx_conversations_channel").on($.channelId),interfaceSessionIdx:Y0("idx_conversations_interface_session").on($.interfaceType,$.sessionId),interfaceChannelIdx:Y0("idx_conversations_interface_channel").on($.interfaceType,$.channelId)})),wq=M0("messages",{id:i("id").primaryKey(),conversationId:i("conversation_id").notNull().references(()=>F5.id,{onDelete:"cascade"}),role:i("role").notNull(),content:i("content").notNull(),timestamp:i("timestamp").notNull(),metadata:i("metadata")},($)=>({conversationIdx:Y0("idx_messages_conversation").on($.conversationId),timestampIdx:Y0("idx_messages_timestamp").on($.timestamp)})),Bq=M0("summary_tracking",{conversationId:i("conversation_id").primaryKey().references(()=>F5.id,{onDelete:"cascade"}),lastSummarizedAt:i("last_summarized_at"),lastMessageId:i("last_message_id"),messagesSinceSummary:v1("messages_since_summary").default(0),updated:i("updated").notNull()});var ty=H.preprocess(($)=>{if(typeof $!=="string")return $;try{return JSON.parse($)}catch{return}},H.record(H.unknown())).catch({});var w5=H.object({actorId:H.string(),canonicalId:H.string().optional(),interfaceType:H.string(),role:K2,displayName:H.string().optional(),username:H.string().optional(),isBot:H.boolean().optional()}),B5=H.object({messageId:H.string().optional(),channelId:H.string().optional(),channelName:H.string().optional(),threadId:H.string().optional(),metadata:H.record(H.unknown()).optional()}),tw=H.object({actor:w5.optional(),source:B5.optional()}).passthrough();var ew=H.object({id:H.string(),conversationId:H.string(),role:H.string(),content:H.string(),timestamp:H.string(),metadata:H.string().nullable()}),$B=H.object({conversationId:H.string(),messageCount:H.number(),messages:H.array(ew),windowStart:H.number(),windowEnd:H.number(),windowSize:H.number(),timestamp:H.string()});var Oq=H.object({kind:H.string().min(1),id:H.string().min(1)}),WB=H.object({kind:H.literal("text"),filename:H.string().min(1),mediaType:H.string().min(1),content:H.string(),sizeBytes:H.number().nonnegative().optional(),source:Oq.optional()}),qB=H.instanceof(Uint8Array),VB=H.object({kind:H.literal("file"),filename:H.string().min(1),mediaType:H.string().min(1),data:qB,sizeBytes:H.number().nonnegative().optional(),source:Oq.optional()}),JB=H.discriminatedUnion("kind",[WB,VB]),HB=H.object({userPermissionLevel:p0.optional(),interfaceType:H.string().optional(),channelId:H.string().optional(),channelName:H.string().optional(),actor:w5.optional(),source:B5.optional(),attachments:H.array(JB).optional()});var UB=H.object({status:H.enum(["healthy","warning","error","unknown"]),message:H.string().optional(),lastCheck:H.string().optional(),details:H.record(H.unknown()).optional()}),RB=H.object({name:H.string(),pluginId:H.string(),status:H.string(),health:UB.optional()}),DB=H.object({model:H.string(),version:H.string(),uptime:H.number(),entities:H.number(),entityCounts:H.array(F9),embeddings:H.number(),ai:H.object({model:H.string(),embeddingModel:H.string()}),daemons:H.array(RB),endpoints:H.array(Q9),interactions:H.array(K9)});var MB=H.union([H.object({success:H.boolean(),data:H.unknown().optional(),error:H.string().optional()}),H.object({noop:H.literal(!0)})]),AB=H.object({id:H.string(),timestamp:H.string(),type:H.string(),source:H.string(),target:H.string().optional(),metadata:H4.optional()});export{NF as urlCaptureConfigSchema,OF as toolSuccess,PF as toolError,zF as defineChannel,wF as createTool,BF as createResource,t6 as ToolResultDataSchema,d9 as ServicePlugin,a6 as PendingConfirmationSchema,Kw as MessageSchema,MB as MessageResponseSchema,r9 as MessageInterfacePlugin,a4 as InterfacePlugin,H4 as ExtensionMetadataSchema,u9 as EntityPlugin,Qw as ConversationSchema,HB as ChatContextSchema,b9 as BrainCharacterSchema,AB as BaseMessageSchema,DB as AppInfoSchema,v9 as AnchorProfileSchema,e6 as AgentResponseSchema};
|
|
126
126
|
|
|
127
|
-
//# debugId=
|
|
127
|
+
//# debugId=52097C5FDDAC947464756E2164756E21
|
|
128
128
|
//# sourceMappingURL=plugins.js.map
|