yamlover 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/yamlover.js +199 -112
- package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/client/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
- package/dist/client/assets/decoded-DRWSdzgb.js +1 -0
- package/dist/client/assets/djvu-CD0wXtTp.js +1 -0
- package/dist/client/assets/docx-BP_KsH_m.js +230 -0
- package/dist/client/assets/heic-B_4kLge_.js +66 -0
- package/dist/client/assets/imagemap-j0tV2wtS.js +1 -0
- package/dist/client/assets/index-BiwY33f2.js +617 -0
- package/dist/client/assets/index-wTjOzmSY.css +1 -0
- package/dist/client/assets/map-Cb9TTMM9.js +1 -0
- package/dist/client/assets/paged-DK_n72xc.js +1 -0
- package/dist/client/assets/panzoom-CIGW-MKW.css +1 -0
- package/dist/client/assets/panzoom-tORQ67Sx.js +4 -0
- package/dist/client/assets/pdf-DfMLV_Qu.js +12 -0
- package/dist/client/assets/pdf-m5e3jsV4.css +1 -0
- package/dist/client/assets/pdf.worker.min-qwK7q_zL.mjs +28 -0
- package/dist/client/assets/psd-CVyrW016.js +11 -0
- package/dist/client/assets/spreadsheet-QnPEhgjy.js +38 -0
- package/dist/client/assets/tiff-BswbwivW.js +1 -0
- package/{index.html → dist/client/index.html} +2 -1
- package/package.json +18 -21
- package/src/client/App.tsx +0 -424
- package/src/client/NodeView.tsx +0 -422
- package/src/client/TaskStrip.tsx +0 -34
- package/src/client/Tree.tsx +0 -97
- package/src/client/api.ts +0 -213
- package/src/client/icons.ts +0 -91
- package/src/client/links.tsx +0 -108
- package/src/client/live.ts +0 -42
- package/src/client/main.tsx +0 -10
- package/src/client/paste-html.ts +0 -228
- package/src/client/paste-links.ts +0 -42
- package/src/client/paths.ts +0 -139
- package/src/client/render.tsx +0 -339
- package/src/client/renderers/annotate.tsx +0 -641
- package/src/client/renderers/asciidoc.tsx +0 -36
- package/src/client/renderers/chapter.tsx +0 -142
- package/src/client/renderers/csv.tsx +0 -234
- package/src/client/renderers/decoded.tsx +0 -72
- package/src/client/renderers/djvu.tsx +0 -271
- package/src/client/renderers/djvuWorker.ts +0 -99
- package/src/client/renderers/doc.tsx +0 -40
- package/src/client/renderers/docx.tsx +0 -49
- package/src/client/renderers/epub.tsx +0 -147
- package/src/client/renderers/explorer.tsx +0 -294
- package/src/client/renderers/fb2.tsx +0 -149
- package/src/client/renderers/headings.ts +0 -69
- package/src/client/renderers/heic.tsx +0 -23
- package/src/client/renderers/imagemap.tsx +0 -170
- package/src/client/renderers/kml.ts +0 -46
- package/src/client/renderers/latex.tsx +0 -37
- package/src/client/renderers/map.tsx +0 -205
- package/src/client/renderers/marklower.tsx +0 -120
- package/src/client/renderers/markup.tsx +0 -64
- package/src/client/renderers/media.tsx +0 -19
- package/src/client/renderers/paged.ts +0 -137
- package/src/client/renderers/panzoom.ts +0 -101
- package/src/client/renderers/pdf.tsx +0 -316
- package/src/client/renderers/plaintext.tsx +0 -120
- package/src/client/renderers/plantuml.tsx +0 -83
- package/src/client/renderers/psd.tsx +0 -25
- package/src/client/renderers/registry.tsx +0 -411
- package/src/client/renderers/rtf.tsx +0 -210
- package/src/client/renderers/spreadsheet.tsx +0 -105
- package/src/client/renderers/tag.tsx +0 -113
- package/src/client/renderers/text.tsx +0 -42
- package/src/client/renderers/tiff.tsx +0 -33
- package/src/client/styles.css +0 -1212
- package/src/client/vendor/README.md +0 -30
- package/src/client/vite-env.d.ts +0 -31
- package/src/server/api.ts +0 -147
- package/src/server/embed.ts +0 -187
- package/src/server/engine-api.ts +0 -1563
- package/src/server/gitignore.ts +0 -81
- package/src/server/node-kind.ts +0 -61
- package/src/server/tasks.ts +0 -83
- package/src/server/yamlover.ts +0 -1133
- /package/{src/client/vendor/djvu.js → dist/client/assets/djvu-Ci0lFKxE.js} +0 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-DfMLV_Qu.js","assets/paged-DK_n72xc.js","assets/pdf-m5e3jsV4.css","assets/djvu-CD0wXtTp.js","assets/psd-CVyrW016.js","assets/decoded-DRWSdzgb.js","assets/imagemap-j0tV2wtS.js","assets/panzoom-tORQ67Sx.js","assets/panzoom-CIGW-MKW.css","assets/tiff-BswbwivW.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-B_4kLge_.js","assets/docx-BP_KsH_m.js","assets/map-Cb9TTMM9.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 c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).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 l7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T_={exports:{}},lu={},z_={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 kl=Symbol.for("react.element"),Wg=Symbol.for("react.portal"),Yg=Symbol.for("react.fragment"),Gg=Symbol.for("react.strict_mode"),Kg=Symbol.for("react.profiler"),Xg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),Zg=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),Og=Symbol.for("react.memo"),ev=Symbol.for("react.lazy"),td=Symbol.iterator;function tv(e){return e===null||typeof e!="object"?null:(e=td&&e[td]||e["@@iterator"],typeof e=="function"?e:null)}var R_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N_=Object.assign,I_={};function pa(e,t,r){this.props=e,this.context=t,this.refs=I_,this.updater=r||R_}pa.prototype.isReactComponent={};pa.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")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function q_(){}q_.prototype=pa.prototype;function mf(e,t,r){this.props=e,this.context=t,this.refs=I_,this.updater=r||R_}var gf=mf.prototype=new q_;gf.constructor=mf;N_(gf,pa.prototype);gf.isPureReactComponent=!0;var rd=Array.isArray,M_=Object.prototype.hasOwnProperty,vf={current:null},D_={key:!0,ref:!0,__self:!0,__source:!0};function L_(e,t,r){var n,i={},s=null,c=null;if(t!=null)for(n in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)M_.call(t,n)&&!D_.hasOwnProperty(n)&&(i[n]=t[n]);var d=arguments.length-2;if(d===1)i.children=r;else if(1<d){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];i.children=p}if(e&&e.defaultProps)for(n in d=e.defaultProps,d)i[n]===void 0&&(i[n]=d[n]);return{$$typeof:kl,type:e,key:s,ref:c,props:i,_owner:vf.current}}function rv(e,t){return{$$typeof:kl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yf(e){return typeof e=="object"&&e!==null&&e.$$typeof===kl}function nv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var nd=/\/+/g;function Wu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nv(""+e.key):t.toString(36)}function oo(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case kl:case Wg:c=!0}}if(c)return c=e,i=i(c),e=n===""?"."+Wu(c,0):n,rd(i)?(r="",e!=null&&(r=e.replace(nd,"$&/")+"/"),oo(i,t,r,"",function(h){return h})):i!=null&&(yf(i)&&(i=rv(i,r+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(nd,"$&/")+"/")+e)),t.push(i)),1;if(c=0,n=n===""?".":n+":",rd(e))for(var d=0;d<e.length;d++){s=e[d];var p=n+Wu(s,d);c+=oo(s,t,r,p,i)}else if(p=tv(e),typeof p=="function")for(e=p.call(e),d=0;!(s=e.next()).done;)s=s.value,p=n+Wu(s,d++),c+=oo(s,t,r,p,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 c}function ql(e,t,r){if(e==null)return e;var n=[],i=0;return oo(e,n,"","",function(s){return t.call(r,s,i++)}),n}function iv(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 ln={current:null},uo={transition:null},sv={ReactCurrentDispatcher:ln,ReactCurrentBatchConfig:uo,ReactCurrentOwner:vf};function F_(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:ql,forEach:function(e,t,r){ql(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ql(e,function(){t++}),t},toArray:function(e){return ql(e,function(t){return t})||[]},only:function(e){if(!yf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=pa;Ot.Fragment=Yg;Ot.Profiler=Kg;Ot.PureComponent=mf;Ot.StrictMode=Gg;Ot.Suspense=Jg;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sv;Ot.act=F_;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=N_({},e.props),i=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=vf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(p in t)M_.call(t,p)&&!D_.hasOwnProperty(p)&&(n[p]=t[p]===void 0&&d!==void 0?d[p]:t[p])}var p=arguments.length-2;if(p===1)n.children=r;else if(1<p){d=Array(p);for(var h=0;h<p;h++)d[h]=arguments[h+2];n.children=d}return{$$typeof:kl,type:e.type,key:i,ref:s,props:n,_owner:c}};Ot.createContext=function(e){return e={$$typeof:Qg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Xg,_context:e},e.Consumer=e};Ot.createElement=L_;Ot.createFactory=function(e){var t=L_.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:Zg,render:e}};Ot.isValidElement=yf;Ot.lazy=function(e){return{$$typeof:ev,_payload:{_status:-1,_result:e},_init:iv}};Ot.memo=function(e,t){return{$$typeof:Og,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=uo.transition;uo.transition={};try{e()}finally{uo.transition=t}};Ot.unstable_act=F_;Ot.useCallback=function(e,t){return ln.current.useCallback(e,t)};Ot.useContext=function(e){return ln.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return ln.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return ln.current.useEffect(e,t)};Ot.useId=function(){return ln.current.useId()};Ot.useImperativeHandle=function(e,t,r){return ln.current.useImperativeHandle(e,t,r)};Ot.useInsertionEffect=function(e,t){return ln.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return ln.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return ln.current.useMemo(e,t)};Ot.useReducer=function(e,t,r){return ln.current.useReducer(e,t,r)};Ot.useRef=function(e){return ln.current.useRef(e)};Ot.useState=function(e){return ln.current.useState(e)};Ot.useSyncExternalStore=function(e,t,r){return ln.current.useSyncExternalStore(e,t,r)};Ot.useTransition=function(){return ln.current.useTransition()};Ot.version="18.3.1";z_.exports=Ot;var yt=z_.exports;const av=Vg(yt);/**
|
|
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 lv=yt,ov=Symbol.for("react.element"),uv=Symbol.for("react.fragment"),cv=Object.prototype.hasOwnProperty,$v=lv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fv={key:!0,ref:!0,__self:!0,__source:!0};function B_(e,t,r){var n,i={},s=null,c=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(c=t.ref);for(n in t)cv.call(t,n)&&!fv.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:ov,type:e,key:s,ref:c,props:i,_owner:$v.current}}lu.Fragment=uv;lu.jsx=B_;lu.jsxs=B_;T_.exports=lu;var Oe=T_.exports,P_={exports:{}},An={},j_={exports:{}},U_={};/**
|
|
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(te,B){var w=te.length;te.push(B);e:for(;0<w;){var $=w-1>>>1,l=te[$];if(0<i(l,B))te[$]=B,te[w]=l,w=$;else break e}}function r(te){return te.length===0?null:te[0]}function n(te){if(te.length===0)return null;var B=te[0],w=te.pop();if(w!==B){te[0]=w;e:for(var $=0,l=te.length,o=l>>>1;$<o;){var f=2*($+1)-1,_=te[f],A=f+1,T=te[A];if(0>i(_,w))A<l&&0>i(T,_)?(te[$]=T,te[A]=w,$=A):(te[$]=_,te[f]=w,$=f);else if(A<l&&0>i(T,w))te[$]=T,te[A]=w,$=A;else break e}}return B}function i(te,B){var w=te.sortIndex-B.sortIndex;return w!==0?w:te.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],h=[],q=1,j=null,G=3,pe=!1,ke=!1,$e=!1,W=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,ve=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ae(te){for(var B=r(h);B!==null;){if(B.callback===null)n(h);else if(B.startTime<=te)n(h),B.sortIndex=B.expirationTime,t(p,B);else break;B=r(h)}}function ye(te){if($e=!1,ae(te),!ke)if(r(p)!==null)ke=!0,D(le);else{var B=r(h);B!==null&&qe(ye,B.startTime-te)}}function le(te,B){ke=!1,$e&&($e=!1,Z(ze),ze=-1),pe=!0;var w=G;try{for(ae(B),j=r(p);j!==null&&(!(j.expirationTime>B)||te&&!oe());){var $=j.callback;if(typeof $=="function"){j.callback=null,G=j.priorityLevel;var l=$(j.expirationTime<=B);B=e.unstable_now(),typeof l=="function"?j.callback=l:j===r(p)&&n(p),ae(B)}else n(p);j=r(p)}if(j!==null)var o=!0;else{var f=r(h);f!==null&&qe(ye,f.startTime-B),o=!1}return o}finally{j=null,G=w,pe=!1}}var we=!1,ce=null,ze=-1,X=5,Ae=-1;function oe(){return!(e.unstable_now()-Ae<X)}function k(){if(ce!==null){var te=e.unstable_now();Ae=te;var B=!0;try{B=ce(!0,te)}finally{B?Se():(we=!1,ce=null)}}else we=!1}var Se;if(typeof ve=="function")Se=function(){ve(k)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,de=F.port2;F.port1.onmessage=k,Se=function(){de.postMessage(null)}}else Se=function(){W(k,0)};function D(te){ce=te,we||(we=!0,Se())}function qe(te,B){ze=W(function(){te(e.unstable_now())},B)}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(te){te.callback=null},e.unstable_continueExecution=function(){ke||pe||(ke=!0,D(le))},e.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<te?Math.floor(1e3/te):5},e.unstable_getCurrentPriorityLevel=function(){return G},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(te){switch(G){case 1:case 2:case 3:var B=3;break;default:B=G}var w=G;G=B;try{return te()}finally{G=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(te,B){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var w=G;G=te;try{return B()}finally{G=w}},e.unstable_scheduleCallback=function(te,B,w){var $=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?$+w:$):w=$,te){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=w+l,te={id:q++,callback:B,priorityLevel:te,startTime:w,expirationTime:l,sortIndex:-1},w>$?(te.sortIndex=w,t(h,te),r(p)===null&&te===r(h)&&($e?(Z(ze),ze=-1):$e=!0,qe(ye,w-$))):(te.sortIndex=l,t(p,te),ke||pe||(ke=!0,D(le))),te},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(te){var B=G;return function(){var w=G;G=B;try{return te.apply(this,arguments)}finally{G=w}}}})(U_);j_.exports=U_;var dv=j_.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 hv=yt,kn=dv;function Et(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 H_=new Set,il={};function Cs(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(il[e]=t,e=0;e<t.length;e++)H_.add(t[e])}var bi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=Object.prototype.hasOwnProperty,_v=/^[: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]*$/,id={},sd={};function pv(e){return Hc.call(sd,e)?!0:Hc.call(id,e)?!1:_v.test(e)?sd[e]=!0:(id[e]=!0,!1)}function mv(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 gv(e,t,r,n){if(t===null||typeof t>"u"||mv(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 on(e,t,r,n,i,s,c){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=c}var Vr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vr[e]=new on(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vr[t]=new on(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vr[e]=new on(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vr[e]=new on(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){Vr[e]=new on(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vr[e]=new on(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vr[e]=new on(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vr[e]=new on(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vr[e]=new on(e,5,!1,e.toLowerCase(),null,!1,!1)});var bf=/[\-:]([a-z])/g;function wf(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(bf,wf);Vr[t]=new on(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(bf,wf);Vr[t]=new on(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(bf,wf);Vr[t]=new on(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vr[e]=new on(e,1,!1,e.toLowerCase(),null,!1,!1)});Vr.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vr[e]=new on(e,1,!1,e.toLowerCase(),null,!0,!0)});function xf(e,t,r,n){var i=Vr.hasOwnProperty(t)?Vr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gv(t,r,i,n)&&(r=null),n||i===null?pv(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 Ai=hv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ml=Symbol.for("react.element"),Fs=Symbol.for("react.portal"),Bs=Symbol.for("react.fragment"),kf=Symbol.for("react.strict_mode"),Vc=Symbol.for("react.profiler"),V_=Symbol.for("react.provider"),W_=Symbol.for("react.context"),Sf=Symbol.for("react.forward_ref"),Wc=Symbol.for("react.suspense"),Yc=Symbol.for("react.suspense_list"),Af=Symbol.for("react.memo"),Di=Symbol.for("react.lazy"),Y_=Symbol.for("react.offscreen"),ad=Symbol.iterator;function Aa(e){return e===null||typeof e!="object"?null:(e=ad&&e[ad]||e["@@iterator"],typeof e=="function"?e:null)}var yr=Object.assign,Yu;function Pa(e){if(Yu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Yu=t&&t[1]||""}return`
|
|
35
|
+
`+Yu+e}var Gu=!1;function Ku(e,t){if(!e||Gu)return"";Gu=!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(h){var n=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){n=h}e.call(t.prototype)}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
|
|
36
|
+
`),s=n.stack.split(`
|
|
37
|
+
`),c=i.length-1,d=s.length-1;1<=c&&0<=d&&i[c]!==s[d];)d--;for(;1<=c&&0<=d;c--,d--)if(i[c]!==s[d]){if(c!==1||d!==1)do if(c--,d--,0>d||i[c]!==s[d]){var p=`
|
|
38
|
+
`+i[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=c&&0<=d);break}}}finally{Gu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Pa(e):""}function vv(e){switch(e.tag){case 5:return Pa(e.type);case 16:return Pa("Lazy");case 13:return Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 2:case 15:return e=Ku(e.type,!1),e;case 11:return e=Ku(e.type.render,!1),e;case 1:return e=Ku(e.type,!0),e;default:return""}}function Gc(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 Bs:return"Fragment";case Fs:return"Portal";case Vc:return"Profiler";case kf:return"StrictMode";case Wc:return"Suspense";case Yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W_:return(e.displayName||"Context")+".Consumer";case V_:return(e._context.displayName||"Context")+".Provider";case Sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Af:return t=e.displayName||null,t!==null?t:Gc(e.type)||"Memo";case Di:t=e._payload,e=e._init;try{return Gc(e(t))}catch{}}return null}function yv(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 Gc(t);case 8:return t===kf?"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 Ji(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function G_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bv(e){var t=G_(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(c){n=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=bv(e))}function K_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function So(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 Kc(e,t){var r=t.checked;return yr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ld(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ji(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 X_(e,t){t=t.checked,t!=null&&xf(e,"checked",t,!1)}function Xc(e,t){X_(e,t);var r=Ji(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")?Qc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Qc(e,t.type,Ji(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function od(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 Qc(e,t,r){(t!=="number"||So(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ja=Array.isArray;function Js(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=""+Ji(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 Zc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Et(91));return yr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ud(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Et(92));if(ja(r)){if(1<r.length)throw Error(Et(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ji(r)}}function Q_(e,t){var r=Ji(t.value),n=Ji(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 cd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Z_(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 Jc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Z_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ll,J_=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(Ll=Ll||document.createElement("div"),Ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ga={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},wv=["Webkit","ms","Moz","O"];Object.keys(Ga).forEach(function(e){wv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ga[t]=Ga[e]})});function O_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ga.hasOwnProperty(e)&&Ga[e]?(""+t).trim():t+"px"}function ep(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=O_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var xv=yr({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 Oc(e,t){if(t){if(xv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Et(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Et(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Et(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Et(62))}}function e$(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 t$=null;function Ef(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var r$=null,Os=null,ea=null;function $d(e){if(e=El(e)){if(typeof r$!="function")throw Error(Et(280));var t=e.stateNode;t&&(t=fu(t),r$(e.stateNode,e.type,t))}}function tp(e){Os?ea?ea.push(e):ea=[e]:Os=e}function rp(){if(Os){var e=Os,t=ea;if(ea=Os=null,$d(e),t)for(e=0;e<t.length;e++)$d(t[e])}}function np(e,t){return e(t)}function ip(){}var Xu=!1;function sp(e,t,r){if(Xu)return e(t,r);Xu=!0;try{return np(e,t,r)}finally{Xu=!1,(Os!==null||ea!==null)&&(ip(),rp())}}function al(e,t){var r=e.stateNode;if(r===null)return null;var n=fu(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(Et(231,t,typeof r));return r}var n$=!1;if(bi)try{var Ea={};Object.defineProperty(Ea,"passive",{get:function(){n$=!0}}),window.addEventListener("test",Ea,Ea),window.removeEventListener("test",Ea,Ea)}catch{n$=!1}function kv(e,t,r,n,i,s,c,d,p){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(q){this.onError(q)}}var Ka=!1,Ao=null,Eo=!1,i$=null,Sv={onError:function(e){Ka=!0,Ao=e}};function Av(e,t,r,n,i,s,c,d,p){Ka=!1,Ao=null,kv.apply(Sv,arguments)}function Ev(e,t,r,n,i,s,c,d,p){if(Av.apply(this,arguments),Ka){if(Ka){var h=Ao;Ka=!1,Ao=null}else throw Error(Et(198));Eo||(Eo=!0,i$=h)}}function Ts(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 ap(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 fd(e){if(Ts(e)!==e)throw Error(Et(188))}function Cv(e){var t=e.alternate;if(!t){if(t=Ts(e),t===null)throw Error(Et(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 fd(i),e;if(s===n)return fd(i),t;s=s.sibling}throw Error(Et(188))}if(r.return!==n.return)r=i,n=s;else{for(var c=!1,d=i.child;d;){if(d===r){c=!0,r=i,n=s;break}if(d===n){c=!0,n=i,r=s;break}d=d.sibling}if(!c){for(d=s.child;d;){if(d===r){c=!0,r=s,n=i;break}if(d===n){c=!0,n=s,r=i;break}d=d.sibling}if(!c)throw Error(Et(189))}}if(r.alternate!==n)throw Error(Et(190))}if(r.tag!==3)throw Error(Et(188));return r.stateNode.current===r?e:t}function lp(e){return e=Cv(e),e!==null?op(e):null}function op(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=op(e);if(t!==null)return t;e=e.sibling}return null}var up=kn.unstable_scheduleCallback,dd=kn.unstable_cancelCallback,Tv=kn.unstable_shouldYield,zv=kn.unstable_requestPaint,Ar=kn.unstable_now,Rv=kn.unstable_getCurrentPriorityLevel,Cf=kn.unstable_ImmediatePriority,cp=kn.unstable_UserBlockingPriority,Co=kn.unstable_NormalPriority,Nv=kn.unstable_LowPriority,$p=kn.unstable_IdlePriority,ou=null,si=null;function Iv(e){if(si&&typeof si.onCommitFiberRoot=="function")try{si.onCommitFiberRoot(ou,e,void 0,(e.current.flags&128)===128)}catch{}}var Kn=Math.clz32?Math.clz32:Dv,qv=Math.log,Mv=Math.LN2;function Dv(e){return e>>>=0,e===0?32:31-(qv(e)/Mv|0)|0}var Fl=64,Bl=4194304;function Ua(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 To(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,c=r&268435455;if(c!==0){var d=c&~i;d!==0?n=Ua(d):(s&=c,s!==0&&(n=Ua(s)))}else c=r&~i,c!==0?n=Ua(c):s!==0&&(n=Ua(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-Kn(t),i=1<<r,n|=e[r],t&=~i;return n}function Lv(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 Fv(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-Kn(s),d=1<<c,p=i[c];p===-1?(!(d&r)||d&n)&&(i[c]=Lv(d,t)):p<=t&&(e.expiredLanes|=d),s&=~d}}function s$(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fp(){var e=Fl;return Fl<<=1,!(Fl&4194240)&&(Fl=64),e}function Qu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Sl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kn(t),e[t]=r}function Bv(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-Kn(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function Tf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Kn(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var lr=0;function dp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hp,zf,_p,pp,mp,a$=!1,Pl=[],Hi=null,Vi=null,Wi=null,ll=new Map,ol=new Map,Fi=[],Pv="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 hd(e,t){switch(e){case"focusin":case"focusout":Hi=null;break;case"dragenter":case"dragleave":Vi=null;break;case"mouseover":case"mouseout":Wi=null;break;case"pointerover":case"pointerout":ll.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ol.delete(t.pointerId)}}function Ca(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=El(t),t!==null&&zf(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jv(e,t,r,n,i){switch(t){case"focusin":return Hi=Ca(Hi,e,t,r,n,i),!0;case"dragenter":return Vi=Ca(Vi,e,t,r,n,i),!0;case"mouseover":return Wi=Ca(Wi,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return ll.set(s,Ca(ll.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,ol.set(s,Ca(ol.get(s)||null,e,t,r,n,i)),!0}return!1}function gp(e){var t=ms(e.target);if(t!==null){var r=Ts(t);if(r!==null){if(t=r.tag,t===13){if(t=ap(r),t!==null){e.blockedOn=t,mp(e.priority,function(){_p(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 co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=l$(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);t$=n,r.target.dispatchEvent(n),t$=null}else return t=El(r),t!==null&&zf(t),e.blockedOn=r,!1;t.shift()}return!0}function _d(e,t,r){co(e)&&r.delete(t)}function Uv(){a$=!1,Hi!==null&&co(Hi)&&(Hi=null),Vi!==null&&co(Vi)&&(Vi=null),Wi!==null&&co(Wi)&&(Wi=null),ll.forEach(_d),ol.forEach(_d)}function Ta(e,t){e.blockedOn===t&&(e.blockedOn=null,a$||(a$=!0,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,Uv)))}function ul(e){function t(i){return Ta(i,e)}if(0<Pl.length){Ta(Pl[0],e);for(var r=1;r<Pl.length;r++){var n=Pl[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Hi!==null&&Ta(Hi,e),Vi!==null&&Ta(Vi,e),Wi!==null&&Ta(Wi,e),ll.forEach(t),ol.forEach(t),r=0;r<Fi.length;r++)n=Fi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Fi.length&&(r=Fi[0],r.blockedOn===null);)gp(r),r.blockedOn===null&&Fi.shift()}var ta=Ai.ReactCurrentBatchConfig,zo=!0;function Hv(e,t,r,n){var i=lr,s=ta.transition;ta.transition=null;try{lr=1,Rf(e,t,r,n)}finally{lr=i,ta.transition=s}}function Vv(e,t,r,n){var i=lr,s=ta.transition;ta.transition=null;try{lr=4,Rf(e,t,r,n)}finally{lr=i,ta.transition=s}}function Rf(e,t,r,n){if(zo){var i=l$(e,t,r,n);if(i===null)ac(e,t,n,Ro,r),hd(e,n);else if(jv(i,e,t,r,n))n.stopPropagation();else if(hd(e,n),t&4&&-1<Pv.indexOf(e)){for(;i!==null;){var s=El(i);if(s!==null&&hp(s),s=l$(e,t,r,n),s===null&&ac(e,t,n,Ro,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else ac(e,t,n,null,r)}}var Ro=null;function l$(e,t,r,n){if(Ro=null,e=Ef(n),e=ms(e),e!==null)if(t=Ts(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ap(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 Ro=e,null}function vp(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(Rv()){case Cf:return 1;case cp:return 4;case Co:case Nv:return 16;case $p:return 536870912;default:return 16}default:return 16}}var Pi=null,Nf=null,$o=null;function yp(){if($o)return $o;var e,t=Nf,r=t.length,n,i="value"in Pi?Pi.value:Pi.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var c=r-e;for(n=1;n<=c&&t[r-n]===i[s-n];n++);return $o=i.slice(e,1<n?1-n:void 0)}function fo(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 jl(){return!0}function pd(){return!1}function En(e){function t(r,n,i,s,c){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(r=e[d],this[d]=r?r(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?jl:pd,this.isPropagationStopped=pd,this}return yr(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=jl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=En(ma),Al=yr({},ma,{view:0,detail:0}),Wv=En(Al),Zu,Ju,za,uu=yr({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qf,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!==za&&(za&&e.type==="mousemove"?(Zu=e.screenX-za.screenX,Ju=e.screenY-za.screenY):Ju=Zu=0,za=e),Zu)},movementY:function(e){return"movementY"in e?e.movementY:Ju}}),md=En(uu),Yv=yr({},uu,{dataTransfer:0}),Gv=En(Yv),Kv=yr({},Al,{relatedTarget:0}),Ou=En(Kv),Xv=yr({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Qv=En(Xv),Zv=yr({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jv=En(Zv),Ov=yr({},ma,{data:0}),gd=En(Ov),e2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t2={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"},r2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=r2[e])?!!t[e]:!1}function qf(){return n2}var i2=yr({},Al,{key:function(e){if(e.key){var t=e2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qf,charCode:function(e){return e.type==="keypress"?fo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s2=En(i2),a2=yr({},uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=En(a2),l2=yr({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qf}),o2=En(l2),u2=yr({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),c2=En(u2),$2=yr({},uu,{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}),f2=En($2),d2=[9,13,27,32],Mf=bi&&"CompositionEvent"in window,Xa=null;bi&&"documentMode"in document&&(Xa=document.documentMode);var h2=bi&&"TextEvent"in window&&!Xa,bp=bi&&(!Mf||Xa&&8<Xa&&11>=Xa),yd=" ",bd=!1;function wp(e,t){switch(e){case"keyup":return d2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ps=!1;function _2(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(bd=!0,yd);case"textInput":return e=t.data,e===yd&&bd?null:e;default:return null}}function p2(e,t){if(Ps)return e==="compositionend"||!Mf&&wp(e,t)?(e=yp(),$o=Nf=Pi=null,Ps=!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 bp&&t.locale!=="ko"?null:t.data;default:return null}}var m2={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 wd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!m2[e.type]:t==="textarea"}function kp(e,t,r,n){tp(n),t=No(t,"onChange"),0<t.length&&(r=new If("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Qa=null,cl=null;function g2(e){Mp(e,0)}function cu(e){var t=Hs(e);if(K_(t))return e}function v2(e,t){if(e==="change")return t}var Sp=!1;if(bi){var ec;if(bi){var tc="oninput"in document;if(!tc){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),tc=typeof xd.oninput=="function"}ec=tc}else ec=!1;Sp=ec&&(!document.documentMode||9<document.documentMode)}function kd(){Qa&&(Qa.detachEvent("onpropertychange",Ap),cl=Qa=null)}function Ap(e){if(e.propertyName==="value"&&cu(cl)){var t=[];kp(t,cl,e,Ef(e)),sp(g2,t)}}function y2(e,t,r){e==="focusin"?(kd(),Qa=t,cl=r,Qa.attachEvent("onpropertychange",Ap)):e==="focusout"&&kd()}function b2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cu(cl)}function w2(e,t){if(e==="click")return cu(t)}function x2(e,t){if(e==="input"||e==="change")return cu(t)}function k2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zn=typeof Object.is=="function"?Object.is:k2;function $l(e,t){if(Zn(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(!Hc.call(t,i)||!Zn(e[i],t[i]))return!1}return!0}function Sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ad(e,t){var r=Sd(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=Sd(r)}}function Ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cp(){for(var e=window,t=So();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=So(e.document)}return t}function Df(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 S2(e){var t=Cp(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ep(r.ownerDocument.documentElement,r)){if(n!==null&&Df(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=Ad(r,s);var c=Ad(r,n);i&&c&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.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 A2=bi&&"documentMode"in document&&11>=document.documentMode,js=null,o$=null,Za=null,u$=!1;function Ed(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;u$||js==null||js!==So(n)||(n=js,"selectionStart"in n&&Df(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}),Za&&$l(Za,n)||(Za=n,n=No(o$,"onSelect"),0<n.length&&(t=new If("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=js)))}function Ul(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Us={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionend:Ul("Transition","TransitionEnd")},rc={},Tp={};bi&&(Tp=document.createElement("div").style,"AnimationEvent"in window||(delete Us.animationend.animation,delete Us.animationiteration.animation,delete Us.animationstart.animation),"TransitionEvent"in window||delete Us.transitionend.transition);function $u(e){if(rc[e])return rc[e];if(!Us[e])return e;var t=Us[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Tp)return rc[e]=t[r];return e}var zp=$u("animationend"),Rp=$u("animationiteration"),Np=$u("animationstart"),Ip=$u("transitionend"),qp=new Map,Cd="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 ss(e,t){qp.set(e,t),Cs(t,[e])}for(var nc=0;nc<Cd.length;nc++){var ic=Cd[nc],E2=ic.toLowerCase(),C2=ic[0].toUpperCase()+ic.slice(1);ss(E2,"on"+C2)}ss(zp,"onAnimationEnd");ss(Rp,"onAnimationIteration");ss(Np,"onAnimationStart");ss("dblclick","onDoubleClick");ss("focusin","onFocus");ss("focusout","onBlur");ss(Ip,"onTransitionEnd");aa("onMouseEnter",["mouseout","mouseover"]);aa("onMouseLeave",["mouseout","mouseover"]);aa("onPointerEnter",["pointerout","pointerover"]);aa("onPointerLeave",["pointerout","pointerover"]);Cs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ha="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(" "),T2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ha));function Td(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Ev(n,t,void 0,e),e.currentTarget=null}function Mp(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 c=n.length-1;0<=c;c--){var d=n[c],p=d.instance,h=d.currentTarget;if(d=d.listener,p!==s&&i.isPropagationStopped())break e;Td(i,d,h),s=p}else for(c=0;c<n.length;c++){if(d=n[c],p=d.instance,h=d.currentTarget,d=d.listener,p!==s&&i.isPropagationStopped())break e;Td(i,d,h),s=p}}}if(Eo)throw e=i$,Eo=!1,i$=null,e}function cr(e,t){var r=t[h$];r===void 0&&(r=t[h$]=new Set);var n=e+"__bubble";r.has(n)||(Dp(t,e,2,!1),r.add(n))}function sc(e,t,r){var n=0;t&&(n|=4),Dp(r,e,n,t)}var Hl="_reactListening"+Math.random().toString(36).slice(2);function fl(e){if(!e[Hl]){e[Hl]=!0,H_.forEach(function(r){r!=="selectionchange"&&(T2.has(r)||sc(r,!1,e),sc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hl]||(t[Hl]=!0,sc("selectionchange",!1,t))}}function Dp(e,t,r,n){switch(vp(t)){case 1:var i=Hv;break;case 4:i=Vv;break;default:i=Rf}r=i.bind(null,t,r,e),i=void 0,!n$||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 ac(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var d=n.stateNode.containerInfo;if(d===i||d.nodeType===8&&d.parentNode===i)break;if(c===4)for(c=n.return;c!==null;){var p=c.tag;if((p===3||p===4)&&(p=c.stateNode.containerInfo,p===i||p.nodeType===8&&p.parentNode===i))return;c=c.return}for(;d!==null;){if(c=ms(d),c===null)return;if(p=c.tag,p===5||p===6){n=s=c;continue e}d=d.parentNode}}n=n.return}sp(function(){var h=s,q=Ef(r),j=[];e:{var G=qp.get(e);if(G!==void 0){var pe=If,ke=e;switch(e){case"keypress":if(fo(r)===0)break e;case"keydown":case"keyup":pe=s2;break;case"focusin":ke="focus",pe=Ou;break;case"focusout":ke="blur",pe=Ou;break;case"beforeblur":case"afterblur":pe=Ou;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":pe=md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=Gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=o2;break;case zp:case Rp:case Np:pe=Qv;break;case Ip:pe=c2;break;case"scroll":pe=Wv;break;case"wheel":pe=f2;break;case"copy":case"cut":case"paste":pe=Jv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=vd}var $e=(t&4)!==0,W=!$e&&e==="scroll",Z=$e?G!==null?G+"Capture":null:G;$e=[];for(var ve=h,ae;ve!==null;){ae=ve;var ye=ae.stateNode;if(ae.tag===5&&ye!==null&&(ae=ye,Z!==null&&(ye=al(ve,Z),ye!=null&&$e.push(dl(ve,ye,ae)))),W)break;ve=ve.return}0<$e.length&&(G=new pe(G,ke,null,r,q),j.push({event:G,listeners:$e}))}}if(!(t&7)){e:{if(G=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",G&&r!==t$&&(ke=r.relatedTarget||r.fromElement)&&(ms(ke)||ke[wi]))break e;if((pe||G)&&(G=q.window===q?q:(G=q.ownerDocument)?G.defaultView||G.parentWindow:window,pe?(ke=r.relatedTarget||r.toElement,pe=h,ke=ke?ms(ke):null,ke!==null&&(W=Ts(ke),ke!==W||ke.tag!==5&&ke.tag!==6)&&(ke=null)):(pe=null,ke=h),pe!==ke)){if($e=md,ye="onMouseLeave",Z="onMouseEnter",ve="mouse",(e==="pointerout"||e==="pointerover")&&($e=vd,ye="onPointerLeave",Z="onPointerEnter",ve="pointer"),W=pe==null?G:Hs(pe),ae=ke==null?G:Hs(ke),G=new $e(ye,ve+"leave",pe,r,q),G.target=W,G.relatedTarget=ae,ye=null,ms(q)===h&&($e=new $e(Z,ve+"enter",ke,r,q),$e.target=ae,$e.relatedTarget=W,ye=$e),W=ye,pe&&ke)t:{for($e=pe,Z=ke,ve=0,ae=$e;ae;ae=Ms(ae))ve++;for(ae=0,ye=Z;ye;ye=Ms(ye))ae++;for(;0<ve-ae;)$e=Ms($e),ve--;for(;0<ae-ve;)Z=Ms(Z),ae--;for(;ve--;){if($e===Z||Z!==null&&$e===Z.alternate)break t;$e=Ms($e),Z=Ms(Z)}$e=null}else $e=null;pe!==null&&zd(j,G,pe,$e,!1),ke!==null&&W!==null&&zd(j,W,ke,$e,!0)}}e:{if(G=h?Hs(h):window,pe=G.nodeName&&G.nodeName.toLowerCase(),pe==="select"||pe==="input"&&G.type==="file")var le=v2;else if(wd(G))if(Sp)le=x2;else{le=b2;var we=y2}else(pe=G.nodeName)&&pe.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(le=w2);if(le&&(le=le(e,h))){kp(j,le,r,q);break e}we&&we(e,G,h),e==="focusout"&&(we=G._wrapperState)&&we.controlled&&G.type==="number"&&Qc(G,"number",G.value)}switch(we=h?Hs(h):window,e){case"focusin":(wd(we)||we.contentEditable==="true")&&(js=we,o$=h,Za=null);break;case"focusout":Za=o$=js=null;break;case"mousedown":u$=!0;break;case"contextmenu":case"mouseup":case"dragend":u$=!1,Ed(j,r,q);break;case"selectionchange":if(A2)break;case"keydown":case"keyup":Ed(j,r,q)}var ce;if(Mf)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Ps?wp(e,r)&&(ze="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ze="onCompositionStart");ze&&(bp&&r.locale!=="ko"&&(Ps||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Ps&&(ce=yp()):(Pi=q,Nf="value"in Pi?Pi.value:Pi.textContent,Ps=!0)),we=No(h,ze),0<we.length&&(ze=new gd(ze,e,null,r,q),j.push({event:ze,listeners:we}),ce?ze.data=ce:(ce=xp(r),ce!==null&&(ze.data=ce)))),(ce=h2?_2(e,r):p2(e,r))&&(h=No(h,"onBeforeInput"),0<h.length&&(q=new gd("onBeforeInput","beforeinput",null,r,q),j.push({event:q,listeners:h}),q.data=ce))}Mp(j,t)})}function dl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function No(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=al(e,r),s!=null&&n.unshift(dl(e,s,i)),s=al(e,t),s!=null&&n.push(dl(e,s,i))),e=e.return}return n}function Ms(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zd(e,t,r,n,i){for(var s=t._reactName,c=[];r!==null&&r!==n;){var d=r,p=d.alternate,h=d.stateNode;if(p!==null&&p===n)break;d.tag===5&&h!==null&&(d=h,i?(p=al(r,s),p!=null&&c.unshift(dl(r,p,d))):i||(p=al(r,s),p!=null&&c.push(dl(r,p,d)))),r=r.return}c.length!==0&&e.push({event:t,listeners:c})}var z2=/\r\n?/g,R2=/\u0000|\uFFFD/g;function Rd(e){return(typeof e=="string"?e:""+e).replace(z2,`
|
|
39
|
+
`).replace(R2,"")}function Vl(e,t,r){if(t=Rd(t),Rd(e)!==t&&r)throw Error(Et(425))}function Io(){}var c$=null,$$=null;function f$(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 d$=typeof setTimeout=="function"?setTimeout:void 0,N2=typeof clearTimeout=="function"?clearTimeout:void 0,Nd=typeof Promise=="function"?Promise:void 0,I2=typeof queueMicrotask=="function"?queueMicrotask:typeof Nd<"u"?function(e){return Nd.resolve(null).then(e).catch(q2)}:d$;function q2(e){setTimeout(function(){throw e})}function lc(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),ul(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);ul(t)}function Yi(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 Id(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 ga=Math.random().toString(36).slice(2),ri="__reactFiber$"+ga,hl="__reactProps$"+ga,wi="__reactContainer$"+ga,h$="__reactEvents$"+ga,M2="__reactListeners$"+ga,D2="__reactHandles$"+ga;function ms(e){var t=e[ri];if(t)return t;for(var r=e.parentNode;r;){if(t=r[wi]||r[ri]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Id(e);e!==null;){if(r=e[ri])return r;e=Id(e)}return t}e=r,r=e.parentNode}return null}function El(e){return e=e[ri]||e[wi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Et(33))}function fu(e){return e[hl]||null}var _$=[],Vs=-1;function as(e){return{current:e}}function fr(e){0>Vs||(e.current=_$[Vs],_$[Vs]=null,Vs--)}function ur(e,t){Vs++,_$[Vs]=e.current,e.current=t}var Oi={},Zr=as(Oi),hn=as(!1),ws=Oi;function la(e,t){var r=e.type.contextTypes;if(!r)return Oi;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 _n(e){return e=e.childContextTypes,e!=null}function qo(){fr(hn),fr(Zr)}function qd(e,t,r){if(Zr.current!==Oi)throw Error(Et(168));ur(Zr,t),ur(hn,r)}function Lp(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(Et(108,yv(e)||"Unknown",i));return yr({},r,n)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,ws=Zr.current,ur(Zr,e),ur(hn,hn.current),!0}function Md(e,t,r){var n=e.stateNode;if(!n)throw Error(Et(169));r?(e=Lp(e,t,ws),n.__reactInternalMemoizedMergedChildContext=e,fr(hn),fr(Zr),ur(Zr,e)):fr(hn),ur(hn,r)}var _i=null,du=!1,oc=!1;function Fp(e){_i===null?_i=[e]:_i.push(e)}function L2(e){du=!0,Fp(e)}function ls(){if(!oc&&_i!==null){oc=!0;var e=0,t=lr;try{var r=_i;for(lr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}_i=null,du=!1}catch(i){throw _i!==null&&(_i=_i.slice(e+1)),up(Cf,ls),i}finally{lr=t,oc=!1}}return null}var Ws=[],Ys=0,Do=null,Lo=0,Nn=[],In=0,xs=null,mi=1,gi="";function ds(e,t){Ws[Ys++]=Lo,Ws[Ys++]=Do,Do=e,Lo=t}function Bp(e,t,r){Nn[In++]=mi,Nn[In++]=gi,Nn[In++]=xs,xs=e;var n=mi;e=gi;var i=32-Kn(n)-1;n&=~(1<<i),r+=1;var s=32-Kn(t)+i;if(30<s){var c=i-i%5;s=(n&(1<<c)-1).toString(32),n>>=c,i-=c,mi=1<<32-Kn(t)+i|r<<i|n,gi=s+e}else mi=1<<s|r<<i|n,gi=e}function Lf(e){e.return!==null&&(ds(e,1),Bp(e,1,0))}function Ff(e){for(;e===Do;)Do=Ws[--Ys],Ws[Ys]=null,Lo=Ws[--Ys],Ws[Ys]=null;for(;e===xs;)xs=Nn[--In],Nn[In]=null,gi=Nn[--In],Nn[In]=null,mi=Nn[--In],Nn[In]=null}var wn=null,yn=null,dr=!1,Wn=null;function Pp(e,t){var r=qn(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 Dd(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,wn=e,yn=Yi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wn=e,yn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=xs!==null?{id:mi,overflow:gi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=qn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,wn=e,yn=null,!0):!1;default:return!1}}function p$(e){return(e.mode&1)!==0&&(e.flags&128)===0}function m$(e){if(dr){var t=yn;if(t){var r=t;if(!Dd(e,t)){if(p$(e))throw Error(Et(418));t=Yi(r.nextSibling);var n=wn;t&&Dd(e,t)?Pp(n,r):(e.flags=e.flags&-4097|2,dr=!1,wn=e)}}else{if(p$(e))throw Error(Et(418));e.flags=e.flags&-4097|2,dr=!1,wn=e}}}function Ld(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wn=e}function Wl(e){if(e!==wn)return!1;if(!dr)return Ld(e),dr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!f$(e.type,e.memoizedProps)),t&&(t=yn)){if(p$(e))throw jp(),Error(Et(418));for(;t;)Pp(e,t),t=Yi(t.nextSibling)}if(Ld(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Et(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){yn=Yi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}yn=null}}else yn=wn?Yi(e.stateNode.nextSibling):null;return!0}function jp(){for(var e=yn;e;)e=Yi(e.nextSibling)}function oa(){yn=wn=null,dr=!1}function Bf(e){Wn===null?Wn=[e]:Wn.push(e)}var F2=Ai.ReactCurrentBatchConfig;function Ra(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(Et(309));var n=r.stateNode}if(!n)throw Error(Et(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(c){var d=i.refs;c===null?delete d[s]:d[s]=c},t._stringRef=s,t)}if(typeof e!="string")throw Error(Et(284));if(!r._owner)throw Error(Et(290,e))}return e}function Yl(e,t){throw e=Object.prototype.toString.call(t),Error(Et(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fd(e){var t=e._init;return t(e._payload)}function Up(e){function t(Z,ve){if(e){var ae=Z.deletions;ae===null?(Z.deletions=[ve],Z.flags|=16):ae.push(ve)}}function r(Z,ve){if(!e)return null;for(;ve!==null;)t(Z,ve),ve=ve.sibling;return null}function n(Z,ve){for(Z=new Map;ve!==null;)ve.key!==null?Z.set(ve.key,ve):Z.set(ve.index,ve),ve=ve.sibling;return Z}function i(Z,ve){return Z=Qi(Z,ve),Z.index=0,Z.sibling=null,Z}function s(Z,ve,ae){return Z.index=ae,e?(ae=Z.alternate,ae!==null?(ae=ae.index,ae<ve?(Z.flags|=2,ve):ae):(Z.flags|=2,ve)):(Z.flags|=1048576,ve)}function c(Z){return e&&Z.alternate===null&&(Z.flags|=2),Z}function d(Z,ve,ae,ye){return ve===null||ve.tag!==6?(ve=_c(ae,Z.mode,ye),ve.return=Z,ve):(ve=i(ve,ae),ve.return=Z,ve)}function p(Z,ve,ae,ye){var le=ae.type;return le===Bs?q(Z,ve,ae.props.children,ye,ae.key):ve!==null&&(ve.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Di&&Fd(le)===ve.type)?(ye=i(ve,ae.props),ye.ref=Ra(Z,ve,ae),ye.return=Z,ye):(ye=yo(ae.type,ae.key,ae.props,null,Z.mode,ye),ye.ref=Ra(Z,ve,ae),ye.return=Z,ye)}function h(Z,ve,ae,ye){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==ae.containerInfo||ve.stateNode.implementation!==ae.implementation?(ve=pc(ae,Z.mode,ye),ve.return=Z,ve):(ve=i(ve,ae.children||[]),ve.return=Z,ve)}function q(Z,ve,ae,ye,le){return ve===null||ve.tag!==7?(ve=bs(ae,Z.mode,ye,le),ve.return=Z,ve):(ve=i(ve,ae),ve.return=Z,ve)}function j(Z,ve,ae){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return ve=_c(""+ve,Z.mode,ae),ve.return=Z,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Ml:return ae=yo(ve.type,ve.key,ve.props,null,Z.mode,ae),ae.ref=Ra(Z,null,ve),ae.return=Z,ae;case Fs:return ve=pc(ve,Z.mode,ae),ve.return=Z,ve;case Di:var ye=ve._init;return j(Z,ye(ve._payload),ae)}if(ja(ve)||Aa(ve))return ve=bs(ve,Z.mode,ae,null),ve.return=Z,ve;Yl(Z,ve)}return null}function G(Z,ve,ae,ye){var le=ve!==null?ve.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return le!==null?null:d(Z,ve,""+ae,ye);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case Ml:return ae.key===le?p(Z,ve,ae,ye):null;case Fs:return ae.key===le?h(Z,ve,ae,ye):null;case Di:return le=ae._init,G(Z,ve,le(ae._payload),ye)}if(ja(ae)||Aa(ae))return le!==null?null:q(Z,ve,ae,ye,null);Yl(Z,ae)}return null}function pe(Z,ve,ae,ye,le){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Z=Z.get(ae)||null,d(ve,Z,""+ye,le);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case Ml:return Z=Z.get(ye.key===null?ae:ye.key)||null,p(ve,Z,ye,le);case Fs:return Z=Z.get(ye.key===null?ae:ye.key)||null,h(ve,Z,ye,le);case Di:var we=ye._init;return pe(Z,ve,ae,we(ye._payload),le)}if(ja(ye)||Aa(ye))return Z=Z.get(ae)||null,q(ve,Z,ye,le,null);Yl(ve,ye)}return null}function ke(Z,ve,ae,ye){for(var le=null,we=null,ce=ve,ze=ve=0,X=null;ce!==null&&ze<ae.length;ze++){ce.index>ze?(X=ce,ce=null):X=ce.sibling;var Ae=G(Z,ce,ae[ze],ye);if(Ae===null){ce===null&&(ce=X);break}e&&ce&&Ae.alternate===null&&t(Z,ce),ve=s(Ae,ve,ze),we===null?le=Ae:we.sibling=Ae,we=Ae,ce=X}if(ze===ae.length)return r(Z,ce),dr&&ds(Z,ze),le;if(ce===null){for(;ze<ae.length;ze++)ce=j(Z,ae[ze],ye),ce!==null&&(ve=s(ce,ve,ze),we===null?le=ce:we.sibling=ce,we=ce);return dr&&ds(Z,ze),le}for(ce=n(Z,ce);ze<ae.length;ze++)X=pe(ce,Z,ze,ae[ze],ye),X!==null&&(e&&X.alternate!==null&&ce.delete(X.key===null?ze:X.key),ve=s(X,ve,ze),we===null?le=X:we.sibling=X,we=X);return e&&ce.forEach(function(oe){return t(Z,oe)}),dr&&ds(Z,ze),le}function $e(Z,ve,ae,ye){var le=Aa(ae);if(typeof le!="function")throw Error(Et(150));if(ae=le.call(ae),ae==null)throw Error(Et(151));for(var we=le=null,ce=ve,ze=ve=0,X=null,Ae=ae.next();ce!==null&&!Ae.done;ze++,Ae=ae.next()){ce.index>ze?(X=ce,ce=null):X=ce.sibling;var oe=G(Z,ce,Ae.value,ye);if(oe===null){ce===null&&(ce=X);break}e&&ce&&oe.alternate===null&&t(Z,ce),ve=s(oe,ve,ze),we===null?le=oe:we.sibling=oe,we=oe,ce=X}if(Ae.done)return r(Z,ce),dr&&ds(Z,ze),le;if(ce===null){for(;!Ae.done;ze++,Ae=ae.next())Ae=j(Z,Ae.value,ye),Ae!==null&&(ve=s(Ae,ve,ze),we===null?le=Ae:we.sibling=Ae,we=Ae);return dr&&ds(Z,ze),le}for(ce=n(Z,ce);!Ae.done;ze++,Ae=ae.next())Ae=pe(ce,Z,ze,Ae.value,ye),Ae!==null&&(e&&Ae.alternate!==null&&ce.delete(Ae.key===null?ze:Ae.key),ve=s(Ae,ve,ze),we===null?le=Ae:we.sibling=Ae,we=Ae);return e&&ce.forEach(function(k){return t(Z,k)}),dr&&ds(Z,ze),le}function W(Z,ve,ae,ye){if(typeof ae=="object"&&ae!==null&&ae.type===Bs&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case Ml:e:{for(var le=ae.key,we=ve;we!==null;){if(we.key===le){if(le=ae.type,le===Bs){if(we.tag===7){r(Z,we.sibling),ve=i(we,ae.props.children),ve.return=Z,Z=ve;break e}}else if(we.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Di&&Fd(le)===we.type){r(Z,we.sibling),ve=i(we,ae.props),ve.ref=Ra(Z,we,ae),ve.return=Z,Z=ve;break e}r(Z,we);break}else t(Z,we);we=we.sibling}ae.type===Bs?(ve=bs(ae.props.children,Z.mode,ye,ae.key),ve.return=Z,Z=ve):(ye=yo(ae.type,ae.key,ae.props,null,Z.mode,ye),ye.ref=Ra(Z,ve,ae),ye.return=Z,Z=ye)}return c(Z);case Fs:e:{for(we=ae.key;ve!==null;){if(ve.key===we)if(ve.tag===4&&ve.stateNode.containerInfo===ae.containerInfo&&ve.stateNode.implementation===ae.implementation){r(Z,ve.sibling),ve=i(ve,ae.children||[]),ve.return=Z,Z=ve;break e}else{r(Z,ve);break}else t(Z,ve);ve=ve.sibling}ve=pc(ae,Z.mode,ye),ve.return=Z,Z=ve}return c(Z);case Di:return we=ae._init,W(Z,ve,we(ae._payload),ye)}if(ja(ae))return ke(Z,ve,ae,ye);if(Aa(ae))return $e(Z,ve,ae,ye);Yl(Z,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,ve!==null&&ve.tag===6?(r(Z,ve.sibling),ve=i(ve,ae),ve.return=Z,Z=ve):(r(Z,ve),ve=_c(ae,Z.mode,ye),ve.return=Z,Z=ve),c(Z)):r(Z,ve)}return W}var ua=Up(!0),Hp=Up(!1),Fo=as(null),Bo=null,Gs=null,Pf=null;function jf(){Pf=Gs=Bo=null}function Uf(e){var t=Fo.current;fr(Fo),e._currentValue=t}function g$(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 ra(e,t){Bo=e,Pf=Gs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dn=!0),e.firstContext=null)}function Ln(e){var t=e._currentValue;if(Pf!==e)if(e={context:e,memoizedValue:t,next:null},Gs===null){if(Bo===null)throw Error(Et(308));Gs=e,Bo.dependencies={lanes:0,firstContext:e}}else Gs=Gs.next=e;return t}var gs=null;function Hf(e){gs===null?gs=[e]:gs.push(e)}function Vp(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Hf(t)):(r.next=i.next,i.next=r),t.interleaved=r,xi(e,n)}function xi(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 Li=!1;function Vf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wp(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 vi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gi(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,xi(e,r)}return i=n.interleaved,i===null?(t.next=t,Hf(n)):(t.next=i.next,i.next=t),n.interleaved=t,xi(e,r)}function ho(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,Tf(e,r)}}function Bd(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 c={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=c:s=s.next=c,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 Po(e,t,r,n){var i=e.updateQueue;Li=!1;var s=i.firstBaseUpdate,c=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var p=d,h=p.next;p.next=null,c===null?s=h:c.next=h,c=p;var q=e.alternate;q!==null&&(q=q.updateQueue,d=q.lastBaseUpdate,d!==c&&(d===null?q.firstBaseUpdate=h:d.next=h,q.lastBaseUpdate=p))}if(s!==null){var j=i.baseState;c=0,q=h=p=null,d=s;do{var G=d.lane,pe=d.eventTime;if((n&G)===G){q!==null&&(q=q.next={eventTime:pe,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var ke=e,$e=d;switch(G=t,pe=r,$e.tag){case 1:if(ke=$e.payload,typeof ke=="function"){j=ke.call(pe,j,G);break e}j=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=$e.payload,G=typeof ke=="function"?ke.call(pe,j,G):ke,G==null)break e;j=yr({},j,G);break e;case 2:Li=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,G=i.effects,G===null?i.effects=[d]:G.push(d))}else pe={eventTime:pe,lane:G,tag:d.tag,payload:d.payload,callback:d.callback,next:null},q===null?(h=q=pe,p=j):q=q.next=pe,c|=G;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;G=d,d=G.next,G.next=null,i.lastBaseUpdate=G,i.shared.pending=null}}while(!0);if(q===null&&(p=j),i.baseState=p,i.firstBaseUpdate=h,i.lastBaseUpdate=q,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ss|=c,e.lanes=c,e.memoizedState=j}}function Pd(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(Et(191,i));i.call(n)}}}var Cl={},ai=as(Cl),_l=as(Cl),pl=as(Cl);function vs(e){if(e===Cl)throw Error(Et(174));return e}function Wf(e,t){switch(ur(pl,t),ur(_l,e),ur(ai,Cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jc(t,e)}fr(ai),ur(ai,t)}function ca(){fr(ai),fr(_l),fr(pl)}function Yp(e){vs(pl.current);var t=vs(ai.current),r=Jc(t,e.type);t!==r&&(ur(_l,e),ur(ai,r))}function Yf(e){_l.current===e&&(fr(ai),fr(_l))}var mr=as(0);function jo(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 uc=[];function Gf(){for(var e=0;e<uc.length;e++)uc[e]._workInProgressVersionPrimary=null;uc.length=0}var _o=Ai.ReactCurrentDispatcher,cc=Ai.ReactCurrentBatchConfig,ks=0,vr=null,qr=null,Br=null,Uo=!1,Ja=!1,ml=0,B2=0;function Yr(){throw Error(Et(321))}function Kf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zn(e[r],t[r]))return!1;return!0}function Xf(e,t,r,n,i,s){if(ks=s,vr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_o.current=e===null||e.memoizedState===null?H2:V2,e=r(n,i),Ja){s=0;do{if(Ja=!1,ml=0,25<=s)throw Error(Et(301));s+=1,Br=qr=null,t.updateQueue=null,_o.current=W2,e=r(n,i)}while(Ja)}if(_o.current=Ho,t=qr!==null&&qr.next!==null,ks=0,Br=qr=vr=null,Uo=!1,t)throw Error(Et(300));return e}function Qf(){var e=ml!==0;return ml=0,e}function ei(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?vr.memoizedState=Br=e:Br=Br.next=e,Br}function Fn(){if(qr===null){var e=vr.alternate;e=e!==null?e.memoizedState:null}else e=qr.next;var t=Br===null?vr.memoizedState:Br.next;if(t!==null)Br=t,qr=e;else{if(e===null)throw Error(Et(310));qr=e,e={memoizedState:qr.memoizedState,baseState:qr.baseState,baseQueue:qr.baseQueue,queue:qr.queue,next:null},Br===null?vr.memoizedState=Br=e:Br=Br.next=e}return Br}function gl(e,t){return typeof t=="function"?t(e):t}function $c(e){var t=Fn(),r=t.queue;if(r===null)throw Error(Et(311));r.lastRenderedReducer=e;var n=qr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var c=i.next;i.next=s.next,s.next=c}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var d=c=null,p=null,h=s;do{var q=h.lane;if((ks&q)===q)p!==null&&(p=p.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),n=h.hasEagerState?h.eagerState:e(n,h.action);else{var j={lane:q,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};p===null?(d=p=j,c=n):p=p.next=j,vr.lanes|=q,Ss|=q}h=h.next}while(h!==null&&h!==s);p===null?c=n:p.next=d,Zn(n,t.memoizedState)||(dn=!0),t.memoizedState=n,t.baseState=c,t.baseQueue=p,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,vr.lanes|=s,Ss|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function fc(e){var t=Fn(),r=t.queue;if(r===null)throw Error(Et(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var c=i=i.next;do s=e(s,c.action),c=c.next;while(c!==i);Zn(s,t.memoizedState)||(dn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function Gp(){}function Kp(e,t){var r=vr,n=Fn(),i=t(),s=!Zn(n.memoizedState,i);if(s&&(n.memoizedState=i,dn=!0),n=n.queue,Zf(Zp.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Br!==null&&Br.memoizedState.tag&1){if(r.flags|=2048,vl(9,Qp.bind(null,r,n,i,t),void 0,null),Pr===null)throw Error(Et(349));ks&30||Xp(r,t,i)}return i}function Xp(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=vr.updateQueue,t===null?(t={lastEffect:null,stores:null},vr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Qp(e,t,r,n){t.value=r,t.getSnapshot=n,Jp(t)&&Op(e)}function Zp(e,t,r){return r(function(){Jp(t)&&Op(e)})}function Jp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zn(e,r)}catch{return!0}}function Op(e){var t=xi(e,1);t!==null&&Xn(t,e,1,-1)}function jd(e){var t=ei();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:e},t.queue=e,e=e.dispatch=U2.bind(null,vr,e),[t.memoizedState,e]}function vl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=vr.updateQueue,t===null?(t={lastEffect:null,stores:null},vr.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 em(){return Fn().memoizedState}function po(e,t,r,n){var i=ei();vr.flags|=e,i.memoizedState=vl(1|t,r,void 0,n===void 0?null:n)}function hu(e,t,r,n){var i=Fn();n=n===void 0?null:n;var s=void 0;if(qr!==null){var c=qr.memoizedState;if(s=c.destroy,n!==null&&Kf(n,c.deps)){i.memoizedState=vl(t,r,s,n);return}}vr.flags|=e,i.memoizedState=vl(1|t,r,s,n)}function Ud(e,t){return po(8390656,8,e,t)}function Zf(e,t){return hu(2048,8,e,t)}function tm(e,t){return hu(4,2,e,t)}function rm(e,t){return hu(4,4,e,t)}function nm(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 im(e,t,r){return r=r!=null?r.concat([e]):null,hu(4,4,nm.bind(null,t,e),r)}function Jf(){}function sm(e,t){var r=Fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Kf(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function am(e,t){var r=Fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Kf(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function lm(e,t,r){return ks&21?(Zn(r,t)||(r=fp(),vr.lanes|=r,Ss|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dn=!0),e.memoizedState=r)}function P2(e,t){var r=lr;lr=r!==0&&4>r?r:4,e(!0);var n=cc.transition;cc.transition={};try{e(!1),t()}finally{lr=r,cc.transition=n}}function om(){return Fn().memoizedState}function j2(e,t,r){var n=Xi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},um(e))cm(t,r);else if(r=Vp(e,t,r,n),r!==null){var i=sn();Xn(r,e,n,i),$m(r,t,n)}}function U2(e,t,r){var n=Xi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(um(e))cm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,d=s(c,r);if(i.hasEagerState=!0,i.eagerState=d,Zn(d,c)){var p=t.interleaved;p===null?(i.next=i,Hf(t)):(i.next=p.next,p.next=i),t.interleaved=i;return}}catch{}finally{}r=Vp(e,t,i,n),r!==null&&(i=sn(),Xn(r,e,n,i),$m(r,t,n))}}function um(e){var t=e.alternate;return e===vr||t!==null&&t===vr}function cm(e,t){Ja=Uo=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $m(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Tf(e,r)}}var Ho={readContext:Ln,useCallback:Yr,useContext:Yr,useEffect:Yr,useImperativeHandle:Yr,useInsertionEffect:Yr,useLayoutEffect:Yr,useMemo:Yr,useReducer:Yr,useRef:Yr,useState:Yr,useDebugValue:Yr,useDeferredValue:Yr,useTransition:Yr,useMutableSource:Yr,useSyncExternalStore:Yr,useId:Yr,unstable_isNewReconciler:!1},H2={readContext:Ln,useCallback:function(e,t){return ei().memoizedState=[e,t===void 0?null:t],e},useContext:Ln,useEffect:Ud,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,po(4194308,4,nm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return po(4194308,4,e,t)},useInsertionEffect:function(e,t){return po(4,2,e,t)},useMemo:function(e,t){var r=ei();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ei();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=j2.bind(null,vr,e),[n.memoizedState,e]},useRef:function(e){var t=ei();return e={current:e},t.memoizedState=e},useState:jd,useDebugValue:Jf,useDeferredValue:function(e){return ei().memoizedState=e},useTransition:function(){var e=jd(!1),t=e[0];return e=P2.bind(null,e[1]),ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=vr,i=ei();if(dr){if(r===void 0)throw Error(Et(407));r=r()}else{if(r=t(),Pr===null)throw Error(Et(349));ks&30||Xp(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Ud(Zp.bind(null,n,s,e),[e]),n.flags|=2048,vl(9,Qp.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=ei(),t=Pr.identifierPrefix;if(dr){var r=gi,n=mi;r=(n&~(1<<32-Kn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ml++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=B2++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},V2={readContext:Ln,useCallback:sm,useContext:Ln,useEffect:Zf,useImperativeHandle:im,useInsertionEffect:tm,useLayoutEffect:rm,useMemo:am,useReducer:$c,useRef:em,useState:function(){return $c(gl)},useDebugValue:Jf,useDeferredValue:function(e){var t=Fn();return lm(t,qr.memoizedState,e)},useTransition:function(){var e=$c(gl)[0],t=Fn().memoizedState;return[e,t]},useMutableSource:Gp,useSyncExternalStore:Kp,useId:om,unstable_isNewReconciler:!1},W2={readContext:Ln,useCallback:sm,useContext:Ln,useEffect:Zf,useImperativeHandle:im,useInsertionEffect:tm,useLayoutEffect:rm,useMemo:am,useReducer:fc,useRef:em,useState:function(){return fc(gl)},useDebugValue:Jf,useDeferredValue:function(e){var t=Fn();return qr===null?t.memoizedState=e:lm(t,qr.memoizedState,e)},useTransition:function(){var e=fc(gl)[0],t=Fn().memoizedState;return[e,t]},useMutableSource:Gp,useSyncExternalStore:Kp,useId:om,unstable_isNewReconciler:!1};function Hn(e,t){if(e&&e.defaultProps){t=yr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function v$(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:yr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var _u={isMounted:function(e){return(e=e._reactInternals)?Ts(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=sn(),i=Xi(e),s=vi(n,i);s.payload=t,r!=null&&(s.callback=r),t=Gi(e,s,i),t!==null&&(Xn(t,e,i,n),ho(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=sn(),i=Xi(e),s=vi(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=Gi(e,s,i),t!==null&&(Xn(t,e,i,n),ho(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sn(),n=Xi(e),i=vi(r,n);i.tag=2,t!=null&&(i.callback=t),t=Gi(e,i,n),t!==null&&(Xn(t,e,n,r),ho(t,e,n))}};function Hd(e,t,r,n,i,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,c):t.prototype&&t.prototype.isPureReactComponent?!$l(r,n)||!$l(i,s):!0}function fm(e,t,r){var n=!1,i=Oi,s=t.contextType;return typeof s=="object"&&s!==null?s=Ln(s):(i=_n(t)?ws:Zr.current,n=t.contextTypes,s=(n=n!=null)?la(e,i):Oi),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_u,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Vd(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&&_u.enqueueReplaceState(t,t.state,null)}function y$(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Vf(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ln(s):(s=_n(t)?ws:Zr.current,i.context=la(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(v$(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&&_u.enqueueReplaceState(i,i.state,null),Po(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function $a(e,t){try{var r="",n=t;do r+=vv(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 dc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function b$(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Y2=typeof WeakMap=="function"?WeakMap:Map;function dm(e,t,r){r=vi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Wo||(Wo=!0,R$=n),b$(e,t)},r}function hm(e,t,r){r=vi(-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(){b$(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){b$(e,t),typeof n!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),r}function Wd(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Y2;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=ay.bind(null,e,t,r),t.then(e,e))}function Yd(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 Gd(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=vi(-1,1),t.tag=2,Gi(r,t,1))),r.lanes|=1),e)}var G2=Ai.ReactCurrentOwner,dn=!1;function tn(e,t,r,n){t.child=e===null?Hp(t,null,r,n):ua(t,e.child,r,n)}function Kd(e,t,r,n,i){r=r.render;var s=t.ref;return ra(t,i),n=Xf(e,t,r,n,s,i),r=Qf(),e!==null&&!dn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ki(e,t,i)):(dr&&r&&Lf(t),t.flags|=1,tn(e,t,n,i),t.child)}function Xd(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!a0(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,_m(e,t,s,n,i)):(e=yo(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 c=s.memoizedProps;if(r=r.compare,r=r!==null?r:$l,r(c,n)&&e.ref===t.ref)return ki(e,t,i)}return t.flags|=1,e=Qi(s,n),e.ref=t.ref,e.return=t,t.child=e}function _m(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if($l(s,n)&&e.ref===t.ref)if(dn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(dn=!0);else return t.lanes=e.lanes,ki(e,t,i)}return w$(e,t,r,n,i)}function pm(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(Xs,gn),gn|=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(Xs,gn),gn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(Xs,gn),gn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(Xs,gn),gn|=n;return tn(e,t,i,r),t.child}function mm(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function w$(e,t,r,n,i){var s=_n(r)?ws:Zr.current;return s=la(t,s),ra(t,i),r=Xf(e,t,r,n,s,i),n=Qf(),e!==null&&!dn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ki(e,t,i)):(dr&&n&&Lf(t),t.flags|=1,tn(e,t,r,i),t.child)}function Qd(e,t,r,n,i){if(_n(r)){var s=!0;Mo(t)}else s=!1;if(ra(t,i),t.stateNode===null)mo(e,t),fm(t,r,n),y$(t,r,n,i),n=!0;else if(e===null){var c=t.stateNode,d=t.memoizedProps;c.props=d;var p=c.context,h=r.contextType;typeof h=="object"&&h!==null?h=Ln(h):(h=_n(r)?ws:Zr.current,h=la(t,h));var q=r.getDerivedStateFromProps,j=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function";j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==n||p!==h)&&Vd(t,c,n,h),Li=!1;var G=t.memoizedState;c.state=G,Po(t,n,c,i),p=t.memoizedState,d!==n||G!==p||hn.current||Li?(typeof q=="function"&&(v$(t,r,q,n),p=t.memoizedState),(d=Li||Hd(t,r,d,n,G,p,h))?(j||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=p),c.props=n,c.state=p,c.context=h,n=d):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Wp(e,t),d=t.memoizedProps,h=t.type===t.elementType?d:Hn(t.type,d),c.props=h,j=t.pendingProps,G=c.context,p=r.contextType,typeof p=="object"&&p!==null?p=Ln(p):(p=_n(r)?ws:Zr.current,p=la(t,p));var pe=r.getDerivedStateFromProps;(q=typeof pe=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==j||G!==p)&&Vd(t,c,n,p),Li=!1,G=t.memoizedState,c.state=G,Po(t,n,c,i);var ke=t.memoizedState;d!==j||G!==ke||hn.current||Li?(typeof pe=="function"&&(v$(t,r,pe,n),ke=t.memoizedState),(h=Li||Hd(t,r,h,n,G,ke,p)||!1)?(q||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,ke,p),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,ke,p)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=ke),c.props=n,c.state=ke,c.context=p,n=h):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),n=!1)}return x$(e,t,r,n,s,i)}function x$(e,t,r,n,i,s){mm(e,t);var c=(t.flags&128)!==0;if(!n&&!c)return i&&Md(t,r,!1),ki(e,t,s);n=t.stateNode,G2.current=t;var d=c&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&c?(t.child=ua(t,e.child,null,s),t.child=ua(t,null,d,s)):tn(e,t,d,s),t.memoizedState=n.state,i&&Md(t,r,!0),t.child}function gm(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),Wf(e,t.containerInfo)}function Zd(e,t,r,n,i){return oa(),Bf(i),t.flags|=256,tn(e,t,r,n),t.child}var k$={dehydrated:null,treeContext:null,retryLane:0};function S$(e){return{baseLanes:e,cachePool:null,transitions:null}}function vm(e,t,r){var n=t.pendingProps,i=mr.current,s=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(i&2)!==0),d?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ur(mr,i&1),e===null)return m$(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):(c=n.children,e=n.fallback,s?(n=t.mode,s=t.child,c={mode:"hidden",children:c},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=c):s=gu(c,n,0,null),e=bs(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=S$(r),t.memoizedState=k$,e):Of(t,c));if(i=e.memoizedState,i!==null&&(d=i.dehydrated,d!==null))return K2(e,t,c,n,d,i,r);if(s){s=n.fallback,c=t.mode,i=e.child,d=i.sibling;var p={mode:"hidden",children:n.children};return!(c&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=p,t.deletions=null):(n=Qi(i,p),n.subtreeFlags=i.subtreeFlags&14680064),d!==null?s=Qi(d,s):(s=bs(s,c,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,c=e.child.memoizedState,c=c===null?S$(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=k$,n}return s=e.child,e=s.sibling,n=Qi(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 Of(e,t){return t=gu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gl(e,t,r,n){return n!==null&&Bf(n),ua(t,e.child,null,r),e=Of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function K2(e,t,r,n,i,s,c){if(r)return t.flags&256?(t.flags&=-257,n=dc(Error(Et(422))),Gl(e,t,c,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=gu({mode:"visible",children:n.children},i,0,null),s=bs(s,i,c,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&ua(t,e.child,null,c),t.child.memoizedState=S$(c),t.memoizedState=k$,s);if(!(t.mode&1))return Gl(e,t,c,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var d=n.dgst;return n=d,s=Error(Et(419)),n=dc(s,n,void 0),Gl(e,t,c,n)}if(d=(c&e.childLanes)!==0,dn||d){if(n=Pr,n!==null){switch(c&-c){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|c)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,xi(e,i),Xn(n,e,i,-1))}return s0(),n=dc(Error(Et(421))),Gl(e,t,c,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ly.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,yn=Yi(i.nextSibling),wn=t,dr=!0,Wn=null,e!==null&&(Nn[In++]=mi,Nn[In++]=gi,Nn[In++]=xs,mi=e.id,gi=e.overflow,xs=t),t=Of(t,n.children),t.flags|=4096,t)}function Jd(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),g$(e.return,t,r)}function hc(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 ym(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(tn(e,t,n.children,r),n=mr.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&&Jd(e,r,t);else if(e.tag===19)Jd(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(mr,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&&jo(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),hc(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&&jo(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}hc(t,!0,r,null,s);break;case"together":hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ki(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ss|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Et(153));if(t.child!==null){for(e=t.child,r=Qi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Qi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function X2(e,t,r){switch(t.tag){case 3:gm(t),oa();break;case 5:Yp(t);break;case 1:_n(t.type)&&Mo(t);break;case 4:Wf(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(Fo,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ur(mr,mr.current&1),t.flags|=128,null):r&t.child.childLanes?vm(e,t,r):(ur(mr,mr.current&1),e=ki(e,t,r),e!==null?e.sibling:null);ur(mr,mr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return ym(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ur(mr,mr.current),n)break;return null;case 22:case 23:return t.lanes=0,pm(e,t,r)}return ki(e,t,r)}var bm,A$,wm,xm;bm=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}};A$=function(){};wm=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,vs(ai.current);var s=null;switch(r){case"input":i=Kc(e,i),n=Kc(e,n),s=[];break;case"select":i=yr({},i,{value:void 0}),n=yr({},n,{value:void 0}),s=[];break;case"textarea":i=Zc(e,i),n=Zc(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Io)}Oc(r,n);var c;r=null;for(h in i)if(!n.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var d=i[h];for(c in d)d.hasOwnProperty(c)&&(r||(r={}),r[c]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(il.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in n){var p=n[h];if(d=i?.[h],n.hasOwnProperty(h)&&p!==d&&(p!=null||d!=null))if(h==="style")if(d){for(c in d)!d.hasOwnProperty(c)||p&&p.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in p)p.hasOwnProperty(c)&&d[c]!==p[c]&&(r||(r={}),r[c]=p[c])}else r||(s||(s=[]),s.push(h,r)),r=p;else h==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,d=d?d.__html:void 0,p!=null&&d!==p&&(s=s||[]).push(h,p)):h==="children"?typeof p!="string"&&typeof p!="number"||(s=s||[]).push(h,""+p):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(il.hasOwnProperty(h)?(p!=null&&h==="onScroll"&&cr("scroll",e),s||d===p||(s=[])):(s=s||[]).push(h,p))}r&&(s=s||[]).push("style",r);var h=s;(t.updateQueue=h)&&(t.flags|=4)}};xm=function(e,t,r,n){r!==n&&(t.flags|=4)};function Na(e,t){if(!dr)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 Gr(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 Q2(e,t,r){var n=t.pendingProps;switch(Ff(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(t),null;case 1:return _n(t.type)&&qo(),Gr(t),null;case 3:return n=t.stateNode,ca(),fr(hn),fr(Zr),Gf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wn!==null&&(q$(Wn),Wn=null))),A$(e,t),Gr(t),null;case 5:Yf(t);var i=vs(pl.current);if(r=t.type,e!==null&&t.stateNode!=null)wm(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Et(166));return Gr(t),null}if(e=vs(ai.current),Wl(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[ri]=t,n[hl]=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<Ha.length;i++)cr(Ha[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":ld(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":ud(n,s),cr("invalid",n)}Oc(r,s),i=null;for(var c in s)if(s.hasOwnProperty(c)){var d=s[c];c==="children"?typeof d=="string"?n.textContent!==d&&(s.suppressHydrationWarning!==!0&&Vl(n.textContent,d,e),i=["children",d]):typeof d=="number"&&n.textContent!==""+d&&(s.suppressHydrationWarning!==!0&&Vl(n.textContent,d,e),i=["children",""+d]):il.hasOwnProperty(c)&&d!=null&&c==="onScroll"&&cr("scroll",n)}switch(r){case"input":Dl(n),od(n,s,!0);break;case"textarea":Dl(n),cd(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Io)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{c=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Z_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),r==="select"&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[ri]=t,e[hl]=n,bm(e,t,!1,!1),t.stateNode=e;e:{switch(c=e$(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<Ha.length;i++)cr(Ha[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":ld(e,n),i=Kc(e,n),cr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=yr({},n,{value:void 0}),cr("invalid",e);break;case"textarea":ud(e,n),i=Zc(e,n),cr("invalid",e);break;default:i=n}Oc(r,i),d=i;for(s in d)if(d.hasOwnProperty(s)){var p=d[s];s==="style"?ep(e,p):s==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,p!=null&&J_(e,p)):s==="children"?typeof p=="string"?(r!=="textarea"||p!=="")&&sl(e,p):typeof p=="number"&&sl(e,""+p):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(il.hasOwnProperty(s)?p!=null&&s==="onScroll"&&cr("scroll",e):p!=null&&xf(e,s,p,c))}switch(r){case"input":Dl(e),od(e,n,!1);break;case"textarea":Dl(e),cd(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ji(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Js(e,!!n.multiple,s,!1):n.defaultValue!=null&&Js(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Io)}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 Gr(t),null;case 6:if(e&&t.stateNode!=null)xm(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Et(166));if(r=vs(pl.current),vs(ai.current),Wl(t)){if(n=t.stateNode,r=t.memoizedProps,n[ri]=t,(s=n.nodeValue!==r)&&(e=wn,e!==null))switch(e.tag){case 3:Vl(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vl(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ri]=t,t.stateNode=n}return Gr(t),null;case 13:if(fr(mr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dr&&yn!==null&&t.mode&1&&!(t.flags&128))jp(),oa(),t.flags|=98560,s=!1;else if(s=Wl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Et(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Et(317));s[ri]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gr(t),s=!1}else Wn!==null&&(q$(Wn),Wn=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||mr.current&1?Mr===0&&(Mr=3):s0())),t.updateQueue!==null&&(t.flags|=4),Gr(t),null);case 4:return ca(),A$(e,t),e===null&&fl(t.stateNode.containerInfo),Gr(t),null;case 10:return Uf(t.type._context),Gr(t),null;case 17:return _n(t.type)&&qo(),Gr(t),null;case 19:if(fr(mr),s=t.memoizedState,s===null)return Gr(t),null;if(n=(t.flags&128)!==0,c=s.rendering,c===null)if(n)Na(s,!1);else{if(Mr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=jo(e),c!==null){for(t.flags|=128,Na(s,!1),n=c.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,c=s.alternate,c===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=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ur(mr,mr.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ar()>fa&&(t.flags|=128,n=!0,Na(s,!1),t.lanes=4194304)}else{if(!n)if(e=jo(c),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Na(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!dr)return Gr(t),null}else 2*Ar()-s.renderingStartTime>fa&&r!==1073741824&&(t.flags|=128,n=!0,Na(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(r=s.last,r!==null?r.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ar(),t.sibling=null,r=mr.current,ur(mr,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return i0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?gn&1073741824&&(Gr(t),t.subtreeFlags&6&&(t.flags|=8192)):Gr(t),null;case 24:return null;case 25:return null}throw Error(Et(156,t.tag))}function Z2(e,t){switch(Ff(t),t.tag){case 1:return _n(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(),fr(hn),fr(Zr),Gf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yf(t),null;case 13:if(fr(mr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Et(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fr(mr),null;case 4:return ca(),null;case 10:return Uf(t.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var Kl=!1,Kr=!1,J2=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function Ks(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){xr(e,t,n)}else r.current=null}function E$(e,t,r){try{r()}catch(n){xr(e,t,n)}}var Od=!1;function O2(e,t){if(c$=zo,e=Cp(),Df(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 c=0,d=-1,p=-1,h=0,q=0,j=e,G=null;t:for(;;){for(var pe;j!==r||i!==0&&j.nodeType!==3||(d=c+i),j!==s||n!==0&&j.nodeType!==3||(p=c+n),j.nodeType===3&&(c+=j.nodeValue.length),(pe=j.firstChild)!==null;)G=j,j=pe;for(;;){if(j===e)break t;if(G===r&&++h===i&&(d=c),G===s&&++q===n&&(p=c),(pe=j.nextSibling)!==null)break;j=G,G=j.parentNode}j=pe}r=d===-1||p===-1?null:{start:d,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for($$={focusedElem:e,selectionRange:r},zo=!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 ke=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ke!==null){var $e=ke.memoizedProps,W=ke.memoizedState,Z=t.stateNode,ve=Z.getSnapshotBeforeUpdate(t.elementType===t.type?$e:Hn(t.type,$e),W);Z.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var ae=t.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Et(163))}}catch(ye){xr(t,t.return,ye)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return ke=Od,Od=!1,ke}function Oa(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&&E$(t,r,s)}i=i.next}while(i!==n)}}function pu(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 C$(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 km(e){var t=e.alternate;t!==null&&(e.alternate=null,km(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ri],delete t[hl],delete t[h$],delete t[M2],delete t[D2])),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 Sm(e){return e.tag===5||e.tag===3||e.tag===4}function eh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sm(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 T$(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=Io));else if(n!==4&&(e=e.child,e!==null))for(T$(e,t,r),e=e.sibling;e!==null;)T$(e,t,r),e=e.sibling}function z$(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(z$(e,t,r),e=e.sibling;e!==null;)z$(e,t,r),e=e.sibling}var jr=null,Vn=!1;function zi(e,t,r){for(r=r.child;r!==null;)Am(e,t,r),r=r.sibling}function Am(e,t,r){if(si&&typeof si.onCommitFiberUnmount=="function")try{si.onCommitFiberUnmount(ou,r)}catch{}switch(r.tag){case 5:Kr||Ks(r,t);case 6:var n=jr,i=Vn;jr=null,zi(e,t,r),jr=n,Vn=i,jr!==null&&(Vn?(e=jr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):jr.removeChild(r.stateNode));break;case 18:jr!==null&&(Vn?(e=jr,r=r.stateNode,e.nodeType===8?lc(e.parentNode,r):e.nodeType===1&&lc(e,r),ul(e)):lc(jr,r.stateNode));break;case 4:n=jr,i=Vn,jr=r.stateNode.containerInfo,Vn=!0,zi(e,t,r),jr=n,Vn=i;break;case 0:case 11:case 14:case 15:if(!Kr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,c=s.destroy;s=s.tag,c!==void 0&&(s&2||s&4)&&E$(r,t,c),i=i.next}while(i!==n)}zi(e,t,r);break;case 1:if(!Kr&&(Ks(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(d){xr(r,t,d)}zi(e,t,r);break;case 21:zi(e,t,r);break;case 22:r.mode&1?(Kr=(n=Kr)||r.memoizedState!==null,zi(e,t,r),Kr=n):zi(e,t,r);break;default:zi(e,t,r)}}function th(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new J2),t.forEach(function(n){var i=oy.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function jn(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,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 5:jr=d.stateNode,Vn=!1;break e;case 3:jr=d.stateNode.containerInfo,Vn=!0;break e;case 4:jr=d.stateNode.containerInfo,Vn=!0;break e}d=d.return}if(jr===null)throw Error(Et(160));Am(s,c,i),jr=null,Vn=!1;var p=i.alternate;p!==null&&(p.return=null),i.return=null}catch(h){xr(i,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Em(t,e),t=t.sibling}function Em(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jn(t,e),Jn(e),n&4){try{Oa(3,e,e.return),pu(3,e)}catch($e){xr(e,e.return,$e)}try{Oa(5,e,e.return)}catch($e){xr(e,e.return,$e)}}break;case 1:jn(t,e),Jn(e),n&512&&r!==null&&Ks(r,r.return);break;case 5:if(jn(t,e),Jn(e),n&512&&r!==null&&Ks(r,r.return),e.flags&32){var i=e.stateNode;try{sl(i,"")}catch($e){xr(e,e.return,$e)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,c=r!==null?r.memoizedProps:s,d=e.type,p=e.updateQueue;if(e.updateQueue=null,p!==null)try{d==="input"&&s.type==="radio"&&s.name!=null&&X_(i,s),e$(d,c);var h=e$(d,s);for(c=0;c<p.length;c+=2){var q=p[c],j=p[c+1];q==="style"?ep(i,j):q==="dangerouslySetInnerHTML"?J_(i,j):q==="children"?sl(i,j):xf(i,q,j,h)}switch(d){case"input":Xc(i,s);break;case"textarea":Q_(i,s);break;case"select":var G=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var pe=s.value;pe!=null?Js(i,!!s.multiple,pe,!1):G!==!!s.multiple&&(s.defaultValue!=null?Js(i,!!s.multiple,s.defaultValue,!0):Js(i,!!s.multiple,s.multiple?[]:"",!1))}i[hl]=s}catch($e){xr(e,e.return,$e)}}break;case 6:if(jn(t,e),Jn(e),n&4){if(e.stateNode===null)throw Error(Et(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch($e){xr(e,e.return,$e)}}break;case 3:if(jn(t,e),Jn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch($e){xr(e,e.return,$e)}break;case 4:jn(t,e),Jn(e);break;case 13:jn(t,e),Jn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(r0=Ar())),n&4&&th(e);break;case 22:if(q=r!==null&&r.memoizedState!==null,e.mode&1?(Kr=(h=Kr)||q,jn(t,e),Kr=h):jn(t,e),Jn(e),n&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!q&&e.mode&1)for(Ft=e,q=e.child;q!==null;){for(j=Ft=q;Ft!==null;){switch(G=Ft,pe=G.child,G.tag){case 0:case 11:case 14:case 15:Oa(4,G,G.return);break;case 1:Ks(G,G.return);var ke=G.stateNode;if(typeof ke.componentWillUnmount=="function"){n=G,r=G.return;try{t=n,ke.props=t.memoizedProps,ke.state=t.memoizedState,ke.componentWillUnmount()}catch($e){xr(n,r,$e)}}break;case 5:Ks(G,G.return);break;case 22:if(G.memoizedState!==null){nh(j);continue}}pe!==null?(pe.return=G,Ft=pe):nh(j)}q=q.sibling}e:for(q=null,j=e;;){if(j.tag===5){if(q===null){q=j;try{i=j.stateNode,h?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(d=j.stateNode,p=j.memoizedProps.style,c=p!=null&&p.hasOwnProperty("display")?p.display:null,d.style.display=O_("display",c))}catch($e){xr(e,e.return,$e)}}}else if(j.tag===6){if(q===null)try{j.stateNode.nodeValue=h?"":j.memoizedProps}catch($e){xr(e,e.return,$e)}}else if((j.tag!==22&&j.tag!==23||j.memoizedState===null||j===e)&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===e)break e;for(;j.sibling===null;){if(j.return===null||j.return===e)break e;q===j&&(q=null),j=j.return}q===j&&(q=null),j.sibling.return=j.return,j=j.sibling}}break;case 19:jn(t,e),Jn(e),n&4&&th(e);break;case 21:break;default:jn(t,e),Jn(e)}}function Jn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Sm(r)){var n=r;break e}r=r.return}throw Error(Et(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(sl(i,""),n.flags&=-33);var s=eh(e);z$(e,s,i);break;case 3:case 4:var c=n.stateNode.containerInfo,d=eh(e);T$(e,d,c);break;default:throw Error(Et(161))}}catch(p){xr(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ey(e,t,r){Ft=e,Cm(e)}function Cm(e,t,r){for(var n=(e.mode&1)!==0;Ft!==null;){var i=Ft,s=i.child;if(i.tag===22&&n){var c=i.memoizedState!==null||Kl;if(!c){var d=i.alternate,p=d!==null&&d.memoizedState!==null||Kr;d=Kl;var h=Kr;if(Kl=c,(Kr=p)&&!h)for(Ft=i;Ft!==null;)c=Ft,p=c.child,c.tag===22&&c.memoizedState!==null?ih(i):p!==null?(p.return=c,Ft=p):ih(i);for(;s!==null;)Ft=s,Cm(s),s=s.sibling;Ft=i,Kl=d,Kr=h}rh(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):rh(e)}}function rh(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:Kr||pu(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Kr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Hn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Pd(t,s,n);break;case 3:var c=t.updateQueue;if(c!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Pd(t,c,r)}break;case 5:var d=t.stateNode;if(r===null&&t.flags&4){r=d;var p=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":p.autoFocus&&r.focus();break;case"img":p.src&&(r.src=p.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var q=h.memoizedState;if(q!==null){var j=q.dehydrated;j!==null&&ul(j)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Et(163))}Kr||t.flags&512&&C$(t)}catch(G){xr(t,t.return,G)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function nh(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 ih(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{pu(4,t)}catch(p){xr(t,r,p)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(p){xr(t,i,p)}}var s=t.return;try{C$(t)}catch(p){xr(t,s,p)}break;case 5:var c=t.return;try{C$(t)}catch(p){xr(t,c,p)}}}catch(p){xr(t,t.return,p)}if(t===e){Ft=null;break}var d=t.sibling;if(d!==null){d.return=t.return,Ft=d;break}Ft=t.return}}var ty=Math.ceil,Vo=Ai.ReactCurrentDispatcher,e0=Ai.ReactCurrentOwner,Dn=Ai.ReactCurrentBatchConfig,rr=0,Pr=null,Tr=null,Hr=0,gn=0,Xs=as(0),Mr=0,yl=null,Ss=0,mu=0,t0=0,el=null,fn=null,r0=0,fa=1/0,hi=null,Wo=!1,R$=null,Ki=null,Xl=!1,ji=null,Yo=0,tl=0,N$=null,go=-1,vo=0;function sn(){return rr&6?Ar():go!==-1?go:go=Ar()}function Xi(e){return e.mode&1?rr&2&&Hr!==0?Hr&-Hr:F2.transition!==null?(vo===0&&(vo=fp()),vo):(e=lr,e!==0||(e=window.event,e=e===void 0?16:vp(e.type)),e):1}function Xn(e,t,r,n){if(50<tl)throw tl=0,N$=null,Error(Et(185));Sl(e,r,n),(!(rr&2)||e!==Pr)&&(e===Pr&&(!(rr&2)&&(mu|=r),Mr===4&&Bi(e,Hr)),pn(e,n),r===1&&rr===0&&!(t.mode&1)&&(fa=Ar()+500,du&&ls()))}function pn(e,t){var r=e.callbackNode;Fv(e,t);var n=To(e,e===Pr?Hr:0);if(n===0)r!==null&&dd(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&dd(r),t===1)e.tag===0?L2(sh.bind(null,e)):Fp(sh.bind(null,e)),I2(function(){!(rr&6)&&ls()}),r=null;else{switch(dp(n)){case 1:r=Cf;break;case 4:r=cp;break;case 16:r=Co;break;case 536870912:r=$p;break;default:r=Co}r=Dm(r,Tm.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Tm(e,t){if(go=-1,vo=0,rr&6)throw Error(Et(327));var r=e.callbackNode;if(na()&&e.callbackNode!==r)return null;var n=To(e,e===Pr?Hr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Go(e,n);else{t=n;var i=rr;rr|=2;var s=Rm();(Pr!==e||Hr!==t)&&(hi=null,fa=Ar()+500,ys(e,t));do try{iy();break}catch(d){zm(e,d)}while(!0);jf(),Vo.current=s,rr=i,Tr!==null?t=0:(Pr=null,Hr=0,t=Mr)}if(t!==0){if(t===2&&(i=s$(e),i!==0&&(n=i,t=I$(e,i))),t===1)throw r=yl,ys(e,0),Bi(e,n),pn(e,Ar()),r;if(t===6)Bi(e,n);else{if(i=e.current.alternate,!(n&30)&&!ry(i)&&(t=Go(e,n),t===2&&(s=s$(e),s!==0&&(n=s,t=I$(e,s))),t===1))throw r=yl,ys(e,0),Bi(e,n),pn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Et(345));case 2:hs(e,fn,hi);break;case 3:if(Bi(e,n),(n&130023424)===n&&(t=r0+500-Ar(),10<t)){if(To(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){sn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=d$(hs.bind(null,e,fn,hi),t);break}hs(e,fn,hi);break;case 4:if(Bi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var c=31-Kn(n);s=1<<c,c=t[c],c>i&&(i=c),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*ty(n/1960))-n,10<n){e.timeoutHandle=d$(hs.bind(null,e,fn,hi),n);break}hs(e,fn,hi);break;case 5:hs(e,fn,hi);break;default:throw Error(Et(329))}}}return pn(e,Ar()),e.callbackNode===r?Tm.bind(null,e):null}function I$(e,t){var r=el;return e.current.memoizedState.isDehydrated&&(ys(e,t).flags|=256),e=Go(e,t),e!==2&&(t=fn,fn=r,t!==null&&q$(t)),e}function q$(e){fn===null?fn=e:fn.push.apply(fn,e)}function ry(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(!Zn(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 Bi(e,t){for(t&=~t0,t&=~mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Kn(t),n=1<<r;e[r]=-1,t&=~n}}function sh(e){if(rr&6)throw Error(Et(327));na();var t=To(e,0);if(!(t&1))return pn(e,Ar()),null;var r=Go(e,t);if(e.tag!==0&&r===2){var n=s$(e);n!==0&&(t=n,r=I$(e,n))}if(r===1)throw r=yl,ys(e,0),Bi(e,t),pn(e,Ar()),r;if(r===6)throw Error(Et(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hs(e,fn,hi),pn(e,Ar()),null}function n0(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(fa=Ar()+500,du&&ls())}}function As(e){ji!==null&&ji.tag===0&&!(rr&6)&&na();var t=rr;rr|=1;var r=Dn.transition,n=lr;try{if(Dn.transition=null,lr=1,e)return e()}finally{lr=n,Dn.transition=r,rr=t,!(rr&6)&&ls()}}function i0(){gn=Xs.current,fr(Xs)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,N2(r)),Tr!==null)for(r=Tr.return;r!==null;){var n=r;switch(Ff(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&qo();break;case 3:ca(),fr(hn),fr(Zr),Gf();break;case 5:Yf(n);break;case 4:ca();break;case 13:fr(mr);break;case 19:fr(mr);break;case 10:Uf(n.type._context);break;case 22:case 23:i0()}r=r.return}if(Pr=e,Tr=e=Qi(e.current,null),Hr=gn=t,Mr=0,yl=null,t0=mu=Ss=0,fn=el=null,gs!==null){for(t=0;t<gs.length;t++)if(r=gs[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var c=s.next;s.next=i,n.next=c}r.pending=n}gs=null}return e}function zm(e,t){do{var r=Tr;try{if(jf(),_o.current=Ho,Uo){for(var n=vr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Uo=!1}if(ks=0,Br=qr=vr=null,Ja=!1,ml=0,e0.current=null,r===null||r.return===null){Mr=1,yl=t,Tr=null;break}e:{var s=e,c=r.return,d=r,p=t;if(t=Hr,d.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){var h=p,q=d,j=q.tag;if(!(q.mode&1)&&(j===0||j===11||j===15)){var G=q.alternate;G?(q.updateQueue=G.updateQueue,q.memoizedState=G.memoizedState,q.lanes=G.lanes):(q.updateQueue=null,q.memoizedState=null)}var pe=Yd(c);if(pe!==null){pe.flags&=-257,Gd(pe,c,d,s,t),pe.mode&1&&Wd(s,h,t),t=pe,p=h;var ke=t.updateQueue;if(ke===null){var $e=new Set;$e.add(p),t.updateQueue=$e}else ke.add(p);break e}else{if(!(t&1)){Wd(s,h,t),s0();break e}p=Error(Et(426))}}else if(dr&&d.mode&1){var W=Yd(c);if(W!==null){!(W.flags&65536)&&(W.flags|=256),Gd(W,c,d,s,t),Bf($a(p,d));break e}}s=p=$a(p,d),Mr!==4&&(Mr=2),el===null?el=[s]:el.push(s),s=c;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var Z=dm(s,p,t);Bd(s,Z);break e;case 1:d=p;var ve=s.type,ae=s.stateNode;if(!(s.flags&128)&&(typeof ve.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(Ki===null||!Ki.has(ae)))){s.flags|=65536,t&=-t,s.lanes|=t;var ye=hm(s,d,t);Bd(s,ye);break e}}s=s.return}while(s!==null)}Im(r)}catch(le){t=le,Tr===r&&r!==null&&(Tr=r=r.return);continue}break}while(!0)}function Rm(){var e=Vo.current;return Vo.current=Ho,e===null?Ho:e}function s0(){(Mr===0||Mr===3||Mr===2)&&(Mr=4),Pr===null||!(Ss&268435455)&&!(mu&268435455)||Bi(Pr,Hr)}function Go(e,t){var r=rr;rr|=2;var n=Rm();(Pr!==e||Hr!==t)&&(hi=null,ys(e,t));do try{ny();break}catch(i){zm(e,i)}while(!0);if(jf(),rr=r,Vo.current=n,Tr!==null)throw Error(Et(261));return Pr=null,Hr=0,Mr}function ny(){for(;Tr!==null;)Nm(Tr)}function iy(){for(;Tr!==null&&!Tv();)Nm(Tr)}function Nm(e){var t=Mm(e.alternate,e,gn);e.memoizedProps=e.pendingProps,t===null?Im(e):Tr=t,e0.current=null}function Im(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Z2(r,t),r!==null){r.flags&=32767,Tr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mr=6,Tr=null;return}}else if(r=Q2(r,t,gn),r!==null){Tr=r;return}if(t=t.sibling,t!==null){Tr=t;return}Tr=t=e}while(t!==null);Mr===0&&(Mr=5)}function hs(e,t,r){var n=lr,i=Dn.transition;try{Dn.transition=null,lr=1,sy(e,t,r,n)}finally{Dn.transition=i,lr=n}return null}function sy(e,t,r,n){do na();while(ji!==null);if(rr&6)throw Error(Et(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(Et(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(Bv(e,s),e===Pr&&(Tr=Pr=null,Hr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Xl||(Xl=!0,Dm(Co,function(){return na(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Dn.transition,Dn.transition=null;var c=lr;lr=1;var d=rr;rr|=4,e0.current=null,O2(e,r),Em(r,e),S2($$),zo=!!c$,$$=c$=null,e.current=r,ey(r),zv(),rr=d,lr=c,Dn.transition=s}else e.current=r;if(Xl&&(Xl=!1,ji=e,Yo=i),s=e.pendingLanes,s===0&&(Ki=null),Iv(r.stateNode),pn(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(Wo)throw Wo=!1,e=R$,R$=null,e;return Yo&1&&e.tag!==0&&na(),s=e.pendingLanes,s&1?e===N$?tl++:(tl=0,N$=e):tl=0,ls(),null}function na(){if(ji!==null){var e=dp(Yo),t=Dn.transition,r=lr;try{if(Dn.transition=null,lr=16>e?16:e,ji===null)var n=!1;else{if(e=ji,ji=null,Yo=0,rr&6)throw Error(Et(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,c=s.child;if(Ft.flags&16){var d=s.deletions;if(d!==null){for(var p=0;p<d.length;p++){var h=d[p];for(Ft=h;Ft!==null;){var q=Ft;switch(q.tag){case 0:case 11:case 15:Oa(8,q,s)}var j=q.child;if(j!==null)j.return=q,Ft=j;else for(;Ft!==null;){q=Ft;var G=q.sibling,pe=q.return;if(km(q),q===h){Ft=null;break}if(G!==null){G.return=pe,Ft=G;break}Ft=pe}}}var ke=s.alternate;if(ke!==null){var $e=ke.child;if($e!==null){ke.child=null;do{var W=$e.sibling;$e.sibling=null,$e=W}while($e!==null)}}Ft=s}}if(s.subtreeFlags&2064&&c!==null)c.return=s,Ft=c;else e:for(;Ft!==null;){if(s=Ft,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Oa(9,s,s.return)}var Z=s.sibling;if(Z!==null){Z.return=s.return,Ft=Z;break e}Ft=s.return}}var ve=e.current;for(Ft=ve;Ft!==null;){c=Ft;var ae=c.child;if(c.subtreeFlags&2064&&ae!==null)ae.return=c,Ft=ae;else e:for(c=ve;Ft!==null;){if(d=Ft,d.flags&2048)try{switch(d.tag){case 0:case 11:case 15:pu(9,d)}}catch(le){xr(d,d.return,le)}if(d===c){Ft=null;break e}var ye=d.sibling;if(ye!==null){ye.return=d.return,Ft=ye;break e}Ft=d.return}}if(rr=i,ls(),si&&typeof si.onPostCommitFiberRoot=="function")try{si.onPostCommitFiberRoot(ou,e)}catch{}n=!0}return n}finally{lr=r,Dn.transition=t}}return!1}function ah(e,t,r){t=$a(r,t),t=dm(e,t,1),e=Gi(e,t,1),t=sn(),e!==null&&(Sl(e,1,t),pn(e,t))}function xr(e,t,r){if(e.tag===3)ah(e,e,r);else for(;t!==null;){if(t.tag===3){ah(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ki===null||!Ki.has(n))){e=$a(r,e),e=hm(t,e,1),t=Gi(t,e,1),e=sn(),t!==null&&(Sl(t,1,e),pn(t,e));break}}t=t.return}}function ay(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=sn(),e.pingedLanes|=e.suspendedLanes&r,Pr===e&&(Hr&r)===r&&(Mr===4||Mr===3&&(Hr&130023424)===Hr&&500>Ar()-r0?ys(e,0):t0|=r),pn(e,t)}function qm(e,t){t===0&&(e.mode&1?(t=Bl,Bl<<=1,!(Bl&130023424)&&(Bl=4194304)):t=1);var r=sn();e=xi(e,t),e!==null&&(Sl(e,t,r),pn(e,r))}function ly(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),qm(e,r)}function oy(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(Et(314))}n!==null&&n.delete(t),qm(e,r)}var Mm;Mm=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||hn.current)dn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return dn=!1,X2(e,t,r);dn=!!(e.flags&131072)}else dn=!1,dr&&t.flags&1048576&&Bp(t,Lo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;mo(e,t),e=t.pendingProps;var i=la(t,Zr.current);ra(t,r),i=Xf(null,t,n,e,i,r);var s=Qf();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,_n(n)?(s=!0,Mo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vf(t),i.updater=_u,t.stateNode=i,i._reactInternals=t,y$(t,n,e,r),t=x$(null,t,n,!0,s,r)):(t.tag=0,dr&&s&&Lf(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(mo(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=cy(n),e=Hn(n,e),i){case 0:t=w$(null,t,n,e,r);break e;case 1:t=Qd(null,t,n,e,r);break e;case 11:t=Kd(null,t,n,e,r);break e;case 14:t=Xd(null,t,n,Hn(n.type,e),r);break e}throw Error(Et(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Hn(n,i),w$(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Hn(n,i),Qd(e,t,n,i,r);case 3:e:{if(gm(t),e===null)throw Error(Et(387));n=t.pendingProps,s=t.memoizedState,i=s.element,Wp(e,t),Po(t,n,null,r);var c=t.memoizedState;if(n=c.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=$a(Error(Et(423)),t),t=Zd(e,t,n,r,i);break e}else if(n!==i){i=$a(Error(Et(424)),t),t=Zd(e,t,n,r,i);break e}else for(yn=Yi(t.stateNode.containerInfo.firstChild),wn=t,dr=!0,Wn=null,r=Hp(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(oa(),n===i){t=ki(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return Yp(t),e===null&&m$(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,c=i.children,f$(n,i)?c=null:s!==null&&f$(n,s)&&(t.flags|=32),mm(e,t),tn(e,t,c,r),t.child;case 6:return e===null&&m$(t),null;case 13:return vm(e,t,r);case 4:return Wf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ua(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Hn(n,i),Kd(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,c=i.value,ur(Fo,n._currentValue),n._currentValue=c,s!==null)if(Zn(s.value,c)){if(s.children===i.children&&!hn.current){t=ki(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var d=s.dependencies;if(d!==null){c=s.child;for(var p=d.firstContext;p!==null;){if(p.context===n){if(s.tag===1){p=vi(-1,r&-r),p.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var q=h.pending;q===null?p.next=p:(p.next=q.next,q.next=p),h.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),g$(s.return,r,t),d.lanes|=r;break}p=p.next}}else if(s.tag===10)c=s.type===t.type?null:s.child;else if(s.tag===18){if(c=s.return,c===null)throw Error(Et(341));c.lanes|=r,d=c.alternate,d!==null&&(d.lanes|=r),g$(c,r,t),c=s.sibling}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===t){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ra(t,r),i=Ln(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Hn(n,t.pendingProps),i=Hn(n.type,i),Xd(e,t,n,i,r);case 15:return _m(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Hn(n,i),mo(e,t),t.tag=1,_n(n)?(e=!0,Mo(t)):e=!1,ra(t,r),fm(t,n,i),y$(t,n,i,r),x$(null,t,n,!0,e,r);case 19:return ym(e,t,r);case 22:return pm(e,t,r)}throw Error(Et(156,t.tag))};function Dm(e,t){return up(e,t)}function uy(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 qn(e,t,r,n){return new uy(e,t,r,n)}function a0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cy(e){if(typeof e=="function")return a0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sf)return 11;if(e===Af)return 14}return 2}function Qi(e,t){var r=e.alternate;return r===null?(r=qn(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 yo(e,t,r,n,i,s){var c=2;if(n=e,typeof e=="function")a0(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case Bs:return bs(r.children,i,s,t);case kf:c=8,i|=8;break;case Vc:return e=qn(12,r,t,i|2),e.elementType=Vc,e.lanes=s,e;case Wc:return e=qn(13,r,t,i),e.elementType=Wc,e.lanes=s,e;case Yc:return e=qn(19,r,t,i),e.elementType=Yc,e.lanes=s,e;case Y_:return gu(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V_:c=10;break e;case W_:c=9;break e;case Sf:c=11;break e;case Af:c=14;break e;case Di:c=16,n=null;break e}throw Error(Et(130,e==null?e:typeof e,""))}return t=qn(c,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function bs(e,t,r,n){return e=qn(7,e,n,t),e.lanes=r,e}function gu(e,t,r,n){return e=qn(22,e,n,t),e.elementType=Y_,e.lanes=r,e.stateNode={isHidden:!1},e}function _c(e,t,r){return e=qn(6,e,null,t),e.lanes=r,e}function pc(e,t,r){return t=qn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $y(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=Qu(0),this.expirationTimes=Qu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function l0(e,t,r,n,i,s,c,d,p){return e=new $y(e,t,r,d,p),t===1?(t=1,s===!0&&(t|=8)):t=0,s=qn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vf(s),e}function fy(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Lm(e){if(!e)return Oi;e=e._reactInternals;e:{if(Ts(e)!==e||e.tag!==1)throw Error(Et(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_n(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Et(171))}if(e.tag===1){var r=e.type;if(_n(r))return Lp(e,r,t)}return t}function Fm(e,t,r,n,i,s,c,d,p){return e=l0(r,n,!0,e,i,s,c,d,p),e.context=Lm(null),r=e.current,n=sn(),i=Xi(r),s=vi(n,i),s.callback=t??null,Gi(r,s,i),e.current.lanes=i,Sl(e,i,n),pn(e,n),e}function vu(e,t,r,n){var i=t.current,s=sn(),c=Xi(i);return r=Lm(r),t.context===null?t.context=r:t.pendingContext=r,t=vi(s,c),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Gi(i,t,c),e!==null&&(Xn(e,i,c,s),ho(e,i,c)),c}function Ko(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 lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function o0(e,t){lh(e,t),(e=e.alternate)&&lh(e,t)}function dy(){return null}var Bm=typeof reportError=="function"?reportError:function(e){console.error(e)};function u0(e){this._internalRoot=e}yu.prototype.render=u0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Et(409));vu(e,t,null,null)};yu.prototype.unmount=u0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;As(function(){vu(null,e,null,null)}),t[wi]=null}};function yu(e){this._internalRoot=e}yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=pp();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Fi.length&&t!==0&&t<Fi[r].priority;r++);Fi.splice(r,0,e),r===0&&gp(e)}};function c0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function oh(){}function hy(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var h=Ko(c);s.call(h)}}var c=Fm(t,n,e,0,null,!1,!1,"",oh);return e._reactRootContainer=c,e[wi]=c.current,fl(e.nodeType===8?e.parentNode:e),As(),c}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var d=n;n=function(){var h=Ko(p);d.call(h)}}var p=l0(e,0,!1,null,null,!1,!1,"",oh);return e._reactRootContainer=p,e[wi]=p.current,fl(e.nodeType===8?e.parentNode:e),As(function(){vu(t,p,r,n)}),p}function wu(e,t,r,n,i){var s=r._reactRootContainer;if(s){var c=s;if(typeof i=="function"){var d=i;i=function(){var p=Ko(c);d.call(p)}}vu(t,c,e,i)}else c=hy(r,t,e,i,n);return Ko(c)}hp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ua(t.pendingLanes);r!==0&&(Tf(t,r|1),pn(t,Ar()),!(rr&6)&&(fa=Ar()+500,ls()))}break;case 13:As(function(){var n=xi(e,1);if(n!==null){var i=sn();Xn(n,e,1,i)}}),o0(e,1)}};zf=function(e){if(e.tag===13){var t=xi(e,134217728);if(t!==null){var r=sn();Xn(t,e,134217728,r)}o0(e,134217728)}};_p=function(e){if(e.tag===13){var t=Xi(e),r=xi(e,t);if(r!==null){var n=sn();Xn(r,e,t,n)}o0(e,t)}};pp=function(){return lr};mp=function(e,t){var r=lr;try{return lr=e,t()}finally{lr=r}};r$=function(e,t,r){switch(t){case"input":if(Xc(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=fu(n);if(!i)throw Error(Et(90));K_(n),Xc(n,i)}}}break;case"textarea":Q_(e,r);break;case"select":t=r.value,t!=null&&Js(e,!!r.multiple,t,!1)}};np=n0;ip=As;var _y={usingClientEntryPoint:!1,Events:[El,Hs,fu,tp,rp,n0]},Ia={findFiberByHostInstance:ms,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},py={bundleType:Ia.bundleType,version:Ia.version,rendererPackageName:Ia.rendererPackageName,rendererConfig:Ia.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ai.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lp(e),e===null?null:e.stateNode},findFiberByHostInstance:Ia.findFiberByHostInstance||dy,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 Ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ql.isDisabled&&Ql.supportsFiber)try{ou=Ql.inject(py),si=Ql}catch{}}An.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_y;An.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c0(t))throw Error(Et(200));return fy(e,t,null,r)};An.createRoot=function(e,t){if(!c0(e))throw Error(Et(299));var r=!1,n="",i=Bm;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=l0(e,1,!1,null,null,r,!1,n,i),e[wi]=t.current,fl(e.nodeType===8?e.parentNode:e),new u0(t)};An.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(Et(188)):(e=Object.keys(e).join(","),Error(Et(268,e)));return e=lp(t),e=e===null?null:e.stateNode,e};An.flushSync=function(e){return As(e)};An.hydrate=function(e,t,r){if(!bu(t))throw Error(Et(200));return wu(null,e,t,!0,r)};An.hydrateRoot=function(e,t,r){if(!c0(e))throw Error(Et(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",c=Bm;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),t=Fm(t,null,e,1,r??null,i,!1,s,c),e[wi]=t.current,fl(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 yu(t)};An.render=function(e,t,r){if(!bu(t))throw Error(Et(200));return wu(null,e,t,!1,r)};An.unmountComponentAtNode=function(e){if(!bu(e))throw Error(Et(40));return e._reactRootContainer?(As(function(){wu(null,null,e,!1,function(){e._reactRootContainer=null,e[wi]=null})}),!0):!1};An.unstable_batchedUpdates=n0;An.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!bu(r))throw Error(Et(200));if(e==null||e._reactInternals===void 0)throw Error(Et(38));return wu(e,t,r,!1,n)};An.version="18.3.1-next-f1338f8080-20240426";function Pm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pm)}catch(e){console.error(e)}}Pm(),P_.exports=An;var my=P_.exports,jm,uh=my;jm=uh.createRoot,uh.hydrateRoot;async function os(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 ch(){return os("/api/info")}function gy(){return os("/api/tasks")}function qa(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),os(`/api/tree?${r}`)}function ia(e,t,r){const n=new URLSearchParams({path:e});return t!=null&&n.set("depth",String(t)),r?.binary&&n.set("binary","1"),os(`/api/json?${n}`)}function va(e){return`/api/blob?path=${encodeURIComponent(e)}`}function vy(e,t){const r=new URLSearchParams({path:e});return os(`/api/schema?${r}`)}function yy(e){return os(`/api/annotations?path=${encodeURIComponent(e)}`)}function by(e){return os(`/api/tagged?path=${encodeURIComponent(e)}`)}function wy(e,t=":"){const r=new URLSearchParams({q:e,path:t});return os(`/api/query?${r}`).then(n=>n.results)}async function Um(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 xy(e,t,r){return Um("/api/fragment",{target:e,selector:t,...r?{imageBase64:r}:{}})}function M$(e){return Um("/api/annotate",e)}function ky(e){return fetch("/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 $0(e){return fetch("/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 Sy(e,t,r){return $0({path:e,filename:t,contentBase64:r})}function Ay(e,t){return $0({path:e,text:t})}function Ey(e,t){return $0({path:e,rich:t})}function Cy(e,t){const r=new URLSearchParams({target:e,tag:t});return fetch(`/api/annotate?${r}`,{method:"DELETE"}).then(async n=>{if(!n.ok)throw new Error((await n.json().catch(()=>null))?.error||`HTTP ${n.status}`)})}const Ty="modulepreload",zy=function(e){return"/"+e},$h={},Cn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=Promise.allSettled(r.map(p=>{if(p=zy(p),p in $h)return;$h[p]=!0;const h=p.endsWith(".css"),q=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${q}`))return;const j=document.createElement("link");if(j.rel=h?"stylesheet":Ty,h||(j.as="script"),j.crossOrigin="",j.href=p,d&&j.setAttribute("nonce",d),document.head.appendChild(j),h)return new Promise((G,pe)=>{j.addEventListener("load",G),j.addEventListener("error",()=>pe(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return i.then(c=>{for(const d of c||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})},Ry="$yamloverLink",Ny="$yamloverBinary",Iy="$yamloverRef",qy="$yamloverMixed";function xu(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 Qn=e=>xu(e,Ry),My=e=>xu(e,Ny),f0=e=>xu(e,Iy),d0=e=>xu(e,qy);function ya(e){const t=d0(e);return t&&t.kind==="omni"?t.value:e}function fh({value:e,syntax:t,onNavigate:r}){const n=My(e);if(n&&t==="yaml")return Oe.jsx(Dy,{bin:n});const i=n??e,s=[],c={n:0};return t==="yaml"?Vm(i,0,s,c,r):D$(i,0,s,c,r),Oe.jsx(Oe.Fragment,{children:s})}function Dy({bin:e}){const t=[];for(let r=0;r<e.base64.length;r+=76)t.push(" "+e.base64.slice(r,r+76));return Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("span",{className:"b",children:"!!binary"})," ",Oe.jsx("span",{className:"punct",children:"|"})," ",Oe.jsx("span",{className:"c",children:`# ${e.format??"binary"}, ${e.size} bytes`}),`
|
|
42
|
+
`,Oe.jsx("span",{className:"s",children:t.join(`
|
|
43
|
+
`)})]})}function h0(e,t,r,n){const i=e.kind==="scalar"?Hm(e.value,t):Ly(e);return Oe.jsx("a",{className:"descend",href:e.path,onClick:s=>{s.preventDefault(),n(e.path)},children:i},r.n++)}function Hm(e,t){return e==null?t==="json"?"null":"~":typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function _0(e,t,r,n){const i=t==="json"?JSON.stringify(e.text):e.text;if(!e.path)return Oe.jsx("span",{className:"s",children:i},r.n++);const s=e.path;return Oe.jsx("a",{className:"descend",href:s,onClick:c=>{c.preventDefault(),n(s)},children:i},r.n++)}function Ly(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 ${Hm(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function Xo(e,t,r){if(e===null)return Oe.jsx("span",{className:"null",children:t==="json"?"null":"~"},r.n++);if(typeof e=="boolean")return Oe.jsx("span",{className:"b",children:String(e)},r.n++);if(typeof e=="number")return Oe.jsx("span",{className:"n",children:String(e)},r.n++);const n=t==="json"?JSON.stringify(e):String(e);return Oe.jsx("span",{className:"s",children:n},r.n++)}const Qo=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Vm(e,t,r,n,i){const s=Qn(e);if(s){r.push(h0(s,"yaml",n,i),`
|
|
44
|
+
`);return}const c=f0(e);if(c){r.push(_0(c,"yaml",n,i),`
|
|
45
|
+
`);return}const d=d0(e);if(d){const p=" ".repeat(t);d.kind==="omni"&&r.push(p,Xo(d.value,"yaml",n),`
|
|
46
|
+
`);for(const h of d.entries)h.key===null?(r.push(p,Oe.jsx("span",{className:"punct",children:"- "},n.n++)),Zl(h.value,t,r,n,i,!0)):(r.push(p,Oe.jsx("span",{className:"k",children:h.key},n.n++),Oe.jsx("span",{className:"punct",children:":"},n.n++)),Zl(h.value,t,r,n,i));return}if(Qo(e)){const p=Object.entries(e);if(!p.length){r.push(Oe.jsx("span",{className:"punct",children:"{}"},n.n++),`
|
|
47
|
+
`);return}const h=" ".repeat(t);for(const[q,j]of p)r.push(h,Oe.jsx("span",{className:"k",children:q},n.n++),Oe.jsx("span",{className:"punct",children:":"},n.n++)),Zl(j,t,r,n,i);return}if(Array.isArray(e)){if(!e.length){r.push(Oe.jsx("span",{className:"punct",children:"[]"},n.n++),`
|
|
48
|
+
`);return}const p=" ".repeat(t);for(const h of e)r.push(p,Oe.jsx("span",{className:"punct",children:"- "},n.n++)),Zl(h,t,r,n,i,!0);return}r.push(Xo(e,"yaml",n),`
|
|
49
|
+
`)}function Zl(e,t,r,n,i,s=!1){const c=Qn(e),d=f0(e);c?r.push(" ",h0(c,"yaml",n,i),`
|
|
50
|
+
`):d?r.push(" ",_0(d,"yaml",n,i),`
|
|
51
|
+
`):Qo(e)&&Object.keys(e).length===0?r.push(" ",Oe.jsx("span",{className:"punct",children:"{}"},n.n++),`
|
|
52
|
+
`):Array.isArray(e)&&e.length===0?r.push(" ",Oe.jsx("span",{className:"punct",children:"[]"},n.n++),`
|
|
53
|
+
`):Qo(e)||Array.isArray(e)?(r.push(`
|
|
54
|
+
`),Vm(e,t+2,r,n,i)):r.push(" ",Xo(e,"yaml",n),`
|
|
55
|
+
`)}function D$(e,t,r,n,i){const s=Qn(e);if(s){r.push(h0(s,"json",n,i));return}const c=f0(e);if(c){r.push(_0(c,"json",n,i));return}const d=d0(e),p=d?[...d.kind==="omni"?[["$value",d.value]]:[],...d.entries.map((h,q)=>[h.key??String(q),h.value])]:Qo(e)?Object.entries(e):null;if(p){const h=p;if(!h.length){r.push(Oe.jsx("span",{className:"punct",children:"{}"},n.n++));return}const q=" ".repeat(t+2);r.push(Oe.jsx("span",{className:"punct",children:"{"},n.n++),`
|
|
56
|
+
`),h.forEach(([j,G],pe)=>{r.push(q,Oe.jsx("span",{className:"k",children:`"${j}"`},n.n++),Oe.jsx("span",{className:"punct",children:": "},n.n++)),D$(G,t+2,r,n,i),r.push(pe<h.length-1?",":"",`
|
|
57
|
+
`)}),r.push(" ".repeat(t),Oe.jsx("span",{className:"punct",children:"}"},n.n++));return}if(Array.isArray(e)){if(!e.length){r.push(Oe.jsx("span",{className:"punct",children:"[]"},n.n++));return}const h=" ".repeat(t+2);r.push(Oe.jsx("span",{className:"punct",children:"["},n.n++),`
|
|
58
|
+
`),e.forEach((q,j)=>{r.push(h),D$(q,t+2,r,n,i),r.push(j<e.length-1?",":"",`
|
|
59
|
+
`)}),r.push(" ".repeat(t),Oe.jsx("span",{className:"punct",children:"]"},n.n++));return}r.push(Xo(e,"json",n))}function li(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const Fy=/\[\d+\]|[^:\[\]]+/g,By=/\[\d+\]|[^/\[\]]+/g;function an(e){const t=[];for(const r of e.match(Fy)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):p0(r));return t}function rl(e){return li(an(e))}function p0(e){try{return decodeURIComponent(e)}catch{return e}}function dh(){const e=[];for(const t of window.location.pathname.match(By)||[])e.push(/^\[\d+\]$/.test(t)?Number(t.slice(1,-1)):p0(t));return li(e)}function Py(e){return an(e).map(r=>typeof r=="number"?`[${r}]`:`/${encodeURIComponent(r)}`).join("")||"/"}function m0(e){const t=an(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`:${r}`).join(""):":"}function jy(e){return e.replace(/[^:/\[\]]+/g,t=>p0(t))}function bo(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function hh(e){return new URLSearchParams(window.location.search).get("format")||e}function o7(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function u7(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 Ma(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${Py(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function Uy(e,t){const r=an(e),n=[];return t&&n.push({label:t,path:":"}),r.forEach((i,s)=>{n.push({label:typeof i=="number"?`[${i}]`:i,path:li(r.slice(0,s+1))})}),n}function Hy(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function Vy(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 Wm(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=Vy(n.id||Hy(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 g0(e){yt.useEffect(()=>{const t=decodeURIComponent(window.location.hash.slice(1));t&&document.getElementById(t)?.scrollIntoView?.()},[e])}function Wy({node:e,onNavigate:t}){const r=e.value??{},n=Array.isArray(r.chunks)?r.chunks:[],i=Array.isArray(r.children)?r.children:[];return g0(e),Oe.jsxs("div",{className:"chapter",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),n.map((s,c)=>Oe.jsx(Yy,{index:c,item:s,basePath:e.path,documentPath:e.documentPath,onNavigate:t},c)),i.map((s,c)=>{const d=Qn(s);return Oe.jsx("h2",{className:"chapter-link",children:Oe.jsx("a",{className:"descend",href:d?.path??"#",onClick:p=>{p.preventDefault(),d&&t(d.path)},children:Ky(d)})},c)})]})}function Yy({index:e,item:t,basePath:r,documentPath:n,onNavigate:i}){const s=Qn(t),c={value:s?s.value:t,path:s?.path??"",type:s?.type??"string",format:s?.format??null,valueType:s?.valueType??"string",hasKeyed:s?.hasKeyed??!1,hasOrdinal:s?.hasOrdinal??!1,documentPath:n},d=Uu(c),p=d?.renderChunk?d.renderChunk(c,i):Oe.jsx("p",{className:"chapter-prose",children:String(c.value??"")}),h=c.path?Gy(r,c.path):null;return Oe.jsxs("div",{className:"chunk",id:h??void 0,children:[h?Oe.jsxs("a",{className:"chunk-index",href:`#${h}`,children:["§",e]}):Oe.jsxs("span",{className:"chunk-index",children:["§",e]}),Oe.jsx("div",{className:"chunk-body",children:p})]})}function Gy(e,t){return li(an(t).slice(an(e).length))}function Ky(e){return e?.title??"(untitled chapter)"}function v0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var zs=v0();function Ym(e){zs=e}var _s={exec:()=>null};function Ds(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 c=typeof s=="string"?s:s.source;return c=c.replace(Xr.caret,"$1"),r=r.replace(i,c),n},getRegex:()=>new RegExp(r,t)};return n}var Xy=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Xr={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:Ds(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ds(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ds(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ds(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ds(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ds(e=>new RegExp(`^ {0,${e}}>`))},Qy=/^(?:[ \t]*(?:\n|$))+/,Zy=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Jy=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oy=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,y0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Gm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Km=tr(Gm).replace(/bull/g,y0).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(),e4=tr(Gm).replace(/bull/g,y0).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(),b0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,t4=/^[^\n]+/,w0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,r4=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),n4=tr(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y0).getRegex(),ku="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",x0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,i4=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",x0).replace("tag",ku).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xm=tr(b0).replace("hr",Tl).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",ku).getRegex(),s4=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xm).getRegex(),k0={blockquote:s4,code:Zy,def:r4,fences:Jy,heading:Oy,hr:Tl,html:i4,lheading:Km,list:n4,newline:Qy,paragraph:Xm,table:_s,text:t4},_h=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tl).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",ku).getRegex(),a4={...k0,lheading:e4,table:_h,paragraph:tr(b0).replace("hr",Tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_h).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",ku).getRegex()},l4={...k0,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",x0).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:_s,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(b0).replace("hr",Tl).replace("heading",` *#{1,6} *[^
|
|
60
|
+
]`).replace("lheading",Km).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},o4=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,u4=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Qm=/^( {2,}|\\)\n(?!\s*$)/,c4=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ba=/[\p{P}\p{S}]/u,Su=/[\s\p{P}\p{S}]/u,S0=/[^\s\p{P}\p{S}]/u,$4=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Su).getRegex(),Zm=/(?!~)[\p{P}\p{S}]/u,f4=/(?!~)[\s\p{P}\p{S}]/u,d4=/(?:[^\s\p{P}\p{S}]|~)/u,h4=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xy?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Jm=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_4=tr(Jm,"u").replace(/punct/g,ba).getRegex(),p4=tr(Jm,"u").replace(/punct/g,Zm).getRegex(),Om="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",m4=tr(Om,"gu").replace(/notPunctSpace/g,S0).replace(/punctSpace/g,Su).replace(/punct/g,ba).getRegex(),g4=tr(Om,"gu").replace(/notPunctSpace/g,d4).replace(/punctSpace/g,f4).replace(/punct/g,Zm).getRegex(),v4=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,S0).replace(/punctSpace/g,Su).replace(/punct/g,ba).getRegex(),y4=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ba).getRegex(),b4="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",w4=tr(b4,"gu").replace(/notPunctSpace/g,S0).replace(/punctSpace/g,Su).replace(/punct/g,ba).getRegex(),x4=tr(/\\(punct)/,"gu").replace(/punct/g,ba).getRegex(),k4=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(),S4=tr(x0).replace("(?:-->|$)","-->").getRegex(),A4=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",S4).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Zo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,E4=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Zo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),e1=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",Zo).replace("ref",w0).getRegex(),t1=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",w0).getRegex(),C4=tr("reflink|nolink(?!\\()","g").replace("reflink",e1).replace("nolink",t1).getRegex(),ph=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,A0={_backpedal:_s,anyPunctuation:x4,autolink:k4,blockSkip:h4,br:Qm,code:u4,del:_s,delLDelim:_s,delRDelim:_s,emStrongLDelim:_4,emStrongRDelimAst:m4,emStrongRDelimUnd:v4,escape:o4,link:E4,nolink:t1,punctuation:$4,reflink:e1,reflinkSearch:C4,tag:A4,text:c4,url:_s},T4={...A0,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",Zo).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Zo).getRegex()},L$={...A0,emStrongRDelimAst:g4,emStrongLDelim:p4,delLDelim:y4,delRDelim:w4,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ph).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",ph).getRegex()},z4={...L$,br:tr(Qm).replace("{2,}","*").getRegex(),text:tr(L$.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jl={normal:k0,gfm:a4,pedantic:l4},Da={normal:A0,gfm:L$,breaks:z4,pedantic:T4},R4={"&":"&","<":"<",">":">",'"':""","'":"'"},mh=e=>R4[e];function On(e,t){if(t){if(Xr.escapeTest.test(e))return e.replace(Xr.escapeReplace,mh)}else if(Xr.escapeTestNoEncode.test(e))return e.replace(Xr.escapeReplaceNoEncode,mh);return e}function gh(e){try{e=encodeURI(e).replace(Xr.percentDecode,"%")}catch{return null}return e}function vh(e,t){let r=e.replace(Xr.findPipe,(s,c,d)=>{let p=!1,h=c;for(;--h>=0&&d[h]==="\\";)p=!p;return p?"|":" |"}),n=r.split(Xr.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(Xr.slashPipe,"|");return n}function Ri(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 yh(e){let t=e.split(`
|
|
61
|
+
`),r=t.length-1;for(;r>=0&&Xr.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
|
|
62
|
+
`)}function N4(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 I4(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 bh(e,t,r,n,i){let s=t.href,c=t.title||null,d=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let p={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:c,text:d,tokens:n.inlineTokens(d)};return n.state.inLink=!1,p}function q4(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
63
|
+
`).map(s=>{let c=s.match(r.other.beginningSpace);if(c===null)return s;let[d]=c;return d.length>=i.length?s.slice(i.length):s}).join(`
|
|
64
|
+
`)}var Jo=class{options;rules;lexer;constructor(e){this.options=e||zs}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]:yh(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=q4(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=Ri(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Ri(t[0],`
|
|
65
|
+
`),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:Ri(t[0],`
|
|
66
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ri(t[0],`
|
|
67
|
+
`).split(`
|
|
68
|
+
`),n="",i="",s=[];for(;r.length>0;){let c=!1,d=[],p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))d.push(r[p]),c=!0;else if(!c)d.push(r[p]);else break;r=r.slice(p);let h=d.join(`
|
|
69
|
+
`),q=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
70
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
71
|
+
${h}`:h,i=i?`${i}
|
|
72
|
+
${q}`:q;let j=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(q,s,!0),this.lexer.state.top=j,r.length===0)break;let G=s.at(-1);if(G?.type==="code")break;if(G?.type==="blockquote"){let pe=G,ke=pe.raw+`
|
|
73
|
+
`+r.join(`
|
|
74
|
+
`),$e=this.blockquote(ke);s[s.length-1]=$e,n=n.substring(0,n.length-pe.raw.length)+$e.raw,i=i.substring(0,i.length-pe.text.length)+$e.text;break}else if(G?.type==="list"){let pe=G,ke=pe.raw+`
|
|
75
|
+
`+r.join(`
|
|
76
|
+
`),$e=this.list(ke);s[s.length-1]=$e,n=n.substring(0,n.length-G.raw.length)+$e.raw,i=i.substring(0,i.length-pe.raw.length)+$e.raw,r=ke.substring(s.at(-1).raw.length).split(`
|
|
77
|
+
`);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),c=!1;for(;e;){let p=!1,h="",q="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let j=I4(t[2].split(`
|
|
78
|
+
`,1)[0],t[1].length),G=e.split(`
|
|
79
|
+
`,1)[0],pe=!j.trim(),ke=0;if(this.options.pedantic?(ke=2,q=j.trimStart()):pe?ke=t[1].length+1:(ke=j.search(this.rules.other.nonSpaceChar),ke=ke>4?1:ke,q=j.slice(ke),ke+=t[1].length),pe&&this.rules.other.blankLine.test(G)&&(h+=G+`
|
|
80
|
+
`,e=e.substring(G.length+1),p=!0),!p){let $e=this.rules.other.nextBulletRegex(ke),W=this.rules.other.hrRegex(ke),Z=this.rules.other.fencesBeginRegex(ke),ve=this.rules.other.headingBeginRegex(ke),ae=this.rules.other.htmlBeginRegex(ke),ye=this.rules.other.blockquoteBeginRegex(ke);for(;e;){let le=e.split(`
|
|
81
|
+
`,1)[0],we;if(G=le,this.options.pedantic?(G=G.replace(this.rules.other.listReplaceNesting," "),we=G):we=G.replace(this.rules.other.tabCharGlobal," "),Z.test(G)||ve.test(G)||ae.test(G)||ye.test(G)||$e.test(G)||W.test(G))break;if(we.search(this.rules.other.nonSpaceChar)>=ke||!G.trim())q+=`
|
|
82
|
+
`+we.slice(ke);else{if(pe||j.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Z.test(j)||ve.test(j)||W.test(j))break;q+=`
|
|
83
|
+
`+G}pe=!G.trim(),h+=le+`
|
|
84
|
+
`,e=e.substring(le.length+1),j=we.slice(ke)}}i.loose||(c?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),i.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(q),loose:!1,text:q,tokens:[]}),i.raw+=h}let d=i.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let p of i.items){this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]);let h=p.tokens[0];if(p.task&&(h?.type==="text"||h?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let j=this.lexer.inlineQueue.length-1;j>=0;j--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[j].src)){this.lexer.inlineQueue[j].src=this.lexer.inlineQueue[j].src.replace(this.rules.other.listReplaceTask,"");break}let q=this.rules.other.listTaskCheckbox.exec(p.raw);if(q){let j={type:"checkbox",raw:q[0]+" ",checked:q[0]!=="[ ]"};p.checked=j.checked,i.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=j.raw+p.tokens[0].raw,p.tokens[0].text=j.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(j)):p.tokens.unshift({type:"paragraph",raw:j.raw,text:j.raw,tokens:[j]}):p.tokens.unshift(j)}}else p.task&&(p.task=!1);if(!i.loose){let q=p.tokens.filter(G=>G.type==="space"),j=q.length>0&&q.some(G=>this.rules.other.anyLine.test(G.raw));i.loose=j}}if(i.loose)for(let p of i.items){p.loose=!0;for(let h of p.tokens)h.type==="text"&&(h.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=yh(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:Ri(t[0],`
|
|
85
|
+
`),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=vh(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
86
|
+
`):[],s={type:"table",raw:Ri(t[0],`
|
|
87
|
+
`),header:[],align:[],rows:[]};if(r.length===n.length){for(let c of n)this.rules.other.tableAlignRight.test(c)?s.align.push("right"):this.rules.other.tableAlignCenter.test(c)?s.align.push("center"):this.rules.other.tableAlignLeft.test(c)?s.align.push("left"):s.align.push(null);for(let c=0;c<r.length;c++)s.header.push({text:r[c],tokens:this.lexer.inline(r[c]),header:!0,align:s.align[c]});for(let c of i)s.rows.push(vh(c,s.header.length).map((d,p)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:s.align[p]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Ri(t[0],`
|
|
88
|
+
`),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)===`
|
|
89
|
+
`?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=Ri(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=N4(t[2],"()");if(s===-2)return;if(s>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,c).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)),bh(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 bh(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,c,d=i,p=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;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)continue;if(c=[...s].length,n[3]||n[4]){d+=c;continue}else if((n[5]||n[6])&&i%3&&!((i+c)%3)){p+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+p);let q=[...n[0]][0].length,j=e.slice(0,i+n.index+q+c);if(Math.min(i,c)%2){let pe=j.slice(1,-1);return{type:"em",raw:j,text:pe,tokens:this.lexer.inlineTokens(pe)}}let G=j.slice(2,-2);return{type:"strong",raw:j,text:G,tokens:this.lexer.inlineTokens(G)}}}}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,c,d=i,p=this.rules.inline.delRDelim;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(n=p.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(c=[...s].length,c!==i))continue;if(n[3]||n[4]){d+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d);let h=[...n[0]][0].length,q=e.slice(0,i+n.index+h+c),j=q.slice(i,-i);return{type:"del",raw:q,text:j,tokens:this.lexer.inlineTokens(j)}}}}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}}}},Yn=class F${tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||zs,this.options.tokenizer=this.options.tokenizer||new Jo,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:Xr,block:Jl.normal,inline:Da.normal};this.options.pedantic?(r.block=Jl.pedantic,r.inline=Da.pedantic):this.options.gfm&&(r.block=Jl.gfm,this.options.breaks?r.inline=Da.breaks:r.inline=Da.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jl,inline:Da}}static lex(t,r){return new F$(r).lex(t)}static lexInline(t,r){return new F$(r).inlineTokens(t)}lex(t){t=t.replace(Xr.carriageReturn,`
|
|
90
|
+
`),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(Xr.tabCharGlobal," ").replace(Xr.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(d=>(s=d.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 d=r.at(-1);s.raw.length===1&&d!==void 0?d.raw+=`
|
|
91
|
+
`:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let d=r.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
|
|
92
|
+
`)?"":`
|
|
93
|
+
`)+s.raw,d.text+=`
|
|
94
|
+
`+s.text,this.inlineQueue.at(-1).src=d.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 d=r.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
|
|
95
|
+
`)?"":`
|
|
96
|
+
`)+s.raw,d.text+=`
|
|
97
|
+
`+s.raw,this.inlineQueue.at(-1).src=d.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 c=t;if(this.options.extensions?.startBlock){let d=1/0,p=t.slice(1),h;this.options.extensions.startBlock.forEach(q=>{h=q.call({lexer:this},p),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(c=t.substring(0,d+1))}if(this.state.top&&(s=this.tokenizer.paragraph(c))){let d=r.at(-1);n&&d?.type==="paragraph"?(d.raw+=(d.raw.endsWith(`
|
|
98
|
+
`)?"":`
|
|
99
|
+
`)+s.raw,d.text+=`
|
|
100
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(s),n=c.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let d=r.at(-1);d?.type==="text"?(d.raw+=(d.raw.endsWith(`
|
|
101
|
+
`)?"":`
|
|
102
|
+
`)+s.raw,d.text+=`
|
|
103
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.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 h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)h.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 c=!1,d="",p=1/0;for(;t;){if(t.length<p)p=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}c||(d=""),c=!1;let h;if(this.options.extensions?.inline?.some(j=>(h=j.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let j=r.at(-1);h.type==="text"&&j?.type==="text"?(j.raw+=h.raw,j.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,d)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t,n,d)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let q=t;if(this.options.extensions?.startInline){let j=1/0,G=t.slice(1),pe;this.options.extensions.startInline.forEach(ke=>{pe=ke.call({lexer:this},G),typeof pe=="number"&&pe>=0&&(j=Math.min(j,pe))}),j<1/0&&j>=0&&(q=t.substring(0,j+1))}if(h=this.tokenizer.inlineText(q)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(d=h.raw.slice(-1)),c=!0;let j=r.at(-1);j?.type==="text"?(j.raw+=h.raw,j.text+=h.text):r.push(h);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)}},Oo=class{options;parser;constructor(e){this.options=e||zs}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Xr.notSpaceStart)?.[0],i=e.replace(Xr.endingNewline,"")+`
|
|
104
|
+
`;return n?'<pre><code class="language-'+On(n)+'">'+(r?i:On(i,!0))+`</code></pre>
|
|
105
|
+
`:"<pre><code>"+(r?i:On(i,!0))+`</code></pre>
|
|
106
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
107
|
+
${this.parser.parse(e)}</blockquote>
|
|
108
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
109
|
+
`}hr(e){return`<hr>
|
|
110
|
+
`}list(e){let t=e.ordered,r=e.start,n="";for(let c=0;c<e.items.length;c++){let d=e.items[c];n+=this.listitem(d)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
|
|
111
|
+
`+n+"</"+i+`>
|
|
112
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
113
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
114
|
+
`}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 c=0;c<s.length;c++)r+=this.tablecell(s[c]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
115
|
+
<thead>
|
|
116
|
+
`+t+`</thead>
|
|
117
|
+
`+n+`</table>
|
|
118
|
+
`}tablerow({text:e}){return`<tr>
|
|
119
|
+
${e}</tr>
|
|
120
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
121
|
+
`}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>${On(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=gh(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+On(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=gh(e);if(i===null)return On(r);e=i;let s=`<img src="${e}" alt="${On(r)}"`;return t&&(s+=` title="${On(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:On(e.text)}},E0=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}},Gn=class B${options;renderer;textRenderer;constructor(t){this.options=t||zs,this.options.renderer=this.options.renderer||new Oo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new E0}static parse(t,r){return new B$(r).parse(t)}static parseInline(t,r){return new B$(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 c=i,d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){r+=d||"";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 c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}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 d=this.options.extensions.renderers[s.type].call({parser:this},s);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=d||"";continue}}let c=s;switch(c.type){case"escape":{n+=r.text(c);break}case"html":{n+=r.html(c);break}case"link":{n+=r.link(c);break}case"image":{n+=r.image(c);break}case"checkbox":{n+=r.checkbox(c);break}case"strong":{n+=r.strong(c);break}case"em":{n+=r.em(c);break}case"codespan":{n+=r.codespan(c);break}case"br":{n+=r.br(c);break}case"del":{n+=r.del(c);break}case"text":{n+=r.text(c);break}default:{let d='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}},Va=class{options;block;constructor(e){this.options=e||zs}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?Yn.lex:Yn.lexInline}provideParser(e=this.block){return e?Gn.parse:Gn.parseInline}},M4=class{defaults=v0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Gn;Renderer=Oo;TextRenderer=E0;Lexer=Yn;Tokenizer=Jo;Hooks=Va;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 c of s)r=r.concat(this.walkTokens(c.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 c=i[s].flat(1/0);r=r.concat(this.walkTokens(c,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(...c){let d=i.renderer.apply(this,c);return d===!1&&(d=s.apply(this,c)),d}: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 Oo(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 c=s,d=r.renderer[c],p=i[c];i[c]=(...h)=>{let q=d.apply(i,h);return q===!1&&(q=p.apply(i,h)),q||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Jo(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 c=s,d=r.tokenizer[c],p=i[c];i[c]=(...h)=>{let q=d.apply(i,h);return q===!1&&(q=p.apply(i,h)),q}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new Va;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 c=s,d=r.hooks[c],p=i[c];Va.passThroughHooks.has(s)?i[c]=h=>{if(this.defaults.async&&Va.passThroughHooksRespectAsync.has(s))return(async()=>{let j=await d.call(i,h);return p.call(i,j)})();let q=d.call(i,h);return p.call(i,q)}:i[c]=(...h)=>{if(this.defaults.async)return(async()=>{let j=await d.apply(i,h);return j===!1&&(j=await p.apply(i,h)),j})();let q=d.apply(i,h);return q===!1&&(q=p.apply(i,h)),q}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(c){let d=[];return d.push(s.call(this,c)),i&&(d=d.concat(i.call(this,c))),d}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Yn.lex(e,t??this.defaults)}parser(e,t){return Gn.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 c=i.hooks?await i.hooks.preprocess(t):t,d=await(i.hooks?await i.hooks.provideLexer(e):e?Yn.lex:Yn.lexInline)(c,i),p=i.hooks?await i.hooks.processAllTokens(d):d;i.walkTokens&&await Promise.all(this.walkTokens(p,i.walkTokens));let h=await(i.hooks?await i.hooks.provideParser(e):e?Gn.parse:Gn.parseInline)(p,i);return i.hooks?await i.hooks.postprocess(h):h})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let c=(i.hooks?i.hooks.provideLexer(e):e?Yn.lex:Yn.lexInline)(t,i);i.hooks&&(c=i.hooks.processAllTokens(c)),i.walkTokens&&this.walkTokens(c,i.walkTokens);let d=(i.hooks?i.hooks.provideParser(e):e?Gn.parse:Gn.parseInline)(c,i);return i.hooks&&(d=i.hooks.postprocess(d)),d}catch(c){return s(c)}}}onError(e,t){return r=>{if(r.message+=`
|
|
122
|
+
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+On(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Es=new M4;function ar(e,t){return Es.parse(e,t)}ar.options=ar.setOptions=function(e){return Es.setOptions(e),ar.defaults=Es.defaults,Ym(ar.defaults),ar};ar.getDefaults=v0;ar.defaults=zs;ar.use=function(...e){return Es.use(...e),ar.defaults=Es.defaults,Ym(ar.defaults),ar};ar.walkTokens=function(e,t){return Es.walkTokens(e,t)};ar.parseInline=Es.parseInline;ar.Parser=Gn;ar.parser=Gn.parse;ar.Renderer=Oo;ar.TextRenderer=E0;ar.Lexer=Yn;ar.lexer=Yn.lex;ar.Tokenizer=Jo;ar.Hooks=Va;ar.parse=ar;ar.options;ar.setOptions;ar.use;ar.walkTokens;ar.parseInline;Gn.parse;Yn.lex;const r1=72,P$=20,j$=400,n1=()=>new URLSearchParams(window.location.search);function i1(){const e=Number(n1().get("width"));return Number.isFinite(e)&&e>=P$&&e<=j$?e:r1}function D4(e){const t=n1();e===r1?t.delete("width"):t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function s1({html:e}){return Oe.jsx("div",{className:"markup",style:{maxWidth:`${i1()}ch`},dangerouslySetInnerHTML:{__html:e}})}function wh({rerender:e}){const t=i1(),[r,n]=yt.useState(String(t));yt.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=P$&&i<=j$;return Oe.jsx("input",{className:"markup-width"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"width, ch",value:r,onChange:c=>{const d=c.target.value;n(d);const p=Number(d);d.trim()!==""&&Number.isInteger(p)&&p>=P$&&p<=j$&&(D4(p),e())}})}function a1(e){return Wm(ar.parse(String(e??""),{async:!1}))}function L4({node:e}){return g0(e),Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx(s1,{html:a1(ya(e.value))})]})}function F4({chunk:e}){return Oe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:a1(e.value)}})}class Tt extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,c=r&&r.loc;if(c&&c.start<=c.end){var d=c.lexer.input;i=c.start,s=c.end,i===d.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var p=d.slice(i,s).replace(/[^]/g,"$&̲"),h;i>15?h="…"+d.slice(i-15,i):h=d.slice(0,i);var q;s+15<d.length?q=d.slice(s,s+15)+"…":q=d.slice(s),n+=h+p+q}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Tt.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var B4=/([A-Z])/g,P4=e=>e.replace(B4,"-$1").toLowerCase(),j4={"&":"&",">":">","<":"<",'"':""","'":"'"},U4=/[&><"']/g,Qr=e=>String(e).replace(U4,t=>j4[t]),wo=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?wo(e.body[0]):e:e.type==="font"?wo(e.body):e,H4=new Set(["mathord","textord","atom"]),Ei=e=>H4.has(wo(e).type),V4=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},U$={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 W4(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 Y4(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return W4(t)}function G4(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:Y4(n)}class C0{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(U$)){var n=U$[r];n&&G4(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 Tt("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=V4(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Ni{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 ti[K4[this.id]]}sub(){return ti[X4[this.id]]}fracNum(){return ti[Q4[this.id]]}fracDen(){return ti[Z4[this.id]]}cramp(){return ti[J4[this.id]]}text(){return ti[O4[this.id]]}isTight(){return this.size>=2}}var T0=0,eu=1,sa=2,yi=3,bl=4,Mn=5,da=6,nn=7,ti=[new Ni(T0,0,!1),new Ni(eu,0,!0),new Ni(sa,1,!1),new Ni(yi,1,!0),new Ni(bl,2,!1),new Ni(Mn,2,!0),new Ni(da,3,!1),new Ni(nn,3,!0)],K4=[bl,Mn,bl,Mn,da,nn,da,nn],X4=[Mn,Mn,Mn,Mn,nn,nn,nn,nn],Q4=[sa,yi,bl,Mn,da,nn,da,nn],Z4=[yi,yi,Mn,Mn,nn,nn,nn,nn],J4=[eu,eu,yi,yi,Mn,Mn,nn,nn],O4=[T0,eu,sa,yi,sa,yi,sa,yi],Gt={DISPLAY:ti[T0],TEXT:ti[sa],SCRIPT:ti[bl],SCRIPTSCRIPT:ti[da]},H$=[{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 eb(e){for(var t=0;t<H$.length;t++)for(var r=H$[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 xo=[];H$.forEach(e=>e.blocks.forEach(t=>xo.push(...t)));function l1(e){for(var t=0;t<xo.length;t+=2)if(e>=xo[t]&&e<=xo[t+1])return!0;return!1}var Ir=e=>e+" "+e,Ls=80,tb=function(t,r){return"M95,"+(622+t+r)+`
|
|
123
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
124
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
125
|
+
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
|
|
126
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
127
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
128
|
+
l`+t/2.075+" -"+t+`
|
|
129
|
+
c5.3,-9.3,12,-14,20,-14
|
|
130
|
+
H400000v`+(40+t)+`H845.2724
|
|
131
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
132
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
133
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},rb=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
134
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
135
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
136
|
+
l`+t/2.084+" -"+t+`
|
|
137
|
+
c4.7,-7.3,11,-11,19,-11
|
|
138
|
+
H40000v`+(40+t)+`H1012.3
|
|
139
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
140
|
+
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
|
|
141
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
142
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
143
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},nb=function(t,r){return"M983 "+(10+t+r)+`
|
|
144
|
+
l`+t/3.13+" -"+t+`
|
|
145
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
146
|
+
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
|
|
147
|
+
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
|
|
148
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
149
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
150
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
151
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
152
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},ib=function(t,r){return"M424,"+(2398+t+r)+`
|
|
153
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
154
|
+
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
|
|
155
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
156
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
157
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
158
|
+
v`+(40+t)+`H1014.6
|
|
159
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
160
|
+
c-2,6,-10,9,-24,9
|
|
161
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
162
|
+
h400000v`+(40+t)+"h-400000z"},sb=function(t,r){return"M473,"+(2713+t+r)+`
|
|
163
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
164
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
165
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
166
|
+
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
|
|
167
|
+
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
|
|
168
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
169
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},ab=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},lb=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
170
|
+
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
|
|
171
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
172
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
173
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},ob=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=tb(r,Ls);break;case"sqrtSize1":i=rb(r,Ls);break;case"sqrtSize2":i=nb(r,Ls);break;case"sqrtSize3":i=ib(r,Ls);break;case"sqrtSize4":i=sb(r,Ls);break;case"sqrtTall":i=lb(r,Ls,n)}return i},ub=function(t,r){switch(t){case"⎜":return Ir("M291 0 H417 V"+r+" H291z");case"∣":return Ir("M145 0 H188 V"+r+" H145z");case"∥":return Ir("M145 0 H188 V"+r+" H145z")+Ir("M367 0 H410 V"+r+" H367z");case"⎟":return Ir("M457 0 H583 V"+r+" H457z");case"⎢":return Ir("M319 0 H403 V"+r+" H319z");case"⎥":return Ir("M263 0 H347 V"+r+" H263z");case"⎪":return Ir("M384 0 H504 V"+r+" H384z");case"⏐":return Ir("M312 0 H355 V"+r+" H312z");case"‖":return Ir("M257 0 H300 V"+r+" H257z")+Ir("M478 0 H521 V"+r+" H478z");default:return""}},xh={doubleleftarrow:`M262 157
|
|
174
|
+
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
|
|
175
|
+
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
|
|
176
|
+
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
|
|
177
|
+
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
|
|
178
|
+
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
|
|
179
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
180
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
181
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
182
|
+
-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
|
|
183
|
+
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
|
|
184
|
+
-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
|
|
185
|
+
-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
|
|
186
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
187
|
+
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
|
|
188
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
189
|
+
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
|
|
190
|
+
-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
|
|
191
|
+
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
|
|
192
|
+
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
|
|
193
|
+
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
|
|
194
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
195
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
196
|
+
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
|
|
197
|
+
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
|
|
198
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
199
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
200
|
+
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
|
|
201
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
202
|
+
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
|
|
203
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
204
|
+
-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
|
|
205
|
+
-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
|
|
206
|
+
-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
|
|
207
|
+
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
|
|
208
|
+
-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
|
|
209
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
210
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
211
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
212
|
+
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
|
|
213
|
+
-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
|
|
214
|
+
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
|
|
215
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
216
|
+
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
|
|
217
|
+
-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
|
|
218
|
+
-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
|
|
219
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Ir("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Ir("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Ir("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Ir("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
220
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
221
|
+
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
|
|
222
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Ir("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
223
|
+
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
|
|
224
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
225
|
+
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
|
|
226
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
227
|
+
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
|
|
228
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
229
|
+
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
|
|
230
|
+
-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
|
|
231
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
232
|
+
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
|
|
233
|
+
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
|
|
234
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
235
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
236
|
+
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
|
|
237
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
238
|
+
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
|
|
239
|
+
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
|
|
240
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
241
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
242
|
+
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
|
|
243
|
+
-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
|
|
244
|
+
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
|
|
245
|
+
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
|
|
246
|
+
-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
|
|
247
|
+
-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
|
|
248
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
249
|
+
-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
|
|
250
|
+
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
|
|
251
|
+
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
|
|
252
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
253
|
+
-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
|
|
254
|
+
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
|
|
255
|
+
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
|
|
256
|
+
-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
|
|
257
|
+
-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
|
|
258
|
+
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
|
|
259
|
+
-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
|
|
260
|
+
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
|
|
261
|
+
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
|
|
262
|
+
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
|
|
263
|
+
-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
|
|
264
|
+
-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
|
|
265
|
+
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
|
|
266
|
+
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
|
|
267
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
268
|
+
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
|
|
269
|
+
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
|
|
270
|
+
-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
|
|
271
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Ir("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Ir("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Ir("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
|
|
272
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
273
|
+
-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
|
|
274
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
275
|
+
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
|
|
276
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
277
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
278
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
279
|
+
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
|
|
280
|
+
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
|
|
281
|
+
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
|
|
282
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
283
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
284
|
+
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
|
|
285
|
+
-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
|
|
286
|
+
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
|
|
287
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
288
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
289
|
+
-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
|
|
290
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
291
|
+
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
|
|
292
|
+
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
|
|
293
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
294
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
295
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
296
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
297
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
298
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
299
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
300
|
+
-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
|
|
301
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
302
|
+
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
|
|
303
|
+
-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
|
|
304
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
305
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
306
|
+
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
|
|
307
|
+
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
|
|
308
|
+
-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
|
|
309
|
+
-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
|
|
310
|
+
-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,
|
|
311
|
+
-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,
|
|
312
|
+
-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,
|
|
313
|
+
-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,
|
|
314
|
+
-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
|
|
315
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
316
|
+
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
|
|
317
|
+
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
|
|
318
|
+
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
|
|
319
|
+
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
|
|
320
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
321
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
322
|
+
-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
|
|
323
|
+
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
|
|
324
|
+
-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
|
|
325
|
+
-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
|
|
326
|
+
-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
|
|
327
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
328
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
329
|
+
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
|
|
330
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
331
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
332
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
333
|
+
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,
|
|
334
|
+
-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
|
|
335
|
+
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
|
|
336
|
+
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
|
|
337
|
+
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,
|
|
338
|
+
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,
|
|
339
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
340
|
+
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
|
|
341
|
+
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,
|
|
342
|
+
-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
|
|
343
|
+
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
|
|
344
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},cb=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
345
|
+
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
|
|
346
|
+
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
|
|
347
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
348
|
+
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
|
|
349
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
350
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
351
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
352
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
353
|
+
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
|
|
354
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
355
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
356
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
357
|
+
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
|
|
358
|
+
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,
|
|
359
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
360
|
+
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
|
|
361
|
+
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,
|
|
362
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
363
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
364
|
+
-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,
|
|
365
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
366
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
367
|
+
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
|
|
368
|
+
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
|
|
369
|
+
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
|
|
370
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
371
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
372
|
+
-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 $b(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($b(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var V$={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},fb={ex:!0,em:!0,mu:!0},o1=function(t){return typeof t!="string"&&(t=t.unit),t in V$||t in fb||t==="ex"},gr=function(t,r){var n;if(t.unit in V$)n=V$[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 Tt("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Nt=function(t){return+t.toFixed(4)+"em"},es=function(t){return t.filter(r=>r).join(" ")},z0=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=P4(n)+":"+i+";")}return r},u1=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)}},c1=function(t){var r=document.createElement(t);r.className=es(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},db=/[\s"'>/=\x00-\x1f]/,$1=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Qr(es(this.classes))+'"');var n=z0(this.style);n&&(r+=' style="'+Qr(n)+'"');for(var i of Object.keys(this.attributes)){if(db.test(i))throw new Tt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Qr(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class xa{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,u1.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return c1.call(this,"span")}toMarkup(){return $1.call(this,"span")}}class Au{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,u1.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 c1.call(this,"a")}toMarkup(){return $1.call(this,"a")}}class hb{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="'+Qr(this.src)+'"'+(' alt="'+Qr(this.alt)+'"'),r=z0(this.style);return r&&(t+=' style="'+Qr(r)+'"'),t+="'/>",t}}var _b={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Sn{constructor(t,r,n,i,s,c,d,p){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=c||0,this.classes=d||[],this.style=p||{},this.maxFontSize=0;var h=eb(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=_b[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=Nt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=es(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+=Qr(es(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Nt(this.italic)+";"),n+=z0(this.style),n&&(t=!0,r+=' style="'+Qr(n)+'"');var i=Qr(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Si{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+'="'+Qr(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class ts{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",xh[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Qr(this.alternate)+'"/>':'<path d="'+Qr(xh[this.pathName])+'"/>'}}class W${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+'="'+Qr(this.attributes[r])+'"';return t+="/>",t}}function pb(e){if(e instanceof Sn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function mb(e){if(e instanceof xa)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var gb=e=>e instanceof xa||e instanceof Au||e instanceof wa,ii={"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]}},Ol={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]},kh={Å:"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 vb(e,t){ii[e]=t}function R0(e,t,r){if(!ii[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ii[t][n];if(!i&&e[0]in kh&&(n=kh[e[0]].charCodeAt(0),i=ii[t][n]),!i&&r==="text"&&l1(n)&&(i=ii[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var mc={};function yb(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!mc[t]){var r=mc[t]={cssEmPerMu:Ol.quad[t]/18};for(var n in Ol)Ol.hasOwnProperty(n)&&(r[n]=Ol[n][t])}return mc[t]}var hr={math:{},text:{}};function he(e,t,r,n,i,s){hr[e][i]={font:t,group:r,replace:n},s&&n&&(hr[e][n]=hr[e][i])}var Ee="math",xt="text",He="main",ot="ams",_r="accent-token",Lt="bin",un="close",ka="inner",Pt="mathord",Nr="op-token",Tn="open",zl="punct",ut="rel",Ci="spacing",_t="textord";he(Ee,He,ut,"≡","\\equiv",!0);he(Ee,He,ut,"≺","\\prec",!0);he(Ee,He,ut,"≻","\\succ",!0);he(Ee,He,ut,"∼","\\sim",!0);he(Ee,He,ut,"⊥","\\perp");he(Ee,He,ut,"⪯","\\preceq",!0);he(Ee,He,ut,"⪰","\\succeq",!0);he(Ee,He,ut,"≃","\\simeq",!0);he(Ee,He,ut,"∣","\\mid",!0);he(Ee,He,ut,"≪","\\ll",!0);he(Ee,He,ut,"≫","\\gg",!0);he(Ee,He,ut,"≍","\\asymp",!0);he(Ee,He,ut,"∥","\\parallel");he(Ee,He,ut,"⋈","\\bowtie",!0);he(Ee,He,ut,"⌣","\\smile",!0);he(Ee,He,ut,"⊑","\\sqsubseteq",!0);he(Ee,He,ut,"⊒","\\sqsupseteq",!0);he(Ee,He,ut,"≐","\\doteq",!0);he(Ee,He,ut,"⌢","\\frown",!0);he(Ee,He,ut,"∋","\\ni",!0);he(Ee,He,ut,"∝","\\propto",!0);he(Ee,He,ut,"⊢","\\vdash",!0);he(Ee,He,ut,"⊣","\\dashv",!0);he(Ee,He,ut,"∋","\\owns");he(Ee,He,zl,".","\\ldotp");he(Ee,He,zl,"⋅","\\cdotp");he(Ee,He,zl,"⋅","·");he(xt,He,_t,"⋅","·");he(Ee,He,_t,"#","\\#");he(xt,He,_t,"#","\\#");he(Ee,He,_t,"&","\\&");he(xt,He,_t,"&","\\&");he(Ee,He,_t,"ℵ","\\aleph",!0);he(Ee,He,_t,"∀","\\forall",!0);he(Ee,He,_t,"ℏ","\\hbar",!0);he(Ee,He,_t,"∃","\\exists",!0);he(Ee,He,_t,"∇","\\nabla",!0);he(Ee,He,_t,"♭","\\flat",!0);he(Ee,He,_t,"ℓ","\\ell",!0);he(Ee,He,_t,"♮","\\natural",!0);he(Ee,He,_t,"♣","\\clubsuit",!0);he(Ee,He,_t,"℘","\\wp",!0);he(Ee,He,_t,"♯","\\sharp",!0);he(Ee,He,_t,"♢","\\diamondsuit",!0);he(Ee,He,_t,"ℜ","\\Re",!0);he(Ee,He,_t,"♡","\\heartsuit",!0);he(Ee,He,_t,"ℑ","\\Im",!0);he(Ee,He,_t,"♠","\\spadesuit",!0);he(Ee,He,_t,"§","\\S",!0);he(xt,He,_t,"§","\\S");he(Ee,He,_t,"¶","\\P",!0);he(xt,He,_t,"¶","\\P");he(Ee,He,_t,"†","\\dag");he(xt,He,_t,"†","\\dag");he(xt,He,_t,"†","\\textdagger");he(Ee,He,_t,"‡","\\ddag");he(xt,He,_t,"‡","\\ddag");he(xt,He,_t,"‡","\\textdaggerdbl");he(Ee,He,un,"⎱","\\rmoustache",!0);he(Ee,He,Tn,"⎰","\\lmoustache",!0);he(Ee,He,un,"⟯","\\rgroup",!0);he(Ee,He,Tn,"⟮","\\lgroup",!0);he(Ee,He,Lt,"∓","\\mp",!0);he(Ee,He,Lt,"⊖","\\ominus",!0);he(Ee,He,Lt,"⊎","\\uplus",!0);he(Ee,He,Lt,"⊓","\\sqcap",!0);he(Ee,He,Lt,"∗","\\ast");he(Ee,He,Lt,"⊔","\\sqcup",!0);he(Ee,He,Lt,"◯","\\bigcirc",!0);he(Ee,He,Lt,"∙","\\bullet",!0);he(Ee,He,Lt,"‡","\\ddagger");he(Ee,He,Lt,"≀","\\wr",!0);he(Ee,He,Lt,"⨿","\\amalg");he(Ee,He,Lt,"&","\\And");he(Ee,He,ut,"⟵","\\longleftarrow",!0);he(Ee,He,ut,"⇐","\\Leftarrow",!0);he(Ee,He,ut,"⟸","\\Longleftarrow",!0);he(Ee,He,ut,"⟶","\\longrightarrow",!0);he(Ee,He,ut,"⇒","\\Rightarrow",!0);he(Ee,He,ut,"⟹","\\Longrightarrow",!0);he(Ee,He,ut,"↔","\\leftrightarrow",!0);he(Ee,He,ut,"⟷","\\longleftrightarrow",!0);he(Ee,He,ut,"⇔","\\Leftrightarrow",!0);he(Ee,He,ut,"⟺","\\Longleftrightarrow",!0);he(Ee,He,ut,"↦","\\mapsto",!0);he(Ee,He,ut,"⟼","\\longmapsto",!0);he(Ee,He,ut,"↗","\\nearrow",!0);he(Ee,He,ut,"↩","\\hookleftarrow",!0);he(Ee,He,ut,"↪","\\hookrightarrow",!0);he(Ee,He,ut,"↘","\\searrow",!0);he(Ee,He,ut,"↼","\\leftharpoonup",!0);he(Ee,He,ut,"⇀","\\rightharpoonup",!0);he(Ee,He,ut,"↙","\\swarrow",!0);he(Ee,He,ut,"↽","\\leftharpoondown",!0);he(Ee,He,ut,"⇁","\\rightharpoondown",!0);he(Ee,He,ut,"↖","\\nwarrow",!0);he(Ee,He,ut,"⇌","\\rightleftharpoons",!0);he(Ee,ot,ut,"≮","\\nless",!0);he(Ee,ot,ut,"","\\@nleqslant");he(Ee,ot,ut,"","\\@nleqq");he(Ee,ot,ut,"⪇","\\lneq",!0);he(Ee,ot,ut,"≨","\\lneqq",!0);he(Ee,ot,ut,"","\\@lvertneqq");he(Ee,ot,ut,"⋦","\\lnsim",!0);he(Ee,ot,ut,"⪉","\\lnapprox",!0);he(Ee,ot,ut,"⊀","\\nprec",!0);he(Ee,ot,ut,"⋠","\\npreceq",!0);he(Ee,ot,ut,"⋨","\\precnsim",!0);he(Ee,ot,ut,"⪹","\\precnapprox",!0);he(Ee,ot,ut,"≁","\\nsim",!0);he(Ee,ot,ut,"","\\@nshortmid");he(Ee,ot,ut,"∤","\\nmid",!0);he(Ee,ot,ut,"⊬","\\nvdash",!0);he(Ee,ot,ut,"⊭","\\nvDash",!0);he(Ee,ot,ut,"⋪","\\ntriangleleft");he(Ee,ot,ut,"⋬","\\ntrianglelefteq",!0);he(Ee,ot,ut,"⊊","\\subsetneq",!0);he(Ee,ot,ut,"","\\@varsubsetneq");he(Ee,ot,ut,"⫋","\\subsetneqq",!0);he(Ee,ot,ut,"","\\@varsubsetneqq");he(Ee,ot,ut,"≯","\\ngtr",!0);he(Ee,ot,ut,"","\\@ngeqslant");he(Ee,ot,ut,"","\\@ngeqq");he(Ee,ot,ut,"⪈","\\gneq",!0);he(Ee,ot,ut,"≩","\\gneqq",!0);he(Ee,ot,ut,"","\\@gvertneqq");he(Ee,ot,ut,"⋧","\\gnsim",!0);he(Ee,ot,ut,"⪊","\\gnapprox",!0);he(Ee,ot,ut,"⊁","\\nsucc",!0);he(Ee,ot,ut,"⋡","\\nsucceq",!0);he(Ee,ot,ut,"⋩","\\succnsim",!0);he(Ee,ot,ut,"⪺","\\succnapprox",!0);he(Ee,ot,ut,"≆","\\ncong",!0);he(Ee,ot,ut,"","\\@nshortparallel");he(Ee,ot,ut,"∦","\\nparallel",!0);he(Ee,ot,ut,"⊯","\\nVDash",!0);he(Ee,ot,ut,"⋫","\\ntriangleright");he(Ee,ot,ut,"⋭","\\ntrianglerighteq",!0);he(Ee,ot,ut,"","\\@nsupseteqq");he(Ee,ot,ut,"⊋","\\supsetneq",!0);he(Ee,ot,ut,"","\\@varsupsetneq");he(Ee,ot,ut,"⫌","\\supsetneqq",!0);he(Ee,ot,ut,"","\\@varsupsetneqq");he(Ee,ot,ut,"⊮","\\nVdash",!0);he(Ee,ot,ut,"⪵","\\precneqq",!0);he(Ee,ot,ut,"⪶","\\succneqq",!0);he(Ee,ot,ut,"","\\@nsubseteqq");he(Ee,ot,Lt,"⊴","\\unlhd");he(Ee,ot,Lt,"⊵","\\unrhd");he(Ee,ot,ut,"↚","\\nleftarrow",!0);he(Ee,ot,ut,"↛","\\nrightarrow",!0);he(Ee,ot,ut,"⇍","\\nLeftarrow",!0);he(Ee,ot,ut,"⇏","\\nRightarrow",!0);he(Ee,ot,ut,"↮","\\nleftrightarrow",!0);he(Ee,ot,ut,"⇎","\\nLeftrightarrow",!0);he(Ee,ot,ut,"△","\\vartriangle");he(Ee,ot,_t,"ℏ","\\hslash");he(Ee,ot,_t,"▽","\\triangledown");he(Ee,ot,_t,"◊","\\lozenge");he(Ee,ot,_t,"Ⓢ","\\circledS");he(Ee,ot,_t,"®","\\circledR");he(xt,ot,_t,"®","\\circledR");he(Ee,ot,_t,"∡","\\measuredangle",!0);he(Ee,ot,_t,"∄","\\nexists");he(Ee,ot,_t,"℧","\\mho");he(Ee,ot,_t,"Ⅎ","\\Finv",!0);he(Ee,ot,_t,"⅁","\\Game",!0);he(Ee,ot,_t,"‵","\\backprime");he(Ee,ot,_t,"▲","\\blacktriangle");he(Ee,ot,_t,"▼","\\blacktriangledown");he(Ee,ot,_t,"■","\\blacksquare");he(Ee,ot,_t,"⧫","\\blacklozenge");he(Ee,ot,_t,"★","\\bigstar");he(Ee,ot,_t,"∢","\\sphericalangle",!0);he(Ee,ot,_t,"∁","\\complement",!0);he(Ee,ot,_t,"ð","\\eth",!0);he(xt,He,_t,"ð","ð");he(Ee,ot,_t,"╱","\\diagup");he(Ee,ot,_t,"╲","\\diagdown");he(Ee,ot,_t,"□","\\square");he(Ee,ot,_t,"□","\\Box");he(Ee,ot,_t,"◊","\\Diamond");he(Ee,ot,_t,"¥","\\yen",!0);he(xt,ot,_t,"¥","\\yen",!0);he(Ee,ot,_t,"✓","\\checkmark",!0);he(xt,ot,_t,"✓","\\checkmark");he(Ee,ot,_t,"ℶ","\\beth",!0);he(Ee,ot,_t,"ℸ","\\daleth",!0);he(Ee,ot,_t,"ℷ","\\gimel",!0);he(Ee,ot,_t,"ϝ","\\digamma",!0);he(Ee,ot,_t,"ϰ","\\varkappa");he(Ee,ot,Tn,"┌","\\@ulcorner",!0);he(Ee,ot,un,"┐","\\@urcorner",!0);he(Ee,ot,Tn,"└","\\@llcorner",!0);he(Ee,ot,un,"┘","\\@lrcorner",!0);he(Ee,ot,ut,"≦","\\leqq",!0);he(Ee,ot,ut,"⩽","\\leqslant",!0);he(Ee,ot,ut,"⪕","\\eqslantless",!0);he(Ee,ot,ut,"≲","\\lesssim",!0);he(Ee,ot,ut,"⪅","\\lessapprox",!0);he(Ee,ot,ut,"≊","\\approxeq",!0);he(Ee,ot,Lt,"⋖","\\lessdot");he(Ee,ot,ut,"⋘","\\lll",!0);he(Ee,ot,ut,"≶","\\lessgtr",!0);he(Ee,ot,ut,"⋚","\\lesseqgtr",!0);he(Ee,ot,ut,"⪋","\\lesseqqgtr",!0);he(Ee,ot,ut,"≑","\\doteqdot");he(Ee,ot,ut,"≓","\\risingdotseq",!0);he(Ee,ot,ut,"≒","\\fallingdotseq",!0);he(Ee,ot,ut,"∽","\\backsim",!0);he(Ee,ot,ut,"⋍","\\backsimeq",!0);he(Ee,ot,ut,"⫅","\\subseteqq",!0);he(Ee,ot,ut,"⋐","\\Subset",!0);he(Ee,ot,ut,"⊏","\\sqsubset",!0);he(Ee,ot,ut,"≼","\\preccurlyeq",!0);he(Ee,ot,ut,"⋞","\\curlyeqprec",!0);he(Ee,ot,ut,"≾","\\precsim",!0);he(Ee,ot,ut,"⪷","\\precapprox",!0);he(Ee,ot,ut,"⊲","\\vartriangleleft");he(Ee,ot,ut,"⊴","\\trianglelefteq");he(Ee,ot,ut,"⊨","\\vDash",!0);he(Ee,ot,ut,"⊪","\\Vvdash",!0);he(Ee,ot,ut,"⌣","\\smallsmile");he(Ee,ot,ut,"⌢","\\smallfrown");he(Ee,ot,ut,"≏","\\bumpeq",!0);he(Ee,ot,ut,"≎","\\Bumpeq",!0);he(Ee,ot,ut,"≧","\\geqq",!0);he(Ee,ot,ut,"⩾","\\geqslant",!0);he(Ee,ot,ut,"⪖","\\eqslantgtr",!0);he(Ee,ot,ut,"≳","\\gtrsim",!0);he(Ee,ot,ut,"⪆","\\gtrapprox",!0);he(Ee,ot,Lt,"⋗","\\gtrdot");he(Ee,ot,ut,"⋙","\\ggg",!0);he(Ee,ot,ut,"≷","\\gtrless",!0);he(Ee,ot,ut,"⋛","\\gtreqless",!0);he(Ee,ot,ut,"⪌","\\gtreqqless",!0);he(Ee,ot,ut,"≖","\\eqcirc",!0);he(Ee,ot,ut,"≗","\\circeq",!0);he(Ee,ot,ut,"≜","\\triangleq",!0);he(Ee,ot,ut,"∼","\\thicksim");he(Ee,ot,ut,"≈","\\thickapprox");he(Ee,ot,ut,"⫆","\\supseteqq",!0);he(Ee,ot,ut,"⋑","\\Supset",!0);he(Ee,ot,ut,"⊐","\\sqsupset",!0);he(Ee,ot,ut,"≽","\\succcurlyeq",!0);he(Ee,ot,ut,"⋟","\\curlyeqsucc",!0);he(Ee,ot,ut,"≿","\\succsim",!0);he(Ee,ot,ut,"⪸","\\succapprox",!0);he(Ee,ot,ut,"⊳","\\vartriangleright");he(Ee,ot,ut,"⊵","\\trianglerighteq");he(Ee,ot,ut,"⊩","\\Vdash",!0);he(Ee,ot,ut,"∣","\\shortmid");he(Ee,ot,ut,"∥","\\shortparallel");he(Ee,ot,ut,"≬","\\between",!0);he(Ee,ot,ut,"⋔","\\pitchfork",!0);he(Ee,ot,ut,"∝","\\varpropto");he(Ee,ot,ut,"◀","\\blacktriangleleft");he(Ee,ot,ut,"∴","\\therefore",!0);he(Ee,ot,ut,"∍","\\backepsilon");he(Ee,ot,ut,"▶","\\blacktriangleright");he(Ee,ot,ut,"∵","\\because",!0);he(Ee,ot,ut,"⋘","\\llless");he(Ee,ot,ut,"⋙","\\gggtr");he(Ee,ot,Lt,"⊲","\\lhd");he(Ee,ot,Lt,"⊳","\\rhd");he(Ee,ot,ut,"≂","\\eqsim",!0);he(Ee,He,ut,"⋈","\\Join");he(Ee,ot,ut,"≑","\\Doteq",!0);he(Ee,ot,Lt,"∔","\\dotplus",!0);he(Ee,ot,Lt,"∖","\\smallsetminus");he(Ee,ot,Lt,"⋒","\\Cap",!0);he(Ee,ot,Lt,"⋓","\\Cup",!0);he(Ee,ot,Lt,"⩞","\\doublebarwedge",!0);he(Ee,ot,Lt,"⊟","\\boxminus",!0);he(Ee,ot,Lt,"⊞","\\boxplus",!0);he(Ee,ot,Lt,"⋇","\\divideontimes",!0);he(Ee,ot,Lt,"⋉","\\ltimes",!0);he(Ee,ot,Lt,"⋊","\\rtimes",!0);he(Ee,ot,Lt,"⋋","\\leftthreetimes",!0);he(Ee,ot,Lt,"⋌","\\rightthreetimes",!0);he(Ee,ot,Lt,"⋏","\\curlywedge",!0);he(Ee,ot,Lt,"⋎","\\curlyvee",!0);he(Ee,ot,Lt,"⊝","\\circleddash",!0);he(Ee,ot,Lt,"⊛","\\circledast",!0);he(Ee,ot,Lt,"⋅","\\centerdot");he(Ee,ot,Lt,"⊺","\\intercal",!0);he(Ee,ot,Lt,"⋒","\\doublecap");he(Ee,ot,Lt,"⋓","\\doublecup");he(Ee,ot,Lt,"⊠","\\boxtimes",!0);he(Ee,ot,ut,"⇢","\\dashrightarrow",!0);he(Ee,ot,ut,"⇠","\\dashleftarrow",!0);he(Ee,ot,ut,"⇇","\\leftleftarrows",!0);he(Ee,ot,ut,"⇆","\\leftrightarrows",!0);he(Ee,ot,ut,"⇚","\\Lleftarrow",!0);he(Ee,ot,ut,"↞","\\twoheadleftarrow",!0);he(Ee,ot,ut,"↢","\\leftarrowtail",!0);he(Ee,ot,ut,"↫","\\looparrowleft",!0);he(Ee,ot,ut,"⇋","\\leftrightharpoons",!0);he(Ee,ot,ut,"↶","\\curvearrowleft",!0);he(Ee,ot,ut,"↺","\\circlearrowleft",!0);he(Ee,ot,ut,"↰","\\Lsh",!0);he(Ee,ot,ut,"⇈","\\upuparrows",!0);he(Ee,ot,ut,"↿","\\upharpoonleft",!0);he(Ee,ot,ut,"⇃","\\downharpoonleft",!0);he(Ee,He,ut,"⊶","\\origof",!0);he(Ee,He,ut,"⊷","\\imageof",!0);he(Ee,ot,ut,"⊸","\\multimap",!0);he(Ee,ot,ut,"↭","\\leftrightsquigarrow",!0);he(Ee,ot,ut,"⇉","\\rightrightarrows",!0);he(Ee,ot,ut,"⇄","\\rightleftarrows",!0);he(Ee,ot,ut,"↠","\\twoheadrightarrow",!0);he(Ee,ot,ut,"↣","\\rightarrowtail",!0);he(Ee,ot,ut,"↬","\\looparrowright",!0);he(Ee,ot,ut,"↷","\\curvearrowright",!0);he(Ee,ot,ut,"↻","\\circlearrowright",!0);he(Ee,ot,ut,"↱","\\Rsh",!0);he(Ee,ot,ut,"⇊","\\downdownarrows",!0);he(Ee,ot,ut,"↾","\\upharpoonright",!0);he(Ee,ot,ut,"⇂","\\downharpoonright",!0);he(Ee,ot,ut,"⇝","\\rightsquigarrow",!0);he(Ee,ot,ut,"⇝","\\leadsto");he(Ee,ot,ut,"⇛","\\Rrightarrow",!0);he(Ee,ot,ut,"↾","\\restriction");he(Ee,He,_t,"‘","`");he(Ee,He,_t,"$","\\$");he(xt,He,_t,"$","\\$");he(xt,He,_t,"$","\\textdollar");he(Ee,He,_t,"%","\\%");he(xt,He,_t,"%","\\%");he(Ee,He,_t,"_","\\_");he(xt,He,_t,"_","\\_");he(xt,He,_t,"_","\\textunderscore");he(Ee,He,_t,"∠","\\angle",!0);he(Ee,He,_t,"∞","\\infty",!0);he(Ee,He,_t,"′","\\prime");he(Ee,He,_t,"△","\\triangle");he(Ee,He,_t,"Γ","\\Gamma",!0);he(Ee,He,_t,"Δ","\\Delta",!0);he(Ee,He,_t,"Θ","\\Theta",!0);he(Ee,He,_t,"Λ","\\Lambda",!0);he(Ee,He,_t,"Ξ","\\Xi",!0);he(Ee,He,_t,"Π","\\Pi",!0);he(Ee,He,_t,"Σ","\\Sigma",!0);he(Ee,He,_t,"Υ","\\Upsilon",!0);he(Ee,He,_t,"Φ","\\Phi",!0);he(Ee,He,_t,"Ψ","\\Psi",!0);he(Ee,He,_t,"Ω","\\Omega",!0);he(Ee,He,_t,"A","Α");he(Ee,He,_t,"B","Β");he(Ee,He,_t,"E","Ε");he(Ee,He,_t,"Z","Ζ");he(Ee,He,_t,"H","Η");he(Ee,He,_t,"I","Ι");he(Ee,He,_t,"K","Κ");he(Ee,He,_t,"M","Μ");he(Ee,He,_t,"N","Ν");he(Ee,He,_t,"O","Ο");he(Ee,He,_t,"P","Ρ");he(Ee,He,_t,"T","Τ");he(Ee,He,_t,"X","Χ");he(Ee,He,_t,"¬","\\neg",!0);he(Ee,He,_t,"¬","\\lnot");he(Ee,He,_t,"⊤","\\top");he(Ee,He,_t,"⊥","\\bot");he(Ee,He,_t,"∅","\\emptyset");he(Ee,ot,_t,"∅","\\varnothing");he(Ee,He,Pt,"α","\\alpha",!0);he(Ee,He,Pt,"β","\\beta",!0);he(Ee,He,Pt,"γ","\\gamma",!0);he(Ee,He,Pt,"δ","\\delta",!0);he(Ee,He,Pt,"ϵ","\\epsilon",!0);he(Ee,He,Pt,"ζ","\\zeta",!0);he(Ee,He,Pt,"η","\\eta",!0);he(Ee,He,Pt,"θ","\\theta",!0);he(Ee,He,Pt,"ι","\\iota",!0);he(Ee,He,Pt,"κ","\\kappa",!0);he(Ee,He,Pt,"λ","\\lambda",!0);he(Ee,He,Pt,"μ","\\mu",!0);he(Ee,He,Pt,"ν","\\nu",!0);he(Ee,He,Pt,"ξ","\\xi",!0);he(Ee,He,Pt,"ο","\\omicron",!0);he(Ee,He,Pt,"π","\\pi",!0);he(Ee,He,Pt,"ρ","\\rho",!0);he(Ee,He,Pt,"σ","\\sigma",!0);he(Ee,He,Pt,"τ","\\tau",!0);he(Ee,He,Pt,"υ","\\upsilon",!0);he(Ee,He,Pt,"ϕ","\\phi",!0);he(Ee,He,Pt,"χ","\\chi",!0);he(Ee,He,Pt,"ψ","\\psi",!0);he(Ee,He,Pt,"ω","\\omega",!0);he(Ee,He,Pt,"ε","\\varepsilon",!0);he(Ee,He,Pt,"ϑ","\\vartheta",!0);he(Ee,He,Pt,"ϖ","\\varpi",!0);he(Ee,He,Pt,"ϱ","\\varrho",!0);he(Ee,He,Pt,"ς","\\varsigma",!0);he(Ee,He,Pt,"φ","\\varphi",!0);he(Ee,He,Lt,"∗","*",!0);he(Ee,He,Lt,"+","+");he(Ee,He,Lt,"−","-",!0);he(Ee,He,Lt,"⋅","\\cdot",!0);he(Ee,He,Lt,"∘","\\circ",!0);he(Ee,He,Lt,"÷","\\div",!0);he(Ee,He,Lt,"±","\\pm",!0);he(Ee,He,Lt,"×","\\times",!0);he(Ee,He,Lt,"∩","\\cap",!0);he(Ee,He,Lt,"∪","\\cup",!0);he(Ee,He,Lt,"∖","\\setminus",!0);he(Ee,He,Lt,"∧","\\land");he(Ee,He,Lt,"∨","\\lor");he(Ee,He,Lt,"∧","\\wedge",!0);he(Ee,He,Lt,"∨","\\vee",!0);he(Ee,He,_t,"√","\\surd");he(Ee,He,Tn,"⟨","\\langle",!0);he(Ee,He,Tn,"∣","\\lvert");he(Ee,He,Tn,"∥","\\lVert");he(Ee,He,un,"?","?");he(Ee,He,un,"!","!");he(Ee,He,un,"⟩","\\rangle",!0);he(Ee,He,un,"∣","\\rvert");he(Ee,He,un,"∥","\\rVert");he(Ee,He,ut,"=","=");he(Ee,He,ut,":",":");he(Ee,He,ut,"≈","\\approx",!0);he(Ee,He,ut,"≅","\\cong",!0);he(Ee,He,ut,"≥","\\ge");he(Ee,He,ut,"≥","\\geq",!0);he(Ee,He,ut,"←","\\gets");he(Ee,He,ut,">","\\gt",!0);he(Ee,He,ut,"∈","\\in",!0);he(Ee,He,ut,"","\\@not");he(Ee,He,ut,"⊂","\\subset",!0);he(Ee,He,ut,"⊃","\\supset",!0);he(Ee,He,ut,"⊆","\\subseteq",!0);he(Ee,He,ut,"⊇","\\supseteq",!0);he(Ee,ot,ut,"⊈","\\nsubseteq",!0);he(Ee,ot,ut,"⊉","\\nsupseteq",!0);he(Ee,He,ut,"⊨","\\models");he(Ee,He,ut,"←","\\leftarrow",!0);he(Ee,He,ut,"≤","\\le");he(Ee,He,ut,"≤","\\leq",!0);he(Ee,He,ut,"<","\\lt",!0);he(Ee,He,ut,"→","\\rightarrow",!0);he(Ee,He,ut,"→","\\to");he(Ee,ot,ut,"≱","\\ngeq",!0);he(Ee,ot,ut,"≰","\\nleq",!0);he(Ee,He,Ci," ","\\ ");he(Ee,He,Ci," ","\\space");he(Ee,He,Ci," ","\\nobreakspace");he(xt,He,Ci," ","\\ ");he(xt,He,Ci," "," ");he(xt,He,Ci," ","\\space");he(xt,He,Ci," ","\\nobreakspace");he(Ee,He,Ci,"","\\nobreak");he(Ee,He,Ci,"","\\allowbreak");he(Ee,He,zl,",",",");he(Ee,He,zl,";",";");he(Ee,ot,Lt,"⊼","\\barwedge",!0);he(Ee,ot,Lt,"⊻","\\veebar",!0);he(Ee,He,Lt,"⊙","\\odot",!0);he(Ee,He,Lt,"⊕","\\oplus",!0);he(Ee,He,Lt,"⊗","\\otimes",!0);he(Ee,He,_t,"∂","\\partial",!0);he(Ee,He,Lt,"⊘","\\oslash",!0);he(Ee,ot,Lt,"⊚","\\circledcirc",!0);he(Ee,ot,Lt,"⊡","\\boxdot",!0);he(Ee,He,Lt,"△","\\bigtriangleup");he(Ee,He,Lt,"▽","\\bigtriangledown");he(Ee,He,Lt,"†","\\dagger");he(Ee,He,Lt,"⋄","\\diamond");he(Ee,He,Lt,"⋆","\\star");he(Ee,He,Lt,"◃","\\triangleleft");he(Ee,He,Lt,"▹","\\triangleright");he(Ee,He,Tn,"{","\\{");he(xt,He,_t,"{","\\{");he(xt,He,_t,"{","\\textbraceleft");he(Ee,He,un,"}","\\}");he(xt,He,_t,"}","\\}");he(xt,He,_t,"}","\\textbraceright");he(Ee,He,Tn,"{","\\lbrace");he(Ee,He,un,"}","\\rbrace");he(Ee,He,Tn,"[","\\lbrack",!0);he(xt,He,_t,"[","\\lbrack",!0);he(Ee,He,un,"]","\\rbrack",!0);he(xt,He,_t,"]","\\rbrack",!0);he(Ee,He,Tn,"(","\\lparen",!0);he(Ee,He,un,")","\\rparen",!0);he(xt,He,_t,"<","\\textless",!0);he(xt,He,_t,">","\\textgreater",!0);he(Ee,He,Tn,"⌊","\\lfloor",!0);he(Ee,He,un,"⌋","\\rfloor",!0);he(Ee,He,Tn,"⌈","\\lceil",!0);he(Ee,He,un,"⌉","\\rceil",!0);he(Ee,He,_t,"\\","\\backslash");he(Ee,He,_t,"∣","|");he(Ee,He,_t,"∣","\\vert");he(xt,He,_t,"|","\\textbar",!0);he(Ee,He,_t,"∥","\\|");he(Ee,He,_t,"∥","\\Vert");he(xt,He,_t,"∥","\\textbardbl");he(xt,He,_t,"~","\\textasciitilde");he(xt,He,_t,"\\","\\textbackslash");he(xt,He,_t,"^","\\textasciicircum");he(Ee,He,ut,"↑","\\uparrow",!0);he(Ee,He,ut,"⇑","\\Uparrow",!0);he(Ee,He,ut,"↓","\\downarrow",!0);he(Ee,He,ut,"⇓","\\Downarrow",!0);he(Ee,He,ut,"↕","\\updownarrow",!0);he(Ee,He,ut,"⇕","\\Updownarrow",!0);he(Ee,He,Nr,"∐","\\coprod");he(Ee,He,Nr,"⋁","\\bigvee");he(Ee,He,Nr,"⋀","\\bigwedge");he(Ee,He,Nr,"⨄","\\biguplus");he(Ee,He,Nr,"⋂","\\bigcap");he(Ee,He,Nr,"⋃","\\bigcup");he(Ee,He,Nr,"∫","\\int");he(Ee,He,Nr,"∫","\\intop");he(Ee,He,Nr,"∬","\\iint");he(Ee,He,Nr,"∭","\\iiint");he(Ee,He,Nr,"∏","\\prod");he(Ee,He,Nr,"∑","\\sum");he(Ee,He,Nr,"⨂","\\bigotimes");he(Ee,He,Nr,"⨁","\\bigoplus");he(Ee,He,Nr,"⨀","\\bigodot");he(Ee,He,Nr,"∮","\\oint");he(Ee,He,Nr,"∯","\\oiint");he(Ee,He,Nr,"∰","\\oiiint");he(Ee,He,Nr,"⨆","\\bigsqcup");he(Ee,He,Nr,"∫","\\smallint");he(xt,He,ka,"…","\\textellipsis");he(Ee,He,ka,"…","\\mathellipsis");he(xt,He,ka,"…","\\ldots",!0);he(Ee,He,ka,"…","\\ldots",!0);he(Ee,He,ka,"⋯","\\@cdots",!0);he(Ee,He,ka,"⋱","\\ddots",!0);he(Ee,He,_t,"⋮","\\varvdots");he(xt,He,_t,"⋮","\\varvdots");he(Ee,He,_r,"ˊ","\\acute");he(Ee,He,_r,"ˋ","\\grave");he(Ee,He,_r,"¨","\\ddot");he(Ee,He,_r,"~","\\tilde");he(Ee,He,_r,"ˉ","\\bar");he(Ee,He,_r,"˘","\\breve");he(Ee,He,_r,"ˇ","\\check");he(Ee,He,_r,"^","\\hat");he(Ee,He,_r,"⃗","\\vec");he(Ee,He,_r,"˙","\\dot");he(Ee,He,_r,"˚","\\mathring");he(Ee,He,Pt,"","\\@imath");he(Ee,He,Pt,"","\\@jmath");he(Ee,He,_t,"ı","ı");he(Ee,He,_t,"ȷ","ȷ");he(xt,He,_t,"ı","\\i",!0);he(xt,He,_t,"ȷ","\\j",!0);he(xt,He,_t,"ß","\\ss",!0);he(xt,He,_t,"æ","\\ae",!0);he(xt,He,_t,"œ","\\oe",!0);he(xt,He,_t,"ø","\\o",!0);he(xt,He,_t,"Æ","\\AE",!0);he(xt,He,_t,"Œ","\\OE",!0);he(xt,He,_t,"Ø","\\O",!0);he(xt,He,_r,"ˊ","\\'");he(xt,He,_r,"ˋ","\\`");he(xt,He,_r,"ˆ","\\^");he(xt,He,_r,"˜","\\~");he(xt,He,_r,"ˉ","\\=");he(xt,He,_r,"˘","\\u");he(xt,He,_r,"˙","\\.");he(xt,He,_r,"¸","\\c");he(xt,He,_r,"˚","\\r");he(xt,He,_r,"ˇ","\\v");he(xt,He,_r,"¨",'\\"');he(xt,He,_r,"˝","\\H");he(xt,He,_r,"◯","\\textcircled");var f1={"--":!0,"---":!0,"``":!0,"''":!0};he(xt,He,_t,"–","--",!0);he(xt,He,_t,"–","\\textendash");he(xt,He,_t,"—","---",!0);he(xt,He,_t,"—","\\textemdash");he(xt,He,_t,"‘","`",!0);he(xt,He,_t,"‘","\\textquoteleft");he(xt,He,_t,"’","'",!0);he(xt,He,_t,"’","\\textquoteright");he(xt,He,_t,"“","``",!0);he(xt,He,_t,"“","\\textquotedblleft");he(xt,He,_t,"”","''",!0);he(xt,He,_t,"”","\\textquotedblright");he(Ee,He,_t,"°","\\degree",!0);he(xt,He,_t,"°","\\degree");he(xt,He,_t,"°","\\textdegree",!0);he(Ee,He,_t,"£","\\pounds");he(Ee,He,_t,"£","\\mathsterling",!0);he(xt,He,_t,"£","\\pounds");he(xt,He,_t,"£","\\textsterling",!0);he(Ee,ot,_t,"✠","\\maltese");he(xt,ot,_t,"✠","\\maltese");var Sh='0123456789/@."';for(var gc=0;gc<Sh.length;gc++){var Ah=Sh.charAt(gc);he(Ee,He,_t,Ah,Ah)}var Eh='0123456789!@*()-=+";:?/.,';for(var vc=0;vc<Eh.length;vc++){var Ch=Eh.charAt(vc);he(xt,He,_t,Ch,Ch)}var tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var yc=0;yc<tu.length;yc++){var eo=tu.charAt(yc);he(Ee,He,Pt,eo,eo),he(xt,He,_t,eo,eo)}he(Ee,ot,_t,"C","ℂ");he(xt,ot,_t,"C","ℂ");he(Ee,ot,_t,"H","ℍ");he(xt,ot,_t,"H","ℍ");he(Ee,ot,_t,"N","ℕ");he(xt,ot,_t,"N","ℕ");he(Ee,ot,_t,"P","ℙ");he(xt,ot,_t,"P","ℙ");he(Ee,ot,_t,"Q","ℚ");he(xt,ot,_t,"Q","ℚ");he(Ee,ot,_t,"R","ℝ");he(xt,ot,_t,"R","ℝ");he(Ee,ot,_t,"Z","ℤ");he(xt,ot,_t,"Z","ℤ");he(Ee,He,Pt,"h","ℎ");he(xt,He,Pt,"h","ℎ");var Vt;for(var en=0;en<tu.length;en++){var br=tu.charAt(en);Vt=String.fromCharCode(55349,56320+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56372+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56424+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56580+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56684+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56736+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56788+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56840+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56944+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),en<26&&(Vt=String.fromCharCode(55349,56632+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt),Vt=String.fromCharCode(55349,56476+en),he(Ee,He,Pt,br,Vt),he(xt,He,_t,br,Vt))}Vt="𝕜";he(Ee,He,Pt,"k",Vt);he(xt,He,_t,"k",Vt);for(var $s=0;$s<10;$s++){var Ii=$s.toString();Vt=String.fromCharCode(55349,57294+$s),he(Ee,He,Pt,Ii,Vt),he(xt,He,_t,Ii,Vt),Vt=String.fromCharCode(55349,57314+$s),he(Ee,He,Pt,Ii,Vt),he(xt,He,_t,Ii,Vt),Vt=String.fromCharCode(55349,57324+$s),he(Ee,He,Pt,Ii,Vt),he(xt,He,_t,Ii,Vt),Vt=String.fromCharCode(55349,57334+$s),he(Ee,He,Pt,Ii,Vt),he(xt,He,_t,Ii,Vt)}var Y$="ÐÞþ";for(var bc=0;bc<Y$.length;bc++){var to=Y$.charAt(bc);he(Ee,He,Pt,to,to),he(xt,He,_t,to,to)}var G$={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Th={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},zh={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},bb={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},ps={mathClass:"",textClass:"",font:""},Rh={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Nh={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Ih={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},K$={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},X$={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},qh={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Q$={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Mh=[G$,G$,Th,Th,zh,zh,bb,ps,ps,ps,Rh,Rh,Nh,Nh,Ih,Ih,K$,K$,X$,X$,qh,qh,ps,ps,Q$,Q$],wb=[G$,ps,K$,X$,Q$],xb=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 Mh[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return wb[s]}else{if(n===120485||n===120486)return Mh[0];if(120486<n&&n<120782)return ps;throw new Tt("Unsupported character: "+e)}},Eu=function(t,r,n){if(hr[n][t]){var i=hr[n][t].replace;i&&(t=i)}return{value:t,metrics:R0(t,r,n)}},rn=function(t,r,n,i,s){var c=Eu(t,r,n),d=c.metrics;t=c.value;var p;if(d){var h=d.italic;(n==="text"||i&&i.font==="mathit")&&(h=0),p=new Sn(t,d.height,d.depth,h,d.skew,d.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),p=new Sn(t,0,0,0,0,0,s);if(i){p.maxFontSize=i.sizeMultiplier,i.style.isTight()&&p.classes.push("mtight");var q=i.getColor();q&&(p.style.color=q)}return p},N0=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Eu(t,"Main-Bold",r).metrics?rn(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||hr[r][t].font==="main"?rn(t,"Main-Regular",r,n,i):rn(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},kb=function(t,r,n){return n!=="textord"&&Eu(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Cu=function(t,r,n){var i=t.mode,s=t.text,c=["mord"],{font:d,fontFamily:p,fontWeight:h,fontShape:q}=r,j=i==="math"||i==="text"&&!!d,G=j?d:p,pe="",ke="";if(s.charCodeAt(0)===55349){var $e=xb(s);pe=$e.font,ke=$e[i+"Class"]}if(pe)return rn(s,pe,i,r,c.concat(ke));if(G){var W,Z;if(G==="boldsymbol"){var ve=kb(s,i,n);W=ve.fontName,Z=[ve.fontClass]}else j?(W=Z$[d].fontName,Z=[d]):(W=ro(p,h,q),Z=[p,h,q]);if(Eu(s,W,i).metrics)return rn(s,W,i,r,c.concat(Z));if(f1.hasOwnProperty(s)&&W.slice(0,10)==="Typewriter"){for(var ae=[],ye=0;ye<s.length;ye++)ae.push(rn(s[ye],W,i,r,c.concat(Z)));return Ti(ae)}}if(n==="mathord")return rn(s,"Math-Italic",i,r,c.concat(["mathnormal"]));if(n==="textord"){var le=hr[i][s]&&hr[i][s].font;if(le==="ams"){var we=ro("amsrm",h,q);return rn(s,we,i,r,c.concat("amsrm",h,q))}else if(le==="main"||!le){var ce=ro("textrm",h,q);return rn(s,ce,i,r,c.concat(h,q))}else{var ze=ro(le,h,q);return rn(s,ze,i,r,c.concat(ze,h,q))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Sb=(e,t)=>{if(es(e.classes)!==es(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},d1=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Sn&&n instanceof Sn&&Sb(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},I0=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>r&&(r=c.height),c.depth>n&&(n=c.depth),c.maxFontSize>i&&(i=c.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},kt=function(t,r,n,i){var s=new xa(t,r,n,i);return I0(s),s},rs=(e,t,r,n)=>new xa(e,t,r,n),ha=function(t,r,n){var i=kt([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Nt(i.height),i.maxFontSize=1,i},Ab=function(t,r,n,i){var s=new Au(t,r,n,i);return I0(s),s},Ti=function(t){var r=new wa(t);return I0(r),r},_a=function(t,r){return t instanceof wa?kt([],[t],r):t},Eb=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,c=1;c<r.length;c++){var d=-r[c].shift-s-r[c].elem.depth,p=d-(r[c-1].elem.height+r[c-1].elem.depth);s=s+d,n.push({type:"kern",size:p}),n.push(r[c])}return{children:n,depth:i}}var h;if(t.positionType==="top"){for(var q=t.positionData,j=0;j<t.children.length;j++){var G=t.children[j];q-=G.type==="kern"?G.size:G.elem.height+G.elem.depth}h=q}else if(t.positionType==="bottom")h=-t.positionData;else{var pe=t.children[0];if(pe.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-pe.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-pe.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},ir=function(t,r){for(var{children:n,depth:i}=Eb(t),s=0,c=0;c<n.length;c++){var d=n[c];if(d.type==="elem"){var p=d.elem;s=Math.max(s,p.maxFontSize,p.height)}}s+=2;var h=kt(["pstrut"],[]);h.style.height=Nt(s);for(var q=[],j=i,G=i,pe=i,ke=0;ke<n.length;ke++){var $e=n[ke];if($e.type==="kern")pe+=$e.size;else{var W=$e.elem,Z=$e.wrapperClasses||[],ve=$e.wrapperStyle||{},ae=kt(Z,[h,W],void 0,ve);ae.style.top=Nt(-s-pe-W.depth),$e.marginLeft&&(ae.style.marginLeft=$e.marginLeft),$e.marginRight&&(ae.style.marginRight=$e.marginRight),q.push(ae),pe+=W.height+W.depth}j=Math.min(j,pe),G=Math.max(G,pe)}var ye=kt(["vlist"],q);ye.style.height=Nt(G);var le;if(j<0){var we=kt([],[]),ce=kt(["vlist"],[we]);ce.style.height=Nt(-j);var ze=kt(["vlist-s"],[new Sn("")]);le=[kt(["vlist-r"],[ye,ze]),kt(["vlist-r"],[ce])]}else le=[kt(["vlist-r"],[ye])];var X=kt(["vlist-t"],le);return le.length===2&&X.classes.push("vlist-t2"),X.height=G,X.depth=-j,X},h1=(e,t)=>{var r=kt(["mspace"],[],t),n=gr(e,t);return r.style.marginRight=Nt(n),r},ro=(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},Z$={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"}},_1={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},p1=function(t,r){var[n,i,s]=_1[t],c=new ts(n),d=new Si([c],{width:Nt(i),height:Nt(s),style:"width:"+Nt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),p=rs(["overlay"],[d],r);return p.height=s,p.style.height=Nt(s),p.style.width=Nt(i),p},pr={number:3,unit:"mu"},fs={number:4,unit:"mu"},fi={number:5,unit:"mu"},Cb={mord:{mop:pr,mbin:fs,mrel:fi,minner:pr},mop:{mord:pr,mop:pr,mrel:fi,minner:pr},mbin:{mord:fs,mop:fs,mopen:fs,minner:fs},mrel:{mord:fi,mop:fi,mopen:fi,minner:fi},mopen:{},mclose:{mop:pr,mbin:fs,mrel:fi,minner:pr},mpunct:{mord:pr,mop:pr,mrel:fi,mopen:pr,mclose:pr,mpunct:pr,minner:pr},minner:{mord:pr,mop:pr,mbin:fs,mrel:fi,mopen:pr,mpunct:pr,minner:pr}},Tb={mord:{mop:pr},mop:{mord:pr,mop:pr},mbin:{},mrel:{},mopen:{},mclose:{mop:pr},mpunct:{},minner:{mop:pr}},m1={},ru={},nu={};function Dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,d={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},p=0;p<r.length;++p)m1[r[p]]=d;t&&(s&&(ru[t]=s),c&&(nu[t]=c))}function Rs(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 iu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zr=function(t){return t.type==="ordgroup"?t.body:[t]},zb=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Rb=new Set(["rightmost","mrel","mclose","mpunct"]),Nb={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},Ib={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Dr=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],c=0;c<t.length;c++){var d=sr(t[c],r);if(d instanceof wa){var p=d.children;s.push(...p)}else s.push(d)}if(d1(s),!n)return s;var h=r;if(t.length===1){var q=t[0];q.type==="sizing"?h=r.havingSize(q.size):q.type==="styling"&&(h=r.havingStyle(Nb[q.style]))}var j=kt([i[0]||"leftmost"],[],r),G=kt([i[1]||"rightmost"],[],r),pe=n==="root";return J$(s,(ke,$e)=>{var W=$e.classes[0],Z=ke.classes[0];W==="mbin"&&Rb.has(Z)?$e.classes[0]="mord":Z==="mbin"&&zb.has(W)&&(ke.classes[0]="mord")},{node:j},G,pe),J$(s,(ke,$e)=>{var W,Z,ve=ef($e),ae=ef(ke),ye=ve&&ae?ke.hasClass("mtight")?(W=Tb[ve])==null?void 0:W[ae]:(Z=Cb[ve])==null?void 0:Z[ae]:null;if(ye)return h1(ye,h)},{node:j},G,pe),s},J$=function(t,r,n,i,s){i&&t.push(i);for(var c=0;c<t.length;c++){var d=t[c],p=g1(d);if(p){J$(p.children,r,n,null,s);continue}var h=!d.hasClass("mspace");if(h){var q=r(d,n.node);q&&(n.insertAfter?n.insertAfter(q):(t.unshift(q),c++))}h?n.node=d:s&&d.hasClass("newline")&&(n.node=kt(["leftmost"])),n.insertAfter=(j=>G=>{t.splice(j+1,0,G),c++})(c)}i&&t.pop()},g1=function(t){return t instanceof wa||t instanceof Au||t instanceof xa&&t.hasClass("enclosing")?t:null},O$=function(t,r){var n=g1(t);if(n){var i=n.children;if(i.length){if(r==="right")return O$(i[i.length-1],"right");if(r==="left")return O$(i[0],"left")}}return t},ef=function(t,r){if(!t)return null;r&&(t=O$(t,r));var n=t.classes[0];return Ib[n]||null},wl=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return kt(r.concat(n))},sr=function(t,r,n){if(!t)return kt();if(ru[t.type]){var i=ru[t.type](t,r);if(n&&r.size!==n.size){i=kt(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Tt("Got group of unknown type: '"+t.type+"'")};function no(e,t){var r=kt(["base"],e,t),n=kt(["strut"]);return n.style.height=Nt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Nt(-r.depth)),r.children.unshift(n),r}function tf(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Dr(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],c=[],d=0;d<n.length;d++)if(c.push(n[d]),n[d].hasClass("mbin")||n[d].hasClass("mrel")||n[d].hasClass("allowbreak")){for(var p=!1;d<n.length-1&&n[d+1].hasClass("mspace")&&!n[d+1].hasClass("newline");)d++,c.push(n[d]),n[d].hasClass("nobreak")&&(p=!0);p||(s.push(no(c,t)),c=[])}else n[d].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(no(c,t)),c=[]),s.push(n[d]));c.length>0&&s.push(no(c,t));var h;r?(h=no(Dr(r,t,!0),t),h.classes=["tag"],s.push(h)):i&&s.push(i);var q=kt(["katex-html"],s);if(q.setAttribute("aria-hidden","true"),h){var j=h.children[0];j.style.height=Nt(q.height+q.depth),q.depth&&(j.style.verticalAlign=Nt(-q.depth))}return q}function v1(e){return new wa(e)}class zt{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=es(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Rr&&this.children[n+1]instanceof Rr){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Rr;)i+=this.children[++n].toText();t.appendChild(new Rr(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+=Qr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Qr(es(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 Rr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Qr(this.toText())}toText(){return this.text}}class y1{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",Nt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Nt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var qb=new Set(["\\imath","\\jmath"]),Mb=new Set(["mrow","mtable"]),Bn=function(t,r,n){return hr[r][t]&&hr[r][t].replace&&t.charCodeAt(0)!==55349&&!(f1.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=hr[r][t].replace),new Rr(t)},q0=function(t){return t.length===1?t[0]:new zt("mrow",t)},Db={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"},M0=(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=Db[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(qb.has(s))return null;if(hr[n][s]){var c=hr[n][s].replace;c&&(s=c)}var d=Z$[r].fontName;return R0(s,d,n)?Z$[r].variant:null};function wc(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Rr&&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 Rr&&r.text===","}else return!1}var zn=function(t,r,n){if(t.length===1){var i=or(t[0],r);return n&&i instanceof zt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],c,d=0;d<t.length;d++){var p=or(t[d],r);if(p instanceof zt&&c instanceof zt){if(p.type==="mtext"&&c.type==="mtext"&&p.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...p.children);continue}else if(p.type==="mn"&&c.type==="mn"){c.children.push(...p.children);continue}else if(wc(p)&&c.type==="mn"){c.children.push(...p.children);continue}else if(p.type==="mn"&&wc(c))p.children=[...c.children,...p.children],s.pop();else if((p.type==="msup"||p.type==="msub")&&p.children.length>=1&&(c.type==="mn"||wc(c))){var h=p.children[0];h instanceof zt&&h.type==="mn"&&(h.children=[...c.children,...h.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var q=c.children[0];if(q instanceof Rr&&q.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var j=p.children[0];j instanceof Rr&&j.text.length>0&&(j.text=j.text.slice(0,1)+"̸"+j.text.slice(1),s.pop())}}}s.push(p),c=p}return s},ns=function(t,r,n){return q0(zn(t,r,n))},or=function(t,r){if(!t)return new zt("mrow");if(nu[t.type])return nu[t.type](t,r);throw new Tt("Got group of unknown type: '"+t.type+"'")};function Dh(e,t,r,n,i){var s=zn(e,r),c;s.length===1&&s[0]instanceof zt&&Mb.has(s[0].type)?c=s[0]:c=new zt("mrow",s);var d=new zt("annotation",[new Rr(t)]);d.setAttribute("encoding","application/x-tex");var p=new zt("semantics",[c,d]),h=new zt("math",[p]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var q=i?"katex":"katex-mathml";return kt([q],[h])}var Lb=[[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]],Lh=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Fh=function(t,r){return r.size<2?t:Lb[t-1][r.size-1]};class pi{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||pi.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=Lh[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 pi(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Fh(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:Lh[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Fh(pi.BASESIZE,t);return this.size===r&&this.textSize===pi.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!==pi.BASESIZE?["sizing","reset-size"+this.size,"size"+pi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=yb(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}pi.BASESIZE=6;var b1=function(t){return new pi({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},w1=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=kt(n,[t])}return t},Fb=function(t,r,n){var i=b1(n),s;if(n.output==="mathml")return Dh(t,r,i,n.displayMode,!0);if(n.output==="html"){var c=tf(t,i);s=kt(["katex"],[c])}else{var d=Dh(t,r,i,n.displayMode,!1),p=tf(t,i);s=kt(["katex"],[d,p])}return w1(s,n)},Bb=function(t,r,n){var i=b1(n),s=tf(t,i),c=kt(["katex"],[s]);return w1(c,n)},Pb={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":"="},Tu=function(t){var r=new zt("mo",[new Rr(Pb[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},jb={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]},Ub=new Set(["widehat","widecheck","widetilde","utilde"]),zu=function(t,r){function n(){var d=4e5,p=t.label.slice(1);if(Ub.has(p)&&"base"in t){var h=t.base.type==="ordgroup"?t.base.body.length:1,q,j,G;if(h>5)p==="widehat"||p==="widecheck"?(q=420,d=2364,G=.42,j=p+"4"):(q=312,d=2340,G=.34,j="tilde4");else{var pe=[1,1,2,2,3,3][h];p==="widehat"||p==="widecheck"?(d=[0,1062,2364,2364,2364][pe],q=[0,239,300,360,420][pe],G=[0,.24,.3,.3,.36,.42][pe],j=p+pe):(d=[0,600,1033,2339,2340][pe],q=[0,260,286,306,312][pe],G=[0,.26,.286,.3,.306,.34][pe],j="tilde"+pe)}var ke=new ts(j),$e=new Si([ke],{width:"100%",height:Nt(G),viewBox:"0 0 "+d+" "+q,preserveAspectRatio:"none"});return{span:rs([],[$e],r),minWidth:0,height:G}}else{var W=[],Z=jb[p];if(!Z)throw new Error('No SVG data for "'+p+'".');var[ve,ae,ye]=Z,le=ye/1e3,we=ve.length,ce,ze;if(we===1){if(Z.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+p+'".');ce=["hide-tail"],ze=[Z[3]]}else if(we===2)ce=["halfarrow-left","halfarrow-right"],ze=["xMinYMin","xMaxYMin"];else if(we===3)ce=["brace-left","brace-center","brace-right"],ze=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
373
|
+
`+we+" children.");for(var X=0;X<we;X++){var Ae=new ts(ve[X]),oe=new Si([Ae],{width:"400em",height:Nt(le),viewBox:"0 0 "+d+" "+ye,preserveAspectRatio:ze[X]+" slice"}),k=rs([ce[X]],[oe],r);if(we===1)return{span:k,minWidth:ae,height:le};k.style.height=Nt(le),W.push(k)}return{span:kt(["stretchy"],W,r),minWidth:ae,height:le}}}var{span:i,minWidth:s,height:c}=n();return i.height=c,i.style.height=Nt(c),s>0&&(i.style.minWidth=Nt(s)),i},Hb=function(t,r,n,i,s){var c,d=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(c=kt(["stretchy",r],[],s),r==="fbox"){var p=s.color&&s.getColor();p&&(c.style.borderColor=p)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new W$({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new W$({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var q=new Si(h,{width:"100%",height:Nt(d)});c=rs([],[q],s)}return c.height=d,c.style.height=Nt(d),c},Vb={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Wb={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function Yb(e){return e in Vb}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 Ru(e){var t=Nu(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 Nu(e){return e&&(e.type==="atom"||Wb.hasOwnProperty(e.type))?e:null}var x1=e=>{if(e instanceof Sn)return e;if(gb(e)&&e.children.length===1)return x1(e.children[0])},D0=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=mb(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),c=n.isShifty&&Ei(r),d=0;if(c){var p,h;d=(p=(h=x1(s))==null?void 0:h.skew)!=null?p:0}var q=n.label==="\\c",j=q?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),G;if(n.isStretchy)G=zu(n,t),G=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:G,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+Nt(2*d)+")",marginLeft:Nt(2*d)}:void 0}]});else{var pe,ke;n.label==="\\vec"?(pe=p1("vec",t),ke=_1.vec[1]):(pe=Cu({mode:n.mode,text:n.label},t,"textord"),pe=pb(pe),pe.italic=0,ke=pe.width,q&&(j+=pe.depth)),G=kt(["accent-body"],[pe]);var $e=n.label==="\\textcircled";$e&&(G.classes.push("accent-full"),j=s.height);var W=d;$e||(W-=ke/2),G.style.left=Nt(W),n.label==="\\textcircled"&&(G.style.top=".2em"),G=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-j},{type:"elem",elem:G}]})}var Z=kt(["mord","accent"],[G],t);return i?(i.children[0]=Z,i.height=Math.max(Z.height,i.height),i.classes[0]="mord",i):Z},k1=(e,t)=>{var r=e.isStretchy?Tu(e.label):new zt("mo",[Bn(e.label,e.mode)]),n=new zt("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},Gb=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=iu(t[0]),n=!Gb.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:D0,mathmlBuilder:k1});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:D0,mathmlBuilder:k1});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=zu(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 kt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=Tu(e.label),n=new zt("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var io=e=>{var t=new zt("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=_a(sr(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var c;e.below&&(n=t.havingStyle(r.sub()),c=_a(sr(e.below,n,t),t),c.classes.push(s+"-arrow-pad"));var d=zu(e,t),p=-t.fontMetrics().axisHeight+.5*d.height,h=-t.fontMetrics().axisHeight-.5*d.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var q;if(c){var j=-t.fontMetrics().axisHeight+c.height+.5*d.height+.111;q=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:c,shift:j}]})}else q=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]}]});return kt(["mrel","x-arrow"],[q],t)},mathmlBuilder(e,t){var r=Tu(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 zt("munderover",[r,s,i])}else n=new zt("mover",[r,i])}else if(e.below){var c=io(or(e.below,t));n=new zt("munder",[r,c])}else n=io(),n=new zt("mover",[r,n]);return n}});function S1(e,t){var r=Dr(e.body,t,!0);return kt([e.mclass],r,t)}function A1(e,t){var r,n=zn(e.body,t);return e.mclass==="minner"?r=new zt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new zt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new zt("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:Ei(i)}},htmlBuilder:S1,mathmlBuilder:A1});var Iu=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:Iu(t[0]),body:zr(t[1]),isCharacterBox:Ei(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],c;n!=="\\stackrel"?c=Iu(i):c="mrel";var d={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:zr(i)},p={type:"supsub",mode:s.mode,base:d,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:c,body:[p],isCharacterBox:Ei(p)}},htmlBuilder:S1,mathmlBuilder:A1});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Iu(t[0]),body:zr(t[0])}},htmlBuilder(e,t){var r=Dr(e.body,t,!0),n=kt([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=zn(e.body,t),n=new zt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Kb={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Bh=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Ph=e=>e.type==="textord"&&e.text==="@",Xb=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Qb(e,t,r){var n=Kb[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"},c=r.callFunction("\\Big",[s],[]),d=r.callFunction("\\\\cdright",[t[1]],[]),p={type:"ordgroup",mode:"math",body:[i,c,d]};return r.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Zb(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 Tt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var c=t[s],d=Bh(),p=0;p<c.length;p++)if(!Ph(c[p]))d.body.push(c[p]);else{n.push(d),p+=1;var h=Ru(c[p]).text,q=new Array(2);if(q[0]={type:"ordgroup",mode:"math",body:[]},q[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var j=0;j<2;j++){for(var G=!0,pe=p+1;pe<c.length;pe++){if(Xb(c[pe],h)){G=!1,p=pe;break}if(Ph(c[pe]))throw new Tt("Missing a "+h+" character to complete a CD arrow.",c[pe]);q[j].body.push(c[pe])}if(G)throw new Tt("Missing a "+h+" character to complete a CD arrow.",c[p])}else throw new Tt('Expected one of "<>AV=|." after @',c[p]);var ke=Qb(h,q,e),$e={type:"styling",body:[ke],mode:"math",style:"display",resetFont:!0};n.push($e),d=Bh()}s%2===0?n.push(d):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var W=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:W,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=_a(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Nt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new zt("mrow",[or(e.label,t)]);return r=new zt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new zt("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=_a(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new zt("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="",c=0;c<i.length;c++){var d=Qt(i[c],"textord");s+=d.text}var p=parseInt(s),h;if(isNaN(p))throw new Tt("\\@char has non-numeric argument "+s);if(p<0||p>=1114111)throw new Tt("\\@char with invalid code point "+s);return p<=65535?h=String.fromCharCode(p):(p-=65536,h=String.fromCharCode((p>>10)+55296,(p&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var E1=(e,t)=>{var r=Dr(e.body,t.withColor(e.color),!1);return Ti(r)},C1=(e,t)=>{var r=zn(e.body,t.withColor(e.color)),n=new zt("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:E1,mathmlBuilder:C1});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:E1,mathmlBuilder:C1});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=kt(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Nt(gr(e.size,t)))),r},mathmlBuilder(e,t){var r=new zt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Nt(gr(e.size,t)))),r}});var rf={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},T1=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Tt("Expected a control sequence",e);return t},Jb=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},z1=(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(rf[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=rf[n.text]),Qt(t.parseFunction(),"internal");throw new Tt("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 Tt("Expected a control sequence",n);for(var s=0,c,d=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),d[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Tt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new Tt('Argument number "'+n.text+'" out of order');s++,d.push([])}else{if(n.text==="EOF")throw new Tt("Expected a macro definition");d[s].push(n.text)}var{tokens:p}=t.gullet.consumeArg();return c&&p.unshift(c),(r==="\\edef"||r==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(i,{tokens:p,numArgs:s,delimiters:d},r===rf[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=T1(t.gullet.popToken());t.gullet.consumeSpaces();var i=Jb(t);return z1(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=T1(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return z1(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Wa=function(t,r,n){var i=hr.math[t]&&hr.math[t].replace,s=R0(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},L0=function(t,r,n,i){var s=n.havingBaseStyle(r),c=kt(i.concat(s.sizingClasses(n)),[t],n),d=s.sizeMultiplier/n.sizeMultiplier;return c.height*=d,c.depth*=d,c.maxFontSize=s.sizeMultiplier,c},R1=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=Nt(s),t.height-=s,t.depth+=s},Ob=function(t,r,n,i,s,c){var d=rn(t,"Main-Regular",s,i),p=L0(d,r,i,c);return R1(p,i,r),p},e3=function(t,r,n,i){return rn(t,"Size"+r+"-Regular",n,i)},N1=function(t,r,n,i,s,c){var d=e3(t,r,s,i),p=L0(kt(["delimsizing","size"+r],[d],i),Gt.TEXT,i,c);return n&&R1(p,i,Gt.TEXT),p},xc=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=kt(["delimsizinginner",i],[kt([],[rn(t,r,n)])]);return{type:"elem",elem:s}},kc=function(t,r,n){var i=ii["Size4-Regular"][t.charCodeAt(0)]?ii["Size4-Regular"][t.charCodeAt(0)][4]:ii["Size1-Regular"][t.charCodeAt(0)][4],s=new ts("inner",ub(t,Math.round(1e3*r))),c=new Si([s],{width:Nt(i),height:Nt(r),style:"width:"+Nt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),d=rs([],[c],n);return d.height=r,d.style.height=Nt(r),d.style.width=Nt(i),{type:"elem",elem:d}},nf=.008,so={type:"kern",size:-1*nf},t3=new Set(["|","\\lvert","\\rvert","\\vert"]),r3=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),I1=function(t,r,n,i,s,c){var d,p,h,q,j="",G=0;d=h=q=t,p=null;var pe="Size1-Regular";t==="\\uparrow"?h=q="⏐":t==="\\Uparrow"?h=q="‖":t==="\\downarrow"?d=h="⏐":t==="\\Downarrow"?d=h="‖":t==="\\updownarrow"?(d="\\uparrow",h="⏐",q="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",h="‖",q="\\Downarrow"):t3.has(t)?(h="∣",j="vert",G=333):r3.has(t)?(h="∥",j="doublevert",G=556):t==="["||t==="\\lbrack"?(d="⎡",h="⎢",q="⎣",pe="Size4-Regular",j="lbrack",G=667):t==="]"||t==="\\rbrack"?(d="⎤",h="⎥",q="⎦",pe="Size4-Regular",j="rbrack",G=667):t==="\\lfloor"||t==="⌊"?(h=d="⎢",q="⎣",pe="Size4-Regular",j="lfloor",G=667):t==="\\lceil"||t==="⌈"?(d="⎡",h=q="⎢",pe="Size4-Regular",j="lceil",G=667):t==="\\rfloor"||t==="⌋"?(h=d="⎥",q="⎦",pe="Size4-Regular",j="rfloor",G=667):t==="\\rceil"||t==="⌉"?(d="⎤",h=q="⎥",pe="Size4-Regular",j="rceil",G=667):t==="("||t==="\\lparen"?(d="⎛",h="⎜",q="⎝",pe="Size4-Regular",j="lparen",G=875):t===")"||t==="\\rparen"?(d="⎞",h="⎟",q="⎠",pe="Size4-Regular",j="rparen",G=875):t==="\\{"||t==="\\lbrace"?(d="⎧",p="⎨",q="⎩",h="⎪",pe="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",p="⎬",q="⎭",h="⎪",pe="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",q="⎩",h="⎪",pe="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",q="⎭",h="⎪",pe="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",q="⎭",h="⎪",pe="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",q="⎩",h="⎪",pe="Size4-Regular");var ke=Wa(d,pe,s),$e=ke.height+ke.depth,W=Wa(h,pe,s),Z=W.height+W.depth,ve=Wa(q,pe,s),ae=ve.height+ve.depth,ye=0,le=1;if(p!==null){var we=Wa(p,pe,s);ye=we.height+we.depth,le=2}var ce=$e+ae+ye,ze=Math.max(0,Math.ceil((r-ce)/(le*Z))),X=ce+ze*le*Z,Ae=i.fontMetrics().axisHeight;n&&(Ae*=i.sizeMultiplier);var oe=X/2-Ae,k=[];if(j.length>0){var Se=X-$e-ae,F=Math.round(X*1e3),de=cb(j,Math.round(Se*1e3)),D=new ts(j,de),qe=Nt(G/1e3),te=Nt(F/1e3),B=new Si([D],{width:qe,height:te,viewBox:"0 0 "+G+" "+F}),w=rs([],[B],i);w.height=F/1e3,w.style.width=qe,w.style.height=te,k.push({type:"elem",elem:w})}else{if(k.push(xc(q,pe,s)),k.push(so),p===null){var $=X-$e-ae+2*nf;k.push(kc(h,$,i))}else{var l=(X-$e-ae-ye)/2+2*nf;k.push(kc(h,l,i)),k.push(so),k.push(xc(p,pe,s)),k.push(so),k.push(kc(h,l,i))}k.push(so),k.push(xc(d,pe,s))}var o=i.havingBaseStyle(Gt.TEXT),f=ir({positionType:"bottom",positionData:oe,children:k});return L0(kt(["delimsizing","mult"],[f],o),Gt.TEXT,i,c)},Sc=80,Ac=.08,Ec=function(t,r,n,i,s){var c=ob(t,i,n),d=new ts(t,c),p=new Si([d],{width:"400em",height:Nt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return rs(["hide-tail"],[p],s)},n3=function(t,r){var n=r.havingBaseSizing(),i=F1("\\surd",t*n.sizeMultiplier,L1,n),s=n.sizeMultiplier,c=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),d,p,h,q,j;return i.type==="small"?(q=1e3+1e3*c+Sc,t<1?s=1:t<1.4&&(s=.7),p=(1+c+Ac)/s,h=(1+c)/s,d=Ec("sqrtMain",p,q,c,r),d.style.minWidth="0.853em",j=.833/s):i.type==="large"?(q=(1e3+Sc)*nl[i.size],h=(nl[i.size]+c)/s,p=(nl[i.size]+c+Ac)/s,d=Ec("sqrtSize"+i.size,p,q,c,r),d.style.minWidth="1.02em",j=1/s):(p=t+c+Ac,h=t+c,q=Math.floor(1e3*t+c)+Sc,d=Ec("sqrtTall",p,q,c,r),d.style.minWidth="0.742em",j=1.056),d.height=h,d.style.height=Nt(p),{span:d,advanceWidth:j,ruleWidth:(r.fontMetrics().sqrtRuleThickness+c)*s}},q1=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),i3=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),M1=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),nl=[0,1.2,1.8,2.4,3],D1=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),q1.has(t)||M1.has(t))return N1(t,r,!1,n,i,s);if(i3.has(t))return I1(t,nl[r],!1,n,i,s);throw new Tt("Illegal delimiter: '"+t+"'")},s3=[{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}],a3=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],L1=[{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"}],l3=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.")},F1=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),c=s;c<n.length;c++){var d=n[c];if(d.type==="stack")break;var p=Wa(t,l3(d),"math"),h=p.height+p.depth;if(d.type==="small"){var q=i.havingBaseStyle(d.style);h*=q.sizeMultiplier}if(h>r)return d}return n[n.length-1]},sf=function(t,r,n,i,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;M1.has(t)?d=s3:q1.has(t)?d=L1:d=a3;var p=F1(t,r,d,i);return p.type==="small"?Ob(t,p.style,n,i,s,c):p.type==="large"?N1(t,p.size,n,i,s,c):I1(t,r,n,i,s,c)},Cc=function(t,r,n,i,s,c){var d=i.fontMetrics().axisHeight*i.sizeMultiplier,p=901,h=5/i.fontMetrics().ptPerEm,q=Math.max(r-d,n+d),j=Math.max(q/500*p,2*q-h);return sf(t,j,!0,i,s,c)},jh={"\\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}},o3=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 Uh(e){return"isMiddle"in e}function qu(e,t){var r=Nu(e);if(r&&o3.has(r.text))return r;throw r?new Tt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Tt("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=qu(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:jh[e.funcName].size,mclass:jh[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?kt([e.mclass]):D1(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Bn(e.delim,e.mode));var r=new zt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Nt(nl[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Hh(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 Tt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:qu(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=qu(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)=>{Hh(e);for(var r=Dr(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,c=0;c<r.length;c++){var d=r[c];Uh(d)?s=!0:(n=Math.max(r[c].height,n),i=Math.max(r[c].depth,i))}n*=t.sizeMultiplier,i*=t.sizeMultiplier;var p;if(e.left==="."?p=wl(t,["mopen"]):p=Cc(e.left,n,i,t,e.mode,["mopen"]),r.unshift(p),s)for(var h=1;h<r.length;h++){var q=r[h];if(Uh(q)){var j=q.isMiddle;r[h]=Cc(j.delim,n,i,j.options,e.mode,[])}}var G;if(e.right===".")G=wl(t,["mclose"]);else{var pe=e.rightColor?t.withColor(e.rightColor):t;G=Cc(e.right,n,i,pe,e.mode,["mclose"])}return r.push(G),kt(["minner"],r,t)},mathmlBuilder:(e,t)=>{Hh(e);var r=zn(e.body,t);if(e.left!=="."){var n=new zt("mo",[Bn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new zt("mo",[Bn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return q0(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=qu(t[0],e);if(!e.parser.leftrightDepth)throw new Tt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=wl(t,[]):(r=D1(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Bn("|","text"):Bn(e.delim,e.mode),n=new zt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Mu=(e,t)=>{var r=_a(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,c,d=Ei(e.body);if(n==="sout")s=kt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,c=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var p=gr({number:.6,unit:"pt"},t),h=gr({number:.35,unit:"ex"},t),q=t.havingBaseSizing();i=i/q.sizeMultiplier;var j=r.height+r.depth+p+h;r.style.paddingLeft=Nt(j/2+p);var G=Math.floor(1e3*j*i),pe=ab(G),ke=new Si([new ts("phase",pe)],{width:"400em",height:Nt(G/1e3),viewBox:"0 0 400000 "+G,preserveAspectRatio:"xMinYMin slice"});s=rs(["hide-tail"],[ke],t),s.style.height=Nt(j),c=r.depth+p+h}else{/cancel/.test(n)?d||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var $e,W,Z=0;/box/.test(n)?(Z=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),$e=t.fontMetrics().fboxsep+(n==="colorbox"?0:Z),W=$e):n==="angl"?(Z=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),$e=4*Z,W=Math.max(0,.25-r.depth)):($e=d?.2:0,W=$e),s=Hb(r,n,$e,W,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Nt(Z)):n==="angl"&&Z!==.049&&(s.style.borderTopWidth=Nt(Z),s.style.borderRightWidth=Nt(Z)),c=r.depth+W,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var ve;if(e.backgroundColor)ve=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:r,shift:0}]});else{var ae=/cancel|phase/.test(n)?["svg-align"]:[];ve=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:ae}]})}return/cancel/.test(n)&&(ve.height=r.height,ve.depth=r.depth),/cancel/.test(n)&&!d?kt(["mord","cancel-lap"],[ve],t):kt(["mord"],[ve],t)},Du=(e,t)=>{var r,n=new zt(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: "+Nt(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,c=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:c}},htmlBuilder:Mu,mathmlBuilder:Du});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,c=Qt(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:c,borderColor:s,body:d}},htmlBuilder:Mu,mathmlBuilder:Du});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:Mu,mathmlBuilder:Du});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:Mu,mathmlBuilder:Du});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 B1={};function ui(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},p=0;p<r.length;++p)B1[r[p]]=d;s&&(ru[t]=s),c&&(nu[t]=c)}var P1={};function Xe(e,t){P1[e]=t}class $n{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 $n(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class xn{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 xn(r,$n.range(this,t))}}function Vh(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 Lu=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Tt("{"+e.envName+"} can be used only in display mode.")},u3=new Set(["gather","gather*"]);function F0(e){if(!e.includes("ed"))return!e.includes("*")}function us(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:c,colSeparationType:d,autoTag:p,singleRow:h,emptySingleRow:q,maxNumCols:j,leqno:G}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var pe=e.gullet.expandMacroAsText("\\arraystretch");if(pe==null)c=1;else if(c=parseFloat(pe),!c||c<0)throw new Tt("Invalid \\arraystretch: "+pe)}e.gullet.beginGroup();var ke=[],$e=[ke],W=[],Z=[],ve=p!=null?[]:void 0;function ae(){p&&e.gullet.macros.set("\\@eqnsw","1",!0)}function ye(){ve&&(e.gullet.macros.get("\\df@tag")?(ve.push(e.subparse([new xn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):ve.push(!!p&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(ae(),Z.push(Vh(e));;){var le=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var we={type:"ordgroup",mode:e.mode,body:le};r&&(we={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[we]}),ke.push(we);var ce=e.fetch().text;if(ce==="&"){if(j&&ke.length===j){if(h||d)throw new Tt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(ce==="\\end"){ye(),ke.length===1&&we.type==="styling"&&we.body.length===1&&we.body[0].type==="ordgroup"&&we.body[0].body.length===0&&($e.length>1||!q)&&$e.pop(),Z.length<$e.length+1&&Z.push([]);break}else if(ce==="\\\\"){e.consume();var ze=void 0;e.gullet.future().text!==" "&&(ze=e.parseSizeGroup(!0)),W.push(ze?ze.value:null),ye(),Z.push(Vh(e)),ke=[],$e.push(ke),ae()}else throw new Tt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:c,body:$e,cols:s,rowGaps:W,hskipBeforeAndAfter:n,hLinesBeforeRow:Z,colSeparationType:d,tags:ve,leqno:G}}function B0(e){return e.slice(0,1)==="d"?"display":"text"}var ci=function(t,r){var n,i,s=t.body.length,c=t.hLinesBeforeRow,d=0,p=new Array(s),h=[],q=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),j=1/r.fontMetrics().ptPerEm,G=5*j;if(t.colSeparationType&&t.colSeparationType==="small"){var pe=r.havingStyle(Gt.SCRIPT).sizeMultiplier;G=.2778*(pe/r.sizeMultiplier)}var ke=t.colSeparationType==="CD"?gr({number:3,unit:"ex"},r):12*j,$e=3*j,W=t.arraystretch*ke,Z=.7*W,ve=.3*W,ae=0;function ye(ct){for(var a=0;a<ct.length;++a)a>0&&(ae+=.25),h.push({pos:ae,isDashed:ct[a]})}for(ye(c[0]),n=0;n<t.body.length;++n){var le=t.body[n],we=Z,ce=ve;d<le.length&&(d=le.length);var ze={cells:new Array(le.length),height:0,depth:0,pos:0};for(i=0;i<le.length;++i){var X=sr(le[i],r);ce<X.depth&&(ce=X.depth),we<X.height&&(we=X.height),ze.cells[i]=X}var Ae=t.rowGaps[n],oe=0;Ae&&(oe=gr(Ae,r),oe>0&&(oe+=ve,ce<oe&&(ce=oe),oe=0)),t.addJot&&n<t.body.length-1&&(ce+=$e),ze.height=we,ze.depth=ce,ae+=we,ze.pos=ae,ae+=ce+oe,p[n]=ze,ye(c[n+1])}var k=ae/2+r.fontMetrics().axisHeight,Se=t.cols||[],F=[],de,D,qe=[];if(t.tags&&t.tags.some(ct=>ct))for(n=0;n<s;++n){var te=p[n],B=te.pos-k,w=t.tags[n],$=void 0;w===!0?$=kt(["eqn-num"],[],r):w===!1?$=kt([],[],r):$=kt([],Dr(w,r,!0),r),$.depth=te.depth,$.height=te.height,qe.push({type:"elem",elem:$,shift:B})}for(i=0,D=0;i<d||D<Se.length;++i,++D){for(var l,o=Se[D],f=!0;((_=o)==null?void 0:_.type)==="separator";){var _;if(f||(de=kt(["arraycolsep"],[]),de.style.width=Nt(r.fontMetrics().doubleRuleSep),F.push(de)),o.separator==="|"||o.separator===":"){var A=o.separator==="|"?"solid":"dashed",T=kt(["vertical-separator"],[],r);T.style.height=Nt(ae),T.style.borderRightWidth=Nt(q),T.style.borderRightStyle=A,T.style.margin="0 "+Nt(-q/2);var J=ae-k;J&&(T.style.verticalAlign=Nt(-J)),F.push(T)}else throw new Tt("Invalid separator type: "+o.separator);D++,o=Se[D],f=!1}if(!(i>=d)){var Fe=void 0;if(i>0||t.hskipBeforeAndAfter){var it,ht;Fe=(it=(ht=o)==null?void 0:ht.pregap)!=null?it:G,Fe!==0&&(de=kt(["arraycolsep"],[]),de.style.width=Nt(Fe),F.push(de))}var mt=[];for(n=0;n<s;++n){var Rt=p[n],wt=Rt.cells[i];if(wt){var Mt=Rt.pos-k;wt.depth=Rt.depth,wt.height=Rt.height,mt.push({type:"elem",elem:wt,shift:Mt})}}var At=ir({positionType:"individualShift",children:mt}),qt=kt(["col-align-"+(((l=o)==null?void 0:l.align)||"c")],[At]);if(F.push(qt),i<d-1||t.hskipBeforeAndAfter){var It,rt;Fe=(It=(rt=o)==null?void 0:rt.postgap)!=null?It:G,Fe!==0&&(de=kt(["arraycolsep"],[]),de.style.width=Nt(Fe),F.push(de))}}}var Re=kt(["mtable"],F);if(h.length>0){for(var Be=ha("hline",r,q),Ge=ha("hdashline",r,q),b=[{type:"elem",elem:Re,shift:0}];h.length>0;){var R=h.pop(),me=R.pos-k;R.isDashed?b.push({type:"elem",elem:Ge,shift:me}):b.push({type:"elem",elem:Be,shift:me})}Re=ir({positionType:"individualShift",children:b})}if(qe.length===0)return kt(["mord"],[Re],r);var De=ir({positionType:"individualShift",children:qe}),Qe=kt(["tag"],[De],r);return Ti([Re,Qe])},c3={c:"center ",l:"left ",r:"right "},$i=function(t,r){for(var n=[],i=new zt("mtd",[],["mtr-glue"]),s=new zt("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var d=t.body[c],p=[],h=0;h<d.length;h++)p.push(new zt("mtd",[or(d[h],r)]));t.tags&&t.tags[c]&&(p.unshift(i),p.push(i),t.leqno?p.unshift(s):p.push(s)),n.push(new zt("mtr",p))}var q=new zt("mtable",n),j=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);q.setAttribute("rowspacing",Nt(j));var G="",pe="";if(t.cols&&t.cols.length>0){var ke=t.cols,$e="",W=!1,Z=0,ve=ke.length;ke[0].type==="separator"&&(G+="top ",Z=1),ke[ke.length-1].type==="separator"&&(G+="bottom ",ve-=1);for(var ae=Z;ae<ve;ae++){var ye=ke[ae];ye.type==="align"?(pe+=c3[ye.align],W&&($e+="none "),W=!0):ye.type==="separator"&&W&&($e+=ye.separator==="|"?"solid ":"dashed ",W=!1)}q.setAttribute("columnalign",pe.trim()),/[sd]/.test($e)&&q.setAttribute("columnlines",$e.trim())}if(t.colSeparationType==="align"){for(var le=t.cols||[],we="",ce=1;ce<le.length;ce++)we+=ce%2?"0em ":"1em ";q.setAttribute("columnspacing",we.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?q.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?q.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?q.setAttribute("columnspacing","0.5em"):q.setAttribute("columnspacing","1em");var ze="",X=t.hLinesBeforeRow;G+=X[0].length>0?"left ":"",G+=X[X.length-1].length>0?"right ":"";for(var Ae=1;Ae<X.length-1;Ae++)ze+=X[Ae].length===0?"none ":X[Ae][0]?"dashed ":"solid ";return/[sd]/.test(ze)&&q.setAttribute("rowlines",ze.trim()),G!==""&&(q=new zt("menclose",[q]),q.setAttribute("notation",G.trim())),t.arraystretch&&t.arraystretch<1&&(q=new zt("mstyle",[q]),q.setAttribute("scriptlevel","1")),q},j1=function(t,r){t.envName.includes("ed")||Lu(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=us(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:F0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),d=0,p=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var q="",j=0;j<r[0].body.length;j++){var G=Qt(r[0].body[j],"textord");q+=G.text}d=Number(q),p=d*2}var pe=!p;c.body.forEach(function(Z){for(var ve=1;ve<Z.length;ve+=2){var ae=Qt(Z[ve],"styling"),ye=Qt(ae.body[0],"ordgroup");ye.body.unshift(h)}if(pe)p<Z.length&&(p=Z.length);else{var le=Z.length/2;if(d<le)throw new Tt("Too many math in a row: "+("expected "+d+", but got "+le),Z[0])}});for(var ke=0;ke<p;++ke){var $e="r",W=0;ke%2===1?$e="l":ke>0&&pe&&(W=1),n[ke]={type:"align",align:$e,pregap:W,postgap:0}}return c.colSeparationType=pe?"align":"alignat",c};ui({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Nu(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(c){var d=Ru(c),p=d.text;if("lcr".includes(p))return{type:"align",align:p};if(p==="|")return{type:"separator",separator:"|"};if(p===":")return{type:"separator",separator:":"};throw new Tt("Unknown column alignment: "+p,c)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return us(e.parser,s,B0(e.envName))},htmlBuilder:ci,mathmlBuilder:$i});ui({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 Tt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=us(e.parser,n,B0(e.envName)),c=Math.max(0,...s.body.map(d=>d.length));return s.cols=new Array(c).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=us(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Nu(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(d){var p=Ru(d),h=p.text;if("lc".includes(h))return{type:"align",align:h};throw new Tt("Unknown column alignment: "+h,d)});if(i.length>1)throw new Tt("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},c=us(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new Tt("{subarray} can contain only one column");return c},htmlBuilder:ci,mathmlBuilder:$i});ui({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=us(e.parser,t,B0(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:j1,htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){u3.has(e.envName)&&Lu(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:F0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return us(e.parser,t,"display")},htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:j1,htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Lu(e);var t={autoTag:F0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return us(e.parser,t,"display")},htmlBuilder:ci,mathmlBuilder:$i});ui({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Lu(e),Zb(e.parser)},htmlBuilder:ci,mathmlBuilder:$i});Xe("\\nonumber","\\gdef\\@eqnsw{0}");Xe("\\notag","\\nonumber");Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Tt(e.funcName+" valid only within array environment")}});var Wh=B1;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 Tt("Invalid environment name",i);for(var s="",c=0;c<i.body.length;++c)s+=Qt(i.body[c],"textord").text;if(n==="\\begin"){if(!Wh.hasOwnProperty(s))throw new Tt("No such environment: "+s,i);var d=Wh[s],{args:p,optArgs:h}=r.parseArguments("\\begin{"+s+"}",d),q={mode:r.mode,envName:s,parser:r},j=d.handler(q,p,h);r.expect("\\end",!1);var G=r.nextToken,pe=Qt(r.parseFunction(),"environment");if(pe.name!==s)throw new Tt("Mismatch: \\begin{"+s+"} matched by \\end{"+pe.name+"}",G);return j}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var U1=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},H1=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},Yh={"\\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=iu(t[0]),s=n;return s in Yh&&(s=Yh[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:U1,mathmlBuilder:H1});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:Iu(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ei(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,c=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:c}}},htmlBuilder:U1,mathmlBuilder:H1});var $3=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var c=sr(e.numer,s,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,p=3.5/t.fontMetrics().ptPerEm;c.height=c.height<d?d:c.height,c.depth=c.depth<p?p:c.depth}s=t.havingStyle(i);var h=sr(e.denom,s,t),q,j,G;e.hasBarLine?(e.barSize?(j=gr(e.barSize,t),q=ha("frac-line",t,j)):q=ha("frac-line",t),j=q.height,G=q.height):(q=null,j=0,G=t.fontMetrics().defaultRuleThickness);var pe,ke,$e;r.size===Gt.DISPLAY.size?(pe=t.fontMetrics().num1,j>0?ke=3*G:ke=7*G,$e=t.fontMetrics().denom1):(j>0?(pe=t.fontMetrics().num2,ke=G):(pe=t.fontMetrics().num3,ke=3*G),$e=t.fontMetrics().denom2);var W;if(q){var ve=t.fontMetrics().axisHeight;pe-c.depth-(ve+.5*j)<ke&&(pe+=ke-(pe-c.depth-(ve+.5*j))),ve-.5*j-(h.height-$e)<ke&&($e+=ke-(ve-.5*j-(h.height-$e)));var ae=-(ve-.5*j);W=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:$e},{type:"elem",elem:q,shift:ae},{type:"elem",elem:c,shift:-pe}]})}else{var Z=pe-c.depth-(h.height-$e);Z<ke&&(pe+=.5*(ke-Z),$e+=.5*(ke-Z)),W=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:$e},{type:"elem",elem:c,shift:-pe}]})}s=t.havingStyle(r),W.height*=s.sizeMultiplier/t.sizeMultiplier,W.depth*=s.sizeMultiplier/t.sizeMultiplier;var ye;r.size===Gt.DISPLAY.size?ye=t.fontMetrics().delim1:r.size===Gt.SCRIPTSCRIPT.size?ye=t.havingStyle(Gt.SCRIPT).fontMetrics().delim2:ye=t.fontMetrics().delim2;var le,we;return e.leftDelim==null?le=wl(t,["mopen"]):le=sf(e.leftDelim,ye,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?we=kt([]):e.rightDelim==null?we=wl(t,["mclose"]):we=sf(e.rightDelim,ye,!0,t.havingStyle(r),e.mode,["mclose"]),kt(["mord"].concat(s.sizingClasses(t)),[le,kt(["mfrac"],[W]),we],t)},f3=(e,t)=>{var r=new zt("mfrac",[or(e.numer,t),or(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=gr(e.barSize,t);r.setAttribute("linethickness",Nt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new zt("mo",[new Rr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var c=new zt("mo",[new Rr(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),i.push(c)}return q0(i)}return r},V1=(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],c,d=null,p=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,d="(",p=")";break;case"\\\\bracefrac":c=!1,d="\\{",p="\\}";break;case"\\\\brackfrac":c=!1,d="[",p="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",q=null;return h||n.startsWith("\\d")?q="display":n.startsWith("\\t")&&(q="text"),V1({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:h,hasBarLine:c,leftDelim:d,rightDelim:p,barSize:null},q)},htmlBuilder:$3,mathmlBuilder:f3});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 Gh=["display","text","script","scriptscript"],Kh=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=iu(t[0]),c=s.type==="atom"&&s.family==="open"?Kh(s.text):null,d=iu(t[1]),p=d.type==="atom"&&d.family==="close"?Kh(d.text):null,h=Qt(t[2],"size"),q,j=null;h.isBlank?q=!0:(j=h.value,q=j.number>0);var G=null,pe=t[3];if(pe.type==="ordgroup"){if(pe.body.length>0){var ke=Qt(pe.body[0],"textord");G=Gh[Number(ke.text)]}}else pe=Qt(pe,"textord"),G=Gh[Number(pe.text)];return V1({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:q,barSize:j,leftDelim:c,rightDelim:p},G)}});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 c=t[2],d=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:c,continued:!1,hasBarLine:d,barSize:s,leftDelim:null,rightDelim:null}}});var W1=(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)),c=zu(i,t),d;if(i.isOver?d=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c,wrapperClasses:["svg-align"]}]}):d=ir({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var p=kt(["minner",i.isOver?"mover":"munder"],[d],t);i.isOver?d=ir({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:n}]}):d=ir({positionType:"bottom",positionData:p.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:p}]})}return kt(["minner",i.isOver?"mover":"munder"],[d],t)},d3=(e,t)=>{var r=Tu(e.label);return new zt(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:W1,mathmlBuilder:d3});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=Dr(e.body,t,!1);return Ab(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=ns(e.body,t);return r instanceof zt||(r=new zt("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 c=n[s];c==="~"&&(c="\\textasciitilde"),i.push({type:"textord",mode:"text",text:c})}var d={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:zr(d)}}});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=Dr(e.body,t.withFont(""),!1);return Ti(r)},mathmlBuilder(e,t){return new zt("mrow",zn(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,c=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,p={};switch(n){case"\\htmlClass":p.class=s,d={command:"\\htmlClass",class:s};break;case"\\htmlId":p.id=s,d={command:"\\htmlId",id:s};break;case"\\htmlStyle":p.style=s,d={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var h=s.split(","),q=0;q<h.length;q++){var j=h[q],G=j.indexOf("=");if(G<0)throw new Tt("\\htmlData key/value '"+j+"' missing equals sign");var pe=j.slice(0,G),ke=j.slice(G+1);p["data-"+pe.trim()]=ke}d={command:"\\htmlData",attributes:p};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(d)?{type:"html",mode:r.mode,attributes:p,body:zr(c)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Dr(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=kt(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)=>ns(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=Dr(e.html,t,!1);return Ti(r)},mathmlBuilder:(e,t)=>ns(e.mathml,t)});var Tc=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 Tt("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!o1(n))throw new Tt("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"},c={number:0,unit:"em"},d="";if(r[0])for(var p=Qt(r[0],"raw").string,h=p.split(","),q=0;q<h.length;q++){var j=h[q].split("=");if(j.length===2){var G=j[1].trim();switch(j[0].trim()){case"alt":d=G;break;case"width":i=Tc(G);break;case"height":s=Tc(G);break;case"totalheight":c=Tc(G);break;default:throw new Tt("Invalid key: '"+j[0]+"' in \\includegraphics.")}}}var pe=Qt(t[0],"url").url;return d===""&&(d=pe,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:pe})?{type:"includegraphics",mode:n.mode,alt:d,width:i,height:s,totalheight:c,src:pe}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=gr(e.height,t),n=0;e.totalheight.number>0&&(n=gr(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=gr(e.width,t));var s={height:Nt(r+n)};i>0&&(s.width=Nt(i)),n>0&&(s.verticalAlign=Nt(-n));var c=new hb(e.src,e.alt,s);return c.height=r,c.depth=n,c},mathmlBuilder:(e,t)=>{var r=new zt("mglyph",[]);r.setAttribute("alt",e.alt);var n=gr(e.height,t),i=0;if(e.totalheight.number>0&&(i=gr(e.totalheight,t)-n,r.setAttribute("valign",Nt(-i))),r.setAttribute("height",Nt(n+i)),e.width.number>0){var s=gr(e.width,t);r.setAttribute("width",Nt(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",c=i.value.unit==="mu";s?(c||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")):c&&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 h1(e.dimension,t)},mathmlBuilder(e,t){var r=gr(e.dimension,t);return new y1(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=kt([],[sr(e.body,t)]),r=kt(["inner"],[r],t)):r=kt(["inner"],[sr(e.body,t)]);var n=kt(["fix"],[]),i=kt([e.alignment],[r,n],t),s=kt(["strut"]);return s.style.height=Nt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Nt(-i.depth)),i.children.unshift(s),i=kt(["thinbox"],[i],t),kt(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new zt("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==="\\("?"\\)":"$",c=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:c}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Tt("Mismatched "+e.funcName)}});var Xh=(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=Xh(e,t),n=Dr(r,t,!1);return Ti(n)},mathmlBuilder:(e,t)=>{var r=Xh(e,t);return ns(r,t)}});var Y1=(e,t,r,n,i,s,c)=>{e=kt([],[e]);var d=r&&Ei(r),p,h;if(t){var q=sr(t,n.havingStyle(i.sup()),n);h={elem:q,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-q.depth)}}if(r){var j=sr(r,n.havingStyle(i.sub()),n);p={elem:j,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-j.height)}}var G;if(h&&p){var pe=n.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+c;G=ir({positionType:"bottom",positionData:pe,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Nt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Nt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(p){var ke=e.height-c;G=ir({positionType:"top",positionData:ke,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Nt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e}]})}else if(h){var $e=e.depth+c;G=ir({positionType:"bottom",positionData:$e,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Nt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var W=[G];if(p&&s!==0&&!d){var Z=kt(["mspace"],[],n);Z.style.marginRight=Nt(s),W.unshift(Z)}return kt(["mop","op-limits"],W,n)},G1=new Set(["\\smallint"]),Sa=(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 c=t.style,d=!1;c.size===Gt.DISPLAY.size&&s.symbol&&!G1.has(s.name)&&(d=!0);var p,h;if(s.symbol){var q=d?"Size2-Regular":"Size1-Regular",j="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(j=s.name.slice(1),s.name=j==="oiint"?"\\iint":"\\iiint"),p=rn(s.name,q,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),h=p.italic,j.length>0){var G=p1(j+"Size"+(d?"2":"1"),t);p=ir({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:G,shift:d?.08:0}]}),s.name="\\"+j,p.classes.unshift("mop"),p.italic=h}}else if(s.body){var pe=Dr(s.body,t,!0);pe.length===1&&pe[0]instanceof Sn?(p=pe[0],p.classes[0]="mop"):p=kt(["mop"],pe,t)}else{for(var ke=[],$e=1;$e<s.name.length;$e++)ke.push(N0(s.name[$e],s.mode,t));p=kt(["mop"],ke,t)}var W=0,Z=0;if((p instanceof Sn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var ve;W=(p.height-p.depth)/2-t.fontMetrics().axisHeight,Z=(ve=p.italic)!=null?ve:0}return i?Y1(p,r,n,t,c,Z,W):(W&&(p.style.position="relative",p.style.top=Nt(W)),p)},Rl=(e,t)=>{var r;if(e.symbol)r=new zt("mo",[Bn(e.name,e.mode)]),G1.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new zt("mo",zn(e.body,t));else{r=new zt("mi",[new Rr(e.name.slice(1))]);var n=new zt("mo",[Bn("","text")]);e.parentIsSupSub?r=new zt("mrow",[r,n]):r=v1([r,n])}return r},h3={"∏":"\\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=h3[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Sa,mathmlBuilder:Rl});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:Sa,mathmlBuilder:Rl});var _3={"∫":"\\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:Sa,mathmlBuilder:Rl});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:Sa,mathmlBuilder:Rl});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=_3[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Sa,mathmlBuilder:Rl});var K1=(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 c;if(s.body.length>0){for(var d=s.body.map(j=>{var G="text"in j?j.text:void 0;return typeof G=="string"?{type:"textord",mode:j.mode,text:G}:j}),p=Dr(d,t.withFont("mathrm"),!0),h=0;h<p.length;h++){var q=p[h];q instanceof Sn&&(q.text=q.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=kt(["mop"],p,t)}else c=kt(["mop"],[],t);return i?Y1(c,r,n,t,t.style,0,0):c},p3=(e,t)=>{for(var r=zn(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof y1))if(s instanceof zt)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof Rr?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var d=r.map(q=>q.toText()).join("");r=[new Rr(d)]}var p=new zt("mi",r);p.setAttribute("mathvariant","normal");var h=new zt("mo",[Bn("","text")]);return e.parentIsSupSub?new zt("mrow",[p,h]):v1([p,h])};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:K1,mathmlBuilder:p3});Xe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Rs({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ti(Dr(e.body,t,!1)):kt(["mord"],Dr(e.body,t,!0),t)},mathmlBuilder(e,t){return ns(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=ha("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 kt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new zt("mo",[new Rr("‾")]);r.setAttribute("stretchy","true");var n=new zt("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=Dr(e.body,t.withPhantom(),!1);return Ti(r)},mathmlBuilder:(e,t)=>{var r=zn(e.body,t);return new zt("mphantom",r)}});Xe("\\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=kt(["inner"],[sr(e.body,t.withPhantom())]),n=kt(["fix"],[]);return kt(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=zn(zr(e.body),t),n=new zt("mphantom",r),i=new zt("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=gr(e.dy,t);return ir({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new zt("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"),c=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var r=kt(["mord","rule"],[],t),n=gr(e.width,t),i=gr(e.height,t),s=e.shift?gr(e.shift,t):0;return r.style.borderRightWidth=Nt(n),r.style.borderTopWidth=Nt(i),r.style.bottom=Nt(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=gr(e.width,t),n=gr(e.height,t),i=e.shift?gr(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new zt("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",Nt(r)),c.setAttribute("height",Nt(n));var d=new zt("mpadded",[c]);return i>=0?d.setAttribute("height",Nt(i)):(d.setAttribute("height",Nt(i)),d.setAttribute("depth",Nt(-i))),d.setAttribute("voffset",Nt(i)),d}});function X1(e,t,r){for(var n=Dr(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var c=n[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[c+1]==="reset-size"+t.size&&(n[s].classes[c+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return Ti(n)}var Qh=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],m3=(e,t)=>{var r=t.havingSize(e.size);return X1(e.body,r,t)};Dt({type:"sizing",names:Qh,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:Qh.indexOf(n)+1,body:s}},htmlBuilder:m3,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=zn(e.body,r),i=new zt("mstyle",n);return i.setAttribute("mathsize",Nt(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,c=r[0]&&Qt(r[0],"ordgroup");if(c)for(var d,p=0;p<c.body.length;++p){var h=c.body[p];if(d=Ru(h).text,d==="t")i=!0;else if(d==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var q=t[0];return{type:"smash",mode:n.mode,body:q,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=kt([],[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 kt(["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 kt(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new zt("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=_a(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var c=i+s/4,d=r.height+r.depth+c+i,{span:p,ruleWidth:h,advanceWidth:q}=n3(d,t),j=p.height-h;j>r.height+r.depth+c&&(c=(c+j-r.height-r.depth)/2);var G=p.height-r.height-c-h;r.style.paddingLeft=Nt(q);var pe=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+G)},{type:"elem",elem:p},{type:"kern",size:h}]});if(e.index){var ke=t.havingStyle(Gt.SCRIPTSCRIPT),$e=sr(e.index,ke,t),W=.6*(pe.height-pe.depth),Z=ir({positionType:"shift",positionData:-W,children:[{type:"elem",elem:$e}]}),ve=kt(["root"],[Z]);return kt(["mord","sqrt"],[ve,pe],t)}else return kt(["mord","sqrt"],[pe],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new zt("mroot",[or(r,t),or(n,t)]):new zt("msqrt",[or(r,t)])}});var af={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function g3(e){return e in af}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),c=n.slice(1,n.length-5);if(!g3(c))throw new Error("Unknown style: "+c);return{type:"styling",mode:i.mode,style:c,body:s}},htmlBuilder(e,t){var r=af[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),X1(e.body,n,t)},mathmlBuilder(e,t){var r=af[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=zn(e.body,n),s=new zt("mstyle",i),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=c[e.style];return s.setAttribute("scriptlevel",d[0]),s.setAttribute("displaystyle",d[1]),s}});var v3=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?Sa:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?K1:null}else{if(n.type==="accent")return Ei(n.base)?D0:null;if(n.type==="horizBrace"){var c=!t.sub;return c===n.isOver?W1:null}else return null}else return null};Rs({type:"supsub",htmlBuilder(e,t){var r=v3(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,c=sr(n,t),d,p,h=t.fontMetrics(),q=0,j=0,G=n&&Ei(n);if(i){var pe=t.havingStyle(t.style.sup());d=sr(i,pe,t),G||(q=c.height-pe.fontMetrics().supDrop*pe.sizeMultiplier/t.sizeMultiplier)}if(s){var ke=t.havingStyle(t.style.sub());p=sr(s,ke,t),G||(j=c.depth+ke.fontMetrics().subDrop*ke.sizeMultiplier/t.sizeMultiplier)}var $e;t.style===Gt.DISPLAY?$e=h.sup1:t.style.cramped?$e=h.sup3:$e=h.sup2;var W=t.sizeMultiplier,Z=Nt(.5/h.ptPerEm/W),ve=null;if(p){var ae=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(c instanceof Sn||ae){var ye;ve=Nt(-((ye=c.italic)!=null?ye:0))}}var le;if(d&&p){q=Math.max(q,$e,d.depth+.25*h.xHeight),j=Math.max(j,h.sub2);var we=h.defaultRuleThickness,ce=4*we;if(q-d.depth-(p.height-j)<ce){j=ce-(q-d.depth)+p.height;var ze=.8*h.xHeight-(q-d.depth);ze>0&&(q+=ze,j-=ze)}var X=[{type:"elem",elem:p,shift:j,marginRight:Z,marginLeft:ve},{type:"elem",elem:d,shift:-q,marginRight:Z}];le=ir({positionType:"individualShift",children:X})}else if(p){j=Math.max(j,h.sub1,p.height-.8*h.xHeight);var Ae=[{type:"elem",elem:p,marginLeft:ve,marginRight:Z}];le=ir({positionType:"shift",positionData:j,children:Ae})}else if(d)q=Math.max(q,$e,d.depth+.25*h.xHeight),le=ir({positionType:"shift",positionData:-q,children:[{type:"elem",elem:d,marginRight:Z}]});else throw new Error("supsub must have either sup or sub.");var oe=ef(c,"right")||"mord";return kt([oe],[c,kt(["msupsub"],[le])],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 c;if(r)c=n?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Gt.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||h.limits)?c="munderover":c="msubsup"}else{var p=e.base;p&&p.type==="op"&&p.limits&&(t.style===Gt.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===Gt.DISPLAY)?c="munder":c="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===Gt.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Gt.DISPLAY)?c="mover":c="msup"}return new zt(c,s)}});Rs({type:"atom",htmlBuilder(e,t){return N0(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new zt("mo",[Bn(e.text,e.mode)]);if(e.family==="bin"){var n=M0(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 Q1={mi:"italic",mn:"normal",mtext:"normal"};Rs({type:"mathord",htmlBuilder(e,t){return Cu(e,t,"mathord")},mathmlBuilder(e,t){var r=new zt("mi",[Bn(e.text,e.mode,t)]),n=M0(e,t)||"italic";return n!==Q1[r.type]&&r.setAttribute("mathvariant",n),r}});Rs({type:"textord",htmlBuilder(e,t){return Cu(e,t,"textord")},mathmlBuilder(e,t){var r=Bn(e.text,e.mode,t),n=M0(e,t)||"normal",i;return e.mode==="text"?i=new zt("mtext",[r]):/[0-9]/.test(e.text)?i=new zt("mn",[r]):e.text==="\\prime"?i=new zt("mo",[r]):i=new zt("mi",[r]),n!==Q1[i.type]&&i.setAttribute("mathvariant",n),i}});var zc={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Rc={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Rs({type:"spacing",htmlBuilder(e,t){if(Rc.hasOwnProperty(e.text)){var r=Rc[e.text].className||"";if(e.mode==="text"){var n=Cu(e,t,"textord");return n.classes.push(r),n}else return kt(["mspace",r],[N0(e.text,e.mode,t)],t)}else{if(zc.hasOwnProperty(e.text))return kt(["mspace",zc[e.text]],[],t);throw new Tt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Rc.hasOwnProperty(e.text))r=new zt("mtext",[new Rr(" ")]);else{if(zc.hasOwnProperty(e.text))return new zt("mspace");throw new Tt('Unknown type of space "'+e.text+'"')}return r}});var Zh=()=>{var e=new zt("mtd",[]);return e.setAttribute("width","50%"),e};Rs({type:"tag",mathmlBuilder(e,t){var r=new zt("mtable",[new zt("mtr",[Zh(),new zt("mtd",[ns(e.body,t)]),Zh(),new zt("mtd",[ns(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Jh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Oh={"\\textbf":"textbf","\\textmd":"textmd"},y3={"\\textit":"textit","\\textup":"textup"},e_=(e,t)=>{var r=e.font;if(r){if(Jh[r])return t.withTextFontFamily(Jh[r]);if(Oh[r])return t.withTextFontWeight(Oh[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(y3[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=e_(e,t),n=Dr(e.body,r,!0);return kt(["mord","text"],n,r)},mathmlBuilder(e,t){var r=e_(e,t);return ns(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=ha("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 kt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new zt("mo",[new Rr("‾")]);r.setAttribute("stretchy","true");var n=new zt("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 zt("mpadded",[or(e.body,t)],["vcenter"]);return new zt("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Tt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=t_(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var c=r[s];c==="~"&&(c="\\textasciitilde"),n.push(rn(c,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return kt(["mord","text"].concat(i.sizingClasses(t)),d1(n),i)},mathmlBuilder(e,t){var r=new Rr(t_(e)),n=new zt("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var t_=e=>e.body.replace(/ /g,e.star?"␣":" "),Ui=m1,Z1=`[ \r
|
|
374
|
+
]`,b3="\\\\[a-zA-Z@]+",w3="\\\\[^\uD800-\uDFFF]",x3="("+b3+")"+Z1+"*",k3=`\\\\(
|
|
375
|
+
|[ \r ]+
|
|
376
|
+
?)[ \r ]*`,lf="[̀-ͯ]",S3=new RegExp(lf+"+$"),A3="("+Z1+"+)|"+(k3+"|")+"([!-\\[\\]-‧-豈-]"+(lf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(lf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+x3)+("|"+w3+")");class r_{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(A3,"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 xn("EOF",new $n(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Tt("Unexpected character: '"+t[r]+"'",new xn(t[r],new $n(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
|
|
377
|
+
`,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 xn(i,new $n(this,r,this.tokenRegex.lastIndex))}}class E3{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 Tt("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 C3=P1;Xe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Xe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Xe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Xe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Xe("\\@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}});Xe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Xe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var n_={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};Xe("\\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 Tt("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=n_[t.text],n==null||n>=r)throw new Tt("Invalid base-"+r+" digit "+t.text);for(var i;(i=n_[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var P0=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new Tt("\\newcommand's first argument must be a macro name");var s=i[0].text,c=e.isDefined(s);if(c&&!t)throw new Tt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!r)throw new Tt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var d=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var p="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)p+=h.text,h=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new Tt("Invalid number of arguments: "+p);d=parseInt(p),i=e.consumeArg().tokens}return c&&n||e.macros.set(s,{tokens:i,numArgs:d}),""};Xe("\\newcommand",e=>P0(e,!1,!0,!1));Xe("\\renewcommand",e=>P0(e,!0,!1,!1));Xe("\\providecommand",e=>P0(e,!0,!0,!0));Xe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Xe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Xe("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Ui[r],hr.math[r],hr.text[r]),""});Xe("\\bgroup","{");Xe("\\egroup","}");Xe("~","\\nobreakspace");Xe("\\lq","`");Xe("\\rq","'");Xe("\\aa","\\r a");Xe("\\AA","\\r A");Xe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Xe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Xe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Xe("ℬ","\\mathscr{B}");Xe("ℰ","\\mathscr{E}");Xe("ℱ","\\mathscr{F}");Xe("ℋ","\\mathscr{H}");Xe("ℐ","\\mathscr{I}");Xe("ℒ","\\mathscr{L}");Xe("ℳ","\\mathscr{M}");Xe("ℛ","\\mathscr{R}");Xe("ℭ","\\mathfrak{C}");Xe("ℌ","\\mathfrak{H}");Xe("ℨ","\\mathfrak{Z}");Xe("\\Bbbk","\\Bbb{k}");Xe("\\llap","\\mathllap{\\textrm{#1}}");Xe("\\rlap","\\mathrlap{\\textrm{#1}}");Xe("\\clap","\\mathclap{\\textrm{#1}}");Xe("\\mathstrut","\\vphantom{(}");Xe("\\underbar","\\underline{\\text{#1}}");Xe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Xe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Xe("\\ne","\\neq");Xe("≠","\\neq");Xe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Xe("∉","\\notin");Xe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Xe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Xe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Xe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Xe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Xe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Xe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Xe("⟂","\\perp");Xe("‼","\\mathclose{!\\mkern-0.8mu!}");Xe("∌","\\notni");Xe("⌜","\\ulcorner");Xe("⌝","\\urcorner");Xe("⌞","\\llcorner");Xe("⌟","\\lrcorner");Xe("©","\\copyright");Xe("®","\\textregistered");Xe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Xe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Xe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Xe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Xe("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Xe("⋮","\\vdots");Xe("\\varGamma","\\mathit{\\Gamma}");Xe("\\varDelta","\\mathit{\\Delta}");Xe("\\varTheta","\\mathit{\\Theta}");Xe("\\varLambda","\\mathit{\\Lambda}");Xe("\\varXi","\\mathit{\\Xi}");Xe("\\varPi","\\mathit{\\Pi}");Xe("\\varSigma","\\mathit{\\Sigma}");Xe("\\varUpsilon","\\mathit{\\Upsilon}");Xe("\\varPhi","\\mathit{\\Phi}");Xe("\\varPsi","\\mathit{\\Psi}");Xe("\\varOmega","\\mathit{\\Omega}");Xe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Xe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Xe("\\boxed","\\fbox{$\\displaystyle{#1}$}");Xe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Xe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Xe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Xe("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Xe("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var i_={",":"\\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"},T3=new Set(["bin","rel"]);Xe("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in i_?t=i_[r]:(r.slice(0,4)==="\\not"||r in hr.math&&T3.has(hr.math[r].group))&&(t="\\dotsb"),t});var j0={")":!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};Xe("\\dotso",function(e){var t=e.future().text;return t in j0?"\\ldots\\,":"\\ldots"});Xe("\\dotsc",function(e){var t=e.future().text;return t in j0&&t!==","?"\\ldots\\,":"\\ldots"});Xe("\\cdots",function(e){var t=e.future().text;return t in j0?"\\@cdots\\,":"\\@cdots"});Xe("\\dotsb","\\cdots");Xe("\\dotsm","\\cdots");Xe("\\dotsi","\\!\\cdots");Xe("\\dotsx","\\ldots\\,");Xe("\\DOTSI","\\relax");Xe("\\DOTSB","\\relax");Xe("\\DOTSX","\\relax");Xe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Xe("\\,","\\tmspace+{3mu}{.1667em}");Xe("\\thinspace","\\,");Xe("\\>","\\mskip{4mu}");Xe("\\:","\\tmspace+{4mu}{.2222em}");Xe("\\medspace","\\:");Xe("\\;","\\tmspace+{5mu}{.2777em}");Xe("\\thickspace","\\;");Xe("\\!","\\tmspace-{3mu}{.1667em}");Xe("\\negthinspace","\\!");Xe("\\negmedspace","\\tmspace-{4mu}{.2222em}");Xe("\\negthickspace","\\tmspace-{5mu}{.277em}");Xe("\\enspace","\\kern.5em ");Xe("\\enskip","\\hskip.5em\\relax");Xe("\\quad","\\hskip1em\\relax");Xe("\\qquad","\\hskip2em\\relax");Xe("\\tag","\\@ifstar\\tag@literal\\tag@paren");Xe("\\tag@paren","\\tag@literal{({#1})}");Xe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Tt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Xe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Xe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Xe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Xe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Xe("\\newline","\\\\\\relax");Xe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var J1=Nt(ii["Main-Regular"][84][1]-.7*ii["Main-Regular"][65][1]);Xe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+J1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Xe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+J1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Xe("\\hspace","\\@ifstar\\@hspacer\\@hspace");Xe("\\@hspace","\\hskip #1\\relax");Xe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Xe("\\ordinarycolon",":");Xe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Xe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Xe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Xe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Xe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Xe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Xe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Xe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Xe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Xe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Xe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Xe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Xe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Xe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Xe("∷","\\dblcolon");Xe("∹","\\eqcolon");Xe("≔","\\coloneqq");Xe("≕","\\eqqcolon");Xe("⩴","\\Coloneqq");Xe("\\ratio","\\vcentcolon");Xe("\\coloncolon","\\dblcolon");Xe("\\colonequals","\\coloneqq");Xe("\\coloncolonequals","\\Coloneqq");Xe("\\equalscolon","\\eqqcolon");Xe("\\equalscoloncolon","\\Eqqcolon");Xe("\\colonminus","\\coloneq");Xe("\\coloncolonminus","\\Coloneq");Xe("\\minuscolon","\\eqcolon");Xe("\\minuscoloncolon","\\Eqcolon");Xe("\\coloncolonapprox","\\Colonapprox");Xe("\\coloncolonsim","\\Colonsim");Xe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Xe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Xe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Xe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Xe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Xe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Xe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Xe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Xe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Xe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Xe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Xe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Xe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Xe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Xe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Xe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Xe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Xe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Xe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Xe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Xe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Xe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Xe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Xe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Xe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Xe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Xe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Xe("\\imath","\\html@mathml{\\@imath}{ı}");Xe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Xe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Xe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Xe("⟦","\\llbracket");Xe("⟧","\\rrbracket");Xe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Xe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Xe("⦃","\\lBrace");Xe("⦄","\\rBrace");Xe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Xe("⦵","\\minuso");Xe("\\darr","\\downarrow");Xe("\\dArr","\\Downarrow");Xe("\\Darr","\\Downarrow");Xe("\\lang","\\langle");Xe("\\rang","\\rangle");Xe("\\uarr","\\uparrow");Xe("\\uArr","\\Uparrow");Xe("\\Uarr","\\Uparrow");Xe("\\N","\\mathbb{N}");Xe("\\R","\\mathbb{R}");Xe("\\Z","\\mathbb{Z}");Xe("\\alef","\\aleph");Xe("\\alefsym","\\aleph");Xe("\\Alpha","\\mathrm{A}");Xe("\\Beta","\\mathrm{B}");Xe("\\bull","\\bullet");Xe("\\Chi","\\mathrm{X}");Xe("\\clubs","\\clubsuit");Xe("\\cnums","\\mathbb{C}");Xe("\\Complex","\\mathbb{C}");Xe("\\Dagger","\\ddagger");Xe("\\diamonds","\\diamondsuit");Xe("\\empty","\\emptyset");Xe("\\Epsilon","\\mathrm{E}");Xe("\\Eta","\\mathrm{H}");Xe("\\exist","\\exists");Xe("\\harr","\\leftrightarrow");Xe("\\hArr","\\Leftrightarrow");Xe("\\Harr","\\Leftrightarrow");Xe("\\hearts","\\heartsuit");Xe("\\image","\\Im");Xe("\\infin","\\infty");Xe("\\Iota","\\mathrm{I}");Xe("\\isin","\\in");Xe("\\Kappa","\\mathrm{K}");Xe("\\larr","\\leftarrow");Xe("\\lArr","\\Leftarrow");Xe("\\Larr","\\Leftarrow");Xe("\\lrarr","\\leftrightarrow");Xe("\\lrArr","\\Leftrightarrow");Xe("\\Lrarr","\\Leftrightarrow");Xe("\\Mu","\\mathrm{M}");Xe("\\natnums","\\mathbb{N}");Xe("\\Nu","\\mathrm{N}");Xe("\\Omicron","\\mathrm{O}");Xe("\\plusmn","\\pm");Xe("\\rarr","\\rightarrow");Xe("\\rArr","\\Rightarrow");Xe("\\Rarr","\\Rightarrow");Xe("\\real","\\Re");Xe("\\reals","\\mathbb{R}");Xe("\\Reals","\\mathbb{R}");Xe("\\Rho","\\mathrm{P}");Xe("\\sdot","\\cdot");Xe("\\sect","\\S");Xe("\\spades","\\spadesuit");Xe("\\sub","\\subset");Xe("\\sube","\\subseteq");Xe("\\supe","\\supseteq");Xe("\\Tau","\\mathrm{T}");Xe("\\thetasym","\\vartheta");Xe("\\weierp","\\wp");Xe("\\Zeta","\\mathrm{Z}");Xe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Xe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Xe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Xe("\\bra","\\mathinner{\\langle{#1}|}");Xe("\\ket","\\mathinner{|{#1}\\rangle}");Xe("\\braket","\\mathinner{\\langle{#1}\\rangle}");Xe("\\Bra","\\left\\langle#1\\right|");Xe("\\Ket","\\left|#1\\right\\rangle");var O1=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var p=j=>G=>{e&&(G.macros.set("|",c),i.length&&G.macros.set("\\|",d));var pe=j;if(!j&&i.length){var ke=G.future();ke.text==="|"&&(G.popToken(),pe=!0)}return{tokens:pe?i:n,numArgs:0}};t.macros.set("|",p(!1)),i.length&&t.macros.set("\\|",p(!0));var h=t.consumeArg().tokens,q=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:q.reverse(),numArgs:0}};Xe("\\bra@ket",O1(!1));Xe("\\bra@set",O1(!0));Xe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Xe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Xe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Xe("\\angln","{\\angl n}");Xe("\\blue","\\textcolor{##6495ed}{#1}");Xe("\\orange","\\textcolor{##ffa500}{#1}");Xe("\\pink","\\textcolor{##ff00af}{#1}");Xe("\\red","\\textcolor{##df0030}{#1}");Xe("\\green","\\textcolor{##28ae7b}{#1}");Xe("\\gray","\\textcolor{gray}{#1}");Xe("\\purple","\\textcolor{##9d38bd}{#1}");Xe("\\blueA","\\textcolor{##ccfaff}{#1}");Xe("\\blueB","\\textcolor{##80f6ff}{#1}");Xe("\\blueC","\\textcolor{##63d9ea}{#1}");Xe("\\blueD","\\textcolor{##11accd}{#1}");Xe("\\blueE","\\textcolor{##0c7f99}{#1}");Xe("\\tealA","\\textcolor{##94fff5}{#1}");Xe("\\tealB","\\textcolor{##26edd5}{#1}");Xe("\\tealC","\\textcolor{##01d1c1}{#1}");Xe("\\tealD","\\textcolor{##01a995}{#1}");Xe("\\tealE","\\textcolor{##208170}{#1}");Xe("\\greenA","\\textcolor{##b6ffb0}{#1}");Xe("\\greenB","\\textcolor{##8af281}{#1}");Xe("\\greenC","\\textcolor{##74cf70}{#1}");Xe("\\greenD","\\textcolor{##1fab54}{#1}");Xe("\\greenE","\\textcolor{##0d923f}{#1}");Xe("\\goldA","\\textcolor{##ffd0a9}{#1}");Xe("\\goldB","\\textcolor{##ffbb71}{#1}");Xe("\\goldC","\\textcolor{##ff9c39}{#1}");Xe("\\goldD","\\textcolor{##e07d10}{#1}");Xe("\\goldE","\\textcolor{##a75a05}{#1}");Xe("\\redA","\\textcolor{##fca9a9}{#1}");Xe("\\redB","\\textcolor{##ff8482}{#1}");Xe("\\redC","\\textcolor{##f9685d}{#1}");Xe("\\redD","\\textcolor{##e84d39}{#1}");Xe("\\redE","\\textcolor{##bc2612}{#1}");Xe("\\maroonA","\\textcolor{##ffbde0}{#1}");Xe("\\maroonB","\\textcolor{##ff92c6}{#1}");Xe("\\maroonC","\\textcolor{##ed5fa6}{#1}");Xe("\\maroonD","\\textcolor{##ca337c}{#1}");Xe("\\maroonE","\\textcolor{##9e034e}{#1}");Xe("\\purpleA","\\textcolor{##ddd7ff}{#1}");Xe("\\purpleB","\\textcolor{##c6b9fc}{#1}");Xe("\\purpleC","\\textcolor{##aa87ff}{#1}");Xe("\\purpleD","\\textcolor{##7854ab}{#1}");Xe("\\purpleE","\\textcolor{##543b78}{#1}");Xe("\\mintA","\\textcolor{##f5f9e8}{#1}");Xe("\\mintB","\\textcolor{##edf2df}{#1}");Xe("\\mintC","\\textcolor{##e0e5cc}{#1}");Xe("\\grayA","\\textcolor{##f6f7f7}{#1}");Xe("\\grayB","\\textcolor{##f0f1f2}{#1}");Xe("\\grayC","\\textcolor{##e3e5e6}{#1}");Xe("\\grayD","\\textcolor{##d6d8da}{#1}");Xe("\\grayE","\\textcolor{##babec2}{#1}");Xe("\\grayF","\\textcolor{##888d93}{#1}");Xe("\\grayG","\\textcolor{##626569}{#1}");Xe("\\grayH","\\textcolor{##3b3e40}{#1}");Xe("\\grayI","\\textcolor{##21242c}{#1}");Xe("\\kaBlue","\\textcolor{##314453}{#1}");Xe("\\kaGreen","\\textcolor{##71B307}{#1}");var eg={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class z3{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 E3(C3,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new r_(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 xn("EOF",n.loc)),this.pushTokens(i),new xn("",$n.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,c=0,d=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new Tt("Extra }",s)}else if(s.text==="EOF")throw new Tt("Unexpected end of input in a macro argument, expected '"+(t&&n?t[d]:"}")+"'",s);if(t&&n)if((c===0||c===1&&t[d]==="{")&&s.text===t[d]){if(++d,d===t.length){r.splice(-d,d);break}}else d=0}while(c!==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 Tt("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 Tt("Use of the macro doesn't match its definition",s)}}for(var c=[],d=0;d<t;d++)c.push(this.consumeArg(r&&r[d+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Tt("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 Tt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,c=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var d=s.length-1;d>=0;--d){var p=s[d];if(p.text==="#"){if(d===0)throw new Tt("Incomplete placeholder at end of macro body",p);if(p=s[--d],p.text==="#")s.splice(d+1,1);else if(/^[1-9]$/.test(p.text))s.splice(d,2,...c[+p.text-1]);else throw new Tt("Not a valid argument number",p)}}}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 xn(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 c=i.replace(/##/g,"");c.includes("#"+(s+1));)++s;for(var d=new r_(i,this.settings),p=[],h=d.lex();h.text!=="EOF";)p.push(h),h=d.lex();p.reverse();var q={tokens:p,numArgs:s};return q}return i}isDefined(t){return this.macros.has(t)||Ui.hasOwnProperty(t)||hr.math.hasOwnProperty(t)||hr.text.hasOwnProperty(t)||eg.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Ui.hasOwnProperty(t)&&!Ui[t].primitive}}var s_=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ao=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Nc={"́":{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"}},a_={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Fu{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 z3(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 Tt("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 xn("}")),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(Fu.endOfExpression.has(i.text)||r&&i.text===r||t&&Ui[i.text]&&Ui[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 Tt("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var c,d,p=t.slice(0,r),h=t.slice(r+1);p.length===1&&p[0].type==="ordgroup"?c=p[0]:c={type:"ordgroup",mode:this.mode,body:p},h.length===1&&h[0].type==="ordgroup"?d=h[0]:d={type:"ordgroup",mode:this.mode,body:h};var q;return n==="\\\\abovefrac"?q=this.callFunction(n,[c,t[r],d],[]):q=this.callFunction(n,[c,d],[]),[q]}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 Tt("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 c=s.text==="\\limits";r.limits=c,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new Tt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new Tt("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new Tt("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new Tt("Double superscript",s);var d={type:"textord",mode:this.mode,text:"\\prime"},p=[d];for(this.consume();this.fetch().text==="'";)p.push(d),this.consume();this.fetch().text==="^"&&p.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:p}}else if(ao[s.text]){var h=s_.test(s.text),q=[];for(q.push(new xn(ao[s.text])),this.consume();;){var j=this.fetch().text;if(!ao[j]||s_.test(j)!==h)break;q.unshift(new xn(ao[j])),this.consume()}var G=this.subparse(q);h?i={type:"ordgroup",mode:"math",body:G}:n={type:"ordgroup",mode:"math",body:G}}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=Ui[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new Tt("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new Tt("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new Tt("Can't use function '"+i+"' in math mode",n);var{args:c,optArgs:d}=this.parseArguments(i,s);return this.callFunction(i,c,d,n,t)}callFunction(t,r,n,i,s){var c={funcName:t,parser:this,token:i,breakOnTokenText:s},d=Ui[t];if(d&&d.handler)return d.handler(c,r,n);throw new Tt("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],c=0;c<n;c++){var d=r.argTypes&&r.argTypes[c],p=c<r.numOptionalArgs;("primitive"in r&&r.primitive&&d==null||r.type==="sqrt"&&c===1&&s[0]==null)&&(d="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",d,p);if(p)s.push(h);else if(h!=null)i.push(h);else throw new Tt("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 Tt("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new Tt("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Tt("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="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)i=c,s+=i.text,this.consume();if(s==="")throw new Tt("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 Tt("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 Tt("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!o1(s))throw new Tt("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 c={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),c}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var c=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,c),p=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:$n.range(n,p),body:d,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!eg.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Tt("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,c=t[n+1];if(!(!c||c.type!=="textord")){if(s==="-"&&c.text==="-"){var d=t[n+2];n+1<r&&d&&d.type==="textord"&&d.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:$n.range(i,d),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:$n.range(i,c),text:"--"}),r-=1)}(s==="'"||s==="`")&&c.text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:$n.range(i,c),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 Tt(`\\verb assertion failed --
|
|
378
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}a_.hasOwnProperty(r[0])&&!hr[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=a_[r[0]]+r.slice(1));var s=S3.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var c;if(hr[this.mode][r]){this.settings.strict&&this.mode==="math"&&Y$.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var d=hr[this.mode][r].group,p=$n.range(t),h;Yb(d)?h={type:"atom",mode:this.mode,family:d,loc:p,text:r}:h={type:d,mode:this.mode,loc:p,text:r},c=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(l1(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)),c={type:"textord",mode:"text",loc:$n.range(t),text:r};else return null;if(this.consume(),s)for(var q=0;q<s[0].length;q++){var j=s[0][q];if(!Nc[j])throw new Tt("Unknown accent ' "+j+"'",t);var G=Nc[j][this.mode]||Nc[j].text;if(!G)throw new Tt("Accent "+j+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:$n.range(t),label:G,isStretchy:!1,isShifty:!0,base:c}}return c}}Fu.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var U0=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Fu(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 Tt("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new xn("\\df@tag")])}]}return i},tg=function(t,r,n){r.textContent="";var i=H0(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."),tg=function(){throw new Tt("KaTeX doesn't work in quirks mode.")});var R3=function(t,r){var n=H0(t,r).toMarkup();return n},N3=function(t,r){var n=new C0(r);return U0(t,n)},rg=function(t,r,n){if(n.throwOnError||!(t instanceof Tt))throw t;var i=kt(["katex-error"],[new Sn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},H0=function(t,r){var n=new C0(r);try{var i=U0(t,n);return Fb(i,t,n)}catch(s){return rg(s,t,n)}},I3=function(t,r){var n=new C0(r);try{var i=U0(t,n);return Bb(i,t,n)}catch(s){return rg(s,t,n)}},q3="0.16.47",M3={Span:xa,Anchor:Au,SymbolNode:Sn,SvgNode:Si,PathNode:ts,LineNode:W$},D3={version:q3,render:tg,renderToString:R3,ParseError:Tt,SETTINGS_SCHEMA:U$,__parse:N3,__renderToDomTree:H0,__renderToHTMLTree:I3,__setFontMetrics:vb,__defineSymbol:he,__defineFunction:Dt,__defineMacro:Xe,__domTree:M3};function V0(e,t){return D3.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function L3({node:e}){return Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:V0(ya(e.value),!0)}})]})}function F3({chunk:e}){return Oe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:V0(e.value,!0)}})}const l_={path:null,href:null},B3=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function P3(e,t){return li([...an(e),...an(t)])}function o_(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 j3(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:li(an(r.slice(2))),href:null}:r.startsWith(":")?{path:P3(t,r),href:null}:r.startsWith("//")?{path:li(o_(r)),href:null}:B3(r)?{path:null,href:r}:r.startsWith("/")?{path:li([...an(t),...o_(r)]),href:null}:l_:l_}function U3({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=j3(e,t);return s?Oe.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?Oe.jsx("a",{className:"descend",href:i,onClick:c=>{c.preventDefault(),r(i)},children:n}):Oe.jsx(Oe.Fragment,{children:n})}function ng(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Ic(e){return ng(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 H3=/\$\$([\s\S]+?)\$\$|`([^`]+?)`|\[((?:[^\[\]]|\[[^\]]*\])*?)\]\(([^)]+?)\)/g;function ig(e,t,r){const n=String(e??""),i=[];let s="",c=0;const d=()=>{s&&(i.push(Oe.jsx("span",{dangerouslySetInnerHTML:{__html:s}},c++)),s="")};let p=0;for(const h of n.matchAll(H3))s+=Ic(n.slice(p,h.index)),h[1]!==void 0?s+=V0(h[1],!1):h[2]!==void 0?s+=`<code>${ng(h[2])}</code>`:(d(),i.push(Oe.jsx(U3,{target:h[4],documentPath:r,onNavigate:t,children:Oe.jsx("span",{dangerouslySetInnerHTML:{__html:Ic(h[3])}})},c++))),p=h.index+h[0].length;return s+=Ic(n.slice(p)),d(),i}function V3({node:e,onNavigate:t}){return Oe.jsxs("div",{className:"marklower",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx("p",{className:"chapter-prose",children:ig(ya(e.value),t,e.documentPath)})]})}function W3({chunk:e,onNavigate:t}){return Oe.jsx("p",{className:"chapter-prose",children:ig(e.value,t,e.documentPath)})}/**
|
|
379
|
+
* @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
380
|
+
*/(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,c,d,p,h=e.Opal={};h.global=e,h.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var q=Function.prototype.call,j=Function.prototype.bind,G=Object.hasOwn||q.bind(Object.prototype.hasOwnProperty),pe=Object.setPrototypeOf,ke=q.bind(Array.prototype.slice),$e=q.bind(Array.prototype.splice),W=4,Z=W;function ve(){return Z+=2,Z}h.uid=ve,h.id=function(b){return b.$$is_number?b*2+1:(b.$$id==null&&le(b,"$$id",ve()),b.$$id)};var ae=h.gvars={};h.exit=function(b){ae.DEBUG&&t.log("Exited with status "+b)},h.exceptions=[],h.pop_exception=function(){var b=h.exceptions.pop();b?(ae["!"]=b,ae["@"]=b.$backtrace()):ae["!"]=ae["@"]=r};function ye(b,R){if(b||(b=h.Exception||Error),p&&p.$raise)arguments.length>2?p.$raise(b.$new.apply(b,ke(arguments,1))):p.$raise(b,R);else throw b.$new?b.$new(R):new b(R)}function le(b,R,me){typeof b=="string"?b[R]=me:Object.defineProperty(b,R,{value:me,enumerable:!1,configurable:!0,writable:!0})}h.prop=le,h.defineProperty=h.prop,h.slice=ke;var we=h.truthy=function(b){return b!==!1&&r!==b&&b!==void 0&&b!==null&&(!(b instanceof Boolean)||b.valueOf()===!0)};h.falsy=function(b){return!we(b)},h.type_error=function(b,R,me,De){b=b.$$class,De&&me?(De=De.$$class,ye(h.TypeError,"can't convert "+b+" into "+R+" ("+b+"#"+me+" gives "+De+")")):ye(h.TypeError,"no implicit conversion of "+b+" into "+R)},h.coerce_to=function(b,R,me,De){var Qe;return me==="to_int"&&R===h.Integer&&b.$$is_number?b<0?Math.ceil(b):Math.floor(b):me==="to_str"&&R===h.String&&b.$$is_string||h.is_a(b,R)?b:b["$respond_to?"].$$pristine&&b.$method_missing.$$pristine?(Qe=b[wt(me)],(Qe==null||Qe.$$stub)&&h.type_error(b,R),Qe.apply(b,De)):(b["$respond_to?"](me)||h.type_error(b,R),De==null&&(De=[]),h.send(b,me,De))},h.respond_to=function(b,R,me){if(b==null||!b.$$class)return!1;me=!!me;var De=b[R];if(b["$respond_to?"].$$pristine){if(typeof De=="function"&&!De.$$stub)return!0;if(!b["$respond_to_missing?"].$$pristine)return h.send(b,b["$respond_to_missing?"],[R.substr(1),me])}else return h.send(b,b["$respond_to?"],[R.substr(1),me])},h.trace_class=!1,h.tracers_for_class=[];function ce(b){var R,me,De;for(R=0,me=h.tracers_for_class.length;R<me;R++)De=h.tracers_for_class[R],De.trace_object=b,De.block.$call(De)}function ze(b,R){if(b.$$autoload[R].loaded){if(b.$$autoload[R].loaded&&!b.$$autoload[R].required&&b.$$autoload[R].exception)throw b.$$autoload[R].exception}else{b.$$autoload[R].loaded=!0;try{h.Kernel.$require(b.$$autoload[R].path)}catch(me){throw b.$$autoload[R].exception=me,me}if(b.$$autoload[R].required=!0,b.$$const[R]!=null)return b.$$autoload[R].success=!0,b.$$const[R]}}function X(b,R){if(b){if(b.$$const[R]!=null)return b.$$const[R];if(b.$$autoload&&b.$$autoload[R])return ze(b,R)}}function Ae(b,R){var me,De,Qe;if(b.length!==0)for(me=0,De=b.length;me<De;me++){if(Qe=b[me].$$const[R],Qe!=null)return Qe;if(b[me].$$autoload&&b[me].$$autoload[R])return ze(b[me],R)}}function oe(b,R){var me,De,Qe;if(b!=null)for(Qe=it(b),me=0,De=Qe.length;me<De;me++){if(Qe[me].$$const&&G(Qe[me].$$const,R))return Qe[me].$$const[R];if(Qe[me].$$autoload&&Qe[me].$$autoload[R])return ze(Qe[me],R)}}function k(b,R){if(b==null||b.$$is_module)return oe(i,R)}function Se(b,R){return(b||i).$const_missing(R)}h.const_get_local=function(b,R,me){var De;if(b!=null)return b==="::"&&(b=i),!b.$$is_module&&!b.$$is_class&&ye(h.TypeError,b.toString()+" is not a class/module"),De=X(b,R),De!=null||me?De:Se(b,R)},h.const_get_qualified=function(b,R,me){var De,Qe,ct,a=h.const_cache_version;if(R==null)return De=X(i,b),De??h.const_get_qualified(i,b,me);if(b!=null)return b==="::"&&(b=i),!b.$$is_module&&!b.$$is_class&&ye(h.TypeError,b.toString()+" is not a class/module"),(Qe=b.$$const_cache)==null&&(le(b,"$$const_cache",Object.create(null)),Qe=b.$$const_cache),ct=Qe[R],ct==null||ct[0]!==a?((De=X(b,R))!=null||(De=oe(b,R))!=null,Qe[R]=[a,De]):De=ct[1],De!=null||me?De:Se(b,R)},h.const_cache_version=1,h.const_get_relative=function(b,R,me){var De=b[0],Qe,ct=h.const_cache_version,a,ne;return(a=b.$$const_cache)==null&&(le(b,"$$const_cache",Object.create(null)),a=b.$$const_cache),ne=a[R],ne==null||ne[0]!==ct?((Qe=X(De,R))!=null||(Qe=Ae(b,R))!=null||(Qe=oe(De,R))!=null||(Qe=k(De,R))!=null,a[R]=[ct,Qe]):Qe=ne[1],Qe!=null||me?Qe:Se(De,R)};function F(b,R,me){var De=!0;return(b==null||b==="::")&&(b=i),me.$$is_a_module&&((me.$$name==null||me.$$name===r)&&(me.$$name=R),me.$$base_module==null&&(me.$$base_module=b)),b.$$const=b.$$const||Object.create(null),(R in b.$$const||"$$autoload"in b&&R in b.$$autoload)&&(De=!1),b.$$const[R]=me,b.$$=b.$$const,h.const_cache_version++,b===i&&(h[R]=me),le(b,R,me),De&&b.$const_added&&!b.$const_added.$$pristine&&b.$const_added(R),me}h.const_set=F,h.constants=function(b,R){R==null&&(R=!0);var me,De=[b],Qe,ct,a={},ne;for(R&&(De=De.concat(it(b))),R&&b.$$is_module&&(De=De.concat([h.Object]).concat(it(h.Object))),Qe=0,ct=De.length;Qe<ct&&(me=De[Qe],!(b!==i&&me==i));Qe++){for(ne in me.$$const)a[ne]=!0;if(me.$$autoload)for(ne in me.$$autoload)a[ne]=!0}return Object.keys(a)},h.const_remove=function(b,R){if(h.const_cache_version++,b.$$const[R]!=null){var me=b.$$const[R];return delete b.$$const[R],me}if(b.$$autoload&&b.$$autoload[R])return delete b.$$autoload[R],r;ye(h.NameError,"constant "+b+"::"+b.$name()+" not defined")},h.const_get_relative_factory=function(b){return function(R,me){return h.$$(b,R,me)}},h.$$=h.const_get_relative,h.$$$=h.const_get_qualified,h.$r=h.const_get_relative_factory;function de(b,R,me){var De;if(R!=null&&R.$$bridge?De=function(){var ne=ke(arguments),ee=new(j.apply(R.$$constructor,[null].concat(ne)));return pe(ee,De.$$prototype),ee}:De=function(){},b&&b!==r&&le(De,"displayName","::"+b),le(De,"$$name",b),le(De,"$$constructor",De),le(De,"$$prototype",De.prototype),le(De,"$$const",{}),le(De,"$$is_class",!0),le(De,"$$is_a_module",!0),le(De,"$$super",R),le(De,"$$cvars",{}),le(De,"$$own_included_modules",[]),le(De,"$$own_prepended_modules",[]),le(De,"$$ancestors",[]),le(De,"$$ancestors_cache_version",null),le(De,"$$subclasses",[]),le(De.$$prototype,"$$class",De),h.Class&&pe(De,h.Class.prototype),R!=null){if(pe(De.$$prototype,R.$$prototype),me!==!0)if(typeof WeakRef<"u"){var Qe,ct,a=[];for(Qe=0;Qe<R.$$subclasses.length;Qe++)ct=R.$$subclasses[Qe],ct.deref()!==void 0&&a.push(ct);a.push(new WeakRef(De)),R.$$subclasses=a}else R.$$subclasses.push(De);R.$$meta&&h.build_class_singleton_class(De)}return De}h.allocate_class=de;function D(b,R){var me=X(b,R);if(me)return me.$$is_class||ye(h.TypeError,R+" is not a class"),me}function qe(b,R){b.$$super!==R&&ye(h.TypeError,"superclass mismatch for class "+b.$$name)}h.klass=function(b,R,me){var De;b==null||b=="::"?b=i:!b.$$is_class&&!b.$$is_module&&(b=b.$$class),R!=null&&(!R.hasOwnProperty||R.hasOwnProperty&&!R.hasOwnProperty("$$is_class"))&&(R.constructor&&R.constructor.name=="Function"?(De=R,R=i):ye(h.TypeError,"superclass must be a Class ("+(R.constructor&&(R.constructor.name||R.constructor.$$name)||typeof R)+" given)"));var Qe=D(b,me);return Qe!=null?R&&qe(Qe,R):(R==null&&(R=i),Qe=de(me,R),F(b,me,Qe),R.$inherited&&R.$inherited(Qe),De&&h.bridge(De,Qe)),h.trace_class&&ce(Qe),Qe};function te(b){var R=function(){},me=R;return b&&le(R,"displayName",b+".constructor"),le(me,"$$name",b),le(me,"$$prototype",R.prototype),le(me,"$$const",{}),le(me,"$$is_module",!0),le(me,"$$is_a_module",!0),le(me,"$$cvars",{}),le(me,"$$iclasses",[]),le(me,"$$own_included_modules",[]),le(me,"$$own_prepended_modules",[]),le(me,"$$ancestors",[me]),le(me,"$$ancestors_cache_version",null),pe(me,h.Module.prototype),me}h.allocate_module=te;function B(b,R){var me=X(b,R);return me==null&&b===i&&(me=oe(i,R)),me&&!me.$$is_module&&me!==i&&ye(h.TypeError,R+" is not a module"),me}h.module=function(b,R){var me;return b==null||b=="::"?b=i:!b.$$is_class&&!b.$$is_module&&(b=b.$$class),me=B(b,R),me==null&&(me=te(R),F(b,R,me)),h.trace_class&&ce(me),me},h.get_singleton_class=function(b){return b.$$is_number&&ye(h.TypeError,"can't define singleton"),b.$$meta?b.$$meta:b.hasOwnProperty("$$is_class")?h.build_class_singleton_class(b):b.hasOwnProperty("$$is_module")?h.build_module_singleton_class(b):h.build_object_singleton_class(b)};function w(b,R){b.hasOwnProperty("$$meta")?b.$$meta=R:le(b,"$$meta",R),b.$$frozen?b.$$meta.$freeze():pe(b,R.$$prototype)}h.build_class_singleton_class=function(b){if(b.$$meta)return b.$$meta;var R=b===n?c:h.get_singleton_class(b.$$super),me=de(null,R,!0);return le(me,"$$is_singleton",!0),le(me,"$$singleton_of",b),w(b,me),le(b,"$$class",h.Class),me},h.build_module_singleton_class=function(b){if(b.$$meta)return b.$$meta;var R=de(null,h.Module,!0);return le(R,"$$is_singleton",!0),le(R,"$$singleton_of",b),w(b,R),le(b,"$$class",h.Module),R},h.build_object_singleton_class=function(b){var R=b.$$class,me=de(r,R,!0);return le(me,"$$is_singleton",!0),le(me,"$$singleton_of",b),delete me.$$prototype.$$class,w(b,me),me},h.is_method=function(b){return b[0]==="$"&&b[1]!=="$"},h.instance_methods=function(b){for(var R=[],me=[],De=it(b),Qe=0,ct=De.length;Qe<ct;Qe++){var a=De[Qe],ne=a.$$prototype;ne.hasOwnProperty("$$dummy")&&(ne=ne.$$define_methods_on);for(var ee=Object.getOwnPropertyNames(ne),H=0,_e=ee.length;H<_e;H++){var v=ee[H];if(h.is_method(v)){var V=v.slice(1),je=ne[v];je.$$stub&&R.indexOf(V)===-1&&R.push(V),!je.$$stub&&me.indexOf(V)===-1&&R.indexOf(V)===-1&&me.push(V)}}}return me},h.own_instance_methods=function(b){var R=[],me=b.$$prototype;me.hasOwnProperty("$$dummy")&&(me=me.$$define_methods_on);for(var De=Object.getOwnPropertyNames(me),Qe=0,ct=De.length;Qe<ct;Qe++){var a=De[Qe];if(h.is_method(a)){var ne=me[a];if(!ne.$$stub){var ee=a.slice(1);R.push(ee)}}}return R},h.methods=function(b){return h.instance_methods(b.$$meta||b.$$class)},h.own_methods=function(b){return b.$$meta?h.own_instance_methods(b.$$meta):[]},h.receiver_methods=function(b){var R=h.get_singleton_class(b),me=h.own_instance_methods(R),De=h.own_instance_methods(R.$$super);return me.concat(De)},h.class_variables=function(b){var R=it(b),me,De=R.length,Qe={};for(me=De-1;me>=0;me--){var ct=R[me];for(var a in ct.$$cvars)Qe[a]=ct.$$cvars[a]}return Qe},h.class_variable_set=function(b,R,me){var De=it(b),Qe,ct=De.length;for(Qe=ct-2;Qe>=0;Qe--){var a=De[Qe];if(G(a.$$cvars,R))return a.$$cvars[R]=me,me}return b.$$cvars[R]=me,me},h.class_variable_get=function(b,R,me){if(G(b.$$cvars,R))return b.$$cvars[R];var De=it(b),Qe,ct=De.length;for(Qe=0;Qe<ct;Qe++){var a=De[Qe];if(G(a.$$cvars,R))return a.$$cvars[R]}return me||ye(h.NameError,"uninitialized class variable "+R+" in "+b.$name()),r};function $(b){return b.hasOwnProperty("$$iclass")&&b.hasOwnProperty("$$root")}function l(b){for(var R=[],me,De=Object.getPrototypeOf(b.$$prototype);De&&!De.hasOwnProperty("$$class");)me=J(De),me&&R.push(me),De=Object.getPrototypeOf(De);return R}function o(b){var R=[],me,De=Object.getPrototypeOf(b.$$prototype);if(b.$$prototype.hasOwnProperty("$$dummy"))for(;De&&De!==b.$$prototype.$$define_methods_on;)me=J(De),me&&R.push(me),De=Object.getPrototypeOf(De);return R}h.append_features=function(b,R){var me=it(b),De=[];me.indexOf(R)!==-1&&ye(h.ArgumentError,"cyclic include detected");for(var Qe=0,ct=me.length;Qe<ct;Qe++){var a=me[Qe],ne=_(a);le(ne,"$$included",!0),De.push(ne)}var ee=it(R),H=T(De),_e,v;if(ee.indexOf(b)===-1)_e=R.$$prototype,v=Object.getPrototypeOf(R.$$prototype);else{for(var V=R.$$prototype,je=Object.getPrototypeOf(V);je!=null&&!(je.$$module===b&&$(je));)V=je,je=Object.getPrototypeOf(je);if(je){for(var Y=Object.getPrototypeOf(je);Y.hasOwnProperty("$$iclass")&&!$(Y);)Y=Object.getPrototypeOf(Y);_e=V,v=Y}else _e=R.$$prototype,v=Object.getPrototypeOf(R.$$prototype)}pe(_e,H.first),pe(H.last,v),R.$$own_included_modules=l(R),h.const_cache_version++},h.prepend_features=function(b,R){var me=it(b),De=[];me.indexOf(R)!==-1&&ye(h.ArgumentError,"cyclic prepend detected");for(var Qe=0,ct=me.length;Qe<ct;Qe++){var a=me[Qe],ne=_(a);le(ne,"$$prepended",!0),De.push(ne)}var ee=T(De),H=R.$$prototype,_e=Object.getPrototypeOf(H),v,V,je;H.hasOwnProperty("$$dummy")?v=H.$$define_methods_on:(v=A(R),f(R),le(H,"$$dummy",!0),le(H,"$$define_methods_on",v),pe(H,v),pe(v,_e));var Y=it(R);if(Y.indexOf(b)===-1)for(V=H,je=Object.getPrototypeOf(H);je!=null&&!(je.hasOwnProperty("$$root")||je===v||!je.hasOwnProperty("$$iclass"));)je=Object.getPrototypeOf(je);else ye(h.RuntimeError,"Prepending a module multiple times is not supported");pe(V,ee.first),pe(ee.last,je),R.$$own_prepended_modules=o(R),h.const_cache_version++};function f(b){for(var R=b.$$prototype,me=Object.getOwnPropertyNames(R),De=0;De<me.length;De++){var Qe=me[De];h.is_method(Qe)&&delete R[Qe]}}function _(b){var R=A(b);return b.$$is_module&&b.$$iclasses.push(R),R}function A(b){var R={},me=b.$$prototype;me.hasOwnProperty("$$dummy")&&(me=me.$$define_methods_on);var De=Object.getOwnPropertyNames(me),Qe=De.length,ct;for(ct=0;ct<Qe;ct++){var a=De[ct];le(R,a,me[a])}return le(R,"$$iclass",!0),le(R,"$$module",b),R}function T(b){var R=b.length,me=b[0];if(le(me,"$$root",!0),R===1)return{first:me,last:me};for(var De=me,Qe=1;Qe<R;Qe++){var ct=b[Qe];pe(De,ct),De=ct}return{first:b[0],last:b[R-1]}}h.bridge=function(b,R){b.hasOwnProperty("$$bridge")&&ye(h.ArgumentError,"already bridged"),le(b,"$$bridge",R),pe(b.prototype,(R.$$super||h.Object).$$prototype),le(R,"$$prototype",b.prototype),le(R.$$prototype,"$$class",R),le(R,"$$constructor",b),le(R,"$$bridge",!0)};function J(b){if(!b.hasOwnProperty("$$dummy")){if(b.hasOwnProperty("$$iclass"))return b.$$module;if(b.hasOwnProperty("$$class"))return b.$$class}}function Fe(b){return b.$$own_prepended_modules.concat([b]).concat(b.$$own_included_modules)}function it(b){if(!b)return[];if(b.$$ancestors_cache_version===h.const_cache_version)return b.$$ancestors;var R=[],me,De,Qe;for(me=0,De=Fe(b),Qe=De.length;me<Qe;me++)R.push(De[me]);if(b.$$super)for(me=0,De=it(b.$$super),Qe=De.length;me<Qe;me++)R.push(De[me]);return b.$$ancestors_cache_version=h.const_cache_version,b.$$ancestors=R,R}h.ancestors=it,h.included_modules=function(b){for(var R=[],me=null,De=Object.getPrototypeOf(b.$$prototype);De&&Object.getPrototypeOf(De);De=Object.getPrototypeOf(De))me=J(De),me&&me.$$is_module&&De.$$iclass&&De.$$included&&R.push(me);return R},h.add_stubs=function(b){var R=h.BasicObject.$$prototype,me,De;b=b.split(",");for(var Qe=0,ct=b.length;Qe<ct;Qe++)me=wt(b[Qe]),De=R[me],(De==null||De.$$stub)&&h.add_stub_for(R,me)},h.add_stub_for=function(b,R){le(b,R,h.stub_for(R))},h.stub_for=function(b){function R(){this.$method_missing.$$p=R.$$p,R.$$p=null;for(var me=new Array(arguments.length),De=0,Qe=me.length;De<Qe;De++)me[De]=arguments[De];return this.$method_missing.apply(this,[b.slice(1)].concat(me))}return R.$$stub=!0,R},h.ac=function(b,R,me,De){var Qe="";me.$$is_a_module?Qe+=me.$$name+".":Qe+=me.$$class.$$name+"#",Qe+=De,ye(h.ArgumentError,"["+Qe+"] wrong number of arguments (given "+b+", expected "+R+")")},h.block_ac=function(b,R,me){var De="`block in "+me+"'";ye(h.ArgumentError,De+": wrong number of arguments (given "+b+", expected "+R+")")};function ht(b){return b.hasOwnProperty("$$meta")&&b.$$meta!==null?it(b.$$meta):it(b.$$class)}h.find_super=function(b,R,me,De,Qe){var ct=wt(R),a,ne;a=ht(b);for(var ee=a.indexOf(me.$$owner),H=ee+1;H<a.length;H++){var _e=a[H],v=_e.$$prototype;if(v.hasOwnProperty("$$dummy")&&(v=v.$$define_methods_on),v.hasOwnProperty(ct)){ne=v[ct];break}}return!De&&ne&&ne.$$stub&&b.$method_missing.$$pristine&&ye(h.NoMethodError,"super: no superclass method `"+R+"' for "+b,R),ne.$$stub&&!Qe?null:ne},h.find_block_super=function(b,R,me,De,Qe){var ct=R;return me||ye(h.RuntimeError,"super called outside of method"),Qe&&me.$$define_meth&&ye(h.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),me.$$def&&(ct=me.$$jsid),h.find_super(b,ct,me,De)},h.find_super_dispatcher=h.find_super,h.find_iter_super_dispatcher=h.find_block_super,h.yield1=function(b,R){typeof b!="function"&&ye(h.LocalJumpError,"no block given");var me=b.$$has_top_level_mlhs_arg,De=b.$$has_trailing_comma_in_args;return(b.length>1||(me||De)&&b.length===1)&&(R=h.to_ary(R)),(b.length>1||De&&b.length===1)&&R.$$is_array?b.apply(null,R):b(R)},h.yieldX=function(b,R){if(typeof b!="function"&&ye(h.LocalJumpError,"no block given"),b.length>1&&R.length===1&&R[0].$$is_array)return b.apply(null,R[0]);if(!R.$$is_array){for(var me=new Array(R.length),De=0,Qe=me.length;De<Qe;De++)me[De]=R[De];return b.apply(null,me)}return b.apply(null,R)},h.rescue=function(b,R){for(var me=0;me<R.length;me++){var De=R[me];if(De.$$is_array){var Qe=h.rescue(b,De);if(Qe)return Qe}else if(De===h.JS.Error||De["$==="](b))return De}return null},h.is_a=function(b,R){if(R!=null&&b.$$meta===R||b.$$class===R)return!0;if(b.$$is_number&&R.$$is_number_class)return R.$$is_integer_class?b%1===0:!0;var me=it(b.$$is_class?h.get_singleton_class(b):b.$$meta||b.$$class);return me.indexOf(R)!==-1},h.to_hash=function(b){if(b.$$is_hash)return b;if(b["$respond_to?"]("to_hash",!0)){var R=b.$to_hash();if(R.$$is_hash)return R;ye(h.TypeError,"Can't convert "+b.$$class+" to Hash ("+b.$$class+"#to_hash gives "+R.$$class+")")}else ye(h.TypeError,"no implicit conversion of "+b.$$class+" into Hash")},h.to_ary=function(b){if(b.$$is_array)return b;if(b["$respond_to?"]("to_ary",!0)){var R=b.$to_ary();if(R===r)return[b];if(R.$$is_array)return R;ye(h.TypeError,"Can't convert "+b.$$class+" to Array ("+b.$$class+"#to_ary gives "+R.$$class+")")}else return[b]},h.to_a=function(b){if(b.$$is_array)return b.slice();if(b["$respond_to?"]("to_a",!0)){var R=b.$to_a();if(R===r)return[b];if(R.$$is_array)return R;ye(h.TypeError,"Can't convert "+b.$$class+" to Array ("+b.$$class+"#to_a gives "+R.$$class+")")}else return[b]},h.extract_kwargs=function(b){var R=b[b.length-1];if(R!=null&&h.respond_to(R,"$to_hash",!0))return $e(b,b.length-1),R},h.kwrestargs=function(b,R){var me=[],De={},Qe,ct=b.$$smap;for(Qe in ct)R[Qe]||(me.push(Qe),De[Qe]=ct[Qe]);return h.hash2(me,De)};function mt(b,R){typeof R=="number"?b.$$arity=R:typeof R=="object"&&Object.assign(b,R)}var Rt={};function wt(b){return Rt[b]||(Rt[b]="$"+b)}h.jsid=wt,h.send=function(b,R,me,De,Qe){var ct;return typeof R=="function"?(ct=R,R=null):typeof R=="string"?ct=b[wt(R)]:ye(h.NameError,"Passed method should be a string or a function"),h.send2(b,ct,R,me,De,Qe)},h.send2=function(b,R,me,De,Qe,ct){return R==null&&me!=null&&b.$method_missing&&(R=b.$method_missing,De=[me].concat(De)),mt(Qe,ct),typeof Qe=="function"&&(R.$$p=Qe),R.apply(b,De)},h.refined_send=function(b,R,me,De,Qe,ct){var a,ne,ee,H,_e,v,V,je,Y,Ie;for(H=ht(R),a=0;a<H.length;a++)for(_e=h.id(H[a]),ne=0;ne<b.length;ne++)for(v=b[ne],ee=v.length-1;ee>=0;ee--)if(V=v[ee],!(typeof V.$$refine_modules>"u")&&(je=V.$$refine_modules,!(typeof je[_e]>"u")&&(Y=je[_e],typeof Y.$$prototype[wt(me)]<"u")))return Ie=Y.$$prototype[wt(me)],h.send2(R,Ie,me,De,Qe,ct);return h.send(R,me,De,Qe,ct)},h.lambda=function(b,R){return b.$$is_lambda=!0,mt(b,R),b},h.def=function(b,R,me,De){return mt(me,De),b===h.top?h.defn(h.Object,R,me):!b.$$eval&&b.$$is_a_module?h.defn(b,R,me):h.defs(b,R,me)},h.defn=function(b,R,me){qt(b),me.displayName=R,me.$$owner=b;var De=R.substr(1),Qe=b.$$prototype;if(Qe.hasOwnProperty("$$dummy")&&(Qe=Qe.$$define_methods_on),le(Qe,R,me),b.$$is_module){b.$$module_function&&h.defs(b,R,me);for(var ct=0,a=b.$$iclasses,ne=a.length;ct<ne;ct++){var ee=a[ct];le(ee,R,me)}}var H=b.$$singleton_of;return b.$method_added&&!b.$method_added.$$stub&&!H?b.$method_added(De):H&&H.$singleton_method_added&&!H.$singleton_method_added.$$stub&&H.$singleton_method_added(De),De},h.defs=function(b,R,me,De){return mt(me,De),(b.$$is_string||b.$$is_number)&&ye(h.TypeError,"can't define singleton"),h.defn(h.get_singleton_class(b),R,me)},h.rdef=function(b,R){G(b.$$prototype,R)||ye(h.NameError,"method '"+R.substr(1)+"' not defined in "+b.$name()),delete b.$$prototype[R],b.$$is_singleton?b.$$prototype.$singleton_method_removed&&!b.$$prototype.$singleton_method_removed.$$stub&&b.$$prototype.$singleton_method_removed(R.substr(1)):b.$method_removed&&!b.$method_removed.$$stub&&b.$method_removed(R.substr(1))},h.udef=function(b,R){(!b.$$prototype[R]||b.$$prototype[R].$$stub)&&ye(h.NameError,"method '"+R.substr(1)+"' not defined in "+b.$name()),h.add_stub_for(b.$$prototype,R),b.$$is_singleton?b.$$prototype.$singleton_method_undefined&&!b.$$prototype.$singleton_method_undefined.$$stub&&b.$$prototype.$singleton_method_undefined(R.substr(1)):b.$method_undefined&&!b.$method_undefined.$$stub&&b.$method_undefined(R.substr(1))};function Mt(b){return typeof b=="function"&&!b.$$stub}h.alias=function(b,R,me){var De=wt(R),Qe=wt(me),ct,a;if(typeof b.$$prototype>"u"&&(b=h.Object),ct=b.$$prototype[Qe],b.$$eval)return h.alias(h.get_singleton_class(b),R,me);if(!Mt(ct)){for(var ne=b.$$super;typeof ct!="function"&≠)ct=ne[Qe],ne=ne.$$super;!Mt(ct)&&b.$$is_module&&(ct=h.Object.$$prototype[Qe]),Mt(ct)||ye(h.NameError,"undefined method `"+me+"' for class `"+b.$name()+"'")}ct.$$alias_of&&(ct=ct.$$alias_of),a=function(){var ee=a.$$p,H,_e,v;for(H=new Array(arguments.length),_e=0,v=arguments.length;_e<v;_e++)H[_e]=arguments[_e];return a.$$p=null,h.send(this,ct,H,ee)};try{Object.defineProperty(a,"length",{value:ct.length})}catch{}return a.displayName=R,a.$$arity=ct.$$arity==null?ct.length:ct.$$arity,a.$$parameters=ct.$$parameters,a.$$source_location=ct.$$source_location,a.$$alias_of=ct,a.$$alias_name=R,h.defn(b,De,a),b},h.alias_gvar=function(b,R){return Object.defineProperty(ae,b,{configurable:!0,enumerable:!0,get:function(){return ae[R]},set:function(me){ae[R]=me}}),r},h.alias_native=function(b,R,me){var De=wt(R),Qe=b.$$prototype[me];return(typeof Qe!="function"||Qe.$$stub)&&ye(h.NameError,"undefined native method `"+me+"' for class `"+b.$name()+"'"),h.defn(b,De,Qe),b},h.hash_init=function(b){b.$$smap=Object.create(null),b.$$map=Object.create(null),b.$$keys=[]},h.hash_clone=function(b,R){R.$$none=b.$$none,R.$$proc=b.$$proc;for(var me=0,De=b.$$keys,Qe=b.$$smap,ct=De.length,a,ne;me<ct;me++)a=De[me],a.$$is_string?ne=Qe[a]:(ne=a.value,a=a.key),h.hash_put(R,a,ne)},h.hash_put=function(b,R,me){if(R.$$is_string){G(b.$$smap,R)||b.$$keys.push(R),b.$$smap[R]=me;return}var De,Qe,ct;if(De=b.$$by_identity?h.id(R):R.$hash(),!G(b.$$map,De)){Qe={key:R,key_hash:De,value:me},b.$$keys.push(Qe),b.$$map[De]=Qe;return}for(Qe=b.$$map[De];Qe;){if(R===Qe.key||R["$eql?"](Qe.key)){ct=void 0,Qe.value=me;break}ct=Qe,Qe=Qe.next}ct&&(Qe={key:R,key_hash:De,value:me},b.$$keys.push(Qe),ct.next=Qe)},h.hash_get=function(b,R){if(R.$$is_string)return G(b.$$smap,R)?b.$$smap[R]:void 0;var me,De;if(me=b.$$by_identity?h.id(R):R.$hash(),G(b.$$map,me))for(De=b.$$map[me];De;){if(R===De.key||R["$eql?"](De.key))return De.value;De=De.next}},h.hash_delete=function(b,R){var me,De=b.$$keys,Qe=De.length,ct,a;if(R.$$is_string){if(typeof R!="string"&&(R=R.valueOf()),!G(b.$$smap,R))return;for(me=0;me<Qe;me++)if(a=De[me],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===R){De.splice(me,1);break}return ct=b.$$smap[R],delete b.$$smap[R],ct}var ne=R.$hash();if(G(b.$$map,ne))for(var ee=b.$$map[ne],H;ee;){if(R===ee.key||R["$eql?"](ee.key)){for(ct=ee.value,me=0;me<Qe;me++)if(De[me]===ee){De.splice(me,1);break}return H&&ee.next?H.next=ee.next:H?delete H.next:ee.next?b.$$map[ne]=ee.next:delete b.$$map[ne],ct}H=ee,ee=ee.next}},h.hash_rehash=function(b){for(var R=0,me=b.$$keys.length,De,Qe,ct;R<me;R++)if(!b.$$keys[R].$$is_string&&(De=b.$$keys[R].key.$hash(),De!==b.$$keys[R].key_hash)){for(Qe=b.$$map[b.$$keys[R].key_hash],ct=void 0;Qe;){if(Qe===b.$$keys[R]){ct&&Qe.next?ct.next=Qe.next:ct?delete ct.next:Qe.next?b.$$map[b.$$keys[R].key_hash]=Qe.next:delete b.$$map[b.$$keys[R].key_hash];break}ct=Qe,Qe=Qe.next}if(b.$$keys[R].key_hash=De,!G(b.$$map,De)){b.$$map[De]=b.$$keys[R];continue}for(Qe=b.$$map[De],ct=void 0;Qe;){if(Qe===b.$$keys[R]){ct=void 0;break}ct=Qe,Qe=Qe.next}ct&&(ct.next=b.$$keys[R])}},h.hash=function(){var b=arguments.length,R,me,De,Qe,ct,a;if(b===1&&arguments[0].$$is_hash)return arguments[0];if(me=new h.Hash,h.hash_init(me),b===1)if(R=arguments[0],arguments[0].$$is_array){for(Qe=R.length,De=0;De<Qe;De++)R[De].length!==2&&ye(h.ArgumentError,"value not of length 2: "+R[De].$inspect()),ct=R[De][0],a=R[De][1],h.hash_put(me,ct,a);return me}else{R=arguments[0];for(ct in R)G(R,ct)&&(a=R[ct],h.hash_put(me,ct,a));return me}for(b%2!==0&&ye(h.ArgumentError,"odd number of arguments for Hash"),De=0;De<b;De+=2)ct=arguments[De],a=arguments[De+1],h.hash_put(me,ct,a);return me},h.hash2=function(b,R){var me=new h.Hash;return me.$$smap=R,me.$$map=Object.create(null),me.$$keys=b,me},h.range=function(b,R,me){var De=new h.Range;return De.begin=b,De.end=R,De.excl=me,De};var At=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];h.ivar=function(b){return At.indexOf(b)!==-1&&(b+="$"),b};function qt(b){b.$$frozen&&ye(h.FrozenError,"can't modify frozen "+b.$class()+": "+b,h.hash2(["receiver"],{receiver:b}))}h.deny_frozen_access=qt,h.freeze=function(b){return le(b,"$$frozen",!0),b.hasOwnProperty("$$id")||le(b,"$$id",ve()),b.hasOwnProperty("$$meta")?b.$$meta.$freeze():le(b,"$$meta",null),b.hasOwnProperty("$$comparable")||le(b,"$$comparable",null),Object.seal(b),b},h.freeze_props=function(b){var R,me,De;for(R in b)me=typeof R,!((me==="string"||me==="object")&&R[0]==="$")&&(De=Object.getOwnPropertyDescriptor(b,R),De&&De.enumerable&&De.writable&&function(){var Qe=b[R];Object.defineProperty(b,R,{get:function(){return Qe},set:function(ct){qt(b)},enumerable:!0})}())},h.escape_regexp=function(b){return b.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},h.global_regexp=function(b){return b.global?b:(b.$$g==null?b.$$g=new RegExp(b.source,(b.multiline?"gm":"g")+(b.ignoreCase?"i":"")):b.$$g.lastIndex=null,b.$$g)},h.global_multiline_regexp=function(b){var R,me;return b.global&&b.multiline?b:(me="gm"+(b.ignoreCase?"i":""),b.multiline?(b.$$g==null&&(b.$$g=new RegExp(b.source,me)),R=b.$$g):(b.$$gm==null&&(b.$$gm=new RegExp(b.source,me)),R=b.$$gm),R.lastIndex=null,R)},h.regexp=function(b,R){for(var me,De=typeof R<"u"&&R&&R.indexOf("i")>=0,Qe=0,ct=b.length;Qe<ct;Qe++)me=b[Qe],me instanceof RegExp&&(me.ignoreCase!==De&&h.Kernel.$warn("ignore case doesn't match for "+me.source.$inspect(),h.hash({uplevel:1})),me=me.source),me===""&&(me="(?:"+me+")"),b[Qe]=me;return R?new RegExp(b.join(""),R):new RegExp(b.join(""))},h.modules={},h.loaded_features=["corelib/runtime"],h.current_dir=".",h.require_table={"corelib/runtime":!0},h.normalize=function(b){var R,me,De=[],Qe="/";h.current_dir!=="."&&(b=h.current_dir.replace(/\/*$/,"/")+b),b=b.replace(/^\.\//,""),b=b.replace(/\.(rb|opal|js)$/,""),R=b.split(Qe);for(var ct=0,a=R.length;ct<a;ct++)me=R[ct],me!==""&&(me===".."?De.pop():De.push(me));return De.join(Qe)},h.loaded=function(b){var R,me,De;for(R=0,me=b.length;R<me;R++)De=h.normalize(b[R]),!h.require_table[De]&&(h.loaded_features.push(De),h.require_table[De]=!0)},h.load_normalized=function(b){h.loaded([b]);var R=h.modules[b];if(R){var me=R(h);if(typeof Promise<"u"&&me instanceof Promise)return me.then(Be(!0))}else{var De=h.config.missing_require_severity,Qe="cannot load such file -- "+b;De==="error"?ye(h.LoadError,Qe):De==="warning"&&t.warn("WARNING: LoadError: "+Qe)}return!0},h.load=function(b){return b=h.normalize(b),h.load_normalized(b)},h.require=function(b){return b=h.normalize(b),h.require_table[b]?!1:h.load_normalized(b)},h.encodings=Object.create(null),h.set_encoding=function(b,R,me){typeof me>"u"&&(me="encoding"),(typeof b=="string"||b.$$frozen===!0)&&ye(h.FrozenError,"can't modify frozen String");var De=h.find_encoding(R);return De===b[me]||(b[me]=De),b},h.find_encoding=function(b){var R=h.encodings,me=R[b]||R[b.toUpperCase()];return me||ye(h.ArgumentError,"unknown encoding name - "+b),me},h.enc=function(b,R){var me=new String(b);return me=h.set_encoding(me,R),me.internal_encoding=me.encoding,me},h.binary=function(b){var R=new String(b);return h.set_encoding(R,"binary","internal_encoding")},h.last_promise=null,h.promise_unhandled_exception=!1,h.queue=function(b){if(h.last_promise)return h.last_promise=h.last_promise.then(function(){if(!h.promise_unhandled_exception)return b(h)}).catch(function(me){h.respond_to(me,"$full_message")&&(me=me.$full_message()),t.error(me),h.promise_unhandled_exception=!0,h.exit(1)}),h.last_promise;var R=b(h);return typeof Promise=="function"&&typeof R=="object"&&R instanceof Promise&&(h.last_promise=R),R};function It(b,R){return typeof b=="number"&&typeof R=="number"}h.rb_plus=function(b,R){return It(b,R)?b+R:b["$+"](R)},h.rb_minus=function(b,R){return It(b,R)?b-R:b["$-"](R)},h.rb_times=function(b,R){return It(b,R)?b*R:b["$*"](R)},h.rb_divide=function(b,R){return It(b,R)?b/R:b["$/"](R)},h.rb_lt=function(b,R){return It(b,R)?b<R:b["$<"](R)},h.rb_gt=function(b,R){return It(b,R)?b>R:b["$>"](R)},h.rb_le=function(b,R){return It(b,R)?b<=R:b["$<="](R)},h.rb_ge=function(b,R){return It(b,R)?b>=R:b["$>="](R)};function rt(b,R){return typeof b=="number"&&typeof R=="number"||typeof b=="string"&&typeof R=="string"}function Re(b,R){return rt(b,R)?b===R:we(b["$=="](R))}h.eqeq=Re,h.eqeqeq=function(b,R){return rt(b,R)?b===R:we(b["$==="](R))},h.neqeq=function(b,R){return rt(b,R)?b!==R:we(b["$!="](R))},h.not=function(b){return b==null||b===!1||r===b?!0:b===!0||b["$!"].$$pristine?!1:we(b["$!"]())};function Be(b){return function(){return b}}h.return_val=Be,h.return_self=function(){return this},h.return_ivar=function(b){return function(){return this[b]==null?r:this[b]}},h.assign_ivar=function(b){return function(R){return qt(this),this[b]=R}},h.assign_ivar_val=function(b,R){return function(){return qt(this),this[b]=R}},h.ensure_kwargs=function(b){if(b==null)return h.hash2([],{});if(b.$$is_hash)return b;ye(h.ArgumentError,"expected kwargs")},h.get_kwarg=function(b,R){return G(b.$$smap,R)||ye(h.ArgumentError,"missing keyword: "+R),b.$$smap[R]},h.large_array_unpack=function(b){var R=b.split(","),me=R.length,De;for(De=0;De<me;De++)switch(R[De][0]){case void 0:R[De]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R[De]=+R[De]}return R},h.BasicObject=n=de("BasicObject",null),h.Object=i=de("Object",h.BasicObject),h.Module=s=de("Module",h.Object),h.Class=c=de("Class",h.Module),h.Opal=d=te("Opal"),h.Kernel=p=te("Kernel"),pe(h.BasicObject,h.Class.$$prototype),pe(h.Object,h.Class.$$prototype),pe(h.Module,h.Class.$$prototype),pe(h.Class,h.Class.$$prototype),n.$$const.BasicObject=n,F(i,"BasicObject",n),F(i,"Object",i),F(i,"Module",s),F(i,"Class",c),F(i,"Opal",d),F(i,"Kernel",p),n.$$class=c,i.$$class=c,s.$$class=c,c.$$class=c,d.$$class=s,p.$$class=s,le(i.$$prototype,"toString",function(){var b=this.$to_s();return b.$$is_string&&typeof b=="object"?b.valueOf():b}),le(i.$$prototype,"$require",h.require),h.top=new i,h.top.$to_s=h.top.$inspect=Be("main"),h.top.$define_method=Ge;function Ge(){var b=ke(arguments),R=Ge.$$p;return Ge.$$p=null,h.send(i,"define_method",b,R)}h.NilClass=de("NilClass",h.Object),F(i,"NilClass",h.NilClass),r=h.nil=new h.NilClass,r.$$id=W,r.call=r.apply=function(){ye(h.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),h.thrower=function(b){var R=new Error("unexpected "+b);return R.$thrower_type=b,R.$throw=function(me){throw me==null&&(me=r),R.$v=me,R},R},h.t_eval_return=h.thrower("return"),TypeError.$$super=Error,h.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,c=e.eqeqeq,d=e.Kernel,p=e.truthy,h=e.Opal,q=e.nil,j=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(G){var pe=n(G,"Opal");i(pe,"$bridge",function(W,Z){return e.bridge(W,Z)}),i(pe,"$coerce_to!",function(W,Z,ve,ae){var ye,le,we=q;return ye=s(arguments,3),le=ye,we=r(W,Z,ve,le),c(Z,we)||d.$raise(t(W,Z,ve,we)),we},-4),i(pe,"$coerce_to?",function(W,Z,ve,ae){var ye,le,we=q;return ye=s(arguments,3),le=ye,!p(W["$respond_to?"](ve))||(we=r(W,Z,ve,le),p(we["$nil?"]()))?q:(c(Z,we)||d.$raise(t(W,Z,ve,we)),we)},-4),i(pe,"$try_convert",function(W,Z,ve){return c(Z,W)?W:p(W["$respond_to?"](ve))?W.$__send__(ve):q}),i(pe,"$compare",function(W,Z){var ve=q;return ve=W["$<=>"](Z),p(ve===q)&&d.$raise(j("ArgumentError"),"comparison of "+W.$class()+" with "+Z.$class()+" failed"),ve}),i(pe,"$destructure",function(W){if(W.length==1)return W[0];if(W.$$is_array)return W;for(var Z=new Array(W.length),ve=0,ae=Z.length;ve<ae;ve++)Z[ve]=W[ve];return Z}),i(pe,"$respond_to?",function(W,Z,ve){return ve==null&&(ve=!1),W==null||!W.$$class?!1:W["$respond_to?"](Z,ve)},-3),i(pe,"$instance_variable_name!",function(W){return W=h["$coerce_to!"](W,j("String"),"to_str"),p(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(W))||d.$raise(j("NameError").$new("'"+W+"' is not allowed as an instance variable name",W)),W}),i(pe,"$class_variable_name!",function(W){return W=h["$coerce_to!"](W,j("String"),"to_str"),p(W.length<3||W.slice(0,2)!=="@@")&&d.$raise(j("NameError").$new("`"+W+"' is not allowed as a class variable name",W)),W}),i(pe,"$const_name?",function(W){return typeof W!="string"&&(W=h["$coerce_to!"](W,j("String"),"to_str")),W[0]===W[0].toUpperCase()}),i(pe,"$const_name!",function(W){var Z=this;return p(j("::","String","skip_raise")?"constant":q)&&(W=h["$coerce_to!"](W,j("String"),"to_str")),(!W||W[0]!=W[0].toUpperCase())&&Z.$raise(j("NameError"),"wrong constant name "+W),W}),i(pe,"$pristine",function(W,Z){var ve,ae;ve=s(arguments,1),ae=ve;for(var ye,le,we=ae.length-1;we>=0;we--)ye=ae[we],le=W.$$prototype[e.jsid(ye)],le&&!le.$$stub&&(le.$$pristine=!0);return q},-2);var ke=[];return i(pe,"$inspect",function(W){var Z=q,ve=!1;return function(){try{try{return W===null?"null":W===void 0?"undefined":typeof W.$$class>"u"?Object.prototype.toString.apply(W):typeof W.$inspect!="function"||W.$inspect.$$stub||ke.indexOf(W.$__id__())!==-1?"#<"+W.$$class+":0x"+W.$__id__().$to_s(16)+">":(ke.push(W.$__id__()),ve=!0,W.$inspect())}catch(ae){if(e.rescue(ae,[j("Exception")])){Z=ae;try{return"#<"+W.$$class+":0x"+W.$__id__().$to_s(16)+">"}finally{e.pop_exception()}}else throw ae}}finally{ve&&ke.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,c=e.assign_ivar,d=e.ivar,p=e.deny_frozen_access,h=e.freeze,q=e.prop,j=e.jsid,G=e.klass,pe=e.defs,ke=e.send,$e=e.def,W=e.eqeqeq,Z=e.Module,ve=e.Kernel,ae=e.rb_lt,ye=e.rb_gt,le=e.slice,we=e.to_a,ce=e.hash2,ze=e.Opal,X=e.return_val,Ae=e.eqeq,oe=e.lambda,k=e.range,Se=e.send2,F=e.find_super,de=e.alias,D=[],qe=e.nil,te=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(B,w,$){var l=G(B,w,"Module"),o=[l].concat($),f=e.$r(o);return pe(l,"$allocate",function(){var A=this,T=e.allocate_module(qe,function(){});return A!==e.Module&&Object.setPrototypeOf(T,A.$$prototype),T}),$e(l,"$initialize",function _(){var A=_.$$p||qe,T=this;return _.$$p=null,A!==qe?ke(T,"module_eval",[],A.$to_proc()):qe}),$e(l,"$===",function(A){var T=this;return t(A==null)?!1:e.is_a(A,T)}),$e(l,"$<",function(A){var T=this;W(Z,A)||ve.$raise(te("TypeError"),"compared with non class/module");var J=T,Fe,it,ht;if(J===A)return!1;for(it=0,Fe=e.ancestors(T),ht=Fe.length;it<ht;it++)if(Fe[it]===A)return!0;for(it=0,Fe=e.ancestors(A),ht=Fe.length;it<ht;it++)if(Fe[it]===T)return!1;return qe}),$e(l,"$<=",function(A){var T=this,J=qe;return t(J=T["$equal?"](A))?J:ae(T,A)}),$e(l,"$>",function(A){var T=this;return W(Z,A)||ve.$raise(te("TypeError"),"compared with non class/module"),ae(A,T)}),$e(l,"$>=",function(A){var T=this,J=qe;return t(J=T["$equal?"](A))?J:ye(T,A)}),$e(l,"$<=>",function(A){var T=this,J=qe;return T===A?0:!W(Z,A)||(J=ae(T,A),t(J["$nil?"]()))?qe:t(J)?-1:1}),$e(l,"$alias_method",function(A,T){var J=this;return p(J),A=r(A,te("String"),"to_str"),T=r(T,te("String"),"to_str"),e.alias(J,A,T),J}),$e(l,"$alias_native",function(A,T){var J=this;return T==null&&(T=A),p(J),e.alias_native(J,A,T),J},-2),$e(l,"$ancestors",function(){var A=this;return e.ancestors(A)}),$e(l,"$append_features",function(A){var T=this;return p(A),e.append_features(T,A),T}),$e(l,"$attr_accessor",function(A){var T,J,Fe=this;return T=le(arguments),J=T,ke(Fe,"attr_reader",we(J)),ke(Fe,"attr_writer",we(J))},-1),$e(l,"$attr",function(A){var T,J,Fe=this;return T=le(arguments),J=T,J.length==2&&(J[1]===!0||J[1]===!1)?(Fe.$warn("optional boolean argument is obsoleted",ce(["uplevel"],{uplevel:1})),J[1]?Fe.$attr_accessor(J[0]):Fe.$attr_reader(J[0]),qe):ke(Fe,"attr_reader",we(J))},-1),$e(l,"$attr_reader",function(A){var T,J,Fe=this;T=le(arguments),J=T,p(Fe);for(var it=Fe.$$prototype,ht=J.length-1;ht>=0;ht--){var mt=J[ht],Rt=j(mt),wt=d(mt),Mt=s(wt);e.prop(it,wt,qe),Mt.$$parameters=[],Mt.$$arity=0,e.defn(Fe,Rt,Mt)}return qe},-1),$e(l,"$attr_writer",function(A){var T,J,Fe=this;T=le(arguments),J=T,p(Fe);for(var it=Fe.$$prototype,ht=J.length-1;ht>=0;ht--){var mt=J[ht],Rt=j(mt+"="),wt=d(mt),Mt=c(wt);Mt.$$parameters=[["req"]],Mt.$$arity=1,e.prop(it,wt,qe),e.defn(Fe,Rt,Mt)}return qe},-1),$e(l,"$autoload",function(A,T){var J=this;return p(J),f("Opal")["$const_name?"](A)||ve.$raise(te("NameError"),"autoload must be constant name: "+A),T==""&&ve.$raise(te("ArgumentError"),"empty file name"),J.$$const.hasOwnProperty(A)||(J.$$autoload||(J.$$autoload={}),e.const_cache_version++,J.$$autoload[A]={path:T,loaded:!1,required:!1,success:!1,exception:!1},J.$const_added&&!J.$const_added.$$pristine&&J.$const_added(A)),qe}),$e(l,"$autoload?",function(A){var T=this;if(T.$$autoload&&T.$$autoload[A]&&!T.$$autoload[A].required&&!T.$$autoload[A].success)return T.$$autoload[A].path;for(var J=T.$ancestors(),Fe=0,it=J.length;Fe<it;Fe++)if(J[Fe].$$autoload&&J[Fe].$$autoload[A]&&!J[Fe].$$autoload[A].required&&!J[Fe].$$autoload[A].success)return J[Fe].$$autoload[A].path;return qe}),$e(l,"$class_variables",function(){var A=this;return Object.keys(e.class_variables(A))}),$e(l,"$class_variable_get",function(A){var T=this;return A=ze["$class_variable_name!"](A),e.class_variable_get(T,A,!1)}),$e(l,"$class_variable_set",function(A,T){var J=this;return p(J),A=ze["$class_variable_name!"](A),e.class_variable_set(J,A,T)}),$e(l,"$class_variable_defined?",function(A){var T=this;return A=ze["$class_variable_name!"](A),e.class_variables(T).hasOwnProperty(A)}),$e(l,"$const_added",X(qe)),ze.$pristine(l,"const_added"),$e(l,"$remove_class_variable",function(A){var T=this;if(p(T),A=ze["$class_variable_name!"](A),e.hasOwnProperty.call(T.$$cvars,A)){var J=T.$$cvars[A];return delete T.$$cvars[A],J}else ve.$raise(te("NameError"),"cannot remove "+A+" for "+T)}),$e(l,"$constants",function(A){var T=this;return A==null&&(A=!0),e.constants(T,A)},-1),pe(l,"$constants",function(A){var T=this;if(A==null){var J=(T.$$nesting||[]).concat(i),Fe,it={},ht,mt;for(ht=0,mt=J.length;ht<mt;ht++)for(Fe in J[ht].$$const)it[Fe]=!0;return Object.keys(it)}else return e.constants(T,A)},-1),pe(l,"$nesting",function(){var A=this;return A.$$nesting||[]}),$e(l,"$const_defined?",function(A,T){var J=this;T==null&&(T=!0),A=f("Opal")["$const_name!"](A),t(A["$=~"](te(ze,"CONST_NAME_REGEXP")))||ve.$raise(te("NameError").$new("wrong constant name "+A,A));var Fe,it=[J],ht,mt;for(T&&(it=it.concat(e.ancestors(J)),J.$$is_module&&(it=it.concat([i]).concat(e.ancestors(i)))),ht=0,mt=it.length;ht<mt;ht++)if(Fe=it[ht],Fe.$$const[A]!=null||Fe.$$autoload&&Fe.$$autoload[A]&&!Fe.$$autoload[A].required&&!Fe.$$autoload[A].success)return!0;return!1},-2),$e(l,"$const_get",function(A,T){var J=this;return T==null&&(T=!0),A=f("Opal")["$const_name!"](A),A.indexOf("::")===0&&A!=="::"&&(A=A.slice(2)),t(A.indexOf("::")!=-1&&A!="::")?ke(A.$split("::"),"inject",[J],function(it,ht){return it==null&&(it=qe),ht==null&&(ht=qe),it.$const_get(ht)}):(t(A["$=~"](te(ze,"CONST_NAME_REGEXP")))||ve.$raise(te("NameError").$new("wrong constant name "+A,A)),T?e.$$([J],A):e.const_get_local(J,A))},-2),$e(l,"$const_missing",function(A){var T=this,J=qe;return J=Ae(T,i)?A:""+T+"::"+A,ve.$raise(te("NameError").$new("uninitialized constant "+J,A))}),$e(l,"$const_set",function(A,T){var J=this;return p(J),A=ze["$const_name!"](A),(t(A["$!~"](te(ze,"CONST_NAME_REGEXP")))||t(A["$start_with?"]("::")))&&ve.$raise(te("NameError").$new("wrong constant name "+A,A)),n(J,A,T),T}),$e(l,"$public_constant",X(qe)),$e(l,"$define_method",function _(A,T){var J=_.$$p||qe,Fe=this,it=qe,ht=qe;return _.$$p=null,p(Fe),T===void 0&&J===qe&&ve.$raise(te("ArgumentError"),"tried to create a Proc object without a block"),J=t(it=J)?it:W(te("Proc"),ht=T)?T:W(te("Method"),ht)?T.$to_proc().$$unbound:W(te("UnboundMethod"),ht)?oe(function mt(Rt){var wt,Mt,At=mt.$$s==null?this:mt.$$s,qt=qe;return wt=le(arguments),Mt=wt,qt=T.$bind(At),ke(qt,"call",we(Mt))},{$$arity:-1,$$s:Fe}):ve.$raise(te("TypeError"),"wrong argument type "+J.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(J.$$proxy_target=J,J=new Proxy(J,{apply:function(mt,Rt,wt){var Mt=mt.$$jsid;mt.$$jsid=A;try{return mt.apply(Rt,wt)}catch(At){if(At===mt.$$brk||At===mt.$$ret)return At.$v;throw At}finally{mt.$$jsid=Mt}}})),J.$$jsid=A,J.$$s=null,J.$$def=J,J.$$define_meth=!0,e.defn(Fe,j(A),J)},-2),$e(l,"$freeze",function(){var A=this;return t(A["$frozen?"]())?A:(A.hasOwnProperty("$$base_module")||q(A,"$$base_module",null),h(A))}),$e(l,"$remove_method",function(A){var T,J,Fe=this;T=le(arguments),J=T;for(var it=0;it<J.length;it++){var ht=J[it];typeof ht=="string"||ht.$$is_string||Fe.$raise(te("TypeError"),""+Fe.$name()+" is not a symbol nor a string"),p(Fe),e.rdef(Fe,"$"+ht)}return Fe},-1),$e(l,"$singleton_class?",function(){var A=this;return!!A.$$is_singleton}),$e(l,"$include",function(A){var T,J,Fe=this;T=le(arguments),J=T;for(var it=J.length-1;it>=0;it--){var ht=J[it];ht.$$is_module||ve.$raise(te("TypeError"),"wrong argument type "+ht.$class()+" (expected Module)"),ht.$append_features(Fe),ht.$included(Fe)}return Fe},-1),$e(l,"$included_modules",function(){var A=this;return e.included_modules(A)}),$e(l,"$include?",function(A){var T=this;A.$$is_module||ve.$raise(te("TypeError"),"wrong argument type "+A.$class()+" (expected Module)");var J,Fe,it,ht=e.ancestors(T);for(J=0,Fe=ht.length;J<Fe;J++)if(it=ht[J],it===A&&it!==T)return!0;return!1}),$e(l,"$instance_method",function(A){var T=this,J=T.$$prototype[j(A)];return(!J||J.$$stub)&&ve.$raise(te("NameError").$new("undefined method `"+A+"' for class `"+T.$name()+"'",A)),te("UnboundMethod").$new(T,J.$$owner||T,J,A)}),$e(l,"$instance_methods",function(A){var T=this;return A==null&&(A=!0),t(A)?e.instance_methods(T):e.own_instance_methods(T)},-1),$e(l,"$included",X(qe)),$e(l,"$extended",X(qe)),$e(l,"$extend_object",function(A){return p(A),qe}),$e(l,"$method_added",function(A){return le(arguments),qe},-1),$e(l,"$method_removed",function(A){return le(arguments),qe},-1),$e(l,"$method_undefined",function(A){return le(arguments),qe},-1),$e(l,"$module_eval",function _(A){var T=_.$$p||qe,J,Fe,it,ht=this,mt=qe,Rt=qe,wt=qe,Mt=qe,At=qe,qt=qe;_.$$p=null,J=le(arguments),Fe=J,t(T["$nil?"]())&&t(!!e.compile)?(t(k(1,3,!1)["$cover?"](Fe.$size()))||ve.$raise(te("ArgumentError"),"wrong number of arguments (0 for 1..3)"),it=[].concat(we(Fe)),mt=it[0]==null?qe:it[0],Rt=it[1]==null?qe:it[1],it[2]==null||it[2],wt=ce(["file","eval"],{file:t(Mt=Rt)?Mt:"(eval)",eval:!0}),At=e.hash({arity_check:!1}).$merge(wt),qt=ze.$compile(mt,At),T=ke(ve,"proc",[],function Re(){var Be=Re.$$s==null?this:Re.$$s;return new Function("Opal,self","return "+qt)(e,Be)},{$$s:ht})):t(Fe["$any?"]())&&ve.$raise(te("ArgumentError"),"wrong number of arguments ("+Fe.$size()+` for 0)
|
|
381
|
+
|
|
382
|
+
NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
|
|
383
|
+
`);var It=T.$$s,rt;return T.$$s=null,rt=T.apply(ht,[ht]),T.$$s=It,rt},-1),$e(l,"$module_exec",function _(A){var T=_.$$p||qe,J,Fe,it=this;_.$$p=null,J=le(arguments),Fe=J,T===qe&&ve.$raise(te("LocalJumpError"),"no block given");var ht=T.$$s,mt;return T.$$s=null,mt=T.apply(it,Fe),T.$$s=ht,mt},-1),$e(l,"$method_defined?",function(A){var T=this,J=T.$$prototype[j(A)];return!!J&&!J.$$stub}),$e(l,"$module_function",function(A){var T,J,Fe=this;if(T=le(arguments),J=T,p(Fe),J.length===0)return Fe.$$module_function=!0,qe;for(var it=0,ht=J.length;it<ht;it++){var mt=J[it],Rt=j(mt),wt=Fe.$$prototype[Rt];e.defs(Fe,Rt,wt)}return J.length===1?J[0]:J},-1),$e(l,"$name",function(){var A=this;if(A.$$full_name)return A.$$full_name;for(var T=[],J=A;J;){if(J.$$name===qe||J.$$name==null)return qe;if(T.unshift(J.$$name),J=J.$$base_module,J===i)break}return T.length===0?qe:A.$$full_name=T.join("::")}),$e(l,"$prepend",function(A){var T,J,Fe=this;T=le(arguments),J=T,J.length===0&&ve.$raise(te("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var it=J.length-1;it>=0;it--){var ht=J[it];ht.$$is_module||ve.$raise(te("TypeError"),"wrong argument type "+ht.$class()+" (expected Module)"),ht.$prepend_features(Fe),ht.$prepended(Fe)}return Fe},-1),$e(l,"$prepend_features",function(A){var T=this;return p(A),T.$$is_module||ve.$raise(te("TypeError"),"wrong argument type "+T.$class()+" (expected Module)"),e.prepend_features(T,A),T}),$e(l,"$prepended",X(qe)),$e(l,"$remove_const",function(A){var T=this;return p(T),e.const_remove(T,A)}),$e(l,"$to_s",function(){var A=this,T=qe;return t(T=e.Module.$name.call(A))?T:"#<"+(A.$$is_module?"Module":"Class")+":0x"+A.$__id__().$to_s(16)+">"}),$e(l,"$undef_method",function(A){var T,J,Fe=this;T=le(arguments),J=T;for(var it=0;it<J.length;it++){var ht=J[it];typeof ht=="string"||ht.$$is_string||Fe.$raise(te("TypeError"),""+Fe.$name()+" is not a symbol nor a string"),p(Fe),e.udef(Fe,"$"+J[it])}return Fe},-1),$e(l,"$instance_variables",function(){var A=this,T=qe;T=(e.Module.$$nesting=o,A.$constants());var J=[];for(var Fe in A)A.hasOwnProperty(Fe)&&Fe.charAt(0)!=="$"&&Fe!=="constructor"&&!T["$include?"](Fe)&&J.push("@"+Fe);return J}),$e(l,"$dup",function _(){var A=_.$$p||qe,T=this,J=qe;return _.$$p=null,J=Se(T,F(T,"dup",_,!1,!0),"dup",[],A),J.$copy_class_variables(T),J.$copy_constants(T),J}),$e(l,"$copy_class_variables",function(A){var T=this;for(var J in A.$$cvars)T.$$cvars[J]=A.$$cvars[J]}),$e(l,"$copy_constants",function(A){var T=this,J,Fe=A.$$const;for(J in Fe)n(T,J,Fe[J])}),$e(l,"$refine",function _(A){var T=_.$$p||qe,J,Fe=this,it=qe,ht=qe,mt=qe;return _.$$p=null,J=[Fe,qe,qe],it=J[0],ht=J[1],mt=J[2],mt=e.id(A),typeof Fe.$$refine_modules>"u"&&(Fe.$$refine_modules=Object.create(null)),typeof Fe.$$refine_modules[mt]>"u"?ht=Fe.$$refine_modules[mt]=te("Refinement").$new():ht=Fe.$$refine_modules[mt],ht.refinement_module=it,ht.refined_class=A,ke(ht,"class_exec",[],T.$to_proc()),ht}),$e(l,"$refinements",function(){var A=this,T=A.$$refine_modules,J=ce([],{});if(typeof T>"u")return J;for(var Fe in T)J["$[]="](T[Fe].refined_class,T[Fe]);return J}),$e(l,"$using",function(A){return ve.$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,D),function(B,w){var $=G(B,w,"Refinement"),l=$.$$prototype;return l.refinement_module=l.refined_class=qe,$.$attr_reader("refined_class"),$e($,"$inspect",function o(){var f=o.$$p||qe,_=this;return o.$$p=null,t(_.refinement_module)?"#<refinement:"+_.refined_class.$inspect()+"@"+_.refinement_module.$inspect()+">":Se(_,F(_,"inspect",o,!1,!0),"inspect",[],f)})}("::",Z)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,c=e.return_val,d=e.slice,p=e.send2,h=e.find_super,q=e.Kernel,j=e.alias,G=e.top,pe=[],ke=e.nil,$e=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),G.$require("corelib/module"),function(W,Z,ve){var ae=t(W,Z,"Class"),ye=[ae].concat(ve),le=e.$r(ye);return n(ae,"$new",function we(ce){var ze=we.$$p||ke;if(we.$$p=null,ce==null&&(ce=le("Object")),!ce.$$is_class)throw e.TypeError.$new("superclass must be a Class");var X=e.allocate_class(ke,ce);return ce.$inherited(X),ze!==ke&&r(X,"class_eval",[],ze.$to_proc()),X},-1),i(ae,"$allocate",function(){var ce=this,ze=new ce.$$constructor;return ze.$$id=e.uid(),ze}),i(ae,"$descendants",function(){var ce=this;return s(ce.$subclasses(),r(ce.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(ae,"$inherited",c(ke)),i(ae,"$initialize_dup",function(ce){var ze=this;ze.$initialize_copy(ce),ze.$$name=null,ze.$$full_name=null}),i(ae,"$new",function we(ce){var ze=we.$$p||ke,X,Ae,oe=this;we.$$p=null,X=d(arguments),Ae=X;var k=oe.$allocate();return e.send(k,k.$initialize,Ae,ze),k},-1),i(ae,"$subclasses",function(){var ce=this;if(typeof WeakRef<"u"){var ze,X,Ae=[];for(ze=0;ze<ce.$$subclasses.length;ze++)X=ce.$$subclasses[ze].deref(),X!==void 0&&Ae.push(X);return Ae}else return ce.$$subclasses}),i(ae,"$superclass",function(){var ce=this;return ce.$$super||ke}),i(ae,"$to_s",function we(){we.$$p;var ce=this;we.$$p=null;var ze=ce.$$singleton_of;return ze&&ze.$$is_a_module?"#<Class:"+ze.$name()+">":ze?"#<Class:#<"+ze.$$class.$name()+":0x"+e.id(ze).$to_s(16)+">>":p(ce,h(ce,"to_s",we,!1,!0),"to_s",[],null)}),i(ae,"$attached_object",function(){var ce=this;if(ce.$$singleton_of!=null)return ce.$$singleton_of;q.$raise($e("TypeError"),"`"+ce+"' is not a singleton class")}),j(ae,"inspect","to_s")}("::",null,pe)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,c=e.Opal,d=e.truthy,p=e.range,h=e.Kernel,q=e.to_a,j=e.hash2,G=e.send,pe=e.eqeq,ke=e.rb_ge,$e=e.nil,W=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(Z,ve){var ae=t(Z,ve,"BasicObject");return n(ae,"$initialize",function(le){return r(arguments),$e},-1),n(ae,"$==",function(le){var we=this;return we===le}),n(ae,"$eql?",function(le){var we=this;return we["$=="](le)}),i(ae,"equal?","=="),n(ae,"$__id__",function(){var le=this;return le.$$id!=null||e.prop(le,"$$id",e.uid()),le.$$id}),n(ae,"$__send__",function ye(le,we){var ce=ye.$$p||$e,ze,X,Ae=this;ye.$$p=null,ze=r(arguments,1),X=ze,le.$$is_string||Ae.$raise(W("TypeError"),""+Ae.$inspect()+" is not a symbol nor a string");var oe=Ae[e.jsid(le)];return oe?(ce!==$e&&(oe.$$p=ce),oe.apply(Ae,X)):(ce!==$e&&(Ae.$method_missing.$$p=ce),Ae.$method_missing.apply(Ae,[le].concat(X)))},-2),n(ae,"$!",s(!1)),c.$pristine("!"),n(ae,"$!=",function(le){var we=this;return we["$=="](le)["$!"]()}),n(ae,"$instance_eval",function ye(le){var we=ye.$$p||$e,ce,ze,X,Ae=this,oe=$e,k=$e,Se=$e,F=$e,de=$e,D=$e;if(ye.$$p=null,ce=r(arguments),ze=ce,d(we["$nil?"]())&&d(!!e.compile))d(p(1,3,!1)["$cover?"](ze.$size()))||h.$raise(W("ArgumentError"),"wrong number of arguments (0 for 1..3)"),X=[].concat(q(ze)),oe=X[0]==null?$e:X[0],k=X[1]==null?$e:X[1],X[2]==null||X[2],Se=j(["file","eval"],{file:d(F=k)?F:"(eval)",eval:!0}),de=e.hash({arity_check:!1}).$merge(Se),D=c.$compile(oe,de),we=G(h,"proc",[],function B(){var w=B.$$s==null?this:B.$$s;return new Function("Opal,self","return "+D)(e,w)},{$$s:Ae});else{if(d(we["$nil?"]())&&d(ke(ze.$length(),1))&&pe(ze.$first()["$[]"](0),"@"))return Ae.$instance_variable_get(ze.$first());d(ze["$any?"]())&&h.$raise(W("ArgumentError"),"wrong number of arguments ("+ze.$size()+" for 0)")}var qe=we.$$s,te;if(we.$$s=null,Ae.$$is_a_module){Ae.$$eval=!0;try{te=we.call(Ae,Ae)}finally{Ae.$$eval=!1}}else te=we.call(Ae,Ae);return we.$$s=qe,te},-1),n(ae,"$instance_exec",function ye(le){var we=ye.$$p||$e,ce,ze,X=this;ye.$$p=null,ce=r(arguments),ze=ce,d(we)||h.$raise(W("ArgumentError"),"no block given");var Ae=we.$$s,oe;if(we.$$s=null,X.$$is_a_module){X.$$eval=!0;try{oe=we.apply(X,ze)}finally{X.$$eval=!1}}else oe=we.apply(X,ze);return we.$$s=Ae,oe},-1),n(ae,"$singleton_method_added",function(le){return r(arguments),$e},-1),n(ae,"$singleton_method_removed",function(le){return r(arguments),$e},-1),n(ae,"$singleton_method_undefined",function(le){return r(arguments),$e},-1),n(ae,"$method_missing",function ye(le,we){ye.$$p;var ce,ze,X=this,Ae=$e;return ye.$$p=null,ce=r(arguments,1),ze=ce,Ae=c.$inspect(X),h.$raise(W("NoMethodError").$new("undefined method `"+le+"' for "+Ae,le,ze),$e,h.$caller(1))},-2),c.$pristine(ae,"method_missing"),n(ae,"$respond_to_missing?",function(le,we){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,c=e.freeze,d=e.freeze_props,p=e.jsid,h=e.module,q=e.return_val,j=e.def,G=e.Kernel,pe=e.gvars,ke=e.slice,$e=e.send,W=e.to_a,Z=e.ensure_kwargs,ve=e.eqeq,ae=e.hash2,ye=e.rb_plus,le=e.eqeqeq,we=e.return_self,ce=e.rb_le,ze=e.extract_kwargs,X=e.rb_lt,Ae=e.Object,oe=e.alias,k=e.klass,Se=[],F=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(D,qe){var te=h(D,"Kernel"),B=[te].concat(qe),w=e.$r(B);j(te,"$=~",q(!1)),j(te,"$!~",function(o){var f=this;return f["$=~"](o)["$!"]()}),j(te,"$===",function(o){var f=this,_=F;return t(_=f.$object_id()["$=="](o.$object_id()))?_:f["$=="](o)}),j(te,"$<=>",function(o){var f=this;f.$$comparable=!0;var _=f["$=="](o);return _&&_!==F?0:F}),j(te,"$method",function(o){var f=this,_=f[p(o)];return(!_||_.$$stub)&&G.$raise(de("NameError").$new("undefined method `"+o+"' for class `"+f.$class()+"'",o)),de("Method").$new(f,_.$$owner||f.$class(),_,o)}),j(te,"$methods",function(o){var f=this;return o==null&&(o=!0),t(o)?e.methods(f):e.own_methods(f)},-1),j(te,"$public_methods",function(o){var f=this;return o==null&&(o=!0),t(o)?e.methods(f):e.receiver_methods(f)},-1),j(te,"$Array",function(o){var f;return o===F?[]:o.$$is_array?o:(f=i["$coerce_to?"](o,de("Array"),"to_ary"),f!==F||(f=i["$coerce_to?"](o,de("Array"),"to_a"),f!==F)?f:[o])}),j(te,"$at_exit",function l(){var o=l.$$p||F,f=F;return pe.__at_exit__==null&&(pe.__at_exit__=F),l.$$p=null,pe.__at_exit__=t(f=pe.__at_exit__)?f:[],pe.__at_exit__["$<<"](o),o}),j(te,"$caller",function(o,f){o==null&&(o=1),f==null&&(f=F);var _,A;_=new Error().$backtrace(),A=[];for(var T=o+1,J=_.length;T<J;T++)_[T].match(/runtime\.js/)||A.push(_[T]);return f!=F&&(A=A.slice(0,f)),A},-1),j(te,"$caller_locations",function(o){var f,_,A=this;return f=ke(arguments),_=f,$e($e(A,"caller",W(_)),"map",[],function(J){return J==null&&(J=F),de(de(de("Thread"),"Backtrace"),"Location").$new(J)})},-1),j(te,"$class",function(){var o=this;return o.$$class}),j(te,"$copy_instance_variables",function(o){var f=this,_=Object.keys(o),A,T,J;for(A=0,T=_.length;A<T;A++)J=_[A],J.charAt(0)!=="$"&&o.hasOwnProperty(J)&&(f[J]=o[J])}),j(te,"$copy_singleton_methods",function(o){var f=this,_,A,T,J;if(o.hasOwnProperty("$$meta")&&o.$$meta!==null){var Fe=e.get_singleton_class(o),it=e.get_singleton_class(f);for(T=Object.getOwnPropertyNames(Fe.$$prototype),_=0,J=T.length;_<J;_++)A=T[_],e.is_method(A)&&(it.$$prototype[A]=Fe.$$prototype[A]);it.$$const=Object.assign({},Fe.$$const),Object.setPrototypeOf(it.$$prototype,Object.getPrototypeOf(Fe.$$prototype))}for(_=0,T=Object.getOwnPropertyNames(o),J=T.length;_<J;_++)A=T[_],A.charAt(0)==="$"&&A.charAt(1)!=="$"&&o.hasOwnProperty(A)&&(f[A]=o[A])}),j(te,"$clone",function(o){var f,_=this,A=F;return o=Z(o),f=o.$$smap.freeze,f==null&&(f=F),t(f["$nil?"]())||ve(f,!0)||ve(f,!1)||_.$raise(w("ArgumentError"),"unexpected value for freeze: "+f.$class()),A=_.$class().$allocate(),A.$copy_instance_variables(_),A.$copy_singleton_methods(_),A.$initialize_clone(_,ae(["freeze"],{freeze:f})),(ve(f,!0)||t(f["$nil?"]())&&t(_["$frozen?"]()))&&A.$freeze(),A},-1),j(te,"$initialize_clone",function(o,f){var _=this;return f=Z(f),f.$$smap.freeze,_.$initialize_copy(o),_},-2),j(te,"$define_singleton_method",function l(o,f){var _=l.$$p||F,A=this;return l.$$p=null,$e(A.$singleton_class(),"define_method",[o,f],_.$to_proc())},-2),j(te,"$dup",function(){var o=this,f=F;return f=o.$class().$allocate(),f.$copy_instance_variables(o),f.$initialize_dup(o),f}),j(te,"$initialize_dup",function(o){var f=this;return f.$initialize_copy(o)}),j(te,"$enum_for",function l(o,f){var _=l.$$p||F,A,T,J,Fe=this;return l.$$p=null,A=ke(arguments),A.length>0&&(T=A.shift()),T==null&&(T="each"),J=A,$e(de("Enumerator"),"for",[Fe,T].concat(W(J)),_.$to_proc())},-1),j(te,"$equal?",function(o){var f=this;return f===o}),j(te,"$exit",function(o){var f=F,_=F;for(pe.__at_exit__==null&&(pe.__at_exit__=F),o==null&&(o=!0),pe.__at_exit__=t(f=pe.__at_exit__)?f:[];!t(pe.__at_exit__["$empty?"]());)_=pe.__at_exit__.$pop(),_.$call();return o.$$is_boolean?o=o?0:1:o=r(o,de("Integer"),"to_int"),e.exit(o),F},-1),j(te,"$extend",function(o){var f,_,A=this;f=ke(arguments),_=f,_.length==0&&A.$raise(de("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(A);for(var T=A.$singleton_class(),J=_.length-1;J>=0;J--){var Fe=_[J];Fe.$$is_module||G.$raise(de("TypeError"),"wrong argument type "+Fe.$class()+" (expected Module)"),Fe.$append_features(T),Fe.$extend_object(A),Fe.$extended(A)}return A},-1),j(te,"$freeze",function(){var o=this;return t(o["$frozen?"]())?o:typeof o=="object"?(d(o),c(o)):o}),j(te,"$frozen?",function(){var o=this;switch(typeof o){case"string":case"symbol":case"number":case"boolean":return!0;case"object":return o.$$frozen||!1;default:return!1}}),j(te,"$gets",function(o){var f,_;return pe.stdin==null&&(pe.stdin=F),f=ke(arguments),_=f,$e(pe.stdin,"gets",W(_))},-1),j(te,"$hash",function(){var o=this;return o.$__id__()}),j(te,"$initialize_copy",q(F));var $=[];return j(te,"$inspect",function(){var o=this,f=F,_=F,A=F,T=F;return function(){try{try{return f="",_=o.$__id__(),t($["$include?"](_))?f=" ...":($["$<<"](_),A=!0,$e(o.$instance_variables(),"each",[],function J(Fe){var it=J.$$s==null?this:J.$$s,ht=F,mt=F;return Fe==null&&(Fe=F),ht=it.$instance_variable_get(Fe),mt=w("Opal").$inspect(ht),f=ye(f," "+Fe+"="+mt)},{$$s:o})),"#<"+o.$class()+":0x"+_.$to_s(16)+f+">"}catch(J){if(e.rescue(J,[w("StandardError")])){T=J;try{return"#<"+o.$class()+":0x"+_.$to_s(16)+">"}finally{e.pop_exception()}}else throw J}}finally{t(A)&&$.$pop()}}()}),j(te,"$instance_of?",function(o){var f=this;return!o.$$is_class&&!o.$$is_module&&G.$raise(de("TypeError"),"class or module required"),f.$$class===o}),j(te,"$instance_variable_defined?",function(o){var f=this;return o=i["$instance_variable_name!"](o),e.hasOwnProperty.call(f,o.substr(1))}),j(te,"$instance_variable_get",function(o){var f=this;o=i["$instance_variable_name!"](o);var _=f[e.ivar(o.substr(1))];return _??F}),j(te,"$instance_variable_set",function(o,f){var _=this;return s(_),o=i["$instance_variable_name!"](o),_[e.ivar(o.substr(1))]=f}),j(te,"$remove_instance_variable",function(o){var f=this;o=i["$instance_variable_name!"](o);var _=e.ivar(o.substr(1)),A;return f.hasOwnProperty(_)?(A=f[_],delete f[_],A):G.$raise(de("NameError"),"instance variable "+o+" not defined")}),j(te,"$instance_variables",function(){var o=this,f=[],_;for(var A in o)o.hasOwnProperty(A)&&A.charAt(0)!=="$"&&(A.substr(-1)==="$"?_=A.slice(0,A.length-1):_=A,f.push("@"+_));return f}),j(te,"$Integer",function(o,f){var _,A,T;return o.$$is_string?o==="0"?0:(f===void 0?f=0:(f=r(f,de("Integer"),"to_int"),(f===1||f<0||f>36)&&G.$raise(de("ArgumentError"),"invalid radix "+f)),A=o.toLowerCase(),A=A.replace(/(\d)_(?=\d)/g,"$1"),A=A.replace(/^(\s*[+-]?)(0[bodx]?)/,function(J,Fe,it){switch(it){case"0b":if(f===0||f===2)return f=2,Fe;case"0":case"0o":if(f===0||f===8)return f=8,Fe;case"0d":if(f===0||f===10)return f=10,Fe;case"0x":if(f===0||f===16)return f=16,Fe}G.$raise(de("ArgumentError"),'invalid value for Integer(): "'+o+'"')}),f=f===0?10:f,T="0-"+(f<=10?f-1:"9a-"+String.fromCharCode(97+(f-11))),new RegExp("^\\s*[+-]?["+T+"]+\\s*$").test(A)||G.$raise(de("ArgumentError"),'invalid value for Integer(): "'+o+'"'),_=parseInt(A,f),isNaN(_)&&G.$raise(de("ArgumentError"),'invalid value for Integer(): "'+o+'"'),_):(f!==void 0&&G.$raise(de("ArgumentError"),"base specified for non string value"),o===F&&G.$raise(de("TypeError"),"can't convert nil into Integer"),o.$$is_number?((o===1/0||o===-1/0||isNaN(o))&&G.$raise(de("FloatDomainError"),o),Math.floor(o)):o["$respond_to?"]("to_int")&&(_=o.$to_int(),_!==F)?_:i["$coerce_to!"](o,de("Integer"),"to_i"))},-2),j(te,"$Float",function(o){var f;return o===F&&G.$raise(de("TypeError"),"can't convert nil into Float"),o.$$is_string?(f=o.toString(),f=f.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(f)?G.$Integer(f):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(f)||G.$raise(de("ArgumentError"),'invalid value for Float(): "'+o+'"'),parseFloat(f))):i["$coerce_to!"](o,de("Float"),"to_f")}),j(te,"$Hash",function(o){return t(o["$nil?"]())||ve(o,[])?ae([],{}):le(de("Hash"),o)?o:i["$coerce_to!"](o,de("Hash"),"to_hash")}),j(te,"$is_a?",function(o){var f=this;return!o.$$is_class&&!o.$$is_module&&G.$raise(de("TypeError"),"class or module required"),e.is_a(f,o)}),j(te,"$itself",we),j(te,"$lambda",function l(){var o=l.$$p||F;return l.$$p=null,e.lambda(o)}),j(te,"$load",function(o){return o=i["$coerce_to!"](o,de("String"),"to_str"),e.load(o)}),j(te,"$loop",function l(){var o=l.$$p||F,f=this,_=F;if(l.$$p=null,o===F)return $e(f,"enum_for",["loop"],function(){return de(de("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(o,[])}catch(A){if(e.rescue(A,[de("StopIteration")])){_=A;try{return _.$result()}finally{e.pop_exception()}}else throw A}return f}),j(te,"$nil?",q(!1)),j(te,"$printf",function(o){var f,_,A=this;return f=ke(arguments),_=f,t(_["$any?"]())&&A.$print($e(A,"format",W(_))),F},-1),j(te,"$proc",function l(){var o=l.$$p||F;return l.$$p=null,t(o)||G.$raise(de("ArgumentError"),"tried to create Proc object without a block"),o.$$is_lambda=!1,o}),j(te,"$puts",function(o){var f,_;return pe.stdout==null&&(pe.stdout=F),f=ke(arguments),_=f,$e(pe.stdout,"puts",W(_))},-1),j(te,"$p",function(o){var f,_;return f=ke(arguments),_=f,$e(_,"each",[],function(T){return pe.stdout==null&&(pe.stdout=F),T==null&&(T=F),pe.stdout.$puts(T.$inspect())}),t(ce(_.$length(),1))?_["$[]"](0):_},-1),j(te,"$print",function(o){var f,_;return pe.stdout==null&&(pe.stdout=F),f=ke(arguments),_=f,$e(pe.stdout,"print",W(_))},-1),j(te,"$readline",function(o){var f,_;return pe.stdin==null&&(pe.stdin=F),f=ke(arguments),_=f,$e(pe.stdin,"readline",W(_))},-1),j(te,"$warn",function(o,f){var _,A,T,J,Fe,it,ht=this,mt=F;return pe.VERBOSE==null&&(pe.VERBOSE=F),pe.stderr==null&&(pe.stderr=F),_=ke(arguments),A=ze(_),A=Z(A),T=_,J=A.$$smap.uplevel,J==null&&(J=F),t(J)&&(J=i["$coerce_to!"](J,de("Integer"),"to_str"),t(X(J,0))&&G.$raise(de("ArgumentError"),"negative level ("+J+")"),mt=(Fe=(it=ht.$caller(ye(J,1),1).$first(),it===F||it==null?F:it.$split(":in `")),Fe===F||Fe==null?F:Fe.$first()),t(mt)&&(mt=""+mt+": "),T=$e(T,"map",[],function(wt){return wt==null&&(wt=F),""+mt+"warning: "+wt})),t(pe.VERBOSE["$nil?"]())||t(T["$empty?"]())?F:$e(pe.stderr,"puts",W(T))},-1),j(te,"$raise",function(o,f,_){throw pe["!"]==null&&(pe["!"]=F),pe["@"]==null&&(pe["@"]=F),f==null&&(f=F),_==null&&(_=F),o==null&&pe["!"]!==F?pe["!"]:(o==null?o=de("RuntimeError").$new(""):n(o,"$to_str")?o=de("RuntimeError").$new(o.$to_str()):o.$$is_class&&n(o,"$exception")?o=o.$exception(f):o.$$is_exception||(o=de("TypeError").$new("exception class/object expected")),_!==F&&o.$set_backtrace(_),pe["!"]!==F&&e.exceptions.push(pe["!"]),pe["!"]=o,pe["@"]=o.$backtrace(),o)},-1),j(te,"$rand",function(o){return o===void 0?de(de("Random"),"DEFAULT").$rand():(o.$$is_number&&(o<0&&(o=Math.abs(o)),o%1!==0&&(o=o.$to_i()),o===0&&(o=void 0)),de(de("Random"),"DEFAULT").$rand(o))},-1),j(te,"$respond_to?",function(o,f){var _=this;f==null&&(f=!1);var A=_[p(o)];return typeof A=="function"&&!A.$$stub?!0:_["$respond_to_missing?"].$$pristine===!0?!1:_["$respond_to_missing?"](o,f)},-2),j(te,"$respond_to_missing?",function(o,f){return!1},-2),i.$pristine(te,"respond_to?","respond_to_missing?"),j(te,"$require",function(o){return typeof o!="string"&&e.String&&e.Array&&(o=i["$coerce_to!"](o,de("String"),"to_str")),e.require(o)}),j(te,"$require_relative",function(o){return i["$try_convert!"](o,de("String"),"to_str"),o=de("File").$expand_path(de("File").$join(e.current_file,"..",o)),e.require(o)}),j(te,"$require_tree",function(o,f){var _;f=Z(f),_=f.$$smap.autoload,_==null&&(_=!1);var A=[];o=de("File").$expand_path(o),o=e.normalize(o),o==="."&&(o="");for(var T in e.modules)T["$start_with?"](o)&&(_?A.push([T,!0]):A.push([T,e.require(T)]));return A},-2),j(te,"$singleton_class",function(){var o=this;return e.get_singleton_class(o)}),j(te,"$sleep",function(o){o==null&&(o=F),o===F&&G.$raise(de("TypeError"),"can't convert NilClass into time interval"),o.$$is_number||G.$raise(de("TypeError"),"can't convert "+o.$class()+" into time interval"),o<0&&G.$raise(de("ArgumentError"),"time interval must be positive");for(var f=e.global.performance?function(){return performance.now()}:function(){return new Date},_=f();f()-_<=o*1e3;);return Math.round(o)},-1),j(te,"$srand",function(o){return o==null&&(o=w("Random").$new_seed()),de("Random").$srand(o)},-1),j(te,"$String",function(o){var f=F;return t(f=i["$coerce_to?"](o,de("String"),"to_str"))?f:i["$coerce_to!"](o,de("String"),"to_s")}),j(te,"$tap",function l(){var o=l.$$p||F,f=this;return l.$$p=null,e.yield1(o,f),f}),j(te,"$to_proc",we),j(te,"$to_s",function(){var o=this;return"#<"+o.$class()+":0x"+o.$__id__().$to_s(16)+">"}),j(te,"$catch",function l(o){var f=l.$$p||F,_=F,A=F;l.$$p=null,o==null&&(o=F);try{return o=t(_=o)?_:Ae.$new(),e.yield1(f,o)}catch(T){if(e.rescue(T,[de("UncaughtThrowError")])){A=T;try{return ve(A.$tag(),o)?A.$value():G.$raise()}finally{e.pop_exception()}}else throw T}},-1),j(te,"$throw",function(o,f){return f==null&&(f=F),G.$raise(de("UncaughtThrowError").$new(o,f))},-2),j(te,"$open",function l(o){var f=l.$$p||F,_,A;return l.$$p=null,_=ke(arguments),A=_,$e(de("File"),"open",W(A),f.$to_proc())},-1),j(te,"$yield_self",function l(){var o=l.$$p||F,f=this;return l.$$p=null,o===F?$e(f,"enum_for",["yield_self"],q(1)):e.yield1(o,f)}),oe(te,"fail","raise"),oe(te,"kind_of?","is_a?"),oe(te,"object_id","__id__"),oe(te,"public_send","__send__"),oe(te,"send","__send__"),oe(te,"then","yield_self"),oe(te,"to_enum","enum_for")}("::",Se),function(D,qe){var te=k(D,qe,"Object");return delete Ae.$$prototype.$require,te.$include(G)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,c=e.top;return e.nil,e.add_stubs("include,raise"),function(d,p){return r(d,"$to_s",t("main")),r(d,"$include",function(q){return n.$include(q)}),r(d,"$autoload",function(q){var j,G;return j=i(arguments),G=j,e.Object.$autoload.apply(e.Object,G)},-1),r(d,"$using",function(q){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(c))};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,c=e.def,d=e.klass,p=e.nil,h=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(q,j){var G=t(q,"Errno"),pe=p,ke=p;pe=[["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]],ke=p;var $e;for($e=0;$e<pe.length;$e++)(function(){var W=pe[$e][0],Z=pe[$e][1],ve=pe[$e][2];ke=e.klass(G,e.SystemCallError,W),ke.errno=ve,function(ae,ye){return c(ae,"$new",function le(we){le.$$p;var ce=this,ze=p;return le.$$p=null,we==null&&(we=p),ze=Z,r(we)&&(ze=n(ze," - "+we)),i(ce,s(ce,"new",le,!1,!0),"new",[ze],null)},-1)}(e.get_singleton_class(ke))})()}("::"),function(q,j,G){var pe=d(q,j,"SystemCallError");return c(pe,"$errno",function(){var $e=this;return $e.$class().$errno()}),function(ke,$e){return ke.$attr_reader("errno")}(e.get_singleton_class(pe))}("::",h("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,c=e.to_a,d=e.def,p=e.truthy,h=e.hash2,q=e.Kernel,j=e.not,G=e.rb_plus,pe=e.eqeq,ke=e.Object,$e=e.ensure_kwargs,W=e.send2,Z=e.find_super,ve=e.module,ae=[],ye=e.nil,le=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(we,ce,ze){var X=t(we,ce,"Exception"),Ae=[X].concat(ze),oe=e.$r(Ae),k=X.$$prototype;k.message=ye,e.prop(X.$$prototype,"$$is_exception",!0);var Se;Error.stackTraceLimit=100,i(X,"$new",function(D){var qe,te,B=this;n["!"]==null&&(n["!"]=ye),qe=r(arguments),te=qe;var w=te.length>0?te[0]:ye,$=new B.$$constructor(w);return $.name=B.$$name,$.message=w,$.cause=n["!"],e.send($,$.$initialize,te),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace($,Se),$},-1),Se=X.$new,i(X,"$exception",function(D){var qe,te,B=this;return qe=r(arguments),te=qe,s(B,"new",c(te))},-1),d(X,"$initialize",function(D){var qe,te,B=this;return qe=r(arguments),te=qe,B.message=te.length>0?te[0]:ye},-1);function F(de){for(var D=[],qe,te=0;te<de.length;te++){var B=de[te];!B||!B.$$is_string||((qe=B.match(/^ at (.*?) \((.*?)\)$/))?D.push(qe[2]+":in `"+qe[1]+"'"):(qe=B.match(/^ at (.*?)$/))?D.push(qe[1]+":in `undefined'"):(qe=B.match(/^ from (.*?)$/))?D.push(qe[1]):(qe=B.match(/^(.*?)@(.*?)$/))&&D.push(qe[2]+":in `"+qe[1]+"'"))}return D}return d(X,"$backtrace",function(){var D=this;if(D.backtrace)return D.backtrace;var qe=D.stack;return typeof qe<"u"&&qe.$$is_string?D.backtrace=F(qe.split(`
|
|
384
|
+
`)):qe?D.backtrace=F(qe):[]}),d(X,"$backtrace_locations",function(){var D,qe=this;return qe.backtrace_locations||(qe.backtrace_locations=(D=qe.$backtrace(),D===ye||D==null?ye:s(D,"map",[],function(B){return B==null&&(B=ye),le(le(le("Thread"),"Backtrace"),"Location").$new(B)}))),qe.backtrace_locations}),d(X,"$cause",function(){var D=this;return D.cause||ye}),d(X,"$exception",function(D){var qe=this;if(D==null&&(D=ye),D===ye||qe===D)return qe;var te=qe.$clone();return te.message=D,qe.backtrace&&(te.backtrace=qe.backtrace.$dup()),te.stack=qe.stack,te.cause=qe.cause,te},-1),d(X,"$message",function(){var D=this;return D.$to_s()}),d(X,"$full_message",function(D){var qe,te=this,B=ye,w=ye,$=ye,l=ye,o=ye,f=ye,_=ye,A=ye,T=ye;return n.stderr==null&&(n.stderr=ye),D==null&&(D=ye),p(oe("Hash","skip_raise")?"constant":ye)?(D=h(["highlight","order"],{highlight:n.stderr["$tty?"](),order:"top"}).$merge(p(B=D)?B:h([],{})),qe=[D["$[]"]("highlight"),D["$[]"]("order")],w=qe[0],$=qe[1],p([!0,!1]["$include?"](w))||q.$raise(le("ArgumentError"),"expected true or false as highlight: "+w),p(["top","bottom"]["$include?"]($))||q.$raise(le("ArgumentError"),"expected :top or :bottom as order: "+$),p(w)?(l="\x1B[1;4m",o="\x1B[1m",f="\x1B[m"):l=o=f="",_=te.$backtrace().$dup(),(j(_)||p(_["$empty?"]()))&&(_=te.$caller()),A=_.$shift(),T=""+A+": ",T=G(T,""+o+te.$to_s()+" ("+l+te.$class()+f+o+")"+f+`
|
|
385
|
+
`),T=G(T,s(_,"map",[],function(Fe){return Fe==null&&(Fe=ye)," from "+Fe+`
|
|
386
|
+
`}).$join()),p(te.$cause())&&(T=G(T,te.$cause().$full_message(h(["highlight"],{highlight:w})))),pe($,"bottom")&&(T=T.$split(`
|
|
387
|
+
`).$reverse().$join(`
|
|
388
|
+
`),T=G(""+o+"Traceback"+f+` (most recent call last):
|
|
389
|
+
`,T)),T):""+te.message+`
|
|
390
|
+
`+te.stack},-1),d(X,"$inspect",function(){var D=this,qe=ye;return qe=D.$to_s(),p(qe["$empty?"]())?D.$class().$to_s():"#<"+D.$class().$to_s()+": "+D.$to_s()+">"}),d(X,"$set_backtrace",function(D){var qe=this,te=!0,B,w;if(D===ye)qe.backtrace=ye,qe.stack="";else if(D.$$is_string)qe.backtrace=[D],qe.stack=" from "+D;else{if(D.$$is_array){for(B=0,w=D.length;B<w;B++)if(!D[B].$$is_string){te=!1;break}}else te=!1;te===!1&&q.$raise(le("TypeError"),"backtrace must be Array of String"),qe.backtrace=D,qe.stack=s(D,"map",[],function(l){return l==null&&(l=ye),G(" from ",l)}).join(`
|
|
391
|
+
`)}return D}),d(X,"$to_s",function(){var D=this,qe=ye,te=ye;return p(qe=p(te=D.message)?D.message.$to_s():te)?qe:D.$class().$to_s()})}("::",Error,ae),t("::",le("Exception"),"ScriptError"),t("::",le("ScriptError"),"SyntaxError"),t("::",le("ScriptError"),"LoadError"),t("::",le("ScriptError"),"NotImplementedError"),t("::",le("Exception"),"SystemExit"),t("::",le("Exception"),"NoMemoryError"),t("::",le("Exception"),"SignalException"),t("::",le("SignalException"),"Interrupt"),t("::",le("Exception"),"SecurityError"),t("::",le("Exception"),"SystemStackError"),t("::",le("Exception"),"StandardError"),t("::",le("StandardError"),"EncodingError"),t("::",le("StandardError"),"ZeroDivisionError"),t("::",le("StandardError"),"NameError"),t("::",le("NameError"),"NoMethodError"),t("::",le("StandardError"),"RuntimeError"),t("::",le("RuntimeError"),"FrozenError"),t("::",le("StandardError"),"LocalJumpError"),t("::",le("StandardError"),"TypeError"),t("::",le("StandardError"),"ArgumentError"),t("::",le("ArgumentError"),"UncaughtThrowError"),t("::",le("StandardError"),"IndexError"),t("::",le("IndexError"),"StopIteration"),t("::",le("StopIteration"),"ClosedQueueError"),t("::",le("IndexError"),"KeyError"),t("::",le("StandardError"),"RangeError"),t("::",le("RangeError"),"FloatDomainError"),t("::",le("StandardError"),"IOError"),t("::",le("IOError"),"EOFError"),t("::",le("StandardError"),"SystemCallError"),t("::",le("StandardError"),"RegexpError"),t("::",le("StandardError"),"ThreadError"),t("::",le("StandardError"),"FiberError"),ke.$autoload("Errno","corelib/error/errno"),function(we,ce){var ze=t(we,ce,"FrozenError");return ze.$attr_reader("receiver"),d(ze,"$initialize",function X(Ae,oe){var k;X.$$p;var Se=this;return X.$$p=null,oe=$e(oe),k=oe.$$smap.receiver,k==null&&(k=ye),W(Se,Z(Se,"initialize",X,!1,!0),"initialize",[Ae],null),Se.receiver=k},-2)}("::",le("RuntimeError")),function(we,ce){var ze=t(we,ce,"UncaughtThrowError"),X=ze.$$prototype;return X.tag=ye,ze.$attr_reader("tag","value"),d(ze,"$initialize",function Ae(oe,k){Ae.$$p;var Se=this;return Ae.$$p=null,k==null&&(k=ye),Se.tag=oe,Se.value=k,W(Se,Z(Se,"initialize",Ae,!1,!0),"initialize",["uncaught throw "+Se.tag.$inspect()],null)},-2)}("::",le("ArgumentError")),function(we,ce){var ze=t(we,ce,"NameError");return ze.$attr_reader("name"),d(ze,"$initialize",function X(Ae,oe){X.$$p;var k=this;return X.$$p=null,oe==null&&(oe=ye),W(k,Z(k,"initialize",X,!1,!0),"initialize",[Ae],null),k.name=oe},-2)}("::",null),function(we,ce){var ze=t(we,ce,"NoMethodError");return ze.$attr_reader("args"),d(ze,"$initialize",function X(Ae,oe,k){X.$$p;var Se=this;return X.$$p=null,oe==null&&(oe=ye),k==null&&(k=[]),W(Se,Z(Se,"initialize",X,!1,!0),"initialize",[Ae,oe],null),Se.args=k},-2)}("::",null),function(we,ce){var ze=t(we,ce,"StopIteration");return ze.$attr_reader("result")}("::",null),function(we,ce){var ze=t(we,ce,"KeyError"),X=ze.$$prototype;return X.receiver=X.key=ye,d(ze,"$initialize",function Ae(oe,k){var Se,F;Ae.$$p;var de=this;return Ae.$$p=null,k=$e(k),Se=k.$$smap.receiver,Se==null&&(Se=ye),F=k.$$smap.key,F==null&&(F=ye),W(de,Z(de,"initialize",Ae,!1,!0),"initialize",[oe],null),de.receiver=Se,de.key=F},-2),d(ze,"$receiver",function(){var oe=this,k=ye;return p(k=oe.receiver)?k:q.$raise(le("ArgumentError"),"no receiver is available")}),d(ze,"$key",function(){var oe=this,k=ye;return p(k=oe.key)?k:q.$raise(le("ArgumentError"),"no key is available")})}("::",null),function(we,ce){var ze=ve(we,"JS"),X=[ze].concat(ce);return t(X[0],null,"Error"),ye}("::",ae)};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,c=e.NilClass,d=e.slice,p=e.truthy,h=e.rb_gt,q=e.alias,j=e.nil,G=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(pe,ke,$e){var W=t(pe,ke,"NilClass");return W.$$prototype.$$meta=W,function(Z,ve){return n(Z,"$allocate",function(){var ye=this;return r.$raise(G("TypeError"),"allocator undefined for "+ye.$name())}),e.udef(Z,"$new"),j}(e.get_singleton_class(W)),n(W,"$!",i(!0)),n(W,"$&",i(!1)),n(W,"$|",function(ve){return ve!==!1&&ve!==j}),n(W,"$^",function(ve){return ve!==!1&&ve!==j}),n(W,"$==",function(ve){return ve===j}),n(W,"$dup",i(j)),n(W,"$clone",function(ve){return ve=s(ve),ve.$$smap.freeze,j},-1),n(W,"$inspect",i("nil")),n(W,"$nil?",i(!0)),n(W,"$singleton_class",function(){return c}),n(W,"$to_a",function(){return[]}),n(W,"$to_h",function(){return e.hash()}),n(W,"$to_i",i(0)),n(W,"$to_s",i("")),n(W,"$to_c",function(){return G("Complex").$new(0,0)}),n(W,"$rationalize",function(ve){var ae,ye;return ae=d(arguments),ye=ae,p(h(ye.$length(),1))&&r.$raise(G("ArgumentError")),r.$Rational(0,1)},-1),n(W,"$to_r",function(){return r.$Rational(0,1)}),n(W,"$instance_variables",function(){return[]}),q(W,"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,c=e.slice,d=e.truthy,p=e.send2,h=e.find_super,q=e.to_a,j=e.alias,G=e.nil,pe=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(ke,$e,W){var Z=t(ke,$e,"Boolean");e.prop(Z.$$prototype,"$$is_boolean",!0);for(var ve=["$$class","$$meta"],ae=0;ae<ve.length;ae++)Object.defineProperty(Z.$$prototype,ve[ae],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(Z.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:G}}),function(ye,le){return n(ye,"$allocate",function(){var ce=this;return r.$raise(pe("TypeError"),"allocator undefined for "+ce.$name())}),e.udef(ye,"$new"),G}(e.get_singleton_class(Z)),n(Z,"$__id__",function(){var le=this;return le.valueOf()?2:0}),n(Z,"$!",function(){var le=this;return le!=!0}),n(Z,"$&",function(le){var we=this;return we==!0?le!==!1&&le!==G:!1}),n(Z,"$|",function(le){var we=this;return we==!0?!0:le!==!1&&le!==G}),n(Z,"$^",function(le){var we=this;return we==!0?le===!1||le===G:le!==!1&&le!==G}),n(Z,"$==",function(le){var we=this;return we==!0===le.valueOf()}),n(Z,"$singleton_class",function(){var le=this;return le.$$meta}),n(Z,"$to_s",function(){var le=this;return le==!0?"true":"false"}),n(Z,"$dup",i),n(Z,"$clone",function(le){var we=this;return le=s(le),le.$$smap.freeze,we},-1),n(Z,"$method_missing",function ye(le,we){var ce=ye.$$p||G,ze,X,Ae=this;ye.$$p=null,ze=c(arguments,1),X=ze;var oe=Ae.$$class.$$prototype[e.jsid(le)];return d(typeof oe<"u"&&!oe.$$stub)||p(Ae,h(Ae,"method_missing",ye,!1,!0),"method_missing",[le].concat(q(X)),ce),e.send(Ae,oe,X,ce)},-2),n(Z,"$respond_to_missing?",function(le,we){var ce=this,ze=ce.$$class.$$prototype[e.jsid(le)];return typeof ze<"u"&&!ze.$$stub},-2),j(Z,"eql?","=="),j(Z,"equal?","=="),j(Z,"inspect","to_s"),j(Z,"object_id","__id__")}("::",Boolean),t("::",pe("Boolean"),"TrueClass"),t("::",pe("Boolean"),"FalseClass"),G};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,c=e.Kernel,d=e.def,p=e.nil,h=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(q){var j=r(q,"Comparable"),G=p;function pe(W){return e.is_a(W,e.Integer)?W:n(W,0)?1:i(W,0)?-1:0}function ke(W,Z){var ve;s(p,G=Z)||s(!0,G)||s(!1,G)||s(h("Integer"),G)||s(h("Float"),G)?ve=Z.$inspect():ve=Z.$$class,c.$raise(h("ArgumentError"),"comparison of "+W.$class()+" with "+ve+" failed")}function $e(W,Z){var ve=W["$<=>"](Z);return t(ve)||ke(W,Z),pe(ve)}return d(j,"$==",function(Z){var ve=this,ae=p;return t(ve["$equal?"](Z))?!0:ve["$<=>"]==e.Kernel["$<=>"]?!1:ve.$$comparable?(ve.$$comparable=!1,!1):t(ae=ve["$<=>"](Z))?pe(ae)==0:!1}),d(j,"$>",function(Z){var ve=this;return $e(ve,Z)>0}),d(j,"$>=",function(Z){var ve=this;return $e(ve,Z)>=0}),d(j,"$<",function(Z){var ve=this;return $e(ve,Z)<0}),d(j,"$<=",function(Z){var ve=this;return $e(ve,Z)<=0}),d(j,"$between?",function(Z,ve){var ae=this;return!(i(ae,Z)||n(ae,ve))}),d(j,"$clamp",function(Z,ve){var ae=this;ve==null&&(ve=p);var ye,le;if(ve===p&&(e.is_a(Z,e.Range)||c.$raise(h("TypeError"),"wrong argument type "+Z.$class()+" (expected Range)"),le=Z.excl,ve=Z.end,Z=Z.begin,ve!==p&&le&&c.$raise(h("ArgumentError"),"cannot clamp with an exclusive range")),Z!==p&&ve!==p&&$e(Z,ve)>0&&c.$raise(h("ArgumentError"),"min argument must be smaller than max argument"),Z!==p){if(ye=$e(ae,Z),ye==0)return ae;if(ye<0)return Z}return ve!==p&&(ye=$e(ae,ve),ye>0)?ve:ae},-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,c=e.send2,d=e.find_super,p=e.def,h=e.truthy,q=e.gvars,j=e.slice,G=e.Kernel,pe=e.Opal,ke=e.alias,$e=e.send,W=e.hash2,Z=e.rb_plus,ve=e.ensure_kwargs,ae=e.rb_ge,ye=e.to_a,le=e.eqeqeq,we=e.rb_minus,ce=e.return_ivar,ze=[],X=e.nil,Ae=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("::",Ae("StandardError"),"RegexpError"),function(oe,k,Se){var F=i(oe,k,"Regexp"),de=[F].concat(Se),D=e.$r(de);return s(F,"IGNORECASE",1),s(F,"EXTENDED",2),s(F,"MULTILINE",4),e.prop(F.$$prototype,"$$is_regexp",!0),function(qe,te){var B=[qe].concat(te),w=e.$r(B);return p(qe,"$allocate",function $(){var l=$.$$p||X,o=this,f=X;return $.$$p=null,f=c(o,d(o,"allocate",$,!1,!0),"allocate",[],l),f.uninitialized=!0,f}),p(qe,"$escape",function(l){return e.escape_regexp(l)}),p(qe,"$last_match",function(l){return q["~"]==null&&(q["~"]=X),l==null&&(l=X),h(l["$nil?"]())?q["~"]:h(q["~"])?q["~"]["$[]"](l):X},-1),p(qe,"$union",function(l){var o,f,_=this;o=j(arguments),f=o;var A,T,J,Fe,it;if(f.length==0)return/(?!)/;if(f.length==1&&f[0].$$is_regexp)return f[0];A=f[0].$$is_array,f.length>1&&A&&G.$raise(Ae("TypeError"),"no implicit conversion of Array into String"),A&&(f=f[0]),Fe=void 0,T=[];for(var ht=0;ht<f.length;ht++)J=f[ht],J.$$is_string?T.push(_.$escape(J)):J.$$is_regexp?(it=J.$options(),Fe!=null&&Fe!=it&&G.$raise(Ae("TypeError"),"All expressions must use the same options"),Fe=it,T.push("("+J.source+")")):T.push(_.$escape(J.$to_str()));return _.$new(T.$join("|"),Fe)},-1),p(qe,"$new",function(l,o){if(l.$$is_regexp)return new RegExp(l);if(l=pe["$coerce_to!"](l,Ae("String"),"to_str"),l.charAt(l.length-1)==="\\"&&l.charAt(l.length-2)!=="\\"&&G.$raise(Ae("RegexpError"),"too short escape sequence: /"+l+"/"),l=l.replace("\\A","^").replace("\\z","$"),o===void 0||o["$!"]())return new RegExp(l);if(o.$$is_number){var f="";w("IGNORECASE")&o&&(f+="i"),w("MULTILINE")&o&&(f+="m"),o=f}else o="i";return new RegExp(l,o)},-2),ke(qe,"compile","new"),ke(qe,"quote","escape")}(e.get_singleton_class(F),de),p(F,"$==",function(te){var B=this;return te instanceof RegExp&&B.toString()===te.toString()}),p(F,"$===",function(te){var B=this;return B.$match(pe["$coerce_to?"](te,Ae("String"),"to_str"))!==X}),p(F,"$=~",function(te){var B=this,w=X;return q["~"]==null&&(q["~"]=X),h(w=B.$match(te))?q["~"].$begin(0):w}),p(F,"$freeze",function(){var te=this;return h(te["$frozen?"]())?te:(te.hasOwnProperty("$$g")||r(te,"$$g",null),te.hasOwnProperty("$$gm")||r(te,"$$gm",null),n(te))}),p(F,"$inspect",function(){var te=this,B=/^\/(.*)\/([^\/]*)$/,w=te.toString(),$=B.exec(w);if($){for(var l=$[1],o=$[2],f=l.split(""),_=f.length,A=!1,T="",J=0;J<_;J++){var Fe=f[J];!A&&Fe=="/"&&(T=T.concat("\\")),T=T.concat(Fe),Fe=="\\"?A?A=!1:A=!0:A=!1}return"/"+T+"/"+o}else return w}),p(F,"$match",function qe(te,B){var w=qe.$$p||X,$=this;if(q["~"]==null&&(q["~"]=X),qe.$$p=null,$.uninitialized&&G.$raise(Ae("TypeError"),"uninitialized Regexp"),B===void 0){if(te===X)return q["~"]=X;var l=$.exec(t(te,Ae("String"),"to_str"));return l?(q["~"]=Ae("MatchData").$new($,l),w===X?q["~"]:e.yield1(w,q["~"])):q["~"]=X}if(B=t(B,Ae("Integer"),"to_int"),te===X||(te=t(te,Ae("String"),"to_str"),B<0&&(B+=te.length,B<0)))return q["~"]=X;for(var o,f=e.global_regexp($);;){if(o=f.exec(te),o===null)return q["~"]=X;if(o.index>=B)return q["~"]=Ae("MatchData").$new(f,o),w===X?q["~"]:e.yield1(w,q["~"]);f.lastIndex=o.index+1}},-2),p(F,"$match?",function(te,B){var w=this;if(w.uninitialized&&G.$raise(Ae("TypeError"),"uninitialized Regexp"),B===void 0)return te===X?!1:w.test(t(te,Ae("String"),"to_str"));if(B=t(B,Ae("Integer"),"to_int"),te===X||(te=t(te,Ae("String"),"to_str"),B<0&&(B+=te.length,B<0)))return!1;var $,l=e.global_regexp(w);return $=l.exec(te),!($===null||$.index<B)},-2),p(F,"$names",function(){var te=this;return $e(te.$source().$scan(/\(?<(\w+)>/,W(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),p(F,"$named_captures",function(){var te=this;return $e($e($e(te.$source().$scan(/\(?<(\w+)>/,W(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$each_with_index(),"group_by",[],"first".$to_proc()),"transform_values",[],function(w){return w==null&&(w=X),$e(w,"map",[],function(l){return l==null&&(l=X),Z(l.$last(),1)})})}),p(F,"$~",function(){var te=this;return q._==null&&(q._=X),te["$=~"](q._)}),p(F,"$source",function(){var te=this;return te.source}),p(F,"$options",function(){var te=this;te.uninitialized&&G.$raise(Ae("TypeError"),"uninitialized Regexp");var B=0;return te.multiline&&(B|=D("MULTILINE")),te.ignoreCase&&(B|=D("IGNORECASE")),B}),p(F,"$casefold?",function(){var te=this;return te.ignoreCase}),ke(F,"eql?","=="),ke(F,"to_s","source")}("::",RegExp,ze),function(oe,k,Se){var F=i(oe,k,"MatchData"),de=[F].concat(Se),D=e.$r(de),qe=F.$$prototype;return qe.matches=X,F.$attr_reader("post_match","pre_match","regexp","string"),p(F,"$initialize",function(B,w,$){var l,o=this;$=ve($),l=$.$$smap.no_matchdata,l==null&&(l=!1),h(l)||(q["~"]=o),o.regexp=B,o.begin=w.index,o.string=w.input,o.pre_match=w.input.slice(0,w.index),o.post_match=w.input.slice(w.index+w[0].length),o.matches=[];for(var f=0,_=w.length;f<_;f++){var A=w[f];A==null?o.matches.push(X):o.matches.push(A)}},-3),p(F,"$match",function(B){var w=this,$=X;return h($=w["$[]"](B))?$:h(B["$is_a?"](D("Integer")))&&h(ae(B,w.$length()))?G.$raise(Ae("IndexError"),"index "+B+" out of matches"):X}),p(F,"$match_length",function(B){var w,$=this;return w=$.$match(B),w===X||w==null?X:w.$length()}),p(F,"$[]",function(B){var w,$,l=this;return w=j(arguments),$=w,$[0].$$is_string?(l.$regexp().$names()["$include?"]($["$[]"](0))["$!"]()&&G.$raise(Ae("IndexError"),"undefined group name reference: "+$["$[]"](0)),l.$named_captures()["$[]"]($["$[]"](0))):$e(l.matches,"[]",ye($))},-1),p(F,"$offset",function(B){var w=this;return B!==0&&G.$raise(Ae("ArgumentError"),"MatchData#offset only supports 0th element"),[w.begin,w.begin+w.matches[B].length]}),p(F,"$==",function(B){var w=this,$=X,l=X,o=X,f=X;return le(Ae("MatchData"),B)?h($=h(l=h(o=h(f=w.string==B.string)?w.regexp.toString()==B.regexp.toString():f)?w.pre_match==B.pre_match:o)?w.post_match==B.post_match:l)?w.begin==B.begin:$:!1}),p(F,"$begin",function(B){var w=this;return B!==0&&G.$raise(Ae("ArgumentError"),"MatchData#begin only supports 0th element"),w.begin}),p(F,"$end",function(B){var w=this;return B!==0&&G.$raise(Ae("ArgumentError"),"MatchData#end only supports 0th element"),w.begin+w.matches[B].length}),p(F,"$captures",function(){var B=this;return B.matches.slice(1)}),p(F,"$named_captures",function(){var B=this,w=X;return w=B.$captures(),$e(B.$regexp().$named_captures(),"transform_values",[],function(l){return l==null&&(l=X),w["$[]"](we(l.$last(),1))})}),p(F,"$names",function(){var B=this;return B.$regexp().$names()}),p(F,"$inspect",function(){var B=this,w="#<MatchData "+B.matches[0].$inspect();if(B.$regexp().$names()["$empty?"]())for(var $=1,l=B.matches.length;$<l;$++)w+=" "+$+":"+B.matches[$].$inspect();else $e(B.$named_captures(),"each",[],function(f,_){return f==null&&(f=X),_==null&&(_=X),w+=" "+f+":"+_.$inspect()});return w+">"}),p(F,"$length",function(){var B=this;return B.matches.length}),p(F,"$to_a",ce("matches")),p(F,"$to_s",function(){var B=this;return B.matches[0]}),p(F,"$values_at",function(B){var w,$,l=this;w=j(arguments),$=w;var o,f,_,A=[];for(o=0;o<$.length;o++){if($[o].$$is_range&&(f=$[o].$to_a(),f.unshift(o,1),Array.prototype.splice.apply($,f)),_=pe["$coerce_to!"]($[o],Ae("Integer"),"to_int"),_<0&&(_+=l.matches.length,_<0)){A.push(X);continue}A.push(l.matches[_])}return A},-1),ke(F,"eql?","=="),ke(F,"size","length")}(ze[0],null,ze)};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,c=e.def,d=e.Opal,p=e.defs,h=e.slice,q=e.send,j=e.to_a,G=e.extract_kwargs,pe=e.ensure_kwargs,ke=e.eqeqeq,$e=e.Kernel,W=e.truthy,Z=e.gvars,ve=e.rb_divide,ae=e.rb_plus,ye=e.eqeq,le=e.hash2,we=e.alias,ce=e.const_set,ze=e.top,X=[],Ae=e.$r(X),oe=e.nil,k=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"),ze.$require("corelib/comparable"),ze.$require("corelib/regexp"),function(Se,F,de){var D=s(Se,F,"String"),qe=[D].concat(de),te=e.$r(qe);D.$include(k("Comparable")),e.prop(D.$$prototype,"$$is_string",!0),c(D,"$__id__",function(){var $=this;return $.toString()}),p(D,"$try_convert",function($){return d["$coerce_to?"]($,k("String"),"to_str")}),p(D,"$new",function($){var l,o,f=this;l=h(arguments),o=l;var _=o[0]||"",A=o[o.length-1];return _=t(_,k("String"),"to_str"),A&&A.$$is_hash&&A.$$smap.encoding&&(_=_.$force_encoding(A.$$smap.encoding)),_=new f.$$constructor(_),_.$initialize.$$pristine||q(_,"initialize",j(o)),_},-1),c(D,"$initialize",function($,l){var o,f;return o=h(arguments),f=G(o),f=pe(f),o.length>0&&o.shift(),f.$$smap.encoding,f.$$smap.capacity,oe},-1),c(D,"$%",function($){var l=this;return ke(k("Array"),$)?q(l,"format",[l].concat(j($))):l.$format(l,$)}),c(D,"$*",function($){var l=this;if($=t($,k("Integer"),"to_int"),$<0&&$e.$raise(k("ArgumentError"),"negative argument"),$===0)return"";var o="",f=l.toString();for(f.length*$>=1<<28&&$e.$raise(k("RangeError"),"multiply count must not overflow maximum string size");($&1)===1&&(o+=f),$>>>=1,$!==0;)f+=f;return o}),c(D,"$+",function($){var l=this;if($=t($,k("String"),"to_str"),$==""&&l.$$class===e.String)return l;if(l==""&&$.$$class===e.String)return $;var o=l+$;return l.encoding===o.encoding&&$.encoding===o.encoding||l.encoding.name==="UTF-8"||$.encoding.name==="UTF-8"?o:e.enc(o,l.encoding)}),c(D,"$<=>",function($){var l=this;if(W($["$respond_to?"]("to_str")))return $=$.$to_str().$to_s(),l>$?1:l<$?-1:0;var o=$["$<=>"](l);return o===oe?oe:o>0?-1:o<0?1:0}),c(D,"$==",function($){var l=this;return $.$$is_string?l.toString()===$.toString():r($,"$to_str")?$["$=="](l):!1}),c(D,"$=~",function($){var l=this;return $.$$is_string&&$e.$raise(k("TypeError"),"type mismatch: String given"),$["$=~"](l)}),c(D,"$[]",function($,l){var o=this,f=o.length,_,A;if($.$$is_range)return _=$.excl,A=$,l=$.end===oe?-1:t($.end,k("Integer"),"to_int"),$=$.begin===oe?0:t($.begin,k("Integer"),"to_int"),Math.abs($)>f?oe:($<0&&($+=f),l<0&&(l+=f),(!_||A.end===oe)&&(l+=1),l=l-$,l<0&&(l=0),o.substr($,l));if($.$$is_string)return l!=null&&$e.$raise(k("TypeError")),o.indexOf($)!==-1?$:oe;if($.$$is_regexp){var T=o.match($);return T===null?(Z["~"]=oe,oe):(Z["~"]=k("MatchData").$new($,T),l==null?T[0]:(l=t(l,k("Integer"),"to_int"),l<0&&-l<T.length?T[l+=T.length]:l>=0&&l<T.length?T[l]:oe))}return $=t($,k("Integer"),"to_int"),$<0&&($+=f),l==null?$>=f||$<0?oe:o.substr($,1):(l=t(l,k("Integer"),"to_int"),l<0||$>f||$<0?oe:o.substr($,l))},-2),c(D,"$b",function(){var $=this;return new String($).$force_encoding("binary")}),c(D,"$capitalize",function(){var $=this;return $.charAt(0).toUpperCase()+$.substr(1).toLowerCase()}),c(D,"$casecmp",function($){var l=this;if(!W($["$respond_to?"]("to_str")))return oe;$=t($,k("String"),"to_str").$to_s();var o=/^[\x00-\x7F]*$/;return o.test(l)&&o.test($)&&(l=l.toLowerCase(),$=$.toLowerCase()),l["$<=>"]($)}),c(D,"$casecmp?",function($){var l=this,o=l.$casecmp($);return o===oe?oe:o===0}),c(D,"$center",function($,l){var o=this;if(l==null&&(l=" "),$=t($,k("Integer"),"to_int"),l=t(l,k("String"),"to_str").$to_s(),W(l["$empty?"]())&&$e.$raise(k("ArgumentError"),"zero width padding"),W($<=o.length))return o;var f=o.$ljust(ve(ae($,o.length),2).$ceil(),l),_=o.$rjust(ve(ae($,o.length),2).$floor(),l);return _+f.slice(o.length)},-2),c(D,"$chomp",function($){var l=this;if(Z["/"]==null&&(Z["/"]=oe),$==null&&($=Z["/"]),W($===oe||l.length===0))return l;$=d["$coerce_to!"]($,k("String"),"to_str").$to_s();var o;if($===`
|
|
392
|
+
`)o=l.replace(/\r?\n?$/,"");else if($==="")o=l.replace(/(\r?\n)+$/,"");else if(l.length>=$.length){var f=l.substr(l.length-$.length,$.length);f===$&&(o=l.substr(0,l.length-$.length))}return o??l},-1),c(D,"$chop",function(){var $=this,l=$.length,o;return l<=1?o="":$.charAt(l-1)===`
|
|
393
|
+
`&&$.charAt(l-2)==="\r"?o=$.substr(0,l-2):o=$.substr(0,l-1),o}),c(D,"$chr",function(){var $=this;return $.charAt(0)}),c(D,"$clone",function($){var l,o=this,f=oe;return $=pe($),l=$.$$smap.freeze,l==null&&(l=oe),W(l["$nil?"]())||ye(l,!0)||ye(l,!1)||o.$raise(te("ArgumentError"),"unexpected value for freeze: "+l.$class()),f=new String(o),f.$copy_singleton_methods(o),f.$initialize_clone(o,le(["freeze"],{freeze:l})),ye(l,!0)?f.$$frozen||(f.$$frozen=!0):W(l["$nil?"]())&&o.$$frozen&&(f.$$frozen=!0),f},-1),c(D,"$dup",function(){var $=this,l=oe;return l=new String($),l.$initialize_dup($),l}),c(D,"$count",function($){var l,o,f=this;l=h(arguments),o=l,o.length===0&&$e.$raise(k("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=B(o);return _===null?0:f.length-f.replace(new RegExp(_,"g"),"").length},-1),c(D,"$delete",function($){var l,o,f=this;l=h(arguments),o=l,o.length===0&&$e.$raise(k("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=B(o);return _===null?f:f.replace(new RegExp(_,"g"),"")},-1),c(D,"$delete_prefix",function($){var l=this;return $.$$is_string||($=t($,k("String"),"to_str")),l.slice(0,$.length)===$?l.slice($.length):l}),c(D,"$delete_suffix",function($){var l=this;return $.$$is_string||($=t($,k("String"),"to_str")),l.slice(l.length-$.length)===$?l.slice(0,l.length-$.length):l}),c(D,"$downcase",function(){var $=this;return $.toLowerCase()}),c(D,"$each_line",function w($,l){var o=w.$$p||oe,f,_,A,T,J=this;if(Z["/"]==null&&(Z["/"]=oe),w.$$p=null,f=h(arguments),_=G(f),_=pe(_),f.length>0&&(A=f.shift()),A==null&&(A=Z["/"]),T=_.$$smap.chomp,T==null&&(T=!1),o===oe)return J.$enum_for("each_line",A,le(["chomp"],{chomp:T}));if(A===oe)return e.yield1(o,J),J;A=t(A,k("String"),"to_str");var Fe,it,ht,mt,Rt,wt,Mt,At;if(A.length===0){for(Fe=J.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),it=0,ht=Fe.length;it<ht;it+=2)(Fe[it]||Fe[it+1])&&(At=(Fe[it]||"")+(Fe[it+1]||""),T&&(At=At.$chomp(`
|
|
394
|
+
`)),e.yield1(o,At));return J}for(Rt=J.$chomp(A),wt=J.length!=Rt.length,Mt=Rt.split(A),it=0,mt=Mt.length;it<mt;it++)At=Mt[it],(it<mt-1||wt)&&(At+=A),T&&(At=At.$chomp(A)),e.yield1(o,At);return J},-1),c(D,"$empty?",function(){var $=this;return $.length===0}),c(D,"$end_with?",function($){var l,o,f=this;l=h(arguments),o=l;for(var _=0,A=o.length;_<A;_++){var T=t(o[_],k("String"),"to_str").$to_s();if(f.length>=T.length&&f.substr(f.length-T.length,T.length)==T)return!0}return!1},-1),c(D,"$gsub",function w($,l){var o=w.$$p||oe,f=this;if(w.$$p=null,l===void 0&&o===oe)return f.$enum_for("gsub",$);var _="",A=oe,T=0,J,Fe;$.$$is_regexp?$=n($):($=t($,k("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var it;;){if(J=$.exec(f),J===null){Z["~"]=oe,_+=f.slice(T);break}A=k("MatchData").$new($,J),l===void 0?(it=$.lastIndex,Fe=o(J[0]),$.lastIndex=it):l.$$is_hash?Fe=l["$[]"](J[0]).$to_s():(l.$$is_string||(l=t(l,k("String"),"to_str")),Fe=l.replace(/([\\]+)([0-9+&`'])/g,function(ht,mt,Rt){if(mt.length%2===0)return ht;switch(Rt){case"+":for(var wt=J.length-1;wt>0;wt--)if(J[wt]!==void 0)return mt.slice(1)+J[wt];return"";case"&":return mt.slice(1)+J[0];case"`":return mt.slice(1)+f.slice(0,J.index);case"'":return mt.slice(1)+f.slice(J.index+J[0].length);default:return mt.slice(1)+(J[Rt]||"")}}).replace(/\\\\/g,"\\")),$.lastIndex===J.index?(_+=f.slice(T,J.index)+Fe+(f[J.index]||""),$.lastIndex+=1):_+=f.slice(T,J.index)+Fe,T=$.lastIndex}return Z["~"]=A,_},-2),c(D,"$hash",function(){var $=this;return $.toString()}),c(D,"$hex",function(){var $=this;return $.$to_i(16)}),c(D,"$include?",function($){var l=this;return $.$$is_string||($=t($,k("String"),"to_str")),l.indexOf($)!==-1}),c(D,"$index",function($,l){var o=this,f,_,A;if(l===void 0)l=0;else if(l=t(l,k("Integer"),"to_int"),l<0&&(l+=o.length,l<0))return oe;if($.$$is_regexp)for(A=n($);;){if(_=A.exec(o),_===null){Z["~"]=oe,f=-1;break}if(_.index>=l){Z["~"]=k("MatchData").$new(A,_),f=_.index;break}A.lastIndex=_.index+1}else $=t($,k("String"),"to_str"),$.length===0&&l>o.length?f=-1:f=o.indexOf($,l);return f===-1?oe:f},-2),c(D,"$inspect",function(){var $=this,l=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\x07":"\\a","\x1B":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},f=$.replace(l,function(_){return o[_]?o[_]:(_=_.charCodeAt(0),_<=255&&($.encoding["$binary?"]()||$.internal_encoding["$binary?"]())?"\\x"+("00"+_.toString(16).toUpperCase()).slice(-2):"\\u"+("0000"+_.toString(16).toUpperCase()).slice(-4))});return'"'+f.replace(/\#[\$\@\{]/g,"\\$&")+'"'}),c(D,"$intern",function(){var $=this;return $.toString()}),c(D,"$length",function(){var $=this;return $.length}),we(D,"size","length"),c(D,"$lines",function w($,l){var o=w.$$p||oe,f,_,A,T,J=this,Fe=oe;return Z["/"]==null&&(Z["/"]=oe),w.$$p=null,f=h(arguments),_=G(f),_=pe(_),f.length>0&&(A=f.shift()),A==null&&(A=Z["/"]),T=_.$$smap.chomp,T==null&&(T=!1),Fe=q(J,"each_line",[A,le(["chomp"],{chomp:T})],o.$to_proc()),W(o)?J:Fe.$to_a()},-1),c(D,"$ljust",function($,l){var o=this;if(l==null&&(l=" "),$=t($,k("Integer"),"to_int"),l=t(l,k("String"),"to_str").$to_s(),W(l["$empty?"]())&&$e.$raise(k("ArgumentError"),"zero width padding"),W($<=o.length))return o;var f=-1,_="";for($-=o.length;++f<$;)_+=l;return o+_.slice(0,$)},-2),c(D,"$lstrip",function(){var $=this;return $.replace(/^[\u0000\s]*/,"")}),c(D,"$ascii_only?",function(){var $=this;return $.encoding.ascii?/^[\x00-\x7F]*$/.test($):!1}),c(D,"$match",function w($,l){var o=w.$$p||oe,f=this;return w.$$p=null,(ke(te("String"),$)||W($["$respond_to?"]("to_str")))&&($=k("Regexp").$new($.$to_str())),ke(k("Regexp"),$)||$e.$raise(k("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),q($,"match",[f,l],o.$to_proc())},-2),c(D,"$match?",function($,l){var o=this;return(ke(te("String"),$)||W($["$respond_to?"]("to_str")))&&($=k("Regexp").$new($.$to_str())),ke(k("Regexp"),$)||$e.$raise(k("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),$["$match?"](o,l)},-2),c(D,"$next",function(){var $=this,l=$.length;if(l===0)return"";for(var o=$,f=$.search(/[a-zA-Z0-9]/),_=!1,A;l--;){if(A=$.charCodeAt(l),A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122)switch(A){case 57:_=!0,A=48;break;case 90:_=!0,A=65;break;case 122:_=!0,A=97;break;default:_=!1,A+=1}else f===-1?A===255?(_=!0,A=0):(_=!1,A+=1):_=!0;if(o=o.slice(0,l)+String.fromCharCode(A)+o.slice(l+1),_&&(l===0||l===f)){switch(A){case 65:break;case 97:break;default:A+=1}l===0?o=String.fromCharCode(A)+o:o=o.slice(0,l)+String.fromCharCode(A)+o.slice(l),_=!1}if(!_)break}return o}),c(D,"$oct",function(){var $=this,l,o=$,f=8;return/^\s*_/.test(o)?0:(o=o.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(_,A,T,J){switch(J.charAt(0)){case"+":case"-":return _;case"0":if(J.charAt(1)==="x"&&T==="0x")return _}switch(T){case"0b":f=2;break;case"0":case"0o":f=8;break;case"0d":f=10;break;case"0x":f=16;break}return A+J}),l=parseInt(o.replace(/_(?!_)/g,""),f),isNaN(l)?0:l)}),c(D,"$ord",function(){var $=this;return typeof $.codePointAt=="function"?$.codePointAt(0):$.charCodeAt(0)}),c(D,"$partition",function($){var l=this,o,f;return $.$$is_regexp?(f=$.exec(l),f===null?o=-1:(k("MatchData").$new($,f),$=f[0],o=f.index)):($=t($,k("String"),"to_str"),o=l.indexOf($)),o===-1?[l,"",""]:[l.slice(0,o),l.slice(o,o+$.length),l.slice(o+$.length)]}),c(D,"$reverse",function(){var $=this;return $.split("").reverse().join("")}),c(D,"$rindex",function($,l){var o=this,f,_,A,T;if(l===void 0)l=o.length;else if(l=t(l,k("Integer"),"to_int"),l<0&&(l+=o.length,l<0))return oe;if($.$$is_regexp){for(_=null,A=n($);T=A.exec(o),!(T===null||T.index>l);)_=T,A.lastIndex=_.index+1;_===null?(Z["~"]=oe,f=-1):(k("MatchData").$new(A,_),f=_.index)}else $=t($,k("String"),"to_str"),f=o.lastIndexOf($,l);return f===-1?oe:f},-2),c(D,"$rjust",function($,l){var o=this;if(l==null&&(l=" "),$=t($,k("Integer"),"to_int"),l=t(l,k("String"),"to_str").$to_s(),W(l["$empty?"]())&&$e.$raise(k("ArgumentError"),"zero width padding"),W($<=o.length))return o;var f=Math.floor($-o.length),_=Math.floor(f/l.length),A=Array(_+1).join(l),T=f-A.length;return A+l.slice(0,T)+o},-2),c(D,"$rpartition",function($){var l=this,o,f,_,A;if($.$$is_regexp){for(f=null,_=n($);A=_.exec(l),A!==null;)f=A,_.lastIndex=f.index+1;f===null?o=-1:(k("MatchData").$new(_,f),$=f[0],o=f.index)}else $=t($,k("String"),"to_str"),o=l.lastIndexOf($);return o===-1?["","",l]:[l.slice(0,o),l.slice(o,o+$.length),l.slice(o+$.length)]}),c(D,"$rstrip",function(){var $=this;return $.replace(/[\s\u0000]*$/,"")}),c(D,"$scan",function w($,l){var o=w.$$p||oe,f,_=this;w.$$p=null,l=pe(l),f=l.$$smap.no_matchdata,f==null&&(f=!1);var A=[],T=oe,J;for($.$$is_regexp?$=n($):($=t($,k("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(J=$.exec(_))!=null;)T=k("MatchData").$new($,J,le(["no_matchdata"],{no_matchdata:f})),o===oe?J.length==1?A.push(J[0]):A.push(T.$captures()):J.length==1?e.yield1(o,J[0]):e.yield1(o,T.$captures()),$.lastIndex===J.index&&($.lastIndex+=1);return f||(Z["~"]=T),o!==oe?_:A},-2),c(D,"$singleton_class",function(){var $=this;return e.get_singleton_class($)}),c(D,"$split",function($,l){var o=this,f=oe;if(Z[";"]==null&&(Z[";"]=oe),o.length===0)return[];if(l===void 0)l=0;else if(l=d["$coerce_to!"](l,k("Integer"),"to_int"),l===1)return[o];($===void 0||$===oe)&&($=W(f=Z[";"])?f:" ");var _=[],A=o.toString(),T=0,J,Fe,it;if($.$$is_regexp?$=n($):($=t($,k("String"),"to_str").$to_s(),$===" "?($=/\s+/gm,A=A.replace(/^\s+/,"")):$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),_=A.split($),_.length===1&&_[0]===A)return[_[0]];for(;(Fe=_.indexOf(void 0))!==-1;)_.splice(Fe,1);if(l===0){for(;_[_.length-1]==="";)_.length-=1;return _}if(J=$.exec(A),l<0){if(J!==null&&J[0]===""&&$.source.indexOf("(?=")===-1)for(Fe=0,it=J.length;Fe<it;Fe++)_.push("");return _}if(J!==null&&J[0]==="")return _.splice(l-1,_.length-1,_.slice(l-1).join("")),_;if(l>=_.length)return _;for(Fe=0;J!==null&&(Fe++,T=$.lastIndex,Fe+1!==l);)J=$.exec(A);return _.splice(l-1,_.length-1,A.slice(T)),_},-1),c(D,"$squeeze",function($){var l,o,f=this;if(l=h(arguments),o=l,o.length===0)return f.replace(/(.)\1+/g,"$1");var _=B(o);return _===null?f:f.replace(new RegExp("("+_+")\\1+","g"),"$1")},-1),c(D,"$start_with?",function($){var l,o,f=this;l=h(arguments),o=l;for(var _=0,A=o.length;_<A;_++)if(o[_].$$is_regexp){var T=o[_],J=T.exec(f);if(J!=null&&J.index===0)return Z["~"]=k("MatchData").$new(T,J),!0;Z["~"]=oe}else{var Fe=t(o[_],k("String"),"to_str").$to_s();if(f.indexOf(Fe)===0)return!0}return!1},-1),c(D,"$strip",function(){var $=this;return $.replace(/^[\s\u0000]*|[\s\u0000]*$/g,"")}),c(D,"$sub",function w($,l){var o=w.$$p||oe,f=this;w.$$p=null,$.$$is_regexp||($=t($,k("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var _,A=$.exec(f);return A===null?(Z["~"]=oe,_=f.toString()):(k("MatchData").$new($,A),l===void 0?(o===oe&&$e.$raise(k("ArgumentError"),"wrong number of arguments (1 for 2)"),_=f.slice(0,A.index)+o(A[0])+f.slice(A.index+A[0].length)):l.$$is_hash?_=f.slice(0,A.index)+l["$[]"](A[0]).$to_s()+f.slice(A.index+A[0].length):(l=t(l,k("String"),"to_str"),l=l.replace(/([\\]+)([0-9+&`'])/g,function(T,J,Fe){if(J.length%2===0)return T;switch(Fe){case"+":for(var it=A.length-1;it>0;it--)if(A[it]!==void 0)return J.slice(1)+A[it];return"";case"&":return J.slice(1)+A[0];case"`":return J.slice(1)+f.slice(0,A.index);case"'":return J.slice(1)+f.slice(A.index+A[0].length);default:return J.slice(1)+(A[Fe]||"")}}).replace(/\\\\/g,"\\"),_=f.slice(0,A.index)+l+f.slice(A.index+A[0].length))),_},-2),c(D,"$sum",function($){var l=this;$==null&&($=16),$=t($,k("Integer"),"to_int");for(var o=0,f=l.length,_=0;_<f;_++)o+=l.charCodeAt(_);return $<=0?o:o&Math.pow(2,$)-1},-1),c(D,"$swapcase",function(){var $=this,l=$.replace(/([a-z]+)|([A-Z]+)/g,function(o,f,_){return f?o.toUpperCase():o.toLowerCase()});return l}),c(D,"$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}),c(D,"$to_i",function($){var l=this;$==null&&($=10);var o,f=l.toLowerCase(),_=t($,k("Integer"),"to_int");return(_===1||_<0||_>36)&&$e.$raise(k("ArgumentError"),"invalid radix "+_),/^\s*_/.test(f)?0:(f=f.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(A,T,J,Fe){switch(Fe.charAt(0)){case"+":case"-":return A;case"0":if(Fe.charAt(1)==="x"&&J==="0x"&&(_===0||_===16))return A}switch(J){case"0b":if(_===0||_===2)return _=2,T+Fe;break;case"0":case"0o":if(_===0||_===8)return _=8,T+Fe;break;case"0d":if(_===0||_===10)return _=10,T+Fe;break;case"0x":if(_===0||_===16)return _=16,T+Fe;break}return A}),o=parseInt(f.replace(/_(?!_)/g,""),_),isNaN(o)?0:o)},-1),c(D,"$to_proc",function w(){w.$$p;var $=this,l=oe,o=oe,f=oe;return w.$$p=null,l=$.valueOf(),o=e.jsid(l),f=q($e,"proc",[],function _(A){var T=_.$$p||oe,J,Fe;_.$$p=null,J=h(arguments),Fe=J,Fe.length===0&&$e.$raise(k("ArgumentError"),"no receiver given");var it=Fe[0];it==null&&(it=oe);var ht=it[o];return ht?Fe=Fe.slice(1):(ht=it.$method_missing,Fe[0]=l),typeof T=="function"&&(ht.$$p=T),Fe.length===0?ht.call(it):ht.apply(it,Fe)},-1),f.$$source_location=oe,f}),c(D,"$to_s",function(){var $=this;return $.toString()}),c(D,"$tr",function($,l){var o=this;if($=t($,k("String"),"to_str").$to_s(),l=t(l,k("String"),"to_str").$to_s(),$.length==0||$===l)return o;var f,_,A,T,J,Fe,it,ht={},mt=$.split(""),Rt=mt.length,wt=l.split(""),Mt=wt.length,At=!1,qt=null;mt[0]==="^"&&mt.length>1&&(At=!0,mt.shift(),qt=wt[Mt-1],Rt-=1);var It=[],rt=null;for(_=!1,f=0;f<Rt;f++)if(T=mt[f],rt==null)rt=T,It.push(T);else if(T==="-")rt==="-"?(It.push("-"),It.push("-")):f==Rt-1?It.push("-"):_=!0;else if(_){for(J=rt.charCodeAt(0),Fe=T.charCodeAt(0),J>Fe&&$e.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(J)+"-"+String.fromCharCode(Fe)+'" in string transliteration'),A=J+1;A<Fe;A++)It.push(String.fromCharCode(A));It.push(T),_=null,rt=null}else It.push(T);if(mt=It,Rt=mt.length,At)for(f=0;f<Rt;f++)ht[mt[f]]=!0;else{if(Mt>0){var Re=[],Be=null;for(_=!1,f=0;f<Mt;f++)if(T=wt[f],Be==null)Be=T,Re.push(T);else if(T==="-")Be==="-"?(Re.push("-"),Re.push("-")):f==Mt-1?Re.push("-"):_=!0;else if(_){for(J=Be.charCodeAt(0),Fe=T.charCodeAt(0),J>Fe&&$e.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(J)+"-"+String.fromCharCode(Fe)+'" in string transliteration'),A=J+1;A<Fe;A++)Re.push(String.fromCharCode(A));Re.push(T),_=null,Be=null}else Re.push(T);wt=Re,Mt=wt.length}var Ge=Rt-Mt;if(Ge>0){var b=Mt>0?wt[Mt-1]:"";for(f=0;f<Ge;f++)wt.push(b)}for(f=0;f<Rt;f++)ht[mt[f]]=wt[f]}var R="";for(f=0,it=o.length;f<it;f++){T=o.charAt(f);var me=ht[T];At?R+=me==null?qt:T:R+=me??T}return R}),c(D,"$tr_s",function($,l){var o=this;if($=t($,k("String"),"to_str").$to_s(),l=t(l,k("String"),"to_str").$to_s(),$.length==0)return o;var f,_,A,T,J,Fe,it,ht={},mt=$.split(""),Rt=mt.length,wt=l.split(""),Mt=wt.length,At=!1,qt=null;mt[0]==="^"&&mt.length>1&&(At=!0,mt.shift(),qt=wt[Mt-1],Rt-=1);var It=[],rt=null;for(_=!1,f=0;f<Rt;f++)if(T=mt[f],rt==null)rt=T,It.push(T);else if(T==="-")rt==="-"?(It.push("-"),It.push("-")):f==Rt-1?It.push("-"):_=!0;else if(_){for(J=rt.charCodeAt(0),Fe=T.charCodeAt(0),J>Fe&&$e.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(J)+"-"+String.fromCharCode(Fe)+'" in string transliteration'),A=J+1;A<Fe;A++)It.push(String.fromCharCode(A));It.push(T),_=null,rt=null}else It.push(T);if(mt=It,Rt=mt.length,At)for(f=0;f<Rt;f++)ht[mt[f]]=!0;else{if(Mt>0){var Re=[],Be=null;for(_=!1,f=0;f<Mt;f++)if(T=wt[f],rt==null)rt=T,Re.push(T);else if(T==="-")Be==="-"?(Re.push("-"),Re.push("-")):f==Mt-1?Re.push("-"):_=!0;else if(_){for(J=rt.charCodeAt(0),Fe=T.charCodeAt(0),J>Fe&&$e.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(J)+"-"+String.fromCharCode(Fe)+'" in string transliteration'),A=J+1;A<Fe;A++)Re.push(String.fromCharCode(A));Re.push(T),_=null,rt=null}else Re.push(T);wt=Re,Mt=wt.length}var Ge=Rt-Mt;if(Ge>0){var b=Mt>0?wt[Mt-1]:"";for(f=0;f<Ge;f++)wt.push(b)}for(f=0;f<Rt;f++)ht[mt[f]]=wt[f]}var R="",me=null;for(f=0,it=o.length;f<it;f++){T=o.charAt(f);var De=ht[T];At?De==null?me==null&&(R+=qt,me=!0):(R+=T,me=null):De!=null?(me==null||me!==De)&&(R+=De,me=De):(R+=T,me=null)}return R}),c(D,"$upcase",function(){var $=this;return $.toUpperCase()}),c(D,"$upto",function w($,l){var o=w.$$p||oe,f=this;if(w.$$p=null,l==null&&(l=!1),o===oe)return f.$enum_for("upto",$,l);var _,A,T=f.toString();if($=t($,k("String"),"to_str"),T.length===1&&$.length===1)for(_=T.charCodeAt(0),A=$.charCodeAt(0);_<=A&&!(l&&_===A);)o(String.fromCharCode(_)),_+=1;else if(parseInt(T,10).toString()===T&&parseInt($,10).toString()===$)for(_=parseInt(T,10),A=parseInt($,10);_<=A&&!(l&&_===A);)o(_.toString()),_+=1;else for(;T.length<=$.length&&T<=$&&!(l&&T===$);)o(T),T=T.$succ();return f},-2);function B(w){function $(ht){var mt="",Rt,wt=ht.length,Mt,At,qt,It,rt;for(Rt=0;Rt<wt;Rt++)if(Mt=ht.charAt(Rt),Mt==="-"&&Rt>0&&Rt<wt-1&&!At){for(qt=ht.charCodeAt(Rt-1),It=ht.charCodeAt(Rt+1),qt>It&&$e.$raise(k("ArgumentError"),'invalid range "'+qt+"-"+It+'" in string transliteration'),rt=qt+1;rt<It+1;rt++)mt+=String.fromCharCode(rt);At=!0,Rt++}else At=Mt==="\\",mt+=Mt;return mt}function l(ht,mt){if(ht.length===0)return mt;var Rt="",wt,Mt=ht.length,At;for(wt=0;wt<Mt;wt++)At=ht.charAt(wt),mt.indexOf(At)!==-1&&(Rt+=At);return Rt}var o,f,_,A,T,J,Fe="",it="";for(o=0,f=w.length;o<f;o++)_=t(w[o],k("String"),"to_str"),A=_.charAt(0)==="^"&&_.length>1,_=$(A?_.slice(1):_),A?it=l(it,_):Fe=l(Fe,_);if(Fe.length>0&&it.length>0){for(J="",o=0,f=Fe.length;o<f;o++)T=Fe.charAt(o),it.indexOf(T)===-1&&(J+=T);Fe=J,it=""}return Fe.length>0?"["+k("Regexp").$escape(Fe)+"]":it.length>0?"[^"+k("Regexp").$escape(it)+"]":null}return c(D,"$instance_variables",function(){return[]}),p(D,"$_load",function($){var l,o,f=this;return l=h(arguments),o=l,q(f,"new",j(o))},-1),c(D,"$unicode_normalize",function($){var l=this;return $==null&&($="nfc"),W(["nfc","nfd","nfkc","nfkd"]["$include?"]($))||$e.$raise(k("ArgumentError"),"Invalid normalization form "+$),l.normalize($.$upcase())},-1),c(D,"$unicode_normalized?",function($){var l=this;return $==null&&($="nfc"),l.$unicode_normalize($)["$=="](l)},-1),c(D,"$unpack",function($){return $e.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),c(D,"$unpack1",function($){return $e.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")}),c(D,"$freeze",function(){var $=this;return typeof $=="string"||i($,"$$frozen",!0),$}),c(D,"$-@",function(){var $=this;return typeof $=="string"||$.$$frozen?$:$.encoding.name=="UTF-8"&&$.internal_encoding.name=="UTF-8"?$.toString():$.$dup().$freeze()}),c(D,"$frozen?",function(){var $=this;return typeof $=="string"||$.$$frozen===!0}),we(D,"+@","dup"),we(D,"===","=="),we(D,"byteslice","[]"),we(D,"eql?","=="),we(D,"equal?","==="),we(D,"object_id","__id__"),we(D,"slice","[]"),we(D,"succ","next"),we(D,"to_str","to_s"),we(D,"to_sym","intern"),d.$pristine(D,"initialize")}("::",String,X),ce(X[0],"Symbol",Ae("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,c=e.module,d=e.send,p=e.slice,h=e.to_a,q=e.Opal,j=e.thrower,G=e.def,pe=e.Kernel,ke=e.return_val,$e=e.rb_gt,W=e.rb_times,Z=e.rb_lt,ve=e.eqeq,ae=e.rb_plus,ye=e.rb_minus,le=e.rb_divide,we=e.rb_le,ce=e.hash2,ze=e.lambda,X=e.not,Ae=e.alias,oe=[],k=e.nil,Se=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(F,de){var D=c(F,"Enumerable"),qe=[D].concat(de),te=e.$r(qe);function B(w){return w.length===0&&(w=[k]),w.length>1&&(w=[w]),w}return G(D,"$all?",function w($){try{var l=j("return"),o=w.$$p||k,f=this;return w.$$p=null,t($!==void 0)?d(f,"each",[],function(A){var T,J,Fe=k;if(T=p(arguments),J=T,Fe=B(J),t(d($,"public_send",["==="].concat(h(Fe)))))return k;l.$throw(!1)},{$$arity:-1,$$ret:l}):o!==k?d(f,"each",[],function(A){var T,J;if(T=p(arguments),J=T,t(e.yieldX(o,h(J))))return k;l.$throw(!1)},{$$arity:-1,$$ret:l}):d(f,"each",[],function(A){var T,J;if(T=p(arguments),J=T,t(q.$destructure(J)))return k;l.$throw(!1)},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),G(D,"$any?",function w($){try{var l=j("return"),o=w.$$p||k,f=this;return w.$$p=null,t($!==void 0)?d(f,"each",[],function(A){var T,J,Fe=k;if(T=p(arguments),J=T,Fe=B(J),t(d($,"public_send",["==="].concat(h(Fe)))))l.$throw(!0);else return k},{$$arity:-1,$$ret:l}):o!==k?d(f,"each",[],function(A){var T,J;if(T=p(arguments),J=T,t(e.yieldX(o,h(J))))l.$throw(!0);else return k},{$$arity:-1,$$ret:l}):d(f,"each",[],function(A){var T,J;if(T=p(arguments),J=T,t(q.$destructure(J)))l.$throw(!0);else return k},{$$arity:-1,$$ret:l}),!1}catch(_){if(_===l)return _.$v;throw _}},-1),G(D,"$chunk",function w(){var $=w.$$p||k,l=this;return w.$$p=null,$===k?d(l,"to_enum",["chunk"],function o(){var f=o.$$s==null?this:o.$$s;return f.$enumerator_size()},{$$s:l}):d(Se("Enumerator"),"new",[],function o(f){var _=o.$$s==null?this:o.$$s;f==null&&(f=k);var A=k,T=[];function J(){T.length>0&&f.$yield(A,T)}_.$each.$$p=function(Fe){var it=n($,Fe);it===k?(J(),T=[],A=k):(A===k||A===it?T.push(Fe):(J(),T=[Fe]),A=it)},_.$each(),J()},{$$s:l})}),G(D,"$chunk_while",function w(){var $=w.$$p||k,l=this;return w.$$p=null,$===k&&pe.$raise(Se("ArgumentError"),"no block given"),d(l,"slice_when",[],function(f,_){return f==null&&(f=k),_==null&&(_=k),e.yieldX($,[f,_])["$!"]()})}),G(D,"$collect",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,$===k)return d(l,"enum_for",["collect"],function f(){var _=f.$$s==null?this:f.$$s;return _.$enumerator_size()},{$$s:l});var o=[];return l.$each.$$p=function(){var f=i($,arguments);o.push(f)},l.$each(),o}),G(D,"$collect_concat",function w(){var $=w.$$p||k,l=this;return w.$$p=null,$===k?d(l,"enum_for",["collect_concat"],function o(){var f=o.$$s==null?this:o.$$s;return f.$enumerator_size()},{$$s:l}):d(l,"map",[],$.$to_proc()).$flatten(1)}),G(D,"$compact",function(){var $=this;return $.$to_a().$compact()}),G(D,"$count",function w($){var l=w.$$p||k,o=this,f=k;return w.$$p=null,f=0,$!=null&&l!==k&&o.$warn("warning: given block not used"),t($!=null)?l=d(pe,"proc",[],function(A){var T,J;return T=p(arguments),J=T,q.$destructure(J)["$=="]($)},-1):t(l["$nil?"]())&&(l=d(pe,"proc",[],ke(!0))),d(o,"each",[],function(A){var T,J;return T=p(arguments),J=T,t(i(l,J))?f++:k},-1),f},-1),G(D,"$cycle",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,$==null&&($=k),l===k)return d(o,"enum_for",["cycle",$],function T(){var J=T.$$s==null?this:T.$$s;return t($["$nil?"]())?t(J["$respond_to?"]("size"))?Se(Se("Float"),"INFINITY"):k:($=q["$coerce_to!"]($,Se("Integer"),"to_int"),t($e($,0))?W(J.$enumerator_size(),$):0)},{$$s:o});if(!t($["$nil?"]())&&($=q["$coerce_to!"]($,Se("Integer"),"to_int"),t($<=0)))return k;var f=[],_,A;if(o.$each.$$p=function(){var T=q.$destructure(arguments);n(l,T),f.push(T)},o.$each(),f.length===0)return k;if($===k)for(;;)for(_=0,A=f.length;_<A;_++)n(l,f[_]);else for(;$>1;){for(_=0,A=f.length;_<A;_++)n(l,f[_]);$--}},-1),G(D,"$detect",function w($){try{var l=j("return"),o=w.$$p||k,f=this;return w.$$p=null,o===k?f.$enum_for("detect",$):(d(f,"each",[],function(A){var T,J,Fe=k;if(T=p(arguments),J=T,Fe=q.$destructure(J),t(e.yield1(o,Fe)))l.$throw(Fe);else return k},{$$arity:-1,$$ret:l}),$!==void 0?typeof $=="function"?$():$:k)}catch(_){if(_===l)return _.$v;throw _}},-1),G(D,"$drop",function($){var l=this;$=r($,Se("Integer"),"to_int"),t($<0)&&pe.$raise(Se("ArgumentError"),"attempt to drop negative size");var o=[],f=0;return l.$each.$$p=function(){$<=f&&o.push(q.$destructure(arguments)),f++},l.$each(),o}),G(D,"$drop_while",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,$===k)return l.$enum_for("drop_while");var o=[],f=!0;return l.$each.$$p=function(){var _=q.$destructure(arguments);if(f){var A=n($,_);t(A)||(f=!1,o.push(_))}else o.push(_)},l.$each(),o}),G(D,"$each_cons",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,t(arguments.length!=1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),$=q.$try_convert($,Se("Integer"),"to_int"),t($<=0)&&pe.$raise(Se("ArgumentError"),"invalid size"),l===k)return d(o,"enum_for",["each_cons",$],function _(){var A=_.$$s==null?this:_.$$s,T=k;return T=A.$enumerator_size(),t(T["$nil?"]())?k:ve(T,0)||t(Z(T,$))?0:ae(ye(T,$),1)},{$$s:o});var f=[];return o.$each.$$p=function(){var _=q.$destructure(arguments);f.push(_),f.length>$&&f.shift(),f.length==$&&n(l,f.slice(0,$))},o.$each(),o}),G(D,"$each_entry",function w($){var l=w.$$p||k,o,f,_=this;return w.$$p=null,o=p(arguments),f=o,l===k?d(_,"to_enum",["each_entry"].concat(h(f)),function A(){var T=A.$$s==null?this:A.$$s;return T.$enumerator_size()},{$$s:_}):(_.$each.$$p=function(){var A=q.$destructure(arguments);n(l,A)},_.$each.apply(_,f),_)},-1),G(D,"$each_slice",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,$=r($,Se("Integer"),"to_int"),t($<=0)&&pe.$raise(Se("ArgumentError"),"invalid slice size"),l===k)return d(o,"enum_for",["each_slice",$],function _(){var A=_.$$s==null?this:_.$$s;return t(A["$respond_to?"]("size"))?le(A.$size(),$).$ceil():k},{$$s:o});var f=[];return o.$each.$$p=function(){var _=q.$destructure(arguments);f.push(_),f.length===$&&(n(l,f),f=[])},o.$each(),f.length>0&&n(l,f),o}),G(D,"$each_with_index",function w($){var l=w.$$p||k,o,f,_=this;if(w.$$p=null,o=p(arguments),f=o,l===k)return d(_,"enum_for",["each_with_index"].concat(h(f)),function T(){var J=T.$$s==null?this:T.$$s;return J.$enumerator_size()},{$$s:_});var A=0;return _.$each.$$p=function(){var T=q.$destructure(arguments);l(T,A),A++},_.$each.apply(_,f),_},-1),G(D,"$each_with_object",function w($){var l=w.$$p||k,o=this;return w.$$p=null,l===k?d(o,"enum_for",["each_with_object",$],function f(){var _=f.$$s==null?this:f.$$s;return _.$enumerator_size()},{$$s:o}):(o.$each.$$p=function(){var f=q.$destructure(arguments);l(f,$)},o.$each(),$)}),G(D,"$entries",function($){var l,o,f=this;l=p(arguments),o=l;var _=[];return f.$each.$$p=function(){_.push(q.$destructure(arguments))},f.$each.apply(f,o),_},-1),G(D,"$filter_map",function w(){var $=w.$$p||k,l=this;return w.$$p=null,$===k?d(l,"enum_for",["filter_map"],function o(){var f=o.$$s==null?this:o.$$s;return f.$enumerator_size()},{$$s:l}):d(d(l,"map",[],$.$to_proc()),"select",[],"itself".$to_proc())}),G(D,"$find_all",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,$===k)return d(l,"enum_for",["find_all"],function f(){var _=f.$$s==null?this:f.$$s;return _.$enumerator_size()},{$$s:l});var o=[];return l.$each.$$p=function(){var f=q.$destructure(arguments),_=n($,f);t(_)&&o.push(f)},l.$each(),o}),G(D,"$find_index",function w($){try{var l=j("return"),o=w.$$p||k,f=this,_=k;return w.$$p=null,t($===void 0&&o===k)?f.$enum_for("find_index"):($!=null&&o!==k&&f.$warn("warning: given block not used"),_=0,t($!=null)?d(f,"each",[],function(T){var J,Fe;return J=p(arguments),Fe=J,ve(q.$destructure(Fe),$)&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}):d(f,"each",[],function(T){var J,Fe;return J=p(arguments),Fe=J,t(e.yieldX(o,h(Fe)))&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}),k)}catch(A){if(A===l)return A.$v;throw A}},-1),G(D,"$first",function($){try{var l=j("return"),o=this,f=k,_=k;return t($===void 0)?d(o,"each",[],function(T){T==null&&(T=k),l.$throw(T)},{$$ret:l}):(f=[],$=r($,Se("Integer"),"to_int"),t($<0)&&pe.$raise(Se("ArgumentError"),"attempt to take negative size"),t($==0)?[]:(_=0,d(o,"each",[],function(T){var J,Fe;if(J=p(arguments),Fe=J,f.push(q.$destructure(Fe)),t($<=++_))l.$throw(f);else return k},{$$arity:-1,$$ret:l}),f))}catch(A){if(A===l)return A.$v;throw A}},-1),G(D,"$grep",function w($){var l=w.$$p||k,o=this,f=k;return w.$$p=null,f=[],d(o,"each",[],function(A){var T,J,Fe=k;return T=p(arguments),J=T,Fe=B(J),t(d($,"__send__",["==="].concat(h(Fe))))?(l!==k?(t($e(J.$length(),1))&&(J=[J]),J=e.yieldX(l,h(J))):t(we(J.$length(),1))&&(J=J["$[]"](0)),f.$push(J)):k},-1),f}),G(D,"$grep_v",function w($){var l=w.$$p||k,o=this,f=k;return w.$$p=null,f=[],d(o,"each",[],function(A){var T,J,Fe=k;return T=p(arguments),J=T,Fe=B(J),t(d($,"__send__",["==="].concat(h(Fe))))?k:(l!==k?(t($e(J.$length(),1))&&(J=[J]),J=e.yieldX(l,h(J))):t(we(J.$length(),1))&&(J=J["$[]"](0)),f.$push(J))},-1),f}),G(D,"$group_by",function w(){var $=w.$$p||k,l,o=this,f=k,_=k;return w.$$p=null,$===k?d(o,"enum_for",["group_by"],function A(){var T=A.$$s==null?this:A.$$s;return T.$enumerator_size()},{$$s:o}):(f=ce([],{}),o.$each.$$p=function(){var A=q.$destructure(arguments),T=n($,A);(t(_=f["$[]"](T))?_:(l=[T,[]],d(f,"[]=",l),l[l.length-1]))["$<<"](A)},o.$each(),f)}),G(D,"$include?",function($){try{var l=j("return"),o=this;return d(o,"each",[],function(_){var A,T;if(A=p(arguments),T=A,ve(q.$destructure(T),$))l.$throw(!0);else return k},{$$arity:-1,$$ret:l}),!1}catch(f){if(f===l)return f.$v;throw f}}),G(D,"$inject",function w($,l){var o=w.$$p||k,f=this;w.$$p=null;var _=$;return o!==k&&l===void 0?f.$each.$$p=function(){var A=q.$destructure(arguments);if(_===void 0){_=A;return}A=i(o,[_,A]),_=A}:(l===void 0&&(Se("Symbol")["$==="]($)||pe.$raise(Se("TypeError"),""+$.$inspect()+" is not a Symbol"),l=$,_=void 0),f.$each.$$p=function(){var A=q.$destructure(arguments);if(_===void 0){_=A;return}_=_.$__send__(l,A)}),f.$each(),_??k},-1),G(D,"$lazy",function(){var $=this;return d(Se(Se("Enumerator"),"Lazy"),"new",[$,$.$enumerator_size()],function(o,f){var _,A;return o==null&&(o=k),_=p(arguments,1),A=_,d(o,"yield",h(A))},-2)}),G(D,"$enumerator_size",function(){var $=this;return t($["$respond_to?"]("size"))?$.$size():k}),G(D,"$max",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,$===void 0||$===k){var f,_;return o.$each.$$p=function(){var A=q.$destructure(arguments);if(f===void 0){f=A;return}l!==k?_=i(l,[A,f]):_=A["$<=>"](f),_===k&&pe.$raise(Se("ArgumentError"),"comparison failed"),_>0&&(f=A)},o.$each(),f===void 0?k:f}return $=r($,Se("Integer"),"to_int"),d(o,"sort",[],l.$to_proc()).$reverse().$first($)},-1),G(D,"$max_by",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,$==null&&($=k),!t(l))return d(o,"enum_for",["max_by",$],function A(){var T=A.$$s==null?this:A.$$s;return T.$enumerator_size()},{$$s:o});if(!t($["$nil?"]()))return d(o,"sort_by",[],l.$to_proc()).$reverse().$take($);var f,_;return o.$each.$$p=function(){var A=q.$destructure(arguments),T=n(l,A);if(f===void 0){f=A,_=T;return}T["$<=>"](_)>0&&(f=A,_=T)},o.$each(),f===void 0?k:f},-1),G(D,"$min",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,$==null&&($=k),!t($["$nil?"]()))return l!==k?d(o,"sort",[],function(A,T){return A==null&&(A=k),T==null&&(T=k),e.yieldX(l,[A,T])}).$take($):o.$sort().$take($);var f;return l!==k?o.$each.$$p=function(){var _=q.$destructure(arguments);if(f===void 0){f=_;return}var A=l(_,f);A===k&&pe.$raise(Se("ArgumentError"),"comparison failed"),A<0&&(f=_)}:o.$each.$$p=function(){var _=q.$destructure(arguments);if(f===void 0){f=_;return}q.$compare(_,f)<0&&(f=_)},o.$each(),f===void 0?k:f},-1),G(D,"$min_by",function w($){var l=w.$$p||k,o=this;if(w.$$p=null,$==null&&($=k),!t(l))return d(o,"enum_for",["min_by",$],function A(){var T=A.$$s==null?this:A.$$s;return T.$enumerator_size()},{$$s:o});if(!t($["$nil?"]()))return d(o,"sort_by",[],l.$to_proc()).$take($);var f,_;return o.$each.$$p=function(){var A=q.$destructure(arguments),T=n(l,A);if(f===void 0){f=A,_=T;return}T["$<=>"](_)<0&&(f=A,_=T)},o.$each(),f===void 0?k:f},-1),G(D,"$minmax",function w(){var $=w.$$p||k,l=this,o=k;w.$$p=null,$=t(o=$)?o:d(pe,"proc",[],function(J,Fe){return J==null&&(J=k),Fe==null&&(Fe=k),J["$<=>"](Fe)});var f=k,_=k,A=!0;return l.$each.$$p=function(){var T=q.$destructure(arguments);if(A)f=_=T,A=!1;else{var J=$.$call(f,T);J===k?pe.$raise(Se("ArgumentError"),"comparison failed"):J>0&&(f=T);var Fe=$.$call(_,T);Fe===k?pe.$raise(Se("ArgumentError"),"comparison failed"):Fe<0&&(_=T)}},l.$each(),[f,_]}),G(D,"$minmax_by",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,!t($))return d(l,"enum_for",["minmax_by"],function T(){var J=T.$$s==null?this:T.$$s;return J.$enumerator_size()},{$$s:l});var o=k,f=k,_,A;return l.$each.$$p=function(){var T=q.$destructure(arguments),J=n($,T);(_===void 0||J["$<=>"](_)<0)&&(o=T,_=J),(A===void 0||J["$<=>"](A)>0)&&(f=T,A=J)},l.$each(),[o,f]}),G(D,"$none?",function w($){try{var l=j("return"),o=w.$$p||k,f=this;return w.$$p=null,t($!==void 0)?d(f,"each",[],function(A){var T,J,Fe=k;if(T=p(arguments),J=T,Fe=B(J),t(d($,"public_send",["==="].concat(h(Fe)))))l.$throw(!1);else return k},{$$arity:-1,$$ret:l}):o!==k?d(f,"each",[],function(A){var T,J;if(T=p(arguments),J=T,t(e.yieldX(o,h(J))))l.$throw(!1);else return k},{$$arity:-1,$$ret:l}):d(f,"each",[],function(A){var T,J,Fe=k;if(T=p(arguments),J=T,Fe=q.$destructure(J),t(Fe))l.$throw(!1);else return k},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),G(D,"$one?",function w($){try{var l=j("return"),o=w.$$p||k,f=this,_=k;return w.$$p=null,_=0,t($!==void 0)?d(f,"each",[],function(T){var J,Fe,it=k;if(J=p(arguments),Fe=J,it=B(Fe),t(d($,"public_send",["==="].concat(h(it)))))if(_=ae(_,1),t($e(_,1)))l.$throw(!1);else return k;else return k},{$$arity:-1,$$ret:l}):o!==k?d(f,"each",[],function(T){var J,Fe;if(J=p(arguments),Fe=J,!t(e.yieldX(o,h(Fe))))return k;if(_=ae(_,1),t($e(_,1)))l.$throw(!1);else return k},{$$arity:-1,$$ret:l}):d(f,"each",[],function(T){var J,Fe;if(J=p(arguments),Fe=J,!t(q.$destructure(Fe)))return k;if(_=ae(_,1),t($e(_,1)))l.$throw(!1);else return k},{$$arity:-1,$$ret:l}),_["$=="](1)}catch(A){if(A===l)return A.$v;throw A}},-1),G(D,"$partition",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,$===k)return d(l,"enum_for",["partition"],function _(){var A=_.$$s==null?this:_.$$s;return A.$enumerator_size()},{$$s:l});var o=[],f=[];return l.$each.$$p=function(){var _=q.$destructure(arguments),A=n($,_);t(A)?o.push(_):f.push(_)},l.$each(),[o,f]}),G(D,"$reject",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,$===k)return d(l,"enum_for",["reject"],function f(){var _=f.$$s==null?this:f.$$s;return _.$enumerator_size()},{$$s:l});var o=[];return l.$each.$$p=function(){var f=q.$destructure(arguments),_=n($,f);t(_)||o.push(f)},l.$each(),o}),G(D,"$reverse_each",function w(){var $=w.$$p||k,l=this;if(w.$$p=null,$===k)return d(l,"enum_for",["reverse_each"],function _(){var A=_.$$s==null?this:_.$$s;return A.$enumerator_size()},{$$s:l});var o=[];l.$each.$$p=function(){o.push(arguments)},l.$each();for(var f=o.length-1;f>=0;f--)i($,o[f]);return o}),G(D,"$slice_before",function w($){var l=w.$$p||k,o=this;return w.$$p=null,t($===void 0&&l===k)&&pe.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==k||arguments.length>1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),d(Se("Enumerator"),"new",[],function f(_){var A=f.$$s==null?this:f.$$s;_==null&&(_=k);var T=[];l!==k?$===void 0?A.$each.$$p=function(){var J=q.$destructure(arguments),Fe=n(l,J);t(Fe)&&T.length>0&&(_["$<<"](T),T=[]),T.push(J)}:A.$each.$$p=function(){var J=q.$destructure(arguments),Fe=l(J,$.$dup());t(Fe)&&T.length>0&&(_["$<<"](T),T=[]),T.push(J)}:A.$each.$$p=function(){var J=q.$destructure(arguments),Fe=$["$==="](J);t(Fe)&&T.length>0&&(_["$<<"](T),T=[]),T.push(J)},A.$each(),T.length>0&&_["$<<"](T)},{$$s:o})},-1),G(D,"$slice_after",function w($){var l=w.$$p||k,o=this;return w.$$p=null,t($===void 0&&l===k)&&pe.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==k||arguments.length>1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t($!==void 0)&&(l=d(pe,"proc",[],function(_){return _==null&&(_=k),$["$==="](_)})),d(Se("Enumerator"),"new",[],function f(_){var A=f.$$s==null?this:f.$$s;_==null&&(_=k);var T;A.$each.$$p=function(){var J=q.$destructure(arguments),Fe=n(l,J);T==null&&(T=[]),t(Fe)?(T.push(J),_.$yield(T),T=null):T.push(J)},A.$each(),T!=null&&_.$yield(T)},{$$s:o})},-1),G(D,"$slice_when",function w(){var $=w.$$p||k,l=this;return w.$$p=null,$===k&&pe.$raise(Se("ArgumentError"),"wrong number of arguments (0 for 1)"),d(Se("Enumerator"),"new",[],function o(f){var _=o.$$s==null?this:o.$$s;f==null&&(f=k);var A=k,T=k;_.$each_cons.$$p=function(){var J=q.$destructure(arguments),Fe=J[0],it=J[1],ht=i($,[Fe,it]);T=it,A===k&&(A=[]),t(ht)?(A.push(Fe),f.$yield(A),A=[]):A.push(Fe)},_.$each_cons(2),A!==k&&(A.push(T),f.$yield(A))},{$$s:l})}),G(D,"$sort",function w(){var $=w.$$p||k,l=this,o=k;return w.$$p=null,o=l.$to_a(),$===k&&($=ze(function(_,A){return _==null&&(_=k),A==null&&(A=k),_["$<=>"](A)})),d(o,"sort",[],$.$to_proc())}),G(D,"$sort_by",function w(){var $=w.$$p||k,l=this,o=k;return w.$$p=null,$===k?d(l,"enum_for",["sort_by"],function f(){var _=f.$$s==null?this:f.$$s;return _.$enumerator_size()},{$$s:l}):(o=d(l,"map",[],function(){var _=k;return _=q.$destructure(arguments),[e.yield1($,_),_]}),d(o,"sort!",[],function(_,A){return _==null&&(_=k),A==null&&(A=k),_[0]["$<=>"](A[0])}),d(o,"map!",[],function(_){return _==null&&(_=k),_[1]}))}),G(D,"$sum",function w($){var l=w.$$p||k,o=this,f=k,_=k;return w.$$p=null,$==null&&($=0),f=$,_=0,d(o,"each",[],function(T){var J,Fe,it=k,ht=k,mt=k;return J=p(arguments),Fe=J,it=l!==k?e.yieldX(l,h(Fe)):q.$destructure(Fe),X([Se(Se("Float"),"INFINITY"),Se(Se("Float"),"INFINITY")["$-@"]()]["$include?"](it))&&t(it["$respond_to?"]("-"))?(ht=ye(it,_),mt=ae(f,ht),_=ye(ye(mt,f),ht),f=mt):f=ae(f,it)},-1),f},-1),G(D,"$take",function($){var l=this;return l.$first($)}),G(D,"$take_while",function w(){try{var $=j("return"),l=w.$$p||k,o=this,f=k;return w.$$p=null,t(l)?(f=[],d(o,"each",[],function(A){var T,J,Fe=k;return T=p(arguments),J=T,Fe=q.$destructure(J),t(e.yield1(l,Fe))||$.$throw(f),f.push(Fe)},{$$arity:-1,$$ret:$})):o.$enum_for("take_while")}catch(_){if(_===$)return _.$v;throw _}}),G(D,"$uniq",function w(){var $=w.$$p||k,l=this,o=k;return w.$$p=null,o=ce([],{}),d(l,"each",[],function(_){var A,T,J,Fe=k,it=k;return A=p(arguments),T=A,Fe=q.$destructure(T),it=$!==k?e.yield1($,Fe):Fe,t(o["$key?"](it))?k:(J=[it,Fe],d(o,"[]=",J),J[J.length-1])},-1),o.$values()}),G(D,"$tally",function($){var l=this,o=k;return $&&$!==k&&s($),o=d(d(l,"group_by",[],"itself".$to_proc()),"transform_values",[],"count".$to_proc()),t($)?(d(o,"each",[],function(_,A){var T;return _==null&&(_=k),A==null&&(A=k),T=[_,ae($.$fetch(_,0),A)],d($,"[]=",T),T[T.length-1]}),$):o},-1),G(D,"$to_h",function w($){var l=w.$$p||k,o,f,_=this;if(w.$$p=null,o=p(arguments),f=o,l!==k)return d(d(_,"map",[],l.$to_proc()),"to_h",h(f));var A=ce([],{});return _.$each.$$p=function(){var T=q.$destructure(arguments),J=q["$coerce_to?"](T,Se("Array"),"to_ary"),Fe,it;J.$$is_array||pe.$raise(Se("TypeError"),"wrong element type "+J.$class()+" (expected array)"),J.length!==2&&pe.$raise(Se("ArgumentError"),"wrong array length (expected 2, was "+J.$length()+")"),Fe=J[0],it=J[1],e.hash_put(A,Fe,it)},_.$each.apply(_,f),A},-1),G(D,"$to_set",function w($,l){var o=w.$$p||k,f,_,A,T=this;return w.$$p=null,f=p(arguments),f.length>0&&(_=f.shift()),_==null&&(_=te("Set")),A=f,d(_,"new",[T].concat(h(A)),o.$to_proc())},-1),G(D,"$zip",function w($){w.$$p;var l,o,f=this;return w.$$p=null,l=p(arguments),o=l,d(f.$to_a(),"zip",h(o))},-1),Ae(D,"find","detect"),Ae(D,"filter","find_all"),Ae(D,"flat_map","collect_concat"),Ae(D,"map","collect"),Ae(D,"member?","include?"),Ae(D,"reduce","inject"),Ae(D,"select","find_all"),Ae(D,"to_a","entries")}("::",oe)};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,c=e.def,d=e.rb_gt,p=e.rb_lt,h=e.rb_le,q=e.rb_ge,j=e.rb_plus,G=e.rb_minus,pe=e.eqeqeq,ke=e.not,$e=e.rb_times,W=e.rb_divide,Z=e.alias,ve=[],ae=e.nil,ye=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(le,we,ce){var ze=t(le,we,"Enumerator"),X=[ze].concat(ce);return function(Ae,oe,k){var Se=t(Ae,oe,"ArithmeticSequence"),F=[Se].concat(k),de=e.$r(F),D=Se.$$prototype;D.step_arg2=D.receiver_num=D.step_arg1=D.step=D.range=D.topfx=D.bypfx=D.creation_method=D.skipped_arg=ae,e.prop(Se.$$prototype,"$$is_arithmetic_seq",!0);var qe=1/0;return c(Se,"$initialize",function(B,w,$){var l,o=this,f=ae;return $==null&&($="step"),o.creation_method=$,r(B["$is_a?"](ye("Array")))?(l=[].concat(n(B)),o.step_arg1=l[0]==null?ae:l[0],o.step_arg2=l[1]==null?ae:l[1],o.topfx=l[2]==null?ae:l[2],o.bypfx=l[3]==null?ae:l[3],o.receiver_num=w,o.step=1,o.range=r(o.step_arg2)?(o.step=o.step_arg2,e.Range.$new(o.receiver_num,o.step_arg1,!1)):r(o.step_arg1)?e.Range.$new(o.receiver_num,o.step_arg1,!1):e.Range.$new(o.receiver_num,ae,!1)):(r(w)||(o.skipped_arg=!0),l=[B,r(f=w)?f:1],o.range=l[0],o.step=l[1]),o.object=o,i(o.step,0)&&s.$raise(de("ArgumentError"),"step can't be 0"),r(o.step["$respond_to?"]("to_int"))?ae:s.$raise(de("ArgumentError"),"no implicit conversion of "+o.step.$class()+" into Integer")},-2),Se.$attr_reader("step"),c(Se,"$begin",function(){var B=this;return B.range.$begin()}),c(Se,"$end",function(){var B=this;return B.range.$end()}),c(Se,"$exclude_end?",function(){var B=this;return B.range["$exclude_end?"]()}),c(Se,"$_lesser_than_end?",function(B){var w=this,$=ae,l=ae;return $=r(l=w.$end())?l:qe,r(d(w.$step(),0))?r(w["$exclude_end?"]())?p(B,$):h(B,$):r(w["$exclude_end?"]())?d(B,$):q(B,$)}),c(Se,"$_greater_than_begin?",function(B){var w=this,$=ae,l=ae;return $=r(l=w.$begin())?l:qe["$-@"](),r(d(w.$step(),0))?d(B,$):p(B,$)}),c(Se,"$first",function(B){var w=this,$=ae,l=ae,o=ae;if($=r(l=w.$begin())?l:qe["$-@"](),!r(B))return r(w["$_lesser_than_end?"]($))?$:ae;for(o=[];r(r(l=w["$_lesser_than_end?"]($))?d(B,0):l);)o["$<<"]($),$=j($,w.$step()),B=G(B,1);return o},-1),c(Se,"$each",function te(){var B=te.$$p||ae,w=this,$=ae,l=ae;if(te.$$p=null,B===ae)return w;for(pe(ae,$=w.$begin())&&s.$raise(de("TypeError"),"nil can't be coerced into Integer"),l=r($=w.$begin())?$:qe["$-@"]();r(w["$_lesser_than_end?"](l));)e.yield1(B,l),l=j(l,w.$step());return w}),c(Se,"$last",function(B){var w=this,$=ae,l=ae,o=ae;if(pe(qe,$=w.$end())||pe(qe["$-@"](),$)?s.$raise(ye("FloatDomainError"),w.$end()):pe(ae,$)&&s.$raise(ye("RangeError"),"cannot get the last element of endless arithmetic sequence"),l=G(w.$end(),G(w.$end(),w.$begin())["$%"](w.$step())),r(w["$_lesser_than_end?"](l))||(l=G(l,w.$step())),!r(B))return r(w["$_greater_than_begin?"](l))?l:ae;for(o=[];r(r($=w["$_greater_than_begin?"](l))?d(B,0):$);)o["$<<"](l),l=G(l,w.$step()),B=G(B,1);return o.$reverse()},-1),c(Se,"$size",function(){var B=this,w=ae,$=ae;return w=r(d(B.$step(),0))?1:-1,ke(B["$_lesser_than_end?"](B.$begin()))?0:r([qe["$-@"](),qe]["$include?"](B.$step()))?1:r([$e(qe["$-@"](),w),ae]["$include?"](B.$begin()))||r([$e(qe,w),ae]["$include?"](B.$end()))?qe:($=G(B.$end(),G(B.$end(),B.$begin())["$%"](B.$step())),r(B["$_lesser_than_end?"]($))||($=G($,B.$step())),j(W(G($,B.$begin()),B.$step()).$abs().$to_i(),1))}),c(Se,"$==",function(B){var w=this,$=ae,l=ae,o=ae,f=ae;return r($=r(l=r(o=r(f=w.$class()["$=="](B.$class()))?w.$begin()["$=="](B.$begin()):f)?w.$end()["$=="](B.$end()):o)?w.$step()["$=="](B.$step()):l)?w["$exclude_end?"]()["$=="](B["$exclude_end?"]()):$}),c(Se,"$hash",function(){var B=this;return[B.$begin(),B.$end(),B.$step(),B["$exclude_end?"]()].$hash()}),c(Se,"$inspect",function(){var B=this,w=ae;return r(B.receiver_num)?(w=r(B.step_arg2)?"("+B.topfx+B.step_arg1.$inspect()+", "+B.bypfx+B.step_arg2.$inspect()+")":r(B.step_arg1)?"("+B.topfx+B.step_arg1.$inspect()+")":ae,"("+B.receiver_num.$inspect()+"."+B.creation_method+w+")"):(w=r(B.skipped_arg)?ae:"("+B.step+")","(("+B.range.$inspect()+")."+B.creation_method+w+")")}),Z(Se,"===","=="),Z(Se,"eql?","==")}(ze,ze,X)}("::",null,ve)};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,c=e.to_a,d=e.truthy,p=e.rb_plus,h=e.thrower,q=e.nil,j=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(G,pe){var ke=r(G,pe,"Enumerator");return function($e,W){var Z=r($e,W,"Chain"),ve=Z.$$prototype;return ve.enums=ve.iterated=q,i(Z,"$initialize",function(ye){var le,we,ce=this;return le=n(arguments),we=le,t(ce),ce.enums=we,ce.iterated=[],ce.object=ce},-1),i(Z,"$each",function ae(ye){var le=ae.$$p||q,we,ce,ze=this;return ae.$$p=null,we=n(arguments),ce=we,le===q?s(ze,"to_enum",["each"].concat(c(ce)),function X(){var Ae=X.$$s==null?this:X.$$s;return Ae.$size()},{$$s:ze}):(s(ze.enums,"each",[],function X(Ae){var oe=X.$$s==null?this:X.$$s;return oe.iterated==null&&(oe.iterated=q),Ae==null&&(Ae=q),oe.iterated["$<<"](Ae),s(Ae,"each",c(ce),le.$to_proc())},{$$s:ze}),ze)},-1),i(Z,"$size",function(ye){try{var le=h("return"),we,ce,ze=this,X=q;return we=n(arguments),ce=we,X=0,s(ze.enums,"each",[],function(oe){var k=q;return oe==null&&(oe=q),k=s(oe,"size",c(ce)),d([q,j(j("Float"),"INFINITY")]["$include?"](k))&&le.$throw(k),X=p(X,k)},{$$ret:le}),X}catch(Ae){if(Ae===le)return Ae.$v;throw Ae}},-1),i(Z,"$rewind",function(){var ye=this;return s(ye.iterated,"reverse_each",[],function(we){return we==null&&(we=q),d(we["$respond_to?"]("rewind"))?we.$rewind():q}),ye.iterated=[],ye}),i(Z,"$inspect",function(){var ye=this;return"#<Enumerator::Chain: "+ye.enums.$inspect()+">"})}(ke,ke)}("::",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,c=e.slice,d=e.send,p=[],h=e.nil,q=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(j,G,pe){var ke=r(j,G,"Enumerator"),$e=[ke].concat(pe);return function(W,Z,ve){var ae=r(W,Z,"Generator"),ye=[ae].concat(ve),le=e.$r(ye),we=ae.$$prototype;return we.block=h,ae.$include(q("Enumerable")),s(ae,"$initialize",function ce(){var ze=ce.$$p||h,X=this;return ce.$$p=null,t(X),n(ze)||i.$raise(q("LocalJumpError"),"no block given"),X.block=ze}),s(ae,"$each",function ce(ze){var X=ce.$$p||h,Ae,oe,k=this,Se=h;ce.$$p=null,Ae=c(arguments),oe=Ae,Se=d(le("Yielder"),"new",[],X.$to_proc());try{oe.unshift(Se),e.yieldX(k.block,oe)}catch(F){if(F&&F.$thrower_type=="breaker")return F.$v;throw F}return k},-1)}($e[0],null,$e)}(p[0],null,p)};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,c=e.klass,d=e.slice,p=e.send2,h=e.find_super,q=e.to_a,j=e.defs,G=e.Kernel,pe=e.send,ke=e.def,$e=e.return_self,W=e.Opal,Z=e.rb_lt,ve=e.eqeqeq,ae=e.rb_plus,ye=e.alias,le=[],we=e.nil,ce=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(ze,X,Ae){var oe=c(ze,X,"Enumerator"),k=[oe].concat(Ae);return function(Se,F,de){var D=c(Se,F,"Lazy"),qe=[D].concat(de),te=e.$r(qe),B=D.$$prototype;return B.enumerator=we,c(D,ce("Exception"),"StopLazyError"),j(D,"$for",function w($,l){var o,f,_=w.$$p||we,A=this,T=we;return w.$$p=null,o=d(arguments,1),f=o,T=p(A,h(A,"for",w,!1,!0),"for",[$].concat(q(f)),_),T.enumerator=$,T},-2),ke(D,"$initialize",function w($,l){var o=w.$$p||we,f=this;return w.$$p=null,l==null&&(l=we),s(f),o===we&&G.$raise(ce("ArgumentError"),"tried to call lazy new without a block"),f.enumerator=$,p(f,h(f,"initialize",w,!1,!0),"initialize",[l],function(A,T){var J,Fe;A==null&&(A=we),J=d(arguments,1),Fe=J;try{return pe($,"each",q(Fe),function(ht){var mt,Rt;mt=d(arguments),Rt=mt,Rt.unshift(A),i(o,Rt)},-1)}catch(it){if(e.rescue(it,[te("StopLazyError")]))try{return we}finally{e.pop_exception()}else throw it}},-2)},-2),ke(D,"$lazy",$e),ke(D,"$collect",function w(){var $=w.$$p||we,l=this;return w.$$p=null,t($)||G.$raise(ce("ArgumentError"),"tried to call lazy map without a block"),pe(te("Lazy"),"new",[l,l.$enumerator_size()],function(f,_){var A,T;f==null&&(f=we),A=d(arguments,1),T=A;var J=i($,T);f.$yield(J)},-2)}),ke(D,"$collect_concat",function w(){var $=w.$$p||we,l=this;return w.$$p=null,t($)||G.$raise(ce("ArgumentError"),"tried to call lazy map without a block"),pe(te("Lazy"),"new",[l,we],function(f,_){var A,T;f==null&&(f=we),A=d(arguments,1),T=A;var J=i($,T);if(J["$respond_to?"]("force")&&J["$respond_to?"]("each"))pe(J,"each",[],function(ht){return ht==null&&(ht=we),f.$yield(ht)});else{var Fe=W.$try_convert(J,ce("Array"),"to_ary");Fe===we?f.$yield(J):pe(J,"each",[],function(ht){return ht==null&&(ht=we),f.$yield(ht)})}},-2)}),ke(D,"$drop",function($){var l=this,o=we,f=we,_=we;return $=r($,ce("Integer"),"to_int"),t(Z($,0))&&G.$raise(ce("ArgumentError"),"attempt to drop negative size"),o=l.$enumerator_size(),f=ve(ce("Integer"),o)&&t(Z($,o))?$:o,_=0,pe(te("Lazy"),"new",[l,f],function(T,J){var Fe,it;return T==null&&(T=we),Fe=d(arguments,1),it=Fe,t(Z(_,$))?_=ae(_,1):pe(T,"yield",q(it))},-2)}),ke(D,"$drop_while",function w(){var $=w.$$p||we,l=this,o=we;return w.$$p=null,t($)||G.$raise(ce("ArgumentError"),"tried to call lazy drop_while without a block"),o=!0,pe(te("Lazy"),"new",[l,we],function(_,A){var T,J;if(_==null&&(_=we),T=d(arguments,1),J=T,t(o)){var Fe=i($,J);t(Fe)||(o=!1,pe(_,"yield",q(J)))}else return pe(_,"yield",q(J))},-2)}),ke(D,"$enum_for",function w($,l){var o=w.$$p||we,f,_,A,T=this;return w.$$p=null,f=d(arguments),f.length>0&&(_=f.shift()),_==null&&(_="each"),A=f,pe(T.$class(),"for",[T,_].concat(q(A)),o.$to_proc())},-1),ke(D,"$find_all",function w(){var $=w.$$p||we,l=this;return w.$$p=null,t($)||G.$raise(ce("ArgumentError"),"tried to call lazy select without a block"),pe(te("Lazy"),"new",[l,we],function(f,_){var A,T;f==null&&(f=we),A=d(arguments,1),T=A;var J=i($,T);t(J)&&pe(f,"yield",q(T))},-2)}),ke(D,"$grep",function w($){var l=w.$$p||we,o=this;return w.$$p=null,t(l)?pe(te("Lazy"),"new",[o,we],function(_,A){var T,J;_==null&&(_=we),T=d(arguments,1),J=T;var Fe=W.$destructure(J),it=$["$==="](Fe);t(it)&&(it=n(l,Fe),_.$yield(n(l,Fe)))},-2):pe(te("Lazy"),"new",[o,we],function(_,A){var T,J;_==null&&(_=we),T=d(arguments,1),J=T;var Fe=W.$destructure(J),it=$["$==="](Fe);t(it)&&_.$yield(Fe)},-2)}),ke(D,"$reject",function w(){var $=w.$$p||we,l=this;return w.$$p=null,t($)||G.$raise(ce("ArgumentError"),"tried to call lazy reject without a block"),pe(te("Lazy"),"new",[l,we],function(f,_){var A,T;f==null&&(f=we),A=d(arguments,1),T=A;var J=i($,T);t(J)||pe(f,"yield",q(T))},-2)}),ke(D,"$take",function($){var l=this,o=we,f=we,_=we;return $=r($,ce("Integer"),"to_int"),t(Z($,0))&&G.$raise(ce("ArgumentError"),"attempt to take negative size"),o=l.$enumerator_size(),f=ve(ce("Integer"),o)&&t(Z($,o))?$:o,_=0,pe(te("Lazy"),"new",[l,f],function(T,J){var Fe,it;return T==null&&(T=we),Fe=d(arguments,1),it=Fe,t(Z(_,$))?(pe(T,"yield",q(it)),_=ae(_,1)):G.$raise(te("StopLazyError"))},-2)}),ke(D,"$take_while",function w(){var $=w.$$p||we,l=this;return w.$$p=null,t($)||G.$raise(ce("ArgumentError"),"tried to call lazy take_while without a block"),pe(te("Lazy"),"new",[l,we],function(f,_){var A,T;f==null&&(f=we),A=d(arguments,1),T=A;var J=i($,T);t(J)?pe(f,"yield",q(T)):G.$raise(te("StopLazyError"))},-2)}),ke(D,"$inspect",function(){var $=this;return"#<"+$.$class()+": "+$.enumerator.$inspect()+">"}),ye(D,"force","to_a"),ye(D,"filter","find_all"),ye(D,"flat_map","collect_concat"),ye(D,"map","collect"),ye(D,"select","find_all"),ye(D,"to_enum","enum_for")}(oe,oe,k)}("::",null,le)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,c=[],d=e.nil;return e.add_stubs("yield,proc"),function(p,h,q){var j=t(p,h,"Enumerator"),G=[j].concat(q);return function(pe,ke){var $e=t(pe,ke,"Yielder"),W=$e.$$prototype;return W.block=d,r($e,"$initialize",function Z(){var ve=Z.$$p||d,ae=this;return Z.$$p=null,ae.block=ve,ae}),r($e,"$yield",function(ve){var ae,ye,le=this;ae=n(arguments),ye=ae;var we=e.yieldX(le.block,ye);if(we&&we.$thrower_type=="break")throw we;return we},-1),r($e,"$<<",function(ve){var ae=this;return ae.$yield(ve),ae}),r($e,"$to_proc",function(){var ve=this;return i(ve,"proc",[],function ae(ye){var le,we,ce=ae.$$s==null?this:ae.$$s;return le=n(arguments),we=le,i(ce,"yield",s(we))},{$$arity:-1,$$s:ve})})}(G[0],null)}(c[0],null,c)};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,c=e.truthy,d=e.send,p=e.not,h=e.def,q=e.rb_plus,j=e.to_a,G=e.Opal,pe=e.send2,ke=e.find_super,$e=e.rb_ge,W=e.Kernel,Z=e.rb_le,ve=e.alias,ae=e.top,ye=[],le=e.nil,we=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"),ae.$require("corelib/enumerable"),function(ce,ze,X){var Ae=i(ce,ze,"Enumerator"),oe=[Ae].concat(X),k=e.$r(oe),Se=Ae.$$prototype;return Se.size=Se.args=Se.object=Se.method=Se.values=Se.cursor=le,Ae.$include(we("Enumerable")),Ae.$$prototype.$$is_enumerator=!0,s(Ae,"$for",function F(de,D,qe){var te=F.$$p||le,B,w,$,l=this;F.$$p=null,B=t(arguments,1),B.length>0&&(w=B.shift()),w==null&&(w="each"),$=B;var o=l.$allocate();return o.object=de,o.size=te,o.method=w,o.args=$,o.cursor=0,o},-2),h(Ae,"$initialize",function F(de){var D=F.$$p||le,qe=this;return F.$$p=null,t(arguments),n(qe),qe.cursor=0,c(D)?(qe.object=d(k("Generator"),"new",[],D.$to_proc()),qe.method="each",qe.args=[],qe.size=arguments[0]||le,c(qe.size)&&p(qe.size["$respond_to?"]("call"))?qe.size=r(qe.size,we("Integer"),"to_int"):le):(qe.object=arguments[0],qe.method=arguments[1]||"each",qe.args=t(arguments,2),qe.size=le)},-1),h(Ae,"$each",function F(de){var D=F.$$p||le,qe,te,B=this;return F.$$p=null,qe=t(arguments),te=qe,c(D["$nil?"]())&&c(te["$empty?"]())?B:(te=q(B.args,te),c(D["$nil?"]())?d(B.$class(),"new",[B.object,B.method].concat(j(te))):d(B.object,"__send__",[B.method].concat(j(te)),D.$to_proc()))},-1),h(Ae,"$size",function(){var de=this;return c(de.size["$respond_to?"]("call"))?d(de.size,"call",j(de.args)):de.size}),h(Ae,"$with_index",function F(de){var D=F.$$p||le,qe=this;if(F.$$p=null,de==null&&(de=0),de=c(de)?r(de,we("Integer"),"to_int"):0,!c(D))return d(qe,"enum_for",["with_index",de],function B(){var w=B.$$s==null?this:B.$$s;return w.$size()},{$$s:qe});var te=de;return qe.$each.$$p=function(){var B=G.$destructure(arguments),w=D(B,te);return te++,w},qe.$each()},-1),h(Ae,"$each_with_index",function F(){var de=F.$$p||le,D=this;return F.$$p=null,de===le?d(D,"enum_for",["each_with_index"],function qe(){var te=qe.$$s==null?this:qe.$$s;return te.$size()},{$$s:D}):(pe(D,ke(D,"each_with_index",F,!1,!0),"each_with_index",[],de),D.object)}),h(Ae,"$rewind",function(){var de=this;return de.cursor=0,de}),h(Ae,"$peek_values",function(){var de=this,D=le;return de.values=c(D=de.values)?D:d(de,"map",[],function(te){var B,w;return B=t(arguments),w=B,w},-1),c($e(de.cursor,de.values.$length()))&&W.$raise(we("StopIteration"),"iteration reached an end"),de.values["$[]"](de.cursor)}),h(Ae,"$peek",function(){var de=this,D=le;return D=de.$peek_values(),c(Z(D.$length(),1))?D["$[]"](0):D}),h(Ae,"$next_values",function(){var de=this,D=le;return D=de.$peek_values(),de.cursor=q(de.cursor,1),D}),h(Ae,"$next",function(){var de=this,D=le;return D=de.$next_values(),c(Z(D.$length(),1))?D["$[]"](0):D}),h(Ae,"$feed",function(de){var D=this;return D.$raise(k("NotImplementedError"),"Opal doesn't support Enumerator#feed")}),h(Ae,"$+",function(de){var D=this;return we(we("Enumerator"),"Chain").$new(D,de)}),h(Ae,"$inspect",function(){var de=this,D=le;return D="#<"+de.$class()+": "+de.object.$inspect()+":"+de.method,c(de.args["$any?"]())&&(D=q(D,"("+de.args.$inspect()["$[]"](we("Range").$new(1,-2))+")")),q(D,">")}),ve(Ae,"with_object","each_with_object"),Ae.$autoload("ArithmeticSequence","corelib/enumerator/arithmetic_sequence"),Ae.$autoload("Chain","corelib/enumerator/chain"),Ae.$autoload("Generator","corelib/enumerator/generator"),Ae.$autoload("Lazy","corelib/enumerator/lazy"),Ae.$autoload("Yielder","corelib/enumerator/yielder")}("::",null,ye)};Opal.modules["corelib/numeric"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.to_ary,c=e.return_self,d=e.rb_minus,p=e.rb_times,h=e.rb_lt,q=e.eqeq,j=e.rb_divide,G=e.return_val,pe=e.Opal,ke=e.slice,$e=e.extract_kwargs,W=e.ensure_kwargs,Z=e.not,ve=e.send,ae=e.rb_ge,ye=e.rb_le,le=e.rb_plus,we=e.rb_gt,ce=e.alias,ze=e.top,X=e.nil,Ae=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"),ze.$require("corelib/comparable"),function(oe,k){var Se=t(oe,k,"Numeric");return Se.$include(Ae("Comparable")),i(Se,"$coerce",function(de){var D=this;return r(de["$instance_of?"](D.$class()))?[de,D]:[n.$Float(de),n.$Float(D)]}),i(Se,"$__coerced__",function(de,D){var qe,te,B=this,w=X,$=X;if(r(D["$respond_to?"]("coerce")))return te=D.$coerce(B),qe=s(te),w=qe[0]==null?X:qe[0],$=qe[1]==null?X:qe[1],w.$__send__(de,$);switch(de){case"+":case"-":case"*":case"/":case"%":case"&":case"|":case"^":case"**":return n.$raise(Ae("TypeError"),""+D.$class()+" can't be coerced into Numeric");case">":case">=":case"<":case"<=":case"<=>":return n.$raise(Ae("ArgumentError"),"comparison of "+B.$class()+" with "+D.$class()+" failed");default:return X}}),i(Se,"$<=>",function(de){var D=this;return r(D["$equal?"](de))?0:X}),i(Se,"$+@",c),i(Se,"$-@",function(){var de=this;return d(0,de)}),i(Se,"$%",function(de){var D=this;return d(D,p(de,D.$div(de)))}),i(Se,"$abs",function(){var de=this;return h(de,0)?de["$-@"]():de}),i(Se,"$abs2",function(){var de=this;return p(de,de)}),i(Se,"$angle",function(){var de=this;return h(de,0)?Ae(Ae("Math"),"PI"):0}),i(Se,"$ceil",function(de){var D=this;return de==null&&(de=0),D.$to_f().$ceil(de)},-1),i(Se,"$conj",c),i(Se,"$denominator",function(){var de=this;return de.$to_r().$denominator()}),i(Se,"$div",function(de){var D=this;return q(de,0)&&n.$raise(Ae("ZeroDivisionError"),"divided by o"),j(D,de).$floor()}),i(Se,"$divmod",function(de){var D=this;return[D.$div(de),D["$%"](de)]}),i(Se,"$fdiv",function(de){var D=this;return j(D.$to_f(),de)}),i(Se,"$floor",function(de){var D=this;return de==null&&(de=0),D.$to_f().$floor(de)},-1),i(Se,"$i",function(){var de=this;return n.$Complex(0,de)}),i(Se,"$imag",G(0)),i(Se,"$integer?",G(!1)),i(Se,"$nonzero?",function(){var de=this;return r(de["$zero?"]())?X:de}),i(Se,"$numerator",function(){var de=this;return de.$to_r().$numerator()}),i(Se,"$polar",function(){var de=this;return[de.$abs(),de.$arg()]}),i(Se,"$quo",function(de){var D=this;return j(pe["$coerce_to!"](D,Ae("Rational"),"to_r"),de)}),i(Se,"$real",c),i(Se,"$real?",G(!0)),i(Se,"$rect",function(){var de=this;return[de,0]}),i(Se,"$round",function(de){var D=this;return D.$to_f().$round(de)},-1),i(Se,"$step",function F(de,D,qe){var te=F.$$p||X,B,w,$,l,o,f,_=this,A=X;F.$$p=null,B=ke(arguments),w=$e(B),w=W(w),B.length>0&&($=B.shift()),B.length>0&&(l=B.shift()),o=w.$$smap.to,f=w.$$smap.by,$!==void 0&&o!==void 0&&n.$raise(Ae("ArgumentError"),"to is given twice"),l!==void 0&&f!==void 0&&n.$raise(Ae("ArgumentError"),"step is given twice"),o!==void 0&&($=o),f!==void 0&&(l=f),$===void 0&&($=X);function T(){l===X&&n.$raise(Ae("TypeError"),"step must be numeric"),l!=null&&l["$=="](0)&&n.$raise(Ae("ArgumentError"),"step can't be 0"),(l===X||l==null)&&(l=1);var qt=l["$<=>"](0);qt===X&&n.$raise(Ae("ArgumentError"),"0 can't be coerced into "+l.$class()),($===X||$==null)&&($=qt>0?Ae(Ae("Float"),"INFINITY"):Ae(Ae("Float"),"INFINITY")["$-@"]()),pe.$compare(_,$)}function J(){if(l>0&&_>$||l<0&&_<$)return 0;if(l===1/0||l===-1/0)return 1;var qt=Math.abs,It=Math.floor,rt=(qt(_)+qt($)+qt($-_))/qt(l)*Ae(Ae("Float"),"EPSILON");return rt===1/0||rt===-1/0?0:(rt>.5&&(rt=.5),It(($-_)/l+rt)+1)}function Fe(){if(T(),l===0)return 1/0;if(l%1!==0)return J();if(l>0&&_>$||l<0&&_<$)return 0;var qt=Math.ceil,It=Math.abs,rt=It(_-$)+1,Re=It(l);return qt(rt/Re)}if(te===X)return(Z($)||r($["$is_a?"](Ae("Numeric"))))&&(Z(l)||r(l["$is_a?"](Ae("Numeric"))))?Ae(Ae("Enumerator"),"ArithmeticSequence").$new([$,l,r(o)?"to: ":X,r(f)?"by: ":X],_):ve(_,"enum_for",["step",$,l],Fe.$to_proc());T();var it=l["$negative?"](),ht=l["$=="](0)||$===1/0&&!it||$===-1/0&⁢if(_.$$is_number&&l.$$is_number&&$.$$is_number)if(_%1===0&&(ht||$%1===0)&&l%1===0){var mt=_;if(ht)for(;;mt+=l)te(mt);else if(it)for(;mt>=$;mt+=l)te(mt);else for(;mt<=$;mt+=l)te(mt);return _}else{var Rt=_.$to_f().valueOf();l=l.$to_f().valueOf(),$=$.$to_f().valueOf();var wt=J();if(!isFinite(l))wt!==0&&te(Rt);else if(l===0)for(;;)te(Rt);else for(var Mt=0;Mt<wt;Mt++){var At=Mt*l+_;(l>=0?$<At:$>At)&&(At=$),te(At)}return _}for(A=_;r(it?ae(A,$):ye(A,$));)e.yield1(te,A),A=le(A,l)},-1),i(Se,"$to_c",function(){var de=this;return n.$Complex(de,0)}),i(Se,"$to_int",function(){var de=this;return de.$to_i()}),i(Se,"$truncate",function(de){var D=this;return de==null&&(de=0),D.$to_f().$truncate(de)},-1),i(Se,"$zero?",function(){var de=this;return de["$=="](0)}),i(Se,"$positive?",function(){var de=this;return we(de,0)}),i(Se,"$negative?",function(){var de=this;return h(de,0)}),i(Se,"$dup",c),i(Se,"$clone",function(de){var D=this;return de=W(de),de.$$smap.freeze,D},-1),i(Se,"$finite?",G(!0)),i(Se,"$infinite?",G(X)),ce(Se,"arg","angle"),ce(Se,"conjugate","conj"),ce(Se,"imaginary","imag"),ce(Se,"magnitude","abs"),ce(Se,"modulo","%"),ce(Se,"phase","arg"),ce(Se,"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,c=e.hash_put,d=e.hash_delete,p=e.coerce_to,h=e.respond_to,q=e.deny_frozen_access,j=e.freeze,G=e.klass,pe=e.slice,ke=e.defs,$e=e.Kernel,W=e.def,Z=e.Opal,ve=e.eqeqeq,ae=e.hash2,ye=e.send2,le=e.find_super,we=e.send,ce=e.rb_gt,ze=e.rb_times,X=e.eqeq,Ae=e.rb_minus,oe=e.to_a,k=e.to_ary,Se=e.gvars,F=e.rb_ge,de=e.assign_ivar,D=e.rb_lt,qe=e.return_self,te=e.neqeq,B=e.alias,w=e.top,$=[],l=e.nil,o=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"),w.$require("corelib/enumerable"),w.$require("corelib/numeric"),function(f,_,A){var T=G(f,_,"Array"),J=[T].concat(A),Fe=e.$r(J);T.$include(o("Enumerable")),e.prop(T.$$prototype,"$$is_array",!0);function it(rt){for(var Re=rt[0],Be=1,Ge=rt.length;Be<Ge;Be++)rt[Be-1]=rt[Be];return rt.pop(),Re}function ht(rt,Re){return Re.$$name===e.Array?rt:Re.$allocate().$replace(rt.$to_a())}function mt(rt,Re,Be){for(var Ge,b=null,R=new Array(rt.length),me=0,De=0,Qe=rt.length;me<Qe;me++){if(!b)try{Ge=i(Be,rt[me])}catch(ct){b=ct}(b||Re(Ge))&&(R[De]=rt[me],De+=1)}if(De!==me&&(rt.splice.apply(rt,[0,R.length].concat(R)),rt.splice(De,R.length)),b)throw b}ke(T,"$[]",function(Re){var Be,Ge,b=this;return Be=pe(arguments),Ge=Be,ht(Ge,b)},-1),W(T,"$initialize",function rt(Re,Be){var Ge=rt.$$p||l,b=this;if(rt.$$p=null,Re==null&&(Re=l),Be==null&&(Be=l),q(b),Be!==l&&Ge!==l&&$e.$warn("warning: block supersedes default value argument"),Re>o(o("Integer"),"MAX")&&$e.$raise(o("ArgumentError"),"array size too big"),arguments.length>2&&$e.$raise(o("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),arguments.length===0)return b.splice(0,b.length),b;if(arguments.length===1){if(Re.$$is_array)return b.$replace(Re.$to_a()),b;if(Re["$respond_to?"]("to_ary"))return b.$replace(Re.$to_ary()),b}Re=p(Re,o("Integer"),"to_int"),Re<0&&$e.$raise(o("ArgumentError"),"negative array size"),b.splice(0,b.length);var R,me;if(Ge===l)for(R=0;R<Re;R++)b.push(Be);else for(R=0,me;R<Re;R++)me=Ge(R),b[R]=me;return b},-1),ke(T,"$try_convert",function(Re){return Z["$coerce_to?"](Re,o("Array"),"to_ary")}),W(T,"$&",function(Re){var Be=this;Re=ve(o("Array"),Re)?Re.$to_a():p(Re,o("Array"),"to_ary").$to_a();var Ge=[],b=ae([],{}),R,me,De;for(R=0,me=Re.length;R<me;R++)c(b,Re[R],!0);for(R=0,me=Be.length;R<me;R++)De=Be[R],d(b,De)!==void 0&&Ge.push(De);return Ge}),W(T,"$|",function(Re){var Be=this;Re=ve(o("Array"),Re)?Re.$to_a():p(Re,o("Array"),"to_ary").$to_a();var Ge=ae([],{}),b,R;for(b=0,R=Be.length;b<R;b++)c(Ge,Be[b],!0);for(b=0,R=Re.length;b<R;b++)c(Ge,Re[b],!0);return Ge.$keys()}),W(T,"$*",function(Re){var Be=this;if(t(Re["$respond_to?"]("to_str")))return Be.$join(Re.$to_str());Re=p(Re,o("Integer"),"to_int"),t(Re<0)&&$e.$raise(o("ArgumentError"),"negative argument");for(var Ge=[],b=Be.$to_a(),R=0;R<Re;R++)Ge=Ge.concat(b);return Ge}),W(T,"$+",function(Re){var Be=this;return Re=ve(o("Array"),Re)?Re.$to_a():p(Re,o("Array"),"to_ary").$to_a(),Be.concat(Re)}),W(T,"$-",function(Re){var Be=this;if(Re=ve(o("Array"),Re)?Re.$to_a():p(Re,o("Array"),"to_ary").$to_a(),t(Be.length===0))return[];if(t(Re.length===0))return Be.slice();var Ge=[],b=ae([],{}),R,me,De;for(R=0,me=Re.length;R<me;R++)c(b,Re[R],!0);for(R=0,me=Be.length;R<me;R++)De=Be[R],s(b,De)===void 0&&Ge.push(De);return Ge}),W(T,"$<<",function(Re){var Be=this;return q(Be),Be.push(Re),Be}),W(T,"$<=>",function(Re){var Be=this;if(ve(o("Array"),Re))Re=Re.$to_a();else if(t(Re["$respond_to?"]("to_ary")))Re=Re.$to_ary().$to_a();else return l;if(Be.$hash()===Re.$hash())return 0;for(var Ge=Math.min(Be.length,Re.length),b=0;b<Ge;b++){var R=Be[b]["$<=>"](Re[b]);if(R!==0)return R}return Be.length["$<=>"](Re.length)}),W(T,"$==",function(Re){var Be=this,Ge={};function b(R,me){var De,Qe,ct,a;if(R===me)return!0;if(!me.$$is_array)return h(me,"$to_ary")?me["$=="](R):!1;if(R.$$constructor!==Array&&(R=R.$to_a()),me.$$constructor!==Array&&(me=me.$to_a()),R.length!==me.length)return!1;for(Ge[R.$object_id()]=!0,De=0,Qe=R.length;De<Qe;De++)if(ct=R[De],a=me[De],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ge.hasOwnProperty(ct.$object_id())&&!b(ct,a))return!1}else if(!ct["$=="](a))return!1;return!0}return b(Be,Re)});function Rt(rt,Re){var Be=rt.length,Ge,b,R,me;return Ge=Re.excl,b=Re.begin===l?0:p(Re.begin,e.Integer,"to_int"),R=Re.end===l?-1:p(Re.end,e.Integer,"to_int"),b<0&&(b+=Be,b<0)||(Re.excl_rev&&Re.begin!==l&&(b+=1),b>Be)?l:R<0&&(R+=Be,R<0)?[]:((!Ge||Re.end===l)&&(R+=1),me=rt.slice(b,R),me)}function wt(rt,Re){var Be,Ge=[],b=0,R;for(Re.step<0?(R={begin:Re.range.end,end:Re.range.begin,excl:!1,excl_rev:Re.range.excl},Be=Rt(rt,R).$reverse()):Be=Rt(rt,Re.range);b<Be.length;)Ge.push(Be[b]),b+=Math.abs(Re.step);return Ge}function Mt(rt,Re,Be){var Ge=rt.length,b;return Re=p(Re,e.Integer,"to_int"),Re<0&&(Re+=Ge,Re<0)?l:Be===void 0?Re>=Ge||Re<0?l:rt[Re]:(Be=p(Be,e.Integer,"to_int"),Be<0||Re>Ge||Re<0?l:(b=rt.slice(Re,Re+Be),b))}W(T,"$[]",function(Re,Be){var Ge=this;return Re.$$is_range?Rt(Ge,Re):Re.$$is_arithmetic_seq?wt(Ge,Re):Mt(Ge,Re,Be)},-2),W(T,"$[]=",function(Re,Be,Ge){var b=this,R=l,me=l;q(b),R=l;var De,Qe=b.length;if(Re.$$is_range){Be.$$is_array?R=Be.$to_a():Be["$respond_to?"]("to_ary")?R=Be.$to_ary().$to_a():R=[Be];var ct=Re.excl,a=Re.begin===l?0:p(Re.begin,e.Integer,"to_int"),ne=Re.end===l?-1:p(Re.end,e.Integer,"to_int");if(a<0&&(a+=Qe,a<0&&$e.$raise(o("RangeError"),""+Re.$inspect()+" out of range")),ne<0&&(ne+=Qe),(!ct||Re.end===l)&&(ne+=1),a>Qe)for(De=Qe;De<a;De++)b[De]=l;return ne<0?b.splice.apply(b,[a,0].concat(R)):b.splice.apply(b,[a,ne-a].concat(R)),Be}else{Ge===void 0?me=1:(me=Be,Be=Ge,Be.$$is_array?R=Be.$to_a():Be["$respond_to?"]("to_ary")?R=Be.$to_ary().$to_a():R=[Be]);var ee;if(Re=p(Re,o("Integer"),"to_int"),me=p(me,o("Integer"),"to_int"),Re<0&&(ee=Re,Re+=Qe,Re<0&&$e.$raise(o("IndexError"),"index "+ee+" too small for array; minimum "+-b.length)),me<0&&$e.$raise(o("IndexError"),"negative length ("+me+")"),Re>Qe)for(De=Qe;De<Re;De++)b[De]=l;return Ge===void 0?b[Re]=Be:b.splice.apply(b,[Re,me].concat(R)),Be}},-3),W(T,"$any?",function rt(Re){var Be=rt.$$p||l,Ge=this;return rt.$$p=null,Ge.length===0?!1:ye(Ge,le(Ge,"any?",rt,!1,!0),"any?",[Re],Be)},-1),W(T,"$assoc",function(Re){for(var Be=this,Ge=0,b=Be.length,R;Ge<b;Ge++)if(R=Be[Ge],R.length&&R[0]["$=="](Re))return R;return l}),W(T,"$at",function(Re){var Be=this;return Re=p(Re,o("Integer"),"to_int"),Re<0&&(Re+=Be.length),Re<0||Re>=Be.length?l:Be[Re]}),W(T,"$bsearch_index",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return Be.$enum_for("bsearch_index");for(var Ge=0,b=Be.length,R,me,De,Qe=!1,ct=l;Ge<b;){if(R=Ge+Math.floor((b-Ge)/2),me=Be[R],De=i(Re,me),De===!0)ct=R,Qe=!0;else if(De===!1||De===l)Qe=!1;else if(De.$$is_number){if(De===0)return R;Qe=De<0}else $e.$raise(o("TypeError"),"wrong argument type "+De.$class()+" (must be numeric, true, false or nil)");Qe?b=R:Ge=R+1}return ct}),W(T,"$bsearch",function rt(){var Re=rt.$$p||l,Be=this,Ge=l;return rt.$$p=null,Re===l?Be.$enum_for("bsearch"):(Ge=we(Be,"bsearch_index",[],Re.$to_proc()),Ge!=null&&Ge.$$is_number?Be[Ge]:Ge)}),W(T,"$cycle",function rt(Re){var Be=rt.$$p||l,Ge=this;if(rt.$$p=null,Re==null&&(Re=l),Be===l)return we(Ge,"enum_for",["cycle",Re],function me(){var De=me.$$s==null?this:me.$$s;return t(Re["$nil?"]())?o(o("Float"),"INFINITY"):(Re=Z["$coerce_to!"](Re,o("Integer"),"to_int"),t(ce(Re,0))?ze(De.$enumerator_size(),Re):0)},{$$s:Ge});if(t(Ge["$empty?"]())||X(Re,0))return l;var b,R;if(Re===l)for(;;)for(b=0,R=Ge.length;b<R;b++)i(Be,Ge[b]);else{if(Re=Z["$coerce_to!"](Re,o("Integer"),"to_int"),Re<=0)return Ge;for(;Re>0;){for(b=0,R=Ge.length;b<R;b++)i(Be,Ge[b]);Re--}}return Ge},-1),W(T,"$clear",function(){var Re=this;return q(Re),Re.splice(0,Re.length),Re}),W(T,"$count",function rt(Re){var Be=rt.$$p||l,Ge=this;return rt.$$p=null,t(Re!==void 0)||t(Be)?ye(Ge,le(Ge,"count",rt,!1,!0),"count",[Re],Be):Ge.$size()},-1),W(T,"$initialize_copy",function(Re){var Be=this;return Be.$replace(Re)}),W(T,"$collect",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["collect"],function De(){var Qe=De.$$s==null?this:De.$$s;return Qe.$size()},{$$s:Be});for(var Ge=[],b=0,R=Be.length;b<R;b++){var me=i(Re,Be[b]);Ge.push(me)}return Ge}),W(T,"$collect!",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["collect!"],function me(){var De=me.$$s==null?this:me.$$s;return De.$size()},{$$s:Be});q(Be);for(var Ge=0,b=Be.length;Ge<b;Ge++){var R=i(Re,Be[Ge]);Be[Ge]=R}return Be});function At(rt,Re){return rt===Re||Re===0?1:Re>0&&rt>Re?At(rt-1,Re-1)+At(rt-1,Re):0}W(T,"$combination",function rt(Re){var Be=rt.$$p||l,Ge=this,b=l;if(rt.$$p=null,b=Z["$coerce_to!"](Re,o("Integer"),"to_int"),Be===l)return we(Ge,"enum_for",["combination",b],function ee(){var H=ee.$$s==null?this:ee.$$s;return At(H.length,b)},{$$s:Ge});var R,me,De,Qe,ct,a,ne;if(b===0)e.yield1(Be,[]);else if(b===1)for(R=0,me=Ge.length;R<me;R++)e.yield1(Be,[Ge[R]]);else if(b===Ge.length)e.yield1(Be,Ge.slice());else if(b>=0&&b<Ge.length){for(De=[],R=0;R<=b+1;R++)De.push(0);for(Qe=[],ct=0,a=!1,De[0]=-1;!a;){for(Qe[ct]=Ge[De[ct+1]];ct<b-1;)ct++,ne=De[ct+1]=De[ct]+1,Qe[ct]=Ge[ne];e.yield1(Be,Qe.slice()),ct++;do a=ct===0,De[ct]++,ct--;while(De[ct+1]+b===Ge.length+ct+1)}}return Ge}),W(T,"$repeated_combination",function rt(Re){var Be=rt.$$p||l,Ge=this,b=l;if(rt.$$p=null,b=Z["$coerce_to!"](Re,o("Integer"),"to_int"),Be===l)return we(Ge,"enum_for",["repeated_combination",b],function me(){var De=me.$$s==null?this:me.$$s;return At(De.length+b-1,b)},{$$s:Ge});function R(me,De,Qe,ct){if(Qe.length==me){var a=Qe.slice();e.yield1(Be,a);return}for(var ne=De;ne<ct.length;ne++)Qe.push(ct[ne]),R(me,ne,Qe,ct),Qe.pop()}return b>=0&&R(b,0,[],Ge),Ge}),W(T,"$compact",function(){for(var Re=this,Be=[],Ge=0,b=Re.length,R;Ge<b;Ge++)(R=Re[Ge])!==l&&Be.push(R);return Be}),W(T,"$compact!",function(){var Re=this;q(Re);for(var Be=Re.length,Ge=0,b=Re.length;Ge<b;Ge++)Re[Ge]===l&&(Re.splice(Ge,1),b--,Ge--);return Re.length===Be?l:Re}),W(T,"$concat",function(Re){var Be,Ge,b=this;return Be=pe(arguments),Ge=Be,q(b),Ge=we(Ge,"map",[],function R(me){var De=R.$$s==null?this:R.$$s;return me==null&&(me=l),me=ve(o("Array"),me)?me.$to_a():p(me,o("Array"),"to_ary").$to_a(),t(me["$equal?"](De))&&(me=me.$dup()),me},{$$s:b}),we(Ge,"each",[],function R(me){var De=R.$$s==null?this:R.$$s;me==null&&(me=l);for(var Qe=0,ct=me.length;Qe<ct;Qe++)De.push(me[Qe])},{$$s:b}),b},-1),W(T,"$delete",function rt(Re){var Be=rt.$$p||l,Ge=this;rt.$$p=null;for(var b=Ge.length,R=0,me=b;R<me;R++)Ge[R]["$=="](Re)&&(q(Ge),Ge.splice(R,1),me--,R--);return Ge.length===b?Be!==l?e.yieldX(Be,[]):l:Re}),W(T,"$delete_at",function(Re){var Be=this;if(q(Be),Re=p(Re,o("Integer"),"to_int"),Re<0&&(Re+=Be.length),Re<0||Re>=Be.length)return l;var Ge=Be[Re];return Be.splice(Re,1),Ge}),W(T,"$delete_if",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,Re===l?we(Be,"enum_for",["delete_if"],function Ge(){var b=Ge.$$s==null?this:Ge.$$s;return b.$size()},{$$s:Be}):(q(Be),mt(Be,r,Re),Be)}),W(T,"$difference",function(Re){var Be,Ge,b=this;return Be=pe(arguments),Ge=Be,we(Ge,"reduce",[b.$to_a().$dup()],function(me,De){return me==null&&(me=l),De==null&&(De=l),Ae(me,De)})},-1),W(T,"$dig",function(Re,Be){var Ge,b,R=this,me=l;return Ge=pe(arguments,1),b=Ge,me=R["$[]"](Re),me===l||b.length===0?me:(t(me["$respond_to?"]("dig"))||$e.$raise(o("TypeError"),""+me.$class()+" does not have #dig method"),we(me,"dig",oe(b)))},-2),W(T,"$drop",function(Re){var Be=this;return Re=p(Re,o("Integer"),"to_int"),Re<0&&$e.$raise(o("ArgumentError")),Be.slice(Re)}),W(T,"$dup",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,Be.$$class===e.Array&&Be.$$class.$allocate.$$pristine&&Be.$copy_instance_variables.$$pristine&&Be.$initialize_dup.$$pristine?Be.slice(0):ye(Be,le(Be,"dup",rt,!1,!0),"dup",[],Re)}),W(T,"$each",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["each"],function R(){var me=R.$$s==null?this:R.$$s;return me.$size()},{$$s:Be});for(var Ge=0,b=Be.length;Ge<b;Ge++)i(Re,Be[Ge]);return Be}),W(T,"$each_index",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["each_index"],function R(){var me=R.$$s==null?this:R.$$s;return me.$size()},{$$s:Be});for(var Ge=0,b=Be.length;Ge<b;Ge++)i(Re,Ge);return Be}),W(T,"$empty?",function(){var Re=this;return Re.length===0}),W(T,"$eql?",function(Re){var Be=this,Ge={};function b(R,me){var De,Qe,ct,a;if(!me.$$is_array||(me=me.$to_a(),R.length!==me.length))return!1;for(Ge[R.$object_id()]=!0,De=0,Qe=R.length;De<Qe;De++)if(ct=R[De],a=me[De],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ge.hasOwnProperty(ct.$object_id())&&!b(ct,a))return!1}else if(!ct["$eql?"](a))return!1;return!0}return b(Be,Re)}),W(T,"$fetch",function rt(Re,Be){var Ge=rt.$$p||l,b=this;rt.$$p=null;var R=Re;if(Re=p(Re,o("Integer"),"to_int"),Re<0&&(Re+=b.length),Re>=0&&Re<b.length)return b[Re];if(Ge!==l&&Be!=null&&b.$warn("warning: block supersedes default value argument"),Ge!==l)return Ge(R);if(Be!=null)return Be;b.length===0?$e.$raise(o("IndexError"),"index "+R+" outside of array bounds: 0...0"):$e.$raise(o("IndexError"),"index "+R+" outside of array bounds: -"+b.length+"..."+b.length)},-2),W(T,"$fill",function rt(Re){var Be=rt.$$p||l,Ge,b,R,me,De=this,Qe=l,ct=l,a=l,ne=l,ee=l;rt.$$p=null,Ge=pe(arguments),b=Ge,q(De);var H,_e;if(t(Be)?(t(b.length>2)&&$e.$raise(o("ArgumentError"),"wrong number of arguments ("+b.$length()+" for 0..2)"),me=b,R=k(me),Qe=R[0]==null?l:R[0],ct=R[1]==null?l:R[1]):(t(b.length==0)?$e.$raise(o("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(b.length>3)&&$e.$raise(o("ArgumentError"),"wrong number of arguments ("+b.$length()+" for 1..3)"),me=b,R=k(me),a=R[0]==null?l:R[0],Qe=R[1]==null?l:R[1],ct=R[2]==null?l:R[2]),ve(o("Range"),Qe)){if(t(ct)&&$e.$raise(o("TypeError"),"length invalid with range"),ne=Qe.begin===l?0:p(Qe.begin,o("Integer"),"to_int"),t(ne<0)&&(ne+=this.length),t(ne<0)&&$e.$raise(o("RangeError"),""+Qe.$inspect()+" out of range"),ee=Qe.end===l?-1:p(Qe.end,o("Integer"),"to_int"),t(ee<0)&&(ee+=this.length),t(Qe["$exclude_end?"]())||(ee+=1),t(ee<=ne))return De}else if(t(Qe))if(ne=p(Qe,o("Integer"),"to_int"),t(ne<0)&&(ne+=this.length),t(ne<0)&&(ne=0),t(ct)){if(ee=p(ct,o("Integer"),"to_int"),t(ee==0))return De;ee+=ne}else ee=this.length;else ne=0,ee=this.length;if(t(ne>this.length))for(H=this.length;H<ee;H++)De[H]=l;if(t(ee>this.length)&&(this.length=ee),t(Be))for(this.length;ne<ee;ne++)_e=Be(ne),De[ne]=_e;else for(this.length;ne<ee;ne++)De[ne]=a;return De},-1),W(T,"$first",function(Re){var Be=this;return Re==null?Be.length===0?l:Be[0]:(Re=p(Re,o("Integer"),"to_int"),Re<0&&$e.$raise(o("ArgumentError"),"negative array size"),Be.slice(0,Re))},-1),W(T,"$flatten",function(Re){var Be=this;function Ge(b,R){var me=[],De,Qe,ct,a;for(b=b.$to_a(),De=0,Qe=b.length;De<Qe;De++){if(ct=b[De],!h(ct,"$to_ary",!0)){me.push(ct);continue}if(a=ct.$to_ary(),a===l){me.push(ct);continue}switch(a.$$is_array||$e.$raise(o("TypeError")),a===Be&&$e.$raise(o("ArgumentError")),R){case void 0:me=me.concat(Ge(a));break;case 0:me.push(a);break;default:me.push.apply(me,Ge(a,R-1))}}return me}return Re!==void 0&&(Re=p(Re,o("Integer"),"to_int")),Ge(Be,Re)},-1),W(T,"$flatten!",function(Re){var Be=this;q(Be);var Ge=Be.$flatten(Re);if(Be.length==Ge.length){for(var b=0,R=Be.length;b<R&&Be[b]===Ge[b];b++);if(b==R)return l}return Be.$replace(Ge),Be},-1),W(T,"$freeze",function(){var Re=this;return t(Re["$frozen?"]())?Re:j(Re)}),W(T,"$hash",function(){var Re=this,Be=n===void 0,Ge=["A"],b=Re.$object_id(),R,me,De;try{if(Be&&(n=Object.create(null)),n[b])return"self";for(De in n)if(R=n[De],Re["$eql?"](R))return"self";for(n[b]=Re,me=0;me<Re.length;me++)R=Re[me],Ge.push(R.$hash());return Ge.join(",")}finally{Be&&(n=void 0)}}),W(T,"$include?",function(Re){for(var Be=this,Ge=0,b=Be.length;Ge<b;Ge++)if(Be[Ge]["$=="](Re))return!0;return!1}),W(T,"$index",function rt(Re){var Be=rt.$$p||l,Ge=this;rt.$$p=null;var b,R,me;if(Re!=null&&Be!==l&&Ge.$warn("warning: given block not used"),Re!=null){for(b=0,R=Ge.length;b<R;b++)if(Ge[b]["$=="](Re))return b}else if(Be!==l){for(b=0,R=Ge.length;b<R;b++)if(me=Be(Ge[b]),me!==!1&&me!==l)return b}else return Ge.$enum_for("index");return l},-1),W(T,"$insert",function(Re,Be){var Ge,b,R=this;if(Ge=pe(arguments,1),b=Ge,q(R),Re=p(Re,o("Integer"),"to_int"),b.length>0){if(Re<0&&(Re+=R.length+1,Re<0&&$e.$raise(o("IndexError"),""+Re+" is out of bounds")),Re>R.length)for(var me=R.length;me<Re;me++)R.push(l);R.splice.apply(R,[Re,0].concat(b))}return R},-2);var qt=[];W(T,"$inspect",function(){var Re=this,Be=[],Ge=Re.$__id__(),b=!0;return function(){try{if(qt.indexOf(Ge)!==-1)return b=!1,"[...]";qt.push(Ge);for(var R=0,me=Re.length;R<me;R++){var De=Re["$[]"](R);Be.push(Fe("Opal").$inspect(De))}return"["+Be.join(", ")+"]"}finally{b&&qt.pop()}}()}),W(T,"$intersection",function(Re){var Be,Ge,b=this;return Be=pe(arguments),Ge=Be,we(Ge,"reduce",[b.$to_a().$dup()],function(me,De){return me==null&&(me=l),De==null&&(De=l),me["$&"](De)})},-1),W(T,"$intersect?",function(Re){var Be=this;return Be.$intersection(Re)["$empty?"]()["$!"]()}),W(T,"$join",function(Re){var Be=this;if(Se[","]==null&&(Se[","]=l),Re==null&&(Re=l),t(Be.length===0))return"";t(Re===l)&&(Re=Se[","]);var Ge=[],b,R,me,De;for(b=0,R=Be.length;b<R;b++){if(me=Be[b],h(me,"$to_str")&&(De=me.$to_str(),De!==l)){Ge.push(De.$to_s());continue}if(h(me,"$to_ary")&&(De=me.$to_ary(),De===Be&&$e.$raise(o("ArgumentError")),De!==l)){Ge.push(De.$join(Re));continue}if(h(me,"$to_s")&&(De=me.$to_s(),De!==l)){Ge.push(De);continue}$e.$raise(o("NoMethodError").$new(""+Fe("Opal").$inspect(Be.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return Re===l?Ge.join(""):Ge.join(Z["$coerce_to!"](Re,o("String"),"to_str").$to_s())},-1),W(T,"$keep_if",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,Re===l?we(Be,"enum_for",["keep_if"],function Ge(){var b=Ge.$$s==null?this:Ge.$$s;return b.$size()},{$$s:Be}):(q(Be),mt(Be,t,Re),Be)}),W(T,"$last",function(Re){var Be=this;return Re==null?Be.length===0?l:Be[Be.length-1]:(Re=p(Re,o("Integer"),"to_int"),Re<0&&$e.$raise(o("ArgumentError"),"negative array size"),Re>Be.length&&(Re=Be.length),Be.slice(Be.length-Re,Be.length))},-1),W(T,"$length",function(){var Re=this;return Re.length}),W(T,"$max",function rt(Re){var Be=rt.$$p||l,Ge=this;return rt.$$p=null,we(Ge.$each(),"max",[Re],Be.$to_proc())},-1),W(T,"$min",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,we(Be.$each(),"min",[],Re.$to_proc())});function It(rt,Re){for(var Be=Re>=0?1:0;Re;)Be*=rt,rt--,Re--;return Be}return W(T,"$permutation",function rt(Re){var Be=rt.$$p||l,Ge=this,b=l,R=l;if(rt.$$p=null,Be===l)return we(Ge,"enum_for",["permutation",Re],function a(){var ne=a.$$s==null?this:a.$$s;return It(ne.length,Re===void 0?ne.length:Re)},{$$s:Ge});var me,De,Qe;if(Re===void 0?Re=Ge.length:Re=p(Re,o("Integer"),"to_int"),!(Re<0||Ge.length<Re))if(Re===0)e.yield1(Be,[]);else if(Re===1)for(var ct=0;ct<Ge.length;ct++)e.yield1(Be,[Ge[ct]]);else b=Fe("Array").$new(Re),R=Fe("Array").$new(Ge.length,!1),me=function(a,ne,ee,H,_e){Ge=this;for(var v=0;v<Ge.length;v++)if(H["$[]"](v)["$!"]())if(ne[ee]=v,ee<a-1)H[v]=!0,me.call(Ge,a,ne,ee+1,H,_e),H[v]=!1;else{Qe=[];for(var V=0;V<ne.length;V++)Qe.push(Ge[ne[V]]);i(_e,Qe)}},Be!==l?(De=Ge.slice(),me.call(De,Re,b,0,R,Be)):me.call(Ge,Re,b,0,R,Be);return Ge},-1),W(T,"$repeated_permutation",function rt(Re){var Be=rt.$$p||l,Ge=this,b=l;if(rt.$$p=null,b=Z["$coerce_to!"](Re,o("Integer"),"to_int"),Be===l)return we(Ge,"enum_for",["repeated_permutation",b],function me(){var De=me.$$s==null?this:me.$$s;return t(F(b,0))?De.$size()["$**"](b):0},{$$s:Ge});function R(me,De,Qe){if(De.length==me){var ct=De.slice();e.yield1(Be,ct);return}for(var a=0;a<Qe.length;a++)De.push(Qe[a]),R(me,De,Qe),De.pop()}return R(b,[],Ge.slice()),Ge}),W(T,"$pop",function(Re){var Be=this;return q(Be),t(Re===void 0)?t(Be.length===0)?l:Be.pop():(Re=p(Re,o("Integer"),"to_int"),t(Re<0)&&$e.$raise(o("ArgumentError"),"negative array size"),t(Be.length===0)?[]:t(Re===1)?[Be.pop()]:t(Re>Be.length)?Be.splice(0,Be.length):Be.splice(Be.length-Re,Be.length))},-1),W(T,"$product",function rt(Re){var Be=rt.$$p||l,Ge,b,R=this;rt.$$p=null,Ge=pe(arguments),b=Ge;var me=Be!==l?null:[],De=b.length+1,Qe=new Array(De),ct=new Array(De),a=new Array(De),ne,ee,H,_e,v=1;for(a[0]=R,ne=1;ne<De;ne++)a[ne]=p(b[ne-1],o("Array"),"to_ary");for(ne=0;ne<De;ne++){if(_e=a[ne].length,_e===0)return me||R;v*=_e,v>2147483647&&$e.$raise(o("RangeError"),"too big to product"),ct[ne]=_e,Qe[ne]=0}e:for(;;){for(H=[],ne=0;ne<De;ne++)H.push(a[ne][Qe[ne]]);for(me?me.push(H):e.yield1(Be,H),ee=De-1,Qe[ee]++;Qe[ee]===ct[ee];){if(Qe[ee]=0,--ee<0)break e;Qe[ee]++}}return me||R},-1),W(T,"$push",function(Re){var Be,Ge,b=this;Be=pe(arguments),Ge=Be,q(b);for(var R=0,me=Ge.length;R<me;R++)b.push(Ge[R]);return b},-1),W(T,"$rassoc",function(Re){for(var Be=this,Ge=0,b=Be.length,R;Ge<b;Ge++)if(R=Be[Ge],R.length&&R[1]!==void 0&&R[1]["$=="](Re))return R;return l}),W(T,"$reject",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["reject"],function De(){var Qe=De.$$s==null?this:De.$$s;return Qe.$size()},{$$s:Be});for(var Ge=[],b=0,R=Be.length,me;b<R;b++)me=Re(Be[b]),(me===!1||me===l)&&Ge.push(Be[b]);return Ge}),W(T,"$reject!",function rt(){var Re=rt.$$p||l,Be=this,Ge=l;return rt.$$p=null,Re===l?we(Be,"enum_for",["reject!"],function b(){var R=b.$$s==null?this:b.$$s;return R.$size()},{$$s:Be}):(q(Be),Ge=Be.$length(),we(Be,"delete_if",[],Re.$to_proc()),X(Be.$length(),Ge)?l:Be)}),W(T,"$replace",function(Re){var Be=this;return q(Be),Re=ve(o("Array"),Re)?Re.$to_a():p(Re,o("Array"),"to_ary").$to_a(),Be.splice(0,Be.length),Be.push.apply(Be,Re),Be}),W(T,"$reverse",function(){var Re=this;return Re.slice(0).reverse()}),W(T,"$reverse!",function(){var Re=this;return q(Re),Re.reverse()}),W(T,"$reverse_each",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,Re===l?we(Be,"enum_for",["reverse_each"],function Ge(){var b=Ge.$$s==null?this:Ge.$$s;return b.$size()},{$$s:Be}):(we(Be.$reverse(),"each",[],Re.$to_proc()),Be)}),W(T,"$rindex",function rt(Re){var Be=rt.$$p||l,Ge=this;rt.$$p=null;var b,R;if(Re!=null&&Be!==l&&Ge.$warn("warning: given block not used"),Re!=null){for(b=Ge.length-1;b>=0&&!(b>=Ge.length);b--)if(Ge[b]["$=="](Re))return b}else if(Be!==l){for(b=Ge.length-1;b>=0&&!(b>=Ge.length);b--)if(R=Be(Ge[b]),R!==!1&&R!==l)return b}else if(Re==null)return Ge.$enum_for("rindex");return l},-1),W(T,"$rotate",function(Re){var Be=this;Re==null&&(Re=1);var Ge,b,R,me;return Re=p(Re,o("Integer"),"to_int"),Be.length===1?Be.slice():Be.length===0?[]:(Ge=Be.slice(),b=Re%Ge.length,R=Ge.slice(b),me=Ge.slice(0,b),R.concat(me))},-1),W(T,"$rotate!",function(Re){var Be=this,Ge=l;return Re==null&&(Re=1),q(Be),Be.length===0||Be.length===1?Be:(Re=p(Re,o("Integer"),"to_int"),Ge=Be.$rotate(Re),Be.$replace(Ge))},-1),function(rt,Re){var Be=G(rt,Re,"SampleRandom"),Ge=Be.$$prototype;return Ge.rng=l,W(Be,"$initialize",de("rng")),W(Be,"$rand",function(R){var me=this,De=l;return De=p(me.rng.$rand(R),o("Integer"),"to_int"),t(De<0)&&$e.$raise(o("RangeError"),"random value must be >= 0"),t(De<R)||$e.$raise(o("RangeError"),"random value must be less than Array size"),De})}(T,null),W(T,"$sample",function(Re,Be){var Ge=this,b=l,R=l;if(t(Re===void 0))return Ge.$at($e.$rand(Ge.length));if(t(Be===void 0)?t(b=Z["$coerce_to?"](Re,o("Hash"),"to_hash"))?(Be=b,Re=l):(Be=l,Re=p(Re,o("Integer"),"to_int")):(Re=p(Re,o("Integer"),"to_int"),Be=p(Be,o("Hash"),"to_hash")),t(Re)&&t(Re<0)&&$e.$raise(o("ArgumentError"),"count must be greater than 0"),t(Be)&&(R=Be["$[]"]("random")),R=t(R)&&t(R["$respond_to?"]("rand"))?Fe("SampleRandom").$new(R):$e,!t(Re))return Ge[R.$rand(Ge.length)];var me,De,Qe,ct,a,ne,ee,H;switch(Re>Ge.length&&(Re=Ge.length),Re){case 0:return[];case 1:return[Ge[R.$rand(Ge.length)]];case 2:return ct=R.$rand(Ge.length),a=R.$rand(Ge.length-1),ct<=a&&a++,[Ge[ct],Ge[a]];default:if(Ge.length/Re>3){for(me=!1,De=0,Qe=Fe("Array").$new(Re),ct=1,Qe[0]=R.$rand(Ge.length);ct<Re;){for(ne=R.$rand(Ge.length),a=0;a<ct;){for(;ne===Qe[a];){if(De++,De>100){me=!0;break}ne=R.$rand(Ge.length)}if(me)break;a++}if(me)break;Qe[ct]=ne,ct++}if(!me){for(ct=0;ct<Re;)Qe[ct]=Ge[Qe[ct]],ct++;return Qe}}Qe=Ge.slice();for(var _e=0;_e<Re;_e++)ee=R.$rand(Ge.length-_e)+_e,H=Qe[_e],Qe[_e]=Qe[ee],Qe[ee]=H;return Re===Ge.length?Qe:Qe["$[]"](0,Re)}},-1),W(T,"$select",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["select"],function Qe(){var ct=Qe.$$s==null?this:Qe.$$s;return ct.$size()},{$$s:Be});for(var Ge=[],b=0,R=Be.length,me,De;b<R;b++)me=Be[b],De=i(Re,me),t(De)&&Ge.push(me);return Ge}),W(T,"$select!",function rt(){var Re=rt.$$p||l,Be=this;if(rt.$$p=null,Re===l)return we(Be,"enum_for",["select!"],function b(){var R=b.$$s==null?this:b.$$s;return R.$size()},{$$s:Be});q(Be);var Ge=Be.length;return we(Be,"keep_if",[],Re.$to_proc()),Be.length===Ge?l:Be}),W(T,"$shift",function(Re){var Be=this;return q(Be),t(Re===void 0)?t(Be.length===0)?l:it(Be):(Re=p(Re,o("Integer"),"to_int"),t(Re<0)&&$e.$raise(o("ArgumentError"),"negative array size"),t(Be.length===0)?[]:Be.splice(0,Re))},-1),W(T,"$shuffle",function(Re){var Be=this;return Be.$dup().$to_a()["$shuffle!"](Re)},-1),W(T,"$shuffle!",function(Re){var Be=this;q(Be);var Ge,b=Be.length,R,me;for(Re!==void 0&&(Re=Z["$coerce_to?"](Re,o("Hash"),"to_hash"),Re!==l&&(Re=Re["$[]"]("random"),Re!==l&&Re["$respond_to?"]("rand")&&(Ge=Re)));b;)Ge?(R=Ge.$rand(b).$to_int(),R<0&&$e.$raise(o("RangeError"),"random number too small "+R),R>=b&&$e.$raise(o("RangeError"),"random number too big "+R)):R=Be.$rand(b),me=Be[--b],Be[b]=Be[R],Be[R]=me;return Be},-1),W(T,"$slice!",function(Re,Be){var Ge=this,b=l,R=l,me=l,De=l,Qe=l;if(q(Ge),b=l,t(Be===void 0))if(ve(o("Range"),Re)){R=Re,b=Ge["$[]"](R),me=R.begin===l?0:p(R.begin,o("Integer"),"to_int"),De=R.end===l?-1:p(R.end,o("Integer"),"to_int"),me<0&&(me+=Ge.length),De<0?De+=Ge.length:De>=Ge.length&&(De=Ge.length-1,R.excl&&(De+=1));var ct=De-me;R.excl&&R.end!==l?De-=1:ct+=1,me<Ge.length&&me>=0&&De<Ge.length&&De>=0&&ct>0&&Ge.splice(me,ct)}else{if(Qe=p(Re,o("Integer"),"to_int"),Qe<0&&(Qe+=Ge.length),Qe<0||Qe>=Ge.length)return l;b=Ge[Qe],Qe===0?Ge.shift():Ge.splice(Qe,1)}else{if(Qe=p(Re,o("Integer"),"to_int"),Be=p(Be,o("Integer"),"to_int"),Be<0)return l;b=Ge["$[]"](Qe,Be),Qe<0&&(Qe+=Ge.length),Qe+Be>Ge.length&&(Be=Ge.length-Qe),Qe<Ge.length&&Qe>=0&&Ge.splice(Qe,Be)}return b},-2),W(T,"$sort",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,t(Be.length>1)?(Re===l&&(Re=function(Ge,b){return Ge["$<=>"](b)}),Be.slice().sort(function(Ge,b){var R=Re(Ge,b);return R===l&&$e.$raise(o("ArgumentError"),"comparison of "+Ge.$inspect()+" with "+b.$inspect()+" failed"),ce(R,0)?1:D(R,0)?-1:0})):Be}),W(T,"$sort!",function rt(){var Re=rt.$$p||l,Be=this;rt.$$p=null,q(Be);var Ge;Re!==l?Ge=we(Be.slice(),"sort",[],Re.$to_proc()):Ge=Be.slice().$sort(),Be.length=0;for(var b=0,R=Ge.length;b<R;b++)Be.push(Ge[b]);return Be}),W(T,"$sort_by!",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,Re===l?we(Be,"enum_for",["sort_by!"],function Ge(){var b=Ge.$$s==null?this:Ge.$$s;return b.$size()},{$$s:Be}):(q(Be),Be.$replace(we(Be,"sort_by",[],Re.$to_proc())))}),W(T,"$take",function(Re){var Be=this;return Re<0&&$e.$raise(o("ArgumentError")),Be.slice(0,Re)}),W(T,"$take_while",function rt(){var Re=rt.$$p||l,Be=this;rt.$$p=null;for(var Ge=[],b=0,R=Be.length,me,De;b<R;b++){if(me=Be[b],De=Re(me),De===!1||De===l)return Ge;Ge.push(me)}return Ge}),W(T,"$to_a",function(){var Re=this;return Re.$$class===e.Array?Re:e.Array.$new(Re)}),W(T,"$to_ary",qe),W(T,"$to_h",function rt(){var Re=rt.$$p||l,Be=this,Ge=l;rt.$$p=null,Ge=Be,Re!==l&&(Ge=we(Ge,"map",[],Re.$to_proc()));var b,R=Ge.length,me,De,Qe,ct=ae([],{});for(b=0;b<R;b++)me=Z["$coerce_to?"](Ge[b],o("Array"),"to_ary"),me.$$is_array||$e.$raise(o("TypeError"),"wrong element type "+me.$class()+" at "+b+" (expected array)"),me.length!==2&&$e.$raise(o("ArgumentError"),"wrong array length at "+b+" (expected 2, was "+me.$length()+")"),De=me[0],Qe=me[1],c(ct,De,Qe);return ct}),W(T,"$transpose",function(){var Re=this,Be=l,Ge=l;return t(Re["$empty?"]())?[]:(Be=[],Ge=l,we(Re,"each",[],function(R){var me=l;return R==null&&(R=l),R=ve(o("Array"),R)?R.$to_a():p(R,o("Array"),"to_ary").$to_a(),Ge=t(me=Ge)?me:R.length,te(R.length,Ge)&&$e.$raise(o("IndexError"),"element size differs ("+R.length+" should be "+Ge+")"),we(R.length,"times",[],function(Qe){var ct,a=l;return Qe==null&&(Qe=l),a=t(me=Be["$[]"](Qe))?me:(ct=[Qe,[]],we(Be,"[]=",ct),ct[ct.length-1]),a["$<<"](R.$at(Qe))})}),Be)}),W(T,"$union",function(Re){var Be,Ge,b=this;return Be=pe(arguments),Ge=Be,we(Ge,"reduce",[b.$uniq()],function(me,De){return me==null&&(me=l),De==null&&(De=l),me["$|"](De)})},-1),W(T,"$uniq",function rt(){var Re=rt.$$p||l,Be=this;rt.$$p=null;var Ge=ae([],{}),b,R,me,De;if(Re===l)for(b=0,R=Be.length;b<R;b++)me=Be[b],s(Ge,me)===void 0&&c(Ge,me,me);else for(b=0,R=Be.length;b<R;b++)me=Be[b],De=i(Re,me),s(Ge,De)===void 0&&c(Ge,De,me);return Ge.$values()}),W(T,"$uniq!",function rt(){var Re=rt.$$p||l,Be=this;rt.$$p=null,q(Be);var Ge=Be.length,b=ae([],{}),R,me,De,Qe;for(R=0,me=Ge;R<me;R++){if(De=Be[R],Qe=Re===l?De:i(Re,De),s(b,Qe)===void 0){c(b,Qe,De);continue}Be.splice(R,1),me--,R--}return Be.length===Ge?l:Be}),W(T,"$unshift",function(Re){var Be,Ge,b=this;Be=pe(arguments),Ge=Be,q(b);var R=b.length,me=Ge.length;if(me==0)return b;for(var De=R-me,Qe=0;Qe<me;Qe++)b.push(b[De+Qe]);for(var ct=R-1;ct-me>=0;)b[ct]=b[ct-me],ct--;for(var a=0;a<me;a++)b[a]=Ge[a];return b},-1),W(T,"$values_at",function(Re){var Be,Ge,b=this,R=l;return Be=pe(arguments),Ge=Be,R=[],we(Ge,"each",[],function me(De){var Qe=me.$$s==null?this:me.$$s,ct=l,a=l,ne=l;return De==null&&(De=l),t(De["$is_a?"](o("Range")))?(ct=De.$end()===l?-1:p(De.$end(),o("Integer"),"to_int"),a=De.$begin()===l?0:p(De.$begin(),o("Integer"),"to_int"),a<0?(a=a+Qe.length,l):(ct<0&&(ct=ct+Qe.length),De["$exclude_end?"]()&&De.$end()!==l&&ct--,ct<a?l:we(a,"upto",[ct],function ee(H){var _e=ee.$$s==null?this:ee.$$s;return H==null&&(H=l),R["$<<"](_e.$at(H))},{$$s:Qe}))):(ne=p(De,o("Integer"),"to_int"),R["$<<"](Qe.$at(ne)))},{$$s:b}),R},-1),W(T,"$zip",function rt(Re){var Be=rt.$$p||l,Ge,b,R=this,me=l;rt.$$p=null,Ge=pe(arguments),b=Ge;var De=[],Qe=R.length,ct,a,ne,ee,H;for(ee=0,H=b.length;ee<H;ee++)if(a=b[ee],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){b[ee]=a.$take(Qe);continue}b[ee]=(t(me=Z["$coerce_to?"](a,o("Array"),"to_ary"))?me:Z["$coerce_to!"](a,o("Enumerator"),"to_enum","each")).$to_a()}for(ne=0;ne<Qe;ne++){for(ct=[R[ne]],ee=0,H=b.length;ee<H;ee++)a=b[ee][ne],a==null&&(a=l),ct[ee+1]=a;De[ne]=ct}if(Be!==l){for(ne=0;ne<Qe;ne++)e.yield1(Be,De[ne]);return l}return De},-1),ke(T,"$inherited",function(Re){Re.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),W(T,"$instance_variables",function rt(){var Re=rt.$$p||l,Be=this;return rt.$$p=null,we(ye(Be,le(Be,"instance_variables",rt,!1,!0),"instance_variables",[],Re),"reject",[],function(b){var R=l;return b==null&&(b=l),t(R=/^@\d+$/.test(b))?R:b["$=="]("@length")})}),W(T,"$pack",function(Re){return pe(arguments),$e.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),B(T,"append","push"),B(T,"filter","select"),B(T,"filter!","select!"),B(T,"map","collect"),B(T,"map!","collect!"),B(T,"prepend","unshift"),B(T,"size","length"),B(T,"slice","[]"),B(T,"to_s","inspect"),Z.$pristine(T.$singleton_class(),"allocate"),Z.$pristine(T,"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,c=e.hash_delete,d=e.deny_frozen_access,p=e.freeze,h=e.klass,q=e.slice,j=e.Opal,G=e.Kernel,pe=e.defs,ke=e.def,$e=e.send,W=e.rb_ge,Z=e.rb_gt,ve=e.hash2,ae=e.truthy,ye=e.to_a,le=e.return_self,we=e.alias,ce=e.top,ze=[],X=e.nil,Ae=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?"),ce.$require("corelib/enumerable"),function(oe,k,Se){var F=h(oe,k,"Hash"),de=[F].concat(Se),D=e.$r(de);F.$include(Ae("Enumerable")),F.$$prototype.$$is_hash=!0,pe(F,"$[]",function(B){var w,$,l=this;w=q(arguments),$=w;var o,f=$.length,_;if(f===1){if(o=j["$coerce_to?"]($["$[]"](0),Ae("Hash"),"to_hash"),o!==X)return l.$allocate()["$merge!"](o);for($=j["$coerce_to?"]($["$[]"](0),Ae("Array"),"to_ary"),$===X&&G.$raise(Ae("ArgumentError"),"odd number of arguments for Hash"),f=$.length,o=l.$allocate(),_=0;_<f;_++)if($[_].$$is_array)switch($[_].length){case 1:o.$store($[_][0],X);break;case 2:o.$store($[_][0],$[_][1]);break;default:G.$raise(Ae("ArgumentError"),"invalid number of elements ("+$[_].length+" for 1..2)")}return o}for(f%2!==0&&G.$raise(Ae("ArgumentError"),"odd number of arguments for Hash"),o=l.$allocate(),_=0;_<f;_+=2)o.$store($[_],$[_+1]);return o},-1),pe(F,"$allocate",function(){var B=this,w=new B.$$constructor;return n(w),w.$$none=X,w.$$proc=X,w}),pe(F,"$try_convert",function(B){return j["$coerce_to?"](B,Ae("Hash"),"to_hash")}),ke(F,"$initialize",function te(B){var w=te.$$p||X,$=this;return te.$$p=null,d($),B!==void 0&&w!==X&&G.$raise(Ae("ArgumentError"),"wrong number of arguments (1 for 0)"),$.$$none=B===void 0?X:B,$.$$proc=w,$},-1),ke(F,"$==",function(B){var w=this;if(w===B)return!0;if(!B.$$is_hash||w.$$keys.length!==B.$$keys.length)return!1;for(var $=0,l=w.$$keys,o=l.length,f,_,A;$<o;$++)if(f=l[$],f.$$is_string?(_=w.$$smap[f],A=B.$$smap[f]):(_=f.value,A=i(B,f.key)),A===void 0||!_["$eql?"](A))return!1;return!0}),ke(F,"$>=",function(B){var w=this,$=X;return B=j["$coerce_to!"](B,Ae("Hash"),"to_hash"),w.$$keys.length<B.$$keys.length?!1:($=!0,$e(B,"each",[],function l(o,f){var _=l.$$s==null?this:l.$$s,A=X;if(o==null&&(o=X),f==null&&(f=X),A=_.$fetch(o,null),A==null||A!==f){$=!1;return}},{$$s:w}),$)}),ke(F,"$>",function(B){var w=this;return B=j["$coerce_to!"](B,Ae("Hash"),"to_hash"),w.$$keys.length<=B.$$keys.length?!1:W(w,B)}),ke(F,"$<",function(B){var w=this;return B=j["$coerce_to!"](B,Ae("Hash"),"to_hash"),Z(B,w)}),ke(F,"$<=",function(B){var w=this;return B=j["$coerce_to!"](B,Ae("Hash"),"to_hash"),W(B,w)}),ke(F,"$[]",function(B){var w=this,$=i(w,B);return $!==void 0?$:w.$default(B)}),ke(F,"$[]=",function(B,w){var $=this;return d($),s($,B,w),w}),ke(F,"$assoc",function(B){for(var w=this,$=0,l=w.$$keys,o=l.length,f;$<o;$++)if(f=l[$],f.$$is_string){if(f["$=="](B))return[f,w.$$smap[f]]}else if(f.key["$=="](B))return[f.key,f.value];return X}),ke(F,"$clear",function(){var B=this;return d(B),n(B),B}),ke(F,"$clone",function(){var B=this,w=new B.$$class;return n(w),e.hash_clone(B,w),w}),ke(F,"$compact",function(){for(var B=this,w=r(),$=0,l=B.$$keys,o=l.length,f,_,A;$<o;$++)f=l[$],f.$$is_string?_=B.$$smap[f]:(_=f.value,f=f.key),_!==X&&s(w,f,_);return w}),ke(F,"$compact!",function(){var B=this;d(B);for(var w=!1,$=0,l=B.$$keys,o=l.length,f,_,A;$<o;$++)f=l[$],f.$$is_string?_=B.$$smap[f]:(_=f.value,f=f.key),_===X&&c(B,f)!==void 0&&(w=!0,o--,$--);return w?B:X}),ke(F,"$compare_by_identity",function(){var B=this;d(B);var w,$,l,o=B.$$keys,f;if(B.$$by_identity)return B;if(B.$$keys.length===0)return B.$$by_identity=!0,B;for(f=ve([],{}).$compare_by_identity(),w=0,$=o.length;w<$;w++)l=o[w],l.$$is_string||(l=l.key),s(f,l,i(B,l));return B.$$by_identity=!0,B.$$map=f.$$map,B.$$smap=f.$$smap,B}),ke(F,"$compare_by_identity?",function(){var B=this;return B.$$by_identity===!0}),ke(F,"$default",function(B){var w=this;return B!==void 0&&w.$$proc!==X&&w.$$proc!==void 0?w.$$proc.$call(w,B):w.$$none===void 0?X:w.$$none},-1),ke(F,"$default=",function(B){var w=this;return d(w),w.$$proc=X,w.$$none=B,B}),ke(F,"$default_proc",function(){var B=this;return B.$$proc!==void 0?B.$$proc:X}),ke(F,"$default_proc=",function(B){var w=this;d(w);var $=B;return $!==X&&($=j["$coerce_to!"]($,Ae("Proc"),"to_proc"),$["$lambda?"]()&&$.$arity().$abs()!==2&&G.$raise(Ae("TypeError"),"default_proc takes two arguments")),w.$$none=X,w.$$proc=$,B}),ke(F,"$delete",function te(B){var w=te.$$p||X,$=this;te.$$p=null,d($);var l=c($,B);return l!==void 0?l:w!==X?e.yield1(w,B):X}),ke(F,"$delete_if",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["delete_if"],function T(){var J=T.$$s==null?this:T.$$s;return J.$size()},{$$s:w});d(w);for(var $=0,l=w.$$keys,o=l.length,f,_,A;$<o;$++)f=l[$],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),A=B(f,_),A!==!1&&A!==X&&c(w,f)!==void 0&&(o--,$--);return w}),ke(F,"$dig",function(B,w){var $,l,o=this,f=X;return $=q(arguments,1),l=$,f=o["$[]"](B),f===X||l.length===0?f:(ae(f["$respond_to?"]("dig"))||G.$raise(Ae("TypeError"),""+f.$class()+" does not have #dig method"),$e(f,"dig",ye(l)))},-2),ke(F,"$each",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["each"],function A(){var T=A.$$s==null?this:A.$$s;return T.$size()},{$$s:w});for(var $=0,l=w.$$keys.slice(),o=l.length,f,_;$<o;$++)f=l[$],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),t(B,[f,_]);return w}),ke(F,"$each_key",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["each_key"],function _(){var A=_.$$s==null?this:_.$$s;return A.$size()},{$$s:w});for(var $=0,l=w.$$keys.slice(),o=l.length,f;$<o;$++)f=l[$],B(f.$$is_string?f:f.key);return w}),ke(F,"$each_value",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["each_value"],function _(){var A=_.$$s==null?this:_.$$s;return A.$size()},{$$s:w});for(var $=0,l=w.$$keys.slice(),o=l.length,f;$<o;$++)f=l[$],B(f.$$is_string?w.$$smap[f]:f.value);return w}),ke(F,"$empty?",function(){var B=this;return B.$$keys.length===0}),ke(F,"$except",function(B){var w,$,l=this;return w=q(arguments),$=w,$e(l.$dup(),"except!",ye($))},-1),ke(F,"$except!",function(B){var w,$,l=this;return w=q(arguments),$=w,$e($,"each",[],function o(f){var _=o.$$s==null?this:o.$$s;return f==null&&(f=X),_.$delete(f)},{$$s:l}),l},-1),ke(F,"$fetch",function te(B,w){var $=te.$$p||X,l=this;te.$$p=null;var o=i(l,B);return o!==void 0?o:$!==X?$(B):w!==void 0?w:G.$raise(Ae("KeyError").$new("key not found: "+B.$inspect(),ve(["key","receiver"],{key:B,receiver:l})))},-2),ke(F,"$fetch_values",function te(B){var w=te.$$p||X,$,l,o=this;return te.$$p=null,$=q(arguments),l=$,$e(l,"map",[],function f(_){var A=f.$$s==null?this:f.$$s;return _==null&&(_=X),$e(A,"fetch",[_],w.$to_proc())},{$$s:o})},-1),ke(F,"$flatten",function(B){var w=this;B==null&&(B=1),B=j["$coerce_to!"](B,Ae("Integer"),"to_int");for(var $=[],l=0,o=w.$$keys,f=o.length,_,A;l<f;l++){if(_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),$.push(_),A.$$is_array){if(B===1){$.push(A);continue}$=$.concat(A.$flatten(B-2));continue}$.push(A)}return $},-1),ke(F,"$freeze",function(){var B=this;return ae(B["$frozen?"]())?B:p(B)}),ke(F,"$has_key?",function(B){var w=this;return i(w,B)!==void 0}),ke(F,"$has_value?",function(B){for(var w=this,$=0,l=w.$$keys,o=l.length,f;$<o;$++)if(f=l[$],(f.$$is_string?w.$$smap[f]:f.value)["$=="](B))return!0;return!1}),ke(F,"$hash",function(){var B=this,w=e.hash_ids===void 0,$=B.$object_id(),l=["Hash"],o,f;try{if(w&&(e.hash_ids=Object.create(null)),e[$])return"self";for(o in e.hash_ids)if(f=e.hash_ids[o],B["$eql?"](f))return"self";e.hash_ids[$]=B;for(var _=0,A=B.$$keys,T=A.length;_<T;_++)o=A[_],o.$$is_string?l.push([o,B.$$smap[o].$hash()]):l.push([o.key_hash,o.value.$hash()]);return l.sort().join()}finally{w&&(e.hash_ids=void 0)}}),ke(F,"$index",function(B){for(var w=this,$=0,l=w.$$keys,o=l.length,f,_;$<o;$++)if(f=l[$],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),_["$=="](B))return f;return X}),ke(F,"$indexes",function(B){var w,$,l=this;w=q(arguments),$=w;for(var o=[],f=0,_=$.length,A,T;f<_;f++){if(A=$[f],T=i(l,A),T===void 0){o.push(l.$default());continue}o.push(T)}return o},-1);var qe;return ke(F,"$inspect",function(){var B=this,w=qe===void 0,$=B.$object_id(),l=[];return function(){try{if(w&&(qe={}),qe.hasOwnProperty($))return"{...}";qe[$]=!0;for(var o=0,f=B.$$keys,_=f.length,A,T;o<_;o++)A=f[o],A.$$is_string?T=B.$$smap[A]:(T=A.value,A=A.key),A=D("Opal").$inspect(A),T=D("Opal").$inspect(T),l.push(A+"=>"+T);return"{"+l.join(", ")+"}"}finally{w&&(qe=void 0)}}()}),ke(F,"$invert",function(){for(var B=this,w=r(),$=0,l=B.$$keys,o=l.length,f,_;$<o;$++)f=l[$],f.$$is_string?_=B.$$smap[f]:(_=f.value,f=f.key),s(w,_,f);return w}),ke(F,"$keep_if",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["keep_if"],function T(){var J=T.$$s==null?this:T.$$s;return J.$size()},{$$s:w});d(w);for(var $=0,l=w.$$keys,o=l.length,f,_,A;$<o;$++)f=l[$],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),A=B(f,_),(A===!1||A===X)&&c(w,f)!==void 0&&(o--,$--);return w}),ke(F,"$keys",function(){for(var B=this,w=[],$=0,l=B.$$keys,o=l.length,f;$<o;$++)f=l[$],f.$$is_string?w.push(f):w.push(f.key);return w}),ke(F,"$length",function(){var B=this;return B.$$keys.length}),ke(F,"$merge",function te(B){var w=te.$$p||X,$,l,o=this;return te.$$p=null,$=q(arguments),l=$,$e(o.$dup(),"merge!",ye(l),w.$to_proc())},-1),ke(F,"$merge!",function te(B){var w=te.$$p||X,$,l,o=this;te.$$p=null,$=q(arguments),l=$,d(o);var f,_,A,T,J,Fe,it,ht;for(f=0;f<l.length;++f)if(A=j["$coerce_to!"](l[f],Ae("Hash"),"to_hash"),T=A.$$keys,J=T.length,w===X)for(_=0;_<J;_++)Fe=T[_],Fe.$$is_string?ht=A.$$smap[Fe]:(ht=Fe.value,Fe=Fe.key),s(o,Fe,ht);else for(_=0;_<J;_++){if(Fe=T[_],Fe.$$is_string?ht=A.$$smap[Fe]:(ht=Fe.value,Fe=Fe.key),it=i(o,Fe),it===void 0){s(o,Fe,ht);continue}s(o,Fe,w(Fe,it,ht))}return o},-1),ke(F,"$rassoc",function(B){for(var w=this,$=0,l=w.$$keys,o=l.length,f,_;$<o;$++)if(f=l[$],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),_["$=="](B))return[f,_];return X}),ke(F,"$rehash",function(){var B=this;return d(B),e.hash_rehash(B),B}),ke(F,"$reject",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["reject"],function J(){var Fe=J.$$s==null?this:J.$$s;return Fe.$size()},{$$s:w});for(var $=r(),l=0,o=w.$$keys,f=o.length,_,A,T;l<f;l++)_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),T=B(_,A),(T===!1||T===X)&&s($,_,A);return $}),ke(F,"$reject!",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["reject!"],function J(){var Fe=J.$$s==null?this:J.$$s;return Fe.$size()},{$$s:w});d(w);for(var $=!1,l=0,o=w.$$keys,f=o.length,_,A,T;l<f;l++)_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),T=B(_,A),T!==!1&&T!==X&&c(w,_)!==void 0&&($=!0,f--,l--);return $?w:X}),ke(F,"$replace",function(B){var w=this;d(w),B=j["$coerce_to!"](B,Ae("Hash"),"to_hash"),n(w);for(var $=0,l=B.$$keys,o=l.length,f,_,A;$<o;$++)f=l[$],f.$$is_string?A=B.$$smap[f]:(A=f.value,f=f.key),s(w,f,A);return ae(B.$default_proc())?w["$default_proc="](B.$default_proc()):w["$default="](B.$default()),w}),ke(F,"$select",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["select"],function J(){var Fe=J.$$s==null?this:J.$$s;return Fe.$size()},{$$s:w});for(var $=r(),l=0,o=w.$$keys,f=o.length,_,A,T;l<f;l++)_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),T=B(_,A),T!==!1&&T!==X&&s($,_,A);return $}),ke(F,"$select!",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["select!"],function J(){var Fe=J.$$s==null?this:J.$$s;return Fe.$size()},{$$s:w});d(w);for(var $=X,l=0,o=w.$$keys,f=o.length,_,A,T;l<f;l++)_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),T=B(_,A),(T===!1||T===X)&&(c(w,_)!==void 0&&(f--,l--),$=w);return $}),ke(F,"$shift",function(){var B=this;d(B);var w=B.$$keys,$;return w.length>0?($=w[0],$=$.$$is_string?$:$.key,[$,c(B,$)]):X}),ke(F,"$slice",function(B){var w,$,l=this;w=q(arguments),$=w;for(var o=r(),f=0,_=$.length;f<_;f++){var A=$[f],T=i(l,A);T!==void 0&&s(o,A,T)}return o},-1),ke(F,"$to_a",function(){for(var B=this,w=[],$=0,l=B.$$keys,o=l.length,f,_;$<o;$++)f=l[$],f.$$is_string?_=B.$$smap[f]:(_=f.value,f=f.key),w.push([f,_]);return w}),ke(F,"$to_h",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,B!==X)return $e(w,"map",[],B.$to_proc()).$to_h();if(w.$$class===e.Hash)return w;var $=new e.Hash;return n($),e.hash_clone(w,$),$}),ke(F,"$to_hash",le),ke(F,"$to_proc",function(){var B=this;return $e(B,"proc",[],function w($){var l=w.$$s==null?this:w.$$s;return $==null&&G.$raise(Ae("ArgumentError"),"no key given"),l["$[]"]($)},{$$arity:-1,$$s:B})}),ke(F,"$transform_keys",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["transform_keys"],function T(){var J=T.$$s==null?this:T.$$s;return J.$size()},{$$s:w});for(var $=r(),l=0,o=w.$$keys,f=o.length,_,A;l<f;l++)_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),_=t(B,_),s($,_,A);return $}),ke(F,"$transform_keys!",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["transform_keys!"],function T(){var J=T.$$s==null?this:T.$$s;return J.$size()},{$$s:w});d(w);var $=e.slice(w.$$keys),l,o=$.length,f,_,A;for(l=0;l<o;l++)f=$[l],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),A=t(B,f),c(w,f),s(w,A,_);return w}),ke(F,"$transform_values",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["transform_values"],function T(){var J=T.$$s==null?this:T.$$s;return J.$size()},{$$s:w});for(var $=r(),l=0,o=w.$$keys,f=o.length,_,A;l<f;l++)_=o[l],_.$$is_string?A=w.$$smap[_]:(A=_.value,_=_.key),A=t(B,A),s($,_,A);return $}),ke(F,"$transform_values!",function te(){var B=te.$$p||X,w=this;if(te.$$p=null,!ae(B))return $e(w,"enum_for",["transform_values!"],function A(){var T=A.$$s==null?this:A.$$s;return T.$size()},{$$s:w});d(w);for(var $=0,l=w.$$keys,o=l.length,f,_;$<o;$++)f=l[$],f.$$is_string?_=w.$$smap[f]:(_=f.value,f=f.key),_=t(B,_),s(w,f,_);return w}),ke(F,"$values",function(){for(var B=this,w=[],$=0,l=B.$$keys,o=l.length,f;$<o;$++)f=l[$],f.$$is_string?w.push(B.$$smap[f]):w.push(f.value);return w}),we(F,"dup","clone"),we(F,"each_pair","each"),we(F,"eql?","=="),we(F,"filter","select"),we(F,"filter!","select!"),we(F,"include?","has_key?"),we(F,"indices","indexes"),we(F,"key","index"),we(F,"key?","has_key?"),we(F,"member?","has_key?"),we(F,"size","length"),we(F,"store","[]="),we(F,"to_s","inspect"),we(F,"update","merge!"),we(F,"value?","has_value?"),we(F,"values_at","indexes")}("::",null,ze)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,c=e.truthy,d=e.rb_gt,p=e.not,h=e.rb_lt,q=e.alias,j=e.send2,G=e.find_super,pe=e.send,ke=e.rb_plus,$e=e.rb_minus,W=e.eqeq,Z=e.return_self,ve=e.rb_divide,ae=e.to_ary,ye=e.rb_times,le=e.rb_le,we=e.rb_ge,ce=e.return_val,ze=e.const_set,X=e.top,Ae=[],oe=e.nil,k=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?"),X.$require("corelib/numeric"),function(Se,F,de){var D=t(Se,F,"Number");r.$bridge(Number,D),e.prop(D.$$prototype,"$$is_number",!0),D.$$is_number_class=!0,function(l,o){return i(l,"$allocate",function(){var _=this;return n.$raise(k("TypeError"),"allocator undefined for "+_.$name())}),e.udef(l,"$new"),oe}(e.get_singleton_class(D)),i(D,"$coerce",function(o){var f=this;if(o===oe)n.$raise(k("TypeError"),"can't convert "+o.$class()+" into Float");else{if(o.$$is_string)return[n.$Float(o),f];if(o["$respond_to?"]("to_f"))return[r["$coerce_to!"](o,k("Float"),"to_f"),f];if(o.$$is_number)return[o,f];n.$raise(k("TypeError"),"can't convert "+o.$class()+" into Float")}}),i(D,"$__id__",function(){var o=this;return o*2+1}),i(D,"$+",function(o){var f=this;return o.$$is_number?f+o:f.$__coerced__("+",o)}),i(D,"$-",function(o){var f=this;return o.$$is_number?f-o:f.$__coerced__("-",o)}),i(D,"$*",function(o){var f=this;return o.$$is_number?f*o:f.$__coerced__("*",o)}),i(D,"$/",function(o){var f=this;return o.$$is_number?f/o:f.$__coerced__("/",o)}),i(D,"$%",function(o){var f=this;if(o.$$is_number){if(o==-1/0)return o;if(o==0)n.$raise(k("ZeroDivisionError"),"divided by 0");else return o<0||f<0?(f%o+o)%o:f%o}else return f.$__coerced__("%",o)}),i(D,"$&",function(o){var f=this;return o.$$is_number?f&o:f.$__coerced__("&",o)}),i(D,"$|",function(o){var f=this;return o.$$is_number?f|o:f.$__coerced__("|",o)}),i(D,"$^",function(o){var f=this;return o.$$is_number?f^o:f.$__coerced__("^",o)}),i(D,"$<",function(o){var f=this;return o.$$is_number?f<o:f.$__coerced__("<",o)}),i(D,"$<=",function(o){var f=this;return o.$$is_number?f<=o:f.$__coerced__("<=",o)}),i(D,"$>",function(o){var f=this;return o.$$is_number?f>o:f.$__coerced__(">",o)}),i(D,"$>=",function(o){var f=this;return o.$$is_number?f>=o:f.$__coerced__(">=",o)});var qe=function(l,o){return o.$$is_number?isNaN(l)||isNaN(o)?oe:l>o?1:l<o?-1:0:l.$__coerced__("<=>",o)};i(D,"$<=>",function(o){var f=this;try{return qe(f,o)}catch(_){if(e.rescue(_,[k("ArgumentError")]))try{return oe}finally{e.pop_exception()}else throw _}}),i(D,"$<<",function(o){var f=this;return o=r["$coerce_to!"](o,k("Integer"),"to_int"),o>0?f<<o:f>>-o}),i(D,"$>>",function(o){var f=this;return o=r["$coerce_to!"](o,k("Integer"),"to_int"),o>0?f>>o:f<<-o}),i(D,"$[]",function(o){var f=this;return o=r["$coerce_to!"](o,k("Integer"),"to_int"),o<0?0:o>=32?f<0?1:0:f>>o&1}),i(D,"$+@",function(){var o=this;return+o}),i(D,"$-@",function(){var o=this;return-o}),i(D,"$~",function(){var o=this;return~o}),i(D,"$**",function(o){var f=this;return s(k("Integer"),o)?p(k("Integer")["$==="](f))||c(d(o,0))?Math.pow(f,o):k("Rational").$new(f,1)["$**"](o):h(f,0)&&(s(k("Float"),o)||s(k("Rational"),o))?k("Complex").$new(f,0)["$**"](o.$to_f()):c(o.$$is_number!=null)?Math.pow(f,o):f.$__coerced__("**",o)}),i(D,"$==",function(o){var f=this;return o.$$is_number?f.valueOf()===o.valueOf():o["$respond_to?"]("==")?o["$=="](f):!1}),q(D,"===","=="),i(D,"$abs",function(){var o=this;return Math.abs(o)}),i(D,"$abs2",function(){var o=this;return Math.abs(o*o)}),i(D,"$allbits?",function(o){var f=this;return o=r["$coerce_to!"](o,k("Integer"),"to_int"),(f&o)==o}),i(D,"$anybits?",function(o){var f=this;return o=r["$coerce_to!"](o,k("Integer"),"to_int"),(f&o)!==0}),i(D,"$angle",function(){var o=this;return c(o["$nan?"]())?o:o==0?1/o>0?0:Math.PI:o<0?Math.PI:0}),i(D,"$bit_length",function(){var o=this;if(s(k("Integer"),o)||n.$raise(k("NoMethodError").$new("undefined method `bit_length` for "+o+":Float","bit_length")),o===0||o===-1)return 0;for(var f=0,_=o<0?~o:o;_!=0;)f+=1,_>>>=1;return f}),i(D,"$ceil",function(o){var f=this;o==null&&(o=0);var _=f.$to_f();if(_%1===0&&o>=0)return _;var A=Math.pow(10,o),T=Math.ceil(_*A)/A;return _%1===0&&(T=Math.round(T)),T},-1),i(D,"$chr",function(o){var f=this;return e.enc(String.fromCharCode(f),o||"BINARY")},-1),i(D,"$denominator",function l(){var o=l.$$p||oe,f=this;return l.$$p=null,c(f["$nan?"]())||c(f["$infinite?"]())?1:j(f,G(f,"denominator",l,!1,!0),"denominator",[],o)}),i(D,"$downto",function l(o){var f=l.$$p||oe,_=this;if(l.$$p=null,f===oe)return pe(_,"enum_for",["downto",o],function T(){var J=T.$$s==null?this:T.$$s;return s(k("Numeric"),o)||n.$raise(k("ArgumentError"),"comparison of "+J.$class()+" with "+o.$class()+" failed"),c(d(o,J))?0:ke($e(J,o),1)},{$$s:_});o.$$is_number||n.$raise(k("ArgumentError"),"comparison of "+_.$class()+" with "+o.$class()+" failed");for(var A=_;A>=o;A--)f(A);return _}),i(D,"$equal?",function(o){var f=this,_=oe;return c(_=f["$=="](o))?_:isNaN(f)&&isNaN(o)}),i(D,"$even?",function(){var o=this;return o%2===0}),i(D,"$floor",function(o){var f=this;o==null&&(o=0);var _=f.$to_f();if(_%1===0&&o>=0)return _;var A=Math.pow(10,o),T=Math.floor(_*A)/A;return _%1===0&&(T=Math.round(T)),T},-1),i(D,"$gcd",function(o){var f=this;s(k("Integer"),o)||n.$raise(k("TypeError"),"not an integer");for(var _=Math.abs(f),A=Math.abs(o);_>0;){var T=_;_=A%_,A=T}return A}),i(D,"$gcdlcm",function(o){var f=this;return[f.$gcd(o),f.$lcm(o)]}),i(D,"$integer?",function(){var o=this;return o%1===0}),i(D,"$is_a?",function l(o){var f=l.$$p||oe,_=this;return l.$$p=null,W(o,k("Integer"))&&s(k("Integer"),_)||W(o,k("Integer"))&&s(k("Integer"),_)||W(o,k("Float"))&&s(k("Float"),_)?!0:j(_,G(_,"is_a?",l,!1,!0),"is_a?",[o],f)}),i(D,"$instance_of?",function l(o){var f=l.$$p||oe,_=this;return l.$$p=null,W(o,k("Integer"))&&s(k("Integer"),_)||W(o,k("Integer"))&&s(k("Integer"),_)||W(o,k("Float"))&&s(k("Float"),_)?!0:j(_,G(_,"instance_of?",l,!1,!0),"instance_of?",[o],f)}),i(D,"$lcm",function(o){var f=this;return s(k("Integer"),o)||n.$raise(k("TypeError"),"not an integer"),f==0||o==0?0:Math.abs(f*o/f.$gcd(o))}),i(D,"$next",function(){var o=this;return o+1}),i(D,"$nobits?",function(o){var f=this;return o=r["$coerce_to!"](o,k("Integer"),"to_int"),(f&o)==0}),i(D,"$nonzero?",function(){var o=this;return o==0?oe:o}),i(D,"$numerator",function l(){var o=l.$$p||oe,f=this;return l.$$p=null,c(f["$nan?"]())||c(f["$infinite?"]())?f:j(f,G(f,"numerator",l,!1,!0),"numerator",[],o)}),i(D,"$odd?",function(){var o=this;return o%2!==0}),i(D,"$ord",Z),i(D,"$pow",function(o,f){var _=this;return _==0&&n.$raise(k("ZeroDivisionError"),"divided by 0"),f===void 0?_["$**"](o):(k("Integer")["$==="](o)||n.$raise(k("TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),o<0&&n.$raise(k("TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),k("Integer")["$==="](f)||n.$raise(k("TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),f===0&&n.$raise(k("ZeroDivisionError"),"divided by 0"),_["$**"](o)["$%"](f))},-2),i(D,"$pred",function(){var o=this;return o-1}),i(D,"$quo",function l(o){var f=l.$$p||oe,_=this;return l.$$p=null,s(k("Integer"),_)?j(_,G(_,"quo",l,!1,!0),"quo",[o],f):ve(_,o)}),i(D,"$rationalize",function(o){var f,_,A=this,T=oe,J=oe;return arguments.length>1&&n.$raise(k("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(k("Integer"),A)?k("Rational").$new(A,1):c(A["$infinite?"]())?n.$raise(k("FloatDomainError"),"Infinity"):c(A["$nan?"]())?n.$raise(k("FloatDomainError"),"NaN"):c(o==null)?(_=k("Math").$frexp(A),f=ae(_),T=f[0]==null?oe:f[0],J=f[1]==null?oe:f[1],T=k("Math").$ldexp(T,k(k("Float"),"MANT_DIG")).$to_i(),J=$e(J,k(k("Float"),"MANT_DIG")),k("Rational").$new(ye(2,T),1["$<<"]($e(1,J))).$rationalize(k("Rational").$new(1,1["$<<"]($e(1,J))))):A.$to_r().$rationalize(o)},-1),i(D,"$remainder",function(o){var f=this;return $e(f,ye(o,ve(f,o).$truncate()))}),i(D,"$round",function(o){var f,_,A=this,T=oe;if(s(k("Integer"),A)){if(c(o==null)||(s(k("Float"),o)&&c(o["$infinite?"]())&&n.$raise(k("RangeError"),"Infinity"),o=r["$coerce_to!"](o,k("Integer"),"to_int"),c(h(o,k(k("Integer"),"MIN")))&&n.$raise(k("RangeError"),"out of bounds"),c(o>=0)))return A;if(o=o["$-@"](),.415241*o-.125>A.$size())return 0;var J=Math.pow(10,o),Fe=Math.floor((Math.abs(A)+J/2)/J)*J;return A<0?-Fe:Fe}else{if(c(A["$nan?"]())&&c(o==null)&&n.$raise(k("FloatDomainError"),"NaN"),o=r["$coerce_to!"](o||0,k("Integer"),"to_int"),c(le(o,0)))c(A["$nan?"]())?n.$raise(k("RangeError"),"NaN"):c(A["$infinite?"]())&&n.$raise(k("FloatDomainError"),"Infinity");else{if(W(o,0))return Math.round(A);if(c(A["$nan?"]())||c(A["$infinite?"]()))return A}return _=k("Math").$frexp(A),f=ae(_),f[0]==null||f[0],T=f[1]==null?oe:f[1],c(we(o,$e(ke(k(k("Float"),"DIG"),2),c(d(T,0))?ve(T,4):$e(ve(T,3),1))))?A:c(h(o,(c(d(T,0))?ke(ve(T,3),1):ve(T,4))["$-@"]()))?0:Math.round(A*Math.pow(10,o))/Math.pow(10,o)}},-1),i(D,"$times",function l(){var o=l.$$p||oe,f=this;if(l.$$p=null,!c(o))return pe(f,"enum_for",["times"],function A(){var T=A.$$s==null?this:A.$$s;return T},{$$s:f});for(var _=0;_<f;_++)o(_);return f}),i(D,"$to_f",Z),i(D,"$to_i",function(){var o=this;return o<0?Math.ceil(o):Math.floor(o)}),i(D,"$to_r",function(){var o,f,_=this,A=oe,T=oe;return s(k("Integer"),_)?k("Rational").$new(_,1):(f=k("Math").$frexp(_),o=ae(f),A=o[0]==null?oe:o[0],T=o[1]==null?oe:o[1],A=k("Math").$ldexp(A,k(k("Float"),"MANT_DIG")).$to_i(),T=$e(T,k(k("Float"),"MANT_DIG")),ye(A,k(k("Float"),"RADIX")["$**"](T)).$to_r())}),i(D,"$to_s",function(o){var f=this;return o==null&&(o=10),o=r["$coerce_to!"](o,k("Integer"),"to_int"),(c(h(o,2))||c(d(o,36)))&&n.$raise(k("ArgumentError"),"invalid radix "+o),W(f,0)&&c(1/f===-1/0)?"-0.0":f.toString(o)},-1),i(D,"$truncate",function(o){var f=this;o==null&&(o=0);var _=f.$to_f();if(_%1===0&&o>=0)return _;var A=Math.pow(10,o),T=parseInt(_*A,10)/A;return _%1===0&&(T=Math.round(T)),T},-1),i(D,"$digits",function(o){var f=this;o==null&&(o=10),h(f,0)&&n.$raise(k(k("Math"),"DomainError"),"out of domain"),o=r["$coerce_to!"](o,k("Integer"),"to_int"),c(h(o,2))&&n.$raise(k("ArgumentError"),"invalid radix "+o),f!=parseInt(f)&&n.$raise(k("NoMethodError"),"undefined method `digits' for "+f.$inspect());var _=f,A=[];if(f==0)return[0];for(;_!=0;)A.push(_%o),_=parseInt(_/o,10);return A},-1),i(D,"$divmod",function l(o){var f=l.$$p||oe,_=this;return l.$$p=null,c(_["$nan?"]())||c(o["$nan?"]())?n.$raise(k("FloatDomainError"),"NaN"):c(_["$infinite?"]())?n.$raise(k("FloatDomainError"),"Infinity"):j(_,G(_,"divmod",l,!1,!0),"divmod",[o],f)}),i(D,"$upto",function l(o){var f=l.$$p||oe,_=this;if(l.$$p=null,f===oe)return pe(_,"enum_for",["upto",o],function T(){var J=T.$$s==null?this:T.$$s;return s(k("Numeric"),o)||n.$raise(k("ArgumentError"),"comparison of "+J.$class()+" with "+o.$class()+" failed"),c(h(o,J))?0:ke($e(o,J),1)},{$$s:_});o.$$is_number||n.$raise(k("ArgumentError"),"comparison of "+_.$class()+" with "+o.$class()+" failed");for(var A=_;A<=o;A++)f(A);return _}),i(D,"$zero?",function(){var o=this;return o==0}),i(D,"$size",ce(4)),i(D,"$nan?",function(){var o=this;return isNaN(o)}),i(D,"$finite?",function(){var o=this;return o!=1/0&&o!=-1/0&&!isNaN(o)}),i(D,"$infinite?",function(){var o=this;return o==1/0?1:o==-1/0?-1:oe}),i(D,"$positive?",function(){var o=this;return o!=0&&(o==1/0||1/o>0)}),i(D,"$negative?",function(){var o=this;return o==-1/0||1/o<0});function te(l){var o=new Uint8Array(8);return new DataView(o.buffer).setFloat64(0,l,!0),o}function B(l){return new DataView(l.buffer).getFloat64(0,!0)}function w(l){for(var o=te(l),f=0;f<o.length;f++)if(o[f]===255)o[f]=0;else{o[f]++;break}return B(o)}function $(l){for(var o=te(l),f=0;f<o.length;f++)if(o[f]===0)o[f]=255;else{o[f]--;break}return B(o)}return i(D,"$next_float",function(){var o=this;return W(o,k(k("Float"),"INFINITY"))?k(k("Float"),"INFINITY"):c(o["$nan?"]())?k(k("Float"),"NAN"):we(o,0)?w(Math.abs(o)):$(o)}),i(D,"$prev_float",function(){var o=this;return W(o,k(k("Float"),"INFINITY")["$-@"]())?k(k("Float"),"INFINITY")["$-@"]():c(o["$nan?"]())?k(k("Float"),"NAN"):d(o,0)?$(o):-w(Math.abs(o))}),q(D,"arg","angle"),q(D,"eql?","=="),q(D,"fdiv","/"),q(D,"inspect","to_s"),q(D,"kind_of?","is_a?"),q(D,"magnitude","abs"),q(D,"modulo","%"),q(D,"object_id","__id__"),q(D,"phase","angle"),q(D,"succ","next"),q(D,"to_int","to_i")}("::",k("Numeric")),ze("::","Fixnum",k("Number")),function(Se,F,de){var D=t(Se,F,"Integer"),qe=[D].concat(de);return D.$$is_number_class=!0,D.$$is_integer_class=!0,function(te,B){var w=[te].concat(B),$=e.$r(w);return i(te,"$allocate",function(){var o=this;return n.$raise(k("TypeError"),"allocator undefined for "+o.$name())}),e.udef(te,"$new"),i(te,"$sqrt",function(o){return o=r["$coerce_to!"](o,k("Integer"),"to_int"),o<0&&n.$raise(k(k("Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(o),10)}),i(te,"$try_convert",function(o){var f=this;return $("Opal")["$coerce_to?"](o,f,"to_int")})}(e.get_singleton_class(D),qe),ze(D,"MAX",Math.pow(2,30)-1),ze(D,"MIN",-Math.pow(2,30))}("::",k("Numeric"),Ae),function(Se,F,de){var D=t(Se,F,"Float");return D.$$is_number_class=!0,function(qe,te){return i(qe,"$allocate",function(){var w=this;return n.$raise(k("TypeError"),"allocator undefined for "+w.$name())}),e.udef(qe,"$new"),i(qe,"$===",function(w){return!!w.$$is_number})}(e.get_singleton_class(D)),ze(D,"INFINITY",1/0),ze(D,"MAX",Number.MAX_VALUE),ze(D,"MIN",Number.MIN_VALUE),ze(D,"NAN",NaN),ze(D,"DIG",15),ze(D,"MANT_DIG",53),ze(D,"RADIX",2),ze(D,"EPSILON",Number.EPSILON||2220446049250313e-31)}("::",k("Numeric"))};Opal.modules["corelib/range"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.not,c=e.send2,d=e.find_super,p=e.rb_lt,h=e.rb_le,q=e.send,j=e.eqeq,G=e.eqeqeq,pe=e.return_ivar,ke=e.rb_gt,$e=e.rb_minus,W=e.Opal,Z=e.rb_divide,ve=e.rb_plus,ae=e.rb_times,ye=e.rb_ge,le=e.thrower,we=e.alias,ce=e.top,ze=[],X=e.nil,Ae=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?"),ce.$require("corelib/enumerable"),function(oe,k,Se){var F=t(oe,k,"Range"),de=[F].concat(Se),D=e.$r(de),qe=F.$$prototype;qe.begin=qe.end=qe.excl=X,F.$include(Ae("Enumerable")),F.$$prototype.$$is_range=!0,F.$attr_reader("begin","end"),i(F,"$initialize",function(w,$,l){var o=this;return l==null&&(l=!1),r(o.begin)&&n.$raise(Ae("NameError"),"'initialize' called twice"),r(w["$<=>"]($))||r(w["$nil?"]())||r($["$nil?"]())||n.$raise(Ae("ArgumentError"),"bad value for range"),o.begin=w,o.end=$,o.excl=l},-3),i(F,"$===",function(w){var $=this;return $["$include?"](w)});function te(B){return B.begin===X||B.end===X||B.begin===-1/0||B.end===1/0||B.begin===1/0||B.end===-1/0}return i(F,"$count",function B(){var w=B.$$p||X,$=this;return B.$$p=null,s(w!==X)&&r(te($))?Ae(Ae("Float"),"INFINITY"):c($,d($,"count",B,!1,!0),"count",[],w)}),i(F,"$to_a",function B(){var w=B.$$p||X,$=this;return B.$$p=null,r(te($))&&n.$raise(Ae("TypeError"),"cannot convert endless range to an array"),c($,d($,"to_a",B,!1,!0),"to_a",[],w)}),i(F,"$cover?",function(w){var $=this,l=X,o=X,f=X,_=X,A=X;return l=r(o=r(f=r(_=$.begin["$nil?"]())?-1:_)?f:$.begin["$<=>"](w))&&o,A=r(o=r(f=r(_=$.end["$nil?"]())?-1:_)?f:w["$<=>"]($.end))&&o,r(o=r(f=r($.excl)?r(_=A)?p(A,0):_:r(_=A)?h(A,0):_)?l:f)?h(l,0):o}),i(F,"$each",function B(){var w=B.$$p||X,$=this,l=X,o=X,f=X;if(B.$$p=null,w===X)return q($,"enum_for",["each"],function T(){var J=T.$$s==null?this:T.$$s;return J.$size()},{$$s:$});var _,A;if($.begin.$$is_number&&$.end.$$is_number){for(($.begin%1!==0||$.end%1!==0)&&n.$raise(Ae("TypeError"),"can't iterate from Float"),_=$.begin,A=$.end+(r($.excl)?0:1);_<A;_++)w(_);return $}if($.begin.$$is_string&&$.end.$$is_string)return q($.begin,"upto",[$.end,$.excl],w.$to_proc()),$;for(l=$.begin,o=$.end,r(l["$respond_to?"]("succ"))||n.$raise(Ae("TypeError"),"can't iterate from "+l.$class());r(r(f=$.end["$nil?"]())?f:p(l["$<=>"](o),0));)e.yield1(w,l),l=l.$succ();return s($.excl)&&j(l,o)&&e.yield1(w,l),$}),i(F,"$eql?",function(w){var $=this,l=X,o=X;return G(Ae("Range"),w)?r(l=r(o=$.excl["$==="](w["$exclude_end?"]()))?$.begin["$eql?"](w.$begin()):o)?$.end["$eql?"](w.$end()):l:!1}),i(F,"$exclude_end?",pe("excl")),i(F,"$first",function B(w){var $=B.$$p||X,l=this;return B.$$p=null,r(l.begin["$nil?"]())&&n.$raise(Ae("RangeError"),"cannot get the minimum of beginless range"),r(w==null)?l.begin:c(l,d(l,"first",B,!1,!0),"first",[w],$)},-1),i(F,"$last",function(w){var $=this;return r($.end["$nil?"]())&&n.$raise(Ae("RangeError"),"cannot get the maximum of endless range"),r(w==null)?$.end:$.$to_a().$last(w)},-1),i(F,"$max",function B(){var w=B.$$p||X,$=this;return B.$$p=null,r($.end["$nil?"]())?n.$raise(Ae("RangeError"),"cannot get the maximum of endless range"):w!==X?c($,d($,"max",B,!1,!0),"max",[],w):s($.begin["$nil?"]())&&(r(ke($.begin,$.end))||r($.excl)&&j($.begin,$.end))?X:$.excl?$.end-1:$.end}),i(F,"$min",function B(){var w=B.$$p||X,$=this;return B.$$p=null,r($.begin["$nil?"]())?n.$raise(Ae("RangeError"),"cannot get the minimum of beginless range"):w!==X?c($,d($,"min",B,!1,!0),"min",[],w):s($.end["$nil?"]())&&(r(ke($.begin,$.end))||r($.excl)&&j($.begin,$.end))?X:$.begin}),i(F,"$size",function(){var w=this,$=X,l=X,o=X;return $=Ae(Ae("Float"),"INFINITY"),j(w.begin,$)&&s(w.end["$nil?"]())||j(w.end,$["$-@"]())&&s(w.begin["$nil?"]())?0:r(te(w))?$:G(Ae("Numeric"),w.begin)&&G(Ae("Numeric"),w.end)?(l=w.begin,o=w.end,r(w.excl)&&(o=$e(o,1)),r(p(o,l))?0:(Math.abs(o-l)+1).$to_i()):X}),i(F,"$step",function B(w){var $=B.$$p||X,l=this,o=X,f=X;B.$$p=null;function _(){w==null?w=1:w.$$is_number||(w=W["$coerce_to!"](w,Ae("Integer"),"to_int")),w<0?n.$raise(Ae("ArgumentError"),"step can't be negative"):w===0&&n.$raise(Ae("ArgumentError"),"step can't be 0")}function A(){if(!l.begin["$respond_to?"]("succ")||l.begin.$$is_string&&l.end.$$is_string)return X;if(w%1===0)return Z(l.$size(),w).$ceil();var T=l.begin,J=l.end,Fe=Math.abs,it=Math.floor,ht=(Fe(T)+Fe(J)+Fe(J-T))/Fe(w)*Ae(Ae("Float"),"EPSILON"),mt;return ht>.5&&(ht=.5),l.excl?(mt=it((J-T)/w-ht),mt*w+T<J&&mt++):mt=it((J-T)/w+ht)+1,mt}return $===X?(r(l.begin["$is_a?"](D("Numeric")))||r(l.begin["$nil?"]()))&&(r(l.end["$is_a?"](D("Numeric")))||r(l.end["$nil?"]()))&&s(r(o=l.begin["$nil?"]())?l.end["$nil?"]():o)?Ae(Ae("Enumerator"),"ArithmeticSequence").$new(l,w,"step"):q(l,"enum_for",["step",w],function(){return _(),A()}):(_(),r(l.begin.$$is_number&&l.end.$$is_number)?(f=0,function(){try{var T=le("break");return q(l,"loop",[],function J(){var Fe=J.$$s==null?this:J.$$s,it=X;return Fe.begin==null&&(Fe.begin=X),Fe.excl==null&&(Fe.excl=X),Fe.end==null&&(Fe.end=X),it=ve(Fe.begin,ae(f,w)),r(Fe.excl)?r(ye(it,Fe.end))&&T.$throw():r(ke(it,Fe.end))&&T.$throw(),e.yield1($,it),f=ve(f,1)},{$$s:l})}catch(J){if(J===T)return J.$v;throw J}}()):(l.begin.$$is_string&&l.end.$$is_string&&w%1!==0&&n.$raise(Ae("TypeError"),"no implicit conversion to float from string"),q(l,"each_with_index",[],function(J,Fe){return J==null&&(J=X),Fe==null&&(Fe=X),j(Fe["$%"](w),0)?e.yield1($,J):X})),l)},-1),i(F,"$%",function(w){var $=this;return r($.begin["$is_a?"](D("Numeric")))&&r($.end["$is_a?"](D("Numeric")))?Ae(Ae("Enumerator"),"ArithmeticSequence").$new($,w,"%"):$.$step(w)}),i(F,"$bsearch",function B(){var w=B.$$p||X,$=this;return B.$$p=null,w===X?$.$enum_for("bsearch"):(r(te($)&&($.begin.$$is_number||$.end.$$is_number))&&n.$raise(Ae("NotImplementedError"),"Can't #bsearch an infinite range"),r($.begin.$$is_number&&$.end.$$is_number)||n.$raise(Ae("TypeError"),"can't do binary search for "+$.begin.$class()),q($.$to_a(),"bsearch",[],w.$to_proc()))}),i(F,"$to_s",function(){var w=this,$=X;return""+(r($=w.begin)?$:"")+(r(w.excl)?"...":"..")+(r($=w.end)?$:"")}),i(F,"$inspect",function(){var w=this,$=X;return""+(r($=w.begin)?w.begin.$inspect():$)+(r(w.excl)?"...":"..")+(r($=w.end)?w.end.$inspect():$)}),i(F,"$marshal_load",function(w){var $=this;return $.begin=w["$[]"]("begin"),$.end=w["$[]"]("end"),$.excl=w["$[]"]("excl")}),i(F,"$hash",function(){var w=this;return[w.begin,w.end,w.excl].$hash()}),we(F,"==","eql?"),we(F,"include?","cover?"),we(F,"member?","cover?")}("::",null,ze)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,c=e.def,d=e.send,p=e.to_a,h=e.return_self,q=e.ensure_kwargs,j=e.Opal,G=e.alias,pe=e.nil,ke=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function($e,W){var Z=r($e,W,"Proc");return e.prop(Z.$$prototype,"$$is_proc",!0),e.prop(Z.$$prototype,"$$is_lambda",!1),s(Z,"$new",function ve(){var ae=ve.$$p||pe;return ve.$$p=null,n(ae)||i.$raise(ke("ArgumentError"),"tried to create a Proc object without a block"),ae}),c(Z,"$call",function ve(ae){var ye=ve.$$p||pe,le,we,ce=this;ve.$$p=null,le=t(arguments),we=le,ye!==pe&&(ce.$$p=ye);var ze,X=ce.$$brk,Ae=ce.$$ret;if(X||Ae&&ce.$$is_lambda)try{ce.$$is_lambda?ze=ce.apply(null,we):ze=e.yieldX(ce,we)}catch(oe){if(oe===X)return oe.$v;if(ce.$$is_lambda&&oe===Ae)return oe.$v;throw oe}else ce.$$is_lambda?ze=ce.apply(null,we):ze=e.yieldX(ce,we);return ze},-1),c(Z,"$>>",function ve(ae){ve.$$p;var ye=this;return ve.$$p=null,d(i,"proc",[],function le(we){var ce=le.$$p||pe,ze,X,Ae=le.$$s==null?this:le.$$s,oe=pe;return le.$$p=null,ze=t(arguments),X=ze,oe=d(Ae,"call",p(X),ce.$to_proc()),ae.$call(oe)},{$$arity:-1,$$s:ye})}),c(Z,"$<<",function ve(ae){ve.$$p;var ye=this;return ve.$$p=null,d(i,"proc",[],function le(we){var ce=le.$$p||pe,ze,X,Ae=le.$$s==null?this:le.$$s,oe=pe;return le.$$p=null,ze=t(arguments),X=ze,oe=d(ae,"call",p(X),ce.$to_proc()),Ae.$call(oe)},{$$arity:-1,$$s:ye})}),c(Z,"$to_proc",h),c(Z,"$lambda?",function(){var ae=this;return!!ae.$$is_lambda}),c(Z,"$arity",function(){var ae=this;return ae.$$is_curried?-1:ae.$$arity!=null?ae.$$arity:ae.length}),c(Z,"$source_location",function(){var ae=this,ye=pe;return ae.$$is_curried?pe:n(ye=ae.$$source_location)?ye:pe}),c(Z,"$binding",function(){var ae=this;return ae.$$is_curried&&i.$raise(ke("ArgumentError"),"Can't create Binding"),n(ke("::","Binding","skip_raise")?"constant":pe)?ke("Binding").$new(pe,[],ae.$$s,ae.$source_location()):pe}),c(Z,"$parameters",function(ae){var ye,le=this;if(ae=q(ae),ye=ae.$$smap.lambda,le.$$is_curried)return[["rest"]];if(le.$$parameters){if(ye??le.$$is_lambda)return le.$$parameters;var we=[],ce,ze;for(ce=0,ze=le.$$parameters.length;ce<ze;ce++){var X=le.$$parameters[ce];X[0]==="req"&&(X=["opt",X[1]]),we.push(X)}return we}else return[]},-1),c(Z,"$curry",function(ae){var ye=this;ae===void 0?ae=ye.length:(ae=j["$coerce_to!"](ae,ke("Integer"),"to_int"),ye.$$is_lambda&&ae!==ye.length&&i.$raise(ke("ArgumentError"),"wrong number of arguments ("+ae+" for "+ye.length+")"));function le(){var we=t(arguments),ce=we.length,ze;return ce>ae&&ye.$$is_lambda&&!ye.$$is_curried&&i.$raise(ke("ArgumentError"),"wrong number of arguments ("+ce+" for "+ae+")"),ce>=ae?ye.$call.apply(ye,we):(ze=function(){return le.apply(null,we.concat(t(arguments)))},ze.$$is_lambda=ye.$$is_lambda,ze.$$is_curried=!0,ze)}return le.$$is_lambda=ye.$$is_lambda,le.$$is_curried=!0,le},-1),c(Z,"$dup",function(){var ae=this,ye=ae.$$original_proc||ae,le=function(){return ye.apply(this,arguments)};for(var we in ae)ae.hasOwnProperty(we)&&(le[we]=ae[we]);return le}),G(Z,"===","call"),G(Z,"clone","dup"),G(Z,"yield","call"),G(Z,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,c=e.Kernel,d=e.send,p=e.to_a,h=e.nil,q=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(j,G){var pe=t(j,G,"Method"),ke=pe.$$prototype;return ke.method=ke.receiver=ke.owner=ke.name=h,pe.$attr_reader("owner","receiver","name"),r(pe,"$initialize",function(W,Z,ve,ae){var ye=this;return ye.receiver=W,ye.owner=Z,ye.name=ae,ye.method=ve}),r(pe,"$arity",function(){var W=this;return W.method.$arity()}),r(pe,"$parameters",function(){var W=this;return W.method.$$parameters}),r(pe,"$source_location",function(){var W=this,Z=h;return n(Z=W.method.$$source_location)?Z:["(eval)",0]}),r(pe,"$comments",function(){var W=this,Z=h;return n(Z=W.method.$$comments)?Z:[]}),r(pe,"$call",function $e(W){var Z=$e.$$p||h,ve,ae,ye=this;return $e.$$p=null,ve=i(arguments),ae=ve,ye.method.$$p=Z,ye.method.apply(ye.receiver,ae)},-1),r(pe,"$curry",function(W){var Z=this;return Z.method.$curry(W)},-1),r(pe,"$>>",function(W){var Z=this;return Z.method["$>>"](W)}),r(pe,"$<<",function(W){var Z=this;return Z.method["$<<"](W)}),r(pe,"$unbind",function(){var W=this;return q("UnboundMethod").$new(W.receiver.$class(),W.owner,W.method,W.name)}),r(pe,"$to_proc",function(){var W=this,Z=W.$call.bind(W);return Z.$$unbound=W.method,Z.$$is_lambda=!0,Z.$$arity=W.method.$$arity==null?W.method.length:W.method.$$arity,Z.$$parameters=W.method.$$parameters,Z}),r(pe,"$inspect",function(){var W=this;return"#<"+W.$class()+": "+W.receiver.$class()+"#"+W.name+" (defined in "+W.owner+" in "+W.$source_location().$join(":")+")>"}),s(pe,"[]","call"),s(pe,"===","call")}("::",null),function(j,G){var pe=t(j,G,"UnboundMethod"),ke=pe.$$prototype;return ke.method=ke.owner=ke.name=ke.source=h,pe.$attr_reader("source","owner","name"),r(pe,"$initialize",function(W,Z,ve,ae){var ye=this;return ye.source=W,ye.owner=Z,ye.method=ve,ye.name=ae}),r(pe,"$arity",function(){var W=this;return W.method.$arity()}),r(pe,"$parameters",function(){var W=this;return W.method.$$parameters}),r(pe,"$source_location",function(){var W=this,Z=h;return n(Z=W.method.$$source_location)?Z:["(eval)",0]}),r(pe,"$comments",function(){var W=this,Z=h;return n(Z=W.method.$$comments)?Z:[]}),r(pe,"$bind",function(W){var Z=this;if(Z.owner.$$is_module||e.is_a(W,Z.owner))return q("Method").$new(W,Z.owner,Z.method,Z.name);c.$raise(q("TypeError"),"can't bind singleton method to a different class (expected "+W+".kind_of?("+Z.owner+" to be true)")}),r(pe,"$bind_call",function $e(W,Z){var ve=$e.$$p||h,ae,ye,le=this;return $e.$$p=null,ae=i(arguments,1),ye=ae,d(le.$bind(W),"call",p(ye),ve.$to_proc())},-2),r(pe,"$inspect",function(){var W=this;return"#<"+W.$class()+": "+W.source+"#"+W.name+" (defined in "+W.owner+" in "+W.$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["/"]=`
|
|
395
|
+
`,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,c=e.return_ivar,d=e.return_val,p=e.slice,h=e.Kernel,q=e.gvars,j=e.send,G=e.to_a,pe=e.rb_plus,ke=e.neqeq,$e=e.range,W=e.hash2,Z=e.eqeq,ve=e.to_ary,ae=e.rb_gt,ye=e.assign_ivar_val,le=e.alias,we,ce=e.nil,ze=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(Ae,oe){var k=t(Ae,oe,"IO"),Se=k.$$prototype;return Se.read_buffer=Se.closed=ce,r(k,"SEEK_SET",0),r(k,"SEEK_CUR",1),r(k,"SEEK_END",2),r(k,"SEEK_DATA",3),r(k,"SEEK_HOLE",4),r(k,"READABLE",1),r(k,"WRITABLE",4),k.$attr_reader("eof"),k.$attr_accessor("read_proc","sync","tty","write_proc"),s(k,"$initialize",function(de,D){var qe=this;return D==null&&(D="r"),qe.fd=de,qe.flags=D,qe.eof=!1,i(D["$include?"]("r"))&&n(D["$match?"](/[wa+]/))?qe.closed="write":i(D["$match?"](/[wa]/))&&n(D["$match?"](/[r+]/))?qe.closed="read":ce},-2),s(k,"$fileno",c("fd")),s(k,"$tty?",function(){var de=this;return de.tty==!0}),s(k,"$write",function(de){var D=this;return D.write_proc(de),de.$size()}),s(k,"$flush",d(ce)),s(k,"$<<",function(de){var D=this;return D.$write(de),D}),s(k,"$print",function(de){var D,qe,te=this;q[","]==null&&(q[","]=ce),D=p(arguments),qe=D;for(var B=0,w=qe.length;B<w;B++)qe[B]=h.$String(qe[B]);return te.$write(qe.join(q[","])),ce},-1),s(k,"$puts",function(de){var D,qe,te=this;D=p(arguments),qe=D;var B;if(qe.length===0)return te.$write(`
|
|
396
|
+
`),ce;for(var w=0,$=qe.length;w<$;w++)if(qe[w].$$is_array){var l=qe[w].$flatten();l.length>0&&j(te,"puts",G(l))}else qe[w].$$is_string?B=qe[w].valueOf():B=h.$String(qe[w]),B.endsWith(`
|
|
397
|
+
`)||(B+=`
|
|
398
|
+
`),te.$write(B);return ce},-1),s(k,"$getc",function(){var de=this,D=ce,qe=ce,te=ce;de.read_buffer=i(D=de.read_buffer)?D:"",qe="";do if(de.read_buffer=pe(de.read_buffer,qe),ke(de.read_buffer,""))return te=de.read_buffer["$[]"](0),de.read_buffer=de.read_buffer["$[]"]($e(1,-1,!1)),te;while(i(qe=de.$sysread_noraise(1)));return ce}),s(k,"$getbyte",function(){var de,D=this;return de=D.$getc(),de===ce||de==null?ce:de.$ord()}),s(k,"$readbyte",function(){var de=this;return de.$readchar().$ord()}),s(k,"$readchar",function(){var de=this,D=ce;return i(D=de.$getc())?D:h.$raise(ze("EOFError"),"end of file reached")}),s(k,"$readline",function(de){var D,qe,te=this,B=ce;return D=p(arguments),qe=D,i(B=j(te,"gets",G(qe)))?B:h.$raise(ze("EOFError"),"end of file reached")},-1),s(k,"$gets",function(de,D,qe){var te,B,w=this,$=ce,l=ce,o=ce,f=ce,_=ce,A=ce;q["/"]==null&&(q["/"]=ce),de==null&&(de=!1),D==null&&(D=ce),qe==null&&(qe=W([],{})),i(de.$$is_number)&&n(D)&&(te=[!1,de,D],de=te[0],D=te[1],qe=te[2]),i(de.$$is_hash)&&n(D)&&Z(qe,W([],{}))?(te=[!1,ce,de],de=te[0],D=te[1],qe=te[2]):i(D.$$is_hash)&&Z(qe,W([],{}))&&(te=[de,ce,D],de=te[0],D=te[1],qe=te[2]),$=de,Z(de,!1)&&(de=q["/"]),Z(de,"")&&(de=/\r?\n\r?\n/),de=i(l=de)?l:"",Z($,"")||(de=de.$to_str()),o=Z($,"")?2:de.$length(),Z(de," ")&&(de=/ /),w.read_buffer=i(l=w.read_buffer)?l:"",f="",_=ce;do if(w.read_buffer=pe(w.read_buffer,f),ke(de,"")&&i(i(de.$$is_regexp)?w.read_buffer["$match?"](de):w.read_buffer["$include?"](de))){A=w.read_buffer,B=w.read_buffer.$split(de,2),te=ve(B),_=te[0]==null?ce:te[0],w.read_buffer=te[1]==null?ce:te[1],ke(_,A)&&(_=pe(_,A["$[]"](_.$length(),o)));break}while(i(f=w.$sysread_noraise(Z(de,"")?65536:1)));return i(_)||(te=[i(l=w.read_buffer)?l:"",""],_=te[0],w.read_buffer=te[1],Z(_,"")&&(_=ce)),i(_)&&(i(D)&&(_=_["$[]"](e.Range.$new(0,D,!0)),w.read_buffer=pe(_["$[]"](e.Range.$new(D,-1,!1)),w.read_buffer)),i(qe["$[]"]("chomp"))&&(_=_.$sub(/\r?\n$/,"")),Z($,"")&&(_=_.$sub(/^[\r\n]+/,""))),Z($,!1)&&(q._=_),_},-1),s(k,"$sysread",function(de){var D=this,qe=ce;return i(qe=D.read_proc(de))?qe:(D.eof=!0,h.$raise(ze("EOFError"),"end of file reached"))}),s(k,"$sysread_noraise",function(de){var D=this;try{return D.$sysread(de)}catch(qe){if(e.rescue(qe,[ze("EOFError")]))try{return ce}finally{e.pop_exception()}else throw qe}}),s(k,"$readpartial",function(de){var D,qe=this,te=ce,B=ce,w=ce;return qe.read_buffer=i(te=qe.read_buffer)?te:"",B=qe.$sysread(de),D=[pe(qe.read_buffer,i(te=B)?te:""),""],w=D[0],qe.read_buffer=D[1],Z(w,"")&&(w=ce),w}),s(k,"$read",function(de){var D,qe=this,te=ce,B=ce,w=ce;de==null&&(de=ce),qe.read_buffer=i(te=qe.read_buffer)?te:"",B="",w=ce;do if(qe.read_buffer=pe(qe.read_buffer,B),i(de)&&i(ae(qe.read_buffer.$length(),de)))return D=[qe.read_buffer["$[]"](e.Range.$new(0,de,!0)),qe.read_buffer["$[]"](e.Range.$new(de,-1,!1))],w=D[0],qe.read_buffer=D[1],w;while(i(B=qe.$sysread_noraise(i(te=de)?te:65536)));return D=[qe.read_buffer,""],w=D[0],qe.read_buffer=D[1],w},-1),s(k,"$readlines",function(de){var D=this;return q["/"]==null&&(q["/"]=ce),de==null&&(de=q["/"]),D.$each_line(de).$to_a()},-1),s(k,"$each",function F(de,D){var qe=F.$$p||ce,te,B,w,$=this,l=ce;if(q["/"]==null&&(q["/"]=ce),F.$$p=null,te=p(arguments),te.length>0&&(B=te.shift()),B==null&&(B=q["/"]),w=te,qe===ce)return j($,"enum_for",["each",B].concat(G(w)));for(;i(l=j($,"gets",[B].concat(G(w))));)e.yield1(qe,l);return $},-1),s(k,"$each_byte",function F(){var de=F.$$p||ce,D=this,qe=ce;if(F.$$p=null,de===ce)return D.$enum_for("each_byte");for(;i(qe=D.$getbyte());)e.yield1(de,qe);return D}),s(k,"$each_char",function F(){var de=F.$$p||ce,D=this,qe=ce;if(F.$$p=null,de===ce)return D.$enum_for("each_char");for(;i(qe=D.$getc());)e.yield1(de,qe);return D}),s(k,"$close",ye("closed","both")),s(k,"$close_read",function(){var de=this;return Z(de.closed,"write")?de.closed="both":de.closed="read"}),s(k,"$close_write",function(){var de=this;return Z(de.closed,"read")?de.closed="both":de.closed="write"}),s(k,"$closed?",function(){var de=this;return de.closed["$=="]("both")}),s(k,"$closed_read?",function(){var de=this,D=ce;return i(D=de.closed["$=="]("read"))?D:de.closed["$=="]("both")}),s(k,"$closed_write?",function(){var de=this,D=ce;return i(D=de.closed["$=="]("write"))?D:de.closed["$=="]("both")}),s(k,"$check_writable",function(){var de=this;return i(de["$closed_write?"]())?h.$raise(ze("IOError"),"not opened for writing"):ce}),s(k,"$check_readable",function(){var de=this;return i(de["$closed_read?"]())?h.$raise(ze("IOError"),"not opened for reading"):ce}),le(k,"each_line","each"),le(k,"eof?","eof")}("::",null),r("::","STDIN",q.stdin=ze("IO").$new(0,"r")),r("::","STDOUT",q.stdout=ze("IO").$new(1,"w")),r("::","STDERR",q.stderr=ze("IO").$new(2,"w"));var X=e.global.console;return ze("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ae){process.stdout.write(Ae)}:function(Ae){X.log(Ae)}),ze("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ae){process.stderr.write(Ae)}:function(Ae){X.warn(Ae)}),we=[function(Ae){var oe=prompt();return oe!==null?oe+`
|
|
399
|
+
`:ce}],j(ze("STDIN"),"read_proc=",we),we[we.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,c){var d=t(s,"Opal"),p=[d].concat(c),h=e.$r(p);return r(d,"REGEXP_START","^"),r(d,"REGEXP_END","$"),r(d,"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(d,"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(d,"INLINE_IDENTIFIER_REGEXP",h("Regexp").$new("[^"+i(d,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+i(d,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),r(d,"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(d,"CONST_NAME_REGEXP",h("Regexp").$new(""+i(d,"REGEXP_START")+"(::)?[A-Z][^"+i(d,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+i(d,"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,c=e.Opal,d=e.Kernel,p=e.gvars,h=e.def,q=e.alias,j=e.nil,G=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(pe){var ke=r(pe,"Kernel");return h(ke,"$format",function(W,Z){var ve,ae,ye=j;p.DEBUG==null&&(p.DEBUG=j),ve=n(arguments,1),ae=ve,s(ae.$length(),1)&&i(ae["$[]"](0)["$respond_to?"]("to_ary"))&&(ye=c["$coerce_to?"](ae["$[]"](0),G("Array"),"to_ary"),i(ye["$nil?"]())||(ae=ye.$to_a()));var le="",we=0,ce,ze,X=W.length,Ae,oe,k,Se,F,de,D,qe,te,B,w,$,l,o=1,f=0,_,A=0,T=1,J=2,Fe=4,it=8,ht=16,mt=32,Rt=64,wt=128;function Mt(){_&mt&&d.$raise(G("ArgumentError"),"flag after width"),_&wt&&d.$raise(G("ArgumentError"),"flag after precision")}function At(){_&mt&&d.$raise(G("ArgumentError"),"width given twice"),_&wt&&d.$raise(G("ArgumentError"),"width after precision")}function qt(b){return b>=ae.length&&d.$raise(G("ArgumentError"),"too few arguments"),ae[b]}function It(){switch(f){case-1:d.$raise(G("ArgumentError"),"unnumbered("+o+") mixed with numbered");case-2:d.$raise(G("ArgumentError"),"unnumbered("+o+") mixed with named")}return f=o++,qt(f-1)}function rt(b){return f>0&&d.$raise(G("ArgumentError"),"numbered("+b+") after unnumbered("+f+")"),f===-2&&d.$raise(G("ArgumentError"),"numbered("+b+") after named"),b<1&&d.$raise(G("ArgumentError"),"invalid index - "+b+"$"),f=-1,qt(b-1)}function Re(){return l===void 0?It():l}function Be(b){for(var R,me="";;ze++){if(ze===X&&d.$raise(G("ArgumentError"),"malformed format string - %*[0-9]"),W.charCodeAt(ze)<48||W.charCodeAt(ze)>57)return ze--,R=parseInt(me,10)||0,R>2147483647&&d.$raise(G("ArgumentError"),""+b+" too big"),R;me+=W.charAt(ze)}}function Ge(b){var R,me=Be(b);return W.charAt(ze+1)==="$"?(ze++,R=rt(me)):R=It(),R.$to_int()}for(ze=W.indexOf("%");ze!==-1;ze=W.indexOf("%",ze)){switch(oe=void 0,_=A,Se=-1,F=-1,l=void 0,ce=ze,ze++,W.charAt(ze)){case"%":we=ze;case"":case`
|
|
400
|
+
`:case"\0":ze++;continue}e:for(;ze<X;ze++)switch(W.charAt(ze)){case" ":Mt(),_|=ht;continue e;case"#":Mt(),_|=T;continue e;case"+":Mt(),_|=Fe;continue e;case"-":Mt(),_|=J;continue e;case"0":Mt(),_|=it;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(de=Be("width"),W.charAt(ze+1)==="$"){if(ze+2===X){oe="%",ze++;break e}l!==void 0&&d.$raise(G("ArgumentError"),"value given twice - %"+de+"$"),l=rt(de),ze++}else At(),_|=mt,Se=de;continue e;case"<":case"{":for(qe=W.charAt(ze)==="<"?">":"}",D="",ze++;;ze++){if(ze===X&&d.$raise(G("ArgumentError"),"malformed name - unmatched parenthesis"),W.charAt(ze)===qe){if(f>0&&d.$raise(G("ArgumentError"),"named "+D+" after unnumbered("+f+")"),f===-1&&d.$raise(G("ArgumentError"),"named "+D+" after numbered"),f=-2,(ae[0]===void 0||!ae[0].$$is_hash)&&d.$raise(G("ArgumentError"),"one hash required"),l=ae[0].$fetch(D),qe===">")continue e;if(oe=l.toString(),F!==-1&&(oe=oe.slice(0,F)),_&J)for(;oe.length<Se;)oe=oe+" ";else for(;oe.length<Se;)oe=" "+oe;break e}D+=W.charAt(ze)}case"*":ze++,At(),_|=mt,Se=Ge("width"),Se<0&&(_|=J,Se=-Se);continue e;case".":if(_&wt&&d.$raise(G("ArgumentError"),"precision given twice"),_|=Rt|wt,F=0,ze++,W.charAt(ze)==="*"){ze++,F=Ge("precision"),F<0&&(_&=~Rt);continue e}F=Be("precision");continue e;case"d":case"i":case"u":if(Ae=d.$Integer(Re()),Ae>=0){for(oe=Ae.toString();oe.length<F;)oe="0"+oe;if(_&J)for((_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe);oe.length<Se;)oe=oe+" ";else if(_&it&&F===-1){for(;oe.length<Se-(_&Fe||_&ht?1:0);)oe="0"+oe;(_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe)}else for((_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe);oe.length<Se;)oe=" "+oe}else{for(oe=(-Ae).toString();oe.length<F;)oe="0"+oe;if(_&J)for(oe="-"+oe;oe.length<Se;)oe=oe+" ";else if(_&it&&F===-1){for(;oe.length<Se-1;)oe="0"+oe;oe="-"+oe}else for(oe="-"+oe;oe.length<Se;)oe=" "+oe}break e;case"b":case"B":case"o":case"x":case"X":switch(W.charAt(ze)){case"b":case"B":te=2,B="0b",w=/^1+/,$="1";break;case"o":te=8,B="0",w=/^3?7+/,$="7";break;case"x":case"X":te=16,B="0x",w=/^f+/,$="f";break}if(Ae=d.$Integer(Re()),Ae>=0){for(oe=Ae.toString(te);oe.length<F;)oe="0"+oe;if(_&J)for((_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe),_&T&&Ae!==0&&(oe=B+oe);oe.length<Se;)oe=oe+" ";else if(_&it&&F===-1){for(;oe.length<Se-(_&Fe||_&ht?1:0)-(_&T&&Ae!==0?B.length:0);)oe="0"+oe;_&T&&Ae!==0&&(oe=B+oe),(_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe)}else for(_&T&&Ae!==0&&(oe=B+oe),(_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe);oe.length<Se;)oe=" "+oe}else if(_&Fe||_&ht){for(oe=(-Ae).toString(te);oe.length<F;)oe="0"+oe;if(_&J)for(_&T&&(oe=B+oe),oe="-"+oe;oe.length<Se;)oe=oe+" ";else if(_&it&&F===-1){for(;oe.length<Se-1-(_&T?2:0);)oe="0"+oe;_&T&&(oe=B+oe),oe="-"+oe}else for(_&T&&(oe=B+oe),oe="-"+oe;oe.length<Se;)oe=" "+oe}else{for(oe=(Ae>>>0).toString(te).replace(w,$);oe.length<F-2;)oe=$+oe;if(_&J)for(oe=".."+oe,_&T&&(oe=B+oe);oe.length<Se;)oe=oe+" ";else if(_&it&&F===-1){for(;oe.length<Se-2-(_&T?B.length:0);)oe=$+oe;oe=".."+oe,_&T&&(oe=B+oe)}else for(oe=".."+oe,_&T&&(oe=B+oe);oe.length<Se;)oe=" "+oe}W.charAt(ze)===W.charAt(ze).toUpperCase()&&(oe=oe.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ae=d.$Float(Re()),Ae>=0||isNaN(Ae)){if(Ae===1/0)oe="Inf";else switch(W.charAt(ze)){case"f":oe=Ae.toFixed(F===-1?6:F);break;case"e":case"E":oe=Ae.toExponential(F===-1?6:F);break;case"g":case"G":oe=Ae.toExponential(),k=parseInt(oe.split("e")[1],10),k<-4||k>=(F===-1?6:F)||(oe=Ae.toPrecision(F===-1?_&T?6:void 0:F));break}if(_&J)for((_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe);oe.length<Se;)oe=oe+" ";else if(_&it&&Ae!==1/0&&!isNaN(Ae)){for(;oe.length<Se-(_&Fe||_&ht?1:0);)oe="0"+oe;(_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe)}else for((_&Fe||_&ht)&&(oe=(_&Fe?"+":" ")+oe);oe.length<Se;)oe=" "+oe}else{if(Ae===-1/0)oe="Inf";else switch(W.charAt(ze)){case"f":oe=(-Ae).toFixed(F===-1?6:F);break;case"e":case"E":oe=(-Ae).toExponential(F===-1?6:F);break;case"g":case"G":oe=(-Ae).toExponential(),k=parseInt(oe.split("e")[1],10),k<-4||k>=(F===-1?6:F)||(oe=(-Ae).toPrecision(F===-1?_&T?6:void 0:F));break}if(_&J)for(oe="-"+oe;oe.length<Se;)oe=oe+" ";else if(_&it&&Ae!==-1/0){for(;oe.length<Se-1;)oe="0"+oe;oe="-"+oe}else for(oe="-"+oe;oe.length<Se;)oe=" "+oe}W.charAt(ze)===W.charAt(ze).toUpperCase()&&Ae!==1/0&&Ae!==-1/0&&!isNaN(Ae)&&(oe=oe.toUpperCase()),oe=oe.replace(/([eE][-+]?)([0-9])$/,"$10$2");break e;case"a":case"A":d.$raise(G("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ae=Re(),Ae["$respond_to?"]("to_ary")&&(Ae=Ae.$to_ary()[0]),Ae["$respond_to?"]("to_str")?oe=Ae.$to_str():oe=String.fromCharCode(t(Ae,G("Integer"),"to_int")),oe.length!==1&&d.$raise(G("ArgumentError"),"%c requires a character"),_&J)for(;oe.length<Se;)oe=oe+" ";else for(;oe.length<Se;)oe=" "+oe;break e;case"p":if(oe=Re().$inspect(),F!==-1&&(oe=oe.slice(0,F)),_&J)for(;oe.length<Se;)oe=oe+" ";else for(;oe.length<Se;)oe=" "+oe;break e;case"s":if(oe=Re().$to_s(),F!==-1&&(oe=oe.slice(0,F)),_&J)for(;oe.length<Se;)oe=oe+" ";else for(;oe.length<Se;)oe=" "+oe;break e;default:d.$raise(G("ArgumentError"),"malformed format string - %"+W.charAt(ze))}oe===void 0&&d.$raise(G("ArgumentError"),"malformed format string - %"),le+=W.slice(we,ce)+oe,we=ze+1}return p.DEBUG&&f>=0&&o<ae.length&&d.$raise(G("ArgumentError"),"too many arguments for format string"),le+W.slice(we)},-2),q(ke,"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,c=e.defs,d=e.eqeq,p=e.def,h=e.return_ivar,q=e.return_val,j=e.slice,G=e.Kernel,pe=e.Opal,ke=e.rb_lt,$e,W=e.top,Z=[],ve=e.$r(Z),ae=e.nil,ye=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="),W.$require("corelib/string"),function(le,we){var ce=t(le,we,"Encoding"),ze=ce.$$prototype;return ze.name=ze.dummy=ae,c(ce,"$register",function X(Ae,oe){var k=X.$$p||ae,Se=this,F=ae,de=ae,D=ae,qe=ae,te=ae,B=ae;return X.$$p=null,oe==null&&(oe=r([],{})),F=n([Ae],i(de=oe["$[]"]("aliases"))?de:[]),D=i(de=oe["$[]"]("ascii"))&&de,qe=i(de=oe["$[]"]("dummy"))&&de,i(oe["$[]"]("inherits"))?(te=oe["$[]"]("inherits").$clone(),te.$initialize(Ae,F,D,qe)):te=Se.$new(Ae,F,D,qe),k!==ae&&s(te,"instance_eval",[],k.$to_proc()),B=e.encodings,s(F,"each",[],function w($){var l=w.$$s==null?this:w.$$s;return $==null&&($=ae),l.$const_set($.$tr("-","_"),te),B[$]=te},{$$s:Se})},-2),c(ce,"$find",function(Ae){var oe=this;return d(Ae,"default_external")?oe.$default_external():e.find_encoding(Ae)}),ce.$singleton_class().$attr_accessor("default_external"),ce.$attr_reader("name","names"),p(ce,"$initialize",function(Ae,oe,k,Se){var F=this;return F.name=Ae,F.names=oe,F.ascii=k,F.dummy=Se}),p(ce,"$ascii_compatible?",h("ascii")),p(ce,"$dummy?",h("dummy")),p(ce,"$binary?",q(!1)),p(ce,"$to_s",h("name")),p(ce,"$inspect",function(){var Ae=this;return"#<Encoding:"+Ae.name+(i(Ae.dummy)?" (dummy)":ae)+">"}),p(ce,"$charsize",function(Ae){for(var oe=0,k=0,Se=Ae.length;k<Se;k++){var F=Ae.charCodeAt(k);F>=55296&&F<=56319||oe++}return oe}),p(ce,"$each_char",function X(Ae){var oe=X.$$p||ae;X.$$p=null;for(var k="",Se=0,F=Ae.length;Se<F;Se++){var de=Ae.charCodeAt(Se),D=Ae.charAt(Se);if(de>=56320&&de<=57343){k=D;continue}else de>=55296&&de<=56319&&(D=k+D);Ae.encoding.name!="UTF-8"&&(D=new String(D),D.encoding=Ae.encoding),e.yield1(oe,D)}}),p(ce,"$each_byte",function(Ae){return j(arguments),G.$raise(ye("NotImplementedError"))},-1),p(ce,"$bytesize",function(Ae){return j(arguments),G.$raise(ye("NotImplementedError"))},-1),t("::",ye("StandardError"),"EncodingError"),t("::",ye("EncodingError"),"CompatibilityError"),ae}("::",null),s(ye("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function le(){var we=le.$$s==null?this:le.$$s;return p(we,"$each_byte",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=1/0,oe,k=ze.length,Se=null,F=0;F<k;++F){if(oe=ze.charCodeAt(F),oe>55295&&oe<57344){if(!Se){if(oe>56319){(Ae-=3)>-1&&(e.yield1(X,239),e.yield1(X,191),e.yield1(X,189));continue}else if(F+1===k){(Ae-=3)>-1&&(e.yield1(X,239),e.yield1(X,191),e.yield1(X,189));continue}Se=oe;continue}if(oe<56320){(Ae-=3)>-1&&(e.yield1(X,239),e.yield1(X,191),e.yield1(X,189)),Se=oe;continue}oe=(Se-55296<<10|oe-56320)+65536}else Se&&(Ae-=3)>-1&&(e.yield1(X,239),e.yield1(X,191),e.yield1(X,189));if(Se=null,oe<128){if((Ae-=1)<0)break;e.yield1(X,oe)}else if(oe<2048){if((Ae-=2)<0)break;e.yield1(X,oe>>6|192),e.yield1(X,oe&63|128)}else if(oe<65536){if((Ae-=3)<0)break;e.yield1(X,oe>>12|224),e.yield1(X,oe>>6&63|128),e.yield1(X,oe&63|128)}else if(oe<1114112){if((Ae-=4)<0)break;e.yield1(X,oe>>18|240),e.yield1(X,oe>>12&63|128),e.yield1(X,oe>>6&63|128),e.yield1(X,oe&63|128)}}}),p(we,"$bytesize",function(ze){return ze.$bytes().$length()})},{$$s:W}),s(ye("Encoding"),"register",["UTF-16LE"],function le(){var we=le.$$s==null?this:le.$$s;return p(we,"$each_byte",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=0,oe=ze.length;Ae<oe;Ae++){var k=ze.charCodeAt(Ae);e.yield1(X,k&255),e.yield1(X,k>>8)}}),p(we,"$bytesize",function(ze){return ze.length*2})},{$$s:W}),s(ye("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:ye(ye("Encoding"),"UTF_16LE")})],function le(){var we=le.$$s==null?this:le.$$s;return p(we,"$each_byte",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=0,oe=ze.length;Ae<oe;Ae++){var k=ze.charCodeAt(Ae);e.yield1(X,k>>8),e.yield1(X,k&255)}})},{$$s:W}),s(ye("Encoding"),"register",["UTF-32LE"],function le(){var we=le.$$s==null?this:le.$$s;return p(we,"$each_byte",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=0,oe=ze.length;Ae<oe;Ae++){var k=ze.charCodeAt(Ae);e.yield1(X,k&255),e.yield1(X,k>>8),e.yield1(X,0),e.yield1(X,0)}}),p(we,"$bytesize",function(ze){return ze.length*4})},{$$s:W}),s(ye("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:ye(ye("Encoding"),"UTF_32LE")})],function le(){var we=le.$$s==null?this:le.$$s;return p(we,"$each_byte",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=0,oe=ze.length;Ae<oe;Ae++){var k=ze.charCodeAt(Ae);e.yield1(X,0),e.yield1(X,0),e.yield1(X,k>>8),e.yield1(X,k&255)}})},{$$s:W}),s(ye("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function le(){var we=le.$$s==null?this:le.$$s;return p(we,"$each_char",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=0,oe=ze.length;Ae<oe;Ae++){var k=new String(ze.charAt(Ae));k.encoding=ze.encoding,e.yield1(X,k)}}),p(we,"$charsize",function(ze){return ze.length}),p(we,"$each_byte",function ce(ze){var X=ce.$$p||ae;ce.$$p=null;for(var Ae=0,oe=ze.length;Ae<oe;Ae++){var k=ze.charCodeAt(Ae);e.yield1(X,k&255)}}),p(we,"$bytesize",function(ze){return ze.length}),p(we,"$binary?",q(!0))},{$$s:W}),ye("Encoding").$register("ISO-8859-1",r(["aliases","ascii","inherits"],{aliases:["ISO8859-1"],ascii:!0,inherits:ye(ye("Encoding"),"ASCII_8BIT")})),ye("Encoding").$register("US-ASCII",r(["aliases","ascii","inherits"],{aliases:["ASCII"],ascii:!0,inherits:ye(ye("Encoding"),"ASCII_8BIT")})),function(le,we){var ce=t(le,we,"String"),ze=ce.$$prototype;return ze.internal_encoding=ze.bytes=ze.encoding=ae,ce.$attr_reader("encoding"),ce.$attr_reader("internal_encoding"),e.prop(String.prototype,"bytes",ae),e.prop(String.prototype,"encoding",ye(ye("Encoding"),"UTF_8")),e.prop(String.prototype,"internal_encoding",ye(ye("Encoding"),"UTF_8")),p(ce,"$b",function(){var Ae=this;return Ae.$dup().$force_encoding("binary")}),p(ce,"$bytesize",function(){var Ae=this;return Ae.internal_encoding.$bytesize(Ae)}),p(ce,"$each_byte",function X(){var Ae=X.$$p||ae,oe=this;return X.$$p=null,Ae===ae?s(oe,"enum_for",["each_byte"],function k(){var Se=k.$$s==null?this:k.$$s;return Se.$bytesize()},{$$s:oe}):(s(oe.internal_encoding,"each_byte",[oe],Ae.$to_proc()),oe)}),p(ce,"$bytes",function(){var Ae=this,oe=ae;return typeof Ae=="string"?new String(Ae).$each_byte().$to_a():(Ae.bytes=i(oe=Ae.bytes)?oe:Ae.$each_byte().$to_a(),Ae.bytes.$dup())}),p(ce,"$each_char",function X(){var Ae=X.$$p||ae,oe=this;return X.$$p=null,Ae===ae?s(oe,"enum_for",["each_char"],function k(){var Se=k.$$s==null?this:k.$$s;return Se.$length()},{$$s:oe}):(s(oe.encoding,"each_char",[oe],Ae.$to_proc()),oe)}),p(ce,"$chars",function X(){var Ae=X.$$p||ae,oe=this;return X.$$p=null,i(Ae)?s(oe,"each_char",[],Ae.$to_proc()):oe.$each_char().$to_a()}),p(ce,"$each_codepoint",function X(){var Ae=X.$$p||ae,oe=this;if(X.$$p=null,Ae===ae)return oe.$enum_for("each_codepoint");for(var k=0,Se=oe.length;k<Se;k++)e.yield1(Ae,oe.codePointAt(k));return oe}),p(ce,"$codepoints",function X(){var Ae=X.$$p||ae,oe=this;return X.$$p=null,Ae!==ae?s(oe,"each_codepoint",[],Ae.$to_proc()):oe.$each_codepoint().$to_a()}),p(ce,"$encode",function(Ae){var oe=this;return e.enc(oe,Ae)}),p(ce,"$force_encoding",function(Ae){var oe=this,k=oe;return Ae===k.encoding||(Ae=pe["$coerce_to!"](Ae,ye("String"),"to_s"),Ae=ye("Encoding").$find(Ae),Ae===k.encoding)||(k=e.set_encoding(k,Ae)),k}),p(ce,"$getbyte",function(Ae){var oe=this,k=ae;return k=oe.$bytes(),Ae=pe["$coerce_to!"](Ae,ye("Integer"),"to_int"),i(ke(k.$length(),Ae))?ae:k["$[]"](Ae)}),p(ce,"$initialize_copy",function(Ae){return`
|
|
401
|
+
self.encoding = other.encoding;
|
|
402
|
+
self.internal_encoding = other.internal_encoding;
|
|
403
|
+
`}),p(ce,"$valid_encoding?",q(!0))}("::",null),$e=[ye(ve("Encoding"),"UTF_8")],s(ye("Encoding"),"default_external=",$e),$e[$e.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,c=e.Kernel,d=e.defs,p=e.truthy,h=e.send,q=e.def,j=e.rb_minus,G=e.eqeqeq,pe=e.rb_divide,ke=[],$e=e.nil,W=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(Z,ve){var ae=r(Z,"Math"),ye=[ae].concat(ve),le=e.$r(ye);return n(ae,"E",Math.E),n(ae,"PI",Math.PI),n(ae,"DomainError",i.$new(W("StandardError"))),d(ae,"$checked",function(ce,ze){var X,Ae;if(X=s(arguments,1),Ae=X,isNaN(Ae[0])||Ae.length==2&&isNaN(Ae[1]))return NaN;var oe=Math[ce].apply(null,Ae);return isNaN(oe)&&c.$raise(le("DomainError"),'Numerical argument is out of domain - "'+ce+'"'),oe},-2),d(ae,"$float!",function(ce){try{return c.$Float(ce)}catch(ze){if(e.rescue(ze,[W("ArgumentError")]))try{return c.$raise(t(ce,W("Float")))}finally{e.pop_exception()}else throw ze}}),d(ae,"$integer!",function(ce){try{return c.$Integer(ce)}catch(ze){if(e.rescue(ze,[W("ArgumentError")]))try{return c.$raise(t(ce,W("Integer")))}finally{e.pop_exception()}else throw ze}}),ae.$module_function(),p(typeof Math.erf<"u")||e.prop(Math,"erf",function(we){var ce=.254829592,ze=-.284496736,X=1.421413741,Ae=-1.453152027,oe=1.061405429,k=.3275911,Se=1;we<0&&(Se=-1),we=Math.abs(we);var F=1/(1+k*we),de=1-((((oe*F+Ae)*F+X)*F+ze)*F+ce)*F*Math.exp(-we*we);return Se*de}),p(typeof Math.erfc<"u")||e.prop(Math,"erfc",function(we){var ce=Math.abs(we),ze=1/(.5*ce+1),X=ze*.17087277+-.82215223,Ae=ze*X+1.48851587,oe=ze*Ae+-1.13520398,k=ze*oe+.27886807,Se=ze*k+-.18628806,F=ze*Se+.09678418,de=ze*F+.37409196,D=ze*de+1.00002368,qe=ze*D,te=-ce*ce-1.26551223+qe,B=ze*Math.exp(te);return we<0?2-B:B}),h(["acos","acosh","asin","asinh","atan","atanh","cbrt","cos","cosh","erf","erfc","exp","sin","sinh","sqrt","tanh"],"each",[],function we(ce){var ze=we.$$s==null?this:we.$$s;return ce==null&&(ce=$e),h(ze,"define_method",[ce],function(Ae){return Ae==null&&(Ae=$e),W("Math").$checked(ce,W("Math")["$float!"](Ae))})},{$$s:ae}),q(ae,"$atan2",function(ce,ze){return W("Math").$checked("atan2",W("Math")["$float!"](ce),W("Math")["$float!"](ze))}),q(ae,"$hypot",function(ce,ze){return W("Math").$checked("hypot",W("Math")["$float!"](ce),W("Math")["$float!"](ze))}),q(ae,"$frexp",function(ce){if(ce=le("Math")["$float!"](ce),isNaN(ce))return[NaN,0];var ze=Math.floor(Math.log(Math.abs(ce))/Math.log(2))+1,X=ce/Math.pow(2,ze);return[X,ze]}),q(ae,"$gamma",function(ce){ce=le("Math")["$float!"](ce);var ze,X,Ae,oe,k,Se,F,de,D,qe=4.7421875,te=[.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(ce))return NaN;if(ce===0&&1/ce<0)return-1/0;if((ce===-1||ce===-1/0)&&c.$raise(le("DomainError"),'Numerical argument is out of domain - "gamma"'),le("Integer")["$==="](ce)){if(ce<=0)return isFinite(ce)?1/0:NaN;if(ce>171)return 1/0;for(oe=ce-2,k=ce-1;oe>1;)k*=oe,oe--;return k==0&&(k=1),k}if(ce<.5)return Math.PI/(Math.sin(Math.PI*ce)*W("Math").$gamma(j(1,ce)));if(ce>=171.35)return 1/0;if(ce>85)return Se=ce*ce,F=Se*ce,de=F*ce,D=de*ce,Math.sqrt(2*Math.PI/ce)*Math.pow(ce/Math.E,ce)*(1+1/(12*ce)+1/(288*Se)-139/(51840*F)-571/(2488320*de)+163879/(209018880*D)+5246819/(75246796800*D*ce));for(ce-=1,Ae=te[0],ze=1;ze<te.length;++ze)Ae+=te[ze]/(ce+ze);return X=ce+qe+.5,Math.sqrt(2*Math.PI)*Math.pow(X,ce+.5)*Math.exp(-X)*Ae}),q(ae,"$ldexp",function(ce,ze){return ce=le("Math")["$float!"](ce),ze=le("Math")["$integer!"](ze),isNaN(ze)&&c.$raise(W("RangeError"),"float NaN out of range of integer"),ce*Math.pow(2,ze)}),q(ae,"$lgamma",function(ce){return ce==-1?[1/0,1]:[Math.log(Math.abs(W("Math").$gamma(ce))),W("Math").$gamma(ce)<0?-1:1]}),q(ae,"$log",function(ce,ze){return G(W("String"),ce)&&c.$raise(t(ce,W("Float"))),p(ze==null)?W("Math").$checked("log",W("Math")["$float!"](ce)):(G(W("String"),ze)&&c.$raise(t(ze,W("Float"))),pe(W("Math").$checked("log",W("Math")["$float!"](ce)),W("Math").$checked("log",W("Math")["$float!"](ze))))},-2),q(ae,"$log10",function(ce){return G(W("String"),ce)&&c.$raise(t(ce,W("Float"))),W("Math").$checked("log10",W("Math")["$float!"](ce))}),q(ae,"$log2",function(ce){return G(W("String"),ce)&&c.$raise(t(ce,W("Float"))),W("Math").$checked("log2",W("Math")["$float!"](ce))}),q(ae,"$tan",function(ce){return ce=W("Math")["$float!"](ce),p(ce["$infinite?"]())?W(W("Float"),"NAN"):W("Math").$checked("tan",W("Math")["$float!"](ce))})}("::",ke)};Opal.modules["corelib/complex/base"]=function(e){var t=e.module,r=e.truthy,n=e.def,i=e.klass,s=[],c=e.nil;return e.add_stubs("new,from_string"),function(d,p){var h=t(d,"Kernel"),q=[h].concat(p),j=e.$r(q);return n(h,"$Complex",function(pe,ke){return ke==null&&(ke=c),r(ke)?j("Complex").$new(pe,ke):j("Complex").$new(pe,0)},-2)}("::",s),function(d,p,h){var q=i(d,p,"String"),j=[q].concat(h),G=e.$r(j);return n(q,"$to_c",function(){var ke=this;return G("Complex").$from_string(ke)})}("::",null,s)};Opal.modules["corelib/complex"]=function(e){var t=e.klass,r=e.truthy,n=e.eqeqeq,i=e.Kernel,s=e.defs,c=e.rb_times,d=e.def,p=e.rb_plus,h=e.rb_minus,q=e.rb_divide,j=e.eqeq,G=e.to_ary,pe=e.rb_gt,ke=e.neqeq,$e=e.return_val,W=e.const_set,Z=e.alias,ve=e.top,ae=[],ye=e.nil,le=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"),ve.$require("corelib/numeric"),ve.$require("corelib/complex/base"),function(we,ce,ze){var X=t(we,ce,"Complex"),Ae=[X].concat(ze),oe=e.$r(Ae),k=X.$$prototype;return k.real=k.imag=ye,s(X,"$rect",function(F,de){var D=this;return de==null&&(de=0),n(le("Numeric"),F)&&r(F["$real?"]())&&n(le("Numeric"),de)&&r(de["$real?"]())||i.$raise(le("TypeError"),"not a real"),D.$new(F,de)},-2),s(X,"$polar",function(F,de){var D=this;return de==null&&(de=0),n(le("Numeric"),F)&&r(F["$real?"]())&&n(le("Numeric"),de)&&r(de["$real?"]())||i.$raise(le("TypeError"),"not a real"),D.$new(c(F,le("Math").$cos(de)),c(F,le("Math").$sin(de)))},-2),X.$attr_reader("real","imag"),d(X,"$initialize",function(F,de){var D=this;return de==null&&(de=0),D.real=F,D.imag=de,D.$freeze()},-2),d(X,"$coerce",function(F){var de=this;return n(le("Complex"),F)?[F,de]:n(le("Numeric"),F)&&r(F["$real?"]())?[le("Complex").$new(F,0),de]:i.$raise(le("TypeError"),""+F.$class()+" can't be coerced into Complex")}),d(X,"$==",function(F){var de=this,D=ye;return n(le("Complex"),F)?r(D=de.real["$=="](F.$real()))?de.imag["$=="](F.$imag()):D:n(le("Numeric"),F)&&r(F["$real?"]())?r(D=de.real["$=="](F))?de.imag["$=="](0):D:F["$=="](de)}),d(X,"$-@",function(){var F=this;return i.$Complex(F.real["$-@"](),F.imag["$-@"]())}),d(X,"$+",function(F){var de=this;return n(le("Complex"),F)?i.$Complex(p(de.real,F.$real()),p(de.imag,F.$imag())):n(le("Numeric"),F)&&r(F["$real?"]())?i.$Complex(p(de.real,F),de.imag):de.$__coerced__("+",F)}),d(X,"$-",function(F){var de=this;return n(le("Complex"),F)?i.$Complex(h(de.real,F.$real()),h(de.imag,F.$imag())):n(le("Numeric"),F)&&r(F["$real?"]())?i.$Complex(h(de.real,F),de.imag):de.$__coerced__("-",F)}),d(X,"$*",function(F){var de=this;return n(le("Complex"),F)?i.$Complex(h(c(de.real,F.$real()),c(de.imag,F.$imag())),p(c(de.real,F.$imag()),c(de.imag,F.$real()))):n(le("Numeric"),F)&&r(F["$real?"]())?i.$Complex(c(de.real,F),c(de.imag,F)):de.$__coerced__("*",F)}),d(X,"$/",function(F){var de=this;return n(le("Complex"),F)?n(le("Number"),de.real)&&r(de.real["$nan?"]())||n(le("Number"),de.imag)&&r(de.imag["$nan?"]())||n(le("Number"),F.$real())&&r(F.$real()["$nan?"]())||n(le("Number"),F.$imag())&&r(F.$imag()["$nan?"]())?le("Complex").$new(le(le("Float"),"NAN"),le(le("Float"),"NAN")):q(c(de,F.$conj()),F.$abs2()):n(le("Numeric"),F)&&r(F["$real?"]())?i.$Complex(de.real.$quo(F),de.imag.$quo(F)):de.$__coerced__("/",F)}),d(X,"$**",function(F){var de,D,qe=this,te=ye,B=ye,w=ye,$=ye,l=ye,o=ye,f=ye,_=ye,A=ye,T=ye,J=ye;if(j(F,0))return le("Complex").$new(1,0);if(n(le("Complex"),F))return D=qe.$polar(),de=G(D),te=de[0]==null?ye:de[0],B=de[1]==null?ye:de[1],w=F.$real(),$=F.$imag(),l=le("Math").$exp(h(c(w,le("Math").$log(te)),c($,B))),o=p(c(B,w),c($,le("Math").$log(te))),le("Complex").$polar(l,o);if(n(le("Integer"),F))if(r(pe(F,0))){for(f=qe,_=f,A=h(F,1);ke(A,0);){for(D=A.$divmod(2),de=G(D),T=de[0]==null?ye:de[0],J=de[1]==null?ye:de[1];j(J,0);)f=i.$Complex(h(c(f.$real(),f.$real()),c(f.$imag(),f.$imag())),c(c(2,f.$real()),f.$imag())),A=T,D=A.$divmod(2),de=G(D),T=de[0]==null?ye:de[0],J=de[1]==null?ye:de[1];_=c(_,f),A=h(A,1)}return _}else return q(le("Rational").$new(1,1),qe)["$**"](F["$-@"]());else return n(le("Float"),F)||n(le("Rational"),F)?(D=qe.$polar(),de=G(D),te=de[0]==null?ye:de[0],B=de[1]==null?ye:de[1],le("Complex").$polar(te["$**"](F),c(B,F))):qe.$__coerced__("**",F)}),d(X,"$abs",function(){var F=this;return le("Math").$hypot(F.real,F.imag)}),d(X,"$abs2",function(){var F=this;return p(c(F.real,F.real),c(F.imag,F.imag))}),d(X,"$angle",function(){var F=this;return le("Math").$atan2(F.imag,F.real)}),d(X,"$conj",function(){var F=this;return i.$Complex(F.real,F.imag["$-@"]())}),d(X,"$denominator",function(){var F=this;return F.real.$denominator().$lcm(F.imag.$denominator())}),d(X,"$eql?",function(F){var de=this,D=ye,qe=ye;return r(D=r(qe=oe("Complex")["$==="](F))?de.real.$class()["$=="](de.imag.$class()):qe)?de["$=="](F):D}),d(X,"$fdiv",function(F){var de=this;return n(le("Numeric"),F)||i.$raise(le("TypeError"),""+F.$class()+" can't be coerced into Complex"),q(de,F)}),d(X,"$finite?",function(){var F=this,de=ye;return r(de=F.real["$finite?"]())?F.imag["$finite?"]():de}),d(X,"$hash",function(){var F=this;return"Complex:"+F.real+":"+F.imag}),d(X,"$infinite?",function(){var F=this,de=ye;return r(de=F.real["$infinite?"]())?de:F.imag["$infinite?"]()}),d(X,"$inspect",function(){var F=this;return"("+F+")"}),d(X,"$numerator",function(){var F=this,de=ye;return de=F.$denominator(),i.$Complex(c(F.real.$numerator(),q(de,F.real.$denominator())),c(F.imag.$numerator(),q(de,F.imag.$denominator())))}),d(X,"$polar",function(){var F=this;return[F.$abs(),F.$arg()]}),d(X,"$rationalize",function(F){var de=this;return arguments.length>1&&i.$raise(le("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),ke(de.imag,0)&&i.$raise(le("RangeError"),"can't convert "+de+" into Rational"),de.$real().$rationalize(F)},-1),d(X,"$real?",$e(!1)),d(X,"$rect",function(){var F=this;return[F.real,F.imag]}),d(X,"$to_f",function(){var F=this;return j(F.imag,0)||i.$raise(le("RangeError"),"can't convert "+F+" into Float"),F.real.$to_f()}),d(X,"$to_i",function(){var F=this;return j(F.imag,0)||i.$raise(le("RangeError"),"can't convert "+F+" into Integer"),F.real.$to_i()}),d(X,"$to_r",function(){var F=this;return j(F.imag,0)||i.$raise(le("RangeError"),"can't convert "+F+" into Rational"),F.real.$to_r()}),d(X,"$to_s",function(){var F=this,de=ye;return de=F.real.$inspect(),de=p(de,n(le("Number"),F.imag)&&r(F.imag["$nan?"]())||r(F.imag["$positive?"]())||r(F.imag["$zero?"]())?"+":"-"),de=p(de,F.imag.$abs().$inspect()),n(le("Number"),F.imag)&&(r(F.imag["$nan?"]())||r(F.imag["$infinite?"]()))&&(de=p(de,"*")),p(de,"i")}),W(Ae[0],"I",X.$new(0,1)),s(X,"$from_string",function(F){var de=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;F.match(de);var D,qe;function te(){return de.test(F)}function B(){var $=F.match(de),l=$[0];return F=F.slice(l.length),l.replace(/_/g,"")}function w(){if(te()){var $=parseFloat(B());if(F[0]==="/")if(F=F.slice(1),te()){var l=parseFloat(B());return i.$Rational($,l)}else return F="/"+F,$;else return $}else return null}return D=w(),D?(qe=w(),qe?i.$Complex(D,qe):F[0]==="i"?i.$Complex(0,D):i.$Complex(D,0)):F[0]==="i"?i.$Complex(0,1):F[0]==="-"&&F[1]==="i"?i.$Complex(0,-1):F[0]==="+"&&F[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Se,F){return Z(Se,"rectangular","rect")}(e.get_singleton_class(X)),Z(X,"arg","angle"),Z(X,"conjugate","conj"),Z(X,"divide","/"),Z(X,"imaginary","imag"),Z(X,"magnitude","abs"),Z(X,"phase","arg"),Z(X,"quo","/"),Z(X,"rectangular","rect"),e.udef(X,"$negative?"),e.udef(X,"$positive?"),e.udef(X,"$step"),ye}("::",le("Numeric"),ae)};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 c=t(s,"Kernel");return r(c,"$Rational",function(p,h){return h==null&&(h=1),i("Rational").$convert(p,h)},-2)}("::"),function(s,c){var d=n(s,c,"String");return r(d,"$to_r",function(){var h=this;return i("Rational").$from_string(h)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,c=e.rb_divide,d=e.defs,p=e.eqeqeq,h=e.not,q=e.Opal,j=e.def,G=e.return_ivar,pe=e.rb_minus,ke=e.rb_times,$e=e.rb_plus,W=e.rb_gt,Z=e.rb_le,ve=e.return_self,ae=e.alias,ye=e.top,le=e.nil,we=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"),ye.$require("corelib/numeric"),ye.$require("corelib/rational/base"),function(ce,ze){var X=t(ce,ze,"Rational"),Ae=X.$$prototype;return Ae.num=Ae.den=le,d(X,"$reduce",function(k,Se){var F=this,de=le;if(k=k.$to_i(),Se=Se.$to_i(),r(Se,0))n.$raise(we("ZeroDivisionError"),"divided by 0");else if(i(s(Se,0)))k=k["$-@"](),Se=Se["$-@"]();else if(r(Se,1))return F.$new(k,Se);return de=k.$gcd(Se),F.$new(c(k,de),c(Se,de))}),d(X,"$convert",function(k,Se){var F=this;return(i(k["$nil?"]())||i(Se["$nil?"]()))&&n.$raise(we("TypeError"),"cannot convert nil into Rational"),p(we("Integer"),k)&&p(we("Integer"),Se)?F.$reduce(k,Se):((p(we("Float"),k)||p(we("String"),k)||p(we("Complex"),k))&&(k=k.$to_r()),(p(we("Float"),Se)||p(we("String"),Se)||p(we("Complex"),Se))&&(Se=Se.$to_r()),i(Se["$equal?"](1))&&h(we("Integer")["$==="](k))?q["$coerce_to!"](k,we("Rational"),"to_r"):p(we("Numeric"),k)&&p(we("Numeric"),Se)?c(k,Se):F.$reduce(k,Se))}),j(X,"$initialize",function(k,Se){var F=this;return F.num=k,F.den=Se,F.$freeze()}),j(X,"$numerator",G("num")),j(X,"$denominator",G("den")),j(X,"$coerce",function(k){var Se=this,F=le;return p(we("Rational"),F=k)?[k,Se]:p(we("Integer"),F)?[k.$to_r(),Se]:p(we("Float"),F)?[k,Se.$to_f()]:le}),j(X,"$==",function(k){var Se=this,F=le,de=le;return p(we("Rational"),F=k)?i(de=Se.num["$=="](k.$numerator()))?Se.den["$=="](k.$denominator()):de:p(we("Integer"),F)?i(de=Se.num["$=="](k))?Se.den["$=="](1):de:p(we("Float"),F)?Se.$to_f()["$=="](k):k["$=="](Se)}),j(X,"$<=>",function(k){var Se=this,F=le;return p(we("Rational"),F=k)?pe(ke(Se.num,k.$denominator()),ke(Se.den,k.$numerator()))["$<=>"](0):p(we("Integer"),F)?pe(Se.num,ke(Se.den,k))["$<=>"](0):p(we("Float"),F)?Se.$to_f()["$<=>"](k):Se.$__coerced__("<=>",k)}),j(X,"$+",function(k){var Se=this,F=le,de=le,D=le;return p(we("Rational"),F=k)?(de=$e(ke(Se.num,k.$denominator()),ke(Se.den,k.$numerator())),D=ke(Se.den,k.$denominator()),n.$Rational(de,D)):p(we("Integer"),F)?n.$Rational($e(Se.num,ke(k,Se.den)),Se.den):p(we("Float"),F)?$e(Se.$to_f(),k):Se.$__coerced__("+",k)}),j(X,"$-",function(k){var Se=this,F=le,de=le,D=le;return p(we("Rational"),F=k)?(de=pe(ke(Se.num,k.$denominator()),ke(Se.den,k.$numerator())),D=ke(Se.den,k.$denominator()),n.$Rational(de,D)):p(we("Integer"),F)?n.$Rational(pe(Se.num,ke(k,Se.den)),Se.den):p(we("Float"),F)?pe(Se.$to_f(),k):Se.$__coerced__("-",k)}),j(X,"$*",function(k){var Se=this,F=le,de=le,D=le;return p(we("Rational"),F=k)?(de=ke(Se.num,k.$numerator()),D=ke(Se.den,k.$denominator()),n.$Rational(de,D)):p(we("Integer"),F)?n.$Rational(ke(Se.num,k),Se.den):p(we("Float"),F)?ke(Se.$to_f(),k):Se.$__coerced__("*",k)}),j(X,"$/",function(k){var Se=this,F=le,de=le,D=le;return p(we("Rational"),F=k)?(de=ke(Se.num,k.$denominator()),D=ke(Se.den,k.$numerator()),n.$Rational(de,D)):p(we("Integer"),F)?r(k,0)?c(Se.$to_f(),0):n.$Rational(Se.num,ke(Se.den,k)):p(we("Float"),F)?c(Se.$to_f(),k):Se.$__coerced__("/",k)}),j(X,"$**",function(k){var Se=this,F=le;return p(we("Integer"),F=k)?r(Se,0)&&i(s(k,0))?we(we("Float"),"INFINITY"):i(W(k,0))?n.$Rational(Se.num["$**"](k),Se.den["$**"](k)):i(s(k,0))?n.$Rational(Se.den["$**"](k["$-@"]()),Se.num["$**"](k["$-@"]())):n.$Rational(1,1):p(we("Float"),F)?Se.$to_f()["$**"](k):p(we("Rational"),F)?r(k,0)?n.$Rational(1,1):r(k.$denominator(),1)?i(s(k,0))?n.$Rational(Se.den["$**"](k.$numerator().$abs()),Se.num["$**"](k.$numerator().$abs())):n.$Rational(Se.num["$**"](k.$numerator()),Se.den["$**"](k.$numerator())):r(Se,0)&&i(s(k,0))?n.$raise(we("ZeroDivisionError"),"divided by 0"):Se.$to_f()["$**"](k):Se.$__coerced__("**",k)}),j(X,"$abs",function(){var k=this;return n.$Rational(k.num.$abs(),k.den.$abs())}),j(X,"$ceil",function(k){var Se=this;return k==null&&(k=0),r(k,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$ceil():Se.$with_precision("ceil",k)},-1),j(X,"$floor",function(k){var Se=this;return k==null&&(k=0),r(k,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$floor():Se.$with_precision("floor",k)},-1),j(X,"$hash",function(){var k=this;return"Rational:"+k.num+":"+k.den}),j(X,"$inspect",function(){var k=this;return"("+k+")"}),j(X,"$rationalize",function(k){var Se=this;if(arguments.length>1&&n.$raise(we("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),k==null)return Se;for(var F=k.$abs(),de=pe(Se,F),D=$e(Se,F),qe=0,te=1,B=1,w=0,$,l,o,f,_;o=de.$ceil(),!Z(o,D);)f=o-1,$=f*te+qe,l=f*w+B,_=c(1,pe(D,f)),D=c(1,pe(de,f)),de=_,qe=te,B=w,te=$,w=l;return n.$Rational(o*te+qe,o*w+B)},-1),j(X,"$round",function(k){var Se=this,F=le,de=le,D=le;return k==null&&(k=0),r(k,0)?r(Se.num,0)?0:r(Se.den,1)?Se.num:(F=$e(ke(Se.num.$abs(),2),Se.den),de=ke(Se.den,2),D=c(F,de).$truncate(),i(s(Se.num,0))?D["$-@"]():D):Se.$with_precision("round",k)},-1),j(X,"$to_f",function(){var k=this;return c(k.num,k.den)}),j(X,"$to_i",function(){var k=this;return k.$truncate()}),j(X,"$to_r",ve),j(X,"$to_s",function(){var k=this;return""+k.num+"/"+k.den}),j(X,"$truncate",function(k){var Se=this;return k==null&&(k=0),r(k,0)?i(s(Se.num,0))?Se.$ceil():Se.$floor():Se.$with_precision("truncate",k)},-1),j(X,"$with_precision",function(k,Se){var F=this,de=le,D=le;return p(we("Integer"),Se)||n.$raise(we("TypeError"),"not an Integer"),de=10["$**"](Se),D=ke(F,de),i(s(Se,1))?c(D.$send(k),de).$to_i():n.$Rational(D.$send(k),de)}),d(X,"$from_string",function(k){var Se=k.trimLeft(),F=/^[+-]?[\d_]+(\.[\d_]+)?/;Se.match(F);var de,D;function qe(){return F.test(Se)}function te(){var B=Se.match(F),w=B[0];return Se=Se.slice(w.length),w.replace(/_/g,"")}return qe()?(de=parseFloat(te()),Se[0]==="/"?(Se=Se.slice(1),qe()?(D=parseFloat(te()),n.$Rational(de,D)):n.$Rational(de,1)):n.$Rational(de,1)):n.$Rational(0,1)}),ae(X,"divide","/"),ae(X,"quo","/")}("::",we("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,c=e.defs,d=e.eqeqeq,p=e.def,h=e.truthy,q=e.rb_gt,j=e.rb_lt,G=e.send,pe=e.rb_plus,ke=e.rb_divide,$e=e.rb_minus,W=e.range,Z=e.neqeq,ve=e.rb_le,ae=e.eqeq,ye=e.alias,le=e.top,we=[],ce=e.nil,ze=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?"),le.$require("corelib/comparable"),function(X,Ae,oe){var k=n(X,Ae,"Time"),Se=[k].concat(oe),F=e.$r(Se);k.$include(ze("Comparable"));var de=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],D=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],te=["January","February","March","April","May","June","July","August","September","October","November","December"];c(k,"$at",function($,l){var o;return ze("Time")["$==="]($)?(l!==void 0&&i.$raise(ze("TypeError"),"can't convert Time into an exact number"),o=new Date($.getTime()),o.timezone=$.timezone,o):($.$$is_number||($=s["$coerce_to!"]($,ze("Integer"),"to_int")),l===void 0?new Date($*1e3):(l.$$is_number||(l=s["$coerce_to!"](l,ze("Integer"),"to_int")),new Date($*1e3+l/1e3)))},-2);function B(w,$,l,o,f,_){if(w.$$is_string?w=parseInt(w,10):w=s["$coerce_to!"](w,ze("Integer"),"to_int"),$===ce)$=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!"]($,ze("Integer"),"to_int");return($<1||$>12)&&i.$raise(ze("ArgumentError"),"month out of range: "+$),$=$-1,l===ce?l=1:l.$$is_string?l=parseInt(l,10):l=s["$coerce_to!"](l,ze("Integer"),"to_int"),(l<1||l>31)&&i.$raise(ze("ArgumentError"),"day out of range: "+l),o===ce?o=0:o.$$is_string?o=parseInt(o,10):o=s["$coerce_to!"](o,ze("Integer"),"to_int"),(o<0||o>24)&&i.$raise(ze("ArgumentError"),"hour out of range: "+o),f===ce?f=0:f.$$is_string?f=parseInt(f,10):f=s["$coerce_to!"](f,ze("Integer"),"to_int"),(f<0||f>59)&&i.$raise(ze("ArgumentError"),"min out of range: "+f),_===ce?_=0:_.$$is_number||(_.$$is_string?_=parseInt(_,10):_=s["$coerce_to!"](_,ze("Integer"),"to_int")),(_<0||_>60)&&i.$raise(ze("ArgumentError"),"sec out of range: "+_),[w,$,l,o,f,_]}return c(k,"$new",function($,l,o,f,_,A,T){var J=this;l==null&&(l=ce),o==null&&(o=ce),f==null&&(f=ce),_==null&&(_=ce),A==null&&(A=ce),T==null&&(T=ce);var Fe,it,ht,mt;return $===void 0?new Date:(Fe=B($,l,o,f,_,A),$=Fe[0],l=Fe[1],o=Fe[2],f=Fe[3],_=Fe[4],A=Fe[5],T===ce?(it=new Date($,l,o,f,_,0,A*1e3),$<100&&it.setFullYear($),it):(ht=J.$_parse_offset(T),mt=new Date(Date.UTC($,l,o,f,_,0,A*1e3)),$<100&&mt.setUTCFullYear($),it=new Date(mt.getTime()-ht*36e5),it.timezone=ht,it))},-1),c(k,"$_parse_offset",function($){var l;if($.$$is_string)if($=="UTC")l=0;else if(/^[+-]\d\d:[0-5]\d$/.test($)){var o,f,_;o=$[0],f=+($[1]+$[2]),_=+($[4]+$[5]),l=(o=="-"?-1:1)*(f+_/60)}else i.$raise(ze("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+$);else $.$$is_number?l=$/3600:i.$raise(ze("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return l}),c(k,"$local",function($,l,o,f,_,A,T,J,Fe,it){l==null&&(l=ce),o==null&&(o=ce),f==null&&(f=ce),_==null&&(_=ce),A==null&&(A=ce),T==null&&(T=ce),J==null&&(J=ce),Fe==null&&(Fe=ce),it==null&&(it=ce);var ht,mt;return arguments.length===10&&(ht=t(arguments),$=ht[5],l=ht[4],o=ht[3],f=ht[2],_=ht[1],A=ht[0]),ht=B($,l,o,f,_,A),$=ht[0],l=ht[1],o=ht[2],f=ht[3],_=ht[4],A=ht[5],mt=new Date($,l,o,f,_,0,A*1e3),$<100&&mt.setFullYear($),mt},-2),c(k,"$gm",function($,l,o,f,_,A,T,J,Fe,it){l==null&&(l=ce),o==null&&(o=ce),f==null&&(f=ce),_==null&&(_=ce),A==null&&(A=ce),T==null&&(T=ce),J==null&&(J=ce),Fe==null&&(Fe=ce),it==null&&(it=ce);var ht,mt;return arguments.length===10&&(ht=t(arguments),$=ht[5],l=ht[4],o=ht[3],f=ht[2],_=ht[1],A=ht[0]),ht=B($,l,o,f,_,A),$=ht[0],l=ht[1],o=ht[2],f=ht[3],_=ht[4],A=ht[5],mt=new Date(Date.UTC($,l,o,f,_,0,A*1e3)),$<100&&mt.setUTCFullYear($),mt.timezone=0,mt},-2),c(k,"$now",function(){var $=this;return $.$new()}),p(k,"$+",function($){var l=this;d(ze("Time"),$)&&i.$raise(ze("TypeError"),"time + time?"),$.$$is_number||($=s["$coerce_to!"]($,ze("Integer"),"to_int"));var o=new Date(l.getTime()+$*1e3);return o.timezone=l.timezone,o}),p(k,"$-",function($){var l=this;if(d(ze("Time"),$))return(l.getTime()-$.getTime())/1e3;$.$$is_number||($=s["$coerce_to!"]($,ze("Integer"),"to_int"));var o=new Date(l.getTime()-$*1e3);return o.timezone=l.timezone,o}),p(k,"$<=>",function($){var l=this,o=ce;return d(ze("Time"),$)?l.$to_f()["$<=>"]($.$to_f()):(o=$["$<=>"](l),h(o["$nil?"]())?ce:h(q(o,0))?-1:h(j(o,0))?1:0)}),p(k,"$==",function($){var l=this,o=ce;return h(o=ze("Time")["$==="]($))?l.$to_f()===$.$to_f():o}),p(k,"$asctime",function(){var $=this;return $.$strftime("%a %b %e %H:%M:%S %Y")}),G([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function w($,l,o,f){var _=w.$$s==null?this:w.$$s;return $==null&&($=ce),l==null&&(l=ce),o==null&&(o=ce),f==null&&(f=0),G(_,"define_method",[$],function A(){var T=A.$$s==null?this:A.$$s;return f+(T.timezone!=null?new Date(T.getTime()+T.timezone*36e5)[o]():T[l]())},{$$s:_})},{$$arity:-4,$$s:k}),p(k,"$yday",function(){var $=this,l=ce,o=ce,f=ce;return l=F("Time").$new($.$year()).$to_i(),o=F("Time").$new($.$year(),$.$month(),$.$day()).$to_i(),f=86400,pe(ke($e(o,l),f).$round(),1)}),p(k,"$isdst",function(){var $=this,l=new Date($.getFullYear(),0,1),o=new Date($.getFullYear(),6,1);return $.getTimezoneOffset()<Math.max(l.getTimezoneOffset(),o.getTimezoneOffset())}),p(k,"$dup",function(){var $=this,l=ce;return l=new Date($.getTime()),l.$copy_instance_variables($),l.$initialize_dup($),l}),p(k,"$eql?",function($){var l=this,o=ce;return h(o=$["$is_a?"](ze("Time")))?l["$<=>"]($)["$zero?"]():o}),G([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function w($,l){var o=w.$$s==null?this:w.$$s;return $==null&&($=ce),l==null&&(l=ce),G(o,"define_method",[$],function f(){var _=f.$$s==null?this:f.$$s;return _.$wday()===l},{$$s:o})},{$$s:k}),p(k,"$hash",function(){var $=this;return"Time:"+$.getTime()}),p(k,"$inspect",function(){var $=this;return h($["$utc?"]())?$.$strftime("%Y-%m-%d %H:%M:%S UTC"):$.$strftime("%Y-%m-%d %H:%M:%S %z")}),p(k,"$succ",function(){var $=this,l=new Date($.getTime()+1e3);return l.timezone=$.timezone,l}),p(k,"$usec",function(){var $=this;return $.getMilliseconds()*1e3}),p(k,"$zone",function(){var $=this;if($.timezone===0)return"UTC";if($.timezone!=null)return ce;var l=$.toString(),o;return l.indexOf("(")==-1?o=l.match(/[A-Z]{3,4}/)[0]:o=l.match(/\((.+)\)(?:\s|$)/)[1],o=="GMT"&&/(GMT\W*\d{4})/.test(l)?RegExp.$1:o}),p(k,"$getgm",function(){var $=this,l=new Date($.getTime());return l.timezone=0,l}),p(k,"$gmtime",function(){var $=this;return $.timezone!==0&&(r($),$.timezone=0),$}),p(k,"$gmt?",function(){var $=this;return $.timezone===0}),p(k,"$gmt_offset",function(){var $=this;return $.timezone!=null?$.timezone*60:-$.getTimezoneOffset()*60}),p(k,"$strftime",function($){var l=this;return $.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(o,f,_,A,T){var J="",Fe,it,ht,mt=f.indexOf("0")!==-1,Rt=f.indexOf("-")===-1,wt=f.indexOf("_")!==-1,Mt=f.indexOf("^")!==-1,At=f.indexOf("#")!==-1,qt=(f.match(":")||[]).length;switch(_=parseInt(_,10),mt&&wt&&(f.indexOf("0")<f.indexOf("_")?mt=!1:wt=!1),T){case"Y":J+=l.$year();break;case"C":mt=!wt,J+=Math.round(l.$year()/100);break;case"y":mt=!wt,J+=l.$year()%100;break;case"m":mt=!wt,J+=l.$mon();break;case"B":J+=te[l.$mon()-1];break;case"b":case"h":wt=!mt,J+=qe[l.$mon()-1];break;case"d":mt=!wt,J+=l.$day();break;case"e":wt=!mt,J+=l.$day();break;case"j":mt=!wt,_=isNaN(_)?3:_,J+=l.$yday();break;case"H":mt=!wt,J+=l.$hour();break;case"k":wt=!mt,J+=l.$hour();break;case"I":mt=!wt,J+=l.$hour()%12||12;break;case"l":wt=!mt,J+=l.$hour()%12||12;break;case"P":J+=l.$hour()>=12?"pm":"am";break;case"p":J+=l.$hour()>=12?"PM":"AM";break;case"M":mt=!wt,J+=l.$min();break;case"S":mt=!wt,J+=l.$sec();break;case"L":mt=!wt,_=isNaN(_)?3:_,J+=l.getMilliseconds();break;case"N":_=isNaN(_)?9:_,J+=l.getMilliseconds().toString().$rjust(3,"0"),J=J.$ljust(_,"0");break;case"z":var It=l.timezone==null?l.getTimezoneOffset():-l.timezone*60,rt=Math.floor(Math.abs(It)/60),Re=Math.abs(It)%60;J+=It<0?"+":"-",J+=rt<10?"0":"",J+=rt,qt>0&&(J+=":"),J+=Re<10?"0":"",J+=Re,qt>1&&(J+=":00");break;case"Z":J+=l.$zone();break;case"A":J+=de[l.$wday()];break;case"a":J+=D[l.$wday()];break;case"u":J+=l.$wday()+1;break;case"w":J+=l.$wday();break;case"V":J+=l.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":J+=l.$cweek_cyear()["$[]"](1);break;case"g":J+=l.$cweek_cyear()["$[]"](1)["$[]"](W(-2,-1,!1));break;case"s":J+=l.$to_i();break;case"n":J+=`
|
|
404
|
+
`;break;case"t":J+=" ";break;case"%":J+="%";break;case"c":J+=l.$strftime("%a %b %e %T %Y");break;case"D":case"x":J+=l.$strftime("%m/%d/%y");break;case"F":J+=l.$strftime("%Y-%m-%d");break;case"v":J+=l.$strftime("%e-%^b-%4Y");break;case"r":J+=l.$strftime("%I:%M:%S %p");break;case"R":J+=l.$strftime("%H:%M");break;case"T":case"X":J+=l.$strftime("%H:%M:%S");break;case"J":if(Fe=l.$to_date().$jd(),Fe<2405160){J+=l.$strftime("%Y-%m-%d");break}else Fe<2419614?(it="M",ht=1867):Fe<2424875?(it="T",ht=1911):Fe<2447535?(it="S",ht=1925):Fe<2458605?(it="H",ht=1988):(it="R",ht=2018);J+=l.$format("%c%02d",it,$e(l.$year(),ht)),J+=l.$strftime("-%m-%d");break;default:return o}return Mt&&(J=J.toUpperCase()),At&&(J=J.replace(/[A-Z]/,function(Be){Be.toLowerCase()}).replace(/[a-z]/,function(Be){Be.toUpperCase()})),Rt&&(mt||wt)&&(J=J.$rjust(isNaN(_)?2:_,wt?" ":"0")),J})}),p(k,"$to_a",function(){var $=this;return[$.$sec(),$.$min(),$.$hour(),$.$day(),$.$month(),$.$year(),$.$wday(),$.$yday(),$.$isdst(),$.$zone()]}),p(k,"$to_f",function(){var $=this;return $.getTime()/1e3}),p(k,"$to_i",function(){var $=this;return parseInt($.getTime()/1e3,10)}),p(k,"$cweek_cyear",function(){var $=this,l=ce,o=ce,f=ce,_=ce,A=ce,T=ce,J=ce;return l=ze("Time").$new($.$year(),1,1),o=l.$wday(),f=$.$year(),h(ve(o,4))&&Z(o,0)?_=$e(o,1):(_=$e($e(o,7),1),ae(_,-8)&&(_=-1)),A=ke(pe($.$yday(),_),7).$ceil(),h(ve(A,0))?ze("Time").$new($e($.$year(),1),12,31).$cweek_cyear():(ae(A,53)&&(T=ze("Time").$new($.$year(),12,31),J=T.$wday(),h(ve(J,3))&&Z(J,0)&&(A=1,f=pe(f,1))),[A,f])}),function(w,$){return ye(w,"mktime","local"),ye(w,"utc","gm")}(e.get_singleton_class(k)),ye(k,"ctime","asctime"),ye(k,"dst?","isdst"),ye(k,"getutc","getgm"),ye(k,"gmtoff","gmt_offset"),ye(k,"mday","day"),ye(k,"month","mon"),ye(k,"to_s","inspect"),ye(k,"tv_sec","to_i"),ye(k,"tv_usec","usec"),ye(k,"utc","gmtime"),ye(k,"utc?","gmt?"),ye(k,"utc_offset","gmt_offset")}("::",Date,we)};Opal.modules["corelib/struct"]=function(e){var t=e.klass,r=e.slice,n=e.extract_kwargs,i=e.ensure_kwargs,s=e.truthy,c=e.neqeq,d=e.eqeq,p=e.Opal,h=e.send,q=e.Class,j=e.to_a,G=e.def,pe=e.defs,ke=e.Kernel,$e=e.hash2,W=e.rb_gt,Z=e.rb_minus,ve=e.eqeqeq,ae=e.rb_lt,ye=e.rb_ge,le=e.rb_plus,we=e.alias,ce=e.top,ze=[],X=e.nil,Ae=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"),ce.$require("corelib/enumerable"),function(oe,k,Se){var F=t(oe,k,"Struct"),de=[F].concat(Se),D=e.$r(de);F.$include(Ae("Enumerable")),pe(F,"$new",function te(B,w,$){var l=te.$$p||X,o,f,_,A,T=this,J=X;if(te.$$p=null,o=r(arguments,1),f=n(o),f=i(f),_=o,A=f.$$smap.keyword_init,A==null&&(A=!1),s(B))if(d(B.$class(),Ae("String"))&&c(B["$[]"](0).$upcase(),B["$[]"](0)))_.$unshift(B),B=X;else try{B=p["$const_name!"](B)}catch(Fe){if(e.rescue(Fe,[Ae("TypeError"),Ae("NameError")]))try{_.$unshift(B),B=X}finally{e.pop_exception()}else throw Fe}return h(_,"map",[],function(it){return it==null&&(it=X),p["$coerce_to!"](it,Ae("String"),"to_str")}),J=h(q,"new",[T],function Fe(){var it=Fe.$$s==null?this:Fe.$$s;return h(_,"each",[],function ht(mt){var Rt=ht.$$s==null?this:ht.$$s;return mt==null&&(mt=X),Rt.$define_struct_attribute(mt)},{$$s:it}),function(ht,mt){return G(ht,"$new",function(wt){var Mt,At,qt=this,It=X;return Mt=r(arguments),At=Mt,It=qt.$allocate(),It.$$data={},h(It,"initialize",j(At)),It},-1),ht.$alias_method("[]","new")}(e.get_singleton_class(it))},{$$s:T}),s(l)&&h(J,"module_eval",[],l.$to_proc()),J.$$keyword_init=A,s(B)&&Ae("Struct").$const_set(B,J),J},-2),pe(F,"$define_struct_attribute",function(B){var w=this;return d(w,Ae("Struct"))&&ke.$raise(Ae("ArgumentError"),"you cannot define attributes to the Struct class"),w.$members()["$<<"](B),h(w,"define_method",[B],function $(){var l=$.$$s==null?this:$.$$s;return l.$$data[B]},{$$s:w}),h(w,"define_method",[""+B+"="],function $(l){var o=$.$$s==null?this:$.$$s;return l==null&&(l=X),o.$$data[B]=l},{$$s:w})}),pe(F,"$members",function(){var B=this,w=X;return B.members==null&&(B.members=X),d(B,Ae("Struct"))&&ke.$raise(Ae("ArgumentError"),"the Struct class has no members"),B.members=s(w=B.members)?w:[]}),pe(F,"$inherited",function(B){var w=this,$=X;return w.members==null&&(w.members=X),$=w.members,h(B,"instance_eval",[],function l(){var o=l.$$s==null?this:l.$$s;return o.members=$},{$$s:w})}),G(F,"$initialize",function(B){var w,$,l=this,o=X,f=X,_=X;return w=r(arguments),$=w,s(l.$class().$$keyword_init)?(o=s(f=$.$last())?f:$e([],{}),(s(W($.$length(),1))||s($.length===1&&!o.$$is_hash))&&ke.$raise(Ae("ArgumentError"),"wrong number of arguments (given "+$.$length()+", expected 0)"),_=Z(o.$keys(),l.$class().$members()),s(_["$any?"]())&&ke.$raise(Ae("ArgumentError"),"unknown keywords: "+_.$join(", ")),h(l.$class().$members(),"each",[],function A(T){var J,Fe=A.$$s==null?this:A.$$s;return T==null&&(T=X),J=[T,o["$[]"](T)],h(Fe,"[]=",J),J[J.length-1]},{$$s:l})):(s(W($.$length(),l.$class().$members().$length()))&&ke.$raise(Ae("ArgumentError"),"struct size differs"),h(l.$class().$members(),"each_with_index",[],function A(T,J){var Fe,it=A.$$s==null?this:A.$$s;return T==null&&(T=X),J==null&&(J=X),Fe=[T,$["$[]"](J)],h(it,"[]=",Fe),Fe[Fe.length-1]},{$$s:l}))},-1),G(F,"$initialize_copy",function(B){var w=this;w.$$data={};var $=Object.keys(B.$$data),l,o,f;for(l=0,o=$.length;l<o;l++)f=$[l],w.$$data[f]=B.$$data[f]}),pe(F,"$keyword_init?",function(){var B=this;return B.$$keyword_init}),G(F,"$members",function(){var B=this;return B.$class().$members()}),G(F,"$hash",function(){var B=this;return D("Hash").$new(B.$$data).$hash()}),G(F,"$[]",function(B){var w=this;return ve(Ae("Integer"),B)?(s(ae(B,w.$class().$members().$size()["$-@"]()))&&ke.$raise(Ae("IndexError"),"offset "+B+" too small for struct(size:"+w.$class().$members().$size()+")"),s(ye(B,w.$class().$members().$size()))&&ke.$raise(Ae("IndexError"),"offset "+B+" too large for struct(size:"+w.$class().$members().$size()+")"),B=w.$class().$members()["$[]"](B)):ve(Ae("String"),B)?w.$$data.hasOwnProperty(B)||ke.$raise(Ae("NameError").$new("no member '"+B+"' in struct",B)):ke.$raise(Ae("TypeError"),"no implicit conversion of "+B.$class()+" into Integer"),B=p["$coerce_to!"](B,Ae("String"),"to_str"),w.$$data[B]}),G(F,"$[]=",function(B,w){var $=this;return ve(Ae("Integer"),B)?(s(ae(B,$.$class().$members().$size()["$-@"]()))&&ke.$raise(Ae("IndexError"),"offset "+B+" too small for struct(size:"+$.$class().$members().$size()+")"),s(ye(B,$.$class().$members().$size()))&&ke.$raise(Ae("IndexError"),"offset "+B+" too large for struct(size:"+$.$class().$members().$size()+")"),B=$.$class().$members()["$[]"](B)):ve(Ae("String"),B)?s($.$class().$members()["$include?"](B.$to_sym()))||ke.$raise(Ae("NameError").$new("no member '"+B+"' in struct",B)):ke.$raise(Ae("TypeError"),"no implicit conversion of "+B.$class()+" into Integer"),B=p["$coerce_to!"](B,Ae("String"),"to_str"),$.$$data[B]=w}),G(F,"$==",function(B){var w=this;if(!s(B["$instance_of?"](w.$class())))return!1;var $={},l={};function o(f,_){var A,T,J;$[f.$__id__()]=!0,l[_.$__id__()]=!0;for(A in f.$$data)if(T=f.$$data[A],J=_.$$data[A],Ae("Struct")["$==="](T)){if((!$.hasOwnProperty(T.$__id__())||!l.hasOwnProperty(J.$__id__()))&&!o(T,J))return!1}else if(!T["$=="](J))return!1;return!0}return o(w,B)}),G(F,"$eql?",function(B){var w=this;if(!s(B["$instance_of?"](w.$class())))return!1;var $={},l={};function o(f,_){var A,T,J;$[f.$__id__()]=!0,l[_.$__id__()]=!0;for(A in f.$$data)if(T=f.$$data[A],J=_.$$data[A],Ae("Struct")["$==="](T)){if((!$.hasOwnProperty(T.$__id__())||!l.hasOwnProperty(J.$__id__()))&&!o(T,J))return!1}else if(!T["$eql?"](J))return!1;return!0}return o(w,B)}),G(F,"$each",function te(){var B=te.$$p||X,w=this;return te.$$p=null,B===X?h(w,"enum_for",["each"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:w}):(h(w.$class().$members(),"each",[],function $(l){var o=$.$$s==null?this:$.$$s;return l==null&&(l=X),e.yield1(B,o["$[]"](l))},{$$s:w}),w)}),G(F,"$each_pair",function te(){var B=te.$$p||X,w=this;return te.$$p=null,B===X?h(w,"enum_for",["each_pair"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:w}):(h(w.$class().$members(),"each",[],function $(l){var o=$.$$s==null?this:$.$$s;return l==null&&(l=X),e.yield1(B,[l,o["$[]"](l)])},{$$s:w}),w)}),G(F,"$length",function(){var B=this;return B.$class().$members().$length()}),G(F,"$to_a",function(){var B=this;return h(B.$class().$members(),"map",[],function w($){var l=w.$$s==null?this:w.$$s;return $==null&&($=X),l["$[]"]($)},{$$s:B})});var qe=[];return G(F,"$inspect",function(){var B=this,w=X,$=X;return function(){try{return w="#<struct ",s(qe["$include?"](B.$__id__()))?le(w,":...>"):(qe["$<<"](B.$__id__()),$=!0,ve(Ae("Struct"),B)&&s(B.$class().$name())&&(w=le(w,""+B.$class()+" ")),w=le(w,h(B.$each_pair(),"map",[],function(o,f){return o==null&&(o=X),f==null&&(f=X),""+o+"="+D("Opal").$inspect(f)}).$join(", ")),w=le(w,">"),w)}finally{s($)&&qe.pop()}}()}),G(F,"$to_h",function te(){var B=te.$$p||X,w=this;return te.$$p=null,B!==X?h(h(w,"map",[],B.$to_proc()),"to_h",j(w.$args())):h(w.$class().$members(),"each_with_object",[$e([],{})],function $(l,o){var f,_=$.$$s==null?this:$.$$s;return l==null&&(l=X),o==null&&(o=X),f=[l,_["$[]"](l)],h(o,"[]=",f),f[f.length-1]},{$$s:w})}),G(F,"$values_at",function(B){var w,$,l=this;w=r(arguments),$=w,$=h($,"map",[],function(T){return T==null&&(T=X),T.$$is_range?T.$to_a():T}).$flatten();for(var o=[],f=0,_=$.length;f<_;f++)$[f].$$is_number||ke.$raise(Ae("TypeError"),"no implicit conversion of "+$[f].$class()+" into Integer"),o.push(l["$[]"]($[f]));return o},-1),G(F,"$dig",function(B,w){var $,l,o=this,f=X;return $=r(arguments,1),l=$,f=s(B.$$is_string&&o.$$data.hasOwnProperty(B))&&o.$$data[B]||X,f===X||l.length===0?f:(s(f["$respond_to?"]("dig"))||ke.$raise(Ae("TypeError"),""+f.$class()+" does not have #dig method"),h(f,"dig",j(l)))},-2),we(F,"size","length"),we(F,"to_s","inspect"),we(F,"values","to_a")}("::",null,ze)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,c=e.truthy,d=e.eqeqeq,p=e.Kernel,h=e.send,q=e.def,j=e.eqeq,G=e.rb_lt,pe=e.rb_le,ke=e.alias,$e=[],W=e.nil,Z=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(ve,ae,ye){var le=r(ve,ae,"Set"),we=[le].concat(ye),ce=e.$r(we),ze=W,X=le.$$prototype;X.hash=W,le.$include(Z("Enumerable")),i(le,"$[]",function(k){var Se,F,de=this;return Se=n(arguments),F=Se,de.$new(F)},-1),q(le,"$initialize",function oe(k){var Se=oe.$$p||W,F=this;return oe.$$p=null,k==null&&(k=W),F.hash=s([],{}),c(k["$nil?"]())?W:(d(Z("Enumerable"),k)||p.$raise(Z("ArgumentError"),"value must be enumerable"),c(Se)?h(k,"each",[],function de(D){var qe=de.$$s==null?this:de.$$s;return D==null&&(D=W),qe.$add(e.yield1(Se,D))},{$$s:F}):F.$merge(k))},-1),q(le,"$dup",function(){var k=this,Se=W;return Se=k.$class().$new(),Se.$merge(k)}),q(le,"$-",function(k){var Se=this;return c(k["$respond_to?"]("each"))||p.$raise(Z("ArgumentError"),"value must be enumerable"),Se.$dup().$subtract(k)}),q(le,"$inspect",function(){var k=this;return"#<Set: {"+k.$to_a().$join(",")+"}>"}),q(le,"$==",function(k){var Se=this;return c(Se["$equal?"](k))?!0:c(k["$instance_of?"](Se.$class()))?Se.hash["$=="](k.$instance_variable_get("@hash")):c(k["$is_a?"](Z("Set")))&&j(Se.$size(),k.$size())?h(k,"all?",[],function F(de){var D=F.$$s==null?this:F.$$s;return D.hash==null&&(D.hash=W),de==null&&(de=W),D.hash["$include?"](de)},{$$s:Se}):!1}),q(le,"$add",function(k){var Se=this;return Se.hash["$[]="](k,!0),Se}),q(le,"$classify",function oe(){var k=oe.$$p||W,Se=this,F=W;return oe.$$p=null,k===W?Se.$enum_for("classify"):(F=h(Z("Hash"),"new",[],function de(D,qe){var te,B=de.$$s==null?this:de.$$s;return D==null&&(D=W),qe==null&&(qe=W),te=[qe,B.$class().$new()],h(D,"[]=",te),te[te.length-1]},{$$s:Se}),h(Se,"each",[],function(D){return D==null&&(D=W),F["$[]"](e.yield1(k,D)).$add(D)}),F)}),q(le,"$collect!",function oe(){var k=oe.$$p||W,Se=this,F=W;return oe.$$p=null,k===W?Se.$enum_for("collect!"):(F=Se.$class().$new(),h(Se,"each",[],function(D){return D==null&&(D=W),F["$<<"](e.yield1(k,D))}),Se.$replace(F))}),q(le,"$compare_by_identity",function(){var k=this;return c(k.hash["$respond_to?"]("compare_by_identity"))?(k.hash.$compare_by_identity(),k):k.$raise(ce("NotImplementedError"),""+k.$class().$name()+"#compare_by_identity is not implemented")}),q(le,"$compare_by_identity?",function(){var k=this,Se=W;return c(Se=k.hash["$respond_to?"]("compare_by_identity?"))?k.hash["$compare_by_identity?"]():Se}),q(le,"$delete",function(k){var Se=this;return Se.hash.$delete(k),Se}),q(le,"$delete?",function(k){var Se=this;return c(Se["$include?"](k))?(Se.$delete(k),Se):W}),q(le,"$delete_if",function oe(){var k=oe.$$p||W,Se=this;return oe.$$p=null,k===W?Se.$enum_for("delete_if"):(h(h(Se,"select",[],function(de){return de==null&&(de=W),e.yield1(k,de)}),"each",[],function F(de){var D=F.$$s==null?this:F.$$s;return D.hash==null&&(D.hash=W),de==null&&(de=W),D.hash.$delete(de)},{$$s:Se}),Se)}),q(le,"$freeze",function(){var k=this;return c(k["$frozen?"]())?k:(k.hash.$freeze(),t(k))}),q(le,"$keep_if",function oe(){var k=oe.$$p||W,Se=this;return oe.$$p=null,k===W?Se.$enum_for("keep_if"):(h(h(Se,"reject",[],function(de){return de==null&&(de=W),e.yield1(k,de)}),"each",[],function F(de){var D=F.$$s==null?this:F.$$s;return D.hash==null&&(D.hash=W),de==null&&(de=W),D.hash.$delete(de)},{$$s:Se}),Se)}),q(le,"$reject!",function oe(){var k=oe.$$p||W,Se=this,F=W;return oe.$$p=null,k===W?Se.$enum_for("reject!"):(F=Se.$size(),h(Se,"delete_if",[],k.$to_proc()),j(Se.$size(),F)?W:Se)}),q(le,"$select!",function oe(){var k=oe.$$p||W,Se=this,F=W;return oe.$$p=null,k===W?Se.$enum_for("select!"):(F=Se.$size(),h(Se,"keep_if",[],k.$to_proc()),j(Se.$size(),F)?W:Se)}),q(le,"$add?",function(k){var Se=this;return c(Se["$include?"](k))?W:Se.$add(k)}),q(le,"$each",function oe(){var k=oe.$$p||W,Se=this;return oe.$$p=null,k===W?Se.$enum_for("each"):(h(Se.hash,"each_key",[],k.$to_proc()),Se)}),q(le,"$empty?",function(){var k=this;return k.hash["$empty?"]()}),q(le,"$eql?",function(k){var Se=this;return Se.hash["$eql?"](h(k,"instance_eval",[],function F(){var de=F.$$s==null?this:F.$$s;return de.hash==null&&(de.hash=W),de.hash},{$$s:Se}))}),q(le,"$clear",function(){var k=this;return k.hash.$clear(),k}),q(le,"$include?",function(k){var Se=this;return Se.hash["$include?"](k)}),q(le,"$merge",function(k){var Se=this;return h(k,"each",[],function F(de){var D=F.$$s==null?this:F.$$s;return de==null&&(de=W),D.$add(de)},{$$s:Se}),Se}),q(le,"$replace",function(k){var Se=this;return Se.$clear(),Se.$merge(k),Se}),q(le,"$size",function(){var k=this;return k.hash.$size()}),q(le,"$subtract",function(k){var Se=this;return h(k,"each",[],function F(de){var D=F.$$s==null?this:F.$$s;return de==null&&(de=W),D.$delete(de)},{$$s:Se}),Se}),q(le,"$|",function(k){var Se=this;return c(k["$respond_to?"]("each"))||p.$raise(Z("ArgumentError"),"value must be enumerable"),Se.$dup().$merge(k)});function Ae(oe){c(ze=oe["$is_a?"](Z("Set")))||p.$raise(Z("ArgumentError"),"value must be a set")}return q(le,"$superset?",function(k){var Se=this;return Ae(k),c(G(Se.$size(),k.$size()))?!1:h(k,"all?",[],function F(de){var D=F.$$s==null?this:F.$$s;return de==null&&(de=W),D["$include?"](de)},{$$s:Se})}),q(le,"$proper_superset?",function(k){var Se=this;return Ae(k),c(pe(Se.$size(),k.$size()))?!1:h(k,"all?",[],function F(de){var D=F.$$s==null?this:F.$$s;return de==null&&(de=W),D["$include?"](de)},{$$s:Se})}),q(le,"$subset?",function(k){var Se=this;return Ae(k),c(G(k.$size(),Se.$size()))?!1:h(Se,"all?",[],function(de){return de==null&&(de=W),k["$include?"](de)})}),q(le,"$proper_subset?",function(k){var Se=this;return Ae(k),c(pe(k.$size(),Se.$size()))?!1:h(Se,"all?",[],function(de){return de==null&&(de=W),k["$include?"](de)})}),q(le,"$intersect?",function(k){var Se=this;return Ae(k),c(G(Se.$size(),k.$size()))?h(Se,"any?",[],function(de){return de==null&&(de=W),k["$include?"](de)}):h(k,"any?",[],function F(de){var D=F.$$s==null?this:F.$$s;return de==null&&(de=W),D["$include?"](de)},{$$s:Se})}),q(le,"$disjoint?",function(k){var Se=this;return Se["$intersect?"](k)["$!"]()}),q(le,"$to_a",function(){var k=this;return k.hash.$keys()}),ke(le,"+","|"),ke(le,"<","proper_subset?"),ke(le,"<<","add"),ke(le,"<=","subset?"),ke(le,">","proper_superset?"),ke(le,">=","superset?"),ke(le,"difference","-"),ke(le,"filter!","select!"),ke(le,"length","size"),ke(le,"map!","collect!"),ke(le,"member?","include?"),ke(le,"union","|")}("::",null,$e)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,c=e.$$$;return e.add_stubs("[],pwd"),function(d,p,h){var q=t(d,p,"Dir");return function(j,G){return r(j,"$chdir",function pe(ke){var $e=pe.$$p||s,W=s;return pe.$$p=null,function(){try{return W=e.current_dir,e.current_dir=ke,e.yieldX($e,[])}finally{e.current_dir=W}}()}),r(j,"$pwd",function(){return e.current_dir||"."}),r(j,"$home",function(){var ke=s;return n(ke=c("ENV")["$[]"]("HOME"))?ke:"."}),i(j,"getwd","pwd")}(e.get_singleton_class(q))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,c=e.rb_plus,d=e.def,p=e.Kernel,h=e.eqeq,q=e.rb_lt,j=e.rb_minus,G=e.range,pe=e.send,ke=e.slice,$e=e.alias,W=[],Z=e.nil,ve=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(ae,ye,le){var we=r(ae,ye,"File"),ce=[we].concat(le),ze=Z;return n(ce[0],"Separator",n(ce[0],"SEPARATOR","/")),n(ce[0],"ALT_SEPARATOR",Z),n(ce[0],"PATH_SEPARATOR",":"),n(ce[0],"FNM_SYSCASE",0),ze=/^[a-zA-Z]:(?:\\|\/)/,function(X,Ae){var oe=[X].concat(Ae),k=e.$r(oe);d(X,"$absolute_path",function(D,qe){var te=Z,B=Z,w=Z,$=Z,l=Z,o=Z,f=Z,_=Z,A=Z,T=Z;qe==null&&(qe=Z),te=k("SEPARATOR"),B=F(),w=[],D=t(D["$respond_to?"]("to_path"))?D.$to_path():D,D=i["$coerce_to!"](D,ve("String"),"to_str"),qe=t($=qe)?$:ve("Dir").$pwd(),l=D.substr(0,te.length)===te||ze.test(D),o=qe.substr(0,te.length)===te||ze.test(qe),t(l)?(f=D.$split(s(["[",B,"]"])),_=ze.test(D)?"":D.$sub(s(["^([",B,"]+).*$"]),"\\1"),A=!0):(f=c(qe.$split(s(["[",B,"]"])),D.$split(s(["[",B,"]"]))),_=ze.test(qe)?"":qe.$sub(s(["^([",B,"]+).*$"]),"\\1"),A=o);for(var J,Fe=0,it=f.length;Fe<it;Fe++)J=f[Fe],!(J===Z||J===""&&(w.length===0||A)||J==="."&&(w.length===0||A))&&(J===".."?w.pop():w.push(J));return!A&&f[0]!=="."&&w.$unshift("."),T=w.$join(te),t(A)&&(T=c(_,T)),T},-2),d(X,"$expand_path",function(D,qe){var te=this,B=Z,w=Z,$=Z,l=Z,o=Z;return qe==null&&(qe=Z),B=k("SEPARATOR"),w=F(),t(D[0]==="~"||qe&&qe[0]==="~")&&($=k("Dir").$home(),t($)||p.$raise(ve("ArgumentError"),"couldn't find HOME environment -- expanding `~'"),l=ze.test($)?"":$.$sub(s(["^([",w,"]+).*$"]),"\\1"),t($["$start_with?"](l))||p.$raise(ve("ArgumentError"),"non-absolute home"),$=c($,B),o=s(["^\\~(?:",B,"|$)"]),D=D.$sub(o,$),t(qe)&&(qe=qe.$sub(o,$))),te.$absolute_path(D,qe)},-2);function Se(de){return t(de["$respond_to?"]("to_path"))&&(de=de.$to_path()),de=i["$coerce_to!"](de,ve("String"),"to_str"),de}function F(){return k("ALT_SEPARATOR")===Z?e.escape_regexp(k("SEPARATOR")):e.escape_regexp(c(k("SEPARATOR"),k("ALT_SEPARATOR")))}return d(X,"$dirname",function(D,qe){var te=this,B=Z;if(qe==null&&(qe=1),h(qe,0))return D;t(q(qe,0))&&p.$raise(ve("ArgumentError"),"level can't be negative"),B=F(),D=Se(D);var w=D.match(new RegExp("^["+B+"]")),$;return D=D.replace(new RegExp("["+B+"]+$"),""),D=D.replace(new RegExp("[^"+B+"]+$"),""),D=D.replace(new RegExp("["+B+"]+$"),""),D===""?$=w?"/":".":$=D,qe==1?$:te.$dirname($,j(qe,1))},-2),d(X,"$basename",function(D,qe){var te=Z;return qe==null&&(qe=Z),te=F(),D=Se(D),D.length==0||(qe!==Z?qe=i["$coerce_to!"](qe,ve("String"),"to_str"):qe=null,D=D.replace(new RegExp("(.)["+te+"]*$"),"$1"),D=D.replace(new RegExp("^(?:.*["+te+"])?([^"+te+"]+)$"),"$1"),qe===".*"?D=D.replace(/\.[^\.]+$/,""):qe!==null&&(qe=e.escape_regexp(qe),D=D.replace(new RegExp(""+qe+"$"),""))),D},-2),d(X,"$extname",function(D){var qe=this,te=Z,B=Z;return D=Se(D),te=qe.$basename(D),t(te["$empty?"]())||(B=te["$[]"](G(1,-1,!1)).$rindex("."),t(B["$nil?"]())||h(c(B,1),j(te.$length(),1)))?"":te["$[]"](e.Range.$new(c(B,1),-1,!1))}),d(X,"$exist?",function(D){return e.modules[D]!=null}),d(X,"$directory?",function(D){var qe=Z;qe=[];for(var te in e.modules)qe.push(te);return D=D.$gsub(s(["(^.",k("SEPARATOR"),"+|",k("SEPARATOR"),"+$)"])),pe(qe,"find",[],function(w){return w==null&&(w=Z),w["$=~"](s(["^",D]))})}),d(X,"$join",function(D){var qe,te,B=Z;return qe=ke(arguments),te=qe,t(te["$empty?"]())?"":(B="",te=pe(te.$flatten().$each_with_index(),"map",[],function($,l){return $==null&&($=Z),l==null&&(l=Z),h(l,0)&&t($["$empty?"]())||h(te.$length(),c(l,1))&&t($["$empty?"]())?k("SEPARATOR"):$}),te=pe(te,"reject",[],"empty?".$to_proc()),pe(te,"each_with_index",[],function($,l){var o=Z;return $==null&&($=Z),l==null&&(l=Z),o=te["$[]"](c(l,1)),t(o["$nil?"]())?B=""+B+$:(t($["$end_with?"](k("SEPARATOR")))&&t(o["$start_with?"](k("SEPARATOR")))&&($=$.$sub(s([k("SEPARATOR"),"+$"]),"")),B=t($["$end_with?"](k("SEPARATOR")))||t(o["$start_with?"](k("SEPARATOR")))?""+B+$:""+B+$+k("SEPARATOR"))}),B)},-1),d(X,"$split",function(D){return D.$split(k("SEPARATOR"))}),$e(X,"realpath","expand_path"),$e(X,"exists?","exist?")}(e.get_singleton_class(we),ce)}("::",ve("IO"),W)};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(c,d){var p=t(c,d,"Signal");return n(p,"$trap",function(q){return r(arguments),s},-1)}("::",null),function(c,d){var p=t(c,d,"GC");return n(p,"$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,c=e.nil,d=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(p){var h=t(p,"Process"),q=c;if(h.__clocks__=[],r(h,"$__register_clock__",function(pe,ke){var $e=this;return $e.__clocks__==null&&($e.__clocks__=c),$e.$const_set(pe,$e.__clocks__.$size()),$e.__clocks__["$<<"](ke)}),h.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),q=!1,e.global.performance)q=function(){return performance.now()};else if(e.global.process&&process.hrtime){var j=process.hrtime();q=function(){var G=process.hrtime(j),pe=G[1]/1e3|0;return G[0]*1e3+pe/1e3}}return n(q)&&h.$__register_clock__("CLOCK_MONOTONIC",q),r(h,"$pid",i(0)),r(h,"$times",function(){var pe=c;return pe=d("Time").$now().$to_f(),d(d("Benchmark"),"Tms").$new(pe,pe,pe,pe,pe)}),r(h,"$clock_gettime",function(pe,ke){var $e=this,W=c;$e.__clocks__==null&&($e.__clocks__=c),ke==null&&(ke="float_second"),n(W=$e.__clocks__["$[]"](pe))||s.$raise(d(d("Errno"),"EINVAL"),"clock_gettime("+pe+") "+$e.__clocks__["$[]"](pe));var Z=W();switch(ke){case"float_second":return Z/1e3;case"float_millisecond":return Z/1;case"float_microsecond":return Z*1e3;case"second":return Z/1e3|0;case"millisecond":return Z/1|0;case"microsecond":return Z*1e3|0;case"nanosecond":return Z*1e6|0;default:s.$raise(d("ArgumentError"),"unexpected unit: "+ke)}},-2)}("::")};Opal.modules["corelib/random/formatter"]=function(e){var t=e.klass,r=e.module,n=e.def,i=e.range,s=e.send,c=e.rb_divide,d=e.Kernel,p=e.Opal,h=[],q=e.nil,j=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(G,pe,ke){var $e=t(G,pe,"Random"),W=[$e].concat(ke);return function(Z,ve){var ae=r(Z,"Formatter"),ye=[ae].concat(ve),le=e.$r(ye);return n(ae,"$hex",function(ce){var ze=this;ce==null&&(ce=q),ce=j("Random").$_verify_count(ce);for(var X=ze.$bytes(ce),Ae="",oe=0;oe<ce;oe++)Ae+=X.charCodeAt(oe).toString(16).padStart(2,"0");return Ae.$encode("US-ASCII")},-1),n(ae,"$random_bytes",function(ce){var ze=this;return ce==null&&(ce=q),ze.$bytes(ce)},-1),n(ae,"$base64",function(ce){var ze=this;return ce==null&&(ce=q),j("Base64").$strict_encode64(ze.$random_bytes(ce)).$encode("US-ASCII")},-1),n(ae,"$urlsafe_base64",function(ce,ze){var X=this;return ce==null&&(ce=q),ze==null&&(ze=!1),j("Base64").$urlsafe_encode64(X.$random_bytes(ce),ze).$encode("US-ASCII")},-1),n(ae,"$uuid",function(){var ce=this,ze=q;return ze=ce.$hex(16).$split(""),ze["$[]="](12,"4"),ze["$[]="](16,(parseInt(ze["$[]"](16),16)&3|8).toString(16)),ze=[ze["$[]"](i(0,8,!0)),ze["$[]"](i(8,12,!0)),ze["$[]"](i(12,16,!0)),ze["$[]"](i(16,20,!0)),ze["$[]"](i(20,32,!0))],ze=s(ze,"map",[],"join".$to_proc()),ze.$join("-")}),n(ae,"$random_float",function(){var ce=this,ze=q,X=q;return ze=ce.$bytes(4),X=0,s(4,"times",[],function(oe){return oe==null&&(oe=q),X=X["$<<"](8),X=X["$|"](ze["$[]"](oe).$ord())}),c(X.$abs(),2147483647)}),n(ae,"$random_number",function(ce){var ze=this;function X(){return ze.$random_float()}function Ae(k){return Math.floor(X()*k)}function oe(){var k=ce.begin,Se=ce.end;if(k===q||Se===q)return q;var F=Se-k;return F<0?q:F===0?k:(Se%1===0&&k%1===0&&!ce.excl&&F++,Ae(F)+k)}return ce==null?X():ce.$$is_range?oe():ce.$$is_number?(ce<=0&&d.$raise(j("ArgumentError"),"invalid argument - "+ce),ce%1===0?Ae(ce):X()*ce):(ce=p["$coerce_to!"](ce,j("Integer"),"to_int"),ce<=0&&d.$raise(j("ArgumentError"),"invalid argument - "+ce),Ae(ce))},-1),n(ae,"$alphanumeric",function(ce){var ze=this,X=q;return ce==null&&(ce=q),ce=le("Random").$_verify_count(ce),X=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(j("Array"),"new",[ce],function Ae(oe){var k=Ae.$$s==null?this:Ae.$$s;return X["$[]"](k.$random_number(X.$length()))},{$$s:ze}).$join()},-1)}($e,W),$e.$include(j(j("Random"),"Formatter")),$e.$extend(j(j("Random"),"Formatter"))}("::",null,h)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,c=i;return e.add_stubs("generator="),c=function(){var d=624,p=397,h=2567483615,q=2147483648,j=2147483647,G=function(ye,le){return ye&q|le&j},pe=function(ye,le){return G(ye,le)>>>1^(le&1?h:0)};function ke(ye){var le={left:0,next:d,state:new Array(d)};return $e(le,ye),le}function $e(ye,le){var we;for(ye.state[0]=le>>>0,we=1;we<d;we++)ye.state[we]=1812433253*(ye.state[we-1]^ye.state[we-1]>>30>>>0)+we,ye.state[we]&=4294967295;ye.left=1,ye.next=d}function W(ye){var le=0,we=ye.state,ce;for(ye.left=d,ye.next=0,ce=d-p+1;--ce;le++)we[le]=we[le+p]^pe(we[le+0],we[le+1]);for(ce=p;--ce;le++)we[le]=we[le+(p-d)]^pe(we[le+0],we[le+1]);we[le]=we[le+(p-d)]^pe(we[le+0],we[0])}function Z(ye){var le;return--ye.left<=0&&W(ye),le=ye.state[ye.next++],le^=le>>>11,le^=le<<7&2636928640,le^=le<<15&4022730752,le^=le>>>18,le>>>0}function ve(ye,le){return ye>>>=5,le>>>=6,(ye*67108864+le)*(1/9007199254740992)}function ae(ye){var le=Z(ye),we=Z(ye);return ve(le,we)}return{genrand_real:ae,init:ke}}(),function(d,p){var h=t(d,p,"Random"),q,j=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(h,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*j)},reseed:function(G){return c.init(G)},rand:function(G){return c.genrand_real(G)}}),q=[s(h,"MERSENNE_TWISTER_GENERATOR")],n(h,"generator=",q),q[q.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,c=e.def,d=e.eqeqeq,p=e.send,h=e.top,q=e.nil,j=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"),h.$require("corelib/random/formatter"),function(G,pe){var ke=r(G,pe,"Random");return ke.$attr_reader("seed","state"),i(ke,"$_verify_count",function(W){return t(W)||(W=16),typeof W!="number"&&(W=W.$to_int()),W<0&&n.$raise(j("ArgumentError"),"negative string size (or size too big)"),W=Math.floor(W),W}),c(ke,"$initialize",function(W){var Z=this;return W==null&&(W=j("Random").$new_seed()),W=s["$coerce_to!"](W,j("Integer"),"to_int"),Z.state=W,Z.$reseed(W)},-1),c(ke,"$reseed",function(W){var Z=this;return Z.seed=W,Z.$rng=e.$$rand.reseed(W)}),i(ke,"$new_seed",function(){return e.$$rand.new_seed()}),i(ke,"$rand",function(W){var Z=this;return j(Z,"DEFAULT").$rand(W)},-1),i(ke,"$srand",function(W){var Z=this,ve=q;return W==null&&(W=j("Random").$new_seed()),W=s["$coerce_to!"](W,j("Integer"),"to_int"),ve=j(Z,"DEFAULT").$seed(),j(Z,"DEFAULT").$reseed(W),ve},-1),i(ke,"$urandom",function(W){return j("SecureRandom").$bytes(W)}),c(ke,"$==",function(W){var Z=this,ve=q;return d(j("Random"),W)?t(ve=Z.$seed()["$=="](W.$seed()))?Z.$state()["$=="](W.$state()):ve:!1}),c(ke,"$bytes",function(W){var Z=this;return W=j("Random").$_verify_count(W),p(j("Array"),"new",[W],function ve(){var ae=ve.$$s==null?this:ve.$$s;return ae.$rand(255).$chr()},{$$s:Z}).$join().$encode("ASCII-8BIT")}),i(ke,"$bytes",function(W){var Z=this;return j(Z,"DEFAULT").$bytes(W)}),c(ke,"$rand",function(W){var Z=this;return Z.$random_number(W)},-1),c(ke,"$random_float",function(){var W=this;return W.state++,e.$$rand.rand(W.$rng)}),i(ke,"$random_float",function(){var W=this;return j(W,"DEFAULT").$random_float()}),i(ke,"$generator=",function(W){var Z=this;return e.$$rand=W,t(Z["$const_defined?"]("DEFAULT"))?j(Z,"DEFAULT").$reseed():Z.$const_set("DEFAULT",Z.$new(Z.$new_seed()))})}("::",null),h.$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,c=e.def,d=e.return_val,p=e.alias,h=e.defs,q=e.top,j=[],G=e.nil,pe=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 ke={};function $e(Z){switch(e.config.unsupported_features_severity){case"error":t.$raise(pe("NotImplementedError"),Z);break;case"warning":W(Z);break}}function W(Z){ke[Z]||(ke[Z]=!0,q.$warn(Z))}return function(Z,ve){var ae=r(Z,ve,"String"),ye="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 le(we){var ce=le.$$s==null?this:le.$$s;return we==null&&(we=G),n(ce,"define_method",[we],function(X){return i(arguments),t.$raise(pe("NotImplementedError"),ye["$%"](we))},-1)},{$$s:ae})}("::",null),function(Z){var ve=s(Z,"Kernel"),ae="Object tainting is not supported by Opal";return c(ve,"$taint",function(){var le=this;return $e(ae),le}),c(ve,"$untaint",function(){var le=this;return $e(ae),le}),c(ve,"$tainted?",function(){return $e(ae),!1})}("::"),function(Z,ve){var ae=r(Z,ve,"Module");return c(ae,"$public",function(le){var we,ce,ze=this;return we=i(arguments),ce=we,ce.length===0?(ze.$$module_function=!1,G):ce.length===1?ce[0]:ce},-1),c(ae,"$private_class_method",function(le){var we,ce;return we=i(arguments),ce=we,ce.length===1?ce[0]:ce},-1),c(ae,"$private_method_defined?",d(!1)),c(ae,"$private_constant",function(le){return i(arguments),G},-1),p(ae,"nesting","public"),p(ae,"private","public"),p(ae,"protected","public"),p(ae,"protected_method_defined?","private_method_defined?"),p(ae,"public_class_method","private_class_method"),p(ae,"public_instance_method","instance_method"),p(ae,"public_instance_methods","instance_methods"),p(ae,"public_method_defined?","method_defined?")}("::",null),function(Z){var ve=s(Z,"Kernel");return c(ve,"$private_methods",function(ye){return i(arguments),[]},-1),p(ve,"protected_methods","private_methods"),p(ve,"private_instance_methods","private_methods"),p(ve,"protected_instance_methods","private_methods")}("::"),function(Z,ve){var ae=s(Z,"Kernel"),ye=[ae].concat(ve),le=e.$r(ye);return c(ae,"$eval",function(ce){return i(arguments),t.$raise(pe("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+le("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",j),h(q,"$public",function(ve){var ae,ye;return ae=i(arguments),ye=ae,ye.length===1?ye[0]:ye},-1),h(q,"$private",function(ve){var ae,ye;return ae=i(arguments),ye=ae,ye.length===1?ye[0]:ye},-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 Y3(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var ne=a.klass,ee=a.defs,H=[];return a.nil,a.add_stubs("new"),function(_e,v,V){var je=ne(_e,v,"File"),Y=[je].concat(V),Ie=a.$r(Y);return ee(je,"$read",function(Je){var Te="",Ye=-1;try{var Me=new XMLHttpRequest;Me.open("GET",Je,!1),Me.addEventListener("load",function(){Ye=this.status,(Ye===0||Ye===200)&&(Te=this.responseText)}),Me.overrideMimeType("text/plain"),Me.send()}catch(Pe){throw Ie("IOError").$new("Error reading file or directory: "+Je+"; reason: "+Pe.message)}if(Ye===404||Ye===0&&!Te)throw Ie("IOError").$new("No such file or directory: "+Je);return Te})}(H[0],null,H)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var ne=a.const_set,ee=a.top,H=[];a.nil,a.add_stubs("require");var _e,v,V,je;return je=je||"xmlhttprequest",_e=_e||"browser",v=v||"",V=V||"",ne(H[0],"JAVASCRIPT_IO_MODULE",je),ne(H[0],"JAVASCRIPT_PLATFORM",_e),ne(H[0],"JAVASCRIPT_ENGINE",v),ne(H[0],"JAVASCRIPT_FRAMEWORK",V),ee.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var ne=a.module,ee=a.klass,H=a.hash2,_e=a.truthy,v=a.def,V=[],je=a.nil,Y=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(Ie,E){var Je=ne(Ie,"Asciidoctor"),Te=[Je].concat(E);return function(Ye,Me,Pe){var ft=ee(Ye,Me,"AbstractNode"),Ve=[ft].concat(Pe),st=a.$r(Ve),We=ft.$$prototype;return We.document=je,v(ft,"$read_contents",function($t,z){var et=this,S=je,tt=je,lt=je;if(z==null&&(z=H([],{})),S=et.document,_e(st("Helpers")["$uriish?"]($t))||_e(tt=z["$[]"]("start"))&&_e(st("Helpers")["$uriish?"](tt))&&_e($t=S.$path_resolver().$web_path($t,tt)))if(_e(S.$path_resolver()["$descends_from?"]($t,S.$base_dir()))||_e($t["$start_with?"]("chrome://"))||_e(S["$attr?"]("allow-uri-read")))try{return _e(z["$[]"]("normalize"))?st("Helpers").$prepare_source_string(Y("File").$read($t)).$join(st("LF")):Y("File").$read($t)}catch(K){if(a.rescue(K,[st("StandardError")]))try{return _e(z.$fetch("warn_on_failure",!0))&&et.$logger().$warn("could not retrieve contents of "+(_e(lt=z["$[]"]("label"))?lt:"asset")+" at URI: "+$t),je}finally{a.pop_exception()}else throw K}else return _e(z.$fetch("warn_on_failure",!0))&&et.$logger().$warn("cannot retrieve contents of "+(_e(lt=z["$[]"]("label"))?lt:"asset")+" at URI: "+$t+" (allow-uri-read attribute not enabled)"),je;else return $t=et.$normalize_system_path($t,z["$[]"]("start"),je,H(["target_name"],{target_name:_e(lt=z["$[]"]("label"))?lt:"asset"})),et.$read_asset($t,H(["normalize","warn_on_failure","label"],{normalize:z["$[]"]("normalize"),warn_on_failure:z.$fetch("warn_on_failure",!0),label:z["$[]"]("label")}))},-2),v(ft,"$generate_data_uri_from_uri",function($t,z){var et=this,S="",tt="",lt=-1;try{var K=new XMLHttpRequest;K.open("GET",$t,!1),K.overrideMimeType("text/plain; charset=x-user-defined"),K.addEventListener("load",function(){if(lt=this.status,lt===0||lt===200){for(var I="",Ue=this.responseText,be=0,Ne=Ue.length;be<Ne;++be){var Ce=Ue.charCodeAt(be),se=Ce&255;I+=String.fromCharCode(se)}tt=btoa(I),S=this.getResponseHeader("content-type")}}),K.send(null),S||($t.endsWith(".jpeg")||$t.endsWith(".jpg")||$t.endsWith(".jpe")?S="image/jpg":$t.endsWith(".png")?S="image/png":$t.endsWith(".svg")?S="image/svg+xml":$t.endsWith(".bmp")?S="image/bmp":($t.endsWith(".tif")||$t.endsWith(".tiff"))&&(S="image/tiff"))}catch{lt=0}return lt===404||lt===0&&(!tt||!S)?(et.$logger().$warn("could not retrieve image data from URI: "+$t),$t):"data:"+S+";base64,"+tt},-2)}(Te[0],null,Te)}(V[0],V)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var ne=a.module,ee=a.slice,H=a.send,_e=a.to_a,v=a.defs,V=[],je=a.nil;return a.add_stubs("new,path"),function(Y,Ie){var E=ne(Y,"OpenURI"),Je=[E].concat(Ie),Te=a.$r(Je);return v(Te("OpenURI"),"$open_uri",function Ye(Me,Pe){var ft,Ve,st=Ye.$$p||je,We=this,Ze=je;return Ye.$$p=null,ft=ee(arguments,1),Ve=ft,Ze=H(Te("File"),"new",[We.$path()].concat(_e(Ve))),st!==je?a.yield1(st,Ze):Ze},-2)}(V[0],V)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var ne=a.module,ee=a.klass,H=a.truthy,_e=a.def,v=[],V=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(je,Y){var Ie=ne(je,"Asciidoctor"),E=[Ie].concat(Y);return function(Je,Te){var Ye=ee(Je,Te,"PathResolver");return _e(Ye,"$root?",function(Pe){var ft=this,Ve=V;return H(Ve=ft["$absolute_path?"](Pe))?Ve:Pe["$start_with?"]("file://","http://","https://","chrome://")})}(E[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var ne=a.module,ee=a.klass,H=a.truthy,_e=a.eqeq,v=a.not,V=a.def,je=[],Y=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(Ie,E){var Je=ne(Ie,"Asciidoctor"),Te=[Je].concat(E),Ye=a.$r(Te);return function(Me,Pe,ft){var Ve=ee(Me,Pe,"PreprocessorReader"),st=[Ve].concat(ft),We=a.$r(st),Ze=Ve.$$prototype;return Ze.path_resolver=Ze.document=Ze.include_stack=Ze.dir=Y,V(Ve,"$resolve_include_path",function(z,et,S){var tt,lt=this,K=Y,I=Y,Ue=Y,be=Y,Ne=Y,Ce=Y,se=Y,ge=Y;if(K=(lt.path_resolver=H(I=lt.path_resolver)?I:We("PathResolver").$new("\\")).$posixify(z),tt=["file",lt.document.$base_dir()],tt[0],Ue=tt[1],H(K["$start_with?"]("file://")))be=Ne=K;else if(H(We("Helpers")["$uriish?"](K))){if(!(H(lt.path_resolver["$descends_from?"](K,Ue))||H(lt.document.$attributes()["$key?"]("allow-uri-read"))))return lt.$replace_next_line("link:"+z+"["+et+"]");be=Ne=K}else if(H(lt.path_resolver["$absolute_path?"](K)))be=Ne="file://"+(H(K["$start_with?"]("/"))?"":"/")+K;else if(_e(Ce=H(se=lt.include_stack["$empty?"]())?Ue:lt.dir,"."))be=Ne=K;else if(H(Ce["$start_with?"]("file://"))||v(We("Helpers")["$uriish?"](Ce)))be=""+Ce+"/"+K,H(se)?Ne=K:_e(Ue,".")||v(ge=lt.path_resolver["$descends_from?"](be,Ue))?Ne=be:Ne=be.$slice(ge,be.$length());else if(H(se))be=""+Ce+"/"+(Ne=K);else if(H(ge=lt.path_resolver["$descends_from?"](Ce,Ue))||H(lt.document.$attributes()["$key?"]("allow-uri-read")))be=""+Ce+"/"+K,Ne=H(ge)?be.$slice(ge,be.$length()):K;else return lt.$replace_next_line("link:"+z+"["+et+"]");return[be,"file",Ne]})}(Te[0],Ye("Reader"),Te)}(je[0],je)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var ne=a.eqeq,ee=a.top,H=[],_e=a.$r(H),v=a.nil;return a.add_stubs("==,require"),ne(_e("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(ee.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),ee.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),ee.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),ee.$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 ne=a.module,ee=a.slice,H=a.send,_e=a.to_a,v=a.def,V=a.return_val,je=[],Y=a.nil;return a.add_stubs("new"),function(Ie,E){var Je=ne(Ie,"Kernel"),Te=[Je].concat(E),Ye=a.$r(Te);return v(Je,"$open",function Me(Pe,ft){var Ve,st,We=Me.$$p||Y,Ze=Y;return Me.$$p=null,Ve=ee(arguments,1),st=Ve,Ze=H(Ye("File"),"new",[Pe].concat(_e(st))),We!==Y?a.yield1(We,Ze):Ze},-2),v(Je,"$__dir__",V(""))}(je[0],je)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var ne=a.klass,ee=a.def,H=a.truthy,_e=a.gvars,v=a.return_val,V=a.defs,je=[],Y=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(Ie,E,Je){var Te=ne(Ie,E,"File"),Ye=[Te].concat(Je),Me=a.$r(Ye),Pe=Te.$$prototype;return Pe.eof=Pe.path=Y,Te.$attr_reader("eof"),Te.$attr_reader("lineno"),Te.$attr_reader("path"),ee(Te,"$initialize",function(Ve,st){var We=this,Ze=Y;return st==null&&(st="r"),We.path=Ve,We.contents=Y,We.eof=!1,We.lineno=0,st=st.$delete("b"),Ze=/:(.*)/,st=st.$gsub(Ze,""),We.flags=st},-2),ee(Te,"$read",function(){var Ve=this,st=Y;return H(Ve.eof)?"":(st=Me("File").$read(Ve.path),Ve.eof=!0,Ve.lineno=st.$size(),st)}),ee(Te,"$each_line",function ft(Ve){var st=ft.$$p||Y,We=this,Ze=Y;if(_e["/"]==null&&(_e["/"]=Y),ft.$$p=null,Ve==null&&(Ve=_e["/"]),H(We.eof))return st!==Y?We:[].$to_enum();if(st!==Y){Ze=Me("File").$read(We.path),We.eof=!1,We.lineno=0;for(var $t=Ze.$chomp(),z=Ze.length!=$t.length,et=$t.split(Ve),S=0,tt=et.length;S<tt;S++)We.lineno+=1,S<tt-1||z?a.yield1(st,et[S]+Ve):a.yield1(st,et[S]);return We.eof=!0,We}else return We.$read().$each_line()},-1),ee(Te,"$readlines",function(){var Ve=this;return Me("File").$readlines(Ve.path)}),function(ft,Ve){var st=[ft].concat(Ve),We=a.$r(st);return ee(ft,"$readlines",function($t,z){var et=Y;return _e["/"]==null&&(_e["/"]=Y),z==null&&(z=_e["/"]),et=We("File").$read($t),et.$split(z)},-2),ee(ft,"$file?",v(!0)),ee(ft,"$readable?",v(!0)),ee(ft,"$read",v(""))}(a.get_singleton_class(Te),Ye)}(je[0],null,je),function(Ie,E,Je){var Te=ne(Ie,E,"IO"),Ye=[Te].concat(Je),Me=a.$r(Ye);return V(Te,"$read",function(ft){return Me("File").$read(ft)})}(je[0],null,je)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var ne=a.klass,ee=a.send,H=a.def,_e=[],v=a.nil;return a.add_stubs("[]="),function(V,je){var Y=ne(V,je,"MatchData"),Ie=Y.$$prototype;return Ie.matches=v,H(Y,"$[]=",function(Je,Te){var Ye,Me=this;return Ye=[Je,Te],ee(Me.matches,"[]=",Ye),Ye[Ye.length-1]})}(_e[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var ne=a.klass,ee=a.truthy,H=a.rb_lt,_e=a.def,v=a.alias,V=a.rb_ge,je=a.eqeq,Y=a.rb_minus,Ie=[],E=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(Je,Te){var Ye=ne(Je,Te,"String");return ee(Ye["$method_defined?"]("limit_bytesize"))||_e(Ye,"$limit_bytesize",function(Pe){var ft=this,Ve=E;return ee(H(Pe,ft.$bytes().$length()))?(Ve=ft.$byteslice(0,Pe),Ve.$to_s()):ft.$to_s()}),ee(Ye["$method_defined?"]("limit"))||v(Ye,"limit","limit_bytesize"),v(Ye,"_original_byteslice","byteslice"),_e(Ye,"$byteslice",function(Pe,ft){var Ve=this;return ft==null&&(ft=1),je(Pe,3)&&ee(V(ft,Pe))&&ee(Ve.charCodeAt()===65279)?Ve.substr(1).$byteslice(0,Y(ft,3)):Ve.$_original_byteslice(Pe,ft)},-2),v(Ye,"_original_unpack","unpack"),_e(Ye,"$unpack",function(Pe){var ft=this;if(je(Pe,"C3")){if(ee(ft.charCodeAt()===65279))return[239,187,191];for(var Ve=[],st=0;st<3;st++)st<ft.length?Ve.push(ft.charCodeAt(st)):Ve.push(E);return Ve}else return ft.$_original_unpack(Pe)})}(Ie[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var ne=a.module,ee=a.defs,H=a.return_self,_e=a.def,v=[];return a.nil,a.add_stubs("extend"),function(V,je){var Y=ne(V,"URI"),Ie=[Y].concat(je),E=a.$r(Ie);return ee(Y,"$parse",function(Te){return Te.$extend(E("URI"))}),_e(Y,"$path",H)}(v[0],v)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var ne=a.module,ee=a.defs,H=a.ensure_kwargs,_e=a.truthy,v=[],V=a.nil;return a.add_stubs("delete"),function(je){var Y=ne(je,"Base64"),Ie,E;return Ie=a.global.btoa||function(Je){var Te;return Je instanceof Buffer?Te=Je:Te=Buffer.from(Je.toString(),"binary"),Te.toString("base64")},E=a.global.atob||function(Je){return Buffer.from(Je,"base64").toString("binary")},ee(Y,"$decode64",function(Te){return E(Te.replace(/\r?\n/g,""))}),ee(Y,"$encode64",function(Te){return Ie(Te).replace(/(.{60})/g,`$1
|
|
405
|
+
`).replace(/([^\n])$/g,`$1
|
|
406
|
+
`)}),ee(Y,"$strict_decode64",function(Te){return E(Te)}),ee(Y,"$strict_encode64",function(Te){return Ie(Te)}),ee(Y,"$urlsafe_decode64",function(Te){return E(Te.replace(/\-/g,"+").replace(/_/g,"/"))}),ee(Y,"$urlsafe_encode64",function(Te,Ye){var Me,Pe=V;return Ye=H(Ye),Me=Ye.$$smap.padding,Me==null&&(Me=!0),Pe=Ie(Te).replace(/\+/g,"-").replace(/\//g,"_"),_e(Me)||(Pe=Pe.$delete("=")),Pe},-2)}(v[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var ne=a.klass,ee=a.truthy,H=a.rb_gt,_e=a.def,v=[],V=a.$r(v);return a.nil,a.add_stubs("coerce_to!,>"),function(je,Y,Ie){var E=ne(je,Y,"Number"),Je=[E].concat(Ie),Te=a.$r(Je);return _e(E,"$round",function(Me){var Pe=this;return Me=Te("Opal")["$coerce_to!"](Me,Te("Integer"),"to_int"),ee(H(Me,0))?Number(Pe.toFixed(Me)):Math.round(Pe)},-1)}(v[0],V("Numeric"),v)},Opal.modules["asciidoctor/js/opal_ext"]=function(a){var ne=a.top;a.nil,a.add_stubs("require"),ne.$require("asciidoctor/js/opal_ext/kernel"),ne.$require("asciidoctor/js/opal_ext/file"),ne.$require("asciidoctor/js/opal_ext/match_data"),ne.$require("asciidoctor/js/opal_ext/string"),ne.$require("asciidoctor/js/opal_ext/uri"),ne.$require("asciidoctor/js/opal_ext/base64"),ne.$require("asciidoctor/js/opal_ext/number"),a.config.unsupported_features_severity="ignore",ne.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(a){var ne=a.module,ee=a.const_set,H=a.send,_e=a.gvars,v=a.truthy,V=a.defs,je=a.rb_plus,Y=[],Ie=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(E,Je){var Te=ne(E,"Asciidoctor"),Ye=[Te].concat(Je),Me=a.$r(Ye);return ee(Ye[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),V(Te,"$unpack_hex_range",function(ft){return H(ft,"gsub",[Me("HEX_RANGE_RX")],function(){var st,We=Ie;return"\\u"+((st=_e["~"])===Ie?Ie:st["$[]"](1))+(v(We=(st=_e["~"])===Ie?Ie:st["$[]"](2))?"-\\u"+((st=_e["~"])===Ie?Ie:st["$[]"](2)):We)})}),ee(Ye[0],"P_L",je("A-Za-z",Te.$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"))),ee(Ye[0],"P_Nl",Te.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),ee(Ye[0],"P_Nd",je("0-9",Te.$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"))),ee(Ye[0],"P_Pc",Te.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),ee(Ye[0],"CC_ALPHA",""+Me("P_L")+Me("P_Nl")),ee(Ye[0],"CG_ALPHA","["+Me("CC_ALPHA")+"]"),ee(Ye[0],"CC_ALNUM",""+Me("CC_ALPHA")+Me("P_Nd")),ee(Ye[0],"CG_ALNUM","["+Me("CC_ALNUM")+"]"),ee(Ye[0],"CC_WORD",""+Me("CC_ALNUM")+Me("P_Pc")),ee(Ye[0],"CG_WORD","["+Me("CC_WORD")+"]"),ee(Ye[0],"CG_BLANK","[ \\t]"),ee(Ye[0],"CC_EOL","(?=\\n|$)"),ee(Ye[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),ee(Ye[0],"CC_ALL","[\\s\\S]"),ee(Ye[0],"CC_ANY","[^\\n]")}(Y[0],Y)},Opal.modules.strscan=function(a){var ne=a.klass,ee=a.def,H=a.truthy,_e=a.eqeqeq,v=a.Opal,V=a.return_ivar,je=a.send,Y=a.alias,Ie=[],E=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(Je,Te,Ye){var Me=ne(Je,Te,"StringScanner"),Pe=[Me].concat(Ye),ft=a.$r(Pe),Ve=Me.$$prototype;return Ve.pos=Ve.string=Ve.working=Ve.matched=Ve.prev_pos=Ve.match=E,Me.$attr_reader("pos","matched"),ee(Me,"$initialize",function(We){var Ze=this;return Ze.string=We,Ze.pos=0,Ze.matched=E,Ze.working=We,Ze.match=[]}),Me.$attr_reader("string"),ee(Me,"$beginning_of_line?",function(){var We=this;return We.pos===0||We.string.charAt(We.pos-1)===`
|
|
407
|
+
`}),ee(Me,"$scan",function(We){var Ze=this;We=Ze.$anchor(We);var $t=We.exec(Ze.working);return $t==null?Ze.matched=E:(Ze.prev_pos=Ze.pos,Ze.pos+=$t[0].length,Ze.working=Ze.working.substring($t[0].length),Ze.matched=$t[0],Ze.match=$t,$t[0])}),ee(Me,"$scan_until",function(We){var Ze=this;We=Ze.$anchor(We);for(var $t=Ze.working,z=0;$t.length!=z;++z){var et=We.exec($t.substr(z));if(et!==null){var S=z+et[0].length,tt=$t.substr(0,S);return Ze.matched=et[0],Ze.match=et,Ze.prev_pos=Ze.pos+z,Ze.pos+=S,Ze.working=$t.substr(S),tt}}return Ze.matched=E}),ee(Me,"$[]",function(We){var Ze=this,$t=E;if(H(Ze.match["$empty?"]()))return E;_e(ft("Symbol"),$t=We)?We=We.$to_s():_e(ft("String"),$t)||(We=v["$coerce_to!"](We,ft("Integer"),"to_int"));var z=Ze.match;return We<0&&(We+=z.length),We<0||We>=z.length||z[We]==null?E:z[We]}),ee(Me,"$check",function(We){var Ze=this;We=Ze.$anchor(We);var $t=We.exec(Ze.working);return $t==null?Ze.matched=E:Ze.matched=$t[0]}),ee(Me,"$check_until",function(We){var Ze=this,$t=Ze.prev_pos,z=Ze.pos,et=Ze.working,S=Ze.$scan_until(We);return Ze.prev_pos=$t,Ze.pos=z,Ze.working=et,S}),ee(Me,"$peek",function(We){var Ze=this;return Ze.working.substring(0,We)}),ee(Me,"$eos?",function(){var We=this;return We.working.length===0}),ee(Me,"$exist?",function(We){var Ze=this,$t=We.exec(Ze.working);return $t==null?E:$t.index==0?0:$t.index+1}),ee(Me,"$skip",function(We){var Ze=this;We=Ze.$anchor(We);var $t=We.exec(Ze.working);if($t==null)return Ze.match=[],Ze.matched=E;var z=$t[0],et=z.length;return Ze.matched=z,Ze.match=$t,Ze.prev_pos=Ze.pos,Ze.pos+=et,Ze.working=Ze.working.substring(et),et}),ee(Me,"$skip_until",function(We){var Ze=this,$t=Ze.$scan_until(We);return $t===E?E:(Ze.matched=$t.substr(-1),$t.length)}),ee(Me,"$get_byte",function(){var We=this,Ze=E;return We.pos<We.string.length?(We.prev_pos=We.pos,We.pos+=1,Ze=We.matched=We.working.substring(0,1),We.working=We.working.substring(1)):We.matched=E,Ze}),ee(Me,"$match?",function(We){var Ze=this;We=Ze.$anchor(We);var $t=We.exec(Ze.working);return $t==null?E:(Ze.prev_pos=Ze.pos,$t[0].length)}),ee(Me,"$pos=",function(We){var Ze=this;return We<0&&(We+=Ze.string.$length()),Ze.pos=We,Ze.working=Ze.string.slice(We)}),ee(Me,"$matched_size",function(){var We=this;return We.matched===E?E:We.matched.length}),ee(Me,"$post_match",function(){var We=this;return We.matched===E?E:We.string.substr(We.pos)}),ee(Me,"$pre_match",function(){var We=this;return We.matched===E?E:We.string.substr(0,We.prev_pos)}),ee(Me,"$reset",function(){var We=this;return We.working=We.string,We.matched=E,We.pos=0}),ee(Me,"$rest",V("working")),ee(Me,"$rest?",function(){var We=this;return We.working.length!==0}),ee(Me,"$rest_size",function(){var We=this;return We.$rest().$size()}),ee(Me,"$terminate",function(){var We,Ze=this;return Ze.match=E,We=[Ze.string.$length()],je(Ze,"pos=",We),We[We.length-1]}),ee(Me,"$unscan",function(){var We=this;return We.pos=We.prev_pos,We.prev_pos=E,We.match=E,We}),Y(Me,"bol?","beginning_of_line?"),Y(Me,"getch","get_byte"),Me.$private(),ee(Me,"$anchor",function(We){var Ze=We.toString().match(/\/([^\/]+)$/);return Ze=Ze?Ze[1]:void 0,new RegExp("^(?:"+We.source+")",Ze)})}(Ie[0],null,Ie)},Opal.modules["asciidoctor/js"]=function(a){var ne=a.top;return a.nil,a.add_stubs("require"),ne.$require("asciidoctor/js/opal_ext"),ne.$require("asciidoctor/js/rx"),ne.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var ne=a.klass,ee=a.truthy,H=a.alias,_e=[],v=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(V,je){var Y=ne(V,je,"NilClass");return ee(Y["$method_defined?"]("nil_or_empty?"))?v:H(Y,"nil_or_empty?","nil?")}(_e[0],null),function(V,je){var Y=ne(V,je,"String");return ee(Y["$method_defined?"]("nil_or_empty?"))?v:H(Y,"nil_or_empty?","empty?")}(_e[0],null),function(V,je){var Y=ne(V,je,"Array");return ee(Y["$method_defined?"]("nil_or_empty?"))?v:H(Y,"nil_or_empty?","empty?")}(_e[0],null),function(V,je){var Y=ne(V,je,"Hash");return ee(Y["$method_defined?"]("nil_or_empty?"))?v:H(Y,"nil_or_empty?","empty?")}(_e[0],null),function(V,je){var Y=ne(V,je,"Numeric");return ee(Y["$method_defined?"]("nil_or_empty?"))?v:H(Y,"nil_or_empty?","nil?")}(_e[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var ne=a.eqeq,ee=a.send,H=a.slice,_e=a.truthy,v=a.rb_lt,V=a.rb_gt,je=a.send2,Y=a.find_super,Ie=a.def,E=a.top,Je=[],Te=a.$r(Je),Ye=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),ne(Te("Hash").$instance_method("merge").$arity(),1)?Te("Hash").$send("prepend",ee(Te("Module"),"new",[],function Me(){var Pe=Me.$$s==null?this:Me.$$s;return Ie(Pe,"$merge",function ft(Ve){var st,We;ft.$$p;var Ze=this,$t=Ye;return ft.$$p=null,st=H(arguments),We=st,_e(v($t=We.$length(),1))?Ze.$dup():_e(V($t,1))?ee(We,"inject",[Ze],function(et,S){return et==null&&(et=Ye),S==null&&(S=Ye),et.$merge(S)}):je(Ze,Y(Ze,"merge",ft,!1,!0),"merge",[We["$[]"](0)],null)},-1)},{$$s:E})):Ye},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var ne=a.truthy,ee=a.klass,H=a.def,_e=[],v=a.$r(_e),V=a.nil;return a.add_stubs("method_defined?"),ne(v("MatchData")["$method_defined?"]("names"))?V:function(je,Y){var Ie=ee(je,Y,"MatchData");return H(Ie,"$names",function(){return[]})}(_e[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var ne=a.top;return a.nil,ne.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),ne.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),ne.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var ne=a.module,ee=a.truthy,H=a.eqeq,_e=a.gvars,v=a.def,V=a.send,je=a.neqeq,Y=a.const_set,Ie=a.hash2,E=a.to_ary,Je=a.rb_times,Te=a.eqeqeq,Ye=a.rb_plus,Me=a.Class,Pe=a.Object,ft=[],Ve=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(We,Ze){var $t=ne(We,"Asciidoctor"),z=[$t].concat(Ze);return function(et,S){var tt=ne(et,"Helpers"),lt=[tt].concat(S),K=a.$r(lt);return tt.$module_function(),v(tt,"$require_library",function(Ue,be,Ne){var Ce=this,se=Ve;_e["!"]==null&&(_e["!"]=Ve),be==null&&(be=!0),Ne==null&&(Ne="abort");try{return Ce.$require(Ue)}catch(ge){if(a.rescue(ge,[st("LoadError")]))try{if(ee(Ce["$include?"](K("Logging")))||Ce.$include(K("Logging")),ee(be))switch(H(be,!0)&&(be=Ue),Ne){case"abort":se=H(_e["!"].$path(),be)?"":" (reason: "+(ee(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",Ce.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+be+"' is not available"+se+". Processing aborted.");break;case"warn":se=H(_e["!"].$path(),be)?"":" (reason: "+(ee(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",Ce.$logger().$warn("optional gem '"+be+"' is not available"+se+". Functionality disabled.");break;default:}else switch(Ne){case"abort":Ce.$raise(st("LoadError"),"asciidoctor: FAILED: "+_e["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":Ce.$logger().$warn(""+_e["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return Ve}finally{a.pop_exception()}else throw ge}},-2),v(tt,"$prepare_source_array",function(Ue,be){var Ne=Ve,Ce=Ve,se=Ve;return be==null&&(be=!0),ee(Ue["$empty?"]())?[]:H(Ne=(Ce=(se=Ue["$[]"](0)).$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?(Ue["$[]="](0,se.$byteslice(2,se.$bytesize())),ee(be)?V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):H(Ne,K("BOM_BYTES_UTF_16BE"))?(Ue["$[]="](0,se.$byteslice(2,se.$bytesize())),ee(be)?V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(H(Ce,K("BOM_BYTES_UTF_8"))&&Ue["$[]="](0,se.$byteslice(3,se.$bytesize())),H(se.$encoding(),K("UTF_8"))?ee(be)?V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$rstrip()}):V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$chomp()}):ee(be)?V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$encode(K("UTF_8")).$rstrip()}):V(Ue,"map",[],function(Q){return Q==null&&(Q=Ve),Q.$encode(K("UTF_8")).$chomp()}))},-2),v(tt,"$prepare_source_string",function(Ue,be){var Ne=Ve,Ce=Ve;return be==null&&(be=!0),ee(Ue["$nil_or_empty?"]())?[]:(H(Ne=(Ce=Ue.$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?Ue=Ue.$byteslice(2,Ue.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")):H(Ne,K("BOM_BYTES_UTF_16BE"))?Ue=Ue.$byteslice(2,Ue.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")):H(Ce,K("BOM_BYTES_UTF_8"))?(Ue=Ue.$byteslice(3,Ue.$bytesize()),H(Ue.$encoding(),K("UTF_8"))||(Ue=Ue.$encode(K("UTF_8")))):je(Ue.$encoding(),K("UTF_8"))&&(Ue=Ue.$encode(K("UTF_8"))),ee(be)?V([],"tap",[],function(ge){return ge==null&&(ge=Ve),V(Ue,"each_line",[],function(L){return L==null&&(L=Ve),ge["$<<"](L.$rstrip())})}):V([],"tap",[],function(ge){return ge==null&&(ge=Ve),V(Ue,"each_line",[],function(L){return L==null&&(L=Ve),ge["$<<"](L.$chomp())})}))},-2),H(st("RUBY_ENGINE"),"jruby")?v(tt,"$uriish?",function(Ue){var be=Ve,Ne=Ve;return ee(be=ee(Ne=Ue["$include?"](":"))?Ue["$start_with?"]("uri:classloader:")["$!"]():Ne)?K("UriSniffRx")["$match?"](Ue):be}):v(tt,"$uriish?",function(Ue){var be=Ve;return ee(be=Ue["$include?"](":"))?K("UriSniffRx")["$match?"](Ue):be}),v(tt,"$encode_uri_component",function(Ue){return encodeURIComponent(Ue).replace(/%20|[!'()*]/g,function(be){return be==="%20"?"+":"%"+be.charCodeAt(0).toString(16)})}),v(tt,"$encode_spaces_in_uri",function(Ue){return ee(Ue["$include?"](" "))?Ue.$gsub(" ","%20"):Ue}),v(tt,"$rootname",function(Ue){var be=Ve;return ee(be=Ue.$rindex("."))?ee(Ue.$index("/",be))?Ue:Ue.$slice(0,be):Ue}),v(tt,"$basename",function(Ue,be){var Ne=this;return be==null&&(be=Ve),ee(be)?st("File").$basename(Ue,H(be,!0)?Ne.$extname(Ue):be):st("File").$basename(Ue)},-2),v(tt,"$extname?",function(Ue){var be=Ve,Ne=Ve;return ee(be=Ne=Ue.$rindex("."))?Ue.$index("/",Ne)["$!"]():be}),ee(st(st("File"),"ALT_SEPARATOR"))?v(tt,"$extname",function(Ue,be){var Ne=Ve;return be==null&&(be=""),ee(Ne=Ue.$rindex("."))?ee(Ue.$index("/",Ne))||ee(Ue.$index(st(st("File"),"ALT_SEPARATOR"),Ne))?be:Ue.$slice(Ne,Ue.$length()):be},-2):v(tt,"$extname",function(Ue,be){var Ne=Ve;return be==null&&(be=""),ee(Ne=Ue.$rindex("."))?ee(Ue.$index("/",Ne))?be:Ue.$slice(Ne,Ue.$length()):be},-2),v(tt,"$mkdir_p",function(Ue){var be=this,Ne=Ve;if(ee(st("File")["$directory?"](Ue)))return Ve;H(Ne=st("File").$dirname(Ue),".")||be.$mkdir_p(Ne);try{return st("Dir").$mkdir(Ue)}catch(Ce){if(a.rescue(Ce,[st("SystemCallError")]))try{return ee(st("File")["$directory?"](Ue))?Ve:be.$raise()}finally{a.pop_exception()}else throw Ce}}),Y(lt[0],"ROMAN_NUMERALS",Ie(["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})),tt.$private_constant("ROMAN_NUMERALS"),v(tt,"$int_to_roman",function(Ue){return V(K("ROMAN_NUMERALS"),"map",[],function(Ne,Ce){var se,ge,Q=Ve;return Ne==null&&(Ne=Ve),Ce==null&&(Ce=Ve),ge=Ue.$divmod(Ce),se=E(ge),Q=se[0]==null?Ve:se[0],Ue=se[1]==null?Ve:se[1],Je(Ne,Q)}).$join()}),v(tt,"$nextval",function(Ue){var be=Ve;return Te(st("Integer"),Ue)?Ye(Ue,1):H((be=Ue.$to_i()).$to_s(),Ue.$to_s())?Ye(be,1):Ue.$succ()}),v(tt,"$resolve_class",function(Ue){var be=this;return Te(Me,Ue)?Ue:Te(st("String"),Ue)?be.$class_for_name(Ue):Ve}),v(tt,"$class_for_name",function(Ue){var be=this,Ne=Ve;try{return Te(Me,Ne=Pe.$const_get(Ue,!1))||be.$raise(),Ne}catch(Ce){if(a.rescue(Ce,[K("StandardError")]))try{return be.$raise(st("NameError"),"Could not resolve class for name: "+Ue)}finally{a.pop_exception()}else throw Ce}})}(z[0],z)}(ft[0],ft)},Opal.modules.logger=function(a){var ne=a.klass,ee=a.module,H=a.const_set,_e=a.send,v=a.def,V=a.eqeqeq,je=a.rb_plus,Y=a.truthy,Ie=a.rb_le,E=a.rb_lt,Je=[],Te=a.nil,Ye=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(Me,Pe,ft){var Ve=ne(Me,Pe,"Logger"),st=[Ve].concat(ft),We=a.$r(st),Ze=Ve.$$prototype;return Ze.level=Ze.progname=Ze.pipe=Ze.formatter=Te,function($t,z){var et=ee($t,"Severity"),S=[et].concat(z);return H(S[0],"DEBUG",0),H(S[0],"INFO",1),H(S[0],"WARN",2),H(S[0],"ERROR",3),H(S[0],"FATAL",4),H(S[0],"UNKNOWN",5)}(st[0],st),Ve.$include(We("Severity")),H(st[0],"SEVERITY_LABELS",_e(We("Severity").$constants(),"map",[],function(z){return z==null&&(z=Te),[We("Severity").$const_get(z),z.$to_s()]}).$to_h()),function($t,z,et){var S=ne($t,z,"Formatter"),tt=[S].concat(et),lt=a.$r(tt);return H(tt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
|
|
408
|
+
`),H(tt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),v(S,"$call",function(I,Ue,be,Ne){var Ce=this;return Ce.$format(lt("MESSAGE_FORMAT"),I.$chr(),Ue.$strftime(lt("DATE_TIME_FORMAT")),I,be,Ce.$message_as_string(Ne))}),v(S,"$message_as_string",function(I){var Ue=Te,be=Te;return V(Ye("String"),Ue=I)?I:V(Ye("Exception"),Ue)?je(""+I.$message()+" ("+I.$class()+`)
|
|
409
|
+
`,(Y(be=I.$backtrace())?be:[]).$join(`
|
|
410
|
+
`)):I.$inspect()})}(st[0],null,st),Ve.$attr_reader("level"),Ve.$attr_accessor("progname"),Ve.$attr_accessor("formatter"),v(Ve,"$initialize",function(z){var et=this;return et.pipe=z,et.level=We("DEBUG"),et.formatter=We("Formatter").$new()}),v(Ve,"$level=",function(z){var et=this,S=Te;return V(Ye("Integer"),z)?et.level=z:Y(S=We("SEVERITY_LABELS").$key(z.$to_s().$upcase()))?et.level=S:et.$raise(We("ArgumentError"),"invalid log level: "+z)}),v(Ve,"$info",function $t(z){var et=$t.$$p||Te,S=this;return $t.$$p=null,z==null&&(z=Te),_e(S,"add",[We("INFO"),Te,z],et.$to_proc())},-1),v(Ve,"$debug",function $t(z){var et=$t.$$p||Te,S=this;return $t.$$p=null,z==null&&(z=Te),_e(S,"add",[We("DEBUG"),Te,z],et.$to_proc())},-1),v(Ve,"$warn",function $t(z){var et=$t.$$p||Te,S=this;return $t.$$p=null,z==null&&(z=Te),_e(S,"add",[We("WARN"),Te,z],et.$to_proc())},-1),v(Ve,"$error",function $t(z){var et=$t.$$p||Te,S=this;return $t.$$p=null,z==null&&(z=Te),_e(S,"add",[We("ERROR"),Te,z],et.$to_proc())},-1),v(Ve,"$fatal",function $t(z){var et=$t.$$p||Te,S=this;return $t.$$p=null,z==null&&(z=Te),_e(S,"add",[We("FATAL"),Te,z],et.$to_proc())},-1),v(Ve,"$unknown",function $t(z){var et=$t.$$p||Te,S=this;return $t.$$p=null,z==null&&(z=Te),_e(S,"add",[We("UNKNOWN"),Te,z],et.$to_proc())},-1),v(Ve,"$info?",function(){var z=this;return Ie(z.level,We("INFO"))}),v(Ve,"$debug?",function(){var z=this;return Ie(z.level,We("DEBUG"))}),v(Ve,"$warn?",function(){var z=this;return Ie(z.level,We("WARN"))}),v(Ve,"$error?",function(){var z=this;return Ie(z.level,We("ERROR"))}),v(Ve,"$fatal?",function(){var z=this;return Ie(z.level,We("FATAL"))}),v(Ve,"$add",function $t(z,et,S){var tt=$t.$$p||Te,lt=this,K=Te;return $t.$$p=null,et==null&&(et=Te),S==null&&(S=Te),Y(E(z=Y(K=z)?K:We("UNKNOWN"),lt.level))||(S=Y(K=S)?K:lt.progname,Y(et)||(tt!==Te?et=a.yieldX(tt,[]):(et=S,S=lt.progname)),lt.pipe.$write(lt.formatter.$call(Y(K=We("SEVERITY_LABELS")["$[]"](z))?K:"ANY",Ye("Time").$now(),S,et))),!0},-2)}(Je[0],null,Je)},Opal.modules["asciidoctor/logging"]=function(a){var ne=a.module,ee=a.klass,H=a.slice,_e=a.send2,v=a.find_super,V=a.to_a,je=a.send,Y=a.def,Ie=a.truthy,E=a.rb_gt,Je=a.const_set,Te=a.hash2,Ye=a.eqeqeq,Me=a.gvars,Pe=a.alias,ft=a.defs,Ve=a.top,st=[],We=a.nil,Ze=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"),Ve.$require("logger"),function($t,z){var et=ne($t,"Asciidoctor"),S=[et].concat(z);return function(tt,lt,K){var I=ee(tt,lt,"Logger"),Ue=[I].concat(K),be=a.$r(Ue),Ne=I.$$prototype;return Ne.max_severity=We,I.$attr_reader("max_severity"),Y(I,"$initialize",function Ce(se){var ge,Q,L,N=Ce.$$p||We,re=this;return Ce.$$p=null,ge=H(arguments),Q=ge,_e(re,v(re,"initialize",Ce,!1,!0),"initialize",V(Q),N),re["$progname="]("asciidoctor"),re["$formatter="](be("BasicFormatter").$new()),L=[be("WARN")],je(re,"level=",L),L[L.length-1]},-1),Y(I,"$add",function Ce(se,ge,Q){var L=Ce.$$p||We,N=this,re=We;return Ce.$$p=null,ge==null&&(ge=We),Q==null&&(Q=We),Ie(E(se=Ie(re=se)?re:be("UNKNOWN"),N.max_severity=Ie(re=N.max_severity)?re:se))&&(N.max_severity=se),_e(N,v(N,"add",Ce,!1,!0),"add",[se,ge,Q],L)},-2),function(Ce,se,ge){var Q=ee(Ce,se,"BasicFormatter"),L=[Q].concat(ge),N=a.$r(L);return Je(L[0],"SEVERITY_LABEL_SUBSTITUTES",Te(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),Y(Q,"$call",function(O,ue,U,g){var u=We;return""+U+": "+(Ie(u=N("SEVERITY_LABEL_SUBSTITUTES")["$[]"](O))?u:O)+": "+(Ye(Ze("String"),g)?g:g.$inspect())+N("LF")})}(Ue[0],be("Formatter"),Ue),function(Ce){var se=ne(Ce,"AutoFormattingMessage");return Y(se,"$inspect",function(){var Q=this,L=We;return Ie(L=Q["$[]"]("source_location"))?""+L+": "+Q["$[]"]("text"):Q["$[]"]("text")})}(Ue[0])}(S[0],Ze("Logger"),S),function(tt,lt,K){var I=ee(tt,lt,"MemoryLogger"),Ue=[I].concat(K),be=a.$r(Ue),Ne=I.$$prototype;return Ne.messages=We,Je(Ue[0],"SEVERITY_SYMBOL_BY_VALUE",je(be("Severity").$constants(!1),"map",[],function(se){return se==null&&(se=We),[be("Severity").$const_get(se),se]}).$to_h()),I.$attr_reader("messages"),Y(I,"$initialize",function(){var se=this;return se["$level="](be("WARN")),se.messages=[]}),Y(I,"$add",function Ce(se,ge,Q){var L=Ce.$$p||We,N=this,re=We;return Ce.$$p=null,ge==null&&(ge=We),Q==null&&(Q=We),ge=Ie(re=ge)?re:L!==We?a.yieldX(L,[]):Q,N.messages["$<<"](Te(["severity","message"],{severity:be("SEVERITY_SYMBOL_BY_VALUE")["$[]"](Ie(re=se)?re:be("UNKNOWN")),message:ge})),!0},-2),Y(I,"$clear",function(){var se=this;return se.messages.$clear()}),Y(I,"$empty?",function(){var se=this;return se.messages["$empty?"]()}),Y(I,"$max_severity",function(){var se=this;return Ie(se["$empty?"]())?We:je(se.messages,"map",[],function(Q){return Q==null&&(Q=We),be("Severity").$const_get(Q["$[]"]("severity"))}).$max()})}(S[0],Ze("Logger"),S),function(tt,lt,K){var I=ee(tt,lt,"NullLogger"),Ue=[I].concat(K),be=a.$r(Ue),Ne=I.$$prototype;return Ne.max_severity=We,I.$attr_reader("max_severity"),Y(I,"$initialize",function(){var se,ge=this;return se=[be("WARN")],je(ge,"level=",se),se[se.length-1]}),Y(I,"$add",function(se,ge,Q){var L=this,N=We;return Ie(E(se=Ie(N=se)?N:be("UNKNOWN"),L.max_severity=Ie(N=L.max_severity)?N:se))&&(L.max_severity=se),!0},-2)}(S[0],Ze("Logger"),S),function(tt,lt){var K=ne(tt,"LoggerManager"),I=[K].concat(lt),Ue=a.$r(I);return K.logger_class=Ue("Logger"),function(be,Ne){return be.$attr_accessor("logger_class"),Y(be,"$logger",function(se){var ge=this,Q=We;return ge.logger==null&&(ge.logger=We),ge.logger_class==null&&(ge.logger_class=We),Me.stderr==null&&(Me.stderr=We),se==null&&(se=Me.stderr),ge.$memoize_logger(),ge.logger=Ie(Q=ge.logger)?Q:ge.logger_class.$new(se)},-1),Y(be,"$logger=",function(se){var ge=this,Q=We;return ge.logger_class==null&&(ge.logger_class=We),Me.stderr==null&&(Me.stderr=We),ge.logger=Ie(Q=se)?Q:ge.logger_class.$new(Me.stderr)}),be.$private(),Y(be,"$memoize_logger",function(){var se=this;return function(ge,Q){return Pe(ge,"logger","logger"),ge.$attr_reader("logger")}(a.get_singleton_class(se))})}(a.get_singleton_class(K))}(S[0],S),function(tt,lt){var K=ne(tt,"Logging"),I=[K].concat(lt),Ue=a.$r(I);return ft(K,"$included",function(Ne){return Ne.$extend(Ue("Logging"))}),K.$private_class_method("included"),Y(K,"$logger",function(){return Ue("LoggerManager").$logger()}),Y(K,"$message_with_context",function(Ne,Ce){return Ce==null&&(Ce=Te([],{})),Te(["text"],{text:Ne}).$merge(Ce).$extend(Ze(Ue("Logger"),"AutoFormattingMessage"))},-2)}(S[0],S)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var ne=a.module,ee=a.const_set,H=a.regexp,_e=a.hash2,v=a.send,V=a.truthy,je=a.hash,Y=[],Ie=a.nil,E=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(Je,Te){var Ye=ne(Je,"Asciidoctor"),Me=[Ye].concat(Te),Pe=a.$r(Me);return ne(Me[0],"Rx"),ee(Me[0],"AuthorInfoLineRx",H(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*)(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),ee(Me[0],"AuthorDelimiterRx",/;(?: |$)/),ee(Me[0],"RevisionInfoLineRx",H(["^(?:[^\\d{]*(",Pe("CC_ANY"),"*?),)? *(?!:)(",Pe("CC_ANY"),"*?)(?: *(?!^),?: *(",Pe("CC_ANY"),"*))?$"])),ee(Me[0],"ManpageTitleVolnumRx",H(["^(",Pe("CC_ANY"),"+?) *\\( *(",Pe("CC_ANY"),"+?) *\\)$"])),ee(Me[0],"ManpageNamePurposeRx",H(["^(",Pe("CC_ANY"),"+?) +- +(",Pe("CC_ANY"),"+)$"])),ee(Me[0],"ConditionalDirectiveRx",H(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),ee(Me[0],"EvalExpressionRx",H(["^(",Pe("CC_ANY"),"+?) *([=!><]=|[><]) *(",Pe("CC_ANY"),"+)$"])),ee(Me[0],"IncludeDirectiveRx",H(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),ee(Me[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),ee(Me[0],"AttributeEntryRx",H(["^:(!?",Pe("CG_WORD"),"[^:]*):(?:[ \\t]+(",Pe("CC_ANY"),"*))?$"])),ee(Me[0],"InvalidAttributeNameCharsRx",H(["[^",Pe("CC_WORD"),"-]"])),ee(Me[0],"AttributeEntryPassMacroRx",H(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*)\\]$"])),ee(Me[0],"AttributeReferenceRx",H(["(\\\\)?\\{(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*|(set|counter2?):",Pe("CC_ANY"),"+?)(\\\\)?\\}"])),ee(Me[0],"BlockAnchorRx",H(["^\\[\\[(?:|([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?)\\]\\]$"])),ee(Me[0],"BlockAttributeListRx",H(["^\\[(|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*)\\]$"])),ee(Me[0],"BlockAttributeLineRx",H(["^\\[(?:|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*|\\[(?:|[",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*(?:, *",Pe("CC_ANY"),"+)?)\\])\\]$"])),ee(Me[0],"BlockTitleRx",H(["^\\.(\\.?[^ \\t.]",Pe("CC_ANY"),"*)$"])),ee(Me[0],"AdmonitionParagraphRx",H(["^(",Pe("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),ee(Me[0],"LiteralParagraphRx",H(["^([ \\t]+",Pe("CC_ANY"),"*)$"])),ee(Me[0],"AtxSectionTitleRx",H(["^(=={0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),ee(Me[0],"ExtAtxSectionTitleRx",H(["^(=={0,5}|#\\#{0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),ee(Me[0],"SetextSectionTitleRx",H(["^((?!\\.)",Pe("CC_ANY"),"*?",Pe("CG_ALNUM"),Pe("CC_ANY"),"*)$"])),ee(Me[0],"InlineSectionAnchorRx",H([" (\\\\)?\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?\\]\\]$"])),ee(Me[0],"InvalidSectionIdCharsRx",H(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",Pe("CC_WORD"),"\\-.]+?"])),ee(Me[0],"SectionLevelStyleRx",/^sect\d$/),ee(Me[0],"AnyListRx",H(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",Pe("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),ee(Me[0],"UnorderedListRx",H(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",Pe("CC_ANY"),"*)$"])),ee(Me[0],"OrderedListRx",H(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",Pe("CC_ANY"),"*)$"])),ee(Me[0],"OrderedListMarkerRxMap",_e(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),ee(Me[0],"DescriptionListRx",H(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])),ee(Me[0],"DescriptionListSiblingRx",_e(["::",":::","::::",";;"],{"::":H(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),":::":H(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),"::::":H(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),";;":H(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])})),ee(Me[0],"CalloutListRx",H(["^<(\\d+|\\.)>[ \\t]+(",Pe("CC_ANY"),"*)$"])),ee(Me[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),ee(Me[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),ee(Me[0],"CalloutExtractRxMap",v(E("Hash"),"new",[],function(Ve,st){var We;return Ve==null&&(Ve=Ie),st==null&&(st=Ie),We=[st,H(["(",V(st["$empty?"]())?"":""+E("Regexp").$escape(st)+" ?",")?",Pe("CalloutExtractRxt")])],v(Ve,"[]=",We),We[We.length-1]})),ee(Me[0],"CalloutScanRx",H(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",Pe("CC_EOL"),")"])),ee(Me[0],"CalloutSourceRx",H(["((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*",Pe("CC_EOL"),")"])),ee(Me[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+Pe("CC_EOL")+")"),ee(Me[0],"CalloutSourceRxMap",v(E("Hash"),"new",[],function(Ve,st){var We;return Ve==null&&(Ve=Ie),st==null&&(st=Ie),We=[st,H(["(",V(st["$empty?"]())?"":""+E("Regexp").$escape(st)+" ?",")?",Pe("CalloutSourceRxt")])],v(Ve,"[]=",We),We[We.length-1]})),ee(Me[0],"ListRxMap",_e(["ulist","olist","dlist","colist"],{ulist:Pe("UnorderedListRx"),olist:Pe("OrderedListRx"),dlist:Pe("DescriptionListRx"),colist:Pe("CalloutListRx")})),ee(Me[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),ee(Me[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),ee(Me[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),ee(Me[0],"CustomBlockMacroRx",H(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*)::(|\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),ee(Me[0],"BlockMediaMacroRx",H(["^(image|video|audio)::(\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),ee(Me[0],"BlockTocMacroRx",H(["^toc::\\[(",Pe("CC_ANY"),"+)?\\]$"])),ee(Me[0],"InlineAnchorRx",H(["(\\\\)?(?:\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\]))"])),ee(Me[0],"InlineAnchorScanRx",H(["(?:^|[^\\\\\\[])\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\])"])),ee(Me[0],"LeadingInlineAnchorRx",H(["^\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]"])),ee(Me[0],"InlineBiblioAnchorRx",H(["^\\[\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]\\]"])),ee(Me[0],"InlineEmailRx",H(["([\\\\>:/])?",Pe("CG_WORD"),"(?:&|[",Pe("CC_WORD"),"\\-.%+])*@",Pe("CG_ALNUM"),"[",Pe("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),ee(Me[0],"InlineFootnoteMacroRx",H(["\\\\?footnote(?:(ref):|:([",Pe("CC_WORD"),"-]+)?)\\[(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),ee(Me[0],"InlineImageMacroRx",H(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),ee(Me[0],"InlineIndextermMacroRx",H(["\\\\?(?:(indexterm2?):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",Pe("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),ee(Me[0],"InlineKbdBtnMacroRx",H(["(\\\\)?(kbd|btn):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),ee(Me[0],"InlineLinkRx",H(["(^|link:|",Pe("CG_BLANK"),`|<|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,Pe("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),ee(Me[0],"InlineLinkMacroRx",H(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),ee(Me[0],"MacroNameRx",H(["^",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*$"])),ee(Me[0],"InlineStemMacroRx",H(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),ee(Me[0],"InlineMenuMacroRx",H(["\\\\?menu:(",Pe("CG_WORD"),"|[",Pe("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\]"],"m")),ee(Me[0],"InlineMenuRx",H(['\\\\?"([',Pe("CC_WORD"),'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"'])),ee(Me[0],"InlinePassRx",je(!1,["+","-]",H(["((?:^|[^",Pe("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",Pe("CC_ALL"),"*?\\S)\\7)(?!",Pe("CG_WORD"),")"],"m")],!0,["`",Ie,H(["(^|[^`",Pe("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",Pe("CC_ALL"),"*?\\S)\\7)(?![`",Pe("CC_WORD"),"])"],"m")])),ee(Me[0],"InlinePassMacroRx",H(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",Pe("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\])"],"m")),ee(Me[0],"InlineXrefMacroRx",H(["\\\\?(?:<<([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)>>|xref:([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)\\[(?:\\]|(",Pe("CC_ALL"),"*?[^\\\\])\\]))"],"m")),ee(Me[0],"HardLineBreakRx",H(["^(",Pe("CC_ANY"),"*) \\+$"],"m")),ee(Me[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),ee(Me[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),ee(Me[0],"BlankLineRx",/\n{2,}/),ee(Me[0],"EscapedSpaceRx",/\\([ \t\n])/),ee(Me[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),ee(Me[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),ee(Me[0],"SubModifierSniffRx",/[+-]/),ee(Me[0],"TrailingDigitsRx",/\d+$/),ee(Me[0],"UriSniffRx",H(["^",Pe("CG_ALPHA"),"[",Pe("CC_ALNUM"),".+-]+:/{0,2}"])),ee(Me[0],"XmlSanitizeRx",/<[^>]+>/)}(Y[0],Y)},Opal.modules["asciidoctor/substitutors"]=function(a){var ne=a.module,ee=a.const_set,H=a.hash2,_e=a.hash,v=a.rb_plus,V=a.regexp,je=a.not,Y=a.truthy,Ie=a.send,E=a.def,Je=a.alias,Te=a.gvars,Ye=a.eqeq,Me=a.to_ary,Pe=a.neqeq,ft=a.to_a,Ve=a.eqeqeq,st=a.rb_gt,We=a.slice,Ze=a.rb_minus,$t=a.rb_lt,z=a.rb_times,et=[],S=a.nil,tt=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(lt,K){var I=ne(lt,"Asciidoctor"),Ue=[I].concat(K);return function(be,Ne){var Ce=ne(be,"Substitutors"),se=[Ce].concat(Ne),ge=a.$r(se);return ee(se[0],"SpecialCharsRx",/[<&>]/),ee(se[0],"SpecialCharsTr",H([">","<","&"],{">":">","<":"<","&":"&"})),ee(se[0],"QuotedTextSniffRx",_e(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),ee(se[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),ee(se[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),ee(se[0],"NO_SUBS",[]).$freeze(),ee(se[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),ee(se[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),ee(se[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),ee(se[0],"SUB_GROUPS",H(["none","normal","verbatim","specialchars"],{none:ge("NO_SUBS"),normal:ge("NORMAL_SUBS"),verbatim:ge("VERBATIM_SUBS"),specialchars:ge("BASIC_SUBS")})),ee(se[0],"SUB_HINTS",H(["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"})),ee(se[0],"SUB_OPTIONS",H(["block","inline"],{block:v(v(ge("SUB_GROUPS").$keys(),ge("NORMAL_SUBS")),["callouts"]),inline:v(ge("SUB_GROUPS").$keys(),ge("NORMAL_SUBS"))})),ee(se[0],"CAN",""),ee(se[0],"DEL",""),ee(se[0],"PASS_START",""),ee(se[0],"PASS_END",""),ee(se[0],"PassSlotRx",V([ge("PASS_START"),"(\\d+)",ge("PASS_END")])),ee(se[0],"HighlightedPassSlotRx",V(["<span\\b[^>]*>",ge("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",ge("PASS_END"),"</span>"])),ee(se[0],"RS","\\"),ee(se[0],"R_SB","]"),ee(se[0],"ESC_R_SB","\\]"),ee(se[0],"PLUS","+"),E(Ce,"$apply_subs",function(L,N){var re=this,O=S,ue=S,U=S,g=S;return re.passthroughs==null&&(re.passthroughs=S),re.passthroughs_locked==null&&(re.passthroughs_locked=S),N==null&&(N=ge("NORMAL_SUBS")),Y(L["$empty?"]())||je(N)?L:(Y(O=tt("Array")["$==="](L))&&(L=Y(L["$[]"](1))?L.$join(ge("LF")):L["$[]"](0)),Y(N["$include?"]("macros"))&&(L=re.$extract_passthroughs(L),Y(re.passthroughs["$empty?"]())||(ue=re.passthroughs,re.passthroughs_locked=Y(U=re.passthroughs_locked)?U:g=!0)),Ie(N,"each",[],function u(m){var C=u.$$s==null?this:u.$$s;switch(m==null&&(m=S),m){case"specialcharacters":return L=C.$sub_specialchars(L);case"quotes":return L=C.$sub_quotes(L);case"attributes":return Y(L["$include?"](ge("ATTR_REF_HEAD")))?L=C.$sub_attributes(L):S;case"replacements":return L=C.$sub_replacements(L);case"macros":return L=C.$sub_macros(L);case"highlight":return L=C.$highlight_source(L,N["$include?"]("callouts"));case"callouts":return Y(N["$include?"]("highlight"))?S:L=C.$sub_callouts(L);case"post_replacements":return L=C.$sub_post_replacements(L);default:return C.$logger().$warn("unknown substitution type "+m)}},{$$s:re}),Y(ue)&&(L=re.$restore_passthroughs(L),Y(g)&&(ue.$clear(),re.passthroughs_locked=S)),Y(O)?L.$split(ge("LF"),-1):L)},-2),E(Ce,"$apply_normal_subs",function(L){var N=this;return N.$apply_subs(L,ge("NORMAL_SUBS"))}),E(Ce,"$apply_header_subs",function(L){var N=this;return N.$apply_subs(L,ge("HEADER_SUBS"))}),Je(Ce,"apply_title_subs","apply_subs"),E(Ce,"$apply_reftext_subs",function(L){var N=this;return N.$apply_subs(L,ge("REFTEXT_SUBS"))}),E(Ce,"$sub_specialchars",function(L){return Y(L["$include?"](">"))||Y(L["$include?"]("&"))||Y(L["$include?"]("<"))?L.$gsub(ge("SpecialCharsRx"),ge("SpecialCharsTr")):L}),Je(Ce,"sub_specialcharacters","sub_specialchars"),E(Ce,"$sub_quotes",function(L){var N=this,re=S;return N.document==null&&(N.document=S),Y(ge("QuotedTextSniffRx")["$[]"](re=N.document.$compat_mode())["$match?"](L))&&Ie(ge("QUOTE_SUBS")["$[]"](re),"each",[],function O(ue,U,g){var u=O.$$s==null?this:O.$$s;return ue==null&&(ue=S),U==null&&(U=S),g==null&&(g=S),L=Ie(L,"gsub",[g],function m(){var C=m.$$s==null?this:m.$$s;return Te["~"]==null&&(Te["~"]=S),C.$convert_quoted_text(Te["~"],ue,U)},{$$s:u})},{$$s:N}),L}),E(Ce,"$sub_attributes",function(L,N){var re=this,O=S,ue=S,U=S,g=S,u=S,m=S,C=S,x=S;return re.document==null&&(re.document=S),N==null&&(N=H([],{})),O=re.document.$attributes(),ue=U=g=u=m=C=S,L=Ie(L,"gsub",[ge("AttributeReferenceRx")],function y(){var M,P,fe=y.$$s==null?this:y.$$s,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S;if(fe.document==null&&(fe.document=S),Ye((M=Te["~"])===S?S:M["$[]"](1),ge("RS"))||Ye((M=Te["~"])===S?S:M["$[]"](4),ge("RS")))return"{"+((M=Te["~"])===S?S:M["$[]"](2))+"}";if(Y((M=Te["~"])===S?S:M["$[]"](3)))switch((ie=((M=Te["~"])===S?S:M["$[]"](2)).$split(":",3)).$shift()){case"set":return P=ge("Parser").$store_attribute(ie["$[]"](0),Y(xe=ie["$[]"](1))?xe:"",fe.document),M=Me(P),M[0]==null||M[0],Le=M[1]==null?S:M[1],Y(Le)||Pe(m=Y(xe=m)?xe:Y(Ke=O["$[]"]("attribute-undefined"))?Ke:ge("Compliance").$attribute_undefined(),"drop-line")?ue=u=ge("DEL"):ue=U=ge("CAN");case"counter2":return Ie(fe.document,"counter",ft(ie)),ue=u=ge("DEL");default:return Ie(fe.document,"counter",ft(ie))}else{if(Y(O["$key?"](nt=((M=Te["~"])===S?S:M["$[]"](2)).$downcase())))return O["$[]"](nt);if(Y(Le=ge("INTRINSIC_ATTRIBUTES")["$[]"](nt)))return Le;switch(C=Y(xe=C)?xe:Y(Ke=Y(dt=N["$[]"]("attribute_missing"))?dt:O["$[]"]("attribute-missing"))?Ke:ge("Compliance").$attribute_missing()){case"drop":return ue=u=ge("DEL");case"drop-line":return Ye(g=Y(xe=g)?xe:Y(Ke=N["$[]"]("drop_line_severity"))?Ke:"info","info")&&Ie(fe.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+nt}),ue=U=ge("CAN");case"warn":return fe.$logger().$warn("skipping reference to missing attribute: "+nt),(M=Te["~"])===S?S:M["$[]"](0);default:return(M=Te["~"])===S?S:M["$[]"](0)}}},{$$s:re}),Y(ue)?Y(u)?(x=L.$squeeze(ge("DEL")).$split(ge("LF"),-1),Y(U)?Ie(x,"reject",[],function(M){var P=S,fe=S,ie=S;return M==null&&(M=S),Y(P=Y(fe=Y(ie=M["$=="](ge("DEL")))?ie:M["$=="](ge("CAN")))?fe:M["$start_with?"](ge("CAN")))?P:M["$include?"](ge("CAN"))}).$join(ge("LF")).$delete(ge("DEL")):Ie(x,"reject",[],function(M){return M==null&&(M=S),M["$=="](ge("DEL"))}).$join(ge("LF")).$delete(ge("DEL"))):Y(L["$include?"](ge("LF")))?Ie(L.$split(ge("LF"),-1),"reject",[],function(M){var P=S,fe=S;return M==null&&(M=S),Y(P=Y(fe=M["$=="](ge("CAN")))?fe:M["$start_with?"](ge("CAN")))?P:M["$include?"](ge("CAN"))}).$join(ge("LF")):"":L},-2),E(Ce,"$sub_replacements",function(L){var N=this;return Y(ge("ReplaceableTextRx")["$match?"](L))&&Ie(ge("REPLACEMENTS"),"each",[],function re(O,ue,U){var g=re.$$s==null?this:re.$$s;return O==null&&(O=S),ue==null&&(ue=S),U==null&&(U=S),L=Ie(L,"gsub",[O],function u(){var m=u.$$s==null?this:u.$$s;return Te["~"]==null&&(Te["~"]=S),m.$do_replacement(Te["~"],ue,U)},{$$s:g})},{$$s:N}),L}),E(Ce,"$sub_macros",function(L){var N=this,re=S,O=S,ue=S,U=S,g=S,u=S,m=S,C=S;return N.document==null&&(N.document=S),N.parent==null&&(N.parent=S),N.context==null&&(N.context=S),re=L["$include?"]("["),O=L["$include?"](":"),ue=Y(U=re)?O:U,g=Y(U=ue)?L["$include?"](":["):U,u=(m=N.document).$attributes(),Y(C=m.$extensions())&&Y(C["$inline_macros?"]())&&Ie(C.$inline_macros(),"each",[],function x(y){var M=x.$$s==null?this:x.$$s;return y==null&&(y=S),L=Ie(L,"gsub",[y.$instance().$regexp()],function P(){var fe,ie,xe=P.$$s==null?this:P.$$s,Le=S,Ke=S,nt=S,dt=S,at=S,pt=S,vt=S,bt=S,gt=S;return Te["~"]==null&&(Te["~"]=S),Y((Le=(fe=Te["~"])===S?S:fe["$[]"](0))["$start_with?"](ge("RS")))?((fe=Te["~"])===S?S:fe["$[]"](0)).$slice(1,((fe=Te["~"])===S?S:fe["$[]"](0)).$length()):(Y(Te["~"].$names()["$empty?"]())?(fe=[(ie=Te["~"])===S?S:ie["$[]"](1),(ie=Te["~"])===S?S:ie["$[]"](2)],Ke=fe[0],nt=fe[1]):(fe=[function(){try{return Te["~"]["$[]"]("target")}catch(Ct){if(a.rescue(Ct,[ge("StandardError")]))try{return S}finally{a.pop_exception()}else throw Ct}}(),function(){try{return Te["~"]["$[]"]("content")}catch(Ct){if(a.rescue(Ct,[ge("StandardError")]))try{return S}finally{a.pop_exception()}else throw Ct}}()],Ke=fe[0],nt=fe[1]),dt=Y(at=(pt=y.$config())["$[]"]("default_attrs"))?at.$merge():H([],{}),Y(nt)&&(Y(nt["$empty?"]())?Ye(pt["$[]"]("content_model"),"attributes")||dt["$[]="]("text",nt):(nt=xe.$normalize_text(nt,!0,!0),Ye(pt["$[]"]("content_model"),"attributes")?xe.$parse_attributes(nt,Y(U=Y(vt=pt["$[]"]("positional_attrs"))?vt:pt["$[]"]("pos_attrs"))?U:[],H(["into"],{into:dt})):dt["$[]="]("text",nt)),Ke=Y(U=Ke)?U:Ye(pt["$[]"]("format"),"short")?nt:Ke),Ve(ge("Inline"),bt=y.$process_method()["$[]"](xe,Ke,dt))?(Y(gt=bt.$attributes().$delete("subs"))&&Y(gt=xe.$expand_subs(gt,"custom inline macro"))&&bt["$text="](xe.$apply_subs(bt.$text(),gt)),bt.$convert()):Y(bt)?(Ie(xe.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+bt.$class()+": "+Le}),bt):"")},{$$s:M})},{$$s:N}),Y(u["$key?"]("experimental"))&&(Y(g)&&(Y(L["$include?"]("kbd:"))||Y(L["$include?"]("btn:")))&&(L=Ie(L,"gsub",[ge("InlineKbdBtnMacroRx")],function x(){var y,M=x.$$s==null?this:x.$$s,P=S,fe=S,ie=S;return Y((y=Te["~"])===S?S:y["$[]"](1))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):Ye((y=Te["~"])===S?S:y["$[]"](2),"kbd")?(Y((P=((y=Te["~"])===S?S:y["$[]"](3)).$strip())["$include?"](ge("R_SB")))&&(P=P.$gsub(ge("ESC_R_SB"),ge("R_SB"))),Y(st(P.$length(),1))&&Y(fe=Y(fe=P.$index(",",1))?[fe,P.$index("+",1)].$compact().$min():P.$index("+",1))?(ie=P.$slice(fe,1),Y(P["$end_with?"](ie))?(P=Ie(P.$chop().$split(ie,-1),"map",[],function(Le){return Le==null&&(Le=S),Le.$strip()}),P["$[]="](-1,v(P["$[]"](-1),ie))):P=Ie(P.$split(ie),"map",[],function(Le){return Le==null&&(Le=S),Le.$strip()})):P=[P],ge("Inline").$new(M,"kbd",S,H(["attributes"],{attributes:H(["keys"],{keys:P})})).$convert()):ge("Inline").$new(M,"button",M.$normalize_text((y=Te["~"])===S?S:y["$[]"](3),!0,!0)).$convert()},{$$s:N})),Y(ue)&&Y(L["$include?"]("menu:"))&&(L=Ie(L,"gsub",[ge("InlineMenuMacroRx")],function x(){var y,M=x.$$s==null?this:x.$$s,P=S,fe=S,ie=S,xe=S,Le=S;return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(P=(y=Te["~"])===S?S:y["$[]"](1),Y(fe=(y=Te["~"])===S?S:y["$[]"](2))?(Y(fe["$include?"](ge("R_SB")))&&(fe=fe.$gsub(ge("ESC_R_SB"),ge("R_SB"))),Y(ie=Y(fe["$include?"](">"))?">":Y(fe["$include?"](","))?",":S)?(xe=Ie(fe.$split(ie),"map",[],function(nt){return nt==null&&(nt=S),nt.$strip()}),Le=xe.$pop()):(y=[[],fe.$rstrip()],xe=y[0],Le=y[1])):(y=[[],S],xe=y[0],Le=y[1]),ge("Inline").$new(M,"menu",S,H(["attributes"],{attributes:H(["menu","submenus","menuitem"],{menu:P,submenus:xe,menuitem:Le})})).$convert())},{$$s:N})),Y(L["$include?"]('"'))&&Y(L["$include?"](">"))&&(L=Ie(L,"gsub",[ge("InlineMenuRx")],function x(){var y,M,P,fe=x.$$s==null?this:x.$$s,ie=S,xe=S,Le=S;return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(M=Ie(((P=Te["~"])===S?S:P["$[]"](1)).$split(">"),"map",[],function(nt){return nt==null&&(nt=S),nt.$strip()}),y=Me(M),ie=y[0]==null?S:y[0],xe=We(y,1),Le=xe.$pop(),ge("Inline").$new(fe,"menu",S,H(["attributes"],{attributes:H(["menu","submenus","menuitem"],{menu:ie,submenus:xe,menuitem:Le})})).$convert())},{$$s:N}))),Y(ue)&&(Y(L["$include?"]("image:"))||Y(L["$include?"]("icon:")))&&(L=Ie(L,"gsub",[ge("InlineImageMacroRx")],function x(){var y,M=x.$$s==null?this:x.$$s,P=S,fe=S,ie=S,xe=S;return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"]("icon:"))?(y=["icon",["size"]],P=y[0],fe=y[1]):(y=["image",["alt","width","height"]],P=y[0],fe=y[1]),ie=(y=Te["~"])===S?S:y["$[]"](1),xe=M.$parse_attributes((y=Te["~"])===S?S:y["$[]"](2),fe,H(["unescape_input"],{unescape_input:!0})),Ye(P,"icon")||(m.$register("images",ie),xe["$[]="]("imagesdir",u["$[]"]("imagesdir"))),Y(U=xe["$[]"]("alt"))||xe["$[]="]("alt",(y=["default-alt",ge("Helpers").$basename(ie,!0).$tr("_-"," ")],Ie(xe,"[]=",y),y[y.length-1])),ge("Inline").$new(M,"image",S,H(["type","target","attributes"],{type:P,target:ie,attributes:xe})).$convert())},{$$s:N})),(Y(L["$include?"]("(("))&&Y(L["$include?"]("))"))||Y(g)&&Y(L["$include?"]("dexterm")))&&(L=Ie(L,"gsub",[ge("InlineIndextermMacroRx")],function x(){var y,M,P=x.$$s==null?this:x.$$s,fe=S,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S,at=S,pt=S,vt=S,bt=S,gt=S,Ct=S,St=S;switch((y=Te["~"])===S?S:y["$[]"](1)){case"indexterm":return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(Y((fe=P.$normalize_text((y=Te["~"])===S?S:y["$[]"](2),!0,!0))["$include?"]("="))?Y(ie=(xe=ge("AttributeList").$new(fe,P).$parse())["$[]"](1))?(xe["$[]="]("terms",[ie]),Y(Le=xe["$[]"]("see-also"))&&xe["$[]="]("see-also",Y(Le["$include?"](","))?Ie(Le.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=S),Bt.$lstrip()}):[Le])):xe=H(["terms"],{terms:fe}):xe=H(["terms"],{terms:P.$split_simple_csv(fe)}),ge("Inline").$new(P,"indexterm",S,H(["attributes"],{attributes:xe})).$convert());case"indexterm2":return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(Y((Ke=P.$normalize_text((y=Te["~"])===S?S:y["$[]"](2),!0,!0))["$include?"]("="))&&(Ke=Y(nt=Y(dt=(xe=ge("AttributeList").$new(Ke,P).$parse())["$[]"](1))?dt:xe=S)?nt:Ke,Y(xe)&&Y(Le=xe["$[]"]("see-also"))&&xe["$[]="]("see-also",Y(Le["$include?"](","))?Ie(Le.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=S),Bt.$lstrip()}):[Le])),ge("Inline").$new(P,"indexterm",Ke,H(["attributes","type"],{attributes:xe,type:"visible"})).$convert());default:if(at=(y=Te["~"])===S?S:y["$[]"](3),Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS"))))if(Y(at["$start_with?"]("("))&&Y(at["$end_with?"](")")))at=at.$slice(1,Ze(at.$length(),2)),y=[!0,"(",")"],pt=y[0],vt=y[1],bt=y[2];else return((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length());else pt=!0,Y(at["$start_with?"]("("))?Y(at["$end_with?"](")"))?(y=[at.$slice(1,Ze(at.$length(),2)),!1],at=y[0],pt=y[1]):(y=[at.$slice(1,at.$length()),"(",""],at=y[0],vt=y[1],bt=y[2]):Y(at["$end_with?"](")"))&&(y=[at.$chop(),"",")"],at=y[0],vt=y[1],bt=y[2]);return Y(pt)?(Y((Ke=P.$normalize_text(at,!0))["$include?"](";&"))&&(Y(Ke["$include?"](" >> "))?(M=Ke.$partition(" >> "),y=Me(M),Ke=y[0]==null?S:y[0],y[1]==null||y[1],gt=y[2]==null?S:y[2],xe=H(["see"],{see:gt})):Y(Ke["$include?"](" &> "))&&(M=Ke.$split(" &> "),y=Me(M),Ke=y[0]==null?S:y[0],Le=We(y,1),xe=H(["see-also"],{"see-also":Le}))),Ct=ge("Inline").$new(P,"indexterm",Ke,H(["attributes","type"],{attributes:xe,type:"visible"})).$convert()):(xe=H([],{}),Y((St=P.$normalize_text(at,!0))["$include?"](";&"))&&(Y(St["$include?"](" >> "))?(M=St.$partition(" >> "),y=Me(M),St=y[0]==null?S:y[0],y[1]==null||y[1],gt=y[2]==null?S:y[2],xe["$[]="]("see",gt)):Y(St["$include?"](" &> "))&&(M=St.$split(" &> "),y=Me(M),St=y[0]==null?S:y[0],Le=We(y,1),xe["$[]="]("see-also",Le))),xe["$[]="]("terms",P.$split_simple_csv(St)),Ct=ge("Inline").$new(P,"indexterm",S,H(["attributes"],{attributes:xe})).$convert()),Y(vt)?""+vt+Ct+bt:Ct}},{$$s:N})),Y(O)&&Y(L["$include?"]("://"))&&(L=Ie(L,"gsub",[ge("InlineLinkRx")],function x(){var y,M,P=x.$$s==null?this:x.$$s,fe=S,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S,at=S,pt=S;if(Y((fe=v((y=Te["~"])===S?S:y["$[]"](2),Y(U=(y=Te["~"])===S?S:y["$[]"](3))?U:(y=Te["~"])===S?S:y["$[]"](5)))["$start_with?"](ge("RS"))))return v(((y=Te["~"])===S?S:y["$[]"](0)).$slice(0,ie=((y=Te["~"])===S?S:y["$[]"](1)).$length()),((y=Te["~"])===S?S:y["$[]"](0)).$slice(v(ie,1),((y=Te["~"])===S?S:y["$[]"](0)).$length()));if(y=[(M=Te["~"])===S?S:M["$[]"](1),""],xe=y[0],Le=y[1],Y((y=Te["~"])===S?S:y["$[]"](4)))Ye(xe,"link:")&&(xe=""),Y((Ke=(y=Te["~"])===S?S:y["$[]"](4))["$empty?"]())&&(Ke=S);else{switch(xe){case"link:":case'"':case"'":return(y=Te["~"])===S?S:y["$[]"](0)}switch((y=Te["~"])===S?S:y["$[]"](6)){case";":if(Y(xe["$start_with?"]("<"))&&Y(fe["$end_with?"](">"))?(xe=xe.$slice(4,xe.$length()),fe=fe.$slice(0,Ze(fe.$length(),4))):Y((fe=fe.$chop())["$end_with?"](")"))?(fe=fe.$chop(),Le=");"):Le=";",Y(fe["$end_with?"]("://")))return(y=Te["~"])===S?S:y["$[]"](0);break;case":":if(Y((fe=fe.$chop())["$end_with?"](")"))?(fe=fe.$chop(),Le="):"):Le=":",Y(fe["$end_with?"]("://")))return(y=Te["~"])===S?S:y["$[]"](0);break}}return y=[S,H(["type"],{type:"link"})],nt=y[0],dt=y[1],Y(Ke)?(Y(Ke["$include?"](ge("R_SB")))&&(at=Ke=Ke.$gsub(ge("ESC_R_SB"),ge("R_SB"))),je(m.$compat_mode())&&Y(Ke["$include?"]("="))&&(M=P.$extract_attributes_from_text(Ke,""),y=Me(M),Ke=y[0]==null?S:y[0],nt=y[1]==null?S:y[1],at=Ke,dt["$[]="]("id",nt["$[]"]("id"))),Y(Ke["$end_with?"]("^"))&&(at=Ke=Ke.$chop(),Y(nt)?Y(U=nt["$[]"]("window"))||nt["$[]="]("window","_blank"):nt=H(["window"],{window:"_blank"})),Y(at)&&Y(at["$empty?"]())&&(Ke=Y(u["$key?"]("hide-uri-scheme"))?fe.$sub(ge("UriSniffRx"),""):fe,pt=!0)):(Ke=Y(u["$key?"]("hide-uri-scheme"))?fe.$sub(ge("UriSniffRx"),""):fe,pt=!0),Y(pt)&&(Y(nt)?nt["$[]="]("role",Y(nt["$key?"]("role"))?"bare "+nt["$[]"]("role"):"bare"):nt=H(["role"],{role:"bare"})),m.$register("links",(y=["target",fe],Ie(dt,"[]=",y),y[y.length-1])),Y(nt)&&dt["$[]="]("attributes",nt),""+xe+ge("Inline").$new(P,"anchor",Ke,dt).$convert()+Le},{$$s:N})),Y(ue)&&(Y(L["$include?"]("link:"))||Y(L["$include?"]("ilto:")))&&(L=Ie(L,"gsub",[ge("InlineLinkMacroRx")],function x(){var y,M,P=x.$$s==null?this:x.$$s,fe=S,ie=S,xe=S,Le=S,Ke=S,nt=S;return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(Y(fe=(y=Te["~"])===S?S:y["$[]"](1))?ie=v("mailto:",xe=(y=Te["~"])===S?S:y["$[]"](2)):ie=(y=Te["~"])===S?S:y["$[]"](2),y=[S,H(["type"],{type:"link"})],Le=y[0],Ke=y[1],Y((nt=(y=Te["~"])===S?S:y["$[]"](3))["$empty?"]())||(Y(nt["$include?"](ge("R_SB")))&&(nt=nt.$gsub(ge("ESC_R_SB"),ge("R_SB"))),Y(fe)?je(m.$compat_mode())&&Y(nt["$include?"](","))&&(M=P.$extract_attributes_from_text(nt,""),y=Me(M),nt=y[0]==null?S:y[0],Le=y[1]==null?S:y[1],Ke["$[]="]("id",Le["$[]"]("id")),Y(Le["$key?"](2))&&(Y(Le["$key?"](3))?ie=""+ie+"?subject="+ge("Helpers").$encode_uri_component(Le["$[]"](2))+"&body="+ge("Helpers").$encode_uri_component(Le["$[]"](3)):ie=""+ie+"?subject="+ge("Helpers").$encode_uri_component(Le["$[]"](2)))):je(m.$compat_mode())&&Y(nt["$include?"]("="))&&(M=P.$extract_attributes_from_text(nt,""),y=Me(M),nt=y[0]==null?S:y[0],Le=y[1]==null?S:y[1],Ke["$[]="]("id",Le["$[]"]("id"))),Y(nt["$end_with?"]("^"))&&(nt=nt.$chop(),Y(Le)?Y(U=Le["$[]"]("window"))||Le["$[]="]("window","_blank"):Le=H(["window"],{window:"_blank"}))),Y(nt["$empty?"]())&&(Y(fe)?nt=xe:(Y(u["$key?"]("hide-uri-scheme"))?Y((nt=ie.$sub(ge("UriSniffRx"),""))["$empty?"]())&&(nt=ie):nt=ie,Y(Le)?Le["$[]="]("role",Y(Le["$key?"]("role"))?"bare "+Le["$[]"]("role"):"bare"):Le=H(["role"],{role:"bare"}))),m.$register("links",(y=["target",ie],Ie(Ke,"[]=",y),y[y.length-1])),Y(Le)&&Ke["$[]="]("attributes",Le),ge("Inline").$new(P,"anchor",nt,Ke).$convert())},{$$s:N})),Y(L["$include?"]("@"))&&(L=Ie(L,"gsub",[ge("InlineEmailRx")],function x(){var y,M=x.$$s==null?this:x.$$s,P=S,fe=S;return Y((y=Te["~"])===S?S:y["$[]"](1))?Ye((y=Te["~"])===S?S:y["$[]"](1),ge("RS"))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(y=Te["~"])===S?S:y["$[]"](0):(P=v("mailto:",fe=(y=Te["~"])===S?S:y["$[]"](0)),m.$register("links",P),ge("Inline").$new(M,"anchor",fe,H(["type","target"],{type:"link",target:P})).$convert())},{$$s:N})),Y(re)&&Ye(N.context,"list_item")&&Ye(N.parent.$style(),"bibliography")&&(L=Ie(L,"sub",[ge("InlineBiblioAnchorRx")],function x(){var y,M=x.$$s==null?this:x.$$s;return ge("Inline").$new(M,"anchor",(y=Te["~"])===S?S:y["$[]"](2),H(["type","id"],{type:"bibref",id:(y=Te["~"])===S?S:y["$[]"](1)})).$convert()},{$$s:N})),(Y(re)&&Y(L["$include?"]("[["))||Y(ue)&&Y(L["$include?"]("or:")))&&(L=Ie(L,"gsub",[ge("InlineAnchorRx")],function x(){var y,M=x.$$s==null?this:x.$$s,P=S,fe=S;return Y((y=Te["~"])===S?S:y["$[]"](1))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(Y(P=(y=Te["~"])===S?S:y["$[]"](2))?fe=(y=Te["~"])===S?S:y["$[]"](3):(P=(y=Te["~"])===S?S:y["$[]"](4),Y(fe=(y=Te["~"])===S?S:y["$[]"](5))&&Y(fe["$include?"](ge("R_SB")))&&(fe=fe.$gsub(ge("ESC_R_SB"),ge("R_SB")))),ge("Inline").$new(M,"anchor",fe,H(["type","id"],{type:"ref",id:P})).$convert())},{$$s:N})),(Y(L["$include?"]("&"))&&Y(L["$include?"](";&l"))||Y(ue)&&Y(L["$include?"]("xref:")))&&(L=Ie(L,"gsub",[ge("InlineXrefMacroRx")],function x(){var y,M,P=x.$$s==null?this:x.$$s,fe=S,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S,at=S,pt=S,vt=S;return Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS")))?((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length()):(fe=H([],{}),Y(ie=(y=Te["~"])===S?S:y["$[]"](1))?Y(ie["$include?"](","))&&(M=ie.$partition(","),y=Me(M),ie=y[0]==null?S:y[0],y[1]==null||y[1],xe=y[2]==null?S:y[2],Y((xe=xe.$lstrip())["$empty?"]())&&(xe=S)):(Le=!0,ie=(y=Te["~"])===S?S:y["$[]"](2),Y(xe=(y=Te["~"])===S?S:y["$[]"](3))&&(Y(xe["$include?"](ge("R_SB")))&&(xe=xe.$gsub(ge("ESC_R_SB"),ge("R_SB"))),je(m.$compat_mode())&&Y(xe["$include?"]("="))&&(M=P.$extract_attributes_from_text(xe),y=Me(M),xe=y[0]==null?S:y[0],fe=y[1]==null?S:y[1]))),Y(m.$compat_mode())?Ke=ie:Y(nt=ie.$index("#"))&&Pe(ie["$[]"](Ze(nt,1)),"&")?Y(st(nt,0))?(Y(st(dt=Ze(Ze(ie.$length(),1),nt),0))?(y=[ie.$slice(0,nt),ie.$slice(v(nt,1),dt)],at=y[0],Ke=y[1]):at=ie.$chop(),Y(Le)?Y(at["$end_with?"](".adoc"))?pt=at=at.$slice(0,Ze(at.$length(),5)):je(ge("Helpers")["$extname?"](at))&&(pt=at):Y(Ie(at,"end_with?",ft(ge("ASCIIDOC_EXTENSIONS").$keys())))?pt=at=at.$slice(0,at.$rindex(".")):pt=at):(y=[ie,ie.$slice(1,ie.$length())],vt=y[0],Ke=y[1]):Y(Le)?Y(ie["$end_with?"](".adoc"))?pt=at=ie.$slice(0,Ze(ie.$length(),5)):Y(ge("Helpers")["$extname?"](ie))?at=ie:Ke=ie:Ke=ie,Y(vt)?(ie=Ke,Y(P.$logger()["$info?"]())&&je(m.$catalog()["$[]"]("refs")["$[]"](ie))&&P.$logger().$info("possible invalid reference: "+ie)):Y(at)?Y(pt)&&(Ye(m.$attributes()["$[]"]("docname"),at)||Y(m.$catalog()["$[]"]("includes")["$[]"](at)))?Y(Ke)?(y=[Ke,S,"#"+Ke],ie=y[0],at=y[1],vt=y[2],Y(P.$logger()["$info?"]())&&je(m.$catalog()["$[]"]("refs")["$[]"](ie))&&P.$logger().$info("possible invalid reference: "+ie)):(y=[S,S,"#"],ie=y[0],at=y[1],vt=y[2]):(y=[at,""+(Y(U=m.$attributes()["$[]"]("relfileprefix"))?U:"")+at+(Y(pt)?m.$attributes().$fetch("relfilesuffix",m.$outfilesuffix()):"")],ie=y[0],at=y[1],Y(Ke)?(y=[""+ie+"#"+Ke,""+at+"#"+Ke],ie=y[0],vt=y[1]):vt=at):Y(m.$compat_mode())||je(ge("Compliance").$natural_xrefs())?(y=[Ke,"#"+Ke],ie=y[0],vt=y[1],Y(P.$logger()["$info?"]())&&je(m.$catalog()["$[]"]("refs")["$[]"](ie))&&P.$logger().$info("possible invalid reference: "+ie)):Y(m.$catalog()["$[]"]("refs")["$[]"](Ke))?(y=[Ke,"#"+Ke],ie=y[0],vt=y[1]):(Y(Ke["$include?"](" "))||Pe(Ke.$downcase(),Ke))&&Y(ie=m.$resolve_id(Ke))?(y=[ie,"#"+ie],Ke=y[0],vt=y[1]):(y=[Ke,"#"+Ke],ie=y[0],vt=y[1],Y(P.$logger()["$info?"]())&&P.$logger().$info("possible invalid reference: "+ie)),fe["$[]="]("path",at),fe["$[]="]("fragment",Ke),fe["$[]="]("refid",ie),ge("Inline").$new(P,"anchor",xe,H(["type","target","attributes"],{type:"xref",target:vt,attributes:fe})).$convert())},{$$s:N})),Y(ue)&&Y(L["$include?"]("tnote"))&&(L=Ie(L,"gsub",[ge("InlineFootnoteMacroRx")],function x(){var y,M,P,fe=x.$$s==null?this:x.$$s,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S;if(Y(((y=Te["~"])===S?S:y["$[]"](0))["$start_with?"](ge("RS"))))return((y=Te["~"])===S?S:y["$[]"](0)).$slice(1,((y=Te["~"])===S?S:y["$[]"](0)).$length());if(Y((y=Te["~"])===S?S:y["$[]"](1)))if(Y((y=Te["~"])===S?S:y["$[]"](3)))M=((P=Te["~"])===S?S:P["$[]"](3)).$split(",",2),y=Me(M),ie=y[0]==null?S:y[0],xe=y[1]==null?S:y[1],Y(m.$compat_mode())||fe.$logger().$warn("found deprecated footnoteref macro: "+((y=Te["~"])===S?S:y["$[]"](0))+"; use footnote macro with target instead");else return(y=Te["~"])===S?S:y["$[]"](0);else ie=(y=Te["~"])===S?S:y["$[]"](2),xe=(y=Te["~"])===S?S:y["$[]"](3);if(Y(ie))Y(Le=Ie(m.$footnotes(),"find",[],function(pt){return pt==null&&(pt=S),pt.$id()["$=="](ie)}))?(y=[Le.$index(),Le.$text()],Ke=y[0],xe=y[1],y=["xref",ie,S],nt=y[0],dt=y[1],ie=y[2]):Y(xe)?(xe=fe.$restore_passthroughs(fe.$normalize_text(xe,!0,!0)),Ke=m.$counter("footnote-number"),m.$register("footnotes",tt(ge("Document"),"Footnote").$new(Ke,ie,xe)),y=["ref",S],nt=y[0],dt=y[1]):(fe.$logger().$warn("invalid footnote reference: "+ie),y=["xref",ie,ie,S],nt=y[0],dt=y[1],xe=y[2],ie=y[3]);else if(Y(xe))xe=fe.$restore_passthroughs(fe.$normalize_text(xe,!0,!0)),Ke=m.$counter("footnote-number"),m.$register("footnotes",tt(ge("Document"),"Footnote").$new(Ke,ie,xe)),nt=dt=S;else return(y=Te["~"])===S?S:y["$[]"](0);return ge("Inline").$new(fe,"footnote",xe,H(["attributes","id","target","type"],{attributes:H(["index"],{index:Ke}),id:ie,target:dt,type:nt})).$convert()},{$$s:N})),L}),E(Ce,"$sub_post_replacements",function(L){var N=this,re=S,O=S;return N.document==null&&(N.document=S),N.attributes==null&&(N.attributes=S),Y(N.attributes["$[]"]("hardbreaks-option"))||Y(N.document.$attributes()["$[]"]("hardbreaks-option"))?(re=L.$split(ge("LF"),-1),Y($t(re.$size(),2))?L:(O=re.$pop(),Ie(re,"map",[],function ue(U){var g=ue.$$s==null?this:ue.$$s;return U==null&&(U=S),ge("Inline").$new(g,"break",Y(U["$end_with?"](ge("HARD_LINE_BREAK")))?U.$slice(0,Ze(U.$length(),2)):U,H(["type"],{type:"line"})).$convert()},{$$s:N})["$<<"](O).$join(ge("LF")))):Y(L["$include?"](ge("PLUS")))&&Y(L["$include?"](ge("HARD_LINE_BREAK")))?Ie(L,"gsub",[ge("HardLineBreakRx")],function ue(){var U,g=ue.$$s==null?this:ue.$$s;return ge("Inline").$new(g,"break",(U=Te["~"])===S?S:U["$[]"](1),H(["type"],{type:"line"})).$convert()},{$$s:N}):L}),E(Ce,"$sub_source",function(L,N){var re=this;return Y(N)?re.$sub_callouts(re.$sub_specialchars(L)):re.$sub_specialchars(L)}),E(Ce,"$sub_callouts",function(L){var N=this,re=S,O=S;return re=Y(N["$attr?"]("line-comment"))?ge("CalloutSourceRxMap")["$[]"](N.$attr("line-comment")):ge("CalloutSourceRx"),O=0,Ie(L,"gsub",[re],function ue(){var U,g=ue.$$s==null?this:ue.$$s,u=S;return g.document==null&&(g.document=S),Y((U=Te["~"])===S?S:U["$[]"](2))?((U=Te["~"])===S?S:U["$[]"](0)).$sub(ge("RS"),""):ge("Inline").$new(g,"callout",Ye((U=Te["~"])===S?S:U["$[]"](4),".")?(O=v(O,1)).$to_s():(U=Te["~"])===S?S:U["$[]"](4),H(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:H(["guard"],{guard:Y(u=(U=Te["~"])===S?S:U["$[]"](1))?u:Ye((U=Te["~"])===S?S:U["$[]"](3),"--")?["<!--","-->"]:S})})).$convert()},{$$s:N})}),E(Ce,"$highlight_source",function(L,N){var re,O,ue=this,U=S,g=S,u=S,m=S,C=S,x=S,y=S,M=S,P=S,fe=S;return ue.document==null&&(ue.document=S),ue.passthroughs==null&&(ue.passthroughs=S),Y(U=ue.document.$syntax_highlighter())&&Y(U["$highlight?"]())?(Y(N)&&(O=ue.$extract_callouts(L),re=Me(O),L=re[0]==null?S:re[0],g=re[1]==null?S:re[1]),u=ue.document.$attributes(),m=U.$name(),Y(x=Y(ue["$attr?"]("linenums"))?(Y(y=u["$[]"](""+m+"-linenums-mode"))?y:"table").$to_sym():S)&&Y($t(C=ue.$attr("start",1).$to_i(),1))&&(C=1),Y(ue["$attr?"]("highlight"))&&(M=ue.$resolve_lines_to_highlight(L,ue.$attr("highlight"),C)),O=U.$highlight(ue,L,ue.$attr("language"),H(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:g,css_mode:(Y(y=u["$[]"](""+m+"-css"))?y:"class").$to_sym(),highlight_lines:M,number_lines:x,start_line_number:C,style:u["$[]"](""+m+"-style")})),re=Me(O),P=re[0]==null?S:re[0],fe=re[1]==null?S:re[1],Y(ue.passthroughs["$empty?"]())||(P=P.$gsub(ge("HighlightedPassSlotRx"),""+ge("PASS_START")+"\\1"+ge("PASS_END"))),Y(g["$nil_or_empty?"]())?P:ue.$restore_callouts(P,g,fe)):ue.$sub_source(L,N)}),E(Ce,"$resolve_lines_to_highlight",function(L,N,re){var O=S,ue=S;return re==null&&(re=S),O=[],Y(N["$include?"](" "))&&(N=N.$delete(" ")),Ie(Y(N["$include?"](","))?N.$split(","):N.$split(";"),"map",[],function(g){var u,m,C=S,x=S,y=S,M=S,P=S;return g==null&&(g=S),Y(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),C=!0),Y(x=Y(g["$include?"](".."))?"..":Y(g["$include?"]("-"))?"-":S)?(m=g.$partition(x),u=Me(m),y=u[0]==null?S:u[0],u[1]==null||u[1],M=u[2]==null?S:u[2],(Y(M["$empty?"]())||Y($t(M=M.$to_i(),0)))&&(M=v(L.$count(ge("LF")),1)),Y(C)?O=Ze(O,a.Range.$new(y.$to_i(),M,!1).$to_a()):O=O["$|"](a.Range.$new(y.$to_i(),M,!1).$to_a())):Y(C)?O.$delete(g.$to_i()):je(O["$include?"](P=g.$to_i()))?O["$<<"](P):S}),Ye(ue=Y(re)?Ze(re,1):0,0)||(O=Ie(O,"map",[],function(g){return g==null&&(g=S),Ze(g,ue)})),O.$sort()},-3),E(Ce,"$extract_passthroughs",function(L){var N,re,O=this,ue=S,U=S,g=S,u=S,m=S;return O.document==null&&(O.document=S),O.passthroughs==null&&(O.passthroughs=S),ue=O.document.$compat_mode(),U=O.passthroughs,(Y(L["$include?"]("++"))||Y(L["$include?"]("$$"))||Y(L["$include?"]("ss:")))&&(L=Ie(L,"gsub",[ge("InlinePassMacroRx")],function C(){var x,y=C.$$s==null?this:C.$$s,M=S,P=S,fe=S,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S;if(Y(M=(x=Te["~"])===S?S:x["$[]"](4))){if(Y(ue)&&Ye(M,"++"))return(Y((x=Te["~"])===S?S:x["$[]"](2))?""+((x=Te["~"])===S?S:x["$[]"](1))+"["+((x=Te["~"])===S?S:x["$[]"](2))+"]"+((x=Te["~"])===S?S:x["$[]"](3)):""+((x=Te["~"])===S?S:x["$[]"](1))+((x=Te["~"])===S?S:x["$[]"](3)))+"++"+y.$extract_passthroughs((x=Te["~"])===S?S:x["$[]"](5))+"++";if(Y(P=(x=Te["~"])===S?S:x["$[]"](2))){if(Y(st(fe=((x=Te["~"])===S?S:x["$[]"](3)).$length(),0)))return""+((x=Te["~"])===S?S:x["$[]"](1))+"["+P+"]"+z(ge("RS"),Ze(fe,1))+M+((x=Te["~"])===S?S:x["$[]"](5))+M;Ye((x=Te["~"])===S?S:x["$[]"](1),ge("RS"))?ie="["+P+"]":Ye(M,"++")?Ye(P,"x-")?(xe=!0,Le=H([],{})):Y(P["$end_with?"](" x-"))?(xe=!0,Le=y.$parse_quoted_text_attributes(P.$slice(0,Ze(P.$length(),3)))):Le=y.$parse_quoted_text_attributes(P):Le=y.$parse_quoted_text_attributes(P)}else if(Y(st(fe=((x=Te["~"])===S?S:x["$[]"](3)).$length(),0)))return""+z(ge("RS"),Ze(fe,1))+M+((x=Te["~"])===S?S:x["$[]"](5))+M;Ke=Ye(M,"+++")?[]:ge("BASIC_SUBS"),Y(Le)?Y(xe)?U["$[]="](nt=U.$size(),H(["text","subs","type","attributes"],{text:(x=Te["~"])===S?S:x["$[]"](5),subs:ge("NORMAL_SUBS"),type:"monospaced",attributes:Le})):U["$[]="](nt=U.$size(),H(["text","subs","type","attributes"],{text:(x=Te["~"])===S?S:x["$[]"](5),subs:Ke,type:"unquoted",attributes:Le})):U["$[]="](nt=U.$size(),H(["text","subs"],{text:(x=Te["~"])===S?S:x["$[]"](5),subs:Ke}))}else{if(Ye((x=Te["~"])===S?S:x["$[]"](6),ge("RS")))return((x=Te["~"])===S?S:x["$[]"](0)).$slice(1,((x=Te["~"])===S?S:x["$[]"](0)).$length());Y(Ke=(x=Te["~"])===S?S:x["$[]"](7))?U["$[]="](nt=U.$size(),H(["text","subs"],{text:y.$normalize_text((x=Te["~"])===S?S:x["$[]"](8),S,!0),subs:y.$resolve_pass_subs(Ke)})):U["$[]="](nt=U.$size(),H(["text"],{text:y.$normalize_text((x=Te["~"])===S?S:x["$[]"](8),S,!0)}))}return""+(Y(dt=ie)?dt:"")+ge("PASS_START")+nt+ge("PASS_END")},{$$s:O})),re=ge("InlinePassRx")["$[]"](ue),N=Me(re),g=N[0]==null?S:N[0],u=N[1]==null?S:N[1],m=N[2]==null?S:N[2],(Y(L["$include?"](g))||Y(u)&&Y(L["$include?"](u)))&&(L=Ie(L,"gsub",[m],function C(){var x,y=C.$$s==null?this:C.$$s,M=S,P=S,fe=S,ie=S,xe=S,Le=S,Ke=S,nt=S,dt=S,at=S,pt=S,vt=S;if(M=(x=Te["~"])===S?S:x["$[]"](1),P=Y(fe=(x=Te["~"])===S?S:x["$[]"](4))?fe:(x=Te["~"])===S?S:x["$[]"](3),Y((x=Te["~"])===S?S:x["$[]"](5))&&(ie=!0),xe=(x=Te["~"])===S?S:x["$[]"](6),Le=(x=Te["~"])===S?S:x["$[]"](7),Ke=(x=Te["~"])===S?S:x["$[]"](8),Y(ue)?nt=!0:Y(P)&&(Ye(P,"x-")||Y(P["$end_with?"](" x-")))&&(nt=dt=!0),Y(P)){if(Y(ie))return""+M+"["+P+"]"+xe.$slice(1,xe.$length());if(Ye(M,ge("RS"))){if(Y(dt)&&Ye(Le,"`"))return""+M+"["+P+"]"+xe;M="["+P+"]"}else Y(dt)?at=Ye(P,"x-")?H([],{}):y.$parse_quoted_text_attributes(P.$slice(0,Ze(P.$length(),3))):at=y.$parse_quoted_text_attributes(P)}else{if(Y(ie))return""+M+xe.$slice(1,xe.$length());if(Y(ue)&&Ye(M,ge("RS")))return xe}return Y(ue)?U["$[]="](pt=U.$size(),H(["text","subs","attributes","type"],{text:Ke,subs:ge("BASIC_SUBS"),attributes:at,type:"monospaced"})):Y(at)?Y(nt)?(vt=Ye(Le,"`")?ge("BASIC_SUBS"):ge("NORMAL_SUBS"),U["$[]="](pt=U.$size(),H(["text","subs","attributes","type"],{text:Ke,subs:vt,attributes:at,type:"monospaced"}))):U["$[]="](pt=U.$size(),H(["text","subs","attributes","type"],{text:Ke,subs:ge("BASIC_SUBS"),attributes:at,type:"unquoted"})):U["$[]="](pt=U.$size(),H(["text","subs"],{text:Ke,subs:ge("BASIC_SUBS")})),""+M+ge("PASS_START")+pt+ge("PASS_END")},{$$s:O})),Y(L["$include?"](":"))&&(Y(L["$include?"]("stem:"))||Y(L["$include?"]("math:")))&&(L=Ie(L,"gsub",[ge("InlineStemMacroRx")],function C(){var x,y=C.$$s==null?this:C.$$s,M=S,P=S,fe=S,ie=S;return y.document==null&&(y.document=S),Y(((x=Te["~"])===S?S:x["$[]"](0))["$start_with?"](ge("RS")))?((x=Te["~"])===S?S:x["$[]"](0)).$slice(1,((x=Te["~"])===S?S:x["$[]"](0)).$length()):(Ye(M=((x=Te["~"])===S?S:x["$[]"](1)).$to_sym(),"stem")&&(M=ge("STEM_TYPE_ALIASES")["$[]"](y.document.$attributes()["$[]"]("stem")).$to_sym()),P=(x=Te["~"])===S?S:x["$[]"](2),fe=y.$normalize_text((x=Te["~"])===S?S:x["$[]"](3),S,!0),Ye(M,"latexmath")&&Y(fe["$start_with?"]("$"))&&Y(fe["$end_with?"]("$"))&&(fe=fe.$slice(1,Ze(fe.$length(),2))),P=Y(P)?y.$resolve_pass_subs(P):Y(y.document["$basebackend?"]("html"))?ge("BASIC_SUBS"):S,U["$[]="](ie=U.$size(),H(["text","subs","type"],{text:fe,subs:P,type:M})),""+ge("PASS_START")+ie+ge("PASS_END"))},{$$s:O})),L}),E(Ce,"$restore_passthroughs",function(L){var N=this,re=S;return N.passthroughs==null&&(N.passthroughs=S),re=N.passthroughs,Ie(L,"gsub",[ge("PassSlotRx")],function O(){var ue,U=O.$$s==null?this:O.$$s,g=S,u=S,m=S,C=S,x=S;return Y(g=re["$[]"](((ue=Te["~"])===S?S:ue["$[]"](1)).$to_i()))?(u=U.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),Y(m=g["$[]"]("type"))&&(Y(C=g["$[]"]("attributes"))&&(x=C["$[]"]("id")),u=ge("Inline").$new(U,"quoted",u,H(["type","id","attributes"],{type:m,id:x,attributes:C})).$convert()),Y(u["$include?"](ge("PASS_START")))?U.$restore_passthroughs(u):u):(U.$logger().$error("unresolved passthrough detected: "+L),"??pass??")},{$$s:N})}),E(Ce,"$resolve_subs",function(L,N,re,O){var ue=this,U=S,g=S,u=S,m=S;return N==null&&(N="block"),re==null&&(re=S),O==null&&(O=S),Y(L["$nil_or_empty?"]())||(U=S,Y(L["$include?"](" "))&&(L=L.$delete(" ")),g=ge("SubModifierSniffRx")["$match?"](L),Ie(L.$split(","),"each",[],function(x){var y=S,M=S,P=S,fe=S,ie=S,xe=S;if(x==null&&(x=S),y=S,Y(g)&&(Ye(M=x.$chr(),"+")?(y="append",x=x.$slice(1,x.$length())):Ye(M,"-")?(y="remove",x=x.$slice(1,x.$length())):Y(x["$end_with?"]("+"))&&(y="prepend",x=x.$chop())),x=x.$to_sym(),Ye(N,"inline")&&(Ye(x,"verbatim")||Ye(x,"v"))?P=ge("BASIC_SUBS"):Y(ge("SUB_GROUPS")["$key?"](x))?P=ge("SUB_GROUPS")["$[]"](x):Ye(N,"inline")&&Ye(x.$length(),1)&&Y(ge("SUB_HINTS")["$key?"](x))?(fe=ge("SUB_HINTS")["$[]"](x),Y(ie=ge("SUB_GROUPS")["$[]"](fe))?P=ie:P=[fe]):P=[x],Y(y))switch(U=Y(xe=U)?xe:Y(re)?re.$drop(0):[],y){case"append":return U=v(U,P);case"prepend":return U=v(P,U);case"remove":return U=Ze(U,P);default:return S}else return U=Y(xe=U)?xe:[],U=v(U,P)}),!Y(U))?S:(u=U["$&"](ge("SUB_OPTIONS")["$[]"](N)),Y(Ze(U,u)["$empty?"]())||(m=Ze(U,u),ue.$logger().$warn("invalid substitution type"+(Y(st(m.$size(),1))?"s":"")+(Y(O)?" for ":"")+O+": "+m.$join(", "))),u)},-2),E(Ce,"$resolve_block_subs",function(L,N,re){var O=this;return O.$resolve_subs(L,"block",N,re)}),E(Ce,"$resolve_pass_subs",function(L){var N=this;return N.$resolve_subs(L,"inline",S,"passthrough macro")}),E(Ce,"$expand_subs",function(L,N){var re=this,O=S,ue=S,U=S;return N==null&&(N=S),Ve(tt("Symbol"),O=L)?Ye(L,"none")?S:Y(ue=ge("SUB_GROUPS")["$[]"](L))?ue:[L]:Ve(tt("Array"),O)?(U=[],Ie(L,"each",[],function(u){var m=S;return u==null&&(u=S),Ye(u,"none")?S:Y(m=ge("SUB_GROUPS")["$[]"](u))?U=v(U,m):U["$<<"](u)}),Y(U["$empty?"]())?S:U):re.$resolve_subs(L,"inline",S,N)},-2),E(Ce,"$commit_subs",function(){var L=this,N=S,re=S,O=S,ue=S,U=S;if(L.default_subs==null&&(L.default_subs=S),L.content_model==null&&(L.content_model=S),L.context==null&&(L.context=S),L.subs==null&&(L.subs=S),L.attributes==null&&(L.attributes=S),L.document==null&&(L.document=S),L.style==null&&(L.style=S),!Y(N=L.default_subs))switch(L.content_model){case"simple":N=ge("NORMAL_SUBS");break;case"verbatim":N=Ye(L.context,"verse")?ge("NORMAL_SUBS"):ge("VERBATIM_SUBS");break;case"raw":N=Ye(L.context,"stem")?ge("BASIC_SUBS"):ge("NO_SUBS");break;default:return L.subs}return Y(re=L.attributes["$[]"]("subs"))?L.subs=Y(O=L.$resolve_block_subs(re,N,L.context))?O:[]:L.subs=N.$drop(0),Ye(L.context,"listing")&&Ye(L.style,"source")&&Y(U=L.document.$syntax_highlighter())&&Y(U["$highlight?"]())&&Y(ue=L.subs.$index("specialcharacters"))&&L.subs["$[]="](ue,"highlight"),S}),E(Ce,"$parse_attributes",function(L,N,re){var O=this,ue=S,U=S;return O.document==null&&(O.document=S),N==null&&(N=[]),re==null&&(re=H([],{})),Y(Y(L)?L["$empty?"]():!0)?H([],{}):(Y(re["$[]"]("unescape_input"))&&(L=O.$normalize_text(L,!0,!0)),Y(re["$[]"]("sub_input"))&&Y(L["$include?"](ge("ATTR_REF_HEAD")))&&(L=O.document.$sub_attributes(L)),Y(re["$[]"]("sub_result"))&&(ue=O),Y(U=re["$[]"]("into"))?ge("AttributeList").$new(L,ue).$parse_into(U,N):ge("AttributeList").$new(L,ue).$parse(N))},-2),Ce.$private(),E(Ce,"$extract_attributes_from_text",function(L,N){var re=this,O=S,ue=S,U=S;return N==null&&(N=S),O=Y(L["$include?"](ge("LF")))?L.$tr(ge("LF")," "):L,Y(ue=(U=ge("AttributeList").$new(O,re).$parse())["$[]"](1))?Ye(ue,O)?[L,U.$clear()]:[ue,U]:[N,U]},-2),E(Ce,"$extract_callouts",function(L){var N=this,re=S,O=S,ue=S,U=S,g=S;return re=H([],{}),O=ue=0,U=S,g=Y(N["$attr?"]("line-comment"))?ge("CalloutExtractRxMap")["$[]"](N.$attr("line-comment")):ge("CalloutExtractRx"),L=Ie(L.$split(ge("LF"),-1),"map",[],function(m){return m==null&&(m=S),ue=v(ue,1),Ie(m,"gsub",[g],function(){var x,y=S;return Y((x=Te["~"])===S?S:x["$[]"](2))?((x=Te["~"])===S?S:x["$[]"](0)).$sub(ge("RS"),""):((Y(y=re["$[]"](ue))?y:(x=[ue,[]],Ie(re,"[]=",x),x[x.length-1]))["$<<"]([Y(y=(x=Te["~"])===S?S:x["$[]"](1))?y:Ye((x=Te["~"])===S?S:x["$[]"](3),"--")?["<!--","-->"]:S,Ye((x=Te["~"])===S?S:x["$[]"](4),".")?(O=v(O,1)).$to_s():(x=Te["~"])===S?S:x["$[]"](4)]),U=ue,"")})}).$join(ge("LF")),Y(U)?Ye(U,ue)&&(L=""+L+ge("LF")):re=S,[L,re]}),E(Ce,"$restore_callouts",function(L,N,re){var O=this,ue=S,U=S;return re==null&&(re=S),Y(re)?(ue=L.$slice(0,re),L=L.$slice(re,L.$length())):ue="",U=0,v(ue,Ie(L.$split(ge("LF"),-1),"map",[],function g(u){var m,C,x=g.$$s==null?this:g.$$s,y=S,M=S,P=S;return x.document==null&&(x.document=S),u==null&&(u=S),Y(y=N.$delete(U=v(U,1)))?Ye(y.$size(),1)?(C=y["$[]"](0),m=Me(C),M=m[0]==null?S:m[0],P=m[1]==null?S:m[1],""+u+ge("Inline").$new(x,"callout",P,H(["id","attributes"],{id:x.document.$callouts().$read_next_id(),attributes:H(["guard"],{guard:M})})).$convert()):""+u+Ie(y,"map",[],function fe(ie,xe){var Le=fe.$$s==null?this:fe.$$s;return Le.document==null&&(Le.document=S),ie==null&&(ie=S),xe==null&&(xe=S),ge("Inline").$new(Le,"callout",xe,H(["id","attributes"],{id:Le.document.$callouts().$read_next_id(),attributes:H(["guard"],{guard:ie})})).$convert()},{$$s:x}).$join(" "):u},{$$s:O}).$join(ge("LF")))},-3),E(Ce,"$convert_quoted_text",function(L,N,re){var O=this,ue=S,U=S,g=S,u=S,m=S;if(Y(L["$[]"](0)["$start_with?"](ge("RS"))))if(Ye(re,"constrained")&&Y(ue=L["$[]"](2)))U="["+ue+"]";else return L["$[]"](0).$slice(1,L["$[]"](0).$length());return Ye(re,"constrained")?Y(U)?""+U+ge("Inline").$new(O,"quoted",L["$[]"](3),H(["type"],{type:N})).$convert():(Y(g=L["$[]"](2))&&(u=(m=O.$parse_quoted_text_attributes(g))["$[]"]("id"),Ye(N,"mark")&&(N="unquoted")),""+L["$[]"](1)+ge("Inline").$new(O,"quoted",L["$[]"](3),H(["type","id","attributes"],{type:N,id:u,attributes:m})).$convert()):(Y(g=L["$[]"](1))&&(u=(m=O.$parse_quoted_text_attributes(g))["$[]"]("id"),Ye(N,"mark")&&(N="unquoted")),ge("Inline").$new(O,"quoted",L["$[]"](2),H(["type","id","attributes"],{type:N,id:u,attributes:m})).$convert())}),E(Ce,"$do_replacement",function(L,N,re){var O=S;if(Y((O=L["$[]"](0))["$include?"](ge("RS"))))return O.$sub(ge("RS"),"");switch(re){case"none":return N;case"bounding":return v(v(L["$[]"](1),N),L["$[]"](2));default:return v(L["$[]"](1),N)}}),E(Ce,"$parse_quoted_text_attributes",function(L){var N,re,O=this,ue=S,U=S,g=S,u=S,m=S;return Y(L["$include?"](ge("ATTR_REF_HEAD")))&&(L=O.$sub_attributes(L)),Y(L["$include?"](","))&&(L=L.$slice(0,L.$index(","))),Y((L=L.$strip())["$empty?"]())?H([],{}):Y(L["$start_with?"](".","#"))&&Y(ge("Compliance").$shorthand_property_syntax())?(re=L.$partition("#"),N=Me(re),ue=N[0]==null?S:N[0],N[1]==null||N[1],U=N[2]==null?S:N[2],g=H([],{}),Y(U["$empty?"]())?Y(st(ue.$length(),1))&&g["$[]="]("role",ue.$tr("."," ").$lstrip()):(re=U.$partition("."),N=Me(re),u=N[0]==null?S:N[0],N[1]==null||N[1],m=N[2]==null?S:N[2],Y(u["$empty?"]())||g["$[]="]("id",u),Y(m["$empty?"]())?Y(st(ue.$length(),1))&&g["$[]="]("role",ue.$tr("."," ").$lstrip()):Y(st(ue.$length(),1))?g["$[]="]("role",v(v(ue,"."),m).$tr("."," ").$lstrip()):g["$[]="]("role",m.$tr("."," "))),g):H(["role"],{role:L})}),E(Ce,"$normalize_text",function(L,N,re){return N==null&&(N=S),re==null&&(re=S),Y(L["$empty?"]())||(Y(N)&&(L=L.$strip().$tr(ge("LF")," ")),Y(re)&&Y(L["$include?"](ge("R_SB")))&&(L=L.$gsub(ge("ESC_R_SB"),ge("R_SB")))),L},-2),E(Ce,"$split_simple_csv",function(L){var N=S,re=S,O=S;return Y(L["$empty?"]())?[]:Y(L["$include?"]('"'))?(N=[],re="",O=S,Ie(L,"each_char",[],function(U){switch(U==null&&(U=S),U){case",":return Y(O)?re=v(re,U):(N["$<<"](re.$strip()),re="");case'"':return O=O["$!"]();default:return re=v(re,U)}}),N["$<<"](re.$strip())):Ie(L.$split(","),"map",[],function(U){return U==null&&(U=S),U.$strip()})})}(Ue[0],Ue)}(et[0],et)},Opal.modules["asciidoctor/version"]=function(a){var ne=a.module,ee=a.const_set,H=[];return a.nil,function(_e,v){var V=ne(_e,"Asciidoctor"),je=[V].concat(v);return ee(je[0],"VERSION","2.0.20")}(H[0],H)},Opal.modules["asciidoctor/abstract_node"]=function(a){var ne=a.module,ee=a.klass,H=a.hash2,_e=a.eqeq,v=a.truthy,V=a.def,je=a.send,Y=a.rb_minus,Ie=a.eqeqeq,E=a.rb_lt,Je=a.not,Te=a.to_ary,Ye=[],Me=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(ft,Ve){var st=ne(ft,"Asciidoctor"),We=[st].concat(Ve);return function(Ze,$t,z){var et=ee(Ze,$t,"AbstractNode"),S=[et].concat(z),tt=a.$r(S),lt=et.$$prototype;return lt.document=lt.attributes=lt.parent=Me,et.$include(tt("Logging")),et.$include(tt("Substitutors")),et.$attr_reader("attributes"),et.$attr_reader("context"),et.$attr_reader("document"),et.$attr_accessor("id"),et.$attr_reader("node_name"),et.$attr_reader("parent"),V(et,"$initialize",function(I,Ue,be){var Ne=this,Ce=Me;return be==null&&(be=H([],{})),_e(Ue,"document")?Ne.document=Ne:v(I)&&(Ne.document=(Ne.parent=I).$document()),Ne.node_name=(Ne.context=Ue).$to_s(),Ne.attributes=v(Ce=be["$[]"]("attributes"))?Ce.$merge():H([],{}),Ne.passthroughs=[]},-3),V(et,"$block?",function(){var I=this;return I.$raise(Pe("NotImplementedError"))}),V(et,"$inline?",function(){var I=this;return I.$raise(Pe("NotImplementedError"))}),V(et,"$converter",function(){var I=this;return I.document.$converter()}),V(et,"$parent=",function(I){var Ue,be=this;return Ue=[I,I.$document()],be.parent=Ue[0],be.document=Ue[1],Ue}),V(et,"$attr",function(I,Ue,be){var Ne=this,Ce=Me,se=Me,ge=Me,Q=Me;return Ue==null&&(Ue=Me),be==null&&(be=Me),v(Ce=Ne.attributes["$[]"](I.$to_s()))?Ce:v(se=v(ge=v(Q=be)?Ne.parent:Q)?Ne.document.$attributes()["$[]"]((_e(be,!0)?I:be).$to_s()):ge)?se:Ue},-2),V(et,"$attr?",function(I,Ue,be){var Ne=this,Ce=Me;return Ue==null&&(Ue=Me),be==null&&(be=Me),v(Ue)?Ue["$=="](v(Ce=Ne.attributes["$[]"](I.$to_s()))?Ce:v(be)&&v(Ne.parent)?Ne.document.$attributes()["$[]"]((_e(be,!0)?I:be).$to_s()):Me):v(Ce=Ne.attributes["$key?"](I.$to_s()))?Ce:v(be)&&v(Ne.parent)?Ne.document.$attributes()["$key?"]((_e(be,!0)?I:be).$to_s()):!1},-2),V(et,"$set_attr",function(I,Ue,be){var Ne=this;return Ue==null&&(Ue=""),be==null&&(be=!0),_e(be,!1)&&v(Ne.attributes["$key?"](I))?!1:(Ne.attributes["$[]="](I,Ue),!0)},-2),V(et,"$remove_attr",function(I){var Ue=this;return Ue.attributes.$delete(I)}),V(et,"$option?",function(I){var Ue=this;return!!v(Ue.attributes["$[]"](""+I+"-option"))}),V(et,"$set_option",function(I){var Ue=this;return Ue.attributes["$[]="](""+I+"-option",""),Me}),V(et,"$enabled_options",function(){var I=this;return je(Pe("Set").$new(),"tap",[],function Ue(be){var Ne=Ue.$$s==null?this:Ue.$$s;return Ne.attributes==null&&(Ne.attributes=Me),be==null&&(be=Me),je(Ne.attributes,"each_key",[],function(se){return se==null&&(se=Me),v(se.$to_s()["$end_with?"]("-option"))?be["$<<"](se.$slice(0,Y(se.$length(),7))):Me})},{$$s:I})}),V(et,"$update_attributes",function(I){var Ue=this;return Ue.attributes.$update(I)}),V(et,"$role",function(){var I=this;return I.attributes["$[]"]("role")}),V(et,"$roles",function(){var I=this,Ue=Me;return v(Ue=I.attributes["$[]"]("role"))?Ue.$split():[]}),V(et,"$role?",function(I){var Ue=this;return I==null&&(I=Me),v(I)?I["$=="](Ue.attributes["$[]"]("role")):Ue.attributes["$key?"]("role")},-1),V(et,"$has_role?",function(I){var Ue=this,be=Me;return v(be=Ue.attributes["$[]"]("role"))?(" "+be+" ")["$include?"](" "+I+" "):!1}),V(et,"$role=",function(I){var Ue,be=this;return Ue=["role",Ie(Pe("Array"),I)?I.$join(" "):I],je(be.attributes,"[]=",Ue),Ue[Ue.length-1]}),V(et,"$add_role",function(I){var Ue=this,be=Me;return v(be=Ue.attributes["$[]"]("role"))?v((" "+be+" ")["$include?"](" "+I+" "))?!1:(Ue.attributes["$[]="]("role",""+be+" "+I),!0):(Ue.attributes["$[]="]("role",I),!0)}),V(et,"$remove_role",function(I){var Ue=this,be=Me;return v(be=Ue.attributes["$[]"]("role"))&&v((be=be.$split()).$delete(I))?(v(be["$empty?"]())?Ue.attributes.$delete("role"):Ue.attributes["$[]="]("role",be.$join(" ")),!0):!1}),V(et,"$reftext",function(){var I=this,Ue=Me;return v(Ue=I.attributes["$[]"]("reftext"))?I.$apply_reftext_subs(Ue):Me}),V(et,"$reftext?",function(){var I=this;return I.attributes["$key?"]("reftext")}),V(et,"$icon_uri",function(I){var Ue=this,be=Me;return v(Ue["$attr?"]("icon"))?(be=Ue.$attr("icon"),v(tt("Helpers")["$extname?"](be))||(be=""+be+"."+Ue.document.$attr("icontype","png"))):be=""+I+"."+Ue.document.$attr("icontype","png"),Ue.$image_uri(be,"iconsdir")}),V(et,"$image_uri",function(I,Ue){var be=this,Ne=Me,Ce=Me;return Ue==null&&(Ue="imagesdir"),v(E((Ne=be.document).$safe(),Pe(tt("SafeMode"),"SECURE")))&&v(Ne["$attr?"]("data-uri"))?v(tt("Helpers")["$uriish?"](I))&&v(I=tt("Helpers").$encode_spaces_in_uri(I))||v(Ue)&&v(Ce=Ne.$attr(Ue))&&v(tt("Helpers")["$uriish?"](Ce))&&v(I=be.$normalize_web_path(I,Ce,!1))?v(Ne["$attr?"]("allow-uri-read"))?be.$generate_data_uri_from_uri(I,Ne["$attr?"]("cache-uri")):I:be.$generate_data_uri(I,Ue):be.$normalize_web_path(I,v(Ue)?Ne.$attr(Ue):Me)},-2),V(et,"$media_uri",function(I,Ue){var be=this;return Ue==null&&(Ue="imagesdir"),be.$normalize_web_path(I,v(Ue)?be.document.$attr(Ue):Me)},-2),V(et,"$generate_data_uri",function(I,Ue){var be=this,Ne=Me,Ce=Me,se=Me;return Ue==null&&(Ue=Me),v(Ne=tt("Helpers").$extname(I,Me))?Ce=_e(Ne,".svg")?"image/svg+xml":"image/"+Ne.$slice(1,Ne.$length()):Ce="application/octet-stream",v(Ue)?se=be.$normalize_system_path(I,be.document.$attr(Ue),Me,H(["target_name"],{target_name:"image"})):se=be.$normalize_system_path(I),v(Pe("File")["$readable?"](se))?"data:"+Ce+";base64,"+Pe("Base64").$strict_encode64(Pe("File").$binread(se)):(be.$logger().$warn("image to embed not found or not readable: "+se),"data:"+Ce+";base64,")},-2),V(et,"$generate_data_uri_from_uri",function(I,Ue){var be,Ne,Ce=this,se=Me,ge=Me;Ue==null&&(Ue=!1),v(Ue)?tt("Helpers").$require_library("open-uri/cached","open-uri-cached"):Je(tt("RUBY_ENGINE_OPAL"))&&Pe("OpenURI");try{return Ne=je(Pe("OpenURI"),"open_uri",[I,tt("URI_READ_MODE")],function(L){return L==null&&(L=Me),[L.$content_type(),L.$read()]}),be=Te(Ne),se=be[0]==null?Me:be[0],ge=be[1]==null?Me:be[1],"data:"+se+";base64,"+Pe("Base64").$strict_encode64(ge)}catch(Q){if(a.rescue(Q,[tt("StandardError")]))try{return Ce.$logger().$warn("could not retrieve image data from URI: "+I),I}finally{a.pop_exception()}else throw Q}},-2),V(et,"$normalize_asset_path",function(I,Ue,be){var Ne=this;return Ue==null&&(Ue="path"),be==null&&(be=!0),Ne.$normalize_system_path(I,Ne.document.$base_dir(),Me,H(["target_name","recover"],{target_name:Ue,recover:be}))},-2),V(et,"$normalize_system_path",function(I,Ue,be,Ne){var Ce=this,se=Me,ge=Me;return Ue==null&&(Ue=Me),be==null&&(be=Me),Ne==null&&(Ne=H([],{})),v(E((se=Ce.document).$safe(),Pe(tt("SafeMode"),"SAFE")))?v(Ue)?v(se.$path_resolver()["$root?"](Ue))||(Ue=Pe("File").$join(se.$base_dir(),Ue)):Ue=se.$base_dir():(Ue=v(ge=Ue)?ge:se.$base_dir(),be=v(ge=be)?ge:se.$base_dir()),se.$path_resolver().$system_path(I,Ue,be,Ne)},-2),V(et,"$normalize_web_path",function(I,Ue,be){var Ne=this;return Ue==null&&(Ue=Me),be==null&&(be=!0),v(be)&&v(tt("Helpers")["$uriish?"](I))?tt("Helpers").$encode_spaces_in_uri(I):Ne.document.$path_resolver().$web_path(I,Ue)},-2),V(et,"$read_asset",function(I,Ue){var be=this,Ne=Me;return Ue==null&&(Ue=H([],{})),Ie(Pe("Hash"),Ue)||(Ue=H(["warn_on_failure"],{warn_on_failure:Ue["$!="](!1)})),v(Pe("File")["$readable?"](I))?v(Ue["$[]"]("normalize"))?tt("Helpers").$prepare_source_string(Pe("File").$read(I,H(["mode"],{mode:tt("FILE_READ_MODE")}))).$join(tt("LF")):Pe("File").$read(I,H(["mode"],{mode:tt("FILE_READ_MODE")})):(v(Ue["$[]"]("warn_on_failure"))&&be.$logger().$warn(""+(v(Ne=be.$attr("docfile"))?Ne:"<stdin>")+": "+(v(Ne=Ue["$[]"]("label"))?Ne:"file")+" does not exist or cannot be read: "+I),Me)},-2),V(et,"$read_contents",function(I,Ue){var be=this,Ne=Me,Ce=Me,se=Me,ge=Me;if(Ue==null&&(Ue=H([],{})),Ne=be.document,v(tt("Helpers")["$uriish?"](I))||v(Ce=Ue["$[]"]("start"))&&v(tt("Helpers")["$uriish?"](Ce))&&v(I=Ne.$path_resolver().$web_path(I,Ce)))if(v(Ne["$attr?"]("allow-uri-read"))){v(Ne["$attr?"]("cache-uri"))&&tt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{v(Ue["$[]"]("normalize"))?se=tt("Helpers").$prepare_source_string(je(Pe("OpenURI"),"open_uri",[I,tt("URI_READ_MODE")],function(L){return L==null&&(L=Me),L.$read()})).$join(tt("LF")):se=je(Pe("OpenURI"),"open_uri",[I,tt("URI_READ_MODE")],function(L){return L==null&&(L=Me),L.$read()})}catch(Q){if(a.rescue(Q,[tt("StandardError")]))try{v(Ue.$fetch("warn_on_failure",!0))&&be.$logger().$warn("could not retrieve contents of "+(v(ge=Ue["$[]"]("label"))?ge:"asset")+" at URI: "+I)}finally{a.pop_exception()}else throw Q}}else v(Ue.$fetch("warn_on_failure",!0))&&be.$logger().$warn("cannot retrieve contents of "+(v(ge=Ue["$[]"]("label"))?ge:"asset")+" at URI: "+I+" (allow-uri-read attribute not enabled)");else I=be.$normalize_system_path(I,Ue["$[]"]("start"),Me,H(["target_name"],{target_name:v(ge=Ue["$[]"]("label"))?ge:"asset"})),se=be.$read_asset(I,H(["normalize","warn_on_failure","label"],{normalize:Ue["$[]"]("normalize"),warn_on_failure:Ue.$fetch("warn_on_failure",!0),label:Ue["$[]"]("label")}));return v(se)&&v(Ue["$[]"]("warn_if_empty"))&&v(se["$empty?"]())&&be.$logger().$warn("contents of "+(v(ge=Ue["$[]"]("label"))?ge:"asset")+" is empty: "+I),se},-2),V(et,"$is_uri?",function(I){return tt("Helpers")["$uriish?"](I)})}(We[0],null,We)}(Ye[0],Ye)},Opal.modules["asciidoctor/abstract_block"]=function(a){var ne=a.module,ee=a.klass,H=a.hash2,_e=a.send2,v=a.find_super,V=a.eqeq,je=a.eqeqeq,Y=a.def,Ie=a.return_val,E=a.truthy,Je=a.alias,Te=a.send,Ye=a.rb_plus,Me=a.not,Pe=a.neqeq,ft=[],Ve=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(We,Ze){var $t=ne(We,"Asciidoctor"),z=[$t].concat(Ze),et=a.$r(z);return function(S,tt,lt){var K=ee(S,tt,"AbstractBlock"),I=[K].concat(lt),Ue=a.$r(I),be=K.$$prototype;return be.source_location=be.document=be.attributes=be.blocks=be.numeral=be.context=be.parent=be.caption=be.style=be.converted_title=be.title=be.subs=be.next_section_index=be.next_section_ordinal=be.id=be.header=Ve,K.$attr_reader("blocks"),K.$attr_writer("caption"),K.$attr_accessor("content_model"),K.$attr_accessor("level"),K.$attr_accessor("numeral"),K.$attr_accessor("source_location"),K.$attr_accessor("style"),K.$attr_reader("subs"),Y(K,"$initialize",function Ne(Ce,se,ge){var Q=Ne.$$p||Ve,L=this;return Ne.$$p=null,ge==null&&(ge=H([],{})),_e(L,v(L,"initialize",Ne,!1,!0),"initialize",[Ce,se,ge],Q),L.content_model="compound",L.blocks=[],L.subs=[],L.id=L.title=L.caption=L.numeral=L.style=L.default_subs=L.source_location=Ve,V(se,"document")||V(se,"section")?(L.level=L.next_section_index=0,L.next_section_ordinal=1):je(Ue("AbstractBlock"),Ce)?L.level=Ce.$level():L.level=Ve},-3),Y(K,"$block?",Ie(!0)),Y(K,"$inline?",Ie(!1)),Y(K,"$file",function(){var Ce=this,se=Ve;return E(se=Ce.source_location)?Ce.source_location.$file():se}),Y(K,"$lineno",function(){var Ce=this,se=Ve;return E(se=Ce.source_location)?Ce.source_location.$lineno():se}),Y(K,"$convert",function(){var Ce=this;return Ce.document.$playback_attributes(Ce.attributes),Ce.$converter().$convert(Ce)}),Je(K,"render","convert"),Y(K,"$content",function(){var Ce=this;return Te(Ce.blocks,"map",[],function(ge){return ge==null&&(ge=Ve),ge.$convert()}).$join(Ue("LF"))}),Y(K,"$context=",function(Ce){var se=this;return se.node_name=(se.context=Ce).$to_s()}),Y(K,"$<<",function(Ce){var se=this;return V(Ce.$parent(),se)||Ce["$parent="](se),se.blocks["$<<"](Ce),se}),Je(K,"append","<<"),Y(K,"$blocks?",function(){var Ce=this;return!E(Ce.blocks["$empty?"]())}),Y(K,"$sections?",Ie(!1)),Y(K,"$number",function(){var Ce=this;try{return Ce.$Integer(Ce.numeral)}catch(se){if(a.rescue(se,[Ue("StandardError")]))try{return Ce.numeral}finally{a.pop_exception()}else throw se}}),Y(K,"$number=",function(Ce){var se=this;return se.numeral=Ce.$to_s()}),Y(K,"$find_by",function Ne(Ce){var se=Ne.$$p||Ve,ge=this,Q=Ve;Ne.$$p=null,Ce==null&&(Ce=H([],{}));try{return Te(ge,"find_by_internal",[Ce,Q=[]],se.$to_proc())}catch(L){if(a.rescue(L,[st("StopIteration")]))try{return Q}finally{a.pop_exception()}else throw L}},-1),Je(K,"query","find_by"),Y(K,"$next_adjacent_block",function(){var Ce=this,se=Ve,ge=Ve;return V(Ce.context,"document")?Ve:V((se=Ce.parent).$context(),"dlist")&&V(Ce.context,"list_item")?E(ge=se.$items()["$[]"](Ye(Te(se.$items(),"find_index",[],function Q(L,N){var re=Q.$$s==null?this:Q.$$s,O=Ve;return L==null&&(L=Ve),N==null&&(N=Ve),E(O=L["$include?"](re))?O:N["$=="](re)},{$$s:Ce}),1)))?ge:se.$next_adjacent_block():E(ge=se.$blocks()["$[]"](Ye(se.$blocks().$find_index(Ce),1)))?ge:se.$next_adjacent_block()}),Y(K,"$sections",function(){var Ce=this;return Te(Ce.blocks,"select",[],function(ge){return ge==null&&(ge=Ve),ge.$context()["$=="]("section")})}),Y(K,"$alt",function(){var Ce=this,se=Ve;return E(se=Ce.attributes["$[]"]("alt"))?V(se,Ce.attributes["$[]"]("default-alt"))?Ce.$sub_specialchars(se):(se=Ce.$sub_specialchars(se),E(Ue("ReplaceableTextRx")["$match?"](se))?Ce.$sub_replacements(se):se):""}),Y(K,"$caption",function(){var Ce=this;return V(Ce.context,"admonition")?Ce.attributes["$[]"]("textlabel"):Ce.caption}),Y(K,"$captioned_title",function(){var Ce=this;return""+Ce.caption+Ce.$title()}),Y(K,"$list_marker_keyword",function(Ce){var se=this,ge=Ve;return Ce==null&&(Ce=Ve),Ue("ORDERED_LIST_KEYWORDS")["$[]"](E(ge=Ce)?ge:se.style)},-1),Y(K,"$title",function(){var Ce=this,se=Ve,ge=Ve;return Ce.converted_title=E(se=Ce.converted_title)?se:E(ge=Ce.title)?Ce.$apply_title_subs(Ce.title):ge}),Y(K,"$title?",function(){var Ce=this;return!!E(Ce.title)}),Y(K,"$title=",function(Ce){var se=this;return se.converted_title=Ve,se.title=Ce}),Y(K,"$sub?",function(Ce){var se=this;return se.subs["$include?"](Ce)}),Y(K,"$remove_sub",function(Ce){var se=this;return se.subs.$delete(Ce),Ve}),Y(K,"$xreftext",function(Ce){var se=this,ge=Ve,Q=Ve,L=Ve,N=Ve;if(Ce==null&&(Ce=Ve),E(ge=se.$reftext())&&Me(ge["$empty?"]()))return ge;if(E(Ce)&&E(se.title)&&Me(se.caption["$nil_or_empty?"]()))switch(Ce){case"full":return Q=se.$sub_placeholder(se.$sub_quotes(E(se.document.$compat_mode())?"``%s''":'"`%s`"'),se.$title()),E(se.numeral)&&E(N=Ue("CAPTION_ATTRIBUTE_NAMES")["$[]"](se.context))&&E(L=se.document.$attributes()["$[]"](N))?""+L+" "+se.numeral+", "+Q:""+se.caption.$chomp(". ")+", "+Q;case"short":return E(se.numeral)&&E(N=Ue("CAPTION_ATTRIBUTE_NAMES")["$[]"](se.context))&&E(L=se.document.$attributes()["$[]"](N))?""+L+" "+se.numeral:se.caption.$chomp(". ");default:return se.$title()}else return se.$title()},-1),Y(K,"$assign_caption",function(Ce,se){var ge=this,Q=Ve,L=Ve,N=Ve;return se==null&&(se=ge.context),E(ge.caption)||Me(ge.title)||E(ge.caption=E(Q=Ce)?Q:ge.document.$attributes()["$[]"]("caption"))||E(N=Ue("CAPTION_ATTRIBUTE_NAMES")["$[]"](se))&&E(L=ge.document.$attributes()["$[]"](N))&&(ge.caption=""+L+" "+(ge.numeral=ge.document.$increment_and_store_counter(""+se+"-number",ge))+". "),Ve},-2),Y(K,"$assign_numeral",function(Ce){var se,ge=this,Q=Ve,L=Ve,N=Ve;return ge.next_section_index=Ye((se=[ge.next_section_index],Te(Ce,"index=",se),se[se.length-1]),1),E(Q=Ce.$numbered())&&(V(L=Ce.$sectname(),"appendix")?(Ce["$numeral="](ge.document.$counter("appendix-number","A")),Ce["$caption="](E(N=ge.document.$attributes()["$[]"]("appendix-caption"))?""+N+" "+Ce.$numeral()+": ":""+Ce.$numeral()+". ")):V(L,"chapter")||V(Q,"chapter")?Ce["$numeral="](ge.document.$counter("chapter-number",1).$to_s()):(Ce["$numeral="](V(L,"part")?Ue("Helpers").$int_to_roman(ge.next_section_ordinal):ge.next_section_ordinal.$to_s()),ge.next_section_ordinal=Ye(ge.next_section_ordinal,1))),Ve}),Y(K,"$reindex_sections",function(){var Ce=this;return Ce.next_section_index=0,Ce.next_section_ordinal=1,Te(Ce.blocks,"each",[],function se(ge){var Q=se.$$s==null?this:se.$$s;return ge==null&&(ge=Ve),V(ge.$context(),"section")?(Q.$assign_numeral(ge),ge.$reindex_sections()):Ve},{$$s:Ce})}),K.$protected(),Y(K,"$find_by_internal",function Ne(Ce,se){var ge=Ne.$$p||Ve,Q=this,L=Ve,N=Ve,re=Ve,O=Ve,ue=Ve,U=Ve;if(Ne.$$p=null,Ce==null&&(Ce=H([],{})),se==null&&(se=[]),(E(O=E(ue=Ce["$[]"]("context"))?Ve:!0)||V(ue,Q.context))&&(Me(re=Ce["$[]"]("style"))||V(re,Q.style))&&(Me(N=Ce["$[]"]("role"))||E(Q["$has_role?"](N)))&&(Me(L=Ce["$[]"]("id"))||V(L,Q.id)))if(ge!==Ve)if(E(U=a.yield1(ge,Q)))switch(U){case"prune":return se["$<<"](Q),E(L)&&Q.$raise(st("StopIteration")),se;case"reject":return E(L)&&Q.$raise(st("StopIteration")),se;case"stop":Q.$raise(st("StopIteration"));break;default:se["$<<"](Q),E(L)&&Q.$raise(st("StopIteration"))}else E(L)&&Q.$raise(st("StopIteration"));else se["$<<"](Q),E(L)&&Q.$raise(st("StopIteration"));switch(Q.context){case"document":V(ue,"document")||(E(Q["$header?"]())&&(E(O)||V(ue,"section"))&&Te(Q.header,"find_by_internal",[Ce,se],ge.$to_proc()),Te(Q.blocks,"each",[],function(u){return u==null&&(u=Ve),V(ue,"section")&&Pe(u.$context(),"section")?Ve:Te(u,"find_by_internal",[Ce,se],ge.$to_proc())}));break;case"dlist":(E(O)||Pe(ue,"section"))&&Te(Q.blocks.$flatten(),"each",[],function(u){return u==null&&(u=Ve),E(u)?Te(u,"find_by_internal",[Ce,se],ge.$to_proc()):Ve});break;case"table":E(Ce["$[]"]("traverse_documents"))?(Te(Q.$rows().$head(),"each",[],function(u){return u==null&&(u=Ve),Te(u,"each",[],function(C){return C==null&&(C=Ve),Te(C,"find_by_internal",[Ce,se],ge.$to_proc())})}),V(ue,"inner_document")&&(Ce=Ce.$merge(H(["context"],{context:"document"}))),Te(Ye(Q.$rows().$body(),Q.$rows().$foot()),"each",[],function(u){return u==null&&(u=Ve),Te(u,"each",[],function(C){return C==null&&(C=Ve),Te(C,"find_by_internal",[Ce,se],ge.$to_proc()),V(C.$style(),"asciidoc")?Te(C.$inner_document(),"find_by_internal",[Ce,se],ge.$to_proc()):Ve})})):Te(Ye(Ye(Q.$rows().$head(),Q.$rows().$body()),Q.$rows().$foot()),"each",[],function(u){return u==null&&(u=Ve),Te(u,"each",[],function(C){return C==null&&(C=Ve),Te(C,"find_by_internal",[Ce,se],ge.$to_proc())})});break;default:Te(Q.blocks,"each",[],function(u){return u==null&&(u=Ve),V(ue,"section")&&Pe(u.$context(),"section")?Ve:Te(u,"find_by_internal",[Ce,se],ge.$to_proc())})}return se},-1)}(z[0],et("AbstractNode"),z)}(ft[0],ft)},Opal.modules["asciidoctor/attribute_list"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.hash,v=a.regexp,V=a.hash2,je=a.def,Y=a.truthy,Ie=a.rb_plus,E=a.send,Je=a.defs,Te=a.eqeqeq,Ye=a.eqeq,Me=a.rb_times,Pe=[],ft=a.nil,Ve=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,We){var Ze=ne(st,"Asciidoctor"),$t=[Ze].concat(We);return function(z,et,S){var tt=ee(z,et,"AttributeList"),lt=[tt].concat(S),K=a.$r(lt),I=tt.$$prototype;return I.attributes=I.scanner=I.delimiter=I.block=I.delimiter_skip_pattern=I.delimiter_boundary_pattern=ft,H(lt[0],"APOS","'"),H(lt[0],"BACKSLASH","\\"),H(lt[0],"QUOT",'"'),H(lt[0],"BoundaryRx",_e(K("QUOT"),/.*?[^\\](?=")/,K("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),H(lt[0],"EscapedQuotes",_e(K("QUOT"),'\\"',K("APOS"),"\\'")),H(lt[0],"NameRx",v([K("CG_WORD"),"[",K("CC_WORD"),"\\-.]*"])),H(lt[0],"BlankRx",/[ \t]+/),H(lt[0],"SkipRx",V([","],{",":/[ \t]*(,|$)/})),je(tt,"$initialize",function(be,Ne,Ce){var se=this;return Ne==null&&(Ne=ft),Ce==null&&(Ce=","),se.scanner=Ve("StringScanner").$new(be),se.block=Ne,se.delimiter=Ce,se.delimiter_skip_pattern=K("SkipRx")["$[]"](Ce),se.delimiter_boundary_pattern=K("BoundaryRx")["$[]"](Ce),se.attributes=ft},-2),je(tt,"$parse_into",function(be,Ne){var Ce=this;return Ne==null&&(Ne=[]),be.$update(Ce.$parse(Ne))},-2),je(tt,"$parse",function(be){var Ne=this,Ce=ft;if(be==null&&(be=[]),Y(Ne.attributes))return Ne.attributes;for(Ne.attributes=V([],{}),Ce=0;Y(Ne.$parse_attribute(Ce,be))&&!Y(Ne.scanner["$eos?"]());)Ne.$skip_delimiter(),Ce=Ie(Ce,1);return Ne.attributes},-1),je(tt,"$rekey",function(be){var Ne=this;return K("AttributeList").$rekey(Ne.attributes,be)}),Je(tt,"$rekey",function(be,Ne){return E(Ne,"each_with_index",[],function(se,ge){var Q,L=ft;return se==null&&(se=ft),ge==null&&(ge=ft),Y(se)&&Y(L=be["$[]"](Ie(ge,1)))?(Q=[se,L],E(be,"[]=",Q),Q[Q.length-1]):ft}),be}),tt.$private(),je(tt,"$parse_attribute",function(be,Ne){var Ce=this,se=ft,ge=ft,Q=ft,L=ft,N=ft,re=ft,O=ft,ue=ft,U=ft,g=ft;if(se=!0,Ce.$skip_blank(),Te(K("QUOT"),ge=Ce.scanner.$peek(1)))Q=Ce.$parse_attribute_value(Ce.scanner.$get_byte());else if(Te(K("APOS"),ge))Q=Ce.$parse_attribute_value(Ce.scanner.$get_byte()),Y(Q["$start_with?"](K("APOS")))||(L=!0);else if(N=Y(re=Y(O=Q=Ce.$scan_name())?Ce.$skip_blank():O)?re:0,Y(Ce.scanner["$eos?"]())){if(!(Y(Q)||Y(Ce.scanner.$string().$rstrip()["$end_with?"](Ce.delimiter))))return ft;se=ft}else if(Ye(ue=Ce.scanner.$get_byte(),Ce.delimiter))Ce.scanner.$unscan();else if(Y(Q))if(Ye(ue,"=")){if(Ce.$skip_blank(),Te(K("QUOT"),re=ue=Ce.scanner.$get_byte()))U=Ce.$parse_attribute_value(ue);else if(Te(K("APOS"),re))U=Ce.$parse_attribute_value(ue),Y(U["$start_with?"](K("APOS")))||(L=!0);else if(Te(Ce.delimiter,re))U="",Ce.scanner.$unscan();else if(Te(ft,re))U="";else if(U=""+ue+Ce.$scan_to_delimiter(),Ye(U,"None"))return!0}else Q=""+Q+Me(" ",N)+ue+Ce.$scan_to_delimiter();else Q=""+ue+Ce.$scan_to_delimiter();if(Y(U))switch(Q){case"options":case"opts":Y(U["$include?"](","))?(Y(U["$include?"](" "))&&(U=U.$delete(" ")),E(U.$split(","),"each",[],function u(m){var C,x=u.$$s==null?this:u.$$s;return x.attributes==null&&(x.attributes=ft),m==null&&(m=ft),Y(m["$empty?"]())?ft:(C=[""+m+"-option",""],E(x.attributes,"[]=",C),C[C.length-1])},{$$s:Ce})):Y(U["$empty?"]())||Ce.attributes["$[]="](""+U+"-option","");break;default:if(Y(L)&&Y(Ce.block))switch(Q){case"title":case"reftext":Ce.attributes["$[]="](Q,U);break;default:Ce.attributes["$[]="](Q,Ce.block.$apply_subs(U))}else Ce.attributes["$[]="](Q,U)}else Y(L)&&Y(Ce.block)&&(Q=Ce.block.$apply_subs(Q)),Y(g=Ne["$[]"](be))&&Y(Q)&&Ce.attributes["$[]="](g,Q),Ce.attributes["$[]="](Ie(be,1),Q);return se}),je(tt,"$parse_attribute_value",function(be){var Ne=this,Ce=ft;return Ye(Ne.scanner.$peek(1),be)?(Ne.scanner.$get_byte(),""):Y(Ce=Ne.$scan_to_quote(be))?(Ne.scanner.$get_byte(),Y(Ce["$include?"](K("BACKSLASH")))?Ce.$gsub(K("EscapedQuotes")["$[]"](be),be):Ce):""+be+Ne.$scan_to_delimiter()}),je(tt,"$skip_blank",function(){var be=this;return be.scanner.$skip(K("BlankRx"))}),je(tt,"$skip_delimiter",function(){var be=this;return be.scanner.$skip(be.delimiter_skip_pattern)}),je(tt,"$scan_name",function(){var be=this;return be.scanner.$scan(K("NameRx"))}),je(tt,"$scan_to_delimiter",function(){var be=this;return be.scanner.$scan(be.delimiter_boundary_pattern)}),je(tt,"$scan_to_quote",function(be){var Ne=this;return Ne.scanner.$scan(K("BoundaryRx")["$[]"](be))})}($t[0],null,$t)}(Pe[0],Pe)},Opal.modules["asciidoctor/block"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.hash2,v=a.alias,V=a.send2,je=a.find_super,Y=a.truthy,Ie=a.eqeqeq,E=a.def,Je=a.rb_lt,Te=a.eqeq,Ye=[],Me=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(ft,Ve){var st=ne(ft,"Asciidoctor"),We=[st].concat(Ve),Ze=a.$r(We);return function($t,z,et){var S=ee($t,z,"Block"),tt=[S].concat(et),lt=a.$r(tt),K=S.$$prototype;return K.attributes=K.content_model=K.lines=K.subs=K.blocks=K.context=K.style=Me,H(tt[0],"DEFAULT_CONTENT_MODEL",_e(["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(S,"blockname","context"),S.$attr_accessor("lines"),E(S,"$initialize",function I(Ue,be,Ne){var Ce=I.$$p||Me,se=this,ge=Me,Q=Me,L=Me;return I.$$p=null,Ne==null&&(Ne=_e([],{})),V(se,je(se,"initialize",I,!1,!0),"initialize",[Ue,be,Ne],Ce),se.content_model=Y(ge=Ne["$[]"]("content_model"))?ge:lt("DEFAULT_CONTENT_MODEL")["$[]"](be),Y(Ne["$key?"]("subs"))?Y(Q=Ne["$[]"]("subs"))?(Ie("default",ge=Q)?se.default_subs=Ne["$[]"]("default_subs"):Ie(Pe("Array"),ge)?(se.default_subs=Q.$drop(0),se.attributes.$delete("subs")):(se.default_subs=Me,se.attributes["$[]="]("subs",Q.$to_s())),se.$commit_subs()):(se.default_subs=[],se.attributes.$delete("subs")):se.default_subs=Me,Y((L=Ne["$[]"]("source"))["$nil_or_empty?"]())?se.lines=[]:Ie(Pe("String"),L)?se.lines=lt("Helpers").$prepare_source_string(L):se.lines=L.$drop(0)},-3),E(S,"$content",function I(){var Ue=I.$$p||Me,be=this,Ne=Me,Ce=Me,se=Me,ge=Me;switch(I.$$p=null,be.content_model){case"compound":return V(be,je(be,"content",I,!1,!0),"content",[],Ue);case"simple":return be.$apply_subs(be.lines.$join(lt("LF")),be.subs);case"verbatim":case"raw":if(Ne=be.$apply_subs(be.lines,be.subs),Y(Je(Ne.$size(),2)))return Y(Ce=Ne["$[]"](0))?Ce:"";for(;Y(Y(Ce=se=Ne["$[]"](0))?se.$rstrip()["$empty?"]():Ce);)Ne.$shift();for(;Y(Y(Ce=ge=Ne["$[]"](-1))?ge.$rstrip()["$empty?"]():Ce);)Ne.$pop();return Ne.$join(lt("LF"));default:return Te(be.content_model,"empty")||be.$logger().$warn("unknown content model '"+be.content_model+"' for block: "+be),Me}}),E(S,"$source",function(){var Ue=this;return Ue.lines.$join(lt("LF"))}),E(S,"$to_s",function(){var Ue=this,be=Me;return be=Te(Ue.content_model,"compound")?"blocks: "+Ue.blocks.$size():"lines: "+Ue.lines.$size(),"#<"+Ue.$class()+"@"+Ue.$object_id()+" {context: "+Ue.context.$inspect()+", content_model: "+Ue.content_model.$inspect()+", style: "+Ue.style.$inspect()+", "+be+"}>"})}(We[0],Ze("AbstractBlock"),We)}(Ye[0],Ye)},Opal.modules["asciidoctor/callouts"]=function(a){var ne=a.module,ee=a.klass,H=a.def,_e=a.hash2,v=a.rb_plus,V=a.truthy,je=a.rb_le,Y=a.rb_minus,Ie=a.send,E=a.eqeq,Je=a.rb_lt,Te=[],Ye=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(Me,Pe){var ft=ne(Me,"Asciidoctor"),Ve=[ft].concat(Pe);return function(st,We){var Ze=ee(st,We,"Callouts"),$t=Ze.$$prototype;return $t.co_index=$t.lists=$t.list_index=Ye,H(Ze,"$initialize",function(){var et=this;return et.lists=[],et.list_index=0,et.$next_list()}),H(Ze,"$register",function(et){var S=this,tt=Ye;return S.$current_list()["$<<"](_e(["ordinal","id"],{ordinal:et.$to_i(),id:tt=S.$generate_next_callout_id()})),S.co_index=v(S.co_index,1),tt}),H(Ze,"$read_next_id",function(){var et=this,S=Ye,tt=Ye;return S=Ye,tt=et.$current_list(),V(je(et.co_index,tt.$size()))&&(S=tt["$[]"](Y(et.co_index,1))["$[]"]("id")),et.co_index=v(et.co_index,1),S}),H(Ze,"$callout_ids",function(et){var S=this;return Ie(S.$current_list(),"map",[],function(lt){return lt==null&&(lt=Ye),E(lt["$[]"]("ordinal"),et)?""+lt["$[]"]("id")+" ":""}).$join().$chop()}),H(Ze,"$current_list",function(){var et=this;return et.lists["$[]"](Y(et.list_index,1))}),H(Ze,"$next_list",function(){var et=this;return et.list_index=v(et.list_index,1),V(Je(et.lists.$size(),et.list_index))&&et.lists["$<<"]([]),et.co_index=1,Ye}),H(Ze,"$rewind",function(){var et=this;return et.list_index=1,et.co_index=1,Ye}),Ze.$private(),H(Ze,"$generate_next_callout_id",function(){var et=this;return et.$generate_callout_id(et.list_index,et.co_index)}),H(Ze,"$generate_callout_id",function(et,S){return"CO"+et+"-"+S})}(Ve[0],null)}(Te[0],Te)},Opal.modules["asciidoctor/converter/composite"]=function(a){var ne=a.module,ee=a.klass,H=a.slice,_e=a.extract_kwargs,v=a.ensure_kwargs,V=a.send,je=a.truthy,Y=a.def,Ie=a.thrower,E=[],Je=a.nil,Te=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(Ye,Me){var Pe=ne(Ye,"Asciidoctor"),ft=[Pe].concat(Me),Ve=a.$r(ft);return function(st,We){var Ze=ee(st,We,"CompositeConverter"),$t=Ze.$$prototype;return $t.converter_cache=$t.converters=Je,Ze.$attr_reader("converters"),Y(Ze,"$initialize",function(et,S,tt){var lt,K,I,Ue,be=this;return lt=H(arguments,1),K=_e(lt),K=v(K),I=lt,Ue=K.$$smap.backend_traits_source,Ue==null&&(Ue=Je),be.backend=et,V(be.converters=I,"each",[],function Ne(Ce){var se=Ne.$$s==null?this:Ne.$$s;return Ce==null&&(Ce=Je),je(Ce["$respond_to?"]("composed"))?Ce.$composed(se):Je},{$$s:be}),je(Ue)&&be.$init_backend_traits(Ue.$backend_traits()),be.converter_cache=V(Te("Hash"),"new",[],function Ne(Ce,se){var ge,Q=Ne.$$s==null?this:Ne.$$s;return Ce==null&&(Ce=Je),se==null&&(se=Je),ge=[se,Q.$find_converter(se)],V(Ce,"[]=",ge),ge[ge.length-1]},{$$s:be})},-2),Y(Ze,"$convert",function(et,S,tt){var lt=this,K=Je;return S==null&&(S=Je),tt==null&&(tt=Je),lt.$converter_for(S=je(K=S)?K:et.$node_name()).$convert(et,S,tt)},-2),Y(Ze,"$converter_for",function(et){var S=this;return S.converter_cache["$[]"](et)}),Y(Ze,"$find_converter",function(et){try{var S=Ie("return"),tt=this;return V(tt.converters,"each",[],function(K){if(K==null&&(K=Je),je(K["$handles?"](et)))S.$throw(K);else return Je},{$$ret:S}),tt.$raise("Could not find a converter to handle transform: "+et)}catch(lt){if(lt===S)return lt.$v;throw lt}})}(Ve("Converter"),Te(Ve("Converter"),"Base"))}(E[0],E)},Opal.modules["asciidoctor/converter"]=function(a){var ne=a.module,ee=a.hash2,H=a.def,_e=a.return_val,v=a.truthy,V=a.eqeq,je=a.defs,Y=a.send,Ie=a.alias,E=a.slice,Je=a.to_a,Te=a.extract_kwargs,Ye=a.ensure_kwargs,Me=a.eqeqeq,Pe=a.Class,ft=a.klass,Ve=a.class_variable_set,st=a.class_variable_get,We=a.rb_plus,Ze=a.gvars,$t=[],z=a.nil,et=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(S,tt){var lt=ne(S,"Asciidoctor"),K=[lt].concat(tt);return function(I,Ue){var be=ne(I,"Converter"),Ne=[be].concat(Ue),Ce=a.$r(Ne);return be.$autoload("CompositeConverter","asciidoctor/converter/composite"),be.$attr_reader("backend"),H(be,"$initialize",function(ge,Q){var L=this;return Q==null&&(Q=ee([],{})),L.backend=ge},-2),H(be,"$convert",function(ge,Q,L){var N=this;return N.backend==null&&(N.backend=z),N.$raise(et("NotImplementedError"),""+N.$class()+" (backend: "+N.backend+") must implement the #convert method")},-2),H(be,"$handles?",_e(!0)),je(be,"$derive_backend_traits",function(ge,Q){var L=z,N=z,re=z;return Q==null&&(Q=z),v(ge)?(v(L=Ce("DEFAULT_EXTENSIONS")["$[]"](Q=v(N=Q)?N:ge.$sub(Ce("TrailingDigitsRx"),"")))?re=L.$slice(1,L.$length()):L="."+(re=Q),V(re,"html")?ee(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:Q,filetype:re,htmlsyntax:"html",outfilesuffix:L}):ee(["basebackend","filetype","outfilesuffix"],{basebackend:Q,filetype:re,outfilesuffix:L})):ee([],{})},-2),function(se,ge){var Q=ne(se,"BackendTraits"),L=[Q].concat(ge),N=a.$r(L);return H(Q,"$basebackend",function(O){var ue,U=this;return O==null&&(O=z),v(O)?(ue=["basebackend",O],Y(U.$backend_traits(O),"[]=",ue),ue[ue.length-1]):U.$backend_traits()["$[]"]("basebackend")},-1),H(Q,"$filetype",function(O){var ue,U=this;return O==null&&(O=z),v(O)?(ue=["filetype",O],Y(U.$backend_traits(),"[]=",ue),ue[ue.length-1]):U.$backend_traits()["$[]"]("filetype")},-1),H(Q,"$htmlsyntax",function(O){var ue,U=this;return O==null&&(O=z),v(O)?(ue=["htmlsyntax",O],Y(U.$backend_traits(),"[]=",ue),ue[ue.length-1]):U.$backend_traits()["$[]"]("htmlsyntax")},-1),H(Q,"$outfilesuffix",function(O){var ue,U=this;return O==null&&(O=z),v(O)?(ue=["outfilesuffix",O],Y(U.$backend_traits(),"[]=",ue),ue[ue.length-1]):U.$backend_traits()["$[]"]("outfilesuffix")},-1),H(Q,"$supports_templates",function(O){var ue,U=this;return O==null&&(O=!0),ue=["supports_templates",O],Y(U.$backend_traits(),"[]=",ue),ue[ue.length-1]},-1),H(Q,"$supports_templates?",function(){var O=this;return O.$backend_traits()["$[]"]("supports_templates")}),H(Q,"$init_backend_traits",function(O){var ue=this,U=z;return O==null&&(O=z),ue.backend_traits=v(U=O)?U:ee([],{})},-1),H(Q,"$backend_traits",function(O){var ue=this,U=z;return ue.backend_traits==null&&(ue.backend_traits=z),ue.backend==null&&(ue.backend=z),O==null&&(O=z),ue.backend_traits=v(U=ue.backend_traits)?U:N("Converter").$derive_backend_traits(ue.backend,O)},-1),Ie(Q,"backend_info","backend_traits"),je(Q,"$derive_backend_traits",function(O,ue){return ue==null&&(ue=z),N("Converter").$derive_backend_traits(O,ue)},-2)}(Ne[0],Ne),function(se,ge){var Q=ne(se,"Config"),L=[Q].concat(ge),N=a.$r(L);return H(Q,"$register_for",function(O){var ue,U,g=this;return ue=E(arguments),U=ue,Y(N("Converter"),"register",[g].concat(Je(Y(U,"map",[],function(m){return m==null&&(m=z),m.$to_s()}))))},-1)}(Ne[0],Ne),function(se,ge){var Q=ne(se,"Factory"),L=[Q].concat(ge),N=a.$r(L);return je(Q,"$new",function(O,ue){var U,g,u,m;return U=E(arguments),g=Te(U),g=Ye(g),U.length>0&&(u=U.shift()),u==null&&(u=z),m=g.$$smap.proxy_default,m==null&&(m=!0),v(m)?N("DefaultFactoryProxy").$new(u):N("CustomFactory").$new(u)},-1),je(Q,"$default",function(O){return E(arguments),N("Converter")},-1),je(Q,"$create",function(O,ue){var U=this;return ue==null&&(ue=ee([],{})),U.$default().$create(O,ue)},-2),H(Q,"$register",function(O,ue){var U,g,u=this;return U=E(arguments,1),g=U,Y(g,"each",[],function m(C){var x,y=m.$$s==null?this:m.$$s;return C==null&&(C=z),V(C,"*")?(x=[O],Y(y.$registry(),"default=",x),x[x.length-1]):(x=[C,O],Y(y.$registry(),"[]=",x),x[x.length-1])},{$$s:u})},-2),H(Q,"$for",function(O){var ue=this;return ue.$registry()["$[]"](O)}),H(Q,"$create",function(O,ue){var U=this,g=z,u=z,m=z;return ue==null&&(ue=ee([],{})),v(g=U.$for(O))?(Me(Pe,g)&&(g=g.$new(O,ue)),v(u=ue["$[]"]("template_dirs"))&&Me(N("BackendTraits"),g)&&v(g["$supports_templates?"]())?N("CompositeConverter").$new(O,N("TemplateConverter").$new(O,u,ue),g,ee(["backend_traits_source"],{backend_traits_source:g})):g):v(u=ue["$[]"]("template_dirs"))?v(m=ue["$[]"]("delegate_backend"))&&v(g=U.$for(m))?(Me(Pe,g)&&(g=g.$new(m,ue)),N("CompositeConverter").$new(O,N("TemplateConverter").$new(O,u,ue),g,ee(["backend_traits_source"],{backend_traits_source:g}))):N("TemplateConverter").$new(O,u,ue):z},-2),H(Q,"$converters",function(){var O=this;return O.$registry().$merge()}),Q.$private(),H(Q,"$registry",function(){var O=this;return O.$raise(et("NotImplementedError"),""+N("Factory")+" subclass "+O.$class()+" must implement the #registry method")})}(Ne[0],Ne),function(se,ge,Q){var L=ft(se,ge,"CustomFactory"),N=[L].concat(Q),re=a.$r(N);return L.$include(re("Factory")),H(L,"$initialize",function(ue){var U=this;return ue==null&&(ue=z),v(ue)?(ue["$default="](ue.$delete("*")),U.registry=ue):U.registry=ee([],{})},-1),H(L,"$unregister_all",function(){var ue,U=this;return ue=[z],Y(U.$registry().$clear(),"default=",ue),ue[ue.length-1]}),L.$private(),L.$attr_reader("registry")}(Ne[0],null,Ne),function(se,ge){var Q=ne(se,"DefaultFactory"),L=[Q].concat(ge),N=a.$r(L);return Q.$include(N("Factory")),Q.$private(),Ve(L[0],"@@registry",ee([],{})),H(Q,"$registry",function(){return st(L[0],"@@registry",!1)}),z}(Ne[0],Ne),function(se,ge,Q){var L=ft(se,ge,"DefaultFactoryProxy"),N=[L].concat(Q),re=a.$r(N);return L.$include(re("DefaultFactory")),z}(Ne[0],Ce("CustomFactory"),Ne),je(be,"$included",function(ge){return ge.$send("include",Ce("BackendTraits")),ge.$extend(Ce("Config"))}),be.$private_class_method("included"),function(se,ge,Q){var L=ft(se,ge,"Base"),N=[L].concat(Q),re=a.$r(N),O=L.$$prototype;return O.backend=z,L.$include(re("Logging")),L.$include(re("Converter")),H(L,"$convert",function(U,g,u){var m=this,C=z;Ze["!"]==null&&(Ze["!"]=z),g==null&&(g=U.$node_name()),u==null&&(u=z);try{return v(u)?m.$send(We("convert_",g),U,u):m.$send(We("convert_",g),U)}catch(x){if(a.rescue(x,[re("StandardError")]))try{return Me(et("NoMethodError"),C=Ze["!"])&&V(C.$receiver(),m)&&V(C.$name().$to_s(),g)||m.$raise(),m.$logger().$warn("missing convert handler for "+C.$name()+" node in "+m.backend+" backend ("+m.$class()+")"),z}finally{a.pop_exception()}else throw x}},-2),H(L,"$handles?",function(U){var g=this;return g["$respond_to?"]("convert_"+U)}),H(L,"$content_only",function(U){return U.$content()}),H(L,"$skip",_e(z))}(Ne[0],null,Ne),be.$extend(Ce("DefaultFactory"))}(K[0],K)}($t[0],$t)},Opal.modules["asciidoctor/document"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.send,v=a.alias,V=a.truthy,je=a.def,Y=a.hash2,Ie=a.not,E=a.to_ary,Je=a.return_ivar,Te=a.send2,Ye=a.find_super,Me=a.rb_minus,Pe=a.eqeq,ft=a.eqeqeq,Ve=a.hash,st=a.rb_ge,We=a.rb_plus,Ze=a.neqeq,$t=a.thrower,z=a.rb_gt,et=a.rb_lt,S=a.gvars,tt=a.to_a,lt=[],K=a.nil,I=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(Ue,be){var Ne=ne(Ue,"Asciidoctor"),Ce=[Ne].concat(be),se=a.$r(Ce);return function(ge,Q,L){var N=ee(ge,Q,"Document"),re=[N].concat(L),O=a.$r(re),ue=N.$$prototype;return ue.attributes=ue.safe=ue.sourcemap=ue.reader=ue.base_dir=ue.parsed=ue.parent_document=ue.extensions=ue.options=ue.counters=ue.catalog=ue.reftexts=ue.next_section_index=ue.header=ue.blocks=ue.header_attributes=ue.attributes_modified=ue.backend=ue.attribute_overrides=ue.timings=ue.converter=ue.outfilesuffix=ue.docinfo_processor_extensions=ue.document=ue.max_attribute_value_size=ue.id=ue.doctype=K,H(re[0],"ImageReference",_e(I("Struct"),"new",["target","imagesdir"],function U(){var g=U.$$s==null?this:U.$$s;return v(g,"to_s","target")},{$$s:N})),H(re[0],"Footnote",I("Struct").$new("index","id","text")),function(U,g){var u=ee(U,g,"AttributeEntry");return u.$attr_reader("name","value","negate"),je(u,"$initialize",function(C,x,y){var M=this;return y==null&&(y=K),M.name=C,M.value=x,M.negate=V(y["$nil?"]())?x["$nil?"]():y},-3),je(u,"$save_to",function(C){var x,y=this,M=K;return(V(M=C["$[]"]("attribute_entries"))?M:(x=["attribute_entries",[]],_e(C,"[]=",x),x[x.length-1]))["$<<"](y),y})}(re[0],null),function(U,g,u){var m=ee(U,g,"Title"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.subtitle=K,m.$attr_reader("main"),v(m,"title","main"),m.$attr_reader("subtitle"),m.$attr_reader("combined"),je(m,"$initialize",function(P,fe){var ie,xe,Le=this,Ke=K,nt=K;return fe==null&&(fe=Y([],{})),V(Le.sanitized=fe["$[]"]("sanitize"))&&V(P["$include?"]("<"))&&(P=P.$gsub(x("XmlSanitizeRx"),"").$squeeze(" ").$strip()),V((Ke=V(nt=fe["$[]"]("separator"))?nt:":")["$empty?"]())||Ie(P["$include?"](Ke=""+Ke+" "))?(Le.main=P,Le.subtitle=K):(xe=P.$rpartition(Ke),ie=E(xe),Le.main=ie[0]==null?K:ie[0],ie[1]==null||ie[1],Le.subtitle=ie[2]==null?K:ie[2]),Le.combined=P},-2),je(m,"$sanitized?",Je("sanitized")),je(m,"$subtitle?",function(){var P=this;return!!V(P.subtitle)}),je(m,"$to_s",Je("combined"))}(re[0],null,re),H(re[0],"Author",I("Struct").$new("name","firstname","middlename","lastname","initials","email")),N.$attr_reader("safe"),N.$attr_reader("compat_mode"),N.$attr_reader("backend"),N.$attr_reader("doctype"),N.$attr_accessor("sourcemap"),N.$attr_reader("catalog"),v(N,"references","catalog"),N.$attr_reader("counters"),N.$attr_reader("header"),N.$attr_reader("base_dir"),N.$attr_reader("options"),N.$attr_reader("outfilesuffix"),N.$attr_reader("parent_document"),N.$attr_reader("reader"),N.$attr_reader("path_resolver"),N.$attr_reader("converter"),N.$attr_reader("syntax_highlighter"),N.$attr_reader("extensions"),je(N,"$initialize",function U(g,u){var m,C,x,y;U.$$p;var M=this,P=K,fe=K,ie=K,xe=K,Le=K,Ke=K,nt=K,dt=K,at=K,pt=K,vt=K,bt=K,gt=K,Ct=K,St=K,Wt=K,Bt=K,er=K;return U.$$p=null,g==null&&(g=K),u==null&&(u=Y([],{})),Te(M,Ye(M,"initialize",U,!1,!0),"initialize",[M,"document"],null),V(P=u.$delete("parent"))?(M.parent_document=P,V(fe=u["$[]"]("base_dir"))||u["$[]="]("base_dir",P.$base_dir()),V(P.$options()["$[]"]("catalog_assets"))&&u["$[]="]("catalog_assets",!0),V(P.$options()["$[]"]("to_dir"))&&u["$[]="]("to_dir",P.$options()["$[]"]("to_dir")),M.catalog=P.$catalog().$merge(Y(["footnotes"],{footnotes:[]})),M.attribute_overrides=ie=P.$instance_variable_get("@attribute_overrides").$merge(P.$attributes()),ie.$delete("compat-mode"),xe=ie.$delete("doctype"),ie.$delete("notitle"),ie.$delete("showtitle"),ie.$delete("toc"),M.attributes["$[]="]("toc-placement",V(fe=ie.$delete("toc-placement"))?fe:"auto"),ie.$delete("toc-position"),M.safe=P.$safe(),V(M.compat_mode=P.$compat_mode())&&M.attributes["$[]="]("compat-mode",""),M.outfilesuffix=P.$outfilesuffix(),M.sourcemap=P.$sourcemap(),M.timings=K,M.path_resolver=P.$path_resolver(),M.converter=P.$converter(),Le=K,M.extensions=P.$extensions(),M.syntax_highlighter=P.$syntax_highlighter()):(M.parent_document=K,M.catalog=Y(["ids","refs","footnotes","links","images","callouts","includes"],{ids:Y([],{}),refs:Y([],{}),footnotes:[],links:[],images:[],callouts:O("Callouts").$new(),includes:Y([],{})}),M.attribute_overrides=ie=Y([],{}),_e(V(fe=u["$[]"]("attributes"))?fe:Y([],{}),"each",[],function(jt,Yt){var Xt;return jt==null&&(jt=K),Yt==null&&(Yt=K),V(jt["$end_with?"]("@"))?V(jt["$start_with?"]("!"))?(Xt=[jt.$slice(1,Me(jt.$length(),2)),!1],jt=Xt[0],Yt=Xt[1]):V(jt["$end_with?"]("!@"))?(Xt=[jt.$slice(0,Me(jt.$length(),2)),!1],jt=Xt[0],Yt=Xt[1]):(Xt=[jt.$chop(),""+Yt+"@"],jt=Xt[0],Yt=Xt[1]):V(jt["$start_with?"]("!"))?(Xt=[jt.$slice(1,jt.$length()),Pe(Yt,"@")?!1:K],jt=Xt[0],Yt=Xt[1]):V(jt["$end_with?"]("!"))&&(Xt=[jt.$chop(),Pe(Yt,"@")?!1:K],jt=Xt[0],Yt=Xt[1]),Xt=[jt.$downcase(),Yt],_e(ie,"[]=",Xt),Xt[Xt.length-1]}),ft(I("String"),Ke=u["$[]"]("to_file"))&&ie["$[]="]("outfilesuffix",O("Helpers").$extname(Ke)),Ie(nt=u["$[]"]("safe"))?M.safe=I(O("SafeMode"),"SECURE"):ft(I("Integer"),nt)?M.safe=nt:M.safe=function(){try{return O("SafeMode").$value_for_name(nt)}catch(Kt){if(a.rescue(Kt,[O("StandardError")]))try{return I(O("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),dt=u.$delete("input_mtime"),M.compat_mode=ie["$key?"]("compat-mode"),M.sourcemap=u["$[]"]("sourcemap"),M.timings=u.$delete("timings"),M.path_resolver=O("PathResolver").$new(),Le=V((m=I("::","Asciidoctor","skip_raise"))&&I(m,"Extensions","skip_raise")?"constant":K)||V(u["$key?"]("extensions"))?I(I("Asciidoctor"),"Extensions"):K,M.extensions=K,V(u["$key?"]("header_footer"))&&Ie(u["$key?"]("standalone"))&&u["$[]="]("standalone",u["$[]"]("header_footer"))),M.parsed=M.reftexts=M.header=M.header_attributes=K,M.counters=Y([],{}),M.attributes_modified=I("Set").$new(),M.docinfo_processor_extensions=Y([],{}),at=u["$[]"]("standalone"),(M.options=u).$freeze(),pt=M.attributes,V(P)||(pt["$[]="]("attribute-undefined",O("Compliance").$attribute_undefined()),pt["$[]="]("attribute-missing",O("Compliance").$attribute_missing()),pt.$update(O("DEFAULT_ATTRIBUTES"))),V(at)?(ie["$[]="]("embedded",K),pt["$[]="]("copycss",""),pt["$[]="]("iconfont-remote",""),pt["$[]="]("stylesheet",""),pt["$[]="]("webfonts","")):(ie["$[]="]("embedded",""),V(ie["$key?"]("showtitle"))&&Pe(ie.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?ie["$[]="]("notitle",Ve(K,"",!1,"@","@",!1)["$[]"](ie["$[]"]("showtitle"))):V(ie["$key?"]("notitle"))?ie["$[]="]("showtitle",Ve(K,"",!1,"@","@",!1)["$[]"](ie["$[]"]("notitle"))):pt["$[]="]("notitle","")),ie["$[]="]("asciidoctor",""),ie["$[]="]("asciidoctor-version",I(I("Asciidoctor"),"VERSION")),ie["$[]="]("safe-mode-name",vt=O("SafeMode").$name_for_value(M.safe)),ie["$[]="]("safe-mode-"+vt,""),ie["$[]="]("safe-mode-level",M.safe),V(fe=ie["$[]"]("max-include-depth"))||ie["$[]="]("max-include-depth",64),V(fe=ie["$[]"]("allow-uri-read"))||ie["$[]="]("allow-uri-read",K),V(ie["$key?"]("numbered"))&&ie["$[]="]("sectnums",ie.$delete("numbered")),V(ie["$key?"]("hardbreaks"))&&ie["$[]="]("hardbreaks-option",ie.$delete("hardbreaks")),V(bt=u["$[]"]("base_dir"))?M.base_dir=(C=["docdir",I("File").$expand_path(bt)],_e(ie,"[]=",C),C[C.length-1]):V(ie["$[]"]("docdir"))?M.base_dir=ie["$[]"]("docdir"):M.base_dir=(C=["docdir",I("Dir").$pwd()],_e(ie,"[]=",C),C[C.length-1]),V(gt=u["$[]"]("backend"))&&ie["$[]="]("backend",gt.$to_s()),V(Ct=u["$[]"]("doctype"))&&ie["$[]="]("doctype",Ct.$to_s()),V(st(M.safe,I(O("SafeMode"),"SERVER")))?(V(fe=ie["$[]"]("copycss"))||ie["$[]="]("copycss",K),V(fe=ie["$[]"]("source-highlighter"))||ie["$[]="]("source-highlighter",K),V(fe=ie["$[]"]("backend"))||ie["$[]="]("backend",O("DEFAULT_BACKEND")),Ie(P)&&V(ie["$key?"]("docfile"))&&ie["$[]="]("docfile",ie["$[]"]("docfile")["$[]"](a.Range.$new(We(ie["$[]"]("docdir").$length(),1),-1,!1))),ie["$[]="]("docdir",""),V(fe=ie["$[]"]("user-home"))||ie["$[]="]("user-home","."),V(st(M.safe,I(O("SafeMode"),"SECURE")))&&(V(ie["$key?"]("max-attribute-value-size"))||ie["$[]="]("max-attribute-value-size",4096),V(ie["$key?"]("linkcss"))||ie["$[]="]("linkcss",""),V(fe=ie["$[]"]("icons"))||ie["$[]="]("icons",K))):V(fe=ie["$[]"]("user-home"))||ie["$[]="]("user-home",O("USER_HOME")),M.max_attribute_value_size=V(St=V(fe=ie["$[]"]("max-attribute-value-size"))?fe:(C=["max-attribute-value-size",K],_e(ie,"[]=",C),C[C.length-1]))?St.$to_i().$abs():K,_e(ie,"delete_if",[],function(jt,Yt){var Xt,nr=K;return jt==null&&(jt=K),Yt==null&&(Yt=K),V(Yt)?(ft(I("String"),Yt)&&V(Yt["$end_with?"]("@"))&&(Xt=[Yt.$chop(),!0],Yt=Xt[0],nr=Xt[1]),pt["$[]="](jt,Yt)):(pt.$delete(jt),nr=Yt["$=="](!1)),nr}),V(P)?(M.backend=pt["$[]"]("backend"),Pe(M.doctype=(C=["doctype",xe],_e(pt,"[]=",C),C[C.length-1]),O("DEFAULT_DOCTYPE"))||M.$update_doctype_attributes(O("DEFAULT_DOCTYPE")),M.reader=O("Reader").$new(g,u["$[]"]("cursor")),V(M.sourcemap)&&(M.source_location=M.reader.$cursor()),O("Parser").$parse(M.reader,M),M.$restore_attributes(),M.parsed=!0):(M.backend=K,Pe(Wt=V(fe=pt["$[]"]("backend"))?fe:O("DEFAULT_BACKEND"),"manpage")?M.doctype=(C=["doctype",(x=["doctype","manpage"],_e(ie,"[]=",x),x[x.length-1])],_e(pt,"[]=",C),C[C.length-1]):M.doctype=V(fe=pt["$[]"]("doctype"))?fe:(C=["doctype",O("DEFAULT_DOCTYPE")],_e(pt,"[]=",C),C[C.length-1]),M.$update_backend_attributes(Wt,!0),V(fe=pt["$[]"]("stylesdir"))||pt["$[]="]("stylesdir","."),V(fe=pt["$[]"]("iconsdir"))||pt["$[]="]("iconsdir",""+pt.$fetch("imagesdir","./images")+"/icons"),M.$fill_datetime_attributes(pt,dt),V(Le)&&(V(Bt=u["$[]"]("extension_registry"))?(ft(I(O("Extensions"),"Registry"),Bt)||V((y=I("::","AsciidoctorJ","skip_raise"))&&(x=I(y,"Extensions","skip_raise"))&&(C=I(x,"ExtensionRegistry","skip_raise"))?"constant":K)&&ft(I(I(I("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),Bt))&&(M.extensions=Bt.$activate(M)):V((er=u["$[]"]("extensions"))["$nil?"]())?V(O("Extensions").$groups()["$empty?"]())||(M.extensions=I(O("Extensions"),"Registry").$new().$activate(M)):ft(I("Proc"),er)&&(M.extensions=_e(O("Extensions"),"create",[],er.$to_proc()).$activate(M))),M.reader=O("PreprocessorReader").$new(M,g,I(O("Reader"),"Cursor").$new(pt["$[]"]("docfile"),M.base_dir),Y(["normalize"],{normalize:!0})),V(M.sourcemap)?M.source_location=M.reader.$cursor():K)},-1),je(N,"$parse",function(g){var u=this,m=K,C=K;return g==null&&(g=K),V(u.parsed)?u:(m=u,V(g)&&(u.reader=O("PreprocessorReader").$new(m,g,I(O("Reader"),"Cursor").$new(u.attributes["$[]"]("docfile"),u.base_dir),Y(["normalize"],{normalize:!0})),V(u.sourcemap)&&(u.source_location=u.reader.$cursor())),V(C=V(u.parent_document)?K:u.extensions)&&V(C["$preprocessors?"]())&&_e(C.$preprocessors(),"each",[],function x(y){var M=x.$$s==null?this:x.$$s,P=K;return M.reader==null&&(M.reader=K),y==null&&(y=K),M.reader=V(P=y.$process_method()["$[]"](m,M.reader))?P:M.reader},{$$s:u}),O("Parser").$parse(u.reader,m,Y(["header_only"],{header_only:u.options["$[]"]("parse_header_only")})),u.$restore_attributes(),V(C)&&V(C["$tree_processors?"]())&&_e(C.$tree_processors(),"each",[],function(y){var M=K;return y==null&&(y=K),V(M=y.$process_method()["$[]"](m))&&ft(O("Document"),M)&&Ze(M,m)?m=M:K}),u.parsed=!0,m)},-1),je(N,"$parsed?",Je("parsed")),je(N,"$counter",function(g,u){var m,C=this,x=K,y=K,M=K;return u==null&&(u=K),V(C.parent_document)?C.parent_document.$counter(g,u):(V(y=C["$attribute_locked?"](g))&&V(x=C.counters["$[]"](g))||Ie((x=C.attributes["$[]"](g))["$nil_or_empty?"]())?M=(m=[g,O("Helpers").$nextval(x)],_e(C.counters,"[]=",m),m[m.length-1]):V(u)?M=(m=[g,Pe(u,u.$to_i().$to_s())?u.$to_i():u],_e(C.counters,"[]=",m),m[m.length-1]):M=(m=[g,1],_e(C.counters,"[]=",m),m[m.length-1]),V(y)||C.attributes["$[]="](g,M),M)},-2),je(N,"$increment_and_store_counter",function(g,u){var m=this;return O("AttributeEntry").$new(g,m.$counter(g)).$save_to(u.$attributes()).$value()}),v(N,"counter_increment","increment_and_store_counter"),je(N,"$register",function(g,u){var m=this,C=K,x=K,y=K;switch(g){case"ids":return m.$register("refs",[C=u["$[]"](0),O("Inline").$new(m,"anchor",u["$[]"](1),Y(["type","id"],{type:"ref",id:C}))]);case"refs":return x=m.catalog["$[]"]("refs"),V(x["$[]"](u["$[]"](0)))||x["$[]="](u["$[]"](0),y=u["$[]"](1)),y;case"footnotes":return m.catalog["$[]"](g)["$<<"](u);default:return V(m.options["$[]"]("catalog_assets"))?m.catalog["$[]"](g)["$<<"](Pe(g,"images")?O("ImageReference").$new(u,m.attributes["$[]"]("imagesdir")):u):K}}),je(N,"$resolve_id",function(g){var u=this,m=K,C=K;return V(u.reftexts)?u.reftexts["$[]"](g):V(u.parsed)?_e(u.reftexts=Y([],{}),"tap",[],function x(y){var M=x.$$s==null?this:x.$$s;return M.catalog==null&&(M.catalog=K),y==null&&(y=K),_e(M.catalog["$[]"]("refs"),"each",[],function(fe,ie){var xe,Le=K;return fe==null&&(fe=K),ie==null&&(ie=K),V(Le=y["$[]"](ie.$xreftext()))?Le:(xe=[ie.$xreftext(),fe],_e(y,"[]=",xe),xe[xe.length-1])})},{$$s:u})["$[]"](g):(m=K,u.reftexts=C=Y([],{}),function(){try{var x=$t("break");return _e(u.catalog["$[]"]("refs"),"each",[],function(M,P){var fe,ie=K,xe=K;return M==null&&(M=K),P==null&&(P=K),Pe(ie=P.$xreftext(),g)&&(m=M,x.$throw()),V(xe=C["$[]"](ie))?xe:(fe=[ie,M],_e(C,"[]=",fe),fe[fe.length-1])})}catch(y){if(y===x)return y.$v;throw y}}(),u.reftexts=K,m)}),je(N,"$sections?",function(){var g=this;return z(g.next_section_index,0)}),je(N,"$footnotes?",function(){var g=this;return!V(g.catalog["$[]"]("footnotes")["$empty?"]())}),je(N,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),je(N,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),je(N,"$nested?",function(){var g=this;return!!V(g.parent_document)}),je(N,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),je(N,"$extensions?",function(){var g=this;return!!V(g.extensions)}),je(N,"$source",function(){var g=this;return V(g.reader)?g.reader.$source():K}),je(N,"$source_lines",function(){var g=this;return V(g.reader)?g.reader.$source_lines():K}),je(N,"$basebackend?",function(g){var u=this;return u.attributes["$[]"]("basebackend")["$=="](g)}),je(N,"$title",function(){var g=this;return g.$doctitle()}),je(N,"$title=",function(g){var u,m=this,C=K;return V(C=m.header)||(C=m.header=O("Section").$new(m,0))["$sectname="]("header"),u=[g],_e(C,"title=",u),u[u.length-1]}),je(N,"$doctitle",function(g){var u=this,m=K,C=K,x=K,y=K;if(g==null&&(g=Y([],{})),!V(m=u.attributes["$[]"]("title"))){if(V(C=u.$first_section()))m=C.$title();else if(Ie(V(x=g["$[]"]("use_fallback"))?m=u.attributes["$[]"]("untitled-label"):x))return K}return V(y=g["$[]"]("partition"))?O("Title").$new(m,g.$merge(Y(["separator"],{separator:Pe(y,!0)?u.attributes["$[]"]("title-separator"):y}))):V(g["$[]"]("sanitize"))&&V(m["$include?"]("<"))?m.$gsub(O("XmlSanitizeRx"),"").$squeeze(" ").$strip():m},-1),v(N,"name","doctitle"),je(N,"$xreftext",function(g){var u=this,m=K;return V(m=u.$reftext())&&Ie(m["$empty?"]())?m:u.$title()},-1),je(N,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),je(N,"$authors",function(){var g=this,u=K,m=K,C=K,x=K,y=K;if(V((u=g.attributes)["$key?"]("author"))){if(m=[O("Author").$new(u["$[]"]("author"),u["$[]"]("firstname"),u["$[]"]("middlename"),u["$[]"]("lastname"),u["$[]"]("authorinitials"),u["$[]"]("email"))],V(z(C=V(x=u["$[]"]("authorcount"))?x:0,1)))for(y=1;V(et(y,C));)y=We(y,1),m["$<<"](O("Author").$new(u["$[]"]("author_"+y),u["$[]"]("firstname_"+y),u["$[]"]("middlename_"+y),u["$[]"]("lastname_"+y),u["$[]"]("authorinitials_"+y),u["$[]"]("email_"+y)));return m}else return[]}),je(N,"$revdate",function(){var g=this;return g.attributes["$[]"]("revdate")}),je(N,"$notitle",function(){var g=this;return g.attributes["$key?"]("notitle")}),je(N,"$noheader",function(){var g=this;return g.attributes["$key?"]("noheader")}),je(N,"$nofooter",function(){var g=this;return g.attributes["$key?"]("nofooter")}),je(N,"$first_section",function(){var g=this,u=K;return V(u=g.header)?u:_e(g.blocks,"find",[],function(C){return C==null&&(C=K),C.$context()["$=="]("section")})}),je(N,"$header?",function(){var g=this;return!!V(g.header)}),v(N,"has_header?","header?"),je(N,"$<<",function U(g){var u=U.$$p||K,m=this;return U.$$p=null,Pe(g.$context(),"section")&&m.$assign_numeral(g),Te(m,Ye(m,"<<",U,!1,!0),"<<",[g],u)}),je(N,"$finalize_header",function(g,u){var m=this;return u==null&&(u=!0),m.$clear_playback_attributes(g),m.$save_attributes(),V(u)||g["$[]="]("invalid-header",!0),g},-2),je(N,"$playback_attributes",function(g){var u=this;return V(g["$key?"]("attribute_entries"))?_e(g["$[]"]("attribute_entries"),"each",[],function m(C){var x=m.$$s==null?this:m.$$s,y=K;return x.attributes==null&&(x.attributes=K),C==null&&(C=K),y=C.$name(),V(C.$negate())?(x.attributes.$delete(y),Pe(y,"compat-mode")?x.compat_mode=!1:K):(x.attributes["$[]="](y,C.$value()),Pe(y,"compat-mode")?x.compat_mode=!0:K)},{$$s:u}):K}),je(N,"$restore_attributes",function(){var g=this;return V(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),je(N,"$set_attribute",function(g,u){var m=this,C=K;if(u==null&&(u=""),V(m["$attribute_locked?"](g)))return K;if(V(u["$empty?"]())||(u=m.$apply_attribute_value_subs(u)),V(m.header_attributes))m.attributes["$[]="](g,u);else{switch(g){case"backend":m.$update_backend_attributes(u,V(C=m.attributes_modified["$delete?"]("htmlsyntax"))?u["$=="](m.backend):C);break;case"doctype":m.$update_doctype_attributes(u);break;default:m.attributes["$[]="](g,u)}m.attributes_modified["$<<"](g)}return u},-2),je(N,"$delete_attribute",function(g){var u=this;return V(u["$attribute_locked?"](g))?!1:(u.attributes.$delete(g),u.attributes_modified["$<<"](g),!0)}),je(N,"$attribute_locked?",function(g){var u=this;return u.attribute_overrides["$key?"](g)}),je(N,"$set_header_attribute",function(g,u,m){var C=this,x=K,y=K;return u==null&&(u=""),m==null&&(m=!0),x=V(y=C.header_attributes)?y:C.attributes,Pe(m,!1)&&V(x["$key?"](g))?!1:(x["$[]="](g,u),!0)},-2),je(N,"$convert",function(g){var u,m=this,C=K,x=K,y=K,M=K,P=K;return g==null&&(g=Y([],{})),V(m.timings)&&m.timings.$start("convert"),V(m.parsed)||m.$parse(),V(st(m.safe,I(O("SafeMode"),"SERVER")))||V(g["$empty?"]())||(V((u=["outfile",g["$[]"]("outfile")],_e(m.attributes,"[]=",u),u[u.length-1]))||m.attributes.$delete("outfile"),V((u=["outdir",g["$[]"]("outdir")],_e(m.attributes,"[]=",u),u[u.length-1]))||m.attributes.$delete("outdir")),Pe(m.$doctype(),"inline")?V(C=V(x=m.blocks["$[]"](0))?x:m.header)&&(Pe(C.$content_model(),"compound")||Pe(C.$content_model(),"empty")?m.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):y=C.$content()):(V(g["$key?"]("standalone"))?M=V(g["$[]"]("standalone"))?"document":"embedded":V(g["$key?"]("header_footer"))?M=V(g["$[]"]("header_footer"))?"document":"embedded":M=V(m.options["$[]"]("standalone"))?"document":"embedded",y=m.converter.$convert(m,M)),V(m.parent_document)||V(P=m.extensions)&&V(P["$postprocessors?"]())&&_e(P.$postprocessors(),"each",[],function fe(ie){var xe=fe.$$s==null?this:fe.$$s;return ie==null&&(ie=K),y=ie.$process_method()["$[]"](xe,y)},{$$s:m}),V(m.timings)&&m.timings.$record("convert"),y},-1),v(N,"render","convert"),je(N,"$write",function(g,u){var m=this;return V(m.timings)&&m.timings.$start("write"),ft(O("Writer"),m.converter)?m.converter.$write(g,u):(V(u["$respond_to?"]("write"))?V(g["$nil_or_empty?"]())||(u.$write(g.$chomp()),u.$write(O("LF"))):I("File").$write(u,g,Y(["mode"],{mode:O("FILE_WRITE_MODE")})),Pe(m.backend,"manpage")&&ft(I("String"),u)&&V(m.converter.$class()["$respond_to?"]("write_alternate_pages"))&&m.converter.$class().$write_alternate_pages(m.attributes["$[]"]("mannames"),m.attributes["$[]"]("manvolnum"),u)),V(m.timings)&&m.timings.$record("write"),K}),je(N,"$content",function U(){var g=U.$$p||K,u=this;return U.$$p=null,u.attributes.$delete("title"),Te(u,Ye(u,"content",U,!1,!0),"content",[],g)}),je(N,"$docinfo",function(g,u){var m,C=this,x=K,y=K,M=K,P=K,fe=K,ie=K,xe=K,Le=K,Ke=K,nt=K;return g==null&&(g="head"),u==null&&(u=K),V(et(C.$safe(),I(O("SafeMode"),"SECURE")))&&(Pe(g,"head")||(x="-"+g),u=V(y=u)?y:C.outfilesuffix,V((M=C.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?V(C.attributes["$key?"]("docinfo2"))?M=["private","shared"]:V(C.attributes["$key?"]("docinfo1"))?M=["shared"]:M=V(M)?["private"]:K:M=_e(M.$split(","),"map",[],function(at){return at==null&&(at=K),at.$strip()}),V(M)&&(P=[],m=["docinfo"+x+u,C.attributes["$[]"]("docinfodir"),C.$resolve_docinfo_subs()],fe=m[0],ie=m[1],xe=m[2],V(M["$&"](["shared","shared-"+g])["$empty?"]())||(Le=C.$normalize_system_path(fe,ie),V(Ke=C.$read_asset(Le,Y(["normalize"],{normalize:!0})))&&P["$<<"](C.$apply_subs(Ke,xe))),V(C.attributes["$[]"]("docname")["$nil_or_empty?"]())||V(M["$&"](["private","private-"+g])["$empty?"]())||(Le=C.$normalize_system_path(""+C.attributes["$[]"]("docname")+"-"+fe,ie),V(nt=C.$read_asset(Le,Y(["normalize"],{normalize:!0})))&&P["$<<"](C.$apply_subs(nt,xe))))),V(C.extensions)&&V(C["$docinfo_processors?"](g))?(V(y=P)?y:[]).$concat(_e(C.docinfo_processor_extensions["$[]"](g),"map",[],function dt(at){var pt=dt.$$s==null?this:dt.$$s;return at==null&&(at=K),at.$process_method()["$[]"](pt)},{$$s:C}).$compact()).$join(O("LF")):V(P)?P.$join(O("LF")):""},-1),je(N,"$docinfo_processors?",function(g){var u,m=this;return g==null&&(g="head"),V(m.docinfo_processor_extensions["$key?"](g))?m.docinfo_processor_extensions["$[]"](g)["$!="](!1):V(m.extensions)&&V(m.document.$extensions()["$docinfo_processors?"](g))?(u=[g,m.document.$extensions().$docinfo_processors(g)],_e(m.docinfo_processor_extensions,"[]=",u),u[u.length-1])["$!"]()["$!"]():(u=[g,!1],_e(m.docinfo_processor_extensions,"[]=",u),u[u.length-1])},-1),je(N,"$to_s",function(){var g=this,u=K;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(V(u=g.header)?g.header.$title():u).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),N.$private(),je(N,"$apply_attribute_value_subs",function(g){var u,m=this;return V(O("AttributeEntryPassMacroRx")["$=~"](g))?(g=(u=S["~"])===K?K:u["$[]"](2),V((u=S["~"])===K?K:u["$[]"](1))&&(g=m.$apply_subs(g,m.$resolve_pass_subs((u=S["~"])===K?K:u["$[]"](1))))):g=m.$apply_header_subs(g),V(m.max_attribute_value_size)?m.$limit_bytesize(g,m.max_attribute_value_size):g}),je(N,"$limit_bytesize",function(g,u){if(V(z(g.$bytesize(),u)))for(;!V((g=g.$byteslice(0,u))["$valid_encoding?"]());)u=Me(u,1);return g}),je(N,"$resolve_docinfo_subs",function(){var g=this;return V(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",K,"docinfo"):["attributes"]}),je(N,"$create_converter",function(g,u){var m=this,C=K,x=K,y=K,M=K,P=K;return C=Y(["document","htmlsyntax"],{document:m,htmlsyntax:m.attributes["$[]"]("htmlsyntax")}),V(x=V(y=(M=m.options)["$[]"]("template_dirs"))?y:M["$[]"]("template_dir"))&&(C["$[]="]("template_dirs",[].concat(tt(x))),C["$[]="]("template_cache",M.$fetch("template_cache",!0)),C["$[]="]("template_engine",M["$[]"]("template_engine")),C["$[]="]("template_engine_options",M["$[]"]("template_engine_options")),C["$[]="]("eruby",M["$[]"]("eruby")),C["$[]="]("safe",m.safe),V(u)&&C["$[]="]("delegate_backend",u)),V(P=M["$[]"]("converter"))?I(O("Converter"),"CustomFactory").$new(Ve(g,P)).$create(g,C):M.$fetch("converter_factory",O("Converter")).$create(g,C)}),je(N,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),je(N,"$save_attributes",function(){var g=this,u=K,m=K,C=K,x=K,y=K,M=K,P=K,fe=K,ie=K,xe=K,Le=K,Ke=K,nt=K,dt=K;if(V((m=g.attributes)["$key?"]("doctitle"))||Ie(u=g.$doctitle())||m["$[]="]("doctitle",u),g.id=V(C=g.id)?C:m["$[]"]("css-signature"),V(x=V(m.$delete("toc2"))?"left":m["$[]"]("toc"))&&(y=V(M=m.$fetch("toc-placement","macro"))&&Ze(M,"auto")?M:m["$[]"]("toc-position"),!(V(x["$empty?"]())&&V(y["$nil_or_empty?"]())))){switch(P="left",fe="toc2",ie=V(y["$nil_or_empty?"]())?V(x["$empty?"]())?P:x:y,m["$[]="]("toc",""),m["$[]="]("toc-placement","auto"),ie){case"left":case"<":case"<":m["$[]="]("toc-position","left");break;case"right":case">":case">":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",ie),fe=K;break;default:m.$delete("toc-position"),fe=K}V(fe)&&(V(C=m["$[]"]("toc-class"))||m["$[]="]("toc-class",fe))}if(V(xe=m["$[]"]("icons"))&&Ie(m["$key?"]("icontype")))switch(xe){case"":case"font":break;default:m["$[]="]("icons",""),Pe(xe,"image")||m["$[]="]("icontype",xe)}return V(g.compat_mode=m["$key?"]("compat-mode"))&&V(m["$key?"]("language"))&&m["$[]="]("source-language",m["$[]"]("language")),V(g.parent_document)||(Pe(Le=m["$[]"]("basebackend"),"html")?V(Ke=m["$[]"]("source-highlighter"))&&Ie(m["$[]"](""+Ke+"-unavailable"))&&(V(nt=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=nt.$create(Ke,g.backend,Y(["document"],{document:g})):V(dt=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=I(O("SyntaxHighlighter"),"DefaultFactoryProxy").$new(dt).$create(Ke,g.backend,Y(["document"],{document:g})):g.syntax_highlighter=O("SyntaxHighlighter").$create(Ke,g.backend,Y(["document"],{document:g}))):Pe(Le,"docbook")&&(V(g["$attribute_locked?"]("toc"))||V(g.attributes_modified["$include?"]("toc"))||m["$[]="]("toc",""),V(g["$attribute_locked?"]("sectnums"))||V(g.attributes_modified["$include?"]("sectnums"))||m["$[]="]("sectnums","")),g.outfilesuffix=m["$[]"]("outfilesuffix"),_e(O("FLEXIBLE_ATTRIBUTES"),"each",[],function at(pt){var vt=at.$$s==null?this:at.$$s;return vt.attribute_overrides==null&&(vt.attribute_overrides=K),pt==null&&(pt=K),V(vt.attribute_overrides["$key?"](pt))&&V(vt.attribute_overrides["$[]"](pt))?vt.attribute_overrides.$delete(pt):K},{$$s:g})),g.header_attributes=m.$merge()}),je(N,"$fill_datetime_attributes",function(g,u){var m,C=this,x=K,y=K,M=K,P=K,fe=K,ie=K,xe=K,Le=K;return x=V(I("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?y=I("Time").$at(C.$Integer(I("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():I("Time").$now(),V(M=g["$[]"]("localdate"))?V(P=g["$[]"]("localyear"))||g["$[]="]("localyear",Pe(M.$index("-"),4)?M.$slice(0,4):K):(M=(m=["localdate",x.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),V(P=g["$[]"]("localyear"))||g["$[]="]("localyear",x.$year().$to_s())),fe=V(P=g["$[]"]("localtime"))?P:(m=["localtime",x.$strftime("%T "+(Pe(x.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),V(P=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+M+" "+fe),u=V(P=V(ie=y)?ie:u)?P:x,V(xe=g["$[]"]("docdate"))?V(P=g["$[]"]("docyear"))||g["$[]="]("docyear",Pe(xe.$index("-"),4)?xe.$slice(0,4):K):(xe=(m=["docdate",u.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),V(P=g["$[]"]("docyear"))||g["$[]="]("docyear",u.$year().$to_s())),Le=V(P=g["$[]"]("doctime"))?P:(m=["doctime",u.$strftime("%T "+(Pe(u.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),V(P=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+xe+" "+Le),K}),je(N,"$update_backend_attributes",function(g,u){var m,C,x=this,y=K,M=K,P=K,fe=K,ie=K,xe=K,Le=K,Ke=K,nt=K,dt=K,at=K,pt=K,vt=K,bt=K;return u==null&&(u=K),V(u)||Ze(g,x.backend)?(y=x.backend,M=(P=x.attributes)["$[]"]("basebackend"),fe=x.doctype,V(g["$include?"](":"))&&(C=g.$partition(":"),m=E(C),ie=m[0]==null?K:m[0],m[1]==null||m[1],g=m[2]==null?K:m[2]),V(g["$start_with?"]("xhtml"))?(P["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):V(g["$start_with?"]("html"))&&(V(xe=P["$[]"]("htmlsyntax"))||P["$[]="]("htmlsyntax","html")),g=V(xe=O("BACKEND_ALIASES")["$[]"](g))?xe:g,V(ie)&&(m=[ie,g],g=m[0],Le=m[1]),V(fe)?(V(y)&&(P.$delete("backend-"+y),P.$delete("backend-"+y+"-doctype-"+fe)),P["$[]="]("backend-"+g+"-doctype-"+fe,""),P["$[]="]("doctype-"+fe,"")):V(y)&&P.$delete("backend-"+y),P["$[]="]("backend-"+g,""),x.backend=(m=["backend",g],_e(P,"[]=",m),m[m.length-1]),ft(I(O("Converter"),"BackendTraits"),Ke=x.$create_converter(g,Le))?(nt=Ke.$basebackend(),dt=Ke.$filetype(),V(at=Ke.$htmlsyntax())&&P["$[]="]("htmlsyntax",at),V(u)?V(xe=P["$[]"]("outfilesuffix"))||P["$[]="]("outfilesuffix",Ke.$outfilesuffix()):V(x["$attribute_locked?"]("outfilesuffix"))||P["$[]="]("outfilesuffix",Ke.$outfilesuffix())):V(Ke)?(pt=O("Converter").$derive_backend_traits(g),nt=pt["$[]"]("basebackend"),dt=pt["$[]"]("filetype"),V(u)?V(xe=P["$[]"]("outfilesuffix"))||P["$[]="]("outfilesuffix",pt["$[]"]("outfilesuffix")):V(x["$attribute_locked?"]("outfilesuffix"))||P["$[]="]("outfilesuffix",pt["$[]"]("outfilesuffix"))):x.$raise(I("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),x.converter=Ke,V(vt=P["$[]"]("filetype"))&&P.$delete("filetype-"+vt),P["$[]="]("filetype",dt),P["$[]="]("filetype-"+dt,""),V(bt=O("DEFAULT_PAGE_WIDTHS")["$[]"](nt))?P["$[]="]("pagewidth",bt):P.$delete("pagewidth"),Ze(nt,M)&&(V(fe)?(V(M)&&(P.$delete("basebackend-"+M),P.$delete("basebackend-"+M+"-doctype-"+fe)),P["$[]="]("basebackend-"+nt+"-doctype-"+fe,"")):V(M)&&P.$delete("basebackend-"+M),P["$[]="]("basebackend-"+nt,""),P["$[]="]("basebackend",nt)),g):K},-2),je(N,"$update_doctype_attributes",function(g){var u,m=this,C=K,x=K,y=K,M=K;return V(g)&&Ze(g,m.doctype)?(u=[m.backend,(C=m.attributes)["$[]"]("basebackend"),m.doctype],x=u[0],y=u[1],M=u[2],V(M)?(C.$delete("doctype-"+M),V(x)&&(C.$delete("backend-"+x+"-doctype-"+M),C["$[]="]("backend-"+x+"-doctype-"+g,"")),V(y)&&(C.$delete("basebackend-"+y+"-doctype-"+M),C["$[]="]("basebackend-"+y+"-doctype-"+g,""))):(V(x)&&C["$[]="]("backend-"+x+"-doctype-"+g,""),V(y)&&C["$[]="]("basebackend-"+y+"-doctype-"+g,"")),C["$[]="]("doctype-"+g,""),m.doctype=(u=["doctype",g],_e(C,"[]=",u),u[u.length-1])):K})}(Ce[0],se("AbstractBlock"),Ce)}(lt[0],lt)},Opal.modules["asciidoctor/inline"]=function(a){var ne=a.module,ee=a.klass,H=a.hash2,_e=a.send2,v=a.find_super,V=a.def,je=a.return_val,Y=a.alias,Ie=a.truthy,E=[],Je=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(Te,Ye){var Me=ne(Te,"Asciidoctor"),Pe=[Me].concat(Ye),ft=a.$r(Pe);return function(Ve,st){var We=ee(Ve,st,"Inline"),Ze=We.$$prototype;return Ze.text=Ze.type=Je,We.$attr_accessor("text"),We.$attr_reader("type"),We.$attr_accessor("target"),V(We,"$initialize",function $t(z,et,S,tt){$t.$$p;var lt=this;return $t.$$p=null,S==null&&(S=Je),tt==null&&(tt=H([],{})),_e(lt,v(lt,"initialize",$t,!1,!0),"initialize",[z,et,tt],null),lt.node_name="inline_"+et,lt.text=S,lt.id=tt["$[]"]("id"),lt.type=tt["$[]"]("type"),lt.target=tt["$[]"]("target")},-3),V(We,"$block?",je(!1)),V(We,"$inline?",je(!0)),V(We,"$convert",function(){var z=this;return z.$converter().$convert(z)}),Y(We,"render","convert"),V(We,"$alt",function(){var z=this,et=Je;return Ie(et=z.$attr("alt"))?et:""}),V(We,"$reftext?",function(){var z=this,et=Je,S=Je;return Ie(et=z.text)?Ie(S=z.type["$=="]("ref"))?S:z.type["$=="]("bibref"):et}),V(We,"$reftext",function(){var z=this,et=Je;return Ie(et=z.text)?z.$apply_reftext_subs(et):Je}),V(We,"$xreftext",function(z){var et=this;return et.$reftext()},-1)}(Pe[0],ft("AbstractNode"))}(E[0],E)},Opal.modules["asciidoctor/list"]=function(a){var ne=a.module,ee=a.klass,H=a.alias,_e=a.hash2,v=a.send2,V=a.find_super,je=a.def,Y=a.truthy,Ie=a.eqeq,E=[],Je=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(Te,Ye){var Me=ne(Te,"Asciidoctor"),Pe=[Me].concat(Ye),ft=a.$r(Pe);return function(Ve,st){var We=ee(Ve,st,"List"),Ze=We.$$prototype;return Ze.context=Ze.document=Ze.style=Je,H(We,"items","blocks"),H(We,"content","blocks"),H(We,"items?","blocks?"),je(We,"$initialize",function $t(z,et,S){var tt=$t.$$p||Je,lt=this;return $t.$$p=null,S==null&&(S=_e([],{})),v(lt,V(lt,"initialize",$t,!1,!0),"initialize",[z,et,S],tt)},-3),je(We,"$outline?",function(){var z=this,et=Je;return Y(et=z.context["$=="]("ulist"))?et:z.context["$=="]("olist")}),je(We,"$convert",function $t(){var z=$t.$$p||Je,et=this,S=Je;return $t.$$p=null,Ie(et.context,"colist")?(S=v(et,V(et,"convert",$t,!1,!0),"convert",[],z),et.document.$callouts().$next_list(),S):v(et,V(et,"convert",$t,!1,!0),"convert",[],z)}),H(We,"render","convert"),je(We,"$to_s",function(){var z=this;return"#<"+z.$class()+"@"+z.$object_id()+" {context: "+z.context.$inspect()+", style: "+z.style.$inspect()+", items: "+z.$items().$size()+"}>"})}(Pe[0],ft("AbstractBlock")),function(Ve,st,We){var Ze=ee(Ve,st,"ListItem"),$t=[Ze].concat(We),z=a.$r($t),et=Ze.$$prototype;return et.text=et.subs=et.blocks=Je,H(Ze,"list","parent"),Ze.$attr_accessor("marker"),je(Ze,"$initialize",function S(tt,lt){S.$$p;var K=this;return S.$$p=null,lt==null&&(lt=Je),v(K,V(K,"initialize",S,!1,!0),"initialize",[tt,"list_item"],null),K.text=lt,K.level=tt.$level(),K.subs=z("NORMAL_SUBS").$drop(0)},-2),je(Ze,"$text?",function(){var tt=this;return!Y(tt.text["$nil_or_empty?"]())}),je(Ze,"$text",function(){var tt=this,lt=Je;return Y(lt=tt.text)?tt.$apply_subs(tt.text,tt.subs):lt}),Ze.$attr_writer("text"),je(Ze,"$simple?",function(){var tt=this,lt=Je,K=Je,I=Je,Ue=Je;return Y(lt=tt.blocks["$empty?"]())?lt:Y(K=Y(I=tt.blocks.$size()["$=="](1))?z("List")["$==="](Ue=tt.blocks["$[]"](0)):I)?Ue["$outline?"]():K}),je(Ze,"$compound?",function(){var tt=this;return tt["$simple?"]()["$!"]()}),je(Ze,"$fold_first",function(){var tt=this;return tt.text=Y(tt.text["$nil_or_empty?"]())?tt.blocks.$shift().$source():""+tt.text+z("LF")+tt.blocks.$shift().$source(),Je}),je(Ze,"$to_s",function(){var tt=this,lt=Je;return"#<"+tt.$class()+"@"+tt.$object_id()+" {list_context: "+tt.$parent().$context().$inspect()+", text: "+tt.text.$inspect()+", blocks: "+(Y(lt=tt.blocks)?lt:[]).$size()+"}>"})}(Pe[0],ft("AbstractBlock"),Pe)}(E[0],E)},Opal.modules["asciidoctor/parser"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.send,v=a.truthy,V=a.hash2,je=a.to_ary,Y=a.defs,Ie=a.eqeq,E=a.not,Je=a.gvars,Te=a.neqeq,Ye=a.rb_plus,Me=a.rb_lt,Pe=a.rb_gt,ft=a.to_a,Ve=a.eqeqeq,st=a.rb_minus,We=a.rb_times,Ze=a.thrower,$t=[],z=a.nil,et=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(S,tt){var lt=ne(S,"Asciidoctor"),K=[lt].concat(tt);return function(I,Ue,be){var Ne=ee(I,Ue,"Parser"),Ce=[Ne].concat(be),se=a.$r(Ce);return Ne.$include(se("Logging")),H(Ce[0],"BlockMatchData",se("Struct").$new("context","masq","tip","terminator")),H(Ce[0],"TAB"," "),H(Ce[0],"TabIndentRx",/^\t+/),H(Ce[0],"StartOfBlockProc",_e(Ne,"proc",[],function ge(Q){var L=ge.$$s==null?this:ge.$$s,N=z,re=z;return Q==null&&(Q=z),v(N=v(re=Q["$start_with?"]("["))?se("BlockAttributeLineRx")["$match?"](Q):re)?N:L["$is_delimited_block?"](Q)},{$$s:Ne})),H(Ce[0],"StartOfListProc",_e(Ne,"proc",[],function(Q){return Q==null&&(Q=z),se("AnyListRx")["$match?"](Q)})),H(Ce[0],"StartOfBlockOrListProc",_e(Ne,"proc",[],function ge(Q){var L=ge.$$s==null?this:ge.$$s,N=z,re=z,O=z;return Q==null&&(Q=z),v(N=v(re=L["$is_delimited_block?"](Q))?re:v(O=Q["$start_with?"]("["))?se("BlockAttributeLineRx")["$match?"](Q):O)?N:se("AnyListRx")["$match?"](Q)},{$$s:Ne})),H(Ce[0],"NoOp",z),H(Ce[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),H(Ce[0],"TableCellHorzAlignments",V(["<",">","^"],{"<":"left",">":"right","^":"center"})),H(Ce[0],"TableCellVertAlignments",V(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),H(Ce[0],"TableCellStyles",V(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),Ne.$private_class_method("new"),Y(Ne,"$parse",function(Q,L,N){var re,O,ue=this,U=z,g=z,u=z;if(N==null&&(N=V([],{})),U=ue.$parse_document_header(Q,L,g=N["$[]"]("header_only")),!v(g))for(;v(Q["$has_more_lines?"]());)O=ue.$next_section(Q,L,U),re=je(O),u=re[0]==null?z:re[0],U=re[1]==null?z:re[1],v(u)&&(L.$assign_numeral(u),L.$blocks()["$<<"](u));return L},-3),Y(Ne,"$parse_document_header",function(Q,L,N){var re,O,ue,U=this,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z;return N==null&&(N=!1),g=v(Q.$skip_blank_lines())?U.$parse_block_metadata_lines(Q,L):V([],{}),u=L.$attributes(),v(m=U["$is_next_line_doctitle?"](Q,g,u["$[]"]("leveloffset")))&&v(g["$[]"]("title"))?(u["$[]="]("authorcount",0),L.$finalize_header(g,!1)):(v((C=u["$[]"]("doctitle"))["$nil_or_empty?"]())||L["$title="](x=C),v(m)?(v(L.$sourcemap())&&(y=Q.$cursor()),O=U.$parse_section_title(Q,L),re=je(O),ue=[re[0]==null?z:re[0]],_e(L,"id=",ue),ue[ue.length-1],re[1]==null||re[1],M=re[2]==null?z:re[2],re[3]==null||re[3],P=re[4]==null?z:re[4],v(x)?M=z:(L["$title="](M),v((re=["doctitle",x=L.$sub_specialchars(M)],_e(u,"[]=",re),re[re.length-1])["$include?"](se("ATTR_REF_HEAD")))&&u["$[]="]("doctitle",x=L.$sub_attributes(x,V(["attribute_missing"],{attribute_missing:"skip"})))),v(y)&&L.$header()["$source_location="](y),v(P)||v(L["$attribute_locked?"]("compat-mode"))||u["$[]="]("compat-mode",""),v(fe=g["$[]"]("separator"))&&(v(L["$attribute_locked?"]("title-separator"))||u["$[]="]("title-separator",fe)),v(ie=g["$[]"]("id"))?L["$id="](ie):ie=L.$id(),v(xe=g["$[]"]("role"))&&u["$[]="]("role",xe),v(Le=g["$[]"]("reftext"))&&u["$[]="]("reftext",Le),g.$clear(),(Ke=L.$instance_variable_get("@attributes_modified")).$delete("doctitle"),U.$parse_header_metadata(Q,L,z),v(Ke["$include?"]("doctitle"))?v((C=u["$[]"]("doctitle"))["$nil_or_empty?"]())||Ie(C,x)?u["$[]="]("doctitle",x):L["$title="](C):E(M)&&Ke["$<<"]("doctitle"),v(ie)&&L.$register("refs",[ie,L])):v(nt=u["$[]"]("author"))?(dt=U.$process_authors(nt,!0,!1),v(u["$[]"]("authorinitials"))&&dt.$delete("authorinitials"),u.$update(dt)):v(nt=u["$[]"]("authors"))?(dt=U.$process_authors(nt,!0),u.$update(dt)):u["$[]="]("authorcount",0),Ie(L.$doctype(),"manpage")&&U.$parse_manpage_header(Q,L,g,N),L.$finalize_header(g))},-3),Y(Ne,"$parse_manpage_header",function(Q,L,N,re){var O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z;return re==null&&(re=!1),v(se("ManpageTitleVolnumRx")["$=~"]((U=L.$attributes())["$[]"]("doctitle")))?(U["$[]="]("manvolnum",g=(O=Je["~"])===z?z:O["$[]"](2)),U["$[]="]("mantitle",(v((u=(O=Je["~"])===z?z:O["$[]"](1))["$include?"](se("ATTR_REF_HEAD")))?L.$sub_attributes(u):u).$downcase())):(ue.$logger().$error(ue.$message_with_context("non-conforming manpage title",V(["source_location"],{source_location:Q.$cursor_at_line(1)}))),U["$[]="]("mantitle",v(m=v(C=U["$[]"]("doctitle"))?C:U["$[]"]("docname"))?m:"command"),U["$[]="]("manvolnum",g="1")),v(x=U["$[]"]("manname"))&&v(U["$[]"]("manpurpose"))?(v(m=U["$[]"]("manname-title"))||U["$[]="]("manname-title","Name"),U["$[]="]("mannames",[x]),Ie(L.$backend(),"manpage")&&(U["$[]="]("docname",x),U["$[]="]("outfilesuffix","."+g))):v(re)||(Q.$skip_blank_lines(),Q.$save(),N.$update(ue.$parse_block_metadata_lines(Q,L)),v(y=ue["$is_next_line_section?"](Q,V([],{})))?Ie(y,1)?(M=ue.$initialize_section(Q,L,V([],{})),P=_e(Q.$read_lines_until(V(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Ke){return Ke==null&&(Ke=z),Ke.$lstrip()}).$join(" "),v(se("ManpageNamePurposeRx")["$=~"](P))?(v((x=(O=Je["~"])===z?z:O["$[]"](1))["$include?"](se("ATTR_REF_HEAD")))&&(x=L.$sub_attributes(x)),v(x["$include?"](","))?x=(fe=_e(x.$split(","),"map",[],function(Ke){return Ke==null&&(Ke=z),Ke.$lstrip()}))["$[]"](0):fe=[x],v((ie=(O=Je["~"])===z?z:O["$[]"](2))["$include?"](se("ATTR_REF_HEAD")))&&(ie=L.$sub_attributes(ie)),v(m=U["$[]"]("manname-title"))||U["$[]="]("manname-title",M.$title()),v(M.$id())&&U["$[]="]("manname-id",M.$id()),U["$[]="]("manname",x),U["$[]="]("mannames",fe),U["$[]="]("manpurpose",ie),Ie(L.$backend(),"manpage")&&(U["$[]="]("docname",x),U["$[]="]("outfilesuffix","."+g))):xe="non-conforming name section body"):xe="name section must be at level 1":xe="name section expected",v(xe)?(Q.$restore_save(),ue.$logger().$error(ue.$message_with_context(xe,V(["source_location"],{source_location:Q.$cursor()}))),U["$[]="]("manname",x=v(m=U["$[]"]("docname"))?m:"command"),U["$[]="]("mannames",[x]),Ie(L.$backend(),"manpage")&&(U["$[]="]("docname",x),U["$[]="]("outfilesuffix","."+g))):Q.$discard_save()),z},-4),Y(Ne,"$next_section",function(Q,L,N){var re,O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z,at=z,pt=z,vt=z,bt=z;for(N==null&&(N=V([],{})),U=g=u=!1,Ie(L.$context(),"document")&&v(L.$blocks()["$empty?"]())&&(v(m=L["$header?"]())||v(N.$delete("invalid-header"))||E(ue["$is_next_line_section?"](Q,N)))?(C=(x=L).$doctype()["$=="]("book"),(v(m)||v(C)&&Te(N["$[]"](1),"abstract"))&&(U=g=se("Block").$new(L,"preamble",V(["content_model"],{content_model:"compound"})),v(C)&&v(L["$attr?"]("preface-title"))&&U["$title="](L.$attr("preface-title")),L.$blocks()["$<<"](U)),y=L,M=0,v(L.$attributes()["$key?"]("fragment"))?P=-1:v(C)?(re=[1,0],P=re[0],fe=re[1]):P=1):(C=(x=L.$document()).$doctype()["$=="]("book"),y=ue.$initialize_section(Q,L,N),N=v(ie=N["$[]"]("title"))?V(["title"],{title:ie}):V([],{}),P=Ye(M=y.$level(),1),Ie(M,0)?u=C:Ie(M,1)&&v(y.$special())&&(Ie(xe=y.$sectname(),"appendix")||Ie(xe,"preface")||Ie(xe,"abstract")||(P=z))),Q.$skip_blank_lines();v(Q["$has_more_lines?"]());){if(ue.$parse_block_metadata_lines(Q,x,N),v(Le=ue["$is_next_line_section?"](Q,N)))if(v(x["$attr?"]("leveloffset"))&&(Le=Ye(Le,x.$attr("leveloffset").$to_i()),v(Me(Le,0))&&(Le=0)),v(Pe(Le,M)))v(P)?Ie(Le,P)||v(fe)&&Ie(Le,fe)||v(Me(P,0))||(Ke=v(fe)?"expected levels "+fe+" or "+P:"expected level "+P,ue.$logger().$warn(ue.$message_with_context("section title out of sequence: "+Ke+", got level "+Le,V(["source_location"],{source_location:Q.$cursor()})))):ue.$logger().$error(ue.$message_with_context(""+xe+" sections do not support nested sections",V(["source_location"],{source_location:Q.$cursor()}))),O=ue.$next_section(Q,y,N),re=je(O),nt=re[0]==null?z:re[0],N=re[1]==null?z:re[1],y.$assign_numeral(nt),y.$blocks()["$<<"](nt);else if(Ie(Le,0)&&Ie(y,x))v(C)||ue.$logger().$error(ue.$message_with_context("level 0 sections can only be used when doctype is book",V(["source_location"],{source_location:Q.$cursor()}))),O=ue.$next_section(Q,y,N),re=je(O),nt=re[0]==null?z:re[0],N=re[1]==null?z:re[1],y.$assign_numeral(nt),y.$blocks()["$<<"](nt);else break;else dt=Q.$cursor(),v(at=ue.$next_block(Q,v(pt=g)?pt:y,N,V(["parse_metadata"],{parse_metadata:!1})))&&(v(u)&&(E(y["$blocks?"]())?Te(at.$style(),"partintro")?Ie(at.$style(),"open")&&Ie(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=se("Block").$new(y,"open",V(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),y.$blocks()["$<<"](g)):Ie(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"](se("Block").$new(at,"paragraph",V(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):Ie(y.$blocks().$size(),1)&&(vt=y.$blocks()["$[]"](0),E(g)&&Ie(vt.$content_model(),"compound")?ue.$logger().$error(ue.$message_with_context("illegal block content outside of partintro block",V(["source_location"],{source_location:dt}))):Te(vt.$content_model(),"compound")&&(at["$parent="](g=se("Block").$new(y,"open",V(["content_model"],{content_model:"compound"}))),Ie(vt.$style(),(re=["partintro"],_e(g,"style=",re),re[re.length-1]))&&(vt["$context="]("paragraph"),vt["$style="](z)),y.$blocks().$shift(),g["$<<"](vt),y.$blocks()["$<<"](g)))),(v(pt=g)?pt:y).$blocks()["$<<"](at),N.$clear());if(!v(pt=Q.$skip_blank_lines()))break}if(v(u))v(y["$blocks?"]())&&Ie(y.$blocks()["$[]"](-1).$context(),"section")||ue.$logger().$error(ue.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",V(["source_location"],{source_location:Q.$cursor()})));else if(v(U))if(v(U["$blocks?"]()))if(v(C)||v(x.$blocks()["$[]"](1))||E(se("Compliance").$unwrap_standalone_preamble()))v(x.$sourcemap())&&U["$source_location="](U.$blocks()["$[]"](0).$source_location());else for(x.$blocks().$shift();v(bt=U.$blocks().$shift());)x["$<<"](bt);else x.$blocks().$shift();return[Ie(y,L)?z:y,N.$merge()]},-3),Y(Ne,"$next_block",function(Q,L,N,re){var O,ue,U=this,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z,at=z,pt=z,vt=z,bt=z,gt=z,Ct=z,St=z,Wt=z,Bt=z,er=z,Kt=z,jt=z,Yt=z,Xt=z,nr=z,Pn=z,Jr=z,Jt=z,Ut=z,Zt=z,Er=z,Ht=z,kr=z,cn=z,Cr=z,Sr=z,mn=z,Lr=z,Wr=z,Ns=z,Is=z,Hu=z,qs=z,Vu=z;if(Je["~"]==null&&(Je["~"]=z),N==null&&(N=V([],{})),re==null&&(re=V([],{})),!v(g=Q.$skip_blank_lines()))return z;if(v(u=re["$[]"]("text_only"))&&v(Pe(g,0))&&(re.$delete("text_only"),u=z),m=L.$document(),v(re.$fetch("parse_metadata",!0))){for(;v(U.$parse_block_metadata_line(Q,m,N,re));)if(Q.$shift(),!v(C=Q.$skip_blank_lines()))return z}if(v(x=m.$extensions())&&(O=[x["$blocks?"](),x["$block_macros?"]()],y=O[0],M=O[1]),Q.$mark(),O=[Q.$read_line(),m.$attributes(),N["$[]"](1)],P=O[0],fe=O[1],ie=O[2],xe=Le=Ke=nt=z,v(dt=U["$is_delimited_block?"](P,!0))&&(Le=Ke=dt.$context(),nt=dt.$terminator(),v(ie)?Ie(ie,Le.$to_s())||(v(dt.$masq()["$include?"](ie))?Le=ie.$to_sym():v(dt.$masq()["$include?"]("admonition"))&&v(se("ADMONITION_STYLES")["$include?"](ie))?Le="admonition":v(y)&&v(x["$registered_for_block?"](ie,Le))?Le=ie.$to_sym():(v(U.$logger()["$debug?"]())&&U.$logger().$debug(U.$message_with_context("unknown style for "+Le+" block: "+ie,V(["source_location"],{source_location:Q.$cursor_at_mark()}))),ie=Le.$to_s())):ie=(O=["style",Le.$to_s()],_e(N,"[]=",O),O[O.length-1])),!v(dt))for(;v(!0);){if(v(ie)&&v(se("Compliance").$strict_verbatim_paragraphs())&&v(se("VERBATIM_STYLES")["$include?"](ie))){Le=ie.$to_sym(),Q.$unshift_line(P);break}if(v(u))at=P["$start_with?"](" ",se("TAB"));else if(pt=se("Compliance").$markdown_syntax(),v(P["$start_with?"](" "))){if(O=[!0," "],at=O[0],vt=O[1],v(pt)&&v(_e(P.$lstrip(),"start_with?",ft(se("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&v(se("MarkdownThematicBreakRx")["$match?"](P))){xe=se("Block").$new(L,"thematic_break",V(["content_model"],{content_model:"empty"}));break}}else if(v(P["$start_with?"](se("TAB"))))O=[!0,se("TAB")],at=O[0],vt=O[1];else if(O=[!1,P.$chr()],at=O[0],vt=O[1],bt=v(pt)?se("HYBRID_LAYOUT_BREAK_CHARS"):se("LAYOUT_BREAK_CHARS"),v(bt["$key?"](vt))&&v(v(pt)?se("ExtLayoutBreakRx")["$match?"](P):v(C=U["$uniform?"](P,vt,gt=P.$length()))?Pe(gt,2):C)){xe=se("Block").$new(L,bt["$[]"](vt),V(["content_model"],{content_model:"empty"}));break}else if(v(P["$end_with?"]("]"))&&v(P["$include?"]("::"))){if((Ie(vt,"i")||v(P["$start_with?"]("video:","audio:")))&&v(se("BlockMediaMacroRx")["$=~"](P))){if(O=[((ue=Je["~"])===z?z:ue["$[]"](1)).$to_sym(),(ue=Je["~"])===z?z:ue["$[]"](2),(ue=Je["~"])===z?z:ue["$[]"](3)],Ct=O[0],St=O[1],Wt=O[2],xe=se("Block").$new(L,Ct,V(["content_model"],{content_model:"empty"})),v(Wt)){switch(Ct){case"video":Bt=["poster","width","height"];break;case"audio":Bt=[];break;default:Bt=["alt","width","height"]}xe.$parse_attributes(Wt,Bt,V(["sub_input","into"],{sub_input:!0,into:N}))}if(v(N["$key?"]("style"))&&N.$delete("style"),v(St["$include?"](se("ATTR_REF_HEAD")))){if(v((er=xe.$sub_attributes(St))["$empty?"]())&&Ie(v(C=fe["$[]"]("attribute-missing"))?C:se("Compliance").$attribute_missing(),"drop-line")&&v(xe.$sub_attributes(Ye(St," "),V(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return N.$clear(),z;St=er}Ie(Ct,"image")&&(m.$register("images",St),N["$[]="]("imagesdir",fe["$[]"]("imagesdir")),v(C=N["$[]"]("alt"))||N["$[]="]("alt",v(Kt=ie)?Kt:(O=["default-alt",se("Helpers").$basename(St,!0).$tr("_-"," ")],_e(N,"[]=",O),O[O.length-1])),v((jt=N.$delete("scaledwidth"))["$nil_or_empty?"]())||N["$[]="]("scaledwidth",v(se("TrailingDigitsRx")["$match?"](jt))?""+jt+"%":jt),v(N["$[]"]("title"))&&(xe["$title="](Yt=N.$delete("title")),xe.$assign_caption(N.$delete("caption"),"figure"))),N["$[]="]("target",St);break}else if(Ie(vt,"t")&&v(P["$start_with?"]("toc:"))&&v(se("BlockTocMacroRx")["$=~"](P))){xe=se("Block").$new(L,"toc",V(["content_model"],{content_model:"empty"})),v((O=Je["~"])===z?z:O["$[]"](1))&&xe.$parse_attributes((O=Je["~"])===z?z:O["$[]"](1),[],V(["into"],{into:N}));break}else if(v(v(M)?v(C=v(Kt=se("CustomBlockMacroRx")["$=~"](P))?Xt=x["$registered_for_block_macro?"]((O=Je["~"])===z?z:O["$[]"](1)):Kt)?C:nr=U.$logger()["$debug?"]():v(C=U.$logger()["$debug?"]())?nr=se("CustomBlockMacroRx")["$=~"](P):C))if(v(nr))U.$logger().$debug(U.$message_with_context("unknown name for block macro: "+((O=Je["~"])===z?z:O["$[]"](1)),V(["source_location"],{source_location:Q.$cursor_at_mark()})));else{if(Pn=(O=Je["~"])===z?z:O["$[]"](3),v((St=(O=Je["~"])===z?z:O["$[]"](2))["$include?"](se("ATTR_REF_HEAD")))){if(v((er=L.$sub_attributes(St))["$empty?"]())&&Ie(v(C=fe["$[]"]("attribute-missing"))?C:se("Compliance").$attribute_missing(),"drop-line")&&v(L.$sub_attributes(Ye(St," "),V(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return N.$clear(),z;St=er}if(Ie((Jr=Xt.$config())["$[]"]("content_model"),"attributes")?v(Pn)&&m.$parse_attributes(Pn,v(C=v(Kt=Jr["$[]"]("positional_attrs"))?Kt:Jr["$[]"]("pos_attrs"))?C:[],V(["sub_input","into"],{sub_input:!0,into:N})):N["$[]="]("text",v(C=Pn)?C:""),v(Jt=Jr["$[]"]("default_attrs"))&&_e(N,"update",[Jt],function(Or,cs){return cs==null&&(cs=z),cs}),v(xe=Xt.$process_method()["$[]"](L,St,N))&&Te(xe,L)){N.$replace(xe.$attributes());break}else return N.$clear(),z}}if(E(at)&&Ie(vt=v(C=vt)?C:P.$chr(),"<")&&v(se("CalloutListRx")["$=~"](P))){Q.$unshift_line(P),xe=U.$parse_callout_list(Q,Je["~"],L,m.$callouts()),N["$[]="]("style","arabic");break}else if(v(se("UnorderedListRx")["$match?"](P))){Q.$unshift_line(P),E(ie)&&Ve(se("Section"),L)&&Ie(L.$sectname(),"bibliography")&&N["$[]="]("style",ie="bibliography"),xe=U.$parse_list(Q,"ulist",L,ie);break}else if(v(se("OrderedListRx")["$match?"](P))){Q.$unshift_line(P),xe=U.$parse_list(Q,"olist",L,ie),v(xe.$style())&&N["$[]="]("style",xe.$style());break}else if((v(P["$include?"]("::"))||v(P["$include?"](";;")))&&v(se("DescriptionListRx")["$=~"](P))){Q.$unshift_line(P),xe=U.$parse_description_list(Q,Je["~"],L);break}else if((Ie(ie,"float")||Ie(ie,"discrete"))&&v(v(se("Compliance").$underline_style_section_titles())?U["$is_section_title?"](P,Q.$peek_line()):v(C=at["$!"]())?U["$atx_section_title?"](P):C)){Q.$unshift_line(P),ue=U.$parse_section_title(Q,m,N["$[]"]("id")),O=je(ue),Ut=O[0]==null?z:O[0],Zt=O[1]==null?z:O[1],Yt=O[2]==null?z:O[2],Er=O[3]==null?z:O[3],v(Zt)&&N["$[]="]("reftext",Zt),xe=se("Block").$new(L,"floating_title",V(["content_model"],{content_model:"empty"})),xe["$title="](Yt),N.$delete("title"),xe["$id="](v(C=Ut)?C:v(fe["$key?"]("sectids"))?se("Section").$generate_id(xe.$title(),m):z),xe["$level="](Er);break}else if(v(ie)&&Te(ie,"normal"))if(v(se("PARAGRAPH_STYLES")["$include?"](ie))){Le=ie.$to_sym(),Ke="paragraph",Q.$unshift_line(P);break}else if(v(se("ADMONITION_STYLES")["$include?"](ie))){Le="admonition",Ke="paragraph",Q.$unshift_line(P);break}else if(v(y)&&v(x["$registered_for_block?"](ie,"paragraph"))){Le=ie.$to_sym(),Ke="paragraph",Q.$unshift_line(P);break}else v(U.$logger()["$debug?"]())&&U.$logger().$debug(U.$message_with_context("unknown style for paragraph: "+ie,V(["source_location"],{source_location:Q.$cursor_at_mark()}))),ie=z;if(Q.$unshift_line(P),v(at)&&E(ie))Ht=U.$read_paragraph_lines(Q,kr=Ie(g,0)?re["$[]"]("list_type"):z,V(["skip_line_comments"],{skip_line_comments:u})),U["$adjust_indentation!"](Ht),v(u)||Ie(kr,"dlist")?xe=se("Block").$new(L,"paragraph",V(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:N})):xe=se("Block").$new(L,"literal",V(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:N}));else{if(Ht=U.$read_paragraph_lines(Q,v(C=g["$=="](0))?re["$[]"]("list_type"):C,V(["skip_line_comments"],{skip_line_comments:!0})),v(u))v(at)&&Ie(ie,"normal")&&U["$adjust_indentation!"](Ht),xe=se("Block").$new(L,"paragraph",V(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:N}));else if(v(se("ADMONITION_STYLE_HEADS")["$include?"](vt))&&v(P["$include?"](":"))&&v(se("AdmonitionParagraphRx")["$=~"](P)))Ht["$[]="](0,(O=Je["~"])===z?z:O.$post_match()),N["$[]="]("name",cn=(O=["style",(ue=Je["~"])===z?z:ue["$[]"](1)],_e(N,"[]=",O),O[O.length-1]).$downcase()),N["$[]="]("textlabel",v(C=N.$delete("caption"))?C:fe["$[]"](""+cn+"-caption")),xe=se("Block").$new(L,"admonition",V(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:N}));else if(v(pt)&&Ie(vt,">")&&v(P["$start_with?"]("> "))){if(_e(Ht,"map!",[],function(Or){return Or==null&&(Or=z),Ie(Or,">")?Or.$slice(1,Or.$length()):v(Or["$start_with?"]("> "))?Or.$slice(2,Or.$length()):Or}),v(Ht["$[]"](-1)["$start_with?"]("-- "))&&(Cr=(Cr=Ht.$pop()).$slice(3,Cr.$length()),!v(Ht["$empty?"]())))for(;v(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();N["$[]="]("style","quote"),xe=U.$build_block("quote","compound",!1,L,se("Reader").$new(Ht),N),v(Cr)&&(ue=xe.$apply_subs(Cr).$split(", ",2),O=je(ue),Sr=O[0]==null?z:O[0],mn=O[1]==null?z:O[1],v(Sr)&&N["$[]="]("attribution",Sr),v(mn)&&N["$[]="]("citetitle",mn))}else if(Ie(vt,'"')&&v(Pe(Ht.$size(),1))&&v(Ht["$[]"](-1)["$start_with?"]("-- "))&&v(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,P.$slice(1,P.$length())),Cr=(Cr=Ht.$pop()).$slice(3,Cr.$length());v(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();Ht["$<<"](Ht.$pop().$chop()),N["$[]="]("style","quote"),xe=se("Block").$new(L,"quote",V(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:N})),ue=xe.$apply_subs(Cr).$split(", ",2),O=je(ue),Sr=O[0]==null?z:O[0],mn=O[1]==null?z:O[1],v(Sr)&&N["$[]="]("attribution",Sr),v(mn)&&N["$[]="]("citetitle",mn)}else v(at)&&Ie(ie,"normal")&&U["$adjust_indentation!"](Ht),xe=se("Block").$new(L,"paragraph",V(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:N}));U.$catalog_inline_anchors(Ht.$join(se("LF")),xe,m,Q)}break}if(!v(xe))switch(Le){case"listing":case"source":(Ie(Le,"source")||E(N["$[]"](1))&&v(Lr=v(Kt=N["$[]"](2))?Kt:fe["$[]"]("source-language")))&&(v(Lr)?(N["$[]="]("style","source"),N["$[]="]("language",Lr),se("AttributeList").$rekey(N,[z,z,"linenums"])):(se("AttributeList").$rekey(N,[z,"language","linenums"]),v(N["$key?"]("language"))||v(fe["$key?"]("source-language"))&&N["$[]="]("language",fe["$[]"]("source-language"))),v(N["$key?"]("linenums"))||(v(N["$[]"]("linenums-option"))||v(fe["$[]"]("source-linenums-option")))&&N["$[]="]("linenums",""),v(N["$key?"]("indent"))||v(fe["$key?"]("source-indent"))&&N["$[]="]("indent",fe["$[]"]("source-indent"))),xe=U.$build_block("listing","verbatim",nt,L,Q,N);break;case"fenced_code":N["$[]="]("style","source"),v(Pe(gt=P.$length(),3))&&(v(Wr=(Lr=P.$slice(3,gt)).$index(","))?v(Pe(Wr,0))?(Lr=Lr.$slice(0,Wr).$strip(),v(Me(Wr,st(gt,4)))&&N["$[]="]("linenums","")):v(Pe(gt,4))&&N["$[]="]("linenums",""):Lr=Lr.$lstrip()),v(Lr["$nil_or_empty?"]())?v(fe["$key?"]("source-language"))&&N["$[]="]("language",fe["$[]"]("source-language")):N["$[]="]("language",Lr),v(N["$key?"]("linenums"))||(v(N["$[]"]("linenums-option"))||v(fe["$[]"]("source-linenums-option")))&&N["$[]="]("linenums",""),v(N["$key?"]("indent"))||v(fe["$key?"]("source-indent"))&&N["$[]="]("indent",fe["$[]"]("source-indent")),nt=nt.$slice(0,3),xe=U.$build_block("listing","verbatim",nt,L,Q,N);break;case"table":Ns=Q.$cursor(),Is=se("Reader").$new(Q.$read_lines_until(V(["terminator","skip_line_comments","context","cursor"],{terminator:nt,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Ns),v(nt["$start_with?"]("|","!"))||v(Kt=N["$[]"]("format"))||N["$[]="]("format",v(nt["$start_with?"](","))?"csv":"dsv"),xe=U.$parse_table(Is,L,N);break;case"sidebar":xe=U.$build_block(Le,"compound",nt,L,Q,N);break;case"admonition":N["$[]="]("name",cn=ie.$downcase()),N["$[]="]("textlabel",v(Kt=N.$delete("caption"))?Kt:fe["$[]"](""+cn+"-caption")),xe=U.$build_block(Le,"compound",nt,L,Q,N);break;case"open":case"abstract":case"partintro":xe=U.$build_block("open","compound",nt,L,Q,N);break;case"literal":xe=U.$build_block(Le,"verbatim",nt,L,Q,N);break;case"example":v(N["$[]"]("collapsible-option"))&&N["$[]="]("caption",""),xe=U.$build_block(Le,"compound",nt,L,Q,N);break;case"quote":case"verse":se("AttributeList").$rekey(N,[z,"attribution","citetitle"]),xe=U.$build_block(Le,Ie(Le,"verse")?"verbatim":"compound",nt,L,Q,N);break;case"stem":case"latexmath":case"asciimath":Ie(Le,"stem")&&N["$[]="]("style",se("STEM_TYPE_ALIASES")["$[]"](v(Kt=N["$[]"](2))?Kt:fe["$[]"]("stem"))),xe=U.$build_block("stem","raw",nt,L,Q,N);break;case"pass":xe=U.$build_block(Le,"raw",nt,L,Q,N);break;case"comment":return U.$build_block(Le,"skip",nt,L,Q,N),N.$clear(),z;default:if(v(y)&&v(Xt=x["$registered_for_block?"](Le,Ke))){if(Ie(Hu=(Jr=Xt.$config())["$[]"]("content_model"),"skip")||(v((qs=v(Kt=Jr["$[]"]("positional_attrs"))?Kt:Jr["$[]"]("pos_attrs"))["$nil_or_empty?"]())||se("AttributeList").$rekey(N,Ye([z],qs)),v(Jt=Jr["$[]"]("default_attrs"))&&_e(Jt,"each",[],function(Or,cs){var Il;return Or==null&&(Or=z),cs==null&&(cs=z),v(Kt=N["$[]"](Or))?Kt:(Il=[Or,cs],_e(N,"[]=",Il),Il[Il.length-1])}),N["$[]="]("cloaked-context",Ke)),!v(xe=U.$build_block(Le,Hu,nt,L,Q,N,V(["extension"],{extension:Xt}))))return N.$clear(),z}else U.$raise("Unsupported block type "+Le+" at "+Q.$cursor())}return v(m.$sourcemap())&&xe["$source_location="](Q.$cursor_at_mark()),v(N["$[]"]("title"))&&(xe["$title="](Yt=N.$delete("title")),v(se("CAPTION_ATTRIBUTE_NAMES")["$[]"](xe.$context()))&&xe.$assign_caption(N.$delete("caption"))),xe["$style="](N["$[]"]("style")),v(Vu=v(C=xe.$id())?C:(O=[N["$[]"]("id")],_e(xe,"id=",O),O[O.length-1]))&&(v(v(Yt)?Yt["$include?"](se("ATTR_REF_HEAD")):xe["$title?"]())&&xe.$title(),v(m.$register("refs",[Vu,xe]))||U.$logger().$warn(U.$message_with_context("id assigned to block already in use: "+Vu,V(["source_location"],{source_location:Q.$cursor_at_mark()})))),v(N["$empty?"]())||xe.$update_attributes(N),xe.$commit_subs(),v(xe["$sub?"]("callouts"))&&(v(U.$catalog_callouts(xe.$source(),m))||xe.$remove_sub("callouts")),xe},-3),Y(Ne,"$read_paragraph_lines",function(Q,L,N){var re=z;return N==null&&(N=V([],{})),N["$[]="]("break_on_blank_lines",!0),N["$[]="]("break_on_list_continuation",!0),N["$[]="]("preserve_last_line",!0),re=v(L)?v(se("Compliance").$block_terminates_paragraph())?se("StartOfBlockOrListProc"):se("StartOfListProc"):v(se("Compliance").$block_terminates_paragraph())?se("StartOfBlockProc"):se("NoOp"),_e(Q,"read_lines_until",[N],re.$to_proc())},-3),Y(Ne,"$is_delimited_block?",function(Q,L){var N,re,O=this,ue=z,U=z,g=z,u=z,m=z;if(L==null&&(L=z),!(v(Pe(ue=Q.$length(),1))&&v(se("DELIMITED_BLOCK_HEADS")["$[]"](Q.$slice(0,2)))))return z;if(Ie(ue,2))U=Q,g=2;else if(v(Me(ue,5))?(U=Q,g=ue):U=Q.$slice(0,g=4),v(se("Compliance").$markdown_syntax())&&v(U["$start_with?"]("`"))){if(Ie(g,4)){if(Ie(U,"````")||Te(U=U.$chop(),"```"))return z;Q=U,ue=g=3}else if(Te(U,"```"))return z}else if(Ie(g,3))return z;return re=se("DELIMITED_BLOCKS")["$[]"](U),N=je(re),u=N[0]==null?z:N[0],m=N[1]==null?z:N[1],v(u)&&(Ie(ue,g)||v(O["$uniform?"](Q.$slice(1,ue),se("DELIMITED_BLOCK_TAILS")["$[]"](U),st(ue,1))))?v(L)?se("BlockMatchData").$new(u,m,U,Q):!0:z},-2),Y(Ne,"$build_block",function(Q,L,N,re,O,ue,U){var g,u=this,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z;switch(U==null&&(U=V([],{})),L){case"skip":g=[!0,"simple"],m=g[0],C=g[1];break;case"raw":g=[!1,"simple"],m=g[0],C=g[1];break;default:g=[!1,L],m=g[0],C=g[1]}switch(v(N["$nil?"]())?(Ie(C,"verbatim")?x=O.$read_lines_until(V(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(Ie(L,"compound")&&(L="simple"),x=u.$read_paragraph_lines(O,!1,V(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:m}))),y=z):Te(C,"compound")?(x=O.$read_lines_until(V(["terminator","skip_processing","context","cursor"],{terminator:N,skip_processing:m,context:Q,cursor:"at_mark"})),y=z):Ie(N,!1)?(x=z,y=O):(x=z,M=O.$cursor(),y=se("Reader").$new(O.$read_lines_until(V(["terminator","skip_processing","context","cursor"],{terminator:N,skip_processing:m,context:Q,cursor:"at_mark"})),M)),L){case"verbatim":P=(v(fe=ue["$[]"]("tabsize"))?fe:re.$document().$attributes()["$[]"]("tabsize")).$to_i(),v(ie=ue["$[]"]("indent"))?u["$adjust_indentation!"](x,ie.$to_i(),P):v(Pe(P,0))&&u["$adjust_indentation!"](x,-1,P);break;case"skip":return z}if(v(xe=U["$[]"]("extension")))if(ue.$delete("style"),v(Le=xe.$process_method()["$[]"](re,v(Ke=y)?Ke:se("Reader").$new(x),ue.$merge()))&&Te(Le,re))ue.$replace(Le.$attributes()),Ie(Le.$content_model(),"compound")&&Ve(se("Block"),Le)&&E((x=Le.$lines())["$empty?"]())&&(L="compound",y=se("Reader").$new(x));else return z;else Le=se("Block").$new(re,Q,V(["content_model","source","attributes"],{content_model:L,source:x,attributes:ue}));return Ie(L,"compound")&&u.$parse_blocks(y,Le),Le},-7),Y(Ne,"$parse_blocks",function(Q,L,N){var re=this,O=z,ue=z,U=z;if(N==null&&(N=z),v(N))for(;v(v(O=v(ue=U=re.$next_block(Q,L,N.$merge()))?L.$blocks()["$<<"](U):ue)?O:Q["$has_more_lines?"]()););else for(;v(v(O=v(ue=U=re.$next_block(Q,L))?L.$blocks()["$<<"](U):ue)?O:Q["$has_more_lines?"]()););return z},-3),Y(Ne,"$parse_list",function(Q,L,N,re){var O,ue=this,U=z,g=z,u=z,m=z;for(Je["~"]==null&&(Je["~"]=z),U=se("List").$new(N,L),g=se("ListRxMap")["$[]"](L);v(v(u=Q["$has_more_lines?"]())?g["$=~"](Q.$peek_line()):u)&&(v(m=ue.$parse_list_item(Q,U,Je["~"],(O=Je["~"])===z?z:O["$[]"](1),re))&&U.$items()["$<<"](m),!!v(u=Q.$skip_blank_lines())););return U}),Y(Ne,"$catalog_callouts",function(Q,L){var N=z,re=z;return N=!1,re=0,v(Q["$include?"]("<"))&&_e(Q,"scan",[se("CalloutScanRx")],function(){var ue;return v(((ue=Je["~"])===z?z:ue["$[]"](0))["$start_with?"]("\\"))||L.$callouts().$register(Ie((ue=Je["~"])===z?z:ue["$[]"](2),".")?(re=Ye(re,1)).$to_s():(ue=Je["~"])===z?z:ue["$[]"](2)),N=!0}),N}),Y(Ne,"$catalog_inline_anchor",function(Q,L,N,re,O){var ue=this;return O==null&&(O=N.$document()),v(L)&&v(L["$include?"](se("ATTR_REF_HEAD")))&&(L=O.$sub_attributes(L)),v(O.$register("refs",[Q,se("Inline").$new(N,"anchor",L,V(["type","id"],{type:"ref",id:Q}))]))||(Ve(se("Reader"),re)&&(re=re.$cursor()),ue.$logger().$warn(ue.$message_with_context("id assigned to anchor already in use: "+Q,V(["source_location"],{source_location:re})))),z},-5),Y(Ne,"$catalog_inline_anchors",function(Q,L,N,re){var O=this;return(v(Q["$include?"]("[["))||v(Q["$include?"]("or:")))&&_e(Q,"scan",[se("InlineAnchorScanRx")],function ue(){var U,g=ue.$$s==null?this:ue.$$s,u=z,m=z,C=z,x=z;if(v(u=(U=Je["~"])===z?z:U["$[]"](1))){if(v(m=(U=Je["~"])===z?z:U["$[]"](2))&&v(m["$include?"](se("ATTR_REF_HEAD")))&&v((m=N.$sub_attributes(m))["$empty?"]()))return z}else u=(U=Je["~"])===z?z:U["$[]"](3),v(m=(U=Je["~"])===z?z:U["$[]"](4))&&(v(m["$include?"]("]"))?(m=m.$gsub("\\]","]"),v(m["$include?"](se("ATTR_REF_HEAD")))&&(m=N.$sub_attributes(m))):v(m["$include?"](se("ATTR_REF_HEAD")))&&v((m=N.$sub_attributes(m))["$empty?"]())&&(m=z));return v(N.$register("refs",[u,se("Inline").$new(L,"anchor",m,V(["type","id"],{type:"ref",id:u}))]))?z:(C=re.$cursor_at_mark(),v(Pe(x=Ye(((U=Je["~"])===z?z:U.$pre_match()).$count(se("LF")),v(((U=Je["~"])===z?z:U["$[]"](0))["$start_with?"](se("LF")))?1:0),0))&&(C=C.$dup()).$advance(x),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+u,V(["source_location"],{source_location:C}))))},{$$s:O}),z}),Y(Ne,"$catalog_inline_biblio_anchor",function(Q,L,N,re){var O=this,ue=z;return v(N.$document().$register("refs",[Q,se("Inline").$new(N,"anchor",v(ue=L)?"["+L+"]":ue,V(["type","id"],{type:"bibref",id:Q}))]))||O.$logger().$warn(O.$message_with_context("id assigned to bibliography anchor already in use: "+Q,V(["source_location"],{source_location:re.$cursor()}))),z}),Y(Ne,"$parse_description_list",function(Q,L,N){var re=this,O=z,ue=z,U=z,g=z,u=z;for(Je["~"]==null&&(Je["~"]=z),O=se("List").$new(N,"dlist"),ue=se("DescriptionListSiblingRx")["$[]"](L["$[]"](2)),O.$items()["$<<"](U=re.$parse_list_item(Q,O,L,ue));v(v(g=Q["$has_more_lines?"]())?ue["$=~"](Q.$peek_line()):g);)u=re.$parse_list_item(Q,O,Je["~"],ue),v(U["$[]"](1))?O.$items()["$<<"](U=u):(U["$[]"](0)["$<<"](u["$[]"](0)["$[]"](0)),U["$[]="](1,u["$[]"](1)));return O}),Y(Ne,"$parse_callout_list",function(Q,L,N,re){var O=this,ue=z,U=z,g=z,u=z,m=z,C=z,x=z,y=z;for(ue=se("List").$new(N,"colist"),U=1,g=0;v(v(u=L)?u:v(m=L=se("CalloutListRx").$match(Q.$peek_line()))?Q.$mark():m);)Ie(C=L["$[]"](1),".")&&(C=(g=Ye(g,1)).$to_s()),Ie(C,U.$to_s())||O.$logger().$warn(O.$message_with_context("callout list item index: expected "+U+", got "+C,V(["source_location"],{source_location:Q.$cursor_at_mark()}))),v(x=O.$parse_list_item(Q,ue,L,"<1>"))&&(ue.$items()["$<<"](x),v((y=re.$callout_ids(ue.$items().$size()))["$empty?"]())?O.$logger().$warn(O.$message_with_context("no callout found for <"+ue.$items().$size()+">",V(["source_location"],{source_location:Q.$cursor_at_mark()}))):x.$attributes()["$[]="]("coids",y)),U=Ye(U,1),L=z;return re.$next_list(),ue}),Y(Ne,"$parse_list_item",function(Q,L,N,re,O){var ue,U,g=this,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z,at=z,pt=z,vt=z,bt=z,gt=z,Ct=z;if(O==null&&(O=z),Ie(u=L.$context(),"dlist"))m=!0,C=se("ListItem").$new(L,x=N["$[]"](1)),v(x["$start_with?"]("[["))&&v(se("LeadingInlineAnchorRx")["$=~"](x))&&g.$catalog_inline_anchor((ue=Je["~"])===z?z:ue["$[]"](1),v(y=(ue=Je["~"])===z?z:ue["$[]"](2))?y:((ue=Je["~"])===z?z:ue.$post_match()).$lstrip(),C,Q),v(M=N["$[]"](3))&&(P=!0),fe=se("ListItem").$new(L,M),v(L.$document().$sourcemap())&&(C["$source_location="](Q.$cursor()),v(P)?fe["$source_location="](C.$source_location()):ie=!0);else switch(P=!0,fe=se("ListItem").$new(L,M=N["$[]"](2)),v(L.$document().$sourcemap())&&fe["$source_location="](Q.$cursor()),u){case"ulist":fe["$marker="](re),v(M["$start_with?"]("["))&&(v(O)&&Ie(O,"bibliography")?v(se("InlineBiblioAnchorRx")["$=~"](M))&&g.$catalog_inline_biblio_anchor((ue=Je["~"])===z?z:ue["$[]"](1),(ue=Je["~"])===z?z:ue["$[]"](2),fe,Q):v(M["$start_with?"]("[["))?v(se("LeadingInlineAnchorRx")["$=~"](M))&&g.$catalog_inline_anchor((ue=Je["~"])===z?z:ue["$[]"](1),(ue=Je["~"])===z?z:ue["$[]"](2),fe,Q):v(M["$start_with?"]("[ ] ","[x] ","[*] "))&&(L.$set_option("checklist"),fe.$attributes()["$[]="]("checkbox",""),v(M["$start_with?"]("[ "))||fe.$attributes()["$[]="]("checked",""),fe["$text="](M.$slice(4,M.$length()))));break;case"olist":U=g.$resolve_ordered_list_marker(re,xe=L.$items().$size(),!0,Q),ue=je(U),re=ue[0]==null?z:ue[0],Le=ue[1]==null?z:ue[1],fe["$marker="](re),Ie(xe,0)&&E(O)&&L["$style="](v(Ke=Le)?Ke:(v(nt=se("ORDERED_LIST_STYLES")["$[]"](st(re.$length(),1)))?nt:"arabic").$to_s()),v(M["$start_with?"]("[["))&&v(se("LeadingInlineAnchorRx")["$=~"](M))&&g.$catalog_inline_anchor((ue=Je["~"])===z?z:ue["$[]"](1),(ue=Je["~"])===z?z:ue["$[]"](2),fe,Q);break;default:fe["$marker="](re),v(M["$start_with?"]("[["))&&v(se("LeadingInlineAnchorRx")["$=~"](M))&&g.$catalog_inline_anchor((ue=Je["~"])===z?z:ue["$[]"](1),(ue=Je["~"])===z?z:ue["$[]"](2),fe,Q)}if(Q.$shift(),dt=Q.$cursor(),at=se("Reader").$new(g.$read_lines_for_list_item(Q,u,re,P),dt),v(at["$has_more_lines?"]())){for(v(ie)&&fe["$source_location="](dt),pt=at.$skip_line_comments(),v(vt=at.$peek_line())&&(v(pt["$empty?"]())||at.$unshift_lines(pt),v(vt["$empty?"]())||(bt=!0,v(m)||(P=z))),v(gt=g.$next_block(at,fe,V([],{}),V(["text_only","list_type"],{text_only:v(P)?z:!0,list_type:u})))&&fe.$blocks()["$<<"](gt);v(at["$has_more_lines?"]());)v(gt=g.$next_block(at,fe,V([],{}),V(["list_type"],{list_type:u})))&&fe.$blocks()["$<<"](gt);v(bt)&&v(Ct=fe.$blocks()["$[]"](0))&&Ie(Ct.$context(),"paragraph")&&fe.$fold_first()}return v(m)?[[C],v(fe["$text?"]())||v(fe["$blocks?"]())?fe:z]:fe},-5),Y(Ne,"$read_lines_for_list_item",function(Q,L,N,re){var O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z;for(N==null&&(N=z),re==null&&(re=!0),U=[],g="inactive",u=!1,m=z,C=L["$=="]("dlist");v(Q["$has_more_lines?"]())&&(x=Q.$read_line(),!v(ue["$is_sibling_list_item?"](x,L,N)));){if(y=v(U["$empty?"]())?z:U["$[]"](-1),Ie(y,se("LIST_CONTINUATION"))&&(Ie(g,"inactive")&&(g="active",re=!0,v(u)||U["$[]="](-1,"")),Ie(x,se("LIST_CONTINUATION")))){Te(g,"frozen")&&(g="frozen",U["$<<"](x)),x=z;continue}if(v(M=ue["$is_delimited_block?"](x,!0))){if(!Ie(g,"active"))break;U["$<<"](x),U.$concat(Q.$read_lines_until(V(["terminator","read_last_line","context"],{terminator:M.$terminator(),read_last_line:!0,context:z}))),g="inactive"}else if(v(C)&&Te(g,"active")&&v(x["$start_with?"]("["))&&v(se("BlockAttributeLineRx")["$match?"](x))){for(P=[x];v(fe=Q.$peek_line());){if(v(ue["$is_delimited_block?"](fe)))ie=!0;else if(v(fe["$empty?"]())||v(fe["$start_with?"]("["))&&v(se("BlockAttributeLineRx")["$match?"](fe))){P["$<<"](Q.$read_line());continue}else v(se("AnyListRx")["$match?"](fe))&&E(ue["$is_sibling_list_item?"](fe,L,N))?U.$concat(P):ie=!0;break}if(v(ie)){Q.$unshift_lines(P);break}}else if(Ie(g,"active")&&E(x["$empty?"]()))v(se("LiteralParagraphRx")["$match?"](x))?(Q.$unshift_line(x),v(C)?U.$concat(_e(Q,"read_lines_until",[V(["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 dt(at){var pt=dt.$$s==null?this:dt.$$s;return at==null&&(at=z),pt["$is_sibling_list_item?"](at,L,N)},{$$s:ue})):U.$concat(Q.$read_lines_until(V(["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"):Ie(xe=x.$chr(),".")&&v(se("BlockTitleRx")["$match?"](x))||Ie(xe,"[")&&v(se("BlockAttributeLineRx")["$match?"](x))||Ie(xe,":")&&v(se("AttributeEntryRx")["$match?"](x))?U["$<<"](x):(v(Le=_e(v(u)?["dlist"]:se("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),se("ListRxMap")["$[]"](at)["$match?"](x)}))&&(u=!0,Ie(Le,"dlist")&&v(((O=Je["~"])===z?z:O["$[]"](3))["$nil_or_empty?"]())&&(re=!1)),U["$<<"](x),g="inactive");else if(v(y)&&v(y["$empty?"]())){if(v(x["$empty?"]())&&(!v(x=v(Ke=Q.$skip_blank_lines())?Q.$read_line():Ke)||v(ue["$is_sibling_list_item?"](x,L,N))))break;if(Ie(x,se("LIST_CONTINUATION")))m=U.$size(),U["$<<"](x);else if(v(re)){if(v(ue["$is_sibling_list_item?"](x,L,N)))break;if(v(Le=_e(se("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),se("ListRxMap")["$[]"](at)["$=~"](x)})))U["$<<"](x),u=!0,Ie(Le,"dlist")&&v(((O=Je["~"])===z?z:O["$[]"](3))["$nil_or_empty?"]())&&(re=!1);else if(v(se("LiteralParagraphRx")["$match?"](x)))Q.$unshift_line(x),v(C)?U.$concat(_e(Q,"read_lines_until",[V(["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 dt(at){var pt=dt.$$s==null?this:dt.$$s;return at==null&&(at=z),pt["$is_sibling_list_item?"](at,L,N)},{$$s:ue})):U.$concat(Q.$read_lines_until(V(["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)||U.$pop(),U["$<<"](x),re=!0}else v(x["$empty?"]())||(re=!0),v(Le=_e(v(u)?["dlist"]:se("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),se("ListRxMap")["$[]"](at)["$=~"](x)}))&&(u=!0,Ie(Le,"dlist")&&v(((O=Je["~"])===z?z:O["$[]"](3))["$nil_or_empty?"]())&&(re=!1)),U["$<<"](x);x=z}for(v(x)&&Q.$unshift_line(x),v(m)&&U["$[]="](m,"");!v(U["$empty?"]());)if(v((nt=U["$[]"](-1))["$empty?"]()))U.$pop();else{Ie(nt,se("LIST_CONTINUATION"))&&U.$pop();break}return U},-3),Y(Ne,"$initialize_section",function(Q,L,N){var re,O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z,at=z;return N==null&&(N=V([],{})),U=L.$document(),g=(u=U.$doctype())["$=="]("book"),v(U.$sourcemap())&&(m=Q.$cursor()),C=N["$[]"](1),O=ue.$parse_section_title(Q,U,N["$[]"]("id")),re=je(O),x=re[0]==null?z:re[0],y=re[1]==null?z:re[1],M=re[2]==null?z:re[2],P=re[3]==null?z:re[3],fe=re[4]==null?z:re[4],v(C)?v(g)&&Ie(C,"abstract")?(re=["chapter",1],ie=re[0],P=re[1]):v(C["$start_with?"]("sect"))&&v(se("SectionLevelStyleRx")["$match?"](C))?ie="section":(re=[C,!0],ie=re[0],xe=re[1],Ie(P,0)&&(P=1),Le=ie["$=="]("appendix")):v(g)?ie=Ie(P,0)?"part":v(Pe(P,1))?"section":"chapter":Ie(u,"manpage")&&Ie(M.$casecmp("synopsis"),0)?(re=["synopsis",!0],ie=re[0],xe=re[1]):ie="section",v(y)&&N["$[]="]("reftext",y),Ke=se("Section").$new(L,P),re=[x,M,ie,m],O=[re[0]],_e(Ke,"id=",O),O[O.length-1],O=[re[1]],_e(Ke,"title=",O),O[O.length-1],O=[re[2]],_e(Ke,"sectname=",O),O[O.length-1],O=[re[3]],_e(Ke,"source_location=",O),O[O.length-1],v(xe)?(Ke["$special="](!0),v(Le)?Ke["$numbered="](!0):Ie(U.$attributes()["$[]"]("sectnums"),"all")&&Ke["$numbered="](v(g)&&Ie(P,1)?"chapter":!0)):v(U.$attributes()["$[]"]("sectnums"))&&v(Pe(P,0))?Ke["$numbered="](v(Ke.$special())?v(nt=L.$numbered())||nt:!0):v(g)&&Ie(P,0)&&v(U.$attributes()["$[]"]("partnums"))&&Ke["$numbered="](!0),v(dt=v(nt=Ke.$id())?nt:(re=[v(U.$attributes()["$key?"]("sectids"))?at=se("Section").$generate_id(Ke.$title(),U):z],_e(Ke,"id=",re),re[re.length-1]))&&(v(at)||E(M["$include?"](se("ATTR_REF_HEAD")))||Ke.$title(),v(U.$register("refs",[dt,Ke]))||ue.$logger().$warn(ue.$message_with_context("id assigned to section already in use: "+dt,V(["source_location"],{source_location:Q.$cursor_at_line(st(Q.$lineno(),v(fe)?1:2))})))),Ke.$update_attributes(N),Q.$skip_blank_lines(),Ke},-3),Y(Ne,"$is_next_line_section?",function(Q,L){var N=this,re=z,O=z,ue=z;return v(re=L["$[]"](1))&&(Ie(re,"discrete")||Ie(re,"float"))?z:v(se("Compliance").$underline_style_section_titles())?(O=Q.$peek_lines(2,v(ue=re)?re["$=="]("comment"):ue),N["$is_section_title?"](v(ue=O["$[]"](0))?ue:"",O["$[]"](1))):N["$atx_section_title?"](v(ue=Q.$peek_line())?ue:"")}),Y(Ne,"$is_next_line_doctitle?",function(Q,L,N){var re=this,O=z,ue=z;return v(N)?v(O=ue=re["$is_next_line_section?"](Q,L))?Ye(ue,N.$to_i())["$=="](0):O:re["$is_next_line_section?"](Q,L)["$=="](0)}),Y(Ne,"$is_section_title?",function(Q,L){var N=this,re=z;return L==null&&(L=z),v(re=N["$atx_section_title?"](Q))?re:v(L["$nil_or_empty?"]())?z:N["$setext_section_title?"](Q,L)},-2),Y(Ne,"$atx_section_title?",function(Q){var L,N=z;return v(v(se("Compliance").$markdown_syntax())?v(N=Q["$start_with?"]("=","#"))?se("ExtAtxSectionTitleRx")["$=~"](Q):N:v(N=Q["$start_with?"]("="))?se("AtxSectionTitleRx")["$=~"](Q):N)?st(((L=Je["~"])===z?z:L["$[]"](1)).$length(),1):z}),Y(Ne,"$setext_section_title?",function(Q,L){var N=this,re=z,O=z,ue=z;return v(O=se("SETEXT_SECTION_LEVELS")["$[]"](ue=L.$chr()))&&v(N["$uniform?"](L,ue,re=L.$length()))&&v(se("SetextSectionTitleRx")["$match?"](Q))&&v(Me(st(Q.$length(),re).$abs(),2))?O:z}),Y(Ne,"$parse_section_title",function(Q,L,N){var re,O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z;return N==null&&(N=z),U=z,g=Q.$read_line(),v(v(se("Compliance").$markdown_syntax())?v(u=g["$start_with?"]("=","#"))?se("ExtAtxSectionTitleRx")["$=~"](g):u:v(u=g["$start_with?"]("="))?se("AtxSectionTitleRx")["$=~"](g):u)?(re=[st(((O=Je["~"])===z?z:O["$[]"](1)).$length(),1),(O=Je["~"])===z?z:O["$[]"](2),!0],m=re[0],C=re[1],x=re[2],v(N)||v(C["$end_with?"]("]]"))&&v(se("InlineSectionAnchorRx")["$=~"](C))&&E((re=Je["~"])===z?z:re["$[]"](1))&&(re=[C.$slice(0,st(C.$length(),((O=Je["~"])===z?z:O["$[]"](0)).$length())),(O=Je["~"])===z?z:O["$[]"](2),(O=Je["~"])===z?z:O["$[]"](3)],C=re[0],N=re[1],U=re[2])):v(se("Compliance").$underline_style_section_titles())&&v(P=Q.$peek_line(!0))&&v(m=se("SETEXT_SECTION_LEVELS")["$[]"](M=P.$chr()))&&v(ue["$uniform?"](P,M,y=P.$length()))&&v(C=v(u=se("SetextSectionTitleRx")["$=~"](g))?(re=Je["~"])===z?z:re["$[]"](1):u)&&v(Me(st(g.$length(),y).$abs(),2))?(x=!1,v(N)||v(C["$end_with?"]("]]"))&&v(se("InlineSectionAnchorRx")["$=~"](C))&&E((re=Je["~"])===z?z:re["$[]"](1))&&(re=[C.$slice(0,st(C.$length(),((O=Je["~"])===z?z:O["$[]"](0)).$length())),(O=Je["~"])===z?z:O["$[]"](2),(O=Je["~"])===z?z:O["$[]"](3)],C=re[0],N=re[1],U=re[2]),Q.$shift()):ue.$raise("Unrecognized section at "+Q.$cursor_at_prev_line()),v(L["$attr?"]("leveloffset"))&&(m=Ye(m,L.$attr("leveloffset").$to_i()),v(Me(m,0))&&(m=0)),[N,U,C,m,x]},-3),Y(Ne,"$parse_header_metadata",function(Q,L,N){var re,O=this,ue=z,U=z,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z,at=z,pt=z;if(L==null&&(L=z),N==null&&(N=!0),ue=v(U=L)?L.$attributes():U,O.$process_attribute_entries(Q,L),v(Q["$has_more_lines?"]())&&E(Q["$next_line_empty?"]())?(g=(u=O.$process_authors(Q.$read_line())).$delete("authorcount"),v(L)&&v(Pe((re=["authorcount",g],_e(ue,"[]=",re),re[re.length-1]),0))&&(_e(u,"each",[],function(bt,gt){var Ct;return bt==null&&(bt=z),gt==null&&(gt=z),v(ue["$key?"](bt))?z:(Ct=[bt,L.$apply_header_subs(gt)],_e(ue,"[]=",Ct),Ct[Ct.length-1])}),m=ue["$[]"]("author"),C=ue["$[]"]("authorinitials"),x=ue["$[]"]("authors")),u["$[]="]("authorcount",g),O.$process_attribute_entries(Q,L),v(Q["$has_more_lines?"]())&&E(Q["$next_line_empty?"]())&&(y=Q.$read_line(),v(M=se("RevisionInfoLineRx").$match(y))?(P=V([],{}),v(M["$[]"](1))&&P["$[]="]("revnumber",M["$[]"](1).$rstrip()),v((fe=M["$[]"](2).$strip())["$empty?"]())||(E(M["$[]"](1))&&v(fe["$start_with?"]("v"))?P["$[]="]("revnumber",fe.$slice(1,fe.$length())):P["$[]="]("revdate",fe)),v(M["$[]"](3))&&P["$[]="]("revremark",M["$[]"](3).$rstrip()),v(L)&&E(P["$empty?"]())&&_e(P,"each",[],function(bt,gt){var Ct;return bt==null&&(bt=z),gt==null&&(gt=z),v(ue["$key?"](bt))?z:(Ct=[bt,L.$apply_header_subs(gt)],_e(ue,"[]=",Ct),Ct[Ct.length-1])})):Q.$unshift_line(y)),O.$process_attribute_entries(Q,L),Q.$skip_blank_lines()):u=V([],{}),v(L)){if(v(ue["$key?"]("author"))&&Te(ie=ue["$[]"]("author"),m))xe=O.$process_authors(ie,!0,!1),Te(ue["$[]"]("authorinitials"),C)&&xe.$delete("authorinitials");else if(v(ue["$key?"]("authors"))&&Te(ie=ue["$[]"]("authors"),x))xe=O.$process_authors(ie,!0);else{for(re=[[],1,"author_1",!1,!1],Le=re[0],Ke=re[1],nt=re[2],dt=re[3],at=re[4];v(ue["$key?"](nt));)Ie(pt=ue["$[]"](nt),u["$[]"](nt))?(Le["$<<"](z),at=!0):(Le["$<<"](pt),dt=!0),nt="author_"+(Ke=Ye(Ke,1));v(dt)?(v(at)&&_e(Le,"each_with_index",[],function(bt,gt){var Ct,St=z;return bt==null&&(bt=z),gt==null&&(gt=z),v(bt)?z:(Ct=[gt,_e([u["$[]"]("firstname_"+(St=Ye(gt,1))),u["$[]"]("middlename_"+St),u["$[]"]("lastname_"+St)].$compact(),"map",[],function(Bt){return Bt==null&&(Bt=z),Bt.$tr(" ","_")}).$join(" ")],_e(Le,"[]=",Ct),Ct[Ct.length-1])}),xe=O.$process_authors(Le,!0,!1)):xe=V(["authorcount"],{authorcount:0})}Ie(xe["$[]"]("authorcount"),0)?v(g)?xe=z:ue["$[]="]("authorcount",0):(ue.$update(xe),E(ue["$key?"]("email"))&&v(ue["$key?"]("email_1"))&&ue["$[]="]("email",ue["$[]"]("email_1")))}return v(N)?u.$merge(P.$to_h(),xe.$to_h()):z},-2),Y(Ne,"$process_authors",function(Q,L,N){var re=z,O=z;return L==null&&(L=!1),N==null&&(N=!0),re=V([],{}),O=0,_e(v(N)&&v(Q["$include?"](";"))?Q.$split(se("AuthorDelimiterRx")):[].concat(ft(Q)),"each",[],function(U){var g,u=z,m=z,C=z,x=z,y=z,M=z,P=z;return U==null&&(U=z),v(U["$empty?"]())?z:(u=V([],{}),Ie(O=Ye(O,1),1)?_e(se("AuthorKeys"),"each",[],function(ie){var xe;return ie==null&&(ie=z),xe=[ie.$to_sym(),ie],_e(u,"[]=",xe),xe[xe.length-1]}):_e(se("AuthorKeys"),"each",[],function(ie){var xe;return ie==null&&(ie=z),xe=[ie.$to_sym(),""+ie+"_"+O],_e(u,"[]=",xe),xe[xe.length-1]}),v(L)?(v(U["$include?"]("<"))&&(re["$[]="](u["$[]"]("author"),U.$tr("_"," ")),U=U.$gsub(se("XmlSanitizeRx"),"")),Ie((m=U.$split(z,3)).$size(),3)&&m["$<<"](m.$pop().$squeeze(" "))):v(C=se("AuthorInfoLineRx").$match(U))&&(m=C.$to_a()).$shift(),v(m)?(x=(g=[u["$[]"]("firstname"),y=m["$[]"](0).$tr("_"," ")],_e(re,"[]=",g),g[g.length-1]),re["$[]="](u["$[]"]("authorinitials"),y.$chr()),v(m["$[]"](1))&&(v(m["$[]"](2))?(re["$[]="](u["$[]"]("middlename"),M=m["$[]"](1).$tr("_"," ")),re["$[]="](u["$[]"]("lastname"),P=m["$[]"](2).$tr("_"," ")),x=Ye(Ye(Ye(Ye(y," "),M)," "),P),re["$[]="](u["$[]"]("authorinitials"),""+y.$chr()+M.$chr()+P.$chr())):(re["$[]="](u["$[]"]("lastname"),P=m["$[]"](1).$tr("_"," ")),x=Ye(Ye(y," "),P),re["$[]="](u["$[]"]("authorinitials"),""+y.$chr()+P.$chr()))),v(re["$[]"](u["$[]"]("author")))||re["$[]="](u["$[]"]("author"),x),v(L)||E(m["$[]"](3))||re["$[]="](u["$[]"]("email"),m["$[]"](3))):(re["$[]="](u["$[]"]("author"),(g=[u["$[]"]("firstname"),y=U.$squeeze(" ").$strip()],_e(re,"[]=",g),g[g.length-1])),re["$[]="](u["$[]"]("authorinitials"),y.$chr())),Ie(O,1)?(g=["authors",re["$[]"](u["$[]"]("author"))],_e(re,"[]=",g),g[g.length-1]):(Ie(O,2)&&_e(se("AuthorKeys"),"each",[],function(ie){var xe;return ie==null&&(ie=z),v(re["$key?"](ie))?(xe=[""+ie+"_1",re["$[]"](ie)],_e(re,"[]=",xe),xe[xe.length-1]):z}),g=["authors",""+re["$[]"]("authors")+", "+re["$[]"](u["$[]"]("author"))],_e(re,"[]=",g),g[g.length-1]))}),re["$[]="]("authorcount",O),re},-2),Y(Ne,"$parse_block_metadata_lines",function(Q,L,N,re){var O=this;for(N==null&&(N=V([],{})),re==null&&(re=V([],{}));v(O.$parse_block_metadata_line(Q,L,N,re))&&(Q.$shift(),!!v(Q.$skip_blank_lines())););return N},-3),Y(Ne,"$parse_block_metadata_line",function(Q,L,N,re){var O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z;if(Je["~"]==null&&(Je["~"]=z),re==null&&(re=V([],{})),v(g=Q.$peek_line())&&v(v(re["$[]"]("text_only"))?g["$start_with?"]("[","/"):U=g["$start_with?"]("[",".","/",":"))){if(v(g["$start_with?"]("["))){if(v(g["$start_with?"]("[["))){if(v(g["$end_with?"]("]]"))&&v(se("BlockAnchorRx")["$=~"](g)))return N["$[]="]("id",(O=Je["~"])===z?z:O["$[]"](1)),v(u=(O=Je["~"])===z?z:O["$[]"](2))&&N["$[]="]("reftext",v(u["$include?"](se("ATTR_REF_HEAD")))?L.$sub_attributes(u):u),!0}else if(v(g["$end_with?"]("]"))&&v(se("BlockAttributeListRx")["$=~"](g)))return m=N["$[]"](1),v(L.$parse_attributes((O=Je["~"])===z?z:O["$[]"](1),[],V(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:N}))["$[]"](1))&&N["$[]="](1,v(C=ue.$parse_style_attribute(N,Q))?C:m),!0}else if(v(U)&&v(g["$start_with?"]("."))){if(v(se("BlockTitleRx")["$=~"](g)))return N["$[]="]("title",(O=Je["~"])===z?z:O["$[]"](1)),!0}else if(E(U)||v(g["$start_with?"]("/"))){if(v(g["$start_with?"]("//"))){if(Ie(g,"//"))return!0;if(v(U)&&v(ue["$uniform?"](g,"/",x=g.$length()))){if(!Ie(x,3))return Q.$read_lines_until(V(["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(U)&&v(g["$start_with?"](":"))&&v(se("AttributeEntryRx")["$=~"](g)))return ue.$process_attribute_entry(Q,L,N,Je["~"]),!0}return z},-4),Y(Ne,"$process_attribute_entries",function(Q,L,N){var re=this;for(N==null&&(N=z),Q.$skip_comment_lines();v(re.$process_attribute_entry(Q,L,N));)Q.$shift(),Q.$skip_comment_lines()},-3),Y(Ne,"$process_attribute_entry",function(Q,L,N,re){var O,ue=this,U=z,g=z,u=z,m=z,C=z,x=z;if(N==null&&(N=z),re==null&&(re=z),v(re)||v(re=v(Q["$has_more_lines?"]())?se("AttributeEntryRx").$match(Q.$peek_line()):z)){if(v((U=re["$[]"](2))["$nil_or_empty?"]()))U="";else if(v(U["$end_with?"](se("LINE_CONTINUATION"),se("LINE_CONTINUATION_LEGACY"))))for(O=[U.$slice(st(U.$length(),2),2),U.$slice(0,st(U.$length(),2)).$rstrip()],g=O[0],U=O[1];v(v(u=Q.$advance())?(m=v(C=Q.$peek_line())?C:"")["$empty?"]()["$!"]():u)&&(m=m.$lstrip(),v(x=m["$end_with?"](g))&&(m=m.$slice(0,st(m.$length(),2)).$rstrip()),U=""+U+(v(U["$end_with?"](se("HARD_LINE_BREAK")))?se("LF"):" ")+m,!!v(x)););return ue.$store_attribute(re["$[]"](1),U,L,N),!0}else return z},-3),Y(Ne,"$store_attribute",function(Q,L,N,re){var O=this,ue=z;return N==null&&(N=z),re==null&&(re=z),v(Q["$end_with?"]("!"))?(Q=Q.$chop(),L=z):v(Q["$start_with?"]("!"))&&(Q=Q.$slice(1,Q.$length()),L=z),Ie(Q=O.$sanitize_attribute_name(Q),"numbered")?Q="sectnums":Ie(Q,"hardbreaks")?Q="hardbreaks-option":Ie(Q,"showtitle")&&O.$store_attribute("notitle",v(L)?z:"",N,re),v(N)?v(L)?(Ie(Q,"leveloffset")&&(v(L["$start_with?"]("+"))?L=Ye(N.$attr("leveloffset",0).$to_i(),L.$slice(1,L.$length()).$to_i()).$to_s():v(L["$start_with?"]("-"))&&(L=st(N.$attr("leveloffset",0).$to_i(),L.$slice(1,L.$length()).$to_i()).$to_s())),v(ue=N.$set_attribute(Q,L))&&(L=ue,v(re)&&et(se("Document"),"AttributeEntry").$new(Q,L).$save_to(re))):v(N.$delete_attribute(Q))&&v(re)&&et(se("Document"),"AttributeEntry").$new(Q,L).$save_to(re):v(re)&&et(se("Document"),"AttributeEntry").$new(Q,L).$save_to(re),[Q,L]},-3),Y(Ne,"$resolve_list_marker",function(Q,L,N,re,O){var ue=this;switch(N==null&&(N=0),re==null&&(re=!1),O==null&&(O=z),Q){case"ulist":return L;case"olist":return ue.$resolve_ordered_list_marker(L,N,re,O)["$[]"](0);default:return"<1>"}},-3),Y(Ne,"$resolve_ordered_list_marker",function(Q,L,N,re){var O=this,ue=z,U=z,g=z;if(L==null&&(L=0),N==null&&(N=!1),re==null&&(re=z),v(Q["$start_with?"](".")))return[Q];switch(ue=_e(se("ORDERED_LIST_STYLES"),"find",[],function(m){return m==null&&(m=z),se("OrderedListMarkerRxMap")["$[]"](m)["$match?"](Q)})){case"arabic":v(N)&&(U=Ye(L,1),g=Q.$to_i()),Q="1.";break;case"loweralpha":v(N)&&(U=Ye("a"["$[]"](0).$ord(),L).$chr(),g=Q.$chop()),Q="a.";break;case"upperalpha":v(N)&&(U=Ye("A"["$[]"](0).$ord(),L).$chr(),g=Q.$chop()),Q="A.";break;case"lowerroman":v(N)&&(U=se("Helpers").$int_to_roman(Ye(L,1)).$downcase(),g=Q.$chop()),Q="i)";break;case"upperroman":v(N)&&(U=se("Helpers").$int_to_roman(Ye(L,1)),g=Q.$chop()),Q="I)";break}return v(N)&&Te(U,g)&&O.$logger().$warn(O.$message_with_context("list item index: expected "+U+", got "+g,V(["source_location"],{source_location:re.$cursor()}))),[Q,ue]},-2),Y(Ne,"$is_sibling_list_item?",function(Q,L,N){var re,O=this,ue=z;return Ve(et("Regexp"),N)?N["$match?"](Q):v(ue=se("ListRxMap")["$[]"](L)["$=~"](Q))?N["$=="](O.$resolve_list_marker(L,(re=Je["~"])===z?z:re["$[]"](1))):ue}),Y(Ne,"$parse_table",function(Q,L,N){var re,O,ue,U=this,g=z,u=z,m=z,C=z,x=z,y=z,M=z,P=z,fe=z,ie=z,xe=z,Le=z,Ke=z,nt=z,dt=z,at=z,pt=z,vt=z;for(g=se("Table").$new(L,N),v(N["$key?"]("cols"))&&E((u=U.$parse_colspecs(N["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(u),m=!0),C=v(x=Q.$skip_blank_lines())?x:0,v(N["$[]"]("header-option"))?g["$has_header_option="](!0):Ie(C,0)&&E(N["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),y=!0),M=et(se("Table"),"ParserContext").$new(Q,g,N),re=[M.$format(),-1,z],P=re[0],fe=re[1],ie=re[2];v(xe=Q.$read_line());){for(v(Le=Pe(fe=Ye(fe,1),0))&&v(xe["$empty?"]())?(xe=z,v(ie)&&(ie=Ye(ie,1))):Ie(P,"psv")&&(v(M["$starts_with_delimiter?"](xe))?(xe=xe.$slice(1,xe.$length()),M.$close_open_cell(),v(ie)&&(ie=z)):(O=U.$parse_cellspec(xe,"start",M.$delimiter()),re=je(O),Ke=re[0]==null?z:re[0],xe=re[1]==null?z:re[1],v(Ke)?(M.$close_open_cell(Ke),v(ie)&&(ie=z)):v(ie)&&Ie(ie,fe)&&g["$has_header_option="](y=ie=z))),v(Le)||(Q.$mark(),v(y)&&(v(Q["$has_more_lines?"]())&&v(Q.$peek_line()["$empty?"]())?ie=1:g["$has_header_option="](y=z))),re=!1;re||v(!0);)if(re=!1,v(xe)&&v(nt=M.$match_delimiter(xe))){if(O=[nt.$pre_match(),nt.$post_match()],dt=O[0],at=O[1],Ve("csv",x=P)){if(v(M["$buffer_has_unclosed_quotes?"](dt))){if(M.$skip_past_delimiter(dt),v((xe=at)["$empty?"]()))break;re=!0;continue}M["$buffer="](""+M.$buffer()+dt)}else if(Ve("dsv",x)){if(v(dt["$end_with?"]("\\"))){if(M.$skip_past_escaped_delimiter(dt),v((xe=at)["$empty?"]())){M["$buffer="](""+M.$buffer()+se("LF")),M.$keep_cell_open();break}re=!0;continue}M["$buffer="](""+M.$buffer()+dt)}else{if(v(dt["$end_with?"]("\\"))){if(M.$skip_past_escaped_delimiter(dt),v((xe=at)["$empty?"]())){M["$buffer="](""+M.$buffer()+se("LF")),M.$keep_cell_open();break}re=!0;continue}ue=U.$parse_cellspec(dt),O=je(ue),Ke=O[0]==null?z:O[0],pt=O[1]==null?z:O[1],M.$push_cellspec(Ke),M["$buffer="](""+M.$buffer()+pt)}v((xe=at)["$empty?"]())&&(xe=z),M.$close_cell()}else{switch(M["$buffer="](""+M.$buffer()+xe+se("LF")),P){case"csv":v(M["$buffer_has_unclosed_quotes?"]())?(v(ie)&&Ie(fe,0)&&g["$has_header_option="](y=ie=z),M.$keep_cell_open()):M.$close_cell(!0);break;case"dsv":M.$close_cell(!0);break;default:M.$keep_cell_open()}break}if(v(M["$cell_open?"]()))v(Q["$has_more_lines?"]())||M.$close_cell(!0);else if(!v(x=Q.$skip_blank_lines()))break}return Ie((vt=g.$attributes(),v(x=vt["$[]"]("colcount"))?x:(re=["colcount",g.$columns().$size()],_e(vt,"[]=",re),re[re.length-1])),0)||v(m)||g.$assign_column_widths(),v(y)&&g["$has_header_option="](!0),g.$partition_header_footer(N),g}),Y(Ne,"$parse_colspecs",function(Q){var L=z;return v(Q["$include?"](" "))&&(Q=Q.$delete(" ")),Ie(Q,Q.$to_i().$to_s())?_e(et("Array"),"new",[Q.$to_i()],function(){return V(["width"],{width:1})}):(L=[],_e(v(Q["$include?"](","))?Q.$split(",",-1):Q.$split(";",-1),"each",[],function(re){var O,ue,U=z,g=z,u=z,m=z,C=z;return re==null&&(re=z),v(re["$empty?"]())?L["$<<"](V(["width"],{width:1})):v(U=se("ColumnSpecRx").$match(re))?(g=V([],{}),v(U["$[]"](2))&&(ue=U["$[]"](2).$split("."),O=je(ue),u=O[0]==null?z:O[0],m=O[1]==null?z:O[1],E(u["$nil_or_empty?"]())&&v(se("TableCellHorzAlignments")["$key?"](u))&&g["$[]="]("halign",se("TableCellHorzAlignments")["$[]"](u)),E(m["$nil_or_empty?"]())&&v(se("TableCellVertAlignments")["$key?"](m))&&g["$[]="]("valign",se("TableCellVertAlignments")["$[]"](m))),v(C=U["$[]"](3))?g["$[]="]("width",Ie(C,"~")?-1:C.$to_i()):g["$[]="]("width",1),v(U["$[]"](4))&&v(se("TableCellStyles")["$key?"](U["$[]"](4)))&&g["$[]="]("style",se("TableCellStyles")["$[]"](U["$[]"](4))),v(U["$[]"](1))?_e(1,"upto",[U["$[]"](1).$to_i()],function(){return L["$<<"](g.$merge())}):L["$<<"](g)):z}),L)}),Y(Ne,"$parse_cellspec",function(Q,L,N){var re,O,ue=z,U=z,g=z,u=z,m=z,C=z;if(L==null&&(L="end"),N==null&&(N=z),re=[z,""],ue=re[0],U=re[1],Ie(L,"start"))if(v(Q["$include?"](N)))if(O=Q.$partition(N),re=je(O),g=re[0]==null?z:re[0],re[1]==null||re[1],U=re[2]==null?z:re[2],v(ue=se("CellSpecStartRx").$match(g))){if(v(ue["$[]"](0)["$empty?"]()))return[V([],{}),U]}else return[z,Q];else return[z,Q];else if(v(ue=se("CellSpecEndRx").$match(Q))){if(v(ue["$[]"](0).$lstrip()["$empty?"]()))return[V([],{}),Q.$rstrip()];U=ue.$pre_match()}else return[V([],{}),Q];if(u=V([],{}),v(ue["$[]"](1)))switch(O=ue["$[]"](1).$split("."),re=je(O),m=re[0]==null?z:re[0],C=re[1]==null?z:re[1],m=v(m["$nil_or_empty?"]())?1:m.$to_i(),C=v(C["$nil_or_empty?"]())?1:C.$to_i(),ue["$[]"](2)){case"+":Ie(m,1)||u["$[]="]("colspan",m),Ie(C,1)||u["$[]="]("rowspan",C);break;case"*":Ie(m,1)||u["$[]="]("repeatcol",m);break}return v(ue["$[]"](3))&&(O=ue["$[]"](3).$split("."),re=je(O),m=re[0]==null?z:re[0],C=re[1]==null?z:re[1],E(m["$nil_or_empty?"]())&&v(se("TableCellHorzAlignments")["$key?"](m))&&u["$[]="]("halign",se("TableCellHorzAlignments")["$[]"](m)),E(C["$nil_or_empty?"]())&&v(se("TableCellVertAlignments")["$key?"](C))&&u["$[]="]("valign",se("TableCellVertAlignments")["$[]"](C))),v(ue["$[]"](4))&&v(se("TableCellStyles")["$key?"](ue["$[]"](4)))&&u["$[]="]("style",se("TableCellStyles")["$[]"](ue["$[]"](4))),[u,U]},-2),Y(Ne,"$parse_style_attribute",function(Q,L){var N,re=this,O=z,ue=z,U=z,g=z,u=z,m=z;return L==null&&(L=z),v(O=Q["$[]"](1))&&E(O["$include?"](" "))&&v(se("Compliance").$shorthand_property_syntax())?(ue=z,U="",g=V([],{}),_e(O,"each_char",[],function C(x){var y=C.$$s==null?this:C.$$s;switch(x==null&&(x=z),x){case".":return y.$yield_buffered_attribute(g,ue,U,L),U="",ue="role";case"#":return y.$yield_buffered_attribute(g,ue,U,L),U="",ue="id";case"%":return y.$yield_buffered_attribute(g,ue,U,L),U="",ue="option";default:return U=Ye(U,x)}},{$$s:re}),v(ue)?(re.$yield_buffered_attribute(g,ue,U,L),v(u=g["$[]"]("style"))&&Q["$[]="]("style",u),v(g["$key?"]("id"))&&Q["$[]="]("id",g["$[]"]("id")),v(g["$key?"]("role"))&&Q["$[]="]("role",v((m=Q["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+m+" "+g["$[]"]("role").$join(" ")),v(g["$key?"]("option"))&&_e(g["$[]"]("option"),"each",[],function(x){var y;return x==null&&(x=z),y=[""+x+"-option",""],_e(Q,"[]=",y),y[y.length-1]}),u):(N=["style",O],_e(Q,"[]=",N),N[N.length-1])):(N=["style",O],_e(Q,"[]=",N),N[N.length-1])},-2),Y(Ne,"$yield_buffered_attribute",function(Q,L,N,re){var O,ue=this,U=z;return v(L)?v(N["$empty?"]())?v(re)?ue.$logger().$warn(ue.$message_with_context("invalid empty "+L+" detected in style attribute",V(["source_location"],{source_location:re.$cursor_at_prev_line()}))):ue.$logger().$warn("invalid empty "+L+" detected in style attribute"):Ie(L,"id")?(v(Q["$key?"]("id"))&&(v(re)?ue.$logger().$warn(ue.$message_with_context("multiple ids detected in style attribute",V(["source_location"],{source_location:re.$cursor_at_prev_line()}))):ue.$logger().$warn("multiple ids detected in style attribute")),Q["$[]="](L,N)):(v(U=Q["$[]"](L))?U:(O=[L,[]],_e(Q,"[]=",O),O[O.length-1]))["$<<"](N):v(N["$empty?"]())||Q["$[]="]("style",N),z}),Y(Ne,"$adjust_indentation!",function(Q,L,N){var re=z,O=z,ue=z;return L==null&&(L=0),N==null&&(N=0),v(Q["$empty?"]())||(v(Pe(N,0))&&v(_e(Q,"any?",[],function(g){return g==null&&(g=z),g["$include?"](se("TAB"))}))&&(re=We(" ",N),_e(Q,"map!",[],function(g){var u=z,m=z,C=z,x=z,y=z;return g==null&&(g=z),v(g["$empty?"]())||v((u=g.$index(se("TAB")))["$nil?"]())||Ie(u,0)&&(m=0,function(){try{var M=Ze("break");return _e(g,"each_byte",[],function(fe){return fe==null&&(fe=z),Ie(fe,9)||M.$throw(),m=Ye(m,1)})}catch(P){if(P===M)return P.$v;throw P}}(),g=""+We(re,m)+g.$slice(m,g.$length()),!v(g["$include?"](se("TAB"))))?g:(C=0,x=0,y="",_e(g,"each_char",[],function(P){var fe=z,ie=z;return P==null&&(P=z),Ie(P,se("TAB"))?Ie((fe=Ye(x,C))["$%"](N),0)?(C=Ye(C,st(N,1)),y=Ye(y,re)):(Ie(ie=st(N,fe["$%"](N)),1)||(C=Ye(C,st(ie,1))),y=Ye(y,We(" ",ie))):y=Ye(y,P),x=Ye(x,1)}),y)})),v(Me(L,0)))||(O=z,function(){try{var U=Ze("break");return _e(Q,"each",[],function(u){var m=z;return u==null&&(u=z),v(u["$empty?"]())||(Ie(m=st(u.$length(),u.$lstrip().$length()),0)&&(O=z,U.$throw()),v(O)&&v(Me(O,m)))?z:O=m})}catch(g){if(g===U)return g.$v;throw g}}(),Ie(L,0)?v(O)&&_e(Q,"map!",[],function(g){return g==null&&(g=z),v(g["$empty?"]())?g:g.$slice(O,g.$length())}):(ue=We(" ",L),v(O)?_e(Q,"map!",[],function(g){return g==null&&(g=z),v(g["$empty?"]())?g:Ye(ue,g.$slice(O,g.$length()))}):_e(Q,"map!",[],function(g){return g==null&&(g=z),v(g["$empty?"]())?g:Ye(ue,g)}))),z},-2),Y(Ne,"$uniform?",function(Q,L,N){return Q.$count(L)["$=="](N)}),Y(Ne,"$sanitize_attribute_name",function(Q){return Q.$gsub(se("InvalidAttributeNameCharsRx"),"").$downcase()})}(K[0],null,K)}($t[0],$t)},Opal.modules["asciidoctor/path_resolver"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.truthy,v=a.hash2,V=a.def,je=a.eqeq,Y=a.alias,Ie=a.rb_plus,E=a.to_ary,Je=a.send,Te=a.not,Ye=a.neqeq,Me=a.rb_gt,Pe=a.gvars,ft=[],Ve=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(We,Ze){var $t=ne(We,"Asciidoctor"),z=[$t].concat(Ze);return function(et,S,tt){var lt=ee(et,S,"PathResolver"),K=[lt].concat(tt),I=a.$r(K),Ue=lt.$$prototype;return Ue.file_separator=Ue._partition_path_web=Ue._partition_path_sys=Ue.working_dir=Ve,lt.$include(I("Logging")),H(K[0],"DOT","."),H(K[0],"DOT_DOT",".."),H(K[0],"DOT_SLASH","./"),H(K[0],"SLASH","/"),H(K[0],"BACKSLASH","\\"),H(K[0],"DOUBLE_SLASH","//"),H(K[0],"URI_CLASSLOADER","uri:classloader:"),H(K[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),lt.$attr_accessor("file_separator"),lt.$attr_accessor("working_dir"),V(lt,"$initialize",function(Ne,Ce){var se=this,ge=Ve,Q=Ve;return Ne==null&&(Ne=Ve),Ce==null&&(Ce=Ve),se.file_separator=_e(ge=_e(Q=Ne)?Q:st(st("File"),"ALT_SEPARATOR"))?ge:st(st("File"),"SEPARATOR"),se.working_dir=_e(Ce)?_e(se["$root?"](Ce))?se.$posixify(Ce):st("File").$expand_path(Ce):st("Dir").$pwd(),se._partition_path_sys=v([],{}),se._partition_path_web=v([],{})},-1),V(lt,"$absolute_path?",function(Ne){var Ce=this,se=Ve,ge=Ve;return _e(se=Ne["$start_with?"](I("SLASH")))?se:_e(ge=Ce.file_separator["$=="](I("BACKSLASH")))?I("WindowsRootRx")["$match?"](Ne):ge}),je(I("RUBY_ENGINE"),"opal")&&je(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?V(lt,"$root?",function(Ne){var Ce=this,se=Ve;return _e(se=Ce["$absolute_path?"](Ne))?se:Ne["$start_with?"]("file://","http://","https://")}):je(st("RUBY_ENGINE"),"jruby")?V(lt,"$root?",function(Ne){var Ce=this,se=Ve;return _e(se=Ce["$absolute_path?"](Ne))?se:Ne["$start_with?"](I("URI_CLASSLOADER"))}):Y(lt,"root?","absolute_path?"),V(lt,"$unc?",function(Ne){return Ne["$start_with?"](I("DOUBLE_SLASH"))}),V(lt,"$web_root?",function(Ne){return Ne["$start_with?"](I("SLASH"))}),V(lt,"$descends_from?",function(Ne,Ce){var se=Ve;return je(Ce,Ne)?0:je(Ce,I("SLASH"))?_e(se=Ne["$start_with?"](I("SLASH")))?1:se:_e(se=Ne["$start_with?"](Ie(Ce,I("SLASH"))))?Ie(Ce.$length(),1):se}),V(lt,"$relative_path",function(Ne,Ce){var se=this,ge=Ve;if(_e(se["$root?"](Ne))){if(_e(ge=se["$descends_from?"](Ne,Ce)))return Ne.$slice(ge,Ne.$length());try{return I("Pathname").$new(Ne).$relative_path_from(I("Pathname").$new(Ce)).$to_s()}catch(Q){if(a.rescue(Q,[I("StandardError")]))try{return Ne}finally{a.pop_exception()}else throw Q}}else return Ne}),V(lt,"$posixify",function(Ne){var Ce=this;return _e(Ne)?je(Ce.file_separator,I("BACKSLASH"))&&_e(Ne["$include?"](I("BACKSLASH")))?Ne.$tr(I("BACKSLASH"),I("SLASH")):Ne:""}),Y(lt,"posixfy","posixify"),V(lt,"$expand_path",function(Ne){var Ce,se,ge=this,Q=Ve,L=Ve,N=Ve;return se=ge.$partition_path(Ne),Ce=E(se),Q=Ce[0]==null?Ve:Ce[0],L=Ce[1]==null?Ve:Ce[1],_e(Ne["$include?"](I("DOT_DOT")))?(N=[],Je(Q,"each",[],function(O){return O==null&&(O=Ve),je(O,I("DOT_DOT"))?N.$pop():N["$<<"](O)}),ge.$join_path(N,L)):ge.$join_path(Q,L)}),V(lt,"$partition_path",function(Ne,Ce){var se,ge=this,Q=Ve,L=Ve,N=Ve,re=Ve,O=Ve;return Ce==null&&(Ce=Ve),_e(Q=(L=_e(Ce)?ge._partition_path_web:ge._partition_path_sys)["$[]"](Ne))?Q:(N=ge.$posixify(Ne),_e(Ce)?_e(ge["$web_root?"](N))?re=I("SLASH"):_e(N["$start_with?"](I("DOT_SLASH")))&&(re=I("DOT_SLASH")):_e(ge["$root?"](N))?_e(ge["$unc?"](N))?re=I("DOUBLE_SLASH"):_e(N["$start_with?"](I("SLASH")))?re=I("SLASH"):_e(N["$start_with?"](I("URI_CLASSLOADER")))?re=N.$slice(0,I("URI_CLASSLOADER").$length()):re=N.$slice(0,Ie(N.$index(I("SLASH")),1)):_e(N["$start_with?"](I("DOT_SLASH")))&&(re=I("DOT_SLASH")),O=(_e(re)?N.$slice(re.$length(),N.$length()):N).$split(I("SLASH")),O.$delete(I("DOT")),se=[Ne,[O,re]],Je(L,"[]=",se),se[se.length-1])},-2),V(lt,"$join_path",function(Ne,Ce){return Ce==null&&(Ce=Ve),_e(Ce)?""+Ce+Ne.$join(I("SLASH")):Ne.$join(I("SLASH"))},-2),V(lt,"$system_path",function(Ne,Ce,se,ge){var Q,L,N=this,re=Ve,O=Ve,ue=Ve,U=Ve,g=Ve,u=Ve,m=Ve,C=Ve,x=Ve,y=Ve,M=Ve;if(Ce==null&&(Ce=Ve),se==null&&(se=Ve),ge==null&&(ge=v([],{})),_e(se)&&(_e(N["$root?"](se))||N.$raise(st("SecurityError"),"Jail is not an absolute path: "+se),se=N.$posixify(se)),_e(Ne))if(_e(N["$root?"](Ne))){if(re=N.$expand_path(Ne),_e(se)&&Te(N["$descends_from?"](re,se))){if(_e(ge.$fetch("recover",!0)))return N.$logger().$warn(""+(_e(O=ge["$[]"]("target_name"))?O:"path")+" is outside of jail; recovering automatically"),L=N.$partition_path(re),Q=E(L),ue=Q[0]==null?Ve:Q[0],L=N.$partition_path(se),Q=E(L),U=Q[0]==null?Ve:Q[0],g=Q[1]==null?Ve:Q[1],N.$join_path(Ie(U,ue),g);N.$raise(st("SecurityError"),""+(_e(O=ge["$[]"]("target_name"))?O:"path")+" "+Ne+" is outside of jail: "+se+" (disallowed in safe mode)")}return re}else L=N.$partition_path(Ne),Q=E(L),ue=Q[0]==null?Ve:Q[0];else ue=[];if(_e(ue["$empty?"]())){if(_e(Ce["$nil_or_empty?"]()))return _e(O=se)?O:N.working_dir;if(_e(N["$root?"](Ce)))if(_e(se))Ce=N.$posixify(Ce);else return N.$expand_path(Ce);else L=N.$partition_path(Ce),Q=E(L),ue=Q[0]==null?Ve:Q[0],Ce=_e(O=se)?O:N.working_dir}else _e(Ce["$nil_or_empty?"]())?Ce=_e(O=se)?O:N.working_dir:_e(N["$root?"](Ce))?_e(se)&&(Ce=N.$posixify(Ce)):Ce=""+(_e(O=se)?O:N.working_dir).$chomp("/")+"/"+Ce;return _e(se)&&_e(u=N["$descends_from?"](Ce,se)["$!"]())&&je(N.file_separator,I("BACKSLASH"))?(L=N.$partition_path(Ce),Q=E(L),m=Q[0]==null?Ve:Q[0],C=Q[1]==null?Ve:Q[1],L=N.$partition_path(se),Q=E(L),U=Q[0]==null?Ve:Q[0],g=Q[1]==null?Ve:Q[1],Ye(C,g)&&(_e(ge.$fetch("recover",!0))?(N.$logger().$warn("start path for "+(_e(O=ge["$[]"]("target_name"))?O:"path")+" is outside of jail root; recovering automatically"),m=U,u=!1):N.$raise(st("SecurityError"),"start path for "+(_e(O=ge["$[]"]("target_name"))?O:"path")+" "+Ce+" refers to location outside jail root: "+se+" (disallowed in safe mode)"))):(L=N.$partition_path(Ce),Q=E(L),m=Q[0]==null?Ve:Q[0],g=Q[1]==null?Ve:Q[1]),_e((x=Ie(m,ue))["$include?"](I("DOT_DOT")))&&(Q=[x,[]],y=Q[0],x=Q[1],_e(se)?(_e(U)||(L=N.$partition_path(se),Q=E(L),U=Q[0]==null?Ve:Q[0]),M=!1,Je(y,"each",[],function P(fe){var ie=P.$$s==null?this:P.$$s;return fe==null&&(fe=Ve),je(fe,I("DOT_DOT"))?_e(Me(x.$size(),U.$size()))?x.$pop():_e(ge.$fetch("recover",!0))?_e(M)?Ve:(ie.$logger().$warn(""+(_e(O=ge["$[]"]("target_name"))?O:"path")+" has illegal reference to ancestor of jail; recovering automatically"),M=!0):ie.$raise(st("SecurityError"),""+(_e(O=ge["$[]"]("target_name"))?O:"path")+" "+Ne+" refers to location outside jail: "+se+" (disallowed in safe mode)"):x["$<<"](fe)},{$$s:N})):Je(y,"each",[],function(fe){return fe==null&&(fe=Ve),je(fe,I("DOT_DOT"))?x.$pop():x["$<<"](fe)})),_e(u)?(re=N.$join_path(x,g),_e(N["$descends_from?"](re,se))?re:_e(ge.$fetch("recover",!0))?(N.$logger().$warn(""+(_e(O=ge["$[]"]("target_name"))?O:"path")+" is outside of jail; recovering automatically"),_e(U)||(L=N.$partition_path(se),Q=E(L),U=Q[0]==null?Ve:Q[0]),N.$join_path(Ie(U,ue),g)):N.$raise(st("SecurityError"),""+(_e(O=ge["$[]"]("target_name"))?O:"path")+" "+Ne+" is outside of jail: "+se+" (disallowed in safe mode)")):N.$join_path(x,g)},-2),V(lt,"$web_path",function(Ne,Ce){var se,ge,Q=this,L=Ve,N=Ve,re=Ve,O=Ve,ue=Ve;return Ce==null&&(Ce=Ve),Ne=Q.$posixify(Ne),Ce=Q.$posixify(Ce),_e(Ce["$nil_or_empty?"]())||_e(Q["$web_root?"](Ne))||(ge=Q.$extract_uri_prefix(""+Ce+(_e(Ce["$end_with?"](I("SLASH")))?"":I("SLASH"))+Ne),se=E(ge),Ne=se[0]==null?Ve:se[0],L=se[1]==null?Ve:se[1]),ge=Q.$partition_path(Ne,!0),se=E(ge),N=se[0]==null?Ve:se[0],re=se[1]==null?Ve:se[1],O=[],Je(N,"each",[],function(g){return g==null&&(g=Ve),je(g,I("DOT_DOT"))?_e(O["$empty?"]())?_e(re)&&Ye(re,I("DOT_SLASH"))?Ve:O["$<<"](g):je(O["$[]"](-1),I("DOT_DOT"))?O["$<<"](g):O.$pop():O["$<<"](g)}),_e((ue=Q.$join_path(O,re))["$include?"](" "))&&(ue=ue.$gsub(" ","%20")),_e(L)?""+L+ue:ue},-2),lt.$private(),V(lt,"$extract_uri_prefix",function(Ne){var Ce;return _e(Ne["$include?"](":"))&&_e(I("UriSniffRx")["$=~"](Ne))?[Ne.$slice(((Ce=Pe["~"])===Ve?Ve:Ce["$[]"](0)).$length(),Ne.$length()),(Ce=Pe["~"])===Ve?Ve:Ce["$[]"](0)]:Ne})}(z[0],null,z)}(ft[0],ft)},Opal.modules["asciidoctor/reader"]=function(a){var ne=a.module,ee=a.klass,H=a.def,_e=a.rb_plus,v=a.alias,V=a.hash2,je=a.not,Y=a.eqeqeq,Ie=a.to_ary,E=a.truthy,Je=a.rb_gt,Te=a.send,Ye=a.rb_minus,Me=a.thrower,Pe=a.eqeq,ft=a.rb_times,Ve=a.neqeq,st=a.to_a,We=a.assign_ivar_val,Ze=a.send2,$t=a.find_super,z=a.rb_ge,et=a.gvars,S=a.rb_lt,tt=a.hash,lt=[],K=a.nil,I=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(Ue,be){var Ne=ne(Ue,"Asciidoctor"),Ce=[Ne].concat(be),se=a.$r(Ce);return function(ge,Q,L){var N=ee(ge,Q,"Reader"),re=[N].concat(L),O=a.$r(re),ue=N.$$prototype;return ue.file=ue.lines=ue.look_ahead=ue.unescape_next_line=ue.lineno=ue.process_lines=ue.dir=ue.path=ue.mark=ue.source_lines=ue.saved=K,N.$include(O("Logging")),function(U,g){var u=ee(U,g,"Cursor"),m=u.$$prototype;return m.lineno=m.path=K,u.$attr_reader("file","dir","path","lineno"),H(u,"$initialize",function(x,y,M,P){var fe,ie=this;return y==null&&(y=K),M==null&&(M=K),P==null&&(P=1),fe=[x,y,M,P],ie.file=fe[0],ie.dir=fe[1],ie.path=fe[2],ie.lineno=fe[3],fe},-2),H(u,"$advance",function(x){var y=this;return y.lineno=_e(y.lineno,x)}),H(u,"$line_info",function(){var x=this;return""+x.path+": line "+x.lineno}),v(u,"to_s","line_info")}(re[0],null),N.$attr_reader("file"),N.$attr_reader("dir"),N.$attr_reader("path"),N.$attr_reader("lineno"),N.$attr_reader("source_lines"),N.$attr_accessor("process_lines"),N.$attr_accessor("unterminated"),H(N,"$initialize",function(g,u,m){var C,x,y=this,M=K;return g==null&&(g=K),u==null&&(u=K),m==null&&(m=V([],{})),je(u)?(y.file=K,y.dir=".",y.path="<stdin>",y.lineno=1):Y(I("String"),u)?(y.file=u,x=I("File").$split(y.file),C=Ie(x),y.dir=C[0]==null?K:C[0],y.path=C[1]==null?K:C[1],y.lineno=1):(E(y.file=u.$file())?(y.dir=E(M=u.$dir())?M:I("File").$dirname(y.file),y.path=E(M=u.$path())?M:I("File").$basename(y.file)):(y.dir=E(M=u.$dir())?M:".",y.path=E(M=u.$path())?M:"<stdin>"),y.lineno=E(M=u.$lineno())?M:1),y.lines=(y.source_lines=y.$prepare_lines(g,m)).$reverse(),y.mark=K,y.look_ahead=0,y.process_lines=!0,y.unescape_next_line=!1,y.unterminated=K,y.saved=K},-1),H(N,"$has_more_lines?",function(){var g=this;return E(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),H(N,"$empty?",function(){var g=this;return E(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),v(N,"eof?","empty?"),H(N,"$next_line_empty?",function(){var g=this;return g.$peek_line()["$nil_or_empty?"]()}),H(N,"$peek_line",function(g){var u=this,m=K,C=K;for(g==null&&(g=!1);E(!0);){if(m=u.lines["$[]"](-1),E(g)||E(Je(u.look_ahead,0)))return E(u.unescape_next_line)?m.$slice(1,m.$length()):m;if(E(m)){if(E(C=u.$process_line(m)))return C}else return u.look_ahead=0,K}},-1),H(N,"$peek_lines",function(g,u){var m=this,C=K,x=K,y=K;return g==null&&(g=K),u==null&&(u=!1),C=m.look_ahead,x=[],function(){try{var M=Me("break");return Te(E(y=g)?y:O("MAX_INT"),"times",[],function P(){var fe=P.$$s==null?this:P.$$s,ie=K;if(fe.lineno==null&&(fe.lineno=K),E(ie=E(u)?fe.$shift():fe.$read_line()))return x["$<<"](ie);E(u)&&(fe.lineno=Ye(fe.lineno,1)),M.$throw()},{$$s:m})}catch(P){if(P===M)return P.$v;throw P}}(),E(x["$empty?"]())||(m.$unshift_all(x),E(u)&&(m.look_ahead=C)),x},-1),H(N,"$read_line",function(){var g=this;return E(Je(g.look_ahead,0))||E(g["$has_more_lines?"]())?g.$shift():K}),H(N,"$read_lines",function(){var g=this,u=K;for(u=[];E(g["$has_more_lines?"]());)u["$<<"](g.$shift());return u}),v(N,"readlines","read_lines"),H(N,"$read",function(){var g=this;return g.$read_lines().$join(O("LF"))}),H(N,"$advance",function(){var g=this;return!!E(g.$shift())}),H(N,"$unshift_line",function(g){var u=this;return u.$unshift(g),K}),v(N,"restore_line","unshift_line"),H(N,"$unshift_lines",function(g){var u=this;return u.$unshift_all(g)}),v(N,"restore_lines","unshift_lines"),H(N,"$replace_next_line",function(g){var u=this;return u.$shift(),u.$unshift(g),!0}),v(N,"replace_line","replace_next_line"),H(N,"$skip_blank_lines",function(){var g=this,u=K,m=K;if(E(g["$empty?"]()))return K;for(u=0;E(m=g.$peek_line());)if(E(m["$empty?"]()))g.$shift(),u=_e(u,1);else return u}),H(N,"$skip_comment_lines",function(){var g=this,u=K,m=K,C=K;if(E(g["$empty?"]()))return K;for(;E(E(u=m=g.$peek_line())?m["$empty?"]()["$!"]():u)&&E(m["$start_with?"]("//"));)if(E(m["$start_with?"]("///")))if(E(Je(C=m.$length(),3))&&Pe(m,ft("/",C)))g.$read_lines_until(V(["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 K}),H(N,"$skip_line_comments",function(){var g=this,u=K,m=K,C=K;if(E(g["$empty?"]()))return[];for(u=[];E(E(m=C=g.$peek_line())?C["$empty?"]()["$!"]():m)&&E(C["$start_with?"]("//"));)u["$<<"](g.$shift());return u}),H(N,"$terminate",function(){var g=this;return g.lineno=_e(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,K}),H(N,"$read_lines_until",function U(g){var u,m=U.$$p||K,C=this,x=K,y=K,M=K,P=K,fe=K,ie=K,xe=K,Le=K,Ke=K,nt=K,dt=K,at=K,pt=K,vt=K,bt=K,gt=K;for(U.$$p=null,g==null&&(g=V([],{})),x=[],E(C.process_lines)&&E(g["$[]"]("skip_processing"))&&(C.process_lines=!1,y=!0),E(M=g["$[]"]("terminator"))?(P=E(fe=g["$[]"]("cursor"))?fe:C.$cursor(),ie=!1,xe=!1):(ie=g["$[]"]("break_on_blank_lines"),xe=g["$[]"]("break_on_list_continuation")),Le=g["$[]"]("skip_line_comments"),Ke=nt=K,E(g["$[]"]("skip_first_line"))&&C.$shift();E(dt=C.$read_line());){if(E(E(M)?dt["$=="](M):E(fe=E(at=E(pt=ie)?dt["$empty?"]():pt)?at:E(pt=E(vt=E(bt=xe)?Ke:bt)?dt["$=="](O("LIST_CONTINUATION")):vt)?(u=["preserve_last_line",!0],Te(g,"[]=",u),u[u.length-1]):pt)?fe:E(at=m!==K)?a.yield1(m,dt):at)){E(g["$[]"]("read_last_line"))&&x["$<<"](dt),E(g["$[]"]("preserve_last_line"))&&(C.$unshift(dt),nt=!0);break}E(Le)&&E(dt["$start_with?"]("//"))&&je(dt["$start_with?"]("///"))||(x["$<<"](dt),Ke=!0)}return E(y)&&(C.process_lines=!0,E(nt)&&je(M)&&(C.look_ahead=Ye(C.look_ahead,1))),E(M)&&Ve(M,dt)&&E(gt=g.$fetch("context",M))&&(Pe(P,"at_mark")&&(P=C.$cursor_at_mark()),C.$logger().$warn(C.$message_with_context("unterminated "+gt+" block",V(["source_location"],{source_location:P}))),C.unterminated=!0),x},-1),H(N,"$shift",function(){var g=this;return g.lineno=_e(g.lineno,1),Pe(g.look_ahead,0)||(g.look_ahead=Ye(g.look_ahead,1)),g.lines.$pop()}),H(N,"$unshift",function(g){var u=this;return u.lineno=Ye(u.lineno,1),u.look_ahead=_e(u.look_ahead,1),u.lines.$push(g),K}),Pe(I("RUBY_ENGINE"),"jruby")?H(N,"$unshift_all",function(g){var u=this;return u.lineno=Ye(u.lineno,g.$size()),u.look_ahead=_e(u.look_ahead,g.$size()),E(g["$respond_to?"]("reverse"))?Te(u.lines,"push",st(g.$reverse())):Te(g,"reverse_each",[],function m(C){var x=m.$$s==null?this:m.$$s;return x.lines==null&&(x.lines=K),C==null&&(C=K),x.lines.$push(C)},{$$s:u}),K}):H(N,"$unshift_all",function(g){var u=this;return u.lineno=Ye(u.lineno,g.$size()),u.look_ahead=_e(u.look_ahead,g.$size()),Te(u.lines,"push",st(g.$reverse())),K}),H(N,"$cursor",function(){var g=this;return O("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),H(N,"$cursor_at_line",function(g){var u=this;return O("Cursor").$new(u.file,u.dir,u.path,g)}),H(N,"$cursor_at_mark",function(){var g=this;return E(g.mark)?Te(O("Cursor"),"new",st(g.mark)):g.$cursor()}),H(N,"$cursor_before_mark",function(){var g,u,m=this,C=K,x=K,y=K,M=K;return E(m.mark)?(u=m.mark,g=Ie(u),C=g[0]==null?K:g[0],x=g[1]==null?K:g[1],y=g[2]==null?K:g[2],M=g[3]==null?K:g[3],O("Cursor").$new(C,x,y,Ye(M,1))):O("Cursor").$new(m.file,m.dir,m.path,Ye(m.lineno,1))}),H(N,"$cursor_at_prev_line",function(){var g=this;return O("Cursor").$new(g.file,g.dir,g.path,Ye(g.lineno,1))}),H(N,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),H(N,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),H(N,"$lines",function(){var g=this;return g.lines.$reverse()}),H(N,"$string",function(){var g=this;return g.lines.$reverse().$join(O("LF"))}),H(N,"$source",function(){var g=this;return g.source_lines.$join(O("LF"))}),H(N,"$save",function(){var g=this;return g.saved=Te(V([],{}),"tap",[],function u(m){var C=u.$$s==null?this:u.$$s;return m==null&&(m=K),Te(C.$instance_variables(),"each",[],function x(y){var M,P=x.$$s==null?this:x.$$s,fe=K;return y==null&&(y=K),Pe(y,"@saved")||Pe(y,"@source_lines")?K:(M=[y,Y(I("Array"),fe=P.$instance_variable_get(y))?fe.$drop(0):fe],Te(m,"[]=",M),M[M.length-1])},{$$s:C})},{$$s:g}),K}),H(N,"$restore_save",function(){var g=this;return E(g.saved)?(Te(g.saved,"each",[],function u(m,C){var x=u.$$s==null?this:u.$$s;return m==null&&(m=K),C==null&&(C=K),x.$instance_variable_set(m,C)},{$$s:g}),g.saved=K):K}),H(N,"$discard_save",We("saved",K)),H(N,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),N.$private(),H(N,"$prepare_lines",function(g,u){var m=this,C=K;u==null&&(u=V([],{}));try{return E(C=u["$[]"]("normalize"))?Y(I("Array"),g)?O("Helpers").$prepare_source_array(g,C["$!="]("chomp")):O("Helpers").$prepare_source_string(g,C["$!="]("chomp")):Y(I("Array"),g)?g.$drop(0):E(g)?g.$chomp().$split(O("LF"),-1):[]}catch(x){if(a.rescue(x,[O("StandardError")]))try{return E((Y(I("Array"),g)?g.$join():g.$to_s())["$valid_encoding?"]())?m.$raise():m.$raise(I("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw x}},-2),H(N,"$process_line",function(g){var u=this;return E(u.process_lines)&&(u.look_ahead=_e(u.look_ahead,1)),g})}(Ce[0],null,Ce),function(ge,Q,L){var N=ee(ge,Q,"PreprocessorReader"),re=[N].concat(L),O=a.$r(re),ue=N.$$prototype;return ue.include_stack=ue.lines=ue.file=ue.dir=ue.path=ue.lineno=ue.maxdepth=ue.process_lines=ue.includes=ue.document=ue.unescape_next_line=ue.include_processor_extensions=ue.look_ahead=ue.skipping=ue.conditional_stack=K,N.$attr_reader("include_stack"),H(N,"$initialize",function U(g,u,m,C){U.$$p;var x=this,y=K,M=K;return U.$$p=null,u==null&&(u=K),m==null&&(m=K),C==null&&(C=V([],{})),x.document=g,Ze(x,$t(x,"initialize",U,!1,!0),"initialize",[u,m,C],null),E(Je(y=(E(M=g.$attributes()["$[]"]("max-include-depth"))?M:64).$to_i(),0))?x.maxdepth=V(["abs","curr","rel"],{abs:y,curr:y,rel:y}):x.maxdepth=K,x.include_stack=[],x.includes=g.$catalog()["$[]"]("includes"),x.skipping=!1,x.conditional_stack=[],x.include_processor_extensions=K},-2),H(N,"$has_more_lines?",function(){var g=this;return!!E(g.$peek_line())}),H(N,"$empty?",function(){var g=this;return!E(g.$peek_line())}),v(N,"eof?","empty?"),H(N,"$peek_line",function U(g){var u=U.$$p||K,m=this,C=K;return U.$$p=null,g==null&&(g=!1),E(C=Ze(m,$t(m,"peek_line",U,!1,!0),"peek_line",[g],u))?C:E(m.include_stack["$empty?"]())?K:(m.$pop_include(),m.$peek_line(g))},-1),H(N,"$push_include",function(g,u,m,C,x){var y=this,M=K,P=K,fe=K,ie=K,xe=K,Le=K;return u==null&&(u=K),m==null&&(m=K),C==null&&(C=1),x==null&&(x=V([],{})),y.include_stack["$<<"]([y.lines,y.file,y.dir,y.path,y.lineno,y.maxdepth,y.process_lines]),E(y.file=u)?(Y(I("String"),u)?y.dir=I("File").$dirname(u):E(O("RUBY_ENGINE_OPAL"))?y.dir=I("URI").$parse(I("File").$dirname(u=u.$to_s())):((y.dir=u.$dup())["$path="](Pe(M=I("File").$dirname(u.$path()),"/")?"":M),u=u.$to_s()),y.path=m=E(P=m)?P:I("File").$basename(u),E(y.process_lines=Te(u,"end_with?",st(O("ASCIIDOC_EXTENSIONS").$keys())))&&(E(P=y.includes["$[]"](m.$slice(0,m.$rindex("."))))||y.includes["$[]="](m.$slice(0,m.$rindex(".")),E(x["$[]"]("partial-option"))?K:!0))):(y.dir=".",y.process_lines=!0,E(y.path=m)?E(P=y.includes["$[]"](O("Helpers").$rootname(m)))||y.includes["$[]="](O("Helpers").$rootname(m),E(x["$[]"]("partial-option"))?K:!0):y.path="<stdin>"),y.lineno=C,E(y.maxdepth)&&E(x["$key?"]("depth"))&&(E(Je(fe=x["$[]"]("depth").$to_i(),0))?(E(Je(ie=_e(y.include_stack.$size(),fe),xe=y.maxdepth["$[]"]("abs")))&&(ie=fe=xe),y.maxdepth=V(["abs","curr","rel"],{abs:xe,curr:ie,rel:fe})):y.maxdepth=V(["abs","curr","rel"],{abs:y.maxdepth["$[]"]("abs"),curr:y.include_stack.$size(),rel:0})),E((y.lines=y.$prepare_lines(g,V(["normalize","condense","indent"],{normalize:E(P=y.process_lines)?P:"chomp",condense:!1,indent:x["$[]"]("indent")})))["$empty?"]())?y.$pop_include():(E(x["$key?"]("leveloffset"))?(y.lines=_e(_e([E(Le=y.document.$attr("leveloffset"))?":leveloffset: "+Le:":leveloffset!:",""],y.lines.$reverse()),["",":leveloffset: "+x["$[]"]("leveloffset")]),y.lineno=Ye(y.lineno,2)):y.lines["$reverse!"](),y.look_ahead=0),y},-2),H(N,"$include_depth",function(){var g=this;return g.include_stack.$size()}),H(N,"$exceeds_max_depth?",function(){var g=this,u=K,m=K;return E(u=E(m=g.maxdepth)?z(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):m)?g.maxdepth["$[]"]("rel"):u}),v(N,"exceeded_max_depth?","exceeds_max_depth?"),H(N,"$shift",function U(){var g=U.$$p||K,u=this,m=K;return U.$$p=null,E(u.unescape_next_line)?(u.unescape_next_line=!1,(m=Ze(u,$t(u,"shift",U,!1,!0),"shift",[],g)).$slice(1,m.$length())):Ze(u,$t(u,"shift",U,!1,!0),"shift",[],g)}),H(N,"$include_processors?",function(){var g=this;return E(g.include_processor_extensions["$nil?"]())?E(g.document["$extensions?"]())&&E(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),H(N,"$create_include_cursor",function(g,u,m){var C=K;return Y(I("String"),g)?C=I("File").$dirname(g):E(O("RUBY_ENGINE_OPAL"))?C=I("File").$dirname(g=g.$to_s()):(C=Pe(C=I("File").$dirname(g.$path()),"")?"/":C,g=g.$to_s()),O("Cursor").$new(g,C,u,m)}),H(N,"$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: ["+Te(g.include_stack,"map",[],function(m){return m==null&&(m=K),m.$to_s()}).$join(", ")+"]}>"}),N.$private(),H(N,"$prepare_lines",function U(g,u){var m=U.$$p||K,C=this,x=K,y=K,M=K,P=K;if(U.$$p=null,u==null&&(u=V([],{})),x=Ze(C,$t(C,"prepare_lines",U,!1,!0),"prepare_lines",[g,u],m),E(C.document)&&E(C.document.$attributes()["$[]"]("skip-front-matter"))&&E(y=C["$skip_front_matter!"](x))&&C.document.$attributes()["$[]="]("front-matter",y.$join(O("LF"))),E(u.$fetch("condense",!0)))for(;E(E(M=P=x["$[]"](-1))?P["$empty?"]():M);)x.$pop();return E(u["$[]"]("indent"))&&O("Parser")["$adjust_indentation!"](x,u["$[]"]("indent").$to_i(),C.document.$attr("tabsize").$to_i()),x},-2),H(N,"$process_line",function(g){var u,m=this;return E(m.process_lines)?E(g["$empty?"]())?(m.look_ahead=_e(m.look_ahead,1),g):E(g["$end_with?"]("]"))&&je(g["$start_with?"]("["))&&E(g["$include?"]("::"))?E(g["$include?"]("if"))&&E(O("ConditionalDirectiveRx")["$=~"](g))?Pe((u=et["~"])===K?K:u["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):E(m.$preprocess_conditional_directive((u=et["~"])===K?K:u["$[]"](2),(u=et["~"])===K?K:u["$[]"](3),(u=et["~"])===K?K:u["$[]"](4),(u=et["~"])===K?K:u["$[]"](5)))?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):E(m.skipping)?(m.$shift(),K):E(g["$start_with?"]("inc","\\inc"))&&E(O("IncludeDirectiveRx")["$=~"](g))?Pe((u=et["~"])===K?K:u["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):E(m.$preprocess_include_directive((u=et["~"])===K?K:u["$[]"](2),(u=et["~"])===K?K:u["$[]"](3)))?K:(m.look_ahead=_e(m.look_ahead,1),g):(m.look_ahead=_e(m.look_ahead,1),g):E(m.skipping)?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):g}),H(N,"$preprocess_conditional_directive",function(g,u,m,C){var x,y=this,M=K,P=K,fe=K,ie=K,xe=K,Le=K;if(E(M=u["$empty?"]())||(u=u.$downcase()),Pe(g,"endif"))return E(C)?y.$logger().$error(y.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+u+"["+C+"]",V(["source_location"],{source_location:y.$cursor()}))):E(y.conditional_stack["$empty?"]())?y.$logger().$error(y.$message_with_context("unmatched preprocessor directive: endif::"+u+"[]",V(["source_location"],{source_location:y.$cursor()}))):E(M)||Pe(u,(P=y.conditional_stack["$[]"](-1))["$[]"]("target"))?(y.conditional_stack.$pop(),y.skipping=E(y.conditional_stack["$empty?"]())?!1:y.conditional_stack["$[]"](-1)["$[]"]("skipping")):y.$logger().$error(y.$message_with_context("mismatched preprocessor directive: endif::"+u+"[], expected endif::"+P["$[]"]("target")+"[]",V(["source_location"],{source_location:y.$cursor()}))),!0;if(E(y.skipping))fe=!1;else switch(g){case"ifdef":if(E(M))return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+C+"]",V(["source_location"],{source_location:y.$cursor()}))),!0;switch(m){case",":fe=Te(u.$split(",",-1),"none?",[],function Ke(nt){var dt=Ke.$$s==null?this:Ke.$$s;return dt.document==null&&(dt.document=K),nt==null&&(nt=K),dt.document.$attributes()["$key?"](nt)},{$$s:y});break;case"+":fe=Te(u.$split("+",-1),"any?",[],function Ke(nt){var dt=Ke.$$s==null?this:Ke.$$s;return dt.document==null&&(dt.document=K),nt==null&&(nt=K),dt.document.$attributes()["$key?"](nt)["$!"]()},{$$s:y});break;default:fe=y.document.$attributes()["$key?"](u)["$!"]()}break;case"ifndef":if(E(M))return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+C+"]",V(["source_location"],{source_location:y.$cursor()}))),!0;switch(m){case",":fe=Te(u.$split(",",-1),"any?",[],function Ke(nt){var dt=Ke.$$s==null?this:Ke.$$s;return dt.document==null&&(dt.document=K),nt==null&&(nt=K),dt.document.$attributes()["$key?"](nt)},{$$s:y});break;case"+":fe=Te(u.$split("+",-1),"all?",[],function Ke(nt){var dt=Ke.$$s==null?this:Ke.$$s;return dt.document==null&&(dt.document=K),nt==null&&(nt=K),dt.document.$attributes()["$key?"](nt)},{$$s:y});break;default:fe=y.document.$attributes()["$key?"](u)}break;case"ifeval":if(E(M))if(E(C)&&E(O("EvalExpressionRx")["$=~"](C.$strip())))ie=(x=et["~"])===K?K:x["$[]"](1),xe=(x=et["~"])===K?K:x["$[]"](2),Le=(x=et["~"])===K?K:x["$[]"](3),fe=function(){try{return!E(y.$resolve_expr_val(ie).$send(xe,y.$resolve_expr_val(Le)))}catch(Ke){if(a.rescue(Ke,[O("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Ke}}();else return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - "+(E(C)?"invalid expression":"missing expression")+": ifeval::["+C+"]",V(["source_location"],{source_location:y.$cursor()}))),!0;else return y.$logger().$error(y.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+u+"["+C+"]",V(["source_location"],{source_location:y.$cursor()}))),!0;break}return Pe(g,"ifeval")||je(C)?(E(fe)&&(y.skipping=!0),y.conditional_stack["$<<"](V(["target","skip","skipping"],{target:u,skip:fe,skipping:y.skipping}))):E(y.skipping)||E(fe)||(y.$replace_next_line(C.$rstrip()),y.$unshift(""),E(C["$start_with?"]("include::"))&&(y.look_ahead=Ye(y.look_ahead,1))),!0}),H(N,"$preprocess_include_directive",function(g,u){var m,C,x=this,y=K,M=K,P=K,fe=K,ie=K,xe=K,Le=K,Ke=K,nt=K,dt=K,at=K,pt=K,vt=K,bt=K,gt=K,Ct=K,St=K,Wt=K,Bt=K,er=K,Kt=K,jt=K,Yt=K,Xt=K,nr=K,Pn=K,Jr=K;if(y=x.document,E((M=g)["$include?"](O("ATTR_REF_HEAD")))&&E((M=y.$sub_attributes(g,V(["attribute_missing"],{attribute_missing:Pe(P=E(fe=y.$attributes()["$[]"]("attribute-missing"))?fe:O("Compliance").$attribute_missing(),"warn")?"drop-line":P})))["$empty?"]()))return Pe(P,"drop-line")&&E(y.$sub_attributes(_e(g," "),V(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(Te(x.$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+"]",V(["source_location"],{source_location:Ut.$cursor()}))},{$$s:x}),x.$shift(),!0):E(y.$parse_attributes(u,[],V(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(Te(x.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("optional include dropped "+(Pe(P,"warn")&&E(y.$sub_attributes(_e(g," "),V(["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+"]",V(["source_location"],{source_location:Ut.$cursor()}))},{$$s:x}),x.$shift(),!0):(x.$logger().$warn(x.$message_with_context("include dropped "+(Pe(P,"warn")&&E(y.$sub_attributes(_e(g," "),V(["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+"]",V(["source_location"],{source_location:x.$cursor()}))),x.$replace_next_line("Unresolved directive in "+x.path+" - include::"+g+"["+u+"]"));if(E(x["$include_processors?"]())&&E(ie=Te(x.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=K),Ut.$instance()["$handles?"](M)})))return x.$shift(),ie.$process_method()["$[]"](y,x,M,y.$parse_attributes(u,[],V(["sub_input"],{sub_input:!0}))),!0;if(E(z(y.$safe(),I(O("SafeMode"),"SECURE"))))return x.$replace_next_line("link:"+M+"[role=include]");if(E(x.maxdepth)){if(E(z(x.include_stack.$size(),x.maxdepth["$[]"]("curr"))))return x.$logger().$error(x.$message_with_context("maximum include depth of "+x.maxdepth["$[]"]("rel")+" exceeded",V(["source_location"],{source_location:x.$cursor()}))),K;switch(xe=y.$parse_attributes(u,[],V(["sub_input"],{sub_input:!0})),C=x.$resolve_include_path(M,u,xe),m=Ie(C),Le=m[0]==null?K:m[0],Ke=m[1]==null?K:m[1],nt=m[2]==null?K:m[2],Ke){case"file":dt=I("File").$method("open"),at=O("FILE_READ_MODE");break;case"uri":dt=I("OpenURI").$method("open_uri"),at=O("URI_READ_MODE");break;default:return Le}if(E(O("RUBY_ENGINE_OPAL"))||E(pt=xe["$[]"]("encoding"))&&E(function(){try{return I("Encoding").$find(pt)}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return K}finally{a.pop_exception()}else throw Jt}}())&&((vt=at.$split(":"))["$[]="](1,pt),at=vt.$join(":")),bt=gt=K,E(u)&&(E(xe["$key?"]("lines"))?(bt=[],Te(x.$split_delimited_value(xe["$[]"]("lines")),"each",[],function(Ut){var Zt,Er,Ht=K,kr=K;return Ut==null&&(Ut=K),E(Ut["$include?"](".."))?(Er=Ut.$partition(".."),Zt=Ie(Er),Ht=Zt[0]==null?K:Zt[0],Zt[1]==null||Zt[1],kr=Zt[2]==null?K:Zt[2],bt=_e(bt,E(kr["$empty?"]())||E(S(kr=kr.$to_i(),0))?[Ht.$to_i(),I(I("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),kr,!1).$to_a())):bt["$<<"](Ut.$to_i())}),bt=E(bt["$empty?"]())?K:bt.$sort().$uniq()):E(xe["$key?"]("tag"))?E((Ct=xe["$[]"]("tag"))["$empty?"]())||Pe(Ct,"!")||(gt=E(Ct["$start_with?"]("!"))?tt(Ct.$slice(1,Ct.$length()),!1):tt(Ct,!0)):E(xe["$key?"]("tags"))&&(gt=V([],{}),Te(x.$split_delimited_value(xe["$[]"]("tags")),"each",[],function(Ut){var Zt;return Ut==null&&(Ut=K),E(Ut["$empty?"]())||Pe(Ut,"!")?K:E(Ut["$start_with?"]("!"))?(Zt=[Ut.$slice(1,Ut.$length()),!1],Te(gt,"[]=",Zt),Zt[Zt.length-1]):(Zt=[Ut,!0],Te(gt,"[]=",Zt),Zt[Zt.length-1])}),E(gt["$empty?"]())&&(gt=K))),E(bt)){m=[[],K,0],St=m[0],Wt=m[1],Bt=m[2];try{Te(dt,"call",[Le,at],function(Ut){var Zt=K;return Ut==null&&(Ut=K),Zt=K,function(){try{var Er=Me("break");return Te(Ut,"each_line",[],function(kr){var cn=K;if(kr==null&&(kr=K),Bt=_e(Bt,1),E(Zt)||Y(I("Float"),cn=bt["$[]"](0))&&E(Zt=cn["$infinite?"]()))return Wt=E(fe=Wt)?fe:Bt,St["$<<"](kr);if(Pe(cn,Bt)&&(Wt=E(fe=Wt)?fe:Bt,St["$<<"](kr),bt.$shift()),E(bt["$empty?"]()))Er.$throw();else return K})}catch(Ht){if(Ht===Er)return Ht.$v;throw Ht}}()})}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return x.$logger().$error(x.$message_with_context("include "+Ke+" not readable: "+Le,V(["source_location"],{source_location:x.$cursor()}))),x.$replace_next_line("Unresolved directive in "+x.path+" - include::"+M+"["+u+"]")}finally{a.pop_exception()}else throw Jt}x.$shift(),E(Wt)&&(xe["$[]="]("partial-option",""),x.$push_include(St,Le,nt,Wt,xe))}else if(E(gt)){m=[[],K,0,[],I("Set").$new(),K],St=m[0],Wt=m[1],Bt=m[2],er=m[3],Kt=m[4],jt=m[5],E(gt["$key?"]("**"))?(Yt=Xt=gt.$delete("**"),E(gt["$key?"]("*"))?nr=gt.$delete("*"):je(Yt)&&Pe(gt.$values().$first(),!1)&&(nr=!0)):E(gt["$key?"]("*"))?Pe(gt.$keys().$first(),"*")?Yt=Xt=(nr=gt.$delete("*"))["$!"]():(Yt=Xt=!1,nr=gt.$delete("*")):Yt=Xt=gt["$value?"](!0)["$!"]();try{Te(dt,"call",[Le,at],function Jt(Ut){var Zt,Er=Jt.$$s==null?this:Jt.$$s,Ht=K,kr=K;return Ut==null&&(Ut=K),Zt=["::","[]"],Ht=Zt[0],kr=Zt[1],Te(Ut,"each_line",[],function cn(Cr){var Sr,mn,Lr=cn.$$s==null?this:cn.$$s,Wr=K,Ns=K,Is=K;return Cr==null&&(Cr=K),Bt=_e(Bt,1),E(Cr["$include?"](Ht))&&E(Cr["$include?"](kr))&&E(O("TagDirectiveRx")["$=~"](Cr))?(Wr=(Sr=et["~"])===K?K:Sr["$[]"](2),E((Sr=et["~"])===K?K:Sr["$[]"](1))?Pe(Wr,jt)?(er.$pop(),mn=E(er["$empty?"]())?[K,Xt]:er["$[]"](-1),Sr=Ie(mn),jt=Sr[0]==null?K:Sr[0],Yt=Sr[1]==null?K:Sr[1],mn):E(gt["$key?"](Wr))?(Ns=Lr.$create_include_cursor(Le,M,Bt),E(Is=Te(er,"rindex",[],function(qs){return qs==null&&(qs=K),qs["$=="](Wr)},{$$has_trailing_comma_in_args:!0}))?(Pe(Is,0)?er.$shift():er.$delete_at(Is),Lr.$logger().$warn(Lr.$message_with_context("mismatched end tag (expected '"+jt+"' but found '"+Wr+"') at line "+Bt+" of include "+Ke+": "+Le,V(["source_location","include_location"],{source_location:Lr.$cursor(),include_location:Ns})))):Lr.$logger().$warn(Lr.$message_with_context("unexpected end tag '"+Wr+"' at line "+Bt+" of include "+Ke+": "+Le,V(["source_location","include_location"],{source_location:Lr.$cursor(),include_location:Ns})))):K:E(gt["$key?"](Wr))?(E(Yt=gt["$[]"](Wr))&&Kt["$<<"](Wr),er["$<<"]([jt=Wr,Yt,Bt])):je(nr["$nil?"]())?(Yt=E(jt)&&je(Yt)?!1:nr,er["$<<"]([jt=Wr,Yt,Bt])):K):E(Yt)?(Wt=E(fe=Wt)?fe:Bt,St["$<<"](Cr)):K},{$$s:Er})},{$$s:x})}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return x.$logger().$error(x.$message_with_context("include "+Ke+" not readable: "+Le,V(["source_location"],{source_location:x.$cursor()}))),x.$replace_next_line("Unresolved directive in "+x.path+" - include::"+M+"["+u+"]")}finally{a.pop_exception()}else throw Jt}E(er["$empty?"]())||Te(er,"each",[],function Jt(Ut,Zt,Er){var Ht=Jt.$$s==null?this:Jt.$$s;return Ut==null&&(Ut=K),Er==null&&(Er=K),Ht.$logger().$warn(Ht.$message_with_context("detected unclosed tag '"+Ut+"' starting at line "+Er+" of include "+Ke+": "+Le,V(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Le,M,Er)})))},{$$s:x}),E((Pn=Ye(Te(gt,"keep_if",[],function(Ut,Zt){return Zt==null&&(Zt=K),Zt}).$keys(),Kt.$to_a()))["$empty?"]())||x.$logger().$warn(x.$message_with_context("tag"+(E(Je(Pn.$size(),1))?"s":"")+" '"+Pn.$join(", ")+"' not found in include "+Ke+": "+Le,V(["source_location"],{source_location:x.$cursor()}))),x.$shift(),E(Wt)&&(E(Xt)&&Ve(nr,!1)&&E(gt["$empty?"]())||xe["$[]="]("partial-option",""),x.$push_include(St,Le,nt,Wt,xe))}else{Jr=K;try{Jr=Te(dt,"call",[Le,at],function(Ut){return Ut==null&&(Ut=K),Ut.$read()}),x.$shift()}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return x.$logger().$error(x.$message_with_context("include "+Ke+" not readable: "+Le,V(["source_location"],{source_location:x.$cursor()}))),x.$replace_next_line("Unresolved directive in "+x.path+" - include::"+M+"["+u+"]")}finally{a.pop_exception()}else throw Jt}x.$push_include(Jr,Le,nt,1,xe)}return!0}else return K}),H(N,"$resolve_include_path",function(g,u,m){var C,x=this,y=K,M=K,P=K;return y=x.document,E(O("Helpers")["$uriish?"](g))||E(Y(I("String"),x.dir)?K:g=""+x.dir+"/"+g)?E(y["$attr?"]("allow-uri-read"))?(E(y["$attr?"]("cache-uri"))?E((C=I("::","OpenURI","skip_raise"))&&I(C,"Cache","skip_raise")?"constant":K)||O("Helpers").$require_library("open-uri/cached","open-uri-cached"):je(O("RUBY_ENGINE_OPAL"))&&I("OpenURI"),[I("URI").$parse(g),"uri",g]):x.$replace_next_line("link:"+g+"[role=include]"):(M=y.$normalize_system_path(g,x.dir,K,V(["target_name"],{target_name:"include file"})),E(I("File")["$file?"](M))?(P=y.$path_resolver().$relative_path(M,y.$base_dir()),[M,"file",P]):E(m["$[]"]("optional-option"))?(Te(x.$logger(),"info",[],function fe(){var ie=fe.$$s==null?this:fe.$$s;return ie.$message_with_context("optional include dropped because include file not found: "+M,V(["source_location"],{source_location:ie.$cursor()}))},{$$s:x}),x.$shift(),!0):(x.$logger().$error(x.$message_with_context("include file not found: "+M,V(["source_location"],{source_location:x.$cursor()}))),x.$replace_next_line("Unresolved directive in "+x.path+" - include::"+g+"["+u+"]")))}),H(N,"$pop_include",function(){var g,u,m=this;return E(m.include_stack["$empty?"]())||(u=m.include_stack.$pop(),g=Ie(u),m.lines=g[0]==null?K:g[0],m.file=g[1]==null?K:g[1],m.dir=g[2]==null?K:g[2],m.path=g[3]==null?K:g[3],m.lineno=g[4]==null?K:g[4],m.maxdepth=g[5]==null?K:g[5],m.process_lines=g[6]==null?K:g[6],m.look_ahead=0),K}),H(N,"$split_delimited_value",function(g){return E(g["$include?"](","))?g.$split(","):g.$split(";")}),H(N,"$skip_front_matter!",function(g,u){var m=this,C=K,x=K,y=K,M=K,P=K;if(u==null&&(u=!0),!Pe(C=g["$[]"](0),"---"))return K;for(x=g.$drop(0),g.$shift(),y=[],E(u)&&(m.lineno=_e(m.lineno,1));!E(E(M=P=g["$empty?"]())?M:g["$[]"](0)["$=="](C));)y["$<<"](g.$shift()),E(u)&&(m.lineno=_e(m.lineno,1));return E(P)?(Te(g,"unshift",st(x)),E(u)&&(m.lineno=Ye(m.lineno,x.$size())),K):(g.$shift(),E(u)&&(m.lineno=_e(m.lineno,1)),y)},-2),H(N,"$resolve_expr_val",function(g){var u=this,m=K;return E(g["$start_with?"]('"'))&&E(g["$end_with?"]('"'))||E(g["$start_with?"]("'"))&&E(g["$end_with?"]("'"))?(m=!0,g=g.$slice(1,Ye(g.$length(),1))):m=!1,E(g["$include?"](O("ATTR_REF_HEAD")))&&(g=u.document.$sub_attributes(g,V(["attribute_missing"],{attribute_missing:"drop"}))),E(m)?g:E(g["$empty?"]())?K:Pe(g,"true")?!0:Pe(g,"false")?!1:E(g.$rstrip()["$empty?"]())?" ":E(g["$include?"]("."))?g.$to_f():g.$to_i()})}(Ce[0],se("Reader"),Ce)}(lt[0],lt)},Opal.modules["asciidoctor/section"]=function(a){var ne=a.module,ee=a.klass,H=a.hash2,_e=a.send2,v=a.find_super,V=a.eqeqeq,je=a.truthy,Y=a.rb_plus,Ie=a.def,E=a.alias,Je=a.rb_gt,Te=a.eqeq,Ye=a.not,Me=a.send,Pe=a.defs,ft=[],Ve=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,We){var Ze=ne(st,"Asciidoctor"),$t=[Ze].concat(We),z=a.$r($t);return function(et,S,tt){var lt=ee(et,S,"Section"),K=[lt].concat(tt),I=a.$r(K),Ue=lt.$$prototype;return Ue.document=Ue.next_section_index=Ue.parent=Ue.level=Ue.numeral=Ue.numbered=Ue.sectname=Ue.title=Ue.blocks=Ve,lt.$attr_accessor("index"),lt.$attr_accessor("sectname"),lt.$attr_accessor("special"),lt.$attr_accessor("numbered"),lt.$attr_reader("caption"),Ie(lt,"$initialize",function be(Ne,Ce,se,ge){var Q;be.$$p;var L=this,N=Ve;return be.$$p=null,Ne==null&&(Ne=Ve),Ce==null&&(Ce=Ve),se==null&&(se=!1),ge==null&&(ge=H([],{})),_e(L,v(L,"initialize",be,!1,!0),"initialize",[Ne,"section",ge],null),V(I("Section"),Ne)?(Q=[je(N=Ce)?N:Y(Ne.$level(),1),Ne.$special()],L.level=Q[0],L.special=Q[1]):(Q=[je(N=Ce)?N:1,!1],L.level=Q[0],L.special=Q[1]),L.numbered=se,L.index=0},-1),E(lt,"name","title"),Ie(lt,"$generate_id",function(){var Ne=this;return I("Section").$generate_id(Ne.$title(),Ne.document)}),Ie(lt,"$sections?",function(){var Ne=this;return Je(Ne.next_section_index,0)}),Ie(lt,"$sectnum",function(Ne,Ce){var se=this,ge=Ve;return Ne==null&&(Ne="."),Ce==null&&(Ce=Ve),Ce=je(ge=Ce)?ge:Te(Ce,!1)?"":Ne,je(Je(se.level,1))&&V(I("Section"),se.parent)?""+se.parent.$sectnum(Ne,Ne)+se.numeral+Ce:""+se.numeral+Ce},-1),Ie(lt,"$xreftext",function(Ne){var Ce=this,se=Ve,ge=Ve,Q=Ve,L=Ve;if(Ne==null&&(Ne=Ve),je(se=Ce.$reftext())&&Ye(se["$empty?"]()))return se;if(je(Ne))if(je(Ce.numbered))switch(Ne){case"full":return Te(ge=Ce.sectname,"chapter")||Te(ge,"appendix")?Q=Ce.$sub_placeholder(Ce.$sub_quotes("_%s_"),Ce.$title()):Q=Ce.$sub_placeholder(Ce.$sub_quotes(je(Ce.document.$compat_mode())?"``%s''":'"`%s`"'),Ce.$title()),je(L=Ce.document.$attributes()["$[]"](""+ge+"-refsig"))?""+L+" "+Ce.$sectnum(".",",")+" "+Q:""+Ce.$sectnum(".",",")+" "+Q;case"short":return je(L=Ce.document.$attributes()["$[]"](""+Ce.sectname+"-refsig"))?""+L+" "+Ce.$sectnum(".",""):Ce.$sectnum(".","");default:return Te(ge=Ce.sectname,"chapter")||Te(ge,"appendix")?Ce.$sub_placeholder(Ce.$sub_quotes("_%s_"),Ce.$title()):Ce.$title()}else return Te(ge=Ce.sectname,"chapter")||Te(ge,"appendix")?Ce.$sub_placeholder(Ce.$sub_quotes("_%s_"),Ce.$title()):Ce.$title();else return Ce.$title()},-1),Ie(lt,"$<<",function be(Ne){var Ce=be.$$p||Ve,se=this;return be.$$p=null,Te(Ne.$context(),"section")&&se.$assign_numeral(Ne),_e(se,v(se,"<<",be,!1,!0),"<<",[Ne],Ce)}),Ie(lt,"$to_s",function be(){var Ne=be.$$p||Ve,Ce=this,se=Ve;return be.$$p=null,je(Ce.title)?(se=je(Ce.numbered)?""+Ce.$sectnum()+" "+Ce.title:Ce.title,"#<"+Ce.$class()+"@"+Ce.$object_id()+" {level: "+Ce.level+", title: "+se.$inspect()+", blocks: "+Ce.blocks.$size()+"}>"):_e(Ce,v(Ce,"to_s",be,!1,!0),"to_s",[],Ne)}),Pe(lt,"$generate_id",function(Ne,Ce){var se,ge=Ve,Q=Ve,L=Ve,N=Ve,re=Ve,O=Ve,ue=Ve,U=Ve,g=Ve,u=Ve;if(ge=Ce.$attributes(),Q=je(L=ge["$[]"]("idprefix"))?L:"_",je(N=ge["$[]"]("idseparator"))?(Te(N.$length(),1)||Ye(re=N["$empty?"]())&&je(N=(se=["idseparator",N.$chr()],Me(ge,"[]=",se),se[se.length-1])))&&(O=Te(N,"-")||Te(N,".")?" .-":" "+N+".-"):(se=["_"," _.-"],N=se[0],O=se[1]),ue=""+Q+Ne.$downcase().$gsub(I("InvalidSectionIdCharsRx"),""),je(re)?ue=ue.$delete(" "):(ue=ue.$tr_s(O,N),je(ue["$end_with?"](N))&&(ue=ue.$chop()),je(Q["$empty?"]())&&je(ue["$start_with?"](N))&&(ue=ue.$slice(1,ue.$length()))),je(Ce.$catalog()["$[]"]("refs")["$key?"](ue))){for(U=Ce.$catalog()["$[]"]("refs"),g=I("Compliance").$unique_id_start_index();je(U["$[]"](u=""+ue+N+g));)g=Y(g,1);return u}else return ue})}($t[0],z("AbstractBlock"),$t)}(ft[0],ft)},Opal.modules["asciidoctor/stylesheets"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.return_ivar,v=a.defs,V=a.def,je=a.truthy,Y=a.hash2,Ie=[],E=a.nil,Je=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(Te,Ye){var Me=ne(Te,"Asciidoctor"),Pe=[Me].concat(Ye);return function(ft,Ve,st){var We=ee(ft,Ve,"Stylesheets"),Ze=[We].concat(st),$t=a.$r(Ze),z=We.$$prototype;return z.primary_stylesheet_data=E,H(Ze[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),H(Ze[0],"STYLESHEETS_DIR",Je("File").$join($t("DATA_DIR"),"stylesheets")),We.__instance__=We.$new(),v(We,"$instance",_e("__instance__")),V(We,"$primary_stylesheet_name",function(){return $t("DEFAULT_STYLESHEET_NAME")}),V(We,"$primary_stylesheet_data",function(){var S=this,tt=E;return S.primary_stylesheet_data=je(tt=S.primary_stylesheet_data)?tt:Je("File").$read(Je("File").$join($t("STYLESHEETS_DIR"),"asciidoctor-default.css"),Y(["mode"],{mode:$t("FILE_READ_MODE")})).$rstrip()}),V(We,"$embed_primary_stylesheet",function(){var S=this;return`<style>
|
|
411
|
+
`+S.$primary_stylesheet_data()+`
|
|
412
|
+
</style>`}),V(We,"$write_primary_stylesheet",function(S){var tt=this;return S==null&&(S="."),Je("File").$write(Je("File").$join(S,tt.$primary_stylesheet_name()),tt.$primary_stylesheet_data(),Y(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1),V(We,"$coderay_stylesheet_name",function(){return $t("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),V(We,"$coderay_stylesheet_data",function(){return $t("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),V(We,"$embed_coderay_stylesheet",function(){var S=this;return`<style>
|
|
413
|
+
`+S.$coderay_stylesheet_data()+`
|
|
414
|
+
</style>`}),V(We,"$write_coderay_stylesheet",function(S){var tt=this;return S==null&&(S="."),Je("File").$write(Je("File").$join(S,tt.$coderay_stylesheet_name()),tt.$coderay_stylesheet_data(),Y(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1),V(We,"$pygments_stylesheet_name",function(S){return S==null&&(S=E),$t("SyntaxHighlighter").$for("pygments").$stylesheet_basename(S)},-1),V(We,"$pygments_stylesheet_data",function(S){return S==null&&(S=E),$t("SyntaxHighlighter").$for("pygments").$read_stylesheet(S)},-1),V(We,"$embed_pygments_stylesheet",function(S){var tt=this;return S==null&&(S=E),`<style>
|
|
415
|
+
`+tt.$pygments_stylesheet_data(S)+`
|
|
416
|
+
</style>`},-1),V(We,"$write_pygments_stylesheet",function(S,tt){var lt=this;return S==null&&(S="."),tt==null&&(tt=E),Je("File").$write(Je("File").$join(S,lt.$pygments_stylesheet_name(tt)),lt.$pygments_stylesheet_data(tt),Y(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1)}(Pe[0],null,Pe)}(Ie[0],Ie)},Opal.modules["asciidoctor/table"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.def,v=a.alias,V=a.hash2,je=a.send2,Y=a.find_super,Ie=a.truthy,E=a.rb_lt,Je=a.rb_gt,Te=a.eqeq,Ye=a.rb_times,Me=a.rb_divide,Pe=a.send,ft=a.rb_plus,Ve=a.rb_minus,st=a.return_val,We=a.to_a,Ze=a.gvars,$t=a.neqeq,z=a.return_ivar,et=a.to_ary,S=a.regexp,tt=a.not,lt=a.thrower,K=[],I=a.nil,Ue=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(be,Ne){var Ce=ne(be,"Asciidoctor"),se=[Ce].concat(Ne),ge=a.$r(se);return function(Q,L,N){var re=ee(Q,L,"Table"),O=[re].concat(N),ue=a.$r(O),U=re.$$prototype;return U.attributes=U.document=U.rows=U.has_header_option=U.columns=I,H(O[0],"DEFAULT_PRECISION",4),function(g,u){var m=ee(g,u,"Rows"),C=m.$$prototype;return C.head=C.body=C.foot=I,m.$attr_accessor("head","foot","body"),_e(m,"$initialize",function(y,M,P){var fe=this;return y==null&&(y=[]),M==null&&(M=[]),P==null&&(P=[]),fe.head=y,fe.foot=M,fe.body=P},-1),v(m,"[]","send"),_e(m,"$by_section",function(){var y=this;return[["head",y.head],["body",y.body],["foot",y.foot]]}),_e(m,"$to_h",function(){var y=this;return V(["head","body","foot"],{head:y.head,body:y.body,foot:y.foot})})}(O[0],null),re.$attr_accessor("columns"),re.$attr_accessor("rows"),re.$attr_accessor("has_header_option"),re.$attr_reader("caption"),_e(re,"$initialize",function g(u,m){var C;g.$$p;var x=this,y=I,M=I,P=I;return g.$$p=null,je(x,Y(x,"initialize",g,!1,!0),"initialize",[u,"table"],null),x.rows=ue("Rows").$new(),x.columns=[],x.has_header_option=!1,Ie(y=m["$[]"]("width"))?(Ie(Je(M=y.$to_i(),100))||Ie(E(M,1)))&&(Te(M,0)&&(Te(y,"0")||Te(y,"0%"))||(M=100)):M=100,x.attributes["$[]="]("tablepcwidth",M),Ie(x.document.$attributes()["$[]"]("pagewidth"))&&x.attributes["$[]="]("tableabswidth",Te(P=Ye(Me(M,100),x.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(ue("DEFAULT_PRECISION")),P.$to_i())?P.$to_i():P),Ie(m["$[]"]("rotate-option"))?(C=["orientation","landscape"],Pe(x.attributes,"[]=",C),C[C.length-1]):I}),_e(re,"$header_row?",function(){var u=this,m=I;return Ie(m=u.has_header_option)&&Ie(u.rows.$body()["$empty?"]())?m:I}),_e(re,"$create_columns",function(u){var m=this,C=I,x=I,y=I,M=I;return C=[],x=I,y=0,Pe(u,"each",[],function P(fe){var ie=P.$$s==null?this:P.$$s,xe=I,Le=I;return fe==null&&(fe=I),xe=fe["$[]"]("width"),C["$<<"](ue("Column").$new(ie,C.$size(),fe)),Ie(E(xe,0))?(x=Ie(Le=x)?Le:[])["$<<"](C["$[]"](-1)):y=ft(y,xe)},{$$s:m}),Ie(Je(M=(m.columns=C).$size(),0))&&(m.attributes["$[]="]("colcount",M),Ie(Je(y,0))||Ie(x)||(y=I),m.$assign_column_widths(y,x)),I}),_e(re,"$assign_column_widths",function(u,m){var C=this,x=I,y=I,M=I,P=I,fe=I;return u==null&&(u=I),m==null&&(m=I),x=ue("DEFAULT_PRECISION"),y=M=0,Ie(u)?(Ie(m)&&(Ie(Je(u,100))?(P=0,C.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+u+"%")):(P=Me(Ve(100,u),m.$size()).$truncate(x),Te(P.$to_i(),P)&&(P=P.$to_i()),u=100),fe=V(["width","autowidth-option"],{width:P,"autowidth-option":""}),Pe(m,"each",[],function(xe){return xe==null&&(xe=I),xe.$update_attributes(fe)})),Pe(C.columns,"each",[],function(xe){return xe==null&&(xe=I),y=ft(y,M=xe.$assign_width(I,u,x))})):(M=Me(100,C.columns.$size()).$truncate(x),Te(M.$to_i(),M)&&(M=M.$to_i()),Pe(C.columns,"each",[],function(xe){return xe==null&&(xe=I),y=ft(y,xe.$assign_width(M,I,x))})),Te(y,100)||C.columns["$[]"](-1).$assign_width(ft(Ve(100,y),M).$round(x),I,x),I},-1),_e(re,"$partition_header_footer",function(u){var m,C=this,x=I,y=I;return x=(m=["rowcount",(y=C.rows.$body()).$size()],Pe(C.attributes,"[]=",m),m[m.length-1]),Ie(Je(x,0))&&(Ie(C.has_header_option)?(C.rows["$head="]([Pe(y.$shift(),"map",[],function(P){return P==null&&(P=I),P.$reinitialize(!0)})]),x=Ve(x,1)):Ie(C.has_header_option["$nil?"]())&&(C.has_header_option=!1,y.$unshift(Pe(y.$shift(),"map",[],function(P){return P==null&&(P=I),P.$reinitialize(!1)})))),Ie(Je(x,0))&&Ie(u["$[]"]("footer-option"))&&C.rows["$foot="]([y.$pop()]),I})}(se[0],ge("AbstractBlock"),se),function(Q,L){var N=ee(Q,L,"Column"),re=N.$$prototype;return re.attributes=I,N.$attr_accessor("style"),_e(N,"$initialize",function O(ue,U,g){O.$$p;var u=this;return O.$$p=null,g==null&&(g=V([],{})),je(u,Y(u,"initialize",O,!1,!0),"initialize",[ue,"table_column"],null),u.style=g["$[]"]("style"),g["$[]="]("colnumber",ft(U,1)),Ie(g["$[]"]("width"))||g["$[]="]("width",1),Ie(g["$[]"]("halign"))||g["$[]="]("halign","left"),Ie(g["$[]"]("valign"))||g["$[]="]("valign","top"),u.$update_attributes(g)},-3),v(N,"table","parent"),_e(N,"$assign_width",function(ue,U,g){var u,m=this,C=I;return Ie(U)&&(ue=Me(Ye(m.attributes["$[]"]("width").$to_f(),100),U).$truncate(g),Te(ue.$to_i(),ue)&&(ue=ue.$to_i())),Ie(m.$parent().$attributes()["$[]"]("tableabswidth"))&&m.attributes["$[]="]("colabswidth",Te(C=Ye(Me(ue,100),m.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),C.$to_i())?C.$to_i():C),u=["colpcwidth",ue],Pe(m.attributes,"[]=",u),u[u.length-1]}),_e(N,"$block?",st(!1)),_e(N,"$inline?",st(!1))}(ge("Table"),ge("AbstractNode")),function(Q,L,N){var re=ee(Q,L,"Cell"),O=[re].concat(N),ue=a.$r(O),U=re.$$prototype;return U.document=U.reinitialize_args=U.attributes=U.cursor=U.text=U.subs=U.style=U.inner_document=U.source_location=U.colspan=U.rowspan=I,H(O[0],"DOUBLE_LF",Ye(ue("LF"),2)),re.$attr_accessor("colspan"),re.$attr_accessor("rowspan"),v(re,"column","parent"),re.$attr_reader("inner_document"),_e(re,"$initialize",function g(u,m,C,x){var y;g.$$p;var M=this,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I,nt=I,dt=I,at=I,pt=I,vt=I,bt=I,gt=I;if(g.$$p=null,C==null&&(C=V([],{})),x==null&&(x=V([],{})),je(M,Y(M,"initialize",g,!1,!0),"initialize",[u,"table_cell"],null),M.cursor=M.reinitialize_args=I,Ie(M.document.$sourcemap())&&(M.source_location=x["$[]"]("cursor").$dup()),Ie(u)&&(Ie(P=u.$table()["$header_row?"]())?Te(P,"implicit")&&Ie(fe=Ie(ie=u.$style())?ie:Ie(xe=C)?C["$[]"]("style"):xe)&&((Te(fe,"asciidoc")||Te(fe,"literal"))&&(M.reinitialize_args=[u,m,Ie(ie=C)?C.$merge():ie,x]),fe=I):fe=u.$style(),M.$update_attributes(u.$attributes())),Ie(C))switch(Ie(C["$empty?"]())?M.colspan=M.rowspan=I:(y=[C.$delete("colspan"),C.$delete("rowspan")],M.colspan=y[0],M.rowspan=y[1],Ie(P)||(fe=Ie(ie=C["$[]"]("style"))?ie:fe),M.$update_attributes(C)),fe){case"asciidoc":if(Le=!0,Ke=x["$[]"]("cursor"),Ie((m=m.$rstrip())["$start_with?"](ue("LF")))){for(nt=1;Ie((m=m.$slice(1,m.$length()))["$start_with?"](ue("LF")));)nt=ft(nt,1);Ke.$advance(nt)}else m=m.$lstrip();break;case"literal":for(dt=!0,m=m.$rstrip();Ie(m["$start_with?"](ue("LF")));)m=m.$slice(1,m.$length());break;default:at=!0,m=Ie(m)?m.$strip():""}else M.colspan=M.rowspan=I,Te(fe,"asciidoc")&&(Le=!0,Ke=x["$[]"]("cursor"));return Ie(Le)?(pt=M.document.$attributes().$delete("doctitle"),vt=m.$split(ue("LF"),-1),Ie(vt["$empty?"]())||Ie((bt=vt["$[]"](0))["$include?"]("::"))&&(gt=ue("PreprocessorReader").$new(M.document,[bt]).$readlines(),Te(bt,gt["$[]"](0))&&Ie(E(gt.$size(),2))||(vt.$shift(),Ie(gt["$empty?"]())||Pe(vt,"unshift",We(gt)))),M.inner_document=ue("Document").$new(vt,V(["standalone","parent","cursor"],{standalone:!1,parent:M.document,cursor:Ke})),Ie(pt["$nil?"]())||M.document.$attributes()["$[]="]("doctitle",pt),M.subs=I):Ie(dt)?(M.content_model="verbatim",M.subs=ue("BASIC_SUBS")):(Ie(at)&&(Ie(P)?M.cursor=x["$[]"]("cursor"):M.$catalog_inline_anchor(m,x["$[]"]("cursor"))),M.content_model="simple",M.subs=ue("NORMAL_SUBS")),M.text=m,M.style=fe},-3),_e(re,"$reinitialize",function(u){var m=this;if(Ie(u))m.reinitialize_args=I;else{if(Ie(m.reinitialize_args))return Pe(Ue(ue("Table"),"Cell"),"new",We(m.reinitialize_args));m.style=m.attributes["$[]"]("style")}return Ie(m.cursor)&&m.$catalog_inline_anchor(),m}),_e(re,"$catalog_inline_anchor",function(u,m){var C,x=this;return u==null&&(u=x.text),m==null&&(m=I),Ie(m)||(C=[x.cursor,I],m=C[0],x.cursor=C[1]),Ie(u["$start_with?"]("[["))&&Ie(ue("LeadingInlineAnchorRx")["$=~"](u))?ue("Parser").$catalog_inline_anchor((C=Ze["~"])===I?I:C["$[]"](1),(C=Ze["~"])===I?I:C["$[]"](2),x,m,x.document):I},-1),_e(re,"$text",function(){var u=this;return u.$apply_subs(u.text,u.subs)}),re.$attr_writer("text"),_e(re,"$content",function(){var u=this,m=I,C=I;return Te(m=u.style,"asciidoc")?u.inner_document.$convert():Ie(u.text["$include?"](ue("DOUBLE_LF")))?Pe(u.$text().$split(ue("BlankLineRx")),"map",[],function x(y){var M=x.$$s==null?this:x.$$s;return y==null&&(y=I),Ie(m)&&$t(m,"header")?ue("Inline").$new(M.$parent(),"quoted",y,V(["type"],{type:m})).$convert():y},{$$s:u}):Ie((C=u.$text())["$empty?"]())?[]:Ie(m)&&$t(m,"header")?[ue("Inline").$new(u.$parent(),"quoted",C,V(["type"],{type:m})).$convert()]:[C]}),_e(re,"$lines",function(){var u=this;return u.text.$split(ue("LF"))}),_e(re,"$source",z("text")),_e(re,"$file",function(){var u=this,m=I;return Ie(m=u.source_location)?u.source_location.$file():m}),_e(re,"$lineno",function(){var u=this,m=I;return Ie(m=u.source_location)?u.source_location.$lineno():m}),_e(re,"$to_s",function g(){var u=g.$$p||I,m=this,C=I;return g.$$p=null,""+je(m,Y(m,"to_s",g,!1,!0),"to_s",[],u)+" - [text: "+m.text+", colspan: "+(Ie(C=m.colspan)?C:1)+", rowspan: "+(Ie(C=m.rowspan)?C:1)+", attributes: "+m.attributes+"]"})}(ge("Table"),ge("AbstractBlock"),se),function(Q,L,N){var re=ee(Q,L,"ParserContext"),O=[re].concat(N),ue=a.$r(O),U=re.$$prototype;return U.delimiter=U.delimiter_rx=U.buffer=U.cellspecs=U.cell_open=U.format=U.start_cursor_data=U.reader=U.table=U.current_row=U.colcount=U.column_visits=U.active_rowspans=U.linenum=I,re.$include(ue("Logging")),H(O[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),H(O[0],"DELIMITERS",V(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),re.$attr_accessor("table"),re.$attr_accessor("format"),re.$attr_reader("colcount"),re.$attr_accessor("buffer"),re.$attr_reader("delimiter"),re.$attr_reader("delimiter_re"),_e(re,"$initialize",function(u,m,C){var x,y,M=this,P=I,fe=I;return C==null&&(C=V([],{})),M.start_cursor_data=(M.reader=u).$mark(),M.table=m,Ie(C["$key?"]("format"))?Ie(ue("FORMATS")["$include?"](P=C["$[]"]("format")))?Te(P,"tsv")?M.format="csv":Te(M.format=P,"psv")&&Ie(m.$document()["$nested?"]())&&(P="!sv"):(M.$logger().$error(M.$message_with_context("illegal table format: "+P,V(["source_location"],{source_location:u.$cursor_at_prev_line()}))),x=["psv",Ie(m.$document()["$nested?"]())?"!sv":"psv"],M.format=x[0],P=x[1]):(x=["psv",Ie(m.$document()["$nested?"]())?"!sv":"psv"],M.format=x[0],P=x[1]),Ie(C["$key?"]("separator"))?Ie((fe=C["$[]"]("separator"))["$nil_or_empty?"]())?(y=ue("DELIMITERS")["$[]"](P),x=et(y),M.delimiter=x[0]==null?I:x[0],M.delimiter_rx=x[1]==null?I:x[1]):Te(fe,"\\t")?(y=ue("DELIMITERS")["$[]"]("tsv"),x=et(y),M.delimiter=x[0]==null?I:x[0],M.delimiter_rx=x[1]==null?I:x[1]):(x=[fe,S([Ue("Regexp").$escape(fe)])],M.delimiter=x[0],M.delimiter_rx=x[1]):(y=ue("DELIMITERS")["$[]"](P),x=et(y),M.delimiter=x[0]==null?I:x[0],M.delimiter_rx=x[1]==null?I:x[1]),M.colcount=Ie(m.$columns()["$empty?"]())?-1:m.$columns().$size(),M.buffer="",M.cellspecs=[],M.cell_open=!1,M.active_rowspans=[0],M.column_visits=0,M.current_row=[],M.linenum=-1},-3),_e(re,"$starts_with_delimiter?",function(u){var m=this;return u["$start_with?"](m.delimiter)}),_e(re,"$match_delimiter",function(u){var m=this;return m.delimiter_rx.$match(u)}),_e(re,"$skip_past_delimiter",function(u){var m=this;return m.buffer=""+m.buffer+u+m.delimiter,I}),_e(re,"$skip_past_escaped_delimiter",function(u){var m=this;return m.buffer=""+m.buffer+u.$chop()+m.delimiter,I}),_e(re,"$buffer_has_unclosed_quotes?",function(u,m){var C=this,x=I,y=I,M=I,P=I;return u==null&&(u=I),m==null&&(m='"'),Te(x=Ie(u)?ft(C.buffer,u).$strip():C.buffer.$strip(),m)?!0:Ie(x["$start_with?"](m))?(y=ft(m,m),Ie(M=x["$end_with?"](m))&&Ie(x["$end_with?"](y))||Ie(x["$start_with?"](y))?Ie(P=(x=x.$gsub(y,""))["$start_with?"](m))?x["$end_with?"](m)["$!"]():P:M["$!"]()):!1},-1),_e(re,"$take_cellspec",function(){var u=this;return u.cellspecs.$shift()}),_e(re,"$push_cellspec",function(u){var m=this,C=I;return u==null&&(u=V([],{})),m.cellspecs["$<<"](Ie(C=u)?C:V([],{})),I},-1),_e(re,"$keep_cell_open",function(){var u=this;return u.cell_open=!0,I}),_e(re,"$mark_cell_closed",function(){var u=this;return u.cell_open=!1,I}),_e(re,"$cell_open?",z("cell_open")),_e(re,"$cell_closed?",function(){var u=this;return u.cell_open["$!"]()}),_e(re,"$close_open_cell",function(u){var m=this;return u==null&&(u=V([],{})),m.$push_cellspec(u),Ie(m["$cell_open?"]())&&m.$close_cell(!0),m.$advance(),I},-1),_e(re,"$close_cell",function(u){try{var m=lt("return"),C=this,x=I,y=I,M=I,P=I,fe=I;return u==null&&(u=!1),Te(C.format,"psv")?(x=C.buffer,C.buffer="",Ie(y=C.$take_cellspec())?M=Ie(P=y.$delete("repeatcol"))?P:1:(C.$logger().$error(C.$message_with_context("table missing leading separator; recovering automatically",V(["source_location"],{source_location:Pe(Ue(ue("Reader"),"Cursor"),"new",We(C.start_cursor_data))}))),y=V([],{}),M=1)):(x=C.buffer.$strip(),C.buffer="",y=I,M=1,Te(C.format,"csv")&&tt(x["$empty?"]())&&Ie(x["$include?"](fe='"'))&&(Ie(x["$start_with?"](fe))&&Ie(x["$end_with?"](fe))?Ie(x=x.$slice(1,Ve(x.$length(),2)))?x=x.$strip().$squeeze(fe):(C.$logger().$error(C.$message_with_context("unclosed quote in CSV data; setting cell to empty",V(["source_location"],{source_location:C.reader.$cursor_at_prev_line()}))),x=""):x=x.$squeeze(fe))),Pe(1,"upto",[M],function ie(xe){var Le=ie.$$s==null?this:ie.$$s,Ke=I,nt=I,dt=I,at=I;return Le.colcount==null&&(Le.colcount=I),Le.table==null&&(Le.table=I),Le.current_row==null&&(Le.current_row=I),Le.reader==null&&(Le.reader=I),Le.column_visits==null&&(Le.column_visits=I),Le.linenum==null&&(Le.linenum=I),xe==null&&(xe=I),Te(Le.colcount,-1)?(Le.table.$columns()["$<<"](Ke=Ue(ue("Table"),"Column").$new(Le.table,Ve(ft(Le.table.$columns().$size(),xe),1))),Ie(y)&&Ie(y["$key?"]("colspan"))&&Ie(Je(nt=Ve(y["$[]"]("colspan").$to_i(),1),0))&&(dt=Le.table.$columns().$size(),Pe(nt,"times",[],function pt(vt){var bt=pt.$$s==null?this:pt.$$s;return bt.table==null&&(bt.table=I),vt==null&&(vt=I),bt.table.$columns()["$<<"](Ue(ue("Table"),"Column").$new(bt.table,ft(dt,vt)))},{$$s:Le}))):Ie(Ke=Le.table.$columns()["$[]"](Le.current_row.$size()))||(Le.$logger().$error(Le.$message_with_context("dropping cell because it exceeds specified number of columns",V(["source_location"],{source_location:Le.reader.$cursor_before_mark()}))),m.$throw()),at=Ue(ue("Table"),"Cell").$new(Ke,x,y,V(["cursor"],{cursor:Le.reader.$cursor_before_mark()})),Le.reader.$mark(),tt(at.$rowspan())||Te(at.$rowspan(),1)||Le.$activate_rowspan(at.$rowspan(),Ie(P=at.$colspan())?P:1),Le.column_visits=ft(Le.column_visits,Ie(P=at.$colspan())?P:1),Le.current_row["$<<"](at),Ie(Le["$end_of_row?"]())&&($t(Le.colcount,-1)||Ie(Je(Le.linenum,0))||Ie(u)&&Te(xe,M))?Le.$close_row():I},{$$s:C,$$ret:m}),C.cell_open=!1,I}catch(ie){if(ie===m)return ie.$v;throw ie}},-1),re.$private(),_e(re,"$close_row",function(){var u=this;return u.table.$rows().$body()["$<<"](u.current_row),Te(u.colcount,-1)&&(u.colcount=u.column_visits),u.column_visits=0,u.current_row=[],u.active_rowspans.$shift(),Ie(u.active_rowspans["$[]"](0))||u.active_rowspans["$[]="](0,0),I}),_e(re,"$activate_rowspan",function(u,m){var C=this;return Pe(1,"upto",[Ve(u,1)],function x(y){var M,P=x.$$s==null?this:x.$$s,fe=I;return P.active_rowspans==null&&(P.active_rowspans=I),y==null&&(y=I),M=[y,ft(Ie(fe=P.active_rowspans["$[]"](y))?fe:0,m)],Pe(P.active_rowspans,"[]=",M),M[M.length-1]},{$$s:C}),I}),_e(re,"$end_of_row?",function(){var u=this,m=I;return Ie(m=u.colcount["$=="](-1))?m:u.$effective_column_visits()["$=="](u.colcount)}),_e(re,"$effective_column_visits",function(){var u=this;return ft(u.column_visits,u.active_rowspans["$[]"](0))}),_e(re,"$advance",function(){var u=this;return u.linenum=ft(u.linenum,1)})}(ge("Table"),null,se)}(K[0],K)},Opal.modules["asciidoctor/writer"]=function(a){var ne=a.module,ee=a.truthy,H=a.rb_plus,_e=a.hash2,v=a.def,V=a.return_val,je=[],Y=a.nil,Ie=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(E,Je){var Te=ne(E,"Asciidoctor"),Ye=[Te].concat(Je);return function(Me,Pe){var ft=ne(Me,"Writer"),Ve=[ft].concat(Pe),st=a.$r(Ve);return v(ft,"$write",function(Ze,$t){return ee($t["$respond_to?"]("write"))?$t.$write(H(Ze.$chomp(),st("LF"))):Ie("File").$write($t,Ze,_e(["mode"],{mode:st("FILE_WRITE_MODE")})),Y})}(Ye[0],Ye),function(Me,Pe){var ft=ne(Me,"VoidWriter"),Ve=[ft].concat(Pe),st=a.$r(Ve);return ft.$include(st("Writer")),v(ft,"$write",V(Y))}(Ye[0],Ye)}(je[0],je)},Opal.modules["asciidoctor/load"]=function(a){var ne=a.module,ee=a.hash2,H=a.truthy,_e=a.neqeq,v=a.not,V=a.eqeqeq,je=a.send,Y=a.to_ary,Ie=a.rb_plus,E=a.eqeq,Je=a.def,Te=[],Ye=a.nil,Me=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,ft){var Ve=ne(Pe,"Asciidoctor"),st=[Ve].concat(ft);return function(We,Ze){var $t=[We].concat(Ze),z=a.$r($t);return Je(We,"$load",function(S,tt){var lt,K,I,Ue,be=this,Ne=Ye,Ce=Ye,se=Ye,ge=Ye,Q=Ye,L=Ye,N=Ye,re=Ye,O=Ye,ue=Ye;tt==null&&(tt=ee([],{}));try{if(tt=tt.$merge(),H(Ne=tt["$[]"]("timings"))&&Ne.$start("read"),H(tt["$key?"]("logger"))&&_e(Ce=tt["$[]"]("logger"),z("LoggerManager").$logger())&&z("LoggerManager")["$logger="](H(se=Ce)?se:z("NullLogger").$new()),v(ge=tt["$[]"]("attributes"))?ge=ee([],{}):V(Me("Hash"),ge)?ge=ge.$merge():H((I=Me("::","Java","skip_raise"))&&(K=Me(I,"JavaUtil","skip_raise"))&&(lt=Me(K,"Map","skip_raise"))?"constant":Ye)&&V(Me(Me(Me("Java"),"JavaUtil"),"Map"),ge)?ge=ge.$dup():V(Me("Array"),ge)?ge=je(ee([],{}),"tap",[],function(g){return g==null&&(g=Ye),je(ge,"each",[],function(m){var C,x,y=Ye,M=Ye,P=Ye;return m==null&&(m=Ye),x=m.$partition("="),C=Y(x),y=C[0]==null?Ye:C[0],M=C[1]==null?Ye:C[1],P=C[2]==null?Ye:C[2],C=[y,P],je(g,"[]=",C),C[C.length-1]})}):V(Me("String"),ge)?ge=je(ee([],{}),"tap",[],function(g){return g==null&&(g=Ye),je(ge.$gsub(z("SpaceDelimiterRx"),Ie("\\1",z("NULL"))).$gsub(z("EscapedSpaceRx"),"\\1").$split(z("NULL")),"each",[],function(m){var C,x,y=Ye,M=Ye,P=Ye;return m==null&&(m=Ye),x=m.$partition("="),C=Y(x),y=C[0]==null?Ye:C[0],M=C[1]==null?Ye:C[1],P=C[2]==null?Ye:C[2],C=[y,P],je(g,"[]=",C),C[C.length-1]})}):H(ge["$respond_to?"]("keys"))&&H(ge["$respond_to?"]("[]"))?ge=je(ee([],{}),"tap",[],function(g){return g==null&&(g=Ye),je(ge.$keys(),"each",[],function(m){var C;return m==null&&(m=Ye),C=[m,ge["$[]"](m)],je(g,"[]=",C),C[C.length-1]})}):be.$raise(Me("ArgumentError"),"illegal type for attributes option: "+ge.$class().$ancestors().$join(" < ")),V(Me("File"),S))tt["$[]="]("input_mtime",E(z("RUBY_ENGINE"),"jruby")?Me("Time").$at(S.$mtime().$to_i()):S.$mtime()),ge["$[]="]("docfile",Q=Me("File").$absolute_path(S.$path())),ge["$[]="]("docdir",Me("File").$dirname(Q)),ge["$[]="]("docname",z("Helpers").$basename(Q,(Ue=["docfilesuffix",z("Helpers").$extname(Q)],je(ge,"[]=",Ue),Ue[Ue.length-1]))),L=S.$read();else if(H(S["$respond_to?"]("read"))){try{S.$rewind()}catch(U){if(a.rescue(U,[z("StandardError")]))try{}finally{a.pop_exception()}else throw U}L=S.$read()}else V(Me("String"),S)?L=S:V(Me("Array"),S)?L=S.$drop(0):H(S)&&be.$raise(Me("ArgumentError"),"unsupported input type: "+S.$class());return H(Ne)&&(Ne.$record("read"),Ne.$start("parse")),tt["$[]="]("attributes",ge),N=E(tt["$[]"]("parse"),!1)?z("Document").$new(L,tt):z("Document").$new(L,tt).$parse(),H(Ne)&&Ne.$record("parse"),N}catch(U){if(a.rescue(U,[z("StandardError")])){re=U;try{try{O="asciidoctor: FAILED: "+(H(se=ge["$[]"]("docfile"))?se:"<stdin>")+": Failed to load AsciiDoc document",H(re["$respond_to?"]("exception"))?(ue=re.$exception(""+O+" - "+re.$message()),ue.$set_backtrace(re.$backtrace())):(ue=re.$class().$new(O,re),ue["$stack_trace="](re.$stack_trace()))}catch(g){if(a.rescue(g,[z("StandardError")]))try{ue=re}finally{a.pop_exception()}else throw g}return be.$raise(ue)}finally{a.pop_exception()}}else throw U}},-2),Je(We,"$load_file",function(S,tt){var lt=this;return tt==null&&(tt=ee([],{})),je(Me("File"),"open",[S,z("FILE_READ_MODE")],function K(I){var Ue=K.$$s==null?this:K.$$s;return I==null&&(I=Ye),Ue.$load(I,tt)},{$$s:lt})},-2)}(a.get_singleton_class(Ve),st)}(Te[0],Te)},Opal.modules["asciidoctor/convert"]=function(a){var ne=a.module,ee=a.hash2,H=a.eqeqeq,_e=a.truthy,v=a.eqeq,V=a.rb_ge,je=a.not,Y=a.rb_lt,Ie=a.neqeq,E=a.def,Je=a.send,Te=a.alias,Ye=[],Me=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(ft,Ve){var st=ne(ft,"Asciidoctor"),We=[st].concat(Ve);return function(Ze,$t){var z=[Ze].concat($t),et=a.$r(z);return E(Ze,"$convert",function(tt,lt){var K=this,I=Me,Ue=Me,be=Me,Ne=Me,Ce=Me,se=Me,ge=Me,Q=Me,L=Me,N=Me,re=Me,O=Me,ue=Me,U=Me,g=Me,u=Me,m=Me,C=Me,x=Me,y=Me,M=Me,P=Me,fe=Me,ie=Me;if(lt==null&&(lt=ee([],{})),(lt=lt.$merge()).$delete("parse"),I=lt.$delete("to_dir"),Ue=lt.$delete("mkdirs"),H(!0,be=Ne=lt.$delete("to_file"))||H(Me,be))_e(Ce=I)||H(Pe("File"),tt)&&(se=Pe("File").$absolute_path(tt.$path())),Ne=Me;else if(H(!1,be))Ne=Me;else{if(H("/dev/null",be))return K.$load(tt,lt);_e(ge=Ne["$respond_to?"]("write"))||lt["$[]="]("to_file",Ce=Ne)}return _e(lt["$key?"]("standalone"))||(_e(se)||_e(Ce)?lt["$[]="]("standalone",lt.$fetch("header_footer",!0)):_e(lt["$key?"]("header_footer"))&<["$[]="]("standalone",lt["$[]"]("header_footer"))),_e(se)?lt["$[]="]("to_dir",Q=Pe("File").$dirname(se)):_e(Ce)&&(_e(I)?_e(Ne)?lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ne,I))):lt["$[]="]("to_dir",Pe("File").$expand_path(I)):_e(Ne)&<["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ne)))),L=K.$load(tt,lt),_e(se)?(N=Pe("File").$join(Q,""+L.$attributes()["$[]"]("docname")+L.$outfilesuffix()),v(N,se)&&K.$raise(Pe("IOError"),"input file and output file cannot be the same: "+N)):_e(Ce)?(re=_e(lt["$key?"]("base_dir"))?Pe("File").$expand_path(lt["$[]"]("base_dir")):Pe("Dir").$pwd(),O=_e(V(L.$safe(),Pe(et("SafeMode"),"SAFE")))?re:Me,_e(I)?(Q=L.$normalize_system_path(I,re,O,ee(["target_name","recover"],{target_name:"to_dir",recover:!1})),_e(Ne)?(N=L.$normalize_system_path(Ne,Q,Me,ee(["target_name","recover"],{target_name:"to_dir",recover:!1})),Q=Pe("File").$dirname(N)):N=Pe("File").$join(Q,""+L.$attributes()["$[]"]("docname")+L.$outfilesuffix())):_e(Ne)&&(N=L.$normalize_system_path(Ne,re,O,ee(["target_name","recover"],{target_name:"to_dir",recover:!1})),Q=Pe("File").$dirname(N)),H(Pe("File"),tt)&&v(N,Pe("File").$absolute_path(tt.$path()))&&K.$raise(Pe("IOError"),"input file and output file cannot be the same: "+N),_e(Ue)?et("Helpers").$mkdir_p(Q):_e(Pe("File")["$directory?"](Q))||K.$raise(Pe("IOError"),"target directory does not exist: "+I+" (hint: set :mkdirs option)")):(N=Ne,Q=Me),_e(N)&&je(ge)?ue=L.$convert(ee(["outfile","outdir"],{outfile:N,outdir:Q})):ue=L.$convert(),_e(N)?(L.$write(ue,N),je(ge)&&_e(Y(L.$safe(),Pe(et("SafeMode"),"SECURE")))&&_e(L["$attr?"]("linkcss"))&&_e(L["$attr?"]("copycss"))&&_e(L["$basebackend?"]("html"))&&je(_e(be=U=L.$attr("stylesdir"))?et("Helpers")["$uriish?"](U):be)&&(_e(g=L.$attr("stylesheet"))&&(_e(et("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?u=!0:je(et("Helpers")["$uriish?"](g))&&(m=!0)),C=_e(be=x=L.$syntax_highlighter())?x["$write_stylesheet?"](L):be,(_e(u)||_e(m)||_e(C))&&(y=L.$normalize_system_path(U,Q,_e(V(L.$safe(),Pe(et("SafeMode"),"SAFE")))?Q:Me),_e(Ue)?et("Helpers").$mkdir_p(y):_e(Pe("File")["$directory?"](y))||K.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+y+" (hint: set :mkdirs option)"),_e(u)?et("Stylesheets").$instance().$write_primary_stylesheet(y):_e(m)&&(v(M=L.$attr("copycss"),"")||v(M,!0)?M=L.$normalize_system_path(g):M=L.$normalize_system_path(M.$to_s()),P=L.$normalize_system_path(g,y,_e(V(L.$safe(),Pe(et("SafeMode"),"SAFE")))?Q:Me),Ie(M,P)&&_e(fe=L.$read_asset(M,ee(["warn_on_failure","label"],{warn_on_failure:Pe("File")["$file?"](P)["$!"](),label:"stylesheet"})))&&(Ie(ie=Pe("File").$dirname(P),y)&&je(Pe("File")["$directory?"](ie))&&(_e(Ue)?et("Helpers").$mkdir_p(ie):K.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+ie+" (hint: set :mkdirs option)")),Pe("File").$write(P,fe,ee(["mode"],{mode:et("FILE_WRITE_MODE")})))),_e(C)&&x.$write_stylesheet(L,y))),L):ue},-2),E(Ze,"$convert_file",function(tt,lt){var K=this;return lt==null&&(lt=ee([],{})),Je(Pe("File"),"open",[tt,et("FILE_READ_MODE")],function I(Ue){var be=I.$$s==null?this:I.$$s;return Ue==null&&(Ue=Me),be.$convert(Ue,lt)},{$$s:K})},-2),Te(Ze,"render","convert"),Te(Ze,"render_file","convert_file")}(a.get_singleton_class(st),We)}(Ye[0],Ye)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var ne=a.module,ee=a.klass,H=a.slice,_e=a.send2,v=a.find_super,V=a.to_a,je=a.def,Y=a.hash2,Ie=a.send,E=a.truthy,Je=a.return_val,Te=a.eqeq,Ye=[],Me=a.nil,Pe=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(ft,Ve){var st=ne(ft,"Asciidoctor"),We=[st].concat(Ve),Ze=a.$r(We);return function($t,z,et){var S=ee($t,z,"HighlightJsAdapter"),tt=[S].concat(et),lt=a.$r(tt);return S.$register_for("highlightjs","highlight.js"),je(S,"$initialize",function K(I){var Ue,be,Ne=K.$$p||Me,Ce=this;return K.$$p=null,Ue=H(arguments),be=Ue,_e(Ce,v(Ce,"initialize",K,!1,!0),"initialize",V(be),Ne),Ce.name=Ce.pre_class="highlightjs"},-1),je(S,"$format",function K(I,Ue,be){K.$$p;var Ne=this;return K.$$p=null,_e(Ne,v(Ne,"format",K,!1,!0),"format",[I,Ue,be.$merge(Y(["transform"],{transform:Ie(Ne,"proc",[],function(se,ge){var Q,L=Me;return ge==null&&(ge=Me),Q=["class","language-"+(E(L=Ue)?L:"none")+" hljs"],Ie(ge,"[]=",Q),Q[Q.length-1]})}))],null)}),je(S,"$docinfo?",Je(!0)),je(S,"$docinfo",function(I,Ue,be){var Ne=Me;return Ne=Ue.$attr("highlightjsdir",""+be["$[]"]("cdn_base_url")+"/highlight.js/"+lt("HIGHLIGHT_JS_VERSION")),Te(I,"head")?'<link rel="stylesheet" href="'+Ne+"/styles/"+Ue.$attr("highlightjs-theme","github")+'.min.css"'+be["$[]"]("self_closing_tag_slash")+">":'<script src="'+Ne+`/highlight.min.js"><\/script>
|
|
417
|
+
`+(E(Ue["$attr?"]("highlightjs-languages"))?Ie(Ue.$attr("highlightjs-languages").$split(","),"map",[],function(se){return se==null&&(se=Me),'<script src="'+Ne+"/languages/"+se.$lstrip()+`.min.js"><\/script>
|
|
418
|
+
`}).$join():"")+`<script>
|
|
419
|
+
if (!hljs.initHighlighting.called) {
|
|
420
|
+
hljs.initHighlighting.called = true
|
|
421
|
+
;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
|
|
422
|
+
}
|
|
423
|
+
<\/script>`})}(Ze("SyntaxHighlighter"),Pe(Ze("SyntaxHighlighter"),"Base"),We)}(Ye[0],Ye)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var ne=a.module,ee=a.hash2,H=a.def,_e=a.return_val,v=a.defs,V=a.slice,je=a.send,Y=a.to_a,Ie=a.truthy,E=a.eqeqeq,Je=a.Class,Te=a.klass,Ye=a.class_variable_set,Me=a.class_variable_get,Pe=a.top,ft=[],Ve=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(We,Ze){var $t=ne(We,"Asciidoctor"),z=[$t].concat(Ze);return function(et,S){var tt=ne(et,"SyntaxHighlighter"),lt=[tt].concat(S),K=a.$r(lt);return tt.$attr_reader("name"),H(tt,"$initialize",function(Ue,be,Ne){var Ce=this;return Ne==null&&(Ne=ee([],{})),Ce.name=Ce.pre_class=Ue},-2),H(tt,"$docinfo?",_e(Ve)),H(tt,"$docinfo",function(Ue,be,Ne){var Ce=this;return Ce.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Ce.$class()+" must implement the #docinfo method since #docinfo? returns true")}),H(tt,"$highlight?",_e(Ve)),H(tt,"$highlight",function(Ue,be,Ne,Ce){var se=this;return se.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+se.$class()+" must implement the #highlight method since #highlight? returns true")}),H(tt,"$format",function(Ue,be,Ne){var Ce=this;return Ce.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Ce.$class()+" must implement the #format method")}),H(tt,"$write_stylesheet?",_e(Ve)),H(tt,"$write_stylesheet",function(Ue,be){var Ne=this;return Ne.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Ne.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),v(tt,"$included",function(Ue){return Ue.$extend(K("Config"))}),tt.$private_class_method("included"),function(I,Ue){var be=ne(I,"Config"),Ne=[be].concat(Ue),Ce=a.$r(Ne);return H(be,"$register_for",function(ge){var Q,L,N=this;return Q=V(arguments),L=Q,je(Ce("SyntaxHighlighter"),"register",[N].concat(Y(je(L,"map",[],function(O){return O==null&&(O=Ve),O.$to_s()}))))},-1)}(lt[0],lt),function(I,Ue){var be=ne(I,"Factory"),Ne=[be].concat(Ue),Ce=a.$r(Ne);return H(be,"$register",function(ge,Q){var L,N,re=this;return L=V(arguments,1),N=L,je(N,"each",[],function O(ue){var U,g=O.$$s==null?this:O.$$s;return ue==null&&(ue=Ve),U=[ue,ge],je(g.$registry(),"[]=",U),U[U.length-1]},{$$s:re})},-2),H(be,"$for",function(ge){var Q=this;return Q.$registry()["$[]"](ge)}),H(be,"$create",function(ge,Q,L){var N=this,re=Ve;return Q==null&&(Q="html5"),L==null&&(L=ee([],{})),Ie(re=N.$for(ge))?(E(Je,re)&&(re=re.$new(ge,Q,L)),Ie(re.$name())||N.$raise(st("NameError"),""+re.$class()+" must specify a value for `name'"),re):Ve},-2),be.$private(),H(be,"$registry",function(){var ge=this;return ge.$raise(st("NotImplementedError"),""+Ce("Factory")+" subclass "+ge.$class()+" must implement the #registry method")})}(lt[0],lt),function(I,Ue,be){var Ne=Te(I,Ue,"CustomFactory"),Ce=[Ne].concat(be),se=a.$r(Ce);return Ne.$include(se("Factory")),H(Ne,"$initialize",function(Q){var L=this,N=Ve;return Q==null&&(Q=Ve),L.registry=Ie(N=Q)?N:ee([],{})},-1),Ne.$private(),Ne.$attr_reader("registry")}(lt[0],null,lt),function(I,Ue){var be=ne(I,"DefaultFactory"),Ne=[be].concat(Ue),Ce=a.$r(Ne);return be.$include(Ce("Factory")),Ye(Ne[0],"@@registry",ee([],{})),be.$private(),H(be,"$registry",function(){return Me(Ne[0],"@@registry",!1)}),Ve}(lt[0],lt),function(I,Ue,be){var Ne=Te(I,Ue,"DefaultFactoryProxy"),Ce=[Ne].concat(be),se=a.$r(Ce);return Ne.$include(se("DefaultFactory")),Ve}(lt[0],K("CustomFactory"),lt),function(I,Ue,be){var Ne=Te(I,Ue,"Base"),Ce=[Ne].concat(be),se=a.$r(Ce),ge=Ne.$$prototype;return ge.pre_class=Ve,Ne.$include(se("SyntaxHighlighter")),H(Ne,"$format",function(L,N,re){var O=this,ue=Ve,U=Ve,g=Ve,u=Ve;return ue=Ie(re["$[]"]("nowrap"))?""+O.pre_class+" highlight nowrap":""+O.pre_class+" highlight",Ie(U=re["$[]"]("transform"))?(U["$[]"](g=ee(["class"],{class:ue}),u=Ie(N)?ee(["data-lang"],{"data-lang":N}):ee([],{})),Ie(N=u.$delete("data-lang"))&&u["$[]="]("data-lang",N),"<pre"+je(g,"map",[],function(C,x){return C==null&&(C=Ve),x==null&&(x=Ve)," "+C+'="'+x+'"'}).$join()+"><code"+je(u,"map",[],function(C,x){return C==null&&(C=Ve),x==null&&(x=Ve)," "+C+'="'+x+'"'}).$join()+">"+L.$content()+"</code></pre>"):'<pre class="'+ue+'"><code'+(Ie(N)?' data-lang="'+N+'"':"")+">"+L.$content()+"</code></pre>"})}(lt[0],null,lt),tt.$extend(K("DefaultFactory"))}(z[0],z)}(ft[0],ft),Pe.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),Ve},Opal.modules["asciidoctor/timings"]=function(a){var ne=a.module,ee=a.klass,H=a.hash2,_e=a.def,v=a.send,V=a.rb_minus,je=a.slice,Y=a.rb_plus,Ie=a.truthy,E=a.rb_gt,Je=a.gvars,Te=a.eqeq,Ye=a.const_set,Me=[],Pe=a.nil,ft=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(Ve,st){var We=ne(Ve,"Asciidoctor"),Ze=[We].concat(st);return function($t,z,et){var S=ee($t,z,"Timings"),tt,lt,K,I,Ue=[S].concat(et),be=a.$r(Ue),Ne=S.$$prototype;return Ne.timers=Ne.log=Pe,_e(S,"$initialize",function(){var se=this;return se.log=H([],{}),se.timers=H([],{})}),_e(S,"$start",function(se){var ge,Q=this;return ge=[se,Q.$now()],v(Q.timers,"[]=",ge),ge[ge.length-1]}),_e(S,"$record",function(se){var ge,Q=this;return ge=[se,V(Q.$now(),Q.timers.$delete(se))],v(Q.log,"[]=",ge),ge[ge.length-1]}),_e(S,"$time",function(se){var ge,Q,L=this,N=Pe;return ge=je(arguments),Q=ge,N=v(Q,"reduce",[0],function re(O,ue){var U=re.$$s==null?this:re.$$s,g=Pe;return U.log==null&&(U.log=Pe),O==null&&(O=Pe),ue==null&&(ue=Pe),Y(O,Ie(g=U.log["$[]"](ue))?g:0)},{$$s:L}),Ie(E(N,0))?N:Pe},-1),_e(S,"$read",function(){var se=this;return se.$time("read")}),_e(S,"$parse",function(){var se=this;return se.$time("parse")}),_e(S,"$read_parse",function(){var se=this;return se.$time("read","parse")}),_e(S,"$convert",function(){var se=this;return se.$time("convert")}),_e(S,"$read_parse_convert",function(){var se=this;return se.$time("read","parse","convert")}),_e(S,"$write",function(){var se=this;return se.$time("write")}),_e(S,"$total",function(){var se=this;return se.$time("read","parse","convert","write")}),_e(S,"$print_report",function(se,ge){var Q=this;return Je.stdout==null&&(Je.stdout=Pe),se==null&&(se=Je.stdout),ge==null&&(ge=Pe),Ie(ge)&&se.$puts("Input file: "+ge),se.$puts(" Time to read and parse source: "+Q.$sprintf("%05.5f",Q.$read_parse().$to_f())),se.$puts(" Time to convert document: "+Q.$sprintf("%05.5f",Q.$convert().$to_f())),se.$puts(" Total time (read, parse and convert): "+Q.$sprintf("%05.5f",Q.$read_parse_convert().$to_f()))},-1),S.$private(),Ie(ft("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&Te((tt=ft("::","Process","skip_raise"))&&(lt=tt,lt)&&(K=lt)&&((I=K.$clock_gettime)&&!I.$$stub||K["$respond_to_missing?"]("clock_gettime"))?"method":Pe,"method")?(Ye(Ue[0],"CLOCK_ID",ft(ft("Process"),"CLOCK_MONOTONIC")),_e(S,"$now",function(){return ft("Process").$clock_gettime(be("CLOCK_ID"))})):_e(S,"$now",function(){return ft("Time").$now()})}(Ze[0],null,Ze)}(Me[0],Me)},Opal.modules["asciidoctor/converter/html5"]=function(a){var ne=a.module,ee=a.klass,H=a.const_set,_e=a.hash2,v=a.regexp,V=a.eqeq,je=a.def,Y=a.send2,Ie=a.find_super,E=a.truthy,Je=a.send,Te=a.rb_gt,Ye=a.rb_plus,Me=a.not,Pe=a.neqeq,ft=a.rb_le,Ve=a.rb_lt,st=a.to_ary,We=a.rb_times,Ze=a.rb_minus,$t=a.gvars,z=a.return_val,et=a.alias,S=a.eqeqeq,tt=a.slice,lt=a.to_a,K=[],I=a.nil,Ue=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(be,Ne){var Ce=ne(be,"Asciidoctor"),se=[Ce].concat(Ne),ge=a.$r(se);return function(Q,L,N){var re=ee(Q,L,"Html5Converter"),O=[re].concat(N),ue=a.$r(O),U=re.$$prototype;return U.void_element_slash=U.xml_mode=U.refs=U.resolving_xref=I,re.$register_for("html5"),H(O[0],"QUOTE_TAGS",_e(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["“","”"],single:["‘","’"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}))["$default="](["",""]),H(O[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),H(O[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),H(O[0],"SvgPreambleRx",v(["^",ue("CC_ALL"),"*?(?=<svg[\\s>])"])),H(O[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),H(O[0],"DimensionAttributeRx",v([`\\s(?:width|height|style)=(["'])`,ue("CC_ANY"),"*?\\1"])),je(re,"$initialize",function(u,m){var C=this,x=I;return m==null&&(m=_e([],{})),C.backend=u,V(m["$[]"]("htmlsyntax"),"xml")?(x="xml",C.xml_mode=!0,C.void_element_slash="/"):(x="html",C.xml_mode=I,C.void_element_slash=""),C.$init_backend_traits(_e(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:x,outfilesuffix:".html",supports_templates:!0}))},-2),je(re,"$convert",function g(u,m,C){var x=g.$$p||I,y=this;switch(g.$$p=null,m==null&&(m=u.$node_name()),C==null&&(C=I),m){case"inline_quoted":return y.$convert_inline_quoted(u);case"paragraph":return y.$convert_paragraph(u);case"inline_anchor":return y.$convert_inline_anchor(u);case"section":return y.$convert_section(u);case"listing":return y.$convert_listing(u);case"literal":return y.$convert_literal(u);case"ulist":return y.$convert_ulist(u);case"olist":return y.$convert_olist(u);case"dlist":return y.$convert_dlist(u);case"admonition":return y.$convert_admonition(u);case"colist":return y.$convert_colist(u);case"embedded":return y.$convert_embedded(u);case"example":return y.$convert_example(u);case"floating_title":return y.$convert_floating_title(u);case"image":return y.$convert_image(u);case"inline_break":return y.$convert_inline_break(u);case"inline_button":return y.$convert_inline_button(u);case"inline_callout":return y.$convert_inline_callout(u);case"inline_footnote":return y.$convert_inline_footnote(u);case"inline_image":return y.$convert_inline_image(u);case"inline_indexterm":return y.$convert_inline_indexterm(u);case"inline_kbd":return y.$convert_inline_kbd(u);case"inline_menu":return y.$convert_inline_menu(u);case"open":return y.$convert_open(u);case"page_break":return y.$convert_page_break(u);case"preamble":return y.$convert_preamble(u);case"quote":return y.$convert_quote(u);case"sidebar":return y.$convert_sidebar(u);case"stem":return y.$convert_stem(u);case"table":return y.$convert_table(u);case"thematic_break":return y.$convert_thematic_break(u);case"verse":return y.$convert_verse(u);case"video":return y.$convert_video(u);case"document":return y.$convert_document(u);case"toc":return y.$convert_toc(u);case"pass":return y.$convert_pass(u);case"audio":return y.$convert_audio(u);default:return Y(y,Ie(y,"convert",g,!1,!0),"convert",[u,m,C],x)}},-2),je(re,"$convert_document",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I,nt=I,dt=I,at=I,pt=I,vt=I,bt=I,gt=I,Ct=I,St=I,Wt=I,Bt=I,er=I,Kt=I,jt=I,Yt=I;return C="<br"+(x=m.void_element_slash)+">",E((y=u.$attr("asset-uri-scheme","https"))["$empty?"]())||(y=""+y+":"),M=""+y+"//cdnjs.cloudflare.com/ajax/libs",P=u["$attr?"]("linkcss"),fe=E(u["$attr?"]("max-width"))?' style="max-width: '+u.$attr("max-width")+';"':"",ie=["<!DOCTYPE html>"],xe=E(u["$attr?"]("nolang"))?"":' lang="'+u.$attr("lang","en")+'"',ie["$<<"]("<html"+(E(m.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+xe+">"),ie["$<<"](`<head>
|
|
424
|
+
<meta charset="`+u.$attr("encoding","UTF-8")+'"'+x+`>
|
|
425
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge"`+x+`>
|
|
426
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"`+x+`>
|
|
427
|
+
<meta name="generator" content="Asciidoctor `+u.$attr("asciidoctor-version")+'"'+x+">"),E(u["$attr?"]("app-name"))&&ie["$<<"]('<meta name="application-name" content="'+u.$attr("app-name")+'"'+x+">"),E(u["$attr?"]("description"))&&ie["$<<"]('<meta name="description" content="'+u.$attr("description")+'"'+x+">"),E(u["$attr?"]("keywords"))&&ie["$<<"]('<meta name="keywords" content="'+u.$attr("keywords")+'"'+x+">"),E(u["$attr?"]("authors"))&&ie["$<<"]('<meta name="author" content="'+(E((Le=u.$sub_replacements(u.$attr("authors")))["$include?"]("<"))?Le.$gsub(ue("XmlSanitizeRx"),""):Le)+'"'+x+">"),E(u["$attr?"]("copyright"))&&ie["$<<"]('<meta name="copyright" content="'+u.$attr("copyright")+'"'+x+">"),E(u["$attr?"]("favicon"))&&(E((Ke=u.$attr("favicon"))["$empty?"]())?(Ke="favicon.ico",nt="image/x-icon"):E(dt=ue("Helpers").$extname(Ke,I))?nt=V(dt,".ico")?"image/x-icon":"image/"+dt.$slice(1,dt.$length()):nt="image/x-icon",ie["$<<"]('<link rel="icon" type="'+nt+'" href="'+Ke+'"'+x+">")),ie["$<<"]("<title>"+u.$doctitle(_e(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),E(ue("DEFAULT_STYLESHEET_KEYS")["$include?"](u.$attr("stylesheet")))?(E(at=u.$attr("webfonts"))&&ie["$<<"]('<link rel="stylesheet" href="'+y+"//fonts.googleapis.com/css?family="+(E(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+x+">"),E(P)?ie["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(ue("DEFAULT_STYLESHEET_NAME"),u.$attr("stylesdir",""),!1)+'"'+x+">"):ie["$<<"](`<style>
|
|
428
|
+
`+ue("Stylesheets").$instance().$primary_stylesheet_data()+`
|
|
429
|
+
</style>`)):E(u["$attr?"]("stylesheet"))&&(E(P)?ie["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(u.$attr("stylesheet"),u.$attr("stylesdir",""))+'"'+x+">"):ie["$<<"](`<style>
|
|
430
|
+
`+u.$read_contents(u.$attr("stylesheet"),_e(["start","warn_on_failure","label"],{start:u.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
|
|
431
|
+
</style>`)),E(u["$attr?"]("icons","font"))&&(E(u["$attr?"]("iconfont-remote"))?ie["$<<"]('<link rel="stylesheet" href="'+u.$attr("iconfont-cdn",""+M+"/font-awesome/"+ue("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+x+">"):(pt=""+u.$attr("iconfont-name","font-awesome")+".css",ie["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(pt,u.$attr("stylesdir",""),!1)+'"'+x+">"))),E(vt=u.$syntax_highlighter())&&ie["$<<"](bt=ie.$size()),E((gt=u.$docinfo())["$empty?"]())||ie["$<<"](gt),ie["$<<"]("</head>"),Ct=E(u.$id())?' id="'+u.$id()+'"':"",E(St=u["$sections?"]())&&E(u["$attr?"]("toc-class"))&&E(u["$attr?"]("toc"))&&E(u["$attr?"]("toc-placement","auto"))?Wt=[u.$doctype(),u.$attr("toc-class"),"toc-"+u.$attr("toc-position","header")]:Wt=[u.$doctype()],E(u["$role?"]())&&Wt["$<<"](u.$role()),ie["$<<"]("<body"+Ct+' class="'+Wt.$join(" ")+'">'),E((gt=u.$docinfo("header"))["$empty?"]())||ie["$<<"](gt),E(u.$noheader())||(ie["$<<"]('<div id="header"'+fe+">"),V(u.$doctype(),"manpage")?(ie["$<<"]("<h1>"+u.$doctitle()+" Manual Page</h1>"),E(St)&&E(u["$attr?"]("toc"))&&E(u["$attr?"]("toc-placement","auto"))&&ie["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
|
|
432
|
+
<div id="toctitle">`+u.$attr("toc-title")+`</div>
|
|
433
|
+
`+u.$converter().$convert(u,"outline")+`
|
|
434
|
+
</div>`),E(u["$attr?"]("manpurpose"))&&ie["$<<"](m.$generate_manname_section(u))):(E(u["$header?"]())&&(E(u.$notitle())||ie["$<<"]("<h1>"+u.$header().$title()+"</h1>"),Bt=[],er=1,Je(u.$authors(),"each",[],function(nr){return nr==null&&(nr=I),Bt["$<<"]('<span id="author'+(E(Te(er,1))?er:"")+'" class="author">'+u.$sub_replacements(nr.$name())+"</span>"+C),E(nr.$email())&&Bt["$<<"]('<span id="email'+(E(Te(er,1))?er:"")+'" class="email">'+u.$sub_macros(nr.$email())+"</span>"+C),er=Ye(er,1)}),E(u["$attr?"]("revnumber"))&&Bt["$<<"]('<span id="revnumber">'+(E(Kt=u.$attr("version-label"))?Kt:"").$downcase()+" "+u.$attr("revnumber")+(E(u["$attr?"]("revdate"))?",":"")+"</span>"),E(u["$attr?"]("revdate"))&&Bt["$<<"]('<span id="revdate">'+u.$attr("revdate")+"</span>"),E(u["$attr?"]("revremark"))&&Bt["$<<"](""+C+'<span id="revremark">'+u.$attr("revremark")+"</span>"),E(Bt["$empty?"]())||(ie["$<<"]('<div class="details">'),ie.$concat(Bt),ie["$<<"]("</div>"))),E(St)&&E(u["$attr?"]("toc"))&&E(u["$attr?"]("toc-placement","auto"))&&ie["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
|
|
435
|
+
<div id="toctitle">`+u.$attr("toc-title")+`</div>
|
|
436
|
+
`+u.$converter().$convert(u,"outline")+`
|
|
437
|
+
</div>`)),ie["$<<"]("</div>")),ie["$<<"]('<div id="content"'+fe+`>
|
|
438
|
+
`+u.$content()+`
|
|
439
|
+
</div>`),E(u["$footnotes?"]())&&Me(u["$attr?"]("nofootnotes"))&&(ie["$<<"]('<div id="footnotes"'+fe+`>
|
|
440
|
+
<hr`+x+">"),Je(u.$footnotes(),"each",[],function(nr){return nr==null&&(nr=I),ie["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
|
|
441
|
+
<a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
|
|
442
|
+
</div>`)}),ie["$<<"]("</div>")),E(u.$nofooter())||(ie["$<<"]('<div id="footer"'+fe+">"),ie["$<<"]('<div id="footer-text">'),E(u["$attr?"]("revnumber"))&&ie["$<<"](""+u.$attr("version-label")+" "+u.$attr("revnumber")+C),E(u["$attr?"]("last-update-label"))&&Me(u["$attr?"]("reproducible"))&&ie["$<<"](""+u.$attr("last-update-label")+" "+u.$attr("docdatetime")),ie["$<<"]("</div>"),ie["$<<"]("</div>")),E(vt)&&(E(vt["$docinfo?"]("head"))?ie["$[]="](bt,vt.$docinfo("head",u,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:M,linkcss:P,self_closing_tag_slash:x}))):ie.$delete_at(bt),E(vt["$docinfo?"]("footer"))&&ie["$<<"](vt.$docinfo("footer",u,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:M,linkcss:P,self_closing_tag_slash:x})))),E(u["$attr?"]("stem"))&&(jt=u.$attr("eqnums","none"),E(jt["$empty?"]())&&(jt="AMS"),Yt=' equationNumbers: { autoNumber: "'+jt+'" } ',ie["$<<"](`<script type="text/x-mathjax-config">
|
|
443
|
+
MathJax.Hub.Config({
|
|
444
|
+
messageStyle: "none",
|
|
445
|
+
tex2jax: {
|
|
446
|
+
inlineMath: [`+ue("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
447
|
+
displayMath: [`+ue("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
448
|
+
ignoreClass: "nostem|nolatexmath"
|
|
449
|
+
},
|
|
450
|
+
asciimath2jax: {
|
|
451
|
+
delimiters: [`+ue("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
|
|
452
|
+
ignoreClass: "nostem|noasciimath"
|
|
453
|
+
},
|
|
454
|
+
TeX: {`+Yt+`}
|
|
455
|
+
})
|
|
456
|
+
MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
|
|
457
|
+
MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
|
|
458
|
+
if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
|
|
459
|
+
data.math.root.display = "block"
|
|
460
|
+
}
|
|
461
|
+
return data
|
|
462
|
+
})
|
|
463
|
+
})
|
|
464
|
+
<\/script>
|
|
465
|
+
<script src="`+M+"/mathjax/"+ue("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),E((gt=u.$docinfo("footer"))["$empty?"]())||ie["$<<"](gt),ie["$<<"]("</body>"),ie["$<<"]("</html>"),ie.$join(ue("LF"))}),je(re,"$convert_embedded",function(u){var m=this,C=I,x=I,y=I;return C=[],V(u.$doctype(),"manpage")?(E(u.$notitle())||(x=E(u.$id())?' id="'+u.$id()+'"':"",C["$<<"]("<h1"+x+">"+u.$doctitle()+" Manual Page</h1>")),E(u["$attr?"]("manpurpose"))&&C["$<<"](m.$generate_manname_section(u))):E(u["$header?"]())&&Me(u.$notitle())&&(x=E(u.$id())?' id="'+u.$id()+'"':"",C["$<<"]("<h1"+x+">"+u.$header().$title()+"</h1>")),E(u["$sections?"]())&&E(u["$attr?"]("toc"))&&Pe(y=u.$attr("toc-placement"),"macro")&&Pe(y,"preamble")&&C["$<<"](`<div id="toc" class="toc">
|
|
466
|
+
<div id="toctitle">`+u.$attr("toc-title")+`</div>
|
|
467
|
+
`+u.$converter().$convert(u,"outline")+`
|
|
468
|
+
</div>`),C["$<<"](u.$content()),E(u["$footnotes?"]())&&Me(u["$attr?"]("nofootnotes"))&&(C["$<<"](`<div id="footnotes">
|
|
469
|
+
<hr`+m.void_element_slash+">"),Je(u.$footnotes(),"each",[],function(P){return P==null&&(P=I),C["$<<"]('<div class="footnote" id="_footnotedef_'+P.$index()+`">
|
|
470
|
+
<a href="#_footnoteref_`+P.$index()+'">'+P.$index()+"</a>. "+P.$text()+`
|
|
471
|
+
</div>`)}),C["$<<"]("</div>")),C.$join(ue("LF"))}),je(re,"$convert_outline",function(u,m){var C=this,x=I,y=I,M=I,P=I,fe=I,ie=I;return m==null&&(m=_e([],{})),E(u["$sections?"]())?(x=E(y=m["$[]"]("sectnumlevels"))?y:(E(M=u.$document().$attributes()["$[]"]("sectnumlevels"))?M:3).$to_i(),P=E(y=m["$[]"]("toclevels"))?y:(E(M=u.$document().$attributes()["$[]"]("toclevels"))?M:2).$to_i(),fe=u.$sections(),ie=['<ul class="sectlevel'+fe["$[]"](0).$level()+'">'],Je(fe,"each",[],function xe(Le){var Ke=xe.$$s==null?this:xe.$$s,nt=I,dt=I,at=I,pt=I;if(Le==null&&(Le=I),nt=Le.$level(),E(Le.$caption()))dt=Le.$captioned_title();else if(E(Le.$numbered())&&E(ft(nt,x)))if(E(Ve(nt,2))&&V(u.$document().$doctype(),"book"))switch(Le.$sectname()){case"chapter":dt=(E(at=u.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Le.$sectnum()+" "+Le.$title();break;case"part":dt=(E(at=u.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Le.$sectnum(I,":")+" "+Le.$title();break;default:dt=""+Le.$sectnum()+" "+Le.$title()}else dt=""+Le.$sectnum()+" "+Le.$title();else dt=Le.$title();return E(dt["$include?"]("<a"))&&(dt=dt.$gsub(ue("DropAnchorRx"),"")),E(Ve(nt,P))&&E(pt=Ke.$convert_outline(Le,_e(["toclevels","sectnumlevels"],{toclevels:P,sectnumlevels:x})))?(ie["$<<"]('<li><a href="#'+Le.$id()+'">'+dt+"</a>"),ie["$<<"](pt),ie["$<<"]("</li>")):ie["$<<"]('<li><a href="#'+Le.$id()+'">'+dt+"</a></li>")},{$$s:C}),ie["$<<"]("</ul>"),ie.$join(ue("LF"))):I},-2),je(re,"$convert_section",function(u){var m=I,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I;if(m=u.$document().$attributes(),C=u.$level(),E(u.$caption()))x=u.$captioned_title();else if(E(u.$numbered())&&E(ft(C,(E(y=m["$[]"]("sectnumlevels"))?y:3).$to_i())))if(E(Ve(C,2))&&V(u.$document().$doctype(),"book"))switch(u.$sectname()){case"chapter":x=(E(M=m["$[]"]("chapter-signifier"))?""+M+" ":"")+u.$sectnum()+" "+u.$title();break;case"part":x=(E(M=m["$[]"]("part-signifier"))?""+M+" ":"")+u.$sectnum(I,":")+" "+u.$title();break;default:x=""+u.$sectnum()+" "+u.$title()}else x=""+u.$sectnum()+" "+u.$title();else x=u.$title();return E(u.$id())?(P=' id="'+(fe=u.$id())+'"',E(m["$[]"]("sectlinks"))&&(x='<a class="link" href="#'+fe+'">'+x+"</a>"),E(m["$[]"]("sectanchors"))&&(V(m["$[]"]("sectanchors"),"after")?x=""+x+'<a class="anchor" href="#'+fe+'"></a>':x='<a class="anchor" href="#'+fe+'"></a>'+x)):P="",V(C,0)?"<h1"+P+' class="sect0'+(E(ie=u.$role())?" "+ie:"")+'">'+x+`</h1>
|
|
472
|
+
`+u.$content():'<div class="sect'+C+(E(ie=u.$role())?" "+ie:"")+`">
|
|
473
|
+
<h`+Ye(C,1)+P+">"+x+"</h"+Ye(C,1)+`>
|
|
474
|
+
`+(V(C,1)?`<div class="sectionbody">
|
|
475
|
+
`+u.$content()+`
|
|
476
|
+
</div>`:u.$content())+`
|
|
477
|
+
</div>`}),je(re,"$convert_admonition",function(u){var m=this,C=I,x=I,y=I,M=I,P=I;return C=E(u.$id())?' id="'+u.$id()+'"':"",x=u.$attr("name"),y=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
478
|
+
`:"",E(u.$document()["$attr?"]("icons"))?E(u.$document()["$attr?"]("icons","font"))&&Me(u["$attr?"]("icon"))?M='<i class="fa icon-'+x+'" title="'+u.$attr("textlabel")+'"></i>':M='<img src="'+u.$icon_uri(x)+'" alt="'+u.$attr("textlabel")+'"'+m.void_element_slash+">":M='<div class="title">'+u.$attr("textlabel")+"</div>","<div"+C+' class="admonitionblock '+x+(E(P=u.$role())?" "+P:"")+`">
|
|
479
|
+
<table>
|
|
480
|
+
<tr>
|
|
481
|
+
<td class="icon">
|
|
482
|
+
`+M+`
|
|
483
|
+
</td>
|
|
484
|
+
<td class="content">
|
|
485
|
+
`+y+u.$content()+`
|
|
486
|
+
</td>
|
|
487
|
+
</tr>
|
|
488
|
+
</table>
|
|
489
|
+
</div>`}),je(re,"$convert_audio",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I;return C=m.xml_mode,x=E(u.$id())?' id="'+u.$id()+'"':"",y=["audioblock",u.$role()].$compact(),M=' class="'+y.$join(" ")+'"',P=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
490
|
+
`:"",fe=u.$attr("start"),ie=u.$attr("end"),xe=E(fe)||E(ie)?"#t="+(E(Le=fe)?Le:"")+(E(ie)?","+ie:""):"","<div"+x+M+`>
|
|
491
|
+
`+P+`<div class="content">
|
|
492
|
+
<audio src="`+u.$media_uri(u.$attr("target"))+xe+'"'+(E(u["$option?"]("autoplay"))?m.$append_boolean_attribute("autoplay",C):"")+(E(u["$option?"]("nocontrols"))?"":m.$append_boolean_attribute("controls",C))+(E(u["$option?"]("loop"))?m.$append_boolean_attribute("loop",C):"")+`>
|
|
493
|
+
Your browser does not support the audio tag.
|
|
494
|
+
</audio>
|
|
495
|
+
</div>
|
|
496
|
+
</div>`}),je(re,"$convert_colist",function(u){var m,C=this,x=I,y=I,M=I,P=I,fe=I,ie=I;return x=[],y=E(u.$id())?' id="'+u.$id()+'"':"",M=["colist",u.$style(),u.$role()].$compact(),P=' class="'+M.$join(" ")+'"',x["$<<"]("<div"+y+P+">"),E(u["$title?"]())&&x["$<<"]('<div class="title">'+u.$title()+"</div>"),E(u.$document()["$attr?"]("icons"))?(x["$<<"]("<table>"),m=[u.$document()["$attr?"]("icons","font"),0],fe=m[0],ie=m[1],Je(u.$items(),"each",[],function xe(Le){var Ke=xe.$$s==null?this:xe.$$s,nt=I;return Ke.void_element_slash==null&&(Ke.void_element_slash=I),Le==null&&(Le=I),ie=Ye(ie,1),E(fe)?nt='<i class="conum" data-value="'+ie+'"></i><b>'+ie+"</b>":nt='<img src="'+u.$icon_uri("callouts/"+ie)+'" alt="'+ie+'"'+Ke.void_element_slash+">",x["$<<"](`<tr>
|
|
497
|
+
<td>`+nt+`</td>
|
|
498
|
+
<td>`+Le.$text()+(E(Le["$blocks?"]())?Ye(ue("LF"),Le.$content()):"")+`</td>
|
|
499
|
+
</tr>`)},{$$s:C}),x["$<<"]("</table>")):(x["$<<"]("<ol>"),Je(u.$items(),"each",[],function(Le){return Le==null&&(Le=I),x["$<<"](`<li>
|
|
500
|
+
<p>`+Le.$text()+"</p>"+(E(Le["$blocks?"]())?Ye(ue("LF"),Le.$content()):"")+`
|
|
501
|
+
</li>`)}),x["$<<"]("</ol>")),x["$<<"]("</div>"),x.$join(ue("LF"))}),je(re,"$convert_dlist",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I;switch(C=[],x=E(u.$id())?' id="'+u.$id()+'"':"",u.$style()){case"qanda":y=["qlist","qanda",u.$role()];break;case"horizontal":y=["hdlist",u.$role()];break;default:y=["dlist",u.$style(),u.$role()]}switch(M=' class="'+y.$compact().$join(" ")+'"',C["$<<"]("<div"+x+M+">"),E(u["$title?"]())&&C["$<<"]('<div class="title">'+u.$title()+"</div>"),u.$style()){case"qanda":C["$<<"]("<ol>"),Je(u.$items(),"each",[],function(Le,Ke){return Le==null&&(Le=I),Ke==null&&(Ke=I),C["$<<"]("<li>"),Je(Le,"each",[],function(dt){return dt==null&&(dt=I),C["$<<"]("<p><em>"+dt.$text()+"</em></p>")}),E(Ke)&&(E(Ke["$text?"]())&&C["$<<"]("<p>"+Ke.$text()+"</p>"),E(Ke["$blocks?"]())&&C["$<<"](Ke.$content())),C["$<<"]("</li>")}),C["$<<"]("</ol>");break;case"horizontal":P=m.void_element_slash,C["$<<"]("<table>"),(E(u["$attr?"]("labelwidth"))||E(u["$attr?"]("itemwidth")))&&(C["$<<"]("<colgroup>"),fe=E(u["$attr?"]("labelwidth"))?' style="width: '+u.$attr("labelwidth").$chomp("%")+'%;"':"",C["$<<"]("<col"+fe+P+">"),fe=E(u["$attr?"]("itemwidth"))?' style="width: '+u.$attr("itemwidth").$chomp("%")+'%;"':"",C["$<<"]("<col"+fe+P+">"),C["$<<"]("</colgroup>")),Je(u.$items(),"each",[],function(Le,Ke){var nt=I;return Le==null&&(Le=I),Ke==null&&(Ke=I),C["$<<"]("<tr>"),C["$<<"]('<td class="hdlist1'+(E(u["$option?"]("strong"))?" strong":"")+'">'),nt=!0,Je(Le,"each",[],function(at){return at==null&&(at=I),E(nt)||C["$<<"]("<br"+P+">"),C["$<<"](at.$text()),nt=I}),C["$<<"]("</td>"),C["$<<"]('<td class="hdlist2">'),E(Ke)&&(E(Ke["$text?"]())&&C["$<<"]("<p>"+Ke.$text()+"</p>"),E(Ke["$blocks?"]())&&C["$<<"](Ke.$content())),C["$<<"]("</td>"),C["$<<"]("</tr>")}),C["$<<"]("</table>");break;default:C["$<<"]("<dl>"),ie=E(u.$style())?"":' class="hdlist1"',Je(u.$items(),"each",[],function(Le,Ke){return Le==null&&(Le=I),Ke==null&&(Ke=I),Je(Le,"each",[],function(dt){return dt==null&&(dt=I),C["$<<"]("<dt"+ie+">"+dt.$text()+"</dt>")}),E(Ke)?(C["$<<"]("<dd>"),E(Ke["$text?"]())&&C["$<<"]("<p>"+Ke.$text()+"</p>"),E(Ke["$blocks?"]())&&C["$<<"](Ke.$content()),C["$<<"]("</dd>")):I}),C["$<<"]("</dl>")}return C["$<<"]("</div>"),C.$join(ue("LF"))}),je(re,"$convert_example",function(u){var m=I,C=I,x=I,y=I,M=I;return m=E(u.$id())?' id="'+u.$id()+'"':"",E(u["$option?"]("collapsible"))?(C=E(u.$role())?' class="'+u.$role()+'"':"",x=E(u["$title?"]())?'<summary class="title">'+u.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+m+C+(E(u["$option?"]("open"))?" open":"")+`>
|
|
502
|
+
`+x+`
|
|
503
|
+
<div class="content">
|
|
504
|
+
`+u.$content()+`
|
|
505
|
+
</div>
|
|
506
|
+
</details>`):(y=E(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
|
|
507
|
+
`:"","<div"+m+' class="exampleblock'+(E(M=u.$role())?" "+M:"")+`">
|
|
508
|
+
`+y+`<div class="content">
|
|
509
|
+
`+u.$content()+`
|
|
510
|
+
</div>
|
|
511
|
+
</div>`)}),je(re,"$convert_floating_title",function(u){var m=I,C=I,x=I;return m="h"+Ye(u.$level(),1),C=E(u.$id())?' id="'+u.$id()+'"':"",x=[u.$style(),u.$role()].$compact(),"<"+m+C+' class="'+x.$join(" ")+'">'+u.$title()+"</"+m+">"}),je(re,"$convert_image",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I;return C=u.$attr("target"),x=E(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",y=E(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",(E(u["$attr?"]("format","svg"))||E(C["$include?"](".svg")))&&E(Ve(u.$document().$safe(),Ue(ue("SafeMode"),"SECURE")))?E(u["$option?"]("inline"))?M=E(P=m.$read_svg_contents(u,C))?P:'<span class="alt">'+u.$alt()+"</span>":E(u["$option?"]("interactive"))?(fe=E(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+x+y+m.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",M='<object type="image/svg+xml" data="'+u.$image_uri(C)+'"'+x+y+">"+fe+"</object>"):M='<img src="'+u.$image_uri(C)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+x+y+m.void_element_slash+">":M='<img src="'+u.$image_uri(C)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+x+y+m.void_element_slash+">",E(u["$attr?"]("link"))&&(M='<a class="image" href="'+u.$attr("link")+'"'+m.$append_link_constraint_attrs(u).$join()+">"+M+"</a>"),ie=E(u.$id())?' id="'+u.$id()+'"':"",xe=["imageblock"],E(u["$attr?"]("float"))&&xe["$<<"](u.$attr("float")),E(u["$attr?"]("align"))&&xe["$<<"]("text-"+u.$attr("align")),E(u.$role())&&xe["$<<"](u.$role()),Le=' class="'+xe.$join(" ")+'"',Ke=E(u["$title?"]())?`
|
|
512
|
+
<div class="title">`+u.$captioned_title()+"</div>":"","<div"+ie+Le+`>
|
|
513
|
+
<div class="content">
|
|
514
|
+
`+M+`
|
|
515
|
+
</div>`+Ke+`
|
|
516
|
+
</div>`}),je(re,"$convert_listing",function(u){var m=I,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I;return m=E(C=u["$option?"]("nowrap"))?C:u.$document()["$attr?"]("prewrap")["$!"](),V(u.$style(),"source")?(x=u.$attr("language"),E(y=u.$document().$syntax_highlighter())?(M=E(y["$highlight?"]())?_e(["css_mode","style"],{css_mode:(E(C=(P=u.$document().$attributes())["$[]"](""+y.$name()+"-css"))?C:"class").$to_sym(),style:P["$[]"](""+y.$name()+"-style")}):_e([],{}),M["$[]="]("nowrap",m)):(fe='<pre class="highlight'+(E(m)?" nowrap":"")+'"><code'+(E(x)?' class="language-'+x+'" data-lang="'+x+'"':"")+">",ie="</code></pre>")):(fe="<pre"+(E(m)?' class="nowrap"':"")+">",ie="</pre>"),xe=E(u.$id())?' id="'+u.$id()+'"':"",Le=E(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
|
|
517
|
+
`:"","<div"+xe+' class="listingblock'+(E(Ke=u.$role())?" "+Ke:"")+`">
|
|
518
|
+
`+Le+`<div class="content">
|
|
519
|
+
`+(E(y)?y.$format(u,x,M):Ye(Ye(fe,u.$content()),ie))+`
|
|
520
|
+
</div>
|
|
521
|
+
</div>`}),je(re,"$convert_literal",function(u){var m=I,C=I,x=I,y=I,M=I;return m=E(u.$id())?' id="'+u.$id()+'"':"",C=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
522
|
+
`:"",x=E(y=u.$document()["$attr?"]("prewrap")["$!"]())?y:u["$option?"]("nowrap"),"<div"+m+' class="literalblock'+(E(M=u.$role())?" "+M:"")+`">
|
|
523
|
+
`+C+`<div class="content">
|
|
524
|
+
<pre`+(E(x)?' class="nowrap"':"")+">"+u.$content()+`</pre>
|
|
525
|
+
</div>
|
|
526
|
+
</div>`}),je(re,"$convert_stem",function(u){var m,C,x=this,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I;return y=E(u.$id())?' id="'+u.$id()+'"':"",M=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
527
|
+
`:"",C=ue("BLOCK_MATH_DELIMITERS")["$[]"](P=u.$style().$to_sym()),m=st(C),fe=m[0]==null?I:m[0],ie=m[1]==null?I:m[1],E(xe=u.$content())?(V(P,"asciimath")&&E(xe["$include?"](ue("LF")))&&(Le=""+ue("LF")+"<br"+x.void_element_slash+">",xe=Je(xe,"gsub",[ue("StemBreakRx")],function(){var dt;return""+ie+We(Le,Ze(((dt=$t["~"])===I?I:dt["$[]"](0)).$count(ue("LF")),1))+ue("LF")+fe})),E(xe["$start_with?"](fe))&&E(xe["$end_with?"](ie))||(xe=""+fe+xe+ie)):xe="","<div"+y+' class="stemblock'+(E(Ke=u.$role())?" "+Ke:"")+`">
|
|
528
|
+
`+M+`<div class="content">
|
|
529
|
+
`+xe+`
|
|
530
|
+
</div>
|
|
531
|
+
</div>`}),je(re,"$convert_olist",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I;return C=[],x=E(u.$id())?' id="'+u.$id()+'"':"",y=["olist",u.$style(),u.$role()].$compact(),M=' class="'+y.$join(" ")+'"',C["$<<"]("<div"+x+M+">"),E(u["$title?"]())&&C["$<<"]('<div class="title">'+u.$title()+"</div>"),P=E(fe=u.$list_marker_keyword())?' type="'+fe+'"':"",ie=E(u["$attr?"]("start"))?' start="'+u.$attr("start")+'"':"",xe=E(u["$option?"]("reversed"))?m.$append_boolean_attribute("reversed",m.xml_mode):"",C["$<<"]('<ol class="'+u.$style()+'"'+P+ie+xe+">"),Je(u.$items(),"each",[],function(Ke){return Ke==null&&(Ke=I),E(Ke.$id())?C["$<<"]('<li id="'+Ke.$id()+'"'+(E(Ke.$role())?' class="'+Ke.$role()+'"':"")+">"):E(Ke.$role())?C["$<<"]('<li class="'+Ke.$role()+'">'):C["$<<"]("<li>"),C["$<<"]("<p>"+Ke.$text()+"</p>"),E(Ke["$blocks?"]())&&C["$<<"](Ke.$content()),C["$<<"]("</li>")}),C["$<<"]("</ol>"),C["$<<"]("</div>"),C.$join(ue("LF"))}),je(re,"$convert_open",function(u){var m=this,C=I,x=I,y=I,M=I;return V(C=u.$style(),"abstract")?V(u.$parent(),u.$document())&&V(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."),""):(x=E(u.$id())?' id="'+u.$id()+'"':"",y=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
532
|
+
`:"","<div"+x+' class="quoteblock abstract'+(E(M=u.$role())?" "+M:"")+`">
|
|
533
|
+
`+y+`<blockquote>
|
|
534
|
+
`+u.$content()+`
|
|
535
|
+
</blockquote>
|
|
536
|
+
</div>`):V(C,"partintro")&&(E(Te(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."),""):(x=E(u.$id())?' id="'+u.$id()+'"':"",y=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
537
|
+
`:"","<div"+x+' class="openblock'+(E(C)&&Pe(C,"open")?" "+C:"")+(E(M=u.$role())?" "+M:"")+`">
|
|
538
|
+
`+y+`<div class="content">
|
|
539
|
+
`+u.$content()+`
|
|
540
|
+
</div>
|
|
541
|
+
</div>`)}),je(re,"$convert_page_break",z('<div style="page-break-after: always;"></div>')),je(re,"$convert_paragraph",function(u){var m=I;return E(u.$role())?m=(E(u.$id())?' id="'+u.$id()+'"':"")+' class="paragraph '+u.$role()+'"':E(u.$id())?m=' id="'+u.$id()+'" class="paragraph"':m=' class="paragraph"',E(u["$title?"]())?"<div"+m+`>
|
|
542
|
+
<div class="title">`+u.$title()+`</div>
|
|
543
|
+
<p>`+u.$content()+`</p>
|
|
544
|
+
</div>`:"<div"+m+`>
|
|
545
|
+
<p>`+u.$content()+`</p>
|
|
546
|
+
</div>`}),et(re,"convert_pass","content_only"),je(re,"$convert_preamble",function(u){var m=I,C=I;return E((m=u.$document())["$attr?"]("toc-placement","preamble"))&&E(m["$sections?"]())&&E(m["$attr?"]("toc"))?C=`
|
|
547
|
+
<div id="toc" class="`+m.$attr("toc-class","toc")+`">
|
|
548
|
+
<div id="toctitle">`+m.$attr("toc-title")+`</div>
|
|
549
|
+
`+m.$converter().$convert(m,"outline")+`
|
|
550
|
+
</div>`:C="",`<div id="preamble">
|
|
551
|
+
<div class="sectionbody">
|
|
552
|
+
`+u.$content()+`
|
|
553
|
+
</div>`+C+`
|
|
554
|
+
</div>`}),je(re,"$convert_quote",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I;return C=E(u.$id())?' id="'+u.$id()+'"':"",x=["quoteblock",u.$role()].$compact(),y=' class="'+x.$join(" ")+'"',M=E(u["$title?"]())?`
|
|
555
|
+
<div class="title">`+u.$title()+"</div>":"",P=E(u["$attr?"]("attribution"))?u.$attr("attribution"):I,fe=E(u["$attr?"]("citetitle"))?u.$attr("citetitle"):I,E(P)||E(fe)?(ie=E(fe)?"<cite>"+fe+"</cite>":"",xe=E(P)?"— "+P+(E(fe)?"<br"+m.void_element_slash+`>
|
|
556
|
+
`:""):"",Le=`
|
|
557
|
+
<div class="attribution">
|
|
558
|
+
`+xe+ie+`
|
|
559
|
+
</div>`):Le="","<div"+C+y+">"+M+`
|
|
560
|
+
<blockquote>
|
|
561
|
+
`+u.$content()+`
|
|
562
|
+
</blockquote>`+Le+`
|
|
563
|
+
</div>`}),je(re,"$convert_thematic_break",function(u){var m=this;return"<hr"+m.void_element_slash+">"}),je(re,"$convert_sidebar",function(u){var m=I,C=I,x=I;return m=E(u.$id())?' id="'+u.$id()+'"':"",C=E(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
564
|
+
`:"","<div"+m+' class="sidebarblock'+(E(x=u.$role())?" "+x:"")+`">
|
|
565
|
+
<div class="content">
|
|
566
|
+
`+C+u.$content()+`
|
|
567
|
+
</div>
|
|
568
|
+
</div>`}),je(re,"$convert_table",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I,nt=I;return C=[],x=E(u.$id())?' id="'+u.$id()+'"':"",V(y=u.$attr("frame","all","table-frame"),"topbot")&&(y="ends"),M=["tableblock","frame-"+y,"grid-"+u.$attr("grid","all","table-grid")],E(P=u.$attr("stripes",I,"table-stripes"))&&M["$<<"]("stripes-"+P),fe="",E(ie=u["$option?"]("autowidth"))&&Me(u["$attr?"]("width"))?M["$<<"]("fit-content"):V(xe=u.$attr("tablepcwidth"),100)?M["$<<"]("stretch"):fe=' style="width: '+xe+'%;"',E(u["$attr?"]("float"))&&M["$<<"](u.$attr("float")),E(Le=u.$role())&&M["$<<"](Le),Ke=' class="'+M.$join(" ")+'"',C["$<<"]("<table"+x+Ke+fe+">"),E(u["$title?"]())&&C["$<<"]('<caption class="title">'+u.$captioned_title()+"</caption>"),E(Te(u.$attr("rowcount"),0))&&(nt=m.void_element_slash,C["$<<"]("<colgroup>"),E(ie)?C=Ye(C,ue("Array").$new(u.$columns().$size(),"<col"+nt+">")):Je(u.$columns(),"each",[],function(at){return at==null&&(at=I),C["$<<"](E(at["$option?"]("autowidth"))?"<col"+nt+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+nt+">")}),C["$<<"]("</colgroup>"),Je(u.$rows().$to_h(),"each",[],function(at,pt){return at==null&&(at=I),pt==null&&(pt=I),E(pt["$empty?"]())?I:(C["$<<"]("<t"+at+">"),Je(pt,"each",[],function(bt){return bt==null&&(bt=I),C["$<<"]("<tr>"),Je(bt,"each",[],function(Ct){var St=I,Wt=I,Bt=I,er=I,Kt=I,jt=I;if(Ct==null&&(Ct=I),V(at,"head"))St=Ct.$text();else switch(Ct.$style()){case"asciidoc":St='<div class="content">'+Ct.$content()+"</div>";break;case"literal":St='<div class="literal"><pre>'+Ct.$text()+"</pre></div>";break;default:St=E((St=Ct.$content())["$empty?"]())?"":'<p class="tableblock">'+St.$join(`</p>
|
|
569
|
+
<p class="tableblock">`)+"</p>"}return Wt=V(at,"head")||V(Ct.$style(),"header")?"th":"td",Bt=' class="tableblock halign-'+Ct.$attr("halign")+" valign-"+Ct.$attr("valign")+'"',er=E(Ct.$colspan())?' colspan="'+Ct.$colspan()+'"':"",Kt=E(Ct.$rowspan())?' rowspan="'+Ct.$rowspan()+'"':"",jt=E(u.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+u.$document().$attr("cellbgcolor")+';"':"",C["$<<"]("<"+Wt+Bt+er+Kt+jt+">"+St+"</"+Wt+">")}),C["$<<"]("</tr>")}),C["$<<"]("</t"+at+">"))})),C["$<<"]("</table>"),C.$join(ue("LF"))}),je(re,"$convert_toc",function(u){var m=I,C=I,x=I,y=I,M=I,P=I;return E((m=u.$document())["$attr?"]("toc-placement","macro"))&&E(m["$sections?"]())&&E(m["$attr?"]("toc"))?(E(u.$id())?(C=' id="'+u.$id()+'"',x=' id="'+u.$id()+'title"'):(C=' id="toc"',x=' id="toctitle"'),y=E(u["$title?"]())?u.$title():m.$attr("toc-title"),M=E(u["$attr?"]("levels"))?u.$attr("levels").$to_i():I,P=E(u["$role?"]())?u.$role():m.$attr("toc-class","toc"),"<div"+C+' class="'+P+`">
|
|
570
|
+
<div`+x+' class="title">'+y+`</div>
|
|
571
|
+
`+m.$converter().$convert(m,"outline",_e(["toclevels"],{toclevels:M}))+`
|
|
572
|
+
</div>`):"<!-- toc disabled -->"}),je(re,"$convert_ulist",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I;return C=[],x=E(u.$id())?' id="'+u.$id()+'"':"",y=["ulist",u.$style(),u.$role()].$compact(),M=P="",E(fe=u["$option?"]("checklist"))?(y.$unshift(y.$shift(),"checklist"),ie=' class="checklist"',E(u["$option?"]("interactive"))?E(m.xml_mode)?(M='<input type="checkbox" data-item-complete="1" checked="checked"/> ',P='<input type="checkbox" data-item-complete="0"/> '):(M='<input type="checkbox" data-item-complete="1" checked> ',P='<input type="checkbox" data-item-complete="0"> '):E(u.$document()["$attr?"]("icons","font"))?(M='<i class="fa fa-check-square-o"></i> ',P='<i class="fa fa-square-o"></i> '):(M="✓ ",P="❏ ")):ie=E(u.$style())?' class="'+u.$style()+'"':"",C["$<<"]("<div"+x+' class="'+y.$join(" ")+'">'),E(u["$title?"]())&&C["$<<"]('<div class="title">'+u.$title()+"</div>"),C["$<<"]("<ul"+ie+">"),Je(u.$items(),"each",[],function(Le){return Le==null&&(Le=I),E(Le.$id())?C["$<<"]('<li id="'+Le.$id()+'"'+(E(Le.$role())?' class="'+Le.$role()+'"':"")+">"):E(Le.$role())?C["$<<"]('<li class="'+Le.$role()+'">'):C["$<<"]("<li>"),E(fe)&&E(Le["$attr?"]("checkbox"))?C["$<<"]("<p>"+(E(Le["$attr?"]("checked"))?M:P)+Le.$text()+"</p>"):C["$<<"]("<p>"+Le.$text()+"</p>"),E(Le["$blocks?"]())&&C["$<<"](Le.$content()),C["$<<"]("</li>")}),C["$<<"]("</ul>"),C["$<<"]("</div>"),C.$join(ue("LF"))}),je(re,"$convert_verse",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I;return C=E(u.$id())?' id="'+u.$id()+'"':"",x=["verseblock",u.$role()].$compact(),y=' class="'+x.$join(" ")+'"',M=E(u["$title?"]())?`
|
|
573
|
+
<div class="title">`+u.$title()+"</div>":"",P=E(u["$attr?"]("attribution"))?u.$attr("attribution"):I,fe=E(u["$attr?"]("citetitle"))?u.$attr("citetitle"):I,E(P)||E(fe)?(ie=E(fe)?"<cite>"+fe+"</cite>":"",xe=E(P)?"— "+P+(E(fe)?"<br"+m.void_element_slash+`>
|
|
574
|
+
`:""):"",Le=`
|
|
575
|
+
<div class="attribution">
|
|
576
|
+
`+xe+ie+`
|
|
577
|
+
</div>`):Le="","<div"+C+y+">"+M+`
|
|
578
|
+
<pre class="content">`+u.$content()+"</pre>"+Le+`
|
|
579
|
+
</div>`}),je(re,"$convert_video",function(u){var m,C,x=this,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I,nt=I,dt=I,at=I,pt=I,vt=I,bt=I,gt=I,Ct=I,St=I,Wt=I,Bt=I,er=I,Kt=I,jt=I,Yt=I,Xt=I,nr=I,Pn=I,Jr=I,Jt=I,Ut=I,Zt=I,Er=I,Ht=I,kr=I,cn=I,Cr=I,Sr=I,mn=I;switch(y=x.xml_mode,M=E(u.$id())?' id="'+u.$id()+'"':"",P=["videoblock"],E(u["$attr?"]("float"))&&P["$<<"](u.$attr("float")),E(u["$attr?"]("align"))&&P["$<<"]("text-"+u.$attr("align")),E(u.$role())&&P["$<<"](u.$role()),fe=' class="'+P.$join(" ")+'"',ie=E(u["$title?"]())?`
|
|
580
|
+
<div class="title">`+u.$title()+"</div>":"",xe=E(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",Le=E(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",u.$attr("poster")){case"vimeo":return E((Ke=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Ke=""+Ke+":"),nt=E(u["$attr?"]("start"))?"#at="+u.$attr("start"):"",dt=["?"],C=u.$attr("target").$split("/",2),m=st(C),at=m[0]==null?I:m[0],pt=m[1]==null?I:m[1],vt=E(pt=E(bt=pt)?bt:u.$attr("hash"))?""+(E(bt=dt.$pop())?bt:"&")+"h="+pt:"",gt=E(u["$option?"]("autoplay"))?""+(E(bt=dt.$pop())?bt:"&")+"autoplay=1":"",Ct=E(u["$option?"]("loop"))?""+(E(bt=dt.$pop())?bt:"&")+"loop=1":"",St=E(u["$option?"]("muted"))?""+(E(bt=dt.$pop())?bt:"&")+"muted=1":"","<div"+M+fe+">"+ie+`
|
|
581
|
+
<div class="content">
|
|
582
|
+
<iframe`+xe+Le+' src="'+Ke+"//player.vimeo.com/video/"+at+vt+gt+Ct+St+nt+'" frameborder="0"'+(E(u["$option?"]("nofullscreen"))?"":x.$append_boolean_attribute("allowfullscreen",y))+`></iframe>
|
|
583
|
+
</div>
|
|
584
|
+
</div>`;case"youtube":return E((Ke=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Ke=""+Ke+":"),Wt=E(u["$option?"]("related"))?1:0,Bt=E(u["$attr?"]("start"))?"&start="+u.$attr("start"):"",er=E(u["$attr?"]("end"))?"&end="+u.$attr("end"):"",gt=E(u["$option?"]("autoplay"))?"&autoplay=1":"",Ct=E(Kt=u["$option?"]("loop"))?"&loop=1":"",jt=E(u["$option?"]("muted"))?"&mute=1":"",Yt=E(u["$option?"]("nocontrols"))?"&controls=0":"",E(u["$option?"]("nofullscreen"))?(Xt="&fs=0",nr=""):(Xt="",nr=x.$append_boolean_attribute("allowfullscreen",y)),Pn=E(u["$option?"]("modest"))?"&modestbranding=1":"",Jr=E(u["$attr?"]("theme"))?"&theme="+u.$attr("theme"):"",Jt=E(u["$attr?"]("lang"))?"&hl="+u.$attr("lang"):"",C=u.$attr("target").$split("/",2),m=st(C),at=m[0]==null?I:m[0],Ut=m[1]==null?I:m[1],E(Ut=E(bt=Ut)?bt:u.$attr("list"))?Zt="&list="+Ut:(C=at.$split(",",2),m=st(C),at=m[0]==null?I:m[0],Er=m[1]==null?I:m[1],E(Er=E(bt=Er)?bt:u.$attr("playlist"))?Zt="&playlist="+at+","+Er:Zt=E(Kt)?"&playlist="+at:""),"<div"+M+fe+">"+ie+`
|
|
585
|
+
<div class="content">
|
|
586
|
+
<iframe`+xe+Le+' src="'+Ke+"//www.youtube.com/embed/"+at+"?rel="+Wt+Bt+er+gt+Ct+jt+Yt+Zt+Xt+Pn+Jr+Jt+'" frameborder="0"'+nr+`></iframe>
|
|
587
|
+
</div>
|
|
588
|
+
</div>`;default:return Ht=E((kr=u.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+u.$media_uri(kr)+'"',cn=E((kr=u.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+kr+'"',Cr=u.$attr("start"),Sr=u.$attr("end"),mn=E(Cr)||E(Sr)?"#t="+(E(bt=Cr)?bt:"")+(E(Sr)?","+Sr:""):"","<div"+M+fe+">"+ie+`
|
|
589
|
+
<div class="content">
|
|
590
|
+
<video src="`+u.$media_uri(u.$attr("target"))+mn+'"'+xe+Le+Ht+(E(u["$option?"]("autoplay"))?x.$append_boolean_attribute("autoplay",y):"")+(E(u["$option?"]("muted"))?x.$append_boolean_attribute("muted",y):"")+(E(u["$option?"]("nocontrols"))?"":x.$append_boolean_attribute("controls",y))+(E(u["$option?"]("loop"))?x.$append_boolean_attribute("loop",y):"")+cn+`>
|
|
591
|
+
Your browser does not support the video tag.
|
|
592
|
+
</video>
|
|
593
|
+
</div>
|
|
594
|
+
</div>`}}),je(re,"$convert_inline_anchor",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I;switch(u.$type()){case"xref":return E(C=u.$attributes()["$[]"]("path"))?(x=m.$append_link_constraint_attrs(u,E(u.$role())?[' class="'+u.$role()+'"']:[]).$join(),y=E(M=u.$text())?M:C):(x=E(u.$role())?' class="'+u.$role()+'"':"",E(y=u.$text())||(S(ue("AbstractNode"),P=E(M=(m.refs=E(fe=m.refs)?fe:u.$document().$catalog()["$[]"]("refs"))["$[]"](ie=u.$attributes()["$[]"]("refid")))?M:E(ie["$nil_or_empty?"]())?xe=m.$get_root_document(u):I)?E(m.resolving_xref=E(M=m.resolving_xref)?M:Le=!0)&&E(Le)?(E(y=P.$xreftext(u.$attr("xrefstyle",I,!0)))?E(y["$include?"]("<a"))&&(y=y.$gsub(ue("DropAnchorRx"),"")):y=E(xe)?"[^top]":"["+ie+"]",m.resolving_xref=I):y=E(xe)?"[^top]":"["+ie+"]":y="["+ie+"]")),'<a href="'+u.$target()+'"'+x+">"+y+"</a>";case"ref":return'<a id="'+u.$id()+'"></a>';case"link":return x=E(u.$id())?[' id="'+u.$id()+'"']:[],E(u.$role())&&x["$<<"](' class="'+u.$role()+'"'),E(u["$attr?"]("title"))&&x["$<<"](' title="'+u.$attr("title")+'"'),'<a href="'+u.$target()+'"'+m.$append_link_constraint_attrs(u,x).$join()+">"+u.$text()+"</a>";case"bibref":return'<a id="'+u.$id()+'"></a>['+(E(M=u.$reftext())?M:u.$id())+"]";default:return m.$logger().$warn("unknown anchor type: "+u.$type().$inspect()),I}}),je(re,"$convert_inline_break",function(u){var m=this;return""+u.$text()+"<br"+m.void_element_slash+">"}),je(re,"$convert_inline_button",function(u){return'<b class="button">'+u.$text()+"</b>"}),je(re,"$convert_inline_callout",function(u){var m=this,C=I,x=I;return E(u.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+u.$text()+'"></i><b>('+u.$text()+")</b>":E(u.$document()["$attr?"]("icons"))?(C=u.$icon_uri("callouts/"+u.$text()),'<img src="'+C+'" alt="'+u.$text()+'"'+m.void_element_slash+">"):S(Ue("Array"),x=u.$attributes()["$[]"]("guard"))?'<!--<b class="conum">('+u.$text()+")</b>-->":""+x+'<b class="conum">('+u.$text()+")</b>"}),je(re,"$convert_inline_footnote",function(u){var m=I,C=I;return E(m=u.$attr("index"))?V(u.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>":(C=E(u.$id())?' id="_footnote_'+u.$id()+'"':"",'<sup class="footnote"'+C+'>[<a id="_footnoteref_'+m+'" class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>"):V(u.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+u.$text()+"]</sup>":I}),je(re,"$convert_inline_image",function(u){var m=this,C=I,x=I,y=I,M=I,P=I,fe=I,ie=I,xe=I,Le=I,Ke=I;return C=u.$target(),V(x=E(y=u.$type())?y:"image","icon")?V(M=u.$document().$attr("icons"),"font")?(P="fa fa-"+C,E(u["$attr?"]("size"))&&(P=""+P+" fa-"+u.$attr("size")),E(u["$attr?"]("flip"))?P=""+P+" fa-flip-"+u.$attr("flip"):E(u["$attr?"]("rotate"))&&(P=""+P+" fa-rotate-"+u.$attr("rotate")),fe=E(u["$attr?"]("title"))?' title="'+u.$attr("title")+'"':"",ie='<i class="'+P+'"'+fe+"></i>"):E(M)?(fe=E(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",E(u["$attr?"]("height"))&&(fe=""+fe+' height="'+u.$attr("height")+'"'),E(u["$attr?"]("title"))&&(fe=""+fe+' title="'+u.$attr("title")+'"'),ie='<img src="'+u.$icon_uri(C)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+fe+m.void_element_slash+">"):ie="["+u.$alt()+"]":(fe=E(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",E(u["$attr?"]("height"))&&(fe=""+fe+' height="'+u.$attr("height")+'"'),E(u["$attr?"]("title"))&&(fe=""+fe+' title="'+u.$attr("title")+'"'),(E(u["$attr?"]("format","svg"))||E(C["$include?"](".svg")))&&E(Ve(u.$document().$safe(),Ue(ue("SafeMode"),"SECURE")))?E(u["$option?"]("inline"))?ie=E(y=m.$read_svg_contents(u,C))?y:'<span class="alt">'+u.$alt()+"</span>":E(u["$option?"]("interactive"))?(xe=E(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+fe+m.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",ie='<object type="image/svg+xml" data="'+u.$image_uri(C)+'"'+fe+">"+xe+"</object>"):ie='<img src="'+u.$image_uri(C)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+fe+m.void_element_slash+">":ie='<img src="'+u.$image_uri(C)+'" alt="'+m.$encode_attribute_value(u.$alt())+'"'+fe+m.void_element_slash+">"),E(u["$attr?"]("link"))&&(ie='<a class="image" href="'+u.$attr("link")+'"'+m.$append_link_constraint_attrs(u).$join()+">"+ie+"</a>"),Le=x,E(Ke=u.$role())?Le=E(u["$attr?"]("float"))?""+Le+" "+u.$attr("float")+" "+Ke:""+Le+" "+Ke:E(u["$attr?"]("float"))&&(Le=""+Le+" "+u.$attr("float")),'<span class="'+Le+'">'+ie+"</span>"}),je(re,"$convert_inline_indexterm",function(u){return V(u.$type(),"visible")?u.$text():""}),je(re,"$convert_inline_kbd",function(u){var m=I;return V((m=u.$attr("keys")).$size(),1)?"<kbd>"+m["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+m.$join("</kbd>+<kbd>")+"</kbd></span>"}),je(re,"$convert_inline_menu",function(u){var m=I,C=I,x=I,y=I,M=I;return m=E(u.$document()["$attr?"]("icons","font"))?' <i class="fa fa-angle-right caret"></i> ':' <b class="caret">›</b> ',C="</b>"+m+'<b class="submenu">',x=u.$attr("menu"),E((y=u.$attr("submenus"))["$empty?"]())?E(M=u.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+x+"</b>"+m+'<b class="menuitem">'+M+"</b></span>":'<b class="menuref">'+x+"</b>":'<span class="menuseq"><b class="menu">'+x+"</b>"+m+'<b class="submenu">'+y.$join(C)+"</b>"+m+'<b class="menuitem">'+u.$attr("menuitem")+"</b></span>"}),je(re,"$convert_inline_quoted",function(u){var m,C,x=I,y=I,M=I,P=I;return C=ue("QUOTE_TAGS")["$[]"](u.$type()),m=st(C),x=m[0]==null?I:m[0],y=m[1]==null?I:m[1],M=m[2]==null?I:m[2],E(u.$id())?(P=E(u.$role())?' class="'+u.$role()+'"':"",E(M)?""+x.$chop()+' id="'+u.$id()+'"'+P+">"+u.$text()+y:'<span id="'+u.$id()+'"'+P+">"+x+u.$text()+y+"</span>"):E(u.$role())?E(M)?""+x.$chop()+' class="'+u.$role()+'">'+u.$text()+y:'<span class="'+u.$role()+'">'+x+u.$text()+y+"</span>":""+x+u.$text()+y}),je(re,"$read_svg_contents",function(u,m){var C=I,x=I,y=I,M=I;if(E(C=u.$read_contents(m,_e(["start","normalize","label","warn_if_empty"],{start:u.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(E(C["$empty?"]()))return I;E(C["$start_with?"]("<svg"))||(C=C.$sub(ue("SvgPreambleRx"),"")),x=y=M=I,Je(["width","height"],"each",[],function(fe){var ie=I,xe=I;if(fe==null&&(fe=I),!E(u["$attr?"](fe)))return I;if(!E(y)){if(V(M=E(ie=M)?ie:E(xe=C.$match(ue("SvgStartTagRx")))?xe:"no_match","no_match"))return I;y=(x=M["$[]"](0)).$gsub(ue("DimensionAttributeRx"),"")}return y=""+y.$chop()+" "+fe+'="'+u.$attr(fe)+'">'}),E(y)&&(C=""+y+C["$[]"](a.Range.$new(x.$length(),-1,!1)))}return C}),re.$private(),je(re,"$append_boolean_attribute",function(u,m){return E(m)?" "+u+'="'+u+'"':" "+u}),je(re,"$append_link_constraint_attrs",function(u,m){var C=I,x=I;return m==null&&(m=[]),E(u["$option?"]("nofollow"))&&(C="nofollow"),E(x=u.$attributes()["$[]"]("window"))?(m["$<<"](' target="'+x+'"'),(V(x,"_blank")||E(u["$option?"]("noopener")))&&m["$<<"](E(C)?' rel="'+C+' noopener"':' rel="noopener"')):E(C)&&m["$<<"](' rel="'+C+'"'),m},-2),je(re,"$encode_attribute_value",function(u){return E(u["$include?"]('"'))?u.$gsub('"',"""):u}),je(re,"$generate_manname_section",function(u){var m=I,C=I,x=I,y=I,M=I;return m=u.$attr("manname-title","Name"),E(x=u.$sections()["$[]"](0))&&V(C=x.$title(),C.$upcase())&&(m=m.$upcase()),y=E(M=u.$attr("manname-id"))?' id="'+M+'"':"","<h2"+y+">"+m+`</h2>
|
|
595
|
+
<div class="sectionbody">
|
|
596
|
+
<p>`+u.$attr("mannames").$join(", ")+" - "+u.$attr("manpurpose")+`</p>
|
|
597
|
+
</div>`}),je(re,"$get_root_document",function(u){for(;E((u=u.$document())["$nested?"]());)u=u.$parent_document();return u}),je(re,"$method_missing",function g(u,m){var C,x,y=g.$$p||I,M=this,P=I;return g.$$p=null,C=tt(arguments,1),x=C,Me((P=u.$to_s())["$start_with?"]("convert_"))&&E(M["$handles?"](P))?Je(M,"send",["convert_"+P].concat(lt(x))):Y(M,Ie(M,"method_missing",g,!1,!0),"method_missing",[u].concat(lt(x)),y)},-2),je(re,"$respond_to_missing?",function(u,m){var C=this,x=I,y=I;return tt(arguments,1),E(x=(y=u.$to_s())["$start_with?"]("convert_")["$!"]())?C["$handles?"](y):x},-2)}(ge("Converter"),Ue(ge("Converter"),"Base"),se)}(K[0],K)},Opal.modules["asciidoctor/extensions"]=function(a){var ne=a.module,ee=a.klass,H=a.truthy,_e=a.hash2,v=a.def,V=a.send,je=a.alias,Y=a.slice,Ie=a.rb_plus,E=a.eqeq,Je=a.rb_gt,Te=a.not,Ye=a.eqeqeq,Me=a.to_a,Pe=a.to_ary,ft=a.const_set,Ve=a.return_val,st=a.send2,We=a.find_super,Ze=a.NilClass,$t=a.class_variable_set,z=a.class_variable_get,et=a.regexp,S=a.Class,tt=a.return_ivar,lt=a.rb_lt,K=a.rb_minus,I=a.hash,Ue=[],be=a.nil,Ne=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(Ce,se){var ge=ne(Ce,"Asciidoctor"),Q=[ge].concat(se);return function(L,N){var re=ne(L,"Extensions"),O=[re].concat(N),ue=a.$r(O);return function(U,g,u){var m=ee(U,g,"Processor"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.config=be,function(M,P){return v(M,"$config",function(){var ie=this,xe=be;return ie.config==null&&(ie.config=be),ie.config=H(xe=ie.config)?xe:_e([],{})}),v(M,"$option",function(ie,xe){var Le,Ke=this;return Le=[ie,xe],V(Ke.$config(),"[]=",Le),Le[Le.length-1]}),v(M,"$enable_dsl",function(){var ie=this;return H(ie["$const_defined?"]("DSL"))?H(ie["$singleton_class?"]())?ie.$include(ie.$const_get("DSL")):ie.$extend(ie.$const_get("DSL")):be}),je(M,"use_dsl","enable_dsl")}(a.get_singleton_class(m)),m.$attr_reader("config"),v(m,"$initialize",function(P){var fe=this;return P==null&&(P=_e([],{})),fe.config=fe.$class().$config().$merge(P)},-1),v(m,"$update_config",function(P){var fe=this;return fe.config.$update(P)}),v(m,"$process",function(P){var fe=this;return Y(arguments),fe.$raise(Ne("NotImplementedError"),""+x("Processor")+" subclass "+fe.$class()+" must implement the #process method")},-1),v(m,"$create_section",function(P,fe,ie,xe){var Le,Ke,nt=be,dt=be,at=be,pt=be,vt=be,bt=be,gt=be,Ct=be,St=be,Wt=be;return xe==null&&(xe=_e([],{})),nt=P.$document(),dt=(at=nt.$doctype())["$=="]("book"),pt=H(vt=xe["$[]"]("level"))?vt:Ie(P.$level(),1),H(bt=ie.$delete("style"))?H(dt)&&E(bt,"abstract")?(Le=["chapter",1],gt=Le[0],pt=Le[1]):(Le=[bt,!0],gt=Le[0],Ct=Le[1],E(pt,0)&&(pt=1)):H(dt)?gt=E(pt,0)?"part":H(Je(pt,1))?"section":"chapter":E(at,"manpage")&&E(fe.$casecmp("synopsis"),0)?(Le=["synopsis",!0],gt=Le[0],Ct=Le[1]):gt="section",St=x("Section").$new(P,pt),Le=[fe,gt],Ke=[Le[0]],V(St,"title=",Ke),Ke[Ke.length-1],Ke=[Le[1]],V(St,"sectname=",Ke),Ke[Ke.length-1],H(Ct)?(St["$special="](!0),H(xe.$fetch("numbered",bt["$=="]("appendix")))?St["$numbered="](!0):Te(xe["$key?"]("numbered"))&&H(nt["$attr?"]("sectnums","all"))&&St["$numbered="](H(dt)&&E(pt,1)?"chapter":!0)):H(Je(pt,0))?H(xe.$fetch("numbered",nt["$attr?"]("sectnums")))&&St["$numbered="](H(St.$special())?H(vt=P.$numbered())||vt:!0):H(xe.$fetch("numbered",H(vt=dt)?nt["$attr?"]("partnums"):vt))&&St["$numbered="](!0),E(Wt=ie["$[]"]("id"),!1)?ie.$delete("id"):St["$id="]((Le=["id",H(vt=Wt)?vt:H(nt["$attr?"]("sectids"))?x("Section").$generate_id(St.$title(),nt):be],V(ie,"[]=",Le),Le[Le.length-1])),St.$update_attributes(ie),St},-4),v(m,"$create_block",function(P,fe,ie,xe,Le){return Le==null&&(Le=_e([],{})),x("Block").$new(P,fe,_e(["source","attributes"],{source:ie,attributes:xe}).$merge(Le))},-5),v(m,"$create_list",function(P,fe,ie){var xe=be;return ie==null&&(ie=be),xe=x("List").$new(P,fe),H(ie)&&xe.$update_attributes(ie),xe},-3),v(m,"$create_list_item",function(P,fe){return fe==null&&(fe=be),x("ListItem").$new(P,fe)},-2),v(m,"$create_image_block",function(P,fe,ie){var xe,Le=this,Ke=be,nt=be,dt=be;return ie==null&&(ie=_e([],{})),H(Ke=fe["$[]"]("target"))||Le.$raise(Ne("ArgumentError"),"Unable to create an image block, target attribute is required"),H(fe["$[]"]("alt"))||fe["$[]="]("alt",(xe=["default-alt",x("Helpers").$basename(Ke,!0).$tr("_-"," ")],V(fe,"[]=",xe),xe[xe.length-1])),nt=H(fe["$key?"]("title"))?fe.$delete("title"):be,dt=Le.$create_block(P,"image",be,fe,ie),H(nt)&&(dt["$title="](nt),dt.$assign_caption(fe.$delete("caption"),"figure")),dt},-3),v(m,"$create_inline",function(P,fe,ie,xe){return xe==null&&(xe=_e([],{})),x("Inline").$new(P,fe,ie,E(fe,"quoted")?_e(["type"],{type:"unquoted"}).$merge(xe):xe)},-4),v(m,"$parse_content",function(P,fe,ie){var xe=be;return ie==null&&(ie=be),xe=Ye(x("Reader"),fe)?fe:x("Reader").$new(fe),x("Parser").$parse_blocks(xe,P,ie),P},-3),v(m,"$parse_attributes",function(P,fe,ie){var xe=be;return ie==null&&(ie=_e([],{})),H(H(fe)?fe["$empty?"]():!0)?_e([],{}):(H(ie["$[]"]("sub_attributes"))&&H(fe["$include?"](x("ATTR_REF_HEAD")))&&(fe=P.$sub_attributes(fe)),x("AttributeList").$new(fe).$parse(H(xe=ie["$[]"]("positional_attributes"))?xe:[]))},-3),V([["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 M(P,fe,ie){var xe=M.$$s==null?this:M.$$s;return P==null&&(P=be),fe==null&&(fe=be),ie==null&&(ie=be),V(xe,"define_method",[P],function Le(Ke){var nt,dt,at=Le.$$s==null?this:Le.$$s;return nt=Y(arguments),dt=nt,dt.$unshift(dt.$shift(),ie),V(at,"send",[fe].concat(Me(dt)))},{$$arity:-1,$$s:xe})},{$$s:m})}(O[0],null,O),function(U){var g=ne(U,"ProcessorDsl");return v(g,"$option",function(m,C){var x,y=this;return x=[m,C],V(y.$config(),"[]=",x),x[x.length-1]}),v(g,"$process",function u(m){var C=u.$$p||be,x,y,M,P=this,fe=be;return P.process_block==null&&(P.process_block=be),u.$$p=null,x=Y(arguments),y=x,C!==be?(H(y["$empty?"]())||P.$raise(Ne("ArgumentError"),"wrong number of arguments (given "+y.$size()+", expected 0)"),H(C.$binding())&&E(P,C.$binding().$receiver())||(fe=P,V(C,"define_singleton_method",["call"],function(xe){var Le,Ke;return Le=Y(arguments),Ke=Le,V(fe,"instance_exec",Me(Ke),C.$to_proc())},-1)),P.process_block=C):H((M=P.process_block,M!=null&&M!==be?"instance-variable":be))?V(P.process_block,"call",Me(y)):P.$raise(Ne("NotImplementedError"),""+P.$class()+" #process method called before being registered")},-1),v(g,"$process_block_given?",function(){var m,C=this;return m=C.process_block,m!=null&&m!==be?"instance-variable":be})}(O[0]),function(U,g){var u=ne(U,"DocumentProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("ProcessorDsl")),v(u,"$prefer",function(){var y=this;return y.$option("position",">>")})}(O[0],O),function(U,g){var u=ne(U,"SyntaxProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("ProcessorDsl")),v(u,"$named",function(y){var M=this;return Ye(C("Processor"),M)?M.name=y:M.$option("name",y)}),v(u,"$content_model",function(y){var M=this;return M.$option("content_model",y)}),je(u,"parse_content_as","content_model"),v(u,"$positional_attributes",function(y){var M,P,fe=this;return M=Y(arguments),P=M,fe.$option("positional_attrs",P.$flatten())},-1),je(u,"name_positional_attributes","positional_attributes"),je(u,"positional_attrs","positional_attributes"),v(u,"$default_attributes",function(y){var M=this;return M.$option("default_attrs",y)}),je(u,"default_attrs","default_attributes"),v(u,"$resolve_attributes",function(y){var M,P,fe,ie=this,xe=be,Le=be,Ke=be;return M=Y(arguments),P=M,H(Je(P.$size(),1))||H((P=P.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(P=[P]),Ye(!0,xe=P)?(ie.$option("positional_attrs",[]),ie.$option("default_attrs",_e([],{}))):Ye(Ne("Array"),xe)?(fe=[[],_e([],{})],Le=fe[0],Ke=fe[1],V(P,"each",[],function(dt){var at,pt,vt=be,bt=be,gt=be;return dt==null&&(dt=be),H((dt=dt.$to_s())["$include?"]("="))?(pt=dt.$partition("="),at=Pe(pt),vt=at[0]==null?be:at[0],at[1]==null||at[1],bt=at[2]==null?be:at[2],H(vt["$include?"](":"))&&(pt=vt.$partition(":"),at=Pe(pt),gt=at[0]==null?be:at[0],at[1]==null||at[1],vt=at[2]==null?be:at[2],gt=E(gt,"@")?Le.$size():gt.$to_i(),Le["$[]="](gt,vt)),at=[vt,bt],V(Ke,"[]=",at),at[at.length-1]):H(dt["$include?"](":"))?(pt=dt.$partition(":"),at=Pe(pt),gt=at[0]==null?be:at[0],at[1]==null||at[1],vt=at[2]==null?be:at[2],gt=E(gt,"@")?Le.$size():gt.$to_i(),at=[gt,vt],V(Le,"[]=",at),at[at.length-1]):Le["$<<"](dt)}),ie.$option("positional_attrs",Le.$compact()),ie.$option("default_attrs",Ke)):Ye(Ne("Hash"),xe)?(fe=[[],_e([],{})],Le=fe[0],Ke=fe[1],V(P,"each",[],function(dt,at){var pt,vt,bt=be,gt=be;return dt==null&&(dt=be),at==null&&(at=be),H((bt=dt.$to_s())["$include?"](":"))&&(vt=bt.$partition(":"),pt=Pe(vt),gt=pt[0]==null?be:pt[0],pt[1]==null||pt[1],bt=pt[2]==null?be:pt[2],gt=E(gt,"@")?Le.$size():gt.$to_i(),Le["$[]="](gt,bt)),H(at)?(pt=[bt,at],V(Ke,"[]=",pt),pt[pt.length-1]):be}),ie.$option("positional_attrs",Le.$compact()),ie.$option("default_attrs",Ke)):ie.$raise(Ne("ArgumentError"),"unsupported attributes specification for macro: "+P.$inspect())},-1),je(u,"resolves_attributes","resolve_attributes")}(O[0],O),function(U,g,u){var m=ee(U,g,"Preprocessor"),C=[m].concat(u),x=a.$r(C);return v(m,"$process",function(M,P){var fe=this;return fe.$raise(Ne("NotImplementedError"),""+x("Preprocessor")+" subclass "+fe.$class()+" must implement the #process method")})}(O[0],ue("Processor"),O),ft(ue("Preprocessor"),"DSL",ue("DocumentProcessorDsl")),function(U,g,u){var m=ee(U,g,"TreeProcessor"),C=[m].concat(u),x=a.$r(C);return v(m,"$process",function(M){var P=this;return P.$raise(Ne("NotImplementedError"),""+x("TreeProcessor")+" subclass "+P.$class()+" must implement the #process method")})}(O[0],ue("Processor"),O),ft(ue("TreeProcessor"),"DSL",ue("DocumentProcessorDsl")),ft(O[0],"Treeprocessor",ue("TreeProcessor")),function(U,g,u){var m=ee(U,g,"Postprocessor"),C=[m].concat(u),x=a.$r(C);return v(m,"$process",function(M,P){var fe=this;return fe.$raise(Ne("NotImplementedError"),""+x("Postprocessor")+" subclass "+fe.$class()+" must implement the #process method")})}(O[0],ue("Processor"),O),ft(ue("Postprocessor"),"DSL",ue("DocumentProcessorDsl")),function(U,g,u){var m=ee(U,g,"IncludeProcessor"),C=[m].concat(u),x=a.$r(C);return v(m,"$process",function(M,P,fe,ie){var xe=this;return xe.$raise(Ne("NotImplementedError"),""+x("IncludeProcessor")+" subclass "+xe.$class()+" must implement the #process method")}),v(m,"$handles?",Ve(!0))}(O[0],ue("Processor"),O),function(U,g){var u=ne(U,"IncludeProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("DocumentProcessorDsl")),v(u,"$handles?",function x(y){var M=x.$$p||be,P,fe,ie,xe=this;return xe.handles_block==null&&(xe.handles_block=be),x.$$p=null,P=Y(arguments),fe=P,M!==be?(H(fe["$empty?"]())||xe.$raise(Ne("ArgumentError"),"wrong number of arguments (given "+fe.$size()+", expected 0)"),xe.handles_block=M):H((ie=xe.handles_block,ie!=null&&ie!==be?"instance-variable":be))?xe.handles_block.$call(fe["$[]"](0)):!0},-1)}(O[0],O),ft(ue("IncludeProcessor"),"DSL",ue("IncludeProcessorDsl")),function(U,g,u){var m=ee(U,g,"DocinfoProcessor"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.config=be,v(m,"$initialize",function M(P){var fe;M.$$p;var ie=this,xe=be;return M.$$p=null,P==null&&(P=_e([],{})),st(ie,We(ie,"initialize",M,!1,!0),"initialize",[P],null),H(xe=ie.config["$[]"]("location"))?xe:(fe=["location","head"],V(ie.config,"[]=",fe),fe[fe.length-1])},-1),v(m,"$process",function(P){var fe=this;return fe.$raise(Ne("NotImplementedError"),""+x("DocinfoProcessor")+" subclass "+fe.$class()+" must implement the #process method")})}(O[0],ue("Processor"),O),function(U,g){var u=ne(U,"DocinfoProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("DocumentProcessorDsl")),v(u,"$at_location",function(y){var M=this;return M.$option("location",y)})}(O[0],O),ft(ue("DocinfoProcessor"),"DSL",ue("DocinfoProcessorDsl")),function(U,g,u){var m=ee(U,g,"BlockProcessor"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.config=be,m.$attr_accessor("name"),v(m,"$initialize",function M(P,fe){var ie;M.$$p;var xe=this,Le=be;return M.$$p=null,P==null&&(P=be),fe==null&&(fe=_e([],{})),st(xe,We(xe,"initialize",M,!1,!0),"initialize",[fe],null),xe.name=H(Le=P)?Le:xe.config["$[]"]("name"),Ye(Ze,Le=xe.config["$[]"]("contexts"))?H(xe.config["$[]"]("contexts"))||xe.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ye(Ne("Symbol"),Le)?xe.config["$[]="]("contexts",[xe.config["$[]"]("contexts")].$to_set()):xe.config["$[]="]("contexts",xe.config["$[]"]("contexts").$to_set()),H(Le=xe.config["$[]"]("content_model"))?Le:(ie=["content_model","compound"],V(xe.config,"[]=",ie),ie[ie.length-1])},-1),v(m,"$process",function(P,fe,ie){var xe=this;return xe.$raise(Ne("NotImplementedError"),""+x("BlockProcessor")+" subclass "+xe.$class()+" must implement the #process method")})}(O[0],ue("Processor"),O),function(U,g){var u=ne(U,"BlockProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("SyntaxProcessorDsl")),v(u,"$contexts",function(y){var M,P,fe=this;return M=Y(arguments),P=M,fe.$option("contexts",P.$flatten().$to_set())},-1),je(u,"on_contexts","contexts"),je(u,"on_context","contexts"),je(u,"bind_to","contexts")}(O[0],O),ft(ue("BlockProcessor"),"DSL",ue("BlockProcessorDsl")),function(U,g,u){var m=ee(U,g,"MacroProcessor"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.config=be,m.$attr_accessor("name"),v(m,"$initialize",function M(P,fe){var ie;M.$$p;var xe=this,Le=be;return M.$$p=null,P==null&&(P=be),fe==null&&(fe=_e([],{})),st(xe,We(xe,"initialize",M,!1,!0),"initialize",[fe],null),xe.name=H(Le=P)?Le:xe.config["$[]"]("name"),H(Le=xe.config["$[]"]("content_model"))?Le:(ie=["content_model","attributes"],V(xe.config,"[]=",ie),ie[ie.length-1])},-1),v(m,"$process",function(P,fe,ie){var xe=this;return xe.$raise(Ne("NotImplementedError"),""+x("MacroProcessor")+" subclass "+xe.$class()+" must implement the #process method")})}(O[0],ue("Processor"),O),function(U,g){var u=ne(U,"MacroProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("SyntaxProcessorDsl")),v(u,"$resolve_attributes",function x(y){var M,P,fe=x.$$p||be,ie=this;return x.$$p=null,M=Y(arguments),P=M,E(P.$size(),1)&&Te(P["$[]"](0))?ie.$option("content_model","text"):(st(ie,We(ie,"resolve_attributes",x,!1,!0),"resolve_attributes",Me(P),fe),ie.$option("content_model","attributes"))},-1),je(u,"resolves_attributes","resolve_attributes")}(O[0],O),function(U,g,u){var m=ee(U,g,"BlockMacroProcessor"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.name=be,v(m,"$name",function(){var P=this;return H(x("MacroNameRx")["$match?"](P.name.$to_s()))||P.$raise(Ne("ArgumentError"),"invalid name for block macro: "+P.name),P.name})}(O[0],ue("MacroProcessor"),O),ft(ue("BlockMacroProcessor"),"DSL",ue("MacroProcessorDsl")),function(U,g,u){var m=ee(U,g,"InlineMacroProcessor"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.config=y.name=be,$t(C[0],"@@rx_cache",_e([],{})),v(m,"$regexp",function(){var P,fe=this,ie=be;return H(ie=fe.config["$[]"]("regexp"))?ie:(P=["regexp",fe.$resolve_regexp(fe.name.$to_s(),fe.config["$[]"]("format"))],V(fe.config,"[]=",P),P[P.length-1])}),v(m,"$resolve_regexp",function(P,fe){var ie,xe=this,Le=be;return H(x("MacroNameRx")["$match?"](P))||xe.$raise(Ne("ArgumentError"),"invalid name for inline macro: "+P),H(Le=z(C[0],"@@rx_cache",!1)["$[]"]([P,fe]))?Le:(ie=[[P,fe],et(["\\\\?",P,":",E(fe,"short")?"(){0}":"(\\S+?)","\\[(|",x("CC_ANY"),"*?[^\\\\])\\]"])],V(z(C[0],"@@rx_cache",!1),"[]=",ie),ie[ie.length-1])})}(O[0],ue("MacroProcessor"),O),function(U,g){var u=ne(U,"InlineMacroProcessorDsl"),m=[u].concat(g),C=a.$r(m);return u.$include(C("MacroProcessorDsl")),v(u,"$format",function(y){var M=this;return M.$option("format",y)}),je(u,"match_format","format"),je(u,"using_format","format"),v(u,"$match",function(y){var M=this;return M.$option("regexp",y)})}(O[0],O),ft(ue("InlineMacroProcessor"),"DSL",ue("InlineMacroProcessorDsl")),function(U,g){var u=ee(U,g,"Extension");return u.$attr_reader("kind"),u.$attr_reader("config"),u.$attr_reader("instance"),v(u,"$initialize",function(C,x,y){var M=this;return M.kind=C,M.instance=x,M.config=y})}(O[0],null),function(U,g){var u=ee(U,g,"ProcessorExtension");return u.$attr_reader("process_method"),v(u,"$initialize",function m(C,x,y){m.$$p;var M=this,P=be;return m.$$p=null,y==null&&(y=be),st(M,We(M,"initialize",m,!1,!0),"initialize",[C,x,x.$config()],null),M.process_method=H(P=y)?P:x.$method("process")},-3)}(O[0],ue("Extension")),function(U,g,u){var m=ee(U,g,"Group"),C=[m].concat(u);return function(x,y){var M=[x].concat(y),P=a.$r(M);return v(x,"$register",function(ie){var xe=this;return ie==null&&(ie=be),P("Extensions").$register(ie,xe)},-1)}(a.get_singleton_class(m),C),v(m,"$activate",function(y){var M=this;return M.$raise(Ne("NotImplementedError"))})}(O[0],null,O),function(U,g,u){var m=ee(U,g,"Registry"),C=[m].concat(u),x=a.$r(C),y=m.$$prototype;return y.document=y.groups=y.preprocessor_extensions=y.tree_processor_extensions=y.postprocessor_extensions=y.include_processor_extensions=y.docinfo_processor_extensions=y.block_extensions=y.block_macro_extensions=y.inline_macro_extensions=be,m.$attr_reader("document"),m.$attr_reader("groups"),v(m,"$initialize",function(P){var fe=this;return P==null&&(P=_e([],{})),fe.groups=P,fe.$reset(),fe.preprocessor_extensions=fe.tree_processor_extensions=fe.postprocessor_extensions=fe.include_processor_extensions=fe.docinfo_processor_extensions=fe.block_extensions=fe.block_macro_extensions=fe.inline_macro_extensions=be,fe.document=be},-1),v(m,"$activate",function(P){var fe=this,ie=be;return H(fe.document)&&fe.$reset(),fe.document=P,H((ie=Ie(x("Extensions").$groups().$values(),fe.groups.$values()))["$empty?"]())||V(ie,"each",[],function xe(Le){var Ke=xe.$$s==null?this:xe.$$s,nt=be;if(Le==null&&(Le=be),Ye(Ne("Proc"),nt=Le))switch(Le.$arity()){case 0:case-1:return V(Ke,"instance_exec",[],Le.$to_proc());case 1:return Le.$call(Ke);default:return be}else return Ye(S,nt)?Le.$new().$activate(Ke):Le.$activate(Ke)},{$$s:fe}),fe}),v(m,"$preprocessor",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_document_processor",["preprocessor",xe],fe.$to_proc())},-1),v(m,"$preprocessors?",function(){var P=this;return P.preprocessor_extensions["$!"]()["$!"]()}),v(m,"$preprocessors",tt("preprocessor_extensions")),v(m,"$tree_processor",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_document_processor",["tree_processor",xe],fe.$to_proc())},-1),v(m,"$tree_processors?",function(){var P=this;return P.tree_processor_extensions["$!"]()["$!"]()}),v(m,"$tree_processors",tt("tree_processor_extensions")),je(m,"treeprocessor","tree_processor"),je(m,"treeprocessors?","tree_processors?"),je(m,"treeprocessors","tree_processors"),v(m,"$postprocessor",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_document_processor",["postprocessor",xe],fe.$to_proc())},-1),v(m,"$postprocessors?",function(){var P=this;return P.postprocessor_extensions["$!"]()["$!"]()}),v(m,"$postprocessors",tt("postprocessor_extensions")),v(m,"$include_processor",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_document_processor",["include_processor",xe],fe.$to_proc())},-1),v(m,"$include_processors?",function(){var P=this;return P.include_processor_extensions["$!"]()["$!"]()}),v(m,"$include_processors",tt("include_processor_extensions")),v(m,"$docinfo_processor",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_document_processor",["docinfo_processor",xe],fe.$to_proc())},-1),v(m,"$docinfo_processors?",function(P){var fe=this;return P==null&&(P=be),H(fe.docinfo_processor_extensions)?H(P)?V(fe.docinfo_processor_extensions,"any?",[],function(xe){return xe==null&&(xe=be),xe.$config()["$[]"]("location")["$=="](P)}):!0:!1},-1),v(m,"$docinfo_processors",function(P){var fe=this;return P==null&&(P=be),H(fe.docinfo_processor_extensions)?H(P)?V(fe.docinfo_processor_extensions,"select",[],function(xe){return xe==null&&(xe=be),xe.$config()["$[]"]("location")["$=="](P)}):fe.docinfo_processor_extensions:be},-1),v(m,"$block",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_syntax_processor",["block",xe],fe.$to_proc())},-1),v(m,"$blocks?",function(){var P=this;return P.block_extensions["$!"]()["$!"]()}),v(m,"$registered_for_block?",function(P,fe){var ie=this,xe=be;return H(xe=ie.block_extensions["$[]"](P.$to_sym()))&&H(xe.$config()["$[]"]("contexts")["$include?"](fe))?xe:!1}),v(m,"$find_block_extension",function(P){var fe=this;return fe.block_extensions["$[]"](P.$to_sym())}),v(m,"$block_macro",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_syntax_processor",["block_macro",xe],fe.$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 fe=this,ie=be;return H(ie=fe.block_macro_extensions["$[]"](P.$to_sym()))?ie:!1}),v(m,"$find_block_macro_extension",function(P){var fe=this;return fe.block_macro_extensions["$[]"](P.$to_sym())}),v(m,"$inline_macro",function M(P){var fe=M.$$p||be,ie,xe,Le=this;return M.$$p=null,ie=Y(arguments),xe=ie,V(Le,"add_syntax_processor",["inline_macro",xe],fe.$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 fe=this,ie=be;return H(ie=fe.inline_macro_extensions["$[]"](P.$to_sym()))?ie:!1}),v(m,"$find_inline_macro_extension",function(P){var fe=this;return fe.inline_macro_extensions["$[]"](P.$to_sym())}),v(m,"$inline_macros",function(){var P=this;return P.inline_macro_extensions.$values()}),v(m,"$prefer",function M(P){var fe=M.$$p||be,ie,xe,Le=this,Ke=be,nt=be,dt=be;return M.$$p=null,ie=Y(arguments),xe=ie,Ke=Ye(x("ProcessorExtension"),nt=xe.$shift())?nt:V(Le,"send",[nt].concat(Me(xe)),fe.$to_proc()),dt=Le.$instance_variable_get(("@"+Ke.$kind()+"_extensions").$to_sym()),dt.$unshift(dt.$delete(Ke)),Ke},-1),m.$private(),v(m,"$add_document_processor",function M(P,fe){var ie=M.$$p||be,xe,Le,Ke=this,nt=be,dt=be,at=be,pt=be,vt=be,bt=be,gt=be,Ct=be,St=be,Wt=be,Bt=be;return M.$$p=null,nt=P.$to_s().$tr("_"," "),dt=V(nt.$split(),"map",[],function(Kt){return Kt==null&&(Kt=be),Kt.$capitalize()}).$join().$to_sym(),at=x("Extensions").$const_get(dt,!1),pt=H(Ne("::","AsciidoctorJ","skip_raise")?"constant":be)?Ne(Ne("AsciidoctorJ"),"Extensions").$const_get(dt,!1):be,vt=H(bt=Ke.$instance_variable_get(("@"+P+"_extensions").$to_sym()))?bt:Ke.$instance_variable_set(("@"+P+"_extensions").$to_sym(),[]),ie!==be?(gt=Ke.$resolve_args(fe,1),(Ct=at.$new(gt)).$singleton_class().$enable_dsl(),E(ie.$arity(),0)?V(Ct,"instance_exec",[],ie.$to_proc()):a.yield1(ie,Ct),H(Ct["$process_block_given?"]())||Ke.$raise(Ne("NoMethodError"),"No block specified to process "+nt+" extension at "+ie.$source_location().$join(":")),Ct.$freeze(),St=x("ProcessorExtension").$new(P,Ct)):(Le=Ke.$resolve_args(fe,2),xe=Pe(Le),Ct=xe[0]==null?be:xe[0],gt=xe[1]==null?be:xe[1],H(Wt=x("Helpers").$resolve_class(Ct))?(H(lt(Wt,at))||H(pt)&&H(lt(Wt,pt))||Ke.$raise(Ne("ArgumentError"),"Invalid type for "+nt+" extension: "+Ct),Bt=Wt.$new(gt),Bt.$freeze(),St=x("ProcessorExtension").$new(P,Bt)):Ye(at,Ct)||H(pt)&&Ye(pt,Ct)?(Ct.$update_config(gt),Ct.$freeze(),St=x("ProcessorExtension").$new(P,Ct)):Ke.$raise(Ne("ArgumentError"),"Invalid arguments specified for registering "+nt+" extension: "+fe)),E(St.$config()["$[]"]("position"),">>")?vt.$unshift(St):vt["$<<"](St),St}),v(m,"$add_syntax_processor",function M(P,fe){var ie=M.$$p||be,xe,Le,Ke=this,nt=be,dt=be,at=be,pt=be,vt=be,bt=be,gt=be,Ct=be,St=be,Wt=be,Bt=be;return M.$$p=null,nt=P.$to_s().$tr("_"," "),dt=V(nt.$split(),"map",[],function(Kt){return Kt==null&&(Kt=be),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=x("Extensions").$const_get(dt,!1),pt=H(Ne("::","AsciidoctorJ","skip_raise")?"constant":be)?Ne(Ne("AsciidoctorJ"),"Extensions").$const_get(dt,!1):be,vt=H(bt=Ke.$instance_variable_get(("@"+P+"_extensions").$to_sym()))?bt:Ke.$instance_variable_set(("@"+P+"_extensions").$to_sym(),_e([],{})),ie!==be?(Le=Ke.$resolve_args(fe,2),xe=Pe(Le),gt=xe[0]==null?be:xe[0],Ct=xe[1]==null?be:xe[1],(St=at.$new(Ke.$as_symbol(gt),Ct)).$singleton_class().$enable_dsl(),E(ie.$arity(),0)?V(St,"instance_exec",[],ie.$to_proc()):a.yield1(ie,St),H(gt=Ke.$as_symbol(St.$name()))||Ke.$raise(Ne("ArgumentError"),"No name specified for "+nt+" extension at "+ie.$source_location().$join(":")),H(St["$process_block_given?"]())||Ke.$raise(Ne("NoMethodError"),"No block specified to process "+nt+" extension at "+ie.$source_location().$join(":")),St.$freeze(),xe=[gt,x("ProcessorExtension").$new(P,St)],V(vt,"[]=",xe),xe[xe.length-1]):(Le=Ke.$resolve_args(fe,3),xe=Pe(Le),St=xe[0]==null?be:xe[0],gt=xe[1]==null?be:xe[1],Ct=xe[2]==null?be:xe[2],H(Wt=x("Helpers").$resolve_class(St))?(H(lt(Wt,at))||H(pt)&&H(lt(Wt,pt))||Ke.$raise(Ne("ArgumentError"),"Class specified for "+nt+" extension does not inherit from "+at+": "+St),Bt=Wt.$new(Ke.$as_symbol(gt),Ct),H(gt=Ke.$as_symbol(Bt.$name()))||Ke.$raise(Ne("ArgumentError"),"No name specified for "+nt+" extension: "+St),Bt.$freeze(),xe=[gt,x("ProcessorExtension").$new(P,Bt)],V(vt,"[]=",xe),xe[xe.length-1]):Ye(at,St)||H(pt)&&Ye(pt,St)?(St.$update_config(Ct),H(gt=H(gt)?(xe=[Ke.$as_symbol(gt)],V(St,"name=",xe),xe[xe.length-1]):Ke.$as_symbol(St.$name()))||Ke.$raise(Ne("ArgumentError"),"No name specified for "+nt+" extension: "+St),St.$freeze(),xe=[gt,x("ProcessorExtension").$new(P,St)],V(vt,"[]=",xe),xe[xe.length-1]):Ke.$raise(Ne("ArgumentError"),"Invalid arguments specified for registering "+nt+" extension: "+fe))}),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=be,P.document=be}),v(m,"$resolve_args",function(P,fe){var ie=be,xe=be;return ie=Ye(Ne("Hash"),P["$[]"](-1))?P.$pop():_e([],{}),E(fe,1)?ie:(H(Je(xe=K(K(fe,1),P.$size()),0))?P=Ie(P,Ne("Array").$new(xe)):H(lt(xe,0))&&P.$pop(xe["$-@"]()),P["$<<"](ie),P)}),v(m,"$as_symbol",function(P){return H(P)?P.$to_sym():be})}(O[0],null,O),function(U,g){var u=[U].concat(g),m=a.$r(u);return v(U,"$generate_name",function(){var x=this;return"extgrp"+x.$next_auto_id()}),v(U,"$next_auto_id",function(){var x=this,y=be;return x.auto_id==null&&(x.auto_id=be),x.auto_id=H(y=x.auto_id)?y:-1,x.auto_id=Ie(x.auto_id,1)}),v(U,"$groups",function(){var x=this,y=be;return x.groups==null&&(x.groups=be),x.groups=H(y=x.groups)?y:_e([],{})}),v(U,"$create",function C(x){var y=C.$$p||be,M=this,P=be;return C.$$p=null,x==null&&(x=be),y!==be?m("Registry").$new(I(H(P=x)?P:M.$generate_name(),y)):m("Registry").$new()},-1),v(U,"$register",function C(x){var y=C.$$p||be,M,P,fe,ie=this,xe=be,Le=be,Ke=be,nt=be,dt=be;return C.$$p=null,M=Y(arguments),P=M,xe=P.$size(),y!==be?Le=y:H(Ke=P.$pop())?Le=H(nt=m("Helpers").$resolve_class(Ke))?nt:Ke:ie.$raise(Ne("ArgumentError"),"Extension group to register not specified"),dt=H(nt=P.$pop())?nt:ie.$generate_name(),H(P["$empty?"]())||ie.$raise(Ne("ArgumentError"),"Wrong number of arguments ("+xe+" for 1..2)"),fe=[dt.$to_sym(),Le],V(ie.$groups(),"[]=",fe),fe[fe.length-1]},-1),v(U,"$unregister_all",function(){var x=this;return x.groups=_e([],{}),be}),v(U,"$unregister",function(x){var y,M,P=this;return y=Y(arguments),M=y,V(M,"each_with_object",[P.$groups()],function(ie,xe){return ie==null&&(ie=be),xe==null&&(xe=be),xe.$delete(ie.$to_sym())}),be},-1)}(a.get_singleton_class(re),O)}(Q[0],Q)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var ne=a.module,ee=a.klass,H=a.truthy,_e=a.def,v=[],V=a.nil,je=a.$$$;return a.add_stubs("rstrip,read,join"),function(Y,Ie){var E=ne(Y,"Asciidoctor"),Je=[E].concat(Ie);return function(Te,Ye){var Me=ee(Te,Ye,"Stylesheets"),Pe=Me.$$prototype;return Pe.primary_stylesheet_data=V,_e(Me,"$primary_stylesheet_data",function(){var Ve=this,st=V;return Ve.primary_stylesheet_data=H(st=Ve.primary_stylesheet_data)?st:je("IO").$read(je("File").$join("css","asciidoctor.css")).$rstrip()})}(Je[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var ne=a.module,ee=a.klass,H=a.def,_e=[];return a.nil,function(v,V){var je=ne(v,"Asciidoctor"),Y=[je].concat(V),Ie=a.$r(Y);return function(E,Je){var Te=ee(E,Je,"Document");return H(Te,"$fill_datetime_attributes",function(Me,Pe){var ft=a.truthy,Ve=a.falsy,st=a.nil,We,Ze,$t,z,et,S,tt,lt,K=function(C,x){return x===0?C.getUTCFullYear():C.getFullYear()},I=function(C,x){return x===0?C.getUTCMonth():C.getMonth()},Ue=function(C,x){return x===0?C.getUTCDate():C.getDate()},be=function(C,x){return x===0?C.getUTCHours():C.getHours()},Ne=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(Ne.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Ze=Ne,We=0):We=-Ne.getTimezoneOffset()/60,ft($t=Me["$[]"]("localdate")))Ve(z=Me["$[]"]("localyear"))&&(z=$t.indexOf("-")===4?$t.substring(0,4):st,Me["$[]="]("localyear",z));else{var Ce=K(Ne,We).toString(),se=("0"+(I(Ne,We)+1)).slice(-2),ge=("0"+Ue(Ne,We)).slice(-2);$t=Ce+"-"+se+"-"+ge,Me["$[]="]("localdate",$t),z=Ce,Me["$[]="]("localyear",Ce)}if(Ve(et=Me["$[]"]("localtime"))){var Q=("0"+be(Ne,We)).slice(-2),L=("0"+Ne.getMinutes()).slice(-2),N=("0"+Ne.getSeconds()).slice(-2),re;We===0?re="UTC":We>0?re=("+0"+We*100).slice(-5):re=("-0"+-We*100).slice(-5),et=Q+":"+L+":"+N+" "+re,Me["$[]="]("localtime",et)}if(Ve(S=Me["$[]"]("localdatetime"))&&(S=$t+" "+et,Me["$[]="]("localdatetime",S)),ft(Ze)?Pe=Ze:ft(Pe)?We=-Pe.getTimezoneOffset()/60:Pe=Ne,ft(tt=Me["$[]"]("docdate")))Me["$[]="]("docyear",tt.indexOf("-")===4?tt.substring(0,4):st);else{var O=K(Pe,We).toString(),ue=("0"+(I(Pe,We)+1)).slice(-2),U=("0"+Ue(Pe,We)).slice(-2);tt=O+"-"+ue+"-"+U,Me["$[]="]("docdate",tt),Ve(Me["$[]"]("docyear"))&&Me["$[]="]("docyear",O)}if(Ve(lt=Me["$[]"]("doctime"))){var g=("0"+be(Pe,We)).slice(-2),u=("0"+Pe.getMinutes()).slice(-2),m=("0"+Pe.getSeconds()).slice(-2),re;We===0?re="UTC":We>0?re=("+0"+We*100).slice(-5):re=("-0"+-We*100).slice(-5),lt=g+":"+u+":"+m+" "+re,Me["$[]="]("doctime",lt)}return Ve(Me["$[]"]("docdatetime"))&&Me["$[]="]("docdatetime",tt+" "+lt),st})}(Y[0],Ie("AbstractBlock"))}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var ne=a.module,ee=a.def,H=[];return a.nil,function(_e,v){var V=ne(_e,"Asciidoctor"),je=[V].concat(v);return function(Y){var Ie=ne(Y,"Substitutors");return ee(Ie,"$sub_placeholder",function(Je,Te){return Je.replace("%s",Te)})}(je[0])}(H[0],H)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var ne=a.module,ee=a.klass,H=a.truthy,_e=a.defs,v=[];return a.nil,function(V,je){var Y=ne(V,"Asciidoctor"),Ie=[Y].concat(je);return function(E,Je){var Te=ee(E,Je,"Parser");return H(String.prototype.repeat)?_e(Te,"$uniform?",function(Me,Pe,ft){return Pe.repeat(ft)===Me}):_e(Te,"$uniform?",function(Me,Pe,ft){return Array.apply(null,{length:ft}).map(function(){return Pe}).join("")===Me})}(Ie[0],null)}(v[0],v)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var ne=a.module,ee=a.truthy,H=a.def,_e=[],v=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(V,je){var Y=ne(V,"Asciidoctor"),Ie=[Y].concat(je);return function(E,Je){var Te=ne(E,"SyntaxHighlighter"),Ye=[Te].concat(Je);return function(Me,Pe){var ft=ne(Me,"Factory"),Ve=[ft].concat(Pe),st=a.$r(Ve);return H(ft,"$for",function(Ze){var $t=this;return ee($t.$registry()["$key?"](Ze))?$t.$registry()["$[]"](Ze):(ee($t["$include?"](st("Logging")))||$t.$include(st("Logging")),ee($t.$registry()["$empty?"]())?$t.$logger().$debug("no syntax highlighter available, functionality disabled."):$t.$logger().$debug("syntax highlighter named '"+Ze+"' is not available, must be one of: '"+$t.$registry().$keys().$join("', '")+"'."),v)})}(Ye[0],Ye)}(Ie[0],Ie)}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var ne=a.top;a.nil,a.add_stubs("require"),ne.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),ne.$require("asciidoctor/js/asciidoctor_ext/document"),ne.$require("asciidoctor/js/asciidoctor_ext/substitutors"),ne.$require("asciidoctor/js/asciidoctor_ext/parser"),ne.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),ne.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var ne=a.klass,ee=a.def,H=a.truthy,_e=a.rb_lt,v=[],V=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(je,Y,Ie){var E=ne(je,Y,"Logger"),Je=[E].concat(Ie),Te=a.$r(Je),Ye=E.$$prototype;return Ye.level=Ye.progname=Ye.pipe=Ye.formatter=V,function(Me,Pe){var ft=ne(Me,Pe,"Formatter");return ee(ft,"$call",function(st,We,Ze,$t){var z=this,et=V;return et=We.getFullYear()+"-"+("0"+(We.getMonth()+1)).slice(-2)+"-"+("0"+We.getDate()).slice(-2)+"T"+("0"+We.getHours()).slice(-2)+":"+("0"+We.getMinutes()).slice(-2)+":"+("0"+We.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+et+"] "+st.$rjust(5)+" -- "+Ze+": "+z.$message_as_string($t)})}(Je[0],null),ee(E,"$add",function Me(Pe,ft,Ve){var st=Me.$$p||V,We=this,Ze=V;return Me.$$p=null,ft==null&&(ft=V),Ve==null&&(Ve=V),H(_e(Pe=H(Ze=Pe)?Ze:Te("UNKNOWN"),We.level))||(Ve=H(Ze=Ve)?Ze:We.progname,H(ft)||(st!==V?ft=a.yieldX(st,[]):(ft=Ve,Ve=We.progname)),We.pipe.$write(We.formatter.$call(H(Ze=Te("SEVERITY_LABELS")["$[]"](Pe))?Ze:"ANY",new Date,Ve,ft))),!0},-2)}(v[0],null,v)},Opal.modules["asciidoctor/js/postscript"]=function(a){var ne=a.top;return a.nil,a.add_stubs("require"),ne.$require("asciidoctor/converter/composite"),ne.$require("asciidoctor/converter/html5"),ne.$require("asciidoctor/extensions"),ne.$require("asciidoctor/js/asciidoctor_ext"),ne.$require("asciidoctor/js/opal_ext/logger")},Opal.queue(function(a){var ne=a.module,ee=a.const_set,H=a.send,_e=a.to_ary,v=a.defs,V=a.def,je=a.truthy,Y=a.hash2,Ie=a.eqeq,E=a.rb_minus,Je=a.regexp,Te=a.top,Ye=[],Me=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"),Te.$require("set"),Te.$require("asciidoctor/js"),function(ft,Ve){var st=ne(ft,"Asciidoctor"),We=[st].concat(Ve),Ze=a.$r(We),$t=Me;return ee(We[0],"RUBY_ENGINE_OPAL",ee(We[0],"RUBY_ENGINE",Pe("RUBY_ENGINE"))["$=="]("opal")),function(z,et){var S=ne(z,"SafeMode"),tt=[S].concat(et);return ee(tt[0],"UNSAFE",0),ee(tt[0],"SAFE",1),ee(tt[0],"SERVER",10),ee(tt[0],"SECURE",20),S.names_by_value=H(H(S.$constants(!1),"map",[],function lt(K){var I=lt.$$s==null?this:lt.$$s;return K==null&&(K=Me),[I.$const_get(K),K.$to_s().$downcase()]},{$$s:S}),"sort",[],function(K,I){var Ue,be,Ne=Me,Ce=Me;return K==null&&(K=Me),I==null&&(I=Me),be=K,Ue=_e(be),Ne=Ue[0]==null?Me:Ue[0],be=I,Ue=_e(be),Ce=Ue[0]==null?Me:Ue[0],Ne["$<=>"](Ce)},{$$has_top_level_mlhs_arg:!0}).$to_h(),v(S,"$value_for_name",function(K){var I=this;return I.$const_get(K.$upcase(),!1)}),v(S,"$name_for_value",function(K){var I=this;return I.names_by_value==null&&(I.names_by_value=Me),I.names_by_value["$[]"](K)}),v(S,"$names",function(){var K=this;return K.names_by_value==null&&(K.names_by_value=Me),K.names_by_value.$values()})}(We[0],We),function(z,et){var S=ne(z,"Compliance");return S.keys=Pe("Set").$new(),function(tt,lt){return tt.$attr_reader("keys"),V(tt,"$define",function(I,Ue){var be=this;return be.keys==null&&(be.keys=Me),be.$instance_variable_set("@"+I,Ue),be.$singleton_class().$send("attr_accessor",I),be.keys["$<<"](I),Me})}(a.get_singleton_class(S)),S.$define("block_terminates_paragraph",!0),S.$define("strict_verbatim_paragraphs",!0),S.$define("underline_style_section_titles",!0),S.$define("unwrap_standalone_preamble",!0),S.$define("attribute_missing","skip"),S.$define("attribute_undefined","drop-line"),S.$define("shorthand_property_syntax",!0),S.$define("natural_xrefs",!0),S.$define("unique_id_start_index",2),S.$define("markdown_syntax",!0)}(We[0]),je(Ze("ROOT_DIR","skip_raise")?"constant":Me)||ee(We[0],"ROOT_DIR",Pe("File").$dirname(Pe("File").$absolute_path("."))),ee(We[0],"LIB_DIR",Pe("File").$join(Ze("ROOT_DIR"),"lib")),ee(We[0],"DATA_DIR",Pe("File").$join(Ze("ROOT_DIR"),"data")),ee(We[0],"USER_HOME",function(){try{return Pe("Dir").$home()}catch(z){if(a.rescue(z,[Ze("StandardError")]))try{return je($t=Pe("ENV")["$[]"]("HOME"))?$t:Pe("Dir").$pwd()}finally{a.pop_exception()}else throw z}}()),ee(We[0],"LF",`
|
|
598
|
+
`),ee(We[0],"NULL","\0"),ee(We[0],"TAB"," "),ee(We[0],"MAX_INT",9007199254740991),ee(We[0],"UTF_8",Pe(Pe("Encoding"),"UTF_8")),ee(We[0],"BOM_BYTES_UTF_8",[239,187,191]),ee(We[0],"BOM_BYTES_UTF_16LE",[255,254]),ee(We[0],"BOM_BYTES_UTF_16BE",[254,255]),ee(We[0],"FILE_READ_MODE",je(Ze("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),ee(We[0],"URI_READ_MODE",Ze("FILE_READ_MODE")),ee(We[0],"FILE_WRITE_MODE",je(Ze("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),ee(We[0],"DEFAULT_DOCTYPE","article"),ee(We[0],"DEFAULT_BACKEND","html5"),ee(We[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),ee(We[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),ee(We[0],"BACKEND_ALIASES",Y(["html","docbook"],{html:"html5",docbook:"docbook5"})),ee(We[0],"DEFAULT_PAGE_WIDTHS",Y(["docbook"],{docbook:425})),ee(We[0],"DEFAULT_EXTENSIONS",Y(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),ee(We[0],"ASCIIDOC_EXTENSIONS",Y([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),ee(We[0],"SETEXT_SECTION_LEVELS",Y(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),ee(We[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),ee(We[0],"ADMONITION_STYLE_HEADS",H(Pe("Set").$new(),"tap",[],function(et){return et==null&&(et=Me),H(Ze("ADMONITION_STYLES"),"each",[],function(tt){return tt==null&&(tt=Me),et["$<<"](tt.$chr())})})),ee(We[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),ee(We[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),ee(We[0],"DELIMITED_BLOCKS",Y(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["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()]})),ee(We[0],"DELIMITED_BLOCK_HEADS",H(Y([],{}),"tap",[],function(et){return et==null&&(et=Me),H(Ze("DELIMITED_BLOCKS"),"each_key",[],function(tt){var lt;return tt==null&&(tt=Me),lt=[tt.$slice(0,2),!0],H(et,"[]=",lt),lt[lt.length-1]})})),ee(We[0],"DELIMITED_BLOCK_TAILS",H(Y([],{}),"tap",[],function(et){return et==null&&(et=Me),H(Ze("DELIMITED_BLOCKS"),"each_key",[],function(tt){var lt;return tt==null&&(tt=Me),Ie(tt.$length(),4)?(lt=[tt,tt["$[]"](E(tt.$length(),1))],H(et,"[]=",lt),lt[lt.length-1]):Me})})),ee(We[0],"CAPTION_ATTRIBUTE_NAMES",Y(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),ee(We[0],"LAYOUT_BREAK_CHARS",Y(["'","<"],{"'":"thematic_break","<":"page_break"})),ee(We[0],"MARKDOWN_THEMATIC_BREAK_CHARS",Y(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),ee(We[0],"HYBRID_LAYOUT_BREAK_CHARS",Ze("LAYOUT_BREAK_CHARS").$merge(Ze("MARKDOWN_THEMATIC_BREAK_CHARS"))),ee(We[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),ee(We[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),ee(We[0],"ORDERED_LIST_KEYWORDS",Y(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),ee(We[0],"ATTR_REF_HEAD","{"),ee(We[0],"LIST_CONTINUATION","+"),ee(We[0],"HARD_LINE_BREAK"," +"),ee(We[0],"LINE_CONTINUATION"," \\"),ee(We[0],"LINE_CONTINUATION_LEGACY"," +"),ee(We[0],"BLOCK_MATH_DELIMITERS",Y(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),ee(We[0],"INLINE_MATH_DELIMITERS",Y(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),ee(We[0],"STEM_TYPE_ALIASES",Y(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),ee(We[0],"FONT_AWESOME_VERSION","4.7.0"),ee(We[0],"HIGHLIGHT_JS_VERSION","9.18.3"),ee(We[0],"MATHJAX_VERSION","2.7.9"),ee(We[0],"DEFAULT_ATTRIBUTES",Y(["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"})),ee(We[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),ee(We[0],"INTRINSIC_ATTRIBUTES",Y(["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:"+",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:" ",deg:"°",zwsp:"​",quot:""",apos:"'",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",wj:"⁠",brvbar:"¦",pp:"++",cpp:"C++",amp:"&",lt:"<",gt:">"})),ee(We[0],"QUOTE_SUBS",H(Y([],{}),"tap",[],function(et){var S=Me,tt=Me;return et==null&&(et=Me),et["$[]="](!1,S=[["strong","unconstrained",Je(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Ze("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",Je(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Ze("CC_ALL"),"*?\\S)\\*(?!",Ze("CG_WORD"),")"],"m")],["double","constrained",Je(["(^|[^",Ze("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Ze("CC_ALL"),'*?\\S)`"(?!',Ze("CG_WORD"),")"],"m")],["single","constrained",Je(["(^|[^",Ze("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Ze("CC_ALL"),"*?\\S)`'(?!",Ze("CG_WORD"),")"],"m")],["monospaced","unconstrained",Je(["\\\\?(?:\\[([^\\]]+)\\])?``(",Ze("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",Je(["(^|[^",Ze("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Ze("CC_ALL"),"*?\\S)`(?![",Ze("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",Je(["\\\\?(?:\\[([^\\]]+)\\])?__(",Ze("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",Je(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Ze("CC_ALL"),"*?\\S)_(?!",Ze("CG_WORD"),")"],"m")],["mark","unconstrained",Je(["\\\\?(?:\\[([^\\]]+)\\])?##(",Ze("CC_ALL"),"+?)##"],"m")],["mark","constrained",Je(["(^|[^",Ze("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Ze("CC_ALL"),"*?\\S)#(?!",Ze("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),et["$[]="](!0,tt=S.$drop(0)),tt["$[]="](2,["double","constrained",Je(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Ze("CC_ALL"),"*?\\S)''(?!",Ze("CG_WORD"),")"],"m")]),tt["$[]="](3,["single","constrained",Je(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Ze("CC_ALL"),"*?\\S)'(?!",Ze("CG_WORD"),")"],"m")]),tt["$[]="](4,["monospaced","unconstrained",Je(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Ze("CC_ALL"),"+?)\\+\\+"],"m")]),tt["$[]="](5,["monospaced","constrained",Je(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Ze("CC_ALL"),"*?\\S)\\+(?!",Ze("CG_WORD"),")"],"m")]),tt.$insert(3,["emphasis","constrained",Je(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Ze("CC_ALL"),"*?\\S)'(?!",Ze("CG_WORD"),")"],"m")])})),ee(We[0],"REPLACEMENTS",[[/\\?\(C\)/,"©","none"],[/\\?\(R\)/,"®","none"],[/\\?\(TM\)/,"™","none"],[/(?: |\n|^|\\)--(?: |\n|$)/," — ","none"],[Je(["(",Ze("CG_WORD"),")\\\\?--(?=",Ze("CG_WORD"),")"]),"—​","leading"],[/\\?\.\.\./,"…​","none"],[/\\?`'/,"’","none"],[Je(["(",Ze("CG_ALNUM"),")\\\\?'(?=",Ze("CG_ALPHA"),")"]),"’","leading"],[/\\?->/,"→","none"],[/\\?=>/,"⇒","none"],[/\\?<-/,"←","none"],[/\\?<=/,"⇐","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"]]),Me}(Ye[0],Ye),Te.$require("asciidoctor.rb/../asciidoctor/core_ext"),Te.$require("asciidoctor.rb/../asciidoctor/helpers"),Te.$require("asciidoctor.rb/../asciidoctor/logging"),Te.$require("asciidoctor.rb/../asciidoctor/rx"),Te.$require("asciidoctor.rb/../asciidoctor/substitutors"),Te.$require("asciidoctor.rb/../asciidoctor/version"),Te.$require("asciidoctor.rb/../asciidoctor/abstract_node"),Te.$require("asciidoctor.rb/../asciidoctor/abstract_block"),Te.$require("asciidoctor.rb/../asciidoctor/attribute_list"),Te.$require("asciidoctor.rb/../asciidoctor/block"),Te.$require("asciidoctor.rb/../asciidoctor/callouts"),Te.$require("asciidoctor.rb/../asciidoctor/converter"),Te.$require("asciidoctor.rb/../asciidoctor/document"),Te.$require("asciidoctor.rb/../asciidoctor/inline"),Te.$require("asciidoctor.rb/../asciidoctor/list"),Te.$require("asciidoctor.rb/../asciidoctor/parser"),Te.$require("asciidoctor.rb/../asciidoctor/path_resolver"),Te.$require("asciidoctor.rb/../asciidoctor/reader"),Te.$require("asciidoctor.rb/../asciidoctor/section"),Te.$require("asciidoctor.rb/../asciidoctor/stylesheets"),Te.$require("asciidoctor.rb/../asciidoctor/table"),Te.$require("asciidoctor.rb/../asciidoctor/writer"),Te.$require("asciidoctor.rb/../asciidoctor/load"),Te.$require("asciidoctor.rb/../asciidoctor/convert"),Te.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),Te.$require("asciidoctor.rb/../asciidoctor/timings"),Te.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const ne={};if(a){const ee=a.$$smap;for(const _e in ee){const v=ee[_e];ne[_e]=v===Opal.nil?void 0:v}const H=a.$$map;if(H){const _e=[];for(const v in H){const V=H[v],je=V.value,Y=V.key-1;_e[Y]=je===Opal.nil?void 0:je}_e.length>0&&(ne.$positional=_e)}}return ne},n=function(a){const ne={};if(a){const ee=a.$$keys;for(const H in ee){const _e=ee[H].value;ne[H.toString()]=_e===Opal.nil?void 0:_e}}return ne},i=function(a){if(a=t(a),a){const ne=a["$[]"]("converter");ne&&ne!==Opal.nil&&a["$[]="]("converter",s(ne));const ee=a["$[]"]("attributes");ee&&typeof ee=="object"&&ee.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(ee)))}return a},s=function(a){const ne=function(Ie){return Object.assign({},Ie.basebackend?{basebackend:Ie.basebackend}:{},Ie.outfilesuffix?{outfilesuffix:Ie.outfilesuffix}:{},Ie.filetype?{filetype:Ie.filetype}:{},Ie.htmlsyntax?{htmlsyntax:Ie.htmlsyntax}:{},Ie.supports_templates?{supports_templates:Ie.supports_templates}:{})},ee=function(Ie,E){Ie.backend_traits?E.backend_traits=t(Ie.backend_traits):Ie.backendTraits?E.backend_traits=t(Ie.backendTraits):(Ie.basebackend||Ie.outfilesuffix||Ie.filetype||Ie.htmlsyntax||Ie.supports_templates)&&(E.backend_traits=t(ne(Ie)))},H=function(Ie,E){je(Ie,E,"$handles?","handles",function(){return!0})},_e=function(Ie,E){je(Ie,E,"$composed","composed")},v=function(Ie,E){je(Ie,E,"$==","==",function(Je){return E===Je})},V=function(Ie,E){je(Ie,E,"$send","send",function(Je){const[,...Te]=Array.from(arguments),Ye=E["$"+Je];if(Ye)return Ye.apply(E,Te);throw new Error(`undefined method \`${Je}\` for \`${E.toString()}\``)})},je=function(Ie,E,Je,Te,Ye){typeof Ie[Je]>"u"&&(typeof Ie[Te]=="function"?E[Je]=Ie[Te]:Ye&&(E[Je]=Ye))},Y=function(Ie){typeof Ie["$respond_to?"]!="function"&&(Ie["$respond_to?"]=function(E){return typeof this[E]=="function"})};if(typeof a=="function"){const Ie=c(ht,a.constructor.name,{initialize:function(E,Je){const Te=this,Ye=new a(E,Je);Object.assign(this,Ye),ee(Ye,Te);const Me=Object.getOwnPropertyNames(a.prototype);for(let Pe=0;Pe<Me.length;Pe++){const ft=Me[Pe];ft!=="constructor"&&(Te[ft]=Ye[ft])}typeof Ye.$convert>"u"&&typeof Ye.convert=="function"&&(Te.$convert=Ye.convert),H(Ye,Te),_e(Ye,Te),Y(Te),Te.super(E,Je)}});return Ie.$extend(mt),Ie}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),ee(a,a),a.backend_traits){const Ie=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const E of Ie)a["$"+E]=mt.prototype["$"+E];a.$$meta=mt}return H(a,a),_e(a,a),v(a,a),V(a,a),Y(a),a}return a};function c(a,ne,ee,H,_e){const v=Opal.klass(Opal.Object,a,ne,function(){});let V,je,Y;const Ie={};for(const Te in ee)Object.prototype.hasOwnProperty.call(ee,Te)&&function(Ye){const Me=ee[Ye];if(Ye==="postConstruct")V=Me;else if(Ye==="initialize")je=Me;else if(Ye==="constructor")Y=Me;else{H&&Object.prototype.hasOwnProperty.call(H,Ye)&&(Ie[Ye]=!0);let Pe;Opal.def(v,"$"+Ye,Pe=function(){let ft;_e&&Object.prototype.hasOwnProperty.call(_e,Ye)?ft=_e[Ye](arguments):ft=arguments;const Ve=Pe.$$p;return Ve&&(ft[ft.length]=function(){return Opal.yield1(Ve)},ft.length+=1,Pe.$$p=null),Me.apply(this,ft)})}}(Te);let E;typeof Y=="function"?E=function(){const Te=Array.from(arguments);for(let Me=0;Me<Te.length;Me++)typeof Te[Me]=="object"&&"$$smap"in Te[Me]&&(Te[Me]=r(Te[Me]));Te.unshift(null);const Ye=new(Function.prototype.bind.apply(Y,Te));Object.assign(this,Ye),typeof V=="function"&&V.bind(this)()}:typeof je=="function"?E=function(){const Te=Array.from(arguments);for(let Ye=0;Ye<Te.length;Ye++)typeof Te[Ye]=="object"&&"$$smap"in Te[Ye]&&(Te[Ye]=r(Te[Ye]));je.apply(this,Te),typeof V=="function"&&V.bind(this)()}:E=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",E)),typeof V=="function"&&V.bind(this)()},Opal.def(v,"$initialize",E);let Je;Opal.def(v,"super",Je=function(Te){if(typeof Te=="function")Opal.send(this,Opal.find_super_dispatcher(this,Te.name,Te));else{const Ye=Array.from(arguments);for(let Me=0;Me<Ye.length;Me++)typeof Ye[Me]=="object"&&(Ye[Me]=t(Ye[Me]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",E),Ye)}});for(const Te in ee)Je[Te]=function(){const Ye=Array.from(arguments);for(let Pe=0;Pe<Ye.length;Pe++)typeof Ye[Pe]=="object"&&typeof Ye[Pe].constructor=="function"&&Ye[Pe].constructor.name==="Object"&&(Ye[Pe]=t(Ye[Pe]));const Me=v.$$prototype;return Opal.send(Me,Opal.find_super_dispatcher(Me,Te,Me[`$${Te}`]),Ye)};if(H)for(const Te in H)Object.prototype.hasOwnProperty.call(H,Te)&&!Object.prototype.hasOwnProperty.call(Ie,Te)&&function(Ye){const Me=H[Ye];Opal.def(v,"$"+Ye,function(){return Me.apply(this,arguments)})}(Te);return v}const d=Opal.Asciidoctor.$$class;d.prototype.getCoreVersion=function(){return this.$$const.VERSION},d.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")}},d.prototype.convert=function(a,ne){typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8"));const ee=ne&&ne.to_file;typeof ee=="object"&&ee.constructor.name==="Writable"&&typeof ee.write=="function"&&(ee["$respond_to?"]=v=>v==="write",ee.$object_id=()=>"",ee.$write=function(v){this.write(v)});const H=i(ne),_e=this.$convert(a,H);return typeof ee=="object"&&ee.constructor.name==="Writable"&&typeof ee.end=="function"&&ee.end(),_e===Opal.nil?"":_e},d.prototype.convertFile=function(a,ne){return this.$convert_file(a,i(ne))},d.prototype.load=function(a,ne){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(ne))},d.prototype.loadFile=function(a,ne){return this.$load_file(a,i(ne))};const p=Opal.Asciidoctor.AbstractBlock;p.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},p.prototype.setContentModel=function(a){this.content_model=a},p.prototype.append=function(a){return this.$append(a),this},p.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},p.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},p.prototype.assignCaption=function(a,ne){a=typeof a>"u"?Opal.nil:a,ne=typeof ne>"u"?null:ne,this.$assign_caption(a,ne)},p.prototype.getCaptionedTitle=function(){return this.$captioned_title()},p.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},p.prototype.setStyle=function(a){this.style=a},p.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const ne=this.file;return ne===Opal.nil?void 0:ne},a.getDirectory=function(){const ne=this.dir;return ne===Opal.nil?void 0:ne},a.getPath=function(){const ne=this.path;return ne===Opal.nil?void 0:ne},a.getLineNumber=function(){const ne=this.lineno;return ne===Opal.nil?void 0:ne},a},p.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},p.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},p.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},p.prototype.getSubstitutions=function(){return this.subs},p.prototype.hasSubstitution=function(a){return this["$sub?"](a)},p.prototype.removeSubstitution=function(a){this.$remove_sub(a)},p.prototype.hasBlocks=function(){return this.blocks.length>0},p.prototype.getBlocks=function(){return this.blocks},p.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},p.prototype.convert=function(){return this.$convert()},p.prototype.findBy=function(a,ne){return typeof ne>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof ne=="function"?Opal.send(this,"find_by",[t(a)],ne):this.$find_by(t(a))},p.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},p.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},p.prototype.getSections=function(){return this.$sections()},p.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},p.prototype.setNumeral=function(a){this["$numeral="](a)},p.prototype.hasTitle=function(){return this["$title?"]()},p.prototype.getAlt=function(){return this.$alt()};const h=Opal.Asciidoctor.Section;h.create=function(a,ne,ee,H){return H&&H.attributes&&(H.attributes=t(H.attributes)),this.$new(a,ne,ee,t(H))},h.prototype.setLevel=function(a){this.level=a},h.prototype.getIndex=function(){return this.index},h.prototype.setIndex=function(a){this.index=a},h.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},h.prototype.setSectionName=function(a){this.sectname=a},h.prototype.getSectionNumeral=function(){return this.$sectnum()},h.prototype.getSectionNumber=h.prototype.getSectionNumeral,h.prototype.isSpecial=function(){return this.special},h.prototype.setSpecial=function(a){this.special=a},h.prototype.isNumbered=function(){return this.numbered},h.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},h.prototype.getName=function(){return this.getTitle()};const q=Opal.Asciidoctor.Block;q.create=function(a,ne,ee){return ee&&ee.attributes&&(ee.attributes=t(ee.attributes)),this.$new(a,ne,t(ee))},q.prototype.getSource=function(){return this.$source()},q.prototype.getSourceLines=function(){return this.lines};const j=Opal.Asciidoctor.AbstractNode;j.prototype.applySubstitutions=function(a,ne){return this.$apply_subs(a,ne)},j.prototype.resolveSubstitutions=function(a,ne,ee,H){typeof ne>"u"&&(ne="block"),typeof ee>"u"&&(ee=Opal.nil),typeof H>"u"&&(H=Opal.nil);const _e=this.$resolve_subs(a,ne,ee,H);return _e===Opal.nil?void 0:_e},j.prototype.resolveBlockSubstitutions=function(a,ne,ee){return this.resolveSubstitutions(a,"block",ne,ee)},j.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},j.prototype.getNodeName=function(){return this.node_name},j.prototype.getAttributes=function(){return r(this.attributes)},j.prototype.getAttribute=function(a,ne,ee){const H=this.$attr(a,ne,ee);return H===Opal.nil?void 0:H},j.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},j.prototype.isAttribute=function(a,ne,ee){return this["$attr?"](a,ne,ee)},j.prototype.setAttribute=function(a,ne,ee){return typeof ee>"u"&&(ee=!0),this.$set_attr(a,ne,ee)},j.prototype.removeAttribute=function(a){const ne=this.$remove_attr(a);return ne===Opal.nil?void 0:ne},j.prototype.getDocument=function(){return this.document},j.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},j.prototype.isInline=function(){return this["$inline?"]()},j.prototype.isBlock=function(){return this["$block?"]()},j.prototype.isRole=function(a){return this["$role?"](a)},j.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},j.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},j.prototype.hasRole=function(a){return this["$has_role?"](a)},j.prototype.getRoles=function(){return this.$roles()},j.prototype.addRole=function(a){return this.$add_role(a)},j.prototype.removeRole=function(a){return this.$remove_role(a)},j.prototype.isReftext=function(){return this["$reftext?"]()},j.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},j.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},j.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},j.prototype.setId=function(a){this.id=a},j.prototype.isOption=function(a){return this["$option?"](a)},j.prototype.setOption=function(a){return this.$set_option(a)},j.prototype.getIconUri=function(a){return this.$icon_uri(a)},j.prototype.getMediaUri=function(a,ne){return this.$media_uri(a,ne)},j.prototype.getImageUri=function(a,ne){return this.$image_uri(a,ne)},j.prototype.getConverter=function(){return this.$converter()},j.prototype.readContents=function(a,ne){return this.$read_contents(a,t(ne))},j.prototype.readAsset=function(a,ne){const ee=this.$read_asset(a,t(ne));return ee===Opal.nil?void 0:ee},j.prototype.normalizeWebPath=function(a,ne,ee){return this.$normalize_web_path(a,ne,ee)},j.prototype.normalizeSystemPath=function(a,ne,ee,H){return this.$normalize_system_path(a,ne,ee,t(H))},j.prototype.normalizeAssetPath=function(a,ne,ee){return this.$normalize_asset_path(a,ne,ee)};const G=Opal.Asciidoctor.Document;G.prototype.append=function(a){return this["$<<"](a),this},G.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,ne=a.__proto__;return ne&&(typeof ne["$highlight?"]=="function"&&(ne.handlesHighlighting=function(){const ee=ne["$highlight?"]();return ee===Opal.nil?!1:ee}),typeof ne["$docinfo?"]=="function"&&(ne.hasDocinfo=ne["$docinfo?"]),typeof ne.$format=="function"&&(ne.format=function(ee,H,_e){return this.$format(ee,H,t(_e))}),typeof ne.$docinfo=="function"&&(ne.docinfo=function(ee,H,_e){return this.$docinfo(ee,H,t(_e))})),a},G.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},G.prototype.getImages=function(){return this.catalog.$$smap.images},G.prototype.getLinks=function(){return this.catalog.$$smap.links},G.prototype.hasFootnotes=function(){return this["$footnotes?"]()},G.prototype.getFootnotes=function(){return this.$footnotes()},G.prototype.getHeader=function(){return this.header},G.prototype.setAttribute=function(a,ne){return this.$set_attribute(a,ne)},G.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},G.prototype.convert=function(a){const ne=this.$convert(t(a));return ne===Opal.nil?"":ne},G.prototype.write=function(a,ne){return this.$write(a,ne)},G.prototype.getAuthor=function(){return this.$author()},G.prototype.getSource=function(){return this.$source()},G.prototype.getSourceLines=function(){return this.$source_lines()},G.prototype.isNested=function(){return this["$nested?"]()},G.prototype.isEmbedded=function(){return this["$embedded?"]()},G.prototype.hasExtensions=function(){return this["$extensions?"]()},G.prototype.getDoctype=function(){return this.doctype},G.prototype.getBackend=function(){return this.backend},G.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},G.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},G.prototype.setTitle=function(a){return this["$title="](a)},G.prototype.getDocumentTitle=function(a){const ne=this.$doctitle(t(a));return ne===Opal.nil?void 0:ne},G.prototype.getDoctitle=G.prototype.getDocumentTitle,G.prototype.getCatalog=function(){return r(this.catalog)},G.prototype.getReferences=G.prototype.getCatalog,G.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},G.prototype.getRevdate=function(){return this.getRevisionDate()},G.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},G.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},G.prototype.setHeaderAttribute=function(a,ne,ee){return typeof ee>"u"&&(ee=!0),typeof ne>"u"&&(ne=""),this.$set_header_attribute(a,ne,ee)},G.prototype.getAuthors=function(){return this.$authors()};const pe=G.Footnote;pe.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},pe.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},pe.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const ke=G.ImageReference;ke.prototype.getTarget=function(){return this.$$data.target},ke.prototype.getImagesDirectory=function(){const a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};const $e=G.Author;$e.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},$e.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},$e.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},$e.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},$e.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},$e.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},G.RevisionInfo=function(a,ne,ee){this.date=a,this.number=ne,this.remark=ee};const W=G.RevisionInfo;W.prototype.getDate=function(){return this.date},W.prototype.getNumber=function(){return this.number},W.prototype.getRemark=function(){return this.remark},W.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const Z=Opal.Asciidoctor.SafeMode;Z.getValueForName=function(a){return this.$value_for_name(a)},Z.getNameForValue=function(a){const ne=this.$name_for_value(a);return ne===Opal.nil?void 0:ne},Z.getNames=function(){return this.$names()};const ve=Opal.Asciidoctor.Callouts;ve.create=function(){return this.$new()},ve.prototype.register=function(a){return this.$register(a)},ve.prototype.readNextId=function(){return this.$read_next_id()},ve.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},ve.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let ne=0;ne<a.length;ne++){const ee=a[ne];if(ee&&ee.length>0)for(let H=0;H<ee.length;H++)typeof ee[H]=="object"&&"$$smap"in ee[H]&&(ee[H]=r(ee[H]))}return a},ve.prototype.getListIndex=function(){return this.list_index},ve.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let ne=0;ne<a.length;ne++)typeof a[ne]=="object"&&"$$smap"in a[ne]&&(a[ne]=r(a[ne]));return a},ve.prototype.nextList=function(){return this.$nextList()},ve.prototype.rewind=function(){return this.$rewind()},G.prototype.getRevisionInfo=function(){return new G.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},G.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},G.prototype.getNotitle=function(){return this.$notitle()},G.prototype.getNoheader=function(){return this.$noheader()},G.prototype.getNofooter=function(){return this.$nofooter()},G.prototype.hasHeader=function(){return this["$header?"]()},G.prototype.playbackAttributes=function(a){if(a=t(a),a){const ne=a["$[]"]("attribute_entries");if(ne&&Array.isArray(ne)){const ee=[];for(let H=0;H<ne.length;H++){const _e=ne[H];_e&&typeof _e=="object"&&_e.constructor.name==="Object"&&(_e.$name=function(){return this.name},_e.$value=function(){return this.value},_e.$negate=function(){return this.negate}),ee.push(_e)}a["$[]="]("attribute_entries",ee)}}this.$playback_attributes(a)},G.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},G.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},G.prototype.restoreAttributes=function(){return this.$restore_attributes()},G.prototype.parse=function(a){return this.$parse(a)},G.prototype.getDocinfo=function(a,ne){return this.$docinfo(a,ne)},G.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},G.prototype.incrementAndStoreCounter=function(a,ne){return this.$increment_and_store_counter(a,ne)},G.prototype.counterIncrement=G.prototype.incrementAndStoreCounter,G.prototype.counter=function(a,ne){return this.$counter(a,ne)},G.prototype.getSafe=function(){return this.safe},G.prototype.getCompatMode=function(){return this.compat_mode},G.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},G.prototype.setSourcemap=function(a){this.sourcemap=a},G.prototype.getCounters=function(){return r(this.counters)},G.prototype.getCallouts=function(){return this.$callouts()},G.prototype.getBaseDir=function(){return this.base_dir},G.prototype.getOptions=function(){return r(this.options)},G.prototype.getOutfilesuffix=function(){return this.outfilesuffix},G.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},G.prototype.getReader=function(){return this.reader},G.prototype.getConverter=function(){return this.converter},G.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const ae=G.Title;ae.prototype.getMain=function(){return this.main},ae.prototype.getCombined=function(){return this.combined},ae.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},ae.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},ae.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const ye=Opal.Asciidoctor.Inline;ye.create=function(a,ne,ee,H){return this.$new(a,ne,ee,i(H))},ye.prototype.convert=function(){return this.$convert()},ye.prototype.getText=function(){const a=this.$text();return a===Opal.nil?void 0:a},ye.prototype.getType=function(){return this.$type()},ye.prototype.getTarget=function(){const a=this.$target();return a===Opal.nil?void 0:a},ye.prototype.getAlt=function(){return this.$alt()};const le=Opal.Asciidoctor.List;le.prototype.hasItems=function(){return this["$items?"]()},le.prototype.getItems=function(){return this.blocks};const we=Opal.Asciidoctor.ListItem;we.prototype.getText=function(){return this.$text()},we.prototype.setText=function(a){return this["$text="](a)},we.prototype.hasText=function(){return this["$text?"]()},we.prototype.getMarker=function(){return this.marker},we.prototype.setMarker=function(a){this.marker=a},we.prototype.getList=function(){return this.$list()},we.prototype.getParent=we.prototype.getList;const ce=Opal.Asciidoctor.Reader;ce.prototype.pushInclude=function(a,ne,ee,H,_e){return this.$push_include(a,ne,ee,H,t(_e))},ce.prototype.getCursor=function(){return this.$cursor()},ce.prototype.getLines=function(){return this.$lines()},ce.prototype.getString=function(){return this.$string()},ce.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},ce.prototype.isEmpty=function(){return this["$empty?"]()},ce.prototype.peekLine=function(a){a=a||!1;const ne=this.$peek_line(a);return ne===Opal.nil?void 0:ne},ce.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},ce.prototype.readLines=function(){return this.$read_lines()},ce.prototype.read=function(){return this.$read()},ce.prototype.advance=function(){return this.$advance()};const ze=Opal.Asciidoctor.Reader.Cursor;ze.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},ze.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},ze.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},ze.prototype.getLineNumber=function(){return this.lineno};function X(a,ne){const ee=Opal.const_get_qualified(Opal.Logger,"Formatter");return c(ee,a,ne,{},{call:function(H){for(let _e=0;_e<H.length;_e++)typeof H[_e]=="object"&&"$$smap"in H[_e]&&(H[_e]=r(H[_e]));return H}})}function Ae(a,ne){const ee=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return c(ee,a,ne,{},{add:function(H){if(H.length>=2&&typeof H[2]=="object"&&"$$smap"in H[2]){const _e=H[2],v=r(_e);v.getText=function(){return this.text},v.getSourceLocation=function(){return this.source_location},v.$inspect=function(){const V=this.getSourceLocation();return V?V.getPath()+": line "+V.getLineNumber()+": "+this.getText():this.getText()},H[2]=v}return H.length>=1&&(H[1]=H[1]===Opal.nil?void 0:H[1]),H}})}const oe=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=oe,oe.getLogger=function(){return this.$logger()},oe.setLogger=function(a){this["$logger="](a)},oe.newLogger=function(a,ne){return Ae(a,ne).$new()},oe.newFormatter=function(a,ne){return X(a,ne).$new()};const k=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=k,k.get=function(a){return k.$constants()[a]};const Se=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Se,Se.prototype.call=function(a,ne,ee,H){return this.$call(k.get(a),ne,ee,H)};const F=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=F,F.create=function(){return this.$new()},F.prototype.getMessages=function(){const a=this.messages,ne=[];for(let ee=0;ee<a.length;ee++){const H=a[ee],_e=r(H);typeof _e.message=="string"?_e.getText=function(){return this.message}:(_e.message=r(_e.message),_e.getText=function(){return this.message.text}),_e.getSeverity=function(){return this.severity.toString()},_e.getSourceLocation=function(){return this.message.source_location},ne.push(_e)}return ne};const de=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=de,de.getLogger=function(){return oe.$logger()},de.createLogMessage=function(a,ne){return de.prototype.$message_with_context(a,t(ne))},ce.prototype.getLogger=de.getLogger,ce.prototype.createLogMessage=de.createLogMessage,j.prototype.getLogger=de.getLogger,j.prototype.createLogMessage=de.createLogMessage;const D=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=D,D.prototype.getMaxSeverity=function(){const a=this.max_severity;return a===Opal.nil?void 0:a},D.prototype.getFormatter=function(){return this.formatter},D.prototype.setFormatter=function(a){this.formatter=a},D.prototype.getLevel=function(){return this.level},D.prototype.setLevel=function(a){this.level=a},D.prototype.getProgramName=function(){return this.progname},D.prototype.setProgramName=function(a){this.progname=a};const qe=Opal.const_get_qualified("::","Logger"),te=function(a,ne,ee){a["$"+ne](ee)};qe.prototype.add=function(a,ne,ee){const H=typeof a=="string"?k[a.toUpperCase()]:a;this.$add(H,ne,ee)},qe.prototype.log=qe.prototype.add,qe.prototype.debug=function(a){te(this,"debug",a)},qe.prototype.info=function(a){te(this,"info",a)},qe.prototype.warn=function(a){te(this,"warn",a)},qe.prototype.error=function(a){te(this,"error",a)},qe.prototype.fatal=function(a){te(this,"fatal",a)},qe.prototype.isDebugEnabled=function(){return this["$debug?"]()},qe.prototype.isInfoEnabled=function(){return this["$info?"]()},qe.prototype.isWarnEnabled=function(){return this["$warn?"]()},qe.prototype.isErrorEnabled=function(){return this["$error?"]()},qe.prototype.isFatalEnabled=function(){return this["$fatal?"]()};const B=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=B,B.create=function(){return this.$new()},B.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;const w=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=w,w.create=function(){return this.$new()},w.prototype.printReport=function(a,ne){let ee;if(a)if(typeof a.$add=="function")ee=function(H){a.$add(1,H)};else if(typeof a.log=="function")ee=a.log;else if(typeof a.write=="function")ee=function(H){a.write(H,"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 ee=function(H){Opal.gvars.stdout.$write(H)};ne&&ee("Input file: "+ne),ee(" Time to read and parse source: "+this.$read_parse().toFixed(2)),ee(" Time to convert document: "+this.$convert().toFixed(2)),ee(" 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,ne){const ee=typeof a=="string"?a:a[0];if(typeof ne=="function"){const v=ne.prototype,V=Object.getOwnPropertyNames(v);ne={};for(const je in V){const Y=V[je];ne[Y]=v[Y]}}const H=c(l,ee,ne,{},{format:function(_e){return _e.length>=2&&typeof _e[2]=="object"&&"$$smap"in _e[2]&&(_e[2]=r(_e[2])),_e.length>=1&&(_e[1]=_e[1]===Opal.nil?void 0:_e[1]),_e},highlight:function(_e){if(_e.length>=3&&typeof _e[3]=="object"&&"$$smap"in _e[3]){let v=_e[3];v=r(v);for(const V in v){const je=v[V];if(V==="callouts"){const Y=n(je);for(const Ie in Y){const E=Y[Ie];for(let Je=0;Je<E.length;Je++){const Te=E[Je];for(let Ye=0;Ye<Te.length;Ye++)Te[Ye]=Te[Ye]===Opal.nil?void 0:Te[Ye]}}v[V]=Y}else v[V]=je===Opal.nil?void 0:je}_e[3]=v}return _e.length>=2&&(_e[2]=_e[2]===Opal.nil?void 0:_e[2]),_e}});for(const _e in ne)Object.prototype.hasOwnProperty.call(ne,_e)&&function(v){const V=ne[v];v==="handlesHighlighting"?Opal.def(H,"$highlight?",function(){return V.call()}):v==="hasDocinfo"&&Opal.def(H,"$docinfo?",function(je){return V.apply(this,[je])})}(_e);return Opal.def(H,"$name",function(){return ee}),$.$register(H,a),H},$.get=function(a){const ne=$.$for(a);return ne===Opal.nil?void 0:ne},$.for=$.get;const l=Opal.const_get_qualified($,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=l,l.prototype.registerFor=function(a){$.$register(this,a)};const o=Opal.Asciidoctor.Table;o.create=function(a,ne){return this.$new(a,t(ne))},o.prototype.getCaption=function(){return this.caption},o.prototype.getRows=function(){return this.rows},o.prototype.getColumns=function(){return this.columns},o.prototype.getHeadRows=function(){return this.rows.head},o.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},o.prototype.getBodyRows=function(){return this.rows.body},o.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},o.prototype.getFootRows=function(){return this.rows.foot},o.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},o.prototype.hasHeaderOption=function(){return this.has_header_option},o.prototype.hasFooterOption=function(){return this.isOption("footer")},o.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},o.prototype.getRowCount=function(){return this.getAttribute("rowcount")},o.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},o.prototype.getColumnCount=function(){return this.getAttribute("colcount")},o.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const f=Opal.Asciidoctor.Table.Rows;f.create=function(a,ne,ee){return this.$new(a,ne,ee)},f.prototype.getHead=function(){return this.head},f.prototype.getFoot=function(){return this.foot},f.prototype.getBody=function(){return this.body},f.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const _=Opal.Asciidoctor.Table.Column;_.create=function(a,ne,ee){return this.$new(a,ne,t(ee))},_.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 A=Opal.Asciidoctor.Table.Cell;A.create=function(a,ne,ee,H){return this.$new(a,ne,t(ee),t(H))},A.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},A.prototype.setColumnSpan=function(a){return this["$colspan="](a)},A.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},A.prototype.setRowSpan=function(a){return this["$rowspan="](a)},A.prototype.getContent=function(){return this.$content()},A.prototype.getText=function(){return this.$text()},A.prototype.getSource=function(){return this.$source()},A.prototype.getLines=function(){return this.$lines()},A.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},A.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},A.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},A.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},A.prototype.getWidth=function(){return this.getAttribute("width")},A.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},A.prototype.getInnerDocument=function(){const a=this.inner_document;return a===Opal.nil?void 0:a};const T=Opal.Asciidoctor.Converter.TemplateConverter;if(T){Opal.Asciidoctor.TemplateConverter=T,T.create=function(ne,ee,H){H&&H.template_cache&&(H.template_cache=t(H.template_cache)),this.$new(ne,ee,t(H))},T.getCache=function(){const ne=r(this.caches);if(ne){if(ne.scans){ne.scans=r(ne.scans);for(const ee in ne.scans)ne.scans[ee]=r(ne.scans[ee])}ne.templates&&(ne.templates=r(ne.templates))}return ne},T.clearCache=function(){this.$clear_caches()},T.prototype.convert=function(ne,ee,H){return this.$convert(ne,ee,t(H))},T.prototype.handles=function(ne){return this["$handles?"](ne)},T.prototype.getContentOnly=function(ne){return this.$content_only(ne)},T.prototype.skip=function(ne){this.$skip(ne)},T.prototype.getTemplates=function(){return r(this.$templates())},T.prototype.register=function(ne,ee){return this.$register(ne,ee)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(ne,ee){if(typeof ne=="string")this.registry[ne]=ee;else for(let H=0;H<ne.length;H++){const _e=ne[H];this.registry[_e]=ee}}}const J=Opal.Asciidoctor.Converter.CompositeConverter;J&&(Opal.Asciidoctor.CompositeConverter=J,J.prototype.convert=function(a,ne,ee){return this.$convert(a,ne,t(ee))},J.prototype.getContentOnly=function(a){return this.$content_only(a)},J.prototype.skip=function(a){this.$skip(a)},J.prototype.getConverters=function(){return this.converters},J.prototype.getConverter=function(a){const ne=this.$converter_for(a);return ne===Opal.nil?void 0:ne},J.prototype.findConverter=function(a){return this.$find_converter(a)});const Fe=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=Fe,Fe.prototype.convert=function(a,ne,ee){return this.$convert(a,ne,t(ee))},Fe.create=function(a,ne){return this.$create(a,t(ne))};const it=Opal.Asciidoctor.Converter.Factory,ht=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=it;const mt=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=mt,it.register=function(a,ne){const ee=[s(a)].concat(ne);return Fe.$register.apply(Fe,ee)},it.getDefault=function(a){return this.$default(a)},it.prototype.create=function(a,ne){return this.$create(a,t(ne))},it.getRegistry=function(){return r(Fe.$registry())},it.for=function(a){const ne=Fe.$for(a);return ne===Opal.nil?void 0:ne},it.unregisterAll=function(){const a=Fe.DefaultFactory.$$cvars["@@registry"];Fe.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const Rt=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=Rt,Rt.create=function(){return this.$new()},Rt.prototype.convert=function(a,ne,ee){return this.$convert(a,ne,ee)};const wt=function(a){return a.$$arity=a.length,a},Mt=function(a,ne,ee,H){return typeof ee=="object"||ee.$$is_class?a["$"+ne](ee,H):Opal.send(a,ne,H&&[H],wt(ee))},At=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=At,At.create=function(a,ne){return typeof a=="function"&&typeof ne>"u"?Opal.send(this,"create",null,wt(a)):typeof ne=="function"?Opal.send(this,"create",[a],wt(ne)):this.$create()},At.register=function(a,ne){return typeof a=="function"&&typeof ne>"u"?Opal.send(this,"register",null,wt(a)):Opal.send(this,"register",[a],wt(ne))},At.getGroups=function(){return r(this.$groups())},At.unregisterAll=function(){this.$unregister_all()},At.unregister=function(){const a=Array.prototype.concat.apply([],arguments),ne=this.$groups(),ee={};let H=0;const _e=ne.$$keys;for(;H<_e.length;H++){const v=_e[H];ee[v.toString()]=v}for(let v=0;v<a.length;v++){const V=a[v];V in ee&&Opal.hash_delete(ne,ee[V])}};const qt=At.Registry;qt.prototype.getGroups=At.getGroups,qt.prototype.unregisterAll=function(){this.groups=Opal.hash()},qt.prototype.unregister=At.unregister,qt.prototype.prefer=function(a,ne){return arguments.length===1&&(ne=a,a=null),typeof ne=="object"||ne.$$is_class?this.$prefer(a,ne):Opal.send(this,"prefer",a&&[a],wt(ne))},qt.prototype.block=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"block",ne,a)},qt.prototype.inlineMacro=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"inline_macro",ne,a)},qt.prototype.includeProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"include_processor",ne,a)},qt.prototype.blockMacro=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"block_macro",ne,a)},qt.prototype.treeProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"tree_processor",ne,a)},qt.prototype.postprocessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"postprocessor",ne,a)},qt.prototype.preprocessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"preprocessor",ne,a)},qt.prototype.docinfoProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Mt(this,"docinfo_processor",ne,a)},qt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},qt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},qt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},qt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},qt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},qt.prototype.hasBlocks=function(){return this["$blocks?"]()},qt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},qt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},qt.prototype.getPreprocessors=function(){return this.$preprocessors()},qt.prototype.getTreeProcessors=function(){return this.$tree_processors()},qt.prototype.getIncludeProcessors=function(){return this.$include_processors()},qt.prototype.getPostprocessors=function(){return this.$postprocessors()},qt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},qt.prototype.getBlocks=function(){return this.block_extensions.$values()},qt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},qt.prototype.getInlineMacros=function(){return this.$inline_macros()},qt.prototype.getInlineMacroFor=function(a){const ne=this["$registered_for_inline_macro?"](a);return ne===!1?void 0:ne},qt.prototype.getBlockFor=function(a,ne){if(typeof ne>"u"){const H=this.$find_block_extension(a);return H===Opal.nil?void 0:H}const ee=this["$registered_for_block?"](a,ne);return ee===!1?void 0:ee},qt.prototype.getBlockMacroFor=function(a){const ne=this["$registered_for_block_macro?"](a);return ne===!1?void 0:ne};const It=At.Processor;It.prototype.prepend=function(){this.$option("position",">>")},It.prototype.process=function(a){const ne={apply:function(H,_e,v){for(let V=0;V<v.length;V++)typeof v[V]=="object"&&"$$smap"in v[V]&&(v[V]=r(v[V]));return H.apply(_e,v)}},ee=new Proxy(a,ne);return Opal.send(this,"process",null,wt(ee))},It.prototype.named=function(a){return this.$named(a)},It.prototype.createBlock=function(a,ne,ee,H,_e){return this.$create_block(a,ne,ee,t(H),t(_e))},It.prototype.createList=function(a,ne,ee){return this.$create_list(a,ne,t(ee))},It.prototype.createListItem=function(a,ne){return this.$create_list_item(a,ne)},It.prototype.createImageBlock=function(a,ne,ee){return this.$create_image_block(a,t(ne),t(ee))},It.prototype.createParagraph=function(a,ne,ee,H){return this.$create_paragraph(a,ne,t(ee),t(H))},It.prototype.createOpenBlock=function(a,ne,ee,H){return this.$create_open_block(a,ne,t(ee),t(H))},It.prototype.createExampleBlock=function(a,ne,ee,H){return this.$create_example_block(a,ne,t(ee),t(H))},It.prototype.createPassBlock=function(a,ne,ee,H){return this.$create_pass_block(a,ne,t(ee),t(H))},It.prototype.createListingBlock=function(a,ne,ee,H){return this.$create_listing_block(a,ne,t(ee),t(H))},It.prototype.createLiteralBlock=function(a,ne,ee,H){return this.$create_literal_block(a,ne,t(ee),t(H))},It.prototype.createAnchor=function(a,ne,ee){return ee&&ee.attributes&&(ee.attributes=t(ee.attributes)),this.$create_anchor(a,ne,t(ee))},It.prototype.createInlinePass=function(a,ne,ee){return ee&&ee.attributes&&(ee.attributes=t(ee.attributes)),this.$create_inline_pass(a,ne,t(ee))},It.prototype.createInline=function(a,ne,ee,H){return H&&H.attributes&&(H.attributes=t(H.attributes)),this.$create_inline(a,ne,ee,t(H))},It.prototype.parseContent=function(a,ne,ee){return this.$parse_content(a,ne,t(ee))},It.prototype.parseAttributes=function(a,ne,ee){return ee&&ee.attributes&&(ee.attributes=t(ee.attributes)),r(this.$parse_attributes(a,ne,t(ee)))},It.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},It.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)},It.prototype.resolvesAttributes=It.prototype.resolveAttributes,It.prototype.getConfig=function(){return r(this.config)},It.prototype.option=function(a,ne){this.$option(a,ne)};const rt=At.BlockProcessor;rt.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},rt.prototype.onContext=function(a){return this.$on_context(a)},rt.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},rt.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},rt.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const Re=At.BlockMacroProcessor;Re.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Re.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Re.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const Be=At.InlineMacroProcessor;Be.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Be.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Be.prototype.parseContentAs=function(a){this.$parse_content_as(a)},Be.prototype.matchFormat=function(a){this.$match_format(a)},Be.prototype.match=function(a){this.$match(a)};const Ge=At.IncludeProcessor;Ge.prototype.handles=function(a){return Opal.send(this,"handles?",null,wt(a))},Ge.prototype.prefer=function(){this.$prefer()};const b=At.TreeProcessor;b.prototype.prefer=function(){this.$prefer()};const R=At.Postprocessor;R.prototype.prefer=function(){this.$prefer()};const me=At.Preprocessor;me.prototype.prefer=function(){this.$prefer()};const De=At.DocinfoProcessor;De.prototype.prefer=function(){this.$prefer()},De.prototype.atLocation=function(a){this.$at_location(a)};function Qe(a,ne,ee){const H=Opal.const_get_qualified(At,a);return c(H,ne,ee,{"handles?":function(){return!0}})}At.createPostprocessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("Postprocessor",a,ne)},At.newPostprocessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createPostprocessor(a,ne).$new()},At.createPreprocessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("Preprocessor",a,ne)},At.newPreprocessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createPreprocessor(a,ne).$new()},At.createTreeProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("TreeProcessor",a,ne)},At.newTreeProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createTreeProcessor(a,ne).$new()},At.createIncludeProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("IncludeProcessor",a,ne)},At.newIncludeProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createIncludeProcessor(a,ne).$new()},At.createDocinfoProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("DocinfoProcessor",a,ne)},At.newDocinfoProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createDocinfoProcessor(a,ne).$new()},At.createBlockProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("BlockProcessor",a,ne)},At.newBlockProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createBlockProcessor(a,ne).$new()},At.createInlineMacroProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("InlineMacroProcessor",a,ne)},At.newInlineMacroProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createInlineMacroProcessor(a,ne).$new()},At.createBlockMacroProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),Qe("BlockMacroProcessor",a,ne)},At.newBlockMacroProcessor=function(a,ne){return arguments.length===1&&(ne=a,a=null),this.createBlockMacroProcessor(a,ne).$new()};var ct="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return ct},Opal.Asciidoctor}const G3=Y3();function sg(e){return Wm(G3.convert(String(e??""),{standalone:!1}))}function K3({node:e}){return g0(e),Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx(s1,{html:sg(ya(e.value))})]})}function X3({chunk:e}){return Oe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:sg(e.value)}})}function ag(e,t,r='"'){const n=[];let i=[],s="",c=!1,d=0;const p=()=>{i.push(s),s=""},h=()=>{p(),n.push(i),i=[]};for(;d<e.length;){const q=e[d];if(c){q===r?e[d+1]===r?(s+=r,d+=2):(c=!1,d++):(s+=q,d++);continue}q===r?(c=!0,d++):q===t?(p(),d++):q===`
|
|
599
|
+
`||q==="\r"?(q==="\r"&&e[d+1]===`
|
|
600
|
+
`&&d++,h(),d++):(s+=q,d++)}return(s!==""||i.length)&&h(),n}function Q3(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function lg(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 c=r.split(s).length-1;c>i&&(i=c,n=s)}return n}const Z3=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],of=()=>new URLSearchParams(window.location.search);function og(e){const t=e.get("header");return!(t==="false"||t==="0")}function u_(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function ug({rows:e,header:t}){if(!e.length)return Oe.jsx("p",{className:"csv-empty",children:"(empty)"});const r=e.reduce((s,c)=>Math.max(s,c.length),0),n=t?e[0]:null,i=t?e.slice(1):e;return Oe.jsx("div",{className:"csv-scroll",children:Oe.jsxs("table",{className:"csv-table",children:[n&&Oe.jsx("thead",{children:Oe.jsx("tr",{children:u_(n,r).map((s,c)=>Oe.jsx("th",{children:s},c))})}),Oe.jsx("tbody",{children:i.map((s,c)=>Oe.jsx("tr",{children:u_(s,r).map((d,p)=>Oe.jsx("td",{children:d},p))},c))})]})})}function J3({node:e}){const t=of(),r=og(t),n=String(ya(e.value)??""),i=Q3(t.get("sep"))??lg(n,e.format??null),s=ag(n,i);return Oe.jsxs("div",{className:"csv",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx(ug,{rows:s,header:r})]})}function O3({rerender:e}){const t=of(),r=t.get("sep")??"",n=og(t),i=(s,c)=>{const d=of();c?d.set(s,c):d.delete(s);const p=d.toString();window.history.replaceState({},"",window.location.pathname+(p?"?"+p:"")),e()};return Oe.jsxs("div",{className:"csv-toolbar",children:[Oe.jsxs("label",{children:["separator"," ",Oe.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:Z3.map(s=>Oe.jsx("option",{value:s.value,children:s.label},s.value))})]}),Oe.jsxs("label",{children:[Oe.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function e5({chunk:e}){const t=String(e.value??""),r=ag(t,lg(t,e.format??null));return Oe.jsx("div",{className:"csv",children:Oe.jsx(ug,{rows:r,header:!0})})}const cg=()=>new URLSearchParams(window.location.search),$g=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],W0="utf-8",t5=e=>$g.some(t=>t.value===e);function fg(){const e=cg().get("enc")??"";return t5(e)?e:W0}function dg(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function hg(e){const[t,r]=yt.useState(null),[n,i]=yt.useState(null);return yt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(va(e)).then(c=>c.arrayBuffer()).then(c=>!s&&r(new Uint8Array(c))).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{bytes:t,error:n}}function r5({node:e}){const{bytes:t,error:r}=hg(e.path),n=fg(),i=yt.useMemo(()=>t?dg(t,n):null,[t,n]);return r?Oe.jsxs("div",{className:"error",children:["text: ",r]}):i==null?Oe.jsx("div",{className:"loading",children:"reading…"}):Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx("pre",{className:"plaintext",children:i})]})}function n5({chunk:e}){const{bytes:t,error:r}=hg(e.path),n=yt.useMemo(()=>t?dg(t,W0):null,[t]);return r?Oe.jsxs("div",{className:"error",children:["text: ",r]}):n==null?Oe.jsx("div",{className:"loading",children:"reading…"}):Oe.jsx("pre",{className:"plaintext",children:n})}function i5({rerender:e}){const t=fg(),r=n=>{const i=cg();n&&n!==W0?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return Oe.jsxs("label",{className:"enc-control",children:["encoding"," ",Oe.jsx("select",{value:t,onChange:n=>r(n.target.value),children:$g.map(n=>Oe.jsx("option",{value:n.value,children:n.label},n.value))})]})}const s5={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:"Ÿ"},a5=e=>e<128?String.fromCharCode(e):s5[e]??String.fromCharCode(e),l5=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 o5(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function u5(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,c=1/0;const d=e.length;let p=0;const h=()=>s<c,q=ke=>{if(!ke||!h())return;const $e=r[r.length-1];$e&&$e.b===n.b&&$e.i===n.i&&$e.u===n.u?$e.text+=ke:r.push({text:ke,b:n.b,i:n.i,u:n.u})},j=()=>{h()&&(t.push(r),r=[])},G=(ke,$e)=>{switch(ke){case"b":n.b=$e!==0;break;case"i":n.i=$e!==0;break;case"ul":n.u=$e!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=$e??1;break;case"par":case"row":j();break;case"line":case"sect":q(`
|
|
601
|
+
`);break;case"tab":case"cell":q(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:l5.has(ke)&&(c=Math.min(c,s));break}};for(;p<d;){const ke=e[p];if(ke==="{")i.push({...n}),s++,p++;else if(ke==="}")s--,s<c&&(c=1/0),n=i.pop()??n,p++;else if(ke==="\\"){const $e=e[p+1];if($e==="\\"||$e==="{"||$e==="}")q($e),p+=2;else if($e==="*")c=Math.min(c,s),p+=2;else if($e==="'"){const W=parseInt(e.substr(p+2,2),16);isNaN(W)||q(a5(W)),p+=4}else if($e==="~")q(" "),p+=2;else if($e==="-")p+=2;else if(/[a-zA-Z]/.test($e??"")){let W=p+1;for(;W<d&&/[a-zA-Z]/.test(e[W]);)W++;const Z=e.slice(p+1,W);let ve="";for(e[W]==="-"&&(ve+="-",W++);W<d&&/[0-9]/.test(e[W]);)ve+=e[W++];const ae=ve===""?null:parseInt(ve,10);if(e[W]===" "&&W++,p=W,Z==="u"&&ae!==null){h()&&q(String.fromCodePoint(ae<0?ae+65536:ae));for(let ye=n.uc;ye>0&&p<d;ye--)if(e[p]==="\\"&&e[p+1]==="'")p+=4;else if(e[p]==="\\")p+=2;else{if(e[p]==="{"||e[p]==="}")break;p++}}else G(Z,ae)}else p++}else ke==="\r"||ke===`
|
|
602
|
+
`||q(ke),p++}j();const pe=ke=>{let $e=o5(ke.text).replace(/\t/g," ").replace(/\n/g,"<br>");return ke.u&&($e=`<u>${$e}</u>`),ke.i&&($e=`<em>${$e}</em>`),ke.b&&($e=`<strong>${$e}</strong>`),$e};return t.filter(ke=>ke.some($e=>$e.text.trim()||$e.text.includes(`
|
|
603
|
+
`))).map(ke=>`<p>${ke.map(pe).join("")}</p>`).join(`
|
|
604
|
+
`)}function _g(e){const[t,r]=yt.useState(null),[n,i]=yt.useState(null);return yt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(va(e)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const d=new TextDecoder("windows-1252").decode(new Uint8Array(c));r(u5(d))}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{html:t,error:n}}function c5({node:e}){const{html:t,error:r}=_g(e.path);return r?Oe.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?Oe.jsx("div",{className:"loading",children:"reading RTF…"}):Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function $5({chunk:e}){const{html:t,error:r}=_g(e.path);return r?Oe.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?Oe.jsx("div",{className:"loading",children:"reading RTF…"}):Oe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function pg({path:e}){return Oe.jsxs("div",{className:"office-fallback",children:[Oe.jsxs("p",{children:["Legacy ",Oe.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",Oe.jsx("code",{children:".docx"})," files render in full."]}),Oe.jsxs("p",{children:[Oe.jsx("a",{className:"descend",href:va(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function f5({node:e}){return Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx(pg,{path:e.path})]})}function d5({chunk:e}){return Oe.jsx(pg,{path:e.path})}var Ur=Uint8Array,bn=Uint16Array,Y0=Int32Array,Bu=new Ur([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]),Pu=new Ur([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]),uf=new Ur([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mg=function(e,t){for(var r=new bn(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Y0(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}},gg=mg(Bu,2),vg=gg.b,cf=gg.r;vg[28]=258,cf[258]=28;var yg=mg(Pu,0),h5=yg.b,c_=yg.r,$f=new bn(32768);for(var $r=0;$r<32768;++$r){var qi=($r&43690)>>1|($r&21845)<<1;qi=(qi&52428)>>2|(qi&13107)<<2,qi=(qi&61680)>>4|(qi&3855)<<4,$f[$r]=((qi&65280)>>8|(qi&255)<<8)>>1}var oi=function(e,t,r){for(var n=e.length,i=0,s=new bn(t);i<n;++i)e[i]&&++s[e[i]-1];var c=new bn(t);for(i=1;i<t;++i)c[i]=c[i-1]+s[i-1]<<1;var d;if(r){d=new bn(1<<t);var p=15-t;for(i=0;i<n;++i)if(e[i])for(var h=i<<4|e[i],q=t-e[i],j=c[e[i]-1]++<<q,G=j|(1<<q)-1;j<=G;++j)d[$f[j]>>p]=h}else for(d=new bn(n),i=0;i<n;++i)e[i]&&(d[i]=$f[c[e[i]-1]++]>>15-e[i]);return d},is=new Ur(288);for(var $r=0;$r<144;++$r)is[$r]=8;for(var $r=144;$r<256;++$r)is[$r]=9;for(var $r=256;$r<280;++$r)is[$r]=7;for(var $r=280;$r<288;++$r)is[$r]=8;var xl=new Ur(32);for(var $r=0;$r<32;++$r)xl[$r]=5;var _5=oi(is,9,0),p5=oi(is,9,1),m5=oi(xl,5,0),g5=oi(xl,5,1),qc=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Un=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Mc=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},G0=function(e){return(e+7)/8|0},ju=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Ur(e.subarray(t,r))},v5=["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"],vn=function(e,t,r){var n=new Error(t||v5[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,vn),!r)throw n;return n},y5=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new Ur(0);var c=!r,d=c||t.i!=2,p=t.i;c&&(r=new Ur(i*3));var h=function(ht){var mt=r.length;if(ht>mt){var Rt=new Ur(Math.max(mt*2,ht));Rt.set(r),r=Rt}},q=t.f||0,j=t.p||0,G=t.b||0,pe=t.l,ke=t.d,$e=t.m,W=t.n,Z=i*8;do{if(!pe){q=Un(e,j,1);var ve=Un(e,j+1,3);if(j+=3,ve)if(ve==1)pe=p5,ke=g5,$e=9,W=5;else if(ve==2){var we=Un(e,j,31)+257,ce=Un(e,j+10,15)+4,ze=we+Un(e,j+5,31)+1;j+=14;for(var X=new Ur(ze),Ae=new Ur(19),oe=0;oe<ce;++oe)Ae[uf[oe]]=Un(e,j+oe*3,7);j+=ce*3;for(var k=qc(Ae),Se=(1<<k)-1,F=oi(Ae,k,1),oe=0;oe<ze;){var de=F[Un(e,j,Se)];j+=de&15;var ae=de>>4;if(ae<16)X[oe++]=ae;else{var D=0,qe=0;for(ae==16?(qe=3+Un(e,j,3),j+=2,D=X[oe-1]):ae==17?(qe=3+Un(e,j,7),j+=3):ae==18&&(qe=11+Un(e,j,127),j+=7);qe--;)X[oe++]=D}}var te=X.subarray(0,we),B=X.subarray(we);$e=qc(te),W=qc(B),pe=oi(te,$e,1),ke=oi(B,W,1)}else vn(1);else{var ae=G0(j)+4,ye=e[ae-4]|e[ae-3]<<8,le=ae+ye;if(le>i){p&&vn(0);break}d&&h(G+ye),r.set(e.subarray(ae,le),G),t.b=G+=ye,t.p=j=le*8,t.f=q;continue}if(j>Z){p&&vn(0);break}}d&&h(G+131072);for(var w=(1<<$e)-1,$=(1<<W)-1,l=j;;l=j){var D=pe[Mc(e,j)&w],o=D>>4;if(j+=D&15,j>Z){p&&vn(0);break}if(D||vn(2),o<256)r[G++]=o;else if(o==256){l=j,pe=null;break}else{var f=o-254;if(o>264){var oe=o-257,_=Bu[oe];f=Un(e,j,(1<<_)-1)+vg[oe],j+=_}var A=ke[Mc(e,j)&$],T=A>>4;A||vn(3),j+=A&15;var B=h5[T];if(T>3){var _=Pu[T];B+=Mc(e,j)&(1<<_)-1,j+=_}if(j>Z){p&&vn(0);break}d&&h(G+131072);var J=G+f;if(G<B){var Fe=s-B,it=Math.min(B,J);for(Fe+G<0&&vn(3);G<it;++G)r[G]=n[Fe+G]}for(;G<J;++G)r[G]=r[G-B]}}t.l=pe,t.p=l,t.b=G,t.f=q,pe&&(q=1,t.m=$e,t.d=ke,t.n=W)}while(!q);return G!=r.length&&c?ju(r,0,G):r.subarray(0,G)},di=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},La=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},Dc=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:wg,l:0};if(i==1){var c=new Ur(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(le,we){return le.f-we.f}),r.push({s:-1,f:25001});var d=r[0],p=r[1],h=0,q=1,j=2;for(r[0]={s:-1,f:d.f+p.f,l:d,r:p};q!=i-1;)d=r[r[h].f<r[j].f?h++:j++],p=r[h!=q&&r[h].f<r[j].f?h++:j++],r[q++]={s:-1,f:d.f+p.f,l:d,r:p};for(var G=s[0].s,n=1;n<i;++n)s[n].s>G&&(G=s[n].s);var pe=new bn(G+1),ke=ff(r[q-1],pe,0);if(ke>t){var n=0,$e=0,W=ke-t,Z=1<<W;for(s.sort(function(we,ce){return pe[ce.s]-pe[we.s]||we.f-ce.f});n<i;++n){var ve=s[n].s;if(pe[ve]>t)$e+=Z-(1<<ke-pe[ve]),pe[ve]=t;else break}for($e>>=W;$e>0;){var ae=s[n].s;pe[ae]<t?$e-=1<<t-pe[ae]++-1:++n}for(;n>=0&&$e;--n){var ye=s[n].s;pe[ye]==t&&(--pe[ye],++$e)}ke=t}return{t:new Ur(pe),l:ke}},ff=function(e,t,r){return e.s==-1?Math.max(ff(e.l,t,r+1),ff(e.r,t,r+1)):t[e.s]=r},$_=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new bn(++t),n=0,i=e[0],s=1,c=function(p){r[n++]=p},d=1;d<=t;++d)if(e[d]==i&&d!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(i),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(i);s=1,i=e[d]}return{c:r.subarray(0,n),n:t}},Fa=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},bg=function(e,t,r){var n=r.length,i=G0(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},f_=function(e,t,r,n,i,s,c,d,p,h,q){di(t,q++,r),++i[256];for(var j=Dc(i,15),G=j.t,pe=j.l,ke=Dc(s,15),$e=ke.t,W=ke.l,Z=$_(G),ve=Z.c,ae=Z.n,ye=$_($e),le=ye.c,we=ye.n,ce=new bn(19),ze=0;ze<ve.length;++ze)++ce[ve[ze]&31];for(var ze=0;ze<le.length;++ze)++ce[le[ze]&31];for(var X=Dc(ce,7),Ae=X.t,oe=X.l,k=19;k>4&&!Ae[uf[k-1]];--k);var Se=h+5<<3,F=Fa(i,is)+Fa(s,xl)+c,de=Fa(i,G)+Fa(s,$e)+c+14+3*k+Fa(ce,Ae)+2*ce[16]+3*ce[17]+7*ce[18];if(p>=0&&Se<=F&&Se<=de)return bg(t,q,e.subarray(p,p+h));var D,qe,te,B;if(di(t,q,1+(de<F)),q+=2,de<F){D=oi(G,pe,0),qe=G,te=oi($e,W,0),B=$e;var w=oi(Ae,oe,0);di(t,q,ae-257),di(t,q+5,we-1),di(t,q+10,k-4),q+=14;for(var ze=0;ze<k;++ze)di(t,q+3*ze,Ae[uf[ze]]);q+=3*k;for(var $=[ve,le],l=0;l<2;++l)for(var o=$[l],ze=0;ze<o.length;++ze){var f=o[ze]&31;di(t,q,w[f]),q+=Ae[f],f>15&&(di(t,q,o[ze]>>5&127),q+=o[ze]>>12)}}else D=_5,qe=is,te=m5,B=xl;for(var ze=0;ze<d;++ze){var _=n[ze];if(_>255){var f=_>>18&31;La(t,q,D[f+257]),q+=qe[f+257],f>7&&(di(t,q,_>>23&31),q+=Bu[f]);var A=_&31;La(t,q,te[A]),q+=B[A],A>3&&(La(t,q,_>>5&8191),q+=Pu[A])}else La(t,q,D[_]),q+=qe[_]}return La(t,q,D[256]),q+qe[256]},b5=new Y0([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),wg=new Ur(0),w5=function(e,t,r,n,i,s){var c=s.z||e.length,d=new Ur(n+c+5*(1+Math.ceil(c/7e3))+i),p=d.subarray(n,d.length-i),h=s.l,q=(s.r||0)&7;if(t){q&&(p[0]=s.r>>3);for(var j=b5[t-1],G=j>>13,pe=j&8191,ke=(1<<r)-1,$e=s.p||new bn(32768),W=s.h||new bn(ke+1),Z=Math.ceil(r/3),ve=2*Z,ae=function(wt){return(e[wt]^e[wt+1]<<Z^e[wt+2]<<ve)&ke},ye=new Y0(25e3),le=new bn(288),we=new bn(32),ce=0,ze=0,X=s.i||0,Ae=0,oe=s.w||0,k=0;X+2<c;++X){var Se=ae(X),F=X&32767,de=W[Se];if($e[F]=de,W[Se]=F,oe<=X){var D=c-X;if((ce>7e3||Ae>24576)&&(D>423||!h)){q=f_(e,p,0,ye,le,we,ze,Ae,k,X-k,q),Ae=ce=ze=0,k=X;for(var qe=0;qe<286;++qe)le[qe]=0;for(var qe=0;qe<30;++qe)we[qe]=0}var te=2,B=0,w=pe,$=F-de&32767;if(D>2&&Se==ae(X-$))for(var l=Math.min(G,D)-1,o=Math.min(32767,X),f=Math.min(258,D);$<=o&&--w&&F!=de;){if(e[X+te]==e[X+te-$]){for(var _=0;_<f&&e[X+_]==e[X+_-$];++_);if(_>te){if(te=_,B=$,_>l)break;for(var A=Math.min($,_-2),T=0,qe=0;qe<A;++qe){var J=X-$+qe&32767,Fe=$e[J],it=J-Fe&32767;it>T&&(T=it,de=J)}}}F=de,de=$e[F],$+=F-de&32767}if(B){ye[Ae++]=268435456|cf[te]<<18|c_[B];var ht=cf[te]&31,mt=c_[B]&31;ze+=Bu[ht]+Pu[mt],++le[257+ht],++we[mt],oe=X+te,++ce}else ye[Ae++]=e[X],++le[e[X]]}}for(X=Math.max(X,oe);X<c;++X)ye[Ae++]=e[X],++le[e[X]];q=f_(e,p,h,ye,le,we,ze,Ae,k,X-k,q),h||(s.r=q&7|p[q/8|0]<<3,q-=7,s.h=W,s.p=$e,s.i=X,s.w=oe)}else{for(var X=s.w||0;X<c+h;X+=65535){var Rt=X+65535;Rt>=c&&(p[q/8|0]=h,Rt=c),q=bg(p,q+1,e.subarray(X,Rt))}s.i=c}return ju(d,0,n+G0(q)+i)},x5=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),c=new Ur(s.length+e.length);c.set(s),c.set(e,s.length),e=c,i.w=s.length}return w5(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)},ni=function(e,t){return e[t]|e[t+1]<<8},Rn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Lc=function(e,t){return Rn(e,t)+Rn(e,t+4)*4294967296};function k5(e,t){return x5(e,t||{},0,0)}function S5(e,t){return y5(e,{i:2},t&&t.out,t&&t.dictionary)}var df=typeof TextDecoder<"u"&&new TextDecoder,A5=0;try{df.decode(wg,{stream:!0}),A5=1}catch{}var E5=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:ju(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 hf(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(df)return df.decode(e);var i=E5(e),s=i.s,r=i.r;return r.length&&vn(8),s}}var C5=function(e,t){return t+30+ni(e,t+26)+ni(e,t+28)},T5=function(e,t,r){var n=ni(e,t+28),i=ni(e,t+30),s=hf(e.subarray(t+46,t+46+n),!(ni(e,t+8)&2048)),c=t+46+n,d=z5(e,c,i,r,Rn(e,t+20),Rn(e,t+24),Rn(e,t+42)),p=d[0],h=d[1],q=d[2];return[ni(e,t+10),p,h,s,c+i+ni(e,t+32),q]},z5=function(e,t,r,n,i,s,c){var d=i==4294967295,p=s==4294967295,h=c==4294967295,q=t+r,j=d+p+h;if(n&&j){for(;t+4<q;t+=4+ni(e,t+2))if(ni(e,t)==1)return[d?Lc(e,t+4+8*p):i,p?Lc(e,t+4):s,h?Lc(e,t+4+8*(p+d)):c,1];n<2&&vn(13)}return[i,s,c,0]};function R5(e,t){for(var r={},n=e.length-22;Rn(e,n)!=101010256;--n)(!n||e.length-n>65558)&&vn(13);var i=ni(e,n+8);if(!i)return{};var s=Rn(e,n+16),c=Rn(e,n-20)==117853008;if(c){var d=Rn(e,n-12);c=Rn(e,d)==101075792,c&&(i=Rn(e,d+32),s=Rn(e,d+48))}for(var p=0;p<i;++p){var h=T5(e,s,c),q=h[0],j=h[1],G=h[2],pe=h[3],ke=h[4],$e=h[5],W=C5(e,$e);s=ke,q?q==8?r[pe]=S5(e.subarray(W,W+j),{out:new Ur(G)}):vn(14,"unknown compression type "+q):r[pe]=ju(e,W,W+j)}return r}const N5={},I5=N5?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function lo(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 Fc(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,c=r&63;return lo(n&63)+lo(i&63)+lo(s&63)+lo(c&63)}function q5(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=Fc(e[r],e[r+1],0):r+1===e.length?t+=Fc(e[r],0,0):t+=Fc(e[r],e[r+1],e[r+2]);return t}function M5(e){const t=k5(new TextEncoder().encode(e),{level:9});return`${I5}/svg/${q5(t)}`}function xg({source:e}){return Oe.jsx("div",{className:"filemedia",children:Oe.jsx("img",{className:"fileimage plantuml",src:M5(e),alt:"PlantUML diagram"})})}function D5({node:e}){return Oe.jsxs("div",{className:"text",children:[e.title&&Oe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Oe.jsx("p",{className:"chapter-subtitle",children:e.description}),Oe.jsx(xg,{source:String(ya(e.value)??"")})]})}function L5({chunk:e}){return Oe.jsx(xg,{source:String(e.value??"")})}const F5={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"}},B5={"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 P5(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 kg(e,t,r){if(t){const i=B5[t]??P5(t);if(i)return{glyph:i,cls:"t-fmt",title:t}}if(r==="dir")return{glyph:"📁",cls:"t-struct",title:"folder"};if(r==="yamlover")return{glyph:"🗂️",cls:"t-struct",title:"yamlover folder"};const n=F5[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const Nl="x-yamlover-tag";function j5(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=Qn(i);s&&s.format===Nl?t.push({path:s.path,label:Cg(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function U5(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 Zi(e){return e.color??U5(e.name)}const Sg="$yamloverMixed";function Ag(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[Sg];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function H5(e){if(typeof e=="string")return e;const t=e?.[Sg];return typeof t?.value=="string"?t.value:null}function Eg(e){const t=Ag(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function V5({tags:e,onNavigate:t}){return e.length===0?null:Oe.jsx(Oe.Fragment,{children:e.map(r=>Oe.jsx("a",{className:"tagtag",style:{background:Zi({name:r.label,color:r.color})},href:r.path,title:r.label,onClick:n=>{n.preventDefault(),t(r.path)},children:r.label},r.path))})}function Cg(e,t){if(t)return t;const r=an(e);return r.length?String(r[r.length-1]):e}const _f="yamlover:diff";function W5(e){window.dispatchEvent(new CustomEvent(_f,{detail:e}))}const K0=e=>e.paths.some(t=>t.endsWith(".yamlover"));function X0(e=()=>!0){const[t,r]=yt.useState(0);return yt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>c+1)};return window.addEventListener(_f,n),()=>window.removeEventListener(_f,n)},[]),t}const Y5="x-yamlover-annotation",G5="$yamloverMixed",K5=["large","small"],Tg="large",zg=()=>new URLSearchParams(window.location.search);function Rg(){const e=zg().get("view");return K5.includes(e??"")?e:Tg}function X5(e){const t=zg();e===Tg?t.delete("view"):t.set("view",e);const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function Q5({rerender:e}){return Oe.jsxs("label",{className:"enc-control",children:["view"," ",Oe.jsxs("select",{value:Rg(),onChange:t=>{X5(t.target.value),e()},children:[Oe.jsx("option",{value:"large",children:"large icons"}),Oe.jsx("option",{value:"small",children:"small icons"})]})]})}function Z5(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:Qn(r),up:!0})).filter(t=>t.link!=null)}function J5(e){const t=e.value;if(Array.isArray(t))return t.map((n,i)=>({key:`[${i}]`,link:Qn(n),raw:n}));if(!t||typeof t!="object")return[];const r=t[G5];return Object.keys(t).length===1&&r?.entries?r.entries.map((n,i)=>({key:n.key??`[${i}]`,link:Qn(n.value),raw:n.value})):Object.entries(t).map(([n,i])=>({key:n,link:Qn(i),raw:i}))}function d_(e){if(e==null)return"~";const t=String(e).split(`
|
|
605
|
+
`,1)[0];return t.length>80?t.slice(0,79)+"…":t}function O5(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function e6(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(),c=s.left+s.width/2,d=s.top+s.height/2,p=r==="ArrowDown";let h=t,q=1/0;for(let j=0;j<n;j++){const G=e[j];if(!G||j===t)continue;const pe=G.getBoundingClientRect(),ke=pe.left+pe.width/2,$e=pe.top+pe.height/2;if(p?$e<=d+1:$e>=d-1)continue;const W=Math.abs(ke-c)*2+Math.abs($e-d);W<q&&(q=W,h=j)}return h}function t6({it:e,active:t,setRef:r,onFocus:n,onNavigate:i}){const s=e.link,c=t?0:-1;if(!s)return Oe.jsxs("span",{className:"dirview-item",ref:r,tabIndex:c,onFocus:n,children:[Oe.jsx("span",{className:"dirview-icon t-bin",children:"•"}),Oe.jsxs("span",{className:"dirview-label",children:[e.key,": ",d_(e.raw)]})]});const d=kg(s.type??s.kind,s.format??null,s.concrete),p=e.up?jy(e.key):s.title??e.key,h=s.format===Nl?Oe.jsx("span",{className:"tagtag",style:{background:Zi({name:p,color:s.color})},children:p}):s.kind==="scalar"&&!O5(s.format)?Oe.jsxs(Oe.Fragment,{children:[p,": ",Oe.jsx("span",{className:"val",children:d_(s.value)})]}):p;return Oe.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:s.path,title:m0(s.path),ref:r,tabIndex:c,onFocus:n,onClick:q=>{q.preventDefault(),i(s.path)},children:[Oe.jsx("span",{className:"dirview-icon "+d.cls,title:d.title,children:d.glyph}),Oe.jsx("span",{className:"dirview-label",children:h})]})}function r6({node:e,onNavigate:t}){const r=e.format===Nl,[n,i]=yt.useState([]),s=X0(K0);yt.useEffect(()=>{if(i([]),!r)return;let W=!1;return by(e.path).then(Z=>{W||i(Z.map(Qn).filter(ve=>ve!=null))}).catch(()=>{}),()=>{W=!0}},[e.path,r,s]);const c=Z5(e.relations);let d=J5(e);if(r){d=d.filter(Z=>Z.link?.format!==Y5);const W=new Set(d.map(Z=>Z.link?.path).filter(Boolean));for(const Z of n)W.has(Z.path)||d.push({key:Cg(Z.path,Z.title),link:Z})}const p=[...c,...d],h=yt.useRef(null),q=yt.useRef([]);q.current.length=p.length;const[j,G]=yt.useState(0);yt.useEffect(()=>{j>p.length-1&&G(Math.max(0,p.length-1))},[p.length,j]);const pe=yt.useRef(!0);yt.useEffect(()=>{G(0),pe.current=!0},[e.path]),yt.useEffect(()=>{!pe.current||!p.length||(pe.current=!1,!h.current?.closest(".chunk-body")&&q.current[0]?.focus({preventScroll:!0}))},[p.length,e.path]);const ke=W=>{if(W.ctrlKey||W.altKey||W.metaKey||!p.length)return;if(W.key==="Enter"){const ve=p[j]?.link;ve&&(W.preventDefault(),t(ve.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(W.key))return;W.preventDefault();const Z=e6(q.current,j,W.key,p.length);Z!==j&&(G(Z),q.current[Z]?.focus())},$e=(r?H5(e.value):null)??e.description;return Oe.jsxs("div",{className:"explorerview",children:[$e&&Oe.jsx("div",{className:"dirhead",children:Oe.jsx("p",{className:"tagdesc",children:$e})}),Oe.jsxs("div",{ref:h,className:"dirview"+(Rg()==="large"?" dirview-lg":""),onKeyDown:ke,children:[p.map((W,Z)=>Oe.jsx(t6,{it:W,active:Z===j,setRef:ve=>{q.current[Z]=ve},onFocus:()=>G(Z),onNavigate:t},`${W.up?"^":""}${W.link?.path??W.key}#${Z}`)),p.length===0&&Oe.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const Ng="http://www.w3.org/1999/xlink",n6=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function i6(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(n6,"")}function s6(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Ig(e,t){if(e.nodeType===3)return s6(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>Ig(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(Ng,"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 h_({node:e}){const[t,r]=yt.useState(null),[n,i]=yt.useState(null);return yt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(va(e.path)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const d=new DOMParser().parseFromString(i6(c),"application/xml"),p=d.getElementsByTagName("parsererror")[0];if(p)throw new Error(p.textContent?.trim().split(`
|
|
606
|
+
`)[0]||"invalid FB2 XML");const h=new Map;for(const ae of Array.from(d.getElementsByTagNameNS("*","binary"))){const ye=ae.getAttribute("id");if(ye){const le=ae.getAttribute("content-type")||"image/jpeg";h.set(ye,`data:${le};base64,${(ae.textContent||"").replace(/\s+/g,"")}`)}}const q=d.getElementsByTagNameNS("*","title-info")[0],j=(ae,ye)=>ae?.getElementsByTagNameNS("*",ye)[0]?.textContent?.trim()||"",G=j(q,"book-title")||void 0,pe=q&&Array.from(q.getElementsByTagNameNS("*","author")).map(ae=>[j(ae,"first-name"),j(ae,"middle-name"),j(ae,"last-name")].filter(Boolean).join(" ")||j(ae,"nickname")).filter(Boolean).join(", "),ke=q?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],$e=(ke?.getAttributeNS(Ng,"href")||ke?.getAttribute("l:href")||"").replace(/^#/,""),W=Array.from(d.getElementsByTagNameNS("*","body")),Z=W.find(ae=>ae.getAttribute("name")!=="notes")||W[0],ve=Z?Array.from(Z.childNodes).map(ae=>Ig(ae,h)).join(""):"";r({title:G,author:pe||void 0,cover:$e?h.get($e):void 0,html:ve})}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e.path]),n?Oe.jsxs("div",{className:"error",children:["fb2: ",n]}):t?Oe.jsxs("div",{className:"text fb2",children:[t.cover&&Oe.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&Oe.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&Oe.jsx("p",{className:"chapter-subtitle",children:t.author}),Oe.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):Oe.jsx("div",{className:"loading",children:"loading FB2…"})}const __="http://www.w3.org/1999/xlink";function Bc(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 p_(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function m_({node:e}){const[t,r]=yt.useState(null),[n,i]=yt.useState(null);return yt.useEffect(()=>{let s=!1;const c=[];return r(null),i(null),fetch(va(e.path)).then(d=>d.arrayBuffer()).then(d=>{if(s)return;const p=R5(new Uint8Array(d)),h=ce=>p[ce]?hf(p[ce]):"",q=ce=>new DOMParser().parseFromString(h(ce),"application/xml"),j=q("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!j||!p[j])throw new Error("no OPF package document");const G=q(j),pe=p_(j),ke=new Map,$e=(ce,ze="")=>{if(!p[ce])return"";const X=ke.get(ce);if(X)return X;const Ae=URL.createObjectURL(new Blob([p[ce]],{type:ze}));return ke.set(ce,Ae),c.push(Ae),Ae},W=G.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),Z=Array.from(G.getElementsByTagNameNS("*","creator")).map(ce=>ce.textContent?.trim()).filter(Boolean).join(", "),ve=new Map;for(const ce of Array.from(G.getElementsByTagNameNS("*","item"))){const ze=ce.getAttribute("id"),X=ce.getAttribute("href");ze&&X&&ve.set(ze,{path:Bc(pe,X),type:ce.getAttribute("media-type")||""})}const ae=Array.from(G.getElementsByTagNameNS("*","meta")).find(ce=>ce.getAttribute("name")==="cover")?.getAttribute("content"),ye=ae?ve.get(ae):void 0,le=ye?$e(ye.path,ye.type):void 0,we=[];for(const ce of Array.from(G.getElementsByTagNameNS("*","itemref"))){const ze=ve.get(ce.getAttribute("idref")||"");if(!ze||!/html/.test(ze.type)||!p[ze.path])continue;const X=p_(ze.path),oe=new DOMParser().parseFromString(hf(p[ze.path]),"text/html").body;if(oe){oe.querySelectorAll("script, style, link").forEach(k=>k.remove());for(const k of Array.from(oe.querySelectorAll("img"))){const Se=k.getAttribute("src"),F=Se?$e(Bc(X,Se)):"";F?k.setAttribute("src",F):k.removeAttribute("src")}for(const k of Array.from(oe.querySelectorAll("image"))){const Se=k.getAttributeNS(__,"href")||k.getAttribute("href")||k.getAttribute("xlink:href"),F=Se?$e(Bc(X,Se)):"";F&&k.setAttributeNS(__,"xlink:href",F)}we.push(`<section class="epub-doc">${oe.innerHTML}</section>`)}}if(s){c.forEach(URL.revokeObjectURL);return}r({title:W,author:Z||void 0,cover:le,html:we.join(`
|
|
607
|
+
`)})}).catch(d=>!s&&i(String(d.message||d))),()=>{s=!0,c.forEach(URL.revokeObjectURL)}},[e.path]),n?Oe.jsxs("div",{className:"error",children:["epub: ",n]}):t?Oe.jsxs("div",{className:"text epub",children:[t.cover&&Oe.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&Oe.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&Oe.jsx("p",{className:"chapter-subtitle",children:t.author}),Oe.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):Oe.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function g_({node:e}){return Oe.jsx("iframe",{className:"filehtml",src:va(e.path),sandbox:"allow-same-origin",title:e.title??e.path})}const v_=yt.lazy(()=>Cn(()=>import("./pdf-DfMLV_Qu.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),y_=yt.lazy(()=>Cn(()=>import("./djvu-CD0wXtTp.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),b_=yt.lazy(()=>Cn(()=>import("./psd-CVyrW016.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),w_=yt.lazy(()=>Cn(()=>import("./tiff-BswbwivW.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),x_=yt.lazy(()=>Cn(()=>import("./heic-B_4kLge_.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),a6=yt.lazy(()=>Cn(()=>import("./docx-BP_KsH_m.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),l6=yt.lazy(()=>Cn(()=>import("./docx-BP_KsH_m.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),o6=yt.lazy(()=>Cn(()=>import("./spreadsheet-QnPEhgjy.js"),[]).then(e=>({default:e.SpreadsheetView}))),u6=yt.lazy(()=>Cn(()=>import("./spreadsheet-QnPEhgjy.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),c6=yt.lazy(()=>Cn(()=>import("./map-Cb9TTMM9.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),$6=yt.lazy(()=>Cn(()=>import("./map-Cb9TTMM9.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),f6=yt.lazy(()=>Cn(()=>import("./imagemap-j0tV2wtS.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),d6=yt.lazy(()=>Cn(()=>import("./imagemap-j0tV2wtS.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Fr=e=>Oe.jsx(yt.Suspense,{fallback:Oe.jsx("div",{className:"loading",children:"…"}),children:e}),Mi=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),h6=e=>({valueType:e.valueType??null,format:e.format??null,hasKeyed:!!e.hasKeyed,hasOrdinal:!!e.hasOrdinal}),wr=(...e)=>t=>t.format!==null&&e.includes(t.format),Q0={name:"explorer",accepts:wr("x-yamlover-tag"),specificity:2,render:(e,t)=>Oe.jsx(r6,{node:e,onNavigate:t}),config:e=>Oe.jsx(Q5,{rerender:e})},qg=e=>e==="dir"||e==="yamlover",_6=[{name:"chapter",accepts:wr("x-yamlover-chapter"),specificity:2,depth:2,tocView:m6,render:(e,t)=>Oe.jsx(Wy,{node:e,onNavigate:t})},{name:"marklower",accepts:e=>e.format==="text/marklower"||e.format===null&&e.valueType==="string",specificity:1,render:(e,t)=>Oe.jsx(V3,{node:e,onNavigate:t}),renderChunk:(e,t)=>Oe.jsx(W3,{chunk:e,onNavigate:t})},{name:"markdown",accepts:wr("text/markdown"),specificity:2,render:e=>Oe.jsx(L4,{node:e}),renderChunk:e=>Oe.jsx(F4,{chunk:e}),config:e=>Oe.jsx(wh,{rerender:e})},{name:"asciidoc",accepts:wr("text/asciidoc"),specificity:2,render:e=>Oe.jsx(K3,{node:e}),renderChunk:e=>Oe.jsx(X3,{chunk:e}),config:e=>Oe.jsx(wh,{rerender:e})},{name:"csv",accepts:wr("text/csv","text/tab-separated-values"),specificity:2,render:e=>Oe.jsx(J3,{node:e}),renderChunk:e=>Oe.jsx(e5,{chunk:e}),config:e=>Oe.jsx(O3,{rerender:e})},{name:"plaintext",accepts:wr("text/plain"),specificity:2,render:e=>Oe.jsx(r5,{node:e}),renderChunk:e=>Oe.jsx(n5,{chunk:e}),config:e=>Oe.jsx(i5,{rerender:e})},{name:"rtf",accepts:wr("application/rtf"),specificity:2,render:e=>Oe.jsx(c5,{node:e}),renderChunk:e=>Oe.jsx($5,{chunk:e})},{name:"docx",accepts:wr("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Fr(Oe.jsx(a6,{node:e})),renderChunk:e=>Fr(Oe.jsx(l6,{chunk:e}))},{name:"spreadsheet",accepts:wr("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Fr(Oe.jsx(o6,{node:e})),renderChunk:e=>Fr(Oe.jsx(u6,{chunk:e}))},{name:"doc",accepts:wr("application/msword"),specificity:2,render:e=>Oe.jsx(f5,{node:e}),renderChunk:e=>Oe.jsx(d5,{chunk:e})},{name:"map",accepts:wr("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Fr(Oe.jsx(c6,{node:e})),renderChunk:e=>Fr(Oe.jsx($6,{chunk:e}))},{name:"latex",accepts:wr("text/x-latex"),specificity:2,render:e=>Oe.jsx(L3,{node:e}),renderChunk:e=>Oe.jsx(F3,{chunk:e})},{name:"plantuml",accepts:wr("text/x-plantuml"),specificity:2,render:e=>Oe.jsx(D5,{node:e}),renderChunk:e=>Oe.jsx(L5,{chunk:e})},Q0,{name:"image",accepts:wr("image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/x-icon","image/svg+xml"),specificity:2,render:e=>Fr(Oe.jsx(f6,{node:e})),renderChunk:e=>Fr(Oe.jsx(d6,{chunk:e}))},{name:"html",accepts:wr("text/html"),specificity:2,render:e=>Oe.jsx(g_,{node:e}),renderChunk:e=>Oe.jsx(g_,{node:Mi(e)})},{name:"fb2",accepts:wr("application/x-fictionbook+xml"),specificity:2,render:e=>Oe.jsx(h_,{node:e}),renderChunk:e=>Oe.jsx(h_,{node:Mi(e)})},{name:"epub",accepts:wr("application/epub+zip"),specificity:2,render:e=>Oe.jsx(m_,{node:e}),renderChunk:e=>Oe.jsx(m_,{node:Mi(e)})},{name:"pdf",accepts:wr("application/pdf"),specificity:2,render:e=>Fr(Oe.jsx(v_,{node:e})),renderChunk:e=>Fr(Oe.jsx(v_,{node:Mi(e)}))},{name:"djvu",accepts:wr("image/vnd.djvu"),specificity:2,render:e=>Fr(Oe.jsx(y_,{node:e})),renderChunk:e=>Fr(Oe.jsx(y_,{node:Mi(e)}))},{name:"psd",accepts:wr("image/vnd.adobe.photoshop"),specificity:2,render:e=>Fr(Oe.jsx(b_,{node:e})),renderChunk:e=>Fr(Oe.jsx(b_,{node:Mi(e)}))},{name:"tiff",accepts:wr("image/tiff"),specificity:2,render:e=>Fr(Oe.jsx(w_,{node:e})),renderChunk:e=>Fr(Oe.jsx(w_,{node:Mi(e)}))},{name:"heic",accepts:wr("image/heic"),specificity:2,render:e=>Fr(Oe.jsx(x_,{node:e})),renderChunk:e=>Fr(Oe.jsx(x_,{node:Mi(e)}))}];function p6(e){const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function m6(e){const t=e.children.find(r=>p6(r.path)==="children");return t?{children:t.children,expandable:t.hasChildren,loaded:t.children.length>0||!t.hasChildren,loadDepth:3}:{children:[],expandable:e.hasChildren,loaded:e.children.length>0,loadDepth:3}}function Uu(e){const t=h6(e);let r=null;for(const n of _6)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function Pc(e){return Uu(e)??(qg(e.concrete)?Q0:null)}function jc(e,t){return Uu(e)?.name??(qg(t)?Q0.name:null)}function Mg(e){const t=Uu(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 g6=yt.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,depth:s=0}){const{children:c,expandable:d,loaded:p,loadDepth:h}=Mg(t),[q,j]=yt.useState(c.length>0),[G,pe]=yt.useState(!1),ke=t.path===r,$e=bo(t.path,r),W=yt.useRef(null);yt.useEffect(()=>{$e&&j(!0)},[$e]),yt.useEffect(()=>{ke&&W.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[ke]);const Z=kg(t.type,t.format,t.concrete),ve=q&&Z.glyph==="📁"?"📂":Z.glyph,ae=async()=>{if(!q&&d&&!p){pe(!0);try{await i(t.path,h)}finally{pe(!1)}}j(ye=>!ye)};return Oe.jsxs("div",{className:"tree-branch",children:[Oe.jsxs("div",{ref:W,className:"tree-row"+(ke?" selected":""),style:{paddingLeft:s*14+4},children:[d?Oe.jsx("button",{className:"toggle"+(q?" open":"")+(G?" loading":""),onClick:ae,"aria-label":q?"collapse":"expand",children:Oe.jsx("span",{className:"chevron",children:"›"})}):Oe.jsx("span",{className:"toggle leaf"}),Oe.jsx("span",{className:"icon "+Z.cls,title:Z.title,children:ve}),Oe.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${m0(t.path)} (${t.type})`,children:t.label})]}),q&&c.map(ye=>Oe.jsx(e,{node:ye,current:r,onSelect:n,onLoadChildren:i,depth:s+1},ye.path))]})});function v6({tasks:e}){return e.length?Oe.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,c=n?`${r}/${n}`:t.state==="running"&&r>0?String(r):"";return Oe.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[Oe.jsxs("span",{className:"task-label",children:[t.label,c&&Oe.jsxs("span",{className:"task-counts",children:[" ",c]}),t.state==="error"&&" — failed"]}),Oe.jsx("span",{className:"task-bar",children:s!==null?Oe.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):Oe.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function y6(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 b6(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 w6(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,`
|
|
608
|
+
`),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const c=(r.author_url??"").split("/").filter(Boolean).pop(),d=i?Array.from(i.querySelectorAll(":scope > a")):[],p=d[d.length-1]?.textContent?.trim(),h=[r.author_name,c&&`@${c}`].filter(Boolean).join(" "),q=[h&&`— ${h}`,p].filter(Boolean).join(", ");return[s,"",[q,r.url??e].filter(Boolean).join(`
|
|
609
|
+
`)].join(`
|
|
610
|
+
`)}const Dg=new Set(["script","style","noscript","template","iframe","svg","head","title"]),x6=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 k6(e){const t=new DOMParser().parseFromString(e,"text/html"),r=E6(S6(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 c={title:s.text||"Untitled",chunks:[],children:[]};i[i.length-1].node.children.push(c),i.push({node:c,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 S6(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
|
|
611
|
+
`).replace(/\n{2,}/g,`
|
|
612
|
+
`).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 c=s.tagName.toLowerCase();if(!Dg.has(c)){if(/^h[1-6]$/.test(c)){n(),t.push({kind:"heading",level:Number(c[1]),text:(s.textContent??"").replace(/\[edit\]/gi,"").trim()});return}if(c==="img"){n();const d=A6(s);d&&t.push({kind:"image",url:d,alt:s.getAttribute("alt")??""});return}if(c==="li"){n(),s.childNodes.forEach(i);const d=r.replace(/\s+/g," ").trim();r="",d&&t.push({kind:"text",text:"- "+d});return}if(c==="pre"){n();const d=(s.textContent??"").replace(/\n+$/,"");d.trim()&&t.push({kind:"text",text:"```\n"+d+"\n```"});return}if(c==="blockquote"){n(),s.childNodes.forEach(i);const d=r.trim();r="",d&&t.push({kind:"text",text:d.split(`
|
|
613
|
+
`).map(p=>"> "+p).join(`
|
|
614
|
+
`)});return}if(c==="br"){r+=`
|
|
615
|
+
`;return}if(c==="td"||c==="th"){s.childNodes.forEach(i),r+=" ";return}if(x6.has(c)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=Lg(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function Lg(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.tagName.toLowerCase();if(Dg.has(t))return"";if(t==="br")return`
|
|
616
|
+
`;const r=Array.from(e.childNodes).map(Lg).join("");if(t==="a"){const n=e.getAttribute("href")??"",i=r.trim();return/^https?:\/\//.test(n)&&i?`[${i}](${n})`:r}return t==="strong"||t==="b"?r.trim()?`**${r.trim()}**`:"":t==="em"||t==="i"?r.trim()?`*${r.trim()}*`:"":t==="code"?r.trim()?"`"+r.trim()+"`":"":r}function A6(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 E6(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+=`
|
|
617
|
+
`+r.text:t.push(r)}return t}const C6={"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 Fg(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:T6(t.image.url,n.type),contentBase64:await z6(n)}}}catch{return{text:``}}})),children:await Promise.all(e.children.map(Fg))}}function T6(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+="."+(C6[t]||"bin")),r}function z6(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 Bg(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+Bg(r),0)}const ko=[{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"}],Z0=ko[0],R6=Z0.color,su="yo-annotate-tag",J0="yo-annotate-recent-tags";function N6(e){return e.tag?Zi(e.tag):R6}function Qs(e){return JSON.stringify([e.selector??null,e.tag?.path??null])}function I6(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let k_=null;function q6(){const[e,t]=yt.useState(ko);return yt.useEffect(()=>{k_??=ia("::yamlover:tags:colors",2).then(n=>{const i=[];for(const[s,c]of Ag(n.value)){const d=Eg(c);d&&i.push({path:`::yamlover:tags:colors:${encodeURIComponent(s)}`,name:s,color:d})}return i.length?i:ko}).catch(()=>ko);let r=!1;return k_.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const M6=": ...: !!<format: x-yamlover-tag>";function D6(e){const t=new Set,r=[];for(const n of e){const i=rl(n);i.startsWith(":yamlover:tags:colors:")||t.has(i)||(t.add(i),r.push({path:n,name:jg(n),color:null}))}return r}function L6(){const[e,t]=yt.useState([]),r=X0(K0);return yt.useEffect(()=>{let n=!1;return wy(M6).then(i=>{n||t(D6(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}function F6(){const[e,t]=yt.useState(()=>{try{const n=JSON.parse(localStorage.getItem(su)||"");if(n?.path&&n?.name)return n}catch{}return Z0});return[e,n=>{localStorage.setItem(su,JSON.stringify(n)),B6(n),t(n)}]}function O0(){try{const e=JSON.parse(localStorage.getItem(J0)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function B6(e){if(rl(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...O0().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(J0,JSON.stringify(t))}function P6(){const e=r=>ia(r.path,0).then(n=>n.format===Nl).catch(()=>!1);try{const r=JSON.parse(localStorage.getItem(su)||"");r?.path&&e(r).then(n=>{n||localStorage.removeItem(su)})}catch{}const t=O0();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(J0,JSON.stringify(n)),n})}async function j6(e,t,r,n){if(!t)return M$({target:e,tag:r.path});const{fragmentPath:i}=await xy(e,t,n);return M$({target:i,tag:r.path})}function S_(e,t){return t.fragmentSlug?(e===":"?"":e)+":yamlover-fragments:"+t.fragmentSlug:e}function Pg(e,t=0){const[r,n]=yt.useState([]),i=X0(K0);return yt.useEffect(()=>{let s=!1;return yy(e).then(c=>!s&&n(c)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function U6(e){const[t,r]=yt.useState(0),n=Pg(e,t),[i,s]=yt.useState([]),[c,d]=yt.useState(new Set);yt.useEffect(()=>{const $e=new Set(n.map(Qs));s(W=>W.filter(Z=>!$e.has(Qs(Z)))),d(W=>new Set([...W].filter(Z=>$e.has(Z))))},[n]);const p=()=>r($e=>$e+1),h=($e,W,Z)=>{s(ve=>ve.filter(ae=>ae!==$e)),Z||window.alert("save failed: "+W.message)},q=($e,W,Z)=>{const ve={path:"(pending)",selector:$e??void 0,tag:W};s(ae=>[...ae,ve]),j6(e,$e,W,Z?.imageBase64).then(p).catch(ae=>h(ve,ae,Z?.silent))},j=$e=>{if(!$e?.tag||$e.path==="(pending)")return;const W=Qs($e);d(Z=>new Set(Z).add(W)),Cy(S_(e,$e),$e.tag.path).then(p).catch(Z=>{d(ve=>{const ae=new Set(ve);return ae.delete(W),ae}),window.alert("delete failed: "+Z.message)})},G=($e,W)=>{if(j($e),$e.fragmentSlug){const Z={path:"(pending)",selector:$e.selector,fragmentSlug:$e.fragmentSlug,tag:W};s(ve=>[...ve,Z]),M$({target:S_(e,$e),tag:W.path}).then(p).catch(ve=>h(Z,ve))}else q(null,W)},pe=new Set,ke=[];for(const $e of[...i,...n]){const W=Qs($e);c.has(W)||pe.has(W)||(pe.add(W),ke.push($e))}return{annotations:ke,create:q,remove:j,retag:G}}function jg(e){const t=an(e);return t.length?String(t[t.length-1]):e}function H6(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}function A_({x:e,y:t,tag:r,mode:n,onPick:i,onConfirm:s,onCopy:c,onTrash:d,menuRef:p}){const h=q6(),q=L6(),[j,G]=yt.useState(O0),[pe,ke]=yt.useState(""),[$e,W]=yt.useState(-1),[Z,ve]=yt.useState(!1),ae=n==="edit"?"re-tag":"tag";yt.useEffect(()=>{let X=!0;return P6().then(Ae=>{X&&G(Ae)}),()=>{X=!1}},[]);const ye=(X,Ae)=>rl(X)===rl(Ae),le=h.some(X=>ye(X.path,r.path))||j.some(X=>ye(X.path,r.path))?j:[r,...j],we=pe.trim().toLowerCase(),ce=we?q.filter(X=>!h.some(Ae=>ye(Ae.path,X.path))&&!le.some(Ae=>ye(Ae.path,X.path))&&(X.name.toLowerCase().includes(we)||rl(X.path).toLowerCase().includes(we))).map(X=>({t:X,rank:H6(X,we)})).sort((X,Ae)=>X.rank-Ae.rank||X.t.name.localeCompare(Ae.t.name)).slice(0,8).map(X=>X.t):[];yt.useEffect(()=>{W(ce.length?0:-1)},[pe]);const ze=X=>{const Ae=(X??pe).trim();!Ae||Z||(ve(!0),ia(Ae.startsWith(":")?Ae:Ae.startsWith("/")?":"+Ae.slice(1).split("/").join(":"):":"+Ae,1).then(oe=>{if(oe.format!==Nl)throw new Error("not a tag node");i({path:oe.path,name:oe.title||jg(oe.path),color:Eg(oe.value)})}).catch(oe=>{if(Ae.includes(":")||Ae.includes("/"))throw new Error(`cannot ${ae} with "${Ae}": `+oe.message);return ky(Ae).then(i).catch(k=>{throw new Error(`cannot create tag "${Ae}": `+k.message)})}).catch(oe=>window.alert(oe.message)).finally(()=>ve(!1)))};return Oe.jsxs("div",{ref:p,className:"annotate-menu",style:{left:e,top:t},role:"menu",children:[Oe.jsx("div",{className:"annotate-palette",children:h.map(X=>Oe.jsx("button",{type:"button",className:"annotate-swatch"+(ye(X.path,r.path)?" sel":""),style:{background:Zi(X)},title:`${ae} ${X.name}`,onClick:()=>i(X)},X.path))}),s&&Oe.jsx("button",{type:"button",className:"annotate-tool ok",title:n==="edit"?"close (keep this annotation)":`${ae} ${r.name} (keep the mark)`,onClick:s,children:"✓"}),c&&Oe.jsx("button",{type:"button",className:"annotate-tool",title:"copy text to clipboard (don't annotate)",onClick:c,children:"⧉"}),Oe.jsx("button",{type:"button",className:"annotate-tool danger",title:n==="edit"?"delete this annotation":"discard (don't annotate)",onClick:d,children:"🗑"}),le.length>0&&Oe.jsx("div",{className:"annotate-recents",children:le.map(X=>Oe.jsx("span",{className:"tagframe"+(ye(X.path,r.path)?" sel":""),children:Oe.jsx("button",{type:"button",className:"tagtag",style:{background:Zi(X)},title:`${ae} ${X.name}`,onClick:()=>i(X),children:X.name})},X.path))}),Oe.jsxs("div",{className:"annotate-typeahead",children:[Oe.jsx("input",{className:"annotate-taginput",type:"text",placeholder:Z?"creating tag…":`${ae}: tag path or new name… ⏎`,value:pe,disabled:Z,autoComplete:"off",onChange:X=>ke(X.target.value),onKeyDown:X=>{if(ce.length&&X.key==="ArrowDown"){X.preventDefault(),X.stopPropagation(),W(Ae=>(Ae+1)%ce.length);return}if(ce.length&&X.key==="ArrowUp"){X.preventDefault(),X.stopPropagation(),W(Ae=>(Ae-1+ce.length)%ce.length);return}if(X.key==="Escape"&&pe){X.preventDefault(),X.stopPropagation(),ke("");return}X.key==="Enter"&&(X.preventDefault(),X.stopPropagation(),$e>=0&&ce[$e]?ze(ce[$e].path):ze())}}),!Z&&ce.length>0&&Oe.jsx("div",{className:"annotate-suggest",role:"listbox",children:ce.map((X,Ae)=>Oe.jsx("span",{className:"tagframe"+(Ae===$e?" sel":""),children:Oe.jsx("button",{type:"button",role:"option","aria-selected":Ae===$e,className:"tagtag",style:{background:Zi(X)},title:m0(X.path),onMouseDown:oe=>{oe.preventDefault(),ze(X.path)},onMouseEnter:()=>W(Ae),children:X.name})},X.path))})]})]})}function V6(e){const[t,r]=F6(),[n,i]=yt.useState(null),s=yt.useRef(null),c=()=>i(null),d=(pe,ke,$e,W)=>i({mode:"create",selector:pe,copy:$e,imageBase64:W,x:ke.x,y:ke.y}),p=(pe,ke)=>i({mode:"edit",ann:pe,x:ke.x,y:ke.y}),h=(pe,ke,$e=!1)=>{ke.mode==="create"&&(r(pe),e.create(ke.selector,pe,{silent:$e,imageBase64:ke.imageBase64}),c())},q=(pe,ke)=>{ke.mode==="edit"&&(r(pe),e.retag(ke.ann,pe),c())};yt.useEffect(()=>{if(!n)return;const pe=ke=>{s.current?.contains(ke.target)||(n.mode==="create"?h(t,n,!0):c())};return document.addEventListener("mousedown",pe),()=>document.removeEventListener("mousedown",pe)},[n,t]);let j=null;n?.mode==="create"?j=Oe.jsx(A_,{menuRef:s,x:n.x,y:n.y,tag:t,mode:"create",onPick:pe=>h(pe,n),onConfirm:()=>h(t,n),onCopy:n.copy?()=>{n.copy(),c()}:void 0,onTrash:c}):n?.mode==="edit"&&(j=Oe.jsx(A_,{menuRef:s,x:n.x,y:n.y,tag:n.ann.tag??Z0,mode:"edit",onPick:pe=>q(pe,n),onConfirm:c,onTrash:()=>{e.remove(n.ann),c()}}));const G=n?.mode==="create"?{selector:n.selector,tag:t,color:Zi(t)}:null;return{openCreate:d,openEdit:p,palette:j,preview:G,color:Zi(t)}}function W6({path:e,children:t}){const r=yt.useRef(null),n=U6(e),{openCreate:i,openEdit:s,palette:c}=V6(n),{annotations:d}=n;yt.useEffect(()=>{const h=r.current;if(!h)return;const q=requestAnimationFrame(()=>G6(h,d));return()=>cancelAnimationFrame(q)}),yt.useEffect(()=>{const h=q=>{const j=r.current;if(!j||q.target?.closest?.(".annotate-menu")||q.target?.closest?.("mark.yo-annotation"))return;const G=window.getSelection();if(!G||G.isCollapsed||!G.anchorNode||!j.contains(G.anchorNode))return;const pe=Y6(G);if(!pe)return;const ke=G.getRangeAt(0).getBoundingClientRect(),$e=()=>navigator.clipboard?.writeText(pe.exact).catch(()=>{});i({type:"text",exact:pe.exact,prefix:pe.prefix,suffix:pe.suffix},{x:ke.left,y:ke.bottom+6},$e)};return document.addEventListener("mouseup",h),()=>document.removeEventListener("mouseup",h)},[]);const p=h=>{const q=h.target.closest("mark.yo-annotation");if(!q)return;const j=d.find(G=>Qs(G)===q.dataset.annSel);!j||!I6(j)||(h.preventDefault(),s(j,{x:h.clientX,y:h.clientY}))};return Oe.jsxs("div",{className:"annotated",children:[d.length>0&&Oe.jsx("div",{className:"annotate-bar",children:Oe.jsxs("span",{className:"annotate-count",children:[d.length," annotation",d.length>1?"s":""]})}),Oe.jsx("div",{ref:r,onClick:p,children:t}),c]})}function Y6(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 G6(e,t){e.querySelectorAll("mark.yo-annotation").forEach(r=>{const n=r.parentNode;if(n){for(;r.firstChild;)n.insertBefore(r.firstChild,r);n.removeChild(r),n.normalize()}});for(const r of t)r.selector?.type!=="text"||!r.selector.exact||K6(e,r.selector.exact,r)}function K6(e,t,r){const n=N6(r),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let s;for(;s=i.nextNode();){const c=(s.nodeValue??"").indexOf(t);if(c<0)continue;const d=document.createRange();d.setStart(s,c),d.setEnd(s,c+t.length);const p=document.createElement("mark");p.className="yo-annotation",p.style.backgroundColor=`color-mix(in srgb, ${n} 30%, transparent)`,p.style.borderBottomColor=n,p.dataset.annSel=Qs(r),p.title=r.description||"click to re-tag or delete";try{d.surroundContents(p);return}catch{}}}const X6=new Set(["chapter","markdown","asciidoc","marklower"]),au=["yamlover","json5p","yamlover/schema"],Ya="yamlover",Q6=e=>au.includes(e),Uc=e=>e.endsWith("schema"),E_=e=>e==="json5p"?"json":"yaml";function C_(e,t){return Q6(e)||t&&e===t.name?e:t?t.name:Ya}function Z6(e){const t=an(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const J6={"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 O6(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 e7(e){return e.name?e.name:`pasted.${J6[e.type]||"bin"}`}function t7(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 r7=yt.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:c,onOpenUploaded:d}){const[p,h]=yt.useState(null),[q,j]=yt.useState(null),[G,pe]=yt.useState(null),[ke,$e]=yt.useState(null),[W,Z]=yt.useState(0),[ve,ae]=yt.useState(null),[ye,le]=yt.useState(!1),[,we]=yt.useReducer(l=>l+1,0),ce=Pg(t);yt.useEffect(()=>{$e(null),h(null);let l=!1;return ia(t).then(o=>{if(l)return;const f=Pc(o)?.depth??1;f>1?ia(t,f).then(_=>!l&&h(_)).catch(_=>!l&&$e(_.message)):h(o)}).catch(o=>!l&&$e(o.message)),()=>{l=!0}},[t,W,n]),yt.useEffect(()=>{if(!p)return;const l=o=>{const f=o.target;if(f&&(f.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(f.tagName)))return;const _=O6(o);if(_.length>0){o.preventDefault(),ze(_);return}const A=o.clipboardData?.getData("text/html")??"",T=A?k6(A):null;if(T){o.preventDefault(),Ae(T);return}const J=o.clipboardData?.getData("text/plain")??"";if(!J.trim())return;o.preventDefault();const Fe=y6(J);if(Fe){X(Fe);return}const it=b6(J);if(it){oe(it);return}k(J)};return document.addEventListener("paste",l),()=>document.removeEventListener("paste",l)},[p,t]),yt.useEffect(()=>{if(!p)return;const l=J=>Array.from(J.dataTransfer?.types||[]).includes("Files");let o=0;const f=J=>{l(J)&&(J.preventDefault(),o++,le(!0))},_=J=>{l(J)&&(J.preventDefault(),J.dataTransfer&&(J.dataTransfer.dropEffect="copy"))},A=()=>{o=Math.max(0,o-1),o===0&&le(!1)},T=J=>{if(!l(J))return;J.preventDefault(),o=0,le(!1);const Fe=Array.from(J.dataTransfer?.files||[]);Fe.length&&ze(Fe)};return document.addEventListener("dragenter",f),document.addEventListener("dragover",_),document.addEventListener("dragleave",A),document.addEventListener("drop",T),()=>{document.removeEventListener("dragenter",f),document.removeEventListener("dragover",_),document.removeEventListener("dragleave",A),document.removeEventListener("drop",T)}},[p,t]);const ze=async l=>{try{ae(`uploading ${l.length} file${l.length>1?"s":""}…`);let o=null;for(const f of l){const _=await t7(f);o=await Sy(t,e7(f),_)}ae(l.length>1?`uploaded ${l.length} files`:"uploaded"),window.setTimeout(()=>ae(null),1500),o?.open?d?.(o):(Z(f=>f+1),c?.(t))}catch(o){ae("paste failed: "+o.message),window.setTimeout(()=>ae(null),4e3)}},X=async({url:l,name:o})=>{try{ae(`downloading ${o}…`);const f=await fetch(l);if(!f.ok)throw new Error(`HTTP ${f.status} fetching ${l}`);const _=await f.blob();await ze([new File([_],o,{type:"application/pdf"})])}catch(f){ae("download failed: "+f.message),window.setTimeout(()=>ae(null),4e3)}},Ae=async l=>{try{const o=Bg(l);o&&ae(`downloading ${o} image${o>1?"s":""}…`);const f=await Fg(l);ae("pasting…");const _=await Ey(t,f);ae(_.chapter?"chunks added":"chapter created"),window.setTimeout(()=>ae(null),1500),_.open?d?.(_):(Z(A=>A+1),c?.(t))}catch(o){ae("paste failed: "+o.message),window.setTimeout(()=>ae(null),4e3)}},oe=async l=>{try{ae("fetching tweet…"),await k(await w6(l))}catch(o){ae("tweet fetch failed: "+o.message),window.setTimeout(()=>ae(null),4e3)}},k=async l=>{try{ae("pasting text…");const o=await Ay(t,l);ae(o.chapter?"chunk added":"chapter created"),window.setTimeout(()=>ae(null),1500),o.open?d?.(o):(Z(f=>f+1),c?.(t))}catch(o){ae("paste failed: "+o.message),window.setTimeout(()=>ae(null),4e3)}};if(yt.useEffect(()=>{p&&(document.title=p.title?.trim()||Z6(t)||"yamlover")},[p,t]),yt.useEffect(()=>{if(j(null),pe(null),!p)return;const l=Pc(p),o=C_(r,l);l&&o===l.name||(Uc(o)?vy(t).then(j).catch(f=>$e(f.message)):p.type==="binary"&&ia(t,void 0,{binary:!0}).then(f=>pe(f.value)).catch(f=>$e(f.message)))},[r,t,p]),ke)return Oe.jsx("div",{className:"error",children:ke});if(!p)return Oe.jsx("div",{className:"loading",children:"…"});const Se=Pc(p),F=Se?[Se.name,...au]:au,de=C_(r,Se),D=Se!=null&&de===Se.name;let qe,te;D?(qe=p.value,te=!0):Uc(de)?(qe=q,te=q!=null):p.type==="binary"?(qe=G,te=G!=null):(qe=p.value,te=!0);const{tags:B,rest:w}=j5(p.relations),$=[...B];for(const l of ce)l.tag&&!$.some(o=>o.path===l.tag.path)&&$.push({path:l.tag.path,label:l.tag.name,color:l.tag.color});return Oe.jsxs("div",{className:"nodeview",children:[ve&&Oe.jsx("div",{className:"paste-toast",children:ve}),ye&&Oe.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),Oe.jsxs("div",{className:"nodehead",children:[Oe.jsxs("div",{className:"nodemeta",children:[Oe.jsx("span",{className:"tag",children:p.type}),p.concrete&&Oe.jsx("span",{className:"tag dim",children:p.concrete}),Oe.jsx(V5,{tags:$,onNavigate:s})]}),Oe.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),Oe.jsx("div",{className:"tabs",children:F.map(l=>Oe.jsxs(yt.Fragment,{children:[Oe.jsx("button",{className:"tab"+(de===l?" active":""),onClick:()=>i(l),children:l}),D&&Se&&l===Se.name&&Se.config?.(we)]},l))})]}),!D&&p.description&&Oe.jsx("p",{className:"nodedesc",children:p.description}),D?X6.has(Se.name)?Oe.jsx(W6,{path:t,children:Se.render(p,s)}):Se.render(p,s):Oe.jsxs("pre",{className:"code",children:[!Uc(de)&&Object.keys(w).length>0&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(fh,{value:w,syntax:E_(de),onNavigate:s}),Oe.jsx("hr",{className:"reldiv"})]}),te?Oe.jsx(fh,{value:qe,syntax:E_(de),onNavigate:s}):"…"]})]})}),n7=e=>au.includes(e),Ba=1;function pf(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>pf(n,t,r))}:e}function Ug(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=>Ug(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function Hg(e,t,r){return e.path===t?Ug(e,r):e.children.length?{...e,children:e.children.map(n=>Hg(n,t,r))}:e}function Zs(e,t){if(e.path===t)return e;for(const r of e.children){const n=Zs(r,t);if(n)return n}return null}function i7(e,t){const r=an(t);for(let n=0;n<r.length;n++){const i=li(r.slice(0,n)),s=Zs(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function s7(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of Mg(n).children)r(i)};return r(e),t}function a7(){const[e,t]=yt.useState(null),[r,n]=yt.useState(null),[i,s]=yt.useState(dh()),[c,d]=yt.useState(hh(Ya)),[p,h]=yt.useState(""),[q,j]=yt.useState(320),G=yt.useRef(null);yt.useEffect(()=>{ch().then(D=>h(D.root)).catch(()=>{})},[]);const[pe,ke]=yt.useState([]);yt.useEffect(()=>{gy().then(ke).catch(()=>{})},[]);const $e=yt.useCallback(D=>{ke(qe=>[...qe.filter(te=>te.id!==D.id),D].sort((te,B)=>te.startedAt-B.startedAt)),D.state!=="running"&&setTimeout(()=>ke(qe=>qe.filter(te=>te.id!==D.id)),3e3)},[]),W=yt.useRef(new URLSearchParams(window.location.search).has("format"));yt.useEffect(()=>{Ma(i,c,!0)},[]),yt.useEffect(()=>{qa(":",Ba).then(t).catch(D=>n(D.message))},[]);const Z=yt.useRef(!1);yt.useEffect(()=>{if(W.current||Z.current||!e)return;const D=Zs(e,i);if(!D)return;Z.current=!0;const qe=jc(D,D.concrete);qe&&(d(qe),Ma(i,qe,!0))},[e,i]);const ve=yt.useCallback(async(D,qe=Ba)=>{const te=await qa(D,qe);t(B=>B&&pf(B,D,te.children))},[]);yt.useEffect(()=>{if(!e)return;const D=i7(e,i);D&&ve(D).catch(()=>{})},[e,i,ve]);const ae=yt.useRef(e);ae.current=e;const ye=yt.useRef(i);ye.current=i;const[le,we]=yt.useState(0),ce=yt.useCallback(async D=>{const qe=ae.current;if(!qe)return;const te=new Set;for(const w of D){const $=an(w);let l=":";for(let o=0;o<$.length;o++){const f=li($.slice(0,o)),_=Zs(qe,f);if(!_)break;(f===":"||_.children.length>0)&&(l=f)}te.add(l)}const B=[...te].filter(w=>![...te].some($=>$!==w&&bo($,w)));await Promise.all(B.map(async w=>{const $=await qa(w,Ba);t(l=>l&&Hg(l,w,$))}))},[]),ze=yt.useCallback(()=>{ae.current||(qa(":",Ba).then(D=>{t(D),n(null)}).catch(()=>{}),ch().then(D=>h(D.root)).catch(()=>{}))},[]);yt.useEffect(()=>{if(typeof EventSource>"u")return;const D=new EventSource("/api/events");return D.onmessage=qe=>{try{const te=JSON.parse(qe.data);if(te.type==="task"){const l=te.task;$e(l),l.state==="done"&&ze();return}const B=te;ze();const w=[...B.added,...B.changed,...B.removed,...(B.moved??[]).flatMap(l=>[l.from,l.to])];if(!w.length)return;W5({paths:w,removed:B.removed}),ce(w).catch(()=>{});const $=ye.current;w.some(l=>l===$||bo(l,$)||bo($,l))&&we(l=>l+1)}catch{}},()=>D.close()},[ce,$e,ze]),yt.useEffect(()=>{const D=()=>{s(dh()),d(hh(Ya))};return window.addEventListener("popstate",D),()=>window.removeEventListener("popstate",D)},[]);const X=yt.useCallback(D=>{const qe=e?Zs(e,D):null;let te=c;qe&&(te=jc(qe,qe.concrete)??(n7(c)?c:Ya)),Ma(D,te,!1),s(D),te!==c&&d(te)},[c,e]),Ae=yt.useCallback(D=>{X(D),G.current?.focus()},[X]),oe=yt.useRef(X);oe.current=X,yt.useEffect(()=>{const D=qe=>{if(!(qe.ctrlKey||qe.altKey)||qe.key!=="ArrowDown"&&qe.key!=="ArrowUp")return;const te=qe.target;if(te&&(te.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(te.tagName)))return;const B=s7(ae.current),w=B.indexOf(ye.current);if(w<0)return;const $=Math.min(Math.max(w+(qe.key==="ArrowDown"?1:-1),0),B.length-1);qe.preventDefault(),$!==w&&oe.current(B[$])};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[]);const k=yt.useCallback(D=>{Ma(i,D,!0),d(D)},[i]),Se=yt.useCallback(D=>{const qe=e?Zs(e,D):null;ve(qe?D:":").catch(()=>{})},[e,ve]),F=yt.useCallback(async D=>{const qe=D.dir??":";try{const te=await qa(qe,Ba);t($=>$&&pf($,qe,te.children));const B=te.children.find($=>$.path===D.path),w=(B?jc(B,B.concrete):null)??Ya;Ma(D.path,w,!1),s(D.path),d(w)}catch{X(D.path)}},[X]),de=yt.useRef(!1);return yt.useEffect(()=>{const D=te=>{de.current&&j(Math.min(Math.max(te.clientX,160),window.innerWidth-240))},qe=()=>{de.current=!1,document.body.style.userSelect=""};return window.addEventListener("mousemove",D),window.addEventListener("mouseup",qe),()=>{window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",qe)}},[]),Oe.jsxs("div",{className:"app",children:[Oe.jsxs("header",{className:"topbar",children:[Oe.jsx("nav",{className:"crumbs",children:Uy(i,p).map((D,qe)=>Oe.jsxs("span",{children:[qe>0&&Oe.jsx("span",{className:"crumb-sep",children:":"}),Oe.jsx("a",{className:"crumb",href:D.path,onClick:te=>{te.preventDefault(),X(D.path)},children:D.label})]},D.path))}),Oe.jsx(v6,{tasks:pe})]}),Oe.jsxs("div",{className:"body",children:[Oe.jsx("aside",{className:"pane left",style:{width:q},children:(()=>{const D=e?void 0:pe.find(qe=>qe.state==="running");if(D){const{done:qe,total:te}=D.progress;return Oe.jsxs("div",{className:"loading",children:[D.label,"… ",te?`${qe}/${te}`:""]})}return r?Oe.jsx("div",{className:"error",children:r}):e?Oe.jsx(g6,{node:e,current:i,onSelect:Ae,onLoadChildren:ve}):Oe.jsx("div",{className:"loading",children:"loading…"})})()}),Oe.jsx("div",{className:"splitter",onMouseDown:()=>{de.current=!0,document.body.style.userSelect="none"}}),Oe.jsx("main",{className:"pane right",ref:G,tabIndex:-1,children:Oe.jsx(r7,{path:i,format:c,refreshSignal:le,onFormat:k,onNavigate:X,onContentChanged:Se,onOpenUploaded:F})})]})]})}jm(document.getElementById("root")).render(Oe.jsx(av.StrictMode,{children:Oe.jsx(a7,{})}));export{R6 as D,l7 as a,va as b,N6 as c,V6 as d,I6 as e,U6 as f,Vg as g,Oe as j,o7 as p,yt as r,hf as s,R5 as u,u7 as w};
|