yamlover 0.3.13 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +11 -2
  2. package/dist/agent-docs/AGENTS.md +4 -2
  3. package/dist/builtin-taxonomy/$defs/board +7 -7
  4. package/dist/builtin-taxonomy/$defs/chapter +17 -11
  5. package/dist/builtin-taxonomy/$defs/chunk +5 -3
  6. package/dist/builtin-taxonomy/$defs/task +15 -16
  7. package/dist/builtin-taxonomy/$defs/workflow +1 -1
  8. package/dist/client/assets/decoded-CY5-anyl.js +1 -0
  9. package/dist/client/assets/djvu-CbL4_9ak.js +1 -0
  10. package/dist/client/assets/{docx-B_9I-KwO.js → docx-CCEuxO9n.js} +1 -1
  11. package/dist/client/assets/{heic-Ce7tu8UK.js → heic-BvS6Unla.js} +2 -2
  12. package/dist/client/assets/imagemap-DBji1qL1.js +1 -0
  13. package/dist/client/assets/index-1sCxQdj3.css +1 -0
  14. package/dist/client/assets/index-DqdQvRi4.js +632 -0
  15. package/dist/client/assets/map-BfHrzAqt.js +1 -0
  16. package/dist/client/assets/openable-DIyqYrzm.js +4 -0
  17. package/dist/client/assets/{paged-CBui7Gsu.js → paged-COP9CRTO.js} +1 -1
  18. package/dist/client/assets/{pdf-DEAMWCiJ.js → pdf-C-kvASQl.js} +9 -9
  19. package/dist/client/assets/psd-KxbPOIwA.js +11 -0
  20. package/dist/client/assets/{spreadsheet-DM8lRCkI.js → spreadsheet-DkG5umsc.js} +1 -1
  21. package/dist/client/assets/tiff-sq_Q9sNj.js +1 -0
  22. package/dist/client/index.html +2 -2
  23. package/dist/server.js +1014 -274
  24. package/package.json +1 -1
  25. package/dist/client/assets/decoded-7CsibQKd.js +0 -1
  26. package/dist/client/assets/djvu-BXFlPnkK.js +0 -1
  27. package/dist/client/assets/imagemap-DlsYOgu-.js +0 -1
  28. package/dist/client/assets/index-D7TqaRqy.js +0 -620
  29. package/dist/client/assets/index-DEBdytA6.css +0 -1
  30. package/dist/client/assets/map-CKyCg437.js +0 -1
  31. package/dist/client/assets/panzoom-BDtxTlLr.js +0 -4
  32. package/dist/client/assets/psd-BUfV7J7j.js +0 -11
  33. package/dist/client/assets/tiff-DvGVB25t.js +0 -1
  34. /package/dist/client/assets/{panzoom-CIGW-MKW.css → openable-CIGW-MKW.css} +0 -0
@@ -0,0 +1,632 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-C-kvASQl.js","assets/paged-COP9CRTO.js","assets/pdf-m5e3jsV4.css","assets/djvu-CbL4_9ak.js","assets/psd-KxbPOIwA.js","assets/decoded-CY5-anyl.js","assets/imagemap-DBji1qL1.js","assets/openable-DIyqYrzm.js","assets/openable-CIGW-MKW.css","assets/tiff-sq_Q9sNj.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-BvS6Unla.js","assets/docx-CCEuxO9n.js","assets/map-BfHrzAqt.js"])))=>i.map(i=>d[i]);
2
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var T8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K_={exports:{}},Lu={},X_={exports:{}},Ot={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Jl=Symbol.for("react.element"),jy=Symbol.for("react.portal"),By=Symbol.for("react.fragment"),Py=Symbol.for("react.strict_mode"),Uy=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),Vy=Symbol.for("react.context"),Wy=Symbol.for("react.forward_ref"),Yy=Symbol.for("react.suspense"),Gy=Symbol.for("react.memo"),Ky=Symbol.for("react.lazy"),sh=Symbol.iterator;function Xy(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var Q_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z_=Object.assign,J_={};function Fa(e,t,r){this.props=e,this.context=t,this.refs=J_,this.updater=r||Q_}Fa.prototype.isReactComponent={};Fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function O_(){}O_.prototype=Fa.prototype;function _0(e,t,r){this.props=e,this.context=t,this.refs=J_,this.updater=r||Q_}var m0=_0.prototype=new O_;m0.constructor=_0;Z_(m0,Fa.prototype);m0.isPureReactComponent=!0;var ah=Array.isArray,em=Object.prototype.hasOwnProperty,g0={current:null},tm={key:!0,ref:!0,__self:!0,__source:!0};function rm(e,t,r){var n,i={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)em.call(t,n)&&!tm.hasOwnProperty(n)&&(i[n]=t[n]);var f=arguments.length-2;if(f===1)i.children=r;else if(1<f){for(var h=Array(f),d=0;d<f;d++)h[d]=arguments[d+2];i.children=h}if(e&&e.defaultProps)for(n in f=e.defaultProps,f)i[n]===void 0&&(i[n]=f[n]);return{$$typeof:Jl,type:e,key:s,ref:o,props:i,_owner:g0.current}}function Qy(e,t){return{$$typeof:Jl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function v0(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jl}function Zy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var lh=/\/+/g;function qc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zy(""+e.key):t.toString(36)}function Bo(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Jl:case jy:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+qc(o,0):n,ah(i)?(r="",e!=null&&(r=e.replace(lh,"$&/")+"/"),Bo(i,t,r,"",function(d){return d})):i!=null&&(v0(i)&&(i=Qy(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(lh,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",ah(e))for(var f=0;f<e.length;f++){s=e[f];var h=n+qc(s,f);o+=Bo(s,t,r,h,i)}else if(h=Xy(e),typeof h=="function")for(e=h.call(e),f=0;!(s=e.next()).done;)s=s.value,h=n+qc(s,f++),o+=Bo(s,t,r,h,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function co(e,t,r){if(e==null)return e;var n=[],i=0;return Bo(e,n,"","",function(s){return t.call(r,s,i++)}),n}function Jy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $n={current:null},Po={transition:null},Oy={ReactCurrentDispatcher:$n,ReactCurrentBatchConfig:Po,ReactCurrentOwner:g0};function nm(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:co,forEach:function(e,t,r){co(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return co(e,function(){t++}),t},toArray:function(e){return co(e,function(t){return t})||[]},only:function(e){if(!v0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=Fa;Ot.Fragment=By;Ot.Profiler=Uy;Ot.PureComponent=_0;Ot.StrictMode=Py;Ot.Suspense=Yy;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oy;Ot.act=nm;Ot.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Z_({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=g0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(h in t)em.call(t,h)&&!tm.hasOwnProperty(h)&&(n[h]=t[h]===void 0&&f!==void 0?f[h]:t[h])}var h=arguments.length-2;if(h===1)n.children=r;else if(1<h){f=Array(h);for(var d=0;d<h;d++)f[d]=arguments[d+2];n.children=f}return{$$typeof:Jl,type:e.type,key:i,ref:s,props:n,_owner:o}};Ot.createContext=function(e){return e={$$typeof:Vy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hy,_context:e},e.Consumer=e};Ot.createElement=rm;Ot.createFactory=function(e){var t=rm.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:Wy,render:e}};Ot.isValidElement=v0;Ot.lazy=function(e){return{$$typeof:Ky,_payload:{_status:-1,_result:e},_init:Jy}};Ot.memo=function(e,t){return{$$typeof:Gy,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=Po.transition;Po.transition={};try{e()}finally{Po.transition=t}};Ot.unstable_act=nm;Ot.useCallback=function(e,t){return $n.current.useCallback(e,t)};Ot.useContext=function(e){return $n.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return $n.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return $n.current.useEffect(e,t)};Ot.useId=function(){return $n.current.useId()};Ot.useImperativeHandle=function(e,t,r){return $n.current.useImperativeHandle(e,t,r)};Ot.useInsertionEffect=function(e,t){return $n.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return $n.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return $n.current.useMemo(e,t)};Ot.useReducer=function(e,t,r){return $n.current.useReducer(e,t,r)};Ot.useRef=function(e){return $n.current.useRef(e)};Ot.useState=function(e){return $n.current.useState(e)};Ot.useSyncExternalStore=function(e,t,r){return $n.current.useSyncExternalStore(e,t,r)};Ot.useTransition=function(){return $n.current.useTransition()};Ot.version="18.3.1";X_.exports=Ot;var ft=X_.exports;const e2=Fy(ft);/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var t2=ft,r2=Symbol.for("react.element"),n2=Symbol.for("react.fragment"),i2=Object.prototype.hasOwnProperty,s2=t2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a2={key:!0,ref:!0,__self:!0,__source:!0};function im(e,t,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)i2.call(t,n)&&!a2.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:r2,type:e,key:s,ref:o,props:i,_owner:s2.current}}Lu.Fragment=n2;Lu.jsx=im;Lu.jsxs=im;K_.exports=Lu;var ye=K_.exports,sm={exports:{}},zn={},am={exports:{}},lm={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){function t(ce,U){var x=ce.length;ce.push(U);e:for(;0<x;){var $=x-1>>>1,l=ce[$];if(0<i(l,U))ce[$]=U,ce[x]=l,x=$;else break e}}function r(ce){return ce.length===0?null:ce[0]}function n(ce){if(ce.length===0)return null;var U=ce[0],x=ce.pop();if(x!==U){ce[0]=x;e:for(var $=0,l=ce.length,c=l>>>1;$<c;){var p=2*($+1)-1,_=ce[p],S=p+1,C=ce[S];if(0>i(_,x))S<l&&0>i(C,_)?(ce[$]=C,ce[S]=x,$=S):(ce[$]=_,ce[p]=x,$=p);else if(S<l&&0>i(C,x))ce[$]=C,ce[S]=x,$=S;else break e}}return U}function i(ce,U){var x=ce.sortIndex-U.sortIndex;return x!==0?x:ce.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,f=o.now();e.unstable_now=function(){return o.now()-f}}var h=[],d=[],A=1,z=null,L=3,ne=!1,ge=!1,Q=!1,F=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,pe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function se(ce){for(var U=r(d);U!==null;){if(U.callback===null)n(d);else if(U.startTime<=ce)n(d),U.sortIndex=U.expirationTime,t(h,U);else break;U=r(d)}}function ve(ce){if(Q=!1,se(ce),!ge)if(r(h)!==null)ge=!0,V(Z);else{var U=r(d);U!==null&&Fe(ve,U.startTime-ce)}}function Z(ce,U){ge=!1,Q&&(Q=!1,Y(Ee),Ee=-1),ne=!0;var x=L;try{for(se(U),z=r(h);z!==null&&(!(z.expirationTime>U)||ce&&!$e());){var $=z.callback;if(typeof $=="function"){z.callback=null,L=z.priorityLevel;var l=$(z.expirationTime<=U);U=e.unstable_now(),typeof l=="function"?z.callback=l:z===r(h)&&n(h),se(U)}else n(h);z=r(h)}if(z!==null)var c=!0;else{var p=r(d);p!==null&&Fe(ve,p.startTime-U),c=!1}return c}finally{z=null,L=x,ne=!1}}var be=!1,ue=null,Ee=-1,O=5,Ce=-1;function $e(){return!(e.unstable_now()-Ce<O)}function w(){if(ue!==null){var ce=e.unstable_now();Ce=ce;var U=!0;try{U=ue(!0,ce)}finally{U?Ae():(be=!1,ue=null)}}else be=!1}var Ae;if(typeof pe=="function")Ae=function(){pe(w)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,de=j.port2;j.port1.onmessage=w,Ae=function(){de.postMessage(null)}}else Ae=function(){F(w,0)};function V(ce){ue=ce,be||(be=!0,Ae())}function Fe(ce,U){Ee=F(function(){ce(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ce){ce.callback=null},e.unstable_continueExecution=function(){ge||ne||(ge=!0,V(Z))},e.unstable_forceFrameRate=function(ce){0>ce||125<ce?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<ce?Math.floor(1e3/ce):5},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(ce){switch(L){case 1:case 2:case 3:var U=3;break;default:U=L}var x=L;L=U;try{return ce()}finally{L=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ce,U){switch(ce){case 1:case 2:case 3:case 4:case 5:break;default:ce=3}var x=L;L=ce;try{return U()}finally{L=x}},e.unstable_scheduleCallback=function(ce,U,x){var $=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?$+x:$):x=$,ce){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=x+l,ce={id:A++,callback:U,priorityLevel:ce,startTime:x,expirationTime:l,sortIndex:-1},x>$?(ce.sortIndex=x,t(d,ce),r(h)===null&&ce===r(d)&&(Q?(Y(Ee),Ee=-1):Q=!0,Fe(ve,x-$))):(ce.sortIndex=l,t(h,ce),ge||ne||(ge=!0,V(Z))),ce},e.unstable_shouldYield=$e,e.unstable_wrapCallback=function(ce){var U=L;return function(){var x=L;L=U;try{return ce.apply(this,arguments)}finally{L=x}}}})(lm);am.exports=lm;var l2=am.exports;/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var o2=ft,Cn=l2;function zt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var om=new Set,Cl={};function Us(e,t){Aa(e,t),Aa(e+"Capture",t)}function Aa(e,t){for(Cl[e]=t,e=0;e<t.length;e++)om.add(t[e])}var Ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),L$=Object.prototype.hasOwnProperty,u2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oh={},uh={};function c2(e){return L$.call(uh,e)?!0:L$.call(oh,e)?!1:u2.test(e)?uh[e]=!0:(oh[e]=!0,!1)}function $2(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function f2(e,t,r,n){if(t===null||typeof t>"u"||$2(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fn(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Kr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kr[e]=new fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kr[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kr[e]=new fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kr[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var y0=/[\-:]([a-z])/g;function b0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y0,b0);Kr[t]=new fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y0,b0);Kr[t]=new fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y0,b0);Kr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Kr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function x0(e,t,r,n){var i=Kr.hasOwnProperty(t)?Kr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(f2(t,r,i,n)&&(r=null),n||i===null?c2(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Mi=o2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$o=Symbol.for("react.element"),ia=Symbol.for("react.portal"),sa=Symbol.for("react.fragment"),w0=Symbol.for("react.strict_mode"),F$=Symbol.for("react.profiler"),um=Symbol.for("react.provider"),cm=Symbol.for("react.context"),k0=Symbol.for("react.forward_ref"),j$=Symbol.for("react.suspense"),B$=Symbol.for("react.suspense_list"),S0=Symbol.for("react.memo"),Yi=Symbol.for("react.lazy"),$m=Symbol.for("react.offscreen"),ch=Symbol.iterator;function Za(e){return e===null||typeof e!="object"?null:(e=ch&&e[ch]||e["@@iterator"],typeof e=="function"?e:null)}var br=Object.assign,Mc;function ol(e){if(Mc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Mc=t&&t[1]||""}return`
35
+ `+Mc+e}var Dc=!1;function Lc(e,t){if(!e||Dc)return"";Dc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var i=d.stack.split(`
36
+ `),s=n.stack.split(`
37
+ `),o=i.length-1,f=s.length-1;1<=o&&0<=f&&i[o]!==s[f];)f--;for(;1<=o&&0<=f;o--,f--)if(i[o]!==s[f]){if(o!==1||f!==1)do if(o--,f--,0>f||i[o]!==s[f]){var h=`
38
+ `+i[o].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=o&&0<=f);break}}}finally{Dc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ol(e):""}function d2(e){switch(e.tag){case 5:return ol(e.type);case 16:return ol("Lazy");case 13:return ol("Suspense");case 19:return ol("SuspenseList");case 0:case 2:case 15:return e=Lc(e.type,!1),e;case 11:return e=Lc(e.type.render,!1),e;case 1:return e=Lc(e.type,!0),e;default:return""}}function P$(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sa:return"Fragment";case ia:return"Portal";case F$:return"Profiler";case w0:return"StrictMode";case j$:return"Suspense";case B$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cm:return(e.displayName||"Context")+".Consumer";case um:return(e._context.displayName||"Context")+".Provider";case k0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case S0:return t=e.displayName||null,t!==null?t:P$(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return P$(e(t))}catch{}}return null}function h2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return P$(t);case 8:return t===w0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function os(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p2(e){var t=fm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fo(e){e._valueTracker||(e._valueTracker=p2(e))}function dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fm(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ru(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function U$(e,t){var r=t.checked;return br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function $h(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=os(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hm(e,t){t=t.checked,t!=null&&x0(e,"checked",t,!1)}function H$(e,t){hm(e,t);var r=os(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?V$(e,t.type,r):t.hasOwnProperty("defaultValue")&&V$(e,t.type,os(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function V$(e,t,r){(t!=="number"||ru(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ul=Array.isArray;function ga(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+os(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function W$(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(zt(91));return br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function dh(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(zt(92));if(ul(r)){if(1<r.length)throw Error(zt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:os(r)}}function pm(e,t){var r=os(t.value),n=os(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function hh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _m(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Y$(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_m(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ho,mm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ho=ho||document.createElement("div"),ho.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var _l={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_2=["Webkit","ms","Moz","O"];Object.keys(_l).forEach(function(e){_2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_l[t]=_l[e]})});function gm(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||_l.hasOwnProperty(e)&&_l[e]?(""+t).trim():t+"px"}function vm(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=gm(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var m2=br({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function G$(e,t){if(t){if(m2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(zt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(zt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(zt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(zt(62))}}function K$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var X$=null;function E0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Q$=null,va=null,ya=null;function ph(e){if(e=to(e)){if(typeof Q$!="function")throw Error(zt(280));var t=e.stateNode;t&&(t=Uu(t),Q$(e.stateNode,e.type,t))}}function ym(e){va?ya?ya.push(e):ya=[e]:va=e}function bm(){if(va){var e=va,t=ya;if(ya=va=null,ph(e),t)for(e=0;e<t.length;e++)ph(t[e])}}function xm(e,t){return e(t)}function wm(){}var Fc=!1;function km(e,t,r){if(Fc)return e(t,r);Fc=!0;try{return xm(e,t,r)}finally{Fc=!1,(va!==null||ya!==null)&&(wm(),bm())}}function Rl(e,t){var r=e.stateNode;if(r===null)return null;var n=Uu(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(zt(231,t,typeof r));return r}var Z$=!1;if(Ti)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Z$=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Z$=!1}function g2(e,t,r,n,i,s,o,f,h){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(A){this.onError(A)}}var ml=!1,nu=null,iu=!1,J$=null,v2={onError:function(e){ml=!0,nu=e}};function y2(e,t,r,n,i,s,o,f,h){ml=!1,nu=null,g2.apply(v2,arguments)}function b2(e,t,r,n,i,s,o,f,h){if(y2.apply(this,arguments),ml){if(ml){var d=nu;ml=!1,nu=null}else throw Error(zt(198));iu||(iu=!0,J$=d)}}function Hs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Sm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _h(e){if(Hs(e)!==e)throw Error(zt(188))}function x2(e){var t=e.alternate;if(!t){if(t=Hs(e),t===null)throw Error(zt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return _h(i),e;if(s===n)return _h(i),t;s=s.sibling}throw Error(zt(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,f=i.child;f;){if(f===r){o=!0,r=i,n=s;break}if(f===n){o=!0,n=i,r=s;break}f=f.sibling}if(!o){for(f=s.child;f;){if(f===r){o=!0,r=s,n=i;break}if(f===n){o=!0,n=s,r=i;break}f=f.sibling}if(!o)throw Error(zt(189))}}if(r.alternate!==n)throw Error(zt(190))}if(r.tag!==3)throw Error(zt(188));return r.stateNode.current===r?e:t}function Em(e){return e=x2(e),e!==null?Am(e):null}function Am(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Am(e);if(t!==null)return t;e=e.sibling}return null}var Cm=Cn.unstable_scheduleCallback,mh=Cn.unstable_cancelCallback,w2=Cn.unstable_shouldYield,k2=Cn.unstable_requestPaint,Ar=Cn.unstable_now,S2=Cn.unstable_getCurrentPriorityLevel,A0=Cn.unstable_ImmediatePriority,Tm=Cn.unstable_UserBlockingPriority,su=Cn.unstable_NormalPriority,E2=Cn.unstable_LowPriority,Rm=Cn.unstable_IdlePriority,Fu=null,fi=null;function A2(e){if(fi&&typeof fi.onCommitFiberRoot=="function")try{fi.onCommitFiberRoot(Fu,e,void 0,(e.current.flags&128)===128)}catch{}}var ti=Math.clz32?Math.clz32:R2,C2=Math.log,T2=Math.LN2;function R2(e){return e>>>=0,e===0?32:31-(C2(e)/T2|0)|0}var po=64,_o=4194304;function cl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function au(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var f=o&~i;f!==0?n=cl(f):(s&=o,s!==0&&(n=cl(s)))}else o=r&~i,o!==0?n=cl(o):s!==0&&(n=cl(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ti(t),i=1<<r,n|=e[r],t&=~i;return n}function z2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-ti(s),f=1<<o,h=i[o];h===-1?(!(f&r)||f&n)&&(i[o]=z2(f,t)):h<=t&&(e.expiredLanes|=f),s&=~f}}function O$(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zm(){var e=po;return po<<=1,!(po&4194240)&&(po=64),e}function jc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ol(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ti(t),e[t]=r}function I2(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ti(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function C0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ti(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ar=0;function Nm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Im,T0,qm,Mm,Dm,ef=!1,mo=[],es=null,ts=null,rs=null,zl=new Map,Nl=new Map,Ki=[],q2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gh(e,t){switch(e){case"focusin":case"focusout":es=null;break;case"dragenter":case"dragleave":ts=null;break;case"mouseover":case"mouseout":rs=null;break;case"pointerover":case"pointerout":zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nl.delete(t.pointerId)}}function Oa(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=to(t),t!==null&&T0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function M2(e,t,r,n,i){switch(t){case"focusin":return es=Oa(es,e,t,r,n,i),!0;case"dragenter":return ts=Oa(ts,e,t,r,n,i),!0;case"mouseover":return rs=Oa(rs,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return zl.set(s,Oa(zl.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Nl.set(s,Oa(Nl.get(s)||null,e,t,r,n,i)),!0}return!1}function Lm(e){var t=Ts(e.target);if(t!==null){var r=Hs(t);if(r!==null){if(t=r.tag,t===13){if(t=Sm(r),t!==null){e.blockedOn=t,Dm(e.priority,function(){qm(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=tf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);X$=n,r.target.dispatchEvent(n),X$=null}else return t=to(r),t!==null&&T0(t),e.blockedOn=r,!1;t.shift()}return!0}function vh(e,t,r){Uo(e)&&r.delete(t)}function D2(){ef=!1,es!==null&&Uo(es)&&(es=null),ts!==null&&Uo(ts)&&(ts=null),rs!==null&&Uo(rs)&&(rs=null),zl.forEach(vh),Nl.forEach(vh)}function el(e,t){e.blockedOn===t&&(e.blockedOn=null,ef||(ef=!0,Cn.unstable_scheduleCallback(Cn.unstable_NormalPriority,D2)))}function Il(e){function t(i){return el(i,e)}if(0<mo.length){el(mo[0],e);for(var r=1;r<mo.length;r++){var n=mo[r];n.blockedOn===e&&(n.blockedOn=null)}}for(es!==null&&el(es,e),ts!==null&&el(ts,e),rs!==null&&el(rs,e),zl.forEach(t),Nl.forEach(t),r=0;r<Ki.length;r++)n=Ki[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ki.length&&(r=Ki[0],r.blockedOn===null);)Lm(r),r.blockedOn===null&&Ki.shift()}var ba=Mi.ReactCurrentBatchConfig,lu=!0;function L2(e,t,r,n){var i=ar,s=ba.transition;ba.transition=null;try{ar=1,R0(e,t,r,n)}finally{ar=i,ba.transition=s}}function F2(e,t,r,n){var i=ar,s=ba.transition;ba.transition=null;try{ar=4,R0(e,t,r,n)}finally{ar=i,ba.transition=s}}function R0(e,t,r,n){if(lu){var i=tf(e,t,r,n);if(i===null)Xc(e,t,n,ou,r),gh(e,n);else if(M2(i,e,t,r,n))n.stopPropagation();else if(gh(e,n),t&4&&-1<q2.indexOf(e)){for(;i!==null;){var s=to(i);if(s!==null&&Im(s),s=tf(e,t,r,n),s===null&&Xc(e,t,n,ou,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Xc(e,t,n,null,r)}}var ou=null;function tf(e,t,r,n){if(ou=null,e=E0(n),e=Ts(e),e!==null)if(t=Hs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Sm(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ou=e,null}function Fm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(S2()){case A0:return 1;case Tm:return 4;case su:case E2:return 16;case Rm:return 536870912;default:return 16}default:return 16}}var Zi=null,z0=null,Ho=null;function jm(){if(Ho)return Ho;var e,t=z0,r=t.length,n,i="value"in Zi?Zi.value:Zi.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return Ho=i.slice(e,1<n?1-n:void 0)}function Vo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function go(){return!0}function yh(){return!1}function Nn(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(r=e[f],this[f]=r?r(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?go:yh,this.isPropagationStopped=yh,this}return br(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=go)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=go)},persist:function(){},isPersistent:go}),t}var ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},N0=Nn(ja),eo=br({},ja,{view:0,detail:0}),j2=Nn(eo),Bc,Pc,tl,ju=br({},eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:I0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tl&&(tl&&e.type==="mousemove"?(Bc=e.screenX-tl.screenX,Pc=e.screenY-tl.screenY):Pc=Bc=0,tl=e),Bc)},movementY:function(e){return"movementY"in e?e.movementY:Pc}}),bh=Nn(ju),B2=br({},ju,{dataTransfer:0}),P2=Nn(B2),U2=br({},eo,{relatedTarget:0}),Uc=Nn(U2),H2=br({},ja,{animationName:0,elapsedTime:0,pseudoElement:0}),V2=Nn(H2),W2=br({},ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y2=Nn(W2),G2=br({},ja,{data:0}),xh=Nn(G2),K2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Q2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q2[e])?!!t[e]:!1}function I0(){return Z2}var J2=br({},eo,{key:function(e){if(e.key){var t=K2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:I0,charCode:function(e){return e.type==="keypress"?Vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O2=Nn(J2),eb=br({},ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wh=Nn(eb),tb=br({},eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:I0}),rb=Nn(tb),nb=br({},ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),ib=Nn(nb),sb=br({},ju,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ab=Nn(sb),lb=[9,13,27,32],q0=Ti&&"CompositionEvent"in window,gl=null;Ti&&"documentMode"in document&&(gl=document.documentMode);var ob=Ti&&"TextEvent"in window&&!gl,Bm=Ti&&(!q0||gl&&8<gl&&11>=gl),kh=" ",Sh=!1;function Pm(e,t){switch(e){case"keyup":return lb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Um(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function ub(e,t){switch(e){case"compositionend":return Um(t);case"keypress":return t.which!==32?null:(Sh=!0,kh);case"textInput":return e=t.data,e===kh&&Sh?null:e;default:return null}}function cb(e,t){if(aa)return e==="compositionend"||!q0&&Pm(e,t)?(e=jm(),Ho=z0=Zi=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bm&&t.locale!=="ko"?null:t.data;default:return null}}var $b={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$b[e.type]:t==="textarea"}function Hm(e,t,r,n){ym(n),t=uu(t,"onChange"),0<t.length&&(r=new N0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var vl=null,ql=null;function fb(e){e1(e,0)}function Bu(e){var t=ua(e);if(dm(t))return e}function db(e,t){if(e==="change")return t}var Vm=!1;if(Ti){var Hc;if(Ti){var Vc="oninput"in document;if(!Vc){var Ah=document.createElement("div");Ah.setAttribute("oninput","return;"),Vc=typeof Ah.oninput=="function"}Hc=Vc}else Hc=!1;Vm=Hc&&(!document.documentMode||9<document.documentMode)}function Ch(){vl&&(vl.detachEvent("onpropertychange",Wm),ql=vl=null)}function Wm(e){if(e.propertyName==="value"&&Bu(ql)){var t=[];Hm(t,ql,e,E0(e)),km(fb,t)}}function hb(e,t,r){e==="focusin"?(Ch(),vl=t,ql=r,vl.attachEvent("onpropertychange",Wm)):e==="focusout"&&Ch()}function pb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bu(ql)}function _b(e,t){if(e==="click")return Bu(t)}function mb(e,t){if(e==="input"||e==="change")return Bu(t)}function gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ni=typeof Object.is=="function"?Object.is:gb;function Ml(e,t){if(ni(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!L$.call(t,i)||!ni(e[i],t[i]))return!1}return!0}function Th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rh(e,t){var r=Th(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Th(r)}}function Ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gm(){for(var e=window,t=ru();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ru(e.document)}return t}function M0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vb(e){var t=Gm(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ym(r.ownerDocument.documentElement,r)){if(n!==null&&M0(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=Rh(r,s);var o=Rh(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yb=Ti&&"documentMode"in document&&11>=document.documentMode,la=null,rf=null,yl=null,nf=!1;function zh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;nf||la==null||la!==ru(n)||(n=la,"selectionStart"in n&&M0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yl&&Ml(yl,n)||(yl=n,n=uu(rf,"onSelect"),0<n.length&&(t=new N0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=la)))}function vo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var oa={animationend:vo("Animation","AnimationEnd"),animationiteration:vo("Animation","AnimationIteration"),animationstart:vo("Animation","AnimationStart"),transitionend:vo("Transition","TransitionEnd")},Wc={},Km={};Ti&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Pu(e){if(Wc[e])return Wc[e];if(!oa[e])return e;var t=oa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Km)return Wc[e]=t[r];return e}var Xm=Pu("animationend"),Qm=Pu("animationiteration"),Zm=Pu("animationstart"),Jm=Pu("transitionend"),Om=new Map,Nh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _s(e,t){Om.set(e,t),Us(t,[e])}for(var Yc=0;Yc<Nh.length;Yc++){var Gc=Nh[Yc],bb=Gc.toLowerCase(),xb=Gc[0].toUpperCase()+Gc.slice(1);_s(bb,"on"+xb)}_s(Xm,"onAnimationEnd");_s(Qm,"onAnimationIteration");_s(Zm,"onAnimationStart");_s("dblclick","onDoubleClick");_s("focusin","onFocus");_s("focusout","onBlur");_s(Jm,"onTransitionEnd");Aa("onMouseEnter",["mouseout","mouseover"]);Aa("onMouseLeave",["mouseout","mouseover"]);Aa("onPointerEnter",["pointerout","pointerover"]);Aa("onPointerLeave",["pointerout","pointerover"]);Us("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Us("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Us("onBeforeInput",["compositionend","keypress","textInput","paste"]);Us("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Us("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Us("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wb=new Set("cancel close invalid load scroll toggle".split(" ").concat($l));function Ih(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,b2(n,t,void 0,e),e.currentTarget=null}function e1(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var f=n[o],h=f.instance,d=f.currentTarget;if(f=f.listener,h!==s&&i.isPropagationStopped())break e;Ih(i,f,d),s=h}else for(o=0;o<n.length;o++){if(f=n[o],h=f.instance,d=f.currentTarget,f=f.listener,h!==s&&i.isPropagationStopped())break e;Ih(i,f,d),s=h}}}if(iu)throw e=J$,iu=!1,J$=null,e}function cr(e,t){var r=t[uf];r===void 0&&(r=t[uf]=new Set);var n=e+"__bubble";r.has(n)||(t1(t,e,2,!1),r.add(n))}function Kc(e,t,r){var n=0;t&&(n|=4),t1(r,e,n,t)}var yo="_reactListening"+Math.random().toString(36).slice(2);function Dl(e){if(!e[yo]){e[yo]=!0,om.forEach(function(r){r!=="selectionchange"&&(wb.has(r)||Kc(r,!1,e),Kc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yo]||(t[yo]=!0,Kc("selectionchange",!1,t))}}function t1(e,t,r,n){switch(Fm(t)){case 1:var i=L2;break;case 4:i=F2;break;default:i=R0}r=i.bind(null,t,r,e),i=void 0,!Z$||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Xc(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var f=n.stateNode.containerInfo;if(f===i||f.nodeType===8&&f.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var h=o.tag;if((h===3||h===4)&&(h=o.stateNode.containerInfo,h===i||h.nodeType===8&&h.parentNode===i))return;o=o.return}for(;f!==null;){if(o=Ts(f),o===null)return;if(h=o.tag,h===5||h===6){n=s=o;continue e}f=f.parentNode}}n=n.return}km(function(){var d=s,A=E0(r),z=[];e:{var L=Om.get(e);if(L!==void 0){var ne=N0,ge=e;switch(e){case"keypress":if(Vo(r)===0)break e;case"keydown":case"keyup":ne=O2;break;case"focusin":ge="focus",ne=Uc;break;case"focusout":ge="blur",ne=Uc;break;case"beforeblur":case"afterblur":ne=Uc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=P2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=rb;break;case Xm:case Qm:case Zm:ne=V2;break;case Jm:ne=ib;break;case"scroll":ne=j2;break;case"wheel":ne=ab;break;case"copy":case"cut":case"paste":ne=Y2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=wh}var Q=(t&4)!==0,F=!Q&&e==="scroll",Y=Q?L!==null?L+"Capture":null:L;Q=[];for(var pe=d,se;pe!==null;){se=pe;var ve=se.stateNode;if(se.tag===5&&ve!==null&&(se=ve,Y!==null&&(ve=Rl(pe,Y),ve!=null&&Q.push(Ll(pe,ve,se)))),F)break;pe=pe.return}0<Q.length&&(L=new ne(L,ge,null,r,A),z.push({event:L,listeners:Q}))}}if(!(t&7)){e:{if(L=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",L&&r!==X$&&(ge=r.relatedTarget||r.fromElement)&&(Ts(ge)||ge[Ri]))break e;if((ne||L)&&(L=A.window===A?A:(L=A.ownerDocument)?L.defaultView||L.parentWindow:window,ne?(ge=r.relatedTarget||r.toElement,ne=d,ge=ge?Ts(ge):null,ge!==null&&(F=Hs(ge),ge!==F||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(ne=null,ge=d),ne!==ge)){if(Q=bh,ve="onMouseLeave",Y="onMouseEnter",pe="mouse",(e==="pointerout"||e==="pointerover")&&(Q=wh,ve="onPointerLeave",Y="onPointerEnter",pe="pointer"),F=ne==null?L:ua(ne),se=ge==null?L:ua(ge),L=new Q(ve,pe+"leave",ne,r,A),L.target=F,L.relatedTarget=se,ve=null,Ts(A)===d&&(Q=new Q(Y,pe+"enter",ge,r,A),Q.target=se,Q.relatedTarget=F,ve=Q),F=ve,ne&&ge)t:{for(Q=ne,Y=ge,pe=0,se=Q;se;se=Js(se))pe++;for(se=0,ve=Y;ve;ve=Js(ve))se++;for(;0<pe-se;)Q=Js(Q),pe--;for(;0<se-pe;)Y=Js(Y),se--;for(;pe--;){if(Q===Y||Y!==null&&Q===Y.alternate)break t;Q=Js(Q),Y=Js(Y)}Q=null}else Q=null;ne!==null&&qh(z,L,ne,Q,!1),ge!==null&&F!==null&&qh(z,F,ge,Q,!0)}}e:{if(L=d?ua(d):window,ne=L.nodeName&&L.nodeName.toLowerCase(),ne==="select"||ne==="input"&&L.type==="file")var Z=db;else if(Eh(L))if(Vm)Z=mb;else{Z=pb;var be=hb}else(ne=L.nodeName)&&ne.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(Z=_b);if(Z&&(Z=Z(e,d))){Hm(z,Z,r,A);break e}be&&be(e,L,d),e==="focusout"&&(be=L._wrapperState)&&be.controlled&&L.type==="number"&&V$(L,"number",L.value)}switch(be=d?ua(d):window,e){case"focusin":(Eh(be)||be.contentEditable==="true")&&(la=be,rf=d,yl=null);break;case"focusout":yl=rf=la=null;break;case"mousedown":nf=!0;break;case"contextmenu":case"mouseup":case"dragend":nf=!1,zh(z,r,A);break;case"selectionchange":if(yb)break;case"keydown":case"keyup":zh(z,r,A)}var ue;if(q0)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else aa?Pm(e,r)&&(Ee="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ee="onCompositionStart");Ee&&(Bm&&r.locale!=="ko"&&(aa||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&aa&&(ue=jm()):(Zi=A,z0="value"in Zi?Zi.value:Zi.textContent,aa=!0)),be=uu(d,Ee),0<be.length&&(Ee=new xh(Ee,e,null,r,A),z.push({event:Ee,listeners:be}),ue?Ee.data=ue:(ue=Um(r),ue!==null&&(Ee.data=ue)))),(ue=ob?ub(e,r):cb(e,r))&&(d=uu(d,"onBeforeInput"),0<d.length&&(A=new xh("onBeforeInput","beforeinput",null,r,A),z.push({event:A,listeners:d}),A.data=ue))}e1(z,t)})}function Ll(e,t,r){return{instance:e,listener:t,currentTarget:r}}function uu(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Rl(e,r),s!=null&&n.unshift(Ll(e,s,i)),s=Rl(e,t),s!=null&&n.push(Ll(e,s,i))),e=e.return}return n}function Js(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qh(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var f=r,h=f.alternate,d=f.stateNode;if(h!==null&&h===n)break;f.tag===5&&d!==null&&(f=d,i?(h=Rl(r,s),h!=null&&o.unshift(Ll(r,h,f))):i||(h=Rl(r,s),h!=null&&o.push(Ll(r,h,f)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var kb=/\r\n?/g,Sb=/\u0000|\uFFFD/g;function Mh(e){return(typeof e=="string"?e:""+e).replace(kb,`
39
+ `).replace(Sb,"")}function bo(e,t,r){if(t=Mh(t),Mh(e)!==t&&r)throw Error(zt(425))}function cu(){}var sf=null,af=null;function lf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var of=typeof setTimeout=="function"?setTimeout:void 0,Eb=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,Ab=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(Cb)}:of;function Cb(e){setTimeout(function(){throw e})}function Qc(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Il(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Il(t)}function ns(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Lh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ba=Math.random().toString(36).slice(2),oi="__reactFiber$"+Ba,Fl="__reactProps$"+Ba,Ri="__reactContainer$"+Ba,uf="__reactEvents$"+Ba,Tb="__reactListeners$"+Ba,Rb="__reactHandles$"+Ba;function Ts(e){var t=e[oi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ri]||r[oi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Lh(e);e!==null;){if(r=e[oi])return r;e=Lh(e)}return t}e=r,r=e.parentNode}return null}function to(e){return e=e[oi]||e[Ri],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ua(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(zt(33))}function Uu(e){return e[Fl]||null}var cf=[],ca=-1;function ms(e){return{current:e}}function fr(e){0>ca||(e.current=cf[ca],cf[ca]=null,ca--)}function ur(e,t){ca++,cf[ca]=e.current,e.current=t}var us={},tn=ms(us),gn=ms(!1),Ms=us;function Ca(e,t){var r=e.type.contextTypes;if(!r)return us;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vn(e){return e=e.childContextTypes,e!=null}function $u(){fr(gn),fr(tn)}function Fh(e,t,r){if(tn.current!==us)throw Error(zt(168));ur(tn,t),ur(gn,r)}function r1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(zt(108,h2(e)||"Unknown",i));return br({},r,n)}function fu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||us,Ms=tn.current,ur(tn,e),ur(gn,gn.current),!0}function jh(e,t,r){var n=e.stateNode;if(!n)throw Error(zt(169));r?(e=r1(e,t,Ms),n.__reactInternalMemoizedMergedChildContext=e,fr(gn),fr(tn),ur(tn,e)):fr(gn),ur(gn,r)}var xi=null,Hu=!1,Zc=!1;function n1(e){xi===null?xi=[e]:xi.push(e)}function zb(e){Hu=!0,n1(e)}function gs(){if(!Zc&&xi!==null){Zc=!0;var e=0,t=ar;try{var r=xi;for(ar=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}xi=null,Hu=!1}catch(i){throw xi!==null&&(xi=xi.slice(e+1)),Cm(A0,gs),i}finally{ar=t,Zc=!1}}return null}var $a=[],fa=0,du=null,hu=0,Ln=[],Fn=0,Ds=null,ki=1,Si="";function Ss(e,t){$a[fa++]=hu,$a[fa++]=du,du=e,hu=t}function i1(e,t,r){Ln[Fn++]=ki,Ln[Fn++]=Si,Ln[Fn++]=Ds,Ds=e;var n=ki;e=Si;var i=32-ti(n)-1;n&=~(1<<i),r+=1;var s=32-ti(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,ki=1<<32-ti(t)+i|r<<i|n,Si=s+e}else ki=1<<s|r<<i|n,Si=e}function D0(e){e.return!==null&&(Ss(e,1),i1(e,1,0))}function L0(e){for(;e===du;)du=$a[--fa],$a[fa]=null,hu=$a[--fa],$a[fa]=null;for(;e===Ds;)Ds=Ln[--Fn],Ln[Fn]=null,Si=Ln[--Fn],Ln[Fn]=null,ki=Ln[--Fn],Ln[Fn]=null}var En=null,kn=null,hr=!1,Jn=null;function s1(e,t){var r=jn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Bh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,En=e,kn=ns(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,En=e,kn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ds!==null?{id:ki,overflow:Si}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=jn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,En=e,kn=null,!0):!1;default:return!1}}function $f(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ff(e){if(hr){var t=kn;if(t){var r=t;if(!Bh(e,t)){if($f(e))throw Error(zt(418));t=ns(r.nextSibling);var n=En;t&&Bh(e,t)?s1(n,r):(e.flags=e.flags&-4097|2,hr=!1,En=e)}}else{if($f(e))throw Error(zt(418));e.flags=e.flags&-4097|2,hr=!1,En=e}}}function Ph(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;En=e}function xo(e){if(e!==En)return!1;if(!hr)return Ph(e),hr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lf(e.type,e.memoizedProps)),t&&(t=kn)){if($f(e))throw a1(),Error(zt(418));for(;t;)s1(e,t),t=ns(t.nextSibling)}if(Ph(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(zt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){kn=ns(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}kn=null}}else kn=En?ns(e.stateNode.nextSibling):null;return!0}function a1(){for(var e=kn;e;)e=ns(e.nextSibling)}function Ta(){kn=En=null,hr=!1}function F0(e){Jn===null?Jn=[e]:Jn.push(e)}var Nb=Mi.ReactCurrentBatchConfig;function rl(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(zt(309));var n=r.stateNode}if(!n)throw Error(zt(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var f=i.refs;o===null?delete f[s]:f[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(zt(284));if(!r._owner)throw Error(zt(290,e))}return e}function wo(e,t){throw e=Object.prototype.toString.call(t),Error(zt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Uh(e){var t=e._init;return t(e._payload)}function l1(e){function t(Y,pe){if(e){var se=Y.deletions;se===null?(Y.deletions=[pe],Y.flags|=16):se.push(pe)}}function r(Y,pe){if(!e)return null;for(;pe!==null;)t(Y,pe),pe=pe.sibling;return null}function n(Y,pe){for(Y=new Map;pe!==null;)pe.key!==null?Y.set(pe.key,pe):Y.set(pe.index,pe),pe=pe.sibling;return Y}function i(Y,pe){return Y=ls(Y,pe),Y.index=0,Y.sibling=null,Y}function s(Y,pe,se){return Y.index=se,e?(se=Y.alternate,se!==null?(se=se.index,se<pe?(Y.flags|=2,pe):se):(Y.flags|=2,pe)):(Y.flags|=1048576,pe)}function o(Y){return e&&Y.alternate===null&&(Y.flags|=2),Y}function f(Y,pe,se,ve){return pe===null||pe.tag!==6?(pe=i$(se,Y.mode,ve),pe.return=Y,pe):(pe=i(pe,se),pe.return=Y,pe)}function h(Y,pe,se,ve){var Z=se.type;return Z===sa?A(Y,pe,se.props.children,ve,se.key):pe!==null&&(pe.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Yi&&Uh(Z)===pe.type)?(ve=i(pe,se.props),ve.ref=rl(Y,pe,se),ve.return=Y,ve):(ve=Zo(se.type,se.key,se.props,null,Y.mode,ve),ve.ref=rl(Y,pe,se),ve.return=Y,ve)}function d(Y,pe,se,ve){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==se.containerInfo||pe.stateNode.implementation!==se.implementation?(pe=s$(se,Y.mode,ve),pe.return=Y,pe):(pe=i(pe,se.children||[]),pe.return=Y,pe)}function A(Y,pe,se,ve,Z){return pe===null||pe.tag!==7?(pe=qs(se,Y.mode,ve,Z),pe.return=Y,pe):(pe=i(pe,se),pe.return=Y,pe)}function z(Y,pe,se){if(typeof pe=="string"&&pe!==""||typeof pe=="number")return pe=i$(""+pe,Y.mode,se),pe.return=Y,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case $o:return se=Zo(pe.type,pe.key,pe.props,null,Y.mode,se),se.ref=rl(Y,null,pe),se.return=Y,se;case ia:return pe=s$(pe,Y.mode,se),pe.return=Y,pe;case Yi:var ve=pe._init;return z(Y,ve(pe._payload),se)}if(ul(pe)||Za(pe))return pe=qs(pe,Y.mode,se,null),pe.return=Y,pe;wo(Y,pe)}return null}function L(Y,pe,se,ve){var Z=pe!==null?pe.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return Z!==null?null:f(Y,pe,""+se,ve);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case $o:return se.key===Z?h(Y,pe,se,ve):null;case ia:return se.key===Z?d(Y,pe,se,ve):null;case Yi:return Z=se._init,L(Y,pe,Z(se._payload),ve)}if(ul(se)||Za(se))return Z!==null?null:A(Y,pe,se,ve,null);wo(Y,se)}return null}function ne(Y,pe,se,ve,Z){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return Y=Y.get(se)||null,f(pe,Y,""+ve,Z);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case $o:return Y=Y.get(ve.key===null?se:ve.key)||null,h(pe,Y,ve,Z);case ia:return Y=Y.get(ve.key===null?se:ve.key)||null,d(pe,Y,ve,Z);case Yi:var be=ve._init;return ne(Y,pe,se,be(ve._payload),Z)}if(ul(ve)||Za(ve))return Y=Y.get(se)||null,A(pe,Y,ve,Z,null);wo(pe,ve)}return null}function ge(Y,pe,se,ve){for(var Z=null,be=null,ue=pe,Ee=pe=0,O=null;ue!==null&&Ee<se.length;Ee++){ue.index>Ee?(O=ue,ue=null):O=ue.sibling;var Ce=L(Y,ue,se[Ee],ve);if(Ce===null){ue===null&&(ue=O);break}e&&ue&&Ce.alternate===null&&t(Y,ue),pe=s(Ce,pe,Ee),be===null?Z=Ce:be.sibling=Ce,be=Ce,ue=O}if(Ee===se.length)return r(Y,ue),hr&&Ss(Y,Ee),Z;if(ue===null){for(;Ee<se.length;Ee++)ue=z(Y,se[Ee],ve),ue!==null&&(pe=s(ue,pe,Ee),be===null?Z=ue:be.sibling=ue,be=ue);return hr&&Ss(Y,Ee),Z}for(ue=n(Y,ue);Ee<se.length;Ee++)O=ne(ue,Y,Ee,se[Ee],ve),O!==null&&(e&&O.alternate!==null&&ue.delete(O.key===null?Ee:O.key),pe=s(O,pe,Ee),be===null?Z=O:be.sibling=O,be=O);return e&&ue.forEach(function($e){return t(Y,$e)}),hr&&Ss(Y,Ee),Z}function Q(Y,pe,se,ve){var Z=Za(se);if(typeof Z!="function")throw Error(zt(150));if(se=Z.call(se),se==null)throw Error(zt(151));for(var be=Z=null,ue=pe,Ee=pe=0,O=null,Ce=se.next();ue!==null&&!Ce.done;Ee++,Ce=se.next()){ue.index>Ee?(O=ue,ue=null):O=ue.sibling;var $e=L(Y,ue,Ce.value,ve);if($e===null){ue===null&&(ue=O);break}e&&ue&&$e.alternate===null&&t(Y,ue),pe=s($e,pe,Ee),be===null?Z=$e:be.sibling=$e,be=$e,ue=O}if(Ce.done)return r(Y,ue),hr&&Ss(Y,Ee),Z;if(ue===null){for(;!Ce.done;Ee++,Ce=se.next())Ce=z(Y,Ce.value,ve),Ce!==null&&(pe=s(Ce,pe,Ee),be===null?Z=Ce:be.sibling=Ce,be=Ce);return hr&&Ss(Y,Ee),Z}for(ue=n(Y,ue);!Ce.done;Ee++,Ce=se.next())Ce=ne(ue,Y,Ee,Ce.value,ve),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?Ee:Ce.key),pe=s(Ce,pe,Ee),be===null?Z=Ce:be.sibling=Ce,be=Ce);return e&&ue.forEach(function(w){return t(Y,w)}),hr&&Ss(Y,Ee),Z}function F(Y,pe,se,ve){if(typeof se=="object"&&se!==null&&se.type===sa&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case $o:e:{for(var Z=se.key,be=pe;be!==null;){if(be.key===Z){if(Z=se.type,Z===sa){if(be.tag===7){r(Y,be.sibling),pe=i(be,se.props.children),pe.return=Y,Y=pe;break e}}else if(be.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Yi&&Uh(Z)===be.type){r(Y,be.sibling),pe=i(be,se.props),pe.ref=rl(Y,be,se),pe.return=Y,Y=pe;break e}r(Y,be);break}else t(Y,be);be=be.sibling}se.type===sa?(pe=qs(se.props.children,Y.mode,ve,se.key),pe.return=Y,Y=pe):(ve=Zo(se.type,se.key,se.props,null,Y.mode,ve),ve.ref=rl(Y,pe,se),ve.return=Y,Y=ve)}return o(Y);case ia:e:{for(be=se.key;pe!==null;){if(pe.key===be)if(pe.tag===4&&pe.stateNode.containerInfo===se.containerInfo&&pe.stateNode.implementation===se.implementation){r(Y,pe.sibling),pe=i(pe,se.children||[]),pe.return=Y,Y=pe;break e}else{r(Y,pe);break}else t(Y,pe);pe=pe.sibling}pe=s$(se,Y.mode,ve),pe.return=Y,Y=pe}return o(Y);case Yi:return be=se._init,F(Y,pe,be(se._payload),ve)}if(ul(se))return ge(Y,pe,se,ve);if(Za(se))return Q(Y,pe,se,ve);wo(Y,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,pe!==null&&pe.tag===6?(r(Y,pe.sibling),pe=i(pe,se),pe.return=Y,Y=pe):(r(Y,pe),pe=i$(se,Y.mode,ve),pe.return=Y,Y=pe),o(Y)):r(Y,pe)}return F}var Ra=l1(!0),o1=l1(!1),pu=ms(null),_u=null,da=null,j0=null;function B0(){j0=da=_u=null}function P0(e){var t=pu.current;fr(pu),e._currentValue=t}function df(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function xa(e,t){_u=e,j0=da=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function Vn(e){var t=e._currentValue;if(j0!==e)if(e={context:e,memoizedValue:t,next:null},da===null){if(_u===null)throw Error(zt(308));da=e,_u.dependencies={lanes:0,firstContext:e}}else da=da.next=e;return t}var Rs=null;function U0(e){Rs===null?Rs=[e]:Rs.push(e)}function u1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,U0(t)):(r.next=i.next,i.next=r),t.interleaved=r,zi(e,n)}function zi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Gi=!1;function H0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function is(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,rr&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,zi(e,r)}return i=n.interleaved,i===null?(t.next=t,U0(n)):(t.next=i.next,i.next=t),n.interleaved=t,zi(e,r)}function Wo(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,C0(e,r)}}function Hh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function mu(e,t,r,n){var i=e.updateQueue;Gi=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var h=f,d=h.next;h.next=null,o===null?s=d:o.next=d,o=h;var A=e.alternate;A!==null&&(A=A.updateQueue,f=A.lastBaseUpdate,f!==o&&(f===null?A.firstBaseUpdate=d:f.next=d,A.lastBaseUpdate=h))}if(s!==null){var z=i.baseState;o=0,A=d=h=null,f=s;do{var L=f.lane,ne=f.eventTime;if((n&L)===L){A!==null&&(A=A.next={eventTime:ne,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var ge=e,Q=f;switch(L=t,ne=r,Q.tag){case 1:if(ge=Q.payload,typeof ge=="function"){z=ge.call(ne,z,L);break e}z=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Q.payload,L=typeof ge=="function"?ge.call(ne,z,L):ge,L==null)break e;z=br({},z,L);break e;case 2:Gi=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,L=i.effects,L===null?i.effects=[f]:L.push(f))}else ne={eventTime:ne,lane:L,tag:f.tag,payload:f.payload,callback:f.callback,next:null},A===null?(d=A=ne,h=z):A=A.next=ne,o|=L;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;L=f,f=L.next,L.next=null,i.lastBaseUpdate=L,i.shared.pending=null}}while(!0);if(A===null&&(h=z),i.baseState=h,i.firstBaseUpdate=d,i.lastBaseUpdate=A,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Fs|=o,e.lanes=o,e.memoizedState=z}}function Vh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(zt(191,i));i.call(n)}}}var ro={},di=ms(ro),jl=ms(ro),Bl=ms(ro);function zs(e){if(e===ro)throw Error(zt(174));return e}function V0(e,t){switch(ur(Bl,t),ur(jl,e),ur(di,ro),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Y$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Y$(t,e)}fr(di),ur(di,t)}function za(){fr(di),fr(jl),fr(Bl)}function $1(e){zs(Bl.current);var t=zs(di.current),r=Y$(t,e.type);t!==r&&(ur(jl,e),ur(di,r))}function W0(e){jl.current===e&&(fr(di),fr(jl))}var gr=ms(0);function gu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jc=[];function Y0(){for(var e=0;e<Jc.length;e++)Jc[e]._workInProgressVersionPrimary=null;Jc.length=0}var Yo=Mi.ReactCurrentDispatcher,Oc=Mi.ReactCurrentBatchConfig,Ls=0,yr=null,Mr=null,Ur=null,vu=!1,bl=!1,Pl=0,Ib=0;function Qr(){throw Error(zt(321))}function G0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ni(e[r],t[r]))return!1;return!0}function K0(e,t,r,n,i,s){if(Ls=s,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=e===null||e.memoizedState===null?Lb:Fb,e=r(n,i),bl){s=0;do{if(bl=!1,Pl=0,25<=s)throw Error(zt(301));s+=1,Ur=Mr=null,t.updateQueue=null,Yo.current=jb,e=r(n,i)}while(bl)}if(Yo.current=yu,t=Mr!==null&&Mr.next!==null,Ls=0,Ur=Mr=yr=null,vu=!1,t)throw Error(zt(300));return e}function X0(){var e=Pl!==0;return Pl=0,e}function ai(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?yr.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function Wn(){if(Mr===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=Mr.next;var t=Ur===null?yr.memoizedState:Ur.next;if(t!==null)Ur=t,Mr=e;else{if(e===null)throw Error(zt(310));Mr=e,e={memoizedState:Mr.memoizedState,baseState:Mr.baseState,baseQueue:Mr.baseQueue,queue:Mr.queue,next:null},Ur===null?yr.memoizedState=Ur=e:Ur=Ur.next=e}return Ur}function Ul(e,t){return typeof t=="function"?t(e):t}function e$(e){var t=Wn(),r=t.queue;if(r===null)throw Error(zt(311));r.lastRenderedReducer=e;var n=Mr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var f=o=null,h=null,d=s;do{var A=d.lane;if((Ls&A)===A)h!==null&&(h=h.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var z={lane:A,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};h===null?(f=h=z,o=n):h=h.next=z,yr.lanes|=A,Fs|=A}d=d.next}while(d!==null&&d!==s);h===null?o=n:h.next=f,ni(n,t.memoizedState)||(mn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=h,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,yr.lanes|=s,Fs|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function t$(e){var t=Wn(),r=t.queue;if(r===null)throw Error(zt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);ni(s,t.memoizedState)||(mn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function f1(){}function d1(e,t){var r=yr,n=Wn(),i=t(),s=!ni(n.memoizedState,i);if(s&&(n.memoizedState=i,mn=!0),n=n.queue,Q0(_1.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Ur!==null&&Ur.memoizedState.tag&1){if(r.flags|=2048,Hl(9,p1.bind(null,r,n,i,t),void 0,null),Hr===null)throw Error(zt(349));Ls&30||h1(r,t,i)}return i}function h1(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=yr.updateQueue,t===null?(t={lastEffect:null,stores:null},yr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function p1(e,t,r,n){t.value=r,t.getSnapshot=n,m1(t)&&g1(e)}function _1(e,t,r){return r(function(){m1(t)&&g1(e)})}function m1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ni(e,r)}catch{return!0}}function g1(e){var t=zi(e,1);t!==null&&ri(t,e,1,-1)}function Wh(e){var t=ai();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ul,lastRenderedState:e},t.queue=e,e=e.dispatch=Db.bind(null,yr,e),[t.memoizedState,e]}function Hl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=yr.updateQueue,t===null?(t={lastEffect:null,stores:null},yr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function v1(){return Wn().memoizedState}function Go(e,t,r,n){var i=ai();yr.flags|=e,i.memoizedState=Hl(1|t,r,void 0,n===void 0?null:n)}function Vu(e,t,r,n){var i=Wn();n=n===void 0?null:n;var s=void 0;if(Mr!==null){var o=Mr.memoizedState;if(s=o.destroy,n!==null&&G0(n,o.deps)){i.memoizedState=Hl(t,r,s,n);return}}yr.flags|=e,i.memoizedState=Hl(1|t,r,s,n)}function Yh(e,t){return Go(8390656,8,e,t)}function Q0(e,t){return Vu(2048,8,e,t)}function y1(e,t){return Vu(4,2,e,t)}function b1(e,t){return Vu(4,4,e,t)}function x1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function w1(e,t,r){return r=r!=null?r.concat([e]):null,Vu(4,4,x1.bind(null,t,e),r)}function Z0(){}function k1(e,t){var r=Wn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&G0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function S1(e,t){var r=Wn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&G0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function E1(e,t,r){return Ls&21?(ni(r,t)||(r=zm(),yr.lanes|=r,Fs|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mn=!0),e.memoizedState=r)}function qb(e,t){var r=ar;ar=r!==0&&4>r?r:4,e(!0);var n=Oc.transition;Oc.transition={};try{e(!1),t()}finally{ar=r,Oc.transition=n}}function A1(){return Wn().memoizedState}function Mb(e,t,r){var n=as(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},C1(e))T1(t,r);else if(r=u1(e,t,r,n),r!==null){var i=cn();ri(r,e,n,i),R1(r,t,n)}}function Db(e,t,r){var n=as(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(C1(e))T1(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,f=s(o,r);if(i.hasEagerState=!0,i.eagerState=f,ni(f,o)){var h=t.interleaved;h===null?(i.next=i,U0(t)):(i.next=h.next,h.next=i),t.interleaved=i;return}}catch{}finally{}r=u1(e,t,i,n),r!==null&&(i=cn(),ri(r,e,n,i),R1(r,t,n))}}function C1(e){var t=e.alternate;return e===yr||t!==null&&t===yr}function T1(e,t){bl=vu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function R1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,C0(e,r)}}var yu={readContext:Vn,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},Lb={readContext:Vn,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:Vn,useEffect:Yh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Go(4194308,4,x1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Go(4194308,4,e,t)},useInsertionEffect:function(e,t){return Go(4,2,e,t)},useMemo:function(e,t){var r=ai();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ai();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Mb.bind(null,yr,e),[n.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:Wh,useDebugValue:Z0,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=Wh(!1),t=e[0];return e=qb.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yr,i=ai();if(hr){if(r===void 0)throw Error(zt(407));r=r()}else{if(r=t(),Hr===null)throw Error(zt(349));Ls&30||h1(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Yh(_1.bind(null,n,s,e),[e]),n.flags|=2048,Hl(9,p1.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=ai(),t=Hr.identifierPrefix;if(hr){var r=Si,n=ki;r=(n&~(1<<32-ti(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Pl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Ib++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Fb={readContext:Vn,useCallback:k1,useContext:Vn,useEffect:Q0,useImperativeHandle:w1,useInsertionEffect:y1,useLayoutEffect:b1,useMemo:S1,useReducer:e$,useRef:v1,useState:function(){return e$(Ul)},useDebugValue:Z0,useDeferredValue:function(e){var t=Wn();return E1(t,Mr.memoizedState,e)},useTransition:function(){var e=e$(Ul)[0],t=Wn().memoizedState;return[e,t]},useMutableSource:f1,useSyncExternalStore:d1,useId:A1,unstable_isNewReconciler:!1},jb={readContext:Vn,useCallback:k1,useContext:Vn,useEffect:Q0,useImperativeHandle:w1,useInsertionEffect:y1,useLayoutEffect:b1,useMemo:S1,useReducer:t$,useRef:v1,useState:function(){return t$(Ul)},useDebugValue:Z0,useDeferredValue:function(e){var t=Wn();return Mr===null?t.memoizedState=e:E1(t,Mr.memoizedState,e)},useTransition:function(){var e=t$(Ul)[0],t=Wn().memoizedState;return[e,t]},useMutableSource:f1,useSyncExternalStore:d1,useId:A1,unstable_isNewReconciler:!1};function Qn(e,t){if(e&&e.defaultProps){t=br({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function hf(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:br({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Wu={isMounted:function(e){return(e=e._reactInternals)?Hs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=cn(),i=as(e),s=Ei(n,i);s.payload=t,r!=null&&(s.callback=r),t=is(e,s,i),t!==null&&(ri(t,e,i,n),Wo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=cn(),i=as(e),s=Ei(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=is(e,s,i),t!==null&&(ri(t,e,i,n),Wo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=cn(),n=as(e),i=Ei(r,n);i.tag=2,t!=null&&(i.callback=t),t=is(e,i,n),t!==null&&(ri(t,e,n,r),Wo(t,e,n))}};function Gh(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Ml(r,n)||!Ml(i,s):!0}function z1(e,t,r){var n=!1,i=us,s=t.contextType;return typeof s=="object"&&s!==null?s=Vn(s):(i=vn(t)?Ms:tn.current,n=t.contextTypes,s=(n=n!=null)?Ca(e,i):us),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Kh(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Wu.enqueueReplaceState(t,t.state,null)}function pf(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},H0(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Vn(s):(s=vn(t)?Ms:tn.current,i.context=Ca(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(hf(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Wu.enqueueReplaceState(i,i.state,null),mu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Na(e,t){try{var r="",n=t;do r+=d2(n),n=n.return;while(n);var i=r}catch(s){i=`
40
+ Error generating stack: `+s.message+`
41
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function r$(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function _f(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Bb=typeof WeakMap=="function"?WeakMap:Map;function N1(e,t,r){r=Ei(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){xu||(xu=!0,Ef=n),_f(e,t)},r}function I1(e,t,r){r=Ei(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){_f(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){_f(e,t),typeof n!="function"&&(ss===null?ss=new Set([this]):ss.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Xh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Bb;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=e4.bind(null,e,t,r),t.then(e,e))}function Qh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zh(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ei(-1,1),t.tag=2,is(r,t,1))),r.lanes|=1),e)}var Pb=Mi.ReactCurrentOwner,mn=!1;function an(e,t,r,n){t.child=e===null?o1(t,null,r,n):Ra(t,e.child,r,n)}function Jh(e,t,r,n,i){r=r.render;var s=t.ref;return xa(t,i),n=K0(e,t,r,n,s,i),r=X0(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ni(e,t,i)):(hr&&r&&D0(t),t.flags|=1,an(e,t,n,i),t.child)}function Oh(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!sd(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,q1(e,t,s,n,i)):(e=Zo(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Ml,r(o,n)&&e.ref===t.ref)return Ni(e,t,i)}return t.flags|=1,e=ls(s,n),e.ref=t.ref,e.return=t,t.child=e}function q1(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Ml(s,n)&&e.ref===t.ref)if(mn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,Ni(e,t,i)}return mf(e,t,r,n,i)}function M1(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(pa,xn),xn|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ur(pa,xn),xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(pa,xn),xn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(pa,xn),xn|=n;return an(e,t,i,r),t.child}function D1(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function mf(e,t,r,n,i){var s=vn(r)?Ms:tn.current;return s=Ca(t,s),xa(t,i),r=K0(e,t,r,n,s,i),n=X0(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ni(e,t,i)):(hr&&n&&D0(t),t.flags|=1,an(e,t,r,i),t.child)}function ep(e,t,r,n,i){if(vn(r)){var s=!0;fu(t)}else s=!1;if(xa(t,i),t.stateNode===null)Ko(e,t),z1(t,r,n),pf(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,f=t.memoizedProps;o.props=f;var h=o.context,d=r.contextType;typeof d=="object"&&d!==null?d=Vn(d):(d=vn(r)?Ms:tn.current,d=Ca(t,d));var A=r.getDerivedStateFromProps,z=typeof A=="function"||typeof o.getSnapshotBeforeUpdate=="function";z||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==n||h!==d)&&Kh(t,o,n,d),Gi=!1;var L=t.memoizedState;o.state=L,mu(t,n,o,i),h=t.memoizedState,f!==n||L!==h||gn.current||Gi?(typeof A=="function"&&(hf(t,r,A,n),h=t.memoizedState),(f=Gi||Gh(t,r,f,n,L,h,d))?(z||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=h),o.props=n,o.state=h,o.context=d,n=f):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,c1(e,t),f=t.memoizedProps,d=t.type===t.elementType?f:Qn(t.type,f),o.props=d,z=t.pendingProps,L=o.context,h=r.contextType,typeof h=="object"&&h!==null?h=Vn(h):(h=vn(r)?Ms:tn.current,h=Ca(t,h));var ne=r.getDerivedStateFromProps;(A=typeof ne=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==z||L!==h)&&Kh(t,o,n,h),Gi=!1,L=t.memoizedState,o.state=L,mu(t,n,o,i);var ge=t.memoizedState;f!==z||L!==ge||gn.current||Gi?(typeof ne=="function"&&(hf(t,r,ne,n),ge=t.memoizedState),(d=Gi||Gh(t,r,d,n,L,ge,h)||!1)?(A||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,ge,h),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,ge,h)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||f===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=ge),o.props=n,o.state=ge,o.context=h,n=d):(typeof o.componentDidUpdate!="function"||f===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),n=!1)}return gf(e,t,r,n,s,i)}function gf(e,t,r,n,i,s){D1(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&jh(t,r,!1),Ni(e,t,s);n=t.stateNode,Pb.current=t;var f=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Ra(t,e.child,null,s),t.child=Ra(t,null,f,s)):an(e,t,f,s),t.memoizedState=n.state,i&&jh(t,r,!0),t.child}function L1(e){var t=e.stateNode;t.pendingContext?Fh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Fh(e,t.context,!1),V0(e,t.containerInfo)}function tp(e,t,r,n,i){return Ta(),F0(i),t.flags|=256,an(e,t,r,n),t.child}var vf={dehydrated:null,treeContext:null,retryLane:0};function yf(e){return{baseLanes:e,cachePool:null,transitions:null}}function F1(e,t,r){var n=t.pendingProps,i=gr.current,s=!1,o=(t.flags&128)!==0,f;if((f=o)||(f=e!==null&&e.memoizedState===null?!1:(i&2)!==0),f?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ur(gr,i&1),e===null)return ff(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ku(o,n,0,null),e=qs(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=yf(r),t.memoizedState=vf,e):J0(t,o));if(i=e.memoizedState,i!==null&&(f=i.dehydrated,f!==null))return Ub(e,t,o,n,f,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,f=i.sibling;var h={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=h,t.deletions=null):(n=ls(i,h),n.subtreeFlags=i.subtreeFlags&14680064),f!==null?s=ls(f,s):(s=qs(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?yf(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=vf,n}return s=e.child,e=s.sibling,n=ls(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function J0(e,t){return t=Ku({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ko(e,t,r,n){return n!==null&&F0(n),Ra(t,e.child,null,r),e=J0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ub(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=r$(Error(zt(422))),ko(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=Ku({mode:"visible",children:n.children},i,0,null),s=qs(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Ra(t,e.child,null,o),t.child.memoizedState=yf(o),t.memoizedState=vf,s);if(!(t.mode&1))return ko(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var f=n.dgst;return n=f,s=Error(zt(419)),n=r$(s,n,void 0),ko(e,t,o,n)}if(f=(o&e.childLanes)!==0,mn||f){if(n=Hr,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,zi(e,i),ri(n,e,i,-1))}return id(),n=r$(Error(zt(421))),ko(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=t4.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,kn=ns(i.nextSibling),En=t,hr=!0,Jn=null,e!==null&&(Ln[Fn++]=ki,Ln[Fn++]=Si,Ln[Fn++]=Ds,ki=e.id,Si=e.overflow,Ds=t),t=J0(t,n.children),t.flags|=4096,t)}function rp(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),df(e.return,t,r)}function n$(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function j1(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(an(e,t,n.children,r),n=gr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rp(e,r,t);else if(e.tag===19)rp(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ur(gr,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&gu(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),n$(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gu(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}n$(t,!0,r,null,s);break;case"together":n$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ko(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ni(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(zt(153));if(t.child!==null){for(e=t.child,r=ls(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ls(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Hb(e,t,r){switch(t.tag){case 3:L1(t),Ta();break;case 5:$1(t);break;case 1:vn(t.type)&&fu(t);break;case 4:V0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(pu,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ur(gr,gr.current&1),t.flags|=128,null):r&t.child.childLanes?F1(e,t,r):(ur(gr,gr.current&1),e=Ni(e,t,r),e!==null?e.sibling:null);ur(gr,gr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return j1(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ur(gr,gr.current),n)break;return null;case 22:case 23:return t.lanes=0,M1(e,t,r)}return Ni(e,t,r)}var B1,bf,P1,U1;B1=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};bf=function(){};P1=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,zs(di.current);var s=null;switch(r){case"input":i=U$(e,i),n=U$(e,n),s=[];break;case"select":i=br({},i,{value:void 0}),n=br({},n,{value:void 0}),s=[];break;case"textarea":i=W$(e,i),n=W$(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=cu)}G$(r,n);var o;r=null;for(d in i)if(!n.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var f=i[d];for(o in f)f.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Cl.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in n){var h=n[d];if(f=i?.[d],n.hasOwnProperty(d)&&h!==f&&(h!=null||f!=null))if(d==="style")if(f){for(o in f)!f.hasOwnProperty(o)||h&&h.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in h)h.hasOwnProperty(o)&&f[o]!==h[o]&&(r||(r={}),r[o]=h[o])}else r||(s||(s=[]),s.push(d,r)),r=h;else d==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,f=f?f.__html:void 0,h!=null&&f!==h&&(s=s||[]).push(d,h)):d==="children"?typeof h!="string"&&typeof h!="number"||(s=s||[]).push(d,""+h):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Cl.hasOwnProperty(d)?(h!=null&&d==="onScroll"&&cr("scroll",e),s||f===h||(s=[])):(s=s||[]).push(d,h))}r&&(s=s||[]).push("style",r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};U1=function(e,t,r,n){r!==n&&(t.flags|=4)};function nl(e,t){if(!hr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Zr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Vb(e,t,r){var n=t.pendingProps;switch(L0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zr(t),null;case 1:return vn(t.type)&&$u(),Zr(t),null;case 3:return n=t.stateNode,za(),fr(gn),fr(tn),Y0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(xo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jn!==null&&(Tf(Jn),Jn=null))),bf(e,t),Zr(t),null;case 5:W0(t);var i=zs(Bl.current);if(r=t.type,e!==null&&t.stateNode!=null)P1(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(zt(166));return Zr(t),null}if(e=zs(di.current),xo(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[oi]=t,n[Fl]=s,e=(t.mode&1)!==0,r){case"dialog":cr("cancel",n),cr("close",n);break;case"iframe":case"object":case"embed":cr("load",n);break;case"video":case"audio":for(i=0;i<$l.length;i++)cr($l[i],n);break;case"source":cr("error",n);break;case"img":case"image":case"link":cr("error",n),cr("load",n);break;case"details":cr("toggle",n);break;case"input":$h(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":dh(n,s),cr("invalid",n)}G$(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var f=s[o];o==="children"?typeof f=="string"?n.textContent!==f&&(s.suppressHydrationWarning!==!0&&bo(n.textContent,f,e),i=["children",f]):typeof f=="number"&&n.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&bo(n.textContent,f,e),i=["children",""+f]):Cl.hasOwnProperty(o)&&f!=null&&o==="onScroll"&&cr("scroll",n)}switch(r){case"input":fo(n),fh(n,s,!0);break;case"textarea":fo(n),hh(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=cu)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_m(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[oi]=t,e[Fl]=n,B1(e,t,!1,!1),t.stateNode=e;e:{switch(o=K$(r,n),r){case"dialog":cr("cancel",e),cr("close",e),i=n;break;case"iframe":case"object":case"embed":cr("load",e),i=n;break;case"video":case"audio":for(i=0;i<$l.length;i++)cr($l[i],e);i=n;break;case"source":cr("error",e),i=n;break;case"img":case"image":case"link":cr("error",e),cr("load",e),i=n;break;case"details":cr("toggle",e),i=n;break;case"input":$h(e,n),i=U$(e,n),cr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=br({},n,{value:void 0}),cr("invalid",e);break;case"textarea":dh(e,n),i=W$(e,n),cr("invalid",e);break;default:i=n}G$(r,i),f=i;for(s in f)if(f.hasOwnProperty(s)){var h=f[s];s==="style"?vm(e,h):s==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&mm(e,h)):s==="children"?typeof h=="string"?(r!=="textarea"||h!=="")&&Tl(e,h):typeof h=="number"&&Tl(e,""+h):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Cl.hasOwnProperty(s)?h!=null&&s==="onScroll"&&cr("scroll",e):h!=null&&x0(e,s,h,o))}switch(r){case"input":fo(e),fh(e,n,!1);break;case"textarea":fo(e),hh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+os(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?ga(e,!!n.multiple,s,!1):n.defaultValue!=null&&ga(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=cu)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Zr(t),null;case 6:if(e&&t.stateNode!=null)U1(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(zt(166));if(r=zs(Bl.current),zs(di.current),xo(t)){if(n=t.stateNode,r=t.memoizedProps,n[oi]=t,(s=n.nodeValue!==r)&&(e=En,e!==null))switch(e.tag){case 3:bo(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bo(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[oi]=t,t.stateNode=n}return Zr(t),null;case 13:if(fr(gr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(hr&&kn!==null&&t.mode&1&&!(t.flags&128))a1(),Ta(),t.flags|=98560,s=!1;else if(s=xo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(zt(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(zt(317));s[oi]=t}else Ta(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zr(t),s=!1}else Jn!==null&&(Tf(Jn),Jn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||gr.current&1?Lr===0&&(Lr=3):id())),t.updateQueue!==null&&(t.flags|=4),Zr(t),null);case 4:return za(),bf(e,t),e===null&&Dl(t.stateNode.containerInfo),Zr(t),null;case 10:return P0(t.type._context),Zr(t),null;case 17:return vn(t.type)&&$u(),Zr(t),null;case 19:if(fr(gr),s=t.memoizedState,s===null)return Zr(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)nl(s,!1);else{if(Lr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=gu(e),o!==null){for(t.flags|=128,nl(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ur(gr,gr.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ar()>Ia&&(t.flags|=128,n=!0,nl(s,!1),t.lanes=4194304)}else{if(!n)if(e=gu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),nl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!hr)return Zr(t),null}else 2*Ar()-s.renderingStartTime>Ia&&r!==1073741824&&(t.flags|=128,n=!0,nl(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ar(),t.sibling=null,r=gr.current,ur(gr,n?r&1|2:r&1),t):(Zr(t),null);case 22:case 23:return nd(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?xn&1073741824&&(Zr(t),t.subtreeFlags&6&&(t.flags|=8192)):Zr(t),null;case 24:return null;case 25:return null}throw Error(zt(156,t.tag))}function Wb(e,t){switch(L0(t),t.tag){case 1:return vn(t.type)&&$u(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),fr(gn),fr(tn),Y0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return W0(t),null;case 13:if(fr(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(zt(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fr(gr),null;case 4:return za(),null;case 10:return P0(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var So=!1,Jr=!1,Yb=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function ha(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){wr(e,t,n)}else r.current=null}function xf(e,t,r){try{r()}catch(n){wr(e,t,n)}}var np=!1;function Gb(e,t){if(sf=lu,e=Gm(),M0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,f=-1,h=-1,d=0,A=0,z=e,L=null;t:for(;;){for(var ne;z!==r||i!==0&&z.nodeType!==3||(f=o+i),z!==s||n!==0&&z.nodeType!==3||(h=o+n),z.nodeType===3&&(o+=z.nodeValue.length),(ne=z.firstChild)!==null;)L=z,z=ne;for(;;){if(z===e)break t;if(L===r&&++d===i&&(f=o),L===s&&++A===n&&(h=o),(ne=z.nextSibling)!==null)break;z=L,L=z.parentNode}z=ne}r=f===-1||h===-1?null:{start:f,end:h}}else r=null}r=r||{start:0,end:0}}else r=null;for(af={focusedElem:e,selectionRange:r},lu=!1,Ft=t;Ft!==null;)if(t=Ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ft=e;else for(;Ft!==null;){t=Ft;try{var ge=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var Q=ge.memoizedProps,F=ge.memoizedState,Y=t.stateNode,pe=Y.getSnapshotBeforeUpdate(t.elementType===t.type?Q:Qn(t.type,Q),F);Y.__reactInternalSnapshotBeforeUpdate=pe}break;case 3:var se=t.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(zt(163))}}catch(ve){wr(t,t.return,ve)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return ge=np,np=!1,ge}function xl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&xf(t,r,s)}i=i.next}while(i!==n)}}function Yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function wf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function H1(e){var t=e.alternate;t!==null&&(e.alternate=null,H1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[Fl],delete t[uf],delete t[Tb],delete t[Rb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function V1(e){return e.tag===5||e.tag===3||e.tag===4}function ip(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=cu));else if(n!==4&&(e=e.child,e!==null))for(kf(e,t,r),e=e.sibling;e!==null;)kf(e,t,r),e=e.sibling}function Sf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Sf(e,t,r),e=e.sibling;e!==null;)Sf(e,t,r),e=e.sibling}var Wr=null,Zn=!1;function Bi(e,t,r){for(r=r.child;r!==null;)W1(e,t,r),r=r.sibling}function W1(e,t,r){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(Fu,r)}catch{}switch(r.tag){case 5:Jr||ha(r,t);case 6:var n=Wr,i=Zn;Wr=null,Bi(e,t,r),Wr=n,Zn=i,Wr!==null&&(Zn?(e=Wr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wr.removeChild(r.stateNode));break;case 18:Wr!==null&&(Zn?(e=Wr,r=r.stateNode,e.nodeType===8?Qc(e.parentNode,r):e.nodeType===1&&Qc(e,r),Il(e)):Qc(Wr,r.stateNode));break;case 4:n=Wr,i=Zn,Wr=r.stateNode.containerInfo,Zn=!0,Bi(e,t,r),Wr=n,Zn=i;break;case 0:case 11:case 14:case 15:if(!Jr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&xf(r,t,o),i=i.next}while(i!==n)}Bi(e,t,r);break;case 1:if(!Jr&&(ha(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(f){wr(r,t,f)}Bi(e,t,r);break;case 21:Bi(e,t,r);break;case 22:r.mode&1?(Jr=(n=Jr)||r.memoizedState!==null,Bi(e,t,r),Jr=n):Bi(e,t,r);break;default:Bi(e,t,r)}}function sp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Yb),t.forEach(function(n){var i=r4.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Kn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,f=o;e:for(;f!==null;){switch(f.tag){case 5:Wr=f.stateNode,Zn=!1;break e;case 3:Wr=f.stateNode.containerInfo,Zn=!0;break e;case 4:Wr=f.stateNode.containerInfo,Zn=!0;break e}f=f.return}if(Wr===null)throw Error(zt(160));W1(s,o,i),Wr=null,Zn=!1;var h=i.alternate;h!==null&&(h.return=null),i.return=null}catch(d){wr(i,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Y1(t,e),t=t.sibling}function Y1(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kn(t,e),ii(e),n&4){try{xl(3,e,e.return),Yu(3,e)}catch(Q){wr(e,e.return,Q)}try{xl(5,e,e.return)}catch(Q){wr(e,e.return,Q)}}break;case 1:Kn(t,e),ii(e),n&512&&r!==null&&ha(r,r.return);break;case 5:if(Kn(t,e),ii(e),n&512&&r!==null&&ha(r,r.return),e.flags&32){var i=e.stateNode;try{Tl(i,"")}catch(Q){wr(e,e.return,Q)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,f=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{f==="input"&&s.type==="radio"&&s.name!=null&&hm(i,s),K$(f,o);var d=K$(f,s);for(o=0;o<h.length;o+=2){var A=h[o],z=h[o+1];A==="style"?vm(i,z):A==="dangerouslySetInnerHTML"?mm(i,z):A==="children"?Tl(i,z):x0(i,A,z,d)}switch(f){case"input":H$(i,s);break;case"textarea":pm(i,s);break;case"select":var L=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var ne=s.value;ne!=null?ga(i,!!s.multiple,ne,!1):L!==!!s.multiple&&(s.defaultValue!=null?ga(i,!!s.multiple,s.defaultValue,!0):ga(i,!!s.multiple,s.multiple?[]:"",!1))}i[Fl]=s}catch(Q){wr(e,e.return,Q)}}break;case 6:if(Kn(t,e),ii(e),n&4){if(e.stateNode===null)throw Error(zt(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(Q){wr(e,e.return,Q)}}break;case 3:if(Kn(t,e),ii(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Il(t.containerInfo)}catch(Q){wr(e,e.return,Q)}break;case 4:Kn(t,e),ii(e);break;case 13:Kn(t,e),ii(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(td=Ar())),n&4&&sp(e);break;case 22:if(A=r!==null&&r.memoizedState!==null,e.mode&1?(Jr=(d=Jr)||A,Kn(t,e),Jr=d):Kn(t,e),ii(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!A&&e.mode&1)for(Ft=e,A=e.child;A!==null;){for(z=Ft=A;Ft!==null;){switch(L=Ft,ne=L.child,L.tag){case 0:case 11:case 14:case 15:xl(4,L,L.return);break;case 1:ha(L,L.return);var ge=L.stateNode;if(typeof ge.componentWillUnmount=="function"){n=L,r=L.return;try{t=n,ge.props=t.memoizedProps,ge.state=t.memoizedState,ge.componentWillUnmount()}catch(Q){wr(n,r,Q)}}break;case 5:ha(L,L.return);break;case 22:if(L.memoizedState!==null){lp(z);continue}}ne!==null?(ne.return=L,Ft=ne):lp(z)}A=A.sibling}e:for(A=null,z=e;;){if(z.tag===5){if(A===null){A=z;try{i=z.stateNode,d?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=z.stateNode,h=z.memoizedProps.style,o=h!=null&&h.hasOwnProperty("display")?h.display:null,f.style.display=gm("display",o))}catch(Q){wr(e,e.return,Q)}}}else if(z.tag===6){if(A===null)try{z.stateNode.nodeValue=d?"":z.memoizedProps}catch(Q){wr(e,e.return,Q)}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===e)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===e)break e;for(;z.sibling===null;){if(z.return===null||z.return===e)break e;A===z&&(A=null),z=z.return}A===z&&(A=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:Kn(t,e),ii(e),n&4&&sp(e);break;case 21:break;default:Kn(t,e),ii(e)}}function ii(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(V1(r)){var n=r;break e}r=r.return}throw Error(zt(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Tl(i,""),n.flags&=-33);var s=ip(e);Sf(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,f=ip(e);kf(e,f,o);break;default:throw Error(zt(161))}}catch(h){wr(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kb(e,t,r){Ft=e,G1(e)}function G1(e,t,r){for(var n=(e.mode&1)!==0;Ft!==null;){var i=Ft,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||So;if(!o){var f=i.alternate,h=f!==null&&f.memoizedState!==null||Jr;f=So;var d=Jr;if(So=o,(Jr=h)&&!d)for(Ft=i;Ft!==null;)o=Ft,h=o.child,o.tag===22&&o.memoizedState!==null?op(i):h!==null?(h.return=o,Ft=h):op(i);for(;s!==null;)Ft=s,G1(s),s=s.sibling;Ft=i,So=f,Jr=d}ap(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):ap(e)}}function ap(e){for(;Ft!==null;){var t=Ft;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Jr||Yu(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Jr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Qn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Vh(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Vh(t,o,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var A=d.memoizedState;if(A!==null){var z=A.dehydrated;z!==null&&Il(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(zt(163))}Jr||t.flags&512&&wf(t)}catch(L){wr(t,t.return,L)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function lp(e){for(;Ft!==null;){var t=Ft;if(t===e){Ft=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function op(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Yu(4,t)}catch(h){wr(t,r,h)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(h){wr(t,i,h)}}var s=t.return;try{wf(t)}catch(h){wr(t,s,h)}break;case 5:var o=t.return;try{wf(t)}catch(h){wr(t,o,h)}}}catch(h){wr(t,t.return,h)}if(t===e){Ft=null;break}var f=t.sibling;if(f!==null){f.return=t.return,Ft=f;break}Ft=t.return}}var Xb=Math.ceil,bu=Mi.ReactCurrentDispatcher,O0=Mi.ReactCurrentOwner,Pn=Mi.ReactCurrentBatchConfig,rr=0,Hr=null,Rr=null,Gr=0,xn=0,pa=ms(0),Lr=0,Vl=null,Fs=0,Gu=0,ed=0,wl=null,_n=null,td=0,Ia=1/0,bi=null,xu=!1,Ef=null,ss=null,Eo=!1,Ji=null,wu=0,kl=0,Af=null,Xo=-1,Qo=0;function cn(){return rr&6?Ar():Xo!==-1?Xo:Xo=Ar()}function as(e){return e.mode&1?rr&2&&Gr!==0?Gr&-Gr:Nb.transition!==null?(Qo===0&&(Qo=zm()),Qo):(e=ar,e!==0||(e=window.event,e=e===void 0?16:Fm(e.type)),e):1}function ri(e,t,r,n){if(50<kl)throw kl=0,Af=null,Error(zt(185));Ol(e,r,n),(!(rr&2)||e!==Hr)&&(e===Hr&&(!(rr&2)&&(Gu|=r),Lr===4&&Xi(e,Gr)),yn(e,n),r===1&&rr===0&&!(t.mode&1)&&(Ia=Ar()+500,Hu&&gs()))}function yn(e,t){var r=e.callbackNode;N2(e,t);var n=au(e,e===Hr?Gr:0);if(n===0)r!==null&&mh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&mh(r),t===1)e.tag===0?zb(up.bind(null,e)):n1(up.bind(null,e)),Ab(function(){!(rr&6)&&gs()}),r=null;else{switch(Nm(n)){case 1:r=A0;break;case 4:r=Tm;break;case 16:r=su;break;case 536870912:r=Rm;break;default:r=su}r=tg(r,K1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function K1(e,t){if(Xo=-1,Qo=0,rr&6)throw Error(zt(327));var r=e.callbackNode;if(wa()&&e.callbackNode!==r)return null;var n=au(e,e===Hr?Gr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ku(e,n);else{t=n;var i=rr;rr|=2;var s=Q1();(Hr!==e||Gr!==t)&&(bi=null,Ia=Ar()+500,Is(e,t));do try{Jb();break}catch(f){X1(e,f)}while(!0);B0(),bu.current=s,rr=i,Rr!==null?t=0:(Hr=null,Gr=0,t=Lr)}if(t!==0){if(t===2&&(i=O$(e),i!==0&&(n=i,t=Cf(e,i))),t===1)throw r=Vl,Is(e,0),Xi(e,n),yn(e,Ar()),r;if(t===6)Xi(e,n);else{if(i=e.current.alternate,!(n&30)&&!Qb(i)&&(t=ku(e,n),t===2&&(s=O$(e),s!==0&&(n=s,t=Cf(e,s))),t===1))throw r=Vl,Is(e,0),Xi(e,n),yn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(zt(345));case 2:Es(e,_n,bi);break;case 3:if(Xi(e,n),(n&130023424)===n&&(t=td+500-Ar(),10<t)){if(au(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){cn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=of(Es.bind(null,e,_n,bi),t);break}Es(e,_n,bi);break;case 4:if(Xi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-ti(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=Ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Xb(n/1960))-n,10<n){e.timeoutHandle=of(Es.bind(null,e,_n,bi),n);break}Es(e,_n,bi);break;case 5:Es(e,_n,bi);break;default:throw Error(zt(329))}}}return yn(e,Ar()),e.callbackNode===r?K1.bind(null,e):null}function Cf(e,t){var r=wl;return e.current.memoizedState.isDehydrated&&(Is(e,t).flags|=256),e=ku(e,t),e!==2&&(t=_n,_n=r,t!==null&&Tf(t)),e}function Tf(e){_n===null?_n=e:_n.push.apply(_n,e)}function Qb(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!ni(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xi(e,t){for(t&=~ed,t&=~Gu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ti(t),n=1<<r;e[r]=-1,t&=~n}}function up(e){if(rr&6)throw Error(zt(327));wa();var t=au(e,0);if(!(t&1))return yn(e,Ar()),null;var r=ku(e,t);if(e.tag!==0&&r===2){var n=O$(e);n!==0&&(t=n,r=Cf(e,n))}if(r===1)throw r=Vl,Is(e,0),Xi(e,t),yn(e,Ar()),r;if(r===6)throw Error(zt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Es(e,_n,bi),yn(e,Ar()),null}function rd(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(Ia=Ar()+500,Hu&&gs())}}function js(e){Ji!==null&&Ji.tag===0&&!(rr&6)&&wa();var t=rr;rr|=1;var r=Pn.transition,n=ar;try{if(Pn.transition=null,ar=1,e)return e()}finally{ar=n,Pn.transition=r,rr=t,!(rr&6)&&gs()}}function nd(){xn=pa.current,fr(pa)}function Is(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Eb(r)),Rr!==null)for(r=Rr.return;r!==null;){var n=r;switch(L0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&$u();break;case 3:za(),fr(gn),fr(tn),Y0();break;case 5:W0(n);break;case 4:za();break;case 13:fr(gr);break;case 19:fr(gr);break;case 10:P0(n.type._context);break;case 22:case 23:nd()}r=r.return}if(Hr=e,Rr=e=ls(e.current,null),Gr=xn=t,Lr=0,Vl=null,ed=Gu=Fs=0,_n=wl=null,Rs!==null){for(t=0;t<Rs.length;t++)if(r=Rs[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Rs=null}return e}function X1(e,t){do{var r=Rr;try{if(B0(),Yo.current=yu,vu){for(var n=yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}vu=!1}if(Ls=0,Ur=Mr=yr=null,bl=!1,Pl=0,O0.current=null,r===null||r.return===null){Lr=1,Vl=t,Rr=null;break}e:{var s=e,o=r.return,f=r,h=t;if(t=Gr,f.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var d=h,A=f,z=A.tag;if(!(A.mode&1)&&(z===0||z===11||z===15)){var L=A.alternate;L?(A.updateQueue=L.updateQueue,A.memoizedState=L.memoizedState,A.lanes=L.lanes):(A.updateQueue=null,A.memoizedState=null)}var ne=Qh(o);if(ne!==null){ne.flags&=-257,Zh(ne,o,f,s,t),ne.mode&1&&Xh(s,d,t),t=ne,h=d;var ge=t.updateQueue;if(ge===null){var Q=new Set;Q.add(h),t.updateQueue=Q}else ge.add(h);break e}else{if(!(t&1)){Xh(s,d,t),id();break e}h=Error(zt(426))}}else if(hr&&f.mode&1){var F=Qh(o);if(F!==null){!(F.flags&65536)&&(F.flags|=256),Zh(F,o,f,s,t),F0(Na(h,f));break e}}s=h=Na(h,f),Lr!==4&&(Lr=2),wl===null?wl=[s]:wl.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var Y=N1(s,h,t);Hh(s,Y);break e;case 1:f=h;var pe=s.type,se=s.stateNode;if(!(s.flags&128)&&(typeof pe.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(ss===null||!ss.has(se)))){s.flags|=65536,t&=-t,s.lanes|=t;var ve=I1(s,f,t);Hh(s,ve);break e}}s=s.return}while(s!==null)}J1(r)}catch(Z){t=Z,Rr===r&&r!==null&&(Rr=r=r.return);continue}break}while(!0)}function Q1(){var e=bu.current;return bu.current=yu,e===null?yu:e}function id(){(Lr===0||Lr===3||Lr===2)&&(Lr=4),Hr===null||!(Fs&268435455)&&!(Gu&268435455)||Xi(Hr,Gr)}function ku(e,t){var r=rr;rr|=2;var n=Q1();(Hr!==e||Gr!==t)&&(bi=null,Is(e,t));do try{Zb();break}catch(i){X1(e,i)}while(!0);if(B0(),rr=r,bu.current=n,Rr!==null)throw Error(zt(261));return Hr=null,Gr=0,Lr}function Zb(){for(;Rr!==null;)Z1(Rr)}function Jb(){for(;Rr!==null&&!w2();)Z1(Rr)}function Z1(e){var t=eg(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?J1(e):Rr=t,O0.current=null}function J1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Wb(r,t),r!==null){r.flags&=32767,Rr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Lr=6,Rr=null;return}}else if(r=Vb(r,t,xn),r!==null){Rr=r;return}if(t=t.sibling,t!==null){Rr=t;return}Rr=t=e}while(t!==null);Lr===0&&(Lr=5)}function Es(e,t,r){var n=ar,i=Pn.transition;try{Pn.transition=null,ar=1,Ob(e,t,r,n)}finally{Pn.transition=i,ar=n}return null}function Ob(e,t,r,n){do wa();while(Ji!==null);if(rr&6)throw Error(zt(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(zt(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(I2(e,s),e===Hr&&(Rr=Hr=null,Gr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Eo||(Eo=!0,tg(su,function(){return wa(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Pn.transition,Pn.transition=null;var o=ar;ar=1;var f=rr;rr|=4,O0.current=null,Gb(e,r),Y1(r,e),vb(af),lu=!!sf,af=sf=null,e.current=r,Kb(r),k2(),rr=f,ar=o,Pn.transition=s}else e.current=r;if(Eo&&(Eo=!1,Ji=e,wu=i),s=e.pendingLanes,s===0&&(ss=null),A2(r.stateNode),yn(e,Ar()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(xu)throw xu=!1,e=Ef,Ef=null,e;return wu&1&&e.tag!==0&&wa(),s=e.pendingLanes,s&1?e===Af?kl++:(kl=0,Af=e):kl=0,gs(),null}function wa(){if(Ji!==null){var e=Nm(wu),t=Pn.transition,r=ar;try{if(Pn.transition=null,ar=16>e?16:e,Ji===null)var n=!1;else{if(e=Ji,Ji=null,wu=0,rr&6)throw Error(zt(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,o=s.child;if(Ft.flags&16){var f=s.deletions;if(f!==null){for(var h=0;h<f.length;h++){var d=f[h];for(Ft=d;Ft!==null;){var A=Ft;switch(A.tag){case 0:case 11:case 15:xl(8,A,s)}var z=A.child;if(z!==null)z.return=A,Ft=z;else for(;Ft!==null;){A=Ft;var L=A.sibling,ne=A.return;if(H1(A),A===d){Ft=null;break}if(L!==null){L.return=ne,Ft=L;break}Ft=ne}}}var ge=s.alternate;if(ge!==null){var Q=ge.child;if(Q!==null){ge.child=null;do{var F=Q.sibling;Q.sibling=null,Q=F}while(Q!==null)}}Ft=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Ft=o;else e:for(;Ft!==null;){if(s=Ft,s.flags&2048)switch(s.tag){case 0:case 11:case 15:xl(9,s,s.return)}var Y=s.sibling;if(Y!==null){Y.return=s.return,Ft=Y;break e}Ft=s.return}}var pe=e.current;for(Ft=pe;Ft!==null;){o=Ft;var se=o.child;if(o.subtreeFlags&2064&&se!==null)se.return=o,Ft=se;else e:for(o=pe;Ft!==null;){if(f=Ft,f.flags&2048)try{switch(f.tag){case 0:case 11:case 15:Yu(9,f)}}catch(Z){wr(f,f.return,Z)}if(f===o){Ft=null;break e}var ve=f.sibling;if(ve!==null){ve.return=f.return,Ft=ve;break e}Ft=f.return}}if(rr=i,gs(),fi&&typeof fi.onPostCommitFiberRoot=="function")try{fi.onPostCommitFiberRoot(Fu,e)}catch{}n=!0}return n}finally{ar=r,Pn.transition=t}}return!1}function cp(e,t,r){t=Na(r,t),t=N1(e,t,1),e=is(e,t,1),t=cn(),e!==null&&(Ol(e,1,t),yn(e,t))}function wr(e,t,r){if(e.tag===3)cp(e,e,r);else for(;t!==null;){if(t.tag===3){cp(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ss===null||!ss.has(n))){e=Na(r,e),e=I1(t,e,1),t=is(t,e,1),e=cn(),t!==null&&(Ol(t,1,e),yn(t,e));break}}t=t.return}}function e4(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=cn(),e.pingedLanes|=e.suspendedLanes&r,Hr===e&&(Gr&r)===r&&(Lr===4||Lr===3&&(Gr&130023424)===Gr&&500>Ar()-td?Is(e,0):ed|=r),yn(e,t)}function O1(e,t){t===0&&(e.mode&1?(t=_o,_o<<=1,!(_o&130023424)&&(_o=4194304)):t=1);var r=cn();e=zi(e,t),e!==null&&(Ol(e,t,r),yn(e,r))}function t4(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),O1(e,r)}function r4(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(zt(314))}n!==null&&n.delete(t),O1(e,r)}var eg;eg=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mn=!1,Hb(e,t,r);mn=!!(e.flags&131072)}else mn=!1,hr&&t.flags&1048576&&i1(t,hu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ko(e,t),e=t.pendingProps;var i=Ca(t,tn.current);xa(t,r),i=K0(null,t,n,e,i,r);var s=X0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vn(n)?(s=!0,fu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,H0(t),i.updater=Wu,t.stateNode=i,i._reactInternals=t,pf(t,n,e,r),t=gf(null,t,n,!0,s,r)):(t.tag=0,hr&&s&&D0(t),an(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=i4(n),e=Qn(n,e),i){case 0:t=mf(null,t,n,e,r);break e;case 1:t=ep(null,t,n,e,r);break e;case 11:t=Jh(null,t,n,e,r);break e;case 14:t=Oh(null,t,n,Qn(n.type,e),r);break e}throw Error(zt(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qn(n,i),mf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qn(n,i),ep(e,t,n,i,r);case 3:e:{if(L1(t),e===null)throw Error(zt(387));n=t.pendingProps,s=t.memoizedState,i=s.element,c1(e,t),mu(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Na(Error(zt(423)),t),t=tp(e,t,n,r,i);break e}else if(n!==i){i=Na(Error(zt(424)),t),t=tp(e,t,n,r,i);break e}else for(kn=ns(t.stateNode.containerInfo.firstChild),En=t,hr=!0,Jn=null,r=o1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ta(),n===i){t=Ni(e,t,r);break e}an(e,t,n,r)}t=t.child}return t;case 5:return $1(t),e===null&&ff(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,lf(n,i)?o=null:s!==null&&lf(n,s)&&(t.flags|=32),D1(e,t),an(e,t,o,r),t.child;case 6:return e===null&&ff(t),null;case 13:return F1(e,t,r);case 4:return V0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ra(t,null,n,r):an(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qn(n,i),Jh(e,t,n,i,r);case 7:return an(e,t,t.pendingProps,r),t.child;case 8:return an(e,t,t.pendingProps.children,r),t.child;case 12:return an(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ur(pu,n._currentValue),n._currentValue=o,s!==null)if(ni(s.value,o)){if(s.children===i.children&&!gn.current){t=Ni(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var f=s.dependencies;if(f!==null){o=s.child;for(var h=f.firstContext;h!==null;){if(h.context===n){if(s.tag===1){h=Ei(-1,r&-r),h.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var A=d.pending;A===null?h.next=h:(h.next=A.next,A.next=h),d.pending=h}}s.lanes|=r,h=s.alternate,h!==null&&(h.lanes|=r),df(s.return,r,t),f.lanes|=r;break}h=h.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(zt(341));o.lanes|=r,f=o.alternate,f!==null&&(f.lanes|=r),df(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}an(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,xa(t,r),i=Vn(i),n=n(i),t.flags|=1,an(e,t,n,r),t.child;case 14:return n=t.type,i=Qn(n,t.pendingProps),i=Qn(n.type,i),Oh(e,t,n,i,r);case 15:return q1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qn(n,i),Ko(e,t),t.tag=1,vn(n)?(e=!0,fu(t)):e=!1,xa(t,r),z1(t,n,i),pf(t,n,i,r),gf(null,t,n,!0,e,r);case 19:return j1(e,t,r);case 22:return M1(e,t,r)}throw Error(zt(156,t.tag))};function tg(e,t){return Cm(e,t)}function n4(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(e,t,r,n){return new n4(e,t,r,n)}function sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function i4(e){if(typeof e=="function")return sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k0)return 11;if(e===S0)return 14}return 2}function ls(e,t){var r=e.alternate;return r===null?(r=jn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zo(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")sd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case sa:return qs(r.children,i,s,t);case w0:o=8,i|=8;break;case F$:return e=jn(12,r,t,i|2),e.elementType=F$,e.lanes=s,e;case j$:return e=jn(13,r,t,i),e.elementType=j$,e.lanes=s,e;case B$:return e=jn(19,r,t,i),e.elementType=B$,e.lanes=s,e;case $m:return Ku(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case um:o=10;break e;case cm:o=9;break e;case k0:o=11;break e;case S0:o=14;break e;case Yi:o=16,n=null;break e}throw Error(zt(130,e==null?e:typeof e,""))}return t=jn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function qs(e,t,r,n){return e=jn(7,e,n,t),e.lanes=r,e}function Ku(e,t,r,n){return e=jn(22,e,n,t),e.elementType=$m,e.lanes=r,e.stateNode={isHidden:!1},e}function i$(e,t,r){return e=jn(6,e,null,t),e.lanes=r,e}function s$(e,t,r){return t=jn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function s4(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jc(0),this.expirationTimes=jc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ad(e,t,r,n,i,s,o,f,h){return e=new s4(e,t,r,f,h),t===1?(t=1,s===!0&&(t|=8)):t=0,s=jn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},H0(s),e}function a4(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ia,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function rg(e){if(!e)return us;e=e._reactInternals;e:{if(Hs(e)!==e||e.tag!==1)throw Error(zt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(vn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(zt(171))}if(e.tag===1){var r=e.type;if(vn(r))return r1(e,r,t)}return t}function ng(e,t,r,n,i,s,o,f,h){return e=ad(r,n,!0,e,i,s,o,f,h),e.context=rg(null),r=e.current,n=cn(),i=as(r),s=Ei(n,i),s.callback=t??null,is(r,s,i),e.current.lanes=i,Ol(e,i,n),yn(e,n),e}function Xu(e,t,r,n){var i=t.current,s=cn(),o=as(i);return r=rg(r),t.context===null?t.context=r:t.pendingContext=r,t=Ei(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=is(i,t,o),e!==null&&(ri(e,i,o,s),Wo(e,i,o)),o}function Su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ld(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function l4(){return null}var ig=typeof reportError=="function"?reportError:function(e){console.error(e)};function od(e){this._internalRoot=e}Qu.prototype.render=od.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(zt(409));Xu(e,t,null,null)};Qu.prototype.unmount=od.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;js(function(){Xu(null,e,null,null)}),t[Ri]=null}};function Qu(e){this._internalRoot=e}Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mm();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ki.length&&t!==0&&t<Ki[r].priority;r++);Ki.splice(r,0,e),r===0&&Lm(e)}};function ud(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function fp(){}function o4(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var d=Su(o);s.call(d)}}var o=ng(t,n,e,0,null,!1,!1,"",fp);return e._reactRootContainer=o,e[Ri]=o.current,Dl(e.nodeType===8?e.parentNode:e),js(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var f=n;n=function(){var d=Su(h);f.call(d)}}var h=ad(e,0,!1,null,null,!1,!1,"",fp);return e._reactRootContainer=h,e[Ri]=h.current,Dl(e.nodeType===8?e.parentNode:e),js(function(){Xu(t,h,r,n)}),h}function Ju(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var f=i;i=function(){var h=Su(o);f.call(h)}}Xu(t,o,e,i)}else o=o4(r,t,e,i,n);return Su(o)}Im=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=cl(t.pendingLanes);r!==0&&(C0(t,r|1),yn(t,Ar()),!(rr&6)&&(Ia=Ar()+500,gs()))}break;case 13:js(function(){var n=zi(e,1);if(n!==null){var i=cn();ri(n,e,1,i)}}),ld(e,1)}};T0=function(e){if(e.tag===13){var t=zi(e,134217728);if(t!==null){var r=cn();ri(t,e,134217728,r)}ld(e,134217728)}};qm=function(e){if(e.tag===13){var t=as(e),r=zi(e,t);if(r!==null){var n=cn();ri(r,e,t,n)}ld(e,t)}};Mm=function(){return ar};Dm=function(e,t){var r=ar;try{return ar=e,t()}finally{ar=r}};Q$=function(e,t,r){switch(t){case"input":if(H$(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Uu(n);if(!i)throw Error(zt(90));dm(n),H$(n,i)}}}break;case"textarea":pm(e,r);break;case"select":t=r.value,t!=null&&ga(e,!!r.multiple,t,!1)}};xm=rd;wm=js;var u4={usingClientEntryPoint:!1,Events:[to,ua,Uu,ym,bm,rd]},il={findFiberByHostInstance:Ts,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},c4={bundleType:il.bundleType,version:il.version,rendererPackageName:il.rendererPackageName,rendererConfig:il.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Em(e),e===null?null:e.stateNode},findFiberByHostInstance:il.findFiberByHostInstance||l4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ao.isDisabled&&Ao.supportsFiber)try{Fu=Ao.inject(c4),fi=Ao}catch{}}zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u4;zn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ud(t))throw Error(zt(200));return a4(e,t,null,r)};zn.createRoot=function(e,t){if(!ud(e))throw Error(zt(299));var r=!1,n="",i=ig;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ad(e,1,!1,null,null,r,!1,n,i),e[Ri]=t.current,Dl(e.nodeType===8?e.parentNode:e),new od(t)};zn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(zt(188)):(e=Object.keys(e).join(","),Error(zt(268,e)));return e=Em(t),e=e===null?null:e.stateNode,e};zn.flushSync=function(e){return js(e)};zn.hydrate=function(e,t,r){if(!Zu(t))throw Error(zt(200));return Ju(null,e,t,!0,r)};zn.hydrateRoot=function(e,t,r){if(!ud(e))throw Error(zt(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=ig;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=ng(t,null,e,1,r??null,i,!1,s,o),e[Ri]=t.current,Dl(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Qu(t)};zn.render=function(e,t,r){if(!Zu(t))throw Error(zt(200));return Ju(null,e,t,!1,r)};zn.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(zt(40));return e._reactRootContainer?(js(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[Ri]=null})}),!0):!1};zn.unstable_batchedUpdates=rd;zn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zu(r))throw Error(zt(200));if(e==null||e._reactInternals===void 0)throw Error(zt(38));return Ju(e,t,r,!1,n)};zn.version="18.3.1-next-f1338f8080-20240426";function sg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sg)}catch(e){console.error(e)}}sg(),sm.exports=zn;var ag=sm.exports,lg,dp=ag;lg=dp.createRoot,dp.hydrateRoot;const _a=typeof window<"u"&&window.__BASE__||"",kr=e=>_a+e;async function Di(e){const t=await fetch(e),r=await t.json();if(!t.ok)throw new Error(r&&r.error||`HTTP ${t.status}`);return r}function hp(){return Di(kr("/api/info"))}function $4(){return Di(kr("/api/tasks"))}function Os(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),Di(kr(`/api/tree?${r}`))}function on(e,t,r){const n=new URLSearchParams({path:e});return og(n,t),r?.binary&&n.set("binary","1"),Di(kr(`/api/json?${n}`))}function og(e,t){t===null?e.set("depth",".inf"):t!==void 0&&e.set("depth",String(t))}function vs(e){return kr(`/api/blob?path=${encodeURIComponent(e)}`)}function pp(e,t,r){return kr(`/api/thumb?path=${encodeURIComponent(e)}&w=${t}&h=${r}`)}function f4(e,t){const r=new URLSearchParams({path:e});return og(r,t),Di(kr(`/api/schema?${r}`))}function Wl(e){return Di(kr(`/api/annotations?path=${encodeURIComponent(e)}`))}function d4(e){return Di(kr(`/api/tagged?path=${encodeURIComponent(e)}`))}function h4(e,t=":"){const r=new URLSearchParams({q:e,path:t});return Di(kr(`/api/query?${r}`)).then(n=>n.results)}async function Vs(e,t){const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await r.json();if(!r.ok)throw new Error(n&&n.error||`HTTP ${r.status}`);return n}function ug(){return Di(kr("/api/config"))}function p4(e){return Vs(kr("/api/config"),{source:e})}function _4(e,t,r){return Vs(kr("/api/fragment"),{target:e,selector:t,...r?{imageBase64:r}:{}})}function qa(e){return Vs(kr("/api/annotate"),e)}function m4(e,t){return Vs(kr("/api/board"),{path:e,lanes:t})}function g4(e){return fetch(kr("/api/tag"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})}).then(async t=>{const r=await t.json();if(!t.ok)throw new Error(r&&r.error||`HTTP ${t.status}`);return r})}function v4(){return Vs(kr("/api/agent-docs"),{})}function cd(e){return fetch(kr("/api/paste"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(async t=>{const r=await t.json();if(!t.ok)throw new Error(r&&r.error||`HTTP ${t.status}`);return r})}function y4(e,t,r){return cd({path:e,filename:t,contentBase64:r})}function b4(e,t){return cd({path:e,text:t})}function x4(e,t){return cd({path:e,rich:t})}function w4(e){return Vs(kr("/api/edit"),{edits:e})}function cg(e,t,r,n){return Vs(kr("/api/create"),{schema:e,parent:t,concrete:r})}function Ou(e,t){const r=new URLSearchParams({target:e,tag:t});return fetch(kr(`/api/annotate?${r}`),{method:"DELETE"}).then(async n=>{if(!n.ok)throw new Error((await n.json().catch(()=>null))?.error||`HTTP ${n.status}`)})}const k4="modulepreload",S4=function(e){return"/"+e},_p={},In=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),f=o?.nonce||o?.getAttribute("nonce");i=Promise.allSettled(r.map(h=>{if(h=S4(h),h in _p)return;_p[h]=!0;const d=h.endsWith(".css"),A=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${A}`))return;const z=document.createElement("link");if(z.rel=d?"stylesheet":k4,d||(z.as="script"),z.crossOrigin="",z.href=h,f&&z.setAttribute("nonce",f),document.head.appendChild(z),d)return new Promise((L,ne)=>{z.addEventListener("load",L),z.addEventListener("error",()=>ne(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(o){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=o,window.dispatchEvent(f),!f.defaultPrevented)throw o}return i.then(o=>{for(const f of o||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})},$g=new Set(["json","json5","json5p"]),fg=new Set(["yaml","yamlover"]);function dg(e){return!!e&&e.startsWith("file/")}function Pa(e){return e==="dir"||e==="dir/yamlover"}function hg(e){if(!e)return null;const t=e.startsWith("file/")?e.slice(5):e;return $g.has(t)||fg.has(t)?t:null}function ec(e){const t=hg(e);return t!=null&&$g.has(t)}function pg(e){const t=hg(e);return t!=null&&fg.has(t)}function Un(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const E4=/\[\d+\]|[^:\[\]]+/g,A4=/\[\d+\]|[^/\[\]]+/g;function Vr(e){const t=[];for(const r of e.match(E4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):$d(r));return t}function Dr(e){return Un(Vr(e))}function $d(e){try{return decodeURIComponent(e)}catch{return e}}function mp(){let e=window.location.pathname;_a&&(e===_a||e.startsWith(_a+"/"))&&(e=e.slice(_a.length)||"/");const t=[];for(const r of e.match(A4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):$d(r));return Un(t)}function C4(e){const r=Vr(e).map(n=>typeof n=="number"?`[${n}]`:`/${encodeURIComponent(n)}`).join("")||"/";return _a+r}function no(e,t){return Vr(t).slice(Vr(e).length).map(n=>typeof n=="number"?`[${n}]`:`/${n}`).join("")}function _g(e,t){const r=(e===":"?"":e)+":yamlover-fragments:"+t;return no(e,r)}function pi(e){const t=Vr(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`: ${r}`).join(""):":"}function T4(e){const t=Vr(Dr(e)),r=t.indexOf("tags"),n=r>=0?t.slice(r+1):t;return n.length?n.map(i=>typeof i=="number"?`[${i}]`:i).join(": "):t.length?String(t[t.length-1]):":"}function R4(e){return e.replace(/[^:/\[\]]+/g,t=>$d(t))}function Sl(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function gp(e){return new URLSearchParams(window.location.search).get("format")||e}function R8(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function z8(e){const t=new URLSearchParams(window.location.search);e>1?t.set("page",String(e)):t.delete("page");const r=t.toString(),n=window.location.pathname+(r?"?"+r:"");n!==window.location.pathname+window.location.search&&window.history.replaceState({},"",n)}function ea(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${C4(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function z4(e,t){const r=Vr(e),n=[];return t&&n.push({label:t,path:":"}),r.forEach((i,s)=>{n.push({label:typeof i=="number"?`[${i}]`:i,path:Un(r.slice(0,s+1))})}),n}const N4="$yamloverLink",I4="$yamloverBinary",q4="$yamloverRef",M4="$yamloverMixed",D4="$yamloverNum";function io(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)){const r=Object.keys(e);if(r.length===1&&r[0]===t)return e[t]}return null}const Fr=e=>io(e,N4),so=e=>io(e,I4),tc=e=>io(e,q4),Ua=e=>io(e,M4),rc=e=>io(e,D4);function mg(e,t){return t==="json"?e:e==="NaN"?".nan":e==="-Infinity"?"-.inf":".inf"}function ys(e){const t=Ua(e),r=t&&t.kind==="omni"?t.value:e,n=rc(r);return n?n==="NaN"?NaN:n==="-Infinity"?-1/0:1/0:r}function Ii(e,t){if(!e.comments)return;const r=e.comments[t.slice(e.base.length)];return r&&!Array.isArray(r)?r:void 0}function nc(e,t){return(t==="yaml"?"#":"//")+" "+e.trim()}function fd(e,t){return t==="json"?"*"+JSON.stringify(e):e!==e.trim()?`*'${e.replace(/'/g,"''")}'`:"*"+e}function L4(e,t){return t==="json"?"&"+JSON.stringify(e):"&"+e}function Yl(e,t,r){const n=Ii(e,t);if(!n)return null;const i=r==="yaml"?n.tag:void 0,s=n.anchors??[];return!i&&s.length===0?null:ye.jsxs(ye.Fragment,{children:[i&&ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"b",children:i})]}),s.map((o,f)=>ye.jsxs(ft.Fragment,{children:[" ",ye.jsx("span",{className:"anchor",children:L4(o,r)})]},`an${f}`))]})}function ic({ctx:e,frag:t,pad:r,syntax:n}){const i=Ii(e,t)?.leading;return i?.length?ye.jsx(ye.Fragment,{children:i.map((s,o)=>ye.jsxs(ft.Fragment,{children:[r,ye.jsx("span",{className:"c",children:nc(s,n)}),`
42
+ `]},`lc${o}`))}):null}function sc(e,t,r){const n=Ii(e,t)?.trailing;return n?.length?ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"c",children:n.map(i=>nc(i,r)).join(" ")})]}):null}function gg(e,t,r){const n=Ii(e,t)?.valueTrailing;return n?.length?ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"c",children:n.map(i=>nc(i,r)).join(" ")})]}):null}function vp({texts:e,syntax:t}){return ye.jsx(ye.Fragment,{children:e.map((r,n)=>ye.jsxs(ft.Fragment,{children:[ye.jsx("span",{className:"c",children:nc(r,t)}),`
43
+ `]},`fc${n}`))})}function yp(e,t){const r=e?.[t];return Array.isArray(r)&&r.length?r:void 0}function F4(e){const t=window.location.pathname+window.location.search;window.history.pushState({},"",t+"#"+e),document.getElementById(e)?.scrollIntoView?.()}function Gl({ctx:e,frag:t}){return!e.anchors||!t?null:ye.jsx("span",{id:t,className:"frag-anchor"})}function bp({value:e,syntax:t,onNavigate:r,documentPath:n=":",nodePath:i=":",anchors:s=!0,comments:o}){const f=no(n,i),h={nav:r,doc:n,node:i,anchors:s,comments:o,base:f},d=so(e);if(d&&t==="yaml")return ye.jsx(j4,{bin:d});const A=d??e,z=yp(o,"$head"),L=yp(o,"$tail");return ye.jsxs(ye.Fragment,{children:[z&&ye.jsx(vp,{texts:z,syntax:t}),t==="yaml"?ye.jsx(U4,{value:A,indent:0,ctx:h,frag:f}):ye.jsx(pd,{value:A,indent:0,ctx:h,frag:f,root:!0}),L&&ye.jsx(vp,{texts:L,syntax:t})]})}function j4({bin:e}){const[t,r]=ft.useState(!0);return ye.jsxs(ye.Fragment,{children:[ye.jsx(cs,{open:t,onToggle:()=>r(n=>!n)}),ye.jsx(ac,{v:e,indent:2,open:t})]})}const Ns=e=>typeof e=="string"&&e.includes(`
44
+ `)||!!so(e);function B4(e){const t=[];for(let r=0;r<e.length;r+=76)t.push(e.slice(r,r+76));return t}function ac({v:e,indent:t,open:r,trail:n=null}){const i=typeof e=="string"?null:e,s=i?B4(i.base64):e.replace(/\n$/,"").split(`
45
+ `),o=" ".repeat(t);return ye.jsxs(ye.Fragment,{children:[i?ye.jsxs(ye.Fragment,{children:[ye.jsx("span",{className:"b",children:"!!binary"})," ",ye.jsx("span",{className:"punct",children:"|"})," ",ye.jsx("span",{className:"c",children:`# ${i.format??"binary"}, ${i.size} bytes`})]}):ye.jsx("span",{className:"punct",children:"|"}),r?ye.jsxs(ye.Fragment,{children:[n,`
46
+ `,ye.jsx("span",{className:"s",children:s.map(f=>o+f).join(`
47
+ `)}),`
48
+ `]}):ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"fold-summary",children:`{ ${s.length} lines }`}),n,`
49
+ `]})]})}function lc(e,t,r){const n=e.kind==="scalar"?dd(e.value,t):P4(e);return ye.jsx("a",{className:"descend",href:e.path,onClick:i=>{i.preventDefault(),r.nav(e.path)},children:n})}function dd(e,t){if(e==null)return"null";const r=rc(e);return r?mg(r,t):typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function hd(e,t,r,n){const i=n??(t==="json"?JSON.stringify(e.text):e.text);if(!e.path)return ye.jsx("span",{className:"s",children:i});if(e.path===r.node||Sl(r.node,e.path)){const f=no(r.doc,e.path);return ye.jsx("a",{className:"descend ref-local",href:"#"+f,onClick:h=>{h.preventDefault(),F4(f)},children:i})}const o=e.path;return ye.jsx("a",{className:"descend",href:o,onClick:f=>{f.preventDefault(),r.nav(o)},children:i})}function P4(e){const t=e.count??0;return e.kind==="array"?`[ array with ${t} ${t===1?"item":"items"} ]`:e.kind==="binary"?`< binary of ${e.size??0} bytes >`:e.kind==="mix"?`{ mixed with ${t} ${t===1?"entry":"entries"} }`:e.kind==="omni"?`{ variant ${dd(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function oc(e,t){if(e===null)return ye.jsx("span",{className:"null",children:"null"});if(typeof e=="boolean")return ye.jsx("span",{className:"b",children:String(e)});const r=rc(e);if(r)return ye.jsx("span",{className:"n",children:mg(r,t)});if(typeof e=="number")return ye.jsx("span",{className:"n",children:String(e)});const n=t==="json"?JSON.stringify(e):String(e);return ye.jsx("span",{className:"s",children:n})}const Ha=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!rc(e);function Ai(e){return Fr(e)||tc(e)?!1:Ua(e)?!0:Ha(e)?Object.keys(e).length>0:Array.isArray(e)?e.length>0:!1}function uc(e){const t=Ua(e);if(t){const n=t.entries.length;return t.kind==="omni"?`{ variant ${dd(t.value,"yaml")} + ${n} ${n===1?"field":"fields"} }`:`{ mixed with ${n} ${n===1?"entry":"entries"} }`}if(Array.isArray(e)){const n=e.length;return`[ ${n} ${n===1?"item":"items"} ]`}const r=Object.keys(e).length;return`{ ${r} ${r===1?"property":"properties"} }`}function cs({open:e,onToggle:t}){return ye.jsx("button",{type:"button",className:"toggle fold-gutter"+(e?" open":""),"aria-label":e?"collapse":"expand",onClick:t,children:ye.jsx("span",{className:"chevron",children:"›"})})}function U4({value:e,indent:t,ctx:r,frag:n}){const i=Fr(e);if(i)return ye.jsxs(ye.Fragment,{children:[lc(i,"yaml",r),`
50
+ `]});const s=tc(e);return s?ye.jsxs(ye.Fragment,{children:[hd(s,"yaml",r),`
51
+ `]}):Ai(e)?ye.jsx(Eu,{value:e,indent:t,ctx:r,frag:n}):Ha(e)?ye.jsxs(ye.Fragment,{children:[ye.jsx("span",{className:"punct",children:"{}"}),`
52
+ `]}):Array.isArray(e)?ye.jsxs(ye.Fragment,{children:[ye.jsx("span",{className:"punct",children:"[]"}),`
53
+ `]}):ye.jsxs(ye.Fragment,{children:[oc(e,"yaml"),gg(r,n,"yaml"),`
54
+ `]})}function Eu({value:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=Ua(e);return s?ye.jsx(G4,{mixed:s,indent:t,ctx:r,frag:n,inlineHead:i}):Ha(e)?ye.jsx(H4,{entries:Object.entries(e),indent:t,ctx:r,frag:n,inlineHead:i}):ye.jsx(V4,{items:e,indent:t,ctx:r,frag:n,inlineHead:i})}function H4({entries:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=" ".repeat(t);return ye.jsx(ye.Fragment,{children:e.map(([o,f],h)=>ye.jsx(vg,{k:o,v:f,pad:s,indent:t,ctx:r,frag:`${n}/${o}`,noPad:i&&h===0},h))})}function V4({items:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=" ".repeat(t);return ye.jsx(ye.Fragment,{children:e.map((o,f)=>ye.jsx(yg,{v:o,pad:s,indent:t,ctx:r,frag:`${n}[${f}]`,noPad:i&&f===0},f))})}function W4(e){const t=Ua(e);if(t){if(t.kind==="omni"&&(t.selfAt??0)===0)return!Ns(t.value);const r=t.entries[0];return!!r&&!Ai(r.value)&&!Ns(r.value)}if(Ha(e)){const r=Object.values(e);return r.length>0&&!Ai(r[0])&&!Ns(r[0])}return Array.isArray(e)?e.length>0&&!Ai(e[0])&&!Ns(e[0]):!1}function Y4({value:e,pad:t,indent:r,ctx:n,frag:i,noPad:s=!1}){const[o,f]=ft.useState(!0),h=gg(n,i,"yaml"),d=Fr(e);return d?ye.jsxs(ye.Fragment,{children:[s?null:t,lc(d,"yaml",n),h,`
55
+ `]}):Ns(e)?ye.jsxs(ye.Fragment,{children:[ye.jsx(cs,{open:o,onToggle:()=>f(A=>!A)}),s?null:t,ye.jsx(ac,{v:so(e)??e,indent:r+2,open:o,trail:h})]}):ye.jsxs(ye.Fragment,{children:[s?null:t,oc(e,"yaml"),h,`
56
+ `]})}function G4({mixed:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=" ".repeat(t),o=e.kind==="omni",f=o?Math.min(e.selfAt??0,e.entries.length):-1,h=i&&f===0,d=ye.jsx(Y4,{value:e.value,pad:s,indent:t,ctx:r,frag:n,noPad:h});return ye.jsxs(ye.Fragment,{children:[e.entries.map((A,z)=>{const L=i&&z===0&&!h;return ye.jsxs(ft.Fragment,{children:[z===f&&d,A.key===null?ye.jsx(yg,{v:A.value,pad:s,indent:t,ctx:r,frag:`${n}[${z}]`,noPad:L}):ye.jsx(vg,{k:A.key,v:A.value,pad:s,indent:t,ctx:r,frag:`${n}/${A.key}`,noPad:L})]},z)}),o&&f>=e.entries.length&&d]})}function vg({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,noPad:o=!1}){const[f,h]=ft.useState(!0),d=!o&&Ii(i,s)?.blankBefore?`
57
+ `:null,A=o?null:ye.jsx(ic,{ctx:i,frag:s,pad:r,syntax:"yaml"}),z=sc(i,s,"yaml"),L=Ii(i,s)?.pointer,ne=Yl(i,s,"yaml"),ge=ye.jsxs(ye.Fragment,{children:[o?null:r,ye.jsx(Gl,{ctx:i,frag:s}),ye.jsx("span",{className:"k",children:e}),ye.jsx("span",{className:"punct",children:":"})]});return Ns(t)?ye.jsxs(ye.Fragment,{children:[d,A,ye.jsx(cs,{open:f,onToggle:()=>h(Q=>!Q)}),ge,ne," ",ye.jsx(ac,{v:so(t)??t,indent:n+2,open:f,trail:z})]}):Ai(t)?ye.jsxs(ye.Fragment,{children:[d,A,ye.jsx(cs,{open:f,onToggle:()=>h(Q=>!Q)}),ge,ne,f?ye.jsxs(ye.Fragment,{children:[z,`
58
+ `,ye.jsx(Eu,{value:t,indent:n+2,ctx:i,frag:s})]}):ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"fold-summary",children:uc(t)}),z,`
59
+ `]})]}):ye.jsxs(ye.Fragment,{children:[d,A,ge,ne,bg(t,i,z,L&&fd(L,"yaml"))]})}function yg({v:e,pad:t,indent:r,ctx:n,frag:i,noPad:s=!1}){const[o,f]=ft.useState(!0),h=!s&&Ii(n,i)?.blankBefore?`
60
+ `:null,d=s?null:ye.jsx(ic,{ctx:n,frag:i,pad:t,syntax:"yaml"}),A=sc(n,i,"yaml"),z=Ii(n,i)?.pointer,L=Yl(n,i,"yaml"),ne=ye.jsxs(ye.Fragment,{children:[s?null:t,ye.jsx(Gl,{ctx:n,frag:i}),ye.jsx("span",{className:"punct yaml-dash",children:"-"})]});if(Ns(e))return ye.jsxs(ye.Fragment,{children:[h,d,ye.jsx(cs,{open:o,onToggle:()=>f(Q=>!Q)}),ne,L," ",ye.jsx(ac,{v:so(e)??e,indent:r+2,open:o,trail:A})]});if(!Ai(e))return ye.jsxs(ye.Fragment,{children:[h,d,ne,L,bg(e,n,A,z&&fd(z,"yaml"))]});const ge=W4(e);return ye.jsxs(ye.Fragment,{children:[h,d,ye.jsx(cs,{open:o,onToggle:()=>f(Q=>!Q)}),ne,L,o?ge?ye.jsxs(ye.Fragment,{children:[" ",ye.jsx(Eu,{value:e,indent:r+2,ctx:n,frag:i,inlineHead:!0})]}):ye.jsxs(ye.Fragment,{children:[A,`
61
+ `,ye.jsx(Eu,{value:e,indent:r+2,ctx:n,frag:i})]}):ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"fold-summary",children:uc(e)}),A,`
62
+ `]})]})}function bg(e,t,r=null,n){const i=Fr(e);if(i)return ye.jsxs(ye.Fragment,{children:[" ",lc(i,"yaml",t),r,`
63
+ `]});const s=tc(e);return s?ye.jsxs(ye.Fragment,{children:[" ",hd(s,"yaml",t,n),r,`
64
+ `]}):Ha(e)&&Object.keys(e).length===0?ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"punct",children:"{}"}),r,`
65
+ `]}):Array.isArray(e)&&e.length===0?ye.jsxs(ye.Fragment,{children:[" ",ye.jsx("span",{className:"punct",children:"[]"}),r,`
66
+ `]}):ye.jsxs(ye.Fragment,{children:[" ",oc(e,"yaml"),r,`
67
+ `]})}function pd({value:e,indent:t,ctx:r,frag:n,root:i=!1}){const s=Fr(e);if(s)return lc(s,"json",r);const o=tc(e);if(o){const h=Ii(r,n)?.pointer;return hd(o,"json",r,h&&fd(h,"json"))}if(i&&Ai(e))return ye.jsx(El,{value:e,indent:t,ctx:r,frag:n});const f=xg(e);return f?f.length?ye.jsx(El,{value:e,indent:t,ctx:r,frag:n}):ye.jsx("span",{className:"punct",children:"{}"}):Array.isArray(e)?e.length?ye.jsx(El,{value:e,indent:t,ctx:r,frag:n}):ye.jsx("span",{className:"punct",children:"[]"}):oc(e,"json")}function xg(e){const t=Ua(e);return t?[...t.kind==="omni"?[["$value",t.value]]:[],...t.entries.map((r,n)=>[r.key??String(n),r.value])]:Ha(e)?Object.entries(e):null}function El({value:e,indent:t,ctx:r,frag:n}){const i=xg(e);return i?ye.jsx(K4,{entries:i,indent:t,ctx:r,frag:n}):ye.jsx(X4,{items:e,indent:t,ctx:r,frag:n})}function K4({entries:e,indent:t,ctx:r,frag:n}){const i=" ".repeat(t+2);return ye.jsxs(ye.Fragment,{children:[ye.jsx("span",{className:"punct",children:"{"}),`
68
+ `,e.map(([s,o],f)=>ye.jsx(Q4,{k:s,v:o,pad:i,indent:t+2,ctx:r,frag:`${n}/${s}`,last:f===e.length-1},f))," ".repeat(t),ye.jsx("span",{className:"punct",children:"}"})]})}function X4({items:e,indent:t,ctx:r,frag:n}){const i=" ".repeat(t+2);return ye.jsxs(ye.Fragment,{children:[ye.jsx("span",{className:"punct",children:"["}),`
69
+ `,e.map((s,o)=>ye.jsx(Z4,{v:s,pad:i,indent:t+2,ctx:r,frag:`${n}[${o}]`,last:o===e.length-1},o))," ".repeat(t),ye.jsx("span",{className:"punct",children:"]"})]})}function Q4({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,last:o}){const[f,h]=ft.useState(!0),d=ye.jsx(ic,{ctx:i,frag:s,pad:r,syntax:"json"}),A=ye.jsxs(ye.Fragment,{children:[r,ye.jsx(Gl,{ctx:i,frag:s}),ye.jsx("span",{className:"k",children:`"${e}"`}),ye.jsx("span",{className:"punct",children:": "}),Yl(i,s,"json")]}),z=ye.jsxs(ye.Fragment,{children:[o?"":",",sc(i,s,"json"),`
70
+ `]});return Ai(t)?ye.jsxs(ye.Fragment,{children:[d,ye.jsx(cs,{open:f,onToggle:()=>h(L=>!L)}),A,f?ye.jsx(El,{value:t,indent:n,ctx:i,frag:s}):ye.jsx("span",{className:"fold-summary",children:uc(t)}),z]}):ye.jsxs(ye.Fragment,{children:[d,A,ye.jsx(pd,{value:t,indent:n,ctx:i,frag:s}),z]})}function Z4({v:e,pad:t,indent:r,ctx:n,frag:i,last:s}){const[o,f]=ft.useState(!0),h=ye.jsx(ic,{ctx:n,frag:i,pad:t,syntax:"json"}),d=ye.jsxs(ye.Fragment,{children:[s?"":",",sc(n,i,"json"),`
71
+ `]});return Ai(e)?ye.jsxs(ye.Fragment,{children:[h,ye.jsx(cs,{open:o,onToggle:()=>f(A=>!A)}),t,ye.jsx(Gl,{ctx:n,frag:i}),Yl(n,i,"json"),o?ye.jsx(El,{value:e,indent:r,ctx:n,frag:i}):ye.jsx("span",{className:"fold-summary",children:uc(e)}),d]}):ye.jsxs(ye.Fragment,{children:[h,t,ye.jsx(Gl,{ctx:n,frag:i}),Yl(n,i,"json"),ye.jsx(pd,{value:e,indent:r,ctx:n,frag:i}),d]})}function J4(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function O4(e,t){if(!e)return"";let r=e;for(let n=2;t.has(r);n++)r=`${e}-${n}`;return t.add(r),r}function wg(e){if(typeof DOMParser>"u"||!e.includes("<h"))return e;const t=new DOMParser().parseFromString(e,"text/html"),r=new Set;for(const n of t.querySelectorAll("h1, h2, h3, h4, h5, h6")){const i=O4(n.id||J4(n.textContent??""),r);if(!i)continue;n.id=i;const s=t.createElement("a");s.className="header-anchor",s.href=`#${i}`,s.setAttribute("aria-label","Link to this section"),s.textContent="§",n.insertBefore(s,n.firstChild)}return t.body.innerHTML}function cc(e){ft.useEffect(()=>{const t=()=>{const r=decodeURIComponent(window.location.hash.slice(1));if(!r)return;const n=document.getElementById(r);n?.scrollIntoView&&(n.scrollIntoView({block:"center"}),r.includes("yamlover-fragments/")&&(n.classList.add("yo-reveal-flash"),window.setTimeout(()=>n.classList.remove("yo-reveal-flash"),1e3)))};return t(),window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t)},[e])}const kg=ft.createContext({unlocked:!1});function e3(){return ft.useContext(kg)}const Ws="x-yamlover-tag";function _d(e){return/(^|:)tags:colors:/.test(Dr(e))}function Sg({color:e,title:t,onClick:r}){return ye.jsx("span",{className:"tagswatch",style:{background:e},title:t,role:r?"button":void 0,onClick:r})}function t3(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=Fr(i);s&&s.format===Ws?t.push({path:s.path,label:$c(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function r3(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t,31)+e.charCodeAt(r)>>>0;return`hsl(${t%360} 52% 42%)`}function Hn(e){return e.color??r3(e.name)}const Eg="$yamloverMixed";function Tn(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[Eg];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function Ag(e){if(typeof e=="string")return e;const t=e?.[Eg];return typeof t?.value=="string"?t.value:null}function md(e){const t=Tn(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function Cg({tags:e,onNavigate:t}){return e.length===0?null:ye.jsx(ye.Fragment,{children:e.map(r=>{const n=Hn({name:r.label,color:r.color});return _d(r.path)?ye.jsx(Sg,{color:n,title:r.label,onClick:()=>t(r.path)},r.path):ye.jsx("a",{className:"tagtag",style:{background:n},href:r.path,title:r.label,onClick:i=>{i.preventDefault(),t(r.path)},children:r.label},r.path)})})}function $c(e,t){if(t)return t;const r=Vr(e);return r.length?String(r[r.length-1]):e}const a$=new Map;function Au({tag:e,body:t,children:r}){const n=ft.useRef(null),[i,s]=ft.useState(null),[o,f]=ft.useState(t??a$.get(e.path)??null);ft.useEffect(()=>{if(!i||t!=null||a$.has(e.path))return;let L=!0;return on(e.path,1).then(ne=>Ag(ne.value)).catch(()=>null).then(ne=>{a$.set(e.path,ne??null),L&&f(ne??null)}),()=>{L=!1}},[i,e.path,t]);const h=()=>{const L=n.current?.getBoundingClientRect();L&&s({left:L.left,top:L.bottom+4})},d=()=>s(null),A=Hn({name:e.name,color:e.color}),z=t??o;return ye.jsxs("span",{ref:n,className:"tagtip-anchor",onMouseEnter:h,onMouseLeave:d,children:[r,i&&ag.createPortal(ye.jsxs("span",{className:"tagtip",style:{left:i.left,top:i.top,background:A},children:[ye.jsx("span",{className:"tagtip-path",children:T4(e.path)}),z&&ye.jsx("span",{className:"tagtip-value",children:z})]}),document.body)]})}const Kl="yamlover:diff";function n3(e){window.dispatchEvent(new CustomEvent(Kl,{detail:e}))}const Ys=e=>e.paths.some(t=>t.endsWith(".yamlover"));function Va(e=()=>!0){const[t,r]=ft.useState(0);return ft.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(o=>o+1)};return window.addEventListener(Kl,n),()=>window.removeEventListener(Kl,n)},[]),t}function i3(e=()=>!0){const[t,r]=ft.useState({seq:0,paths:[]});return ft.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(o=>({seq:o.seq+1,paths:s.paths}))};return window.addEventListener(Kl,n),()=>window.removeEventListener(Kl,n)},[]),t}const gd=[{path:"::yamlover:tags:colors:yellow",name:"yellow",color:"#f9e2af"},{path:"::yamlover:tags:colors:green",name:"green",color:"#a6e3a1"},{path:"::yamlover:tags:colors:sky",name:"sky",color:"#89dceb"},{path:"::yamlover:tags:colors:mauve",name:"mauve",color:"#cba6f7"},{path:"::yamlover:tags:colors:pink",name:"pink",color:"#f5c2e7"},{path:"::yamlover:tags:colors:peach",name:"peach",color:"#fab387"}],s3=gd[0],a3=s3.color,xp="#9399b2",vd="yo-annotate-recent-tags";function l3(e){return e.tag?Hn(e.tag):a3}function Qi(e){return JSON.stringify([e.selector??null,e.tag?.path?Dr(e.tag.path):null])}function Rf(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function wp(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let kp=null;async function o3(){for(const e of["::tags:colors","::yamlover:tags:colors"])try{const t=await on(e,2),r=[];for(const[n,i]of Tn(t.value)){const s=md(i);s&&r.push({path:`${e}:${encodeURIComponent(n)}`,name:n,color:s})}if(r.length)return r}catch{}return gd}function u3(){const[e,t]=ft.useState(gd);return ft.useEffect(()=>{kp??=o3();let r=!1;return kp.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const c3=": ...: !!<format: x-yamlover-tag>";function $3(e){const t=new Map;for(const r of e){if(_d(r))continue;const n=Dr(r);t.has(n)||t.set(n,r)}return[...t.values()].map(r=>({path:r,name:Rg(r),color:null}))}function f3(){const[e,t]=ft.useState([]),r=Va(Ys);return ft.useEffect(()=>{let n=!1;return h4(c3).then(i=>{n||t($3(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}const d3=[":yamlover:tags","::yamlover:tags"];function h3(){const[e,t]=ft.useState(null);return ft.useEffect(()=>{let r=!0;return ug().then(n=>{r&&t(n.settings.tags??null)}).catch(()=>{}),()=>{r=!1}},[]),e}function p3(e,t){const r=Dr(e);return t.some(n=>{if(!n)return!1;const i=Dr(n);return r===i||r.startsWith(i+":")})}function Tg(e){_3(e)}function yd(){try{const e=JSON.parse(localStorage.getItem(vd)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function _3(e){if(Dr(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...yd().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(vd,JSON.stringify(t))}function m3(){const e=r=>on(r.path,0).then(n=>n.format===Ws).catch(()=>!1),t=yd();return Promise.all(t.map(r=>e(r).then(n=>n?r:null))).then(r=>{const n=r.filter(Boolean);return n.length!==t.length&&localStorage.setItem(vd,JSON.stringify(n)),n})}async function g3(e,t,r,n){if(!t)return qa({target:e,tag:r.path});const{fragmentPath:i}=await _4(e,t,n);return qa({target:i,tag:r.path})}function zf(e,t){const r=t.node??e;return t.fragmentSlug?(r===":"?"":r)+":yamlover-fragments:"+t.fragmentSlug:r}function bd(e,t=0){const[r,n]=ft.useState([]),i=Va(Ys);return ft.useEffect(()=>{let s=!1;return Wl(e).then(o=>!s&&n(o)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function v3(e){const[t,r]=ft.useState(0),n=bd(e,t),[i,s]=ft.useState([]),[o,f]=ft.useState(new Set),[h,d]=ft.useState(new Set);ft.useEffect(()=>{const ve=new Set(n.map(Qi));s(Z=>Z.filter(be=>!ve.has(Qi(be)))),f(Z=>new Set([...Z].filter(be=>ve.has(be))))},[n]);const A=()=>r(ve=>ve+1),z=(ve,Z)=>Ou(zf(e,ve),ve.tag.path).then(A).catch(be=>{f(ue=>{const Ee=new Set(ue);return Ee.delete(Z),Ee}),window.alert("delete failed: "+be.message)});ft.useEffect(()=>{if(h.size)for(const ve of n){const Z=Qi(ve);!ve.tag||!h.has(Z)||(d(be=>{const ue=new Set(be);return ue.delete(Z),ue}),f(be=>new Set(be).add(Z)),z(ve,Z))}},[n,h]);const L=(ve,Z,be)=>{s(ue=>ue.filter(Ee=>Ee!==ve)),be||window.alert("save failed: "+Z.message)},ne=(ve,Z,be)=>{const ue=be?.target??e,Ee={path:"(pending)",node:ue,selector:ve??void 0,tag:Z};s(O=>[...O,Ee]),g3(ue,ve,Z,be?.imageBase64).then(A).catch(O=>L(Ee,O,be?.silent))},ge=ve=>{if(!ve?.tag)return;const Z=Qi(ve);if(ve.path==="(pending)"){d(be=>new Set(be).add(Z));return}f(be=>new Set(be).add(Z)),z(ve,Z)},Q=ft.useRef([]),F=ve=>{const Z=n.find(be=>be.fragmentSlug&&be.path!=="(pending)"&&Rf(be.selector,ve));return Z?zf(e,Z):null},Y=(ve,Z,be)=>{const ue=be?.target??e,Ee=F(ve);if(Ee){const O={path:"(pending)",node:ue,selector:ve,tag:Z};s(Ce=>[...Ce,O]),qa({target:Ee,tag:Z.path}).then(A).catch(Ce=>L(O,Ce,be?.silent));return}if(i.some(O=>Rf(O.selector,ve))){const O={path:"(pending)",node:ue,selector:ve,tag:Z};s(Ce=>[...Ce,O]),Q.current.push({selector:ve,tag:Z,entry:O});return}ne(ve,Z,be)};ft.useEffect(()=>{if(!Q.current.length)return;const ve=[];for(const Z of Q.current){const be=F(Z.selector);be?qa({target:be,tag:Z.tag.path}).then(A).catch(ue=>L(Z.entry,ue)):ve.push(Z)}Q.current=ve},[n]);const pe=new Set,se=[];for(const ve of[...i,...n]){const Z=Qi(ve);o.has(Z)||h.has(Z)||pe.has(Z)||(pe.add(Z),se.push(ve))}return{annotations:se,create:ne,remove:ge,annotateRegion:Y}}function Rg(e){const t=Vr(e);return t.length?String(t[t.length-1]):e}function y3(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}const Nf=e=>({"--tag":e});function b3({label:e,concretes:t,defaultConcrete:r,onCreate:n}){const[i,s]=ft.useState(r);return ye.jsxs("div",{className:"annotate-create",children:[ye.jsxs("button",{type:"button",className:"annotate-action",onClick:()=>n(i),children:["+ New ",e]}),t.length>1&&ye.jsx("select",{className:"annotate-concrete",value:i,onChange:o=>s(o.target.value),title:"storage form",children:t.map(o=>ye.jsx("option",{value:o.id,children:o.label},o.id))})]})}function xd({x:e,y:t,applied:r,nodeTags:n=[],mode:i,onPick:s,onUnpick:o,onCopy:f,onClose:h,menuRef:d,creates:A,title:z}){const L=u3(),ne=f3(),ge=h3(),[Q,F]=ft.useState(yd),[Y,pe]=ft.useState(""),[se,ve]=ft.useState(-1),[Z,be]=ft.useState(!1),ue=i==="edit"?"re-tag":"tag";ft.useEffect(()=>{let _=!0;return m3().then(S=>{_&&F(S)}),()=>{_=!1}},[]);const Ee=(_,S)=>Dr(_)===Dr(S),O=_=>L.some(S=>Ee(S.path,_.path)),Ce=new Set(r.map(_=>Dr(_.path))),$e=_=>Ce.has(Dr(_)),w=_=>($e(_.path)?o??s:s)(_),Ae=_=>{const S=[],C=new Set;for(const ee of _){if(O(ee))continue;const Le=ee.name.toLowerCase();C.has(Le)||(C.add(Le),S.push(ee))}return S},j=ne.filter(_=>p3(_.path,[...d3,ge])),de=Ae([...r,...n,...Q,...j]),V=Y.trim().toLowerCase(),Fe=V?Ae([...r,...n,...Q,...ne].filter(_=>_.name.toLowerCase().includes(V)||Dr(_.path).toLowerCase().includes(V)).map(_=>({t:_,rank:y3(_,V)})).sort((_,S)=>_.rank-S.rank||_.t.name.localeCompare(S.t.name)).map(({t:_})=>_)).slice(0,8):de;ft.useEffect(()=>{ve(V&&Fe.length?0:-1)},[Y]);const ce=_=>{const S=Y.trim();!S||Z||(be(!0),on(S.startsWith(":")?S:S.startsWith("/")?":"+S.slice(1).split("/").join(":"):":"+S,1).then(C=>{if(C.format!==Ws)throw new Error("not a tag node");s({path:C.path,name:C.title||Rg(C.path),color:md(C.value)})}).catch(C=>{if(S.includes(":")||S.includes("/"))throw new Error(`cannot ${ue} with "${S}": `+C.message);return g4(S).then(s).catch(ee=>{throw new Error(`cannot create tag "${S}": `+ee.message)})}).catch(C=>window.alert(C.message)).finally(()=>be(!1)))},U=ft.useRef(null),x=ft.useCallback(_=>{U.current=_,typeof d=="function"?d(_):d&&(d.current=_)},[d]),[$,l]=ft.useState({left:e,top:t}),c=ft.useRef(!1);ft.useLayoutEffect(()=>{if(c.current)return;const _=U.current;if(!_)return;const S=8,C=_.offsetWidth,ee=_.offsetHeight;let Le=e,nt=t;if(Le+C>window.innerWidth-S&&(Le=Math.max(S,window.innerWidth-C-S)),nt+ee>window.innerHeight-S){const dt=t-ee-12;nt=dt>=S?dt:Math.max(S,window.innerHeight-ee-S)}(Le!==$.left||nt!==$.top)&&l({left:Le,top:nt})});const p=_=>{if(_.target.closest("button"))return;_.preventDefault();const S=_.clientX-$.left,C=_.clientY-$.top;c.current=!0;const ee=nt=>l({left:nt.clientX-S,top:nt.clientY-C}),Le=()=>{document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",Le)};document.addEventListener("mousemove",ee),document.addEventListener("mouseup",Le)};return ye.jsxs("div",{ref:x,className:"annotate-menu",style:{left:$.left,top:$.top},role:"menu",children:[ye.jsxs("div",{className:"annotate-topbar",children:[ye.jsx("div",{className:"annotate-titlebar",onMouseDown:p,title:z,children:ye.jsx("span",{className:"annotate-title",children:ye.jsx("bdi",{children:z??""})})}),f&&ye.jsx("button",{type:"button",className:"annotate-tool copy",title:"copy text to clipboard (don't annotate)",onClick:f,children:"⧉"}),ye.jsx("button",{type:"button",className:"annotate-tool close",title:"close",onClick:h,children:"✕"})]}),A&&A.length>0&&ye.jsx("div",{className:"annotate-actions",children:A.map(_=>ye.jsx(b3,{..._},_.schema))}),ye.jsx("div",{className:"annotate-palette",children:L.map(_=>ye.jsx(Au,{tag:_,children:ye.jsx("button",{type:"button",className:"annotate-swatch"+($e(_.path)?" on":""),style:Nf(Hn(_)),onClick:()=>w(_)})},_.path))}),Fe.length>0&&ye.jsx("div",{className:"annotate-recents",role:"listbox",children:Fe.map((_,S)=>ye.jsx("span",{className:"tagframe",children:ye.jsx(Au,{tag:_,children:ye.jsx("button",{type:"button",role:"option","aria-selected":S===se,className:"tagtag"+($e(_.path)?" on":"")+(S===se?" hi":""),style:Nf(Hn(_)),onClick:()=>w(_),onMouseEnter:()=>{V&&ve(S)},children:ye.jsx("span",{className:"tt-label",children:_.name})})})},_.path))}),ye.jsx("div",{className:"annotate-typeahead",children:ye.jsx("input",{className:"annotate-taginput",type:"text",placeholder:Z?"creating tag…":`${ue}: filter, tag path, or new name… ⏎`,value:Y,disabled:Z,autoComplete:"off",onChange:_=>pe(_.target.value),onKeyDown:_=>{if(Fe.length&&_.key==="ArrowDown"){_.preventDefault(),_.stopPropagation(),ve(S=>(S+1)%Fe.length);return}if(Fe.length&&_.key==="ArrowUp"){_.preventDefault(),_.stopPropagation(),ve(S=>(S-1+Fe.length)%Fe.length);return}if(_.key==="Escape"&&Y){_.preventDefault(),_.stopPropagation(),pe("");return}_.key==="Enter"&&(_.preventDefault(),_.stopPropagation(),se>=0&&Fe[se]?w(Fe[se]):ce())}})})]})}function x3(e,t){const[r,n]=ft.useState(null),i=ft.useRef(null),s=()=>n(null),o=(F,Y,pe,se,ve)=>{n({selector:F,nodePath:ve??t,create:!0,copy:pe,imageBase64:se,x:Y.x,y:Y.y,title:pi(ve??t)})},f=(F,Y)=>n({selector:F.selector??{},nodePath:F.node??t,create:!1,x:Y.x,y:Y.y,title:pi(zf(t,F))}),h=r?e.annotations.filter(F=>Rf(F.selector,r.selector)&&(F.node??t)===r.nodePath):[],d=h.map(F=>F.tag).filter(F=>!!F),A=[],z=new Set;for(const F of e.annotations){if(!F.tag)continue;const Y=Dr(F.tag.path);z.has(Y)||(z.add(Y),A.push(F.tag))}const L=F=>{r&&(Tg(F),!d.some(Y=>Dr(Y.path)===Dr(F.path))&&e.annotateRegion(r.selector,F,{imageBase64:r.imageBase64,target:r.nodePath}))},ne=F=>{if(!r)return;const Y=h.find(pe=>pe.tag&&Dr(pe.tag.path)===Dr(F.path));Y&&e.remove(Y)};ft.useEffect(()=>{if(!r)return;const F=pe=>{i.current?.contains(pe.target)||s()},Y=pe=>{pe.target instanceof Node&&i.current?.contains(pe.target)||s()};return document.addEventListener("mousedown",F),window.addEventListener("scroll",Y,!0),window.addEventListener("wheel",Y,!0),()=>{document.removeEventListener("mousedown",F),window.removeEventListener("scroll",Y,!0),window.removeEventListener("wheel",Y,!0)}},[r]);const ge=r?ye.jsx(xd,{menuRef:i,x:r.x,y:r.y,applied:d,nodeTags:A,mode:"create",onPick:L,onUnpick:ne,onCopy:r.copy?()=>{r.copy(),s()}:void 0,onClose:s,title:r.title}):null,Q=r&&r.create&&d.length===0?{selector:r.selector,color:xp}:null;return{openCreate:o,openEdit:f,palette:ge,preview:Q,color:xp}}function w3({path:e,children:t}){const r=ft.useRef(null),n=v3(e),{openCreate:i,openEdit:s,palette:o}=x3(n,e),{annotations:f}=n,h=z=>(z instanceof HTMLElement?z:z?.parentElement)?.closest?.("[data-node-path]")?.dataset.nodePath||e;ft.useEffect(()=>{const z=r.current;if(!z)return;const L=requestAnimationFrame(()=>k3(z,f,e));return()=>cancelAnimationFrame(L)}),ft.useEffect(()=>{const z=L=>{if(L.button!==0)return;const ne=r.current;if(!ne||L.target?.closest?.(".annotate-menu")||L.target?.closest?.("mark.yo-annotation"))return;const ge=window.getSelection();if(!ge||ge.isCollapsed||!ge.anchorNode||!ge.focusNode||!ne.contains(ge.anchorNode)||!ne.contains(ge.focusNode))return;const Q=Ap(ge);if(!Q)return;const F=ge.getRangeAt(0).getBoundingClientRect(),Y=()=>Sp(Q.exact);i({type:"text",exact:Q.exact,prefix:Q.prefix,suffix:Q.suffix},{x:F.left,y:F.bottom+6},Y,void 0,h(ge.anchorNode))};return document.addEventListener("mouseup",z),()=>document.removeEventListener("mouseup",z)},[]);const d=z=>{const L=z.target.closest("mark.yo-annotation");if(!L)return;const ne=f.find(ge=>Qi(ge)===L.dataset.annSel);!ne||!wp(ne)||(z.preventDefault(),s(ne,{x:z.clientX,y:z.clientY}))},A=z=>{const L=r.current;if(!L)return;const ne=z.target.closest("mark.yo-annotation");if(ne){const Y=f.find(pe=>Qi(pe)===ne.dataset.annSel);Y&&wp(Y)&&(z.preventDefault(),s(Y,{x:z.clientX,y:z.clientY}));return}const ge=window.getSelection();if(!ge||ge.isCollapsed||!ge.anchorNode||!ge.focusNode||!L.contains(ge.anchorNode)||!L.contains(ge.focusNode))return;const Q=Ap(ge);if(!Q)return;z.preventDefault();const F=()=>Sp(Q.exact);i({type:"text",exact:Q.exact,prefix:Q.prefix,suffix:Q.suffix},{x:z.clientX,y:z.clientY},F,void 0,h(ge.anchorNode))};return ye.jsxs("div",{className:"annotated",children:[ye.jsx("div",{ref:r,onClick:d,onContextMenu:A,children:t}),o]})}function Sp(e){return navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(()=>!0,()=>Ep(e)):Promise.resolve(Ep(e))}function Ep(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),document.execCommand("copy")}catch{return!1}finally{t.remove()}}function Ap(e){const t=e.toString().trim();if(!t)return null;const r=e.anchorNode?.nodeValue??"",n=r.indexOf(t),i=n>=0?r.slice(Math.max(0,n-24),n):"",s=n>=0?r.slice(n+t.length,n+t.length+24):"";return{exact:t,prefix:i,suffix:s}}function k3(e,t,r){e.querySelectorAll("mark.yo-annotation").forEach(n=>{const i=n.parentNode;if(i){for(;n.firstChild;)i.insertBefore(n.firstChild,n);i.removeChild(n),i.normalize()}});for(const n of t){if(n.selector?.type!=="text"||!n.selector.exact)continue;let i=e;if(n.node){for(const s of e.querySelectorAll("[data-node-path]"))if(s.dataset.nodePath===n.node){i=s;break}}S3(i,n,n.node??r)}}function S3(e,t,r){const n=t.selector,i=String(n.exact),s=t.fragmentSlug?_g(r,t.fragmentSlug):"";if(s){for(const pe of e.querySelectorAll("[id]"))if(pe.id===s)return}const o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),f=[];let h="";for(let pe;pe=o.nextNode();)f.push({node:pe,at:h.length}),h+=pe.nodeValue??"";const d=String(n.prefix??""),A=String(n.suffix??"");let z=-1,L=-1;for(let pe=h.indexOf(i);pe>=0;pe=h.indexOf(i,pe+1)){const se=(d&&h.slice(0,pe).endsWith(d)?2:0)+(A&&h.slice(pe+i.length).startsWith(A)?1:0);se>L&&(L=se,z=pe)}if(z<0)return;const ne=f.find(pe=>z>=pe.at&&z<pe.at+(pe.node.nodeValue?.length??0));if(!ne)return;const ge=z-ne.at;if(ge+i.length>(ne.node.nodeValue?.length??0))return;const Q=document.createRange();Q.setStart(ne.node,ge),Q.setEnd(ne.node,ge+i.length);const F=l3(t),Y=document.createElement("mark");Y.className="yo-annotation",Y.style.backgroundColor=`color-mix(in srgb, ${F} 30%, transparent)`,Y.style.borderBottomColor=F,Y.dataset.annSel=Qi(t),s&&(Y.id=s),Y.title=t.description||"click to re-tag or delete";try{Q.surroundContents(Y)}catch{}}const zg=[{schema:"::yamlover:$defs:chapter",childOf:["x-yamlover-chapter","x-yamlover-task"]}],E3=[{id:"yamlover",label:"inline"},{id:"file/yamlover",label:"file"},{id:"dir/yamlover",label:"directory"}],A3=[{id:"file/yamlover",label:"file"},{id:"dir/yamlover",label:"directory"}];function C3(e,t){const r=[];for(const n of zg){const i=t[n.schema]||T3(n.schema);e.format&&n.childOf.includes(e.format)?r.push({schema:n.schema,label:i,concretes:E3,defaultConcrete:"yamlover"}):Pa(e.concrete)&&r.push({schema:n.schema,label:i,concretes:A3,defaultConcrete:"dir/yamlover"})}return r}function T3(e){return pi(e).replace(/^:\s?/,"").replace(/^yamlover:\s?/,"")}let Cp=null;async function R3(){const e={};return await Promise.all(zg.map(async t=>{try{const r=await on(t.schema,0);r.title&&(e[t.schema]=r.title)}catch{}})),e}function z3(){const[e,t]=ft.useState({});return ft.useEffect(()=>{Cp??=R3();let r=!0;return Cp.then(n=>{r&&t(n)}),()=>{r=!1}},[]),e}function wd(e){const[t,r]=ft.useState(null),[n,i]=ft.useState([]),s=z3(),o=ft.useRef(null),f=()=>{r(null),i([])},h=Q=>Wl(Q).then(F=>i(F.filter(Y=>!Y.fragmentSlug))).catch(()=>i([])),d=(Q,F,Y,pe)=>{r({target:Q,x:F,y:Y,node:pe}),i([]),h(Q)},A=Q=>{if(!t)return;Tg(Q);const F={path:"(pending)",tag:Q};i(Y=>[...Y,F]),qa({target:t.target,tag:Q.path}).then(()=>h(t.target)).catch(Y=>{i(pe=>pe.filter(se=>se!==F)),window.alert("tag failed: "+Y.message)})},z=Q=>{if(!t)return;const F=n.find(Y=>Y.tag&&Dr(Y.tag.path)===Dr(Q.path));i(Y=>Y.filter(pe=>pe!==F)),Ou(t.target,F?.tag?.path??Q.path).then(()=>h(t.target)).catch(Y=>{F&&i(pe=>[...pe,F]),window.alert("untag failed: "+Y.message)})};ft.useEffect(()=>{if(!t)return;const Q=Y=>{o.current?.contains(Y.target)||f()},F=Y=>{Y.target instanceof Node&&o.current?.contains(Y.target)||f()};return document.addEventListener("mousedown",Q),window.addEventListener("scroll",F,!0),window.addEventListener("wheel",F,!0),()=>{document.removeEventListener("mousedown",Q),window.removeEventListener("scroll",F,!0),window.removeEventListener("wheel",F,!0)}},[t]);const L=n.map(Q=>Q.tag).filter(Q=>!!Q),ne=t?.node&&e?.onCreate?C3(t.node,s).map(Q=>({schema:Q.schema,label:Q.label,concretes:Q.concretes,defaultConcrete:Q.defaultConcrete,onCreate:F=>{e.onCreate(Q.schema,t.target,F),f()}})):void 0,ge=t?ye.jsx(xd,{menuRef:o,x:t.x,y:t.y,applied:L,mode:"create",onPick:A,onUnpick:z,onClose:f,creates:ne,title:pi(t.target)}):null;return{openAt:d,tagMenu:ge}}class It extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,o=r&&r.loc;if(o&&o.start<=o.end){var f=o.lexer.input;i=o.start,s=o.end,i===f.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var h=f.slice(i,s).replace(/[^]/g,"$&̲"),d;i>15?d="…"+f.slice(i-15,i):d=f.slice(0,i);var A;s+15<f.length?A=f.slice(s,s+15)+"…":A=f.slice(s),n+=d+h+A}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,It.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var N3=/([A-Z])/g,I3=e=>e.replace(N3,"-$1").toLowerCase(),q3={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},M3=/[&><"']/g,en=e=>String(e).replace(M3,t=>q3[t]),Jo=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Jo(e.body[0]):e:e.type==="font"?Jo(e.body):e,D3=new Set(["mathord","textord","atom"]),Li=e=>D3.has(Jo(e).type),L3=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},If={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function F3(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function j3(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return F3(t)}function B3(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:j3(n)}class kd{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r of Object.keys(If)){var n=If[r];n&&B3(this,r,t,n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new It("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=L3(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Pi{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return li[P3[this.id]]}sub(){return li[U3[this.id]]}fracNum(){return li[H3[this.id]]}fracDen(){return li[V3[this.id]]}cramp(){return li[W3[this.id]]}text(){return li[Y3[this.id]]}isTight(){return this.size>=2}}var Sd=0,Cu=1,ka=2,Ci=3,Xl=4,Bn=5,Ma=6,un=7,li=[new Pi(Sd,0,!1),new Pi(Cu,0,!0),new Pi(ka,1,!1),new Pi(Ci,1,!0),new Pi(Xl,2,!1),new Pi(Bn,2,!0),new Pi(Ma,3,!1),new Pi(un,3,!0)],P3=[Xl,Bn,Xl,Bn,Ma,un,Ma,un],U3=[Bn,Bn,Bn,Bn,un,un,un,un],H3=[ka,Ci,Xl,Bn,Ma,un,Ma,un],V3=[Ci,Ci,Bn,Bn,un,un,un,un],W3=[Cu,Cu,Ci,Ci,Bn,Bn,un,un],Y3=[Sd,Cu,ka,Ci,ka,Ci,ka,Ci],Gt={DISPLAY:li[Sd],TEXT:li[ka],SCRIPT:li[Xl],SCRIPTSCRIPT:li[Ma]},qf=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function G3(e){for(var t=0;t<qf.length;t++)for(var r=qf[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Oo=[];qf.forEach(e=>e.blocks.forEach(t=>Oo.push(...t)));function Ng(e){for(var t=0;t<Oo.length;t+=2)if(e>=Oo[t]&&e<=Oo[t+1])return!0;return!1}var qr=e=>e+" "+e,ta=80,K3=function(t,r){return"M95,"+(622+t+r)+`
72
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
73
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
74
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
75
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
76
+ c69,-144,104.5,-217.7,106.5,-221
77
+ l`+t/2.075+" -"+t+`
78
+ c5.3,-9.3,12,-14,20,-14
79
+ H400000v`+(40+t)+`H845.2724
80
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
81
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
82
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},X3=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
83
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
84
+ c340,-704.7,510.7,-1060.3,512,-1067
85
+ l`+t/2.084+" -"+t+`
86
+ c4.7,-7.3,11,-11,19,-11
87
+ H40000v`+(40+t)+`H1012.3
88
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
89
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
90
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
91
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
92
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Q3=function(t,r){return"M983 "+(10+t+r)+`
93
+ l`+t/3.13+" -"+t+`
94
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
95
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
96
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
97
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
98
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
99
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
100
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
101
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Z3=function(t,r){return"M424,"+(2398+t+r)+`
102
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
103
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
104
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
105
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
106
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
107
+ v`+(40+t)+`H1014.6
108
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
109
+ c-2,6,-10,9,-24,9
110
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
111
+ h400000v`+(40+t)+"h-400000z"},J3=function(t,r){return"M473,"+(2713+t+r)+`
112
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
113
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
114
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
115
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
116
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
117
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
118
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},O3=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},e5=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
119
+ H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
120
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
121
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
122
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},t5=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=K3(r,ta);break;case"sqrtSize1":i=X3(r,ta);break;case"sqrtSize2":i=Q3(r,ta);break;case"sqrtSize3":i=Z3(r,ta);break;case"sqrtSize4":i=J3(r,ta);break;case"sqrtTall":i=e5(r,ta,n)}return i},r5=function(t,r){switch(t){case"⎜":return qr("M291 0 H417 V"+r+" H291z");case"∣":return qr("M145 0 H188 V"+r+" H145z");case"∥":return qr("M145 0 H188 V"+r+" H145z")+qr("M367 0 H410 V"+r+" H367z");case"⎟":return qr("M457 0 H583 V"+r+" H457z");case"⎢":return qr("M319 0 H403 V"+r+" H319z");case"⎥":return qr("M263 0 H347 V"+r+" H263z");case"⎪":return qr("M384 0 H504 V"+r+" H384z");case"⏐":return qr("M312 0 H355 V"+r+" H312z");case"‖":return qr("M257 0 H300 V"+r+" H257z")+qr("M478 0 H521 V"+r+" H478z");default:return""}},Tp={doubleleftarrow:`M262 157
123
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
124
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
125
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
126
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
127
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
128
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
129
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
130
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
131
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
132
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
133
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
134
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
135
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
136
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
137
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
138
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
139
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
140
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
141
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
142
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
143
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
144
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
145
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
146
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
147
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
148
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
149
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
150
+ 435 0h399565z`,leftgroupunder:`M400000 262
151
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
152
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
153
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
154
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
155
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
156
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
157
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
158
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
159
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
160
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
161
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
162
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
163
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
164
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
165
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
166
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
167
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
168
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:qr("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:qr("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:qr("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:qr("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
169
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
170
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
171
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:qr("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
172
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
173
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
174
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
175
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
176
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
177
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
178
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
179
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
180
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
181
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
182
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
183
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
184
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
185
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
186
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
187
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
188
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
189
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
190
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
191
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
192
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
193
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
194
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
195
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
196
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
197
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
198
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
199
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
200
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
201
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
202
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
203
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
204
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
205
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
206
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
207
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
208
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
209
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
210
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
211
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
212
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
213
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
214
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
215
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
216
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
217
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
218
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
219
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
220
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:qr("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:qr("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:qr("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
221
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
222
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
223
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
224
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
225
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
226
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
227
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
228
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
229
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
230
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
231
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
232
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
233
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
234
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
235
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
236
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
237
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
238
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
239
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
240
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
241
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
242
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
243
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
244
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
245
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
246
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
247
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
248
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
249
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
250
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
251
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
252
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
253
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
254
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
255
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
256
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
257
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
258
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
259
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
260
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
261
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
262
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
263
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
264
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
265
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
266
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
267
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
268
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
269
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
270
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
271
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
272
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
273
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
274
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
275
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
276
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
277
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
278
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
279
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
280
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
281
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
282
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
283
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
284
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
285
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
286
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
287
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
288
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
289
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
290
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
291
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
292
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
293
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},n5=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
294
+ H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
295
+ M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
296
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
297
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
298
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
299
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
300
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
301
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
302
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
303
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
304
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
305
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
306
+ M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
307
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
308
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
309
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
310
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
311
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
312
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
313
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
314
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
315
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
316
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
317
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
318
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
319
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
320
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
321
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function i5(e){return"toText"in e}class Wa{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){return this.children.map(t=>{if(i5(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var Mf={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},s5={ex:!0,em:!0,mu:!0},Ig=function(t){return typeof t!="string"&&(t=t.unit),t in Mf||t in s5||t==="ex"},vr=function(t,r){var n;if(t.unit in Mf)n=Mf[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new It("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Mt=function(t){return+t.toFixed(4)+"em"},$s=function(t){return t.filter(r=>r).join(" ")},Ed=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=I3(n)+":"+i+";")}return r},qg=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},Mg=function(t){var r=document.createElement(t);r.className=$s(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},a5=/[\s"'>/=\x00-\x1f]/,Dg=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+en($s(this.classes))+'"');var n=Ed(this.style);n&&(r+=' style="'+en(n)+'"');for(var i of Object.keys(this.attributes)){if(a5.test(i))throw new It("Invalid attribute name '"+i+"'");r+=" "+i+'="'+en(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Ya{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,qg.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Mg.call(this,"span")}toMarkup(){return Dg.call(this,"span")}}class fc{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,qg.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Mg.call(this,"a")}toMarkup(){return Dg.call(this,"a")}}class l5{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+en(this.src)+'"'+(' alt="'+en(this.alt)+'"'),r=Ed(this.style);return r&&(t+=' style="'+en(r)+'"'),t+="'/>",t}}var o5={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Rn{constructor(t,r,n,i,s,o,f,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=s||0,this.width=o||0,this.classes=f||[],this.style=h||{},this.maxFontSize=0;var d=G3(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=o5[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Mt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=$s(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=en($s(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Mt(this.italic)+";"),n+=Ed(this.style),n&&(t=!0,r+=' style="'+en(n)+'"');var i=en(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class qi{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+en(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class fs{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Tp[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+en(this.alternate)+'"/>':'<path d="'+en(Tp[this.pathName])+'"/>'}}class Df{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+en(this.attributes[r])+'"';return t+="/>",t}}function u5(e){if(e instanceof Rn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function c5(e){if(e instanceof Ya)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var $5=e=>e instanceof Ya||e instanceof fc||e instanceof Wa,ci={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Co={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Rp={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function f5(e,t){ci[e]=t}function Ad(e,t,r){if(!ci[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ci[t][n];if(!i&&e[0]in Rp&&(n=Rp[e[0]].charCodeAt(0),i=ci[t][n]),!i&&r==="text"&&Ng(n)&&(i=ci[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var l$={};function d5(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!l$[t]){var r=l$[t]={cssEmPerMu:Co.quad[t]/18};for(var n in Co)Co.hasOwnProperty(n)&&(r[n]=Co[n][t])}return l$[t]}var pr={math:{},text:{}};function _e(e,t,r,n,i,s){pr[e][i]={font:t,group:r,replace:n},s&&n&&(pr[e][n]=pr[e][i])}var Te="math",Ct="text",Ve="main",ut="ams",_r="accent-token",Lt="bin",dn="close",Ga="inner",Bt="mathord",Ir="op-token",qn="open",ao="punct",ct="rel",Fi="spacing",mt="textord";_e(Te,Ve,ct,"≡","\\equiv",!0);_e(Te,Ve,ct,"≺","\\prec",!0);_e(Te,Ve,ct,"≻","\\succ",!0);_e(Te,Ve,ct,"∼","\\sim",!0);_e(Te,Ve,ct,"⊥","\\perp");_e(Te,Ve,ct,"⪯","\\preceq",!0);_e(Te,Ve,ct,"⪰","\\succeq",!0);_e(Te,Ve,ct,"≃","\\simeq",!0);_e(Te,Ve,ct,"∣","\\mid",!0);_e(Te,Ve,ct,"≪","\\ll",!0);_e(Te,Ve,ct,"≫","\\gg",!0);_e(Te,Ve,ct,"≍","\\asymp",!0);_e(Te,Ve,ct,"∥","\\parallel");_e(Te,Ve,ct,"⋈","\\bowtie",!0);_e(Te,Ve,ct,"⌣","\\smile",!0);_e(Te,Ve,ct,"⊑","\\sqsubseteq",!0);_e(Te,Ve,ct,"⊒","\\sqsupseteq",!0);_e(Te,Ve,ct,"≐","\\doteq",!0);_e(Te,Ve,ct,"⌢","\\frown",!0);_e(Te,Ve,ct,"∋","\\ni",!0);_e(Te,Ve,ct,"∝","\\propto",!0);_e(Te,Ve,ct,"⊢","\\vdash",!0);_e(Te,Ve,ct,"⊣","\\dashv",!0);_e(Te,Ve,ct,"∋","\\owns");_e(Te,Ve,ao,".","\\ldotp");_e(Te,Ve,ao,"⋅","\\cdotp");_e(Te,Ve,ao,"⋅","·");_e(Ct,Ve,mt,"⋅","·");_e(Te,Ve,mt,"#","\\#");_e(Ct,Ve,mt,"#","\\#");_e(Te,Ve,mt,"&","\\&");_e(Ct,Ve,mt,"&","\\&");_e(Te,Ve,mt,"ℵ","\\aleph",!0);_e(Te,Ve,mt,"∀","\\forall",!0);_e(Te,Ve,mt,"ℏ","\\hbar",!0);_e(Te,Ve,mt,"∃","\\exists",!0);_e(Te,Ve,mt,"∇","\\nabla",!0);_e(Te,Ve,mt,"♭","\\flat",!0);_e(Te,Ve,mt,"ℓ","\\ell",!0);_e(Te,Ve,mt,"♮","\\natural",!0);_e(Te,Ve,mt,"♣","\\clubsuit",!0);_e(Te,Ve,mt,"℘","\\wp",!0);_e(Te,Ve,mt,"♯","\\sharp",!0);_e(Te,Ve,mt,"♢","\\diamondsuit",!0);_e(Te,Ve,mt,"ℜ","\\Re",!0);_e(Te,Ve,mt,"♡","\\heartsuit",!0);_e(Te,Ve,mt,"ℑ","\\Im",!0);_e(Te,Ve,mt,"♠","\\spadesuit",!0);_e(Te,Ve,mt,"§","\\S",!0);_e(Ct,Ve,mt,"§","\\S");_e(Te,Ve,mt,"¶","\\P",!0);_e(Ct,Ve,mt,"¶","\\P");_e(Te,Ve,mt,"†","\\dag");_e(Ct,Ve,mt,"†","\\dag");_e(Ct,Ve,mt,"†","\\textdagger");_e(Te,Ve,mt,"‡","\\ddag");_e(Ct,Ve,mt,"‡","\\ddag");_e(Ct,Ve,mt,"‡","\\textdaggerdbl");_e(Te,Ve,dn,"⎱","\\rmoustache",!0);_e(Te,Ve,qn,"⎰","\\lmoustache",!0);_e(Te,Ve,dn,"⟯","\\rgroup",!0);_e(Te,Ve,qn,"⟮","\\lgroup",!0);_e(Te,Ve,Lt,"∓","\\mp",!0);_e(Te,Ve,Lt,"⊖","\\ominus",!0);_e(Te,Ve,Lt,"⊎","\\uplus",!0);_e(Te,Ve,Lt,"⊓","\\sqcap",!0);_e(Te,Ve,Lt,"∗","\\ast");_e(Te,Ve,Lt,"⊔","\\sqcup",!0);_e(Te,Ve,Lt,"◯","\\bigcirc",!0);_e(Te,Ve,Lt,"∙","\\bullet",!0);_e(Te,Ve,Lt,"‡","\\ddagger");_e(Te,Ve,Lt,"≀","\\wr",!0);_e(Te,Ve,Lt,"⨿","\\amalg");_e(Te,Ve,Lt,"&","\\And");_e(Te,Ve,ct,"⟵","\\longleftarrow",!0);_e(Te,Ve,ct,"⇐","\\Leftarrow",!0);_e(Te,Ve,ct,"⟸","\\Longleftarrow",!0);_e(Te,Ve,ct,"⟶","\\longrightarrow",!0);_e(Te,Ve,ct,"⇒","\\Rightarrow",!0);_e(Te,Ve,ct,"⟹","\\Longrightarrow",!0);_e(Te,Ve,ct,"↔","\\leftrightarrow",!0);_e(Te,Ve,ct,"⟷","\\longleftrightarrow",!0);_e(Te,Ve,ct,"⇔","\\Leftrightarrow",!0);_e(Te,Ve,ct,"⟺","\\Longleftrightarrow",!0);_e(Te,Ve,ct,"↦","\\mapsto",!0);_e(Te,Ve,ct,"⟼","\\longmapsto",!0);_e(Te,Ve,ct,"↗","\\nearrow",!0);_e(Te,Ve,ct,"↩","\\hookleftarrow",!0);_e(Te,Ve,ct,"↪","\\hookrightarrow",!0);_e(Te,Ve,ct,"↘","\\searrow",!0);_e(Te,Ve,ct,"↼","\\leftharpoonup",!0);_e(Te,Ve,ct,"⇀","\\rightharpoonup",!0);_e(Te,Ve,ct,"↙","\\swarrow",!0);_e(Te,Ve,ct,"↽","\\leftharpoondown",!0);_e(Te,Ve,ct,"⇁","\\rightharpoondown",!0);_e(Te,Ve,ct,"↖","\\nwarrow",!0);_e(Te,Ve,ct,"⇌","\\rightleftharpoons",!0);_e(Te,ut,ct,"≮","\\nless",!0);_e(Te,ut,ct,"","\\@nleqslant");_e(Te,ut,ct,"","\\@nleqq");_e(Te,ut,ct,"⪇","\\lneq",!0);_e(Te,ut,ct,"≨","\\lneqq",!0);_e(Te,ut,ct,"","\\@lvertneqq");_e(Te,ut,ct,"⋦","\\lnsim",!0);_e(Te,ut,ct,"⪉","\\lnapprox",!0);_e(Te,ut,ct,"⊀","\\nprec",!0);_e(Te,ut,ct,"⋠","\\npreceq",!0);_e(Te,ut,ct,"⋨","\\precnsim",!0);_e(Te,ut,ct,"⪹","\\precnapprox",!0);_e(Te,ut,ct,"≁","\\nsim",!0);_e(Te,ut,ct,"","\\@nshortmid");_e(Te,ut,ct,"∤","\\nmid",!0);_e(Te,ut,ct,"⊬","\\nvdash",!0);_e(Te,ut,ct,"⊭","\\nvDash",!0);_e(Te,ut,ct,"⋪","\\ntriangleleft");_e(Te,ut,ct,"⋬","\\ntrianglelefteq",!0);_e(Te,ut,ct,"⊊","\\subsetneq",!0);_e(Te,ut,ct,"","\\@varsubsetneq");_e(Te,ut,ct,"⫋","\\subsetneqq",!0);_e(Te,ut,ct,"","\\@varsubsetneqq");_e(Te,ut,ct,"≯","\\ngtr",!0);_e(Te,ut,ct,"","\\@ngeqslant");_e(Te,ut,ct,"","\\@ngeqq");_e(Te,ut,ct,"⪈","\\gneq",!0);_e(Te,ut,ct,"≩","\\gneqq",!0);_e(Te,ut,ct,"","\\@gvertneqq");_e(Te,ut,ct,"⋧","\\gnsim",!0);_e(Te,ut,ct,"⪊","\\gnapprox",!0);_e(Te,ut,ct,"⊁","\\nsucc",!0);_e(Te,ut,ct,"⋡","\\nsucceq",!0);_e(Te,ut,ct,"⋩","\\succnsim",!0);_e(Te,ut,ct,"⪺","\\succnapprox",!0);_e(Te,ut,ct,"≆","\\ncong",!0);_e(Te,ut,ct,"","\\@nshortparallel");_e(Te,ut,ct,"∦","\\nparallel",!0);_e(Te,ut,ct,"⊯","\\nVDash",!0);_e(Te,ut,ct,"⋫","\\ntriangleright");_e(Te,ut,ct,"⋭","\\ntrianglerighteq",!0);_e(Te,ut,ct,"","\\@nsupseteqq");_e(Te,ut,ct,"⊋","\\supsetneq",!0);_e(Te,ut,ct,"","\\@varsupsetneq");_e(Te,ut,ct,"⫌","\\supsetneqq",!0);_e(Te,ut,ct,"","\\@varsupsetneqq");_e(Te,ut,ct,"⊮","\\nVdash",!0);_e(Te,ut,ct,"⪵","\\precneqq",!0);_e(Te,ut,ct,"⪶","\\succneqq",!0);_e(Te,ut,ct,"","\\@nsubseteqq");_e(Te,ut,Lt,"⊴","\\unlhd");_e(Te,ut,Lt,"⊵","\\unrhd");_e(Te,ut,ct,"↚","\\nleftarrow",!0);_e(Te,ut,ct,"↛","\\nrightarrow",!0);_e(Te,ut,ct,"⇍","\\nLeftarrow",!0);_e(Te,ut,ct,"⇏","\\nRightarrow",!0);_e(Te,ut,ct,"↮","\\nleftrightarrow",!0);_e(Te,ut,ct,"⇎","\\nLeftrightarrow",!0);_e(Te,ut,ct,"△","\\vartriangle");_e(Te,ut,mt,"ℏ","\\hslash");_e(Te,ut,mt,"▽","\\triangledown");_e(Te,ut,mt,"◊","\\lozenge");_e(Te,ut,mt,"Ⓢ","\\circledS");_e(Te,ut,mt,"®","\\circledR");_e(Ct,ut,mt,"®","\\circledR");_e(Te,ut,mt,"∡","\\measuredangle",!0);_e(Te,ut,mt,"∄","\\nexists");_e(Te,ut,mt,"℧","\\mho");_e(Te,ut,mt,"Ⅎ","\\Finv",!0);_e(Te,ut,mt,"⅁","\\Game",!0);_e(Te,ut,mt,"‵","\\backprime");_e(Te,ut,mt,"▲","\\blacktriangle");_e(Te,ut,mt,"▼","\\blacktriangledown");_e(Te,ut,mt,"■","\\blacksquare");_e(Te,ut,mt,"⧫","\\blacklozenge");_e(Te,ut,mt,"★","\\bigstar");_e(Te,ut,mt,"∢","\\sphericalangle",!0);_e(Te,ut,mt,"∁","\\complement",!0);_e(Te,ut,mt,"ð","\\eth",!0);_e(Ct,Ve,mt,"ð","ð");_e(Te,ut,mt,"╱","\\diagup");_e(Te,ut,mt,"╲","\\diagdown");_e(Te,ut,mt,"□","\\square");_e(Te,ut,mt,"□","\\Box");_e(Te,ut,mt,"◊","\\Diamond");_e(Te,ut,mt,"¥","\\yen",!0);_e(Ct,ut,mt,"¥","\\yen",!0);_e(Te,ut,mt,"✓","\\checkmark",!0);_e(Ct,ut,mt,"✓","\\checkmark");_e(Te,ut,mt,"ℶ","\\beth",!0);_e(Te,ut,mt,"ℸ","\\daleth",!0);_e(Te,ut,mt,"ℷ","\\gimel",!0);_e(Te,ut,mt,"ϝ","\\digamma",!0);_e(Te,ut,mt,"ϰ","\\varkappa");_e(Te,ut,qn,"┌","\\@ulcorner",!0);_e(Te,ut,dn,"┐","\\@urcorner",!0);_e(Te,ut,qn,"└","\\@llcorner",!0);_e(Te,ut,dn,"┘","\\@lrcorner",!0);_e(Te,ut,ct,"≦","\\leqq",!0);_e(Te,ut,ct,"⩽","\\leqslant",!0);_e(Te,ut,ct,"⪕","\\eqslantless",!0);_e(Te,ut,ct,"≲","\\lesssim",!0);_e(Te,ut,ct,"⪅","\\lessapprox",!0);_e(Te,ut,ct,"≊","\\approxeq",!0);_e(Te,ut,Lt,"⋖","\\lessdot");_e(Te,ut,ct,"⋘","\\lll",!0);_e(Te,ut,ct,"≶","\\lessgtr",!0);_e(Te,ut,ct,"⋚","\\lesseqgtr",!0);_e(Te,ut,ct,"⪋","\\lesseqqgtr",!0);_e(Te,ut,ct,"≑","\\doteqdot");_e(Te,ut,ct,"≓","\\risingdotseq",!0);_e(Te,ut,ct,"≒","\\fallingdotseq",!0);_e(Te,ut,ct,"∽","\\backsim",!0);_e(Te,ut,ct,"⋍","\\backsimeq",!0);_e(Te,ut,ct,"⫅","\\subseteqq",!0);_e(Te,ut,ct,"⋐","\\Subset",!0);_e(Te,ut,ct,"⊏","\\sqsubset",!0);_e(Te,ut,ct,"≼","\\preccurlyeq",!0);_e(Te,ut,ct,"⋞","\\curlyeqprec",!0);_e(Te,ut,ct,"≾","\\precsim",!0);_e(Te,ut,ct,"⪷","\\precapprox",!0);_e(Te,ut,ct,"⊲","\\vartriangleleft");_e(Te,ut,ct,"⊴","\\trianglelefteq");_e(Te,ut,ct,"⊨","\\vDash",!0);_e(Te,ut,ct,"⊪","\\Vvdash",!0);_e(Te,ut,ct,"⌣","\\smallsmile");_e(Te,ut,ct,"⌢","\\smallfrown");_e(Te,ut,ct,"≏","\\bumpeq",!0);_e(Te,ut,ct,"≎","\\Bumpeq",!0);_e(Te,ut,ct,"≧","\\geqq",!0);_e(Te,ut,ct,"⩾","\\geqslant",!0);_e(Te,ut,ct,"⪖","\\eqslantgtr",!0);_e(Te,ut,ct,"≳","\\gtrsim",!0);_e(Te,ut,ct,"⪆","\\gtrapprox",!0);_e(Te,ut,Lt,"⋗","\\gtrdot");_e(Te,ut,ct,"⋙","\\ggg",!0);_e(Te,ut,ct,"≷","\\gtrless",!0);_e(Te,ut,ct,"⋛","\\gtreqless",!0);_e(Te,ut,ct,"⪌","\\gtreqqless",!0);_e(Te,ut,ct,"≖","\\eqcirc",!0);_e(Te,ut,ct,"≗","\\circeq",!0);_e(Te,ut,ct,"≜","\\triangleq",!0);_e(Te,ut,ct,"∼","\\thicksim");_e(Te,ut,ct,"≈","\\thickapprox");_e(Te,ut,ct,"⫆","\\supseteqq",!0);_e(Te,ut,ct,"⋑","\\Supset",!0);_e(Te,ut,ct,"⊐","\\sqsupset",!0);_e(Te,ut,ct,"≽","\\succcurlyeq",!0);_e(Te,ut,ct,"⋟","\\curlyeqsucc",!0);_e(Te,ut,ct,"≿","\\succsim",!0);_e(Te,ut,ct,"⪸","\\succapprox",!0);_e(Te,ut,ct,"⊳","\\vartriangleright");_e(Te,ut,ct,"⊵","\\trianglerighteq");_e(Te,ut,ct,"⊩","\\Vdash",!0);_e(Te,ut,ct,"∣","\\shortmid");_e(Te,ut,ct,"∥","\\shortparallel");_e(Te,ut,ct,"≬","\\between",!0);_e(Te,ut,ct,"⋔","\\pitchfork",!0);_e(Te,ut,ct,"∝","\\varpropto");_e(Te,ut,ct,"◀","\\blacktriangleleft");_e(Te,ut,ct,"∴","\\therefore",!0);_e(Te,ut,ct,"∍","\\backepsilon");_e(Te,ut,ct,"▶","\\blacktriangleright");_e(Te,ut,ct,"∵","\\because",!0);_e(Te,ut,ct,"⋘","\\llless");_e(Te,ut,ct,"⋙","\\gggtr");_e(Te,ut,Lt,"⊲","\\lhd");_e(Te,ut,Lt,"⊳","\\rhd");_e(Te,ut,ct,"≂","\\eqsim",!0);_e(Te,Ve,ct,"⋈","\\Join");_e(Te,ut,ct,"≑","\\Doteq",!0);_e(Te,ut,Lt,"∔","\\dotplus",!0);_e(Te,ut,Lt,"∖","\\smallsetminus");_e(Te,ut,Lt,"⋒","\\Cap",!0);_e(Te,ut,Lt,"⋓","\\Cup",!0);_e(Te,ut,Lt,"⩞","\\doublebarwedge",!0);_e(Te,ut,Lt,"⊟","\\boxminus",!0);_e(Te,ut,Lt,"⊞","\\boxplus",!0);_e(Te,ut,Lt,"⋇","\\divideontimes",!0);_e(Te,ut,Lt,"⋉","\\ltimes",!0);_e(Te,ut,Lt,"⋊","\\rtimes",!0);_e(Te,ut,Lt,"⋋","\\leftthreetimes",!0);_e(Te,ut,Lt,"⋌","\\rightthreetimes",!0);_e(Te,ut,Lt,"⋏","\\curlywedge",!0);_e(Te,ut,Lt,"⋎","\\curlyvee",!0);_e(Te,ut,Lt,"⊝","\\circleddash",!0);_e(Te,ut,Lt,"⊛","\\circledast",!0);_e(Te,ut,Lt,"⋅","\\centerdot");_e(Te,ut,Lt,"⊺","\\intercal",!0);_e(Te,ut,Lt,"⋒","\\doublecap");_e(Te,ut,Lt,"⋓","\\doublecup");_e(Te,ut,Lt,"⊠","\\boxtimes",!0);_e(Te,ut,ct,"⇢","\\dashrightarrow",!0);_e(Te,ut,ct,"⇠","\\dashleftarrow",!0);_e(Te,ut,ct,"⇇","\\leftleftarrows",!0);_e(Te,ut,ct,"⇆","\\leftrightarrows",!0);_e(Te,ut,ct,"⇚","\\Lleftarrow",!0);_e(Te,ut,ct,"↞","\\twoheadleftarrow",!0);_e(Te,ut,ct,"↢","\\leftarrowtail",!0);_e(Te,ut,ct,"↫","\\looparrowleft",!0);_e(Te,ut,ct,"⇋","\\leftrightharpoons",!0);_e(Te,ut,ct,"↶","\\curvearrowleft",!0);_e(Te,ut,ct,"↺","\\circlearrowleft",!0);_e(Te,ut,ct,"↰","\\Lsh",!0);_e(Te,ut,ct,"⇈","\\upuparrows",!0);_e(Te,ut,ct,"↿","\\upharpoonleft",!0);_e(Te,ut,ct,"⇃","\\downharpoonleft",!0);_e(Te,Ve,ct,"⊶","\\origof",!0);_e(Te,Ve,ct,"⊷","\\imageof",!0);_e(Te,ut,ct,"⊸","\\multimap",!0);_e(Te,ut,ct,"↭","\\leftrightsquigarrow",!0);_e(Te,ut,ct,"⇉","\\rightrightarrows",!0);_e(Te,ut,ct,"⇄","\\rightleftarrows",!0);_e(Te,ut,ct,"↠","\\twoheadrightarrow",!0);_e(Te,ut,ct,"↣","\\rightarrowtail",!0);_e(Te,ut,ct,"↬","\\looparrowright",!0);_e(Te,ut,ct,"↷","\\curvearrowright",!0);_e(Te,ut,ct,"↻","\\circlearrowright",!0);_e(Te,ut,ct,"↱","\\Rsh",!0);_e(Te,ut,ct,"⇊","\\downdownarrows",!0);_e(Te,ut,ct,"↾","\\upharpoonright",!0);_e(Te,ut,ct,"⇂","\\downharpoonright",!0);_e(Te,ut,ct,"⇝","\\rightsquigarrow",!0);_e(Te,ut,ct,"⇝","\\leadsto");_e(Te,ut,ct,"⇛","\\Rrightarrow",!0);_e(Te,ut,ct,"↾","\\restriction");_e(Te,Ve,mt,"‘","`");_e(Te,Ve,mt,"$","\\$");_e(Ct,Ve,mt,"$","\\$");_e(Ct,Ve,mt,"$","\\textdollar");_e(Te,Ve,mt,"%","\\%");_e(Ct,Ve,mt,"%","\\%");_e(Te,Ve,mt,"_","\\_");_e(Ct,Ve,mt,"_","\\_");_e(Ct,Ve,mt,"_","\\textunderscore");_e(Te,Ve,mt,"∠","\\angle",!0);_e(Te,Ve,mt,"∞","\\infty",!0);_e(Te,Ve,mt,"′","\\prime");_e(Te,Ve,mt,"△","\\triangle");_e(Te,Ve,mt,"Γ","\\Gamma",!0);_e(Te,Ve,mt,"Δ","\\Delta",!0);_e(Te,Ve,mt,"Θ","\\Theta",!0);_e(Te,Ve,mt,"Λ","\\Lambda",!0);_e(Te,Ve,mt,"Ξ","\\Xi",!0);_e(Te,Ve,mt,"Π","\\Pi",!0);_e(Te,Ve,mt,"Σ","\\Sigma",!0);_e(Te,Ve,mt,"Υ","\\Upsilon",!0);_e(Te,Ve,mt,"Φ","\\Phi",!0);_e(Te,Ve,mt,"Ψ","\\Psi",!0);_e(Te,Ve,mt,"Ω","\\Omega",!0);_e(Te,Ve,mt,"A","Α");_e(Te,Ve,mt,"B","Β");_e(Te,Ve,mt,"E","Ε");_e(Te,Ve,mt,"Z","Ζ");_e(Te,Ve,mt,"H","Η");_e(Te,Ve,mt,"I","Ι");_e(Te,Ve,mt,"K","Κ");_e(Te,Ve,mt,"M","Μ");_e(Te,Ve,mt,"N","Ν");_e(Te,Ve,mt,"O","Ο");_e(Te,Ve,mt,"P","Ρ");_e(Te,Ve,mt,"T","Τ");_e(Te,Ve,mt,"X","Χ");_e(Te,Ve,mt,"¬","\\neg",!0);_e(Te,Ve,mt,"¬","\\lnot");_e(Te,Ve,mt,"⊤","\\top");_e(Te,Ve,mt,"⊥","\\bot");_e(Te,Ve,mt,"∅","\\emptyset");_e(Te,ut,mt,"∅","\\varnothing");_e(Te,Ve,Bt,"α","\\alpha",!0);_e(Te,Ve,Bt,"β","\\beta",!0);_e(Te,Ve,Bt,"γ","\\gamma",!0);_e(Te,Ve,Bt,"δ","\\delta",!0);_e(Te,Ve,Bt,"ϵ","\\epsilon",!0);_e(Te,Ve,Bt,"ζ","\\zeta",!0);_e(Te,Ve,Bt,"η","\\eta",!0);_e(Te,Ve,Bt,"θ","\\theta",!0);_e(Te,Ve,Bt,"ι","\\iota",!0);_e(Te,Ve,Bt,"κ","\\kappa",!0);_e(Te,Ve,Bt,"λ","\\lambda",!0);_e(Te,Ve,Bt,"μ","\\mu",!0);_e(Te,Ve,Bt,"ν","\\nu",!0);_e(Te,Ve,Bt,"ξ","\\xi",!0);_e(Te,Ve,Bt,"ο","\\omicron",!0);_e(Te,Ve,Bt,"π","\\pi",!0);_e(Te,Ve,Bt,"ρ","\\rho",!0);_e(Te,Ve,Bt,"σ","\\sigma",!0);_e(Te,Ve,Bt,"τ","\\tau",!0);_e(Te,Ve,Bt,"υ","\\upsilon",!0);_e(Te,Ve,Bt,"ϕ","\\phi",!0);_e(Te,Ve,Bt,"χ","\\chi",!0);_e(Te,Ve,Bt,"ψ","\\psi",!0);_e(Te,Ve,Bt,"ω","\\omega",!0);_e(Te,Ve,Bt,"ε","\\varepsilon",!0);_e(Te,Ve,Bt,"ϑ","\\vartheta",!0);_e(Te,Ve,Bt,"ϖ","\\varpi",!0);_e(Te,Ve,Bt,"ϱ","\\varrho",!0);_e(Te,Ve,Bt,"ς","\\varsigma",!0);_e(Te,Ve,Bt,"φ","\\varphi",!0);_e(Te,Ve,Lt,"∗","*",!0);_e(Te,Ve,Lt,"+","+");_e(Te,Ve,Lt,"−","-",!0);_e(Te,Ve,Lt,"⋅","\\cdot",!0);_e(Te,Ve,Lt,"∘","\\circ",!0);_e(Te,Ve,Lt,"÷","\\div",!0);_e(Te,Ve,Lt,"±","\\pm",!0);_e(Te,Ve,Lt,"×","\\times",!0);_e(Te,Ve,Lt,"∩","\\cap",!0);_e(Te,Ve,Lt,"∪","\\cup",!0);_e(Te,Ve,Lt,"∖","\\setminus",!0);_e(Te,Ve,Lt,"∧","\\land");_e(Te,Ve,Lt,"∨","\\lor");_e(Te,Ve,Lt,"∧","\\wedge",!0);_e(Te,Ve,Lt,"∨","\\vee",!0);_e(Te,Ve,mt,"√","\\surd");_e(Te,Ve,qn,"⟨","\\langle",!0);_e(Te,Ve,qn,"∣","\\lvert");_e(Te,Ve,qn,"∥","\\lVert");_e(Te,Ve,dn,"?","?");_e(Te,Ve,dn,"!","!");_e(Te,Ve,dn,"⟩","\\rangle",!0);_e(Te,Ve,dn,"∣","\\rvert");_e(Te,Ve,dn,"∥","\\rVert");_e(Te,Ve,ct,"=","=");_e(Te,Ve,ct,":",":");_e(Te,Ve,ct,"≈","\\approx",!0);_e(Te,Ve,ct,"≅","\\cong",!0);_e(Te,Ve,ct,"≥","\\ge");_e(Te,Ve,ct,"≥","\\geq",!0);_e(Te,Ve,ct,"←","\\gets");_e(Te,Ve,ct,">","\\gt",!0);_e(Te,Ve,ct,"∈","\\in",!0);_e(Te,Ve,ct,"","\\@not");_e(Te,Ve,ct,"⊂","\\subset",!0);_e(Te,Ve,ct,"⊃","\\supset",!0);_e(Te,Ve,ct,"⊆","\\subseteq",!0);_e(Te,Ve,ct,"⊇","\\supseteq",!0);_e(Te,ut,ct,"⊈","\\nsubseteq",!0);_e(Te,ut,ct,"⊉","\\nsupseteq",!0);_e(Te,Ve,ct,"⊨","\\models");_e(Te,Ve,ct,"←","\\leftarrow",!0);_e(Te,Ve,ct,"≤","\\le");_e(Te,Ve,ct,"≤","\\leq",!0);_e(Te,Ve,ct,"<","\\lt",!0);_e(Te,Ve,ct,"→","\\rightarrow",!0);_e(Te,Ve,ct,"→","\\to");_e(Te,ut,ct,"≱","\\ngeq",!0);_e(Te,ut,ct,"≰","\\nleq",!0);_e(Te,Ve,Fi," ","\\ ");_e(Te,Ve,Fi," ","\\space");_e(Te,Ve,Fi," ","\\nobreakspace");_e(Ct,Ve,Fi," ","\\ ");_e(Ct,Ve,Fi," "," ");_e(Ct,Ve,Fi," ","\\space");_e(Ct,Ve,Fi," ","\\nobreakspace");_e(Te,Ve,Fi,"","\\nobreak");_e(Te,Ve,Fi,"","\\allowbreak");_e(Te,Ve,ao,",",",");_e(Te,Ve,ao,";",";");_e(Te,ut,Lt,"⊼","\\barwedge",!0);_e(Te,ut,Lt,"⊻","\\veebar",!0);_e(Te,Ve,Lt,"⊙","\\odot",!0);_e(Te,Ve,Lt,"⊕","\\oplus",!0);_e(Te,Ve,Lt,"⊗","\\otimes",!0);_e(Te,Ve,mt,"∂","\\partial",!0);_e(Te,Ve,Lt,"⊘","\\oslash",!0);_e(Te,ut,Lt,"⊚","\\circledcirc",!0);_e(Te,ut,Lt,"⊡","\\boxdot",!0);_e(Te,Ve,Lt,"△","\\bigtriangleup");_e(Te,Ve,Lt,"▽","\\bigtriangledown");_e(Te,Ve,Lt,"†","\\dagger");_e(Te,Ve,Lt,"⋄","\\diamond");_e(Te,Ve,Lt,"⋆","\\star");_e(Te,Ve,Lt,"◃","\\triangleleft");_e(Te,Ve,Lt,"▹","\\triangleright");_e(Te,Ve,qn,"{","\\{");_e(Ct,Ve,mt,"{","\\{");_e(Ct,Ve,mt,"{","\\textbraceleft");_e(Te,Ve,dn,"}","\\}");_e(Ct,Ve,mt,"}","\\}");_e(Ct,Ve,mt,"}","\\textbraceright");_e(Te,Ve,qn,"{","\\lbrace");_e(Te,Ve,dn,"}","\\rbrace");_e(Te,Ve,qn,"[","\\lbrack",!0);_e(Ct,Ve,mt,"[","\\lbrack",!0);_e(Te,Ve,dn,"]","\\rbrack",!0);_e(Ct,Ve,mt,"]","\\rbrack",!0);_e(Te,Ve,qn,"(","\\lparen",!0);_e(Te,Ve,dn,")","\\rparen",!0);_e(Ct,Ve,mt,"<","\\textless",!0);_e(Ct,Ve,mt,">","\\textgreater",!0);_e(Te,Ve,qn,"⌊","\\lfloor",!0);_e(Te,Ve,dn,"⌋","\\rfloor",!0);_e(Te,Ve,qn,"⌈","\\lceil",!0);_e(Te,Ve,dn,"⌉","\\rceil",!0);_e(Te,Ve,mt,"\\","\\backslash");_e(Te,Ve,mt,"∣","|");_e(Te,Ve,mt,"∣","\\vert");_e(Ct,Ve,mt,"|","\\textbar",!0);_e(Te,Ve,mt,"∥","\\|");_e(Te,Ve,mt,"∥","\\Vert");_e(Ct,Ve,mt,"∥","\\textbardbl");_e(Ct,Ve,mt,"~","\\textasciitilde");_e(Ct,Ve,mt,"\\","\\textbackslash");_e(Ct,Ve,mt,"^","\\textasciicircum");_e(Te,Ve,ct,"↑","\\uparrow",!0);_e(Te,Ve,ct,"⇑","\\Uparrow",!0);_e(Te,Ve,ct,"↓","\\downarrow",!0);_e(Te,Ve,ct,"⇓","\\Downarrow",!0);_e(Te,Ve,ct,"↕","\\updownarrow",!0);_e(Te,Ve,ct,"⇕","\\Updownarrow",!0);_e(Te,Ve,Ir,"∐","\\coprod");_e(Te,Ve,Ir,"⋁","\\bigvee");_e(Te,Ve,Ir,"⋀","\\bigwedge");_e(Te,Ve,Ir,"⨄","\\biguplus");_e(Te,Ve,Ir,"⋂","\\bigcap");_e(Te,Ve,Ir,"⋃","\\bigcup");_e(Te,Ve,Ir,"∫","\\int");_e(Te,Ve,Ir,"∫","\\intop");_e(Te,Ve,Ir,"∬","\\iint");_e(Te,Ve,Ir,"∭","\\iiint");_e(Te,Ve,Ir,"∏","\\prod");_e(Te,Ve,Ir,"∑","\\sum");_e(Te,Ve,Ir,"⨂","\\bigotimes");_e(Te,Ve,Ir,"⨁","\\bigoplus");_e(Te,Ve,Ir,"⨀","\\bigodot");_e(Te,Ve,Ir,"∮","\\oint");_e(Te,Ve,Ir,"∯","\\oiint");_e(Te,Ve,Ir,"∰","\\oiiint");_e(Te,Ve,Ir,"⨆","\\bigsqcup");_e(Te,Ve,Ir,"∫","\\smallint");_e(Ct,Ve,Ga,"…","\\textellipsis");_e(Te,Ve,Ga,"…","\\mathellipsis");_e(Ct,Ve,Ga,"…","\\ldots",!0);_e(Te,Ve,Ga,"…","\\ldots",!0);_e(Te,Ve,Ga,"⋯","\\@cdots",!0);_e(Te,Ve,Ga,"⋱","\\ddots",!0);_e(Te,Ve,mt,"⋮","\\varvdots");_e(Ct,Ve,mt,"⋮","\\varvdots");_e(Te,Ve,_r,"ˊ","\\acute");_e(Te,Ve,_r,"ˋ","\\grave");_e(Te,Ve,_r,"¨","\\ddot");_e(Te,Ve,_r,"~","\\tilde");_e(Te,Ve,_r,"ˉ","\\bar");_e(Te,Ve,_r,"˘","\\breve");_e(Te,Ve,_r,"ˇ","\\check");_e(Te,Ve,_r,"^","\\hat");_e(Te,Ve,_r,"⃗","\\vec");_e(Te,Ve,_r,"˙","\\dot");_e(Te,Ve,_r,"˚","\\mathring");_e(Te,Ve,Bt,"","\\@imath");_e(Te,Ve,Bt,"","\\@jmath");_e(Te,Ve,mt,"ı","ı");_e(Te,Ve,mt,"ȷ","ȷ");_e(Ct,Ve,mt,"ı","\\i",!0);_e(Ct,Ve,mt,"ȷ","\\j",!0);_e(Ct,Ve,mt,"ß","\\ss",!0);_e(Ct,Ve,mt,"æ","\\ae",!0);_e(Ct,Ve,mt,"œ","\\oe",!0);_e(Ct,Ve,mt,"ø","\\o",!0);_e(Ct,Ve,mt,"Æ","\\AE",!0);_e(Ct,Ve,mt,"Œ","\\OE",!0);_e(Ct,Ve,mt,"Ø","\\O",!0);_e(Ct,Ve,_r,"ˊ","\\'");_e(Ct,Ve,_r,"ˋ","\\`");_e(Ct,Ve,_r,"ˆ","\\^");_e(Ct,Ve,_r,"˜","\\~");_e(Ct,Ve,_r,"ˉ","\\=");_e(Ct,Ve,_r,"˘","\\u");_e(Ct,Ve,_r,"˙","\\.");_e(Ct,Ve,_r,"¸","\\c");_e(Ct,Ve,_r,"˚","\\r");_e(Ct,Ve,_r,"ˇ","\\v");_e(Ct,Ve,_r,"¨",'\\"');_e(Ct,Ve,_r,"˝","\\H");_e(Ct,Ve,_r,"◯","\\textcircled");var Lg={"--":!0,"---":!0,"``":!0,"''":!0};_e(Ct,Ve,mt,"–","--",!0);_e(Ct,Ve,mt,"–","\\textendash");_e(Ct,Ve,mt,"—","---",!0);_e(Ct,Ve,mt,"—","\\textemdash");_e(Ct,Ve,mt,"‘","`",!0);_e(Ct,Ve,mt,"‘","\\textquoteleft");_e(Ct,Ve,mt,"’","'",!0);_e(Ct,Ve,mt,"’","\\textquoteright");_e(Ct,Ve,mt,"“","``",!0);_e(Ct,Ve,mt,"“","\\textquotedblleft");_e(Ct,Ve,mt,"”","''",!0);_e(Ct,Ve,mt,"”","\\textquotedblright");_e(Te,Ve,mt,"°","\\degree",!0);_e(Ct,Ve,mt,"°","\\degree");_e(Ct,Ve,mt,"°","\\textdegree",!0);_e(Te,Ve,mt,"£","\\pounds");_e(Te,Ve,mt,"£","\\mathsterling",!0);_e(Ct,Ve,mt,"£","\\pounds");_e(Ct,Ve,mt,"£","\\textsterling",!0);_e(Te,ut,mt,"✠","\\maltese");_e(Ct,ut,mt,"✠","\\maltese");var zp='0123456789/@."';for(var o$=0;o$<zp.length;o$++){var Np=zp.charAt(o$);_e(Te,Ve,mt,Np,Np)}var Ip='0123456789!@*()-=+";:?/.,';for(var u$=0;u$<Ip.length;u$++){var qp=Ip.charAt(u$);_e(Ct,Ve,mt,qp,qp)}var Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var c$=0;c$<Tu.length;c$++){var To=Tu.charAt(c$);_e(Te,Ve,Bt,To,To),_e(Ct,Ve,mt,To,To)}_e(Te,ut,mt,"C","ℂ");_e(Ct,ut,mt,"C","ℂ");_e(Te,ut,mt,"H","ℍ");_e(Ct,ut,mt,"H","ℍ");_e(Te,ut,mt,"N","ℕ");_e(Ct,ut,mt,"N","ℕ");_e(Te,ut,mt,"P","ℙ");_e(Ct,ut,mt,"P","ℙ");_e(Te,ut,mt,"Q","ℚ");_e(Ct,ut,mt,"Q","ℚ");_e(Te,ut,mt,"R","ℝ");_e(Ct,ut,mt,"R","ℝ");_e(Te,ut,mt,"Z","ℤ");_e(Ct,ut,mt,"Z","ℤ");_e(Te,Ve,Bt,"h","ℎ");_e(Ct,Ve,Bt,"h","ℎ");var Vt;for(var sn=0;sn<Tu.length;sn++){var xr=Tu.charAt(sn);Vt=String.fromCharCode(55349,56320+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56372+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56424+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56580+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56684+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56736+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56788+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56840+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56944+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),sn<26&&(Vt=String.fromCharCode(55349,56632+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt),Vt=String.fromCharCode(55349,56476+sn),_e(Te,Ve,Bt,xr,Vt),_e(Ct,Ve,mt,xr,Vt))}Vt="𝕜";_e(Te,Ve,Bt,"k",Vt);_e(Ct,Ve,mt,"k",Vt);for(var ws=0;ws<10;ws++){var Ui=ws.toString();Vt=String.fromCharCode(55349,57294+ws),_e(Te,Ve,Bt,Ui,Vt),_e(Ct,Ve,mt,Ui,Vt),Vt=String.fromCharCode(55349,57314+ws),_e(Te,Ve,Bt,Ui,Vt),_e(Ct,Ve,mt,Ui,Vt),Vt=String.fromCharCode(55349,57324+ws),_e(Te,Ve,Bt,Ui,Vt),_e(Ct,Ve,mt,Ui,Vt),Vt=String.fromCharCode(55349,57334+ws),_e(Te,Ve,Bt,Ui,Vt),_e(Ct,Ve,mt,Ui,Vt)}var Lf="ÐÞþ";for(var $$=0;$$<Lf.length;$$++){var Ro=Lf.charAt($$);_e(Te,Ve,Bt,Ro,Ro),_e(Ct,Ve,mt,Ro,Ro)}var Ff={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Mp={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Dp={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},h5={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},As={mathClass:"",textClass:"",font:""},Lp={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Fp={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},jp={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},jf={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Bf={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},Bp={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Pf={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Pp=[Ff,Ff,Mp,Mp,Dp,Dp,h5,As,As,As,Lp,Lp,Fp,Fp,jp,jp,jf,jf,Bf,Bf,Bp,Bp,As,As,Pf,Pf],p5=[Ff,As,jf,Bf,Pf],_5=e=>{var t=e.charCodeAt(0),r=e.charCodeAt(1),n=(t-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return Pp[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return p5[s]}else{if(n===120485||n===120486)return Pp[0];if(120486<n&&n<120782)return As;throw new It("Unsupported character: "+e)}},dc=function(t,r,n){if(pr[n][t]){var i=pr[n][t].replace;i&&(t=i)}return{value:t,metrics:Ad(t,r,n)}},ln=function(t,r,n,i,s){var o=dc(t,r,n),f=o.metrics;t=o.value;var h;if(f){var d=f.italic;(n==="text"||i&&i.font==="mathit")&&(d=0),h=new Rn(t,f.height,f.depth,d,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),h=new Rn(t,0,0,0,0,0,s);if(i){h.maxFontSize=i.sizeMultiplier,i.style.isTight()&&h.classes.push("mtight");var A=i.getColor();A&&(h.style.color=A)}return h},Cd=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&dc(t,"Main-Bold",r).metrics?ln(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||pr[r][t].font==="main"?ln(t,"Main-Regular",r,n,i):ln(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},m5=function(t,r,n){return n!=="textord"&&dc(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},hc=function(t,r,n){var i=t.mode,s=t.text,o=["mord"],{font:f,fontFamily:h,fontWeight:d,fontShape:A}=r,z=i==="math"||i==="text"&&!!f,L=z?f:h,ne="",ge="";if(s.charCodeAt(0)===55349){var Q=_5(s);ne=Q.font,ge=Q[i+"Class"]}if(ne)return ln(s,ne,i,r,o.concat(ge));if(L){var F,Y;if(L==="boldsymbol"){var pe=m5(s,i,n);F=pe.fontName,Y=[pe.fontClass]}else z?(F=Uf[f].fontName,Y=[f]):(F=zo(h,d,A),Y=[h,d,A]);if(dc(s,F,i).metrics)return ln(s,F,i,r,o.concat(Y));if(Lg.hasOwnProperty(s)&&F.slice(0,10)==="Typewriter"){for(var se=[],ve=0;ve<s.length;ve++)se.push(ln(s[ve],F,i,r,o.concat(Y)));return ji(se)}}if(n==="mathord")return ln(s,"Math-Italic",i,r,o.concat(["mathnormal"]));if(n==="textord"){var Z=pr[i][s]&&pr[i][s].font;if(Z==="ams"){var be=zo("amsrm",d,A);return ln(s,be,i,r,o.concat("amsrm",d,A))}else if(Z==="main"||!Z){var ue=zo("textrm",d,A);return ln(s,ue,i,r,o.concat(d,A))}else{var Ee=zo(Z,d,A);return ln(s,Ee,i,r,o.concat(Ee,d,A))}}else throw new Error("unexpected type: "+n+" in makeOrd")},g5=(e,t)=>{if($s(e.classes)!==$s(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Fg=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Rn&&n instanceof Rn&&g5(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},Td=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var o=t.children[s];o.height>r&&(r=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Tt=function(t,r,n,i){var s=new Ya(t,r,n,i);return Td(s),s},ds=(e,t,r,n)=>new Ya(e,t,r,n),Da=function(t,r,n){var i=Tt([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Mt(i.height),i.maxFontSize=1,i},v5=function(t,r,n,i){var s=new fc(t,r,n,i);return Td(s),s},ji=function(t){var r=new Wa(t);return Td(r),r},La=function(t,r){return t instanceof Wa?Tt([],[t],r):t},y5=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,o=1;o<r.length;o++){var f=-r[o].shift-s-r[o].elem.depth,h=f-(r[o-1].elem.height+r[o-1].elem.depth);s=s+f,n.push({type:"kern",size:h}),n.push(r[o])}return{children:n,depth:i}}var d;if(t.positionType==="top"){for(var A=t.positionData,z=0;z<t.children.length;z++){var L=t.children[z];A-=L.type==="kern"?L.size:L.elem.height+L.elem.depth}d=A}else if(t.positionType==="bottom")d=-t.positionData;else{var ne=t.children[0];if(ne.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-ne.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-ne.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},ir=function(t,r){for(var{children:n,depth:i}=y5(t),s=0,o=0;o<n.length;o++){var f=n[o];if(f.type==="elem"){var h=f.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=Tt(["pstrut"],[]);d.style.height=Mt(s);for(var A=[],z=i,L=i,ne=i,ge=0;ge<n.length;ge++){var Q=n[ge];if(Q.type==="kern")ne+=Q.size;else{var F=Q.elem,Y=Q.wrapperClasses||[],pe=Q.wrapperStyle||{},se=Tt(Y,[d,F],void 0,pe);se.style.top=Mt(-s-ne-F.depth),Q.marginLeft&&(se.style.marginLeft=Q.marginLeft),Q.marginRight&&(se.style.marginRight=Q.marginRight),A.push(se),ne+=F.height+F.depth}z=Math.min(z,ne),L=Math.max(L,ne)}var ve=Tt(["vlist"],A);ve.style.height=Mt(L);var Z;if(z<0){var be=Tt([],[]),ue=Tt(["vlist"],[be]);ue.style.height=Mt(-z);var Ee=Tt(["vlist-s"],[new Rn("​")]);Z=[Tt(["vlist-r"],[ve,Ee]),Tt(["vlist-r"],[ue])]}else Z=[Tt(["vlist-r"],[ve])];var O=Tt(["vlist-t"],Z);return Z.length===2&&O.classes.push("vlist-t2"),O.height=L,O.depth=-z,O},jg=(e,t)=>{var r=Tt(["mspace"],[],t),n=vr(e,t);return r.style.marginRight=Mt(n),r},zo=(e,t,r)=>{var n,i;switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return t==="textbf"&&r==="textit"?i="BoldItalic":t==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},Uf={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Bg={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Pg=function(t,r){var[n,i,s]=Bg[t],o=new fs(n),f=new qi([o],{width:Mt(i),height:Mt(s),style:"width:"+Mt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=ds(["overlay"],[f],r);return h.height=s,h.style.height=Mt(s),h.style.width=Mt(i),h},mr={number:3,unit:"mu"},ks={number:4,unit:"mu"},vi={number:5,unit:"mu"},b5={mord:{mop:mr,mbin:ks,mrel:vi,minner:mr},mop:{mord:mr,mop:mr,mrel:vi,minner:mr},mbin:{mord:ks,mop:ks,mopen:ks,minner:ks},mrel:{mord:vi,mop:vi,mopen:vi,minner:vi},mopen:{},mclose:{mop:mr,mbin:ks,mrel:vi,minner:mr},mpunct:{mord:mr,mop:mr,mrel:vi,mopen:mr,mclose:mr,mpunct:mr,minner:mr},minner:{mord:mr,mop:mr,mbin:ks,mrel:vi,mopen:mr,mpunct:mr,minner:mr}},x5={mord:{mop:mr},mop:{mord:mr,mop:mr},mbin:{},mrel:{},mopen:{},mclose:{mop:mr},mpunct:{},minner:{mop:mr}},Ug={},Ru={},zu={};function Dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:o}=e,f={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},h=0;h<r.length;++h)Ug[r[h]]=f;t&&(s&&(Ru[t]=s),o&&(zu[t]=o))}function Gs(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Dt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Nu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zr=function(t){return t.type==="ordgroup"?t.body:[t]},w5=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),k5=new Set(["rightmost","mrel","mclose","mpunct"]),S5={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},E5={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},jr=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],o=0;o<t.length;o++){var f=sr(t[o],r);if(f instanceof Wa){var h=f.children;s.push(...h)}else s.push(f)}if(Fg(s),!n)return s;var d=r;if(t.length===1){var A=t[0];A.type==="sizing"?d=r.havingSize(A.size):A.type==="styling"&&(d=r.havingStyle(S5[A.style]))}var z=Tt([i[0]||"leftmost"],[],r),L=Tt([i[1]||"rightmost"],[],r),ne=n==="root";return Hf(s,(ge,Q)=>{var F=Q.classes[0],Y=ge.classes[0];F==="mbin"&&k5.has(Y)?Q.classes[0]="mord":Y==="mbin"&&w5.has(F)&&(ge.classes[0]="mord")},{node:z},L,ne),Hf(s,(ge,Q)=>{var F,Y,pe=Wf(Q),se=Wf(ge),ve=pe&&se?ge.hasClass("mtight")?(F=x5[pe])==null?void 0:F[se]:(Y=b5[pe])==null?void 0:Y[se]:null;if(ve)return jg(ve,d)},{node:z},L,ne),s},Hf=function(t,r,n,i,s){i&&t.push(i);for(var o=0;o<t.length;o++){var f=t[o],h=Hg(f);if(h){Hf(h.children,r,n,null,s);continue}var d=!f.hasClass("mspace");if(d){var A=r(f,n.node);A&&(n.insertAfter?n.insertAfter(A):(t.unshift(A),o++))}d?n.node=f:s&&f.hasClass("newline")&&(n.node=Tt(["leftmost"])),n.insertAfter=(z=>L=>{t.splice(z+1,0,L),o++})(o)}i&&t.pop()},Hg=function(t){return t instanceof Wa||t instanceof fc||t instanceof Ya&&t.hasClass("enclosing")?t:null},Vf=function(t,r){var n=Hg(t);if(n){var i=n.children;if(i.length){if(r==="right")return Vf(i[i.length-1],"right");if(r==="left")return Vf(i[0],"left")}}return t},Wf=function(t,r){if(!t)return null;r&&(t=Vf(t,r));var n=t.classes[0];return E5[n]||null},Ql=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Tt(r.concat(n))},sr=function(t,r,n){if(!t)return Tt();if(Ru[t.type]){var i=Ru[t.type](t,r);if(n&&r.size!==n.size){i=Tt(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new It("Got group of unknown type: '"+t.type+"'")};function No(e,t){var r=Tt(["base"],e,t),n=Tt(["strut"]);return n.style.height=Mt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Mt(-r.depth)),r.children.unshift(n),r}function Yf(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=jr(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],o=[],f=0;f<n.length;f++)if(o.push(n[f]),n[f].hasClass("mbin")||n[f].hasClass("mrel")||n[f].hasClass("allowbreak")){for(var h=!1;f<n.length-1&&n[f+1].hasClass("mspace")&&!n[f+1].hasClass("newline");)f++,o.push(n[f]),n[f].hasClass("nobreak")&&(h=!0);h||(s.push(No(o,t)),o=[])}else n[f].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(No(o,t)),o=[]),s.push(n[f]));o.length>0&&s.push(No(o,t));var d;r?(d=No(jr(r,t,!0),t),d.classes=["tag"],s.push(d)):i&&s.push(i);var A=Tt(["katex-html"],s);if(A.setAttribute("aria-hidden","true"),d){var z=d.children[0];z.style.height=Mt(A.height+A.depth),A.depth&&(z.style.verticalAlign=Mt(-A.depth))}return A}function Vg(e){return new Wa(e)}class qt{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=$s(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Nr&&this.children[n+1]instanceof Nr){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Nr;)i+=this.children[++n].toText();t.appendChild(new Nr(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=en(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+en($s(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Nr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return en(this.toText())}toText(){return this.text}}class Wg{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Mt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Mt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var A5=new Set(["\\imath","\\jmath"]),C5=new Set(["mrow","mtable"]),Yn=function(t,r,n){return pr[r][t]&&pr[r][t].replace&&t.charCodeAt(0)!==55349&&!(Lg.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=pr[r][t].replace),new Nr(t)},Rd=function(t){return t.length===1?t[0]:new qt("mrow",t)},T5={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},zd=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var r=t.font;if(!r||r==="mathnormal")return null;var n=e.mode,i=T5[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(A5.has(s))return null;if(pr[n][s]){var o=pr[n][s].replace;o&&(s=o)}var f=Uf[r].fontName;return Ad(s,f,n)?Uf[r].variant:null};function f$(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Nr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Nr&&r.text===","}else return!1}var Mn=function(t,r,n){if(t.length===1){var i=or(t[0],r);return n&&i instanceof qt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,f=0;f<t.length;f++){var h=or(t[f],r);if(h instanceof qt&&o instanceof qt){if(h.type==="mtext"&&o.type==="mtext"&&h.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...h.children);continue}else if(h.type==="mn"&&o.type==="mn"){o.children.push(...h.children);continue}else if(f$(h)&&o.type==="mn"){o.children.push(...h.children);continue}else if(h.type==="mn"&&f$(o))h.children=[...o.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(o.type==="mn"||f$(o))){var d=h.children[0];d instanceof qt&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var A=o.children[0];if(A instanceof Nr&&A.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var z=h.children[0];z instanceof Nr&&z.text.length>0&&(z.text=z.text.slice(0,1)+"̸"+z.text.slice(1),s.pop())}}}s.push(h),o=h}return s},hs=function(t,r,n){return Rd(Mn(t,r,n))},or=function(t,r){if(!t)return new qt("mrow");if(zu[t.type])return zu[t.type](t,r);throw new It("Got group of unknown type: '"+t.type+"'")};function Up(e,t,r,n,i){var s=Mn(e,r),o;s.length===1&&s[0]instanceof qt&&C5.has(s[0].type)?o=s[0]:o=new qt("mrow",s);var f=new qt("annotation",[new Nr(t)]);f.setAttribute("encoding","application/x-tex");var h=new qt("semantics",[o,f]),d=new qt("math",[h]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&d.setAttribute("display","block");var A=i?"katex":"katex-mathml";return Tt([A],[d])}var R5=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Hp=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Vp=function(t,r){return r.size<2?t:R5[t-1][r.size-1]};class wi{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||wi.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Hp[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new wi(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Vp(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Hp[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Vp(wi.BASESIZE,t);return this.size===r&&this.textSize===wi.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==wi.BASESIZE?["sizing","reset-size"+this.size,"size"+wi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=d5(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}wi.BASESIZE=6;var Yg=function(t){return new wi({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Gg=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Tt(n,[t])}return t},z5=function(t,r,n){var i=Yg(n),s;if(n.output==="mathml")return Up(t,r,i,n.displayMode,!0);if(n.output==="html"){var o=Yf(t,i);s=Tt(["katex"],[o])}else{var f=Up(t,r,i,n.displayMode,!1),h=Yf(t,i);s=Tt(["katex"],[f,h])}return Gg(s,n)},N5=function(t,r,n){var i=Yg(n),s=Yf(t,i),o=Tt(["katex"],[s]);return Gg(o,n)},I5={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},pc=function(t){var r=new qt("mo",[new Nr(I5[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},q5={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},M5=new Set(["widehat","widecheck","widetilde","utilde"]),_c=function(t,r){function n(){var f=4e5,h=t.label.slice(1);if(M5.has(h)&&"base"in t){var d=t.base.type==="ordgroup"?t.base.body.length:1,A,z,L;if(d>5)h==="widehat"||h==="widecheck"?(A=420,f=2364,L=.42,z=h+"4"):(A=312,f=2340,L=.34,z="tilde4");else{var ne=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?(f=[0,1062,2364,2364,2364][ne],A=[0,239,300,360,420][ne],L=[0,.24,.3,.3,.36,.42][ne],z=h+ne):(f=[0,600,1033,2339,2340][ne],A=[0,260,286,306,312][ne],L=[0,.26,.286,.3,.306,.34][ne],z="tilde"+ne)}var ge=new fs(z),Q=new qi([ge],{width:"100%",height:Mt(L),viewBox:"0 0 "+f+" "+A,preserveAspectRatio:"none"});return{span:ds([],[Q],r),minWidth:0,height:L}}else{var F=[],Y=q5[h];if(!Y)throw new Error('No SVG data for "'+h+'".');var[pe,se,ve]=Y,Z=ve/1e3,be=pe.length,ue,Ee;if(be===1){if(Y.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');ue=["hide-tail"],Ee=[Y[3]]}else if(be===2)ue=["halfarrow-left","halfarrow-right"],Ee=["xMinYMin","xMaxYMin"];else if(be===3)ue=["brace-left","brace-center","brace-right"],Ee=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
322
+ `+be+" children.");for(var O=0;O<be;O++){var Ce=new fs(pe[O]),$e=new qi([Ce],{width:"400em",height:Mt(Z),viewBox:"0 0 "+f+" "+ve,preserveAspectRatio:Ee[O]+" slice"}),w=ds([ue[O]],[$e],r);if(be===1)return{span:w,minWidth:se,height:Z};w.style.height=Mt(Z),F.push(w)}return{span:Tt(["stretchy"],F,r),minWidth:se,height:Z}}}var{span:i,minWidth:s,height:o}=n();return i.height=o,i.style.height=Mt(o),s>0&&(i.style.minWidth=Mt(s)),i},D5=function(t,r,n,i,s){var o,f=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(o=Tt(["stretchy",r],[],s),r==="fbox"){var h=s.color&&s.getColor();h&&(o.style.borderColor=h)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new Df({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new Df({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var A=new qi(d,{width:"100%",height:Mt(f)});o=ds([],[A],s)}return o.height=f,o.style.height=Mt(f),o},L5={bin:1,close:1,inner:1,open:1,punct:1,rel:1},F5={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function j5(e){return e in L5}function Qt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function mc(e){var t=gc(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function gc(e){return e&&(e.type==="atom"||F5.hasOwnProperty(e.type))?e:null}var Kg=e=>{if(e instanceof Rn)return e;if($5(e)&&e.children.length===1)return Kg(e.children[0])},Nd=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=c5(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),o=n.isShifty&&Li(r),f=0;if(o){var h,d;f=(h=(d=Kg(s))==null?void 0:d.skew)!=null?h:0}var A=n.label==="\\c",z=A?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),L;if(n.isStretchy)L=_c(n,t),L=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:L,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Mt(2*f)+")",marginLeft:Mt(2*f)}:void 0}]});else{var ne,ge;n.label==="\\vec"?(ne=Pg("vec",t),ge=Bg.vec[1]):(ne=hc({mode:n.mode,text:n.label},t,"textord"),ne=u5(ne),ne.italic=0,ge=ne.width,A&&(z+=ne.depth)),L=Tt(["accent-body"],[ne]);var Q=n.label==="\\textcircled";Q&&(L.classes.push("accent-full"),z=s.height);var F=f;Q||(F-=ge/2),L.style.left=Mt(F),n.label==="\\textcircled"&&(L.style.top=".2em"),L=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-z},{type:"elem",elem:L}]})}var Y=Tt(["mord","accent"],[L],t);return i?(i.children[0]=Y,i.height=Math.max(Y.height,i.height),i.classes[0]="mord",i):Y},Xg=(e,t)=>{var r=e.isStretchy?pc(e.label):new qt("mo",[Yn(e.label,e.mode)]),n=new qt("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},B5=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Dt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Nu(t[0]),n=!B5.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Nd,mathmlBuilder:Xg});Dt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Nd,mathmlBuilder:Xg});Dt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=sr(e.base,t),n=_c(e,t),i=e.label==="\\utilde"?.12:0,s=ir({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Tt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=pc(e.label),n=new qt("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Io=e=>{var t=new qt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Dt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=La(sr(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;e.below&&(n=t.havingStyle(r.sub()),o=La(sr(e.below,n,t),t),o.classes.push(s+"-arrow-pad"));var f=_c(e,t),h=-t.fontMetrics().axisHeight+.5*f.height,d=-t.fontMetrics().axisHeight-.5*f.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(d-=i.depth);var A;if(o){var z=-t.fontMetrics().axisHeight+o.height+.5*f.height+.111;A=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:o,shift:z}]})}else A=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]}]});return Tt(["mrel","x-arrow"],[A],t)},mathmlBuilder(e,t){var r=pc(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Io(or(e.body,t));if(e.below){var s=Io(or(e.below,t));n=new qt("munderover",[r,s,i])}else n=new qt("mover",[r,i])}else if(e.below){var o=Io(or(e.below,t));n=new qt("munder",[r,o])}else n=Io(),n=new qt("mover",[r,n]);return n}});function Qg(e,t){var r=jr(e.body,t,!0);return Tt([e.mclass],r,t)}function Zg(e,t){var r,n=Mn(e.body,t);return e.mclass==="minner"?r=new qt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new qt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new qt("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Dt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:zr(i),isCharacterBox:Li(i)}},htmlBuilder:Qg,mathmlBuilder:Zg});var vc=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Dt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:vc(t[0]),body:zr(t[1]),isCharacterBox:Li(t[1])}}});Dt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],s=t[0],o;n!=="\\stackrel"?o=vc(i):o="mrel";var f={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:zr(i)},h={type:"supsub",mode:s.mode,base:f,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:o,body:[h],isCharacterBox:Li(h)}},htmlBuilder:Qg,mathmlBuilder:Zg});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:vc(t[0]),body:zr(t[0])}},htmlBuilder(e,t){var r=jr(e.body,t,!0),n=Tt([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Mn(e.body,t),n=new qt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var P5={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wp=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Yp=e=>e.type==="textord"&&e.text==="@",U5=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function H5(e,t,r){var n=P5[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[s],[]),f=r.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[i,o,f]};return r.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function V5(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new It("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var o=t[s],f=Wp(),h=0;h<o.length;h++)if(!Yp(o[h]))f.body.push(o[h]);else{n.push(f),h+=1;var d=mc(o[h]).text,A=new Array(2);if(A[0]={type:"ordgroup",mode:"math",body:[]},A[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var z=0;z<2;z++){for(var L=!0,ne=h+1;ne<o.length;ne++){if(U5(o[ne],d)){L=!1,h=ne;break}if(Yp(o[ne]))throw new It("Missing a "+d+" character to complete a CD arrow.",o[ne]);A[z].body.push(o[ne])}if(L)throw new It("Missing a "+d+" character to complete a CD arrow.",o[h])}else throw new It('Expected one of "<>AV=|." after @',o[h]);var ge=H5(d,A,e),Q={type:"styling",body:[ge],mode:"math",style:"display",resetFont:!0};n.push(Q),f=Wp()}s%2===0?n.push(f):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var F=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:F,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Dt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=La(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Mt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new qt("mrow",[or(e.label,t)]);return r=new qt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new qt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Dt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=La(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new qt("mrow",[or(e.fragment,t)])}});Dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Qt(t[0],"ordgroup"),i=n.body,s="",o=0;o<i.length;o++){var f=Qt(i[o],"textord");s+=f.text}var h=parseInt(s),d;if(isNaN(h))throw new It("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new It("\\@char with invalid code point "+s);return h<=65535?d=String.fromCharCode(h):(h-=65536,d=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:r.mode,text:d}}});var Jg=(e,t)=>{var r=jr(e.body,t.withColor(e.color),!1);return ji(r)},Og=(e,t)=>{var r=Mn(e.body,t.withColor(e.color)),n=new qt("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Dt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Qt(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:zr(i)}},htmlBuilder:Jg,mathmlBuilder:Og});Dt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=Qt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var s=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:s}},htmlBuilder:Jg,mathmlBuilder:Og});Dt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:i&&Qt(i,"size").value}},htmlBuilder(e,t){var r=Tt(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Mt(vr(e.size,t)))),r},mathmlBuilder(e,t){var r=new qt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Mt(vr(e.size,t)))),r}});var Gf={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ev=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new It("Expected a control sequence",e);return t},W5=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},tv=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};Dt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Gf[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Gf[n.text]),Qt(t.parseFunction(),"internal");throw new It("Invalid token after macro prefix",n)}});Dt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new It("Expected a control sequence",n);for(var s=0,o,f=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),f[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new It('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new It('Argument number "'+n.text+'" out of order');s++,f.push([])}else{if(n.text==="EOF")throw new It("Expected a macro definition");f[s].push(n.text)}var{tokens:h}=t.gullet.consumeArg();return o&&h.unshift(o),(r==="\\edef"||r==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:f},r===Gf[r]),{type:"internal",mode:t.mode}}});Dt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=ev(t.gullet.popToken());t.gullet.consumeSpaces();var i=W5(t);return tv(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Dt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=ev(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return tv(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var fl=function(t,r,n){var i=pr.math[t]&&pr.math[t].replace,s=Ad(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},Id=function(t,r,n,i){var s=n.havingBaseStyle(r),o=Tt(i.concat(s.sizingClasses(n)),[t],n),f=s.sizeMultiplier/n.sizeMultiplier;return o.height*=f,o.depth*=f,o.maxFontSize=s.sizeMultiplier,o},rv=function(t,r,n){var i=r.havingBaseStyle(n),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Mt(s),t.height-=s,t.depth+=s},Y5=function(t,r,n,i,s,o){var f=ln(t,"Main-Regular",s,i),h=Id(f,r,i,o);return rv(h,i,r),h},G5=function(t,r,n,i){return ln(t,"Size"+r+"-Regular",n,i)},nv=function(t,r,n,i,s,o){var f=G5(t,r,s,i),h=Id(Tt(["delimsizing","size"+r],[f],i),Gt.TEXT,i,o);return n&&rv(h,i,Gt.TEXT),h},d$=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=Tt(["delimsizinginner",i],[Tt([],[ln(t,r,n)])]);return{type:"elem",elem:s}},h$=function(t,r,n){var i=ci["Size4-Regular"][t.charCodeAt(0)]?ci["Size4-Regular"][t.charCodeAt(0)][4]:ci["Size1-Regular"][t.charCodeAt(0)][4],s=new fs("inner",r5(t,Math.round(1e3*r))),o=new qi([s],{width:Mt(i),height:Mt(r),style:"width:"+Mt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=ds([],[o],n);return f.height=r,f.style.height=Mt(r),f.style.width=Mt(i),{type:"elem",elem:f}},Kf=.008,qo={type:"kern",size:-1*Kf},K5=new Set(["|","\\lvert","\\rvert","\\vert"]),X5=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),iv=function(t,r,n,i,s,o){var f,h,d,A,z="",L=0;f=d=A=t,h=null;var ne="Size1-Regular";t==="\\uparrow"?d=A="⏐":t==="\\Uparrow"?d=A="‖":t==="\\downarrow"?f=d="⏐":t==="\\Downarrow"?f=d="‖":t==="\\updownarrow"?(f="\\uparrow",d="⏐",A="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",d="‖",A="\\Downarrow"):K5.has(t)?(d="∣",z="vert",L=333):X5.has(t)?(d="∥",z="doublevert",L=556):t==="["||t==="\\lbrack"?(f="⎡",d="⎢",A="⎣",ne="Size4-Regular",z="lbrack",L=667):t==="]"||t==="\\rbrack"?(f="⎤",d="⎥",A="⎦",ne="Size4-Regular",z="rbrack",L=667):t==="\\lfloor"||t==="⌊"?(d=f="⎢",A="⎣",ne="Size4-Regular",z="lfloor",L=667):t==="\\lceil"||t==="⌈"?(f="⎡",d=A="⎢",ne="Size4-Regular",z="lceil",L=667):t==="\\rfloor"||t==="⌋"?(d=f="⎥",A="⎦",ne="Size4-Regular",z="rfloor",L=667):t==="\\rceil"||t==="⌉"?(f="⎤",d=A="⎥",ne="Size4-Regular",z="rceil",L=667):t==="("||t==="\\lparen"?(f="⎛",d="⎜",A="⎝",ne="Size4-Regular",z="lparen",L=875):t===")"||t==="\\rparen"?(f="⎞",d="⎟",A="⎠",ne="Size4-Regular",z="rparen",L=875):t==="\\{"||t==="\\lbrace"?(f="⎧",h="⎨",A="⎩",d="⎪",ne="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",h="⎬",A="⎭",d="⎪",ne="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",A="⎩",d="⎪",ne="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",A="⎭",d="⎪",ne="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",A="⎭",d="⎪",ne="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",A="⎩",d="⎪",ne="Size4-Regular");var ge=fl(f,ne,s),Q=ge.height+ge.depth,F=fl(d,ne,s),Y=F.height+F.depth,pe=fl(A,ne,s),se=pe.height+pe.depth,ve=0,Z=1;if(h!==null){var be=fl(h,ne,s);ve=be.height+be.depth,Z=2}var ue=Q+se+ve,Ee=Math.max(0,Math.ceil((r-ue)/(Z*Y))),O=ue+Ee*Z*Y,Ce=i.fontMetrics().axisHeight;n&&(Ce*=i.sizeMultiplier);var $e=O/2-Ce,w=[];if(z.length>0){var Ae=O-Q-se,j=Math.round(O*1e3),de=n5(z,Math.round(Ae*1e3)),V=new fs(z,de),Fe=Mt(L/1e3),ce=Mt(j/1e3),U=new qi([V],{width:Fe,height:ce,viewBox:"0 0 "+L+" "+j}),x=ds([],[U],i);x.height=j/1e3,x.style.width=Fe,x.style.height=ce,w.push({type:"elem",elem:x})}else{if(w.push(d$(A,ne,s)),w.push(qo),h===null){var $=O-Q-se+2*Kf;w.push(h$(d,$,i))}else{var l=(O-Q-se-ve)/2+2*Kf;w.push(h$(d,l,i)),w.push(qo),w.push(d$(h,ne,s)),w.push(qo),w.push(h$(d,l,i))}w.push(qo),w.push(d$(f,ne,s))}var c=i.havingBaseStyle(Gt.TEXT),p=ir({positionType:"bottom",positionData:$e,children:w});return Id(Tt(["delimsizing","mult"],[p],c),Gt.TEXT,i,o)},p$=80,_$=.08,m$=function(t,r,n,i,s){var o=t5(t,i,n),f=new fs(t,o),h=new qi([f],{width:"400em",height:Mt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ds(["hide-tail"],[h],s)},Q5=function(t,r){var n=r.havingBaseSizing(),i=uv("\\surd",t*n.sizeMultiplier,ov,n),s=n.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,h,d,A,z;return i.type==="small"?(A=1e3+1e3*o+p$,t<1?s=1:t<1.4&&(s=.7),h=(1+o+_$)/s,d=(1+o)/s,f=m$("sqrtMain",h,A,o,r),f.style.minWidth="0.853em",z=.833/s):i.type==="large"?(A=(1e3+p$)*Al[i.size],d=(Al[i.size]+o)/s,h=(Al[i.size]+o+_$)/s,f=m$("sqrtSize"+i.size,h,A,o,r),f.style.minWidth="1.02em",z=1/s):(h=t+o+_$,d=t+o,A=Math.floor(1e3*t+o)+p$,f=m$("sqrtTall",h,A,o,r),f.style.minWidth="0.742em",z=1.056),f.height=d,f.style.height=Mt(h),{span:f,advanceWidth:z,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*s}},sv=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Z5=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),av=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Al=[0,1.2,1.8,2.4,3],lv=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),sv.has(t)||av.has(t))return nv(t,r,!1,n,i,s);if(Z5.has(t))return iv(t,Al[r],!1,n,i,s);throw new It("Illegal delimiter: '"+t+"'")},J5=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],O5=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],ov=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],e6=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},uv=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),o=s;o<n.length;o++){var f=n[o];if(f.type==="stack")break;var h=fl(t,e6(f),"math"),d=h.height+h.depth;if(f.type==="small"){var A=i.havingBaseStyle(f.style);d*=A.sizeMultiplier}if(d>r)return f}return n[n.length-1]},Xf=function(t,r,n,i,s,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;av.has(t)?f=J5:sv.has(t)?f=ov:f=O5;var h=uv(t,r,f,i);return h.type==="small"?Y5(t,h.style,n,i,s,o):h.type==="large"?nv(t,h.size,n,i,s,o):iv(t,r,n,i,s,o)},g$=function(t,r,n,i,s,o){var f=i.fontMetrics().axisHeight*i.sizeMultiplier,h=901,d=5/i.fontMetrics().ptPerEm,A=Math.max(r-f,n+f),z=Math.max(A/500*h,2*A-d);return Xf(t,z,!0,i,s,o)},Gp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},t6=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Kp(e){return"isMiddle"in e}function yc(e,t){var r=gc(e);if(r&&t6.has(r.text))return r;throw r?new It("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new It("Invalid delimiter type '"+e.type+"'",e)}Dt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=yc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Gp[e.funcName].size,mclass:Gp[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Tt([e.mclass]):lv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Yn(e.delim,e.mode));var r=new qt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Mt(Al[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Xp(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Dt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new It("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:yc(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=yc(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=Qt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Xp(e);for(var r=jr(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,o=0;o<r.length;o++){var f=r[o];Kp(f)?s=!0:(n=Math.max(r[o].height,n),i=Math.max(r[o].depth,i))}n*=t.sizeMultiplier,i*=t.sizeMultiplier;var h;if(e.left==="."?h=Ql(t,["mopen"]):h=g$(e.left,n,i,t,e.mode,["mopen"]),r.unshift(h),s)for(var d=1;d<r.length;d++){var A=r[d];if(Kp(A)){var z=A.isMiddle;r[d]=g$(z.delim,n,i,z.options,e.mode,[])}}var L;if(e.right===".")L=Ql(t,["mclose"]);else{var ne=e.rightColor?t.withColor(e.rightColor):t;L=g$(e.right,n,i,ne,e.mode,["mclose"])}return r.push(L),Tt(["minner"],r,t)},mathmlBuilder:(e,t)=>{Xp(e);var r=Mn(e.body,t);if(e.left!=="."){var n=new qt("mo",[Yn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new qt("mo",[Yn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Rd(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=yc(t[0],e);if(!e.parser.leftrightDepth)throw new It("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=Ql(t,[]):(r=lv(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Yn("|","text"):Yn(e.delim,e.mode),n=new qt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var bc=(e,t)=>{var r=La(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,o,f=Li(e.body);if(n==="sout")s=Tt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var h=vr({number:.6,unit:"pt"},t),d=vr({number:.35,unit:"ex"},t),A=t.havingBaseSizing();i=i/A.sizeMultiplier;var z=r.height+r.depth+h+d;r.style.paddingLeft=Mt(z/2+h);var L=Math.floor(1e3*z*i),ne=O3(L),ge=new qi([new fs("phase",ne)],{width:"400em",height:Mt(L/1e3),viewBox:"0 0 400000 "+L,preserveAspectRatio:"xMinYMin slice"});s=ds(["hide-tail"],[ge],t),s.style.height=Mt(z),o=r.depth+h+d}else{/cancel/.test(n)?f||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var Q,F,Y=0;/box/.test(n)?(Y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),Q=t.fontMetrics().fboxsep+(n==="colorbox"?0:Y),F=Q):n==="angl"?(Y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),Q=4*Y,F=Math.max(0,.25-r.depth)):(Q=f?.2:0,F=Q),s=D5(r,n,Q,F,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Mt(Y)):n==="angl"&&Y!==.049&&(s.style.borderTopWidth=Mt(Y),s.style.borderRightWidth=Mt(Y)),o=r.depth+F,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var pe;if(e.backgroundColor)pe=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:r,shift:0}]});else{var se=/cancel|phase/.test(n)?["svg-align"]:[];pe=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:se}]})}return/cancel/.test(n)&&(pe.height=r.height,pe.depth=r.depth),/cancel/.test(n)&&!f?Tt(["mord","cancel-lap"],[pe],t):Tt(["mord"],[pe],t)},xc=(e,t)=>{var r,n=new qt(e.label.includes("colorbox")?"mpadded":"menclose",[or(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+Mt(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:bc,mathmlBuilder:xc});Dt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,o=Qt(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,borderColor:s,body:f}},htmlBuilder:bc,mathmlBuilder:xc});Dt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});Dt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:bc,mathmlBuilder:xc});Dt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:bc,mathmlBuilder:xc});Dt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var cv={};function _i(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:o}=e,f={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},h=0;h<r.length;++h)cv[r[h]]=f;s&&(Ru[t]=s),o&&(zu[t]=o)}var $v={};function Ze(e,t){$v[e]=t}class pn{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new pn(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class An{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new An(r,pn.range(this,t))}}function Qp(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var wc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new It("{"+e.envName+"} can be used only in display mode.")},r6=new Set(["gather","gather*"]);function qd(e){if(!e.includes("ed"))return!e.includes("*")}function bs(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:o,colSeparationType:f,autoTag:h,singleRow:d,emptySingleRow:A,maxNumCols:z,leqno:L}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var ne=e.gullet.expandMacroAsText("\\arraystretch");if(ne==null)o=1;else if(o=parseFloat(ne),!o||o<0)throw new It("Invalid \\arraystretch: "+ne)}e.gullet.beginGroup();var ge=[],Q=[ge],F=[],Y=[],pe=h!=null?[]:void 0;function se(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function ve(){pe&&(e.gullet.macros.get("\\df@tag")?(pe.push(e.subparse([new An("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):pe.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(se(),Y.push(Qp(e));;){var Z=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var be={type:"ordgroup",mode:e.mode,body:Z};r&&(be={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[be]}),ge.push(be);var ue=e.fetch().text;if(ue==="&"){if(z&&ge.length===z){if(d||f)throw new It("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(ue==="\\end"){ve(),ge.length===1&&be.type==="styling"&&be.body.length===1&&be.body[0].type==="ordgroup"&&be.body[0].body.length===0&&(Q.length>1||!A)&&Q.pop(),Y.length<Q.length+1&&Y.push([]);break}else if(ue==="\\\\"){e.consume();var Ee=void 0;e.gullet.future().text!==" "&&(Ee=e.parseSizeGroup(!0)),F.push(Ee?Ee.value:null),ve(),Y.push(Qp(e)),ge=[],Q.push(ge),se()}else throw new It("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:Q,cols:s,rowGaps:F,hskipBeforeAndAfter:n,hLinesBeforeRow:Y,colSeparationType:f,tags:pe,leqno:L}}function Md(e){return e.slice(0,1)==="d"?"display":"text"}var mi=function(t,r){var n,i,s=t.body.length,o=t.hLinesBeforeRow,f=0,h=new Array(s),d=[],A=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),z=1/r.fontMetrics().ptPerEm,L=5*z;if(t.colSeparationType&&t.colSeparationType==="small"){var ne=r.havingStyle(Gt.SCRIPT).sizeMultiplier;L=.2778*(ne/r.sizeMultiplier)}var ge=t.colSeparationType==="CD"?vr({number:3,unit:"ex"},r):12*z,Q=3*z,F=t.arraystretch*ge,Y=.7*F,pe=.3*F,se=0;function ve($t){for(var a=0;a<$t.length;++a)a>0&&(se+=.25),d.push({pos:se,isDashed:$t[a]})}for(ve(o[0]),n=0;n<t.body.length;++n){var Z=t.body[n],be=Y,ue=pe;f<Z.length&&(f=Z.length);var Ee={cells:new Array(Z.length),height:0,depth:0,pos:0};for(i=0;i<Z.length;++i){var O=sr(Z[i],r);ue<O.depth&&(ue=O.depth),be<O.height&&(be=O.height),Ee.cells[i]=O}var Ce=t.rowGaps[n],$e=0;Ce&&($e=vr(Ce,r),$e>0&&($e+=pe,ue<$e&&(ue=$e),$e=0)),t.addJot&&n<t.body.length-1&&(ue+=Q),Ee.height=be,Ee.depth=ue,se+=be,Ee.pos=se,se+=ue+$e,h[n]=Ee,ve(o[n+1])}var w=se/2+r.fontMetrics().axisHeight,Ae=t.cols||[],j=[],de,V,Fe=[];if(t.tags&&t.tags.some($t=>$t))for(n=0;n<s;++n){var ce=h[n],U=ce.pos-w,x=t.tags[n],$=void 0;x===!0?$=Tt(["eqn-num"],[],r):x===!1?$=Tt([],[],r):$=Tt([],jr(x,r,!0),r),$.depth=ce.depth,$.height=ce.height,Fe.push({type:"elem",elem:$,shift:U})}for(i=0,V=0;i<f||V<Ae.length;++i,++V){for(var l,c=Ae[V],p=!0;((_=c)==null?void 0:_.type)==="separator";){var _;if(p||(de=Tt(["arraycolsep"],[]),de.style.width=Mt(r.fontMetrics().doubleRuleSep),j.push(de)),c.separator==="|"||c.separator===":"){var S=c.separator==="|"?"solid":"dashed",C=Tt(["vertical-separator"],[],r);C.style.height=Mt(se),C.style.borderRightWidth=Mt(A),C.style.borderRightStyle=S,C.style.margin="0 "+Mt(-A/2);var ee=se-w;ee&&(C.style.verticalAlign=Mt(-ee)),j.push(C)}else throw new It("Invalid separator type: "+c.separator);V++,c=Ae[V],p=!1}if(!(i>=f)){var Le=void 0;if(i>0||t.hskipBeforeAndAfter){var nt,dt;Le=(nt=(dt=c)==null?void 0:dt.pregap)!=null?nt:L,Le!==0&&(de=Tt(["arraycolsep"],[]),de.style.width=Mt(Le),j.push(de))}var lt=[];for(n=0;n<s;++n){var xt=h[n],bt=xt.cells[i];if(bt){var yt=xt.pos-w;bt.depth=xt.depth,bt.height=xt.height,lt.push({type:"elem",elem:bt,shift:yt})}}var gt=ir({positionType:"individualShift",children:lt}),wt=Tt(["col-align-"+(((l=c)==null?void 0:l.align)||"c")],[gt]);if(j.push(wt),i<f-1||t.hskipBeforeAndAfter){var At,et;Le=(At=(et=c)==null?void 0:et.postgap)!=null?At:L,Le!==0&&(de=Tt(["arraycolsep"],[]),de.style.width=Mt(Le),j.push(de))}}}var ze=Tt(["mtable"],j);if(d.length>0){for(var je=Da("hline",r,A),Ge=Da("hdashline",r,A),y=[{type:"elem",elem:ze,shift:0}];d.length>0;){var I=d.pop(),xe=I.pos-w;I.isDashed?y.push({type:"elem",elem:Ge,shift:xe}):y.push({type:"elem",elem:je,shift:xe})}ze=ir({positionType:"individualShift",children:y})}if(Fe.length===0)return Tt(["mord"],[ze],r);var Me=ir({positionType:"individualShift",children:Fe}),Qe=Tt(["tag"],[Me],r);return ji([ze,Qe])},n6={c:"center ",l:"left ",r:"right "},gi=function(t,r){for(var n=[],i=new qt("mtd",[],["mtr-glue"]),s=new qt("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var f=t.body[o],h=[],d=0;d<f.length;d++)h.push(new qt("mtd",[or(f[d],r)]));t.tags&&t.tags[o]&&(h.unshift(i),h.push(i),t.leqno?h.unshift(s):h.push(s)),n.push(new qt("mtr",h))}var A=new qt("mtable",n),z=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);A.setAttribute("rowspacing",Mt(z));var L="",ne="";if(t.cols&&t.cols.length>0){var ge=t.cols,Q="",F=!1,Y=0,pe=ge.length;ge[0].type==="separator"&&(L+="top ",Y=1),ge[ge.length-1].type==="separator"&&(L+="bottom ",pe-=1);for(var se=Y;se<pe;se++){var ve=ge[se];ve.type==="align"?(ne+=n6[ve.align],F&&(Q+="none "),F=!0):ve.type==="separator"&&F&&(Q+=ve.separator==="|"?"solid ":"dashed ",F=!1)}A.setAttribute("columnalign",ne.trim()),/[sd]/.test(Q)&&A.setAttribute("columnlines",Q.trim())}if(t.colSeparationType==="align"){for(var Z=t.cols||[],be="",ue=1;ue<Z.length;ue++)be+=ue%2?"0em ":"1em ";A.setAttribute("columnspacing",be.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?A.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?A.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?A.setAttribute("columnspacing","0.5em"):A.setAttribute("columnspacing","1em");var Ee="",O=t.hLinesBeforeRow;L+=O[0].length>0?"left ":"",L+=O[O.length-1].length>0?"right ":"";for(var Ce=1;Ce<O.length-1;Ce++)Ee+=O[Ce].length===0?"none ":O[Ce][0]?"dashed ":"solid ";return/[sd]/.test(Ee)&&A.setAttribute("rowlines",Ee.trim()),L!==""&&(A=new qt("menclose",[A]),A.setAttribute("notation",L.trim())),t.arraystretch&&t.arraystretch<1&&(A=new qt("mstyle",[A]),A.setAttribute("scriptlevel","1")),A},fv=function(t,r){t.envName.includes("ed")||wc(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",o=bs(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:qd(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,h=0,d={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var A="",z=0;z<r[0].body.length;z++){var L=Qt(r[0].body[z],"textord");A+=L.text}f=Number(A),h=f*2}var ne=!h;o.body.forEach(function(Y){for(var pe=1;pe<Y.length;pe+=2){var se=Qt(Y[pe],"styling"),ve=Qt(se.body[0],"ordgroup");ve.body.unshift(d)}if(ne)h<Y.length&&(h=Y.length);else{var Z=Y.length/2;if(f<Z)throw new It("Too many math in a row: "+("expected "+f+", but got "+Z),Y[0])}});for(var ge=0;ge<h;++ge){var Q="r",F=0;ge%2===1?Q="l":ge>0&&ne&&(F=1),n[ge]={type:"align",align:Q,pregap:F,postgap:0}}return o.colSeparationType=ne?"align":"alignat",o};_i({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=gc(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(o){var f=mc(o),h=f.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new It("Unknown column alignment: "+h,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return bs(e.parser,s,Md(e.envName))},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new It("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=bs(e.parser,n,Md(e.envName)),o=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=bs(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=gc(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(f){var h=mc(f),d=h.text;if("lc".includes(d))return{type:"align",align:d};throw new It("Unknown column alignment: "+d,f)});if(i.length>1)throw new It("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},o=bs(e.parser,s,"script");if(o.body.length>0&&o.body[0].length>1)throw new It("{subarray} can contain only one column");return o},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=bs(e.parser,t,Md(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:fv,htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){r6.has(e.envName)&&wc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:qd(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return bs(e.parser,t,"display")},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:fv,htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){wc(e);var t={autoTag:qd(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return bs(e.parser,t,"display")},htmlBuilder:mi,mathmlBuilder:gi});_i({type:"array",names:["CD"],props:{numArgs:0},handler(e){return wc(e),V5(e.parser)},htmlBuilder:mi,mathmlBuilder:gi});Ze("\\nonumber","\\gdef\\@eqnsw{0}");Ze("\\notag","\\nonumber");Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new It(e.funcName+" valid only within array environment")}});var Zp=cv;Dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new It("Invalid environment name",i);for(var s="",o=0;o<i.body.length;++o)s+=Qt(i.body[o],"textord").text;if(n==="\\begin"){if(!Zp.hasOwnProperty(s))throw new It("No such environment: "+s,i);var f=Zp[s],{args:h,optArgs:d}=r.parseArguments("\\begin{"+s+"}",f),A={mode:r.mode,envName:s,parser:r},z=f.handler(A,h,d);r.expect("\\end",!1);var L=r.nextToken,ne=Qt(r.parseFunction(),"environment");if(ne.name!==s)throw new It("Mismatch: \\begin{"+s+"} matched by \\end{"+ne.name+"}",L);return z}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var dv=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},hv=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},Jp={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Dt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=Nu(t[0]),s=n;return s in Jp&&(s=Jp[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:dv,mathmlBuilder:hv});Dt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:vc(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Li(n)}}});Dt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:s}=r,o=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:dv,mathmlBuilder:hv});var i6=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var o=sr(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;o.height=o.height<f?f:o.height,o.depth=o.depth<h?h:o.depth}s=t.havingStyle(i);var d=sr(e.denom,s,t),A,z,L;e.hasBarLine?(e.barSize?(z=vr(e.barSize,t),A=Da("frac-line",t,z)):A=Da("frac-line",t),z=A.height,L=A.height):(A=null,z=0,L=t.fontMetrics().defaultRuleThickness);var ne,ge,Q;r.size===Gt.DISPLAY.size?(ne=t.fontMetrics().num1,z>0?ge=3*L:ge=7*L,Q=t.fontMetrics().denom1):(z>0?(ne=t.fontMetrics().num2,ge=L):(ne=t.fontMetrics().num3,ge=3*L),Q=t.fontMetrics().denom2);var F;if(A){var pe=t.fontMetrics().axisHeight;ne-o.depth-(pe+.5*z)<ge&&(ne+=ge-(ne-o.depth-(pe+.5*z))),pe-.5*z-(d.height-Q)<ge&&(Q+=ge-(pe-.5*z-(d.height-Q)));var se=-(pe-.5*z);F=ir({positionType:"individualShift",children:[{type:"elem",elem:d,shift:Q},{type:"elem",elem:A,shift:se},{type:"elem",elem:o,shift:-ne}]})}else{var Y=ne-o.depth-(d.height-Q);Y<ge&&(ne+=.5*(ge-Y),Q+=.5*(ge-Y)),F=ir({positionType:"individualShift",children:[{type:"elem",elem:d,shift:Q},{type:"elem",elem:o,shift:-ne}]})}s=t.havingStyle(r),F.height*=s.sizeMultiplier/t.sizeMultiplier,F.depth*=s.sizeMultiplier/t.sizeMultiplier;var ve;r.size===Gt.DISPLAY.size?ve=t.fontMetrics().delim1:r.size===Gt.SCRIPTSCRIPT.size?ve=t.havingStyle(Gt.SCRIPT).fontMetrics().delim2:ve=t.fontMetrics().delim2;var Z,be;return e.leftDelim==null?Z=Ql(t,["mopen"]):Z=Xf(e.leftDelim,ve,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?be=Tt([]):e.rightDelim==null?be=Ql(t,["mclose"]):be=Xf(e.rightDelim,ve,!0,t.havingStyle(r),e.mode,["mclose"]),Tt(["mord"].concat(s.sizingClasses(t)),[Z,Tt(["mfrac"],[F]),be],t)},s6=(e,t)=>{var r=new qt("mfrac",[or(e.numer,t),or(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=vr(e.barSize,t);r.setAttribute("linethickness",Mt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new qt("mo",[new Nr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var o=new qt("mo",[new Nr(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}return Rd(i)}return r},pv=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Dt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=t[1],o,f=null,h=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,f="(",h=")";break;case"\\\\bracefrac":o=!1,f="\\{",h="\\}";break;case"\\\\brackfrac":o=!1,f="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var d=n==="\\cfrac",A=null;return d||n.startsWith("\\d")?A="display":n.startsWith("\\t")&&(A="text"),pv({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:d,hasBarLine:o,leftDelim:f,rightDelim:h,barSize:null},A)},htmlBuilder:i6,mathmlBuilder:s6});Dt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Op=["display","text","script","scriptscript"],e_=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};Dt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],s=Nu(t[0]),o=s.type==="atom"&&s.family==="open"?e_(s.text):null,f=Nu(t[1]),h=f.type==="atom"&&f.family==="close"?e_(f.text):null,d=Qt(t[2],"size"),A,z=null;d.isBlank?A=!0:(z=d.value,A=z.number>0);var L=null,ne=t[3];if(ne.type==="ordgroup"){if(ne.body.length>0){var ge=Qt(ne.body[0],"textord");L=Op[Number(ge.text)]}}else ne=Qt(ne,"textord"),L=Op[Number(ne.text)];return pv({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:A,barSize:z,leftDelim:o,rightDelim:h},L)}});Dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Qt(t[0],"size").value,token:i}}});Dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=Qt(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var o=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var _v=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?sr(e.sup,t.havingStyle(r.sup()),t):sr(e.sub,t.havingStyle(r.sub()),t),i=Qt(e.base,"horizBrace")):i=Qt(e,"horizBrace");var s=sr(i.base,t.havingBaseStyle(Gt.DISPLAY)),o=_c(i,t),f;if(i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o,wrapperClasses:["svg-align"]}]}):f=ir({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var h=Tt(["minner",i.isOver?"mover":"munder"],[f],t);i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:n}]}):f=ir({positionType:"bottom",positionData:h.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:h}]})}return Tt(["minner",i.isOver?"mover":"munder"],[f],t)},a6=(e,t)=>{var r=pc(e.label);return new qt(e.isOver?"mover":"munder",[or(e.base,t),r])};Dt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:_v,mathmlBuilder:a6});Dt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=Qt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:zr(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=jr(e.body,t,!1);return v5(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=hs(e.body,t);return r instanceof qt||(r=new qt("mrow",[r])),r.setAttribute("href",e.href),r}});Dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var o=n[s];o==="~"&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var f={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:zr(f)}}});Dt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:zr(t[0])}},htmlBuilder(e,t){var r=jr(e.body,t.withFont(""),!1);return ji(r)},mathmlBuilder(e,t){return new qt("mrow",Mn(e.body,t.withFont("")))}});Dt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,s=Qt(t[0],"raw").string,o=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,h={};switch(n){case"\\htmlClass":h.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),A=0;A<d.length;A++){var z=d[A],L=z.indexOf("=");if(L<0)throw new It("\\htmlData key/value '"+z+"' missing equals sign");var ne=z.slice(0,L),ge=z.slice(L+1);h["data-"+ne.trim()]=ge}f={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(f)?{type:"html",mode:r.mode,attributes:h,body:zr(o)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=jr(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Tt(n,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&i.setAttribute(s,e.attributes[s]);return i},mathmlBuilder:(e,t)=>hs(e.body,t)});Dt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:zr(t[0]),mathml:zr(t[1])}},htmlBuilder:(e,t)=>{var r=jr(e.html,t,!1);return ji(r)},mathmlBuilder:(e,t)=>hs(e.mathml,t)});var v$=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new It("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Ig(n))throw new It("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Dt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},f="";if(r[0])for(var h=Qt(r[0],"raw").string,d=h.split(","),A=0;A<d.length;A++){var z=d[A].split("=");if(z.length===2){var L=z[1].trim();switch(z[0].trim()){case"alt":f=L;break;case"width":i=v$(L);break;case"height":s=v$(L);break;case"totalheight":o=v$(L);break;default:throw new It("Invalid key: '"+z[0]+"' in \\includegraphics.")}}}var ne=Qt(t[0],"url").url;return f===""&&(f=ne,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:ne})?{type:"includegraphics",mode:n.mode,alt:f,width:i,height:s,totalheight:o,src:ne}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=vr(e.height,t),n=0;e.totalheight.number>0&&(n=vr(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=vr(e.width,t));var s={height:Mt(r+n)};i>0&&(s.width=Mt(i)),n>0&&(s.verticalAlign=Mt(-n));var o=new l5(e.src,e.alt,s);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new qt("mglyph",[]);r.setAttribute("alt",e.alt);var n=vr(e.height,t),i=0;if(e.totalheight.number>0&&(i=vr(e.totalheight,t)-n,r.setAttribute("valign",Mt(-i))),r.setAttribute("height",Mt(n+i)),e.width.number>0){var s=vr(e.width,t);r.setAttribute("width",Mt(s))}return r.setAttribute("src",e.src),r}});Dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Qt(t[0],"size");if(r.settings.strict){var s=n[1]==="m",o=i.value.unit==="mu";s?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return jg(e.dimension,t)},mathmlBuilder(e,t){var r=vr(e.dimension,t);return new Wg(r)}});Dt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Tt([],[sr(e.body,t)]),r=Tt(["inner"],[r],t)):r=Tt(["inner"],[sr(e.body,t)]);var n=Tt(["fix"],[]),i=Tt([e.alignment],[r,n],t),s=Tt(["strut"]);return s.style.height=Mt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Mt(-i.depth)),i.children.unshift(s),i=Tt(["thinbox"],[i],t),Tt(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new qt("mpadded",[or(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});Dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var s=r==="\\("?"\\)":"$",o=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:o}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new It("Mismatched "+e.funcName)}});var t_=(e,t)=>{switch(t.style.size){case Gt.DISPLAY.size:return e.display;case Gt.TEXT.size:return e.text;case Gt.SCRIPT.size:return e.script;case Gt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Dt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:zr(t[0]),text:zr(t[1]),script:zr(t[2]),scriptscript:zr(t[3])}},htmlBuilder:(e,t)=>{var r=t_(e,t),n=jr(r,t,!1);return ji(n)},mathmlBuilder:(e,t)=>{var r=t_(e,t);return hs(r,t)}});var mv=(e,t,r,n,i,s,o)=>{e=Tt([],[e]);var f=r&&Li(r),h,d;if(t){var A=sr(t,n.havingStyle(i.sup()),n);d={elem:A,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-A.depth)}}if(r){var z=sr(r,n.havingStyle(i.sub()),n);h={elem:z,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-z.height)}}var L;if(d&&h){var ne=n.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+o;L=ir({positionType:"bottom",positionData:ne,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Mt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(h){var ge=e.height-o;L=ir({positionType:"top",positionData:ge,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(d){var Q=e.depth+o;L=ir({positionType:"bottom",positionData:Q,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Mt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var F=[L];if(h&&s!==0&&!f){var Y=Tt(["mspace"],[],n);Y.style.marginRight=Mt(s),F.unshift(Y)}return Tt(["mop","op-limits"],F,n)},gv=new Set(["\\smallint"]),Ka=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=Qt(e.base,"op"),i=!0):s=Qt(e,"op");var o=t.style,f=!1;o.size===Gt.DISPLAY.size&&s.symbol&&!gv.has(s.name)&&(f=!0);var h,d;if(s.symbol){var A=f?"Size2-Regular":"Size1-Regular",z="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(z=s.name.slice(1),s.name=z==="oiint"?"\\iint":"\\iiint"),h=ln(s.name,A,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),d=h.italic,z.length>0){var L=Pg(z+"Size"+(f?"2":"1"),t);h=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:L,shift:f?.08:0}]}),s.name="\\"+z,h.classes.unshift("mop"),h.italic=d}}else if(s.body){var ne=jr(s.body,t,!0);ne.length===1&&ne[0]instanceof Rn?(h=ne[0],h.classes[0]="mop"):h=Tt(["mop"],ne,t)}else{for(var ge=[],Q=1;Q<s.name.length;Q++)ge.push(Cd(s.name[Q],s.mode,t));h=Tt(["mop"],ge,t)}var F=0,Y=0;if((h instanceof Rn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var pe;F=(h.height-h.depth)/2-t.fontMetrics().axisHeight,Y=(pe=h.italic)!=null?pe:0}return i?mv(h,r,n,t,o,Y,F):(F&&(h.style.position="relative",h.style.top=Mt(F)),h)},lo=(e,t)=>{var r;if(e.symbol)r=new qt("mo",[Yn(e.name,e.mode)]),gv.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new qt("mo",Mn(e.body,t));else{r=new qt("mi",[new Nr(e.name.slice(1))]);var n=new qt("mo",[Yn("⁡","text")]);e.parentIsSupSub?r=new qt("mrow",[r,n]):r=Vg([r,n])}return r},l6={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Dt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=l6[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ka,mathmlBuilder:lo});Dt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:zr(n)}},htmlBuilder:Ka,mathmlBuilder:lo});var o6={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Dt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Ka,mathmlBuilder:lo});Dt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Ka,mathmlBuilder:lo});Dt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=o6[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ka,mathmlBuilder:lo});var vv=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=Qt(e.base,"operatorname"),i=!0):s=Qt(e,"operatorname");var o;if(s.body.length>0){for(var f=s.body.map(z=>{var L="text"in z?z.text:void 0;return typeof L=="string"?{type:"textord",mode:z.mode,text:L}:z}),h=jr(f,t.withFont("mathrm"),!0),d=0;d<h.length;d++){var A=h[d];A instanceof Rn&&(A.text=A.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=Tt(["mop"],h,t)}else o=Tt(["mop"],[],t);return i?mv(o,r,n,t,t.style,0,0):o},u6=(e,t)=>{for(var r=Mn(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof Wg))if(s instanceof qt)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof Nr?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var f=r.map(A=>A.toText()).join("");r=[new Nr(f)]}var h=new qt("mi",r);h.setAttribute("mathvariant","normal");var d=new qt("mo",[Yn("⁡","text")]);return e.parentIsSupSub?new qt("mrow",[h,d]):Vg([h,d])};Dt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:zr(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:vv,mathmlBuilder:u6});Ze("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Gs({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ji(jr(e.body,t,!1)):Tt(["mord"],jr(e.body,t,!0),t)},mathmlBuilder(e,t){return hs(e.body,t,!0)}});Dt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=sr(e.body,t.havingCrampedStyle()),n=Da("overline-line",t),i=t.fontMetrics().defaultRuleThickness,s=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Tt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new qt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new qt("mover",[or(e.body,t),r]);return n.setAttribute("accent","true"),n}});Dt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:zr(n)}},htmlBuilder:(e,t)=>{var r=jr(e.body,t.withPhantom(),!1);return ji(r)},mathmlBuilder:(e,t)=>{var r=Mn(e.body,t);return new qt("mphantom",r)}});Ze("\\hphantom","\\smash{\\phantom{#1}}");Dt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Tt(["inner"],[sr(e.body,t.withPhantom())]),n=Tt(["fix"],[]);return Tt(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Mn(zr(e.body),t),n=new qt("mphantom",r),i=new qt("mpadded",[n]);return i.setAttribute("width","0px"),i}});Dt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Qt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=sr(e.body,t),n=vr(e.dy,t);return ir({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new qt("mpadded",[or(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Dt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Dt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],s=Qt(t[0],"size"),o=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:o.value}},htmlBuilder(e,t){var r=Tt(["mord","rule"],[],t),n=vr(e.width,t),i=vr(e.height,t),s=e.shift?vr(e.shift,t):0;return r.style.borderRightWidth=Mt(n),r.style.borderTopWidth=Mt(i),r.style.bottom=Mt(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=vr(e.width,t),n=vr(e.height,t),i=e.shift?vr(e.shift,t):0,s=t.color&&t.getColor()||"black",o=new qt("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Mt(r)),o.setAttribute("height",Mt(n));var f=new qt("mpadded",[o]);return i>=0?f.setAttribute("height",Mt(i)):(f.setAttribute("height",Mt(i)),f.setAttribute("depth",Mt(-i))),f.setAttribute("voffset",Mt(i)),f}});function yv(e,t,r){for(var n=jr(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var o=n[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[o+1]==="reset-size"+t.size&&(n[s].classes[o+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return ji(n)}var r_=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],c6=(e,t)=>{var r=t.havingSize(e.size);return yv(e.body,r,t)};Dt({type:"sizing",names:r_,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:r_.indexOf(n)+1,body:s}},htmlBuilder:c6,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Mn(e.body,r),i=new qt("mstyle",n);return i.setAttribute("mathsize",Mt(r.sizeMultiplier)),i}});Dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,s=!1,o=r[0]&&Qt(r[0],"ordgroup");if(o)for(var f,h=0;h<o.body.length;++h){var d=o.body[h];if(f=mc(d).text,f==="t")i=!0;else if(f==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var A=t[0];return{type:"smash",mode:n.mode,body:A,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=Tt([],[sr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Tt(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Tt(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new qt("mpadded",[or(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});Dt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:i}},htmlBuilder(e,t){var r=sr(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=La(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var o=i+s/4,f=r.height+r.depth+o+i,{span:h,ruleWidth:d,advanceWidth:A}=Q5(f,t),z=h.height-d;z>r.height+r.depth+o&&(o=(o+z-r.height-r.depth)/2);var L=h.height-r.height-o-d;r.style.paddingLeft=Mt(A);var ne=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+L)},{type:"elem",elem:h},{type:"kern",size:d}]});if(e.index){var ge=t.havingStyle(Gt.SCRIPTSCRIPT),Q=sr(e.index,ge,t),F=.6*(ne.height-ne.depth),Y=ir({positionType:"shift",positionData:-F,children:[{type:"elem",elem:Q}]}),pe=Tt(["root"],[Y]);return Tt(["mord","sqrt"],[pe,ne],t)}else return Tt(["mord","sqrt"],[ne],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new qt("mroot",[or(r,t),or(n,t)]):new qt("msqrt",[or(r,t)])}});var Qf={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function $6(e){return e in Qf}Dt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!0,r),o=n.slice(1,n.length-5);if(!$6(o))throw new Error("Unknown style: "+o);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(e,t){var r=Qf[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),yv(e.body,n,t)},mathmlBuilder(e,t){var r=Qf[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=Mn(e.body,n),s=new qt("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=o[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var f6=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===Gt.DISPLAY.size||n.alwaysHandleSupSub);return i?Ka:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?vv:null}else{if(n.type==="accent")return Li(n.base)?Nd:null;if(n.type==="horizBrace"){var o=!t.sub;return o===n.isOver?_v:null}else return null}else return null};Gs({type:"supsub",htmlBuilder(e,t){var r=f6(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,o=sr(n,t),f,h,d=t.fontMetrics(),A=0,z=0,L=n&&Li(n);if(i){var ne=t.havingStyle(t.style.sup());f=sr(i,ne,t),L||(A=o.height-ne.fontMetrics().supDrop*ne.sizeMultiplier/t.sizeMultiplier)}if(s){var ge=t.havingStyle(t.style.sub());h=sr(s,ge,t),L||(z=o.depth+ge.fontMetrics().subDrop*ge.sizeMultiplier/t.sizeMultiplier)}var Q;t.style===Gt.DISPLAY?Q=d.sup1:t.style.cramped?Q=d.sup3:Q=d.sup2;var F=t.sizeMultiplier,Y=Mt(.5/d.ptPerEm/F),pe=null;if(h){var se=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(o instanceof Rn||se){var ve;pe=Mt(-((ve=o.italic)!=null?ve:0))}}var Z;if(f&&h){A=Math.max(A,Q,f.depth+.25*d.xHeight),z=Math.max(z,d.sub2);var be=d.defaultRuleThickness,ue=4*be;if(A-f.depth-(h.height-z)<ue){z=ue-(A-f.depth)+h.height;var Ee=.8*d.xHeight-(A-f.depth);Ee>0&&(A+=Ee,z-=Ee)}var O=[{type:"elem",elem:h,shift:z,marginRight:Y,marginLeft:pe},{type:"elem",elem:f,shift:-A,marginRight:Y}];Z=ir({positionType:"individualShift",children:O})}else if(h){z=Math.max(z,d.sub1,h.height-.8*d.xHeight);var Ce=[{type:"elem",elem:h,marginLeft:pe,marginRight:Y}];Z=ir({positionType:"shift",positionData:z,children:Ce})}else if(f)A=Math.max(A,Q,f.depth+.25*d.xHeight),Z=ir({positionType:"shift",positionData:-A,children:[{type:"elem",elem:f,marginRight:Y}]});else throw new Error("supsub must have either sup or sub.");var $e=Wf(o,"right")||"mord";return Tt([$e],[o,Tt(["msupsub"],[Z])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[or(e.base,t)];e.sub&&s.push(or(e.sub,t)),e.sup&&s.push(or(e.sup,t));var o;if(r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===Gt.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Gt.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Gt.DISPLAY)?o="munder":o="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Gt.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Gt.DISPLAY)?o="mover":o="msup"}return new qt(o,s)}});Gs({type:"atom",htmlBuilder(e,t){return Cd(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new qt("mo",[Yn(e.text,e.mode)]);if(e.family==="bin"){var n=zd(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var bv={mi:"italic",mn:"normal",mtext:"normal"};Gs({type:"mathord",htmlBuilder(e,t){return hc(e,t,"mathord")},mathmlBuilder(e,t){var r=new qt("mi",[Yn(e.text,e.mode,t)]),n=zd(e,t)||"italic";return n!==bv[r.type]&&r.setAttribute("mathvariant",n),r}});Gs({type:"textord",htmlBuilder(e,t){return hc(e,t,"textord")},mathmlBuilder(e,t){var r=Yn(e.text,e.mode,t),n=zd(e,t)||"normal",i;return e.mode==="text"?i=new qt("mtext",[r]):/[0-9]/.test(e.text)?i=new qt("mn",[r]):e.text==="\\prime"?i=new qt("mo",[r]):i=new qt("mi",[r]),n!==bv[i.type]&&i.setAttribute("mathvariant",n),i}});var y$={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},b$={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Gs({type:"spacing",htmlBuilder(e,t){if(b$.hasOwnProperty(e.text)){var r=b$[e.text].className||"";if(e.mode==="text"){var n=hc(e,t,"textord");return n.classes.push(r),n}else return Tt(["mspace",r],[Cd(e.text,e.mode,t)],t)}else{if(y$.hasOwnProperty(e.text))return Tt(["mspace",y$[e.text]],[],t);throw new It('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(b$.hasOwnProperty(e.text))r=new qt("mtext",[new Nr(" ")]);else{if(y$.hasOwnProperty(e.text))return new qt("mspace");throw new It('Unknown type of space "'+e.text+'"')}return r}});var n_=()=>{var e=new qt("mtd",[]);return e.setAttribute("width","50%"),e};Gs({type:"tag",mathmlBuilder(e,t){var r=new qt("mtable",[new qt("mtr",[n_(),new qt("mtd",[hs(e.body,t)]),n_(),new qt("mtd",[hs(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var i_={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},s_={"\\textbf":"textbf","\\textmd":"textmd"},d6={"\\textit":"textit","\\textup":"textup"},a_=(e,t)=>{var r=e.font;if(r){if(i_[r])return t.withTextFontFamily(i_[r]);if(s_[r])return t.withTextFontWeight(s_[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(d6[r])};Dt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:zr(i),font:n}},htmlBuilder(e,t){var r=a_(e,t),n=jr(e.body,r,!0);return Tt(["mord","text"],n,r)},mathmlBuilder(e,t){var r=a_(e,t);return hs(e.body,r)}});Dt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=sr(e.body,t),n=Da("underline-line",t),i=t.fontMetrics().defaultRuleThickness,s=ir({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Tt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new qt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new qt("munder",[or(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Dt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=sr(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return ir({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new qt("mpadded",[or(e.body,t)],["vcenter"]);return new qt("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new It("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=l_(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var o=r[s];o==="~"&&(o="\\textasciitilde"),n.push(ln(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Tt(["mord","text"].concat(i.sizingClasses(t)),Fg(n),i)},mathmlBuilder(e,t){var r=new Nr(l_(e)),n=new qt("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var l_=e=>e.body.replace(/ /g,e.star?"␣":" "),Oi=Ug,xv=`[ \r
323
+ ]`,h6="\\\\[a-zA-Z@]+",p6="\\\\[^\uD800-\uDFFF]",_6="("+h6+")"+xv+"*",m6=`\\\\(
324
+ |[ \r ]+
325
+ ?)[ \r ]*`,Zf="[̀-ͯ]",g6=new RegExp(Zf+"+$"),v6="("+xv+"+)|"+(m6+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Zf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Zf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+_6)+("|"+p6+")");class o_{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(v6,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new An("EOF",new pn(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new It("Unexpected character: '"+t[r]+"'",new An(t[r],new pn(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
326
+ `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new An(i,new pn(this,r,this.tokenRegex.lastIndex))}}class y6{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new It("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var b6=$v;Ze("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Ze("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Ze("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Ze("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Ze("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});Ze("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ze("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var u_={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ze("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new It("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=u_[t.text],n==null||n>=r)throw new It("Invalid base-"+r+" digit "+t.text);for(var i;(i=u_[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Dd=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new It("\\newcommand's first argument must be a macro name");var s=i[0].text,o=e.isDefined(s);if(o&&!t)throw new It("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!r)throw new It("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var h="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)h+=d.text,d=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new It("Invalid number of arguments: "+h);f=parseInt(h),i=e.consumeArg().tokens}return o&&n||e.macros.set(s,{tokens:i,numArgs:f}),""};Ze("\\newcommand",e=>Dd(e,!1,!0,!1));Ze("\\renewcommand",e=>Dd(e,!0,!1,!1));Ze("\\providecommand",e=>Dd(e,!0,!0,!0));Ze("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Ze("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Ze("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Oi[r],pr.math[r],pr.text[r]),""});Ze("\\bgroup","{");Ze("\\egroup","}");Ze("~","\\nobreakspace");Ze("\\lq","`");Ze("\\rq","'");Ze("\\aa","\\r a");Ze("\\AA","\\r A");Ze("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ze("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ze("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ze("ℬ","\\mathscr{B}");Ze("ℰ","\\mathscr{E}");Ze("ℱ","\\mathscr{F}");Ze("ℋ","\\mathscr{H}");Ze("ℐ","\\mathscr{I}");Ze("ℒ","\\mathscr{L}");Ze("ℳ","\\mathscr{M}");Ze("ℛ","\\mathscr{R}");Ze("ℭ","\\mathfrak{C}");Ze("ℌ","\\mathfrak{H}");Ze("ℨ","\\mathfrak{Z}");Ze("\\Bbbk","\\Bbb{k}");Ze("\\llap","\\mathllap{\\textrm{#1}}");Ze("\\rlap","\\mathrlap{\\textrm{#1}}");Ze("\\clap","\\mathclap{\\textrm{#1}}");Ze("\\mathstrut","\\vphantom{(}");Ze("\\underbar","\\underline{\\text{#1}}");Ze("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ze("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ze("\\ne","\\neq");Ze("≠","\\neq");Ze("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Ze("∉","\\notin");Ze("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Ze("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ze("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ze("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Ze("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Ze("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Ze("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ze("⟂","\\perp");Ze("‼","\\mathclose{!\\mkern-0.8mu!}");Ze("∌","\\notni");Ze("⌜","\\ulcorner");Ze("⌝","\\urcorner");Ze("⌞","\\llcorner");Ze("⌟","\\lrcorner");Ze("©","\\copyright");Ze("®","\\textregistered");Ze("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ze("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ze("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ze("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ze("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ze("⋮","\\vdots");Ze("\\varGamma","\\mathit{\\Gamma}");Ze("\\varDelta","\\mathit{\\Delta}");Ze("\\varTheta","\\mathit{\\Theta}");Ze("\\varLambda","\\mathit{\\Lambda}");Ze("\\varXi","\\mathit{\\Xi}");Ze("\\varPi","\\mathit{\\Pi}");Ze("\\varSigma","\\mathit{\\Sigma}");Ze("\\varUpsilon","\\mathit{\\Upsilon}");Ze("\\varPhi","\\mathit{\\Phi}");Ze("\\varPsi","\\mathit{\\Psi}");Ze("\\varOmega","\\mathit{\\Omega}");Ze("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ze("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ze("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ze("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ze("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ze("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ze("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ze("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var c_={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},x6=new Set(["bin","rel"]);Ze("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in c_?t=c_[r]:(r.slice(0,4)==="\\not"||r in pr.math&&x6.has(pr.math[r].group))&&(t="\\dotsb"),t});var Ld={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Ze("\\dotso",function(e){var t=e.future().text;return t in Ld?"\\ldots\\,":"\\ldots"});Ze("\\dotsc",function(e){var t=e.future().text;return t in Ld&&t!==","?"\\ldots\\,":"\\ldots"});Ze("\\cdots",function(e){var t=e.future().text;return t in Ld?"\\@cdots\\,":"\\@cdots"});Ze("\\dotsb","\\cdots");Ze("\\dotsm","\\cdots");Ze("\\dotsi","\\!\\cdots");Ze("\\dotsx","\\ldots\\,");Ze("\\DOTSI","\\relax");Ze("\\DOTSB","\\relax");Ze("\\DOTSX","\\relax");Ze("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ze("\\,","\\tmspace+{3mu}{.1667em}");Ze("\\thinspace","\\,");Ze("\\>","\\mskip{4mu}");Ze("\\:","\\tmspace+{4mu}{.2222em}");Ze("\\medspace","\\:");Ze("\\;","\\tmspace+{5mu}{.2777em}");Ze("\\thickspace","\\;");Ze("\\!","\\tmspace-{3mu}{.1667em}");Ze("\\negthinspace","\\!");Ze("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ze("\\negthickspace","\\tmspace-{5mu}{.277em}");Ze("\\enspace","\\kern.5em ");Ze("\\enskip","\\hskip.5em\\relax");Ze("\\quad","\\hskip1em\\relax");Ze("\\qquad","\\hskip2em\\relax");Ze("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ze("\\tag@paren","\\tag@literal{({#1})}");Ze("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new It("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ze("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ze("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ze("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ze("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ze("\\newline","\\\\\\relax");Ze("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var wv=Mt(ci["Main-Regular"][84][1]-.7*ci["Main-Regular"][65][1]);Ze("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+wv+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ze("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+wv+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ze("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ze("\\@hspace","\\hskip #1\\relax");Ze("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ze("\\ordinarycolon",":");Ze("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ze("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ze("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ze("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ze("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ze("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ze("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ze("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ze("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ze("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ze("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ze("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ze("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ze("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ze("∷","\\dblcolon");Ze("∹","\\eqcolon");Ze("≔","\\coloneqq");Ze("≕","\\eqqcolon");Ze("⩴","\\Coloneqq");Ze("\\ratio","\\vcentcolon");Ze("\\coloncolon","\\dblcolon");Ze("\\colonequals","\\coloneqq");Ze("\\coloncolonequals","\\Coloneqq");Ze("\\equalscolon","\\eqqcolon");Ze("\\equalscoloncolon","\\Eqqcolon");Ze("\\colonminus","\\coloneq");Ze("\\coloncolonminus","\\Coloneq");Ze("\\minuscolon","\\eqcolon");Ze("\\minuscoloncolon","\\Eqcolon");Ze("\\coloncolonapprox","\\Colonapprox");Ze("\\coloncolonsim","\\Colonsim");Ze("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ze("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ze("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ze("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ze("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ze("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ze("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ze("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ze("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ze("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ze("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ze("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ze("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ze("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ze("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ze("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ze("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ze("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ze("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ze("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ze("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ze("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ze("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ze("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ze("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ze("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ze("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ze("\\imath","\\html@mathml{\\@imath}{ı}");Ze("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ze("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Ze("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Ze("⟦","\\llbracket");Ze("⟧","\\rrbracket");Ze("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Ze("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Ze("⦃","\\lBrace");Ze("⦄","\\rBrace");Ze("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Ze("⦵","\\minuso");Ze("\\darr","\\downarrow");Ze("\\dArr","\\Downarrow");Ze("\\Darr","\\Downarrow");Ze("\\lang","\\langle");Ze("\\rang","\\rangle");Ze("\\uarr","\\uparrow");Ze("\\uArr","\\Uparrow");Ze("\\Uarr","\\Uparrow");Ze("\\N","\\mathbb{N}");Ze("\\R","\\mathbb{R}");Ze("\\Z","\\mathbb{Z}");Ze("\\alef","\\aleph");Ze("\\alefsym","\\aleph");Ze("\\Alpha","\\mathrm{A}");Ze("\\Beta","\\mathrm{B}");Ze("\\bull","\\bullet");Ze("\\Chi","\\mathrm{X}");Ze("\\clubs","\\clubsuit");Ze("\\cnums","\\mathbb{C}");Ze("\\Complex","\\mathbb{C}");Ze("\\Dagger","\\ddagger");Ze("\\diamonds","\\diamondsuit");Ze("\\empty","\\emptyset");Ze("\\Epsilon","\\mathrm{E}");Ze("\\Eta","\\mathrm{H}");Ze("\\exist","\\exists");Ze("\\harr","\\leftrightarrow");Ze("\\hArr","\\Leftrightarrow");Ze("\\Harr","\\Leftrightarrow");Ze("\\hearts","\\heartsuit");Ze("\\image","\\Im");Ze("\\infin","\\infty");Ze("\\Iota","\\mathrm{I}");Ze("\\isin","\\in");Ze("\\Kappa","\\mathrm{K}");Ze("\\larr","\\leftarrow");Ze("\\lArr","\\Leftarrow");Ze("\\Larr","\\Leftarrow");Ze("\\lrarr","\\leftrightarrow");Ze("\\lrArr","\\Leftrightarrow");Ze("\\Lrarr","\\Leftrightarrow");Ze("\\Mu","\\mathrm{M}");Ze("\\natnums","\\mathbb{N}");Ze("\\Nu","\\mathrm{N}");Ze("\\Omicron","\\mathrm{O}");Ze("\\plusmn","\\pm");Ze("\\rarr","\\rightarrow");Ze("\\rArr","\\Rightarrow");Ze("\\Rarr","\\Rightarrow");Ze("\\real","\\Re");Ze("\\reals","\\mathbb{R}");Ze("\\Reals","\\mathbb{R}");Ze("\\Rho","\\mathrm{P}");Ze("\\sdot","\\cdot");Ze("\\sect","\\S");Ze("\\spades","\\spadesuit");Ze("\\sub","\\subset");Ze("\\sube","\\subseteq");Ze("\\supe","\\supseteq");Ze("\\Tau","\\mathrm{T}");Ze("\\thetasym","\\vartheta");Ze("\\weierp","\\wp");Ze("\\Zeta","\\mathrm{Z}");Ze("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ze("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ze("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ze("\\bra","\\mathinner{\\langle{#1}|}");Ze("\\ket","\\mathinner{|{#1}\\rangle}");Ze("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ze("\\Bra","\\left\\langle#1\\right|");Ze("\\Ket","\\left|#1\\right\\rangle");var kv=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var h=z=>L=>{e&&(L.macros.set("|",o),i.length&&L.macros.set("\\|",f));var ne=z;if(!z&&i.length){var ge=L.future();ge.text==="|"&&(L.popToken(),ne=!0)}return{tokens:ne?i:n,numArgs:0}};t.macros.set("|",h(!1)),i.length&&t.macros.set("\\|",h(!0));var d=t.consumeArg().tokens,A=t.expandTokens([...s,...d,...r]);return t.macros.endGroup(),{tokens:A.reverse(),numArgs:0}};Ze("\\bra@ket",kv(!1));Ze("\\bra@set",kv(!0));Ze("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ze("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ze("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ze("\\angln","{\\angl n}");Ze("\\blue","\\textcolor{##6495ed}{#1}");Ze("\\orange","\\textcolor{##ffa500}{#1}");Ze("\\pink","\\textcolor{##ff00af}{#1}");Ze("\\red","\\textcolor{##df0030}{#1}");Ze("\\green","\\textcolor{##28ae7b}{#1}");Ze("\\gray","\\textcolor{gray}{#1}");Ze("\\purple","\\textcolor{##9d38bd}{#1}");Ze("\\blueA","\\textcolor{##ccfaff}{#1}");Ze("\\blueB","\\textcolor{##80f6ff}{#1}");Ze("\\blueC","\\textcolor{##63d9ea}{#1}");Ze("\\blueD","\\textcolor{##11accd}{#1}");Ze("\\blueE","\\textcolor{##0c7f99}{#1}");Ze("\\tealA","\\textcolor{##94fff5}{#1}");Ze("\\tealB","\\textcolor{##26edd5}{#1}");Ze("\\tealC","\\textcolor{##01d1c1}{#1}");Ze("\\tealD","\\textcolor{##01a995}{#1}");Ze("\\tealE","\\textcolor{##208170}{#1}");Ze("\\greenA","\\textcolor{##b6ffb0}{#1}");Ze("\\greenB","\\textcolor{##8af281}{#1}");Ze("\\greenC","\\textcolor{##74cf70}{#1}");Ze("\\greenD","\\textcolor{##1fab54}{#1}");Ze("\\greenE","\\textcolor{##0d923f}{#1}");Ze("\\goldA","\\textcolor{##ffd0a9}{#1}");Ze("\\goldB","\\textcolor{##ffbb71}{#1}");Ze("\\goldC","\\textcolor{##ff9c39}{#1}");Ze("\\goldD","\\textcolor{##e07d10}{#1}");Ze("\\goldE","\\textcolor{##a75a05}{#1}");Ze("\\redA","\\textcolor{##fca9a9}{#1}");Ze("\\redB","\\textcolor{##ff8482}{#1}");Ze("\\redC","\\textcolor{##f9685d}{#1}");Ze("\\redD","\\textcolor{##e84d39}{#1}");Ze("\\redE","\\textcolor{##bc2612}{#1}");Ze("\\maroonA","\\textcolor{##ffbde0}{#1}");Ze("\\maroonB","\\textcolor{##ff92c6}{#1}");Ze("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ze("\\maroonD","\\textcolor{##ca337c}{#1}");Ze("\\maroonE","\\textcolor{##9e034e}{#1}");Ze("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ze("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ze("\\purpleC","\\textcolor{##aa87ff}{#1}");Ze("\\purpleD","\\textcolor{##7854ab}{#1}");Ze("\\purpleE","\\textcolor{##543b78}{#1}");Ze("\\mintA","\\textcolor{##f5f9e8}{#1}");Ze("\\mintB","\\textcolor{##edf2df}{#1}");Ze("\\mintC","\\textcolor{##e0e5cc}{#1}");Ze("\\grayA","\\textcolor{##f6f7f7}{#1}");Ze("\\grayB","\\textcolor{##f0f1f2}{#1}");Ze("\\grayC","\\textcolor{##e3e5e6}{#1}");Ze("\\grayD","\\textcolor{##d6d8da}{#1}");Ze("\\grayE","\\textcolor{##babec2}{#1}");Ze("\\grayF","\\textcolor{##888d93}{#1}");Ze("\\grayG","\\textcolor{##626569}{#1}");Ze("\\grayH","\\textcolor{##3b3e40}{#1}");Ze("\\grayI","\\textcolor{##21242c}{#1}");Ze("\\kaBlue","\\textcolor{##314453}{#1}");Ze("\\kaGreen","\\textcolor{##71B307}{#1}");var Sv={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class w6{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new y6(b6,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new o_(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new An("EOF",n.loc)),this.pushTokens(i),new An("",pn.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),s,o=0,f=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new It("Extra }",s)}else if(s.text==="EOF")throw new It("Unexpected end of input in a macro argument, expected '"+(t&&n?t[f]:"}")+"'",s);if(t&&n)if((o===0||o===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(o!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new It("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var s=this.popToken();if(n[i]!==s.text)throw new It("Use of the macro doesn't match its definition",s)}}for(var o=[],f=0;f<t;f++)o.push(this.consumeArg(r&&r[f+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new It("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new It("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var h=s[f];if(h.text==="#"){if(f===0)throw new It("Incomplete placeholder at end of macro body",h);if(h=s[--f],h.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(h.text))s.splice(f,2,...o[+h.text-1]);else throw new It("Not a valid argument number",h)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new An(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var s=0;if(i.includes("#"))for(var o=i.replace(/##/g,"");o.includes("#"+(s+1));)++s;for(var f=new o_(i,this.settings),h=[],d=f.lex();d.text!=="EOF";)h.push(d),d=f.lex();h.reverse();var A={tokens:h,numArgs:s};return A}return i}isDefined(t){return this.macros.has(t)||Oi.hasOwnProperty(t)||pr.math.hasOwnProperty(t)||pr.text.hasOwnProperty(t)||Sv.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Oi.hasOwnProperty(t)&&!Oi[t].primitive}}var $_=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mo=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),x$={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},f_={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class kc{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new w6(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new It("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new An("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(kc.endOfExpression.has(i.text)||r&&i.text===r||t&&Oi[i.text]&&Oi[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var s=t[i];if(s.type==="infix"){if(r!==-1)throw new It("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var o,f,h=t.slice(0,r),d=t.slice(r+1);h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h},d.length===1&&d[0].type==="ordgroup"?f=d[0]:f={type:"ordgroup",mode:this.mode,body:d};var A;return n==="\\\\abovefrac"?A=this.callFunction(n,[o,t[r],f],[]):A=this.callFunction(n,[o,f],[]),[A]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var s;i=this.parseGroup(t)}while(((s=i)==null?void 0:s.type)==="internal");if(!i)throw new It("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var o=s.text==="\\limits";r.limits=o,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new It("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new It("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new It("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new It("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},h=[f];for(this.consume();this.fetch().text==="'";)h.push(f),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:h}}else if(Mo[s.text]){var d=$_.test(s.text),A=[];for(A.push(new An(Mo[s.text])),this.consume();;){var z=this.fetch().text;if(!Mo[z]||$_.test(z)!==d)break;A.unshift(new An(Mo[z])),this.consume()}var L=this.subparse(A);d?i={type:"ordgroup",mode:"math",body:L}:n={type:"ordgroup",mode:"math",body:L}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,s=Oi[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new It("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new It("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new It("Can't use function '"+i+"' in math mode",n);var{args:o,optArgs:f}=this.parseArguments(i,s);return this.callFunction(i,o,f,n,t)}callFunction(t,r,n,i,s){var o={funcName:t,parser:this,token:i,breakOnTokenText:s},f=Oi[t];if(f&&f.handler)return f.handler(o,r,n);throw new It("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],o=0;o<n;o++){var f=r.argTypes&&r.argTypes[o],h=o<r.numOptionalArgs;("primitive"in r&&r.primitive&&f==null||r.type==="sqrt"&&o===1&&s[0]==null)&&(f="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",f,h);if(h)s.push(d);else if(d!=null)i.push(d);else throw new It("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new It("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new It("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new It("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,s="",o;(o=this.fetch()).text!=="EOF"&&t.test(s+o.text);)i=o,s+=i.text,this.consume();if(s==="")throw new It("Invalid "+r+": '"+n.text+"'",n);return n.range(i,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new It("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new It("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!Ig(s))throw new It("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),o}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var o=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,o),h=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:pn.range(n,h),body:f,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!Sv.hasOwnProperty(i)){if(this.settings.throwOnError)throw new It("Undefined control sequence: "+i,n);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var s=i.text,o=t[n+1];if(!(!o||o.type!=="textord")){if(s==="-"&&o.text==="-"){var f=t[n+2];n+1<r&&f&&f.type==="textord"&&f.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:pn.range(i,f),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:pn.range(i,o),text:"--"}),r-=1)}(s==="'"||s==="`")&&o.text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:pn.range(i,o),text:s+s}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new It(`\\verb assertion failed --
327
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}f_.hasOwnProperty(r[0])&&!pr[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=f_[r[0]]+r.slice(1));var s=g6.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var o;if(pr[this.mode][r]){this.settings.strict&&this.mode==="math"&&Lf.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var f=pr[this.mode][r].group,h=pn.range(t),d;j5(f)?d={type:"atom",mode:this.mode,family:f,loc:h,text:r}:d={type:f,mode:this.mode,loc:h,text:r},o=d}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Ng(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:pn.range(t),text:r};else return null;if(this.consume(),s)for(var A=0;A<s[0].length;A++){var z=s[0][A];if(!x$[z])throw new It("Unknown accent ' "+z+"'",t);var L=x$[z][this.mode]||x$[z].text;if(!L)throw new It("Accent "+z+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:pn.range(t),label:L,isStretchy:!1,isShifty:!0,base:o}}return o}}kc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Fd=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new kc(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new It("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new An("\\df@tag")])}]}return i},Ev=function(t,r,n){r.textContent="";var i=jd(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Ev=function(){throw new It("KaTeX doesn't work in quirks mode.")});var k6=function(t,r){var n=jd(t,r).toMarkup();return n},S6=function(t,r){var n=new kd(r);return Fd(t,n)},Av=function(t,r,n){if(n.throwOnError||!(t instanceof It))throw t;var i=Tt(["katex-error"],[new Rn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},jd=function(t,r){var n=new kd(r);try{var i=Fd(t,n);return z5(i,t,n)}catch(s){return Av(s,t,n)}},E6=function(t,r){var n=new kd(r);try{var i=Fd(t,n);return N5(i,t,n)}catch(s){return Av(s,t,n)}},A6="0.16.47",C6={Span:Ya,Anchor:fc,SymbolNode:Rn,SvgNode:qi,PathNode:fs,LineNode:Df},T6={version:A6,render:Ev,renderToString:k6,ParseError:It,SETTINGS_SCHEMA:If,__parse:S6,__renderToDomTree:jd,__renderToHTMLTree:E6,__setFontMetrics:f5,__defineSymbol:_e,__defineFunction:Dt,__defineMacro:Ze,__domTree:C6};function $i(e,t){return T6.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function R6({node:e}){return ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:$i(ys(e.value),!0)}})]})}function z6({chunk:e}){return ye.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:$i(e.value,!0)}})}const d_={path:null,href:null},N6=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function I6(e,t){return Un([...Vr(e),...Vr(t)])}function h_(e){const t=[];for(const r of e.match(/\[\d+\]|[^/\[\]]+/g)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):r);return t}function q6(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:Un(Vr(r.slice(2))),href:null}:r.startsWith(":")?{path:I6(t,r),href:null}:r.startsWith("//")?{path:Un(h_(r)),href:null}:N6(r)?{path:null,href:r}:r.startsWith("/")?{path:Un([...Vr(t),...h_(r)]),href:null}:d_:d_}function M6({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=q6(e,t);return s?ye.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?ye.jsx("a",{className:"descend",href:i,onClick:o=>{o.preventDefault(),r(i)},children:n}):ye.jsx(ye.Fragment,{children:n})}function Bd(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sa(e){return Bd(e).replace(/~~(.+?)~~/g,"<del>$1</del>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/__(.+?)__/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/_(.+?)_/g,"<em>$1</em>")}const Cv=/\$\$([\s\S]+?)\$\$|`([^`]+?)`|\[((?:[^\[\]]|\[[^\]]*\])*?)\]\(([^)]+?)\)/g;function Tv(e,t,r){const n=String(e??""),i=[];let s="",o=0;const f=()=>{s&&(i.push(ye.jsx("span",{dangerouslySetInnerHTML:{__html:s}},o++)),s="")};let h=0;for(const d of n.matchAll(Cv))s+=Sa(n.slice(h,d.index)),d[1]!==void 0?s+=$i(d[1],!1):d[2]!==void 0?s+=`<code>${Bd(d[2])}</code>`:(f(),i.push(ye.jsx(M6,{target:d[4],documentPath:r,onNavigate:t,children:ye.jsx("span",{dangerouslySetInnerHTML:{__html:Sa(d[3])}})},o++))),h=d.index+d[0].length;return s+=Sa(n.slice(h)),f(),i}function D6({node:e,onNavigate:t}){return ye.jsxs("div",{className:"marklower",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx("p",{className:"chapter-prose",children:Tv(ys(e.value),t,e.documentPath)})]})}function L6({chunk:e,onNavigate:t}){return ye.jsx("p",{className:"chapter-prose",children:Tv(e.value,t,e.documentPath)})}function w$(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Rv(e){const t=String(e??"");let r="",n=0;for(const i of t.matchAll(Cv))r+=Sa(t.slice(n,i.index)),i[1]!==void 0?r+=`<span class="mlw-atom" contenteditable="false" data-src="${w$("$$"+i[1]+"$$")}">${$i(i[1],!1)}</span>`:i[2]!==void 0?r+=`<code class="mlw-atom" contenteditable="false" data-src="${w$("`"+i[2]+"`")}">${Bd(i[2])}</code>`:r+=`<a class="mlw-atom mlw-link" contenteditable="false" data-src="${w$("["+i[3]+"]("+i[4]+")")}">${Sa(i[3])}</a>`,n=i.index+i[0].length;return r+=Sa(t.slice(n)),r}const F6=new Set(["script","style","noscript","template","iframe","head","title"]);function Pd(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.getAttribute("data-src");if(t!=null)return t;const r=e.tagName.toLowerCase();if(F6.has(r))return"";if(r==="br")return`
328
+ `;const n=Array.from(e.childNodes).map(Pd).join("");if(r==="a"){const i=e.getAttribute("href")??"",s=n.trim();return/^https?:\/\//.test(i)&&s?`[${s}](${i})`:n}return r==="strong"||r==="b"?n.trim()?`**${n.trim()}**`:"":r==="em"||r==="i"?n.trim()?`*${n.trim()}*`:"":r==="code"?n.trim()?"`"+n.trim()+"`":"":r==="del"||r==="s"||r==="strike"?n.trim()?`~~${n.trim()}~~`:"":n}function zv(e){const t=[],r=n=>{for(const i of Array.from(n.childNodes))i instanceof HTMLElement&&(i.tagName==="DIV"||i.tagName==="P")?(t.push(`
329
+ `),r(i)):t.push(Pd(i))};return r(e),t.join("").replace(/^\n+/,"").replace(/\n+$/,"")}function j6(e){Nv(e,0)}function B6(e){e.focus();const t=window.getSelection();if(!t)return;const r=document.createRange();r.selectNodeContents(e),r.collapse(!1),t.removeAllRanges(),t.addRange(r)}function Nv(e,t){e.focus();const r=window.getSelection();if(!r)return;const n=document.createRange();let i=Math.max(0,t);const s=o=>{for(const f of Array.from(o.childNodes))if(f.nodeType===Node.TEXT_NODE){const h=f.textContent?.length??0;if(i<=h)return n.setStart(f,i),n.collapse(!0),!0;i-=h}else if(f instanceof HTMLElement){if(f.getAttribute("contenteditable")==="false"||f.hasAttribute("data-src")){const d=f.textContent?.length??0;if(i<=d)return n.setStartAfter(f),n.collapse(!0),!0;i-=d}else if(s(f))return!0}return!1};s(e)||(n.selectNodeContents(e),n.collapse(!1)),r.removeAllRanges(),r.addRange(n)}function Sc(e){const t=window.getSelection();if(!t||t.rangeCount===0||!t.isCollapsed)return null;const r=t.getRangeAt(0);return e.contains(r.startContainer)?r:null}function P6(e){const t=Sc(e);if(!t)return!1;const r=document.createRange();return r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset),r.toString().length===0}function U6(e){const t=Sc(e);if(!t)return!1;const r=document.createRange();return r.selectNodeContents(e),r.setStart(t.endContainer,t.endOffset),r.toString().length===0}function Iv(e){const t=e.cloneRange();t.collapse(!0);let r=t.getBoundingClientRect();if(r.height===0&&r.top===0){const n=document.createElement("span");n.textContent="​",t.insertNode(n),r=n.getBoundingClientRect();const i=n.parentNode;n.remove(),i?.normalize()}return r}function qv(e){const t=getComputedStyle(e),r=parseFloat(t.lineHeight);return Number.isFinite(r)&&r>0?r:(parseFloat(t.fontSize)||16)*1.4}function H6(e){const t=Sc(e);if(!t)return!1;if(e.clientHeight===0)return!0;const r=Iv(t);return r?r.top-e.getBoundingClientRect().top<qv(e)*.75:!0}function V6(e){const t=Sc(e);if(!t)return!1;if(e.clientHeight===0)return!0;const r=Iv(t);return r?e.getBoundingClientRect().bottom-r.bottom<qv(e)*.75:!0}function W6(e){const t=document.createElement("div");return t.innerHTML=Rv(e),t.textContent?.length??0}function Y6(e){const t=window.getSelection();if(!t||t.rangeCount===0||!e.contains(t.getRangeAt(0).endContainer))return null;const r=t.getRangeAt(0),n=i=>{const s=document.createRange();s.selectNodeContents(e),i==="head"?s.setEnd(r.endContainer,r.endOffset):s.setStart(r.endContainer,r.endOffset);const o=document.createElement("div");return o.appendChild(s.cloneContents()),zv(o)};return{head:n("head"),tail:n("tail")}}function G6(e,t){t==="start"?j6(e):t==="end"?B6(e):typeof t=="number"&&Nv(e,t)}const K6=({text:e,rev:t,focusAt:r,onFocused:n,onChangeText:i,onSplit:s,onArrowOut:o,onJoinPrev:f,onJoinNext:h})=>{const d=ft.useRef(null);return ft.useEffect(()=>{d.current&&(d.current.innerHTML=Rv(e))},[t]),ft.useEffect(()=>{r!=null&&d.current&&(G6(d.current,r),n())},[r]),ye.jsx("p",{ref:d,className:"chapter-prose editable",contentEditable:!0,suppressContentEditableWarning:!0,onInput:()=>{d.current&&i(zv(d.current))},onKeyDown:A=>{const z=d.current;if(z){if(A.key==="Enter"&&!A.shiftKey){A.preventDefault();const L=Y6(z);L&&s(L.head,L.tail);return}if(A.key==="ArrowUp"&&H6(z)){A.preventDefault(),o("up");return}if(A.key==="ArrowDown"&&V6(z)){A.preventDefault(),o("down");return}if(A.key==="Backspace"&&P6(z)){A.preventDefault(),f();return}if(A.key==="Delete"&&U6(z)){A.preventDefault(),h();return}}}})},X6=({text:e,rev:t,focusAt:r,onFocused:n,onChangeText:i,onArrowOut:s})=>{const o=ft.useRef(null),f=h=>{h.style.height="auto",h.style.height=h.scrollHeight+"px"};return ft.useEffect(()=>{o.current&&(o.current.value=e,f(o.current))},[t]),ft.useEffect(()=>{const h=o.current;if(r==null||!h)return;const d=r==="start"?0:r==="end"?h.value.length:r;h.focus(),h.setSelectionRange(d,d),n()},[r]),ye.jsx("textarea",{ref:o,className:"chapter-latex-src editable",spellCheck:!1,rows:1,defaultValue:e,onInput:h=>{const d=h.currentTarget;f(d),i(d.value)},onKeyDown:h=>{const d=h.currentTarget,A=d.value.slice(0,d.selectionStart),z=d.value.slice(d.selectionEnd),L=d.selectionStart===d.selectionEnd;if(h.key==="ArrowUp"&&L&&!A.includes(`
330
+ `)){h.preventDefault(),s("up");return}if(h.key==="ArrowDown"&&L&&!z.includes(`
331
+ `)){h.preventDefault(),s("down");return}}})};function Q6(e){return e===null||e==="text/marklower"||e==="text/markdown"?K6:e==="text/x-latex"?X6:null}function p_(e){return e===null||e==="text/marklower"||e==="text/markdown"}const Z6=/^([a-z][a-z0-9+.-]*:|\/\/|\/|#)/i;function J6(e){try{return decodeURIComponent(e)}catch{return e}}function Mv(e,t){if(!t)return null;const r=e.trim();if(!r||Z6.test(r))return null;const n=r.split(/[?#]/,1)[0],i=Vr(t).slice(0,-1);for(const s of n.split("/"))s===""||s==="."||(s===".."?i.pop():i.push(J6(s)));return i}function Dv(e,t){if(!t||!e.includes("<a"))return e;const r=document.createElement("template");r.innerHTML=e;for(const n of r.content.querySelectorAll("a[href]")){const i=Mv(n.getAttribute("href")||"",t);if(!i)continue;const s=Un(i);n.setAttribute("href",s),n.setAttribute("data-navpath",s)}return r.innerHTML}function Ud(e){return t=>{if(!e||t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const r=t.target.closest?.("a[data-navpath]");r&&(t.preventDefault(),e(r.getAttribute("data-navpath")))}}const Lv=72,Jf=20,Of=400,Fv="yamlover.markupWidthCh",jv=()=>new URLSearchParams(window.location.search),Bv=e=>Number.isFinite(e)&&e>=Jf&&e<=Of;function O6(){try{const e=Number(localStorage.getItem(Fv));return Bv(e)?e:null}catch{return null}}function Ec(){const e=Number(jv().get("width"));return Bv(e)?e:O6()??Lv}function e7(e){try{localStorage.setItem(Fv,String(e))}catch{}const t=jv();t.delete("width"),e!==Lv&&t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function Pv({html:e,onNavigate:t}){return ye.jsx("div",{className:"markup",style:{maxWidth:`${Ec()}ch`},onClick:Ud(t),dangerouslySetInnerHTML:{__html:e}})}function Do({rerender:e}){const t=Ec(),[r,n]=ft.useState(String(t));ft.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=Jf&&i<=Of;return ye.jsx("input",{className:"markup-width"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"width, ch",value:r,onChange:o=>{const f=o.target.value;n(f);const h=Number(f);f.trim()!==""&&Number.isInteger(h)&&h>=Jf&&h<=Of&&(e7(h),e())}})}const Uv="$yamloverMixed";function t7(e){return e==null||e==="text/marklower"||e==="text/markdown"||e==="text/x-latex"}function r7(e,t){return e==="string"&&t7(t)}function Hd(e){return e==="x-yamlover-chapter"||e==="x-yamlover-task"}function eu(e,t){return Un([...Vr(e),t])}function n7(e){if(Array.isArray(e))return e;const t=e?.[Uv];return t?.entries?t.entries.filter(r=>r.key==null).map(r=>r.value):[]}function i7(e){const t=i=>Hd(Fr(i)?.format)?"subchapter":"chunk";if(Array.isArray(e))return e.map(i=>({kind:t(i),value:i}));const r=e?.[Uv];if(!r?.entries)return[];const n=[];for(const i of r.entries)i.key==="title"?n.push({kind:"title",value:i.value}):i.key==="description"?n.push({kind:"description",value:i.value}):i.key==null&&n.push({kind:t(i.value),value:i.value});return n}function __(e){const t=Fr(e)?.value??e;return typeof t=="string"?t:t==null?"":String(t)}let s7=0;const e0=()=>`ck${s7++}`;function m_(e,t="text/marklower"){return{id:e0(),rev:0,editable:!0,text:e,format:t,concrete:"yamlover",subchapter:!1,marker:null}}function a7(e){const r=n7(e.value).map(n=>{const i=Fr(n),s=i?.format??null;if(Hd(s))return{id:e0(),rev:0,editable:!1,text:"",format:s,concrete:i?.concrete??"yamlover",subchapter:!0,navPath:i?.path,title:i?.title,marker:n};const o=!i||typeof i.path=="string"&&i.path.startsWith(e.path+"["),f=i?.type,h=o&&r7(f,s);return{id:e0(),rev:0,editable:h,text:h?String(i?.value??n??""):"",format:s,concrete:i?.concrete??"yamlover",subchapter:!1,marker:n}});return{path:e.path,title:e.title??"",description:e.description??"",chunks:r}}function g_(e){return{path:e.path,title:e.title,description:e.description,chunks:e.chunks.map(t=>({...t}))}}function l7(e,t){const r=[],n=t.path;t.title!==e.title&&r.push({path:eu(n,"title"),op:"set",text:t.title}),t.description!==e.description&&r.push({path:eu(n,"description"),op:"set",text:t.description});const i=t.chunks.map(A=>A.id),s=new Map(t.chunks.map(A=>[A.id,A])),o=new Map(e.chunks.map(A=>[A.id,A])),f=e.chunks.map(A=>A.id),h=A=>eu(n,A),d=f.map((A,z)=>s.has(A)?-1:z).filter(A=>A>=0).sort((A,z)=>z-A);for(const A of d)r.push({path:h(A),op:"remove"}),f.splice(A,1);for(let A=0;A<i.length;A++){const z=i[A];f.includes(z)||(r.push({path:n,op:"insert",index:A,text:s.get(z).text}),f.splice(A,0,z))}for(let A=0;A<i.length;A++){const z=s.get(i[A]),L=o.get(i[A]);L&&z.editable&&z.text!==L.text&&r.push({path:h(A),op:"replace",text:z.text})}return r}function Hv({node:e,onNavigate:t}){const{unlocked:r}=e3(),{openAt:n,tagMenu:i}=wd({onCreate:(o,f,h)=>void cg(o,f,h).then(d=>t(d.path)).catch(d=>window.alert("create failed: "+d.message))}),s=o=>{o.target.closest(".chunk-body, .editable, a, button, textarea")||(o.preventDefault(),n(e.path,o.clientX,o.clientY,{format:e.format,concrete:e.concrete}))};return ye.jsxs("div",{className:"chapter-page",onContextMenu:s,children:[r?ye.jsx($7,{initialNode:e,onNavigate:t},e.path):ye.jsx(o7,{node:e,onNavigate:t}),i]})}function o7({node:e,onNavigate:t}){const r=i7(e.value);cc(e);let n=0;return ye.jsx("div",{className:"chapter",style:{maxWidth:`${Ec()}ch`},children:r.map((i,s)=>{if(i.kind==="title")return ye.jsx("h1",{className:"chapter-title",children:__(i.value)},s);if(i.kind==="description")return ye.jsx("p",{className:"chapter-subtitle",children:__(i.value)},s);if(i.kind==="subchapter"){const o=Fr(i.value);return ye.jsx(Vv,{path:o?.path,title:o?.title,onNavigate:t},s)}return ye.jsx(u7,{index:n++,item:i.value,basePath:e.path,documentPath:e.documentPath,onNavigate:t},s)})})}function u7({index:e,item:t,basePath:r,documentPath:n,onNavigate:i}){const s=Yv(t,n),o=Qa(s),f=o?.renderChunk?o.renderChunk(s,i):ye.jsx("p",{className:"chapter-prose",children:String(s.value??"")}),h=s.path?no(r,s.path):null;return ye.jsxs("div",{className:"chunk",id:h??void 0,"data-node-path":s.path||void 0,children:[ye.jsx(Wv,{index:e,anchor:h}),ye.jsx("div",{className:"chunk-body",children:f})]})}function Vv({path:e,title:t,onNavigate:r}){return ye.jsx("h2",{className:"chapter-link",children:ye.jsx("a",{className:"descend",href:e??"#",onClick:n=>{n.preventDefault(),e&&r(e)},children:t||"(untitled chapter)"})})}function c7(e){const t=ft.useRef(null);t.current===null&&(t.current=g_(e));const r=ft.useRef(e);r.current=e;const n=ft.useRef(void 0),i=ft.useRef(!1),s=ft.useRef(!1),o=ft.useCallback(async()=>{if(i.current){s.current=!0;return}const f=r.current,h=l7(t.current,f);if(h.length){i.current=!0;try{await w4(h),t.current=g_(f)}catch(d){window.alert("edit sync failed: "+d.message)}finally{i.current=!1,s.current&&(s.current=!1,o())}}},[]);return ft.useEffect(()=>(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>void o(),500),()=>{n.current&&clearTimeout(n.current)}),[e,o]),ft.useCallback(()=>(n.current&&clearTimeout(n.current),o()),[o])}function $7({initialNode:e,onNavigate:t}){const[r,n]=ft.useState(()=>a7(e)),[i,s]=ft.useState(null),o=c7(r),f=ft.useRef(o);f.current=o,ft.useEffect(()=>()=>void f.current(),[]);const h=ft.useCallback((ne,ge)=>{n(Q=>({...Q,chunks:Q.chunks.map(F=>F.id===ne?{...F,text:ge}:F)}))},[]),d=ft.useCallback((ne,ge,Q)=>{n(F=>{const Y=F.chunks.findIndex(ve=>ve.id===ne);if(Y<0)return F;const pe=m_(Q,F.chunks[Y].format),se=F.chunks.slice();return se[Y]={...se[Y],text:ge,rev:se[Y].rev+1},se.splice(Y+1,0,pe),s({id:pe.id,at:"start"}),{...F,chunks:se}})},[]);ft.useCallback(ne=>{n(ge=>{const Q=m_(""),F=ge.chunks.slice();return F.splice(ne+1,0,Q),s({id:Q.id,at:"start"}),{...ge,chunks:F}})},[]);const A=ft.useCallback(ne=>{n(ge=>{const Q=ge.chunks.findIndex(pe=>pe.id===ne);if(Q<0||ge.chunks.length<=1)return ge;const F=ge.chunks.slice();F.splice(Q,1);const Y=F[Math.max(0,Q-1)];return Y?.editable&&s({id:Y.id,at:"end"}),{...ge,chunks:F}})},[]),z=ft.useCallback((ne,ge)=>{n(Q=>{const F=Q.chunks.findIndex(se=>se.id===ne),Y=ge==="up"?F-1:F+1,pe=Q.chunks[Y];return pe?.editable&&s({id:pe.id,at:ge==="up"?"end":"start"}),Q})},[]),L=ft.useCallback((ne,ge)=>{n(Q=>{const F=Q.chunks.findIndex(ue=>ue.id===ne),Y=ge==="prev"?F-1:F,pe=ge==="prev"?F:F+1;if(Y<0||pe>=Q.chunks.length)return Q;const se=Q.chunks[Y],ve=Q.chunks[pe];if(!se.editable||!ve.editable||!p_(se.format)||!p_(ve.format))return Q;const Z=W6(se.text),be=Q.chunks.slice();return be[Y]={...se,text:se.text+ve.text,rev:se.rev+1},be.splice(pe,1),s({id:se.id,at:Z}),{...Q,chunks:be}})},[]);return ye.jsxs("div",{className:"chapter",style:{maxWidth:`${Ec()}ch`},children:[ye.jsx(v_,{as:"h1",className:"chapter-title",placeholder:"Title",value:r.title,onCommit:ne=>n(ge=>({...ge,title:ne}))}),ye.jsx(v_,{as:"p",className:"chapter-subtitle",placeholder:"Description",value:r.description,onCommit:ne=>n(ge=>({...ge,description:ne}))}),r.chunks.map((ne,ge)=>ne.subchapter?ye.jsx(Vv,{path:ne.navPath,title:ne.title,onNavigate:t},ne.id):ye.jsx(f7,{index:ge,part:ne,basePath:r.path,documentPath:e.documentPath,onNavigate:t,focusAt:i?.id===ne.id?i.at:null,onFocused:()=>s(null),onChangeText:Q=>h(ne.id,Q),onSplit:(Q,F)=>d(ne.id,Q,F),onArrowOut:Q=>z(ne.id,Q),onJoinPrev:()=>L(ne.id,"prev"),onJoinNext:()=>L(ne.id,"next"),onRemove:r.chunks.filter(Q=>!Q.subchapter).length>1?()=>A(ne.id):void 0},ne.id))]})}function f7({index:e,part:t,basePath:r,documentPath:n,onNavigate:i,focusAt:s,onFocused:o,onChangeText:f,onSplit:h,onArrowOut:d,onJoinPrev:A,onJoinNext:z,onRemove:L}){const ne=eu(r,e),ge=no(r,ne),Q=t.editable?Q6(t.format):null;let F;if(Q)F=ye.jsx(Q,{text:t.text,rev:t.rev,focusAt:s,onFocused:o,onChangeText:f,onSplit:h,onArrowOut:d,onJoinPrev:A,onJoinNext:z});else{const Y=Yv(t.marker,n),pe=Qa(Y);F=pe?.renderChunk?pe.renderChunk(Y,i):ye.jsx("p",{className:"chapter-prose",children:String(Y.value??"")})}return ye.jsxs("div",{className:"chunk",id:ge??void 0,children:[ye.jsx(Wv,{index:e,anchor:ge}),ye.jsx("div",{className:"chunk-body",children:F}),Q&&L&&ye.jsx("span",{className:"chunk-tools",children:ye.jsx("button",{className:"chunk-tool",title:"Delete this paragraph",onClick:L,children:"🗑"})})]})}function v_({as:e,value:t,onCommit:r,className:n,placeholder:i}){const s=ft.useRef(null),o=ft.useRef(!1),f=e;return ft.useEffect(()=>{s.current&&!o.current&&(s.current.textContent=t)},[t]),ye.jsx(f,{ref:s,className:(n?n+" ":"")+"editable",contentEditable:!0,suppressContentEditableWarning:!0,"data-placeholder":i,onFocus:()=>o.current=!0,onBlur:()=>{o.current=!1,r((s.current?.textContent??"").trim())},onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),h.target.blur())}})}function Wv({index:e,anchor:t}){return t?ye.jsxs("a",{className:"chunk-index",href:`#${t}`,children:["§",e]}):ye.jsxs("span",{className:"chunk-index",children:["§",e]})}function Yv(e,t){const r=Fr(e);return{value:r?r.value:e,path:r?.path??"",type:r?.type??"string",format:r?.format??null,valueType:r?.valueType??"string",hasKeyed:r?.hasKeyed??!1,hasOrdinal:r?.hasOrdinal??!1,documentPath:t}}const d7="$yamloverRef",h7="x-yamlover-workflow";function Bs(e){const t=Fr(e);if(t)return t.path;const r=e?.[d7];return r&&typeof r.path=="string"?r.path:null}function Gv(e){const t=Tn(e).find(([n])=>n==="next")?.[1];if(t==null)return[];if(Array.isArray(t))return t.map(Bs).filter(n=>n!=null);const r=Bs(t);return r?[r]:[]}async function p7(e){const t=await on(e,1),r=Bs(Tn(t.value).find(([s])=>s==="initial")?.[1]),n=new Set,i=[];for(const[s,o]of Tn(t.value)){if(s==="initial"||s==="color")continue;const f=Fr(o);!f||f.format!==Ws||n.has(f.path)||(n.add(f.path),i.push({path:f.path,label:$c(f.path,f.title),color:f.color??null,next:[],initial:f.path===r}))}return await Promise.all(i.map(async s=>{try{s.next=Gv((await on(s.path,2)).value)}catch{}})),i}async function Kv(e,t,r){t!==r&&(t&&await Ou(e,t),await qa({target:e,tag:r}))}async function _7(e){const t=e.lastIndexOf(":");if(t<=0)return!1;try{return(await on(e.slice(0,t),0)).format===h7}catch{return!1}}async function t0(e){const t=await on(e,2);return{path:e,label:$c(e,t.title),color:md(t.value),next:Gv(t.value)}}const Lo=(e,t)=>{const r=Tn(e).find(([i])=>i===t)?.[1],n=Fr(r)?.value??r;return typeof n=="string"?n:typeof n=="number"?String(n):null};function m7({node:e,onNavigate:t}){const r=Va(Ys),[n,i]=ft.useState(null),s=Lo(e.value,"priority"),o=Lo(e.value,"assignee"),f=Lo(e.value,"due"),h=Lo(e.value,"estimate");ft.useEffect(()=>{let A=!1;return(async()=>{const z=await Wl(e.path).catch(()=>[]);let L=null;for(const ne of z){const ge=ne.tag?.path;if(!ge||!await _7(ge))continue;const Q=await t0(ge),F=await Promise.all(Q.next.map(Y=>t0(Y)));L={...Q,nextStates:F};break}A||i(L)})(),()=>{A=!0}},[e.path,r]);const d=async A=>{n&&await Kv(e.path,n.path,A).catch(()=>{})};return ye.jsxs("div",{className:"task",children:[ye.jsxs("div",{className:"task-strip",children:[n&&ye.jsx("span",{className:"task-state",style:{background:Hn({name:n.label,color:n.color})},children:n.label}),n?.nextStates.map(A=>ye.jsxs("button",{className:"task-advance",style:{borderColor:Hn({name:A.label,color:A.color})},onClick:()=>d(A.path),title:`Move to ${A.label}`,children:["→ ",A.label]},A.path)),s&&ye.jsx("span",{className:"board-chip prio-"+s,children:s}),o&&ye.jsxs("span",{className:"board-chip board-assignee",children:["@",o]}),f&&ye.jsx("span",{className:"board-chip board-due",children:f.slice(0,10)}),h&&ye.jsx("span",{className:"board-chip board-estimate",children:h})]}),ye.jsx(Hv,{node:e,onNavigate:t})]})}function g7(){const[e,t]=ft.useState(""),[r,n]=ft.useState(null),[i,s]=ft.useState(":.yamlover:settings.yamlover"),[o,f]=ft.useState("loading"),[h,d]=ft.useState(null),[A,z]=ft.useState(!1),L=Va(Ys);ft.useEffect(()=>{let ge=!0;return ug().then(Q=>{ge&&(t(F=>A?F:Q.source),n(Q.settings),s(Q.path),f(F=>F==="loading"?"ready":F))}).catch(Q=>ge&&d(String(Q.message||Q))),()=>{ge=!1}},[L]);const ne=ft.useCallback(async()=>{f("saving"),d(null);try{const{settings:ge}=await p4(e);n(ge),z(!1),f("ready")}catch(ge){d(String(ge.message||ge)),f("ready")}},[e]);return ye.jsxs("div",{className:"settings-view",children:[ye.jsxs("header",{className:"settings-head",children:[ye.jsx("span",{className:"settings-title",children:"⚙ Project configuration"}),ye.jsx("span",{className:"settings-path",children:i})]}),o==="loading"?ye.jsx("div",{className:"settings-dim",children:"loading…"}):ye.jsxs(ye.Fragment,{children:[r&&ye.jsxs("dl",{className:"settings-summary",children:[ye.jsx("dt",{children:"URI"}),ye.jsx("dd",{children:r.uri??ye.jsx("span",{className:"settings-dim",children:"— (no declared identity)"})}),ye.jsx("dt",{children:"Exports"}),ye.jsx("dd",{children:r.exports.length?r.exports.map(ge=>ye.jsx("code",{className:"settings-chip",children:ge},ge)):ye.jsx("span",{className:"settings-dim",children:"— (nothing exported)"})}),ye.jsx("dt",{children:"Tags location"}),ye.jsx("dd",{children:ye.jsx("code",{children:r.tags})}),ye.jsx("dt",{children:"Annotations location"}),ye.jsx("dd",{children:ye.jsx("code",{children:r.annotations})}),ye.jsx("dt",{children:"Sidecars"}),ye.jsx("dd",{children:ye.jsx("code",{children:r.sidecars})})]}),ye.jsx("label",{className:"settings-raw-label",children:"Source — settings.yamlover"}),ye.jsx("textarea",{className:"settings-raw",spellCheck:!1,value:e,onChange:ge=>{t(ge.target.value),z(!0)}}),h&&ye.jsx("div",{className:"settings-error",children:h}),ye.jsxs("div",{className:"settings-actions",children:[ye.jsx("span",{className:"settings-dim",children:"Defaults, never constraints — a node works wherever it lives."}),ye.jsx("button",{type:"button",className:"settings-save",onClick:ne,disabled:o!=="ready"||!A,children:o==="saving"?"Saving…":"Save"})]})]})]})}function Vd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ks=Vd();function Xv(e){Ks=e}var Cs={exec:()=>null};function ra(e){let t=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),i=t[n];return i||(i=e(n),t[n]=i),i}}function tr(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Or.caret,"$1"),r=r.replace(i,o),n},getRegex:()=>new RegExp(r,t)};return n}var v7=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Or={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ra(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ra(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:ra(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:ra(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:ra(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:ra(e=>new RegExp(`^ {0,${e}}>`))},y7=/^(?:[ \t]*(?:\n|$))+/,b7=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,x7=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,oo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,w7=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wd=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qv=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Zv=tr(Qv).replace(/bull/g,Wd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),k7=tr(Qv).replace(/bull/g,Wd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Yd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S7=/^[^\n]+/,Gd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,E7=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),A7=tr(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wd).getRegex(),Ac="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Kd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C7=tr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Kd).replace("tag",Ac).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jv=tr(Yd).replace("hr",oo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ac).getRegex(),T7=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jv).getRegex(),Xd={blockquote:T7,code:b7,def:E7,fences:x7,heading:w7,hr:oo,html:C7,lheading:Zv,list:A7,newline:y7,paragraph:Jv,table:Cs,text:S7},y_=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",oo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ac).getRegex(),R7={...Xd,lheading:k7,table:y_,paragraph:tr(Yd).replace("hr",oo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",y_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ac).getRegex()},z7={...Xd,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Kd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Cs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(Yd).replace("hr",oo).replace("heading",` *#{1,6} *[^
332
+ ]`).replace("lheading",Zv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},N7=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,I7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ov=/^( {2,}|\\)\n(?!\s*$)/,q7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Xa=/[\p{P}\p{S}]/u,Cc=/[\s\p{P}\p{S}]/u,Qd=/[^\s\p{P}\p{S}]/u,M7=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cc).getRegex(),ey=/(?!~)[\p{P}\p{S}]/u,D7=/(?!~)[\s\p{P}\p{S}]/u,L7=/(?:[^\s\p{P}\p{S}]|~)/u,F7=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",v7?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ty=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,j7=tr(ty,"u").replace(/punct/g,Xa).getRegex(),B7=tr(ty,"u").replace(/punct/g,ey).getRegex(),ry="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",P7=tr(ry,"gu").replace(/notPunctSpace/g,Qd).replace(/punctSpace/g,Cc).replace(/punct/g,Xa).getRegex(),U7=tr(ry,"gu").replace(/notPunctSpace/g,L7).replace(/punctSpace/g,D7).replace(/punct/g,ey).getRegex(),H7=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Qd).replace(/punctSpace/g,Cc).replace(/punct/g,Xa).getRegex(),V7=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Xa).getRegex(),W7="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Y7=tr(W7,"gu").replace(/notPunctSpace/g,Qd).replace(/punctSpace/g,Cc).replace(/punct/g,Xa).getRegex(),G7=tr(/\\(punct)/,"gu").replace(/punct/g,Xa).getRegex(),K7=tr(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),X7=tr(Kd).replace("(?:-->|$)","-->").getRegex(),Q7=tr("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",X7).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Iu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Z7=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Iu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ny=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",Iu).replace("ref",Gd).getRegex(),iy=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gd).getRegex(),J7=tr("reflink|nolink(?!\\()","g").replace("reflink",ny).replace("nolink",iy).getRegex(),b_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Zd={_backpedal:Cs,anyPunctuation:G7,autolink:K7,blockSkip:F7,br:Ov,code:I7,del:Cs,delLDelim:Cs,delRDelim:Cs,emStrongLDelim:j7,emStrongRDelimAst:P7,emStrongRDelimUnd:H7,escape:N7,link:Z7,nolink:iy,punctuation:M7,reflink:ny,reflinkSearch:J7,tag:Q7,text:q7,url:Cs},O7={...Zd,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",Iu).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Iu).getRegex()},r0={...Zd,emStrongRDelimAst:U7,emStrongLDelim:B7,delLDelim:V7,delRDelim:Y7,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",b_).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tr(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",b_).getRegex()},ex={...r0,br:tr(Ov).replace("{2,}","*").getRegex(),text:tr(r0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Fo={normal:Xd,gfm:R7,pedantic:z7},sl={normal:Zd,gfm:r0,breaks:ex,pedantic:O7},tx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x_=e=>tx[e];function si(e,t){if(t){if(Or.escapeTest.test(e))return e.replace(Or.escapeReplace,x_)}else if(Or.escapeTestNoEncode.test(e))return e.replace(Or.escapeReplaceNoEncode,x_);return e}function w_(e){try{e=encodeURI(e).replace(Or.percentDecode,"%")}catch{return null}return e}function k_(e,t){let r=e.replace(Or.findPipe,(s,o,f)=>{let h=!1,d=o;for(;--d>=0&&f[d]==="\\";)h=!h;return h?"|":" |"}),n=r.split(Or.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Or.slashPipe,"|");return n}function Hi(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function S_(e){let t=e.split(`
333
+ `),r=t.length-1;for(;r>=0&&Or.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
334
+ `)}function rx(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function nx(e,t=0){let r=t,n="";for(let i of e)if(i===" "){let s=4-r%4;n+=" ".repeat(s),r+=s}else n+=i,r++;return n}function E_(e,t,r,n,i){let s=t.href,o=t.title||null,f=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:f,tokens:n.inlineTokens(f)};return n.state.inLink=!1,h}function ix(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
335
+ `).map(s=>{let o=s.match(r.other.beginningSpace);if(o===null)return s;let[f]=o;return f.length>=i.length?s.slice(i.length):s}).join(`
336
+ `)}var qu=class{options;rules;lexer;constructor(e){this.options=e||Ks}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=this.options.pedantic?t[0]:S_(t[0]),n=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=ix(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Hi(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Hi(t[0],`
337
+ `),depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Hi(t[0],`
338
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Hi(t[0],`
339
+ `).split(`
340
+ `),n="",i="",s=[];for(;r.length>0;){let o=!1,f=[],h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))f.push(r[h]),o=!0;else if(!o)f.push(r[h]);else break;r=r.slice(h);let d=f.join(`
341
+ `),A=d.replace(this.rules.other.blockquoteSetextReplace,`
342
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
343
+ ${d}`:d,i=i?`${i}
344
+ ${A}`:A;let z=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(A,s,!0),this.lexer.state.top=z,r.length===0)break;let L=s.at(-1);if(L?.type==="code")break;if(L?.type==="blockquote"){let ne=L,ge=ne.raw+`
345
+ `+r.join(`
346
+ `),Q=this.blockquote(ge);s[s.length-1]=Q,n=n.substring(0,n.length-ne.raw.length)+Q.raw,i=i.substring(0,i.length-ne.text.length)+Q.text;break}else if(L?.type==="list"){let ne=L,ge=ne.raw+`
347
+ `+r.join(`
348
+ `),Q=this.list(ge);s[s.length-1]=Q,n=n.substring(0,n.length-L.raw.length)+Q.raw,i=i.substring(0,i.length-ne.raw.length)+Q.raw,r=ge.substring(s.at(-1).raw.length).split(`
349
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let s=this.rules.other.listItemRegex(r),o=!1;for(;e;){let h=!1,d="",A="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let z=nx(t[2].split(`
350
+ `,1)[0],t[1].length),L=e.split(`
351
+ `,1)[0],ne=!z.trim(),ge=0;if(this.options.pedantic?(ge=2,A=z.trimStart()):ne?ge=t[1].length+1:(ge=z.search(this.rules.other.nonSpaceChar),ge=ge>4?1:ge,A=z.slice(ge),ge+=t[1].length),ne&&this.rules.other.blankLine.test(L)&&(d+=L+`
352
+ `,e=e.substring(L.length+1),h=!0),!h){let Q=this.rules.other.nextBulletRegex(ge),F=this.rules.other.hrRegex(ge),Y=this.rules.other.fencesBeginRegex(ge),pe=this.rules.other.headingBeginRegex(ge),se=this.rules.other.htmlBeginRegex(ge),ve=this.rules.other.blockquoteBeginRegex(ge);for(;e;){let Z=e.split(`
353
+ `,1)[0],be;if(L=Z,this.options.pedantic?(L=L.replace(this.rules.other.listReplaceNesting," "),be=L):be=L.replace(this.rules.other.tabCharGlobal," "),Y.test(L)||pe.test(L)||se.test(L)||ve.test(L)||Q.test(L)||F.test(L))break;if(be.search(this.rules.other.nonSpaceChar)>=ge||!L.trim())A+=`
354
+ `+be.slice(ge);else{if(ne||z.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Y.test(z)||pe.test(z)||F.test(z))break;A+=`
355
+ `+L}ne=!L.trim(),d+=Z+`
356
+ `,e=e.substring(Z.length+1),z=be.slice(ge)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(o=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(A),loose:!1,text:A,tokens:[]}),i.raw+=d}let f=i.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let h of i.items){this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]);let d=h.tokens[0];if(h.task&&(d?.type==="text"||d?.type==="paragraph")){h.text=h.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let z=this.lexer.inlineQueue.length-1;z>=0;z--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[z].src)){this.lexer.inlineQueue[z].src=this.lexer.inlineQueue[z].src.replace(this.rules.other.listReplaceTask,"");break}let A=this.rules.other.listTaskCheckbox.exec(h.raw);if(A){let z={type:"checkbox",raw:A[0]+" ",checked:A[0]!=="[ ]"};h.checked=z.checked,i.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=z.raw+h.tokens[0].raw,h.tokens[0].text=z.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(z)):h.tokens.unshift({type:"paragraph",raw:z.raw,text:z.raw,tokens:[z]}):h.tokens.unshift(z)}}else h.task&&(h.task=!1);if(!i.loose){let A=h.tokens.filter(L=>L.type==="space"),z=A.length>0&&A.some(L=>this.rules.other.anyLine.test(L.raw));i.loose=z}}if(i.loose)for(let h of i.items){h.loose=!0;for(let d of h.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=S_(t[0]);return{type:"html",block:!0,raw:r,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:r}}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:Hi(t[0],`
357
+ `),href:n,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=k_(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
358
+ `):[],s={type:"table",raw:Hi(t[0],`
359
+ `),header:[],align:[],rows:[]};if(r.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<r.length;o++)s.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:s.align[o]});for(let o of i)s.rows.push(k_(o,s.header.length).map((f,h)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:s.align[h]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Hi(t[0],`
360
+ `),depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
361
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Hi(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=rx(t[2],"()");if(s===-2)return;if(s>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),E_(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return E_(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,o,f=i,h=0,d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(n=d.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){f+=o;continue}else if((n[5]||n[6])&&i%3&&!((i+o)%3)){h+=o;continue}if(f-=o,f>0)continue;o=Math.min(o,o+f+h);let A=[...n[0]][0].length,z=e.slice(0,i+n.index+A+o);if(Math.min(i,o)%2){let ne=z.slice(1,-1);return{type:"em",raw:z,text:ne,tokens:this.lexer.inlineTokens(ne)}}let L=z.slice(2,-2);return{type:"strong",raw:z,text:L,tokens:this.lexer.inlineTokens(L)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,o,f=i,h=this.rules.inline.delRDelim;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(n=h.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(o=[...s].length,o!==i))continue;if(n[3]||n[4]){f+=o;continue}if(f-=o,f>0)continue;o=Math.min(o,o+f);let d=[...n[0]][0].length,A=e.slice(0,i+n.index+d+o),z=A.slice(i,-i);return{type:"del",raw:A,text:z,tokens:this.lexer.inlineTokens(z)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},On=class n0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ks,this.options.tokenizer=this.options.tokenizer||new qu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Or,block:Fo.normal,inline:sl.normal};this.options.pedantic?(r.block=Fo.pedantic,r.inline=sl.pedantic):this.options.gfm&&(r.block=Fo.gfm,this.options.breaks?r.inline=sl.breaks:r.inline=sl.gfm),this.tokenizer.rules=r}static get rules(){return{block:Fo,inline:sl}}static lex(t,r){return new n0(r).lex(t)}static lexInline(t,r){return new n0(r).inlineTokens(t)}lex(t){t=t.replace(Or.carriageReturn,`
362
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Or.tabCharGlobal," ").replace(Or.spaceLine,""));let i=1/0;for(;t;){if(t.length<i)i=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if(this.options.extensions?.block?.some(f=>(s=f.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let f=r.at(-1);s.raw.length===1&&f!==void 0?f.raw+=`
363
+ `:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
364
+ `)?"":`
365
+ `)+s.raw,f.text+=`
366
+ `+s.text,this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
367
+ `)?"":`
368
+ `)+s.raw,f.text+=`
369
+ `+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let o=t;if(this.options.extensions?.startBlock){let f=1/0,h=t.slice(1),d;this.options.extensions.startBlock.forEach(A=>{d=A.call({lexer:this},h),typeof d=="number"&&d>=0&&(f=Math.min(f,d))}),f<1/0&&f>=0&&(o=t.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){let f=r.at(-1);n&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
370
+ `)?"":`
371
+ `)+s.raw,f.text+=`
372
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s),n=o.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
373
+ `)?"":`
374
+ `)+s.raw,f.text+=`
375
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)s=i[2]?i[2].length:0,n=n.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,f="",h=1/0;for(;t;){if(t.length<h)h=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}o||(f=""),o=!1;let d;if(this.options.extensions?.inline?.some(z=>(d=z.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let z=r.at(-1);d.type==="text"&&z?.type==="text"?(z.raw+=d.raw,z.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,f)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t,n,f)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let A=t;if(this.options.extensions?.startInline){let z=1/0,L=t.slice(1),ne;this.options.extensions.startInline.forEach(ge=>{ne=ge.call({lexer:this},L),typeof ne=="number"&&ne>=0&&(z=Math.min(z,ne))}),z<1/0&&z>=0&&(A=t.substring(0,z+1))}if(d=this.tokenizer.inlineText(A)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(f=d.raw.slice(-1)),o=!0;let z=r.at(-1);z?.type==="text"?(z.raw+=d.raw,z.text+=d.text):r.push(d);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return r}infiniteLoopError(t){let r="Infinite loop on byte: "+t;if(this.options.silent)console.error(r);else throw new Error(r)}},Mu=class{options;parser;constructor(e){this.options=e||Ks}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Or.notSpaceStart)?.[0],i=e.replace(Or.endingNewline,"")+`
376
+ `;return n?'<pre><code class="language-'+si(n)+'">'+(r?i:si(i,!0))+`</code></pre>
377
+ `:"<pre><code>"+(r?i:si(i,!0))+`</code></pre>
378
+ `}blockquote({tokens:e}){return`<blockquote>
379
+ ${this.parser.parse(e)}</blockquote>
380
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
381
+ `}hr(e){return`<hr>
382
+ `}list(e){let t=e.ordered,r=e.start,n="";for(let o=0;o<e.items.length;o++){let f=e.items[o];n+=this.listitem(f)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
383
+ `+n+"</"+i+`>
384
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
385
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
386
+ `}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let o=0;o<s.length;o++)r+=this.tablecell(s[o]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
387
+ <thead>
388
+ `+t+`</thead>
389
+ `+n+`</table>
390
+ `}tablerow({text:e}){return`<tr>
391
+ ${e}</tr>
392
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
393
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${si(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=w_(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+si(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=w_(e);if(i===null)return si(r);e=i;let s=`<img src="${e}" alt="${si(r)}"`;return t&&(s+=` title="${si(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:si(e.text)}},Jd=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ei=class i0{options;renderer;textRenderer;constructor(t){this.options=t||Ks,this.options.renderer=this.options.renderer||new Mu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jd}static parse(t,r){return new i0(r).parse(t)}static parseInline(t,r){return new i0(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let o=i,f=this.options.extensions.renderers[o.type].call({parser:this},o);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=f||"";continue}}let s=i;switch(s.type){case"space":{r+=this.renderer.space(s);break}case"hr":{r+=this.renderer.hr(s);break}case"heading":{r+=this.renderer.heading(s);break}case"code":{r+=this.renderer.code(s);break}case"table":{r+=this.renderer.table(s);break}case"blockquote":{r+=this.renderer.blockquote(s);break}case"list":{r+=this.renderer.list(s);break}case"checkbox":{r+=this.renderer.checkbox(s);break}case"html":{r+=this.renderer.html(s);break}case"def":{r+=this.renderer.def(s);break}case"paragraph":{r+=this.renderer.paragraph(s);break}case"text":{r+=this.renderer.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let f=this.options.extensions.renderers[s.type].call({parser:this},s);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=f||"";continue}}let o=s;switch(o.type){case"escape":{n+=r.text(o);break}case"html":{n+=r.html(o);break}case"link":{n+=r.link(o);break}case"image":{n+=r.image(o);break}case"checkbox":{n+=r.checkbox(o);break}case"strong":{n+=r.strong(o);break}case"em":{n+=r.em(o);break}case"codespan":{n+=r.codespan(o);break}case"br":{n+=r.br(o);break}case"del":{n+=r.del(o);break}case"text":{n+=r.text(o);break}default:{let f='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},dl=class{options;block;constructor(e){this.options=e||Ks}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?On.lex:On.lexInline}provideParser(e=this.block){return e?ei.parse:ei.parseInline}},sy=class{defaults=Vd();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ei;Renderer=Mu;TextRenderer=Jd;Lexer=On;Tokenizer=qu;Hooks=dl;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let i=n;for(let s of i.header)r=r.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let o of s)r=r.concat(this.walkTokens(o.tokens,t));break}case"list":{let i=n;r=r.concat(this.walkTokens(i.items,t));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let o=i[s].flat(1/0);r=r.concat(this.walkTokens(o,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...o){let f=i.renderer.apply(this,o);return f===!1&&(f=s.apply(this,o)),f}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new Mu(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,f=r.renderer[o],h=i[o];i[o]=(...d)=>{let A=f.apply(i,d);return A===!1&&(A=h.apply(i,d)),A||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new qu(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,f=r.tokenizer[o],h=i[o];i[o]=(...d)=>{let A=f.apply(i,d);return A===!1&&(A=h.apply(i,d)),A}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new dl;for(let s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,f=r.hooks[o],h=i[o];dl.passThroughHooks.has(s)?i[o]=d=>{if(this.defaults.async&&dl.passThroughHooksRespectAsync.has(s))return(async()=>{let z=await f.call(i,d);return h.call(i,z)})();let A=f.call(i,d);return h.call(i,A)}:i[o]=(...d)=>{if(this.defaults.async)return(async()=>{let z=await f.apply(i,d);return z===!1&&(z=await h.apply(i,d)),z})();let A=f.apply(i,d);return A===!1&&(A=h.apply(i,d)),A}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(o){let f=[];return f.push(s.call(this,o)),i&&(f=f.concat(i.call(this,o))),f}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return On.lex(e,t??this.defaults)}parser(e,t){return ei.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(t):t,f=await(i.hooks?await i.hooks.provideLexer(e):e?On.lex:On.lexInline)(o,i),h=i.hooks?await i.hooks.processAllTokens(f):f;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(e):e?ei.parse:ei.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let o=(i.hooks?i.hooks.provideLexer(e):e?On.lex:On.lexInline)(t,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let f=(i.hooks?i.hooks.provideParser(e):e?ei.parse:ei.parseInline)(o,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(o){return s(o)}}}onError(e,t){return r=>{if(r.message+=`
394
+ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+si(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Ps=new sy;function lr(e,t){return Ps.parse(e,t)}lr.options=lr.setOptions=function(e){return Ps.setOptions(e),lr.defaults=Ps.defaults,Xv(lr.defaults),lr};lr.getDefaults=Vd;lr.defaults=Ks;lr.use=function(...e){return Ps.use(...e),lr.defaults=Ps.defaults,Xv(lr.defaults),lr};lr.walkTokens=function(e,t){return Ps.walkTokens(e,t)};lr.parseInline=Ps.parseInline;lr.Parser=ei;lr.parser=ei.parse;lr.Renderer=Mu;lr.TextRenderer=Jd;lr.Lexer=On;lr.lexer=On.lex;lr.Tokenizer=qu;lr.Hooks=dl;lr.parse=lr;lr.options;lr.setOptions;lr.use;lr.walkTokens;lr.parseInline;ei.parse;On.lex;const sx=new sy({extensions:[{name:"blockMath",level:"block",start(e){return e.indexOf("$$")},tokenizer(e){const t=/^\$\$([\s\S]+?)\$\$/.exec(e);if(t)return{type:"blockMath",raw:t[0],text:t[1].trim()}},renderer(e){return $i(e.text,!0)}},{name:"inlineMath",level:"inline",start(e){return e.indexOf("$")},tokenizer(e){const t=/^\$(?!\s)((?:\\.|[^$\\])+?)(?<!\s)\$(?!\d)/.exec(e);if(t)return{type:"inlineMath",raw:t[0],text:t[1]}},renderer(e){return $i(e.text,!1)}}]});function ax(e,t){const r=Mv(e,t);return r?vs(Un(r)):null}function lx(e,t){if(!t||!e.includes("<img"))return e;const r=document.createElement("template");r.innerHTML=e;for(const n of r.content.querySelectorAll("img[src]")){const i=ax(n.getAttribute("src")||"",t);i&&n.setAttribute("src",i)}return r.innerHTML}function ay(e,t){const r=wg(sx.parse(String(e??""),{async:!1}));return Dv(lx(r,t),t)}function ox({node:e,onNavigate:t}){return cc(e),ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx(Pv,{html:ay(ys(e.value),e.path),onNavigate:t})]})}function ux({chunk:e,onNavigate:t}){return ye.jsx("div",{className:"markup",onClick:Ud(t),dangerouslySetInnerHTML:{__html:ay(e.value,e.documentPath)}})}/**
395
+ * @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
396
+ */(function(e){var t;if(typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof window<"u"&&(e=window),e.console==null&&(e.console={}),typeof e.console=="object"?t=e.console:t={},"log"in t||(t.log=function(){}),"warn"in t||(t.warn=t.log),typeof e.Opal<"u")return t.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),e.Opal;var r,n,i,s,o,f,h,d=e.Opal={};d.global=e,d.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var A=Function.prototype.call,z=Function.prototype.bind,L=Object.hasOwn||A.bind(Object.prototype.hasOwnProperty),ne=Object.setPrototypeOf,ge=A.bind(Array.prototype.slice),Q=A.bind(Array.prototype.splice),F=4,Y=F;function pe(){return Y+=2,Y}d.uid=pe,d.id=function(y){return y.$$is_number?y*2+1:(y.$$id==null&&Z(y,"$$id",pe()),y.$$id)};var se=d.gvars={};d.exit=function(y){se.DEBUG&&t.log("Exited with status "+y)},d.exceptions=[],d.pop_exception=function(){var y=d.exceptions.pop();y?(se["!"]=y,se["@"]=y.$backtrace()):se["!"]=se["@"]=r};function ve(y,I){if(y||(y=d.Exception||Error),h&&h.$raise)arguments.length>2?h.$raise(y.$new.apply(y,ge(arguments,1))):h.$raise(y,I);else throw y.$new?y.$new(I):new y(I)}function Z(y,I,xe){typeof y=="string"?y[I]=xe:Object.defineProperty(y,I,{value:xe,enumerable:!1,configurable:!0,writable:!0})}d.prop=Z,d.defineProperty=d.prop,d.slice=ge;var be=d.truthy=function(y){return y!==!1&&r!==y&&y!==void 0&&y!==null&&(!(y instanceof Boolean)||y.valueOf()===!0)};d.falsy=function(y){return!be(y)},d.type_error=function(y,I,xe,Me){y=y.$$class,Me&&xe?(Me=Me.$$class,ve(d.TypeError,"can't convert "+y+" into "+I+" ("+y+"#"+xe+" gives "+Me+")")):ve(d.TypeError,"no implicit conversion of "+y+" into "+I)},d.coerce_to=function(y,I,xe,Me){var Qe;return xe==="to_int"&&I===d.Integer&&y.$$is_number?y<0?Math.ceil(y):Math.floor(y):xe==="to_str"&&I===d.String&&y.$$is_string||d.is_a(y,I)?y:y["$respond_to?"].$$pristine&&y.$method_missing.$$pristine?(Qe=y[bt(xe)],(Qe==null||Qe.$$stub)&&d.type_error(y,I),Qe.apply(y,Me)):(y["$respond_to?"](xe)||d.type_error(y,I),Me==null&&(Me=[]),d.send(y,xe,Me))},d.respond_to=function(y,I,xe){if(y==null||!y.$$class)return!1;xe=!!xe;var Me=y[I];if(y["$respond_to?"].$$pristine){if(typeof Me=="function"&&!Me.$$stub)return!0;if(!y["$respond_to_missing?"].$$pristine)return d.send(y,y["$respond_to_missing?"],[I.substr(1),xe])}else return d.send(y,y["$respond_to?"],[I.substr(1),xe])},d.trace_class=!1,d.tracers_for_class=[];function ue(y){var I,xe,Me;for(I=0,xe=d.tracers_for_class.length;I<xe;I++)Me=d.tracers_for_class[I],Me.trace_object=y,Me.block.$call(Me)}function Ee(y,I){if(y.$$autoload[I].loaded){if(y.$$autoload[I].loaded&&!y.$$autoload[I].required&&y.$$autoload[I].exception)throw y.$$autoload[I].exception}else{y.$$autoload[I].loaded=!0;try{d.Kernel.$require(y.$$autoload[I].path)}catch(xe){throw y.$$autoload[I].exception=xe,xe}if(y.$$autoload[I].required=!0,y.$$const[I]!=null)return y.$$autoload[I].success=!0,y.$$const[I]}}function O(y,I){if(y){if(y.$$const[I]!=null)return y.$$const[I];if(y.$$autoload&&y.$$autoload[I])return Ee(y,I)}}function Ce(y,I){var xe,Me,Qe;if(y.length!==0)for(xe=0,Me=y.length;xe<Me;xe++){if(Qe=y[xe].$$const[I],Qe!=null)return Qe;if(y[xe].$$autoload&&y[xe].$$autoload[I])return Ee(y[xe],I)}}function $e(y,I){var xe,Me,Qe;if(y!=null)for(Qe=nt(y),xe=0,Me=Qe.length;xe<Me;xe++){if(Qe[xe].$$const&&L(Qe[xe].$$const,I))return Qe[xe].$$const[I];if(Qe[xe].$$autoload&&Qe[xe].$$autoload[I])return Ee(Qe[xe],I)}}function w(y,I){if(y==null||y.$$is_module)return $e(i,I)}function Ae(y,I){return(y||i).$const_missing(I)}d.const_get_local=function(y,I,xe){var Me;if(y!=null)return y==="::"&&(y=i),!y.$$is_module&&!y.$$is_class&&ve(d.TypeError,y.toString()+" is not a class/module"),Me=O(y,I),Me!=null||xe?Me:Ae(y,I)},d.const_get_qualified=function(y,I,xe){var Me,Qe,$t,a=d.const_cache_version;if(I==null)return Me=O(i,y),Me??d.const_get_qualified(i,y,xe);if(y!=null)return y==="::"&&(y=i),!y.$$is_module&&!y.$$is_class&&ve(d.TypeError,y.toString()+" is not a class/module"),(Qe=y.$$const_cache)==null&&(Z(y,"$$const_cache",Object.create(null)),Qe=y.$$const_cache),$t=Qe[I],$t==null||$t[0]!==a?((Me=O(y,I))!=null||(Me=$e(y,I))!=null,Qe[I]=[a,Me]):Me=$t[1],Me!=null||xe?Me:Ae(y,I)},d.const_cache_version=1,d.const_get_relative=function(y,I,xe){var Me=y[0],Qe,$t=d.const_cache_version,a,ae;return(a=y.$$const_cache)==null&&(Z(y,"$$const_cache",Object.create(null)),a=y.$$const_cache),ae=a[I],ae==null||ae[0]!==$t?((Qe=O(Me,I))!=null||(Qe=Ce(y,I))!=null||(Qe=$e(Me,I))!=null||(Qe=w(Me,I))!=null,a[I]=[$t,Qe]):Qe=ae[1],Qe!=null||xe?Qe:Ae(Me,I)};function j(y,I,xe){var Me=!0;return(y==null||y==="::")&&(y=i),xe.$$is_a_module&&((xe.$$name==null||xe.$$name===r)&&(xe.$$name=I),xe.$$base_module==null&&(xe.$$base_module=y)),y.$$const=y.$$const||Object.create(null),(I in y.$$const||"$$autoload"in y&&I in y.$$autoload)&&(Me=!1),y.$$const[I]=xe,y.$$=y.$$const,d.const_cache_version++,y===i&&(d[I]=xe),Z(y,I,xe),Me&&y.$const_added&&!y.$const_added.$$pristine&&y.$const_added(I),xe}d.const_set=j,d.constants=function(y,I){I==null&&(I=!0);var xe,Me=[y],Qe,$t,a={},ae;for(I&&(Me=Me.concat(nt(y))),I&&y.$$is_module&&(Me=Me.concat([d.Object]).concat(nt(d.Object))),Qe=0,$t=Me.length;Qe<$t&&(xe=Me[Qe],!(y!==i&&xe==i));Qe++){for(ae in xe.$$const)a[ae]=!0;if(xe.$$autoload)for(ae in xe.$$autoload)a[ae]=!0}return Object.keys(a)},d.const_remove=function(y,I){if(d.const_cache_version++,y.$$const[I]!=null){var xe=y.$$const[I];return delete y.$$const[I],xe}if(y.$$autoload&&y.$$autoload[I])return delete y.$$autoload[I],r;ve(d.NameError,"constant "+y+"::"+y.$name()+" not defined")},d.const_get_relative_factory=function(y){return function(I,xe){return d.$$(y,I,xe)}},d.$$=d.const_get_relative,d.$$$=d.const_get_qualified,d.$r=d.const_get_relative_factory;function de(y,I,xe){var Me;if(I!=null&&I.$$bridge?Me=function(){var ae=ge(arguments),re=new(z.apply(I.$$constructor,[null].concat(ae)));return ne(re,Me.$$prototype),re}:Me=function(){},y&&y!==r&&Z(Me,"displayName","::"+y),Z(Me,"$$name",y),Z(Me,"$$constructor",Me),Z(Me,"$$prototype",Me.prototype),Z(Me,"$$const",{}),Z(Me,"$$is_class",!0),Z(Me,"$$is_a_module",!0),Z(Me,"$$super",I),Z(Me,"$$cvars",{}),Z(Me,"$$own_included_modules",[]),Z(Me,"$$own_prepended_modules",[]),Z(Me,"$$ancestors",[]),Z(Me,"$$ancestors_cache_version",null),Z(Me,"$$subclasses",[]),Z(Me.$$prototype,"$$class",Me),d.Class&&ne(Me,d.Class.prototype),I!=null){if(ne(Me.$$prototype,I.$$prototype),xe!==!0)if(typeof WeakRef<"u"){var Qe,$t,a=[];for(Qe=0;Qe<I.$$subclasses.length;Qe++)$t=I.$$subclasses[Qe],$t.deref()!==void 0&&a.push($t);a.push(new WeakRef(Me)),I.$$subclasses=a}else I.$$subclasses.push(Me);I.$$meta&&d.build_class_singleton_class(Me)}return Me}d.allocate_class=de;function V(y,I){var xe=O(y,I);if(xe)return xe.$$is_class||ve(d.TypeError,I+" is not a class"),xe}function Fe(y,I){y.$$super!==I&&ve(d.TypeError,"superclass mismatch for class "+y.$$name)}d.klass=function(y,I,xe){var Me;y==null||y=="::"?y=i:!y.$$is_class&&!y.$$is_module&&(y=y.$$class),I!=null&&(!I.hasOwnProperty||I.hasOwnProperty&&!I.hasOwnProperty("$$is_class"))&&(I.constructor&&I.constructor.name=="Function"?(Me=I,I=i):ve(d.TypeError,"superclass must be a Class ("+(I.constructor&&(I.constructor.name||I.constructor.$$name)||typeof I)+" given)"));var Qe=V(y,xe);return Qe!=null?I&&Fe(Qe,I):(I==null&&(I=i),Qe=de(xe,I),j(y,xe,Qe),I.$inherited&&I.$inherited(Qe),Me&&d.bridge(Me,Qe)),d.trace_class&&ue(Qe),Qe};function ce(y){var I=function(){},xe=I;return y&&Z(I,"displayName",y+".constructor"),Z(xe,"$$name",y),Z(xe,"$$prototype",I.prototype),Z(xe,"$$const",{}),Z(xe,"$$is_module",!0),Z(xe,"$$is_a_module",!0),Z(xe,"$$cvars",{}),Z(xe,"$$iclasses",[]),Z(xe,"$$own_included_modules",[]),Z(xe,"$$own_prepended_modules",[]),Z(xe,"$$ancestors",[xe]),Z(xe,"$$ancestors_cache_version",null),ne(xe,d.Module.prototype),xe}d.allocate_module=ce;function U(y,I){var xe=O(y,I);return xe==null&&y===i&&(xe=$e(i,I)),xe&&!xe.$$is_module&&xe!==i&&ve(d.TypeError,I+" is not a module"),xe}d.module=function(y,I){var xe;return y==null||y=="::"?y=i:!y.$$is_class&&!y.$$is_module&&(y=y.$$class),xe=U(y,I),xe==null&&(xe=ce(I),j(y,I,xe)),d.trace_class&&ue(xe),xe},d.get_singleton_class=function(y){return y.$$is_number&&ve(d.TypeError,"can't define singleton"),y.$$meta?y.$$meta:y.hasOwnProperty("$$is_class")?d.build_class_singleton_class(y):y.hasOwnProperty("$$is_module")?d.build_module_singleton_class(y):d.build_object_singleton_class(y)};function x(y,I){y.hasOwnProperty("$$meta")?y.$$meta=I:Z(y,"$$meta",I),y.$$frozen?y.$$meta.$freeze():ne(y,I.$$prototype)}d.build_class_singleton_class=function(y){if(y.$$meta)return y.$$meta;var I=y===n?o:d.get_singleton_class(y.$$super),xe=de(null,I,!0);return Z(xe,"$$is_singleton",!0),Z(xe,"$$singleton_of",y),x(y,xe),Z(y,"$$class",d.Class),xe},d.build_module_singleton_class=function(y){if(y.$$meta)return y.$$meta;var I=de(null,d.Module,!0);return Z(I,"$$is_singleton",!0),Z(I,"$$singleton_of",y),x(y,I),Z(y,"$$class",d.Module),I},d.build_object_singleton_class=function(y){var I=y.$$class,xe=de(r,I,!0);return Z(xe,"$$is_singleton",!0),Z(xe,"$$singleton_of",y),delete xe.$$prototype.$$class,x(y,xe),xe},d.is_method=function(y){return y[0]==="$"&&y[1]!=="$"},d.instance_methods=function(y){for(var I=[],xe=[],Me=nt(y),Qe=0,$t=Me.length;Qe<$t;Qe++){var a=Me[Qe],ae=a.$$prototype;ae.hasOwnProperty("$$dummy")&&(ae=ae.$$define_methods_on);for(var re=Object.getOwnPropertyNames(ae),W=0,me=re.length;W<me;W++){var v=re[W];if(d.is_method(v)){var G=v.slice(1),Ue=ae[v];Ue.$$stub&&I.indexOf(G)===-1&&I.push(G),!Ue.$$stub&&xe.indexOf(G)===-1&&I.indexOf(G)===-1&&xe.push(G)}}}return xe},d.own_instance_methods=function(y){var I=[],xe=y.$$prototype;xe.hasOwnProperty("$$dummy")&&(xe=xe.$$define_methods_on);for(var Me=Object.getOwnPropertyNames(xe),Qe=0,$t=Me.length;Qe<$t;Qe++){var a=Me[Qe];if(d.is_method(a)){var ae=xe[a];if(!ae.$$stub){var re=a.slice(1);I.push(re)}}}return I},d.methods=function(y){return d.instance_methods(y.$$meta||y.$$class)},d.own_methods=function(y){return y.$$meta?d.own_instance_methods(y.$$meta):[]},d.receiver_methods=function(y){var I=d.get_singleton_class(y),xe=d.own_instance_methods(I),Me=d.own_instance_methods(I.$$super);return xe.concat(Me)},d.class_variables=function(y){var I=nt(y),xe,Me=I.length,Qe={};for(xe=Me-1;xe>=0;xe--){var $t=I[xe];for(var a in $t.$$cvars)Qe[a]=$t.$$cvars[a]}return Qe},d.class_variable_set=function(y,I,xe){var Me=nt(y),Qe,$t=Me.length;for(Qe=$t-2;Qe>=0;Qe--){var a=Me[Qe];if(L(a.$$cvars,I))return a.$$cvars[I]=xe,xe}return y.$$cvars[I]=xe,xe},d.class_variable_get=function(y,I,xe){if(L(y.$$cvars,I))return y.$$cvars[I];var Me=nt(y),Qe,$t=Me.length;for(Qe=0;Qe<$t;Qe++){var a=Me[Qe];if(L(a.$$cvars,I))return a.$$cvars[I]}return xe||ve(d.NameError,"uninitialized class variable "+I+" in "+y.$name()),r};function $(y){return y.hasOwnProperty("$$iclass")&&y.hasOwnProperty("$$root")}function l(y){for(var I=[],xe,Me=Object.getPrototypeOf(y.$$prototype);Me&&!Me.hasOwnProperty("$$class");)xe=ee(Me),xe&&I.push(xe),Me=Object.getPrototypeOf(Me);return I}function c(y){var I=[],xe,Me=Object.getPrototypeOf(y.$$prototype);if(y.$$prototype.hasOwnProperty("$$dummy"))for(;Me&&Me!==y.$$prototype.$$define_methods_on;)xe=ee(Me),xe&&I.push(xe),Me=Object.getPrototypeOf(Me);return I}d.append_features=function(y,I){var xe=nt(y),Me=[];xe.indexOf(I)!==-1&&ve(d.ArgumentError,"cyclic include detected");for(var Qe=0,$t=xe.length;Qe<$t;Qe++){var a=xe[Qe],ae=_(a);Z(ae,"$$included",!0),Me.push(ae)}var re=nt(I),W=C(Me),me,v;if(re.indexOf(y)===-1)me=I.$$prototype,v=Object.getPrototypeOf(I.$$prototype);else{for(var G=I.$$prototype,Ue=Object.getPrototypeOf(G);Ue!=null&&!(Ue.$$module===y&&$(Ue));)G=Ue,Ue=Object.getPrototypeOf(Ue);if(Ue){for(var K=Object.getPrototypeOf(Ue);K.hasOwnProperty("$$iclass")&&!$(K);)K=Object.getPrototypeOf(K);me=G,v=K}else me=I.$$prototype,v=Object.getPrototypeOf(I.$$prototype)}ne(me,W.first),ne(W.last,v),I.$$own_included_modules=l(I),d.const_cache_version++},d.prepend_features=function(y,I){var xe=nt(y),Me=[];xe.indexOf(I)!==-1&&ve(d.ArgumentError,"cyclic prepend detected");for(var Qe=0,$t=xe.length;Qe<$t;Qe++){var a=xe[Qe],ae=_(a);Z(ae,"$$prepended",!0),Me.push(ae)}var re=C(Me),W=I.$$prototype,me=Object.getPrototypeOf(W),v,G,Ue;W.hasOwnProperty("$$dummy")?v=W.$$define_methods_on:(v=S(I),p(I),Z(W,"$$dummy",!0),Z(W,"$$define_methods_on",v),ne(W,v),ne(v,me));var K=nt(I);if(K.indexOf(y)===-1)for(G=W,Ue=Object.getPrototypeOf(W);Ue!=null&&!(Ue.hasOwnProperty("$$root")||Ue===v||!Ue.hasOwnProperty("$$iclass"));)Ue=Object.getPrototypeOf(Ue);else ve(d.RuntimeError,"Prepending a module multiple times is not supported");ne(G,re.first),ne(re.last,Ue),I.$$own_prepended_modules=c(I),d.const_cache_version++};function p(y){for(var I=y.$$prototype,xe=Object.getOwnPropertyNames(I),Me=0;Me<xe.length;Me++){var Qe=xe[Me];d.is_method(Qe)&&delete I[Qe]}}function _(y){var I=S(y);return y.$$is_module&&y.$$iclasses.push(I),I}function S(y){var I={},xe=y.$$prototype;xe.hasOwnProperty("$$dummy")&&(xe=xe.$$define_methods_on);var Me=Object.getOwnPropertyNames(xe),Qe=Me.length,$t;for($t=0;$t<Qe;$t++){var a=Me[$t];Z(I,a,xe[a])}return Z(I,"$$iclass",!0),Z(I,"$$module",y),I}function C(y){var I=y.length,xe=y[0];if(Z(xe,"$$root",!0),I===1)return{first:xe,last:xe};for(var Me=xe,Qe=1;Qe<I;Qe++){var $t=y[Qe];ne(Me,$t),Me=$t}return{first:y[0],last:y[I-1]}}d.bridge=function(y,I){y.hasOwnProperty("$$bridge")&&ve(d.ArgumentError,"already bridged"),Z(y,"$$bridge",I),ne(y.prototype,(I.$$super||d.Object).$$prototype),Z(I,"$$prototype",y.prototype),Z(I.$$prototype,"$$class",I),Z(I,"$$constructor",y),Z(I,"$$bridge",!0)};function ee(y){if(!y.hasOwnProperty("$$dummy")){if(y.hasOwnProperty("$$iclass"))return y.$$module;if(y.hasOwnProperty("$$class"))return y.$$class}}function Le(y){return y.$$own_prepended_modules.concat([y]).concat(y.$$own_included_modules)}function nt(y){if(!y)return[];if(y.$$ancestors_cache_version===d.const_cache_version)return y.$$ancestors;var I=[],xe,Me,Qe;for(xe=0,Me=Le(y),Qe=Me.length;xe<Qe;xe++)I.push(Me[xe]);if(y.$$super)for(xe=0,Me=nt(y.$$super),Qe=Me.length;xe<Qe;xe++)I.push(Me[xe]);return y.$$ancestors_cache_version=d.const_cache_version,y.$$ancestors=I,I}d.ancestors=nt,d.included_modules=function(y){for(var I=[],xe=null,Me=Object.getPrototypeOf(y.$$prototype);Me&&Object.getPrototypeOf(Me);Me=Object.getPrototypeOf(Me))xe=ee(Me),xe&&xe.$$is_module&&Me.$$iclass&&Me.$$included&&I.push(xe);return I},d.add_stubs=function(y){var I=d.BasicObject.$$prototype,xe,Me;y=y.split(",");for(var Qe=0,$t=y.length;Qe<$t;Qe++)xe=bt(y[Qe]),Me=I[xe],(Me==null||Me.$$stub)&&d.add_stub_for(I,xe)},d.add_stub_for=function(y,I){Z(y,I,d.stub_for(I))},d.stub_for=function(y){function I(){this.$method_missing.$$p=I.$$p,I.$$p=null;for(var xe=new Array(arguments.length),Me=0,Qe=xe.length;Me<Qe;Me++)xe[Me]=arguments[Me];return this.$method_missing.apply(this,[y.slice(1)].concat(xe))}return I.$$stub=!0,I},d.ac=function(y,I,xe,Me){var Qe="";xe.$$is_a_module?Qe+=xe.$$name+".":Qe+=xe.$$class.$$name+"#",Qe+=Me,ve(d.ArgumentError,"["+Qe+"] wrong number of arguments (given "+y+", expected "+I+")")},d.block_ac=function(y,I,xe){var Me="`block in "+xe+"'";ve(d.ArgumentError,Me+": wrong number of arguments (given "+y+", expected "+I+")")};function dt(y){return y.hasOwnProperty("$$meta")&&y.$$meta!==null?nt(y.$$meta):nt(y.$$class)}d.find_super=function(y,I,xe,Me,Qe){var $t=bt(I),a,ae;a=dt(y);for(var re=a.indexOf(xe.$$owner),W=re+1;W<a.length;W++){var me=a[W],v=me.$$prototype;if(v.hasOwnProperty("$$dummy")&&(v=v.$$define_methods_on),v.hasOwnProperty($t)){ae=v[$t];break}}return!Me&&ae&&ae.$$stub&&y.$method_missing.$$pristine&&ve(d.NoMethodError,"super: no superclass method `"+I+"' for "+y,I),ae.$$stub&&!Qe?null:ae},d.find_block_super=function(y,I,xe,Me,Qe){var $t=I;return xe||ve(d.RuntimeError,"super called outside of method"),Qe&&xe.$$define_meth&&ve(d.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),xe.$$def&&($t=xe.$$jsid),d.find_super(y,$t,xe,Me)},d.find_super_dispatcher=d.find_super,d.find_iter_super_dispatcher=d.find_block_super,d.yield1=function(y,I){typeof y!="function"&&ve(d.LocalJumpError,"no block given");var xe=y.$$has_top_level_mlhs_arg,Me=y.$$has_trailing_comma_in_args;return(y.length>1||(xe||Me)&&y.length===1)&&(I=d.to_ary(I)),(y.length>1||Me&&y.length===1)&&I.$$is_array?y.apply(null,I):y(I)},d.yieldX=function(y,I){if(typeof y!="function"&&ve(d.LocalJumpError,"no block given"),y.length>1&&I.length===1&&I[0].$$is_array)return y.apply(null,I[0]);if(!I.$$is_array){for(var xe=new Array(I.length),Me=0,Qe=xe.length;Me<Qe;Me++)xe[Me]=I[Me];return y.apply(null,xe)}return y.apply(null,I)},d.rescue=function(y,I){for(var xe=0;xe<I.length;xe++){var Me=I[xe];if(Me.$$is_array){var Qe=d.rescue(y,Me);if(Qe)return Qe}else if(Me===d.JS.Error||Me["$==="](y))return Me}return null},d.is_a=function(y,I){if(I!=null&&y.$$meta===I||y.$$class===I)return!0;if(y.$$is_number&&I.$$is_number_class)return I.$$is_integer_class?y%1===0:!0;var xe=nt(y.$$is_class?d.get_singleton_class(y):y.$$meta||y.$$class);return xe.indexOf(I)!==-1},d.to_hash=function(y){if(y.$$is_hash)return y;if(y["$respond_to?"]("to_hash",!0)){var I=y.$to_hash();if(I.$$is_hash)return I;ve(d.TypeError,"Can't convert "+y.$$class+" to Hash ("+y.$$class+"#to_hash gives "+I.$$class+")")}else ve(d.TypeError,"no implicit conversion of "+y.$$class+" into Hash")},d.to_ary=function(y){if(y.$$is_array)return y;if(y["$respond_to?"]("to_ary",!0)){var I=y.$to_ary();if(I===r)return[y];if(I.$$is_array)return I;ve(d.TypeError,"Can't convert "+y.$$class+" to Array ("+y.$$class+"#to_ary gives "+I.$$class+")")}else return[y]},d.to_a=function(y){if(y.$$is_array)return y.slice();if(y["$respond_to?"]("to_a",!0)){var I=y.$to_a();if(I===r)return[y];if(I.$$is_array)return I;ve(d.TypeError,"Can't convert "+y.$$class+" to Array ("+y.$$class+"#to_a gives "+I.$$class+")")}else return[y]},d.extract_kwargs=function(y){var I=y[y.length-1];if(I!=null&&d.respond_to(I,"$to_hash",!0))return Q(y,y.length-1),I},d.kwrestargs=function(y,I){var xe=[],Me={},Qe,$t=y.$$smap;for(Qe in $t)I[Qe]||(xe.push(Qe),Me[Qe]=$t[Qe]);return d.hash2(xe,Me)};function lt(y,I){typeof I=="number"?y.$$arity=I:typeof I=="object"&&Object.assign(y,I)}var xt={};function bt(y){return xt[y]||(xt[y]="$"+y)}d.jsid=bt,d.send=function(y,I,xe,Me,Qe){var $t;return typeof I=="function"?($t=I,I=null):typeof I=="string"?$t=y[bt(I)]:ve(d.NameError,"Passed method should be a string or a function"),d.send2(y,$t,I,xe,Me,Qe)},d.send2=function(y,I,xe,Me,Qe,$t){return I==null&&xe!=null&&y.$method_missing&&(I=y.$method_missing,Me=[xe].concat(Me)),lt(Qe,$t),typeof Qe=="function"&&(I.$$p=Qe),I.apply(y,Me)},d.refined_send=function(y,I,xe,Me,Qe,$t){var a,ae,re,W,me,v,G,Ue,K,qe;for(W=dt(I),a=0;a<W.length;a++)for(me=d.id(W[a]),ae=0;ae<y.length;ae++)for(v=y[ae],re=v.length-1;re>=0;re--)if(G=v[re],!(typeof G.$$refine_modules>"u")&&(Ue=G.$$refine_modules,!(typeof Ue[me]>"u")&&(K=Ue[me],typeof K.$$prototype[bt(xe)]<"u")))return qe=K.$$prototype[bt(xe)],d.send2(I,qe,xe,Me,Qe,$t);return d.send(I,xe,Me,Qe,$t)},d.lambda=function(y,I){return y.$$is_lambda=!0,lt(y,I),y},d.def=function(y,I,xe,Me){return lt(xe,Me),y===d.top?d.defn(d.Object,I,xe):!y.$$eval&&y.$$is_a_module?d.defn(y,I,xe):d.defs(y,I,xe)},d.defn=function(y,I,xe){wt(y),xe.displayName=I,xe.$$owner=y;var Me=I.substr(1),Qe=y.$$prototype;if(Qe.hasOwnProperty("$$dummy")&&(Qe=Qe.$$define_methods_on),Z(Qe,I,xe),y.$$is_module){y.$$module_function&&d.defs(y,I,xe);for(var $t=0,a=y.$$iclasses,ae=a.length;$t<ae;$t++){var re=a[$t];Z(re,I,xe)}}var W=y.$$singleton_of;return y.$method_added&&!y.$method_added.$$stub&&!W?y.$method_added(Me):W&&W.$singleton_method_added&&!W.$singleton_method_added.$$stub&&W.$singleton_method_added(Me),Me},d.defs=function(y,I,xe,Me){return lt(xe,Me),(y.$$is_string||y.$$is_number)&&ve(d.TypeError,"can't define singleton"),d.defn(d.get_singleton_class(y),I,xe)},d.rdef=function(y,I){L(y.$$prototype,I)||ve(d.NameError,"method '"+I.substr(1)+"' not defined in "+y.$name()),delete y.$$prototype[I],y.$$is_singleton?y.$$prototype.$singleton_method_removed&&!y.$$prototype.$singleton_method_removed.$$stub&&y.$$prototype.$singleton_method_removed(I.substr(1)):y.$method_removed&&!y.$method_removed.$$stub&&y.$method_removed(I.substr(1))},d.udef=function(y,I){(!y.$$prototype[I]||y.$$prototype[I].$$stub)&&ve(d.NameError,"method '"+I.substr(1)+"' not defined in "+y.$name()),d.add_stub_for(y.$$prototype,I),y.$$is_singleton?y.$$prototype.$singleton_method_undefined&&!y.$$prototype.$singleton_method_undefined.$$stub&&y.$$prototype.$singleton_method_undefined(I.substr(1)):y.$method_undefined&&!y.$method_undefined.$$stub&&y.$method_undefined(I.substr(1))};function yt(y){return typeof y=="function"&&!y.$$stub}d.alias=function(y,I,xe){var Me=bt(I),Qe=bt(xe),$t,a;if(typeof y.$$prototype>"u"&&(y=d.Object),$t=y.$$prototype[Qe],y.$$eval)return d.alias(d.get_singleton_class(y),I,xe);if(!yt($t)){for(var ae=y.$$super;typeof $t!="function"&&ae;)$t=ae[Qe],ae=ae.$$super;!yt($t)&&y.$$is_module&&($t=d.Object.$$prototype[Qe]),yt($t)||ve(d.NameError,"undefined method `"+xe+"' for class `"+y.$name()+"'")}$t.$$alias_of&&($t=$t.$$alias_of),a=function(){var re=a.$$p,W,me,v;for(W=new Array(arguments.length),me=0,v=arguments.length;me<v;me++)W[me]=arguments[me];return a.$$p=null,d.send(this,$t,W,re)};try{Object.defineProperty(a,"length",{value:$t.length})}catch{}return a.displayName=I,a.$$arity=$t.$$arity==null?$t.length:$t.$$arity,a.$$parameters=$t.$$parameters,a.$$source_location=$t.$$source_location,a.$$alias_of=$t,a.$$alias_name=I,d.defn(y,Me,a),y},d.alias_gvar=function(y,I){return Object.defineProperty(se,y,{configurable:!0,enumerable:!0,get:function(){return se[I]},set:function(xe){se[I]=xe}}),r},d.alias_native=function(y,I,xe){var Me=bt(I),Qe=y.$$prototype[xe];return(typeof Qe!="function"||Qe.$$stub)&&ve(d.NameError,"undefined native method `"+xe+"' for class `"+y.$name()+"'"),d.defn(y,Me,Qe),y},d.hash_init=function(y){y.$$smap=Object.create(null),y.$$map=Object.create(null),y.$$keys=[]},d.hash_clone=function(y,I){I.$$none=y.$$none,I.$$proc=y.$$proc;for(var xe=0,Me=y.$$keys,Qe=y.$$smap,$t=Me.length,a,ae;xe<$t;xe++)a=Me[xe],a.$$is_string?ae=Qe[a]:(ae=a.value,a=a.key),d.hash_put(I,a,ae)},d.hash_put=function(y,I,xe){if(I.$$is_string){L(y.$$smap,I)||y.$$keys.push(I),y.$$smap[I]=xe;return}var Me,Qe,$t;if(Me=y.$$by_identity?d.id(I):I.$hash(),!L(y.$$map,Me)){Qe={key:I,key_hash:Me,value:xe},y.$$keys.push(Qe),y.$$map[Me]=Qe;return}for(Qe=y.$$map[Me];Qe;){if(I===Qe.key||I["$eql?"](Qe.key)){$t=void 0,Qe.value=xe;break}$t=Qe,Qe=Qe.next}$t&&(Qe={key:I,key_hash:Me,value:xe},y.$$keys.push(Qe),$t.next=Qe)},d.hash_get=function(y,I){if(I.$$is_string)return L(y.$$smap,I)?y.$$smap[I]:void 0;var xe,Me;if(xe=y.$$by_identity?d.id(I):I.$hash(),L(y.$$map,xe))for(Me=y.$$map[xe];Me;){if(I===Me.key||I["$eql?"](Me.key))return Me.value;Me=Me.next}},d.hash_delete=function(y,I){var xe,Me=y.$$keys,Qe=Me.length,$t,a;if(I.$$is_string){if(typeof I!="string"&&(I=I.valueOf()),!L(y.$$smap,I))return;for(xe=0;xe<Qe;xe++)if(a=Me[xe],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===I){Me.splice(xe,1);break}return $t=y.$$smap[I],delete y.$$smap[I],$t}var ae=I.$hash();if(L(y.$$map,ae))for(var re=y.$$map[ae],W;re;){if(I===re.key||I["$eql?"](re.key)){for($t=re.value,xe=0;xe<Qe;xe++)if(Me[xe]===re){Me.splice(xe,1);break}return W&&re.next?W.next=re.next:W?delete W.next:re.next?y.$$map[ae]=re.next:delete y.$$map[ae],$t}W=re,re=re.next}},d.hash_rehash=function(y){for(var I=0,xe=y.$$keys.length,Me,Qe,$t;I<xe;I++)if(!y.$$keys[I].$$is_string&&(Me=y.$$keys[I].key.$hash(),Me!==y.$$keys[I].key_hash)){for(Qe=y.$$map[y.$$keys[I].key_hash],$t=void 0;Qe;){if(Qe===y.$$keys[I]){$t&&Qe.next?$t.next=Qe.next:$t?delete $t.next:Qe.next?y.$$map[y.$$keys[I].key_hash]=Qe.next:delete y.$$map[y.$$keys[I].key_hash];break}$t=Qe,Qe=Qe.next}if(y.$$keys[I].key_hash=Me,!L(y.$$map,Me)){y.$$map[Me]=y.$$keys[I];continue}for(Qe=y.$$map[Me],$t=void 0;Qe;){if(Qe===y.$$keys[I]){$t=void 0;break}$t=Qe,Qe=Qe.next}$t&&($t.next=y.$$keys[I])}},d.hash=function(){var y=arguments.length,I,xe,Me,Qe,$t,a;if(y===1&&arguments[0].$$is_hash)return arguments[0];if(xe=new d.Hash,d.hash_init(xe),y===1)if(I=arguments[0],arguments[0].$$is_array){for(Qe=I.length,Me=0;Me<Qe;Me++)I[Me].length!==2&&ve(d.ArgumentError,"value not of length 2: "+I[Me].$inspect()),$t=I[Me][0],a=I[Me][1],d.hash_put(xe,$t,a);return xe}else{I=arguments[0];for($t in I)L(I,$t)&&(a=I[$t],d.hash_put(xe,$t,a));return xe}for(y%2!==0&&ve(d.ArgumentError,"odd number of arguments for Hash"),Me=0;Me<y;Me+=2)$t=arguments[Me],a=arguments[Me+1],d.hash_put(xe,$t,a);return xe},d.hash2=function(y,I){var xe=new d.Hash;return xe.$$smap=I,xe.$$map=Object.create(null),xe.$$keys=y,xe},d.range=function(y,I,xe){var Me=new d.Range;return Me.begin=y,Me.end=I,Me.excl=xe,Me};var gt=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];d.ivar=function(y){return gt.indexOf(y)!==-1&&(y+="$"),y};function wt(y){y.$$frozen&&ve(d.FrozenError,"can't modify frozen "+y.$class()+": "+y,d.hash2(["receiver"],{receiver:y}))}d.deny_frozen_access=wt,d.freeze=function(y){return Z(y,"$$frozen",!0),y.hasOwnProperty("$$id")||Z(y,"$$id",pe()),y.hasOwnProperty("$$meta")?y.$$meta.$freeze():Z(y,"$$meta",null),y.hasOwnProperty("$$comparable")||Z(y,"$$comparable",null),Object.seal(y),y},d.freeze_props=function(y){var I,xe,Me;for(I in y)xe=typeof I,!((xe==="string"||xe==="object")&&I[0]==="$")&&(Me=Object.getOwnPropertyDescriptor(y,I),Me&&Me.enumerable&&Me.writable&&function(){var Qe=y[I];Object.defineProperty(y,I,{get:function(){return Qe},set:function($t){wt(y)},enumerable:!0})}())},d.escape_regexp=function(y){return y.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},d.global_regexp=function(y){return y.global?y:(y.$$g==null?y.$$g=new RegExp(y.source,(y.multiline?"gm":"g")+(y.ignoreCase?"i":"")):y.$$g.lastIndex=null,y.$$g)},d.global_multiline_regexp=function(y){var I,xe;return y.global&&y.multiline?y:(xe="gm"+(y.ignoreCase?"i":""),y.multiline?(y.$$g==null&&(y.$$g=new RegExp(y.source,xe)),I=y.$$g):(y.$$gm==null&&(y.$$gm=new RegExp(y.source,xe)),I=y.$$gm),I.lastIndex=null,I)},d.regexp=function(y,I){for(var xe,Me=typeof I<"u"&&I&&I.indexOf("i")>=0,Qe=0,$t=y.length;Qe<$t;Qe++)xe=y[Qe],xe instanceof RegExp&&(xe.ignoreCase!==Me&&d.Kernel.$warn("ignore case doesn't match for "+xe.source.$inspect(),d.hash({uplevel:1})),xe=xe.source),xe===""&&(xe="(?:"+xe+")"),y[Qe]=xe;return I?new RegExp(y.join(""),I):new RegExp(y.join(""))},d.modules={},d.loaded_features=["corelib/runtime"],d.current_dir=".",d.require_table={"corelib/runtime":!0},d.normalize=function(y){var I,xe,Me=[],Qe="/";d.current_dir!=="."&&(y=d.current_dir.replace(/\/*$/,"/")+y),y=y.replace(/^\.\//,""),y=y.replace(/\.(rb|opal|js)$/,""),I=y.split(Qe);for(var $t=0,a=I.length;$t<a;$t++)xe=I[$t],xe!==""&&(xe===".."?Me.pop():Me.push(xe));return Me.join(Qe)},d.loaded=function(y){var I,xe,Me;for(I=0,xe=y.length;I<xe;I++)Me=d.normalize(y[I]),!d.require_table[Me]&&(d.loaded_features.push(Me),d.require_table[Me]=!0)},d.load_normalized=function(y){d.loaded([y]);var I=d.modules[y];if(I){var xe=I(d);if(typeof Promise<"u"&&xe instanceof Promise)return xe.then(je(!0))}else{var Me=d.config.missing_require_severity,Qe="cannot load such file -- "+y;Me==="error"?ve(d.LoadError,Qe):Me==="warning"&&t.warn("WARNING: LoadError: "+Qe)}return!0},d.load=function(y){return y=d.normalize(y),d.load_normalized(y)},d.require=function(y){return y=d.normalize(y),d.require_table[y]?!1:d.load_normalized(y)},d.encodings=Object.create(null),d.set_encoding=function(y,I,xe){typeof xe>"u"&&(xe="encoding"),(typeof y=="string"||y.$$frozen===!0)&&ve(d.FrozenError,"can't modify frozen String");var Me=d.find_encoding(I);return Me===y[xe]||(y[xe]=Me),y},d.find_encoding=function(y){var I=d.encodings,xe=I[y]||I[y.toUpperCase()];return xe||ve(d.ArgumentError,"unknown encoding name - "+y),xe},d.enc=function(y,I){var xe=new String(y);return xe=d.set_encoding(xe,I),xe.internal_encoding=xe.encoding,xe},d.binary=function(y){var I=new String(y);return d.set_encoding(I,"binary","internal_encoding")},d.last_promise=null,d.promise_unhandled_exception=!1,d.queue=function(y){if(d.last_promise)return d.last_promise=d.last_promise.then(function(){if(!d.promise_unhandled_exception)return y(d)}).catch(function(xe){d.respond_to(xe,"$full_message")&&(xe=xe.$full_message()),t.error(xe),d.promise_unhandled_exception=!0,d.exit(1)}),d.last_promise;var I=y(d);return typeof Promise=="function"&&typeof I=="object"&&I instanceof Promise&&(d.last_promise=I),I};function At(y,I){return typeof y=="number"&&typeof I=="number"}d.rb_plus=function(y,I){return At(y,I)?y+I:y["$+"](I)},d.rb_minus=function(y,I){return At(y,I)?y-I:y["$-"](I)},d.rb_times=function(y,I){return At(y,I)?y*I:y["$*"](I)},d.rb_divide=function(y,I){return At(y,I)?y/I:y["$/"](I)},d.rb_lt=function(y,I){return At(y,I)?y<I:y["$<"](I)},d.rb_gt=function(y,I){return At(y,I)?y>I:y["$>"](I)},d.rb_le=function(y,I){return At(y,I)?y<=I:y["$<="](I)},d.rb_ge=function(y,I){return At(y,I)?y>=I:y["$>="](I)};function et(y,I){return typeof y=="number"&&typeof I=="number"||typeof y=="string"&&typeof I=="string"}function ze(y,I){return et(y,I)?y===I:be(y["$=="](I))}d.eqeq=ze,d.eqeqeq=function(y,I){return et(y,I)?y===I:be(y["$==="](I))},d.neqeq=function(y,I){return et(y,I)?y!==I:be(y["$!="](I))},d.not=function(y){return y==null||y===!1||r===y?!0:y===!0||y["$!"].$$pristine?!1:be(y["$!"]())};function je(y){return function(){return y}}d.return_val=je,d.return_self=function(){return this},d.return_ivar=function(y){return function(){return this[y]==null?r:this[y]}},d.assign_ivar=function(y){return function(I){return wt(this),this[y]=I}},d.assign_ivar_val=function(y,I){return function(){return wt(this),this[y]=I}},d.ensure_kwargs=function(y){if(y==null)return d.hash2([],{});if(y.$$is_hash)return y;ve(d.ArgumentError,"expected kwargs")},d.get_kwarg=function(y,I){return L(y.$$smap,I)||ve(d.ArgumentError,"missing keyword: "+I),y.$$smap[I]},d.large_array_unpack=function(y){var I=y.split(","),xe=I.length,Me;for(Me=0;Me<xe;Me++)switch(I[Me][0]){case void 0:I[Me]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":I[Me]=+I[Me]}return I},d.BasicObject=n=de("BasicObject",null),d.Object=i=de("Object",d.BasicObject),d.Module=s=de("Module",d.Object),d.Class=o=de("Class",d.Module),d.Opal=f=ce("Opal"),d.Kernel=h=ce("Kernel"),ne(d.BasicObject,d.Class.$$prototype),ne(d.Object,d.Class.$$prototype),ne(d.Module,d.Class.$$prototype),ne(d.Class,d.Class.$$prototype),n.$$const.BasicObject=n,j(i,"BasicObject",n),j(i,"Object",i),j(i,"Module",s),j(i,"Class",o),j(i,"Opal",f),j(i,"Kernel",h),n.$$class=o,i.$$class=o,s.$$class=o,o.$$class=o,f.$$class=s,h.$$class=s,Z(i.$$prototype,"toString",function(){var y=this.$to_s();return y.$$is_string&&typeof y=="object"?y.valueOf():y}),Z(i.$$prototype,"$require",d.require),d.top=new i,d.top.$to_s=d.top.$inspect=je("main"),d.top.$define_method=Ge;function Ge(){var y=ge(arguments),I=Ge.$$p;return Ge.$$p=null,d.send(i,"define_method",y,I)}d.NilClass=de("NilClass",d.Object),j(i,"NilClass",d.NilClass),r=d.nil=new d.NilClass,r.$$id=F,r.call=r.apply=function(){ve(d.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),d.thrower=function(y){var I=new Error("unexpected "+y);return I.$thrower_type=y,I.$throw=function(xe){throw xe==null&&(xe=r),I.$v=xe,I},I},d.t_eval_return=d.thrower("return"),TypeError.$$super=Error,d.file_sources={}}).call(void 0);Opal.loaded(["corelib/runtime.js"]);Opal.modules["corelib/helpers"]=function(e){var t=e.type_error,r=e.coerce_to,n=e.module,i=e.defs,s=e.slice,o=e.eqeqeq,f=e.Kernel,h=e.truthy,d=e.Opal,A=e.nil,z=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(L){var ne=n(L,"Opal");i(ne,"$bridge",function(F,Y){return e.bridge(F,Y)}),i(ne,"$coerce_to!",function(F,Y,pe,se){var ve,Z,be=A;return ve=s(arguments,3),Z=ve,be=r(F,Y,pe,Z),o(Y,be)||f.$raise(t(F,Y,pe,be)),be},-4),i(ne,"$coerce_to?",function(F,Y,pe,se){var ve,Z,be=A;return ve=s(arguments,3),Z=ve,!h(F["$respond_to?"](pe))||(be=r(F,Y,pe,Z),h(be["$nil?"]()))?A:(o(Y,be)||f.$raise(t(F,Y,pe,be)),be)},-4),i(ne,"$try_convert",function(F,Y,pe){return o(Y,F)?F:h(F["$respond_to?"](pe))?F.$__send__(pe):A}),i(ne,"$compare",function(F,Y){var pe=A;return pe=F["$<=>"](Y),h(pe===A)&&f.$raise(z("ArgumentError"),"comparison of "+F.$class()+" with "+Y.$class()+" failed"),pe}),i(ne,"$destructure",function(F){if(F.length==1)return F[0];if(F.$$is_array)return F;for(var Y=new Array(F.length),pe=0,se=Y.length;pe<se;pe++)Y[pe]=F[pe];return Y}),i(ne,"$respond_to?",function(F,Y,pe){return pe==null&&(pe=!1),F==null||!F.$$class?!1:F["$respond_to?"](Y,pe)},-3),i(ne,"$instance_variable_name!",function(F){return F=d["$coerce_to!"](F,z("String"),"to_str"),h(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(F))||f.$raise(z("NameError").$new("'"+F+"' is not allowed as an instance variable name",F)),F}),i(ne,"$class_variable_name!",function(F){return F=d["$coerce_to!"](F,z("String"),"to_str"),h(F.length<3||F.slice(0,2)!=="@@")&&f.$raise(z("NameError").$new("`"+F+"' is not allowed as a class variable name",F)),F}),i(ne,"$const_name?",function(F){return typeof F!="string"&&(F=d["$coerce_to!"](F,z("String"),"to_str")),F[0]===F[0].toUpperCase()}),i(ne,"$const_name!",function(F){var Y=this;return h(z("::","String","skip_raise")?"constant":A)&&(F=d["$coerce_to!"](F,z("String"),"to_str")),(!F||F[0]!=F[0].toUpperCase())&&Y.$raise(z("NameError"),"wrong constant name "+F),F}),i(ne,"$pristine",function(F,Y){var pe,se;pe=s(arguments,1),se=pe;for(var ve,Z,be=se.length-1;be>=0;be--)ve=se[be],Z=F.$$prototype[e.jsid(ve)],Z&&!Z.$$stub&&(Z.$$pristine=!0);return A},-2);var ge=[];return i(ne,"$inspect",function(F){var Y=A,pe=!1;return function(){try{try{return F===null?"null":F===void 0?"undefined":typeof F.$$class>"u"?Object.prototype.toString.apply(F):typeof F.$inspect!="function"||F.$inspect.$$stub||ge.indexOf(F.$__id__())!==-1?"#<"+F.$$class+":0x"+F.$__id__().$to_s(16)+">":(ge.push(F.$__id__()),pe=!0,F.$inspect())}catch(se){if(e.rescue(se,[z("Exception")])){Y=se;try{return"#<"+F.$$class+":0x"+F.$__id__().$to_s(16)+">"}finally{e.pop_exception()}}else throw se}}finally{pe&&ge.pop()}}()},-1)}("::")};Opal.modules["corelib/module"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.const_set,i=e.Object,s=e.return_ivar,o=e.assign_ivar,f=e.ivar,h=e.deny_frozen_access,d=e.freeze,A=e.prop,z=e.jsid,L=e.klass,ne=e.defs,ge=e.send,Q=e.def,F=e.eqeqeq,Y=e.Module,pe=e.Kernel,se=e.rb_lt,ve=e.rb_gt,Z=e.slice,be=e.to_a,ue=e.hash2,Ee=e.Opal,O=e.return_val,Ce=e.eqeq,$e=e.lambda,w=e.range,Ae=e.send2,j=e.find_super,de=e.alias,V=[],Fe=e.nil,ce=e.$$$;return e.add_stubs("module_eval,to_proc,===,raise,equal?,<,>,nil?,attr_reader,attr_writer,warn,attr_accessor,const_name?,class_variable_name!,pristine,const_name!,=~,new,inject,split,const_get,==,start_with?,!~,bind,call,class,frozen?,name,append_features,included,cover?,size,merge,compile,proc,any?,prepend_features,prepended,to_s,__id__,constants,include?,copy_class_variables,copy_constants,class_exec,module_exec,inspect"),function(U,x,$){var l=L(U,x,"Module"),c=[l].concat($),p=e.$r(c);return ne(l,"$allocate",function(){var S=this,C=e.allocate_module(Fe,function(){});return S!==e.Module&&Object.setPrototypeOf(C,S.$$prototype),C}),Q(l,"$initialize",function _(){var S=_.$$p||Fe,C=this;return _.$$p=null,S!==Fe?ge(C,"module_eval",[],S.$to_proc()):Fe}),Q(l,"$===",function(S){var C=this;return t(S==null)?!1:e.is_a(S,C)}),Q(l,"$<",function(S){var C=this;F(Y,S)||pe.$raise(ce("TypeError"),"compared with non class/module");var ee=C,Le,nt,dt;if(ee===S)return!1;for(nt=0,Le=e.ancestors(C),dt=Le.length;nt<dt;nt++)if(Le[nt]===S)return!0;for(nt=0,Le=e.ancestors(S),dt=Le.length;nt<dt;nt++)if(Le[nt]===C)return!1;return Fe}),Q(l,"$<=",function(S){var C=this,ee=Fe;return t(ee=C["$equal?"](S))?ee:se(C,S)}),Q(l,"$>",function(S){var C=this;return F(Y,S)||pe.$raise(ce("TypeError"),"compared with non class/module"),se(S,C)}),Q(l,"$>=",function(S){var C=this,ee=Fe;return t(ee=C["$equal?"](S))?ee:ve(C,S)}),Q(l,"$<=>",function(S){var C=this,ee=Fe;return C===S?0:!F(Y,S)||(ee=se(C,S),t(ee["$nil?"]()))?Fe:t(ee)?-1:1}),Q(l,"$alias_method",function(S,C){var ee=this;return h(ee),S=r(S,ce("String"),"to_str"),C=r(C,ce("String"),"to_str"),e.alias(ee,S,C),ee}),Q(l,"$alias_native",function(S,C){var ee=this;return C==null&&(C=S),h(ee),e.alias_native(ee,S,C),ee},-2),Q(l,"$ancestors",function(){var S=this;return e.ancestors(S)}),Q(l,"$append_features",function(S){var C=this;return h(S),e.append_features(C,S),C}),Q(l,"$attr_accessor",function(S){var C,ee,Le=this;return C=Z(arguments),ee=C,ge(Le,"attr_reader",be(ee)),ge(Le,"attr_writer",be(ee))},-1),Q(l,"$attr",function(S){var C,ee,Le=this;return C=Z(arguments),ee=C,ee.length==2&&(ee[1]===!0||ee[1]===!1)?(Le.$warn("optional boolean argument is obsoleted",ue(["uplevel"],{uplevel:1})),ee[1]?Le.$attr_accessor(ee[0]):Le.$attr_reader(ee[0]),Fe):ge(Le,"attr_reader",be(ee))},-1),Q(l,"$attr_reader",function(S){var C,ee,Le=this;C=Z(arguments),ee=C,h(Le);for(var nt=Le.$$prototype,dt=ee.length-1;dt>=0;dt--){var lt=ee[dt],xt=z(lt),bt=f(lt),yt=s(bt);e.prop(nt,bt,Fe),yt.$$parameters=[],yt.$$arity=0,e.defn(Le,xt,yt)}return Fe},-1),Q(l,"$attr_writer",function(S){var C,ee,Le=this;C=Z(arguments),ee=C,h(Le);for(var nt=Le.$$prototype,dt=ee.length-1;dt>=0;dt--){var lt=ee[dt],xt=z(lt+"="),bt=f(lt),yt=o(bt);yt.$$parameters=[["req"]],yt.$$arity=1,e.prop(nt,bt,Fe),e.defn(Le,xt,yt)}return Fe},-1),Q(l,"$autoload",function(S,C){var ee=this;return h(ee),p("Opal")["$const_name?"](S)||pe.$raise(ce("NameError"),"autoload must be constant name: "+S),C==""&&pe.$raise(ce("ArgumentError"),"empty file name"),ee.$$const.hasOwnProperty(S)||(ee.$$autoload||(ee.$$autoload={}),e.const_cache_version++,ee.$$autoload[S]={path:C,loaded:!1,required:!1,success:!1,exception:!1},ee.$const_added&&!ee.$const_added.$$pristine&&ee.$const_added(S)),Fe}),Q(l,"$autoload?",function(S){var C=this;if(C.$$autoload&&C.$$autoload[S]&&!C.$$autoload[S].required&&!C.$$autoload[S].success)return C.$$autoload[S].path;for(var ee=C.$ancestors(),Le=0,nt=ee.length;Le<nt;Le++)if(ee[Le].$$autoload&&ee[Le].$$autoload[S]&&!ee[Le].$$autoload[S].required&&!ee[Le].$$autoload[S].success)return ee[Le].$$autoload[S].path;return Fe}),Q(l,"$class_variables",function(){var S=this;return Object.keys(e.class_variables(S))}),Q(l,"$class_variable_get",function(S){var C=this;return S=Ee["$class_variable_name!"](S),e.class_variable_get(C,S,!1)}),Q(l,"$class_variable_set",function(S,C){var ee=this;return h(ee),S=Ee["$class_variable_name!"](S),e.class_variable_set(ee,S,C)}),Q(l,"$class_variable_defined?",function(S){var C=this;return S=Ee["$class_variable_name!"](S),e.class_variables(C).hasOwnProperty(S)}),Q(l,"$const_added",O(Fe)),Ee.$pristine(l,"const_added"),Q(l,"$remove_class_variable",function(S){var C=this;if(h(C),S=Ee["$class_variable_name!"](S),e.hasOwnProperty.call(C.$$cvars,S)){var ee=C.$$cvars[S];return delete C.$$cvars[S],ee}else pe.$raise(ce("NameError"),"cannot remove "+S+" for "+C)}),Q(l,"$constants",function(S){var C=this;return S==null&&(S=!0),e.constants(C,S)},-1),ne(l,"$constants",function(S){var C=this;if(S==null){var ee=(C.$$nesting||[]).concat(i),Le,nt={},dt,lt;for(dt=0,lt=ee.length;dt<lt;dt++)for(Le in ee[dt].$$const)nt[Le]=!0;return Object.keys(nt)}else return e.constants(C,S)},-1),ne(l,"$nesting",function(){var S=this;return S.$$nesting||[]}),Q(l,"$const_defined?",function(S,C){var ee=this;C==null&&(C=!0),S=p("Opal")["$const_name!"](S),t(S["$=~"](ce(Ee,"CONST_NAME_REGEXP")))||pe.$raise(ce("NameError").$new("wrong constant name "+S,S));var Le,nt=[ee],dt,lt;for(C&&(nt=nt.concat(e.ancestors(ee)),ee.$$is_module&&(nt=nt.concat([i]).concat(e.ancestors(i)))),dt=0,lt=nt.length;dt<lt;dt++)if(Le=nt[dt],Le.$$const[S]!=null||Le.$$autoload&&Le.$$autoload[S]&&!Le.$$autoload[S].required&&!Le.$$autoload[S].success)return!0;return!1},-2),Q(l,"$const_get",function(S,C){var ee=this;return C==null&&(C=!0),S=p("Opal")["$const_name!"](S),S.indexOf("::")===0&&S!=="::"&&(S=S.slice(2)),t(S.indexOf("::")!=-1&&S!="::")?ge(S.$split("::"),"inject",[ee],function(nt,dt){return nt==null&&(nt=Fe),dt==null&&(dt=Fe),nt.$const_get(dt)}):(t(S["$=~"](ce(Ee,"CONST_NAME_REGEXP")))||pe.$raise(ce("NameError").$new("wrong constant name "+S,S)),C?e.$$([ee],S):e.const_get_local(ee,S))},-2),Q(l,"$const_missing",function(S){var C=this,ee=Fe;return ee=Ce(C,i)?S:""+C+"::"+S,pe.$raise(ce("NameError").$new("uninitialized constant "+ee,S))}),Q(l,"$const_set",function(S,C){var ee=this;return h(ee),S=Ee["$const_name!"](S),(t(S["$!~"](ce(Ee,"CONST_NAME_REGEXP")))||t(S["$start_with?"]("::")))&&pe.$raise(ce("NameError").$new("wrong constant name "+S,S)),n(ee,S,C),C}),Q(l,"$public_constant",O(Fe)),Q(l,"$define_method",function _(S,C){var ee=_.$$p||Fe,Le=this,nt=Fe,dt=Fe;return _.$$p=null,h(Le),C===void 0&&ee===Fe&&pe.$raise(ce("ArgumentError"),"tried to create a Proc object without a block"),ee=t(nt=ee)?nt:F(ce("Proc"),dt=C)?C:F(ce("Method"),dt)?C.$to_proc().$$unbound:F(ce("UnboundMethod"),dt)?$e(function lt(xt){var bt,yt,gt=lt.$$s==null?this:lt.$$s,wt=Fe;return bt=Z(arguments),yt=bt,wt=C.$bind(gt),ge(wt,"call",be(yt))},{$$arity:-1,$$s:Le}):pe.$raise(ce("TypeError"),"wrong argument type "+ee.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(ee.$$proxy_target=ee,ee=new Proxy(ee,{apply:function(lt,xt,bt){var yt=lt.$$jsid;lt.$$jsid=S;try{return lt.apply(xt,bt)}catch(gt){if(gt===lt.$$brk||gt===lt.$$ret)return gt.$v;throw gt}finally{lt.$$jsid=yt}}})),ee.$$jsid=S,ee.$$s=null,ee.$$def=ee,ee.$$define_meth=!0,e.defn(Le,z(S),ee)},-2),Q(l,"$freeze",function(){var S=this;return t(S["$frozen?"]())?S:(S.hasOwnProperty("$$base_module")||A(S,"$$base_module",null),d(S))}),Q(l,"$remove_method",function(S){var C,ee,Le=this;C=Z(arguments),ee=C;for(var nt=0;nt<ee.length;nt++){var dt=ee[nt];typeof dt=="string"||dt.$$is_string||Le.$raise(ce("TypeError"),""+Le.$name()+" is not a symbol nor a string"),h(Le),e.rdef(Le,"$"+dt)}return Le},-1),Q(l,"$singleton_class?",function(){var S=this;return!!S.$$is_singleton}),Q(l,"$include",function(S){var C,ee,Le=this;C=Z(arguments),ee=C;for(var nt=ee.length-1;nt>=0;nt--){var dt=ee[nt];dt.$$is_module||pe.$raise(ce("TypeError"),"wrong argument type "+dt.$class()+" (expected Module)"),dt.$append_features(Le),dt.$included(Le)}return Le},-1),Q(l,"$included_modules",function(){var S=this;return e.included_modules(S)}),Q(l,"$include?",function(S){var C=this;S.$$is_module||pe.$raise(ce("TypeError"),"wrong argument type "+S.$class()+" (expected Module)");var ee,Le,nt,dt=e.ancestors(C);for(ee=0,Le=dt.length;ee<Le;ee++)if(nt=dt[ee],nt===S&&nt!==C)return!0;return!1}),Q(l,"$instance_method",function(S){var C=this,ee=C.$$prototype[z(S)];return(!ee||ee.$$stub)&&pe.$raise(ce("NameError").$new("undefined method `"+S+"' for class `"+C.$name()+"'",S)),ce("UnboundMethod").$new(C,ee.$$owner||C,ee,S)}),Q(l,"$instance_methods",function(S){var C=this;return S==null&&(S=!0),t(S)?e.instance_methods(C):e.own_instance_methods(C)},-1),Q(l,"$included",O(Fe)),Q(l,"$extended",O(Fe)),Q(l,"$extend_object",function(S){return h(S),Fe}),Q(l,"$method_added",function(S){return Z(arguments),Fe},-1),Q(l,"$method_removed",function(S){return Z(arguments),Fe},-1),Q(l,"$method_undefined",function(S){return Z(arguments),Fe},-1),Q(l,"$module_eval",function _(S){var C=_.$$p||Fe,ee,Le,nt,dt=this,lt=Fe,xt=Fe,bt=Fe,yt=Fe,gt=Fe,wt=Fe;_.$$p=null,ee=Z(arguments),Le=ee,t(C["$nil?"]())&&t(!!e.compile)?(t(w(1,3,!1)["$cover?"](Le.$size()))||pe.$raise(ce("ArgumentError"),"wrong number of arguments (0 for 1..3)"),nt=[].concat(be(Le)),lt=nt[0]==null?Fe:nt[0],xt=nt[1]==null?Fe:nt[1],nt[2]==null||nt[2],bt=ue(["file","eval"],{file:t(yt=xt)?yt:"(eval)",eval:!0}),gt=e.hash({arity_check:!1}).$merge(bt),wt=Ee.$compile(lt,gt),C=ge(pe,"proc",[],function ze(){var je=ze.$$s==null?this:ze.$$s;return new Function("Opal,self","return "+wt)(e,je)},{$$s:dt})):t(Le["$any?"]())&&pe.$raise(ce("ArgumentError"),"wrong number of arguments ("+Le.$size()+` for 0)
397
+
398
+ NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
399
+ `);var At=C.$$s,et;return C.$$s=null,et=C.apply(dt,[dt]),C.$$s=At,et},-1),Q(l,"$module_exec",function _(S){var C=_.$$p||Fe,ee,Le,nt=this;_.$$p=null,ee=Z(arguments),Le=ee,C===Fe&&pe.$raise(ce("LocalJumpError"),"no block given");var dt=C.$$s,lt;return C.$$s=null,lt=C.apply(nt,Le),C.$$s=dt,lt},-1),Q(l,"$method_defined?",function(S){var C=this,ee=C.$$prototype[z(S)];return!!ee&&!ee.$$stub}),Q(l,"$module_function",function(S){var C,ee,Le=this;if(C=Z(arguments),ee=C,h(Le),ee.length===0)return Le.$$module_function=!0,Fe;for(var nt=0,dt=ee.length;nt<dt;nt++){var lt=ee[nt],xt=z(lt),bt=Le.$$prototype[xt];e.defs(Le,xt,bt)}return ee.length===1?ee[0]:ee},-1),Q(l,"$name",function(){var S=this;if(S.$$full_name)return S.$$full_name;for(var C=[],ee=S;ee;){if(ee.$$name===Fe||ee.$$name==null)return Fe;if(C.unshift(ee.$$name),ee=ee.$$base_module,ee===i)break}return C.length===0?Fe:S.$$full_name=C.join("::")}),Q(l,"$prepend",function(S){var C,ee,Le=this;C=Z(arguments),ee=C,ee.length===0&&pe.$raise(ce("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var nt=ee.length-1;nt>=0;nt--){var dt=ee[nt];dt.$$is_module||pe.$raise(ce("TypeError"),"wrong argument type "+dt.$class()+" (expected Module)"),dt.$prepend_features(Le),dt.$prepended(Le)}return Le},-1),Q(l,"$prepend_features",function(S){var C=this;return h(S),C.$$is_module||pe.$raise(ce("TypeError"),"wrong argument type "+C.$class()+" (expected Module)"),e.prepend_features(C,S),C}),Q(l,"$prepended",O(Fe)),Q(l,"$remove_const",function(S){var C=this;return h(C),e.const_remove(C,S)}),Q(l,"$to_s",function(){var S=this,C=Fe;return t(C=e.Module.$name.call(S))?C:"#<"+(S.$$is_module?"Module":"Class")+":0x"+S.$__id__().$to_s(16)+">"}),Q(l,"$undef_method",function(S){var C,ee,Le=this;C=Z(arguments),ee=C;for(var nt=0;nt<ee.length;nt++){var dt=ee[nt];typeof dt=="string"||dt.$$is_string||Le.$raise(ce("TypeError"),""+Le.$name()+" is not a symbol nor a string"),h(Le),e.udef(Le,"$"+ee[nt])}return Le},-1),Q(l,"$instance_variables",function(){var S=this,C=Fe;C=(e.Module.$$nesting=c,S.$constants());var ee=[];for(var Le in S)S.hasOwnProperty(Le)&&Le.charAt(0)!=="$"&&Le!=="constructor"&&!C["$include?"](Le)&&ee.push("@"+Le);return ee}),Q(l,"$dup",function _(){var S=_.$$p||Fe,C=this,ee=Fe;return _.$$p=null,ee=Ae(C,j(C,"dup",_,!1,!0),"dup",[],S),ee.$copy_class_variables(C),ee.$copy_constants(C),ee}),Q(l,"$copy_class_variables",function(S){var C=this;for(var ee in S.$$cvars)C.$$cvars[ee]=S.$$cvars[ee]}),Q(l,"$copy_constants",function(S){var C=this,ee,Le=S.$$const;for(ee in Le)n(C,ee,Le[ee])}),Q(l,"$refine",function _(S){var C=_.$$p||Fe,ee,Le=this,nt=Fe,dt=Fe,lt=Fe;return _.$$p=null,ee=[Le,Fe,Fe],nt=ee[0],dt=ee[1],lt=ee[2],lt=e.id(S),typeof Le.$$refine_modules>"u"&&(Le.$$refine_modules=Object.create(null)),typeof Le.$$refine_modules[lt]>"u"?dt=Le.$$refine_modules[lt]=ce("Refinement").$new():dt=Le.$$refine_modules[lt],dt.refinement_module=nt,dt.refined_class=S,ge(dt,"class_exec",[],C.$to_proc()),dt}),Q(l,"$refinements",function(){var S=this,C=S.$$refine_modules,ee=ue([],{});if(typeof C>"u")return ee;for(var Le in C)ee["$[]="](C[Le].refined_class,C[Le]);return ee}),Q(l,"$using",function(S){return pe.$raise("Module#using is not permitted in methods")}),de(l,"class_eval","module_eval"),de(l,"class_exec","module_exec"),de(l,"inspect","to_s")}("::",null,V),function(U,x){var $=L(U,x,"Refinement"),l=$.$$prototype;return l.refinement_module=l.refined_class=Fe,$.$attr_reader("refined_class"),Q($,"$inspect",function c(){var p=c.$$p||Fe,_=this;return c.$$p=null,t(_.refinement_module)?"#<refinement:"+_.refined_class.$inspect()+"@"+_.refinement_module.$inspect()+">":Ae(_,j(_,"inspect",c,!1,!0),"inspect",[],p)})}("::",Y)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,o=e.return_val,f=e.slice,h=e.send2,d=e.find_super,A=e.Kernel,z=e.alias,L=e.top,ne=[],ge=e.nil,Q=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),L.$require("corelib/module"),function(F,Y,pe){var se=t(F,Y,"Class"),ve=[se].concat(pe),Z=e.$r(ve);return n(se,"$new",function be(ue){var Ee=be.$$p||ge;if(be.$$p=null,ue==null&&(ue=Z("Object")),!ue.$$is_class)throw e.TypeError.$new("superclass must be a Class");var O=e.allocate_class(ge,ue);return ue.$inherited(O),Ee!==ge&&r(O,"class_eval",[],Ee.$to_proc()),O},-1),i(se,"$allocate",function(){var ue=this,Ee=new ue.$$constructor;return Ee.$$id=e.uid(),Ee}),i(se,"$descendants",function(){var ue=this;return s(ue.$subclasses(),r(ue.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(se,"$inherited",o(ge)),i(se,"$initialize_dup",function(ue){var Ee=this;Ee.$initialize_copy(ue),Ee.$$name=null,Ee.$$full_name=null}),i(se,"$new",function be(ue){var Ee=be.$$p||ge,O,Ce,$e=this;be.$$p=null,O=f(arguments),Ce=O;var w=$e.$allocate();return e.send(w,w.$initialize,Ce,Ee),w},-1),i(se,"$subclasses",function(){var ue=this;if(typeof WeakRef<"u"){var Ee,O,Ce=[];for(Ee=0;Ee<ue.$$subclasses.length;Ee++)O=ue.$$subclasses[Ee].deref(),O!==void 0&&Ce.push(O);return Ce}else return ue.$$subclasses}),i(se,"$superclass",function(){var ue=this;return ue.$$super||ge}),i(se,"$to_s",function be(){be.$$p;var ue=this;be.$$p=null;var Ee=ue.$$singleton_of;return Ee&&Ee.$$is_a_module?"#<Class:"+Ee.$name()+">":Ee?"#<Class:#<"+Ee.$$class.$name()+":0x"+e.id(Ee).$to_s(16)+">>":h(ue,d(ue,"to_s",be,!1,!0),"to_s",[],null)}),i(se,"$attached_object",function(){var ue=this;if(ue.$$singleton_of!=null)return ue.$$singleton_of;A.$raise(Q("TypeError"),"`"+ue+"' is not a singleton class")}),z(se,"inspect","to_s")}("::",null,ne)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,o=e.Opal,f=e.truthy,h=e.range,d=e.Kernel,A=e.to_a,z=e.hash2,L=e.send,ne=e.eqeq,ge=e.rb_ge,Q=e.nil,F=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(Y,pe){var se=t(Y,pe,"BasicObject");return n(se,"$initialize",function(Z){return r(arguments),Q},-1),n(se,"$==",function(Z){var be=this;return be===Z}),n(se,"$eql?",function(Z){var be=this;return be["$=="](Z)}),i(se,"equal?","=="),n(se,"$__id__",function(){var Z=this;return Z.$$id!=null||e.prop(Z,"$$id",e.uid()),Z.$$id}),n(se,"$__send__",function ve(Z,be){var ue=ve.$$p||Q,Ee,O,Ce=this;ve.$$p=null,Ee=r(arguments,1),O=Ee,Z.$$is_string||Ce.$raise(F("TypeError"),""+Ce.$inspect()+" is not a symbol nor a string");var $e=Ce[e.jsid(Z)];return $e?(ue!==Q&&($e.$$p=ue),$e.apply(Ce,O)):(ue!==Q&&(Ce.$method_missing.$$p=ue),Ce.$method_missing.apply(Ce,[Z].concat(O)))},-2),n(se,"$!",s(!1)),o.$pristine("!"),n(se,"$!=",function(Z){var be=this;return be["$=="](Z)["$!"]()}),n(se,"$instance_eval",function ve(Z){var be=ve.$$p||Q,ue,Ee,O,Ce=this,$e=Q,w=Q,Ae=Q,j=Q,de=Q,V=Q;if(ve.$$p=null,ue=r(arguments),Ee=ue,f(be["$nil?"]())&&f(!!e.compile))f(h(1,3,!1)["$cover?"](Ee.$size()))||d.$raise(F("ArgumentError"),"wrong number of arguments (0 for 1..3)"),O=[].concat(A(Ee)),$e=O[0]==null?Q:O[0],w=O[1]==null?Q:O[1],O[2]==null||O[2],Ae=z(["file","eval"],{file:f(j=w)?j:"(eval)",eval:!0}),de=e.hash({arity_check:!1}).$merge(Ae),V=o.$compile($e,de),be=L(d,"proc",[],function U(){var x=U.$$s==null?this:U.$$s;return new Function("Opal,self","return "+V)(e,x)},{$$s:Ce});else{if(f(be["$nil?"]())&&f(ge(Ee.$length(),1))&&ne(Ee.$first()["$[]"](0),"@"))return Ce.$instance_variable_get(Ee.$first());f(Ee["$any?"]())&&d.$raise(F("ArgumentError"),"wrong number of arguments ("+Ee.$size()+" for 0)")}var Fe=be.$$s,ce;if(be.$$s=null,Ce.$$is_a_module){Ce.$$eval=!0;try{ce=be.call(Ce,Ce)}finally{Ce.$$eval=!1}}else ce=be.call(Ce,Ce);return be.$$s=Fe,ce},-1),n(se,"$instance_exec",function ve(Z){var be=ve.$$p||Q,ue,Ee,O=this;ve.$$p=null,ue=r(arguments),Ee=ue,f(be)||d.$raise(F("ArgumentError"),"no block given");var Ce=be.$$s,$e;if(be.$$s=null,O.$$is_a_module){O.$$eval=!0;try{$e=be.apply(O,Ee)}finally{O.$$eval=!1}}else $e=be.apply(O,Ee);return be.$$s=Ce,$e},-1),n(se,"$singleton_method_added",function(Z){return r(arguments),Q},-1),n(se,"$singleton_method_removed",function(Z){return r(arguments),Q},-1),n(se,"$singleton_method_undefined",function(Z){return r(arguments),Q},-1),n(se,"$method_missing",function ve(Z,be){ve.$$p;var ue,Ee,O=this,Ce=Q;return ve.$$p=null,ue=r(arguments,1),Ee=ue,Ce=o.$inspect(O),d.$raise(F("NoMethodError").$new("undefined method `"+Z+"' for "+Ce,Z,Ee),Q,d.$caller(1))},-2),o.$pristine(se,"method_missing"),n(se,"$respond_to_missing?",function(Z,be){return!1},-2)}("::",null)};Opal.modules["corelib/kernel"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.respond_to,i=e.Opal,s=e.deny_frozen_access,o=e.freeze,f=e.freeze_props,h=e.jsid,d=e.module,A=e.return_val,z=e.def,L=e.Kernel,ne=e.gvars,ge=e.slice,Q=e.send,F=e.to_a,Y=e.ensure_kwargs,pe=e.eqeq,se=e.hash2,ve=e.rb_plus,Z=e.eqeqeq,be=e.return_self,ue=e.rb_le,Ee=e.extract_kwargs,O=e.rb_lt,Ce=e.Object,$e=e.alias,w=e.klass,Ae=[],j=e.nil,de=e.$$$;return e.add_stubs("!,=~,==,object_id,raise,new,class,coerce_to?,<<,map,caller,nil?,allocate,copy_instance_variables,copy_singleton_methods,initialize_clone,frozen?,freeze,initialize_copy,define_method,singleton_class,to_proc,initialize_dup,for,empty?,pop,call,append_features,extend_object,extended,gets,__id__,include?,each,instance_variables,instance_variable_get,inspect,+,to_s,instance_variable_name!,respond_to?,to_int,coerce_to!,Integer,===,enum_for,result,any?,print,format,puts,<=,length,[],readline,<,first,split,to_str,exception,backtrace,rand,respond_to_missing?,pristine,try_convert!,expand_path,join,start_with?,new_seed,srand,tag,value,open,is_a?,__send__,yield_self,include"),function(V,Fe){var ce=d(V,"Kernel"),U=[ce].concat(Fe),x=e.$r(U);z(ce,"$=~",A(!1)),z(ce,"$!~",function(c){var p=this;return p["$=~"](c)["$!"]()}),z(ce,"$===",function(c){var p=this,_=j;return t(_=p.$object_id()["$=="](c.$object_id()))?_:p["$=="](c)}),z(ce,"$<=>",function(c){var p=this;p.$$comparable=!0;var _=p["$=="](c);return _&&_!==j?0:j}),z(ce,"$method",function(c){var p=this,_=p[h(c)];return(!_||_.$$stub)&&L.$raise(de("NameError").$new("undefined method `"+c+"' for class `"+p.$class()+"'",c)),de("Method").$new(p,_.$$owner||p.$class(),_,c)}),z(ce,"$methods",function(c){var p=this;return c==null&&(c=!0),t(c)?e.methods(p):e.own_methods(p)},-1),z(ce,"$public_methods",function(c){var p=this;return c==null&&(c=!0),t(c)?e.methods(p):e.receiver_methods(p)},-1),z(ce,"$Array",function(c){var p;return c===j?[]:c.$$is_array?c:(p=i["$coerce_to?"](c,de("Array"),"to_ary"),p!==j||(p=i["$coerce_to?"](c,de("Array"),"to_a"),p!==j)?p:[c])}),z(ce,"$at_exit",function l(){var c=l.$$p||j,p=j;return ne.__at_exit__==null&&(ne.__at_exit__=j),l.$$p=null,ne.__at_exit__=t(p=ne.__at_exit__)?p:[],ne.__at_exit__["$<<"](c),c}),z(ce,"$caller",function(c,p){c==null&&(c=1),p==null&&(p=j);var _,S;_=new Error().$backtrace(),S=[];for(var C=c+1,ee=_.length;C<ee;C++)_[C].match(/runtime\.js/)||S.push(_[C]);return p!=j&&(S=S.slice(0,p)),S},-1),z(ce,"$caller_locations",function(c){var p,_,S=this;return p=ge(arguments),_=p,Q(Q(S,"caller",F(_)),"map",[],function(ee){return ee==null&&(ee=j),de(de(de("Thread"),"Backtrace"),"Location").$new(ee)})},-1),z(ce,"$class",function(){var c=this;return c.$$class}),z(ce,"$copy_instance_variables",function(c){var p=this,_=Object.keys(c),S,C,ee;for(S=0,C=_.length;S<C;S++)ee=_[S],ee.charAt(0)!=="$"&&c.hasOwnProperty(ee)&&(p[ee]=c[ee])}),z(ce,"$copy_singleton_methods",function(c){var p=this,_,S,C,ee;if(c.hasOwnProperty("$$meta")&&c.$$meta!==null){var Le=e.get_singleton_class(c),nt=e.get_singleton_class(p);for(C=Object.getOwnPropertyNames(Le.$$prototype),_=0,ee=C.length;_<ee;_++)S=C[_],e.is_method(S)&&(nt.$$prototype[S]=Le.$$prototype[S]);nt.$$const=Object.assign({},Le.$$const),Object.setPrototypeOf(nt.$$prototype,Object.getPrototypeOf(Le.$$prototype))}for(_=0,C=Object.getOwnPropertyNames(c),ee=C.length;_<ee;_++)S=C[_],S.charAt(0)==="$"&&S.charAt(1)!=="$"&&c.hasOwnProperty(S)&&(p[S]=c[S])}),z(ce,"$clone",function(c){var p,_=this,S=j;return c=Y(c),p=c.$$smap.freeze,p==null&&(p=j),t(p["$nil?"]())||pe(p,!0)||pe(p,!1)||_.$raise(x("ArgumentError"),"unexpected value for freeze: "+p.$class()),S=_.$class().$allocate(),S.$copy_instance_variables(_),S.$copy_singleton_methods(_),S.$initialize_clone(_,se(["freeze"],{freeze:p})),(pe(p,!0)||t(p["$nil?"]())&&t(_["$frozen?"]()))&&S.$freeze(),S},-1),z(ce,"$initialize_clone",function(c,p){var _=this;return p=Y(p),p.$$smap.freeze,_.$initialize_copy(c),_},-2),z(ce,"$define_singleton_method",function l(c,p){var _=l.$$p||j,S=this;return l.$$p=null,Q(S.$singleton_class(),"define_method",[c,p],_.$to_proc())},-2),z(ce,"$dup",function(){var c=this,p=j;return p=c.$class().$allocate(),p.$copy_instance_variables(c),p.$initialize_dup(c),p}),z(ce,"$initialize_dup",function(c){var p=this;return p.$initialize_copy(c)}),z(ce,"$enum_for",function l(c,p){var _=l.$$p||j,S,C,ee,Le=this;return l.$$p=null,S=ge(arguments),S.length>0&&(C=S.shift()),C==null&&(C="each"),ee=S,Q(de("Enumerator"),"for",[Le,C].concat(F(ee)),_.$to_proc())},-1),z(ce,"$equal?",function(c){var p=this;return p===c}),z(ce,"$exit",function(c){var p=j,_=j;for(ne.__at_exit__==null&&(ne.__at_exit__=j),c==null&&(c=!0),ne.__at_exit__=t(p=ne.__at_exit__)?p:[];!t(ne.__at_exit__["$empty?"]());)_=ne.__at_exit__.$pop(),_.$call();return c.$$is_boolean?c=c?0:1:c=r(c,de("Integer"),"to_int"),e.exit(c),j},-1),z(ce,"$extend",function(c){var p,_,S=this;p=ge(arguments),_=p,_.length==0&&S.$raise(de("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(S);for(var C=S.$singleton_class(),ee=_.length-1;ee>=0;ee--){var Le=_[ee];Le.$$is_module||L.$raise(de("TypeError"),"wrong argument type "+Le.$class()+" (expected Module)"),Le.$append_features(C),Le.$extend_object(S),Le.$extended(S)}return S},-1),z(ce,"$freeze",function(){var c=this;return t(c["$frozen?"]())?c:typeof c=="object"?(f(c),o(c)):c}),z(ce,"$frozen?",function(){var c=this;switch(typeof c){case"string":case"symbol":case"number":case"boolean":return!0;case"object":return c.$$frozen||!1;default:return!1}}),z(ce,"$gets",function(c){var p,_;return ne.stdin==null&&(ne.stdin=j),p=ge(arguments),_=p,Q(ne.stdin,"gets",F(_))},-1),z(ce,"$hash",function(){var c=this;return c.$__id__()}),z(ce,"$initialize_copy",A(j));var $=[];return z(ce,"$inspect",function(){var c=this,p=j,_=j,S=j,C=j;return function(){try{try{return p="",_=c.$__id__(),t($["$include?"](_))?p=" ...":($["$<<"](_),S=!0,Q(c.$instance_variables(),"each",[],function ee(Le){var nt=ee.$$s==null?this:ee.$$s,dt=j,lt=j;return Le==null&&(Le=j),dt=nt.$instance_variable_get(Le),lt=x("Opal").$inspect(dt),p=ve(p," "+Le+"="+lt)},{$$s:c})),"#<"+c.$class()+":0x"+_.$to_s(16)+p+">"}catch(ee){if(e.rescue(ee,[x("StandardError")])){C=ee;try{return"#<"+c.$class()+":0x"+_.$to_s(16)+">"}finally{e.pop_exception()}}else throw ee}}finally{t(S)&&$.$pop()}}()}),z(ce,"$instance_of?",function(c){var p=this;return!c.$$is_class&&!c.$$is_module&&L.$raise(de("TypeError"),"class or module required"),p.$$class===c}),z(ce,"$instance_variable_defined?",function(c){var p=this;return c=i["$instance_variable_name!"](c),e.hasOwnProperty.call(p,c.substr(1))}),z(ce,"$instance_variable_get",function(c){var p=this;c=i["$instance_variable_name!"](c);var _=p[e.ivar(c.substr(1))];return _??j}),z(ce,"$instance_variable_set",function(c,p){var _=this;return s(_),c=i["$instance_variable_name!"](c),_[e.ivar(c.substr(1))]=p}),z(ce,"$remove_instance_variable",function(c){var p=this;c=i["$instance_variable_name!"](c);var _=e.ivar(c.substr(1)),S;return p.hasOwnProperty(_)?(S=p[_],delete p[_],S):L.$raise(de("NameError"),"instance variable "+c+" not defined")}),z(ce,"$instance_variables",function(){var c=this,p=[],_;for(var S in c)c.hasOwnProperty(S)&&S.charAt(0)!=="$"&&(S.substr(-1)==="$"?_=S.slice(0,S.length-1):_=S,p.push("@"+_));return p}),z(ce,"$Integer",function(c,p){var _,S,C;return c.$$is_string?c==="0"?0:(p===void 0?p=0:(p=r(p,de("Integer"),"to_int"),(p===1||p<0||p>36)&&L.$raise(de("ArgumentError"),"invalid radix "+p)),S=c.toLowerCase(),S=S.replace(/(\d)_(?=\d)/g,"$1"),S=S.replace(/^(\s*[+-]?)(0[bodx]?)/,function(ee,Le,nt){switch(nt){case"0b":if(p===0||p===2)return p=2,Le;case"0":case"0o":if(p===0||p===8)return p=8,Le;case"0d":if(p===0||p===10)return p=10,Le;case"0x":if(p===0||p===16)return p=16,Le}L.$raise(de("ArgumentError"),'invalid value for Integer(): "'+c+'"')}),p=p===0?10:p,C="0-"+(p<=10?p-1:"9a-"+String.fromCharCode(97+(p-11))),new RegExp("^\\s*[+-]?["+C+"]+\\s*$").test(S)||L.$raise(de("ArgumentError"),'invalid value for Integer(): "'+c+'"'),_=parseInt(S,p),isNaN(_)&&L.$raise(de("ArgumentError"),'invalid value for Integer(): "'+c+'"'),_):(p!==void 0&&L.$raise(de("ArgumentError"),"base specified for non string value"),c===j&&L.$raise(de("TypeError"),"can't convert nil into Integer"),c.$$is_number?((c===1/0||c===-1/0||isNaN(c))&&L.$raise(de("FloatDomainError"),c),Math.floor(c)):c["$respond_to?"]("to_int")&&(_=c.$to_int(),_!==j)?_:i["$coerce_to!"](c,de("Integer"),"to_i"))},-2),z(ce,"$Float",function(c){var p;return c===j&&L.$raise(de("TypeError"),"can't convert nil into Float"),c.$$is_string?(p=c.toString(),p=p.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(p)?L.$Integer(p):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(p)||L.$raise(de("ArgumentError"),'invalid value for Float(): "'+c+'"'),parseFloat(p))):i["$coerce_to!"](c,de("Float"),"to_f")}),z(ce,"$Hash",function(c){return t(c["$nil?"]())||pe(c,[])?se([],{}):Z(de("Hash"),c)?c:i["$coerce_to!"](c,de("Hash"),"to_hash")}),z(ce,"$is_a?",function(c){var p=this;return!c.$$is_class&&!c.$$is_module&&L.$raise(de("TypeError"),"class or module required"),e.is_a(p,c)}),z(ce,"$itself",be),z(ce,"$lambda",function l(){var c=l.$$p||j;return l.$$p=null,e.lambda(c)}),z(ce,"$load",function(c){return c=i["$coerce_to!"](c,de("String"),"to_str"),e.load(c)}),z(ce,"$loop",function l(){var c=l.$$p||j,p=this,_=j;if(l.$$p=null,c===j)return Q(p,"enum_for",["loop"],function(){return de(de("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(c,[])}catch(S){if(e.rescue(S,[de("StopIteration")])){_=S;try{return _.$result()}finally{e.pop_exception()}}else throw S}return p}),z(ce,"$nil?",A(!1)),z(ce,"$printf",function(c){var p,_,S=this;return p=ge(arguments),_=p,t(_["$any?"]())&&S.$print(Q(S,"format",F(_))),j},-1),z(ce,"$proc",function l(){var c=l.$$p||j;return l.$$p=null,t(c)||L.$raise(de("ArgumentError"),"tried to create Proc object without a block"),c.$$is_lambda=!1,c}),z(ce,"$puts",function(c){var p,_;return ne.stdout==null&&(ne.stdout=j),p=ge(arguments),_=p,Q(ne.stdout,"puts",F(_))},-1),z(ce,"$p",function(c){var p,_;return p=ge(arguments),_=p,Q(_,"each",[],function(C){return ne.stdout==null&&(ne.stdout=j),C==null&&(C=j),ne.stdout.$puts(C.$inspect())}),t(ue(_.$length(),1))?_["$[]"](0):_},-1),z(ce,"$print",function(c){var p,_;return ne.stdout==null&&(ne.stdout=j),p=ge(arguments),_=p,Q(ne.stdout,"print",F(_))},-1),z(ce,"$readline",function(c){var p,_;return ne.stdin==null&&(ne.stdin=j),p=ge(arguments),_=p,Q(ne.stdin,"readline",F(_))},-1),z(ce,"$warn",function(c,p){var _,S,C,ee,Le,nt,dt=this,lt=j;return ne.VERBOSE==null&&(ne.VERBOSE=j),ne.stderr==null&&(ne.stderr=j),_=ge(arguments),S=Ee(_),S=Y(S),C=_,ee=S.$$smap.uplevel,ee==null&&(ee=j),t(ee)&&(ee=i["$coerce_to!"](ee,de("Integer"),"to_str"),t(O(ee,0))&&L.$raise(de("ArgumentError"),"negative level ("+ee+")"),lt=(Le=(nt=dt.$caller(ve(ee,1),1).$first(),nt===j||nt==null?j:nt.$split(":in `")),Le===j||Le==null?j:Le.$first()),t(lt)&&(lt=""+lt+": "),C=Q(C,"map",[],function(bt){return bt==null&&(bt=j),""+lt+"warning: "+bt})),t(ne.VERBOSE["$nil?"]())||t(C["$empty?"]())?j:Q(ne.stderr,"puts",F(C))},-1),z(ce,"$raise",function(c,p,_){throw ne["!"]==null&&(ne["!"]=j),ne["@"]==null&&(ne["@"]=j),p==null&&(p=j),_==null&&(_=j),c==null&&ne["!"]!==j?ne["!"]:(c==null?c=de("RuntimeError").$new(""):n(c,"$to_str")?c=de("RuntimeError").$new(c.$to_str()):c.$$is_class&&n(c,"$exception")?c=c.$exception(p):c.$$is_exception||(c=de("TypeError").$new("exception class/object expected")),_!==j&&c.$set_backtrace(_),ne["!"]!==j&&e.exceptions.push(ne["!"]),ne["!"]=c,ne["@"]=c.$backtrace(),c)},-1),z(ce,"$rand",function(c){return c===void 0?de(de("Random"),"DEFAULT").$rand():(c.$$is_number&&(c<0&&(c=Math.abs(c)),c%1!==0&&(c=c.$to_i()),c===0&&(c=void 0)),de(de("Random"),"DEFAULT").$rand(c))},-1),z(ce,"$respond_to?",function(c,p){var _=this;p==null&&(p=!1);var S=_[h(c)];return typeof S=="function"&&!S.$$stub?!0:_["$respond_to_missing?"].$$pristine===!0?!1:_["$respond_to_missing?"](c,p)},-2),z(ce,"$respond_to_missing?",function(c,p){return!1},-2),i.$pristine(ce,"respond_to?","respond_to_missing?"),z(ce,"$require",function(c){return typeof c!="string"&&e.String&&e.Array&&(c=i["$coerce_to!"](c,de("String"),"to_str")),e.require(c)}),z(ce,"$require_relative",function(c){return i["$try_convert!"](c,de("String"),"to_str"),c=de("File").$expand_path(de("File").$join(e.current_file,"..",c)),e.require(c)}),z(ce,"$require_tree",function(c,p){var _;p=Y(p),_=p.$$smap.autoload,_==null&&(_=!1);var S=[];c=de("File").$expand_path(c),c=e.normalize(c),c==="."&&(c="");for(var C in e.modules)C["$start_with?"](c)&&(_?S.push([C,!0]):S.push([C,e.require(C)]));return S},-2),z(ce,"$singleton_class",function(){var c=this;return e.get_singleton_class(c)}),z(ce,"$sleep",function(c){c==null&&(c=j),c===j&&L.$raise(de("TypeError"),"can't convert NilClass into time interval"),c.$$is_number||L.$raise(de("TypeError"),"can't convert "+c.$class()+" into time interval"),c<0&&L.$raise(de("ArgumentError"),"time interval must be positive");for(var p=e.global.performance?function(){return performance.now()}:function(){return new Date},_=p();p()-_<=c*1e3;);return Math.round(c)},-1),z(ce,"$srand",function(c){return c==null&&(c=x("Random").$new_seed()),de("Random").$srand(c)},-1),z(ce,"$String",function(c){var p=j;return t(p=i["$coerce_to?"](c,de("String"),"to_str"))?p:i["$coerce_to!"](c,de("String"),"to_s")}),z(ce,"$tap",function l(){var c=l.$$p||j,p=this;return l.$$p=null,e.yield1(c,p),p}),z(ce,"$to_proc",be),z(ce,"$to_s",function(){var c=this;return"#<"+c.$class()+":0x"+c.$__id__().$to_s(16)+">"}),z(ce,"$catch",function l(c){var p=l.$$p||j,_=j,S=j;l.$$p=null,c==null&&(c=j);try{return c=t(_=c)?_:Ce.$new(),e.yield1(p,c)}catch(C){if(e.rescue(C,[de("UncaughtThrowError")])){S=C;try{return pe(S.$tag(),c)?S.$value():L.$raise()}finally{e.pop_exception()}}else throw C}},-1),z(ce,"$throw",function(c,p){return p==null&&(p=j),L.$raise(de("UncaughtThrowError").$new(c,p))},-2),z(ce,"$open",function l(c){var p=l.$$p||j,_,S;return l.$$p=null,_=ge(arguments),S=_,Q(de("File"),"open",F(S),p.$to_proc())},-1),z(ce,"$yield_self",function l(){var c=l.$$p||j,p=this;return l.$$p=null,c===j?Q(p,"enum_for",["yield_self"],A(1)):e.yield1(c,p)}),$e(ce,"fail","raise"),$e(ce,"kind_of?","is_a?"),$e(ce,"object_id","__id__"),$e(ce,"public_send","__send__"),$e(ce,"send","__send__"),$e(ce,"then","yield_self"),$e(ce,"to_enum","enum_for")}("::",Ae),function(V,Fe){var ce=w(V,Fe,"Object");return delete Ce.$$prototype.$require,ce.$include(L)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,o=e.top;return e.nil,e.add_stubs("include,raise"),function(f,h){return r(f,"$to_s",t("main")),r(f,"$include",function(A){return n.$include(A)}),r(f,"$autoload",function(A){var z,L;return z=i(arguments),L=z,e.Object.$autoload.apply(e.Object,L)},-1),r(f,"$using",function(A){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(o))};Opal.modules["corelib/error/errno"]=function(e){var t=e.module,r=e.truthy,n=e.rb_plus,i=e.send2,s=e.find_super,o=e.def,f=e.klass,h=e.nil,d=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(A,z){var L=t(A,"Errno"),ne=h,ge=h;ne=[["EINVAL","Invalid argument",22],["EEXIST","File exists",17],["EISDIR","Is a directory",21],["EMFILE","Too many open files",24],["ESPIPE","Illegal seek",29],["EACCES","Permission denied",13],["EPERM","Operation not permitted",1],["ENOENT","No such file or directory",2],["ENAMETOOLONG","File name too long",36]],ge=h;var Q;for(Q=0;Q<ne.length;Q++)(function(){var F=ne[Q][0],Y=ne[Q][1],pe=ne[Q][2];ge=e.klass(L,e.SystemCallError,F),ge.errno=pe,function(se,ve){return o(se,"$new",function Z(be){Z.$$p;var ue=this,Ee=h;return Z.$$p=null,be==null&&(be=h),Ee=Y,r(be)&&(Ee=n(Ee," - "+be)),i(ue,s(ue,"new",Z,!1,!0),"new",[Ee],null)},-1)}(e.get_singleton_class(ge))})()}("::"),function(A,z,L){var ne=f(A,z,"SystemCallError");return o(ne,"$errno",function(){var Q=this;return Q.$class().$errno()}),function(ge,Q){return ge.$attr_reader("errno")}(e.get_singleton_class(ne))}("::",d("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,o=e.to_a,f=e.def,h=e.truthy,d=e.hash2,A=e.Kernel,z=e.not,L=e.rb_plus,ne=e.eqeq,ge=e.Object,Q=e.ensure_kwargs,F=e.send2,Y=e.find_super,pe=e.module,se=[],ve=e.nil,Z=e.$$$;return e.add_stubs("new,map,backtrace,clone,to_s,merge,tty?,[],include?,raise,dup,empty?,!,caller,shift,+,class,join,cause,full_message,==,reverse,split,autoload,attr_reader,inspect"),function(be,ue,Ee){var O=t(be,ue,"Exception"),Ce=[O].concat(Ee),$e=e.$r(Ce),w=O.$$prototype;w.message=ve,e.prop(O.$$prototype,"$$is_exception",!0);var Ae;Error.stackTraceLimit=100,i(O,"$new",function(V){var Fe,ce,U=this;n["!"]==null&&(n["!"]=ve),Fe=r(arguments),ce=Fe;var x=ce.length>0?ce[0]:ve,$=new U.$$constructor(x);return $.name=U.$$name,$.message=x,$.cause=n["!"],e.send($,$.$initialize,ce),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace($,Ae),$},-1),Ae=O.$new,i(O,"$exception",function(V){var Fe,ce,U=this;return Fe=r(arguments),ce=Fe,s(U,"new",o(ce))},-1),f(O,"$initialize",function(V){var Fe,ce,U=this;return Fe=r(arguments),ce=Fe,U.message=ce.length>0?ce[0]:ve},-1);function j(de){for(var V=[],Fe,ce=0;ce<de.length;ce++){var U=de[ce];!U||!U.$$is_string||((Fe=U.match(/^ at (.*?) \((.*?)\)$/))?V.push(Fe[2]+":in `"+Fe[1]+"'"):(Fe=U.match(/^ at (.*?)$/))?V.push(Fe[1]+":in `undefined'"):(Fe=U.match(/^ from (.*?)$/))?V.push(Fe[1]):(Fe=U.match(/^(.*?)@(.*?)$/))&&V.push(Fe[2]+":in `"+Fe[1]+"'"))}return V}return f(O,"$backtrace",function(){var V=this;if(V.backtrace)return V.backtrace;var Fe=V.stack;return typeof Fe<"u"&&Fe.$$is_string?V.backtrace=j(Fe.split(`
400
+ `)):Fe?V.backtrace=j(Fe):[]}),f(O,"$backtrace_locations",function(){var V,Fe=this;return Fe.backtrace_locations||(Fe.backtrace_locations=(V=Fe.$backtrace(),V===ve||V==null?ve:s(V,"map",[],function(U){return U==null&&(U=ve),Z(Z(Z("Thread"),"Backtrace"),"Location").$new(U)}))),Fe.backtrace_locations}),f(O,"$cause",function(){var V=this;return V.cause||ve}),f(O,"$exception",function(V){var Fe=this;if(V==null&&(V=ve),V===ve||Fe===V)return Fe;var ce=Fe.$clone();return ce.message=V,Fe.backtrace&&(ce.backtrace=Fe.backtrace.$dup()),ce.stack=Fe.stack,ce.cause=Fe.cause,ce},-1),f(O,"$message",function(){var V=this;return V.$to_s()}),f(O,"$full_message",function(V){var Fe,ce=this,U=ve,x=ve,$=ve,l=ve,c=ve,p=ve,_=ve,S=ve,C=ve;return n.stderr==null&&(n.stderr=ve),V==null&&(V=ve),h($e("Hash","skip_raise")?"constant":ve)?(V=d(["highlight","order"],{highlight:n.stderr["$tty?"](),order:"top"}).$merge(h(U=V)?U:d([],{})),Fe=[V["$[]"]("highlight"),V["$[]"]("order")],x=Fe[0],$=Fe[1],h([!0,!1]["$include?"](x))||A.$raise(Z("ArgumentError"),"expected true or false as highlight: "+x),h(["top","bottom"]["$include?"]($))||A.$raise(Z("ArgumentError"),"expected :top or :bottom as order: "+$),h(x)?(l="\x1B[1;4m",c="\x1B[1m",p="\x1B[m"):l=c=p="",_=ce.$backtrace().$dup(),(z(_)||h(_["$empty?"]()))&&(_=ce.$caller()),S=_.$shift(),C=""+S+": ",C=L(C,""+c+ce.$to_s()+" ("+l+ce.$class()+p+c+")"+p+`
401
+ `),C=L(C,s(_,"map",[],function(Le){return Le==null&&(Le=ve)," from "+Le+`
402
+ `}).$join()),h(ce.$cause())&&(C=L(C,ce.$cause().$full_message(d(["highlight"],{highlight:x})))),ne($,"bottom")&&(C=C.$split(`
403
+ `).$reverse().$join(`
404
+ `),C=L(""+c+"Traceback"+p+` (most recent call last):
405
+ `,C)),C):""+ce.message+`
406
+ `+ce.stack},-1),f(O,"$inspect",function(){var V=this,Fe=ve;return Fe=V.$to_s(),h(Fe["$empty?"]())?V.$class().$to_s():"#<"+V.$class().$to_s()+": "+V.$to_s()+">"}),f(O,"$set_backtrace",function(V){var Fe=this,ce=!0,U,x;if(V===ve)Fe.backtrace=ve,Fe.stack="";else if(V.$$is_string)Fe.backtrace=[V],Fe.stack=" from "+V;else{if(V.$$is_array){for(U=0,x=V.length;U<x;U++)if(!V[U].$$is_string){ce=!1;break}}else ce=!1;ce===!1&&A.$raise(Z("TypeError"),"backtrace must be Array of String"),Fe.backtrace=V,Fe.stack=s(V,"map",[],function(l){return l==null&&(l=ve),L(" from ",l)}).join(`
407
+ `)}return V}),f(O,"$to_s",function(){var V=this,Fe=ve,ce=ve;return h(Fe=h(ce=V.message)?V.message.$to_s():ce)?Fe:V.$class().$to_s()})}("::",Error,se),t("::",Z("Exception"),"ScriptError"),t("::",Z("ScriptError"),"SyntaxError"),t("::",Z("ScriptError"),"LoadError"),t("::",Z("ScriptError"),"NotImplementedError"),t("::",Z("Exception"),"SystemExit"),t("::",Z("Exception"),"NoMemoryError"),t("::",Z("Exception"),"SignalException"),t("::",Z("SignalException"),"Interrupt"),t("::",Z("Exception"),"SecurityError"),t("::",Z("Exception"),"SystemStackError"),t("::",Z("Exception"),"StandardError"),t("::",Z("StandardError"),"EncodingError"),t("::",Z("StandardError"),"ZeroDivisionError"),t("::",Z("StandardError"),"NameError"),t("::",Z("NameError"),"NoMethodError"),t("::",Z("StandardError"),"RuntimeError"),t("::",Z("RuntimeError"),"FrozenError"),t("::",Z("StandardError"),"LocalJumpError"),t("::",Z("StandardError"),"TypeError"),t("::",Z("StandardError"),"ArgumentError"),t("::",Z("ArgumentError"),"UncaughtThrowError"),t("::",Z("StandardError"),"IndexError"),t("::",Z("IndexError"),"StopIteration"),t("::",Z("StopIteration"),"ClosedQueueError"),t("::",Z("IndexError"),"KeyError"),t("::",Z("StandardError"),"RangeError"),t("::",Z("RangeError"),"FloatDomainError"),t("::",Z("StandardError"),"IOError"),t("::",Z("IOError"),"EOFError"),t("::",Z("StandardError"),"SystemCallError"),t("::",Z("StandardError"),"RegexpError"),t("::",Z("StandardError"),"ThreadError"),t("::",Z("StandardError"),"FiberError"),ge.$autoload("Errno","corelib/error/errno"),function(be,ue){var Ee=t(be,ue,"FrozenError");return Ee.$attr_reader("receiver"),f(Ee,"$initialize",function O(Ce,$e){var w;O.$$p;var Ae=this;return O.$$p=null,$e=Q($e),w=$e.$$smap.receiver,w==null&&(w=ve),F(Ae,Y(Ae,"initialize",O,!1,!0),"initialize",[Ce],null),Ae.receiver=w},-2)}("::",Z("RuntimeError")),function(be,ue){var Ee=t(be,ue,"UncaughtThrowError"),O=Ee.$$prototype;return O.tag=ve,Ee.$attr_reader("tag","value"),f(Ee,"$initialize",function Ce($e,w){Ce.$$p;var Ae=this;return Ce.$$p=null,w==null&&(w=ve),Ae.tag=$e,Ae.value=w,F(Ae,Y(Ae,"initialize",Ce,!1,!0),"initialize",["uncaught throw "+Ae.tag.$inspect()],null)},-2)}("::",Z("ArgumentError")),function(be,ue){var Ee=t(be,ue,"NameError");return Ee.$attr_reader("name"),f(Ee,"$initialize",function O(Ce,$e){O.$$p;var w=this;return O.$$p=null,$e==null&&($e=ve),F(w,Y(w,"initialize",O,!1,!0),"initialize",[Ce],null),w.name=$e},-2)}("::",null),function(be,ue){var Ee=t(be,ue,"NoMethodError");return Ee.$attr_reader("args"),f(Ee,"$initialize",function O(Ce,$e,w){O.$$p;var Ae=this;return O.$$p=null,$e==null&&($e=ve),w==null&&(w=[]),F(Ae,Y(Ae,"initialize",O,!1,!0),"initialize",[Ce,$e],null),Ae.args=w},-2)}("::",null),function(be,ue){var Ee=t(be,ue,"StopIteration");return Ee.$attr_reader("result")}("::",null),function(be,ue){var Ee=t(be,ue,"KeyError"),O=Ee.$$prototype;return O.receiver=O.key=ve,f(Ee,"$initialize",function Ce($e,w){var Ae,j;Ce.$$p;var de=this;return Ce.$$p=null,w=Q(w),Ae=w.$$smap.receiver,Ae==null&&(Ae=ve),j=w.$$smap.key,j==null&&(j=ve),F(de,Y(de,"initialize",Ce,!1,!0),"initialize",[$e],null),de.receiver=Ae,de.key=j},-2),f(Ee,"$receiver",function(){var $e=this,w=ve;return h(w=$e.receiver)?w:A.$raise(Z("ArgumentError"),"no receiver is available")}),f(Ee,"$key",function(){var $e=this,w=ve;return h(w=$e.key)?w:A.$raise(Z("ArgumentError"),"no key is available")})}("::",null),function(be,ue){var Ee=pe(be,"JS"),O=[Ee].concat(ue);return t(O[0],null,"Error"),ve}("::",se)};Opal.modules["corelib/constants"]=function(e){var t=e.const_set;e.nil;var r=e.$$$;return t("::","RUBY_PLATFORM","opal"),t("::","RUBY_ENGINE","opal"),t("::","RUBY_VERSION","3.2.0"),t("::","RUBY_ENGINE_VERSION","1.7.3"),t("::","RUBY_RELEASE_DATE","2023-03-23"),t("::","RUBY_PATCHLEVEL",0),t("::","RUBY_REVISION","0"),t("::","RUBY_COPYRIGHT","opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contributors"),t("::","RUBY_DESCRIPTION","opal "+r("RUBY_ENGINE_VERSION")+" ("+r("RUBY_RELEASE_DATE")+" revision "+r("RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("corelib/runtime"),t.$require("corelib/helpers"),t.$require("corelib/module"),t.$require("corelib/class"),t.$require("corelib/basic_object"),t.$require("corelib/kernel"),t.$require("corelib/main"),t.$require("corelib/error"),t.$require("corelib/constants")};Opal.modules["corelib/nil"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_val,s=e.ensure_kwargs,o=e.NilClass,f=e.slice,h=e.truthy,d=e.rb_gt,A=e.alias,z=e.nil,L=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(ne,ge,Q){var F=t(ne,ge,"NilClass");return F.$$prototype.$$meta=F,function(Y,pe){return n(Y,"$allocate",function(){var ve=this;return r.$raise(L("TypeError"),"allocator undefined for "+ve.$name())}),e.udef(Y,"$new"),z}(e.get_singleton_class(F)),n(F,"$!",i(!0)),n(F,"$&",i(!1)),n(F,"$|",function(pe){return pe!==!1&&pe!==z}),n(F,"$^",function(pe){return pe!==!1&&pe!==z}),n(F,"$==",function(pe){return pe===z}),n(F,"$dup",i(z)),n(F,"$clone",function(pe){return pe=s(pe),pe.$$smap.freeze,z},-1),n(F,"$inspect",i("nil")),n(F,"$nil?",i(!0)),n(F,"$singleton_class",function(){return o}),n(F,"$to_a",function(){return[]}),n(F,"$to_h",function(){return e.hash()}),n(F,"$to_i",i(0)),n(F,"$to_s",i("")),n(F,"$to_c",function(){return L("Complex").$new(0,0)}),n(F,"$rationalize",function(pe){var se,ve;return se=f(arguments),ve=se,h(d(ve.$length(),1))&&r.$raise(L("ArgumentError")),r.$Rational(0,1)},-1),n(F,"$to_r",function(){return r.$Rational(0,1)}),n(F,"$instance_variables",function(){return[]}),A(F,"to_f","to_i")}("::",null)};Opal.modules["corelib/boolean"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_self,s=e.ensure_kwargs,o=e.slice,f=e.truthy,h=e.send2,d=e.find_super,A=e.to_a,z=e.alias,L=e.nil,ne=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(ge,Q,F){var Y=t(ge,Q,"Boolean");e.prop(Y.$$prototype,"$$is_boolean",!0);for(var pe=["$$class","$$meta"],se=0;se<pe.length;se++)Object.defineProperty(Y.$$prototype,pe[se],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(Y.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:L}}),function(ve,Z){return n(ve,"$allocate",function(){var ue=this;return r.$raise(ne("TypeError"),"allocator undefined for "+ue.$name())}),e.udef(ve,"$new"),L}(e.get_singleton_class(Y)),n(Y,"$__id__",function(){var Z=this;return Z.valueOf()?2:0}),n(Y,"$!",function(){var Z=this;return Z!=!0}),n(Y,"$&",function(Z){var be=this;return be==!0?Z!==!1&&Z!==L:!1}),n(Y,"$|",function(Z){var be=this;return be==!0?!0:Z!==!1&&Z!==L}),n(Y,"$^",function(Z){var be=this;return be==!0?Z===!1||Z===L:Z!==!1&&Z!==L}),n(Y,"$==",function(Z){var be=this;return be==!0===Z.valueOf()}),n(Y,"$singleton_class",function(){var Z=this;return Z.$$meta}),n(Y,"$to_s",function(){var Z=this;return Z==!0?"true":"false"}),n(Y,"$dup",i),n(Y,"$clone",function(Z){var be=this;return Z=s(Z),Z.$$smap.freeze,be},-1),n(Y,"$method_missing",function ve(Z,be){var ue=ve.$$p||L,Ee,O,Ce=this;ve.$$p=null,Ee=o(arguments,1),O=Ee;var $e=Ce.$$class.$$prototype[e.jsid(Z)];return f(typeof $e<"u"&&!$e.$$stub)||h(Ce,d(Ce,"method_missing",ve,!1,!0),"method_missing",[Z].concat(A(O)),ue),e.send(Ce,$e,O,ue)},-2),n(Y,"$respond_to_missing?",function(Z,be){var ue=this,Ee=ue.$$class.$$prototype[e.jsid(Z)];return typeof Ee<"u"&&!Ee.$$stub},-2),z(Y,"eql?","=="),z(Y,"equal?","=="),z(Y,"inspect","to_s"),z(Y,"object_id","__id__")}("::",Boolean),t("::",ne("Boolean"),"TrueClass"),t("::",ne("Boolean"),"FalseClass"),L};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,o=e.Kernel,f=e.def,h=e.nil,d=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(A){var z=r(A,"Comparable"),L=h;function ne(F){return e.is_a(F,e.Integer)?F:n(F,0)?1:i(F,0)?-1:0}function ge(F,Y){var pe;s(h,L=Y)||s(!0,L)||s(!1,L)||s(d("Integer"),L)||s(d("Float"),L)?pe=Y.$inspect():pe=Y.$$class,o.$raise(d("ArgumentError"),"comparison of "+F.$class()+" with "+pe+" failed")}function Q(F,Y){var pe=F["$<=>"](Y);return t(pe)||ge(F,Y),ne(pe)}return f(z,"$==",function(Y){var pe=this,se=h;return t(pe["$equal?"](Y))?!0:pe["$<=>"]==e.Kernel["$<=>"]?!1:pe.$$comparable?(pe.$$comparable=!1,!1):t(se=pe["$<=>"](Y))?ne(se)==0:!1}),f(z,"$>",function(Y){var pe=this;return Q(pe,Y)>0}),f(z,"$>=",function(Y){var pe=this;return Q(pe,Y)>=0}),f(z,"$<",function(Y){var pe=this;return Q(pe,Y)<0}),f(z,"$<=",function(Y){var pe=this;return Q(pe,Y)<=0}),f(z,"$between?",function(Y,pe){var se=this;return!(i(se,Y)||n(se,pe))}),f(z,"$clamp",function(Y,pe){var se=this;pe==null&&(pe=h);var ve,Z;if(pe===h&&(e.is_a(Y,e.Range)||o.$raise(d("TypeError"),"wrong argument type "+Y.$class()+" (expected Range)"),Z=Y.excl,pe=Y.end,Y=Y.begin,pe!==h&&Z&&o.$raise(d("ArgumentError"),"cannot clamp with an exclusive range")),Y!==h&&pe!==h&&Q(Y,pe)>0&&o.$raise(d("ArgumentError"),"min argument must be smaller than max argument"),Y!==h){if(ve=Q(se,Y),ve==0)return se;if(ve<0)return Y}return pe!==h&&(ve=Q(se,pe),ve>0)?pe:se},-2)}("::")};Opal.modules["corelib/regexp"]=function(e){var t=e.coerce_to,r=e.prop,n=e.freeze,i=e.klass,s=e.const_set,o=e.send2,f=e.find_super,h=e.def,d=e.truthy,A=e.gvars,z=e.slice,L=e.Kernel,ne=e.Opal,ge=e.alias,Q=e.send,F=e.hash2,Y=e.rb_plus,pe=e.ensure_kwargs,se=e.rb_ge,ve=e.to_a,Z=e.eqeqeq,be=e.rb_minus,ue=e.return_ivar,Ee=[],O=e.nil,Ce=e.$$$;return e.add_stubs("nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,frozen?,uniq,map,scan,source,to_proc,transform_values,group_by,each_with_index,+,last,=~,==,attr_reader,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a"),i("::",Ce("StandardError"),"RegexpError"),function($e,w,Ae){var j=i($e,w,"Regexp"),de=[j].concat(Ae),V=e.$r(de);return s(j,"IGNORECASE",1),s(j,"EXTENDED",2),s(j,"MULTILINE",4),e.prop(j.$$prototype,"$$is_regexp",!0),function(Fe,ce){var U=[Fe].concat(ce),x=e.$r(U);return h(Fe,"$allocate",function $(){var l=$.$$p||O,c=this,p=O;return $.$$p=null,p=o(c,f(c,"allocate",$,!1,!0),"allocate",[],l),p.uninitialized=!0,p}),h(Fe,"$escape",function(l){return e.escape_regexp(l)}),h(Fe,"$last_match",function(l){return A["~"]==null&&(A["~"]=O),l==null&&(l=O),d(l["$nil?"]())?A["~"]:d(A["~"])?A["~"]["$[]"](l):O},-1),h(Fe,"$union",function(l){var c,p,_=this;c=z(arguments),p=c;var S,C,ee,Le,nt;if(p.length==0)return/(?!)/;if(p.length==1&&p[0].$$is_regexp)return p[0];S=p[0].$$is_array,p.length>1&&S&&L.$raise(Ce("TypeError"),"no implicit conversion of Array into String"),S&&(p=p[0]),Le=void 0,C=[];for(var dt=0;dt<p.length;dt++)ee=p[dt],ee.$$is_string?C.push(_.$escape(ee)):ee.$$is_regexp?(nt=ee.$options(),Le!=null&&Le!=nt&&L.$raise(Ce("TypeError"),"All expressions must use the same options"),Le=nt,C.push("("+ee.source+")")):C.push(_.$escape(ee.$to_str()));return _.$new(C.$join("|"),Le)},-1),h(Fe,"$new",function(l,c){if(l.$$is_regexp)return new RegExp(l);if(l=ne["$coerce_to!"](l,Ce("String"),"to_str"),l.charAt(l.length-1)==="\\"&&l.charAt(l.length-2)!=="\\"&&L.$raise(Ce("RegexpError"),"too short escape sequence: /"+l+"/"),l=l.replace("\\A","^").replace("\\z","$"),c===void 0||c["$!"]())return new RegExp(l);if(c.$$is_number){var p="";x("IGNORECASE")&c&&(p+="i"),x("MULTILINE")&c&&(p+="m"),c=p}else c="i";return new RegExp(l,c)},-2),ge(Fe,"compile","new"),ge(Fe,"quote","escape")}(e.get_singleton_class(j),de),h(j,"$==",function(ce){var U=this;return ce instanceof RegExp&&U.toString()===ce.toString()}),h(j,"$===",function(ce){var U=this;return U.$match(ne["$coerce_to?"](ce,Ce("String"),"to_str"))!==O}),h(j,"$=~",function(ce){var U=this,x=O;return A["~"]==null&&(A["~"]=O),d(x=U.$match(ce))?A["~"].$begin(0):x}),h(j,"$freeze",function(){var ce=this;return d(ce["$frozen?"]())?ce:(ce.hasOwnProperty("$$g")||r(ce,"$$g",null),ce.hasOwnProperty("$$gm")||r(ce,"$$gm",null),n(ce))}),h(j,"$inspect",function(){var ce=this,U=/^\/(.*)\/([^\/]*)$/,x=ce.toString(),$=U.exec(x);if($){for(var l=$[1],c=$[2],p=l.split(""),_=p.length,S=!1,C="",ee=0;ee<_;ee++){var Le=p[ee];!S&&Le=="/"&&(C=C.concat("\\")),C=C.concat(Le),Le=="\\"?S?S=!1:S=!0:S=!1}return"/"+C+"/"+c}else return x}),h(j,"$match",function Fe(ce,U){var x=Fe.$$p||O,$=this;if(A["~"]==null&&(A["~"]=O),Fe.$$p=null,$.uninitialized&&L.$raise(Ce("TypeError"),"uninitialized Regexp"),U===void 0){if(ce===O)return A["~"]=O;var l=$.exec(t(ce,Ce("String"),"to_str"));return l?(A["~"]=Ce("MatchData").$new($,l),x===O?A["~"]:e.yield1(x,A["~"])):A["~"]=O}if(U=t(U,Ce("Integer"),"to_int"),ce===O||(ce=t(ce,Ce("String"),"to_str"),U<0&&(U+=ce.length,U<0)))return A["~"]=O;for(var c,p=e.global_regexp($);;){if(c=p.exec(ce),c===null)return A["~"]=O;if(c.index>=U)return A["~"]=Ce("MatchData").$new(p,c),x===O?A["~"]:e.yield1(x,A["~"]);p.lastIndex=c.index+1}},-2),h(j,"$match?",function(ce,U){var x=this;if(x.uninitialized&&L.$raise(Ce("TypeError"),"uninitialized Regexp"),U===void 0)return ce===O?!1:x.test(t(ce,Ce("String"),"to_str"));if(U=t(U,Ce("Integer"),"to_int"),ce===O||(ce=t(ce,Ce("String"),"to_str"),U<0&&(U+=ce.length,U<0)))return!1;var $,l=e.global_regexp(x);return $=l.exec(ce),!($===null||$.index<U)},-2),h(j,"$names",function(){var ce=this;return Q(ce.$source().$scan(/\(?<(\w+)>/,F(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),h(j,"$named_captures",function(){var ce=this;return Q(Q(Q(ce.$source().$scan(/\(?<(\w+)>/,F(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$each_with_index(),"group_by",[],"first".$to_proc()),"transform_values",[],function(x){return x==null&&(x=O),Q(x,"map",[],function(l){return l==null&&(l=O),Y(l.$last(),1)})})}),h(j,"$~",function(){var ce=this;return A._==null&&(A._=O),ce["$=~"](A._)}),h(j,"$source",function(){var ce=this;return ce.source}),h(j,"$options",function(){var ce=this;ce.uninitialized&&L.$raise(Ce("TypeError"),"uninitialized Regexp");var U=0;return ce.multiline&&(U|=V("MULTILINE")),ce.ignoreCase&&(U|=V("IGNORECASE")),U}),h(j,"$casefold?",function(){var ce=this;return ce.ignoreCase}),ge(j,"eql?","=="),ge(j,"to_s","source")}("::",RegExp,Ee),function($e,w,Ae){var j=i($e,w,"MatchData"),de=[j].concat(Ae),V=e.$r(de),Fe=j.$$prototype;return Fe.matches=O,j.$attr_reader("post_match","pre_match","regexp","string"),h(j,"$initialize",function(U,x,$){var l,c=this;$=pe($),l=$.$$smap.no_matchdata,l==null&&(l=!1),d(l)||(A["~"]=c),c.regexp=U,c.begin=x.index,c.string=x.input,c.pre_match=x.input.slice(0,x.index),c.post_match=x.input.slice(x.index+x[0].length),c.matches=[];for(var p=0,_=x.length;p<_;p++){var S=x[p];S==null?c.matches.push(O):c.matches.push(S)}},-3),h(j,"$match",function(U){var x=this,$=O;return d($=x["$[]"](U))?$:d(U["$is_a?"](V("Integer")))&&d(se(U,x.$length()))?L.$raise(Ce("IndexError"),"index "+U+" out of matches"):O}),h(j,"$match_length",function(U){var x,$=this;return x=$.$match(U),x===O||x==null?O:x.$length()}),h(j,"$[]",function(U){var x,$,l=this;return x=z(arguments),$=x,$[0].$$is_string?(l.$regexp().$names()["$include?"]($["$[]"](0))["$!"]()&&L.$raise(Ce("IndexError"),"undefined group name reference: "+$["$[]"](0)),l.$named_captures()["$[]"]($["$[]"](0))):Q(l.matches,"[]",ve($))},-1),h(j,"$offset",function(U){var x=this;return U!==0&&L.$raise(Ce("ArgumentError"),"MatchData#offset only supports 0th element"),[x.begin,x.begin+x.matches[U].length]}),h(j,"$==",function(U){var x=this,$=O,l=O,c=O,p=O;return Z(Ce("MatchData"),U)?d($=d(l=d(c=d(p=x.string==U.string)?x.regexp.toString()==U.regexp.toString():p)?x.pre_match==U.pre_match:c)?x.post_match==U.post_match:l)?x.begin==U.begin:$:!1}),h(j,"$begin",function(U){var x=this;return U!==0&&L.$raise(Ce("ArgumentError"),"MatchData#begin only supports 0th element"),x.begin}),h(j,"$end",function(U){var x=this;return U!==0&&L.$raise(Ce("ArgumentError"),"MatchData#end only supports 0th element"),x.begin+x.matches[U].length}),h(j,"$captures",function(){var U=this;return U.matches.slice(1)}),h(j,"$named_captures",function(){var U=this,x=O;return x=U.$captures(),Q(U.$regexp().$named_captures(),"transform_values",[],function(l){return l==null&&(l=O),x["$[]"](be(l.$last(),1))})}),h(j,"$names",function(){var U=this;return U.$regexp().$names()}),h(j,"$inspect",function(){var U=this,x="#<MatchData "+U.matches[0].$inspect();if(U.$regexp().$names()["$empty?"]())for(var $=1,l=U.matches.length;$<l;$++)x+=" "+$+":"+U.matches[$].$inspect();else Q(U.$named_captures(),"each",[],function(p,_){return p==null&&(p=O),_==null&&(_=O),x+=" "+p+":"+_.$inspect()});return x+">"}),h(j,"$length",function(){var U=this;return U.matches.length}),h(j,"$to_a",ue("matches")),h(j,"$to_s",function(){var U=this;return U.matches[0]}),h(j,"$values_at",function(U){var x,$,l=this;x=z(arguments),$=x;var c,p,_,S=[];for(c=0;c<$.length;c++){if($[c].$$is_range&&(p=$[c].$to_a(),p.unshift(c,1),Array.prototype.splice.apply($,p)),_=ne["$coerce_to!"]($[c],Ce("Integer"),"to_int"),_<0&&(_+=l.matches.length,_<0)){S.push(O);continue}S.push(l.matches[_])}return S},-1),ge(j,"eql?","=="),ge(j,"size","length")}(Ee[0],null,Ee)};Opal.modules["corelib/string"]=function(e){var t=e.coerce_to,r=e.respond_to,n=e.global_multiline_regexp,i=e.prop,s=e.klass,o=e.def,f=e.Opal,h=e.defs,d=e.slice,A=e.send,z=e.to_a,L=e.extract_kwargs,ne=e.ensure_kwargs,ge=e.eqeqeq,Q=e.Kernel,F=e.truthy,Y=e.gvars,pe=e.rb_divide,se=e.rb_plus,ve=e.eqeq,Z=e.hash2,be=e.alias,ue=e.const_set,Ee=e.top,O=[],Ce=e.$r(O),$e=e.nil,w=e.$$$;return e.add_stubs("require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>,==,=~,new,force_encoding,casecmp,empty?,ljust,ceil,/,+,rjust,floor,coerce_to!,nil?,class,copy_singleton_methods,initialize_clone,initialize_dup,enum_for,chomp,[],to_i,length,each_line,to_proc,to_a,match,match?,captures,proc,succ,escape,include?,upcase,unicode_normalize,dup,__id__,next,intern,pristine"),Ee.$require("corelib/comparable"),Ee.$require("corelib/regexp"),function(Ae,j,de){var V=s(Ae,j,"String"),Fe=[V].concat(de),ce=e.$r(Fe);V.$include(w("Comparable")),e.prop(V.$$prototype,"$$is_string",!0),o(V,"$__id__",function(){var $=this;return $.toString()}),h(V,"$try_convert",function($){return f["$coerce_to?"]($,w("String"),"to_str")}),h(V,"$new",function($){var l,c,p=this;l=d(arguments),c=l;var _=c[0]||"",S=c[c.length-1];return _=t(_,w("String"),"to_str"),S&&S.$$is_hash&&S.$$smap.encoding&&(_=_.$force_encoding(S.$$smap.encoding)),_=new p.$$constructor(_),_.$initialize.$$pristine||A(_,"initialize",z(c)),_},-1),o(V,"$initialize",function($,l){var c,p;return c=d(arguments),p=L(c),p=ne(p),c.length>0&&c.shift(),p.$$smap.encoding,p.$$smap.capacity,$e},-1),o(V,"$%",function($){var l=this;return ge(w("Array"),$)?A(l,"format",[l].concat(z($))):l.$format(l,$)}),o(V,"$*",function($){var l=this;if($=t($,w("Integer"),"to_int"),$<0&&Q.$raise(w("ArgumentError"),"negative argument"),$===0)return"";var c="",p=l.toString();for(p.length*$>=1<<28&&Q.$raise(w("RangeError"),"multiply count must not overflow maximum string size");($&1)===1&&(c+=p),$>>>=1,$!==0;)p+=p;return c}),o(V,"$+",function($){var l=this;if($=t($,w("String"),"to_str"),$==""&&l.$$class===e.String)return l;if(l==""&&$.$$class===e.String)return $;var c=l+$;return l.encoding===c.encoding&&$.encoding===c.encoding||l.encoding.name==="UTF-8"||$.encoding.name==="UTF-8"?c:e.enc(c,l.encoding)}),o(V,"$<=>",function($){var l=this;if(F($["$respond_to?"]("to_str")))return $=$.$to_str().$to_s(),l>$?1:l<$?-1:0;var c=$["$<=>"](l);return c===$e?$e:c>0?-1:c<0?1:0}),o(V,"$==",function($){var l=this;return $.$$is_string?l.toString()===$.toString():r($,"$to_str")?$["$=="](l):!1}),o(V,"$=~",function($){var l=this;return $.$$is_string&&Q.$raise(w("TypeError"),"type mismatch: String given"),$["$=~"](l)}),o(V,"$[]",function($,l){var c=this,p=c.length,_,S;if($.$$is_range)return _=$.excl,S=$,l=$.end===$e?-1:t($.end,w("Integer"),"to_int"),$=$.begin===$e?0:t($.begin,w("Integer"),"to_int"),Math.abs($)>p?$e:($<0&&($+=p),l<0&&(l+=p),(!_||S.end===$e)&&(l+=1),l=l-$,l<0&&(l=0),c.substr($,l));if($.$$is_string)return l!=null&&Q.$raise(w("TypeError")),c.indexOf($)!==-1?$:$e;if($.$$is_regexp){var C=c.match($);return C===null?(Y["~"]=$e,$e):(Y["~"]=w("MatchData").$new($,C),l==null?C[0]:(l=t(l,w("Integer"),"to_int"),l<0&&-l<C.length?C[l+=C.length]:l>=0&&l<C.length?C[l]:$e))}return $=t($,w("Integer"),"to_int"),$<0&&($+=p),l==null?$>=p||$<0?$e:c.substr($,1):(l=t(l,w("Integer"),"to_int"),l<0||$>p||$<0?$e:c.substr($,l))},-2),o(V,"$b",function(){var $=this;return new String($).$force_encoding("binary")}),o(V,"$capitalize",function(){var $=this;return $.charAt(0).toUpperCase()+$.substr(1).toLowerCase()}),o(V,"$casecmp",function($){var l=this;if(!F($["$respond_to?"]("to_str")))return $e;$=t($,w("String"),"to_str").$to_s();var c=/^[\x00-\x7F]*$/;return c.test(l)&&c.test($)&&(l=l.toLowerCase(),$=$.toLowerCase()),l["$<=>"]($)}),o(V,"$casecmp?",function($){var l=this,c=l.$casecmp($);return c===$e?$e:c===0}),o(V,"$center",function($,l){var c=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),F(l["$empty?"]())&&Q.$raise(w("ArgumentError"),"zero width padding"),F($<=c.length))return c;var p=c.$ljust(pe(se($,c.length),2).$ceil(),l),_=c.$rjust(pe(se($,c.length),2).$floor(),l);return _+p.slice(c.length)},-2),o(V,"$chomp",function($){var l=this;if(Y["/"]==null&&(Y["/"]=$e),$==null&&($=Y["/"]),F($===$e||l.length===0))return l;$=f["$coerce_to!"]($,w("String"),"to_str").$to_s();var c;if($===`
408
+ `)c=l.replace(/\r?\n?$/,"");else if($==="")c=l.replace(/(\r?\n)+$/,"");else if(l.length>=$.length){var p=l.substr(l.length-$.length,$.length);p===$&&(c=l.substr(0,l.length-$.length))}return c??l},-1),o(V,"$chop",function(){var $=this,l=$.length,c;return l<=1?c="":$.charAt(l-1)===`
409
+ `&&$.charAt(l-2)==="\r"?c=$.substr(0,l-2):c=$.substr(0,l-1),c}),o(V,"$chr",function(){var $=this;return $.charAt(0)}),o(V,"$clone",function($){var l,c=this,p=$e;return $=ne($),l=$.$$smap.freeze,l==null&&(l=$e),F(l["$nil?"]())||ve(l,!0)||ve(l,!1)||c.$raise(ce("ArgumentError"),"unexpected value for freeze: "+l.$class()),p=new String(c),p.$copy_singleton_methods(c),p.$initialize_clone(c,Z(["freeze"],{freeze:l})),ve(l,!0)?p.$$frozen||(p.$$frozen=!0):F(l["$nil?"]())&&c.$$frozen&&(p.$$frozen=!0),p},-1),o(V,"$dup",function(){var $=this,l=$e;return l=new String($),l.$initialize_dup($),l}),o(V,"$count",function($){var l,c,p=this;l=d(arguments),c=l,c.length===0&&Q.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=U(c);return _===null?0:p.length-p.replace(new RegExp(_,"g"),"").length},-1),o(V,"$delete",function($){var l,c,p=this;l=d(arguments),c=l,c.length===0&&Q.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=U(c);return _===null?p:p.replace(new RegExp(_,"g"),"")},-1),o(V,"$delete_prefix",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.slice(0,$.length)===$?l.slice($.length):l}),o(V,"$delete_suffix",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.slice(l.length-$.length)===$?l.slice(0,l.length-$.length):l}),o(V,"$downcase",function(){var $=this;return $.toLowerCase()}),o(V,"$each_line",function x($,l){var c=x.$$p||$e,p,_,S,C,ee=this;if(Y["/"]==null&&(Y["/"]=$e),x.$$p=null,p=d(arguments),_=L(p),_=ne(_),p.length>0&&(S=p.shift()),S==null&&(S=Y["/"]),C=_.$$smap.chomp,C==null&&(C=!1),c===$e)return ee.$enum_for("each_line",S,Z(["chomp"],{chomp:C}));if(S===$e)return e.yield1(c,ee),ee;S=t(S,w("String"),"to_str");var Le,nt,dt,lt,xt,bt,yt,gt;if(S.length===0){for(Le=ee.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),nt=0,dt=Le.length;nt<dt;nt+=2)(Le[nt]||Le[nt+1])&&(gt=(Le[nt]||"")+(Le[nt+1]||""),C&&(gt=gt.$chomp(`
410
+ `)),e.yield1(c,gt));return ee}for(xt=ee.$chomp(S),bt=ee.length!=xt.length,yt=xt.split(S),nt=0,lt=yt.length;nt<lt;nt++)gt=yt[nt],(nt<lt-1||bt)&&(gt+=S),C&&(gt=gt.$chomp(S)),e.yield1(c,gt);return ee},-1),o(V,"$empty?",function(){var $=this;return $.length===0}),o(V,"$end_with?",function($){var l,c,p=this;l=d(arguments),c=l;for(var _=0,S=c.length;_<S;_++){var C=t(c[_],w("String"),"to_str").$to_s();if(p.length>=C.length&&p.substr(p.length-C.length,C.length)==C)return!0}return!1},-1),o(V,"$gsub",function x($,l){var c=x.$$p||$e,p=this;if(x.$$p=null,l===void 0&&c===$e)return p.$enum_for("gsub",$);var _="",S=$e,C=0,ee,Le;$.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var nt;;){if(ee=$.exec(p),ee===null){Y["~"]=$e,_+=p.slice(C);break}S=w("MatchData").$new($,ee),l===void 0?(nt=$.lastIndex,Le=c(ee[0]),$.lastIndex=nt):l.$$is_hash?Le=l["$[]"](ee[0]).$to_s():(l.$$is_string||(l=t(l,w("String"),"to_str")),Le=l.replace(/([\\]+)([0-9+&`'])/g,function(dt,lt,xt){if(lt.length%2===0)return dt;switch(xt){case"+":for(var bt=ee.length-1;bt>0;bt--)if(ee[bt]!==void 0)return lt.slice(1)+ee[bt];return"";case"&":return lt.slice(1)+ee[0];case"`":return lt.slice(1)+p.slice(0,ee.index);case"'":return lt.slice(1)+p.slice(ee.index+ee[0].length);default:return lt.slice(1)+(ee[xt]||"")}}).replace(/\\\\/g,"\\")),$.lastIndex===ee.index?(_+=p.slice(C,ee.index)+Le+(p[ee.index]||""),$.lastIndex+=1):_+=p.slice(C,ee.index)+Le,C=$.lastIndex}return Y["~"]=S,_},-2),o(V,"$hash",function(){var $=this;return $.toString()}),o(V,"$hex",function(){var $=this;return $.$to_i(16)}),o(V,"$include?",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.indexOf($)!==-1}),o(V,"$index",function($,l){var c=this,p,_,S;if(l===void 0)l=0;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=c.length,l<0))return $e;if($.$$is_regexp)for(S=n($);;){if(_=S.exec(c),_===null){Y["~"]=$e,p=-1;break}if(_.index>=l){Y["~"]=w("MatchData").$new(S,_),p=_.index;break}S.lastIndex=_.index+1}else $=t($,w("String"),"to_str"),$.length===0&&l>c.length?p=-1:p=c.indexOf($,l);return p===-1?$e:p},-2),o(V,"$inspect",function(){var $=this,l=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\x07":"\\a","\x1B":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},p=$.replace(l,function(_){return c[_]?c[_]:(_=_.charCodeAt(0),_<=255&&($.encoding["$binary?"]()||$.internal_encoding["$binary?"]())?"\\x"+("00"+_.toString(16).toUpperCase()).slice(-2):"\\u"+("0000"+_.toString(16).toUpperCase()).slice(-4))});return'"'+p.replace(/\#[\$\@\{]/g,"\\$&")+'"'}),o(V,"$intern",function(){var $=this;return $.toString()}),o(V,"$length",function(){var $=this;return $.length}),be(V,"size","length"),o(V,"$lines",function x($,l){var c=x.$$p||$e,p,_,S,C,ee=this,Le=$e;return Y["/"]==null&&(Y["/"]=$e),x.$$p=null,p=d(arguments),_=L(p),_=ne(_),p.length>0&&(S=p.shift()),S==null&&(S=Y["/"]),C=_.$$smap.chomp,C==null&&(C=!1),Le=A(ee,"each_line",[S,Z(["chomp"],{chomp:C})],c.$to_proc()),F(c)?ee:Le.$to_a()},-1),o(V,"$ljust",function($,l){var c=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),F(l["$empty?"]())&&Q.$raise(w("ArgumentError"),"zero width padding"),F($<=c.length))return c;var p=-1,_="";for($-=c.length;++p<$;)_+=l;return c+_.slice(0,$)},-2),o(V,"$lstrip",function(){var $=this;return $.replace(/^[\u0000\s]*/,"")}),o(V,"$ascii_only?",function(){var $=this;return $.encoding.ascii?/^[\x00-\x7F]*$/.test($):!1}),o(V,"$match",function x($,l){var c=x.$$p||$e,p=this;return x.$$p=null,(ge(ce("String"),$)||F($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),ge(w("Regexp"),$)||Q.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),A($,"match",[p,l],c.$to_proc())},-2),o(V,"$match?",function($,l){var c=this;return(ge(ce("String"),$)||F($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),ge(w("Regexp"),$)||Q.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),$["$match?"](c,l)},-2),o(V,"$next",function(){var $=this,l=$.length;if(l===0)return"";for(var c=$,p=$.search(/[a-zA-Z0-9]/),_=!1,S;l--;){if(S=$.charCodeAt(l),S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122)switch(S){case 57:_=!0,S=48;break;case 90:_=!0,S=65;break;case 122:_=!0,S=97;break;default:_=!1,S+=1}else p===-1?S===255?(_=!0,S=0):(_=!1,S+=1):_=!0;if(c=c.slice(0,l)+String.fromCharCode(S)+c.slice(l+1),_&&(l===0||l===p)){switch(S){case 65:break;case 97:break;default:S+=1}l===0?c=String.fromCharCode(S)+c:c=c.slice(0,l)+String.fromCharCode(S)+c.slice(l),_=!1}if(!_)break}return c}),o(V,"$oct",function(){var $=this,l,c=$,p=8;return/^\s*_/.test(c)?0:(c=c.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(_,S,C,ee){switch(ee.charAt(0)){case"+":case"-":return _;case"0":if(ee.charAt(1)==="x"&&C==="0x")return _}switch(C){case"0b":p=2;break;case"0":case"0o":p=8;break;case"0d":p=10;break;case"0x":p=16;break}return S+ee}),l=parseInt(c.replace(/_(?!_)/g,""),p),isNaN(l)?0:l)}),o(V,"$ord",function(){var $=this;return typeof $.codePointAt=="function"?$.codePointAt(0):$.charCodeAt(0)}),o(V,"$partition",function($){var l=this,c,p;return $.$$is_regexp?(p=$.exec(l),p===null?c=-1:(w("MatchData").$new($,p),$=p[0],c=p.index)):($=t($,w("String"),"to_str"),c=l.indexOf($)),c===-1?[l,"",""]:[l.slice(0,c),l.slice(c,c+$.length),l.slice(c+$.length)]}),o(V,"$reverse",function(){var $=this;return $.split("").reverse().join("")}),o(V,"$rindex",function($,l){var c=this,p,_,S,C;if(l===void 0)l=c.length;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=c.length,l<0))return $e;if($.$$is_regexp){for(_=null,S=n($);C=S.exec(c),!(C===null||C.index>l);)_=C,S.lastIndex=_.index+1;_===null?(Y["~"]=$e,p=-1):(w("MatchData").$new(S,_),p=_.index)}else $=t($,w("String"),"to_str"),p=c.lastIndexOf($,l);return p===-1?$e:p},-2),o(V,"$rjust",function($,l){var c=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),F(l["$empty?"]())&&Q.$raise(w("ArgumentError"),"zero width padding"),F($<=c.length))return c;var p=Math.floor($-c.length),_=Math.floor(p/l.length),S=Array(_+1).join(l),C=p-S.length;return S+l.slice(0,C)+c},-2),o(V,"$rpartition",function($){var l=this,c,p,_,S;if($.$$is_regexp){for(p=null,_=n($);S=_.exec(l),S!==null;)p=S,_.lastIndex=p.index+1;p===null?c=-1:(w("MatchData").$new(_,p),$=p[0],c=p.index)}else $=t($,w("String"),"to_str"),c=l.lastIndexOf($);return c===-1?["","",l]:[l.slice(0,c),l.slice(c,c+$.length),l.slice(c+$.length)]}),o(V,"$rstrip",function(){var $=this;return $.replace(/[\s\u0000]*$/,"")}),o(V,"$scan",function x($,l){var c=x.$$p||$e,p,_=this;x.$$p=null,l=ne(l),p=l.$$smap.no_matchdata,p==null&&(p=!1);var S=[],C=$e,ee;for($.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(ee=$.exec(_))!=null;)C=w("MatchData").$new($,ee,Z(["no_matchdata"],{no_matchdata:p})),c===$e?ee.length==1?S.push(ee[0]):S.push(C.$captures()):ee.length==1?e.yield1(c,ee[0]):e.yield1(c,C.$captures()),$.lastIndex===ee.index&&($.lastIndex+=1);return p||(Y["~"]=C),c!==$e?_:S},-2),o(V,"$singleton_class",function(){var $=this;return e.get_singleton_class($)}),o(V,"$split",function($,l){var c=this,p=$e;if(Y[";"]==null&&(Y[";"]=$e),c.length===0)return[];if(l===void 0)l=0;else if(l=f["$coerce_to!"](l,w("Integer"),"to_int"),l===1)return[c];($===void 0||$===$e)&&($=F(p=Y[";"])?p:" ");var _=[],S=c.toString(),C=0,ee,Le,nt;if($.$$is_regexp?$=n($):($=t($,w("String"),"to_str").$to_s(),$===" "?($=/\s+/gm,S=S.replace(/^\s+/,"")):$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),_=S.split($),_.length===1&&_[0]===S)return[_[0]];for(;(Le=_.indexOf(void 0))!==-1;)_.splice(Le,1);if(l===0){for(;_[_.length-1]==="";)_.length-=1;return _}if(ee=$.exec(S),l<0){if(ee!==null&&ee[0]===""&&$.source.indexOf("(?=")===-1)for(Le=0,nt=ee.length;Le<nt;Le++)_.push("");return _}if(ee!==null&&ee[0]==="")return _.splice(l-1,_.length-1,_.slice(l-1).join("")),_;if(l>=_.length)return _;for(Le=0;ee!==null&&(Le++,C=$.lastIndex,Le+1!==l);)ee=$.exec(S);return _.splice(l-1,_.length-1,S.slice(C)),_},-1),o(V,"$squeeze",function($){var l,c,p=this;if(l=d(arguments),c=l,c.length===0)return p.replace(/(.)\1+/g,"$1");var _=U(c);return _===null?p:p.replace(new RegExp("("+_+")\\1+","g"),"$1")},-1),o(V,"$start_with?",function($){var l,c,p=this;l=d(arguments),c=l;for(var _=0,S=c.length;_<S;_++)if(c[_].$$is_regexp){var C=c[_],ee=C.exec(p);if(ee!=null&&ee.index===0)return Y["~"]=w("MatchData").$new(C,ee),!0;Y["~"]=$e}else{var Le=t(c[_],w("String"),"to_str").$to_s();if(p.indexOf(Le)===0)return!0}return!1},-1),o(V,"$strip",function(){var $=this;return $.replace(/^[\s\u0000]*|[\s\u0000]*$/g,"")}),o(V,"$sub",function x($,l){var c=x.$$p||$e,p=this;x.$$p=null,$.$$is_regexp||($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var _,S=$.exec(p);return S===null?(Y["~"]=$e,_=p.toString()):(w("MatchData").$new($,S),l===void 0?(c===$e&&Q.$raise(w("ArgumentError"),"wrong number of arguments (1 for 2)"),_=p.slice(0,S.index)+c(S[0])+p.slice(S.index+S[0].length)):l.$$is_hash?_=p.slice(0,S.index)+l["$[]"](S[0]).$to_s()+p.slice(S.index+S[0].length):(l=t(l,w("String"),"to_str"),l=l.replace(/([\\]+)([0-9+&`'])/g,function(C,ee,Le){if(ee.length%2===0)return C;switch(Le){case"+":for(var nt=S.length-1;nt>0;nt--)if(S[nt]!==void 0)return ee.slice(1)+S[nt];return"";case"&":return ee.slice(1)+S[0];case"`":return ee.slice(1)+p.slice(0,S.index);case"'":return ee.slice(1)+p.slice(S.index+S[0].length);default:return ee.slice(1)+(S[Le]||"")}}).replace(/\\\\/g,"\\"),_=p.slice(0,S.index)+l+p.slice(S.index+S[0].length))),_},-2),o(V,"$sum",function($){var l=this;$==null&&($=16),$=t($,w("Integer"),"to_int");for(var c=0,p=l.length,_=0;_<p;_++)c+=l.charCodeAt(_);return $<=0?c:c&Math.pow(2,$)-1},-1),o(V,"$swapcase",function(){var $=this,l=$.replace(/([a-z]+)|([A-Z]+)/g,function(c,p,_){return p?c.toUpperCase():c.toLowerCase()});return l}),o(V,"$to_f",function(){var $=this;if($.charAt(0)==="_")return 0;var l=parseFloat($.replace(/_/g,""));return isNaN(l)||l==1/0||l==-1/0?0:l}),o(V,"$to_i",function($){var l=this;$==null&&($=10);var c,p=l.toLowerCase(),_=t($,w("Integer"),"to_int");return(_===1||_<0||_>36)&&Q.$raise(w("ArgumentError"),"invalid radix "+_),/^\s*_/.test(p)?0:(p=p.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(S,C,ee,Le){switch(Le.charAt(0)){case"+":case"-":return S;case"0":if(Le.charAt(1)==="x"&&ee==="0x"&&(_===0||_===16))return S}switch(ee){case"0b":if(_===0||_===2)return _=2,C+Le;break;case"0":case"0o":if(_===0||_===8)return _=8,C+Le;break;case"0d":if(_===0||_===10)return _=10,C+Le;break;case"0x":if(_===0||_===16)return _=16,C+Le;break}return S}),c=parseInt(p.replace(/_(?!_)/g,""),_),isNaN(c)?0:c)},-1),o(V,"$to_proc",function x(){x.$$p;var $=this,l=$e,c=$e,p=$e;return x.$$p=null,l=$.valueOf(),c=e.jsid(l),p=A(Q,"proc",[],function _(S){var C=_.$$p||$e,ee,Le;_.$$p=null,ee=d(arguments),Le=ee,Le.length===0&&Q.$raise(w("ArgumentError"),"no receiver given");var nt=Le[0];nt==null&&(nt=$e);var dt=nt[c];return dt?Le=Le.slice(1):(dt=nt.$method_missing,Le[0]=l),typeof C=="function"&&(dt.$$p=C),Le.length===0?dt.call(nt):dt.apply(nt,Le)},-1),p.$$source_location=$e,p}),o(V,"$to_s",function(){var $=this;return $.toString()}),o(V,"$tr",function($,l){var c=this;if($=t($,w("String"),"to_str").$to_s(),l=t(l,w("String"),"to_str").$to_s(),$.length==0||$===l)return c;var p,_,S,C,ee,Le,nt,dt={},lt=$.split(""),xt=lt.length,bt=l.split(""),yt=bt.length,gt=!1,wt=null;lt[0]==="^"&&lt.length>1&&(gt=!0,lt.shift(),wt=bt[yt-1],xt-=1);var At=[],et=null;for(_=!1,p=0;p<xt;p++)if(C=lt[p],et==null)et=C,At.push(C);else if(C==="-")et==="-"?(At.push("-"),At.push("-")):p==xt-1?At.push("-"):_=!0;else if(_){for(ee=et.charCodeAt(0),Le=C.charCodeAt(0),ee>Le&&Q.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(ee)+"-"+String.fromCharCode(Le)+'" in string transliteration'),S=ee+1;S<Le;S++)At.push(String.fromCharCode(S));At.push(C),_=null,et=null}else At.push(C);if(lt=At,xt=lt.length,gt)for(p=0;p<xt;p++)dt[lt[p]]=!0;else{if(yt>0){var ze=[],je=null;for(_=!1,p=0;p<yt;p++)if(C=bt[p],je==null)je=C,ze.push(C);else if(C==="-")je==="-"?(ze.push("-"),ze.push("-")):p==yt-1?ze.push("-"):_=!0;else if(_){for(ee=je.charCodeAt(0),Le=C.charCodeAt(0),ee>Le&&Q.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(ee)+"-"+String.fromCharCode(Le)+'" in string transliteration'),S=ee+1;S<Le;S++)ze.push(String.fromCharCode(S));ze.push(C),_=null,je=null}else ze.push(C);bt=ze,yt=bt.length}var Ge=xt-yt;if(Ge>0){var y=yt>0?bt[yt-1]:"";for(p=0;p<Ge;p++)bt.push(y)}for(p=0;p<xt;p++)dt[lt[p]]=bt[p]}var I="";for(p=0,nt=c.length;p<nt;p++){C=c.charAt(p);var xe=dt[C];gt?I+=xe==null?wt:C:I+=xe??C}return I}),o(V,"$tr_s",function($,l){var c=this;if($=t($,w("String"),"to_str").$to_s(),l=t(l,w("String"),"to_str").$to_s(),$.length==0)return c;var p,_,S,C,ee,Le,nt,dt={},lt=$.split(""),xt=lt.length,bt=l.split(""),yt=bt.length,gt=!1,wt=null;lt[0]==="^"&&lt.length>1&&(gt=!0,lt.shift(),wt=bt[yt-1],xt-=1);var At=[],et=null;for(_=!1,p=0;p<xt;p++)if(C=lt[p],et==null)et=C,At.push(C);else if(C==="-")et==="-"?(At.push("-"),At.push("-")):p==xt-1?At.push("-"):_=!0;else if(_){for(ee=et.charCodeAt(0),Le=C.charCodeAt(0),ee>Le&&Q.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(ee)+"-"+String.fromCharCode(Le)+'" in string transliteration'),S=ee+1;S<Le;S++)At.push(String.fromCharCode(S));At.push(C),_=null,et=null}else At.push(C);if(lt=At,xt=lt.length,gt)for(p=0;p<xt;p++)dt[lt[p]]=!0;else{if(yt>0){var ze=[],je=null;for(_=!1,p=0;p<yt;p++)if(C=bt[p],et==null)et=C,ze.push(C);else if(C==="-")je==="-"?(ze.push("-"),ze.push("-")):p==yt-1?ze.push("-"):_=!0;else if(_){for(ee=et.charCodeAt(0),Le=C.charCodeAt(0),ee>Le&&Q.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(ee)+"-"+String.fromCharCode(Le)+'" in string transliteration'),S=ee+1;S<Le;S++)ze.push(String.fromCharCode(S));ze.push(C),_=null,et=null}else ze.push(C);bt=ze,yt=bt.length}var Ge=xt-yt;if(Ge>0){var y=yt>0?bt[yt-1]:"";for(p=0;p<Ge;p++)bt.push(y)}for(p=0;p<xt;p++)dt[lt[p]]=bt[p]}var I="",xe=null;for(p=0,nt=c.length;p<nt;p++){C=c.charAt(p);var Me=dt[C];gt?Me==null?xe==null&&(I+=wt,xe=!0):(I+=C,xe=null):Me!=null?(xe==null||xe!==Me)&&(I+=Me,xe=Me):(I+=C,xe=null)}return I}),o(V,"$upcase",function(){var $=this;return $.toUpperCase()}),o(V,"$upto",function x($,l){var c=x.$$p||$e,p=this;if(x.$$p=null,l==null&&(l=!1),c===$e)return p.$enum_for("upto",$,l);var _,S,C=p.toString();if($=t($,w("String"),"to_str"),C.length===1&&$.length===1)for(_=C.charCodeAt(0),S=$.charCodeAt(0);_<=S&&!(l&&_===S);)c(String.fromCharCode(_)),_+=1;else if(parseInt(C,10).toString()===C&&parseInt($,10).toString()===$)for(_=parseInt(C,10),S=parseInt($,10);_<=S&&!(l&&_===S);)c(_.toString()),_+=1;else for(;C.length<=$.length&&C<=$&&!(l&&C===$);)c(C),C=C.$succ();return p},-2);function U(x){function $(dt){var lt="",xt,bt=dt.length,yt,gt,wt,At,et;for(xt=0;xt<bt;xt++)if(yt=dt.charAt(xt),yt==="-"&&xt>0&&xt<bt-1&&!gt){for(wt=dt.charCodeAt(xt-1),At=dt.charCodeAt(xt+1),wt>At&&Q.$raise(w("ArgumentError"),'invalid range "'+wt+"-"+At+'" in string transliteration'),et=wt+1;et<At+1;et++)lt+=String.fromCharCode(et);gt=!0,xt++}else gt=yt==="\\",lt+=yt;return lt}function l(dt,lt){if(dt.length===0)return lt;var xt="",bt,yt=dt.length,gt;for(bt=0;bt<yt;bt++)gt=dt.charAt(bt),lt.indexOf(gt)!==-1&&(xt+=gt);return xt}var c,p,_,S,C,ee,Le="",nt="";for(c=0,p=x.length;c<p;c++)_=t(x[c],w("String"),"to_str"),S=_.charAt(0)==="^"&&_.length>1,_=$(S?_.slice(1):_),S?nt=l(nt,_):Le=l(Le,_);if(Le.length>0&&nt.length>0){for(ee="",c=0,p=Le.length;c<p;c++)C=Le.charAt(c),nt.indexOf(C)===-1&&(ee+=C);Le=ee,nt=""}return Le.length>0?"["+w("Regexp").$escape(Le)+"]":nt.length>0?"[^"+w("Regexp").$escape(nt)+"]":null}return o(V,"$instance_variables",function(){return[]}),h(V,"$_load",function($){var l,c,p=this;return l=d(arguments),c=l,A(p,"new",z(c))},-1),o(V,"$unicode_normalize",function($){var l=this;return $==null&&($="nfc"),F(["nfc","nfd","nfkc","nfkd"]["$include?"]($))||Q.$raise(w("ArgumentError"),"Invalid normalization form "+$),l.normalize($.$upcase())},-1),o(V,"$unicode_normalized?",function($){var l=this;return $==null&&($="nfc"),l.$unicode_normalize($)["$=="](l)},-1),o(V,"$unpack",function($){return Q.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),o(V,"$unpack1",function($){return Q.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")}),o(V,"$freeze",function(){var $=this;return typeof $=="string"||i($,"$$frozen",!0),$}),o(V,"$-@",function(){var $=this;return typeof $=="string"||$.$$frozen?$:$.encoding.name=="UTF-8"&&$.internal_encoding.name=="UTF-8"?$.toString():$.$dup().$freeze()}),o(V,"$frozen?",function(){var $=this;return typeof $=="string"||$.$$frozen===!0}),be(V,"+@","dup"),be(V,"===","=="),be(V,"byteslice","[]"),be(V,"eql?","=="),be(V,"equal?","==="),be(V,"object_id","__id__"),be(V,"slice","[]"),be(V,"succ","next"),be(V,"to_str","to_s"),be(V,"to_sym","intern"),f.$pristine(V,"initialize")}("::",String,O),ue(O[0],"Symbol",Ce("String"))};Opal.modules["corelib/enumerable"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,o=e.module,f=e.send,h=e.slice,d=e.to_a,A=e.Opal,z=e.thrower,L=e.def,ne=e.Kernel,ge=e.return_val,Q=e.rb_gt,F=e.rb_times,Y=e.rb_lt,pe=e.eqeq,se=e.rb_plus,ve=e.rb_minus,Z=e.rb_divide,be=e.rb_le,ue=e.hash2,Ee=e.lambda,O=e.not,Ce=e.alias,$e=[],w=e.nil,Ae=e.$$$;return e.add_stubs("each,public_send,destructure,to_enum,enumerator_size,new,yield,raise,slice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,respond_to?,coerce_to!,>,*,try_convert,<,+,-,ceil,/,size,select,__send__,length,<=,[],push,<<,[]=,===,inspect,<=>,first,reverse,sort,take,sort_by,compare,call,dup,sort!,map!,include?,-@,key?,values,transform_values,group_by,fetch,to_h,coerce_to?,class,zip,detect,find_all,collect_concat,collect,inject,entries"),function(j,de){var V=o(j,"Enumerable"),Fe=[V].concat(de),ce=e.$r(Fe);function U(x){return x.length===0&&(x=[w]),x.length>1&&(x=[x]),x}return L(V,"$all?",function x($){try{var l=z("return"),c=x.$$p||w,p=this;return x.$$p=null,t($!==void 0)?f(p,"each",[],function(S){var C,ee,Le=w;if(C=h(arguments),ee=C,Le=U(ee),t(f($,"public_send",["==="].concat(d(Le)))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):c!==w?f(p,"each",[],function(S){var C,ee;if(C=h(arguments),ee=C,t(e.yieldX(c,d(ee))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):f(p,"each",[],function(S){var C,ee;if(C=h(arguments),ee=C,t(A.$destructure(ee)))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),L(V,"$any?",function x($){try{var l=z("return"),c=x.$$p||w,p=this;return x.$$p=null,t($!==void 0)?f(p,"each",[],function(S){var C,ee,Le=w;if(C=h(arguments),ee=C,Le=U(ee),t(f($,"public_send",["==="].concat(d(Le)))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):c!==w?f(p,"each",[],function(S){var C,ee;if(C=h(arguments),ee=C,t(e.yieldX(c,d(ee))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):f(p,"each",[],function(S){var C,ee;if(C=h(arguments),ee=C,t(A.$destructure(ee)))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(_){if(_===l)return _.$v;throw _}},-1),L(V,"$chunk",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w?f(l,"to_enum",["chunk"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:l}):f(Ae("Enumerator"),"new",[],function c(p){var _=c.$$s==null?this:c.$$s;p==null&&(p=w);var S=w,C=[];function ee(){C.length>0&&p.$yield(S,C)}_.$each.$$p=function(Le){var nt=n($,Le);nt===w?(ee(),C=[],S=w):(S===w||S===nt?C.push(Le):(ee(),C=[Le]),S=nt)},_.$each(),ee()},{$$s:l})}),L(V,"$chunk_while",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w&&ne.$raise(Ae("ArgumentError"),"no block given"),f(l,"slice_when",[],function(p,_){return p==null&&(p=w),_==null&&(_=w),e.yieldX($,[p,_])["$!"]()})}),L(V,"$collect",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["collect"],function p(){var _=p.$$s==null?this:p.$$s;return _.$enumerator_size()},{$$s:l});var c=[];return l.$each.$$p=function(){var p=i($,arguments);c.push(p)},l.$each(),c}),L(V,"$collect_concat",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w?f(l,"enum_for",["collect_concat"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:l}):f(l,"map",[],$.$to_proc()).$flatten(1)}),L(V,"$compact",function(){var $=this;return $.$to_a().$compact()}),L(V,"$count",function x($){var l=x.$$p||w,c=this,p=w;return x.$$p=null,p=0,$!=null&&l!==w&&c.$warn("warning: given block not used"),t($!=null)?l=f(ne,"proc",[],function(S){var C,ee;return C=h(arguments),ee=C,A.$destructure(ee)["$=="]($)},-1):t(l["$nil?"]())&&(l=f(ne,"proc",[],ge(!0))),f(c,"each",[],function(S){var C,ee;return C=h(arguments),ee=C,t(i(l,ee))?p++:w},-1),p},-1),L(V,"$cycle",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,$==null&&($=w),l===w)return f(c,"enum_for",["cycle",$],function C(){var ee=C.$$s==null?this:C.$$s;return t($["$nil?"]())?t(ee["$respond_to?"]("size"))?Ae(Ae("Float"),"INFINITY"):w:($=A["$coerce_to!"]($,Ae("Integer"),"to_int"),t(Q($,0))?F(ee.$enumerator_size(),$):0)},{$$s:c});if(!t($["$nil?"]())&&($=A["$coerce_to!"]($,Ae("Integer"),"to_int"),t($<=0)))return w;var p=[],_,S;if(c.$each.$$p=function(){var C=A.$destructure(arguments);n(l,C),p.push(C)},c.$each(),p.length===0)return w;if($===w)for(;;)for(_=0,S=p.length;_<S;_++)n(l,p[_]);else for(;$>1;){for(_=0,S=p.length;_<S;_++)n(l,p[_]);$--}},-1),L(V,"$detect",function x($){try{var l=z("return"),c=x.$$p||w,p=this;return x.$$p=null,c===w?p.$enum_for("detect",$):(f(p,"each",[],function(S){var C,ee,Le=w;if(C=h(arguments),ee=C,Le=A.$destructure(ee),t(e.yield1(c,Le)))l.$throw(Le);else return w},{$$arity:-1,$$ret:l}),$!==void 0?typeof $=="function"?$():$:w)}catch(_){if(_===l)return _.$v;throw _}},-1),L(V,"$drop",function($){var l=this;$=r($,Ae("Integer"),"to_int"),t($<0)&&ne.$raise(Ae("ArgumentError"),"attempt to drop negative size");var c=[],p=0;return l.$each.$$p=function(){$<=p&&c.push(A.$destructure(arguments)),p++},l.$each(),c}),L(V,"$drop_while",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return l.$enum_for("drop_while");var c=[],p=!0;return l.$each.$$p=function(){var _=A.$destructure(arguments);if(p){var S=n($,_);t(S)||(p=!1,c.push(_))}else c.push(_)},l.$each(),c}),L(V,"$each_cons",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,t(arguments.length!=1)&&ne.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),$=A.$try_convert($,Ae("Integer"),"to_int"),t($<=0)&&ne.$raise(Ae("ArgumentError"),"invalid size"),l===w)return f(c,"enum_for",["each_cons",$],function _(){var S=_.$$s==null?this:_.$$s,C=w;return C=S.$enumerator_size(),t(C["$nil?"]())?w:pe(C,0)||t(Y(C,$))?0:se(ve(C,$),1)},{$$s:c});var p=[];return c.$each.$$p=function(){var _=A.$destructure(arguments);p.push(_),p.length>$&&p.shift(),p.length==$&&n(l,p.slice(0,$))},c.$each(),c}),L(V,"$each_entry",function x($){var l=x.$$p||w,c,p,_=this;return x.$$p=null,c=h(arguments),p=c,l===w?f(_,"to_enum",["each_entry"].concat(d(p)),function S(){var C=S.$$s==null?this:S.$$s;return C.$enumerator_size()},{$$s:_}):(_.$each.$$p=function(){var S=A.$destructure(arguments);n(l,S)},_.$each.apply(_,p),_)},-1),L(V,"$each_slice",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,$=r($,Ae("Integer"),"to_int"),t($<=0)&&ne.$raise(Ae("ArgumentError"),"invalid slice size"),l===w)return f(c,"enum_for",["each_slice",$],function _(){var S=_.$$s==null?this:_.$$s;return t(S["$respond_to?"]("size"))?Z(S.$size(),$).$ceil():w},{$$s:c});var p=[];return c.$each.$$p=function(){var _=A.$destructure(arguments);p.push(_),p.length===$&&(n(l,p),p=[])},c.$each(),p.length>0&&n(l,p),c}),L(V,"$each_with_index",function x($){var l=x.$$p||w,c,p,_=this;if(x.$$p=null,c=h(arguments),p=c,l===w)return f(_,"enum_for",["each_with_index"].concat(d(p)),function C(){var ee=C.$$s==null?this:C.$$s;return ee.$enumerator_size()},{$$s:_});var S=0;return _.$each.$$p=function(){var C=A.$destructure(arguments);l(C,S),S++},_.$each.apply(_,p),_},-1),L(V,"$each_with_object",function x($){var l=x.$$p||w,c=this;return x.$$p=null,l===w?f(c,"enum_for",["each_with_object",$],function p(){var _=p.$$s==null?this:p.$$s;return _.$enumerator_size()},{$$s:c}):(c.$each.$$p=function(){var p=A.$destructure(arguments);l(p,$)},c.$each(),$)}),L(V,"$entries",function($){var l,c,p=this;l=h(arguments),c=l;var _=[];return p.$each.$$p=function(){_.push(A.$destructure(arguments))},p.$each.apply(p,c),_},-1),L(V,"$filter_map",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w?f(l,"enum_for",["filter_map"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:l}):f(f(l,"map",[],$.$to_proc()),"select",[],"itself".$to_proc())}),L(V,"$find_all",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["find_all"],function p(){var _=p.$$s==null?this:p.$$s;return _.$enumerator_size()},{$$s:l});var c=[];return l.$each.$$p=function(){var p=A.$destructure(arguments),_=n($,p);t(_)&&c.push(p)},l.$each(),c}),L(V,"$find_index",function x($){try{var l=z("return"),c=x.$$p||w,p=this,_=w;return x.$$p=null,t($===void 0&&c===w)?p.$enum_for("find_index"):($!=null&&c!==w&&p.$warn("warning: given block not used"),_=0,t($!=null)?f(p,"each",[],function(C){var ee,Le;return ee=h(arguments),Le=ee,pe(A.$destructure(Le),$)&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}):f(p,"each",[],function(C){var ee,Le;return ee=h(arguments),Le=ee,t(e.yieldX(c,d(Le)))&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}),w)}catch(S){if(S===l)return S.$v;throw S}},-1),L(V,"$first",function($){try{var l=z("return"),c=this,p=w,_=w;return t($===void 0)?f(c,"each",[],function(C){C==null&&(C=w),l.$throw(C)},{$$ret:l}):(p=[],$=r($,Ae("Integer"),"to_int"),t($<0)&&ne.$raise(Ae("ArgumentError"),"attempt to take negative size"),t($==0)?[]:(_=0,f(c,"each",[],function(C){var ee,Le;if(ee=h(arguments),Le=ee,p.push(A.$destructure(Le)),t($<=++_))l.$throw(p);else return w},{$$arity:-1,$$ret:l}),p))}catch(S){if(S===l)return S.$v;throw S}},-1),L(V,"$grep",function x($){var l=x.$$p||w,c=this,p=w;return x.$$p=null,p=[],f(c,"each",[],function(S){var C,ee,Le=w;return C=h(arguments),ee=C,Le=U(ee),t(f($,"__send__",["==="].concat(d(Le))))?(l!==w?(t(Q(ee.$length(),1))&&(ee=[ee]),ee=e.yieldX(l,d(ee))):t(be(ee.$length(),1))&&(ee=ee["$[]"](0)),p.$push(ee)):w},-1),p}),L(V,"$grep_v",function x($){var l=x.$$p||w,c=this,p=w;return x.$$p=null,p=[],f(c,"each",[],function(S){var C,ee,Le=w;return C=h(arguments),ee=C,Le=U(ee),t(f($,"__send__",["==="].concat(d(Le))))?w:(l!==w?(t(Q(ee.$length(),1))&&(ee=[ee]),ee=e.yieldX(l,d(ee))):t(be(ee.$length(),1))&&(ee=ee["$[]"](0)),p.$push(ee))},-1),p}),L(V,"$group_by",function x(){var $=x.$$p||w,l,c=this,p=w,_=w;return x.$$p=null,$===w?f(c,"enum_for",["group_by"],function S(){var C=S.$$s==null?this:S.$$s;return C.$enumerator_size()},{$$s:c}):(p=ue([],{}),c.$each.$$p=function(){var S=A.$destructure(arguments),C=n($,S);(t(_=p["$[]"](C))?_:(l=[C,[]],f(p,"[]=",l),l[l.length-1]))["$<<"](S)},c.$each(),p)}),L(V,"$include?",function($){try{var l=z("return"),c=this;return f(c,"each",[],function(_){var S,C;if(S=h(arguments),C=S,pe(A.$destructure(C),$))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(p){if(p===l)return p.$v;throw p}}),L(V,"$inject",function x($,l){var c=x.$$p||w,p=this;x.$$p=null;var _=$;return c!==w&&l===void 0?p.$each.$$p=function(){var S=A.$destructure(arguments);if(_===void 0){_=S;return}S=i(c,[_,S]),_=S}:(l===void 0&&(Ae("Symbol")["$==="]($)||ne.$raise(Ae("TypeError"),""+$.$inspect()+" is not a Symbol"),l=$,_=void 0),p.$each.$$p=function(){var S=A.$destructure(arguments);if(_===void 0){_=S;return}_=_.$__send__(l,S)}),p.$each(),_??w},-1),L(V,"$lazy",function(){var $=this;return f(Ae(Ae("Enumerator"),"Lazy"),"new",[$,$.$enumerator_size()],function(c,p){var _,S;return c==null&&(c=w),_=h(arguments,1),S=_,f(c,"yield",d(S))},-2)}),L(V,"$enumerator_size",function(){var $=this;return t($["$respond_to?"]("size"))?$.$size():w}),L(V,"$max",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,$===void 0||$===w){var p,_;return c.$each.$$p=function(){var S=A.$destructure(arguments);if(p===void 0){p=S;return}l!==w?_=i(l,[S,p]):_=S["$<=>"](p),_===w&&ne.$raise(Ae("ArgumentError"),"comparison failed"),_>0&&(p=S)},c.$each(),p===void 0?w:p}return $=r($,Ae("Integer"),"to_int"),f(c,"sort",[],l.$to_proc()).$reverse().$first($)},-1),L(V,"$max_by",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,$==null&&($=w),!t(l))return f(c,"enum_for",["max_by",$],function S(){var C=S.$$s==null?this:S.$$s;return C.$enumerator_size()},{$$s:c});if(!t($["$nil?"]()))return f(c,"sort_by",[],l.$to_proc()).$reverse().$take($);var p,_;return c.$each.$$p=function(){var S=A.$destructure(arguments),C=n(l,S);if(p===void 0){p=S,_=C;return}C["$<=>"](_)>0&&(p=S,_=C)},c.$each(),p===void 0?w:p},-1),L(V,"$min",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,$==null&&($=w),!t($["$nil?"]()))return l!==w?f(c,"sort",[],function(S,C){return S==null&&(S=w),C==null&&(C=w),e.yieldX(l,[S,C])}).$take($):c.$sort().$take($);var p;return l!==w?c.$each.$$p=function(){var _=A.$destructure(arguments);if(p===void 0){p=_;return}var S=l(_,p);S===w&&ne.$raise(Ae("ArgumentError"),"comparison failed"),S<0&&(p=_)}:c.$each.$$p=function(){var _=A.$destructure(arguments);if(p===void 0){p=_;return}A.$compare(_,p)<0&&(p=_)},c.$each(),p===void 0?w:p},-1),L(V,"$min_by",function x($){var l=x.$$p||w,c=this;if(x.$$p=null,$==null&&($=w),!t(l))return f(c,"enum_for",["min_by",$],function S(){var C=S.$$s==null?this:S.$$s;return C.$enumerator_size()},{$$s:c});if(!t($["$nil?"]()))return f(c,"sort_by",[],l.$to_proc()).$take($);var p,_;return c.$each.$$p=function(){var S=A.$destructure(arguments),C=n(l,S);if(p===void 0){p=S,_=C;return}C["$<=>"](_)<0&&(p=S,_=C)},c.$each(),p===void 0?w:p},-1),L(V,"$minmax",function x(){var $=x.$$p||w,l=this,c=w;x.$$p=null,$=t(c=$)?c:f(ne,"proc",[],function(ee,Le){return ee==null&&(ee=w),Le==null&&(Le=w),ee["$<=>"](Le)});var p=w,_=w,S=!0;return l.$each.$$p=function(){var C=A.$destructure(arguments);if(S)p=_=C,S=!1;else{var ee=$.$call(p,C);ee===w?ne.$raise(Ae("ArgumentError"),"comparison failed"):ee>0&&(p=C);var Le=$.$call(_,C);Le===w?ne.$raise(Ae("ArgumentError"),"comparison failed"):Le<0&&(_=C)}},l.$each(),[p,_]}),L(V,"$minmax_by",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,!t($))return f(l,"enum_for",["minmax_by"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$enumerator_size()},{$$s:l});var c=w,p=w,_,S;return l.$each.$$p=function(){var C=A.$destructure(arguments),ee=n($,C);(_===void 0||ee["$<=>"](_)<0)&&(c=C,_=ee),(S===void 0||ee["$<=>"](S)>0)&&(p=C,S=ee)},l.$each(),[c,p]}),L(V,"$none?",function x($){try{var l=z("return"),c=x.$$p||w,p=this;return x.$$p=null,t($!==void 0)?f(p,"each",[],function(S){var C,ee,Le=w;if(C=h(arguments),ee=C,Le=U(ee),t(f($,"public_send",["==="].concat(d(Le)))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):c!==w?f(p,"each",[],function(S){var C,ee;if(C=h(arguments),ee=C,t(e.yieldX(c,d(ee))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(p,"each",[],function(S){var C,ee,Le=w;if(C=h(arguments),ee=C,Le=A.$destructure(ee),t(Le))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),L(V,"$one?",function x($){try{var l=z("return"),c=x.$$p||w,p=this,_=w;return x.$$p=null,_=0,t($!==void 0)?f(p,"each",[],function(C){var ee,Le,nt=w;if(ee=h(arguments),Le=ee,nt=U(Le),t(f($,"public_send",["==="].concat(d(nt)))))if(_=se(_,1),t(Q(_,1)))l.$throw(!1);else return w;else return w},{$$arity:-1,$$ret:l}):c!==w?f(p,"each",[],function(C){var ee,Le;if(ee=h(arguments),Le=ee,!t(e.yieldX(c,d(Le))))return w;if(_=se(_,1),t(Q(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(p,"each",[],function(C){var ee,Le;if(ee=h(arguments),Le=ee,!t(A.$destructure(Le)))return w;if(_=se(_,1),t(Q(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),_["$=="](1)}catch(S){if(S===l)return S.$v;throw S}},-1),L(V,"$partition",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["partition"],function _(){var S=_.$$s==null?this:_.$$s;return S.$enumerator_size()},{$$s:l});var c=[],p=[];return l.$each.$$p=function(){var _=A.$destructure(arguments),S=n($,_);t(S)?c.push(_):p.push(_)},l.$each(),[c,p]}),L(V,"$reject",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["reject"],function p(){var _=p.$$s==null?this:p.$$s;return _.$enumerator_size()},{$$s:l});var c=[];return l.$each.$$p=function(){var p=A.$destructure(arguments),_=n($,p);t(_)||c.push(p)},l.$each(),c}),L(V,"$reverse_each",function x(){var $=x.$$p||w,l=this;if(x.$$p=null,$===w)return f(l,"enum_for",["reverse_each"],function _(){var S=_.$$s==null?this:_.$$s;return S.$enumerator_size()},{$$s:l});var c=[];l.$each.$$p=function(){c.push(arguments)},l.$each();for(var p=c.length-1;p>=0;p--)i($,c[p]);return c}),L(V,"$slice_before",function x($){var l=x.$$p||w,c=this;return x.$$p=null,t($===void 0&&l===w)&&ne.$raise(Ae("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&ne.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),f(Ae("Enumerator"),"new",[],function p(_){var S=p.$$s==null?this:p.$$s;_==null&&(_=w);var C=[];l!==w?$===void 0?S.$each.$$p=function(){var ee=A.$destructure(arguments),Le=n(l,ee);t(Le)&&C.length>0&&(_["$<<"](C),C=[]),C.push(ee)}:S.$each.$$p=function(){var ee=A.$destructure(arguments),Le=l(ee,$.$dup());t(Le)&&C.length>0&&(_["$<<"](C),C=[]),C.push(ee)}:S.$each.$$p=function(){var ee=A.$destructure(arguments),Le=$["$==="](ee);t(Le)&&C.length>0&&(_["$<<"](C),C=[]),C.push(ee)},S.$each(),C.length>0&&_["$<<"](C)},{$$s:c})},-1),L(V,"$slice_after",function x($){var l=x.$$p||w,c=this;return x.$$p=null,t($===void 0&&l===w)&&ne.$raise(Ae("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&ne.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t($!==void 0)&&(l=f(ne,"proc",[],function(_){return _==null&&(_=w),$["$==="](_)})),f(Ae("Enumerator"),"new",[],function p(_){var S=p.$$s==null?this:p.$$s;_==null&&(_=w);var C;S.$each.$$p=function(){var ee=A.$destructure(arguments),Le=n(l,ee);C==null&&(C=[]),t(Le)?(C.push(ee),_.$yield(C),C=null):C.push(ee)},S.$each(),C!=null&&_.$yield(C)},{$$s:c})},-1),L(V,"$slice_when",function x(){var $=x.$$p||w,l=this;return x.$$p=null,$===w&&ne.$raise(Ae("ArgumentError"),"wrong number of arguments (0 for 1)"),f(Ae("Enumerator"),"new",[],function c(p){var _=c.$$s==null?this:c.$$s;p==null&&(p=w);var S=w,C=w;_.$each_cons.$$p=function(){var ee=A.$destructure(arguments),Le=ee[0],nt=ee[1],dt=i($,[Le,nt]);C=nt,S===w&&(S=[]),t(dt)?(S.push(Le),p.$yield(S),S=[]):S.push(Le)},_.$each_cons(2),S!==w&&(S.push(C),p.$yield(S))},{$$s:l})}),L(V,"$sort",function x(){var $=x.$$p||w,l=this,c=w;return x.$$p=null,c=l.$to_a(),$===w&&($=Ee(function(_,S){return _==null&&(_=w),S==null&&(S=w),_["$<=>"](S)})),f(c,"sort",[],$.$to_proc())}),L(V,"$sort_by",function x(){var $=x.$$p||w,l=this,c=w;return x.$$p=null,$===w?f(l,"enum_for",["sort_by"],function p(){var _=p.$$s==null?this:p.$$s;return _.$enumerator_size()},{$$s:l}):(c=f(l,"map",[],function(){var _=w;return _=A.$destructure(arguments),[e.yield1($,_),_]}),f(c,"sort!",[],function(_,S){return _==null&&(_=w),S==null&&(S=w),_[0]["$<=>"](S[0])}),f(c,"map!",[],function(_){return _==null&&(_=w),_[1]}))}),L(V,"$sum",function x($){var l=x.$$p||w,c=this,p=w,_=w;return x.$$p=null,$==null&&($=0),p=$,_=0,f(c,"each",[],function(C){var ee,Le,nt=w,dt=w,lt=w;return ee=h(arguments),Le=ee,nt=l!==w?e.yieldX(l,d(Le)):A.$destructure(Le),O([Ae(Ae("Float"),"INFINITY"),Ae(Ae("Float"),"INFINITY")["$-@"]()]["$include?"](nt))&&t(nt["$respond_to?"]("-"))?(dt=ve(nt,_),lt=se(p,dt),_=ve(ve(lt,p),dt),p=lt):p=se(p,nt)},-1),p},-1),L(V,"$take",function($){var l=this;return l.$first($)}),L(V,"$take_while",function x(){try{var $=z("return"),l=x.$$p||w,c=this,p=w;return x.$$p=null,t(l)?(p=[],f(c,"each",[],function(S){var C,ee,Le=w;return C=h(arguments),ee=C,Le=A.$destructure(ee),t(e.yield1(l,Le))||$.$throw(p),p.push(Le)},{$$arity:-1,$$ret:$})):c.$enum_for("take_while")}catch(_){if(_===$)return _.$v;throw _}}),L(V,"$uniq",function x(){var $=x.$$p||w,l=this,c=w;return x.$$p=null,c=ue([],{}),f(l,"each",[],function(_){var S,C,ee,Le=w,nt=w;return S=h(arguments),C=S,Le=A.$destructure(C),nt=$!==w?e.yield1($,Le):Le,t(c["$key?"](nt))?w:(ee=[nt,Le],f(c,"[]=",ee),ee[ee.length-1])},-1),c.$values()}),L(V,"$tally",function($){var l=this,c=w;return $&&$!==w&&s($),c=f(f(l,"group_by",[],"itself".$to_proc()),"transform_values",[],"count".$to_proc()),t($)?(f(c,"each",[],function(_,S){var C;return _==null&&(_=w),S==null&&(S=w),C=[_,se($.$fetch(_,0),S)],f($,"[]=",C),C[C.length-1]}),$):c},-1),L(V,"$to_h",function x($){var l=x.$$p||w,c,p,_=this;if(x.$$p=null,c=h(arguments),p=c,l!==w)return f(f(_,"map",[],l.$to_proc()),"to_h",d(p));var S=ue([],{});return _.$each.$$p=function(){var C=A.$destructure(arguments),ee=A["$coerce_to?"](C,Ae("Array"),"to_ary"),Le,nt;ee.$$is_array||ne.$raise(Ae("TypeError"),"wrong element type "+ee.$class()+" (expected array)"),ee.length!==2&&ne.$raise(Ae("ArgumentError"),"wrong array length (expected 2, was "+ee.$length()+")"),Le=ee[0],nt=ee[1],e.hash_put(S,Le,nt)},_.$each.apply(_,p),S},-1),L(V,"$to_set",function x($,l){var c=x.$$p||w,p,_,S,C=this;return x.$$p=null,p=h(arguments),p.length>0&&(_=p.shift()),_==null&&(_=ce("Set")),S=p,f(_,"new",[C].concat(d(S)),c.$to_proc())},-1),L(V,"$zip",function x($){x.$$p;var l,c,p=this;return x.$$p=null,l=h(arguments),c=l,f(p.$to_a(),"zip",d(c))},-1),Ce(V,"find","detect"),Ce(V,"filter","find_all"),Ce(V,"flat_map","collect_concat"),Ce(V,"map","collect"),Ce(V,"member?","include?"),Ce(V,"reduce","inject"),Ce(V,"select","find_all"),Ce(V,"to_a","entries")}("::",$e)};Opal.modules["corelib/enumerator/arithmetic_sequence"]=function(e){var t=e.klass,r=e.truthy,n=e.to_a,i=e.eqeq,s=e.Kernel,o=e.def,f=e.rb_gt,h=e.rb_lt,d=e.rb_le,A=e.rb_ge,z=e.rb_plus,L=e.rb_minus,ne=e.eqeqeq,ge=e.not,Q=e.rb_times,F=e.rb_divide,Y=e.alias,pe=[],se=e.nil,ve=e.$$$;return e.add_stubs("is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=,-@,_lesser_than_end?,<<,+,-,===,%,_greater_than_begin?,reverse,!,include?,*,to_i,abs,/,hash,inspect"),function(Z,be,ue){var Ee=t(Z,be,"Enumerator"),O=[Ee].concat(ue);return function(Ce,$e,w){var Ae=t(Ce,$e,"ArithmeticSequence"),j=[Ae].concat(w),de=e.$r(j),V=Ae.$$prototype;V.step_arg2=V.receiver_num=V.step_arg1=V.step=V.range=V.topfx=V.bypfx=V.creation_method=V.skipped_arg=se,e.prop(Ae.$$prototype,"$$is_arithmetic_seq",!0);var Fe=1/0;return o(Ae,"$initialize",function(U,x,$){var l,c=this,p=se;return $==null&&($="step"),c.creation_method=$,r(U["$is_a?"](ve("Array")))?(l=[].concat(n(U)),c.step_arg1=l[0]==null?se:l[0],c.step_arg2=l[1]==null?se:l[1],c.topfx=l[2]==null?se:l[2],c.bypfx=l[3]==null?se:l[3],c.receiver_num=x,c.step=1,c.range=r(c.step_arg2)?(c.step=c.step_arg2,e.Range.$new(c.receiver_num,c.step_arg1,!1)):r(c.step_arg1)?e.Range.$new(c.receiver_num,c.step_arg1,!1):e.Range.$new(c.receiver_num,se,!1)):(r(x)||(c.skipped_arg=!0),l=[U,r(p=x)?p:1],c.range=l[0],c.step=l[1]),c.object=c,i(c.step,0)&&s.$raise(de("ArgumentError"),"step can't be 0"),r(c.step["$respond_to?"]("to_int"))?se:s.$raise(de("ArgumentError"),"no implicit conversion of "+c.step.$class()+" into Integer")},-2),Ae.$attr_reader("step"),o(Ae,"$begin",function(){var U=this;return U.range.$begin()}),o(Ae,"$end",function(){var U=this;return U.range.$end()}),o(Ae,"$exclude_end?",function(){var U=this;return U.range["$exclude_end?"]()}),o(Ae,"$_lesser_than_end?",function(U){var x=this,$=se,l=se;return $=r(l=x.$end())?l:Fe,r(f(x.$step(),0))?r(x["$exclude_end?"]())?h(U,$):d(U,$):r(x["$exclude_end?"]())?f(U,$):A(U,$)}),o(Ae,"$_greater_than_begin?",function(U){var x=this,$=se,l=se;return $=r(l=x.$begin())?l:Fe["$-@"](),r(f(x.$step(),0))?f(U,$):h(U,$)}),o(Ae,"$first",function(U){var x=this,$=se,l=se,c=se;if($=r(l=x.$begin())?l:Fe["$-@"](),!r(U))return r(x["$_lesser_than_end?"]($))?$:se;for(c=[];r(r(l=x["$_lesser_than_end?"]($))?f(U,0):l);)c["$<<"]($),$=z($,x.$step()),U=L(U,1);return c},-1),o(Ae,"$each",function ce(){var U=ce.$$p||se,x=this,$=se,l=se;if(ce.$$p=null,U===se)return x;for(ne(se,$=x.$begin())&&s.$raise(de("TypeError"),"nil can't be coerced into Integer"),l=r($=x.$begin())?$:Fe["$-@"]();r(x["$_lesser_than_end?"](l));)e.yield1(U,l),l=z(l,x.$step());return x}),o(Ae,"$last",function(U){var x=this,$=se,l=se,c=se;if(ne(Fe,$=x.$end())||ne(Fe["$-@"](),$)?s.$raise(ve("FloatDomainError"),x.$end()):ne(se,$)&&s.$raise(ve("RangeError"),"cannot get the last element of endless arithmetic sequence"),l=L(x.$end(),L(x.$end(),x.$begin())["$%"](x.$step())),r(x["$_lesser_than_end?"](l))||(l=L(l,x.$step())),!r(U))return r(x["$_greater_than_begin?"](l))?l:se;for(c=[];r(r($=x["$_greater_than_begin?"](l))?f(U,0):$);)c["$<<"](l),l=L(l,x.$step()),U=L(U,1);return c.$reverse()},-1),o(Ae,"$size",function(){var U=this,x=se,$=se;return x=r(f(U.$step(),0))?1:-1,ge(U["$_lesser_than_end?"](U.$begin()))?0:r([Fe["$-@"](),Fe]["$include?"](U.$step()))?1:r([Q(Fe["$-@"](),x),se]["$include?"](U.$begin()))||r([Q(Fe,x),se]["$include?"](U.$end()))?Fe:($=L(U.$end(),L(U.$end(),U.$begin())["$%"](U.$step())),r(U["$_lesser_than_end?"]($))||($=L($,U.$step())),z(F(L($,U.$begin()),U.$step()).$abs().$to_i(),1))}),o(Ae,"$==",function(U){var x=this,$=se,l=se,c=se,p=se;return r($=r(l=r(c=r(p=x.$class()["$=="](U.$class()))?x.$begin()["$=="](U.$begin()):p)?x.$end()["$=="](U.$end()):c)?x.$step()["$=="](U.$step()):l)?x["$exclude_end?"]()["$=="](U["$exclude_end?"]()):$}),o(Ae,"$hash",function(){var U=this;return[U.$begin(),U.$end(),U.$step(),U["$exclude_end?"]()].$hash()}),o(Ae,"$inspect",function(){var U=this,x=se;return r(U.receiver_num)?(x=r(U.step_arg2)?"("+U.topfx+U.step_arg1.$inspect()+", "+U.bypfx+U.step_arg2.$inspect()+")":r(U.step_arg1)?"("+U.topfx+U.step_arg1.$inspect()+")":se,"("+U.receiver_num.$inspect()+"."+U.creation_method+x+")"):(x=r(U.skipped_arg)?se:"("+U.step+")","(("+U.range.$inspect()+")."+U.creation_method+x+")")}),Y(Ae,"===","=="),Y(Ae,"eql?","==")}(Ee,Ee,O)}("::",null,pe)};Opal.modules["corelib/enumerator/chain"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.slice,i=e.def,s=e.send,o=e.to_a,f=e.truthy,h=e.rb_plus,d=e.thrower,A=e.nil,z=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(L,ne){var ge=r(L,ne,"Enumerator");return function(Q,F){var Y=r(Q,F,"Chain"),pe=Y.$$prototype;return pe.enums=pe.iterated=A,i(Y,"$initialize",function(ve){var Z,be,ue=this;return Z=n(arguments),be=Z,t(ue),ue.enums=be,ue.iterated=[],ue.object=ue},-1),i(Y,"$each",function se(ve){var Z=se.$$p||A,be,ue,Ee=this;return se.$$p=null,be=n(arguments),ue=be,Z===A?s(Ee,"to_enum",["each"].concat(o(ue)),function O(){var Ce=O.$$s==null?this:O.$$s;return Ce.$size()},{$$s:Ee}):(s(Ee.enums,"each",[],function O(Ce){var $e=O.$$s==null?this:O.$$s;return $e.iterated==null&&($e.iterated=A),Ce==null&&(Ce=A),$e.iterated["$<<"](Ce),s(Ce,"each",o(ue),Z.$to_proc())},{$$s:Ee}),Ee)},-1),i(Y,"$size",function(ve){try{var Z=d("return"),be,ue,Ee=this,O=A;return be=n(arguments),ue=be,O=0,s(Ee.enums,"each",[],function($e){var w=A;return $e==null&&($e=A),w=s($e,"size",o(ue)),f([A,z(z("Float"),"INFINITY")]["$include?"](w))&&Z.$throw(w),O=h(O,w)},{$$ret:Z}),O}catch(Ce){if(Ce===Z)return Ce.$v;throw Ce}},-1),i(Y,"$rewind",function(){var ve=this;return s(ve.iterated,"reverse_each",[],function(be){return be==null&&(be=A),f(be["$respond_to?"]("rewind"))?be.$rewind():A}),ve.iterated=[],ve}),i(Y,"$inspect",function(){var ve=this;return"#<Enumerator::Chain: "+ve.enums.$inspect()+">"})}(ge,ge)}("::",null)};Opal.modules["corelib/enumerator/generator"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.truthy,i=e.Kernel,s=e.def,o=e.slice,f=e.send,h=[],d=e.nil,A=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(z,L,ne){var ge=r(z,L,"Enumerator"),Q=[ge].concat(ne);return function(F,Y,pe){var se=r(F,Y,"Generator"),ve=[se].concat(pe),Z=e.$r(ve),be=se.$$prototype;return be.block=d,se.$include(A("Enumerable")),s(se,"$initialize",function ue(){var Ee=ue.$$p||d,O=this;return ue.$$p=null,t(O),n(Ee)||i.$raise(A("LocalJumpError"),"no block given"),O.block=Ee}),s(se,"$each",function ue(Ee){var O=ue.$$p||d,Ce,$e,w=this,Ae=d;ue.$$p=null,Ce=o(arguments),$e=Ce,Ae=f(Z("Yielder"),"new",[],O.$to_proc());try{$e.unshift(Ae),e.yieldX(w.block,$e)}catch(j){if(j&&j.$thrower_type=="breaker")return j.$v;throw j}return w},-1)}(Q[0],null,Q)}(h[0],null,h)};Opal.modules["corelib/enumerator/lazy"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,o=e.klass,f=e.slice,h=e.send2,d=e.find_super,A=e.to_a,z=e.defs,L=e.Kernel,ne=e.send,ge=e.def,Q=e.return_self,F=e.Opal,Y=e.rb_lt,pe=e.eqeqeq,se=e.rb_plus,ve=e.alias,Z=[],be=e.nil,ue=e.$$$;return e.add_stubs("raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_proc,destructure,inspect,to_a,find_all,collect_concat,collect,enum_for"),function(Ee,O,Ce){var $e=o(Ee,O,"Enumerator"),w=[$e].concat(Ce);return function(Ae,j,de){var V=o(Ae,j,"Lazy"),Fe=[V].concat(de),ce=e.$r(Fe),U=V.$$prototype;return U.enumerator=be,o(V,ue("Exception"),"StopLazyError"),z(V,"$for",function x($,l){var c,p,_=x.$$p||be,S=this,C=be;return x.$$p=null,c=f(arguments,1),p=c,C=h(S,d(S,"for",x,!1,!0),"for",[$].concat(A(p)),_),C.enumerator=$,C},-2),ge(V,"$initialize",function x($,l){var c=x.$$p||be,p=this;return x.$$p=null,l==null&&(l=be),s(p),c===be&&L.$raise(ue("ArgumentError"),"tried to call lazy new without a block"),p.enumerator=$,h(p,d(p,"initialize",x,!1,!0),"initialize",[l],function(S,C){var ee,Le;S==null&&(S=be),ee=f(arguments,1),Le=ee;try{return ne($,"each",A(Le),function(dt){var lt,xt;lt=f(arguments),xt=lt,xt.unshift(S),i(c,xt)},-1)}catch(nt){if(e.rescue(nt,[ce("StopLazyError")]))try{return be}finally{e.pop_exception()}else throw nt}},-2)},-2),ge(V,"$lazy",Q),ge(V,"$collect",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||L.$raise(ue("ArgumentError"),"tried to call lazy map without a block"),ne(ce("Lazy"),"new",[l,l.$enumerator_size()],function(p,_){var S,C;p==null&&(p=be),S=f(arguments,1),C=S;var ee=i($,C);p.$yield(ee)},-2)}),ge(V,"$collect_concat",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||L.$raise(ue("ArgumentError"),"tried to call lazy map without a block"),ne(ce("Lazy"),"new",[l,be],function(p,_){var S,C;p==null&&(p=be),S=f(arguments,1),C=S;var ee=i($,C);if(ee["$respond_to?"]("force")&&ee["$respond_to?"]("each"))ne(ee,"each",[],function(dt){return dt==null&&(dt=be),p.$yield(dt)});else{var Le=F.$try_convert(ee,ue("Array"),"to_ary");Le===be?p.$yield(ee):ne(ee,"each",[],function(dt){return dt==null&&(dt=be),p.$yield(dt)})}},-2)}),ge(V,"$drop",function($){var l=this,c=be,p=be,_=be;return $=r($,ue("Integer"),"to_int"),t(Y($,0))&&L.$raise(ue("ArgumentError"),"attempt to drop negative size"),c=l.$enumerator_size(),p=pe(ue("Integer"),c)&&t(Y($,c))?$:c,_=0,ne(ce("Lazy"),"new",[l,p],function(C,ee){var Le,nt;return C==null&&(C=be),Le=f(arguments,1),nt=Le,t(Y(_,$))?_=se(_,1):ne(C,"yield",A(nt))},-2)}),ge(V,"$drop_while",function x(){var $=x.$$p||be,l=this,c=be;return x.$$p=null,t($)||L.$raise(ue("ArgumentError"),"tried to call lazy drop_while without a block"),c=!0,ne(ce("Lazy"),"new",[l,be],function(_,S){var C,ee;if(_==null&&(_=be),C=f(arguments,1),ee=C,t(c)){var Le=i($,ee);t(Le)||(c=!1,ne(_,"yield",A(ee)))}else return ne(_,"yield",A(ee))},-2)}),ge(V,"$enum_for",function x($,l){var c=x.$$p||be,p,_,S,C=this;return x.$$p=null,p=f(arguments),p.length>0&&(_=p.shift()),_==null&&(_="each"),S=p,ne(C.$class(),"for",[C,_].concat(A(S)),c.$to_proc())},-1),ge(V,"$find_all",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||L.$raise(ue("ArgumentError"),"tried to call lazy select without a block"),ne(ce("Lazy"),"new",[l,be],function(p,_){var S,C;p==null&&(p=be),S=f(arguments,1),C=S;var ee=i($,C);t(ee)&&ne(p,"yield",A(C))},-2)}),ge(V,"$grep",function x($){var l=x.$$p||be,c=this;return x.$$p=null,t(l)?ne(ce("Lazy"),"new",[c,be],function(_,S){var C,ee;_==null&&(_=be),C=f(arguments,1),ee=C;var Le=F.$destructure(ee),nt=$["$==="](Le);t(nt)&&(nt=n(l,Le),_.$yield(n(l,Le)))},-2):ne(ce("Lazy"),"new",[c,be],function(_,S){var C,ee;_==null&&(_=be),C=f(arguments,1),ee=C;var Le=F.$destructure(ee),nt=$["$==="](Le);t(nt)&&_.$yield(Le)},-2)}),ge(V,"$reject",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||L.$raise(ue("ArgumentError"),"tried to call lazy reject without a block"),ne(ce("Lazy"),"new",[l,be],function(p,_){var S,C;p==null&&(p=be),S=f(arguments,1),C=S;var ee=i($,C);t(ee)||ne(p,"yield",A(C))},-2)}),ge(V,"$take",function($){var l=this,c=be,p=be,_=be;return $=r($,ue("Integer"),"to_int"),t(Y($,0))&&L.$raise(ue("ArgumentError"),"attempt to take negative size"),c=l.$enumerator_size(),p=pe(ue("Integer"),c)&&t(Y($,c))?$:c,_=0,ne(ce("Lazy"),"new",[l,p],function(C,ee){var Le,nt;return C==null&&(C=be),Le=f(arguments,1),nt=Le,t(Y(_,$))?(ne(C,"yield",A(nt)),_=se(_,1)):L.$raise(ce("StopLazyError"))},-2)}),ge(V,"$take_while",function x(){var $=x.$$p||be,l=this;return x.$$p=null,t($)||L.$raise(ue("ArgumentError"),"tried to call lazy take_while without a block"),ne(ce("Lazy"),"new",[l,be],function(p,_){var S,C;p==null&&(p=be),S=f(arguments,1),C=S;var ee=i($,C);t(ee)?ne(p,"yield",A(C)):L.$raise(ce("StopLazyError"))},-2)}),ge(V,"$inspect",function(){var $=this;return"#<"+$.$class()+": "+$.enumerator.$inspect()+">"}),ve(V,"force","to_a"),ve(V,"filter","find_all"),ve(V,"flat_map","collect_concat"),ve(V,"map","collect"),ve(V,"select","find_all"),ve(V,"to_enum","enum_for")}($e,$e,w)}("::",null,Z)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,o=[],f=e.nil;return e.add_stubs("yield,proc"),function(h,d,A){var z=t(h,d,"Enumerator"),L=[z].concat(A);return function(ne,ge){var Q=t(ne,ge,"Yielder"),F=Q.$$prototype;return F.block=f,r(Q,"$initialize",function Y(){var pe=Y.$$p||f,se=this;return Y.$$p=null,se.block=pe,se}),r(Q,"$yield",function(pe){var se,ve,Z=this;se=n(arguments),ve=se;var be=e.yieldX(Z.block,ve);if(be&&be.$thrower_type=="break")throw be;return be},-1),r(Q,"$<<",function(pe){var se=this;return se.$yield(pe),se}),r(Q,"$to_proc",function(){var pe=this;return i(pe,"proc",[],function se(ve){var Z,be,ue=se.$$s==null?this:se.$$s;return Z=n(arguments),be=Z,i(ue,"yield",s(be))},{$$arity:-1,$$s:pe})})}(L[0],null)}(o[0],null,o)};Opal.modules["corelib/enumerator"]=function(e){var t=e.slice,r=e.coerce_to,n=e.deny_frozen_access,i=e.klass,s=e.defs,o=e.truthy,f=e.send,h=e.not,d=e.def,A=e.rb_plus,z=e.to_a,L=e.Opal,ne=e.send2,ge=e.find_super,Q=e.rb_ge,F=e.Kernel,Y=e.rb_le,pe=e.alias,se=e.top,ve=[],Z=e.nil,be=e.$$$;return e.add_stubs("require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,call,enum_for,size,destructure,map,>=,length,raise,[],peek_values,<=,next_values,inspect,any?,each_with_object,autoload"),se.$require("corelib/enumerable"),function(ue,Ee,O){var Ce=i(ue,Ee,"Enumerator"),$e=[Ce].concat(O),w=e.$r($e),Ae=Ce.$$prototype;return Ae.size=Ae.args=Ae.object=Ae.method=Ae.values=Ae.cursor=Z,Ce.$include(be("Enumerable")),Ce.$$prototype.$$is_enumerator=!0,s(Ce,"$for",function j(de,V,Fe){var ce=j.$$p||Z,U,x,$,l=this;j.$$p=null,U=t(arguments,1),U.length>0&&(x=U.shift()),x==null&&(x="each"),$=U;var c=l.$allocate();return c.object=de,c.size=ce,c.method=x,c.args=$,c.cursor=0,c},-2),d(Ce,"$initialize",function j(de){var V=j.$$p||Z,Fe=this;return j.$$p=null,t(arguments),n(Fe),Fe.cursor=0,o(V)?(Fe.object=f(w("Generator"),"new",[],V.$to_proc()),Fe.method="each",Fe.args=[],Fe.size=arguments[0]||Z,o(Fe.size)&&h(Fe.size["$respond_to?"]("call"))?Fe.size=r(Fe.size,be("Integer"),"to_int"):Z):(Fe.object=arguments[0],Fe.method=arguments[1]||"each",Fe.args=t(arguments,2),Fe.size=Z)},-1),d(Ce,"$each",function j(de){var V=j.$$p||Z,Fe,ce,U=this;return j.$$p=null,Fe=t(arguments),ce=Fe,o(V["$nil?"]())&&o(ce["$empty?"]())?U:(ce=A(U.args,ce),o(V["$nil?"]())?f(U.$class(),"new",[U.object,U.method].concat(z(ce))):f(U.object,"__send__",[U.method].concat(z(ce)),V.$to_proc()))},-1),d(Ce,"$size",function(){var de=this;return o(de.size["$respond_to?"]("call"))?f(de.size,"call",z(de.args)):de.size}),d(Ce,"$with_index",function j(de){var V=j.$$p||Z,Fe=this;if(j.$$p=null,de==null&&(de=0),de=o(de)?r(de,be("Integer"),"to_int"):0,!o(V))return f(Fe,"enum_for",["with_index",de],function U(){var x=U.$$s==null?this:U.$$s;return x.$size()},{$$s:Fe});var ce=de;return Fe.$each.$$p=function(){var U=L.$destructure(arguments),x=V(U,ce);return ce++,x},Fe.$each()},-1),d(Ce,"$each_with_index",function j(){var de=j.$$p||Z,V=this;return j.$$p=null,de===Z?f(V,"enum_for",["each_with_index"],function Fe(){var ce=Fe.$$s==null?this:Fe.$$s;return ce.$size()},{$$s:V}):(ne(V,ge(V,"each_with_index",j,!1,!0),"each_with_index",[],de),V.object)}),d(Ce,"$rewind",function(){var de=this;return de.cursor=0,de}),d(Ce,"$peek_values",function(){var de=this,V=Z;return de.values=o(V=de.values)?V:f(de,"map",[],function(ce){var U,x;return U=t(arguments),x=U,x},-1),o(Q(de.cursor,de.values.$length()))&&F.$raise(be("StopIteration"),"iteration reached an end"),de.values["$[]"](de.cursor)}),d(Ce,"$peek",function(){var de=this,V=Z;return V=de.$peek_values(),o(Y(V.$length(),1))?V["$[]"](0):V}),d(Ce,"$next_values",function(){var de=this,V=Z;return V=de.$peek_values(),de.cursor=A(de.cursor,1),V}),d(Ce,"$next",function(){var de=this,V=Z;return V=de.$next_values(),o(Y(V.$length(),1))?V["$[]"](0):V}),d(Ce,"$feed",function(de){var V=this;return V.$raise(w("NotImplementedError"),"Opal doesn't support Enumerator#feed")}),d(Ce,"$+",function(de){var V=this;return be(be("Enumerator"),"Chain").$new(V,de)}),d(Ce,"$inspect",function(){var de=this,V=Z;return V="#<"+de.$class()+": "+de.object.$inspect()+":"+de.method,o(de.args["$any?"]())&&(V=A(V,"("+de.args.$inspect()["$[]"](be("Range").$new(1,-2))+")")),A(V,">")}),pe(Ce,"with_object","each_with_object"),Ce.$autoload("ArithmeticSequence","corelib/enumerator/arithmetic_sequence"),Ce.$autoload("Chain","corelib/enumerator/chain"),Ce.$autoload("Generator","corelib/enumerator/generator"),Ce.$autoload("Lazy","corelib/enumerator/lazy"),Ce.$autoload("Yielder","corelib/enumerator/yielder")}("::",null,ve)};Opal.modules["corelib/numeric"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.to_ary,o=e.return_self,f=e.rb_minus,h=e.rb_times,d=e.rb_lt,A=e.eqeq,z=e.rb_divide,L=e.return_val,ne=e.Opal,ge=e.slice,Q=e.extract_kwargs,F=e.ensure_kwargs,Y=e.not,pe=e.send,se=e.rb_ge,ve=e.rb_le,Z=e.rb_plus,be=e.rb_gt,ue=e.alias,Ee=e.top,O=e.nil,Ce=e.$$$;return e.add_stubs("require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,-,*,div,<,-@,ceil,to_f,denominator,to_r,==,floor,/,%,Complex,zero?,numerator,abs,arg,coerce_to!,round,<=>,compare,is_a?,!,new,enum_for,to_proc,negative?,>=,<=,+,to_i,truncate,>,angle,conj,imag,rect"),Ee.$require("corelib/comparable"),function($e,w){var Ae=t($e,w,"Numeric");return Ae.$include(Ce("Comparable")),i(Ae,"$coerce",function(de){var V=this;return r(de["$instance_of?"](V.$class()))?[de,V]:[n.$Float(de),n.$Float(V)]}),i(Ae,"$__coerced__",function(de,V){var Fe,ce,U=this,x=O,$=O;if(r(V["$respond_to?"]("coerce")))return ce=V.$coerce(U),Fe=s(ce),x=Fe[0]==null?O:Fe[0],$=Fe[1]==null?O:Fe[1],x.$__send__(de,$);switch(de){case"+":case"-":case"*":case"/":case"%":case"&":case"|":case"^":case"**":return n.$raise(Ce("TypeError"),""+V.$class()+" can't be coerced into Numeric");case">":case">=":case"<":case"<=":case"<=>":return n.$raise(Ce("ArgumentError"),"comparison of "+U.$class()+" with "+V.$class()+" failed");default:return O}}),i(Ae,"$<=>",function(de){var V=this;return r(V["$equal?"](de))?0:O}),i(Ae,"$+@",o),i(Ae,"$-@",function(){var de=this;return f(0,de)}),i(Ae,"$%",function(de){var V=this;return f(V,h(de,V.$div(de)))}),i(Ae,"$abs",function(){var de=this;return d(de,0)?de["$-@"]():de}),i(Ae,"$abs2",function(){var de=this;return h(de,de)}),i(Ae,"$angle",function(){var de=this;return d(de,0)?Ce(Ce("Math"),"PI"):0}),i(Ae,"$ceil",function(de){var V=this;return de==null&&(de=0),V.$to_f().$ceil(de)},-1),i(Ae,"$conj",o),i(Ae,"$denominator",function(){var de=this;return de.$to_r().$denominator()}),i(Ae,"$div",function(de){var V=this;return A(de,0)&&n.$raise(Ce("ZeroDivisionError"),"divided by o"),z(V,de).$floor()}),i(Ae,"$divmod",function(de){var V=this;return[V.$div(de),V["$%"](de)]}),i(Ae,"$fdiv",function(de){var V=this;return z(V.$to_f(),de)}),i(Ae,"$floor",function(de){var V=this;return de==null&&(de=0),V.$to_f().$floor(de)},-1),i(Ae,"$i",function(){var de=this;return n.$Complex(0,de)}),i(Ae,"$imag",L(0)),i(Ae,"$integer?",L(!1)),i(Ae,"$nonzero?",function(){var de=this;return r(de["$zero?"]())?O:de}),i(Ae,"$numerator",function(){var de=this;return de.$to_r().$numerator()}),i(Ae,"$polar",function(){var de=this;return[de.$abs(),de.$arg()]}),i(Ae,"$quo",function(de){var V=this;return z(ne["$coerce_to!"](V,Ce("Rational"),"to_r"),de)}),i(Ae,"$real",o),i(Ae,"$real?",L(!0)),i(Ae,"$rect",function(){var de=this;return[de,0]}),i(Ae,"$round",function(de){var V=this;return V.$to_f().$round(de)},-1),i(Ae,"$step",function j(de,V,Fe){var ce=j.$$p||O,U,x,$,l,c,p,_=this,S=O;j.$$p=null,U=ge(arguments),x=Q(U),x=F(x),U.length>0&&($=U.shift()),U.length>0&&(l=U.shift()),c=x.$$smap.to,p=x.$$smap.by,$!==void 0&&c!==void 0&&n.$raise(Ce("ArgumentError"),"to is given twice"),l!==void 0&&p!==void 0&&n.$raise(Ce("ArgumentError"),"step is given twice"),c!==void 0&&($=c),p!==void 0&&(l=p),$===void 0&&($=O);function C(){l===O&&n.$raise(Ce("TypeError"),"step must be numeric"),l!=null&&l["$=="](0)&&n.$raise(Ce("ArgumentError"),"step can't be 0"),(l===O||l==null)&&(l=1);var wt=l["$<=>"](0);wt===O&&n.$raise(Ce("ArgumentError"),"0 can't be coerced into "+l.$class()),($===O||$==null)&&($=wt>0?Ce(Ce("Float"),"INFINITY"):Ce(Ce("Float"),"INFINITY")["$-@"]()),ne.$compare(_,$)}function ee(){if(l>0&&_>$||l<0&&_<$)return 0;if(l===1/0||l===-1/0)return 1;var wt=Math.abs,At=Math.floor,et=(wt(_)+wt($)+wt($-_))/wt(l)*Ce(Ce("Float"),"EPSILON");return et===1/0||et===-1/0?0:(et>.5&&(et=.5),At(($-_)/l+et)+1)}function Le(){if(C(),l===0)return 1/0;if(l%1!==0)return ee();if(l>0&&_>$||l<0&&_<$)return 0;var wt=Math.ceil,At=Math.abs,et=At(_-$)+1,ze=At(l);return wt(et/ze)}if(ce===O)return(Y($)||r($["$is_a?"](Ce("Numeric"))))&&(Y(l)||r(l["$is_a?"](Ce("Numeric"))))?Ce(Ce("Enumerator"),"ArithmeticSequence").$new([$,l,r(c)?"to: ":O,r(p)?"by: ":O],_):pe(_,"enum_for",["step",$,l],Le.$to_proc());C();var nt=l["$negative?"](),dt=l["$=="](0)||$===1/0&&!nt||$===-1/0&&nt;if(_.$$is_number&&l.$$is_number&&$.$$is_number)if(_%1===0&&(dt||$%1===0)&&l%1===0){var lt=_;if(dt)for(;;lt+=l)ce(lt);else if(nt)for(;lt>=$;lt+=l)ce(lt);else for(;lt<=$;lt+=l)ce(lt);return _}else{var xt=_.$to_f().valueOf();l=l.$to_f().valueOf(),$=$.$to_f().valueOf();var bt=ee();if(!isFinite(l))bt!==0&&ce(xt);else if(l===0)for(;;)ce(xt);else for(var yt=0;yt<bt;yt++){var gt=yt*l+_;(l>=0?$<gt:$>gt)&&(gt=$),ce(gt)}return _}for(S=_;r(nt?se(S,$):ve(S,$));)e.yield1(ce,S),S=Z(S,l)},-1),i(Ae,"$to_c",function(){var de=this;return n.$Complex(de,0)}),i(Ae,"$to_int",function(){var de=this;return de.$to_i()}),i(Ae,"$truncate",function(de){var V=this;return de==null&&(de=0),V.$to_f().$truncate(de)},-1),i(Ae,"$zero?",function(){var de=this;return de["$=="](0)}),i(Ae,"$positive?",function(){var de=this;return be(de,0)}),i(Ae,"$negative?",function(){var de=this;return d(de,0)}),i(Ae,"$dup",o),i(Ae,"$clone",function(de){var V=this;return de=F(de),de.$$smap.freeze,V},-1),i(Ae,"$finite?",L(!0)),i(Ae,"$infinite?",L(O)),ue(Ae,"arg","angle"),ue(Ae,"conjugate","conj"),ue(Ae,"imaginary","imag"),ue(Ae,"magnitude","abs"),ue(Ae,"modulo","%"),ue(Ae,"phase","arg"),ue(Ae,"rectangular","rect")}("::",null)};Opal.modules["corelib/array"]=function(e){var t=e.truthy,r=e.falsy,n=e.hash_ids,i=e.yield1,s=e.hash_get,o=e.hash_put,f=e.hash_delete,h=e.coerce_to,d=e.respond_to,A=e.deny_frozen_access,z=e.freeze,L=e.klass,ne=e.slice,ge=e.defs,Q=e.Kernel,F=e.def,Y=e.Opal,pe=e.eqeqeq,se=e.hash2,ve=e.send2,Z=e.find_super,be=e.send,ue=e.rb_gt,Ee=e.rb_times,O=e.eqeq,Ce=e.rb_minus,$e=e.to_a,w=e.to_ary,Ae=e.gvars,j=e.rb_ge,de=e.assign_ivar,V=e.rb_lt,Fe=e.return_self,ce=e.neqeq,U=e.alias,x=e.top,$=[],l=e.nil,c=e.$$$;return e.add_stubs("require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_str,hash,<=>,==,object_id,inspect,enum_for,class,bsearch_index,to_proc,nil?,coerce_to!,>,*,enumerator_size,empty?,size,map,equal?,dup,each,reduce,-,[],dig,eql?,length,exclude_end?,flatten,frozen?,__id__,&,!,intersection,to_s,new,item,max,min,>=,**,delete_if,reverse,rotate,rand,at,keep_if,shuffle!,<,sort,sort_by,!=,times,[]=,<<,uniq,|,values,is_a?,end,begin,upto,reject,push,select,select!,collect,collect!,unshift,pristine,singleton_class"),x.$require("corelib/enumerable"),x.$require("corelib/numeric"),function(p,_,S){var C=L(p,_,"Array"),ee=[C].concat(S),Le=e.$r(ee);C.$include(c("Enumerable")),e.prop(C.$$prototype,"$$is_array",!0);function nt(et){for(var ze=et[0],je=1,Ge=et.length;je<Ge;je++)et[je-1]=et[je];return et.pop(),ze}function dt(et,ze){return ze.$$name===e.Array?et:ze.$allocate().$replace(et.$to_a())}function lt(et,ze,je){for(var Ge,y=null,I=new Array(et.length),xe=0,Me=0,Qe=et.length;xe<Qe;xe++){if(!y)try{Ge=i(je,et[xe])}catch($t){y=$t}(y||ze(Ge))&&(I[Me]=et[xe],Me+=1)}if(Me!==xe&&(et.splice.apply(et,[0,I.length].concat(I)),et.splice(Me,I.length)),y)throw y}ge(C,"$[]",function(ze){var je,Ge,y=this;return je=ne(arguments),Ge=je,dt(Ge,y)},-1),F(C,"$initialize",function et(ze,je){var Ge=et.$$p||l,y=this;if(et.$$p=null,ze==null&&(ze=l),je==null&&(je=l),A(y),je!==l&&Ge!==l&&Q.$warn("warning: block supersedes default value argument"),ze>c(c("Integer"),"MAX")&&Q.$raise(c("ArgumentError"),"array size too big"),arguments.length>2&&Q.$raise(c("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),arguments.length===0)return y.splice(0,y.length),y;if(arguments.length===1){if(ze.$$is_array)return y.$replace(ze.$to_a()),y;if(ze["$respond_to?"]("to_ary"))return y.$replace(ze.$to_ary()),y}ze=h(ze,c("Integer"),"to_int"),ze<0&&Q.$raise(c("ArgumentError"),"negative array size"),y.splice(0,y.length);var I,xe;if(Ge===l)for(I=0;I<ze;I++)y.push(je);else for(I=0,xe;I<ze;I++)xe=Ge(I),y[I]=xe;return y},-1),ge(C,"$try_convert",function(ze){return Y["$coerce_to?"](ze,c("Array"),"to_ary")}),F(C,"$&",function(ze){var je=this;ze=pe(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a();var Ge=[],y=se([],{}),I,xe,Me;for(I=0,xe=ze.length;I<xe;I++)o(y,ze[I],!0);for(I=0,xe=je.length;I<xe;I++)Me=je[I],f(y,Me)!==void 0&&Ge.push(Me);return Ge}),F(C,"$|",function(ze){var je=this;ze=pe(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a();var Ge=se([],{}),y,I;for(y=0,I=je.length;y<I;y++)o(Ge,je[y],!0);for(y=0,I=ze.length;y<I;y++)o(Ge,ze[y],!0);return Ge.$keys()}),F(C,"$*",function(ze){var je=this;if(t(ze["$respond_to?"]("to_str")))return je.$join(ze.$to_str());ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&Q.$raise(c("ArgumentError"),"negative argument");for(var Ge=[],y=je.$to_a(),I=0;I<ze;I++)Ge=Ge.concat(y);return Ge}),F(C,"$+",function(ze){var je=this;return ze=pe(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),je.concat(ze)}),F(C,"$-",function(ze){var je=this;if(ze=pe(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),t(je.length===0))return[];if(t(ze.length===0))return je.slice();var Ge=[],y=se([],{}),I,xe,Me;for(I=0,xe=ze.length;I<xe;I++)o(y,ze[I],!0);for(I=0,xe=je.length;I<xe;I++)Me=je[I],s(y,Me)===void 0&&Ge.push(Me);return Ge}),F(C,"$<<",function(ze){var je=this;return A(je),je.push(ze),je}),F(C,"$<=>",function(ze){var je=this;if(pe(c("Array"),ze))ze=ze.$to_a();else if(t(ze["$respond_to?"]("to_ary")))ze=ze.$to_ary().$to_a();else return l;if(je.$hash()===ze.$hash())return 0;for(var Ge=Math.min(je.length,ze.length),y=0;y<Ge;y++){var I=je[y]["$<=>"](ze[y]);if(I!==0)return I}return je.length["$<=>"](ze.length)}),F(C,"$==",function(ze){var je=this,Ge={};function y(I,xe){var Me,Qe,$t,a;if(I===xe)return!0;if(!xe.$$is_array)return d(xe,"$to_ary")?xe["$=="](I):!1;if(I.$$constructor!==Array&&(I=I.$to_a()),xe.$$constructor!==Array&&(xe=xe.$to_a()),I.length!==xe.length)return!1;for(Ge[I.$object_id()]=!0,Me=0,Qe=I.length;Me<Qe;Me++)if($t=I[Me],a=xe[Me],$t.$$is_array){if(a.$$is_array&&a.length!==$t.length||!Ge.hasOwnProperty($t.$object_id())&&!y($t,a))return!1}else if(!$t["$=="](a))return!1;return!0}return y(je,ze)});function xt(et,ze){var je=et.length,Ge,y,I,xe;return Ge=ze.excl,y=ze.begin===l?0:h(ze.begin,e.Integer,"to_int"),I=ze.end===l?-1:h(ze.end,e.Integer,"to_int"),y<0&&(y+=je,y<0)||(ze.excl_rev&&ze.begin!==l&&(y+=1),y>je)?l:I<0&&(I+=je,I<0)?[]:((!Ge||ze.end===l)&&(I+=1),xe=et.slice(y,I),xe)}function bt(et,ze){var je,Ge=[],y=0,I;for(ze.step<0?(I={begin:ze.range.end,end:ze.range.begin,excl:!1,excl_rev:ze.range.excl},je=xt(et,I).$reverse()):je=xt(et,ze.range);y<je.length;)Ge.push(je[y]),y+=Math.abs(ze.step);return Ge}function yt(et,ze,je){var Ge=et.length,y;return ze=h(ze,e.Integer,"to_int"),ze<0&&(ze+=Ge,ze<0)?l:je===void 0?ze>=Ge||ze<0?l:et[ze]:(je=h(je,e.Integer,"to_int"),je<0||ze>Ge||ze<0?l:(y=et.slice(ze,ze+je),y))}F(C,"$[]",function(ze,je){var Ge=this;return ze.$$is_range?xt(Ge,ze):ze.$$is_arithmetic_seq?bt(Ge,ze):yt(Ge,ze,je)},-2),F(C,"$[]=",function(ze,je,Ge){var y=this,I=l,xe=l;A(y),I=l;var Me,Qe=y.length;if(ze.$$is_range){je.$$is_array?I=je.$to_a():je["$respond_to?"]("to_ary")?I=je.$to_ary().$to_a():I=[je];var $t=ze.excl,a=ze.begin===l?0:h(ze.begin,e.Integer,"to_int"),ae=ze.end===l?-1:h(ze.end,e.Integer,"to_int");if(a<0&&(a+=Qe,a<0&&Q.$raise(c("RangeError"),""+ze.$inspect()+" out of range")),ae<0&&(ae+=Qe),(!$t||ze.end===l)&&(ae+=1),a>Qe)for(Me=Qe;Me<a;Me++)y[Me]=l;return ae<0?y.splice.apply(y,[a,0].concat(I)):y.splice.apply(y,[a,ae-a].concat(I)),je}else{Ge===void 0?xe=1:(xe=je,je=Ge,je.$$is_array?I=je.$to_a():je["$respond_to?"]("to_ary")?I=je.$to_ary().$to_a():I=[je]);var re;if(ze=h(ze,c("Integer"),"to_int"),xe=h(xe,c("Integer"),"to_int"),ze<0&&(re=ze,ze+=Qe,ze<0&&Q.$raise(c("IndexError"),"index "+re+" too small for array; minimum "+-y.length)),xe<0&&Q.$raise(c("IndexError"),"negative length ("+xe+")"),ze>Qe)for(Me=Qe;Me<ze;Me++)y[Me]=l;return Ge===void 0?y[ze]=je:y.splice.apply(y,[ze,xe].concat(I)),je}},-3),F(C,"$any?",function et(ze){var je=et.$$p||l,Ge=this;return et.$$p=null,Ge.length===0?!1:ve(Ge,Z(Ge,"any?",et,!1,!0),"any?",[ze],je)},-1),F(C,"$assoc",function(ze){for(var je=this,Ge=0,y=je.length,I;Ge<y;Ge++)if(I=je[Ge],I.length&&I[0]["$=="](ze))return I;return l}),F(C,"$at",function(ze){var je=this;return ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=je.length),ze<0||ze>=je.length?l:je[ze]}),F(C,"$bsearch_index",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return je.$enum_for("bsearch_index");for(var Ge=0,y=je.length,I,xe,Me,Qe=!1,$t=l;Ge<y;){if(I=Ge+Math.floor((y-Ge)/2),xe=je[I],Me=i(ze,xe),Me===!0)$t=I,Qe=!0;else if(Me===!1||Me===l)Qe=!1;else if(Me.$$is_number){if(Me===0)return I;Qe=Me<0}else Q.$raise(c("TypeError"),"wrong argument type "+Me.$class()+" (must be numeric, true, false or nil)");Qe?y=I:Ge=I+1}return $t}),F(C,"$bsearch",function et(){var ze=et.$$p||l,je=this,Ge=l;return et.$$p=null,ze===l?je.$enum_for("bsearch"):(Ge=be(je,"bsearch_index",[],ze.$to_proc()),Ge!=null&&Ge.$$is_number?je[Ge]:Ge)}),F(C,"$cycle",function et(ze){var je=et.$$p||l,Ge=this;if(et.$$p=null,ze==null&&(ze=l),je===l)return be(Ge,"enum_for",["cycle",ze],function xe(){var Me=xe.$$s==null?this:xe.$$s;return t(ze["$nil?"]())?c(c("Float"),"INFINITY"):(ze=Y["$coerce_to!"](ze,c("Integer"),"to_int"),t(ue(ze,0))?Ee(Me.$enumerator_size(),ze):0)},{$$s:Ge});if(t(Ge["$empty?"]())||O(ze,0))return l;var y,I;if(ze===l)for(;;)for(y=0,I=Ge.length;y<I;y++)i(je,Ge[y]);else{if(ze=Y["$coerce_to!"](ze,c("Integer"),"to_int"),ze<=0)return Ge;for(;ze>0;){for(y=0,I=Ge.length;y<I;y++)i(je,Ge[y]);ze--}}return Ge},-1),F(C,"$clear",function(){var ze=this;return A(ze),ze.splice(0,ze.length),ze}),F(C,"$count",function et(ze){var je=et.$$p||l,Ge=this;return et.$$p=null,t(ze!==void 0)||t(je)?ve(Ge,Z(Ge,"count",et,!1,!0),"count",[ze],je):Ge.$size()},-1),F(C,"$initialize_copy",function(ze){var je=this;return je.$replace(ze)}),F(C,"$collect",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["collect"],function Me(){var Qe=Me.$$s==null?this:Me.$$s;return Qe.$size()},{$$s:je});for(var Ge=[],y=0,I=je.length;y<I;y++){var xe=i(ze,je[y]);Ge.push(xe)}return Ge}),F(C,"$collect!",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["collect!"],function xe(){var Me=xe.$$s==null?this:xe.$$s;return Me.$size()},{$$s:je});A(je);for(var Ge=0,y=je.length;Ge<y;Ge++){var I=i(ze,je[Ge]);je[Ge]=I}return je});function gt(et,ze){return et===ze||ze===0?1:ze>0&&et>ze?gt(et-1,ze-1)+gt(et-1,ze):0}F(C,"$combination",function et(ze){var je=et.$$p||l,Ge=this,y=l;if(et.$$p=null,y=Y["$coerce_to!"](ze,c("Integer"),"to_int"),je===l)return be(Ge,"enum_for",["combination",y],function re(){var W=re.$$s==null?this:re.$$s;return gt(W.length,y)},{$$s:Ge});var I,xe,Me,Qe,$t,a,ae;if(y===0)e.yield1(je,[]);else if(y===1)for(I=0,xe=Ge.length;I<xe;I++)e.yield1(je,[Ge[I]]);else if(y===Ge.length)e.yield1(je,Ge.slice());else if(y>=0&&y<Ge.length){for(Me=[],I=0;I<=y+1;I++)Me.push(0);for(Qe=[],$t=0,a=!1,Me[0]=-1;!a;){for(Qe[$t]=Ge[Me[$t+1]];$t<y-1;)$t++,ae=Me[$t+1]=Me[$t]+1,Qe[$t]=Ge[ae];e.yield1(je,Qe.slice()),$t++;do a=$t===0,Me[$t]++,$t--;while(Me[$t+1]+y===Ge.length+$t+1)}}return Ge}),F(C,"$repeated_combination",function et(ze){var je=et.$$p||l,Ge=this,y=l;if(et.$$p=null,y=Y["$coerce_to!"](ze,c("Integer"),"to_int"),je===l)return be(Ge,"enum_for",["repeated_combination",y],function xe(){var Me=xe.$$s==null?this:xe.$$s;return gt(Me.length+y-1,y)},{$$s:Ge});function I(xe,Me,Qe,$t){if(Qe.length==xe){var a=Qe.slice();e.yield1(je,a);return}for(var ae=Me;ae<$t.length;ae++)Qe.push($t[ae]),I(xe,ae,Qe,$t),Qe.pop()}return y>=0&&I(y,0,[],Ge),Ge}),F(C,"$compact",function(){for(var ze=this,je=[],Ge=0,y=ze.length,I;Ge<y;Ge++)(I=ze[Ge])!==l&&je.push(I);return je}),F(C,"$compact!",function(){var ze=this;A(ze);for(var je=ze.length,Ge=0,y=ze.length;Ge<y;Ge++)ze[Ge]===l&&(ze.splice(Ge,1),y--,Ge--);return ze.length===je?l:ze}),F(C,"$concat",function(ze){var je,Ge,y=this;return je=ne(arguments),Ge=je,A(y),Ge=be(Ge,"map",[],function I(xe){var Me=I.$$s==null?this:I.$$s;return xe==null&&(xe=l),xe=pe(c("Array"),xe)?xe.$to_a():h(xe,c("Array"),"to_ary").$to_a(),t(xe["$equal?"](Me))&&(xe=xe.$dup()),xe},{$$s:y}),be(Ge,"each",[],function I(xe){var Me=I.$$s==null?this:I.$$s;xe==null&&(xe=l);for(var Qe=0,$t=xe.length;Qe<$t;Qe++)Me.push(xe[Qe])},{$$s:y}),y},-1),F(C,"$delete",function et(ze){var je=et.$$p||l,Ge=this;et.$$p=null;for(var y=Ge.length,I=0,xe=y;I<xe;I++)Ge[I]["$=="](ze)&&(A(Ge),Ge.splice(I,1),xe--,I--);return Ge.length===y?je!==l?e.yieldX(je,[]):l:ze}),F(C,"$delete_at",function(ze){var je=this;if(A(je),ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=je.length),ze<0||ze>=je.length)return l;var Ge=je[ze];return je.splice(ze,1),Ge}),F(C,"$delete_if",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,ze===l?be(je,"enum_for",["delete_if"],function Ge(){var y=Ge.$$s==null?this:Ge.$$s;return y.$size()},{$$s:je}):(A(je),lt(je,r,ze),je)}),F(C,"$difference",function(ze){var je,Ge,y=this;return je=ne(arguments),Ge=je,be(Ge,"reduce",[y.$to_a().$dup()],function(xe,Me){return xe==null&&(xe=l),Me==null&&(Me=l),Ce(xe,Me)})},-1),F(C,"$dig",function(ze,je){var Ge,y,I=this,xe=l;return Ge=ne(arguments,1),y=Ge,xe=I["$[]"](ze),xe===l||y.length===0?xe:(t(xe["$respond_to?"]("dig"))||Q.$raise(c("TypeError"),""+xe.$class()+" does not have #dig method"),be(xe,"dig",$e(y)))},-2),F(C,"$drop",function(ze){var je=this;return ze=h(ze,c("Integer"),"to_int"),ze<0&&Q.$raise(c("ArgumentError")),je.slice(ze)}),F(C,"$dup",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,je.$$class===e.Array&&je.$$class.$allocate.$$pristine&&je.$copy_instance_variables.$$pristine&&je.$initialize_dup.$$pristine?je.slice(0):ve(je,Z(je,"dup",et,!1,!0),"dup",[],ze)}),F(C,"$each",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["each"],function I(){var xe=I.$$s==null?this:I.$$s;return xe.$size()},{$$s:je});for(var Ge=0,y=je.length;Ge<y;Ge++)i(ze,je[Ge]);return je}),F(C,"$each_index",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["each_index"],function I(){var xe=I.$$s==null?this:I.$$s;return xe.$size()},{$$s:je});for(var Ge=0,y=je.length;Ge<y;Ge++)i(ze,Ge);return je}),F(C,"$empty?",function(){var ze=this;return ze.length===0}),F(C,"$eql?",function(ze){var je=this,Ge={};function y(I,xe){var Me,Qe,$t,a;if(!xe.$$is_array||(xe=xe.$to_a(),I.length!==xe.length))return!1;for(Ge[I.$object_id()]=!0,Me=0,Qe=I.length;Me<Qe;Me++)if($t=I[Me],a=xe[Me],$t.$$is_array){if(a.$$is_array&&a.length!==$t.length||!Ge.hasOwnProperty($t.$object_id())&&!y($t,a))return!1}else if(!$t["$eql?"](a))return!1;return!0}return y(je,ze)}),F(C,"$fetch",function et(ze,je){var Ge=et.$$p||l,y=this;et.$$p=null;var I=ze;if(ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=y.length),ze>=0&&ze<y.length)return y[ze];if(Ge!==l&&je!=null&&y.$warn("warning: block supersedes default value argument"),Ge!==l)return Ge(I);if(je!=null)return je;y.length===0?Q.$raise(c("IndexError"),"index "+I+" outside of array bounds: 0...0"):Q.$raise(c("IndexError"),"index "+I+" outside of array bounds: -"+y.length+"..."+y.length)},-2),F(C,"$fill",function et(ze){var je=et.$$p||l,Ge,y,I,xe,Me=this,Qe=l,$t=l,a=l,ae=l,re=l;et.$$p=null,Ge=ne(arguments),y=Ge,A(Me);var W,me;if(t(je)?(t(y.length>2)&&Q.$raise(c("ArgumentError"),"wrong number of arguments ("+y.$length()+" for 0..2)"),xe=y,I=w(xe),Qe=I[0]==null?l:I[0],$t=I[1]==null?l:I[1]):(t(y.length==0)?Q.$raise(c("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(y.length>3)&&Q.$raise(c("ArgumentError"),"wrong number of arguments ("+y.$length()+" for 1..3)"),xe=y,I=w(xe),a=I[0]==null?l:I[0],Qe=I[1]==null?l:I[1],$t=I[2]==null?l:I[2]),pe(c("Range"),Qe)){if(t($t)&&Q.$raise(c("TypeError"),"length invalid with range"),ae=Qe.begin===l?0:h(Qe.begin,c("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&Q.$raise(c("RangeError"),""+Qe.$inspect()+" out of range"),re=Qe.end===l?-1:h(Qe.end,c("Integer"),"to_int"),t(re<0)&&(re+=this.length),t(Qe["$exclude_end?"]())||(re+=1),t(re<=ae))return Me}else if(t(Qe))if(ae=h(Qe,c("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&(ae=0),t($t)){if(re=h($t,c("Integer"),"to_int"),t(re==0))return Me;re+=ae}else re=this.length;else ae=0,re=this.length;if(t(ae>this.length))for(W=this.length;W<re;W++)Me[W]=l;if(t(re>this.length)&&(this.length=re),t(je))for(this.length;ae<re;ae++)me=je(ae),Me[ae]=me;else for(this.length;ae<re;ae++)Me[ae]=a;return Me},-1),F(C,"$first",function(ze){var je=this;return ze==null?je.length===0?l:je[0]:(ze=h(ze,c("Integer"),"to_int"),ze<0&&Q.$raise(c("ArgumentError"),"negative array size"),je.slice(0,ze))},-1),F(C,"$flatten",function(ze){var je=this;function Ge(y,I){var xe=[],Me,Qe,$t,a;for(y=y.$to_a(),Me=0,Qe=y.length;Me<Qe;Me++){if($t=y[Me],!d($t,"$to_ary",!0)){xe.push($t);continue}if(a=$t.$to_ary(),a===l){xe.push($t);continue}switch(a.$$is_array||Q.$raise(c("TypeError")),a===je&&Q.$raise(c("ArgumentError")),I){case void 0:xe=xe.concat(Ge(a));break;case 0:xe.push(a);break;default:xe.push.apply(xe,Ge(a,I-1))}}return xe}return ze!==void 0&&(ze=h(ze,c("Integer"),"to_int")),Ge(je,ze)},-1),F(C,"$flatten!",function(ze){var je=this;A(je);var Ge=je.$flatten(ze);if(je.length==Ge.length){for(var y=0,I=je.length;y<I&&je[y]===Ge[y];y++);if(y==I)return l}return je.$replace(Ge),je},-1),F(C,"$freeze",function(){var ze=this;return t(ze["$frozen?"]())?ze:z(ze)}),F(C,"$hash",function(){var ze=this,je=n===void 0,Ge=["A"],y=ze.$object_id(),I,xe,Me;try{if(je&&(n=Object.create(null)),n[y])return"self";for(Me in n)if(I=n[Me],ze["$eql?"](I))return"self";for(n[y]=ze,xe=0;xe<ze.length;xe++)I=ze[xe],Ge.push(I.$hash());return Ge.join(",")}finally{je&&(n=void 0)}}),F(C,"$include?",function(ze){for(var je=this,Ge=0,y=je.length;Ge<y;Ge++)if(je[Ge]["$=="](ze))return!0;return!1}),F(C,"$index",function et(ze){var je=et.$$p||l,Ge=this;et.$$p=null;var y,I,xe;if(ze!=null&&je!==l&&Ge.$warn("warning: given block not used"),ze!=null){for(y=0,I=Ge.length;y<I;y++)if(Ge[y]["$=="](ze))return y}else if(je!==l){for(y=0,I=Ge.length;y<I;y++)if(xe=je(Ge[y]),xe!==!1&&xe!==l)return y}else return Ge.$enum_for("index");return l},-1),F(C,"$insert",function(ze,je){var Ge,y,I=this;if(Ge=ne(arguments,1),y=Ge,A(I),ze=h(ze,c("Integer"),"to_int"),y.length>0){if(ze<0&&(ze+=I.length+1,ze<0&&Q.$raise(c("IndexError"),""+ze+" is out of bounds")),ze>I.length)for(var xe=I.length;xe<ze;xe++)I.push(l);I.splice.apply(I,[ze,0].concat(y))}return I},-2);var wt=[];F(C,"$inspect",function(){var ze=this,je=[],Ge=ze.$__id__(),y=!0;return function(){try{if(wt.indexOf(Ge)!==-1)return y=!1,"[...]";wt.push(Ge);for(var I=0,xe=ze.length;I<xe;I++){var Me=ze["$[]"](I);je.push(Le("Opal").$inspect(Me))}return"["+je.join(", ")+"]"}finally{y&&wt.pop()}}()}),F(C,"$intersection",function(ze){var je,Ge,y=this;return je=ne(arguments),Ge=je,be(Ge,"reduce",[y.$to_a().$dup()],function(xe,Me){return xe==null&&(xe=l),Me==null&&(Me=l),xe["$&"](Me)})},-1),F(C,"$intersect?",function(ze){var je=this;return je.$intersection(ze)["$empty?"]()["$!"]()}),F(C,"$join",function(ze){var je=this;if(Ae[","]==null&&(Ae[","]=l),ze==null&&(ze=l),t(je.length===0))return"";t(ze===l)&&(ze=Ae[","]);var Ge=[],y,I,xe,Me;for(y=0,I=je.length;y<I;y++){if(xe=je[y],d(xe,"$to_str")&&(Me=xe.$to_str(),Me!==l)){Ge.push(Me.$to_s());continue}if(d(xe,"$to_ary")&&(Me=xe.$to_ary(),Me===je&&Q.$raise(c("ArgumentError")),Me!==l)){Ge.push(Me.$join(ze));continue}if(d(xe,"$to_s")&&(Me=xe.$to_s(),Me!==l)){Ge.push(Me);continue}Q.$raise(c("NoMethodError").$new(""+Le("Opal").$inspect(je.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return ze===l?Ge.join(""):Ge.join(Y["$coerce_to!"](ze,c("String"),"to_str").$to_s())},-1),F(C,"$keep_if",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,ze===l?be(je,"enum_for",["keep_if"],function Ge(){var y=Ge.$$s==null?this:Ge.$$s;return y.$size()},{$$s:je}):(A(je),lt(je,t,ze),je)}),F(C,"$last",function(ze){var je=this;return ze==null?je.length===0?l:je[je.length-1]:(ze=h(ze,c("Integer"),"to_int"),ze<0&&Q.$raise(c("ArgumentError"),"negative array size"),ze>je.length&&(ze=je.length),je.slice(je.length-ze,je.length))},-1),F(C,"$length",function(){var ze=this;return ze.length}),F(C,"$max",function et(ze){var je=et.$$p||l,Ge=this;return et.$$p=null,be(Ge.$each(),"max",[ze],je.$to_proc())},-1),F(C,"$min",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,be(je.$each(),"min",[],ze.$to_proc())});function At(et,ze){for(var je=ze>=0?1:0;ze;)je*=et,et--,ze--;return je}return F(C,"$permutation",function et(ze){var je=et.$$p||l,Ge=this,y=l,I=l;if(et.$$p=null,je===l)return be(Ge,"enum_for",["permutation",ze],function a(){var ae=a.$$s==null?this:a.$$s;return At(ae.length,ze===void 0?ae.length:ze)},{$$s:Ge});var xe,Me,Qe;if(ze===void 0?ze=Ge.length:ze=h(ze,c("Integer"),"to_int"),!(ze<0||Ge.length<ze))if(ze===0)e.yield1(je,[]);else if(ze===1)for(var $t=0;$t<Ge.length;$t++)e.yield1(je,[Ge[$t]]);else y=Le("Array").$new(ze),I=Le("Array").$new(Ge.length,!1),xe=function(a,ae,re,W,me){Ge=this;for(var v=0;v<Ge.length;v++)if(W["$[]"](v)["$!"]())if(ae[re]=v,re<a-1)W[v]=!0,xe.call(Ge,a,ae,re+1,W,me),W[v]=!1;else{Qe=[];for(var G=0;G<ae.length;G++)Qe.push(Ge[ae[G]]);i(me,Qe)}},je!==l?(Me=Ge.slice(),xe.call(Me,ze,y,0,I,je)):xe.call(Ge,ze,y,0,I,je);return Ge},-1),F(C,"$repeated_permutation",function et(ze){var je=et.$$p||l,Ge=this,y=l;if(et.$$p=null,y=Y["$coerce_to!"](ze,c("Integer"),"to_int"),je===l)return be(Ge,"enum_for",["repeated_permutation",y],function xe(){var Me=xe.$$s==null?this:xe.$$s;return t(j(y,0))?Me.$size()["$**"](y):0},{$$s:Ge});function I(xe,Me,Qe){if(Me.length==xe){var $t=Me.slice();e.yield1(je,$t);return}for(var a=0;a<Qe.length;a++)Me.push(Qe[a]),I(xe,Me,Qe),Me.pop()}return I(y,[],Ge.slice()),Ge}),F(C,"$pop",function(ze){var je=this;return A(je),t(ze===void 0)?t(je.length===0)?l:je.pop():(ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&Q.$raise(c("ArgumentError"),"negative array size"),t(je.length===0)?[]:t(ze===1)?[je.pop()]:t(ze>je.length)?je.splice(0,je.length):je.splice(je.length-ze,je.length))},-1),F(C,"$product",function et(ze){var je=et.$$p||l,Ge,y,I=this;et.$$p=null,Ge=ne(arguments),y=Ge;var xe=je!==l?null:[],Me=y.length+1,Qe=new Array(Me),$t=new Array(Me),a=new Array(Me),ae,re,W,me,v=1;for(a[0]=I,ae=1;ae<Me;ae++)a[ae]=h(y[ae-1],c("Array"),"to_ary");for(ae=0;ae<Me;ae++){if(me=a[ae].length,me===0)return xe||I;v*=me,v>2147483647&&Q.$raise(c("RangeError"),"too big to product"),$t[ae]=me,Qe[ae]=0}e:for(;;){for(W=[],ae=0;ae<Me;ae++)W.push(a[ae][Qe[ae]]);for(xe?xe.push(W):e.yield1(je,W),re=Me-1,Qe[re]++;Qe[re]===$t[re];){if(Qe[re]=0,--re<0)break e;Qe[re]++}}return xe||I},-1),F(C,"$push",function(ze){var je,Ge,y=this;je=ne(arguments),Ge=je,A(y);for(var I=0,xe=Ge.length;I<xe;I++)y.push(Ge[I]);return y},-1),F(C,"$rassoc",function(ze){for(var je=this,Ge=0,y=je.length,I;Ge<y;Ge++)if(I=je[Ge],I.length&&I[1]!==void 0&&I[1]["$=="](ze))return I;return l}),F(C,"$reject",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["reject"],function Me(){var Qe=Me.$$s==null?this:Me.$$s;return Qe.$size()},{$$s:je});for(var Ge=[],y=0,I=je.length,xe;y<I;y++)xe=ze(je[y]),(xe===!1||xe===l)&&Ge.push(je[y]);return Ge}),F(C,"$reject!",function et(){var ze=et.$$p||l,je=this,Ge=l;return et.$$p=null,ze===l?be(je,"enum_for",["reject!"],function y(){var I=y.$$s==null?this:y.$$s;return I.$size()},{$$s:je}):(A(je),Ge=je.$length(),be(je,"delete_if",[],ze.$to_proc()),O(je.$length(),Ge)?l:je)}),F(C,"$replace",function(ze){var je=this;return A(je),ze=pe(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),je.splice(0,je.length),je.push.apply(je,ze),je}),F(C,"$reverse",function(){var ze=this;return ze.slice(0).reverse()}),F(C,"$reverse!",function(){var ze=this;return A(ze),ze.reverse()}),F(C,"$reverse_each",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,ze===l?be(je,"enum_for",["reverse_each"],function Ge(){var y=Ge.$$s==null?this:Ge.$$s;return y.$size()},{$$s:je}):(be(je.$reverse(),"each",[],ze.$to_proc()),je)}),F(C,"$rindex",function et(ze){var je=et.$$p||l,Ge=this;et.$$p=null;var y,I;if(ze!=null&&je!==l&&Ge.$warn("warning: given block not used"),ze!=null){for(y=Ge.length-1;y>=0&&!(y>=Ge.length);y--)if(Ge[y]["$=="](ze))return y}else if(je!==l){for(y=Ge.length-1;y>=0&&!(y>=Ge.length);y--)if(I=je(Ge[y]),I!==!1&&I!==l)return y}else if(ze==null)return Ge.$enum_for("rindex");return l},-1),F(C,"$rotate",function(ze){var je=this;ze==null&&(ze=1);var Ge,y,I,xe;return ze=h(ze,c("Integer"),"to_int"),je.length===1?je.slice():je.length===0?[]:(Ge=je.slice(),y=ze%Ge.length,I=Ge.slice(y),xe=Ge.slice(0,y),I.concat(xe))},-1),F(C,"$rotate!",function(ze){var je=this,Ge=l;return ze==null&&(ze=1),A(je),je.length===0||je.length===1?je:(ze=h(ze,c("Integer"),"to_int"),Ge=je.$rotate(ze),je.$replace(Ge))},-1),function(et,ze){var je=L(et,ze,"SampleRandom"),Ge=je.$$prototype;return Ge.rng=l,F(je,"$initialize",de("rng")),F(je,"$rand",function(I){var xe=this,Me=l;return Me=h(xe.rng.$rand(I),c("Integer"),"to_int"),t(Me<0)&&Q.$raise(c("RangeError"),"random value must be >= 0"),t(Me<I)||Q.$raise(c("RangeError"),"random value must be less than Array size"),Me})}(C,null),F(C,"$sample",function(ze,je){var Ge=this,y=l,I=l;if(t(ze===void 0))return Ge.$at(Q.$rand(Ge.length));if(t(je===void 0)?t(y=Y["$coerce_to?"](ze,c("Hash"),"to_hash"))?(je=y,ze=l):(je=l,ze=h(ze,c("Integer"),"to_int")):(ze=h(ze,c("Integer"),"to_int"),je=h(je,c("Hash"),"to_hash")),t(ze)&&t(ze<0)&&Q.$raise(c("ArgumentError"),"count must be greater than 0"),t(je)&&(I=je["$[]"]("random")),I=t(I)&&t(I["$respond_to?"]("rand"))?Le("SampleRandom").$new(I):Q,!t(ze))return Ge[I.$rand(Ge.length)];var xe,Me,Qe,$t,a,ae,re,W;switch(ze>Ge.length&&(ze=Ge.length),ze){case 0:return[];case 1:return[Ge[I.$rand(Ge.length)]];case 2:return $t=I.$rand(Ge.length),a=I.$rand(Ge.length-1),$t<=a&&a++,[Ge[$t],Ge[a]];default:if(Ge.length/ze>3){for(xe=!1,Me=0,Qe=Le("Array").$new(ze),$t=1,Qe[0]=I.$rand(Ge.length);$t<ze;){for(ae=I.$rand(Ge.length),a=0;a<$t;){for(;ae===Qe[a];){if(Me++,Me>100){xe=!0;break}ae=I.$rand(Ge.length)}if(xe)break;a++}if(xe)break;Qe[$t]=ae,$t++}if(!xe){for($t=0;$t<ze;)Qe[$t]=Ge[Qe[$t]],$t++;return Qe}}Qe=Ge.slice();for(var me=0;me<ze;me++)re=I.$rand(Ge.length-me)+me,W=Qe[me],Qe[me]=Qe[re],Qe[re]=W;return ze===Ge.length?Qe:Qe["$[]"](0,ze)}},-1),F(C,"$select",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["select"],function Qe(){var $t=Qe.$$s==null?this:Qe.$$s;return $t.$size()},{$$s:je});for(var Ge=[],y=0,I=je.length,xe,Me;y<I;y++)xe=je[y],Me=i(ze,xe),t(Me)&&Ge.push(xe);return Ge}),F(C,"$select!",function et(){var ze=et.$$p||l,je=this;if(et.$$p=null,ze===l)return be(je,"enum_for",["select!"],function y(){var I=y.$$s==null?this:y.$$s;return I.$size()},{$$s:je});A(je);var Ge=je.length;return be(je,"keep_if",[],ze.$to_proc()),je.length===Ge?l:je}),F(C,"$shift",function(ze){var je=this;return A(je),t(ze===void 0)?t(je.length===0)?l:nt(je):(ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&Q.$raise(c("ArgumentError"),"negative array size"),t(je.length===0)?[]:je.splice(0,ze))},-1),F(C,"$shuffle",function(ze){var je=this;return je.$dup().$to_a()["$shuffle!"](ze)},-1),F(C,"$shuffle!",function(ze){var je=this;A(je);var Ge,y=je.length,I,xe;for(ze!==void 0&&(ze=Y["$coerce_to?"](ze,c("Hash"),"to_hash"),ze!==l&&(ze=ze["$[]"]("random"),ze!==l&&ze["$respond_to?"]("rand")&&(Ge=ze)));y;)Ge?(I=Ge.$rand(y).$to_int(),I<0&&Q.$raise(c("RangeError"),"random number too small "+I),I>=y&&Q.$raise(c("RangeError"),"random number too big "+I)):I=je.$rand(y),xe=je[--y],je[y]=je[I],je[I]=xe;return je},-1),F(C,"$slice!",function(ze,je){var Ge=this,y=l,I=l,xe=l,Me=l,Qe=l;if(A(Ge),y=l,t(je===void 0))if(pe(c("Range"),ze)){I=ze,y=Ge["$[]"](I),xe=I.begin===l?0:h(I.begin,c("Integer"),"to_int"),Me=I.end===l?-1:h(I.end,c("Integer"),"to_int"),xe<0&&(xe+=Ge.length),Me<0?Me+=Ge.length:Me>=Ge.length&&(Me=Ge.length-1,I.excl&&(Me+=1));var $t=Me-xe;I.excl&&I.end!==l?Me-=1:$t+=1,xe<Ge.length&&xe>=0&&Me<Ge.length&&Me>=0&&$t>0&&Ge.splice(xe,$t)}else{if(Qe=h(ze,c("Integer"),"to_int"),Qe<0&&(Qe+=Ge.length),Qe<0||Qe>=Ge.length)return l;y=Ge[Qe],Qe===0?Ge.shift():Ge.splice(Qe,1)}else{if(Qe=h(ze,c("Integer"),"to_int"),je=h(je,c("Integer"),"to_int"),je<0)return l;y=Ge["$[]"](Qe,je),Qe<0&&(Qe+=Ge.length),Qe+je>Ge.length&&(je=Ge.length-Qe),Qe<Ge.length&&Qe>=0&&Ge.splice(Qe,je)}return y},-2),F(C,"$sort",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,t(je.length>1)?(ze===l&&(ze=function(Ge,y){return Ge["$<=>"](y)}),je.slice().sort(function(Ge,y){var I=ze(Ge,y);return I===l&&Q.$raise(c("ArgumentError"),"comparison of "+Ge.$inspect()+" with "+y.$inspect()+" failed"),ue(I,0)?1:V(I,0)?-1:0})):je}),F(C,"$sort!",function et(){var ze=et.$$p||l,je=this;et.$$p=null,A(je);var Ge;ze!==l?Ge=be(je.slice(),"sort",[],ze.$to_proc()):Ge=je.slice().$sort(),je.length=0;for(var y=0,I=Ge.length;y<I;y++)je.push(Ge[y]);return je}),F(C,"$sort_by!",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,ze===l?be(je,"enum_for",["sort_by!"],function Ge(){var y=Ge.$$s==null?this:Ge.$$s;return y.$size()},{$$s:je}):(A(je),je.$replace(be(je,"sort_by",[],ze.$to_proc())))}),F(C,"$take",function(ze){var je=this;return ze<0&&Q.$raise(c("ArgumentError")),je.slice(0,ze)}),F(C,"$take_while",function et(){var ze=et.$$p||l,je=this;et.$$p=null;for(var Ge=[],y=0,I=je.length,xe,Me;y<I;y++){if(xe=je[y],Me=ze(xe),Me===!1||Me===l)return Ge;Ge.push(xe)}return Ge}),F(C,"$to_a",function(){var ze=this;return ze.$$class===e.Array?ze:e.Array.$new(ze)}),F(C,"$to_ary",Fe),F(C,"$to_h",function et(){var ze=et.$$p||l,je=this,Ge=l;et.$$p=null,Ge=je,ze!==l&&(Ge=be(Ge,"map",[],ze.$to_proc()));var y,I=Ge.length,xe,Me,Qe,$t=se([],{});for(y=0;y<I;y++)xe=Y["$coerce_to?"](Ge[y],c("Array"),"to_ary"),xe.$$is_array||Q.$raise(c("TypeError"),"wrong element type "+xe.$class()+" at "+y+" (expected array)"),xe.length!==2&&Q.$raise(c("ArgumentError"),"wrong array length at "+y+" (expected 2, was "+xe.$length()+")"),Me=xe[0],Qe=xe[1],o($t,Me,Qe);return $t}),F(C,"$transpose",function(){var ze=this,je=l,Ge=l;return t(ze["$empty?"]())?[]:(je=[],Ge=l,be(ze,"each",[],function(I){var xe=l;return I==null&&(I=l),I=pe(c("Array"),I)?I.$to_a():h(I,c("Array"),"to_ary").$to_a(),Ge=t(xe=Ge)?xe:I.length,ce(I.length,Ge)&&Q.$raise(c("IndexError"),"element size differs ("+I.length+" should be "+Ge+")"),be(I.length,"times",[],function(Qe){var $t,a=l;return Qe==null&&(Qe=l),a=t(xe=je["$[]"](Qe))?xe:($t=[Qe,[]],be(je,"[]=",$t),$t[$t.length-1]),a["$<<"](I.$at(Qe))})}),je)}),F(C,"$union",function(ze){var je,Ge,y=this;return je=ne(arguments),Ge=je,be(Ge,"reduce",[y.$uniq()],function(xe,Me){return xe==null&&(xe=l),Me==null&&(Me=l),xe["$|"](Me)})},-1),F(C,"$uniq",function et(){var ze=et.$$p||l,je=this;et.$$p=null;var Ge=se([],{}),y,I,xe,Me;if(ze===l)for(y=0,I=je.length;y<I;y++)xe=je[y],s(Ge,xe)===void 0&&o(Ge,xe,xe);else for(y=0,I=je.length;y<I;y++)xe=je[y],Me=i(ze,xe),s(Ge,Me)===void 0&&o(Ge,Me,xe);return Ge.$values()}),F(C,"$uniq!",function et(){var ze=et.$$p||l,je=this;et.$$p=null,A(je);var Ge=je.length,y=se([],{}),I,xe,Me,Qe;for(I=0,xe=Ge;I<xe;I++){if(Me=je[I],Qe=ze===l?Me:i(ze,Me),s(y,Qe)===void 0){o(y,Qe,Me);continue}je.splice(I,1),xe--,I--}return je.length===Ge?l:je}),F(C,"$unshift",function(ze){var je,Ge,y=this;je=ne(arguments),Ge=je,A(y);var I=y.length,xe=Ge.length;if(xe==0)return y;for(var Me=I-xe,Qe=0;Qe<xe;Qe++)y.push(y[Me+Qe]);for(var $t=I-1;$t-xe>=0;)y[$t]=y[$t-xe],$t--;for(var a=0;a<xe;a++)y[a]=Ge[a];return y},-1),F(C,"$values_at",function(ze){var je,Ge,y=this,I=l;return je=ne(arguments),Ge=je,I=[],be(Ge,"each",[],function xe(Me){var Qe=xe.$$s==null?this:xe.$$s,$t=l,a=l,ae=l;return Me==null&&(Me=l),t(Me["$is_a?"](c("Range")))?($t=Me.$end()===l?-1:h(Me.$end(),c("Integer"),"to_int"),a=Me.$begin()===l?0:h(Me.$begin(),c("Integer"),"to_int"),a<0?(a=a+Qe.length,l):($t<0&&($t=$t+Qe.length),Me["$exclude_end?"]()&&Me.$end()!==l&&$t--,$t<a?l:be(a,"upto",[$t],function re(W){var me=re.$$s==null?this:re.$$s;return W==null&&(W=l),I["$<<"](me.$at(W))},{$$s:Qe}))):(ae=h(Me,c("Integer"),"to_int"),I["$<<"](Qe.$at(ae)))},{$$s:y}),I},-1),F(C,"$zip",function et(ze){var je=et.$$p||l,Ge,y,I=this,xe=l;et.$$p=null,Ge=ne(arguments),y=Ge;var Me=[],Qe=I.length,$t,a,ae,re,W;for(re=0,W=y.length;re<W;re++)if(a=y[re],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){y[re]=a.$take(Qe);continue}y[re]=(t(xe=Y["$coerce_to?"](a,c("Array"),"to_ary"))?xe:Y["$coerce_to!"](a,c("Enumerator"),"to_enum","each")).$to_a()}for(ae=0;ae<Qe;ae++){for($t=[I[ae]],re=0,W=y.length;re<W;re++)a=y[re][ae],a==null&&(a=l),$t[re+1]=a;Me[ae]=$t}if(je!==l){for(ae=0;ae<Qe;ae++)e.yield1(je,Me[ae]);return l}return Me},-1),ge(C,"$inherited",function(ze){ze.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),F(C,"$instance_variables",function et(){var ze=et.$$p||l,je=this;return et.$$p=null,be(ve(je,Z(je,"instance_variables",et,!1,!0),"instance_variables",[],ze),"reject",[],function(y){var I=l;return y==null&&(y=l),t(I=/^@\d+$/.test(y))?I:y["$=="]("@length")})}),F(C,"$pack",function(ze){return ne(arguments),Q.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),U(C,"append","push"),U(C,"filter","select"),U(C,"filter!","select!"),U(C,"map","collect"),U(C,"map!","collect!"),U(C,"prepend","unshift"),U(C,"size","length"),U(C,"slice","[]"),U(C,"to_s","inspect"),Y.$pristine(C.$singleton_class(),"allocate"),Y.$pristine(C,"copy_instance_variables","initialize_dup")}("::",Array,$)};Opal.modules["corelib/hash"]=function(e){var t=e.yield1,r=e.hash,n=e.hash_init,i=e.hash_get,s=e.hash_put,o=e.hash_delete,f=e.deny_frozen_access,h=e.freeze,d=e.klass,A=e.slice,z=e.Opal,L=e.Kernel,ne=e.defs,ge=e.def,Q=e.send,F=e.rb_ge,Y=e.rb_gt,pe=e.hash2,se=e.truthy,ve=e.to_a,Z=e.return_self,be=e.alias,ue=e.top,Ee=[],O=e.nil,Ce=e.$$$;return e.add_stubs("require,include,coerce_to?,[],merge!,allocate,raise,coerce_to!,each,fetch,>=,>,==,compare_by_identity,lambda?,abs,arity,enum_for,size,respond_to?,class,dig,except!,dup,delete,new,inspect,map,to_proc,flatten,frozen?,eql?,default,default_proc,default_proc=,default=,to_h,proc,clone,select,select!,has_key?,indexes,index,length,[]=,has_value?"),ue.$require("corelib/enumerable"),function($e,w,Ae){var j=d($e,w,"Hash"),de=[j].concat(Ae),V=e.$r(de);j.$include(Ce("Enumerable")),j.$$prototype.$$is_hash=!0,ne(j,"$[]",function(U){var x,$,l=this;x=A(arguments),$=x;var c,p=$.length,_;if(p===1){if(c=z["$coerce_to?"]($["$[]"](0),Ce("Hash"),"to_hash"),c!==O)return l.$allocate()["$merge!"](c);for($=z["$coerce_to?"]($["$[]"](0),Ce("Array"),"to_ary"),$===O&&L.$raise(Ce("ArgumentError"),"odd number of arguments for Hash"),p=$.length,c=l.$allocate(),_=0;_<p;_++)if($[_].$$is_array)switch($[_].length){case 1:c.$store($[_][0],O);break;case 2:c.$store($[_][0],$[_][1]);break;default:L.$raise(Ce("ArgumentError"),"invalid number of elements ("+$[_].length+" for 1..2)")}return c}for(p%2!==0&&L.$raise(Ce("ArgumentError"),"odd number of arguments for Hash"),c=l.$allocate(),_=0;_<p;_+=2)c.$store($[_],$[_+1]);return c},-1),ne(j,"$allocate",function(){var U=this,x=new U.$$constructor;return n(x),x.$$none=O,x.$$proc=O,x}),ne(j,"$try_convert",function(U){return z["$coerce_to?"](U,Ce("Hash"),"to_hash")}),ge(j,"$initialize",function ce(U){var x=ce.$$p||O,$=this;return ce.$$p=null,f($),U!==void 0&&x!==O&&L.$raise(Ce("ArgumentError"),"wrong number of arguments (1 for 0)"),$.$$none=U===void 0?O:U,$.$$proc=x,$},-1),ge(j,"$==",function(U){var x=this;if(x===U)return!0;if(!U.$$is_hash||x.$$keys.length!==U.$$keys.length)return!1;for(var $=0,l=x.$$keys,c=l.length,p,_,S;$<c;$++)if(p=l[$],p.$$is_string?(_=x.$$smap[p],S=U.$$smap[p]):(_=p.value,S=i(U,p.key)),S===void 0||!_["$eql?"](S))return!1;return!0}),ge(j,"$>=",function(U){var x=this,$=O;return U=z["$coerce_to!"](U,Ce("Hash"),"to_hash"),x.$$keys.length<U.$$keys.length?!1:($=!0,Q(U,"each",[],function l(c,p){var _=l.$$s==null?this:l.$$s,S=O;if(c==null&&(c=O),p==null&&(p=O),S=_.$fetch(c,null),S==null||S!==p){$=!1;return}},{$$s:x}),$)}),ge(j,"$>",function(U){var x=this;return U=z["$coerce_to!"](U,Ce("Hash"),"to_hash"),x.$$keys.length<=U.$$keys.length?!1:F(x,U)}),ge(j,"$<",function(U){var x=this;return U=z["$coerce_to!"](U,Ce("Hash"),"to_hash"),Y(U,x)}),ge(j,"$<=",function(U){var x=this;return U=z["$coerce_to!"](U,Ce("Hash"),"to_hash"),F(U,x)}),ge(j,"$[]",function(U){var x=this,$=i(x,U);return $!==void 0?$:x.$default(U)}),ge(j,"$[]=",function(U,x){var $=this;return f($),s($,U,x),x}),ge(j,"$assoc",function(U){for(var x=this,$=0,l=x.$$keys,c=l.length,p;$<c;$++)if(p=l[$],p.$$is_string){if(p["$=="](U))return[p,x.$$smap[p]]}else if(p.key["$=="](U))return[p.key,p.value];return O}),ge(j,"$clear",function(){var U=this;return f(U),n(U),U}),ge(j,"$clone",function(){var U=this,x=new U.$$class;return n(x),e.hash_clone(U,x),x}),ge(j,"$compact",function(){for(var U=this,x=r(),$=0,l=U.$$keys,c=l.length,p,_,S;$<c;$++)p=l[$],p.$$is_string?_=U.$$smap[p]:(_=p.value,p=p.key),_!==O&&s(x,p,_);return x}),ge(j,"$compact!",function(){var U=this;f(U);for(var x=!1,$=0,l=U.$$keys,c=l.length,p,_,S;$<c;$++)p=l[$],p.$$is_string?_=U.$$smap[p]:(_=p.value,p=p.key),_===O&&o(U,p)!==void 0&&(x=!0,c--,$--);return x?U:O}),ge(j,"$compare_by_identity",function(){var U=this;f(U);var x,$,l,c=U.$$keys,p;if(U.$$by_identity)return U;if(U.$$keys.length===0)return U.$$by_identity=!0,U;for(p=pe([],{}).$compare_by_identity(),x=0,$=c.length;x<$;x++)l=c[x],l.$$is_string||(l=l.key),s(p,l,i(U,l));return U.$$by_identity=!0,U.$$map=p.$$map,U.$$smap=p.$$smap,U}),ge(j,"$compare_by_identity?",function(){var U=this;return U.$$by_identity===!0}),ge(j,"$default",function(U){var x=this;return U!==void 0&&x.$$proc!==O&&x.$$proc!==void 0?x.$$proc.$call(x,U):x.$$none===void 0?O:x.$$none},-1),ge(j,"$default=",function(U){var x=this;return f(x),x.$$proc=O,x.$$none=U,U}),ge(j,"$default_proc",function(){var U=this;return U.$$proc!==void 0?U.$$proc:O}),ge(j,"$default_proc=",function(U){var x=this;f(x);var $=U;return $!==O&&($=z["$coerce_to!"]($,Ce("Proc"),"to_proc"),$["$lambda?"]()&&$.$arity().$abs()!==2&&L.$raise(Ce("TypeError"),"default_proc takes two arguments")),x.$$none=O,x.$$proc=$,U}),ge(j,"$delete",function ce(U){var x=ce.$$p||O,$=this;ce.$$p=null,f($);var l=o($,U);return l!==void 0?l:x!==O?e.yield1(x,U):O}),ge(j,"$delete_if",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["delete_if"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$size()},{$$s:x});f(x);for(var $=0,l=x.$$keys,c=l.length,p,_,S;$<c;$++)p=l[$],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),S=U(p,_),S!==!1&&S!==O&&o(x,p)!==void 0&&(c--,$--);return x}),ge(j,"$dig",function(U,x){var $,l,c=this,p=O;return $=A(arguments,1),l=$,p=c["$[]"](U),p===O||l.length===0?p:(se(p["$respond_to?"]("dig"))||L.$raise(Ce("TypeError"),""+p.$class()+" does not have #dig method"),Q(p,"dig",ve(l)))},-2),ge(j,"$each",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["each"],function S(){var C=S.$$s==null?this:S.$$s;return C.$size()},{$$s:x});for(var $=0,l=x.$$keys.slice(),c=l.length,p,_;$<c;$++)p=l[$],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),t(U,[p,_]);return x}),ge(j,"$each_key",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["each_key"],function _(){var S=_.$$s==null?this:_.$$s;return S.$size()},{$$s:x});for(var $=0,l=x.$$keys.slice(),c=l.length,p;$<c;$++)p=l[$],U(p.$$is_string?p:p.key);return x}),ge(j,"$each_value",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["each_value"],function _(){var S=_.$$s==null?this:_.$$s;return S.$size()},{$$s:x});for(var $=0,l=x.$$keys.slice(),c=l.length,p;$<c;$++)p=l[$],U(p.$$is_string?x.$$smap[p]:p.value);return x}),ge(j,"$empty?",function(){var U=this;return U.$$keys.length===0}),ge(j,"$except",function(U){var x,$,l=this;return x=A(arguments),$=x,Q(l.$dup(),"except!",ve($))},-1),ge(j,"$except!",function(U){var x,$,l=this;return x=A(arguments),$=x,Q($,"each",[],function c(p){var _=c.$$s==null?this:c.$$s;return p==null&&(p=O),_.$delete(p)},{$$s:l}),l},-1),ge(j,"$fetch",function ce(U,x){var $=ce.$$p||O,l=this;ce.$$p=null;var c=i(l,U);return c!==void 0?c:$!==O?$(U):x!==void 0?x:L.$raise(Ce("KeyError").$new("key not found: "+U.$inspect(),pe(["key","receiver"],{key:U,receiver:l})))},-2),ge(j,"$fetch_values",function ce(U){var x=ce.$$p||O,$,l,c=this;return ce.$$p=null,$=A(arguments),l=$,Q(l,"map",[],function p(_){var S=p.$$s==null?this:p.$$s;return _==null&&(_=O),Q(S,"fetch",[_],x.$to_proc())},{$$s:c})},-1),ge(j,"$flatten",function(U){var x=this;U==null&&(U=1),U=z["$coerce_to!"](U,Ce("Integer"),"to_int");for(var $=[],l=0,c=x.$$keys,p=c.length,_,S;l<p;l++){if(_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),$.push(_),S.$$is_array){if(U===1){$.push(S);continue}$=$.concat(S.$flatten(U-2));continue}$.push(S)}return $},-1),ge(j,"$freeze",function(){var U=this;return se(U["$frozen?"]())?U:h(U)}),ge(j,"$has_key?",function(U){var x=this;return i(x,U)!==void 0}),ge(j,"$has_value?",function(U){for(var x=this,$=0,l=x.$$keys,c=l.length,p;$<c;$++)if(p=l[$],(p.$$is_string?x.$$smap[p]:p.value)["$=="](U))return!0;return!1}),ge(j,"$hash",function(){var U=this,x=e.hash_ids===void 0,$=U.$object_id(),l=["Hash"],c,p;try{if(x&&(e.hash_ids=Object.create(null)),e[$])return"self";for(c in e.hash_ids)if(p=e.hash_ids[c],U["$eql?"](p))return"self";e.hash_ids[$]=U;for(var _=0,S=U.$$keys,C=S.length;_<C;_++)c=S[_],c.$$is_string?l.push([c,U.$$smap[c].$hash()]):l.push([c.key_hash,c.value.$hash()]);return l.sort().join()}finally{x&&(e.hash_ids=void 0)}}),ge(j,"$index",function(U){for(var x=this,$=0,l=x.$$keys,c=l.length,p,_;$<c;$++)if(p=l[$],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),_["$=="](U))return p;return O}),ge(j,"$indexes",function(U){var x,$,l=this;x=A(arguments),$=x;for(var c=[],p=0,_=$.length,S,C;p<_;p++){if(S=$[p],C=i(l,S),C===void 0){c.push(l.$default());continue}c.push(C)}return c},-1);var Fe;return ge(j,"$inspect",function(){var U=this,x=Fe===void 0,$=U.$object_id(),l=[];return function(){try{if(x&&(Fe={}),Fe.hasOwnProperty($))return"{...}";Fe[$]=!0;for(var c=0,p=U.$$keys,_=p.length,S,C;c<_;c++)S=p[c],S.$$is_string?C=U.$$smap[S]:(C=S.value,S=S.key),S=V("Opal").$inspect(S),C=V("Opal").$inspect(C),l.push(S+"=>"+C);return"{"+l.join(", ")+"}"}finally{x&&(Fe=void 0)}}()}),ge(j,"$invert",function(){for(var U=this,x=r(),$=0,l=U.$$keys,c=l.length,p,_;$<c;$++)p=l[$],p.$$is_string?_=U.$$smap[p]:(_=p.value,p=p.key),s(x,_,p);return x}),ge(j,"$keep_if",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["keep_if"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$size()},{$$s:x});f(x);for(var $=0,l=x.$$keys,c=l.length,p,_,S;$<c;$++)p=l[$],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),S=U(p,_),(S===!1||S===O)&&o(x,p)!==void 0&&(c--,$--);return x}),ge(j,"$keys",function(){for(var U=this,x=[],$=0,l=U.$$keys,c=l.length,p;$<c;$++)p=l[$],p.$$is_string?x.push(p):x.push(p.key);return x}),ge(j,"$length",function(){var U=this;return U.$$keys.length}),ge(j,"$merge",function ce(U){var x=ce.$$p||O,$,l,c=this;return ce.$$p=null,$=A(arguments),l=$,Q(c.$dup(),"merge!",ve(l),x.$to_proc())},-1),ge(j,"$merge!",function ce(U){var x=ce.$$p||O,$,l,c=this;ce.$$p=null,$=A(arguments),l=$,f(c);var p,_,S,C,ee,Le,nt,dt;for(p=0;p<l.length;++p)if(S=z["$coerce_to!"](l[p],Ce("Hash"),"to_hash"),C=S.$$keys,ee=C.length,x===O)for(_=0;_<ee;_++)Le=C[_],Le.$$is_string?dt=S.$$smap[Le]:(dt=Le.value,Le=Le.key),s(c,Le,dt);else for(_=0;_<ee;_++){if(Le=C[_],Le.$$is_string?dt=S.$$smap[Le]:(dt=Le.value,Le=Le.key),nt=i(c,Le),nt===void 0){s(c,Le,dt);continue}s(c,Le,x(Le,nt,dt))}return c},-1),ge(j,"$rassoc",function(U){for(var x=this,$=0,l=x.$$keys,c=l.length,p,_;$<c;$++)if(p=l[$],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),_["$=="](U))return[p,_];return O}),ge(j,"$rehash",function(){var U=this;return f(U),e.hash_rehash(U),U}),ge(j,"$reject",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["reject"],function ee(){var Le=ee.$$s==null?this:ee.$$s;return Le.$size()},{$$s:x});for(var $=r(),l=0,c=x.$$keys,p=c.length,_,S,C;l<p;l++)_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),C=U(_,S),(C===!1||C===O)&&s($,_,S);return $}),ge(j,"$reject!",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["reject!"],function ee(){var Le=ee.$$s==null?this:ee.$$s;return Le.$size()},{$$s:x});f(x);for(var $=!1,l=0,c=x.$$keys,p=c.length,_,S,C;l<p;l++)_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),C=U(_,S),C!==!1&&C!==O&&o(x,_)!==void 0&&($=!0,p--,l--);return $?x:O}),ge(j,"$replace",function(U){var x=this;f(x),U=z["$coerce_to!"](U,Ce("Hash"),"to_hash"),n(x);for(var $=0,l=U.$$keys,c=l.length,p,_,S;$<c;$++)p=l[$],p.$$is_string?S=U.$$smap[p]:(S=p.value,p=p.key),s(x,p,S);return se(U.$default_proc())?x["$default_proc="](U.$default_proc()):x["$default="](U.$default()),x}),ge(j,"$select",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["select"],function ee(){var Le=ee.$$s==null?this:ee.$$s;return Le.$size()},{$$s:x});for(var $=r(),l=0,c=x.$$keys,p=c.length,_,S,C;l<p;l++)_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),C=U(_,S),C!==!1&&C!==O&&s($,_,S);return $}),ge(j,"$select!",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["select!"],function ee(){var Le=ee.$$s==null?this:ee.$$s;return Le.$size()},{$$s:x});f(x);for(var $=O,l=0,c=x.$$keys,p=c.length,_,S,C;l<p;l++)_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),C=U(_,S),(C===!1||C===O)&&(o(x,_)!==void 0&&(p--,l--),$=x);return $}),ge(j,"$shift",function(){var U=this;f(U);var x=U.$$keys,$;return x.length>0?($=x[0],$=$.$$is_string?$:$.key,[$,o(U,$)]):O}),ge(j,"$slice",function(U){var x,$,l=this;x=A(arguments),$=x;for(var c=r(),p=0,_=$.length;p<_;p++){var S=$[p],C=i(l,S);C!==void 0&&s(c,S,C)}return c},-1),ge(j,"$to_a",function(){for(var U=this,x=[],$=0,l=U.$$keys,c=l.length,p,_;$<c;$++)p=l[$],p.$$is_string?_=U.$$smap[p]:(_=p.value,p=p.key),x.push([p,_]);return x}),ge(j,"$to_h",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,U!==O)return Q(x,"map",[],U.$to_proc()).$to_h();if(x.$$class===e.Hash)return x;var $=new e.Hash;return n($),e.hash_clone(x,$),$}),ge(j,"$to_hash",Z),ge(j,"$to_proc",function(){var U=this;return Q(U,"proc",[],function x($){var l=x.$$s==null?this:x.$$s;return $==null&&L.$raise(Ce("ArgumentError"),"no key given"),l["$[]"]($)},{$$arity:-1,$$s:U})}),ge(j,"$transform_keys",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["transform_keys"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$size()},{$$s:x});for(var $=r(),l=0,c=x.$$keys,p=c.length,_,S;l<p;l++)_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),_=t(U,_),s($,_,S);return $}),ge(j,"$transform_keys!",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["transform_keys!"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$size()},{$$s:x});f(x);var $=e.slice(x.$$keys),l,c=$.length,p,_,S;for(l=0;l<c;l++)p=$[l],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),S=t(U,p),o(x,p),s(x,S,_);return x}),ge(j,"$transform_values",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["transform_values"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$size()},{$$s:x});for(var $=r(),l=0,c=x.$$keys,p=c.length,_,S;l<p;l++)_=c[l],_.$$is_string?S=x.$$smap[_]:(S=_.value,_=_.key),S=t(U,S),s($,_,S);return $}),ge(j,"$transform_values!",function ce(){var U=ce.$$p||O,x=this;if(ce.$$p=null,!se(U))return Q(x,"enum_for",["transform_values!"],function S(){var C=S.$$s==null?this:S.$$s;return C.$size()},{$$s:x});f(x);for(var $=0,l=x.$$keys,c=l.length,p,_;$<c;$++)p=l[$],p.$$is_string?_=x.$$smap[p]:(_=p.value,p=p.key),_=t(U,_),s(x,p,_);return x}),ge(j,"$values",function(){for(var U=this,x=[],$=0,l=U.$$keys,c=l.length,p;$<c;$++)p=l[$],p.$$is_string?x.push(U.$$smap[p]):x.push(p.value);return x}),be(j,"dup","clone"),be(j,"each_pair","each"),be(j,"eql?","=="),be(j,"filter","select"),be(j,"filter!","select!"),be(j,"include?","has_key?"),be(j,"indices","indexes"),be(j,"key","index"),be(j,"key?","has_key?"),be(j,"member?","has_key?"),be(j,"size","length"),be(j,"store","[]="),be(j,"to_s","inspect"),be(j,"update","merge!"),be(j,"value?","has_value?"),be(j,"values_at","indexes")}("::",null,Ee)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,o=e.truthy,f=e.rb_gt,h=e.not,d=e.rb_lt,A=e.alias,z=e.send2,L=e.find_super,ne=e.send,ge=e.rb_plus,Q=e.rb_minus,F=e.eqeq,Y=e.return_self,pe=e.rb_divide,se=e.to_ary,ve=e.rb_times,Z=e.rb_le,be=e.rb_ge,ue=e.return_val,Ee=e.const_set,O=e.top,Ce=[],$e=e.nil,w=e.$$$;return e.add_stubs("require,bridge,raise,name,class,Float,respond_to?,coerce_to!,__coerced__,===,>,!,**,new,<,to_f,==,nan?,infinite?,enum_for,+,-,gcd,lcm,%,/,frexp,to_i,ldexp,rationalize,*,<<,to_r,truncate,-@,size,<=,>=,inspect,angle,to_s,is_a?,abs,__id__,next,coerce_to?"),O.$require("corelib/numeric"),function(Ae,j,de){var V=t(Ae,j,"Number");r.$bridge(Number,V),e.prop(V.$$prototype,"$$is_number",!0),V.$$is_number_class=!0,function(l,c){return i(l,"$allocate",function(){var _=this;return n.$raise(w("TypeError"),"allocator undefined for "+_.$name())}),e.udef(l,"$new"),$e}(e.get_singleton_class(V)),i(V,"$coerce",function(c){var p=this;if(c===$e)n.$raise(w("TypeError"),"can't convert "+c.$class()+" into Float");else{if(c.$$is_string)return[n.$Float(c),p];if(c["$respond_to?"]("to_f"))return[r["$coerce_to!"](c,w("Float"),"to_f"),p];if(c.$$is_number)return[c,p];n.$raise(w("TypeError"),"can't convert "+c.$class()+" into Float")}}),i(V,"$__id__",function(){var c=this;return c*2+1}),i(V,"$+",function(c){var p=this;return c.$$is_number?p+c:p.$__coerced__("+",c)}),i(V,"$-",function(c){var p=this;return c.$$is_number?p-c:p.$__coerced__("-",c)}),i(V,"$*",function(c){var p=this;return c.$$is_number?p*c:p.$__coerced__("*",c)}),i(V,"$/",function(c){var p=this;return c.$$is_number?p/c:p.$__coerced__("/",c)}),i(V,"$%",function(c){var p=this;if(c.$$is_number){if(c==-1/0)return c;if(c==0)n.$raise(w("ZeroDivisionError"),"divided by 0");else return c<0||p<0?(p%c+c)%c:p%c}else return p.$__coerced__("%",c)}),i(V,"$&",function(c){var p=this;return c.$$is_number?p&c:p.$__coerced__("&",c)}),i(V,"$|",function(c){var p=this;return c.$$is_number?p|c:p.$__coerced__("|",c)}),i(V,"$^",function(c){var p=this;return c.$$is_number?p^c:p.$__coerced__("^",c)}),i(V,"$<",function(c){var p=this;return c.$$is_number?p<c:p.$__coerced__("<",c)}),i(V,"$<=",function(c){var p=this;return c.$$is_number?p<=c:p.$__coerced__("<=",c)}),i(V,"$>",function(c){var p=this;return c.$$is_number?p>c:p.$__coerced__(">",c)}),i(V,"$>=",function(c){var p=this;return c.$$is_number?p>=c:p.$__coerced__(">=",c)});var Fe=function(l,c){return c.$$is_number?isNaN(l)||isNaN(c)?$e:l>c?1:l<c?-1:0:l.$__coerced__("<=>",c)};i(V,"$<=>",function(c){var p=this;try{return Fe(p,c)}catch(_){if(e.rescue(_,[w("ArgumentError")]))try{return $e}finally{e.pop_exception()}else throw _}}),i(V,"$<<",function(c){var p=this;return c=r["$coerce_to!"](c,w("Integer"),"to_int"),c>0?p<<c:p>>-c}),i(V,"$>>",function(c){var p=this;return c=r["$coerce_to!"](c,w("Integer"),"to_int"),c>0?p>>c:p<<-c}),i(V,"$[]",function(c){var p=this;return c=r["$coerce_to!"](c,w("Integer"),"to_int"),c<0?0:c>=32?p<0?1:0:p>>c&1}),i(V,"$+@",function(){var c=this;return+c}),i(V,"$-@",function(){var c=this;return-c}),i(V,"$~",function(){var c=this;return~c}),i(V,"$**",function(c){var p=this;return s(w("Integer"),c)?h(w("Integer")["$==="](p))||o(f(c,0))?Math.pow(p,c):w("Rational").$new(p,1)["$**"](c):d(p,0)&&(s(w("Float"),c)||s(w("Rational"),c))?w("Complex").$new(p,0)["$**"](c.$to_f()):o(c.$$is_number!=null)?Math.pow(p,c):p.$__coerced__("**",c)}),i(V,"$==",function(c){var p=this;return c.$$is_number?p.valueOf()===c.valueOf():c["$respond_to?"]("==")?c["$=="](p):!1}),A(V,"===","=="),i(V,"$abs",function(){var c=this;return Math.abs(c)}),i(V,"$abs2",function(){var c=this;return Math.abs(c*c)}),i(V,"$allbits?",function(c){var p=this;return c=r["$coerce_to!"](c,w("Integer"),"to_int"),(p&c)==c}),i(V,"$anybits?",function(c){var p=this;return c=r["$coerce_to!"](c,w("Integer"),"to_int"),(p&c)!==0}),i(V,"$angle",function(){var c=this;return o(c["$nan?"]())?c:c==0?1/c>0?0:Math.PI:c<0?Math.PI:0}),i(V,"$bit_length",function(){var c=this;if(s(w("Integer"),c)||n.$raise(w("NoMethodError").$new("undefined method `bit_length` for "+c+":Float","bit_length")),c===0||c===-1)return 0;for(var p=0,_=c<0?~c:c;_!=0;)p+=1,_>>>=1;return p}),i(V,"$ceil",function(c){var p=this;c==null&&(c=0);var _=p.$to_f();if(_%1===0&&c>=0)return _;var S=Math.pow(10,c),C=Math.ceil(_*S)/S;return _%1===0&&(C=Math.round(C)),C},-1),i(V,"$chr",function(c){var p=this;return e.enc(String.fromCharCode(p),c||"BINARY")},-1),i(V,"$denominator",function l(){var c=l.$$p||$e,p=this;return l.$$p=null,o(p["$nan?"]())||o(p["$infinite?"]())?1:z(p,L(p,"denominator",l,!1,!0),"denominator",[],c)}),i(V,"$downto",function l(c){var p=l.$$p||$e,_=this;if(l.$$p=null,p===$e)return ne(_,"enum_for",["downto",c],function C(){var ee=C.$$s==null?this:C.$$s;return s(w("Numeric"),c)||n.$raise(w("ArgumentError"),"comparison of "+ee.$class()+" with "+c.$class()+" failed"),o(f(c,ee))?0:ge(Q(ee,c),1)},{$$s:_});c.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+c.$class()+" failed");for(var S=_;S>=c;S--)p(S);return _}),i(V,"$equal?",function(c){var p=this,_=$e;return o(_=p["$=="](c))?_:isNaN(p)&&isNaN(c)}),i(V,"$even?",function(){var c=this;return c%2===0}),i(V,"$floor",function(c){var p=this;c==null&&(c=0);var _=p.$to_f();if(_%1===0&&c>=0)return _;var S=Math.pow(10,c),C=Math.floor(_*S)/S;return _%1===0&&(C=Math.round(C)),C},-1),i(V,"$gcd",function(c){var p=this;s(w("Integer"),c)||n.$raise(w("TypeError"),"not an integer");for(var _=Math.abs(p),S=Math.abs(c);_>0;){var C=_;_=S%_,S=C}return S}),i(V,"$gcdlcm",function(c){var p=this;return[p.$gcd(c),p.$lcm(c)]}),i(V,"$integer?",function(){var c=this;return c%1===0}),i(V,"$is_a?",function l(c){var p=l.$$p||$e,_=this;return l.$$p=null,F(c,w("Integer"))&&s(w("Integer"),_)||F(c,w("Integer"))&&s(w("Integer"),_)||F(c,w("Float"))&&s(w("Float"),_)?!0:z(_,L(_,"is_a?",l,!1,!0),"is_a?",[c],p)}),i(V,"$instance_of?",function l(c){var p=l.$$p||$e,_=this;return l.$$p=null,F(c,w("Integer"))&&s(w("Integer"),_)||F(c,w("Integer"))&&s(w("Integer"),_)||F(c,w("Float"))&&s(w("Float"),_)?!0:z(_,L(_,"instance_of?",l,!1,!0),"instance_of?",[c],p)}),i(V,"$lcm",function(c){var p=this;return s(w("Integer"),c)||n.$raise(w("TypeError"),"not an integer"),p==0||c==0?0:Math.abs(p*c/p.$gcd(c))}),i(V,"$next",function(){var c=this;return c+1}),i(V,"$nobits?",function(c){var p=this;return c=r["$coerce_to!"](c,w("Integer"),"to_int"),(p&c)==0}),i(V,"$nonzero?",function(){var c=this;return c==0?$e:c}),i(V,"$numerator",function l(){var c=l.$$p||$e,p=this;return l.$$p=null,o(p["$nan?"]())||o(p["$infinite?"]())?p:z(p,L(p,"numerator",l,!1,!0),"numerator",[],c)}),i(V,"$odd?",function(){var c=this;return c%2!==0}),i(V,"$ord",Y),i(V,"$pow",function(c,p){var _=this;return _==0&&n.$raise(w("ZeroDivisionError"),"divided by 0"),p===void 0?_["$**"](c):(w("Integer")["$==="](c)||n.$raise(w("TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),c<0&&n.$raise(w("TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),w("Integer")["$==="](p)||n.$raise(w("TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),p===0&&n.$raise(w("ZeroDivisionError"),"divided by 0"),_["$**"](c)["$%"](p))},-2),i(V,"$pred",function(){var c=this;return c-1}),i(V,"$quo",function l(c){var p=l.$$p||$e,_=this;return l.$$p=null,s(w("Integer"),_)?z(_,L(_,"quo",l,!1,!0),"quo",[c],p):pe(_,c)}),i(V,"$rationalize",function(c){var p,_,S=this,C=$e,ee=$e;return arguments.length>1&&n.$raise(w("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(w("Integer"),S)?w("Rational").$new(S,1):o(S["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):o(S["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):o(c==null)?(_=w("Math").$frexp(S),p=se(_),C=p[0]==null?$e:p[0],ee=p[1]==null?$e:p[1],C=w("Math").$ldexp(C,w(w("Float"),"MANT_DIG")).$to_i(),ee=Q(ee,w(w("Float"),"MANT_DIG")),w("Rational").$new(ve(2,C),1["$<<"](Q(1,ee))).$rationalize(w("Rational").$new(1,1["$<<"](Q(1,ee))))):S.$to_r().$rationalize(c)},-1),i(V,"$remainder",function(c){var p=this;return Q(p,ve(c,pe(p,c).$truncate()))}),i(V,"$round",function(c){var p,_,S=this,C=$e;if(s(w("Integer"),S)){if(o(c==null)||(s(w("Float"),c)&&o(c["$infinite?"]())&&n.$raise(w("RangeError"),"Infinity"),c=r["$coerce_to!"](c,w("Integer"),"to_int"),o(d(c,w(w("Integer"),"MIN")))&&n.$raise(w("RangeError"),"out of bounds"),o(c>=0)))return S;if(c=c["$-@"](),.415241*c-.125>S.$size())return 0;var ee=Math.pow(10,c),Le=Math.floor((Math.abs(S)+ee/2)/ee)*ee;return S<0?-Le:Le}else{if(o(S["$nan?"]())&&o(c==null)&&n.$raise(w("FloatDomainError"),"NaN"),c=r["$coerce_to!"](c||0,w("Integer"),"to_int"),o(Z(c,0)))o(S["$nan?"]())?n.$raise(w("RangeError"),"NaN"):o(S["$infinite?"]())&&n.$raise(w("FloatDomainError"),"Infinity");else{if(F(c,0))return Math.round(S);if(o(S["$nan?"]())||o(S["$infinite?"]()))return S}return _=w("Math").$frexp(S),p=se(_),p[0]==null||p[0],C=p[1]==null?$e:p[1],o(be(c,Q(ge(w(w("Float"),"DIG"),2),o(f(C,0))?pe(C,4):Q(pe(C,3),1))))?S:o(d(c,(o(f(C,0))?ge(pe(C,3),1):pe(C,4))["$-@"]()))?0:Math.round(S*Math.pow(10,c))/Math.pow(10,c)}},-1),i(V,"$times",function l(){var c=l.$$p||$e,p=this;if(l.$$p=null,!o(c))return ne(p,"enum_for",["times"],function S(){var C=S.$$s==null?this:S.$$s;return C},{$$s:p});for(var _=0;_<p;_++)c(_);return p}),i(V,"$to_f",Y),i(V,"$to_i",function(){var c=this;return c<0?Math.ceil(c):Math.floor(c)}),i(V,"$to_r",function(){var c,p,_=this,S=$e,C=$e;return s(w("Integer"),_)?w("Rational").$new(_,1):(p=w("Math").$frexp(_),c=se(p),S=c[0]==null?$e:c[0],C=c[1]==null?$e:c[1],S=w("Math").$ldexp(S,w(w("Float"),"MANT_DIG")).$to_i(),C=Q(C,w(w("Float"),"MANT_DIG")),ve(S,w(w("Float"),"RADIX")["$**"](C)).$to_r())}),i(V,"$to_s",function(c){var p=this;return c==null&&(c=10),c=r["$coerce_to!"](c,w("Integer"),"to_int"),(o(d(c,2))||o(f(c,36)))&&n.$raise(w("ArgumentError"),"invalid radix "+c),F(p,0)&&o(1/p===-1/0)?"-0.0":p.toString(c)},-1),i(V,"$truncate",function(c){var p=this;c==null&&(c=0);var _=p.$to_f();if(_%1===0&&c>=0)return _;var S=Math.pow(10,c),C=parseInt(_*S,10)/S;return _%1===0&&(C=Math.round(C)),C},-1),i(V,"$digits",function(c){var p=this;c==null&&(c=10),d(p,0)&&n.$raise(w(w("Math"),"DomainError"),"out of domain"),c=r["$coerce_to!"](c,w("Integer"),"to_int"),o(d(c,2))&&n.$raise(w("ArgumentError"),"invalid radix "+c),p!=parseInt(p)&&n.$raise(w("NoMethodError"),"undefined method `digits' for "+p.$inspect());var _=p,S=[];if(p==0)return[0];for(;_!=0;)S.push(_%c),_=parseInt(_/c,10);return S},-1),i(V,"$divmod",function l(c){var p=l.$$p||$e,_=this;return l.$$p=null,o(_["$nan?"]())||o(c["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):o(_["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):z(_,L(_,"divmod",l,!1,!0),"divmod",[c],p)}),i(V,"$upto",function l(c){var p=l.$$p||$e,_=this;if(l.$$p=null,p===$e)return ne(_,"enum_for",["upto",c],function C(){var ee=C.$$s==null?this:C.$$s;return s(w("Numeric"),c)||n.$raise(w("ArgumentError"),"comparison of "+ee.$class()+" with "+c.$class()+" failed"),o(d(c,ee))?0:ge(Q(c,ee),1)},{$$s:_});c.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+c.$class()+" failed");for(var S=_;S<=c;S++)p(S);return _}),i(V,"$zero?",function(){var c=this;return c==0}),i(V,"$size",ue(4)),i(V,"$nan?",function(){var c=this;return isNaN(c)}),i(V,"$finite?",function(){var c=this;return c!=1/0&&c!=-1/0&&!isNaN(c)}),i(V,"$infinite?",function(){var c=this;return c==1/0?1:c==-1/0?-1:$e}),i(V,"$positive?",function(){var c=this;return c!=0&&(c==1/0||1/c>0)}),i(V,"$negative?",function(){var c=this;return c==-1/0||1/c<0});function ce(l){var c=new Uint8Array(8);return new DataView(c.buffer).setFloat64(0,l,!0),c}function U(l){return new DataView(l.buffer).getFloat64(0,!0)}function x(l){for(var c=ce(l),p=0;p<c.length;p++)if(c[p]===255)c[p]=0;else{c[p]++;break}return U(c)}function $(l){for(var c=ce(l),p=0;p<c.length;p++)if(c[p]===0)c[p]=255;else{c[p]--;break}return U(c)}return i(V,"$next_float",function(){var c=this;return F(c,w(w("Float"),"INFINITY"))?w(w("Float"),"INFINITY"):o(c["$nan?"]())?w(w("Float"),"NAN"):be(c,0)?x(Math.abs(c)):$(c)}),i(V,"$prev_float",function(){var c=this;return F(c,w(w("Float"),"INFINITY")["$-@"]())?w(w("Float"),"INFINITY")["$-@"]():o(c["$nan?"]())?w(w("Float"),"NAN"):f(c,0)?$(c):-x(Math.abs(c))}),A(V,"arg","angle"),A(V,"eql?","=="),A(V,"fdiv","/"),A(V,"inspect","to_s"),A(V,"kind_of?","is_a?"),A(V,"magnitude","abs"),A(V,"modulo","%"),A(V,"object_id","__id__"),A(V,"phase","angle"),A(V,"succ","next"),A(V,"to_int","to_i")}("::",w("Numeric")),Ee("::","Fixnum",w("Number")),function(Ae,j,de){var V=t(Ae,j,"Integer"),Fe=[V].concat(de);return V.$$is_number_class=!0,V.$$is_integer_class=!0,function(ce,U){var x=[ce].concat(U),$=e.$r(x);return i(ce,"$allocate",function(){var c=this;return n.$raise(w("TypeError"),"allocator undefined for "+c.$name())}),e.udef(ce,"$new"),i(ce,"$sqrt",function(c){return c=r["$coerce_to!"](c,w("Integer"),"to_int"),c<0&&n.$raise(w(w("Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(c),10)}),i(ce,"$try_convert",function(c){var p=this;return $("Opal")["$coerce_to?"](c,p,"to_int")})}(e.get_singleton_class(V),Fe),Ee(V,"MAX",Math.pow(2,30)-1),Ee(V,"MIN",-Math.pow(2,30))}("::",w("Numeric"),Ce),function(Ae,j,de){var V=t(Ae,j,"Float");return V.$$is_number_class=!0,function(Fe,ce){return i(Fe,"$allocate",function(){var x=this;return n.$raise(w("TypeError"),"allocator undefined for "+x.$name())}),e.udef(Fe,"$new"),i(Fe,"$===",function(x){return!!x.$$is_number})}(e.get_singleton_class(V)),Ee(V,"INFINITY",1/0),Ee(V,"MAX",Number.MAX_VALUE),Ee(V,"MIN",Number.MIN_VALUE),Ee(V,"NAN",NaN),Ee(V,"DIG",15),Ee(V,"MANT_DIG",53),Ee(V,"RADIX",2),Ee(V,"EPSILON",Number.EPSILON||2220446049250313e-31)}("::",w("Numeric"))};Opal.modules["corelib/range"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.not,o=e.send2,f=e.find_super,h=e.rb_lt,d=e.rb_le,A=e.send,z=e.eqeq,L=e.eqeqeq,ne=e.return_ivar,ge=e.rb_gt,Q=e.rb_minus,F=e.Opal,Y=e.rb_divide,pe=e.rb_plus,se=e.rb_times,ve=e.rb_ge,Z=e.thrower,be=e.alias,ue=e.top,Ee=[],O=e.nil,Ce=e.$$$;return e.add_stubs("require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_to!,ceil,/,is_a?,new,loop,+,*,>=,each_with_index,%,step,bsearch,inspect,[],hash,cover?"),ue.$require("corelib/enumerable"),function($e,w,Ae){var j=t($e,w,"Range"),de=[j].concat(Ae),V=e.$r(de),Fe=j.$$prototype;Fe.begin=Fe.end=Fe.excl=O,j.$include(Ce("Enumerable")),j.$$prototype.$$is_range=!0,j.$attr_reader("begin","end"),i(j,"$initialize",function(x,$,l){var c=this;return l==null&&(l=!1),r(c.begin)&&n.$raise(Ce("NameError"),"'initialize' called twice"),r(x["$<=>"]($))||r(x["$nil?"]())||r($["$nil?"]())||n.$raise(Ce("ArgumentError"),"bad value for range"),c.begin=x,c.end=$,c.excl=l},-3),i(j,"$===",function(x){var $=this;return $["$include?"](x)});function ce(U){return U.begin===O||U.end===O||U.begin===-1/0||U.end===1/0||U.begin===1/0||U.end===-1/0}return i(j,"$count",function U(){var x=U.$$p||O,$=this;return U.$$p=null,s(x!==O)&&r(ce($))?Ce(Ce("Float"),"INFINITY"):o($,f($,"count",U,!1,!0),"count",[],x)}),i(j,"$to_a",function U(){var x=U.$$p||O,$=this;return U.$$p=null,r(ce($))&&n.$raise(Ce("TypeError"),"cannot convert endless range to an array"),o($,f($,"to_a",U,!1,!0),"to_a",[],x)}),i(j,"$cover?",function(x){var $=this,l=O,c=O,p=O,_=O,S=O;return l=r(c=r(p=r(_=$.begin["$nil?"]())?-1:_)?p:$.begin["$<=>"](x))&&c,S=r(c=r(p=r(_=$.end["$nil?"]())?-1:_)?p:x["$<=>"]($.end))&&c,r(c=r(p=r($.excl)?r(_=S)?h(S,0):_:r(_=S)?d(S,0):_)?l:p)?d(l,0):c}),i(j,"$each",function U(){var x=U.$$p||O,$=this,l=O,c=O,p=O;if(U.$$p=null,x===O)return A($,"enum_for",["each"],function C(){var ee=C.$$s==null?this:C.$$s;return ee.$size()},{$$s:$});var _,S;if($.begin.$$is_number&&$.end.$$is_number){for(($.begin%1!==0||$.end%1!==0)&&n.$raise(Ce("TypeError"),"can't iterate from Float"),_=$.begin,S=$.end+(r($.excl)?0:1);_<S;_++)x(_);return $}if($.begin.$$is_string&&$.end.$$is_string)return A($.begin,"upto",[$.end,$.excl],x.$to_proc()),$;for(l=$.begin,c=$.end,r(l["$respond_to?"]("succ"))||n.$raise(Ce("TypeError"),"can't iterate from "+l.$class());r(r(p=$.end["$nil?"]())?p:h(l["$<=>"](c),0));)e.yield1(x,l),l=l.$succ();return s($.excl)&&z(l,c)&&e.yield1(x,l),$}),i(j,"$eql?",function(x){var $=this,l=O,c=O;return L(Ce("Range"),x)?r(l=r(c=$.excl["$==="](x["$exclude_end?"]()))?$.begin["$eql?"](x.$begin()):c)?$.end["$eql?"](x.$end()):l:!1}),i(j,"$exclude_end?",ne("excl")),i(j,"$first",function U(x){var $=U.$$p||O,l=this;return U.$$p=null,r(l.begin["$nil?"]())&&n.$raise(Ce("RangeError"),"cannot get the minimum of beginless range"),r(x==null)?l.begin:o(l,f(l,"first",U,!1,!0),"first",[x],$)},-1),i(j,"$last",function(x){var $=this;return r($.end["$nil?"]())&&n.$raise(Ce("RangeError"),"cannot get the maximum of endless range"),r(x==null)?$.end:$.$to_a().$last(x)},-1),i(j,"$max",function U(){var x=U.$$p||O,$=this;return U.$$p=null,r($.end["$nil?"]())?n.$raise(Ce("RangeError"),"cannot get the maximum of endless range"):x!==O?o($,f($,"max",U,!1,!0),"max",[],x):s($.begin["$nil?"]())&&(r(ge($.begin,$.end))||r($.excl)&&z($.begin,$.end))?O:$.excl?$.end-1:$.end}),i(j,"$min",function U(){var x=U.$$p||O,$=this;return U.$$p=null,r($.begin["$nil?"]())?n.$raise(Ce("RangeError"),"cannot get the minimum of beginless range"):x!==O?o($,f($,"min",U,!1,!0),"min",[],x):s($.end["$nil?"]())&&(r(ge($.begin,$.end))||r($.excl)&&z($.begin,$.end))?O:$.begin}),i(j,"$size",function(){var x=this,$=O,l=O,c=O;return $=Ce(Ce("Float"),"INFINITY"),z(x.begin,$)&&s(x.end["$nil?"]())||z(x.end,$["$-@"]())&&s(x.begin["$nil?"]())?0:r(ce(x))?$:L(Ce("Numeric"),x.begin)&&L(Ce("Numeric"),x.end)?(l=x.begin,c=x.end,r(x.excl)&&(c=Q(c,1)),r(h(c,l))?0:(Math.abs(c-l)+1).$to_i()):O}),i(j,"$step",function U(x){var $=U.$$p||O,l=this,c=O,p=O;U.$$p=null;function _(){x==null?x=1:x.$$is_number||(x=F["$coerce_to!"](x,Ce("Integer"),"to_int")),x<0?n.$raise(Ce("ArgumentError"),"step can't be negative"):x===0&&n.$raise(Ce("ArgumentError"),"step can't be 0")}function S(){if(!l.begin["$respond_to?"]("succ")||l.begin.$$is_string&&l.end.$$is_string)return O;if(x%1===0)return Y(l.$size(),x).$ceil();var C=l.begin,ee=l.end,Le=Math.abs,nt=Math.floor,dt=(Le(C)+Le(ee)+Le(ee-C))/Le(x)*Ce(Ce("Float"),"EPSILON"),lt;return dt>.5&&(dt=.5),l.excl?(lt=nt((ee-C)/x-dt),lt*x+C<ee&&lt++):lt=nt((ee-C)/x+dt)+1,lt}return $===O?(r(l.begin["$is_a?"](V("Numeric")))||r(l.begin["$nil?"]()))&&(r(l.end["$is_a?"](V("Numeric")))||r(l.end["$nil?"]()))&&s(r(c=l.begin["$nil?"]())?l.end["$nil?"]():c)?Ce(Ce("Enumerator"),"ArithmeticSequence").$new(l,x,"step"):A(l,"enum_for",["step",x],function(){return _(),S()}):(_(),r(l.begin.$$is_number&&l.end.$$is_number)?(p=0,function(){try{var C=Z("break");return A(l,"loop",[],function ee(){var Le=ee.$$s==null?this:ee.$$s,nt=O;return Le.begin==null&&(Le.begin=O),Le.excl==null&&(Le.excl=O),Le.end==null&&(Le.end=O),nt=pe(Le.begin,se(p,x)),r(Le.excl)?r(ve(nt,Le.end))&&C.$throw():r(ge(nt,Le.end))&&C.$throw(),e.yield1($,nt),p=pe(p,1)},{$$s:l})}catch(ee){if(ee===C)return ee.$v;throw ee}}()):(l.begin.$$is_string&&l.end.$$is_string&&x%1!==0&&n.$raise(Ce("TypeError"),"no implicit conversion to float from string"),A(l,"each_with_index",[],function(ee,Le){return ee==null&&(ee=O),Le==null&&(Le=O),z(Le["$%"](x),0)?e.yield1($,ee):O})),l)},-1),i(j,"$%",function(x){var $=this;return r($.begin["$is_a?"](V("Numeric")))&&r($.end["$is_a?"](V("Numeric")))?Ce(Ce("Enumerator"),"ArithmeticSequence").$new($,x,"%"):$.$step(x)}),i(j,"$bsearch",function U(){var x=U.$$p||O,$=this;return U.$$p=null,x===O?$.$enum_for("bsearch"):(r(ce($)&&($.begin.$$is_number||$.end.$$is_number))&&n.$raise(Ce("NotImplementedError"),"Can't #bsearch an infinite range"),r($.begin.$$is_number&&$.end.$$is_number)||n.$raise(Ce("TypeError"),"can't do binary search for "+$.begin.$class()),A($.$to_a(),"bsearch",[],x.$to_proc()))}),i(j,"$to_s",function(){var x=this,$=O;return""+(r($=x.begin)?$:"")+(r(x.excl)?"...":"..")+(r($=x.end)?$:"")}),i(j,"$inspect",function(){var x=this,$=O;return""+(r($=x.begin)?x.begin.$inspect():$)+(r(x.excl)?"...":"..")+(r($=x.end)?x.end.$inspect():$)}),i(j,"$marshal_load",function(x){var $=this;return $.begin=x["$[]"]("begin"),$.end=x["$[]"]("end"),$.excl=x["$[]"]("excl")}),i(j,"$hash",function(){var x=this;return[x.begin,x.end,x.excl].$hash()}),be(j,"==","eql?"),be(j,"include?","cover?"),be(j,"member?","cover?")}("::",null,Ee)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,o=e.def,f=e.send,h=e.to_a,d=e.return_self,A=e.ensure_kwargs,z=e.Opal,L=e.alias,ne=e.nil,ge=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function(Q,F){var Y=r(Q,F,"Proc");return e.prop(Y.$$prototype,"$$is_proc",!0),e.prop(Y.$$prototype,"$$is_lambda",!1),s(Y,"$new",function pe(){var se=pe.$$p||ne;return pe.$$p=null,n(se)||i.$raise(ge("ArgumentError"),"tried to create a Proc object without a block"),se}),o(Y,"$call",function pe(se){var ve=pe.$$p||ne,Z,be,ue=this;pe.$$p=null,Z=t(arguments),be=Z,ve!==ne&&(ue.$$p=ve);var Ee,O=ue.$$brk,Ce=ue.$$ret;if(O||Ce&&ue.$$is_lambda)try{ue.$$is_lambda?Ee=ue.apply(null,be):Ee=e.yieldX(ue,be)}catch($e){if($e===O)return $e.$v;if(ue.$$is_lambda&&$e===Ce)return $e.$v;throw $e}else ue.$$is_lambda?Ee=ue.apply(null,be):Ee=e.yieldX(ue,be);return Ee},-1),o(Y,"$>>",function pe(se){pe.$$p;var ve=this;return pe.$$p=null,f(i,"proc",[],function Z(be){var ue=Z.$$p||ne,Ee,O,Ce=Z.$$s==null?this:Z.$$s,$e=ne;return Z.$$p=null,Ee=t(arguments),O=Ee,$e=f(Ce,"call",h(O),ue.$to_proc()),se.$call($e)},{$$arity:-1,$$s:ve})}),o(Y,"$<<",function pe(se){pe.$$p;var ve=this;return pe.$$p=null,f(i,"proc",[],function Z(be){var ue=Z.$$p||ne,Ee,O,Ce=Z.$$s==null?this:Z.$$s,$e=ne;return Z.$$p=null,Ee=t(arguments),O=Ee,$e=f(se,"call",h(O),ue.$to_proc()),Ce.$call($e)},{$$arity:-1,$$s:ve})}),o(Y,"$to_proc",d),o(Y,"$lambda?",function(){var se=this;return!!se.$$is_lambda}),o(Y,"$arity",function(){var se=this;return se.$$is_curried?-1:se.$$arity!=null?se.$$arity:se.length}),o(Y,"$source_location",function(){var se=this,ve=ne;return se.$$is_curried?ne:n(ve=se.$$source_location)?ve:ne}),o(Y,"$binding",function(){var se=this;return se.$$is_curried&&i.$raise(ge("ArgumentError"),"Can't create Binding"),n(ge("::","Binding","skip_raise")?"constant":ne)?ge("Binding").$new(ne,[],se.$$s,se.$source_location()):ne}),o(Y,"$parameters",function(se){var ve,Z=this;if(se=A(se),ve=se.$$smap.lambda,Z.$$is_curried)return[["rest"]];if(Z.$$parameters){if(ve??Z.$$is_lambda)return Z.$$parameters;var be=[],ue,Ee;for(ue=0,Ee=Z.$$parameters.length;ue<Ee;ue++){var O=Z.$$parameters[ue];O[0]==="req"&&(O=["opt",O[1]]),be.push(O)}return be}else return[]},-1),o(Y,"$curry",function(se){var ve=this;se===void 0?se=ve.length:(se=z["$coerce_to!"](se,ge("Integer"),"to_int"),ve.$$is_lambda&&se!==ve.length&&i.$raise(ge("ArgumentError"),"wrong number of arguments ("+se+" for "+ve.length+")"));function Z(){var be=t(arguments),ue=be.length,Ee;return ue>se&&ve.$$is_lambda&&!ve.$$is_curried&&i.$raise(ge("ArgumentError"),"wrong number of arguments ("+ue+" for "+se+")"),ue>=se?ve.$call.apply(ve,be):(Ee=function(){return Z.apply(null,be.concat(t(arguments)))},Ee.$$is_lambda=ve.$$is_lambda,Ee.$$is_curried=!0,Ee)}return Z.$$is_lambda=ve.$$is_lambda,Z.$$is_curried=!0,Z},-1),o(Y,"$dup",function(){var se=this,ve=se.$$original_proc||se,Z=function(){return ve.apply(this,arguments)};for(var be in se)se.hasOwnProperty(be)&&(Z[be]=se[be]);return Z}),L(Y,"===","call"),L(Y,"clone","dup"),L(Y,"yield","call"),L(Y,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,o=e.Kernel,f=e.send,h=e.to_a,d=e.nil,A=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(z,L){var ne=t(z,L,"Method"),ge=ne.$$prototype;return ge.method=ge.receiver=ge.owner=ge.name=d,ne.$attr_reader("owner","receiver","name"),r(ne,"$initialize",function(F,Y,pe,se){var ve=this;return ve.receiver=F,ve.owner=Y,ve.name=se,ve.method=pe}),r(ne,"$arity",function(){var F=this;return F.method.$arity()}),r(ne,"$parameters",function(){var F=this;return F.method.$$parameters}),r(ne,"$source_location",function(){var F=this,Y=d;return n(Y=F.method.$$source_location)?Y:["(eval)",0]}),r(ne,"$comments",function(){var F=this,Y=d;return n(Y=F.method.$$comments)?Y:[]}),r(ne,"$call",function Q(F){var Y=Q.$$p||d,pe,se,ve=this;return Q.$$p=null,pe=i(arguments),se=pe,ve.method.$$p=Y,ve.method.apply(ve.receiver,se)},-1),r(ne,"$curry",function(F){var Y=this;return Y.method.$curry(F)},-1),r(ne,"$>>",function(F){var Y=this;return Y.method["$>>"](F)}),r(ne,"$<<",function(F){var Y=this;return Y.method["$<<"](F)}),r(ne,"$unbind",function(){var F=this;return A("UnboundMethod").$new(F.receiver.$class(),F.owner,F.method,F.name)}),r(ne,"$to_proc",function(){var F=this,Y=F.$call.bind(F);return Y.$$unbound=F.method,Y.$$is_lambda=!0,Y.$$arity=F.method.$$arity==null?F.method.length:F.method.$$arity,Y.$$parameters=F.method.$$parameters,Y}),r(ne,"$inspect",function(){var F=this;return"#<"+F.$class()+": "+F.receiver.$class()+"#"+F.name+" (defined in "+F.owner+" in "+F.$source_location().$join(":")+")>"}),s(ne,"[]","call"),s(ne,"===","call")}("::",null),function(z,L){var ne=t(z,L,"UnboundMethod"),ge=ne.$$prototype;return ge.method=ge.owner=ge.name=ge.source=d,ne.$attr_reader("source","owner","name"),r(ne,"$initialize",function(F,Y,pe,se){var ve=this;return ve.source=F,ve.owner=Y,ve.method=pe,ve.name=se}),r(ne,"$arity",function(){var F=this;return F.method.$arity()}),r(ne,"$parameters",function(){var F=this;return F.method.$$parameters}),r(ne,"$source_location",function(){var F=this,Y=d;return n(Y=F.method.$$source_location)?Y:["(eval)",0]}),r(ne,"$comments",function(){var F=this,Y=d;return n(Y=F.method.$$comments)?Y:[]}),r(ne,"$bind",function(F){var Y=this;if(Y.owner.$$is_module||e.is_a(F,Y.owner))return A("Method").$new(F,Y.owner,Y.method,Y.name);o.$raise(A("TypeError"),"can't bind singleton method to a different class (expected "+F+".kind_of?("+Y.owner+" to be true)")}),r(ne,"$bind_call",function Q(F,Y){var pe=Q.$$p||d,se,ve,Z=this;return Q.$$p=null,se=i(arguments,1),ve=se,f(Z.$bind(F),"call",h(ve),pe.$to_proc())},-2),r(ne,"$inspect",function(){var F=this;return"#<"+F.$class()+": "+F.source+"#"+F.name+" (defined in "+F.owner+" in "+F.$source_location().$join(":")+")>"})}("::",null)};Opal.modules["corelib/variables"]=function(e){var t=e.gvars,r=e.const_set,n=e.Object,i=e.hash2,s=e.nil;return e.add_stubs("new"),t["&"]=t["~"]=t["`"]=t["'"]=s,t.LOADED_FEATURES=t['"']=e.loaded_features,t.LOAD_PATH=t[":"]=[],t["/"]=`
411
+ `,t[","]=s,r("::","ARGV",[]),r("::","ARGF",n.$new()),r("::","ENV",i([],{})),t.VERBOSE=!1,t.DEBUG=!1,t.SAFE=0};Opal.modules["corelib/io"]=function(e){var t=e.klass,r=e.const_set,n=e.not,i=e.truthy,s=e.def,o=e.return_ivar,f=e.return_val,h=e.slice,d=e.Kernel,A=e.gvars,z=e.send,L=e.to_a,ne=e.rb_plus,ge=e.neqeq,Q=e.range,F=e.hash2,Y=e.eqeq,pe=e.to_ary,se=e.rb_gt,ve=e.assign_ivar_val,Z=e.alias,be,ue=e.nil,Ee=e.$$$;e.add_stubs("attr_reader,attr_accessor,!,match?,include?,size,write,String,flatten,puts,sysread_noraise,+,!=,[],ord,getc,readchar,raise,gets,==,to_str,length,split,sub,sysread,>,to_a,each_line,enum_for,getbyte,closed_write?,closed_read?,each,eof,new,write_proc=,read_proc="),function(Ce,$e){var w=t(Ce,$e,"IO"),Ae=w.$$prototype;return Ae.read_buffer=Ae.closed=ue,r(w,"SEEK_SET",0),r(w,"SEEK_CUR",1),r(w,"SEEK_END",2),r(w,"SEEK_DATA",3),r(w,"SEEK_HOLE",4),r(w,"READABLE",1),r(w,"WRITABLE",4),w.$attr_reader("eof"),w.$attr_accessor("read_proc","sync","tty","write_proc"),s(w,"$initialize",function(de,V){var Fe=this;return V==null&&(V="r"),Fe.fd=de,Fe.flags=V,Fe.eof=!1,i(V["$include?"]("r"))&&n(V["$match?"](/[wa+]/))?Fe.closed="write":i(V["$match?"](/[wa]/))&&n(V["$match?"](/[r+]/))?Fe.closed="read":ue},-2),s(w,"$fileno",o("fd")),s(w,"$tty?",function(){var de=this;return de.tty==!0}),s(w,"$write",function(de){var V=this;return V.write_proc(de),de.$size()}),s(w,"$flush",f(ue)),s(w,"$<<",function(de){var V=this;return V.$write(de),V}),s(w,"$print",function(de){var V,Fe,ce=this;A[","]==null&&(A[","]=ue),V=h(arguments),Fe=V;for(var U=0,x=Fe.length;U<x;U++)Fe[U]=d.$String(Fe[U]);return ce.$write(Fe.join(A[","])),ue},-1),s(w,"$puts",function(de){var V,Fe,ce=this;V=h(arguments),Fe=V;var U;if(Fe.length===0)return ce.$write(`
412
+ `),ue;for(var x=0,$=Fe.length;x<$;x++)if(Fe[x].$$is_array){var l=Fe[x].$flatten();l.length>0&&z(ce,"puts",L(l))}else Fe[x].$$is_string?U=Fe[x].valueOf():U=d.$String(Fe[x]),U.endsWith(`
413
+ `)||(U+=`
414
+ `),ce.$write(U);return ue},-1),s(w,"$getc",function(){var de=this,V=ue,Fe=ue,ce=ue;de.read_buffer=i(V=de.read_buffer)?V:"",Fe="";do if(de.read_buffer=ne(de.read_buffer,Fe),ge(de.read_buffer,""))return ce=de.read_buffer["$[]"](0),de.read_buffer=de.read_buffer["$[]"](Q(1,-1,!1)),ce;while(i(Fe=de.$sysread_noraise(1)));return ue}),s(w,"$getbyte",function(){var de,V=this;return de=V.$getc(),de===ue||de==null?ue:de.$ord()}),s(w,"$readbyte",function(){var de=this;return de.$readchar().$ord()}),s(w,"$readchar",function(){var de=this,V=ue;return i(V=de.$getc())?V:d.$raise(Ee("EOFError"),"end of file reached")}),s(w,"$readline",function(de){var V,Fe,ce=this,U=ue;return V=h(arguments),Fe=V,i(U=z(ce,"gets",L(Fe)))?U:d.$raise(Ee("EOFError"),"end of file reached")},-1),s(w,"$gets",function(de,V,Fe){var ce,U,x=this,$=ue,l=ue,c=ue,p=ue,_=ue,S=ue;A["/"]==null&&(A["/"]=ue),de==null&&(de=!1),V==null&&(V=ue),Fe==null&&(Fe=F([],{})),i(de.$$is_number)&&n(V)&&(ce=[!1,de,V],de=ce[0],V=ce[1],Fe=ce[2]),i(de.$$is_hash)&&n(V)&&Y(Fe,F([],{}))?(ce=[!1,ue,de],de=ce[0],V=ce[1],Fe=ce[2]):i(V.$$is_hash)&&Y(Fe,F([],{}))&&(ce=[de,ue,V],de=ce[0],V=ce[1],Fe=ce[2]),$=de,Y(de,!1)&&(de=A["/"]),Y(de,"")&&(de=/\r?\n\r?\n/),de=i(l=de)?l:"",Y($,"")||(de=de.$to_str()),c=Y($,"")?2:de.$length(),Y(de," ")&&(de=/ /),x.read_buffer=i(l=x.read_buffer)?l:"",p="",_=ue;do if(x.read_buffer=ne(x.read_buffer,p),ge(de,"")&&i(i(de.$$is_regexp)?x.read_buffer["$match?"](de):x.read_buffer["$include?"](de))){S=x.read_buffer,U=x.read_buffer.$split(de,2),ce=pe(U),_=ce[0]==null?ue:ce[0],x.read_buffer=ce[1]==null?ue:ce[1],ge(_,S)&&(_=ne(_,S["$[]"](_.$length(),c)));break}while(i(p=x.$sysread_noraise(Y(de,"")?65536:1)));return i(_)||(ce=[i(l=x.read_buffer)?l:"",""],_=ce[0],x.read_buffer=ce[1],Y(_,"")&&(_=ue)),i(_)&&(i(V)&&(_=_["$[]"](e.Range.$new(0,V,!0)),x.read_buffer=ne(_["$[]"](e.Range.$new(V,-1,!1)),x.read_buffer)),i(Fe["$[]"]("chomp"))&&(_=_.$sub(/\r?\n$/,"")),Y($,"")&&(_=_.$sub(/^[\r\n]+/,""))),Y($,!1)&&(A._=_),_},-1),s(w,"$sysread",function(de){var V=this,Fe=ue;return i(Fe=V.read_proc(de))?Fe:(V.eof=!0,d.$raise(Ee("EOFError"),"end of file reached"))}),s(w,"$sysread_noraise",function(de){var V=this;try{return V.$sysread(de)}catch(Fe){if(e.rescue(Fe,[Ee("EOFError")]))try{return ue}finally{e.pop_exception()}else throw Fe}}),s(w,"$readpartial",function(de){var V,Fe=this,ce=ue,U=ue,x=ue;return Fe.read_buffer=i(ce=Fe.read_buffer)?ce:"",U=Fe.$sysread(de),V=[ne(Fe.read_buffer,i(ce=U)?ce:""),""],x=V[0],Fe.read_buffer=V[1],Y(x,"")&&(x=ue),x}),s(w,"$read",function(de){var V,Fe=this,ce=ue,U=ue,x=ue;de==null&&(de=ue),Fe.read_buffer=i(ce=Fe.read_buffer)?ce:"",U="",x=ue;do if(Fe.read_buffer=ne(Fe.read_buffer,U),i(de)&&i(se(Fe.read_buffer.$length(),de)))return V=[Fe.read_buffer["$[]"](e.Range.$new(0,de,!0)),Fe.read_buffer["$[]"](e.Range.$new(de,-1,!1))],x=V[0],Fe.read_buffer=V[1],x;while(i(U=Fe.$sysread_noraise(i(ce=de)?ce:65536)));return V=[Fe.read_buffer,""],x=V[0],Fe.read_buffer=V[1],x},-1),s(w,"$readlines",function(de){var V=this;return A["/"]==null&&(A["/"]=ue),de==null&&(de=A["/"]),V.$each_line(de).$to_a()},-1),s(w,"$each",function j(de,V){var Fe=j.$$p||ue,ce,U,x,$=this,l=ue;if(A["/"]==null&&(A["/"]=ue),j.$$p=null,ce=h(arguments),ce.length>0&&(U=ce.shift()),U==null&&(U=A["/"]),x=ce,Fe===ue)return z($,"enum_for",["each",U].concat(L(x)));for(;i(l=z($,"gets",[U].concat(L(x))));)e.yield1(Fe,l);return $},-1),s(w,"$each_byte",function j(){var de=j.$$p||ue,V=this,Fe=ue;if(j.$$p=null,de===ue)return V.$enum_for("each_byte");for(;i(Fe=V.$getbyte());)e.yield1(de,Fe);return V}),s(w,"$each_char",function j(){var de=j.$$p||ue,V=this,Fe=ue;if(j.$$p=null,de===ue)return V.$enum_for("each_char");for(;i(Fe=V.$getc());)e.yield1(de,Fe);return V}),s(w,"$close",ve("closed","both")),s(w,"$close_read",function(){var de=this;return Y(de.closed,"write")?de.closed="both":de.closed="read"}),s(w,"$close_write",function(){var de=this;return Y(de.closed,"read")?de.closed="both":de.closed="write"}),s(w,"$closed?",function(){var de=this;return de.closed["$=="]("both")}),s(w,"$closed_read?",function(){var de=this,V=ue;return i(V=de.closed["$=="]("read"))?V:de.closed["$=="]("both")}),s(w,"$closed_write?",function(){var de=this,V=ue;return i(V=de.closed["$=="]("write"))?V:de.closed["$=="]("both")}),s(w,"$check_writable",function(){var de=this;return i(de["$closed_write?"]())?d.$raise(Ee("IOError"),"not opened for writing"):ue}),s(w,"$check_readable",function(){var de=this;return i(de["$closed_read?"]())?d.$raise(Ee("IOError"),"not opened for reading"):ue}),Z(w,"each_line","each"),Z(w,"eof?","eof")}("::",null),r("::","STDIN",A.stdin=Ee("IO").$new(0,"r")),r("::","STDOUT",A.stdout=Ee("IO").$new(1,"w")),r("::","STDERR",A.stderr=Ee("IO").$new(2,"w"));var O=e.global.console;return Ee("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ce){process.stdout.write(Ce)}:function(Ce){O.log(Ce)}),Ee("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ce){process.stderr.write(Ce)}:function(Ce){O.warn(Ce)}),be=[function(Ce){var $e=prompt();return $e!==null?$e+`
415
+ `:ue}],z(Ee("STDIN"),"read_proc=",be),be[be.length-1]};Opal.modules["opal/regexp_anchors"]=function(e){var t=e.module,r=e.const_set,n=[];e.nil;var i=e.$$$;return e.add_stubs("new"),function(s,o){var f=t(s,"Opal"),h=[f].concat(o),d=e.$r(h);return r(f,"REGEXP_START","^"),r(f,"REGEXP_END","$"),r(f,"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"INLINE_IDENTIFIER_REGEXP",d("Regexp").$new("[^"+i(f,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+i(f,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),r(f,"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"CONST_NAME_REGEXP",d("Regexp").$new(""+i(f,"REGEXP_START")+"(::)?[A-Z][^"+i(f,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+i(f,"REGEXP_END")))}(n[0],n)};Opal.modules["opal/mini"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("opal/base"),t.$require("corelib/nil"),t.$require("corelib/boolean"),t.$require("corelib/string"),t.$require("corelib/comparable"),t.$require("corelib/enumerable"),t.$require("corelib/enumerator"),t.$require("corelib/array"),t.$require("corelib/hash"),t.$require("corelib/number"),t.$require("corelib/range"),t.$require("corelib/proc"),t.$require("corelib/method"),t.$require("corelib/regexp"),t.$require("corelib/variables"),t.$require("corelib/io"),t.$require("opal/regexp_anchors")};Opal.modules["corelib/kernel/format"]=function(e){var t=e.coerce_to,r=e.module,n=e.slice,i=e.truthy,s=e.eqeq,o=e.Opal,f=e.Kernel,h=e.gvars,d=e.def,A=e.alias,z=e.nil,L=e.$$$;return e.add_stubs("respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_ary,to_str,inspect,to_s,format"),function(ne){var ge=r(ne,"Kernel");return d(ge,"$format",function(F,Y){var pe,se,ve=z;h.DEBUG==null&&(h.DEBUG=z),pe=n(arguments,1),se=pe,s(se.$length(),1)&&i(se["$[]"](0)["$respond_to?"]("to_ary"))&&(ve=o["$coerce_to?"](se["$[]"](0),L("Array"),"to_ary"),i(ve["$nil?"]())||(se=ve.$to_a()));var Z="",be=0,ue,Ee,O=F.length,Ce,$e,w,Ae,j,de,V,Fe,ce,U,x,$,l,c=1,p=0,_,S=0,C=1,ee=2,Le=4,nt=8,dt=16,lt=32,xt=64,bt=128;function yt(){_&lt&&f.$raise(L("ArgumentError"),"flag after width"),_&bt&&f.$raise(L("ArgumentError"),"flag after precision")}function gt(){_&lt&&f.$raise(L("ArgumentError"),"width given twice"),_&bt&&f.$raise(L("ArgumentError"),"width after precision")}function wt(y){return y>=se.length&&f.$raise(L("ArgumentError"),"too few arguments"),se[y]}function At(){switch(p){case-1:f.$raise(L("ArgumentError"),"unnumbered("+c+") mixed with numbered");case-2:f.$raise(L("ArgumentError"),"unnumbered("+c+") mixed with named")}return p=c++,wt(p-1)}function et(y){return p>0&&f.$raise(L("ArgumentError"),"numbered("+y+") after unnumbered("+p+")"),p===-2&&f.$raise(L("ArgumentError"),"numbered("+y+") after named"),y<1&&f.$raise(L("ArgumentError"),"invalid index - "+y+"$"),p=-1,wt(y-1)}function ze(){return l===void 0?At():l}function je(y){for(var I,xe="";;Ee++){if(Ee===O&&f.$raise(L("ArgumentError"),"malformed format string - %*[0-9]"),F.charCodeAt(Ee)<48||F.charCodeAt(Ee)>57)return Ee--,I=parseInt(xe,10)||0,I>2147483647&&f.$raise(L("ArgumentError"),""+y+" too big"),I;xe+=F.charAt(Ee)}}function Ge(y){var I,xe=je(y);return F.charAt(Ee+1)==="$"?(Ee++,I=et(xe)):I=At(),I.$to_int()}for(Ee=F.indexOf("%");Ee!==-1;Ee=F.indexOf("%",Ee)){switch($e=void 0,_=S,Ae=-1,j=-1,l=void 0,ue=Ee,Ee++,F.charAt(Ee)){case"%":be=Ee;case"":case`
416
+ `:case"\0":Ee++;continue}e:for(;Ee<O;Ee++)switch(F.charAt(Ee)){case" ":yt(),_|=dt;continue e;case"#":yt(),_|=C;continue e;case"+":yt(),_|=Le;continue e;case"-":yt(),_|=ee;continue e;case"0":yt(),_|=nt;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(de=je("width"),F.charAt(Ee+1)==="$"){if(Ee+2===O){$e="%",Ee++;break e}l!==void 0&&f.$raise(L("ArgumentError"),"value given twice - %"+de+"$"),l=et(de),Ee++}else gt(),_|=lt,Ae=de;continue e;case"<":case"{":for(Fe=F.charAt(Ee)==="<"?">":"}",V="",Ee++;;Ee++){if(Ee===O&&f.$raise(L("ArgumentError"),"malformed name - unmatched parenthesis"),F.charAt(Ee)===Fe){if(p>0&&f.$raise(L("ArgumentError"),"named "+V+" after unnumbered("+p+")"),p===-1&&f.$raise(L("ArgumentError"),"named "+V+" after numbered"),p=-2,(se[0]===void 0||!se[0].$$is_hash)&&f.$raise(L("ArgumentError"),"one hash required"),l=se[0].$fetch(V),Fe===">")continue e;if($e=l.toString(),j!==-1&&($e=$e.slice(0,j)),_&ee)for(;$e.length<Ae;)$e=$e+" ";else for(;$e.length<Ae;)$e=" "+$e;break e}V+=F.charAt(Ee)}case"*":Ee++,gt(),_|=lt,Ae=Ge("width"),Ae<0&&(_|=ee,Ae=-Ae);continue e;case".":if(_&bt&&f.$raise(L("ArgumentError"),"precision given twice"),_|=xt|bt,j=0,Ee++,F.charAt(Ee)==="*"){Ee++,j=Ge("precision"),j<0&&(_&=~xt);continue e}j=je("precision");continue e;case"d":case"i":case"u":if(Ce=f.$Integer(ze()),Ce>=0){for($e=Ce.toString();$e.length<j;)$e="0"+$e;if(_&ee)for((_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e);$e.length<Ae;)$e=$e+" ";else if(_&nt&&j===-1){for(;$e.length<Ae-(_&Le||_&dt?1:0);)$e="0"+$e;(_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e)}else for((_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e);$e.length<Ae;)$e=" "+$e}else{for($e=(-Ce).toString();$e.length<j;)$e="0"+$e;if(_&ee)for($e="-"+$e;$e.length<Ae;)$e=$e+" ";else if(_&nt&&j===-1){for(;$e.length<Ae-1;)$e="0"+$e;$e="-"+$e}else for($e="-"+$e;$e.length<Ae;)$e=" "+$e}break e;case"b":case"B":case"o":case"x":case"X":switch(F.charAt(Ee)){case"b":case"B":ce=2,U="0b",x=/^1+/,$="1";break;case"o":ce=8,U="0",x=/^3?7+/,$="7";break;case"x":case"X":ce=16,U="0x",x=/^f+/,$="f";break}if(Ce=f.$Integer(ze()),Ce>=0){for($e=Ce.toString(ce);$e.length<j;)$e="0"+$e;if(_&ee)for((_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e),_&C&&Ce!==0&&($e=U+$e);$e.length<Ae;)$e=$e+" ";else if(_&nt&&j===-1){for(;$e.length<Ae-(_&Le||_&dt?1:0)-(_&C&&Ce!==0?U.length:0);)$e="0"+$e;_&C&&Ce!==0&&($e=U+$e),(_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e)}else for(_&C&&Ce!==0&&($e=U+$e),(_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e);$e.length<Ae;)$e=" "+$e}else if(_&Le||_&dt){for($e=(-Ce).toString(ce);$e.length<j;)$e="0"+$e;if(_&ee)for(_&C&&($e=U+$e),$e="-"+$e;$e.length<Ae;)$e=$e+" ";else if(_&nt&&j===-1){for(;$e.length<Ae-1-(_&C?2:0);)$e="0"+$e;_&C&&($e=U+$e),$e="-"+$e}else for(_&C&&($e=U+$e),$e="-"+$e;$e.length<Ae;)$e=" "+$e}else{for($e=(Ce>>>0).toString(ce).replace(x,$);$e.length<j-2;)$e=$+$e;if(_&ee)for($e=".."+$e,_&C&&($e=U+$e);$e.length<Ae;)$e=$e+" ";else if(_&nt&&j===-1){for(;$e.length<Ae-2-(_&C?U.length:0);)$e=$+$e;$e=".."+$e,_&C&&($e=U+$e)}else for($e=".."+$e,_&C&&($e=U+$e);$e.length<Ae;)$e=" "+$e}F.charAt(Ee)===F.charAt(Ee).toUpperCase()&&($e=$e.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ce=f.$Float(ze()),Ce>=0||isNaN(Ce)){if(Ce===1/0)$e="Inf";else switch(F.charAt(Ee)){case"f":$e=Ce.toFixed(j===-1?6:j);break;case"e":case"E":$e=Ce.toExponential(j===-1?6:j);break;case"g":case"G":$e=Ce.toExponential(),w=parseInt($e.split("e")[1],10),w<-4||w>=(j===-1?6:j)||($e=Ce.toPrecision(j===-1?_&C?6:void 0:j));break}if(_&ee)for((_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e);$e.length<Ae;)$e=$e+" ";else if(_&nt&&Ce!==1/0&&!isNaN(Ce)){for(;$e.length<Ae-(_&Le||_&dt?1:0);)$e="0"+$e;(_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e)}else for((_&Le||_&dt)&&($e=(_&Le?"+":" ")+$e);$e.length<Ae;)$e=" "+$e}else{if(Ce===-1/0)$e="Inf";else switch(F.charAt(Ee)){case"f":$e=(-Ce).toFixed(j===-1?6:j);break;case"e":case"E":$e=(-Ce).toExponential(j===-1?6:j);break;case"g":case"G":$e=(-Ce).toExponential(),w=parseInt($e.split("e")[1],10),w<-4||w>=(j===-1?6:j)||($e=(-Ce).toPrecision(j===-1?_&C?6:void 0:j));break}if(_&ee)for($e="-"+$e;$e.length<Ae;)$e=$e+" ";else if(_&nt&&Ce!==-1/0){for(;$e.length<Ae-1;)$e="0"+$e;$e="-"+$e}else for($e="-"+$e;$e.length<Ae;)$e=" "+$e}F.charAt(Ee)===F.charAt(Ee).toUpperCase()&&Ce!==1/0&&Ce!==-1/0&&!isNaN(Ce)&&($e=$e.toUpperCase()),$e=$e.replace(/([eE][-+]?)([0-9])$/,"$10$2");break e;case"a":case"A":f.$raise(L("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ce=ze(),Ce["$respond_to?"]("to_ary")&&(Ce=Ce.$to_ary()[0]),Ce["$respond_to?"]("to_str")?$e=Ce.$to_str():$e=String.fromCharCode(t(Ce,L("Integer"),"to_int")),$e.length!==1&&f.$raise(L("ArgumentError"),"%c requires a character"),_&ee)for(;$e.length<Ae;)$e=$e+" ";else for(;$e.length<Ae;)$e=" "+$e;break e;case"p":if($e=ze().$inspect(),j!==-1&&($e=$e.slice(0,j)),_&ee)for(;$e.length<Ae;)$e=$e+" ";else for(;$e.length<Ae;)$e=" "+$e;break e;case"s":if($e=ze().$to_s(),j!==-1&&($e=$e.slice(0,j)),_&ee)for(;$e.length<Ae;)$e=$e+" ";else for(;$e.length<Ae;)$e=" "+$e;break e;default:f.$raise(L("ArgumentError"),"malformed format string - %"+F.charAt(Ee))}$e===void 0&&f.$raise(L("ArgumentError"),"malformed format string - %"),Z+=F.slice(be,ue)+$e,be=Ee+1}return h.DEBUG&&p>=0&&c<se.length&&f.$raise(L("ArgumentError"),"too many arguments for format string"),Z+F.slice(be)},-2),A(ge,"sprintf","format")}("::")};Opal.modules["corelib/string/encoding"]=function(e){var t=e.klass,r=e.hash2,n=e.rb_plus,i=e.truthy,s=e.send,o=e.defs,f=e.eqeq,h=e.def,d=e.return_ivar,A=e.return_val,z=e.slice,L=e.Kernel,ne=e.Opal,ge=e.rb_lt,Q,F=e.top,Y=[],pe=e.$r(Y),se=e.nil,ve=e.$$$;return e.add_stubs("require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,default_external,attr_accessor,singleton_class,attr_reader,raise,register,length,bytes,force_encoding,dup,bytesize,enum_for,each_byte,to_a,each_char,each_codepoint,coerce_to!,find,<,default_external="),F.$require("corelib/string"),function(Z,be){var ue=t(Z,be,"Encoding"),Ee=ue.$$prototype;return Ee.name=Ee.dummy=se,o(ue,"$register",function O(Ce,$e){var w=O.$$p||se,Ae=this,j=se,de=se,V=se,Fe=se,ce=se,U=se;return O.$$p=null,$e==null&&($e=r([],{})),j=n([Ce],i(de=$e["$[]"]("aliases"))?de:[]),V=i(de=$e["$[]"]("ascii"))&&de,Fe=i(de=$e["$[]"]("dummy"))&&de,i($e["$[]"]("inherits"))?(ce=$e["$[]"]("inherits").$clone(),ce.$initialize(Ce,j,V,Fe)):ce=Ae.$new(Ce,j,V,Fe),w!==se&&s(ce,"instance_eval",[],w.$to_proc()),U=e.encodings,s(j,"each",[],function x($){var l=x.$$s==null?this:x.$$s;return $==null&&($=se),l.$const_set($.$tr("-","_"),ce),U[$]=ce},{$$s:Ae})},-2),o(ue,"$find",function(Ce){var $e=this;return f(Ce,"default_external")?$e.$default_external():e.find_encoding(Ce)}),ue.$singleton_class().$attr_accessor("default_external"),ue.$attr_reader("name","names"),h(ue,"$initialize",function(Ce,$e,w,Ae){var j=this;return j.name=Ce,j.names=$e,j.ascii=w,j.dummy=Ae}),h(ue,"$ascii_compatible?",d("ascii")),h(ue,"$dummy?",d("dummy")),h(ue,"$binary?",A(!1)),h(ue,"$to_s",d("name")),h(ue,"$inspect",function(){var Ce=this;return"#<Encoding:"+Ce.name+(i(Ce.dummy)?" (dummy)":se)+">"}),h(ue,"$charsize",function(Ce){for(var $e=0,w=0,Ae=Ce.length;w<Ae;w++){var j=Ce.charCodeAt(w);j>=55296&&j<=56319||$e++}return $e}),h(ue,"$each_char",function O(Ce){var $e=O.$$p||se;O.$$p=null;for(var w="",Ae=0,j=Ce.length;Ae<j;Ae++){var de=Ce.charCodeAt(Ae),V=Ce.charAt(Ae);if(de>=56320&&de<=57343){w=V;continue}else de>=55296&&de<=56319&&(V=w+V);Ce.encoding.name!="UTF-8"&&(V=new String(V),V.encoding=Ce.encoding),e.yield1($e,V)}}),h(ue,"$each_byte",function(Ce){return z(arguments),L.$raise(ve("NotImplementedError"))},-1),h(ue,"$bytesize",function(Ce){return z(arguments),L.$raise(ve("NotImplementedError"))},-1),t("::",ve("StandardError"),"EncodingError"),t("::",ve("EncodingError"),"CompatibilityError"),se}("::",null),s(ve("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function Z(){var be=Z.$$s==null?this:Z.$$s;return h(be,"$each_byte",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=1/0,$e,w=Ee.length,Ae=null,j=0;j<w;++j){if($e=Ee.charCodeAt(j),$e>55295&&$e<57344){if(!Ae){if($e>56319){(Ce-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));continue}else if(j+1===w){(Ce-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));continue}Ae=$e;continue}if($e<56320){(Ce-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189)),Ae=$e;continue}$e=(Ae-55296<<10|$e-56320)+65536}else Ae&&(Ce-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));if(Ae=null,$e<128){if((Ce-=1)<0)break;e.yield1(O,$e)}else if($e<2048){if((Ce-=2)<0)break;e.yield1(O,$e>>6|192),e.yield1(O,$e&63|128)}else if($e<65536){if((Ce-=3)<0)break;e.yield1(O,$e>>12|224),e.yield1(O,$e>>6&63|128),e.yield1(O,$e&63|128)}else if($e<1114112){if((Ce-=4)<0)break;e.yield1(O,$e>>18|240),e.yield1(O,$e>>12&63|128),e.yield1(O,$e>>6&63|128),e.yield1(O,$e&63|128)}}}),h(be,"$bytesize",function(Ee){return Ee.$bytes().$length()})},{$$s:F}),s(ve("Encoding"),"register",["UTF-16LE"],function Z(){var be=Z.$$s==null?this:Z.$$s;return h(be,"$each_byte",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=0,$e=Ee.length;Ce<$e;Ce++){var w=Ee.charCodeAt(Ce);e.yield1(O,w&255),e.yield1(O,w>>8)}}),h(be,"$bytesize",function(Ee){return Ee.length*2})},{$$s:F}),s(ve("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:ve(ve("Encoding"),"UTF_16LE")})],function Z(){var be=Z.$$s==null?this:Z.$$s;return h(be,"$each_byte",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=0,$e=Ee.length;Ce<$e;Ce++){var w=Ee.charCodeAt(Ce);e.yield1(O,w>>8),e.yield1(O,w&255)}})},{$$s:F}),s(ve("Encoding"),"register",["UTF-32LE"],function Z(){var be=Z.$$s==null?this:Z.$$s;return h(be,"$each_byte",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=0,$e=Ee.length;Ce<$e;Ce++){var w=Ee.charCodeAt(Ce);e.yield1(O,w&255),e.yield1(O,w>>8),e.yield1(O,0),e.yield1(O,0)}}),h(be,"$bytesize",function(Ee){return Ee.length*4})},{$$s:F}),s(ve("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:ve(ve("Encoding"),"UTF_32LE")})],function Z(){var be=Z.$$s==null?this:Z.$$s;return h(be,"$each_byte",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=0,$e=Ee.length;Ce<$e;Ce++){var w=Ee.charCodeAt(Ce);e.yield1(O,0),e.yield1(O,0),e.yield1(O,w>>8),e.yield1(O,w&255)}})},{$$s:F}),s(ve("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function Z(){var be=Z.$$s==null?this:Z.$$s;return h(be,"$each_char",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=0,$e=Ee.length;Ce<$e;Ce++){var w=new String(Ee.charAt(Ce));w.encoding=Ee.encoding,e.yield1(O,w)}}),h(be,"$charsize",function(Ee){return Ee.length}),h(be,"$each_byte",function ue(Ee){var O=ue.$$p||se;ue.$$p=null;for(var Ce=0,$e=Ee.length;Ce<$e;Ce++){var w=Ee.charCodeAt(Ce);e.yield1(O,w&255)}}),h(be,"$bytesize",function(Ee){return Ee.length}),h(be,"$binary?",A(!0))},{$$s:F}),ve("Encoding").$register("ISO-8859-1",r(["aliases","ascii","inherits"],{aliases:["ISO8859-1"],ascii:!0,inherits:ve(ve("Encoding"),"ASCII_8BIT")})),ve("Encoding").$register("US-ASCII",r(["aliases","ascii","inherits"],{aliases:["ASCII"],ascii:!0,inherits:ve(ve("Encoding"),"ASCII_8BIT")})),function(Z,be){var ue=t(Z,be,"String"),Ee=ue.$$prototype;return Ee.internal_encoding=Ee.bytes=Ee.encoding=se,ue.$attr_reader("encoding"),ue.$attr_reader("internal_encoding"),e.prop(String.prototype,"bytes",se),e.prop(String.prototype,"encoding",ve(ve("Encoding"),"UTF_8")),e.prop(String.prototype,"internal_encoding",ve(ve("Encoding"),"UTF_8")),h(ue,"$b",function(){var Ce=this;return Ce.$dup().$force_encoding("binary")}),h(ue,"$bytesize",function(){var Ce=this;return Ce.internal_encoding.$bytesize(Ce)}),h(ue,"$each_byte",function O(){var Ce=O.$$p||se,$e=this;return O.$$p=null,Ce===se?s($e,"enum_for",["each_byte"],function w(){var Ae=w.$$s==null?this:w.$$s;return Ae.$bytesize()},{$$s:$e}):(s($e.internal_encoding,"each_byte",[$e],Ce.$to_proc()),$e)}),h(ue,"$bytes",function(){var Ce=this,$e=se;return typeof Ce=="string"?new String(Ce).$each_byte().$to_a():(Ce.bytes=i($e=Ce.bytes)?$e:Ce.$each_byte().$to_a(),Ce.bytes.$dup())}),h(ue,"$each_char",function O(){var Ce=O.$$p||se,$e=this;return O.$$p=null,Ce===se?s($e,"enum_for",["each_char"],function w(){var Ae=w.$$s==null?this:w.$$s;return Ae.$length()},{$$s:$e}):(s($e.encoding,"each_char",[$e],Ce.$to_proc()),$e)}),h(ue,"$chars",function O(){var Ce=O.$$p||se,$e=this;return O.$$p=null,i(Ce)?s($e,"each_char",[],Ce.$to_proc()):$e.$each_char().$to_a()}),h(ue,"$each_codepoint",function O(){var Ce=O.$$p||se,$e=this;if(O.$$p=null,Ce===se)return $e.$enum_for("each_codepoint");for(var w=0,Ae=$e.length;w<Ae;w++)e.yield1(Ce,$e.codePointAt(w));return $e}),h(ue,"$codepoints",function O(){var Ce=O.$$p||se,$e=this;return O.$$p=null,Ce!==se?s($e,"each_codepoint",[],Ce.$to_proc()):$e.$each_codepoint().$to_a()}),h(ue,"$encode",function(Ce){var $e=this;return e.enc($e,Ce)}),h(ue,"$force_encoding",function(Ce){var $e=this,w=$e;return Ce===w.encoding||(Ce=ne["$coerce_to!"](Ce,ve("String"),"to_s"),Ce=ve("Encoding").$find(Ce),Ce===w.encoding)||(w=e.set_encoding(w,Ce)),w}),h(ue,"$getbyte",function(Ce){var $e=this,w=se;return w=$e.$bytes(),Ce=ne["$coerce_to!"](Ce,ve("Integer"),"to_int"),i(ge(w.$length(),Ce))?se:w["$[]"](Ce)}),h(ue,"$initialize_copy",function(Ce){return`
417
+ self.encoding = other.encoding;
418
+ self.internal_encoding = other.internal_encoding;
419
+ `}),h(ue,"$valid_encoding?",A(!0))}("::",null),Q=[ve(pe("Encoding"),"UTF_8")],s(ve("Encoding"),"default_external=",Q),Q[Q.length-1]};Opal.modules["corelib/math"]=function(e){var t=e.type_error,r=e.module,n=e.const_set,i=e.Class,s=e.slice,o=e.Kernel,f=e.defs,h=e.truthy,d=e.send,A=e.def,z=e.rb_minus,L=e.eqeqeq,ne=e.rb_divide,ge=[],Q=e.nil,F=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(Y,pe){var se=r(Y,"Math"),ve=[se].concat(pe),Z=e.$r(ve);return n(se,"E",Math.E),n(se,"PI",Math.PI),n(se,"DomainError",i.$new(F("StandardError"))),f(se,"$checked",function(ue,Ee){var O,Ce;if(O=s(arguments,1),Ce=O,isNaN(Ce[0])||Ce.length==2&&isNaN(Ce[1]))return NaN;var $e=Math[ue].apply(null,Ce);return isNaN($e)&&o.$raise(Z("DomainError"),'Numerical argument is out of domain - "'+ue+'"'),$e},-2),f(se,"$float!",function(ue){try{return o.$Float(ue)}catch(Ee){if(e.rescue(Ee,[F("ArgumentError")]))try{return o.$raise(t(ue,F("Float")))}finally{e.pop_exception()}else throw Ee}}),f(se,"$integer!",function(ue){try{return o.$Integer(ue)}catch(Ee){if(e.rescue(Ee,[F("ArgumentError")]))try{return o.$raise(t(ue,F("Integer")))}finally{e.pop_exception()}else throw Ee}}),se.$module_function(),h(typeof Math.erf<"u")||e.prop(Math,"erf",function(be){var ue=.254829592,Ee=-.284496736,O=1.421413741,Ce=-1.453152027,$e=1.061405429,w=.3275911,Ae=1;be<0&&(Ae=-1),be=Math.abs(be);var j=1/(1+w*be),de=1-(((($e*j+Ce)*j+O)*j+Ee)*j+ue)*j*Math.exp(-be*be);return Ae*de}),h(typeof Math.erfc<"u")||e.prop(Math,"erfc",function(be){var ue=Math.abs(be),Ee=1/(.5*ue+1),O=Ee*.17087277+-.82215223,Ce=Ee*O+1.48851587,$e=Ee*Ce+-1.13520398,w=Ee*$e+.27886807,Ae=Ee*w+-.18628806,j=Ee*Ae+.09678418,de=Ee*j+.37409196,V=Ee*de+1.00002368,Fe=Ee*V,ce=-ue*ue-1.26551223+Fe,U=Ee*Math.exp(ce);return be<0?2-U:U}),d(["acos","acosh","asin","asinh","atan","atanh","cbrt","cos","cosh","erf","erfc","exp","sin","sinh","sqrt","tanh"],"each",[],function be(ue){var Ee=be.$$s==null?this:be.$$s;return ue==null&&(ue=Q),d(Ee,"define_method",[ue],function(Ce){return Ce==null&&(Ce=Q),F("Math").$checked(ue,F("Math")["$float!"](Ce))})},{$$s:se}),A(se,"$atan2",function(ue,Ee){return F("Math").$checked("atan2",F("Math")["$float!"](ue),F("Math")["$float!"](Ee))}),A(se,"$hypot",function(ue,Ee){return F("Math").$checked("hypot",F("Math")["$float!"](ue),F("Math")["$float!"](Ee))}),A(se,"$frexp",function(ue){if(ue=Z("Math")["$float!"](ue),isNaN(ue))return[NaN,0];var Ee=Math.floor(Math.log(Math.abs(ue))/Math.log(2))+1,O=ue/Math.pow(2,Ee);return[O,Ee]}),A(se,"$gamma",function(ue){ue=Z("Math")["$float!"](ue);var Ee,O,Ce,$e,w,Ae,j,de,V,Fe=4.7421875,ce=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];if(isNaN(ue))return NaN;if(ue===0&&1/ue<0)return-1/0;if((ue===-1||ue===-1/0)&&o.$raise(Z("DomainError"),'Numerical argument is out of domain - "gamma"'),Z("Integer")["$==="](ue)){if(ue<=0)return isFinite(ue)?1/0:NaN;if(ue>171)return 1/0;for($e=ue-2,w=ue-1;$e>1;)w*=$e,$e--;return w==0&&(w=1),w}if(ue<.5)return Math.PI/(Math.sin(Math.PI*ue)*F("Math").$gamma(z(1,ue)));if(ue>=171.35)return 1/0;if(ue>85)return Ae=ue*ue,j=Ae*ue,de=j*ue,V=de*ue,Math.sqrt(2*Math.PI/ue)*Math.pow(ue/Math.E,ue)*(1+1/(12*ue)+1/(288*Ae)-139/(51840*j)-571/(2488320*de)+163879/(209018880*V)+5246819/(75246796800*V*ue));for(ue-=1,Ce=ce[0],Ee=1;Ee<ce.length;++Ee)Ce+=ce[Ee]/(ue+Ee);return O=ue+Fe+.5,Math.sqrt(2*Math.PI)*Math.pow(O,ue+.5)*Math.exp(-O)*Ce}),A(se,"$ldexp",function(ue,Ee){return ue=Z("Math")["$float!"](ue),Ee=Z("Math")["$integer!"](Ee),isNaN(Ee)&&o.$raise(F("RangeError"),"float NaN out of range of integer"),ue*Math.pow(2,Ee)}),A(se,"$lgamma",function(ue){return ue==-1?[1/0,1]:[Math.log(Math.abs(F("Math").$gamma(ue))),F("Math").$gamma(ue)<0?-1:1]}),A(se,"$log",function(ue,Ee){return L(F("String"),ue)&&o.$raise(t(ue,F("Float"))),h(Ee==null)?F("Math").$checked("log",F("Math")["$float!"](ue)):(L(F("String"),Ee)&&o.$raise(t(Ee,F("Float"))),ne(F("Math").$checked("log",F("Math")["$float!"](ue)),F("Math").$checked("log",F("Math")["$float!"](Ee))))},-2),A(se,"$log10",function(ue){return L(F("String"),ue)&&o.$raise(t(ue,F("Float"))),F("Math").$checked("log10",F("Math")["$float!"](ue))}),A(se,"$log2",function(ue){return L(F("String"),ue)&&o.$raise(t(ue,F("Float"))),F("Math").$checked("log2",F("Math")["$float!"](ue))}),A(se,"$tan",function(ue){return ue=F("Math")["$float!"](ue),h(ue["$infinite?"]())?F(F("Float"),"NAN"):F("Math").$checked("tan",F("Math")["$float!"](ue))})}("::",ge)};Opal.modules["corelib/complex/base"]=function(e){var t=e.module,r=e.truthy,n=e.def,i=e.klass,s=[],o=e.nil;return e.add_stubs("new,from_string"),function(f,h){var d=t(f,"Kernel"),A=[d].concat(h),z=e.$r(A);return n(d,"$Complex",function(ne,ge){return ge==null&&(ge=o),r(ge)?z("Complex").$new(ne,ge):z("Complex").$new(ne,0)},-2)}("::",s),function(f,h,d){var A=i(f,h,"String"),z=[A].concat(d),L=e.$r(z);return n(A,"$to_c",function(){var ge=this;return L("Complex").$from_string(ge)})}("::",null,s)};Opal.modules["corelib/complex"]=function(e){var t=e.klass,r=e.truthy,n=e.eqeqeq,i=e.Kernel,s=e.defs,o=e.rb_times,f=e.def,h=e.rb_plus,d=e.rb_minus,A=e.rb_divide,z=e.eqeq,L=e.to_ary,ne=e.rb_gt,ge=e.neqeq,Q=e.return_val,F=e.const_set,Y=e.alias,pe=e.top,se=[],ve=e.nil,Z=e.$$$;return e.add_stubs("require,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Complex,-@,+,__coerced__,-,nan?,/,conj,abs2,quo,polar,exp,log,>,!=,divmod,**,hypot,atan2,lcm,denominator,finite?,infinite?,numerator,abs,arg,rationalize,to_f,to_i,to_r,inspect,zero?,positive?,Rational,rect,angle"),pe.$require("corelib/numeric"),pe.$require("corelib/complex/base"),function(be,ue,Ee){var O=t(be,ue,"Complex"),Ce=[O].concat(Ee),$e=e.$r(Ce),w=O.$$prototype;return w.real=w.imag=ve,s(O,"$rect",function(j,de){var V=this;return de==null&&(de=0),n(Z("Numeric"),j)&&r(j["$real?"]())&&n(Z("Numeric"),de)&&r(de["$real?"]())||i.$raise(Z("TypeError"),"not a real"),V.$new(j,de)},-2),s(O,"$polar",function(j,de){var V=this;return de==null&&(de=0),n(Z("Numeric"),j)&&r(j["$real?"]())&&n(Z("Numeric"),de)&&r(de["$real?"]())||i.$raise(Z("TypeError"),"not a real"),V.$new(o(j,Z("Math").$cos(de)),o(j,Z("Math").$sin(de)))},-2),O.$attr_reader("real","imag"),f(O,"$initialize",function(j,de){var V=this;return de==null&&(de=0),V.real=j,V.imag=de,V.$freeze()},-2),f(O,"$coerce",function(j){var de=this;return n(Z("Complex"),j)?[j,de]:n(Z("Numeric"),j)&&r(j["$real?"]())?[Z("Complex").$new(j,0),de]:i.$raise(Z("TypeError"),""+j.$class()+" can't be coerced into Complex")}),f(O,"$==",function(j){var de=this,V=ve;return n(Z("Complex"),j)?r(V=de.real["$=="](j.$real()))?de.imag["$=="](j.$imag()):V:n(Z("Numeric"),j)&&r(j["$real?"]())?r(V=de.real["$=="](j))?de.imag["$=="](0):V:j["$=="](de)}),f(O,"$-@",function(){var j=this;return i.$Complex(j.real["$-@"](),j.imag["$-@"]())}),f(O,"$+",function(j){var de=this;return n(Z("Complex"),j)?i.$Complex(h(de.real,j.$real()),h(de.imag,j.$imag())):n(Z("Numeric"),j)&&r(j["$real?"]())?i.$Complex(h(de.real,j),de.imag):de.$__coerced__("+",j)}),f(O,"$-",function(j){var de=this;return n(Z("Complex"),j)?i.$Complex(d(de.real,j.$real()),d(de.imag,j.$imag())):n(Z("Numeric"),j)&&r(j["$real?"]())?i.$Complex(d(de.real,j),de.imag):de.$__coerced__("-",j)}),f(O,"$*",function(j){var de=this;return n(Z("Complex"),j)?i.$Complex(d(o(de.real,j.$real()),o(de.imag,j.$imag())),h(o(de.real,j.$imag()),o(de.imag,j.$real()))):n(Z("Numeric"),j)&&r(j["$real?"]())?i.$Complex(o(de.real,j),o(de.imag,j)):de.$__coerced__("*",j)}),f(O,"$/",function(j){var de=this;return n(Z("Complex"),j)?n(Z("Number"),de.real)&&r(de.real["$nan?"]())||n(Z("Number"),de.imag)&&r(de.imag["$nan?"]())||n(Z("Number"),j.$real())&&r(j.$real()["$nan?"]())||n(Z("Number"),j.$imag())&&r(j.$imag()["$nan?"]())?Z("Complex").$new(Z(Z("Float"),"NAN"),Z(Z("Float"),"NAN")):A(o(de,j.$conj()),j.$abs2()):n(Z("Numeric"),j)&&r(j["$real?"]())?i.$Complex(de.real.$quo(j),de.imag.$quo(j)):de.$__coerced__("/",j)}),f(O,"$**",function(j){var de,V,Fe=this,ce=ve,U=ve,x=ve,$=ve,l=ve,c=ve,p=ve,_=ve,S=ve,C=ve,ee=ve;if(z(j,0))return Z("Complex").$new(1,0);if(n(Z("Complex"),j))return V=Fe.$polar(),de=L(V),ce=de[0]==null?ve:de[0],U=de[1]==null?ve:de[1],x=j.$real(),$=j.$imag(),l=Z("Math").$exp(d(o(x,Z("Math").$log(ce)),o($,U))),c=h(o(U,x),o($,Z("Math").$log(ce))),Z("Complex").$polar(l,c);if(n(Z("Integer"),j))if(r(ne(j,0))){for(p=Fe,_=p,S=d(j,1);ge(S,0);){for(V=S.$divmod(2),de=L(V),C=de[0]==null?ve:de[0],ee=de[1]==null?ve:de[1];z(ee,0);)p=i.$Complex(d(o(p.$real(),p.$real()),o(p.$imag(),p.$imag())),o(o(2,p.$real()),p.$imag())),S=C,V=S.$divmod(2),de=L(V),C=de[0]==null?ve:de[0],ee=de[1]==null?ve:de[1];_=o(_,p),S=d(S,1)}return _}else return A(Z("Rational").$new(1,1),Fe)["$**"](j["$-@"]());else return n(Z("Float"),j)||n(Z("Rational"),j)?(V=Fe.$polar(),de=L(V),ce=de[0]==null?ve:de[0],U=de[1]==null?ve:de[1],Z("Complex").$polar(ce["$**"](j),o(U,j))):Fe.$__coerced__("**",j)}),f(O,"$abs",function(){var j=this;return Z("Math").$hypot(j.real,j.imag)}),f(O,"$abs2",function(){var j=this;return h(o(j.real,j.real),o(j.imag,j.imag))}),f(O,"$angle",function(){var j=this;return Z("Math").$atan2(j.imag,j.real)}),f(O,"$conj",function(){var j=this;return i.$Complex(j.real,j.imag["$-@"]())}),f(O,"$denominator",function(){var j=this;return j.real.$denominator().$lcm(j.imag.$denominator())}),f(O,"$eql?",function(j){var de=this,V=ve,Fe=ve;return r(V=r(Fe=$e("Complex")["$==="](j))?de.real.$class()["$=="](de.imag.$class()):Fe)?de["$=="](j):V}),f(O,"$fdiv",function(j){var de=this;return n(Z("Numeric"),j)||i.$raise(Z("TypeError"),""+j.$class()+" can't be coerced into Complex"),A(de,j)}),f(O,"$finite?",function(){var j=this,de=ve;return r(de=j.real["$finite?"]())?j.imag["$finite?"]():de}),f(O,"$hash",function(){var j=this;return"Complex:"+j.real+":"+j.imag}),f(O,"$infinite?",function(){var j=this,de=ve;return r(de=j.real["$infinite?"]())?de:j.imag["$infinite?"]()}),f(O,"$inspect",function(){var j=this;return"("+j+")"}),f(O,"$numerator",function(){var j=this,de=ve;return de=j.$denominator(),i.$Complex(o(j.real.$numerator(),A(de,j.real.$denominator())),o(j.imag.$numerator(),A(de,j.imag.$denominator())))}),f(O,"$polar",function(){var j=this;return[j.$abs(),j.$arg()]}),f(O,"$rationalize",function(j){var de=this;return arguments.length>1&&i.$raise(Z("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),ge(de.imag,0)&&i.$raise(Z("RangeError"),"can't convert "+de+" into Rational"),de.$real().$rationalize(j)},-1),f(O,"$real?",Q(!1)),f(O,"$rect",function(){var j=this;return[j.real,j.imag]}),f(O,"$to_f",function(){var j=this;return z(j.imag,0)||i.$raise(Z("RangeError"),"can't convert "+j+" into Float"),j.real.$to_f()}),f(O,"$to_i",function(){var j=this;return z(j.imag,0)||i.$raise(Z("RangeError"),"can't convert "+j+" into Integer"),j.real.$to_i()}),f(O,"$to_r",function(){var j=this;return z(j.imag,0)||i.$raise(Z("RangeError"),"can't convert "+j+" into Rational"),j.real.$to_r()}),f(O,"$to_s",function(){var j=this,de=ve;return de=j.real.$inspect(),de=h(de,n(Z("Number"),j.imag)&&r(j.imag["$nan?"]())||r(j.imag["$positive?"]())||r(j.imag["$zero?"]())?"+":"-"),de=h(de,j.imag.$abs().$inspect()),n(Z("Number"),j.imag)&&(r(j.imag["$nan?"]())||r(j.imag["$infinite?"]()))&&(de=h(de,"*")),h(de,"i")}),F(Ce[0],"I",O.$new(0,1)),s(O,"$from_string",function(j){var de=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;j.match(de);var V,Fe;function ce(){return de.test(j)}function U(){var $=j.match(de),l=$[0];return j=j.slice(l.length),l.replace(/_/g,"")}function x(){if(ce()){var $=parseFloat(U());if(j[0]==="/")if(j=j.slice(1),ce()){var l=parseFloat(U());return i.$Rational($,l)}else return j="/"+j,$;else return $}else return null}return V=x(),V?(Fe=x(),Fe?i.$Complex(V,Fe):j[0]==="i"?i.$Complex(0,V):i.$Complex(V,0)):j[0]==="i"?i.$Complex(0,1):j[0]==="-"&&j[1]==="i"?i.$Complex(0,-1):j[0]==="+"&&j[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Ae,j){return Y(Ae,"rectangular","rect")}(e.get_singleton_class(O)),Y(O,"arg","angle"),Y(O,"conjugate","conj"),Y(O,"divide","/"),Y(O,"imaginary","imag"),Y(O,"magnitude","abs"),Y(O,"phase","arg"),Y(O,"quo","/"),Y(O,"rectangular","rect"),e.udef(O,"$negative?"),e.udef(O,"$positive?"),e.udef(O,"$step"),ve}("::",Z("Numeric"),se)};Opal.modules["corelib/rational/base"]=function(e){var t=e.module,r=e.def,n=e.klass;e.nil;var i=e.$$$;return e.add_stubs("convert,from_string"),function(s){var o=t(s,"Kernel");return r(o,"$Rational",function(h,d){return d==null&&(d=1),i("Rational").$convert(h,d)},-2)}("::"),function(s,o){var f=n(s,o,"String");return r(f,"$to_r",function(){var d=this;return i("Rational").$from_string(d)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,o=e.rb_divide,f=e.defs,h=e.eqeqeq,d=e.not,A=e.Opal,z=e.def,L=e.return_ivar,ne=e.rb_minus,ge=e.rb_times,Q=e.rb_plus,F=e.rb_gt,Y=e.rb_le,pe=e.return_self,se=e.alias,ve=e.top,Z=e.nil,be=e.$$$;return e.add_stubs("require,to_i,==,raise,<,-@,new,gcd,/,nil?,===,reduce,to_r,!,equal?,coerce_to!,freeze,to_f,numerator,denominator,<=>,-,*,__coerced__,+,Rational,>,**,abs,ceil,with_precision,floor,<=,truncate,send"),ve.$require("corelib/numeric"),ve.$require("corelib/rational/base"),function(ue,Ee){var O=t(ue,Ee,"Rational"),Ce=O.$$prototype;return Ce.num=Ce.den=Z,f(O,"$reduce",function(w,Ae){var j=this,de=Z;if(w=w.$to_i(),Ae=Ae.$to_i(),r(Ae,0))n.$raise(be("ZeroDivisionError"),"divided by 0");else if(i(s(Ae,0)))w=w["$-@"](),Ae=Ae["$-@"]();else if(r(Ae,1))return j.$new(w,Ae);return de=w.$gcd(Ae),j.$new(o(w,de),o(Ae,de))}),f(O,"$convert",function(w,Ae){var j=this;return(i(w["$nil?"]())||i(Ae["$nil?"]()))&&n.$raise(be("TypeError"),"cannot convert nil into Rational"),h(be("Integer"),w)&&h(be("Integer"),Ae)?j.$reduce(w,Ae):((h(be("Float"),w)||h(be("String"),w)||h(be("Complex"),w))&&(w=w.$to_r()),(h(be("Float"),Ae)||h(be("String"),Ae)||h(be("Complex"),Ae))&&(Ae=Ae.$to_r()),i(Ae["$equal?"](1))&&d(be("Integer")["$==="](w))?A["$coerce_to!"](w,be("Rational"),"to_r"):h(be("Numeric"),w)&&h(be("Numeric"),Ae)?o(w,Ae):j.$reduce(w,Ae))}),z(O,"$initialize",function(w,Ae){var j=this;return j.num=w,j.den=Ae,j.$freeze()}),z(O,"$numerator",L("num")),z(O,"$denominator",L("den")),z(O,"$coerce",function(w){var Ae=this,j=Z;return h(be("Rational"),j=w)?[w,Ae]:h(be("Integer"),j)?[w.$to_r(),Ae]:h(be("Float"),j)?[w,Ae.$to_f()]:Z}),z(O,"$==",function(w){var Ae=this,j=Z,de=Z;return h(be("Rational"),j=w)?i(de=Ae.num["$=="](w.$numerator()))?Ae.den["$=="](w.$denominator()):de:h(be("Integer"),j)?i(de=Ae.num["$=="](w))?Ae.den["$=="](1):de:h(be("Float"),j)?Ae.$to_f()["$=="](w):w["$=="](Ae)}),z(O,"$<=>",function(w){var Ae=this,j=Z;return h(be("Rational"),j=w)?ne(ge(Ae.num,w.$denominator()),ge(Ae.den,w.$numerator()))["$<=>"](0):h(be("Integer"),j)?ne(Ae.num,ge(Ae.den,w))["$<=>"](0):h(be("Float"),j)?Ae.$to_f()["$<=>"](w):Ae.$__coerced__("<=>",w)}),z(O,"$+",function(w){var Ae=this,j=Z,de=Z,V=Z;return h(be("Rational"),j=w)?(de=Q(ge(Ae.num,w.$denominator()),ge(Ae.den,w.$numerator())),V=ge(Ae.den,w.$denominator()),n.$Rational(de,V)):h(be("Integer"),j)?n.$Rational(Q(Ae.num,ge(w,Ae.den)),Ae.den):h(be("Float"),j)?Q(Ae.$to_f(),w):Ae.$__coerced__("+",w)}),z(O,"$-",function(w){var Ae=this,j=Z,de=Z,V=Z;return h(be("Rational"),j=w)?(de=ne(ge(Ae.num,w.$denominator()),ge(Ae.den,w.$numerator())),V=ge(Ae.den,w.$denominator()),n.$Rational(de,V)):h(be("Integer"),j)?n.$Rational(ne(Ae.num,ge(w,Ae.den)),Ae.den):h(be("Float"),j)?ne(Ae.$to_f(),w):Ae.$__coerced__("-",w)}),z(O,"$*",function(w){var Ae=this,j=Z,de=Z,V=Z;return h(be("Rational"),j=w)?(de=ge(Ae.num,w.$numerator()),V=ge(Ae.den,w.$denominator()),n.$Rational(de,V)):h(be("Integer"),j)?n.$Rational(ge(Ae.num,w),Ae.den):h(be("Float"),j)?ge(Ae.$to_f(),w):Ae.$__coerced__("*",w)}),z(O,"$/",function(w){var Ae=this,j=Z,de=Z,V=Z;return h(be("Rational"),j=w)?(de=ge(Ae.num,w.$denominator()),V=ge(Ae.den,w.$numerator()),n.$Rational(de,V)):h(be("Integer"),j)?r(w,0)?o(Ae.$to_f(),0):n.$Rational(Ae.num,ge(Ae.den,w)):h(be("Float"),j)?o(Ae.$to_f(),w):Ae.$__coerced__("/",w)}),z(O,"$**",function(w){var Ae=this,j=Z;return h(be("Integer"),j=w)?r(Ae,0)&&i(s(w,0))?be(be("Float"),"INFINITY"):i(F(w,0))?n.$Rational(Ae.num["$**"](w),Ae.den["$**"](w)):i(s(w,0))?n.$Rational(Ae.den["$**"](w["$-@"]()),Ae.num["$**"](w["$-@"]())):n.$Rational(1,1):h(be("Float"),j)?Ae.$to_f()["$**"](w):h(be("Rational"),j)?r(w,0)?n.$Rational(1,1):r(w.$denominator(),1)?i(s(w,0))?n.$Rational(Ae.den["$**"](w.$numerator().$abs()),Ae.num["$**"](w.$numerator().$abs())):n.$Rational(Ae.num["$**"](w.$numerator()),Ae.den["$**"](w.$numerator())):r(Ae,0)&&i(s(w,0))?n.$raise(be("ZeroDivisionError"),"divided by 0"):Ae.$to_f()["$**"](w):Ae.$__coerced__("**",w)}),z(O,"$abs",function(){var w=this;return n.$Rational(w.num.$abs(),w.den.$abs())}),z(O,"$ceil",function(w){var Ae=this;return w==null&&(w=0),r(w,0)?o(Ae.num["$-@"](),Ae.den)["$-@"]().$ceil():Ae.$with_precision("ceil",w)},-1),z(O,"$floor",function(w){var Ae=this;return w==null&&(w=0),r(w,0)?o(Ae.num["$-@"](),Ae.den)["$-@"]().$floor():Ae.$with_precision("floor",w)},-1),z(O,"$hash",function(){var w=this;return"Rational:"+w.num+":"+w.den}),z(O,"$inspect",function(){var w=this;return"("+w+")"}),z(O,"$rationalize",function(w){var Ae=this;if(arguments.length>1&&n.$raise(be("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),w==null)return Ae;for(var j=w.$abs(),de=ne(Ae,j),V=Q(Ae,j),Fe=0,ce=1,U=1,x=0,$,l,c,p,_;c=de.$ceil(),!Y(c,V);)p=c-1,$=p*ce+Fe,l=p*x+U,_=o(1,ne(V,p)),V=o(1,ne(de,p)),de=_,Fe=ce,U=x,ce=$,x=l;return n.$Rational(c*ce+Fe,c*x+U)},-1),z(O,"$round",function(w){var Ae=this,j=Z,de=Z,V=Z;return w==null&&(w=0),r(w,0)?r(Ae.num,0)?0:r(Ae.den,1)?Ae.num:(j=Q(ge(Ae.num.$abs(),2),Ae.den),de=ge(Ae.den,2),V=o(j,de).$truncate(),i(s(Ae.num,0))?V["$-@"]():V):Ae.$with_precision("round",w)},-1),z(O,"$to_f",function(){var w=this;return o(w.num,w.den)}),z(O,"$to_i",function(){var w=this;return w.$truncate()}),z(O,"$to_r",pe),z(O,"$to_s",function(){var w=this;return""+w.num+"/"+w.den}),z(O,"$truncate",function(w){var Ae=this;return w==null&&(w=0),r(w,0)?i(s(Ae.num,0))?Ae.$ceil():Ae.$floor():Ae.$with_precision("truncate",w)},-1),z(O,"$with_precision",function(w,Ae){var j=this,de=Z,V=Z;return h(be("Integer"),Ae)||n.$raise(be("TypeError"),"not an Integer"),de=10["$**"](Ae),V=ge(j,de),i(s(Ae,1))?o(V.$send(w),de).$to_i():n.$Rational(V.$send(w),de)}),f(O,"$from_string",function(w){var Ae=w.trimLeft(),j=/^[+-]?[\d_]+(\.[\d_]+)?/;Ae.match(j);var de,V;function Fe(){return j.test(Ae)}function ce(){var U=Ae.match(j),x=U[0];return Ae=Ae.slice(x.length),x.replace(/_/g,"")}return Fe()?(de=parseFloat(ce()),Ae[0]==="/"?(Ae=Ae.slice(1),Fe()?(V=parseFloat(ce()),n.$Rational(de,V)):n.$Rational(de,1)):n.$Rational(de,1)):n.$Rational(0,1)}),se(O,"divide","/"),se(O,"quo","/")}("::",be("Numeric"))};Opal.modules["corelib/time"]=function(e){var t=e.slice,r=e.deny_frozen_access,n=e.klass,i=e.Kernel,s=e.Opal,o=e.defs,f=e.eqeqeq,h=e.def,d=e.truthy,A=e.rb_gt,z=e.rb_lt,L=e.send,ne=e.rb_plus,ge=e.rb_divide,Q=e.rb_minus,F=e.range,Y=e.neqeq,pe=e.rb_le,se=e.eqeq,ve=e.alias,Z=e.top,be=[],ue=e.nil,Ee=e.$$$;return e.add_stubs("require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>,to_f,nil?,>,<,strftime,each,define_method,year,month,day,+,round,/,-,copy_instance_variables,initialize_dup,is_a?,zero?,wday,utc?,mon,yday,hour,min,sec,rjust,ljust,zone,to_s,[],cweek_cyear,jd,to_date,format,isdst,!=,<=,==,ceil,local,gm,asctime,getgm,gmt_offset,inspect,usec,gmtime,gmt?"),Z.$require("corelib/comparable"),function(O,Ce,$e){var w=n(O,Ce,"Time"),Ae=[w].concat($e),j=e.$r(Ae);w.$include(Ee("Comparable"));var de=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],V=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ce=["January","February","March","April","May","June","July","August","September","October","November","December"];o(w,"$at",function($,l){var c;return Ee("Time")["$==="]($)?(l!==void 0&&i.$raise(Ee("TypeError"),"can't convert Time into an exact number"),c=new Date($.getTime()),c.timezone=$.timezone,c):($.$$is_number||($=s["$coerce_to!"]($,Ee("Integer"),"to_int")),l===void 0?new Date($*1e3):(l.$$is_number||(l=s["$coerce_to!"](l,Ee("Integer"),"to_int")),new Date($*1e3+l/1e3)))},-2);function U(x,$,l,c,p,_){if(x.$$is_string?x=parseInt(x,10):x=s["$coerce_to!"](x,Ee("Integer"),"to_int"),$===ue)$=1;else if(!$.$$is_number)if($["$respond_to?"]("to_str"))switch($=$.$to_str(),$.toLowerCase()){case"jan":$=1;break;case"feb":$=2;break;case"mar":$=3;break;case"apr":$=4;break;case"may":$=5;break;case"jun":$=6;break;case"jul":$=7;break;case"aug":$=8;break;case"sep":$=9;break;case"oct":$=10;break;case"nov":$=11;break;case"dec":$=12;break;default:$=$.$to_i()}else $=s["$coerce_to!"]($,Ee("Integer"),"to_int");return($<1||$>12)&&i.$raise(Ee("ArgumentError"),"month out of range: "+$),$=$-1,l===ue?l=1:l.$$is_string?l=parseInt(l,10):l=s["$coerce_to!"](l,Ee("Integer"),"to_int"),(l<1||l>31)&&i.$raise(Ee("ArgumentError"),"day out of range: "+l),c===ue?c=0:c.$$is_string?c=parseInt(c,10):c=s["$coerce_to!"](c,Ee("Integer"),"to_int"),(c<0||c>24)&&i.$raise(Ee("ArgumentError"),"hour out of range: "+c),p===ue?p=0:p.$$is_string?p=parseInt(p,10):p=s["$coerce_to!"](p,Ee("Integer"),"to_int"),(p<0||p>59)&&i.$raise(Ee("ArgumentError"),"min out of range: "+p),_===ue?_=0:_.$$is_number||(_.$$is_string?_=parseInt(_,10):_=s["$coerce_to!"](_,Ee("Integer"),"to_int")),(_<0||_>60)&&i.$raise(Ee("ArgumentError"),"sec out of range: "+_),[x,$,l,c,p,_]}return o(w,"$new",function($,l,c,p,_,S,C){var ee=this;l==null&&(l=ue),c==null&&(c=ue),p==null&&(p=ue),_==null&&(_=ue),S==null&&(S=ue),C==null&&(C=ue);var Le,nt,dt,lt;return $===void 0?new Date:(Le=U($,l,c,p,_,S),$=Le[0],l=Le[1],c=Le[2],p=Le[3],_=Le[4],S=Le[5],C===ue?(nt=new Date($,l,c,p,_,0,S*1e3),$<100&&nt.setFullYear($),nt):(dt=ee.$_parse_offset(C),lt=new Date(Date.UTC($,l,c,p,_,0,S*1e3)),$<100&&lt.setUTCFullYear($),nt=new Date(lt.getTime()-dt*36e5),nt.timezone=dt,nt))},-1),o(w,"$_parse_offset",function($){var l;if($.$$is_string)if($=="UTC")l=0;else if(/^[+-]\d\d:[0-5]\d$/.test($)){var c,p,_;c=$[0],p=+($[1]+$[2]),_=+($[4]+$[5]),l=(c=="-"?-1:1)*(p+_/60)}else i.$raise(Ee("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+$);else $.$$is_number?l=$/3600:i.$raise(Ee("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return l}),o(w,"$local",function($,l,c,p,_,S,C,ee,Le,nt){l==null&&(l=ue),c==null&&(c=ue),p==null&&(p=ue),_==null&&(_=ue),S==null&&(S=ue),C==null&&(C=ue),ee==null&&(ee=ue),Le==null&&(Le=ue),nt==null&&(nt=ue);var dt,lt;return arguments.length===10&&(dt=t(arguments),$=dt[5],l=dt[4],c=dt[3],p=dt[2],_=dt[1],S=dt[0]),dt=U($,l,c,p,_,S),$=dt[0],l=dt[1],c=dt[2],p=dt[3],_=dt[4],S=dt[5],lt=new Date($,l,c,p,_,0,S*1e3),$<100&&lt.setFullYear($),lt},-2),o(w,"$gm",function($,l,c,p,_,S,C,ee,Le,nt){l==null&&(l=ue),c==null&&(c=ue),p==null&&(p=ue),_==null&&(_=ue),S==null&&(S=ue),C==null&&(C=ue),ee==null&&(ee=ue),Le==null&&(Le=ue),nt==null&&(nt=ue);var dt,lt;return arguments.length===10&&(dt=t(arguments),$=dt[5],l=dt[4],c=dt[3],p=dt[2],_=dt[1],S=dt[0]),dt=U($,l,c,p,_,S),$=dt[0],l=dt[1],c=dt[2],p=dt[3],_=dt[4],S=dt[5],lt=new Date(Date.UTC($,l,c,p,_,0,S*1e3)),$<100&&lt.setUTCFullYear($),lt.timezone=0,lt},-2),o(w,"$now",function(){var $=this;return $.$new()}),h(w,"$+",function($){var l=this;f(Ee("Time"),$)&&i.$raise(Ee("TypeError"),"time + time?"),$.$$is_number||($=s["$coerce_to!"]($,Ee("Integer"),"to_int"));var c=new Date(l.getTime()+$*1e3);return c.timezone=l.timezone,c}),h(w,"$-",function($){var l=this;if(f(Ee("Time"),$))return(l.getTime()-$.getTime())/1e3;$.$$is_number||($=s["$coerce_to!"]($,Ee("Integer"),"to_int"));var c=new Date(l.getTime()-$*1e3);return c.timezone=l.timezone,c}),h(w,"$<=>",function($){var l=this,c=ue;return f(Ee("Time"),$)?l.$to_f()["$<=>"]($.$to_f()):(c=$["$<=>"](l),d(c["$nil?"]())?ue:d(A(c,0))?-1:d(z(c,0))?1:0)}),h(w,"$==",function($){var l=this,c=ue;return d(c=Ee("Time")["$==="]($))?l.$to_f()===$.$to_f():c}),h(w,"$asctime",function(){var $=this;return $.$strftime("%a %b %e %H:%M:%S %Y")}),L([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function x($,l,c,p){var _=x.$$s==null?this:x.$$s;return $==null&&($=ue),l==null&&(l=ue),c==null&&(c=ue),p==null&&(p=0),L(_,"define_method",[$],function S(){var C=S.$$s==null?this:S.$$s;return p+(C.timezone!=null?new Date(C.getTime()+C.timezone*36e5)[c]():C[l]())},{$$s:_})},{$$arity:-4,$$s:w}),h(w,"$yday",function(){var $=this,l=ue,c=ue,p=ue;return l=j("Time").$new($.$year()).$to_i(),c=j("Time").$new($.$year(),$.$month(),$.$day()).$to_i(),p=86400,ne(ge(Q(c,l),p).$round(),1)}),h(w,"$isdst",function(){var $=this,l=new Date($.getFullYear(),0,1),c=new Date($.getFullYear(),6,1);return $.getTimezoneOffset()<Math.max(l.getTimezoneOffset(),c.getTimezoneOffset())}),h(w,"$dup",function(){var $=this,l=ue;return l=new Date($.getTime()),l.$copy_instance_variables($),l.$initialize_dup($),l}),h(w,"$eql?",function($){var l=this,c=ue;return d(c=$["$is_a?"](Ee("Time")))?l["$<=>"]($)["$zero?"]():c}),L([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function x($,l){var c=x.$$s==null?this:x.$$s;return $==null&&($=ue),l==null&&(l=ue),L(c,"define_method",[$],function p(){var _=p.$$s==null?this:p.$$s;return _.$wday()===l},{$$s:c})},{$$s:w}),h(w,"$hash",function(){var $=this;return"Time:"+$.getTime()}),h(w,"$inspect",function(){var $=this;return d($["$utc?"]())?$.$strftime("%Y-%m-%d %H:%M:%S UTC"):$.$strftime("%Y-%m-%d %H:%M:%S %z")}),h(w,"$succ",function(){var $=this,l=new Date($.getTime()+1e3);return l.timezone=$.timezone,l}),h(w,"$usec",function(){var $=this;return $.getMilliseconds()*1e3}),h(w,"$zone",function(){var $=this;if($.timezone===0)return"UTC";if($.timezone!=null)return ue;var l=$.toString(),c;return l.indexOf("(")==-1?c=l.match(/[A-Z]{3,4}/)[0]:c=l.match(/\((.+)\)(?:\s|$)/)[1],c=="GMT"&&/(GMT\W*\d{4})/.test(l)?RegExp.$1:c}),h(w,"$getgm",function(){var $=this,l=new Date($.getTime());return l.timezone=0,l}),h(w,"$gmtime",function(){var $=this;return $.timezone!==0&&(r($),$.timezone=0),$}),h(w,"$gmt?",function(){var $=this;return $.timezone===0}),h(w,"$gmt_offset",function(){var $=this;return $.timezone!=null?$.timezone*60:-$.getTimezoneOffset()*60}),h(w,"$strftime",function($){var l=this;return $.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(c,p,_,S,C){var ee="",Le,nt,dt,lt=p.indexOf("0")!==-1,xt=p.indexOf("-")===-1,bt=p.indexOf("_")!==-1,yt=p.indexOf("^")!==-1,gt=p.indexOf("#")!==-1,wt=(p.match(":")||[]).length;switch(_=parseInt(_,10),lt&&bt&&(p.indexOf("0")<p.indexOf("_")?lt=!1:bt=!1),C){case"Y":ee+=l.$year();break;case"C":lt=!bt,ee+=Math.round(l.$year()/100);break;case"y":lt=!bt,ee+=l.$year()%100;break;case"m":lt=!bt,ee+=l.$mon();break;case"B":ee+=ce[l.$mon()-1];break;case"b":case"h":bt=!lt,ee+=Fe[l.$mon()-1];break;case"d":lt=!bt,ee+=l.$day();break;case"e":bt=!lt,ee+=l.$day();break;case"j":lt=!bt,_=isNaN(_)?3:_,ee+=l.$yday();break;case"H":lt=!bt,ee+=l.$hour();break;case"k":bt=!lt,ee+=l.$hour();break;case"I":lt=!bt,ee+=l.$hour()%12||12;break;case"l":bt=!lt,ee+=l.$hour()%12||12;break;case"P":ee+=l.$hour()>=12?"pm":"am";break;case"p":ee+=l.$hour()>=12?"PM":"AM";break;case"M":lt=!bt,ee+=l.$min();break;case"S":lt=!bt,ee+=l.$sec();break;case"L":lt=!bt,_=isNaN(_)?3:_,ee+=l.getMilliseconds();break;case"N":_=isNaN(_)?9:_,ee+=l.getMilliseconds().toString().$rjust(3,"0"),ee=ee.$ljust(_,"0");break;case"z":var At=l.timezone==null?l.getTimezoneOffset():-l.timezone*60,et=Math.floor(Math.abs(At)/60),ze=Math.abs(At)%60;ee+=At<0?"+":"-",ee+=et<10?"0":"",ee+=et,wt>0&&(ee+=":"),ee+=ze<10?"0":"",ee+=ze,wt>1&&(ee+=":00");break;case"Z":ee+=l.$zone();break;case"A":ee+=de[l.$wday()];break;case"a":ee+=V[l.$wday()];break;case"u":ee+=l.$wday()+1;break;case"w":ee+=l.$wday();break;case"V":ee+=l.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":ee+=l.$cweek_cyear()["$[]"](1);break;case"g":ee+=l.$cweek_cyear()["$[]"](1)["$[]"](F(-2,-1,!1));break;case"s":ee+=l.$to_i();break;case"n":ee+=`
420
+ `;break;case"t":ee+=" ";break;case"%":ee+="%";break;case"c":ee+=l.$strftime("%a %b %e %T %Y");break;case"D":case"x":ee+=l.$strftime("%m/%d/%y");break;case"F":ee+=l.$strftime("%Y-%m-%d");break;case"v":ee+=l.$strftime("%e-%^b-%4Y");break;case"r":ee+=l.$strftime("%I:%M:%S %p");break;case"R":ee+=l.$strftime("%H:%M");break;case"T":case"X":ee+=l.$strftime("%H:%M:%S");break;case"J":if(Le=l.$to_date().$jd(),Le<2405160){ee+=l.$strftime("%Y-%m-%d");break}else Le<2419614?(nt="M",dt=1867):Le<2424875?(nt="T",dt=1911):Le<2447535?(nt="S",dt=1925):Le<2458605?(nt="H",dt=1988):(nt="R",dt=2018);ee+=l.$format("%c%02d",nt,Q(l.$year(),dt)),ee+=l.$strftime("-%m-%d");break;default:return c}return yt&&(ee=ee.toUpperCase()),gt&&(ee=ee.replace(/[A-Z]/,function(je){je.toLowerCase()}).replace(/[a-z]/,function(je){je.toUpperCase()})),xt&&(lt||bt)&&(ee=ee.$rjust(isNaN(_)?2:_,bt?" ":"0")),ee})}),h(w,"$to_a",function(){var $=this;return[$.$sec(),$.$min(),$.$hour(),$.$day(),$.$month(),$.$year(),$.$wday(),$.$yday(),$.$isdst(),$.$zone()]}),h(w,"$to_f",function(){var $=this;return $.getTime()/1e3}),h(w,"$to_i",function(){var $=this;return parseInt($.getTime()/1e3,10)}),h(w,"$cweek_cyear",function(){var $=this,l=ue,c=ue,p=ue,_=ue,S=ue,C=ue,ee=ue;return l=Ee("Time").$new($.$year(),1,1),c=l.$wday(),p=$.$year(),d(pe(c,4))&&Y(c,0)?_=Q(c,1):(_=Q(Q(c,7),1),se(_,-8)&&(_=-1)),S=ge(ne($.$yday(),_),7).$ceil(),d(pe(S,0))?Ee("Time").$new(Q($.$year(),1),12,31).$cweek_cyear():(se(S,53)&&(C=Ee("Time").$new($.$year(),12,31),ee=C.$wday(),d(pe(ee,3))&&Y(ee,0)&&(S=1,p=ne(p,1))),[S,p])}),function(x,$){return ve(x,"mktime","local"),ve(x,"utc","gm")}(e.get_singleton_class(w)),ve(w,"ctime","asctime"),ve(w,"dst?","isdst"),ve(w,"getutc","getgm"),ve(w,"gmtoff","gmt_offset"),ve(w,"mday","day"),ve(w,"month","mon"),ve(w,"to_s","inspect"),ve(w,"tv_sec","to_i"),ve(w,"tv_usec","usec"),ve(w,"utc","gmtime"),ve(w,"utc?","gmt?"),ve(w,"utc_offset","gmt_offset")}("::",Date,be)};Opal.modules["corelib/struct"]=function(e){var t=e.klass,r=e.slice,n=e.extract_kwargs,i=e.ensure_kwargs,s=e.truthy,o=e.neqeq,f=e.eqeq,h=e.Opal,d=e.send,A=e.Class,z=e.to_a,L=e.def,ne=e.defs,ge=e.Kernel,Q=e.hash2,F=e.rb_gt,Y=e.rb_minus,pe=e.eqeqeq,se=e.rb_lt,ve=e.rb_ge,Z=e.rb_plus,be=e.alias,ue=e.top,Ee=[],O=e.nil,Ce=e.$$$;return e.add_stubs("require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,define_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members,define_method,instance_eval,last,>,length,-,keys,any?,join,[]=,each_with_index,hash,===,<,-@,size,>=,include?,to_sym,instance_of?,__id__,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig"),ue.$require("corelib/enumerable"),function($e,w,Ae){var j=t($e,w,"Struct"),de=[j].concat(Ae),V=e.$r(de);j.$include(Ce("Enumerable")),ne(j,"$new",function ce(U,x,$){var l=ce.$$p||O,c,p,_,S,C=this,ee=O;if(ce.$$p=null,c=r(arguments,1),p=n(c),p=i(p),_=c,S=p.$$smap.keyword_init,S==null&&(S=!1),s(U))if(f(U.$class(),Ce("String"))&&o(U["$[]"](0).$upcase(),U["$[]"](0)))_.$unshift(U),U=O;else try{U=h["$const_name!"](U)}catch(Le){if(e.rescue(Le,[Ce("TypeError"),Ce("NameError")]))try{_.$unshift(U),U=O}finally{e.pop_exception()}else throw Le}return d(_,"map",[],function(nt){return nt==null&&(nt=O),h["$coerce_to!"](nt,Ce("String"),"to_str")}),ee=d(A,"new",[C],function Le(){var nt=Le.$$s==null?this:Le.$$s;return d(_,"each",[],function dt(lt){var xt=dt.$$s==null?this:dt.$$s;return lt==null&&(lt=O),xt.$define_struct_attribute(lt)},{$$s:nt}),function(dt,lt){return L(dt,"$new",function(bt){var yt,gt,wt=this,At=O;return yt=r(arguments),gt=yt,At=wt.$allocate(),At.$$data={},d(At,"initialize",z(gt)),At},-1),dt.$alias_method("[]","new")}(e.get_singleton_class(nt))},{$$s:C}),s(l)&&d(ee,"module_eval",[],l.$to_proc()),ee.$$keyword_init=S,s(U)&&Ce("Struct").$const_set(U,ee),ee},-2),ne(j,"$define_struct_attribute",function(U){var x=this;return f(x,Ce("Struct"))&&ge.$raise(Ce("ArgumentError"),"you cannot define attributes to the Struct class"),x.$members()["$<<"](U),d(x,"define_method",[U],function $(){var l=$.$$s==null?this:$.$$s;return l.$$data[U]},{$$s:x}),d(x,"define_method",[""+U+"="],function $(l){var c=$.$$s==null?this:$.$$s;return l==null&&(l=O),c.$$data[U]=l},{$$s:x})}),ne(j,"$members",function(){var U=this,x=O;return U.members==null&&(U.members=O),f(U,Ce("Struct"))&&ge.$raise(Ce("ArgumentError"),"the Struct class has no members"),U.members=s(x=U.members)?x:[]}),ne(j,"$inherited",function(U){var x=this,$=O;return x.members==null&&(x.members=O),$=x.members,d(U,"instance_eval",[],function l(){var c=l.$$s==null?this:l.$$s;return c.members=$},{$$s:x})}),L(j,"$initialize",function(U){var x,$,l=this,c=O,p=O,_=O;return x=r(arguments),$=x,s(l.$class().$$keyword_init)?(c=s(p=$.$last())?p:Q([],{}),(s(F($.$length(),1))||s($.length===1&&!c.$$is_hash))&&ge.$raise(Ce("ArgumentError"),"wrong number of arguments (given "+$.$length()+", expected 0)"),_=Y(c.$keys(),l.$class().$members()),s(_["$any?"]())&&ge.$raise(Ce("ArgumentError"),"unknown keywords: "+_.$join(", ")),d(l.$class().$members(),"each",[],function S(C){var ee,Le=S.$$s==null?this:S.$$s;return C==null&&(C=O),ee=[C,c["$[]"](C)],d(Le,"[]=",ee),ee[ee.length-1]},{$$s:l})):(s(F($.$length(),l.$class().$members().$length()))&&ge.$raise(Ce("ArgumentError"),"struct size differs"),d(l.$class().$members(),"each_with_index",[],function S(C,ee){var Le,nt=S.$$s==null?this:S.$$s;return C==null&&(C=O),ee==null&&(ee=O),Le=[C,$["$[]"](ee)],d(nt,"[]=",Le),Le[Le.length-1]},{$$s:l}))},-1),L(j,"$initialize_copy",function(U){var x=this;x.$$data={};var $=Object.keys(U.$$data),l,c,p;for(l=0,c=$.length;l<c;l++)p=$[l],x.$$data[p]=U.$$data[p]}),ne(j,"$keyword_init?",function(){var U=this;return U.$$keyword_init}),L(j,"$members",function(){var U=this;return U.$class().$members()}),L(j,"$hash",function(){var U=this;return V("Hash").$new(U.$$data).$hash()}),L(j,"$[]",function(U){var x=this;return pe(Ce("Integer"),U)?(s(se(U,x.$class().$members().$size()["$-@"]()))&&ge.$raise(Ce("IndexError"),"offset "+U+" too small for struct(size:"+x.$class().$members().$size()+")"),s(ve(U,x.$class().$members().$size()))&&ge.$raise(Ce("IndexError"),"offset "+U+" too large for struct(size:"+x.$class().$members().$size()+")"),U=x.$class().$members()["$[]"](U)):pe(Ce("String"),U)?x.$$data.hasOwnProperty(U)||ge.$raise(Ce("NameError").$new("no member '"+U+"' in struct",U)):ge.$raise(Ce("TypeError"),"no implicit conversion of "+U.$class()+" into Integer"),U=h["$coerce_to!"](U,Ce("String"),"to_str"),x.$$data[U]}),L(j,"$[]=",function(U,x){var $=this;return pe(Ce("Integer"),U)?(s(se(U,$.$class().$members().$size()["$-@"]()))&&ge.$raise(Ce("IndexError"),"offset "+U+" too small for struct(size:"+$.$class().$members().$size()+")"),s(ve(U,$.$class().$members().$size()))&&ge.$raise(Ce("IndexError"),"offset "+U+" too large for struct(size:"+$.$class().$members().$size()+")"),U=$.$class().$members()["$[]"](U)):pe(Ce("String"),U)?s($.$class().$members()["$include?"](U.$to_sym()))||ge.$raise(Ce("NameError").$new("no member '"+U+"' in struct",U)):ge.$raise(Ce("TypeError"),"no implicit conversion of "+U.$class()+" into Integer"),U=h["$coerce_to!"](U,Ce("String"),"to_str"),$.$$data[U]=x}),L(j,"$==",function(U){var x=this;if(!s(U["$instance_of?"](x.$class())))return!1;var $={},l={};function c(p,_){var S,C,ee;$[p.$__id__()]=!0,l[_.$__id__()]=!0;for(S in p.$$data)if(C=p.$$data[S],ee=_.$$data[S],Ce("Struct")["$==="](C)){if((!$.hasOwnProperty(C.$__id__())||!l.hasOwnProperty(ee.$__id__()))&&!c(C,ee))return!1}else if(!C["$=="](ee))return!1;return!0}return c(x,U)}),L(j,"$eql?",function(U){var x=this;if(!s(U["$instance_of?"](x.$class())))return!1;var $={},l={};function c(p,_){var S,C,ee;$[p.$__id__()]=!0,l[_.$__id__()]=!0;for(S in p.$$data)if(C=p.$$data[S],ee=_.$$data[S],Ce("Struct")["$==="](C)){if((!$.hasOwnProperty(C.$__id__())||!l.hasOwnProperty(ee.$__id__()))&&!c(C,ee))return!1}else if(!C["$eql?"](ee))return!1;return!0}return c(x,U)}),L(j,"$each",function ce(){var U=ce.$$p||O,x=this;return ce.$$p=null,U===O?d(x,"enum_for",["each"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:x}):(d(x.$class().$members(),"each",[],function $(l){var c=$.$$s==null?this:$.$$s;return l==null&&(l=O),e.yield1(U,c["$[]"](l))},{$$s:x}),x)}),L(j,"$each_pair",function ce(){var U=ce.$$p||O,x=this;return ce.$$p=null,U===O?d(x,"enum_for",["each_pair"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:x}):(d(x.$class().$members(),"each",[],function $(l){var c=$.$$s==null?this:$.$$s;return l==null&&(l=O),e.yield1(U,[l,c["$[]"](l)])},{$$s:x}),x)}),L(j,"$length",function(){var U=this;return U.$class().$members().$length()}),L(j,"$to_a",function(){var U=this;return d(U.$class().$members(),"map",[],function x($){var l=x.$$s==null?this:x.$$s;return $==null&&($=O),l["$[]"]($)},{$$s:U})});var Fe=[];return L(j,"$inspect",function(){var U=this,x=O,$=O;return function(){try{return x="#<struct ",s(Fe["$include?"](U.$__id__()))?Z(x,":...>"):(Fe["$<<"](U.$__id__()),$=!0,pe(Ce("Struct"),U)&&s(U.$class().$name())&&(x=Z(x,""+U.$class()+" ")),x=Z(x,d(U.$each_pair(),"map",[],function(c,p){return c==null&&(c=O),p==null&&(p=O),""+c+"="+V("Opal").$inspect(p)}).$join(", ")),x=Z(x,">"),x)}finally{s($)&&Fe.pop()}}()}),L(j,"$to_h",function ce(){var U=ce.$$p||O,x=this;return ce.$$p=null,U!==O?d(d(x,"map",[],U.$to_proc()),"to_h",z(x.$args())):d(x.$class().$members(),"each_with_object",[Q([],{})],function $(l,c){var p,_=$.$$s==null?this:$.$$s;return l==null&&(l=O),c==null&&(c=O),p=[l,_["$[]"](l)],d(c,"[]=",p),p[p.length-1]},{$$s:x})}),L(j,"$values_at",function(U){var x,$,l=this;x=r(arguments),$=x,$=d($,"map",[],function(C){return C==null&&(C=O),C.$$is_range?C.$to_a():C}).$flatten();for(var c=[],p=0,_=$.length;p<_;p++)$[p].$$is_number||ge.$raise(Ce("TypeError"),"no implicit conversion of "+$[p].$class()+" into Integer"),c.push(l["$[]"]($[p]));return c},-1),L(j,"$dig",function(U,x){var $,l,c=this,p=O;return $=r(arguments,1),l=$,p=s(U.$$is_string&&c.$$data.hasOwnProperty(U))&&c.$$data[U]||O,p===O||l.length===0?p:(s(p["$respond_to?"]("dig"))||ge.$raise(Ce("TypeError"),""+p.$class()+" does not have #dig method"),d(p,"dig",z(l)))},-2),be(j,"size","length"),be(j,"to_s","inspect"),be(j,"values","to_a")}("::",null,Ee)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,o=e.truthy,f=e.eqeqeq,h=e.Kernel,d=e.send,A=e.def,z=e.eqeq,L=e.rb_lt,ne=e.rb_le,ge=e.alias,Q=[],F=e.nil,Y=e.$$$;return e.add_stubs("include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?,==,instance_variable_get,size,is_a?,all?,include?,[]=,enum_for,[],<<,replace,compare_by_identity,name,compare_by_identity?,delete,select,frozen?,freeze,reject,delete_if,to_proc,keep_if,each_key,empty?,eql?,instance_eval,clear,<,<=,any?,!,intersect?,keys,|,proper_subset?,subset?,proper_superset?,superset?,-,select!,collect!"),function(pe,se,ve){var Z=r(pe,se,"Set"),be=[Z].concat(ve),ue=e.$r(be),Ee=F,O=Z.$$prototype;O.hash=F,Z.$include(Y("Enumerable")),i(Z,"$[]",function(w){var Ae,j,de=this;return Ae=n(arguments),j=Ae,de.$new(j)},-1),A(Z,"$initialize",function $e(w){var Ae=$e.$$p||F,j=this;return $e.$$p=null,w==null&&(w=F),j.hash=s([],{}),o(w["$nil?"]())?F:(f(Y("Enumerable"),w)||h.$raise(Y("ArgumentError"),"value must be enumerable"),o(Ae)?d(w,"each",[],function de(V){var Fe=de.$$s==null?this:de.$$s;return V==null&&(V=F),Fe.$add(e.yield1(Ae,V))},{$$s:j}):j.$merge(w))},-1),A(Z,"$dup",function(){var w=this,Ae=F;return Ae=w.$class().$new(),Ae.$merge(w)}),A(Z,"$-",function(w){var Ae=this;return o(w["$respond_to?"]("each"))||h.$raise(Y("ArgumentError"),"value must be enumerable"),Ae.$dup().$subtract(w)}),A(Z,"$inspect",function(){var w=this;return"#<Set: {"+w.$to_a().$join(",")+"}>"}),A(Z,"$==",function(w){var Ae=this;return o(Ae["$equal?"](w))?!0:o(w["$instance_of?"](Ae.$class()))?Ae.hash["$=="](w.$instance_variable_get("@hash")):o(w["$is_a?"](Y("Set")))&&z(Ae.$size(),w.$size())?d(w,"all?",[],function j(de){var V=j.$$s==null?this:j.$$s;return V.hash==null&&(V.hash=F),de==null&&(de=F),V.hash["$include?"](de)},{$$s:Ae}):!1}),A(Z,"$add",function(w){var Ae=this;return Ae.hash["$[]="](w,!0),Ae}),A(Z,"$classify",function $e(){var w=$e.$$p||F,Ae=this,j=F;return $e.$$p=null,w===F?Ae.$enum_for("classify"):(j=d(Y("Hash"),"new",[],function de(V,Fe){var ce,U=de.$$s==null?this:de.$$s;return V==null&&(V=F),Fe==null&&(Fe=F),ce=[Fe,U.$class().$new()],d(V,"[]=",ce),ce[ce.length-1]},{$$s:Ae}),d(Ae,"each",[],function(V){return V==null&&(V=F),j["$[]"](e.yield1(w,V)).$add(V)}),j)}),A(Z,"$collect!",function $e(){var w=$e.$$p||F,Ae=this,j=F;return $e.$$p=null,w===F?Ae.$enum_for("collect!"):(j=Ae.$class().$new(),d(Ae,"each",[],function(V){return V==null&&(V=F),j["$<<"](e.yield1(w,V))}),Ae.$replace(j))}),A(Z,"$compare_by_identity",function(){var w=this;return o(w.hash["$respond_to?"]("compare_by_identity"))?(w.hash.$compare_by_identity(),w):w.$raise(ue("NotImplementedError"),""+w.$class().$name()+"#compare_by_identity is not implemented")}),A(Z,"$compare_by_identity?",function(){var w=this,Ae=F;return o(Ae=w.hash["$respond_to?"]("compare_by_identity?"))?w.hash["$compare_by_identity?"]():Ae}),A(Z,"$delete",function(w){var Ae=this;return Ae.hash.$delete(w),Ae}),A(Z,"$delete?",function(w){var Ae=this;return o(Ae["$include?"](w))?(Ae.$delete(w),Ae):F}),A(Z,"$delete_if",function $e(){var w=$e.$$p||F,Ae=this;return $e.$$p=null,w===F?Ae.$enum_for("delete_if"):(d(d(Ae,"select",[],function(de){return de==null&&(de=F),e.yield1(w,de)}),"each",[],function j(de){var V=j.$$s==null?this:j.$$s;return V.hash==null&&(V.hash=F),de==null&&(de=F),V.hash.$delete(de)},{$$s:Ae}),Ae)}),A(Z,"$freeze",function(){var w=this;return o(w["$frozen?"]())?w:(w.hash.$freeze(),t(w))}),A(Z,"$keep_if",function $e(){var w=$e.$$p||F,Ae=this;return $e.$$p=null,w===F?Ae.$enum_for("keep_if"):(d(d(Ae,"reject",[],function(de){return de==null&&(de=F),e.yield1(w,de)}),"each",[],function j(de){var V=j.$$s==null?this:j.$$s;return V.hash==null&&(V.hash=F),de==null&&(de=F),V.hash.$delete(de)},{$$s:Ae}),Ae)}),A(Z,"$reject!",function $e(){var w=$e.$$p||F,Ae=this,j=F;return $e.$$p=null,w===F?Ae.$enum_for("reject!"):(j=Ae.$size(),d(Ae,"delete_if",[],w.$to_proc()),z(Ae.$size(),j)?F:Ae)}),A(Z,"$select!",function $e(){var w=$e.$$p||F,Ae=this,j=F;return $e.$$p=null,w===F?Ae.$enum_for("select!"):(j=Ae.$size(),d(Ae,"keep_if",[],w.$to_proc()),z(Ae.$size(),j)?F:Ae)}),A(Z,"$add?",function(w){var Ae=this;return o(Ae["$include?"](w))?F:Ae.$add(w)}),A(Z,"$each",function $e(){var w=$e.$$p||F,Ae=this;return $e.$$p=null,w===F?Ae.$enum_for("each"):(d(Ae.hash,"each_key",[],w.$to_proc()),Ae)}),A(Z,"$empty?",function(){var w=this;return w.hash["$empty?"]()}),A(Z,"$eql?",function(w){var Ae=this;return Ae.hash["$eql?"](d(w,"instance_eval",[],function j(){var de=j.$$s==null?this:j.$$s;return de.hash==null&&(de.hash=F),de.hash},{$$s:Ae}))}),A(Z,"$clear",function(){var w=this;return w.hash.$clear(),w}),A(Z,"$include?",function(w){var Ae=this;return Ae.hash["$include?"](w)}),A(Z,"$merge",function(w){var Ae=this;return d(w,"each",[],function j(de){var V=j.$$s==null?this:j.$$s;return de==null&&(de=F),V.$add(de)},{$$s:Ae}),Ae}),A(Z,"$replace",function(w){var Ae=this;return Ae.$clear(),Ae.$merge(w),Ae}),A(Z,"$size",function(){var w=this;return w.hash.$size()}),A(Z,"$subtract",function(w){var Ae=this;return d(w,"each",[],function j(de){var V=j.$$s==null?this:j.$$s;return de==null&&(de=F),V.$delete(de)},{$$s:Ae}),Ae}),A(Z,"$|",function(w){var Ae=this;return o(w["$respond_to?"]("each"))||h.$raise(Y("ArgumentError"),"value must be enumerable"),Ae.$dup().$merge(w)});function Ce($e){o(Ee=$e["$is_a?"](Y("Set")))||h.$raise(Y("ArgumentError"),"value must be a set")}return A(Z,"$superset?",function(w){var Ae=this;return Ce(w),o(L(Ae.$size(),w.$size()))?!1:d(w,"all?",[],function j(de){var V=j.$$s==null?this:j.$$s;return de==null&&(de=F),V["$include?"](de)},{$$s:Ae})}),A(Z,"$proper_superset?",function(w){var Ae=this;return Ce(w),o(ne(Ae.$size(),w.$size()))?!1:d(w,"all?",[],function j(de){var V=j.$$s==null?this:j.$$s;return de==null&&(de=F),V["$include?"](de)},{$$s:Ae})}),A(Z,"$subset?",function(w){var Ae=this;return Ce(w),o(L(w.$size(),Ae.$size()))?!1:d(Ae,"all?",[],function(de){return de==null&&(de=F),w["$include?"](de)})}),A(Z,"$proper_subset?",function(w){var Ae=this;return Ce(w),o(ne(w.$size(),Ae.$size()))?!1:d(Ae,"all?",[],function(de){return de==null&&(de=F),w["$include?"](de)})}),A(Z,"$intersect?",function(w){var Ae=this;return Ce(w),o(L(Ae.$size(),w.$size()))?d(Ae,"any?",[],function(de){return de==null&&(de=F),w["$include?"](de)}):d(w,"any?",[],function j(de){var V=j.$$s==null?this:j.$$s;return de==null&&(de=F),V["$include?"](de)},{$$s:Ae})}),A(Z,"$disjoint?",function(w){var Ae=this;return Ae["$intersect?"](w)["$!"]()}),A(Z,"$to_a",function(){var w=this;return w.hash.$keys()}),ge(Z,"+","|"),ge(Z,"<","proper_subset?"),ge(Z,"<<","add"),ge(Z,"<=","subset?"),ge(Z,">","proper_superset?"),ge(Z,">=","superset?"),ge(Z,"difference","-"),ge(Z,"filter!","select!"),ge(Z,"length","size"),ge(Z,"map!","collect!"),ge(Z,"member?","include?"),ge(Z,"union","|")}("::",null,Q)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,o=e.$$$;return e.add_stubs("[],pwd"),function(f,h,d){var A=t(f,h,"Dir");return function(z,L){return r(z,"$chdir",function ne(ge){var Q=ne.$$p||s,F=s;return ne.$$p=null,function(){try{return F=e.current_dir,e.current_dir=ge,e.yieldX(Q,[])}finally{e.current_dir=F}}()}),r(z,"$pwd",function(){return e.current_dir||"."}),r(z,"$home",function(){var ge=s;return n(ge=o("ENV")["$[]"]("HOME"))?ge:"."}),i(z,"getwd","pwd")}(e.get_singleton_class(A))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,o=e.rb_plus,f=e.def,h=e.Kernel,d=e.eqeq,A=e.rb_lt,z=e.rb_minus,L=e.range,ne=e.send,ge=e.slice,Q=e.alias,F=[],Y=e.nil,pe=e.$$$;return e.add_stubs("respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?,absolute_path,==,<,dirname,-,basename,empty?,rindex,[],length,nil?,gsub,find,=~,map,each_with_index,flatten,reject,to_proc,end_with?,expand_path,exist?"),function(se,ve,Z){var be=r(se,ve,"File"),ue=[be].concat(Z),Ee=Y;return n(ue[0],"Separator",n(ue[0],"SEPARATOR","/")),n(ue[0],"ALT_SEPARATOR",Y),n(ue[0],"PATH_SEPARATOR",":"),n(ue[0],"FNM_SYSCASE",0),Ee=/^[a-zA-Z]:(?:\\|\/)/,function(O,Ce){var $e=[O].concat(Ce),w=e.$r($e);f(O,"$absolute_path",function(V,Fe){var ce=Y,U=Y,x=Y,$=Y,l=Y,c=Y,p=Y,_=Y,S=Y,C=Y;Fe==null&&(Fe=Y),ce=w("SEPARATOR"),U=j(),x=[],V=t(V["$respond_to?"]("to_path"))?V.$to_path():V,V=i["$coerce_to!"](V,pe("String"),"to_str"),Fe=t($=Fe)?$:pe("Dir").$pwd(),l=V.substr(0,ce.length)===ce||Ee.test(V),c=Fe.substr(0,ce.length)===ce||Ee.test(Fe),t(l)?(p=V.$split(s(["[",U,"]"])),_=Ee.test(V)?"":V.$sub(s(["^([",U,"]+).*$"]),"\\1"),S=!0):(p=o(Fe.$split(s(["[",U,"]"])),V.$split(s(["[",U,"]"]))),_=Ee.test(Fe)?"":Fe.$sub(s(["^([",U,"]+).*$"]),"\\1"),S=c);for(var ee,Le=0,nt=p.length;Le<nt;Le++)ee=p[Le],!(ee===Y||ee===""&&(x.length===0||S)||ee==="."&&(x.length===0||S))&&(ee===".."?x.pop():x.push(ee));return!S&&p[0]!=="."&&x.$unshift("."),C=x.$join(ce),t(S)&&(C=o(_,C)),C},-2),f(O,"$expand_path",function(V,Fe){var ce=this,U=Y,x=Y,$=Y,l=Y,c=Y;return Fe==null&&(Fe=Y),U=w("SEPARATOR"),x=j(),t(V[0]==="~"||Fe&&Fe[0]==="~")&&($=w("Dir").$home(),t($)||h.$raise(pe("ArgumentError"),"couldn't find HOME environment -- expanding `~'"),l=Ee.test($)?"":$.$sub(s(["^([",x,"]+).*$"]),"\\1"),t($["$start_with?"](l))||h.$raise(pe("ArgumentError"),"non-absolute home"),$=o($,U),c=s(["^\\~(?:",U,"|$)"]),V=V.$sub(c,$),t(Fe)&&(Fe=Fe.$sub(c,$))),ce.$absolute_path(V,Fe)},-2);function Ae(de){return t(de["$respond_to?"]("to_path"))&&(de=de.$to_path()),de=i["$coerce_to!"](de,pe("String"),"to_str"),de}function j(){return w("ALT_SEPARATOR")===Y?e.escape_regexp(w("SEPARATOR")):e.escape_regexp(o(w("SEPARATOR"),w("ALT_SEPARATOR")))}return f(O,"$dirname",function(V,Fe){var ce=this,U=Y;if(Fe==null&&(Fe=1),d(Fe,0))return V;t(A(Fe,0))&&h.$raise(pe("ArgumentError"),"level can't be negative"),U=j(),V=Ae(V);var x=V.match(new RegExp("^["+U+"]")),$;return V=V.replace(new RegExp("["+U+"]+$"),""),V=V.replace(new RegExp("[^"+U+"]+$"),""),V=V.replace(new RegExp("["+U+"]+$"),""),V===""?$=x?"/":".":$=V,Fe==1?$:ce.$dirname($,z(Fe,1))},-2),f(O,"$basename",function(V,Fe){var ce=Y;return Fe==null&&(Fe=Y),ce=j(),V=Ae(V),V.length==0||(Fe!==Y?Fe=i["$coerce_to!"](Fe,pe("String"),"to_str"):Fe=null,V=V.replace(new RegExp("(.)["+ce+"]*$"),"$1"),V=V.replace(new RegExp("^(?:.*["+ce+"])?([^"+ce+"]+)$"),"$1"),Fe===".*"?V=V.replace(/\.[^\.]+$/,""):Fe!==null&&(Fe=e.escape_regexp(Fe),V=V.replace(new RegExp(""+Fe+"$"),""))),V},-2),f(O,"$extname",function(V){var Fe=this,ce=Y,U=Y;return V=Ae(V),ce=Fe.$basename(V),t(ce["$empty?"]())||(U=ce["$[]"](L(1,-1,!1)).$rindex("."),t(U["$nil?"]())||d(o(U,1),z(ce.$length(),1)))?"":ce["$[]"](e.Range.$new(o(U,1),-1,!1))}),f(O,"$exist?",function(V){return e.modules[V]!=null}),f(O,"$directory?",function(V){var Fe=Y;Fe=[];for(var ce in e.modules)Fe.push(ce);return V=V.$gsub(s(["(^.",w("SEPARATOR"),"+|",w("SEPARATOR"),"+$)"])),ne(Fe,"find",[],function(x){return x==null&&(x=Y),x["$=~"](s(["^",V]))})}),f(O,"$join",function(V){var Fe,ce,U=Y;return Fe=ge(arguments),ce=Fe,t(ce["$empty?"]())?"":(U="",ce=ne(ce.$flatten().$each_with_index(),"map",[],function($,l){return $==null&&($=Y),l==null&&(l=Y),d(l,0)&&t($["$empty?"]())||d(ce.$length(),o(l,1))&&t($["$empty?"]())?w("SEPARATOR"):$}),ce=ne(ce,"reject",[],"empty?".$to_proc()),ne(ce,"each_with_index",[],function($,l){var c=Y;return $==null&&($=Y),l==null&&(l=Y),c=ce["$[]"](o(l,1)),t(c["$nil?"]())?U=""+U+$:(t($["$end_with?"](w("SEPARATOR")))&&t(c["$start_with?"](w("SEPARATOR")))&&($=$.$sub(s([w("SEPARATOR"),"+$"]),"")),U=t($["$end_with?"](w("SEPARATOR")))||t(c["$start_with?"](w("SEPARATOR")))?""+U+$:""+U+$+w("SEPARATOR"))}),U)},-1),f(O,"$split",function(V){return V.$split(w("SEPARATOR"))}),Q(O,"realpath","expand_path"),Q(O,"exists?","exist?")}(e.get_singleton_class(be),ue)}("::",pe("IO"),F)};Opal.modules["corelib/process/base"]=function(e){var t=e.klass,r=e.slice,n=e.defs,i=e.return_val,s=e.nil;return function(o,f){var h=t(o,f,"Signal");return n(h,"$trap",function(A){return r(arguments),s},-1)}("::",null),function(o,f){var h=t(o,f,"GC");return n(h,"$start",i(s))}("::",null)};Opal.modules["corelib/process"]=function(e){var t=e.module,r=e.defs,n=e.truthy,i=e.return_val,s=e.Kernel,o=e.nil,f=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(h){var d=t(h,"Process"),A=o;if(d.__clocks__=[],r(d,"$__register_clock__",function(ne,ge){var Q=this;return Q.__clocks__==null&&(Q.__clocks__=o),Q.$const_set(ne,Q.__clocks__.$size()),Q.__clocks__["$<<"](ge)}),d.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),A=!1,e.global.performance)A=function(){return performance.now()};else if(e.global.process&&process.hrtime){var z=process.hrtime();A=function(){var L=process.hrtime(z),ne=L[1]/1e3|0;return L[0]*1e3+ne/1e3}}return n(A)&&d.$__register_clock__("CLOCK_MONOTONIC",A),r(d,"$pid",i(0)),r(d,"$times",function(){var ne=o;return ne=f("Time").$now().$to_f(),f(f("Benchmark"),"Tms").$new(ne,ne,ne,ne,ne)}),r(d,"$clock_gettime",function(ne,ge){var Q=this,F=o;Q.__clocks__==null&&(Q.__clocks__=o),ge==null&&(ge="float_second"),n(F=Q.__clocks__["$[]"](ne))||s.$raise(f(f("Errno"),"EINVAL"),"clock_gettime("+ne+") "+Q.__clocks__["$[]"](ne));var Y=F();switch(ge){case"float_second":return Y/1e3;case"float_millisecond":return Y/1;case"float_microsecond":return Y*1e3;case"second":return Y/1e3|0;case"millisecond":return Y/1|0;case"microsecond":return Y*1e3|0;case"nanosecond":return Y*1e6|0;default:s.$raise(f("ArgumentError"),"unexpected unit: "+ge)}},-2)}("::")};Opal.modules["corelib/random/formatter"]=function(e){var t=e.klass,r=e.module,n=e.def,i=e.range,s=e.send,o=e.rb_divide,f=e.Kernel,h=e.Opal,d=[],A=e.nil,z=e.$$$;return e.add_stubs("_verify_count,bytes,encode,strict_encode64,random_bytes,urlsafe_encode64,split,hex,[]=,[],map,to_proc,join,times,<<,|,ord,/,abs,random_float,raise,coerce_to!,flatten,new,random_number,length,include,extend"),function(L,ne,ge){var Q=t(L,ne,"Random"),F=[Q].concat(ge);return function(Y,pe){var se=r(Y,"Formatter"),ve=[se].concat(pe),Z=e.$r(ve);return n(se,"$hex",function(ue){var Ee=this;ue==null&&(ue=A),ue=z("Random").$_verify_count(ue);for(var O=Ee.$bytes(ue),Ce="",$e=0;$e<ue;$e++)Ce+=O.charCodeAt($e).toString(16).padStart(2,"0");return Ce.$encode("US-ASCII")},-1),n(se,"$random_bytes",function(ue){var Ee=this;return ue==null&&(ue=A),Ee.$bytes(ue)},-1),n(se,"$base64",function(ue){var Ee=this;return ue==null&&(ue=A),z("Base64").$strict_encode64(Ee.$random_bytes(ue)).$encode("US-ASCII")},-1),n(se,"$urlsafe_base64",function(ue,Ee){var O=this;return ue==null&&(ue=A),Ee==null&&(Ee=!1),z("Base64").$urlsafe_encode64(O.$random_bytes(ue),Ee).$encode("US-ASCII")},-1),n(se,"$uuid",function(){var ue=this,Ee=A;return Ee=ue.$hex(16).$split(""),Ee["$[]="](12,"4"),Ee["$[]="](16,(parseInt(Ee["$[]"](16),16)&3|8).toString(16)),Ee=[Ee["$[]"](i(0,8,!0)),Ee["$[]"](i(8,12,!0)),Ee["$[]"](i(12,16,!0)),Ee["$[]"](i(16,20,!0)),Ee["$[]"](i(20,32,!0))],Ee=s(Ee,"map",[],"join".$to_proc()),Ee.$join("-")}),n(se,"$random_float",function(){var ue=this,Ee=A,O=A;return Ee=ue.$bytes(4),O=0,s(4,"times",[],function($e){return $e==null&&($e=A),O=O["$<<"](8),O=O["$|"](Ee["$[]"]($e).$ord())}),o(O.$abs(),2147483647)}),n(se,"$random_number",function(ue){var Ee=this;function O(){return Ee.$random_float()}function Ce(w){return Math.floor(O()*w)}function $e(){var w=ue.begin,Ae=ue.end;if(w===A||Ae===A)return A;var j=Ae-w;return j<0?A:j===0?w:(Ae%1===0&&w%1===0&&!ue.excl&&j++,Ce(j)+w)}return ue==null?O():ue.$$is_range?$e():ue.$$is_number?(ue<=0&&f.$raise(z("ArgumentError"),"invalid argument - "+ue),ue%1===0?Ce(ue):O()*ue):(ue=h["$coerce_to!"](ue,z("Integer"),"to_int"),ue<=0&&f.$raise(z("ArgumentError"),"invalid argument - "+ue),Ce(ue))},-1),n(se,"$alphanumeric",function(ue){var Ee=this,O=A;return ue==null&&(ue=A),ue=Z("Random").$_verify_count(ue),O=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(z("Array"),"new",[ue],function Ce($e){var w=Ce.$$s==null?this:Ce.$$s;return O["$[]"](w.$random_number(O.$length()))},{$$s:Ee}).$join()},-1)}(Q,F),Q.$include(z(z("Random"),"Formatter")),Q.$extend(z(z("Random"),"Formatter"))}("::",null,d)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,o=i;return e.add_stubs("generator="),o=function(){var f=624,h=397,d=2567483615,A=2147483648,z=2147483647,L=function(ve,Z){return ve&A|Z&z},ne=function(ve,Z){return L(ve,Z)>>>1^(Z&1?d:0)};function ge(ve){var Z={left:0,next:f,state:new Array(f)};return Q(Z,ve),Z}function Q(ve,Z){var be;for(ve.state[0]=Z>>>0,be=1;be<f;be++)ve.state[be]=1812433253*(ve.state[be-1]^ve.state[be-1]>>30>>>0)+be,ve.state[be]&=4294967295;ve.left=1,ve.next=f}function F(ve){var Z=0,be=ve.state,ue;for(ve.left=f,ve.next=0,ue=f-h+1;--ue;Z++)be[Z]=be[Z+h]^ne(be[Z+0],be[Z+1]);for(ue=h;--ue;Z++)be[Z]=be[Z+(h-f)]^ne(be[Z+0],be[Z+1]);be[Z]=be[Z+(h-f)]^ne(be[Z+0],be[0])}function Y(ve){var Z;return--ve.left<=0&&F(ve),Z=ve.state[ve.next++],Z^=Z>>>11,Z^=Z<<7&2636928640,Z^=Z<<15&4022730752,Z^=Z>>>18,Z>>>0}function pe(ve,Z){return ve>>>=5,Z>>>=6,(ve*67108864+Z)*(1/9007199254740992)}function se(ve){var Z=Y(ve),be=Y(ve);return pe(Z,be)}return{genrand_real:se,init:ge}}(),function(f,h){var d=t(f,h,"Random"),A,z=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(d,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*z)},reseed:function(L){return o.init(L)},rand:function(L){return o.genrand_real(L)}}),A=[s(d,"MERSENNE_TWISTER_GENERATOR")],n(d,"generator=",A),A[A.length-1]}("::",null)};Opal.modules["corelib/random"]=function(e){var t=e.truthy,r=e.klass,n=e.Kernel,i=e.defs,s=e.Opal,o=e.def,f=e.eqeqeq,h=e.send,d=e.top,A=e.nil,z=e.$$$;return e.add_stubs("require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set"),d.$require("corelib/random/formatter"),function(L,ne){var ge=r(L,ne,"Random");return ge.$attr_reader("seed","state"),i(ge,"$_verify_count",function(F){return t(F)||(F=16),typeof F!="number"&&(F=F.$to_int()),F<0&&n.$raise(z("ArgumentError"),"negative string size (or size too big)"),F=Math.floor(F),F}),o(ge,"$initialize",function(F){var Y=this;return F==null&&(F=z("Random").$new_seed()),F=s["$coerce_to!"](F,z("Integer"),"to_int"),Y.state=F,Y.$reseed(F)},-1),o(ge,"$reseed",function(F){var Y=this;return Y.seed=F,Y.$rng=e.$$rand.reseed(F)}),i(ge,"$new_seed",function(){return e.$$rand.new_seed()}),i(ge,"$rand",function(F){var Y=this;return z(Y,"DEFAULT").$rand(F)},-1),i(ge,"$srand",function(F){var Y=this,pe=A;return F==null&&(F=z("Random").$new_seed()),F=s["$coerce_to!"](F,z("Integer"),"to_int"),pe=z(Y,"DEFAULT").$seed(),z(Y,"DEFAULT").$reseed(F),pe},-1),i(ge,"$urandom",function(F){return z("SecureRandom").$bytes(F)}),o(ge,"$==",function(F){var Y=this,pe=A;return f(z("Random"),F)?t(pe=Y.$seed()["$=="](F.$seed()))?Y.$state()["$=="](F.$state()):pe:!1}),o(ge,"$bytes",function(F){var Y=this;return F=z("Random").$_verify_count(F),h(z("Array"),"new",[F],function pe(){var se=pe.$$s==null?this:pe.$$s;return se.$rand(255).$chr()},{$$s:Y}).$join().$encode("ASCII-8BIT")}),i(ge,"$bytes",function(F){var Y=this;return z(Y,"DEFAULT").$bytes(F)}),o(ge,"$rand",function(F){var Y=this;return Y.$random_number(F)},-1),o(ge,"$random_float",function(){var F=this;return F.state++,e.$$rand.rand(F.$rng)}),i(ge,"$random_float",function(){var F=this;return z(F,"DEFAULT").$random_float()}),i(ge,"$generator=",function(F){var Y=this;return e.$$rand=F,t(Y["$const_defined?"]("DEFAULT"))?z(Y,"DEFAULT").$reseed():Y.$const_set("DEFAULT",Y.$new(Y.$new_seed()))})}("::",null),d.$require("corelib/random/mersenne_twister")};Opal.modules["corelib/unsupported"]=function(e){var t=e.Kernel,r=e.klass,n=e.send,i=e.slice,s=e.module,o=e.def,f=e.return_val,h=e.alias,d=e.defs,A=e.top,z=[],L=e.nil,ne=e.$$$;e.add_stubs("raise,warn,each,define_method,%,public,private_method_defined?,private_class_method,instance_method,instance_methods,method_defined?,private_methods");var ge={};function Q(Y){switch(e.config.unsupported_features_severity){case"error":t.$raise(ne("NotImplementedError"),Y);break;case"warning":F(Y);break}}function F(Y){ge[Y]||(ge[Y]=!0,A.$warn(Y))}return function(Y,pe){var se=r(Y,pe,"String"),ve="String#%s not supported. Mutable String methods are not supported in Opal.";return n(["<<","capitalize!","chomp!","chop!","downcase!","gsub!","lstrip!","next!","reverse!","slice!","squeeze!","strip!","sub!","succ!","swapcase!","tr!","tr_s!","upcase!","prepend","[]=","clear","encode!","unicode_normalize!"],"each",[],function Z(be){var ue=Z.$$s==null?this:Z.$$s;return be==null&&(be=L),n(ue,"define_method",[be],function(O){return i(arguments),t.$raise(ne("NotImplementedError"),ve["$%"](be))},-1)},{$$s:se})}("::",null),function(Y){var pe=s(Y,"Kernel"),se="Object tainting is not supported by Opal";return o(pe,"$taint",function(){var Z=this;return Q(se),Z}),o(pe,"$untaint",function(){var Z=this;return Q(se),Z}),o(pe,"$tainted?",function(){return Q(se),!1})}("::"),function(Y,pe){var se=r(Y,pe,"Module");return o(se,"$public",function(Z){var be,ue,Ee=this;return be=i(arguments),ue=be,ue.length===0?(Ee.$$module_function=!1,L):ue.length===1?ue[0]:ue},-1),o(se,"$private_class_method",function(Z){var be,ue;return be=i(arguments),ue=be,ue.length===1?ue[0]:ue},-1),o(se,"$private_method_defined?",f(!1)),o(se,"$private_constant",function(Z){return i(arguments),L},-1),h(se,"nesting","public"),h(se,"private","public"),h(se,"protected","public"),h(se,"protected_method_defined?","private_method_defined?"),h(se,"public_class_method","private_class_method"),h(se,"public_instance_method","instance_method"),h(se,"public_instance_methods","instance_methods"),h(se,"public_method_defined?","method_defined?")}("::",null),function(Y){var pe=s(Y,"Kernel");return o(pe,"$private_methods",function(ve){return i(arguments),[]},-1),h(pe,"protected_methods","private_methods"),h(pe,"private_instance_methods","private_methods"),h(pe,"protected_instance_methods","private_methods")}("::"),function(Y,pe){var se=s(Y,"Kernel"),ve=[se].concat(pe),Z=e.$r(ve);return o(se,"$eval",function(ue){return i(arguments),t.$raise(ne("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+Z("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",z),d(A,"$public",function(pe){var se,ve;return se=i(arguments),ve=se,ve.length===1?ve[0]:ve},-1),d(A,"$private",function(pe){var se,ve;return se=i(arguments),ve=se,ve.length===1?ve[0]:ve},-1)};Opal.queue(function(e){var t=e.Object;return e.nil,e.add_stubs("require,autoload"),t.$require("opal/base"),t.$require("opal/mini"),t.$require("corelib/kernel/format"),t.$require("corelib/string/encoding"),t.$autoload("Math","corelib/math"),t.$require("corelib/complex/base"),t.$autoload("Complex","corelib/complex"),t.$require("corelib/rational/base"),t.$autoload("Rational","corelib/rational"),t.$require("corelib/time"),t.$autoload("Struct","corelib/struct"),t.$autoload("Set","corelib/set"),t.$autoload("Dir","corelib/dir"),t.$autoload("File","corelib/file"),t.$require("corelib/process/base"),t.$autoload("Process","corelib/process"),t.$autoload("Random","corelib/random"),t.$require("corelib/unsupported")});function cx(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var ae=a.klass,re=a.defs,W=[];return a.nil,a.add_stubs("new"),function(me,v,G){var Ue=ae(me,v,"File"),K=[Ue].concat(G),qe=a.$r(K);return re(Ue,"$read",function(Oe){var Ne="",Ke=-1;try{var De=new XMLHttpRequest;De.open("GET",Oe,!1),De.addEventListener("load",function(){Ke=this.status,(Ke===0||Ke===200)&&(Ne=this.responseText)}),De.overrideMimeType("text/plain"),De.send()}catch(Pe){throw qe("IOError").$new("Error reading file or directory: "+Oe+"; reason: "+Pe.message)}if(Ke===404||Ke===0&&!Ne)throw qe("IOError").$new("No such file or directory: "+Oe);return Ne})}(W[0],null,W)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var ae=a.const_set,re=a.top,W=[];a.nil,a.add_stubs("require");var me,v,G,Ue;return Ue=Ue||"xmlhttprequest",me=me||"browser",v=v||"",G=G||"",ae(W[0],"JAVASCRIPT_IO_MODULE",Ue),ae(W[0],"JAVASCRIPT_PLATFORM",me),ae(W[0],"JAVASCRIPT_ENGINE",v),ae(W[0],"JAVASCRIPT_FRAMEWORK",G),re.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var ae=a.module,re=a.klass,W=a.hash2,me=a.truthy,v=a.def,G=[],Ue=a.nil,K=a.$$$;return a.add_stubs("web_path,path_resolver,uriish?,[],attr?,start_with?,descends_from?,base_dir,join,prepare_source_string,read,fetch,warn,logger,normalize_system_path,read_asset"),function(qe,T){var Oe=ae(qe,"Asciidoctor"),Ne=[Oe].concat(T);return function(Ke,De,Pe){var pt=re(Ke,De,"AbstractNode"),We=[pt].concat(Pe),st=a.$r(We),Ye=pt.$$prototype;return Ye.document=Ue,v(pt,"$read_contents",function(ht,N){var tt=this,E=Ue,rt=Ue,ot=Ue;if(N==null&&(N=W([],{})),E=tt.document,me(st("Helpers")["$uriish?"](ht))||me(rt=N["$[]"]("start"))&&me(st("Helpers")["$uriish?"](rt))&&me(ht=E.$path_resolver().$web_path(ht,rt)))if(me(E.$path_resolver()["$descends_from?"](ht,E.$base_dir()))||me(ht["$start_with?"]("chrome://"))||me(E["$attr?"]("allow-uri-read")))try{return me(N["$[]"]("normalize"))?st("Helpers").$prepare_source_string(K("File").$read(ht)).$join(st("LF")):K("File").$read(ht)}catch(X){if(a.rescue(X,[st("StandardError")]))try{return me(N.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("could not retrieve contents of "+(me(ot=N["$[]"]("label"))?ot:"asset")+" at URI: "+ht),Ue}finally{a.pop_exception()}else throw X}else return me(N.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("cannot retrieve contents of "+(me(ot=N["$[]"]("label"))?ot:"asset")+" at URI: "+ht+" (allow-uri-read attribute not enabled)"),Ue;else return ht=tt.$normalize_system_path(ht,N["$[]"]("start"),Ue,W(["target_name"],{target_name:me(ot=N["$[]"]("label"))?ot:"asset"})),tt.$read_asset(ht,W(["normalize","warn_on_failure","label"],{normalize:N["$[]"]("normalize"),warn_on_failure:N.$fetch("warn_on_failure",!0),label:N["$[]"]("label")}))},-2),v(pt,"$generate_data_uri_from_uri",function(ht,N){var tt=this,E="",rt="",ot=-1;try{var X=new XMLHttpRequest;X.open("GET",ht,!1),X.overrideMimeType("text/plain; charset=x-user-defined"),X.addEventListener("load",function(){if(ot=this.status,ot===0||ot===200){for(var M="",He=this.responseText,ke=0,Ie=He.length;ke<Ie;++ke){var Re=He.charCodeAt(ke),oe=Re&255;M+=String.fromCharCode(oe)}rt=btoa(M),E=this.getResponseHeader("content-type")}}),X.send(null),E||(ht.endsWith(".jpeg")||ht.endsWith(".jpg")||ht.endsWith(".jpe")?E="image/jpg":ht.endsWith(".png")?E="image/png":ht.endsWith(".svg")?E="image/svg+xml":ht.endsWith(".bmp")?E="image/bmp":(ht.endsWith(".tif")||ht.endsWith(".tiff"))&&(E="image/tiff"))}catch{ot=0}return ot===404||ot===0&&(!rt||!E)?(tt.$logger().$warn("could not retrieve image data from URI: "+ht),ht):"data:"+E+";base64,"+rt},-2)}(Ne[0],null,Ne)}(G[0],G)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var ae=a.module,re=a.slice,W=a.send,me=a.to_a,v=a.defs,G=[],Ue=a.nil;return a.add_stubs("new,path"),function(K,qe){var T=ae(K,"OpenURI"),Oe=[T].concat(qe),Ne=a.$r(Oe);return v(Ne("OpenURI"),"$open_uri",function Ke(De,Pe){var pt,We,st=Ke.$$p||Ue,Ye=this,Je=Ue;return Ke.$$p=null,pt=re(arguments,1),We=pt,Je=W(Ne("File"),"new",[Ye.$path()].concat(me(We))),st!==Ue?a.yield1(st,Je):Je},-2)}(G[0],G)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var ae=a.module,re=a.klass,W=a.truthy,me=a.def,v=[],G=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(Ue,K){var qe=ae(Ue,"Asciidoctor"),T=[qe].concat(K);return function(Oe,Ne){var Ke=re(Oe,Ne,"PathResolver");return me(Ke,"$root?",function(Pe){var pt=this,We=G;return W(We=pt["$absolute_path?"](Pe))?We:Pe["$start_with?"]("file://","http://","https://","chrome://")})}(T[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var ae=a.module,re=a.klass,W=a.truthy,me=a.eqeq,v=a.not,G=a.def,Ue=[],K=a.nil;return a.add_stubs("posixify,new,base_dir,start_with?,uriish?,key?,attributes,descends_from?,replace_next_line,absolute_path?,==,empty?,!,slice,length"),function(qe,T){var Oe=ae(qe,"Asciidoctor"),Ne=[Oe].concat(T),Ke=a.$r(Ne);return function(De,Pe,pt){var We=re(De,Pe,"PreprocessorReader"),st=[We].concat(pt),Ye=a.$r(st),Je=We.$$prototype;return Je.path_resolver=Je.document=Je.include_stack=Je.dir=K,G(We,"$resolve_include_path",function(N,tt,E){var rt,ot=this,X=K,M=K,He=K,ke=K,Ie=K,Re=K,oe=K,we=K;if(X=(ot.path_resolver=W(M=ot.path_resolver)?M:Ye("PathResolver").$new("\\")).$posixify(N),rt=["file",ot.document.$base_dir()],rt[0],He=rt[1],W(X["$start_with?"]("file://")))ke=Ie=X;else if(W(Ye("Helpers")["$uriish?"](X))){if(!(W(ot.path_resolver["$descends_from?"](X,He))||W(ot.document.$attributes()["$key?"]("allow-uri-read"))))return ot.$replace_next_line("link:"+N+"["+tt+"]");ke=Ie=X}else if(W(ot.path_resolver["$absolute_path?"](X)))ke=Ie="file://"+(W(X["$start_with?"]("/"))?"":"/")+X;else if(me(Re=W(oe=ot.include_stack["$empty?"]())?He:ot.dir,"."))ke=Ie=X;else if(W(Re["$start_with?"]("file://"))||v(Ye("Helpers")["$uriish?"](Re)))ke=""+Re+"/"+X,W(oe)?Ie=X:me(He,".")||v(we=ot.path_resolver["$descends_from?"](ke,He))?Ie=ke:Ie=ke.$slice(we,ke.$length());else if(W(oe))ke=""+Re+"/"+(Ie=X);else if(W(we=ot.path_resolver["$descends_from?"](Re,He))||W(ot.document.$attributes()["$key?"]("allow-uri-read")))ke=""+Re+"/"+X,Ie=W(we)?ke.$slice(we,ke.$length()):X;else return ot.$replace_next_line("link:"+N+"["+tt+"]");return[ke,"file",Ie]})}(Ne[0],Ke("Reader"),Ne)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var ae=a.eqeq,re=a.top,W=[],me=a.$r(W),v=a.nil;return a.add_stubs("==,require"),ae(me("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(re.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),re.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),re.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),re.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):v},Opal.modules.set=Opal.return_val(Opal.nil),Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(a){var ae=a.module,re=a.slice,W=a.send,me=a.to_a,v=a.def,G=a.return_val,Ue=[],K=a.nil;return a.add_stubs("new"),function(qe,T){var Oe=ae(qe,"Kernel"),Ne=[Oe].concat(T),Ke=a.$r(Ne);return v(Oe,"$open",function De(Pe,pt){var We,st,Ye=De.$$p||K,Je=K;return De.$$p=null,We=re(arguments,1),st=We,Je=W(Ke("File"),"new",[Pe].concat(me(st))),Ye!==K?a.yield1(Ye,Je):Je},-2),v(Oe,"$__dir__",G(""))}(Ue[0],Ue)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var ae=a.klass,re=a.def,W=a.truthy,me=a.gvars,v=a.return_val,G=a.defs,Ue=[],K=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(qe,T,Oe){var Ne=ae(qe,T,"File"),Ke=[Ne].concat(Oe),De=a.$r(Ke),Pe=Ne.$$prototype;return Pe.eof=Pe.path=K,Ne.$attr_reader("eof"),Ne.$attr_reader("lineno"),Ne.$attr_reader("path"),re(Ne,"$initialize",function(We,st){var Ye=this,Je=K;return st==null&&(st="r"),Ye.path=We,Ye.contents=K,Ye.eof=!1,Ye.lineno=0,st=st.$delete("b"),Je=/:(.*)/,st=st.$gsub(Je,""),Ye.flags=st},-2),re(Ne,"$read",function(){var We=this,st=K;return W(We.eof)?"":(st=De("File").$read(We.path),We.eof=!0,We.lineno=st.$size(),st)}),re(Ne,"$each_line",function pt(We){var st=pt.$$p||K,Ye=this,Je=K;if(me["/"]==null&&(me["/"]=K),pt.$$p=null,We==null&&(We=me["/"]),W(Ye.eof))return st!==K?Ye:[].$to_enum();if(st!==K){Je=De("File").$read(Ye.path),Ye.eof=!1,Ye.lineno=0;for(var ht=Je.$chomp(),N=Je.length!=ht.length,tt=ht.split(We),E=0,rt=tt.length;E<rt;E++)Ye.lineno+=1,E<rt-1||N?a.yield1(st,tt[E]+We):a.yield1(st,tt[E]);return Ye.eof=!0,Ye}else return Ye.$read().$each_line()},-1),re(Ne,"$readlines",function(){var We=this;return De("File").$readlines(We.path)}),function(pt,We){var st=[pt].concat(We),Ye=a.$r(st);return re(pt,"$readlines",function(ht,N){var tt=K;return me["/"]==null&&(me["/"]=K),N==null&&(N=me["/"]),tt=Ye("File").$read(ht),tt.$split(N)},-2),re(pt,"$file?",v(!0)),re(pt,"$readable?",v(!0)),re(pt,"$read",v(""))}(a.get_singleton_class(Ne),Ke)}(Ue[0],null,Ue),function(qe,T,Oe){var Ne=ae(qe,T,"IO"),Ke=[Ne].concat(Oe),De=a.$r(Ke);return G(Ne,"$read",function(pt){return De("File").$read(pt)})}(Ue[0],null,Ue)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var ae=a.klass,re=a.send,W=a.def,me=[],v=a.nil;return a.add_stubs("[]="),function(G,Ue){var K=ae(G,Ue,"MatchData"),qe=K.$$prototype;return qe.matches=v,W(K,"$[]=",function(Oe,Ne){var Ke,De=this;return Ke=[Oe,Ne],re(De.matches,"[]=",Ke),Ke[Ke.length-1]})}(me[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var ae=a.klass,re=a.truthy,W=a.rb_lt,me=a.def,v=a.alias,G=a.rb_ge,Ue=a.eqeq,K=a.rb_minus,qe=[],T=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(Oe,Ne){var Ke=ae(Oe,Ne,"String");return re(Ke["$method_defined?"]("limit_bytesize"))||me(Ke,"$limit_bytesize",function(Pe){var pt=this,We=T;return re(W(Pe,pt.$bytes().$length()))?(We=pt.$byteslice(0,Pe),We.$to_s()):pt.$to_s()}),re(Ke["$method_defined?"]("limit"))||v(Ke,"limit","limit_bytesize"),v(Ke,"_original_byteslice","byteslice"),me(Ke,"$byteslice",function(Pe,pt){var We=this;return pt==null&&(pt=1),Ue(Pe,3)&&re(G(pt,Pe))&&re(We.charCodeAt()===65279)?We.substr(1).$byteslice(0,K(pt,3)):We.$_original_byteslice(Pe,pt)},-2),v(Ke,"_original_unpack","unpack"),me(Ke,"$unpack",function(Pe){var pt=this;if(Ue(Pe,"C3")){if(re(pt.charCodeAt()===65279))return[239,187,191];for(var We=[],st=0;st<3;st++)st<pt.length?We.push(pt.charCodeAt(st)):We.push(T);return We}else return pt.$_original_unpack(Pe)})}(qe[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var ae=a.module,re=a.defs,W=a.return_self,me=a.def,v=[];return a.nil,a.add_stubs("extend"),function(G,Ue){var K=ae(G,"URI"),qe=[K].concat(Ue),T=a.$r(qe);return re(K,"$parse",function(Ne){return Ne.$extend(T("URI"))}),me(K,"$path",W)}(v[0],v)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var ae=a.module,re=a.defs,W=a.ensure_kwargs,me=a.truthy,v=[],G=a.nil;return a.add_stubs("delete"),function(Ue){var K=ae(Ue,"Base64"),qe,T;return qe=a.global.btoa||function(Oe){var Ne;return Oe instanceof Buffer?Ne=Oe:Ne=Buffer.from(Oe.toString(),"binary"),Ne.toString("base64")},T=a.global.atob||function(Oe){return Buffer.from(Oe,"base64").toString("binary")},re(K,"$decode64",function(Ne){return T(Ne.replace(/\r?\n/g,""))}),re(K,"$encode64",function(Ne){return qe(Ne).replace(/(.{60})/g,`$1
421
+ `).replace(/([^\n])$/g,`$1
422
+ `)}),re(K,"$strict_decode64",function(Ne){return T(Ne)}),re(K,"$strict_encode64",function(Ne){return qe(Ne)}),re(K,"$urlsafe_decode64",function(Ne){return T(Ne.replace(/\-/g,"+").replace(/_/g,"/"))}),re(K,"$urlsafe_encode64",function(Ne,Ke){var De,Pe=G;return Ke=W(Ke),De=Ke.$$smap.padding,De==null&&(De=!0),Pe=qe(Ne).replace(/\+/g,"-").replace(/\//g,"_"),me(De)||(Pe=Pe.$delete("=")),Pe},-2)}(v[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var ae=a.klass,re=a.truthy,W=a.rb_gt,me=a.def,v=[],G=a.$r(v);return a.nil,a.add_stubs("coerce_to!,>"),function(Ue,K,qe){var T=ae(Ue,K,"Number"),Oe=[T].concat(qe),Ne=a.$r(Oe);return me(T,"$round",function(De){var Pe=this;return De=Ne("Opal")["$coerce_to!"](De,Ne("Integer"),"to_int"),re(W(De,0))?Number(Pe.toFixed(De)):Math.round(Pe)},-1)}(v[0],G("Numeric"),v)},Opal.modules["asciidoctor/js/opal_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext/kernel"),ae.$require("asciidoctor/js/opal_ext/file"),ae.$require("asciidoctor/js/opal_ext/match_data"),ae.$require("asciidoctor/js/opal_ext/string"),ae.$require("asciidoctor/js/opal_ext/uri"),ae.$require("asciidoctor/js/opal_ext/base64"),ae.$require("asciidoctor/js/opal_ext/number"),a.config.unsupported_features_severity="ignore",ae.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(a){var ae=a.module,re=a.const_set,W=a.send,me=a.gvars,v=a.truthy,G=a.defs,Ue=a.rb_plus,K=[],qe=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(T,Oe){var Ne=ae(T,"Asciidoctor"),Ke=[Ne].concat(Oe),De=a.$r(Ke);return re(Ke[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),G(Ne,"$unpack_hex_range",function(pt){return W(pt,"gsub",[De("HEX_RANGE_RX")],function(){var st,Ye=qe;return"\\u"+((st=me["~"])===qe?qe:st["$[]"](1))+(v(Ye=(st=me["~"])===qe?qe:st["$[]"](2))?"-\\u"+((st=me["~"])===qe?qe:st["$[]"](2)):Ye)})}),re(Ke[0],"P_L",Ue("A-Za-z",Ne.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),re(Ke[0],"P_Nl",Ne.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),re(Ke[0],"P_Nd",Ue("0-9",Ne.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),re(Ke[0],"P_Pc",Ne.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),re(Ke[0],"CC_ALPHA",""+De("P_L")+De("P_Nl")),re(Ke[0],"CG_ALPHA","["+De("CC_ALPHA")+"]"),re(Ke[0],"CC_ALNUM",""+De("CC_ALPHA")+De("P_Nd")),re(Ke[0],"CG_ALNUM","["+De("CC_ALNUM")+"]"),re(Ke[0],"CC_WORD",""+De("CC_ALNUM")+De("P_Pc")),re(Ke[0],"CG_WORD","["+De("CC_WORD")+"]"),re(Ke[0],"CG_BLANK","[ \\t]"),re(Ke[0],"CC_EOL","(?=\\n|$)"),re(Ke[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),re(Ke[0],"CC_ALL","[\\s\\S]"),re(Ke[0],"CC_ANY","[^\\n]")}(K[0],K)},Opal.modules.strscan=function(a){var ae=a.klass,re=a.def,W=a.truthy,me=a.eqeqeq,v=a.Opal,G=a.return_ivar,Ue=a.send,K=a.alias,qe=[],T=a.nil;return a.add_stubs("attr_reader,anchor,empty?,===,to_s,coerce_to!,scan_until,length,size,rest,pos=,beginning_of_line?,get_byte,private"),function(Oe,Ne,Ke){var De=ae(Oe,Ne,"StringScanner"),Pe=[De].concat(Ke),pt=a.$r(Pe),We=De.$$prototype;return We.pos=We.string=We.working=We.matched=We.prev_pos=We.match=T,De.$attr_reader("pos","matched"),re(De,"$initialize",function(Ye){var Je=this;return Je.string=Ye,Je.pos=0,Je.matched=T,Je.working=Ye,Je.match=[]}),De.$attr_reader("string"),re(De,"$beginning_of_line?",function(){var Ye=this;return Ye.pos===0||Ye.string.charAt(Ye.pos-1)===`
423
+ `}),re(De,"$scan",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var ht=Ye.exec(Je.working);return ht==null?Je.matched=T:(Je.prev_pos=Je.pos,Je.pos+=ht[0].length,Je.working=Je.working.substring(ht[0].length),Je.matched=ht[0],Je.match=ht,ht[0])}),re(De,"$scan_until",function(Ye){var Je=this;Ye=Je.$anchor(Ye);for(var ht=Je.working,N=0;ht.length!=N;++N){var tt=Ye.exec(ht.substr(N));if(tt!==null){var E=N+tt[0].length,rt=ht.substr(0,E);return Je.matched=tt[0],Je.match=tt,Je.prev_pos=Je.pos+N,Je.pos+=E,Je.working=ht.substr(E),rt}}return Je.matched=T}),re(De,"$[]",function(Ye){var Je=this,ht=T;if(W(Je.match["$empty?"]()))return T;me(pt("Symbol"),ht=Ye)?Ye=Ye.$to_s():me(pt("String"),ht)||(Ye=v["$coerce_to!"](Ye,pt("Integer"),"to_int"));var N=Je.match;return Ye<0&&(Ye+=N.length),Ye<0||Ye>=N.length||N[Ye]==null?T:N[Ye]}),re(De,"$check",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var ht=Ye.exec(Je.working);return ht==null?Je.matched=T:Je.matched=ht[0]}),re(De,"$check_until",function(Ye){var Je=this,ht=Je.prev_pos,N=Je.pos,tt=Je.working,E=Je.$scan_until(Ye);return Je.prev_pos=ht,Je.pos=N,Je.working=tt,E}),re(De,"$peek",function(Ye){var Je=this;return Je.working.substring(0,Ye)}),re(De,"$eos?",function(){var Ye=this;return Ye.working.length===0}),re(De,"$exist?",function(Ye){var Je=this,ht=Ye.exec(Je.working);return ht==null?T:ht.index==0?0:ht.index+1}),re(De,"$skip",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var ht=Ye.exec(Je.working);if(ht==null)return Je.match=[],Je.matched=T;var N=ht[0],tt=N.length;return Je.matched=N,Je.match=ht,Je.prev_pos=Je.pos,Je.pos+=tt,Je.working=Je.working.substring(tt),tt}),re(De,"$skip_until",function(Ye){var Je=this,ht=Je.$scan_until(Ye);return ht===T?T:(Je.matched=ht.substr(-1),ht.length)}),re(De,"$get_byte",function(){var Ye=this,Je=T;return Ye.pos<Ye.string.length?(Ye.prev_pos=Ye.pos,Ye.pos+=1,Je=Ye.matched=Ye.working.substring(0,1),Ye.working=Ye.working.substring(1)):Ye.matched=T,Je}),re(De,"$match?",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var ht=Ye.exec(Je.working);return ht==null?T:(Je.prev_pos=Je.pos,ht[0].length)}),re(De,"$pos=",function(Ye){var Je=this;return Ye<0&&(Ye+=Je.string.$length()),Je.pos=Ye,Je.working=Je.string.slice(Ye)}),re(De,"$matched_size",function(){var Ye=this;return Ye.matched===T?T:Ye.matched.length}),re(De,"$post_match",function(){var Ye=this;return Ye.matched===T?T:Ye.string.substr(Ye.pos)}),re(De,"$pre_match",function(){var Ye=this;return Ye.matched===T?T:Ye.string.substr(0,Ye.prev_pos)}),re(De,"$reset",function(){var Ye=this;return Ye.working=Ye.string,Ye.matched=T,Ye.pos=0}),re(De,"$rest",G("working")),re(De,"$rest?",function(){var Ye=this;return Ye.working.length!==0}),re(De,"$rest_size",function(){var Ye=this;return Ye.$rest().$size()}),re(De,"$terminate",function(){var Ye,Je=this;return Je.match=T,Ye=[Je.string.$length()],Ue(Je,"pos=",Ye),Ye[Ye.length-1]}),re(De,"$unscan",function(){var Ye=this;return Ye.pos=Ye.prev_pos,Ye.prev_pos=T,Ye.match=T,Ye}),K(De,"bol?","beginning_of_line?"),K(De,"getch","get_byte"),De.$private(),re(De,"$anchor",function(Ye){var Je=Ye.toString().match(/\/([^\/]+)$/);return Je=Je?Je[1]:void 0,new RegExp("^(?:"+Ye.source+")",Je)})}(qe[0],null,qe)},Opal.modules["asciidoctor/js"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext"),ae.$require("asciidoctor/js/rx"),ae.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var ae=a.klass,re=a.truthy,W=a.alias,me=[],v=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(G,Ue){var K=ae(G,Ue,"NilClass");return re(K["$method_defined?"]("nil_or_empty?"))?v:W(K,"nil_or_empty?","nil?")}(me[0],null),function(G,Ue){var K=ae(G,Ue,"String");return re(K["$method_defined?"]("nil_or_empty?"))?v:W(K,"nil_or_empty?","empty?")}(me[0],null),function(G,Ue){var K=ae(G,Ue,"Array");return re(K["$method_defined?"]("nil_or_empty?"))?v:W(K,"nil_or_empty?","empty?")}(me[0],null),function(G,Ue){var K=ae(G,Ue,"Hash");return re(K["$method_defined?"]("nil_or_empty?"))?v:W(K,"nil_or_empty?","empty?")}(me[0],null),function(G,Ue){var K=ae(G,Ue,"Numeric");return re(K["$method_defined?"]("nil_or_empty?"))?v:W(K,"nil_or_empty?","nil?")}(me[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var ae=a.eqeq,re=a.send,W=a.slice,me=a.truthy,v=a.rb_lt,G=a.rb_gt,Ue=a.send2,K=a.find_super,qe=a.def,T=a.top,Oe=[],Ne=a.$r(Oe),Ke=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),ae(Ne("Hash").$instance_method("merge").$arity(),1)?Ne("Hash").$send("prepend",re(Ne("Module"),"new",[],function De(){var Pe=De.$$s==null?this:De.$$s;return qe(Pe,"$merge",function pt(We){var st,Ye;pt.$$p;var Je=this,ht=Ke;return pt.$$p=null,st=W(arguments),Ye=st,me(v(ht=Ye.$length(),1))?Je.$dup():me(G(ht,1))?re(Ye,"inject",[Je],function(tt,E){return tt==null&&(tt=Ke),E==null&&(E=Ke),tt.$merge(E)}):Ue(Je,K(Je,"merge",pt,!1,!0),"merge",[Ye["$[]"](0)],null)},-1)},{$$s:T})):Ke},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var ae=a.truthy,re=a.klass,W=a.def,me=[],v=a.$r(me),G=a.nil;return a.add_stubs("method_defined?"),ae(v("MatchData")["$method_defined?"]("names"))?G:function(Ue,K){var qe=re(Ue,K,"MatchData");return W(qe,"$names",function(){return[]})}(me[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var ae=a.top;return a.nil,ae.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),ae.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),ae.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var ae=a.module,re=a.truthy,W=a.eqeq,me=a.gvars,v=a.def,G=a.send,Ue=a.neqeq,K=a.const_set,qe=a.hash2,T=a.to_ary,Oe=a.rb_times,Ne=a.eqeqeq,Ke=a.rb_plus,De=a.Class,Pe=a.Object,pt=[],We=a.nil,st=a.$$$;return a.add_stubs("module_function,require,include?,include,==,path,message,raise,warn,logger,chomp,empty?,slice,unpack,[],[]=,byteslice,bytesize,map,rstrip,encode,encoding,nil_or_empty?,!=,tap,each_line,<<,!,start_with?,match?,gsub,rindex,index,basename,extname,length,directory?,dirname,mkdir_p,mkdir,private_constant,join,divmod,*,===,+,to_s,to_i,succ,class_for_name,const_get"),function(Ye,Je){var ht=ae(Ye,"Asciidoctor"),N=[ht].concat(Je);return function(tt,E){var rt=ae(tt,"Helpers"),ot=[rt].concat(E),X=a.$r(ot);return rt.$module_function(),v(rt,"$require_library",function(He,ke,Ie){var Re=this,oe=We;me["!"]==null&&(me["!"]=We),ke==null&&(ke=!0),Ie==null&&(Ie="abort");try{return Re.$require(He)}catch(we){if(a.rescue(we,[st("LoadError")]))try{if(re(Re["$include?"](X("Logging")))||Re.$include(X("Logging")),re(ke))switch(W(ke,!0)&&(ke=He),Ie){case"abort":oe=W(me["!"].$path(),ke)?"":" (reason: "+(re(me["!"].$path())?"cannot load '"+me["!"].$path()+"'":me["!"].$message())+")",Re.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+ke+"' is not available"+oe+". Processing aborted.");break;case"warn":oe=W(me["!"].$path(),ke)?"":" (reason: "+(re(me["!"].$path())?"cannot load '"+me["!"].$path()+"'":me["!"].$message())+")",Re.$logger().$warn("optional gem '"+ke+"' is not available"+oe+". Functionality disabled.");break;default:}else switch(Ie){case"abort":Re.$raise(st("LoadError"),"asciidoctor: FAILED: "+me["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":Re.$logger().$warn(""+me["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return We}finally{a.pop_exception()}else throw we}},-2),v(rt,"$prepare_source_array",function(He,ke){var Ie=We,Re=We,oe=We;return ke==null&&(ke=!0),re(He["$empty?"]())?[]:W(Ie=(Re=(oe=He["$[]"](0)).$unpack("C3")).$slice(0,2),X("BOM_BYTES_UTF_16LE"))?(He["$[]="](0,oe.$byteslice(2,oe.$bytesize())),re(ke)?G(He,"map",[],function(J){return J==null&&(J=We),J.$encode(X("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):G(He,"map",[],function(J){return J==null&&(J=We),J.$encode(X("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):W(Ie,X("BOM_BYTES_UTF_16BE"))?(He["$[]="](0,oe.$byteslice(2,oe.$bytesize())),re(ke)?G(He,"map",[],function(J){return J==null&&(J=We),J.$encode(X("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):G(He,"map",[],function(J){return J==null&&(J=We),J.$encode(X("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(W(Re,X("BOM_BYTES_UTF_8"))&&He["$[]="](0,oe.$byteslice(3,oe.$bytesize())),W(oe.$encoding(),X("UTF_8"))?re(ke)?G(He,"map",[],function(J){return J==null&&(J=We),J.$rstrip()}):G(He,"map",[],function(J){return J==null&&(J=We),J.$chomp()}):re(ke)?G(He,"map",[],function(J){return J==null&&(J=We),J.$encode(X("UTF_8")).$rstrip()}):G(He,"map",[],function(J){return J==null&&(J=We),J.$encode(X("UTF_8")).$chomp()}))},-2),v(rt,"$prepare_source_string",function(He,ke){var Ie=We,Re=We;return ke==null&&(ke=!0),re(He["$nil_or_empty?"]())?[]:(W(Ie=(Re=He.$unpack("C3")).$slice(0,2),X("BOM_BYTES_UTF_16LE"))?He=He.$byteslice(2,He.$bytesize()).$encode(X("UTF_8"),st(st("Encoding"),"UTF_16LE")):W(Ie,X("BOM_BYTES_UTF_16BE"))?He=He.$byteslice(2,He.$bytesize()).$encode(X("UTF_8"),st(st("Encoding"),"UTF_16BE")):W(Re,X("BOM_BYTES_UTF_8"))?(He=He.$byteslice(3,He.$bytesize()),W(He.$encoding(),X("UTF_8"))||(He=He.$encode(X("UTF_8")))):Ue(He.$encoding(),X("UTF_8"))&&(He=He.$encode(X("UTF_8"))),re(ke)?G([],"tap",[],function(we){return we==null&&(we=We),G(He,"each_line",[],function(B){return B==null&&(B=We),we["$<<"](B.$rstrip())})}):G([],"tap",[],function(we){return we==null&&(we=We),G(He,"each_line",[],function(B){return B==null&&(B=We),we["$<<"](B.$chomp())})}))},-2),W(st("RUBY_ENGINE"),"jruby")?v(rt,"$uriish?",function(He){var ke=We,Ie=We;return re(ke=re(Ie=He["$include?"](":"))?He["$start_with?"]("uri:classloader:")["$!"]():Ie)?X("UriSniffRx")["$match?"](He):ke}):v(rt,"$uriish?",function(He){var ke=We;return re(ke=He["$include?"](":"))?X("UriSniffRx")["$match?"](He):ke}),v(rt,"$encode_uri_component",function(He){return encodeURIComponent(He).replace(/%20|[!'()*]/g,function(ke){return ke==="%20"?"+":"%"+ke.charCodeAt(0).toString(16)})}),v(rt,"$encode_spaces_in_uri",function(He){return re(He["$include?"](" "))?He.$gsub(" ","%20"):He}),v(rt,"$rootname",function(He){var ke=We;return re(ke=He.$rindex("."))?re(He.$index("/",ke))?He:He.$slice(0,ke):He}),v(rt,"$basename",function(He,ke){var Ie=this;return ke==null&&(ke=We),re(ke)?st("File").$basename(He,W(ke,!0)?Ie.$extname(He):ke):st("File").$basename(He)},-2),v(rt,"$extname?",function(He){var ke=We,Ie=We;return re(ke=Ie=He.$rindex("."))?He.$index("/",Ie)["$!"]():ke}),re(st(st("File"),"ALT_SEPARATOR"))?v(rt,"$extname",function(He,ke){var Ie=We;return ke==null&&(ke=""),re(Ie=He.$rindex("."))?re(He.$index("/",Ie))||re(He.$index(st(st("File"),"ALT_SEPARATOR"),Ie))?ke:He.$slice(Ie,He.$length()):ke},-2):v(rt,"$extname",function(He,ke){var Ie=We;return ke==null&&(ke=""),re(Ie=He.$rindex("."))?re(He.$index("/",Ie))?ke:He.$slice(Ie,He.$length()):ke},-2),v(rt,"$mkdir_p",function(He){var ke=this,Ie=We;if(re(st("File")["$directory?"](He)))return We;W(Ie=st("File").$dirname(He),".")||ke.$mkdir_p(Ie);try{return st("Dir").$mkdir(He)}catch(Re){if(a.rescue(Re,[st("SystemCallError")]))try{return re(st("File")["$directory?"](He))?We:ke.$raise()}finally{a.pop_exception()}else throw Re}}),K(ot[0],"ROMAN_NUMERALS",qe(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),rt.$private_constant("ROMAN_NUMERALS"),v(rt,"$int_to_roman",function(He){return G(X("ROMAN_NUMERALS"),"map",[],function(Ie,Re){var oe,we,J=We;return Ie==null&&(Ie=We),Re==null&&(Re=We),we=He.$divmod(Re),oe=T(we),J=oe[0]==null?We:oe[0],He=oe[1]==null?We:oe[1],Oe(Ie,J)}).$join()}),v(rt,"$nextval",function(He){var ke=We;return Ne(st("Integer"),He)?Ke(He,1):W((ke=He.$to_i()).$to_s(),He.$to_s())?Ke(ke,1):He.$succ()}),v(rt,"$resolve_class",function(He){var ke=this;return Ne(De,He)?He:Ne(st("String"),He)?ke.$class_for_name(He):We}),v(rt,"$class_for_name",function(He){var ke=this,Ie=We;try{return Ne(De,Ie=Pe.$const_get(He,!1))||ke.$raise(),Ie}catch(Re){if(a.rescue(Re,[X("StandardError")]))try{return ke.$raise(st("NameError"),"Could not resolve class for name: "+He)}finally{a.pop_exception()}else throw Re}})}(N[0],N)}(pt[0],pt)},Opal.modules.logger=function(a){var ae=a.klass,re=a.module,W=a.const_set,me=a.send,v=a.def,G=a.eqeqeq,Ue=a.rb_plus,K=a.truthy,qe=a.rb_le,T=a.rb_lt,Oe=[],Ne=a.nil,Ke=a.$$$;return a.add_stubs("include,to_h,map,constants,const_get,to_s,format,chr,strftime,message_as_string,===,+,message,class,join,backtrace,inspect,attr_reader,attr_accessor,new,key,upcase,raise,add,to_proc,<=,<,write,call,[],now"),function(De,Pe,pt){var We=ae(De,Pe,"Logger"),st=[We].concat(pt),Ye=a.$r(st),Je=We.$$prototype;return Je.level=Je.progname=Je.pipe=Je.formatter=Ne,function(ht,N){var tt=re(ht,"Severity"),E=[tt].concat(N);return W(E[0],"DEBUG",0),W(E[0],"INFO",1),W(E[0],"WARN",2),W(E[0],"ERROR",3),W(E[0],"FATAL",4),W(E[0],"UNKNOWN",5)}(st[0],st),We.$include(Ye("Severity")),W(st[0],"SEVERITY_LABELS",me(Ye("Severity").$constants(),"map",[],function(N){return N==null&&(N=Ne),[Ye("Severity").$const_get(N),N.$to_s()]}).$to_h()),function(ht,N,tt){var E=ae(ht,N,"Formatter"),rt=[E].concat(tt),ot=a.$r(rt);return W(rt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
424
+ `),W(rt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),v(E,"$call",function(M,He,ke,Ie){var Re=this;return Re.$format(ot("MESSAGE_FORMAT"),M.$chr(),He.$strftime(ot("DATE_TIME_FORMAT")),M,ke,Re.$message_as_string(Ie))}),v(E,"$message_as_string",function(M){var He=Ne,ke=Ne;return G(Ke("String"),He=M)?M:G(Ke("Exception"),He)?Ue(""+M.$message()+" ("+M.$class()+`)
425
+ `,(K(ke=M.$backtrace())?ke:[]).$join(`
426
+ `)):M.$inspect()})}(st[0],null,st),We.$attr_reader("level"),We.$attr_accessor("progname"),We.$attr_accessor("formatter"),v(We,"$initialize",function(N){var tt=this;return tt.pipe=N,tt.level=Ye("DEBUG"),tt.formatter=Ye("Formatter").$new()}),v(We,"$level=",function(N){var tt=this,E=Ne;return G(Ke("Integer"),N)?tt.level=N:K(E=Ye("SEVERITY_LABELS").$key(N.$to_s().$upcase()))?tt.level=E:tt.$raise(Ye("ArgumentError"),"invalid log level: "+N)}),v(We,"$info",function ht(N){var tt=ht.$$p||Ne,E=this;return ht.$$p=null,N==null&&(N=Ne),me(E,"add",[Ye("INFO"),Ne,N],tt.$to_proc())},-1),v(We,"$debug",function ht(N){var tt=ht.$$p||Ne,E=this;return ht.$$p=null,N==null&&(N=Ne),me(E,"add",[Ye("DEBUG"),Ne,N],tt.$to_proc())},-1),v(We,"$warn",function ht(N){var tt=ht.$$p||Ne,E=this;return ht.$$p=null,N==null&&(N=Ne),me(E,"add",[Ye("WARN"),Ne,N],tt.$to_proc())},-1),v(We,"$error",function ht(N){var tt=ht.$$p||Ne,E=this;return ht.$$p=null,N==null&&(N=Ne),me(E,"add",[Ye("ERROR"),Ne,N],tt.$to_proc())},-1),v(We,"$fatal",function ht(N){var tt=ht.$$p||Ne,E=this;return ht.$$p=null,N==null&&(N=Ne),me(E,"add",[Ye("FATAL"),Ne,N],tt.$to_proc())},-1),v(We,"$unknown",function ht(N){var tt=ht.$$p||Ne,E=this;return ht.$$p=null,N==null&&(N=Ne),me(E,"add",[Ye("UNKNOWN"),Ne,N],tt.$to_proc())},-1),v(We,"$info?",function(){var N=this;return qe(N.level,Ye("INFO"))}),v(We,"$debug?",function(){var N=this;return qe(N.level,Ye("DEBUG"))}),v(We,"$warn?",function(){var N=this;return qe(N.level,Ye("WARN"))}),v(We,"$error?",function(){var N=this;return qe(N.level,Ye("ERROR"))}),v(We,"$fatal?",function(){var N=this;return qe(N.level,Ye("FATAL"))}),v(We,"$add",function ht(N,tt,E){var rt=ht.$$p||Ne,ot=this,X=Ne;return ht.$$p=null,tt==null&&(tt=Ne),E==null&&(E=Ne),K(T(N=K(X=N)?X:Ye("UNKNOWN"),ot.level))||(E=K(X=E)?X:ot.progname,K(tt)||(rt!==Ne?tt=a.yieldX(rt,[]):(tt=E,E=ot.progname)),ot.pipe.$write(ot.formatter.$call(K(X=Ye("SEVERITY_LABELS")["$[]"](N))?X:"ANY",Ke("Time").$now(),E,tt))),!0},-2)}(Oe[0],null,Oe)},Opal.modules["asciidoctor/logging"]=function(a){var ae=a.module,re=a.klass,W=a.slice,me=a.send2,v=a.find_super,G=a.to_a,Ue=a.send,K=a.def,qe=a.truthy,T=a.rb_gt,Oe=a.const_set,Ne=a.hash2,Ke=a.eqeqeq,De=a.gvars,Pe=a.alias,pt=a.defs,We=a.top,st=[],Ye=a.nil,Je=a.$$$;return a.add_stubs("require,attr_reader,progname=,formatter=,new,level=,>,[],===,inspect,to_h,map,constants,const_get,<<,clear,empty?,max,attr_accessor,memoize_logger,private,logger,extend,private_class_method,merge"),We.$require("logger"),function(ht,N){var tt=ae(ht,"Asciidoctor"),E=[tt].concat(N);return function(rt,ot,X){var M=re(rt,ot,"Logger"),He=[M].concat(X),ke=a.$r(He),Ie=M.$$prototype;return Ie.max_severity=Ye,M.$attr_reader("max_severity"),K(M,"$initialize",function Re(oe){var we,J,B,q=Re.$$p||Ye,ie=this;return Re.$$p=null,we=W(arguments),J=we,me(ie,v(ie,"initialize",Re,!1,!0),"initialize",G(J),q),ie["$progname="]("asciidoctor"),ie["$formatter="](ke("BasicFormatter").$new()),B=[ke("WARN")],Ue(ie,"level=",B),B[B.length-1]},-1),K(M,"$add",function Re(oe,we,J){var B=Re.$$p||Ye,q=this,ie=Ye;return Re.$$p=null,we==null&&(we=Ye),J==null&&(J=Ye),qe(T(oe=qe(ie=oe)?ie:ke("UNKNOWN"),q.max_severity=qe(ie=q.max_severity)?ie:oe))&&(q.max_severity=oe),me(q,v(q,"add",Re,!1,!0),"add",[oe,we,J],B)},-2),function(Re,oe,we){var J=re(Re,oe,"BasicFormatter"),B=[J].concat(we),q=a.$r(B);return Oe(B[0],"SEVERITY_LABEL_SUBSTITUTES",Ne(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),K(J,"$call",function(te,fe,H,g){var u=Ye;return""+H+": "+(qe(u=q("SEVERITY_LABEL_SUBSTITUTES")["$[]"](te))?u:te)+": "+(Ke(Je("String"),g)?g:g.$inspect())+q("LF")})}(He[0],ke("Formatter"),He),function(Re){var oe=ae(Re,"AutoFormattingMessage");return K(oe,"$inspect",function(){var J=this,B=Ye;return qe(B=J["$[]"]("source_location"))?""+B+": "+J["$[]"]("text"):J["$[]"]("text")})}(He[0])}(E[0],Je("Logger"),E),function(rt,ot,X){var M=re(rt,ot,"MemoryLogger"),He=[M].concat(X),ke=a.$r(He),Ie=M.$$prototype;return Ie.messages=Ye,Oe(He[0],"SEVERITY_SYMBOL_BY_VALUE",Ue(ke("Severity").$constants(!1),"map",[],function(oe){return oe==null&&(oe=Ye),[ke("Severity").$const_get(oe),oe]}).$to_h()),M.$attr_reader("messages"),K(M,"$initialize",function(){var oe=this;return oe["$level="](ke("WARN")),oe.messages=[]}),K(M,"$add",function Re(oe,we,J){var B=Re.$$p||Ye,q=this,ie=Ye;return Re.$$p=null,we==null&&(we=Ye),J==null&&(J=Ye),we=qe(ie=we)?ie:B!==Ye?a.yieldX(B,[]):J,q.messages["$<<"](Ne(["severity","message"],{severity:ke("SEVERITY_SYMBOL_BY_VALUE")["$[]"](qe(ie=oe)?ie:ke("UNKNOWN")),message:we})),!0},-2),K(M,"$clear",function(){var oe=this;return oe.messages.$clear()}),K(M,"$empty?",function(){var oe=this;return oe.messages["$empty?"]()}),K(M,"$max_severity",function(){var oe=this;return qe(oe["$empty?"]())?Ye:Ue(oe.messages,"map",[],function(J){return J==null&&(J=Ye),ke("Severity").$const_get(J["$[]"]("severity"))}).$max()})}(E[0],Je("Logger"),E),function(rt,ot,X){var M=re(rt,ot,"NullLogger"),He=[M].concat(X),ke=a.$r(He),Ie=M.$$prototype;return Ie.max_severity=Ye,M.$attr_reader("max_severity"),K(M,"$initialize",function(){var oe,we=this;return oe=[ke("WARN")],Ue(we,"level=",oe),oe[oe.length-1]}),K(M,"$add",function(oe,we,J){var B=this,q=Ye;return qe(T(oe=qe(q=oe)?q:ke("UNKNOWN"),B.max_severity=qe(q=B.max_severity)?q:oe))&&(B.max_severity=oe),!0},-2)}(E[0],Je("Logger"),E),function(rt,ot){var X=ae(rt,"LoggerManager"),M=[X].concat(ot),He=a.$r(M);return X.logger_class=He("Logger"),function(ke,Ie){return ke.$attr_accessor("logger_class"),K(ke,"$logger",function(oe){var we=this,J=Ye;return we.logger==null&&(we.logger=Ye),we.logger_class==null&&(we.logger_class=Ye),De.stderr==null&&(De.stderr=Ye),oe==null&&(oe=De.stderr),we.$memoize_logger(),we.logger=qe(J=we.logger)?J:we.logger_class.$new(oe)},-1),K(ke,"$logger=",function(oe){var we=this,J=Ye;return we.logger_class==null&&(we.logger_class=Ye),De.stderr==null&&(De.stderr=Ye),we.logger=qe(J=oe)?J:we.logger_class.$new(De.stderr)}),ke.$private(),K(ke,"$memoize_logger",function(){var oe=this;return function(we,J){return Pe(we,"logger","logger"),we.$attr_reader("logger")}(a.get_singleton_class(oe))})}(a.get_singleton_class(X))}(E[0],E),function(rt,ot){var X=ae(rt,"Logging"),M=[X].concat(ot),He=a.$r(M);return pt(X,"$included",function(Ie){return Ie.$extend(He("Logging"))}),X.$private_class_method("included"),K(X,"$logger",function(){return He("LoggerManager").$logger()}),K(X,"$message_with_context",function(Ie,Re){return Re==null&&(Re=Ne([],{})),Ne(["text"],{text:Ie}).$merge(Re).$extend(Je(He("Logger"),"AutoFormattingMessage"))},-2)}(E[0],E)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var ae=a.module,re=a.const_set,W=a.regexp,me=a.hash2,v=a.send,G=a.truthy,Ue=a.hash,K=[],qe=a.nil,T=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(Oe,Ne){var Ke=ae(Oe,"Asciidoctor"),De=[Ke].concat(Ne),Pe=a.$r(De);return ae(De[0],"Rx"),re(De[0],"AuthorInfoLineRx",W(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*)(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),re(De[0],"AuthorDelimiterRx",/;(?: |$)/),re(De[0],"RevisionInfoLineRx",W(["^(?:[^\\d{]*(",Pe("CC_ANY"),"*?),)? *(?!:)(",Pe("CC_ANY"),"*?)(?: *(?!^),?: *(",Pe("CC_ANY"),"*))?$"])),re(De[0],"ManpageTitleVolnumRx",W(["^(",Pe("CC_ANY"),"+?) *\\( *(",Pe("CC_ANY"),"+?) *\\)$"])),re(De[0],"ManpageNamePurposeRx",W(["^(",Pe("CC_ANY"),"+?) +- +(",Pe("CC_ANY"),"+)$"])),re(De[0],"ConditionalDirectiveRx",W(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"EvalExpressionRx",W(["^(",Pe("CC_ANY"),"+?) *([=!><]=|[><]) *(",Pe("CC_ANY"),"+)$"])),re(De[0],"IncludeDirectiveRx",W(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),re(De[0],"AttributeEntryRx",W(["^:(!?",Pe("CG_WORD"),"[^:]*):(?:[ \\t]+(",Pe("CC_ANY"),"*))?$"])),re(De[0],"InvalidAttributeNameCharsRx",W(["[^",Pe("CC_WORD"),"-]"])),re(De[0],"AttributeEntryPassMacroRx",W(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*)\\]$"])),re(De[0],"AttributeReferenceRx",W(["(\\\\)?\\{(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*|(set|counter2?):",Pe("CC_ANY"),"+?)(\\\\)?\\}"])),re(De[0],"BlockAnchorRx",W(["^\\[\\[(?:|([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?)\\]\\]$"])),re(De[0],"BlockAttributeListRx",W(["^\\[(|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*)\\]$"])),re(De[0],"BlockAttributeLineRx",W(["^\\[(?:|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*|\\[(?:|[",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*(?:, *",Pe("CC_ANY"),"+)?)\\])\\]$"])),re(De[0],"BlockTitleRx",W(["^\\.(\\.?[^ \\t.]",Pe("CC_ANY"),"*)$"])),re(De[0],"AdmonitionParagraphRx",W(["^(",Pe("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),re(De[0],"LiteralParagraphRx",W(["^([ \\t]+",Pe("CC_ANY"),"*)$"])),re(De[0],"AtxSectionTitleRx",W(["^(=={0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),re(De[0],"ExtAtxSectionTitleRx",W(["^(=={0,5}|#\\#{0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),re(De[0],"SetextSectionTitleRx",W(["^((?!\\.)",Pe("CC_ANY"),"*?",Pe("CG_ALNUM"),Pe("CC_ANY"),"*)$"])),re(De[0],"InlineSectionAnchorRx",W([" (\\\\)?\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?\\]\\]$"])),re(De[0],"InvalidSectionIdCharsRx",W(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",Pe("CC_WORD"),"\\-.]+?"])),re(De[0],"SectionLevelStyleRx",/^sect\d$/),re(De[0],"AnyListRx",W(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",Pe("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),re(De[0],"UnorderedListRx",W(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",Pe("CC_ANY"),"*)$"])),re(De[0],"OrderedListRx",W(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",Pe("CC_ANY"),"*)$"])),re(De[0],"OrderedListMarkerRxMap",me(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),re(De[0],"DescriptionListRx",W(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])),re(De[0],"DescriptionListSiblingRx",me(["::",":::","::::",";;"],{"::":W(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),":::":W(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),"::::":W(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),";;":W(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])})),re(De[0],"CalloutListRx",W(["^<(\\d+|\\.)>[ \\t]+(",Pe("CC_ANY"),"*)$"])),re(De[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),re(De[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),re(De[0],"CalloutExtractRxMap",v(T("Hash"),"new",[],function(We,st){var Ye;return We==null&&(We=qe),st==null&&(st=qe),Ye=[st,W(["(",G(st["$empty?"]())?"":""+T("Regexp").$escape(st)+" ?",")?",Pe("CalloutExtractRxt")])],v(We,"[]=",Ye),Ye[Ye.length-1]})),re(De[0],"CalloutScanRx",W(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",Pe("CC_EOL"),")"])),re(De[0],"CalloutSourceRx",W(["((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*",Pe("CC_EOL"),")"])),re(De[0],"CalloutSourceRxt","(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*"+Pe("CC_EOL")+")"),re(De[0],"CalloutSourceRxMap",v(T("Hash"),"new",[],function(We,st){var Ye;return We==null&&(We=qe),st==null&&(st=qe),Ye=[st,W(["(",G(st["$empty?"]())?"":""+T("Regexp").$escape(st)+" ?",")?",Pe("CalloutSourceRxt")])],v(We,"[]=",Ye),Ye[Ye.length-1]})),re(De[0],"ListRxMap",me(["ulist","olist","dlist","colist"],{ulist:Pe("UnorderedListRx"),olist:Pe("OrderedListRx"),dlist:Pe("DescriptionListRx"),colist:Pe("CalloutListRx")})),re(De[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),re(De[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),re(De[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),re(De[0],"CustomBlockMacroRx",W(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*)::(|\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"BlockMediaMacroRx",W(["^(image|video|audio)::(\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"BlockTocMacroRx",W(["^toc::\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"InlineAnchorRx",W(["(\\\\)?(?:\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\]))"])),re(De[0],"InlineAnchorScanRx",W(["(?:^|[^\\\\\\[])\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\])"])),re(De[0],"LeadingInlineAnchorRx",W(["^\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]"])),re(De[0],"InlineBiblioAnchorRx",W(["^\\[\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]\\]"])),re(De[0],"InlineEmailRx",W(["([\\\\>:/])?",Pe("CG_WORD"),"(?:&amp;|[",Pe("CC_WORD"),"\\-.%+])*@",Pe("CG_ALNUM"),"[",Pe("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),re(De[0],"InlineFootnoteMacroRx",W(["\\\\?footnote(?:(ref):|:([",Pe("CC_WORD"),"-]+)?)\\[(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),re(De[0],"InlineImageMacroRx",W(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"InlineIndextermMacroRx",W(["\\\\?(?:(indexterm2?):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",Pe("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),re(De[0],"InlineKbdBtnMacroRx",W(["(\\\\)?(kbd|btn):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"InlineLinkRx",W(["(^|link:|",Pe("CG_BLANK"),`|&lt;|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,Pe("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),re(De[0],"InlineLinkMacroRx",W(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"MacroNameRx",W(["^",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*$"])),re(De[0],"InlineStemMacroRx",W(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"InlineMenuMacroRx",W(["\\\\?menu:(",Pe("CG_WORD"),"|[",Pe("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\]"],"m")),re(De[0],"InlineMenuRx",W(['\\\\?"([',Pe("CC_WORD"),'&][^"]*?[ \\n]+&gt;[ \\n]+[^"]*)"'])),re(De[0],"InlinePassRx",Ue(!1,["+","-]",W(["((?:^|[^",Pe("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",Pe("CC_ALL"),"*?\\S)\\7)(?!",Pe("CG_WORD"),")"],"m")],!0,["`",qe,W(["(^|[^`",Pe("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",Pe("CC_ALL"),"*?\\S)\\7)(?![`",Pe("CC_WORD"),"])"],"m")])),re(De[0],"InlinePassMacroRx",W(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",Pe("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\])"],"m")),re(De[0],"InlineXrefMacroRx",W(["\\\\?(?:&lt;&lt;([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)&gt;&gt;|xref:([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)\\[(?:\\]|(",Pe("CC_ALL"),"*?[^\\\\])\\]))"],"m")),re(De[0],"HardLineBreakRx",W(["^(",Pe("CC_ANY"),"*) \\+$"],"m")),re(De[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),re(De[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),re(De[0],"BlankLineRx",/\n{2,}/),re(De[0],"EscapedSpaceRx",/\\([ \t\n])/),re(De[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),re(De[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),re(De[0],"SubModifierSniffRx",/[+-]/),re(De[0],"TrailingDigitsRx",/\d+$/),re(De[0],"UriSniffRx",W(["^",Pe("CG_ALPHA"),"[",Pe("CC_ALNUM"),".+-]+:/{0,2}"])),re(De[0],"XmlSanitizeRx",/<[^>]+>/)}(K[0],K)},Opal.modules["asciidoctor/substitutors"]=function(a){var ae=a.module,re=a.const_set,W=a.hash2,me=a.hash,v=a.rb_plus,G=a.regexp,Ue=a.not,K=a.truthy,qe=a.send,T=a.def,Oe=a.alias,Ne=a.gvars,Ke=a.eqeq,De=a.to_ary,Pe=a.neqeq,pt=a.to_a,We=a.eqeqeq,st=a.rb_gt,Ye=a.slice,Je=a.rb_minus,ht=a.rb_lt,N=a.rb_times,tt=[],E=a.nil,rt=a.$$$;return a.add_stubs("freeze,+,keys,!,empty?,===,[],join,include?,extract_passthroughs,each,sub_specialchars,sub_quotes,sub_attributes,sub_replacements,sub_macros,highlight_source,sub_callouts,sub_post_replacements,warn,logger,restore_passthroughs,clear,split,apply_subs,gsub,match?,compat_mode,convert_quoted_text,attributes,==,shift,store_attribute,!=,attribute_undefined,counter,key?,downcase,attribute_missing,info,squeeze,delete,reject,start_with?,do_replacement,inline_macros?,extensions,inline_macros,regexp,instance,slice,length,names,config,merge,[]=,normalize_text,parse_attributes,process_method,expand_subs,text=,text,convert,class,strip,index,min,compact,>,end_with?,map,chop,new,pop,rstrip,register,tr,basename,parse,lstrip,split_simple_csv,-,partition,extract_attributes_from_text,sub,encode_uri_component,style,extname?,rindex,catalog,info?,fetch,outfilesuffix,natural_xrefs,resolve_id,find,footnotes,id,<,size,<<,attr?,attr,to_s,read_next_id,callouts,highlight?,syntax_highlighter,sub_source,extract_callouts,name,to_i,to_sym,resolve_lines_to_highlight,highlight,nil_or_empty?,restore_callouts,count,to_a,|,sort,*,parse_quoted_text_attributes,resolve_pass_subs,basebackend?,error,chr,drop,&,resolve_subs,resolve_block_subs,parse_into,private,shorthand_property_syntax,each_char"),function(ot,X){var M=ae(ot,"Asciidoctor"),He=[M].concat(X);return function(ke,Ie){var Re=ae(ke,"Substitutors"),oe=[Re].concat(Ie),we=a.$r(oe);return re(oe[0],"SpecialCharsRx",/[<&>]/),re(oe[0],"SpecialCharsTr",W([">","<","&"],{">":"&gt;","<":"&lt;","&":"&amp;"})),re(oe[0],"QuotedTextSniffRx",me(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),re(oe[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),re(oe[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),re(oe[0],"NO_SUBS",[]).$freeze(),re(oe[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),re(oe[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),re(oe[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),re(oe[0],"SUB_GROUPS",W(["none","normal","verbatim","specialchars"],{none:we("NO_SUBS"),normal:we("NORMAL_SUBS"),verbatim:we("VERBATIM_SUBS"),specialchars:we("BASIC_SUBS")})),re(oe[0],"SUB_HINTS",W(["a","m","n","p","q","r","c","v"],{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"})),re(oe[0],"SUB_OPTIONS",W(["block","inline"],{block:v(v(we("SUB_GROUPS").$keys(),we("NORMAL_SUBS")),["callouts"]),inline:v(we("SUB_GROUPS").$keys(),we("NORMAL_SUBS"))})),re(oe[0],"CAN",""),re(oe[0],"DEL",""),re(oe[0],"PASS_START","–"),re(oe[0],"PASS_END","—"),re(oe[0],"PassSlotRx",G([we("PASS_START"),"(\\d+)",we("PASS_END")])),re(oe[0],"HighlightedPassSlotRx",G(["<span\\b[^>]*>",we("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",we("PASS_END"),"</span>"])),re(oe[0],"RS","\\"),re(oe[0],"R_SB","]"),re(oe[0],"ESC_R_SB","\\]"),re(oe[0],"PLUS","+"),T(Re,"$apply_subs",function(B,q){var ie=this,te=E,fe=E,H=E,g=E;return ie.passthroughs==null&&(ie.passthroughs=E),ie.passthroughs_locked==null&&(ie.passthroughs_locked=E),q==null&&(q=we("NORMAL_SUBS")),K(B["$empty?"]())||Ue(q)?B:(K(te=rt("Array")["$==="](B))&&(B=K(B["$[]"](1))?B.$join(we("LF")):B["$[]"](0)),K(q["$include?"]("macros"))&&(B=ie.$extract_passthroughs(B),K(ie.passthroughs["$empty?"]())||(fe=ie.passthroughs,ie.passthroughs_locked=K(H=ie.passthroughs_locked)?H:g=!0)),qe(q,"each",[],function u(m){var R=u.$$s==null?this:u.$$s;switch(m==null&&(m=E),m){case"specialcharacters":return B=R.$sub_specialchars(B);case"quotes":return B=R.$sub_quotes(B);case"attributes":return K(B["$include?"](we("ATTR_REF_HEAD")))?B=R.$sub_attributes(B):E;case"replacements":return B=R.$sub_replacements(B);case"macros":return B=R.$sub_macros(B);case"highlight":return B=R.$highlight_source(B,q["$include?"]("callouts"));case"callouts":return K(q["$include?"]("highlight"))?E:B=R.$sub_callouts(B);case"post_replacements":return B=R.$sub_post_replacements(B);default:return R.$logger().$warn("unknown substitution type "+m)}},{$$s:ie}),K(fe)&&(B=ie.$restore_passthroughs(B),K(g)&&(fe.$clear(),ie.passthroughs_locked=E)),K(te)?B.$split(we("LF"),-1):B)},-2),T(Re,"$apply_normal_subs",function(B){var q=this;return q.$apply_subs(B,we("NORMAL_SUBS"))}),T(Re,"$apply_header_subs",function(B){var q=this;return q.$apply_subs(B,we("HEADER_SUBS"))}),Oe(Re,"apply_title_subs","apply_subs"),T(Re,"$apply_reftext_subs",function(B){var q=this;return q.$apply_subs(B,we("REFTEXT_SUBS"))}),T(Re,"$sub_specialchars",function(B){return K(B["$include?"](">"))||K(B["$include?"]("&"))||K(B["$include?"]("<"))?B.$gsub(we("SpecialCharsRx"),we("SpecialCharsTr")):B}),Oe(Re,"sub_specialcharacters","sub_specialchars"),T(Re,"$sub_quotes",function(B){var q=this,ie=E;return q.document==null&&(q.document=E),K(we("QuotedTextSniffRx")["$[]"](ie=q.document.$compat_mode())["$match?"](B))&&qe(we("QUOTE_SUBS")["$[]"](ie),"each",[],function te(fe,H,g){var u=te.$$s==null?this:te.$$s;return fe==null&&(fe=E),H==null&&(H=E),g==null&&(g=E),B=qe(B,"gsub",[g],function m(){var R=m.$$s==null?this:m.$$s;return Ne["~"]==null&&(Ne["~"]=E),R.$convert_quoted_text(Ne["~"],fe,H)},{$$s:u})},{$$s:q}),B}),T(Re,"$sub_attributes",function(B,q){var ie=this,te=E,fe=E,H=E,g=E,u=E,m=E,R=E,k=E;return ie.document==null&&(ie.document=E),q==null&&(q=W([],{})),te=ie.document.$attributes(),fe=H=g=u=m=R=E,B=qe(B,"gsub",[we("AttributeReferenceRx")],function b(){var D,P,he=b.$$s==null?this:b.$$s,le=E,Se=E,Be=E,Xe=E,it=E,_t=E;if(he.document==null&&(he.document=E),Ke((D=Ne["~"])===E?E:D["$[]"](1),we("RS"))||Ke((D=Ne["~"])===E?E:D["$[]"](4),we("RS")))return"{"+((D=Ne["~"])===E?E:D["$[]"](2))+"}";if(K((D=Ne["~"])===E?E:D["$[]"](3)))switch((le=((D=Ne["~"])===E?E:D["$[]"](2)).$split(":",3)).$shift()){case"set":return P=we("Parser").$store_attribute(le["$[]"](0),K(Se=le["$[]"](1))?Se:"",he.document),D=De(P),D[0]==null||D[0],Be=D[1]==null?E:D[1],K(Be)||Pe(m=K(Se=m)?Se:K(Xe=te["$[]"]("attribute-undefined"))?Xe:we("Compliance").$attribute_undefined(),"drop-line")?fe=u=we("DEL"):fe=H=we("CAN");case"counter2":return qe(he.document,"counter",pt(le)),fe=u=we("DEL");default:return qe(he.document,"counter",pt(le))}else{if(K(te["$key?"](it=((D=Ne["~"])===E?E:D["$[]"](2)).$downcase())))return te["$[]"](it);if(K(Be=we("INTRINSIC_ATTRIBUTES")["$[]"](it)))return Be;switch(R=K(Se=R)?Se:K(Xe=K(_t=q["$[]"]("attribute_missing"))?_t:te["$[]"]("attribute-missing"))?Xe:we("Compliance").$attribute_missing()){case"drop":return fe=u=we("DEL");case"drop-line":return Ke(g=K(Se=g)?Se:K(Xe=q["$[]"]("drop_line_severity"))?Xe:"info","info")&&qe(he.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+it}),fe=H=we("CAN");case"warn":return he.$logger().$warn("skipping reference to missing attribute: "+it),(D=Ne["~"])===E?E:D["$[]"](0);default:return(D=Ne["~"])===E?E:D["$[]"](0)}}},{$$s:ie}),K(fe)?K(u)?(k=B.$squeeze(we("DEL")).$split(we("LF"),-1),K(H)?qe(k,"reject",[],function(D){var P=E,he=E,le=E;return D==null&&(D=E),K(P=K(he=K(le=D["$=="](we("DEL")))?le:D["$=="](we("CAN")))?he:D["$start_with?"](we("CAN")))?P:D["$include?"](we("CAN"))}).$join(we("LF")).$delete(we("DEL")):qe(k,"reject",[],function(D){return D==null&&(D=E),D["$=="](we("DEL"))}).$join(we("LF")).$delete(we("DEL"))):K(B["$include?"](we("LF")))?qe(B.$split(we("LF"),-1),"reject",[],function(D){var P=E,he=E;return D==null&&(D=E),K(P=K(he=D["$=="](we("CAN")))?he:D["$start_with?"](we("CAN")))?P:D["$include?"](we("CAN"))}).$join(we("LF")):"":B},-2),T(Re,"$sub_replacements",function(B){var q=this;return K(we("ReplaceableTextRx")["$match?"](B))&&qe(we("REPLACEMENTS"),"each",[],function ie(te,fe,H){var g=ie.$$s==null?this:ie.$$s;return te==null&&(te=E),fe==null&&(fe=E),H==null&&(H=E),B=qe(B,"gsub",[te],function u(){var m=u.$$s==null?this:u.$$s;return Ne["~"]==null&&(Ne["~"]=E),m.$do_replacement(Ne["~"],fe,H)},{$$s:g})},{$$s:q}),B}),T(Re,"$sub_macros",function(B){var q=this,ie=E,te=E,fe=E,H=E,g=E,u=E,m=E,R=E;return q.document==null&&(q.document=E),q.parent==null&&(q.parent=E),q.context==null&&(q.context=E),ie=B["$include?"]("["),te=B["$include?"](":"),fe=K(H=ie)?te:H,g=K(H=fe)?B["$include?"](":["):H,u=(m=q.document).$attributes(),K(R=m.$extensions())&&K(R["$inline_macros?"]())&&qe(R.$inline_macros(),"each",[],function k(b){var D=k.$$s==null?this:k.$$s;return b==null&&(b=E),B=qe(B,"gsub",[b.$instance().$regexp()],function P(){var he,le,Se=P.$$s==null?this:P.$$s,Be=E,Xe=E,it=E,_t=E,at=E,vt=E,St=E,Et=E,kt=E;return Ne["~"]==null&&(Ne["~"]=E),K((Be=(he=Ne["~"])===E?E:he["$[]"](0))["$start_with?"](we("RS")))?((he=Ne["~"])===E?E:he["$[]"](0)).$slice(1,((he=Ne["~"])===E?E:he["$[]"](0)).$length()):(K(Ne["~"].$names()["$empty?"]())?(he=[(le=Ne["~"])===E?E:le["$[]"](1),(le=Ne["~"])===E?E:le["$[]"](2)],Xe=he[0],it=he[1]):(he=[function(){try{return Ne["~"]["$[]"]("target")}catch(Nt){if(a.rescue(Nt,[we("StandardError")]))try{return E}finally{a.pop_exception()}else throw Nt}}(),function(){try{return Ne["~"]["$[]"]("content")}catch(Nt){if(a.rescue(Nt,[we("StandardError")]))try{return E}finally{a.pop_exception()}else throw Nt}}()],Xe=he[0],it=he[1]),_t=K(at=(vt=b.$config())["$[]"]("default_attrs"))?at.$merge():W([],{}),K(it)&&(K(it["$empty?"]())?Ke(vt["$[]"]("content_model"),"attributes")||_t["$[]="]("text",it):(it=Se.$normalize_text(it,!0,!0),Ke(vt["$[]"]("content_model"),"attributes")?Se.$parse_attributes(it,K(H=K(St=vt["$[]"]("positional_attrs"))?St:vt["$[]"]("pos_attrs"))?H:[],W(["into"],{into:_t})):_t["$[]="]("text",it)),Xe=K(H=Xe)?H:Ke(vt["$[]"]("format"),"short")?it:Xe),We(we("Inline"),Et=b.$process_method()["$[]"](Se,Xe,_t))?(K(kt=Et.$attributes().$delete("subs"))&&K(kt=Se.$expand_subs(kt,"custom inline macro"))&&Et["$text="](Se.$apply_subs(Et.$text(),kt)),Et.$convert()):K(Et)?(qe(Se.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+Et.$class()+": "+Be}),Et):"")},{$$s:D})},{$$s:q}),K(u["$key?"]("experimental"))&&(K(g)&&(K(B["$include?"]("kbd:"))||K(B["$include?"]("btn:")))&&(B=qe(B,"gsub",[we("InlineKbdBtnMacroRx")],function k(){var b,D=k.$$s==null?this:k.$$s,P=E,he=E,le=E;return K((b=Ne["~"])===E?E:b["$[]"](1))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):Ke((b=Ne["~"])===E?E:b["$[]"](2),"kbd")?(K((P=((b=Ne["~"])===E?E:b["$[]"](3)).$strip())["$include?"](we("R_SB")))&&(P=P.$gsub(we("ESC_R_SB"),we("R_SB"))),K(st(P.$length(),1))&&K(he=K(he=P.$index(",",1))?[he,P.$index("+",1)].$compact().$min():P.$index("+",1))?(le=P.$slice(he,1),K(P["$end_with?"](le))?(P=qe(P.$chop().$split(le,-1),"map",[],function(Be){return Be==null&&(Be=E),Be.$strip()}),P["$[]="](-1,v(P["$[]"](-1),le))):P=qe(P.$split(le),"map",[],function(Be){return Be==null&&(Be=E),Be.$strip()})):P=[P],we("Inline").$new(D,"kbd",E,W(["attributes"],{attributes:W(["keys"],{keys:P})})).$convert()):we("Inline").$new(D,"button",D.$normalize_text((b=Ne["~"])===E?E:b["$[]"](3),!0,!0)).$convert()},{$$s:q})),K(fe)&&K(B["$include?"]("menu:"))&&(B=qe(B,"gsub",[we("InlineMenuMacroRx")],function k(){var b,D=k.$$s==null?this:k.$$s,P=E,he=E,le=E,Se=E,Be=E;return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(P=(b=Ne["~"])===E?E:b["$[]"](1),K(he=(b=Ne["~"])===E?E:b["$[]"](2))?(K(he["$include?"](we("R_SB")))&&(he=he.$gsub(we("ESC_R_SB"),we("R_SB"))),K(le=K(he["$include?"]("&gt;"))?"&gt;":K(he["$include?"](","))?",":E)?(Se=qe(he.$split(le),"map",[],function(it){return it==null&&(it=E),it.$strip()}),Be=Se.$pop()):(b=[[],he.$rstrip()],Se=b[0],Be=b[1])):(b=[[],E],Se=b[0],Be=b[1]),we("Inline").$new(D,"menu",E,W(["attributes"],{attributes:W(["menu","submenus","menuitem"],{menu:P,submenus:Se,menuitem:Be})})).$convert())},{$$s:q})),K(B["$include?"]('"'))&&K(B["$include?"]("&gt;"))&&(B=qe(B,"gsub",[we("InlineMenuRx")],function k(){var b,D,P,he=k.$$s==null?this:k.$$s,le=E,Se=E,Be=E;return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(D=qe(((P=Ne["~"])===E?E:P["$[]"](1)).$split("&gt;"),"map",[],function(it){return it==null&&(it=E),it.$strip()}),b=De(D),le=b[0]==null?E:b[0],Se=Ye(b,1),Be=Se.$pop(),we("Inline").$new(he,"menu",E,W(["attributes"],{attributes:W(["menu","submenus","menuitem"],{menu:le,submenus:Se,menuitem:Be})})).$convert())},{$$s:q}))),K(fe)&&(K(B["$include?"]("image:"))||K(B["$include?"]("icon:")))&&(B=qe(B,"gsub",[we("InlineImageMacroRx")],function k(){var b,D=k.$$s==null?this:k.$$s,P=E,he=E,le=E,Se=E;return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"]("icon:"))?(b=["icon",["size"]],P=b[0],he=b[1]):(b=["image",["alt","width","height"]],P=b[0],he=b[1]),le=(b=Ne["~"])===E?E:b["$[]"](1),Se=D.$parse_attributes((b=Ne["~"])===E?E:b["$[]"](2),he,W(["unescape_input"],{unescape_input:!0})),Ke(P,"icon")||(m.$register("images",le),Se["$[]="]("imagesdir",u["$[]"]("imagesdir"))),K(H=Se["$[]"]("alt"))||Se["$[]="]("alt",(b=["default-alt",we("Helpers").$basename(le,!0).$tr("_-"," ")],qe(Se,"[]=",b),b[b.length-1])),we("Inline").$new(D,"image",E,W(["type","target","attributes"],{type:P,target:le,attributes:Se})).$convert())},{$$s:q})),(K(B["$include?"]("(("))&&K(B["$include?"]("))"))||K(g)&&K(B["$include?"]("dexterm")))&&(B=qe(B,"gsub",[we("InlineIndextermMacroRx")],function k(){var b,D,P=k.$$s==null?this:k.$$s,he=E,le=E,Se=E,Be=E,Xe=E,it=E,_t=E,at=E,vt=E,St=E,Et=E,kt=E,Nt=E,Rt=E;switch((b=Ne["~"])===E?E:b["$[]"](1)){case"indexterm":return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(K((he=P.$normalize_text((b=Ne["~"])===E?E:b["$[]"](2),!0,!0))["$include?"]("="))?K(le=(Se=we("AttributeList").$new(he,P).$parse())["$[]"](1))?(Se["$[]="]("terms",[le]),K(Be=Se["$[]"]("see-also"))&&Se["$[]="]("see-also",K(Be["$include?"](","))?qe(Be.$split(","),"map",[],function(jt){return jt==null&&(jt=E),jt.$lstrip()}):[Be])):Se=W(["terms"],{terms:he}):Se=W(["terms"],{terms:P.$split_simple_csv(he)}),we("Inline").$new(P,"indexterm",E,W(["attributes"],{attributes:Se})).$convert());case"indexterm2":return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(K((Xe=P.$normalize_text((b=Ne["~"])===E?E:b["$[]"](2),!0,!0))["$include?"]("="))&&(Xe=K(it=K(_t=(Se=we("AttributeList").$new(Xe,P).$parse())["$[]"](1))?_t:Se=E)?it:Xe,K(Se)&&K(Be=Se["$[]"]("see-also"))&&Se["$[]="]("see-also",K(Be["$include?"](","))?qe(Be.$split(","),"map",[],function(jt){return jt==null&&(jt=E),jt.$lstrip()}):[Be])),we("Inline").$new(P,"indexterm",Xe,W(["attributes","type"],{attributes:Se,type:"visible"})).$convert());default:if(at=(b=Ne["~"])===E?E:b["$[]"](3),K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS"))))if(K(at["$start_with?"]("("))&&K(at["$end_with?"](")")))at=at.$slice(1,Je(at.$length(),2)),b=[!0,"(",")"],vt=b[0],St=b[1],Et=b[2];else return((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length());else vt=!0,K(at["$start_with?"]("("))?K(at["$end_with?"](")"))?(b=[at.$slice(1,Je(at.$length(),2)),!1],at=b[0],vt=b[1]):(b=[at.$slice(1,at.$length()),"(",""],at=b[0],St=b[1],Et=b[2]):K(at["$end_with?"](")"))&&(b=[at.$chop(),"",")"],at=b[0],St=b[1],Et=b[2]);return K(vt)?(K((Xe=P.$normalize_text(at,!0))["$include?"](";&"))&&(K(Xe["$include?"](" &gt;&gt; "))?(D=Xe.$partition(" &gt;&gt; "),b=De(D),Xe=b[0]==null?E:b[0],b[1]==null||b[1],kt=b[2]==null?E:b[2],Se=W(["see"],{see:kt})):K(Xe["$include?"](" &amp;&gt; "))&&(D=Xe.$split(" &amp;&gt; "),b=De(D),Xe=b[0]==null?E:b[0],Be=Ye(b,1),Se=W(["see-also"],{"see-also":Be}))),Nt=we("Inline").$new(P,"indexterm",Xe,W(["attributes","type"],{attributes:Se,type:"visible"})).$convert()):(Se=W([],{}),K((Rt=P.$normalize_text(at,!0))["$include?"](";&"))&&(K(Rt["$include?"](" &gt;&gt; "))?(D=Rt.$partition(" &gt;&gt; "),b=De(D),Rt=b[0]==null?E:b[0],b[1]==null||b[1],kt=b[2]==null?E:b[2],Se["$[]="]("see",kt)):K(Rt["$include?"](" &amp;&gt; "))&&(D=Rt.$split(" &amp;&gt; "),b=De(D),Rt=b[0]==null?E:b[0],Be=Ye(b,1),Se["$[]="]("see-also",Be))),Se["$[]="]("terms",P.$split_simple_csv(Rt)),Nt=we("Inline").$new(P,"indexterm",E,W(["attributes"],{attributes:Se})).$convert()),K(St)?""+St+Nt+Et:Nt}},{$$s:q})),K(te)&&K(B["$include?"]("://"))&&(B=qe(B,"gsub",[we("InlineLinkRx")],function k(){var b,D,P=k.$$s==null?this:k.$$s,he=E,le=E,Se=E,Be=E,Xe=E,it=E,_t=E,at=E,vt=E;if(K((he=v((b=Ne["~"])===E?E:b["$[]"](2),K(H=(b=Ne["~"])===E?E:b["$[]"](3))?H:(b=Ne["~"])===E?E:b["$[]"](5)))["$start_with?"](we("RS"))))return v(((b=Ne["~"])===E?E:b["$[]"](0)).$slice(0,le=((b=Ne["~"])===E?E:b["$[]"](1)).$length()),((b=Ne["~"])===E?E:b["$[]"](0)).$slice(v(le,1),((b=Ne["~"])===E?E:b["$[]"](0)).$length()));if(b=[(D=Ne["~"])===E?E:D["$[]"](1),""],Se=b[0],Be=b[1],K((b=Ne["~"])===E?E:b["$[]"](4)))Ke(Se,"link:")&&(Se=""),K((Xe=(b=Ne["~"])===E?E:b["$[]"](4))["$empty?"]())&&(Xe=E);else{switch(Se){case"link:":case'"':case"'":return(b=Ne["~"])===E?E:b["$[]"](0)}switch((b=Ne["~"])===E?E:b["$[]"](6)){case";":if(K(Se["$start_with?"]("&lt;"))&&K(he["$end_with?"]("&gt;"))?(Se=Se.$slice(4,Se.$length()),he=he.$slice(0,Je(he.$length(),4))):K((he=he.$chop())["$end_with?"](")"))?(he=he.$chop(),Be=");"):Be=";",K(he["$end_with?"]("://")))return(b=Ne["~"])===E?E:b["$[]"](0);break;case":":if(K((he=he.$chop())["$end_with?"](")"))?(he=he.$chop(),Be="):"):Be=":",K(he["$end_with?"]("://")))return(b=Ne["~"])===E?E:b["$[]"](0);break}}return b=[E,W(["type"],{type:"link"})],it=b[0],_t=b[1],K(Xe)?(K(Xe["$include?"](we("R_SB")))&&(at=Xe=Xe.$gsub(we("ESC_R_SB"),we("R_SB"))),Ue(m.$compat_mode())&&K(Xe["$include?"]("="))&&(D=P.$extract_attributes_from_text(Xe,""),b=De(D),Xe=b[0]==null?E:b[0],it=b[1]==null?E:b[1],at=Xe,_t["$[]="]("id",it["$[]"]("id"))),K(Xe["$end_with?"]("^"))&&(at=Xe=Xe.$chop(),K(it)?K(H=it["$[]"]("window"))||it["$[]="]("window","_blank"):it=W(["window"],{window:"_blank"})),K(at)&&K(at["$empty?"]())&&(Xe=K(u["$key?"]("hide-uri-scheme"))?he.$sub(we("UriSniffRx"),""):he,vt=!0)):(Xe=K(u["$key?"]("hide-uri-scheme"))?he.$sub(we("UriSniffRx"),""):he,vt=!0),K(vt)&&(K(it)?it["$[]="]("role",K(it["$key?"]("role"))?"bare "+it["$[]"]("role"):"bare"):it=W(["role"],{role:"bare"})),m.$register("links",(b=["target",he],qe(_t,"[]=",b),b[b.length-1])),K(it)&&_t["$[]="]("attributes",it),""+Se+we("Inline").$new(P,"anchor",Xe,_t).$convert()+Be},{$$s:q})),K(fe)&&(K(B["$include?"]("link:"))||K(B["$include?"]("ilto:")))&&(B=qe(B,"gsub",[we("InlineLinkMacroRx")],function k(){var b,D,P=k.$$s==null?this:k.$$s,he=E,le=E,Se=E,Be=E,Xe=E,it=E;return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(K(he=(b=Ne["~"])===E?E:b["$[]"](1))?le=v("mailto:",Se=(b=Ne["~"])===E?E:b["$[]"](2)):le=(b=Ne["~"])===E?E:b["$[]"](2),b=[E,W(["type"],{type:"link"})],Be=b[0],Xe=b[1],K((it=(b=Ne["~"])===E?E:b["$[]"](3))["$empty?"]())||(K(it["$include?"](we("R_SB")))&&(it=it.$gsub(we("ESC_R_SB"),we("R_SB"))),K(he)?Ue(m.$compat_mode())&&K(it["$include?"](","))&&(D=P.$extract_attributes_from_text(it,""),b=De(D),it=b[0]==null?E:b[0],Be=b[1]==null?E:b[1],Xe["$[]="]("id",Be["$[]"]("id")),K(Be["$key?"](2))&&(K(Be["$key?"](3))?le=""+le+"?subject="+we("Helpers").$encode_uri_component(Be["$[]"](2))+"&amp;body="+we("Helpers").$encode_uri_component(Be["$[]"](3)):le=""+le+"?subject="+we("Helpers").$encode_uri_component(Be["$[]"](2)))):Ue(m.$compat_mode())&&K(it["$include?"]("="))&&(D=P.$extract_attributes_from_text(it,""),b=De(D),it=b[0]==null?E:b[0],Be=b[1]==null?E:b[1],Xe["$[]="]("id",Be["$[]"]("id"))),K(it["$end_with?"]("^"))&&(it=it.$chop(),K(Be)?K(H=Be["$[]"]("window"))||Be["$[]="]("window","_blank"):Be=W(["window"],{window:"_blank"}))),K(it["$empty?"]())&&(K(he)?it=Se:(K(u["$key?"]("hide-uri-scheme"))?K((it=le.$sub(we("UriSniffRx"),""))["$empty?"]())&&(it=le):it=le,K(Be)?Be["$[]="]("role",K(Be["$key?"]("role"))?"bare "+Be["$[]"]("role"):"bare"):Be=W(["role"],{role:"bare"}))),m.$register("links",(b=["target",le],qe(Xe,"[]=",b),b[b.length-1])),K(Be)&&Xe["$[]="]("attributes",Be),we("Inline").$new(P,"anchor",it,Xe).$convert())},{$$s:q})),K(B["$include?"]("@"))&&(B=qe(B,"gsub",[we("InlineEmailRx")],function k(){var b,D=k.$$s==null?this:k.$$s,P=E,he=E;return K((b=Ne["~"])===E?E:b["$[]"](1))?Ke((b=Ne["~"])===E?E:b["$[]"](1),we("RS"))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(b=Ne["~"])===E?E:b["$[]"](0):(P=v("mailto:",he=(b=Ne["~"])===E?E:b["$[]"](0)),m.$register("links",P),we("Inline").$new(D,"anchor",he,W(["type","target"],{type:"link",target:P})).$convert())},{$$s:q})),K(ie)&&Ke(q.context,"list_item")&&Ke(q.parent.$style(),"bibliography")&&(B=qe(B,"sub",[we("InlineBiblioAnchorRx")],function k(){var b,D=k.$$s==null?this:k.$$s;return we("Inline").$new(D,"anchor",(b=Ne["~"])===E?E:b["$[]"](2),W(["type","id"],{type:"bibref",id:(b=Ne["~"])===E?E:b["$[]"](1)})).$convert()},{$$s:q})),(K(ie)&&K(B["$include?"]("[["))||K(fe)&&K(B["$include?"]("or:")))&&(B=qe(B,"gsub",[we("InlineAnchorRx")],function k(){var b,D=k.$$s==null?this:k.$$s,P=E,he=E;return K((b=Ne["~"])===E?E:b["$[]"](1))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(K(P=(b=Ne["~"])===E?E:b["$[]"](2))?he=(b=Ne["~"])===E?E:b["$[]"](3):(P=(b=Ne["~"])===E?E:b["$[]"](4),K(he=(b=Ne["~"])===E?E:b["$[]"](5))&&K(he["$include?"](we("R_SB")))&&(he=he.$gsub(we("ESC_R_SB"),we("R_SB")))),we("Inline").$new(D,"anchor",he,W(["type","id"],{type:"ref",id:P})).$convert())},{$$s:q})),(K(B["$include?"]("&"))&&K(B["$include?"](";&l"))||K(fe)&&K(B["$include?"]("xref:")))&&(B=qe(B,"gsub",[we("InlineXrefMacroRx")],function k(){var b,D,P=k.$$s==null?this:k.$$s,he=E,le=E,Se=E,Be=E,Xe=E,it=E,_t=E,at=E,vt=E,St=E;return K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length()):(he=W([],{}),K(le=(b=Ne["~"])===E?E:b["$[]"](1))?K(le["$include?"](","))&&(D=le.$partition(","),b=De(D),le=b[0]==null?E:b[0],b[1]==null||b[1],Se=b[2]==null?E:b[2],K((Se=Se.$lstrip())["$empty?"]())&&(Se=E)):(Be=!0,le=(b=Ne["~"])===E?E:b["$[]"](2),K(Se=(b=Ne["~"])===E?E:b["$[]"](3))&&(K(Se["$include?"](we("R_SB")))&&(Se=Se.$gsub(we("ESC_R_SB"),we("R_SB"))),Ue(m.$compat_mode())&&K(Se["$include?"]("="))&&(D=P.$extract_attributes_from_text(Se),b=De(D),Se=b[0]==null?E:b[0],he=b[1]==null?E:b[1]))),K(m.$compat_mode())?Xe=le:K(it=le.$index("#"))&&Pe(le["$[]"](Je(it,1)),"&")?K(st(it,0))?(K(st(_t=Je(Je(le.$length(),1),it),0))?(b=[le.$slice(0,it),le.$slice(v(it,1),_t)],at=b[0],Xe=b[1]):at=le.$chop(),K(Be)?K(at["$end_with?"](".adoc"))?vt=at=at.$slice(0,Je(at.$length(),5)):Ue(we("Helpers")["$extname?"](at))&&(vt=at):K(qe(at,"end_with?",pt(we("ASCIIDOC_EXTENSIONS").$keys())))?vt=at=at.$slice(0,at.$rindex(".")):vt=at):(b=[le,le.$slice(1,le.$length())],St=b[0],Xe=b[1]):K(Be)?K(le["$end_with?"](".adoc"))?vt=at=le.$slice(0,Je(le.$length(),5)):K(we("Helpers")["$extname?"](le))?at=le:Xe=le:Xe=le,K(St)?(le=Xe,K(P.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&P.$logger().$info("possible invalid reference: "+le)):K(at)?K(vt)&&(Ke(m.$attributes()["$[]"]("docname"),at)||K(m.$catalog()["$[]"]("includes")["$[]"](at)))?K(Xe)?(b=[Xe,E,"#"+Xe],le=b[0],at=b[1],St=b[2],K(P.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&P.$logger().$info("possible invalid reference: "+le)):(b=[E,E,"#"],le=b[0],at=b[1],St=b[2]):(b=[at,""+(K(H=m.$attributes()["$[]"]("relfileprefix"))?H:"")+at+(K(vt)?m.$attributes().$fetch("relfilesuffix",m.$outfilesuffix()):"")],le=b[0],at=b[1],K(Xe)?(b=[""+le+"#"+Xe,""+at+"#"+Xe],le=b[0],St=b[1]):St=at):K(m.$compat_mode())||Ue(we("Compliance").$natural_xrefs())?(b=[Xe,"#"+Xe],le=b[0],St=b[1],K(P.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&P.$logger().$info("possible invalid reference: "+le)):K(m.$catalog()["$[]"]("refs")["$[]"](Xe))?(b=[Xe,"#"+Xe],le=b[0],St=b[1]):(K(Xe["$include?"](" "))||Pe(Xe.$downcase(),Xe))&&K(le=m.$resolve_id(Xe))?(b=[le,"#"+le],Xe=b[0],St=b[1]):(b=[Xe,"#"+Xe],le=b[0],St=b[1],K(P.$logger()["$info?"]())&&P.$logger().$info("possible invalid reference: "+le)),he["$[]="]("path",at),he["$[]="]("fragment",Xe),he["$[]="]("refid",le),we("Inline").$new(P,"anchor",Se,W(["type","target","attributes"],{type:"xref",target:St,attributes:he})).$convert())},{$$s:q})),K(fe)&&K(B["$include?"]("tnote"))&&(B=qe(B,"gsub",[we("InlineFootnoteMacroRx")],function k(){var b,D,P,he=k.$$s==null?this:k.$$s,le=E,Se=E,Be=E,Xe=E,it=E,_t=E;if(K(((b=Ne["~"])===E?E:b["$[]"](0))["$start_with?"](we("RS"))))return((b=Ne["~"])===E?E:b["$[]"](0)).$slice(1,((b=Ne["~"])===E?E:b["$[]"](0)).$length());if(K((b=Ne["~"])===E?E:b["$[]"](1)))if(K((b=Ne["~"])===E?E:b["$[]"](3)))D=((P=Ne["~"])===E?E:P["$[]"](3)).$split(",",2),b=De(D),le=b[0]==null?E:b[0],Se=b[1]==null?E:b[1],K(m.$compat_mode())||he.$logger().$warn("found deprecated footnoteref macro: "+((b=Ne["~"])===E?E:b["$[]"](0))+"; use footnote macro with target instead");else return(b=Ne["~"])===E?E:b["$[]"](0);else le=(b=Ne["~"])===E?E:b["$[]"](2),Se=(b=Ne["~"])===E?E:b["$[]"](3);if(K(le))K(Be=qe(m.$footnotes(),"find",[],function(vt){return vt==null&&(vt=E),vt.$id()["$=="](le)}))?(b=[Be.$index(),Be.$text()],Xe=b[0],Se=b[1],b=["xref",le,E],it=b[0],_t=b[1],le=b[2]):K(Se)?(Se=he.$restore_passthroughs(he.$normalize_text(Se,!0,!0)),Xe=m.$counter("footnote-number"),m.$register("footnotes",rt(we("Document"),"Footnote").$new(Xe,le,Se)),b=["ref",E],it=b[0],_t=b[1]):(he.$logger().$warn("invalid footnote reference: "+le),b=["xref",le,le,E],it=b[0],_t=b[1],Se=b[2],le=b[3]);else if(K(Se))Se=he.$restore_passthroughs(he.$normalize_text(Se,!0,!0)),Xe=m.$counter("footnote-number"),m.$register("footnotes",rt(we("Document"),"Footnote").$new(Xe,le,Se)),it=_t=E;else return(b=Ne["~"])===E?E:b["$[]"](0);return we("Inline").$new(he,"footnote",Se,W(["attributes","id","target","type"],{attributes:W(["index"],{index:Xe}),id:le,target:_t,type:it})).$convert()},{$$s:q})),B}),T(Re,"$sub_post_replacements",function(B){var q=this,ie=E,te=E;return q.document==null&&(q.document=E),q.attributes==null&&(q.attributes=E),K(q.attributes["$[]"]("hardbreaks-option"))||K(q.document.$attributes()["$[]"]("hardbreaks-option"))?(ie=B.$split(we("LF"),-1),K(ht(ie.$size(),2))?B:(te=ie.$pop(),qe(ie,"map",[],function fe(H){var g=fe.$$s==null?this:fe.$$s;return H==null&&(H=E),we("Inline").$new(g,"break",K(H["$end_with?"](we("HARD_LINE_BREAK")))?H.$slice(0,Je(H.$length(),2)):H,W(["type"],{type:"line"})).$convert()},{$$s:q})["$<<"](te).$join(we("LF")))):K(B["$include?"](we("PLUS")))&&K(B["$include?"](we("HARD_LINE_BREAK")))?qe(B,"gsub",[we("HardLineBreakRx")],function fe(){var H,g=fe.$$s==null?this:fe.$$s;return we("Inline").$new(g,"break",(H=Ne["~"])===E?E:H["$[]"](1),W(["type"],{type:"line"})).$convert()},{$$s:q}):B}),T(Re,"$sub_source",function(B,q){var ie=this;return K(q)?ie.$sub_callouts(ie.$sub_specialchars(B)):ie.$sub_specialchars(B)}),T(Re,"$sub_callouts",function(B){var q=this,ie=E,te=E;return ie=K(q["$attr?"]("line-comment"))?we("CalloutSourceRxMap")["$[]"](q.$attr("line-comment")):we("CalloutSourceRx"),te=0,qe(B,"gsub",[ie],function fe(){var H,g=fe.$$s==null?this:fe.$$s,u=E;return g.document==null&&(g.document=E),K((H=Ne["~"])===E?E:H["$[]"](2))?((H=Ne["~"])===E?E:H["$[]"](0)).$sub(we("RS"),""):we("Inline").$new(g,"callout",Ke((H=Ne["~"])===E?E:H["$[]"](4),".")?(te=v(te,1)).$to_s():(H=Ne["~"])===E?E:H["$[]"](4),W(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:W(["guard"],{guard:K(u=(H=Ne["~"])===E?E:H["$[]"](1))?u:Ke((H=Ne["~"])===E?E:H["$[]"](3),"--")?["<!--","-->"]:E})})).$convert()},{$$s:q})}),T(Re,"$highlight_source",function(B,q){var ie,te,fe=this,H=E,g=E,u=E,m=E,R=E,k=E,b=E,D=E,P=E,he=E;return fe.document==null&&(fe.document=E),fe.passthroughs==null&&(fe.passthroughs=E),K(H=fe.document.$syntax_highlighter())&&K(H["$highlight?"]())?(K(q)&&(te=fe.$extract_callouts(B),ie=De(te),B=ie[0]==null?E:ie[0],g=ie[1]==null?E:ie[1]),u=fe.document.$attributes(),m=H.$name(),K(k=K(fe["$attr?"]("linenums"))?(K(b=u["$[]"](""+m+"-linenums-mode"))?b:"table").$to_sym():E)&&K(ht(R=fe.$attr("start",1).$to_i(),1))&&(R=1),K(fe["$attr?"]("highlight"))&&(D=fe.$resolve_lines_to_highlight(B,fe.$attr("highlight"),R)),te=H.$highlight(fe,B,fe.$attr("language"),W(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:g,css_mode:(K(b=u["$[]"](""+m+"-css"))?b:"class").$to_sym(),highlight_lines:D,number_lines:k,start_line_number:R,style:u["$[]"](""+m+"-style")})),ie=De(te),P=ie[0]==null?E:ie[0],he=ie[1]==null?E:ie[1],K(fe.passthroughs["$empty?"]())||(P=P.$gsub(we("HighlightedPassSlotRx"),""+we("PASS_START")+"\\1"+we("PASS_END"))),K(g["$nil_or_empty?"]())?P:fe.$restore_callouts(P,g,he)):fe.$sub_source(B,q)}),T(Re,"$resolve_lines_to_highlight",function(B,q,ie){var te=E,fe=E;return ie==null&&(ie=E),te=[],K(q["$include?"](" "))&&(q=q.$delete(" ")),qe(K(q["$include?"](","))?q.$split(","):q.$split(";"),"map",[],function(g){var u,m,R=E,k=E,b=E,D=E,P=E;return g==null&&(g=E),K(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),R=!0),K(k=K(g["$include?"](".."))?"..":K(g["$include?"]("-"))?"-":E)?(m=g.$partition(k),u=De(m),b=u[0]==null?E:u[0],u[1]==null||u[1],D=u[2]==null?E:u[2],(K(D["$empty?"]())||K(ht(D=D.$to_i(),0)))&&(D=v(B.$count(we("LF")),1)),K(R)?te=Je(te,a.Range.$new(b.$to_i(),D,!1).$to_a()):te=te["$|"](a.Range.$new(b.$to_i(),D,!1).$to_a())):K(R)?te.$delete(g.$to_i()):Ue(te["$include?"](P=g.$to_i()))?te["$<<"](P):E}),Ke(fe=K(ie)?Je(ie,1):0,0)||(te=qe(te,"map",[],function(g){return g==null&&(g=E),Je(g,fe)})),te.$sort()},-3),T(Re,"$extract_passthroughs",function(B){var q,ie,te=this,fe=E,H=E,g=E,u=E,m=E;return te.document==null&&(te.document=E),te.passthroughs==null&&(te.passthroughs=E),fe=te.document.$compat_mode(),H=te.passthroughs,(K(B["$include?"]("++"))||K(B["$include?"]("$$"))||K(B["$include?"]("ss:")))&&(B=qe(B,"gsub",[we("InlinePassMacroRx")],function R(){var k,b=R.$$s==null?this:R.$$s,D=E,P=E,he=E,le=E,Se=E,Be=E,Xe=E,it=E,_t=E;if(K(D=(k=Ne["~"])===E?E:k["$[]"](4))){if(K(fe)&&Ke(D,"++"))return(K((k=Ne["~"])===E?E:k["$[]"](2))?""+((k=Ne["~"])===E?E:k["$[]"](1))+"["+((k=Ne["~"])===E?E:k["$[]"](2))+"]"+((k=Ne["~"])===E?E:k["$[]"](3)):""+((k=Ne["~"])===E?E:k["$[]"](1))+((k=Ne["~"])===E?E:k["$[]"](3)))+"++"+b.$extract_passthroughs((k=Ne["~"])===E?E:k["$[]"](5))+"++";if(K(P=(k=Ne["~"])===E?E:k["$[]"](2))){if(K(st(he=((k=Ne["~"])===E?E:k["$[]"](3)).$length(),0)))return""+((k=Ne["~"])===E?E:k["$[]"](1))+"["+P+"]"+N(we("RS"),Je(he,1))+D+((k=Ne["~"])===E?E:k["$[]"](5))+D;Ke((k=Ne["~"])===E?E:k["$[]"](1),we("RS"))?le="["+P+"]":Ke(D,"++")?Ke(P,"x-")?(Se=!0,Be=W([],{})):K(P["$end_with?"](" x-"))?(Se=!0,Be=b.$parse_quoted_text_attributes(P.$slice(0,Je(P.$length(),3)))):Be=b.$parse_quoted_text_attributes(P):Be=b.$parse_quoted_text_attributes(P)}else if(K(st(he=((k=Ne["~"])===E?E:k["$[]"](3)).$length(),0)))return""+N(we("RS"),Je(he,1))+D+((k=Ne["~"])===E?E:k["$[]"](5))+D;Xe=Ke(D,"+++")?[]:we("BASIC_SUBS"),K(Be)?K(Se)?H["$[]="](it=H.$size(),W(["text","subs","type","attributes"],{text:(k=Ne["~"])===E?E:k["$[]"](5),subs:we("NORMAL_SUBS"),type:"monospaced",attributes:Be})):H["$[]="](it=H.$size(),W(["text","subs","type","attributes"],{text:(k=Ne["~"])===E?E:k["$[]"](5),subs:Xe,type:"unquoted",attributes:Be})):H["$[]="](it=H.$size(),W(["text","subs"],{text:(k=Ne["~"])===E?E:k["$[]"](5),subs:Xe}))}else{if(Ke((k=Ne["~"])===E?E:k["$[]"](6),we("RS")))return((k=Ne["~"])===E?E:k["$[]"](0)).$slice(1,((k=Ne["~"])===E?E:k["$[]"](0)).$length());K(Xe=(k=Ne["~"])===E?E:k["$[]"](7))?H["$[]="](it=H.$size(),W(["text","subs"],{text:b.$normalize_text((k=Ne["~"])===E?E:k["$[]"](8),E,!0),subs:b.$resolve_pass_subs(Xe)})):H["$[]="](it=H.$size(),W(["text"],{text:b.$normalize_text((k=Ne["~"])===E?E:k["$[]"](8),E,!0)}))}return""+(K(_t=le)?_t:"")+we("PASS_START")+it+we("PASS_END")},{$$s:te})),ie=we("InlinePassRx")["$[]"](fe),q=De(ie),g=q[0]==null?E:q[0],u=q[1]==null?E:q[1],m=q[2]==null?E:q[2],(K(B["$include?"](g))||K(u)&&K(B["$include?"](u)))&&(B=qe(B,"gsub",[m],function R(){var k,b=R.$$s==null?this:R.$$s,D=E,P=E,he=E,le=E,Se=E,Be=E,Xe=E,it=E,_t=E,at=E,vt=E,St=E;if(D=(k=Ne["~"])===E?E:k["$[]"](1),P=K(he=(k=Ne["~"])===E?E:k["$[]"](4))?he:(k=Ne["~"])===E?E:k["$[]"](3),K((k=Ne["~"])===E?E:k["$[]"](5))&&(le=!0),Se=(k=Ne["~"])===E?E:k["$[]"](6),Be=(k=Ne["~"])===E?E:k["$[]"](7),Xe=(k=Ne["~"])===E?E:k["$[]"](8),K(fe)?it=!0:K(P)&&(Ke(P,"x-")||K(P["$end_with?"](" x-")))&&(it=_t=!0),K(P)){if(K(le))return""+D+"["+P+"]"+Se.$slice(1,Se.$length());if(Ke(D,we("RS"))){if(K(_t)&&Ke(Be,"`"))return""+D+"["+P+"]"+Se;D="["+P+"]"}else K(_t)?at=Ke(P,"x-")?W([],{}):b.$parse_quoted_text_attributes(P.$slice(0,Je(P.$length(),3))):at=b.$parse_quoted_text_attributes(P)}else{if(K(le))return""+D+Se.$slice(1,Se.$length());if(K(fe)&&Ke(D,we("RS")))return Se}return K(fe)?H["$[]="](vt=H.$size(),W(["text","subs","attributes","type"],{text:Xe,subs:we("BASIC_SUBS"),attributes:at,type:"monospaced"})):K(at)?K(it)?(St=Ke(Be,"`")?we("BASIC_SUBS"):we("NORMAL_SUBS"),H["$[]="](vt=H.$size(),W(["text","subs","attributes","type"],{text:Xe,subs:St,attributes:at,type:"monospaced"}))):H["$[]="](vt=H.$size(),W(["text","subs","attributes","type"],{text:Xe,subs:we("BASIC_SUBS"),attributes:at,type:"unquoted"})):H["$[]="](vt=H.$size(),W(["text","subs"],{text:Xe,subs:we("BASIC_SUBS")})),""+D+we("PASS_START")+vt+we("PASS_END")},{$$s:te})),K(B["$include?"](":"))&&(K(B["$include?"]("stem:"))||K(B["$include?"]("math:")))&&(B=qe(B,"gsub",[we("InlineStemMacroRx")],function R(){var k,b=R.$$s==null?this:R.$$s,D=E,P=E,he=E,le=E;return b.document==null&&(b.document=E),K(((k=Ne["~"])===E?E:k["$[]"](0))["$start_with?"](we("RS")))?((k=Ne["~"])===E?E:k["$[]"](0)).$slice(1,((k=Ne["~"])===E?E:k["$[]"](0)).$length()):(Ke(D=((k=Ne["~"])===E?E:k["$[]"](1)).$to_sym(),"stem")&&(D=we("STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym()),P=(k=Ne["~"])===E?E:k["$[]"](2),he=b.$normalize_text((k=Ne["~"])===E?E:k["$[]"](3),E,!0),Ke(D,"latexmath")&&K(he["$start_with?"]("$"))&&K(he["$end_with?"]("$"))&&(he=he.$slice(1,Je(he.$length(),2))),P=K(P)?b.$resolve_pass_subs(P):K(b.document["$basebackend?"]("html"))?we("BASIC_SUBS"):E,H["$[]="](le=H.$size(),W(["text","subs","type"],{text:he,subs:P,type:D})),""+we("PASS_START")+le+we("PASS_END"))},{$$s:te})),B}),T(Re,"$restore_passthroughs",function(B){var q=this,ie=E;return q.passthroughs==null&&(q.passthroughs=E),ie=q.passthroughs,qe(B,"gsub",[we("PassSlotRx")],function te(){var fe,H=te.$$s==null?this:te.$$s,g=E,u=E,m=E,R=E,k=E;return K(g=ie["$[]"](((fe=Ne["~"])===E?E:fe["$[]"](1)).$to_i()))?(u=H.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),K(m=g["$[]"]("type"))&&(K(R=g["$[]"]("attributes"))&&(k=R["$[]"]("id")),u=we("Inline").$new(H,"quoted",u,W(["type","id","attributes"],{type:m,id:k,attributes:R})).$convert()),K(u["$include?"](we("PASS_START")))?H.$restore_passthroughs(u):u):(H.$logger().$error("unresolved passthrough detected: "+B),"??pass??")},{$$s:q})}),T(Re,"$resolve_subs",function(B,q,ie,te){var fe=this,H=E,g=E,u=E,m=E;return q==null&&(q="block"),ie==null&&(ie=E),te==null&&(te=E),K(B["$nil_or_empty?"]())||(H=E,K(B["$include?"](" "))&&(B=B.$delete(" ")),g=we("SubModifierSniffRx")["$match?"](B),qe(B.$split(","),"each",[],function(k){var b=E,D=E,P=E,he=E,le=E,Se=E;if(k==null&&(k=E),b=E,K(g)&&(Ke(D=k.$chr(),"+")?(b="append",k=k.$slice(1,k.$length())):Ke(D,"-")?(b="remove",k=k.$slice(1,k.$length())):K(k["$end_with?"]("+"))&&(b="prepend",k=k.$chop())),k=k.$to_sym(),Ke(q,"inline")&&(Ke(k,"verbatim")||Ke(k,"v"))?P=we("BASIC_SUBS"):K(we("SUB_GROUPS")["$key?"](k))?P=we("SUB_GROUPS")["$[]"](k):Ke(q,"inline")&&Ke(k.$length(),1)&&K(we("SUB_HINTS")["$key?"](k))?(he=we("SUB_HINTS")["$[]"](k),K(le=we("SUB_GROUPS")["$[]"](he))?P=le:P=[he]):P=[k],K(b))switch(H=K(Se=H)?Se:K(ie)?ie.$drop(0):[],b){case"append":return H=v(H,P);case"prepend":return H=v(P,H);case"remove":return H=Je(H,P);default:return E}else return H=K(Se=H)?Se:[],H=v(H,P)}),!K(H))?E:(u=H["$&"](we("SUB_OPTIONS")["$[]"](q)),K(Je(H,u)["$empty?"]())||(m=Je(H,u),fe.$logger().$warn("invalid substitution type"+(K(st(m.$size(),1))?"s":"")+(K(te)?" for ":"")+te+": "+m.$join(", "))),u)},-2),T(Re,"$resolve_block_subs",function(B,q,ie){var te=this;return te.$resolve_subs(B,"block",q,ie)}),T(Re,"$resolve_pass_subs",function(B){var q=this;return q.$resolve_subs(B,"inline",E,"passthrough macro")}),T(Re,"$expand_subs",function(B,q){var ie=this,te=E,fe=E,H=E;return q==null&&(q=E),We(rt("Symbol"),te=B)?Ke(B,"none")?E:K(fe=we("SUB_GROUPS")["$[]"](B))?fe:[B]:We(rt("Array"),te)?(H=[],qe(B,"each",[],function(u){var m=E;return u==null&&(u=E),Ke(u,"none")?E:K(m=we("SUB_GROUPS")["$[]"](u))?H=v(H,m):H["$<<"](u)}),K(H["$empty?"]())?E:H):ie.$resolve_subs(B,"inline",E,q)},-2),T(Re,"$commit_subs",function(){var B=this,q=E,ie=E,te=E,fe=E,H=E;if(B.default_subs==null&&(B.default_subs=E),B.content_model==null&&(B.content_model=E),B.context==null&&(B.context=E),B.subs==null&&(B.subs=E),B.attributes==null&&(B.attributes=E),B.document==null&&(B.document=E),B.style==null&&(B.style=E),!K(q=B.default_subs))switch(B.content_model){case"simple":q=we("NORMAL_SUBS");break;case"verbatim":q=Ke(B.context,"verse")?we("NORMAL_SUBS"):we("VERBATIM_SUBS");break;case"raw":q=Ke(B.context,"stem")?we("BASIC_SUBS"):we("NO_SUBS");break;default:return B.subs}return K(ie=B.attributes["$[]"]("subs"))?B.subs=K(te=B.$resolve_block_subs(ie,q,B.context))?te:[]:B.subs=q.$drop(0),Ke(B.context,"listing")&&Ke(B.style,"source")&&K(H=B.document.$syntax_highlighter())&&K(H["$highlight?"]())&&K(fe=B.subs.$index("specialcharacters"))&&B.subs["$[]="](fe,"highlight"),E}),T(Re,"$parse_attributes",function(B,q,ie){var te=this,fe=E,H=E;return te.document==null&&(te.document=E),q==null&&(q=[]),ie==null&&(ie=W([],{})),K(K(B)?B["$empty?"]():!0)?W([],{}):(K(ie["$[]"]("unescape_input"))&&(B=te.$normalize_text(B,!0,!0)),K(ie["$[]"]("sub_input"))&&K(B["$include?"](we("ATTR_REF_HEAD")))&&(B=te.document.$sub_attributes(B)),K(ie["$[]"]("sub_result"))&&(fe=te),K(H=ie["$[]"]("into"))?we("AttributeList").$new(B,fe).$parse_into(H,q):we("AttributeList").$new(B,fe).$parse(q))},-2),Re.$private(),T(Re,"$extract_attributes_from_text",function(B,q){var ie=this,te=E,fe=E,H=E;return q==null&&(q=E),te=K(B["$include?"](we("LF")))?B.$tr(we("LF")," "):B,K(fe=(H=we("AttributeList").$new(te,ie).$parse())["$[]"](1))?Ke(fe,te)?[B,H.$clear()]:[fe,H]:[q,H]},-2),T(Re,"$extract_callouts",function(B){var q=this,ie=E,te=E,fe=E,H=E,g=E;return ie=W([],{}),te=fe=0,H=E,g=K(q["$attr?"]("line-comment"))?we("CalloutExtractRxMap")["$[]"](q.$attr("line-comment")):we("CalloutExtractRx"),B=qe(B.$split(we("LF"),-1),"map",[],function(m){return m==null&&(m=E),fe=v(fe,1),qe(m,"gsub",[g],function(){var k,b=E;return K((k=Ne["~"])===E?E:k["$[]"](2))?((k=Ne["~"])===E?E:k["$[]"](0)).$sub(we("RS"),""):((K(b=ie["$[]"](fe))?b:(k=[fe,[]],qe(ie,"[]=",k),k[k.length-1]))["$<<"]([K(b=(k=Ne["~"])===E?E:k["$[]"](1))?b:Ke((k=Ne["~"])===E?E:k["$[]"](3),"--")?["<!--","-->"]:E,Ke((k=Ne["~"])===E?E:k["$[]"](4),".")?(te=v(te,1)).$to_s():(k=Ne["~"])===E?E:k["$[]"](4)]),H=fe,"")})}).$join(we("LF")),K(H)?Ke(H,fe)&&(B=""+B+we("LF")):ie=E,[B,ie]}),T(Re,"$restore_callouts",function(B,q,ie){var te=this,fe=E,H=E;return ie==null&&(ie=E),K(ie)?(fe=B.$slice(0,ie),B=B.$slice(ie,B.$length())):fe="",H=0,v(fe,qe(B.$split(we("LF"),-1),"map",[],function g(u){var m,R,k=g.$$s==null?this:g.$$s,b=E,D=E,P=E;return k.document==null&&(k.document=E),u==null&&(u=E),K(b=q.$delete(H=v(H,1)))?Ke(b.$size(),1)?(R=b["$[]"](0),m=De(R),D=m[0]==null?E:m[0],P=m[1]==null?E:m[1],""+u+we("Inline").$new(k,"callout",P,W(["id","attributes"],{id:k.document.$callouts().$read_next_id(),attributes:W(["guard"],{guard:D})})).$convert()):""+u+qe(b,"map",[],function he(le,Se){var Be=he.$$s==null?this:he.$$s;return Be.document==null&&(Be.document=E),le==null&&(le=E),Se==null&&(Se=E),we("Inline").$new(Be,"callout",Se,W(["id","attributes"],{id:Be.document.$callouts().$read_next_id(),attributes:W(["guard"],{guard:le})})).$convert()},{$$s:k}).$join(" "):u},{$$s:te}).$join(we("LF")))},-3),T(Re,"$convert_quoted_text",function(B,q,ie){var te=this,fe=E,H=E,g=E,u=E,m=E;if(K(B["$[]"](0)["$start_with?"](we("RS"))))if(Ke(ie,"constrained")&&K(fe=B["$[]"](2)))H="["+fe+"]";else return B["$[]"](0).$slice(1,B["$[]"](0).$length());return Ke(ie,"constrained")?K(H)?""+H+we("Inline").$new(te,"quoted",B["$[]"](3),W(["type"],{type:q})).$convert():(K(g=B["$[]"](2))&&(u=(m=te.$parse_quoted_text_attributes(g))["$[]"]("id"),Ke(q,"mark")&&(q="unquoted")),""+B["$[]"](1)+we("Inline").$new(te,"quoted",B["$[]"](3),W(["type","id","attributes"],{type:q,id:u,attributes:m})).$convert()):(K(g=B["$[]"](1))&&(u=(m=te.$parse_quoted_text_attributes(g))["$[]"]("id"),Ke(q,"mark")&&(q="unquoted")),we("Inline").$new(te,"quoted",B["$[]"](2),W(["type","id","attributes"],{type:q,id:u,attributes:m})).$convert())}),T(Re,"$do_replacement",function(B,q,ie){var te=E;if(K((te=B["$[]"](0))["$include?"](we("RS"))))return te.$sub(we("RS"),"");switch(ie){case"none":return q;case"bounding":return v(v(B["$[]"](1),q),B["$[]"](2));default:return v(B["$[]"](1),q)}}),T(Re,"$parse_quoted_text_attributes",function(B){var q,ie,te=this,fe=E,H=E,g=E,u=E,m=E;return K(B["$include?"](we("ATTR_REF_HEAD")))&&(B=te.$sub_attributes(B)),K(B["$include?"](","))&&(B=B.$slice(0,B.$index(","))),K((B=B.$strip())["$empty?"]())?W([],{}):K(B["$start_with?"](".","#"))&&K(we("Compliance").$shorthand_property_syntax())?(ie=B.$partition("#"),q=De(ie),fe=q[0]==null?E:q[0],q[1]==null||q[1],H=q[2]==null?E:q[2],g=W([],{}),K(H["$empty?"]())?K(st(fe.$length(),1))&&g["$[]="]("role",fe.$tr("."," ").$lstrip()):(ie=H.$partition("."),q=De(ie),u=q[0]==null?E:q[0],q[1]==null||q[1],m=q[2]==null?E:q[2],K(u["$empty?"]())||g["$[]="]("id",u),K(m["$empty?"]())?K(st(fe.$length(),1))&&g["$[]="]("role",fe.$tr("."," ").$lstrip()):K(st(fe.$length(),1))?g["$[]="]("role",v(v(fe,"."),m).$tr("."," ").$lstrip()):g["$[]="]("role",m.$tr("."," "))),g):W(["role"],{role:B})}),T(Re,"$normalize_text",function(B,q,ie){return q==null&&(q=E),ie==null&&(ie=E),K(B["$empty?"]())||(K(q)&&(B=B.$strip().$tr(we("LF")," ")),K(ie)&&K(B["$include?"](we("R_SB")))&&(B=B.$gsub(we("ESC_R_SB"),we("R_SB")))),B},-2),T(Re,"$split_simple_csv",function(B){var q=E,ie=E,te=E;return K(B["$empty?"]())?[]:K(B["$include?"]('"'))?(q=[],ie="",te=E,qe(B,"each_char",[],function(H){switch(H==null&&(H=E),H){case",":return K(te)?ie=v(ie,H):(q["$<<"](ie.$strip()),ie="");case'"':return te=te["$!"]();default:return ie=v(ie,H)}}),q["$<<"](ie.$strip())):qe(B.$split(","),"map",[],function(H){return H==null&&(H=E),H.$strip()})})}(He[0],He)}(tt[0],tt)},Opal.modules["asciidoctor/version"]=function(a){var ae=a.module,re=a.const_set,W=[];return a.nil,function(me,v){var G=ae(me,"Asciidoctor"),Ue=[G].concat(v);return re(Ue[0],"VERSION","2.0.20")}(W[0],W)},Opal.modules["asciidoctor/abstract_node"]=function(a){var ae=a.module,re=a.klass,W=a.hash2,me=a.eqeq,v=a.truthy,G=a.def,Ue=a.send,K=a.rb_minus,qe=a.eqeqeq,T=a.rb_lt,Oe=a.not,Ne=a.to_ary,Ke=[],De=a.nil,Pe=a.$$$;return a.add_stubs("include,attr_reader,attr_accessor,==,document,to_s,[],merge,raise,converter,attributes,key?,[]=,delete,tap,new,each_key,end_with?,<<,slice,-,length,update,split,include?,===,join,empty?,apply_reftext_subs,attr?,attr,extname?,image_uri,<,safe,normalize_web_path,uriish?,encode_spaces_in_uri,generate_data_uri_from_uri,generate_data_uri,extname,normalize_system_path,readable?,strict_encode64,binread,warn,logger,require_library,!,open_uri,content_type,read,base_dir,root?,path_resolver,system_path,web_path,!=,prepare_source_string,fetch,read_asset"),function(pt,We){var st=ae(pt,"Asciidoctor"),Ye=[st].concat(We);return function(Je,ht,N){var tt=re(Je,ht,"AbstractNode"),E=[tt].concat(N),rt=a.$r(E),ot=tt.$$prototype;return ot.document=ot.attributes=ot.parent=De,tt.$include(rt("Logging")),tt.$include(rt("Substitutors")),tt.$attr_reader("attributes"),tt.$attr_reader("context"),tt.$attr_reader("document"),tt.$attr_accessor("id"),tt.$attr_reader("node_name"),tt.$attr_reader("parent"),G(tt,"$initialize",function(M,He,ke){var Ie=this,Re=De;return ke==null&&(ke=W([],{})),me(He,"document")?Ie.document=Ie:v(M)&&(Ie.document=(Ie.parent=M).$document()),Ie.node_name=(Ie.context=He).$to_s(),Ie.attributes=v(Re=ke["$[]"]("attributes"))?Re.$merge():W([],{}),Ie.passthroughs=[]},-3),G(tt,"$block?",function(){var M=this;return M.$raise(Pe("NotImplementedError"))}),G(tt,"$inline?",function(){var M=this;return M.$raise(Pe("NotImplementedError"))}),G(tt,"$converter",function(){var M=this;return M.document.$converter()}),G(tt,"$parent=",function(M){var He,ke=this;return He=[M,M.$document()],ke.parent=He[0],ke.document=He[1],He}),G(tt,"$attr",function(M,He,ke){var Ie=this,Re=De,oe=De,we=De,J=De;return He==null&&(He=De),ke==null&&(ke=De),v(Re=Ie.attributes["$[]"](M.$to_s()))?Re:v(oe=v(we=v(J=ke)?Ie.parent:J)?Ie.document.$attributes()["$[]"]((me(ke,!0)?M:ke).$to_s()):we)?oe:He},-2),G(tt,"$attr?",function(M,He,ke){var Ie=this,Re=De;return He==null&&(He=De),ke==null&&(ke=De),v(He)?He["$=="](v(Re=Ie.attributes["$[]"](M.$to_s()))?Re:v(ke)&&v(Ie.parent)?Ie.document.$attributes()["$[]"]((me(ke,!0)?M:ke).$to_s()):De):v(Re=Ie.attributes["$key?"](M.$to_s()))?Re:v(ke)&&v(Ie.parent)?Ie.document.$attributes()["$key?"]((me(ke,!0)?M:ke).$to_s()):!1},-2),G(tt,"$set_attr",function(M,He,ke){var Ie=this;return He==null&&(He=""),ke==null&&(ke=!0),me(ke,!1)&&v(Ie.attributes["$key?"](M))?!1:(Ie.attributes["$[]="](M,He),!0)},-2),G(tt,"$remove_attr",function(M){var He=this;return He.attributes.$delete(M)}),G(tt,"$option?",function(M){var He=this;return!!v(He.attributes["$[]"](""+M+"-option"))}),G(tt,"$set_option",function(M){var He=this;return He.attributes["$[]="](""+M+"-option",""),De}),G(tt,"$enabled_options",function(){var M=this;return Ue(Pe("Set").$new(),"tap",[],function He(ke){var Ie=He.$$s==null?this:He.$$s;return Ie.attributes==null&&(Ie.attributes=De),ke==null&&(ke=De),Ue(Ie.attributes,"each_key",[],function(oe){return oe==null&&(oe=De),v(oe.$to_s()["$end_with?"]("-option"))?ke["$<<"](oe.$slice(0,K(oe.$length(),7))):De})},{$$s:M})}),G(tt,"$update_attributes",function(M){var He=this;return He.attributes.$update(M)}),G(tt,"$role",function(){var M=this;return M.attributes["$[]"]("role")}),G(tt,"$roles",function(){var M=this,He=De;return v(He=M.attributes["$[]"]("role"))?He.$split():[]}),G(tt,"$role?",function(M){var He=this;return M==null&&(M=De),v(M)?M["$=="](He.attributes["$[]"]("role")):He.attributes["$key?"]("role")},-1),G(tt,"$has_role?",function(M){var He=this,ke=De;return v(ke=He.attributes["$[]"]("role"))?(" "+ke+" ")["$include?"](" "+M+" "):!1}),G(tt,"$role=",function(M){var He,ke=this;return He=["role",qe(Pe("Array"),M)?M.$join(" "):M],Ue(ke.attributes,"[]=",He),He[He.length-1]}),G(tt,"$add_role",function(M){var He=this,ke=De;return v(ke=He.attributes["$[]"]("role"))?v((" "+ke+" ")["$include?"](" "+M+" "))?!1:(He.attributes["$[]="]("role",""+ke+" "+M),!0):(He.attributes["$[]="]("role",M),!0)}),G(tt,"$remove_role",function(M){var He=this,ke=De;return v(ke=He.attributes["$[]"]("role"))&&v((ke=ke.$split()).$delete(M))?(v(ke["$empty?"]())?He.attributes.$delete("role"):He.attributes["$[]="]("role",ke.$join(" ")),!0):!1}),G(tt,"$reftext",function(){var M=this,He=De;return v(He=M.attributes["$[]"]("reftext"))?M.$apply_reftext_subs(He):De}),G(tt,"$reftext?",function(){var M=this;return M.attributes["$key?"]("reftext")}),G(tt,"$icon_uri",function(M){var He=this,ke=De;return v(He["$attr?"]("icon"))?(ke=He.$attr("icon"),v(rt("Helpers")["$extname?"](ke))||(ke=""+ke+"."+He.document.$attr("icontype","png"))):ke=""+M+"."+He.document.$attr("icontype","png"),He.$image_uri(ke,"iconsdir")}),G(tt,"$image_uri",function(M,He){var ke=this,Ie=De,Re=De;return He==null&&(He="imagesdir"),v(T((Ie=ke.document).$safe(),Pe(rt("SafeMode"),"SECURE")))&&v(Ie["$attr?"]("data-uri"))?v(rt("Helpers")["$uriish?"](M))&&v(M=rt("Helpers").$encode_spaces_in_uri(M))||v(He)&&v(Re=Ie.$attr(He))&&v(rt("Helpers")["$uriish?"](Re))&&v(M=ke.$normalize_web_path(M,Re,!1))?v(Ie["$attr?"]("allow-uri-read"))?ke.$generate_data_uri_from_uri(M,Ie["$attr?"]("cache-uri")):M:ke.$generate_data_uri(M,He):ke.$normalize_web_path(M,v(He)?Ie.$attr(He):De)},-2),G(tt,"$media_uri",function(M,He){var ke=this;return He==null&&(He="imagesdir"),ke.$normalize_web_path(M,v(He)?ke.document.$attr(He):De)},-2),G(tt,"$generate_data_uri",function(M,He){var ke=this,Ie=De,Re=De,oe=De;return He==null&&(He=De),v(Ie=rt("Helpers").$extname(M,De))?Re=me(Ie,".svg")?"image/svg+xml":"image/"+Ie.$slice(1,Ie.$length()):Re="application/octet-stream",v(He)?oe=ke.$normalize_system_path(M,ke.document.$attr(He),De,W(["target_name"],{target_name:"image"})):oe=ke.$normalize_system_path(M),v(Pe("File")["$readable?"](oe))?"data:"+Re+";base64,"+Pe("Base64").$strict_encode64(Pe("File").$binread(oe)):(ke.$logger().$warn("image to embed not found or not readable: "+oe),"data:"+Re+";base64,")},-2),G(tt,"$generate_data_uri_from_uri",function(M,He){var ke,Ie,Re=this,oe=De,we=De;He==null&&(He=!1),v(He)?rt("Helpers").$require_library("open-uri/cached","open-uri-cached"):Oe(rt("RUBY_ENGINE_OPAL"))&&Pe("OpenURI");try{return Ie=Ue(Pe("OpenURI"),"open_uri",[M,rt("URI_READ_MODE")],function(B){return B==null&&(B=De),[B.$content_type(),B.$read()]}),ke=Ne(Ie),oe=ke[0]==null?De:ke[0],we=ke[1]==null?De:ke[1],"data:"+oe+";base64,"+Pe("Base64").$strict_encode64(we)}catch(J){if(a.rescue(J,[rt("StandardError")]))try{return Re.$logger().$warn("could not retrieve image data from URI: "+M),M}finally{a.pop_exception()}else throw J}},-2),G(tt,"$normalize_asset_path",function(M,He,ke){var Ie=this;return He==null&&(He="path"),ke==null&&(ke=!0),Ie.$normalize_system_path(M,Ie.document.$base_dir(),De,W(["target_name","recover"],{target_name:He,recover:ke}))},-2),G(tt,"$normalize_system_path",function(M,He,ke,Ie){var Re=this,oe=De,we=De;return He==null&&(He=De),ke==null&&(ke=De),Ie==null&&(Ie=W([],{})),v(T((oe=Re.document).$safe(),Pe(rt("SafeMode"),"SAFE")))?v(He)?v(oe.$path_resolver()["$root?"](He))||(He=Pe("File").$join(oe.$base_dir(),He)):He=oe.$base_dir():(He=v(we=He)?we:oe.$base_dir(),ke=v(we=ke)?we:oe.$base_dir()),oe.$path_resolver().$system_path(M,He,ke,Ie)},-2),G(tt,"$normalize_web_path",function(M,He,ke){var Ie=this;return He==null&&(He=De),ke==null&&(ke=!0),v(ke)&&v(rt("Helpers")["$uriish?"](M))?rt("Helpers").$encode_spaces_in_uri(M):Ie.document.$path_resolver().$web_path(M,He)},-2),G(tt,"$read_asset",function(M,He){var ke=this,Ie=De;return He==null&&(He=W([],{})),qe(Pe("Hash"),He)||(He=W(["warn_on_failure"],{warn_on_failure:He["$!="](!1)})),v(Pe("File")["$readable?"](M))?v(He["$[]"]("normalize"))?rt("Helpers").$prepare_source_string(Pe("File").$read(M,W(["mode"],{mode:rt("FILE_READ_MODE")}))).$join(rt("LF")):Pe("File").$read(M,W(["mode"],{mode:rt("FILE_READ_MODE")})):(v(He["$[]"]("warn_on_failure"))&&ke.$logger().$warn(""+(v(Ie=ke.$attr("docfile"))?Ie:"<stdin>")+": "+(v(Ie=He["$[]"]("label"))?Ie:"file")+" does not exist or cannot be read: "+M),De)},-2),G(tt,"$read_contents",function(M,He){var ke=this,Ie=De,Re=De,oe=De,we=De;if(He==null&&(He=W([],{})),Ie=ke.document,v(rt("Helpers")["$uriish?"](M))||v(Re=He["$[]"]("start"))&&v(rt("Helpers")["$uriish?"](Re))&&v(M=Ie.$path_resolver().$web_path(M,Re)))if(v(Ie["$attr?"]("allow-uri-read"))){v(Ie["$attr?"]("cache-uri"))&&rt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{v(He["$[]"]("normalize"))?oe=rt("Helpers").$prepare_source_string(Ue(Pe("OpenURI"),"open_uri",[M,rt("URI_READ_MODE")],function(B){return B==null&&(B=De),B.$read()})).$join(rt("LF")):oe=Ue(Pe("OpenURI"),"open_uri",[M,rt("URI_READ_MODE")],function(B){return B==null&&(B=De),B.$read()})}catch(J){if(a.rescue(J,[rt("StandardError")]))try{v(He.$fetch("warn_on_failure",!0))&&ke.$logger().$warn("could not retrieve contents of "+(v(we=He["$[]"]("label"))?we:"asset")+" at URI: "+M)}finally{a.pop_exception()}else throw J}}else v(He.$fetch("warn_on_failure",!0))&&ke.$logger().$warn("cannot retrieve contents of "+(v(we=He["$[]"]("label"))?we:"asset")+" at URI: "+M+" (allow-uri-read attribute not enabled)");else M=ke.$normalize_system_path(M,He["$[]"]("start"),De,W(["target_name"],{target_name:v(we=He["$[]"]("label"))?we:"asset"})),oe=ke.$read_asset(M,W(["normalize","warn_on_failure","label"],{normalize:He["$[]"]("normalize"),warn_on_failure:He.$fetch("warn_on_failure",!0),label:He["$[]"]("label")}));return v(oe)&&v(He["$[]"]("warn_if_empty"))&&v(oe["$empty?"]())&&ke.$logger().$warn("contents of "+(v(we=He["$[]"]("label"))?we:"asset")+" is empty: "+M),oe},-2),G(tt,"$is_uri?",function(M){return rt("Helpers")["$uriish?"](M)})}(Ye[0],null,Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/abstract_block"]=function(a){var ae=a.module,re=a.klass,W=a.hash2,me=a.send2,v=a.find_super,G=a.eqeq,Ue=a.eqeqeq,K=a.def,qe=a.return_val,T=a.truthy,Oe=a.alias,Ne=a.send,Ke=a.rb_plus,De=a.not,Pe=a.neqeq,pt=[],We=a.nil,st=a.$$$;return a.add_stubs("attr_reader,attr_writer,attr_accessor,==,===,level,file,lineno,playback_attributes,convert,converter,join,map,to_s,parent,parent=,<<,empty?,Integer,find_by_internal,to_proc,find_by,context,[],items,+,find_index,include?,next_adjacent_block,blocks,select,sub_specialchars,match?,sub_replacements,title,apply_title_subs,delete,!,reftext,nil_or_empty?,sub_placeholder,sub_quotes,compat_mode,attributes,chomp,increment_and_store_counter,index=,numbered,sectname,numeral=,counter,caption=,numeral,int_to_roman,each,assign_numeral,reindex_sections,protected,has_role?,raise,header?,!=,flatten,head,rows,merge,body,foot,style,inner_document"),function(Ye,Je){var ht=ae(Ye,"Asciidoctor"),N=[ht].concat(Je),tt=a.$r(N);return function(E,rt,ot){var X=re(E,rt,"AbstractBlock"),M=[X].concat(ot),He=a.$r(M),ke=X.$$prototype;return ke.source_location=ke.document=ke.attributes=ke.blocks=ke.numeral=ke.context=ke.parent=ke.caption=ke.style=ke.converted_title=ke.title=ke.subs=ke.next_section_index=ke.next_section_ordinal=ke.id=ke.header=We,X.$attr_reader("blocks"),X.$attr_writer("caption"),X.$attr_accessor("content_model"),X.$attr_accessor("level"),X.$attr_accessor("numeral"),X.$attr_accessor("source_location"),X.$attr_accessor("style"),X.$attr_reader("subs"),K(X,"$initialize",function Ie(Re,oe,we){var J=Ie.$$p||We,B=this;return Ie.$$p=null,we==null&&(we=W([],{})),me(B,v(B,"initialize",Ie,!1,!0),"initialize",[Re,oe,we],J),B.content_model="compound",B.blocks=[],B.subs=[],B.id=B.title=B.caption=B.numeral=B.style=B.default_subs=B.source_location=We,G(oe,"document")||G(oe,"section")?(B.level=B.next_section_index=0,B.next_section_ordinal=1):Ue(He("AbstractBlock"),Re)?B.level=Re.$level():B.level=We},-3),K(X,"$block?",qe(!0)),K(X,"$inline?",qe(!1)),K(X,"$file",function(){var Re=this,oe=We;return T(oe=Re.source_location)?Re.source_location.$file():oe}),K(X,"$lineno",function(){var Re=this,oe=We;return T(oe=Re.source_location)?Re.source_location.$lineno():oe}),K(X,"$convert",function(){var Re=this;return Re.document.$playback_attributes(Re.attributes),Re.$converter().$convert(Re)}),Oe(X,"render","convert"),K(X,"$content",function(){var Re=this;return Ne(Re.blocks,"map",[],function(we){return we==null&&(we=We),we.$convert()}).$join(He("LF"))}),K(X,"$context=",function(Re){var oe=this;return oe.node_name=(oe.context=Re).$to_s()}),K(X,"$<<",function(Re){var oe=this;return G(Re.$parent(),oe)||Re["$parent="](oe),oe.blocks["$<<"](Re),oe}),Oe(X,"append","<<"),K(X,"$blocks?",function(){var Re=this;return!T(Re.blocks["$empty?"]())}),K(X,"$sections?",qe(!1)),K(X,"$number",function(){var Re=this;try{return Re.$Integer(Re.numeral)}catch(oe){if(a.rescue(oe,[He("StandardError")]))try{return Re.numeral}finally{a.pop_exception()}else throw oe}}),K(X,"$number=",function(Re){var oe=this;return oe.numeral=Re.$to_s()}),K(X,"$find_by",function Ie(Re){var oe=Ie.$$p||We,we=this,J=We;Ie.$$p=null,Re==null&&(Re=W([],{}));try{return Ne(we,"find_by_internal",[Re,J=[]],oe.$to_proc())}catch(B){if(a.rescue(B,[st("StopIteration")]))try{return J}finally{a.pop_exception()}else throw B}},-1),Oe(X,"query","find_by"),K(X,"$next_adjacent_block",function(){var Re=this,oe=We,we=We;return G(Re.context,"document")?We:G((oe=Re.parent).$context(),"dlist")&&G(Re.context,"list_item")?T(we=oe.$items()["$[]"](Ke(Ne(oe.$items(),"find_index",[],function J(B,q){var ie=J.$$s==null?this:J.$$s,te=We;return B==null&&(B=We),q==null&&(q=We),T(te=B["$include?"](ie))?te:q["$=="](ie)},{$$s:Re}),1)))?we:oe.$next_adjacent_block():T(we=oe.$blocks()["$[]"](Ke(oe.$blocks().$find_index(Re),1)))?we:oe.$next_adjacent_block()}),K(X,"$sections",function(){var Re=this;return Ne(Re.blocks,"select",[],function(we){return we==null&&(we=We),we.$context()["$=="]("section")})}),K(X,"$alt",function(){var Re=this,oe=We;return T(oe=Re.attributes["$[]"]("alt"))?G(oe,Re.attributes["$[]"]("default-alt"))?Re.$sub_specialchars(oe):(oe=Re.$sub_specialchars(oe),T(He("ReplaceableTextRx")["$match?"](oe))?Re.$sub_replacements(oe):oe):""}),K(X,"$caption",function(){var Re=this;return G(Re.context,"admonition")?Re.attributes["$[]"]("textlabel"):Re.caption}),K(X,"$captioned_title",function(){var Re=this;return""+Re.caption+Re.$title()}),K(X,"$list_marker_keyword",function(Re){var oe=this,we=We;return Re==null&&(Re=We),He("ORDERED_LIST_KEYWORDS")["$[]"](T(we=Re)?we:oe.style)},-1),K(X,"$title",function(){var Re=this,oe=We,we=We;return Re.converted_title=T(oe=Re.converted_title)?oe:T(we=Re.title)?Re.$apply_title_subs(Re.title):we}),K(X,"$title?",function(){var Re=this;return!!T(Re.title)}),K(X,"$title=",function(Re){var oe=this;return oe.converted_title=We,oe.title=Re}),K(X,"$sub?",function(Re){var oe=this;return oe.subs["$include?"](Re)}),K(X,"$remove_sub",function(Re){var oe=this;return oe.subs.$delete(Re),We}),K(X,"$xreftext",function(Re){var oe=this,we=We,J=We,B=We,q=We;if(Re==null&&(Re=We),T(we=oe.$reftext())&&De(we["$empty?"]()))return we;if(T(Re)&&T(oe.title)&&De(oe.caption["$nil_or_empty?"]()))switch(Re){case"full":return J=oe.$sub_placeholder(oe.$sub_quotes(T(oe.document.$compat_mode())?"``%s''":'"`%s`"'),oe.$title()),T(oe.numeral)&&T(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe.context))&&T(B=oe.document.$attributes()["$[]"](q))?""+B+" "+oe.numeral+", "+J:""+oe.caption.$chomp(". ")+", "+J;case"short":return T(oe.numeral)&&T(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe.context))&&T(B=oe.document.$attributes()["$[]"](q))?""+B+" "+oe.numeral:oe.caption.$chomp(". ");default:return oe.$title()}else return oe.$title()},-1),K(X,"$assign_caption",function(Re,oe){var we=this,J=We,B=We,q=We;return oe==null&&(oe=we.context),T(we.caption)||De(we.title)||T(we.caption=T(J=Re)?J:we.document.$attributes()["$[]"]("caption"))||T(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe))&&T(B=we.document.$attributes()["$[]"](q))&&(we.caption=""+B+" "+(we.numeral=we.document.$increment_and_store_counter(""+oe+"-number",we))+". "),We},-2),K(X,"$assign_numeral",function(Re){var oe,we=this,J=We,B=We,q=We;return we.next_section_index=Ke((oe=[we.next_section_index],Ne(Re,"index=",oe),oe[oe.length-1]),1),T(J=Re.$numbered())&&(G(B=Re.$sectname(),"appendix")?(Re["$numeral="](we.document.$counter("appendix-number","A")),Re["$caption="](T(q=we.document.$attributes()["$[]"]("appendix-caption"))?""+q+" "+Re.$numeral()+": ":""+Re.$numeral()+". ")):G(B,"chapter")||G(J,"chapter")?Re["$numeral="](we.document.$counter("chapter-number",1).$to_s()):(Re["$numeral="](G(B,"part")?He("Helpers").$int_to_roman(we.next_section_ordinal):we.next_section_ordinal.$to_s()),we.next_section_ordinal=Ke(we.next_section_ordinal,1))),We}),K(X,"$reindex_sections",function(){var Re=this;return Re.next_section_index=0,Re.next_section_ordinal=1,Ne(Re.blocks,"each",[],function oe(we){var J=oe.$$s==null?this:oe.$$s;return we==null&&(we=We),G(we.$context(),"section")?(J.$assign_numeral(we),we.$reindex_sections()):We},{$$s:Re})}),X.$protected(),K(X,"$find_by_internal",function Ie(Re,oe){var we=Ie.$$p||We,J=this,B=We,q=We,ie=We,te=We,fe=We,H=We;if(Ie.$$p=null,Re==null&&(Re=W([],{})),oe==null&&(oe=[]),(T(te=T(fe=Re["$[]"]("context"))?We:!0)||G(fe,J.context))&&(De(ie=Re["$[]"]("style"))||G(ie,J.style))&&(De(q=Re["$[]"]("role"))||T(J["$has_role?"](q)))&&(De(B=Re["$[]"]("id"))||G(B,J.id)))if(we!==We)if(T(H=a.yield1(we,J)))switch(H){case"prune":return oe["$<<"](J),T(B)&&J.$raise(st("StopIteration")),oe;case"reject":return T(B)&&J.$raise(st("StopIteration")),oe;case"stop":J.$raise(st("StopIteration"));break;default:oe["$<<"](J),T(B)&&J.$raise(st("StopIteration"))}else T(B)&&J.$raise(st("StopIteration"));else oe["$<<"](J),T(B)&&J.$raise(st("StopIteration"));switch(J.context){case"document":G(fe,"document")||(T(J["$header?"]())&&(T(te)||G(fe,"section"))&&Ne(J.header,"find_by_internal",[Re,oe],we.$to_proc()),Ne(J.blocks,"each",[],function(u){return u==null&&(u=We),G(fe,"section")&&Pe(u.$context(),"section")?We:Ne(u,"find_by_internal",[Re,oe],we.$to_proc())}));break;case"dlist":(T(te)||Pe(fe,"section"))&&Ne(J.blocks.$flatten(),"each",[],function(u){return u==null&&(u=We),T(u)?Ne(u,"find_by_internal",[Re,oe],we.$to_proc()):We});break;case"table":T(Re["$[]"]("traverse_documents"))?(Ne(J.$rows().$head(),"each",[],function(u){return u==null&&(u=We),Ne(u,"each",[],function(R){return R==null&&(R=We),Ne(R,"find_by_internal",[Re,oe],we.$to_proc())})}),G(fe,"inner_document")&&(Re=Re.$merge(W(["context"],{context:"document"}))),Ne(Ke(J.$rows().$body(),J.$rows().$foot()),"each",[],function(u){return u==null&&(u=We),Ne(u,"each",[],function(R){return R==null&&(R=We),Ne(R,"find_by_internal",[Re,oe],we.$to_proc()),G(R.$style(),"asciidoc")?Ne(R.$inner_document(),"find_by_internal",[Re,oe],we.$to_proc()):We})})):Ne(Ke(Ke(J.$rows().$head(),J.$rows().$body()),J.$rows().$foot()),"each",[],function(u){return u==null&&(u=We),Ne(u,"each",[],function(R){return R==null&&(R=We),Ne(R,"find_by_internal",[Re,oe],we.$to_proc())})});break;default:Ne(J.blocks,"each",[],function(u){return u==null&&(u=We),G(fe,"section")&&Pe(u.$context(),"section")?We:Ne(u,"find_by_internal",[Re,oe],we.$to_proc())})}return oe},-1)}(N[0],tt("AbstractNode"),N)}(pt[0],pt)},Opal.modules["asciidoctor/attribute_list"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.hash,v=a.regexp,G=a.hash2,Ue=a.def,K=a.truthy,qe=a.rb_plus,T=a.send,Oe=a.defs,Ne=a.eqeqeq,Ke=a.eqeq,De=a.rb_times,Pe=[],pt=a.nil,We=a.$$$;return a.add_stubs("new,[],update,parse,parse_attribute,eos?,skip_delimiter,+,rekey,each_with_index,[]=,private,skip_blank,===,peek,parse_attribute_value,get_byte,start_with?,scan_name,end_with?,rstrip,string,==,unscan,scan_to_delimiter,*,include?,delete,each,split,empty?,apply_subs,scan_to_quote,gsub,skip,scan"),function(st,Ye){var Je=ae(st,"Asciidoctor"),ht=[Je].concat(Ye);return function(N,tt,E){var rt=re(N,tt,"AttributeList"),ot=[rt].concat(E),X=a.$r(ot),M=rt.$$prototype;return M.attributes=M.scanner=M.delimiter=M.block=M.delimiter_skip_pattern=M.delimiter_boundary_pattern=pt,W(ot[0],"APOS","'"),W(ot[0],"BACKSLASH","\\"),W(ot[0],"QUOT",'"'),W(ot[0],"BoundaryRx",me(X("QUOT"),/.*?[^\\](?=")/,X("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),W(ot[0],"EscapedQuotes",me(X("QUOT"),'\\"',X("APOS"),"\\'")),W(ot[0],"NameRx",v([X("CG_WORD"),"[",X("CC_WORD"),"\\-.]*"])),W(ot[0],"BlankRx",/[ \t]+/),W(ot[0],"SkipRx",G([","],{",":/[ \t]*(,|$)/})),Ue(rt,"$initialize",function(ke,Ie,Re){var oe=this;return Ie==null&&(Ie=pt),Re==null&&(Re=","),oe.scanner=We("StringScanner").$new(ke),oe.block=Ie,oe.delimiter=Re,oe.delimiter_skip_pattern=X("SkipRx")["$[]"](Re),oe.delimiter_boundary_pattern=X("BoundaryRx")["$[]"](Re),oe.attributes=pt},-2),Ue(rt,"$parse_into",function(ke,Ie){var Re=this;return Ie==null&&(Ie=[]),ke.$update(Re.$parse(Ie))},-2),Ue(rt,"$parse",function(ke){var Ie=this,Re=pt;if(ke==null&&(ke=[]),K(Ie.attributes))return Ie.attributes;for(Ie.attributes=G([],{}),Re=0;K(Ie.$parse_attribute(Re,ke))&&!K(Ie.scanner["$eos?"]());)Ie.$skip_delimiter(),Re=qe(Re,1);return Ie.attributes},-1),Ue(rt,"$rekey",function(ke){var Ie=this;return X("AttributeList").$rekey(Ie.attributes,ke)}),Oe(rt,"$rekey",function(ke,Ie){return T(Ie,"each_with_index",[],function(oe,we){var J,B=pt;return oe==null&&(oe=pt),we==null&&(we=pt),K(oe)&&K(B=ke["$[]"](qe(we,1)))?(J=[oe,B],T(ke,"[]=",J),J[J.length-1]):pt}),ke}),rt.$private(),Ue(rt,"$parse_attribute",function(ke,Ie){var Re=this,oe=pt,we=pt,J=pt,B=pt,q=pt,ie=pt,te=pt,fe=pt,H=pt,g=pt;if(oe=!0,Re.$skip_blank(),Ne(X("QUOT"),we=Re.scanner.$peek(1)))J=Re.$parse_attribute_value(Re.scanner.$get_byte());else if(Ne(X("APOS"),we))J=Re.$parse_attribute_value(Re.scanner.$get_byte()),K(J["$start_with?"](X("APOS")))||(B=!0);else if(q=K(ie=K(te=J=Re.$scan_name())?Re.$skip_blank():te)?ie:0,K(Re.scanner["$eos?"]())){if(!(K(J)||K(Re.scanner.$string().$rstrip()["$end_with?"](Re.delimiter))))return pt;oe=pt}else if(Ke(fe=Re.scanner.$get_byte(),Re.delimiter))Re.scanner.$unscan();else if(K(J))if(Ke(fe,"=")){if(Re.$skip_blank(),Ne(X("QUOT"),ie=fe=Re.scanner.$get_byte()))H=Re.$parse_attribute_value(fe);else if(Ne(X("APOS"),ie))H=Re.$parse_attribute_value(fe),K(H["$start_with?"](X("APOS")))||(B=!0);else if(Ne(Re.delimiter,ie))H="",Re.scanner.$unscan();else if(Ne(pt,ie))H="";else if(H=""+fe+Re.$scan_to_delimiter(),Ke(H,"None"))return!0}else J=""+J+De(" ",q)+fe+Re.$scan_to_delimiter();else J=""+fe+Re.$scan_to_delimiter();if(K(H))switch(J){case"options":case"opts":K(H["$include?"](","))?(K(H["$include?"](" "))&&(H=H.$delete(" ")),T(H.$split(","),"each",[],function u(m){var R,k=u.$$s==null?this:u.$$s;return k.attributes==null&&(k.attributes=pt),m==null&&(m=pt),K(m["$empty?"]())?pt:(R=[""+m+"-option",""],T(k.attributes,"[]=",R),R[R.length-1])},{$$s:Re})):K(H["$empty?"]())||Re.attributes["$[]="](""+H+"-option","");break;default:if(K(B)&&K(Re.block))switch(J){case"title":case"reftext":Re.attributes["$[]="](J,H);break;default:Re.attributes["$[]="](J,Re.block.$apply_subs(H))}else Re.attributes["$[]="](J,H)}else K(B)&&K(Re.block)&&(J=Re.block.$apply_subs(J)),K(g=Ie["$[]"](ke))&&K(J)&&Re.attributes["$[]="](g,J),Re.attributes["$[]="](qe(ke,1),J);return oe}),Ue(rt,"$parse_attribute_value",function(ke){var Ie=this,Re=pt;return Ke(Ie.scanner.$peek(1),ke)?(Ie.scanner.$get_byte(),""):K(Re=Ie.$scan_to_quote(ke))?(Ie.scanner.$get_byte(),K(Re["$include?"](X("BACKSLASH")))?Re.$gsub(X("EscapedQuotes")["$[]"](ke),ke):Re):""+ke+Ie.$scan_to_delimiter()}),Ue(rt,"$skip_blank",function(){var ke=this;return ke.scanner.$skip(X("BlankRx"))}),Ue(rt,"$skip_delimiter",function(){var ke=this;return ke.scanner.$skip(ke.delimiter_skip_pattern)}),Ue(rt,"$scan_name",function(){var ke=this;return ke.scanner.$scan(X("NameRx"))}),Ue(rt,"$scan_to_delimiter",function(){var ke=this;return ke.scanner.$scan(ke.delimiter_boundary_pattern)}),Ue(rt,"$scan_to_quote",function(ke){var Ie=this;return Ie.scanner.$scan(X("BoundaryRx")["$[]"](ke))})}(ht[0],null,ht)}(Pe[0],Pe)},Opal.modules["asciidoctor/block"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.hash2,v=a.alias,G=a.send2,Ue=a.find_super,K=a.truthy,qe=a.eqeqeq,T=a.def,Oe=a.rb_lt,Ne=a.eqeq,Ke=[],De=a.nil,Pe=a.$$$;return a.add_stubs("default=,context,attr_accessor,[],key?,===,drop,delete,[]=,to_s,commit_subs,nil_or_empty?,prepare_source_string,apply_subs,join,<,size,empty?,rstrip,shift,pop,==,warn,logger,class,object_id,inspect"),function(pt,We){var st=ae(pt,"Asciidoctor"),Ye=[st].concat(We),Je=a.$r(Ye);return function(ht,N,tt){var E=re(ht,N,"Block"),rt=[E].concat(tt),ot=a.$r(rt),X=E.$$prototype;return X.attributes=X.content_model=X.lines=X.subs=X.blocks=X.context=X.style=De,W(rt[0],"DEFAULT_CONTENT_MODEL",me(["audio","image","listing","literal","stem","open","page_break","pass","thematic_break","video"],{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"}))["$default="]("simple"),v(E,"blockname","context"),E.$attr_accessor("lines"),T(E,"$initialize",function M(He,ke,Ie){var Re=M.$$p||De,oe=this,we=De,J=De,B=De;return M.$$p=null,Ie==null&&(Ie=me([],{})),G(oe,Ue(oe,"initialize",M,!1,!0),"initialize",[He,ke,Ie],Re),oe.content_model=K(we=Ie["$[]"]("content_model"))?we:ot("DEFAULT_CONTENT_MODEL")["$[]"](ke),K(Ie["$key?"]("subs"))?K(J=Ie["$[]"]("subs"))?(qe("default",we=J)?oe.default_subs=Ie["$[]"]("default_subs"):qe(Pe("Array"),we)?(oe.default_subs=J.$drop(0),oe.attributes.$delete("subs")):(oe.default_subs=De,oe.attributes["$[]="]("subs",J.$to_s())),oe.$commit_subs()):(oe.default_subs=[],oe.attributes.$delete("subs")):oe.default_subs=De,K((B=Ie["$[]"]("source"))["$nil_or_empty?"]())?oe.lines=[]:qe(Pe("String"),B)?oe.lines=ot("Helpers").$prepare_source_string(B):oe.lines=B.$drop(0)},-3),T(E,"$content",function M(){var He=M.$$p||De,ke=this,Ie=De,Re=De,oe=De,we=De;switch(M.$$p=null,ke.content_model){case"compound":return G(ke,Ue(ke,"content",M,!1,!0),"content",[],He);case"simple":return ke.$apply_subs(ke.lines.$join(ot("LF")),ke.subs);case"verbatim":case"raw":if(Ie=ke.$apply_subs(ke.lines,ke.subs),K(Oe(Ie.$size(),2)))return K(Re=Ie["$[]"](0))?Re:"";for(;K(K(Re=oe=Ie["$[]"](0))?oe.$rstrip()["$empty?"]():Re);)Ie.$shift();for(;K(K(Re=we=Ie["$[]"](-1))?we.$rstrip()["$empty?"]():Re);)Ie.$pop();return Ie.$join(ot("LF"));default:return Ne(ke.content_model,"empty")||ke.$logger().$warn("unknown content model '"+ke.content_model+"' for block: "+ke),De}}),T(E,"$source",function(){var He=this;return He.lines.$join(ot("LF"))}),T(E,"$to_s",function(){var He=this,ke=De;return ke=Ne(He.content_model,"compound")?"blocks: "+He.blocks.$size():"lines: "+He.lines.$size(),"#<"+He.$class()+"@"+He.$object_id()+" {context: "+He.context.$inspect()+", content_model: "+He.content_model.$inspect()+", style: "+He.style.$inspect()+", "+ke+"}>"})}(Ye[0],Je("AbstractBlock"),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/callouts"]=function(a){var ae=a.module,re=a.klass,W=a.def,me=a.hash2,v=a.rb_plus,G=a.truthy,Ue=a.rb_le,K=a.rb_minus,qe=a.send,T=a.eqeq,Oe=a.rb_lt,Ne=[],Ke=a.nil;return a.add_stubs("next_list,<<,current_list,to_i,generate_next_callout_id,+,<=,size,[],-,chop,join,map,==,<,private,generate_callout_id"),function(De,Pe){var pt=ae(De,"Asciidoctor"),We=[pt].concat(Pe);return function(st,Ye){var Je=re(st,Ye,"Callouts"),ht=Je.$$prototype;return ht.co_index=ht.lists=ht.list_index=Ke,W(Je,"$initialize",function(){var tt=this;return tt.lists=[],tt.list_index=0,tt.$next_list()}),W(Je,"$register",function(tt){var E=this,rt=Ke;return E.$current_list()["$<<"](me(["ordinal","id"],{ordinal:tt.$to_i(),id:rt=E.$generate_next_callout_id()})),E.co_index=v(E.co_index,1),rt}),W(Je,"$read_next_id",function(){var tt=this,E=Ke,rt=Ke;return E=Ke,rt=tt.$current_list(),G(Ue(tt.co_index,rt.$size()))&&(E=rt["$[]"](K(tt.co_index,1))["$[]"]("id")),tt.co_index=v(tt.co_index,1),E}),W(Je,"$callout_ids",function(tt){var E=this;return qe(E.$current_list(),"map",[],function(ot){return ot==null&&(ot=Ke),T(ot["$[]"]("ordinal"),tt)?""+ot["$[]"]("id")+" ":""}).$join().$chop()}),W(Je,"$current_list",function(){var tt=this;return tt.lists["$[]"](K(tt.list_index,1))}),W(Je,"$next_list",function(){var tt=this;return tt.list_index=v(tt.list_index,1),G(Oe(tt.lists.$size(),tt.list_index))&&tt.lists["$<<"]([]),tt.co_index=1,Ke}),W(Je,"$rewind",function(){var tt=this;return tt.list_index=1,tt.co_index=1,Ke}),Je.$private(),W(Je,"$generate_next_callout_id",function(){var tt=this;return tt.$generate_callout_id(tt.list_index,tt.co_index)}),W(Je,"$generate_callout_id",function(tt,E){return"CO"+tt+"-"+E})}(We[0],null)}(Ne[0],Ne)},Opal.modules["asciidoctor/converter/composite"]=function(a){var ae=a.module,re=a.klass,W=a.slice,me=a.extract_kwargs,v=a.ensure_kwargs,G=a.send,Ue=a.truthy,K=a.def,qe=a.thrower,T=[],Oe=a.nil,Ne=a.$$$;return a.add_stubs("attr_reader,each,respond_to?,composed,init_backend_traits,backend_traits,new,[]=,find_converter,convert,converter_for,node_name,[],handles?,raise"),function(Ke,De){var Pe=ae(Ke,"Asciidoctor"),pt=[Pe].concat(De),We=a.$r(pt);return function(st,Ye){var Je=re(st,Ye,"CompositeConverter"),ht=Je.$$prototype;return ht.converter_cache=ht.converters=Oe,Je.$attr_reader("converters"),K(Je,"$initialize",function(tt,E,rt){var ot,X,M,He,ke=this;return ot=W(arguments,1),X=me(ot),X=v(X),M=ot,He=X.$$smap.backend_traits_source,He==null&&(He=Oe),ke.backend=tt,G(ke.converters=M,"each",[],function Ie(Re){var oe=Ie.$$s==null?this:Ie.$$s;return Re==null&&(Re=Oe),Ue(Re["$respond_to?"]("composed"))?Re.$composed(oe):Oe},{$$s:ke}),Ue(He)&&ke.$init_backend_traits(He.$backend_traits()),ke.converter_cache=G(Ne("Hash"),"new",[],function Ie(Re,oe){var we,J=Ie.$$s==null?this:Ie.$$s;return Re==null&&(Re=Oe),oe==null&&(oe=Oe),we=[oe,J.$find_converter(oe)],G(Re,"[]=",we),we[we.length-1]},{$$s:ke})},-2),K(Je,"$convert",function(tt,E,rt){var ot=this,X=Oe;return E==null&&(E=Oe),rt==null&&(rt=Oe),ot.$converter_for(E=Ue(X=E)?X:tt.$node_name()).$convert(tt,E,rt)},-2),K(Je,"$converter_for",function(tt){var E=this;return E.converter_cache["$[]"](tt)}),K(Je,"$find_converter",function(tt){try{var E=qe("return"),rt=this;return G(rt.converters,"each",[],function(X){if(X==null&&(X=Oe),Ue(X["$handles?"](tt)))E.$throw(X);else return Oe},{$$ret:E}),rt.$raise("Could not find a converter to handle transform: "+tt)}catch(ot){if(ot===E)return ot.$v;throw ot}})}(We("Converter"),Ne(We("Converter"),"Base"))}(T[0],T)},Opal.modules["asciidoctor/converter"]=function(a){var ae=a.module,re=a.hash2,W=a.def,me=a.return_val,v=a.truthy,G=a.eqeq,Ue=a.defs,K=a.send,qe=a.alias,T=a.slice,Oe=a.to_a,Ne=a.extract_kwargs,Ke=a.ensure_kwargs,De=a.eqeqeq,Pe=a.Class,pt=a.klass,We=a.class_variable_set,st=a.class_variable_get,Ye=a.rb_plus,Je=a.gvars,ht=[],N=a.nil,tt=a.$$$;return a.add_stubs("autoload,attr_reader,raise,class,[],sub,slice,length,==,[]=,backend_traits,derive_backend_traits,register,map,to_s,new,create,default,each,default=,registry,for,===,supports_templates?,merge,private,include,delete,clear,send,extend,private_class_method,node_name,+,name,receiver,warn,logger,respond_to?,content"),function(E,rt){var ot=ae(E,"Asciidoctor"),X=[ot].concat(rt);return function(M,He){var ke=ae(M,"Converter"),Ie=[ke].concat(He),Re=a.$r(Ie);return ke.$autoload("CompositeConverter","asciidoctor/converter/composite"),ke.$attr_reader("backend"),W(ke,"$initialize",function(we,J){var B=this;return J==null&&(J=re([],{})),B.backend=we},-2),W(ke,"$convert",function(we,J,B){var q=this;return q.backend==null&&(q.backend=N),q.$raise(tt("NotImplementedError"),""+q.$class()+" (backend: "+q.backend+") must implement the #convert method")},-2),W(ke,"$handles?",me(!0)),Ue(ke,"$derive_backend_traits",function(we,J){var B=N,q=N,ie=N;return J==null&&(J=N),v(we)?(v(B=Re("DEFAULT_EXTENSIONS")["$[]"](J=v(q=J)?q:we.$sub(Re("TrailingDigitsRx"),"")))?ie=B.$slice(1,B.$length()):B="."+(ie=J),G(ie,"html")?re(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:J,filetype:ie,htmlsyntax:"html",outfilesuffix:B}):re(["basebackend","filetype","outfilesuffix"],{basebackend:J,filetype:ie,outfilesuffix:B})):re([],{})},-2),function(oe,we){var J=ae(oe,"BackendTraits"),B=[J].concat(we),q=a.$r(B);return W(J,"$basebackend",function(te){var fe,H=this;return te==null&&(te=N),v(te)?(fe=["basebackend",te],K(H.$backend_traits(te),"[]=",fe),fe[fe.length-1]):H.$backend_traits()["$[]"]("basebackend")},-1),W(J,"$filetype",function(te){var fe,H=this;return te==null&&(te=N),v(te)?(fe=["filetype",te],K(H.$backend_traits(),"[]=",fe),fe[fe.length-1]):H.$backend_traits()["$[]"]("filetype")},-1),W(J,"$htmlsyntax",function(te){var fe,H=this;return te==null&&(te=N),v(te)?(fe=["htmlsyntax",te],K(H.$backend_traits(),"[]=",fe),fe[fe.length-1]):H.$backend_traits()["$[]"]("htmlsyntax")},-1),W(J,"$outfilesuffix",function(te){var fe,H=this;return te==null&&(te=N),v(te)?(fe=["outfilesuffix",te],K(H.$backend_traits(),"[]=",fe),fe[fe.length-1]):H.$backend_traits()["$[]"]("outfilesuffix")},-1),W(J,"$supports_templates",function(te){var fe,H=this;return te==null&&(te=!0),fe=["supports_templates",te],K(H.$backend_traits(),"[]=",fe),fe[fe.length-1]},-1),W(J,"$supports_templates?",function(){var te=this;return te.$backend_traits()["$[]"]("supports_templates")}),W(J,"$init_backend_traits",function(te){var fe=this,H=N;return te==null&&(te=N),fe.backend_traits=v(H=te)?H:re([],{})},-1),W(J,"$backend_traits",function(te){var fe=this,H=N;return fe.backend_traits==null&&(fe.backend_traits=N),fe.backend==null&&(fe.backend=N),te==null&&(te=N),fe.backend_traits=v(H=fe.backend_traits)?H:q("Converter").$derive_backend_traits(fe.backend,te)},-1),qe(J,"backend_info","backend_traits"),Ue(J,"$derive_backend_traits",function(te,fe){return fe==null&&(fe=N),q("Converter").$derive_backend_traits(te,fe)},-2)}(Ie[0],Ie),function(oe,we){var J=ae(oe,"Config"),B=[J].concat(we),q=a.$r(B);return W(J,"$register_for",function(te){var fe,H,g=this;return fe=T(arguments),H=fe,K(q("Converter"),"register",[g].concat(Oe(K(H,"map",[],function(m){return m==null&&(m=N),m.$to_s()}))))},-1)}(Ie[0],Ie),function(oe,we){var J=ae(oe,"Factory"),B=[J].concat(we),q=a.$r(B);return Ue(J,"$new",function(te,fe){var H,g,u,m;return H=T(arguments),g=Ne(H),g=Ke(g),H.length>0&&(u=H.shift()),u==null&&(u=N),m=g.$$smap.proxy_default,m==null&&(m=!0),v(m)?q("DefaultFactoryProxy").$new(u):q("CustomFactory").$new(u)},-1),Ue(J,"$default",function(te){return T(arguments),q("Converter")},-1),Ue(J,"$create",function(te,fe){var H=this;return fe==null&&(fe=re([],{})),H.$default().$create(te,fe)},-2),W(J,"$register",function(te,fe){var H,g,u=this;return H=T(arguments,1),g=H,K(g,"each",[],function m(R){var k,b=m.$$s==null?this:m.$$s;return R==null&&(R=N),G(R,"*")?(k=[te],K(b.$registry(),"default=",k),k[k.length-1]):(k=[R,te],K(b.$registry(),"[]=",k),k[k.length-1])},{$$s:u})},-2),W(J,"$for",function(te){var fe=this;return fe.$registry()["$[]"](te)}),W(J,"$create",function(te,fe){var H=this,g=N,u=N,m=N;return fe==null&&(fe=re([],{})),v(g=H.$for(te))?(De(Pe,g)&&(g=g.$new(te,fe)),v(u=fe["$[]"]("template_dirs"))&&De(q("BackendTraits"),g)&&v(g["$supports_templates?"]())?q("CompositeConverter").$new(te,q("TemplateConverter").$new(te,u,fe),g,re(["backend_traits_source"],{backend_traits_source:g})):g):v(u=fe["$[]"]("template_dirs"))?v(m=fe["$[]"]("delegate_backend"))&&v(g=H.$for(m))?(De(Pe,g)&&(g=g.$new(m,fe)),q("CompositeConverter").$new(te,q("TemplateConverter").$new(te,u,fe),g,re(["backend_traits_source"],{backend_traits_source:g}))):q("TemplateConverter").$new(te,u,fe):N},-2),W(J,"$converters",function(){var te=this;return te.$registry().$merge()}),J.$private(),W(J,"$registry",function(){var te=this;return te.$raise(tt("NotImplementedError"),""+q("Factory")+" subclass "+te.$class()+" must implement the #registry method")})}(Ie[0],Ie),function(oe,we,J){var B=pt(oe,we,"CustomFactory"),q=[B].concat(J),ie=a.$r(q);return B.$include(ie("Factory")),W(B,"$initialize",function(fe){var H=this;return fe==null&&(fe=N),v(fe)?(fe["$default="](fe.$delete("*")),H.registry=fe):H.registry=re([],{})},-1),W(B,"$unregister_all",function(){var fe,H=this;return fe=[N],K(H.$registry().$clear(),"default=",fe),fe[fe.length-1]}),B.$private(),B.$attr_reader("registry")}(Ie[0],null,Ie),function(oe,we){var J=ae(oe,"DefaultFactory"),B=[J].concat(we),q=a.$r(B);return J.$include(q("Factory")),J.$private(),We(B[0],"@@registry",re([],{})),W(J,"$registry",function(){return st(B[0],"@@registry",!1)}),N}(Ie[0],Ie),function(oe,we,J){var B=pt(oe,we,"DefaultFactoryProxy"),q=[B].concat(J),ie=a.$r(q);return B.$include(ie("DefaultFactory")),N}(Ie[0],Re("CustomFactory"),Ie),Ue(ke,"$included",function(we){return we.$send("include",Re("BackendTraits")),we.$extend(Re("Config"))}),ke.$private_class_method("included"),function(oe,we,J){var B=pt(oe,we,"Base"),q=[B].concat(J),ie=a.$r(q),te=B.$$prototype;return te.backend=N,B.$include(ie("Logging")),B.$include(ie("Converter")),W(B,"$convert",function(H,g,u){var m=this,R=N;Je["!"]==null&&(Je["!"]=N),g==null&&(g=H.$node_name()),u==null&&(u=N);try{return v(u)?m.$send(Ye("convert_",g),H,u):m.$send(Ye("convert_",g),H)}catch(k){if(a.rescue(k,[ie("StandardError")]))try{return De(tt("NoMethodError"),R=Je["!"])&&G(R.$receiver(),m)&&G(R.$name().$to_s(),g)||m.$raise(),m.$logger().$warn("missing convert handler for "+R.$name()+" node in "+m.backend+" backend ("+m.$class()+")"),N}finally{a.pop_exception()}else throw k}},-2),W(B,"$handles?",function(H){var g=this;return g["$respond_to?"]("convert_"+H)}),W(B,"$content_only",function(H){return H.$content()}),W(B,"$skip",me(N))}(Ie[0],null,Ie),ke.$extend(Re("DefaultFactory"))}(X[0],X)}(ht[0],ht)},Opal.modules["asciidoctor/document"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.send,v=a.alias,G=a.truthy,Ue=a.def,K=a.hash2,qe=a.not,T=a.to_ary,Oe=a.return_ivar,Ne=a.send2,Ke=a.find_super,De=a.rb_minus,Pe=a.eqeq,pt=a.eqeqeq,We=a.hash,st=a.rb_ge,Ye=a.rb_plus,Je=a.neqeq,ht=a.thrower,N=a.rb_gt,tt=a.rb_lt,E=a.gvars,rt=a.to_a,ot=[],X=a.nil,M=a.$$$;return a.add_stubs("new,target,attr_reader,nil?,<<,[],[]=,main,include?,strip,squeeze,gsub,!,empty?,rpartition,attr_accessor,catalog,delete,base_dir,options,merge,instance_variable_get,attributes,safe,compat_mode,outfilesuffix,sourcemap,path_resolver,converter,extensions,syntax_highlighter,each,end_with?,start_with?,slice,-,length,chop,==,downcase,===,extname,value_for_name,key?,freeze,attribute_undefined,attribute_missing,update,&,keys,name_for_value,expand_path,pwd,to_s,>=,+,abs,to_i,delete_if,update_doctype_attributes,cursor,parse,restore_attributes,update_backend_attributes,fetch,fill_datetime_attributes,activate,groups,create,to_proc,preprocessors?,preprocessors,process_method,tree_processors?,tree_processors,!=,counter,nil_or_empty?,attribute_locked?,nextval,value,save_to,increment_and_store_counter,register,tap,xreftext,>,source,source_lines,doctitle,sectname=,title=,first_section,title,reftext,<,find,context,header?,assign_numeral,clear_playback_attributes,save_attributes,name,negate,rewind,replace,apply_attribute_value_subs,delete?,start,doctype,content_model,warn,logger,content,convert,postprocessors?,postprocessors,record,write,respond_to?,chomp,class,write_alternate_pages,map,split,resolve_docinfo_subs,normalize_system_path,read_asset,apply_subs,docinfo_processors?,join,concat,compact,docinfo_processors,object_id,inspect,size,private,=~,resolve_pass_subs,apply_header_subs,limit_bytesize,bytesize,valid_encoding?,byteslice,resolve_subs,utc,at,Integer,now,index,strftime,year,utc_offset,partition,create_converter,basebackend,filetype,htmlsyntax,derive_backend_traits,raise"),function(He,ke){var Ie=ae(He,"Asciidoctor"),Re=[Ie].concat(ke),oe=a.$r(Re);return function(we,J,B){var q=re(we,J,"Document"),ie=[q].concat(B),te=a.$r(ie),fe=q.$$prototype;return fe.attributes=fe.safe=fe.sourcemap=fe.reader=fe.base_dir=fe.parsed=fe.parent_document=fe.extensions=fe.options=fe.counters=fe.catalog=fe.reftexts=fe.next_section_index=fe.header=fe.blocks=fe.header_attributes=fe.attributes_modified=fe.backend=fe.attribute_overrides=fe.timings=fe.converter=fe.outfilesuffix=fe.docinfo_processor_extensions=fe.document=fe.max_attribute_value_size=fe.id=fe.doctype=X,W(ie[0],"ImageReference",me(M("Struct"),"new",["target","imagesdir"],function H(){var g=H.$$s==null?this:H.$$s;return v(g,"to_s","target")},{$$s:q})),W(ie[0],"Footnote",M("Struct").$new("index","id","text")),function(H,g){var u=re(H,g,"AttributeEntry");return u.$attr_reader("name","value","negate"),Ue(u,"$initialize",function(R,k,b){var D=this;return b==null&&(b=X),D.name=R,D.value=k,D.negate=G(b["$nil?"]())?k["$nil?"]():b},-3),Ue(u,"$save_to",function(R){var k,b=this,D=X;return(G(D=R["$[]"]("attribute_entries"))?D:(k=["attribute_entries",[]],me(R,"[]=",k),k[k.length-1]))["$<<"](b),b})}(ie[0],null),function(H,g,u){var m=re(H,g,"Title"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.subtitle=X,m.$attr_reader("main"),v(m,"title","main"),m.$attr_reader("subtitle"),m.$attr_reader("combined"),Ue(m,"$initialize",function(P,he){var le,Se,Be=this,Xe=X,it=X;return he==null&&(he=K([],{})),G(Be.sanitized=he["$[]"]("sanitize"))&&G(P["$include?"]("<"))&&(P=P.$gsub(k("XmlSanitizeRx"),"").$squeeze(" ").$strip()),G((Xe=G(it=he["$[]"]("separator"))?it:":")["$empty?"]())||qe(P["$include?"](Xe=""+Xe+" "))?(Be.main=P,Be.subtitle=X):(Se=P.$rpartition(Xe),le=T(Se),Be.main=le[0]==null?X:le[0],le[1]==null||le[1],Be.subtitle=le[2]==null?X:le[2]),Be.combined=P},-2),Ue(m,"$sanitized?",Oe("sanitized")),Ue(m,"$subtitle?",function(){var P=this;return!!G(P.subtitle)}),Ue(m,"$to_s",Oe("combined"))}(ie[0],null,ie),W(ie[0],"Author",M("Struct").$new("name","firstname","middlename","lastname","initials","email")),q.$attr_reader("safe"),q.$attr_reader("compat_mode"),q.$attr_reader("backend"),q.$attr_reader("doctype"),q.$attr_accessor("sourcemap"),q.$attr_reader("catalog"),v(q,"references","catalog"),q.$attr_reader("counters"),q.$attr_reader("header"),q.$attr_reader("base_dir"),q.$attr_reader("options"),q.$attr_reader("outfilesuffix"),q.$attr_reader("parent_document"),q.$attr_reader("reader"),q.$attr_reader("path_resolver"),q.$attr_reader("converter"),q.$attr_reader("syntax_highlighter"),q.$attr_reader("extensions"),Ue(q,"$initialize",function H(g,u){var m,R,k,b;H.$$p;var D=this,P=X,he=X,le=X,Se=X,Be=X,Xe=X,it=X,_t=X,at=X,vt=X,St=X,Et=X,kt=X,Nt=X,Rt=X,Wt=X,jt=X,er=X;return H.$$p=null,g==null&&(g=X),u==null&&(u=K([],{})),Ne(D,Ke(D,"initialize",H,!1,!0),"initialize",[D,"document"],null),G(P=u.$delete("parent"))?(D.parent_document=P,G(he=u["$[]"]("base_dir"))||u["$[]="]("base_dir",P.$base_dir()),G(P.$options()["$[]"]("catalog_assets"))&&u["$[]="]("catalog_assets",!0),G(P.$options()["$[]"]("to_dir"))&&u["$[]="]("to_dir",P.$options()["$[]"]("to_dir")),D.catalog=P.$catalog().$merge(K(["footnotes"],{footnotes:[]})),D.attribute_overrides=le=P.$instance_variable_get("@attribute_overrides").$merge(P.$attributes()),le.$delete("compat-mode"),Se=le.$delete("doctype"),le.$delete("notitle"),le.$delete("showtitle"),le.$delete("toc"),D.attributes["$[]="]("toc-placement",G(he=le.$delete("toc-placement"))?he:"auto"),le.$delete("toc-position"),D.safe=P.$safe(),G(D.compat_mode=P.$compat_mode())&&D.attributes["$[]="]("compat-mode",""),D.outfilesuffix=P.$outfilesuffix(),D.sourcemap=P.$sourcemap(),D.timings=X,D.path_resolver=P.$path_resolver(),D.converter=P.$converter(),Be=X,D.extensions=P.$extensions(),D.syntax_highlighter=P.$syntax_highlighter()):(D.parent_document=X,D.catalog=K(["ids","refs","footnotes","links","images","callouts","includes"],{ids:K([],{}),refs:K([],{}),footnotes:[],links:[],images:[],callouts:te("Callouts").$new(),includes:K([],{})}),D.attribute_overrides=le=K([],{}),me(G(he=u["$[]"]("attributes"))?he:K([],{}),"each",[],function(Pt,Yt){var Xt;return Pt==null&&(Pt=X),Yt==null&&(Yt=X),G(Pt["$end_with?"]("@"))?G(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,De(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):G(Pt["$end_with?"]("!@"))?(Xt=[Pt.$slice(0,De(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):(Xt=[Pt.$chop(),""+Yt+"@"],Pt=Xt[0],Yt=Xt[1]):G(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Pt.$length()),Pe(Yt,"@")?!1:X],Pt=Xt[0],Yt=Xt[1]):G(Pt["$end_with?"]("!"))&&(Xt=[Pt.$chop(),Pe(Yt,"@")?!1:X],Pt=Xt[0],Yt=Xt[1]),Xt=[Pt.$downcase(),Yt],me(le,"[]=",Xt),Xt[Xt.length-1]}),pt(M("String"),Xe=u["$[]"]("to_file"))&&le["$[]="]("outfilesuffix",te("Helpers").$extname(Xe)),qe(it=u["$[]"]("safe"))?D.safe=M(te("SafeMode"),"SECURE"):pt(M("Integer"),it)?D.safe=it:D.safe=function(){try{return te("SafeMode").$value_for_name(it)}catch(Kt){if(a.rescue(Kt,[te("StandardError")]))try{return M(te("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),_t=u.$delete("input_mtime"),D.compat_mode=le["$key?"]("compat-mode"),D.sourcemap=u["$[]"]("sourcemap"),D.timings=u.$delete("timings"),D.path_resolver=te("PathResolver").$new(),Be=G((m=M("::","Asciidoctor","skip_raise"))&&M(m,"Extensions","skip_raise")?"constant":X)||G(u["$key?"]("extensions"))?M(M("Asciidoctor"),"Extensions"):X,D.extensions=X,G(u["$key?"]("header_footer"))&&qe(u["$key?"]("standalone"))&&u["$[]="]("standalone",u["$[]"]("header_footer"))),D.parsed=D.reftexts=D.header=D.header_attributes=X,D.counters=K([],{}),D.attributes_modified=M("Set").$new(),D.docinfo_processor_extensions=K([],{}),at=u["$[]"]("standalone"),(D.options=u).$freeze(),vt=D.attributes,G(P)||(vt["$[]="]("attribute-undefined",te("Compliance").$attribute_undefined()),vt["$[]="]("attribute-missing",te("Compliance").$attribute_missing()),vt.$update(te("DEFAULT_ATTRIBUTES"))),G(at)?(le["$[]="]("embedded",X),vt["$[]="]("copycss",""),vt["$[]="]("iconfont-remote",""),vt["$[]="]("stylesheet",""),vt["$[]="]("webfonts","")):(le["$[]="]("embedded",""),G(le["$key?"]("showtitle"))&&Pe(le.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?le["$[]="]("notitle",We(X,"",!1,"@","@",!1)["$[]"](le["$[]"]("showtitle"))):G(le["$key?"]("notitle"))?le["$[]="]("showtitle",We(X,"",!1,"@","@",!1)["$[]"](le["$[]"]("notitle"))):vt["$[]="]("notitle","")),le["$[]="]("asciidoctor",""),le["$[]="]("asciidoctor-version",M(M("Asciidoctor"),"VERSION")),le["$[]="]("safe-mode-name",St=te("SafeMode").$name_for_value(D.safe)),le["$[]="]("safe-mode-"+St,""),le["$[]="]("safe-mode-level",D.safe),G(he=le["$[]"]("max-include-depth"))||le["$[]="]("max-include-depth",64),G(he=le["$[]"]("allow-uri-read"))||le["$[]="]("allow-uri-read",X),G(le["$key?"]("numbered"))&&le["$[]="]("sectnums",le.$delete("numbered")),G(le["$key?"]("hardbreaks"))&&le["$[]="]("hardbreaks-option",le.$delete("hardbreaks")),G(Et=u["$[]"]("base_dir"))?D.base_dir=(R=["docdir",M("File").$expand_path(Et)],me(le,"[]=",R),R[R.length-1]):G(le["$[]"]("docdir"))?D.base_dir=le["$[]"]("docdir"):D.base_dir=(R=["docdir",M("Dir").$pwd()],me(le,"[]=",R),R[R.length-1]),G(kt=u["$[]"]("backend"))&&le["$[]="]("backend",kt.$to_s()),G(Nt=u["$[]"]("doctype"))&&le["$[]="]("doctype",Nt.$to_s()),G(st(D.safe,M(te("SafeMode"),"SERVER")))?(G(he=le["$[]"]("copycss"))||le["$[]="]("copycss",X),G(he=le["$[]"]("source-highlighter"))||le["$[]="]("source-highlighter",X),G(he=le["$[]"]("backend"))||le["$[]="]("backend",te("DEFAULT_BACKEND")),qe(P)&&G(le["$key?"]("docfile"))&&le["$[]="]("docfile",le["$[]"]("docfile")["$[]"](a.Range.$new(Ye(le["$[]"]("docdir").$length(),1),-1,!1))),le["$[]="]("docdir",""),G(he=le["$[]"]("user-home"))||le["$[]="]("user-home","."),G(st(D.safe,M(te("SafeMode"),"SECURE")))&&(G(le["$key?"]("max-attribute-value-size"))||le["$[]="]("max-attribute-value-size",4096),G(le["$key?"]("linkcss"))||le["$[]="]("linkcss",""),G(he=le["$[]"]("icons"))||le["$[]="]("icons",X))):G(he=le["$[]"]("user-home"))||le["$[]="]("user-home",te("USER_HOME")),D.max_attribute_value_size=G(Rt=G(he=le["$[]"]("max-attribute-value-size"))?he:(R=["max-attribute-value-size",X],me(le,"[]=",R),R[R.length-1]))?Rt.$to_i().$abs():X,me(le,"delete_if",[],function(Pt,Yt){var Xt,nr=X;return Pt==null&&(Pt=X),Yt==null&&(Yt=X),G(Yt)?(pt(M("String"),Yt)&&G(Yt["$end_with?"]("@"))&&(Xt=[Yt.$chop(),!0],Yt=Xt[0],nr=Xt[1]),vt["$[]="](Pt,Yt)):(vt.$delete(Pt),nr=Yt["$=="](!1)),nr}),G(P)?(D.backend=vt["$[]"]("backend"),Pe(D.doctype=(R=["doctype",Se],me(vt,"[]=",R),R[R.length-1]),te("DEFAULT_DOCTYPE"))||D.$update_doctype_attributes(te("DEFAULT_DOCTYPE")),D.reader=te("Reader").$new(g,u["$[]"]("cursor")),G(D.sourcemap)&&(D.source_location=D.reader.$cursor()),te("Parser").$parse(D.reader,D),D.$restore_attributes(),D.parsed=!0):(D.backend=X,Pe(Wt=G(he=vt["$[]"]("backend"))?he:te("DEFAULT_BACKEND"),"manpage")?D.doctype=(R=["doctype",(k=["doctype","manpage"],me(le,"[]=",k),k[k.length-1])],me(vt,"[]=",R),R[R.length-1]):D.doctype=G(he=vt["$[]"]("doctype"))?he:(R=["doctype",te("DEFAULT_DOCTYPE")],me(vt,"[]=",R),R[R.length-1]),D.$update_backend_attributes(Wt,!0),G(he=vt["$[]"]("stylesdir"))||vt["$[]="]("stylesdir","."),G(he=vt["$[]"]("iconsdir"))||vt["$[]="]("iconsdir",""+vt.$fetch("imagesdir","./images")+"/icons"),D.$fill_datetime_attributes(vt,_t),G(Be)&&(G(jt=u["$[]"]("extension_registry"))?(pt(M(te("Extensions"),"Registry"),jt)||G((b=M("::","AsciidoctorJ","skip_raise"))&&(k=M(b,"Extensions","skip_raise"))&&(R=M(k,"ExtensionRegistry","skip_raise"))?"constant":X)&&pt(M(M(M("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),jt))&&(D.extensions=jt.$activate(D)):G((er=u["$[]"]("extensions"))["$nil?"]())?G(te("Extensions").$groups()["$empty?"]())||(D.extensions=M(te("Extensions"),"Registry").$new().$activate(D)):pt(M("Proc"),er)&&(D.extensions=me(te("Extensions"),"create",[],er.$to_proc()).$activate(D))),D.reader=te("PreprocessorReader").$new(D,g,M(te("Reader"),"Cursor").$new(vt["$[]"]("docfile"),D.base_dir),K(["normalize"],{normalize:!0})),G(D.sourcemap)?D.source_location=D.reader.$cursor():X)},-1),Ue(q,"$parse",function(g){var u=this,m=X,R=X;return g==null&&(g=X),G(u.parsed)?u:(m=u,G(g)&&(u.reader=te("PreprocessorReader").$new(m,g,M(te("Reader"),"Cursor").$new(u.attributes["$[]"]("docfile"),u.base_dir),K(["normalize"],{normalize:!0})),G(u.sourcemap)&&(u.source_location=u.reader.$cursor())),G(R=G(u.parent_document)?X:u.extensions)&&G(R["$preprocessors?"]())&&me(R.$preprocessors(),"each",[],function k(b){var D=k.$$s==null?this:k.$$s,P=X;return D.reader==null&&(D.reader=X),b==null&&(b=X),D.reader=G(P=b.$process_method()["$[]"](m,D.reader))?P:D.reader},{$$s:u}),te("Parser").$parse(u.reader,m,K(["header_only"],{header_only:u.options["$[]"]("parse_header_only")})),u.$restore_attributes(),G(R)&&G(R["$tree_processors?"]())&&me(R.$tree_processors(),"each",[],function(b){var D=X;return b==null&&(b=X),G(D=b.$process_method()["$[]"](m))&&pt(te("Document"),D)&&Je(D,m)?m=D:X}),u.parsed=!0,m)},-1),Ue(q,"$parsed?",Oe("parsed")),Ue(q,"$counter",function(g,u){var m,R=this,k=X,b=X,D=X;return u==null&&(u=X),G(R.parent_document)?R.parent_document.$counter(g,u):(G(b=R["$attribute_locked?"](g))&&G(k=R.counters["$[]"](g))||qe((k=R.attributes["$[]"](g))["$nil_or_empty?"]())?D=(m=[g,te("Helpers").$nextval(k)],me(R.counters,"[]=",m),m[m.length-1]):G(u)?D=(m=[g,Pe(u,u.$to_i().$to_s())?u.$to_i():u],me(R.counters,"[]=",m),m[m.length-1]):D=(m=[g,1],me(R.counters,"[]=",m),m[m.length-1]),G(b)||R.attributes["$[]="](g,D),D)},-2),Ue(q,"$increment_and_store_counter",function(g,u){var m=this;return te("AttributeEntry").$new(g,m.$counter(g)).$save_to(u.$attributes()).$value()}),v(q,"counter_increment","increment_and_store_counter"),Ue(q,"$register",function(g,u){var m=this,R=X,k=X,b=X;switch(g){case"ids":return m.$register("refs",[R=u["$[]"](0),te("Inline").$new(m,"anchor",u["$[]"](1),K(["type","id"],{type:"ref",id:R}))]);case"refs":return k=m.catalog["$[]"]("refs"),G(k["$[]"](u["$[]"](0)))||k["$[]="](u["$[]"](0),b=u["$[]"](1)),b;case"footnotes":return m.catalog["$[]"](g)["$<<"](u);default:return G(m.options["$[]"]("catalog_assets"))?m.catalog["$[]"](g)["$<<"](Pe(g,"images")?te("ImageReference").$new(u,m.attributes["$[]"]("imagesdir")):u):X}}),Ue(q,"$resolve_id",function(g){var u=this,m=X,R=X;return G(u.reftexts)?u.reftexts["$[]"](g):G(u.parsed)?me(u.reftexts=K([],{}),"tap",[],function k(b){var D=k.$$s==null?this:k.$$s;return D.catalog==null&&(D.catalog=X),b==null&&(b=X),me(D.catalog["$[]"]("refs"),"each",[],function(he,le){var Se,Be=X;return he==null&&(he=X),le==null&&(le=X),G(Be=b["$[]"](le.$xreftext()))?Be:(Se=[le.$xreftext(),he],me(b,"[]=",Se),Se[Se.length-1])})},{$$s:u})["$[]"](g):(m=X,u.reftexts=R=K([],{}),function(){try{var k=ht("break");return me(u.catalog["$[]"]("refs"),"each",[],function(D,P){var he,le=X,Se=X;return D==null&&(D=X),P==null&&(P=X),Pe(le=P.$xreftext(),g)&&(m=D,k.$throw()),G(Se=R["$[]"](le))?Se:(he=[le,D],me(R,"[]=",he),he[he.length-1])})}catch(b){if(b===k)return b.$v;throw b}}(),u.reftexts=X,m)}),Ue(q,"$sections?",function(){var g=this;return N(g.next_section_index,0)}),Ue(q,"$footnotes?",function(){var g=this;return!G(g.catalog["$[]"]("footnotes")["$empty?"]())}),Ue(q,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),Ue(q,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),Ue(q,"$nested?",function(){var g=this;return!!G(g.parent_document)}),Ue(q,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),Ue(q,"$extensions?",function(){var g=this;return!!G(g.extensions)}),Ue(q,"$source",function(){var g=this;return G(g.reader)?g.reader.$source():X}),Ue(q,"$source_lines",function(){var g=this;return G(g.reader)?g.reader.$source_lines():X}),Ue(q,"$basebackend?",function(g){var u=this;return u.attributes["$[]"]("basebackend")["$=="](g)}),Ue(q,"$title",function(){var g=this;return g.$doctitle()}),Ue(q,"$title=",function(g){var u,m=this,R=X;return G(R=m.header)||(R=m.header=te("Section").$new(m,0))["$sectname="]("header"),u=[g],me(R,"title=",u),u[u.length-1]}),Ue(q,"$doctitle",function(g){var u=this,m=X,R=X,k=X,b=X;if(g==null&&(g=K([],{})),!G(m=u.attributes["$[]"]("title"))){if(G(R=u.$first_section()))m=R.$title();else if(qe(G(k=g["$[]"]("use_fallback"))?m=u.attributes["$[]"]("untitled-label"):k))return X}return G(b=g["$[]"]("partition"))?te("Title").$new(m,g.$merge(K(["separator"],{separator:Pe(b,!0)?u.attributes["$[]"]("title-separator"):b}))):G(g["$[]"]("sanitize"))&&G(m["$include?"]("<"))?m.$gsub(te("XmlSanitizeRx"),"").$squeeze(" ").$strip():m},-1),v(q,"name","doctitle"),Ue(q,"$xreftext",function(g){var u=this,m=X;return G(m=u.$reftext())&&qe(m["$empty?"]())?m:u.$title()},-1),Ue(q,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),Ue(q,"$authors",function(){var g=this,u=X,m=X,R=X,k=X,b=X;if(G((u=g.attributes)["$key?"]("author"))){if(m=[te("Author").$new(u["$[]"]("author"),u["$[]"]("firstname"),u["$[]"]("middlename"),u["$[]"]("lastname"),u["$[]"]("authorinitials"),u["$[]"]("email"))],G(N(R=G(k=u["$[]"]("authorcount"))?k:0,1)))for(b=1;G(tt(b,R));)b=Ye(b,1),m["$<<"](te("Author").$new(u["$[]"]("author_"+b),u["$[]"]("firstname_"+b),u["$[]"]("middlename_"+b),u["$[]"]("lastname_"+b),u["$[]"]("authorinitials_"+b),u["$[]"]("email_"+b)));return m}else return[]}),Ue(q,"$revdate",function(){var g=this;return g.attributes["$[]"]("revdate")}),Ue(q,"$notitle",function(){var g=this;return g.attributes["$key?"]("notitle")}),Ue(q,"$noheader",function(){var g=this;return g.attributes["$key?"]("noheader")}),Ue(q,"$nofooter",function(){var g=this;return g.attributes["$key?"]("nofooter")}),Ue(q,"$first_section",function(){var g=this,u=X;return G(u=g.header)?u:me(g.blocks,"find",[],function(R){return R==null&&(R=X),R.$context()["$=="]("section")})}),Ue(q,"$header?",function(){var g=this;return!!G(g.header)}),v(q,"has_header?","header?"),Ue(q,"$<<",function H(g){var u=H.$$p||X,m=this;return H.$$p=null,Pe(g.$context(),"section")&&m.$assign_numeral(g),Ne(m,Ke(m,"<<",H,!1,!0),"<<",[g],u)}),Ue(q,"$finalize_header",function(g,u){var m=this;return u==null&&(u=!0),m.$clear_playback_attributes(g),m.$save_attributes(),G(u)||g["$[]="]("invalid-header",!0),g},-2),Ue(q,"$playback_attributes",function(g){var u=this;return G(g["$key?"]("attribute_entries"))?me(g["$[]"]("attribute_entries"),"each",[],function m(R){var k=m.$$s==null?this:m.$$s,b=X;return k.attributes==null&&(k.attributes=X),R==null&&(R=X),b=R.$name(),G(R.$negate())?(k.attributes.$delete(b),Pe(b,"compat-mode")?k.compat_mode=!1:X):(k.attributes["$[]="](b,R.$value()),Pe(b,"compat-mode")?k.compat_mode=!0:X)},{$$s:u}):X}),Ue(q,"$restore_attributes",function(){var g=this;return G(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),Ue(q,"$set_attribute",function(g,u){var m=this,R=X;if(u==null&&(u=""),G(m["$attribute_locked?"](g)))return X;if(G(u["$empty?"]())||(u=m.$apply_attribute_value_subs(u)),G(m.header_attributes))m.attributes["$[]="](g,u);else{switch(g){case"backend":m.$update_backend_attributes(u,G(R=m.attributes_modified["$delete?"]("htmlsyntax"))?u["$=="](m.backend):R);break;case"doctype":m.$update_doctype_attributes(u);break;default:m.attributes["$[]="](g,u)}m.attributes_modified["$<<"](g)}return u},-2),Ue(q,"$delete_attribute",function(g){var u=this;return G(u["$attribute_locked?"](g))?!1:(u.attributes.$delete(g),u.attributes_modified["$<<"](g),!0)}),Ue(q,"$attribute_locked?",function(g){var u=this;return u.attribute_overrides["$key?"](g)}),Ue(q,"$set_header_attribute",function(g,u,m){var R=this,k=X,b=X;return u==null&&(u=""),m==null&&(m=!0),k=G(b=R.header_attributes)?b:R.attributes,Pe(m,!1)&&G(k["$key?"](g))?!1:(k["$[]="](g,u),!0)},-2),Ue(q,"$convert",function(g){var u,m=this,R=X,k=X,b=X,D=X,P=X;return g==null&&(g=K([],{})),G(m.timings)&&m.timings.$start("convert"),G(m.parsed)||m.$parse(),G(st(m.safe,M(te("SafeMode"),"SERVER")))||G(g["$empty?"]())||(G((u=["outfile",g["$[]"]("outfile")],me(m.attributes,"[]=",u),u[u.length-1]))||m.attributes.$delete("outfile"),G((u=["outdir",g["$[]"]("outdir")],me(m.attributes,"[]=",u),u[u.length-1]))||m.attributes.$delete("outdir")),Pe(m.$doctype(),"inline")?G(R=G(k=m.blocks["$[]"](0))?k:m.header)&&(Pe(R.$content_model(),"compound")||Pe(R.$content_model(),"empty")?m.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):b=R.$content()):(G(g["$key?"]("standalone"))?D=G(g["$[]"]("standalone"))?"document":"embedded":G(g["$key?"]("header_footer"))?D=G(g["$[]"]("header_footer"))?"document":"embedded":D=G(m.options["$[]"]("standalone"))?"document":"embedded",b=m.converter.$convert(m,D)),G(m.parent_document)||G(P=m.extensions)&&G(P["$postprocessors?"]())&&me(P.$postprocessors(),"each",[],function he(le){var Se=he.$$s==null?this:he.$$s;return le==null&&(le=X),b=le.$process_method()["$[]"](Se,b)},{$$s:m}),G(m.timings)&&m.timings.$record("convert"),b},-1),v(q,"render","convert"),Ue(q,"$write",function(g,u){var m=this;return G(m.timings)&&m.timings.$start("write"),pt(te("Writer"),m.converter)?m.converter.$write(g,u):(G(u["$respond_to?"]("write"))?G(g["$nil_or_empty?"]())||(u.$write(g.$chomp()),u.$write(te("LF"))):M("File").$write(u,g,K(["mode"],{mode:te("FILE_WRITE_MODE")})),Pe(m.backend,"manpage")&&pt(M("String"),u)&&G(m.converter.$class()["$respond_to?"]("write_alternate_pages"))&&m.converter.$class().$write_alternate_pages(m.attributes["$[]"]("mannames"),m.attributes["$[]"]("manvolnum"),u)),G(m.timings)&&m.timings.$record("write"),X}),Ue(q,"$content",function H(){var g=H.$$p||X,u=this;return H.$$p=null,u.attributes.$delete("title"),Ne(u,Ke(u,"content",H,!1,!0),"content",[],g)}),Ue(q,"$docinfo",function(g,u){var m,R=this,k=X,b=X,D=X,P=X,he=X,le=X,Se=X,Be=X,Xe=X,it=X;return g==null&&(g="head"),u==null&&(u=X),G(tt(R.$safe(),M(te("SafeMode"),"SECURE")))&&(Pe(g,"head")||(k="-"+g),u=G(b=u)?b:R.outfilesuffix,G((D=R.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?G(R.attributes["$key?"]("docinfo2"))?D=["private","shared"]:G(R.attributes["$key?"]("docinfo1"))?D=["shared"]:D=G(D)?["private"]:X:D=me(D.$split(","),"map",[],function(at){return at==null&&(at=X),at.$strip()}),G(D)&&(P=[],m=["docinfo"+k+u,R.attributes["$[]"]("docinfodir"),R.$resolve_docinfo_subs()],he=m[0],le=m[1],Se=m[2],G(D["$&"](["shared","shared-"+g])["$empty?"]())||(Be=R.$normalize_system_path(he,le),G(Xe=R.$read_asset(Be,K(["normalize"],{normalize:!0})))&&P["$<<"](R.$apply_subs(Xe,Se))),G(R.attributes["$[]"]("docname")["$nil_or_empty?"]())||G(D["$&"](["private","private-"+g])["$empty?"]())||(Be=R.$normalize_system_path(""+R.attributes["$[]"]("docname")+"-"+he,le),G(it=R.$read_asset(Be,K(["normalize"],{normalize:!0})))&&P["$<<"](R.$apply_subs(it,Se))))),G(R.extensions)&&G(R["$docinfo_processors?"](g))?(G(b=P)?b:[]).$concat(me(R.docinfo_processor_extensions["$[]"](g),"map",[],function _t(at){var vt=_t.$$s==null?this:_t.$$s;return at==null&&(at=X),at.$process_method()["$[]"](vt)},{$$s:R}).$compact()).$join(te("LF")):G(P)?P.$join(te("LF")):""},-1),Ue(q,"$docinfo_processors?",function(g){var u,m=this;return g==null&&(g="head"),G(m.docinfo_processor_extensions["$key?"](g))?m.docinfo_processor_extensions["$[]"](g)["$!="](!1):G(m.extensions)&&G(m.document.$extensions()["$docinfo_processors?"](g))?(u=[g,m.document.$extensions().$docinfo_processors(g)],me(m.docinfo_processor_extensions,"[]=",u),u[u.length-1])["$!"]()["$!"]():(u=[g,!1],me(m.docinfo_processor_extensions,"[]=",u),u[u.length-1])},-1),Ue(q,"$to_s",function(){var g=this,u=X;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(G(u=g.header)?g.header.$title():u).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),q.$private(),Ue(q,"$apply_attribute_value_subs",function(g){var u,m=this;return G(te("AttributeEntryPassMacroRx")["$=~"](g))?(g=(u=E["~"])===X?X:u["$[]"](2),G((u=E["~"])===X?X:u["$[]"](1))&&(g=m.$apply_subs(g,m.$resolve_pass_subs((u=E["~"])===X?X:u["$[]"](1))))):g=m.$apply_header_subs(g),G(m.max_attribute_value_size)?m.$limit_bytesize(g,m.max_attribute_value_size):g}),Ue(q,"$limit_bytesize",function(g,u){if(G(N(g.$bytesize(),u)))for(;!G((g=g.$byteslice(0,u))["$valid_encoding?"]());)u=De(u,1);return g}),Ue(q,"$resolve_docinfo_subs",function(){var g=this;return G(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",X,"docinfo"):["attributes"]}),Ue(q,"$create_converter",function(g,u){var m=this,R=X,k=X,b=X,D=X,P=X;return R=K(["document","htmlsyntax"],{document:m,htmlsyntax:m.attributes["$[]"]("htmlsyntax")}),G(k=G(b=(D=m.options)["$[]"]("template_dirs"))?b:D["$[]"]("template_dir"))&&(R["$[]="]("template_dirs",[].concat(rt(k))),R["$[]="]("template_cache",D.$fetch("template_cache",!0)),R["$[]="]("template_engine",D["$[]"]("template_engine")),R["$[]="]("template_engine_options",D["$[]"]("template_engine_options")),R["$[]="]("eruby",D["$[]"]("eruby")),R["$[]="]("safe",m.safe),G(u)&&R["$[]="]("delegate_backend",u)),G(P=D["$[]"]("converter"))?M(te("Converter"),"CustomFactory").$new(We(g,P)).$create(g,R):D.$fetch("converter_factory",te("Converter")).$create(g,R)}),Ue(q,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),Ue(q,"$save_attributes",function(){var g=this,u=X,m=X,R=X,k=X,b=X,D=X,P=X,he=X,le=X,Se=X,Be=X,Xe=X,it=X,_t=X;if(G((m=g.attributes)["$key?"]("doctitle"))||qe(u=g.$doctitle())||m["$[]="]("doctitle",u),g.id=G(R=g.id)?R:m["$[]"]("css-signature"),G(k=G(m.$delete("toc2"))?"left":m["$[]"]("toc"))&&(b=G(D=m.$fetch("toc-placement","macro"))&&Je(D,"auto")?D:m["$[]"]("toc-position"),!(G(k["$empty?"]())&&G(b["$nil_or_empty?"]())))){switch(P="left",he="toc2",le=G(b["$nil_or_empty?"]())?G(k["$empty?"]())?P:k:b,m["$[]="]("toc",""),m["$[]="]("toc-placement","auto"),le){case"left":case"<":case"&lt;":m["$[]="]("toc-position","left");break;case"right":case">":case"&gt;":m["$[]="]("toc-position","right");break;case"top":case"^":m["$[]="]("toc-position","top");break;case"bottom":case"v":m["$[]="]("toc-position","bottom");break;case"preamble":case"macro":m["$[]="]("toc-position","content"),m["$[]="]("toc-placement",le),he=X;break;default:m.$delete("toc-position"),he=X}G(he)&&(G(R=m["$[]"]("toc-class"))||m["$[]="]("toc-class",he))}if(G(Se=m["$[]"]("icons"))&&qe(m["$key?"]("icontype")))switch(Se){case"":case"font":break;default:m["$[]="]("icons",""),Pe(Se,"image")||m["$[]="]("icontype",Se)}return G(g.compat_mode=m["$key?"]("compat-mode"))&&G(m["$key?"]("language"))&&m["$[]="]("source-language",m["$[]"]("language")),G(g.parent_document)||(Pe(Be=m["$[]"]("basebackend"),"html")?G(Xe=m["$[]"]("source-highlighter"))&&qe(m["$[]"](""+Xe+"-unavailable"))&&(G(it=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=it.$create(Xe,g.backend,K(["document"],{document:g})):G(_t=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=M(te("SyntaxHighlighter"),"DefaultFactoryProxy").$new(_t).$create(Xe,g.backend,K(["document"],{document:g})):g.syntax_highlighter=te("SyntaxHighlighter").$create(Xe,g.backend,K(["document"],{document:g}))):Pe(Be,"docbook")&&(G(g["$attribute_locked?"]("toc"))||G(g.attributes_modified["$include?"]("toc"))||m["$[]="]("toc",""),G(g["$attribute_locked?"]("sectnums"))||G(g.attributes_modified["$include?"]("sectnums"))||m["$[]="]("sectnums","")),g.outfilesuffix=m["$[]"]("outfilesuffix"),me(te("FLEXIBLE_ATTRIBUTES"),"each",[],function at(vt){var St=at.$$s==null?this:at.$$s;return St.attribute_overrides==null&&(St.attribute_overrides=X),vt==null&&(vt=X),G(St.attribute_overrides["$key?"](vt))&&G(St.attribute_overrides["$[]"](vt))?St.attribute_overrides.$delete(vt):X},{$$s:g})),g.header_attributes=m.$merge()}),Ue(q,"$fill_datetime_attributes",function(g,u){var m,R=this,k=X,b=X,D=X,P=X,he=X,le=X,Se=X,Be=X;return k=G(M("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?b=M("Time").$at(R.$Integer(M("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():M("Time").$now(),G(D=g["$[]"]("localdate"))?G(P=g["$[]"]("localyear"))||g["$[]="]("localyear",Pe(D.$index("-"),4)?D.$slice(0,4):X):(D=(m=["localdate",k.$strftime("%F")],me(g,"[]=",m),m[m.length-1]),G(P=g["$[]"]("localyear"))||g["$[]="]("localyear",k.$year().$to_s())),he=G(P=g["$[]"]("localtime"))?P:(m=["localtime",k.$strftime("%T "+(Pe(k.$utc_offset(),0)?"UTC":"%z"))],me(g,"[]=",m),m[m.length-1]),G(P=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+D+" "+he),u=G(P=G(le=b)?le:u)?P:k,G(Se=g["$[]"]("docdate"))?G(P=g["$[]"]("docyear"))||g["$[]="]("docyear",Pe(Se.$index("-"),4)?Se.$slice(0,4):X):(Se=(m=["docdate",u.$strftime("%F")],me(g,"[]=",m),m[m.length-1]),G(P=g["$[]"]("docyear"))||g["$[]="]("docyear",u.$year().$to_s())),Be=G(P=g["$[]"]("doctime"))?P:(m=["doctime",u.$strftime("%T "+(Pe(u.$utc_offset(),0)?"UTC":"%z"))],me(g,"[]=",m),m[m.length-1]),G(P=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+Se+" "+Be),X}),Ue(q,"$update_backend_attributes",function(g,u){var m,R,k=this,b=X,D=X,P=X,he=X,le=X,Se=X,Be=X,Xe=X,it=X,_t=X,at=X,vt=X,St=X,Et=X;return u==null&&(u=X),G(u)||Je(g,k.backend)?(b=k.backend,D=(P=k.attributes)["$[]"]("basebackend"),he=k.doctype,G(g["$include?"](":"))&&(R=g.$partition(":"),m=T(R),le=m[0]==null?X:m[0],m[1]==null||m[1],g=m[2]==null?X:m[2]),G(g["$start_with?"]("xhtml"))?(P["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):G(g["$start_with?"]("html"))&&(G(Se=P["$[]"]("htmlsyntax"))||P["$[]="]("htmlsyntax","html")),g=G(Se=te("BACKEND_ALIASES")["$[]"](g))?Se:g,G(le)&&(m=[le,g],g=m[0],Be=m[1]),G(he)?(G(b)&&(P.$delete("backend-"+b),P.$delete("backend-"+b+"-doctype-"+he)),P["$[]="]("backend-"+g+"-doctype-"+he,""),P["$[]="]("doctype-"+he,"")):G(b)&&P.$delete("backend-"+b),P["$[]="]("backend-"+g,""),k.backend=(m=["backend",g],me(P,"[]=",m),m[m.length-1]),pt(M(te("Converter"),"BackendTraits"),Xe=k.$create_converter(g,Be))?(it=Xe.$basebackend(),_t=Xe.$filetype(),G(at=Xe.$htmlsyntax())&&P["$[]="]("htmlsyntax",at),G(u)?G(Se=P["$[]"]("outfilesuffix"))||P["$[]="]("outfilesuffix",Xe.$outfilesuffix()):G(k["$attribute_locked?"]("outfilesuffix"))||P["$[]="]("outfilesuffix",Xe.$outfilesuffix())):G(Xe)?(vt=te("Converter").$derive_backend_traits(g),it=vt["$[]"]("basebackend"),_t=vt["$[]"]("filetype"),G(u)?G(Se=P["$[]"]("outfilesuffix"))||P["$[]="]("outfilesuffix",vt["$[]"]("outfilesuffix")):G(k["$attribute_locked?"]("outfilesuffix"))||P["$[]="]("outfilesuffix",vt["$[]"]("outfilesuffix"))):k.$raise(M("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),k.converter=Xe,G(St=P["$[]"]("filetype"))&&P.$delete("filetype-"+St),P["$[]="]("filetype",_t),P["$[]="]("filetype-"+_t,""),G(Et=te("DEFAULT_PAGE_WIDTHS")["$[]"](it))?P["$[]="]("pagewidth",Et):P.$delete("pagewidth"),Je(it,D)&&(G(he)?(G(D)&&(P.$delete("basebackend-"+D),P.$delete("basebackend-"+D+"-doctype-"+he)),P["$[]="]("basebackend-"+it+"-doctype-"+he,"")):G(D)&&P.$delete("basebackend-"+D),P["$[]="]("basebackend-"+it,""),P["$[]="]("basebackend",it)),g):X},-2),Ue(q,"$update_doctype_attributes",function(g){var u,m=this,R=X,k=X,b=X,D=X;return G(g)&&Je(g,m.doctype)?(u=[m.backend,(R=m.attributes)["$[]"]("basebackend"),m.doctype],k=u[0],b=u[1],D=u[2],G(D)?(R.$delete("doctype-"+D),G(k)&&(R.$delete("backend-"+k+"-doctype-"+D),R["$[]="]("backend-"+k+"-doctype-"+g,"")),G(b)&&(R.$delete("basebackend-"+b+"-doctype-"+D),R["$[]="]("basebackend-"+b+"-doctype-"+g,""))):(G(k)&&R["$[]="]("backend-"+k+"-doctype-"+g,""),G(b)&&R["$[]="]("basebackend-"+b+"-doctype-"+g,"")),R["$[]="]("doctype-"+g,""),m.doctype=(u=["doctype",g],me(R,"[]=",u),u[u.length-1])):X})}(Re[0],oe("AbstractBlock"),Re)}(ot[0],ot)},Opal.modules["asciidoctor/inline"]=function(a){var ae=a.module,re=a.klass,W=a.hash2,me=a.send2,v=a.find_super,G=a.def,Ue=a.return_val,K=a.alias,qe=a.truthy,T=[],Oe=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(Ne,Ke){var De=ae(Ne,"Asciidoctor"),Pe=[De].concat(Ke),pt=a.$r(Pe);return function(We,st){var Ye=re(We,st,"Inline"),Je=Ye.$$prototype;return Je.text=Je.type=Oe,Ye.$attr_accessor("text"),Ye.$attr_reader("type"),Ye.$attr_accessor("target"),G(Ye,"$initialize",function ht(N,tt,E,rt){ht.$$p;var ot=this;return ht.$$p=null,E==null&&(E=Oe),rt==null&&(rt=W([],{})),me(ot,v(ot,"initialize",ht,!1,!0),"initialize",[N,tt,rt],null),ot.node_name="inline_"+tt,ot.text=E,ot.id=rt["$[]"]("id"),ot.type=rt["$[]"]("type"),ot.target=rt["$[]"]("target")},-3),G(Ye,"$block?",Ue(!1)),G(Ye,"$inline?",Ue(!0)),G(Ye,"$convert",function(){var N=this;return N.$converter().$convert(N)}),K(Ye,"render","convert"),G(Ye,"$alt",function(){var N=this,tt=Oe;return qe(tt=N.$attr("alt"))?tt:""}),G(Ye,"$reftext?",function(){var N=this,tt=Oe,E=Oe;return qe(tt=N.text)?qe(E=N.type["$=="]("ref"))?E:N.type["$=="]("bibref"):tt}),G(Ye,"$reftext",function(){var N=this,tt=Oe;return qe(tt=N.text)?N.$apply_reftext_subs(tt):Oe}),G(Ye,"$xreftext",function(N){var tt=this;return tt.$reftext()},-1)}(Pe[0],pt("AbstractNode"))}(T[0],T)},Opal.modules["asciidoctor/list"]=function(a){var ae=a.module,re=a.klass,W=a.alias,me=a.hash2,v=a.send2,G=a.find_super,Ue=a.def,K=a.truthy,qe=a.eqeq,T=[],Oe=a.nil;return a.add_stubs("blocks,blocks?,==,next_list,callouts,convert,class,object_id,inspect,size,items,parent,attr_accessor,level,drop,nil_or_empty?,apply_subs,attr_writer,empty?,===,[],outline?,!,simple?,source,shift,context"),function(Ne,Ke){var De=ae(Ne,"Asciidoctor"),Pe=[De].concat(Ke),pt=a.$r(Pe);return function(We,st){var Ye=re(We,st,"List"),Je=Ye.$$prototype;return Je.context=Je.document=Je.style=Oe,W(Ye,"items","blocks"),W(Ye,"content","blocks"),W(Ye,"items?","blocks?"),Ue(Ye,"$initialize",function ht(N,tt,E){var rt=ht.$$p||Oe,ot=this;return ht.$$p=null,E==null&&(E=me([],{})),v(ot,G(ot,"initialize",ht,!1,!0),"initialize",[N,tt,E],rt)},-3),Ue(Ye,"$outline?",function(){var N=this,tt=Oe;return K(tt=N.context["$=="]("ulist"))?tt:N.context["$=="]("olist")}),Ue(Ye,"$convert",function ht(){var N=ht.$$p||Oe,tt=this,E=Oe;return ht.$$p=null,qe(tt.context,"colist")?(E=v(tt,G(tt,"convert",ht,!1,!0),"convert",[],N),tt.document.$callouts().$next_list(),E):v(tt,G(tt,"convert",ht,!1,!0),"convert",[],N)}),W(Ye,"render","convert"),Ue(Ye,"$to_s",function(){var N=this;return"#<"+N.$class()+"@"+N.$object_id()+" {context: "+N.context.$inspect()+", style: "+N.style.$inspect()+", items: "+N.$items().$size()+"}>"})}(Pe[0],pt("AbstractBlock")),function(We,st,Ye){var Je=re(We,st,"ListItem"),ht=[Je].concat(Ye),N=a.$r(ht),tt=Je.$$prototype;return tt.text=tt.subs=tt.blocks=Oe,W(Je,"list","parent"),Je.$attr_accessor("marker"),Ue(Je,"$initialize",function E(rt,ot){E.$$p;var X=this;return E.$$p=null,ot==null&&(ot=Oe),v(X,G(X,"initialize",E,!1,!0),"initialize",[rt,"list_item"],null),X.text=ot,X.level=rt.$level(),X.subs=N("NORMAL_SUBS").$drop(0)},-2),Ue(Je,"$text?",function(){var rt=this;return!K(rt.text["$nil_or_empty?"]())}),Ue(Je,"$text",function(){var rt=this,ot=Oe;return K(ot=rt.text)?rt.$apply_subs(rt.text,rt.subs):ot}),Je.$attr_writer("text"),Ue(Je,"$simple?",function(){var rt=this,ot=Oe,X=Oe,M=Oe,He=Oe;return K(ot=rt.blocks["$empty?"]())?ot:K(X=K(M=rt.blocks.$size()["$=="](1))?N("List")["$==="](He=rt.blocks["$[]"](0)):M)?He["$outline?"]():X}),Ue(Je,"$compound?",function(){var rt=this;return rt["$simple?"]()["$!"]()}),Ue(Je,"$fold_first",function(){var rt=this;return rt.text=K(rt.text["$nil_or_empty?"]())?rt.blocks.$shift().$source():""+rt.text+N("LF")+rt.blocks.$shift().$source(),Oe}),Ue(Je,"$to_s",function(){var rt=this,ot=Oe;return"#<"+rt.$class()+"@"+rt.$object_id()+" {list_context: "+rt.$parent().$context().$inspect()+", text: "+rt.text.$inspect()+", blocks: "+(K(ot=rt.blocks)?ot:[]).$size()+"}>"})}(Pe[0],pt("AbstractBlock"),Pe)}(T[0],T)},Opal.modules["asciidoctor/parser"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.send,v=a.truthy,G=a.hash2,Ue=a.to_ary,K=a.defs,qe=a.eqeq,T=a.not,Oe=a.gvars,Ne=a.neqeq,Ke=a.rb_plus,De=a.rb_lt,Pe=a.rb_gt,pt=a.to_a,We=a.eqeqeq,st=a.rb_minus,Ye=a.rb_times,Je=a.thrower,ht=[],N=a.nil,tt=a.$$$;return a.add_stubs("include,new,proc,start_with?,match?,is_delimited_block?,private_class_method,parse_document_header,[],has_more_lines?,next_section,assign_numeral,<<,blocks,skip_blank_lines,parse_block_metadata_lines,attributes,is_next_line_doctitle?,[]=,finalize_header,nil_or_empty?,title=,sourcemap,cursor,parse_section_title,id=,include?,sub_specialchars,sub_attributes,source_location=,header,attribute_locked?,id,clear,delete,instance_variable_get,parse_header_metadata,==,!,register,process_authors,update,doctype,parse_manpage_header,=~,downcase,error,logger,message_with_context,cursor_at_line,backend,save,is_next_line_section?,initialize_section,join,map,read_lines_until,lstrip,split,title,restore_save,discard_save,header?,empty?,context,!=,attr?,attr,key?,document,+,level,special,sectname,to_i,<,>,warn,next_block,blocks?,style,style=,parent=,content_model,content_model=,lines,subs,size,context=,shift,unwrap_standalone_preamble,source_location,merge,fetch,parse_block_metadata_line,extensions,block_macros?,mark,read_line,terminator,to_s,masq,to_sym,registered_for_block?,debug?,debug,cursor_at_mark,strict_verbatim_paragraphs,unshift_line,markdown_syntax,keys,chr,uniform?,length,end_with?,parse_attributes,attribute_missing,tr,basename,assign_caption,registered_for_block_macro?,config,process_method,replace,parse_callout_list,callouts,===,parse_list,parse_description_list,underline_style_section_titles,is_section_title?,peek_line,atx_section_title?,generate_id,level=,read_paragraph_lines,adjust_indentation!,map!,slice,pop,build_block,apply_subs,chop,catalog_inline_anchors,rekey,index,strip,-,parse_table,each,raise,title?,update_attributes,commit_subs,sub?,catalog_callouts,source,remove_sub,block_terminates_paragraph,to_proc,nil?,parse_blocks,parse_list_item,items,scan,gsub,count,advance,dup,match,callout_ids,next_list,catalog_inline_anchor,marker=,catalog_inline_biblio_anchor,set_option,text=,resolve_ordered_list_marker,read_lines_for_list_item,skip_line_comments,unshift_lines,fold_first,text?,is_sibling_list_item?,concat,find,casecmp,sectname=,special=,numbered=,numbered,lineno,peek_lines,setext_section_title?,abs,cursor_at_prev_line,process_attribute_entries,next_line_empty?,apply_header_subs,rstrip,each_with_index,compact,to_h,squeeze,to_a,parse_style_attribute,process_attribute_entry,skip_comment_lines,store_attribute,sanitize_attribute_name,set_attribute,save_to,delete_attribute,ord,int_to_roman,resolve_list_marker,parse_colspecs,create_columns,has_header_option=,format,starts_with_delimiter?,close_open_cell,parse_cellspec,delimiter,match_delimiter,pre_match,post_match,buffer_has_unclosed_quotes?,skip_past_delimiter,buffer=,buffer,skip_past_escaped_delimiter,keep_cell_open,push_cellspec,close_cell,cell_open?,columns,assign_column_widths,partition_header_footer,upto,partition,shorthand_property_syntax,each_char,yield_buffered_attribute,any?,*,each_byte,%"),function(E,rt){var ot=ae(E,"Asciidoctor"),X=[ot].concat(rt);return function(M,He,ke){var Ie=re(M,He,"Parser"),Re=[Ie].concat(ke),oe=a.$r(Re);return Ie.$include(oe("Logging")),W(Re[0],"BlockMatchData",oe("Struct").$new("context","masq","tip","terminator")),W(Re[0],"TAB"," "),W(Re[0],"TabIndentRx",/^\t+/),W(Re[0],"StartOfBlockProc",me(Ie,"proc",[],function we(J){var B=we.$$s==null?this:we.$$s,q=N,ie=N;return J==null&&(J=N),v(q=v(ie=J["$start_with?"]("["))?oe("BlockAttributeLineRx")["$match?"](J):ie)?q:B["$is_delimited_block?"](J)},{$$s:Ie})),W(Re[0],"StartOfListProc",me(Ie,"proc",[],function(J){return J==null&&(J=N),oe("AnyListRx")["$match?"](J)})),W(Re[0],"StartOfBlockOrListProc",me(Ie,"proc",[],function we(J){var B=we.$$s==null?this:we.$$s,q=N,ie=N,te=N;return J==null&&(J=N),v(q=v(ie=B["$is_delimited_block?"](J))?ie:v(te=J["$start_with?"]("["))?oe("BlockAttributeLineRx")["$match?"](J):te)?q:oe("AnyListRx")["$match?"](J)},{$$s:Ie})),W(Re[0],"NoOp",N),W(Re[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),W(Re[0],"TableCellHorzAlignments",G(["<",">","^"],{"<":"left",">":"right","^":"center"})),W(Re[0],"TableCellVertAlignments",G(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),W(Re[0],"TableCellStyles",G(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),Ie.$private_class_method("new"),K(Ie,"$parse",function(J,B,q){var ie,te,fe=this,H=N,g=N,u=N;if(q==null&&(q=G([],{})),H=fe.$parse_document_header(J,B,g=q["$[]"]("header_only")),!v(g))for(;v(J["$has_more_lines?"]());)te=fe.$next_section(J,B,H),ie=Ue(te),u=ie[0]==null?N:ie[0],H=ie[1]==null?N:ie[1],v(u)&&(B.$assign_numeral(u),B.$blocks()["$<<"](u));return B},-3),K(Ie,"$parse_document_header",function(J,B,q){var ie,te,fe,H=this,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N;return q==null&&(q=!1),g=v(J.$skip_blank_lines())?H.$parse_block_metadata_lines(J,B):G([],{}),u=B.$attributes(),v(m=H["$is_next_line_doctitle?"](J,g,u["$[]"]("leveloffset")))&&v(g["$[]"]("title"))?(u["$[]="]("authorcount",0),B.$finalize_header(g,!1)):(v((R=u["$[]"]("doctitle"))["$nil_or_empty?"]())||B["$title="](k=R),v(m)?(v(B.$sourcemap())&&(b=J.$cursor()),te=H.$parse_section_title(J,B),ie=Ue(te),fe=[ie[0]==null?N:ie[0]],me(B,"id=",fe),fe[fe.length-1],ie[1]==null||ie[1],D=ie[2]==null?N:ie[2],ie[3]==null||ie[3],P=ie[4]==null?N:ie[4],v(k)?D=N:(B["$title="](D),v((ie=["doctitle",k=B.$sub_specialchars(D)],me(u,"[]=",ie),ie[ie.length-1])["$include?"](oe("ATTR_REF_HEAD")))&&u["$[]="]("doctitle",k=B.$sub_attributes(k,G(["attribute_missing"],{attribute_missing:"skip"})))),v(b)&&B.$header()["$source_location="](b),v(P)||v(B["$attribute_locked?"]("compat-mode"))||u["$[]="]("compat-mode",""),v(he=g["$[]"]("separator"))&&(v(B["$attribute_locked?"]("title-separator"))||u["$[]="]("title-separator",he)),v(le=g["$[]"]("id"))?B["$id="](le):le=B.$id(),v(Se=g["$[]"]("role"))&&u["$[]="]("role",Se),v(Be=g["$[]"]("reftext"))&&u["$[]="]("reftext",Be),g.$clear(),(Xe=B.$instance_variable_get("@attributes_modified")).$delete("doctitle"),H.$parse_header_metadata(J,B,N),v(Xe["$include?"]("doctitle"))?v((R=u["$[]"]("doctitle"))["$nil_or_empty?"]())||qe(R,k)?u["$[]="]("doctitle",k):B["$title="](R):T(D)&&Xe["$<<"]("doctitle"),v(le)&&B.$register("refs",[le,B])):v(it=u["$[]"]("author"))?(_t=H.$process_authors(it,!0,!1),v(u["$[]"]("authorinitials"))&&_t.$delete("authorinitials"),u.$update(_t)):v(it=u["$[]"]("authors"))?(_t=H.$process_authors(it,!0),u.$update(_t)):u["$[]="]("authorcount",0),qe(B.$doctype(),"manpage")&&H.$parse_manpage_header(J,B,g,q),B.$finalize_header(g))},-3),K(Ie,"$parse_manpage_header",function(J,B,q,ie){var te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N;return ie==null&&(ie=!1),v(oe("ManpageTitleVolnumRx")["$=~"]((H=B.$attributes())["$[]"]("doctitle")))?(H["$[]="]("manvolnum",g=(te=Oe["~"])===N?N:te["$[]"](2)),H["$[]="]("mantitle",(v((u=(te=Oe["~"])===N?N:te["$[]"](1))["$include?"](oe("ATTR_REF_HEAD")))?B.$sub_attributes(u):u).$downcase())):(fe.$logger().$error(fe.$message_with_context("non-conforming manpage title",G(["source_location"],{source_location:J.$cursor_at_line(1)}))),H["$[]="]("mantitle",v(m=v(R=H["$[]"]("doctitle"))?R:H["$[]"]("docname"))?m:"command"),H["$[]="]("manvolnum",g="1")),v(k=H["$[]"]("manname"))&&v(H["$[]"]("manpurpose"))?(v(m=H["$[]"]("manname-title"))||H["$[]="]("manname-title","Name"),H["$[]="]("mannames",[k]),qe(B.$backend(),"manpage")&&(H["$[]="]("docname",k),H["$[]="]("outfilesuffix","."+g))):v(ie)||(J.$skip_blank_lines(),J.$save(),q.$update(fe.$parse_block_metadata_lines(J,B)),v(b=fe["$is_next_line_section?"](J,G([],{})))?qe(b,1)?(D=fe.$initialize_section(J,B,G([],{})),P=me(J.$read_lines_until(G(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Xe){return Xe==null&&(Xe=N),Xe.$lstrip()}).$join(" "),v(oe("ManpageNamePurposeRx")["$=~"](P))?(v((k=(te=Oe["~"])===N?N:te["$[]"](1))["$include?"](oe("ATTR_REF_HEAD")))&&(k=B.$sub_attributes(k)),v(k["$include?"](","))?k=(he=me(k.$split(","),"map",[],function(Xe){return Xe==null&&(Xe=N),Xe.$lstrip()}))["$[]"](0):he=[k],v((le=(te=Oe["~"])===N?N:te["$[]"](2))["$include?"](oe("ATTR_REF_HEAD")))&&(le=B.$sub_attributes(le)),v(m=H["$[]"]("manname-title"))||H["$[]="]("manname-title",D.$title()),v(D.$id())&&H["$[]="]("manname-id",D.$id()),H["$[]="]("manname",k),H["$[]="]("mannames",he),H["$[]="]("manpurpose",le),qe(B.$backend(),"manpage")&&(H["$[]="]("docname",k),H["$[]="]("outfilesuffix","."+g))):Se="non-conforming name section body"):Se="name section must be at level 1":Se="name section expected",v(Se)?(J.$restore_save(),fe.$logger().$error(fe.$message_with_context(Se,G(["source_location"],{source_location:J.$cursor()}))),H["$[]="]("manname",k=v(m=H["$[]"]("docname"))?m:"command"),H["$[]="]("mannames",[k]),qe(B.$backend(),"manpage")&&(H["$[]="]("docname",k),H["$[]="]("outfilesuffix","."+g))):J.$discard_save()),N},-4),K(Ie,"$next_section",function(J,B,q){var ie,te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N,at=N,vt=N,St=N,Et=N;for(q==null&&(q=G([],{})),H=g=u=!1,qe(B.$context(),"document")&&v(B.$blocks()["$empty?"]())&&(v(m=B["$header?"]())||v(q.$delete("invalid-header"))||T(fe["$is_next_line_section?"](J,q)))?(R=(k=B).$doctype()["$=="]("book"),(v(m)||v(R)&&Ne(q["$[]"](1),"abstract"))&&(H=g=oe("Block").$new(B,"preamble",G(["content_model"],{content_model:"compound"})),v(R)&&v(B["$attr?"]("preface-title"))&&H["$title="](B.$attr("preface-title")),B.$blocks()["$<<"](H)),b=B,D=0,v(B.$attributes()["$key?"]("fragment"))?P=-1:v(R)?(ie=[1,0],P=ie[0],he=ie[1]):P=1):(R=(k=B.$document()).$doctype()["$=="]("book"),b=fe.$initialize_section(J,B,q),q=v(le=q["$[]"]("title"))?G(["title"],{title:le}):G([],{}),P=Ke(D=b.$level(),1),qe(D,0)?u=R:qe(D,1)&&v(b.$special())&&(qe(Se=b.$sectname(),"appendix")||qe(Se,"preface")||qe(Se,"abstract")||(P=N))),J.$skip_blank_lines();v(J["$has_more_lines?"]());){if(fe.$parse_block_metadata_lines(J,k,q),v(Be=fe["$is_next_line_section?"](J,q)))if(v(k["$attr?"]("leveloffset"))&&(Be=Ke(Be,k.$attr("leveloffset").$to_i()),v(De(Be,0))&&(Be=0)),v(Pe(Be,D)))v(P)?qe(Be,P)||v(he)&&qe(Be,he)||v(De(P,0))||(Xe=v(he)?"expected levels "+he+" or "+P:"expected level "+P,fe.$logger().$warn(fe.$message_with_context("section title out of sequence: "+Xe+", got level "+Be,G(["source_location"],{source_location:J.$cursor()})))):fe.$logger().$error(fe.$message_with_context(""+Se+" sections do not support nested sections",G(["source_location"],{source_location:J.$cursor()}))),te=fe.$next_section(J,b,q),ie=Ue(te),it=ie[0]==null?N:ie[0],q=ie[1]==null?N:ie[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else if(qe(Be,0)&&qe(b,k))v(R)||fe.$logger().$error(fe.$message_with_context("level 0 sections can only be used when doctype is book",G(["source_location"],{source_location:J.$cursor()}))),te=fe.$next_section(J,b,q),ie=Ue(te),it=ie[0]==null?N:ie[0],q=ie[1]==null?N:ie[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else break;else _t=J.$cursor(),v(at=fe.$next_block(J,v(vt=g)?vt:b,q,G(["parse_metadata"],{parse_metadata:!1})))&&(v(u)&&(T(b["$blocks?"]())?Ne(at.$style(),"partintro")?qe(at.$style(),"open")&&qe(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=oe("Block").$new(b,"open",G(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),b.$blocks()["$<<"](g)):qe(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"](oe("Block").$new(at,"paragraph",G(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):qe(b.$blocks().$size(),1)&&(St=b.$blocks()["$[]"](0),T(g)&&qe(St.$content_model(),"compound")?fe.$logger().$error(fe.$message_with_context("illegal block content outside of partintro block",G(["source_location"],{source_location:_t}))):Ne(St.$content_model(),"compound")&&(at["$parent="](g=oe("Block").$new(b,"open",G(["content_model"],{content_model:"compound"}))),qe(St.$style(),(ie=["partintro"],me(g,"style=",ie),ie[ie.length-1]))&&(St["$context="]("paragraph"),St["$style="](N)),b.$blocks().$shift(),g["$<<"](St),b.$blocks()["$<<"](g)))),(v(vt=g)?vt:b).$blocks()["$<<"](at),q.$clear());if(!v(vt=J.$skip_blank_lines()))break}if(v(u))v(b["$blocks?"]())&&qe(b.$blocks()["$[]"](-1).$context(),"section")||fe.$logger().$error(fe.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",G(["source_location"],{source_location:J.$cursor()})));else if(v(H))if(v(H["$blocks?"]()))if(v(R)||v(k.$blocks()["$[]"](1))||T(oe("Compliance").$unwrap_standalone_preamble()))v(k.$sourcemap())&&H["$source_location="](H.$blocks()["$[]"](0).$source_location());else for(k.$blocks().$shift();v(Et=H.$blocks().$shift());)k["$<<"](Et);else k.$blocks().$shift();return[qe(b,B)?N:b,q.$merge()]},-3),K(Ie,"$next_block",function(J,B,q,ie){var te,fe,H=this,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N,at=N,vt=N,St=N,Et=N,kt=N,Nt=N,Rt=N,Wt=N,jt=N,er=N,Kt=N,Pt=N,Yt=N,Xt=N,nr=N,Gn=N,rn=N,Jt=N,Ut=N,Zt=N,Cr=N,Ht=N,Sr=N,hn=N,Tr=N,Er=N,bn=N,Br=N,Xr=N,Xs=N,Qs=N,Nc=N,Zs=N,Ic=N;if(Oe["~"]==null&&(Oe["~"]=N),q==null&&(q=G([],{})),ie==null&&(ie=G([],{})),!v(g=J.$skip_blank_lines()))return N;if(v(u=ie["$[]"]("text_only"))&&v(Pe(g,0))&&(ie.$delete("text_only"),u=N),m=B.$document(),v(ie.$fetch("parse_metadata",!0))){for(;v(H.$parse_block_metadata_line(J,m,q,ie));)if(J.$shift(),!v(R=J.$skip_blank_lines()))return N}if(v(k=m.$extensions())&&(te=[k["$blocks?"](),k["$block_macros?"]()],b=te[0],D=te[1]),J.$mark(),te=[J.$read_line(),m.$attributes(),q["$[]"](1)],P=te[0],he=te[1],le=te[2],Se=Be=Xe=it=N,v(_t=H["$is_delimited_block?"](P,!0))&&(Be=Xe=_t.$context(),it=_t.$terminator(),v(le)?qe(le,Be.$to_s())||(v(_t.$masq()["$include?"](le))?Be=le.$to_sym():v(_t.$masq()["$include?"]("admonition"))&&v(oe("ADMONITION_STYLES")["$include?"](le))?Be="admonition":v(b)&&v(k["$registered_for_block?"](le,Be))?Be=le.$to_sym():(v(H.$logger()["$debug?"]())&&H.$logger().$debug(H.$message_with_context("unknown style for "+Be+" block: "+le,G(["source_location"],{source_location:J.$cursor_at_mark()}))),le=Be.$to_s())):le=(te=["style",Be.$to_s()],me(q,"[]=",te),te[te.length-1])),!v(_t))for(;v(!0);){if(v(le)&&v(oe("Compliance").$strict_verbatim_paragraphs())&&v(oe("VERBATIM_STYLES")["$include?"](le))){Be=le.$to_sym(),J.$unshift_line(P);break}if(v(u))at=P["$start_with?"](" ",oe("TAB"));else if(vt=oe("Compliance").$markdown_syntax(),v(P["$start_with?"](" "))){if(te=[!0," "],at=te[0],St=te[1],v(vt)&&v(me(P.$lstrip(),"start_with?",pt(oe("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&v(oe("MarkdownThematicBreakRx")["$match?"](P))){Se=oe("Block").$new(B,"thematic_break",G(["content_model"],{content_model:"empty"}));break}}else if(v(P["$start_with?"](oe("TAB"))))te=[!0,oe("TAB")],at=te[0],St=te[1];else if(te=[!1,P.$chr()],at=te[0],St=te[1],Et=v(vt)?oe("HYBRID_LAYOUT_BREAK_CHARS"):oe("LAYOUT_BREAK_CHARS"),v(Et["$key?"](St))&&v(v(vt)?oe("ExtLayoutBreakRx")["$match?"](P):v(R=H["$uniform?"](P,St,kt=P.$length()))?Pe(kt,2):R)){Se=oe("Block").$new(B,Et["$[]"](St),G(["content_model"],{content_model:"empty"}));break}else if(v(P["$end_with?"]("]"))&&v(P["$include?"]("::"))){if((qe(St,"i")||v(P["$start_with?"]("video:","audio:")))&&v(oe("BlockMediaMacroRx")["$=~"](P))){if(te=[((fe=Oe["~"])===N?N:fe["$[]"](1)).$to_sym(),(fe=Oe["~"])===N?N:fe["$[]"](2),(fe=Oe["~"])===N?N:fe["$[]"](3)],Nt=te[0],Rt=te[1],Wt=te[2],Se=oe("Block").$new(B,Nt,G(["content_model"],{content_model:"empty"})),v(Wt)){switch(Nt){case"video":jt=["poster","width","height"];break;case"audio":jt=[];break;default:jt=["alt","width","height"]}Se.$parse_attributes(Wt,jt,G(["sub_input","into"],{sub_input:!0,into:q}))}if(v(q["$key?"]("style"))&&q.$delete("style"),v(Rt["$include?"](oe("ATTR_REF_HEAD")))){if(v((er=Se.$sub_attributes(Rt))["$empty?"]())&&qe(v(R=he["$[]"]("attribute-missing"))?R:oe("Compliance").$attribute_missing(),"drop-line")&&v(Se.$sub_attributes(Ke(Rt," "),G(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),N;Rt=er}qe(Nt,"image")&&(m.$register("images",Rt),q["$[]="]("imagesdir",he["$[]"]("imagesdir")),v(R=q["$[]"]("alt"))||q["$[]="]("alt",v(Kt=le)?Kt:(te=["default-alt",oe("Helpers").$basename(Rt,!0).$tr("_-"," ")],me(q,"[]=",te),te[te.length-1])),v((Pt=q.$delete("scaledwidth"))["$nil_or_empty?"]())||q["$[]="]("scaledwidth",v(oe("TrailingDigitsRx")["$match?"](Pt))?""+Pt+"%":Pt),v(q["$[]"]("title"))&&(Se["$title="](Yt=q.$delete("title")),Se.$assign_caption(q.$delete("caption"),"figure"))),q["$[]="]("target",Rt);break}else if(qe(St,"t")&&v(P["$start_with?"]("toc:"))&&v(oe("BlockTocMacroRx")["$=~"](P))){Se=oe("Block").$new(B,"toc",G(["content_model"],{content_model:"empty"})),v((te=Oe["~"])===N?N:te["$[]"](1))&&Se.$parse_attributes((te=Oe["~"])===N?N:te["$[]"](1),[],G(["into"],{into:q}));break}else if(v(v(D)?v(R=v(Kt=oe("CustomBlockMacroRx")["$=~"](P))?Xt=k["$registered_for_block_macro?"]((te=Oe["~"])===N?N:te["$[]"](1)):Kt)?R:nr=H.$logger()["$debug?"]():v(R=H.$logger()["$debug?"]())?nr=oe("CustomBlockMacroRx")["$=~"](P):R))if(v(nr))H.$logger().$debug(H.$message_with_context("unknown name for block macro: "+((te=Oe["~"])===N?N:te["$[]"](1)),G(["source_location"],{source_location:J.$cursor_at_mark()})));else{if(Gn=(te=Oe["~"])===N?N:te["$[]"](3),v((Rt=(te=Oe["~"])===N?N:te["$[]"](2))["$include?"](oe("ATTR_REF_HEAD")))){if(v((er=B.$sub_attributes(Rt))["$empty?"]())&&qe(v(R=he["$[]"]("attribute-missing"))?R:oe("Compliance").$attribute_missing(),"drop-line")&&v(B.$sub_attributes(Ke(Rt," "),G(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),N;Rt=er}if(qe((rn=Xt.$config())["$[]"]("content_model"),"attributes")?v(Gn)&&m.$parse_attributes(Gn,v(R=v(Kt=rn["$[]"]("positional_attrs"))?Kt:rn["$[]"]("pos_attrs"))?R:[],G(["sub_input","into"],{sub_input:!0,into:q})):q["$[]="]("text",v(R=Gn)?R:""),v(Jt=rn["$[]"]("default_attrs"))&&me(q,"update",[Jt],function(nn,xs){return xs==null&&(xs=N),xs}),v(Se=Xt.$process_method()["$[]"](B,Rt,q))&&Ne(Se,B)){q.$replace(Se.$attributes());break}else return q.$clear(),N}}if(T(at)&&qe(St=v(R=St)?R:P.$chr(),"<")&&v(oe("CalloutListRx")["$=~"](P))){J.$unshift_line(P),Se=H.$parse_callout_list(J,Oe["~"],B,m.$callouts()),q["$[]="]("style","arabic");break}else if(v(oe("UnorderedListRx")["$match?"](P))){J.$unshift_line(P),T(le)&&We(oe("Section"),B)&&qe(B.$sectname(),"bibliography")&&q["$[]="]("style",le="bibliography"),Se=H.$parse_list(J,"ulist",B,le);break}else if(v(oe("OrderedListRx")["$match?"](P))){J.$unshift_line(P),Se=H.$parse_list(J,"olist",B,le),v(Se.$style())&&q["$[]="]("style",Se.$style());break}else if((v(P["$include?"]("::"))||v(P["$include?"](";;")))&&v(oe("DescriptionListRx")["$=~"](P))){J.$unshift_line(P),Se=H.$parse_description_list(J,Oe["~"],B);break}else if((qe(le,"float")||qe(le,"discrete"))&&v(v(oe("Compliance").$underline_style_section_titles())?H["$is_section_title?"](P,J.$peek_line()):v(R=at["$!"]())?H["$atx_section_title?"](P):R)){J.$unshift_line(P),fe=H.$parse_section_title(J,m,q["$[]"]("id")),te=Ue(fe),Ut=te[0]==null?N:te[0],Zt=te[1]==null?N:te[1],Yt=te[2]==null?N:te[2],Cr=te[3]==null?N:te[3],v(Zt)&&q["$[]="]("reftext",Zt),Se=oe("Block").$new(B,"floating_title",G(["content_model"],{content_model:"empty"})),Se["$title="](Yt),q.$delete("title"),Se["$id="](v(R=Ut)?R:v(he["$key?"]("sectids"))?oe("Section").$generate_id(Se.$title(),m):N),Se["$level="](Cr);break}else if(v(le)&&Ne(le,"normal"))if(v(oe("PARAGRAPH_STYLES")["$include?"](le))){Be=le.$to_sym(),Xe="paragraph",J.$unshift_line(P);break}else if(v(oe("ADMONITION_STYLES")["$include?"](le))){Be="admonition",Xe="paragraph",J.$unshift_line(P);break}else if(v(b)&&v(k["$registered_for_block?"](le,"paragraph"))){Be=le.$to_sym(),Xe="paragraph",J.$unshift_line(P);break}else v(H.$logger()["$debug?"]())&&H.$logger().$debug(H.$message_with_context("unknown style for paragraph: "+le,G(["source_location"],{source_location:J.$cursor_at_mark()}))),le=N;if(J.$unshift_line(P),v(at)&&T(le))Ht=H.$read_paragraph_lines(J,Sr=qe(g,0)?ie["$[]"]("list_type"):N,G(["skip_line_comments"],{skip_line_comments:u})),H["$adjust_indentation!"](Ht),v(u)||qe(Sr,"dlist")?Se=oe("Block").$new(B,"paragraph",G(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})):Se=oe("Block").$new(B,"literal",G(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:q}));else{if(Ht=H.$read_paragraph_lines(J,v(R=g["$=="](0))?ie["$[]"]("list_type"):R,G(["skip_line_comments"],{skip_line_comments:!0})),v(u))v(at)&&qe(le,"normal")&&H["$adjust_indentation!"](Ht),Se=oe("Block").$new(B,"paragraph",G(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(v(oe("ADMONITION_STYLE_HEADS")["$include?"](St))&&v(P["$include?"](":"))&&v(oe("AdmonitionParagraphRx")["$=~"](P)))Ht["$[]="](0,(te=Oe["~"])===N?N:te.$post_match()),q["$[]="]("name",hn=(te=["style",(fe=Oe["~"])===N?N:fe["$[]"](1)],me(q,"[]=",te),te[te.length-1]).$downcase()),q["$[]="]("textlabel",v(R=q.$delete("caption"))?R:he["$[]"](""+hn+"-caption")),Se=oe("Block").$new(B,"admonition",G(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(v(vt)&&qe(St,">")&&v(P["$start_with?"]("> "))){if(me(Ht,"map!",[],function(nn){return nn==null&&(nn=N),qe(nn,">")?nn.$slice(1,nn.$length()):v(nn["$start_with?"]("> "))?nn.$slice(2,nn.$length()):nn}),v(Ht["$[]"](-1)["$start_with?"]("-- "))&&(Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length()),!v(Ht["$empty?"]())))for(;v(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();q["$[]="]("style","quote"),Se=H.$build_block("quote","compound",!1,B,oe("Reader").$new(Ht),q),v(Tr)&&(fe=Se.$apply_subs(Tr).$split(", ",2),te=Ue(fe),Er=te[0]==null?N:te[0],bn=te[1]==null?N:te[1],v(Er)&&q["$[]="]("attribution",Er),v(bn)&&q["$[]="]("citetitle",bn))}else if(qe(St,'"')&&v(Pe(Ht.$size(),1))&&v(Ht["$[]"](-1)["$start_with?"]("-- "))&&v(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,P.$slice(1,P.$length())),Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length());v(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();Ht["$<<"](Ht.$pop().$chop()),q["$[]="]("style","quote"),Se=oe("Block").$new(B,"quote",G(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})),fe=Se.$apply_subs(Tr).$split(", ",2),te=Ue(fe),Er=te[0]==null?N:te[0],bn=te[1]==null?N:te[1],v(Er)&&q["$[]="]("attribution",Er),v(bn)&&q["$[]="]("citetitle",bn)}else v(at)&&qe(le,"normal")&&H["$adjust_indentation!"](Ht),Se=oe("Block").$new(B,"paragraph",G(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));H.$catalog_inline_anchors(Ht.$join(oe("LF")),Se,m,J)}break}if(!v(Se))switch(Be){case"listing":case"source":(qe(Be,"source")||T(q["$[]"](1))&&v(Br=v(Kt=q["$[]"](2))?Kt:he["$[]"]("source-language")))&&(v(Br)?(q["$[]="]("style","source"),q["$[]="]("language",Br),oe("AttributeList").$rekey(q,[N,N,"linenums"])):(oe("AttributeList").$rekey(q,[N,"language","linenums"]),v(q["$key?"]("language"))||v(he["$key?"]("source-language"))&&q["$[]="]("language",he["$[]"]("source-language"))),v(q["$key?"]("linenums"))||(v(q["$[]"]("linenums-option"))||v(he["$[]"]("source-linenums-option")))&&q["$[]="]("linenums",""),v(q["$key?"]("indent"))||v(he["$key?"]("source-indent"))&&q["$[]="]("indent",he["$[]"]("source-indent"))),Se=H.$build_block("listing","verbatim",it,B,J,q);break;case"fenced_code":q["$[]="]("style","source"),v(Pe(kt=P.$length(),3))&&(v(Xr=(Br=P.$slice(3,kt)).$index(","))?v(Pe(Xr,0))?(Br=Br.$slice(0,Xr).$strip(),v(De(Xr,st(kt,4)))&&q["$[]="]("linenums","")):v(Pe(kt,4))&&q["$[]="]("linenums",""):Br=Br.$lstrip()),v(Br["$nil_or_empty?"]())?v(he["$key?"]("source-language"))&&q["$[]="]("language",he["$[]"]("source-language")):q["$[]="]("language",Br),v(q["$key?"]("linenums"))||(v(q["$[]"]("linenums-option"))||v(he["$[]"]("source-linenums-option")))&&q["$[]="]("linenums",""),v(q["$key?"]("indent"))||v(he["$key?"]("source-indent"))&&q["$[]="]("indent",he["$[]"]("source-indent")),it=it.$slice(0,3),Se=H.$build_block("listing","verbatim",it,B,J,q);break;case"table":Xs=J.$cursor(),Qs=oe("Reader").$new(J.$read_lines_until(G(["terminator","skip_line_comments","context","cursor"],{terminator:it,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Xs),v(it["$start_with?"]("|","!"))||v(Kt=q["$[]"]("format"))||q["$[]="]("format",v(it["$start_with?"](","))?"csv":"dsv"),Se=H.$parse_table(Qs,B,q);break;case"sidebar":Se=H.$build_block(Be,"compound",it,B,J,q);break;case"admonition":q["$[]="]("name",hn=le.$downcase()),q["$[]="]("textlabel",v(Kt=q.$delete("caption"))?Kt:he["$[]"](""+hn+"-caption")),Se=H.$build_block(Be,"compound",it,B,J,q);break;case"open":case"abstract":case"partintro":Se=H.$build_block("open","compound",it,B,J,q);break;case"literal":Se=H.$build_block(Be,"verbatim",it,B,J,q);break;case"example":v(q["$[]"]("collapsible-option"))&&q["$[]="]("caption",""),Se=H.$build_block(Be,"compound",it,B,J,q);break;case"quote":case"verse":oe("AttributeList").$rekey(q,[N,"attribution","citetitle"]),Se=H.$build_block(Be,qe(Be,"verse")?"verbatim":"compound",it,B,J,q);break;case"stem":case"latexmath":case"asciimath":qe(Be,"stem")&&q["$[]="]("style",oe("STEM_TYPE_ALIASES")["$[]"](v(Kt=q["$[]"](2))?Kt:he["$[]"]("stem"))),Se=H.$build_block("stem","raw",it,B,J,q);break;case"pass":Se=H.$build_block(Be,"raw",it,B,J,q);break;case"comment":return H.$build_block(Be,"skip",it,B,J,q),q.$clear(),N;default:if(v(b)&&v(Xt=k["$registered_for_block?"](Be,Xe))){if(qe(Nc=(rn=Xt.$config())["$[]"]("content_model"),"skip")||(v((Zs=v(Kt=rn["$[]"]("positional_attrs"))?Kt:rn["$[]"]("pos_attrs"))["$nil_or_empty?"]())||oe("AttributeList").$rekey(q,Ke([N],Zs)),v(Jt=rn["$[]"]("default_attrs"))&&me(Jt,"each",[],function(nn,xs){var uo;return nn==null&&(nn=N),xs==null&&(xs=N),v(Kt=q["$[]"](nn))?Kt:(uo=[nn,xs],me(q,"[]=",uo),uo[uo.length-1])}),q["$[]="]("cloaked-context",Xe)),!v(Se=H.$build_block(Be,Nc,it,B,J,q,G(["extension"],{extension:Xt}))))return q.$clear(),N}else H.$raise("Unsupported block type "+Be+" at "+J.$cursor())}return v(m.$sourcemap())&&Se["$source_location="](J.$cursor_at_mark()),v(q["$[]"]("title"))&&(Se["$title="](Yt=q.$delete("title")),v(oe("CAPTION_ATTRIBUTE_NAMES")["$[]"](Se.$context()))&&Se.$assign_caption(q.$delete("caption"))),Se["$style="](q["$[]"]("style")),v(Ic=v(R=Se.$id())?R:(te=[q["$[]"]("id")],me(Se,"id=",te),te[te.length-1]))&&(v(v(Yt)?Yt["$include?"](oe("ATTR_REF_HEAD")):Se["$title?"]())&&Se.$title(),v(m.$register("refs",[Ic,Se]))||H.$logger().$warn(H.$message_with_context("id assigned to block already in use: "+Ic,G(["source_location"],{source_location:J.$cursor_at_mark()})))),v(q["$empty?"]())||Se.$update_attributes(q),Se.$commit_subs(),v(Se["$sub?"]("callouts"))&&(v(H.$catalog_callouts(Se.$source(),m))||Se.$remove_sub("callouts")),Se},-3),K(Ie,"$read_paragraph_lines",function(J,B,q){var ie=N;return q==null&&(q=G([],{})),q["$[]="]("break_on_blank_lines",!0),q["$[]="]("break_on_list_continuation",!0),q["$[]="]("preserve_last_line",!0),ie=v(B)?v(oe("Compliance").$block_terminates_paragraph())?oe("StartOfBlockOrListProc"):oe("StartOfListProc"):v(oe("Compliance").$block_terminates_paragraph())?oe("StartOfBlockProc"):oe("NoOp"),me(J,"read_lines_until",[q],ie.$to_proc())},-3),K(Ie,"$is_delimited_block?",function(J,B){var q,ie,te=this,fe=N,H=N,g=N,u=N,m=N;if(B==null&&(B=N),!(v(Pe(fe=J.$length(),1))&&v(oe("DELIMITED_BLOCK_HEADS")["$[]"](J.$slice(0,2)))))return N;if(qe(fe,2))H=J,g=2;else if(v(De(fe,5))?(H=J,g=fe):H=J.$slice(0,g=4),v(oe("Compliance").$markdown_syntax())&&v(H["$start_with?"]("`"))){if(qe(g,4)){if(qe(H,"````")||Ne(H=H.$chop(),"```"))return N;J=H,fe=g=3}else if(Ne(H,"```"))return N}else if(qe(g,3))return N;return ie=oe("DELIMITED_BLOCKS")["$[]"](H),q=Ue(ie),u=q[0]==null?N:q[0],m=q[1]==null?N:q[1],v(u)&&(qe(fe,g)||v(te["$uniform?"](J.$slice(1,fe),oe("DELIMITED_BLOCK_TAILS")["$[]"](H),st(fe,1))))?v(B)?oe("BlockMatchData").$new(u,m,H,J):!0:N},-2),K(Ie,"$build_block",function(J,B,q,ie,te,fe,H){var g,u=this,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N;switch(H==null&&(H=G([],{})),B){case"skip":g=[!0,"simple"],m=g[0],R=g[1];break;case"raw":g=[!1,"simple"],m=g[0],R=g[1];break;default:g=[!1,B],m=g[0],R=g[1]}switch(v(q["$nil?"]())?(qe(R,"verbatim")?k=te.$read_lines_until(G(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(qe(B,"compound")&&(B="simple"),k=u.$read_paragraph_lines(te,!1,G(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:m}))),b=N):Ne(R,"compound")?(k=te.$read_lines_until(G(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:J,cursor:"at_mark"})),b=N):qe(q,!1)?(k=N,b=te):(k=N,D=te.$cursor(),b=oe("Reader").$new(te.$read_lines_until(G(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:J,cursor:"at_mark"})),D)),B){case"verbatim":P=(v(he=fe["$[]"]("tabsize"))?he:ie.$document().$attributes()["$[]"]("tabsize")).$to_i(),v(le=fe["$[]"]("indent"))?u["$adjust_indentation!"](k,le.$to_i(),P):v(Pe(P,0))&&u["$adjust_indentation!"](k,-1,P);break;case"skip":return N}if(v(Se=H["$[]"]("extension")))if(fe.$delete("style"),v(Be=Se.$process_method()["$[]"](ie,v(Xe=b)?Xe:oe("Reader").$new(k),fe.$merge()))&&Ne(Be,ie))fe.$replace(Be.$attributes()),qe(Be.$content_model(),"compound")&&We(oe("Block"),Be)&&T((k=Be.$lines())["$empty?"]())&&(B="compound",b=oe("Reader").$new(k));else return N;else Be=oe("Block").$new(ie,J,G(["content_model","source","attributes"],{content_model:B,source:k,attributes:fe}));return qe(B,"compound")&&u.$parse_blocks(b,Be),Be},-7),K(Ie,"$parse_blocks",function(J,B,q){var ie=this,te=N,fe=N,H=N;if(q==null&&(q=N),v(q))for(;v(v(te=v(fe=H=ie.$next_block(J,B,q.$merge()))?B.$blocks()["$<<"](H):fe)?te:J["$has_more_lines?"]()););else for(;v(v(te=v(fe=H=ie.$next_block(J,B))?B.$blocks()["$<<"](H):fe)?te:J["$has_more_lines?"]()););return N},-3),K(Ie,"$parse_list",function(J,B,q,ie){var te,fe=this,H=N,g=N,u=N,m=N;for(Oe["~"]==null&&(Oe["~"]=N),H=oe("List").$new(q,B),g=oe("ListRxMap")["$[]"](B);v(v(u=J["$has_more_lines?"]())?g["$=~"](J.$peek_line()):u)&&(v(m=fe.$parse_list_item(J,H,Oe["~"],(te=Oe["~"])===N?N:te["$[]"](1),ie))&&H.$items()["$<<"](m),!!v(u=J.$skip_blank_lines())););return H}),K(Ie,"$catalog_callouts",function(J,B){var q=N,ie=N;return q=!1,ie=0,v(J["$include?"]("<"))&&me(J,"scan",[oe("CalloutScanRx")],function(){var fe;return v(((fe=Oe["~"])===N?N:fe["$[]"](0))["$start_with?"]("\\"))||B.$callouts().$register(qe((fe=Oe["~"])===N?N:fe["$[]"](2),".")?(ie=Ke(ie,1)).$to_s():(fe=Oe["~"])===N?N:fe["$[]"](2)),q=!0}),q}),K(Ie,"$catalog_inline_anchor",function(J,B,q,ie,te){var fe=this;return te==null&&(te=q.$document()),v(B)&&v(B["$include?"](oe("ATTR_REF_HEAD")))&&(B=te.$sub_attributes(B)),v(te.$register("refs",[J,oe("Inline").$new(q,"anchor",B,G(["type","id"],{type:"ref",id:J}))]))||(We(oe("Reader"),ie)&&(ie=ie.$cursor()),fe.$logger().$warn(fe.$message_with_context("id assigned to anchor already in use: "+J,G(["source_location"],{source_location:ie})))),N},-5),K(Ie,"$catalog_inline_anchors",function(J,B,q,ie){var te=this;return(v(J["$include?"]("[["))||v(J["$include?"]("or:")))&&me(J,"scan",[oe("InlineAnchorScanRx")],function fe(){var H,g=fe.$$s==null?this:fe.$$s,u=N,m=N,R=N,k=N;if(v(u=(H=Oe["~"])===N?N:H["$[]"](1))){if(v(m=(H=Oe["~"])===N?N:H["$[]"](2))&&v(m["$include?"](oe("ATTR_REF_HEAD")))&&v((m=q.$sub_attributes(m))["$empty?"]()))return N}else u=(H=Oe["~"])===N?N:H["$[]"](3),v(m=(H=Oe["~"])===N?N:H["$[]"](4))&&(v(m["$include?"]("]"))?(m=m.$gsub("\\]","]"),v(m["$include?"](oe("ATTR_REF_HEAD")))&&(m=q.$sub_attributes(m))):v(m["$include?"](oe("ATTR_REF_HEAD")))&&v((m=q.$sub_attributes(m))["$empty?"]())&&(m=N));return v(q.$register("refs",[u,oe("Inline").$new(B,"anchor",m,G(["type","id"],{type:"ref",id:u}))]))?N:(R=ie.$cursor_at_mark(),v(Pe(k=Ke(((H=Oe["~"])===N?N:H.$pre_match()).$count(oe("LF")),v(((H=Oe["~"])===N?N:H["$[]"](0))["$start_with?"](oe("LF")))?1:0),0))&&(R=R.$dup()).$advance(k),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+u,G(["source_location"],{source_location:R}))))},{$$s:te}),N}),K(Ie,"$catalog_inline_biblio_anchor",function(J,B,q,ie){var te=this,fe=N;return v(q.$document().$register("refs",[J,oe("Inline").$new(q,"anchor",v(fe=B)?"["+B+"]":fe,G(["type","id"],{type:"bibref",id:J}))]))||te.$logger().$warn(te.$message_with_context("id assigned to bibliography anchor already in use: "+J,G(["source_location"],{source_location:ie.$cursor()}))),N}),K(Ie,"$parse_description_list",function(J,B,q){var ie=this,te=N,fe=N,H=N,g=N,u=N;for(Oe["~"]==null&&(Oe["~"]=N),te=oe("List").$new(q,"dlist"),fe=oe("DescriptionListSiblingRx")["$[]"](B["$[]"](2)),te.$items()["$<<"](H=ie.$parse_list_item(J,te,B,fe));v(v(g=J["$has_more_lines?"]())?fe["$=~"](J.$peek_line()):g);)u=ie.$parse_list_item(J,te,Oe["~"],fe),v(H["$[]"](1))?te.$items()["$<<"](H=u):(H["$[]"](0)["$<<"](u["$[]"](0)["$[]"](0)),H["$[]="](1,u["$[]"](1)));return te}),K(Ie,"$parse_callout_list",function(J,B,q,ie){var te=this,fe=N,H=N,g=N,u=N,m=N,R=N,k=N,b=N;for(fe=oe("List").$new(q,"colist"),H=1,g=0;v(v(u=B)?u:v(m=B=oe("CalloutListRx").$match(J.$peek_line()))?J.$mark():m);)qe(R=B["$[]"](1),".")&&(R=(g=Ke(g,1)).$to_s()),qe(R,H.$to_s())||te.$logger().$warn(te.$message_with_context("callout list item index: expected "+H+", got "+R,G(["source_location"],{source_location:J.$cursor_at_mark()}))),v(k=te.$parse_list_item(J,fe,B,"<1>"))&&(fe.$items()["$<<"](k),v((b=ie.$callout_ids(fe.$items().$size()))["$empty?"]())?te.$logger().$warn(te.$message_with_context("no callout found for <"+fe.$items().$size()+">",G(["source_location"],{source_location:J.$cursor_at_mark()}))):k.$attributes()["$[]="]("coids",b)),H=Ke(H,1),B=N;return ie.$next_list(),fe}),K(Ie,"$parse_list_item",function(J,B,q,ie,te){var fe,H,g=this,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N,at=N,vt=N,St=N,Et=N,kt=N,Nt=N;if(te==null&&(te=N),qe(u=B.$context(),"dlist"))m=!0,R=oe("ListItem").$new(B,k=q["$[]"](1)),v(k["$start_with?"]("[["))&&v(oe("LeadingInlineAnchorRx")["$=~"](k))&&g.$catalog_inline_anchor((fe=Oe["~"])===N?N:fe["$[]"](1),v(b=(fe=Oe["~"])===N?N:fe["$[]"](2))?b:((fe=Oe["~"])===N?N:fe.$post_match()).$lstrip(),R,J),v(D=q["$[]"](3))&&(P=!0),he=oe("ListItem").$new(B,D),v(B.$document().$sourcemap())&&(R["$source_location="](J.$cursor()),v(P)?he["$source_location="](R.$source_location()):le=!0);else switch(P=!0,he=oe("ListItem").$new(B,D=q["$[]"](2)),v(B.$document().$sourcemap())&&he["$source_location="](J.$cursor()),u){case"ulist":he["$marker="](ie),v(D["$start_with?"]("["))&&(v(te)&&qe(te,"bibliography")?v(oe("InlineBiblioAnchorRx")["$=~"](D))&&g.$catalog_inline_biblio_anchor((fe=Oe["~"])===N?N:fe["$[]"](1),(fe=Oe["~"])===N?N:fe["$[]"](2),he,J):v(D["$start_with?"]("[["))?v(oe("LeadingInlineAnchorRx")["$=~"](D))&&g.$catalog_inline_anchor((fe=Oe["~"])===N?N:fe["$[]"](1),(fe=Oe["~"])===N?N:fe["$[]"](2),he,J):v(D["$start_with?"]("[ ] ","[x] ","[*] "))&&(B.$set_option("checklist"),he.$attributes()["$[]="]("checkbox",""),v(D["$start_with?"]("[ "))||he.$attributes()["$[]="]("checked",""),he["$text="](D.$slice(4,D.$length()))));break;case"olist":H=g.$resolve_ordered_list_marker(ie,Se=B.$items().$size(),!0,J),fe=Ue(H),ie=fe[0]==null?N:fe[0],Be=fe[1]==null?N:fe[1],he["$marker="](ie),qe(Se,0)&&T(te)&&B["$style="](v(Xe=Be)?Xe:(v(it=oe("ORDERED_LIST_STYLES")["$[]"](st(ie.$length(),1)))?it:"arabic").$to_s()),v(D["$start_with?"]("[["))&&v(oe("LeadingInlineAnchorRx")["$=~"](D))&&g.$catalog_inline_anchor((fe=Oe["~"])===N?N:fe["$[]"](1),(fe=Oe["~"])===N?N:fe["$[]"](2),he,J);break;default:he["$marker="](ie),v(D["$start_with?"]("[["))&&v(oe("LeadingInlineAnchorRx")["$=~"](D))&&g.$catalog_inline_anchor((fe=Oe["~"])===N?N:fe["$[]"](1),(fe=Oe["~"])===N?N:fe["$[]"](2),he,J)}if(J.$shift(),_t=J.$cursor(),at=oe("Reader").$new(g.$read_lines_for_list_item(J,u,ie,P),_t),v(at["$has_more_lines?"]())){for(v(le)&&he["$source_location="](_t),vt=at.$skip_line_comments(),v(St=at.$peek_line())&&(v(vt["$empty?"]())||at.$unshift_lines(vt),v(St["$empty?"]())||(Et=!0,v(m)||(P=N))),v(kt=g.$next_block(at,he,G([],{}),G(["text_only","list_type"],{text_only:v(P)?N:!0,list_type:u})))&&he.$blocks()["$<<"](kt);v(at["$has_more_lines?"]());)v(kt=g.$next_block(at,he,G([],{}),G(["list_type"],{list_type:u})))&&he.$blocks()["$<<"](kt);v(Et)&&v(Nt=he.$blocks()["$[]"](0))&&qe(Nt.$context(),"paragraph")&&he.$fold_first()}return v(m)?[[R],v(he["$text?"]())||v(he["$blocks?"]())?he:N]:he},-5),K(Ie,"$read_lines_for_list_item",function(J,B,q,ie){var te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N;for(q==null&&(q=N),ie==null&&(ie=!0),H=[],g="inactive",u=!1,m=N,R=B["$=="]("dlist");v(J["$has_more_lines?"]())&&(k=J.$read_line(),!v(fe["$is_sibling_list_item?"](k,B,q)));){if(b=v(H["$empty?"]())?N:H["$[]"](-1),qe(b,oe("LIST_CONTINUATION"))&&(qe(g,"inactive")&&(g="active",ie=!0,v(u)||H["$[]="](-1,"")),qe(k,oe("LIST_CONTINUATION")))){Ne(g,"frozen")&&(g="frozen",H["$<<"](k)),k=N;continue}if(v(D=fe["$is_delimited_block?"](k,!0))){if(!qe(g,"active"))break;H["$<<"](k),H.$concat(J.$read_lines_until(G(["terminator","read_last_line","context"],{terminator:D.$terminator(),read_last_line:!0,context:N}))),g="inactive"}else if(v(R)&&Ne(g,"active")&&v(k["$start_with?"]("["))&&v(oe("BlockAttributeLineRx")["$match?"](k))){for(P=[k];v(he=J.$peek_line());){if(v(fe["$is_delimited_block?"](he)))le=!0;else if(v(he["$empty?"]())||v(he["$start_with?"]("["))&&v(oe("BlockAttributeLineRx")["$match?"](he))){P["$<<"](J.$read_line());continue}else v(oe("AnyListRx")["$match?"](he))&&T(fe["$is_sibling_list_item?"](he,B,q))?H.$concat(P):le=!0;break}if(v(le)){J.$unshift_lines(P);break}}else if(qe(g,"active")&&T(k["$empty?"]()))v(oe("LiteralParagraphRx")["$match?"](k))?(J.$unshift_line(k),v(R)?H.$concat(me(J,"read_lines_until",[G(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],function _t(at){var vt=_t.$$s==null?this:_t.$$s;return at==null&&(at=N),vt["$is_sibling_list_item?"](at,B,q)},{$$s:fe})):H.$concat(J.$read_lines_until(G(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),g="inactive"):qe(Se=k.$chr(),".")&&v(oe("BlockTitleRx")["$match?"](k))||qe(Se,"[")&&v(oe("BlockAttributeLineRx")["$match?"](k))||qe(Se,":")&&v(oe("AttributeEntryRx")["$match?"](k))?H["$<<"](k):(v(Be=me(v(u)?["dlist"]:oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=N),oe("ListRxMap")["$[]"](at)["$match?"](k)}))&&(u=!0,qe(Be,"dlist")&&v(((te=Oe["~"])===N?N:te["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),H["$<<"](k),g="inactive");else if(v(b)&&v(b["$empty?"]())){if(v(k["$empty?"]())&&(!v(k=v(Xe=J.$skip_blank_lines())?J.$read_line():Xe)||v(fe["$is_sibling_list_item?"](k,B,q))))break;if(qe(k,oe("LIST_CONTINUATION")))m=H.$size(),H["$<<"](k);else if(v(ie)){if(v(fe["$is_sibling_list_item?"](k,B,q)))break;if(v(Be=me(oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=N),oe("ListRxMap")["$[]"](at)["$=~"](k)})))H["$<<"](k),u=!0,qe(Be,"dlist")&&v(((te=Oe["~"])===N?N:te["$[]"](3))["$nil_or_empty?"]())&&(ie=!1);else if(v(oe("LiteralParagraphRx")["$match?"](k)))J.$unshift_line(k),v(R)?H.$concat(me(J,"read_lines_until",[G(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],function _t(at){var vt=_t.$$s==null?this:_t.$$s;return at==null&&(at=N),vt["$is_sibling_list_item?"](at,B,q)},{$$s:fe})):H.$concat(J.$read_lines_until(G(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})));else break}else v(u)||H.$pop(),H["$<<"](k),ie=!0}else v(k["$empty?"]())||(ie=!0),v(Be=me(v(u)?["dlist"]:oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=N),oe("ListRxMap")["$[]"](at)["$=~"](k)}))&&(u=!0,qe(Be,"dlist")&&v(((te=Oe["~"])===N?N:te["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),H["$<<"](k);k=N}for(v(k)&&J.$unshift_line(k),v(m)&&H["$[]="](m,"");!v(H["$empty?"]());)if(v((it=H["$[]"](-1))["$empty?"]()))H.$pop();else{qe(it,oe("LIST_CONTINUATION"))&&H.$pop();break}return H},-3),K(Ie,"$initialize_section",function(J,B,q){var ie,te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N,at=N;return q==null&&(q=G([],{})),H=B.$document(),g=(u=H.$doctype())["$=="]("book"),v(H.$sourcemap())&&(m=J.$cursor()),R=q["$[]"](1),te=fe.$parse_section_title(J,H,q["$[]"]("id")),ie=Ue(te),k=ie[0]==null?N:ie[0],b=ie[1]==null?N:ie[1],D=ie[2]==null?N:ie[2],P=ie[3]==null?N:ie[3],he=ie[4]==null?N:ie[4],v(R)?v(g)&&qe(R,"abstract")?(ie=["chapter",1],le=ie[0],P=ie[1]):v(R["$start_with?"]("sect"))&&v(oe("SectionLevelStyleRx")["$match?"](R))?le="section":(ie=[R,!0],le=ie[0],Se=ie[1],qe(P,0)&&(P=1),Be=le["$=="]("appendix")):v(g)?le=qe(P,0)?"part":v(Pe(P,1))?"section":"chapter":qe(u,"manpage")&&qe(D.$casecmp("synopsis"),0)?(ie=["synopsis",!0],le=ie[0],Se=ie[1]):le="section",v(b)&&q["$[]="]("reftext",b),Xe=oe("Section").$new(B,P),ie=[k,D,le,m],te=[ie[0]],me(Xe,"id=",te),te[te.length-1],te=[ie[1]],me(Xe,"title=",te),te[te.length-1],te=[ie[2]],me(Xe,"sectname=",te),te[te.length-1],te=[ie[3]],me(Xe,"source_location=",te),te[te.length-1],v(Se)?(Xe["$special="](!0),v(Be)?Xe["$numbered="](!0):qe(H.$attributes()["$[]"]("sectnums"),"all")&&Xe["$numbered="](v(g)&&qe(P,1)?"chapter":!0)):v(H.$attributes()["$[]"]("sectnums"))&&v(Pe(P,0))?Xe["$numbered="](v(Xe.$special())?v(it=B.$numbered())||it:!0):v(g)&&qe(P,0)&&v(H.$attributes()["$[]"]("partnums"))&&Xe["$numbered="](!0),v(_t=v(it=Xe.$id())?it:(ie=[v(H.$attributes()["$key?"]("sectids"))?at=oe("Section").$generate_id(Xe.$title(),H):N],me(Xe,"id=",ie),ie[ie.length-1]))&&(v(at)||T(D["$include?"](oe("ATTR_REF_HEAD")))||Xe.$title(),v(H.$register("refs",[_t,Xe]))||fe.$logger().$warn(fe.$message_with_context("id assigned to section already in use: "+_t,G(["source_location"],{source_location:J.$cursor_at_line(st(J.$lineno(),v(he)?1:2))})))),Xe.$update_attributes(q),J.$skip_blank_lines(),Xe},-3),K(Ie,"$is_next_line_section?",function(J,B){var q=this,ie=N,te=N,fe=N;return v(ie=B["$[]"](1))&&(qe(ie,"discrete")||qe(ie,"float"))?N:v(oe("Compliance").$underline_style_section_titles())?(te=J.$peek_lines(2,v(fe=ie)?ie["$=="]("comment"):fe),q["$is_section_title?"](v(fe=te["$[]"](0))?fe:"",te["$[]"](1))):q["$atx_section_title?"](v(fe=J.$peek_line())?fe:"")}),K(Ie,"$is_next_line_doctitle?",function(J,B,q){var ie=this,te=N,fe=N;return v(q)?v(te=fe=ie["$is_next_line_section?"](J,B))?Ke(fe,q.$to_i())["$=="](0):te:ie["$is_next_line_section?"](J,B)["$=="](0)}),K(Ie,"$is_section_title?",function(J,B){var q=this,ie=N;return B==null&&(B=N),v(ie=q["$atx_section_title?"](J))?ie:v(B["$nil_or_empty?"]())?N:q["$setext_section_title?"](J,B)},-2),K(Ie,"$atx_section_title?",function(J){var B,q=N;return v(v(oe("Compliance").$markdown_syntax())?v(q=J["$start_with?"]("=","#"))?oe("ExtAtxSectionTitleRx")["$=~"](J):q:v(q=J["$start_with?"]("="))?oe("AtxSectionTitleRx")["$=~"](J):q)?st(((B=Oe["~"])===N?N:B["$[]"](1)).$length(),1):N}),K(Ie,"$setext_section_title?",function(J,B){var q=this,ie=N,te=N,fe=N;return v(te=oe("SETEXT_SECTION_LEVELS")["$[]"](fe=B.$chr()))&&v(q["$uniform?"](B,fe,ie=B.$length()))&&v(oe("SetextSectionTitleRx")["$match?"](J))&&v(De(st(J.$length(),ie).$abs(),2))?te:N}),K(Ie,"$parse_section_title",function(J,B,q){var ie,te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N;return q==null&&(q=N),H=N,g=J.$read_line(),v(v(oe("Compliance").$markdown_syntax())?v(u=g["$start_with?"]("=","#"))?oe("ExtAtxSectionTitleRx")["$=~"](g):u:v(u=g["$start_with?"]("="))?oe("AtxSectionTitleRx")["$=~"](g):u)?(ie=[st(((te=Oe["~"])===N?N:te["$[]"](1)).$length(),1),(te=Oe["~"])===N?N:te["$[]"](2),!0],m=ie[0],R=ie[1],k=ie[2],v(q)||v(R["$end_with?"]("]]"))&&v(oe("InlineSectionAnchorRx")["$=~"](R))&&T((ie=Oe["~"])===N?N:ie["$[]"](1))&&(ie=[R.$slice(0,st(R.$length(),((te=Oe["~"])===N?N:te["$[]"](0)).$length())),(te=Oe["~"])===N?N:te["$[]"](2),(te=Oe["~"])===N?N:te["$[]"](3)],R=ie[0],q=ie[1],H=ie[2])):v(oe("Compliance").$underline_style_section_titles())&&v(P=J.$peek_line(!0))&&v(m=oe("SETEXT_SECTION_LEVELS")["$[]"](D=P.$chr()))&&v(fe["$uniform?"](P,D,b=P.$length()))&&v(R=v(u=oe("SetextSectionTitleRx")["$=~"](g))?(ie=Oe["~"])===N?N:ie["$[]"](1):u)&&v(De(st(g.$length(),b).$abs(),2))?(k=!1,v(q)||v(R["$end_with?"]("]]"))&&v(oe("InlineSectionAnchorRx")["$=~"](R))&&T((ie=Oe["~"])===N?N:ie["$[]"](1))&&(ie=[R.$slice(0,st(R.$length(),((te=Oe["~"])===N?N:te["$[]"](0)).$length())),(te=Oe["~"])===N?N:te["$[]"](2),(te=Oe["~"])===N?N:te["$[]"](3)],R=ie[0],q=ie[1],H=ie[2]),J.$shift()):fe.$raise("Unrecognized section at "+J.$cursor_at_prev_line()),v(B["$attr?"]("leveloffset"))&&(m=Ke(m,B.$attr("leveloffset").$to_i()),v(De(m,0))&&(m=0)),[q,H,R,m,k]},-3),K(Ie,"$parse_header_metadata",function(J,B,q){var ie,te=this,fe=N,H=N,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N,at=N,vt=N;if(B==null&&(B=N),q==null&&(q=!0),fe=v(H=B)?B.$attributes():H,te.$process_attribute_entries(J,B),v(J["$has_more_lines?"]())&&T(J["$next_line_empty?"]())?(g=(u=te.$process_authors(J.$read_line())).$delete("authorcount"),v(B)&&v(Pe((ie=["authorcount",g],me(fe,"[]=",ie),ie[ie.length-1]),0))&&(me(u,"each",[],function(Et,kt){var Nt;return Et==null&&(Et=N),kt==null&&(kt=N),v(fe["$key?"](Et))?N:(Nt=[Et,B.$apply_header_subs(kt)],me(fe,"[]=",Nt),Nt[Nt.length-1])}),m=fe["$[]"]("author"),R=fe["$[]"]("authorinitials"),k=fe["$[]"]("authors")),u["$[]="]("authorcount",g),te.$process_attribute_entries(J,B),v(J["$has_more_lines?"]())&&T(J["$next_line_empty?"]())&&(b=J.$read_line(),v(D=oe("RevisionInfoLineRx").$match(b))?(P=G([],{}),v(D["$[]"](1))&&P["$[]="]("revnumber",D["$[]"](1).$rstrip()),v((he=D["$[]"](2).$strip())["$empty?"]())||(T(D["$[]"](1))&&v(he["$start_with?"]("v"))?P["$[]="]("revnumber",he.$slice(1,he.$length())):P["$[]="]("revdate",he)),v(D["$[]"](3))&&P["$[]="]("revremark",D["$[]"](3).$rstrip()),v(B)&&T(P["$empty?"]())&&me(P,"each",[],function(Et,kt){var Nt;return Et==null&&(Et=N),kt==null&&(kt=N),v(fe["$key?"](Et))?N:(Nt=[Et,B.$apply_header_subs(kt)],me(fe,"[]=",Nt),Nt[Nt.length-1])})):J.$unshift_line(b)),te.$process_attribute_entries(J,B),J.$skip_blank_lines()):u=G([],{}),v(B)){if(v(fe["$key?"]("author"))&&Ne(le=fe["$[]"]("author"),m))Se=te.$process_authors(le,!0,!1),Ne(fe["$[]"]("authorinitials"),R)&&Se.$delete("authorinitials");else if(v(fe["$key?"]("authors"))&&Ne(le=fe["$[]"]("authors"),k))Se=te.$process_authors(le,!0);else{for(ie=[[],1,"author_1",!1,!1],Be=ie[0],Xe=ie[1],it=ie[2],_t=ie[3],at=ie[4];v(fe["$key?"](it));)qe(vt=fe["$[]"](it),u["$[]"](it))?(Be["$<<"](N),at=!0):(Be["$<<"](vt),_t=!0),it="author_"+(Xe=Ke(Xe,1));v(_t)?(v(at)&&me(Be,"each_with_index",[],function(Et,kt){var Nt,Rt=N;return Et==null&&(Et=N),kt==null&&(kt=N),v(Et)?N:(Nt=[kt,me([u["$[]"]("firstname_"+(Rt=Ke(kt,1))),u["$[]"]("middlename_"+Rt),u["$[]"]("lastname_"+Rt)].$compact(),"map",[],function(jt){return jt==null&&(jt=N),jt.$tr(" ","_")}).$join(" ")],me(Be,"[]=",Nt),Nt[Nt.length-1])}),Se=te.$process_authors(Be,!0,!1)):Se=G(["authorcount"],{authorcount:0})}qe(Se["$[]"]("authorcount"),0)?v(g)?Se=N:fe["$[]="]("authorcount",0):(fe.$update(Se),T(fe["$key?"]("email"))&&v(fe["$key?"]("email_1"))&&fe["$[]="]("email",fe["$[]"]("email_1")))}return v(q)?u.$merge(P.$to_h(),Se.$to_h()):N},-2),K(Ie,"$process_authors",function(J,B,q){var ie=N,te=N;return B==null&&(B=!1),q==null&&(q=!0),ie=G([],{}),te=0,me(v(q)&&v(J["$include?"](";"))?J.$split(oe("AuthorDelimiterRx")):[].concat(pt(J)),"each",[],function(H){var g,u=N,m=N,R=N,k=N,b=N,D=N,P=N;return H==null&&(H=N),v(H["$empty?"]())?N:(u=G([],{}),qe(te=Ke(te,1),1)?me(oe("AuthorKeys"),"each",[],function(le){var Se;return le==null&&(le=N),Se=[le.$to_sym(),le],me(u,"[]=",Se),Se[Se.length-1]}):me(oe("AuthorKeys"),"each",[],function(le){var Se;return le==null&&(le=N),Se=[le.$to_sym(),""+le+"_"+te],me(u,"[]=",Se),Se[Se.length-1]}),v(B)?(v(H["$include?"]("<"))&&(ie["$[]="](u["$[]"]("author"),H.$tr("_"," ")),H=H.$gsub(oe("XmlSanitizeRx"),"")),qe((m=H.$split(N,3)).$size(),3)&&m["$<<"](m.$pop().$squeeze(" "))):v(R=oe("AuthorInfoLineRx").$match(H))&&(m=R.$to_a()).$shift(),v(m)?(k=(g=[u["$[]"]("firstname"),b=m["$[]"](0).$tr("_"," ")],me(ie,"[]=",g),g[g.length-1]),ie["$[]="](u["$[]"]("authorinitials"),b.$chr()),v(m["$[]"](1))&&(v(m["$[]"](2))?(ie["$[]="](u["$[]"]("middlename"),D=m["$[]"](1).$tr("_"," ")),ie["$[]="](u["$[]"]("lastname"),P=m["$[]"](2).$tr("_"," ")),k=Ke(Ke(Ke(Ke(b," "),D)," "),P),ie["$[]="](u["$[]"]("authorinitials"),""+b.$chr()+D.$chr()+P.$chr())):(ie["$[]="](u["$[]"]("lastname"),P=m["$[]"](1).$tr("_"," ")),k=Ke(Ke(b," "),P),ie["$[]="](u["$[]"]("authorinitials"),""+b.$chr()+P.$chr()))),v(ie["$[]"](u["$[]"]("author")))||ie["$[]="](u["$[]"]("author"),k),v(B)||T(m["$[]"](3))||ie["$[]="](u["$[]"]("email"),m["$[]"](3))):(ie["$[]="](u["$[]"]("author"),(g=[u["$[]"]("firstname"),b=H.$squeeze(" ").$strip()],me(ie,"[]=",g),g[g.length-1])),ie["$[]="](u["$[]"]("authorinitials"),b.$chr())),qe(te,1)?(g=["authors",ie["$[]"](u["$[]"]("author"))],me(ie,"[]=",g),g[g.length-1]):(qe(te,2)&&me(oe("AuthorKeys"),"each",[],function(le){var Se;return le==null&&(le=N),v(ie["$key?"](le))?(Se=[""+le+"_1",ie["$[]"](le)],me(ie,"[]=",Se),Se[Se.length-1]):N}),g=["authors",""+ie["$[]"]("authors")+", "+ie["$[]"](u["$[]"]("author"))],me(ie,"[]=",g),g[g.length-1]))}),ie["$[]="]("authorcount",te),ie},-2),K(Ie,"$parse_block_metadata_lines",function(J,B,q,ie){var te=this;for(q==null&&(q=G([],{})),ie==null&&(ie=G([],{}));v(te.$parse_block_metadata_line(J,B,q,ie))&&(J.$shift(),!!v(J.$skip_blank_lines())););return q},-3),K(Ie,"$parse_block_metadata_line",function(J,B,q,ie){var te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N;if(Oe["~"]==null&&(Oe["~"]=N),ie==null&&(ie=G([],{})),v(g=J.$peek_line())&&v(v(ie["$[]"]("text_only"))?g["$start_with?"]("[","/"):H=g["$start_with?"]("[",".","/",":"))){if(v(g["$start_with?"]("["))){if(v(g["$start_with?"]("[["))){if(v(g["$end_with?"]("]]"))&&v(oe("BlockAnchorRx")["$=~"](g)))return q["$[]="]("id",(te=Oe["~"])===N?N:te["$[]"](1)),v(u=(te=Oe["~"])===N?N:te["$[]"](2))&&q["$[]="]("reftext",v(u["$include?"](oe("ATTR_REF_HEAD")))?B.$sub_attributes(u):u),!0}else if(v(g["$end_with?"]("]"))&&v(oe("BlockAttributeListRx")["$=~"](g)))return m=q["$[]"](1),v(B.$parse_attributes((te=Oe["~"])===N?N:te["$[]"](1),[],G(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:q}))["$[]"](1))&&q["$[]="](1,v(R=fe.$parse_style_attribute(q,J))?R:m),!0}else if(v(H)&&v(g["$start_with?"]("."))){if(v(oe("BlockTitleRx")["$=~"](g)))return q["$[]="]("title",(te=Oe["~"])===N?N:te["$[]"](1)),!0}else if(T(H)||v(g["$start_with?"]("/"))){if(v(g["$start_with?"]("//"))){if(qe(g,"//"))return!0;if(v(H)&&v(fe["$uniform?"](g,"/",k=g.$length()))){if(!qe(k,3))return J.$read_lines_until(G(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:g,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0}else if(!v(g["$start_with?"]("///")))return!0}}else if(v(H)&&v(g["$start_with?"](":"))&&v(oe("AttributeEntryRx")["$=~"](g)))return fe.$process_attribute_entry(J,B,q,Oe["~"]),!0}return N},-4),K(Ie,"$process_attribute_entries",function(J,B,q){var ie=this;for(q==null&&(q=N),J.$skip_comment_lines();v(ie.$process_attribute_entry(J,B,q));)J.$shift(),J.$skip_comment_lines()},-3),K(Ie,"$process_attribute_entry",function(J,B,q,ie){var te,fe=this,H=N,g=N,u=N,m=N,R=N,k=N;if(q==null&&(q=N),ie==null&&(ie=N),v(ie)||v(ie=v(J["$has_more_lines?"]())?oe("AttributeEntryRx").$match(J.$peek_line()):N)){if(v((H=ie["$[]"](2))["$nil_or_empty?"]()))H="";else if(v(H["$end_with?"](oe("LINE_CONTINUATION"),oe("LINE_CONTINUATION_LEGACY"))))for(te=[H.$slice(st(H.$length(),2),2),H.$slice(0,st(H.$length(),2)).$rstrip()],g=te[0],H=te[1];v(v(u=J.$advance())?(m=v(R=J.$peek_line())?R:"")["$empty?"]()["$!"]():u)&&(m=m.$lstrip(),v(k=m["$end_with?"](g))&&(m=m.$slice(0,st(m.$length(),2)).$rstrip()),H=""+H+(v(H["$end_with?"](oe("HARD_LINE_BREAK")))?oe("LF"):" ")+m,!!v(k)););return fe.$store_attribute(ie["$[]"](1),H,B,q),!0}else return N},-3),K(Ie,"$store_attribute",function(J,B,q,ie){var te=this,fe=N;return q==null&&(q=N),ie==null&&(ie=N),v(J["$end_with?"]("!"))?(J=J.$chop(),B=N):v(J["$start_with?"]("!"))&&(J=J.$slice(1,J.$length()),B=N),qe(J=te.$sanitize_attribute_name(J),"numbered")?J="sectnums":qe(J,"hardbreaks")?J="hardbreaks-option":qe(J,"showtitle")&&te.$store_attribute("notitle",v(B)?N:"",q,ie),v(q)?v(B)?(qe(J,"leveloffset")&&(v(B["$start_with?"]("+"))?B=Ke(q.$attr("leveloffset",0).$to_i(),B.$slice(1,B.$length()).$to_i()).$to_s():v(B["$start_with?"]("-"))&&(B=st(q.$attr("leveloffset",0).$to_i(),B.$slice(1,B.$length()).$to_i()).$to_s())),v(fe=q.$set_attribute(J,B))&&(B=fe,v(ie)&&tt(oe("Document"),"AttributeEntry").$new(J,B).$save_to(ie))):v(q.$delete_attribute(J))&&v(ie)&&tt(oe("Document"),"AttributeEntry").$new(J,B).$save_to(ie):v(ie)&&tt(oe("Document"),"AttributeEntry").$new(J,B).$save_to(ie),[J,B]},-3),K(Ie,"$resolve_list_marker",function(J,B,q,ie,te){var fe=this;switch(q==null&&(q=0),ie==null&&(ie=!1),te==null&&(te=N),J){case"ulist":return B;case"olist":return fe.$resolve_ordered_list_marker(B,q,ie,te)["$[]"](0);default:return"<1>"}},-3),K(Ie,"$resolve_ordered_list_marker",function(J,B,q,ie){var te=this,fe=N,H=N,g=N;if(B==null&&(B=0),q==null&&(q=!1),ie==null&&(ie=N),v(J["$start_with?"](".")))return[J];switch(fe=me(oe("ORDERED_LIST_STYLES"),"find",[],function(m){return m==null&&(m=N),oe("OrderedListMarkerRxMap")["$[]"](m)["$match?"](J)})){case"arabic":v(q)&&(H=Ke(B,1),g=J.$to_i()),J="1.";break;case"loweralpha":v(q)&&(H=Ke("a"["$[]"](0).$ord(),B).$chr(),g=J.$chop()),J="a.";break;case"upperalpha":v(q)&&(H=Ke("A"["$[]"](0).$ord(),B).$chr(),g=J.$chop()),J="A.";break;case"lowerroman":v(q)&&(H=oe("Helpers").$int_to_roman(Ke(B,1)).$downcase(),g=J.$chop()),J="i)";break;case"upperroman":v(q)&&(H=oe("Helpers").$int_to_roman(Ke(B,1)),g=J.$chop()),J="I)";break}return v(q)&&Ne(H,g)&&te.$logger().$warn(te.$message_with_context("list item index: expected "+H+", got "+g,G(["source_location"],{source_location:ie.$cursor()}))),[J,fe]},-2),K(Ie,"$is_sibling_list_item?",function(J,B,q){var ie,te=this,fe=N;return We(tt("Regexp"),q)?q["$match?"](J):v(fe=oe("ListRxMap")["$[]"](B)["$=~"](J))?q["$=="](te.$resolve_list_marker(B,(ie=Oe["~"])===N?N:ie["$[]"](1))):fe}),K(Ie,"$parse_table",function(J,B,q){var ie,te,fe,H=this,g=N,u=N,m=N,R=N,k=N,b=N,D=N,P=N,he=N,le=N,Se=N,Be=N,Xe=N,it=N,_t=N,at=N,vt=N,St=N;for(g=oe("Table").$new(B,q),v(q["$key?"]("cols"))&&T((u=H.$parse_colspecs(q["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(u),m=!0),R=v(k=J.$skip_blank_lines())?k:0,v(q["$[]"]("header-option"))?g["$has_header_option="](!0):qe(R,0)&&T(q["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),b=!0),D=tt(oe("Table"),"ParserContext").$new(J,g,q),ie=[D.$format(),-1,N],P=ie[0],he=ie[1],le=ie[2];v(Se=J.$read_line());){for(v(Be=Pe(he=Ke(he,1),0))&&v(Se["$empty?"]())?(Se=N,v(le)&&(le=Ke(le,1))):qe(P,"psv")&&(v(D["$starts_with_delimiter?"](Se))?(Se=Se.$slice(1,Se.$length()),D.$close_open_cell(),v(le)&&(le=N)):(te=H.$parse_cellspec(Se,"start",D.$delimiter()),ie=Ue(te),Xe=ie[0]==null?N:ie[0],Se=ie[1]==null?N:ie[1],v(Xe)?(D.$close_open_cell(Xe),v(le)&&(le=N)):v(le)&&qe(le,he)&&g["$has_header_option="](b=le=N))),v(Be)||(J.$mark(),v(b)&&(v(J["$has_more_lines?"]())&&v(J.$peek_line()["$empty?"]())?le=1:g["$has_header_option="](b=N))),ie=!1;ie||v(!0);)if(ie=!1,v(Se)&&v(it=D.$match_delimiter(Se))){if(te=[it.$pre_match(),it.$post_match()],_t=te[0],at=te[1],We("csv",k=P)){if(v(D["$buffer_has_unclosed_quotes?"](_t))){if(D.$skip_past_delimiter(_t),v((Se=at)["$empty?"]()))break;ie=!0;continue}D["$buffer="](""+D.$buffer()+_t)}else if(We("dsv",k)){if(v(_t["$end_with?"]("\\"))){if(D.$skip_past_escaped_delimiter(_t),v((Se=at)["$empty?"]())){D["$buffer="](""+D.$buffer()+oe("LF")),D.$keep_cell_open();break}ie=!0;continue}D["$buffer="](""+D.$buffer()+_t)}else{if(v(_t["$end_with?"]("\\"))){if(D.$skip_past_escaped_delimiter(_t),v((Se=at)["$empty?"]())){D["$buffer="](""+D.$buffer()+oe("LF")),D.$keep_cell_open();break}ie=!0;continue}fe=H.$parse_cellspec(_t),te=Ue(fe),Xe=te[0]==null?N:te[0],vt=te[1]==null?N:te[1],D.$push_cellspec(Xe),D["$buffer="](""+D.$buffer()+vt)}v((Se=at)["$empty?"]())&&(Se=N),D.$close_cell()}else{switch(D["$buffer="](""+D.$buffer()+Se+oe("LF")),P){case"csv":v(D["$buffer_has_unclosed_quotes?"]())?(v(le)&&qe(he,0)&&g["$has_header_option="](b=le=N),D.$keep_cell_open()):D.$close_cell(!0);break;case"dsv":D.$close_cell(!0);break;default:D.$keep_cell_open()}break}if(v(D["$cell_open?"]()))v(J["$has_more_lines?"]())||D.$close_cell(!0);else if(!v(k=J.$skip_blank_lines()))break}return qe((St=g.$attributes(),v(k=St["$[]"]("colcount"))?k:(ie=["colcount",g.$columns().$size()],me(St,"[]=",ie),ie[ie.length-1])),0)||v(m)||g.$assign_column_widths(),v(b)&&g["$has_header_option="](!0),g.$partition_header_footer(q),g}),K(Ie,"$parse_colspecs",function(J){var B=N;return v(J["$include?"](" "))&&(J=J.$delete(" ")),qe(J,J.$to_i().$to_s())?me(tt("Array"),"new",[J.$to_i()],function(){return G(["width"],{width:1})}):(B=[],me(v(J["$include?"](","))?J.$split(",",-1):J.$split(";",-1),"each",[],function(ie){var te,fe,H=N,g=N,u=N,m=N,R=N;return ie==null&&(ie=N),v(ie["$empty?"]())?B["$<<"](G(["width"],{width:1})):v(H=oe("ColumnSpecRx").$match(ie))?(g=G([],{}),v(H["$[]"](2))&&(fe=H["$[]"](2).$split("."),te=Ue(fe),u=te[0]==null?N:te[0],m=te[1]==null?N:te[1],T(u["$nil_or_empty?"]())&&v(oe("TableCellHorzAlignments")["$key?"](u))&&g["$[]="]("halign",oe("TableCellHorzAlignments")["$[]"](u)),T(m["$nil_or_empty?"]())&&v(oe("TableCellVertAlignments")["$key?"](m))&&g["$[]="]("valign",oe("TableCellVertAlignments")["$[]"](m))),v(R=H["$[]"](3))?g["$[]="]("width",qe(R,"~")?-1:R.$to_i()):g["$[]="]("width",1),v(H["$[]"](4))&&v(oe("TableCellStyles")["$key?"](H["$[]"](4)))&&g["$[]="]("style",oe("TableCellStyles")["$[]"](H["$[]"](4))),v(H["$[]"](1))?me(1,"upto",[H["$[]"](1).$to_i()],function(){return B["$<<"](g.$merge())}):B["$<<"](g)):N}),B)}),K(Ie,"$parse_cellspec",function(J,B,q){var ie,te,fe=N,H=N,g=N,u=N,m=N,R=N;if(B==null&&(B="end"),q==null&&(q=N),ie=[N,""],fe=ie[0],H=ie[1],qe(B,"start"))if(v(J["$include?"](q)))if(te=J.$partition(q),ie=Ue(te),g=ie[0]==null?N:ie[0],ie[1]==null||ie[1],H=ie[2]==null?N:ie[2],v(fe=oe("CellSpecStartRx").$match(g))){if(v(fe["$[]"](0)["$empty?"]()))return[G([],{}),H]}else return[N,J];else return[N,J];else if(v(fe=oe("CellSpecEndRx").$match(J))){if(v(fe["$[]"](0).$lstrip()["$empty?"]()))return[G([],{}),J.$rstrip()];H=fe.$pre_match()}else return[G([],{}),J];if(u=G([],{}),v(fe["$[]"](1)))switch(te=fe["$[]"](1).$split("."),ie=Ue(te),m=ie[0]==null?N:ie[0],R=ie[1]==null?N:ie[1],m=v(m["$nil_or_empty?"]())?1:m.$to_i(),R=v(R["$nil_or_empty?"]())?1:R.$to_i(),fe["$[]"](2)){case"+":qe(m,1)||u["$[]="]("colspan",m),qe(R,1)||u["$[]="]("rowspan",R);break;case"*":qe(m,1)||u["$[]="]("repeatcol",m);break}return v(fe["$[]"](3))&&(te=fe["$[]"](3).$split("."),ie=Ue(te),m=ie[0]==null?N:ie[0],R=ie[1]==null?N:ie[1],T(m["$nil_or_empty?"]())&&v(oe("TableCellHorzAlignments")["$key?"](m))&&u["$[]="]("halign",oe("TableCellHorzAlignments")["$[]"](m)),T(R["$nil_or_empty?"]())&&v(oe("TableCellVertAlignments")["$key?"](R))&&u["$[]="]("valign",oe("TableCellVertAlignments")["$[]"](R))),v(fe["$[]"](4))&&v(oe("TableCellStyles")["$key?"](fe["$[]"](4)))&&u["$[]="]("style",oe("TableCellStyles")["$[]"](fe["$[]"](4))),[u,H]},-2),K(Ie,"$parse_style_attribute",function(J,B){var q,ie=this,te=N,fe=N,H=N,g=N,u=N,m=N;return B==null&&(B=N),v(te=J["$[]"](1))&&T(te["$include?"](" "))&&v(oe("Compliance").$shorthand_property_syntax())?(fe=N,H="",g=G([],{}),me(te,"each_char",[],function R(k){var b=R.$$s==null?this:R.$$s;switch(k==null&&(k=N),k){case".":return b.$yield_buffered_attribute(g,fe,H,B),H="",fe="role";case"#":return b.$yield_buffered_attribute(g,fe,H,B),H="",fe="id";case"%":return b.$yield_buffered_attribute(g,fe,H,B),H="",fe="option";default:return H=Ke(H,k)}},{$$s:ie}),v(fe)?(ie.$yield_buffered_attribute(g,fe,H,B),v(u=g["$[]"]("style"))&&J["$[]="]("style",u),v(g["$key?"]("id"))&&J["$[]="]("id",g["$[]"]("id")),v(g["$key?"]("role"))&&J["$[]="]("role",v((m=J["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+m+" "+g["$[]"]("role").$join(" ")),v(g["$key?"]("option"))&&me(g["$[]"]("option"),"each",[],function(k){var b;return k==null&&(k=N),b=[""+k+"-option",""],me(J,"[]=",b),b[b.length-1]}),u):(q=["style",te],me(J,"[]=",q),q[q.length-1])):(q=["style",te],me(J,"[]=",q),q[q.length-1])},-2),K(Ie,"$yield_buffered_attribute",function(J,B,q,ie){var te,fe=this,H=N;return v(B)?v(q["$empty?"]())?v(ie)?fe.$logger().$warn(fe.$message_with_context("invalid empty "+B+" detected in style attribute",G(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):fe.$logger().$warn("invalid empty "+B+" detected in style attribute"):qe(B,"id")?(v(J["$key?"]("id"))&&(v(ie)?fe.$logger().$warn(fe.$message_with_context("multiple ids detected in style attribute",G(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):fe.$logger().$warn("multiple ids detected in style attribute")),J["$[]="](B,q)):(v(H=J["$[]"](B))?H:(te=[B,[]],me(J,"[]=",te),te[te.length-1]))["$<<"](q):v(q["$empty?"]())||J["$[]="]("style",q),N}),K(Ie,"$adjust_indentation!",function(J,B,q){var ie=N,te=N,fe=N;return B==null&&(B=0),q==null&&(q=0),v(J["$empty?"]())||(v(Pe(q,0))&&v(me(J,"any?",[],function(g){return g==null&&(g=N),g["$include?"](oe("TAB"))}))&&(ie=Ye(" ",q),me(J,"map!",[],function(g){var u=N,m=N,R=N,k=N,b=N;return g==null&&(g=N),v(g["$empty?"]())||v((u=g.$index(oe("TAB")))["$nil?"]())||qe(u,0)&&(m=0,function(){try{var D=Je("break");return me(g,"each_byte",[],function(he){return he==null&&(he=N),qe(he,9)||D.$throw(),m=Ke(m,1)})}catch(P){if(P===D)return P.$v;throw P}}(),g=""+Ye(ie,m)+g.$slice(m,g.$length()),!v(g["$include?"](oe("TAB"))))?g:(R=0,k=0,b="",me(g,"each_char",[],function(P){var he=N,le=N;return P==null&&(P=N),qe(P,oe("TAB"))?qe((he=Ke(k,R))["$%"](q),0)?(R=Ke(R,st(q,1)),b=Ke(b,ie)):(qe(le=st(q,he["$%"](q)),1)||(R=Ke(R,st(le,1))),b=Ke(b,Ye(" ",le))):b=Ke(b,P),k=Ke(k,1)}),b)})),v(De(B,0)))||(te=N,function(){try{var H=Je("break");return me(J,"each",[],function(u){var m=N;return u==null&&(u=N),v(u["$empty?"]())||(qe(m=st(u.$length(),u.$lstrip().$length()),0)&&(te=N,H.$throw()),v(te)&&v(De(te,m)))?N:te=m})}catch(g){if(g===H)return g.$v;throw g}}(),qe(B,0)?v(te)&&me(J,"map!",[],function(g){return g==null&&(g=N),v(g["$empty?"]())?g:g.$slice(te,g.$length())}):(fe=Ye(" ",B),v(te)?me(J,"map!",[],function(g){return g==null&&(g=N),v(g["$empty?"]())?g:Ke(fe,g.$slice(te,g.$length()))}):me(J,"map!",[],function(g){return g==null&&(g=N),v(g["$empty?"]())?g:Ke(fe,g)}))),N},-2),K(Ie,"$uniform?",function(J,B,q){return J.$count(B)["$=="](q)}),K(Ie,"$sanitize_attribute_name",function(J){return J.$gsub(oe("InvalidAttributeNameCharsRx"),"").$downcase()})}(X[0],null,X)}(ht[0],ht)},Opal.modules["asciidoctor/path_resolver"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.truthy,v=a.hash2,G=a.def,Ue=a.eqeq,K=a.alias,qe=a.rb_plus,T=a.to_ary,Oe=a.send,Ne=a.not,Ke=a.neqeq,De=a.rb_gt,Pe=a.gvars,pt=[],We=a.nil,st=a.$$$;return a.add_stubs("include,attr_accessor,root?,posixify,expand_path,pwd,start_with?,==,match?,absolute_path?,+,length,descends_from?,slice,to_s,relative_path_from,new,include?,tr,partition_path,each,pop,<<,join_path,[],web_root?,unc?,index,split,delete,[]=,join,raise,!,fetch,warn,logger,empty?,nil_or_empty?,chomp,!=,>,size,extract_uri_prefix,end_with?,gsub,private,=~"),function(Ye,Je){var ht=ae(Ye,"Asciidoctor"),N=[ht].concat(Je);return function(tt,E,rt){var ot=re(tt,E,"PathResolver"),X=[ot].concat(rt),M=a.$r(X),He=ot.$$prototype;return He.file_separator=He._partition_path_web=He._partition_path_sys=He.working_dir=We,ot.$include(M("Logging")),W(X[0],"DOT","."),W(X[0],"DOT_DOT",".."),W(X[0],"DOT_SLASH","./"),W(X[0],"SLASH","/"),W(X[0],"BACKSLASH","\\"),W(X[0],"DOUBLE_SLASH","//"),W(X[0],"URI_CLASSLOADER","uri:classloader:"),W(X[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),ot.$attr_accessor("file_separator"),ot.$attr_accessor("working_dir"),G(ot,"$initialize",function(Ie,Re){var oe=this,we=We,J=We;return Ie==null&&(Ie=We),Re==null&&(Re=We),oe.file_separator=me(we=me(J=Ie)?J:st(st("File"),"ALT_SEPARATOR"))?we:st(st("File"),"SEPARATOR"),oe.working_dir=me(Re)?me(oe["$root?"](Re))?oe.$posixify(Re):st("File").$expand_path(Re):st("Dir").$pwd(),oe._partition_path_sys=v([],{}),oe._partition_path_web=v([],{})},-1),G(ot,"$absolute_path?",function(Ie){var Re=this,oe=We,we=We;return me(oe=Ie["$start_with?"](M("SLASH")))?oe:me(we=Re.file_separator["$=="](M("BACKSLASH")))?M("WindowsRootRx")["$match?"](Ie):we}),Ue(M("RUBY_ENGINE"),"opal")&&Ue(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?G(ot,"$root?",function(Ie){var Re=this,oe=We;return me(oe=Re["$absolute_path?"](Ie))?oe:Ie["$start_with?"]("file://","http://","https://")}):Ue(st("RUBY_ENGINE"),"jruby")?G(ot,"$root?",function(Ie){var Re=this,oe=We;return me(oe=Re["$absolute_path?"](Ie))?oe:Ie["$start_with?"](M("URI_CLASSLOADER"))}):K(ot,"root?","absolute_path?"),G(ot,"$unc?",function(Ie){return Ie["$start_with?"](M("DOUBLE_SLASH"))}),G(ot,"$web_root?",function(Ie){return Ie["$start_with?"](M("SLASH"))}),G(ot,"$descends_from?",function(Ie,Re){var oe=We;return Ue(Re,Ie)?0:Ue(Re,M("SLASH"))?me(oe=Ie["$start_with?"](M("SLASH")))?1:oe:me(oe=Ie["$start_with?"](qe(Re,M("SLASH"))))?qe(Re.$length(),1):oe}),G(ot,"$relative_path",function(Ie,Re){var oe=this,we=We;if(me(oe["$root?"](Ie))){if(me(we=oe["$descends_from?"](Ie,Re)))return Ie.$slice(we,Ie.$length());try{return M("Pathname").$new(Ie).$relative_path_from(M("Pathname").$new(Re)).$to_s()}catch(J){if(a.rescue(J,[M("StandardError")]))try{return Ie}finally{a.pop_exception()}else throw J}}else return Ie}),G(ot,"$posixify",function(Ie){var Re=this;return me(Ie)?Ue(Re.file_separator,M("BACKSLASH"))&&me(Ie["$include?"](M("BACKSLASH")))?Ie.$tr(M("BACKSLASH"),M("SLASH")):Ie:""}),K(ot,"posixfy","posixify"),G(ot,"$expand_path",function(Ie){var Re,oe,we=this,J=We,B=We,q=We;return oe=we.$partition_path(Ie),Re=T(oe),J=Re[0]==null?We:Re[0],B=Re[1]==null?We:Re[1],me(Ie["$include?"](M("DOT_DOT")))?(q=[],Oe(J,"each",[],function(te){return te==null&&(te=We),Ue(te,M("DOT_DOT"))?q.$pop():q["$<<"](te)}),we.$join_path(q,B)):we.$join_path(J,B)}),G(ot,"$partition_path",function(Ie,Re){var oe,we=this,J=We,B=We,q=We,ie=We,te=We;return Re==null&&(Re=We),me(J=(B=me(Re)?we._partition_path_web:we._partition_path_sys)["$[]"](Ie))?J:(q=we.$posixify(Ie),me(Re)?me(we["$web_root?"](q))?ie=M("SLASH"):me(q["$start_with?"](M("DOT_SLASH")))&&(ie=M("DOT_SLASH")):me(we["$root?"](q))?me(we["$unc?"](q))?ie=M("DOUBLE_SLASH"):me(q["$start_with?"](M("SLASH")))?ie=M("SLASH"):me(q["$start_with?"](M("URI_CLASSLOADER")))?ie=q.$slice(0,M("URI_CLASSLOADER").$length()):ie=q.$slice(0,qe(q.$index(M("SLASH")),1)):me(q["$start_with?"](M("DOT_SLASH")))&&(ie=M("DOT_SLASH")),te=(me(ie)?q.$slice(ie.$length(),q.$length()):q).$split(M("SLASH")),te.$delete(M("DOT")),oe=[Ie,[te,ie]],Oe(B,"[]=",oe),oe[oe.length-1])},-2),G(ot,"$join_path",function(Ie,Re){return Re==null&&(Re=We),me(Re)?""+Re+Ie.$join(M("SLASH")):Ie.$join(M("SLASH"))},-2),G(ot,"$system_path",function(Ie,Re,oe,we){var J,B,q=this,ie=We,te=We,fe=We,H=We,g=We,u=We,m=We,R=We,k=We,b=We,D=We;if(Re==null&&(Re=We),oe==null&&(oe=We),we==null&&(we=v([],{})),me(oe)&&(me(q["$root?"](oe))||q.$raise(st("SecurityError"),"Jail is not an absolute path: "+oe),oe=q.$posixify(oe)),me(Ie))if(me(q["$root?"](Ie))){if(ie=q.$expand_path(Ie),me(oe)&&Ne(q["$descends_from?"](ie,oe))){if(me(we.$fetch("recover",!0)))return q.$logger().$warn(""+(me(te=we["$[]"]("target_name"))?te:"path")+" is outside of jail; recovering automatically"),B=q.$partition_path(ie),J=T(B),fe=J[0]==null?We:J[0],B=q.$partition_path(oe),J=T(B),H=J[0]==null?We:J[0],g=J[1]==null?We:J[1],q.$join_path(qe(H,fe),g);q.$raise(st("SecurityError"),""+(me(te=we["$[]"]("target_name"))?te:"path")+" "+Ie+" is outside of jail: "+oe+" (disallowed in safe mode)")}return ie}else B=q.$partition_path(Ie),J=T(B),fe=J[0]==null?We:J[0];else fe=[];if(me(fe["$empty?"]())){if(me(Re["$nil_or_empty?"]()))return me(te=oe)?te:q.working_dir;if(me(q["$root?"](Re)))if(me(oe))Re=q.$posixify(Re);else return q.$expand_path(Re);else B=q.$partition_path(Re),J=T(B),fe=J[0]==null?We:J[0],Re=me(te=oe)?te:q.working_dir}else me(Re["$nil_or_empty?"]())?Re=me(te=oe)?te:q.working_dir:me(q["$root?"](Re))?me(oe)&&(Re=q.$posixify(Re)):Re=""+(me(te=oe)?te:q.working_dir).$chomp("/")+"/"+Re;return me(oe)&&me(u=q["$descends_from?"](Re,oe)["$!"]())&&Ue(q.file_separator,M("BACKSLASH"))?(B=q.$partition_path(Re),J=T(B),m=J[0]==null?We:J[0],R=J[1]==null?We:J[1],B=q.$partition_path(oe),J=T(B),H=J[0]==null?We:J[0],g=J[1]==null?We:J[1],Ke(R,g)&&(me(we.$fetch("recover",!0))?(q.$logger().$warn("start path for "+(me(te=we["$[]"]("target_name"))?te:"path")+" is outside of jail root; recovering automatically"),m=H,u=!1):q.$raise(st("SecurityError"),"start path for "+(me(te=we["$[]"]("target_name"))?te:"path")+" "+Re+" refers to location outside jail root: "+oe+" (disallowed in safe mode)"))):(B=q.$partition_path(Re),J=T(B),m=J[0]==null?We:J[0],g=J[1]==null?We:J[1]),me((k=qe(m,fe))["$include?"](M("DOT_DOT")))&&(J=[k,[]],b=J[0],k=J[1],me(oe)?(me(H)||(B=q.$partition_path(oe),J=T(B),H=J[0]==null?We:J[0]),D=!1,Oe(b,"each",[],function P(he){var le=P.$$s==null?this:P.$$s;return he==null&&(he=We),Ue(he,M("DOT_DOT"))?me(De(k.$size(),H.$size()))?k.$pop():me(we.$fetch("recover",!0))?me(D)?We:(le.$logger().$warn(""+(me(te=we["$[]"]("target_name"))?te:"path")+" has illegal reference to ancestor of jail; recovering automatically"),D=!0):le.$raise(st("SecurityError"),""+(me(te=we["$[]"]("target_name"))?te:"path")+" "+Ie+" refers to location outside jail: "+oe+" (disallowed in safe mode)"):k["$<<"](he)},{$$s:q})):Oe(b,"each",[],function(he){return he==null&&(he=We),Ue(he,M("DOT_DOT"))?k.$pop():k["$<<"](he)})),me(u)?(ie=q.$join_path(k,g),me(q["$descends_from?"](ie,oe))?ie:me(we.$fetch("recover",!0))?(q.$logger().$warn(""+(me(te=we["$[]"]("target_name"))?te:"path")+" is outside of jail; recovering automatically"),me(H)||(B=q.$partition_path(oe),J=T(B),H=J[0]==null?We:J[0]),q.$join_path(qe(H,fe),g)):q.$raise(st("SecurityError"),""+(me(te=we["$[]"]("target_name"))?te:"path")+" "+Ie+" is outside of jail: "+oe+" (disallowed in safe mode)")):q.$join_path(k,g)},-2),G(ot,"$web_path",function(Ie,Re){var oe,we,J=this,B=We,q=We,ie=We,te=We,fe=We;return Re==null&&(Re=We),Ie=J.$posixify(Ie),Re=J.$posixify(Re),me(Re["$nil_or_empty?"]())||me(J["$web_root?"](Ie))||(we=J.$extract_uri_prefix(""+Re+(me(Re["$end_with?"](M("SLASH")))?"":M("SLASH"))+Ie),oe=T(we),Ie=oe[0]==null?We:oe[0],B=oe[1]==null?We:oe[1]),we=J.$partition_path(Ie,!0),oe=T(we),q=oe[0]==null?We:oe[0],ie=oe[1]==null?We:oe[1],te=[],Oe(q,"each",[],function(g){return g==null&&(g=We),Ue(g,M("DOT_DOT"))?me(te["$empty?"]())?me(ie)&&Ke(ie,M("DOT_SLASH"))?We:te["$<<"](g):Ue(te["$[]"](-1),M("DOT_DOT"))?te["$<<"](g):te.$pop():te["$<<"](g)}),me((fe=J.$join_path(te,ie))["$include?"](" "))&&(fe=fe.$gsub(" ","%20")),me(B)?""+B+fe:fe},-2),ot.$private(),G(ot,"$extract_uri_prefix",function(Ie){var Re;return me(Ie["$include?"](":"))&&me(M("UriSniffRx")["$=~"](Ie))?[Ie.$slice(((Re=Pe["~"])===We?We:Re["$[]"](0)).$length(),Ie.$length()),(Re=Pe["~"])===We?We:Re["$[]"](0)]:Ie})}(N[0],null,N)}(pt[0],pt)},Opal.modules["asciidoctor/reader"]=function(a){var ae=a.module,re=a.klass,W=a.def,me=a.rb_plus,v=a.alias,G=a.hash2,Ue=a.not,K=a.eqeqeq,qe=a.to_ary,T=a.truthy,Oe=a.rb_gt,Ne=a.send,Ke=a.rb_minus,De=a.thrower,Pe=a.eqeq,pt=a.rb_times,We=a.neqeq,st=a.to_a,Ye=a.assign_ivar_val,Je=a.send2,ht=a.find_super,N=a.rb_ge,tt=a.gvars,E=a.rb_lt,rt=a.hash,ot=[],X=a.nil,M=a.$$$;return a.add_stubs("include,attr_reader,+,line_info,attr_accessor,!,===,split,file,dir,dirname,path,basename,lineno,reverse,prepare_lines,empty?,nil_or_empty?,peek_line,[],>,slice,length,process_line,times,shift,read_line,<<,-,unshift_all,has_more_lines?,read_lines,join,unshift,unshift_line,unshift_lines,replace_next_line,start_with?,==,*,read_lines_until,size,clear,cursor,[]=,fetch,!=,cursor_at_mark,warn,logger,message_with_context,pop,push,respond_to?,reverse_each,new,tap,each,instance_variables,instance_variable_get,drop,instance_variable_set,class,object_id,inspect,private,prepare_source_array,prepare_source_string,chomp,valid_encoding?,to_s,raise,to_i,attributes,catalog,pop_include,parse,path=,dup,end_with?,keys,rindex,rootname,key?,attr,reverse!,>=,exceeds_max_depth?,nil?,include_processors?,extensions,extensions?,include_processors,map,skip_front_matter!,adjust_indentation!,include?,=~,preprocess_conditional_directive,preprocess_include_directive,downcase,error,none?,any?,all?,strip,send,resolve_expr_val,rstrip,sub_attributes,attribute_missing,info,parse_attributes,find,handles?,instance,process_method,safe,resolve_include_path,method,split_delimited_value,partition,<,to_a,uniq,sort,call,each_line,infinite?,push_include,delete,first,values,value?,create_include_cursor,delete_at,keep_if,read,uriish?,attr?,require_library,normalize_system_path,file?,relative_path,path_resolver,base_dir,to_f"),function(He,ke){var Ie=ae(He,"Asciidoctor"),Re=[Ie].concat(ke),oe=a.$r(Re);return function(we,J,B){var q=re(we,J,"Reader"),ie=[q].concat(B),te=a.$r(ie),fe=q.$$prototype;return fe.file=fe.lines=fe.look_ahead=fe.unescape_next_line=fe.lineno=fe.process_lines=fe.dir=fe.path=fe.mark=fe.source_lines=fe.saved=X,q.$include(te("Logging")),function(H,g){var u=re(H,g,"Cursor"),m=u.$$prototype;return m.lineno=m.path=X,u.$attr_reader("file","dir","path","lineno"),W(u,"$initialize",function(k,b,D,P){var he,le=this;return b==null&&(b=X),D==null&&(D=X),P==null&&(P=1),he=[k,b,D,P],le.file=he[0],le.dir=he[1],le.path=he[2],le.lineno=he[3],he},-2),W(u,"$advance",function(k){var b=this;return b.lineno=me(b.lineno,k)}),W(u,"$line_info",function(){var k=this;return""+k.path+": line "+k.lineno}),v(u,"to_s","line_info")}(ie[0],null),q.$attr_reader("file"),q.$attr_reader("dir"),q.$attr_reader("path"),q.$attr_reader("lineno"),q.$attr_reader("source_lines"),q.$attr_accessor("process_lines"),q.$attr_accessor("unterminated"),W(q,"$initialize",function(g,u,m){var R,k,b=this,D=X;return g==null&&(g=X),u==null&&(u=X),m==null&&(m=G([],{})),Ue(u)?(b.file=X,b.dir=".",b.path="<stdin>",b.lineno=1):K(M("String"),u)?(b.file=u,k=M("File").$split(b.file),R=qe(k),b.dir=R[0]==null?X:R[0],b.path=R[1]==null?X:R[1],b.lineno=1):(T(b.file=u.$file())?(b.dir=T(D=u.$dir())?D:M("File").$dirname(b.file),b.path=T(D=u.$path())?D:M("File").$basename(b.file)):(b.dir=T(D=u.$dir())?D:".",b.path=T(D=u.$path())?D:"<stdin>"),b.lineno=T(D=u.$lineno())?D:1),b.lines=(b.source_lines=b.$prepare_lines(g,m)).$reverse(),b.mark=X,b.look_ahead=0,b.process_lines=!0,b.unescape_next_line=!1,b.unterminated=X,b.saved=X},-1),W(q,"$has_more_lines?",function(){var g=this;return T(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),W(q,"$empty?",function(){var g=this;return T(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),v(q,"eof?","empty?"),W(q,"$next_line_empty?",function(){var g=this;return g.$peek_line()["$nil_or_empty?"]()}),W(q,"$peek_line",function(g){var u=this,m=X,R=X;for(g==null&&(g=!1);T(!0);){if(m=u.lines["$[]"](-1),T(g)||T(Oe(u.look_ahead,0)))return T(u.unescape_next_line)?m.$slice(1,m.$length()):m;if(T(m)){if(T(R=u.$process_line(m)))return R}else return u.look_ahead=0,X}},-1),W(q,"$peek_lines",function(g,u){var m=this,R=X,k=X,b=X;return g==null&&(g=X),u==null&&(u=!1),R=m.look_ahead,k=[],function(){try{var D=De("break");return Ne(T(b=g)?b:te("MAX_INT"),"times",[],function P(){var he=P.$$s==null?this:P.$$s,le=X;if(he.lineno==null&&(he.lineno=X),T(le=T(u)?he.$shift():he.$read_line()))return k["$<<"](le);T(u)&&(he.lineno=Ke(he.lineno,1)),D.$throw()},{$$s:m})}catch(P){if(P===D)return P.$v;throw P}}(),T(k["$empty?"]())||(m.$unshift_all(k),T(u)&&(m.look_ahead=R)),k},-1),W(q,"$read_line",function(){var g=this;return T(Oe(g.look_ahead,0))||T(g["$has_more_lines?"]())?g.$shift():X}),W(q,"$read_lines",function(){var g=this,u=X;for(u=[];T(g["$has_more_lines?"]());)u["$<<"](g.$shift());return u}),v(q,"readlines","read_lines"),W(q,"$read",function(){var g=this;return g.$read_lines().$join(te("LF"))}),W(q,"$advance",function(){var g=this;return!!T(g.$shift())}),W(q,"$unshift_line",function(g){var u=this;return u.$unshift(g),X}),v(q,"restore_line","unshift_line"),W(q,"$unshift_lines",function(g){var u=this;return u.$unshift_all(g)}),v(q,"restore_lines","unshift_lines"),W(q,"$replace_next_line",function(g){var u=this;return u.$shift(),u.$unshift(g),!0}),v(q,"replace_line","replace_next_line"),W(q,"$skip_blank_lines",function(){var g=this,u=X,m=X;if(T(g["$empty?"]()))return X;for(u=0;T(m=g.$peek_line());)if(T(m["$empty?"]()))g.$shift(),u=me(u,1);else return u}),W(q,"$skip_comment_lines",function(){var g=this,u=X,m=X,R=X;if(T(g["$empty?"]()))return X;for(;T(T(u=m=g.$peek_line())?m["$empty?"]()["$!"]():u)&&T(m["$start_with?"]("//"));)if(T(m["$start_with?"]("///")))if(T(Oe(R=m.$length(),3))&&Pe(m,pt("/",R)))g.$read_lines_until(G(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:m,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else g.$shift();return X}),W(q,"$skip_line_comments",function(){var g=this,u=X,m=X,R=X;if(T(g["$empty?"]()))return[];for(u=[];T(T(m=R=g.$peek_line())?R["$empty?"]()["$!"]():m)&&T(R["$start_with?"]("//"));)u["$<<"](g.$shift());return u}),W(q,"$terminate",function(){var g=this;return g.lineno=me(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,X}),W(q,"$read_lines_until",function H(g){var u,m=H.$$p||X,R=this,k=X,b=X,D=X,P=X,he=X,le=X,Se=X,Be=X,Xe=X,it=X,_t=X,at=X,vt=X,St=X,Et=X,kt=X;for(H.$$p=null,g==null&&(g=G([],{})),k=[],T(R.process_lines)&&T(g["$[]"]("skip_processing"))&&(R.process_lines=!1,b=!0),T(D=g["$[]"]("terminator"))?(P=T(he=g["$[]"]("cursor"))?he:R.$cursor(),le=!1,Se=!1):(le=g["$[]"]("break_on_blank_lines"),Se=g["$[]"]("break_on_list_continuation")),Be=g["$[]"]("skip_line_comments"),Xe=it=X,T(g["$[]"]("skip_first_line"))&&R.$shift();T(_t=R.$read_line());){if(T(T(D)?_t["$=="](D):T(he=T(at=T(vt=le)?_t["$empty?"]():vt)?at:T(vt=T(St=T(Et=Se)?Xe:Et)?_t["$=="](te("LIST_CONTINUATION")):St)?(u=["preserve_last_line",!0],Ne(g,"[]=",u),u[u.length-1]):vt)?he:T(at=m!==X)?a.yield1(m,_t):at)){T(g["$[]"]("read_last_line"))&&k["$<<"](_t),T(g["$[]"]("preserve_last_line"))&&(R.$unshift(_t),it=!0);break}T(Be)&&T(_t["$start_with?"]("//"))&&Ue(_t["$start_with?"]("///"))||(k["$<<"](_t),Xe=!0)}return T(b)&&(R.process_lines=!0,T(it)&&Ue(D)&&(R.look_ahead=Ke(R.look_ahead,1))),T(D)&&We(D,_t)&&T(kt=g.$fetch("context",D))&&(Pe(P,"at_mark")&&(P=R.$cursor_at_mark()),R.$logger().$warn(R.$message_with_context("unterminated "+kt+" block",G(["source_location"],{source_location:P}))),R.unterminated=!0),k},-1),W(q,"$shift",function(){var g=this;return g.lineno=me(g.lineno,1),Pe(g.look_ahead,0)||(g.look_ahead=Ke(g.look_ahead,1)),g.lines.$pop()}),W(q,"$unshift",function(g){var u=this;return u.lineno=Ke(u.lineno,1),u.look_ahead=me(u.look_ahead,1),u.lines.$push(g),X}),Pe(M("RUBY_ENGINE"),"jruby")?W(q,"$unshift_all",function(g){var u=this;return u.lineno=Ke(u.lineno,g.$size()),u.look_ahead=me(u.look_ahead,g.$size()),T(g["$respond_to?"]("reverse"))?Ne(u.lines,"push",st(g.$reverse())):Ne(g,"reverse_each",[],function m(R){var k=m.$$s==null?this:m.$$s;return k.lines==null&&(k.lines=X),R==null&&(R=X),k.lines.$push(R)},{$$s:u}),X}):W(q,"$unshift_all",function(g){var u=this;return u.lineno=Ke(u.lineno,g.$size()),u.look_ahead=me(u.look_ahead,g.$size()),Ne(u.lines,"push",st(g.$reverse())),X}),W(q,"$cursor",function(){var g=this;return te("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),W(q,"$cursor_at_line",function(g){var u=this;return te("Cursor").$new(u.file,u.dir,u.path,g)}),W(q,"$cursor_at_mark",function(){var g=this;return T(g.mark)?Ne(te("Cursor"),"new",st(g.mark)):g.$cursor()}),W(q,"$cursor_before_mark",function(){var g,u,m=this,R=X,k=X,b=X,D=X;return T(m.mark)?(u=m.mark,g=qe(u),R=g[0]==null?X:g[0],k=g[1]==null?X:g[1],b=g[2]==null?X:g[2],D=g[3]==null?X:g[3],te("Cursor").$new(R,k,b,Ke(D,1))):te("Cursor").$new(m.file,m.dir,m.path,Ke(m.lineno,1))}),W(q,"$cursor_at_prev_line",function(){var g=this;return te("Cursor").$new(g.file,g.dir,g.path,Ke(g.lineno,1))}),W(q,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),W(q,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),W(q,"$lines",function(){var g=this;return g.lines.$reverse()}),W(q,"$string",function(){var g=this;return g.lines.$reverse().$join(te("LF"))}),W(q,"$source",function(){var g=this;return g.source_lines.$join(te("LF"))}),W(q,"$save",function(){var g=this;return g.saved=Ne(G([],{}),"tap",[],function u(m){var R=u.$$s==null?this:u.$$s;return m==null&&(m=X),Ne(R.$instance_variables(),"each",[],function k(b){var D,P=k.$$s==null?this:k.$$s,he=X;return b==null&&(b=X),Pe(b,"@saved")||Pe(b,"@source_lines")?X:(D=[b,K(M("Array"),he=P.$instance_variable_get(b))?he.$drop(0):he],Ne(m,"[]=",D),D[D.length-1])},{$$s:R})},{$$s:g}),X}),W(q,"$restore_save",function(){var g=this;return T(g.saved)?(Ne(g.saved,"each",[],function u(m,R){var k=u.$$s==null?this:u.$$s;return m==null&&(m=X),R==null&&(R=X),k.$instance_variable_set(m,R)},{$$s:g}),g.saved=X):X}),W(q,"$discard_save",Ye("saved",X)),W(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),q.$private(),W(q,"$prepare_lines",function(g,u){var m=this,R=X;u==null&&(u=G([],{}));try{return T(R=u["$[]"]("normalize"))?K(M("Array"),g)?te("Helpers").$prepare_source_array(g,R["$!="]("chomp")):te("Helpers").$prepare_source_string(g,R["$!="]("chomp")):K(M("Array"),g)?g.$drop(0):T(g)?g.$chomp().$split(te("LF"),-1):[]}catch(k){if(a.rescue(k,[te("StandardError")]))try{return T((K(M("Array"),g)?g.$join():g.$to_s())["$valid_encoding?"]())?m.$raise():m.$raise(M("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw k}},-2),W(q,"$process_line",function(g){var u=this;return T(u.process_lines)&&(u.look_ahead=me(u.look_ahead,1)),g})}(Re[0],null,Re),function(we,J,B){var q=re(we,J,"PreprocessorReader"),ie=[q].concat(B),te=a.$r(ie),fe=q.$$prototype;return fe.include_stack=fe.lines=fe.file=fe.dir=fe.path=fe.lineno=fe.maxdepth=fe.process_lines=fe.includes=fe.document=fe.unescape_next_line=fe.include_processor_extensions=fe.look_ahead=fe.skipping=fe.conditional_stack=X,q.$attr_reader("include_stack"),W(q,"$initialize",function H(g,u,m,R){H.$$p;var k=this,b=X,D=X;return H.$$p=null,u==null&&(u=X),m==null&&(m=X),R==null&&(R=G([],{})),k.document=g,Je(k,ht(k,"initialize",H,!1,!0),"initialize",[u,m,R],null),T(Oe(b=(T(D=g.$attributes()["$[]"]("max-include-depth"))?D:64).$to_i(),0))?k.maxdepth=G(["abs","curr","rel"],{abs:b,curr:b,rel:b}):k.maxdepth=X,k.include_stack=[],k.includes=g.$catalog()["$[]"]("includes"),k.skipping=!1,k.conditional_stack=[],k.include_processor_extensions=X},-2),W(q,"$has_more_lines?",function(){var g=this;return!!T(g.$peek_line())}),W(q,"$empty?",function(){var g=this;return!T(g.$peek_line())}),v(q,"eof?","empty?"),W(q,"$peek_line",function H(g){var u=H.$$p||X,m=this,R=X;return H.$$p=null,g==null&&(g=!1),T(R=Je(m,ht(m,"peek_line",H,!1,!0),"peek_line",[g],u))?R:T(m.include_stack["$empty?"]())?X:(m.$pop_include(),m.$peek_line(g))},-1),W(q,"$push_include",function(g,u,m,R,k){var b=this,D=X,P=X,he=X,le=X,Se=X,Be=X;return u==null&&(u=X),m==null&&(m=X),R==null&&(R=1),k==null&&(k=G([],{})),b.include_stack["$<<"]([b.lines,b.file,b.dir,b.path,b.lineno,b.maxdepth,b.process_lines]),T(b.file=u)?(K(M("String"),u)?b.dir=M("File").$dirname(u):T(te("RUBY_ENGINE_OPAL"))?b.dir=M("URI").$parse(M("File").$dirname(u=u.$to_s())):((b.dir=u.$dup())["$path="](Pe(D=M("File").$dirname(u.$path()),"/")?"":D),u=u.$to_s()),b.path=m=T(P=m)?P:M("File").$basename(u),T(b.process_lines=Ne(u,"end_with?",st(te("ASCIIDOC_EXTENSIONS").$keys())))&&(T(P=b.includes["$[]"](m.$slice(0,m.$rindex("."))))||b.includes["$[]="](m.$slice(0,m.$rindex(".")),T(k["$[]"]("partial-option"))?X:!0))):(b.dir=".",b.process_lines=!0,T(b.path=m)?T(P=b.includes["$[]"](te("Helpers").$rootname(m)))||b.includes["$[]="](te("Helpers").$rootname(m),T(k["$[]"]("partial-option"))?X:!0):b.path="<stdin>"),b.lineno=R,T(b.maxdepth)&&T(k["$key?"]("depth"))&&(T(Oe(he=k["$[]"]("depth").$to_i(),0))?(T(Oe(le=me(b.include_stack.$size(),he),Se=b.maxdepth["$[]"]("abs")))&&(le=he=Se),b.maxdepth=G(["abs","curr","rel"],{abs:Se,curr:le,rel:he})):b.maxdepth=G(["abs","curr","rel"],{abs:b.maxdepth["$[]"]("abs"),curr:b.include_stack.$size(),rel:0})),T((b.lines=b.$prepare_lines(g,G(["normalize","condense","indent"],{normalize:T(P=b.process_lines)?P:"chomp",condense:!1,indent:k["$[]"]("indent")})))["$empty?"]())?b.$pop_include():(T(k["$key?"]("leveloffset"))?(b.lines=me(me([T(Be=b.document.$attr("leveloffset"))?":leveloffset: "+Be:":leveloffset!:",""],b.lines.$reverse()),["",":leveloffset: "+k["$[]"]("leveloffset")]),b.lineno=Ke(b.lineno,2)):b.lines["$reverse!"](),b.look_ahead=0),b},-2),W(q,"$include_depth",function(){var g=this;return g.include_stack.$size()}),W(q,"$exceeds_max_depth?",function(){var g=this,u=X,m=X;return T(u=T(m=g.maxdepth)?N(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):m)?g.maxdepth["$[]"]("rel"):u}),v(q,"exceeded_max_depth?","exceeds_max_depth?"),W(q,"$shift",function H(){var g=H.$$p||X,u=this,m=X;return H.$$p=null,T(u.unescape_next_line)?(u.unescape_next_line=!1,(m=Je(u,ht(u,"shift",H,!1,!0),"shift",[],g)).$slice(1,m.$length())):Je(u,ht(u,"shift",H,!1,!0),"shift",[],g)}),W(q,"$include_processors?",function(){var g=this;return T(g.include_processor_extensions["$nil?"]())?T(g.document["$extensions?"]())&&T(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),W(q,"$create_include_cursor",function(g,u,m){var R=X;return K(M("String"),g)?R=M("File").$dirname(g):T(te("RUBY_ENGINE_OPAL"))?R=M("File").$dirname(g=g.$to_s()):(R=Pe(R=M("File").$dirname(g.$path()),"")?"/":R,g=g.$to_s()),te("Cursor").$new(g,R,u,m)}),W(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+", include depth: "+g.include_stack.$size()+", include stack: ["+Ne(g.include_stack,"map",[],function(m){return m==null&&(m=X),m.$to_s()}).$join(", ")+"]}>"}),q.$private(),W(q,"$prepare_lines",function H(g,u){var m=H.$$p||X,R=this,k=X,b=X,D=X,P=X;if(H.$$p=null,u==null&&(u=G([],{})),k=Je(R,ht(R,"prepare_lines",H,!1,!0),"prepare_lines",[g,u],m),T(R.document)&&T(R.document.$attributes()["$[]"]("skip-front-matter"))&&T(b=R["$skip_front_matter!"](k))&&R.document.$attributes()["$[]="]("front-matter",b.$join(te("LF"))),T(u.$fetch("condense",!0)))for(;T(T(D=P=k["$[]"](-1))?P["$empty?"]():D);)k.$pop();return T(u["$[]"]("indent"))&&te("Parser")["$adjust_indentation!"](k,u["$[]"]("indent").$to_i(),R.document.$attr("tabsize").$to_i()),k},-2),W(q,"$process_line",function(g){var u,m=this;return T(m.process_lines)?T(g["$empty?"]())?(m.look_ahead=me(m.look_ahead,1),g):T(g["$end_with?"]("]"))&&Ue(g["$start_with?"]("["))&&T(g["$include?"]("::"))?T(g["$include?"]("if"))&&T(te("ConditionalDirectiveRx")["$=~"](g))?Pe((u=tt["~"])===X?X:u["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=me(m.look_ahead,1),g.$slice(1,g.$length())):T(m.$preprocess_conditional_directive((u=tt["~"])===X?X:u["$[]"](2),(u=tt["~"])===X?X:u["$[]"](3),(u=tt["~"])===X?X:u["$[]"](4),(u=tt["~"])===X?X:u["$[]"](5)))?(m.$shift(),X):(m.look_ahead=me(m.look_ahead,1),g):T(m.skipping)?(m.$shift(),X):T(g["$start_with?"]("inc","\\inc"))&&T(te("IncludeDirectiveRx")["$=~"](g))?Pe((u=tt["~"])===X?X:u["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=me(m.look_ahead,1),g.$slice(1,g.$length())):T(m.$preprocess_include_directive((u=tt["~"])===X?X:u["$[]"](2),(u=tt["~"])===X?X:u["$[]"](3)))?X:(m.look_ahead=me(m.look_ahead,1),g):(m.look_ahead=me(m.look_ahead,1),g):T(m.skipping)?(m.$shift(),X):(m.look_ahead=me(m.look_ahead,1),g):g}),W(q,"$preprocess_conditional_directive",function(g,u,m,R){var k,b=this,D=X,P=X,he=X,le=X,Se=X,Be=X;if(T(D=u["$empty?"]())||(u=u.$downcase()),Pe(g,"endif"))return T(R)?b.$logger().$error(b.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+u+"["+R+"]",G(["source_location"],{source_location:b.$cursor()}))):T(b.conditional_stack["$empty?"]())?b.$logger().$error(b.$message_with_context("unmatched preprocessor directive: endif::"+u+"[]",G(["source_location"],{source_location:b.$cursor()}))):T(D)||Pe(u,(P=b.conditional_stack["$[]"](-1))["$[]"]("target"))?(b.conditional_stack.$pop(),b.skipping=T(b.conditional_stack["$empty?"]())?!1:b.conditional_stack["$[]"](-1)["$[]"]("skipping")):b.$logger().$error(b.$message_with_context("mismatched preprocessor directive: endif::"+u+"[], expected endif::"+P["$[]"]("target")+"[]",G(["source_location"],{source_location:b.$cursor()}))),!0;if(T(b.skipping))he=!1;else switch(g){case"ifdef":if(T(D))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+R+"]",G(["source_location"],{source_location:b.$cursor()}))),!0;switch(m){case",":he=Ne(u.$split(",",-1),"none?",[],function Xe(it){var _t=Xe.$$s==null?this:Xe.$$s;return _t.document==null&&(_t.document=X),it==null&&(it=X),_t.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":he=Ne(u.$split("+",-1),"any?",[],function Xe(it){var _t=Xe.$$s==null?this:Xe.$$s;return _t.document==null&&(_t.document=X),it==null&&(it=X),_t.document.$attributes()["$key?"](it)["$!"]()},{$$s:b});break;default:he=b.document.$attributes()["$key?"](u)["$!"]()}break;case"ifndef":if(T(D))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+R+"]",G(["source_location"],{source_location:b.$cursor()}))),!0;switch(m){case",":he=Ne(u.$split(",",-1),"any?",[],function Xe(it){var _t=Xe.$$s==null?this:Xe.$$s;return _t.document==null&&(_t.document=X),it==null&&(it=X),_t.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":he=Ne(u.$split("+",-1),"all?",[],function Xe(it){var _t=Xe.$$s==null?this:Xe.$$s;return _t.document==null&&(_t.document=X),it==null&&(it=X),_t.document.$attributes()["$key?"](it)},{$$s:b});break;default:he=b.document.$attributes()["$key?"](u)}break;case"ifeval":if(T(D))if(T(R)&&T(te("EvalExpressionRx")["$=~"](R.$strip())))le=(k=tt["~"])===X?X:k["$[]"](1),Se=(k=tt["~"])===X?X:k["$[]"](2),Be=(k=tt["~"])===X?X:k["$[]"](3),he=function(){try{return!T(b.$resolve_expr_val(le).$send(Se,b.$resolve_expr_val(Be)))}catch(Xe){if(a.rescue(Xe,[te("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Xe}}();else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - "+(T(R)?"invalid expression":"missing expression")+": ifeval::["+R+"]",G(["source_location"],{source_location:b.$cursor()}))),!0;else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+u+"["+R+"]",G(["source_location"],{source_location:b.$cursor()}))),!0;break}return Pe(g,"ifeval")||Ue(R)?(T(he)&&(b.skipping=!0),b.conditional_stack["$<<"](G(["target","skip","skipping"],{target:u,skip:he,skipping:b.skipping}))):T(b.skipping)||T(he)||(b.$replace_next_line(R.$rstrip()),b.$unshift(""),T(R["$start_with?"]("include::"))&&(b.look_ahead=Ke(b.look_ahead,1))),!0}),W(q,"$preprocess_include_directive",function(g,u){var m,R,k=this,b=X,D=X,P=X,he=X,le=X,Se=X,Be=X,Xe=X,it=X,_t=X,at=X,vt=X,St=X,Et=X,kt=X,Nt=X,Rt=X,Wt=X,jt=X,er=X,Kt=X,Pt=X,Yt=X,Xt=X,nr=X,Gn=X,rn=X;if(b=k.document,T((D=g)["$include?"](te("ATTR_REF_HEAD")))&&T((D=b.$sub_attributes(g,G(["attribute_missing"],{attribute_missing:Pe(P=T(he=b.$attributes()["$[]"]("attribute-missing"))?he:te("Compliance").$attribute_missing(),"warn")?"drop-line":P})))["$empty?"]()))return Pe(P,"drop-line")&&T(b.$sub_attributes(me(g," "),G(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(Ne(k.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("include dropped due to missing attribute: include::"+g+"["+u+"]",G(["source_location"],{source_location:Ut.$cursor()}))},{$$s:k}),k.$shift(),!0):T(b.$parse_attributes(u,[],G(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(Ne(k.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("optional include dropped "+(Pe(P,"warn")&&T(b.$sub_attributes(me(g," "),G(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+u+"]",G(["source_location"],{source_location:Ut.$cursor()}))},{$$s:k}),k.$shift(),!0):(k.$logger().$warn(k.$message_with_context("include dropped "+(Pe(P,"warn")&&T(b.$sub_attributes(me(g," "),G(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+u+"]",G(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+g+"["+u+"]"));if(T(k["$include_processors?"]())&&T(le=Ne(k.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=X),Ut.$instance()["$handles?"](D)})))return k.$shift(),le.$process_method()["$[]"](b,k,D,b.$parse_attributes(u,[],G(["sub_input"],{sub_input:!0}))),!0;if(T(N(b.$safe(),M(te("SafeMode"),"SECURE"))))return k.$replace_next_line("link:"+D+"[role=include]");if(T(k.maxdepth)){if(T(N(k.include_stack.$size(),k.maxdepth["$[]"]("curr"))))return k.$logger().$error(k.$message_with_context("maximum include depth of "+k.maxdepth["$[]"]("rel")+" exceeded",G(["source_location"],{source_location:k.$cursor()}))),X;switch(Se=b.$parse_attributes(u,[],G(["sub_input"],{sub_input:!0})),R=k.$resolve_include_path(D,u,Se),m=qe(R),Be=m[0]==null?X:m[0],Xe=m[1]==null?X:m[1],it=m[2]==null?X:m[2],Xe){case"file":_t=M("File").$method("open"),at=te("FILE_READ_MODE");break;case"uri":_t=M("OpenURI").$method("open_uri"),at=te("URI_READ_MODE");break;default:return Be}if(T(te("RUBY_ENGINE_OPAL"))||T(vt=Se["$[]"]("encoding"))&&T(function(){try{return M("Encoding").$find(vt)}catch(Jt){if(a.rescue(Jt,[te("StandardError")]))try{return X}finally{a.pop_exception()}else throw Jt}}())&&((St=at.$split(":"))["$[]="](1,vt),at=St.$join(":")),Et=kt=X,T(u)&&(T(Se["$key?"]("lines"))?(Et=[],Ne(k.$split_delimited_value(Se["$[]"]("lines")),"each",[],function(Ut){var Zt,Cr,Ht=X,Sr=X;return Ut==null&&(Ut=X),T(Ut["$include?"](".."))?(Cr=Ut.$partition(".."),Zt=qe(Cr),Ht=Zt[0]==null?X:Zt[0],Zt[1]==null||Zt[1],Sr=Zt[2]==null?X:Zt[2],Et=me(Et,T(Sr["$empty?"]())||T(E(Sr=Sr.$to_i(),0))?[Ht.$to_i(),M(M("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),Sr,!1).$to_a())):Et["$<<"](Ut.$to_i())}),Et=T(Et["$empty?"]())?X:Et.$sort().$uniq()):T(Se["$key?"]("tag"))?T((Nt=Se["$[]"]("tag"))["$empty?"]())||Pe(Nt,"!")||(kt=T(Nt["$start_with?"]("!"))?rt(Nt.$slice(1,Nt.$length()),!1):rt(Nt,!0)):T(Se["$key?"]("tags"))&&(kt=G([],{}),Ne(k.$split_delimited_value(Se["$[]"]("tags")),"each",[],function(Ut){var Zt;return Ut==null&&(Ut=X),T(Ut["$empty?"]())||Pe(Ut,"!")?X:T(Ut["$start_with?"]("!"))?(Zt=[Ut.$slice(1,Ut.$length()),!1],Ne(kt,"[]=",Zt),Zt[Zt.length-1]):(Zt=[Ut,!0],Ne(kt,"[]=",Zt),Zt[Zt.length-1])}),T(kt["$empty?"]())&&(kt=X))),T(Et)){m=[[],X,0],Rt=m[0],Wt=m[1],jt=m[2];try{Ne(_t,"call",[Be,at],function(Ut){var Zt=X;return Ut==null&&(Ut=X),Zt=X,function(){try{var Cr=De("break");return Ne(Ut,"each_line",[],function(Sr){var hn=X;if(Sr==null&&(Sr=X),jt=me(jt,1),T(Zt)||K(M("Float"),hn=Et["$[]"](0))&&T(Zt=hn["$infinite?"]()))return Wt=T(he=Wt)?he:jt,Rt["$<<"](Sr);if(Pe(hn,jt)&&(Wt=T(he=Wt)?he:jt,Rt["$<<"](Sr),Et.$shift()),T(Et["$empty?"]()))Cr.$throw();else return X})}catch(Ht){if(Ht===Cr)return Ht.$v;throw Ht}}()})}catch(Jt){if(a.rescue(Jt,[te("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,G(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+D+"["+u+"]")}finally{a.pop_exception()}else throw Jt}k.$shift(),T(Wt)&&(Se["$[]="]("partial-option",""),k.$push_include(Rt,Be,it,Wt,Se))}else if(T(kt)){m=[[],X,0,[],M("Set").$new(),X],Rt=m[0],Wt=m[1],jt=m[2],er=m[3],Kt=m[4],Pt=m[5],T(kt["$key?"]("**"))?(Yt=Xt=kt.$delete("**"),T(kt["$key?"]("*"))?nr=kt.$delete("*"):Ue(Yt)&&Pe(kt.$values().$first(),!1)&&(nr=!0)):T(kt["$key?"]("*"))?Pe(kt.$keys().$first(),"*")?Yt=Xt=(nr=kt.$delete("*"))["$!"]():(Yt=Xt=!1,nr=kt.$delete("*")):Yt=Xt=kt["$value?"](!0)["$!"]();try{Ne(_t,"call",[Be,at],function Jt(Ut){var Zt,Cr=Jt.$$s==null?this:Jt.$$s,Ht=X,Sr=X;return Ut==null&&(Ut=X),Zt=["::","[]"],Ht=Zt[0],Sr=Zt[1],Ne(Ut,"each_line",[],function hn(Tr){var Er,bn,Br=hn.$$s==null?this:hn.$$s,Xr=X,Xs=X,Qs=X;return Tr==null&&(Tr=X),jt=me(jt,1),T(Tr["$include?"](Ht))&&T(Tr["$include?"](Sr))&&T(te("TagDirectiveRx")["$=~"](Tr))?(Xr=(Er=tt["~"])===X?X:Er["$[]"](2),T((Er=tt["~"])===X?X:Er["$[]"](1))?Pe(Xr,Pt)?(er.$pop(),bn=T(er["$empty?"]())?[X,Xt]:er["$[]"](-1),Er=qe(bn),Pt=Er[0]==null?X:Er[0],Yt=Er[1]==null?X:Er[1],bn):T(kt["$key?"](Xr))?(Xs=Br.$create_include_cursor(Be,D,jt),T(Qs=Ne(er,"rindex",[],function(Zs){return Zs==null&&(Zs=X),Zs["$=="](Xr)},{$$has_trailing_comma_in_args:!0}))?(Pe(Qs,0)?er.$shift():er.$delete_at(Qs),Br.$logger().$warn(Br.$message_with_context("mismatched end tag (expected '"+Pt+"' but found '"+Xr+"') at line "+jt+" of include "+Xe+": "+Be,G(["source_location","include_location"],{source_location:Br.$cursor(),include_location:Xs})))):Br.$logger().$warn(Br.$message_with_context("unexpected end tag '"+Xr+"' at line "+jt+" of include "+Xe+": "+Be,G(["source_location","include_location"],{source_location:Br.$cursor(),include_location:Xs})))):X:T(kt["$key?"](Xr))?(T(Yt=kt["$[]"](Xr))&&Kt["$<<"](Xr),er["$<<"]([Pt=Xr,Yt,jt])):Ue(nr["$nil?"]())?(Yt=T(Pt)&&Ue(Yt)?!1:nr,er["$<<"]([Pt=Xr,Yt,jt])):X):T(Yt)?(Wt=T(he=Wt)?he:jt,Rt["$<<"](Tr)):X},{$$s:Cr})},{$$s:k})}catch(Jt){if(a.rescue(Jt,[te("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,G(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+D+"["+u+"]")}finally{a.pop_exception()}else throw Jt}T(er["$empty?"]())||Ne(er,"each",[],function Jt(Ut,Zt,Cr){var Ht=Jt.$$s==null?this:Jt.$$s;return Ut==null&&(Ut=X),Cr==null&&(Cr=X),Ht.$logger().$warn(Ht.$message_with_context("detected unclosed tag '"+Ut+"' starting at line "+Cr+" of include "+Xe+": "+Be,G(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Be,D,Cr)})))},{$$s:k}),T((Gn=Ke(Ne(kt,"keep_if",[],function(Ut,Zt){return Zt==null&&(Zt=X),Zt}).$keys(),Kt.$to_a()))["$empty?"]())||k.$logger().$warn(k.$message_with_context("tag"+(T(Oe(Gn.$size(),1))?"s":"")+" '"+Gn.$join(", ")+"' not found in include "+Xe+": "+Be,G(["source_location"],{source_location:k.$cursor()}))),k.$shift(),T(Wt)&&(T(Xt)&&We(nr,!1)&&T(kt["$empty?"]())||Se["$[]="]("partial-option",""),k.$push_include(Rt,Be,it,Wt,Se))}else{rn=X;try{rn=Ne(_t,"call",[Be,at],function(Ut){return Ut==null&&(Ut=X),Ut.$read()}),k.$shift()}catch(Jt){if(a.rescue(Jt,[te("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,G(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+D+"["+u+"]")}finally{a.pop_exception()}else throw Jt}k.$push_include(rn,Be,it,1,Se)}return!0}else return X}),W(q,"$resolve_include_path",function(g,u,m){var R,k=this,b=X,D=X,P=X;return b=k.document,T(te("Helpers")["$uriish?"](g))||T(K(M("String"),k.dir)?X:g=""+k.dir+"/"+g)?T(b["$attr?"]("allow-uri-read"))?(T(b["$attr?"]("cache-uri"))?T((R=M("::","OpenURI","skip_raise"))&&M(R,"Cache","skip_raise")?"constant":X)||te("Helpers").$require_library("open-uri/cached","open-uri-cached"):Ue(te("RUBY_ENGINE_OPAL"))&&M("OpenURI"),[M("URI").$parse(g),"uri",g]):k.$replace_next_line("link:"+g+"[role=include]"):(D=b.$normalize_system_path(g,k.dir,X,G(["target_name"],{target_name:"include file"})),T(M("File")["$file?"](D))?(P=b.$path_resolver().$relative_path(D,b.$base_dir()),[D,"file",P]):T(m["$[]"]("optional-option"))?(Ne(k.$logger(),"info",[],function he(){var le=he.$$s==null?this:he.$$s;return le.$message_with_context("optional include dropped because include file not found: "+D,G(["source_location"],{source_location:le.$cursor()}))},{$$s:k}),k.$shift(),!0):(k.$logger().$error(k.$message_with_context("include file not found: "+D,G(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+g+"["+u+"]")))}),W(q,"$pop_include",function(){var g,u,m=this;return T(m.include_stack["$empty?"]())||(u=m.include_stack.$pop(),g=qe(u),m.lines=g[0]==null?X:g[0],m.file=g[1]==null?X:g[1],m.dir=g[2]==null?X:g[2],m.path=g[3]==null?X:g[3],m.lineno=g[4]==null?X:g[4],m.maxdepth=g[5]==null?X:g[5],m.process_lines=g[6]==null?X:g[6],m.look_ahead=0),X}),W(q,"$split_delimited_value",function(g){return T(g["$include?"](","))?g.$split(","):g.$split(";")}),W(q,"$skip_front_matter!",function(g,u){var m=this,R=X,k=X,b=X,D=X,P=X;if(u==null&&(u=!0),!Pe(R=g["$[]"](0),"---"))return X;for(k=g.$drop(0),g.$shift(),b=[],T(u)&&(m.lineno=me(m.lineno,1));!T(T(D=P=g["$empty?"]())?D:g["$[]"](0)["$=="](R));)b["$<<"](g.$shift()),T(u)&&(m.lineno=me(m.lineno,1));return T(P)?(Ne(g,"unshift",st(k)),T(u)&&(m.lineno=Ke(m.lineno,k.$size())),X):(g.$shift(),T(u)&&(m.lineno=me(m.lineno,1)),b)},-2),W(q,"$resolve_expr_val",function(g){var u=this,m=X;return T(g["$start_with?"]('"'))&&T(g["$end_with?"]('"'))||T(g["$start_with?"]("'"))&&T(g["$end_with?"]("'"))?(m=!0,g=g.$slice(1,Ke(g.$length(),1))):m=!1,T(g["$include?"](te("ATTR_REF_HEAD")))&&(g=u.document.$sub_attributes(g,G(["attribute_missing"],{attribute_missing:"drop"}))),T(m)?g:T(g["$empty?"]())?X:Pe(g,"true")?!0:Pe(g,"false")?!1:T(g.$rstrip()["$empty?"]())?" ":T(g["$include?"]("."))?g.$to_f():g.$to_i()})}(Re[0],oe("Reader"),Re)}(ot[0],ot)},Opal.modules["asciidoctor/section"]=function(a){var ae=a.module,re=a.klass,W=a.hash2,me=a.send2,v=a.find_super,G=a.eqeqeq,Ue=a.truthy,K=a.rb_plus,qe=a.def,T=a.alias,Oe=a.rb_gt,Ne=a.eqeq,Ke=a.not,De=a.send,Pe=a.defs,pt=[],We=a.nil;return a.add_stubs("attr_accessor,attr_reader,===,+,level,special,title,generate_id,>,==,sectnum,!,empty?,reftext,sub_placeholder,sub_quotes,compat_mode,[],attributes,context,assign_numeral,class,object_id,inspect,size,[]=,chr,length,gsub,downcase,delete,tr_s,end_with?,chop,start_with?,slice,key?,catalog,unique_id_start_index"),function(st,Ye){var Je=ae(st,"Asciidoctor"),ht=[Je].concat(Ye),N=a.$r(ht);return function(tt,E,rt){var ot=re(tt,E,"Section"),X=[ot].concat(rt),M=a.$r(X),He=ot.$$prototype;return He.document=He.next_section_index=He.parent=He.level=He.numeral=He.numbered=He.sectname=He.title=He.blocks=We,ot.$attr_accessor("index"),ot.$attr_accessor("sectname"),ot.$attr_accessor("special"),ot.$attr_accessor("numbered"),ot.$attr_reader("caption"),qe(ot,"$initialize",function ke(Ie,Re,oe,we){var J;ke.$$p;var B=this,q=We;return ke.$$p=null,Ie==null&&(Ie=We),Re==null&&(Re=We),oe==null&&(oe=!1),we==null&&(we=W([],{})),me(B,v(B,"initialize",ke,!1,!0),"initialize",[Ie,"section",we],null),G(M("Section"),Ie)?(J=[Ue(q=Re)?q:K(Ie.$level(),1),Ie.$special()],B.level=J[0],B.special=J[1]):(J=[Ue(q=Re)?q:1,!1],B.level=J[0],B.special=J[1]),B.numbered=oe,B.index=0},-1),T(ot,"name","title"),qe(ot,"$generate_id",function(){var Ie=this;return M("Section").$generate_id(Ie.$title(),Ie.document)}),qe(ot,"$sections?",function(){var Ie=this;return Oe(Ie.next_section_index,0)}),qe(ot,"$sectnum",function(Ie,Re){var oe=this,we=We;return Ie==null&&(Ie="."),Re==null&&(Re=We),Re=Ue(we=Re)?we:Ne(Re,!1)?"":Ie,Ue(Oe(oe.level,1))&&G(M("Section"),oe.parent)?""+oe.parent.$sectnum(Ie,Ie)+oe.numeral+Re:""+oe.numeral+Re},-1),qe(ot,"$xreftext",function(Ie){var Re=this,oe=We,we=We,J=We,B=We;if(Ie==null&&(Ie=We),Ue(oe=Re.$reftext())&&Ke(oe["$empty?"]()))return oe;if(Ue(Ie))if(Ue(Re.numbered))switch(Ie){case"full":return Ne(we=Re.sectname,"chapter")||Ne(we,"appendix")?J=Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):J=Re.$sub_placeholder(Re.$sub_quotes(Ue(Re.document.$compat_mode())?"``%s''":'"`%s`"'),Re.$title()),Ue(B=Re.document.$attributes()["$[]"](""+we+"-refsig"))?""+B+" "+Re.$sectnum(".",",")+" "+J:""+Re.$sectnum(".",",")+" "+J;case"short":return Ue(B=Re.document.$attributes()["$[]"](""+Re.sectname+"-refsig"))?""+B+" "+Re.$sectnum(".",""):Re.$sectnum(".","");default:return Ne(we=Re.sectname,"chapter")||Ne(we,"appendix")?Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):Re.$title()}else return Ne(we=Re.sectname,"chapter")||Ne(we,"appendix")?Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):Re.$title();else return Re.$title()},-1),qe(ot,"$<<",function ke(Ie){var Re=ke.$$p||We,oe=this;return ke.$$p=null,Ne(Ie.$context(),"section")&&oe.$assign_numeral(Ie),me(oe,v(oe,"<<",ke,!1,!0),"<<",[Ie],Re)}),qe(ot,"$to_s",function ke(){var Ie=ke.$$p||We,Re=this,oe=We;return ke.$$p=null,Ue(Re.title)?(oe=Ue(Re.numbered)?""+Re.$sectnum()+" "+Re.title:Re.title,"#<"+Re.$class()+"@"+Re.$object_id()+" {level: "+Re.level+", title: "+oe.$inspect()+", blocks: "+Re.blocks.$size()+"}>"):me(Re,v(Re,"to_s",ke,!1,!0),"to_s",[],Ie)}),Pe(ot,"$generate_id",function(Ie,Re){var oe,we=We,J=We,B=We,q=We,ie=We,te=We,fe=We,H=We,g=We,u=We;if(we=Re.$attributes(),J=Ue(B=we["$[]"]("idprefix"))?B:"_",Ue(q=we["$[]"]("idseparator"))?(Ne(q.$length(),1)||Ke(ie=q["$empty?"]())&&Ue(q=(oe=["idseparator",q.$chr()],De(we,"[]=",oe),oe[oe.length-1])))&&(te=Ne(q,"-")||Ne(q,".")?" .-":" "+q+".-"):(oe=["_"," _.-"],q=oe[0],te=oe[1]),fe=""+J+Ie.$downcase().$gsub(M("InvalidSectionIdCharsRx"),""),Ue(ie)?fe=fe.$delete(" "):(fe=fe.$tr_s(te,q),Ue(fe["$end_with?"](q))&&(fe=fe.$chop()),Ue(J["$empty?"]())&&Ue(fe["$start_with?"](q))&&(fe=fe.$slice(1,fe.$length()))),Ue(Re.$catalog()["$[]"]("refs")["$key?"](fe))){for(H=Re.$catalog()["$[]"]("refs"),g=M("Compliance").$unique_id_start_index();Ue(H["$[]"](u=""+fe+q+g));)g=K(g,1);return u}else return fe})}(ht[0],N("AbstractBlock"),ht)}(pt[0],pt)},Opal.modules["asciidoctor/stylesheets"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.return_ivar,v=a.defs,G=a.def,Ue=a.truthy,K=a.hash2,qe=[],T=a.nil,Oe=a.$$$;return a.add_stubs("join,new,rstrip,read,primary_stylesheet_data,write,primary_stylesheet_name,stylesheet_basename,for,read_stylesheet,coderay_stylesheet_data,coderay_stylesheet_name,pygments_stylesheet_data,pygments_stylesheet_name"),function(Ne,Ke){var De=ae(Ne,"Asciidoctor"),Pe=[De].concat(Ke);return function(pt,We,st){var Ye=re(pt,We,"Stylesheets"),Je=[Ye].concat(st),ht=a.$r(Je),N=Ye.$$prototype;return N.primary_stylesheet_data=T,W(Je[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),W(Je[0],"STYLESHEETS_DIR",Oe("File").$join(ht("DATA_DIR"),"stylesheets")),Ye.__instance__=Ye.$new(),v(Ye,"$instance",me("__instance__")),G(Ye,"$primary_stylesheet_name",function(){return ht("DEFAULT_STYLESHEET_NAME")}),G(Ye,"$primary_stylesheet_data",function(){var E=this,rt=T;return E.primary_stylesheet_data=Ue(rt=E.primary_stylesheet_data)?rt:Oe("File").$read(Oe("File").$join(ht("STYLESHEETS_DIR"),"asciidoctor-default.css"),K(["mode"],{mode:ht("FILE_READ_MODE")})).$rstrip()}),G(Ye,"$embed_primary_stylesheet",function(){var E=this;return`<style>
427
+ `+E.$primary_stylesheet_data()+`
428
+ </style>`}),G(Ye,"$write_primary_stylesheet",function(E){var rt=this;return E==null&&(E="."),Oe("File").$write(Oe("File").$join(E,rt.$primary_stylesheet_name()),rt.$primary_stylesheet_data(),K(["mode"],{mode:ht("FILE_WRITE_MODE")}))},-1),G(Ye,"$coderay_stylesheet_name",function(){return ht("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),G(Ye,"$coderay_stylesheet_data",function(){return ht("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),G(Ye,"$embed_coderay_stylesheet",function(){var E=this;return`<style>
429
+ `+E.$coderay_stylesheet_data()+`
430
+ </style>`}),G(Ye,"$write_coderay_stylesheet",function(E){var rt=this;return E==null&&(E="."),Oe("File").$write(Oe("File").$join(E,rt.$coderay_stylesheet_name()),rt.$coderay_stylesheet_data(),K(["mode"],{mode:ht("FILE_WRITE_MODE")}))},-1),G(Ye,"$pygments_stylesheet_name",function(E){return E==null&&(E=T),ht("SyntaxHighlighter").$for("pygments").$stylesheet_basename(E)},-1),G(Ye,"$pygments_stylesheet_data",function(E){return E==null&&(E=T),ht("SyntaxHighlighter").$for("pygments").$read_stylesheet(E)},-1),G(Ye,"$embed_pygments_stylesheet",function(E){var rt=this;return E==null&&(E=T),`<style>
431
+ `+rt.$pygments_stylesheet_data(E)+`
432
+ </style>`},-1),G(Ye,"$write_pygments_stylesheet",function(E,rt){var ot=this;return E==null&&(E="."),rt==null&&(rt=T),Oe("File").$write(Oe("File").$join(E,ot.$pygments_stylesheet_name(rt)),ot.$pygments_stylesheet_data(rt),K(["mode"],{mode:ht("FILE_WRITE_MODE")}))},-1)}(Pe[0],null,Pe)}(qe[0],qe)},Opal.modules["asciidoctor/table"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.def,v=a.alias,G=a.hash2,Ue=a.send2,K=a.find_super,qe=a.truthy,T=a.rb_lt,Oe=a.rb_gt,Ne=a.eqeq,Ke=a.rb_times,De=a.rb_divide,Pe=a.send,pt=a.rb_plus,We=a.rb_minus,st=a.return_val,Ye=a.to_a,Je=a.gvars,ht=a.neqeq,N=a.return_ivar,tt=a.to_ary,E=a.regexp,rt=a.not,ot=a.thrower,X=[],M=a.nil,He=a.$$$;return a.add_stubs("attr_accessor,send,attr_reader,new,[],<,>,to_i,==,[]=,attributes,truncate,*,/,to_f,empty?,body,each,<<,size,+,assign_column_widths,warn,logger,-,update_attributes,assign_width,round,head=,map,shift,reinitialize,nil?,unshift,foot=,pop,parent,sourcemap,dup,header_row?,table,style,merge,delete,start_with?,rstrip,slice,length,advance,lstrip,strip,split,include?,readlines,catalog_inline_anchor,=~,apply_subs,attr_writer,convert,text,!=,file,lineno,include,to_set,mark,key?,nested?,document,error,message_with_context,cursor_at_prev_line,nil_or_empty?,escape,columns,match,chop,end_with?,gsub,!,push_cellspec,cell_open?,close_cell,take_cellspec,squeeze,upto,times,cursor_before_mark,rowspan,activate_rowspan,colspan,end_of_row?,close_row,private,rows,effective_column_visits"),function(ke,Ie){var Re=ae(ke,"Asciidoctor"),oe=[Re].concat(Ie),we=a.$r(oe);return function(J,B,q){var ie=re(J,B,"Table"),te=[ie].concat(q),fe=a.$r(te),H=ie.$$prototype;return H.attributes=H.document=H.rows=H.has_header_option=H.columns=M,W(te[0],"DEFAULT_PRECISION",4),function(g,u){var m=re(g,u,"Rows"),R=m.$$prototype;return R.head=R.body=R.foot=M,m.$attr_accessor("head","foot","body"),me(m,"$initialize",function(b,D,P){var he=this;return b==null&&(b=[]),D==null&&(D=[]),P==null&&(P=[]),he.head=b,he.foot=D,he.body=P},-1),v(m,"[]","send"),me(m,"$by_section",function(){var b=this;return[["head",b.head],["body",b.body],["foot",b.foot]]}),me(m,"$to_h",function(){var b=this;return G(["head","body","foot"],{head:b.head,body:b.body,foot:b.foot})})}(te[0],null),ie.$attr_accessor("columns"),ie.$attr_accessor("rows"),ie.$attr_accessor("has_header_option"),ie.$attr_reader("caption"),me(ie,"$initialize",function g(u,m){var R;g.$$p;var k=this,b=M,D=M,P=M;return g.$$p=null,Ue(k,K(k,"initialize",g,!1,!0),"initialize",[u,"table"],null),k.rows=fe("Rows").$new(),k.columns=[],k.has_header_option=!1,qe(b=m["$[]"]("width"))?(qe(Oe(D=b.$to_i(),100))||qe(T(D,1)))&&(Ne(D,0)&&(Ne(b,"0")||Ne(b,"0%"))||(D=100)):D=100,k.attributes["$[]="]("tablepcwidth",D),qe(k.document.$attributes()["$[]"]("pagewidth"))&&k.attributes["$[]="]("tableabswidth",Ne(P=Ke(De(D,100),k.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(fe("DEFAULT_PRECISION")),P.$to_i())?P.$to_i():P),qe(m["$[]"]("rotate-option"))?(R=["orientation","landscape"],Pe(k.attributes,"[]=",R),R[R.length-1]):M}),me(ie,"$header_row?",function(){var u=this,m=M;return qe(m=u.has_header_option)&&qe(u.rows.$body()["$empty?"]())?m:M}),me(ie,"$create_columns",function(u){var m=this,R=M,k=M,b=M,D=M;return R=[],k=M,b=0,Pe(u,"each",[],function P(he){var le=P.$$s==null?this:P.$$s,Se=M,Be=M;return he==null&&(he=M),Se=he["$[]"]("width"),R["$<<"](fe("Column").$new(le,R.$size(),he)),qe(T(Se,0))?(k=qe(Be=k)?Be:[])["$<<"](R["$[]"](-1)):b=pt(b,Se)},{$$s:m}),qe(Oe(D=(m.columns=R).$size(),0))&&(m.attributes["$[]="]("colcount",D),qe(Oe(b,0))||qe(k)||(b=M),m.$assign_column_widths(b,k)),M}),me(ie,"$assign_column_widths",function(u,m){var R=this,k=M,b=M,D=M,P=M,he=M;return u==null&&(u=M),m==null&&(m=M),k=fe("DEFAULT_PRECISION"),b=D=0,qe(u)?(qe(m)&&(qe(Oe(u,100))?(P=0,R.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+u+"%")):(P=De(We(100,u),m.$size()).$truncate(k),Ne(P.$to_i(),P)&&(P=P.$to_i()),u=100),he=G(["width","autowidth-option"],{width:P,"autowidth-option":""}),Pe(m,"each",[],function(Se){return Se==null&&(Se=M),Se.$update_attributes(he)})),Pe(R.columns,"each",[],function(Se){return Se==null&&(Se=M),b=pt(b,D=Se.$assign_width(M,u,k))})):(D=De(100,R.columns.$size()).$truncate(k),Ne(D.$to_i(),D)&&(D=D.$to_i()),Pe(R.columns,"each",[],function(Se){return Se==null&&(Se=M),b=pt(b,Se.$assign_width(D,M,k))})),Ne(b,100)||R.columns["$[]"](-1).$assign_width(pt(We(100,b),D).$round(k),M,k),M},-1),me(ie,"$partition_header_footer",function(u){var m,R=this,k=M,b=M;return k=(m=["rowcount",(b=R.rows.$body()).$size()],Pe(R.attributes,"[]=",m),m[m.length-1]),qe(Oe(k,0))&&(qe(R.has_header_option)?(R.rows["$head="]([Pe(b.$shift(),"map",[],function(P){return P==null&&(P=M),P.$reinitialize(!0)})]),k=We(k,1)):qe(R.has_header_option["$nil?"]())&&(R.has_header_option=!1,b.$unshift(Pe(b.$shift(),"map",[],function(P){return P==null&&(P=M),P.$reinitialize(!1)})))),qe(Oe(k,0))&&qe(u["$[]"]("footer-option"))&&R.rows["$foot="]([b.$pop()]),M})}(oe[0],we("AbstractBlock"),oe),function(J,B){var q=re(J,B,"Column"),ie=q.$$prototype;return ie.attributes=M,q.$attr_accessor("style"),me(q,"$initialize",function te(fe,H,g){te.$$p;var u=this;return te.$$p=null,g==null&&(g=G([],{})),Ue(u,K(u,"initialize",te,!1,!0),"initialize",[fe,"table_column"],null),u.style=g["$[]"]("style"),g["$[]="]("colnumber",pt(H,1)),qe(g["$[]"]("width"))||g["$[]="]("width",1),qe(g["$[]"]("halign"))||g["$[]="]("halign","left"),qe(g["$[]"]("valign"))||g["$[]="]("valign","top"),u.$update_attributes(g)},-3),v(q,"table","parent"),me(q,"$assign_width",function(fe,H,g){var u,m=this,R=M;return qe(H)&&(fe=De(Ke(m.attributes["$[]"]("width").$to_f(),100),H).$truncate(g),Ne(fe.$to_i(),fe)&&(fe=fe.$to_i())),qe(m.$parent().$attributes()["$[]"]("tableabswidth"))&&m.attributes["$[]="]("colabswidth",Ne(R=Ke(De(fe,100),m.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),R.$to_i())?R.$to_i():R),u=["colpcwidth",fe],Pe(m.attributes,"[]=",u),u[u.length-1]}),me(q,"$block?",st(!1)),me(q,"$inline?",st(!1))}(we("Table"),we("AbstractNode")),function(J,B,q){var ie=re(J,B,"Cell"),te=[ie].concat(q),fe=a.$r(te),H=ie.$$prototype;return H.document=H.reinitialize_args=H.attributes=H.cursor=H.text=H.subs=H.style=H.inner_document=H.source_location=H.colspan=H.rowspan=M,W(te[0],"DOUBLE_LF",Ke(fe("LF"),2)),ie.$attr_accessor("colspan"),ie.$attr_accessor("rowspan"),v(ie,"column","parent"),ie.$attr_reader("inner_document"),me(ie,"$initialize",function g(u,m,R,k){var b;g.$$p;var D=this,P=M,he=M,le=M,Se=M,Be=M,Xe=M,it=M,_t=M,at=M,vt=M,St=M,Et=M,kt=M;if(g.$$p=null,R==null&&(R=G([],{})),k==null&&(k=G([],{})),Ue(D,K(D,"initialize",g,!1,!0),"initialize",[u,"table_cell"],null),D.cursor=D.reinitialize_args=M,qe(D.document.$sourcemap())&&(D.source_location=k["$[]"]("cursor").$dup()),qe(u)&&(qe(P=u.$table()["$header_row?"]())?Ne(P,"implicit")&&qe(he=qe(le=u.$style())?le:qe(Se=R)?R["$[]"]("style"):Se)&&((Ne(he,"asciidoc")||Ne(he,"literal"))&&(D.reinitialize_args=[u,m,qe(le=R)?R.$merge():le,k]),he=M):he=u.$style(),D.$update_attributes(u.$attributes())),qe(R))switch(qe(R["$empty?"]())?D.colspan=D.rowspan=M:(b=[R.$delete("colspan"),R.$delete("rowspan")],D.colspan=b[0],D.rowspan=b[1],qe(P)||(he=qe(le=R["$[]"]("style"))?le:he),D.$update_attributes(R)),he){case"asciidoc":if(Be=!0,Xe=k["$[]"]("cursor"),qe((m=m.$rstrip())["$start_with?"](fe("LF")))){for(it=1;qe((m=m.$slice(1,m.$length()))["$start_with?"](fe("LF")));)it=pt(it,1);Xe.$advance(it)}else m=m.$lstrip();break;case"literal":for(_t=!0,m=m.$rstrip();qe(m["$start_with?"](fe("LF")));)m=m.$slice(1,m.$length());break;default:at=!0,m=qe(m)?m.$strip():""}else D.colspan=D.rowspan=M,Ne(he,"asciidoc")&&(Be=!0,Xe=k["$[]"]("cursor"));return qe(Be)?(vt=D.document.$attributes().$delete("doctitle"),St=m.$split(fe("LF"),-1),qe(St["$empty?"]())||qe((Et=St["$[]"](0))["$include?"]("::"))&&(kt=fe("PreprocessorReader").$new(D.document,[Et]).$readlines(),Ne(Et,kt["$[]"](0))&&qe(T(kt.$size(),2))||(St.$shift(),qe(kt["$empty?"]())||Pe(St,"unshift",Ye(kt)))),D.inner_document=fe("Document").$new(St,G(["standalone","parent","cursor"],{standalone:!1,parent:D.document,cursor:Xe})),qe(vt["$nil?"]())||D.document.$attributes()["$[]="]("doctitle",vt),D.subs=M):qe(_t)?(D.content_model="verbatim",D.subs=fe("BASIC_SUBS")):(qe(at)&&(qe(P)?D.cursor=k["$[]"]("cursor"):D.$catalog_inline_anchor(m,k["$[]"]("cursor"))),D.content_model="simple",D.subs=fe("NORMAL_SUBS")),D.text=m,D.style=he},-3),me(ie,"$reinitialize",function(u){var m=this;if(qe(u))m.reinitialize_args=M;else{if(qe(m.reinitialize_args))return Pe(He(fe("Table"),"Cell"),"new",Ye(m.reinitialize_args));m.style=m.attributes["$[]"]("style")}return qe(m.cursor)&&m.$catalog_inline_anchor(),m}),me(ie,"$catalog_inline_anchor",function(u,m){var R,k=this;return u==null&&(u=k.text),m==null&&(m=M),qe(m)||(R=[k.cursor,M],m=R[0],k.cursor=R[1]),qe(u["$start_with?"]("[["))&&qe(fe("LeadingInlineAnchorRx")["$=~"](u))?fe("Parser").$catalog_inline_anchor((R=Je["~"])===M?M:R["$[]"](1),(R=Je["~"])===M?M:R["$[]"](2),k,m,k.document):M},-1),me(ie,"$text",function(){var u=this;return u.$apply_subs(u.text,u.subs)}),ie.$attr_writer("text"),me(ie,"$content",function(){var u=this,m=M,R=M;return Ne(m=u.style,"asciidoc")?u.inner_document.$convert():qe(u.text["$include?"](fe("DOUBLE_LF")))?Pe(u.$text().$split(fe("BlankLineRx")),"map",[],function k(b){var D=k.$$s==null?this:k.$$s;return b==null&&(b=M),qe(m)&&ht(m,"header")?fe("Inline").$new(D.$parent(),"quoted",b,G(["type"],{type:m})).$convert():b},{$$s:u}):qe((R=u.$text())["$empty?"]())?[]:qe(m)&&ht(m,"header")?[fe("Inline").$new(u.$parent(),"quoted",R,G(["type"],{type:m})).$convert()]:[R]}),me(ie,"$lines",function(){var u=this;return u.text.$split(fe("LF"))}),me(ie,"$source",N("text")),me(ie,"$file",function(){var u=this,m=M;return qe(m=u.source_location)?u.source_location.$file():m}),me(ie,"$lineno",function(){var u=this,m=M;return qe(m=u.source_location)?u.source_location.$lineno():m}),me(ie,"$to_s",function g(){var u=g.$$p||M,m=this,R=M;return g.$$p=null,""+Ue(m,K(m,"to_s",g,!1,!0),"to_s",[],u)+" - [text: "+m.text+", colspan: "+(qe(R=m.colspan)?R:1)+", rowspan: "+(qe(R=m.rowspan)?R:1)+", attributes: "+m.attributes+"]"})}(we("Table"),we("AbstractBlock"),oe),function(J,B,q){var ie=re(J,B,"ParserContext"),te=[ie].concat(q),fe=a.$r(te),H=ie.$$prototype;return H.delimiter=H.delimiter_rx=H.buffer=H.cellspecs=H.cell_open=H.format=H.start_cursor_data=H.reader=H.table=H.current_row=H.colcount=H.column_visits=H.active_rowspans=H.linenum=M,ie.$include(fe("Logging")),W(te[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),W(te[0],"DELIMITERS",G(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),ie.$attr_accessor("table"),ie.$attr_accessor("format"),ie.$attr_reader("colcount"),ie.$attr_accessor("buffer"),ie.$attr_reader("delimiter"),ie.$attr_reader("delimiter_re"),me(ie,"$initialize",function(u,m,R){var k,b,D=this,P=M,he=M;return R==null&&(R=G([],{})),D.start_cursor_data=(D.reader=u).$mark(),D.table=m,qe(R["$key?"]("format"))?qe(fe("FORMATS")["$include?"](P=R["$[]"]("format")))?Ne(P,"tsv")?D.format="csv":Ne(D.format=P,"psv")&&qe(m.$document()["$nested?"]())&&(P="!sv"):(D.$logger().$error(D.$message_with_context("illegal table format: "+P,G(["source_location"],{source_location:u.$cursor_at_prev_line()}))),k=["psv",qe(m.$document()["$nested?"]())?"!sv":"psv"],D.format=k[0],P=k[1]):(k=["psv",qe(m.$document()["$nested?"]())?"!sv":"psv"],D.format=k[0],P=k[1]),qe(R["$key?"]("separator"))?qe((he=R["$[]"]("separator"))["$nil_or_empty?"]())?(b=fe("DELIMITERS")["$[]"](P),k=tt(b),D.delimiter=k[0]==null?M:k[0],D.delimiter_rx=k[1]==null?M:k[1]):Ne(he,"\\t")?(b=fe("DELIMITERS")["$[]"]("tsv"),k=tt(b),D.delimiter=k[0]==null?M:k[0],D.delimiter_rx=k[1]==null?M:k[1]):(k=[he,E([He("Regexp").$escape(he)])],D.delimiter=k[0],D.delimiter_rx=k[1]):(b=fe("DELIMITERS")["$[]"](P),k=tt(b),D.delimiter=k[0]==null?M:k[0],D.delimiter_rx=k[1]==null?M:k[1]),D.colcount=qe(m.$columns()["$empty?"]())?-1:m.$columns().$size(),D.buffer="",D.cellspecs=[],D.cell_open=!1,D.active_rowspans=[0],D.column_visits=0,D.current_row=[],D.linenum=-1},-3),me(ie,"$starts_with_delimiter?",function(u){var m=this;return u["$start_with?"](m.delimiter)}),me(ie,"$match_delimiter",function(u){var m=this;return m.delimiter_rx.$match(u)}),me(ie,"$skip_past_delimiter",function(u){var m=this;return m.buffer=""+m.buffer+u+m.delimiter,M}),me(ie,"$skip_past_escaped_delimiter",function(u){var m=this;return m.buffer=""+m.buffer+u.$chop()+m.delimiter,M}),me(ie,"$buffer_has_unclosed_quotes?",function(u,m){var R=this,k=M,b=M,D=M,P=M;return u==null&&(u=M),m==null&&(m='"'),Ne(k=qe(u)?pt(R.buffer,u).$strip():R.buffer.$strip(),m)?!0:qe(k["$start_with?"](m))?(b=pt(m,m),qe(D=k["$end_with?"](m))&&qe(k["$end_with?"](b))||qe(k["$start_with?"](b))?qe(P=(k=k.$gsub(b,""))["$start_with?"](m))?k["$end_with?"](m)["$!"]():P:D["$!"]()):!1},-1),me(ie,"$take_cellspec",function(){var u=this;return u.cellspecs.$shift()}),me(ie,"$push_cellspec",function(u){var m=this,R=M;return u==null&&(u=G([],{})),m.cellspecs["$<<"](qe(R=u)?R:G([],{})),M},-1),me(ie,"$keep_cell_open",function(){var u=this;return u.cell_open=!0,M}),me(ie,"$mark_cell_closed",function(){var u=this;return u.cell_open=!1,M}),me(ie,"$cell_open?",N("cell_open")),me(ie,"$cell_closed?",function(){var u=this;return u.cell_open["$!"]()}),me(ie,"$close_open_cell",function(u){var m=this;return u==null&&(u=G([],{})),m.$push_cellspec(u),qe(m["$cell_open?"]())&&m.$close_cell(!0),m.$advance(),M},-1),me(ie,"$close_cell",function(u){try{var m=ot("return"),R=this,k=M,b=M,D=M,P=M,he=M;return u==null&&(u=!1),Ne(R.format,"psv")?(k=R.buffer,R.buffer="",qe(b=R.$take_cellspec())?D=qe(P=b.$delete("repeatcol"))?P:1:(R.$logger().$error(R.$message_with_context("table missing leading separator; recovering automatically",G(["source_location"],{source_location:Pe(He(fe("Reader"),"Cursor"),"new",Ye(R.start_cursor_data))}))),b=G([],{}),D=1)):(k=R.buffer.$strip(),R.buffer="",b=M,D=1,Ne(R.format,"csv")&&rt(k["$empty?"]())&&qe(k["$include?"](he='"'))&&(qe(k["$start_with?"](he))&&qe(k["$end_with?"](he))?qe(k=k.$slice(1,We(k.$length(),2)))?k=k.$strip().$squeeze(he):(R.$logger().$error(R.$message_with_context("unclosed quote in CSV data; setting cell to empty",G(["source_location"],{source_location:R.reader.$cursor_at_prev_line()}))),k=""):k=k.$squeeze(he))),Pe(1,"upto",[D],function le(Se){var Be=le.$$s==null?this:le.$$s,Xe=M,it=M,_t=M,at=M;return Be.colcount==null&&(Be.colcount=M),Be.table==null&&(Be.table=M),Be.current_row==null&&(Be.current_row=M),Be.reader==null&&(Be.reader=M),Be.column_visits==null&&(Be.column_visits=M),Be.linenum==null&&(Be.linenum=M),Se==null&&(Se=M),Ne(Be.colcount,-1)?(Be.table.$columns()["$<<"](Xe=He(fe("Table"),"Column").$new(Be.table,We(pt(Be.table.$columns().$size(),Se),1))),qe(b)&&qe(b["$key?"]("colspan"))&&qe(Oe(it=We(b["$[]"]("colspan").$to_i(),1),0))&&(_t=Be.table.$columns().$size(),Pe(it,"times",[],function vt(St){var Et=vt.$$s==null?this:vt.$$s;return Et.table==null&&(Et.table=M),St==null&&(St=M),Et.table.$columns()["$<<"](He(fe("Table"),"Column").$new(Et.table,pt(_t,St)))},{$$s:Be}))):qe(Xe=Be.table.$columns()["$[]"](Be.current_row.$size()))||(Be.$logger().$error(Be.$message_with_context("dropping cell because it exceeds specified number of columns",G(["source_location"],{source_location:Be.reader.$cursor_before_mark()}))),m.$throw()),at=He(fe("Table"),"Cell").$new(Xe,k,b,G(["cursor"],{cursor:Be.reader.$cursor_before_mark()})),Be.reader.$mark(),rt(at.$rowspan())||Ne(at.$rowspan(),1)||Be.$activate_rowspan(at.$rowspan(),qe(P=at.$colspan())?P:1),Be.column_visits=pt(Be.column_visits,qe(P=at.$colspan())?P:1),Be.current_row["$<<"](at),qe(Be["$end_of_row?"]())&&(ht(Be.colcount,-1)||qe(Oe(Be.linenum,0))||qe(u)&&Ne(Se,D))?Be.$close_row():M},{$$s:R,$$ret:m}),R.cell_open=!1,M}catch(le){if(le===m)return le.$v;throw le}},-1),ie.$private(),me(ie,"$close_row",function(){var u=this;return u.table.$rows().$body()["$<<"](u.current_row),Ne(u.colcount,-1)&&(u.colcount=u.column_visits),u.column_visits=0,u.current_row=[],u.active_rowspans.$shift(),qe(u.active_rowspans["$[]"](0))||u.active_rowspans["$[]="](0,0),M}),me(ie,"$activate_rowspan",function(u,m){var R=this;return Pe(1,"upto",[We(u,1)],function k(b){var D,P=k.$$s==null?this:k.$$s,he=M;return P.active_rowspans==null&&(P.active_rowspans=M),b==null&&(b=M),D=[b,pt(qe(he=P.active_rowspans["$[]"](b))?he:0,m)],Pe(P.active_rowspans,"[]=",D),D[D.length-1]},{$$s:R}),M}),me(ie,"$end_of_row?",function(){var u=this,m=M;return qe(m=u.colcount["$=="](-1))?m:u.$effective_column_visits()["$=="](u.colcount)}),me(ie,"$effective_column_visits",function(){var u=this;return pt(u.column_visits,u.active_rowspans["$[]"](0))}),me(ie,"$advance",function(){var u=this;return u.linenum=pt(u.linenum,1)})}(we("Table"),null,oe)}(X[0],X)},Opal.modules["asciidoctor/writer"]=function(a){var ae=a.module,re=a.truthy,W=a.rb_plus,me=a.hash2,v=a.def,G=a.return_val,Ue=[],K=a.nil,qe=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(T,Oe){var Ne=ae(T,"Asciidoctor"),Ke=[Ne].concat(Oe);return function(De,Pe){var pt=ae(De,"Writer"),We=[pt].concat(Pe),st=a.$r(We);return v(pt,"$write",function(Je,ht){return re(ht["$respond_to?"]("write"))?ht.$write(W(Je.$chomp(),st("LF"))):qe("File").$write(ht,Je,me(["mode"],{mode:st("FILE_WRITE_MODE")})),K})}(Ke[0],Ke),function(De,Pe){var pt=ae(De,"VoidWriter"),We=[pt].concat(Pe),st=a.$r(We);return pt.$include(st("Writer")),v(pt,"$write",G(K))}(Ke[0],Ke)}(Ue[0],Ue)},Opal.modules["asciidoctor/load"]=function(a){var ae=a.module,re=a.hash2,W=a.truthy,me=a.neqeq,v=a.not,G=a.eqeqeq,Ue=a.send,K=a.to_ary,qe=a.rb_plus,T=a.eqeq,Oe=a.def,Ne=[],Ke=a.nil,De=a.$$$;return a.add_stubs("merge,[],start,!=,logger,key?,logger=,new,!,===,dup,tap,each,partition,[]=,split,gsub,+,respond_to?,keys,raise,join,ancestors,class,==,at,to_i,mtime,absolute_path,path,dirname,basename,extname,read,rewind,drop,record,parse,exception,message,set_backtrace,backtrace,stack_trace=,stack_trace,open,load"),function(Pe,pt){var We=ae(Pe,"Asciidoctor"),st=[We].concat(pt);return function(Ye,Je){var ht=[Ye].concat(Je),N=a.$r(ht);return Oe(Ye,"$load",function(E,rt){var ot,X,M,He,ke=this,Ie=Ke,Re=Ke,oe=Ke,we=Ke,J=Ke,B=Ke,q=Ke,ie=Ke,te=Ke,fe=Ke;rt==null&&(rt=re([],{}));try{if(rt=rt.$merge(),W(Ie=rt["$[]"]("timings"))&&Ie.$start("read"),W(rt["$key?"]("logger"))&&me(Re=rt["$[]"]("logger"),N("LoggerManager").$logger())&&N("LoggerManager")["$logger="](W(oe=Re)?oe:N("NullLogger").$new()),v(we=rt["$[]"]("attributes"))?we=re([],{}):G(De("Hash"),we)?we=we.$merge():W((M=De("::","Java","skip_raise"))&&(X=De(M,"JavaUtil","skip_raise"))&&(ot=De(X,"Map","skip_raise"))?"constant":Ke)&&G(De(De(De("Java"),"JavaUtil"),"Map"),we)?we=we.$dup():G(De("Array"),we)?we=Ue(re([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(we,"each",[],function(m){var R,k,b=Ke,D=Ke,P=Ke;return m==null&&(m=Ke),k=m.$partition("="),R=K(k),b=R[0]==null?Ke:R[0],D=R[1]==null?Ke:R[1],P=R[2]==null?Ke:R[2],R=[b,P],Ue(g,"[]=",R),R[R.length-1]})}):G(De("String"),we)?we=Ue(re([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(we.$gsub(N("SpaceDelimiterRx"),qe("\\1",N("NULL"))).$gsub(N("EscapedSpaceRx"),"\\1").$split(N("NULL")),"each",[],function(m){var R,k,b=Ke,D=Ke,P=Ke;return m==null&&(m=Ke),k=m.$partition("="),R=K(k),b=R[0]==null?Ke:R[0],D=R[1]==null?Ke:R[1],P=R[2]==null?Ke:R[2],R=[b,P],Ue(g,"[]=",R),R[R.length-1]})}):W(we["$respond_to?"]("keys"))&&W(we["$respond_to?"]("[]"))?we=Ue(re([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(we.$keys(),"each",[],function(m){var R;return m==null&&(m=Ke),R=[m,we["$[]"](m)],Ue(g,"[]=",R),R[R.length-1]})}):ke.$raise(De("ArgumentError"),"illegal type for attributes option: "+we.$class().$ancestors().$join(" < ")),G(De("File"),E))rt["$[]="]("input_mtime",T(N("RUBY_ENGINE"),"jruby")?De("Time").$at(E.$mtime().$to_i()):E.$mtime()),we["$[]="]("docfile",J=De("File").$absolute_path(E.$path())),we["$[]="]("docdir",De("File").$dirname(J)),we["$[]="]("docname",N("Helpers").$basename(J,(He=["docfilesuffix",N("Helpers").$extname(J)],Ue(we,"[]=",He),He[He.length-1]))),B=E.$read();else if(W(E["$respond_to?"]("read"))){try{E.$rewind()}catch(H){if(a.rescue(H,[N("StandardError")]))try{}finally{a.pop_exception()}else throw H}B=E.$read()}else G(De("String"),E)?B=E:G(De("Array"),E)?B=E.$drop(0):W(E)&&ke.$raise(De("ArgumentError"),"unsupported input type: "+E.$class());return W(Ie)&&(Ie.$record("read"),Ie.$start("parse")),rt["$[]="]("attributes",we),q=T(rt["$[]"]("parse"),!1)?N("Document").$new(B,rt):N("Document").$new(B,rt).$parse(),W(Ie)&&Ie.$record("parse"),q}catch(H){if(a.rescue(H,[N("StandardError")])){ie=H;try{try{te="asciidoctor: FAILED: "+(W(oe=we["$[]"]("docfile"))?oe:"<stdin>")+": Failed to load AsciiDoc document",W(ie["$respond_to?"]("exception"))?(fe=ie.$exception(""+te+" - "+ie.$message()),fe.$set_backtrace(ie.$backtrace())):(fe=ie.$class().$new(te,ie),fe["$stack_trace="](ie.$stack_trace()))}catch(g){if(a.rescue(g,[N("StandardError")]))try{fe=ie}finally{a.pop_exception()}else throw g}return ke.$raise(fe)}finally{a.pop_exception()}}else throw H}},-2),Oe(Ye,"$load_file",function(E,rt){var ot=this;return rt==null&&(rt=re([],{})),Ue(De("File"),"open",[E,N("FILE_READ_MODE")],function X(M){var He=X.$$s==null?this:X.$$s;return M==null&&(M=Ke),He.$load(M,rt)},{$$s:ot})},-2)}(a.get_singleton_class(We),st)}(Ne[0],Ne)},Opal.modules["asciidoctor/convert"]=function(a){var ae=a.module,re=a.hash2,W=a.eqeqeq,me=a.truthy,v=a.eqeq,G=a.rb_ge,Ue=a.not,K=a.rb_lt,qe=a.neqeq,T=a.def,Oe=a.send,Ne=a.alias,Ke=[],De=a.nil,Pe=a.$$$;return a.add_stubs("delete,merge,===,absolute_path,path,load,respond_to?,[]=,key?,fetch,[],dirname,expand_path,join,attributes,outfilesuffix,==,raise,pwd,>=,safe,normalize_system_path,mkdir_p,directory?,!,convert,write,attr,uriish?,basebackend?,attr?,<,include?,syntax_highlighter,write_stylesheet?,write_primary_stylesheet,instance,to_s,read_asset,file?,!=,write_stylesheet,open,convert_file"),function(pt,We){var st=ae(pt,"Asciidoctor"),Ye=[st].concat(We);return function(Je,ht){var N=[Je].concat(ht),tt=a.$r(N);return T(Je,"$convert",function(rt,ot){var X=this,M=De,He=De,ke=De,Ie=De,Re=De,oe=De,we=De,J=De,B=De,q=De,ie=De,te=De,fe=De,H=De,g=De,u=De,m=De,R=De,k=De,b=De,D=De,P=De,he=De,le=De;if(ot==null&&(ot=re([],{})),(ot=ot.$merge()).$delete("parse"),M=ot.$delete("to_dir"),He=ot.$delete("mkdirs"),W(!0,ke=Ie=ot.$delete("to_file"))||W(De,ke))me(Re=M)||W(Pe("File"),rt)&&(oe=Pe("File").$absolute_path(rt.$path())),Ie=De;else if(W(!1,ke))Ie=De;else{if(W("/dev/null",ke))return X.$load(rt,ot);me(we=Ie["$respond_to?"]("write"))||ot["$[]="]("to_file",Re=Ie)}return me(ot["$key?"]("standalone"))||(me(oe)||me(Re)?ot["$[]="]("standalone",ot.$fetch("header_footer",!0)):me(ot["$key?"]("header_footer"))&&ot["$[]="]("standalone",ot["$[]"]("header_footer"))),me(oe)?ot["$[]="]("to_dir",J=Pe("File").$dirname(oe)):me(Re)&&(me(M)?me(Ie)?ot["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ie,M))):ot["$[]="]("to_dir",Pe("File").$expand_path(M)):me(Ie)&&ot["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ie)))),B=X.$load(rt,ot),me(oe)?(q=Pe("File").$join(J,""+B.$attributes()["$[]"]("docname")+B.$outfilesuffix()),v(q,oe)&&X.$raise(Pe("IOError"),"input file and output file cannot be the same: "+q)):me(Re)?(ie=me(ot["$key?"]("base_dir"))?Pe("File").$expand_path(ot["$[]"]("base_dir")):Pe("Dir").$pwd(),te=me(G(B.$safe(),Pe(tt("SafeMode"),"SAFE")))?ie:De,me(M)?(J=B.$normalize_system_path(M,ie,te,re(["target_name","recover"],{target_name:"to_dir",recover:!1})),me(Ie)?(q=B.$normalize_system_path(Ie,J,De,re(["target_name","recover"],{target_name:"to_dir",recover:!1})),J=Pe("File").$dirname(q)):q=Pe("File").$join(J,""+B.$attributes()["$[]"]("docname")+B.$outfilesuffix())):me(Ie)&&(q=B.$normalize_system_path(Ie,ie,te,re(["target_name","recover"],{target_name:"to_dir",recover:!1})),J=Pe("File").$dirname(q)),W(Pe("File"),rt)&&v(q,Pe("File").$absolute_path(rt.$path()))&&X.$raise(Pe("IOError"),"input file and output file cannot be the same: "+q),me(He)?tt("Helpers").$mkdir_p(J):me(Pe("File")["$directory?"](J))||X.$raise(Pe("IOError"),"target directory does not exist: "+M+" (hint: set :mkdirs option)")):(q=Ie,J=De),me(q)&&Ue(we)?fe=B.$convert(re(["outfile","outdir"],{outfile:q,outdir:J})):fe=B.$convert(),me(q)?(B.$write(fe,q),Ue(we)&&me(K(B.$safe(),Pe(tt("SafeMode"),"SECURE")))&&me(B["$attr?"]("linkcss"))&&me(B["$attr?"]("copycss"))&&me(B["$basebackend?"]("html"))&&Ue(me(ke=H=B.$attr("stylesdir"))?tt("Helpers")["$uriish?"](H):ke)&&(me(g=B.$attr("stylesheet"))&&(me(tt("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?u=!0:Ue(tt("Helpers")["$uriish?"](g))&&(m=!0)),R=me(ke=k=B.$syntax_highlighter())?k["$write_stylesheet?"](B):ke,(me(u)||me(m)||me(R))&&(b=B.$normalize_system_path(H,J,me(G(B.$safe(),Pe(tt("SafeMode"),"SAFE")))?J:De),me(He)?tt("Helpers").$mkdir_p(b):me(Pe("File")["$directory?"](b))||X.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+b+" (hint: set :mkdirs option)"),me(u)?tt("Stylesheets").$instance().$write_primary_stylesheet(b):me(m)&&(v(D=B.$attr("copycss"),"")||v(D,!0)?D=B.$normalize_system_path(g):D=B.$normalize_system_path(D.$to_s()),P=B.$normalize_system_path(g,b,me(G(B.$safe(),Pe(tt("SafeMode"),"SAFE")))?J:De),qe(D,P)&&me(he=B.$read_asset(D,re(["warn_on_failure","label"],{warn_on_failure:Pe("File")["$file?"](P)["$!"](),label:"stylesheet"})))&&(qe(le=Pe("File").$dirname(P),b)&&Ue(Pe("File")["$directory?"](le))&&(me(He)?tt("Helpers").$mkdir_p(le):X.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+le+" (hint: set :mkdirs option)")),Pe("File").$write(P,he,re(["mode"],{mode:tt("FILE_WRITE_MODE")})))),me(R)&&k.$write_stylesheet(B,b))),B):fe},-2),T(Je,"$convert_file",function(rt,ot){var X=this;return ot==null&&(ot=re([],{})),Oe(Pe("File"),"open",[rt,tt("FILE_READ_MODE")],function M(He){var ke=M.$$s==null?this:M.$$s;return He==null&&(He=De),ke.$convert(He,ot)},{$$s:X})},-2),Ne(Je,"render","convert"),Ne(Je,"render_file","convert_file")}(a.get_singleton_class(st),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var ae=a.module,re=a.klass,W=a.slice,me=a.send2,v=a.find_super,G=a.to_a,Ue=a.def,K=a.hash2,qe=a.send,T=a.truthy,Oe=a.return_val,Ne=a.eqeq,Ke=[],De=a.nil,Pe=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(pt,We){var st=ae(pt,"Asciidoctor"),Ye=[st].concat(We),Je=a.$r(Ye);return function(ht,N,tt){var E=re(ht,N,"HighlightJsAdapter"),rt=[E].concat(tt),ot=a.$r(rt);return E.$register_for("highlightjs","highlight.js"),Ue(E,"$initialize",function X(M){var He,ke,Ie=X.$$p||De,Re=this;return X.$$p=null,He=W(arguments),ke=He,me(Re,v(Re,"initialize",X,!1,!0),"initialize",G(ke),Ie),Re.name=Re.pre_class="highlightjs"},-1),Ue(E,"$format",function X(M,He,ke){X.$$p;var Ie=this;return X.$$p=null,me(Ie,v(Ie,"format",X,!1,!0),"format",[M,He,ke.$merge(K(["transform"],{transform:qe(Ie,"proc",[],function(oe,we){var J,B=De;return we==null&&(we=De),J=["class","language-"+(T(B=He)?B:"none")+" hljs"],qe(we,"[]=",J),J[J.length-1]})}))],null)}),Ue(E,"$docinfo?",Oe(!0)),Ue(E,"$docinfo",function(M,He,ke){var Ie=De;return Ie=He.$attr("highlightjsdir",""+ke["$[]"]("cdn_base_url")+"/highlight.js/"+ot("HIGHLIGHT_JS_VERSION")),Ne(M,"head")?'<link rel="stylesheet" href="'+Ie+"/styles/"+He.$attr("highlightjs-theme","github")+'.min.css"'+ke["$[]"]("self_closing_tag_slash")+">":'<script src="'+Ie+`/highlight.min.js"><\/script>
433
+ `+(T(He["$attr?"]("highlightjs-languages"))?qe(He.$attr("highlightjs-languages").$split(","),"map",[],function(oe){return oe==null&&(oe=De),'<script src="'+Ie+"/languages/"+oe.$lstrip()+`.min.js"><\/script>
434
+ `}).$join():"")+`<script>
435
+ if (!hljs.initHighlighting.called) {
436
+ hljs.initHighlighting.called = true
437
+ ;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
438
+ }
439
+ <\/script>`})}(Je("SyntaxHighlighter"),Pe(Je("SyntaxHighlighter"),"Base"),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var ae=a.module,re=a.hash2,W=a.def,me=a.return_val,v=a.defs,G=a.slice,Ue=a.send,K=a.to_a,qe=a.truthy,T=a.eqeqeq,Oe=a.Class,Ne=a.klass,Ke=a.class_variable_set,De=a.class_variable_get,Pe=a.top,pt=[],We=a.nil,st=a.$$$;return a.add_stubs("attr_reader,raise,class,extend,private_class_method,register,map,to_s,each,[]=,registry,[],for,===,new,name,private,include,delete,join,content"),function(Ye,Je){var ht=ae(Ye,"Asciidoctor"),N=[ht].concat(Je);return function(tt,E){var rt=ae(tt,"SyntaxHighlighter"),ot=[rt].concat(E),X=a.$r(ot);return rt.$attr_reader("name"),W(rt,"$initialize",function(He,ke,Ie){var Re=this;return Ie==null&&(Ie=re([],{})),Re.name=Re.pre_class=He},-2),W(rt,"$docinfo?",me(We)),W(rt,"$docinfo",function(He,ke,Ie){var Re=this;return Re.$raise(st("NotImplementedError"),""+X("SyntaxHighlighter")+" subclass "+Re.$class()+" must implement the #docinfo method since #docinfo? returns true")}),W(rt,"$highlight?",me(We)),W(rt,"$highlight",function(He,ke,Ie,Re){var oe=this;return oe.$raise(st("NotImplementedError"),""+X("SyntaxHighlighter")+" subclass "+oe.$class()+" must implement the #highlight method since #highlight? returns true")}),W(rt,"$format",function(He,ke,Ie){var Re=this;return Re.$raise(st("NotImplementedError"),""+X("SyntaxHighlighter")+" subclass "+Re.$class()+" must implement the #format method")}),W(rt,"$write_stylesheet?",me(We)),W(rt,"$write_stylesheet",function(He,ke){var Ie=this;return Ie.$raise(st("NotImplementedError"),""+X("SyntaxHighlighter")+" subclass "+Ie.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),v(rt,"$included",function(He){return He.$extend(X("Config"))}),rt.$private_class_method("included"),function(M,He){var ke=ae(M,"Config"),Ie=[ke].concat(He),Re=a.$r(Ie);return W(ke,"$register_for",function(we){var J,B,q=this;return J=G(arguments),B=J,Ue(Re("SyntaxHighlighter"),"register",[q].concat(K(Ue(B,"map",[],function(te){return te==null&&(te=We),te.$to_s()}))))},-1)}(ot[0],ot),function(M,He){var ke=ae(M,"Factory"),Ie=[ke].concat(He),Re=a.$r(Ie);return W(ke,"$register",function(we,J){var B,q,ie=this;return B=G(arguments,1),q=B,Ue(q,"each",[],function te(fe){var H,g=te.$$s==null?this:te.$$s;return fe==null&&(fe=We),H=[fe,we],Ue(g.$registry(),"[]=",H),H[H.length-1]},{$$s:ie})},-2),W(ke,"$for",function(we){var J=this;return J.$registry()["$[]"](we)}),W(ke,"$create",function(we,J,B){var q=this,ie=We;return J==null&&(J="html5"),B==null&&(B=re([],{})),qe(ie=q.$for(we))?(T(Oe,ie)&&(ie=ie.$new(we,J,B)),qe(ie.$name())||q.$raise(st("NameError"),""+ie.$class()+" must specify a value for `name'"),ie):We},-2),ke.$private(),W(ke,"$registry",function(){var we=this;return we.$raise(st("NotImplementedError"),""+Re("Factory")+" subclass "+we.$class()+" must implement the #registry method")})}(ot[0],ot),function(M,He,ke){var Ie=Ne(M,He,"CustomFactory"),Re=[Ie].concat(ke),oe=a.$r(Re);return Ie.$include(oe("Factory")),W(Ie,"$initialize",function(J){var B=this,q=We;return J==null&&(J=We),B.registry=qe(q=J)?q:re([],{})},-1),Ie.$private(),Ie.$attr_reader("registry")}(ot[0],null,ot),function(M,He){var ke=ae(M,"DefaultFactory"),Ie=[ke].concat(He),Re=a.$r(Ie);return ke.$include(Re("Factory")),Ke(Ie[0],"@@registry",re([],{})),ke.$private(),W(ke,"$registry",function(){return De(Ie[0],"@@registry",!1)}),We}(ot[0],ot),function(M,He,ke){var Ie=Ne(M,He,"DefaultFactoryProxy"),Re=[Ie].concat(ke),oe=a.$r(Re);return Ie.$include(oe("DefaultFactory")),We}(ot[0],X("CustomFactory"),ot),function(M,He,ke){var Ie=Ne(M,He,"Base"),Re=[Ie].concat(ke),oe=a.$r(Re),we=Ie.$$prototype;return we.pre_class=We,Ie.$include(oe("SyntaxHighlighter")),W(Ie,"$format",function(B,q,ie){var te=this,fe=We,H=We,g=We,u=We;return fe=qe(ie["$[]"]("nowrap"))?""+te.pre_class+" highlight nowrap":""+te.pre_class+" highlight",qe(H=ie["$[]"]("transform"))?(H["$[]"](g=re(["class"],{class:fe}),u=qe(q)?re(["data-lang"],{"data-lang":q}):re([],{})),qe(q=u.$delete("data-lang"))&&u["$[]="]("data-lang",q),"<pre"+Ue(g,"map",[],function(R,k){return R==null&&(R=We),k==null&&(k=We)," "+R+'="'+k+'"'}).$join()+"><code"+Ue(u,"map",[],function(R,k){return R==null&&(R=We),k==null&&(k=We)," "+R+'="'+k+'"'}).$join()+">"+B.$content()+"</code></pre>"):'<pre class="'+fe+'"><code'+(qe(q)?' data-lang="'+q+'"':"")+">"+B.$content()+"</code></pre>"})}(ot[0],null,ot),rt.$extend(X("DefaultFactory"))}(N[0],N)}(pt[0],pt),Pe.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),We},Opal.modules["asciidoctor/timings"]=function(a){var ae=a.module,re=a.klass,W=a.hash2,me=a.def,v=a.send,G=a.rb_minus,Ue=a.slice,K=a.rb_plus,qe=a.truthy,T=a.rb_gt,Oe=a.gvars,Ne=a.eqeq,Ke=a.const_set,De=[],Pe=a.nil,pt=a.$$$;return a.add_stubs("[]=,now,-,delete,reduce,+,[],>,time,puts,sprintf,to_f,read_parse,convert,read_parse_convert,private,==,const_defined?,clock_gettime"),function(We,st){var Ye=ae(We,"Asciidoctor"),Je=[Ye].concat(st);return function(ht,N,tt){var E=re(ht,N,"Timings"),rt,ot,X,M,He=[E].concat(tt),ke=a.$r(He),Ie=E.$$prototype;return Ie.timers=Ie.log=Pe,me(E,"$initialize",function(){var oe=this;return oe.log=W([],{}),oe.timers=W([],{})}),me(E,"$start",function(oe){var we,J=this;return we=[oe,J.$now()],v(J.timers,"[]=",we),we[we.length-1]}),me(E,"$record",function(oe){var we,J=this;return we=[oe,G(J.$now(),J.timers.$delete(oe))],v(J.log,"[]=",we),we[we.length-1]}),me(E,"$time",function(oe){var we,J,B=this,q=Pe;return we=Ue(arguments),J=we,q=v(J,"reduce",[0],function ie(te,fe){var H=ie.$$s==null?this:ie.$$s,g=Pe;return H.log==null&&(H.log=Pe),te==null&&(te=Pe),fe==null&&(fe=Pe),K(te,qe(g=H.log["$[]"](fe))?g:0)},{$$s:B}),qe(T(q,0))?q:Pe},-1),me(E,"$read",function(){var oe=this;return oe.$time("read")}),me(E,"$parse",function(){var oe=this;return oe.$time("parse")}),me(E,"$read_parse",function(){var oe=this;return oe.$time("read","parse")}),me(E,"$convert",function(){var oe=this;return oe.$time("convert")}),me(E,"$read_parse_convert",function(){var oe=this;return oe.$time("read","parse","convert")}),me(E,"$write",function(){var oe=this;return oe.$time("write")}),me(E,"$total",function(){var oe=this;return oe.$time("read","parse","convert","write")}),me(E,"$print_report",function(oe,we){var J=this;return Oe.stdout==null&&(Oe.stdout=Pe),oe==null&&(oe=Oe.stdout),we==null&&(we=Pe),qe(we)&&oe.$puts("Input file: "+we),oe.$puts(" Time to read and parse source: "+J.$sprintf("%05.5f",J.$read_parse().$to_f())),oe.$puts(" Time to convert document: "+J.$sprintf("%05.5f",J.$convert().$to_f())),oe.$puts(" Total time (read, parse and convert): "+J.$sprintf("%05.5f",J.$read_parse_convert().$to_f()))},-1),E.$private(),qe(pt("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&Ne((rt=pt("::","Process","skip_raise"))&&(ot=rt,ot)&&(X=ot)&&((M=X.$clock_gettime)&&!M.$$stub||X["$respond_to_missing?"]("clock_gettime"))?"method":Pe,"method")?(Ke(He[0],"CLOCK_ID",pt(pt("Process"),"CLOCK_MONOTONIC")),me(E,"$now",function(){return pt("Process").$clock_gettime(ke("CLOCK_ID"))})):me(E,"$now",function(){return pt("Time").$now()})}(Je[0],null,Je)}(De[0],De)},Opal.modules["asciidoctor/converter/html5"]=function(a){var ae=a.module,re=a.klass,W=a.const_set,me=a.hash2,v=a.regexp,G=a.eqeq,Ue=a.def,K=a.send2,qe=a.find_super,T=a.truthy,Oe=a.send,Ne=a.rb_gt,Ke=a.rb_plus,De=a.not,Pe=a.neqeq,pt=a.rb_le,We=a.rb_lt,st=a.to_ary,Ye=a.rb_times,Je=a.rb_minus,ht=a.gvars,N=a.return_val,tt=a.alias,E=a.eqeqeq,rt=a.slice,ot=a.to_a,X=[],M=a.nil,He=a.$$$;return a.add_stubs("register_for,default=,==,[],init_backend_traits,node_name,convert_inline_quoted,convert_paragraph,convert_inline_anchor,convert_section,convert_listing,convert_literal,convert_ulist,convert_olist,convert_dlist,convert_admonition,convert_colist,convert_embedded,convert_example,convert_floating_title,convert_image,convert_inline_break,convert_inline_button,convert_inline_callout,convert_inline_footnote,convert_inline_image,convert_inline_indexterm,convert_inline_kbd,convert_inline_menu,convert_open,convert_page_break,convert_preamble,convert_quote,convert_sidebar,convert_stem,convert_table,convert_thematic_break,convert_verse,convert_video,convert_document,convert_toc,convert_pass,convert_audio,empty?,attr,attr?,<<,include?,sub_replacements,gsub,extname,slice,length,doctitle,normalize_web_path,primary_stylesheet_data,instance,read_contents,syntax_highlighter,size,docinfo,id,sections?,doctype,role?,role,join,noheader,convert,converter,generate_manname_section,header?,notitle,title,header,each,authors,>,name,email,sub_macros,+,downcase,concat,content,!,footnotes?,footnotes,index,text,nofooter,docinfo?,[]=,delete_at,inspect,!=,to_i,attributes,document,sections,level,caption,captioned_title,<=,numbered,<,sectname,sectnum,convert_outline,title?,icon_uri,compact,media_uri,option?,append_boolean_attribute,style,items,blocks?,text?,chomp,safe,read_svg_contents,alt,image_uri,encode_attribute_value,append_link_constraint_attrs,highlight?,to_sym,format,*,-,count,end_with?,start_with?,list_marker_keyword,parent,warn,logger,context,error,content_only,new,columns,to_h,rows,colspan,rowspan,unshift,shift,split,pop,nil_or_empty?,type,===,catalog,get_root_document,xreftext,target,reftext,chop,sub,match,private,upcase,nested?,parent_document,handles?,to_s,send"),function(ke,Ie){var Re=ae(ke,"Asciidoctor"),oe=[Re].concat(Ie),we=a.$r(oe);return function(J,B,q){var ie=re(J,B,"Html5Converter"),te=[ie].concat(q),fe=a.$r(te),H=ie.$$prototype;return H.void_element_slash=H.xml_mode=H.refs=H.resolving_xref=M,ie.$register_for("html5"),W(te[0],"QUOTE_TAGS",me(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["&#8220;","&#8221;"],single:["&#8216;","&#8217;"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}))["$default="](["",""]),W(te[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),W(te[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),W(te[0],"SvgPreambleRx",v(["^",fe("CC_ALL"),"*?(?=<svg[\\s>])"])),W(te[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),W(te[0],"DimensionAttributeRx",v([`\\s(?:width|height|style)=(["'])`,fe("CC_ANY"),"*?\\1"])),Ue(ie,"$initialize",function(u,m){var R=this,k=M;return m==null&&(m=me([],{})),R.backend=u,G(m["$[]"]("htmlsyntax"),"xml")?(k="xml",R.xml_mode=!0,R.void_element_slash="/"):(k="html",R.xml_mode=M,R.void_element_slash=""),R.$init_backend_traits(me(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:k,outfilesuffix:".html",supports_templates:!0}))},-2),Ue(ie,"$convert",function g(u,m,R){var k=g.$$p||M,b=this;switch(g.$$p=null,m==null&&(m=u.$node_name()),R==null&&(R=M),m){case"inline_quoted":return b.$convert_inline_quoted(u);case"paragraph":return b.$convert_paragraph(u);case"inline_anchor":return b.$convert_inline_anchor(u);case"section":return b.$convert_section(u);case"listing":return b.$convert_listing(u);case"literal":return b.$convert_literal(u);case"ulist":return b.$convert_ulist(u);case"olist":return b.$convert_olist(u);case"dlist":return b.$convert_dlist(u);case"admonition":return b.$convert_admonition(u);case"colist":return b.$convert_colist(u);case"embedded":return b.$convert_embedded(u);case"example":return b.$convert_example(u);case"floating_title":return b.$convert_floating_title(u);case"image":return b.$convert_image(u);case"inline_break":return b.$convert_inline_break(u);case"inline_button":return b.$convert_inline_button(u);case"inline_callout":return b.$convert_inline_callout(u);case"inline_footnote":return b.$convert_inline_footnote(u);case"inline_image":return b.$convert_inline_image(u);case"inline_indexterm":return b.$convert_inline_indexterm(u);case"inline_kbd":return b.$convert_inline_kbd(u);case"inline_menu":return b.$convert_inline_menu(u);case"open":return b.$convert_open(u);case"page_break":return b.$convert_page_break(u);case"preamble":return b.$convert_preamble(u);case"quote":return b.$convert_quote(u);case"sidebar":return b.$convert_sidebar(u);case"stem":return b.$convert_stem(u);case"table":return b.$convert_table(u);case"thematic_break":return b.$convert_thematic_break(u);case"verse":return b.$convert_verse(u);case"video":return b.$convert_video(u);case"document":return b.$convert_document(u);case"toc":return b.$convert_toc(u);case"pass":return b.$convert_pass(u);case"audio":return b.$convert_audio(u);default:return K(b,qe(b,"convert",g,!1,!0),"convert",[u,m,R],k)}},-2),Ue(ie,"$convert_document",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M,it=M,_t=M,at=M,vt=M,St=M,Et=M,kt=M,Nt=M,Rt=M,Wt=M,jt=M,er=M,Kt=M,Pt=M,Yt=M;return R="<br"+(k=m.void_element_slash)+">",T((b=u.$attr("asset-uri-scheme","https"))["$empty?"]())||(b=""+b+":"),D=""+b+"//cdnjs.cloudflare.com/ajax/libs",P=u["$attr?"]("linkcss"),he=T(u["$attr?"]("max-width"))?' style="max-width: '+u.$attr("max-width")+';"':"",le=["<!DOCTYPE html>"],Se=T(u["$attr?"]("nolang"))?"":' lang="'+u.$attr("lang","en")+'"',le["$<<"]("<html"+(T(m.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+Se+">"),le["$<<"](`<head>
440
+ <meta charset="`+u.$attr("encoding","UTF-8")+'"'+k+`>
441
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"`+k+`>
442
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"`+k+`>
443
+ <meta name="generator" content="Asciidoctor `+u.$attr("asciidoctor-version")+'"'+k+">"),T(u["$attr?"]("app-name"))&&le["$<<"]('<meta name="application-name" content="'+u.$attr("app-name")+'"'+k+">"),T(u["$attr?"]("description"))&&le["$<<"]('<meta name="description" content="'+u.$attr("description")+'"'+k+">"),T(u["$attr?"]("keywords"))&&le["$<<"]('<meta name="keywords" content="'+u.$attr("keywords")+'"'+k+">"),T(u["$attr?"]("authors"))&&le["$<<"]('<meta name="author" content="'+(T((Be=u.$sub_replacements(u.$attr("authors")))["$include?"]("<"))?Be.$gsub(fe("XmlSanitizeRx"),""):Be)+'"'+k+">"),T(u["$attr?"]("copyright"))&&le["$<<"]('<meta name="copyright" content="'+u.$attr("copyright")+'"'+k+">"),T(u["$attr?"]("favicon"))&&(T((Xe=u.$attr("favicon"))["$empty?"]())?(Xe="favicon.ico",it="image/x-icon"):T(_t=fe("Helpers").$extname(Xe,M))?it=G(_t,".ico")?"image/x-icon":"image/"+_t.$slice(1,_t.$length()):it="image/x-icon",le["$<<"]('<link rel="icon" type="'+it+'" href="'+Xe+'"'+k+">")),le["$<<"]("<title>"+u.$doctitle(me(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),T(fe("DEFAULT_STYLESHEET_KEYS")["$include?"](u.$attr("stylesheet")))?(T(at=u.$attr("webfonts"))&&le["$<<"]('<link rel="stylesheet" href="'+b+"//fonts.googleapis.com/css?family="+(T(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+k+">"),T(P)?le["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(fe("DEFAULT_STYLESHEET_NAME"),u.$attr("stylesdir",""),!1)+'"'+k+">"):le["$<<"](`<style>
444
+ `+fe("Stylesheets").$instance().$primary_stylesheet_data()+`
445
+ </style>`)):T(u["$attr?"]("stylesheet"))&&(T(P)?le["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(u.$attr("stylesheet"),u.$attr("stylesdir",""))+'"'+k+">"):le["$<<"](`<style>
446
+ `+u.$read_contents(u.$attr("stylesheet"),me(["start","warn_on_failure","label"],{start:u.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
447
+ </style>`)),T(u["$attr?"]("icons","font"))&&(T(u["$attr?"]("iconfont-remote"))?le["$<<"]('<link rel="stylesheet" href="'+u.$attr("iconfont-cdn",""+D+"/font-awesome/"+fe("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+k+">"):(vt=""+u.$attr("iconfont-name","font-awesome")+".css",le["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(vt,u.$attr("stylesdir",""),!1)+'"'+k+">"))),T(St=u.$syntax_highlighter())&&le["$<<"](Et=le.$size()),T((kt=u.$docinfo())["$empty?"]())||le["$<<"](kt),le["$<<"]("</head>"),Nt=T(u.$id())?' id="'+u.$id()+'"':"",T(Rt=u["$sections?"]())&&T(u["$attr?"]("toc-class"))&&T(u["$attr?"]("toc"))&&T(u["$attr?"]("toc-placement","auto"))?Wt=[u.$doctype(),u.$attr("toc-class"),"toc-"+u.$attr("toc-position","header")]:Wt=[u.$doctype()],T(u["$role?"]())&&Wt["$<<"](u.$role()),le["$<<"]("<body"+Nt+' class="'+Wt.$join(" ")+'">'),T((kt=u.$docinfo("header"))["$empty?"]())||le["$<<"](kt),T(u.$noheader())||(le["$<<"]('<div id="header"'+he+">"),G(u.$doctype(),"manpage")?(le["$<<"]("<h1>"+u.$doctitle()+" Manual Page</h1>"),T(Rt)&&T(u["$attr?"]("toc"))&&T(u["$attr?"]("toc-placement","auto"))&&le["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
448
+ <div id="toctitle">`+u.$attr("toc-title")+`</div>
449
+ `+u.$converter().$convert(u,"outline")+`
450
+ </div>`),T(u["$attr?"]("manpurpose"))&&le["$<<"](m.$generate_manname_section(u))):(T(u["$header?"]())&&(T(u.$notitle())||le["$<<"]("<h1>"+u.$header().$title()+"</h1>"),jt=[],er=1,Oe(u.$authors(),"each",[],function(nr){return nr==null&&(nr=M),jt["$<<"]('<span id="author'+(T(Ne(er,1))?er:"")+'" class="author">'+u.$sub_replacements(nr.$name())+"</span>"+R),T(nr.$email())&&jt["$<<"]('<span id="email'+(T(Ne(er,1))?er:"")+'" class="email">'+u.$sub_macros(nr.$email())+"</span>"+R),er=Ke(er,1)}),T(u["$attr?"]("revnumber"))&&jt["$<<"]('<span id="revnumber">'+(T(Kt=u.$attr("version-label"))?Kt:"").$downcase()+" "+u.$attr("revnumber")+(T(u["$attr?"]("revdate"))?",":"")+"</span>"),T(u["$attr?"]("revdate"))&&jt["$<<"]('<span id="revdate">'+u.$attr("revdate")+"</span>"),T(u["$attr?"]("revremark"))&&jt["$<<"](""+R+'<span id="revremark">'+u.$attr("revremark")+"</span>"),T(jt["$empty?"]())||(le["$<<"]('<div class="details">'),le.$concat(jt),le["$<<"]("</div>"))),T(Rt)&&T(u["$attr?"]("toc"))&&T(u["$attr?"]("toc-placement","auto"))&&le["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
451
+ <div id="toctitle">`+u.$attr("toc-title")+`</div>
452
+ `+u.$converter().$convert(u,"outline")+`
453
+ </div>`)),le["$<<"]("</div>")),le["$<<"]('<div id="content"'+he+`>
454
+ `+u.$content()+`
455
+ </div>`),T(u["$footnotes?"]())&&De(u["$attr?"]("nofootnotes"))&&(le["$<<"]('<div id="footnotes"'+he+`>
456
+ <hr`+k+">"),Oe(u.$footnotes(),"each",[],function(nr){return nr==null&&(nr=M),le["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
457
+ <a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
458
+ </div>`)}),le["$<<"]("</div>")),T(u.$nofooter())||(le["$<<"]('<div id="footer"'+he+">"),le["$<<"]('<div id="footer-text">'),T(u["$attr?"]("revnumber"))&&le["$<<"](""+u.$attr("version-label")+" "+u.$attr("revnumber")+R),T(u["$attr?"]("last-update-label"))&&De(u["$attr?"]("reproducible"))&&le["$<<"](""+u.$attr("last-update-label")+" "+u.$attr("docdatetime")),le["$<<"]("</div>"),le["$<<"]("</div>")),T(St)&&(T(St["$docinfo?"]("head"))?le["$[]="](Et,St.$docinfo("head",u,me(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:D,linkcss:P,self_closing_tag_slash:k}))):le.$delete_at(Et),T(St["$docinfo?"]("footer"))&&le["$<<"](St.$docinfo("footer",u,me(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:D,linkcss:P,self_closing_tag_slash:k})))),T(u["$attr?"]("stem"))&&(Pt=u.$attr("eqnums","none"),T(Pt["$empty?"]())&&(Pt="AMS"),Yt=' equationNumbers: { autoNumber: "'+Pt+'" } ',le["$<<"](`<script type="text/x-mathjax-config">
459
+ MathJax.Hub.Config({
460
+ messageStyle: "none",
461
+ tex2jax: {
462
+ inlineMath: [`+fe("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
463
+ displayMath: [`+fe("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
464
+ ignoreClass: "nostem|nolatexmath"
465
+ },
466
+ asciimath2jax: {
467
+ delimiters: [`+fe("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
468
+ ignoreClass: "nostem|noasciimath"
469
+ },
470
+ TeX: {`+Yt+`}
471
+ })
472
+ MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
473
+ MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
474
+ if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
475
+ data.math.root.display = "block"
476
+ }
477
+ return data
478
+ })
479
+ })
480
+ <\/script>
481
+ <script src="`+D+"/mathjax/"+fe("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),T((kt=u.$docinfo("footer"))["$empty?"]())||le["$<<"](kt),le["$<<"]("</body>"),le["$<<"]("</html>"),le.$join(fe("LF"))}),Ue(ie,"$convert_embedded",function(u){var m=this,R=M,k=M,b=M;return R=[],G(u.$doctype(),"manpage")?(T(u.$notitle())||(k=T(u.$id())?' id="'+u.$id()+'"':"",R["$<<"]("<h1"+k+">"+u.$doctitle()+" Manual Page</h1>")),T(u["$attr?"]("manpurpose"))&&R["$<<"](m.$generate_manname_section(u))):T(u["$header?"]())&&De(u.$notitle())&&(k=T(u.$id())?' id="'+u.$id()+'"':"",R["$<<"]("<h1"+k+">"+u.$header().$title()+"</h1>")),T(u["$sections?"]())&&T(u["$attr?"]("toc"))&&Pe(b=u.$attr("toc-placement"),"macro")&&Pe(b,"preamble")&&R["$<<"](`<div id="toc" class="toc">
482
+ <div id="toctitle">`+u.$attr("toc-title")+`</div>
483
+ `+u.$converter().$convert(u,"outline")+`
484
+ </div>`),R["$<<"](u.$content()),T(u["$footnotes?"]())&&De(u["$attr?"]("nofootnotes"))&&(R["$<<"](`<div id="footnotes">
485
+ <hr`+m.void_element_slash+">"),Oe(u.$footnotes(),"each",[],function(P){return P==null&&(P=M),R["$<<"]('<div class="footnote" id="_footnotedef_'+P.$index()+`">
486
+ <a href="#_footnoteref_`+P.$index()+'">'+P.$index()+"</a>. "+P.$text()+`
487
+ </div>`)}),R["$<<"]("</div>")),R.$join(fe("LF"))}),Ue(ie,"$convert_outline",function(u,m){var R=this,k=M,b=M,D=M,P=M,he=M,le=M;return m==null&&(m=me([],{})),T(u["$sections?"]())?(k=T(b=m["$[]"]("sectnumlevels"))?b:(T(D=u.$document().$attributes()["$[]"]("sectnumlevels"))?D:3).$to_i(),P=T(b=m["$[]"]("toclevels"))?b:(T(D=u.$document().$attributes()["$[]"]("toclevels"))?D:2).$to_i(),he=u.$sections(),le=['<ul class="sectlevel'+he["$[]"](0).$level()+'">'],Oe(he,"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=M,_t=M,at=M,vt=M;if(Be==null&&(Be=M),it=Be.$level(),T(Be.$caption()))_t=Be.$captioned_title();else if(T(Be.$numbered())&&T(pt(it,k)))if(T(We(it,2))&&G(u.$document().$doctype(),"book"))switch(Be.$sectname()){case"chapter":_t=(T(at=u.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Be.$sectnum()+" "+Be.$title();break;case"part":_t=(T(at=u.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Be.$sectnum(M,":")+" "+Be.$title();break;default:_t=""+Be.$sectnum()+" "+Be.$title()}else _t=""+Be.$sectnum()+" "+Be.$title();else _t=Be.$title();return T(_t["$include?"]("<a"))&&(_t=_t.$gsub(fe("DropAnchorRx"),"")),T(We(it,P))&&T(vt=Xe.$convert_outline(Be,me(["toclevels","sectnumlevels"],{toclevels:P,sectnumlevels:k})))?(le["$<<"]('<li><a href="#'+Be.$id()+'">'+_t+"</a>"),le["$<<"](vt),le["$<<"]("</li>")):le["$<<"]('<li><a href="#'+Be.$id()+'">'+_t+"</a></li>")},{$$s:R}),le["$<<"]("</ul>"),le.$join(fe("LF"))):M},-2),Ue(ie,"$convert_section",function(u){var m=M,R=M,k=M,b=M,D=M,P=M,he=M,le=M;if(m=u.$document().$attributes(),R=u.$level(),T(u.$caption()))k=u.$captioned_title();else if(T(u.$numbered())&&T(pt(R,(T(b=m["$[]"]("sectnumlevels"))?b:3).$to_i())))if(T(We(R,2))&&G(u.$document().$doctype(),"book"))switch(u.$sectname()){case"chapter":k=(T(D=m["$[]"]("chapter-signifier"))?""+D+" ":"")+u.$sectnum()+" "+u.$title();break;case"part":k=(T(D=m["$[]"]("part-signifier"))?""+D+" ":"")+u.$sectnum(M,":")+" "+u.$title();break;default:k=""+u.$sectnum()+" "+u.$title()}else k=""+u.$sectnum()+" "+u.$title();else k=u.$title();return T(u.$id())?(P=' id="'+(he=u.$id())+'"',T(m["$[]"]("sectlinks"))&&(k='<a class="link" href="#'+he+'">'+k+"</a>"),T(m["$[]"]("sectanchors"))&&(G(m["$[]"]("sectanchors"),"after")?k=""+k+'<a class="anchor" href="#'+he+'"></a>':k='<a class="anchor" href="#'+he+'"></a>'+k)):P="",G(R,0)?"<h1"+P+' class="sect0'+(T(le=u.$role())?" "+le:"")+'">'+k+`</h1>
488
+ `+u.$content():'<div class="sect'+R+(T(le=u.$role())?" "+le:"")+`">
489
+ <h`+Ke(R,1)+P+">"+k+"</h"+Ke(R,1)+`>
490
+ `+(G(R,1)?`<div class="sectionbody">
491
+ `+u.$content()+`
492
+ </div>`:u.$content())+`
493
+ </div>`}),Ue(ie,"$convert_admonition",function(u){var m=this,R=M,k=M,b=M,D=M,P=M;return R=T(u.$id())?' id="'+u.$id()+'"':"",k=u.$attr("name"),b=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
494
+ `:"",T(u.$document()["$attr?"]("icons"))?T(u.$document()["$attr?"]("icons","font"))&&De(u["$attr?"]("icon"))?D='<i class="fa icon-'+k+'" title="'+u.$attr("textlabel")+'"></i>':D='<img src="'+u.$icon_uri(k)+'" alt="'+u.$attr("textlabel")+'"'+m.void_element_slash+">":D='<div class="title">'+u.$attr("textlabel")+"</div>","<div"+R+' class="admonitionblock '+k+(T(P=u.$role())?" "+P:"")+`">
495
+ <table>
496
+ <tr>
497
+ <td class="icon">
498
+ `+D+`
499
+ </td>
500
+ <td class="content">
501
+ `+b+u.$content()+`
502
+ </td>
503
+ </tr>
504
+ </table>
505
+ </div>`}),Ue(ie,"$convert_audio",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M;return R=m.xml_mode,k=T(u.$id())?' id="'+u.$id()+'"':"",b=["audioblock",u.$role()].$compact(),D=' class="'+b.$join(" ")+'"',P=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
506
+ `:"",he=u.$attr("start"),le=u.$attr("end"),Se=T(he)||T(le)?"#t="+(T(Be=he)?Be:"")+(T(le)?","+le:""):"","<div"+k+D+`>
507
+ `+P+`<div class="content">
508
+ <audio src="`+u.$media_uri(u.$attr("target"))+Se+'"'+(T(u["$option?"]("autoplay"))?m.$append_boolean_attribute("autoplay",R):"")+(T(u["$option?"]("nocontrols"))?"":m.$append_boolean_attribute("controls",R))+(T(u["$option?"]("loop"))?m.$append_boolean_attribute("loop",R):"")+`>
509
+ Your browser does not support the audio tag.
510
+ </audio>
511
+ </div>
512
+ </div>`}),Ue(ie,"$convert_colist",function(u){var m,R=this,k=M,b=M,D=M,P=M,he=M,le=M;return k=[],b=T(u.$id())?' id="'+u.$id()+'"':"",D=["colist",u.$style(),u.$role()].$compact(),P=' class="'+D.$join(" ")+'"',k["$<<"]("<div"+b+P+">"),T(u["$title?"]())&&k["$<<"]('<div class="title">'+u.$title()+"</div>"),T(u.$document()["$attr?"]("icons"))?(k["$<<"]("<table>"),m=[u.$document()["$attr?"]("icons","font"),0],he=m[0],le=m[1],Oe(u.$items(),"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=M;return Xe.void_element_slash==null&&(Xe.void_element_slash=M),Be==null&&(Be=M),le=Ke(le,1),T(he)?it='<i class="conum" data-value="'+le+'"></i><b>'+le+"</b>":it='<img src="'+u.$icon_uri("callouts/"+le)+'" alt="'+le+'"'+Xe.void_element_slash+">",k["$<<"](`<tr>
513
+ <td>`+it+`</td>
514
+ <td>`+Be.$text()+(T(Be["$blocks?"]())?Ke(fe("LF"),Be.$content()):"")+`</td>
515
+ </tr>`)},{$$s:R}),k["$<<"]("</table>")):(k["$<<"]("<ol>"),Oe(u.$items(),"each",[],function(Be){return Be==null&&(Be=M),k["$<<"](`<li>
516
+ <p>`+Be.$text()+"</p>"+(T(Be["$blocks?"]())?Ke(fe("LF"),Be.$content()):"")+`
517
+ </li>`)}),k["$<<"]("</ol>")),k["$<<"]("</div>"),k.$join(fe("LF"))}),Ue(ie,"$convert_dlist",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M;switch(R=[],k=T(u.$id())?' id="'+u.$id()+'"':"",u.$style()){case"qanda":b=["qlist","qanda",u.$role()];break;case"horizontal":b=["hdlist",u.$role()];break;default:b=["dlist",u.$style(),u.$role()]}switch(D=' class="'+b.$compact().$join(" ")+'"',R["$<<"]("<div"+k+D+">"),T(u["$title?"]())&&R["$<<"]('<div class="title">'+u.$title()+"</div>"),u.$style()){case"qanda":R["$<<"]("<ol>"),Oe(u.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=M),Xe==null&&(Xe=M),R["$<<"]("<li>"),Oe(Be,"each",[],function(_t){return _t==null&&(_t=M),R["$<<"]("<p><em>"+_t.$text()+"</em></p>")}),T(Xe)&&(T(Xe["$text?"]())&&R["$<<"]("<p>"+Xe.$text()+"</p>"),T(Xe["$blocks?"]())&&R["$<<"](Xe.$content())),R["$<<"]("</li>")}),R["$<<"]("</ol>");break;case"horizontal":P=m.void_element_slash,R["$<<"]("<table>"),(T(u["$attr?"]("labelwidth"))||T(u["$attr?"]("itemwidth")))&&(R["$<<"]("<colgroup>"),he=T(u["$attr?"]("labelwidth"))?' style="width: '+u.$attr("labelwidth").$chomp("%")+'%;"':"",R["$<<"]("<col"+he+P+">"),he=T(u["$attr?"]("itemwidth"))?' style="width: '+u.$attr("itemwidth").$chomp("%")+'%;"':"",R["$<<"]("<col"+he+P+">"),R["$<<"]("</colgroup>")),Oe(u.$items(),"each",[],function(Be,Xe){var it=M;return Be==null&&(Be=M),Xe==null&&(Xe=M),R["$<<"]("<tr>"),R["$<<"]('<td class="hdlist1'+(T(u["$option?"]("strong"))?" strong":"")+'">'),it=!0,Oe(Be,"each",[],function(at){return at==null&&(at=M),T(it)||R["$<<"]("<br"+P+">"),R["$<<"](at.$text()),it=M}),R["$<<"]("</td>"),R["$<<"]('<td class="hdlist2">'),T(Xe)&&(T(Xe["$text?"]())&&R["$<<"]("<p>"+Xe.$text()+"</p>"),T(Xe["$blocks?"]())&&R["$<<"](Xe.$content())),R["$<<"]("</td>"),R["$<<"]("</tr>")}),R["$<<"]("</table>");break;default:R["$<<"]("<dl>"),le=T(u.$style())?"":' class="hdlist1"',Oe(u.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=M),Xe==null&&(Xe=M),Oe(Be,"each",[],function(_t){return _t==null&&(_t=M),R["$<<"]("<dt"+le+">"+_t.$text()+"</dt>")}),T(Xe)?(R["$<<"]("<dd>"),T(Xe["$text?"]())&&R["$<<"]("<p>"+Xe.$text()+"</p>"),T(Xe["$blocks?"]())&&R["$<<"](Xe.$content()),R["$<<"]("</dd>")):M}),R["$<<"]("</dl>")}return R["$<<"]("</div>"),R.$join(fe("LF"))}),Ue(ie,"$convert_example",function(u){var m=M,R=M,k=M,b=M,D=M;return m=T(u.$id())?' id="'+u.$id()+'"':"",T(u["$option?"]("collapsible"))?(R=T(u.$role())?' class="'+u.$role()+'"':"",k=T(u["$title?"]())?'<summary class="title">'+u.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+m+R+(T(u["$option?"]("open"))?" open":"")+`>
518
+ `+k+`
519
+ <div class="content">
520
+ `+u.$content()+`
521
+ </div>
522
+ </details>`):(b=T(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
523
+ `:"","<div"+m+' class="exampleblock'+(T(D=u.$role())?" "+D:"")+`">
524
+ `+b+`<div class="content">
525
+ `+u.$content()+`
526
+ </div>
527
+ </div>`)}),Ue(ie,"$convert_floating_title",function(u){var m=M,R=M,k=M;return m="h"+Ke(u.$level(),1),R=T(u.$id())?' id="'+u.$id()+'"':"",k=[u.$style(),u.$role()].$compact(),"<"+m+R+' class="'+k.$join(" ")+'">'+u.$title()+"</"+m+">"}),Ue(ie,"$convert_image",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M;return R=u.$attr("target"),k=T(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",b=T(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",(T(u["$attr?"]("format","svg"))||T(R["$include?"](".svg")))&&T(We(u.$document().$safe(),He(fe("SafeMode"),"SECURE")))?T(u["$option?"]("inline"))?D=T(P=m.$read_svg_contents(u,R))?P:'<span class="alt">'+u.$alt()+"</span>":T(u["$option?"]("interactive"))?(he=T(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+k+b+m.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",D='<object type="image/svg+xml" data="'+u.$image_uri(R)+'"'+k+b+">"+he+"</object>"):D='<img src="'+u.$image_uri(R)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+k+b+m.void_element_slash+">":D='<img src="'+u.$image_uri(R)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+k+b+m.void_element_slash+">",T(u["$attr?"]("link"))&&(D='<a class="image" href="'+u.$attr("link")+'"'+m.$append_link_constraint_attrs(u).$join()+">"+D+"</a>"),le=T(u.$id())?' id="'+u.$id()+'"':"",Se=["imageblock"],T(u["$attr?"]("float"))&&Se["$<<"](u.$attr("float")),T(u["$attr?"]("align"))&&Se["$<<"]("text-"+u.$attr("align")),T(u.$role())&&Se["$<<"](u.$role()),Be=' class="'+Se.$join(" ")+'"',Xe=T(u["$title?"]())?`
528
+ <div class="title">`+u.$captioned_title()+"</div>":"","<div"+le+Be+`>
529
+ <div class="content">
530
+ `+D+`
531
+ </div>`+Xe+`
532
+ </div>`}),Ue(ie,"$convert_listing",function(u){var m=M,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M;return m=T(R=u["$option?"]("nowrap"))?R:u.$document()["$attr?"]("prewrap")["$!"](),G(u.$style(),"source")?(k=u.$attr("language"),T(b=u.$document().$syntax_highlighter())?(D=T(b["$highlight?"]())?me(["css_mode","style"],{css_mode:(T(R=(P=u.$document().$attributes())["$[]"](""+b.$name()+"-css"))?R:"class").$to_sym(),style:P["$[]"](""+b.$name()+"-style")}):me([],{}),D["$[]="]("nowrap",m)):(he='<pre class="highlight'+(T(m)?" nowrap":"")+'"><code'+(T(k)?' class="language-'+k+'" data-lang="'+k+'"':"")+">",le="</code></pre>")):(he="<pre"+(T(m)?' class="nowrap"':"")+">",le="</pre>"),Se=T(u.$id())?' id="'+u.$id()+'"':"",Be=T(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
533
+ `:"","<div"+Se+' class="listingblock'+(T(Xe=u.$role())?" "+Xe:"")+`">
534
+ `+Be+`<div class="content">
535
+ `+(T(b)?b.$format(u,k,D):Ke(Ke(he,u.$content()),le))+`
536
+ </div>
537
+ </div>`}),Ue(ie,"$convert_literal",function(u){var m=M,R=M,k=M,b=M,D=M;return m=T(u.$id())?' id="'+u.$id()+'"':"",R=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
538
+ `:"",k=T(b=u.$document()["$attr?"]("prewrap")["$!"]())?b:u["$option?"]("nowrap"),"<div"+m+' class="literalblock'+(T(D=u.$role())?" "+D:"")+`">
539
+ `+R+`<div class="content">
540
+ <pre`+(T(k)?' class="nowrap"':"")+">"+u.$content()+`</pre>
541
+ </div>
542
+ </div>`}),Ue(ie,"$convert_stem",function(u){var m,R,k=this,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M;return b=T(u.$id())?' id="'+u.$id()+'"':"",D=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
543
+ `:"",R=fe("BLOCK_MATH_DELIMITERS")["$[]"](P=u.$style().$to_sym()),m=st(R),he=m[0]==null?M:m[0],le=m[1]==null?M:m[1],T(Se=u.$content())?(G(P,"asciimath")&&T(Se["$include?"](fe("LF")))&&(Be=""+fe("LF")+"<br"+k.void_element_slash+">",Se=Oe(Se,"gsub",[fe("StemBreakRx")],function(){var _t;return""+le+Ye(Be,Je(((_t=ht["~"])===M?M:_t["$[]"](0)).$count(fe("LF")),1))+fe("LF")+he})),T(Se["$start_with?"](he))&&T(Se["$end_with?"](le))||(Se=""+he+Se+le)):Se="","<div"+b+' class="stemblock'+(T(Xe=u.$role())?" "+Xe:"")+`">
544
+ `+D+`<div class="content">
545
+ `+Se+`
546
+ </div>
547
+ </div>`}),Ue(ie,"$convert_olist",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M;return R=[],k=T(u.$id())?' id="'+u.$id()+'"':"",b=["olist",u.$style(),u.$role()].$compact(),D=' class="'+b.$join(" ")+'"',R["$<<"]("<div"+k+D+">"),T(u["$title?"]())&&R["$<<"]('<div class="title">'+u.$title()+"</div>"),P=T(he=u.$list_marker_keyword())?' type="'+he+'"':"",le=T(u["$attr?"]("start"))?' start="'+u.$attr("start")+'"':"",Se=T(u["$option?"]("reversed"))?m.$append_boolean_attribute("reversed",m.xml_mode):"",R["$<<"]('<ol class="'+u.$style()+'"'+P+le+Se+">"),Oe(u.$items(),"each",[],function(Xe){return Xe==null&&(Xe=M),T(Xe.$id())?R["$<<"]('<li id="'+Xe.$id()+'"'+(T(Xe.$role())?' class="'+Xe.$role()+'"':"")+">"):T(Xe.$role())?R["$<<"]('<li class="'+Xe.$role()+'">'):R["$<<"]("<li>"),R["$<<"]("<p>"+Xe.$text()+"</p>"),T(Xe["$blocks?"]())&&R["$<<"](Xe.$content()),R["$<<"]("</li>")}),R["$<<"]("</ol>"),R["$<<"]("</div>"),R.$join(fe("LF"))}),Ue(ie,"$convert_open",function(u){var m=this,R=M,k=M,b=M,D=M;return G(R=u.$style(),"abstract")?G(u.$parent(),u.$document())&&G(u.$document().$doctype(),"book")?(m.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(k=T(u.$id())?' id="'+u.$id()+'"':"",b=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
548
+ `:"","<div"+k+' class="quoteblock abstract'+(T(D=u.$role())?" "+D:"")+`">
549
+ `+b+`<blockquote>
550
+ `+u.$content()+`
551
+ </blockquote>
552
+ </div>`):G(R,"partintro")&&(T(Ne(u.$level(),0))||Pe(u.$parent().$context(),"section")||Pe(u.$document().$doctype(),"book"))?(m.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),""):(k=T(u.$id())?' id="'+u.$id()+'"':"",b=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
553
+ `:"","<div"+k+' class="openblock'+(T(R)&&Pe(R,"open")?" "+R:"")+(T(D=u.$role())?" "+D:"")+`">
554
+ `+b+`<div class="content">
555
+ `+u.$content()+`
556
+ </div>
557
+ </div>`)}),Ue(ie,"$convert_page_break",N('<div style="page-break-after: always;"></div>')),Ue(ie,"$convert_paragraph",function(u){var m=M;return T(u.$role())?m=(T(u.$id())?' id="'+u.$id()+'"':"")+' class="paragraph '+u.$role()+'"':T(u.$id())?m=' id="'+u.$id()+'" class="paragraph"':m=' class="paragraph"',T(u["$title?"]())?"<div"+m+`>
558
+ <div class="title">`+u.$title()+`</div>
559
+ <p>`+u.$content()+`</p>
560
+ </div>`:"<div"+m+`>
561
+ <p>`+u.$content()+`</p>
562
+ </div>`}),tt(ie,"convert_pass","content_only"),Ue(ie,"$convert_preamble",function(u){var m=M,R=M;return T((m=u.$document())["$attr?"]("toc-placement","preamble"))&&T(m["$sections?"]())&&T(m["$attr?"]("toc"))?R=`
563
+ <div id="toc" class="`+m.$attr("toc-class","toc")+`">
564
+ <div id="toctitle">`+m.$attr("toc-title")+`</div>
565
+ `+m.$converter().$convert(m,"outline")+`
566
+ </div>`:R="",`<div id="preamble">
567
+ <div class="sectionbody">
568
+ `+u.$content()+`
569
+ </div>`+R+`
570
+ </div>`}),Ue(ie,"$convert_quote",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M;return R=T(u.$id())?' id="'+u.$id()+'"':"",k=["quoteblock",u.$role()].$compact(),b=' class="'+k.$join(" ")+'"',D=T(u["$title?"]())?`
571
+ <div class="title">`+u.$title()+"</div>":"",P=T(u["$attr?"]("attribution"))?u.$attr("attribution"):M,he=T(u["$attr?"]("citetitle"))?u.$attr("citetitle"):M,T(P)||T(he)?(le=T(he)?"<cite>"+he+"</cite>":"",Se=T(P)?"&#8212; "+P+(T(he)?"<br"+m.void_element_slash+`>
572
+ `:""):"",Be=`
573
+ <div class="attribution">
574
+ `+Se+le+`
575
+ </div>`):Be="","<div"+R+b+">"+D+`
576
+ <blockquote>
577
+ `+u.$content()+`
578
+ </blockquote>`+Be+`
579
+ </div>`}),Ue(ie,"$convert_thematic_break",function(u){var m=this;return"<hr"+m.void_element_slash+">"}),Ue(ie,"$convert_sidebar",function(u){var m=M,R=M,k=M;return m=T(u.$id())?' id="'+u.$id()+'"':"",R=T(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
580
+ `:"","<div"+m+' class="sidebarblock'+(T(k=u.$role())?" "+k:"")+`">
581
+ <div class="content">
582
+ `+R+u.$content()+`
583
+ </div>
584
+ </div>`}),Ue(ie,"$convert_table",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M,it=M;return R=[],k=T(u.$id())?' id="'+u.$id()+'"':"",G(b=u.$attr("frame","all","table-frame"),"topbot")&&(b="ends"),D=["tableblock","frame-"+b,"grid-"+u.$attr("grid","all","table-grid")],T(P=u.$attr("stripes",M,"table-stripes"))&&D["$<<"]("stripes-"+P),he="",T(le=u["$option?"]("autowidth"))&&De(u["$attr?"]("width"))?D["$<<"]("fit-content"):G(Se=u.$attr("tablepcwidth"),100)?D["$<<"]("stretch"):he=' style="width: '+Se+'%;"',T(u["$attr?"]("float"))&&D["$<<"](u.$attr("float")),T(Be=u.$role())&&D["$<<"](Be),Xe=' class="'+D.$join(" ")+'"',R["$<<"]("<table"+k+Xe+he+">"),T(u["$title?"]())&&R["$<<"]('<caption class="title">'+u.$captioned_title()+"</caption>"),T(Ne(u.$attr("rowcount"),0))&&(it=m.void_element_slash,R["$<<"]("<colgroup>"),T(le)?R=Ke(R,fe("Array").$new(u.$columns().$size(),"<col"+it+">")):Oe(u.$columns(),"each",[],function(at){return at==null&&(at=M),R["$<<"](T(at["$option?"]("autowidth"))?"<col"+it+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+it+">")}),R["$<<"]("</colgroup>"),Oe(u.$rows().$to_h(),"each",[],function(at,vt){return at==null&&(at=M),vt==null&&(vt=M),T(vt["$empty?"]())?M:(R["$<<"]("<t"+at+">"),Oe(vt,"each",[],function(Et){return Et==null&&(Et=M),R["$<<"]("<tr>"),Oe(Et,"each",[],function(Nt){var Rt=M,Wt=M,jt=M,er=M,Kt=M,Pt=M;if(Nt==null&&(Nt=M),G(at,"head"))Rt=Nt.$text();else switch(Nt.$style()){case"asciidoc":Rt='<div class="content">'+Nt.$content()+"</div>";break;case"literal":Rt='<div class="literal"><pre>'+Nt.$text()+"</pre></div>";break;default:Rt=T((Rt=Nt.$content())["$empty?"]())?"":'<p class="tableblock">'+Rt.$join(`</p>
585
+ <p class="tableblock">`)+"</p>"}return Wt=G(at,"head")||G(Nt.$style(),"header")?"th":"td",jt=' class="tableblock halign-'+Nt.$attr("halign")+" valign-"+Nt.$attr("valign")+'"',er=T(Nt.$colspan())?' colspan="'+Nt.$colspan()+'"':"",Kt=T(Nt.$rowspan())?' rowspan="'+Nt.$rowspan()+'"':"",Pt=T(u.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+u.$document().$attr("cellbgcolor")+';"':"",R["$<<"]("<"+Wt+jt+er+Kt+Pt+">"+Rt+"</"+Wt+">")}),R["$<<"]("</tr>")}),R["$<<"]("</t"+at+">"))})),R["$<<"]("</table>"),R.$join(fe("LF"))}),Ue(ie,"$convert_toc",function(u){var m=M,R=M,k=M,b=M,D=M,P=M;return T((m=u.$document())["$attr?"]("toc-placement","macro"))&&T(m["$sections?"]())&&T(m["$attr?"]("toc"))?(T(u.$id())?(R=' id="'+u.$id()+'"',k=' id="'+u.$id()+'title"'):(R=' id="toc"',k=' id="toctitle"'),b=T(u["$title?"]())?u.$title():m.$attr("toc-title"),D=T(u["$attr?"]("levels"))?u.$attr("levels").$to_i():M,P=T(u["$role?"]())?u.$role():m.$attr("toc-class","toc"),"<div"+R+' class="'+P+`">
586
+ <div`+k+' class="title">'+b+`</div>
587
+ `+m.$converter().$convert(m,"outline",me(["toclevels"],{toclevels:D}))+`
588
+ </div>`):"<!-- toc disabled -->"}),Ue(ie,"$convert_ulist",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M;return R=[],k=T(u.$id())?' id="'+u.$id()+'"':"",b=["ulist",u.$style(),u.$role()].$compact(),D=P="",T(he=u["$option?"]("checklist"))?(b.$unshift(b.$shift(),"checklist"),le=' class="checklist"',T(u["$option?"]("interactive"))?T(m.xml_mode)?(D='<input type="checkbox" data-item-complete="1" checked="checked"/> ',P='<input type="checkbox" data-item-complete="0"/> '):(D='<input type="checkbox" data-item-complete="1" checked> ',P='<input type="checkbox" data-item-complete="0"> '):T(u.$document()["$attr?"]("icons","font"))?(D='<i class="fa fa-check-square-o"></i> ',P='<i class="fa fa-square-o"></i> '):(D="&#10003; ",P="&#10063; ")):le=T(u.$style())?' class="'+u.$style()+'"':"",R["$<<"]("<div"+k+' class="'+b.$join(" ")+'">'),T(u["$title?"]())&&R["$<<"]('<div class="title">'+u.$title()+"</div>"),R["$<<"]("<ul"+le+">"),Oe(u.$items(),"each",[],function(Be){return Be==null&&(Be=M),T(Be.$id())?R["$<<"]('<li id="'+Be.$id()+'"'+(T(Be.$role())?' class="'+Be.$role()+'"':"")+">"):T(Be.$role())?R["$<<"]('<li class="'+Be.$role()+'">'):R["$<<"]("<li>"),T(he)&&T(Be["$attr?"]("checkbox"))?R["$<<"]("<p>"+(T(Be["$attr?"]("checked"))?D:P)+Be.$text()+"</p>"):R["$<<"]("<p>"+Be.$text()+"</p>"),T(Be["$blocks?"]())&&R["$<<"](Be.$content()),R["$<<"]("</li>")}),R["$<<"]("</ul>"),R["$<<"]("</div>"),R.$join(fe("LF"))}),Ue(ie,"$convert_verse",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M;return R=T(u.$id())?' id="'+u.$id()+'"':"",k=["verseblock",u.$role()].$compact(),b=' class="'+k.$join(" ")+'"',D=T(u["$title?"]())?`
589
+ <div class="title">`+u.$title()+"</div>":"",P=T(u["$attr?"]("attribution"))?u.$attr("attribution"):M,he=T(u["$attr?"]("citetitle"))?u.$attr("citetitle"):M,T(P)||T(he)?(le=T(he)?"<cite>"+he+"</cite>":"",Se=T(P)?"&#8212; "+P+(T(he)?"<br"+m.void_element_slash+`>
590
+ `:""):"",Be=`
591
+ <div class="attribution">
592
+ `+Se+le+`
593
+ </div>`):Be="","<div"+R+b+">"+D+`
594
+ <pre class="content">`+u.$content()+"</pre>"+Be+`
595
+ </div>`}),Ue(ie,"$convert_video",function(u){var m,R,k=this,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M,it=M,_t=M,at=M,vt=M,St=M,Et=M,kt=M,Nt=M,Rt=M,Wt=M,jt=M,er=M,Kt=M,Pt=M,Yt=M,Xt=M,nr=M,Gn=M,rn=M,Jt=M,Ut=M,Zt=M,Cr=M,Ht=M,Sr=M,hn=M,Tr=M,Er=M,bn=M;switch(b=k.xml_mode,D=T(u.$id())?' id="'+u.$id()+'"':"",P=["videoblock"],T(u["$attr?"]("float"))&&P["$<<"](u.$attr("float")),T(u["$attr?"]("align"))&&P["$<<"]("text-"+u.$attr("align")),T(u.$role())&&P["$<<"](u.$role()),he=' class="'+P.$join(" ")+'"',le=T(u["$title?"]())?`
596
+ <div class="title">`+u.$title()+"</div>":"",Se=T(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",Be=T(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",u.$attr("poster")){case"vimeo":return T((Xe=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),it=T(u["$attr?"]("start"))?"#at="+u.$attr("start"):"",_t=["?"],R=u.$attr("target").$split("/",2),m=st(R),at=m[0]==null?M:m[0],vt=m[1]==null?M:m[1],St=T(vt=T(Et=vt)?Et:u.$attr("hash"))?""+(T(Et=_t.$pop())?Et:"&amp;")+"h="+vt:"",kt=T(u["$option?"]("autoplay"))?""+(T(Et=_t.$pop())?Et:"&amp;")+"autoplay=1":"",Nt=T(u["$option?"]("loop"))?""+(T(Et=_t.$pop())?Et:"&amp;")+"loop=1":"",Rt=T(u["$option?"]("muted"))?""+(T(Et=_t.$pop())?Et:"&amp;")+"muted=1":"","<div"+D+he+">"+le+`
597
+ <div class="content">
598
+ <iframe`+Se+Be+' src="'+Xe+"//player.vimeo.com/video/"+at+St+kt+Nt+Rt+it+'" frameborder="0"'+(T(u["$option?"]("nofullscreen"))?"":k.$append_boolean_attribute("allowfullscreen",b))+`></iframe>
599
+ </div>
600
+ </div>`;case"youtube":return T((Xe=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),Wt=T(u["$option?"]("related"))?1:0,jt=T(u["$attr?"]("start"))?"&amp;start="+u.$attr("start"):"",er=T(u["$attr?"]("end"))?"&amp;end="+u.$attr("end"):"",kt=T(u["$option?"]("autoplay"))?"&amp;autoplay=1":"",Nt=T(Kt=u["$option?"]("loop"))?"&amp;loop=1":"",Pt=T(u["$option?"]("muted"))?"&amp;mute=1":"",Yt=T(u["$option?"]("nocontrols"))?"&amp;controls=0":"",T(u["$option?"]("nofullscreen"))?(Xt="&amp;fs=0",nr=""):(Xt="",nr=k.$append_boolean_attribute("allowfullscreen",b)),Gn=T(u["$option?"]("modest"))?"&amp;modestbranding=1":"",rn=T(u["$attr?"]("theme"))?"&amp;theme="+u.$attr("theme"):"",Jt=T(u["$attr?"]("lang"))?"&amp;hl="+u.$attr("lang"):"",R=u.$attr("target").$split("/",2),m=st(R),at=m[0]==null?M:m[0],Ut=m[1]==null?M:m[1],T(Ut=T(Et=Ut)?Et:u.$attr("list"))?Zt="&amp;list="+Ut:(R=at.$split(",",2),m=st(R),at=m[0]==null?M:m[0],Cr=m[1]==null?M:m[1],T(Cr=T(Et=Cr)?Et:u.$attr("playlist"))?Zt="&amp;playlist="+at+","+Cr:Zt=T(Kt)?"&amp;playlist="+at:""),"<div"+D+he+">"+le+`
601
+ <div class="content">
602
+ <iframe`+Se+Be+' src="'+Xe+"//www.youtube.com/embed/"+at+"?rel="+Wt+jt+er+kt+Nt+Pt+Yt+Zt+Xt+Gn+rn+Jt+'" frameborder="0"'+nr+`></iframe>
603
+ </div>
604
+ </div>`;default:return Ht=T((Sr=u.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+u.$media_uri(Sr)+'"',hn=T((Sr=u.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+Sr+'"',Tr=u.$attr("start"),Er=u.$attr("end"),bn=T(Tr)||T(Er)?"#t="+(T(Et=Tr)?Et:"")+(T(Er)?","+Er:""):"","<div"+D+he+">"+le+`
605
+ <div class="content">
606
+ <video src="`+u.$media_uri(u.$attr("target"))+bn+'"'+Se+Be+Ht+(T(u["$option?"]("autoplay"))?k.$append_boolean_attribute("autoplay",b):"")+(T(u["$option?"]("muted"))?k.$append_boolean_attribute("muted",b):"")+(T(u["$option?"]("nocontrols"))?"":k.$append_boolean_attribute("controls",b))+(T(u["$option?"]("loop"))?k.$append_boolean_attribute("loop",b):"")+hn+`>
607
+ Your browser does not support the video tag.
608
+ </video>
609
+ </div>
610
+ </div>`}}),Ue(ie,"$convert_inline_anchor",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M;switch(u.$type()){case"xref":return T(R=u.$attributes()["$[]"]("path"))?(k=m.$append_link_constraint_attrs(u,T(u.$role())?[' class="'+u.$role()+'"']:[]).$join(),b=T(D=u.$text())?D:R):(k=T(u.$role())?' class="'+u.$role()+'"':"",T(b=u.$text())||(E(fe("AbstractNode"),P=T(D=(m.refs=T(he=m.refs)?he:u.$document().$catalog()["$[]"]("refs"))["$[]"](le=u.$attributes()["$[]"]("refid")))?D:T(le["$nil_or_empty?"]())?Se=m.$get_root_document(u):M)?T(m.resolving_xref=T(D=m.resolving_xref)?D:Be=!0)&&T(Be)?(T(b=P.$xreftext(u.$attr("xrefstyle",M,!0)))?T(b["$include?"]("<a"))&&(b=b.$gsub(fe("DropAnchorRx"),"")):b=T(Se)?"[^top]":"["+le+"]",m.resolving_xref=M):b=T(Se)?"[^top]":"["+le+"]":b="["+le+"]")),'<a href="'+u.$target()+'"'+k+">"+b+"</a>";case"ref":return'<a id="'+u.$id()+'"></a>';case"link":return k=T(u.$id())?[' id="'+u.$id()+'"']:[],T(u.$role())&&k["$<<"](' class="'+u.$role()+'"'),T(u["$attr?"]("title"))&&k["$<<"](' title="'+u.$attr("title")+'"'),'<a href="'+u.$target()+'"'+m.$append_link_constraint_attrs(u,k).$join()+">"+u.$text()+"</a>";case"bibref":return'<a id="'+u.$id()+'"></a>['+(T(D=u.$reftext())?D:u.$id())+"]";default:return m.$logger().$warn("unknown anchor type: "+u.$type().$inspect()),M}}),Ue(ie,"$convert_inline_break",function(u){var m=this;return""+u.$text()+"<br"+m.void_element_slash+">"}),Ue(ie,"$convert_inline_button",function(u){return'<b class="button">'+u.$text()+"</b>"}),Ue(ie,"$convert_inline_callout",function(u){var m=this,R=M,k=M;return T(u.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+u.$text()+'"></i><b>('+u.$text()+")</b>":T(u.$document()["$attr?"]("icons"))?(R=u.$icon_uri("callouts/"+u.$text()),'<img src="'+R+'" alt="'+u.$text()+'"'+m.void_element_slash+">"):E(He("Array"),k=u.$attributes()["$[]"]("guard"))?'&lt;!--<b class="conum">('+u.$text()+")</b>--&gt;":""+k+'<b class="conum">('+u.$text()+")</b>"}),Ue(ie,"$convert_inline_footnote",function(u){var m=M,R=M;return T(m=u.$attr("index"))?G(u.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>":(R=T(u.$id())?' id="_footnote_'+u.$id()+'"':"",'<sup class="footnote"'+R+'>[<a id="_footnoteref_'+m+'" class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>"):G(u.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+u.$text()+"]</sup>":M}),Ue(ie,"$convert_inline_image",function(u){var m=this,R=M,k=M,b=M,D=M,P=M,he=M,le=M,Se=M,Be=M,Xe=M;return R=u.$target(),G(k=T(b=u.$type())?b:"image","icon")?G(D=u.$document().$attr("icons"),"font")?(P="fa fa-"+R,T(u["$attr?"]("size"))&&(P=""+P+" fa-"+u.$attr("size")),T(u["$attr?"]("flip"))?P=""+P+" fa-flip-"+u.$attr("flip"):T(u["$attr?"]("rotate"))&&(P=""+P+" fa-rotate-"+u.$attr("rotate")),he=T(u["$attr?"]("title"))?' title="'+u.$attr("title")+'"':"",le='<i class="'+P+'"'+he+"></i>"):T(D)?(he=T(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",T(u["$attr?"]("height"))&&(he=""+he+' height="'+u.$attr("height")+'"'),T(u["$attr?"]("title"))&&(he=""+he+' title="'+u.$attr("title")+'"'),le='<img src="'+u.$icon_uri(R)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+he+m.void_element_slash+">"):le="["+u.$alt()+"&#93;":(he=T(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",T(u["$attr?"]("height"))&&(he=""+he+' height="'+u.$attr("height")+'"'),T(u["$attr?"]("title"))&&(he=""+he+' title="'+u.$attr("title")+'"'),(T(u["$attr?"]("format","svg"))||T(R["$include?"](".svg")))&&T(We(u.$document().$safe(),He(fe("SafeMode"),"SECURE")))?T(u["$option?"]("inline"))?le=T(b=m.$read_svg_contents(u,R))?b:'<span class="alt">'+u.$alt()+"</span>":T(u["$option?"]("interactive"))?(Se=T(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+he+m.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",le='<object type="image/svg+xml" data="'+u.$image_uri(R)+'"'+he+">"+Se+"</object>"):le='<img src="'+u.$image_uri(R)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+he+m.void_element_slash+">":le='<img src="'+u.$image_uri(R)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+he+m.void_element_slash+">"),T(u["$attr?"]("link"))&&(le='<a class="image" href="'+u.$attr("link")+'"'+m.$append_link_constraint_attrs(u).$join()+">"+le+"</a>"),Be=k,T(Xe=u.$role())?Be=T(u["$attr?"]("float"))?""+Be+" "+u.$attr("float")+" "+Xe:""+Be+" "+Xe:T(u["$attr?"]("float"))&&(Be=""+Be+" "+u.$attr("float")),'<span class="'+Be+'">'+le+"</span>"}),Ue(ie,"$convert_inline_indexterm",function(u){return G(u.$type(),"visible")?u.$text():""}),Ue(ie,"$convert_inline_kbd",function(u){var m=M;return G((m=u.$attr("keys")).$size(),1)?"<kbd>"+m["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+m.$join("</kbd>+<kbd>")+"</kbd></span>"}),Ue(ie,"$convert_inline_menu",function(u){var m=M,R=M,k=M,b=M,D=M;return m=T(u.$document()["$attr?"]("icons","font"))?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> ',R="</b>"+m+'<b class="submenu">',k=u.$attr("menu"),T((b=u.$attr("submenus"))["$empty?"]())?T(D=u.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+k+"</b>"+m+'<b class="menuitem">'+D+"</b></span>":'<b class="menuref">'+k+"</b>":'<span class="menuseq"><b class="menu">'+k+"</b>"+m+'<b class="submenu">'+b.$join(R)+"</b>"+m+'<b class="menuitem">'+u.$attr("menuitem")+"</b></span>"}),Ue(ie,"$convert_inline_quoted",function(u){var m,R,k=M,b=M,D=M,P=M;return R=fe("QUOTE_TAGS")["$[]"](u.$type()),m=st(R),k=m[0]==null?M:m[0],b=m[1]==null?M:m[1],D=m[2]==null?M:m[2],T(u.$id())?(P=T(u.$role())?' class="'+u.$role()+'"':"",T(D)?""+k.$chop()+' id="'+u.$id()+'"'+P+">"+u.$text()+b:'<span id="'+u.$id()+'"'+P+">"+k+u.$text()+b+"</span>"):T(u.$role())?T(D)?""+k.$chop()+' class="'+u.$role()+'">'+u.$text()+b:'<span class="'+u.$role()+'">'+k+u.$text()+b+"</span>":""+k+u.$text()+b}),Ue(ie,"$read_svg_contents",function(u,m){var R=M,k=M,b=M,D=M;if(T(R=u.$read_contents(m,me(["start","normalize","label","warn_if_empty"],{start:u.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(T(R["$empty?"]()))return M;T(R["$start_with?"]("<svg"))||(R=R.$sub(fe("SvgPreambleRx"),"")),k=b=D=M,Oe(["width","height"],"each",[],function(he){var le=M,Se=M;if(he==null&&(he=M),!T(u["$attr?"](he)))return M;if(!T(b)){if(G(D=T(le=D)?le:T(Se=R.$match(fe("SvgStartTagRx")))?Se:"no_match","no_match"))return M;b=(k=D["$[]"](0)).$gsub(fe("DimensionAttributeRx"),"")}return b=""+b.$chop()+" "+he+'="'+u.$attr(he)+'">'}),T(b)&&(R=""+b+R["$[]"](a.Range.$new(k.$length(),-1,!1)))}return R}),ie.$private(),Ue(ie,"$append_boolean_attribute",function(u,m){return T(m)?" "+u+'="'+u+'"':" "+u}),Ue(ie,"$append_link_constraint_attrs",function(u,m){var R=M,k=M;return m==null&&(m=[]),T(u["$option?"]("nofollow"))&&(R="nofollow"),T(k=u.$attributes()["$[]"]("window"))?(m["$<<"](' target="'+k+'"'),(G(k,"_blank")||T(u["$option?"]("noopener")))&&m["$<<"](T(R)?' rel="'+R+' noopener"':' rel="noopener"')):T(R)&&m["$<<"](' rel="'+R+'"'),m},-2),Ue(ie,"$encode_attribute_value",function(u){return T(u["$include?"]('"'))?u.$gsub('"',"&quot;"):u}),Ue(ie,"$generate_manname_section",function(u){var m=M,R=M,k=M,b=M,D=M;return m=u.$attr("manname-title","Name"),T(k=u.$sections()["$[]"](0))&&G(R=k.$title(),R.$upcase())&&(m=m.$upcase()),b=T(D=u.$attr("manname-id"))?' id="'+D+'"':"","<h2"+b+">"+m+`</h2>
611
+ <div class="sectionbody">
612
+ <p>`+u.$attr("mannames").$join(", ")+" - "+u.$attr("manpurpose")+`</p>
613
+ </div>`}),Ue(ie,"$get_root_document",function(u){for(;T((u=u.$document())["$nested?"]());)u=u.$parent_document();return u}),Ue(ie,"$method_missing",function g(u,m){var R,k,b=g.$$p||M,D=this,P=M;return g.$$p=null,R=rt(arguments,1),k=R,De((P=u.$to_s())["$start_with?"]("convert_"))&&T(D["$handles?"](P))?Oe(D,"send",["convert_"+P].concat(ot(k))):K(D,qe(D,"method_missing",g,!1,!0),"method_missing",[u].concat(ot(k)),b)},-2),Ue(ie,"$respond_to_missing?",function(u,m){var R=this,k=M,b=M;return rt(arguments,1),T(k=(b=u.$to_s())["$start_with?"]("convert_")["$!"]())?R["$handles?"](b):k},-2)}(we("Converter"),He(we("Converter"),"Base"),oe)}(X[0],X)},Opal.modules["asciidoctor/extensions"]=function(a){var ae=a.module,re=a.klass,W=a.truthy,me=a.hash2,v=a.def,G=a.send,Ue=a.alias,K=a.slice,qe=a.rb_plus,T=a.eqeq,Oe=a.rb_gt,Ne=a.not,Ke=a.eqeqeq,De=a.to_a,Pe=a.to_ary,pt=a.const_set,We=a.return_val,st=a.send2,Ye=a.find_super,Je=a.NilClass,ht=a.class_variable_set,N=a.class_variable_get,tt=a.regexp,E=a.Class,rt=a.return_ivar,ot=a.rb_lt,X=a.rb_minus,M=a.hash,He=[],ke=a.nil,Ie=a.$$$;return a.add_stubs("[]=,config,const_defined?,singleton_class?,include,const_get,extend,enable_dsl,attr_reader,merge,class,update,raise,document,==,doctype,[],+,level,delete,>,casecmp,new,title=,sectname=,special=,fetch,numbered=,attr?,!,key?,special,numbered,id=,generate_id,title,update_attributes,tr,basename,create_block,assign_caption,===,parse_blocks,empty?,include?,sub_attributes,parse,each,define_method,unshift,shift,send,size,receiver,binding,define_singleton_method,instance_exec,to_proc,call,option,content_model,flatten,positional_attributes,default_attributes,respond_to?,to_s,partition,to_i,<<,compact,inspect,resolve_attributes,attr_accessor,to_set,contexts,match?,resolve_regexp,format,method,register,reset,values,groups,arity,activate,add_document_processor,tree_processor,tree_processors?,tree_processors,any?,select,add_syntax_processor,to_sym,instance_variable_get,kind,private,join,map,split,capitalize,instance_variable_set,resolve_args,singleton_class,process_block_given?,source_location,freeze,resolve_class,<,update_config,as_symbol,name,name=,pop,-,-@,next_auto_id,generate_name,each_with_object"),function(Re,oe){var we=ae(Re,"Asciidoctor"),J=[we].concat(oe);return function(B,q){var ie=ae(B,"Extensions"),te=[ie].concat(q),fe=a.$r(te);return function(H,g,u){var m=re(H,g,"Processor"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.config=ke,function(D,P){return v(D,"$config",function(){var le=this,Se=ke;return le.config==null&&(le.config=ke),le.config=W(Se=le.config)?Se:me([],{})}),v(D,"$option",function(le,Se){var Be,Xe=this;return Be=[le,Se],G(Xe.$config(),"[]=",Be),Be[Be.length-1]}),v(D,"$enable_dsl",function(){var le=this;return W(le["$const_defined?"]("DSL"))?W(le["$singleton_class?"]())?le.$include(le.$const_get("DSL")):le.$extend(le.$const_get("DSL")):ke}),Ue(D,"use_dsl","enable_dsl")}(a.get_singleton_class(m)),m.$attr_reader("config"),v(m,"$initialize",function(P){var he=this;return P==null&&(P=me([],{})),he.config=he.$class().$config().$merge(P)},-1),v(m,"$update_config",function(P){var he=this;return he.config.$update(P)}),v(m,"$process",function(P){var he=this;return K(arguments),he.$raise(Ie("NotImplementedError"),""+k("Processor")+" subclass "+he.$class()+" must implement the #process method")},-1),v(m,"$create_section",function(P,he,le,Se){var Be,Xe,it=ke,_t=ke,at=ke,vt=ke,St=ke,Et=ke,kt=ke,Nt=ke,Rt=ke,Wt=ke;return Se==null&&(Se=me([],{})),it=P.$document(),_t=(at=it.$doctype())["$=="]("book"),vt=W(St=Se["$[]"]("level"))?St:qe(P.$level(),1),W(Et=le.$delete("style"))?W(_t)&&T(Et,"abstract")?(Be=["chapter",1],kt=Be[0],vt=Be[1]):(Be=[Et,!0],kt=Be[0],Nt=Be[1],T(vt,0)&&(vt=1)):W(_t)?kt=T(vt,0)?"part":W(Oe(vt,1))?"section":"chapter":T(at,"manpage")&&T(he.$casecmp("synopsis"),0)?(Be=["synopsis",!0],kt=Be[0],Nt=Be[1]):kt="section",Rt=k("Section").$new(P,vt),Be=[he,kt],Xe=[Be[0]],G(Rt,"title=",Xe),Xe[Xe.length-1],Xe=[Be[1]],G(Rt,"sectname=",Xe),Xe[Xe.length-1],W(Nt)?(Rt["$special="](!0),W(Se.$fetch("numbered",Et["$=="]("appendix")))?Rt["$numbered="](!0):Ne(Se["$key?"]("numbered"))&&W(it["$attr?"]("sectnums","all"))&&Rt["$numbered="](W(_t)&&T(vt,1)?"chapter":!0)):W(Oe(vt,0))?W(Se.$fetch("numbered",it["$attr?"]("sectnums")))&&Rt["$numbered="](W(Rt.$special())?W(St=P.$numbered())||St:!0):W(Se.$fetch("numbered",W(St=_t)?it["$attr?"]("partnums"):St))&&Rt["$numbered="](!0),T(Wt=le["$[]"]("id"),!1)?le.$delete("id"):Rt["$id="]((Be=["id",W(St=Wt)?St:W(it["$attr?"]("sectids"))?k("Section").$generate_id(Rt.$title(),it):ke],G(le,"[]=",Be),Be[Be.length-1])),Rt.$update_attributes(le),Rt},-4),v(m,"$create_block",function(P,he,le,Se,Be){return Be==null&&(Be=me([],{})),k("Block").$new(P,he,me(["source","attributes"],{source:le,attributes:Se}).$merge(Be))},-5),v(m,"$create_list",function(P,he,le){var Se=ke;return le==null&&(le=ke),Se=k("List").$new(P,he),W(le)&&Se.$update_attributes(le),Se},-3),v(m,"$create_list_item",function(P,he){return he==null&&(he=ke),k("ListItem").$new(P,he)},-2),v(m,"$create_image_block",function(P,he,le){var Se,Be=this,Xe=ke,it=ke,_t=ke;return le==null&&(le=me([],{})),W(Xe=he["$[]"]("target"))||Be.$raise(Ie("ArgumentError"),"Unable to create an image block, target attribute is required"),W(he["$[]"]("alt"))||he["$[]="]("alt",(Se=["default-alt",k("Helpers").$basename(Xe,!0).$tr("_-"," ")],G(he,"[]=",Se),Se[Se.length-1])),it=W(he["$key?"]("title"))?he.$delete("title"):ke,_t=Be.$create_block(P,"image",ke,he,le),W(it)&&(_t["$title="](it),_t.$assign_caption(he.$delete("caption"),"figure")),_t},-3),v(m,"$create_inline",function(P,he,le,Se){return Se==null&&(Se=me([],{})),k("Inline").$new(P,he,le,T(he,"quoted")?me(["type"],{type:"unquoted"}).$merge(Se):Se)},-4),v(m,"$parse_content",function(P,he,le){var Se=ke;return le==null&&(le=ke),Se=Ke(k("Reader"),he)?he:k("Reader").$new(he),k("Parser").$parse_blocks(Se,P,le),P},-3),v(m,"$parse_attributes",function(P,he,le){var Se=ke;return le==null&&(le=me([],{})),W(W(he)?he["$empty?"]():!0)?me([],{}):(W(le["$[]"]("sub_attributes"))&&W(he["$include?"](k("ATTR_REF_HEAD")))&&(he=P.$sub_attributes(he)),k("AttributeList").$new(he).$parse(W(Se=le["$[]"]("positional_attributes"))?Se:[]))},-3),G([["create_paragraph","create_block","paragraph"],["create_open_block","create_block","open"],["create_example_block","create_block","example"],["create_pass_block","create_block","pass"],["create_listing_block","create_block","listing"],["create_literal_block","create_block","literal"],["create_anchor","create_inline","anchor"],["create_inline_pass","create_inline","quoted"]],"each",[],function D(P,he,le){var Se=D.$$s==null?this:D.$$s;return P==null&&(P=ke),he==null&&(he=ke),le==null&&(le=ke),G(Se,"define_method",[P],function Be(Xe){var it,_t,at=Be.$$s==null?this:Be.$$s;return it=K(arguments),_t=it,_t.$unshift(_t.$shift(),le),G(at,"send",[he].concat(De(_t)))},{$$arity:-1,$$s:Se})},{$$s:m})}(te[0],null,te),function(H){var g=ae(H,"ProcessorDsl");return v(g,"$option",function(m,R){var k,b=this;return k=[m,R],G(b.$config(),"[]=",k),k[k.length-1]}),v(g,"$process",function u(m){var R=u.$$p||ke,k,b,D,P=this,he=ke;return P.process_block==null&&(P.process_block=ke),u.$$p=null,k=K(arguments),b=k,R!==ke?(W(b["$empty?"]())||P.$raise(Ie("ArgumentError"),"wrong number of arguments (given "+b.$size()+", expected 0)"),W(R.$binding())&&T(P,R.$binding().$receiver())||(he=P,G(R,"define_singleton_method",["call"],function(Se){var Be,Xe;return Be=K(arguments),Xe=Be,G(he,"instance_exec",De(Xe),R.$to_proc())},-1)),P.process_block=R):W((D=P.process_block,D!=null&&D!==ke?"instance-variable":ke))?G(P.process_block,"call",De(b)):P.$raise(Ie("NotImplementedError"),""+P.$class()+" #process method called before being registered")},-1),v(g,"$process_block_given?",function(){var m,R=this;return m=R.process_block,m!=null&&m!==ke?"instance-variable":ke})}(te[0]),function(H,g){var u=ae(H,"DocumentProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("ProcessorDsl")),v(u,"$prefer",function(){var b=this;return b.$option("position",">>")})}(te[0],te),function(H,g){var u=ae(H,"SyntaxProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("ProcessorDsl")),v(u,"$named",function(b){var D=this;return Ke(R("Processor"),D)?D.name=b:D.$option("name",b)}),v(u,"$content_model",function(b){var D=this;return D.$option("content_model",b)}),Ue(u,"parse_content_as","content_model"),v(u,"$positional_attributes",function(b){var D,P,he=this;return D=K(arguments),P=D,he.$option("positional_attrs",P.$flatten())},-1),Ue(u,"name_positional_attributes","positional_attributes"),Ue(u,"positional_attrs","positional_attributes"),v(u,"$default_attributes",function(b){var D=this;return D.$option("default_attrs",b)}),Ue(u,"default_attrs","default_attributes"),v(u,"$resolve_attributes",function(b){var D,P,he,le=this,Se=ke,Be=ke,Xe=ke;return D=K(arguments),P=D,W(Oe(P.$size(),1))||W((P=P.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(P=[P]),Ke(!0,Se=P)?(le.$option("positional_attrs",[]),le.$option("default_attrs",me([],{}))):Ke(Ie("Array"),Se)?(he=[[],me([],{})],Be=he[0],Xe=he[1],G(P,"each",[],function(_t){var at,vt,St=ke,Et=ke,kt=ke;return _t==null&&(_t=ke),W((_t=_t.$to_s())["$include?"]("="))?(vt=_t.$partition("="),at=Pe(vt),St=at[0]==null?ke:at[0],at[1]==null||at[1],Et=at[2]==null?ke:at[2],W(St["$include?"](":"))&&(vt=St.$partition(":"),at=Pe(vt),kt=at[0]==null?ke:at[0],at[1]==null||at[1],St=at[2]==null?ke:at[2],kt=T(kt,"@")?Be.$size():kt.$to_i(),Be["$[]="](kt,St)),at=[St,Et],G(Xe,"[]=",at),at[at.length-1]):W(_t["$include?"](":"))?(vt=_t.$partition(":"),at=Pe(vt),kt=at[0]==null?ke:at[0],at[1]==null||at[1],St=at[2]==null?ke:at[2],kt=T(kt,"@")?Be.$size():kt.$to_i(),at=[kt,St],G(Be,"[]=",at),at[at.length-1]):Be["$<<"](_t)}),le.$option("positional_attrs",Be.$compact()),le.$option("default_attrs",Xe)):Ke(Ie("Hash"),Se)?(he=[[],me([],{})],Be=he[0],Xe=he[1],G(P,"each",[],function(_t,at){var vt,St,Et=ke,kt=ke;return _t==null&&(_t=ke),at==null&&(at=ke),W((Et=_t.$to_s())["$include?"](":"))&&(St=Et.$partition(":"),vt=Pe(St),kt=vt[0]==null?ke:vt[0],vt[1]==null||vt[1],Et=vt[2]==null?ke:vt[2],kt=T(kt,"@")?Be.$size():kt.$to_i(),Be["$[]="](kt,Et)),W(at)?(vt=[Et,at],G(Xe,"[]=",vt),vt[vt.length-1]):ke}),le.$option("positional_attrs",Be.$compact()),le.$option("default_attrs",Xe)):le.$raise(Ie("ArgumentError"),"unsupported attributes specification for macro: "+P.$inspect())},-1),Ue(u,"resolves_attributes","resolve_attributes")}(te[0],te),function(H,g,u){var m=re(H,g,"Preprocessor"),R=[m].concat(u),k=a.$r(R);return v(m,"$process",function(D,P){var he=this;return he.$raise(Ie("NotImplementedError"),""+k("Preprocessor")+" subclass "+he.$class()+" must implement the #process method")})}(te[0],fe("Processor"),te),pt(fe("Preprocessor"),"DSL",fe("DocumentProcessorDsl")),function(H,g,u){var m=re(H,g,"TreeProcessor"),R=[m].concat(u),k=a.$r(R);return v(m,"$process",function(D){var P=this;return P.$raise(Ie("NotImplementedError"),""+k("TreeProcessor")+" subclass "+P.$class()+" must implement the #process method")})}(te[0],fe("Processor"),te),pt(fe("TreeProcessor"),"DSL",fe("DocumentProcessorDsl")),pt(te[0],"Treeprocessor",fe("TreeProcessor")),function(H,g,u){var m=re(H,g,"Postprocessor"),R=[m].concat(u),k=a.$r(R);return v(m,"$process",function(D,P){var he=this;return he.$raise(Ie("NotImplementedError"),""+k("Postprocessor")+" subclass "+he.$class()+" must implement the #process method")})}(te[0],fe("Processor"),te),pt(fe("Postprocessor"),"DSL",fe("DocumentProcessorDsl")),function(H,g,u){var m=re(H,g,"IncludeProcessor"),R=[m].concat(u),k=a.$r(R);return v(m,"$process",function(D,P,he,le){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+k("IncludeProcessor")+" subclass "+Se.$class()+" must implement the #process method")}),v(m,"$handles?",We(!0))}(te[0],fe("Processor"),te),function(H,g){var u=ae(H,"IncludeProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("DocumentProcessorDsl")),v(u,"$handles?",function k(b){var D=k.$$p||ke,P,he,le,Se=this;return Se.handles_block==null&&(Se.handles_block=ke),k.$$p=null,P=K(arguments),he=P,D!==ke?(W(he["$empty?"]())||Se.$raise(Ie("ArgumentError"),"wrong number of arguments (given "+he.$size()+", expected 0)"),Se.handles_block=D):W((le=Se.handles_block,le!=null&&le!==ke?"instance-variable":ke))?Se.handles_block.$call(he["$[]"](0)):!0},-1)}(te[0],te),pt(fe("IncludeProcessor"),"DSL",fe("IncludeProcessorDsl")),function(H,g,u){var m=re(H,g,"DocinfoProcessor"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.config=ke,v(m,"$initialize",function D(P){var he;D.$$p;var le=this,Se=ke;return D.$$p=null,P==null&&(P=me([],{})),st(le,Ye(le,"initialize",D,!1,!0),"initialize",[P],null),W(Se=le.config["$[]"]("location"))?Se:(he=["location","head"],G(le.config,"[]=",he),he[he.length-1])},-1),v(m,"$process",function(P){var he=this;return he.$raise(Ie("NotImplementedError"),""+k("DocinfoProcessor")+" subclass "+he.$class()+" must implement the #process method")})}(te[0],fe("Processor"),te),function(H,g){var u=ae(H,"DocinfoProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("DocumentProcessorDsl")),v(u,"$at_location",function(b){var D=this;return D.$option("location",b)})}(te[0],te),pt(fe("DocinfoProcessor"),"DSL",fe("DocinfoProcessorDsl")),function(H,g,u){var m=re(H,g,"BlockProcessor"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.config=ke,m.$attr_accessor("name"),v(m,"$initialize",function D(P,he){var le;D.$$p;var Se=this,Be=ke;return D.$$p=null,P==null&&(P=ke),he==null&&(he=me([],{})),st(Se,Ye(Se,"initialize",D,!1,!0),"initialize",[he],null),Se.name=W(Be=P)?Be:Se.config["$[]"]("name"),Ke(Je,Be=Se.config["$[]"]("contexts"))?W(Se.config["$[]"]("contexts"))||Se.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ke(Ie("Symbol"),Be)?Se.config["$[]="]("contexts",[Se.config["$[]"]("contexts")].$to_set()):Se.config["$[]="]("contexts",Se.config["$[]"]("contexts").$to_set()),W(Be=Se.config["$[]"]("content_model"))?Be:(le=["content_model","compound"],G(Se.config,"[]=",le),le[le.length-1])},-1),v(m,"$process",function(P,he,le){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+k("BlockProcessor")+" subclass "+Se.$class()+" must implement the #process method")})}(te[0],fe("Processor"),te),function(H,g){var u=ae(H,"BlockProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("SyntaxProcessorDsl")),v(u,"$contexts",function(b){var D,P,he=this;return D=K(arguments),P=D,he.$option("contexts",P.$flatten().$to_set())},-1),Ue(u,"on_contexts","contexts"),Ue(u,"on_context","contexts"),Ue(u,"bind_to","contexts")}(te[0],te),pt(fe("BlockProcessor"),"DSL",fe("BlockProcessorDsl")),function(H,g,u){var m=re(H,g,"MacroProcessor"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.config=ke,m.$attr_accessor("name"),v(m,"$initialize",function D(P,he){var le;D.$$p;var Se=this,Be=ke;return D.$$p=null,P==null&&(P=ke),he==null&&(he=me([],{})),st(Se,Ye(Se,"initialize",D,!1,!0),"initialize",[he],null),Se.name=W(Be=P)?Be:Se.config["$[]"]("name"),W(Be=Se.config["$[]"]("content_model"))?Be:(le=["content_model","attributes"],G(Se.config,"[]=",le),le[le.length-1])},-1),v(m,"$process",function(P,he,le){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+k("MacroProcessor")+" subclass "+Se.$class()+" must implement the #process method")})}(te[0],fe("Processor"),te),function(H,g){var u=ae(H,"MacroProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("SyntaxProcessorDsl")),v(u,"$resolve_attributes",function k(b){var D,P,he=k.$$p||ke,le=this;return k.$$p=null,D=K(arguments),P=D,T(P.$size(),1)&&Ne(P["$[]"](0))?le.$option("content_model","text"):(st(le,Ye(le,"resolve_attributes",k,!1,!0),"resolve_attributes",De(P),he),le.$option("content_model","attributes"))},-1),Ue(u,"resolves_attributes","resolve_attributes")}(te[0],te),function(H,g,u){var m=re(H,g,"BlockMacroProcessor"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.name=ke,v(m,"$name",function(){var P=this;return W(k("MacroNameRx")["$match?"](P.name.$to_s()))||P.$raise(Ie("ArgumentError"),"invalid name for block macro: "+P.name),P.name})}(te[0],fe("MacroProcessor"),te),pt(fe("BlockMacroProcessor"),"DSL",fe("MacroProcessorDsl")),function(H,g,u){var m=re(H,g,"InlineMacroProcessor"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.config=b.name=ke,ht(R[0],"@@rx_cache",me([],{})),v(m,"$regexp",function(){var P,he=this,le=ke;return W(le=he.config["$[]"]("regexp"))?le:(P=["regexp",he.$resolve_regexp(he.name.$to_s(),he.config["$[]"]("format"))],G(he.config,"[]=",P),P[P.length-1])}),v(m,"$resolve_regexp",function(P,he){var le,Se=this,Be=ke;return W(k("MacroNameRx")["$match?"](P))||Se.$raise(Ie("ArgumentError"),"invalid name for inline macro: "+P),W(Be=N(R[0],"@@rx_cache",!1)["$[]"]([P,he]))?Be:(le=[[P,he],tt(["\\\\?",P,":",T(he,"short")?"(){0}":"(\\S+?)","\\[(|",k("CC_ANY"),"*?[^\\\\])\\]"])],G(N(R[0],"@@rx_cache",!1),"[]=",le),le[le.length-1])})}(te[0],fe("MacroProcessor"),te),function(H,g){var u=ae(H,"InlineMacroProcessorDsl"),m=[u].concat(g),R=a.$r(m);return u.$include(R("MacroProcessorDsl")),v(u,"$format",function(b){var D=this;return D.$option("format",b)}),Ue(u,"match_format","format"),Ue(u,"using_format","format"),v(u,"$match",function(b){var D=this;return D.$option("regexp",b)})}(te[0],te),pt(fe("InlineMacroProcessor"),"DSL",fe("InlineMacroProcessorDsl")),function(H,g){var u=re(H,g,"Extension");return u.$attr_reader("kind"),u.$attr_reader("config"),u.$attr_reader("instance"),v(u,"$initialize",function(R,k,b){var D=this;return D.kind=R,D.instance=k,D.config=b})}(te[0],null),function(H,g){var u=re(H,g,"ProcessorExtension");return u.$attr_reader("process_method"),v(u,"$initialize",function m(R,k,b){m.$$p;var D=this,P=ke;return m.$$p=null,b==null&&(b=ke),st(D,Ye(D,"initialize",m,!1,!0),"initialize",[R,k,k.$config()],null),D.process_method=W(P=b)?P:k.$method("process")},-3)}(te[0],fe("Extension")),function(H,g,u){var m=re(H,g,"Group"),R=[m].concat(u);return function(k,b){var D=[k].concat(b),P=a.$r(D);return v(k,"$register",function(le){var Se=this;return le==null&&(le=ke),P("Extensions").$register(le,Se)},-1)}(a.get_singleton_class(m),R),v(m,"$activate",function(b){var D=this;return D.$raise(Ie("NotImplementedError"))})}(te[0],null,te),function(H,g,u){var m=re(H,g,"Registry"),R=[m].concat(u),k=a.$r(R),b=m.$$prototype;return b.document=b.groups=b.preprocessor_extensions=b.tree_processor_extensions=b.postprocessor_extensions=b.include_processor_extensions=b.docinfo_processor_extensions=b.block_extensions=b.block_macro_extensions=b.inline_macro_extensions=ke,m.$attr_reader("document"),m.$attr_reader("groups"),v(m,"$initialize",function(P){var he=this;return P==null&&(P=me([],{})),he.groups=P,he.$reset(),he.preprocessor_extensions=he.tree_processor_extensions=he.postprocessor_extensions=he.include_processor_extensions=he.docinfo_processor_extensions=he.block_extensions=he.block_macro_extensions=he.inline_macro_extensions=ke,he.document=ke},-1),v(m,"$activate",function(P){var he=this,le=ke;return W(he.document)&&he.$reset(),he.document=P,W((le=qe(k("Extensions").$groups().$values(),he.groups.$values()))["$empty?"]())||G(le,"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=ke;if(Be==null&&(Be=ke),Ke(Ie("Proc"),it=Be))switch(Be.$arity()){case 0:case-1:return G(Xe,"instance_exec",[],Be.$to_proc());case 1:return Be.$call(Xe);default:return ke}else return Ke(E,it)?Be.$new().$activate(Xe):Be.$activate(Xe)},{$$s:he}),he}),v(m,"$preprocessor",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_document_processor",["preprocessor",Se],he.$to_proc())},-1),v(m,"$preprocessors?",function(){var P=this;return P.preprocessor_extensions["$!"]()["$!"]()}),v(m,"$preprocessors",rt("preprocessor_extensions")),v(m,"$tree_processor",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_document_processor",["tree_processor",Se],he.$to_proc())},-1),v(m,"$tree_processors?",function(){var P=this;return P.tree_processor_extensions["$!"]()["$!"]()}),v(m,"$tree_processors",rt("tree_processor_extensions")),Ue(m,"treeprocessor","tree_processor"),Ue(m,"treeprocessors?","tree_processors?"),Ue(m,"treeprocessors","tree_processors"),v(m,"$postprocessor",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_document_processor",["postprocessor",Se],he.$to_proc())},-1),v(m,"$postprocessors?",function(){var P=this;return P.postprocessor_extensions["$!"]()["$!"]()}),v(m,"$postprocessors",rt("postprocessor_extensions")),v(m,"$include_processor",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_document_processor",["include_processor",Se],he.$to_proc())},-1),v(m,"$include_processors?",function(){var P=this;return P.include_processor_extensions["$!"]()["$!"]()}),v(m,"$include_processors",rt("include_processor_extensions")),v(m,"$docinfo_processor",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_document_processor",["docinfo_processor",Se],he.$to_proc())},-1),v(m,"$docinfo_processors?",function(P){var he=this;return P==null&&(P=ke),W(he.docinfo_processor_extensions)?W(P)?G(he.docinfo_processor_extensions,"any?",[],function(Se){return Se==null&&(Se=ke),Se.$config()["$[]"]("location")["$=="](P)}):!0:!1},-1),v(m,"$docinfo_processors",function(P){var he=this;return P==null&&(P=ke),W(he.docinfo_processor_extensions)?W(P)?G(he.docinfo_processor_extensions,"select",[],function(Se){return Se==null&&(Se=ke),Se.$config()["$[]"]("location")["$=="](P)}):he.docinfo_processor_extensions:ke},-1),v(m,"$block",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_syntax_processor",["block",Se],he.$to_proc())},-1),v(m,"$blocks?",function(){var P=this;return P.block_extensions["$!"]()["$!"]()}),v(m,"$registered_for_block?",function(P,he){var le=this,Se=ke;return W(Se=le.block_extensions["$[]"](P.$to_sym()))&&W(Se.$config()["$[]"]("contexts")["$include?"](he))?Se:!1}),v(m,"$find_block_extension",function(P){var he=this;return he.block_extensions["$[]"](P.$to_sym())}),v(m,"$block_macro",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_syntax_processor",["block_macro",Se],he.$to_proc())},-1),v(m,"$block_macros?",function(){var P=this;return P.block_macro_extensions["$!"]()["$!"]()}),v(m,"$registered_for_block_macro?",function(P){var he=this,le=ke;return W(le=he.block_macro_extensions["$[]"](P.$to_sym()))?le:!1}),v(m,"$find_block_macro_extension",function(P){var he=this;return he.block_macro_extensions["$[]"](P.$to_sym())}),v(m,"$inline_macro",function D(P){var he=D.$$p||ke,le,Se,Be=this;return D.$$p=null,le=K(arguments),Se=le,G(Be,"add_syntax_processor",["inline_macro",Se],he.$to_proc())},-1),v(m,"$inline_macros?",function(){var P=this;return P.inline_macro_extensions["$!"]()["$!"]()}),v(m,"$registered_for_inline_macro?",function(P){var he=this,le=ke;return W(le=he.inline_macro_extensions["$[]"](P.$to_sym()))?le:!1}),v(m,"$find_inline_macro_extension",function(P){var he=this;return he.inline_macro_extensions["$[]"](P.$to_sym())}),v(m,"$inline_macros",function(){var P=this;return P.inline_macro_extensions.$values()}),v(m,"$prefer",function D(P){var he=D.$$p||ke,le,Se,Be=this,Xe=ke,it=ke,_t=ke;return D.$$p=null,le=K(arguments),Se=le,Xe=Ke(k("ProcessorExtension"),it=Se.$shift())?it:G(Be,"send",[it].concat(De(Se)),he.$to_proc()),_t=Be.$instance_variable_get(("@"+Xe.$kind()+"_extensions").$to_sym()),_t.$unshift(_t.$delete(Xe)),Xe},-1),m.$private(),v(m,"$add_document_processor",function D(P,he){var le=D.$$p||ke,Se,Be,Xe=this,it=ke,_t=ke,at=ke,vt=ke,St=ke,Et=ke,kt=ke,Nt=ke,Rt=ke,Wt=ke,jt=ke;return D.$$p=null,it=P.$to_s().$tr("_"," "),_t=G(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=ke),Kt.$capitalize()}).$join().$to_sym(),at=k("Extensions").$const_get(_t,!1),vt=W(Ie("::","AsciidoctorJ","skip_raise")?"constant":ke)?Ie(Ie("AsciidoctorJ"),"Extensions").$const_get(_t,!1):ke,St=W(Et=Xe.$instance_variable_get(("@"+P+"_extensions").$to_sym()))?Et:Xe.$instance_variable_set(("@"+P+"_extensions").$to_sym(),[]),le!==ke?(kt=Xe.$resolve_args(he,1),(Nt=at.$new(kt)).$singleton_class().$enable_dsl(),T(le.$arity(),0)?G(Nt,"instance_exec",[],le.$to_proc()):a.yield1(le,Nt),W(Nt["$process_block_given?"]())||Xe.$raise(Ie("NoMethodError"),"No block specified to process "+it+" extension at "+le.$source_location().$join(":")),Nt.$freeze(),Rt=k("ProcessorExtension").$new(P,Nt)):(Be=Xe.$resolve_args(he,2),Se=Pe(Be),Nt=Se[0]==null?ke:Se[0],kt=Se[1]==null?ke:Se[1],W(Wt=k("Helpers").$resolve_class(Nt))?(W(ot(Wt,at))||W(vt)&&W(ot(Wt,vt))||Xe.$raise(Ie("ArgumentError"),"Invalid type for "+it+" extension: "+Nt),jt=Wt.$new(kt),jt.$freeze(),Rt=k("ProcessorExtension").$new(P,jt)):Ke(at,Nt)||W(vt)&&Ke(vt,Nt)?(Nt.$update_config(kt),Nt.$freeze(),Rt=k("ProcessorExtension").$new(P,Nt)):Xe.$raise(Ie("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+he)),T(Rt.$config()["$[]"]("position"),">>")?St.$unshift(Rt):St["$<<"](Rt),Rt}),v(m,"$add_syntax_processor",function D(P,he){var le=D.$$p||ke,Se,Be,Xe=this,it=ke,_t=ke,at=ke,vt=ke,St=ke,Et=ke,kt=ke,Nt=ke,Rt=ke,Wt=ke,jt=ke;return D.$$p=null,it=P.$to_s().$tr("_"," "),_t=G(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=ke),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=k("Extensions").$const_get(_t,!1),vt=W(Ie("::","AsciidoctorJ","skip_raise")?"constant":ke)?Ie(Ie("AsciidoctorJ"),"Extensions").$const_get(_t,!1):ke,St=W(Et=Xe.$instance_variable_get(("@"+P+"_extensions").$to_sym()))?Et:Xe.$instance_variable_set(("@"+P+"_extensions").$to_sym(),me([],{})),le!==ke?(Be=Xe.$resolve_args(he,2),Se=Pe(Be),kt=Se[0]==null?ke:Se[0],Nt=Se[1]==null?ke:Se[1],(Rt=at.$new(Xe.$as_symbol(kt),Nt)).$singleton_class().$enable_dsl(),T(le.$arity(),0)?G(Rt,"instance_exec",[],le.$to_proc()):a.yield1(le,Rt),W(kt=Xe.$as_symbol(Rt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension at "+le.$source_location().$join(":")),W(Rt["$process_block_given?"]())||Xe.$raise(Ie("NoMethodError"),"No block specified to process "+it+" extension at "+le.$source_location().$join(":")),Rt.$freeze(),Se=[kt,k("ProcessorExtension").$new(P,Rt)],G(St,"[]=",Se),Se[Se.length-1]):(Be=Xe.$resolve_args(he,3),Se=Pe(Be),Rt=Se[0]==null?ke:Se[0],kt=Se[1]==null?ke:Se[1],Nt=Se[2]==null?ke:Se[2],W(Wt=k("Helpers").$resolve_class(Rt))?(W(ot(Wt,at))||W(vt)&&W(ot(Wt,vt))||Xe.$raise(Ie("ArgumentError"),"Class specified for "+it+" extension does not inherit from "+at+": "+Rt),jt=Wt.$new(Xe.$as_symbol(kt),Nt),W(kt=Xe.$as_symbol(jt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension: "+Rt),jt.$freeze(),Se=[kt,k("ProcessorExtension").$new(P,jt)],G(St,"[]=",Se),Se[Se.length-1]):Ke(at,Rt)||W(vt)&&Ke(vt,Rt)?(Rt.$update_config(Nt),W(kt=W(kt)?(Se=[Xe.$as_symbol(kt)],G(Rt,"name=",Se),Se[Se.length-1]):Xe.$as_symbol(Rt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension: "+Rt),Rt.$freeze(),Se=[kt,k("ProcessorExtension").$new(P,Rt)],G(St,"[]=",Se),Se[Se.length-1]):Xe.$raise(Ie("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+he))}),v(m,"$reset",function(){var P=this;return P.preprocessor_extensions=P.tree_processor_extensions=P.postprocessor_extensions=P.include_processor_extensions=P.docinfo_processor_extensions=P.block_extensions=P.block_macro_extensions=P.inline_macro_extensions=ke,P.document=ke}),v(m,"$resolve_args",function(P,he){var le=ke,Se=ke;return le=Ke(Ie("Hash"),P["$[]"](-1))?P.$pop():me([],{}),T(he,1)?le:(W(Oe(Se=X(X(he,1),P.$size()),0))?P=qe(P,Ie("Array").$new(Se)):W(ot(Se,0))&&P.$pop(Se["$-@"]()),P["$<<"](le),P)}),v(m,"$as_symbol",function(P){return W(P)?P.$to_sym():ke})}(te[0],null,te),function(H,g){var u=[H].concat(g),m=a.$r(u);return v(H,"$generate_name",function(){var k=this;return"extgrp"+k.$next_auto_id()}),v(H,"$next_auto_id",function(){var k=this,b=ke;return k.auto_id==null&&(k.auto_id=ke),k.auto_id=W(b=k.auto_id)?b:-1,k.auto_id=qe(k.auto_id,1)}),v(H,"$groups",function(){var k=this,b=ke;return k.groups==null&&(k.groups=ke),k.groups=W(b=k.groups)?b:me([],{})}),v(H,"$create",function R(k){var b=R.$$p||ke,D=this,P=ke;return R.$$p=null,k==null&&(k=ke),b!==ke?m("Registry").$new(M(W(P=k)?P:D.$generate_name(),b)):m("Registry").$new()},-1),v(H,"$register",function R(k){var b=R.$$p||ke,D,P,he,le=this,Se=ke,Be=ke,Xe=ke,it=ke,_t=ke;return R.$$p=null,D=K(arguments),P=D,Se=P.$size(),b!==ke?Be=b:W(Xe=P.$pop())?Be=W(it=m("Helpers").$resolve_class(Xe))?it:Xe:le.$raise(Ie("ArgumentError"),"Extension group to register not specified"),_t=W(it=P.$pop())?it:le.$generate_name(),W(P["$empty?"]())||le.$raise(Ie("ArgumentError"),"Wrong number of arguments ("+Se+" for 1..2)"),he=[_t.$to_sym(),Be],G(le.$groups(),"[]=",he),he[he.length-1]},-1),v(H,"$unregister_all",function(){var k=this;return k.groups=me([],{}),ke}),v(H,"$unregister",function(k){var b,D,P=this;return b=K(arguments),D=b,G(D,"each_with_object",[P.$groups()],function(le,Se){return le==null&&(le=ke),Se==null&&(Se=ke),Se.$delete(le.$to_sym())}),ke},-1)}(a.get_singleton_class(ie),te)}(J[0],J)}(He[0],He)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var ae=a.module,re=a.klass,W=a.truthy,me=a.def,v=[],G=a.nil,Ue=a.$$$;return a.add_stubs("rstrip,read,join"),function(K,qe){var T=ae(K,"Asciidoctor"),Oe=[T].concat(qe);return function(Ne,Ke){var De=re(Ne,Ke,"Stylesheets"),Pe=De.$$prototype;return Pe.primary_stylesheet_data=G,me(De,"$primary_stylesheet_data",function(){var We=this,st=G;return We.primary_stylesheet_data=W(st=We.primary_stylesheet_data)?st:Ue("IO").$read(Ue("File").$join("css","asciidoctor.css")).$rstrip()})}(Oe[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var ae=a.module,re=a.klass,W=a.def,me=[];return a.nil,function(v,G){var Ue=ae(v,"Asciidoctor"),K=[Ue].concat(G),qe=a.$r(K);return function(T,Oe){var Ne=re(T,Oe,"Document");return W(Ne,"$fill_datetime_attributes",function(De,Pe){var pt=a.truthy,We=a.falsy,st=a.nil,Ye,Je,ht,N,tt,E,rt,ot,X=function(R,k){return k===0?R.getUTCFullYear():R.getFullYear()},M=function(R,k){return k===0?R.getUTCMonth():R.getMonth()},He=function(R,k){return k===0?R.getUTCDate():R.getDate()},ke=function(R,k){return k===0?R.getUTCHours():R.getHours()},Ie=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(Ie.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Je=Ie,Ye=0):Ye=-Ie.getTimezoneOffset()/60,pt(ht=De["$[]"]("localdate")))We(N=De["$[]"]("localyear"))&&(N=ht.indexOf("-")===4?ht.substring(0,4):st,De["$[]="]("localyear",N));else{var Re=X(Ie,Ye).toString(),oe=("0"+(M(Ie,Ye)+1)).slice(-2),we=("0"+He(Ie,Ye)).slice(-2);ht=Re+"-"+oe+"-"+we,De["$[]="]("localdate",ht),N=Re,De["$[]="]("localyear",Re)}if(We(tt=De["$[]"]("localtime"))){var J=("0"+ke(Ie,Ye)).slice(-2),B=("0"+Ie.getMinutes()).slice(-2),q=("0"+Ie.getSeconds()).slice(-2),ie;Ye===0?ie="UTC":Ye>0?ie=("+0"+Ye*100).slice(-5):ie=("-0"+-Ye*100).slice(-5),tt=J+":"+B+":"+q+" "+ie,De["$[]="]("localtime",tt)}if(We(E=De["$[]"]("localdatetime"))&&(E=ht+" "+tt,De["$[]="]("localdatetime",E)),pt(Je)?Pe=Je:pt(Pe)?Ye=-Pe.getTimezoneOffset()/60:Pe=Ie,pt(rt=De["$[]"]("docdate")))De["$[]="]("docyear",rt.indexOf("-")===4?rt.substring(0,4):st);else{var te=X(Pe,Ye).toString(),fe=("0"+(M(Pe,Ye)+1)).slice(-2),H=("0"+He(Pe,Ye)).slice(-2);rt=te+"-"+fe+"-"+H,De["$[]="]("docdate",rt),We(De["$[]"]("docyear"))&&De["$[]="]("docyear",te)}if(We(ot=De["$[]"]("doctime"))){var g=("0"+ke(Pe,Ye)).slice(-2),u=("0"+Pe.getMinutes()).slice(-2),m=("0"+Pe.getSeconds()).slice(-2),ie;Ye===0?ie="UTC":Ye>0?ie=("+0"+Ye*100).slice(-5):ie=("-0"+-Ye*100).slice(-5),ot=g+":"+u+":"+m+" "+ie,De["$[]="]("doctime",ot)}return We(De["$[]"]("docdatetime"))&&De["$[]="]("docdatetime",rt+" "+ot),st})}(K[0],qe("AbstractBlock"))}(me[0],me)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var ae=a.module,re=a.def,W=[];return a.nil,function(me,v){var G=ae(me,"Asciidoctor"),Ue=[G].concat(v);return function(K){var qe=ae(K,"Substitutors");return re(qe,"$sub_placeholder",function(Oe,Ne){return Oe.replace("%s",Ne)})}(Ue[0])}(W[0],W)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var ae=a.module,re=a.klass,W=a.truthy,me=a.defs,v=[];return a.nil,function(G,Ue){var K=ae(G,"Asciidoctor"),qe=[K].concat(Ue);return function(T,Oe){var Ne=re(T,Oe,"Parser");return W(String.prototype.repeat)?me(Ne,"$uniform?",function(De,Pe,pt){return Pe.repeat(pt)===De}):me(Ne,"$uniform?",function(De,Pe,pt){return Array.apply(null,{length:pt}).map(function(){return Pe}).join("")===De})}(qe[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var ae=a.module,re=a.truthy,W=a.def,me=[],v=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(G,Ue){var K=ae(G,"Asciidoctor"),qe=[K].concat(Ue);return function(T,Oe){var Ne=ae(T,"SyntaxHighlighter"),Ke=[Ne].concat(Oe);return function(De,Pe){var pt=ae(De,"Factory"),We=[pt].concat(Pe),st=a.$r(We);return W(pt,"$for",function(Je){var ht=this;return re(ht.$registry()["$key?"](Je))?ht.$registry()["$[]"](Je):(re(ht["$include?"](st("Logging")))||ht.$include(st("Logging")),re(ht.$registry()["$empty?"]())?ht.$logger().$debug("no syntax highlighter available, functionality disabled."):ht.$logger().$debug("syntax highlighter named '"+Je+"' is not available, must be one of: '"+ht.$registry().$keys().$join("', '")+"'."),v)})}(Ke[0],Ke)}(qe[0],qe)}(me[0],me)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),ae.$require("asciidoctor/js/asciidoctor_ext/document"),ae.$require("asciidoctor/js/asciidoctor_ext/substitutors"),ae.$require("asciidoctor/js/asciidoctor_ext/parser"),ae.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),ae.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var ae=a.klass,re=a.def,W=a.truthy,me=a.rb_lt,v=[],G=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(Ue,K,qe){var T=ae(Ue,K,"Logger"),Oe=[T].concat(qe),Ne=a.$r(Oe),Ke=T.$$prototype;return Ke.level=Ke.progname=Ke.pipe=Ke.formatter=G,function(De,Pe){var pt=ae(De,Pe,"Formatter");return re(pt,"$call",function(st,Ye,Je,ht){var N=this,tt=G;return tt=Ye.getFullYear()+"-"+("0"+(Ye.getMonth()+1)).slice(-2)+"-"+("0"+Ye.getDate()).slice(-2)+"T"+("0"+Ye.getHours()).slice(-2)+":"+("0"+Ye.getMinutes()).slice(-2)+":"+("0"+Ye.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+tt+"] "+st.$rjust(5)+" -- "+Je+": "+N.$message_as_string(ht)})}(Oe[0],null),re(T,"$add",function De(Pe,pt,We){var st=De.$$p||G,Ye=this,Je=G;return De.$$p=null,pt==null&&(pt=G),We==null&&(We=G),W(me(Pe=W(Je=Pe)?Je:Ne("UNKNOWN"),Ye.level))||(We=W(Je=We)?Je:Ye.progname,W(pt)||(st!==G?pt=a.yieldX(st,[]):(pt=We,We=Ye.progname)),Ye.pipe.$write(Ye.formatter.$call(W(Je=Ne("SEVERITY_LABELS")["$[]"](Pe))?Je:"ANY",new Date,We,pt))),!0},-2)}(v[0],null,v)},Opal.modules["asciidoctor/js/postscript"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/converter/composite"),ae.$require("asciidoctor/converter/html5"),ae.$require("asciidoctor/extensions"),ae.$require("asciidoctor/js/asciidoctor_ext"),ae.$require("asciidoctor/js/opal_ext/logger")},Opal.queue(function(a){var ae=a.module,re=a.const_set,W=a.send,me=a.to_ary,v=a.defs,G=a.def,Ue=a.truthy,K=a.hash2,qe=a.eqeq,T=a.rb_minus,Oe=a.regexp,Ne=a.top,Ke=[],De=a.nil,Pe=a.$$$;return a.add_stubs("require,==,to_h,sort,map,constants,const_get,downcase,to_s,<=>,upcase,[],values,new,attr_reader,instance_variable_set,send,singleton_class,<<,define,dirname,absolute_path,join,home,pwd,to_set,tap,each,chr,each_key,[]=,slice,length,-,merge,default=,drop,insert"),Ne.$require("set"),Ne.$require("asciidoctor/js"),function(pt,We){var st=ae(pt,"Asciidoctor"),Ye=[st].concat(We),Je=a.$r(Ye),ht=De;return re(Ye[0],"RUBY_ENGINE_OPAL",re(Ye[0],"RUBY_ENGINE",Pe("RUBY_ENGINE"))["$=="]("opal")),function(N,tt){var E=ae(N,"SafeMode"),rt=[E].concat(tt);return re(rt[0],"UNSAFE",0),re(rt[0],"SAFE",1),re(rt[0],"SERVER",10),re(rt[0],"SECURE",20),E.names_by_value=W(W(E.$constants(!1),"map",[],function ot(X){var M=ot.$$s==null?this:ot.$$s;return X==null&&(X=De),[M.$const_get(X),X.$to_s().$downcase()]},{$$s:E}),"sort",[],function(X,M){var He,ke,Ie=De,Re=De;return X==null&&(X=De),M==null&&(M=De),ke=X,He=me(ke),Ie=He[0]==null?De:He[0],ke=M,He=me(ke),Re=He[0]==null?De:He[0],Ie["$<=>"](Re)},{$$has_top_level_mlhs_arg:!0}).$to_h(),v(E,"$value_for_name",function(X){var M=this;return M.$const_get(X.$upcase(),!1)}),v(E,"$name_for_value",function(X){var M=this;return M.names_by_value==null&&(M.names_by_value=De),M.names_by_value["$[]"](X)}),v(E,"$names",function(){var X=this;return X.names_by_value==null&&(X.names_by_value=De),X.names_by_value.$values()})}(Ye[0],Ye),function(N,tt){var E=ae(N,"Compliance");return E.keys=Pe("Set").$new(),function(rt,ot){return rt.$attr_reader("keys"),G(rt,"$define",function(M,He){var ke=this;return ke.keys==null&&(ke.keys=De),ke.$instance_variable_set("@"+M,He),ke.$singleton_class().$send("attr_accessor",M),ke.keys["$<<"](M),De})}(a.get_singleton_class(E)),E.$define("block_terminates_paragraph",!0),E.$define("strict_verbatim_paragraphs",!0),E.$define("underline_style_section_titles",!0),E.$define("unwrap_standalone_preamble",!0),E.$define("attribute_missing","skip"),E.$define("attribute_undefined","drop-line"),E.$define("shorthand_property_syntax",!0),E.$define("natural_xrefs",!0),E.$define("unique_id_start_index",2),E.$define("markdown_syntax",!0)}(Ye[0]),Ue(Je("ROOT_DIR","skip_raise")?"constant":De)||re(Ye[0],"ROOT_DIR",Pe("File").$dirname(Pe("File").$absolute_path("."))),re(Ye[0],"LIB_DIR",Pe("File").$join(Je("ROOT_DIR"),"lib")),re(Ye[0],"DATA_DIR",Pe("File").$join(Je("ROOT_DIR"),"data")),re(Ye[0],"USER_HOME",function(){try{return Pe("Dir").$home()}catch(N){if(a.rescue(N,[Je("StandardError")]))try{return Ue(ht=Pe("ENV")["$[]"]("HOME"))?ht:Pe("Dir").$pwd()}finally{a.pop_exception()}else throw N}}()),re(Ye[0],"LF",`
614
+ `),re(Ye[0],"NULL","\0"),re(Ye[0],"TAB"," "),re(Ye[0],"MAX_INT",9007199254740991),re(Ye[0],"UTF_8",Pe(Pe("Encoding"),"UTF_8")),re(Ye[0],"BOM_BYTES_UTF_8",[239,187,191]),re(Ye[0],"BOM_BYTES_UTF_16LE",[255,254]),re(Ye[0],"BOM_BYTES_UTF_16BE",[254,255]),re(Ye[0],"FILE_READ_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),re(Ye[0],"URI_READ_MODE",Je("FILE_READ_MODE")),re(Ye[0],"FILE_WRITE_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),re(Ye[0],"DEFAULT_DOCTYPE","article"),re(Ye[0],"DEFAULT_BACKEND","html5"),re(Ye[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),re(Ye[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),re(Ye[0],"BACKEND_ALIASES",K(["html","docbook"],{html:"html5",docbook:"docbook5"})),re(Ye[0],"DEFAULT_PAGE_WIDTHS",K(["docbook"],{docbook:425})),re(Ye[0],"DEFAULT_EXTENSIONS",K(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),re(Ye[0],"ASCIIDOC_EXTENSIONS",K([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),re(Ye[0],"SETEXT_SECTION_LEVELS",K(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),re(Ye[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),re(Ye[0],"ADMONITION_STYLE_HEADS",W(Pe("Set").$new(),"tap",[],function(tt){return tt==null&&(tt=De),W(Je("ADMONITION_STYLES"),"each",[],function(rt){return rt==null&&(rt=De),tt["$<<"](rt.$chr())})})),re(Ye[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),re(Ye[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),re(Ye[0],"DELIMITED_BLOCKS",K(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["open",["comment","example","literal","listing","pass","quote","sidebar","source","verse","admonition","abstract","partintro"].$to_set()],"----":["listing",["literal","source"].$to_set()],"....":["literal",["listing","source"].$to_set()],"====":["example",["admonition"].$to_set()],"****":["sidebar",Pe("Set").$new()],____:["quote",["verse"].$to_set()],"++++":["pass",["stem","latexmath","asciimath"].$to_set()],"|===":["table",Pe("Set").$new()],",===":["table",Pe("Set").$new()],":===":["table",Pe("Set").$new()],"!===":["table",Pe("Set").$new()],"////":["comment",Pe("Set").$new()],"```":["fenced_code",Pe("Set").$new()]})),re(Ye[0],"DELIMITED_BLOCK_HEADS",W(K([],{}),"tap",[],function(tt){return tt==null&&(tt=De),W(Je("DELIMITED_BLOCKS"),"each_key",[],function(rt){var ot;return rt==null&&(rt=De),ot=[rt.$slice(0,2),!0],W(tt,"[]=",ot),ot[ot.length-1]})})),re(Ye[0],"DELIMITED_BLOCK_TAILS",W(K([],{}),"tap",[],function(tt){return tt==null&&(tt=De),W(Je("DELIMITED_BLOCKS"),"each_key",[],function(rt){var ot;return rt==null&&(rt=De),qe(rt.$length(),4)?(ot=[rt,rt["$[]"](T(rt.$length(),1))],W(tt,"[]=",ot),ot[ot.length-1]):De})})),re(Ye[0],"CAPTION_ATTRIBUTE_NAMES",K(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),re(Ye[0],"LAYOUT_BREAK_CHARS",K(["'","<"],{"'":"thematic_break","<":"page_break"})),re(Ye[0],"MARKDOWN_THEMATIC_BREAK_CHARS",K(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),re(Ye[0],"HYBRID_LAYOUT_BREAK_CHARS",Je("LAYOUT_BREAK_CHARS").$merge(Je("MARKDOWN_THEMATIC_BREAK_CHARS"))),re(Ye[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),re(Ye[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),re(Ye[0],"ORDERED_LIST_KEYWORDS",K(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),re(Ye[0],"ATTR_REF_HEAD","{"),re(Ye[0],"LIST_CONTINUATION","+"),re(Ye[0],"HARD_LINE_BREAK"," +"),re(Ye[0],"LINE_CONTINUATION"," \\"),re(Ye[0],"LINE_CONTINUATION_LEGACY"," +"),re(Ye[0],"BLOCK_MATH_DELIMITERS",K(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),re(Ye[0],"INLINE_MATH_DELIMITERS",K(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),re(Ye[0],"STEM_TYPE_ALIASES",K(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),re(Ye[0],"FONT_AWESOME_VERSION","4.7.0"),re(Ye[0],"HIGHLIGHT_JS_VERSION","9.18.3"),re(Ye[0],"MATHJAX_VERSION","2.7.9"),re(Ye[0],"DEFAULT_ATTRIBUTES",K(["appendix-caption","appendix-refsig","caution-caption","chapter-refsig","example-caption","figure-caption","important-caption","last-update-label","note-caption","part-refsig","prewrap","sectids","section-refsig","table-caption","tip-caption","toc-placement","toc-title","untitled-label","version-label","warning-caption"],{"appendix-caption":"Appendix","appendix-refsig":"Appendix","caution-caption":"Caution","chapter-refsig":"Chapter","example-caption":"Example","figure-caption":"Figure","important-caption":"Important","last-update-label":"Last updated","note-caption":"Note","part-refsig":"Part",prewrap:"",sectids:"","section-refsig":"Section","table-caption":"Table","tip-caption":"Tip","toc-placement":"auto","toc-title":"Table of Contents","untitled-label":"Untitled","version-label":"Version","warning-caption":"Warning"})),re(Ye[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),re(Ye[0],"INTRINSIC_ATTRIBUTES",K(["startsb","endsb","vbar","caret","asterisk","tilde","plus","backslash","backtick","blank","empty","sp","two-colons","two-semicolons","nbsp","deg","zwsp","quot","apos","lsquo","rsquo","ldquo","rdquo","wj","brvbar","pp","cpp","amp","lt","gt"],{startsb:"[",endsb:"]",vbar:"|",caret:"^",asterisk:"*",tilde:"~",plus:"&#43;",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:"&#160;",deg:"&#176;",zwsp:"&#8203;",quot:"&#34;",apos:"&#39;",lsquo:"&#8216;",rsquo:"&#8217;",ldquo:"&#8220;",rdquo:"&#8221;",wj:"&#8288;",brvbar:"&#166;",pp:"&#43;&#43;",cpp:"C&#43;&#43;",amp:"&",lt:"<",gt:">"})),re(Ye[0],"QUOTE_SUBS",W(K([],{}),"tap",[],function(tt){var E=De,rt=De;return tt==null&&(tt=De),tt["$[]="](!1,E=[["strong","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Je("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Je("CC_ALL"),"*?\\S)\\*(?!",Je("CG_WORD"),")"],"m")],["double","constrained",Oe(["(^|[^",Je("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Je("CC_ALL"),'*?\\S)`"(?!',Je("CG_WORD"),")"],"m")],["single","constrained",Oe(["(^|[^",Je("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Je("CC_ALL"),"*?\\S)`'(?!",Je("CG_WORD"),")"],"m")],["monospaced","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?``(",Je("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",Oe(["(^|[^",Je("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)`(?![",Je("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?__(",Je("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Je("CC_ALL"),"*?\\S)_(?!",Je("CG_WORD"),")"],"m")],["mark","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?##(",Je("CC_ALL"),"+?)##"],"m")],["mark","constrained",Oe(["(^|[^",Je("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Je("CC_ALL"),"*?\\S)#(?!",Je("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),tt["$[]="](!0,rt=E.$drop(0)),rt["$[]="](2,["double","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Je("CC_ALL"),"*?\\S)''(?!",Je("CG_WORD"),")"],"m")]),rt["$[]="](3,["single","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")]),rt["$[]="](4,["monospaced","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Je("CC_ALL"),"+?)\\+\\+"],"m")]),rt["$[]="](5,["monospaced","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Je("CC_ALL"),"*?\\S)\\+(?!",Je("CG_WORD"),")"],"m")]),rt.$insert(3,["emphasis","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")])})),re(Ye[0],"REPLACEMENTS",[[/\\?\(C\)/,"&#169;","none"],[/\\?\(R\)/,"&#174;","none"],[/\\?\(TM\)/,"&#8482;","none"],[/(?: |\n|^|\\)--(?: |\n|$)/,"&#8201;&#8212;&#8201;","none"],[Oe(["(",Je("CG_WORD"),")\\\\?--(?=",Je("CG_WORD"),")"]),"&#8212;&#8203;","leading"],[/\\?\.\.\./,"&#8230;&#8203;","none"],[/\\?`'/,"&#8217;","none"],[Oe(["(",Je("CG_ALNUM"),")\\\\?'(?=",Je("CG_ALPHA"),")"]),"&#8217;","leading"],[/\\?-&gt;/,"&#8594;","none"],[/\\?=&gt;/,"&#8658;","none"],[/\\?&lt;-/,"&#8592;","none"],[/\\?&lt;=/,"&#8656;","none"],[/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/,"","bounding"]]),De}(Ke[0],Ke),Ne.$require("asciidoctor.rb/../asciidoctor/core_ext"),Ne.$require("asciidoctor.rb/../asciidoctor/helpers"),Ne.$require("asciidoctor.rb/../asciidoctor/logging"),Ne.$require("asciidoctor.rb/../asciidoctor/rx"),Ne.$require("asciidoctor.rb/../asciidoctor/substitutors"),Ne.$require("asciidoctor.rb/../asciidoctor/version"),Ne.$require("asciidoctor.rb/../asciidoctor/abstract_node"),Ne.$require("asciidoctor.rb/../asciidoctor/abstract_block"),Ne.$require("asciidoctor.rb/../asciidoctor/attribute_list"),Ne.$require("asciidoctor.rb/../asciidoctor/block"),Ne.$require("asciidoctor.rb/../asciidoctor/callouts"),Ne.$require("asciidoctor.rb/../asciidoctor/converter"),Ne.$require("asciidoctor.rb/../asciidoctor/document"),Ne.$require("asciidoctor.rb/../asciidoctor/inline"),Ne.$require("asciidoctor.rb/../asciidoctor/list"),Ne.$require("asciidoctor.rb/../asciidoctor/parser"),Ne.$require("asciidoctor.rb/../asciidoctor/path_resolver"),Ne.$require("asciidoctor.rb/../asciidoctor/reader"),Ne.$require("asciidoctor.rb/../asciidoctor/section"),Ne.$require("asciidoctor.rb/../asciidoctor/stylesheets"),Ne.$require("asciidoctor.rb/../asciidoctor/table"),Ne.$require("asciidoctor.rb/../asciidoctor/writer"),Ne.$require("asciidoctor.rb/../asciidoctor/load"),Ne.$require("asciidoctor.rb/../asciidoctor/convert"),Ne.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),Ne.$require("asciidoctor.rb/../asciidoctor/timings"),Ne.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const ae={};if(a){const re=a.$$smap;for(const me in re){const v=re[me];ae[me]=v===Opal.nil?void 0:v}const W=a.$$map;if(W){const me=[];for(const v in W){const G=W[v],Ue=G.value,K=G.key-1;me[K]=Ue===Opal.nil?void 0:Ue}me.length>0&&(ae.$positional=me)}}return ae},n=function(a){const ae={};if(a){const re=a.$$keys;for(const W in re){const me=re[W].value;ae[W.toString()]=me===Opal.nil?void 0:me}}return ae},i=function(a){if(a=t(a),a){const ae=a["$[]"]("converter");ae&&ae!==Opal.nil&&a["$[]="]("converter",s(ae));const re=a["$[]"]("attributes");re&&typeof re=="object"&&re.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(re)))}return a},s=function(a){const ae=function(qe){return Object.assign({},qe.basebackend?{basebackend:qe.basebackend}:{},qe.outfilesuffix?{outfilesuffix:qe.outfilesuffix}:{},qe.filetype?{filetype:qe.filetype}:{},qe.htmlsyntax?{htmlsyntax:qe.htmlsyntax}:{},qe.supports_templates?{supports_templates:qe.supports_templates}:{})},re=function(qe,T){qe.backend_traits?T.backend_traits=t(qe.backend_traits):qe.backendTraits?T.backend_traits=t(qe.backendTraits):(qe.basebackend||qe.outfilesuffix||qe.filetype||qe.htmlsyntax||qe.supports_templates)&&(T.backend_traits=t(ae(qe)))},W=function(qe,T){Ue(qe,T,"$handles?","handles",function(){return!0})},me=function(qe,T){Ue(qe,T,"$composed","composed")},v=function(qe,T){Ue(qe,T,"$==","==",function(Oe){return T===Oe})},G=function(qe,T){Ue(qe,T,"$send","send",function(Oe){const[,...Ne]=Array.from(arguments),Ke=T["$"+Oe];if(Ke)return Ke.apply(T,Ne);throw new Error(`undefined method \`${Oe}\` for \`${T.toString()}\``)})},Ue=function(qe,T,Oe,Ne,Ke){typeof qe[Oe]>"u"&&(typeof qe[Ne]=="function"?T[Oe]=qe[Ne]:Ke&&(T[Oe]=Ke))},K=function(qe){typeof qe["$respond_to?"]!="function"&&(qe["$respond_to?"]=function(T){return typeof this[T]=="function"})};if(typeof a=="function"){const qe=o(dt,a.constructor.name,{initialize:function(T,Oe){const Ne=this,Ke=new a(T,Oe);Object.assign(this,Ke),re(Ke,Ne);const De=Object.getOwnPropertyNames(a.prototype);for(let Pe=0;Pe<De.length;Pe++){const pt=De[Pe];pt!=="constructor"&&(Ne[pt]=Ke[pt])}typeof Ke.$convert>"u"&&typeof Ke.convert=="function"&&(Ne.$convert=Ke.convert),W(Ke,Ne),me(Ke,Ne),K(Ne),Ne.super(T,Oe)}});return qe.$extend(lt),qe}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),re(a,a),a.backend_traits){const qe=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const T of qe)a["$"+T]=lt.prototype["$"+T];a.$$meta=lt}return W(a,a),me(a,a),v(a,a),G(a,a),K(a),a}return a};function o(a,ae,re,W,me){const v=Opal.klass(Opal.Object,a,ae,function(){});let G,Ue,K;const qe={};for(const Ne in re)Object.prototype.hasOwnProperty.call(re,Ne)&&function(Ke){const De=re[Ke];if(Ke==="postConstruct")G=De;else if(Ke==="initialize")Ue=De;else if(Ke==="constructor")K=De;else{W&&Object.prototype.hasOwnProperty.call(W,Ke)&&(qe[Ke]=!0);let Pe;Opal.def(v,"$"+Ke,Pe=function(){let pt;me&&Object.prototype.hasOwnProperty.call(me,Ke)?pt=me[Ke](arguments):pt=arguments;const We=Pe.$$p;return We&&(pt[pt.length]=function(){return Opal.yield1(We)},pt.length+=1,Pe.$$p=null),De.apply(this,pt)})}}(Ne);let T;typeof K=="function"?T=function(){const Ne=Array.from(arguments);for(let De=0;De<Ne.length;De++)typeof Ne[De]=="object"&&"$$smap"in Ne[De]&&(Ne[De]=r(Ne[De]));Ne.unshift(null);const Ke=new(Function.prototype.bind.apply(K,Ne));Object.assign(this,Ke),typeof G=="function"&&G.bind(this)()}:typeof Ue=="function"?T=function(){const Ne=Array.from(arguments);for(let Ke=0;Ke<Ne.length;Ke++)typeof Ne[Ke]=="object"&&"$$smap"in Ne[Ke]&&(Ne[Ke]=r(Ne[Ke]));Ue.apply(this,Ne),typeof G=="function"&&G.bind(this)()}:T=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",T)),typeof G=="function"&&G.bind(this)()},Opal.def(v,"$initialize",T);let Oe;Opal.def(v,"super",Oe=function(Ne){if(typeof Ne=="function")Opal.send(this,Opal.find_super_dispatcher(this,Ne.name,Ne));else{const Ke=Array.from(arguments);for(let De=0;De<Ke.length;De++)typeof Ke[De]=="object"&&(Ke[De]=t(Ke[De]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",T),Ke)}});for(const Ne in re)Oe[Ne]=function(){const Ke=Array.from(arguments);for(let Pe=0;Pe<Ke.length;Pe++)typeof Ke[Pe]=="object"&&typeof Ke[Pe].constructor=="function"&&Ke[Pe].constructor.name==="Object"&&(Ke[Pe]=t(Ke[Pe]));const De=v.$$prototype;return Opal.send(De,Opal.find_super_dispatcher(De,Ne,De[`$${Ne}`]),Ke)};if(W)for(const Ne in W)Object.prototype.hasOwnProperty.call(W,Ne)&&!Object.prototype.hasOwnProperty.call(qe,Ne)&&function(Ke){const De=W[Ke];Opal.def(v,"$"+Ke,function(){return De.apply(this,arguments)})}(Ne);return v}const f=Opal.Asciidoctor.$$class;f.prototype.getCoreVersion=function(){return this.$$const.VERSION},f.prototype.getRuntime=function(){return{ioModule:Opal.const_get_qualified("::","JAVASCRIPT_IO_MODULE"),platform:Opal.const_get_qualified("::","JAVASCRIPT_PLATFORM"),engine:Opal.const_get_qualified("::","JAVASCRIPT_ENGINE"),framework:Opal.const_get_qualified("::","JAVASCRIPT_FRAMEWORK")}},f.prototype.convert=function(a,ae){typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8"));const re=ae&&ae.to_file;typeof re=="object"&&re.constructor.name==="Writable"&&typeof re.write=="function"&&(re["$respond_to?"]=v=>v==="write",re.$object_id=()=>"",re.$write=function(v){this.write(v)});const W=i(ae),me=this.$convert(a,W);return typeof re=="object"&&re.constructor.name==="Writable"&&typeof re.end=="function"&&re.end(),me===Opal.nil?"":me},f.prototype.convertFile=function(a,ae){return this.$convert_file(a,i(ae))},f.prototype.load=function(a,ae){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(ae))},f.prototype.loadFile=function(a,ae){return this.$load_file(a,i(ae))};const h=Opal.Asciidoctor.AbstractBlock;h.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},h.prototype.setContentModel=function(a){this.content_model=a},h.prototype.append=function(a){return this.$append(a),this},h.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},h.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},h.prototype.assignCaption=function(a,ae){a=typeof a>"u"?Opal.nil:a,ae=typeof ae>"u"?null:ae,this.$assign_caption(a,ae)},h.prototype.getCaptionedTitle=function(){return this.$captioned_title()},h.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},h.prototype.setStyle=function(a){this.style=a},h.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const ae=this.file;return ae===Opal.nil?void 0:ae},a.getDirectory=function(){const ae=this.dir;return ae===Opal.nil?void 0:ae},a.getPath=function(){const ae=this.path;return ae===Opal.nil?void 0:ae},a.getLineNumber=function(){const ae=this.lineno;return ae===Opal.nil?void 0:ae},a},h.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},h.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},h.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},h.prototype.getSubstitutions=function(){return this.subs},h.prototype.hasSubstitution=function(a){return this["$sub?"](a)},h.prototype.removeSubstitution=function(a){this.$remove_sub(a)},h.prototype.hasBlocks=function(){return this.blocks.length>0},h.prototype.getBlocks=function(){return this.blocks},h.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},h.prototype.convert=function(){return this.$convert()},h.prototype.findBy=function(a,ae){return typeof ae>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof ae=="function"?Opal.send(this,"find_by",[t(a)],ae):this.$find_by(t(a))},h.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},h.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},h.prototype.getSections=function(){return this.$sections()},h.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},h.prototype.setNumeral=function(a){this["$numeral="](a)},h.prototype.hasTitle=function(){return this["$title?"]()},h.prototype.getAlt=function(){return this.$alt()};const d=Opal.Asciidoctor.Section;d.create=function(a,ae,re,W){return W&&W.attributes&&(W.attributes=t(W.attributes)),this.$new(a,ae,re,t(W))},d.prototype.setLevel=function(a){this.level=a},d.prototype.getIndex=function(){return this.index},d.prototype.setIndex=function(a){this.index=a},d.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},d.prototype.setSectionName=function(a){this.sectname=a},d.prototype.getSectionNumeral=function(){return this.$sectnum()},d.prototype.getSectionNumber=d.prototype.getSectionNumeral,d.prototype.isSpecial=function(){return this.special},d.prototype.setSpecial=function(a){this.special=a},d.prototype.isNumbered=function(){return this.numbered},d.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},d.prototype.getName=function(){return this.getTitle()};const A=Opal.Asciidoctor.Block;A.create=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),this.$new(a,ae,t(re))},A.prototype.getSource=function(){return this.$source()},A.prototype.getSourceLines=function(){return this.lines};const z=Opal.Asciidoctor.AbstractNode;z.prototype.applySubstitutions=function(a,ae){return this.$apply_subs(a,ae)},z.prototype.resolveSubstitutions=function(a,ae,re,W){typeof ae>"u"&&(ae="block"),typeof re>"u"&&(re=Opal.nil),typeof W>"u"&&(W=Opal.nil);const me=this.$resolve_subs(a,ae,re,W);return me===Opal.nil?void 0:me},z.prototype.resolveBlockSubstitutions=function(a,ae,re){return this.resolveSubstitutions(a,"block",ae,re)},z.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},z.prototype.getNodeName=function(){return this.node_name},z.prototype.getAttributes=function(){return r(this.attributes)},z.prototype.getAttribute=function(a,ae,re){const W=this.$attr(a,ae,re);return W===Opal.nil?void 0:W},z.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},z.prototype.isAttribute=function(a,ae,re){return this["$attr?"](a,ae,re)},z.prototype.setAttribute=function(a,ae,re){return typeof re>"u"&&(re=!0),this.$set_attr(a,ae,re)},z.prototype.removeAttribute=function(a){const ae=this.$remove_attr(a);return ae===Opal.nil?void 0:ae},z.prototype.getDocument=function(){return this.document},z.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},z.prototype.isInline=function(){return this["$inline?"]()},z.prototype.isBlock=function(){return this["$block?"]()},z.prototype.isRole=function(a){return this["$role?"](a)},z.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},z.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},z.prototype.hasRole=function(a){return this["$has_role?"](a)},z.prototype.getRoles=function(){return this.$roles()},z.prototype.addRole=function(a){return this.$add_role(a)},z.prototype.removeRole=function(a){return this.$remove_role(a)},z.prototype.isReftext=function(){return this["$reftext?"]()},z.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},z.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},z.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},z.prototype.setId=function(a){this.id=a},z.prototype.isOption=function(a){return this["$option?"](a)},z.prototype.setOption=function(a){return this.$set_option(a)},z.prototype.getIconUri=function(a){return this.$icon_uri(a)},z.prototype.getMediaUri=function(a,ae){return this.$media_uri(a,ae)},z.prototype.getImageUri=function(a,ae){return this.$image_uri(a,ae)},z.prototype.getConverter=function(){return this.$converter()},z.prototype.readContents=function(a,ae){return this.$read_contents(a,t(ae))},z.prototype.readAsset=function(a,ae){const re=this.$read_asset(a,t(ae));return re===Opal.nil?void 0:re},z.prototype.normalizeWebPath=function(a,ae,re){return this.$normalize_web_path(a,ae,re)},z.prototype.normalizeSystemPath=function(a,ae,re,W){return this.$normalize_system_path(a,ae,re,t(W))},z.prototype.normalizeAssetPath=function(a,ae,re){return this.$normalize_asset_path(a,ae,re)};const L=Opal.Asciidoctor.Document;L.prototype.append=function(a){return this["$<<"](a),this},L.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,ae=a.__proto__;return ae&&(typeof ae["$highlight?"]=="function"&&(ae.handlesHighlighting=function(){const re=ae["$highlight?"]();return re===Opal.nil?!1:re}),typeof ae["$docinfo?"]=="function"&&(ae.hasDocinfo=ae["$docinfo?"]),typeof ae.$format=="function"&&(ae.format=function(re,W,me){return this.$format(re,W,t(me))}),typeof ae.$docinfo=="function"&&(ae.docinfo=function(re,W,me){return this.$docinfo(re,W,t(me))})),a},L.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},L.prototype.getImages=function(){return this.catalog.$$smap.images},L.prototype.getLinks=function(){return this.catalog.$$smap.links},L.prototype.hasFootnotes=function(){return this["$footnotes?"]()},L.prototype.getFootnotes=function(){return this.$footnotes()},L.prototype.getHeader=function(){return this.header},L.prototype.setAttribute=function(a,ae){return this.$set_attribute(a,ae)},L.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},L.prototype.convert=function(a){const ae=this.$convert(t(a));return ae===Opal.nil?"":ae},L.prototype.write=function(a,ae){return this.$write(a,ae)},L.prototype.getAuthor=function(){return this.$author()},L.prototype.getSource=function(){return this.$source()},L.prototype.getSourceLines=function(){return this.$source_lines()},L.prototype.isNested=function(){return this["$nested?"]()},L.prototype.isEmbedded=function(){return this["$embedded?"]()},L.prototype.hasExtensions=function(){return this["$extensions?"]()},L.prototype.getDoctype=function(){return this.doctype},L.prototype.getBackend=function(){return this.backend},L.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},L.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},L.prototype.setTitle=function(a){return this["$title="](a)},L.prototype.getDocumentTitle=function(a){const ae=this.$doctitle(t(a));return ae===Opal.nil?void 0:ae},L.prototype.getDoctitle=L.prototype.getDocumentTitle,L.prototype.getCatalog=function(){return r(this.catalog)},L.prototype.getReferences=L.prototype.getCatalog,L.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},L.prototype.getRevdate=function(){return this.getRevisionDate()},L.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},L.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},L.prototype.setHeaderAttribute=function(a,ae,re){return typeof re>"u"&&(re=!0),typeof ae>"u"&&(ae=""),this.$set_header_attribute(a,ae,re)},L.prototype.getAuthors=function(){return this.$authors()};const ne=L.Footnote;ne.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},ne.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},ne.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const ge=L.ImageReference;ge.prototype.getTarget=function(){return this.$$data.target},ge.prototype.getImagesDirectory=function(){const a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};const Q=L.Author;Q.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},Q.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},Q.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},Q.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},Q.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},Q.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},L.RevisionInfo=function(a,ae,re){this.date=a,this.number=ae,this.remark=re};const F=L.RevisionInfo;F.prototype.getDate=function(){return this.date},F.prototype.getNumber=function(){return this.number},F.prototype.getRemark=function(){return this.remark},F.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const Y=Opal.Asciidoctor.SafeMode;Y.getValueForName=function(a){return this.$value_for_name(a)},Y.getNameForValue=function(a){const ae=this.$name_for_value(a);return ae===Opal.nil?void 0:ae},Y.getNames=function(){return this.$names()};const pe=Opal.Asciidoctor.Callouts;pe.create=function(){return this.$new()},pe.prototype.register=function(a){return this.$register(a)},pe.prototype.readNextId=function(){return this.$read_next_id()},pe.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},pe.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let ae=0;ae<a.length;ae++){const re=a[ae];if(re&&re.length>0)for(let W=0;W<re.length;W++)typeof re[W]=="object"&&"$$smap"in re[W]&&(re[W]=r(re[W]))}return a},pe.prototype.getListIndex=function(){return this.list_index},pe.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let ae=0;ae<a.length;ae++)typeof a[ae]=="object"&&"$$smap"in a[ae]&&(a[ae]=r(a[ae]));return a},pe.prototype.nextList=function(){return this.$nextList()},pe.prototype.rewind=function(){return this.$rewind()},L.prototype.getRevisionInfo=function(){return new L.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},L.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},L.prototype.getNotitle=function(){return this.$notitle()},L.prototype.getNoheader=function(){return this.$noheader()},L.prototype.getNofooter=function(){return this.$nofooter()},L.prototype.hasHeader=function(){return this["$header?"]()},L.prototype.playbackAttributes=function(a){if(a=t(a),a){const ae=a["$[]"]("attribute_entries");if(ae&&Array.isArray(ae)){const re=[];for(let W=0;W<ae.length;W++){const me=ae[W];me&&typeof me=="object"&&me.constructor.name==="Object"&&(me.$name=function(){return this.name},me.$value=function(){return this.value},me.$negate=function(){return this.negate}),re.push(me)}a["$[]="]("attribute_entries",re)}}this.$playback_attributes(a)},L.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},L.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},L.prototype.restoreAttributes=function(){return this.$restore_attributes()},L.prototype.parse=function(a){return this.$parse(a)},L.prototype.getDocinfo=function(a,ae){return this.$docinfo(a,ae)},L.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},L.prototype.incrementAndStoreCounter=function(a,ae){return this.$increment_and_store_counter(a,ae)},L.prototype.counterIncrement=L.prototype.incrementAndStoreCounter,L.prototype.counter=function(a,ae){return this.$counter(a,ae)},L.prototype.getSafe=function(){return this.safe},L.prototype.getCompatMode=function(){return this.compat_mode},L.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},L.prototype.setSourcemap=function(a){this.sourcemap=a},L.prototype.getCounters=function(){return r(this.counters)},L.prototype.getCallouts=function(){return this.$callouts()},L.prototype.getBaseDir=function(){return this.base_dir},L.prototype.getOptions=function(){return r(this.options)},L.prototype.getOutfilesuffix=function(){return this.outfilesuffix},L.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},L.prototype.getReader=function(){return this.reader},L.prototype.getConverter=function(){return this.converter},L.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const se=L.Title;se.prototype.getMain=function(){return this.main},se.prototype.getCombined=function(){return this.combined},se.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},se.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},se.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const ve=Opal.Asciidoctor.Inline;ve.create=function(a,ae,re,W){return this.$new(a,ae,re,i(W))},ve.prototype.convert=function(){return this.$convert()},ve.prototype.getText=function(){const a=this.$text();return a===Opal.nil?void 0:a},ve.prototype.getType=function(){return this.$type()},ve.prototype.getTarget=function(){const a=this.$target();return a===Opal.nil?void 0:a},ve.prototype.getAlt=function(){return this.$alt()};const Z=Opal.Asciidoctor.List;Z.prototype.hasItems=function(){return this["$items?"]()},Z.prototype.getItems=function(){return this.blocks};const be=Opal.Asciidoctor.ListItem;be.prototype.getText=function(){return this.$text()},be.prototype.setText=function(a){return this["$text="](a)},be.prototype.hasText=function(){return this["$text?"]()},be.prototype.getMarker=function(){return this.marker},be.prototype.setMarker=function(a){this.marker=a},be.prototype.getList=function(){return this.$list()},be.prototype.getParent=be.prototype.getList;const ue=Opal.Asciidoctor.Reader;ue.prototype.pushInclude=function(a,ae,re,W,me){return this.$push_include(a,ae,re,W,t(me))},ue.prototype.getCursor=function(){return this.$cursor()},ue.prototype.getLines=function(){return this.$lines()},ue.prototype.getString=function(){return this.$string()},ue.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},ue.prototype.isEmpty=function(){return this["$empty?"]()},ue.prototype.peekLine=function(a){a=a||!1;const ae=this.$peek_line(a);return ae===Opal.nil?void 0:ae},ue.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},ue.prototype.readLines=function(){return this.$read_lines()},ue.prototype.read=function(){return this.$read()},ue.prototype.advance=function(){return this.$advance()};const Ee=Opal.Asciidoctor.Reader.Cursor;Ee.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},Ee.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},Ee.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},Ee.prototype.getLineNumber=function(){return this.lineno};function O(a,ae){const re=Opal.const_get_qualified(Opal.Logger,"Formatter");return o(re,a,ae,{},{call:function(W){for(let me=0;me<W.length;me++)typeof W[me]=="object"&&"$$smap"in W[me]&&(W[me]=r(W[me]));return W}})}function Ce(a,ae){const re=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return o(re,a,ae,{},{add:function(W){if(W.length>=2&&typeof W[2]=="object"&&"$$smap"in W[2]){const me=W[2],v=r(me);v.getText=function(){return this.text},v.getSourceLocation=function(){return this.source_location},v.$inspect=function(){const G=this.getSourceLocation();return G?G.getPath()+": line "+G.getLineNumber()+": "+this.getText():this.getText()},W[2]=v}return W.length>=1&&(W[1]=W[1]===Opal.nil?void 0:W[1]),W}})}const $e=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=$e,$e.getLogger=function(){return this.$logger()},$e.setLogger=function(a){this["$logger="](a)},$e.newLogger=function(a,ae){return Ce(a,ae).$new()},$e.newFormatter=function(a,ae){return O(a,ae).$new()};const w=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=w,w.get=function(a){return w.$constants()[a]};const Ae=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Ae,Ae.prototype.call=function(a,ae,re,W){return this.$call(w.get(a),ae,re,W)};const j=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=j,j.create=function(){return this.$new()},j.prototype.getMessages=function(){const a=this.messages,ae=[];for(let re=0;re<a.length;re++){const W=a[re],me=r(W);typeof me.message=="string"?me.getText=function(){return this.message}:(me.message=r(me.message),me.getText=function(){return this.message.text}),me.getSeverity=function(){return this.severity.toString()},me.getSourceLocation=function(){return this.message.source_location},ae.push(me)}return ae};const de=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=de,de.getLogger=function(){return $e.$logger()},de.createLogMessage=function(a,ae){return de.prototype.$message_with_context(a,t(ae))},ue.prototype.getLogger=de.getLogger,ue.prototype.createLogMessage=de.createLogMessage,z.prototype.getLogger=de.getLogger,z.prototype.createLogMessage=de.createLogMessage;const V=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=V,V.prototype.getMaxSeverity=function(){const a=this.max_severity;return a===Opal.nil?void 0:a},V.prototype.getFormatter=function(){return this.formatter},V.prototype.setFormatter=function(a){this.formatter=a},V.prototype.getLevel=function(){return this.level},V.prototype.setLevel=function(a){this.level=a},V.prototype.getProgramName=function(){return this.progname},V.prototype.setProgramName=function(a){this.progname=a};const Fe=Opal.const_get_qualified("::","Logger"),ce=function(a,ae,re){a["$"+ae](re)};Fe.prototype.add=function(a,ae,re){const W=typeof a=="string"?w[a.toUpperCase()]:a;this.$add(W,ae,re)},Fe.prototype.log=Fe.prototype.add,Fe.prototype.debug=function(a){ce(this,"debug",a)},Fe.prototype.info=function(a){ce(this,"info",a)},Fe.prototype.warn=function(a){ce(this,"warn",a)},Fe.prototype.error=function(a){ce(this,"error",a)},Fe.prototype.fatal=function(a){ce(this,"fatal",a)},Fe.prototype.isDebugEnabled=function(){return this["$debug?"]()},Fe.prototype.isInfoEnabled=function(){return this["$info?"]()},Fe.prototype.isWarnEnabled=function(){return this["$warn?"]()},Fe.prototype.isErrorEnabled=function(){return this["$error?"]()},Fe.prototype.isFatalEnabled=function(){return this["$fatal?"]()};const U=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=U,U.create=function(){return this.$new()},U.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;const x=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=x,x.create=function(){return this.$new()},x.prototype.printReport=function(a,ae){let re;if(a)if(typeof a.$add=="function")re=function(W){a.$add(1,W)};else if(typeof a.log=="function")re=a.log;else if(typeof a.write=="function")re=function(W){a.write(W,"utf-8")};else throw new Error("The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)");else re=function(W){Opal.gvars.stdout.$write(W)};ae&&re("Input file: "+ae),re(" Time to read and parse source: "+this.$read_parse().toFixed(2)),re(" Time to convert document: "+this.$convert().toFixed(2)),re(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};const $=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=$,$.register=function(a,ae){const re=typeof a=="string"?a:a[0];if(typeof ae=="function"){const v=ae.prototype,G=Object.getOwnPropertyNames(v);ae={};for(const Ue in G){const K=G[Ue];ae[K]=v[K]}}const W=o(l,re,ae,{},{format:function(me){return me.length>=2&&typeof me[2]=="object"&&"$$smap"in me[2]&&(me[2]=r(me[2])),me.length>=1&&(me[1]=me[1]===Opal.nil?void 0:me[1]),me},highlight:function(me){if(me.length>=3&&typeof me[3]=="object"&&"$$smap"in me[3]){let v=me[3];v=r(v);for(const G in v){const Ue=v[G];if(G==="callouts"){const K=n(Ue);for(const qe in K){const T=K[qe];for(let Oe=0;Oe<T.length;Oe++){const Ne=T[Oe];for(let Ke=0;Ke<Ne.length;Ke++)Ne[Ke]=Ne[Ke]===Opal.nil?void 0:Ne[Ke]}}v[G]=K}else v[G]=Ue===Opal.nil?void 0:Ue}me[3]=v}return me.length>=2&&(me[2]=me[2]===Opal.nil?void 0:me[2]),me}});for(const me in ae)Object.prototype.hasOwnProperty.call(ae,me)&&function(v){const G=ae[v];v==="handlesHighlighting"?Opal.def(W,"$highlight?",function(){return G.call()}):v==="hasDocinfo"&&Opal.def(W,"$docinfo?",function(Ue){return G.apply(this,[Ue])})}(me);return Opal.def(W,"$name",function(){return re}),$.$register(W,a),W},$.get=function(a){const ae=$.$for(a);return ae===Opal.nil?void 0:ae},$.for=$.get;const l=Opal.const_get_qualified($,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=l,l.prototype.registerFor=function(a){$.$register(this,a)};const c=Opal.Asciidoctor.Table;c.create=function(a,ae){return this.$new(a,t(ae))},c.prototype.getCaption=function(){return this.caption},c.prototype.getRows=function(){return this.rows},c.prototype.getColumns=function(){return this.columns},c.prototype.getHeadRows=function(){return this.rows.head},c.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},c.prototype.getBodyRows=function(){return this.rows.body},c.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},c.prototype.getFootRows=function(){return this.rows.foot},c.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},c.prototype.hasHeaderOption=function(){return this.has_header_option},c.prototype.hasFooterOption=function(){return this.isOption("footer")},c.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},c.prototype.getRowCount=function(){return this.getAttribute("rowcount")},c.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},c.prototype.getColumnCount=function(){return this.getAttribute("colcount")},c.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const p=Opal.Asciidoctor.Table.Rows;p.create=function(a,ae,re){return this.$new(a,ae,re)},p.prototype.getHead=function(){return this.head},p.prototype.getFoot=function(){return this.foot},p.prototype.getBody=function(){return this.body},p.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const _=Opal.Asciidoctor.Table.Column;_.create=function(a,ae,re){return this.$new(a,ae,t(re))},_.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},_.prototype.getWidth=function(){return this.getAttribute("width")},_.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},_.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},_.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a};const S=Opal.Asciidoctor.Table.Cell;S.create=function(a,ae,re,W){return this.$new(a,ae,t(re),t(W))},S.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},S.prototype.setColumnSpan=function(a){return this["$colspan="](a)},S.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},S.prototype.setRowSpan=function(a){return this["$rowspan="](a)},S.prototype.getContent=function(){return this.$content()},S.prototype.getText=function(){return this.$text()},S.prototype.getSource=function(){return this.$source()},S.prototype.getLines=function(){return this.$lines()},S.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},S.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},S.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},S.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},S.prototype.getWidth=function(){return this.getAttribute("width")},S.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},S.prototype.getInnerDocument=function(){const a=this.inner_document;return a===Opal.nil?void 0:a};const C=Opal.Asciidoctor.Converter.TemplateConverter;if(C){Opal.Asciidoctor.TemplateConverter=C,C.create=function(ae,re,W){W&&W.template_cache&&(W.template_cache=t(W.template_cache)),this.$new(ae,re,t(W))},C.getCache=function(){const ae=r(this.caches);if(ae){if(ae.scans){ae.scans=r(ae.scans);for(const re in ae.scans)ae.scans[re]=r(ae.scans[re])}ae.templates&&(ae.templates=r(ae.templates))}return ae},C.clearCache=function(){this.$clear_caches()},C.prototype.convert=function(ae,re,W){return this.$convert(ae,re,t(W))},C.prototype.handles=function(ae){return this["$handles?"](ae)},C.prototype.getContentOnly=function(ae){return this.$content_only(ae)},C.prototype.skip=function(ae){this.$skip(ae)},C.prototype.getTemplates=function(){return r(this.$templates())},C.prototype.register=function(ae,re){return this.$register(ae,re)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(ae,re){if(typeof ae=="string")this.registry[ae]=re;else for(let W=0;W<ae.length;W++){const me=ae[W];this.registry[me]=re}}}const ee=Opal.Asciidoctor.Converter.CompositeConverter;ee&&(Opal.Asciidoctor.CompositeConverter=ee,ee.prototype.convert=function(a,ae,re){return this.$convert(a,ae,t(re))},ee.prototype.getContentOnly=function(a){return this.$content_only(a)},ee.prototype.skip=function(a){this.$skip(a)},ee.prototype.getConverters=function(){return this.converters},ee.prototype.getConverter=function(a){const ae=this.$converter_for(a);return ae===Opal.nil?void 0:ae},ee.prototype.findConverter=function(a){return this.$find_converter(a)});const Le=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=Le,Le.prototype.convert=function(a,ae,re){return this.$convert(a,ae,t(re))},Le.create=function(a,ae){return this.$create(a,t(ae))};const nt=Opal.Asciidoctor.Converter.Factory,dt=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=nt;const lt=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=lt,nt.register=function(a,ae){const re=[s(a)].concat(ae);return Le.$register.apply(Le,re)},nt.getDefault=function(a){return this.$default(a)},nt.prototype.create=function(a,ae){return this.$create(a,t(ae))},nt.getRegistry=function(){return r(Le.$registry())},nt.for=function(a){const ae=Le.$for(a);return ae===Opal.nil?void 0:ae},nt.unregisterAll=function(){const a=Le.DefaultFactory.$$cvars["@@registry"];Le.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const xt=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=xt,xt.create=function(){return this.$new()},xt.prototype.convert=function(a,ae,re){return this.$convert(a,ae,re)};const bt=function(a){return a.$$arity=a.length,a},yt=function(a,ae,re,W){return typeof re=="object"||re.$$is_class?a["$"+ae](re,W):Opal.send(a,ae,W&&[W],bt(re))},gt=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=gt,gt.create=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"create",null,bt(a)):typeof ae=="function"?Opal.send(this,"create",[a],bt(ae)):this.$create()},gt.register=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"register",null,bt(a)):Opal.send(this,"register",[a],bt(ae))},gt.getGroups=function(){return r(this.$groups())},gt.unregisterAll=function(){this.$unregister_all()},gt.unregister=function(){const a=Array.prototype.concat.apply([],arguments),ae=this.$groups(),re={};let W=0;const me=ae.$$keys;for(;W<me.length;W++){const v=me[W];re[v.toString()]=v}for(let v=0;v<a.length;v++){const G=a[v];G in re&&Opal.hash_delete(ae,re[G])}};const wt=gt.Registry;wt.prototype.getGroups=gt.getGroups,wt.prototype.unregisterAll=function(){this.groups=Opal.hash()},wt.prototype.unregister=gt.unregister,wt.prototype.prefer=function(a,ae){return arguments.length===1&&(ae=a,a=null),typeof ae=="object"||ae.$$is_class?this.$prefer(a,ae):Opal.send(this,"prefer",a&&[a],bt(ae))},wt.prototype.block=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"block",ae,a)},wt.prototype.inlineMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"inline_macro",ae,a)},wt.prototype.includeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"include_processor",ae,a)},wt.prototype.blockMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"block_macro",ae,a)},wt.prototype.treeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"tree_processor",ae,a)},wt.prototype.postprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"postprocessor",ae,a)},wt.prototype.preprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"preprocessor",ae,a)},wt.prototype.docinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),yt(this,"docinfo_processor",ae,a)},wt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},wt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},wt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},wt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},wt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},wt.prototype.hasBlocks=function(){return this["$blocks?"]()},wt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},wt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},wt.prototype.getPreprocessors=function(){return this.$preprocessors()},wt.prototype.getTreeProcessors=function(){return this.$tree_processors()},wt.prototype.getIncludeProcessors=function(){return this.$include_processors()},wt.prototype.getPostprocessors=function(){return this.$postprocessors()},wt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},wt.prototype.getBlocks=function(){return this.block_extensions.$values()},wt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},wt.prototype.getInlineMacros=function(){return this.$inline_macros()},wt.prototype.getInlineMacroFor=function(a){const ae=this["$registered_for_inline_macro?"](a);return ae===!1?void 0:ae},wt.prototype.getBlockFor=function(a,ae){if(typeof ae>"u"){const W=this.$find_block_extension(a);return W===Opal.nil?void 0:W}const re=this["$registered_for_block?"](a,ae);return re===!1?void 0:re},wt.prototype.getBlockMacroFor=function(a){const ae=this["$registered_for_block_macro?"](a);return ae===!1?void 0:ae};const At=gt.Processor;At.prototype.prepend=function(){this.$option("position",">>")},At.prototype.process=function(a){const ae={apply:function(W,me,v){for(let G=0;G<v.length;G++)typeof v[G]=="object"&&"$$smap"in v[G]&&(v[G]=r(v[G]));return W.apply(me,v)}},re=new Proxy(a,ae);return Opal.send(this,"process",null,bt(re))},At.prototype.named=function(a){return this.$named(a)},At.prototype.createBlock=function(a,ae,re,W,me){return this.$create_block(a,ae,re,t(W),t(me))},At.prototype.createList=function(a,ae,re){return this.$create_list(a,ae,t(re))},At.prototype.createListItem=function(a,ae){return this.$create_list_item(a,ae)},At.prototype.createImageBlock=function(a,ae,re){return this.$create_image_block(a,t(ae),t(re))},At.prototype.createParagraph=function(a,ae,re,W){return this.$create_paragraph(a,ae,t(re),t(W))},At.prototype.createOpenBlock=function(a,ae,re,W){return this.$create_open_block(a,ae,t(re),t(W))},At.prototype.createExampleBlock=function(a,ae,re,W){return this.$create_example_block(a,ae,t(re),t(W))},At.prototype.createPassBlock=function(a,ae,re,W){return this.$create_pass_block(a,ae,t(re),t(W))},At.prototype.createListingBlock=function(a,ae,re,W){return this.$create_listing_block(a,ae,t(re),t(W))},At.prototype.createLiteralBlock=function(a,ae,re,W){return this.$create_literal_block(a,ae,t(re),t(W))},At.prototype.createAnchor=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),this.$create_anchor(a,ae,t(re))},At.prototype.createInlinePass=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),this.$create_inline_pass(a,ae,t(re))},At.prototype.createInline=function(a,ae,re,W){return W&&W.attributes&&(W.attributes=t(W.attributes)),this.$create_inline(a,ae,re,t(W))},At.prototype.parseContent=function(a,ae,re){return this.$parse_content(a,ae,t(re))},At.prototype.parseAttributes=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),r(this.$parse_attributes(a,ae,t(re)))},At.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},At.prototype.resolveAttributes=function(a){return typeof a=="object"&&!Array.isArray(a)?this.$resolves_attributes(t(a)):arguments.length>1?this.$resolves_attributes(Array.prototype.slice.call(arguments)):typeof a>"u"?this.$resolves_attributes(Opal.nil):this.$resolves_attributes(a)},At.prototype.resolvesAttributes=At.prototype.resolveAttributes,At.prototype.getConfig=function(){return r(this.config)},At.prototype.option=function(a,ae){this.$option(a,ae)};const et=gt.BlockProcessor;et.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},et.prototype.onContext=function(a){return this.$on_context(a)},et.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},et.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},et.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const ze=gt.BlockMacroProcessor;ze.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},ze.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},ze.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const je=gt.InlineMacroProcessor;je.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},je.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},je.prototype.parseContentAs=function(a){this.$parse_content_as(a)},je.prototype.matchFormat=function(a){this.$match_format(a)},je.prototype.match=function(a){this.$match(a)};const Ge=gt.IncludeProcessor;Ge.prototype.handles=function(a){return Opal.send(this,"handles?",null,bt(a))},Ge.prototype.prefer=function(){this.$prefer()};const y=gt.TreeProcessor;y.prototype.prefer=function(){this.$prefer()};const I=gt.Postprocessor;I.prototype.prefer=function(){this.$prefer()};const xe=gt.Preprocessor;xe.prototype.prefer=function(){this.$prefer()};const Me=gt.DocinfoProcessor;Me.prototype.prefer=function(){this.$prefer()},Me.prototype.atLocation=function(a){this.$at_location(a)};function Qe(a,ae,re){const W=Opal.const_get_qualified(gt,a);return o(W,ae,re,{"handles?":function(){return!0}})}gt.createPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("Postprocessor",a,ae)},gt.newPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPostprocessor(a,ae).$new()},gt.createPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("Preprocessor",a,ae)},gt.newPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPreprocessor(a,ae).$new()},gt.createTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("TreeProcessor",a,ae)},gt.newTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createTreeProcessor(a,ae).$new()},gt.createIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("IncludeProcessor",a,ae)},gt.newIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createIncludeProcessor(a,ae).$new()},gt.createDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("DocinfoProcessor",a,ae)},gt.newDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createDocinfoProcessor(a,ae).$new()},gt.createBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("BlockProcessor",a,ae)},gt.newBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockProcessor(a,ae).$new()},gt.createInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("InlineMacroProcessor",a,ae)},gt.newInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createInlineMacroProcessor(a,ae).$new()},gt.createBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Qe("BlockMacroProcessor",a,ae)},gt.newBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockMacroProcessor(a,ae).$new()};var $t="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return $t},Opal.Asciidoctor}const $x=cx();function fx(e){return e.trim().replace(/^\\[([$]/,"").replace(/\\[)\]$]$/,"")}function dx(e){return e=e.replace(/(<div class="stemblock">\s*<div class="content">)([\s\S]*?)(<\/div>\s*<\/div>)/g,(t,r,n,i)=>r+$i(fx(n),!0)+i),e.replace(/\\\(([\s\S]+?)\\\)/g,(t,r)=>$i(r,!1)).replace(/\\\[([\s\S]+?)\\\]/g,(t,r)=>$i(r,!0)).replace(/\\\$([\s\S]+?)\\\$/g,(t,r)=>$i(r,!1))}function ly(e,t){const r=wg(dx($x.convert(String(e??""),{standalone:!1})));return Dv(r,t)}function hx({node:e,onNavigate:t}){return cc(e),ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx(Pv,{html:ly(ys(e.value),e.path),onNavigate:t})]})}function px({chunk:e,onNavigate:t}){return ye.jsx("div",{className:"markup",onClick:Ud(t),dangerouslySetInnerHTML:{__html:ly(e.value,e.documentPath)}})}function oy(e,t,r='"'){const n=[];let i=[],s="",o=!1,f=0;const h=()=>{i.push(s),s=""},d=()=>{h(),n.push(i),i=[]};for(;f<e.length;){const A=e[f];if(o){A===r?e[f+1]===r?(s+=r,f+=2):(o=!1,f++):(s+=A,f++);continue}A===r?(o=!0,f++):A===t?(h(),f++):A===`
615
+ `||A==="\r"?(A==="\r"&&e[f+1]===`
616
+ `&&f++,d(),f++):(s+=A,f++)}return(s!==""||i.length)&&d(),n}function _x(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function uy(e,t){if(t==="text/tab-separated-values")return" ";const r=e.split(/\r?\n/,1)[0]??"";let n=",",i=0;for(const s of[",",";"," ","|"]){const o=r.split(s).length-1;o>i&&(i=o,n=s)}return n}const mx=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],s0=()=>new URLSearchParams(window.location.search);function cy(e){const t=e.get("header");return!(t==="false"||t==="0")}function A_(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function $y({rows:e,header:t}){if(!e.length)return ye.jsx("p",{className:"csv-empty",children:"(empty)"});const r=e.reduce((s,o)=>Math.max(s,o.length),0),n=t?e[0]:null,i=t?e.slice(1):e;return ye.jsx("div",{className:"csv-scroll",children:ye.jsxs("table",{className:"csv-table",children:[n&&ye.jsx("thead",{children:ye.jsx("tr",{children:A_(n,r).map((s,o)=>ye.jsx("th",{children:s},o))})}),ye.jsx("tbody",{children:i.map((s,o)=>ye.jsx("tr",{children:A_(s,r).map((f,h)=>ye.jsx("td",{children:f},h))},o))})]})})}function gx({node:e}){const t=s0(),r=cy(t),n=String(ys(e.value)??""),i=_x(t.get("sep"))??uy(n,e.format??null),s=oy(n,i);return ye.jsxs("div",{className:"csv",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx($y,{rows:s,header:r})]})}function vx({rerender:e}){const t=s0(),r=t.get("sep")??"",n=cy(t),i=(s,o)=>{const f=s0();o?f.set(s,o):f.delete(s);const h=f.toString();window.history.replaceState({},"",window.location.pathname+(h?"?"+h:"")),e()};return ye.jsxs("div",{className:"csv-toolbar",children:[ye.jsxs("label",{children:["separator"," ",ye.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:mx.map(s=>ye.jsx("option",{value:s.value,children:s.label},s.value))})]}),ye.jsxs("label",{children:[ye.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function yx({chunk:e}){const t=String(e.value??""),r=oy(t,uy(t,e.format??null));return ye.jsx("div",{className:"csv",children:ye.jsx($y,{rows:r,header:!0})})}const fy=()=>new URLSearchParams(window.location.search),dy=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],Od="utf-8",bx=e=>dy.some(t=>t.value===e);function hy(){const e=fy().get("enc")??"";return bx(e)?e:Od}function py(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function _y(e){const[t,r]=ft.useState(null),[n,i]=ft.useState(null);return ft.useEffect(()=>{let s=!1;if(r(null),i(null),e!=null)return fetch(vs(e)).then(o=>o.arrayBuffer()).then(o=>!s&&r(new Uint8Array(o))).catch(o=>!s&&i(String(o.message||o))),()=>{s=!0}},[e]),{bytes:t,error:n}}function xx({node:e}){const t=dg(e.concrete),r=t?null:ys(e.value),n=typeof r=="string"?r:t?null:"",{bytes:i,error:s}=_y(t?e.path:null),o=hy(),f=ft.useMemo(()=>n??(i?py(i,o):null),[n,i,o]);return s?ye.jsxs("div",{className:"error",children:["text: ",s]}):f==null?ye.jsx("div",{className:"loading",children:"reading…"}):ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx("pre",{className:"plaintext",children:f})]})}function wx({chunk:e}){const{bytes:t,error:r}=_y(e.path),n=ft.useMemo(()=>t?py(t,Od):null,[t]);return r?ye.jsxs("div",{className:"error",children:["text: ",r]}):n==null?ye.jsx("div",{className:"loading",children:"reading…"}):ye.jsx("pre",{className:"plaintext",children:n})}function kx({rerender:e}){const t=hy(),r=n=>{const i=fy();n&&n!==Od?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return ye.jsxs("label",{className:"enc-control",children:["encoding"," ",ye.jsx("select",{value:t,onChange:n=>r(n.target.value),children:dy.map(n=>ye.jsx("option",{value:n.value,children:n.label},n.value))})]})}const Sx={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Ex=e=>e<128?String.fromCharCode(e):Sx[e]??String.fromCharCode(e),Ax=new Set(["fonttbl","colortbl","stylesheet","info","pict","header","footer","footnote","xmlnstbl","themedata","colorschememapping","datastore","latentstyles","listtable","listoverridetable","rsidtbl","generator","operator","creatim","revtim","printim","buptim","author","title","subject","keywords","comment","company","manager","category","doccomm","hlinkbase","filetbl","mmathPr","fldinst","object","nonshppict"]);function Cx(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Tx(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,o=1/0;const f=e.length;let h=0;const d=()=>s<o,A=ge=>{if(!ge||!d())return;const Q=r[r.length-1];Q&&Q.b===n.b&&Q.i===n.i&&Q.u===n.u?Q.text+=ge:r.push({text:ge,b:n.b,i:n.i,u:n.u})},z=()=>{d()&&(t.push(r),r=[])},L=(ge,Q)=>{switch(ge){case"b":n.b=Q!==0;break;case"i":n.i=Q!==0;break;case"ul":n.u=Q!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=Q??1;break;case"par":case"row":z();break;case"line":case"sect":A(`
617
+ `);break;case"tab":case"cell":A(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:Ax.has(ge)&&(o=Math.min(o,s));break}};for(;h<f;){const ge=e[h];if(ge==="{")i.push({...n}),s++,h++;else if(ge==="}")s--,s<o&&(o=1/0),n=i.pop()??n,h++;else if(ge==="\\"){const Q=e[h+1];if(Q==="\\"||Q==="{"||Q==="}")A(Q),h+=2;else if(Q==="*")o=Math.min(o,s),h+=2;else if(Q==="'"){const F=parseInt(e.substr(h+2,2),16);isNaN(F)||A(Ex(F)),h+=4}else if(Q==="~")A(" "),h+=2;else if(Q==="-")h+=2;else if(/[a-zA-Z]/.test(Q??"")){let F=h+1;for(;F<f&&/[a-zA-Z]/.test(e[F]);)F++;const Y=e.slice(h+1,F);let pe="";for(e[F]==="-"&&(pe+="-",F++);F<f&&/[0-9]/.test(e[F]);)pe+=e[F++];const se=pe===""?null:parseInt(pe,10);if(e[F]===" "&&F++,h=F,Y==="u"&&se!==null){d()&&A(String.fromCodePoint(se<0?se+65536:se));for(let ve=n.uc;ve>0&&h<f;ve--)if(e[h]==="\\"&&e[h+1]==="'")h+=4;else if(e[h]==="\\")h+=2;else{if(e[h]==="{"||e[h]==="}")break;h++}}else L(Y,se)}else h++}else ge==="\r"||ge===`
618
+ `||A(ge),h++}z();const ne=ge=>{let Q=Cx(ge.text).replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\n/g,"<br>");return ge.u&&(Q=`<u>${Q}</u>`),ge.i&&(Q=`<em>${Q}</em>`),ge.b&&(Q=`<strong>${Q}</strong>`),Q};return t.filter(ge=>ge.some(Q=>Q.text.trim()||Q.text.includes(`
619
+ `))).map(ge=>`<p>${ge.map(ne).join("")}</p>`).join(`
620
+ `)}function my(e){const[t,r]=ft.useState(null),[n,i]=ft.useState(null);return ft.useEffect(()=>{let s=!1;return r(null),i(null),fetch(vs(e)).then(o=>o.arrayBuffer()).then(o=>{if(s)return;const f=new TextDecoder("windows-1252").decode(new Uint8Array(o));r(Tx(f))}).catch(o=>!s&&i(String(o.message||o))),()=>{s=!0}},[e]),{html:t,error:n}}function Rx({node:e}){const{html:t,error:r}=my(e.path);return r?ye.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?ye.jsx("div",{className:"loading",children:"reading RTF…"}):ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function zx({chunk:e}){const{html:t,error:r}=my(e.path);return r?ye.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?ye.jsx("div",{className:"loading",children:"reading RTF…"}):ye.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function gy({path:e}){return ye.jsxs("div",{className:"office-fallback",children:[ye.jsxs("p",{children:["Legacy ",ye.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",ye.jsx("code",{children:".docx"})," files render in full."]}),ye.jsxs("p",{children:[ye.jsx("a",{className:"descend",href:vs(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function Nx({node:e}){return ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx(gy,{path:e.path})]})}function Ix({chunk:e}){return ye.jsx(gy,{path:e.path})}var Yr=Uint8Array,Sn=Uint16Array,eh=Int32Array,Tc=new Yr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rc=new Yr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a0=new Yr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vy=function(e,t){for(var r=new Sn(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new eh(r[30]),n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)i[s]=s-r[n]<<5|n;return{b:r,r:i}},yy=vy(Tc,2),by=yy.b,l0=yy.r;by[28]=258,l0[258]=28;var xy=vy(Rc,0),qx=xy.b,C_=xy.r,o0=new Sn(32768);for(var $r=0;$r<32768;++$r){var Vi=($r&43690)>>1|($r&21845)<<1;Vi=(Vi&52428)>>2|(Vi&13107)<<2,Vi=(Vi&61680)>>4|(Vi&3855)<<4,o0[$r]=((Vi&65280)>>8|(Vi&255)<<8)>>1}var hi=function(e,t,r){for(var n=e.length,i=0,s=new Sn(t);i<n;++i)e[i]&&++s[e[i]-1];var o=new Sn(t);for(i=1;i<t;++i)o[i]=o[i-1]+s[i-1]<<1;var f;if(r){f=new Sn(1<<t);var h=15-t;for(i=0;i<n;++i)if(e[i])for(var d=i<<4|e[i],A=t-e[i],z=o[e[i]-1]++<<A,L=z|(1<<A)-1;z<=L;++z)f[o0[z]>>h]=d}else for(f=new Sn(n),i=0;i<n;++i)e[i]&&(f[i]=o0[o[e[i]-1]++]>>15-e[i]);return f},ps=new Yr(288);for(var $r=0;$r<144;++$r)ps[$r]=8;for(var $r=144;$r<256;++$r)ps[$r]=9;for(var $r=256;$r<280;++$r)ps[$r]=7;for(var $r=280;$r<288;++$r)ps[$r]=8;var Zl=new Yr(32);for(var $r=0;$r<32;++$r)Zl[$r]=5;var Mx=hi(ps,9,0),Dx=hi(ps,9,1),Lx=hi(Zl,5,0),Fx=hi(Zl,5,1),k$=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Xn=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},S$=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},th=function(e){return(e+7)/8|0},zc=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Yr(e.subarray(t,r))},jx=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],wn=function(e,t,r){var n=new Error(t||jx[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,wn),!r)throw n;return n},Bx=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new Yr(0);var o=!r,f=o||t.i!=2,h=t.i;o&&(r=new Yr(i*3));var d=function(dt){var lt=r.length;if(dt>lt){var xt=new Yr(Math.max(lt*2,dt));xt.set(r),r=xt}},A=t.f||0,z=t.p||0,L=t.b||0,ne=t.l,ge=t.d,Q=t.m,F=t.n,Y=i*8;do{if(!ne){A=Xn(e,z,1);var pe=Xn(e,z+1,3);if(z+=3,pe)if(pe==1)ne=Dx,ge=Fx,Q=9,F=5;else if(pe==2){var be=Xn(e,z,31)+257,ue=Xn(e,z+10,15)+4,Ee=be+Xn(e,z+5,31)+1;z+=14;for(var O=new Yr(Ee),Ce=new Yr(19),$e=0;$e<ue;++$e)Ce[a0[$e]]=Xn(e,z+$e*3,7);z+=ue*3;for(var w=k$(Ce),Ae=(1<<w)-1,j=hi(Ce,w,1),$e=0;$e<Ee;){var de=j[Xn(e,z,Ae)];z+=de&15;var se=de>>4;if(se<16)O[$e++]=se;else{var V=0,Fe=0;for(se==16?(Fe=3+Xn(e,z,3),z+=2,V=O[$e-1]):se==17?(Fe=3+Xn(e,z,7),z+=3):se==18&&(Fe=11+Xn(e,z,127),z+=7);Fe--;)O[$e++]=V}}var ce=O.subarray(0,be),U=O.subarray(be);Q=k$(ce),F=k$(U),ne=hi(ce,Q,1),ge=hi(U,F,1)}else wn(1);else{var se=th(z)+4,ve=e[se-4]|e[se-3]<<8,Z=se+ve;if(Z>i){h&&wn(0);break}f&&d(L+ve),r.set(e.subarray(se,Z),L),t.b=L+=ve,t.p=z=Z*8,t.f=A;continue}if(z>Y){h&&wn(0);break}}f&&d(L+131072);for(var x=(1<<Q)-1,$=(1<<F)-1,l=z;;l=z){var V=ne[S$(e,z)&x],c=V>>4;if(z+=V&15,z>Y){h&&wn(0);break}if(V||wn(2),c<256)r[L++]=c;else if(c==256){l=z,ne=null;break}else{var p=c-254;if(c>264){var $e=c-257,_=Tc[$e];p=Xn(e,z,(1<<_)-1)+by[$e],z+=_}var S=ge[S$(e,z)&$],C=S>>4;S||wn(3),z+=S&15;var U=qx[C];if(C>3){var _=Rc[C];U+=S$(e,z)&(1<<_)-1,z+=_}if(z>Y){h&&wn(0);break}f&&d(L+131072);var ee=L+p;if(L<U){var Le=s-U,nt=Math.min(U,ee);for(Le+L<0&&wn(3);L<nt;++L)r[L]=n[Le+L]}for(;L<ee;++L)r[L]=r[L-U]}}t.l=ne,t.p=l,t.b=L,t.f=A,ne&&(A=1,t.m=Q,t.d=ge,t.n=F)}while(!A);return L!=r.length&&o?zc(r,0,L):r.subarray(0,L)},yi=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},al=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},E$=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return{t:ky,l:0};if(i==1){var o=new Yr(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(Z,be){return Z.f-be.f}),r.push({s:-1,f:25001});var f=r[0],h=r[1],d=0,A=1,z=2;for(r[0]={s:-1,f:f.f+h.f,l:f,r:h};A!=i-1;)f=r[r[d].f<r[z].f?d++:z++],h=r[d!=A&&r[d].f<r[z].f?d++:z++],r[A++]={s:-1,f:f.f+h.f,l:f,r:h};for(var L=s[0].s,n=1;n<i;++n)s[n].s>L&&(L=s[n].s);var ne=new Sn(L+1),ge=u0(r[A-1],ne,0);if(ge>t){var n=0,Q=0,F=ge-t,Y=1<<F;for(s.sort(function(be,ue){return ne[ue.s]-ne[be.s]||be.f-ue.f});n<i;++n){var pe=s[n].s;if(ne[pe]>t)Q+=Y-(1<<ge-ne[pe]),ne[pe]=t;else break}for(Q>>=F;Q>0;){var se=s[n].s;ne[se]<t?Q-=1<<t-ne[se]++-1:++n}for(;n>=0&&Q;--n){var ve=s[n].s;ne[ve]==t&&(--ne[ve],++Q)}ge=t}return{t:new Yr(ne),l:ge}},u0=function(e,t,r){return e.s==-1?Math.max(u0(e.l,t,r+1),u0(e.r,t,r+1)):t[e.s]=r},T_=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Sn(++t),n=0,i=e[0],s=1,o=function(h){r[n++]=h},f=1;f<=t;++f)if(e[f]==i&&f!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[f]}return{c:r.subarray(0,n),n:t}},ll=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},wy=function(e,t,r){var n=r.length,i=th(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var s=0;s<n;++s)e[i+s+4]=r[s];return(i+4+n)*8},R_=function(e,t,r,n,i,s,o,f,h,d,A){yi(t,A++,r),++i[256];for(var z=E$(i,15),L=z.t,ne=z.l,ge=E$(s,15),Q=ge.t,F=ge.l,Y=T_(L),pe=Y.c,se=Y.n,ve=T_(Q),Z=ve.c,be=ve.n,ue=new Sn(19),Ee=0;Ee<pe.length;++Ee)++ue[pe[Ee]&31];for(var Ee=0;Ee<Z.length;++Ee)++ue[Z[Ee]&31];for(var O=E$(ue,7),Ce=O.t,$e=O.l,w=19;w>4&&!Ce[a0[w-1]];--w);var Ae=d+5<<3,j=ll(i,ps)+ll(s,Zl)+o,de=ll(i,L)+ll(s,Q)+o+14+3*w+ll(ue,Ce)+2*ue[16]+3*ue[17]+7*ue[18];if(h>=0&&Ae<=j&&Ae<=de)return wy(t,A,e.subarray(h,h+d));var V,Fe,ce,U;if(yi(t,A,1+(de<j)),A+=2,de<j){V=hi(L,ne,0),Fe=L,ce=hi(Q,F,0),U=Q;var x=hi(Ce,$e,0);yi(t,A,se-257),yi(t,A+5,be-1),yi(t,A+10,w-4),A+=14;for(var Ee=0;Ee<w;++Ee)yi(t,A+3*Ee,Ce[a0[Ee]]);A+=3*w;for(var $=[pe,Z],l=0;l<2;++l)for(var c=$[l],Ee=0;Ee<c.length;++Ee){var p=c[Ee]&31;yi(t,A,x[p]),A+=Ce[p],p>15&&(yi(t,A,c[Ee]>>5&127),A+=c[Ee]>>12)}}else V=Mx,Fe=ps,ce=Lx,U=Zl;for(var Ee=0;Ee<f;++Ee){var _=n[Ee];if(_>255){var p=_>>18&31;al(t,A,V[p+257]),A+=Fe[p+257],p>7&&(yi(t,A,_>>23&31),A+=Tc[p]);var S=_&31;al(t,A,ce[S]),A+=U[S],S>3&&(al(t,A,_>>5&8191),A+=Rc[S])}else al(t,A,V[_]),A+=Fe[_]}return al(t,A,V[256]),A+Fe[256]},Px=new eh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ky=new Yr(0),Ux=function(e,t,r,n,i,s){var o=s.z||e.length,f=new Yr(n+o+5*(1+Math.ceil(o/7e3))+i),h=f.subarray(n,f.length-i),d=s.l,A=(s.r||0)&7;if(t){A&&(h[0]=s.r>>3);for(var z=Px[t-1],L=z>>13,ne=z&8191,ge=(1<<r)-1,Q=s.p||new Sn(32768),F=s.h||new Sn(ge+1),Y=Math.ceil(r/3),pe=2*Y,se=function(bt){return(e[bt]^e[bt+1]<<Y^e[bt+2]<<pe)&ge},ve=new eh(25e3),Z=new Sn(288),be=new Sn(32),ue=0,Ee=0,O=s.i||0,Ce=0,$e=s.w||0,w=0;O+2<o;++O){var Ae=se(O),j=O&32767,de=F[Ae];if(Q[j]=de,F[Ae]=j,$e<=O){var V=o-O;if((ue>7e3||Ce>24576)&&(V>423||!d)){A=R_(e,h,0,ve,Z,be,Ee,Ce,w,O-w,A),Ce=ue=Ee=0,w=O;for(var Fe=0;Fe<286;++Fe)Z[Fe]=0;for(var Fe=0;Fe<30;++Fe)be[Fe]=0}var ce=2,U=0,x=ne,$=j-de&32767;if(V>2&&Ae==se(O-$))for(var l=Math.min(L,V)-1,c=Math.min(32767,O),p=Math.min(258,V);$<=c&&--x&&j!=de;){if(e[O+ce]==e[O+ce-$]){for(var _=0;_<p&&e[O+_]==e[O+_-$];++_);if(_>ce){if(ce=_,U=$,_>l)break;for(var S=Math.min($,_-2),C=0,Fe=0;Fe<S;++Fe){var ee=O-$+Fe&32767,Le=Q[ee],nt=ee-Le&32767;nt>C&&(C=nt,de=ee)}}}j=de,de=Q[j],$+=j-de&32767}if(U){ve[Ce++]=268435456|l0[ce]<<18|C_[U];var dt=l0[ce]&31,lt=C_[U]&31;Ee+=Tc[dt]+Rc[lt],++Z[257+dt],++be[lt],$e=O+ce,++ue}else ve[Ce++]=e[O],++Z[e[O]]}}for(O=Math.max(O,$e);O<o;++O)ve[Ce++]=e[O],++Z[e[O]];A=R_(e,h,d,ve,Z,be,Ee,Ce,w,O-w,A),d||(s.r=A&7|h[A/8|0]<<3,A-=7,s.h=F,s.p=Q,s.i=O,s.w=$e)}else{for(var O=s.w||0;O<o+d;O+=65535){var xt=O+65535;xt>=o&&(h[A/8|0]=d,xt=o),A=wy(h,A+1,e.subarray(O,xt))}s.i=o}return zc(f,0,n+th(A)+i)},Hx=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),o=new Yr(s.length+e.length);o.set(s),o.set(e,s.length),e=o,i.w=s.length}return Ux(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},ui=function(e,t){return e[t]|e[t+1]<<8},Dn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},A$=function(e,t){return Dn(e,t)+Dn(e,t+4)*4294967296};function Vx(e,t){return Hx(e,t||{},0,0)}function Wx(e,t){return Bx(e,{i:2},t&&t.out,t&&t.dictionary)}var c0=typeof TextDecoder<"u"&&new TextDecoder,Yx=0;try{c0.decode(ky,{stream:!0}),Yx=1}catch{}var Gx=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return{s:t,r:zc(e,r-1)};i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function $0(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(c0)return c0.decode(e);var i=Gx(e),s=i.s,r=i.r;return r.length&&wn(8),s}}var Kx=function(e,t){return t+30+ui(e,t+26)+ui(e,t+28)},Xx=function(e,t,r){var n=ui(e,t+28),i=ui(e,t+30),s=$0(e.subarray(t+46,t+46+n),!(ui(e,t+8)&2048)),o=t+46+n,f=Qx(e,o,i,r,Dn(e,t+20),Dn(e,t+24),Dn(e,t+42)),h=f[0],d=f[1],A=f[2];return[ui(e,t+10),h,d,s,o+i+ui(e,t+32),A]},Qx=function(e,t,r,n,i,s,o){var f=i==4294967295,h=s==4294967295,d=o==4294967295,A=t+r,z=f+h+d;if(n&&z){for(;t+4<A;t+=4+ui(e,t+2))if(ui(e,t)==1)return[f?A$(e,t+4+8*h):i,h?A$(e,t+4):s,d?A$(e,t+4+8*(h+f)):o,1];n<2&&wn(13)}return[i,s,o,0]};function Zx(e,t){for(var r={},n=e.length-22;Dn(e,n)!=101010256;--n)(!n||e.length-n>65558)&&wn(13);var i=ui(e,n+8);if(!i)return{};var s=Dn(e,n+16),o=Dn(e,n-20)==117853008;if(o){var f=Dn(e,n-12);o=Dn(e,f)==101075792,o&&(i=Dn(e,f+32),s=Dn(e,f+48))}for(var h=0;h<i;++h){var d=Xx(e,s,o),A=d[0],z=d[1],L=d[2],ne=d[3],ge=d[4],Q=d[5],F=Kx(e,Q);s=ge,A?A==8?r[ne]=Wx(e.subarray(F,F+z),{out:new Yr(L)}):wn(14,"unknown compression type "+A):r[ne]=zc(e,F,F+z)}return r}const Jx={},Ox=Jx?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function jo(e){return e<10?String.fromCharCode(48+e):(e-=10,e<26?String.fromCharCode(65+e):(e-=26,e<26?String.fromCharCode(97+e):(e-=26,e===0?"-":e===1?"_":"?")))}function C$(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,o=r&63;return jo(n&63)+jo(i&63)+jo(s&63)+jo(o&63)}function ew(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=C$(e[r],e[r+1],0):r+1===e.length?t+=C$(e[r],0,0):t+=C$(e[r],e[r+1],e[r+2]);return t}function tw(e){const t=Vx(new TextEncoder().encode(e),{level:9});return`${Ox}/svg/${ew(t)}`}function Sy({source:e}){return ye.jsx("div",{className:"filemedia",children:ye.jsx("img",{className:"fileimage plantuml",src:tw(e),alt:"PlantUML diagram"})})}function rw({node:e}){return ye.jsxs("div",{className:"text",children:[e.title&&ye.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&ye.jsx("p",{className:"chapter-subtitle",children:e.description}),ye.jsx(Sy,{source:String(ys(e.value)??"")})]})}function nw({chunk:e}){return ye.jsx(Sy,{source:String(e.value??"")})}const iw={object:{glyph:"{}",cls:"t-struct"},array:{glyph:"[]",cls:"t-struct"},string:{glyph:"“”",cls:"t-str"},integer:{glyph:"#",cls:"t-num"},number:{glyph:"½",cls:"t-num"},boolean:{glyph:"◧",cls:"t-bool"},null:{glyph:"∅",cls:"t-null"},binary:{glyph:"0110",cls:"t-bin binsq"}},sw={"date-time":"🕑",date:"📅",time:"🕑",duration:"⏳",email:"✉️","idn-email":"✉️",hostname:"🖥️","idn-hostname":"🖥️",ipv4:"🌐",ipv6:"🌐",uri:"🔗",iri:"🔗","uri-reference":"🔗","iri-reference":"🔗","uri-template":"🔗",url:"🔗",uuid:"🆔",regex:"🔣","json-pointer":"📍","relative-json-pointer":"📍",password:"🔑",color:"🎨"};function aw(e){return e==="x-yamlover-chapter"?"§":e==="x-yamlover-tag"?"🏷️":e.startsWith("x-yamlover-")?"🧩":e==="application/pdf"?"📕":e==="application/x-fictionbook+xml"?"📘":e==="application/epub+zip"?"📗":e==="image/vnd.djvu"?"📓":e.startsWith("image/")?"🖼️":e==="text/markdown"?"📝":e==="text/asciidoc"?"📃":e==="text/csv"||e==="text/tab-separated-values"?"▦":e==="text/x-plantuml"?"📊":e==="application/vnd.ms-excel"||e==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?"▦":e==="application/rtf"||e==="application/msword"||e==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?"📄":e==="application/vnd.google-earth.kml+xml"||e==="application/vnd.google-earth.kmz"?"🗺️":e.startsWith("text/")?"📄":e.startsWith("audio/")?"🔊":e.startsWith("video/")?"🎬":/^(u?int|float)\d/.test(e)?"💾":null}function Du(e,t,r){if(t==="x-yamlover-fragment")return{glyph:"",cls:"t-fmt frag-icon",title:"fragment"};if(t){const i=sw[t]??aw(t);if(i)return{glyph:i,cls:"t-fmt",title:t}}if(r==="dir")return{glyph:"📁",cls:"t-struct",title:"folder"};if(r==="dir/yamlover")return{glyph:"🗂️",cls:"t-struct",title:"yamlover folder"};const n=iw[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const lw="x-yamlover-board",ow=new Set(["x-yamlover-tag","x-yamlover-workflow","x-yamlover-board"]);function uw(e){return e.format===lw?!0:Tn(e.value).some(([t])=>t==="workflow"||t==="lanes")}const cw=new Set(["cancelled","canceled","rejected","wontfix","won't-fix","dropped","declined","abandoned","duplicate","invalid"]),T$=e=>cw.has(e.toLowerCase()),R$=(e,t)=>{const r=Tn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null},$w=e=>{const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)};function fw(e){return Bs(Tn(e.value).find(([t])=>t==="workflow")?.[1])}function dw(e){const t=Tn(e.value).find(([r])=>r==="lanes")?.[1];return Array.isArray(t)?t.map(r=>Array.isArray(r)?r.map(Bs).filter(n=>!!n):[]):null}const hw=new Set(["workflow","lanes","yamlover","tags"]);function pw(e){return rh(e).filter(t=>t.link&&!hw.has(t.key)).filter(t=>!(t.link.format&&ow.has(t.link.format))).map(t=>t.link.path)}function _w(e){const t=Tn(e).find(([i])=>i==="yamlover-annotations")?.[1],r=Array.isArray(t)?t:[],n=[];for(const i of r){const s=Bs(i)??Bs(Tn(i).find(([o])=>o==="tag")?.[1]);s&&n.push(s)}return n}function mw({node:e,onNavigate:t,openContextMenu:r}){const n=Va(Ys),[i,s]=ft.useState([]),[o,f]=ft.useState([]),[h,d]=ft.useState(null),[A,z]=ft.useState(null),[L,ne]=ft.useState(null),[ge,Q]=ft.useState(null),F=ft.useRef(null);ft.useEffect(()=>{let Ee=!1;return(async()=>{try{const O=fw(e),$e=Tn(e.value).some(([de])=>de==="lanes")?dw(await on(e.path,3)):null;let w=[];if($e)w=await Promise.all($e.map(async de=>({tags:await Promise.all(de.map(t0))})));else if(O){const de=(await p7(O)).filter(ce=>!ce.initial),V=de.filter(ce=>ce.next.length>0),Fe=de.filter(ce=>ce.next.length===0);Fe.sort((ce,U)=>Number(T$(ce.label))-Number(T$(U.label))),w=[...V.map(ce=>({tags:[ce]})),...Fe.length?[{tags:Fe}]:[]]}const Ae=pw(e),j=await Promise.all(Ae.map(async de=>{const V=await on(de,2);return{path:de,title:V.title??$w(de),priority:R$(V.value,"priority"),assignee:R$(V.value,"assignee"),due:R$(V.value,"due"),tags:_w(V.value)}}));if(Ee)return;s(w),f(j),d(null)}catch(O){Ee||d(String(O?.message||O))}})(),()=>{Ee=!0}},[e.path,n]);const Y=()=>i.map(Ee=>Ee.tags.map(O=>O.path)),pe=Ee=>{m4(e.path,Ee).catch(O=>d(String(O?.message||O)))},se=(Ee,O)=>{const Ce=Y();Ce[Ee]||(Ce[Ee]=[]),Ce[Ee].includes(O)||Ce[Ee].push(O),pe(Ce)},ve=(Ee,O)=>{const Ce=Y().map(($e,w)=>w===Ee?$e.filter(Ae=>Ae!==O):$e);pe(Ce)},Z=()=>pe([...Y(),[]]),be=Ee=>pe(Y().filter((O,Ce)=>Ce!==Ee)),ue=async Ee=>{const O=A;if(z(null),ne(null),!(!O||Ee===O.from))try{await Kv(O.task,O.from,Ee),f(Ce=>Ce.map($e=>$e.path===O.task?{...$e,tags:[...$e.tags.filter(w=>w!==O.from),Ee]}:$e))}catch(Ce){d(String(Ce?.message||Ce))}};return ft.useEffect(()=>{if(!ge)return;const Ee=O=>{F.current?.contains(O.target)||Q(null)};return document.addEventListener("mousedown",Ee),()=>document.removeEventListener("mousedown",Ee)},[ge]),h?ye.jsxs("div",{className:"board-error",children:["Board error: ",h]}):ye.jsxs("div",{className:"board",children:[i.map((Ee,O)=>{const Ce=Ee.tags[0]?Hn({name:Ee.tags[0].label,color:Ee.tags[0].color}):"#6c7086",$e=Ee.tags.reduce((w,Ae)=>w+o.filter(j=>j.tags.includes(Ae.path)).length,0);return ye.jsxs("section",{className:"board-col",children:[ye.jsxs("header",{className:"board-col-head",style:{borderTopColor:Ce},children:[ye.jsxs("div",{className:"board-col-tags",children:[Ee.tags.length===1&&ye.jsx(Au,{tag:{path:Ee.tags[0].path,name:Ee.tags[0].label,color:Ee.tags[0].color},children:ye.jsx("button",{type:"button",className:"tagtag on",style:Nf(Hn({name:Ee.tags[0].label,color:Ee.tags[0].color})),onClick:()=>ve(O,Ee.tags[0].path),children:ye.jsx("span",{className:"tt-label",children:Ee.tags[0].label})})}),ye.jsx("button",{className:"board-lane-add",title:Ee.tags.length===0?"set this lane's tag":"add a sublane",onClick:w=>Q({lane:O,x:w.clientX,y:w.clientY}),children:"+"})]}),ye.jsx("span",{className:"board-col-count",children:$e}),ye.jsx("button",{className:"board-lane-del",title:"remove this lane",onClick:()=>be(O),children:"🗑"})]}),ye.jsx("div",{className:"board-col-body",children:Ee.tags.map((w,Ae)=>{const j=o.filter(Fe=>Fe.tags.includes(w.path)),de=Hn({name:w.label,color:w.color}),V=T$(w.label);return ye.jsxs("div",{className:"board-group"+(Ae>0?" board-group-split":"")+(L===w.path?" board-group-over":""),onDragOver:Fe=>{A&&(Fe.preventDefault(),L!==w.path&&ne(w.path))},onDrop:Fe=>{Fe.preventDefault(),ue(w.path)},children:[Ee.tags.length>1&&ye.jsxs("div",{className:"board-group-head",children:[ye.jsx("span",{className:"board-group-dot",style:{background:de}}),ye.jsx("span",{className:"board-group-title",children:w.label}),ye.jsx("span",{className:"board-col-count",children:j.length}),ye.jsx("button",{className:"board-group-del",title:"remove this sublane",onClick:()=>ve(O,w.path),children:"✕"})]}),ye.jsx("div",{className:"board-group-cards",children:j.map(Fe=>ye.jsxs("article",{className:"board-card"+(V?" board-card-negative":""),draggable:!0,onDragStart:()=>z({task:Fe.path,from:w.path}),onDragEnd:()=>{z(null),ne(null)},onClick:()=>t(Fe.path),onContextMenu:r?ce=>{ce.preventDefault(),r(Fe.path,ce.clientX,ce.clientY)}:void 0,title:pi(Fe.path),style:{borderLeftColor:de},children:[ye.jsx("div",{className:"board-card-title",children:Fe.title}),ye.jsxs("div",{className:"board-card-meta",children:[Fe.priority&&ye.jsx("span",{className:"board-chip prio-"+Fe.priority,children:Fe.priority}),Fe.assignee&&ye.jsxs("span",{className:"board-chip board-assignee",children:["@",Fe.assignee]}),Fe.due&&ye.jsx("span",{className:"board-chip board-due",children:Fe.due.slice(0,10)})]})]},Fe.path))})]},w.path)})})]},O)}),ye.jsx("button",{className:"board-add-lane",title:"add a lane",onClick:Z,children:"+ lane"}),ge&&ye.jsx(xd,{menuRef:F,x:ge.x,y:ge.y,applied:[],mode:"create",onPick:Ee=>{se(ge.lane,Ee.path),Q(null)},onClose:()=>Q(null),title:pi(e.path)})]})}function gw(e){const t=e.link;return t?t.format?t.format.replace(/^x-yamlover-/,"").replace(/^.*\//,""):Pa(t.concrete)?"folder":t.type??t.kind??"":"scalar"}function vw(e){const t=e.link;if(!t)return"";if(typeof t.count=="number")return`${t.count} item${t.count===1?"":"s"}`;if(typeof t.size=="number"){const r=["B","KB","MB","GB"];let n=t.size,i=0;for(;n>=1024&&i<r.length-1;)n/=1024,i++;return`${i===0?n:n.toFixed(1)} ${r[i]}`}return""}function yw({members:e,onNavigate:t,openContextMenu:r}){const{seq:n,paths:i}=i3(Ys),[s,o]=ft.useState({}),f=e.map(d=>d.link?.path).filter(d=>!!d),h=f.join("|");return ft.useEffect(()=>{let d=!1;return Promise.all(f.map(A=>Wl(A).then(z=>[A,z]).catch(()=>[A,[]]))).then(A=>{d||o(Object.fromEntries(A))}),()=>{d=!0}},[h]),ft.useEffect(()=>{if(n===0)return;const d=f.filter(z=>i.some(L=>L===z||L.startsWith(z+":")));if(d.length===0)return;let A=!1;return Promise.all(d.map(z=>Wl(z).then(L=>[z,L]).catch(()=>[z,[]]))).then(z=>{A||o(L=>({...L,...Object.fromEntries(z)}))}),()=>{A=!0}},[n]),ye.jsx("div",{className:"detailsview",children:ye.jsxs("table",{className:"details",children:[ye.jsx("thead",{children:ye.jsxs("tr",{children:[ye.jsx("th",{className:"details-name",children:"Name"}),ye.jsx("th",{className:"details-kind",children:"Kind"}),ye.jsx("th",{className:"details-tags",children:"Tags"}),ye.jsx("th",{className:"details-size",children:"Size"})]})}),ye.jsxs("tbody",{children:[e.map((d,A)=>{const z=d.link;if(!z)return null;const L=Du(z.type??z.kind,z.format??null,z.concrete),ne=z.title??d.key,ge=s[z.path]??[];return ye.jsxs("tr",{className:"details-row",onClick:()=>t(z.path),onContextMenu:r&&!d.up?Q=>{Q.preventDefault(),r(z.path,Q.clientX,Q.clientY)}:void 0,title:pi(z.path),children:[ye.jsxs("td",{className:"details-name",children:[ye.jsx("span",{className:"details-icon "+L.cls,title:L.title,children:L.glyph}),ye.jsx("span",{className:"details-label",children:ne})]}),ye.jsx("td",{className:"details-kind",children:gw(d)}),ye.jsx("td",{className:"details-tags",children:ge.map((Q,F)=>{if(!Q.tag)return null;const Y=Hn({name:Q.tag.name,color:Q.tag.color});return ye.jsx(Au,{tag:Q.tag,children:_d(Q.tag.path)?ye.jsx(Sg,{color:Y,title:""}):ye.jsx("span",{className:"tagtag",style:{background:Y},children:Q.tag.name})},F)})}),ye.jsx("td",{className:"details-size",children:vw(d)})]},`${z.path}#${A}`)}),e.length===0&&ye.jsx("tr",{children:ye.jsx("td",{className:"details-empty",colSpan:4,children:"empty"})})]})]})})}const bw="x-yamlover-annotation",xw="$yamloverMixed",z_={large:256,thumbnails:512};function ww(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:Fr(r),up:!0})).filter(t=>t.link!=null)}function rh(e){const t=e.value;if(Array.isArray(t))return t.map((n,i)=>({key:`[${i}]`,link:Fr(n),raw:n}));if(!t||typeof t!="object")return[];const r=t[xw];return Object.keys(t).length===1&&r?.entries?r.entries.map((n,i)=>({key:n.key??`[${i}]`,link:Fr(n.value),raw:n.value})):Object.entries(t).map(([n,i])=>({key:n,link:Fr(i),raw:i}))}function kw(e){return[...ww(e.relations),...rh(e)]}function Sw(e,t){const r=rh(e).filter(i=>i.link?.format!==bw),n=new Set(r.map(i=>i.link?.path).filter(Boolean));for(const i of t)n.has(i.path)||r.push({key:$c(i.path,i.title),link:i});return r}function Ew(e,t){return e.format===Ws?Sw(e,t):kw(e)}function Aw(e){if(e==null)return"null";if(Array.isArray(e))return"array";const t=typeof e;return t==="object"?"object":t==="boolean"?"boolean":t==="number"?Number.isInteger(e)?"integer":"number":"string"}function N_(e){if(e==null)return"~";const t=String(e).split(`
621
+ `,1)[0];return t.length>80?t.slice(0,79)+"…":t}function Cw(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function Tw(e,t,r,n){if(r==="ArrowRight")return Math.min(t+1,n-1);if(r==="ArrowLeft")return Math.max(t-1,0);if(r==="Home")return 0;if(r==="End")return n-1;const i=e[t];if(!i)return t;const s=i.getBoundingClientRect(),o=s.left+s.width/2,f=s.top+s.height/2,h=r==="ArrowDown";let d=t,A=1/0;for(let z=0;z<n;z++){const L=e[z];if(!L||z===t)continue;const ne=L.getBoundingClientRect(),ge=ne.left+ne.width/2,Q=ne.top+ne.height/2;if(h?Q<=f+1:Q>=f-1)continue;const F=Math.abs(ge-o)*2+Math.abs(Q-f);F<A&&(A=F,d=z)}return d}function Rw(e,t){if(e.preview)return pp(e.preview,t,t);const r=e.format??null;return!r||!r.startsWith("image/")?null:r==="image/svg+xml"?vs(e.path):pp(e.path,t,t)}function zw({link:e,glyph:t,box:r}){const[n,i]=ft.useState(!1),s=n?null:Rw(e,r);return s?ye.jsx("img",{className:"dirview-icon dirview-thumb",src:s,alt:"",loading:"lazy",onError:()=>i(!0)}):ye.jsx("span",{className:"dirview-icon "+t.cls,title:t.title,children:t.glyph})}function Nw({it:e,active:t,view:r,setRef:n,onFocus:i,onNavigate:s,onContext:o}){const f=e.link,h=t?0:-1,d=f&&!e.up&&o?{onContextMenu:ne=>{ne.preventDefault(),o(f.path,ne.clientX,ne.clientY)}}:{};if(!f){const ne=Du(Aw(e.raw),null);return ye.jsxs("span",{className:"dirview-item",ref:n,tabIndex:h,onFocus:i,children:[ye.jsx("span",{className:"dirview-icon "+ne.cls,title:ne.title,children:ne.glyph}),ye.jsxs("span",{className:"dirview-label",children:[e.key,": ",N_(e.raw)]})]})}const A=Du(f.type??f.kind,f.format??null,f.concrete),z=e.up?R4(e.key):f.title??e.key,L=f.format===Ws?ye.jsx("span",{className:"tagtag",style:{background:Hn({name:z,color:f.color})},children:z}):f.kind==="scalar"&&!Cw(f.format)?ye.jsxs(ye.Fragment,{children:[z,": ",ye.jsx("span",{className:"val",children:N_(f.value)})]}):z;return ye.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:f.path,title:pi(f.path),ref:n,tabIndex:h,onFocus:i,onClick:ne=>{ne.preventDefault(),s(f.path)},...d,children:[z_[r]&&!e.up?ye.jsx(zw,{link:f,glyph:A,box:z_[r]}):ye.jsx("span",{className:"dirview-icon "+A.cls,title:A.title,children:A.glyph}),ye.jsx("span",{className:"dirview-label",children:L})]})}function Iw({node:e,view:t,onNavigate:r}){const n=e.format===Ws,[i,s]=ft.useState([]),o=Va(Ys),{openAt:f,tagMenu:h}=wd();ft.useEffect(()=>{if(s([]),!n)return;let pe=!1;return d4(e.path).then(se=>{pe||s(se.map(Fr).filter(ve=>ve!=null))}).catch(()=>{}),()=>{pe=!0}},[e.path,n,o]);const d=Ew(e,i),A=ft.useRef(null),z=ft.useRef([]);z.current.length=d.length;const[L,ne]=ft.useState(0);ft.useEffect(()=>{L>d.length-1&&ne(Math.max(0,d.length-1))},[d.length,L]);const ge=ft.useRef(!0);ft.useEffect(()=>{ne(0),ge.current=!0},[e.path]),ft.useEffect(()=>{!ge.current||!d.length||(ge.current=!1,!A.current?.closest(".chunk-body")&&z.current[0]?.focus({preventScroll:!0}))},[d.length,e.path]);const Q=pe=>{if(pe.ctrlKey||pe.altKey||pe.metaKey||!d.length)return;if(pe.key==="Enter"){const ve=d[L]?.link;ve&&(pe.preventDefault(),r(ve.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(pe.key))return;pe.preventDefault();const se=Tw(z.current,L,pe.key,d.length);se!==L&&(ne(se),z.current[se]?.focus())};if(t==="board")return ye.jsxs(ye.Fragment,{children:[h,ye.jsx(mw,{node:e,onNavigate:r,openContextMenu:f})]});if(t==="details")return ye.jsxs(ye.Fragment,{children:[h,ye.jsx(yw,{members:d,onNavigate:r,openContextMenu:f})]});const F=(n?Ag(e.value):null)??e.description,Y="dirview"+(t!=="small"?" dirview-lg":"")+(t==="thumbnails"?" dirview-thumbs":"");return ye.jsxs("div",{className:"explorerview",children:[h,F&&ye.jsx("div",{className:"dirhead",children:ye.jsx("p",{className:"tagdesc",children:F})}),ye.jsxs("div",{ref:A,className:Y,onKeyDown:Q,children:[d.map((pe,se)=>ye.jsx(Nw,{it:pe,active:se===L,view:t,setRef:ve=>{z.current[se]=ve},onFocus:()=>ne(se),onNavigate:r,onContext:f},`${pe.up?"^":""}${pe.link?.path??pe.key}#${se}`)),d.length===0&&ye.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const Ey="http://www.w3.org/1999/xlink",qw=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function Mw(e){const t=new Uint8Array(e),n=(new TextDecoder("latin1").decode(t.subarray(0,256)).match(/encoding=["']([^"']+)["']/i)?.[1]||"utf-8").toLowerCase();let i;try{i=new TextDecoder(n).decode(t)}catch{i=new TextDecoder("utf-8").decode(t)}return i.replace(qw,"")}function Dw(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ay(e,t){if(e.nodeType===3)return Dw(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>Ay(i,t)).join("");switch(r.localName){case"section":return`<section class="fb2-section">${n()}</section>`;case"title":return`<div class="fb2-title">${n()}</div>`;case"subtitle":return`<p class="fb2-subtitle">${n()}</p>`;case"p":return`<p>${n()}</p>`;case"empty-line":return"<br/>";case"emphasis":return`<em>${n()}</em>`;case"strong":return`<strong>${n()}</strong>`;case"strikethrough":return`<s>${n()}</s>`;case"sub":return`<sub>${n()}</sub>`;case"sup":return`<sup>${n()}</sup>`;case"code":return`<code>${n()}</code>`;case"epigraph":case"cite":return`<blockquote class="fb2-cite">${n()}</blockquote>`;case"text-author":return`<p class="fb2-text-author">${n()}</p>`;case"poem":return`<div class="fb2-poem">${n()}</div>`;case"stanza":return`<div class="fb2-stanza">${n()}</div>`;case"v":return`<div class="fb2-v">${n()}</div>`;case"a":return`<span class="fb2-a">${n()}</span>`;case"image":{const i=r.getAttributeNS(Ey,"href")||r.getAttribute("l:href")||r.getAttribute("href")||"",s=t.get(i.replace(/^#/,""));return s?`<img class="fb2-img" src="${s}" alt=""/>`:""}case"title-info":case"description":case"binary":return"";default:return n()}}function I_({node:e}){const[t,r]=ft.useState(null),[n,i]=ft.useState(null);return ft.useEffect(()=>{let s=!1;return r(null),i(null),fetch(vs(e.path)).then(o=>o.arrayBuffer()).then(o=>{if(s)return;const f=new DOMParser().parseFromString(Mw(o),"application/xml"),h=f.getElementsByTagName("parsererror")[0];if(h)throw new Error(h.textContent?.trim().split(`
622
+ `)[0]||"invalid FB2 XML");const d=new Map;for(const se of Array.from(f.getElementsByTagNameNS("*","binary"))){const ve=se.getAttribute("id");if(ve){const Z=se.getAttribute("content-type")||"image/jpeg";d.set(ve,`data:${Z};base64,${(se.textContent||"").replace(/\s+/g,"")}`)}}const A=f.getElementsByTagNameNS("*","title-info")[0],z=(se,ve)=>se?.getElementsByTagNameNS("*",ve)[0]?.textContent?.trim()||"",L=z(A,"book-title")||void 0,ne=A&&Array.from(A.getElementsByTagNameNS("*","author")).map(se=>[z(se,"first-name"),z(se,"middle-name"),z(se,"last-name")].filter(Boolean).join(" ")||z(se,"nickname")).filter(Boolean).join(", "),ge=A?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],Q=(ge?.getAttributeNS(Ey,"href")||ge?.getAttribute("l:href")||"").replace(/^#/,""),F=Array.from(f.getElementsByTagNameNS("*","body")),Y=F.find(se=>se.getAttribute("name")!=="notes")||F[0],pe=Y?Array.from(Y.childNodes).map(se=>Ay(se,d)).join(""):"";r({title:L,author:ne||void 0,cover:Q?d.get(Q):void 0,html:pe})}).catch(o=>!s&&i(String(o.message||o))),()=>{s=!0}},[e.path]),n?ye.jsxs("div",{className:"error",children:["fb2: ",n]}):t?ye.jsxs("div",{className:"text fb2",children:[t.cover&&ye.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&ye.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&ye.jsx("p",{className:"chapter-subtitle",children:t.author}),ye.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):ye.jsx("div",{className:"loading",children:"loading FB2…"})}const q_="http://www.w3.org/1999/xlink";function z$(e,t){t=decodeURIComponent(t.split("#")[0].split("?")[0]);const r=(e?e.split("/"):[]).concat(t.split("/")),n=[];for(const i of r)i===""||i==="."||(i===".."?n.pop():n.push(i));return n.join("/")}function M_(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function D_({node:e}){const[t,r]=ft.useState(null),[n,i]=ft.useState(null);return ft.useEffect(()=>{let s=!1;const o=[];return r(null),i(null),fetch(vs(e.path)).then(f=>f.arrayBuffer()).then(f=>{if(s)return;const h=Zx(new Uint8Array(f)),d=ue=>h[ue]?$0(h[ue]):"",A=ue=>new DOMParser().parseFromString(d(ue),"application/xml"),z=A("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!z||!h[z])throw new Error("no OPF package document");const L=A(z),ne=M_(z),ge=new Map,Q=(ue,Ee="")=>{if(!h[ue])return"";const O=ge.get(ue);if(O)return O;const Ce=URL.createObjectURL(new Blob([h[ue]],{type:Ee}));return ge.set(ue,Ce),o.push(Ce),Ce},F=L.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),Y=Array.from(L.getElementsByTagNameNS("*","creator")).map(ue=>ue.textContent?.trim()).filter(Boolean).join(", "),pe=new Map;for(const ue of Array.from(L.getElementsByTagNameNS("*","item"))){const Ee=ue.getAttribute("id"),O=ue.getAttribute("href");Ee&&O&&pe.set(Ee,{path:z$(ne,O),type:ue.getAttribute("media-type")||""})}const se=Array.from(L.getElementsByTagNameNS("*","meta")).find(ue=>ue.getAttribute("name")==="cover")?.getAttribute("content"),ve=se?pe.get(se):void 0,Z=ve?Q(ve.path,ve.type):void 0,be=[];for(const ue of Array.from(L.getElementsByTagNameNS("*","itemref"))){const Ee=pe.get(ue.getAttribute("idref")||"");if(!Ee||!/html/.test(Ee.type)||!h[Ee.path])continue;const O=M_(Ee.path),$e=new DOMParser().parseFromString($0(h[Ee.path]),"text/html").body;if($e){$e.querySelectorAll("script, style, link").forEach(w=>w.remove());for(const w of Array.from($e.querySelectorAll("img"))){const Ae=w.getAttribute("src"),j=Ae?Q(z$(O,Ae)):"";j?w.setAttribute("src",j):w.removeAttribute("src")}for(const w of Array.from($e.querySelectorAll("image"))){const Ae=w.getAttributeNS(q_,"href")||w.getAttribute("href")||w.getAttribute("xlink:href"),j=Ae?Q(z$(O,Ae)):"";j&&w.setAttributeNS(q_,"xlink:href",j)}be.push(`<section class="epub-doc">${$e.innerHTML}</section>`)}}if(s){o.forEach(URL.revokeObjectURL);return}r({title:F,author:Y||void 0,cover:Z,html:be.join(`
623
+ `)})}).catch(f=>!s&&i(String(f.message||f))),()=>{s=!0,o.forEach(URL.revokeObjectURL)}},[e.path]),n?ye.jsxs("div",{className:"error",children:["epub: ",n]}):t?ye.jsxs("div",{className:"text epub",children:[t.cover&&ye.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&ye.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&ye.jsx("p",{className:"chapter-subtitle",children:t.author}),ye.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):ye.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function L_({node:e}){return ye.jsx("iframe",{className:"filehtml",src:vs(e.path),sandbox:"allow-same-origin",title:e.title??pi(e.path)})}const F_=ft.lazy(()=>In(()=>import("./pdf-C-kvASQl.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),j_=ft.lazy(()=>In(()=>import("./djvu-CbL4_9ak.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),B_=ft.lazy(()=>In(()=>import("./psd-KxbPOIwA.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),P_=ft.lazy(()=>In(()=>import("./tiff-sq_Q9sNj.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),U_=ft.lazy(()=>In(()=>import("./heic-BvS6Unla.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),Lw=ft.lazy(()=>In(()=>import("./docx-CCEuxO9n.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),Fw=ft.lazy(()=>In(()=>import("./docx-CCEuxO9n.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),jw=ft.lazy(()=>In(()=>import("./spreadsheet-DkG5umsc.js"),[]).then(e=>({default:e.SpreadsheetView}))),Bw=ft.lazy(()=>In(()=>import("./spreadsheet-DkG5umsc.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),Pw=ft.lazy(()=>In(()=>import("./map-BfHrzAqt.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),Uw=ft.lazy(()=>In(()=>import("./map-BfHrzAqt.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),Hw=ft.lazy(()=>In(()=>import("./imagemap-DBji1qL1.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),Vw=ft.lazy(()=>In(()=>import("./imagemap-DBji1qL1.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Pr=e=>ye.jsx(ft.Suspense,{fallback:ye.jsx("div",{className:"loading",children:"…"}),children:e}),Wi=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),Ww=e=>({valueType:e.valueType??null,format:e.format??null,hasKeyed:!!e.hasKeyed,hasOrdinal:!!e.hasOrdinal}),dr=(...e)=>t=>t.format!==null&&e.includes(t.format),hl=(e,t,r,n)=>({name:e,label:t,icon:r,accepts:dr("x-yamlover-tag","x-yamlover-board"),specificity:2,render:(i,s)=>ye.jsx(Iw,{node:i,view:n,onNavigate:s})}),Cy=hl("tag-board","tag board","▥","board"),f0=[hl("thumbnails","thumbnails","🖼️","thumbnails"),hl("large-icons","large icons","⊞","large"),hl("small-icons","small icons","∷","small"),hl("details","details","☰","details")],Ea=f0.find(e=>e.name==="large-icons"),Ty=[{name:"settings",icon:"⚙️",accepts:dr("x-yamlover-config"),specificity:2,render:()=>ye.jsx(g7,{})},{name:"chapter",icon:"§",accepts:dr("x-yamlover-chapter"),specificity:2,depth:1,tocView:H_,render:(e,t)=>ye.jsx(Hv,{node:e,onNavigate:t}),config:e=>ye.jsx(Do,{rerender:e})},{name:"task",icon:"☑",accepts:dr("x-yamlover-task"),specificity:2,depth:1,tocView:H_,render:(e,t)=>ye.jsx(m7,{node:e,onNavigate:t}),config:e=>ye.jsx(Do,{rerender:e})},{name:"marklower",icon:"✍",accepts:e=>e.format==="text/marklower"||e.format===null&&e.valueType==="string",specificity:1,render:(e,t)=>ye.jsx(D6,{node:e,onNavigate:t}),renderChunk:(e,t)=>ye.jsx(L6,{chunk:e,onNavigate:t})},{name:"markdown",icon:"📝",accepts:dr("text/markdown"),specificity:2,render:(e,t)=>ye.jsx(ox,{node:e,onNavigate:t}),renderChunk:(e,t)=>ye.jsx(ux,{chunk:e,onNavigate:t}),config:e=>ye.jsx(Do,{rerender:e})},{name:"asciidoc",icon:"📃",accepts:dr("text/asciidoc"),specificity:2,render:(e,t)=>ye.jsx(hx,{node:e,onNavigate:t}),renderChunk:(e,t)=>ye.jsx(px,{chunk:e,onNavigate:t}),config:e=>ye.jsx(Do,{rerender:e})},{name:"csv",icon:"▦",accepts:dr("text/csv","text/tab-separated-values"),specificity:2,render:e=>ye.jsx(gx,{node:e}),renderChunk:e=>ye.jsx(yx,{chunk:e}),config:e=>ye.jsx(vx,{rerender:e})},{name:"plaintext",icon:"🗒️",accepts:dr("text/plain"),specificity:2,render:e=>ye.jsx(xx,{node:e}),renderChunk:e=>ye.jsx(wx,{chunk:e}),config:e=>ye.jsx(kx,{rerender:e})},{name:"rtf",icon:"📄",accepts:dr("application/rtf"),specificity:2,render:e=>ye.jsx(Rx,{node:e}),renderChunk:e=>ye.jsx(zx,{chunk:e})},{name:"docx",icon:"📄",accepts:dr("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Pr(ye.jsx(Lw,{node:e})),renderChunk:e=>Pr(ye.jsx(Fw,{chunk:e}))},{name:"spreadsheet",icon:"▦",accepts:dr("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Pr(ye.jsx(jw,{node:e})),renderChunk:e=>Pr(ye.jsx(Bw,{chunk:e}))},{name:"doc",icon:"📄",accepts:dr("application/msword"),specificity:2,render:e=>ye.jsx(Nx,{node:e}),renderChunk:e=>ye.jsx(Ix,{chunk:e})},{name:"map",icon:"🗺️",accepts:dr("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Pr(ye.jsx(Pw,{node:e})),renderChunk:(e,t)=>Pr(ye.jsx(Uw,{chunk:e,onNavigate:t}))},{name:"latex",icon:"∑",accepts:dr("text/x-latex"),specificity:2,render:e=>ye.jsx(R6,{node:e}),renderChunk:e=>ye.jsx(z6,{chunk:e})},{name:"plantuml",icon:"📊",accepts:dr("text/x-plantuml"),specificity:2,render:e=>ye.jsx(rw,{node:e}),renderChunk:e=>ye.jsx(nw,{chunk:e})},Ea,{name:"image",icon:"🖼️",accepts:dr("image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/x-icon","image/svg+xml"),specificity:2,render:e=>Pr(ye.jsx(Hw,{node:e})),renderChunk:(e,t)=>Pr(ye.jsx(Vw,{chunk:e,onNavigate:t}))},{name:"html",icon:"🌐",accepts:dr("text/html"),specificity:2,render:e=>ye.jsx(L_,{node:e}),renderChunk:e=>ye.jsx(L_,{node:Wi(e)})},{name:"fb2",icon:"📘",accepts:dr("application/x-fictionbook+xml"),specificity:2,render:e=>ye.jsx(I_,{node:e}),renderChunk:e=>ye.jsx(I_,{node:Wi(e)})},{name:"epub",icon:"📗",accepts:dr("application/epub+zip"),specificity:2,render:e=>ye.jsx(D_,{node:e}),renderChunk:e=>ye.jsx(D_,{node:Wi(e)})},{name:"pdf",icon:"📕",accepts:dr("application/pdf"),specificity:2,render:e=>Pr(ye.jsx(F_,{node:e})),renderChunk:e=>Pr(ye.jsx(F_,{node:Wi(e)}))},{name:"djvu",icon:"📓",accepts:dr("image/vnd.djvu"),specificity:2,render:e=>Pr(ye.jsx(j_,{node:e})),renderChunk:e=>Pr(ye.jsx(j_,{node:Wi(e)}))},{name:"psd",icon:"🎨",accepts:dr("image/vnd.adobe.photoshop"),specificity:2,render:e=>Pr(ye.jsx(B_,{node:e})),renderChunk:(e,t)=>Pr(ye.jsx(B_,{node:Wi(e),chunk:{onNavigate:t}}))},{name:"tiff",icon:"🖼️",accepts:dr("image/tiff"),specificity:2,render:e=>Pr(ye.jsx(P_,{node:e})),renderChunk:(e,t)=>Pr(ye.jsx(P_,{node:Wi(e),chunk:{onNavigate:t}}))},{name:"heic",icon:"🖼️",accepts:dr("image/heic"),specificity:2,render:e=>Pr(ye.jsx(U_,{node:e})),renderChunk:(e,t)=>Pr(ye.jsx(U_,{node:Wi(e),chunk:{onNavigate:t}}))}];function H_(e){if(e.children.length===0)return{children:[],expandable:e.hasChildren,loaded:!1,loadDepth:2};const t=e.children.filter(r=>Hd(r.format));return{children:t,expandable:t.length>0,loaded:!0,loadDepth:2}}function Qa(e){const t=Ww(e);let r=null;for(const n of Ty)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function Yw(e){return uw(e)?[Cy,...f0]:f0}function N$(e){const t=[],r=Qa(e);return r&&r!==Ea&&t.push(r),(r===Ea||Kw(e))&&t.push(...Yw(e)),t}const Gw=new Set(["object","array","mixed","variant"]),Ry=e=>!!e.type&&Gw.has(e.type);function Kw(e){const t=e.concrete;return(Pa(t)||ec(t)||pg(t))&&Ry(e)}const V_=Ty.find(e=>e.name==="plaintext");function I$(e){return Pa(e.concrete)||Qa(e)===V_||!(ec(e.concrete)||pg(e.concrete)||e.format==="text/markdown"||e.format==="text/asciidoc")?null:dg(e.concrete)||typeof ys(e.value)=="string"?V_:null}function tu(e,t){const r=Qa(e);return r&&r!==Ea?r.name:r===Ea||Pa(t)&&Ry(e)?e.format==="x-yamlover-board"?Cy.name:Ea.name:null}function zy(e){const t=Qa(e);if(t?.tocView)return t.tocView(e);const r=e.children.length>0;return{children:e.children,expandable:r?e.children.length>0:e.hasChildren,loaded:r}}const Xw=ft.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,onContext:s,depth:o=0}){const{children:f,expandable:h,loaded:d,loadDepth:A}=zy(t),[z,L]=ft.useState(f.length>0),[ne,ge]=ft.useState(!1),Q=t.path===r,F=Sl(t.path,r),Y=ft.useRef(null);ft.useEffect(()=>{F&&L(!0)},[F]),ft.useEffect(()=>{Q&&Y.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[Q]);const pe=Du(t.type,t.format,t.concrete),se=z&&pe.glyph==="📁"?"📂":pe.glyph,ve=async()=>{if(!z&&h&&!d){ge(!0);try{await i(t.path,A)}finally{ge(!1)}}L(Z=>!Z)};return ye.jsxs("div",{className:"tree-branch",children:[ye.jsxs("div",{ref:Y,className:"tree-row"+(Q?" selected":""),style:{paddingLeft:o*14+4},onContextMenu:s?Z=>{Z.preventDefault(),s(t,Z.clientX,Z.clientY)}:void 0,children:[h?ye.jsx("button",{className:"toggle"+(z?" open":"")+(ne?" loading":""),onClick:ve,"aria-label":z?"collapse":"expand",children:ye.jsx("span",{className:"chevron",children:"›"})}):ye.jsx("span",{className:"toggle leaf"}),ye.jsx("span",{className:"icon "+pe.cls,title:pe.title,children:se}),ye.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${pi(t.path)} (${t.type})`,children:t.label})]}),z&&f.map(Z=>ye.jsx(e,{node:Z,current:r,onSelect:n,onLoadChildren:i,onContext:s,depth:o+1},Z.path))]})});function Qw({tasks:e}){return e.length?ye.jsx("div",{className:"task-strip",children:e.map(t=>{const{done:r,total:n,message:i}=t.progress,s=t.state==="done"?100:n?Math.min(100,Math.floor(r/n*100)):null,o=n?`${r}/${n}`:t.state==="running"&&r>0?String(r):"";return ye.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[ye.jsxs("span",{className:"task-label",children:[t.label,o&&ye.jsxs("span",{className:"task-counts",children:[" ",o]}),t.state==="error"&&" — failed"]}),ye.jsx("span",{className:"task-bar",children:s!==null?ye.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):ye.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function Zw(e){const t=/^(?:https?:\/\/)?(?:www\.)?arxiv\.org\/(?:abs|pdf|html)\/(.+?)(?:\.pdf)?(?:[?#][^\s]*)?$/i.exec(e.trim());if(!t)return null;const r=t[1];return/^(?:\d{4}\.\d{4,5}|[a-z-]+(?:\.[A-Z]{2})?\/\d{7})(?:v\d+)?$/.test(r)?{url:`https://arxiv.org/pdf/${r}`,name:`arxiv-${r.replace(/\//g,"-")}.pdf`}:null}function Jw(e){const t=/^(?:https?:\/\/)?(?:www\.|mobile\.)?(?:x\.com|twitter\.com)\/(\w{1,15})\/status(?:es)?\/(\d+)(?:[/?#][^\s]*)?$/i.exec(e.trim());return t?`https://twitter.com/${t[1]}/status/${t[2]}`:null}async function Ow(e){const t=await fetch(`https://publish.x.com/oembed?url=${encodeURIComponent(e)}&omit_script=true&dnt=true`);if(!t.ok)throw new Error(`oEmbed HTTP ${t.status}`);const r=await t.json(),i=new DOMParser().parseFromString((r.html??"").replace(/<br\s*\/?>/gi,`
624
+ `),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const o=(r.author_url??"").split("/").filter(Boolean).pop(),f=i?Array.from(i.querySelectorAll(":scope > a")):[],h=f[f.length-1]?.textContent?.trim(),d=[r.author_name,o&&`@${o}`].filter(Boolean).join(" "),A=[d&&`— ${d}`,h].filter(Boolean).join(", ");return[s,"",[A,r.url??e].filter(Boolean).join(`
625
+ `)].join(`
626
+ `)}const e8=new Set(["script","style","noscript","template","iframe","svg","head","title"]),t8=new Set(["p","div","section","article","main","aside","header","footer","figure","figcaption","ul","ol","table","thead","tbody","tr","dl","dt","dd","nav","form","body","html"]);function r8(e){const t=new DOMParser().parseFromString(e,"text/html"),r=s8(n8(t.body));if(!r.some(s=>s.kind!=="text"))return null;const n={chunks:[],children:[]},i=[{node:n,level:0}];for(const s of r)if(s.kind==="heading"){for(;i.length>1&&i[i.length-1].level>=s.level;)i.pop();const o={title:s.text||"Untitled",chunks:[],children:[]};i[i.length-1].node.children.push(o),i.push({node:o,level:s.level})}else i[i.length-1].node.chunks.push(s.kind==="image"?{image:{url:s.url,alt:s.alt}}:{text:s.text});return n}function n8(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
627
+ `).replace(/\n{2,}/g,`
628
+ `).trim();r="",s&&t.push({kind:"text",text:s})},i=s=>{if(s.nodeType===Node.TEXT_NODE){r+=s.textContent??"";return}if(!(s instanceof Element))return;const o=s.tagName.toLowerCase();if(!e8.has(o)){if(/^h[1-6]$/.test(o)){n(),t.push({kind:"heading",level:Number(o[1]),text:(s.textContent??"").replace(/\[edit\]/gi,"").trim()});return}if(o==="img"){n();const f=i8(s);f&&t.push({kind:"image",url:f,alt:s.getAttribute("alt")??""});return}if(o==="li"){n(),s.childNodes.forEach(i);const f=r.replace(/\s+/g," ").trim();r="",f&&t.push({kind:"text",text:"- "+f});return}if(o==="pre"){n();const f=(s.textContent??"").replace(/\n+$/,"");f.trim()&&t.push({kind:"text",text:"```\n"+f+"\n```"});return}if(o==="blockquote"){n(),s.childNodes.forEach(i);const f=r.trim();r="",f&&t.push({kind:"text",text:f.split(`
629
+ `).map(h=>"> "+h).join(`
630
+ `)});return}if(o==="br"){r+=`
631
+ `;return}if(o==="td"||o==="th"){s.childNodes.forEach(i),r+=" ";return}if(t8.has(o)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=Pd(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function i8(e){const t=e.getAttribute("src")||e.getAttribute("data-src")||"";return t.startsWith("//")?"https:"+t:/^https?:\/\//.test(t)||t.startsWith("data:image/")?t:null}function s8(e){const t=[];for(const r of e){const n=t[t.length-1];r.kind==="text"&&r.text.startsWith("- ")&&n?.kind==="text"&&n.text.startsWith("- ")?n.text+=`
632
+ `+r.text:t.push(r)}return t}const a8={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/avif":"avif"};async function Ny(e){return{title:e.title,chunks:await Promise.all(e.chunks.map(async t=>{if("text"in t)return{text:t.text};try{const r=await fetch(t.image.url);if(!r.ok)throw new Error(`HTTP ${r.status}`);const n=await r.blob();return{file:{name:l8(t.image.url,n.type),contentBase64:await o8(n)}}}catch{return{text:`![${t.image.alt}](${t.image.url})`}}})),children:await Promise.all(e.children.map(Ny))}}function l8(e,t){let r="";try{r=decodeURIComponent(new URL(e).pathname.split("/").pop()??"")}catch{}return(!r||e.startsWith("data:"))&&(r="image"),/\.[A-Za-z0-9]{2,5}$/.test(r)||(r+="."+(a8[t]||"bin")),r}function o8(e){return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result).split(",")[1]||""),n.onerror=()=>r(new Error("could not read image")),n.readAsDataURL(e)})}function Iy(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+Iy(r),0)}const qy=1,My=()=>new URLSearchParams(window.location.search);function nh(e){const t=e.trim().toLowerCase();return t===".inf"||t==="inf"}function W_(e){if(nh(e))return!0;const t=Number(e);return e.trim()!==""&&Number.isInteger(t)&&t>=qy}function d0(){const e=My().get("depth");if(e==null||e===""||nh(e))return null;const t=Number(e);return Number.isInteger(t)&&t>=qy?t:null}function u8(e){const t=My();e==null?t.delete("depth"):t.set("depth",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function c8({onChange:e}){const t=d0(),r=t==null?".inf":String(t),[n,i]=ft.useState(r);ft.useEffect(()=>i(r),[r]);const s=W_(n);return ye.jsx("input",{className:"depth-control"+(s?"":" invalid"),type:"text",title:"depth",value:n,onChange:o=>{const f=o.target.value;i(f),W_(f)&&(u8(nh(f)?null:Number(f)),e())}})}const $8=new Set(["chapter","markdown","asciidoc","marklower"]),f8=new Set(["chapter","task"]),Dy=["yamlover","json5p","yamlover/schema"],pl="yamlover",q$=e=>e.endsWith("schema"),Y_=e=>e==="json5p"?"json":"yaml";function M$(e){return ec(e.concrete)?["yamlover","json5p","yamlover/schema"]:["yamlover","yamlover/schema"]}function D$(e,t,r){return r.includes(e)?e:tu(t,t.concrete)??pl}function d8(e){const t=Vr(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const h8={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","application/pdf":"pdf"};function p8(e){const t=e.clipboardData;if(!t)return[];if(t.files&&t.files.length)return Array.from(t.files);const r=[];for(const n of Array.from(t.items||[]))if(n.kind==="file"){const i=n.getAsFile();i&&r.push(i)}return r}function _8(e){return e.name?e.name:`pasted.${h8[e.type]||"bin"}`}function m8(e){return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result).split(",")[1]||""),n.onerror=()=>r(new Error("could not read file")),n.readAsDataURL(e)})}const g8=ft.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:o,onOpenUploaded:f}){const[h,d]=ft.useState(null),[A,z]=ft.useState(null),[L,ne]=ft.useState(null),[ge,Q]=ft.useState(null),[F,Y]=ft.useState(0),[pe,se]=ft.useState(!1),[ve,Z]=ft.useState(null),[be,ue]=ft.useState(!1),Ee=ft.useRef(t),[,O]=ft.useReducer(yt=>yt+1,0),Ce=bd(t);cc(h);const $e=ft.useRef(!1);ft.useEffect(()=>{const yt=gt=>{$e.current&&(gt.key==="F2"&&!pe?(gt.preventDefault(),se(!0)):gt.key==="Escape"&&pe&&(gt.preventDefault(),se(!1)))};return document.addEventListener("keydown",yt),()=>document.removeEventListener("keydown",yt)},[pe]),ft.useEffect(()=>{const yt=Ee.current!==t;if(pe&&!yt)return;Q(null),yt&&(d(null),Ee.current=t);let gt=!1;return on(t).then(wt=>{if(gt)return;const At=N$(wt),et=I$(wt),ze=[...At.map(Me=>Me.name),...M$(wt),...et?[et.name]:[]],je=D$(r,wt,ze),Ge=[...At,...et?[et]:[]].find(Me=>Me.name===je),y=Me=>!gt&&d(Me),I=Me=>!gt&&Q(Me.message),xe=Pa(wt.concrete)||wt.type==="binary"?1:1/0;if(Ge){const Me=Ge.depth??1;Me!==xe?on(t,Me).then(y).catch(I):d(wt)}else{const Me=d0();(Me===null?1/0:Me)===xe?d(wt):on(t,Me).then(y).catch(I)}}).catch(wt=>!gt&&Q(wt.message)),()=>{gt=!0}},[t,F,n,r,pe]),ft.useEffect(()=>{if(!h)return;const yt=gt=>{const wt=gt.target;if(wt&&(wt.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(wt.tagName)))return;const At=p8(gt);if(At.length>0){gt.preventDefault(),w(At);return}const et=gt.clipboardData?.getData("text/html")??"",ze=et?r8(et):null;if(ze){gt.preventDefault(),j(ze);return}const je=gt.clipboardData?.getData("text/plain")??"";if(!je.trim())return;gt.preventDefault();const Ge=Zw(je);if(Ge){Ae(Ge);return}const y=Jw(je);if(y){de(y);return}V(je)};return document.addEventListener("paste",yt),()=>document.removeEventListener("paste",yt)},[h,t]),ft.useEffect(()=>{if(!h)return;const yt=je=>Array.from(je.dataTransfer?.types||[]).includes("Files");let gt=0;const wt=je=>{yt(je)&&(je.preventDefault(),gt++,ue(!0))},At=je=>{yt(je)&&(je.preventDefault(),je.dataTransfer&&(je.dataTransfer.dropEffect="copy"))},et=()=>{gt=Math.max(0,gt-1),gt===0&&ue(!1)},ze=je=>{if(!yt(je))return;je.preventDefault(),gt=0,ue(!1);const Ge=Array.from(je.dataTransfer?.files||[]);Ge.length&&w(Ge)};return document.addEventListener("dragenter",wt),document.addEventListener("dragover",At),document.addEventListener("dragleave",et),document.addEventListener("drop",ze),()=>{document.removeEventListener("dragenter",wt),document.removeEventListener("dragover",At),document.removeEventListener("dragleave",et),document.removeEventListener("drop",ze)}},[h,t]);const w=async yt=>{try{Z(`uploading ${yt.length} file${yt.length>1?"s":""}…`);let gt=null;for(const wt of yt){const At=await m8(wt);gt=await y4(t,_8(wt),At)}Z(yt.length>1?`uploaded ${yt.length} files`:"uploaded"),window.setTimeout(()=>Z(null),1500),gt?.open?f?.(gt):(Y(wt=>wt+1),o?.(t))}catch(gt){Z("paste failed: "+gt.message),window.setTimeout(()=>Z(null),4e3)}},Ae=async({url:yt,name:gt})=>{try{Z(`downloading ${gt}…`);const wt=await fetch(yt);if(!wt.ok)throw new Error(`HTTP ${wt.status} fetching ${yt}`);const At=await wt.blob();await w([new File([At],gt,{type:"application/pdf"})])}catch(wt){Z("download failed: "+wt.message),window.setTimeout(()=>Z(null),4e3)}},j=async yt=>{try{const gt=Iy(yt);gt&&Z(`downloading ${gt} image${gt>1?"s":""}…`);const wt=await Ny(yt);Z("pasting…");const At=await x4(t,wt);Z(At.chapter?"chunks added":"chapter created"),window.setTimeout(()=>Z(null),1500),At.open?f?.(At):(Y(et=>et+1),o?.(t))}catch(gt){Z("paste failed: "+gt.message),window.setTimeout(()=>Z(null),4e3)}},de=async yt=>{try{Z("fetching tweet…"),await V(await Ow(yt))}catch(gt){Z("tweet fetch failed: "+gt.message),window.setTimeout(()=>Z(null),4e3)}},V=async yt=>{try{Z("pasting text…");const gt=await b4(t,yt);Z(gt.chapter?"chunk added":"chapter created"),window.setTimeout(()=>Z(null),1500),gt.open?f?.(gt):(Y(wt=>wt+1),o?.(t))}catch(gt){Z("paste failed: "+gt.message),window.setTimeout(()=>Z(null),4e3)}};if(ft.useEffect(()=>{h&&(document.title=h.title?.trim()||d8(t)||"yamlover")},[h,t]),ft.useEffect(()=>{if(z(null),ne(null),!h)return;const yt=N$(h),gt=I$(h),wt=[...yt.map(et=>et.name),...M$(h),...gt?[gt.name]:[]],At=D$(r,h,wt);[...yt,...gt?[gt]:[]].some(et=>et.name===At)||(q$(At)?f4(t,d0()??void 0).then(z).catch(et=>Q(et.message)):(h.type==="binary"||h.valueType==="binary")&&on(t,void 0,{binary:!0}).then(et=>ne(et.value)).catch(et=>Q(et.message)))},[r,t,h]),ge)return ye.jsx("div",{className:"error",children:ge});if(!h)return ye.jsx("div",{className:"loading",children:"…"});const Fe=N$(h),ce=M$(h),U=I$(h),x=U?[...Fe,U]:Fe,$=[...Fe.map(yt=>yt.name),...ce,...U?[U.name]:[]],l=D$(r,h,$),c=yt=>x.find(gt=>gt.name===yt)?.label??yt,p={yamlover:"y:",json5p:"{}","yamlover/schema":"$"},_=yt=>x.find(gt=>gt.name===yt)?.icon??p[yt]??yt,S=x.find(yt=>yt.name===l)??null,C=S!=null,ee=C&&!!S&&f8.has(S.name);$e.current=ee;const Le=h.documentPath??t;let nt,dt;C?(nt=h.value,dt=!0):q$(l)?(nt=A,dt=A!=null):h.type==="binary"||h.valueType==="binary"?(nt=L,dt=L!=null):(nt=h.value,dt=!0);const{tags:lt,rest:xt}=t3(h.relations),bt=[...lt];for(const yt of Ce)yt.fragmentSlug||yt.tag&&!bt.some(gt=>gt.path===yt.tag.path)&&bt.push({path:yt.tag.path,label:yt.tag.name,color:yt.tag.color});return ye.jsxs("div",{className:"nodeview",children:[ve&&ye.jsx("div",{className:"paste-toast",children:ve}),be&&ye.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),ye.jsxs("div",{className:"nodehead",children:[ye.jsxs("div",{className:"nodemeta",children:[ye.jsx("span",{className:"tag",children:h.type}),h.concrete&&ye.jsx("span",{className:"tag dim",children:h.concrete}),ye.jsx(Cg,{tags:bt,onNavigate:s})]}),ye.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),ee&&ye.jsxs("button",{className:"lockbtn"+(pe?" unlocked":""),title:pe?"Editing — click or Esc to finish":"Read-only — click or F2 to edit","aria-pressed":pe,onClick:()=>se(yt=>!yt),children:[ye.jsx("span",{className:"lockbtn-icon","aria-hidden":"true",children:pe?"✓":"✏️"}),ye.jsx("span",{className:"lockbtn-label",children:pe?"Done":"Edit"})]}),ye.jsx("div",{className:"tabs",children:$.map(yt=>ye.jsxs(ft.Fragment,{children:[ye.jsx("button",{className:"tab"+(l===yt?" active":""),title:c(yt),"aria-label":c(yt),onClick:()=>i(yt),children:_(yt)}),C&&S&&yt===S.name&&S.config?.(O,h),!C&&yt===l&&ye.jsx(c8,{onChange:()=>Y(gt=>gt+1)})]},yt))})]}),!C&&h.description&&ye.jsx("p",{className:"nodedesc",children:h.description}),C?ye.jsx(kg.Provider,{value:{unlocked:pe},children:$8.has(S.name)&&!pe?ye.jsx(w3,{path:t,children:S.render(h,s)}):S.render(h,s)}):ye.jsxs("pre",{className:"code",children:[!q$(l)&&Object.keys(xt).length>0&&ye.jsxs(ye.Fragment,{children:[ye.jsx(bp,{value:xt,syntax:Y_(l),onNavigate:s,documentPath:Le,nodePath:t,anchors:!1}),ye.jsx("hr",{className:"reldiv"})]}),dt?ye.jsx(bp,{value:nt,syntax:Y_(l),onNavigate:s,documentPath:Le,nodePath:t,comments:h.comments}):"…"]})]})});function v8(e,t){return(e===":"?"":e)+":yamlover-fragments:"+t}function y8(e){const t=[],r=new Map;for(const n of e){if(!n.fragmentSlug)continue;let i=r.get(n.fragmentSlug);i?(!i.selector&&n.selector&&(i.selector=n.selector),!i.imageUrl&&n.imageUrl&&(i.imageUrl=n.imageUrl)):(i={slug:n.fragmentSlug,node:n.node,selector:n.selector,imageUrl:n.imageUrl,tags:[]},r.set(n.fragmentSlug,i),t.push(n.fragmentSlug)),n.tag&&!i.tags.some(s=>s.path===n.tag.path)&&i.tags.push({path:n.tag.path,label:n.tag.name,color:n.tag.color})}return t.map(n=>r.get(n))}function b8(e){const t=e.selector;if(t?.type==="text"&&typeof t.exact=="string")return t.exact;switch(t?.type){case"map":return"map region";case"pdf":return"PDF region";case"rect":return"image region";case"djvu":return"djvu region";default:return"fragment"}}function x8({path:e,groups:t,width:r,onNavigate:n}){const[i,s]=ft.useState(new Set),o=d=>{window.location.hash="#"+_g(d.node??e,d.slug)},f=async d=>{s(z=>new Set(z).add(d.slug));const A=v8(d.node??e,d.slug);try{for(const z of d.tags)await Ou(A,z.path)}catch(z){s(L=>{const ne=new Set(L);return ne.delete(d.slug),ne}),window.alert("delete failed: "+z.message)}},h=t.filter(d=>!i.has(d.slug));return h.length===0?null:ye.jsxs("aside",{className:"pane fragments",style:{width:r},children:[ye.jsxs("div",{className:"fragments-head",children:[ye.jsx("span",{className:"fragments-title",children:"Fragments"}),ye.jsx("span",{className:"fragments-count",children:h.length})]}),ye.jsx("ul",{className:"fragments-list",children:h.map(d=>ye.jsxs("li",{className:"fragment-row",children:[ye.jsxs("div",{className:"fragment-main",children:[ye.jsx("button",{type:"button",className:"fragment-locate",title:"Scroll to this fragment",onClick:()=>o(d),children:d.imageUrl?ye.jsx("img",{className:"fragment-thumb",src:d.imageUrl,alt:""}):ye.jsx("span",{className:"fragment-excerpt",children:b8(d)})}),ye.jsx("button",{type:"button",className:"fragment-delete",title:"Delete this fragment","aria-label":"Delete this fragment",onClick:()=>f(d),children:"✕"})]}),d.tags.length>0&&ye.jsx("div",{className:"fragment-tags",children:ye.jsx(Cg,{tags:d.tags,onNavigate:n})})]},d.slug))})]})}const w8=e=>Dy.includes(e),k8=(e,t)=>w8(e)&&(e!=="json5p"||ec(t));function G_(e){try{return localStorage.getItem(e)==="1"}catch{return!1}}const na=1;function h0(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>h0(n,t,r))}:e}function Ly(e,t){if(!e)return t;const r=new Map(e.children.map(i=>[i.path,i])),n=t.children.length?t.children.map(i=>Ly(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function p0(e,t,r){return e.path===t?Ly(e,r):e.children.length?{...e,children:e.children.map(n=>p0(n,t,r))}:e}function ma(e,t){if(e.path===t)return e;for(const r of e.children){const n=ma(r,t);if(n)return n}return null}function S8(e,t){const r=Vr(t);for(let n=0;n<r.length;n++){const i=Un(r.slice(0,n)),s=ma(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function E8(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of zy(n).children)r(i)};return r(e),t}function A8(){const[e,t]=ft.useState(null),[r,n]=ft.useState(null),[i,s]=ft.useState(mp()),[o,f]=ft.useState(gp(pl)),[h,d]=ft.useState(""),[A,z]=ft.useState("idle"),L=ft.useCallback(()=>{const lt=":.yamlover:settings.yamlover";ea(lt,"settings",!1),s(lt),f("settings")},[]),[ne,ge]=ft.useState(320),[Q,F]=ft.useState(300),[Y,pe]=ft.useState(()=>G_("yo-left-collapsed")),[se,ve]=ft.useState(()=>G_("yo-right-collapsed"));ft.useEffect(()=>{try{localStorage.setItem("yo-left-collapsed",Y?"1":"0")}catch{}},[Y]),ft.useEffect(()=>{try{localStorage.setItem("yo-right-collapsed",se?"1":"0")}catch{}},[se]);const Z=ft.useRef(null),be=y8(bd(i)),ue=be.length>0&&!se&&!Dy.includes(o);ft.useEffect(()=>{hp().then(lt=>d(lt.root)).catch(()=>{})},[]);const[Ee,O]=ft.useState([]);ft.useEffect(()=>{$4().then(O).catch(()=>{})},[]);const Ce=ft.useCallback(lt=>{O(xt=>[...xt.filter(bt=>bt.id!==lt.id),lt].sort((bt,yt)=>bt.startedAt-yt.startedAt)),lt.state!=="running"&&setTimeout(()=>O(xt=>xt.filter(bt=>bt.id!==lt.id)),3e3)},[]),$e=ft.useRef(new URLSearchParams(window.location.search).has("format"));ft.useEffect(()=>{ea(i,o,!0)},[]),ft.useEffect(()=>{Os(":",na).then(t).catch(lt=>n(lt.message))},[]);const w=ft.useRef(!1);ft.useEffect(()=>{if($e.current||w.current||!e)return;const lt=ma(e,i);if(!lt)return;w.current=!0;const xt=tu(lt,lt.concrete);xt&&(f(xt),ea(i,xt,!0))},[e,i]);const Ae=ft.useCallback(async(lt,xt=na)=>{const bt=await Os(lt,xt);t(yt=>yt&&h0(yt,lt,bt.children))},[]);ft.useEffect(()=>{if(!e)return;const lt=S8(e,i);lt&&Ae(lt).catch(()=>{})},[e,i,Ae]);const j=ft.useRef(e);j.current=e;const de=ft.useRef(i);de.current=i;const[V,Fe]=ft.useState(0),ce=ft.useCallback(async lt=>{const xt=j.current;if(!xt)return;const bt=new Set;for(const gt of lt){const wt=Vr(gt);let At=":";for(let et=0;et<wt.length;et++){const ze=Un(wt.slice(0,et)),je=ma(xt,ze);if(!je)break;(ze===":"||je.children.length>0)&&(At=ze)}bt.add(At)}const yt=[...bt].filter(gt=>![...bt].some(wt=>wt!==gt&&Sl(wt,gt)));await Promise.all(yt.map(async gt=>{const wt=await Os(gt,na);t(At=>At&&p0(At,gt,wt))}))},[]),U=ft.useCallback(()=>{j.current||(Os(":",na).then(lt=>{t(lt),n(null)}).catch(()=>{}),hp().then(lt=>d(lt.root)).catch(()=>{}))},[]);ft.useEffect(()=>{if(typeof EventSource>"u")return;const lt=new EventSource(kr("/api/events"));let xt=!1;return lt.onopen=()=>{if(!xt){xt=!0;return}U(),Os(":",na).then(bt=>t(yt=>yt?p0(yt,":",bt):bt)).catch(()=>{}),Fe(bt=>bt+1)},lt.onmessage=bt=>{try{const yt=JSON.parse(bt.data);if(yt.type==="task"){const et=yt.task;Ce(et),et.state==="done"&&U();return}const gt=yt;U();const wt=[...gt.added,...gt.changed,...gt.removed,...(gt.moved??[]).flatMap(et=>[et.from,et.to])];if(!wt.length)return;n3({paths:wt,removed:gt.removed}),ce(wt).catch(()=>{});const At=de.current;wt.some(et=>et===At||Sl(et,At)||Sl(At,et))&&Fe(et=>et+1)}catch{}},()=>lt.close()},[ce,Ce,U]),ft.useEffect(()=>{const lt=()=>{s(mp()),f(gp(pl))};return window.addEventListener("popstate",lt),()=>window.removeEventListener("popstate",lt)},[]);const x=ft.useCallback(lt=>{const xt=e?ma(e,lt):null;let bt=o;xt&&(bt=tu(xt,xt.concrete)??(k8(o,xt.concrete)?o:pl)),ea(lt,bt,!1),s(lt),bt!==o&&f(bt)},[o,e]),$=ft.useCallback(lt=>{x(lt),Z.current?.focus()},[x]),{openAt:l,tagMenu:c}=wd({onCreate:(lt,xt,bt)=>void cg(lt,xt,bt).then(yt=>x(yt.path)).catch(yt=>window.alert("create failed: "+yt.message))}),p=ft.useCallback((lt,xt,bt)=>l(lt.path,xt,bt,lt),[l]),_=ft.useRef(x);_.current=x,ft.useEffect(()=>{const lt=xt=>{if(!(xt.ctrlKey||xt.altKey)||xt.key!=="ArrowDown"&&xt.key!=="ArrowUp")return;const bt=xt.target;if(bt&&(bt.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(bt.tagName)))return;const yt=E8(j.current),gt=yt.indexOf(de.current);if(gt<0)return;const wt=Math.min(Math.max(gt+(xt.key==="ArrowDown"?1:-1),0),yt.length-1);xt.preventDefault(),wt!==gt&&_.current(yt[wt])};return window.addEventListener("keydown",lt),()=>window.removeEventListener("keydown",lt)},[]);const S=ft.useCallback(lt=>{ea(i,lt,!0),f(lt)},[i]),C=ft.useCallback(lt=>{const xt=e?ma(e,lt):null;Ae(xt?lt:":").catch(()=>{})},[e,Ae]),ee=ft.useCallback(async lt=>{const xt=lt.dir??":";try{const bt=await Os(xt,na);t(wt=>wt&&h0(wt,xt,bt.children));const yt=bt.children.find(wt=>wt.path===lt.path),gt=(yt?tu(yt,yt.concrete):null)??pl;ea(lt.path,gt,!1),s(lt.path),f(gt)}catch{x(lt.path)}},[x]),Le=ft.useRef(null);ft.useEffect(()=>{const lt=bt=>{Le.current==="left"?ge(Math.min(Math.max(bt.clientX,160),window.innerWidth-240)):Le.current==="right"&&F(Math.min(Math.max(window.innerWidth-bt.clientX,200),window.innerWidth-240))},xt=()=>{Le.current=null,document.body.style.userSelect=""};return window.addEventListener("mousemove",lt),window.addEventListener("mouseup",xt),()=>{window.removeEventListener("mousemove",lt),window.removeEventListener("mouseup",xt)}},[]);const nt=lt=>{Le.current=lt,document.body.style.userSelect="none"},dt=ft.useCallback(async()=>{if(A!=="busy"){z("busy");try{const{files:lt}=await v4(),xt=lt.filter(bt=>bt.status!=="exists").map(bt=>bt.name);n(null),window.alert(xt.length?`Installed agent guide: ${xt.join(", ")}.`:"Agent guide is already up to date.")}catch(lt){n(`agent docs: ${lt.message}`)}finally{z("idle")}}},[A]);return ye.jsxs("div",{className:"app",children:[ye.jsxs("header",{className:"topbar",children:[ye.jsx("button",{type:"button",className:"crumb-action pane-toggle",title:Y?"Show the tree":"Hide the tree","aria-label":Y?"Show the tree":"Hide the tree","aria-pressed":!Y,onClick:()=>pe(lt=>!lt),children:Y?"»":"«"}),ye.jsxs("nav",{className:"crumbs",children:[ye.jsx("button",{type:"button",className:"crumb-action crumb-settings",title:"Project configuration (settings.yamlover)","aria-label":"Project configuration",onClick:L,children:"⚙"}),ye.jsx("button",{type:"button",className:"crumb-action",disabled:A==="busy",title:"Install the LLM agent guide (AGENTS.md + CLAUDE.md) into this project","aria-label":"Install LLM agent guide",onClick:dt,children:"🤖"}),z4(i,h).map((lt,xt)=>ye.jsxs("span",{children:[xt>0&&ye.jsx("span",{className:"crumb-sep",children:":"}),ye.jsx("a",{className:"crumb",href:lt.path,onClick:bt=>{bt.preventDefault(),x(lt.path)},children:lt.label})]},lt.path))]}),ye.jsxs("div",{className:"topbar-right",children:[ye.jsx(Qw,{tasks:Ee}),be.length>0&&ye.jsx("button",{type:"button",className:"crumb-action pane-toggle",title:se?"Show fragments":"Hide fragments","aria-label":se?"Show fragments":"Hide fragments","aria-pressed":!se,onClick:()=>ve(lt=>!lt),children:se?"«":"»"})]})]}),ye.jsxs("div",{className:"body",children:[!Y&&ye.jsxs(ye.Fragment,{children:[ye.jsx("aside",{className:"pane left",style:{width:ne},children:(()=>{const lt=e?void 0:Ee.find(xt=>xt.state==="running");if(lt){const{done:xt,total:bt}=lt.progress;return ye.jsxs("div",{className:"loading",children:[lt.label,"… ",bt?`${xt}/${bt}`:""]})}return r?ye.jsx("div",{className:"error",children:r}):e?ye.jsx(Xw,{node:e,current:i,onSelect:$,onLoadChildren:Ae,onContext:p}):ye.jsx("div",{className:"loading",children:"loading…"})})()}),ye.jsx("div",{className:"splitter",onMouseDown:()=>nt("left")})]}),ye.jsx("main",{className:"pane right",ref:Z,tabIndex:-1,children:(()=>{const lt=e?void 0:Ee.find(xt=>xt.state==="running");if(lt){const{done:xt,total:bt}=lt.progress;return ye.jsxs("div",{className:"loading",children:[lt.label,"… ",bt?`${xt}/${bt}`:""]})}return ye.jsx(g8,{path:i,format:o,refreshSignal:V,onFormat:S,onNavigate:x,onContentChanged:C,onOpenUploaded:ee})})()}),ue&&ye.jsxs(ye.Fragment,{children:[ye.jsx("div",{className:"splitter",onMouseDown:()=>nt("right")}),ye.jsx(x8,{path:i,groups:be,width:Q,onNavigate:x})]})]}),c]})}class C8 extends ft.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){console.error("yamlover UI crashed:",t)}render(){const{error:t}=this.state;return t?ye.jsxs("div",{className:"crash",children:[ye.jsx("h1",{children:"Something went wrong"}),ye.jsx("p",{children:"The viewer hit an error and stopped rendering."}),ye.jsx("pre",{children:t.message}),ye.jsxs("div",{className:"crash-actions",children:[ye.jsx("button",{onClick:()=>this.setState({error:null}),children:"Try again"}),ye.jsx("button",{onClick:()=>location.reload(),children:"Reload"})]})]}):this.props.children}}lg(document.getElementById("root")).render(ye.jsx(e2.StrictMode,{children:ye.jsx(C8,{children:ye.jsx(A8,{})})}));export{a3 as D,T8 as a,vs as b,l3 as c,Hn as d,wp as e,_g as f,Fy as g,x3 as h,_d as i,ye as j,v3 as k,R8 as p,ft as r,$0 as s,Zx as u,z8 as w};